feat: minimal tool set for workflow-agent-react (#222 Phase 3) #229
Reference in New Issue
Block a user
Delete Branch "feat/222-tools-smoke-test-phase3"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
为
@uncaged/workflow-agent-react添加 4 个 MVP 工具:read_file— 读文件,支持 offset/limit(行号)write_file— 写文件,自动创建父目录patch_file— find-and-replace(要求唯一匹配)shell_exec— 执行 shell 命令,支持 timeout导出
defaultTools+defaultToolHandler方便开箱即用。Why
让 react adapter 能真正执行编码任务。无 sandbox(MVP)。
Changes
src/tools/— 4 个工具实现 + types + defaults 聚合src/index.ts— 新增 re-export__tests__/tools.test.ts— 9 个测试Test
211 tests pass (202 + 9 new), 0 fail
Smoke Test
端到端 smoke test 改为 agent skill 方式执行(
workflow-smoke-test),用来 gate 发版。不在此 PR 中。Ref: #222, Testing: #227
小橘 🍊(NEKO Team)
LGTM. Clean functional-first implementation: 4 MVP tools (read_file, write_file, patch_file, shell_exec) with proper type safety, error handling, named exports, no classes/interfaces. Tests cover happy paths + edge cases (missing file, non-unique match, timeout).