Skip to content

Commit b8cbe8d

Browse files
authored
Merge pull request #33 from minorcell/dev
feat: 移除 run_bun 工具及相关文档,简化工具集
2 parents 08e8e50 + ff443fc commit b8cbe8d

7 files changed

Lines changed: 2 additions & 384 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ memo-cli 提供现代化的终端用户界面,包含以下特性:
6666
## 内置工具概览
6767

6868
- **文件系统**:`read` / `write` / `edit` / `glob` / `grep`,提供偏移、上下文、全局替换等能力。
69-
- **系统执行**:`bash` 直接运行 Shell;`run_bun` 在沙箱里执行 JS/TS(bubblewrap 或 `sandbox-exec`,可配置网络)。
69+
- **系统执行**:`bash` 直接运行 Shell。
7070
- **网络获取**:`webfetch` 支持 http/https/data,10 秒超时、512 KB 限制,自动清洗 HTML。
7171
- **辅助工具**:`save_memory`(写入 `~/.memo/memo.md`)、`todo` 管理、`time` 查询。
7272
- **MCP 外部工具**:支持 stdio 或 Streamable HTTP,工具名前会加 `<server>_` 前缀自动注入系统提示词。
@@ -278,7 +278,6 @@ memo-cli/
278278
279279
## 安全特性
280280
281-
- `run_bun` 依赖 bubblewrap 或 `sandbox-exec`,并可控制网络访问。
282281
- `webfetch`、`bash` 等工具限制超时时间、输出大小与允许路径,降低风险。
283282
- MCP 工具统一通过配置注入,避免在提示词中硬编码密钥。
284283

‎docs/design/memo-cli-ui-design.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
### 2.3 工具与 MCP
2727

28-
- 内置工具:bash/run_bun/read/write/edit/glob/grep/webfetch/save_memory/time/todo。
28+
- 内置工具:bash/read/write/edit/glob/grep/webfetch/save_memory/time/todo。
2929
- MCP 外部工具来自 config.mcp*servers,自动注入 prompt,命名为 <server>*<tool>。
3030
- 工具返回以文本为主,UI 需做扁平化展示。
3131

‎docs/tool/run_bun.md‎

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

‎packages/core/src/runtime/prompt.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
- **read**: `{"file_path": "/abs/...", "offset": 0, "limit": 200}`
9898
- **write**: `{"file_path": "/abs/...", "content": "..."}`
9999
- **edit**: `{"file_path": "/abs/...", "old_string": "...", "new_string": "...", "replace_all": false}`
100-
- **run_bun**: `{"code": "..."}`
101100
- **glob**: `{"pattern": "**/*.ts", "path": "/curr/dir"}`
102101
- **grep**: `{"pattern": "string", "path": "/dir", "glob": "*.ts", "-i": false, "-C": 2}`
103102
- **webfetch**: `{"url": "..."}`

‎packages/tools/src/index.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,9 @@ import { timeTool } from '@memo/tools/tools/time'
1010
import { readTool } from '@memo/tools/tools/read'
1111
import { writeTool } from '@memo/tools/tools/write'
1212

13-
import { runBunTool } from '@memo/tools/tools/run_bun'
14-
1513
/** 对外暴露的工具集合,供 Agent 通过 tool name 查找。 */
1614
export const TOOLKIT: Record<ToolName, McpTool<any>> = {
1715
bash: bashTool,
18-
run_bun: runBunTool,
1916
read: readTool,
2017
write: writeTool,
2118
edit: editTool,

‎packages/tools/src/tools/run_bun.test.ts‎

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

0 commit comments

Comments
 (0)