@animalabs/agent-framework 0.22.1 → 0.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/src/agent.d.ts +192 -19
- package/dist/src/agent.d.ts.map +1 -1
- package/dist/src/agent.js +404 -65
- package/dist/src/agent.js.map +1 -1
- package/dist/src/api/mcp-server-core.d.ts +41 -0
- package/dist/src/api/mcp-server-core.d.ts.map +1 -0
- package/dist/src/api/mcp-server-core.js +593 -0
- package/dist/src/api/mcp-server-core.js.map +1 -0
- package/dist/src/api/mcp-server.d.ts +2 -36
- package/dist/src/api/mcp-server.d.ts.map +1 -1
- package/dist/src/api/mcp-server.js +15 -595
- package/dist/src/api/mcp-server.js.map +1 -1
- package/dist/src/api/server.d.ts +9 -1
- package/dist/src/api/server.d.ts.map +1 -1
- package/dist/src/api/server.js +50 -26
- package/dist/src/api/server.js.map +1 -1
- package/dist/src/api/types.d.ts +9 -1
- package/dist/src/api/types.d.ts.map +1 -1
- package/dist/src/code-execution/py-runner.d.ts.map +1 -1
- package/dist/src/code-execution/py-runner.js.map +1 -1
- package/dist/src/framework.d.ts +393 -113
- package/dist/src/framework.d.ts.map +1 -1
- package/dist/src/framework.js +1748 -582
- package/dist/src/framework.js.map +1 -1
- package/dist/src/gate/event-gate.d.ts.map +1 -1
- package/dist/src/gate/gate-script.d.ts.map +1 -1
- package/dist/src/gate/gate-script.js.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +2 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/mcpl/capability-grant.d.ts.map +1 -1
- package/dist/src/mcpl/channel-registry.d.ts +26 -7
- package/dist/src/mcpl/channel-registry.d.ts.map +1 -1
- package/dist/src/mcpl/channel-registry.js +102 -22
- package/dist/src/mcpl/channel-registry.js.map +1 -1
- package/dist/src/mcpl/checkpoint-manager.d.ts.map +1 -1
- package/dist/src/mcpl/checkpoint-manager.js.map +1 -1
- package/dist/src/mcpl/conversation-router.d.ts.map +1 -1
- package/dist/src/mcpl/errors.js.map +1 -1
- package/dist/src/mcpl/feature-set-manager.d.ts.map +1 -1
- package/dist/src/mcpl/feature-set-manager.js +4 -3
- package/dist/src/mcpl/feature-set-manager.js.map +1 -1
- package/dist/src/mcpl/hook-orchestrator.d.ts.map +1 -1
- package/dist/src/mcpl/inference-router.d.ts.map +1 -1
- package/dist/src/mcpl/log-value.d.ts +54 -0
- package/dist/src/mcpl/log-value.d.ts.map +1 -0
- package/dist/src/mcpl/log-value.js +109 -0
- package/dist/src/mcpl/log-value.js.map +1 -0
- package/dist/src/mcpl/prose-stream-router.d.ts +6 -6
- package/dist/src/mcpl/prose-stream-router.d.ts.map +1 -1
- package/dist/src/mcpl/prose-stream-router.js +4 -4
- package/dist/src/mcpl/prose-stream-router.js.map +1 -1
- package/dist/src/mcpl/push-coalescer.d.ts +38 -3
- package/dist/src/mcpl/push-coalescer.d.ts.map +1 -1
- package/dist/src/mcpl/push-coalescer.js +81 -16
- package/dist/src/mcpl/push-coalescer.js.map +1 -1
- package/dist/src/mcpl/push-handler.d.ts +26 -3
- package/dist/src/mcpl/push-handler.d.ts.map +1 -1
- package/dist/src/mcpl/push-handler.js +87 -23
- package/dist/src/mcpl/push-handler.js.map +1 -1
- package/dist/src/mcpl/reference-fetcher.d.ts.map +1 -1
- package/dist/src/mcpl/reference-fetcher.js.map +1 -1
- package/dist/src/mcpl/references.d.ts +2 -2
- package/dist/src/mcpl/references.d.ts.map +1 -1
- package/dist/src/mcpl/references.js.map +1 -1
- package/dist/src/mcpl/refusal-lines.d.ts +37 -0
- package/dist/src/mcpl/refusal-lines.d.ts.map +1 -0
- package/dist/src/mcpl/refusal-lines.js +61 -0
- package/dist/src/mcpl/refusal-lines.js.map +1 -0
- package/dist/src/mcpl/scope-manager.d.ts.map +1 -1
- package/dist/src/mcpl/server-connection.d.ts +18 -2
- package/dist/src/mcpl/server-connection.d.ts.map +1 -1
- package/dist/src/mcpl/server-connection.js +66 -11
- package/dist/src/mcpl/server-connection.js.map +1 -1
- package/dist/src/mcpl/server-registry.d.ts.map +1 -1
- package/dist/src/mcpl/tool-classes.d.ts +1 -1
- package/dist/src/mcpl/tool-classes.d.ts.map +1 -1
- package/dist/src/mcpl/tool-classes.js +3 -2
- package/dist/src/mcpl/tool-classes.js.map +1 -1
- package/dist/src/mcpl/tool-lifecycle.d.ts.map +1 -1
- package/dist/src/mcpl/tool-lifecycle.js.map +1 -1
- package/dist/src/mcpl/transport.d.ts +23 -5
- package/dist/src/mcpl/transport.d.ts.map +1 -1
- package/dist/src/mcpl/transport.js +103 -10
- package/dist/src/mcpl/transport.js.map +1 -1
- package/dist/src/mcpl/types.d.ts +30 -26
- package/dist/src/mcpl/types.d.ts.map +1 -1
- package/dist/src/mcpl/types.js.map +1 -1
- package/dist/src/module-registry.d.ts.map +1 -1
- package/dist/src/module-registry.js.map +1 -1
- package/dist/src/modules/api/index.d.ts.map +1 -1
- package/dist/src/modules/discord/discord-js-client.d.ts.map +1 -1
- package/dist/src/modules/discord/discord-js-client.js.map +1 -1
- package/dist/src/modules/discord/index.d.ts.map +1 -1
- package/dist/src/modules/discord/index.js +4 -2
- package/dist/src/modules/discord/index.js.map +1 -1
- package/dist/src/modules/health/index.d.ts.map +1 -1
- package/dist/src/modules/health/index.js.map +1 -1
- package/dist/src/modules/history/index.d.ts.map +1 -1
- package/dist/src/modules/history/index.js.map +1 -1
- package/dist/src/modules/history/semantic.d.ts.map +1 -1
- package/dist/src/modules/history/semantic.js.map +1 -1
- package/dist/src/modules/workspace/branch-intent.d.ts.map +1 -1
- package/dist/src/modules/workspace/branch-intent.js.map +1 -1
- package/dist/src/modules/workspace/disk-agreement.d.ts +22 -4
- package/dist/src/modules/workspace/disk-agreement.d.ts.map +1 -1
- package/dist/src/modules/workspace/disk-agreement.js +63 -25
- package/dist/src/modules/workspace/disk-agreement.js.map +1 -1
- package/dist/src/modules/workspace/effects.d.ts.map +1 -1
- package/dist/src/modules/workspace/index.d.ts +8 -4
- package/dist/src/modules/workspace/index.d.ts.map +1 -1
- package/dist/src/modules/workspace/index.js +39 -12
- package/dist/src/modules/workspace/index.js.map +1 -1
- package/dist/src/modules/workspace/observe.d.ts +43 -8
- package/dist/src/modules/workspace/observe.d.ts.map +1 -1
- package/dist/src/modules/workspace/observe.js +264 -39
- package/dist/src/modules/workspace/observe.js.map +1 -1
- package/dist/src/modules/workspace/reconcile.d.ts +17 -1
- package/dist/src/modules/workspace/reconcile.d.ts.map +1 -1
- package/dist/src/modules/workspace/reconcile.js +57 -14
- package/dist/src/modules/workspace/reconcile.js.map +1 -1
- package/dist/src/modules/workspace/types.d.ts +27 -2
- package/dist/src/modules/workspace/types.d.ts.map +1 -1
- package/dist/src/modules/workspace/types.js.map +1 -1
- package/dist/src/modules/workspace/watcher.d.ts.map +1 -1
- package/dist/src/modules/workspace/watcher.js.map +1 -1
- package/dist/src/operator-log.d.ts.map +1 -1
- package/dist/src/operator-log.js.map +1 -1
- package/dist/src/provider-waits.d.ts.map +1 -1
- package/dist/src/provider-waits.js.map +1 -1
- package/dist/src/queue.d.ts.map +1 -1
- package/dist/src/record-journal.d.ts.map +1 -1
- package/dist/src/record-journal.js.map +1 -1
- package/dist/src/recovery/discord-awareness-outbox.d.ts.map +1 -1
- package/dist/src/recovery/discord-awareness-outbox.js.map +1 -1
- package/dist/src/recovery/offline-branch.d.ts.map +1 -1
- package/dist/src/recovery/offline-branch.js +29 -24
- package/dist/src/recovery/offline-branch.js.map +1 -1
- package/dist/src/recovery/recover-cli.js.map +1 -1
- package/dist/src/runtime/liveness-watchdog.d.ts.map +1 -1
- package/dist/src/runtime/liveness-watchdog.js.map +1 -1
- package/dist/src/shutdown.d.ts.map +1 -1
- package/dist/src/shutdown.js.map +1 -1
- package/dist/src/stored-removal.d.ts +73 -0
- package/dist/src/stored-removal.d.ts.map +1 -0
- package/dist/src/stored-removal.js +100 -0
- package/dist/src/stored-removal.js.map +1 -0
- package/dist/src/thinking-token-stamp.js.map +1 -1
- package/dist/src/tool-image-ledger.d.ts.map +1 -1
- package/dist/src/tool-image-ledger.js.map +1 -1
- package/dist/src/tool-presentation.d.ts.map +1 -1
- package/dist/src/tool-presentation.js.map +1 -1
- package/dist/src/tool-result-guard.d.ts.map +1 -1
- package/dist/src/tool-result-guard.js.map +1 -1
- package/dist/src/tune-out/coordinator.d.ts.map +1 -1
- package/dist/src/tune-out/coordinator.js.map +1 -1
- package/dist/src/tune-out/tools.d.ts +1 -1
- package/dist/src/tune-out/tools.d.ts.map +1 -1
- package/dist/src/types/agent.d.ts +42 -6
- package/dist/src/types/agent.d.ts.map +1 -1
- package/dist/src/types/framework.d.ts +10 -0
- package/dist/src/types/framework.d.ts.map +1 -1
- package/dist/src/types/module.d.ts +8 -4
- package/dist/src/types/module.d.ts.map +1 -1
- package/dist/src/types/trace.d.ts +61 -10
- package/dist/src/types/trace.d.ts.map +1 -1
- package/dist/src/usage/usage-tracker.d.ts.map +1 -1
- package/dist/test/agent-runtime-settings.test.js +1139 -3
- package/dist/test/agent-runtime-settings.test.js.map +1 -1
- package/dist/test/batched-wake-locus.test.js.map +1 -1
- package/dist/test/channel-label-history.test.js.map +1 -1
- package/dist/test/code-execution.test.js.map +1 -1
- package/dist/test/conversation-fork-injection-scoping.test.js.map +1 -1
- package/dist/test/conversation-router.test.js.map +1 -1
- package/dist/test/conversation-routing.test.js +240 -6
- package/dist/test/conversation-routing.test.js.map +1 -1
- package/dist/test/discord-awareness-outbox.test.js +104 -0
- package/dist/test/discord-awareness-outbox.test.js.map +1 -1
- package/dist/test/discord-typing-keepalive.test.d.ts +2 -0
- package/dist/test/discord-typing-keepalive.test.d.ts.map +1 -0
- package/dist/test/discord-typing-keepalive.test.js +77 -0
- package/dist/test/discord-typing-keepalive.test.js.map +1 -0
- package/dist/test/ephemeral-settle.test.js.map +1 -1
- package/dist/test/event-gate-passthrough.test.js.map +1 -1
- package/dist/test/event-gate-policy-mutation.test.js.map +1 -1
- package/dist/test/event-gate-rate-limit.test.js.map +1 -1
- package/dist/test/event-gate-script.test.js.map +1 -1
- package/dist/test/event-gate-selfwake.test.js.map +1 -1
- package/dist/test/event-gate-tags.test.js.map +1 -1
- package/dist/test/event-gate.test.js.map +1 -1
- package/dist/test/explicit-prose-routing.test.js +363 -42
- package/dist/test/explicit-prose-routing.test.js.map +1 -1
- package/dist/test/framework.test.js.map +1 -1
- package/dist/test/helpers/coalescing-fixture.d.ts +2 -0
- package/dist/test/helpers/coalescing-fixture.d.ts.map +1 -1
- package/dist/test/helpers/coalescing-fixture.js +8 -2
- package/dist/test/helpers/coalescing-fixture.js.map +1 -1
- package/dist/test/helpers/mock-membrane.d.ts.map +1 -1
- package/dist/test/helpers/mock-membrane.js.map +1 -1
- package/dist/test/hide-then-turn.test.d.ts +2 -0
- package/dist/test/hide-then-turn.test.d.ts.map +1 -0
- package/dist/test/hide-then-turn.test.js +101 -0
- package/dist/test/hide-then-turn.test.js.map +1 -0
- package/dist/test/history-module-overview.test.js.map +1 -1
- package/dist/test/history-module-semantic.test.js.map +1 -1
- package/dist/test/history-module.test.js.map +1 -1
- package/dist/test/history-semantic-review-findings.test.js.map +1 -1
- package/dist/test/host-quiesce.test.js +125 -0
- package/dist/test/host-quiesce.test.js.map +1 -1
- package/dist/test/inference-exhaustion-rewind.test.js +81 -3
- package/dist/test/inference-exhaustion-rewind.test.js.map +1 -1
- package/dist/test/inference-failure-bounds.test.js +1 -0
- package/dist/test/inference-failure-bounds.test.js.map +1 -1
- package/dist/test/kv-unified-open-flight-retry.test.js.map +1 -1
- package/dist/test/liveness-watchdog.test.js.map +1 -1
- package/dist/test/maintenance-timer.test.js +1564 -2
- package/dist/test/maintenance-timer.test.js.map +1 -1
- package/dist/test/mcp-server-bin.test.d.ts +2 -0
- package/dist/test/mcp-server-bin.test.d.ts.map +1 -0
- package/dist/test/mcp-server-bin.test.js +142 -0
- package/dist/test/mcp-server-bin.test.js.map +1 -0
- package/dist/test/mcpl-awareness-barrier.test.js.map +1 -1
- package/dist/test/mcpl-child-env.test.js +1 -1
- package/dist/test/mcpl-child-env.test.js.map +1 -1
- package/dist/test/mcpl-coalesced-content-parity.test.d.ts +2 -0
- package/dist/test/mcpl-coalesced-content-parity.test.d.ts.map +1 -0
- package/dist/test/mcpl-coalesced-content-parity.test.js +532 -0
- package/dist/test/mcpl-coalesced-content-parity.test.js.map +1 -0
- package/dist/test/mcpl-coalescing.test.js.map +1 -1
- package/dist/test/mcpl-config-diagnostics.test.js.map +1 -1
- package/dist/test/mcpl-gate-roundtrip.test.js.map +1 -1
- package/dist/test/mcpl-manifest-changed.test.js.map +1 -1
- package/dist/test/mcpl-reconnect-events.test.js.map +1 -1
- package/dist/test/mcpl-reconnect-reregistration.test.js +2 -0
- package/dist/test/mcpl-reconnect-reregistration.test.js.map +1 -1
- package/dist/test/mcpl-reference-fetcher.test.js.map +1 -1
- package/dist/test/mcpl-reference-fields.test.js.map +1 -1
- package/dist/test/mcpl-rejection-log-lines.test.d.ts +2 -0
- package/dist/test/mcpl-rejection-log-lines.test.d.ts.map +1 -0
- package/dist/test/mcpl-rejection-log-lines.test.js +349 -0
- package/dist/test/mcpl-rejection-log-lines.test.js.map +1 -0
- package/dist/test/mcpl-stderr-tail.test.d.ts +2 -0
- package/dist/test/mcpl-stderr-tail.test.d.ts.map +1 -0
- package/dist/test/mcpl-stderr-tail.test.js +210 -0
- package/dist/test/mcpl-stderr-tail.test.js.map +1 -0
- package/dist/test/mcpl-tool-lifecycle-e2e.test.js.map +1 -1
- package/dist/test/mcpl-tool-lifecycle-emitter.test.js.map +1 -1
- package/dist/test/mcpl-tool-lifecycle-script.test.js.map +1 -1
- package/dist/test/mcpl-tool-lifecycle.test.js.map +1 -1
- package/dist/test/mcpl-transport-close.test.d.ts +2 -0
- package/dist/test/mcpl-transport-close.test.d.ts.map +1 -0
- package/dist/test/mcpl-transport-close.test.js +373 -0
- package/dist/test/mcpl-transport-close.test.js.map +1 -0
- package/dist/test/mcpl-transport-spawn.test.d.ts +2 -0
- package/dist/test/mcpl-transport-spawn.test.d.ts.map +1 -0
- package/dist/test/mcpl-transport-spawn.test.js +58 -0
- package/dist/test/mcpl-transport-spawn.test.js.map +1 -0
- package/dist/test/mcpl-ws-transport.test.js +1 -0
- package/dist/test/mcpl-ws-transport.test.js.map +1 -1
- package/dist/test/offline-recovery-branch.test.js +344 -0
- package/dist/test/offline-recovery-branch.test.js.map +1 -1
- package/dist/test/operator-surgery.test.js +197 -0
- package/dist/test/operator-surgery.test.js.map +1 -1
- package/dist/test/overbudget-drain-breaker.test.js +1 -0
- package/dist/test/overbudget-drain-breaker.test.js.map +1 -1
- package/dist/test/pack-installs-alone.test.d.ts +2 -0
- package/dist/test/pack-installs-alone.test.d.ts.map +1 -0
- package/dist/test/pack-installs-alone.test.js +284 -0
- package/dist/test/pack-installs-alone.test.js.map +1 -0
- package/dist/test/physical-window-restart.test.d.ts +6 -4
- package/dist/test/physical-window-restart.test.d.ts.map +1 -1
- package/dist/test/physical-window-restart.test.js +275 -10
- package/dist/test/physical-window-restart.test.js.map +1 -1
- package/dist/test/placed-reaction-baseline.test.js.map +1 -1
- package/dist/test/present-while-acting.test.js +949 -6
- package/dist/test/present-while-acting.test.js.map +1 -1
- package/dist/test/provider-acceleration-cooldown.test.js.map +1 -1
- package/dist/test/provider-waits.test.js +67 -4
- package/dist/test/provider-waits.test.js.map +1 -1
- package/dist/test/puppet-tool-call.test.js +2 -0
- package/dist/test/puppet-tool-call.test.js.map +1 -1
- package/dist/test/reaction-baseline-platform.test.js.map +1 -1
- package/dist/test/record-journal.test.js.map +1 -1
- package/dist/test/refusal-rewind.test.js +9 -0
- package/dist/test/refusal-rewind.test.js.map +1 -1
- package/dist/test/refusal-single-call.test.js.map +1 -1
- package/dist/test/release-bump.test.d.ts +2 -0
- package/dist/test/release-bump.test.d.ts.map +1 -0
- package/dist/test/release-bump.test.js +248 -0
- package/dist/test/release-bump.test.js.map +1 -0
- package/dist/test/release-changelog.test.js.map +1 -1
- package/dist/test/release-holds.test.d.ts +2 -0
- package/dist/test/release-holds.test.d.ts.map +1 -0
- package/dist/test/release-holds.test.js +456 -0
- package/dist/test/release-holds.test.js.map +1 -0
- package/dist/test/same-round-think-policy.test.js.map +1 -1
- package/dist/test/shutdown-errors.test.js.map +1 -1
- package/dist/test/silent-heartbeat-rows.test.js.map +1 -1
- package/dist/test/stop-with-host-operations.test.d.ts +20 -0
- package/dist/test/stop-with-host-operations.test.d.ts.map +1 -0
- package/dist/test/stop-with-host-operations.test.js +1174 -0
- package/dist/test/stop-with-host-operations.test.js.map +1 -0
- package/dist/test/stop-with-work-in-flight.test.js +162 -50
- package/dist/test/stop-with-work-in-flight.test.js.map +1 -1
- package/dist/test/surgery-marks-receipt.test.js.map +1 -1
- package/dist/test/tool-batch-hook.test.js.map +1 -1
- package/dist/test/tool-result-guard.test.js +131 -9
- package/dist/test/tool-result-guard.test.js.map +1 -1
- package/dist/test/tool-result-spill.test.js.map +1 -1
- package/dist/test/tool-wrapper-prose-guard-integration.test.js.map +1 -1
- package/dist/test/trunk-channel-routing.test.js +330 -7
- package/dist/test/trunk-channel-routing.test.js.map +1 -1
- package/dist/test/tune-out-e2e.test.js.map +1 -1
- package/dist/test/unconvertible-tool-result.test.js.map +1 -1
- package/dist/test/unsent-compiles.test.d.ts +2 -0
- package/dist/test/unsent-compiles.test.d.ts.map +1 -0
- package/dist/test/unsent-compiles.test.js +139 -0
- package/dist/test/unsent-compiles.test.js.map +1 -0
- package/dist/test/workspace-branch-continuation.test.js.map +1 -1
- package/dist/test/workspace-materialize-freshness.test.js.map +1 -1
- package/dist/test/workspace-read-text.test.js.map +1 -1
- package/dist/test/workspace-three-way.test.js +907 -7
- package/dist/test/workspace-three-way.test.js.map +1 -1
- package/dist/test/workspace-watcher.test.js.map +1 -1
- package/dist/test/xml-round-persist.test.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -6
- package/src/agent.ts +411 -66
- package/src/api/mcp-server-core.ts +681 -0
- package/src/api/mcp-server.ts +16 -685
- package/src/api/server.ts +51 -29
- package/src/api/types.ts +9 -1
- package/src/framework.ts +1899 -641
- package/src/index.ts +2 -2
- package/src/mcpl/channel-registry.ts +126 -31
- package/src/mcpl/feature-set-manager.ts +4 -3
- package/src/mcpl/log-value.ts +116 -0
- package/src/mcpl/prose-stream-router.ts +6 -6
- package/src/mcpl/push-coalescer.ts +76 -12
- package/src/mcpl/push-handler.ts +95 -23
- package/src/mcpl/refusal-lines.ts +59 -0
- package/src/mcpl/server-connection.ts +70 -11
- package/src/mcpl/tool-classes.ts +3 -2
- package/src/mcpl/transport.ts +105 -14
- package/src/mcpl/types.ts +5 -1
- package/src/modules/discord/index.ts +4 -2
- package/src/modules/workspace/disk-agreement.ts +74 -18
- package/src/modules/workspace/index.ts +41 -11
- package/src/modules/workspace/observe.ts +265 -39
- package/src/modules/workspace/reconcile.ts +71 -14
- package/src/modules/workspace/types.ts +26 -1
- package/src/recovery/offline-branch.ts +32 -28
- package/src/stored-removal.ts +126 -0
- package/src/types/agent.ts +42 -6
- package/src/types/framework.ts +10 -0
- package/src/types/module.ts +8 -4
- package/src/types/trace.ts +62 -11
package/README.md
CHANGED
|
@@ -344,7 +344,7 @@ await server.start();
|
|
|
344
344
|
|
|
345
345
|
**Commands:** `message.send`, `message.list`, `inference.request`, `inference.abort`, `branch.*`, `agent.*`, `module.*`, `store.*`, `inference.tail/inspect/search`, `events.*`, `host.quiesce/resume/status/maintenanceTick`, `host.providerWaits/releaseProviderWait`
|
|
346
346
|
|
|
347
|
-
Also available as an MCP server via the `agent-framework-mcp` binary.
|
|
347
|
+
Also available as an MCP server via the `agent-framework-mcp` binary (`npx -p @animalabs/agent-framework agent-framework-mcp` without installing it). It is a client of this API's WebSocket server, at `AGENT_FRAMEWORK_WS_URL` (default `ws://localhost:8765/ws`), and offers a subset of these commands as tools; its `tools/list` names them.
|
|
348
348
|
|
|
349
349
|
### Host quiesce / maintenance mode
|
|
350
350
|
|
package/dist/src/agent.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ import { type SilentHeartbeatTick } from './silent-heartbeat.js';
|
|
|
5
5
|
export interface ActivationRequestOptions {
|
|
6
6
|
/** The silent heartbeat tick this request answers, if any. */
|
|
7
7
|
silentHeartbeat?: SilentHeartbeatTick;
|
|
8
|
+
/** A request that will never be sent (a preview): compile it as a dry
|
|
9
|
+
* run (see `compileWithInjections` for what that leaves alone). */
|
|
10
|
+
dryRun?: boolean;
|
|
8
11
|
}
|
|
9
12
|
export interface StartStreamResult {
|
|
10
13
|
stream: YieldingStream;
|
|
@@ -64,15 +67,38 @@ export declare class Agent {
|
|
|
64
67
|
* closure) so the next activation can close whatever its predecessor left
|
|
65
68
|
* open — see failOpenKvSubmissions. */
|
|
66
69
|
private kvOpenQueue;
|
|
70
|
+
/** The current stream's fresh input so far, as membrane's usage event
|
|
71
|
+
* reports it (cumulative across the tool loop): what the maxStreamTokens
|
|
72
|
+
* budget checks. */
|
|
67
73
|
lastStreamInputTokens: number;
|
|
68
|
-
/** Real
|
|
69
|
-
*
|
|
70
|
-
*
|
|
74
|
+
/** Real prompt size of the stream's latest provider call that reported a
|
|
75
|
+
* prompt, which is what the provider billed it: fresh + cache creation +
|
|
76
|
+
* cache read. A call that reports none leaves it as it was (see
|
|
77
|
+
* lastStreamUnreportedTokens). Membrane's usage events are cumulative, so
|
|
78
|
+
* this is the call's share of its event (cumulativeDelta): the whole event
|
|
79
|
+
* for a stream's first call, and the event's own value where a counter
|
|
80
|
+
* went back. THE window-shaped number — `lastStreamInputTokens` alone
|
|
81
|
+
* omits cached tokens, which are most of a warm stream's window. 0 until a
|
|
82
|
+
* call on this stream reports a prompt, and the physical-window
|
|
83
|
+
* projection runs only once one has. */
|
|
71
84
|
lastStreamRealInputTokens: number;
|
|
72
|
-
/** Output tokens of the
|
|
73
|
-
*
|
|
74
|
-
*
|
|
85
|
+
/** Output tokens of the same call as lastStreamRealInputTokens, or
|
|
86
|
+
* maxTokens, the bound on them, when it reported none (a call that ends at
|
|
87
|
+
* a tool boundary wrote a tool_use, so a 0 is a count left unreported) —
|
|
88
|
+
* the prior round's generated thinking/text/tool_use, which becomes part
|
|
89
|
+
* of the NEXT round's input and so belongs in the physical-window
|
|
90
|
+
* projection. */
|
|
75
91
|
lastStreamOutputTokens: number;
|
|
92
|
+
/** What the stream has grown by since the call lastStreamRealInputTokens
|
|
93
|
+
* describes, for the physical-window projection: the blocks appended at
|
|
94
|
+
* each boundary the stream continued past (counted only for an agent with
|
|
95
|
+
* physicalWindowTokens, whose projection is this field's one reader), and
|
|
96
|
+
* the output of each call that reported no prompt (its reported output,
|
|
97
|
+
* or maxTokens, the bound on it, when it reported none either). After
|
|
98
|
+
* calls that report no prompt, the next request holds the prompt and
|
|
99
|
+
* output of the call lastStreamRealInputTokens describes, plus this. 0 at
|
|
100
|
+
* stream start and whenever a call reports a prompt. */
|
|
101
|
+
lastStreamUnreportedTokens: number;
|
|
76
102
|
maxStreamTokens: number;
|
|
77
103
|
/** Provider hard context cap (see AgentConfig.physicalWindowTokens). */
|
|
78
104
|
readonly physicalWindowTokens?: number;
|
|
@@ -86,6 +112,51 @@ export declare class Agent {
|
|
|
86
112
|
private readonly configuredSameRoundThinkTextPolicy?;
|
|
87
113
|
private contextBudgetTargetTokens?;
|
|
88
114
|
private runtimeSettingsOverrides;
|
|
115
|
+
/**
|
|
116
|
+
* Counts changes of the live budget (an update, a reset, a restore, a
|
|
117
|
+
* settle). A compile speaks for the budget it planned at only if the live
|
|
118
|
+
* budget didn't change while it ran, and what it showed stands only until
|
|
119
|
+
* the next change.
|
|
120
|
+
*/
|
|
121
|
+
private liveBudgetEpoch;
|
|
122
|
+
/**
|
|
123
|
+
* Counts changes of the descent (each arm of one, the same target included,
|
|
124
|
+
* a reset, a cancel, a settle). A settle proves its target only to a
|
|
125
|
+
* compile that began under that same descent.
|
|
126
|
+
*/
|
|
127
|
+
private descentEpoch;
|
|
128
|
+
/** The live budget the last compile planned at, whether it fit, and the live budget's epoch then. */
|
|
129
|
+
private lastCompiledBudget?;
|
|
130
|
+
/** Counts compiles at the live budget as they start. */
|
|
131
|
+
private compilesStarted;
|
|
132
|
+
/** The start numbers of the compiles at the live budget still running. */
|
|
133
|
+
private readonly compilesRunning;
|
|
134
|
+
/**
|
|
135
|
+
* For each budget, the start of the latest-started compile that has ended
|
|
136
|
+
* there with a fit or a refusal, whether or not what it showed was
|
|
137
|
+
* credited. Of two compiles at one budget, the later-started one planned
|
|
138
|
+
* at the newer store, so an earlier-started one that ends after it is
|
|
139
|
+
* ignored. That rests on the context manager selecting at the start of
|
|
140
|
+
* `compile`, before anything it awaits, so start order is selection order;
|
|
141
|
+
* a context manager that awaits before its select breaks it. (Injections
|
|
142
|
+
* are added after the select, so compiles with and without them plan
|
|
143
|
+
* alike.) An entry is
|
|
144
|
+
* kept only while a compile that started before it is still running, the
|
|
145
|
+
* only kind it can turn away, so the map is empty whenever no compile
|
|
146
|
+
* runs.
|
|
147
|
+
*/
|
|
148
|
+
private readonly latestEndedStart;
|
|
149
|
+
/** The last outcome the listener recorded; a failed record is told again, and so is any after a change. */
|
|
150
|
+
private recordedCompiledBudget?;
|
|
151
|
+
/**
|
|
152
|
+
* A boot restore applied a proven budget below the live one at once. Until
|
|
153
|
+
* the budget is next written (an update that carries one, or a reset of
|
|
154
|
+
* it) or a compile at it fits, a refusal of a compile at it restores it
|
|
155
|
+
* paced instead.
|
|
156
|
+
*/
|
|
157
|
+
private restoredAtOnce;
|
|
158
|
+
/** Told when that changes (the framework records it beside the persisted budget). */
|
|
159
|
+
private compiledBudgetListener?;
|
|
89
160
|
private contextManager;
|
|
90
161
|
private membrane;
|
|
91
162
|
constructor(config: AgentConfig, contextManager: ContextManager, membrane: Membrane);
|
|
@@ -130,6 +201,64 @@ export declare class Agent {
|
|
|
130
201
|
private updateHotContextSettings;
|
|
131
202
|
getRuntimeSettings(): AgentRuntimeSettingsSnapshot;
|
|
132
203
|
getRuntimeSettingsOverrides(): AgentRuntimeSettingsOverrides;
|
|
204
|
+
/**
|
|
205
|
+
* Set (or clear) the one listener told when a compile at the live budget
|
|
206
|
+
* comes out differently from the last: it fit at a budget the last one
|
|
207
|
+
* didn't plan at (after a settle, the target), or the context manager
|
|
208
|
+
* refused a budget the last one fit at.
|
|
209
|
+
*/
|
|
210
|
+
onContextBudgetCompiled(listener: ((budget: number, fit: boolean) => boolean) | undefined): void;
|
|
211
|
+
/**
|
|
212
|
+
* The live budget the last compile planned at and fit, if it fit and the
|
|
213
|
+
* live budget hasn't changed since.
|
|
214
|
+
*/
|
|
215
|
+
getProvenContextBudgetTokens(): number | undefined;
|
|
216
|
+
/**
|
|
217
|
+
* Set the live budget and the descent target, counting a change of each.
|
|
218
|
+
* `armed` counts a descent armed here as a change even when its target is
|
|
219
|
+
* the one already set: a compile that began under the earlier arm isn't
|
|
220
|
+
* credited with this one's settle.
|
|
221
|
+
*/
|
|
222
|
+
private setContextBudget;
|
|
223
|
+
/**
|
|
224
|
+
* Claim the place of the latest compile to end at `budget` for the one that
|
|
225
|
+
* started as the `started`th, and say whether it got it: a compile that
|
|
226
|
+
* started before one that has already ended there is ignored, whichever
|
|
227
|
+
* finishes last.
|
|
228
|
+
*/
|
|
229
|
+
private claimLatestAt;
|
|
230
|
+
/**
|
|
231
|
+
* Note what a compile at `budget`, planned at the live budget's `epoch`,
|
|
232
|
+
* showed. It speaks for the live budget only if that hasn't changed since;
|
|
233
|
+
* the listener is told either way, so a refusal withdraws the record's
|
|
234
|
+
* marker for the budget it planned at whatever changed meanwhile.
|
|
235
|
+
*/
|
|
236
|
+
private noteCompiledBudget;
|
|
237
|
+
/** Compile at the live budget (no explicit one), noting whether it fit. */
|
|
238
|
+
private compileAtLiveBudget;
|
|
239
|
+
/** The compile at the live budget that started as the `started`th, and what it showed. */
|
|
240
|
+
private compileAtLiveBudgetNoting;
|
|
241
|
+
/**
|
|
242
|
+
* The budget compiles plan at, the path a patch's budget takes from it, and
|
|
243
|
+
* whether a descent is in flight, from the agent's own state alone: what a
|
|
244
|
+
* runtime-settings preview can still say while the context manager refuses
|
|
245
|
+
* its queries.
|
|
246
|
+
* @internal For the framework's runtime-settings preview; not a host API.
|
|
247
|
+
*/
|
|
248
|
+
runtimeBudgetPath(patch?: AgentRuntimeSettingsPatch): {
|
|
249
|
+
liveBudgetTokens: number;
|
|
250
|
+
path: 'immediate' | 'paced' | 'none';
|
|
251
|
+
transition: 'stable' | 'converging';
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Whether the context manager answers its queries, as its readiness says.
|
|
255
|
+
* It refuses them while its strategy's initialization is pending or has
|
|
256
|
+
* failed, until a switchBranch or setStrategy succeeds, and a strategy can
|
|
257
|
+
* refuse its readiness on its own, as the autobiographical one does for a
|
|
258
|
+
* branch it hasn't reloaded.
|
|
259
|
+
* @internal For the framework's runtime-settings preview; not a host API.
|
|
260
|
+
*/
|
|
261
|
+
contextManagerAnswers(): boolean;
|
|
133
262
|
/**
|
|
134
263
|
* Read-only mirror of `updateRuntimeSettings`' budget semantics: derive what
|
|
135
264
|
* the next compile would actually plan at if `patch` were applied, WITHOUT
|
|
@@ -146,11 +275,17 @@ export declare class Agent {
|
|
|
146
275
|
* - `path: 'none'` — patch absent or budget untouched.
|
|
147
276
|
*
|
|
148
277
|
* `overrides` uses strategy-config names (`recentWindowTokens`,
|
|
149
|
-
* `kvStableReachTokens`) suitable for `previewContext`.
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
*
|
|
278
|
+
* `kvStableReachTokens`) suitable for `previewContext`. The reach is the one
|
|
279
|
+
* the next compile plans at (context-manager's kv-stable picker): a
|
|
280
|
+
* descent's pace while a window is prepared for it, one this patch arms (a
|
|
281
|
+
* paced decrease) or one in flight that it leaves alone (a patch without a
|
|
282
|
+
* budget), and the configured reach otherwise. Config is a preview's only
|
|
283
|
+
* lever: `preparedWindowTokens` and the live runtime pace are strategy
|
|
284
|
+
* instance state, which a preview can't set. So a preview taken during a
|
|
285
|
+
* descent plans under that descent's prepared window, and at its live pace
|
|
286
|
+
* whenever the strategy carries one, which the picker reads before the
|
|
287
|
+
* configured reach. A boot restore's preflight never meets this: a new
|
|
288
|
+
* strategy has no window.
|
|
154
289
|
*/
|
|
155
290
|
planRuntimeSettings(patch?: AgentRuntimeSettingsPatch): {
|
|
156
291
|
effectiveBudgetTokens: number;
|
|
@@ -167,8 +302,34 @@ export declare class Agent {
|
|
|
167
302
|
updateRuntimeSettings(patch: AgentRuntimeSettingsPatch): AgentRuntimeSettingsSnapshot;
|
|
168
303
|
resetRuntimeSettings(keys?: Array<keyof AgentRuntimeSettingsPatch>): AgentRuntimeSettingsSnapshot;
|
|
169
304
|
cancelRuntimeSettingsTransition(): AgentRuntimeSettingsSnapshot;
|
|
170
|
-
|
|
305
|
+
/**
|
|
306
|
+
* Apply persisted settings at construction. `provenBudget` is a budget the
|
|
307
|
+
* caller has shown fits (the framework, from the record and a preflight),
|
|
308
|
+
* applied at once: it stands as the last compile's until a compile here
|
|
309
|
+
* says otherwise. When it's below the live budget, where the proof is what
|
|
310
|
+
* took the restore off the paced path, a refusal of a compile at it
|
|
311
|
+
* restores it paced instead, until the budget is next written or a compile
|
|
312
|
+
* at it fits. At or above the live budget, the restore is at once either
|
|
313
|
+
* way, and a refusal has nothing to fall back to.
|
|
314
|
+
*/
|
|
315
|
+
restoreRuntimeSettings(settings: AgentRuntimeSettingsPatch, opts?: {
|
|
316
|
+
provenBudget?: number;
|
|
317
|
+
}): AgentRuntimeSettingsSnapshot;
|
|
318
|
+
/**
|
|
319
|
+
* Keep a persisted budget, tail or pace that couldn't be applied at
|
|
320
|
+
* construction: it stays in the override map, unapplied, so a later
|
|
321
|
+
* persisting write keeps it in the record. A budget is reported as the one
|
|
322
|
+
* set (`contextBudgetTokens`) beside the one compiles plan at
|
|
323
|
+
* (`effectiveContextBudgetTokens`); a tail or pace stays the strategy's.
|
|
324
|
+
*/
|
|
325
|
+
keepRuntimeSettings(settings: Pick<AgentRuntimeSettingsPatch, 'contextBudgetTokens' | 'tailTokens' | 'transitionPaceTokens'>): void;
|
|
171
326
|
private validateRuntimeSettingsPatch;
|
|
327
|
+
/**
|
|
328
|
+
* The checks of a runtime-settings patch that need nothing from the context manager.
|
|
329
|
+
* @internal For the framework's runtime-settings preview; not a host API.
|
|
330
|
+
*/
|
|
331
|
+
checkRuntimeSettingsPatch(patch: AgentRuntimeSettingsPatch): void;
|
|
332
|
+
/** Settle a converging budget once the window is prepared; true if it settled. */
|
|
172
333
|
private settleRuntimeSettingsTransition;
|
|
173
334
|
/**
|
|
174
335
|
* RFC-006 consumed watermark: the newest stored message at the last compile
|
|
@@ -184,14 +345,23 @@ export declare class Agent {
|
|
|
184
345
|
markContextConsumed(): void;
|
|
185
346
|
/** The watermark a successful compile will establish (taken before, applied after). */
|
|
186
347
|
private pendingWatermark;
|
|
348
|
+
/** A committing compile, as for a request that is sent: the context
|
|
349
|
+
* manager commits what it commits for one, the consumed watermark moves,
|
|
350
|
+
* and a prepared budget change settles. To inspect what the agent would
|
|
351
|
+
* see, use the framework's `previewActivation`, which compiles as a dry
|
|
352
|
+
* run. */
|
|
187
353
|
compileContext(budget?: TokenBudget): Promise<CompileResult>;
|
|
188
354
|
/**
|
|
189
|
-
* Compile the context with injections.
|
|
190
|
-
*
|
|
191
|
-
*
|
|
355
|
+
* Compile the context with injections (e.g. from MCPL servers), which the
|
|
356
|
+
* context manager merges into the compiled messages. Without
|
|
357
|
+
* `opts.dryRun` it commits as `compileContext` does: the consumed
|
|
358
|
+
* watermark moves, and a compile at the live window settles a prepared
|
|
359
|
+
* budget change. With `opts.dryRun`, for a compile that will never be
|
|
360
|
+
* sent, it does neither (see below).
|
|
192
361
|
*/
|
|
193
362
|
compileWithInjections(budget?: TokenBudget, injections?: ContextInjection[], opts?: {
|
|
194
363
|
kvUnifiedImmutablePrefixHash?: string;
|
|
364
|
+
dryRun?: boolean;
|
|
195
365
|
}): Promise<CompileResult>;
|
|
196
366
|
/**
|
|
197
367
|
* Run inference and return result with tool calls and speech content.
|
|
@@ -218,10 +388,13 @@ export declare class Agent {
|
|
|
218
388
|
*
|
|
219
389
|
* This is the single source of truth for request assembly, shared by the
|
|
220
390
|
* real activation path (`startStreamWithInjections`) and debug/preview
|
|
221
|
-
* tooling (`Framework.previewActivation`). It
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
391
|
+
* tooling (`Framework.previewActivation`). It does not call the membrane.
|
|
392
|
+
* A compile that is sent commits what the context manager commits for it
|
|
393
|
+
* (fold resolutions, the compression its fold plan calls for, the consumed
|
|
394
|
+
* watermark); a preview passes `options.dryRun`, so its compile commits
|
|
395
|
+
* none of that (see `compileWithInjections` for what a dry run still
|
|
396
|
+
* leaves). Either way the context manager is handed the compression tool
|
|
397
|
+
* definitions. Safe to call regardless of the agent's current status.
|
|
225
398
|
* It doesn't wait for the tool-result guard's annotations, so a preview
|
|
226
399
|
* never waits on a workspace write (rollback, undo and redo report one), and
|
|
227
400
|
* may show a withheld stub before its place is added; the activation waits
|
package/dist/src/agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAqB,iBAAiB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGxH,OAAO,KAAK,EAAE,gBAAgB,EAAyB,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAIL,KAAK,mBAAmB,EAGzB,MAAM,uBAAuB,CAAC;AAO/B,MAAM,WAAW,wBAAwB;IACvC,8DAA8D;IAC9D,eAAe,CAAC,EAAE,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/agent.ts"],"names":[],"mappings":"AAAA,OAAO,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