@namzu/sdk 65.3.0 → 67.0.0
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/CHANGELOG.md +153 -0
- package/dist/account/lock.d.ts +4 -12
- package/dist/account/lock.d.ts.map +1 -1
- package/dist/account/lock.js +5 -140
- package/dist/account/lock.js.map +1 -1
- package/dist/account/registry.d.ts.map +1 -1
- package/dist/account/registry.js +50 -6
- package/dist/account/registry.js.map +1 -1
- package/dist/account/types.d.ts +7 -5
- package/dist/account/types.d.ts.map +1 -1
- package/dist/account/types.js +6 -7
- package/dist/account/types.js.map +1 -1
- package/dist/authorization/dangerous-commands.d.ts +64 -0
- package/dist/authorization/dangerous-commands.d.ts.map +1 -0
- package/dist/authorization/dangerous-commands.js +479 -0
- package/dist/authorization/dangerous-commands.js.map +1 -0
- package/dist/authorization/gate.d.ts.map +1 -1
- package/dist/authorization/gate.js +19 -5
- package/dist/authorization/gate.js.map +1 -1
- package/dist/authorization/protected-paths.d.ts +11 -6
- package/dist/authorization/protected-paths.d.ts.map +1 -1
- package/dist/authorization/protected-paths.js +13 -8
- package/dist/authorization/protected-paths.js.map +1 -1
- package/dist/authorization/readonly-commands.d.ts +6 -1
- package/dist/authorization/readonly-commands.d.ts.map +1 -1
- package/dist/authorization/readonly-commands.js +35 -1
- package/dist/authorization/readonly-commands.js.map +1 -1
- package/dist/authorization/removal.d.ts +10 -0
- package/dist/authorization/removal.d.ts.map +1 -1
- package/dist/authorization/removal.js +7 -7
- package/dist/authorization/removal.js.map +1 -1
- package/dist/authorization/rules.d.ts +10 -0
- package/dist/authorization/rules.d.ts.map +1 -1
- package/dist/authorization/rules.js +60 -14
- package/dist/authorization/rules.js.map +1 -1
- package/dist/authorization/shell-lexer.d.ts +10 -0
- package/dist/authorization/shell-lexer.d.ts.map +1 -1
- package/dist/authorization/shell-lexer.js +15 -0
- package/dist/authorization/shell-lexer.js.map +1 -1
- package/dist/bridge/acp/permission.d.ts +5 -0
- package/dist/bridge/acp/permission.d.ts.map +1 -1
- package/dist/bridge/acp/permission.js.map +1 -1
- package/dist/bridge/acp/server.d.ts +8 -1
- package/dist/bridge/acp/server.d.ts.map +1 -1
- package/dist/bridge/acp/server.js +48 -6
- package/dist/bridge/acp/server.js.map +1 -1
- package/dist/compaction/context-breakdown.d.ts +25 -6
- package/dist/compaction/context-breakdown.d.ts.map +1 -1
- package/dist/compaction/context-breakdown.js +27 -7
- package/dist/compaction/context-breakdown.js.map +1 -1
- package/dist/compaction/dangling.d.ts.map +1 -1
- package/dist/compaction/dangling.js +2 -0
- package/dist/compaction/dangling.js.map +1 -1
- package/dist/compaction/extractor.d.ts +7 -1
- package/dist/compaction/extractor.d.ts.map +1 -1
- package/dist/compaction/extractor.js +8 -1
- package/dist/compaction/extractor.js.map +1 -1
- package/dist/compaction/index.d.ts +1 -1
- package/dist/compaction/index.d.ts.map +1 -1
- package/dist/compaction/index.js +1 -1
- package/dist/compaction/index.js.map +1 -1
- package/dist/compaction/managers/structured.js +2 -2
- package/dist/compaction/managers/structured.js.map +1 -1
- package/dist/compaction/manual.d.ts.map +1 -1
- package/dist/compaction/manual.js +11 -6
- package/dist/compaction/manual.js.map +1 -1
- package/dist/compaction/model-summary.d.ts.map +1 -1
- package/dist/compaction/model-summary.js +7 -1
- package/dist/compaction/model-summary.js.map +1 -1
- package/dist/compaction/summary.d.ts +13 -2
- package/dist/compaction/summary.d.ts.map +1 -1
- package/dist/compaction/summary.js +46 -3
- package/dist/compaction/summary.js.map +1 -1
- package/dist/constants/tools/index.d.ts +18 -1
- package/dist/constants/tools/index.d.ts.map +1 -1
- package/dist/constants/tools/index.js +28 -16
- package/dist/constants/tools/index.js.map +1 -1
- package/dist/manager/session/turn-recorder.d.ts +6 -0
- package/dist/manager/session/turn-recorder.d.ts.map +1 -1
- package/dist/manager/session/turn-recorder.js +29 -1
- package/dist/manager/session/turn-recorder.js.map +1 -1
- package/dist/network/audit.d.ts +49 -0
- package/dist/network/audit.d.ts.map +1 -0
- package/dist/network/audit.js +84 -0
- package/dist/network/audit.js.map +1 -0
- package/dist/network/clock.d.ts +21 -0
- package/dist/network/clock.d.ts.map +1 -0
- package/dist/network/clock.js +51 -0
- package/dist/network/clock.js.map +1 -0
- package/dist/network/discovery-mdns.d.ts +120 -0
- package/dist/network/discovery-mdns.d.ts.map +1 -0
- package/dist/network/discovery-mdns.js +442 -0
- package/dist/network/discovery-mdns.js.map +1 -0
- package/dist/network/discovery.d.ts +63 -0
- package/dist/network/discovery.d.ts.map +1 -0
- package/dist/network/discovery.js +163 -0
- package/dist/network/discovery.js.map +1 -0
- package/dist/network/fingerprint.d.ts +73 -0
- package/dist/network/fingerprint.d.ts.map +1 -0
- package/dist/network/fingerprint.js +208 -0
- package/dist/network/fingerprint.js.map +1 -0
- package/dist/network/identity.d.ts +38 -0
- package/dist/network/identity.d.ts.map +1 -0
- package/dist/network/identity.js +71 -0
- package/dist/network/identity.js.map +1 -0
- package/dist/network/index.d.ts +39 -0
- package/dist/network/index.d.ts.map +1 -0
- package/dist/network/index.js +25 -0
- package/dist/network/index.js.map +1 -0
- package/dist/network/join.d.ts +69 -0
- package/dist/network/join.d.ts.map +1 -0
- package/dist/network/join.js +136 -0
- package/dist/network/join.js.map +1 -0
- package/dist/network/mail-policy.d.ts +97 -0
- package/dist/network/mail-policy.d.ts.map +1 -0
- package/dist/network/mail-policy.js +147 -0
- package/dist/network/mail-policy.js.map +1 -0
- package/dist/network/membership.d.ts +76 -0
- package/dist/network/membership.d.ts.map +1 -0
- package/dist/network/membership.js +225 -0
- package/dist/network/membership.js.map +1 -0
- package/dist/network/roster.d.ts +59 -0
- package/dist/network/roster.d.ts.map +1 -0
- package/dist/network/roster.js +120 -0
- package/dist/network/roster.js.map +1 -0
- package/dist/network/service.d.ts +303 -0
- package/dist/network/service.d.ts.map +1 -0
- package/dist/network/service.js +1891 -0
- package/dist/network/service.js.map +1 -0
- package/dist/network/store.d.ts +141 -0
- package/dist/network/store.d.ts.map +1 -0
- package/dist/network/store.js +198 -0
- package/dist/network/store.js.map +1 -0
- package/dist/network/transport.d.ts +96 -0
- package/dist/network/transport.d.ts.map +1 -0
- package/dist/network/transport.js +342 -0
- package/dist/network/transport.js.map +1 -0
- package/dist/network/wire.d.ts +345 -0
- package/dist/network/wire.d.ts.map +1 -0
- package/dist/network/wire.js +212 -0
- package/dist/network/wire.js.map +1 -0
- package/dist/network/x509.d.ts +28 -0
- package/dist/network/x509.d.ts.map +1 -0
- package/dist/network/x509.js +84 -0
- package/dist/network/x509.js.map +1 -0
- package/dist/pals/activity/causality.d.ts.map +1 -1
- package/dist/pals/activity/causality.js +14 -2
- package/dist/pals/activity/causality.js.map +1 -1
- package/dist/peers/endpoint.d.ts.map +1 -1
- package/dist/peers/endpoint.js +6 -0
- package/dist/peers/endpoint.js.map +1 -1
- package/dist/peers/envelope.d.ts +18 -0
- package/dist/peers/envelope.d.ts.map +1 -1
- package/dist/peers/envelope.js +68 -5
- package/dist/peers/envelope.js.map +1 -1
- package/dist/peers/index.d.ts +5 -4
- package/dist/peers/index.d.ts.map +1 -1
- package/dist/peers/index.js +3 -2
- package/dist/peers/index.js.map +1 -1
- package/dist/peers/mode-word.d.ts +10 -0
- package/dist/peers/mode-word.d.ts.map +1 -0
- package/dist/peers/mode-word.js +19 -0
- package/dist/peers/mode-word.js.map +1 -0
- package/dist/peers/protocol.d.ts +42 -0
- package/dist/peers/protocol.d.ts.map +1 -1
- package/dist/peers/protocol.js +22 -1
- package/dist/peers/protocol.js.map +1 -1
- package/dist/peers/record.d.ts +8 -0
- package/dist/peers/record.d.ts.map +1 -1
- package/dist/peers/record.js +5 -0
- package/dist/peers/record.js.map +1 -1
- package/dist/plugin/session-hook-env.d.ts.map +1 -1
- package/dist/plugin/session-hook-env.js +22 -2
- package/dist/plugin/session-hook-env.js.map +1 -1
- package/dist/plugin/shell-hook.d.ts +16 -2
- package/dist/plugin/shell-hook.d.ts.map +1 -1
- package/dist/plugin/shell-hook.js +183 -14
- package/dist/plugin/shell-hook.js.map +1 -1
- package/dist/prompt/coding-agent-doctrine.d.ts +4 -2
- package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -1
- package/dist/prompt/coding-agent-doctrine.js +33 -38
- package/dist/prompt/coding-agent-doctrine.js.map +1 -1
- package/dist/public-runtime.d.ts +14 -6
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +22 -5
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-tools.d.ts +3 -2
- package/dist/public-tools.d.ts.map +1 -1
- package/dist/public-tools.js +2 -2
- package/dist/public-tools.js.map +1 -1
- package/dist/public-types.d.ts +7 -2
- package/dist/public-types.d.ts.map +1 -1
- package/dist/runtime/jobs/registry.d.ts +29 -1
- package/dist/runtime/jobs/registry.d.ts.map +1 -1
- package/dist/runtime/jobs/registry.js +64 -0
- package/dist/runtime/jobs/registry.js.map +1 -1
- package/dist/runtime/query/auto-review/classifier.d.ts +30 -6
- package/dist/runtime/query/auto-review/classifier.d.ts.map +1 -1
- package/dist/runtime/query/auto-review/classifier.js +40 -12
- package/dist/runtime/query/auto-review/classifier.js.map +1 -1
- package/dist/runtime/query/auto-review/feedback.d.ts +37 -0
- package/dist/runtime/query/auto-review/feedback.d.ts.map +1 -0
- package/dist/runtime/query/auto-review/feedback.js +45 -0
- package/dist/runtime/query/auto-review/feedback.js.map +1 -0
- package/dist/runtime/query/auto-review/git-status.d.ts +59 -0
- package/dist/runtime/query/auto-review/git-status.d.ts.map +1 -0
- package/dist/runtime/query/auto-review/git-status.js +379 -0
- package/dist/runtime/query/auto-review/git-status.js.map +1 -0
- package/dist/runtime/query/auto-review/index.d.ts +3 -3
- package/dist/runtime/query/auto-review/index.d.ts.map +1 -1
- package/dist/runtime/query/auto-review/index.js +2 -2
- package/dist/runtime/query/auto-review/index.js.map +1 -1
- package/dist/runtime/query/auto-review/prompt.d.ts.map +1 -1
- package/dist/runtime/query/auto-review/prompt.js +6 -1
- package/dist/runtime/query/auto-review/prompt.js.map +1 -1
- package/dist/runtime/query/auto-review/transcript.d.ts +14 -1
- package/dist/runtime/query/auto-review/transcript.d.ts.map +1 -1
- package/dist/runtime/query/auto-review/transcript.js +48 -2
- package/dist/runtime/query/auto-review/transcript.js.map +1 -1
- package/dist/runtime/query/executor/tool-call-admission.d.ts.map +1 -1
- package/dist/runtime/query/executor/tool-call-admission.js +40 -3
- package/dist/runtime/query/executor/tool-call-admission.js.map +1 -1
- package/dist/runtime/query/executor.d.ts +32 -10
- package/dist/runtime/query/executor.d.ts.map +1 -1
- package/dist/runtime/query/executor.js +78 -17
- package/dist/runtime/query/executor.js.map +1 -1
- package/dist/runtime/query/index.d.ts +9 -0
- package/dist/runtime/query/index.d.ts.map +1 -1
- package/dist/runtime/query/index.js +54 -17
- package/dist/runtime/query/index.js.map +1 -1
- package/dist/runtime/query/iteration/index.d.ts.map +1 -1
- package/dist/runtime/query/iteration/index.js +17 -3
- package/dist/runtime/query/iteration/index.js.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/compaction.js +5 -2
- package/dist/runtime/query/iteration/phases/compaction.js.map +1 -1
- package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/context.js +5 -0
- package/dist/runtime/query/iteration/phases/context.js.map +1 -1
- package/dist/runtime/query/iteration/phases/per-call-review.d.ts +1 -2
- package/dist/runtime/query/iteration/phases/per-call-review.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/per-call-review.js +2 -5
- package/dist/runtime/query/iteration/phases/per-call-review.js.map +1 -1
- package/dist/runtime/query/iteration/phases/tool-review.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/tool-review.js +6 -1
- package/dist/runtime/query/iteration/phases/tool-review.js.map +1 -1
- package/dist/runtime/query/pasted-frames.d.ts +34 -0
- package/dist/runtime/query/pasted-frames.d.ts.map +1 -0
- package/dist/runtime/query/pasted-frames.js +108 -0
- package/dist/runtime/query/pasted-frames.js.map +1 -0
- package/dist/runtime/query/path-escalation.d.ts +6 -0
- package/dist/runtime/query/path-escalation.d.ts.map +1 -1
- package/dist/runtime/query/path-escalation.js +15 -3
- package/dist/runtime/query/path-escalation.js.map +1 -1
- package/dist/runtime/query/request-interrupted-turns.d.ts +20 -0
- package/dist/runtime/query/request-interrupted-turns.d.ts.map +1 -0
- package/dist/runtime/query/request-interrupted-turns.js +43 -0
- package/dist/runtime/query/request-interrupted-turns.js.map +1 -0
- package/dist/runtime/query/review-policy.d.ts +16 -6
- package/dist/runtime/query/review-policy.d.ts.map +1 -1
- package/dist/runtime/query/review-policy.js +111 -15
- package/dist/runtime/query/review-policy.js.map +1 -1
- package/dist/runtime/query/turn/outcome-ledger.d.ts +9 -0
- package/dist/runtime/query/turn/outcome-ledger.d.ts.map +1 -1
- package/dist/runtime/query/turn/outcome-ledger.js +94 -6
- package/dist/runtime/query/turn/outcome-ledger.js.map +1 -1
- package/dist/runtime/query/unanswered.d.ts +19 -0
- package/dist/runtime/query/unanswered.d.ts.map +1 -0
- package/dist/runtime/query/unanswered.js +25 -0
- package/dist/runtime/query/unanswered.js.map +1 -0
- package/dist/runtime/system-events.d.ts +4 -4
- package/dist/runtime/system-events.d.ts.map +1 -1
- package/dist/runtime/system-events.js +2 -0
- package/dist/runtime/system-events.js.map +1 -1
- package/dist/session/workspace/git-worktree.d.ts +8 -0
- package/dist/session/workspace/git-worktree.d.ts.map +1 -1
- package/dist/session/workspace/git-worktree.js +21 -3
- package/dist/session/workspace/git-worktree.js.map +1 -1
- package/dist/store/evidence/source-kind.d.ts +1 -1
- package/dist/store/evidence/source-kind.d.ts.map +1 -1
- package/dist/store/evidence/source-kind.js +1 -1
- package/dist/store/evidence/source-kind.js.map +1 -1
- package/dist/store/session-index/sqlite.d.ts.map +1 -1
- package/dist/store/session-index/sqlite.js +42 -3
- package/dist/store/session-index/sqlite.js.map +1 -1
- package/dist/store/session-log/disk.js +1 -1
- package/dist/store/session-log/disk.js.map +1 -1
- package/dist/store/session-log/lease.d.ts.map +1 -1
- package/dist/store/session-log/lease.js +3 -2
- package/dist/store/session-log/lease.js.map +1 -1
- package/dist/tools/admit-facts.d.ts.map +1 -1
- package/dist/tools/admit-facts.js +2 -0
- package/dist/tools/admit-facts.js.map +1 -1
- package/dist/tools/builtins/bash.d.ts +10 -2
- package/dist/tools/builtins/bash.d.ts.map +1 -1
- package/dist/tools/builtins/bash.js +56 -17
- package/dist/tools/builtins/bash.js.map +1 -1
- package/dist/tools/builtins/browser-local.d.ts +117 -0
- package/dist/tools/builtins/browser-local.d.ts.map +1 -0
- package/dist/tools/builtins/browser-local.js +437 -0
- package/dist/tools/builtins/browser-local.js.map +1 -0
- package/dist/tools/builtins/browser.d.ts +18 -1
- package/dist/tools/builtins/browser.d.ts.map +1 -1
- package/dist/tools/builtins/browser.js +84 -6
- package/dist/tools/builtins/browser.js.map +1 -1
- package/dist/tools/builtins/computer-use-window-id.d.ts +16 -0
- package/dist/tools/builtins/computer-use-window-id.d.ts.map +1 -0
- package/dist/tools/builtins/computer-use-window-id.js +52 -0
- package/dist/tools/builtins/computer-use-window-id.js.map +1 -0
- package/dist/tools/builtins/computer-use.d.ts +65 -7
- package/dist/tools/builtins/computer-use.d.ts.map +1 -1
- package/dist/tools/builtins/computer-use.js +384 -71
- package/dist/tools/builtins/computer-use.js.map +1 -1
- package/dist/tools/builtins/content-fingerprint.d.ts +6 -0
- package/dist/tools/builtins/content-fingerprint.d.ts.map +1 -1
- package/dist/tools/builtins/content-fingerprint.js +7 -1
- package/dist/tools/builtins/content-fingerprint.js.map +1 -1
- package/dist/tools/builtins/edit.d.ts.map +1 -1
- package/dist/tools/builtins/edit.js +89 -7
- package/dist/tools/builtins/edit.js.map +1 -1
- package/dist/tools/builtins/file-write-result.d.ts.map +1 -1
- package/dist/tools/builtins/file-write-result.js +2 -1
- package/dist/tools/builtins/file-write-result.js.map +1 -1
- package/dist/tools/builtins/grep.js +1 -1
- package/dist/tools/builtins/grep.js.map +1 -1
- package/dist/tools/builtins/job.d.ts.map +1 -1
- package/dist/tools/builtins/job.js +4 -2
- package/dist/tools/builtins/job.js.map +1 -1
- package/dist/tools/builtins/monitor.d.ts.map +1 -1
- package/dist/tools/builtins/monitor.js +6 -1
- package/dist/tools/builtins/monitor.js.map +1 -1
- package/dist/tools/builtins/search-tools.d.ts +12 -1
- package/dist/tools/builtins/search-tools.d.ts.map +1 -1
- package/dist/tools/builtins/search-tools.js +166 -20
- package/dist/tools/builtins/search-tools.js.map +1 -1
- package/dist/tools/builtins/shell-read-credit.d.ts +18 -6
- package/dist/tools/builtins/shell-read-credit.d.ts.map +1 -1
- package/dist/tools/builtins/shell-read-credit.js +95 -27
- package/dist/tools/builtins/shell-read-credit.js.map +1 -1
- package/dist/tools/builtins/wait-for-job.d.ts.map +1 -1
- package/dist/tools/builtins/wait-for-job.js +14 -3
- package/dist/tools/builtins/wait-for-job.js.map +1 -1
- package/dist/tools/builtins/web-guidance.d.ts +6 -0
- package/dist/tools/builtins/web-guidance.d.ts.map +1 -1
- package/dist/tools/builtins/web-guidance.js +6 -0
- package/dist/tools/builtins/web-guidance.js.map +1 -1
- package/dist/tools/builtins/web.d.ts.map +1 -1
- package/dist/tools/builtins/web.js +2 -1
- package/dist/tools/builtins/web.js.map +1 -1
- package/dist/tools/builtins/write-file.d.ts.map +1 -1
- package/dist/tools/builtins/write-file.js +32 -2
- package/dist/tools/builtins/write-file.js.map +1 -1
- package/dist/tools/command-shell.d.ts +1 -1
- package/dist/tools/command-shell.d.ts.map +1 -1
- package/dist/tools/command-shell.js +6 -8
- package/dist/tools/command-shell.js.map +1 -1
- package/dist/tools/defineTool.d.ts +2 -0
- package/dist/tools/defineTool.d.ts.map +1 -1
- package/dist/tools/defineTool.js +17 -1
- package/dist/tools/defineTool.js.map +1 -1
- package/dist/tools/schedules/index.d.ts +1 -0
- package/dist/tools/schedules/index.d.ts.map +1 -1
- package/dist/tools/schedules/index.js +1 -0
- package/dist/tools/schedules/index.js.map +1 -1
- package/dist/tools/schedules/loop-tool.d.ts.map +1 -1
- package/dist/tools/schedules/loop-tool.js +8 -6
- package/dist/tools/schedules/loop-tool.js.map +1 -1
- package/dist/tools/schedules/present.js +1 -1
- package/dist/tools/schedules/present.js.map +1 -1
- package/dist/tools/schedules/timer-tools.d.ts +36 -0
- package/dist/tools/schedules/timer-tools.d.ts.map +1 -0
- package/dist/tools/schedules/timer-tools.js +234 -0
- package/dist/tools/schedules/timer-tools.js.map +1 -0
- package/dist/tools/schedules/types.d.ts +68 -3
- package/dist/tools/schedules/types.d.ts.map +1 -1
- package/dist/tools/task/create.d.ts.map +1 -1
- package/dist/tools/task/create.js +2 -0
- package/dist/tools/task/create.js.map +1 -1
- package/dist/toolsets/manager.d.ts +49 -7
- package/dist/toolsets/manager.d.ts.map +1 -1
- package/dist/toolsets/manager.js +239 -40
- package/dist/toolsets/manager.js.map +1 -1
- package/dist/turn/evidence-query.d.ts +18 -1
- package/dist/turn/evidence-query.d.ts.map +1 -1
- package/dist/turn/evidence-query.js +177 -35
- package/dist/turn/evidence-query.js.map +1 -1
- package/dist/turn/evidence-recall.d.ts +8 -1
- package/dist/turn/evidence-recall.d.ts.map +1 -1
- package/dist/turn/evidence-recall.js +82 -22
- package/dist/turn/evidence-recall.js.map +1 -1
- package/dist/turn/history-shed.d.ts +15 -0
- package/dist/turn/history-shed.d.ts.map +1 -0
- package/dist/turn/history-shed.js +23 -0
- package/dist/turn/history-shed.js.map +1 -0
- package/dist/types/acp/index.d.ts +26 -0
- package/dist/types/acp/index.d.ts.map +1 -1
- package/dist/types/authorization/index.d.ts +9 -1
- package/dist/types/authorization/index.d.ts.map +1 -1
- package/dist/types/authorization/index.js +11 -2
- package/dist/types/authorization/index.js.map +1 -1
- package/dist/types/hitl/index.d.ts +10 -0
- package/dist/types/hitl/index.d.ts.map +1 -1
- package/dist/types/hitl/index.js.map +1 -1
- package/dist/types/message/index.d.ts +56 -1
- package/dist/types/message/index.d.ts.map +1 -1
- package/dist/types/message/index.js +2 -1
- package/dist/types/message/index.js.map +1 -1
- package/dist/types/permission/index.d.ts +14 -0
- package/dist/types/permission/index.d.ts.map +1 -1
- package/dist/types/permission/index.js +14 -0
- package/dist/types/permission/index.js.map +1 -1
- package/dist/types/plugin/index.d.ts +148 -1
- package/dist/types/plugin/index.d.ts.map +1 -1
- package/dist/types/plugin/index.js +9 -0
- package/dist/types/plugin/index.js.map +1 -1
- package/dist/types/provider/index.d.ts +1 -0
- package/dist/types/provider/index.d.ts.map +1 -1
- package/dist/types/provider/interface.d.ts +12 -0
- package/dist/types/provider/interface.d.ts.map +1 -1
- package/dist/types/provider/limits.d.ts +33 -0
- package/dist/types/provider/limits.d.ts.map +1 -0
- package/dist/types/provider/limits.js +7 -0
- package/dist/types/provider/limits.js.map +1 -0
- package/dist/types/tool/index.d.ts +30 -0
- package/dist/types/tool/index.d.ts.map +1 -1
- package/dist/types/tool/index.js.map +1 -1
- package/dist/types/tool/presentation.d.ts +4 -0
- package/dist/types/tool/presentation.d.ts.map +1 -1
- package/dist/utils/file-lock.d.ts +88 -0
- package/dist/utils/file-lock.d.ts.map +1 -0
- package/dist/utils/file-lock.js +281 -0
- package/dist/utils/file-lock.js.map +1 -0
- package/dist/utils/state-backup.d.ts +87 -0
- package/dist/utils/state-backup.d.ts.map +1 -0
- package/dist/utils/state-backup.js +272 -0
- package/dist/utils/state-backup.js.map +1 -0
- package/dist/utils/temp-sweep.d.ts +66 -0
- package/dist/utils/temp-sweep.d.ts.map +1 -0
- package/dist/utils/temp-sweep.js +311 -0
- package/dist/utils/temp-sweep.js.map +1 -0
- package/dist/utils/temp.d.ts +14 -0
- package/dist/utils/temp.d.ts.map +1 -1
- package/dist/utils/temp.js +70 -2
- package/dist/utils/temp.js.map +1 -1
- package/package.json +1 -1
- package/src/account/lock.ts +13 -133
- package/src/account/registry.ts +75 -21
- package/src/account/types.ts +8 -9
- package/src/authorization/dangerous-commands.ts +542 -0
- package/src/authorization/gate.ts +19 -5
- package/src/authorization/protected-paths.ts +13 -8
- package/src/authorization/readonly-commands.ts +35 -1
- package/src/authorization/removal.ts +7 -7
- package/src/authorization/rules.ts +75 -15
- package/src/authorization/shell-lexer.ts +19 -0
- package/src/bridge/acp/permission.ts +2 -0
- package/src/bridge/acp/server.ts +66 -6
- package/src/compaction/context-breakdown.ts +53 -11
- package/src/compaction/dangling.ts +2 -0
- package/src/compaction/extractor.ts +9 -1
- package/src/compaction/index.ts +1 -0
- package/src/compaction/managers/structured.ts +2 -2
- package/src/compaction/manual.ts +11 -3
- package/src/compaction/model-summary.ts +8 -1
- package/src/compaction/summary.ts +54 -7
- package/src/constants/tools/index.ts +30 -16
- package/src/manager/session/turn-recorder.ts +37 -1
- package/src/network/audit.ts +113 -0
- package/src/network/clock.ts +62 -0
- package/src/network/discovery-mdns.ts +485 -0
- package/src/network/discovery.ts +210 -0
- package/src/network/fingerprint.ts +241 -0
- package/src/network/identity.ts +98 -0
- package/src/network/index.ts +134 -0
- package/src/network/join.ts +177 -0
- package/src/network/mail-policy.ts +199 -0
- package/src/network/membership.ts +290 -0
- package/src/network/roster.ts +165 -0
- package/src/network/service.ts +2304 -0
- package/src/network/store.ts +261 -0
- package/src/network/transport.ts +445 -0
- package/src/network/wire.ts +250 -0
- package/src/network/x509.ts +114 -0
- package/src/pals/activity/causality.ts +16 -2
- package/src/peers/endpoint.ts +6 -0
- package/src/peers/envelope.ts +82 -5
- package/src/peers/index.ts +10 -2
- package/src/peers/mode-word.ts +18 -0
- package/src/peers/protocol.ts +24 -1
- package/src/peers/record.ts +5 -0
- package/src/plugin/session-hook-env.ts +25 -2
- package/src/plugin/shell-hook.ts +208 -14
- package/src/prompt/coding-agent-doctrine.ts +33 -38
- package/src/public-runtime.ts +107 -1
- package/src/public-tools.ts +11 -0
- package/src/public-types.ts +67 -1
- package/src/runtime/jobs/registry.ts +93 -3
- package/src/runtime/query/auto-review/classifier.ts +76 -14
- package/src/runtime/query/auto-review/feedback.ts +50 -0
- package/src/runtime/query/auto-review/git-status.ts +437 -0
- package/src/runtime/query/auto-review/index.ts +7 -2
- package/src/runtime/query/auto-review/prompt.ts +6 -1
- package/src/runtime/query/auto-review/transcript.ts +67 -4
- package/src/runtime/query/executor/tool-call-admission.ts +49 -3
- package/src/runtime/query/executor.ts +104 -21
- package/src/runtime/query/index.ts +66 -17
- package/src/runtime/query/iteration/index.ts +24 -3
- package/src/runtime/query/iteration/phases/compaction.ts +4 -0
- package/src/runtime/query/iteration/phases/context.ts +5 -0
- package/src/runtime/query/iteration/phases/per-call-review.ts +8 -13
- package/src/runtime/query/iteration/phases/tool-review.ts +7 -1
- package/src/runtime/query/pasted-frames.ts +119 -0
- package/src/runtime/query/path-escalation.ts +27 -3
- package/src/runtime/query/request-interrupted-turns.ts +47 -0
- package/src/runtime/query/review-policy.ts +125 -22
- package/src/runtime/query/turn/outcome-ledger.ts +99 -6
- package/src/runtime/query/unanswered.ts +35 -0
- package/src/runtime/system-events.ts +2 -0
- package/src/session/workspace/git-worktree.ts +34 -3
- package/src/store/evidence/source-kind.ts +1 -1
- package/src/store/session-index/sqlite.ts +40 -3
- package/src/store/session-log/disk.ts +1 -1
- package/src/store/session-log/lease.ts +3 -2
- package/src/tools/admit-facts.ts +2 -0
- package/src/tools/builtins/bash.ts +62 -19
- package/src/tools/builtins/browser-local.ts +504 -0
- package/src/tools/builtins/browser.ts +108 -6
- package/src/tools/builtins/computer-use-window-id.ts +50 -0
- package/src/tools/builtins/computer-use.ts +460 -68
- package/src/tools/builtins/content-fingerprint.ts +8 -1
- package/src/tools/builtins/edit.ts +93 -7
- package/src/tools/builtins/file-write-result.ts +2 -1
- package/src/tools/builtins/grep.ts +1 -1
- package/src/tools/builtins/job.ts +4 -2
- package/src/tools/builtins/monitor.ts +6 -1
- package/src/tools/builtins/search-tools.ts +196 -21
- package/src/tools/builtins/shell-read-credit.ts +97 -33
- package/src/tools/builtins/wait-for-job.ts +13 -3
- package/src/tools/builtins/web-guidance.ts +6 -0
- package/src/tools/builtins/web.ts +2 -1
- package/src/tools/builtins/write-file.ts +31 -3
- package/src/tools/command-shell.ts +6 -8
- package/src/tools/defineTool.ts +20 -1
- package/src/tools/schedules/index.ts +11 -0
- package/src/tools/schedules/loop-tool.ts +10 -6
- package/src/tools/schedules/present.ts +1 -1
- package/src/tools/schedules/timer-tools.ts +258 -0
- package/src/tools/schedules/types.ts +72 -3
- package/src/tools/task/create.ts +2 -0
- package/src/toolsets/manager.ts +262 -46
- package/src/turn/evidence-query.ts +183 -42
- package/src/turn/evidence-recall.ts +96 -19
- package/src/turn/history-shed.ts +30 -0
- package/src/types/acp/index.ts +24 -0
- package/src/types/authorization/index.ts +20 -3
- package/src/types/hitl/index.ts +10 -0
- package/src/types/message/index.ts +65 -0
- package/src/types/permission/index.ts +18 -0
- package/src/types/plugin/index.ts +205 -26
- package/src/types/provider/index.ts +1 -0
- package/src/types/provider/interface.ts +13 -0
- package/src/types/provider/limits.ts +35 -0
- package/src/types/tool/index.ts +30 -2
- package/src/types/tool/presentation.ts +4 -0
- package/src/utils/file-lock.ts +328 -0
- package/src/utils/state-backup.ts +318 -0
- package/src/utils/temp-sweep.ts +327 -0
- package/src/utils/temp.ts +73 -2
|
@@ -15,8 +15,13 @@
|
|
|
15
15
|
* agent said and what the agent asked tools to do, never what they returned.
|
|
16
16
|
* - **Counting.** Blocks are counted so a host can stop a session that keeps
|
|
17
17
|
* hitting them: after a run of consecutive blocks, or a total, the decision
|
|
18
|
-
* carries `limitReached` and the host chooses what to do.
|
|
19
|
-
*
|
|
18
|
+
* carries `limitReached` and the host chooses what to do. Answers that are
|
|
19
|
+
* no verdict at all (the check could not run, or its answer could not be
|
|
20
|
+
* read) are also counted in a run of their own; when the host sets
|
|
21
|
+
* `limits.noVerdict`, the one that completes it carries
|
|
22
|
+
* `noVerdictLimitReached`, and the review policy ends the turn on it rather
|
|
23
|
+
* than keep holding calls back one by one. The classifier never changes a
|
|
24
|
+
* mode.
|
|
20
25
|
*/
|
|
21
26
|
|
|
22
27
|
import { GENAI } from '../../../constants/telemetry/index.js'
|
|
@@ -40,6 +45,7 @@ import {
|
|
|
40
45
|
import { SCOPE_ATTRIBUTE } from '../../../utils/log/types.js'
|
|
41
46
|
import { type Logger, resolveLogger } from '../../../utils/logger.js'
|
|
42
47
|
import { chatStreamWithSamplingRepair } from '../iteration/side-call.js'
|
|
48
|
+
import { renderGitStatus } from './git-status.js'
|
|
43
49
|
import {
|
|
44
50
|
STAGE_ONE_INSTRUCTION,
|
|
45
51
|
STAGE_TWO_INSTRUCTION,
|
|
@@ -66,9 +72,11 @@ export type AutoReviewDecision =
|
|
|
66
72
|
/**
|
|
67
73
|
* `rule`: the classifier judged it unsafe. `unavailable`: the check could
|
|
68
74
|
* not be completed. `unreadable`: the answer was not a verdict.
|
|
69
|
-
* `
|
|
75
|
+
* `oversized`: the action is longer than the check reads, so no model
|
|
76
|
+
* was asked; sending it again gets the same answer. `aborted`: the turn
|
|
77
|
+
* was cancelled while it ran.
|
|
70
78
|
*/
|
|
71
|
-
readonly cause: 'rule' | 'unavailable' | 'unreadable' | 'aborted'
|
|
79
|
+
readonly cause: 'rule' | 'unavailable' | 'unreadable' | 'oversized' | 'aborted'
|
|
72
80
|
readonly stage: AutoReviewStage
|
|
73
81
|
/** One plain sentence, fit to show the person and to tell the model. */
|
|
74
82
|
readonly reason: string
|
|
@@ -80,6 +88,13 @@ export type AutoReviewDecision =
|
|
|
80
88
|
* as this is returned; what to do about it is the host's decision.
|
|
81
89
|
*/
|
|
82
90
|
readonly limitReached?: 'consecutive' | 'total'
|
|
91
|
+
/**
|
|
92
|
+
* Set on the `unavailable` or `unreadable` block that made a run of them
|
|
93
|
+
* as long as `limits.noVerdict`. The run starts again as this is
|
|
94
|
+
* returned. The review policy ends the turn on it: a check that keeps
|
|
95
|
+
* giving no verdict is not one to keep waiting on, call after call.
|
|
96
|
+
*/
|
|
97
|
+
readonly noVerdictLimitReached?: true
|
|
83
98
|
}
|
|
84
99
|
| {
|
|
85
100
|
/**
|
|
@@ -103,6 +118,12 @@ export interface AutoReviewRequest {
|
|
|
103
118
|
* the transcript and are not kept for the next one.
|
|
104
119
|
*/
|
|
105
120
|
readonly scripts?: readonly LaunchedScript[]
|
|
121
|
+
/**
|
|
122
|
+
* The working tree's short status, for a git command that can destroy local
|
|
123
|
+
* work or rewrite history (see `git-status.ts`). Like `scripts`, it rides on
|
|
124
|
+
* this review only.
|
|
125
|
+
*/
|
|
126
|
+
readonly gitStatus?: string
|
|
106
127
|
readonly signal?: AbortSignal
|
|
107
128
|
}
|
|
108
129
|
|
|
@@ -112,6 +133,11 @@ export interface AutoReviewLimits {
|
|
|
112
133
|
readonly consecutive?: number
|
|
113
134
|
/** Blocks over the whole session, until a limit is reported. Default 20. */
|
|
114
135
|
readonly total?: number
|
|
136
|
+
/**
|
|
137
|
+
* Answers in a row that were no verdict (`unavailable` or `unreadable`)
|
|
138
|
+
* before the decision carries `noVerdictLimitReached`. Off unless set.
|
|
139
|
+
*/
|
|
140
|
+
readonly noVerdict?: number
|
|
115
141
|
}
|
|
116
142
|
|
|
117
143
|
export interface AutoReviewClassifierOptions {
|
|
@@ -162,10 +188,14 @@ const DEFAULT_MAX_TRANSCRIPT_CHARS = 400_000
|
|
|
162
188
|
const DEFAULT_RETRY_DELAY: BackoffPolicy = { initialDelayMs: 2_000, maxDelayMs: 10_000 }
|
|
163
189
|
const ACTION_CHARS = 8_000
|
|
164
190
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
191
|
+
export {
|
|
192
|
+
AUTO_REVIEW_BLOCKED_PREFIX,
|
|
193
|
+
AUTO_REVIEW_UNAVAILABLE_PREFIX,
|
|
194
|
+
autoReviewBlockedFeedback,
|
|
195
|
+
autoReviewOversizedFeedback,
|
|
196
|
+
autoReviewStoppedFeedback,
|
|
197
|
+
autoReviewUnavailableFeedback,
|
|
198
|
+
} from './feedback.js'
|
|
169
199
|
|
|
170
200
|
class DeadlineError extends Error {
|
|
171
201
|
readonly retryable = true
|
|
@@ -185,6 +215,7 @@ export function createAutoReviewClassifier(
|
|
|
185
215
|
const limits = {
|
|
186
216
|
consecutive: options.limits?.consecutive ?? DEFAULT_AUTO_REVIEW_LIMITS.consecutive,
|
|
187
217
|
total: options.limits?.total ?? DEFAULT_AUTO_REVIEW_LIMITS.total,
|
|
218
|
+
noVerdict: options.limits?.noVerdict ?? Number.POSITIVE_INFINITY,
|
|
188
219
|
}
|
|
189
220
|
const maxChars = options.maxTranscriptChars ?? DEFAULT_MAX_TRANSCRIPT_CHARS
|
|
190
221
|
const maxRetries = options.maxRetries ?? 2
|
|
@@ -194,6 +225,8 @@ export function createAutoReviewClassifier(
|
|
|
194
225
|
const now = options.now ?? Date.now
|
|
195
226
|
let consecutive = 0
|
|
196
227
|
let total = 0
|
|
228
|
+
/** Answers in a row that were no verdict; a real verdict either way ends the run. */
|
|
229
|
+
let noVerdict = 0
|
|
197
230
|
|
|
198
231
|
/** One provider call, bounded by a deadline and by the turn's own signal. */
|
|
199
232
|
async function ask(
|
|
@@ -264,11 +297,12 @@ export function createAutoReviewClassifier(
|
|
|
264
297
|
function blocked(
|
|
265
298
|
started: number,
|
|
266
299
|
stage: AutoReviewStage,
|
|
267
|
-
cause: 'rule' | 'unavailable' | 'unreadable' | 'aborted',
|
|
300
|
+
cause: 'rule' | 'unavailable' | 'unreadable' | 'oversized' | 'aborted',
|
|
268
301
|
reason: string,
|
|
269
302
|
rule?: string,
|
|
270
303
|
): AutoReviewDecision {
|
|
271
304
|
let limitReached: 'consecutive' | 'total' | undefined
|
|
305
|
+
let noVerdictLimitReached = false
|
|
272
306
|
if (cause !== 'aborted') {
|
|
273
307
|
consecutive += 1
|
|
274
308
|
total += 1
|
|
@@ -279,6 +313,15 @@ export function createAutoReviewClassifier(
|
|
|
279
313
|
total = 0
|
|
280
314
|
}
|
|
281
315
|
}
|
|
316
|
+
if (cause === 'unavailable' || cause === 'unreadable') {
|
|
317
|
+
noVerdict += 1
|
|
318
|
+
if (noVerdict >= limits.noVerdict) {
|
|
319
|
+
noVerdictLimitReached = true
|
|
320
|
+
noVerdict = 0
|
|
321
|
+
}
|
|
322
|
+
} else if (cause === 'rule') {
|
|
323
|
+
noVerdict = 0
|
|
324
|
+
}
|
|
282
325
|
return {
|
|
283
326
|
verdict: 'block',
|
|
284
327
|
cause,
|
|
@@ -287,6 +330,7 @@ export function createAutoReviewClassifier(
|
|
|
287
330
|
...(rule !== undefined ? { rule } : {}),
|
|
288
331
|
latencyMs: now() - started,
|
|
289
332
|
...(limitReached !== undefined ? { limitReached } : {}),
|
|
333
|
+
...(noVerdictLimitReached ? { noVerdictLimitReached: true as const } : {}),
|
|
290
334
|
}
|
|
291
335
|
}
|
|
292
336
|
|
|
@@ -295,24 +339,35 @@ export function createAutoReviewClassifier(
|
|
|
295
339
|
decision: AutoReviewDecision,
|
|
296
340
|
started: number,
|
|
297
341
|
scriptsShown: number,
|
|
342
|
+
gitStatusShown: boolean,
|
|
298
343
|
): void {
|
|
299
344
|
log.info('auto review decision', {
|
|
300
345
|
[GENAI.TOOL_NAME]: name,
|
|
301
346
|
'namzu.auto_review.verdict': decision.verdict,
|
|
302
347
|
'namzu.auto_review.latency_ms': now() - started,
|
|
303
348
|
'namzu.auto_review.scripts_shown': scriptsShown,
|
|
349
|
+
'namzu.auto_review.git_status_shown': gitStatusShown,
|
|
304
350
|
...(decision.verdict !== 'too_long' ? { 'namzu.auto_review.stage': decision.stage } : {}),
|
|
305
351
|
...(decision.verdict === 'block' ? { 'namzu.auto_review.cause': decision.cause } : {}),
|
|
306
352
|
...(decision.verdict === 'block' && decision.limitReached
|
|
307
353
|
? { 'namzu.auto_review.limit_reached': decision.limitReached }
|
|
308
354
|
: {}),
|
|
355
|
+
...(decision.verdict === 'block' && decision.noVerdictLimitReached
|
|
356
|
+
? { 'namzu.auto_review.no_verdict_limit_reached': true }
|
|
357
|
+
: {}),
|
|
309
358
|
})
|
|
310
359
|
}
|
|
311
360
|
|
|
312
361
|
async function review(request: AutoReviewRequest): Promise<AutoReviewDecision> {
|
|
313
362
|
const started = now()
|
|
314
363
|
const decision = await decide(request, started)
|
|
315
|
-
record(
|
|
364
|
+
record(
|
|
365
|
+
request.call.name,
|
|
366
|
+
decision,
|
|
367
|
+
started,
|
|
368
|
+
request.scripts?.length ?? 0,
|
|
369
|
+
request.gitStatus !== undefined && request.gitStatus !== '',
|
|
370
|
+
)
|
|
316
371
|
return decision
|
|
317
372
|
}
|
|
318
373
|
|
|
@@ -331,11 +386,13 @@ export function createAutoReviewClassifier(
|
|
|
331
386
|
)
|
|
332
387
|
// A prefix of a command is not the command: what follows the cut could be
|
|
333
388
|
// anything, and a verdict on the part that was shown says nothing about it.
|
|
389
|
+
// No model is asked, so this says nothing about whether one can be
|
|
390
|
+
// reached, and it is not counted in a run of answers with no verdict.
|
|
334
391
|
if (projected.truncated) {
|
|
335
392
|
return blocked(
|
|
336
393
|
started,
|
|
337
394
|
0,
|
|
338
|
-
'
|
|
395
|
+
'oversized',
|
|
339
396
|
'the action is too long for the safety check to read in full, so it was not run',
|
|
340
397
|
)
|
|
341
398
|
}
|
|
@@ -345,11 +402,12 @@ export function createAutoReviewClassifier(
|
|
|
345
402
|
input: projected.text,
|
|
346
403
|
})
|
|
347
404
|
const launched = renderLaunchedScripts(request.scripts ?? [])
|
|
348
|
-
|
|
405
|
+
const workingTree = renderGitStatus(request.gitStatus)
|
|
406
|
+
if (renderedLength(lines) + action.length + launched.length + workingTree.length > maxChars) {
|
|
349
407
|
return { verdict: 'too_long' }
|
|
350
408
|
}
|
|
351
409
|
|
|
352
|
-
const body = `<transcript>\n${lines.join('\n')}\n</transcript>\n\nThe action under review:\n${action}${launched}\n\n`
|
|
410
|
+
const body = `<transcript>\n${lines.join('\n')}\n</transcript>\n\nThe action under review:\n${action}${launched}${workingTree}\n\n`
|
|
353
411
|
// One system message for both passes, built once: the second pass is
|
|
354
412
|
// meant to reuse the first pass's cached prefix, and a message rebuilt per
|
|
355
413
|
// pass carries a fresh timestamp, so "the same prefix" held only when both
|
|
@@ -415,7 +473,10 @@ export function createAutoReviewClassifier(
|
|
|
415
473
|
return {
|
|
416
474
|
review: async (request) => {
|
|
417
475
|
const decision = await review(request)
|
|
418
|
-
if (decision.verdict === 'allow')
|
|
476
|
+
if (decision.verdict === 'allow') {
|
|
477
|
+
consecutive = 0
|
|
478
|
+
noVerdict = 0
|
|
479
|
+
}
|
|
419
480
|
return decision
|
|
420
481
|
},
|
|
421
482
|
get denials() {
|
|
@@ -424,6 +485,7 @@ export function createAutoReviewClassifier(
|
|
|
424
485
|
reset() {
|
|
425
486
|
consecutive = 0
|
|
426
487
|
total = 0
|
|
488
|
+
noVerdict = 0
|
|
427
489
|
},
|
|
428
490
|
}
|
|
429
491
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the model is told when the auto mode keeps a call from running.
|
|
3
|
+
*
|
|
4
|
+
* Two kinds, worded apart on purpose. A block is the classifier's judgement
|
|
5
|
+
* that the call is unsafe, and the model is told not to route around it. A
|
|
6
|
+
* call held back because the check gave no verdict says nothing about the call
|
|
7
|
+
* itself, and the model may try it again. The executor tells the two apart by
|
|
8
|
+
* these prefixes when it records how a refused call ended
|
|
9
|
+
* (`ToolMessage.outcome`); the text is the policy's own, never a tool's.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** How every refusal by the classifier's verdict begins. */
|
|
13
|
+
export const AUTO_REVIEW_BLOCKED_PREFIX = 'Blocked by auto mode: '
|
|
14
|
+
|
|
15
|
+
/** How every refusal for want of a verdict begins. */
|
|
16
|
+
export const AUTO_REVIEW_UNAVAILABLE_PREFIX = 'Auto mode could not check this action: '
|
|
17
|
+
|
|
18
|
+
/** The words the model is told when a call is blocked. */
|
|
19
|
+
export function autoReviewBlockedFeedback(reason: string): string {
|
|
20
|
+
return `${AUTO_REVIEW_BLOCKED_PREFIX}${reason}. Do not try to work around this; if the action is needed, tell the user what you want to do and why, so they can approve it or switch modes.`
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The words the model is told when a call was held back because it is longer
|
|
25
|
+
* than the check reads. No verdict was given, so it begins like
|
|
26
|
+
* {@link autoReviewUnavailableFeedback}; unlike that one, the same action sent
|
|
27
|
+
* again is refused the same way, so the model is told what would change it.
|
|
28
|
+
*/
|
|
29
|
+
export function autoReviewOversizedFeedback(reason: string): string {
|
|
30
|
+
return `${AUTO_REVIEW_UNAVAILABLE_PREFIX}${reason}. Nothing was run. Sending it again will be refused the same way: split it into smaller steps that can each be read in full, or ask the user to run it.`
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The words the model is told when the turn was stopped because the check
|
|
35
|
+
* gave no verdict several times in a row. It begins like
|
|
36
|
+
* {@link autoReviewUnavailableFeedback}, and it says that the turn stopped,
|
|
37
|
+
* in its first sentence, because a host that shows only the start of a
|
|
38
|
+
* refusal on the call's card (Desktop does) tells the person why that way.
|
|
39
|
+
*/
|
|
40
|
+
export function autoReviewStoppedFeedback(reason: string): string {
|
|
41
|
+
return `${AUTO_REVIEW_UNAVAILABLE_PREFIX}the check gave no answer several times in a row, so nothing was run and the turn was stopped. Wait for the user before trying again. The last answer: ${reason}.`
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The words the model is told when a call was held back because the check
|
|
46
|
+
* could not be completed or its answer could not be read.
|
|
47
|
+
*/
|
|
48
|
+
export function autoReviewUnavailableFeedback(reason: string): string {
|
|
49
|
+
return `${AUTO_REVIEW_UNAVAILABLE_PREFIX}${reason}. Nothing was run. This is not a judgement on the action: if it is still needed, it may be tried again, and if the check keeps failing, tell the user.`
|
|
50
|
+
}
|