feat: prompts

This commit is contained in:
Gab
2026-03-28 16:48:01 +11:00
parent 3cc0f7401a
commit 5b9cc6c0de
17 changed files with 237 additions and 69 deletions

View File

@@ -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!)),