Skip to content

Commit 7265642

Browse files
committed
remove old old read and update file tools.
1 parent a4331b8 commit 7265642

File tree

9 files changed

+6
-466
lines changed

9 files changed

+6
-466
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add textEditor tool that combines readFile and updateFile functionality

packages/agent/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@
4848
"@mozilla/readability": "^0.5.0",
4949
"@playwright/test": "^1.50.1",
5050
"@vitest/browser": "^3.0.5",
51-
"chalk": "^5",
51+
"chalk": "^5.4.1",
5252
"dotenv": "^16",
5353
"jsdom": "^26.0.0",
5454
"playwright": "^1.50.1",
5555
"uuid": "^11",
56-
"zod": "^3",
56+
"zod": "^3.24.2",
5757
"zod-to-json-schema": "^3"
5858
},
5959
"devDependencies": {

packages/agent/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Tools - IO
2-
export * from './tools/io/readFile.js';
3-
export * from './tools/io/updateFile.js';
2+
43
export * from './tools/io/fetch.js';
54

65
// Tools - System

packages/agent/src/tools/getTools.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import { browseStartTool } from './browser/browseStart.js';
55
import { subAgentTool } from './interaction/subAgent.js';
66
import { userPromptTool } from './interaction/userPrompt.js';
77
import { fetchTool } from './io/fetch.js';
8-
import { readFileTool } from './io/readFile.js';
98
import { textEditorTool } from './io/textEditor.js';
10-
import { updateFileTool } from './io/updateFile.js';
119
import { respawnTool } from './system/respawn.js';
1210
import { sequenceCompleteTool } from './system/sequenceComplete.js';
1311
import { shellMessageTool } from './system/shellMessage.js';
@@ -18,8 +16,6 @@ export function getTools(): Tool[] {
1816
return [
1917
textEditorTool,
2018
subAgentTool,
21-
readFileTool,
22-
updateFileTool,
2319
userPromptTool,
2420
sequenceCompleteTool,
2521
fetchTool,

packages/agent/src/tools/io/readFile.test.ts

Lines changed: 0 additions & 38 deletions
This file was deleted.

packages/agent/src/tools/io/readFile.ts

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)