@namzu/sdk 34.1.0 → 35.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 +150 -0
- package/README.md +2 -6
- package/dist/agents/PipelineAgent.d.ts.map +1 -1
- package/dist/agents/PipelineAgent.js +118 -100
- package/dist/agents/PipelineAgent.js.map +1 -1
- package/dist/agents/ReactiveAgent.d.ts.map +1 -1
- package/dist/agents/ReactiveAgent.js +2 -0
- package/dist/agents/ReactiveAgent.js.map +1 -1
- package/dist/agents/RouterAgent.d.ts.map +1 -1
- package/dist/agents/RouterAgent.js +105 -61
- package/dist/agents/RouterAgent.js.map +1 -1
- package/dist/agents/SupervisorAgent.d.ts.map +1 -1
- package/dist/agents/SupervisorAgent.js +8 -4
- package/dist/agents/SupervisorAgent.js.map +1 -1
- package/dist/agents/budget.d.ts +6 -0
- package/dist/agents/budget.d.ts.map +1 -0
- package/dist/agents/budget.js +33 -0
- package/dist/agents/budget.js.map +1 -0
- package/dist/agents/explore.d.ts +20 -0
- package/dist/agents/explore.d.ts.map +1 -0
- package/dist/agents/explore.js +26 -0
- package/dist/agents/explore.js.map +1 -0
- package/dist/agents/file-definitions.d.ts +80 -0
- package/dist/agents/file-definitions.d.ts.map +1 -0
- package/dist/agents/file-definitions.js +179 -0
- package/dist/agents/file-definitions.js.map +1 -0
- package/dist/agents/index.d.ts +3 -0
- package/dist/agents/index.d.ts.map +1 -1
- package/dist/agents/index.js +2 -0
- package/dist/agents/index.js.map +1 -1
- package/dist/bridge/a2a/mapper.d.ts.map +1 -1
- package/dist/bridge/a2a/mapper.js +6 -0
- package/dist/bridge/a2a/mapper.js.map +1 -1
- package/dist/bridge/sse/mapper.d.ts.map +1 -1
- package/dist/bridge/sse/mapper.js +22 -0
- package/dist/bridge/sse/mapper.js.map +1 -1
- package/dist/bus/lock.d.ts.map +1 -1
- package/dist/bus/lock.js +1 -10
- package/dist/bus/lock.js.map +1 -1
- package/dist/compaction/consolidation.d.ts +31 -0
- package/dist/compaction/consolidation.d.ts.map +1 -0
- package/dist/compaction/consolidation.js +63 -0
- package/dist/compaction/consolidation.js.map +1 -0
- package/dist/compaction/factory.d.ts.map +1 -1
- package/dist/compaction/factory.js +3 -0
- package/dist/compaction/factory.js.map +1 -1
- package/dist/compaction/index.d.ts +6 -1
- package/dist/compaction/index.d.ts.map +1 -1
- package/dist/compaction/index.js +6 -0
- package/dist/compaction/index.js.map +1 -1
- package/dist/compaction/manager.d.ts +7 -0
- package/dist/compaction/manager.d.ts.map +1 -1
- package/dist/compaction/manager.js +31 -0
- package/dist/compaction/manager.js.map +1 -1
- package/dist/compaction/plan.d.ts +23 -0
- package/dist/compaction/plan.d.ts.map +1 -1
- package/dist/compaction/plan.js +41 -24
- package/dist/compaction/plan.js.map +1 -1
- package/dist/compaction/salience/bm25.d.ts +26 -0
- package/dist/compaction/salience/bm25.d.ts.map +1 -0
- package/dist/compaction/salience/bm25.js +56 -0
- package/dist/compaction/salience/bm25.js.map +1 -0
- package/dist/compaction/salience/goal.d.ts +21 -0
- package/dist/compaction/salience/goal.d.ts.map +1 -0
- package/dist/compaction/salience/goal.js +32 -0
- package/dist/compaction/salience/goal.js.map +1 -0
- package/dist/compaction/salience/index.d.ts +4 -0
- package/dist/compaction/salience/index.d.ts.map +1 -0
- package/dist/compaction/salience/index.js +4 -0
- package/dist/compaction/salience/index.js.map +1 -0
- package/dist/compaction/salience/minhash.d.ts +17 -0
- package/dist/compaction/salience/minhash.d.ts.map +1 -0
- package/dist/compaction/salience/minhash.js +54 -0
- package/dist/compaction/salience/minhash.js.map +1 -0
- package/dist/compaction/salience/score.d.ts +64 -0
- package/dist/compaction/salience/score.d.ts.map +1 -0
- package/dist/compaction/salience/score.js +256 -0
- package/dist/compaction/salience/score.js.map +1 -0
- package/dist/compaction/salience/tokenize.d.ts +20 -0
- package/dist/compaction/salience/tokenize.d.ts.map +1 -0
- package/dist/compaction/salience/tokenize.js +92 -0
- package/dist/compaction/salience/tokenize.js.map +1 -0
- package/dist/compaction/salience/working-set.d.ts +59 -0
- package/dist/compaction/salience/working-set.d.ts.map +1 -0
- package/dist/compaction/salience/working-set.js +137 -0
- package/dist/compaction/salience/working-set.js.map +1 -0
- package/dist/compaction/serializer.d.ts +2 -0
- package/dist/compaction/serializer.d.ts.map +1 -1
- package/dist/compaction/serializer.js +15 -0
- package/dist/compaction/serializer.js.map +1 -1
- package/dist/compaction/token-estimate.d.ts +13 -0
- package/dist/compaction/token-estimate.d.ts.map +1 -0
- package/dist/compaction/token-estimate.js +58 -0
- package/dist/compaction/token-estimate.js.map +1 -0
- package/dist/compaction/tool-result-editing.d.ts +10 -2
- package/dist/compaction/tool-result-editing.d.ts.map +1 -1
- package/dist/compaction/tool-result-editing.js +22 -24
- package/dist/compaction/tool-result-editing.js.map +1 -1
- package/dist/compaction/types.d.ts +22 -1
- package/dist/compaction/types.d.ts.map +1 -1
- package/dist/compaction/wire.d.ts +3 -1
- package/dist/compaction/wire.d.ts.map +1 -1
- package/dist/compaction/wire.js +2 -0
- package/dist/compaction/wire.js.map +1 -1
- package/dist/config/runtime.d.ts +58 -28
- package/dist/config/runtime.d.ts.map +1 -1
- package/dist/config/runtime.js +13 -1
- package/dist/config/runtime.js.map +1 -1
- package/dist/connector/builtins/http.d.ts.map +1 -1
- package/dist/connector/builtins/http.js +2 -8
- package/dist/connector/builtins/http.js.map +1 -1
- package/dist/connector/builtins/webhook.js +2 -2
- package/dist/connector/builtins/webhook.js.map +1 -1
- package/dist/connector/mcp/adapter.d.ts +2 -0
- package/dist/connector/mcp/adapter.d.ts.map +1 -1
- package/dist/connector/mcp/adapter.js +30 -0
- package/dist/connector/mcp/adapter.js.map +1 -1
- package/dist/connector/tools/adapter.js +2 -2
- package/dist/connector/tools/adapter.js.map +1 -1
- package/dist/connector/tools/definitions.js +2 -2
- package/dist/connector/tools/definitions.js.map +1 -1
- package/dist/constants/compaction/index.d.ts +1 -0
- package/dist/constants/compaction/index.d.ts.map +1 -1
- package/dist/constants/compaction/index.js +1 -0
- package/dist/constants/compaction/index.js.map +1 -1
- package/dist/constants/telemetry/index.d.ts +0 -1
- package/dist/constants/telemetry/index.d.ts.map +1 -1
- package/dist/constants/telemetry/index.js +0 -1
- package/dist/constants/telemetry/index.js.map +1 -1
- package/dist/contracts/a2a.d.ts +5 -5
- package/dist/contracts/api.d.ts +4 -2
- package/dist/contracts/api.d.ts.map +1 -1
- package/dist/contracts/schemas.d.ts +1 -15
- package/dist/contracts/schemas.d.ts.map +1 -1
- package/dist/contracts/schemas.js +5 -20
- package/dist/contracts/schemas.js.map +1 -1
- package/dist/invariants/index.d.ts +1 -1
- package/dist/manager/agent/lifecycle.d.ts +2 -18
- package/dist/manager/agent/lifecycle.d.ts.map +1 -1
- package/dist/manager/agent/lifecycle.js +373 -340
- package/dist/manager/agent/lifecycle.js.map +1 -1
- package/dist/manager/run/persistence.d.ts +3 -0
- package/dist/manager/run/persistence.d.ts.map +1 -1
- package/dist/manager/run/persistence.js +35 -5
- package/dist/manager/run/persistence.js.map +1 -1
- package/dist/plugin/index.d.ts +2 -0
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +1 -0
- package/dist/plugin/index.js.map +1 -1
- package/dist/plugin/shell-hook.d.ts +128 -0
- package/dist/plugin/shell-hook.d.ts.map +1 -0
- package/dist/plugin/shell-hook.js +299 -0
- package/dist/plugin/shell-hook.js.map +1 -0
- package/dist/prompt/coding-agent-doctrine.d.ts +63 -0
- package/dist/prompt/coding-agent-doctrine.d.ts.map +1 -0
- package/dist/prompt/coding-agent-doctrine.js +100 -0
- package/dist/prompt/coding-agent-doctrine.js.map +1 -0
- package/dist/prompt/index.d.ts +2 -0
- package/dist/prompt/index.d.ts.map +1 -1
- package/dist/prompt/index.js +1 -0
- package/dist/prompt/index.js.map +1 -1
- package/dist/provider/errors.d.ts +1 -1
- package/dist/provider/errors.js +1 -1
- package/dist/provider/fallback.d.ts +2 -0
- package/dist/provider/fallback.d.ts.map +1 -1
- package/dist/provider/fallback.js +3 -1
- package/dist/provider/fallback.js.map +1 -1
- package/dist/provider/retry.d.ts +2 -0
- package/dist/provider/retry.d.ts.map +1 -1
- package/dist/provider/retry.js +3 -1
- package/dist/provider/retry.js.map +1 -1
- package/dist/provider/token-budget.d.ts +13 -0
- package/dist/provider/token-budget.d.ts.map +1 -0
- package/dist/provider/token-budget.js +102 -0
- package/dist/provider/token-budget.js.map +1 -0
- package/dist/public-runtime.d.ts +12 -12
- package/dist/public-runtime.d.ts.map +1 -1
- package/dist/public-runtime.js +14 -9
- package/dist/public-runtime.js.map +1 -1
- package/dist/public-tools.d.ts +2 -0
- package/dist/public-tools.d.ts.map +1 -1
- package/dist/public-tools.js +2 -0
- package/dist/public-tools.js.map +1 -1
- package/dist/public-types.d.ts +12 -2
- package/dist/public-types.d.ts.map +1 -1
- package/dist/registry/command/kernel-commands.d.ts.map +1 -1
- package/dist/registry/command/kernel-commands.js +18 -6
- package/dist/registry/command/kernel-commands.js.map +1 -1
- package/dist/registry/tool/execute.d.ts.map +1 -1
- package/dist/registry/tool/execute.js +4 -1
- package/dist/registry/tool/execute.js.map +1 -1
- package/dist/run/LimitChecker.js +1 -1
- package/dist/run/LimitChecker.js.map +1 -1
- package/dist/run/drain.js +1 -1
- package/dist/run/reporter.d.ts.map +1 -1
- package/dist/run/reporter.js +15 -0
- package/dist/run/reporter.js.map +1 -1
- package/dist/run/token-budget.d.ts +108 -0
- package/dist/run/token-budget.d.ts.map +1 -0
- package/dist/run/token-budget.js +591 -0
- package/dist/run/token-budget.js.map +1 -0
- package/dist/runtime/jobs/registry.d.ts +29 -0
- package/dist/runtime/jobs/registry.d.ts.map +1 -1
- package/dist/runtime/jobs/registry.js +98 -18
- package/dist/runtime/jobs/registry.js.map +1 -1
- package/dist/runtime/query/checkpoint.d.ts.map +1 -1
- package/dist/runtime/query/checkpoint.js +10 -3
- package/dist/runtime/query/checkpoint.js.map +1 -1
- package/dist/runtime/query/context.d.ts +2 -26
- package/dist/runtime/query/context.d.ts.map +1 -1
- package/dist/runtime/query/context.js +1 -29
- package/dist/runtime/query/context.js.map +1 -1
- package/dist/runtime/query/executor.d.ts +12 -9
- package/dist/runtime/query/executor.d.ts.map +1 -1
- package/dist/runtime/query/executor.js +107 -47
- package/dist/runtime/query/executor.js.map +1 -1
- package/dist/runtime/query/guard.d.ts.map +1 -1
- package/dist/runtime/query/guard.js +8 -0
- package/dist/runtime/query/guard.js.map +1 -1
- package/dist/runtime/query/index.d.ts +35 -4
- package/dist/runtime/query/index.d.ts.map +1 -1
- package/dist/runtime/query/index.js +152 -52
- 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 +16 -5
- 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 +98 -30
- package/dist/runtime/query/iteration/phases/compaction.js.map +1 -1
- package/dist/runtime/query/iteration/phases/context.d.ts +2 -0
- package/dist/runtime/query/iteration/phases/context.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/context.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 +29 -7
- package/dist/runtime/query/iteration/phases/tool-review.js.map +1 -1
- package/dist/runtime/query/iteration/phases/working-memory.d.ts.map +1 -1
- package/dist/runtime/query/iteration/phases/working-memory.js +25 -15
- package/dist/runtime/query/iteration/phases/working-memory.js.map +1 -1
- package/dist/runtime/query/plugin-hooks.d.ts +1 -1
- package/dist/runtime/query/plugin-hooks.d.ts.map +1 -1
- package/dist/runtime/query/plugin-hooks.js +20 -1
- package/dist/runtime/query/plugin-hooks.js.map +1 -1
- package/dist/runtime/query/repeat-call.d.ts +20 -2
- package/dist/runtime/query/repeat-call.d.ts.map +1 -1
- package/dist/runtime/query/repeat-call.js +35 -7
- package/dist/runtime/query/repeat-call.js.map +1 -1
- package/dist/runtime/query/result.d.ts.map +1 -1
- package/dist/runtime/query/result.js +9 -0
- package/dist/runtime/query/result.js.map +1 -1
- package/dist/runtime/query/review-policy.d.ts +142 -0
- package/dist/runtime/query/review-policy.d.ts.map +1 -0
- package/dist/runtime/query/review-policy.js +144 -0
- package/dist/runtime/query/review-policy.js.map +1 -0
- package/dist/runtime/query/run-state.d.ts.map +1 -1
- package/dist/runtime/query/run-state.js +4 -0
- package/dist/runtime/query/run-state.js.map +1 -1
- package/dist/runtime/query/steering.d.ts +4 -0
- package/dist/runtime/query/steering.d.ts.map +1 -1
- package/dist/runtime/query/steering.js +29 -0
- package/dist/runtime/query/steering.js.map +1 -1
- package/dist/runtime/query/token-budget.d.ts +7 -0
- package/dist/runtime/query/token-budget.d.ts.map +1 -0
- package/dist/runtime/query/token-budget.js +101 -0
- package/dist/runtime/query/token-budget.js.map +1 -0
- package/dist/runtime/query/tool-output-budget.d.ts +2 -0
- package/dist/runtime/query/tool-output-budget.d.ts.map +1 -1
- package/dist/runtime/query/tool-output-budget.js +29 -11
- package/dist/runtime/query/tool-output-budget.js.map +1 -1
- package/dist/runtime/query/tool-pause.d.ts.map +1 -1
- package/dist/runtime/query/tool-pause.js +4 -2
- package/dist/runtime/query/tool-pause.js.map +1 -1
- package/dist/runtime/query/tooling.d.ts +4 -0
- package/dist/runtime/query/tooling.d.ts.map +1 -1
- package/dist/runtime/query/tooling.js +4 -0
- package/dist/runtime/query/tooling.js.map +1 -1
- package/dist/sandbox/provider/local.d.ts +3 -1
- package/dist/sandbox/provider/local.d.ts.map +1 -1
- package/dist/sandbox/provider/local.js +112 -12
- package/dist/sandbox/provider/local.js.map +1 -1
- package/dist/scheduler/delegating.d.ts +1 -0
- package/dist/scheduler/delegating.d.ts.map +1 -1
- package/dist/scheduler/delegating.js +29 -12
- package/dist/scheduler/delegating.js.map +1 -1
- package/dist/scheduler/local.d.ts +1 -0
- package/dist/scheduler/local.d.ts.map +1 -1
- package/dist/scheduler/local.js +4 -7
- package/dist/scheduler/local.js.map +1 -1
- package/dist/session/index.d.ts +0 -1
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +0 -1
- package/dist/session/index.js.map +1 -1
- package/dist/session/workspace/path-builder.d.ts.map +1 -1
- package/dist/session/workspace/path-builder.js +5 -4
- package/dist/session/workspace/path-builder.js.map +1 -1
- package/dist/store/feedback/disk.d.ts.map +1 -1
- package/dist/store/feedback/disk.js +4 -6
- package/dist/store/feedback/disk.js.map +1 -1
- package/dist/store/index.d.ts +2 -0
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +1 -0
- package/dist/store/index.js.map +1 -1
- package/dist/store/memory/disk.d.ts.map +1 -1
- package/dist/store/memory/disk.js +3 -12
- package/dist/store/memory/disk.js.map +1 -1
- package/dist/store/run/checkpoint-disk.d.ts +3 -3
- package/dist/store/run/checkpoint-disk.d.ts.map +1 -1
- package/dist/store/run/checkpoint-disk.js +14 -26
- package/dist/store/run/checkpoint-disk.js.map +1 -1
- package/dist/store/run/claim-disk.js +1 -1
- package/dist/store/run/conformance.d.ts +1 -1
- package/dist/store/run/conformance.d.ts.map +1 -1
- package/dist/store/run/conformance.js +41 -33
- package/dist/store/run/conformance.js.map +1 -1
- package/dist/store/run/disk.d.ts.map +1 -1
- package/dist/store/run/disk.js +20 -4
- package/dist/store/run/disk.js.map +1 -1
- package/dist/store/run/token-budget-disk.d.ts +37 -0
- package/dist/store/run/token-budget-disk.d.ts.map +1 -0
- package/dist/store/run/token-budget-disk.js +208 -0
- package/dist/store/run/token-budget-disk.js.map +1 -0
- package/dist/store/session/disk.d.ts +4 -13
- package/dist/store/session/disk.d.ts.map +1 -1
- package/dist/store/session/disk.js +34 -31
- package/dist/store/session/disk.js.map +1 -1
- package/dist/store/session/memory.d.ts +2 -0
- package/dist/store/session/memory.d.ts.map +1 -1
- package/dist/store/session/memory.js +41 -2
- package/dist/store/session/memory.js.map +1 -1
- package/dist/store/task/disk.d.ts.map +1 -1
- package/dist/store/task/disk.js +7 -8
- package/dist/store/task/disk.js.map +1 -1
- package/dist/store/topic/memory.d.ts +2 -0
- package/dist/store/topic/memory.d.ts.map +1 -1
- package/dist/store/topic/memory.js +13 -1
- package/dist/store/topic/memory.js.map +1 -1
- package/dist/test-support/ids.d.ts +4 -19
- package/dist/test-support/ids.d.ts.map +1 -1
- package/dist/test-support/ids.js +51 -59
- package/dist/test-support/ids.js.map +1 -1
- package/dist/tools/advisory/index.d.ts.map +1 -1
- package/dist/tools/advisory/index.js +3 -1
- package/dist/tools/advisory/index.js.map +1 -1
- package/dist/tools/builtins/bash.d.ts +2 -0
- package/dist/tools/builtins/bash.d.ts.map +1 -1
- package/dist/tools/builtins/bash.js +9 -11
- package/dist/tools/builtins/bash.js.map +1 -1
- package/dist/tools/builtins/computer-use.d.ts +2 -2
- package/dist/tools/builtins/computer-use.d.ts.map +1 -1
- package/dist/tools/builtins/computer-use.js +4 -2
- package/dist/tools/builtins/computer-use.js.map +1 -1
- package/dist/tools/builtins/edit.js +2 -2
- package/dist/tools/builtins/edit.js.map +1 -1
- package/dist/tools/builtins/glob.js +3 -3
- package/dist/tools/builtins/glob.js.map +1 -1
- package/dist/tools/builtins/grep.js +2 -2
- package/dist/tools/builtins/grep.js.map +1 -1
- package/dist/tools/builtins/ls.js +2 -2
- package/dist/tools/builtins/ls.js.map +1 -1
- package/dist/tools/builtins/lsp.js +2 -2
- package/dist/tools/builtins/lsp.js.map +1 -1
- package/dist/tools/builtins/read-file.js +2 -2
- package/dist/tools/builtins/read-file.js.map +1 -1
- package/dist/tools/builtins/write-file.js +2 -2
- package/dist/tools/builtins/write-file.js.map +1 -1
- package/dist/tools/coordinator/ask-user-question.d.ts +33 -0
- package/dist/tools/coordinator/ask-user-question.d.ts.map +1 -0
- package/dist/tools/coordinator/ask-user-question.js +237 -0
- package/dist/tools/coordinator/ask-user-question.js.map +1 -0
- package/dist/tools/coordinator/index.d.ts +1 -2
- package/dist/tools/coordinator/index.d.ts.map +1 -1
- package/dist/tools/coordinator/index.js +4 -220
- package/dist/tools/coordinator/index.js.map +1 -1
- package/dist/tools/memory/read.d.ts.map +1 -1
- package/dist/tools/memory/read.js +2 -4
- package/dist/tools/memory/read.js.map +1 -1
- package/dist/tools/paths.d.ts +13 -0
- package/dist/tools/paths.d.ts.map +1 -1
- package/dist/tools/paths.js +53 -0
- package/dist/tools/paths.js.map +1 -1
- package/dist/tools/roster.d.ts +27 -0
- package/dist/tools/roster.d.ts.map +1 -0
- package/dist/tools/roster.js +42 -0
- package/dist/tools/roster.js.map +1 -0
- package/dist/types/agent/base.d.ts +5 -0
- package/dist/types/agent/base.d.ts.map +1 -1
- package/dist/types/agent/pipeline.d.ts +3 -0
- package/dist/types/agent/pipeline.d.ts.map +1 -1
- package/dist/types/agent/router.d.ts +2 -3
- package/dist/types/agent/router.d.ts.map +1 -1
- package/dist/types/agent/scheduler.d.ts +3 -0
- package/dist/types/agent/scheduler.d.ts.map +1 -1
- package/dist/types/agent/task.d.ts +5 -16
- package/dist/types/agent/task.d.ts.map +1 -1
- package/dist/types/agent/task.js.map +1 -1
- package/dist/types/common/index.d.ts.map +1 -1
- package/dist/types/common/index.js +3 -0
- package/dist/types/common/index.js.map +1 -1
- package/dist/types/computer-use/index.d.ts +8 -0
- package/dist/types/computer-use/index.d.ts.map +1 -1
- package/dist/types/computer-use/index.js.map +1 -1
- package/dist/types/hitl/index.d.ts +5 -0
- package/dist/types/hitl/index.d.ts.map +1 -1
- package/dist/types/hitl/index.js.map +1 -1
- package/dist/types/ids/brand.d.ts +5 -47
- package/dist/types/ids/brand.d.ts.map +1 -1
- package/dist/types/ids/brand.js +2 -39
- package/dist/types/ids/brand.js.map +1 -1
- package/dist/types/ids/index.d.ts +59 -69
- package/dist/types/ids/index.d.ts.map +1 -1
- package/dist/types/ids/index.js +12 -10
- package/dist/types/ids/index.js.map +1 -1
- package/dist/types/permission/index.d.ts +9 -0
- package/dist/types/permission/index.d.ts.map +1 -1
- package/dist/types/permission/index.js +9 -1
- package/dist/types/permission/index.js.map +1 -1
- package/dist/types/plugin/index.d.ts +45 -4
- package/dist/types/plugin/index.d.ts.map +1 -1
- package/dist/types/plugin/index.js +7 -0
- package/dist/types/plugin/index.js.map +1 -1
- package/dist/types/run/config.d.ts +3 -0
- package/dist/types/run/config.d.ts.map +1 -1
- package/dist/types/run/emergency.d.ts +5 -0
- package/dist/types/run/emergency.d.ts.map +1 -1
- package/dist/types/run/emergency.js.map +1 -1
- package/dist/types/run/entity.d.ts +6 -2
- package/dist/types/run/entity.d.ts.map +1 -1
- package/dist/types/run/events.d.ts +35 -0
- package/dist/types/run/events.d.ts.map +1 -1
- package/dist/types/run/events.js.map +1 -1
- package/dist/types/run/index.d.ts +1 -0
- package/dist/types/run/index.d.ts.map +1 -1
- package/dist/types/run/index.js +1 -0
- package/dist/types/run/index.js.map +1 -1
- package/dist/types/run/state.d.ts +16 -15
- package/dist/types/run/state.d.ts.map +1 -1
- package/dist/types/run/state.js +41 -22
- package/dist/types/run/state.js.map +1 -1
- package/dist/types/run/stop-reason.d.ts +3 -14
- package/dist/types/run/stop-reason.d.ts.map +1 -1
- package/dist/types/run/token-budget-store.d.ts +29 -0
- package/dist/types/run/token-budget-store.d.ts.map +1 -0
- package/dist/types/run/token-budget-store.js +25 -0
- package/dist/types/run/token-budget-store.js.map +1 -0
- package/dist/types/sandbox/index.d.ts +27 -2
- package/dist/types/sandbox/index.d.ts.map +1 -1
- package/dist/types/sandbox/index.js.map +1 -1
- package/dist/types/session/store.d.ts +8 -0
- package/dist/types/session/store.d.ts.map +1 -1
- package/dist/types/tool/index.d.ts +27 -0
- package/dist/types/tool/index.d.ts.map +1 -1
- package/dist/types/tool/index.js.map +1 -1
- package/dist/utils/frontmatter.d.ts +1 -1
- package/dist/utils/frontmatter.js +1 -1
- package/dist/utils/id-format.d.ts +3 -0
- package/dist/utils/id-format.d.ts.map +1 -0
- package/dist/utils/id-format.js +9 -0
- package/dist/utils/id-format.js.map +1 -0
- package/dist/utils/id.d.ts +65 -32
- package/dist/utils/id.d.ts.map +1 -1
- package/dist/utils/id.js +168 -148
- package/dist/utils/id.js.map +1 -1
- package/dist/utils/log/exception.js +1 -1
- package/dist/utils/log/exception.js.map +1 -1
- package/dist/utils/log/index.d.ts.map +1 -1
- package/dist/utils/log/index.js +1 -2
- package/dist/utils/log/index.js.map +1 -1
- package/dist/utils/log/templates.d.ts.map +1 -1
- package/dist/utils/log/templates.js +0 -1
- package/dist/utils/log/templates.js.map +1 -1
- package/package.json +1 -1
- package/src/agents/AGENTS.md +1 -1
- package/src/agents/PipelineAgent.ts +129 -109
- package/src/agents/ReactiveAgent.ts +2 -0
- package/src/agents/RouterAgent.ts +120 -73
- package/src/agents/SupervisorAgent.ts +12 -4
- package/src/agents/budget.ts +42 -0
- package/src/agents/explore.ts +29 -0
- package/src/agents/file-definitions.ts +237 -0
- package/src/agents/index.ts +15 -0
- package/src/bridge/a2a/mapper.ts +6 -0
- package/src/bridge/sse/mapper.ts +22 -0
- package/src/bus/lock.ts +1 -10
- package/src/compaction/consolidation.ts +79 -0
- package/src/compaction/factory.ts +3 -0
- package/src/compaction/index.ts +34 -4
- package/src/compaction/manager.ts +39 -1
- package/src/compaction/plan.ts +52 -21
- package/src/compaction/salience/bm25.ts +72 -0
- package/src/compaction/salience/goal.ts +44 -0
- package/src/compaction/salience/index.ts +19 -0
- package/src/compaction/salience/minhash.ts +53 -0
- package/src/compaction/salience/score.ts +305 -0
- package/src/compaction/salience/tokenize.ts +89 -0
- package/src/compaction/salience/working-set.ts +187 -0
- package/src/compaction/serializer.ts +16 -0
- package/src/compaction/token-estimate.ts +57 -0
- package/src/compaction/tool-result-editing.ts +28 -26
- package/src/compaction/types.ts +24 -1
- package/src/compaction/wire.ts +5 -1
- package/src/config/runtime.ts +13 -1
- package/src/connector/builtins/http.ts +2 -8
- package/src/connector/builtins/webhook.ts +2 -2
- package/src/connector/mcp/adapter.ts +32 -0
- package/src/connector/tools/adapter.ts +2 -2
- package/src/connector/tools/definitions.ts +2 -2
- package/src/constants/compaction/index.ts +1 -0
- package/src/constants/telemetry/index.ts +0 -1
- package/src/contracts/api.ts +5 -1
- package/src/contracts/schemas.ts +6 -20
- package/src/invariants/index.ts +1 -1
- package/src/manager/agent/lifecycle.ts +380 -352
- package/src/manager/run/persistence.ts +35 -5
- package/src/plugin/index.ts +19 -0
- package/src/plugin/shell-hook.ts +403 -0
- package/src/prompt/coding-agent-doctrine.ts +118 -0
- package/src/prompt/index.ts +8 -0
- package/src/provider/errors.ts +1 -1
- package/src/provider/fallback.ts +4 -1
- package/src/provider/retry.ts +4 -1
- package/src/provider/token-budget.ts +114 -0
- package/src/public-runtime.ts +54 -27
- package/src/public-tools.ts +5 -0
- package/src/public-types.ts +65 -0
- package/src/registry/command/kernel-commands.ts +16 -6
- package/src/registry/tool/execute.ts +4 -1
- package/src/run/LimitChecker.ts +1 -1
- package/src/run/drain.ts +1 -1
- package/src/run/reporter.ts +15 -0
- package/src/run/token-budget.ts +692 -0
- package/src/runtime/jobs/registry.ts +123 -17
- package/src/runtime/query/checkpoint.ts +10 -3
- package/src/runtime/query/context.ts +3 -57
- package/src/runtime/query/executor.ts +140 -59
- package/src/runtime/query/guard.ts +8 -0
- package/src/runtime/query/index.ts +201 -62
- package/src/runtime/query/iteration/index.ts +24 -6
- package/src/runtime/query/iteration/phases/compaction.ts +130 -31
- package/src/runtime/query/iteration/phases/context.ts +2 -0
- package/src/runtime/query/iteration/phases/tool-review.ts +39 -7
- package/src/runtime/query/iteration/phases/working-memory.ts +23 -14
- package/src/runtime/query/plugin-hooks.ts +24 -2
- package/src/runtime/query/repeat-call.ts +42 -7
- package/src/runtime/query/result.ts +9 -0
- package/src/runtime/query/review-policy.ts +231 -0
- package/src/runtime/query/run-state.ts +4 -0
- package/src/runtime/query/steering.ts +32 -0
- package/src/runtime/query/token-budget.ts +127 -0
- package/src/runtime/query/tool-output-budget.ts +33 -10
- package/src/runtime/query/tool-pause.ts +4 -2
- package/src/runtime/query/tooling.ts +8 -0
- package/src/sandbox/provider/local.ts +123 -13
- package/src/scheduler/delegating.ts +35 -13
- package/src/scheduler/local.ts +5 -7
- package/src/session/index.ts +0 -1
- package/src/session/workspace/path-builder.ts +5 -4
- package/src/store/feedback/disk.ts +4 -6
- package/src/store/index.ts +2 -0
- package/src/store/memory/disk.ts +3 -11
- package/src/store/run/checkpoint-disk.ts +14 -27
- package/src/store/run/claim-disk.ts +1 -1
- package/src/store/run/conformance.ts +55 -39
- package/src/store/run/disk.ts +19 -4
- package/src/store/run/token-budget-disk.ts +247 -0
- package/src/store/session/disk.ts +36 -29
- package/src/store/session/memory.ts +38 -1
- package/src/store/task/disk.ts +7 -8
- package/src/store/topic/memory.ts +13 -1
- package/src/test-support/ids.ts +62 -59
- package/src/tools/advisory/index.ts +3 -1
- package/src/tools/builtins/bash.ts +11 -12
- package/src/tools/builtins/computer-use.ts +6 -2
- package/src/tools/builtins/edit.ts +2 -2
- package/src/tools/builtins/glob.ts +3 -3
- package/src/tools/builtins/grep.ts +2 -2
- package/src/tools/builtins/ls.ts +2 -2
- package/src/tools/builtins/lsp.ts +2 -2
- package/src/tools/builtins/read-file.ts +2 -2
- package/src/tools/builtins/write-file.ts +2 -2
- package/src/tools/coordinator/ask-user-question.ts +284 -0
- package/src/tools/coordinator/index.ts +5 -248
- package/src/tools/memory/read.ts +2 -4
- package/src/tools/paths.ts +64 -0
- package/src/tools/roster.ts +46 -0
- package/src/types/agent/base.ts +6 -0
- package/src/types/agent/pipeline.ts +3 -0
- package/src/types/agent/router.ts +2 -3
- package/src/types/agent/scheduler.ts +4 -0
- package/src/types/agent/task.ts +5 -18
- package/src/types/common/index.ts +3 -0
- package/src/types/computer-use/index.ts +8 -0
- package/src/types/hitl/index.ts +5 -0
- package/src/types/ids/brand.ts +5 -48
- package/src/types/ids/index.ts +66 -75
- package/src/types/permission/index.ts +11 -0
- package/src/types/plugin/index.ts +49 -1
- package/src/types/run/config.ts +3 -0
- package/src/types/run/emergency.ts +5 -0
- package/src/types/run/entity.ts +6 -2
- package/src/types/run/events.ts +37 -0
- package/src/types/run/index.ts +1 -0
- package/src/types/run/state.ts +58 -30
- package/src/types/run/stop-reason.ts +3 -14
- package/src/types/run/token-budget-store.ts +54 -0
- package/src/types/sandbox/index.ts +32 -0
- package/src/types/session/store.ts +8 -0
- package/src/types/tool/index.ts +28 -0
- package/src/utils/frontmatter.ts +1 -1
- package/src/utils/id-format.ts +9 -0
- package/src/utils/id.ts +222 -181
- package/src/utils/log/exception.ts +1 -1
- package/src/utils/log/index.ts +1 -2
- package/src/utils/log/templates.ts +0 -1
- package/dist/session/migration/errors.d.ts +0 -26
- package/dist/session/migration/errors.d.ts.map +0 -1
- package/dist/session/migration/errors.js +0 -22
- package/dist/session/migration/errors.js.map +0 -1
- package/dist/session/migration/filesystem.d.ts +0 -122
- package/dist/session/migration/filesystem.d.ts.map +0 -1
- package/dist/session/migration/filesystem.js +0 -379
- package/dist/session/migration/filesystem.js.map +0 -1
- package/dist/session/migration/id-prefix.d.ts +0 -113
- package/dist/session/migration/id-prefix.d.ts.map +0 -1
- package/dist/session/migration/id-prefix.js +0 -132
- package/dist/session/migration/id-prefix.js.map +0 -1
- package/dist/session/migration/index.d.ts +0 -12
- package/dist/session/migration/index.d.ts.map +0 -1
- package/dist/session/migration/index.js +0 -12
- package/dist/session/migration/index.js.map +0 -1
- package/dist/session/migration/marker.d.ts +0 -57
- package/dist/session/migration/marker.d.ts.map +0 -1
- package/dist/session/migration/marker.js +0 -123
- package/dist/session/migration/marker.js.map +0 -1
- package/src/session/migration/errors.ts +0 -23
- package/src/session/migration/filesystem.ts +0 -468
- package/src/session/migration/id-prefix.ts +0 -166
- package/src/session/migration/index.ts +0 -41
- package/src/session/migration/marker.ts +0 -142
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,155 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 35.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 2bcd95e: Make interactive command selection and reporting reflect the active session.
|
|
8
|
+
|
|
9
|
+
The CLI now opens a goal menu for `/goal` and the delegated-agent view for
|
|
10
|
+
`/agents`. Use `/goal status` for a goal report and `/agents available` for
|
|
11
|
+
the configured roster. `/status`, `/cost`, `/context`
|
|
12
|
+
and `/mcp` show concise reports; use the `details` variants or `/mcp tools`
|
|
13
|
+
for expanded diagnostics. Usage is labeled as current or latest run usage.
|
|
14
|
+
Searchable help, skill, branch and commit menus treat typed digits as search
|
|
15
|
+
text; use arrows and Enter to select. Esc cancels previous-prompt editing.
|
|
16
|
+
|
|
17
|
+
`/settings` shows effective model, reasoning and permission settings. Changing
|
|
18
|
+
a model preserves fallbacks and subagent preferences and saves only after
|
|
19
|
+
successful activation. `/tasks` reads the current or latest run's real store,
|
|
20
|
+
with no task state carried across conversation switches.
|
|
21
|
+
|
|
22
|
+
Resume hints include the working directory and the actual Node executable and
|
|
23
|
+
CLI entrypoint, preventing a checkout build from handing its UUID session to
|
|
24
|
+
an older global installation. Embedded hosts can supply their own launch
|
|
25
|
+
command; otherwise their hint uses `namzu`.
|
|
26
|
+
|
|
27
|
+
The SDK goal command reserves `status` for inspection and `set` for explicit
|
|
28
|
+
creation. To create an objective literally named `status`, use `/goal set status`.
|
|
29
|
+
The previous bare `/goal status` created that objective. Goal reports now use
|
|
30
|
+
`enabled`/`paused` and `Automatic turns` instead of `armed`/`disarmed` and
|
|
31
|
+
`Rounds admitted`; consumers parsing human-readable reports must update.
|
|
32
|
+
|
|
33
|
+
- 1f339cf: Hard iteration, token, cost and timeout limits stop without an additional paid model call for a closing summary. Hosts must handle the unfinished stop reason instead of relying on a post-budget final answer. Child configuration cannot enlarge its reserved token allocation; a failed startup refunds that allocation and releases its workspace and session records.
|
|
34
|
+
|
|
35
|
+
Context triggering, retention and relief use one multimodal estimate rather than treating base64 bytes as prose or ignoring rich content. Image/document estimates are heuristics, not billing bounds. Text and rich tool content are budgeted independently, retained artifacts survive text reduction, and recovery guidance does not recommend replaying state-changing actions. Provider tool-call IDs are hashed before use in spill filenames.
|
|
36
|
+
|
|
37
|
+
Headless `run` and `run-stream` accept `--effort` and forward the explicit level to the selected provider. `run-stream` emits one terminal event after the persistence attempt and retains its stop reason. Consumers should not expect the former duplicate terminal event.
|
|
38
|
+
|
|
39
|
+
- 47e573c: Kernel ID factories, file-lock IDs and SDK-managed Docker/ACI sandbox IDs now generate UUID v4 strings instead of prefixed random strings. Nominal TypeScript entity brands remain, but their underlying type is an opaque string rather than a prefixed template literal. Before upgrading, remove prefix parsing and prefix-only validators in consumers; use checked constructors or the new `isEntityId(value, kind)` predicate and validate ownership through store records. Public Project, Run and Message schemas accept only UUIDs while remaining Zod string schemas. External sandbox/orchestrator IDs retain their service-defined contracts.
|
|
40
|
+
|
|
41
|
+
`InvalidIdError.expectedKind` replaces `expectedPrefix`; hosts displaying validation errors must read the entity kind instead. Built-in HTTP/webhook connector IDs and the default shell-hook plugin ID are now stable UUIDs.
|
|
42
|
+
|
|
43
|
+
Prefixed records, including formerly accepted safe prefixes, are no longer admitted. Constructors, schemas and disk readers require UUIDs. No automatic migration or deletion is performed. Supply UUIDs for custom IDs and use a fresh dedicated application home when previous state is no longer needed. Do not downgrade UUID stores to a prefix-only reader.
|
|
44
|
+
|
|
45
|
+
In-memory session and topic stores accept existing Project/Topic snapshots without creating replacement identities. The CLI uses this to bind delegation to the actual parent run, conversation, project and tenant. Child artifacts now live beneath the owning Project's `subagents/sessions` tree, without another generated Project layer. Scripts inspecting the old nested subagent layout must follow the new paths for new children; historical artifacts remain in place. Completed parent runs release their delegated children and bookkeeping. Tasks default to the actual invoking run instead of `run_namzu-cli`.
|
|
46
|
+
|
|
47
|
+
CLI state selectors, session maps and transcript export require UUIDs; export skips the reserved emergency-snapshot directory. Emergency-to-checkpoint projection uses the snapshot's existing UUID. The CLI always selects the checkout-root binding, even when an older directory-specific Project exists. Historical records are left in place and are not merged. Durable `drain` now requires an authoritative persisted Session and takes its Topic from that record; checkpoint-only hosts must persist the Session metadata before draining.
|
|
48
|
+
|
|
49
|
+
- 22cf680: One prefix per id, and nothing is rewritten on read. The pre-0.2 `thd_` compatibility is removed whole: the `session/migration` module and its exports (`acceptLegacyContainerId`, `rejectLegacyContainerPrefix`, `DefaultFilesystemMigrator`, `readMarker`, `writeMarker`, the sinks and their types), the boot-time filesystem re-layout `query()` ran on every first call, `RunContextFactory.ensureMigrated`, the `namzu.migration.completed` boot event, and the `prj_legacy_` form in `ProjectIdSchema`. A run state or session record whose topic id carries `thd_` now throws `RetiredIdPrefixError` instead of being coerced to `top_`; records written before 0.2 must be opened by a 0.x namzu or abandoned. `UNKNOWN_TENANT_ID` is removed: a host names its tenant. `CreateSessionParams.id` lets a host create a session under an id it minted. The `parse*Id` functions are deprecated in favour of `as*Id`, which throw `InvalidIdError`.
|
|
50
|
+
- f6a46b2: Checked `as*Id` constructors and deprecated `parse*Id` functions now accept a canonical UUID or the expected legacy prefix followed by a nonempty suffix containing only ASCII letters, digits, underscores or hyphens. Prefix-only ids and suffixes containing path separators, periods, colons, whitespace or Unicode now throw. `DiskSessionStore` also validates caller-supplied project, session and sub-session identifiers, including `CreateSessionParams.id`, before resolving them.
|
|
51
|
+
|
|
52
|
+
Factory-generated ids and safe custom ids retain their existing values. Applications using other custom ids must replace them and update every referring record before upgrading. Existing message-feedback records with unsafe custom ids are also rejected without rewriting their files; export those records using the previous SDK and remap references together, or retain the previous SDK for that data. Do not sanitize ids independently: distinct ids can collapse to the same value.
|
|
53
|
+
|
|
54
|
+
User questions and tool pauses without a durable recorder now receive separately generated checkpoint ids. Provider-issued tool-use ids and pause names still identify the question verbatim; hosts should correlate answers using `questionId` rather than deriving it from the fallback checkpoint id.
|
|
55
|
+
|
|
56
|
+
- 3ad8784: **`compaction.strategy` defaults to `salience`.** A run under the default now scores every message — recency, relevance to the goal, use by a later turn, repetition — and holds the context near half the window by clearing the least salient tool results and stubbing narrations, without a model in the loop; older history is summarised only at the trigger, as before. The previous default was `structured`: positional retention and a pass only at the trigger. To keep it, pass `compactionConfig: { strategy: 'structured' }`. Measured on the same three-part coding task with a real model: 237k tokens against 271k, the task finished identically; on the eval that plants a fact early and cites it late, salience keeps the fact where structured loses it, with a smaller final history.
|
|
57
|
+
- 87c0034: Enforce one token allowance across a parent run and its delegated descendants.
|
|
58
|
+
Previously the parent and delegation pool each received the full configured
|
|
59
|
+
budget. Parent, child and SDK auxiliary model requests now share measured usage
|
|
60
|
+
and finite child reservations. Unknown provider spend blocks further admission.
|
|
61
|
+
|
|
62
|
+
Replace `AgentTaskContext.budgetTracker` with a shared `TokenBudget` account at
|
|
63
|
+
`budget`. Custom schedulers must expose that same account, and custom agents must
|
|
64
|
+
use the supplied provider/account for model work. Run and agent usage describe
|
|
65
|
+
own-run counters; the new `budget` summary reports
|
|
66
|
+
subtree usage separately. `RouterAgent.usage` previously included its delegate;
|
|
67
|
+
read `budget.treeTokens` for that aggregate and `delegateResult.cost` for child
|
|
68
|
+
pricing. Router and Pipeline report unpriced own tokens when their own calls
|
|
69
|
+
have no price attribution, instead of pairing own usage with a child cost or
|
|
70
|
+
a misleading zero.
|
|
71
|
+
Update consumers that assumed a parent and every child could independently spend
|
|
72
|
+
the full configured token budget. Foreign dispatch without metering is refused.
|
|
73
|
+
|
|
74
|
+
Durable run-state version 4 and checkpoint schema 2 reference an independent
|
|
75
|
+
canonical ledger. Old checkpoint readers must be upgraded before resuming these
|
|
76
|
+
runs. Missing ledgers, conflicting scopes/caps and unresolved provider receipts
|
|
77
|
+
are refused rather than resetting available tokens. In-memory accounts require
|
|
78
|
+
their authoritative handle on resume; moving a durable tree between processes
|
|
79
|
+
requires exclusive root ownership.
|
|
80
|
+
An explicitly recovered final provider receipt can be applied through
|
|
81
|
+
`reconcileRequest`; automatic recovery never clears unknown spend.
|
|
82
|
+
|
|
83
|
+
Fix the CLI's scheduler parameter forwarding so delegated work uses the parent
|
|
84
|
+
query's authority. Streaming usage includes the separate budget summary.
|
|
85
|
+
|
|
86
|
+
### Minor Changes
|
|
87
|
+
|
|
88
|
+
- 4025c75: A run can reach directories besides its working directory. `query({ additionalDirectories })` — absolute paths — is threaded to every file tool as `ToolContext.additionalDirectories`: relative paths still resolve against the working directory, an absolute path inside any added directory is accepted, and anything else outside is refused as before (`resolveWithinAny` / `resolveWithinAnyReal` / `toolRoots` in `tools/paths`). A sandboxed run binds each added directory read-write at its own path (`SandboxCreateConfig.additionalDirectories`: bwrap `--bind`, seatbelt `subpath` rules), and the local sandbox's own file API is contained to the same set.
|
|
89
|
+
- c884bc8: Delegates a host can define from files, and rosters narrower than the parent's.
|
|
90
|
+
|
|
91
|
+
- **`discoverAgentDefinitions(roots)`, `parseAgentFile`, `parseAgentMarkdown`** — a sub-agent defined in a Markdown file the way a skill is: frontmatter with `name`, `description`, optionally `tools` (one comma-separated line), `model` and `readOnly`, over a body that is the prompt. The host passes an ordered list of roots and later roots shadow earlier ones by name; a file that cannot be loaded is returned with its path and reason rather than silently dropped. Names a host reserves (`general-purpose`, `explore` by default) are refused.
|
|
92
|
+
- **`filterReadOnlyTools(registry)`** — the source's tools that declare themselves read-only and are trusted to say so, decided by `isTrustedReadOnly`, the same predicate the authorization gate uses; **`filterToolsNamed(registry, names)`** — the source intersected with an allowlist. Neither can widen.
|
|
93
|
+
- **`EXPLORE_AGENT_ID` / `EXPLORE_AGENT_DESCRIPTION` / `EXPLORE_AGENT_PROMPT`** — the read-only delegate's identity and prompt, for a host to build with `filterReadOnlyTools` and its own doctrine around it.
|
|
94
|
+
|
|
95
|
+
Nothing existing changed.
|
|
96
|
+
|
|
97
|
+
- 4dcb485: A background job's exit reaches the model without polling: the run subscribes to `BackgroundJobRegistry.onExit` and the exit rides out on the next tool result as a `[Background job update]` notice, and reaches the host as a `background_job_exited` event (`background_job.exited` on the SSE wire). `query({ backgroundJobOwner })` binds the run's jobs to an owner other than the run — a host's session, say — so a dev server started in one turn is still there in the next; the run then stops nothing at its end, and the host calls `killOwner` when its session closes.
|
|
98
|
+
- f6678f5: `ComputerUseCapabilities.unavailableReason`: when a host loaded but the desktop did not answer, the `computer_use` tool stays mountable with every capability false and the reason in its description and in every refusal — "requires capability screenshot which is not available on this host … the desktop did not answer: <why>. Do not retry; tell the user." The model reads why once instead of finding an absent tool or a bare error.
|
|
99
|
+
- 34282d5: Consolidation, the bridge from episodic to semantic memory. `query({ consolidateInto: memoryStore })` writes what the run learned when it ends — its decisions, discoveries and failures, and the files it changed — as one memory entry tagged `learning` (`consolidationEntry` builds it; a run that learned nothing writes nothing), and emits `memory_consolidated` with the entry's id and counts. A store that fails is logged and never fails the run. The salience scorer (`scoreMessages`, `buildGoal`, `planWorkingSet`, `planSalienceWorkingSet`) is exported for a host that wants to render or tune it.
|
|
100
|
+
- 698a5d8: The coding-agent doctrine, and a question that needs no gateway.
|
|
101
|
+
|
|
102
|
+
- **`CODING_AGENT_WORKING_DOCTRINE`, `CODING_AGENT_DELEGATION_DOCTRINE`, `PLAN_MODE_DOCTRINE`, `codingAgentDoctrineContribution(options?)`** — the rules that say HOW an agent built on this kernel works: act or ask, deliver the whole scope, report faithfully, prefer the bounded tools over their shell equivalents, what is off-limits in git without a person saying so. The working text names only builtin tools and suits every agent; the delegation text names `task_create` and `Agent` and suits the parent only, and `codingAgentDoctrineContribution({ delegation: false })` leaves it out for a sub-agent. The contribution is `static` and renders after `systemPrompt`, so a host keeps its own identity block in front of it.
|
|
103
|
+
- **`buildAskUserQuestionTool({ resumeHandler, runId?, questionParks?, pendingAnswers? })`** — `ask_user_question` on its own. It was reachable only through `buildCoordinatorTools`, which demands a gateway and a roster the question never uses and a run id at build time; the standalone builder takes the park handler and reads the run id from the calling `ToolContext` unless one is pinned. `buildCoordinatorTools` registers the same tool through it.
|
|
104
|
+
|
|
105
|
+
Nothing existing changed.
|
|
106
|
+
|
|
107
|
+
- 7e01452: Six more hook events, so an extension or a shell hook can act on what other coding agents' operators script against: `user_prompt_submit` (the prompt before the model sees it, on `PluginHookContext.prompt`; the one lifecycle event that can block a run with `skip`, and the one that can add to what the model is told with the new `annotate` result), `pre_compact` / `post_compact` (the pass's reason, tokens before and after, and the window on `compaction`), `subagent_stop` (fired after a delegated run's `run_end`, with `parentRunId`), and `session_start` / `session_end` (a host's to fire, with `sessionId`). Shell hooks attach to all of them: exit 2 on the prompt event blocks it, stdout on exit 0 is context for the model, and the stdin JSON carries `prompt`, `session_id`, `parent_run_id` and `compaction`. `applyLifecycleHookResults` now returns the annotations; a JavaScript hook returning `annotate` on any other event is rejected.
|
|
108
|
+
- 087abe9: A tool can pin a fact into the run's working memory. `ToolResult.workingState` is a list of `{ key, text }`; the executor pins each into the working state under the tool's name, a later pin under the same key replaces the earlier one, and pins render as `## Pinned by tools` in the working-memory slot — in front of the model every iteration, across compaction, and through checkpoints (`WorkingStateSnapshot.pins`, absent in older snapshots). An MCP server pins by returning a `resource` block of type `application/vnd.namzu.working-state+json` (`WORKING_STATE_MIME`) carrying a JSON array of pins. `WorkingStateManager.pin` / `unpin`, `MAX_PINS` (40) and `MAX_PIN_CHARS` (600) are exported; `WorkingState` gains `pins`, which a host that constructs the state by hand must add.
|
|
109
|
+
- ec1ac3c: The repeat-call tracker refuses one thing. It advised on identical calls and never denied one, so a model that asked a desktop it could not reach for a screenshot, read the same error and asked again ran until the iteration budget ended it. After four consecutive identical failures the fifth identical call is answered with a refusal that names the count and asks for a different call; a success in between resets the count, so a poll that fails a few times before it succeeds is never touched. `refuseFailedAfter` on `RepeatCallThresholds` sets the number; `repeatCallAdvisory: false` on `query` switches the tracker off entirely, as before.
|
|
110
|
+
- b3222f5: The review policy: what a run does with the calls no rule decided.
|
|
111
|
+
|
|
112
|
+
- **`createReviewPolicy({ mode, prompt, exempt | registry, remembered })`** — an `ApprovalPolicy` named after its mode, and **`createReviewHandler`** for a host that wants only the `ResumeHandler`. Five modes: `prompt` (ask the person the host supplies), `auto`, `accept-edits` (approve a batch of non-destructive `edit`/`write` calls, ask when anything else rides along), `plan` (refuse every mutation with `PLAN_MODE_REFUSAL`, the words that make the model present a plan), `strict` (refuse with `STRICT_MODE_REFUSAL`). A plan-approval request is approved and every other checkpoint continues. Only calls the gate routed to review reach it, so a mode can never reopen what a rule closed.
|
|
113
|
+
- **`isReviewExempt(registry, name, input)`** — the calls that skip review: a trusted read-only declaration or one of `REVIEW_EXEMPT_WRITES` (`task_create`, `task_update`, `update_goal`); never a `network` tool, never a tool the registry does not know. **`batchNeedsReview(toolCalls, exempt)`** — the batch rule.
|
|
114
|
+
- Types `ReviewMode`, `ToolReviewRequest`, `ToolReviewAnswer`, `ToolReviewPrompt`, `ReviewPolicyOptions`, `ReviewExemption`; constants `REVIEW_MODES`, `ACCEPT_EDITS_TOOLS`.
|
|
115
|
+
|
|
116
|
+
Two small alignments ride along: the kernel's execution-time plan-mode refusal now carries the same guidance text as the review-time one (`PLAN_MODE_REFUSAL`, exported from the permission types), and `ApiPermissionMode` is the kernel's `PermissionMode` rather than a second copy of the union.
|
|
117
|
+
|
|
118
|
+
Nothing else existing changed. The kernel's `permissionMode: 'plan'` stays the execution-time floor; `createReviewPolicy({ mode: 'plan' })` is the review-time counterpart that gives the model feedback instead of an error.
|
|
119
|
+
|
|
120
|
+
- f8168ee: A new compaction strategy, opt-in: `compaction.strategy: 'salience'`. Every message is scored without a model — recency with a half-life, BM25 relevance to the goal (the task, the live requirements, the open task-list items, the latest intent), whether a later turn used it, and whether a later message repeats it — and from `softTarget` (half the window by default) the least salient tokens are evicted first: a tool result's body cleared to the same placeholder the stale-result pass uses, an assistant narration cut to its first sentence. No message is removed and no pair is split, so it runs on every iteration; the summary path is reached only at `triggerThreshold`, as before. `compaction_tool_results_cleared` gains an optional `stubbedCount`. `structured` remains the default and is unchanged. The scoring core (`scoreMessages`, `buildGoal`, `planWorkingSet`) is exported from the compaction module for a host that wants to render or tune it.
|
|
121
|
+
- 97e0960: Background jobs inside the sandbox. `Sandbox.spawnDetached(command, args, { cwd, env })` — optional on the interface, implemented by the local provider for bwrap, seatbelt, namespace and basic tiers — starts a process under the same confinement as `exec` and hands it back running, with a `kill` that reaches bwrap's inner reaper. The background job registry accepts a `spawn` in `StartJobParams` (and `bindOwner` a `spawn` default) so the sandbox starts the job and the registry keeps it; the executor now binds jobs to a sandboxed run when its sandbox can spawn detached, and withholds them otherwise. `run_in_background` under a sandbox that cannot says so (`SANDBOX_CANNOT_DETACH`) instead of blaming the host.
|
|
122
|
+
- f5e62a3: A shell command as a plugin hook, once, for every host.
|
|
123
|
+
|
|
124
|
+
`createShellHook(event, entry, { cwd, log })` turns `{ command, matcher?, timeoutMs? }` into a `PluginHookDefinition` the lifecycle manager accepts, and `attachShellHooks(manager, config, { cwd, log })` registers a whole `{ pre_tool_use, post_tool_use, run_start, run_end }` table. The command runs with `sh -c`, receives the event as JSON on stdin and as `NAMZU_HOOK_EVENT` / `NAMZU_RUN_ID` / `NAMZU_TOOL_NAME` / `NAMZU_TOOL_PATH`, and answers with its exit code: `0` carries on, `2` before a tool skips the call with the hook's stderr as the reason the model reads, anything else — a crash, a missing interpreter, a timeout — is the hook's own failure, reported through the logger and never blocking. `runShellHook`, `shellHookVerdict` and `shellHookMatches` are exported separately for a host that wants the pieces. Nothing existing changed.
|
|
125
|
+
|
|
126
|
+
### Patch Changes
|
|
127
|
+
|
|
128
|
+
- 4510387: Add regression coverage for background jobs in supported sandboxes: the CLI
|
|
129
|
+
offers the capability, and the executor routes process creation and cleanup
|
|
130
|
+
through the sandbox. Correct an obsolete CLI test and documentation index
|
|
131
|
+
entry that still expected all sandbox background jobs to be unavailable.
|
|
132
|
+
Runtime behavior and public APIs are unchanged.
|
|
133
|
+
- 85dddca: `query` applies the compaction schema's defaults to a partial `compactionConfig`. A host that passed only a strategy and a window reached the compaction phase with `triggerThreshold` undefined, and `usage < undefined` is false: the pass ran on every iteration, and the salience strategy fell through to the stale-result clearing it exists to replace. Pass what you mean; the rest is filled in.
|
|
134
|
+
- d3f6a0f: A background job is its process group, not its shell. A command that backgrounds its real work (`server &`) used to be reported `exited` the moment the shell returned, while the server kept the port; the model was told the job was over and nothing stopped the survivor at session end. The job now stays `running` while any process of its group is alive, ends with the shell's exit code when the group is empty, and `kill` takes the survivors.
|
|
135
|
+
|
|
136
|
+
## 34.2.0
|
|
137
|
+
|
|
138
|
+
### Minor Changes
|
|
139
|
+
|
|
140
|
+
- 109977d: Show active delegated work automatically below the CLI composer, keep sibling
|
|
141
|
+
status and public interim answers visible while a batch runs, and provide
|
|
142
|
+
keyboard drill-down without sacrificing the current draft. Delegated Agent
|
|
143
|
+
calls now use the interactive one-hour deadline instead of the generic
|
|
144
|
+
two-minute tool limit. The CLI's ordinary and resumed interactive runs now use
|
|
145
|
+
that same one-hour upper deadline instead of the previous ten-minute default,
|
|
146
|
+
so callers that relied on the old automatic cutoff must enforce a ten-minute
|
|
147
|
+
process deadline themselves or cancel the turn explicitly.
|
|
148
|
+
|
|
149
|
+
Add `ToolContext.toolBatchId`, a stable optional identity shared by direct tool
|
|
150
|
+
calls issued in one model response, so hosts can group concurrent work without
|
|
151
|
+
mixing separate waves from the same run.
|
|
152
|
+
|
|
3
153
|
## 34.1.0
|
|
4
154
|
|
|
5
155
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -6,9 +6,8 @@ description: >-
|
|
|
6
6
|
with an identity, a budget, a permission boundary and pluggable durable
|
|
7
7
|
stores. Renders no UI, hosts no service, and has no preferred model vendor.
|
|
8
8
|
tags: [readme, package, sdk, agent-kernel]
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
diataxis: reference
|
|
9
|
+
status: stable
|
|
10
|
+
generated: { by: human:bahadirarda, at: 2026-08-21T00:00:00Z }
|
|
12
11
|
-->
|
|
13
12
|
|
|
14
13
|
<div align="center">
|
|
@@ -179,9 +178,6 @@ the package root, and each carries `details.topicId`.
|
|
|
179
178
|
|
|
180
179
|
## Documentation
|
|
181
180
|
|
|
182
|
-
- [The kernel in depth](https://github.com/cogitave/namzu/blob/main/docs/sdk/architecture.md) — every subsystem, the design principles, the event protocol
|
|
183
|
-
- [An agent is a folder](https://github.com/cogitave/namzu/blob/main/docs/sdk/directory/agent-as-a-directory.md)
|
|
184
|
-
- [Tools and safety](https://github.com/cogitave/namzu/tree/main/docs/sdk/tools) · [Observability](https://github.com/cogitave/namzu/tree/main/docs/sdk/observability) · [Integrations](https://github.com/cogitave/namzu/tree/main/docs/sdk/integrations)
|
|
185
181
|
- [All docs](https://github.com/cogitave/namzu/tree/main/docs)
|
|
186
182
|
|
|
187
183
|
## License
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PipelineAgent.d.ts","sourceRoot":"","sources":["../../src/agents/PipelineAgent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,OAAO,KAAK,EACX,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EAGnB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAG7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"PipelineAgent.d.ts","sourceRoot":"","sources":["../../src/agents/PipelineAgent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAGH,OAAO,KAAK,EACX,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EAGnB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAG7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAGlD,qBAAa,aAAc,SAAQ,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IACzF,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAS;gBAEvB,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,cAAc,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM;IAgBhF;;;;;;;;OAQG;IACG,GAAG,CACR,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,mBAAmB,CAAC;YAMjB,YAAY;CA2J1B"}
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
*
|
|
26
26
|
* That is the bar a reopen has to clear.
|
|
27
27
|
*/
|
|
28
|
-
import {
|
|
28
|
+
import { withTokenBudget } from '../provider/token-budget.js';
|
|
29
29
|
import { ZERO_COST } from '../utils/cost.js';
|
|
30
30
|
import { toErrorMessage } from '../utils/error.js';
|
|
31
31
|
import { AbstractAgent } from './AbstractAgent.js';
|
|
32
|
+
import { resolveAgentBudget } from './budget.js';
|
|
32
33
|
export class PipelineAgent extends AbstractAgent {
|
|
33
34
|
type = 'pipeline';
|
|
34
35
|
constructor(metadata, log) {
|
|
@@ -62,112 +63,129 @@ export class PipelineAgent extends AbstractAgent {
|
|
|
62
63
|
const startTime = Date.now();
|
|
63
64
|
const runId = this.createRunId();
|
|
64
65
|
this.bindRun(runId, config.logger);
|
|
65
|
-
const
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
runId,
|
|
90
|
-
stepIndex: i,
|
|
91
|
-
totalSteps: config.steps.length,
|
|
92
|
-
previousResults,
|
|
93
|
-
provider: config.provider,
|
|
94
|
-
signal: this.abortController.signal,
|
|
95
|
-
env: config.env ?? {},
|
|
96
|
-
};
|
|
97
|
-
try {
|
|
98
|
-
if (step.validate && !step.validate(currentInput)) {
|
|
99
|
-
throw new Error(`Validation failed for step "${step.name}"`);
|
|
66
|
+
const budget = await resolveAgentBudget(input, config, runId);
|
|
67
|
+
const provider = config.provider ? withTokenBudget(config.provider, budget) : undefined;
|
|
68
|
+
try {
|
|
69
|
+
const stepResults = [];
|
|
70
|
+
const previousResults = new Map();
|
|
71
|
+
let completedSteps = 0;
|
|
72
|
+
await this.emitEvent({ type: 'run_started', runId }, listener);
|
|
73
|
+
let currentInput = input.messages
|
|
74
|
+
.filter((m) => m.role === 'user')
|
|
75
|
+
.map((m) => m.content)
|
|
76
|
+
.filter((c) => c !== null)
|
|
77
|
+
.join('\n');
|
|
78
|
+
for (let i = 0; i < config.steps.length; i++) {
|
|
79
|
+
const step = config.steps[i];
|
|
80
|
+
if (!step)
|
|
81
|
+
throw new Error(`Pipeline step at index ${i} is undefined`);
|
|
82
|
+
const stepStart = Date.now();
|
|
83
|
+
if (this.abortController.signal.aborted) {
|
|
84
|
+
stepResults.push({
|
|
85
|
+
stepName: step.name,
|
|
86
|
+
status: 'skipped',
|
|
87
|
+
durationMs: 0,
|
|
88
|
+
});
|
|
89
|
+
continue;
|
|
100
90
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
stepName: step.name,
|
|
116
|
-
status: 'failed',
|
|
117
|
-
error: errorMsg,
|
|
118
|
-
durationMs: Date.now() - stepStart,
|
|
119
|
-
});
|
|
120
|
-
if (step.rollback) {
|
|
121
|
-
try {
|
|
122
|
-
await step.rollback(currentInput, context);
|
|
123
|
-
}
|
|
124
|
-
catch (rollbackErr) {
|
|
125
|
-
this.log.error('Rollback failed for a step', {
|
|
126
|
-
'namzu.pipeline.step_name': step.name,
|
|
127
|
-
'exception.message': toErrorMessage(rollbackErr),
|
|
128
|
-
});
|
|
91
|
+
await this.emitEvent({ type: 'iteration_started', runId, iteration: i + 1 }, listener);
|
|
92
|
+
const context = {
|
|
93
|
+
runId,
|
|
94
|
+
stepIndex: i,
|
|
95
|
+
totalSteps: config.steps.length,
|
|
96
|
+
previousResults,
|
|
97
|
+
provider,
|
|
98
|
+
budget,
|
|
99
|
+
signal: this.abortController.signal,
|
|
100
|
+
env: config.env ?? {},
|
|
101
|
+
};
|
|
102
|
+
try {
|
|
103
|
+
if (step.validate && !step.validate(currentInput)) {
|
|
104
|
+
throw new Error(`Validation failed for step "${step.name}"`);
|
|
129
105
|
}
|
|
106
|
+
const output = await step.execute(currentInput, context);
|
|
107
|
+
previousResults.set(step.name, output);
|
|
108
|
+
currentInput = output;
|
|
109
|
+
completedSteps++;
|
|
110
|
+
stepResults.push({
|
|
111
|
+
stepName: step.name,
|
|
112
|
+
status: 'completed',
|
|
113
|
+
output,
|
|
114
|
+
durationMs: Date.now() - stepStart,
|
|
115
|
+
});
|
|
130
116
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
117
|
+
catch (err) {
|
|
118
|
+
const errorMsg = toErrorMessage(err);
|
|
119
|
+
stepResults.push({
|
|
120
|
+
stepName: step.name,
|
|
135
121
|
status: 'failed',
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
122
|
+
error: errorMsg,
|
|
123
|
+
durationMs: Date.now() - stepStart,
|
|
124
|
+
});
|
|
125
|
+
if (step.rollback) {
|
|
126
|
+
try {
|
|
127
|
+
await step.rollback(currentInput, context);
|
|
128
|
+
}
|
|
129
|
+
catch (rollbackErr) {
|
|
130
|
+
this.log.error('Rollback failed for a step', {
|
|
131
|
+
'namzu.pipeline.step_name': step.name,
|
|
132
|
+
'exception.message': toErrorMessage(rollbackErr),
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (!config.continueOnError) {
|
|
137
|
+
await this.emitEvent({
|
|
138
|
+
type: 'run_failed',
|
|
139
|
+
runId,
|
|
140
|
+
error: errorMsg,
|
|
141
|
+
budget: budget.summary(),
|
|
142
|
+
}, listener);
|
|
143
|
+
return {
|
|
144
|
+
runId,
|
|
145
|
+
status: 'failed',
|
|
146
|
+
stopReason: 'error',
|
|
147
|
+
usage: budget.ownUsage,
|
|
148
|
+
budget: budget.summary(),
|
|
149
|
+
cost: { ...ZERO_COST, unpricedTokens: budget.ownTokens },
|
|
150
|
+
iterations: i + 1,
|
|
151
|
+
durationMs: Date.now() - startTime,
|
|
152
|
+
messages: input.messages,
|
|
153
|
+
lastError: errorMsg,
|
|
154
|
+
stepResults,
|
|
155
|
+
completedSteps,
|
|
156
|
+
totalSteps: config.steps.length,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
147
159
|
}
|
|
148
160
|
}
|
|
161
|
+
const finalStatus = completedSteps === config.steps.length ? 'completed' : 'failed';
|
|
162
|
+
const lastOutput = stepResults[stepResults.length - 1]?.output;
|
|
163
|
+
await this.emitEvent({
|
|
164
|
+
type: 'run_completed',
|
|
165
|
+
budget: budget.summary(),
|
|
166
|
+
runId,
|
|
167
|
+
result: typeof lastOutput === 'string' ? lastOutput : JSON.stringify(lastOutput),
|
|
168
|
+
}, listener);
|
|
169
|
+
return {
|
|
170
|
+
runId,
|
|
171
|
+
status: finalStatus,
|
|
172
|
+
stopReason: 'end_turn',
|
|
173
|
+
usage: budget.ownUsage,
|
|
174
|
+
budget: budget.summary(),
|
|
175
|
+
cost: { ...ZERO_COST, unpricedTokens: budget.ownTokens },
|
|
176
|
+
iterations: config.steps.length,
|
|
177
|
+
durationMs: Date.now() - startTime,
|
|
178
|
+
messages: input.messages,
|
|
179
|
+
result: typeof lastOutput === 'string' ? lastOutput : JSON.stringify(lastOutput),
|
|
180
|
+
stepResults,
|
|
181
|
+
completedSteps,
|
|
182
|
+
totalSteps: config.steps.length,
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
finally {
|
|
186
|
+
budget.settle();
|
|
187
|
+
await budget.flush();
|
|
149
188
|
}
|
|
150
|
-
const finalStatus = completedSteps === config.steps.length ? 'completed' : 'failed';
|
|
151
|
-
const lastOutput = stepResults[stepResults.length - 1]?.output;
|
|
152
|
-
await this.emitEvent({
|
|
153
|
-
type: 'run_completed',
|
|
154
|
-
runId,
|
|
155
|
-
result: typeof lastOutput === 'string' ? lastOutput : JSON.stringify(lastOutput),
|
|
156
|
-
}, listener);
|
|
157
|
-
return {
|
|
158
|
-
runId,
|
|
159
|
-
status: finalStatus,
|
|
160
|
-
stopReason: 'end_turn',
|
|
161
|
-
usage: { ...EMPTY_TOKEN_USAGE },
|
|
162
|
-
cost: { ...ZERO_COST },
|
|
163
|
-
iterations: config.steps.length,
|
|
164
|
-
durationMs: Date.now() - startTime,
|
|
165
|
-
messages: input.messages,
|
|
166
|
-
result: typeof lastOutput === 'string' ? lastOutput : JSON.stringify(lastOutput),
|
|
167
|
-
stepResults,
|
|
168
|
-
completedSteps,
|
|
169
|
-
totalSteps: config.steps.length,
|
|
170
|
-
};
|
|
171
189
|
}
|
|
172
190
|
}
|
|
173
191
|
//# sourceMappingURL=PipelineAgent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PipelineAgent.js","sourceRoot":"","sources":["../../src/agents/PipelineAgent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"PipelineAgent.js","sourceRoot":"","sources":["../../src/agents/PipelineAgent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AA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1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactiveAgent.d.ts","sourceRoot":"","sources":["../../src/agents/ReactiveAgent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,qBAAa,aAAc,SAAQ,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IACzF,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAS;gBAEvB,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,cAAc,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM;IAgBhF;;;;;;;;OAQG;IACG,GAAG,CACR,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,mBAAmB,CAAC;YAMjB,YAAY;
|
|
1
|
+
{"version":3,"file":"ReactiveAgent.d.ts","sourceRoot":"","sources":["../../src/agents/ReactiveAgent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,mBAAmB,EACnB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,qBAAa,aAAc,SAAQ,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IACzF,QAAQ,CAAC,IAAI,EAAG,UAAU,CAAS;gBAEvB,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,cAAc,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM;IAgBhF;;;;;;;;OAQG;IACG,GAAG,CACR,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,mBAAmB,CAAC;YAMjB,YAAY;IAuJX,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtC"}
|
|
@@ -39,6 +39,7 @@ export class ReactiveAgent extends AbstractAgent {
|
|
|
39
39
|
skills: config.skills,
|
|
40
40
|
basePrompt: config.basePrompt,
|
|
41
41
|
provider: config.provider,
|
|
42
|
+
...(config.budget ? { budget: config.budget } : {}),
|
|
42
43
|
tools: config.tools,
|
|
43
44
|
...(input.attachmentStore ? { attachmentStore: input.attachmentStore } : {}),
|
|
44
45
|
...(config.attachmentResolveTimeoutMs !== undefined
|
|
@@ -151,6 +152,7 @@ export class ReactiveAgent extends AbstractAgent {
|
|
|
151
152
|
status: run.status,
|
|
152
153
|
stopReason: run.stopReason,
|
|
153
154
|
usage: run.tokenUsage,
|
|
155
|
+
...(run.budget ? { budget: run.budget } : {}),
|
|
154
156
|
cost: run.costInfo,
|
|
155
157
|
iterations: run.currentIteration,
|
|
156
158
|
durationMs: Date.now() - startTime,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactiveAgent.js","sourceRoot":"","sources":["../../src/agents/ReactiveAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAUtD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAElD,MAAM,OAAO,aAAc,SAAQ,aAAuD;IAChF,IAAI,GAAG,UAAmB,CAAA;IAEnC,YAAY,QAAsD,EAAE,GAAY;QAC/E,KAAK,CACJ;YACC,GAAG,QAAQ;YACX,IAAI,EAAE,UAAU;YAChB,YAAY,EAAE;gBACb,aAAa,EAA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,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;YAChC,IAAI,GAAG,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;gBAC9B,MAAM,YAAY,GAAG,GAAuB,CAAA;gBAC5C,IAAI,YAAY,CAAC,SAAS,EAAE,CAAC;oBAC5B,aAAa,IAAI,YAAY,CAAC,SAAS,CAAC,MAAM,CAAA;gBAC/C,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO;YACN,KAAK,EAAE,GAAG,CAAC,EAAE;YACb,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,KAAK,EAAE,GAAG,CAAC,UAAU;YACrB,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YAC7C,IAAI,EAAE,GAAG,CAAC,QAAQ;YAClB,UAAU,EAAE,GAAG,CAAC,gBAAgB;YAChC,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;YAClC,QAAQ,EAAE,GAAG,CAAC,QAAQ;YACtB,MAAM,EAAE,GAAG,CAAC,MAAM;YAClB,gBAAgB,EAAE,GAAG,CAAC,gBAAgB;YACtC,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,aAAa;SACb,CAAA;IACF,CAAC;IAEQ,KAAK,CAAC,MAAM;QACpB,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAA;IAC7B,CAAC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RouterAgent.d.ts","sourceRoot":"","sources":["../../src/agents/RouterAgent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RouterAgent.d.ts","sourceRoot":"","sources":["../../src/agents/RouterAgent.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACX,UAAU,EACV,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EAEjB,MAAM,yBAAyB,CAAA;AAKhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAGlD,qBAAa,WAAY,SAAQ,aAAa,CAAC,iBAAiB,EAAE,iBAAiB,CAAC;IACnF,QAAQ,CAAC,IAAI,EAAG,QAAQ,CAAS;gBAErB,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,cAAc,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM;IAgBhF;;;;;;;;OAQG;IACG,GAAG,CACR,KAAK,EAAE,UAAU,EACjB,MAAM,EAAE,iBAAiB,EACzB,QAAQ,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,iBAAiB,CAAC;YAMf,YAAY;YAuIZ,KAAK;CAwJnB"}
|