feat: dev

This commit is contained in:
Gab 2026-03-24 15:08:08 +11:00
parent ff2d13015d
commit 09156ea6d4
2 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,7 @@
set -e
# Check if bun version matches package.json
# keep in sync with packages/script/src/index.ts semver qualifier
export PATH="$HOME/.bun/bin:$PATH"
bun -e '
import { semver } from "bun";
const pkg = await Bun.file("package.json").json();
@ -17,4 +18,4 @@ if (process.versions.bun !== expectedBunVersion) {
console.warn(`Warning: Bun version ${process.versions.bun} differs from expected ${expectedBunVersion}`);
}
'
bun typecheck
cd packages/tfcode && bun typecheck

View File

@ -7,6 +7,7 @@ import { mkdir } from "fs/promises"
import { existsSync } from "fs"
import path from "path"
import { Global } from "@/global"
import * as prompts from "@clack/prompts"
const println = (msg: string) => UI.println(msg)
const printError = (msg: string) => UI.error(msg)
@ -410,7 +411,6 @@ const ToolsCredentialsSetCommand = cmd({
}
if (args.set) {
const { default: prompts } = await import("@clack/prompts")
const value = await prompts.password({
message: `Enter API key for '${toolName}'`,
})
@ -438,6 +438,7 @@ const ToolsCommand = cmd({
describe: "manage ToothFairyAI tools",
builder: (yargs) =>
yargs.command(ToolsListCommand).command(ToolsCredentialsSetCommand).demandCommand(),
async handler() {},
})
const ToolsDebugCommand = cmd({
@ -539,6 +540,7 @@ export const ToolsMainCommand = cmd({
describe: "manage ToothFairyAI tools",
builder: (yargs) =>
yargs.command(ToolsListCommand).command(ToolsCredentialsSetCommand).command(ToolsDebugCommand).command(ToolsTestCommand).demandCommand(),
async handler() {},
})
export { ValidateCommand, SyncCommand, ToolsCommand }