Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fs-pitfall-wording.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@agentproto/runtime": patch
---

Update the `file_delete` pitfall in the fs family doc now that the tool description is truthful, and fix the `isKnownDaemonTool` doc comment.
2 changes: 1 addition & 1 deletion packages/runtime/src/tool-docs/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const fsToolDoc = defineToolFamilyDoc({
],
returns: "The text `ok`, also when the path did not exist.",
pitfalls: [
"The description says \"file or empty directory\" but the removal is recursive and forced: a directory is deleted with everything in it, and a missing path is not an error.",
"A directory is deleted recursively, with everything in it, and a missing path is not an error.",
"There is no trash and no confirmation: check the path with `directory_list` first.",
],
},
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/tool-help-family.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function suggestToolNames(name: string, limit = MAX_TOOL_SUGGESTIONS): st
.map(entry => entry.tool)
}

/** True when `name` is a real daemon tool (so a missing doc is not a wrong name). */
/** True when `name` is a real daemon tool name. Public helper; the help paths no longer call it, since every tool has a family doc. */
export function isKnownDaemonTool(name: string): boolean {
return (DAEMON_TOOL_NAMES as readonly string[]).includes(name)
}
Expand Down
Loading