@dudko.dev/agent 0.0.60 → 0.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.js +74 -74
- package/dist/index.cjs +61 -61
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +61 -61
- package/dist/subagent-worker.js +55 -55
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -909,7 +909,7 @@ agent.getToolApprovalMode()
|
|
|
909
909
|
|
|
910
910
|
`onRequest` may also answer **`{ park: true }`**: "the answer will come later, from outside the run" - the run parks at the end of the tool round and is resumed with the answer (needs `persistence.journal`; see [Parking a run](#parking-a-run-a-persons-answer-or-a-result-from-outside)). Without the journal it is a denial.
|
|
911
911
|
|
|
912
|
-
Each call is decided in this order: (1)
|
|
912
|
+
Each call is decided in this order: (1) the most specific matching rule — exact name over the longest `*` glob — says `allow`, `ask` or `deny`: `ask` asks EVERY time, and no earlier "always allow" answers it ("ask every time" means every time; the request and its `tool.approval-requested` event carry `rule`, the rule's name or pattern, so a UI need not offer "always allow" there); (2) the mode refusing the call (`read-only`, a tool that may write) - an earlier "always allow" does not outrank it; (3) a tool approved earlier with `remember: true` runs; (4) the mode: `autopilot` allows, `read-only` allows read-only tools and denies the rest, `ask-writes` allows read-only tools and asks for the rest, `ask-all` asks. Built-in tools are always allowed. An `ask` without `onRequest` is a denial. The browser sibling decides in the same order.
|
|
913
913
|
|
|
914
914
|
A tool is read-only when its MCP descriptor says `annotations.readOnlyHint: true`, or when a native tool is marked with `markReadOnly(tool)` (`isReadOnlyTool(tool)` checks). The request shows the input after `inputSanitizer`.
|
|
915
915
|
|