Skip to content

Commit 0c53f19

Browse files
Revert "refactor: replace fetch_instructions with skill tool and built-in skills" (#11083)
1 parent 67e568f commit 0c53f19

File tree

114 files changed

+5198
-1749
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

+5198
-1749
lines changed

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

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

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

2129
const fileWriteTools = [
2230
"editedExistingFile",

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ export function getToolDisplayName(toolName: string): string {
5050
// File read operations
5151
readFile: "Read",
5252
read_file: "Read",
53-
skill: "Load Skill",
53+
fetchInstructions: "Fetch Instructions",
54+
fetch_instructions: "Fetch Instructions",
5455
listFilesTopLevel: "List Files",
5556
listFilesRecursive: "List Files (Recursive)",
5657
list_files: "List Files",
@@ -106,7 +107,8 @@ export function getToolIconName(toolName: string): IconName {
106107
// File read operations
107108
readFile: "file",
108109
read_file: "file",
109-
skill: "file",
110+
fetchInstructions: "file",
111+
fetch_instructions: "file",
110112
listFilesTopLevel: "folder",
111113
listFilesRecursive: "folder",
112114
list_files: "folder",

0 commit comments

Comments
 (0)