@myagentroam/agent 0.11.32 → 0.11.34
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/dist/cli/catalog-file.d.ts +78 -0
- package/dist/cli/catalog-file.js +102 -0
- package/dist/cli/codex-auth-file.d.ts +1 -1
- package/dist/cli/codex-auth-file.js +9 -10
- package/dist/cli/main.js +44 -54
- package/dist/error.d.ts +15 -0
- package/dist/error.js +74 -0
- package/dist/extensions/agents.d.ts +100 -0
- package/dist/extensions/agents.js +121 -0
- package/dist/extensions/capabilities.d.ts +4 -0
- package/dist/extensions/commands.d.ts +23 -0
- package/dist/extensions/commands.js +45 -0
- package/dist/extensions/compaction.d.ts +36 -0
- package/dist/extensions/contracts.d.ts +147 -0
- package/dist/extensions/data.d.ts +81 -0
- package/dist/extensions/data.js +78 -0
- package/dist/extensions/environment.d.ts +39 -0
- package/dist/extensions/environment.js +52 -0
- package/dist/extensions/files.d.ts +68 -0
- package/dist/extensions/files.js +26 -0
- package/dist/extensions/hooks.d.ts +32 -0
- package/dist/extensions/host-ports.d.ts +24 -0
- package/dist/extensions/manager.d.ts +42 -0
- package/dist/extensions/manager.js +457 -0
- package/dist/extensions/mcp.d.ts +116 -0
- package/dist/extensions/mcp.js +434 -0
- package/dist/extensions/model-request.d.ts +65 -0
- package/dist/extensions/model-request.js +197 -0
- package/dist/extensions/model-stream.d.ts +18 -0
- package/dist/extensions/model-stream.js +108 -0
- package/dist/extensions/models.d.ts +46 -0
- package/dist/extensions/models.js +7 -0
- package/dist/extensions/network.d.ts +40 -0
- package/dist/extensions/network.js +97 -0
- package/dist/extensions/operation.d.ts +32 -0
- package/dist/extensions/processes.d.ts +64 -0
- package/dist/extensions/processes.js +284 -0
- package/dist/extensions/prompt-composition.d.ts +38 -0
- package/dist/extensions/prompt-composition.js +100 -0
- package/dist/extensions/prompt-input.d.ts +30 -0
- package/dist/extensions/prompt-input.js +48 -0
- package/dist/extensions/prompts.d.ts +31 -0
- package/dist/extensions/prompts.js +88 -0
- package/dist/extensions/resources.d.ts +26 -0
- package/dist/extensions/resources.js +221 -0
- package/dist/extensions/services.d.ts +31 -0
- package/dist/extensions/services.js +61 -0
- package/dist/extensions/session-api.d.ts +6 -0
- package/dist/extensions/session-api.js +52 -0
- package/dist/extensions/session-input.d.ts +184 -0
- package/dist/extensions/session-input.js +422 -0
- package/dist/extensions/session-messages.d.ts +41 -0
- package/dist/extensions/session-messages.js +76 -0
- package/dist/extensions/session-tools.d.ts +32 -0
- package/dist/extensions/session-tools.js +208 -0
- package/dist/extensions/session.d.ts +60 -0
- package/dist/extensions/session.js +265 -0
- package/dist/extensions/settings.d.ts +76 -0
- package/dist/extensions/settings.js +115 -0
- package/dist/extensions/store.d.ts +10 -0
- package/dist/extensions/store.js +131 -0
- package/dist/extensions/tool-runtime.d.ts +16 -0
- package/dist/extensions/tools.d.ts +80 -0
- package/dist/extensions/tools.js +270 -0
- package/dist/extensions.d.ts +22 -0
- package/dist/host/contracts.d.ts +58 -0
- package/dist/host/contracts.js +18 -0
- package/dist/host/description.d.ts +19 -0
- package/dist/host/local-agent-host.d.ts +96 -0
- package/dist/host/local-agent-host.js +429 -0
- package/dist/host/local-exec-tool.d.ts +26 -0
- package/dist/host/local-exec-tool.js +686 -0
- package/dist/host/local-file-access.d.ts +30 -0
- package/dist/host/local-file-access.js +107 -0
- package/dist/host/local-network-access.d.ts +6 -0
- package/dist/host/local-network-access.js +101 -0
- package/dist/host/local-process-executor.d.ts +5 -0
- package/dist/host/local-process-executor.js +17 -0
- package/dist/host/local-session-environment.d.ts +18 -0
- package/dist/host/local-shell.d.ts +3 -0
- package/dist/host/local-tool-registry.d.ts +34 -0
- package/dist/host/local-tool-registry.js +134 -0
- package/dist/host/network.d.ts +5 -0
- package/dist/host/network.js +42 -0
- package/dist/host/process-control.d.ts +2 -0
- package/dist/host/process-control.js +26 -0
- package/dist/host/skill-contract.d.ts +6 -0
- package/dist/host.d.ts +17 -0
- package/dist/host.js +3 -0
- package/dist/index.d.ts +26 -51
- package/dist/index.js +9 -12
- package/dist/model/anthropic-messages.d.ts +10 -0
- package/dist/model/anthropic-messages.js +692 -0
- package/dist/model/anthropic-thinking.js +33 -0
- package/dist/model/configuration.d.ts +111 -0
- package/dist/model/configuration.js +201 -0
- package/dist/model/contracts.d.ts +229 -0
- package/dist/model/http.d.ts +13 -0
- package/dist/model/http.js +119 -0
- package/dist/model/image-contract.d.ts +10 -0
- package/dist/model/image.d.ts +9 -0
- package/dist/model/inline-media-budget.d.ts +7 -0
- package/dist/model/inline-media-budget.js +36 -0
- package/dist/model/input-images.d.ts +3 -0
- package/dist/model/input-images.js +16 -0
- package/dist/model/openai-responses.d.ts +59 -0
- package/dist/model/openai-responses.js +1586 -0
- package/dist/model/recovery.js +80 -0
- package/dist/model/request-configuration.d.ts +17 -0
- package/dist/model/request-configuration.js +47 -0
- package/dist/model/responses-event-projection.d.ts +24 -0
- package/dist/model/responses-event-projection.js +194 -0
- package/dist/model/responses-request.d.ts +5 -0
- package/dist/model/responses-request.js +363 -0
- package/dist/model/responses-session-cache.d.ts +33 -0
- package/dist/model/responses-session-cache.js +64 -0
- package/dist/model/runtime-credential.d.ts +1 -0
- package/dist/model/runtime-credential.js +1 -0
- package/dist/model/sse.js +281 -0
- package/dist/model/text-blocks.js +40 -0
- package/dist/model/tool-declarations.d.ts +4 -0
- package/dist/model/tool-definition-projection.d.ts +6 -0
- package/dist/model/tool-definition-projection.js +11 -0
- package/dist/model/tool-schema.d.ts +2 -0
- package/dist/model/tool-schema.js +17 -0
- package/dist/model/transport-test.d.ts +10 -0
- package/dist/model/transport-test.js +27 -0
- package/dist/model/usage-observer.d.ts +5 -0
- package/dist/model/usage.d.ts +40 -0
- package/dist/network/credential-runtime.d.ts +8 -0
- package/dist/network/credential-runtime.js +72 -0
- package/dist/network/credentials.d.ts +20 -0
- package/dist/network/credentials.js +18 -0
- package/dist/network/http.d.ts +20 -0
- package/dist/network/http.js +421 -0
- package/dist/network/product-user-agent.d.ts +5 -0
- package/dist/network/product-user-agent.js +22 -0
- package/dist/network/transport-error.d.ts +5 -0
- package/dist/network/transport-error.js +31 -0
- package/dist/process/contracts.d.ts +26 -0
- package/dist/prompts/index.d.ts +20 -0
- package/dist/prompts/index.js +49 -0
- package/dist/prompts/prompt-sections.d.ts +6 -0
- package/dist/prompts/prompt-sections.js +6 -0
- package/dist/prompts/read-context.js +152 -0
- package/dist/runtime/compaction/contracts.d.ts +23 -0
- package/dist/runtime/compaction/coordinator.js +88 -0
- package/dist/runtime/compaction/generate.d.ts +31 -0
- package/dist/runtime/compaction/generate.js +84 -0
- package/dist/runtime/compaction/history.d.ts +16 -0
- package/dist/runtime/compaction/operation.d.ts +30 -0
- package/dist/runtime/compaction/operation.js +131 -0
- package/dist/runtime/compaction/requests.d.ts +16 -0
- package/dist/runtime/compaction/requests.js +114 -0
- package/dist/runtime/compaction/retained-context.d.ts +6 -0
- package/dist/runtime/compaction/retained-context.js +48 -0
- package/dist/runtime/compaction/smart.d.ts +14 -0
- package/dist/runtime/compaction/smart.js +59 -0
- package/dist/runtime/context/contextual-blocks.d.ts +31 -0
- package/dist/runtime/context/contextual-blocks.js +158 -0
- package/dist/runtime/context/environment.d.ts +5 -0
- package/dist/runtime/context/gc-candidates-code.d.ts +6 -0
- package/dist/runtime/context/gc-candidates-code.js +102 -0
- package/dist/runtime/context/gc-candidates-exec.d.ts +6 -0
- package/dist/runtime/context/gc-candidates-exec.js +131 -0
- package/dist/runtime/context/gc-candidates-read-patch.d.ts +7 -0
- package/dist/runtime/context/gc-candidates-read-patch.js +118 -0
- package/dist/runtime/context/gc-candidates-subagent.d.ts +6 -0
- package/dist/runtime/context/gc-candidates-subagent.js +100 -0
- package/dist/runtime/context/gc-candidates-web.d.ts +6 -0
- package/dist/runtime/context/gc-candidates-web.js +58 -0
- package/dist/runtime/context/gc-candidates.d.ts +12 -0
- package/dist/runtime/context/gc-candidates.js +192 -0
- package/dist/runtime/context/gc-contracts.d.ts +57 -0
- package/dist/runtime/context/gc-economics.d.ts +48 -0
- package/dist/runtime/context/gc-economics.js +161 -0
- package/dist/runtime/context/gc-runtime.d.ts +43 -0
- package/dist/runtime/context/gc-tokens.d.ts +26 -0
- package/dist/runtime/context/gc-tokens.js +106 -0
- package/dist/runtime/context/gc.d.ts +7 -0
- package/dist/runtime/context/gc.js +552 -0
- package/dist/runtime/context/instructions.d.ts +37 -0
- package/dist/runtime/context/instructions.js +297 -0
- package/dist/runtime/context/normalize.d.ts +5 -0
- package/dist/runtime/context/projection.d.ts +23 -0
- package/dist/runtime/context/projection.js +284 -0
- package/dist/runtime/context/request-budget.d.ts +5 -0
- package/dist/runtime/context/request-budget.js +25 -0
- package/dist/runtime/context/restore.d.ts +27 -0
- package/dist/runtime/context/restore.js +186 -0
- package/dist/runtime/context/usage.d.ts +17 -0
- package/dist/runtime/context/usage.js +124 -0
- package/dist/runtime/context/world-state.d.ts +34 -0
- package/dist/runtime/context/world-state.js +232 -0
- package/dist/runtime/contracts.d.ts +29 -0
- package/dist/runtime/event-projection.d.ts +14 -0
- package/dist/runtime/event-projection.js +87 -0
- package/dist/runtime/events.d.ts +195 -0
- package/dist/runtime/execution-handle.d.ts +12 -0
- package/dist/runtime/execution-handle.js +1 -0
- package/dist/runtime/execution.d.ts +55 -0
- package/dist/runtime/execution.js +444 -0
- package/dist/runtime/model-progress.js +85 -0
- package/dist/runtime/resource-publication.d.ts +27 -0
- package/dist/runtime/resource-publication.js +60 -0
- package/dist/runtime/tool-round-contract.d.ts +19 -0
- package/dist/runtime/tool-round-contract.js +1 -0
- package/dist/runtime/wait.js +82 -0
- package/dist/sandbox/linux/bubblewrap-sandbox-executor.d.ts +1 -1
- package/dist/sandbox/linux/bubblewrap-sandbox-executor.js +8 -8
- package/dist/sdk/agent.d.ts +7 -0
- package/dist/sdk/agent.js +321 -0
- package/dist/sdk/execution-code-mode.d.ts +18 -0
- package/dist/sdk/execution-code-mode.js +51 -0
- package/dist/sdk/execution-compact-commit.d.ts +23 -0
- package/dist/sdk/execution-compact-commit.js +41 -0
- package/dist/sdk/execution-compact-extension.d.ts +12 -0
- package/dist/sdk/execution-compact-extension.js +46 -0
- package/dist/sdk/execution-compact-generation.d.ts +17 -0
- package/dist/sdk/execution-compact-generation.js +30 -0
- package/dist/sdk/execution-compaction-flight.d.ts +31 -0
- package/dist/sdk/execution-compaction-flight.js +50 -0
- package/dist/sdk/execution-compaction.d.ts +47 -0
- package/dist/sdk/execution-compaction.js +121 -0
- package/dist/sdk/execution-context-coordinator.d.ts +56 -0
- package/dist/sdk/execution-context-coordinator.js +102 -0
- package/dist/sdk/execution-input.d.ts +58 -0
- package/dist/sdk/execution-input.js +266 -0
- package/dist/sdk/execution-model-context.d.ts +52 -0
- package/dist/sdk/execution-model-context.js +156 -0
- package/dist/sdk/execution-model-lifecycle.d.ts +39 -0
- package/dist/sdk/execution-model-lifecycle.js +73 -0
- package/dist/sdk/execution-model-request.d.ts +40 -0
- package/dist/sdk/execution-model-request.js +45 -0
- package/dist/sdk/execution-round-preparation.d.ts +11 -0
- package/dist/sdk/execution-round-preparation.js +18 -0
- package/dist/sdk/execution-round-request.d.ts +30 -0
- package/dist/sdk/execution-round-request.js +31 -0
- package/dist/sdk/execution-tool-catalog.d.ts +46 -0
- package/dist/sdk/execution-tool-catalog.js +103 -0
- package/dist/sdk/execution-tool-scope.d.ts +67 -0
- package/dist/sdk/execution-tool-scope.js +147 -0
- package/dist/sdk/extension-agent-controller.d.ts +3 -0
- package/dist/sdk/extension-agent-controller.js +69 -0
- package/dist/sdk/extension-agents.d.ts +9 -0
- package/dist/sdk/extension-agents.js +58 -0
- package/dist/sdk/extension-models.d.ts +17 -0
- package/dist/sdk/extension-models.js +142 -0
- package/dist/sdk/extension-session-launch.d.ts +18 -0
- package/dist/sdk/extension-session-launch.js +73 -0
- package/dist/sdk/extension-session.d.ts +30 -0
- package/dist/sdk/extension-session.js +107 -0
- package/dist/sdk/extension-tool-runtime.d.ts +2 -0
- package/dist/sdk/extension-tool-runtime.js +14 -0
- package/dist/sdk/extension-tools.d.ts +16 -0
- package/dist/sdk/extension-tools.js +126 -0
- package/dist/sdk/model-input-projection.d.ts +4 -0
- package/dist/sdk/model-input-projection.js +27 -0
- package/dist/sdk/model-runtime.d.ts +21 -0
- package/dist/sdk/model-runtime.js +91 -0
- package/dist/sdk/native-steer.d.ts +20 -0
- package/dist/sdk/native-steer.js +84 -0
- package/dist/sdk/request-preparation.d.ts +9 -0
- package/dist/sdk/resource-input.d.ts +33 -0
- package/dist/sdk/resource-input.js +402 -0
- package/dist/sdk/session-catalog.d.ts +2 -0
- package/dist/sdk/session-catalog.js +12 -0
- package/dist/sdk/session-composition.d.ts +54 -0
- package/dist/sdk/session-composition.js +1 -0
- package/dist/sdk/session-execution-factory.d.ts +43 -0
- package/dist/sdk/session-execution-factory.js +937 -0
- package/dist/sdk/session-execution.d.ts +163 -0
- package/dist/sdk/session-execution.js +388 -0
- package/dist/sdk/session-extension-messages.d.ts +16 -0
- package/dist/sdk/session-extension-messages.js +64 -0
- package/dist/sdk/session-extension-prompt.d.ts +35 -0
- package/dist/sdk/session-extension-prompt.js +62 -0
- package/dist/sdk/session-maintenance.d.ts +25 -0
- package/dist/sdk/session-maintenance.js +205 -0
- package/dist/sdk/session-model-adapters.d.ts +28 -0
- package/dist/sdk/session-model-adapters.js +96 -0
- package/dist/sdk/session-open.d.ts +22 -0
- package/dist/sdk/session-open.js +44 -0
- package/dist/sdk/session-registry.d.ts +17 -0
- package/dist/sdk/session-registry.js +83 -0
- package/dist/sdk/session-runtime.d.ts +72 -0
- package/dist/sdk/session-runtime.js +205 -0
- package/dist/sdk/session.d.ts +3 -0
- package/dist/sdk/session.js +313 -0
- package/dist/sdk/subagent-backend.d.ts +3 -0
- package/dist/sdk/subagent-backend.js +49 -0
- package/dist/sdk/types.d.ts +80 -0
- package/dist/sdk/types.js +1 -0
- package/dist/session/catalog.d.ts +70 -0
- package/dist/session/catalog.js +194 -0
- package/dist/session/code-observation-contract.d.ts +40 -0
- package/dist/session/code-observation-contract.js +1 -0
- package/dist/session/code-observation-projection.d.ts +54 -0
- package/dist/session/code-observation-projection.js +165 -0
- package/dist/session/code-state.d.ts +27 -0
- package/dist/session/code-state.js +89 -0
- package/dist/session/context-gc-checkpoint.d.ts +26 -0
- package/dist/session/context-gc-checkpoint.js +935 -0
- package/dist/session/context-gc-contract.d.ts +141 -0
- package/dist/session/context-gc-contract.js +1 -0
- package/dist/session/context-gc-observations.d.ts +58 -0
- package/dist/session/context-gc-observations.js +187 -0
- package/dist/session/context-gc-replacements.d.ts +63 -0
- package/dist/session/context-gc-subagent.d.ts +54 -0
- package/dist/session/deferred-input.d.ts +5 -0
- package/dist/session/deferred-input.js +74 -0
- package/dist/session/extension-checkpoint.d.ts +8 -0
- package/dist/session/extension-checkpoint.js +30 -0
- package/dist/session/history-input-limits.d.ts +4 -0
- package/dist/session/history-input-limits.js +4 -0
- package/dist/session/inline-media-contract.d.ts +16 -0
- package/dist/session/inline-media-contract.js +1 -0
- package/dist/session/inline-media.d.ts +26 -0
- package/dist/session/inline-media.js +138 -0
- package/dist/session/model-request.d.ts +14 -0
- package/dist/session/model-request.js +1 -0
- package/dist/session/record-contract.d.ts +19 -0
- package/dist/session/record-contract.js +1 -0
- package/dist/session/record-projection.d.ts +6 -0
- package/dist/session/record-projection.js +80 -0
- package/dist/session/resource-contract.d.ts +9 -0
- package/dist/session/resource-contract.js +1 -0
- package/dist/session/rollback.d.ts +13 -0
- package/dist/session/rollback.js +46 -0
- package/dist/session/store/contracts.d.ts +160 -0
- package/dist/session/store/contracts.js +1 -0
- package/dist/session/store/current-state.d.ts +17 -0
- package/dist/session/store/current-state.js +53 -0
- package/dist/session/store/execution-state.d.ts +13 -0
- package/dist/session/store/execution-state.js +103 -0
- package/dist/session/store/index.d.ts +4 -0
- package/dist/session/store/index.js +2 -0
- package/dist/session/store/jsonl/directory-index.d.ts +26 -0
- package/dist/session/store/jsonl/directory-index.js +283 -0
- package/dist/session/store/jsonl/fs-durability.d.ts +3 -0
- package/dist/session/store/jsonl/fs-durability.js +17 -0
- package/dist/session/store/jsonl/history-replacement.d.ts +48 -0
- package/dist/session/store/jsonl/history-replacement.js +147 -0
- package/dist/session/store/jsonl/history.d.ts +25 -0
- package/dist/session/store/jsonl/history.js +181 -0
- package/dist/session/store/jsonl/images.d.ts +19 -0
- package/dist/session/store/jsonl/images.js +122 -0
- package/dist/session/store/jsonl/index-transaction.d.ts +13 -0
- package/dist/session/store/jsonl/index-transaction.js +87 -0
- package/dist/session/store/jsonl/jsonl-admission.d.ts +10 -0
- package/dist/session/store/jsonl/jsonl-admission.js +205 -0
- package/dist/session/store/jsonl/jsonl-codec.d.ts +11 -0
- package/dist/session/store/jsonl/jsonl-codec.js +138 -0
- package/dist/session/store/jsonl/jsonl-migration.d.ts +12 -0
- package/dist/session/store/jsonl/jsonl-migration.js +105 -0
- package/dist/session/store/jsonl/jsonl-store.d.ts +171 -0
- package/dist/session/store/jsonl/jsonl-store.js +2482 -0
- package/dist/session/store/jsonl/open-recovery.d.ts +13 -0
- package/dist/session/store/jsonl/open-recovery.js +131 -0
- package/dist/session/store/jsonl/read-pins.d.ts +4 -0
- package/dist/session/store/jsonl/read-pins.js +131 -0
- package/dist/session/store/jsonl/record-append.d.ts +16 -0
- package/dist/session/store/jsonl/record-append.js +49 -0
- package/dist/session/store/jsonl/records.d.ts +30 -0
- package/dist/session/store/jsonl/records.js +313 -0
- package/dist/session/store/jsonl/resources.d.ts +19 -0
- package/dist/session/store/jsonl/resources.js +209 -0
- package/dist/session/store/jsonl/store-pool.d.ts +12 -0
- package/dist/session/store/jsonl/store-pool.js +55 -0
- package/dist/session/store/jsonl/transaction-recovery.d.ts +48 -0
- package/dist/session/store/jsonl/transaction-recovery.js +374 -0
- package/dist/session/store/jsonl/tree-maintenance.d.ts +12 -0
- package/dist/session/store/jsonl/tree-maintenance.js +59 -0
- package/dist/session/store/types.d.ts +69 -0
- package/dist/session/store/types.js +1 -0
- package/dist/session/summary.d.ts +18 -0
- package/dist/session/summary.js +1 -0
- package/dist/session/todo.d.ts +11 -0
- package/dist/session/todo.js +30 -0
- package/dist/session/tool-result-resources.d.ts +27 -0
- package/dist/session/tool-result-resources.js +255 -0
- package/dist/session/types.js +1 -0
- package/dist/session/user-history.d.ts +17 -0
- package/dist/session/user-history.js +1 -0
- package/dist/session-store.d.ts +2 -0
- package/dist/session-store.js +1 -0
- package/dist/shared/auto-title.d.ts +3 -3
- package/dist/shared/auto-title.js +6 -6
- package/dist/shared/model-text.d.ts +8 -8
- package/dist/shared/model-text.js +8 -7
- package/dist/storage/file-lock.js +83 -0
- package/dist/subagent/contracts.d.ts +107 -0
- package/dist/subagent/contracts.js +1 -0
- package/dist/subagent/limits.d.ts +17 -0
- package/dist/subagent/limits.js +17 -0
- package/dist/subagent/model-update.js +81 -0
- package/dist/subagent/session-controller.d.ts +148 -0
- package/dist/subagent/session-controller.js +1761 -0
- package/dist/subagent/wait-targets.d.ts +10 -0
- package/dist/subagent/wait-targets.js +26 -0
- package/dist/subagent/wait.d.ts +26 -0
- package/dist/subagent/wait.js +73 -0
- package/dist/tools/agent/agent-cancel.d.ts +7 -0
- package/dist/tools/agent/agent-cancel.js +29 -0
- package/dist/tools/agent/agent-message.d.ts +7 -0
- package/dist/tools/agent/agent-message.js +57 -0
- package/dist/tools/agent/agent-start.d.ts +12 -0
- package/dist/tools/agent/agent-start.js +106 -0
- package/dist/tools/agent/agent-wait.d.ts +7 -0
- package/dist/tools/agent/agent-wait.js +91 -0
- package/dist/tools/agent/question.d.ts +7 -0
- package/dist/tools/agent/question.js +125 -0
- package/dist/tools/agent/skill.d.ts +11 -0
- package/dist/tools/agent/skill.js +38 -0
- package/dist/tools/agent/sleep.d.ts +9 -0
- package/dist/tools/agent/sleep.js +54 -0
- package/dist/tools/agent/smart-compact.d.ts +9 -0
- package/dist/tools/agent/smart-compact.js +23 -0
- package/dist/tools/agent/todo-read.d.ts +14 -0
- package/dist/tools/agent/todo-write.d.ts +14 -0
- package/dist/tools/agent/todo-write.js +66 -0
- package/dist/tools/agent/todo.d.ts +25 -0
- package/dist/tools/agent/todo.js +32 -0
- package/dist/tools/callers.d.ts +7 -0
- package/dist/tools/callers.js +39 -0
- package/dist/tools/code-mode/cells.d.ts +29 -0
- package/dist/tools/code-mode/cells.js +338 -0
- package/dist/tools/code-mode/dispatch.d.ts +20 -0
- package/dist/tools/code-mode/dispatch.js +80 -0
- package/dist/tools/code-mode/engine.d.ts +60 -0
- package/dist/tools/code-mode/engine.js +1 -0
- package/dist/tools/code-mode/index.d.ts +31 -0
- package/dist/tools/code-mode/index.js +751 -0
- package/dist/tools/code-mode/observations.d.ts +8 -0
- package/dist/tools/code-mode/observations.js +64 -0
- package/dist/tools/code-mode/worker.d.ts +1 -0
- package/dist/tools/contracts.d.ts +193 -0
- package/dist/tools/contracts.js +1 -0
- package/dist/tools/definition-projection.d.ts +1 -0
- package/dist/tools/definition-projection.js +1 -0
- package/dist/tools/execution-limits.d.ts +69 -0
- package/dist/tools/execution-limits.js +58 -0
- package/dist/tools/execution.d.ts +30 -0
- package/dist/tools/execution.js +191 -0
- package/dist/tools/local/apply-patch-parser.js +177 -0
- package/dist/tools/local/apply-patch.d.ts +19 -0
- package/dist/tools/local/apply-patch.js +489 -0
- package/dist/tools/local/exec.d.ts +28 -0
- package/dist/tools/local/exec.js +194 -0
- package/dist/tools/local/image-processing.js +146 -0
- package/dist/tools/local/read.d.ts +43 -0
- package/dist/tools/local/read.js +470 -0
- package/dist/tools/local/view-image.d.ts +15 -0
- package/dist/tools/local/view-image.js +317 -0
- package/dist/tools/mcp/catalog.js +220 -0
- package/dist/tools/mcp/history.d.ts +4 -0
- package/dist/tools/mcp/tool-search.d.ts +45 -0
- package/dist/tools/mcp/tool-search.js +294 -0
- package/dist/tools/output-projection.d.ts +18 -0
- package/dist/tools/output-projection.js +341 -0
- package/dist/tools/permission-contract.d.ts +25 -0
- package/dist/tools/permission-contract.js +1 -0
- package/dist/tools/permissions.d.ts +61 -0
- package/dist/tools/permissions.js +237 -0
- package/dist/tools/registry.d.ts +7 -0
- package/dist/tools/result-extension-contract.d.ts +37 -0
- package/dist/tools/result-extension-contract.js +32 -0
- package/dist/tools/result-extensions.d.ts +12 -0
- package/dist/tools/result-extensions.js +104 -0
- package/dist/tools/runtime-context.d.ts +89 -0
- package/dist/tools/runtime-context.js +1 -0
- package/dist/tools/runtime-resource-handles.js +28 -0
- package/dist/tools/runtime.js +77 -0
- package/dist/tools/scheduler.d.ts +12 -0
- package/dist/tools/shared/path-resolver.js +133 -0
- package/dist/tools/wait.d.ts +1 -0
- package/dist/tools/wait.js +1 -0
- package/package.json +15 -3
- package/dist/agent-core/error.d.ts +0 -15
- package/dist/agent-core/error.js +0 -74
- package/dist/agent-core/extensions/agents.d.ts +0 -79
- package/dist/agent-core/extensions/agents.js +0 -186
- package/dist/agent-core/extensions/compaction.d.ts +0 -48
- package/dist/agent-core/extensions/contracts.d.ts +0 -265
- package/dist/agent-core/extensions/data.d.ts +0 -84
- package/dist/agent-core/extensions/data.js +0 -83
- package/dist/agent-core/extensions/environment.d.ts +0 -27
- package/dist/agent-core/extensions/environment.js +0 -52
- package/dist/agent-core/extensions/files.d.ts +0 -64
- package/dist/agent-core/extensions/files.js +0 -26
- package/dist/agent-core/extensions/hooks.d.ts +0 -32
- package/dist/agent-core/extensions/manager.d.ts +0 -39
- package/dist/agent-core/extensions/manager.js +0 -458
- package/dist/agent-core/extensions/mcp.d.ts +0 -99
- package/dist/agent-core/extensions/mcp.js +0 -433
- package/dist/agent-core/extensions/model-request.d.ts +0 -56
- package/dist/agent-core/extensions/model-request.js +0 -197
- package/dist/agent-core/extensions/model-stream.d.ts +0 -9
- package/dist/agent-core/extensions/model-stream.js +0 -108
- package/dist/agent-core/extensions/models.d.ts +0 -43
- package/dist/agent-core/extensions/network.d.ts +0 -32
- package/dist/agent-core/extensions/network.js +0 -97
- package/dist/agent-core/extensions/operation.d.ts +0 -30
- package/dist/agent-core/extensions/processes.d.ts +0 -52
- package/dist/agent-core/extensions/processes.js +0 -284
- package/dist/agent-core/extensions/prompt-composition.d.ts +0 -24
- package/dist/agent-core/extensions/prompt-composition.js +0 -106
- package/dist/agent-core/extensions/prompt-input.d.ts +0 -23
- package/dist/agent-core/extensions/prompt-input.js +0 -48
- package/dist/agent-core/extensions/resources.d.ts +0 -27
- package/dist/agent-core/extensions/resources.js +0 -221
- package/dist/agent-core/extensions/services.d.ts +0 -31
- package/dist/agent-core/extensions/services.js +0 -61
- package/dist/agent-core/extensions/session-input.d.ts +0 -163
- package/dist/agent-core/extensions/session-input.js +0 -411
- package/dist/agent-core/extensions/session-messages.d.ts +0 -41
- package/dist/agent-core/extensions/session-messages.js +0 -76
- package/dist/agent-core/extensions/session.d.ts +0 -69
- package/dist/agent-core/extensions/session.js +0 -607
- package/dist/agent-core/extensions/settings.d.ts +0 -59
- package/dist/agent-core/extensions/settings.js +0 -115
- package/dist/agent-core/extensions/store.d.ts +0 -10
- package/dist/agent-core/extensions/store.js +0 -131
- package/dist/agent-core/extensions/tools.d.ts +0 -61
- package/dist/agent-core/extensions/tools.js +0 -269
- package/dist/agent-core/host/contracts.d.ts +0 -100
- package/dist/agent-core/host/contracts.js +0 -18
- package/dist/agent-core/host/local-agent-host.d.ts +0 -96
- package/dist/agent-core/host/local-agent-host.js +0 -425
- package/dist/agent-core/host/local-file-access.d.ts +0 -30
- package/dist/agent-core/host/local-file-access.js +0 -107
- package/dist/agent-core/host/local-network-access.d.ts +0 -6
- package/dist/agent-core/host/local-network-access.js +0 -101
- package/dist/agent-core/host/local-process-executor.d.ts +0 -29
- package/dist/agent-core/host/local-process-executor.js +0 -41
- package/dist/agent-core/host/local-session-environment.d.ts +0 -18
- package/dist/agent-core/host/local-shell.d.ts +0 -3
- package/dist/agent-core/host/network.d.ts +0 -4
- package/dist/agent-core/host/network.js +0 -6
- package/dist/agent-core/model/anthropic-messages.d.ts +0 -10
- package/dist/agent-core/model/anthropic-messages.js +0 -707
- package/dist/agent-core/model/anthropic-thinking.js +0 -33
- package/dist/agent-core/model/catalog-file.d.ts +0 -80
- package/dist/agent-core/model/catalog-file.js +0 -103
- package/dist/agent-core/model/configuration.d.ts +0 -127
- package/dist/agent-core/model/configuration.js +0 -168
- package/dist/agent-core/model/contracts.d.ts +0 -229
- package/dist/agent-core/model/http.d.ts +0 -27
- package/dist/agent-core/model/http.js +0 -534
- package/dist/agent-core/model/image.d.ts +0 -17
- package/dist/agent-core/model/openai-responses.d.ts +0 -77
- package/dist/agent-core/model/openai-responses.js +0 -2123
- package/dist/agent-core/model/product-user-agent.d.ts +0 -5
- package/dist/agent-core/model/product-user-agent.js +0 -22
- package/dist/agent-core/model/recovery.js +0 -80
- package/dist/agent-core/model/request-configuration.d.ts +0 -17
- package/dist/agent-core/model/request-configuration.js +0 -47
- package/dist/agent-core/model/runtime-credential.d.ts +0 -8
- package/dist/agent-core/model/runtime-credential.js +0 -72
- package/dist/agent-core/model/sse.js +0 -281
- package/dist/agent-core/model/text-blocks.js +0 -40
- package/dist/agent-core/model/tool-declarations.d.ts +0 -4
- package/dist/agent-core/model/transport-test.d.ts +0 -3
- package/dist/agent-core/model/transport-test.js +0 -23
- package/dist/agent-core/model/usage-observer.d.ts +0 -31
- package/dist/agent-core/prompts/index.d.ts +0 -20
- package/dist/agent-core/prompts/index.js +0 -49
- package/dist/agent-core/runtime/compaction/coordinator.js +0 -88
- package/dist/agent-core/runtime/compaction/generate.d.ts +0 -28
- package/dist/agent-core/runtime/compaction/generate.js +0 -84
- package/dist/agent-core/runtime/compaction/history.d.ts +0 -16
- package/dist/agent-core/runtime/compaction/operation.d.ts +0 -29
- package/dist/agent-core/runtime/compaction/operation.js +0 -131
- package/dist/agent-core/runtime/compaction/requests.d.ts +0 -16
- package/dist/agent-core/runtime/compaction/requests.js +0 -114
- package/dist/agent-core/runtime/compaction/retained-context.d.ts +0 -6
- package/dist/agent-core/runtime/compaction/retained-context.js +0 -47
- package/dist/agent-core/runtime/compaction/smart.d.ts +0 -14
- package/dist/agent-core/runtime/compaction/smart.js +0 -59
- package/dist/agent-core/runtime/context/contextual-blocks.d.ts +0 -30
- package/dist/agent-core/runtime/context/contextual-blocks.js +0 -146
- package/dist/agent-core/runtime/context/environment.d.ts +0 -5
- package/dist/agent-core/runtime/context/gc-runtime.d.ts +0 -38
- package/dist/agent-core/runtime/context/gc-tokens.d.ts +0 -25
- package/dist/agent-core/runtime/context/gc-tokens.js +0 -103
- package/dist/agent-core/runtime/context/gc.d.ts +0 -75
- package/dist/agent-core/runtime/context/gc.js +0 -1386
- package/dist/agent-core/runtime/context/instructions.d.ts +0 -37
- package/dist/agent-core/runtime/context/instructions.js +0 -297
- package/dist/agent-core/runtime/context/normalize.d.ts +0 -5
- package/dist/agent-core/runtime/context/projection.d.ts +0 -23
- package/dist/agent-core/runtime/context/projection.js +0 -284
- package/dist/agent-core/runtime/context/request-budget.d.ts +0 -4
- package/dist/agent-core/runtime/context/request-budget.js +0 -25
- package/dist/agent-core/runtime/context/restore.d.ts +0 -25
- package/dist/agent-core/runtime/context/restore.js +0 -186
- package/dist/agent-core/runtime/context/usage.d.ts +0 -17
- package/dist/agent-core/runtime/context/usage.js +0 -124
- package/dist/agent-core/runtime/context/world-state.d.ts +0 -33
- package/dist/agent-core/runtime/context/world-state.js +0 -232
- package/dist/agent-core/runtime/contracts.d.ts +0 -41
- package/dist/agent-core/runtime/event-projection.d.ts +0 -14
- package/dist/agent-core/runtime/event-projection.js +0 -87
- package/dist/agent-core/runtime/events.d.ts +0 -197
- package/dist/agent-core/runtime/execution-handle.d.ts +0 -12
- package/dist/agent-core/runtime/execution.d.ts +0 -50
- package/dist/agent-core/runtime/execution.js +0 -445
- package/dist/agent-core/runtime/model-progress.js +0 -85
- package/dist/agent-core/runtime/resource-publication.d.ts +0 -8
- package/dist/agent-core/runtime/resource-publication.js +0 -60
- package/dist/agent-core/sdk/agent.d.ts +0 -11
- package/dist/agent-core/sdk/agent.js +0 -474
- package/dist/agent-core/sdk/extension-agents.d.ts +0 -9
- package/dist/agent-core/sdk/extension-agents.js +0 -58
- package/dist/agent-core/sdk/extension-models.d.ts +0 -13
- package/dist/agent-core/sdk/extension-models.js +0 -137
- package/dist/agent-core/sdk/extension-session.d.ts +0 -30
- package/dist/agent-core/sdk/extension-session.js +0 -105
- package/dist/agent-core/sdk/extension-tools.d.ts +0 -16
- package/dist/agent-core/sdk/extension-tools.js +0 -126
- package/dist/agent-core/sdk/model-runtime.d.ts +0 -18
- package/dist/agent-core/sdk/model-runtime.js +0 -93
- package/dist/agent-core/sdk/native-steer.d.ts +0 -20
- package/dist/agent-core/sdk/native-steer.js +0 -84
- package/dist/agent-core/sdk/request-preparation.d.ts +0 -7
- package/dist/agent-core/sdk/resource-input.d.ts +0 -32
- package/dist/agent-core/sdk/resource-input.js +0 -403
- package/dist/agent-core/sdk/session.d.ts +0 -94
- package/dist/agent-core/sdk/session.js +0 -2377
- package/dist/agent-core/sdk/subagent-backend.d.ts +0 -3
- package/dist/agent-core/sdk/subagent-backend.js +0 -49
- package/dist/agent-core/sdk/types.d.ts +0 -81
- package/dist/agent-core/session/catalog.d.ts +0 -99
- package/dist/agent-core/session/catalog.js +0 -200
- package/dist/agent-core/session/context-gc-checkpoint.d.ts +0 -165
- package/dist/agent-core/session/context-gc-checkpoint.js +0 -935
- package/dist/agent-core/session/context-gc-observations.d.ts +0 -60
- package/dist/agent-core/session/context-gc-observations.js +0 -187
- package/dist/agent-core/session/context-gc-replacements.d.ts +0 -62
- package/dist/agent-core/session/context-gc-subagent.d.ts +0 -53
- package/dist/agent-core/session/deferred-input.d.ts +0 -5
- package/dist/agent-core/session/deferred-input.js +0 -74
- package/dist/agent-core/session/inline-media.d.ts +0 -45
- package/dist/agent-core/session/inline-media.js +0 -163
- package/dist/agent-core/session/rollback.d.ts +0 -13
- package/dist/agent-core/session/rollback.js +0 -46
- package/dist/agent-core/session/store/contracts.d.ts +0 -158
- package/dist/agent-core/session/store/current-state.d.ts +0 -17
- package/dist/agent-core/session/store/current-state.js +0 -53
- package/dist/agent-core/session/store/directory-index.d.ts +0 -18
- package/dist/agent-core/session/store/directory-index.js +0 -169
- package/dist/agent-core/session/store/execution-state.d.ts +0 -18
- package/dist/agent-core/session/store/execution-state.js +0 -175
- package/dist/agent-core/session/store/history.d.ts +0 -25
- package/dist/agent-core/session/store/history.js +0 -181
- package/dist/agent-core/session/store/images.d.ts +0 -19
- package/dist/agent-core/session/store/images.js +0 -110
- package/dist/agent-core/session/store/index.d.ts +0 -4
- package/dist/agent-core/session/store/index.js +0 -2
- package/dist/agent-core/session/store/jsonl-store.d.ts +0 -171
- package/dist/agent-core/session/store/jsonl-store.js +0 -2078
- package/dist/agent-core/session/store/records.d.ts +0 -23
- package/dist/agent-core/session/store/records.js +0 -261
- package/dist/agent-core/session/store/resources.d.ts +0 -26
- package/dist/agent-core/session/store/resources.js +0 -197
- package/dist/agent-core/session/store/types.d.ts +0 -82
- package/dist/agent-core/session/tool-result-resources.d.ts +0 -26
- package/dist/agent-core/session/tool-result-resources.js +0 -256
- package/dist/agent-core/session/transaction-recovery.d.ts +0 -16
- package/dist/agent-core/session/transaction-recovery.js +0 -135
- package/dist/agent-core/storage/file-lock.js +0 -83
- package/dist/agent-core/subagent/contracts.d.ts +0 -117
- package/dist/agent-core/subagent/model-update.js +0 -81
- package/dist/agent-core/subagent/scheduler.d.ts +0 -135
- package/dist/agent-core/subagent/scheduler.js +0 -369
- package/dist/agent-core/subagent/session-controller.d.ts +0 -138
- package/dist/agent-core/subagent/session-controller.js +0 -1594
- package/dist/agent-core/subagent/wait.d.ts +0 -14
- package/dist/agent-core/subagent/wait.js +0 -32
- package/dist/agent-core/tools/agent/agent-cancel.d.ts +0 -7
- package/dist/agent-core/tools/agent/agent-cancel.js +0 -29
- package/dist/agent-core/tools/agent/agent-message.d.ts +0 -7
- package/dist/agent-core/tools/agent/agent-message.js +0 -57
- package/dist/agent-core/tools/agent/agent-start.d.ts +0 -12
- package/dist/agent-core/tools/agent/agent-start.js +0 -106
- package/dist/agent-core/tools/agent/agent-wait.d.ts +0 -7
- package/dist/agent-core/tools/agent/agent-wait.js +0 -91
- package/dist/agent-core/tools/agent/question.d.ts +0 -7
- package/dist/agent-core/tools/agent/question.js +0 -125
- package/dist/agent-core/tools/agent/skill.d.ts +0 -11
- package/dist/agent-core/tools/agent/skill.js +0 -38
- package/dist/agent-core/tools/agent/sleep.d.ts +0 -12
- package/dist/agent-core/tools/agent/sleep.js +0 -54
- package/dist/agent-core/tools/agent/smart-compact.d.ts +0 -9
- package/dist/agent-core/tools/agent/smart-compact.js +0 -23
- package/dist/agent-core/tools/agent/todo-read.d.ts +0 -14
- package/dist/agent-core/tools/agent/todo-write.d.ts +0 -14
- package/dist/agent-core/tools/agent/todo-write.js +0 -66
- package/dist/agent-core/tools/agent/todo.d.ts +0 -26
- package/dist/agent-core/tools/agent/todo.js +0 -60
- package/dist/agent-core/tools/callers.d.ts +0 -6
- package/dist/agent-core/tools/callers.js +0 -39
- package/dist/agent-core/tools/code-mode/cells.d.ts +0 -29
- package/dist/agent-core/tools/code-mode/cells.js +0 -337
- package/dist/agent-core/tools/code-mode/dispatch.d.ts +0 -20
- package/dist/agent-core/tools/code-mode/dispatch.js +0 -80
- package/dist/agent-core/tools/code-mode/engine.d.ts +0 -60
- package/dist/agent-core/tools/code-mode/index.d.ts +0 -29
- package/dist/agent-core/tools/code-mode/index.js +0 -749
- package/dist/agent-core/tools/code-mode/observations.d.ts +0 -98
- package/dist/agent-core/tools/code-mode/observations.js +0 -228
- package/dist/agent-core/tools/code-mode/state.d.ts +0 -9
- package/dist/agent-core/tools/code-mode/state.js +0 -82
- package/dist/agent-core/tools/contracts.d.ts +0 -211
- package/dist/agent-core/tools/definition-projection.d.ts +0 -7
- package/dist/agent-core/tools/definition-projection.js +0 -26
- package/dist/agent-core/tools/execution-limits.d.ts +0 -69
- package/dist/agent-core/tools/execution-limits.js +0 -69
- package/dist/agent-core/tools/execution.d.ts +0 -46
- package/dist/agent-core/tools/execution.js +0 -191
- package/dist/agent-core/tools/local/apply-patch-parser.js +0 -177
- package/dist/agent-core/tools/local/apply-patch.d.ts +0 -19
- package/dist/agent-core/tools/local/apply-patch.js +0 -489
- package/dist/agent-core/tools/local/exec.d.ts +0 -53
- package/dist/agent-core/tools/local/exec.js +0 -877
- package/dist/agent-core/tools/local/image-processing.js +0 -146
- package/dist/agent-core/tools/local/read-context.js +0 -152
- package/dist/agent-core/tools/local/read.d.ts +0 -43
- package/dist/agent-core/tools/local/read.js +0 -470
- package/dist/agent-core/tools/local/registry.d.ts +0 -34
- package/dist/agent-core/tools/local/registry.js +0 -132
- package/dist/agent-core/tools/local/view-image.d.ts +0 -15
- package/dist/agent-core/tools/local/view-image.js +0 -317
- package/dist/agent-core/tools/local/workspace-tools.d.ts +0 -12
- package/dist/agent-core/tools/local/workspace-tools.js +0 -28
- package/dist/agent-core/tools/mcp/catalog.js +0 -220
- package/dist/agent-core/tools/mcp/history.d.ts +0 -4
- package/dist/agent-core/tools/mcp/tool-search.d.ts +0 -45
- package/dist/agent-core/tools/mcp/tool-search.js +0 -294
- package/dist/agent-core/tools/output-projection.d.ts +0 -18
- package/dist/agent-core/tools/output-projection.js +0 -341
- package/dist/agent-core/tools/permissions.d.ts +0 -85
- package/dist/agent-core/tools/permissions.js +0 -237
- package/dist/agent-core/tools/registry.d.ts +0 -7
- package/dist/agent-core/tools/result-extensions.d.ts +0 -46
- package/dist/agent-core/tools/result-extensions.js +0 -134
- package/dist/agent-core/tools/runtime-context.d.ts +0 -74
- package/dist/agent-core/tools/runtime-resource-handles.js +0 -28
- package/dist/agent-core/tools/runtime.js +0 -77
- package/dist/agent-core/tools/scheduler.d.ts +0 -12
- package/dist/agent-core/tools/shared/path-resolver.js +0 -133
- package/dist/agent-core/tools/wait.js +0 -82
- /package/dist/{agent-core/extensions/models.js → extensions/capabilities.js} +0 -0
- /package/dist/{agent-core/extensions → extensions}/compaction.js +0 -0
- /package/dist/{agent-core/model → extensions}/contracts.js +0 -0
- /package/dist/{agent-core/extensions → extensions}/hooks.js +0 -0
- /package/dist/{agent-core/runtime/context/contracts.js → extensions/host-ports.js} +0 -0
- /package/dist/{agent-core/extensions → extensions}/operation.js +0 -0
- /package/dist/{agent-core/runtime/contracts.js → extensions/tool-runtime.js} +0 -0
- /package/dist/{agent-core/extensions/contracts.js → extensions.js} +0 -0
- /package/dist/{agent-core/runtime/events.js → host/description.js} +0 -0
- /package/dist/{agent-core/host → host}/local-session-environment.js +0 -0
- /package/dist/{agent-core/host → host}/local-shell.js +0 -0
- /package/dist/{agent-core/runtime/execution-handle.js → host/skill-contract.js} +0 -0
- /package/dist/{agent-core/model → model}/anthropic-thinking.d.ts +0 -0
- /package/dist/{agent-core/model → model}/attempt-diagnostics.d.ts +0 -0
- /package/dist/{agent-core/model → model}/attempt-diagnostics.js +0 -0
- /package/dist/{agent-core/session/store → model}/contracts.js +0 -0
- /package/dist/{agent-core/sdk/types.js → model/image-contract.js} +0 -0
- /package/dist/{agent-core/model → model}/image.js +0 -0
- /package/dist/{agent-core/model → model}/native-context.d.ts +0 -0
- /package/dist/{agent-core/model → model}/native-context.js +0 -0
- /package/dist/{agent-core/model → model}/recovery.d.ts +0 -0
- /package/dist/{agent-core/model → model}/sse.d.ts +0 -0
- /package/dist/{agent-core/model → model}/text-blocks.d.ts +0 -0
- /package/dist/{agent-core/model → model}/tool-declarations.js +0 -0
- /package/dist/{agent-core/model → model}/tool-input.d.ts +0 -0
- /package/dist/{agent-core/model → model}/tool-input.js +0 -0
- /package/dist/{agent-core/model → model}/usage-observer.js +0 -0
- /package/dist/{agent-core/session/store/types.js → model/usage.js} +0 -0
- /package/dist/{agent-core/subagent → process}/contracts.js +0 -0
- /package/dist/{agent-core/prompts → prompts}/compact.d.ts +0 -0
- /package/dist/{agent-core/prompts → prompts}/compact.js +0 -0
- /package/dist/{agent-core/prompts → prompts}/core.d.ts +0 -0
- /package/dist/{agent-core/prompts → prompts}/core.js +0 -0
- /package/dist/{agent-core/prompts → prompts}/markup.d.ts +0 -0
- /package/dist/{agent-core/prompts → prompts}/markup.js +0 -0
- /package/dist/{agent-core/prompts → prompts}/modes.d.ts +0 -0
- /package/dist/{agent-core/prompts → prompts}/modes.js +0 -0
- /package/dist/{agent-core/prompts → prompts}/output.d.ts +0 -0
- /package/dist/{agent-core/prompts → prompts}/output.js +0 -0
- /package/dist/{agent-core/prompts → prompts}/permissions.d.ts +0 -0
- /package/dist/{agent-core/prompts → prompts}/permissions.js +0 -0
- /package/dist/{agent-core/tools/local → prompts}/read-context.d.ts +0 -0
- /package/dist/{agent-core/prompts → prompts}/resources.d.ts +0 -0
- /package/dist/{agent-core/prompts → prompts}/resources.js +0 -0
- /package/dist/{agent-core/prompts → prompts}/subagent.d.ts +0 -0
- /package/dist/{agent-core/prompts → prompts}/subagent.js +0 -0
- /package/dist/{agent-core/prompts → prompts}/workflow.d.ts +0 -0
- /package/dist/{agent-core/prompts → prompts}/workflow.js +0 -0
- /package/dist/{agent-core/runtime → runtime}/async-queue.d.ts +0 -0
- /package/dist/{agent-core/runtime → runtime}/async-queue.js +0 -0
- /package/dist/{agent-core/tools → runtime/compaction}/contracts.js +0 -0
- /package/dist/{agent-core/runtime → runtime}/compaction/coordinator.d.ts +0 -0
- /package/dist/{agent-core/runtime → runtime}/compaction/history.js +0 -0
- /package/dist/{agent-core/runtime → runtime}/context/contracts.d.ts +0 -0
- /package/dist/{agent-core/session/types.js → runtime/context/contracts.js} +0 -0
- /package/dist/{agent-core/runtime → runtime}/context/environment.js +0 -0
- /package/dist/{agent-core/tools/code-mode/engine.js → runtime/context/gc-contracts.js} +0 -0
- /package/dist/{agent-core/runtime → runtime}/context/gc-runtime.js +0 -0
- /package/dist/{agent-core/runtime → runtime}/context/normalize.js +0 -0
- /package/dist/{agent-core/tools/code-mode/worker.d.ts → runtime/contracts.js} +0 -0
- /package/dist/{agent-core/tools/runtime-context.js → runtime/events.js} +0 -0
- /package/dist/{agent-core/runtime → runtime}/execution-policy.d.ts +0 -0
- /package/dist/{agent-core/runtime → runtime}/execution-policy.js +0 -0
- /package/dist/{agent-core/runtime → runtime}/model-generation-timing.d.ts +0 -0
- /package/dist/{agent-core/runtime → runtime}/model-generation-timing.js +0 -0
- /package/dist/{agent-core/runtime → runtime}/model-progress.d.ts +0 -0
- /package/dist/{agent-core/runtime → runtime}/plan-output.d.ts +0 -0
- /package/dist/{agent-core/runtime → runtime}/plan-output.js +0 -0
- /package/dist/{agent-core/tools/public-metadata.d.ts → runtime/public-tool-metadata.d.ts} +0 -0
- /package/dist/{agent-core/tools/public-metadata.js → runtime/public-tool-metadata.js} +0 -0
- /package/dist/{agent-core/runtime → runtime}/token-budget.d.ts +0 -0
- /package/dist/{agent-core/runtime → runtime}/token-budget.js +0 -0
- /package/dist/{agent-core/tools → runtime}/wait.d.ts +0 -0
- /package/dist/{agent-core/sdk → sdk}/request-preparation.js +0 -0
- /package/dist/{agent-core/session → session}/context-gc-markup.d.ts +0 -0
- /package/dist/{agent-core/session → session}/context-gc-markup.js +0 -0
- /package/dist/{agent-core/session → session}/context-gc-replacements.js +0 -0
- /package/dist/{agent-core/session → session}/context-gc-subagent.js +0 -0
- /package/dist/{agent-core/session → session}/types.d.ts +0 -0
- /package/dist/{agent-core/storage → storage}/file-lock.d.ts +0 -0
- /package/dist/{agent-core/subagent → subagent}/model-update.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/agent/todo-read.js +0 -0
- /package/dist/{agent-core/tools → tools}/code-mode/quickjs-engine.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/code-mode/quickjs-engine.js +0 -0
- /package/dist/{agent-core/tools → tools}/code-mode/text-output.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/code-mode/text-output.js +0 -0
- /package/dist/{agent-core/tools → tools}/code-mode/worker.js +0 -0
- /package/dist/{agent-core/tools → tools}/file-change-diff.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/file-change-diff.js +0 -0
- /package/dist/{agent-core/tools → tools}/input-diagnostics/source-preview.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/input-diagnostics/source-preview.js +0 -0
- /package/dist/{agent-core/tools → tools}/input.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/input.js +0 -0
- /package/dist/{agent-core/tools → tools}/local/apply-patch-parser.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/local/image-processing.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/mcp/catalog.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/mcp/history.js +0 -0
- /package/dist/{agent-core/tools → tools}/registry.js +0 -0
- /package/dist/{agent-core/tools → tools}/runtime-resource-handles.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/runtime.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/scheduler.js +0 -0
- /package/dist/{agent-core/tools → tools}/shared/patch-result.d.ts +0 -0
- /package/dist/{agent-core/tools → tools}/shared/patch-result.js +0 -0
- /package/dist/{agent-core/tools → tools}/shared/path-resolver.d.ts +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { AgentError } from '../error.js';
|
|
2
|
+
import { randomUUID } from 'node:crypto';
|
|
3
|
+
import { AGENT_TOOL_HANDLERS, BUILTIN_TOOL_DEFINITIONS } from './registry.js';
|
|
4
|
+
import { normalizeToolInput } from './input.js';
|
|
5
|
+
import { validateToolResult } from './output-projection.js';
|
|
6
|
+
import { withToolResultExtensions } from './result-extensions.js';
|
|
7
|
+
import { viewResourceImage } from './local/view-image.js';
|
|
8
|
+
export async function executeRegisteredTool(name, arguments_, callId, context, caller = 'direct') {
|
|
9
|
+
return withToolResultExtensions(context.writeToolResultResource, async () => {
|
|
10
|
+
if (context.invokeTool)
|
|
11
|
+
return validateToolResult(await context.invokeTool({ name, arguments: arguments_, callId }, context, caller));
|
|
12
|
+
return validateToolResult(await executeCapturedTool(AGENT_TOOL_HANDLERS.has(name) ? 'builtin' : name.startsWith('mcp__') ? 'mcp' : 'host', { name, arguments: arguments_, callId }, context));
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/** Invoke an already captured source; names never reselect a different backend. */
|
|
16
|
+
export async function executeCapturedTool(kind, call, context) {
|
|
17
|
+
const definition = kind === 'builtin'
|
|
18
|
+
? BUILTIN_TOOL_DEFINITIONS.find((tool) => tool.name === call.name)
|
|
19
|
+
: undefined;
|
|
20
|
+
if (definition)
|
|
21
|
+
call = { ...call, arguments: normalizeToolInput(call.arguments, definition.inputSchema) };
|
|
22
|
+
if (kind !== 'mcp' &&
|
|
23
|
+
call.name === 'view_image' &&
|
|
24
|
+
call.arguments !== null &&
|
|
25
|
+
typeof call.arguments === 'object' &&
|
|
26
|
+
'resourceId' in call.arguments &&
|
|
27
|
+
call.arguments.resourceId != null) {
|
|
28
|
+
const store = context.imageStore;
|
|
29
|
+
if (!store)
|
|
30
|
+
throw new AgentError('MAR_AGENT_TOOL_INPUT_INVALID', 'Session image resources are unavailable.');
|
|
31
|
+
return viewResourceImage(call.arguments, (resourceId) => store.readResource(context.sessionId, resourceId), context.signal);
|
|
32
|
+
}
|
|
33
|
+
if (kind === 'builtin') {
|
|
34
|
+
const handler = AGENT_TOOL_HANDLERS.get(call.name);
|
|
35
|
+
if (handler)
|
|
36
|
+
return handler(call.arguments, context, call.callId ?? randomUUID());
|
|
37
|
+
}
|
|
38
|
+
if (kind === 'mcp') {
|
|
39
|
+
if (!context.host.callMcpTool)
|
|
40
|
+
throw new AgentError('MAR_AGENT_MCP_FAILED', 'MCP execution is unavailable.');
|
|
41
|
+
return context.host.callMcpTool(call, context.signal, {
|
|
42
|
+
sessionId: context.sessionId,
|
|
43
|
+
executionId: context.executionId,
|
|
44
|
+
mode: context.mode,
|
|
45
|
+
...(context.expectedMcpTool ? { expectedTool: context.expectedMcpTool } : {})
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
const { name, callId } = call;
|
|
49
|
+
return context.host.executeTool(call, {
|
|
50
|
+
mode: context.mode,
|
|
51
|
+
signal: context.signal,
|
|
52
|
+
waitInterrupt: context.waitInterrupt,
|
|
53
|
+
...((name === 'exec' || name === 'exec_wait') && callId !== undefined
|
|
54
|
+
? {
|
|
55
|
+
onOutput: (output) => context.emit({
|
|
56
|
+
type: 'tool.output',
|
|
57
|
+
toolName: name,
|
|
58
|
+
callId,
|
|
59
|
+
...(context.parentCallId === undefined ? {} : { parentCallId: context.parentCallId }),
|
|
60
|
+
output
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
: {}),
|
|
64
|
+
sessionId: context.sessionId,
|
|
65
|
+
executionId: context.executionId,
|
|
66
|
+
...(context.modelId === undefined ? {} : { modelId: context.modelId }),
|
|
67
|
+
...(context.recentImages === undefined
|
|
68
|
+
? {}
|
|
69
|
+
: {
|
|
70
|
+
recentImages: context.recentImages.map((image) => ({
|
|
71
|
+
...image,
|
|
72
|
+
data: Buffer.from(image.data)
|
|
73
|
+
}))
|
|
74
|
+
}),
|
|
75
|
+
...(context.codeMode === undefined ? {} : { codeMode: context.codeMode })
|
|
76
|
+
});
|
|
77
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ClientToolDefinition } from './contracts.js';
|
|
2
|
+
/** A managed independent callback must not borrow its still-active creator's tool barrier. */
|
|
3
|
+
export declare function withIndependentSessionTools<Value>(run: () => Value): Value;
|
|
4
|
+
/** One barrier domain for foreground tools and all retained cells in a Session. */
|
|
5
|
+
export declare function createSessionToolScheduler(): <T>(definition: ClientToolDefinition | undefined, run: () => Promise<T>) => Promise<T>;
|
|
6
|
+
/** Schedules an incremental stream while preserving the same safe/serial barriers as batches. */
|
|
7
|
+
export declare function createToolCallScheduler<TCall extends {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
}, TResult>(definitions: readonly ClientToolDefinition[], execute: (call: TCall) => Promise<TResult>): (call: TCall) => Promise<TResult>;
|
|
10
|
+
export declare function scheduleToolCallBatch<TCall extends {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
}, TResult>(calls: readonly TCall[], definitions: readonly ClientToolDefinition[], execute: (call: TCall) => Promise<TResult>): Promise<TResult[]>;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { lstat, realpath } from 'node:fs/promises';
|
|
2
|
+
import { dirname, isAbsolute, posix, relative, resolve, sep } from 'node:path';
|
|
3
|
+
import { AgentError } from '../../error.js';
|
|
4
|
+
export class WorkspacePathResolver {
|
|
5
|
+
root;
|
|
6
|
+
#restrictPaths;
|
|
7
|
+
#roots;
|
|
8
|
+
#logicalWorkspacePath;
|
|
9
|
+
constructor(root, options = {}) {
|
|
10
|
+
this.root = resolve(root);
|
|
11
|
+
this.#restrictPaths = options.restrictPaths === true;
|
|
12
|
+
this.#roots = [
|
|
13
|
+
{ physicalPath: this.root, writable: options.rootWritable !== false },
|
|
14
|
+
...(options.mounts ?? []).map((mount) => ({
|
|
15
|
+
logicalPath: logicalRoot(mount.logicalPath),
|
|
16
|
+
physicalPath: resolve(mount.physicalPath),
|
|
17
|
+
writable: mount.writable
|
|
18
|
+
}))
|
|
19
|
+
];
|
|
20
|
+
const logicalPaths = this.#roots
|
|
21
|
+
.flatMap((candidate) => (candidate.logicalPath === undefined ? [] : [candidate.logicalPath]))
|
|
22
|
+
.sort();
|
|
23
|
+
if (new Set(logicalPaths).size !== logicalPaths.length)
|
|
24
|
+
throw denied('Logical mount paths must be unique.');
|
|
25
|
+
const logicalMounts = this.#roots.filter((candidate) => candidate.logicalPath !== undefined);
|
|
26
|
+
for (const [index, mount] of logicalMounts.entries()) {
|
|
27
|
+
if (logicalMounts
|
|
28
|
+
.slice(index + 1)
|
|
29
|
+
.some((candidate) => candidate.physicalPath === mount.physicalPath && candidate.writable !== mount.writable))
|
|
30
|
+
throw denied('Logical aliases for one physical path must use the same access mode.');
|
|
31
|
+
}
|
|
32
|
+
this.#logicalWorkspacePath = logicalMounts.find((candidate) => candidate.physicalPath === this.root)?.logicalPath;
|
|
33
|
+
}
|
|
34
|
+
async resolve(input, allowMissing = false, access = 'read') {
|
|
35
|
+
return (await this.resolveWithDisplay(input, allowMissing, access)).physicalPath;
|
|
36
|
+
}
|
|
37
|
+
async resolveWithDisplay(input, allowMissing = false, access = 'read') {
|
|
38
|
+
const selected = this.#select(input);
|
|
39
|
+
if (access === 'write' && !selected.root.writable)
|
|
40
|
+
throw denied('The requested path is read-only.');
|
|
41
|
+
const target = selected.target;
|
|
42
|
+
if (this.#restrictPaths && !withinOrEqual(selected.root.physicalPath, target))
|
|
43
|
+
throw denied('The requested path is outside the allowed roots.');
|
|
44
|
+
try {
|
|
45
|
+
const resolved = await realpath(target);
|
|
46
|
+
await lstat(resolved);
|
|
47
|
+
if (this.#restrictPaths &&
|
|
48
|
+
!withinOrEqual(await realpath(selected.root.physicalPath), resolved))
|
|
49
|
+
throw denied('The requested path escapes the allowed root.');
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
if (error instanceof AgentError)
|
|
53
|
+
throw error;
|
|
54
|
+
if (!allowMissing)
|
|
55
|
+
throw error;
|
|
56
|
+
const parent = await nearestExistingParent(dirname(target));
|
|
57
|
+
if (this.#restrictPaths &&
|
|
58
|
+
!withinOrEqual(await realpath(selected.root.physicalPath), await realpath(parent)))
|
|
59
|
+
throw denied('The requested path escapes the allowed root.');
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
physicalPath: target,
|
|
63
|
+
displayPath: this.#display(selected)
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
#select(input) {
|
|
67
|
+
if (!isAbsolute(input)) {
|
|
68
|
+
if (this.#logicalWorkspacePath !== undefined)
|
|
69
|
+
return this.#selectAbsolute(posix.join(this.#logicalWorkspacePath, input.replaceAll('\\', '/')));
|
|
70
|
+
const root = this.#roots[0];
|
|
71
|
+
return { root, target: resolve(root.physicalPath, input) };
|
|
72
|
+
}
|
|
73
|
+
return this.#selectAbsolute(input);
|
|
74
|
+
}
|
|
75
|
+
#display(selected) {
|
|
76
|
+
if (selected.root.logicalPath === undefined)
|
|
77
|
+
return selected.target;
|
|
78
|
+
const suffix = relative(selected.root.physicalPath, selected.target).split(sep).filter(Boolean);
|
|
79
|
+
return suffix.length === 0
|
|
80
|
+
? selected.root.logicalPath
|
|
81
|
+
: posix.join(selected.root.logicalPath, ...suffix);
|
|
82
|
+
}
|
|
83
|
+
#selectAbsolute(input) {
|
|
84
|
+
const normalized = posix.normalize(input.replaceAll('\\', '/'));
|
|
85
|
+
const mount = this.#roots
|
|
86
|
+
.filter((candidate) => candidate.logicalPath !== undefined)
|
|
87
|
+
.sort((left, right) => right.logicalPath.length - left.logicalPath.length)
|
|
88
|
+
.find((candidate) => normalized === candidate.logicalPath || normalized.startsWith(`${candidate.logicalPath}/`));
|
|
89
|
+
if (mount !== undefined) {
|
|
90
|
+
const suffix = normalized.slice(mount.logicalPath.length).replace(/^\/+/u, '');
|
|
91
|
+
return {
|
|
92
|
+
root: mount,
|
|
93
|
+
target: resolve(mount.physicalPath, ...suffix.split('/').filter(Boolean))
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
if (this.#restrictPaths)
|
|
97
|
+
throw denied('The requested path is outside the allowed roots.');
|
|
98
|
+
return {
|
|
99
|
+
root: { physicalPath: dirname(resolve(input)), writable: true },
|
|
100
|
+
target: resolve(input)
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function logicalRoot(value) {
|
|
105
|
+
const normalized = posix.normalize(value.replaceAll('\\', '/'));
|
|
106
|
+
if (!normalized.startsWith('/') || normalized === '/' || normalized.includes('\0'))
|
|
107
|
+
throw denied('Logical mount path is invalid.');
|
|
108
|
+
return normalized.replace(/\/+$/u, '');
|
|
109
|
+
}
|
|
110
|
+
function withinOrEqual(parent, candidate) {
|
|
111
|
+
const relation = relative(parent, candidate);
|
|
112
|
+
return relation === '' || (relation !== '..' && !relation.startsWith(`..${sep}`));
|
|
113
|
+
}
|
|
114
|
+
async function nearestExistingParent(path) {
|
|
115
|
+
let candidate = path;
|
|
116
|
+
for (;;) {
|
|
117
|
+
try {
|
|
118
|
+
await lstat(candidate);
|
|
119
|
+
return candidate;
|
|
120
|
+
}
|
|
121
|
+
catch (error) {
|
|
122
|
+
if (error.code !== 'ENOENT')
|
|
123
|
+
throw error;
|
|
124
|
+
const parent = dirname(candidate);
|
|
125
|
+
if (parent === candidate)
|
|
126
|
+
throw error;
|
|
127
|
+
candidate = parent;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function denied(message) {
|
|
132
|
+
return new AgentError('MAR_AGENT_FILE_ACCESS_DENIED', message);
|
|
133
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../runtime/wait.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../runtime/wait.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/agent",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.34",
|
|
4
4
|
"description": "Embeddable MAR coding agent SDK and CLI.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -20,8 +20,20 @@
|
|
|
20
20
|
"default": "./dist/sandbox/linux/index.js"
|
|
21
21
|
},
|
|
22
22
|
"./host/network": {
|
|
23
|
-
"types": "./dist/
|
|
24
|
-
"default": "./dist/
|
|
23
|
+
"types": "./dist/host/network.d.ts",
|
|
24
|
+
"default": "./dist/host/network.js"
|
|
25
|
+
},
|
|
26
|
+
"./host": {
|
|
27
|
+
"types": "./dist/host.d.ts",
|
|
28
|
+
"default": "./dist/host.js"
|
|
29
|
+
},
|
|
30
|
+
"./extensions": {
|
|
31
|
+
"types": "./dist/extensions.d.ts",
|
|
32
|
+
"default": "./dist/extensions.js"
|
|
33
|
+
},
|
|
34
|
+
"./session-store": {
|
|
35
|
+
"types": "./dist/session-store.d.ts",
|
|
36
|
+
"default": "./dist/session-store.js"
|
|
25
37
|
}
|
|
26
38
|
},
|
|
27
39
|
"bin": {
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class MarAgentError extends Error {
|
|
2
|
-
readonly code: string;
|
|
3
|
-
readonly publicMessage: string;
|
|
4
|
-
readonly details: Readonly<Record<string, unknown>> | undefined;
|
|
5
|
-
readonly retryable: boolean;
|
|
6
|
-
constructor(code: string, message: string, options?: {
|
|
7
|
-
details?: Readonly<Record<string, unknown>>;
|
|
8
|
-
retryable?: boolean;
|
|
9
|
-
cause?: unknown;
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
export declare function describeMarAgentError(error: unknown, fallbackCode: string, fallbackMessage?: string, includeCauses?: boolean): {
|
|
13
|
-
code: string;
|
|
14
|
-
message: string;
|
|
15
|
-
};
|
package/dist/agent-core/error.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
export class MarAgentError extends Error {
|
|
2
|
-
code;
|
|
3
|
-
publicMessage;
|
|
4
|
-
details;
|
|
5
|
-
retryable;
|
|
6
|
-
constructor(code, message, options = {}) {
|
|
7
|
-
super(`${code}: ${message}`, { cause: options.cause });
|
|
8
|
-
this.name = 'MarAgentError';
|
|
9
|
-
this.code = code;
|
|
10
|
-
this.publicMessage = message;
|
|
11
|
-
this.details = options.details;
|
|
12
|
-
this.retryable = options.retryable ?? false;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
const MAX_ERROR_MESSAGE_CHARACTERS = 1_000;
|
|
16
|
-
export function describeMarAgentError(error, fallbackCode, fallbackMessage = 'MAR Agent operation failed.', includeCauses = true) {
|
|
17
|
-
const code = diagnosticCode(error) ?? fallbackCode;
|
|
18
|
-
const messages = [];
|
|
19
|
-
const seen = new Set();
|
|
20
|
-
let current = error;
|
|
21
|
-
while (current !== undefined && current !== null && !seen.has(current) && messages.length < 4) {
|
|
22
|
-
seen.add(current);
|
|
23
|
-
const currentCode = diagnosticCode(current);
|
|
24
|
-
const message = diagnosticMessage(current, currentCode);
|
|
25
|
-
const summary = message && currentCode !== undefined && currentCode !== code
|
|
26
|
-
? `${currentCode}: ${message}`
|
|
27
|
-
: message;
|
|
28
|
-
if (summary && !messages.includes(summary))
|
|
29
|
-
messages.push(summary);
|
|
30
|
-
if (!includeCauses)
|
|
31
|
-
break;
|
|
32
|
-
current = diagnosticCause(current);
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
code,
|
|
36
|
-
message: truncateErrorMessage(messages.join(' Caused by: ') || fallbackMessage)
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function diagnosticCode(value) {
|
|
40
|
-
if (value instanceof MarAgentError)
|
|
41
|
-
return value.code;
|
|
42
|
-
if (value === null || typeof value !== 'object' || !('code' in value))
|
|
43
|
-
return undefined;
|
|
44
|
-
const code = value.code;
|
|
45
|
-
return typeof code === 'string' && code.trim().length > 0 ? code.trim().slice(0, 80) : undefined;
|
|
46
|
-
}
|
|
47
|
-
function diagnosticMessage(value, code) {
|
|
48
|
-
const message = value instanceof MarAgentError
|
|
49
|
-
? value.publicMessage
|
|
50
|
-
: value instanceof Error
|
|
51
|
-
? value.message
|
|
52
|
-
: value !== null &&
|
|
53
|
-
typeof value === 'object' &&
|
|
54
|
-
'message' in value &&
|
|
55
|
-
typeof value.message === 'string'
|
|
56
|
-
? value.message
|
|
57
|
-
: typeof value === 'string'
|
|
58
|
-
? value
|
|
59
|
-
: undefined;
|
|
60
|
-
const normalized = message?.trim();
|
|
61
|
-
if (!normalized)
|
|
62
|
-
return undefined;
|
|
63
|
-
return code !== undefined && normalized.startsWith(`${code}: `)
|
|
64
|
-
? normalized.slice(code.length + 2)
|
|
65
|
-
: normalized;
|
|
66
|
-
}
|
|
67
|
-
function diagnosticCause(value) {
|
|
68
|
-
if (value === null || typeof value !== 'object' || !('cause' in value))
|
|
69
|
-
return undefined;
|
|
70
|
-
return value.cause;
|
|
71
|
-
}
|
|
72
|
-
function truncateErrorMessage(value) {
|
|
73
|
-
return [...value].slice(0, MAX_ERROR_MESSAGE_CHARACTERS).join('');
|
|
74
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import type { MarAgentReasoningEffort } from '../model/configuration.js';
|
|
2
|
-
import type { SubagentController, SubagentTaskSnapshot, SubagentManyOutput, SubagentHandledResult } from '../subagent/contracts.js';
|
|
3
|
-
import type { CoreOperationContext } from './operation.js';
|
|
4
|
-
import type { ExtensionResourceScope } from './resources.js';
|
|
5
|
-
import type { ExtensionHooks } from './hooks.js';
|
|
6
|
-
import type { CoreDomainOperations, CoreDomainFacts, CoreCapabilitySnapshot } from './contracts.js';
|
|
7
|
-
export type CoreAgentSnapshot = Readonly<SubagentTaskSnapshot>;
|
|
8
|
-
export type CoreAgentManySnapshot = Readonly<SubagentManyOutput>;
|
|
9
|
-
export type CoreAgentWaitResult = CoreAgentSnapshot | CoreAgentManySnapshot;
|
|
10
|
-
export type CoreAgentHandledResult = SubagentHandledResult;
|
|
11
|
-
export type CoreAgentSpawnResult = CoreAgentSnapshot | CoreAgentHandledResult;
|
|
12
|
-
export declare function isHandledAgentResult(value: CoreAgentSpawnResult | CoreAgentManySnapshot): value is CoreAgentHandledResult;
|
|
13
|
-
export interface CoreAgentSpawnInput {
|
|
14
|
-
readonly turnSignal?: AbortSignal;
|
|
15
|
-
readonly waitFor?: 'start' | 'completion';
|
|
16
|
-
readonly background?: boolean;
|
|
17
|
-
readonly prompt: string;
|
|
18
|
-
readonly description?: string;
|
|
19
|
-
readonly modelId?: string;
|
|
20
|
-
readonly reasoningEffort?: MarAgentReasoningEffort;
|
|
21
|
-
readonly role?: 'general-purpose' | 'explore';
|
|
22
|
-
readonly signal?: AbortSignal;
|
|
23
|
-
}
|
|
24
|
-
export interface CoreAgentTarget {
|
|
25
|
-
readonly agentId: string;
|
|
26
|
-
readonly signal?: AbortSignal;
|
|
27
|
-
}
|
|
28
|
-
export interface CoreAgentWaitInput {
|
|
29
|
-
readonly untilSettled?: true;
|
|
30
|
-
readonly agentId?: string;
|
|
31
|
-
readonly agentIds?: readonly string[];
|
|
32
|
-
readonly mode?: 'any' | 'all';
|
|
33
|
-
readonly signal?: AbortSignal;
|
|
34
|
-
readonly waitMs?: number;
|
|
35
|
-
readonly waitFor?: 'completion' | 'message';
|
|
36
|
-
}
|
|
37
|
-
export interface CoreAgentMessageInput extends CoreAgentTarget {
|
|
38
|
-
readonly message: string;
|
|
39
|
-
readonly delivery?: 'append' | 'replace';
|
|
40
|
-
}
|
|
41
|
-
export interface CoreAgentsBackend {
|
|
42
|
-
own(ownerInstanceId: string): () => Promise<void>;
|
|
43
|
-
spawn(input: CoreAgentSpawnInput, call: CoreOperationContext): Promise<CoreAgentSnapshot>;
|
|
44
|
-
list(call: CoreOperationContext): Promise<readonly CoreAgentSnapshot[]>;
|
|
45
|
-
inspect(input: CoreAgentTarget, call: CoreOperationContext): Promise<CoreAgentSnapshot>;
|
|
46
|
-
wait(input: CoreAgentWaitInput, call: CoreOperationContext): Promise<CoreAgentWaitResult>;
|
|
47
|
-
message(input: CoreAgentMessageInput, call: CoreOperationContext): Promise<CoreAgentSnapshot>;
|
|
48
|
-
cancel(input: CoreAgentTarget, call: CoreOperationContext): Promise<CoreAgentSnapshot>;
|
|
49
|
-
}
|
|
50
|
-
export interface CoreAgentsApi {
|
|
51
|
-
spawn(input: CoreAgentSpawnInput): Promise<CoreAgentSpawnResult>;
|
|
52
|
-
list(input?: {
|
|
53
|
-
readonly signal?: AbortSignal;
|
|
54
|
-
}): Promise<readonly CoreAgentSnapshot[]>;
|
|
55
|
-
inspect(input: CoreAgentTarget): Promise<CoreAgentSnapshot>;
|
|
56
|
-
wait(input: CoreAgentWaitInput & {
|
|
57
|
-
readonly agentIds: readonly string[];
|
|
58
|
-
}): Promise<CoreAgentManySnapshot>;
|
|
59
|
-
wait(input: CoreAgentWaitInput & {
|
|
60
|
-
readonly agentIds?: undefined;
|
|
61
|
-
}): Promise<CoreAgentSnapshot>;
|
|
62
|
-
wait(input: CoreAgentWaitInput): Promise<CoreAgentWaitResult>;
|
|
63
|
-
message(input: CoreAgentMessageInput): Promise<CoreAgentSnapshot>;
|
|
64
|
-
cancel(input: CoreAgentTarget): Promise<CoreAgentSnapshot>;
|
|
65
|
-
}
|
|
66
|
-
export interface CoreAgentCompletion {
|
|
67
|
-
readonly operation: 'spawn' | 'wait' | 'message' | 'cancel';
|
|
68
|
-
readonly agentId: string;
|
|
69
|
-
readonly status: SubagentTaskSnapshot['status'];
|
|
70
|
-
readonly deliveryStatus?: SubagentTaskSnapshot['deliveryStatus'];
|
|
71
|
-
}
|
|
72
|
-
type AgentOperation = 'agent.spawn' | 'agent.wait' | 'agent.message' | 'agent.cancel';
|
|
73
|
-
export type CoreAgentAction = <Key extends AgentOperation>(key: Key, input: CoreDomainOperations[Key]['input'], leaf: (input: CoreDomainOperations[Key]['input'], call: CoreOperationContext) => Promise<CoreDomainOperations[Key]['output']>) => Promise<CoreDomainOperations[Key]['output']>;
|
|
74
|
-
/** All callers share one interception and authoritative leaf-completion boundary. */
|
|
75
|
-
export declare function invokeCoreAgentOperation<Key extends AgentOperation>(hooks: ExtensionHooks<CoreDomainOperations, CoreDomainFacts>, key: Key, input: CoreDomainOperations[Key]['input'], call: CoreOperationContext, leaf: (input: CoreDomainOperations[Key]['input'], call: CoreOperationContext) => Promise<CoreDomainOperations[Key]['output']>): Promise<CoreDomainOperations[Key]['output']>;
|
|
76
|
-
export declare function bindAgentController(controller: SubagentController, action: CoreAgentAction): SubagentController;
|
|
77
|
-
export declare function agentCapabilities(capabilities: CoreCapabilitySnapshot, available: boolean): CoreCapabilitySnapshot;
|
|
78
|
-
export declare function bindCoreAgents(backend: CoreAgentsBackend, scope: ExtensionResourceScope, run: <Value>(operation: (call: CoreOperationContext) => Promise<Value>, signal?: AbortSignal) => Promise<Value>, hooks: ExtensionHooks<CoreDomainOperations, CoreDomainFacts>): CoreAgentsApi;
|
|
79
|
-
export {};
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { MarAgentError } from '../error.js';
|
|
2
|
-
import { parseAgentWaitTargets } from '../subagent/wait.js';
|
|
3
|
-
export function isHandledAgentResult(value) {
|
|
4
|
-
return 'outcome' in value && value.outcome === 'handled' && !Object.hasOwn(value, 'agentId');
|
|
5
|
-
}
|
|
6
|
-
/** All callers share one interception and authoritative leaf-completion boundary. */
|
|
7
|
-
export function invokeCoreAgentOperation(hooks, key, input, call, leaf) {
|
|
8
|
-
return hooks.invoke(key, input, call, async (input, effective) => {
|
|
9
|
-
const result = structuredClone(await leaf(input, effective));
|
|
10
|
-
if (isHandledAgentResult(result))
|
|
11
|
-
return result;
|
|
12
|
-
const agents = Array.isArray(result.agents)
|
|
13
|
-
? result.agents
|
|
14
|
-
: [result];
|
|
15
|
-
for (const agent of agents)
|
|
16
|
-
await hooks.emit('agent.completed', {
|
|
17
|
-
operation: key.slice('agent.'.length),
|
|
18
|
-
agentId: agent.agentId,
|
|
19
|
-
status: agent.status,
|
|
20
|
-
...(agent.deliveryStatus === undefined ? {} : { deliveryStatus: agent.deliveryStatus })
|
|
21
|
-
}, effective);
|
|
22
|
-
return result;
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
function resolveAgentSpawn(input) {
|
|
26
|
-
if (!input ||
|
|
27
|
-
typeof input !== 'object' ||
|
|
28
|
-
Array.isArray(input) ||
|
|
29
|
-
typeof input.prompt !== 'string' ||
|
|
30
|
-
!input.prompt.trim() ||
|
|
31
|
-
(input.turnSignal !== undefined && !(input.turnSignal instanceof AbortSignal)) ||
|
|
32
|
-
(input.description !== undefined &&
|
|
33
|
-
(typeof input.description !== 'string' || !input.description.trim())) ||
|
|
34
|
-
(input.modelId !== undefined && (typeof input.modelId !== 'string' || !input.modelId)) ||
|
|
35
|
-
(input.role !== undefined && input.role !== 'general-purpose' && input.role !== 'explore') ||
|
|
36
|
-
(input.background !== undefined && typeof input.background !== 'boolean') ||
|
|
37
|
-
(input.waitFor !== undefined && input.waitFor !== 'start' && input.waitFor !== 'completion') ||
|
|
38
|
-
(input.reasoningEffort !== undefined &&
|
|
39
|
-
!['low', 'medium', 'high', 'xhigh', 'max', 'ultra'].includes(input.reasoningEffort)))
|
|
40
|
-
throw invalid('Agent spawn input is invalid.');
|
|
41
|
-
return {
|
|
42
|
-
prompt: input.prompt,
|
|
43
|
-
...(input.turnSignal === undefined ? {} : { turnSignal: input.turnSignal }),
|
|
44
|
-
...(input.waitFor === undefined ? {} : { waitFor: input.waitFor }),
|
|
45
|
-
...(input.background === undefined ? {} : { background: input.background }),
|
|
46
|
-
description: input.description ?? 'Extension agent',
|
|
47
|
-
...(input.signal === undefined ? {} : { signal: input.signal }),
|
|
48
|
-
...(input.modelId === undefined ? {} : { modelId: input.modelId }),
|
|
49
|
-
...(input.reasoningEffort === undefined ? {} : { reasoningEffort: input.reasoningEffort }),
|
|
50
|
-
role: input.role ?? 'general-purpose'
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
export function bindAgentController(controller, action) {
|
|
54
|
-
const wait = (input, waitInterrupt) => action('agent.wait', input, (target, call) => {
|
|
55
|
-
const selection = parseAgentWaitTargets(target);
|
|
56
|
-
return selection.agentIds !== undefined
|
|
57
|
-
? controller.outputMany(selection.agentIds, {
|
|
58
|
-
...target,
|
|
59
|
-
waitInterrupt,
|
|
60
|
-
mode: selection.mode ?? 'any',
|
|
61
|
-
signal: call.signal
|
|
62
|
-
})
|
|
63
|
-
: target.agentId === undefined
|
|
64
|
-
? controller.outputAny({ ...target, waitInterrupt, signal: call.signal })
|
|
65
|
-
: controller.output(target.agentId, { ...target, waitInterrupt, signal: call.signal });
|
|
66
|
-
});
|
|
67
|
-
return {
|
|
68
|
-
run: (input, options) => {
|
|
69
|
-
return action('agent.spawn', {
|
|
70
|
-
...(options?.waitFor === undefined ? {} : { waitFor: options.waitFor }),
|
|
71
|
-
prompt: input.prompt,
|
|
72
|
-
description: input.description,
|
|
73
|
-
role: input.role,
|
|
74
|
-
background: input.background ?? false,
|
|
75
|
-
...(input.modelId === undefined ? {} : { modelId: input.modelId }),
|
|
76
|
-
...(input.reasoningEffort === undefined ? {} : { reasoningEffort: input.reasoningEffort })
|
|
77
|
-
}, async (target, call) => {
|
|
78
|
-
const task = resolveAgentSpawn(target);
|
|
79
|
-
return controller.run({
|
|
80
|
-
prompt: task.prompt,
|
|
81
|
-
description: task.description ?? input.description,
|
|
82
|
-
role: task.role ?? input.role,
|
|
83
|
-
background: task.background ?? false,
|
|
84
|
-
...(input.parentSubagentId === undefined
|
|
85
|
-
? {}
|
|
86
|
-
: { parentSubagentId: input.parentSubagentId }),
|
|
87
|
-
...(task.modelId === undefined ? {} : { modelId: task.modelId }),
|
|
88
|
-
...(task.reasoningEffort === undefined
|
|
89
|
-
? {}
|
|
90
|
-
: { reasoningEffort: task.reasoningEffort })
|
|
91
|
-
}, {
|
|
92
|
-
...options,
|
|
93
|
-
...(task.turnSignal === undefined ? {} : { turnSignal: task.turnSignal }),
|
|
94
|
-
...(task.waitFor === undefined ? {} : { waitFor: task.waitFor }),
|
|
95
|
-
signal: call.signal
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
},
|
|
99
|
-
output: (id, options) => {
|
|
100
|
-
const { waitInterrupt, ...input } = options ?? {};
|
|
101
|
-
return wait({ ...input, agentId: id }, waitInterrupt);
|
|
102
|
-
},
|
|
103
|
-
outputAny: (options) => {
|
|
104
|
-
const { waitInterrupt, ...input } = options ?? {};
|
|
105
|
-
return wait(input, waitInterrupt);
|
|
106
|
-
},
|
|
107
|
-
outputMany: (ids, options) => {
|
|
108
|
-
const { waitInterrupt, ...input } = options ?? {};
|
|
109
|
-
return wait({ ...input, agentIds: ids }, waitInterrupt);
|
|
110
|
-
},
|
|
111
|
-
message: (id, message, options) => action('agent.message', { ...options, agentId: id, message }, (target, call) => controller.message(target.agentId, target.message, {
|
|
112
|
-
...(target.delivery === undefined ? {} : { delivery: target.delivery }),
|
|
113
|
-
signal: call.signal
|
|
114
|
-
})),
|
|
115
|
-
cancel: (id) => action('agent.cancel', { agentId: id }, (target) => controller.cancel(target.agentId)),
|
|
116
|
-
listSessionResources: () => controller.listSessionResources(),
|
|
117
|
-
dispose: () => controller.dispose()
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
export function agentCapabilities(capabilities, available) {
|
|
121
|
-
const values = Object.freeze(capabilities.list().filter((id) => id !== 'agents' || available));
|
|
122
|
-
return Object.freeze({ has: (id) => values.includes(id), list: () => values });
|
|
123
|
-
}
|
|
124
|
-
export function bindCoreAgents(backend, scope, run, hooks) {
|
|
125
|
-
scope.effect(() => backend.own(scope.instanceId));
|
|
126
|
-
const invoke = (key, input) => run((call) => invokeCoreAgentOperation(hooks, key, input, call, async (effectiveInput, effective) => {
|
|
127
|
-
let result;
|
|
128
|
-
switch (key) {
|
|
129
|
-
case 'agent.spawn':
|
|
130
|
-
result = await backend.spawn({
|
|
131
|
-
...resolveAgentSpawn(effectiveInput),
|
|
132
|
-
...(effectiveInput.turnSignal === undefined
|
|
133
|
-
? {}
|
|
134
|
-
: {
|
|
135
|
-
turnSignal: AbortSignal.any([
|
|
136
|
-
scope.signal,
|
|
137
|
-
effectiveInput.turnSignal
|
|
138
|
-
])
|
|
139
|
-
})
|
|
140
|
-
}, effective);
|
|
141
|
-
break;
|
|
142
|
-
case 'agent.wait':
|
|
143
|
-
result = await backend.wait(effectiveInput, effective);
|
|
144
|
-
break;
|
|
145
|
-
case 'agent.message':
|
|
146
|
-
result = await backend.message(effectiveInput, effective);
|
|
147
|
-
break;
|
|
148
|
-
case 'agent.cancel':
|
|
149
|
-
result = await backend.cancel(effectiveInput, effective);
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
return result;
|
|
153
|
-
}), input.signal);
|
|
154
|
-
const target = (input) => {
|
|
155
|
-
if (!input ||
|
|
156
|
-
typeof input !== 'object' ||
|
|
157
|
-
Array.isArray(input) ||
|
|
158
|
-
typeof input.agentId !== 'string' ||
|
|
159
|
-
!input.agentId)
|
|
160
|
-
throw invalid('Agent target is invalid.');
|
|
161
|
-
return { ...input };
|
|
162
|
-
};
|
|
163
|
-
return {
|
|
164
|
-
spawn: (input) => invoke('agent.spawn', { ...input }),
|
|
165
|
-
list: async (input = {}) => {
|
|
166
|
-
if (!input || typeof input !== 'object' || Array.isArray(input))
|
|
167
|
-
throw invalid('Agent list input is invalid.');
|
|
168
|
-
return run(async (call) => structuredClone(await backend.list(call)), input.signal);
|
|
169
|
-
},
|
|
170
|
-
inspect: async (input) => {
|
|
171
|
-
const copied = target(input);
|
|
172
|
-
return run(async (call) => structuredClone(await backend.inspect(copied, call)), copied.signal);
|
|
173
|
-
},
|
|
174
|
-
wait: (async (input) => {
|
|
175
|
-
if (!input || typeof input !== 'object' || Array.isArray(input))
|
|
176
|
-
throw invalid('Agent wait input is invalid.');
|
|
177
|
-
const selection = parseAgentWaitTargets(input);
|
|
178
|
-
return invoke('agent.wait', input.agentId === undefined ? { ...input, ...selection } : target(input));
|
|
179
|
-
}),
|
|
180
|
-
message: async (input) => invoke('agent.message', target(input)),
|
|
181
|
-
cancel: async (input) => invoke('agent.cancel', target(input))
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
function invalid(message) {
|
|
185
|
-
return new MarAgentError('MAR_AGENT_EXTENSION_AGENT_INPUT_INVALID', message);
|
|
186
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ModelMessage, ModelUsage } from '../model/contracts.js';
|
|
2
|
-
export interface CoreCompactDiagnostic {
|
|
3
|
-
readonly modelId: string;
|
|
4
|
-
readonly providerModelId?: string;
|
|
5
|
-
readonly reasoningEffort: string;
|
|
6
|
-
readonly state: 'STARTED' | 'SUCCEEDED' | 'DECLINED' | 'FAILED';
|
|
7
|
-
readonly inputTokensEstimateBefore: number;
|
|
8
|
-
readonly inputTokensEstimateAfter: number;
|
|
9
|
-
readonly modelRequests: number;
|
|
10
|
-
readonly elapsedMs: number;
|
|
11
|
-
readonly reason?: 'INPUT_BUDGET_EXHAUSTED' | 'MODEL_INCOMPLETE' | 'MODEL_FAILED';
|
|
12
|
-
readonly errorCode?: string;
|
|
13
|
-
readonly trigger?: 'manual' | 'automatic';
|
|
14
|
-
readonly causeCode?: string;
|
|
15
|
-
readonly errorReason?: string;
|
|
16
|
-
readonly httpStatus?: number;
|
|
17
|
-
readonly retryable?: boolean;
|
|
18
|
-
readonly transport?: 'HTTP' | 'WEBSOCKET';
|
|
19
|
-
}
|
|
20
|
-
export interface CoreCompactMessage {
|
|
21
|
-
readonly role: 'user' | 'assistant' | 'tool' | 'tool_call';
|
|
22
|
-
readonly content: string;
|
|
23
|
-
readonly callId?: string;
|
|
24
|
-
readonly name?: string;
|
|
25
|
-
readonly arguments?: unknown;
|
|
26
|
-
}
|
|
27
|
-
export interface CoreCompactContext {
|
|
28
|
-
readonly reportModelUsage?: ((usage: import('../model/usage-observer.js').ModelRequestUsage) => Promise<void> | void) | undefined;
|
|
29
|
-
readonly operationId: string;
|
|
30
|
-
readonly reason: 'manual' | 'automatic';
|
|
31
|
-
readonly messages: readonly CoreCompactMessage[];
|
|
32
|
-
readonly focus?: string;
|
|
33
|
-
readonly summaryTokenBudget: number;
|
|
34
|
-
/** Return the Core's default structured handoff contract, independent of model configuration. */
|
|
35
|
-
readonly getPrompt: () => string;
|
|
36
|
-
/** Private, bounded telemetry only; reporting never changes the generation result. */
|
|
37
|
-
readonly reportDiagnostic?: (diagnostic: CoreCompactDiagnostic) => Promise<void>;
|
|
38
|
-
}
|
|
39
|
-
export interface CoreCompactResult {
|
|
40
|
-
readonly summary: string;
|
|
41
|
-
readonly usage?: Readonly<ModelUsage>;
|
|
42
|
-
}
|
|
43
|
-
/** Copy only neutral evidence; a hook never receives provider payloads or history ownership. */
|
|
44
|
-
export declare function compactExtensionMessages(messages: readonly ModelMessage[]): readonly CoreCompactMessage[];
|
|
45
|
-
/** Whitelist scalar facts; never copy arbitrary plugin payloads into the session log. */
|
|
46
|
-
export declare function compactExtensionDiagnostic(value: unknown): CoreCompactDiagnostic | undefined;
|
|
47
|
-
/** Invalid plugin results decline generation rather than altering the checkpoint contract. */
|
|
48
|
-
export declare function compactExtensionResult(value: unknown, budget: number): CoreCompactResult | undefined;
|