mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-03 15:43:45 +00:00
feat: dev
This commit is contained in:
@@ -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 }
|
||||
Reference in New Issue
Block a user