Skip to content

Commit 8df365e

Browse files
committed
Fix file picker
1 parent 30042a0 commit 8df365e

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.agents/file-explorer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const config: AgentConfig = {
4545
toolName: 'spawn_agents',
4646
args: {
4747
agents: filePickerPrompts.map((promptText) => ({
48-
agent_type: 'file_picker',
48+
agent_type: 'file-picker',
4949
prompt: promptText,
5050
})),
5151
},

.agents/types/agent-config.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ export type ModelName =
302302
* Built-in agents that can be spawned by custom agents
303303
*/
304304
export type SubagentName =
305-
| 'file_picker'
306-
| 'file_explorer'
305+
| 'file-picker'
306+
| 'file-explorer'
307307
| 'researcher'
308308
| 'thinker'
309309
| 'reviewer'

backend/src/templates/agents/file-explorer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const fileExplorer = {
2020
outputMode: 'json',
2121
includeMessageHistory: false,
2222
toolNames: ['spawn_agents', 'set_output'],
23-
subagents: ['file_picker'],
23+
subagents: ['file-picker'],
2424
inputSchema: {
2525
prompt: z
2626
.string()
@@ -43,7 +43,7 @@ export const fileExplorer = {
4343
toolName: 'spawn_agents' as const,
4444
args: {
4545
agents: filePickerPrompts.map((promptText) => ({
46-
agent_type: 'file_picker' as const,
46+
agent_type: 'file-picker' as const,
4747
prompt: promptText,
4848
})),
4949
},

backend/src/tools/definitions/tool/spawn-agents-async.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Example:
1616
${getToolCallString(toolName, {
1717
agents: [
1818
{
19-
agent_type: 'file_picker',
19+
agent_type: 'file-picker',
2020
prompt: 'Find files related to authentication',
2121
},
2222
{

common/src/util/types/agent-config.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ export type ModelName =
302302
* Built-in agents that can be spawned by custom agents
303303
*/
304304
export type SubagentName =
305-
| 'file_picker'
306-
| 'file_explorer'
305+
| 'file-picker'
306+
| 'file-explorer'
307307
| 'researcher'
308308
| 'thinker'
309309
| 'reviewer'

npm-app/src/cli-definitions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const cliOptions: CliParam[] = [
3333
{
3434
flags: '--agent <agent-id>',
3535
description:
36-
'Specify which agent to invoke (e.g., "file_picker", "reviewer", "base")',
36+
'Specify which agent to invoke (e.g., "file-picker", "reviewer", "base")',
3737
menuDescription: 'Invoke a specific agent by ID',
3838
hidden: false,
3939
},

0 commit comments

Comments
 (0)