The spec: plan_write and plan_update (new, shared, offered in every mode) and plan_submit (now shared) keep one structured plan — findings, objectives, phases of tasks — in place of the todo list, which lives on as a former name of plan_write. The shared system text is one text for both projects, with variables for what differs; the mode texts, a prototypes block and a library block are shared. acp.md: the client hands the device what only it knows (context, library, prototypes), the plan travels as a structure (plan_state), library calls carry the chat's scope, and a client may rewind a session. loop.json says its numbers as numbers. Four conformance areas: plan, prototype, library_scope, toolcall_index. The CLI: the plan is kept per session in the store and drawn above the prompt and on the approval card; the prompt is assembled from the spec's texts with their variables filled; the link reads the instance's instructions, personalization, knowledge scope and prototype offer, sends the plan as a structure and answers rewind; library calls to the instance carry the session as scope; a prototype written in the terminal is saved as a file and named in the transcript; a tool-call fragment without an index continues the last call; the default theme is Moria; dead exports and Hermes leftovers removed. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
65 lines
1.8 KiB
TypeScript
65 lines
1.8 KiB
TypeScript
import { applyPatchTool } from "./apply_patch.ts"
|
|
import { bashKillTool, bashListTool, bashOutputTool, bashTool } from "./bash.ts"
|
|
import { editTool } from "./edit.ts"
|
|
import { multieditTool } from "./multiedit.ts"
|
|
import { askUserTool } from "./ask_user.ts"
|
|
import { readTool } from "./read.ts"
|
|
import { globTool, grepTool, listTool } from "./search.ts"
|
|
import { viewImageTool } from "./view_image.ts"
|
|
import { planSubmitTool } from "./plan_submit.ts"
|
|
import { planUpdateTool } from "./plan_update.ts"
|
|
import { planWriteTool } from "./plan_write.ts"
|
|
import { taskTool } from "./task.ts"
|
|
import { decisionsTool, tasksTool } from "./project_tools.ts"
|
|
import { webFetchTool, webSearchTool } from "./web.ts"
|
|
import { memoryTool } from "./memory.ts"
|
|
import { sessionSearchTool } from "./session_search.ts"
|
|
import { skillManageTool, skillsListTool, skillViewTool } from "./skills.ts"
|
|
import { settingsTool } from "./settings.ts"
|
|
import { knowledgeGetTool, knowledgeSearchTool, noteManageTool, notesSearchTool, noteViewTool } from "./library.ts"
|
|
import type { Tool } from "./tool.ts"
|
|
import { writeTool } from "./write.ts"
|
|
|
|
export const BUILTIN_TOOLS: Tool[] = [
|
|
readTool,
|
|
writeTool,
|
|
editTool,
|
|
multieditTool,
|
|
applyPatchTool,
|
|
globTool,
|
|
grepTool,
|
|
listTool,
|
|
bashTool,
|
|
bashOutputTool,
|
|
bashListTool,
|
|
bashKillTool,
|
|
webSearchTool,
|
|
webFetchTool,
|
|
taskTool,
|
|
planWriteTool,
|
|
planUpdateTool,
|
|
tasksTool,
|
|
decisionsTool,
|
|
askUserTool,
|
|
planSubmitTool,
|
|
memoryTool,
|
|
sessionSearchTool,
|
|
notesSearchTool,
|
|
noteViewTool,
|
|
noteManageTool,
|
|
knowledgeSearchTool,
|
|
knowledgeGetTool,
|
|
skillsListTool,
|
|
skillViewTool,
|
|
skillManageTool,
|
|
settingsTool,
|
|
viewImageTool,
|
|
] as Tool[]
|
|
|
|
export function toolMap(tools: Tool[] = BUILTIN_TOOLS): Map<string, Tool> {
|
|
return new Map(tools.map((t) => [t.name, t]))
|
|
}
|
|
|
|
|
|
export { canonicalToolNames, resolveCall } from "./names.ts"
|