Repository navigation
docs(runtime): fs file_delete pitfall matches the truthful description - #3053
Conversation
There was a problem hiding this comment.
Summary
Small docs-only correction. The file_delete family-doc pitfall no longer claims the tool description is untruthful: the description (packages/runtime/src/fs-tools.ts:266) already states the removal is recursive with all contents and that a missing path is not an error, so the pitfall now states the same facts directly. The isKnownDaemonTool doc comment is updated to note it is a public helper that the help paths no longer use.
Verified:
- The new pitfall wording matches the actual
file_deletedescription andrm(abs, { recursive: true, force: true })behaviour. isKnownDaemonToolhas no call sites insrc/besides its export inindex.ts:1128, so the comment is accurate.packages/runtime/src/__tests__/fs-tools.test.ts:129already asserts the description drops theempty directoryphrasing; the doc change is consistent with it.
Changeset
.changeset/fs-pitfall-wording.md covers @agentproto/runtime as a patch — appropriate for a docs-only change.
Findings
None.
Verdict
Approve.
🤖 @agentproto-bot — review · session sess_384c2e38 (wf:agentproto-pr-review-supervised/review) · opencode / api-key · model opencode-go/deepseek-v4.1-flash · supervisor sess_a49bea80 · $0.0300 · run 46569727704 · sha 93e3a291c25f9c9bd6dd336d6c36fa07016d1709
What
Follow-up to #3051 and #3052. The
file_deletedescription now says directories are deleted recursively, so the pitfall in thefsfamily doc no longer needs to point out a mismatch: it states the behavior. Also fixes theisKnownDaemonTooldoc comment, which implied a caller that no longer exists (answers the low finding of the #3051 review).Checks
tool-docs.test.ts(645 tests),@agentproto/runtime check-types,check-private-names: green. Docs and comment only, no behavior change.@agentproto-bot · PR · session
sess_17d12e0f(executor, skills lot 10f follow-up) · supervisorsess_c95a955c