From 09156ea6d46f5482f006fae4473cfb1288f273a9 Mon Sep 17 00:00:00 2001 From: Gab Date: Tue, 24 Mar 2026 15:08:08 +1100 Subject: [PATCH] feat: dev --- .husky/pre-push | 3 ++- packages/tfcode/src/cli/cmd/tools.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.husky/pre-push b/.husky/pre-push index 5d3cc5341..3cf371850 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -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 diff --git a/packages/tfcode/src/cli/cmd/tools.ts b/packages/tfcode/src/cli/cmd/tools.ts index 612a78864..2d1e07647 100644 --- a/packages/tfcode/src/cli/cmd/tools.ts +++ b/packages/tfcode/src/cli/cmd/tools.ts @@ -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 } \ No newline at end of file