Skip to content

Commit 922841e

Browse files
committed
chore: commit src/shared/tools.ts
1 parent b7568c8 commit 922841e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/shared/tools.ts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ export const toolParamNames = [
8080
// read_file legacy format parameter (backward compatibility)
8181
"files",
8282
"line_ranges",
83+
// select_active_intent parameter
84+
"intent_id",
85+
// create_intent parameters
86+
"intent_name",
87+
"owned_scope",
88+
"constraints",
89+
"acceptance_criteria",
90+
// record_lesson parameters
91+
"lesson",
8392
] as const
8493

8594
export type ToolParamName = (typeof toolParamNames)[number]
@@ -115,6 +124,23 @@ export type NativeToolArgs = {
115124
update_todo_list: { todos: string }
116125
use_mcp_tool: { server_name: string; tool_name: string; arguments?: Record<string, unknown> }
117126
write_to_file: { path: string; content: string }
127+
select_active_intent: { intent_id: string }
128+
create_intent: {
129+
prompt: string
130+
intent_id?: string
131+
intent_name?: string
132+
owned_scope?: string[]
133+
constraints?: string[]
134+
acceptance_criteria?: string[]
135+
}
136+
record_lesson: {
137+
lesson: string
138+
context?: {
139+
tool?: string
140+
error?: string
141+
file?: string
142+
}
143+
}
118144
// Add more tools as they are migrated to native protocol
119145
}
120146

@@ -266,6 +292,7 @@ export type ToolGroupConfig = {
266292

267293
export const TOOL_DISPLAY_NAMES: Record<ToolName, string> = {
268294
select_active_intent: "select active intent",
295+
create_intent: "create intent",
269296
execute_command: "run commands",
270297
read_file: "read files",
271298
read_command_output: "read command output",
@@ -290,6 +317,7 @@ export const TOOL_DISPLAY_NAMES: Record<ToolName, string> = {
290317
skill: "load skill",
291318
generate_image: "generate images",
292319
custom_tool: "use custom tools",
320+
record_lesson: "record lesson",
293321
} as const
294322

295323
// Define available tool groups.
@@ -316,6 +344,7 @@ export const TOOL_GROUPS: Record<ToolGroup, ToolGroupConfig> = {
316344
// Tools that are always available to all modes.
317345
export const ALWAYS_AVAILABLE_TOOLS: ToolName[] = [
318346
"select_active_intent",
347+
"create_intent",
319348
"ask_followup_question",
320349
"attempt_completion",
321350
"switch_mode",

0 commit comments

Comments
 (0)