Skip to content

Commit 4f054ce

Browse files
authored
Merge pull request #61 from drivecore/feature/text-editor-tool
Add textEditor tool that combines readFile and updateFile functionality
2 parents 322f49c + 7265642 commit 4f054ce

File tree

12 files changed

+659
-466
lines changed

12 files changed

+659
-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

.changeset/text-editor.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mycoder-agent": minor
3+
---
4+
5+
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: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +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';
9-
import { updateFileTool } from './io/updateFile.js';
8+
import { textEditorTool } from './io/textEditor.js';
109
import { respawnTool } from './system/respawn.js';
1110
import { sequenceCompleteTool } from './system/sequenceComplete.js';
1211
import { shellMessageTool } from './system/shellMessage.js';
@@ -15,9 +14,8 @@ import { sleepTool } from './system/sleep.js';
1514

1615
export function getTools(): Tool[] {
1716
return [
17+
textEditorTool,
1818
subAgentTool,
19-
readFileTool,
20-
updateFileTool,
2119
userPromptTool,
2220
sequenceCompleteTool,
2321
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)