maka-agent 0.2.0-dev.3.20260830 → 0.2.0-dev.31.20260913
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/LICENSE +242 -5
- package/README.md +38 -19
- package/README.zh-CN.md +34 -19
- package/RUNTIME_HOST_PEER_DEPENDENCIES.rust.tsv +70 -0
- package/RUNTIME_HOST_PEER_THIRD_PARTY_NOTICES.txt +1839 -140
- package/THIRD_PARTY_NOTICES.txt +477 -258
- package/dist/acp/maka-acp-agent.js +13 -3
- package/dist/acp/prompt-content.js +225 -0
- package/dist/acp/session-configuration.js +143 -0
- package/dist/acp/session-event-mapper.js +103 -0
- package/dist/acp/session-registry.js +1030 -0
- package/dist/acp/stdio-server.js +29 -1
- package/dist/activation-command.js +1 -2
- package/dist/cli-core.js +99 -102
- package/dist/cli-ui-locale.js +7 -2
- package/dist/eval-bundle-path.js +1 -1
- package/dist/mcp-capability-provider.js +8 -11
- package/dist/onboarding-catalog.js +4 -5
- package/dist/pi-transcript-tools.js +9 -2
- package/dist/pi-transcript.js +86 -31
- package/dist/pi-tui-form-interaction.js +497 -0
- package/dist/pi-tui-layout.js +60 -12
- package/dist/pi-tui-mcp-status.js +122 -124
- package/dist/pi-tui-pickers.js +562 -102
- package/dist/pi-tui-runner.js +722 -170
- package/dist/pi-tui-todo.js +221 -0
- package/dist/pi-tui-transcript-viewer.js +134 -7
- package/dist/run-command-core.js +6 -14
- package/dist/runtime-host-access-command.js +37 -4
- package/dist/runtime-host-capability-provider-command.js +16 -2
- package/dist/runtime-host-cli-context.js +300 -80
- package/dist/runtime-host-cli-installation.js +8 -2
- package/dist/runtime-host-cli.js +397 -67
- package/dist/runtime-host-handoff-surface.js +108 -0
- package/dist/runtime-host-help.js +244 -0
- package/dist/runtime-host-installed-update-activator.js +70 -33
- package/dist/runtime-host-installed-update-bootstrap.js +13 -0
- package/dist/runtime-host-installed-update-coordinator.js +44 -96
- package/dist/runtime-host-lifecycle-transaction.js +101 -28
- package/dist/runtime-host-local-handoff.js +215 -41
- package/dist/runtime-host-local-managed-activation.js +84 -0
- package/dist/runtime-host-local-source-retirement.js +119 -0
- package/dist/runtime-host-local-target-activation.js +141 -0
- package/dist/runtime-host-managed-deployment.js +158 -51
- package/dist/runtime-host-managed-lifecycle-manager.js +5 -6
- package/dist/runtime-host-onboarding.js +368 -21
- package/dist/runtime-host-openrc-service.js +469 -0
- package/dist/runtime-host-operator-retirement.js +50 -0
- package/dist/runtime-host-package-deployment.js +36 -2
- package/dist/runtime-host-peer-artifact.js +3 -3
- package/dist/runtime-host-peer-management-command.js +30 -12
- package/dist/runtime-host-peer-mesh-management-command.js +18 -1
- package/dist/runtime-host-plugin-command.js +101 -0
- package/dist/runtime-host-profile-command.js +1 -1
- package/dist/runtime-host-run-command.js +32 -57
- package/dist/runtime-host-service-command.js +3 -3
- package/dist/runtime-host-service-management-command.js +67 -17
- package/dist/runtime-host-service-manager.js +3 -3
- package/dist/runtime-host-session-channel.js +79 -9
- package/dist/runtime-host-session-driver.js +85 -32
- package/dist/runtime-host-session-update.js +62 -0
- package/dist/runtime-host-setup-command.js +103 -65
- package/dist/runtime-host-systemd-service.js +9 -3
- package/dist/runtime-host-task-readiness.js +2 -3
- package/dist/runtime-host-tui-command.js +58 -77
- package/dist/runtime-host-tui-context.js +56 -17
- package/dist/runtime-host-tui-owner.js +226 -0
- package/dist/runtime-host-update-command.js +131 -48
- package/dist/runtime-host-update-discovery.js +1 -0
- package/dist/runtime-host-update-reconciliation.js +7 -7
- package/dist/runtime-host-windows-service.js +166 -0
- package/dist/runtime-host-windows-task-launcher-artifact.js +75 -0
- package/dist/session-export-command.js +72 -0
- package/dist/session-import-command.js +69 -0
- package/dist/tui-autocomplete-layout.js +3 -1
- package/dist/tui-clipboard.js +86 -0
- package/dist/tui-context-refresh.js +103 -0
- package/dist/tui-copy-catalog.js +976 -14
- package/dist/tui-copy-command.js +103 -0
- package/dist/tui-editor-render.js +36 -0
- package/dist/tui-host-owner-copy.js +24 -0
- package/dist/tui-mcp-control.js +87 -10
- package/dist/tui-mcp-remote-publication.js +395 -0
- package/native/runtime-host-peer/prebuilds/darwin-arm64/maka_runtime_host_peer.node +0 -0
- package/native/runtime-host-peer/prebuilds/linux-arm64/maka_runtime_host_peer.node +0 -0
- package/native/runtime-host-peer/prebuilds/linux-x64/maka_runtime_host_peer.node +0 -0
- package/native/runtime-host-peer/prebuilds/win32-x64/maka_runtime_host_peer.node +0 -0
- package/native/runtime-host-windows-task-launcher/prebuilds/win32-x64/maka-runtime-host-task-launcher.exe +0 -0
- package/node_modules/@ai-sdk/anthropic/CHANGELOG.md +117 -0
- package/node_modules/@ai-sdk/anthropic/dist/index.js +937 -411
- package/node_modules/@ai-sdk/anthropic/dist/internal/index.js +335 -160
- package/node_modules/@ai-sdk/anthropic/docs/05-anthropic.mdx +132 -43
- package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/anthropic/package.json +6 -6
- package/node_modules/@ai-sdk/cohere/CHANGELOG.md +105 -0
- package/node_modules/@ai-sdk/cohere/dist/index.js +20 -22
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/cohere/package.json +6 -6
- package/node_modules/@ai-sdk/google/CHANGELOG.md +176 -0
- package/node_modules/@ai-sdk/google/dist/index.js +4441 -2801
- package/node_modules/@ai-sdk/google/dist/internal/index.js +640 -177
- package/node_modules/@ai-sdk/google/docs/15-google.mdx +225 -97
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/google/package.json +6 -6
- package/node_modules/@ai-sdk/open-responses/CHANGELOG.md +81 -0
- package/node_modules/@ai-sdk/open-responses/dist/index.js +570 -22
- package/node_modules/@ai-sdk/open-responses/docs/06-open-responses.mdx +123 -2
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/CHANGELOG.md +38 -0
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/package.json +1 -1
- package/node_modules/@ai-sdk/open-responses/package.json +3 -3
- package/node_modules/@ai-sdk/openai/CHANGELOG.md +184 -0
- package/node_modules/@ai-sdk/openai/dist/index.js +2013 -736
- package/node_modules/@ai-sdk/openai/dist/internal/index.js +1377 -478
- package/node_modules/@ai-sdk/openai/docs/03-openai.mdx +208 -52
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/LICENSE +13 -0
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/openai/package.json +6 -6
- package/node_modules/@ai-sdk/openai-compatible/CHANGELOG.md +126 -0
- package/node_modules/@ai-sdk/openai-compatible/dist/index.js +105 -20
- package/node_modules/@ai-sdk/openai-compatible/dist/internal/index.js +9 -0
- package/node_modules/@ai-sdk/openai-compatible/docs/index.mdx +78 -0
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/openai-compatible/package.json +6 -6
- package/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +92 -0
- package/node_modules/@ai-sdk/provider-utils/dist/index.js +664 -168
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/LICENSE +13 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/provider-utils/package.json +5 -5
- package/node_modules/@earendil-works/pi-tui/README.md +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +36 -3
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +9 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +9 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +24 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/text.js +5 -4
- package/node_modules/@earendil-works/pi-tui/dist/index.js +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +2 -8
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +19 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +37 -2
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +4 -10
- package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +63 -16
- package/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js +105 -45
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@maka/core/dist/agent-run.js +25 -336
- package/node_modules/@maka/core/dist/artifacts.js +32 -23
- package/node_modules/@maka/core/dist/attachments.js +100 -1
- package/node_modules/@maka/core/dist/bot-events.js +18 -63
- package/node_modules/@maka/core/dist/bounded-response.js +71 -0
- package/node_modules/@maka/core/dist/canonical-json.js +27 -0
- package/node_modules/@maka/core/dist/canonical-runtime-event.js +3 -1
- package/node_modules/@maka/core/dist/capabilities.js +35 -0
- package/node_modules/@maka/core/dist/chat-model-choice.js +11 -31
- package/node_modules/@maka/core/dist/client-capability-grant.js +149 -0
- package/node_modules/@maka/core/dist/collaboration.js +12 -0
- package/node_modules/@maka/core/dist/computer-use.js +27 -93
- package/node_modules/@maka/core/dist/connection-error-copy.js +17 -34
- package/node_modules/@maka/core/dist/connection-readiness.js +3 -31
- package/node_modules/@maka/core/dist/deep-research.js +1 -20
- package/node_modules/@maka/core/dist/diagnostic-log.js +18 -7
- package/node_modules/@maka/core/dist/display-redaction.js +18 -0
- package/node_modules/@maka/core/dist/durable-tool-result-projection.js +126 -0
- package/node_modules/@maka/core/dist/events.js +43 -14
- package/node_modules/@maka/core/dist/execution-inspect.js +12 -21
- package/node_modules/@maka/core/dist/foreign-session.js +3 -3
- package/node_modules/@maka/core/dist/goal.js +44 -2
- package/node_modules/@maka/core/dist/health.js +50 -45
- package/node_modules/@maka/core/dist/interaction.js +623 -2
- package/node_modules/@maka/core/dist/llm-connections.js +115 -87
- package/node_modules/@maka/core/dist/local-memory.js +2 -2
- package/node_modules/@maka/core/dist/maka-wordmark.js +23 -0
- package/node_modules/@maka/core/dist/model-call-attempt.js +134 -82
- package/node_modules/@maka/core/dist/model-call-usage-projection.js +0 -183
- package/node_modules/@maka/core/dist/model-catalog.js +191 -322
- package/node_modules/@maka/core/dist/model-facts.js +206 -0
- package/node_modules/@maka/core/dist/model-failure.js +40 -0
- package/node_modules/@maka/core/dist/model-metadata.generated.js +1910 -1875
- package/node_modules/@maka/core/dist/model-metadata.js +217 -209
- package/node_modules/@maka/core/dist/model-projection-transition.js +145 -0
- package/node_modules/@maka/core/dist/model-thinking.js +73 -24
- package/node_modules/@maka/core/dist/model-web-search.js +5 -4
- package/node_modules/@maka/core/dist/models-dev-projection.js +302 -0
- package/node_modules/@maka/core/dist/models-dev-refresh.js +55 -0
- package/node_modules/@maka/core/dist/onboarding.js +2 -1
- package/node_modules/@maka/core/dist/permission-profile.js +17 -0
- package/node_modules/@maka/core/dist/permission.js +0 -1
- package/node_modules/@maka/core/dist/provider-auth.js +47 -291
- package/node_modules/@maka/core/dist/provider-registry.js +115 -373
- package/node_modules/@maka/core/dist/record-schema.js +22 -2
- package/node_modules/@maka/core/dist/redaction.js +78 -40
- package/node_modules/@maka/core/dist/relative-time.js +6 -5
- package/node_modules/@maka/core/dist/run-composition.js +77 -2
- package/node_modules/@maka/core/dist/runtime-boundary.js +182 -66
- package/node_modules/@maka/core/dist/runtime-event-store.js +6 -0
- package/node_modules/@maka/core/dist/runtime-event.js +254 -12
- package/node_modules/@maka/core/dist/runtime-handoff.js +106 -0
- package/node_modules/@maka/core/dist/runtime-invocation.js +223 -0
- package/node_modules/@maka/core/dist/runtime-logical-execution.js +137 -0
- package/node_modules/@maka/core/dist/runtime-policy/connection-catalog-codec.js +198 -44
- package/node_modules/@maka/core/dist/runtime-policy/credential-vault-codec.js +9 -1
- package/node_modules/@maka/core/dist/runtime-policy/model-catalog-entry-codec.js +93 -0
- package/node_modules/@maka/core/dist/runtime-policy/policy-codec.js +118 -4
- package/node_modules/@maka/core/dist/runtime-policy.js +6 -2
- package/node_modules/@maka/core/dist/scheduled-task.js +12 -2
- package/node_modules/@maka/core/dist/session-name.js +0 -1
- package/node_modules/@maka/core/dist/session-send-projection.js +2 -1
- package/node_modules/@maka/core/dist/session-start-mode.js +42 -0
- package/node_modules/@maka/core/dist/session-todo.js +101 -0
- package/node_modules/@maka/core/dist/session-trace.js +5 -1
- package/node_modules/@maka/core/dist/session.js +313 -52
- package/node_modules/@maka/core/dist/settings.js +27 -8
- package/node_modules/@maka/core/dist/slash-command-catalog.js +4 -0
- package/node_modules/@maka/core/dist/task-submission-readiness.js +2 -1
- package/node_modules/@maka/core/dist/text-sanitize.js +27 -2
- package/node_modules/@maka/core/dist/tool-activity-args.js +4 -0
- package/node_modules/@maka/core/dist/tool-quiet-preview.js +20 -10
- package/node_modules/@maka/core/dist/tool-result-archive-evidence.js +22 -0
- package/node_modules/@maka/core/dist/tool-result-record-schema.js +5 -2
- package/node_modules/@maka/core/dist/ui-locale.js +23 -10
- package/node_modules/@maka/core/dist/unified-diff.js +33 -26
- package/node_modules/@maka/core/dist/usage-ledger-merge.js +10 -9
- package/node_modules/@maka/core/dist/usage-record-schema.js +38 -30
- package/node_modules/@maka/core/dist/usage-stats/types.js +2 -0
- package/node_modules/@maka/core/dist/workhub-action-result.js +68 -0
- package/node_modules/@maka/core/dist/workhub-routing.js +126 -0
- package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/index.js +2175 -0
- package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +209 -0
- package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +162 -0
- package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/package.json +21 -0
- package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/printer.js +224 -0
- package/node_modules/@maka/core/node_modules/intl-messageformat/intl-messageformat.iife.js +2807 -0
- package/node_modules/@maka/core/node_modules/intl-messageformat/package.json +40 -0
- package/node_modules/@maka/core/package.json +22 -3
- package/node_modules/@maka/eval/dist/experiment-directory.js +4 -13
- package/node_modules/@maka/eval/dist/external-subject.js +1 -1
- package/node_modules/@maka/eval/dist/harbor-external-subject.js +4 -3
- package/node_modules/@maka/eval/dist/harness-executor.js +3 -2
- package/node_modules/@maka/eval/dist/install-preflight.js +39 -10
- package/node_modules/@maka/eval/dist/process-termination.js +83 -0
- package/node_modules/@maka/eval/dist/toolchain-verification.js +1 -1
- package/node_modules/@maka/eval/harbor/egress-proxy/entrypoint.sh +2 -1
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Client.md +4 -0
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/cache/memory-cache-store.js +1 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/balanced-pool.js +1 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client.js +3 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher.js +10 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/proxy-agent.js +1 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +3 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/cache-handler.js +8 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/redirect-handler.js +8 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/retry-handler.js +83 -11
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dump.js +1 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-agent.js +13 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-utils.js +11 -10
- package/node_modules/@maka/eval/node_modules/undici/lib/web/cookies/parse.js +4 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/request.js +2 -3
- package/node_modules/@maka/eval/node_modules/undici/package.json +3 -3
- package/node_modules/@maka/eval/package.json +1 -1
- package/node_modules/@maka/mcp/dist/form-elicitation.js +213 -0
- package/node_modules/@maka/mcp/dist/index.js +465 -68
- package/node_modules/@maka/mcp/dist/sep-2243.js +3 -3
- package/node_modules/@maka/runtime/dist/agent-graph-timeline.js +12 -11
- package/node_modules/@maka/runtime/dist/agent-run-inspect.js +37 -85
- package/node_modules/@maka/runtime/dist/agent-run-recovery.js +36 -46
- package/node_modules/@maka/runtime/dist/agent-run.js +616 -468
- package/node_modules/@maka/runtime/dist/agent-swarm-status-tool.js +0 -1
- package/node_modules/@maka/runtime/dist/ai-sdk-backend.js +125 -3751
- package/node_modules/@maka/runtime/dist/ai-sdk-compaction-contract.js +6 -1
- package/node_modules/@maka/runtime/dist/ai-sdk-compaction.js +494 -521
- package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +637 -0
- package/node_modules/@maka/runtime/dist/ai-sdk-tool-repair.js +115 -0
- package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +2678 -0
- package/node_modules/@maka/runtime/dist/ask-user-question-tool.js +0 -1
- package/node_modules/@maka/runtime/dist/bash-model-output.js +7 -1
- package/node_modules/@maka/runtime/dist/bash-tail-buffer.js +13 -52
- package/node_modules/@maka/runtime/dist/bots/base-adapter.js +17 -0
- package/node_modules/@maka/runtime/dist/bots/bot-test.js +40 -23
- package/node_modules/@maka/runtime/dist/bots/dingtalk-bridge.js +93 -24
- package/node_modules/@maka/runtime/dist/bots/discord-bridge.js +4 -4
- package/node_modules/@maka/runtime/dist/bots/feishu-bridge.js +28 -25
- package/node_modules/@maka/runtime/dist/bots/qq-bridge.js +6 -4
- package/node_modules/@maka/runtime/dist/bots/slack-bridge.js +8 -7
- package/node_modules/@maka/runtime/dist/bots/telegram-bridge.js +7 -31
- package/node_modules/@maka/runtime/dist/bots/wechat-bridge.js +104 -48
- package/node_modules/@maka/runtime/dist/bots/wecom-bridge.js +45 -42
- package/node_modules/@maka/runtime/dist/bots/ws-bridge-base.js +2 -3
- package/node_modules/@maka/runtime/dist/builtin-tools.js +107 -115
- package/node_modules/@maka/runtime/dist/bundled-skill-catalog.generated.js +1 -1
- package/node_modules/@maka/runtime/dist/child-fd-input.js +3 -2
- package/node_modules/@maka/runtime/dist/code-mode.js +7 -4
- package/node_modules/@maka/runtime/dist/computer-use-codec.js +1 -141
- package/node_modules/@maka/runtime/dist/computer-use-tools.js +27 -106
- package/node_modules/@maka/runtime/dist/context-budget-helpers.js +4 -57
- package/node_modules/@maka/runtime/dist/context-budget-policy.js +26 -65
- package/node_modules/@maka/runtime/dist/context-budget.js +44 -103
- package/node_modules/@maka/runtime/dist/context-diagnostics.js +72 -33
- package/node_modules/@maka/runtime/dist/continuation-replay.js +22 -11
- package/node_modules/@maka/runtime/dist/conversation-copy.js +656 -188
- package/node_modules/@maka/runtime/dist/cua-frame-state.js +1 -69
- package/node_modules/@maka/runtime/dist/deep-research-tools.js +15 -24
- package/node_modules/@maka/runtime/dist/durable-tool-result-projection.js +436 -0
- package/node_modules/@maka/runtime/dist/edit-replace.js +2 -2
- package/node_modules/@maka/runtime/dist/execution-inspect.js +56 -41
- package/node_modules/@maka/runtime/dist/filesystem-executor.js +10 -6
- package/node_modules/@maka/runtime/dist/filesystem-worker/client.js +77 -19
- package/node_modules/@maka/runtime/dist/filesystem-worker/launch-spec.js +66 -55
- package/node_modules/@maka/runtime/dist/filesystem-worker/operations.js +34 -98
- package/node_modules/@maka/runtime/dist/filesystem-worker/protocol.js +25 -10
- package/node_modules/@maka/runtime/dist/filesystem-worker/worker-entry.js +2 -0
- package/node_modules/@maka/runtime/dist/github-copilot-oauth-enrollment.js +267 -0
- package/node_modules/@maka/runtime/dist/glob-search.js +74 -0
- package/node_modules/@maka/runtime/dist/goal-continuation.js +119 -13
- package/node_modules/@maka/runtime/dist/goal-evaluator.js +10 -4
- package/node_modules/@maka/runtime/dist/goal-state.js +7 -0
- package/node_modules/@maka/runtime/dist/grep-search.js +155 -0
- package/node_modules/@maka/runtime/dist/history-compact-checkpoint-coordinator.js +16 -6
- package/node_modules/@maka/runtime/dist/history-compact-checkpoint.js +79 -29
- package/node_modules/@maka/runtime/dist/history-compact-error.js +10 -2
- package/node_modules/@maka/runtime/dist/history-compact-input-fit.js +7 -1
- package/node_modules/@maka/runtime/dist/history-compact-ledger.js +18 -18
- package/node_modules/@maka/runtime/dist/history-compact-summarizer.js +132 -110
- package/node_modules/@maka/runtime/dist/history-compact-summary-validation.js +14 -30
- package/node_modules/@maka/runtime/dist/history-compaction.js +101 -89
- package/node_modules/@maka/runtime/dist/image-file.js +5 -20
- package/node_modules/@maka/runtime/dist/interaction-authority.js +85 -0
- package/node_modules/@maka/runtime/dist/latest-context-snapshot.js +112 -23
- package/node_modules/@maka/runtime/dist/ledger-tool-result-archive-reader.js +164 -0
- package/node_modules/@maka/runtime/dist/local-web-fetch.js +2 -43
- package/node_modules/@maka/runtime/dist/mcp-tools.js +93 -35
- package/node_modules/@maka/runtime/dist/memory-extraction-evidence.js +7 -1
- package/node_modules/@maka/runtime/dist/memory-extraction.js +23 -18
- package/node_modules/@maka/runtime/dist/message-authority.js +9 -0
- package/node_modules/@maka/runtime/dist/model-adapter.js +103 -122
- package/node_modules/@maka/runtime/dist/model-factory.js +34 -81
- package/node_modules/@maka/runtime/dist/model-fetcher.js +64 -10
- package/node_modules/@maka/runtime/dist/model-history.js +291 -159
- package/node_modules/@maka/runtime/dist/model-projection-transition-ledger.js +207 -0
- package/node_modules/@maka/runtime/dist/model-runtime.js +87 -110
- package/node_modules/@maka/runtime/dist/native-web-search-tool.js +2 -1
- package/node_modules/@maka/runtime/dist/oauth-provider-contracts.js +28 -1
- package/node_modules/@maka/runtime/dist/openai-codex-history-compactor.js +28 -73
- package/node_modules/@maka/runtime/dist/openai-responses-websocket.js +2 -5
- package/node_modules/@maka/runtime/dist/opencode-session-header.js +31 -0
- package/node_modules/@maka/runtime/dist/pipe-tail-collector.js +6 -9
- package/node_modules/@maka/runtime/dist/plan-mode.js +0 -65
- package/node_modules/@maka/runtime/dist/plan-tools.js +0 -3
- package/node_modules/@maka/runtime/dist/plugin-agent-service.js +131 -0
- package/node_modules/@maka/runtime/dist/plugin-approval-service.js +33 -0
- package/node_modules/@maka/runtime/dist/plugin-attachment-service.js +53 -0
- package/node_modules/@maka/runtime/dist/plugin-command-service.js +100 -0
- package/node_modules/@maka/runtime/dist/plugin-composition-loader.js +184 -22
- package/node_modules/@maka/runtime/dist/plugin-data-services.js +332 -0
- package/node_modules/@maka/runtime/dist/plugin-fs-service.js +62 -0
- package/node_modules/@maka/runtime/dist/plugin-goal-service.js +61 -0
- package/node_modules/@maka/runtime/dist/plugin-invocation-signal.js +24 -0
- package/node_modules/@maka/runtime/dist/plugin-llm-service.js +85 -0
- package/node_modules/@maka/runtime/dist/plugin-lsp-service.js +94 -0
- package/node_modules/@maka/runtime/dist/plugin-runtime.js +239 -10
- package/node_modules/@maka/runtime/dist/plugin-scope-registry.js +91 -0
- package/node_modules/@maka/runtime/dist/plugin-session-query-service.js +71 -0
- package/node_modules/@maka/runtime/dist/plugin-shell-env-service.js +87 -0
- package/node_modules/@maka/runtime/dist/plugin-shell-service.js +74 -0
- package/node_modules/@maka/runtime/dist/plugin-skill-service.js +93 -0
- package/node_modules/@maka/runtime/dist/plugin-system-prompt-service.js +346 -0
- package/node_modules/@maka/runtime/dist/plugin-tool-service.js +171 -0
- package/node_modules/@maka/runtime/dist/plugin-user-question-service.js +43 -0
- package/node_modules/@maka/runtime/dist/plugin-web-service.js +69 -0
- package/node_modules/@maka/runtime/dist/prior-run-context.js +24 -94
- package/node_modules/@maka/runtime/dist/process-tree-terminator.js +2 -2
- package/node_modules/@maka/runtime/dist/prompt-composition.js +36 -31
- package/node_modules/@maka/runtime/dist/provider-error-classification.js +84 -123
- package/node_modules/@maka/runtime/dist/provider-image-overflow-recovery.js +12 -31
- package/node_modules/@maka/runtime/dist/provider-request-telemetry.js +172 -196
- package/node_modules/@maka/runtime/dist/quiescent-session-snapshot.js +78 -0
- package/node_modules/@maka/runtime/dist/read-page.js +231 -0
- package/node_modules/@maka/runtime/dist/recovery-resolver.js +18 -14
- package/node_modules/@maka/runtime/dist/request-customization-fetch.js +14 -7
- package/node_modules/@maka/runtime/dist/request-projection.js +2 -15
- package/node_modules/@maka/runtime/dist/request-shape.js +187 -365
- package/node_modules/@maka/runtime/dist/ripgrep-executable.js +62 -0
- package/node_modules/@maka/runtime/dist/ripgrep-guidance.js +81 -0
- package/node_modules/@maka/runtime/dist/run-handoff-gate.js +97 -0
- package/node_modules/@maka/runtime/dist/run-trace.js +2 -34
- package/node_modules/@maka/runtime/dist/runtime-continuation-admission.js +1 -1
- package/node_modules/@maka/runtime/dist/runtime-event-backfill.js +107 -65
- package/node_modules/@maka/runtime/dist/runtime-event-read-model.js +415 -234
- package/node_modules/@maka/runtime/dist/runtime-kernel.js +518 -225
- package/node_modules/@maka/runtime/dist/runtime-ledger-repair.js +221 -448
- package/node_modules/@maka/runtime/dist/runtime-read-model.js +95 -198
- package/node_modules/@maka/runtime/dist/runtime-resume.js +162 -126
- package/node_modules/@maka/runtime/dist/sandbox/index.js +0 -1
- package/node_modules/@maka/runtime/dist/sandbox/linux-profile-path.js +7 -1
- package/node_modules/@maka/runtime/dist/sandbox/linux-sandbox.js +20 -17
- package/node_modules/@maka/runtime/dist/sandbox/macos-seatbelt.js +68 -21
- package/node_modules/@maka/runtime/dist/sandbox/sandbox-manager.js +0 -35
- package/node_modules/@maka/runtime/dist/sandbox/windows-sandbox.js +0 -12
- package/node_modules/@maka/runtime/dist/scheduled-task-tools.js +3 -0
- package/node_modules/@maka/runtime/dist/session-event-runtime-mapper.js +62 -21
- package/node_modules/@maka/runtime/dist/session-export.js +178 -0
- package/node_modules/@maka/runtime/dist/session-import.js +100 -0
- package/node_modules/@maka/runtime/dist/session-manager.js +672 -861
- package/node_modules/@maka/runtime/dist/session-projection-helpers.js +16 -28
- package/node_modules/@maka/runtime/dist/session-recap.js +87 -15
- package/node_modules/@maka/runtime/dist/session-todo-tools.js +67 -0
- package/node_modules/@maka/runtime/dist/session-trace-projection.js +25 -30
- package/node_modules/@maka/runtime/dist/shell-detect.js +3 -7
- package/node_modules/@maka/runtime/dist/shell-exec.js +7 -25
- package/node_modules/@maka/runtime/dist/shell-run-contract.js +0 -1
- package/node_modules/@maka/runtime/dist/shell-run-manager.js +11 -46
- package/node_modules/@maka/runtime/dist/shell-run-tool-result.js +14 -7
- package/node_modules/@maka/runtime/dist/shell-tools.js +84 -14
- package/node_modules/@maka/runtime/dist/stream-graph-coordinator.js +64 -13
- package/node_modules/@maka/runtime/dist/stream-graph-handoff.js +6 -1
- package/node_modules/@maka/runtime/dist/stream-graph-projection.js +18 -15
- package/node_modules/@maka/runtime/dist/stream-graph-read-model.js +5 -0
- package/node_modules/@maka/runtime/dist/stream-graph-supervisor-tools.js +0 -8
- package/node_modules/@maka/runtime/dist/stream-usage-fallback-fetch.js +74 -0
- package/node_modules/@maka/runtime/dist/subagent-tools.js +2 -80
- package/node_modules/@maka/runtime/dist/subscription-credentials.js +51 -4
- package/node_modules/@maka/runtime/dist/subscription-model-fetch.js +51 -11
- package/node_modules/@maka/runtime/dist/system-prompt/main-session-prompt.js +21 -2
- package/node_modules/@maka/runtime/dist/system-prompt/workspace-instructions.js +11 -6
- package/node_modules/@maka/runtime/dist/tavily-search.js +8 -2
- package/node_modules/@maka/runtime/dist/telemetry/model-pricing.generated.js +93 -83
- package/node_modules/@maka/runtime/dist/terminal-run-commit.js +37 -172
- package/node_modules/@maka/runtime/dist/test-connection.js +36 -30
- package/node_modules/@maka/runtime/dist/text-line-window.js +49 -0
- package/node_modules/@maka/runtime/dist/tool-activation-identity.js +41 -0
- package/node_modules/@maka/runtime/dist/tool-availability.js +85 -8
- package/node_modules/@maka/runtime/dist/tool-output.js +36 -13
- package/node_modules/@maka/runtime/dist/tool-result-archive-capability.js +24 -36
- package/node_modules/@maka/runtime/dist/tool-result-archive-encoding.js +38 -0
- package/node_modules/@maka/runtime/dist/tool-result-archive-resource.js +93 -245
- package/node_modules/@maka/runtime/dist/tool-result-archive-transition.js +186 -0
- package/node_modules/@maka/runtime/dist/tool-result-archive.js +50 -173
- package/node_modules/@maka/runtime/dist/tool-runtime.js +380 -126
- package/node_modules/@maka/runtime/dist/unified-diff.js +40 -10
- package/node_modules/@maka/runtime/dist/web-fetch-tool.js +4 -2
- package/node_modules/@maka/runtime/dist/workers/filesystem-worker.js +12332 -4656
- package/node_modules/@maka/runtime/dist/workspace-executor.js +22 -30
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/LICENSE +13 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +551 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/package.json +78 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/CHANGELOG.md +3269 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/LICENSE +13 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/dist/index.js +3835 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +1610 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/package.json +80 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/LICENSE +13 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/README.md +44 -8
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/package.json +4 -4
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +39 -3
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js +4 -0
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/package.json +4 -4
- package/node_modules/@maka/runtime/node_modules/ai/CHANGELOG.md +10271 -0
- package/node_modules/@maka/runtime/node_modules/ai/LICENSE +13 -0
- package/node_modules/@maka/runtime/node_modules/ai/dist/index.js +20146 -0
- package/node_modules/@maka/runtime/node_modules/ai/dist/internal/index.js +3690 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +185 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/04-loop-control.mdx +517 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +413 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +338 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +815 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +525 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +1512 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +680 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +371 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +333 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +163 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +180 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/42-batch.mdx +372 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +241 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +855 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/index.mdx +137 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +683 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +69 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +47 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +826 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +406 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +216 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +582 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/06-advanced/04-caching.mdx +182 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +117 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +3267 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +4303 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +330 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +332 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +331 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +253 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +125 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +1102 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/20-start-batch.mdx +154 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/21-get-batch-status.mdx +133 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/22-get-batch-results.mdx +109 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/23-cancel-batch.mdx +96 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/24-list-batches.mdx +121 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +368 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +331 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +147 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +250 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +493 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +256 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +199 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +125 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +1035 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +361 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/03-generate-video.mdx +157 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +32 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +31 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +43 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-stream-provider-error.mdx +52 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-tool-choice-violation-error.mdx +38 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +43 -0
- package/node_modules/@maka/runtime/node_modules/ai/package.json +127 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Client.md +4 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/cache/memory-cache-store.js +1 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/balanced-pool.js +1 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client.js +3 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher.js +10 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/proxy-agent.js +1 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +3 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/cache-handler.js +8 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/redirect-handler.js +8 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/retry-handler.js +83 -11
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dump.js +1 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-agent.js +13 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-utils.js +11 -10
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/cookies/parse.js +4 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/request.js +2 -3
- package/node_modules/@maka/runtime/node_modules/undici/package.json +3 -3
- package/node_modules/@maka/runtime/package.json +41 -15
- package/node_modules/@maka/runtime-host/dist/adapter/session-projector.js +75 -38
- package/node_modules/@maka/runtime-host/dist/candidate-entry.js +10 -2
- package/node_modules/@maka/runtime-host/dist/candidate-launch-owner-guard.js +13 -0
- package/node_modules/@maka/runtime-host/dist/client/catalog-reader.js +64 -25
- package/node_modules/@maka/runtime-host/dist/client/client-capability-channel.js +87 -3
- package/node_modules/@maka/runtime-host/dist/client/connect-or-spawn.js +13 -2
- package/node_modules/@maka/runtime-host/dist/client/connection.js +144 -51
- package/node_modules/@maka/runtime-host/dist/client/host-handoff-copy.js +238 -0
- package/node_modules/@maka/runtime-host/dist/client/host-handoff.js +309 -0
- package/node_modules/@maka/runtime-host/dist/client/host-profile.js +483 -94
- package/node_modules/@maka/runtime-host/dist/client/host-retirement.js +28 -5
- package/node_modules/@maka/runtime-host/dist/client/index.js +12 -8
- package/node_modules/@maka/runtime-host/dist/client/launcher.js +12 -3
- package/node_modules/@maka/runtime-host/dist/client/oauth-presentation.js +1 -1
- package/node_modules/@maka/runtime-host/dist/client/owner-connection-code.js +38 -4
- package/node_modules/@maka/runtime-host/dist/client/peer-client.js +408 -25
- package/node_modules/@maka/runtime-host/dist/client/process-identity.js +73 -0
- package/node_modules/@maka/runtime-host/dist/client/reconnect-lifecycle.js +72 -7
- package/node_modules/@maka/runtime-host/dist/client/reconnecting-connection.js +11 -0
- package/node_modules/@maka/runtime-host/dist/client/registered-host-termination.js +107 -0
- package/node_modules/@maka/runtime-host/dist/client/remote-compatibility-error.js +2 -0
- package/node_modules/@maka/runtime-host/dist/client/session-subscription.js +46 -5
- package/node_modules/@maka/runtime-host/dist/client/ssh-operator-activation.js +48 -11
- package/node_modules/@maka/runtime-host/dist/client/wsl-control.js +0 -8
- package/node_modules/@maka/runtime-host/dist/client/wsl-environment.js +12 -8
- package/node_modules/@maka/runtime-host/dist/client-capability-entity-id.js +27 -0
- package/node_modules/@maka/runtime-host/dist/control/endpoint.js +1 -3
- package/node_modules/@maka/runtime-host/dist/node-error.js +22 -0
- package/node_modules/@maka/runtime-host/dist/operator/access-management-frame.js +10 -1
- package/node_modules/@maka/runtime-host/dist/operator/index.js +5 -2
- package/node_modules/@maka/runtime-host/dist/operator/managed-deployment.js +17 -8
- package/node_modules/@maka/runtime-host/dist/operator/operator-command.js +110 -0
- package/node_modules/@maka/runtime-host/dist/operator/peer-management-frame.js +2 -0
- package/node_modules/@maka/runtime-host/dist/operator/peer-mesh-management-frame.js +14 -0
- package/node_modules/@maka/runtime-host/dist/operator/retirement-cancellation.js +20 -0
- package/node_modules/@maka/runtime-host/dist/operator/service-management-frame.js +5 -6
- package/node_modules/@maka/runtime-host/dist/operator/setup-frame.js +32 -6
- package/node_modules/@maka/runtime-host/dist/peer-mesh/display-name.js +30 -0
- package/node_modules/@maka/runtime-host/dist/peer-mesh/index.js +3 -3
- package/node_modules/@maka/runtime-host/dist/peer-mesh/limits.js +1 -2
- package/node_modules/@maka/runtime-host/dist/peer-mesh/model.js +72 -73
- package/node_modules/@maka/runtime-host/dist/peer-mesh/node.js +1334 -418
- package/node_modules/@maka/runtime-host/dist/peer-mesh/owner.js +33 -68
- package/node_modules/@maka/runtime-host/dist/peer-mesh/store.js +147 -52
- package/node_modules/@maka/runtime-host/dist/peer-reachability/index.js +21 -0
- package/node_modules/@maka/runtime-host/dist/peer-reachability/model.js +202 -0
- package/node_modules/@maka/runtime-host/dist/peer-reachability/owner.js +118 -0
- package/node_modules/@maka/runtime-host/dist/peer-reachability/publisher.js +243 -0
- package/node_modules/@maka/runtime-host/dist/protocol/agent-graph.js +4 -1
- package/node_modules/@maka/runtime-host/dist/protocol/artifact.js +11 -20
- package/node_modules/@maka/runtime-host/dist/protocol/client-capability.js +233 -41
- package/node_modules/@maka/runtime-host/dist/protocol/configuration.js +55 -9
- package/node_modules/@maka/runtime-host/dist/protocol/connection-catalog-change.js +26 -0
- package/node_modules/@maka/runtime-host/dist/protocol/connection-effects.js +15 -8
- package/node_modules/@maka/runtime-host/dist/protocol/external-agent-setup.js +149 -0
- package/node_modules/@maka/runtime-host/dist/protocol/external-session.js +4 -0
- package/node_modules/@maka/runtime-host/dist/protocol/host-resources.js +253 -0
- package/node_modules/@maka/runtime-host/dist/protocol/host-status.js +49 -11
- package/node_modules/@maka/runtime-host/dist/protocol/index.js +206 -2
- package/node_modules/@maka/runtime-host/dist/protocol/message.js +14 -9
- package/node_modules/@maka/runtime-host/dist/protocol/network-proxy.js +1 -7
- package/node_modules/@maka/runtime-host/dist/protocol/oauth.js +104 -8
- package/node_modules/@maka/runtime-host/dist/protocol/operations.js +22 -5
- package/node_modules/@maka/runtime-host/dist/protocol/peer-mesh.js +72 -32
- package/node_modules/@maka/runtime-host/dist/protocol/plan.js +1 -0
- package/node_modules/@maka/runtime-host/dist/protocol/plugin-platform.js +559 -0
- package/node_modules/@maka/runtime-host/dist/protocol/project-catalog.js +2 -2
- package/node_modules/@maka/runtime-host/dist/protocol/runtime-policy.js +81 -26
- package/node_modules/@maka/runtime-host/dist/protocol/scheduled-task.js +19 -6
- package/node_modules/@maka/runtime-host/dist/protocol/session-bundle.js +100 -0
- package/node_modules/@maka/runtime-host/dist/protocol/session-catalog.js +1 -1
- package/node_modules/@maka/runtime-host/dist/protocol/session-collaboration.js +68 -4
- package/node_modules/@maka/runtime-host/dist/protocol/session-continuity.js +44 -23
- package/node_modules/@maka/runtime-host/dist/protocol/session-retirement.js +30 -3
- package/node_modules/@maka/runtime-host/dist/protocol/session-revision.js +11 -2
- package/node_modules/@maka/runtime-host/dist/protocol/session-todo.js +53 -0
- package/node_modules/@maka/runtime-host/dist/protocol/session-transcript.js +3 -7
- package/node_modules/@maka/runtime-host/dist/protocol/session-turns.js +29 -58
- package/node_modules/@maka/runtime-host/dist/protocol/skill-catalog.js +2 -1
- package/node_modules/@maka/runtime-host/dist/protocol/turn.js +25 -14
- package/node_modules/@maka/runtime-host/dist/protocol/usage-pricing.js +20 -2
- package/node_modules/@maka/runtime-host/dist/protocol/workhub-coordination.js +212 -75
- package/node_modules/@maka/runtime-host/dist/server/access-authority.js +87 -22
- package/node_modules/@maka/runtime-host/dist/server/access-credential-metadata.js +4 -2
- package/node_modules/@maka/runtime-host/dist/server/access-credential-store.js +135 -48
- package/node_modules/@maka/runtime-host/dist/server/acp/antigravity-install.js +242 -0
- package/node_modules/@maka/runtime-host/dist/server/acp/antigravity.js +154 -0
- package/node_modules/@maka/runtime-host/dist/server/acp/connection.js +116 -0
- package/node_modules/@maka/runtime-host/dist/server/agent-graph-coordinator.js +0 -3
- package/node_modules/@maka/runtime-host/dist/server/agent-graph-execution-coordinator.js +1 -2
- package/node_modules/@maka/runtime-host/dist/server/artifact-coordinator.js +19 -22
- package/node_modules/@maka/runtime-host/dist/server/bootstrap-runtime-policy.js +10 -4
- package/node_modules/@maka/runtime-host/dist/server/candidate.js +3 -0
- package/node_modules/@maka/runtime-host/dist/server/canonical-session-projection.js +2 -1
- package/node_modules/@maka/runtime-host/dist/server/canonical-turn-snapshot.js +34 -24
- package/node_modules/@maka/runtime-host/dist/server/canonical-usage-reader.js +24 -11
- package/node_modules/@maka/runtime-host/dist/server/child-agent-composition.js +1 -1
- package/node_modules/@maka/runtime-host/dist/server/client-capability-coordinator.js +282 -30
- package/node_modules/@maka/runtime-host/dist/server/client-capability-invocation-broker.js +258 -51
- package/node_modules/@maka/runtime-host/dist/server/client-capability-provider-id.js +31 -0
- package/node_modules/@maka/runtime-host/dist/server/client-capability-recovery.js +10 -7
- package/node_modules/@maka/runtime-host/dist/server/configuration-coordinator.js +20 -1
- package/node_modules/@maka/runtime-host/dist/server/connection-effect-coordinator.js +43 -18
- package/node_modules/@maka/runtime-host/dist/server/connection-session.js +45 -14
- package/node_modules/@maka/runtime-host/dist/server/daily-review-coordinator.js +164 -82
- package/node_modules/@maka/runtime-host/dist/server/deep-research-coordinator.js +1 -1
- package/node_modules/@maka/runtime-host/dist/server/execution-artifacts.js +59 -36
- package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +1076 -176
- package/node_modules/@maka/runtime-host/dist/server/execution-inspect-coordinator.js +35 -29
- package/node_modules/@maka/runtime-host/dist/server/execution-model-authority.js +112 -18
- package/node_modules/@maka/runtime-host/dist/server/execution-model-composition.js +85 -73
- package/node_modules/@maka/runtime-host/dist/server/execution-service.js +49 -24
- package/node_modules/@maka/runtime-host/dist/server/extension-bundle.js +249 -0
- package/node_modules/@maka/runtime-host/dist/server/extension-package-manifest.js +262 -0
- package/node_modules/@maka/runtime-host/dist/server/external-agent-setup-coordinator.js +190 -0
- package/node_modules/@maka/runtime-host/dist/server/external-session-coordinator.js +13 -10
- package/node_modules/@maka/runtime-host/dist/server/failure-diagnostic.js +24 -0
- package/node_modules/@maka/runtime-host/dist/server/goal-coordinator.js +134 -35
- package/node_modules/@maka/runtime-host/dist/server/host-change-feed.js +11 -0
- package/node_modules/@maka/runtime-host/dist/server/host-kernel.js +163 -27
- package/node_modules/@maka/runtime-host/dist/server/host-residency-registry.js +41 -20
- package/node_modules/@maka/runtime-host/dist/server/host-resource-collector.js +223 -0
- package/node_modules/@maka/runtime-host/dist/server/host-resource-probe-main.js +44 -0
- package/node_modules/@maka/runtime-host/dist/server/host-resource-probe.js +83 -0
- package/node_modules/@maka/runtime-host/dist/server/host-session-availability.js +5 -2
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-admission-registry.js +3 -1
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-projection.js +12 -7
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-recovery.js +131 -69
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-tool-profile.js +64 -4
- package/node_modules/@maka/runtime-host/dist/server/index.js +5 -0
- package/node_modules/@maka/runtime-host/dist/server/interaction-coordinator.js +370 -34
- package/node_modules/@maka/runtime-host/dist/server/interaction-projection.js +36 -1
- package/node_modules/@maka/runtime-host/dist/server/interactive-run-composer.js +173 -109
- package/node_modules/@maka/runtime-host/dist/server/json-array-page-budget.js +48 -0
- package/node_modules/@maka/runtime-host/dist/server/listener-set.js +6 -4
- package/node_modules/@maka/runtime-host/dist/server/memory-projection.js +14 -15
- package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +339 -66
- package/node_modules/@maka/runtime-host/dist/server/model-metadata-refresh.js +96 -0
- package/node_modules/@maka/runtime-host/dist/server/network-proxy-coordinator.js +0 -1
- package/node_modules/@maka/runtime-host/dist/server/oauth-coordinator.js +169 -45
- package/node_modules/@maka/runtime-host/dist/server/oauth-execution-authority.js +20 -3
- package/node_modules/@maka/runtime-host/dist/server/operation-dispatcher.js +47 -125
- package/node_modules/@maka/runtime-host/dist/server/peer-listener.js +131 -48
- package/node_modules/@maka/runtime-host/dist/server/peer-mesh-authority.js +20 -1
- package/node_modules/@maka/runtime-host/dist/server/plan-coordinator.js +11 -5
- package/node_modules/@maka/runtime-host/dist/server/plugin-composition-patch.js +58 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-composition-store.js +141 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-data-runtime.js +234 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-package-loader.js +130 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-package-store.js +528 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-platform-coordinator.js +263 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-platform.js +1148 -0
- package/node_modules/@maka/runtime-host/dist/server/project-catalog-coordinator.js +10 -12
- package/node_modules/@maka/runtime-host/dist/server/project-directory-authority.js +4 -3
- package/node_modules/@maka/runtime-host/dist/server/root-admission-owner.js +32 -7
- package/node_modules/@maka/runtime-host/dist/server/root-turn-coordinator.js +690 -188
- package/node_modules/@maka/runtime-host/dist/server/runtime-policy-coordinator.js +72 -18
- package/node_modules/@maka/runtime-host/dist/server/runtime-resource-coordinator.js +11 -8
- package/node_modules/@maka/runtime-host/dist/server/runtime-resource-projection.js +12 -18
- package/node_modules/@maka/runtime-host/dist/server/scheduled-task-coordinator.js +150 -41
- package/node_modules/@maka/runtime-host/dist/server/serial-outbound-writer.js +46 -4
- package/node_modules/@maka/runtime-host/dist/server/session-admission-gate.js +21 -1
- package/node_modules/@maka/runtime-host/dist/server/session-bundle-coordinator.js +163 -0
- package/node_modules/@maka/runtime-host/dist/server/session-catalog-coordinator.js +247 -33
- package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +112 -48
- package/node_modules/@maka/runtime-host/dist/server/session-effect-coordinator.js +1 -1
- package/node_modules/@maka/runtime-host/dist/server/session-retirement-coordinator.js +66 -14
- package/node_modules/@maka/runtime-host/dist/server/session-revision-coordinator.js +113 -67
- package/node_modules/@maka/runtime-host/dist/server/session-revision-graph-references.js +18 -10
- package/node_modules/@maka/runtime-host/dist/server/session-sidecar-purge.js +2 -1
- package/node_modules/@maka/runtime-host/dist/server/session-todo-coordinator.js +77 -0
- package/node_modules/@maka/runtime-host/dist/server/session-transcript-pager.js +34 -5
- package/node_modules/@maka/runtime-host/dist/server/session-transcript-reader.js +404 -87
- package/node_modules/@maka/runtime-host/dist/server/session-turn-access-request-coordinator.js +43 -26
- package/node_modules/@maka/runtime-host/dist/server/shared-session-transcript.js +4 -1
- package/node_modules/@maka/runtime-host/dist/server/skill-catalog-coordinator.js +18 -2
- package/node_modules/@maka/runtime-host/dist/server/skill-catalog-repository.js +16 -17
- package/node_modules/@maka/runtime-host/dist/server/storage-maintenance.js +109 -0
- package/node_modules/@maka/runtime-host/dist/server/usage-pricing-coordinator.js +79 -35
- package/node_modules/@maka/runtime-host/dist/server/web-fetch-tool.js +1 -1
- package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-action-gate.js +566 -37
- package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-coordinator.js +590 -131
- package/node_modules/@maka/runtime-host/dist/server/workhub-message-attachments.js +46 -0
- package/node_modules/@maka/runtime-host/dist/transport/framed-byte-stream-transport.js +4 -1
- package/node_modules/@maka/runtime-host/dist/transport/local-ipc-framing.js +4 -2
- package/node_modules/@maka/runtime-host/dist/transport/peer-native.js +112 -24
- package/node_modules/@maka/runtime-host/dist/transport/resumable-peer-stream.js +469 -0
- package/node_modules/@maka/runtime-host/dist/webrtc-stun-policy.js +114 -0
- package/node_modules/@maka/runtime-host/package.json +7 -1
- package/node_modules/@maka/storage/dist/agent-run-store.js +355 -238
- package/node_modules/@maka/storage/dist/artifact-attachments.js +66 -18
- package/node_modules/@maka/storage/dist/artifact-metadata-codec.js +24 -28
- package/node_modules/@maka/storage/dist/artifact-store.js +203 -767
- package/node_modules/@maka/storage/dist/artifact-stores.js +6 -10
- package/node_modules/@maka/storage/dist/artifact-writer-lock.js +1 -1
- package/node_modules/@maka/storage/dist/atomic-file-write.js +74 -0
- package/node_modules/@maka/storage/dist/claude-code-session-adapter.js +0 -5
- package/node_modules/@maka/storage/dist/codex-session-adapter.js +298 -198
- package/node_modules/@maka/storage/dist/context-offload-snapshot.js +397 -0
- package/node_modules/@maka/storage/dist/context-value-mutation-gate.js +59 -0
- package/node_modules/@maka/storage/dist/conversation-operational-state.js +7 -0
- package/node_modules/@maka/storage/dist/credential-store.js +15 -63
- package/node_modules/@maka/storage/dist/execution-record-codec.js +1 -22
- package/node_modules/@maka/storage/dist/execution-stores.js +38 -21
- package/node_modules/@maka/storage/dist/file-lifetime-owner.js +30 -2
- package/node_modules/@maka/storage/dist/file-session-repository.js +1012 -0
- package/node_modules/@maka/storage/dist/git-exec.js +61 -0
- package/node_modules/@maka/storage/dist/git-worktree-child-executor.js +8 -35
- package/node_modules/@maka/storage/dist/goal-authority.js +2 -2
- package/node_modules/@maka/storage/dist/interaction-store-public.js +1 -1
- package/node_modules/@maka/storage/dist/interaction-store.js +188 -3
- package/node_modules/@maka/storage/dist/legacy-run-header.js +327 -0
- package/node_modules/@maka/storage/dist/mcp-config-store.js +10 -25
- package/node_modules/@maka/storage/dist/message-admission-store.js +3 -0
- package/node_modules/@maka/storage/dist/model-call-ledger.js +199 -32
- package/node_modules/@maka/storage/dist/model-call-usage-sql.js +136 -0
- package/node_modules/@maka/storage/dist/model-facts-store.js +56 -0
- package/node_modules/@maka/storage/dist/opencode-session-adapter.js +0 -4
- package/node_modules/@maka/storage/dist/operational-state-backup.js +15 -11
- package/node_modules/@maka/storage/dist/operational-state-store-public.js +1 -1
- package/node_modules/@maka/storage/dist/operational-state-store.js +27 -2
- package/node_modules/@maka/storage/dist/production-session-snapshot.js +761 -0
- package/node_modules/@maka/storage/dist/project-catalog.js +8 -23
- package/node_modules/@maka/storage/dist/quiescent-session-snapshot.js +1154 -0
- package/node_modules/@maka/storage/dist/runtime-event-invariants.js +2 -2
- package/node_modules/@maka/storage/dist/runtime-event-persistence.js +6 -0
- package/node_modules/@maka/storage/dist/runtime-policy/connection-catalog-document.js +182 -62
- package/node_modules/@maka/storage/dist/runtime-policy/coordinator.js +540 -117
- package/node_modules/@maka/storage/dist/runtime-policy/document-io.js +22 -16
- package/node_modules/@maka/storage/dist/runtime-policy/oauth-login-receipt-document.js +207 -0
- package/node_modules/@maka/storage/dist/runtime-policy/onboarding-transaction.js +148 -5
- package/node_modules/@maka/storage/dist/runtime-policy/policy-document.js +10 -4
- package/node_modules/@maka/storage/dist/runtime-policy-stores.js +7 -3
- package/node_modules/@maka/storage/dist/runtime-transcript-query.js +321 -0
- package/node_modules/@maka/storage/dist/scheduled-task-store.js +256 -283
- package/node_modules/@maka/storage/dist/session-bundle-manifest.js +5 -17
- package/node_modules/@maka/storage/dist/session-bundle-policy.js +1031 -34
- package/node_modules/@maka/storage/dist/session-bundle-ustar.js +12 -0
- package/node_modules/@maka/storage/dist/session-copy-cleanup.js +12 -7
- package/node_modules/@maka/storage/dist/session-message-projection.js +24 -5
- package/node_modules/@maka/storage/dist/session-repository.js +767 -0
- package/node_modules/@maka/storage/dist/session-store.js +110 -115
- package/node_modules/@maka/storage/dist/session-todo-authority.js +106 -0
- package/node_modules/@maka/storage/dist/session-todo-store.js +169 -0
- package/node_modules/@maka/storage/dist/settings-store.js +24 -29
- package/node_modules/@maka/storage/dist/sqlite-artifact-metadata.js +51 -17
- package/node_modules/@maka/storage/dist/sqlite-artifact-schema.js +55 -5
- package/node_modules/@maka/storage/dist/sqlite-context-offload-store.js +42 -12
- package/node_modules/@maka/storage/dist/sqlite-core-execution-schema.js +45 -2
- package/node_modules/@maka/storage/dist/sqlite-runtime-schema.js +367 -1
- package/node_modules/@maka/storage/dist/sqlite-runtime-store.js +439 -82
- package/node_modules/@maka/storage/dist/sqlite-session-metadata-schema.js +63 -5
- package/node_modules/@maka/storage/dist/sqlite-session-metadata-store.js +493 -914
- package/node_modules/@maka/storage/dist/sqlite-usage-schema.js +200 -20
- package/node_modules/@maka/storage/dist/sqlite-usage-store.js +29 -6
- package/node_modules/@maka/storage/dist/sqlite-workflow-schema.js +5 -8
- package/node_modules/@maka/storage/dist/stable-storage.js +16 -2
- package/node_modules/@maka/storage/dist/storage-id.js +28 -0
- package/node_modules/@maka/storage/dist/storage-writer-composition.js +3 -3
- package/node_modules/@maka/storage/dist/tool-result-archive-evidence.js +138 -0
- package/node_modules/@maka/storage/dist/usage-stores.js +9 -3
- package/node_modules/@maka/storage/dist/work-board-store.js +4 -4
- package/node_modules/@maka/storage/dist/workspace-identity.js +2 -15
- package/node_modules/@maka/storage/dist/workspace-version-authority-internal.js +1 -8
- package/node_modules/@maka/storage/package.json +8 -2
- package/node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs +22 -5
- package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs +22 -5
- package/node_modules/@slack/types/dist/events/agent.js +3 -0
- package/node_modules/@slack/types/dist/events/index.js +44 -0
- package/node_modules/@slack/types/package.json +47 -0
- package/node_modules/@slack/web-api/README.md +382 -0
- package/node_modules/@slack/web-api/dist/methods.js +1636 -0
- package/node_modules/@slack/web-api/dist/types/request/agents.js +3 -0
- package/node_modules/@slack/web-api/dist/types/request/blocks.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/AdminUsersGetExpirationResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/AgentsSessionsRenameResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/AgentsSessionsSetStatusResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/BlocksValidateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +48 -0
- package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +67 -0
- package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +72 -0
- package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +48 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +11 -0
- package/node_modules/@slack/web-api/node_modules/@types/retry/LICENSE +21 -0
- package/node_modules/@slack/web-api/node_modules/@types/retry/README.md +15 -0
- package/node_modules/@slack/web-api/node_modules/@types/retry/package.json +30 -0
- package/node_modules/@slack/web-api/package.json +71 -0
- package/node_modules/@types/node/README.md +1 -1
- package/node_modules/@types/node/package.json +2 -2
- package/node_modules/balanced-match/LICENSE.md +23 -0
- package/node_modules/balanced-match/README.md +57 -0
- package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/balanced-match/package.json +68 -0
- package/node_modules/brace-expansion/LICENSE +23 -0
- package/node_modules/brace-expansion/README.md +105 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +289 -0
- package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/brace-expansion/dist/esm/index.js +285 -0
- package/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/brace-expansion/package.json +64 -0
- package/node_modules/fast-uri/index.js +215 -47
- package/node_modules/fast-uri/lib/schemes.js +9 -4
- package/node_modules/fast-uri/lib/utils.js +396 -92
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fs-native-extensions/package.json +1 -1
- package/node_modules/fs-native-extensions/prebuilds/android-arm/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/android-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/android-ia32/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/android-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/prebuilds/ios-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/ios-arm64-simulator/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/ios-x64-simulator/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/linux-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/linux-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/src/win32.c +50 -11
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1203 -0
- package/node_modules/glob/dist/commonjs/glob.js +248 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.js +223 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/esm/glob.js +244 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.min.js +4 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.js +219 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/package.json +98 -0
- package/node_modules/minimatch/LICENSE.md +55 -0
- package/node_modules/minimatch/README.md +528 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/minimatch/package.json +73 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +636 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/path-scurry/node_modules/lru-cache/README.md +469 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
- package/node_modules/path-scurry/package.json +72 -0
- package/node_modules/qs/.github/THREAT_MODEL.md +3 -3
- package/node_modules/qs/CHANGELOG.md +15 -0
- package/node_modules/qs/README.md +19 -1
- package/node_modules/qs/dist/qs.js +21 -21
- package/node_modules/qs/eslint.config.mjs +1 -1
- package/node_modules/qs/lib/parse.js +3 -4
- package/node_modules/qs/lib/stringify.js +23 -8
- package/node_modules/qs/lib/utils.js +10 -3
- package/node_modules/qs/package.json +4 -4
- package/node_modules/run/README.md +109 -18
- package/node_modules/run/THIRD_PARTY_NOTICES.md +11 -11
- package/node_modules/run/dist/continuation-validation.js +116 -1
- package/node_modules/run/dist/errors.js +12 -2
- package/node_modules/run/dist/host-function-invocation.js +2 -1
- package/node_modules/run/dist/run.js +30 -4
- package/node_modules/run/dist/runtime/guest-serde-source.js +1 -1
- package/node_modules/run/dist/runtime/guest-sources.js +214 -56
- package/node_modules/run/dist/runtime/manager.js +575 -116
- package/node_modules/run/dist/runtime/max-workers.js +8 -4
- package/node_modules/run/dist/runtime/protocol-validation.js +20 -7
- package/node_modules/run/dist/runtime/sync-bridge-protocol.js +135 -0
- package/node_modules/run/dist/runtime/worker-source.js +1 -1
- package/node_modules/run/dist/utils/options.js +7 -0
- package/node_modules/run/dist/utils/promise-with-resolvers.js +13 -1
- package/node_modules/run/dist/utils/serde.js +1 -7
- package/node_modules/run/dist/utils/source-cache.js +83 -13
- package/node_modules/run/package.json +6 -4
- package/node_modules/systeminformation/LICENSE +20 -0
- package/node_modules/systeminformation/README.md +1251 -0
- package/node_modules/systeminformation/lib/audio.js +335 -0
- package/node_modules/systeminformation/lib/battery.js +334 -0
- package/node_modules/systeminformation/lib/bluetooth.js +315 -0
- package/node_modules/systeminformation/lib/bluetoothVendors.js +1138 -0
- package/node_modules/systeminformation/lib/cli.js +100 -0
- package/node_modules/systeminformation/lib/cpu.js +2285 -0
- package/node_modules/systeminformation/lib/docker.js +791 -0
- package/node_modules/systeminformation/lib/dockerSocket.js +117 -0
- package/node_modules/systeminformation/lib/filesystem.js +1853 -0
- package/node_modules/systeminformation/lib/graphics.js +1317 -0
- package/node_modules/systeminformation/lib/index.js +520 -0
- package/node_modules/systeminformation/lib/internet.js +265 -0
- package/node_modules/systeminformation/lib/memory.js +622 -0
- package/node_modules/systeminformation/lib/network.js +2008 -0
- package/node_modules/systeminformation/lib/osinfo.js +1290 -0
- package/node_modules/systeminformation/lib/printer.js +209 -0
- package/node_modules/systeminformation/lib/processes.js +1459 -0
- package/node_modules/systeminformation/lib/system.js +855 -0
- package/node_modules/systeminformation/lib/usb.js +309 -0
- package/node_modules/systeminformation/lib/users.js +412 -0
- package/node_modules/systeminformation/lib/util.js +2833 -0
- package/node_modules/systeminformation/lib/virtualbox.js +116 -0
- package/node_modules/systeminformation/lib/wifi.js +839 -0
- package/node_modules/systeminformation/package.json +102 -0
- package/node_modules/undici/docs/docs/api/Client.md +4 -0
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/undici/lib/cache/memory-cache-store.js +1 -1
- package/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +1 -1
- package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
- package/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
- package/node_modules/undici/lib/dispatcher/client.js +3 -2
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/undici/lib/dispatcher/dispatcher.js +10 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +1 -1
- package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +3 -1
- package/node_modules/undici/lib/handler/cache-handler.js +8 -0
- package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
- package/node_modules/undici/lib/handler/redirect-handler.js +8 -0
- package/node_modules/undici/lib/handler/retry-handler.js +83 -11
- package/node_modules/undici/lib/interceptor/dump.js +1 -1
- package/node_modules/undici/lib/mock/mock-agent.js +13 -1
- package/node_modules/undici/lib/mock/mock-utils.js +11 -10
- package/node_modules/undici/lib/web/cookies/parse.js +4 -2
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
- package/node_modules/undici/lib/web/eventsource/eventsource.js +4 -1
- package/node_modules/undici/lib/web/fetch/request.js +2 -3
- package/node_modules/undici/package.json +3 -3
- package/node_modules/zod/README.md +27 -0
- package/node_modules/zod/compile.cjs +77 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +2 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/package.json +13 -2
- package/node_modules/zod/v3/ZodError.cjs +22 -12
- package/node_modules/zod/v3/ZodError.js +22 -12
- package/node_modules/zod/v3/types.cjs +7 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +2 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/deep-partial.cjs +39 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +43 -34
- package/node_modules/zod/v4/classic/errors.js +43 -34
- package/node_modules/zod/v4/classic/external.cjs +30 -27
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +136 -75
- package/node_modules/zod/v4/classic/from-json-schema.js +136 -75
- package/node_modules/zod/v4/classic/in-out.cjs +63 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +2 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +11 -22
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/parse.cjs +4 -1
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +498 -398
- package/node_modules/zod/v4/classic/schemas.js +492 -396
- package/node_modules/zod/v4/core/api.cjs +23 -4
- package/node_modules/zod/v4/core/api.js +21 -4
- package/node_modules/zod/v4/core/checks.cjs +37 -31
- package/node_modules/zod/v4/core/checks.js +37 -31
- package/node_modules/zod/v4/core/compile.cjs +1813 -0
- package/node_modules/zod/v4/core/compile.js +1783 -0
- package/node_modules/zod/v4/core/core.cjs +81 -18
- package/node_modules/zod/v4/core/core.js +82 -19
- package/node_modules/zod/v4/core/doc.cjs +5 -7
- package/node_modules/zod/v4/core/doc.js +5 -7
- package/node_modules/zod/v4/core/errors.cjs +110 -25
- package/node_modules/zod/v4/core/errors.js +110 -25
- package/node_modules/zod/v4/core/index.cjs +5 -1
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +4 -0
- package/node_modules/zod/v4/core/json-schema-generator.js +4 -0
- package/node_modules/zod/v4/core/json-schema-processors.cjs +264 -95
- package/node_modules/zod/v4/core/json-schema-processors.js +243 -97
- package/node_modules/zod/v4/core/memoizer.cjs +268 -0
- package/node_modules/zod/v4/core/memoizer.js +261 -0
- package/node_modules/zod/v4/core/parse.cjs +96 -34
- package/node_modules/zod/v4/core/parse.js +94 -33
- package/node_modules/zod/v4/core/regexes.cjs +27 -15
- package/node_modules/zod/v4/core/regexes.js +24 -13
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +537 -326
- package/node_modules/zod/v4/core/schemas.js +526 -325
- package/node_modules/zod/v4/core/to-json-schema.cjs +242 -39
- package/node_modules/zod/v4/core/to-json-schema.js +241 -39
- package/node_modules/zod/v4/core/util.cjs +212 -31
- package/node_modules/zod/v4/core/util.js +202 -30
- package/node_modules/zod/v4/core/versions.cjs +2 -2
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +195 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +15 -5
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +3 -0
- package/node_modules/zod/v4/locales/ar.js +3 -0
- package/node_modules/zod/v4/locales/az.cjs +3 -0
- package/node_modules/zod/v4/locales/az.js +3 -0
- package/node_modules/zod/v4/locales/be.cjs +10 -0
- package/node_modules/zod/v4/locales/be.js +10 -0
- package/node_modules/zod/v4/locales/bg.cjs +3 -0
- package/node_modules/zod/v4/locales/bg.js +3 -0
- package/node_modules/zod/v4/locales/bn.cjs +138 -0
- package/node_modules/zod/v4/locales/bn.js +111 -0
- package/node_modules/zod/v4/locales/ca.cjs +3 -0
- package/node_modules/zod/v4/locales/ca.js +3 -0
- package/node_modules/zod/v4/locales/ckb.cjs +158 -0
- package/node_modules/zod/v4/locales/ckb.js +131 -0
- package/node_modules/zod/v4/locales/cs.cjs +3 -0
- package/node_modules/zod/v4/locales/cs.js +3 -0
- package/node_modules/zod/v4/locales/da.cjs +5 -2
- package/node_modules/zod/v4/locales/da.js +5 -2
- package/node_modules/zod/v4/locales/de.cjs +3 -0
- package/node_modules/zod/v4/locales/de.js +3 -0
- package/node_modules/zod/v4/locales/el.cjs +1 -0
- package/node_modules/zod/v4/locales/el.js +1 -0
- package/node_modules/zod/v4/locales/en.cjs +14 -4
- package/node_modules/zod/v4/locales/en.js +14 -4
- package/node_modules/zod/v4/locales/eo.cjs +3 -0
- package/node_modules/zod/v4/locales/eo.js +3 -0
- package/node_modules/zod/v4/locales/es.cjs +2 -0
- package/node_modules/zod/v4/locales/es.js +2 -0
- package/node_modules/zod/v4/locales/fa.cjs +3 -0
- package/node_modules/zod/v4/locales/fa.js +3 -0
- package/node_modules/zod/v4/locales/fi.cjs +3 -0
- package/node_modules/zod/v4/locales/fi.js +3 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +3 -0
- package/node_modules/zod/v4/locales/fr-CA.js +3 -0
- package/node_modules/zod/v4/locales/fr.cjs +16 -14
- package/node_modules/zod/v4/locales/fr.js +16 -14
- package/node_modules/zod/v4/locales/gu.cjs +138 -0
- package/node_modules/zod/v4/locales/gu.js +111 -0
- package/node_modules/zod/v4/locales/he.cjs +5 -0
- package/node_modules/zod/v4/locales/he.js +5 -0
- package/node_modules/zod/v4/locales/hi.cjs +136 -0
- package/node_modules/zod/v4/locales/hi.js +109 -0
- package/node_modules/zod/v4/locales/hr.cjs +2 -0
- package/node_modules/zod/v4/locales/hr.js +2 -0
- package/node_modules/zod/v4/locales/hu.cjs +3 -0
- package/node_modules/zod/v4/locales/hu.js +3 -0
- package/node_modules/zod/v4/locales/hy.cjs +9 -0
- package/node_modules/zod/v4/locales/hy.js +9 -0
- package/node_modules/zod/v4/locales/id.cjs +3 -0
- package/node_modules/zod/v4/locales/id.js +3 -0
- package/node_modules/zod/v4/locales/index.cjs +22 -2
- package/node_modules/zod/v4/locales/index.js +10 -0
- package/node_modules/zod/v4/locales/is.cjs +3 -0
- package/node_modules/zod/v4/locales/is.js +3 -0
- package/node_modules/zod/v4/locales/it.cjs +3 -0
- package/node_modules/zod/v4/locales/it.js +3 -0
- package/node_modules/zod/v4/locales/ja.cjs +3 -0
- package/node_modules/zod/v4/locales/ja.js +3 -0
- package/node_modules/zod/v4/locales/ka.cjs +3 -0
- package/node_modules/zod/v4/locales/ka.js +3 -0
- package/node_modules/zod/v4/locales/km.cjs +3 -0
- package/node_modules/zod/v4/locales/km.js +3 -0
- package/node_modules/zod/v4/locales/kn.cjs +141 -0
- package/node_modules/zod/v4/locales/kn.js +114 -0
- package/node_modules/zod/v4/locales/ko.cjs +3 -0
- package/node_modules/zod/v4/locales/ko.js +3 -0
- package/node_modules/zod/v4/locales/lt.cjs +2 -0
- package/node_modules/zod/v4/locales/lt.js +2 -0
- package/node_modules/zod/v4/locales/mk.cjs +3 -0
- package/node_modules/zod/v4/locales/mk.js +3 -0
- package/node_modules/zod/v4/locales/ms.cjs +3 -0
- package/node_modules/zod/v4/locales/ms.js +3 -0
- package/node_modules/zod/v4/locales/ne.cjs +136 -0
- package/node_modules/zod/v4/locales/ne.js +109 -0
- package/node_modules/zod/v4/locales/nl.cjs +3 -0
- package/node_modules/zod/v4/locales/nl.js +3 -0
- package/node_modules/zod/v4/locales/nn.cjs +138 -0
- package/node_modules/zod/v4/locales/nn.js +111 -0
- package/node_modules/zod/v4/locales/no.cjs +5 -2
- package/node_modules/zod/v4/locales/no.js +5 -2
- package/node_modules/zod/v4/locales/ota.cjs +3 -0
- package/node_modules/zod/v4/locales/ota.js +3 -0
- package/node_modules/zod/v4/locales/pl.cjs +3 -0
- package/node_modules/zod/v4/locales/pl.js +3 -0
- package/node_modules/zod/v4/locales/ps.cjs +3 -0
- package/node_modules/zod/v4/locales/ps.js +3 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +168 -0
- package/node_modules/zod/v4/locales/pt-BR.js +141 -0
- package/node_modules/zod/v4/locales/pt.cjs +87 -55
- package/node_modules/zod/v4/locales/pt.js +87 -55
- package/node_modules/zod/v4/locales/ro.cjs +1 -0
- package/node_modules/zod/v4/locales/ro.js +1 -0
- package/node_modules/zod/v4/locales/ru.cjs +10 -0
- package/node_modules/zod/v4/locales/ru.js +10 -0
- package/node_modules/zod/v4/locales/sk.cjs +141 -0
- package/node_modules/zod/v4/locales/sk.js +114 -0
- package/node_modules/zod/v4/locales/sl.cjs +3 -0
- package/node_modules/zod/v4/locales/sl.js +3 -0
- package/node_modules/zod/v4/locales/sv.cjs +5 -2
- package/node_modules/zod/v4/locales/sv.js +5 -2
- package/node_modules/zod/v4/locales/ta.cjs +3 -0
- package/node_modules/zod/v4/locales/ta.js +3 -0
- package/node_modules/zod/v4/locales/th.cjs +3 -0
- package/node_modules/zod/v4/locales/th.js +3 -0
- package/node_modules/zod/v4/locales/tk.cjs +132 -0
- package/node_modules/zod/v4/locales/tk.js +105 -0
- package/node_modules/zod/v4/locales/tr.cjs +3 -0
- package/node_modules/zod/v4/locales/tr.js +3 -0
- package/node_modules/zod/v4/locales/uk.cjs +3 -0
- package/node_modules/zod/v4/locales/uk.js +3 -0
- package/node_modules/zod/v4/locales/ur.cjs +3 -0
- package/node_modules/zod/v4/locales/ur.js +3 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/locales/vi.cjs +3 -0
- package/node_modules/zod/v4/locales/vi.js +3 -0
- package/node_modules/zod/v4/locales/yo.cjs +3 -0
- package/node_modules/zod/v4/locales/yo.js +3 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +3 -0
- package/node_modules/zod/v4/locales/zh-CN.js +3 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +3 -0
- package/node_modules/zod/v4/locales/zh-TW.js +3 -0
- package/node_modules/zod/v4/mini/checks.cjs +2 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/deep-partial.cjs +39 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +12 -1
- package/node_modules/zod/v4/mini/external.js +3 -1
- package/node_modules/zod/v4/mini/in-out.cjs +63 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/parse.cjs +3 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +75 -47
- package/node_modules/zod/v4/mini/schemas.js +71 -45
- package/package.json +3 -4
- package/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +0 -549
- package/node_modules/@ai-sdk/code-mode/package.json +0 -78
- package/node_modules/@ai-sdk/gateway/CHANGELOG.md +0 -3067
- package/node_modules/@ai-sdk/gateway/dist/index.js +0 -3208
- package/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +0 -1297
- package/node_modules/@ai-sdk/gateway/package.json +0 -80
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +0 -2444
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/README.md +0 -1
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/dist/index.js +0 -4295
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/package.json +0 -82
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/src/to-json-schema/zod3-to-json-schema/LICENSE +0 -16
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/src/to-json-schema/zod3-to-json-schema/README.md +0 -24
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/LICENSE +0 -21
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/README.md +0 -741
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Agent.md +0 -84
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Client.md +0 -288
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Connector.md +0 -115
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ContentType.md +0 -57
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Cookies.md +0 -128
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Debug.md +0 -62
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Errors.md +0 -49
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EventSource.md +0 -45
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Fetch.md +0 -60
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockClient.md +0 -81
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockPool.md +0 -555
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Pool.md +0 -84
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -275
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Util.md +0 -25
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/index-fetch.js +0 -65
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/index.js +0 -234
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/abort-signal.js +0 -59
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-connect.js +0 -110
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-pipeline.js +0 -252
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-request.js +0 -214
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-stream.js +0 -209
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-upgrade.js +0 -111
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/index.js +0 -7
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/readable.js +0 -580
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/memory-cache-store.js +0 -279
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -467
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/connect.js +0 -153
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/constants.js +0 -143
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/diagnostics.js +0 -227
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/errors.js +0 -477
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/request.js +0 -464
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-client.js +0 -422
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-utils.js +0 -212
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/symbols.js +0 -75
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/tree.js +0 -160
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/util.js +0 -992
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/agent.js +0 -158
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h1.js +0 -1731
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client.js +0 -664
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -184
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool.js +0 -118
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -319
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -260
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/encoding/index.js +0 -33
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/global.js +0 -59
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-handler.js +0 -760
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/decorator-handler.js +0 -67
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/redirect-handler.js +0 -238
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/retry-handler.js +0 -418
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/unwrap-handler.js +0 -106
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/wrap-handler.js +0 -105
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/cache.js +0 -602
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/decompress.js +0 -259
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dns.js +0 -571
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dump.js +0 -112
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/redirect.js +0 -21
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/response-error.js +0 -95
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/retry.js +0 -19
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/constants.js +0 -531
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/utils.js +0 -12
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-agent.js +0 -232
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-call-history.js +0 -248
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-client.js +0 -68
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-errors.js +0 -29
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-pool.js +0 -68
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-symbols.js +0 -32
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-utils.js +0 -486
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/cache.js +0 -676
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/date.js +0 -670
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/promise.js +0 -28
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/runtime-features.js +0 -124
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/stats.js +0 -32
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/timers.js +0 -425
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cache.js +0 -864
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/util.js +0 -45
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/constants.js +0 -12
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/index.js +0 -199
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/parse.js +0 -314
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/util.js +0 -352
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/util.js +0 -29
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/LICENSE +0 -21
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/body.js +0 -509
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/constants.js +0 -131
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/data-url.js +0 -596
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata.js +0 -259
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/global.js +0 -40
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/headers.js +0 -719
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/index.js +0 -2413
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/request.js +0 -1115
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/response.js +0 -641
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/util.js +0 -1522
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/infra/index.js +0 -229
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/webidl/index.js +0 -1006
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/connection.js +0 -329
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/constants.js +0 -126
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/events.js +0 -331
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/frame.js +0 -133
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -100
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/receiver.js +0 -507
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/sender.js +0 -109
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -498
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/util.js +0 -347
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/websocket.js +0 -758
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/package.json +0 -152
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/scripts/strip-comments.js +0 -10
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/types/README.md +0 -6
- package/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1218
- package/node_modules/@ai-sdk/provider/package.json +0 -63
- package/node_modules/@formatjs/icu-messageformat-parser/index.js +0 -2173
- package/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +0 -207
- package/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +0 -160
- package/node_modules/@formatjs/icu-messageformat-parser/package.json +0 -21
- package/node_modules/@formatjs/icu-messageformat-parser/printer.js +0 -224
- package/node_modules/@maka/core/dist/task-ledger.js +0 -797
- package/node_modules/@maka/runtime/dist/active-tool-result-prune.js +0 -334
- package/node_modules/@maka/runtime/dist/active-tool-result-working-set.js +0 -218
- package/node_modules/@maka/runtime/dist/archive-read-tool.js +0 -92
- package/node_modules/@maka/runtime/dist/sandbox/diagnostics.js +0 -285
- package/node_modules/@maka/runtime/dist/system-prompt/sandbox-context-prompt.js +0 -77
- package/node_modules/@maka/runtime/dist/system-prompt/session-environment-prompt.js +0 -47
- package/node_modules/@maka/runtime/dist/task-ledger-tools.js +0 -244
- package/node_modules/@maka/runtime/dist/test-helpers.js +0 -61
- package/node_modules/@maka/runtime/node_modules/@slack/types/dist/events/index.js +0 -43
- package/node_modules/@maka/runtime/node_modules/@slack/types/package.json +0 -47
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/README.md +0 -390
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/methods.js +0 -1610
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +0 -37
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +0 -82
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +0 -63
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/package.json +0 -71
- package/node_modules/@maka/runtime-host/dist/protocol/task-ledger.js +0 -321
- package/node_modules/@maka/runtime-host/dist/server/task-ledger-coordinator.js +0 -154
- package/node_modules/@maka/storage/dist/artifact-metadata-repository.js +0 -19
- package/node_modules/@maka/storage/dist/artifact-storage-layout.js +0 -26
- package/node_modules/@maka/storage/dist/provider-request-capture-artifact.js +0 -31
- package/node_modules/@maka/storage/dist/task-ledger-authority.js +0 -121
- package/node_modules/@maka/storage/dist/task-ledger-store-internal.js +0 -32
- package/node_modules/@maka/storage/dist/task-ledger-store.js +0 -663
- package/node_modules/ai/CHANGELOG.md +0 -9971
- package/node_modules/ai/dist/index.js +0 -18513
- package/node_modules/ai/dist/internal/index.js +0 -3680
- package/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +0 -179
- package/node_modules/ai/docs/03-agents/04-loop-control.mdx +0 -515
- package/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +0 -412
- package/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +0 -326
- package/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +0 -718
- package/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +0 -513
- package/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +0 -1509
- package/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +0 -617
- package/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +0 -344
- package/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +0 -332
- package/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +0 -180
- package/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +0 -155
- package/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +0 -149
- package/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +0 -830
- package/node_modules/ai/docs/03-ai-sdk-core/index.mdx +0 -132
- package/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +0 -495
- package/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +0 -65
- package/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +0 -45
- package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +0 -798
- package/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +0 -401
- package/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +0 -212
- package/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +0 -578
- package/node_modules/ai/docs/06-advanced/04-caching.mdx +0 -175
- package/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +0 -111
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +0 -3253
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +0 -4261
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +0 -304
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +0 -302
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +0 -317
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +0 -252
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +0 -92
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +0 -1102
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +0 -342
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +0 -268
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +0 -145
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +0 -225
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +0 -493
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +0 -256
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +0 -166
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +0 -120
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +0 -954
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +0 -347
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +0 -26
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +0 -26
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +0 -36
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +0 -41
- package/node_modules/ai/package.json +0 -117
- package/node_modules/intl-messageformat/intl-messageformat.iife.js +0 -2807
- package/node_modules/intl-messageformat/package.json +0 -40
- package/packages/eval/dist/attempt-store.js +0 -138
- package/packages/eval/dist/cli.js +0 -119
- package/packages/eval/dist/experiment-directory.js +0 -59
- package/packages/eval/dist/experiment.js +0 -49
- package/packages/eval/dist/external-subject.js +0 -488
- package/packages/eval/dist/harbor-external-subject.js +0 -929
- package/packages/eval/dist/harbor-maka-subject.js +0 -83
- package/packages/eval/dist/harness-environment.js +0 -80
- package/packages/eval/dist/harness-executor.js +0 -1013
- package/packages/eval/dist/index.js +0 -28
- package/packages/eval/dist/install-preflight.js +0 -201
- package/packages/eval/dist/maka-artifacts.js +0 -126
- package/packages/eval/dist/maka-runtime-policy.js +0 -42
- package/packages/eval/dist/maka-subject.js +0 -268
- package/packages/eval/dist/metering-checkpoint.js +0 -80
- package/packages/eval/dist/provider-admission.js +0 -39
- package/packages/eval/dist/provider-metering.js +0 -67
- package/packages/eval/dist/provider-web-tool-surface.js +0 -74
- package/packages/eval/dist/relay-result-frame.js +0 -38
- package/packages/eval/dist/result.js +0 -94
- package/packages/eval/dist/runner.js +0 -290
- package/packages/eval/dist/spec.js +0 -135
- package/packages/eval/dist/toolchain-verification.js +0 -130
- package/packages/eval/harbor/deepseek-codex-models.json +0 -69
- package/packages/eval/harbor/deepseek-harness-profile/cordis.patch.yml +0 -140
- package/packages/eval/harbor/deepseek-harness-profile/cordis.yml +0 -18
- package/packages/eval/harbor/deepseek-harness-profile/package.json +0 -10
- package/packages/eval/harbor/docker-compose-egress-proxy.yaml +0 -57
- package/packages/eval/harbor/egress-proxy/Dockerfile +0 -25
- package/packages/eval/harbor/egress-proxy/entrypoint.sh +0 -62
- package/packages/eval/harbor/egress-proxy/network-policy +0 -148
- package/packages/eval/harbor/egress_filter.py +0 -435
- package/packages/eval/harbor/eval_framework.py +0 -40
- package/packages/eval/harbor/relay_agent.py +0 -686
- package/packages/eval/harbor/run_trial.py +0 -223
- package/packages/eval/package.json +0 -20
- /package/node_modules/@ai-sdk/{code-mode → anthropic/node_modules/@ai-sdk/provider}/LICENSE +0 -0
- /package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/README.md +0 -0
- /package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/dist/index.js +0 -0
- /package/node_modules/@ai-sdk/{gateway → cohere/node_modules/@ai-sdk/provider}/LICENSE +0 -0
- /package/node_modules/@ai-sdk/{provider → google/node_modules/@ai-sdk/provider}/LICENSE +0 -0
- /package/node_modules/{ai → @ai-sdk/openai-compatible/node_modules/@ai-sdk/provider}/LICENSE +0 -0
- /package/node_modules/{@formatjs → @maka/core/node_modules/@formatjs}/icu-messageformat-parser/LICENSE.md +0 -0
- /package/node_modules/{@formatjs → @maka/core/node_modules/@formatjs}/icu-messageformat-parser/README.md +0 -0
- /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/LICENSE.md +0 -0
- /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/README.md +0 -0
- /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/index.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/README.md +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/approval-continuation.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/approval.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/code-mode-tool.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/continuation-capability.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/direct-tool-call.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/errors.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/host-interrupt.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/index.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/interrupt-continuation.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/tool-invocation.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/tool-prompt.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/types.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/utils/serialization.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/src/tsconfig.json +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/gateway/README.md +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/README.md +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/00-introduction/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/03-prompts.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/04-tools.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/05-streaming.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/06-provider-options.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/00-choosing-a-provider.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/01-navigating-the-library.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/02-nextjs-app-router.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/03-nextjs-pages-router.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/04-svelte.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/05-nuxt.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/06-nodejs.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/07-expo.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/08-tanstack-start.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/09-coding-agents.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/02-building-agents.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/03-workflows.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/05-configuring-call-options.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-memory.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-subagents.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/08-terminal-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/05-generating-text.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/17-mcp-apps.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/17-runtime-and-tool-context.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/18-code-mode.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/20-prompt-engineering.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/25-settings.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/26-reasoning.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/30-embeddings.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/31-reranking.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-realtime.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-translation.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/38-video-generation.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/40-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/41-skill-uploads.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/45-provider-management.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/55-testing.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/65-devtools.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/65-lifecycle-callbacks.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/03-tools.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/06-workflow-utilities.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/07-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/08-terminal-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/02-chatbot.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-message-persistence.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-resume-streams.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/04-generative-user-interfaces.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/05-completion.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/08-object-generation.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/21-error-handling.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/24-reading-ui-message-streams.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/25-message-metadata.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/02-streaming-react-components.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/03-generative-ui-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/03-saving-and-restoring-states.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/04-multistep-interfaces.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/05-streaming-values.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/06-loading-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/08-error-handling.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/09-authentication.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/10-migrating-to-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/01-prompt-engineering.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/02-stopping-streams.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/03-backpressure.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/05-multiple-streamables.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/06-rate-limiting.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/07-rendering-ui-with-language-models.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/08-model-as-router.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/09-multistep-interfaces.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/09-sequential-generations.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/10-vercel-deployment-guide.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-stream-transcribe.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-stream-translate.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-transcribe.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/12-generate-speech.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/13-generate-video.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/14-upload-skill.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/15-agent.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/17-create-agent-ui-stream.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/18-create-agent-ui-stream-response.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/18-pipe-agent-ui-stream-to-response.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/20-tool.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/22-dynamic-tool.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/23-create-mcp-client.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/23-get-realtime-tool-definitions.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/24-mcp-apps.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/24-mcp-stdio-transport.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/25-json-schema.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/26-zod-schema.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/27-valibot-schema.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/29-filter-active-tools.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/30-model-message.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/32-validate-ui-messages.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/33-safe-validate-ui-messages.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/34-sandbox.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/40-provider-registry.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/42-custom-provider.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/50-cosine-similarity.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/60-wrap-language-model.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/61-wrap-image-model.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/65-language-model-v2-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/66-extract-reasoning-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/67-simulate-streaming-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/68-default-instructions-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/68-default-settings-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/69-add-tool-input-examples-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/70-extract-json-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/70-is-step-count.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/71-has-tool-call.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/72-loop-finished.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/75-simulate-readable-stream.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/90-generate-id.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/91-create-id-generator.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/92-default-generated-file.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/02-use-completion.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/03-use-object.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/05-use-realtime.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/32-prune-messages.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/42-pipe-ui-message-stream-to-response.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/43-read-ui-message-stream.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/46-infer-ui-tools.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/47-infer-ui-tool.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/48-mcp-app-renderer.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/50-direct-chat-transport.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/01-stream-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/02-create-ai.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/03-create-streamable-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/04-create-streamable-value.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/05-read-streamable-value.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/06-get-ai-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/07-get-mutable-ai-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/08-use-ai-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/09-use-actions.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/10-use-ui-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/11-use-streamable-value.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/20-render.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-api-call-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-download-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-empty-response-body-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-data-content-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-message-role-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-prompt-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-response-data-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-approval-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-approval-signature-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-input-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-json-parse-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-load-api-key-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-load-setting-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-message-conversion-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-content-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-object-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-output-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-speech-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-model-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-reference-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-tool-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-transcript-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-translation-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-video-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-retry-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-too-many-embedding-values-for-call-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-call-not-found-for-approval-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-call-repair-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-type-validation-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-ui-message-stream-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-unsupported-functionality-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/06-ai-sdk-tui/01-run-agent-tui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/06-ai-sdk-tui/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/00-versioning.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/23-migration-guide-7-0.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/24-migration-guide-6-0.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/25-migration-guide-5-0-data.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/26-migration-guide-5-0.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/27-migration-guide-4-2.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/28-migration-guide-4-1.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/29-migration-guide-4-0.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/36-migration-guide-3-4.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/37-migration-guide-3-3.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/38-migration-guide-3-2.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/39-migration-guide-3-1.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/01-azure-stream-slow.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/03-server-actions-in-client-components.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/04-strange-stream-output.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/05-streamable-ui-errors.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/05-tool-invocation-missing-result.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-streaming-not-working-when-deployed.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-streaming-not-working-when-proxied.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-timeout-on-vercel.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/07-unclosed-streams.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/08-use-chat-failed-to-parse-stream.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/09-client-stream-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/10-use-chat-tools-no-response.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/11-use-chat-custom-request-options.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/12-typescript-performance-zod.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/12-use-chat-an-error-occurred.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/13-repeated-assistant-messages.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/14-stream-abort-handling.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/14-tool-calling-with-structured-outputs.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/15-abort-breaks-resumable-streams.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/15-stream-text-not-working.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/16-streaming-status-delay.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/17-use-chat-stale-body-data.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/18-ontoolcall-type-narrowing.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/19-unsupported-model-version.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/20-no-object-generated-content-filter.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/21-missing-tool-results-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/30-model-is-not-assignable-to-type.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/40-typescript-cannot-find-namespace-jsx.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/50-react-maximum-update-depth-exceeded.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/60-jest-cannot-find-module-ai-rsc.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/70-high-memory-usage-with-images.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/README.md +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/dist/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/package.json +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/README.md +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/block-elements.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/blocks.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/composition-objects.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/extensions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/calls.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/chunk.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/bot-profile.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/status-emoji-display-info.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/dialog.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/app.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/assistant.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/call.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/channel.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/dnd.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/email.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/emoji.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/entity-details-requested.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/file.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/function.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/grid-migration.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/group.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/im.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/invite.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/link-shared.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/member.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message-metadata.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/pin.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/reaction.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/shared-channel.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/star.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/steps-from-apps.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/subteam.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/team.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/token.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/user.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-attachments.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-metadata.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/views.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/WebClient.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/chat-stream.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/errors.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/file-upload.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/helpers.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/instrument.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/logger.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/retry-policies.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/helpers.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/analytics.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/apps.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/auth.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/barriers.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/conversations.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/emoji.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/functions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/inviteRequests.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/roles.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/teams.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/usergroups.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/users.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/workflows.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/api.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/apps.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/assistant.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/auth.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bookmarks.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bots.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/calls.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/canvas.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/chat.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/common.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/conversations.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dialog.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dnd.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/emoji.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/entity.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/files.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/functions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/manifest.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/migration.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/oauth.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/openid.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/pins.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reactions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reminders.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/rtm.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/search.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/slackLists.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/stars.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/team.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/tooling.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/usergroups.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/users.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/views.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/workflows.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAnalyticsGetFileResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsActivitiesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApproveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApprovedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsClearResolutionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsCancelResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsUninstallResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyAssignEntitiesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyGetEntitiesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyRemoveEntitiesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkMoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPrivateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPublicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDisconnectSharedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetConversationPrefsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetCustomRetentionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetTeamsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRemoveCustomRetentionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessAddGroupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessListGroupsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSearchResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetConversationPrefsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetCustomRetentionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetTeamsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddAliasResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApproveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApprovedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDeniedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDenyResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesAddAssignmentsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesListAssignmentsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesRemoveAssignmentsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsAdminsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsOwnersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDescriptionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetIconResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetNameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddTeamsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsListChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsRemoveChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersAssignResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionClearSettingsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionGetSettingsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionInvalidateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetBulkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionSetSettingsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetAdminResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetExpirationResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetOwnerResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetRegularResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersUnsupportedVersionsExportResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsPermissionsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsSearchResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsUnpublishResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ApiTestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsConnectionsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsEventAuthorizationsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestExportResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestValidateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsRequestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsResourcesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsScopesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersRequestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUninstallResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetStatusResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetSuggestedPromptsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetTitleResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthRevokeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTeamsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksEditResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BotsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsEndResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesEditResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesSectionsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsJoinResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsKickResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsLeaveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetPurposeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetTopicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteScheduledMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatGetPermalinkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatMeMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostEphemeralResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduleMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduledMessagesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUnfurlResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsAcceptSharedInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsApproveSharedInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCanvasesCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsDeclineSharedInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsExternalInvitePermissionsSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteSharedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsJoinResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsKickResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsLeaveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListConnectInvitesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMembersResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteApproveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteDenyResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetPurposeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetTopicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DialogOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndDndResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndSnoozeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndSetSnoozeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndTeamInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EmojiListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EntityPresentDetailsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsEditResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCompleteUploadExternalResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesGetUploadURLExternalResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteShareResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRevokePublicURLResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesSharedPublicURLResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesUploadResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteErrorResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteSuccessResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateChildResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsKickResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsLeaveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetPurposeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetTopicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MigrationExchangeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthAccessResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthTokenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2AccessResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2ExchangeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectTokenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectUserInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsGetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersCompleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmConnectResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmStartResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/SearchMessagesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamAccessLogsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillableInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillingInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsDisconnectResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamIntegrationLogsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamPreferencesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamProfileGetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ToolingTokensRotateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsDisableResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsEnableResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersConversationsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDeletePhotoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDiscoverableContactsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersGetPresenceResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersIdentityResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersLookupByEmailResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileGetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetActiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPhotoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPresenceResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPublishResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPushResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepCompletedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepFailedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsUpdateStepResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/index.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/License +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/README.md +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/dns.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/stop.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/index.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry_operation.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/package.json +0 -0
|
@@ -16,39 +16,33 @@
|
|
|
16
16
|
* specific language governing permissions and limitations
|
|
17
17
|
* under the License.
|
|
18
18
|
*/
|
|
19
|
-
/**
|
|
20
|
-
* SessionManager — the public Runtime API.
|
|
21
|
-
*
|
|
22
|
-
* Ties together:
|
|
23
|
-
* SessionStore (storage) — SQLite persistence
|
|
24
|
-
* AgentBackend (AiSdkBackend etc) — SDK adapter
|
|
25
|
-
* ExecutionBoundary — session sandbox authority
|
|
26
|
-
*
|
|
27
|
-
* `SessionStore` comes from `@maka/storage`; its public interface owns
|
|
28
|
-
* persistence and same-session serialization semantics.
|
|
29
|
-
*/
|
|
30
19
|
import { createHash } from 'node:crypto';
|
|
31
20
|
import { isDeepStrictEqual } from 'node:util';
|
|
32
21
|
import { setTimeout as delay } from 'node:timers/promises';
|
|
33
22
|
import { messageContentsEqual, normalizeMessageContent } from '@maka/core/events';
|
|
23
|
+
import { isCanonicalReadOnlyPermissionProfile } from '@maka/core/permission-profile';
|
|
34
24
|
import { DEFAULT_TOOL_MODE } from '@maka/core/tool-mode';
|
|
35
25
|
import { PLAN_USER_ABANDON_REASON, PLAN_USER_CANCEL_REASON, PlanConflictError, } from '@maka/core/plan';
|
|
36
26
|
import { DEFAULT_SESSION_NAME } from '@maka/core/session-name';
|
|
37
27
|
import { DEEP_RESEARCH_SESSION_LABEL, isDeepResearchSession } from '@maka/core/deep-research';
|
|
38
|
-
import {
|
|
39
|
-
import { SUBAGENT_SESSION_RUNTIME_SCHEMA_VERSION, SUBAGENT_SESSION_SPAWN_SCHEMA_VERSION, childSessionsForParent, deriveTurnRecords, subagentSessionRuntimeSummary, } from '@maka/core/session';
|
|
28
|
+
import { SUBAGENT_SESSION_RUNTIME_SCHEMA_VERSION, SUBAGENT_SESSION_SPAWN_SCHEMA_VERSION, childSessionsForParent, subagentSessionRuntimeSummary, } from '@maka/core/session';
|
|
40
29
|
import { decodeAgentGraphIntentClaim } from '@maka/core/agent-graph-control';
|
|
41
30
|
import { executionBoundaryContains } from '@maka/core/sandbox-boundary';
|
|
42
31
|
import { failureClassFromCompleteStopReason } from '@maka/core/events';
|
|
43
32
|
import { isActiveShellRunStatus } from '@maka/core/shell-run';
|
|
44
|
-
import { isSessionInlineRun } from '@maka/core/agent-run';
|
|
45
33
|
import { isTerminalRuntimeEvent } from '@maka/core/runtime-event';
|
|
34
|
+
import { runtimeHandoffPause } from '@maka/core/runtime-handoff';
|
|
35
|
+
import { readLogicalRuntimeExecutionForRun } from '@maka/core/runtime-logical-execution';
|
|
36
|
+
import { buildInvocationOpenedEvent, isSessionInlineInvocation, runtimeInvocationOutcome, } from '@maka/core/runtime-invocation';
|
|
37
|
+
import { isArtifactChildResultOutput } from '@maka/core/artifacts';
|
|
38
|
+
import { invocationMatchesClaimTarget } from '@maka/core/runtime-boundary';
|
|
39
|
+
import { readRunInvocation, } from '@maka/core/runtime-event-store';
|
|
46
40
|
import { AGENT_GRAPH_OPERATOR_PROVISION_SCHEMA_VERSION } from '@maka/core/agent-graph-topology';
|
|
41
|
+
import { runtimeInvocationFailureClass, } from './runtime-event-read-model.js';
|
|
47
42
|
import { RuntimeReadModel, RuntimeReadModelError, } from './runtime-read-model.js';
|
|
48
43
|
import { inspectAgentRunReadModel } from './agent-run-inspect.js';
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import { buildRecoveredTerminalRuntimeEvent, classifyTerminalRuntimeLedger, commitTerminalRunWithRuntimeFact, effectiveRunHeaderFromTerminalFact, terminalRunStatusFromRuntimeEvent, } from './terminal-run-commit.js';
|
|
44
|
+
import { isTranscriptLedgerInvocation, RuntimeLedgerRepair } from './runtime-ledger-repair.js';
|
|
45
|
+
import { buildRecoveredTerminalRuntimeEvent, classifyTerminalRuntimeLedger, commitTerminalRunWithRuntimeFact, terminalRunStatusFromRuntimeEvent, } from './terminal-run-commit.js';
|
|
52
46
|
import { readLatestContextDiagnostics } from './context-diagnostics.js';
|
|
53
47
|
import { attributeSandboxBoundaryRestartClosure, classifyAgentRunRecovery, } from './agent-run-recovery.js';
|
|
54
48
|
import { buildInterruptedCodeModeOutcomeCommits } from './recovery-resolver.js';
|
|
@@ -57,7 +51,7 @@ import { RuntimeInteractionInvariantError, } from './interaction-authority.js';
|
|
|
57
51
|
import { RuntimeKernel, SessionQuiescentMutationBusyError, } from './runtime-kernel.js';
|
|
58
52
|
import { fingerprintAgentGraphRunnableIntent } from './stream-graph-admission.js';
|
|
59
53
|
import { projectAgentGraphRecords } from './stream-graph-projection.js';
|
|
60
|
-
import { buildStatusPatch
|
|
54
|
+
import { buildStatusPatch } from './session-projection-helpers.js';
|
|
61
55
|
import { assertAgentDefinitionRunnable, buildToolsForAgentDefinition, listBuiltinAgentDefinitions, requireBuiltinAgentDefinition, requireBuiltinAgentDefinitionByProfile, AGENT_WORKSPACE_WORKTREE, } from './agent-catalog.js';
|
|
62
56
|
import { stableHash } from './request-shape.js';
|
|
63
57
|
import { RuntimeContinuationPlanner, } from './runtime-resume.js';
|
|
@@ -82,8 +76,8 @@ function runtimeCommitSinkFromEventStore(store) {
|
|
|
82
76
|
? candidate
|
|
83
77
|
: undefined;
|
|
84
78
|
}
|
|
79
|
+
export { normalizeStopSessionSource, workHubDirectStopAbortSource, } from './session-projection-helpers.js';
|
|
85
80
|
const CHILD_AGENT_SUMMARY_MAX_CHARS = 4_000;
|
|
86
|
-
const MAX_RUNTIME_LEDGER_REPAIR_ATTEMPTS = 8;
|
|
87
81
|
export class SessionConfigurationTransitionError extends Error {
|
|
88
82
|
code;
|
|
89
83
|
name = 'SessionConfigurationTransitionError';
|
|
@@ -111,18 +105,21 @@ export class RuntimeRegenerateTurnError extends Error {
|
|
|
111
105
|
}
|
|
112
106
|
}
|
|
113
107
|
export class BackendRegistry {
|
|
114
|
-
|
|
115
|
-
register(kind,
|
|
116
|
-
this.
|
|
108
|
+
registrations = new Map();
|
|
109
|
+
register(kind, registration) {
|
|
110
|
+
this.registrations.set(kind, registration);
|
|
117
111
|
}
|
|
118
|
-
async
|
|
119
|
-
const
|
|
120
|
-
if (!
|
|
112
|
+
async prepare(kind, ctx) {
|
|
113
|
+
const registration = this.registrations.get(kind);
|
|
114
|
+
if (!registration)
|
|
121
115
|
throw new Error(`No backend factory registered for kind="${kind}"`);
|
|
122
|
-
|
|
116
|
+
if (typeof registration === 'function') {
|
|
117
|
+
return { build: registration };
|
|
118
|
+
}
|
|
119
|
+
return await registration.prepare(ctx);
|
|
123
120
|
}
|
|
124
121
|
has(kind) {
|
|
125
|
-
return this.
|
|
122
|
+
return this.registrations.has(kind);
|
|
126
123
|
}
|
|
127
124
|
}
|
|
128
125
|
export class SessionManager {
|
|
@@ -147,21 +144,11 @@ export class SessionManager {
|
|
|
147
144
|
deps.runtimeCommitSink ?? runtimeCommitSinkFromEventStore(deps.runtimeEventStore);
|
|
148
145
|
if (deps.runStore && deps.runtimeEventStore) {
|
|
149
146
|
this.runtimeLedgerRepair = new RuntimeLedgerRepair({
|
|
150
|
-
runStore: deps.runStore,
|
|
151
147
|
runtimeEventStore: deps.runtimeEventStore,
|
|
152
|
-
|
|
153
|
-
appendMessage: (sessionId, message) => deps.store.appendMessage(sessionId, message),
|
|
154
|
-
appendTurnState: (sessionId, turnId, status, lineage, options) => this.appendTurnState(sessionId, turnId, status, lineage, options),
|
|
155
|
-
newId: deps.newId,
|
|
156
|
-
now: deps.now,
|
|
148
|
+
readMessagesAfter: (sessionId, request) => deps.store.readMessagesAfter(sessionId, request),
|
|
157
149
|
});
|
|
158
150
|
}
|
|
159
|
-
this.runtimeKernel =
|
|
160
|
-
deps.runtimeKernel ??
|
|
161
|
-
new RuntimeKernel({
|
|
162
|
-
...deps,
|
|
163
|
-
repairRunRuntimeLedger: (sessionId, runId) => this.repairMissingTerminalFactOnce(sessionId, runId),
|
|
164
|
-
});
|
|
151
|
+
this.runtimeKernel = deps.runtimeKernel ?? new RuntimeKernel({ ...deps });
|
|
165
152
|
}
|
|
166
153
|
// --------------------------------------------------------------------------
|
|
167
154
|
// Session lifecycle
|
|
@@ -254,21 +241,42 @@ export class SessionManager {
|
|
|
254
241
|
const list = this.deps.listArtifactsForTurn;
|
|
255
242
|
if (!list)
|
|
256
243
|
return [];
|
|
257
|
-
|
|
258
|
-
if (
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
244
|
+
let artifacts = await list(sessionId, turnId);
|
|
245
|
+
if (isTerminalRunStatus(status) && this.hasWorktreePatchWriteBack()) {
|
|
246
|
+
const header = await this.deps.store.readHeader(sessionId);
|
|
247
|
+
if (header.subagentWorkspace &&
|
|
248
|
+
!artifacts.some((artifact) => artifact.source === 'subagent_writeback')) {
|
|
249
|
+
await this.finalizeChildWorkspacePatches(sessionId);
|
|
250
|
+
artifacts = await list(sessionId, turnId);
|
|
251
|
+
if (!artifacts.some((artifact) => artifact.source === 'subagent_writeback')) {
|
|
252
|
+
throw new Error(`Child Session ${sessionId} cannot reconstruct the historical workspace patch for Turn ${turnId}`);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
return artifacts.filter(isArtifactChildResultOutput);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* The Session's invocations, enumerated from the events that define them.
|
|
260
|
+
*
|
|
261
|
+
* There is no run table to consult: an invocation exists because its opening
|
|
262
|
+
* fact does, and it has ended because its terminal event does.
|
|
263
|
+
*/
|
|
264
|
+
async listInvocations(sessionId) {
|
|
265
|
+
const store = this.deps.runtimeEventStore;
|
|
266
|
+
if (!store)
|
|
267
|
+
return [];
|
|
268
|
+
return store.listSessionInvocations(sessionId);
|
|
269
|
+
}
|
|
270
|
+
/** One invocation by run id. Absent means no opening fact ever named it. */
|
|
271
|
+
async readInvocation(sessionId, runId) {
|
|
272
|
+
const store = this.deps.runtimeEventStore;
|
|
273
|
+
const invocation = store ? await readRunInvocation(store, sessionId, runId) : undefined;
|
|
274
|
+
if (!invocation) {
|
|
275
|
+
const error = new Error(`AgentRun ${runId} not found`);
|
|
276
|
+
error.code = 'ENOENT';
|
|
277
|
+
throw error;
|
|
278
|
+
}
|
|
279
|
+
return invocation;
|
|
272
280
|
}
|
|
273
281
|
/** Publish the recoverable write-back owed by the latest terminal worktree child Run. */
|
|
274
282
|
async finalizeChildWorkspacePatches(sessionId) {
|
|
@@ -278,12 +286,10 @@ export class SessionManager {
|
|
|
278
286
|
const binding = header.subagentWorkspace;
|
|
279
287
|
if (!binding)
|
|
280
288
|
return;
|
|
281
|
-
const latest = (await this.
|
|
282
|
-
.filter(isSessionInlineRun)
|
|
283
|
-
.sort((left, right) => right.createdAt - left.createdAt || right.runId.localeCompare(left.runId))[0];
|
|
289
|
+
const latest = latestInvocation((await this.listInvocations(sessionId)).filter((run) => isSessionInlineInvocation(run.opening)));
|
|
284
290
|
if (!latest)
|
|
285
291
|
return;
|
|
286
|
-
if (!
|
|
292
|
+
if (!latest.terminalEvent) {
|
|
287
293
|
throw new Error(`Child Session ${sessionId} cannot finalize its workspace while Run ${latest.runId} is nonterminal`);
|
|
288
294
|
}
|
|
289
295
|
const artifacts = await this.deps.listArtifactsForTurn(sessionId, latest.turnId);
|
|
@@ -317,7 +323,17 @@ export class SessionManager {
|
|
|
317
323
|
}
|
|
318
324
|
async transitionSessionConfiguration(sessionId, input) {
|
|
319
325
|
const store = this.requireSessionConfigurationStore();
|
|
320
|
-
const
|
|
326
|
+
const observed = await store.readHeaderRecordSnapshot(sessionId);
|
|
327
|
+
if (observed.revision !== input.expectedRevision) {
|
|
328
|
+
throw new SessionConfigurationRevisionConflictError(input.expectedRevision, observed.revision);
|
|
329
|
+
}
|
|
330
|
+
if (!input.clearConnectionBlock &&
|
|
331
|
+
sessionConfigurationMatches(observed.header, input.configuration)) {
|
|
332
|
+
return observed;
|
|
333
|
+
}
|
|
334
|
+
const permissionModeOnly = input.permissionModeOnly &&
|
|
335
|
+
sessionConfigurationMatchesExceptPermissionMode(observed.header, input.configuration);
|
|
336
|
+
const prepareCommit = async () => {
|
|
321
337
|
const current = await store.readHeaderRecordSnapshot(sessionId);
|
|
322
338
|
if (current.revision !== input.expectedRevision) {
|
|
323
339
|
throw new SessionConfigurationRevisionConflictError(input.expectedRevision, current.revision);
|
|
@@ -347,7 +363,10 @@ export class SessionManager {
|
|
|
347
363
|
}
|
|
348
364
|
: { kind: 'preserve' },
|
|
349
365
|
});
|
|
350
|
-
}
|
|
366
|
+
};
|
|
367
|
+
const next = permissionModeOnly
|
|
368
|
+
? await this.commitExecutionBoundaryTransition(sessionId, await this.deps.store.readExecutionBoundary(sessionId), input.configuration.permissionMode, prepareCommit)
|
|
369
|
+
: await this.commitExecutionResourceTransition(sessionId, input.configuration.permissionMode, prepareCommit);
|
|
351
370
|
this.runtimeKernel.updateCachedHeader(sessionId, next.header);
|
|
352
371
|
return next;
|
|
353
372
|
}
|
|
@@ -408,7 +427,9 @@ export class SessionManager {
|
|
|
408
427
|
async getContextDiagnostics(sessionId) {
|
|
409
428
|
const runStore = this.deps.runStore;
|
|
410
429
|
return runStore
|
|
411
|
-
? readLatestContextDiagnostics(runStore, sessionId)
|
|
430
|
+
? readLatestContextDiagnostics(runStore, sessionId, (await this.listInvocations(sessionId))
|
|
431
|
+
.filter((run) => isSessionInlineInvocation(run.opening))
|
|
432
|
+
.map((run) => run.runId))
|
|
412
433
|
: { status: 'unavailable', reason: 'trace_unavailable' };
|
|
413
434
|
}
|
|
414
435
|
async listTurns(sessionId) {
|
|
@@ -520,9 +541,6 @@ export class SessionManager {
|
|
|
520
541
|
const interrupted = (await listSessionsForRecovery(this.deps.store, policy)).filter((session) => !session.isArchived);
|
|
521
542
|
const recovered = new Set();
|
|
522
543
|
for (const session of interrupted) {
|
|
523
|
-
if (this.runtimeLedgerRepair) {
|
|
524
|
-
await recoverOr(policy, () => this.runtimeLedgerRepair.repairSteeringMessagesOnce(session.id), 0);
|
|
525
|
-
}
|
|
526
544
|
if (this.runtimeKernel.hasActiveRuns(session.id))
|
|
527
545
|
continue;
|
|
528
546
|
// Fail-closed: a request whose live owner died can never be answered, so
|
|
@@ -542,39 +560,15 @@ export class SessionManager {
|
|
|
542
560
|
}), undefined);
|
|
543
561
|
}
|
|
544
562
|
}
|
|
545
|
-
if (this.deps.planStore) {
|
|
546
|
-
const planRecovery = await recoverOr(policy, () => this.deps.planStore.interruptActiveExecution(session.id, 'runtime_recovery'), null);
|
|
547
|
-
if (planRecovery)
|
|
548
|
-
recovered.add(session.id);
|
|
549
|
-
}
|
|
550
563
|
if (this.deps.shellRuns) {
|
|
551
564
|
const recoveredShellRuns = await recoverOr(policy, () => this.deps.shellRuns.recoverOrphanedSession(session.id), 0);
|
|
552
565
|
if (recoveredShellRuns > 0)
|
|
553
566
|
recovered.add(session.id);
|
|
554
567
|
}
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
policy.kind === 'strict'
|
|
560
|
-
? await policy.stores.sessionStore.readMessagesForRecovery(session.id)
|
|
561
|
-
: await this.deps.store.readMessages(session.id);
|
|
562
|
-
}
|
|
563
|
-
catch (error) {
|
|
564
|
-
if (policy.kind === 'strict')
|
|
565
|
-
throw error;
|
|
566
|
-
messagesReadable = false;
|
|
567
|
-
}
|
|
568
|
-
if (session.revisionState === 'preparing' && messagesReadable) {
|
|
569
|
-
if (hasRevisionUserMessage(messages)) {
|
|
570
|
-
await recoverOr(policy, () => this.commitRevisionVersion(session.id), undefined);
|
|
571
|
-
}
|
|
572
|
-
else {
|
|
573
|
-
await recoverOr(policy, () => this.remove(session.id), undefined);
|
|
574
|
-
recovered.add(session.id);
|
|
575
|
-
continue;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
568
|
+
// A revision copy still `preparing` is settled by the Host's revision
|
|
569
|
+
// coordinator, which reads the admission ledger and runs before this
|
|
570
|
+
// recovery. Deciding it a second time here — off a transcript scan, and
|
|
571
|
+
// ending in `remove()` — could only ever contradict it.
|
|
578
572
|
let continuationClaimRecovered = false;
|
|
579
573
|
const continuationAuthority = runtimeContinuationAuthority(this.deps.runtimeEventStore);
|
|
580
574
|
if (this.deps.runStore && continuationAuthority) {
|
|
@@ -593,6 +587,24 @@ export class SessionManager {
|
|
|
593
587
|
if (continuationClaimRecovered)
|
|
594
588
|
recovered.add(session.id);
|
|
595
589
|
}
|
|
590
|
+
if (this.deps.planStore) {
|
|
591
|
+
const preservesHandoff = await recoverOr(policy, async () => {
|
|
592
|
+
if (!continuationAuthority)
|
|
593
|
+
return false;
|
|
594
|
+
const latest = latestInvocation((await this.listInvocations(session.id)).filter((run) => isSessionInlineInvocation(run.opening)));
|
|
595
|
+
if (!latest)
|
|
596
|
+
return false;
|
|
597
|
+
// Only the current logical execution may preserve a session-owned Plan.
|
|
598
|
+
// Read after claim repair: an abandoned successor now has a real failure.
|
|
599
|
+
return Boolean((await readLogicalRuntimeExecutionForRun(continuationAuthority, latest))
|
|
600
|
+
?.pendingHandoff);
|
|
601
|
+
}, false);
|
|
602
|
+
if (!preservesHandoff) {
|
|
603
|
+
const planRecovery = await recoverOr(policy, () => this.deps.planStore.interruptActiveExecution(session.id, 'runtime_recovery'), null);
|
|
604
|
+
if (planRecovery)
|
|
605
|
+
recovered.add(session.id);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
596
608
|
if (this.deps.runStore) {
|
|
597
609
|
const runRecovery = await recoverOr(policy, () => this.recoverAgentRunsFromLedger(session.id, policy), undefined);
|
|
598
610
|
if (runRecovery?.hasLedger) {
|
|
@@ -600,44 +612,23 @@ export class SessionManager {
|
|
|
600
612
|
await recoverOr(policy, () => this.updateStatus(session.id, 'active'), undefined);
|
|
601
613
|
recovered.add(session.id);
|
|
602
614
|
}
|
|
603
|
-
else if (!messagesReadable &&
|
|
604
|
-
(session.status === 'running' || session.status === 'waiting_for_user')) {
|
|
605
|
-
await recoverOr(policy, () => this.updateStatus(session.id, 'active'), undefined);
|
|
606
|
-
recovered.add(session.id);
|
|
607
|
-
}
|
|
608
615
|
continue;
|
|
609
616
|
}
|
|
610
617
|
}
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
if (this.runtimeKernel.hasActiveRuns(session.id))
|
|
617
|
-
continue;
|
|
618
|
-
await recoverOr(policy, () => this.updateStatus(session.id, 'active'), undefined);
|
|
619
|
-
recovered.add(session.id);
|
|
620
|
-
}
|
|
621
|
-
continue;
|
|
622
|
-
}
|
|
623
|
-
const recoveries = interruptedTurnRecoveries(messages);
|
|
624
|
-
if (recoveries.length === 0)
|
|
625
|
-
continue;
|
|
626
|
-
for (const recovery of recoveries) {
|
|
627
|
-
await recoverOr(policy, () => this.appendTurnState(session.id, recovery.turnId, 'failed', recovery.lineage, {
|
|
628
|
-
errorClass: recovery.errorClass,
|
|
629
|
-
}), undefined);
|
|
630
|
-
}
|
|
618
|
+
// No ledger and nothing to recover from it. A Session whose turns were
|
|
619
|
+
// interrupted before this process started is settled by the transcript
|
|
620
|
+
// importer, which converts a turn that never recorded how it ended into
|
|
621
|
+
// the failed terminal fact it actually was — this recovery has no second
|
|
622
|
+
// transcript to read that from.
|
|
631
623
|
if (session.status === 'running' || session.status === 'waiting_for_user') {
|
|
632
|
-
//
|
|
633
|
-
//
|
|
634
|
-
|
|
635
|
-
|
|
624
|
+
// Recovery may run in BACKGROUND startup (#456): re-check for a run the
|
|
625
|
+
// user started while this session's recovery was in flight, so we never
|
|
626
|
+
// stomp a live run's status.
|
|
627
|
+
if (this.runtimeKernel.hasActiveRuns(session.id))
|
|
636
628
|
continue;
|
|
637
|
-
}
|
|
638
629
|
await recoverOr(policy, () => this.updateStatus(session.id, 'active'), undefined);
|
|
630
|
+
recovered.add(session.id);
|
|
639
631
|
}
|
|
640
|
-
recovered.add(session.id);
|
|
641
632
|
}
|
|
642
633
|
return [...recovered];
|
|
643
634
|
}
|
|
@@ -674,6 +665,23 @@ export class SessionManager {
|
|
|
674
665
|
return this.runtimeKernel.listActiveInteractions?.(sessionId) ?? [];
|
|
675
666
|
}
|
|
676
667
|
async setPermissionMode(sessionId, mode) {
|
|
668
|
+
const readHeaderRecordSnapshot = this.deps.store.readHeaderRecordSnapshot?.bind(this.deps.store);
|
|
669
|
+
if (!readHeaderRecordSnapshot || !this.deps.store.updateSessionConfiguration) {
|
|
670
|
+
// Temporary compatibility bridge for SessionStore embeddings that predate
|
|
671
|
+
// versioned configuration authority. A follow-up PR will shortly remove
|
|
672
|
+
// setPermissionMode and this redundant fallback after callers migrate.
|
|
673
|
+
return this.setPermissionModeWithLegacyStore(sessionId, mode);
|
|
674
|
+
}
|
|
675
|
+
const current = await readHeaderRecordSnapshot(sessionId);
|
|
676
|
+
const next = await this.transitionSessionConfiguration(sessionId, {
|
|
677
|
+
expectedRevision: current.revision,
|
|
678
|
+
clearConnectionBlock: false,
|
|
679
|
+
permissionModeOnly: true,
|
|
680
|
+
configuration: sessionConfigurationWithPermissionMode(current.header, mode),
|
|
681
|
+
});
|
|
682
|
+
return headerToSummary(next.header);
|
|
683
|
+
}
|
|
684
|
+
async setPermissionModeWithLegacyStore(sessionId, mode) {
|
|
677
685
|
const previous = await this.deps.store.readHeader(sessionId);
|
|
678
686
|
const boundary = await this.deps.store.readExecutionBoundary(sessionId);
|
|
679
687
|
const leavingDeepResearch = isDeepResearchSession(previous.labels) && mode !== 'explore';
|
|
@@ -682,54 +690,75 @@ export class SessionManager {
|
|
|
682
690
|
!leavingDeepResearch) {
|
|
683
691
|
return headerToSummary(previous);
|
|
684
692
|
}
|
|
685
|
-
if (this.runtimeKernel.hasActiveRuns(sessionId)) {
|
|
686
|
-
throw new Error('当前任务正在运行,等结束后再切换权限模式。');
|
|
687
|
-
}
|
|
688
|
-
if (previous.status === 'waiting_for_user') {
|
|
689
|
-
throw new Error('当前有工具调用正在等待确认,处理后再切换权限模式。');
|
|
690
|
-
}
|
|
691
693
|
const labels = leavingDeepResearch
|
|
692
694
|
? previous.labels.filter((label) => label !== DEEP_RESEARCH_SESSION_LABEL)
|
|
693
695
|
: previous.labels;
|
|
694
|
-
const
|
|
695
|
-
await this.commitExecutionBoundaryTransition(sessionId, boundary,
|
|
696
|
-
|
|
697
|
-
|
|
696
|
+
const kind = mode === 'bypass' ? 'bypass' : 'managed';
|
|
697
|
+
await this.commitExecutionBoundaryTransition(sessionId, boundary, mode, async () => {
|
|
698
|
+
const current = await this.deps.store.readHeader(sessionId);
|
|
699
|
+
if (current.status === 'waiting_for_user') {
|
|
700
|
+
throw new SessionConfigurationTransitionError('session_busy', 'Session has a pending Interaction');
|
|
701
|
+
}
|
|
702
|
+
return () => this.deps.store.setExecutionBoundaryKind(sessionId, kind, {
|
|
703
|
+
permissionMode: mode,
|
|
704
|
+
labels,
|
|
705
|
+
});
|
|
698
706
|
});
|
|
699
707
|
const next = await this.deps.store.readHeader(sessionId);
|
|
700
708
|
this.runtimeKernel.updateCachedHeader(sessionId, next);
|
|
701
|
-
await this.deps.store
|
|
702
|
-
.appendMessage(sessionId, {
|
|
703
|
-
type: 'system_note',
|
|
704
|
-
id: this.deps.newId(),
|
|
705
|
-
ts: this.deps.now(),
|
|
706
|
-
kind: 'mode_change',
|
|
707
|
-
data: { from: previous.permissionMode, to: mode },
|
|
708
|
-
})
|
|
709
|
-
.catch(() => undefined);
|
|
710
709
|
return headerToSummary(next);
|
|
711
710
|
}
|
|
712
711
|
async setExecutionBoundaryKind(sessionId, kind) {
|
|
713
|
-
|
|
714
|
-
throw new Error('当前任务正在运行,等结束后再切换沙箱边界。');
|
|
715
|
-
}
|
|
712
|
+
const current = await this.deps.store.readExecutionBoundary(sessionId);
|
|
716
713
|
const header = await this.deps.store.readHeader(sessionId);
|
|
714
|
+
// Managed includes Explore. Match Storage's default projection, then pass
|
|
715
|
+
// it explicitly so classification and commit describe the same transition.
|
|
716
|
+
const permissionMode = kind === 'bypass'
|
|
717
|
+
? 'bypass'
|
|
718
|
+
: header.permissionMode === 'bypass'
|
|
719
|
+
? 'ask'
|
|
720
|
+
: header.permissionMode;
|
|
721
|
+
const narrows = narrowsExecutionAuthority(current, permissionMode);
|
|
722
|
+
if (narrows && this.runtimeKernel.hasActiveRuns(sessionId)) {
|
|
723
|
+
throw new SessionConfigurationTransitionError('session_busy', 'Execution boundary cannot change while a Turn is running');
|
|
724
|
+
}
|
|
717
725
|
if (header.status === 'waiting_for_user') {
|
|
718
|
-
throw new
|
|
726
|
+
throw new SessionConfigurationTransitionError('session_busy', 'Execution boundary cannot change while an Interaction is pending');
|
|
719
727
|
}
|
|
720
|
-
const
|
|
721
|
-
const boundary = await this.commitExecutionBoundaryTransition(sessionId, current, kind);
|
|
728
|
+
const boundary = await this.commitExecutionBoundaryTransition(sessionId, current, permissionMode, async () => () => this.deps.store.setExecutionBoundaryKind(sessionId, kind, { permissionMode }));
|
|
722
729
|
return boundary;
|
|
723
730
|
}
|
|
724
|
-
async commitExecutionBoundaryTransition(sessionId, current,
|
|
725
|
-
const
|
|
726
|
-
return this.commitExecutionResourceTransition(sessionId, nextPermissionMode, async () => {
|
|
731
|
+
async commitExecutionBoundaryTransition(sessionId, current, nextPermissionMode, prepareCommit) {
|
|
732
|
+
const prepareBoundaryCommit = async () => {
|
|
727
733
|
const latest = await this.deps.store.readExecutionBoundary(sessionId);
|
|
728
734
|
if (latest.revision !== current.revision) {
|
|
729
735
|
throw new SessionConfigurationTransitionError('operation_conflict', 'Session execution boundary changed before the transition');
|
|
730
736
|
}
|
|
731
|
-
return ()
|
|
732
|
-
}
|
|
737
|
+
return prepareCommit();
|
|
738
|
+
};
|
|
739
|
+
if (!narrowsExecutionAuthority(current, nextPermissionMode)) {
|
|
740
|
+
// Widening needs no quiescence. Every consumer that froze the old, tighter
|
|
741
|
+
// boundary fails closed against a wider one, and a descendant's admission
|
|
742
|
+
// check only gets easier — so the grant is just written. Waiting for the
|
|
743
|
+
// Session to go idle is what let a running Turn, or a Goal's continuation
|
|
744
|
+
// holding a claim near-continuously, keep the user's own grant out.
|
|
745
|
+
if (!this.runtimeKernel.runSessionAdmissionMutation) {
|
|
746
|
+
throw new SessionConfigurationTransitionError('operation_unavailable', 'Session boundary changes require Runtime admission mutation authority');
|
|
747
|
+
}
|
|
748
|
+
// Serialize the revision check through commit without requiring an idle
|
|
749
|
+
// Turn. Otherwise two unversioned writes can both pass the check, then
|
|
750
|
+
// the later write can narrow the first grant using its stale classification.
|
|
751
|
+
const result = await this.runtimeKernel.runSessionAdmissionMutation([sessionId], async () => {
|
|
752
|
+
const commit = await prepareBoundaryCommit();
|
|
753
|
+
return commit();
|
|
754
|
+
});
|
|
755
|
+
// Not `disposeBackend`: disposing a live Turn's backend stops that Turn.
|
|
756
|
+
// Invalidation refreshes it now when the Session is idle, and otherwise
|
|
757
|
+
// defers to the next activation, which disposes before it starts.
|
|
758
|
+
await this.runtimeKernel.invalidateBackend(sessionId);
|
|
759
|
+
return result;
|
|
760
|
+
}
|
|
761
|
+
return this.commitExecutionResourceTransition(sessionId, nextPermissionMode, prepareBoundaryCommit);
|
|
733
762
|
}
|
|
734
763
|
async commitExecutionResourceTransition(sessionId, nextPermissionMode, prepareCommit) {
|
|
735
764
|
const initialBoundary = await this.deps.store.readExecutionBoundary(sessionId);
|
|
@@ -812,6 +841,30 @@ export class SessionManager {
|
|
|
812
841
|
throw error;
|
|
813
842
|
}
|
|
814
843
|
}
|
|
844
|
+
/**
|
|
845
|
+
* Fences a Session and every subagent Session under it for one operation.
|
|
846
|
+
*
|
|
847
|
+
* Preparing a bundle reads a Session's whole subtree, and a child holds the
|
|
848
|
+
* result of a tool call its parent made -- so a Turn starting anywhere in
|
|
849
|
+
* that tree while the read is in progress produces a bundle describing two
|
|
850
|
+
* moments. Refuses outright if any of them is already running.
|
|
851
|
+
*/
|
|
852
|
+
async runSessionSubtreeQuiescentMutation(sessionId, operation) {
|
|
853
|
+
const descendants = await this.listLinkedDescendantSessionIds(sessionId);
|
|
854
|
+
const fenced = [sessionId, ...descendants];
|
|
855
|
+
return this.runSessionQuiescentMutation(fenced, async () => {
|
|
856
|
+
// Discovered again, now that the fence is held. The first walk happened
|
|
857
|
+
// before it, so a child created in that gap is in the subtree and NOT in
|
|
858
|
+
// what was fenced -- the operation would read it without it being held
|
|
859
|
+
// still. Refusing is the only honest answer: fencing it now would be
|
|
860
|
+
// fencing a set this call never admitted.
|
|
861
|
+
const current = await this.listLinkedDescendantSessionIds(sessionId);
|
|
862
|
+
if (current.length !== descendants.length || current.some((id) => !fenced.includes(id))) {
|
|
863
|
+
throw new SessionConfigurationTransitionError('operation_conflict', 'Session lineage changed while the subtree was being fenced');
|
|
864
|
+
}
|
|
865
|
+
return operation(fenced);
|
|
866
|
+
});
|
|
867
|
+
}
|
|
815
868
|
async listLinkedDescendantSessionIds(sessionId) {
|
|
816
869
|
const sessions = await this.deps.store.list();
|
|
817
870
|
const childrenByParent = new Map();
|
|
@@ -851,29 +904,22 @@ export class SessionManager {
|
|
|
851
904
|
throw new PlanConflictError('Linked child Sessions cannot enter Plan mode');
|
|
852
905
|
}
|
|
853
906
|
if (this.runtimeKernel.hasActiveRuns(sessionId)) {
|
|
854
|
-
throw new
|
|
907
|
+
throw new SessionConfigurationTransitionError('session_busy', 'Collaboration mode cannot change while a Turn is running');
|
|
855
908
|
}
|
|
856
909
|
if (previous.status === 'waiting_for_user') {
|
|
857
|
-
throw new
|
|
910
|
+
throw new SessionConfigurationTransitionError('session_busy', 'Collaboration mode cannot change while an Interaction is pending');
|
|
858
911
|
}
|
|
859
912
|
const planState = await this.requirePlanStore().readState(sessionId);
|
|
860
913
|
if (mode === 'plan' && planState.activeExecutionId) {
|
|
861
|
-
throw new
|
|
914
|
+
throw new SessionConfigurationTransitionError('session_busy', 'An active Plan execution prevents entering Plan mode');
|
|
862
915
|
}
|
|
863
916
|
const latestProposal = planState.proposals.find((proposal) => proposal.proposalId === planState.latestProposalId);
|
|
864
917
|
if (mode === 'agent' && latestProposal?.status === 'pending_approval') {
|
|
865
|
-
throw new
|
|
918
|
+
throw new SessionConfigurationTransitionError('operation_conflict', 'A pending Plan proposal must be resolved before leaving Plan mode');
|
|
866
919
|
}
|
|
867
920
|
const next = await this.deps.store.updateHeader(sessionId, {
|
|
868
921
|
collaborationMode: mode,
|
|
869
922
|
});
|
|
870
|
-
await this.deps.store.appendMessage(sessionId, {
|
|
871
|
-
type: 'system_note',
|
|
872
|
-
id: this.deps.newId(),
|
|
873
|
-
ts: this.deps.now(),
|
|
874
|
-
kind: 'mode_change',
|
|
875
|
-
data: { dimension: 'collaboration', from, to: mode },
|
|
876
|
-
});
|
|
877
923
|
this.runtimeKernel.updateCachedHeader(sessionId, next);
|
|
878
924
|
await this.runtimeKernel.disposeBackend(sessionId);
|
|
879
925
|
return headerToSummary(next);
|
|
@@ -890,13 +936,6 @@ export class SessionManager {
|
|
|
890
936
|
throw new Error('Cannot change orchestration mode while a tool call awaits confirmation.');
|
|
891
937
|
}
|
|
892
938
|
const next = await this.deps.store.updateHeader(sessionId, { orchestrationMode: mode });
|
|
893
|
-
await this.deps.store.appendMessage(sessionId, {
|
|
894
|
-
type: 'system_note',
|
|
895
|
-
id: this.deps.newId(),
|
|
896
|
-
ts: this.deps.now(),
|
|
897
|
-
kind: 'mode_change',
|
|
898
|
-
data: { dimension: 'orchestration', from, to: mode },
|
|
899
|
-
});
|
|
900
939
|
this.runtimeKernel.updateCachedHeader(sessionId, next);
|
|
901
940
|
return headerToSummary(next);
|
|
902
941
|
}
|
|
@@ -931,7 +970,7 @@ export class SessionManager {
|
|
|
931
970
|
if (!replay)
|
|
932
971
|
await this.runtimeKernel.disposeBackend(sessionId);
|
|
933
972
|
const result = await this.requirePlanStore().abandonProposal(input);
|
|
934
|
-
await this.finalizePlanAbandonment(sessionId
|
|
973
|
+
await this.finalizePlanAbandonment(sessionId);
|
|
935
974
|
return result;
|
|
936
975
|
}
|
|
937
976
|
async approvePlan(input) {
|
|
@@ -1030,12 +1069,45 @@ export class SessionManager {
|
|
|
1030
1069
|
: options.admitTurn;
|
|
1031
1070
|
yield* this.runtimeKernel.startTurn(sessionId, input, { ...options, admitTurn });
|
|
1032
1071
|
}
|
|
1033
|
-
async planSafeBoundaryContinuation(sessionId, input) {
|
|
1072
|
+
async planSafeBoundaryContinuation(sessionId, input, preview) {
|
|
1073
|
+
let admissionRoute;
|
|
1074
|
+
try {
|
|
1075
|
+
if (!this.deps.runStore)
|
|
1076
|
+
throw new Error('AgentRunStore is not configured');
|
|
1077
|
+
const [header, invocations] = await Promise.all([
|
|
1078
|
+
this.deps.store.readHeader(sessionId),
|
|
1079
|
+
this.listInvocations(sessionId),
|
|
1080
|
+
]);
|
|
1081
|
+
const targetProviderStateIdentity = (await this.deps.backends.prepare(header.backend, {
|
|
1082
|
+
sessionId,
|
|
1083
|
+
workspaceRoot: header.workspaceRoot,
|
|
1084
|
+
header,
|
|
1085
|
+
})).providerStateIdentity;
|
|
1086
|
+
admissionRoute = {
|
|
1087
|
+
invocations,
|
|
1088
|
+
targetProviderStateIdentity,
|
|
1089
|
+
targetModelId: header.model,
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
catch {
|
|
1093
|
+
const plan = {
|
|
1094
|
+
disposition: 'park',
|
|
1095
|
+
rejectionReasons: ['continuation_authority_unavailable'],
|
|
1096
|
+
diagnostics: [
|
|
1097
|
+
{
|
|
1098
|
+
code: 'continuation_authority_unavailable',
|
|
1099
|
+
message: 'provider replay admission authority is unavailable',
|
|
1100
|
+
},
|
|
1101
|
+
],
|
|
1102
|
+
};
|
|
1103
|
+
this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
|
|
1104
|
+
return plan;
|
|
1105
|
+
}
|
|
1034
1106
|
const planner = new RuntimeContinuationPlanner({
|
|
1035
|
-
|
|
1107
|
+
readSourceInvocation: async (targetSessionId, runId) => {
|
|
1036
1108
|
if (!this.deps.runStore)
|
|
1037
1109
|
throw new Error('AgentRunStore is not configured');
|
|
1038
|
-
return this.
|
|
1110
|
+
return this.readInvocation(targetSessionId, runId);
|
|
1039
1111
|
},
|
|
1040
1112
|
readImmutableRuntimePrefix: async (prefixInput) => {
|
|
1041
1113
|
const authority = runtimeContinuationAuthority(this.deps.runtimeEventStore);
|
|
@@ -1053,17 +1125,25 @@ export class SessionManager {
|
|
|
1053
1125
|
findExistingContinuation: async (targetSessionId, sourceRunId, sourceRuntimeEventHighWater) => {
|
|
1054
1126
|
if (!this.deps.runStore)
|
|
1055
1127
|
throw new Error('AgentRunStore is not configured');
|
|
1056
|
-
return (await this.
|
|
1057
|
-
run.
|
|
1128
|
+
return (await this.listInvocations(targetSessionId)).find((run) => {
|
|
1129
|
+
const source = run.opening.source;
|
|
1130
|
+
return (source.kind !== 'fresh' &&
|
|
1131
|
+
source.sourceRunId === sourceRunId &&
|
|
1132
|
+
source.sourceRuntimeEventHighWater === sourceRuntimeEventHighWater);
|
|
1133
|
+
});
|
|
1058
1134
|
},
|
|
1059
1135
|
newId: this.deps.newId,
|
|
1060
1136
|
});
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1137
|
+
const plannerInput = { sessionId, admissionRoute, ...input };
|
|
1138
|
+
const plan = preview
|
|
1139
|
+
? await planner.previewHandoff(plannerInput, preview)
|
|
1140
|
+
: await planner.plan(plannerInput);
|
|
1141
|
+
if (!preview)
|
|
1142
|
+
this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
|
|
1063
1143
|
return plan;
|
|
1064
1144
|
}
|
|
1065
|
-
async planAuthoritativeSafeBoundaryContinuation(sessionId, input) {
|
|
1066
|
-
if (this.deps.safeBoundaryResumeEnabled !== true) {
|
|
1145
|
+
async planAuthoritativeSafeBoundaryContinuation(sessionId, input, preview) {
|
|
1146
|
+
if (input.purpose !== 'handoff' && this.deps.safeBoundaryResumeEnabled !== true) {
|
|
1067
1147
|
const plan = resumeFeatureDisabledPlan();
|
|
1068
1148
|
this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
|
|
1069
1149
|
return plan;
|
|
@@ -1082,9 +1162,7 @@ export class SessionManager {
|
|
|
1082
1162
|
this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
|
|
1083
1163
|
return plan;
|
|
1084
1164
|
}
|
|
1085
|
-
const sourceRun = await this.
|
|
1086
|
-
.readRun(sessionId, input.sourceRunId)
|
|
1087
|
-
.catch(() => undefined);
|
|
1165
|
+
const sourceRun = await this.readInvocation(sessionId, input.sourceRunId).catch(() => undefined);
|
|
1088
1166
|
if (!sourceRun) {
|
|
1089
1167
|
const plan = {
|
|
1090
1168
|
disposition: 'park',
|
|
@@ -1096,7 +1174,7 @@ export class SessionManager {
|
|
|
1096
1174
|
this.recordContinuationPlan(sessionId, input.sourceRunId, plan);
|
|
1097
1175
|
return plan;
|
|
1098
1176
|
}
|
|
1099
|
-
if (!sourceRun.workspaceIdentity) {
|
|
1177
|
+
if (!sourceRun.opening.configuration.workspaceIdentity) {
|
|
1100
1178
|
const plan = {
|
|
1101
1179
|
disposition: 'park',
|
|
1102
1180
|
rejectionReasons: ['workspace_identity_missing'],
|
|
@@ -1130,9 +1208,10 @@ export class SessionManager {
|
|
|
1130
1208
|
return plan;
|
|
1131
1209
|
}
|
|
1132
1210
|
return this.planSafeBoundaryContinuation(sessionId, {
|
|
1211
|
+
...(input.purpose ? { purpose: input.purpose } : {}),
|
|
1133
1212
|
sourceRunId: input.sourceRunId,
|
|
1134
1213
|
currentCwd: header.cwd,
|
|
1135
|
-
sourceWorkspaceIdentity: sourceRun.workspaceIdentity,
|
|
1214
|
+
sourceWorkspaceIdentity: sourceRun.opening.configuration.workspaceIdentity,
|
|
1136
1215
|
currentWorkspaceIdentity: observation.workspaceIdentity,
|
|
1137
1216
|
backgroundOperationsSettled: observation.backgroundOperationsSettled,
|
|
1138
1217
|
availableToolNames: observation.availableToolNames,
|
|
@@ -1142,7 +1221,7 @@ export class SessionManager {
|
|
|
1142
1221
|
...(observation.workspaceCheckpoint
|
|
1143
1222
|
? { workspaceCheckpoint: observation.workspaceCheckpoint }
|
|
1144
1223
|
: {}),
|
|
1145
|
-
});
|
|
1224
|
+
}, preview);
|
|
1146
1225
|
}
|
|
1147
1226
|
async planLatestAuthoritativeSafeBoundaryContinuation(sessionId) {
|
|
1148
1227
|
if (this.deps.safeBoundaryResumeEnabled !== true) {
|
|
@@ -1164,9 +1243,11 @@ export class SessionManager {
|
|
|
1164
1243
|
this.recordContinuationPlan(sessionId, '', plan);
|
|
1165
1244
|
return plan;
|
|
1166
1245
|
}
|
|
1167
|
-
const candidate = (await this.
|
|
1168
|
-
|
|
1169
|
-
|
|
1246
|
+
const candidate = latestInvocation((await this.listInvocations(sessionId)).filter((run) => {
|
|
1247
|
+
const outcome = runtimeInvocationOutcome(run);
|
|
1248
|
+
return ((outcome === 'failed' || outcome === 'cancelled') &&
|
|
1249
|
+
isSessionInlineInvocation(run.opening));
|
|
1250
|
+
}));
|
|
1170
1251
|
if (!candidate) {
|
|
1171
1252
|
const plan = {
|
|
1172
1253
|
disposition: 'park',
|
|
@@ -1185,6 +1266,37 @@ export class SessionManager {
|
|
|
1185
1266
|
sourceRunId: candidate.runId,
|
|
1186
1267
|
});
|
|
1187
1268
|
}
|
|
1269
|
+
requestRunHandoff(sessionId, runId, intent, signal) {
|
|
1270
|
+
const request = this.runtimeKernel.requestRunHandoff?.(sessionId, runId, intent, signal);
|
|
1271
|
+
if (!request)
|
|
1272
|
+
return undefined;
|
|
1273
|
+
let verified = false;
|
|
1274
|
+
const ready = request.ready.then(async (held) => {
|
|
1275
|
+
if (!held)
|
|
1276
|
+
return false;
|
|
1277
|
+
try {
|
|
1278
|
+
const assessment = await this.planAuthoritativeSafeBoundaryContinuation(sessionId, { sourceRunId: runId, purpose: 'handoff' }, request.preview());
|
|
1279
|
+
request.preview(); // Cancellation or Stop may have released the gate during inspection.
|
|
1280
|
+
verified = assessment.disposition === 'continue' && !signal.aborted;
|
|
1281
|
+
if (!verified)
|
|
1282
|
+
request.cancel();
|
|
1283
|
+
return verified;
|
|
1284
|
+
}
|
|
1285
|
+
catch {
|
|
1286
|
+
request.cancel();
|
|
1287
|
+
return false;
|
|
1288
|
+
}
|
|
1289
|
+
});
|
|
1290
|
+
return {
|
|
1291
|
+
ready,
|
|
1292
|
+
sealed: request.sealed,
|
|
1293
|
+
commit: () => verified && request.commit(),
|
|
1294
|
+
cancel: () => {
|
|
1295
|
+
verified = false;
|
|
1296
|
+
request.cancel();
|
|
1297
|
+
},
|
|
1298
|
+
};
|
|
1299
|
+
}
|
|
1188
1300
|
async *resumeSafeBoundaryContinuation(continuation, options = {}) {
|
|
1189
1301
|
const resume = this.runtimeKernel.resumeContinuation;
|
|
1190
1302
|
if (!resume)
|
|
@@ -1242,6 +1354,9 @@ export class SessionManager {
|
|
|
1242
1354
|
// Operational telemetry must never alter resume correctness.
|
|
1243
1355
|
}
|
|
1244
1356
|
}
|
|
1357
|
+
runCoordinationOperation(sessionId, input, options, execute) {
|
|
1358
|
+
return this.runtimeKernel.runCoordinationOperation(sessionId, input, options, execute);
|
|
1359
|
+
}
|
|
1245
1360
|
async *compactSession(sessionId, input = {}) {
|
|
1246
1361
|
yield* this.runtimeKernel.compactSession(sessionId, input);
|
|
1247
1362
|
}
|
|
@@ -1315,7 +1430,7 @@ export class SessionManager {
|
|
|
1315
1430
|
}
|
|
1316
1431
|
const [parentHeader, sourceRun, parentBoundary] = await Promise.all([
|
|
1317
1432
|
this.deps.store.readHeader(input.source.sessionId),
|
|
1318
|
-
this.
|
|
1433
|
+
this.readInvocation(input.source.sessionId, input.source.runId),
|
|
1319
1434
|
this.deps.store.readExecutionBoundary(input.source.sessionId),
|
|
1320
1435
|
]);
|
|
1321
1436
|
if (sourceRun.sessionId !== input.source.sessionId ||
|
|
@@ -1414,6 +1529,7 @@ export class SessionManager {
|
|
|
1414
1529
|
permissionMode: childPermissionMode,
|
|
1415
1530
|
collaborationMode: 'agent',
|
|
1416
1531
|
orchestrationMode: 'default',
|
|
1532
|
+
toolMode: parentHeader.toolMode ?? DEFAULT_TOOL_MODE,
|
|
1417
1533
|
subagentParent: {
|
|
1418
1534
|
kind: 'subagent',
|
|
1419
1535
|
parentSessionId: input.source.sessionId,
|
|
@@ -1597,7 +1713,7 @@ export class SessionManager {
|
|
|
1597
1713
|
});
|
|
1598
1714
|
return readyNotification;
|
|
1599
1715
|
};
|
|
1600
|
-
let run = await this.
|
|
1716
|
+
let run = await this.readInvocation(child.id, claim.targetRunId).catch((error) => {
|
|
1601
1717
|
if (isNotFoundError(error))
|
|
1602
1718
|
return undefined;
|
|
1603
1719
|
throw error;
|
|
@@ -1617,7 +1733,7 @@ export class SessionManager {
|
|
|
1617
1733
|
throw new RuntimeMessageAuthorityInvariantError('Hosted retry attempted to start an existing claimed graph Run');
|
|
1618
1734
|
},
|
|
1619
1735
|
});
|
|
1620
|
-
run = await this.
|
|
1736
|
+
run = await this.readInvocation(child.id, claim.targetRunId);
|
|
1621
1737
|
this.assertClaimedAgentGraphRun(child, snapshot, claim, run);
|
|
1622
1738
|
await this.assertClaimedAgentGraphPrompt(child.id, claim.targetTurnId, input.prompt, admission.userMessageId);
|
|
1623
1739
|
await notifyReady();
|
|
@@ -1625,31 +1741,26 @@ export class SessionManager {
|
|
|
1625
1741
|
}
|
|
1626
1742
|
await this.assertClaimedAgentGraphPrompt(child.id, claim.targetTurnId, input.prompt);
|
|
1627
1743
|
await notifyReady();
|
|
1628
|
-
while (!
|
|
1744
|
+
while (!run.terminalEvent &&
|
|
1629
1745
|
this.runtimeKernel.hasActiveRun?.(child.id, run.runId, run.turnId)) {
|
|
1630
1746
|
await delay(25, undefined, input.abortSignal ? { signal: input.abortSignal } : undefined);
|
|
1631
|
-
run = await this.
|
|
1747
|
+
run = await this.readInvocation(child.id, claim.targetRunId);
|
|
1632
1748
|
}
|
|
1633
|
-
if (!
|
|
1749
|
+
if (!run.terminalEvent) {
|
|
1634
1750
|
await this.recoverAgentRunsFromLedger(child.id);
|
|
1635
|
-
run = await this.
|
|
1751
|
+
run = await this.readInvocation(child.id, claim.targetRunId);
|
|
1636
1752
|
}
|
|
1637
1753
|
this.assertClaimedAgentGraphRun(child, snapshot, claim, run);
|
|
1638
1754
|
await this.assertClaimedAgentGraphPrompt(child.id, claim.targetTurnId, input.prompt);
|
|
1639
1755
|
return claimedAgentGraphIntentResult(claim, await this.projectExistingChildSpawn(child, run));
|
|
1640
1756
|
}
|
|
1641
1757
|
await this.finalizeChildWorkspacePatches(child.id);
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
]);
|
|
1646
|
-
const turnOwner = runs.find((candidate) => candidate.turnId === claim.targetTurnId);
|
|
1758
|
+
// An invocation is what makes a Turn exist on the ledger, so the run listing
|
|
1759
|
+
// is the whole occupancy check: a Turn with durable content has one.
|
|
1760
|
+
const turnOwner = (await this.listInvocations(child.id)).find((candidate) => candidate.turnId === claim.targetTurnId);
|
|
1647
1761
|
if (turnOwner) {
|
|
1648
1762
|
throw new Error(`Claimed graph turn ${claim.targetTurnId} is already owned by run ${turnOwner.runId}`);
|
|
1649
1763
|
}
|
|
1650
|
-
if (messages.some((message) => 'turnId' in message && message.turnId === claim.targetTurnId)) {
|
|
1651
|
-
throw new Error(`Claimed graph turn ${claim.targetTurnId} already has durable messages`);
|
|
1652
|
-
}
|
|
1653
1764
|
if (child.isArchived || child.status === 'aborted') {
|
|
1654
1765
|
throw new Error('Claimed graph execution target child session is terminated');
|
|
1655
1766
|
}
|
|
@@ -1719,10 +1830,11 @@ export class SessionManager {
|
|
|
1719
1830
|
await stopPromise;
|
|
1720
1831
|
}
|
|
1721
1832
|
const completedAt = this.deps.now();
|
|
1722
|
-
const completedRun = await this.
|
|
1833
|
+
const completedRun = await this.readInvocation(child.id, claim.targetRunId);
|
|
1723
1834
|
this.assertClaimedAgentGraphRun(child, snapshot, claim, completedRun);
|
|
1724
|
-
const
|
|
1725
|
-
const
|
|
1835
|
+
const completedFacts = invocationListingFacts(completedRun);
|
|
1836
|
+
const failureClass = completedFacts.failureClass ?? summary.failureClass;
|
|
1837
|
+
const artifacts = await this.finalizeAndListChildTurnArtifacts(child.id, claim.targetTurnId, completedFacts.status);
|
|
1726
1838
|
return {
|
|
1727
1839
|
claimId: claim.claimId,
|
|
1728
1840
|
graphId: claim.graphId,
|
|
@@ -1734,7 +1846,7 @@ export class SessionManager {
|
|
|
1734
1846
|
profile: snapshot.profile,
|
|
1735
1847
|
turnId: claim.targetTurnId,
|
|
1736
1848
|
runId: claim.targetRunId,
|
|
1737
|
-
status: agentRunStatusForSpawnResult(
|
|
1849
|
+
status: agentRunStatusForSpawnResult(completedFacts.status),
|
|
1738
1850
|
permissionMode: child.permissionMode,
|
|
1739
1851
|
summary: summary.text(),
|
|
1740
1852
|
artifactIds: artifacts.map((artifact) => artifact.id),
|
|
@@ -1773,17 +1885,18 @@ export class SessionManager {
|
|
|
1773
1885
|
return { runId: admission.runId, userMessageId: admission.userMessageId };
|
|
1774
1886
|
}
|
|
1775
1887
|
assertClaimedAgentGraphRun(child, snapshot, claim, run) {
|
|
1888
|
+
const lineage = run.opening.lineage;
|
|
1776
1889
|
if (run.sessionId !== child.id ||
|
|
1777
1890
|
run.runId !== claim.targetRunId ||
|
|
1778
1891
|
run.turnId !== claim.targetTurnId ||
|
|
1779
|
-
!
|
|
1780
|
-
|
|
1781
|
-
(
|
|
1892
|
+
!isSessionInlineInvocation(run.opening) ||
|
|
1893
|
+
lineage?.agentId !== snapshot.agentId ||
|
|
1894
|
+
(lineage?.agentName !== undefined && lineage.agentName !== snapshot.agentName)) {
|
|
1782
1895
|
throw new Error('Existing AgentRun does not match the claimed graph activation identity');
|
|
1783
1896
|
}
|
|
1784
1897
|
}
|
|
1785
1898
|
async assertClaimedAgentGraphPrompt(sessionId, turnId, prompt, expectedUserMessageId) {
|
|
1786
|
-
const messages = await this.
|
|
1899
|
+
const { messages } = await this.getSessionView(sessionId);
|
|
1787
1900
|
const userMessages = messages.filter((message) => message.type === 'user' && message.turnId === turnId);
|
|
1788
1901
|
if (expectedUserMessageId !== undefined) {
|
|
1789
1902
|
if (userMessages.length !== 1 ||
|
|
@@ -1806,7 +1919,7 @@ export class SessionManager {
|
|
|
1806
1919
|
}
|
|
1807
1920
|
const [parentHeader, parentRun, parentBoundary] = await Promise.all([
|
|
1808
1921
|
this.deps.store.readHeader(parentSessionId),
|
|
1809
|
-
this.
|
|
1922
|
+
this.readInvocation(parentSessionId, input.spawnedBy.parentRunId),
|
|
1810
1923
|
this.deps.store.readExecutionBoundary(parentSessionId),
|
|
1811
1924
|
]);
|
|
1812
1925
|
this.assertActiveParentRun(parentSessionId, parentRun, input.spawnedBy.parentTurnId);
|
|
@@ -1842,6 +1955,7 @@ export class SessionManager {
|
|
|
1842
1955
|
permissionMode: definition.permissionMode,
|
|
1843
1956
|
collaborationMode: 'agent',
|
|
1844
1957
|
orchestrationMode: 'default',
|
|
1958
|
+
toolMode: parentHeader.toolMode ?? DEFAULT_TOOL_MODE,
|
|
1845
1959
|
subagentParent: {
|
|
1846
1960
|
kind: 'subagent',
|
|
1847
1961
|
parentSessionId,
|
|
@@ -1925,7 +2039,7 @@ export class SessionManager {
|
|
|
1925
2039
|
// crash boundary. Revalidate admission after the lookup: the parent or
|
|
1926
2040
|
// caller may have settled while durable state was being inspected.
|
|
1927
2041
|
try {
|
|
1928
|
-
const latestParentRun = await this.
|
|
2042
|
+
const latestParentRun = await this.readInvocation(parentSessionId, input.spawnedBy.parentRunId);
|
|
1929
2043
|
this.assertActiveParentRun(parentSessionId, latestParentRun, input.spawnedBy.parentTurnId);
|
|
1930
2044
|
if (input.abortSignal?.aborted) {
|
|
1931
2045
|
throw new Error('Child session spawn was cancelled before its first run');
|
|
@@ -1991,9 +2105,10 @@ export class SessionManager {
|
|
|
1991
2105
|
}
|
|
1992
2106
|
const completedAt = this.deps.now();
|
|
1993
2107
|
const run = await this.findRunByTurnId(child.id, turnId);
|
|
1994
|
-
const
|
|
1995
|
-
const
|
|
1996
|
-
|
|
2108
|
+
const facts = run ? invocationListingFacts(run) : undefined;
|
|
2109
|
+
const failureClass = facts?.failureClass ?? summary.failureClass;
|
|
2110
|
+
const artifacts = facts
|
|
2111
|
+
? await this.finalizeAndListChildTurnArtifacts(child.id, turnId, facts.status)
|
|
1997
2112
|
: [];
|
|
1998
2113
|
return {
|
|
1999
2114
|
childSessionId: child.id,
|
|
@@ -2002,7 +2117,7 @@ export class SessionManager {
|
|
|
2002
2117
|
profile: snapshot.profile,
|
|
2003
2118
|
turnId,
|
|
2004
2119
|
runId,
|
|
2005
|
-
status:
|
|
2120
|
+
status: facts ? agentRunStatusForSpawnResult(facts.status) : summary.status(aborted),
|
|
2006
2121
|
permissionMode: child.permissionMode,
|
|
2007
2122
|
summary: summary.text(),
|
|
2008
2123
|
artifactIds: artifacts.map((artifact) => artifact.id),
|
|
@@ -2025,7 +2140,7 @@ export class SessionManager {
|
|
|
2025
2140
|
if (!snapshot || !spawn) {
|
|
2026
2141
|
throw new Error('Stored child session is missing its durable runtime or spawn identity');
|
|
2027
2142
|
}
|
|
2028
|
-
let run = await this.
|
|
2143
|
+
let run = await this.readInvocation(child.id, spawn.initialRunId).catch((error) => {
|
|
2029
2144
|
if (isNotFoundError(error))
|
|
2030
2145
|
return undefined;
|
|
2031
2146
|
throw error;
|
|
@@ -2033,14 +2148,14 @@ export class SessionManager {
|
|
|
2033
2148
|
if (!run)
|
|
2034
2149
|
return undefined;
|
|
2035
2150
|
await notifyReady();
|
|
2036
|
-
while (!
|
|
2151
|
+
while (!run.terminalEvent &&
|
|
2037
2152
|
this.runtimeKernel.hasActiveRun?.(child.id, run.runId, run.turnId)) {
|
|
2038
2153
|
await delay(25, undefined, input.abortSignal ? { signal: input.abortSignal } : undefined);
|
|
2039
|
-
run = await this.
|
|
2154
|
+
run = await this.readInvocation(child.id, spawn.initialRunId);
|
|
2040
2155
|
}
|
|
2041
|
-
if (!
|
|
2156
|
+
if (!run.terminalEvent) {
|
|
2042
2157
|
await this.recoverAgentRunsFromLedger(child.id);
|
|
2043
|
-
run = await this.
|
|
2158
|
+
run = await this.readInvocation(child.id, spawn.initialRunId);
|
|
2044
2159
|
}
|
|
2045
2160
|
return await this.projectExistingChildSpawn(child, run);
|
|
2046
2161
|
}
|
|
@@ -2051,14 +2166,11 @@ export class SessionManager {
|
|
|
2051
2166
|
const snapshot = child.subagentRuntime;
|
|
2052
2167
|
if (!snapshot)
|
|
2053
2168
|
throw new Error('Stored child session is missing its durable runtime snapshot');
|
|
2054
|
-
const
|
|
2055
|
-
|
|
2169
|
+
const facts = invocationListingFacts(run);
|
|
2170
|
+
const [runtimeEvents, artifacts] = await Promise.all([
|
|
2056
2171
|
this.deps.runtimeEventStore.readRuntimeEvents(child.id, run.runId),
|
|
2057
|
-
this.finalizeAndListChildTurnArtifacts(child.id, run.turnId,
|
|
2172
|
+
this.finalizeAndListChildTurnArtifacts(child.id, run.turnId, facts.status),
|
|
2058
2173
|
]);
|
|
2059
|
-
const storedSummary = messages
|
|
2060
|
-
.filter((message) => message.type === 'assistant' && message.turnId === run.turnId)
|
|
2061
|
-
.at(-1)?.text ?? '';
|
|
2062
2174
|
const runtimeText = runtimeEvents.filter((event) => event.role === 'model' && event.content?.kind === 'text');
|
|
2063
2175
|
const durableRuntimeSummary = runtimeText.filter((event) => !event.partial).at(-1)
|
|
2064
2176
|
?.content.text;
|
|
@@ -2066,7 +2178,6 @@ export class SessionManager {
|
|
|
2066
2178
|
.filter((event) => event.partial)
|
|
2067
2179
|
.map((event) => event.content.text)
|
|
2068
2180
|
.join('');
|
|
2069
|
-
const completedAt = run.completedAt ?? run.updatedAt;
|
|
2070
2181
|
return {
|
|
2071
2182
|
childSessionId: child.id,
|
|
2072
2183
|
agentId: snapshot.agentId,
|
|
@@ -2074,15 +2185,15 @@ export class SessionManager {
|
|
|
2074
2185
|
profile: snapshot.profile,
|
|
2075
2186
|
turnId: run.turnId,
|
|
2076
2187
|
runId: run.runId,
|
|
2077
|
-
status: agentRunStatusForSpawnResult(
|
|
2188
|
+
status: agentRunStatusForSpawnResult(facts.status),
|
|
2078
2189
|
permissionMode: child.permissionMode,
|
|
2079
|
-
summary: trimSummary(durableRuntimeSummary ??
|
|
2190
|
+
summary: trimSummary(durableRuntimeSummary ?? partialRuntimeSummary),
|
|
2080
2191
|
artifactIds: artifacts.map((artifact) => artifact.id),
|
|
2081
|
-
startedAt:
|
|
2082
|
-
completedAt,
|
|
2083
|
-
durationMs:
|
|
2192
|
+
startedAt: facts.createdAt,
|
|
2193
|
+
completedAt: facts.updatedAt,
|
|
2194
|
+
durationMs: facts.durationMs ?? 0,
|
|
2084
2195
|
eventCount: runtimeEvents.length,
|
|
2085
|
-
...(
|
|
2196
|
+
...(facts.failureClass ? { failureClass: facts.failureClass } : {}),
|
|
2086
2197
|
};
|
|
2087
2198
|
}
|
|
2088
2199
|
transferRuntimeExecution(source, targetSessionId) {
|
|
@@ -2132,38 +2243,22 @@ export class SessionManager {
|
|
|
2132
2243
|
const presets = this.deps.subagentCatalog ? await this.deps.subagentCatalog.list() : [];
|
|
2133
2244
|
if (!this.deps.runStore)
|
|
2134
2245
|
return { definitions, presets, executions: [], runs: [] };
|
|
2135
|
-
const
|
|
2136
|
-
const
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
...(run.agentName ? { agentName: run.agentName } : {}),
|
|
2148
|
-
status: run.status,
|
|
2149
|
-
permissionMode: run.permissionMode,
|
|
2150
|
-
createdAt: run.createdAt,
|
|
2151
|
-
updatedAt: run.updatedAt,
|
|
2152
|
-
...(run.completedAt !== undefined ? { completedAt: run.completedAt } : {}),
|
|
2153
|
-
...(run.completedAt !== undefined
|
|
2154
|
-
? { durationMs: Math.max(0, run.completedAt - run.createdAt) }
|
|
2155
|
-
: {}),
|
|
2156
|
-
...(run.failureClass ? { failureClass: run.failureClass } : {}),
|
|
2157
|
-
}));
|
|
2246
|
+
const childRuns = (await this.listInvocations(sessionId)).filter((run) => !!run.opening.lineage?.parentRunId && !isSessionInlineInvocation(run.opening));
|
|
2247
|
+
const legacyRuns = childRuns.map((run) => {
|
|
2248
|
+
const facts = invocationListingFacts(run);
|
|
2249
|
+
return {
|
|
2250
|
+
runId: run.runId,
|
|
2251
|
+
turnId: run.turnId,
|
|
2252
|
+
parentRunId: run.opening.lineage.parentRunId,
|
|
2253
|
+
...(run.opening.lineage?.agentId ? { agentId: run.opening.lineage.agentId } : {}),
|
|
2254
|
+
...(run.opening.lineage?.agentName ? { agentName: run.opening.lineage.agentName } : {}),
|
|
2255
|
+
...facts,
|
|
2256
|
+
};
|
|
2257
|
+
});
|
|
2158
2258
|
const childSessionHeaders = await Promise.all((await this.listChildSessions(sessionId)).map((child) => this.deps.store.readHeader(child.id)));
|
|
2159
2259
|
const childSessionExecutions = await Promise.all(childSessionHeaders.map(async (child) => {
|
|
2160
|
-
const
|
|
2161
|
-
const
|
|
2162
|
-
.slice()
|
|
2163
|
-
.sort((left, right) => right.createdAt - left.createdAt ||
|
|
2164
|
-
right.updatedAt - left.updatedAt ||
|
|
2165
|
-
right.runId.localeCompare(left.runId))[0];
|
|
2166
|
-
const run = latest ? await this.effectiveRunHeaderFromRuntimeLedger(latest) : undefined;
|
|
2260
|
+
const run = latestInvocation(await this.listInvocations(child.id));
|
|
2261
|
+
const facts = run ? invocationListingFacts(run) : undefined;
|
|
2167
2262
|
const currentRunId = run?.runId ?? child.subagentSpawn?.initialRunId;
|
|
2168
2263
|
return {
|
|
2169
2264
|
execution: {
|
|
@@ -2177,15 +2272,13 @@ export class SessionManager {
|
|
|
2177
2272
|
: {}),
|
|
2178
2273
|
...(child.subagentRuntime?.profile ? { profile: child.subagentRuntime.profile } : {}),
|
|
2179
2274
|
...(run?.turnId ? { turnId: run.turnId } : {}),
|
|
2180
|
-
status:
|
|
2181
|
-
permissionMode:
|
|
2182
|
-
createdAt:
|
|
2183
|
-
updatedAt:
|
|
2184
|
-
...(
|
|
2185
|
-
...(
|
|
2186
|
-
|
|
2187
|
-
: {}),
|
|
2188
|
-
...(run?.failureClass ? { failureClass: run.failureClass } : {}),
|
|
2275
|
+
status: facts?.status ?? (child.status === 'aborted' ? 'cancelled' : 'running'),
|
|
2276
|
+
permissionMode: facts?.permissionMode ?? child.permissionMode,
|
|
2277
|
+
createdAt: facts?.createdAt ?? child.createdAt,
|
|
2278
|
+
updatedAt: facts?.updatedAt ?? child.lastMessageAt ?? child.createdAt,
|
|
2279
|
+
...(facts?.completedAt !== undefined ? { completedAt: facts.completedAt } : {}),
|
|
2280
|
+
...(facts?.durationMs !== undefined ? { durationMs: facts.durationMs } : {}),
|
|
2281
|
+
...(facts?.failureClass ? { failureClass: facts.failureClass } : {}),
|
|
2189
2282
|
};
|
|
2190
2283
|
}));
|
|
2191
2284
|
return {
|
|
@@ -2193,7 +2286,7 @@ export class SessionManager {
|
|
|
2193
2286
|
presets,
|
|
2194
2287
|
executions: [
|
|
2195
2288
|
...childSessionExecutions,
|
|
2196
|
-
...
|
|
2289
|
+
...legacyRuns.map((run) => ({
|
|
2197
2290
|
execution: {
|
|
2198
2291
|
kind: 'legacy_child_run',
|
|
2199
2292
|
sessionId,
|
|
@@ -2207,9 +2300,7 @@ export class SessionManager {
|
|
|
2207
2300
|
createdAt: run.createdAt,
|
|
2208
2301
|
updatedAt: run.updatedAt,
|
|
2209
2302
|
...(run.completedAt !== undefined ? { completedAt: run.completedAt } : {}),
|
|
2210
|
-
...(run.
|
|
2211
|
-
? { durationMs: Math.max(0, run.completedAt - run.createdAt) }
|
|
2212
|
-
: {}),
|
|
2303
|
+
...(run.durationMs !== undefined ? { durationMs: run.durationMs } : {}),
|
|
2213
2304
|
...(run.failureClass ? { failureClass: run.failureClass } : {}),
|
|
2214
2305
|
})),
|
|
2215
2306
|
],
|
|
@@ -2226,19 +2317,15 @@ export class SessionManager {
|
|
|
2226
2317
|
throw new Error('agent_output requires AgentRunStore and RuntimeEventStore');
|
|
2227
2318
|
}
|
|
2228
2319
|
const located = await this.findChildRunForOutput(sessionId, input);
|
|
2229
|
-
const {
|
|
2230
|
-
const inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, {
|
|
2231
|
-
|
|
2232
|
-
runId: header.runId,
|
|
2233
|
-
header,
|
|
2234
|
-
});
|
|
2235
|
-
const artifacts = await this.finalizeAndListChildTurnArtifacts(header.sessionId, header.turnId, inspected.header.status);
|
|
2320
|
+
const { invocation } = located;
|
|
2321
|
+
const inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, { sessionId: invocation.sessionId, runId: invocation.runId, invocation });
|
|
2322
|
+
const artifacts = await this.finalizeAndListChildTurnArtifacts(invocation.sessionId, invocation.turnId, runtimeInvocationOutcome(inspected.invocation) ?? 'running');
|
|
2236
2323
|
const maxEvents = normalizeAgentOutputMaxEvents(input.maxEvents);
|
|
2237
2324
|
const maxBytes = normalizeAgentOutputMaxBytes(input.maxBytes);
|
|
2238
2325
|
const view = input.view ?? 'runtime_events';
|
|
2239
2326
|
if (view === 'result') {
|
|
2240
2327
|
const boundedResult = buildAgentOutputCommittedResult({
|
|
2241
|
-
|
|
2328
|
+
invocation: inspected.invocation,
|
|
2242
2329
|
runtimeEvents: inspected.runtimeEvents,
|
|
2243
2330
|
artifacts,
|
|
2244
2331
|
maxArtifacts: maxEvents,
|
|
@@ -2247,7 +2334,7 @@ export class SessionManager {
|
|
|
2247
2334
|
});
|
|
2248
2335
|
return {
|
|
2249
2336
|
execution: located.execution,
|
|
2250
|
-
|
|
2337
|
+
invocation: inspected.invocation,
|
|
2251
2338
|
result: boundedResult.result,
|
|
2252
2339
|
events: [],
|
|
2253
2340
|
runtimeEvents: [],
|
|
@@ -2276,7 +2363,7 @@ export class SessionManager {
|
|
|
2276
2363
|
}, maxBytes);
|
|
2277
2364
|
return {
|
|
2278
2365
|
execution: located.execution,
|
|
2279
|
-
|
|
2366
|
+
invocation: inspected.invocation,
|
|
2280
2367
|
events: bounded.events,
|
|
2281
2368
|
runtimeEvents: bounded.runtimeEvents,
|
|
2282
2369
|
sourceHealth: inspected.sourceHealth,
|
|
@@ -2306,43 +2393,30 @@ export class SessionManager {
|
|
|
2306
2393
|
const hostedAuthority = isRuntimeHostedRootAuthority(this.deps.messageAuthority)
|
|
2307
2394
|
? this.deps.messageAuthority
|
|
2308
2395
|
: undefined;
|
|
2309
|
-
|
|
2396
|
+
await this.#stopSessionTree(sessionId, hostedAuthority
|
|
2310
2397
|
? hostedAuthority.stopSession(sessionId, input)
|
|
2311
|
-
: this.runtimeKernel.stopSession(sessionId, input)
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
try {
|
|
2315
|
-
const children = await this.listChildSessions(sessionId);
|
|
2316
|
-
childStops = await Promise.allSettled(children
|
|
2317
|
-
.filter((child) => child.subagentParent?.lifecycle === 'foreground')
|
|
2318
|
-
.map((child) => hostedAuthority
|
|
2319
|
-
? hostedAuthority.stopSession(child.id, input)
|
|
2320
|
-
: this.runtimeKernel.stopSession(child.id, input)));
|
|
2321
|
-
}
|
|
2322
|
-
catch (error) {
|
|
2323
|
-
childLookupError = error;
|
|
2324
|
-
}
|
|
2325
|
-
await ownStop;
|
|
2326
|
-
const childStopError = childStops.find((result) => result.status === 'rejected')?.reason;
|
|
2327
|
-
if (childLookupError !== undefined)
|
|
2328
|
-
throw childLookupError;
|
|
2329
|
-
if (childStopError !== undefined)
|
|
2330
|
-
throw childStopError;
|
|
2398
|
+
: this.runtimeKernel.stopSession(sessionId, input), (childSessionId) => hostedAuthority
|
|
2399
|
+
? hostedAuthority.stopSession(childSessionId, input)
|
|
2400
|
+
: this.runtimeKernel.stopSession(childSessionId, input));
|
|
2331
2401
|
}
|
|
2332
2402
|
async deliverHostedRootStop(sessionId, input = {}) {
|
|
2333
|
-
const ownStop = this.runtimeKernel.stopSession(sessionId, input);
|
|
2334
2403
|
const authority = isRuntimeHostedRootAuthority(this.deps.messageAuthority)
|
|
2335
2404
|
? this.deps.messageAuthority
|
|
2336
2405
|
: undefined;
|
|
2406
|
+
await this.#stopSessionTree(sessionId, this.runtimeKernel.stopSession(sessionId, input), (childSessionId) => authority
|
|
2407
|
+
? authority.stopSession(childSessionId, input)
|
|
2408
|
+
: this.runtimeKernel.stopSession(childSessionId, input));
|
|
2409
|
+
}
|
|
2410
|
+
async #stopSessionTree(sessionId, ownStop, stopChild) {
|
|
2411
|
+
// Observe immediately while child lookup runs; await below still propagates the original error.
|
|
2412
|
+
void ownStop.catch(() => undefined);
|
|
2337
2413
|
let childStops = [];
|
|
2338
2414
|
let childLookupError;
|
|
2339
2415
|
try {
|
|
2340
2416
|
const children = await this.listChildSessions(sessionId);
|
|
2341
2417
|
childStops = await Promise.allSettled(children
|
|
2342
2418
|
.filter((child) => child.subagentParent?.lifecycle === 'foreground')
|
|
2343
|
-
.map((child) =>
|
|
2344
|
-
? authority.stopSession(child.id, input)
|
|
2345
|
-
: this.runtimeKernel.stopSession(child.id, input)));
|
|
2419
|
+
.map((child) => stopChild(child.id)));
|
|
2346
2420
|
}
|
|
2347
2421
|
catch (error) {
|
|
2348
2422
|
childLookupError = error;
|
|
@@ -2359,20 +2433,31 @@ export class SessionManager {
|
|
|
2359
2433
|
throw new Error('Hosted admission recovery requires execution stores');
|
|
2360
2434
|
}
|
|
2361
2435
|
const session = await this.deps.store.readHeader(input.sessionId);
|
|
2362
|
-
|
|
2436
|
+
let root = { kind: 'user' };
|
|
2437
|
+
let orchestration = {
|
|
2438
|
+
orchestrationMode: session.orchestrationMode ?? 'default',
|
|
2439
|
+
orchestrationSource: 'session',
|
|
2440
|
+
agentSwarmAuthorization: 'none',
|
|
2441
|
+
};
|
|
2442
|
+
const lineage = {};
|
|
2363
2443
|
let recoveryReason;
|
|
2364
2444
|
let diagnostic;
|
|
2365
2445
|
let workspaceIdentity;
|
|
2366
2446
|
if (input.execution.kind === 'goal') {
|
|
2367
|
-
|
|
2447
|
+
root = { kind: 'goal', goalId: input.execution.goalId };
|
|
2368
2448
|
recoveryReason = 'goal_internal_admission_without_run';
|
|
2369
2449
|
diagnostic = {
|
|
2370
2450
|
executionKind: input.execution.kind,
|
|
2371
2451
|
goalId: input.execution.goalId,
|
|
2372
2452
|
};
|
|
2373
2453
|
}
|
|
2454
|
+
else if (input.execution.kind === 'workhub_coordination' &&
|
|
2455
|
+
input.execution.operation === 'action') {
|
|
2456
|
+
recoveryReason = 'coordination_action_admission_without_run';
|
|
2457
|
+
diagnostic = { executionKind: input.execution.kind, operation: input.execution.operation };
|
|
2458
|
+
}
|
|
2374
2459
|
else if (input.execution.kind === 'legacy_automation') {
|
|
2375
|
-
|
|
2460
|
+
root = { kind: 'legacy_automation', legacyAutomationId: input.execution.automationId };
|
|
2376
2461
|
recoveryReason = 'legacy_automation_authority_removed';
|
|
2377
2462
|
diagnostic = {
|
|
2378
2463
|
executionKind: input.execution.kind,
|
|
@@ -2380,11 +2465,16 @@ export class SessionManager {
|
|
|
2380
2465
|
};
|
|
2381
2466
|
}
|
|
2382
2467
|
else if (input.execution.kind === 'agent_graph_supervisor_wake') {
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2468
|
+
root = {
|
|
2469
|
+
kind: 'agent_graph_supervisor_wake',
|
|
2470
|
+
wakeId: input.execution.wakeId,
|
|
2471
|
+
attemptId: input.execution.attemptId,
|
|
2472
|
+
};
|
|
2473
|
+
orchestration = {
|
|
2474
|
+
orchestrationMode: 'graph',
|
|
2475
|
+
orchestrationSource: 'turn_override',
|
|
2476
|
+
agentSwarmAuthorization: 'none',
|
|
2477
|
+
};
|
|
2388
2478
|
recoveryReason = 'agent_graph_supervisor_internal_admission_without_run';
|
|
2389
2479
|
diagnostic = {
|
|
2390
2480
|
executionKind: input.execution.kind,
|
|
@@ -2419,21 +2509,21 @@ export class SessionManager {
|
|
|
2419
2509
|
}
|
|
2420
2510
|
if (input.execution.kind === 'linked_child_resume' ||
|
|
2421
2511
|
input.execution.kind === 'linked_child_provider_retry') {
|
|
2422
|
-
const sourceRun = await this.
|
|
2423
|
-
if (sourceRun.agentId !== input.execution.agentId ||
|
|
2424
|
-
sourceRun.agentName !== input.execution.agentName) {
|
|
2512
|
+
const sourceRun = await this.readInvocation(input.sessionId, input.execution.sourceRunId);
|
|
2513
|
+
if (sourceRun.opening.lineage?.agentId !== input.execution.agentId ||
|
|
2514
|
+
sourceRun.opening.lineage.agentName !== input.execution.agentName) {
|
|
2425
2515
|
throw new Error(`Admitted Turn ${input.turnId} source changed its trusted agent identity`);
|
|
2426
2516
|
}
|
|
2427
|
-
workspaceIdentity = sourceRun.workspaceIdentity;
|
|
2517
|
+
workspaceIdentity = sourceRun.opening.configuration.workspaceIdentity;
|
|
2428
2518
|
if (input.execution.kind === 'linked_child_resume') {
|
|
2429
|
-
|
|
2519
|
+
lineage.resumedFromRunId = input.execution.sourceRunId;
|
|
2430
2520
|
}
|
|
2431
2521
|
else {
|
|
2432
|
-
|
|
2522
|
+
lineage.retriedFromRunId = input.execution.sourceRunId;
|
|
2433
2523
|
}
|
|
2434
2524
|
}
|
|
2435
|
-
|
|
2436
|
-
|
|
2525
|
+
lineage.agentId = input.execution.agentId;
|
|
2526
|
+
lineage.agentName = input.execution.agentName;
|
|
2437
2527
|
recoveryReason = 'child_internal_admission_without_run';
|
|
2438
2528
|
diagnostic = {
|
|
2439
2529
|
executionKind: input.execution.kind,
|
|
@@ -2447,26 +2537,76 @@ export class SessionManager {
|
|
|
2447
2537
|
throw new Error('External message recovery closure is not supported');
|
|
2448
2538
|
}
|
|
2449
2539
|
const run = {
|
|
2450
|
-
runId: input.runId,
|
|
2451
|
-
invocationId: input.runId,
|
|
2452
2540
|
sessionId: input.sessionId,
|
|
2541
|
+
invocationId: input.runId,
|
|
2542
|
+
runId: input.runId,
|
|
2453
2543
|
turnId: input.turnId,
|
|
2454
|
-
status: 'created',
|
|
2455
|
-
backendKind: session.backend,
|
|
2456
|
-
...(session.llmConnectionId === undefined
|
|
2457
|
-
? {}
|
|
2458
|
-
: { llmConnectionId: session.llmConnectionId }),
|
|
2459
|
-
llmConnectionSlug: session.llmConnectionSlug,
|
|
2460
|
-
modelId: session.model,
|
|
2461
|
-
cwd: session.cwd,
|
|
2462
|
-
...(workspaceIdentity !== undefined ? { workspaceIdentity } : {}),
|
|
2463
|
-
permissionMode: session.permissionMode,
|
|
2464
|
-
collaborationMode: session.collaborationMode ?? 'agent',
|
|
2465
|
-
createdAt: input.admittedAt,
|
|
2466
|
-
updatedAt: input.admittedAt,
|
|
2467
|
-
...headerExtras,
|
|
2468
2544
|
};
|
|
2469
|
-
|
|
2545
|
+
const opening = {
|
|
2546
|
+
kind: 'invocation_opened',
|
|
2547
|
+
protocol: 'invocation_opened_v1',
|
|
2548
|
+
route: session.llmConnectionId === undefined
|
|
2549
|
+
? {
|
|
2550
|
+
provenance: 'unknown',
|
|
2551
|
+
backendKind: session.backend,
|
|
2552
|
+
llmConnectionSlug: session.llmConnectionSlug,
|
|
2553
|
+
modelId: session.model,
|
|
2554
|
+
}
|
|
2555
|
+
: {
|
|
2556
|
+
provenance: 'runtime',
|
|
2557
|
+
backendKind: session.backend,
|
|
2558
|
+
llmConnectionId: session.llmConnectionId,
|
|
2559
|
+
llmConnectionSlug: session.llmConnectionSlug,
|
|
2560
|
+
modelId: session.model,
|
|
2561
|
+
},
|
|
2562
|
+
configuration: {
|
|
2563
|
+
cwd: session.cwd,
|
|
2564
|
+
permissionMode: session.permissionMode,
|
|
2565
|
+
collaborationMode: session.collaborationMode ?? 'agent',
|
|
2566
|
+
toolMode: session.toolMode ?? DEFAULT_TOOL_MODE,
|
|
2567
|
+
...orchestration,
|
|
2568
|
+
...(workspaceIdentity !== undefined ? { workspaceIdentity } : {}),
|
|
2569
|
+
},
|
|
2570
|
+
root,
|
|
2571
|
+
source: { kind: 'fresh' },
|
|
2572
|
+
...(Object.keys(lineage).length > 0 ? { lineage } : {}),
|
|
2573
|
+
};
|
|
2574
|
+
// The admission never reached an AgentRun, so nothing else will ever open
|
|
2575
|
+
// this invocation. Recovery opens and closes it in one pass so the Turn
|
|
2576
|
+
// ends up on the spine like any other, with its own reason for ending.
|
|
2577
|
+
await this.deps.runtimeEventStore.appendRuntimeEvent(input.sessionId, input.runId, buildInvocationOpenedEvent({
|
|
2578
|
+
id: this.deps.newId(),
|
|
2579
|
+
run,
|
|
2580
|
+
openedAt: input.admittedAt,
|
|
2581
|
+
opening,
|
|
2582
|
+
}));
|
|
2583
|
+
if (input.userMessage) {
|
|
2584
|
+
await this.deps.runtimeEventStore.appendRuntimeEvent(input.sessionId, input.runId, {
|
|
2585
|
+
id: input.userMessage.id,
|
|
2586
|
+
...run,
|
|
2587
|
+
ts: input.admittedAt,
|
|
2588
|
+
partial: false,
|
|
2589
|
+
role: 'user',
|
|
2590
|
+
author: input.userMessage.origin ? 'host' : 'user',
|
|
2591
|
+
content: {
|
|
2592
|
+
kind: 'text',
|
|
2593
|
+
text: input.userMessage.content.text,
|
|
2594
|
+
...(input.userMessage.content.displayText !== undefined
|
|
2595
|
+
? { displayText: input.userMessage.content.displayText }
|
|
2596
|
+
: {}),
|
|
2597
|
+
...(input.userMessage.content.attachments?.length
|
|
2598
|
+
? { attachments: input.userMessage.content.attachments }
|
|
2599
|
+
: {}),
|
|
2600
|
+
...(input.userMessage.content.directoryReferences?.length
|
|
2601
|
+
? { directoryReferences: input.userMessage.content.directoryReferences }
|
|
2602
|
+
: {}),
|
|
2603
|
+
...(input.userMessage.content.quotes?.length
|
|
2604
|
+
? { quotes: input.userMessage.content.quotes }
|
|
2605
|
+
: {}),
|
|
2606
|
+
...(input.userMessage.origin ? { origin: input.userMessage.origin } : {}),
|
|
2607
|
+
},
|
|
2608
|
+
});
|
|
2609
|
+
}
|
|
2470
2610
|
const ts = this.deps.now();
|
|
2471
2611
|
const terminalEvent = buildRecoveredTerminalRuntimeEvent({
|
|
2472
2612
|
id: this.deps.newId(),
|
|
@@ -2479,7 +2619,6 @@ export class SessionManager {
|
|
|
2479
2619
|
message: 'app_restarted',
|
|
2480
2620
|
});
|
|
2481
2621
|
await commitTerminalRunWithRuntimeFact({
|
|
2482
|
-
runStore: this.deps.runStore,
|
|
2483
2622
|
runtimeEventStore: this.deps.runtimeEventStore,
|
|
2484
2623
|
newId: this.deps.newId,
|
|
2485
2624
|
sessionId: input.sessionId,
|
|
@@ -2489,12 +2628,6 @@ export class SessionManager {
|
|
|
2489
2628
|
ts,
|
|
2490
2629
|
terminalEvent,
|
|
2491
2630
|
failureClass: 'app_restarted',
|
|
2492
|
-
runEventData: {
|
|
2493
|
-
recovered: true,
|
|
2494
|
-
recoveryReason,
|
|
2495
|
-
...diagnostic,
|
|
2496
|
-
},
|
|
2497
|
-
existingEvents: [],
|
|
2498
2631
|
});
|
|
2499
2632
|
}
|
|
2500
2633
|
async consumeLinkedRootExecution(input, hostedGateAlreadyHeld = false) {
|
|
@@ -2578,155 +2711,9 @@ export class SessionManager {
|
|
|
2578
2711
|
content: normalizeMessageContent(user),
|
|
2579
2712
|
};
|
|
2580
2713
|
}
|
|
2581
|
-
async branchFromTurn(sessionId, input) {
|
|
2582
|
-
const sourceView = await this.getSessionView(sessionId);
|
|
2583
|
-
const slice = createConversationCopySlice(sourceView.messages, input.sourceTurnId, 'through');
|
|
2584
|
-
if (!slice)
|
|
2585
|
-
throw new Error(`Cannot branch from unknown turn ${input.sourceTurnId}`);
|
|
2586
|
-
return this.createBranchSession(sessionId, sourceView, [...slice.messages], input);
|
|
2587
|
-
}
|
|
2588
2714
|
/** Canonical, repaired source view for a Host-owned cross-Session copy. */
|
|
2589
2715
|
async readConversationCopySnapshot(sessionId) {
|
|
2590
|
-
|
|
2591
|
-
if (!readMessagesSnapshot) {
|
|
2592
|
-
throw new Error('Conversation copy requires a side-effect-free message snapshot');
|
|
2593
|
-
}
|
|
2594
|
-
const readMessages = readMessagesSnapshot.bind(this.deps.store);
|
|
2595
|
-
const view = await this.getSessionView(sessionId, { readMessages });
|
|
2596
|
-
if (view.runs.length > 0 || view.messages.length > 0)
|
|
2597
|
-
return view;
|
|
2598
|
-
const messages = await readMessages(sessionId);
|
|
2599
|
-
if (messages.length === 0)
|
|
2600
|
-
return view;
|
|
2601
|
-
return {
|
|
2602
|
-
...view,
|
|
2603
|
-
messages,
|
|
2604
|
-
turns: deriveTurnRecords(messages),
|
|
2605
|
-
};
|
|
2606
|
-
}
|
|
2607
|
-
async branchBeforeTurn(sessionId, input) {
|
|
2608
|
-
const sourceView = await this.getSessionView(sessionId);
|
|
2609
|
-
const slice = createConversationCopySlice(sourceView.messages, input.sourceTurnId, 'before');
|
|
2610
|
-
if (!slice)
|
|
2611
|
-
throw new Error(`Cannot branch before unknown turn ${input.sourceTurnId}`);
|
|
2612
|
-
return this.createBranchSession(sessionId, sourceView, [...slice.messages], input);
|
|
2613
|
-
}
|
|
2614
|
-
/**
|
|
2615
|
-
* Create a non-destructive edit-and-resend version. Unlike branchBeforeTurn,
|
|
2616
|
-
* this is not a new sidebar conversation: revision lineage lets hosts fold
|
|
2617
|
-
* every version into one conversation slot while keeping old transcripts.
|
|
2618
|
-
*/
|
|
2619
|
-
async reviseBeforeTurn(sessionId, input) {
|
|
2620
|
-
const sourceView = await this.getSessionView(sessionId);
|
|
2621
|
-
const slice = createConversationCopySlice(sourceView.messages, input.sourceTurnId, 'before');
|
|
2622
|
-
if (!slice)
|
|
2623
|
-
throw new Error(`Cannot revise before unknown turn ${input.sourceTurnId}`);
|
|
2624
|
-
return this.createRevisionSession(sessionId, sourceView, [...slice.messages], input);
|
|
2625
|
-
}
|
|
2626
|
-
async createRevisionSession(sessionId, sourceView, copied, input) {
|
|
2627
|
-
const plan = await this.prepareConversationRuntimeLedgerClone(sessionId, sourceView, copied);
|
|
2628
|
-
const [header, boundary] = await Promise.all([
|
|
2629
|
-
this.deps.store.readHeader(sessionId),
|
|
2630
|
-
this.deps.store.readExecutionBoundary(sessionId),
|
|
2631
|
-
]);
|
|
2632
|
-
const revisionRootSessionId = header.revisionRootSessionId ?? sessionId;
|
|
2633
|
-
const family = (await this.deps.store.list()).filter((candidate) => candidate.id === revisionRootSessionId ||
|
|
2634
|
-
candidate.revisionRootSessionId === revisionRootSessionId);
|
|
2635
|
-
const revisionIndex = Math.max(1, ...family.map((candidate) => candidate.revisionIndex ?? 1)) + 1;
|
|
2636
|
-
const next = await this.deps.store.create({
|
|
2637
|
-
cwd: header.cwd,
|
|
2638
|
-
...(header.projectId !== undefined ? { projectId: header.projectId } : {}),
|
|
2639
|
-
...(header.llmConnectionId === undefined
|
|
2640
|
-
? {}
|
|
2641
|
-
: { llmConnectionId: header.llmConnectionId }),
|
|
2642
|
-
llmConnectionSlug: header.llmConnectionSlug,
|
|
2643
|
-
model: header.model,
|
|
2644
|
-
thinkingLevel: header.thinkingLevel,
|
|
2645
|
-
permissionMode: header.permissionMode,
|
|
2646
|
-
collaborationMode: header.collaborationMode,
|
|
2647
|
-
orchestrationMode: header.orchestrationMode ?? 'default',
|
|
2648
|
-
name: header.name,
|
|
2649
|
-
labels: header.labels,
|
|
2650
|
-
// A revision of a real branch remains in that branch's conversation
|
|
2651
|
-
// slot; revision lineage itself must not create a branch banner.
|
|
2652
|
-
parentSessionId: header.parentSessionId,
|
|
2653
|
-
branchOfTurnId: header.branchOfTurnId,
|
|
2654
|
-
revisionRootSessionId,
|
|
2655
|
-
revisionParentSessionId: sessionId,
|
|
2656
|
-
revisionOfTurnId: input.sourceTurnId,
|
|
2657
|
-
revisionIndex,
|
|
2658
|
-
revisionState: 'preparing',
|
|
2659
|
-
status: 'active',
|
|
2660
|
-
}, boundary);
|
|
2661
|
-
try {
|
|
2662
|
-
const rewritten = await this.cloneConversationRuntimeLedger(next.id, copied, plan);
|
|
2663
|
-
if (rewritten.length > 0)
|
|
2664
|
-
await this.deps.store.appendMessages(next.id, [...rewritten]);
|
|
2665
|
-
await this.deps.store.appendMessage(next.id, {
|
|
2666
|
-
type: 'system_note',
|
|
2667
|
-
id: this.deps.newId(),
|
|
2668
|
-
ts: this.deps.now(),
|
|
2669
|
-
kind: 'session_start',
|
|
2670
|
-
data: {
|
|
2671
|
-
revisionRootSessionId,
|
|
2672
|
-
revisionParentSessionId: sessionId,
|
|
2673
|
-
revisionOfTurnId: input.sourceTurnId,
|
|
2674
|
-
revisionIndex,
|
|
2675
|
-
revisionState: 'preparing',
|
|
2676
|
-
},
|
|
2677
|
-
});
|
|
2678
|
-
await this.deps.store.updateHeader(next.id, {
|
|
2679
|
-
isFlagged: header.isFlagged,
|
|
2680
|
-
titleIsManual: header.titleIsManual,
|
|
2681
|
-
});
|
|
2682
|
-
return headerToSummary(await this.deps.store.readHeader(next.id));
|
|
2683
|
-
}
|
|
2684
|
-
catch (error) {
|
|
2685
|
-
return this.rollbackLegacyConversationCopy(next.id, error);
|
|
2686
|
-
}
|
|
2687
|
-
}
|
|
2688
|
-
async createBranchSession(sessionId, sourceView, copied, input) {
|
|
2689
|
-
const plan = await this.prepareConversationRuntimeLedgerClone(sessionId, sourceView, copied);
|
|
2690
|
-
const [header, boundary] = await Promise.all([
|
|
2691
|
-
this.deps.store.readHeader(sessionId),
|
|
2692
|
-
this.deps.store.readExecutionBoundary(sessionId),
|
|
2693
|
-
]);
|
|
2694
|
-
const next = await this.deps.store.create({
|
|
2695
|
-
cwd: header.cwd,
|
|
2696
|
-
...(header.projectId !== undefined ? { projectId: header.projectId } : {}),
|
|
2697
|
-
...(header.llmConnectionId === undefined
|
|
2698
|
-
? {}
|
|
2699
|
-
: { llmConnectionId: header.llmConnectionId }),
|
|
2700
|
-
llmConnectionSlug: header.llmConnectionSlug,
|
|
2701
|
-
model: header.model,
|
|
2702
|
-
thinkingLevel: header.thinkingLevel,
|
|
2703
|
-
permissionMode: header.permissionMode,
|
|
2704
|
-
collaborationMode: header.collaborationMode,
|
|
2705
|
-
orchestrationMode: header.orchestrationMode ?? 'default',
|
|
2706
|
-
name: input.name ?? `${header.name} · 分支`,
|
|
2707
|
-
labels: input.sideConversation
|
|
2708
|
-
? [...new Set([...header.labels, SIDE_CONVERSATION_SESSION_LABEL])]
|
|
2709
|
-
: header.labels,
|
|
2710
|
-
parentSessionId: sessionId,
|
|
2711
|
-
branchOfTurnId: input.sourceTurnId,
|
|
2712
|
-
status: 'active',
|
|
2713
|
-
}, boundary);
|
|
2714
|
-
try {
|
|
2715
|
-
const rewritten = await this.cloneConversationRuntimeLedger(next.id, copied, plan);
|
|
2716
|
-
if (rewritten.length > 0)
|
|
2717
|
-
await this.deps.store.appendMessages(next.id, [...rewritten]);
|
|
2718
|
-
await this.deps.store.appendMessage(next.id, {
|
|
2719
|
-
type: 'system_note',
|
|
2720
|
-
id: this.deps.newId(),
|
|
2721
|
-
ts: this.deps.now(),
|
|
2722
|
-
kind: 'session_start',
|
|
2723
|
-
data: { parentSessionId: sessionId, branchOfTurnId: input.sourceTurnId },
|
|
2724
|
-
});
|
|
2725
|
-
return headerToSummary(await this.deps.store.readHeader(next.id));
|
|
2726
|
-
}
|
|
2727
|
-
catch (error) {
|
|
2728
|
-
return this.rollbackLegacyConversationCopy(next.id, error);
|
|
2729
|
-
}
|
|
2716
|
+
return this.getSessionView(sessionId);
|
|
2730
2717
|
}
|
|
2731
2718
|
async respondToSandboxBoundary(sessionId, response) {
|
|
2732
2719
|
if (this.deps.interactionAuthority) {
|
|
@@ -2746,9 +2733,8 @@ export class SessionManager {
|
|
|
2746
2733
|
async findRunByTurnId(sessionId, turnId) {
|
|
2747
2734
|
if (!this.deps.runStore)
|
|
2748
2735
|
return undefined;
|
|
2749
|
-
const runs = await this.
|
|
2750
|
-
|
|
2751
|
-
return run ? this.effectiveRunHeaderFromRuntimeLedger(run) : undefined;
|
|
2736
|
+
const runs = await this.listInvocations(sessionId).catch(() => []);
|
|
2737
|
+
return runs.find((candidate) => candidate.turnId === turnId);
|
|
2752
2738
|
}
|
|
2753
2739
|
assertActiveParentRun(parentSessionId, parentRun, parentTurnId) {
|
|
2754
2740
|
if (parentRun.sessionId !== parentSessionId ||
|
|
@@ -2795,14 +2781,10 @@ export class SessionManager {
|
|
|
2795
2781
|
catch (error) {
|
|
2796
2782
|
if (!(error instanceof RuntimeReadModelError))
|
|
2797
2783
|
throw error;
|
|
2798
|
-
// ShellRun hydration is a best-effort UI projection. A
|
|
2799
|
-
//
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
}
|
|
2803
|
-
catch {
|
|
2804
|
-
return null;
|
|
2805
|
-
}
|
|
2784
|
+
// ShellRun hydration is a best-effort UI projection. A ledger the read
|
|
2785
|
+
// model cannot project yet must not turn its retry loop into a permanent
|
|
2786
|
+
// IPC error; there is no second transcript to fall back to.
|
|
2787
|
+
return null;
|
|
2806
2788
|
}
|
|
2807
2789
|
}
|
|
2808
2790
|
async findChildRunForOutput(sessionId, input) {
|
|
@@ -2821,24 +2803,19 @@ export class SessionManager {
|
|
|
2821
2803
|
child.subagentParent.parentSessionId !== sessionId) {
|
|
2822
2804
|
throw new Error('agent_output could not find the requested child session');
|
|
2823
2805
|
}
|
|
2824
|
-
const runs = await this.
|
|
2806
|
+
const runs = await this.listInvocations(child.id);
|
|
2825
2807
|
const selected = execution.currentRunId
|
|
2826
|
-
? runs
|
|
2827
|
-
: runs
|
|
2828
|
-
|
|
2829
|
-
.sort((left, right) => right.createdAt - left.createdAt ||
|
|
2830
|
-
right.updatedAt - left.updatedAt ||
|
|
2831
|
-
right.runId.localeCompare(left.runId))[0];
|
|
2832
|
-
if (!selected || !isSessionInlineRun(selected)) {
|
|
2808
|
+
? runs.find((run) => run.runId === execution.currentRunId)
|
|
2809
|
+
: latestInvocation(runs);
|
|
2810
|
+
if (!selected || !isSessionInlineInvocation(selected.opening)) {
|
|
2833
2811
|
throw new Error('agent_output could not find the requested child session run');
|
|
2834
2812
|
}
|
|
2835
|
-
const header = await this.effectiveRunHeaderFromRuntimeLedger(selected);
|
|
2836
2813
|
return {
|
|
2837
|
-
|
|
2814
|
+
invocation: selected,
|
|
2838
2815
|
execution: {
|
|
2839
2816
|
kind: 'child_session',
|
|
2840
2817
|
sessionId: child.id,
|
|
2841
|
-
currentRunId:
|
|
2818
|
+
currentRunId: selected.runId,
|
|
2842
2819
|
},
|
|
2843
2820
|
...(child.subagentParent.graph ? { graph: child.subagentParent.graph } : {}),
|
|
2844
2821
|
};
|
|
@@ -2847,39 +2824,27 @@ export class SessionManager {
|
|
|
2847
2824
|
if (legacyExecution && legacyExecution.sessionId !== sessionId) {
|
|
2848
2825
|
throw new Error('agent_output could not find the requested legacy child run');
|
|
2849
2826
|
}
|
|
2850
|
-
const
|
|
2851
|
-
const header = runs?.find((run) => legacyExecution
|
|
2827
|
+
const invocation = (await this.listInvocations(sessionId)).find((run) => legacyExecution
|
|
2852
2828
|
? run.runId === legacyExecution.runId
|
|
2853
2829
|
: input.runId
|
|
2854
2830
|
? run.runId === input.runId
|
|
2855
2831
|
: input.turnId
|
|
2856
2832
|
? run.turnId === input.turnId
|
|
2857
2833
|
: false);
|
|
2858
|
-
if (!
|
|
2834
|
+
if (!invocation)
|
|
2859
2835
|
throw new Error('agent_output could not find the requested child agent run');
|
|
2860
|
-
if (!
|
|
2836
|
+
if (!invocation.opening.lineage?.parentRunId || isSessionInlineInvocation(invocation.opening)) {
|
|
2861
2837
|
throw new Error('agent_output only reads child agent runs');
|
|
2862
2838
|
}
|
|
2863
2839
|
return {
|
|
2864
|
-
|
|
2840
|
+
invocation,
|
|
2865
2841
|
execution: {
|
|
2866
2842
|
kind: 'legacy_child_run',
|
|
2867
2843
|
sessionId,
|
|
2868
|
-
runId:
|
|
2844
|
+
runId: invocation.runId,
|
|
2869
2845
|
},
|
|
2870
2846
|
};
|
|
2871
2847
|
}
|
|
2872
|
-
async effectiveRunHeaderFromRuntimeLedger(run) {
|
|
2873
|
-
if (!this.deps.runtimeEventStore)
|
|
2874
|
-
return run;
|
|
2875
|
-
const runtimeEvents = await this.deps.runtimeEventStore
|
|
2876
|
-
.readRuntimeEvents(run.sessionId, run.runId)
|
|
2877
|
-
.catch(() => undefined);
|
|
2878
|
-
if (!runtimeEvents)
|
|
2879
|
-
return run;
|
|
2880
|
-
const ledger = classifyTerminalRuntimeLedger(run, runtimeEvents);
|
|
2881
|
-
return ledger.kind === 'fact' ? effectiveRunHeaderFromTerminalFact(run, ledger.fact) : run;
|
|
2882
|
-
}
|
|
2883
2848
|
async updateStatus(sessionId, status, blockedReason, ts = this.deps.now()) {
|
|
2884
2849
|
await this.updateHeader(sessionId, buildStatusPatch(status, ts, blockedReason));
|
|
2885
2850
|
}
|
|
@@ -2901,37 +2866,12 @@ export class SessionManager {
|
|
|
2901
2866
|
: header;
|
|
2902
2867
|
this.runtimeKernel.updateCachedHeader(sessionId, next);
|
|
2903
2868
|
}
|
|
2904
|
-
async finalizePlanAbandonment(sessionId
|
|
2869
|
+
async finalizePlanAbandonment(sessionId) {
|
|
2905
2870
|
const header = await this.deps.store.readHeader(sessionId);
|
|
2906
|
-
const
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
? await this.deps.store.updateHeader(sessionId, { collaborationMode: 'agent' })
|
|
2910
|
-
: header;
|
|
2871
|
+
const next = (header.collaborationMode ?? 'agent') === 'agent'
|
|
2872
|
+
? header
|
|
2873
|
+
: await this.deps.store.updateHeader(sessionId, { collaborationMode: 'agent' });
|
|
2911
2874
|
this.runtimeKernel.updateCachedHeader(sessionId, next);
|
|
2912
|
-
if (!changed && !replay)
|
|
2913
|
-
return;
|
|
2914
|
-
if (!operationId) {
|
|
2915
|
-
await this.deps.store.appendMessage(sessionId, {
|
|
2916
|
-
type: 'system_note',
|
|
2917
|
-
id: this.deps.newId(),
|
|
2918
|
-
ts: this.deps.now(),
|
|
2919
|
-
kind: 'mode_change',
|
|
2920
|
-
data: { dimension: 'collaboration', from, to: 'agent' },
|
|
2921
|
-
});
|
|
2922
|
-
return;
|
|
2923
|
-
}
|
|
2924
|
-
const noteId = planAbandonmentNoteId(operationId);
|
|
2925
|
-
const messages = await this.deps.store.readMessages(sessionId);
|
|
2926
|
-
if (messages.some((message) => message.id === noteId))
|
|
2927
|
-
return;
|
|
2928
|
-
await this.deps.store.appendMessage(sessionId, {
|
|
2929
|
-
type: 'system_note',
|
|
2930
|
-
id: noteId,
|
|
2931
|
-
ts: this.deps.now(),
|
|
2932
|
-
kind: 'mode_change',
|
|
2933
|
-
data: { dimension: 'collaboration', from: 'plan', to: 'agent' },
|
|
2934
|
-
});
|
|
2935
2875
|
}
|
|
2936
2876
|
requirePlanStore() {
|
|
2937
2877
|
if (!this.deps.planStore)
|
|
@@ -2963,23 +2903,6 @@ export class SessionManager {
|
|
|
2963
2903
|
throw new SessionConfigurationTransitionError('operation_conflict', 'A pending Plan proposal must be resolved before leaving Plan mode');
|
|
2964
2904
|
}
|
|
2965
2905
|
}
|
|
2966
|
-
async appendTurnState(sessionId, turnId, status, lineage = {}, options = {}) {
|
|
2967
|
-
const ts = options.ts ?? this.deps.now();
|
|
2968
|
-
await this.deps.store.appendMessage(sessionId, buildTurnStateMessage({
|
|
2969
|
-
id: this.deps.newId(),
|
|
2970
|
-
turnId,
|
|
2971
|
-
ts,
|
|
2972
|
-
status,
|
|
2973
|
-
lineage,
|
|
2974
|
-
...(options.abortSource ? { abortSource: options.abortSource } : {}),
|
|
2975
|
-
...(options.errorClass !== undefined ? { errorClass: options.errorClass } : {}),
|
|
2976
|
-
partialOutputRetained: await this.turnHasRetainedOutput(sessionId, turnId),
|
|
2977
|
-
}));
|
|
2978
|
-
}
|
|
2979
|
-
async turnHasRetainedOutput(sessionId, turnId) {
|
|
2980
|
-
const messages = await this.deps.store.readMessages(sessionId).catch(() => []);
|
|
2981
|
-
return messagesHaveRetainedOutput(messages, turnId);
|
|
2982
|
-
}
|
|
2983
2906
|
async requireTurnForAction(sessionId, turnId, allowed, action) {
|
|
2984
2907
|
const turn = (await this.getSessionView(sessionId)).turns.find((candidate) => candidate.turnId === turnId);
|
|
2985
2908
|
if (!turn)
|
|
@@ -2989,46 +2912,40 @@ export class SessionManager {
|
|
|
2989
2912
|
}
|
|
2990
2913
|
return turn;
|
|
2991
2914
|
}
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
}
|
|
3004
|
-
catch (error) {
|
|
3005
|
-
if (!(error instanceof RuntimeReadModelError))
|
|
3006
|
-
throw error;
|
|
3007
|
-
const runId = firstRuntimeRepairRunId(error.diagnostics, repaired);
|
|
3008
|
-
if (!runId)
|
|
3009
|
-
throw error;
|
|
3010
|
-
if (!(await this.repairMissingTerminalFactOnce(sessionId, runId)))
|
|
3011
|
-
throw error;
|
|
3012
|
-
repaired.add(runId);
|
|
3013
|
-
}
|
|
3014
|
-
}
|
|
3015
|
-
return this.readModel(projectionCache).getSessionView(sessionId);
|
|
2915
|
+
/**
|
|
2916
|
+
* The Session as its ledger tells it.
|
|
2917
|
+
*
|
|
2918
|
+
* A transcript written before the ledger owned execution facts is converted
|
|
2919
|
+
* here, on the first read, because there is no second transcript left to read
|
|
2920
|
+
* it from: the importer is what gives those turns an invocation to be
|
|
2921
|
+
* projected from, so a read that skipped it would report the Session empty.
|
|
2922
|
+
*/
|
|
2923
|
+
async getSessionView(sessionId) {
|
|
2924
|
+
await this.ensureTranscriptLedgerForRead(sessionId);
|
|
2925
|
+
return this.readModel().getSessionView(sessionId);
|
|
3016
2926
|
}
|
|
3017
|
-
readModel(
|
|
2927
|
+
readModel() {
|
|
3018
2928
|
if (!this.deps.runStore || !this.deps.runtimeEventStore) {
|
|
3019
2929
|
throw new Error('RuntimeReadModel requires AgentRunStore and RuntimeEventStore');
|
|
3020
2930
|
}
|
|
3021
2931
|
return new RuntimeReadModel({
|
|
3022
|
-
runStore: this.deps.runStore,
|
|
3023
2932
|
runtimeEventStore: this.deps.runtimeEventStore,
|
|
3024
|
-
projectionCache,
|
|
3025
2933
|
...(this.deps.canonicalPermissionOutcomes
|
|
3026
2934
|
? { canonicalPermissionOutcomes: this.deps.canonicalPermissionOutcomes }
|
|
3027
2935
|
: {}),
|
|
3028
2936
|
});
|
|
3029
2937
|
}
|
|
3030
|
-
|
|
3031
|
-
|
|
2938
|
+
/**
|
|
2939
|
+
* Convert a transcript written before the ledger owned execution facts, so a
|
|
2940
|
+
* reader that goes straight to the ledger still sees the whole Session.
|
|
2941
|
+
*
|
|
2942
|
+
* Idempotent and cheap after the first call: the conversion is remembered per
|
|
2943
|
+
* Session, and a Session born on the ledger has nothing to convert.
|
|
2944
|
+
*/
|
|
2945
|
+
async ensureTranscriptLedgerForRead(sessionId) {
|
|
2946
|
+
const repair = this.runtimeLedgerRepair;
|
|
2947
|
+
if (repair)
|
|
2948
|
+
await this.ensureTranscriptLedger(sessionId, repair, 'compatibility');
|
|
3032
2949
|
}
|
|
3033
2950
|
async prepareImportedSessionHistory(sessionId) {
|
|
3034
2951
|
const repair = this.runtimeLedgerRepair;
|
|
@@ -3043,49 +2960,20 @@ export class SessionManager {
|
|
|
3043
2960
|
if (header.transcriptLedgerVersion === 0 && source !== 'import') {
|
|
3044
2961
|
throw new Error('Imported Session history is still being prepared');
|
|
3045
2962
|
}
|
|
2963
|
+
// Version 1 says a conversion ran, not that every legacy fact reached the
|
|
2964
|
+
// ledger. A released build set it on the first send and went on writing
|
|
2965
|
+
// context notes to the transcript alone, so those notes stay behind on
|
|
2966
|
+
// Sessions it touched. Re-running the converter cannot reach them: they
|
|
2967
|
+
// belong to turns a real run already sealed, and a sealed run refuses the
|
|
2968
|
+
// append. They are hidden from the model and describe context, so they are
|
|
2969
|
+
// the accepted cost of the cutover — do not read this marker as proof that
|
|
2970
|
+
// nothing is left in `session_messages`.
|
|
3046
2971
|
if (header.transcriptLedgerVersion !== 1) {
|
|
3047
2972
|
await repair.materializeTranscriptLedger(header);
|
|
3048
2973
|
await this.updateHeader(sessionId, { transcriptLedgerVersion: 1 });
|
|
3049
2974
|
}
|
|
3050
2975
|
this.preparedTranscriptLedgers.add(sessionId);
|
|
3051
2976
|
}
|
|
3052
|
-
async prepareConversationRuntimeLedgerClone(sourceSessionId, sourceView, copiedMessages) {
|
|
3053
|
-
if (!this.deps.runStore || !this.deps.runtimeEventStore)
|
|
3054
|
-
return undefined;
|
|
3055
|
-
return prepareConversationRuntimeLedgerCopy({
|
|
3056
|
-
sourceSessionId,
|
|
3057
|
-
sourceEvents: sourceView.events,
|
|
3058
|
-
copiedMessages,
|
|
3059
|
-
runStore: this.deps.runStore,
|
|
3060
|
-
runtimeEventStore: this.deps.runtimeEventStore,
|
|
3061
|
-
});
|
|
3062
|
-
}
|
|
3063
|
-
async cloneConversationRuntimeLedger(childSessionId, copiedMessages, plan) {
|
|
3064
|
-
if (!plan || !this.deps.runStore || !this.deps.runtimeEventStore)
|
|
3065
|
-
return copiedMessages;
|
|
3066
|
-
const copied = await cloneConversationLedger({
|
|
3067
|
-
plan,
|
|
3068
|
-
copiedMessages,
|
|
3069
|
-
referenceMap: {
|
|
3070
|
-
mode: 'preserve_external',
|
|
3071
|
-
sourceSessionId: plan.sourceSessionId,
|
|
3072
|
-
targetSessionId: childSessionId,
|
|
3073
|
-
},
|
|
3074
|
-
runStore: this.deps.runStore,
|
|
3075
|
-
runtimeEventStore: this.deps.runtimeEventStore,
|
|
3076
|
-
newId: this.deps.newId,
|
|
3077
|
-
});
|
|
3078
|
-
return copied.copiedMessages;
|
|
3079
|
-
}
|
|
3080
|
-
async rollbackLegacyConversationCopy(sessionId, error) {
|
|
3081
|
-
try {
|
|
3082
|
-
await this.deps.store.remove(sessionId);
|
|
3083
|
-
}
|
|
3084
|
-
catch (cleanupError) {
|
|
3085
|
-
throw new AggregateError([error, cleanupError], `Conversation copy ${sessionId} failed and could not be removed`);
|
|
3086
|
-
}
|
|
3087
|
-
throw error;
|
|
3088
|
-
}
|
|
3089
2977
|
/**
|
|
3090
2978
|
* Closes only the two provably pre-provider crash windows owned by B2:
|
|
3091
2979
|
* claim-only and target-Run-created-without-start. A repaired claim never
|
|
@@ -3105,33 +2993,18 @@ export class SessionManager {
|
|
|
3105
2993
|
let recovered = false;
|
|
3106
2994
|
for (const initialState of states) {
|
|
3107
2995
|
const { claim } = initialState;
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
await this.deps.runStore.createRun(claim.targetRunHeader, { durable: true });
|
|
3117
|
-
run = await this.deps.runStore.readRun(sessionId, claim.target.runId);
|
|
3118
|
-
}
|
|
3119
|
-
catch (createError) {
|
|
3120
|
-
try {
|
|
3121
|
-
run = await this.deps.runStore.readRun(sessionId, claim.target.runId);
|
|
3122
|
-
}
|
|
3123
|
-
catch {
|
|
3124
|
-
throw createError;
|
|
3125
|
-
}
|
|
3126
|
-
}
|
|
3127
|
-
recovered = true;
|
|
3128
|
-
}
|
|
2996
|
+
// The target's opening fact rides its continuation-start event, so an
|
|
2997
|
+
// invocation that does not exist yet is exactly the case the repair
|
|
2998
|
+
// start below commits. There is no separate run record to create.
|
|
2999
|
+
const invocation = await this.readInvocation(sessionId, claim.target.runId).catch((error) => {
|
|
3000
|
+
if (isMissingRunError(error))
|
|
3001
|
+
return undefined;
|
|
3002
|
+
throw error;
|
|
3003
|
+
});
|
|
3129
3004
|
let state = (await authority.readContinuationClaimStateByBoundary(claim.boundaryDigest)) ??
|
|
3130
3005
|
initialState;
|
|
3131
|
-
if (
|
|
3132
|
-
|
|
3133
|
-
: !isDeepStrictEqual(run, claim.targetRunHeader)) {
|
|
3134
|
-
throw new Error(`Continuation claim target Run header conflicts with claim ${claim.claimId}`);
|
|
3006
|
+
if (invocation && !invocationMatchesClaimTarget(invocation, claim)) {
|
|
3007
|
+
throw new Error(`Continuation claim target invocation conflicts with claim ${claim.claimId}`);
|
|
3135
3008
|
}
|
|
3136
3009
|
let targetEvents = await readImmutableRuntimeEventsOrEmpty(authority, claim.target.sessionId, claim.target.runId);
|
|
3137
3010
|
if (!state.startEventId) {
|
|
@@ -3158,7 +3031,7 @@ export class SessionManager {
|
|
|
3158
3031
|
const failureClass = 'continuation_abandoned_before_provider_dispatch';
|
|
3159
3032
|
const expectedTerminal = buildRecoveredTerminalRuntimeEvent({
|
|
3160
3033
|
id: continuationRepairEventId('terminal', claim.claimId),
|
|
3161
|
-
run,
|
|
3034
|
+
run: claim.target,
|
|
3162
3035
|
status: 'failed',
|
|
3163
3036
|
ts: Math.max(start.ts + 1, claim.claimedAt + 1),
|
|
3164
3037
|
recoveryReason: failureClass,
|
|
@@ -3170,15 +3043,9 @@ export class SessionManager {
|
|
|
3170
3043
|
if (terminal && !isDeepStrictEqual(terminal, expectedTerminal)) {
|
|
3171
3044
|
throw new Error(`Continuation claim ${claim.claimId} has a conflicting repair terminal`);
|
|
3172
3045
|
}
|
|
3173
|
-
|
|
3174
|
-
const projectionComplete = terminal !== undefined &&
|
|
3175
|
-
run.status === 'failed' &&
|
|
3176
|
-
run.failureClass === failureClass &&
|
|
3177
|
-
existingRunEvents.some((event) => event.type === 'run_failed');
|
|
3178
|
-
if (projectionComplete)
|
|
3046
|
+
if (terminal)
|
|
3179
3047
|
continue;
|
|
3180
3048
|
await commitTerminalRunWithRuntimeFact({
|
|
3181
|
-
runStore: this.deps.runStore,
|
|
3182
3049
|
runtimeEventStore: authority,
|
|
3183
3050
|
newId: () => continuationRepairEventId('run-terminal', claim.claimId),
|
|
3184
3051
|
sessionId: claim.target.sessionId,
|
|
@@ -3188,12 +3055,6 @@ export class SessionManager {
|
|
|
3188
3055
|
ts: expectedTerminal.ts,
|
|
3189
3056
|
terminalEvent: expectedTerminal,
|
|
3190
3057
|
failureClass,
|
|
3191
|
-
runEventData: {
|
|
3192
|
-
recovered: true,
|
|
3193
|
-
recoveryReason: failureClass,
|
|
3194
|
-
continuationClaimId: claim.claimId,
|
|
3195
|
-
},
|
|
3196
|
-
existingEvents: existingRunEvents,
|
|
3197
3058
|
});
|
|
3198
3059
|
recovered = true;
|
|
3199
3060
|
}
|
|
@@ -3202,9 +3063,9 @@ export class SessionManager {
|
|
|
3202
3063
|
async recoverAgentRunsFromLedger(sessionId, policy = { kind: 'best_effort' }) {
|
|
3203
3064
|
if (!this.deps.runStore || !this.deps.runtimeEventStore)
|
|
3204
3065
|
return { hasLedger: false, recovered: false };
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3066
|
+
// The importer may have committed only a prefix before a restart. Sealing
|
|
3067
|
+
// that prefix here would make the next read skip the unconverted history.
|
|
3068
|
+
const runs = (await this.listInvocations(sessionId)).filter((run) => !isTranscriptLedgerInvocation(run));
|
|
3208
3069
|
if (runs.length === 0)
|
|
3209
3070
|
return { hasLedger: false, recovered: false };
|
|
3210
3071
|
const continuationAuthority = runtimeContinuationAuthority(this.deps.runtimeEventStore);
|
|
@@ -3233,7 +3094,7 @@ export class SessionManager {
|
|
|
3233
3094
|
if (policy.kind === 'strict') {
|
|
3234
3095
|
await policy.stores.agentRunStore.readEventsForRecovery(sessionId, run.runId);
|
|
3235
3096
|
}
|
|
3236
|
-
let inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, { sessionId, runId: run.runId,
|
|
3097
|
+
let inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, { sessionId, runId: run.runId, invocation: run });
|
|
3237
3098
|
if (inspected.sourceHealth.runtimeLedger === 'read_failed') {
|
|
3238
3099
|
if (policy.kind === 'strict') {
|
|
3239
3100
|
throw new Error(`RuntimeEvent ledger is unreadable for run ${run.runId}`);
|
|
@@ -3245,6 +3106,14 @@ export class SessionManager {
|
|
|
3245
3106
|
diagnostic.code === 'operational_event_corrupt')) {
|
|
3246
3107
|
throw new Error(`AgentRun event ledger is unreadable for run ${run.runId}`);
|
|
3247
3108
|
}
|
|
3109
|
+
if (run.terminalEvent && runtimeHandoffPause(run.terminalEvent)) {
|
|
3110
|
+
if (inspected.runtimeEvents.at(-1)?.id !== run.terminalEvent.id) {
|
|
3111
|
+
throw new Error(`Handoff source has events after its seal: ${run.runId}`);
|
|
3112
|
+
}
|
|
3113
|
+
// The original Root admission owns this logical execution. Generic
|
|
3114
|
+
// restart repair must neither replay its tools nor manufacture failure.
|
|
3115
|
+
continue;
|
|
3116
|
+
}
|
|
3248
3117
|
if (claimOwnedUnsettledRunIds.has(run.runId) &&
|
|
3249
3118
|
!inspected.runtimeEvents.some(isTerminalRuntimeEvent)) {
|
|
3250
3119
|
// Every unresolved claim target belongs to the claim saga. This
|
|
@@ -3253,7 +3122,7 @@ export class SessionManager {
|
|
|
3253
3122
|
continue;
|
|
3254
3123
|
}
|
|
3255
3124
|
if (this.runtimeCommitSink) {
|
|
3256
|
-
const interruptedOutcomes = buildInterruptedCodeModeOutcomeCommits(inspected.runtimeEvents, this.deps.now(), run.toolMode
|
|
3125
|
+
const interruptedOutcomes = buildInterruptedCodeModeOutcomeCommits(inspected.runtimeEvents, this.deps.now(), run.opening.configuration.toolMode);
|
|
3257
3126
|
let outcomeCommitFailed = false;
|
|
3258
3127
|
for (const outcome of interruptedOutcomes) {
|
|
3259
3128
|
const committed = await commitInterruptedOutcomeWithRetry(policy, () => this.runtimeCommitSink.commitToolOutcome(outcome));
|
|
@@ -3270,23 +3139,13 @@ export class SessionManager {
|
|
|
3270
3139
|
continue;
|
|
3271
3140
|
}
|
|
3272
3141
|
if (interruptedOutcomes.length > 0) {
|
|
3273
|
-
inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, { sessionId, runId: run.runId,
|
|
3142
|
+
inspected = await inspectAgentRunReadModel(this.deps.runStore, this.deps.runtimeEventStore, { sessionId, runId: run.runId, invocation: run });
|
|
3274
3143
|
}
|
|
3275
3144
|
}
|
|
3276
3145
|
const terminalLedger = classifyTerminalRuntimeLedger(run, inspected.runtimeEvents);
|
|
3277
|
-
if (terminalLedger.kind === '
|
|
3146
|
+
if (terminalLedger.kind === 'corrupt') {
|
|
3278
3147
|
if (policy.kind === 'strict') {
|
|
3279
|
-
throw new Error(`RuntimeEvent ledger has
|
|
3280
|
-
}
|
|
3281
|
-
continue;
|
|
3282
|
-
}
|
|
3283
|
-
if (isTerminalRunStatus(run.status) && !inspected.terminalRuntimeFact) {
|
|
3284
|
-
const repaired = await this.repairMissingTerminalFactOnce(sessionId, run.runId);
|
|
3285
|
-
if (repaired) {
|
|
3286
|
-
recovered = true;
|
|
3287
|
-
}
|
|
3288
|
-
else if (policy.kind === 'strict') {
|
|
3289
|
-
throw new Error(`Unable to repair the terminal RuntimeEvent fact for run ${run.runId}`);
|
|
3148
|
+
throw new Error(`RuntimeEvent ledger has more than one terminal event for run ${run.runId}`);
|
|
3290
3149
|
}
|
|
3291
3150
|
continue;
|
|
3292
3151
|
}
|
|
@@ -3304,19 +3163,15 @@ export class SessionManager {
|
|
|
3304
3163
|
return { hasLedger: true, recovered };
|
|
3305
3164
|
}
|
|
3306
3165
|
classifyRuntimeEventRecovery(inspected) {
|
|
3307
|
-
if (
|
|
3166
|
+
if (!inspected.terminalRuntimeFact)
|
|
3308
3167
|
return undefined;
|
|
3309
|
-
return runtimeTerminalFactToRecoveryDecision(inspected.
|
|
3168
|
+
return runtimeTerminalFactToRecoveryDecision(inspected.invocation, inspected.terminalRuntimeFact);
|
|
3310
3169
|
}
|
|
3311
3170
|
async applyAgentRunRecovery(sessionId, decision, inspected, policy = { kind: 'best_effort' }) {
|
|
3312
3171
|
if (!this.deps.runStore || !this.deps.runtimeEventStore)
|
|
3313
3172
|
return false;
|
|
3314
3173
|
const ts = this.deps.now();
|
|
3315
|
-
const
|
|
3316
|
-
const existingTerminal = inspected.terminalRuntimeFact?.terminalEvent ??
|
|
3317
|
-
(terminalLedger.kind === 'incomplete_single_terminal'
|
|
3318
|
-
? terminalLedger.terminalEvent
|
|
3319
|
-
: undefined);
|
|
3174
|
+
const existingTerminal = inspected.terminalRuntimeFact?.terminalEvent;
|
|
3320
3175
|
const status = existingTerminal
|
|
3321
3176
|
? (terminalRunStatusFromRuntimeEvent(existingTerminal) ?? decision.status)
|
|
3322
3177
|
: decision.status;
|
|
@@ -3325,7 +3180,7 @@ export class SessionManager {
|
|
|
3325
3180
|
const terminalEvent = existingTerminal ??
|
|
3326
3181
|
buildRecoveredTerminalRuntimeEvent({
|
|
3327
3182
|
id: this.deps.newId(),
|
|
3328
|
-
run: inspected.
|
|
3183
|
+
run: inspected.invocation,
|
|
3329
3184
|
status,
|
|
3330
3185
|
ts,
|
|
3331
3186
|
recoveryReason: diagnosticRecoveryReason(decision.diagnostic),
|
|
@@ -3338,7 +3193,6 @@ export class SessionManager {
|
|
|
3338
3193
|
});
|
|
3339
3194
|
try {
|
|
3340
3195
|
await commitTerminalRunWithRuntimeFact({
|
|
3341
|
-
runStore: this.deps.runStore,
|
|
3342
3196
|
runtimeEventStore: this.deps.runtimeEventStore,
|
|
3343
3197
|
newId: this.deps.newId,
|
|
3344
3198
|
sessionId,
|
|
@@ -3349,8 +3203,6 @@ export class SessionManager {
|
|
|
3349
3203
|
terminalEvent,
|
|
3350
3204
|
...(failureClass ? { failureClass } : {}),
|
|
3351
3205
|
...(abortSource ? { abortSource } : {}),
|
|
3352
|
-
runEventData: { recovered: true, ...decision.diagnostic },
|
|
3353
|
-
existingEvents: inspected.events,
|
|
3354
3206
|
});
|
|
3355
3207
|
}
|
|
3356
3208
|
catch (error) {
|
|
@@ -3358,25 +3210,11 @@ export class SessionManager {
|
|
|
3358
3210
|
throw error;
|
|
3359
3211
|
return false;
|
|
3360
3212
|
}
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
}, policy), undefined);
|
|
3366
|
-
return true;
|
|
3213
|
+
// A run that already carried a complete terminal fact had nothing to
|
|
3214
|
+
// recover. Saying otherwise makes recovery rewrite the Session status of
|
|
3215
|
+
// every healthy run it walks past.
|
|
3216
|
+
return inspected.terminalRuntimeFact === undefined;
|
|
3367
3217
|
}
|
|
3368
|
-
async appendTerminalTurnStateIfNeeded(sessionId, run, decision, status, options, policy = { kind: 'best_effort' }) {
|
|
3369
|
-
if (!isSessionInlineRun(run))
|
|
3370
|
-
return;
|
|
3371
|
-
const messages = await recoverOr(policy, () => this.deps.store.readMessages(sessionId), []);
|
|
3372
|
-
const latest = latestTurnState(messages, decision.turnId);
|
|
3373
|
-
if (latest && isTerminalTurnStatus(latest.status) && latest.status === status)
|
|
3374
|
-
return;
|
|
3375
|
-
await this.appendTurnState(sessionId, decision.turnId, status, decision.lineage, options);
|
|
3376
|
-
}
|
|
3377
|
-
}
|
|
3378
|
-
function planAbandonmentNoteId(operationId) {
|
|
3379
|
-
return `plan-abandonment-${createHash('sha256').update(operationId).digest('hex')}`;
|
|
3380
3218
|
}
|
|
3381
3219
|
function resumeFeatureDisabledPlan() {
|
|
3382
3220
|
return {
|
|
@@ -3440,6 +3278,8 @@ function buildContinuationRepairStartEvent(claim) {
|
|
|
3440
3278
|
partial: false,
|
|
3441
3279
|
role: 'system',
|
|
3442
3280
|
author: 'system',
|
|
3281
|
+
modelVisibility: 'hidden',
|
|
3282
|
+
content: claim.targetOpening,
|
|
3443
3283
|
actions: {
|
|
3444
3284
|
continuationStart: {
|
|
3445
3285
|
protocol: 'continuation_start_v2',
|
|
@@ -3471,47 +3311,29 @@ function assertClaimOwnsHostedLinkedChildAdmission(input, claim) {
|
|
|
3471
3311
|
claim.target.turnId !== input.turnId) {
|
|
3472
3312
|
throw new Error('Linked child admission conflicts with its continuation claim target');
|
|
3473
3313
|
}
|
|
3474
|
-
const
|
|
3314
|
+
const { lineage, source: openSource } = claim.targetOpening;
|
|
3475
3315
|
const source = claim.boundary.segments.at(-1);
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
'protocol' in continuationSource &&
|
|
3479
|
-
continuationSource.protocol === 'continuation_source_v2'
|
|
3480
|
-
? continuationSource
|
|
3481
|
-
: undefined;
|
|
3482
|
-
if (header.sessionId !== claim.target.sessionId ||
|
|
3483
|
-
header.invocationId !== claim.target.invocationId ||
|
|
3484
|
-
header.runId !== claim.target.runId ||
|
|
3485
|
-
header.turnId !== claim.target.turnId ||
|
|
3486
|
-
header.status !== 'created' ||
|
|
3487
|
-
header.agentId !== input.execution.agentId ||
|
|
3488
|
-
header.agentName !== input.execution.agentName ||
|
|
3316
|
+
if (lineage?.agentId !== input.execution.agentId ||
|
|
3317
|
+
lineage.agentName !== input.execution.agentName ||
|
|
3489
3318
|
source.identity.sessionId !== input.sessionId ||
|
|
3490
3319
|
source.identity.runId !== input.execution.sourceRunId ||
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3320
|
+
openSource.kind !== 'continuation' ||
|
|
3321
|
+
openSource.claimId !== claim.claimId ||
|
|
3322
|
+
openSource.boundaryDigest !== claim.boundaryDigest ||
|
|
3323
|
+
openSource.sourceRunId !== input.execution.sourceRunId) {
|
|
3495
3324
|
throw new Error('Linked child admission continuation claim identity is inconsistent');
|
|
3496
3325
|
}
|
|
3497
3326
|
if (input.execution.kind === 'linked_child_resume'
|
|
3498
|
-
?
|
|
3499
|
-
|
|
3500
|
-
:
|
|
3501
|
-
|
|
3327
|
+
? lineage.resumedFromRunId !== input.execution.sourceRunId ||
|
|
3328
|
+
lineage.retriedFromRunId !== undefined
|
|
3329
|
+
: lineage.retriedFromRunId !== input.execution.sourceRunId ||
|
|
3330
|
+
lineage.resumedFromRunId !== undefined) {
|
|
3502
3331
|
throw new Error('Linked child admission continuation lineage is inconsistent');
|
|
3503
3332
|
}
|
|
3504
3333
|
}
|
|
3505
3334
|
async function readImmutableRuntimeEventsOrEmpty(authority, sessionId, runId) {
|
|
3506
3335
|
return authority.readImmutableRuntimeEvents(sessionId, runId);
|
|
3507
3336
|
}
|
|
3508
|
-
function claimTargetRunHeaderIsCompatible(actual, expected) {
|
|
3509
|
-
const immutable = (header) => {
|
|
3510
|
-
const { status: _status, updatedAt: _updatedAt, completedAt: _completedAt, failureClass: _failureClass, failureMessage: _failureMessage, abortSource: _abortSource, traceWriteError: _traceWriteError, ...rest } = header;
|
|
3511
|
-
return rest;
|
|
3512
|
-
};
|
|
3513
|
-
return isDeepStrictEqual(immutable(actual), immutable(expected));
|
|
3514
|
-
}
|
|
3515
3337
|
function isMissingRunError(error) {
|
|
3516
3338
|
return (isNotFoundError(error) ||
|
|
3517
3339
|
(error instanceof Error && /unknown run|run does not exist|missing run/i.test(error.message)));
|
|
@@ -3560,6 +3382,34 @@ export function headerToSummary(h) {
|
|
|
3560
3382
|
}
|
|
3561
3383
|
return summary;
|
|
3562
3384
|
}
|
|
3385
|
+
/**
|
|
3386
|
+
* What a listing shows about one invocation, read entirely off its own facts.
|
|
3387
|
+
*
|
|
3388
|
+
* Every field here used to be a mutable column on the Run header that a writer
|
|
3389
|
+
* had to keep in step with the events. Deriving them means a listing cannot
|
|
3390
|
+
* disagree with the ledger it is listing.
|
|
3391
|
+
*/
|
|
3392
|
+
function invocationListingFacts(invocation) {
|
|
3393
|
+
const completedAt = invocation.terminalEvent?.ts;
|
|
3394
|
+
const failureClass = runtimeInvocationFailureClass(invocation);
|
|
3395
|
+
return {
|
|
3396
|
+
status: runtimeInvocationOutcome(invocation) ?? 'running',
|
|
3397
|
+
permissionMode: invocation.opening.configuration.permissionMode,
|
|
3398
|
+
createdAt: invocation.openedAt,
|
|
3399
|
+
updatedAt: completedAt ?? invocation.openedAt,
|
|
3400
|
+
...(completedAt !== undefined ? { completedAt } : {}),
|
|
3401
|
+
...(completedAt !== undefined
|
|
3402
|
+
? { durationMs: Math.max(0, completedAt - invocation.openedAt) }
|
|
3403
|
+
: {}),
|
|
3404
|
+
...(failureClass ? { failureClass } : {}),
|
|
3405
|
+
};
|
|
3406
|
+
}
|
|
3407
|
+
/** The most recently opened invocation, breaking ties on run id. */
|
|
3408
|
+
function latestInvocation(invocations) {
|
|
3409
|
+
return invocations
|
|
3410
|
+
.slice()
|
|
3411
|
+
.sort((left, right) => right.openedAt - left.openedAt || right.runId.localeCompare(left.runId))[0];
|
|
3412
|
+
}
|
|
3563
3413
|
function isNotFoundError(error) {
|
|
3564
3414
|
return error instanceof Error && 'code' in error && error.code === 'ENOENT';
|
|
3565
3415
|
}
|
|
@@ -3638,6 +3488,33 @@ function claimedAgentGraphIntentResult(claim, result) {
|
|
|
3638
3488
|
...result,
|
|
3639
3489
|
};
|
|
3640
3490
|
}
|
|
3491
|
+
function sessionConfigurationWithPermissionMode(header, permissionMode) {
|
|
3492
|
+
return {
|
|
3493
|
+
backend: header.backend,
|
|
3494
|
+
...(header.llmConnectionId === undefined ? {} : { llmConnectionId: header.llmConnectionId }),
|
|
3495
|
+
llmConnectionSlug: header.llmConnectionSlug,
|
|
3496
|
+
connectionLocked: header.connectionLocked,
|
|
3497
|
+
model: header.model,
|
|
3498
|
+
thinkingLevel: header.thinkingLevel,
|
|
3499
|
+
permissionMode,
|
|
3500
|
+
collaborationMode: header.collaborationMode ?? 'agent',
|
|
3501
|
+
orchestrationMode: header.orchestrationMode ?? 'default',
|
|
3502
|
+
};
|
|
3503
|
+
}
|
|
3504
|
+
function sessionConfigurationMatchesExceptPermissionMode(header, configuration) {
|
|
3505
|
+
return (header.backend === configuration.backend &&
|
|
3506
|
+
header.llmConnectionId === configuration.llmConnectionId &&
|
|
3507
|
+
header.llmConnectionSlug === configuration.llmConnectionSlug &&
|
|
3508
|
+
header.connectionLocked === configuration.connectionLocked &&
|
|
3509
|
+
header.model === configuration.model &&
|
|
3510
|
+
header.thinkingLevel === configuration.thinkingLevel &&
|
|
3511
|
+
(header.collaborationMode ?? 'agent') === configuration.collaborationMode &&
|
|
3512
|
+
(header.orchestrationMode ?? 'default') === configuration.orchestrationMode);
|
|
3513
|
+
}
|
|
3514
|
+
function sessionConfigurationMatches(header, configuration) {
|
|
3515
|
+
return (header.permissionMode === configuration.permissionMode &&
|
|
3516
|
+
sessionConfigurationMatchesExceptPermissionMode(header, configuration));
|
|
3517
|
+
}
|
|
3641
3518
|
function executionBoundaryMatchesPermissionMode(boundary, mode) {
|
|
3642
3519
|
if (mode === 'bypass')
|
|
3643
3520
|
return boundary.kind === 'bypass';
|
|
@@ -3652,7 +3529,7 @@ function narrowsExecutionAuthority(boundary, nextPermissionMode) {
|
|
|
3652
3529
|
return false;
|
|
3653
3530
|
if (boundary.kind !== 'managed')
|
|
3654
3531
|
return true;
|
|
3655
|
-
return nextPermissionMode === 'explore' && boundary.profile
|
|
3532
|
+
return (nextPermissionMode === 'explore' && !isCanonicalReadOnlyPermissionProfile(boundary.profile));
|
|
3656
3533
|
}
|
|
3657
3534
|
function agentRunStatusForSpawnResult(status) {
|
|
3658
3535
|
if (status === 'waiting_for_user')
|
|
@@ -3661,7 +3538,7 @@ function agentRunStatusForSpawnResult(status) {
|
|
|
3661
3538
|
return 'cancelled';
|
|
3662
3539
|
if (status === 'failed')
|
|
3663
3540
|
return 'failed';
|
|
3664
|
-
if (status === 'running'
|
|
3541
|
+
if (status === 'running')
|
|
3665
3542
|
return 'running';
|
|
3666
3543
|
return 'completed';
|
|
3667
3544
|
}
|
|
@@ -3729,92 +3606,16 @@ class ChildAgentSummaryAccumulator {
|
|
|
3729
3606
|
this.textDeltaTail = this.textDeltaTail.slice(-CHILD_AGENT_SUMMARY_MAX_CHARS);
|
|
3730
3607
|
}
|
|
3731
3608
|
}
|
|
3732
|
-
function hasRevisionUserMessage(messages) {
|
|
3733
|
-
let boundary = -1;
|
|
3734
|
-
for (let index = 0; index < messages.length; index += 1) {
|
|
3735
|
-
const message = messages[index];
|
|
3736
|
-
if (message.type === 'system_note' &&
|
|
3737
|
-
message.kind === 'session_start' &&
|
|
3738
|
-
message.data &&
|
|
3739
|
-
typeof message.data === 'object' &&
|
|
3740
|
-
'revisionRootSessionId' in message.data) {
|
|
3741
|
-
boundary = index;
|
|
3742
|
-
}
|
|
3743
|
-
}
|
|
3744
|
-
return boundary >= 0 && messages.slice(boundary + 1).some((message) => message.type === 'user');
|
|
3745
|
-
}
|
|
3746
|
-
function interruptedTurnRecoveries(messages) {
|
|
3747
|
-
const byTurn = new Map();
|
|
3748
|
-
for (const message of messages) {
|
|
3749
|
-
const turnId = message.turnId;
|
|
3750
|
-
if (!turnId)
|
|
3751
|
-
continue;
|
|
3752
|
-
const bucket = byTurn.get(turnId) ?? { hasAssistant: false, states: [] };
|
|
3753
|
-
if (message.type === 'assistant')
|
|
3754
|
-
bucket.hasAssistant = true;
|
|
3755
|
-
if (message.type === 'turn_state')
|
|
3756
|
-
bucket.states.push(message);
|
|
3757
|
-
byTurn.set(turnId, bucket);
|
|
3758
|
-
}
|
|
3759
|
-
const recoveries = [];
|
|
3760
|
-
for (const [turnId, bucket] of byTurn) {
|
|
3761
|
-
const latest = bucket.states.at(-1);
|
|
3762
|
-
if (!latest)
|
|
3763
|
-
continue;
|
|
3764
|
-
if (latest.status === 'running') {
|
|
3765
|
-
recoveries.push({
|
|
3766
|
-
turnId,
|
|
3767
|
-
errorClass: 'app_restarted',
|
|
3768
|
-
lineage: turnStateLineage(latest),
|
|
3769
|
-
});
|
|
3770
|
-
continue;
|
|
3771
|
-
}
|
|
3772
|
-
const failed = [...bucket.states].reverse().find((state) => state.status === 'failed');
|
|
3773
|
-
if (latest.status === 'completed' && !bucket.hasAssistant && failed) {
|
|
3774
|
-
recoveries.push({
|
|
3775
|
-
turnId,
|
|
3776
|
-
errorClass: failed.errorClass ?? 'unknown',
|
|
3777
|
-
lineage: turnStateLineage(failed),
|
|
3778
|
-
});
|
|
3779
|
-
}
|
|
3780
|
-
}
|
|
3781
|
-
return recoveries;
|
|
3782
|
-
}
|
|
3783
|
-
function turnStateLineage(state) {
|
|
3784
|
-
return {
|
|
3785
|
-
...(state.parentTurnId ? { parentTurnId: state.parentTurnId } : {}),
|
|
3786
|
-
...(state.retriedFromTurnId ? { retriedFromTurnId: state.retriedFromTurnId } : {}),
|
|
3787
|
-
...(state.regeneratedFromTurnId ? { regeneratedFromTurnId: state.regeneratedFromTurnId } : {}),
|
|
3788
|
-
...(state.branchOfTurnId ? { branchOfTurnId: state.branchOfTurnId } : {}),
|
|
3789
|
-
...(state.parentSessionId ? { parentSessionId: state.parentSessionId } : {}),
|
|
3790
|
-
};
|
|
3791
|
-
}
|
|
3792
3609
|
function isTerminalRunStatus(status) {
|
|
3793
3610
|
return status === 'completed' || status === 'failed' || status === 'cancelled';
|
|
3794
3611
|
}
|
|
3795
|
-
function isTerminalTurnStatus(status) {
|
|
3796
|
-
return status === 'completed' || status === 'failed' || status === 'aborted';
|
|
3797
|
-
}
|
|
3798
|
-
function terminalTurnStatus(status) {
|
|
3799
|
-
if (status === 'cancelled')
|
|
3800
|
-
return 'aborted';
|
|
3801
|
-
return status;
|
|
3802
|
-
}
|
|
3803
3612
|
function diagnosticRecoveryReason(diagnostic) {
|
|
3804
3613
|
const recoveryReason = diagnostic?.recoveryReason;
|
|
3805
3614
|
return typeof recoveryReason === 'string' && recoveryReason.length > 0
|
|
3806
3615
|
? recoveryReason
|
|
3807
3616
|
: 'agent_run_recovery';
|
|
3808
3617
|
}
|
|
3809
|
-
function
|
|
3810
|
-
for (let index = messages.length - 1; index >= 0; index -= 1) {
|
|
3811
|
-
const message = messages[index];
|
|
3812
|
-
if (message?.type === 'turn_state' && message.turnId === turnId)
|
|
3813
|
-
return message;
|
|
3814
|
-
}
|
|
3815
|
-
return undefined;
|
|
3816
|
-
}
|
|
3817
|
-
function runtimeTerminalFactToRecoveryDecision(header, fact) {
|
|
3618
|
+
function runtimeTerminalFactToRecoveryDecision(invocation, fact) {
|
|
3818
3619
|
return {
|
|
3819
3620
|
runId: fact.runId,
|
|
3820
3621
|
turnId: fact.turnId,
|
|
@@ -3826,19 +3627,22 @@ function runtimeTerminalFactToRecoveryDecision(header, fact) {
|
|
|
3826
3627
|
runtimeEventId: fact.terminalEvent.id,
|
|
3827
3628
|
runtimeEventStatus: fact.terminalEvent.status,
|
|
3828
3629
|
},
|
|
3829
|
-
lineage:
|
|
3630
|
+
lineage: openingLineage(invocation),
|
|
3830
3631
|
};
|
|
3831
3632
|
}
|
|
3832
|
-
function
|
|
3633
|
+
function openingLineage(invocation) {
|
|
3634
|
+
const lineage = invocation.opening.lineage;
|
|
3635
|
+
if (!lineage)
|
|
3636
|
+
return {};
|
|
3833
3637
|
return {
|
|
3834
|
-
...(
|
|
3835
|
-
...(
|
|
3836
|
-
...(
|
|
3837
|
-
...(
|
|
3838
|
-
? { regeneratedFromTurnId:
|
|
3638
|
+
...(lineage.parentRunId ? { parentRunId: lineage.parentRunId } : {}),
|
|
3639
|
+
...(lineage.parentTurnId ? { parentTurnId: lineage.parentTurnId } : {}),
|
|
3640
|
+
...(lineage.retriedFromTurnId ? { retriedFromTurnId: lineage.retriedFromTurnId } : {}),
|
|
3641
|
+
...(lineage.regeneratedFromTurnId
|
|
3642
|
+
? { regeneratedFromTurnId: lineage.regeneratedFromTurnId }
|
|
3839
3643
|
: {}),
|
|
3840
|
-
...(
|
|
3841
|
-
...(
|
|
3644
|
+
...(lineage.branchOfTurnId ? { branchOfTurnId: lineage.branchOfTurnId } : {}),
|
|
3645
|
+
...(lineage.parentSessionId ? { parentSessionId: lineage.parentSessionId } : {}),
|
|
3842
3646
|
};
|
|
3843
3647
|
}
|
|
3844
3648
|
function normalizeAgentOutputMaxEvents(value) {
|
|
@@ -3866,9 +3670,9 @@ function buildAgentOutputCommittedResult(input) {
|
|
|
3866
3670
|
{
|
|
3867
3671
|
operator: {
|
|
3868
3672
|
operatorId: input.graph.operatorId,
|
|
3869
|
-
sessionId: input.
|
|
3673
|
+
sessionId: input.invocation.sessionId,
|
|
3870
3674
|
},
|
|
3871
|
-
run: input.
|
|
3675
|
+
run: input.invocation,
|
|
3872
3676
|
events: input.runtimeEvents,
|
|
3873
3677
|
},
|
|
3874
3678
|
],
|
|
@@ -3882,7 +3686,7 @@ function buildAgentOutputCommittedResult(input) {
|
|
|
3882
3686
|
let artifactIds = tail(input.artifacts.map((artifact) => artifact.id), input.maxArtifacts);
|
|
3883
3687
|
const base = () => ({
|
|
3884
3688
|
schemaVersion: 1,
|
|
3885
|
-
status: input.
|
|
3689
|
+
status: runtimeInvocationOutcome(input.invocation) ?? 'running',
|
|
3886
3690
|
...(input.graph ? { graph: { ...input.graph } } : {}),
|
|
3887
3691
|
...(outputRecord || terminalRecord
|
|
3888
3692
|
? { resultRecordId: (outputRecord ?? terminalRecord).recordId }
|
|
@@ -3893,7 +3697,9 @@ function buildAgentOutputCommittedResult(input) {
|
|
|
3893
3697
|
textTruncated: false,
|
|
3894
3698
|
artifactIds,
|
|
3895
3699
|
omittedArtifactIds: Math.max(0, input.artifacts.length - artifactIds.length),
|
|
3896
|
-
...(input.
|
|
3700
|
+
...(runtimeInvocationFailureClass(input.invocation)
|
|
3701
|
+
? { failureClass: runtimeInvocationFailureClass(input.invocation) }
|
|
3702
|
+
: {}),
|
|
3897
3703
|
});
|
|
3898
3704
|
while (artifactIds.length > 0 && serializedBytes(base()) > input.maxBytes) {
|
|
3899
3705
|
artifactIds = artifactIds.slice(1);
|
|
@@ -3916,7 +3722,12 @@ function buildAgentOutputCommittedResult(input) {
|
|
|
3916
3722
|
truncated: withoutText.omittedArtifactIds > 0,
|
|
3917
3723
|
};
|
|
3918
3724
|
}
|
|
3919
|
-
const codePoints =
|
|
3725
|
+
const codePoints = [];
|
|
3726
|
+
for (const point of text) {
|
|
3727
|
+
if (codePoints.length >= input.maxBytes)
|
|
3728
|
+
break;
|
|
3729
|
+
codePoints.push(point);
|
|
3730
|
+
}
|
|
3920
3731
|
let low = 0;
|
|
3921
3732
|
let high = codePoints.length;
|
|
3922
3733
|
let best = { ...withoutText, textTruncated: true };
|