mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-29 21:33:54 +00:00
feat: dev
This commit is contained in:
parent
ff2d13015d
commit
09156ea6d4
@ -2,6 +2,7 @@
|
|||||||
set -e
|
set -e
|
||||||
# Check if bun version matches package.json
|
# Check if bun version matches package.json
|
||||||
# keep in sync with packages/script/src/index.ts semver qualifier
|
# keep in sync with packages/script/src/index.ts semver qualifier
|
||||||
|
export PATH="$HOME/.bun/bin:$PATH"
|
||||||
bun -e '
|
bun -e '
|
||||||
import { semver } from "bun";
|
import { semver } from "bun";
|
||||||
const pkg = await Bun.file("package.json").json();
|
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}`);
|
console.warn(`Warning: Bun version ${process.versions.bun} differs from expected ${expectedBunVersion}`);
|
||||||
}
|
}
|
||||||
'
|
'
|
||||||
bun typecheck
|
cd packages/tfcode && bun typecheck
|
||||||
|
|||||||
@ -7,6 +7,7 @@ import { mkdir } from "fs/promises"
|
|||||||
import { existsSync } from "fs"
|
import { existsSync } from "fs"
|
||||||
import path from "path"
|
import path from "path"
|
||||||
import { Global } from "@/global"
|
import { Global } from "@/global"
|
||||||
|
import * as prompts from "@clack/prompts"
|
||||||
|
|
||||||
const println = (msg: string) => UI.println(msg)
|
const println = (msg: string) => UI.println(msg)
|
||||||
const printError = (msg: string) => UI.error(msg)
|
const printError = (msg: string) => UI.error(msg)
|
||||||
@ -410,7 +411,6 @@ const ToolsCredentialsSetCommand = cmd({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (args.set) {
|
if (args.set) {
|
||||||
const { default: prompts } = await import("@clack/prompts")
|
|
||||||
const value = await prompts.password({
|
const value = await prompts.password({
|
||||||
message: `Enter API key for '${toolName}'`,
|
message: `Enter API key for '${toolName}'`,
|
||||||
})
|
})
|
||||||
@ -438,6 +438,7 @@ const ToolsCommand = cmd({
|
|||||||
describe: "manage ToothFairyAI tools",
|
describe: "manage ToothFairyAI tools",
|
||||||
builder: (yargs) =>
|
builder: (yargs) =>
|
||||||
yargs.command(ToolsListCommand).command(ToolsCredentialsSetCommand).demandCommand(),
|
yargs.command(ToolsListCommand).command(ToolsCredentialsSetCommand).demandCommand(),
|
||||||
|
async handler() {},
|
||||||
})
|
})
|
||||||
|
|
||||||
const ToolsDebugCommand = cmd({
|
const ToolsDebugCommand = cmd({
|
||||||
@ -539,6 +540,7 @@ export const ToolsMainCommand = cmd({
|
|||||||
describe: "manage ToothFairyAI tools",
|
describe: "manage ToothFairyAI tools",
|
||||||
builder: (yargs) =>
|
builder: (yargs) =>
|
||||||
yargs.command(ToolsListCommand).command(ToolsCredentialsSetCommand).command(ToolsDebugCommand).command(ToolsTestCommand).demandCommand(),
|
yargs.command(ToolsListCommand).command(ToolsCredentialsSetCommand).command(ToolsDebugCommand).command(ToolsTestCommand).demandCommand(),
|
||||||
|
async handler() {},
|
||||||
})
|
})
|
||||||
|
|
||||||
export { ValidateCommand, SyncCommand, ToolsCommand }
|
export { ValidateCommand, SyncCommand, ToolsCommand }
|
||||||
Loading…
x
Reference in New Issue
Block a user