mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-15 13:14:35 +00:00
feat: prompts
This commit is contained in:
@@ -150,7 +150,12 @@ export async function bootstrapDirectory(input: {
|
||||
|
||||
Promise.all([
|
||||
input.sdk.path.get().then((x) => input.setStore("path", x.data!)),
|
||||
input.sdk.command.list().then((x) => input.setStore("command", x.data ?? [])),
|
||||
input.sdk.command.list().then((x) => {
|
||||
console.log("[bootstrap] command.list result:", x.data?.length, "commands")
|
||||
const promptsCmd = x.data?.find((c) => c.name === "prompts")
|
||||
if (promptsCmd) console.log("[bootstrap] Found 'prompts' command in server response:", promptsCmd)
|
||||
return input.setStore("command", x.data ?? [])
|
||||
}),
|
||||
input.sdk.session.status().then((x) => input.setStore("session_status", x.data!)),
|
||||
input.loadSessions(input.directory),
|
||||
input.sdk.mcp.status().then((x) => input.setStore("mcp", x.data!)),
|
||||
|
||||
Reference in New Issue
Block a user