Skip to content

Commit 67e568f

Browse files
refactor: replace fetch_instructions with skill tool and built-in skills (#10913)
1 parent 40b2bdc commit 67e568f

File tree

114 files changed

+1749
-5198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+1749
-5198
lines changed

apps/cli/src/ui/components/tools/types.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,7 @@ export type ToolCategory =
1616
| "other"
1717

1818
export function getToolCategory(toolName: string): ToolCategory {
19-
const fileReadTools = [
20-
"readFile",
21-
"read_file",
22-
"fetchInstructions",
23-
"fetch_instructions",
24-
"listFilesTopLevel",
25-
"listFilesRecursive",
26-
"list_files",
27-
]
19+
const fileReadTools = ["readFile", "read_file", "skill", "listFilesTopLevel", "listFilesRecursive", "list_files"]
2820

2921
const fileWriteTools = [
3022
"editedExistingFile",

apps/cli/src/ui/components/tools/utils.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ export function getToolDisplayName(toolName: string): string {
5050
// File read operations
5151
readFile: "Read",
5252
read_file: "Read",
53-
fetchInstructions: "Fetch Instructions",
54-
fetch_instructions: "Fetch Instructions",
53+
skill: "Load Skill",
5554
listFilesTopLevel: "List Files",
5655
listFilesRecursive: "List Files (Recursive)",
5756
list_files: "List Files",
@@ -107,8 +106,7 @@ export function getToolIconName(toolName: string): IconName {
107106
// File read operations
108107
readFile: "file",
109108
read_file: "file",
110-
fetchInstructions: "file",
111-
fetch_instructions: "file",
109+
skill: "file",
112110
listFilesTopLevel: "folder",
113111
listFilesRecursive: "folder",
114112
list_files: "folder",

0 commit comments

Comments
 (0)