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,23 +16,26 @@
|
|
|
16
16
|
* specific language governing permissions and limitations
|
|
17
17
|
* under the License.
|
|
18
18
|
*/
|
|
19
|
+
import { copyWorkHubAttachmentsToTarget } from './workhub-message-attachments.js';
|
|
19
20
|
import { createHash, randomUUID } from 'node:crypto';
|
|
20
|
-
import { MAX_READ_IMAGE_BYTES } from '@maka/core/attachments';
|
|
21
|
+
import { attachmentKindFromMimeType, MAX_READ_IMAGE_BYTES } from '@maka/core/attachments';
|
|
21
22
|
import { messageContentDigest, normalizeMessageContent } from '@maka/core/events';
|
|
22
|
-
import {
|
|
23
|
+
import { NO_REAL_CONNECTION_CODE } from '@maka/core/connection-error-copy';
|
|
23
24
|
import { generalizedErrorMessage } from '@maka/core/redaction';
|
|
24
25
|
import { emptyPlanSessionState } from '@maka/core/plan';
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
26
|
+
import { readLogicalRuntimeExecutionForRun } from '@maka/core/runtime-logical-execution';
|
|
27
|
+
import { runtimeInvocationOutcome, } from '@maka/core/runtime-invocation';
|
|
28
|
+
import { isDeepResearchSession, WORKHUB_COORDINATION_SESSION_ID, WORKHUB_COORDINATION_REPLACEMENT_SCHEMA_VERSION, } from '@maka/core/session';
|
|
29
|
+
import { AgentGraphClientOperationError, AgentGraphCoordinator, } from '@maka/runtime/stream-graph-coordinator';
|
|
28
30
|
import { AgentGraphSupervisorWakeCoordinator } from '@maka/runtime/agent-graph-supervisor-wake';
|
|
29
|
-
import { BackendRegistry, SessionManager, } from '@maka/runtime/session-manager';
|
|
31
|
+
import { BackendRegistry, SessionManager, workHubDirectStopAbortSource, } from '@maka/runtime/session-manager';
|
|
30
32
|
import { buildToolsForAgentDefinition } from '@maka/runtime/agent-catalog';
|
|
31
33
|
import { buildHistoryTools } from '@maka/runtime/history-tools';
|
|
34
|
+
import { buildBuiltinTools } from '@maka/runtime/builtin-tools';
|
|
32
35
|
import { createLocalContinuationSafetyInspector } from '@maka/runtime/continuation-safety';
|
|
33
36
|
import { createConfiguredSubagentCatalog } from '@maka/runtime/configured-subagent-catalog';
|
|
34
37
|
import { buildHostCapabilitiesFromBinding } from '@maka/runtime/skills';
|
|
35
|
-
import { createBuiltinSandboxManager,
|
|
38
|
+
import { createBuiltinSandboxManager, isBuiltinFilesystemWorkerSandboxAvailable, } from '@maka/runtime/sandbox';
|
|
36
39
|
import { createFilesystemWorkerLaunchSpecProvider, FilesystemWorkerClient, } from '@maka/runtime/filesystem-worker';
|
|
37
40
|
import { isOAuthEnrollmentProviderEnabled } from '@maka/runtime/oauth-provider-contracts';
|
|
38
41
|
import { loadHistoryCompactCheckpointsFromRunLedger, loadLatestHistoryCompactCheckpointFromRunLedger, } from '@maka/runtime/history-compact-ledger';
|
|
@@ -42,9 +45,30 @@ import { renderAgentSwarmSupervisorWake, shouldWakeAgentSwarmSupervisor, } from
|
|
|
42
45
|
import { SessionActivityRegistry } from '@maka/runtime/goal-turn-lifecycle';
|
|
43
46
|
import { ShellRunProcessManager } from '@maka/runtime/shell-run-manager';
|
|
44
47
|
import { resolveShellPlan, resolveTurnShellPlan, validateShellPreference, } from '@maka/runtime/shell-detect';
|
|
48
|
+
import { Context } from '@maka/runtime/plugin-kernel';
|
|
49
|
+
import { PluginAgentService } from '@maka/runtime/plugin-agent-service';
|
|
50
|
+
import { PluginAttachmentService } from '@maka/runtime/plugin-attachment-service';
|
|
51
|
+
import { PluginApprovalService } from '@maka/runtime/plugin-approval-service';
|
|
52
|
+
import { PluginFilesystemService } from '@maka/runtime/plugin-fs-service';
|
|
53
|
+
import { PluginLlmService } from '@maka/runtime/plugin-llm-service';
|
|
54
|
+
import { PluginShellService } from '@maka/runtime/plugin-shell-service';
|
|
55
|
+
import { PluginUserQuestionService } from '@maka/runtime/plugin-user-question-service';
|
|
56
|
+
import { PluginWebService } from '@maka/runtime/plugin-web-service';
|
|
57
|
+
import { MakaCompositionLoader } from '@maka/runtime/plugin-composition-loader';
|
|
58
|
+
import { PluginToolService } from '@maka/runtime/plugin-tool-service';
|
|
59
|
+
import { PluginSystemPromptService } from '@maka/runtime/plugin-system-prompt-service';
|
|
60
|
+
import { PluginCommandService } from '@maka/runtime/plugin-command-service';
|
|
61
|
+
import { PluginAuthorizationService, PluginCredentialService, PluginSettingsService, PluginStorageService, } from '@maka/runtime/plugin-data-services';
|
|
62
|
+
import { PluginGoalService } from '@maka/runtime/plugin-goal-service';
|
|
63
|
+
import { PluginLspService } from '@maka/runtime/plugin-lsp-service';
|
|
64
|
+
import { PluginSessionQueryService } from '@maka/runtime/plugin-session-query-service';
|
|
65
|
+
import { PluginShellEnvService } from '@maka/runtime/plugin-shell-env-service';
|
|
66
|
+
import { PluginSkillService } from '@maka/runtime/plugin-skill-service';
|
|
67
|
+
import { isHostedExecutionTerminal } from './hosted-execution-authority.js';
|
|
45
68
|
import { createAgentGraphControlStore } from '@maka/storage/agent-graph-control-store';
|
|
46
|
-
import { createArtifactAttachmentResourceReader
|
|
47
|
-
import {
|
|
69
|
+
import { createArtifactAttachmentResourceReader } from '@maka/storage/artifact-stores';
|
|
70
|
+
import { createReadImageSnapshotStore } from '@maka/storage/read-image-snapshot-store';
|
|
71
|
+
import { isSessionNotFoundError } from '@maka/storage/execution-stores';
|
|
48
72
|
import { createExternalSessionAdapterRegistry } from '@maka/storage/external-sessions';
|
|
49
73
|
import { createGitWorktreeChildExecutor } from '@maka/storage/git-worktree-child-executor';
|
|
50
74
|
import { runWithStorageRootLease } from '@maka/storage/root-authority';
|
|
@@ -52,6 +76,7 @@ import { createInteractiveContextOffloadReader } from '@maka/storage/context-off
|
|
|
52
76
|
import { openStorageWriterComposition } from '@maka/storage/storage-writer-composition';
|
|
53
77
|
import { resolveWorkspaceIdentity } from '@maka/storage/workspace-identity';
|
|
54
78
|
import { CanonicalSessionProjectionReader } from './canonical-session-projection.js';
|
|
79
|
+
import { HostPluginDataRuntime } from './plugin-data-runtime.js';
|
|
55
80
|
import { bindHostChildAgentBackend, createHostChildAgentToolComposition, } from './child-agent-composition.js';
|
|
56
81
|
import { HostCanonicalPermissionOutcomeReader } from './canonical-permission-outcome-reader.js';
|
|
57
82
|
import { HostArtifactCoordinator } from './artifact-coordinator.js';
|
|
@@ -66,75 +91,88 @@ import { HostContextCoordinator } from './context-coordinator.js';
|
|
|
66
91
|
import { HostClientCapabilityCoordinator } from './client-capability-coordinator.js';
|
|
67
92
|
import { HostDeepResearchCoordinator } from './deep-research-coordinator.js';
|
|
68
93
|
import { HostDailyReviewCoordinator } from './daily-review-coordinator.js';
|
|
69
|
-
import {
|
|
94
|
+
import { prepareHostAiSdkBackend } from './execution-model-composition.js';
|
|
70
95
|
import { createInteractiveRunComposer, createInteractiveRunComposerFactory, routeInteractiveRunToolSurface, } from './interactive-run-composer.js';
|
|
71
|
-
import { createHostGoalEvaluator, createHostDailyReviewModel, createHostMemoryExtractionModel, createHostSessionEffectModel, } from './execution-model-authority.js';
|
|
96
|
+
import { createHostGoalEvaluator, createHostDailyReviewModel, createHostMemoryExtractionModel, createHostPluginModel, createHostSessionEffectModel, } from './execution-model-authority.js';
|
|
72
97
|
import { HostExecutionInspectCoordinator } from './execution-inspect-coordinator.js';
|
|
73
98
|
import { HostExternalSessionCoordinator } from './external-session-coordinator.js';
|
|
99
|
+
import { HostSessionBundleCoordinator } from './session-bundle-coordinator.js';
|
|
74
100
|
import { HostGoalCoordinator } from './goal-coordinator.js';
|
|
75
101
|
import { HostGoalExecutionCoordinator } from './goal-execution-coordinator.js';
|
|
76
102
|
import { HostHostedExecutionCoordinator } from './hosted-execution-coordinator.js';
|
|
77
103
|
import { HostHostedExecutionRunner } from './hosted-execution-runner.js';
|
|
78
|
-
import { executeHostedExecutionToSettlement } from './hosted-execution-wait.js';
|
|
104
|
+
import { executeHostedExecutionToSettlement, waitForHostedExecutionIdleOrAbort, } from './hosted-execution-wait.js';
|
|
79
105
|
import { beginRuntimeHostDomainModuleDrain, closeRuntimeHostDomainModules, composeRuntimeHostDomainHandlers, createRuntimeHostDomainModule, recoverRuntimeHostDomainModules, } from './host-composition.js';
|
|
80
106
|
import { HostInteractionCoordinator } from './interaction-coordinator.js';
|
|
81
107
|
import { HostInteractiveTurnCoordinator } from './interactive-turn-coordinator.js';
|
|
82
108
|
import { SessionTurnAccessRequestCoordinator } from './session-turn-access-request-coordinator.js';
|
|
83
109
|
import { ensureBootstrapRuntimePolicy } from './bootstrap-runtime-policy.js';
|
|
84
|
-
import { hostedExecutionRunProfile } from './hosted-execution-tool-profile.js';
|
|
110
|
+
import { bindWorkHubRoutingDecisionPrompt, hostedExecutionRunProfile, } from './hosted-execution-tool-profile.js';
|
|
85
111
|
import { HostMemoryCoordinator } from './memory-coordinator.js';
|
|
86
112
|
import { HostMemoryExtractionCoordinator } from './memory-extraction-coordinator.js';
|
|
87
113
|
import { MemoryExtractionSessionLane } from './memory-extraction-session-lane.js';
|
|
88
114
|
import { HostMessageCoordinator } from './message-coordinator.js';
|
|
89
115
|
import { HostNetworkProxyCoordinator } from './network-proxy-coordinator.js';
|
|
90
116
|
import { HostOAuthExecutionAuthority } from './oauth-execution-authority.js';
|
|
117
|
+
import { join } from 'node:path';
|
|
118
|
+
import { toRuntimePolicyProxy } from './runtime-policy-proxy.js';
|
|
119
|
+
import { AcpSetupError } from './acp/connection.js';
|
|
120
|
+
import { installAntigravity } from './acp/antigravity-install.js';
|
|
121
|
+
import { createProxiedFetchTransport } from '@maka/runtime/network/scoped-fetch-transport';
|
|
122
|
+
import { HostExternalAgentSetupCoordinator } from './external-agent-setup-coordinator.js';
|
|
91
123
|
import { HostOAuthCoordinator } from './oauth-coordinator.js';
|
|
92
124
|
import { HostPlanCoordinator } from './plan-coordinator.js';
|
|
93
125
|
import { HostProjectDirectoryAuthority, } from './project-directory-authority.js';
|
|
94
126
|
import { HostProjectCatalogCoordinator } from './project-catalog-coordinator.js';
|
|
95
127
|
import { HostProjectMembershipGate } from './project-membership-gate.js';
|
|
128
|
+
import { HostPluginPlatformCoordinator } from './plugin-platform-coordinator.js';
|
|
129
|
+
import { HostPluginPlatform } from './plugin-platform.js';
|
|
96
130
|
import { RootAdmissionOwner } from './root-admission-owner.js';
|
|
97
131
|
import { RootTurnCoordinator } from './root-turn-coordinator.js';
|
|
98
132
|
import { RuntimePolicyActivationGate } from './runtime-policy-activation-gate.js';
|
|
99
133
|
import { notifySandboxBoundaryGraphWake } from './sandbox-boundary-graph-wake.js';
|
|
100
134
|
import { HostRuntimePolicyCoordinator } from './runtime-policy-coordinator.js';
|
|
135
|
+
import { startHostModelMetadataRefresh } from './model-metadata-refresh.js';
|
|
101
136
|
import { HostRuntimeResourceCoordinator } from './runtime-resource-coordinator.js';
|
|
102
137
|
import { SessionAdmissionGate } from './session-admission-gate.js';
|
|
103
138
|
import { HostSessionCatalogCoordinator } from './session-catalog-coordinator.js';
|
|
104
139
|
import { HostWorkspaceResolver } from './workspace-resolver.js';
|
|
105
140
|
import { HostSessionRetirementCoordinator } from './session-retirement-coordinator.js';
|
|
141
|
+
import { HostStorageMaintenance } from './storage-maintenance.js';
|
|
106
142
|
import { HostSessionRevisionCoordinator } from './session-revision-coordinator.js';
|
|
107
143
|
import { HostSessionEffectCoordinator } from './session-effect-coordinator.js';
|
|
108
144
|
import { SessionContinuityCoordinator } from './session-continuity-coordinator.js';
|
|
109
|
-
import { createSessionTranscriptReader } from './session-transcript-reader.js';
|
|
110
|
-
import { HostSkillCatalogCoordinator } from './skill-catalog-coordinator.js';
|
|
145
|
+
import { createSessionTranscriptReader, } from './session-transcript-reader.js';
|
|
146
|
+
import { HostSkillCatalogCoordinator, SkillCatalogInvocableContextError, } from './skill-catalog-coordinator.js';
|
|
111
147
|
import { SkillCatalogRepository } from './skill-catalog-repository.js';
|
|
112
|
-
import {
|
|
148
|
+
import { HostSessionTodoCoordinator } from './session-todo-coordinator.js';
|
|
113
149
|
import { HostTurnControlCoordinator } from './turn-control-coordinator.js';
|
|
114
150
|
import { HostUsagePricingCoordinator } from './usage-pricing-coordinator.js';
|
|
115
151
|
import { HostWebSearchCoordinator } from './web-search-coordinator.js';
|
|
116
152
|
import { HostWorkHubCoordinationCoordinator } from './workhub-coordination-coordinator.js';
|
|
117
|
-
import { WorkHubActionEffectFailure } from './workhub-coordination-action-gate.js';
|
|
153
|
+
import { WorkHubActionEffectFailure, workHubResumedTurnId, } from './workhub-coordination-action-gate.js';
|
|
118
154
|
import { createHostWebSearchService, createHostWebSearchToolFromService, resolveHostTavilyWebSearchReadiness, shouldResolveHostTavilyWebSearchReadiness, } from './web-search-tool.js';
|
|
119
155
|
import { createHostWebFetchService, createHostWebFetchToolFromService } from './web-fetch-tool.js';
|
|
120
156
|
import { createHostExecutionArtifactServices } from './execution-artifacts.js';
|
|
157
|
+
import { openToolResultArchiveEvidenceReader } from '@maka/storage/tool-result-archive-evidence';
|
|
121
158
|
import { createRuntimeHostWorkspaceExecutionComposition, RuntimeHostWorkspaceExecutionError, } from './workspace-execution-composition.js';
|
|
122
|
-
const
|
|
159
|
+
const GIBIBYTE = 1024 * 1024 * 1024;
|
|
160
|
+
const CONTEXT_OFFLOAD_LIMITS = Object.freeze({
|
|
123
161
|
ownerMaxBytes: Object.freeze({
|
|
124
162
|
read_image_snapshot: MAX_READ_IMAGE_BYTES,
|
|
125
163
|
tool_result_archive: 0,
|
|
126
164
|
}),
|
|
127
|
-
//
|
|
128
|
-
//
|
|
129
|
-
sessionLogicalBytes:
|
|
130
|
-
workspacePhysicalBytes:
|
|
165
|
+
// Read images are bounded individually and logically per Session. Physical
|
|
166
|
+
// bytes are content-addressed across Sessions and bounded per workspace.
|
|
167
|
+
sessionLogicalBytes: GIBIBYTE,
|
|
168
|
+
workspacePhysicalBytes: 20 * GIBIBYTE,
|
|
131
169
|
});
|
|
132
170
|
export function runtimeHostFilesystemWorkerRuntime(versions) {
|
|
133
171
|
return versions.electron ? 'electron' : 'node';
|
|
134
172
|
}
|
|
135
173
|
export async function createExecutionRuntimeHostComposition(context, options = {}, dependencies = {}) {
|
|
136
174
|
const storage = await openStorageWriterComposition(context.owner.lease, {
|
|
137
|
-
contextOffloadLimits:
|
|
175
|
+
contextOffloadLimits: CONTEXT_OFFLOAD_LIMITS,
|
|
138
176
|
afterRuntimePolicyOpened: async (stores) => {
|
|
139
177
|
if (options.bootstrapRuntimePolicy !== false) {
|
|
140
178
|
await ensureBootstrapRuntimePolicy({
|
|
@@ -146,19 +184,55 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
146
184
|
},
|
|
147
185
|
});
|
|
148
186
|
if (storage.contextOffloadUnavailable) {
|
|
149
|
-
console.error(`[runtime-host] optional context-offload
|
|
187
|
+
console.error(`[runtime-host] optional context-offload Store could not be opened: ${generalizedErrorMessage(storage.contextOffloadUnavailable.cause)}`);
|
|
150
188
|
}
|
|
151
189
|
const stores = storage.execution;
|
|
152
190
|
let graphControlStore;
|
|
153
191
|
let graphClient;
|
|
154
192
|
let sessionEffects;
|
|
155
193
|
let memoryExtraction;
|
|
156
|
-
let unsubscribeTaskLedger;
|
|
157
194
|
let unsubscribeTranscriptChanges;
|
|
195
|
+
let transcriptReader;
|
|
158
196
|
let unsubscribeUsageChanges;
|
|
159
197
|
let workspaceExecution;
|
|
160
198
|
let goalExecutions;
|
|
199
|
+
let pluginPlatform;
|
|
200
|
+
let manager;
|
|
201
|
+
let modelMetadataRefresh;
|
|
202
|
+
let archiveEvidence;
|
|
161
203
|
try {
|
|
204
|
+
const pluginRoot = new Context();
|
|
205
|
+
const pluginAgents = new PluginAgentService(pluginRoot);
|
|
206
|
+
const pluginAttachments = new PluginAttachmentService(pluginRoot, pluginAgents);
|
|
207
|
+
new PluginApprovalService(pluginRoot, pluginAgents);
|
|
208
|
+
new PluginUserQuestionService(pluginRoot, pluginAgents);
|
|
209
|
+
const pluginFilesystem = new PluginFilesystemService(pluginRoot, pluginAgents);
|
|
210
|
+
const pluginLlm = new PluginLlmService(pluginRoot, pluginAgents);
|
|
211
|
+
const pluginShellEnv = new PluginShellEnvService(pluginRoot);
|
|
212
|
+
const pluginShell = new PluginShellService(pluginRoot, pluginAgents, pluginShellEnv);
|
|
213
|
+
const pluginWeb = new PluginWebService(pluginRoot, pluginAgents);
|
|
214
|
+
const pluginSessionQuery = new PluginSessionQueryService(pluginRoot, pluginAgents);
|
|
215
|
+
const pluginGoals = new PluginGoalService(pluginRoot, pluginAgents);
|
|
216
|
+
const pluginSkills = new PluginSkillService(pluginRoot);
|
|
217
|
+
const pluginCommands = new PluginCommandService(pluginRoot);
|
|
218
|
+
new PluginLspService(pluginRoot);
|
|
219
|
+
const pluginSettings = new PluginSettingsService(pluginRoot);
|
|
220
|
+
const pluginStorage = new PluginStorageService(pluginRoot);
|
|
221
|
+
const pluginCredentials = new PluginCredentialService(pluginRoot);
|
|
222
|
+
new PluginAuthorizationService(pluginRoot, pluginCredentials);
|
|
223
|
+
const pluginData = new HostPluginDataRuntime(context.owner.controlDirectory);
|
|
224
|
+
pluginSettings.bindRuntime(pluginData);
|
|
225
|
+
pluginStorage.bindRuntime(pluginData);
|
|
226
|
+
pluginCredentials.bindRuntime(pluginData);
|
|
227
|
+
const pluginTools = new PluginToolService(pluginRoot, { agents: pluginAgents });
|
|
228
|
+
const pluginSystemPrompt = new PluginSystemPromptService(pluginRoot);
|
|
229
|
+
pluginPlatform = new HostPluginPlatform(context.owner.controlDirectory, {
|
|
230
|
+
composition: new MakaCompositionLoader({ root: pluginRoot }),
|
|
231
|
+
tools: pluginTools,
|
|
232
|
+
systemPrompt: pluginSystemPrompt,
|
|
233
|
+
commands: pluginCommands,
|
|
234
|
+
});
|
|
235
|
+
const pluginPlatformCoordinator = new HostPluginPlatformCoordinator(pluginPlatform);
|
|
162
236
|
const openedProjectCatalog = storage.projectCatalog;
|
|
163
237
|
const runtimePolicyStores = storage.runtimePolicy;
|
|
164
238
|
const oauthCredentials = new HostOAuthExecutionAuthority(runtimePolicyStores);
|
|
@@ -169,12 +243,28 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
169
243
|
const openedGoalStore = storage.goal;
|
|
170
244
|
const memoryStore = storage.memoryBundle;
|
|
171
245
|
const longTermMemoryStore = storage.longTermMemory;
|
|
172
|
-
const
|
|
246
|
+
const sessionTodoStore = storage.sessionTodo;
|
|
173
247
|
const openedArtifactStore = storage.artifacts;
|
|
174
248
|
const openedContextOffloadStore = storage.contextOffload;
|
|
175
249
|
const openedContextOffloadReader = openedContextOffloadStore
|
|
176
250
|
? createInteractiveContextOffloadReader(openedContextOffloadStore)
|
|
177
251
|
: undefined;
|
|
252
|
+
const contextOffloadAuthority = openedContextOffloadStore
|
|
253
|
+
? openedContextOffloadStore
|
|
254
|
+
: storage.contextOffloadUnavailable
|
|
255
|
+
? {
|
|
256
|
+
copyReferences: async () => {
|
|
257
|
+
throw new Error('Context-offload Store is unavailable during Session copy', {
|
|
258
|
+
cause: storage.contextOffloadUnavailable?.cause,
|
|
259
|
+
});
|
|
260
|
+
},
|
|
261
|
+
retireSession: async (_sessionId) => {
|
|
262
|
+
throw new Error('Context-offload Store is unavailable during Session retirement', {
|
|
263
|
+
cause: storage.contextOffloadUnavailable?.cause,
|
|
264
|
+
});
|
|
265
|
+
},
|
|
266
|
+
}
|
|
267
|
+
: undefined;
|
|
178
268
|
const openedUsageStores = storage.usage;
|
|
179
269
|
const openedShellRunStore = storage.shellRuns;
|
|
180
270
|
const worktreeChildExecutor = createGitWorktreeChildExecutor({
|
|
@@ -189,7 +279,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
189
279
|
// product's existing answer for these rows: this task came from the retired
|
|
190
280
|
// local simulation, configure a real model and start a new one.
|
|
191
281
|
backends.register('fake', () => {
|
|
192
|
-
throw new Error(`${NO_REAL_CONNECTION_CODE}:fake_backend:
|
|
282
|
+
throw new Error(`${NO_REAL_CONNECTION_CODE}:fake_backend: Runtime Host cannot send on a retired local-simulation connection; configure a real model and start a new task`);
|
|
193
283
|
});
|
|
194
284
|
const runtimePolicyActivation = new RuntimePolicyActivationGate();
|
|
195
285
|
const runtimePolicy = new HostRuntimePolicyCoordinator(runtimePolicyStores, runtimePolicyActivation, applyRuntimePolicyMutationEffects, async (input) => {
|
|
@@ -201,7 +291,6 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
201
291
|
const memoryExtractionLane = new MemoryExtractionSessionLane();
|
|
202
292
|
let runtimeResources;
|
|
203
293
|
let continuity;
|
|
204
|
-
let manager;
|
|
205
294
|
let graphCoordinator;
|
|
206
295
|
let graphSupervisorWake;
|
|
207
296
|
const graphWakeActivities = new SessionActivityRegistry();
|
|
@@ -224,12 +313,6 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
224
313
|
resourceLocation: { kind: 'runtime' },
|
|
225
314
|
})
|
|
226
315
|
: undefined;
|
|
227
|
-
const sandboxDiagnostics = createSandboxDiagnosticsProvider({
|
|
228
|
-
...(sandboxManager ? { sandboxManager } : {}),
|
|
229
|
-
...(filesystemWorkerLaunchSpecProvider
|
|
230
|
-
? { getFilesystemWorkerLaunchSpec: filesystemWorkerLaunchSpecProvider }
|
|
231
|
-
: {}),
|
|
232
|
-
});
|
|
233
316
|
const filesystemWorker = sandboxManager && filesystemWorkerLaunchSpecProvider
|
|
234
317
|
? new FilesystemWorkerClient({
|
|
235
318
|
sandboxManager,
|
|
@@ -242,7 +325,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
242
325
|
workspaceExecution = createRuntimeHostWorkspaceExecutionComposition({
|
|
243
326
|
...(workspaceFilesystemWorker ? { filesystemWorker: workspaceFilesystemWorker } : {}),
|
|
244
327
|
});
|
|
245
|
-
const
|
|
328
|
+
const sessionTodo = new HostSessionTodoCoordinator(sessionTodoStore, sessionAdmission, stores.sessionStore, (sessionId) => requireContinuity(continuity).enqueueSessionDomainChanged(sessionId, 'todo'), context.requestDrain);
|
|
246
329
|
runtimeResources = new HostRuntimeResourceCoordinator({
|
|
247
330
|
manager: shellRuns,
|
|
248
331
|
sessions: {
|
|
@@ -259,9 +342,13 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
259
342
|
resolveShell: async () => resolveShellPlan((await runtimePolicyStores.runtimePolicy.getSnapshot()).policy.shell),
|
|
260
343
|
onProjectionChanged: (update) => requireContinuity(continuity).enqueueRuntimeResourceChanged(update),
|
|
261
344
|
});
|
|
345
|
+
archiveEvidence = await openToolResultArchiveEvidenceReader(context.owner.lease);
|
|
262
346
|
const executionArtifacts = createHostExecutionArtifactServices({
|
|
347
|
+
archiveEvidence,
|
|
263
348
|
artifacts: openedArtifactStore,
|
|
264
349
|
requestDrain: context.requestDrain,
|
|
350
|
+
sessionAdmission,
|
|
351
|
+
sessions: stores.sessionStore,
|
|
265
352
|
});
|
|
266
353
|
const builtinTools = {
|
|
267
354
|
shellRuns: runtimeResources,
|
|
@@ -271,16 +358,109 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
271
358
|
}),
|
|
272
359
|
backgroundTasks: runtimeResources,
|
|
273
360
|
ptyControls: runtimeResources,
|
|
274
|
-
|
|
361
|
+
...(openedContextOffloadStore
|
|
362
|
+
? {
|
|
363
|
+
snapshotImage: async (input) => createReadImageSnapshotStore(openedContextOffloadStore, input.sessionId).snapshot({
|
|
364
|
+
ownerId: input.ownerId,
|
|
365
|
+
bytes: input.bytes,
|
|
366
|
+
mimeType: input.mimeType,
|
|
367
|
+
}),
|
|
368
|
+
releaseImageSnapshot: async (input) => {
|
|
369
|
+
await openedContextOffloadStore.releaseReference(input);
|
|
370
|
+
},
|
|
371
|
+
}
|
|
372
|
+
: {}),
|
|
275
373
|
...(sandboxManager ? { sandboxManager } : {}),
|
|
276
374
|
...(filesystemWorker ? { filesystemWorker } : {}),
|
|
277
375
|
};
|
|
376
|
+
const invokeBuiltin = async (name, args, invocation, shellEnvironment) => {
|
|
377
|
+
if (!invocation.toolContext)
|
|
378
|
+
throw new Error(`${name} requires an active Tool invocation`);
|
|
379
|
+
const policy = await runtimePolicyStores.runtimePolicy.getSnapshot();
|
|
380
|
+
const tool = buildBuiltinTools({
|
|
381
|
+
...builtinTools,
|
|
382
|
+
shell: resolveTurnShellPlan(policy.policy.shell),
|
|
383
|
+
...(shellEnvironment ? { shellEnvironment } : {}),
|
|
384
|
+
}).find((candidate) => candidate.name === name);
|
|
385
|
+
if (!tool)
|
|
386
|
+
throw new Error(`Builtin capability is unavailable: ${name}`);
|
|
387
|
+
return tool.impl(args, invocation.toolContext);
|
|
388
|
+
};
|
|
389
|
+
pluginFilesystem.bindRuntime({
|
|
390
|
+
execute: (operation, invocation) => {
|
|
391
|
+
switch (operation.kind) {
|
|
392
|
+
case 'read':
|
|
393
|
+
return invokeBuiltin('Read', operation, invocation);
|
|
394
|
+
case 'write':
|
|
395
|
+
return invokeBuiltin('Write', operation, invocation);
|
|
396
|
+
case 'edit':
|
|
397
|
+
return invokeBuiltin('Edit', {
|
|
398
|
+
path: operation.path,
|
|
399
|
+
old_string: operation.oldString,
|
|
400
|
+
new_string: operation.newString,
|
|
401
|
+
}, invocation);
|
|
402
|
+
case 'glob':
|
|
403
|
+
return invokeBuiltin('Glob', { pattern: operation.pattern, cwd: operation.path }, invocation);
|
|
404
|
+
case 'grep':
|
|
405
|
+
return invokeBuiltin('Grep', { pattern: operation.pattern, path: operation.path, glob: operation.glob }, invocation);
|
|
406
|
+
case 'apply_patch':
|
|
407
|
+
return invokeBuiltin('apply_patch', operation.patch, invocation);
|
|
408
|
+
}
|
|
409
|
+
},
|
|
410
|
+
});
|
|
411
|
+
pluginShell.bindRuntime({
|
|
412
|
+
run: (options, invocation) => invokeBuiltin('Bash', {
|
|
413
|
+
command: options.command,
|
|
414
|
+
timeout_ms: options.timeoutMs,
|
|
415
|
+
run_in_background: options.background,
|
|
416
|
+
pty: options.pty,
|
|
417
|
+
}, invocation, options.environment),
|
|
418
|
+
read: (ref, invocation) => runtimeResources.readRuntimeResource(invocation.sessionId, ref, invocation.abortSignal),
|
|
419
|
+
write: (ref, input, invocation) => runtimeResources.writeStdin({
|
|
420
|
+
sessionId: invocation.sessionId,
|
|
421
|
+
ref,
|
|
422
|
+
input,
|
|
423
|
+
abortSignal: invocation.abortSignal,
|
|
424
|
+
caller: 'model',
|
|
425
|
+
}),
|
|
426
|
+
stop: (ref, invocation) => runtimeResources.stopBackgroundTask(invocation.sessionId, ref, invocation.abortSignal),
|
|
427
|
+
});
|
|
428
|
+
pluginAttachments.bindRuntime({
|
|
429
|
+
create: async (input, invocation) => {
|
|
430
|
+
const record = await openedArtifactStore.create({
|
|
431
|
+
sessionId: invocation.sessionId,
|
|
432
|
+
turnId: invocation.turnId,
|
|
433
|
+
name: input.name,
|
|
434
|
+
kind: pluginAttachmentArtifactKind(input.mimeType, input.name),
|
|
435
|
+
content: input.content,
|
|
436
|
+
mimeType: input.mimeType,
|
|
437
|
+
source: 'tool_result',
|
|
438
|
+
...(input.summary ? { summary: input.summary } : {}),
|
|
439
|
+
});
|
|
440
|
+
return pluginAttachmentRef(record);
|
|
441
|
+
},
|
|
442
|
+
read: async (attachment, invocation) => {
|
|
443
|
+
if (attachment.ref.kind !== 'session_file' ||
|
|
444
|
+
attachment.ref.sessionId !== invocation.sessionId) {
|
|
445
|
+
throw new Error('Attachment is outside the current Session');
|
|
446
|
+
}
|
|
447
|
+
const result = await openedArtifactStore.readBinaryInSession(invocation.sessionId, attachment.ref.relativePath);
|
|
448
|
+
if (!result.ok)
|
|
449
|
+
throw new Error(`Attachment read failed: ${result.reason}`);
|
|
450
|
+
return Uint8Array.from(Buffer.from(result.base64, 'base64'));
|
|
451
|
+
},
|
|
452
|
+
list: async (invocation) => (await openedArtifactStore.listTurnArtifacts(invocation.sessionId, invocation.turnId)).map(pluginAttachmentRef),
|
|
453
|
+
});
|
|
278
454
|
const webSearchService = createHostWebSearchService({
|
|
279
455
|
policy: runtimePolicyStores.operations,
|
|
280
456
|
});
|
|
281
457
|
const webFetchService = createHostWebFetchService({
|
|
282
458
|
policy: runtimePolicyStores.operations,
|
|
283
459
|
});
|
|
460
|
+
pluginWeb.bindRuntime({
|
|
461
|
+
search: ({ query, limit, abortSignal }) => webSearchService.search({ query, limit, ...(abortSignal ? { abortSignal } : {}) }),
|
|
462
|
+
fetch: (input) => webFetchService.fetch(input),
|
|
463
|
+
});
|
|
284
464
|
const historyTools = buildHistoryTools({
|
|
285
465
|
listSessions: () => requireSessionManager(manager).listSessions(),
|
|
286
466
|
readMessages: async (sessionId, abortSignal) => {
|
|
@@ -303,7 +483,6 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
303
483
|
];
|
|
304
484
|
const hostTools = [...childHostTools, ...historyTools];
|
|
305
485
|
const childAgentTools = createHostChildAgentToolComposition({
|
|
306
|
-
taskLedger,
|
|
307
486
|
builtinTools,
|
|
308
487
|
hostTools: childHostTools,
|
|
309
488
|
worktreePatchWriteBackAvailable: true,
|
|
@@ -313,6 +492,13 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
313
492
|
let resolveAvailableToolNames;
|
|
314
493
|
let resolveNewSessionToolNames;
|
|
315
494
|
const hostChanges = new HostChangeFeed();
|
|
495
|
+
// Startup, once, in the background: the Host owns the model catalog, so it
|
|
496
|
+
// is the one process that gets to ask models.dev what is true today. On any
|
|
497
|
+
// failure the build's committed snapshot stands.
|
|
498
|
+
modelMetadataRefresh = startHostModelMetadataRefresh({
|
|
499
|
+
policy: runtimePolicyStores.operations,
|
|
500
|
+
publish: () => hostChanges.publishConnectionCatalog(),
|
|
501
|
+
});
|
|
316
502
|
const projectMembership = new HostProjectMembershipGate();
|
|
317
503
|
const workspaceResolver = new HostWorkspaceResolver(openedProjectCatalog, projectMembership, () => hostChanges.publishProjectCatalog());
|
|
318
504
|
const skills = new HostSkillCatalogCoordinator(new SkillCatalogRepository({
|
|
@@ -321,8 +507,33 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
321
507
|
}), workspaceResolver, async (input, connection) => {
|
|
322
508
|
if (input.target.kind === 'session') {
|
|
323
509
|
const sessionId = input.target.sessionId;
|
|
324
|
-
|
|
325
|
-
|
|
510
|
+
let header;
|
|
511
|
+
try {
|
|
512
|
+
header = await stores.sessionStore.readHeaderSnapshot(sessionId);
|
|
513
|
+
}
|
|
514
|
+
catch (error) {
|
|
515
|
+
if (isSessionNotFoundError(error)) {
|
|
516
|
+
throw new SkillCatalogInvocableContextError('not_found', 'Session does not exist');
|
|
517
|
+
}
|
|
518
|
+
throw error;
|
|
519
|
+
}
|
|
520
|
+
if (header.isArchived) {
|
|
521
|
+
throw new SkillCatalogInvocableContextError('session_archived', 'Session is archived');
|
|
522
|
+
}
|
|
523
|
+
let preview;
|
|
524
|
+
try {
|
|
525
|
+
preview = await requireClientCapabilities(clientCapabilities).runWithSessionBindingPreview(sessionId, connection.connectionId, () => requireToolNameResolver(resolveAvailableToolNames)(sessionId));
|
|
526
|
+
}
|
|
527
|
+
catch (error) {
|
|
528
|
+
if (isSessionNotFoundError(error)) {
|
|
529
|
+
throw new SkillCatalogInvocableContextError('not_found', 'Session does not exist');
|
|
530
|
+
}
|
|
531
|
+
if (error instanceof AgentGraphClientOperationError &&
|
|
532
|
+
error.code === 'session_archived') {
|
|
533
|
+
throw new SkillCatalogInvocableContextError('session_archived', 'Session is archived');
|
|
534
|
+
}
|
|
535
|
+
throw error;
|
|
536
|
+
}
|
|
326
537
|
if (!preview.ok)
|
|
327
538
|
throw new Error(preview.message);
|
|
328
539
|
return {
|
|
@@ -340,16 +551,19 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
340
551
|
publish: (sessionId) => hostChanges.publishSessionCatalog(sessionId),
|
|
341
552
|
}, projectMembership, context.requestDrain, new HostProjectDirectoryAuthority(options.projectDirectoryRoots));
|
|
342
553
|
let rootCoordinator;
|
|
554
|
+
let workHubCoordination;
|
|
343
555
|
let canonicalProjection;
|
|
344
556
|
let memory;
|
|
345
557
|
let clientCapabilities;
|
|
346
558
|
let oauth;
|
|
559
|
+
let externalAgentSetup;
|
|
347
560
|
let scheduledTasks;
|
|
348
561
|
let scheduledTaskTool;
|
|
349
562
|
let goal;
|
|
350
563
|
let deepResearch;
|
|
351
564
|
let dailyReview;
|
|
352
565
|
const rootPort = {
|
|
566
|
+
readLatestRootTurnLineage: (identity) => requireRootCoordinator(rootCoordinator).readLatestRootTurnLineage(identity),
|
|
353
567
|
readSessionHeader: (sessionId) => requireRootCoordinator(rootCoordinator).readSessionHeader(sessionId),
|
|
354
568
|
readRootState: (sessionId) => requireRootCoordinator(rootCoordinator).readRootState(sessionId),
|
|
355
569
|
claimStopFence: (input, commitQueueFence, admission) => requireRootCoordinator(rootCoordinator).claimStopFence(input, commitQueueFence, admission),
|
|
@@ -362,6 +576,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
362
576
|
hostEpoch: context.hostEpoch,
|
|
363
577
|
root: rootPort,
|
|
364
578
|
durableProof: {
|
|
579
|
+
readLogicalExecution: (identity) => readLogicalRuntimeExecutionForRun(stores.runtimeEventStore, identity),
|
|
365
580
|
readRootTurnSourceMessageReceipt: (sessionId, messageId) => stores.agentRunStore.readRootTurnSourceMessageReceipt(sessionId, messageId),
|
|
366
581
|
readImmutableSteeringMessageProof: (sessionId, messageId) => stores.runtimeEventStore.readImmutableSteeringMessageProof(sessionId, messageId),
|
|
367
582
|
},
|
|
@@ -383,11 +598,15 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
383
598
|
const canonicalPermissionOutcomes = new HostCanonicalPermissionOutcomeReader({
|
|
384
599
|
store: stores.interactionStore,
|
|
385
600
|
});
|
|
386
|
-
|
|
601
|
+
transcriptReader = createSessionTranscriptReader({
|
|
602
|
+
stores,
|
|
603
|
+
canonicalPermissionOutcomes,
|
|
604
|
+
ensureTranscriptLedger: (sessionId) => requireSessionManager(manager).ensureTranscriptLedgerForRead(sessionId),
|
|
605
|
+
});
|
|
606
|
+
continuity = new SessionContinuityCoordinator(context.hostEpoch, (sessionId) => canonicalProjectionReader.read(sessionId), sessionAdmission, context.requestDrain, transcriptReader, (sessionId) => hostChanges.publishSessionCatalog(sessionId), context.sessionAccessAuthority);
|
|
387
607
|
const continuityCoordinator = continuity;
|
|
388
608
|
unsubscribeTranscriptChanges = stores.sessionStore.subscribeTranscriptChanges((sessionId) => continuityCoordinator.enqueueCanonicalRefresh(sessionId));
|
|
389
609
|
unsubscribeUsageChanges = openedUsageStores.subscribeSessionUsageChanges((sessionId) => continuityCoordinator.enqueueSessionDomainChanged(sessionId, 'usage'));
|
|
390
|
-
unsubscribeTaskLedger = taskLedger.subscribe(({ sessionId }) => continuityCoordinator.enqueueSessionDomainChanged(sessionId, 'task'));
|
|
391
610
|
deepResearch = new HostDeepResearchCoordinator({
|
|
392
611
|
store: openedDeepResearchStore,
|
|
393
612
|
artifacts: openedArtifactStore,
|
|
@@ -405,7 +624,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
405
624
|
usage: openedUsageStores,
|
|
406
625
|
requestDrain: context.requestDrain,
|
|
407
626
|
}),
|
|
408
|
-
acquireResidency: () => context.acquireResidency('daily-review'),
|
|
627
|
+
acquireResidency: (kind) => context.acquireResidency('daily-review', kind),
|
|
409
628
|
requestDrain: context.requestDrain,
|
|
410
629
|
});
|
|
411
630
|
let poisonFailure;
|
|
@@ -413,6 +632,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
413
632
|
let recoveryTask;
|
|
414
633
|
let rootCloseTask;
|
|
415
634
|
let rootRecoveryCompleted = false;
|
|
635
|
+
let clientBoundRecovery = Promise.resolve();
|
|
416
636
|
let closeTask;
|
|
417
637
|
let backendInvalidationPoisoned = false;
|
|
418
638
|
let domainModules;
|
|
@@ -438,7 +658,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
438
658
|
return;
|
|
439
659
|
poisonFailure = error;
|
|
440
660
|
context.retainUntilProcessExit();
|
|
441
|
-
|
|
661
|
+
// Route poison through the kernel; the composition drain entry detaches admission.
|
|
442
662
|
context.requestDrain();
|
|
443
663
|
},
|
|
444
664
|
onSandboxBoundarySettled: (sessionId) => notifySandboxBoundaryGraphWake(sessionId, stores.sessionStore, {
|
|
@@ -461,8 +681,8 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
461
681
|
readSessionRuntimeEventEntries: (sessionId) => stores.runtimeEventStore.readSessionRuntimeEventEntries(sessionId),
|
|
462
682
|
},
|
|
463
683
|
historyCompaction: {
|
|
464
|
-
readLatestCheckpoint: (sessionId) => loadLatestHistoryCompactCheckpointFromRunLedger(stores.agentRunStore, sessionId),
|
|
465
|
-
readCheckpoints: (sessionId) => loadHistoryCompactCheckpointsFromRunLedger(stores.agentRunStore, sessionId),
|
|
684
|
+
readLatestCheckpoint: async (sessionId) => loadLatestHistoryCompactCheckpointFromRunLedger(stores.agentRunStore, sessionId, await sessionRunIds(stores.runtimeEventStore, sessionId)),
|
|
685
|
+
readCheckpoints: async (sessionId) => loadHistoryCompactCheckpointsFromRunLedger(stores.agentRunStore, sessionId, await sessionRunIds(stores.runtimeEventStore, sessionId)),
|
|
466
686
|
},
|
|
467
687
|
model: createHostMemoryExtractionModel({
|
|
468
688
|
runtimePolicy: runtimePolicyStores,
|
|
@@ -473,42 +693,64 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
473
693
|
lane: memoryExtractionLane,
|
|
474
694
|
acquireResidency: () => context.acquireResidency('memory-extraction'),
|
|
475
695
|
});
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
696
|
+
const hostAiSdkBackendInput = (backendContext) => ({
|
|
697
|
+
context: backendContext,
|
|
698
|
+
runtimePolicy: runtimePolicyStores,
|
|
699
|
+
oauthCredentials,
|
|
700
|
+
createRunComposer: createInteractiveRunComposerFactory({
|
|
701
|
+
skills,
|
|
702
|
+
pluginSkills,
|
|
703
|
+
memory: requireMemory(memory),
|
|
704
|
+
sessionTodo,
|
|
705
|
+
clientCapabilities: requireClientCapabilities(clientCapabilities),
|
|
706
|
+
resolveTavilyWebSearchReadiness: () => resolveHostTavilyWebSearchReadiness(runtimePolicyStores.operations),
|
|
707
|
+
...(scheduledTaskTool ? { scheduledTaskTool } : {}),
|
|
708
|
+
planStore: openedPlanStore,
|
|
709
|
+
deepResearchTools: requireDeepResearch(deepResearch).toolsForSession(backendContext.sessionId),
|
|
710
|
+
goalTools: requireGoal(goal).tools,
|
|
711
|
+
builtinTools,
|
|
712
|
+
hostTools,
|
|
713
|
+
resolveRootTools: (sessionId) => requireGraphCoordinator(graphCoordinator).toolsForSession(sessionId),
|
|
714
|
+
resolvePluginTools: (sessionId, coreTools) => pluginTools.resolveContributions(sessionId, coreTools),
|
|
715
|
+
resolvePluginSystemPrompt: async (sessionId, promptContext, baseText) => {
|
|
716
|
+
const assembly = await pluginSystemPrompt.assemble({
|
|
717
|
+
sessionId,
|
|
718
|
+
turnId: promptContext.turnId,
|
|
719
|
+
cwd: promptContext.cwd,
|
|
720
|
+
}, baseText);
|
|
721
|
+
return {
|
|
722
|
+
text: assembly.text,
|
|
723
|
+
contexts: assembly.contexts,
|
|
724
|
+
sourceRevisions: assembly.sourceRevision ? [assembly.sourceRevision] : [],
|
|
725
|
+
};
|
|
726
|
+
},
|
|
727
|
+
parentAgentTools: childAgentTools.parentTools,
|
|
728
|
+
childTools: childAgentTools.childTools,
|
|
729
|
+
worktreePatchWriteBackAvailable: true,
|
|
730
|
+
resolveProfileSystemPrompt: async (promptContext, basePrompt) => {
|
|
731
|
+
if (promptContext.sessionId !== WORKHUB_COORDINATION_SESSION_ID)
|
|
732
|
+
return basePrompt;
|
|
733
|
+
const admission = await stores.agentRunStore.readRootTurnAdmission(promptContext.sessionId, promptContext.turnId);
|
|
734
|
+
return bindWorkHubRoutingDecisionPrompt(basePrompt, admission?.execution.kind === 'workhub_coordination'
|
|
735
|
+
? admission.execution.routingDecision
|
|
736
|
+
: undefined);
|
|
737
|
+
},
|
|
738
|
+
}),
|
|
739
|
+
...(hostedExecutionRunProfile(backendContext.header.toolProfile)?.memoryExtraction === false
|
|
740
|
+
? {}
|
|
741
|
+
: { memoryExtraction }),
|
|
742
|
+
artifacts: openedArtifactStore,
|
|
743
|
+
...(openedContextOffloadReader ? { contextOffload: openedContextOffloadReader } : {}),
|
|
744
|
+
...(storage.contextOffloadUnavailable ? { contextOffloadUnavailable: true } : {}),
|
|
745
|
+
executionArtifacts,
|
|
746
|
+
usage: openedUsageStores,
|
|
747
|
+
childAgents: bindHostChildAgentBackend(requireSessionManager(manager), backendContext.sessionId),
|
|
748
|
+
runtimeCommitSink: stores.runtimeEventStore,
|
|
749
|
+
requestDrain: context.requestDrain,
|
|
750
|
+
});
|
|
751
|
+
backends.register('ai-sdk', dependencies.primaryBackendFactory ?? {
|
|
752
|
+
prepare: (backendContext) => prepareHostAiSdkBackend(hostAiSdkBackendInput(backendContext)),
|
|
753
|
+
});
|
|
512
754
|
const runtimeAuthority = {
|
|
513
755
|
bindRun: (identity) => messages.bindRun(identity),
|
|
514
756
|
executeRoot: (input) => executeHostedExecutionToSettlement(requireRootCoordinator(rootCoordinator), input),
|
|
@@ -544,7 +786,6 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
544
786
|
...(input.boundTools ? { boundTools: input.boundTools } : {}),
|
|
545
787
|
...(input.childTools ? { childTools: input.childTools } : {}),
|
|
546
788
|
...(input.parentAgentTools ? { parentAgentTools: input.parentAgentTools } : {}),
|
|
547
|
-
taskLedger,
|
|
548
789
|
worktreePatchWriteBackAvailable: true,
|
|
549
790
|
tavilyReady,
|
|
550
791
|
}),
|
|
@@ -594,7 +835,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
594
835
|
shell: resolveTurnShellPlan(runtimePolicy.policy.shell),
|
|
595
836
|
skills,
|
|
596
837
|
memory: requireMemory(memory),
|
|
597
|
-
|
|
838
|
+
sessionTodo,
|
|
598
839
|
...(runProfile ? { toolProfile: header.toolProfile } : {}),
|
|
599
840
|
...(capabilitySnapshot ? { clientCapabilities: capabilitySnapshot } : {}),
|
|
600
841
|
builtinTools,
|
|
@@ -650,7 +891,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
650
891
|
shell: resolveTurnShellPlan(runtimePolicy.policy.shell),
|
|
651
892
|
skills,
|
|
652
893
|
memory: requireMemory(memory),
|
|
653
|
-
|
|
894
|
+
sessionTodo,
|
|
654
895
|
...(capabilitySnapshot ? { clientCapabilities: capabilitySnapshot } : {}),
|
|
655
896
|
builtinTools,
|
|
656
897
|
hostTools: surface.hostTools,
|
|
@@ -673,6 +914,10 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
673
914
|
throw new Error(preview.message);
|
|
674
915
|
return preview.value;
|
|
675
916
|
};
|
|
917
|
+
const recapReadModel = new RuntimeReadModel({
|
|
918
|
+
runtimeEventStore: stores.runtimeEventStore,
|
|
919
|
+
canonicalPermissionOutcomes,
|
|
920
|
+
});
|
|
676
921
|
const sessionEffectCoordinator = new HostSessionEffectCoordinator({
|
|
677
922
|
model: createHostSessionEffectModel({
|
|
678
923
|
runtimePolicy: runtimePolicyStores,
|
|
@@ -680,12 +925,14 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
680
925
|
usage: openedUsageStores,
|
|
681
926
|
requestDrain: context.requestDrain,
|
|
682
927
|
}),
|
|
683
|
-
readModel:
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
928
|
+
readModel: {
|
|
929
|
+
getSessionView: async (sessionId) => {
|
|
930
|
+
// A Session whose transcript predates the ledger projects an empty
|
|
931
|
+
// view, and a recap of nothing reads as a successful recap.
|
|
932
|
+
await requireSessionManager(manager).ensureTranscriptLedgerForRead(sessionId);
|
|
933
|
+
return recapReadModel.getSessionView(sessionId);
|
|
934
|
+
},
|
|
935
|
+
},
|
|
689
936
|
artifacts: openedArtifactStore,
|
|
690
937
|
sessions: stores.sessionStore,
|
|
691
938
|
readSessionHeader: (sessionId) => stores.sessionStore.readHeaderSnapshot(sessionId),
|
|
@@ -700,7 +947,6 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
700
947
|
const header = await stores.sessionStore.readHeader(sessionId);
|
|
701
948
|
const shell = resolveTurnShellPlan((await runtimePolicyStores.runtimePolicy.getSnapshot()).policy.shell);
|
|
702
949
|
const childTools = createHostChildAgentToolComposition({
|
|
703
|
-
taskLedger,
|
|
704
950
|
builtinTools: { ...builtinTools, shell },
|
|
705
951
|
hostTools,
|
|
706
952
|
worktreePatchWriteBackAvailable: true,
|
|
@@ -737,7 +983,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
737
983
|
const [resourcesLive, graphLive, descendantLive] = await Promise.all([
|
|
738
984
|
runtimeResources.hasLiveSessionResources(sessionId),
|
|
739
985
|
graph.hasLiveSessionState(sessionId),
|
|
740
|
-
hasLiveLinkedDescendantState(requireSessionManager(manager), stores.
|
|
986
|
+
hasLiveLinkedDescendantState(requireSessionManager(manager), stores.runtimeEventStore, sessionId, async (descendantSessionId) => (await runtimeResources.hasLiveSessionResources(descendantSessionId)) ||
|
|
741
987
|
graph.hasLiveSessionState(descendantSessionId) ||
|
|
742
988
|
graphWake.hasLiveSessionState(descendantSessionId)),
|
|
743
989
|
]);
|
|
@@ -762,17 +1008,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
762
1008
|
resolveChildTools,
|
|
763
1009
|
worktreeChildExecutor,
|
|
764
1010
|
listArtifactsForTurn: (sessionId, turnId) => openedArtifactStore.listTurnArtifacts(sessionId, turnId),
|
|
765
|
-
publishChildWorkspacePatch:
|
|
766
|
-
id: subagentWritebackArtifactId(sessionId, turnId),
|
|
767
|
-
sessionId,
|
|
768
|
-
turnId,
|
|
769
|
-
name: 'workspace.patch',
|
|
770
|
-
kind: 'diff',
|
|
771
|
-
content: patch,
|
|
772
|
-
mimeType: 'text/x-diff; charset=utf-8',
|
|
773
|
-
source: 'subagent_writeback',
|
|
774
|
-
summary: `Workspace changes relative to ${binding.baseCommit}.`,
|
|
775
|
-
}),
|
|
1011
|
+
publishChildWorkspacePatch: executionArtifacts.publishChildWorkspacePatch,
|
|
776
1012
|
assertChildWorkspaceQuiescent: async (sessionId) => {
|
|
777
1013
|
if (await runtimeResources.hasLiveSessionResources(sessionId)) {
|
|
778
1014
|
throw new Error(`Child Session ${sessionId} still owns live Runtime Resources; patch publication requires a quiescent workspace`);
|
|
@@ -781,7 +1017,6 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
781
1017
|
});
|
|
782
1018
|
graphCoordinator = new AgentGraphCoordinator({
|
|
783
1019
|
sessionStore: stores.sessionStore,
|
|
784
|
-
runStore: stores.agentRunStore,
|
|
785
1020
|
runtimeEventStore: stores.runtimeEventStore,
|
|
786
1021
|
controlStore: openedGraphControlStore,
|
|
787
1022
|
epochStore: openedGraphControlStore,
|
|
@@ -815,7 +1050,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
815
1050
|
});
|
|
816
1051
|
};
|
|
817
1052
|
const registerBackendInvalidation = () => {
|
|
818
|
-
observeBackendInvalidation(manager.refreshIdleBackends());
|
|
1053
|
+
observeBackendInvalidation(requireSessionManager(manager).refreshIdleBackends());
|
|
819
1054
|
};
|
|
820
1055
|
const registerConfigurationMutation = () => {
|
|
821
1056
|
hostChanges.publishConfiguration();
|
|
@@ -824,6 +1059,33 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
824
1059
|
clientCapabilities = new HostClientCapabilityCoordinator({
|
|
825
1060
|
activation: runtimePolicyActivation,
|
|
826
1061
|
onModelToolsChanged: registerBackendInvalidation,
|
|
1062
|
+
interactions,
|
|
1063
|
+
grants: stores.interactionStore,
|
|
1064
|
+
});
|
|
1065
|
+
externalAgentSetup = new HostExternalAgentSetupCoordinator({
|
|
1066
|
+
install: async (input) => {
|
|
1067
|
+
const proxy = await runtimePolicyStores.operations.resolveNetworkProxyExecution({});
|
|
1068
|
+
if (proxy.kind === 'credential_not_configured')
|
|
1069
|
+
throw new AcpSetupError('download_failed');
|
|
1070
|
+
const transport = createProxiedFetchTransport(toRuntimePolicyProxy(proxy.networkProxy, proxy.secretMaterial.networkProxy?.secret));
|
|
1071
|
+
try {
|
|
1072
|
+
return await installAntigravity({
|
|
1073
|
+
...input,
|
|
1074
|
+
fetch: transport.fetch,
|
|
1075
|
+
directory: join(context.owner.capability.canonicalPath, 'external-agents', 'antigravity'),
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
finally {
|
|
1079
|
+
await transport.close();
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
readPolicy: () => runtimePolicyStores.runtimePolicy.getSnapshot(),
|
|
1083
|
+
acquireResidency: () => context.acquireResidency('external-agent-setup'),
|
|
1084
|
+
onCleanupFailure: () => {
|
|
1085
|
+
context.retainUntilProcessExit();
|
|
1086
|
+
context.requestDrain();
|
|
1087
|
+
},
|
|
1088
|
+
capabilities: clientCapabilities,
|
|
827
1089
|
});
|
|
828
1090
|
oauth = new HostOAuthCoordinator({
|
|
829
1091
|
runtimePolicy: runtimePolicyStores,
|
|
@@ -834,7 +1096,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
834
1096
|
acquireResidency: () => context.acquireResidency('oauth'),
|
|
835
1097
|
invalidateBackends: () => {
|
|
836
1098
|
hostChanges.publishConfiguration();
|
|
837
|
-
return manager.refreshIdleBackends();
|
|
1099
|
+
return requireSessionManager(manager).refreshIdleBackends();
|
|
838
1100
|
},
|
|
839
1101
|
onFatal: (error) => {
|
|
840
1102
|
if (poisonFailure)
|
|
@@ -842,12 +1104,16 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
842
1104
|
poisonFailure = error;
|
|
843
1105
|
runtimePolicyActivation.poison();
|
|
844
1106
|
context.retainUntilProcessExit();
|
|
845
|
-
|
|
1107
|
+
// Route poison through the kernel; the composition drain entry detaches admission.
|
|
846
1108
|
context.requestDrain();
|
|
847
1109
|
},
|
|
848
1110
|
...dependencies.oauthAuthorization,
|
|
849
1111
|
});
|
|
850
|
-
const usagePricing = new HostUsagePricingCoordinator(openedUsageStores, context.requestDrain, runtimePolicyActivation, registerBackendInvalidation
|
|
1112
|
+
const usagePricing = new HostUsagePricingCoordinator(openedUsageStores, context.requestDrain, runtimePolicyActivation, registerBackendInvalidation,
|
|
1113
|
+
// Name the Task column from the durable session header. Reads by id
|
|
1114
|
+
// straight from the session store, so it also names reserved-role,
|
|
1115
|
+
// coordination, and legacy sessions the filtered catalog omits.
|
|
1116
|
+
async (sessionId) => (await stores.sessionStore.readHeaderSnapshot(sessionId)).name);
|
|
851
1117
|
const webSearch = new HostWebSearchCoordinator(webSearchService);
|
|
852
1118
|
const networkProxy = new HostNetworkProxyCoordinator(runtimePolicyStores.operations);
|
|
853
1119
|
const configuration = new HostConfigurationCoordinator(runtimePolicyStores.operations);
|
|
@@ -867,8 +1133,229 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
867
1133
|
}, {
|
|
868
1134
|
currentGraphId: (rootSessionId) => requireGraphCoordinator(graphCoordinator).currentGraphId(rootSessionId),
|
|
869
1135
|
beginNextGraphEpoch: async (rootSessionId) => (await requireGraphCoordinator(graphCoordinator).beginNextGraphEpoch(rootSessionId, (operation) => requireGraphSupervisorWake(graphSupervisorWake).runWithSessionWakesSuppressed(rootSessionId, operation, 'agent_graph_epoch_advanced'))).graphId,
|
|
870
|
-
}, (input) => sessionEffectCoordinator.nameSessionFromRootMessage(input)
|
|
1136
|
+
}, (input) => sessionEffectCoordinator.nameSessionFromRootMessage(input), context.owner.capability.rootId, dependencies.workHubRoutingModel
|
|
1137
|
+
? (input) => workHubCoordination.prepareRoutingDecision(input)
|
|
1138
|
+
: undefined);
|
|
871
1139
|
const coordinator = rootCoordinator;
|
|
1140
|
+
const pluginModel = createHostPluginModel({
|
|
1141
|
+
runtimePolicy: runtimePolicyStores,
|
|
1142
|
+
oauthCredentials,
|
|
1143
|
+
usage: openedUsageStores,
|
|
1144
|
+
requestDrain: context.requestDrain,
|
|
1145
|
+
readSessionHeader: (sessionId) => stores.sessionStore.readHeaderSnapshot(sessionId),
|
|
1146
|
+
});
|
|
1147
|
+
pluginLlm.bindRuntime({
|
|
1148
|
+
generate: (input, invocation) => pluginModel.generate({
|
|
1149
|
+
sessionId: invocation.sessionId,
|
|
1150
|
+
prompt: input.prompt,
|
|
1151
|
+
...(input.system ? { system: input.system } : {}),
|
|
1152
|
+
...(input.maxOutputTokens ? { maxOutputTokens: input.maxOutputTokens } : {}),
|
|
1153
|
+
abortSignal: input.signal ?? invocation.abortSignal,
|
|
1154
|
+
}),
|
|
1155
|
+
});
|
|
1156
|
+
const visibleAgentSessions = async (initiator) => {
|
|
1157
|
+
const sessions = await manager.listSessions();
|
|
1158
|
+
if (!initiator)
|
|
1159
|
+
return [];
|
|
1160
|
+
const visible = new Set([initiator.sessionId]);
|
|
1161
|
+
let changed = true;
|
|
1162
|
+
while (changed) {
|
|
1163
|
+
changed = false;
|
|
1164
|
+
for (const session of sessions) {
|
|
1165
|
+
if (!session.parentSessionId ||
|
|
1166
|
+
!visible.has(session.parentSessionId) ||
|
|
1167
|
+
visible.has(session.id))
|
|
1168
|
+
continue;
|
|
1169
|
+
visible.add(session.id);
|
|
1170
|
+
changed = true;
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
return sessions.filter((session) => visible.has(session.id));
|
|
1174
|
+
};
|
|
1175
|
+
const pluginSessionSummary = (session) => Object.freeze({
|
|
1176
|
+
id: session.id,
|
|
1177
|
+
...(session.name ? { title: session.name } : {}),
|
|
1178
|
+
...(session.cwd ? { cwd: session.cwd } : {}),
|
|
1179
|
+
...(session.status ? { status: session.status } : {}),
|
|
1180
|
+
...(session.parentSessionId ? { parentSessionId: session.parentSessionId } : {}),
|
|
1181
|
+
...(session.statusUpdatedAt || session.lastMessageAt
|
|
1182
|
+
? { updatedAt: session.statusUpdatedAt ?? session.lastMessageAt }
|
|
1183
|
+
: {}),
|
|
1184
|
+
});
|
|
1185
|
+
const sessionQueryInitiator = (caller) => caller.invocation ??
|
|
1186
|
+
(caller.scopeSessionId ? Object.freeze({ sessionId: caller.scopeSessionId }) : undefined);
|
|
1187
|
+
pluginSessionQuery.bindRuntime({
|
|
1188
|
+
list: async (caller) => Object.freeze((await visibleAgentSessions(sessionQueryInitiator(caller))).map(pluginSessionSummary)),
|
|
1189
|
+
read: async (sessionId, caller) => {
|
|
1190
|
+
const session = (await visibleAgentSessions(sessionQueryInitiator(caller))).find(({ id }) => id === sessionId);
|
|
1191
|
+
if (!session)
|
|
1192
|
+
return undefined;
|
|
1193
|
+
return Object.freeze({
|
|
1194
|
+
session: pluginSessionSummary(session),
|
|
1195
|
+
messages: Object.freeze([
|
|
1196
|
+
...(await requireSessionManager(manager).getMessages(sessionId)),
|
|
1197
|
+
]),
|
|
1198
|
+
});
|
|
1199
|
+
},
|
|
1200
|
+
search: async (request, caller) => {
|
|
1201
|
+
const query = request.query.toLocaleLowerCase();
|
|
1202
|
+
const sessions = await visibleAgentSessions(sessionQueryInitiator(caller));
|
|
1203
|
+
const matches = [];
|
|
1204
|
+
for (const session of sessions) {
|
|
1205
|
+
const headerText = `${session.name}\n${session.cwd ?? ''}`.toLocaleLowerCase();
|
|
1206
|
+
if (headerText.includes(query)) {
|
|
1207
|
+
matches.push(session);
|
|
1208
|
+
continue;
|
|
1209
|
+
}
|
|
1210
|
+
const messages = await requireSessionManager(manager).getMessages(session.id);
|
|
1211
|
+
if (messages.some((message) => JSON.stringify(message).toLocaleLowerCase().includes(query))) {
|
|
1212
|
+
matches.push(session);
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
const offset = request.cursor ? Number.parseInt(request.cursor, 10) : 0;
|
|
1216
|
+
if (!Number.isSafeInteger(offset) || offset < 0)
|
|
1217
|
+
throw new TypeError('Invalid Session query cursor');
|
|
1218
|
+
const limit = request.limit ?? 20;
|
|
1219
|
+
const page = matches.slice(offset, offset + limit);
|
|
1220
|
+
return Object.freeze({
|
|
1221
|
+
items: Object.freeze(page.map(pluginSessionSummary)),
|
|
1222
|
+
...(offset + page.length < matches.length
|
|
1223
|
+
? { cursor: String(offset + page.length) }
|
|
1224
|
+
: {}),
|
|
1225
|
+
});
|
|
1226
|
+
},
|
|
1227
|
+
});
|
|
1228
|
+
const describeAgent = (session) => ({
|
|
1229
|
+
id: session.id,
|
|
1230
|
+
sessionId: session.id,
|
|
1231
|
+
root: !session.parentSessionId,
|
|
1232
|
+
status: session.runningTurnIds?.length ? 'running' : session.status,
|
|
1233
|
+
...(session.parentSessionId ? { ownerId: session.parentSessionId } : {}),
|
|
1234
|
+
});
|
|
1235
|
+
const submitAgentMessage = async (id, message, placement, initiator) => {
|
|
1236
|
+
if (!(await visibleAgentSessions(initiator)).some((session) => session.id === id)) {
|
|
1237
|
+
throw new Error('Agent is outside the current ownership tree');
|
|
1238
|
+
}
|
|
1239
|
+
const content = normalizeMessageContent(typeof message === 'string' ? { text: message } : message);
|
|
1240
|
+
const result = await messages.handlers['turn.message.submit']({
|
|
1241
|
+
originHostEpoch: context.hostEpoch,
|
|
1242
|
+
sessionId: id,
|
|
1243
|
+
messageId: randomUUID(),
|
|
1244
|
+
content,
|
|
1245
|
+
placement,
|
|
1246
|
+
}, {
|
|
1247
|
+
hostEpoch: context.hostEpoch,
|
|
1248
|
+
connectionId: 'plugin-agent',
|
|
1249
|
+
principal: 'runtime_host',
|
|
1250
|
+
acquireResidency: () => context.acquireResidency('plugin-agent'),
|
|
1251
|
+
});
|
|
1252
|
+
if (!result.ok)
|
|
1253
|
+
throw new Error(result.error.message);
|
|
1254
|
+
return result.result;
|
|
1255
|
+
};
|
|
1256
|
+
pluginAgents.bindRuntime({
|
|
1257
|
+
create: async (options, initiator) => {
|
|
1258
|
+
const spawn = initiator.toolContext?.spawnChildSession;
|
|
1259
|
+
if (!spawn)
|
|
1260
|
+
throw new Error('Agent creation requires an active Tool invocation');
|
|
1261
|
+
if (!options.prompt?.trim())
|
|
1262
|
+
throw new Error('Agent creation requires a prompt');
|
|
1263
|
+
return new Promise((resolve, reject) => {
|
|
1264
|
+
void spawn({
|
|
1265
|
+
agentProfile: options.agentProfile ?? 'implementation',
|
|
1266
|
+
prompt: options.prompt,
|
|
1267
|
+
...(options.signal ? { abortSignal: options.signal } : {}),
|
|
1268
|
+
onReady: (ready) => resolve({
|
|
1269
|
+
id: ready.childSessionId,
|
|
1270
|
+
sessionId: ready.childSessionId,
|
|
1271
|
+
root: false,
|
|
1272
|
+
status: 'running',
|
|
1273
|
+
ownerId: initiator.sessionId,
|
|
1274
|
+
}),
|
|
1275
|
+
}).catch(reject);
|
|
1276
|
+
});
|
|
1277
|
+
},
|
|
1278
|
+
resume: async (options, initiator) => {
|
|
1279
|
+
if (options.prompt)
|
|
1280
|
+
await submitAgentMessage(options.sessionId, options.prompt, 'next_turn', initiator);
|
|
1281
|
+
const session = (await visibleAgentSessions(initiator)).find((item) => item.id === options.sessionId);
|
|
1282
|
+
if (!session)
|
|
1283
|
+
throw new Error('Agent was not found');
|
|
1284
|
+
return describeAgent(session);
|
|
1285
|
+
},
|
|
1286
|
+
get: async (id, initiator) => {
|
|
1287
|
+
const session = (await visibleAgentSessions(initiator)).find((item) => item.id === id);
|
|
1288
|
+
return session ? describeAgent(session) : undefined;
|
|
1289
|
+
},
|
|
1290
|
+
list: async (initiator) => (await visibleAgentSessions(initiator)).map(describeAgent),
|
|
1291
|
+
roots: async (initiator) => (await visibleAgentSessions(initiator))
|
|
1292
|
+
.filter((session) => !session.parentSessionId)
|
|
1293
|
+
.map(describeAgent),
|
|
1294
|
+
followup: (id, message, initiator) => submitAgentMessage(id, message, 'next_turn', initiator),
|
|
1295
|
+
steer: (id, message, initiator) => submitAgentMessage(id, message, 'current_turn', initiator),
|
|
1296
|
+
inject: (id, message, initiator) => submitAgentMessage(id, message, 'current_turn', initiator),
|
|
1297
|
+
cancel: async (id, initiator) => {
|
|
1298
|
+
if (!(await visibleAgentSessions(initiator)).some((session) => session.id === id)) {
|
|
1299
|
+
throw new Error('Agent is outside the current ownership tree');
|
|
1300
|
+
}
|
|
1301
|
+
await coordinator.stopSession(id, { source: 'stop_button' });
|
|
1302
|
+
},
|
|
1303
|
+
whenIdle: async (id, signal, initiator) => {
|
|
1304
|
+
if (!(await visibleAgentSessions(initiator)).some((session) => session.id === id)) {
|
|
1305
|
+
throw new Error('Agent is outside the current ownership tree');
|
|
1306
|
+
}
|
|
1307
|
+
const wait = coordinator.whenIdle(id);
|
|
1308
|
+
if (!wait)
|
|
1309
|
+
return;
|
|
1310
|
+
if (!signal)
|
|
1311
|
+
return wait;
|
|
1312
|
+
if (signal.aborted)
|
|
1313
|
+
throw signal.reason;
|
|
1314
|
+
let rejectAbort;
|
|
1315
|
+
const aborted = new Promise((_resolve, reject) => {
|
|
1316
|
+
rejectAbort = reject;
|
|
1317
|
+
});
|
|
1318
|
+
const onAbort = () => rejectAbort?.(signal.reason);
|
|
1319
|
+
signal.addEventListener('abort', onAbort, { once: true });
|
|
1320
|
+
try {
|
|
1321
|
+
await Promise.race([wait, aborted]);
|
|
1322
|
+
}
|
|
1323
|
+
finally {
|
|
1324
|
+
signal.removeEventListener('abort', onAbort);
|
|
1325
|
+
}
|
|
1326
|
+
},
|
|
1327
|
+
snapshot: async (id, initiator) => {
|
|
1328
|
+
const session = (await visibleAgentSessions(initiator)).find((item) => item.id === id);
|
|
1329
|
+
if (!session)
|
|
1330
|
+
throw new Error('Agent was not found');
|
|
1331
|
+
return { agent: describeAgent(session), root: coordinator.readRootState(id) };
|
|
1332
|
+
},
|
|
1333
|
+
inbox: async (id, initiator) => {
|
|
1334
|
+
if (!(await visibleAgentSessions(initiator)).some((session) => session.id === id))
|
|
1335
|
+
throw new Error('Agent was not found');
|
|
1336
|
+
return coordinator.readRootState(id);
|
|
1337
|
+
},
|
|
1338
|
+
result: async (id, initiator) => {
|
|
1339
|
+
if (!(await visibleAgentSessions(initiator)).some((session) => session.id === id))
|
|
1340
|
+
throw new Error('Agent was not found');
|
|
1341
|
+
return (await manager.getMessages(id)).at(-1);
|
|
1342
|
+
},
|
|
1343
|
+
artifacts: async (id, initiator) => {
|
|
1344
|
+
if (!(await visibleAgentSessions(initiator)).some((session) => session.id === id))
|
|
1345
|
+
throw new Error('Agent was not found');
|
|
1346
|
+
return (await openedArtifactStore.listPage(id, { offset: 0, limit: 100 })).records;
|
|
1347
|
+
},
|
|
1348
|
+
transcript: async (id, initiator) => {
|
|
1349
|
+
if (!(await visibleAgentSessions(initiator)).some((session) => session.id === id))
|
|
1350
|
+
throw new Error('Agent was not found');
|
|
1351
|
+
return manager.getMessages(id);
|
|
1352
|
+
},
|
|
1353
|
+
dispose: async (id, initiator) => {
|
|
1354
|
+
if (!(await visibleAgentSessions(initiator)).some((session) => session.id === id))
|
|
1355
|
+
throw new Error('Agent was not found');
|
|
1356
|
+
await coordinator.stopSession(id, { source: 'stop_button' });
|
|
1357
|
+
},
|
|
1358
|
+
});
|
|
872
1359
|
const contextOperations = new HostContextCoordinator({
|
|
873
1360
|
runtime: manager,
|
|
874
1361
|
executions: coordinator,
|
|
@@ -884,10 +1371,21 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
884
1371
|
turns: stores.agentRunStore,
|
|
885
1372
|
runtime: manager,
|
|
886
1373
|
});
|
|
1374
|
+
// Compile-time guarantee that the three Turn coordinators together cover
|
|
1375
|
+
// every key in TURN_OPERATION_SPECS. Domain composition seeds all domain
|
|
1376
|
+
// operations with the operation_unavailable fallback, so a Turn operation
|
|
1377
|
+
// that no coordinator claims would otherwise be swept into that fallback
|
|
1378
|
+
// silently; `satisfies` turns such an omission into a typecheck error here.
|
|
1379
|
+
({
|
|
1380
|
+
...turnControl.handlers,
|
|
1381
|
+
...interactiveTurns.handlers,
|
|
1382
|
+
...coordinator.handlers,
|
|
1383
|
+
});
|
|
887
1384
|
const turnAccessRequests = context.sessionAccessAuthority
|
|
888
1385
|
? new SessionTurnAccessRequestCoordinator({
|
|
889
1386
|
authority: context.sessionAccessAuthority,
|
|
890
1387
|
startTurn: interactiveTurns.handlers['turn.start'],
|
|
1388
|
+
regenerateTurn: interactiveTurns.handlers['turn.regenerate'],
|
|
891
1389
|
hostEpoch: context.hostEpoch,
|
|
892
1390
|
acquireResidency: () => context.acquireResidency('collaboration-turn-request'),
|
|
893
1391
|
requestDrain: context.requestDrain,
|
|
@@ -905,11 +1403,19 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
905
1403
|
readSnapshot: (rootSessionId) => requireGraphCoordinator(graphCoordinator).getSnapshot(rootSessionId),
|
|
906
1404
|
startTurn: (sessionId, input, _activity, abortSignal, isCurrent) => graphExecutions.run(sessionId, input, abortSignal, isCurrent),
|
|
907
1405
|
inspectAttempt: async (rootSessionId, attemptId, turnId) => {
|
|
908
|
-
const runs = (await stores.
|
|
1406
|
+
const runs = (await stores.runtimeEventStore.listSessionInvocations(rootSessionId)).filter((run) => {
|
|
1407
|
+
const root = run.opening.root;
|
|
1408
|
+
return (root.kind === 'agent_graph_supervisor_wake' &&
|
|
1409
|
+
root.attemptId === attemptId &&
|
|
1410
|
+
run.turnId === turnId);
|
|
1411
|
+
});
|
|
909
1412
|
if (runs.length > 1) {
|
|
910
1413
|
throw new Error(`Agent graph supervisor wake attempt ${attemptId} has multiple AgentRuns`);
|
|
911
1414
|
}
|
|
912
|
-
|
|
1415
|
+
const attempt = runs[0];
|
|
1416
|
+
if (!attempt)
|
|
1417
|
+
return 'missing';
|
|
1418
|
+
return runtimeInvocationOutcome(attempt) ?? 'running';
|
|
913
1419
|
},
|
|
914
1420
|
recoverContextOverflow: (rootSessionId, { abortSignal }) => graphExecutions.recoverContextOverflow(rootSessionId, randomUUID(), abortSignal),
|
|
915
1421
|
shouldWake: shouldWakeAgentSwarmSupervisor,
|
|
@@ -938,6 +1444,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
938
1444
|
goal = new HostGoalCoordinator({
|
|
939
1445
|
store: openedGoalStore,
|
|
940
1446
|
stores,
|
|
1447
|
+
readSessionMessages: (sessionId) => requireSessionManager(manager).getMessages(sessionId),
|
|
941
1448
|
executions: coordinator,
|
|
942
1449
|
sessionAdmission,
|
|
943
1450
|
evaluator: createHostGoalEvaluator({
|
|
@@ -948,20 +1455,38 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
948
1455
|
readSessionHeader: (sessionId) => stores.sessionStore.readHeaderSnapshot(sessionId),
|
|
949
1456
|
}),
|
|
950
1457
|
admitTurn: (sessionId, text, checkpoint, controlLease) => goalExecutionCoordinator.admitTurn(sessionId, text, checkpoint, controlLease),
|
|
951
|
-
|
|
952
|
-
const tasks = await taskLedger.list(sessionId, {
|
|
953
|
-
includeTerminal: false,
|
|
954
|
-
includeArchived: false,
|
|
955
|
-
classifyResumeTrust: true,
|
|
956
|
-
});
|
|
957
|
-
return filterModelVisibleTaskLedgerTasks(tasks)
|
|
958
|
-
.filter((task) => task.status === 'pending' || task.status === 'in_progress')
|
|
959
|
-
.map((task) => task.key);
|
|
960
|
-
},
|
|
961
|
-
acquireResidency: () => context.acquireResidency('goal'),
|
|
1458
|
+
acquireResidency: (kind) => context.acquireResidency('goal', kind),
|
|
962
1459
|
onProjectionChanged: (sessionId) => continuityCoordinator.enqueueCanonicalRefresh(sessionId),
|
|
963
1460
|
requestDrain: context.requestDrain,
|
|
964
1461
|
});
|
|
1462
|
+
pluginGoals.bindRuntime({
|
|
1463
|
+
execute: async (operation, invocation) => {
|
|
1464
|
+
const coordinator = requireGoal(goal);
|
|
1465
|
+
if (operation.kind === 'get')
|
|
1466
|
+
return coordinator.readProjection(invocation.sessionId);
|
|
1467
|
+
if (!invocation.toolContext)
|
|
1468
|
+
throw new Error('Goal mutation requires an active Tool invocation');
|
|
1469
|
+
const toolName = operation.kind === 'create'
|
|
1470
|
+
? 'GoalSet'
|
|
1471
|
+
: operation.kind === 'clear'
|
|
1472
|
+
? 'GoalClear'
|
|
1473
|
+
: operation.kind === 'pause'
|
|
1474
|
+
? 'GoalPause'
|
|
1475
|
+
: 'GoalResume';
|
|
1476
|
+
const tool = coordinator.tools.find(({ name }) => name === toolName);
|
|
1477
|
+
if (!tool)
|
|
1478
|
+
throw new Error(`Goal capability is unavailable: ${toolName}`);
|
|
1479
|
+
const args = operation.kind === 'create'
|
|
1480
|
+
? {
|
|
1481
|
+
condition: operation.objective,
|
|
1482
|
+
...(operation.maxIterations ? { max_iterations: operation.maxIterations } : {}),
|
|
1483
|
+
...(operation.blockCap ? { block_cap: operation.blockCap } : {}),
|
|
1484
|
+
...(operation.tokenBudget ? { token_budget: operation.tokenBudget } : {}),
|
|
1485
|
+
}
|
|
1486
|
+
: {};
|
|
1487
|
+
return await tool.impl(args, invocation.toolContext);
|
|
1488
|
+
},
|
|
1489
|
+
});
|
|
965
1490
|
async function applyRuntimePolicyMutationEffects() {
|
|
966
1491
|
try {
|
|
967
1492
|
await requireMemory(memory).refreshAfterPolicyMutation();
|
|
@@ -980,6 +1505,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
980
1505
|
});
|
|
981
1506
|
const sessionCatalog = new HostSessionCatalogCoordinator({
|
|
982
1507
|
stores: stores.sessionStore,
|
|
1508
|
+
turnIndex: requireTranscriptReader(transcriptReader),
|
|
983
1509
|
runtimePolicy: runtimePolicyStores,
|
|
984
1510
|
manager,
|
|
985
1511
|
admission: sessionAdmission,
|
|
@@ -990,13 +1516,139 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
990
1516
|
? { sessionAccessAuthority: context.sessionAccessAuthority }
|
|
991
1517
|
: {}),
|
|
992
1518
|
});
|
|
993
|
-
|
|
1519
|
+
workHubCoordination = new HostWorkHubCoordinationCoordinator({
|
|
1520
|
+
routingModel: dependencies.workHubRoutingModel,
|
|
1521
|
+
requestForm: (input) => interactions.requestForm(input),
|
|
1522
|
+
configureModel: (input) => sessionCatalog.configureWorkHubModel(input),
|
|
1523
|
+
transitionConfiguration: (input) => requireSessionManager(manager).transitionSessionConfiguration(WORKHUB_COORDINATION_SESSION_ID, input),
|
|
994
1524
|
stateRoot: context.owner.capability.canonicalPath,
|
|
995
1525
|
stores: stores.sessionStore,
|
|
996
1526
|
admission: sessionAdmission,
|
|
997
1527
|
continuity: continuityCoordinator,
|
|
998
1528
|
executions: coordinator,
|
|
999
1529
|
sessionActions: {
|
|
1530
|
+
readDelegationRetirement: async (assignment, admission) => {
|
|
1531
|
+
const disposition = admission
|
|
1532
|
+
? await messages.readMessageExecutionDispositionAdmitted(assignment.targetSessionId, assignment.targetMessageId, admission)
|
|
1533
|
+
: await messages.readMessageExecutionDisposition(assignment.targetSessionId, assignment.targetMessageId);
|
|
1534
|
+
if (disposition.kind === 'recovering')
|
|
1535
|
+
return 'recovering';
|
|
1536
|
+
if (disposition.kind === 'pending')
|
|
1537
|
+
return 'not_retired';
|
|
1538
|
+
if (disposition.kind === 'cancelled' || disposition.kind === 'shared_turn') {
|
|
1539
|
+
return 'retired';
|
|
1540
|
+
}
|
|
1541
|
+
const identity = {
|
|
1542
|
+
sessionId: assignment.targetSessionId,
|
|
1543
|
+
turnId: disposition.turnId,
|
|
1544
|
+
runId: disposition.runId,
|
|
1545
|
+
};
|
|
1546
|
+
const latest = await coordinator.readLatestRootTurnLineage(identity);
|
|
1547
|
+
if (isActiveWorkHubRoot(coordinator, latest))
|
|
1548
|
+
return 'not_retired';
|
|
1549
|
+
// The same restart window as `stopOwnedWorkHubRoot`: an unregistered
|
|
1550
|
+
// root is not evidence that its work ended.
|
|
1551
|
+
const snapshot = await coordinator.read(latest);
|
|
1552
|
+
return isHostedExecutionTerminal(snapshot) ? 'retired' : 'recovering';
|
|
1553
|
+
},
|
|
1554
|
+
// Resolve and resume only the execution lineage owned by this
|
|
1555
|
+
// delegation. A Session-wide latest-failure query could otherwise
|
|
1556
|
+
// continue unrelated work started directly in the same Session.
|
|
1557
|
+
resumeDelegation: async (assignment, context, actionId, validateFreshTarget) => {
|
|
1558
|
+
const targetTurnId = workHubResumedTurnId(actionId);
|
|
1559
|
+
const admitted = await stores.agentRunStore.readRootTurnAdmission(assignment.targetSessionId, targetTurnId);
|
|
1560
|
+
if (admitted) {
|
|
1561
|
+
if (admitted.execution.kind !== 'safe_boundary_continuation') {
|
|
1562
|
+
throw new WorkHubActionEffectFailure('operation_conflict', 'WorkHub resume identity is not a continuation');
|
|
1563
|
+
}
|
|
1564
|
+
return { outcome: 'resume_started', targetTurnId };
|
|
1565
|
+
}
|
|
1566
|
+
await validateFreshTarget();
|
|
1567
|
+
const disposition = await messages.readMessageExecutionDisposition(assignment.targetSessionId, assignment.targetMessageId);
|
|
1568
|
+
if (disposition.kind === 'recovering') {
|
|
1569
|
+
throw new WorkHubActionEffectFailure('host_not_ready', 'WorkHub is still recovering the delegated execution');
|
|
1570
|
+
}
|
|
1571
|
+
if (disposition.kind !== 'owned_root') {
|
|
1572
|
+
throw new WorkHubActionEffectFailure('operation_conflict', 'WorkHub delegated execution is not resumable');
|
|
1573
|
+
}
|
|
1574
|
+
const source = await coordinator.readLatestRootTurnLineage({
|
|
1575
|
+
sessionId: assignment.targetSessionId,
|
|
1576
|
+
turnId: disposition.turnId,
|
|
1577
|
+
runId: disposition.runId,
|
|
1578
|
+
});
|
|
1579
|
+
if (isActiveWorkHubRoot(coordinator, source)) {
|
|
1580
|
+
return { outcome: 'already_running' };
|
|
1581
|
+
}
|
|
1582
|
+
const snapshot = await coordinator.read(source);
|
|
1583
|
+
if (!isHostedExecutionTerminal(snapshot)) {
|
|
1584
|
+
throw new WorkHubActionEffectFailure('host_not_ready', 'WorkHub is still recovering the delegated execution');
|
|
1585
|
+
}
|
|
1586
|
+
if (snapshot.status !== 'failed' && snapshot.status !== 'cancelled') {
|
|
1587
|
+
throw new WorkHubActionEffectFailure('operation_conflict', 'WorkHub delegated execution is not resumable');
|
|
1588
|
+
}
|
|
1589
|
+
const plan = await coordinator.handlers['turn.resume.query']({ sessionId: assignment.targetSessionId, sourceRunId: source.runId }, context);
|
|
1590
|
+
if (!plan.ok)
|
|
1591
|
+
throw new WorkHubActionEffectFailure(plan.error.code, plan.error.message);
|
|
1592
|
+
if (plan.result.disposition === 'parked') {
|
|
1593
|
+
throw new WorkHubActionEffectFailure(plan.result.reason === 'resume_feature_disabled'
|
|
1594
|
+
? 'operation_unavailable'
|
|
1595
|
+
: 'operation_conflict', plan.result.reason === 'resume_feature_disabled'
|
|
1596
|
+
? 'Safe-boundary resume is disabled for this Runtime Host'
|
|
1597
|
+
: 'WorkHub delegated execution is not resumable');
|
|
1598
|
+
}
|
|
1599
|
+
// Root planning authenticates handoff membership. Its source may be
|
|
1600
|
+
// a physical successor of this same logical Turn, never another Turn.
|
|
1601
|
+
if (plan.result.sourceTurnId !== source.turnId) {
|
|
1602
|
+
throw new WorkHubActionEffectFailure('operation_conflict', 'WorkHub resume source lineage changed during planning');
|
|
1603
|
+
}
|
|
1604
|
+
const started = await coordinator.handlers['turn.resume.start']({
|
|
1605
|
+
sessionId: assignment.targetSessionId,
|
|
1606
|
+
turnId: targetTurnId,
|
|
1607
|
+
sourceRunId: plan.result.sourceRunId,
|
|
1608
|
+
sourceRuntimeEventHighWater: plan.result.sourceRuntimeEventHighWater,
|
|
1609
|
+
}, context);
|
|
1610
|
+
if (!started.ok) {
|
|
1611
|
+
throw new WorkHubActionEffectFailure(started.error.code, started.error.message);
|
|
1612
|
+
}
|
|
1613
|
+
if (started.result.kind === 'parked') {
|
|
1614
|
+
throw new WorkHubActionEffectFailure(started.result.plan.reason === 'resume_feature_disabled'
|
|
1615
|
+
? 'operation_unavailable'
|
|
1616
|
+
: 'operation_conflict', started.result.plan.reason === 'resume_feature_disabled'
|
|
1617
|
+
? 'Safe-boundary resume is disabled for this Runtime Host'
|
|
1618
|
+
: 'WorkHub delegated execution is not resumable');
|
|
1619
|
+
}
|
|
1620
|
+
return {
|
|
1621
|
+
outcome: 'resume_started',
|
|
1622
|
+
targetTurnId: started.result.turn.turnId,
|
|
1623
|
+
};
|
|
1624
|
+
},
|
|
1625
|
+
retireDelegation: async (assignment, retirement) => {
|
|
1626
|
+
const disposition = await messages.cancelMessageIfPending(assignment.targetSessionId, assignment.targetMessageId, retirement.cancellationClaimId);
|
|
1627
|
+
if (disposition.kind === 'recovering') {
|
|
1628
|
+
return { outcome: 'recovering' };
|
|
1629
|
+
}
|
|
1630
|
+
if (disposition.kind === 'cancelled') {
|
|
1631
|
+
return { outcome: 'already_terminal' };
|
|
1632
|
+
}
|
|
1633
|
+
if (disposition.kind === 'cancelled_pending') {
|
|
1634
|
+
return { outcome: 'cancelled_pending' };
|
|
1635
|
+
}
|
|
1636
|
+
if (disposition.kind === 'shared_turn') {
|
|
1637
|
+
return { outcome: 'not_owned', targetTurnId: disposition.turnId };
|
|
1638
|
+
}
|
|
1639
|
+
if (disposition.kind === 'owned_root') {
|
|
1640
|
+
const identity = await coordinator.readLatestRootTurnLineage({
|
|
1641
|
+
sessionId: assignment.targetSessionId,
|
|
1642
|
+
turnId: disposition.turnId,
|
|
1643
|
+
runId: disposition.runId,
|
|
1644
|
+
});
|
|
1645
|
+
return retirement.cause === 'direct_stop'
|
|
1646
|
+
? stopOwnedWorkHubRoot(coordinator, identity, retirement.cancellationClaimId)
|
|
1647
|
+
: stopReplacedWorkHubRoot(coordinator, identity);
|
|
1648
|
+
}
|
|
1649
|
+
disposition;
|
|
1650
|
+
throw new Error('Unhandled WorkHub Message retirement disposition');
|
|
1651
|
+
},
|
|
1000
1652
|
assign: async (input) => {
|
|
1001
1653
|
const durable = await stores.sessionStore.readWorkHubAssignment(input.actionId);
|
|
1002
1654
|
if (durable) {
|
|
@@ -1007,7 +1659,17 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1007
1659
|
sessionId: input.targetSessionId,
|
|
1008
1660
|
workspace: input.create.workspace,
|
|
1009
1661
|
name: input.create.title,
|
|
1010
|
-
modelTarget:
|
|
1662
|
+
modelTarget: input.create.defaults?.model
|
|
1663
|
+
? {
|
|
1664
|
+
kind: 'explicit',
|
|
1665
|
+
connectionId: input.create.defaults.model.llmConnectionId,
|
|
1666
|
+
connectionSlug: input.create.defaults.model.llmConnectionSlug,
|
|
1667
|
+
model: input.create.defaults.model.model,
|
|
1668
|
+
}
|
|
1669
|
+
: { kind: 'default' },
|
|
1670
|
+
...(input.create.defaults?.permissionMode
|
|
1671
|
+
? { permissionMode: input.create.defaults.permissionMode }
|
|
1672
|
+
: {}),
|
|
1011
1673
|
collaborationMode: 'agent',
|
|
1012
1674
|
orchestrationMode: 'default',
|
|
1013
1675
|
})
|
|
@@ -1017,9 +1679,18 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1017
1679
|
.digest('hex')
|
|
1018
1680
|
.slice(0, 48);
|
|
1019
1681
|
const messageId = `whm_${suffix}`;
|
|
1020
|
-
const
|
|
1682
|
+
const targetAttachments = durable
|
|
1683
|
+
? durable.targetAttachments
|
|
1684
|
+
: input.attachments?.length
|
|
1685
|
+
? await copyWorkHubAttachmentsToTarget(openedArtifactStore, artifacts, input.targetSessionId, input.attachments)
|
|
1686
|
+
: input.attachments;
|
|
1687
|
+
const content = normalizeMessageContent({
|
|
1688
|
+
text: input.delegationText ?? input.userText,
|
|
1689
|
+
...(targetAttachments ? { attachments: targetAttachments } : {}),
|
|
1690
|
+
});
|
|
1021
1691
|
const persisted = durable ??
|
|
1022
1692
|
(await sessionAdmission.runMany([WORKHUB_COORDINATION_SESSION_ID, input.targetSessionId], async (lease) => {
|
|
1693
|
+
await input.validateFreshTarget?.();
|
|
1023
1694
|
const rootState = coordinator.readRootState(input.targetSessionId);
|
|
1024
1695
|
if (!create && rootState.kind === 'reserved') {
|
|
1025
1696
|
throw new WorkHubActionEffectFailure('session_busy', 'A target root Turn is being admitted');
|
|
@@ -1028,26 +1699,59 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1028
1699
|
const turnId = steered ? rootState.turnId : `wht_${suffix}`;
|
|
1029
1700
|
const runId = steered ? rootState.runId : `whr_${suffix}`;
|
|
1030
1701
|
const assignedAt = Date.now();
|
|
1702
|
+
const delegationId = `whd_${suffix}`;
|
|
1703
|
+
const supersession = input.replacesActionId && input.replacesDelegationId
|
|
1704
|
+
? {
|
|
1705
|
+
type: 'workhub_coordination',
|
|
1706
|
+
id: `whx_${createHash('sha256')
|
|
1707
|
+
.update(input.replacesDelegationId, 'utf8')
|
|
1708
|
+
.digest('hex')
|
|
1709
|
+
.slice(0, 48)}`,
|
|
1710
|
+
turnId: input.coordinationTurnId ?? input.actionId,
|
|
1711
|
+
ts: assignedAt,
|
|
1712
|
+
schemaVersion: WORKHUB_COORDINATION_REPLACEMENT_SCHEMA_VERSION,
|
|
1713
|
+
kind: 'delegation_superseded',
|
|
1714
|
+
actionId: input.actionId,
|
|
1715
|
+
actionFingerprint: input.actionFingerprint,
|
|
1716
|
+
coordinationTurnId: input.coordinationTurnId ?? input.actionId,
|
|
1717
|
+
supersededActionId: input.replacesActionId,
|
|
1718
|
+
supersededDelegationId: input.replacesDelegationId,
|
|
1719
|
+
replacementDelegationId: delegationId,
|
|
1720
|
+
}
|
|
1721
|
+
: undefined;
|
|
1031
1722
|
const result = await stores.sessionStore.assignWorkHubMessage({
|
|
1032
1723
|
assignment: {
|
|
1033
1724
|
type: 'workhub_coordination',
|
|
1034
1725
|
id: `wha_${suffix}`,
|
|
1035
|
-
turnId: input.actionId,
|
|
1726
|
+
turnId: input.coordinationTurnId ?? input.actionId,
|
|
1036
1727
|
ts: assignedAt,
|
|
1037
|
-
schemaVersion:
|
|
1728
|
+
schemaVersion: supersession
|
|
1729
|
+
? WORKHUB_COORDINATION_REPLACEMENT_SCHEMA_VERSION
|
|
1730
|
+
: 1,
|
|
1038
1731
|
kind: 'delegation_assigned',
|
|
1039
1732
|
actionId: input.actionId,
|
|
1040
1733
|
actionFingerprint: input.actionFingerprint,
|
|
1041
|
-
coordinationTurnId: input.actionId,
|
|
1734
|
+
coordinationTurnId: input.coordinationTurnId ?? input.actionId,
|
|
1042
1735
|
targetSessionId: input.targetSessionId,
|
|
1043
1736
|
targetSessionName: input.targetSessionName,
|
|
1044
1737
|
targetTurnId: turnId,
|
|
1045
1738
|
targetMessageId: messageId,
|
|
1046
|
-
delegationId
|
|
1739
|
+
delegationId,
|
|
1047
1740
|
disposition: input.disposition,
|
|
1048
1741
|
userText: input.userText,
|
|
1742
|
+
...(input.attachments ? { attachments: input.attachments } : {}),
|
|
1743
|
+
...(targetAttachments ? { targetAttachments } : {}),
|
|
1744
|
+
...(input.delegationText === undefined
|
|
1745
|
+
? {}
|
|
1746
|
+
: { delegationText: input.delegationText }),
|
|
1049
1747
|
...(steered ? { steered: true } : {}),
|
|
1050
1748
|
...(input.create ? { create: input.create } : {}),
|
|
1749
|
+
...(input.replacesActionId && input.replacesDelegationId
|
|
1750
|
+
? {
|
|
1751
|
+
replacesActionId: input.replacesActionId,
|
|
1752
|
+
replacesDelegationId: input.replacesDelegationId,
|
|
1753
|
+
}
|
|
1754
|
+
: {}),
|
|
1051
1755
|
},
|
|
1052
1756
|
admission: {
|
|
1053
1757
|
sessionId: input.targetSessionId,
|
|
@@ -1059,9 +1763,11 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1059
1763
|
submittedPlacement: 'current_turn',
|
|
1060
1764
|
placement: 'current_turn',
|
|
1061
1765
|
disposition: 'steering',
|
|
1766
|
+
skillInvocation: { loaded: [], failed: [], receipts: [] },
|
|
1062
1767
|
admittedAt: assignedAt,
|
|
1063
1768
|
},
|
|
1064
1769
|
...(create ? { create } : {}),
|
|
1770
|
+
...(supersession ? { supersession } : {}),
|
|
1065
1771
|
});
|
|
1066
1772
|
// Keep the durable steering identity and its live queue owner
|
|
1067
1773
|
// under one Session admission. A terminal transition must not
|
|
@@ -1084,7 +1790,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1084
1790
|
},
|
|
1085
1791
|
},
|
|
1086
1792
|
resolveCreateTarget: async () => {
|
|
1087
|
-
const { projectId: _projectId, ...target } = await sessionCatalog.
|
|
1793
|
+
const { projectId: _projectId, ...target } = await sessionCatalog.resolveDefaultCreateTarget();
|
|
1088
1794
|
return { ...target, permissionMode: 'explore' };
|
|
1089
1795
|
},
|
|
1090
1796
|
requestDrain: context.requestDrain,
|
|
@@ -1096,14 +1802,23 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1096
1802
|
root: coordinator,
|
|
1097
1803
|
runtimePolicy: runtimePolicyStores,
|
|
1098
1804
|
nativeEffects: clientCapabilities,
|
|
1099
|
-
createSession: (input) => sessionCatalog.createForHost(input),
|
|
1805
|
+
createSession: (input, toolMode) => sessionCatalog.createForHost(input, toolMode),
|
|
1100
1806
|
changes: {
|
|
1101
1807
|
publish: (revision, reason, taskId) => hostChanges.publishScheduledTask(revision, reason, taskId),
|
|
1102
1808
|
},
|
|
1103
|
-
acquireResidency: () => context.acquireResidency('scheduled-task'),
|
|
1809
|
+
acquireResidency: (kind) => context.acquireResidency('scheduled-task', kind),
|
|
1104
1810
|
requestDrain: context.requestDrain,
|
|
1105
1811
|
});
|
|
1106
1812
|
scheduledTaskTool = scheduledTasks.modelTool;
|
|
1813
|
+
// Export and import run inside this process because the authority they
|
|
1814
|
+
// need is already held here: the Storage Root owner lock is an election
|
|
1815
|
+
// that refuses a second exclusive hold, its own process included, so the
|
|
1816
|
+
// Host lends the lease rather than electing again.
|
|
1817
|
+
const sessionBundles = new HostSessionBundleCoordinator({
|
|
1818
|
+
lease: context.owner.lease,
|
|
1819
|
+
fenceSubtree: (sessionId, operation) => requireSessionManager(manager).runSessionSubtreeQuiescentMutation(sessionId, operation),
|
|
1820
|
+
onImported: (sessionId) => hostChanges.publishSessionCatalog(sessionId),
|
|
1821
|
+
});
|
|
1107
1822
|
const externalSessions = new HostExternalSessionCoordinator({
|
|
1108
1823
|
adapters: createExternalSessionAdapterRegistry(),
|
|
1109
1824
|
admission: sessionAdmission,
|
|
@@ -1114,6 +1829,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1114
1829
|
discardImportedSession: async (sessionId) => {
|
|
1115
1830
|
const outcomes = await Promise.allSettled([
|
|
1116
1831
|
stores.purgeConversationOperationalState(sessionId),
|
|
1832
|
+
sessionTodoStore.purgeSessionState(sessionId),
|
|
1117
1833
|
stores.sessionStore.remove(sessionId),
|
|
1118
1834
|
]);
|
|
1119
1835
|
for (const outcome of outcomes) {
|
|
@@ -1138,7 +1854,8 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1138
1854
|
const sessionRevisions = new HostSessionRevisionCoordinator({
|
|
1139
1855
|
stores,
|
|
1140
1856
|
artifacts: openedArtifactStore,
|
|
1141
|
-
|
|
1857
|
+
sessionTodo: sessionTodoStore,
|
|
1858
|
+
...(contextOffloadAuthority ? { contextOffload: contextOffloadAuthority } : {}),
|
|
1142
1859
|
manager,
|
|
1143
1860
|
admission: sessionAdmission,
|
|
1144
1861
|
continuity: continuityCoordinator,
|
|
@@ -1162,19 +1879,8 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1162
1879
|
capabilities: clientCapabilities,
|
|
1163
1880
|
continuity: continuityCoordinator,
|
|
1164
1881
|
artifacts: openedArtifactStore,
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
if (!openedContextOffloadStore) {
|
|
1168
|
-
throw new Error('Context-offload reader is unavailable during Session removal', {
|
|
1169
|
-
cause: storage.contextOffloadUnavailable?.cause,
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
for (const sessionId of sessionIds) {
|
|
1173
|
-
if ((await openedContextOffloadStore.usage(sessionId)).references > 0) {
|
|
1174
|
-
throw new SessionMetadataConflictError('Session removal does not support Session context references yet');
|
|
1175
|
-
}
|
|
1176
|
-
}
|
|
1177
|
-
},
|
|
1882
|
+
sessionTodo: sessionTodoStore,
|
|
1883
|
+
...(contextOffloadAuthority ? { contextOffload: contextOffloadAuthority } : {}),
|
|
1178
1884
|
purgeOperationalState: async (sessionId) => {
|
|
1179
1885
|
await stores.purgeConversationOperationalState(sessionId);
|
|
1180
1886
|
await openedPlanStore.purgeSessionState(sessionId);
|
|
@@ -1220,7 +1926,24 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1220
1926
|
});
|
|
1221
1927
|
const hostedExecutions = new HostHostedExecutionCoordinator((input, signal) => hostedExecutionRunner.run(input, signal), context.requestDrain);
|
|
1222
1928
|
let recoverySessions = [];
|
|
1929
|
+
const storageMaintenance = new HostStorageMaintenance({
|
|
1930
|
+
artifacts: openedArtifactStore,
|
|
1931
|
+
contextOffload: openedContextOffloadStore,
|
|
1932
|
+
onError: (name, error) => console.error(`[runtime-host] ${name} will retry: ${generalizedErrorMessage(error)}`),
|
|
1933
|
+
});
|
|
1223
1934
|
domainModules = [
|
|
1935
|
+
createRuntimeHostDomainModule({
|
|
1936
|
+
id: 'storage-maintenance',
|
|
1937
|
+
drain: [() => storageMaintenance.beginDrain()],
|
|
1938
|
+
close: [() => storageMaintenance.close()],
|
|
1939
|
+
}),
|
|
1940
|
+
createRuntimeHostDomainModule({
|
|
1941
|
+
id: 'plugin-platform',
|
|
1942
|
+
handlers: [pluginPlatformCoordinator.handlers],
|
|
1943
|
+
recovery: { state: () => pluginPlatform.recover() },
|
|
1944
|
+
drain: [() => pluginPlatform.beginDrain()],
|
|
1945
|
+
close: [() => pluginPlatform.close()],
|
|
1946
|
+
}),
|
|
1224
1947
|
createRuntimeHostDomainModule({
|
|
1225
1948
|
id: 'memory',
|
|
1226
1949
|
handlers: [requireMemory(memory).handlers],
|
|
@@ -1243,7 +1966,12 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1243
1966
|
}),
|
|
1244
1967
|
createRuntimeHostDomainModule({
|
|
1245
1968
|
id: 'session',
|
|
1246
|
-
handlers: [
|
|
1969
|
+
handlers: [
|
|
1970
|
+
sessionCatalog.handlers,
|
|
1971
|
+
externalSessions.handlers,
|
|
1972
|
+
sessionBundles.handlers,
|
|
1973
|
+
sessionRevisions.handlers,
|
|
1974
|
+
],
|
|
1247
1975
|
recovery: {
|
|
1248
1976
|
state: () => externalSessions.recover(),
|
|
1249
1977
|
resources: async () => {
|
|
@@ -1265,42 +1993,76 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1265
1993
|
handlers: [
|
|
1266
1994
|
runtimePolicy.handlers,
|
|
1267
1995
|
connectionEffects.handlers,
|
|
1268
|
-
|
|
1996
|
+
sessionTodo.handlers,
|
|
1269
1997
|
artifacts.handlers,
|
|
1270
1998
|
skills.handlers,
|
|
1271
1999
|
usagePricing.handlers,
|
|
1272
2000
|
oauth.handlers,
|
|
2001
|
+
externalAgentSetup.handlers,
|
|
1273
2002
|
webSearch.handlers,
|
|
1274
2003
|
networkProxy.handlers,
|
|
1275
2004
|
configuration.handlers,
|
|
1276
2005
|
],
|
|
1277
2006
|
recovery: {
|
|
1278
|
-
state:
|
|
1279
|
-
await skills.recover();
|
|
1280
|
-
await openedArtifactStore.recover();
|
|
1281
|
-
},
|
|
2007
|
+
state: () => skills.recover(),
|
|
1282
2008
|
},
|
|
1283
2009
|
drain: [
|
|
1284
2010
|
() => connectionEffects.beginDrain(),
|
|
1285
2011
|
() => skills.beginDrain(),
|
|
1286
2012
|
() => oauth?.beginDrain(),
|
|
2013
|
+
() => externalAgentSetup?.beginDrain(),
|
|
1287
2014
|
],
|
|
1288
2015
|
close: [
|
|
2016
|
+
() => archiveEvidence?.close(),
|
|
2017
|
+
() => modelMetadataRefresh?.close(),
|
|
1289
2018
|
() => connectionEffects.close(),
|
|
1290
|
-
() =>
|
|
2019
|
+
() => backendInvalidationPoisoned
|
|
2020
|
+
? undefined
|
|
2021
|
+
: requireSessionManager(manager).refreshIdleBackends(),
|
|
1291
2022
|
() => skills.close(),
|
|
1292
2023
|
() => oauth?.close(),
|
|
2024
|
+
() => externalAgentSetup?.close(),
|
|
1293
2025
|
() => {
|
|
1294
2026
|
unsubscribeTranscriptChanges?.();
|
|
1295
2027
|
unsubscribeUsageChanges?.();
|
|
1296
|
-
unsubscribeTaskLedger?.();
|
|
1297
2028
|
},
|
|
1298
2029
|
],
|
|
1299
|
-
releaseConnection: [
|
|
2030
|
+
releaseConnection: [
|
|
2031
|
+
(connectionId) => artifacts.releaseConnection(connectionId),
|
|
2032
|
+
(connectionId) => externalAgentSetup?.releaseConnection(connectionId),
|
|
2033
|
+
],
|
|
1300
2034
|
}),
|
|
1301
2035
|
createRuntimeHostDomainModule({
|
|
1302
2036
|
id: 'client-capability',
|
|
1303
|
-
handlers: [
|
|
2037
|
+
handlers: [
|
|
2038
|
+
{
|
|
2039
|
+
...clientCapabilities.handlers,
|
|
2040
|
+
'client.capability.replace': async (input, operationContext) => {
|
|
2041
|
+
const outcome = await clientCapabilities.handlers['client.capability.replace'](input, operationContext);
|
|
2042
|
+
if (outcome.ok && rootRecoveryCompleted && !draining) {
|
|
2043
|
+
// Registration completes outside the policy mutation gate before
|
|
2044
|
+
// recovery selects bindings or composes a backend. Serialize
|
|
2045
|
+
// reconnects and retain the task for the shutdown barrier.
|
|
2046
|
+
clientBoundRecovery = clientBoundRecovery.then(async () => {
|
|
2047
|
+
if (draining)
|
|
2048
|
+
return;
|
|
2049
|
+
await coordinator.recover();
|
|
2050
|
+
await messages.consumePendingAdmissions(recoverySessions
|
|
2051
|
+
.filter((session) => session.toolProfile === 'workhub-coordination-v2')
|
|
2052
|
+
.map((session) => session.id));
|
|
2053
|
+
});
|
|
2054
|
+
try {
|
|
2055
|
+
await clientBoundRecovery;
|
|
2056
|
+
}
|
|
2057
|
+
catch (error) {
|
|
2058
|
+
context.requestDrain();
|
|
2059
|
+
throw error;
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
return outcome;
|
|
2063
|
+
},
|
|
2064
|
+
},
|
|
2065
|
+
],
|
|
1304
2066
|
recovery: {
|
|
1305
2067
|
resources: async () => {
|
|
1306
2068
|
await recoverClientCapabilityOutcomes(stores.runtimeEventStore, recoverySessions.map((session) => session.id));
|
|
@@ -1353,8 +2115,8 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1353
2115
|
executions: async () => {
|
|
1354
2116
|
await coordinator.prepareRecovery();
|
|
1355
2117
|
await interactions.recoverPendingAfterHostRestart();
|
|
1356
|
-
await manager.recoverInterruptedSessionsStrict(stores);
|
|
1357
|
-
await manager.recoverChildWorkspacePatches(recoverySessions.flatMap((session) => session.subagentWorkspace ? [session.id] : []));
|
|
2118
|
+
await requireSessionManager(manager).recoverInterruptedSessionsStrict(stores);
|
|
2119
|
+
await requireSessionManager(manager).recoverChildWorkspacePatches(recoverySessions.flatMap((session) => session.subagentWorkspace ? [session.id] : []));
|
|
1358
2120
|
await coordinator.recover();
|
|
1359
2121
|
await messages.recoverPendingAfterHostRestart(recoverySessions.map((session) => session.id));
|
|
1360
2122
|
await turnAccessRequests?.recover();
|
|
@@ -1374,6 +2136,7 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1374
2136
|
async () => {
|
|
1375
2137
|
if (!rootRecoveryCompleted || poisonFailure)
|
|
1376
2138
|
return;
|
|
2139
|
+
await clientBoundRecovery.catch(() => undefined);
|
|
1377
2140
|
rootCloseTask ??= coordinator.close();
|
|
1378
2141
|
await rootCloseTask;
|
|
1379
2142
|
},
|
|
@@ -1470,20 +2233,98 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1470
2233
|
handlers,
|
|
1471
2234
|
moduleIds: Object.freeze(domainModules.map(({ id }) => id)),
|
|
1472
2235
|
workspaceExecution: requireWorkspaceExecution(workspaceExecution),
|
|
2236
|
+
plugins: pluginPlatform,
|
|
1473
2237
|
continuity: continuityCoordinator,
|
|
1474
2238
|
clientCapabilities,
|
|
1475
2239
|
hostChanges,
|
|
2240
|
+
prepareHandoff: async (hostEpoch, signal) => {
|
|
2241
|
+
if (draining || signal.aborted)
|
|
2242
|
+
return undefined;
|
|
2243
|
+
const goalHold = goal?.holdForHandoff();
|
|
2244
|
+
const scheduleHold = scheduledTasks?.holdForHandoff();
|
|
2245
|
+
const dailyReviewHold = dailyReview?.holdForHandoff();
|
|
2246
|
+
let root;
|
|
2247
|
+
let detached = false;
|
|
2248
|
+
const cancel = () => {
|
|
2249
|
+
if (detached)
|
|
2250
|
+
return;
|
|
2251
|
+
root?.cancel();
|
|
2252
|
+
goalHold?.release();
|
|
2253
|
+
scheduleHold?.release();
|
|
2254
|
+
dailyReviewHold?.release();
|
|
2255
|
+
signal.removeEventListener('abort', cancel);
|
|
2256
|
+
};
|
|
2257
|
+
signal.addEventListener('abort', cancel, { once: true });
|
|
2258
|
+
try {
|
|
2259
|
+
if (!goalHold || !scheduleHold || !dailyReviewHold) {
|
|
2260
|
+
cancel();
|
|
2261
|
+
return undefined;
|
|
2262
|
+
}
|
|
2263
|
+
await waitForHostedExecutionIdleOrAbort(Promise.all([
|
|
2264
|
+
goalHold.settled(),
|
|
2265
|
+
scheduleHold.settled(),
|
|
2266
|
+
dailyReviewHold.settled(),
|
|
2267
|
+
]).then(() => undefined), signal);
|
|
2268
|
+
root = await requireRootCoordinator(coordinator).prepareHandoff(hostEpoch, signal);
|
|
2269
|
+
if (!root) {
|
|
2270
|
+
cancel();
|
|
2271
|
+
return undefined;
|
|
2272
|
+
}
|
|
2273
|
+
const prepared = root;
|
|
2274
|
+
return {
|
|
2275
|
+
seal: () => prepared.seal(),
|
|
2276
|
+
residencies: async () => {
|
|
2277
|
+
await waitForHostedExecutionIdleOrAbort(scheduleHold.settled(), signal);
|
|
2278
|
+
const goals = await goalHold.residencies(prepared.executions);
|
|
2279
|
+
const roots = await prepared.residencies();
|
|
2280
|
+
const reviews = dailyReviewHold.residencies();
|
|
2281
|
+
if (!goals || !roots || !reviews || signal.aborted || draining)
|
|
2282
|
+
return undefined;
|
|
2283
|
+
return [...roots, ...goals, ...scheduleHold.residencies(), ...reviews];
|
|
2284
|
+
},
|
|
2285
|
+
detach: async () => {
|
|
2286
|
+
detached = true;
|
|
2287
|
+
signal.removeEventListener('abort', cancel);
|
|
2288
|
+
await prepared.detach();
|
|
2289
|
+
// Domain holds stay closed until the lifecycle owner drains us.
|
|
2290
|
+
},
|
|
2291
|
+
cancel,
|
|
2292
|
+
};
|
|
2293
|
+
}
|
|
2294
|
+
catch (error) {
|
|
2295
|
+
cancel();
|
|
2296
|
+
if (signal.aborted)
|
|
2297
|
+
return undefined;
|
|
2298
|
+
throw error;
|
|
2299
|
+
}
|
|
2300
|
+
},
|
|
1476
2301
|
releaseConnection: (connectionId) => {
|
|
1477
2302
|
for (const module of domainModules)
|
|
1478
2303
|
module.releaseConnection?.(connectionId);
|
|
1479
2304
|
},
|
|
1480
|
-
|
|
2305
|
+
// Drain may stop graph operators while its caller still owns a Session admission.
|
|
2306
|
+
// Leave that context; each stop still waits on its own Session queue.
|
|
2307
|
+
beginDrain: () => sessionAdmission.detach(beginDrain),
|
|
1481
2308
|
recover,
|
|
2309
|
+
startMaintenance: () => storageMaintenance.start(),
|
|
1482
2310
|
close,
|
|
1483
2311
|
};
|
|
1484
2312
|
}
|
|
1485
2313
|
catch (error) {
|
|
1486
2314
|
const errors = [error];
|
|
2315
|
+
archiveEvidence?.close();
|
|
2316
|
+
try {
|
|
2317
|
+
await modelMetadataRefresh?.close();
|
|
2318
|
+
}
|
|
2319
|
+
catch (closeError) {
|
|
2320
|
+
errors.push(closeError);
|
|
2321
|
+
}
|
|
2322
|
+
try {
|
|
2323
|
+
await pluginPlatform?.close();
|
|
2324
|
+
}
|
|
2325
|
+
catch (closeError) {
|
|
2326
|
+
errors.push(closeError);
|
|
2327
|
+
}
|
|
1487
2328
|
goalExecutions?.beginDrain();
|
|
1488
2329
|
try {
|
|
1489
2330
|
await workspaceExecution?.close();
|
|
@@ -1512,7 +2353,6 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1512
2353
|
try {
|
|
1513
2354
|
unsubscribeTranscriptChanges?.();
|
|
1514
2355
|
unsubscribeUsageChanges?.();
|
|
1515
|
-
unsubscribeTaskLedger?.();
|
|
1516
2356
|
}
|
|
1517
2357
|
catch (closeError) {
|
|
1518
2358
|
errors.push(closeError);
|
|
@@ -1534,6 +2374,51 @@ export async function createExecutionRuntimeHostComposition(context, options = {
|
|
|
1534
2374
|
throw new AggregateError(errors, 'Unable to clean up Runtime Host execution composition');
|
|
1535
2375
|
}
|
|
1536
2376
|
}
|
|
2377
|
+
/**
|
|
2378
|
+
* Confirmed direct stop. The action-derived abort source is written onto the
|
|
2379
|
+
* exact root Turn so a retry after a crash can tell WorkHub's own delivery
|
|
2380
|
+
* apart from an earlier or concurrent manual Stop.
|
|
2381
|
+
*/
|
|
2382
|
+
export async function stopOwnedWorkHubRoot(coordinator, identity, actionId) {
|
|
2383
|
+
if (isActiveWorkHubRoot(coordinator, identity)) {
|
|
2384
|
+
await coordinator.stopRoot(identity, {
|
|
2385
|
+
source: 'workhub_direct_stop',
|
|
2386
|
+
workHubActionId: actionId,
|
|
2387
|
+
});
|
|
2388
|
+
}
|
|
2389
|
+
const terminal = await coordinator.read(identity);
|
|
2390
|
+
if (terminal.status === 'cancelled' &&
|
|
2391
|
+
terminal.abortSource === workHubDirectStopAbortSource(actionId)) {
|
|
2392
|
+
return { outcome: 'stop_delivered', targetTurnId: identity.turnId };
|
|
2393
|
+
}
|
|
2394
|
+
// Registration is in-memory, so between Host restart and execution recovery
|
|
2395
|
+
// this root looks inactive while it is still running. `already_terminal` is
|
|
2396
|
+
// committed as an immutable fact, so only a durably terminal snapshot may
|
|
2397
|
+
// claim it; anything else is still resolving.
|
|
2398
|
+
return isHostedExecutionTerminal(terminal)
|
|
2399
|
+
? { outcome: 'already_terminal', targetTurnId: identity.turnId }
|
|
2400
|
+
: { outcome: 'recovering', targetTurnId: identity.turnId };
|
|
2401
|
+
}
|
|
2402
|
+
/**
|
|
2403
|
+
* Route correction retiring the root it is replacing. It carries its own
|
|
2404
|
+
* cancellation claim, but it is not a direct stop: recording direct-stop
|
|
2405
|
+
* provenance here would let replay mistake a correction for one, so the
|
|
2406
|
+
* retirement keeps the neutral Stop source ordinary supersession has always
|
|
2407
|
+
* used.
|
|
2408
|
+
*/
|
|
2409
|
+
export async function stopReplacedWorkHubRoot(coordinator, identity) {
|
|
2410
|
+
if (!isActiveWorkHubRoot(coordinator, identity)) {
|
|
2411
|
+
return { outcome: 'already_terminal', targetTurnId: identity.turnId };
|
|
2412
|
+
}
|
|
2413
|
+
await coordinator.stopRoot(identity);
|
|
2414
|
+
return { outcome: 'stop_delivered', targetTurnId: identity.turnId };
|
|
2415
|
+
}
|
|
2416
|
+
function isActiveWorkHubRoot(coordinator, identity) {
|
|
2417
|
+
const rootState = coordinator.readRootState(identity.sessionId);
|
|
2418
|
+
return (rootState.kind === 'active' &&
|
|
2419
|
+
rootState.turnId === identity.turnId &&
|
|
2420
|
+
rootState.runId === identity.runId);
|
|
2421
|
+
}
|
|
1537
2422
|
function sessionExecutionConnectionRef(header) {
|
|
1538
2423
|
return header.llmConnectionId === undefined
|
|
1539
2424
|
? { kind: 'catalog_slug', connectionSlug: header.llmConnectionSlug }
|
|
@@ -1574,16 +2459,6 @@ function adaptWorkspaceFilesystemWorker(worker) {
|
|
|
1574
2459
|
},
|
|
1575
2460
|
};
|
|
1576
2461
|
}
|
|
1577
|
-
function subagentWritebackArtifactId(sessionId, turnId) {
|
|
1578
|
-
const digest = createHash('sha256')
|
|
1579
|
-
.update('maka-subagent-writeback-v1\0')
|
|
1580
|
-
.update(sessionId)
|
|
1581
|
-
.update('\0')
|
|
1582
|
-
.update(turnId)
|
|
1583
|
-
.digest('hex')
|
|
1584
|
-
.slice(0, 32);
|
|
1585
|
-
return `subagent_writeback_${digest}`;
|
|
1586
|
-
}
|
|
1587
2462
|
function requireContinuity(continuity) {
|
|
1588
2463
|
if (!continuity)
|
|
1589
2464
|
throw new Error('Runtime Host continuity coordinator is not composed');
|
|
@@ -1634,6 +2509,11 @@ function requireSessionManager(manager) {
|
|
|
1634
2509
|
throw new Error('Runtime Host SessionManager is not composed');
|
|
1635
2510
|
return manager;
|
|
1636
2511
|
}
|
|
2512
|
+
function requireTranscriptReader(reader) {
|
|
2513
|
+
if (!reader)
|
|
2514
|
+
throw new Error('Runtime Host transcript reader is not composed');
|
|
2515
|
+
return reader;
|
|
2516
|
+
}
|
|
1637
2517
|
function requireGraphCoordinator(coordinator) {
|
|
1638
2518
|
if (!coordinator)
|
|
1639
2519
|
throw new Error('Runtime Host Agent Graph coordinator is not composed');
|
|
@@ -1655,7 +2535,29 @@ function requireGoal(coordinator) {
|
|
|
1655
2535
|
throw new Error('Runtime Host Goal coordinator is not composed');
|
|
1656
2536
|
return coordinator;
|
|
1657
2537
|
}
|
|
1658
|
-
|
|
2538
|
+
function pluginAttachmentArtifactKind(mimeType, name) {
|
|
2539
|
+
const kind = attachmentKindFromMimeType(mimeType, name);
|
|
2540
|
+
return kind === 'image' || kind === 'pdf' ? kind : 'file';
|
|
2541
|
+
}
|
|
2542
|
+
function pluginAttachmentRef(record) {
|
|
2543
|
+
const mimeType = record.mimeType ?? 'application/octet-stream';
|
|
2544
|
+
return {
|
|
2545
|
+
kind: attachmentKindFromMimeType(mimeType, record.name),
|
|
2546
|
+
name: record.name,
|
|
2547
|
+
mimeType,
|
|
2548
|
+
bytes: record.sizeBytes,
|
|
2549
|
+
ref: {
|
|
2550
|
+
kind: 'session_file',
|
|
2551
|
+
sessionId: record.sessionId,
|
|
2552
|
+
relativePath: record.relativePath,
|
|
2553
|
+
},
|
|
2554
|
+
};
|
|
2555
|
+
}
|
|
2556
|
+
/** Every run this Session has opened, named by the event spine that defines it. */
|
|
2557
|
+
async function sessionRunIds(runtimeEventStore, sessionId) {
|
|
2558
|
+
return (await runtimeEventStore.listSessionInvocations(sessionId)).map((invocation) => invocation.runId);
|
|
2559
|
+
}
|
|
2560
|
+
async function hasLiveLinkedDescendantState(manager, runtimeEventStore, rootSessionId, hasLiveSessionState) {
|
|
1659
2561
|
const pending = [rootSessionId];
|
|
1660
2562
|
const seen = new Set(pending);
|
|
1661
2563
|
while (pending.length > 0) {
|
|
@@ -1667,16 +2569,14 @@ async function hasLiveLinkedDescendantState(manager, runStore, rootSessionId, ha
|
|
|
1667
2569
|
seen.add(child.id);
|
|
1668
2570
|
pending.push(child.id);
|
|
1669
2571
|
const [runs, liveState] = await Promise.all([
|
|
1670
|
-
|
|
2572
|
+
runtimeEventStore.listSessionInvocations(child.id),
|
|
1671
2573
|
hasLiveSessionState(child.id),
|
|
1672
2574
|
]);
|
|
1673
2575
|
if (liveState)
|
|
1674
2576
|
return true;
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
run.status === 'waiting_for_user')) {
|
|
2577
|
+
// A run whose events never closed it is still live.
|
|
2578
|
+
if (runs.some((run) => runtimeInvocationOutcome(run) === undefined))
|
|
1678
2579
|
return true;
|
|
1679
|
-
}
|
|
1680
2580
|
}
|
|
1681
2581
|
}
|
|
1682
2582
|
return false;
|