maka-agent 0.2.0-dev.27.20260910 → 0.2.0-dev.29.20260912
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 +160 -3
- package/THIRD_PARTY_NOTICES.txt +14 -14
- package/dist/cli-core.js +7 -0
- package/dist/onboarding-catalog.js +1 -0
- package/dist/pi-tui-pickers.js +183 -21
- package/dist/pi-tui-runner.js +150 -18
- package/dist/runtime-host-onboarding.js +345 -5
- package/dist/runtime-host-run-command.js +15 -7
- package/dist/runtime-host-session-driver.js +18 -0
- package/dist/runtime-host-tui-command.js +21 -5
- package/dist/runtime-host-tui-context.js +19 -5
- package/dist/session-import-command.js +69 -0
- package/dist/tui-copy-catalog.js +93 -9
- 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 +66 -0
- package/node_modules/@ai-sdk/anthropic/dist/index.js +375 -197
- package/node_modules/@ai-sdk/anthropic/dist/internal/index.js +181 -74
- package/node_modules/@ai-sdk/anthropic/docs/05-anthropic.mdx +123 -43
- package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/CHANGELOG.md +32 -0
- package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/package.json +1 -1
- package/node_modules/@ai-sdk/anthropic/package.json +3 -3
- package/node_modules/@ai-sdk/cohere/CHANGELOG.md +53 -0
- package/node_modules/@ai-sdk/cohere/dist/index.js +1 -1
- 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 +3 -3
- package/node_modules/@ai-sdk/google/CHANGELOG.md +92 -0
- package/node_modules/@ai-sdk/google/dist/index.js +941 -420
- package/node_modules/@ai-sdk/google/dist/internal/index.js +394 -103
- package/node_modules/@ai-sdk/google/docs/15-google.mdx +195 -85
- 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 +3 -3
- package/node_modules/@ai-sdk/open-responses/CHANGELOG.md +65 -0
- package/node_modules/@ai-sdk/open-responses/dist/index.js +51 -13
- package/node_modules/@ai-sdk/open-responses/docs/06-open-responses.mdx +7 -0
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/open-responses/package.json +3 -3
- package/node_modules/@ai-sdk/openai/CHANGELOG.md +118 -0
- package/node_modules/@ai-sdk/openai/dist/index.js +1080 -316
- package/node_modules/@ai-sdk/openai/dist/internal/index.js +549 -157
- package/node_modules/@ai-sdk/openai/docs/03-openai.mdx +202 -66
- 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 +3 -3
- package/node_modules/@ai-sdk/openai-compatible/CHANGELOG.md +60 -0
- package/node_modules/@ai-sdk/openai-compatible/dist/index.js +8 -2
- package/node_modules/@ai-sdk/openai-compatible/docs/index.mdx +0 -1
- 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/LICENSE +13 -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 +3 -3
- package/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +48 -0
- package/node_modules/@ai-sdk/provider-utils/dist/index.js +485 -181
- 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 +3 -3
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +9 -4
- package/node_modules/@maka/core/dist/chat-model-choice.js +1 -2
- package/node_modules/@maka/core/dist/collaboration.js +12 -0
- package/node_modules/@maka/core/dist/diagnostic-log.js +18 -7
- package/node_modules/@maka/core/dist/llm-connections.js +1 -1
- package/node_modules/@maka/core/dist/model-catalog.js +26 -103
- package/node_modules/@maka/core/dist/model-facts.js +0 -74
- package/node_modules/@maka/core/dist/model-thinking.js +70 -38
- package/node_modules/@maka/core/dist/permission-profile.js +17 -0
- package/node_modules/@maka/core/dist/provider-registry.js +1 -3
- package/node_modules/@maka/core/dist/runtime-policy/connection-catalog-codec.js +68 -46
- package/node_modules/@maka/core/dist/runtime-policy/model-catalog-entry-codec.js +21 -12
- package/node_modules/@maka/core/dist/runtime-policy/policy-codec.js +43 -4
- package/node_modules/@maka/core/dist/runtime-policy.js +3 -2
- package/node_modules/@maka/core/dist/scheduled-task.js +8 -2
- package/node_modules/@maka/core/dist/settings.js +12 -0
- package/node_modules/@maka/core/dist/text-sanitize.js +8 -2
- package/node_modules/@maka/runtime/dist/agent-run.js +8 -1
- package/node_modules/@maka/runtime/dist/agent-swarm-status-tool.js +0 -1
- package/node_modules/@maka/runtime/dist/ai-sdk-backend.js +1 -0
- package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +50 -58
- package/node_modules/@maka/runtime/dist/archive-read-tool.js +3 -1
- package/node_modules/@maka/runtime/dist/ask-user-question-tool.js +0 -1
- package/node_modules/@maka/runtime/dist/bots/bot-test.js +2 -1
- package/node_modules/@maka/runtime/dist/bots/dingtalk-bridge.js +86 -19
- package/node_modules/@maka/runtime/dist/bots/feishu-bridge.js +24 -20
- package/node_modules/@maka/runtime/dist/bots/slack-bridge.js +5 -3
- package/node_modules/@maka/runtime/dist/bots/wechat-bridge.js +87 -29
- package/node_modules/@maka/runtime/dist/bots/wecom-bridge.js +40 -36
- package/node_modules/@maka/runtime/dist/code-mode.js +7 -4
- package/node_modules/@maka/runtime/dist/computer-use-tools.js +4 -1
- package/node_modules/@maka/runtime/dist/context-budget-policy.js +6 -24
- package/node_modules/@maka/runtime/dist/deep-research-tools.js +11 -5
- package/node_modules/@maka/runtime/dist/edit-replace.js +2 -2
- package/node_modules/@maka/runtime/dist/filesystem-worker/operations.js +5 -6
- package/node_modules/@maka/runtime/dist/memory-extraction-evidence.js +7 -1
- package/node_modules/@maka/runtime/dist/memory-extraction.js +12 -7
- package/node_modules/@maka/runtime/dist/model-adapter.js +13 -3
- package/node_modules/@maka/runtime/dist/model-factory.js +1 -1
- package/node_modules/@maka/runtime/dist/openai-responses-websocket.js +2 -5
- package/node_modules/@maka/runtime/dist/plan-tools.js +0 -3
- package/node_modules/@maka/runtime/dist/plugin-composition-loader.js +11 -2
- package/node_modules/@maka/runtime/dist/request-customization-fetch.js +14 -7
- package/node_modules/@maka/runtime/dist/runtime-kernel.js +70 -14
- package/node_modules/@maka/runtime/dist/session-export.js +1 -0
- package/node_modules/@maka/runtime/dist/session-import.js +100 -0
- package/node_modules/@maka/runtime/dist/session-manager.js +143 -24
- package/node_modules/@maka/runtime/dist/session-trace-projection.js +22 -0
- package/node_modules/@maka/runtime/dist/shell-run-manager.js +9 -6
- package/node_modules/@maka/runtime/dist/shell-run-tool-result.js +13 -6
- package/node_modules/@maka/runtime/dist/stream-graph-coordinator.js +43 -10
- package/node_modules/@maka/runtime/dist/stream-graph-handoff.js +6 -1
- package/node_modules/@maka/runtime/dist/stream-graph-supervisor-tools.js +0 -3
- package/node_modules/@maka/runtime/dist/subagent-tools.js +0 -3
- package/node_modules/@maka/runtime/dist/subscription-model-fetch.js +1 -4
- 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/text-line-window.js +49 -0
- package/node_modules/@maka/runtime/dist/tool-availability.js +0 -1
- package/node_modules/@maka/runtime/dist/tool-output.js +35 -12
- package/node_modules/@maka/runtime/dist/tool-runtime.js +27 -3
- 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 +82 -33
- package/node_modules/@maka/runtime/dist/workspace-executor.js +2 -6
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/LICENSE +13 -0
- package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/run-code-mode.js +2 -0
- package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/package.json +3 -3
- package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/gateway/CHANGELOG.md +101 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/LICENSE +13 -0
- package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/gateway/dist/index.js +309 -244
- package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/gateway/docs/00-ai-gateway.mdx +29 -16
- package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/gateway/package.json +3 -3
- 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/{ai → @maka/runtime/node_modules/ai}/CHANGELOG.md +152 -0
- package/node_modules/@maka/runtime/node_modules/ai/LICENSE +13 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/dist/index.js +2505 -1548
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/dist/internal/index.js +129 -107
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/02-providers-and-models.mdx +8 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/04-loop-control.mdx +5 -3
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-policy-tool-approvals.mdx +2 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-tool-approvals.mdx +13 -7
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/07-workflow-agent.mdx +94 -10
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/10-generating-structured-data.mdx +15 -3
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +2 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/16-mcp-tools.mdx +64 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/35-image-generation.mdx +11 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-transcription.mdx +36 -35
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/37-speech.mdx +0 -17
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/39-file-uploads.mdx +25 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/42-batch.mdx +372 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/50-error-handling.mdx +83 -6
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/60-telemetry.mdx +28 -5
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/index.mdx +5 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +40 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +47 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +23 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/20-streaming-data.mdx +11 -6
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/50-stream-protocol.mdx +6 -2
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/04-caching.mdx +7 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/11-secure-url-fetching.mdx +7 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +14 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +39 -5
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/05-embed.mdx +31 -5
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +32 -6
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +19 -5
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +2 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +37 -4
- 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/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/28-output.mdx +27 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +63 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +1 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/index.mdx +25 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +1 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +4 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +6 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +101 -34
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +6 -1
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +7 -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/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/index.mdx +1 -0
- package/node_modules/{ai → @maka/runtime/node_modules/ai}/package.json +12 -12
- package/node_modules/@maka/runtime/package.json +11 -10
- package/node_modules/@maka/runtime-host/dist/adapter/session-projector.js +17 -36
- package/node_modules/@maka/runtime-host/dist/client/catalog-reader.js +5 -7
- package/node_modules/@maka/runtime-host/dist/client/host-handoff-copy.js +6 -6
- package/node_modules/@maka/runtime-host/dist/peer-mesh/node.js +7 -4
- package/node_modules/@maka/runtime-host/dist/protocol/artifact.js +2 -2
- package/node_modules/@maka/runtime-host/dist/protocol/external-agent-setup.js +149 -0
- package/node_modules/@maka/runtime-host/dist/protocol/index.js +14 -1
- package/node_modules/@maka/runtime-host/dist/protocol/oauth.js +23 -4
- package/node_modules/@maka/runtime-host/dist/protocol/operations.js +4 -1
- package/node_modules/@maka/runtime-host/dist/protocol/runtime-policy.js +16 -20
- package/node_modules/@maka/runtime-host/dist/protocol/session-bundle.js +100 -0
- package/node_modules/@maka/runtime-host/dist/protocol/session-transcript.js +3 -2
- package/node_modules/@maka/runtime-host/dist/protocol/skill-catalog.js +2 -1
- 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/artifact-coordinator.js +12 -10
- package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +85 -7
- package/node_modules/@maka/runtime-host/dist/server/execution-model-authority.js +2 -2
- package/node_modules/@maka/runtime-host/dist/server/execution-model-composition.js +4 -7
- 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 +7 -7
- package/node_modules/@maka/runtime-host/dist/server/goal-coordinator.js +6 -1
- package/node_modules/@maka/runtime-host/dist/server/interactive-run-composer.js +35 -4
- package/node_modules/@maka/runtime-host/dist/server/json-array-page-budget.js +48 -0
- package/node_modules/@maka/runtime-host/dist/server/memory-projection.js +14 -15
- package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +24 -8
- package/node_modules/@maka/runtime-host/dist/server/oauth-coordinator.js +13 -1
- package/node_modules/@maka/runtime-host/dist/server/plan-coordinator.js +11 -5
- package/node_modules/@maka/runtime-host/dist/server/plugin-platform-coordinator.js +8 -6
- 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 +17 -8
- package/node_modules/@maka/runtime-host/dist/server/runtime-policy-coordinator.js +23 -25
- 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 +15 -11
- 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 +24 -12
- package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +20 -21
- package/node_modules/@maka/runtime-host/dist/server/session-revision-coordinator.js +1 -0
- package/node_modules/@maka/runtime-host/dist/server/session-transcript-pager.js +24 -2
- 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/usage-pricing-coordinator.js +16 -19
- package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-coordinator.js +1 -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 +9 -8
- package/node_modules/@maka/runtime-host/dist/transport/resumable-peer-stream.js +14 -9
- package/node_modules/@maka/runtime-host/package.json +1 -0
- package/node_modules/@maka/storage/dist/context-offload-snapshot.js +70 -5
- package/node_modules/@maka/storage/dist/context-value-mutation-gate.js +59 -0
- package/node_modules/@maka/storage/dist/model-facts-store.js +5 -28
- package/node_modules/@maka/storage/dist/project-catalog.js +6 -0
- package/node_modules/@maka/storage/dist/runtime-policy/connection-catalog-document.js +111 -38
- package/node_modules/@maka/storage/dist/runtime-policy/coordinator.js +46 -61
- package/node_modules/@maka/storage/dist/runtime-policy/oauth-login-receipt-document.js +25 -6
- package/node_modules/@maka/storage/dist/runtime-policy/onboarding-transaction.js +30 -14
- package/node_modules/@maka/storage/dist/runtime-policy/policy-document.js +10 -4
- package/node_modules/@maka/storage/dist/scheduled-task-store.js +8 -1
- package/node_modules/@maka/storage/dist/session-bundle-policy.js +680 -7
- package/node_modules/@maka/storage/dist/session-message-projection.js +8 -4
- package/node_modules/@maka/storage/dist/session-store.js +3 -0
- package/node_modules/@maka/storage/dist/sqlite-context-offload-store.js +18 -4
- package/node_modules/@maka/storage/dist/sqlite-session-metadata-store.js +3 -7
- package/node_modules/@maka/storage/dist/stable-storage.js +2 -1
- 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/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/zod/v4/core/memoizer.cjs +12 -16
- package/node_modules/zod/v4/core/memoizer.js +12 -16
- package/package.json +1 -1
- package/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +0 -45
- /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/open-responses/node_modules/@ai-sdk/provider}/LICENSE +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/04-skills.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/21-transport.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/16-tool-loop-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/31-convert-to-model-messages.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/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/04-ai-sdk-workflow/03-generate-video.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/04-ai-sdk-workflow/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-stream-provider-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/LICENSE
CHANGED
|
@@ -203,15 +203,32 @@
|
|
|
203
203
|
|
|
204
204
|
THIRD-PARTY COMPONENTS
|
|
205
205
|
|
|
206
|
+
Vercel Code Mode and run execution-budget patches
|
|
207
|
+
|
|
208
|
+
Source: https://www.npmjs.com/package/@ai-sdk/code-mode/v/1.0.56
|
|
209
|
+
https://www.npmjs.com/package/run/v/2.1.4
|
|
210
|
+
Repository: https://github.com/vercel/ai/tree/main/packages/code-mode
|
|
211
|
+
https://github.com/vercel-labs/run/tree/run%402.1.4/packages/run
|
|
212
|
+
Dependency patches: patches/@maka+runtime++@ai-sdk+code-mode+1.0.56.patch
|
|
213
|
+
patches/run+2.1.4.patch
|
|
214
|
+
Readable source changes: patches/run-2.1.4-source.diff
|
|
215
|
+
Copyright 2023 Vercel, Inc.
|
|
216
|
+
License: Apache-2.0
|
|
217
|
+
|
|
218
|
+
These patches modify the execution time policy and its SDK forwarding. The
|
|
219
|
+
Apache License, Version 2.0 above applies. The generated run Worker includes
|
|
220
|
+
embedded third-party code; its upstream notices and license texts are retained
|
|
221
|
+
in patches/run-2.1.4-notices.md.
|
|
222
|
+
|
|
206
223
|
Vercel AI SDK
|
|
207
224
|
|
|
208
225
|
Source: https://www.npmjs.com/package/@ai-sdk/provider-utils/v/5.0.11
|
|
209
226
|
https://www.npmjs.com/package/@ai-sdk/provider/v/4.0.3
|
|
210
|
-
Patched package: https://www.npmjs.com/package/@ai-sdk/provider-utils/v/5.0.
|
|
227
|
+
Patched package: https://www.npmjs.com/package/@ai-sdk/provider-utils/v/5.0.40
|
|
211
228
|
Repository: https://github.com/vercel/ai/tree/main/packages/provider-utils
|
|
212
229
|
https://github.com/vercel/ai/tree/main/packages/provider
|
|
213
230
|
Adapted declarations: @ai-sdk/provider-utils 5.0.11, @ai-sdk/provider 4.0.3
|
|
214
|
-
Dependency patch: patches/@ai-sdk+provider-utils+5.0.
|
|
231
|
+
Dependency patch: patches/@ai-sdk+provider-utils+5.0.40.patch
|
|
215
232
|
Copyright 2023 Vercel, Inc.
|
|
216
233
|
License: Apache-2.0
|
|
217
234
|
|
|
@@ -223,7 +240,7 @@ License, Version 2.0 above applies to the adapted material.
|
|
|
223
240
|
The pinned versions are the ones present when the adaptation was made. The
|
|
224
241
|
adapted declarations are unchanged through @ai-sdk/provider-utils 5.0.25 and
|
|
225
242
|
@ai-sdk/provider 4.0.7, the versions recorded by the code origin audit. Maka
|
|
226
|
-
also redistributes a patch against @ai-sdk/provider-utils 5.0.
|
|
243
|
+
also redistributes a patch against @ai-sdk/provider-utils 5.0.40; that patch
|
|
227
244
|
modifies Apache-2.0 source and is covered by the license reproduced above.
|
|
228
245
|
|
|
229
246
|
Astryx
|
|
@@ -261,6 +278,146 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
261
278
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
262
279
|
SOFTWARE.
|
|
263
280
|
|
|
281
|
+
xterm.js dependency patch
|
|
282
|
+
|
|
283
|
+
Source: https://www.npmjs.com/package/@xterm/xterm/v/6.0.0
|
|
284
|
+
Repository: https://github.com/xtermjs/xterm.js
|
|
285
|
+
Version: 6.0.0
|
|
286
|
+
Dependency patch: patches/@xterm+xterm+6.0.0.patch
|
|
287
|
+
License: MIT
|
|
288
|
+
|
|
289
|
+
Maka redistributes a patch to the TypeScript source and both shipped JavaScript
|
|
290
|
+
bundles that defers selection rendering while the terminal is hidden. The
|
|
291
|
+
following upstream license applies to that material:
|
|
292
|
+
|
|
293
|
+
Copyright (c) 2017-2019, The xterm.js authors (https://github.com/xtermjs/xterm.js)
|
|
294
|
+
Copyright (c) 2014-2016, SourceLair Private Company (https://www.sourcelair.com)
|
|
295
|
+
Copyright (c) 2012-2013, Christopher Jeffrey (https://github.com/chjj/)
|
|
296
|
+
|
|
297
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
298
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
299
|
+
in the Software without restriction, including without limitation the rights
|
|
300
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
301
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
302
|
+
furnished to do so, subject to the following conditions:
|
|
303
|
+
|
|
304
|
+
The above copyright notice and this permission notice shall be included in
|
|
305
|
+
all copies or substantial portions of the Software.
|
|
306
|
+
|
|
307
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
308
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
309
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
310
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
311
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
312
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
313
|
+
THE SOFTWARE.
|
|
314
|
+
|
|
315
|
+
Pi TUI dependency patch
|
|
316
|
+
|
|
317
|
+
Source: https://www.npmjs.com/package/@earendil-works/pi-tui/v/0.84.4
|
|
318
|
+
Repository: https://github.com/earendil-works/pi/tree/v0.84.4/packages/tui
|
|
319
|
+
Version: 0.84.4
|
|
320
|
+
Dependency patch: patches/@earendil-works+pi-tui+0.84.4.patch
|
|
321
|
+
Copyright (c) 2025 Mario Zechner
|
|
322
|
+
License: MIT
|
|
323
|
+
|
|
324
|
+
Maka redistributes a source patch that copies mutable editor undo state while
|
|
325
|
+
sharing immutable pasted strings. The following MIT License applies to that
|
|
326
|
+
material:
|
|
327
|
+
|
|
328
|
+
MIT License
|
|
329
|
+
|
|
330
|
+
Copyright (c) 2025 Mario Zechner
|
|
331
|
+
|
|
332
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
333
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
334
|
+
in the Software without restriction, including without limitation the rights
|
|
335
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
336
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
337
|
+
furnished to do so, subject to the following conditions:
|
|
338
|
+
|
|
339
|
+
The above copyright notice and this permission notice shall be included in all
|
|
340
|
+
copies or substantial portions of the Software.
|
|
341
|
+
|
|
342
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
343
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
344
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
345
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
346
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
347
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
348
|
+
SOFTWARE.
|
|
349
|
+
|
|
350
|
+
Zod dependency patch
|
|
351
|
+
|
|
352
|
+
Source: https://www.npmjs.com/package/zod/v/4.5.4
|
|
353
|
+
Repository: https://github.com/colinhacks/zod
|
|
354
|
+
Version: 4.5.4
|
|
355
|
+
Dependency patch: patches/zod+4.5.4.patch
|
|
356
|
+
Copyright (c) 2025 Colin McDonnell
|
|
357
|
+
License: MIT
|
|
358
|
+
|
|
359
|
+
Maka redistributes a source patch that releases recursive parse state after
|
|
360
|
+
completion or failure. The following MIT License applies to that material:
|
|
361
|
+
|
|
362
|
+
MIT License
|
|
363
|
+
|
|
364
|
+
Copyright (c) 2025 Colin McDonnell
|
|
365
|
+
|
|
366
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
367
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
368
|
+
in the Software without restriction, including without limitation the rights
|
|
369
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
370
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
371
|
+
furnished to do so, subject to the following conditions:
|
|
372
|
+
|
|
373
|
+
The above copyright notice and this permission notice shall be included in all
|
|
374
|
+
copies or substantial portions of the Software.
|
|
375
|
+
|
|
376
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
377
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
378
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
379
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
380
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
381
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
382
|
+
SOFTWARE.
|
|
383
|
+
|
|
384
|
+
Model Context Protocol client dependency patch
|
|
385
|
+
|
|
386
|
+
Source: https://www.npmjs.com/package/@modelcontextprotocol/client/v/2.0.0
|
|
387
|
+
Repository: https://github.com/modelcontextprotocol/typescript-sdk
|
|
388
|
+
Version: 2.0.0
|
|
389
|
+
Dependency patch: patches/@modelcontextprotocol+client+2.0.0.patch
|
|
390
|
+
Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
|
|
391
|
+
Declared package license: MIT
|
|
392
|
+
|
|
393
|
+
Maka redistributes a source patch that releases settled request observers under
|
|
394
|
+
transport backpressure. The upstream package's LICENSE describes a transition
|
|
395
|
+
from MIT to Apache-2.0: contributions with relicensing consent use Apache-2.0,
|
|
396
|
+
while contributions without that consent retain their original MIT license.
|
|
397
|
+
The Apache License, Version 2.0 is reproduced above. The upstream MIT notice is:
|
|
398
|
+
|
|
399
|
+
MIT License
|
|
400
|
+
|
|
401
|
+
Copyright (c) 2024-2025 Model Context Protocol a Series of LF Projects, LLC.
|
|
402
|
+
|
|
403
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
404
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
405
|
+
in the Software without restriction, including without limitation the rights
|
|
406
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
407
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
408
|
+
furnished to do so, subject to the following conditions:
|
|
409
|
+
|
|
410
|
+
The above copyright notice and this permission notice shall be included in all
|
|
411
|
+
copies or substantial portions of the Software.
|
|
412
|
+
|
|
413
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
414
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
415
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
416
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
417
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
418
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
419
|
+
SOFTWARE.
|
|
420
|
+
|
|
264
421
|
Sigstore dependency patch
|
|
265
422
|
|
|
266
423
|
Source: https://www.npmjs.com/package/@sigstore/core/v/4.0.1
|
package/THIRD_PARTY_NOTICES.txt
CHANGED
|
@@ -208,7 +208,7 @@ Apache License
|
|
|
208
208
|
|
|
209
209
|
================================================================================
|
|
210
210
|
|
|
211
|
-
Package: @ai-sdk/anthropic@4.0.
|
|
211
|
+
Package: @ai-sdk/anthropic@4.0.53
|
|
212
212
|
Declared license: Apache-2.0
|
|
213
213
|
Selected license: Apache-2.0
|
|
214
214
|
Repository: https://github.com/vercel/ai#packages/anthropic
|
|
@@ -230,7 +230,7 @@ limitations under the License.
|
|
|
230
230
|
|
|
231
231
|
================================================================================
|
|
232
232
|
|
|
233
|
-
Package: @ai-sdk/code-mode@1.0.
|
|
233
|
+
Package: @ai-sdk/code-mode@1.0.56
|
|
234
234
|
Declared license: Apache-2.0
|
|
235
235
|
Selected license: Apache-2.0
|
|
236
236
|
Repository: https://github.com/vercel/ai#packages/code-mode
|
|
@@ -252,7 +252,7 @@ limitations under the License.
|
|
|
252
252
|
|
|
253
253
|
================================================================================
|
|
254
254
|
|
|
255
|
-
Package: @ai-sdk/cohere@4.0.
|
|
255
|
+
Package: @ai-sdk/cohere@4.0.41
|
|
256
256
|
Declared license: Apache-2.0
|
|
257
257
|
Selected license: Apache-2.0
|
|
258
258
|
Repository: https://github.com/vercel/ai#packages/cohere
|
|
@@ -274,7 +274,7 @@ limitations under the License.
|
|
|
274
274
|
|
|
275
275
|
================================================================================
|
|
276
276
|
|
|
277
|
-
Package: @ai-sdk/gateway@4.0.
|
|
277
|
+
Package: @ai-sdk/gateway@4.0.80
|
|
278
278
|
Declared license: Apache-2.0
|
|
279
279
|
Selected license: Apache-2.0
|
|
280
280
|
Repository: https://github.com/vercel/ai#packages/gateway
|
|
@@ -296,7 +296,7 @@ limitations under the License.
|
|
|
296
296
|
|
|
297
297
|
================================================================================
|
|
298
298
|
|
|
299
|
-
Package: @ai-sdk/google@4.0.
|
|
299
|
+
Package: @ai-sdk/google@4.0.69
|
|
300
300
|
Declared license: Apache-2.0
|
|
301
301
|
Selected license: Apache-2.0
|
|
302
302
|
Repository: https://github.com/vercel/ai#packages/google
|
|
@@ -318,7 +318,7 @@ limitations under the License.
|
|
|
318
318
|
|
|
319
319
|
================================================================================
|
|
320
320
|
|
|
321
|
-
Package: @ai-sdk/open-responses@2.0.
|
|
321
|
+
Package: @ai-sdk/open-responses@2.0.44
|
|
322
322
|
Declared license: Apache-2.0
|
|
323
323
|
Selected license: Apache-2.0
|
|
324
324
|
Repository: https://github.com/vercel/ai#packages/open-responses
|
|
@@ -340,7 +340,7 @@ limitations under the License.
|
|
|
340
340
|
|
|
341
341
|
================================================================================
|
|
342
342
|
|
|
343
|
-
Package: @ai-sdk/openai@4.0.
|
|
343
|
+
Package: @ai-sdk/openai@4.0.66
|
|
344
344
|
Declared license: Apache-2.0
|
|
345
345
|
Selected license: Apache-2.0
|
|
346
346
|
Repository: https://github.com/vercel/ai#packages/openai
|
|
@@ -362,7 +362,7 @@ limitations under the License.
|
|
|
362
362
|
|
|
363
363
|
================================================================================
|
|
364
364
|
|
|
365
|
-
Package: @ai-sdk/openai-compatible@3.0.
|
|
365
|
+
Package: @ai-sdk/openai-compatible@3.0.48
|
|
366
366
|
Declared license: Apache-2.0
|
|
367
367
|
Selected license: Apache-2.0
|
|
368
368
|
Repository: https://github.com/vercel/ai#packages/openai-compatible
|
|
@@ -384,7 +384,7 @@ limitations under the License.
|
|
|
384
384
|
|
|
385
385
|
================================================================================
|
|
386
386
|
|
|
387
|
-
Package: @ai-sdk/provider@4.0.
|
|
387
|
+
Package: @ai-sdk/provider@4.0.14
|
|
388
388
|
Declared license: Apache-2.0
|
|
389
389
|
Selected license: Apache-2.0
|
|
390
390
|
Repository: https://github.com/vercel/ai#packages/provider
|
|
@@ -406,7 +406,7 @@ limitations under the License.
|
|
|
406
406
|
|
|
407
407
|
================================================================================
|
|
408
408
|
|
|
409
|
-
Package: @ai-sdk/provider-utils@5.0.
|
|
409
|
+
Package: @ai-sdk/provider-utils@5.0.40
|
|
410
410
|
Declared license: Apache-2.0
|
|
411
411
|
Selected license: Apache-2.0
|
|
412
412
|
Repository: https://github.com/vercel/ai#packages/provider-utils
|
|
@@ -2186,7 +2186,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
2186
2186
|
|
|
2187
2187
|
================================================================================
|
|
2188
2188
|
|
|
2189
|
-
Package: ai@7.0.
|
|
2189
|
+
Package: ai@7.0.99
|
|
2190
2190
|
Declared license: Apache-2.0
|
|
2191
2191
|
Selected license: Apache-2.0
|
|
2192
2192
|
Repository: https://github.com/vercel/ai#packages/ai
|
|
@@ -6643,7 +6643,7 @@ Felix Geisendörfer (felix@debuggable.com)
|
|
|
6643
6643
|
|
|
6644
6644
|
================================================================================
|
|
6645
6645
|
|
|
6646
|
-
Package: run@2.
|
|
6646
|
+
Package: run@2.1.4
|
|
6647
6647
|
Declared license: Apache-2.0
|
|
6648
6648
|
Selected license: Apache-2.0
|
|
6649
6649
|
Repository: git+https://github.com/vercel-labs/run.git#packages/run
|
|
@@ -7573,7 +7573,7 @@ SOFTWARE.
|
|
|
7573
7573
|
================================================================================
|
|
7574
7574
|
|
|
7575
7575
|
Embedded component: quickjs-emscripten (embedded runtime)
|
|
7576
|
-
Embedded by: @ai-sdk/code-mode@1.0.
|
|
7576
|
+
Embedded by: @ai-sdk/code-mode@1.0.56
|
|
7577
7577
|
Selected license: MIT
|
|
7578
7578
|
Repository: https://github.com/justjake/quickjs-emscripten
|
|
7579
7579
|
|
|
@@ -7603,7 +7603,7 @@ SOFTWARE.
|
|
|
7603
7603
|
================================================================================
|
|
7604
7604
|
|
|
7605
7605
|
Embedded component: QuickJS JavaScript engine (embedded runtime)
|
|
7606
|
-
Embedded by: @ai-sdk/code-mode@1.0.
|
|
7606
|
+
Embedded by: @ai-sdk/code-mode@1.0.56
|
|
7607
7607
|
Selected license: MIT
|
|
7608
7608
|
Repository: https://github.com/bellard/quickjs
|
|
7609
7609
|
|
package/dist/cli-core.js
CHANGED
|
@@ -54,6 +54,8 @@ export function parseMakaCliArgs(argv, version, cliCommand = RELEASE_MAKA_CLI_LA
|
|
|
54
54
|
return { kind: 'activate', args: argv.slice(1) };
|
|
55
55
|
if (first === 'session-export')
|
|
56
56
|
return { kind: 'session-export', args: argv.slice(1) };
|
|
57
|
+
if (first === 'session-import')
|
|
58
|
+
return { kind: 'session-import', args: argv.slice(1) };
|
|
57
59
|
if (first === 'eval')
|
|
58
60
|
return { kind: 'eval', args: argv.slice(1) };
|
|
59
61
|
if (first === 'update')
|
|
@@ -100,6 +102,7 @@ function helpText(cliCommand) {
|
|
|
100
102
|
` ${cliCommand} run ... Run one non-interactive model turn`,
|
|
101
103
|
` ${cliCommand} activate ... Run one Cloud Session activation and emit JSONL`,
|
|
102
104
|
` ${cliCommand} session-export --workspace-root <dir> --session <id> --out <file.maka-session>`,
|
|
105
|
+
` ${cliCommand} session-import --workspace-root <dir> --bundle <file.maka-session>`,
|
|
103
106
|
` ${cliCommand} -p ... Alias for ${cliCommand} run`,
|
|
104
107
|
` ${cliCommand} eval ... Run one declarative multi-arm experiment`,
|
|
105
108
|
` ${cliCommand} update --target <latest|next|version> Update this npm-global CLI and its local Runtime Host`,
|
|
@@ -250,6 +253,10 @@ export async function runMakaCli(argv = process.argv.slice(2), options = RELEASE
|
|
|
250
253
|
const { runMakaSessionExportCli } = await import('./session-export-command.js');
|
|
251
254
|
return runMakaSessionExportCli(command.args);
|
|
252
255
|
}
|
|
256
|
+
case 'session-import': {
|
|
257
|
+
const { runMakaSessionImportCli } = await import('./session-import-command.js');
|
|
258
|
+
return runMakaSessionImportCli(command.args);
|
|
259
|
+
}
|
|
253
260
|
case 'eval': {
|
|
254
261
|
const { configureInstalledEvalBundle } = await import('./eval-bundle-path.js');
|
|
255
262
|
configureInstalledEvalBundle();
|
package/dist/pi-tui-pickers.js
CHANGED
|
@@ -35,6 +35,9 @@ export function onboardingFailureMessage(failure, locale) {
|
|
|
35
35
|
return copy.onboardingRequestFailed;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
export function onboardingOAuthFailureMessage(reason, locale) {
|
|
39
|
+
return TUI_PICKER_COPY[locale].oauthFailures[reason];
|
|
40
|
+
}
|
|
38
41
|
export class MakaAutocompleteProvider {
|
|
39
42
|
fileProvider;
|
|
40
43
|
slashCommands;
|
|
@@ -881,13 +884,10 @@ function isCreateEntry(entry) {
|
|
|
881
884
|
}
|
|
882
885
|
const ONBOARDING_MODELS_MAX_VISIBLE = 10;
|
|
883
886
|
/**
|
|
884
|
-
* One
|
|
885
|
-
*
|
|
886
|
-
*
|
|
887
|
-
*
|
|
888
|
-
* instead of the top entry flow (#1098 UX). `Esc` always moves back exactly one
|
|
889
|
-
* level (models → key → provider → close); late async results are ignored after
|
|
890
|
-
* back/close/retry because the runner bumps its attempt id on every transition.
|
|
887
|
+
* One overlay owns the provider, credentials or OAuth, models, and success
|
|
888
|
+
* phases, so onboarding never pushes progress or failures into the transcript.
|
|
889
|
+
* Late async results are ignored after back, close, or retry because the runner
|
|
890
|
+
* bumps its attempt id on every transition.
|
|
891
891
|
*/
|
|
892
892
|
export class OnboardingWizard {
|
|
893
893
|
tui;
|
|
@@ -915,6 +915,8 @@ export class OnboardingWizard {
|
|
|
915
915
|
modelScroll = 0;
|
|
916
916
|
successCount = 0;
|
|
917
917
|
successWarning;
|
|
918
|
+
oauthPresentation;
|
|
919
|
+
oauthStatus = { kind: 'starting' };
|
|
918
920
|
copy;
|
|
919
921
|
constructor(tui, input) {
|
|
920
922
|
this.tui = tui;
|
|
@@ -964,11 +966,11 @@ export class OnboardingWizard {
|
|
|
964
966
|
const provider = this.filtered.find((candidate) => onboardingProviderKey(candidate) === item.value);
|
|
965
967
|
if (!provider)
|
|
966
968
|
return;
|
|
967
|
-
this.
|
|
969
|
+
this.enterProvider(provider);
|
|
968
970
|
};
|
|
969
971
|
return list;
|
|
970
972
|
}
|
|
971
|
-
|
|
973
|
+
enterProvider(provider) {
|
|
972
974
|
this.picked = provider;
|
|
973
975
|
// A create target stops at the identity step first: name and slug come
|
|
974
976
|
// prefilled with the Host-derived defaults, and accepting them verbatim
|
|
@@ -976,7 +978,13 @@ export class OnboardingWizard {
|
|
|
976
978
|
// A relay has no registry endpoint, so the wizard must still collect one
|
|
977
979
|
// before the key — the deferred phase-2 step from #1254 (#3405).
|
|
978
980
|
const create = isCreateEntry(provider);
|
|
979
|
-
this.phase = create
|
|
981
|
+
this.phase = create
|
|
982
|
+
? 'identity'
|
|
983
|
+
: provider.setupMethod === 'oauth'
|
|
984
|
+
? 'oauth'
|
|
985
|
+
: provider.requiresBaseUrl
|
|
986
|
+
? 'baseUrl'
|
|
987
|
+
: 'key';
|
|
980
988
|
if (create) {
|
|
981
989
|
this.identityFocus = 'name';
|
|
982
990
|
this.nameEditor.setText(provider.label);
|
|
@@ -997,6 +1005,8 @@ export class OnboardingWizard {
|
|
|
997
1005
|
this.modelScroll = 0;
|
|
998
1006
|
this.modelsSearchEditor.setText('');
|
|
999
1007
|
this.input.onPickProvider(provider);
|
|
1008
|
+
if (!create && provider.setupMethod === 'oauth')
|
|
1009
|
+
this.startOAuth();
|
|
1000
1010
|
}
|
|
1001
1011
|
/**
|
|
1002
1012
|
* Slug submit on the identity step. The name field needs no validation of
|
|
@@ -1031,7 +1041,10 @@ export class OnboardingWizard {
|
|
|
1031
1041
|
name: name.length > 0 && name !== defaultName ? name : null,
|
|
1032
1042
|
});
|
|
1033
1043
|
this.status = { kind: 'prompt' };
|
|
1034
|
-
this.phase =
|
|
1044
|
+
this.phase =
|
|
1045
|
+
picked.setupMethod === 'oauth' ? 'oauth' : picked.requiresBaseUrl ? 'baseUrl' : 'key';
|
|
1046
|
+
if (picked.setupMethod === 'oauth')
|
|
1047
|
+
this.startOAuth();
|
|
1035
1048
|
}
|
|
1036
1049
|
submitBaseUrl(value) {
|
|
1037
1050
|
if (!this.picked || this.phase !== 'baseUrl')
|
|
@@ -1084,6 +1097,10 @@ export class OnboardingWizard {
|
|
|
1084
1097
|
this.filtered = next;
|
|
1085
1098
|
this.list = this.buildList();
|
|
1086
1099
|
}
|
|
1100
|
+
setProviders(providers) {
|
|
1101
|
+
this.input.providers = providers;
|
|
1102
|
+
this.applyQuery(this.searchEditor.getText());
|
|
1103
|
+
}
|
|
1087
1104
|
applyModelQuery(text) {
|
|
1088
1105
|
const query = text.trim().toLowerCase();
|
|
1089
1106
|
this.filteredModels = query
|
|
@@ -1119,12 +1136,63 @@ export class OnboardingWizard {
|
|
|
1119
1136
|
this.keyEditor.disableSubmit = false;
|
|
1120
1137
|
this.keyEditor.setText('');
|
|
1121
1138
|
}
|
|
1139
|
+
startOAuth() {
|
|
1140
|
+
this.oauthPresentation = undefined;
|
|
1141
|
+
this.oauthStatus = { kind: 'starting' };
|
|
1142
|
+
this.input.onStartOAuth();
|
|
1143
|
+
}
|
|
1144
|
+
setOAuthPresentation(presentation) {
|
|
1145
|
+
if (this.phase !== 'oauth' ||
|
|
1146
|
+
(this.oauthStatus.kind !== 'starting' && this.oauthStatus.kind !== 'waiting'))
|
|
1147
|
+
return;
|
|
1148
|
+
this.oauthPresentation = presentation;
|
|
1149
|
+
this.oauthStatus = { kind: 'waiting' };
|
|
1150
|
+
}
|
|
1151
|
+
setOAuthCancelling() {
|
|
1152
|
+
if (this.phase !== 'oauth')
|
|
1153
|
+
return;
|
|
1154
|
+
this.oauthStatus = { kind: 'cancelling' };
|
|
1155
|
+
}
|
|
1156
|
+
setOAuthUnconfirmed() {
|
|
1157
|
+
if (this.phase !== 'oauth')
|
|
1158
|
+
return;
|
|
1159
|
+
this.oauthStatus = { kind: 'unconfirmed' };
|
|
1160
|
+
}
|
|
1161
|
+
setOAuthAuthenticated(loadingModels = true) {
|
|
1162
|
+
if (this.phase !== 'oauth')
|
|
1163
|
+
return;
|
|
1164
|
+
this.oauthStatus = { kind: 'authenticated', loadingModels };
|
|
1165
|
+
}
|
|
1166
|
+
setOAuthError(text) {
|
|
1167
|
+
if (this.phase !== 'oauth')
|
|
1168
|
+
return;
|
|
1169
|
+
this.oauthStatus = { kind: 'error', text };
|
|
1170
|
+
}
|
|
1171
|
+
setOAuthModelError(text) {
|
|
1172
|
+
if (this.phase !== 'oauth')
|
|
1173
|
+
return;
|
|
1174
|
+
this.oauthStatus = { kind: 'authenticated', loadingModels: false, modelError: text };
|
|
1175
|
+
}
|
|
1176
|
+
setOAuthCancelled() {
|
|
1177
|
+
if (this.phase !== 'oauth')
|
|
1178
|
+
return;
|
|
1179
|
+
if (this.picked?.target.kind === 'create') {
|
|
1180
|
+
this.phase = 'identity';
|
|
1181
|
+
this.identityFocus = 'slug';
|
|
1182
|
+
}
|
|
1183
|
+
else {
|
|
1184
|
+
this.phase = 'search';
|
|
1185
|
+
this.picked = undefined;
|
|
1186
|
+
}
|
|
1187
|
+
this.status = { kind: 'prompt' };
|
|
1188
|
+
this.oauthPresentation = undefined;
|
|
1189
|
+
}
|
|
1122
1190
|
/** Runner hook: verify succeeded — advance to the models step with fresh
|
|
1123
1191
|
* discovered models. Selection seeds from the picked provider's enabled set
|
|
1124
1192
|
* on first entry (existing connections preserve it; new ones start empty);
|
|
1125
1193
|
* a re-verify preserves the user's toggles, dropping ids no longer discovered. */
|
|
1126
1194
|
setModels(models) {
|
|
1127
|
-
if (this.phase !== 'key')
|
|
1195
|
+
if (this.phase !== 'key' && this.phase !== 'oauth')
|
|
1128
1196
|
return;
|
|
1129
1197
|
this.models = models;
|
|
1130
1198
|
if (!this.modelsInitialized) {
|
|
@@ -1169,11 +1237,15 @@ export class OnboardingWizard {
|
|
|
1169
1237
|
this.modelsSearchEditor.invalidate();
|
|
1170
1238
|
this.list.invalidate();
|
|
1171
1239
|
}
|
|
1172
|
-
/** Step label:
|
|
1240
|
+
/** Step label: create targets add identity; relays add Base URL. */
|
|
1173
1241
|
stepFor(phase) {
|
|
1174
|
-
const
|
|
1175
|
-
const
|
|
1176
|
-
|
|
1242
|
+
const selectedItem = this.list.getSelectedItem();
|
|
1243
|
+
const entry = this.picked ??
|
|
1244
|
+
this.filtered.find((candidate) => selectedItem !== null && onboardingProviderKey(candidate) === selectedItem.value);
|
|
1245
|
+
const create = entry?.target.kind === 'create';
|
|
1246
|
+
const oauth = entry?.setupMethod === 'oauth';
|
|
1247
|
+
const relay = entry?.requiresBaseUrl === true;
|
|
1248
|
+
const total = oauth ? 3 + (create ? 1 : 0) : 3 + (create ? 1 : 0) + (relay ? 1 : 0);
|
|
1177
1249
|
let position = 1;
|
|
1178
1250
|
if (phase === 'search')
|
|
1179
1251
|
return `1/${total}`;
|
|
@@ -1188,7 +1260,7 @@ export class OnboardingWizard {
|
|
|
1188
1260
|
return `${position}/${total}`;
|
|
1189
1261
|
}
|
|
1190
1262
|
position += 1;
|
|
1191
|
-
if (phase === 'key')
|
|
1263
|
+
if (phase === 'key' || phase === 'oauth')
|
|
1192
1264
|
return `${position}/${total}`;
|
|
1193
1265
|
return `${total}/${total}`;
|
|
1194
1266
|
}
|
|
@@ -1202,6 +1274,8 @@ export class OnboardingWizard {
|
|
|
1202
1274
|
return this.handleBaseUrlInput(data);
|
|
1203
1275
|
case 'key':
|
|
1204
1276
|
return this.handleKeyInput(data);
|
|
1277
|
+
case 'oauth':
|
|
1278
|
+
return this.handleOAuthInput(data);
|
|
1205
1279
|
case 'models':
|
|
1206
1280
|
return this.handleModelsInput(data);
|
|
1207
1281
|
case 'success':
|
|
@@ -1303,17 +1377,58 @@ export class OnboardingWizard {
|
|
|
1303
1377
|
return;
|
|
1304
1378
|
this.keyEditor.handleInput(data);
|
|
1305
1379
|
}
|
|
1380
|
+
handleOAuthInput(data) {
|
|
1381
|
+
if (matchesKey(data, Key.ctrl('c'))) {
|
|
1382
|
+
this.input.onCancel();
|
|
1383
|
+
return;
|
|
1384
|
+
}
|
|
1385
|
+
if (matchesKey(data, Key.escape)) {
|
|
1386
|
+
if (this.oauthStatus.kind === 'unconfirmed') {
|
|
1387
|
+
this.input.onCancel();
|
|
1388
|
+
return;
|
|
1389
|
+
}
|
|
1390
|
+
if (this.oauthStatus.kind === 'starting' || this.oauthStatus.kind === 'waiting') {
|
|
1391
|
+
this.oauthStatus = { kind: 'cancelling' };
|
|
1392
|
+
this.input.onCancelOAuth();
|
|
1393
|
+
return;
|
|
1394
|
+
}
|
|
1395
|
+
if (this.oauthStatus.kind === 'authenticated') {
|
|
1396
|
+
this.phase = 'search';
|
|
1397
|
+
this.picked = undefined;
|
|
1398
|
+
this.input.onReturnToProviders();
|
|
1399
|
+
}
|
|
1400
|
+
else if (this.oauthStatus.kind === 'error') {
|
|
1401
|
+
this.setOAuthCancelled();
|
|
1402
|
+
this.input.onBack();
|
|
1403
|
+
}
|
|
1404
|
+
return;
|
|
1405
|
+
}
|
|
1406
|
+
if ((matchesKey(data, Key.enter) || matchesKey(data, Key.return)) && !isKeyRepeat(data)) {
|
|
1407
|
+
if (this.oauthStatus.kind === 'error' || this.oauthStatus.kind === 'unconfirmed')
|
|
1408
|
+
this.startOAuth();
|
|
1409
|
+
else if (this.oauthStatus.kind === 'authenticated' && !this.oauthStatus.loadingModels) {
|
|
1410
|
+
this.oauthStatus = { kind: 'authenticated', loadingModels: true };
|
|
1411
|
+
this.input.onContinueOAuth();
|
|
1412
|
+
}
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1306
1415
|
handleModelsInput(data) {
|
|
1307
1416
|
if (matchesKey(data, Key.ctrl('c'))) {
|
|
1308
1417
|
this.input.onCancel();
|
|
1309
1418
|
return;
|
|
1310
1419
|
}
|
|
1311
1420
|
if (matchesKey(data, Key.escape)) {
|
|
1312
|
-
//
|
|
1313
|
-
|
|
1421
|
+
// An OAuth login is already durable here: return to its signed-in screen
|
|
1422
|
+
// instead of implying identity/authentication can be rolled back.
|
|
1423
|
+
this.phase = this.picked?.setupMethod === 'oauth' ? 'oauth' : 'key';
|
|
1314
1424
|
this.status = { kind: 'prompt' };
|
|
1315
|
-
this.
|
|
1316
|
-
|
|
1425
|
+
if (this.phase === 'oauth') {
|
|
1426
|
+
this.oauthStatus = { kind: 'authenticated', loadingModels: false };
|
|
1427
|
+
}
|
|
1428
|
+
else {
|
|
1429
|
+
this.keyEditor.setText('');
|
|
1430
|
+
this.keyEditor.disableSubmit = false;
|
|
1431
|
+
}
|
|
1317
1432
|
this.input.onBack();
|
|
1318
1433
|
return;
|
|
1319
1434
|
}
|
|
@@ -1393,6 +1508,8 @@ export class OnboardingWizard {
|
|
|
1393
1508
|
return this.renderBaseUrl(safeWidth);
|
|
1394
1509
|
case 'key':
|
|
1395
1510
|
return this.renderKey(safeWidth);
|
|
1511
|
+
case 'oauth':
|
|
1512
|
+
return this.renderOAuth(safeWidth);
|
|
1396
1513
|
case 'models':
|
|
1397
1514
|
return this.renderModels(safeWidth);
|
|
1398
1515
|
case 'success':
|
|
@@ -1490,6 +1607,51 @@ export class OnboardingWizard {
|
|
|
1490
1607
|
return ansi.dim(this.copy.submitAction);
|
|
1491
1608
|
}
|
|
1492
1609
|
}
|
|
1610
|
+
renderOAuth(width) {
|
|
1611
|
+
this.focusOnly(null);
|
|
1612
|
+
const label = this.picked?.label ?? '';
|
|
1613
|
+
const lines = [
|
|
1614
|
+
padLine(`${this.copy.setupTitle} ${ansi.dim(`· ${this.stepFor('oauth')}`)} ${ansi.accent(label)}`, width),
|
|
1615
|
+
padLine(this.oauthStatus.kind === 'authenticated'
|
|
1616
|
+
? ansi.dim(this.copy.oauthBackHint)
|
|
1617
|
+
: ansi.dim(this.oauthStatus.kind === 'unconfirmed'
|
|
1618
|
+
? this.copy.oauthRecheckAction
|
|
1619
|
+
: this.copy.oauthHint), width),
|
|
1620
|
+
padLine('', width),
|
|
1621
|
+
];
|
|
1622
|
+
if (this.oauthPresentation) {
|
|
1623
|
+
lines.push(padLine(this.oauthPresentation.url, width));
|
|
1624
|
+
lines.push(padLine('', width));
|
|
1625
|
+
if (this.oauthPresentation.stateHint) {
|
|
1626
|
+
lines.push(padLine(`${this.copy.oauthCodeLabel}: ${this.oauthPresentation.stateHint}`, width));
|
|
1627
|
+
lines.push(padLine('', width));
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
lines.push(padLine(this.renderOAuthStatusLine(), width));
|
|
1631
|
+
lines.push(padLine(ansi.accent('-'.repeat(width)), width));
|
|
1632
|
+
return lines;
|
|
1633
|
+
}
|
|
1634
|
+
renderOAuthStatusLine() {
|
|
1635
|
+
switch (this.oauthStatus.kind) {
|
|
1636
|
+
case 'starting':
|
|
1637
|
+
return `${ansi.yellow('⠋')} ${this.copy.oauthStarting}`;
|
|
1638
|
+
case 'waiting':
|
|
1639
|
+
return `${ansi.yellow('⠋')} ${this.copy.oauthWaiting}`;
|
|
1640
|
+
case 'cancelling':
|
|
1641
|
+
return `${ansi.yellow('⠋')} ${this.copy.oauthCancelling}`;
|
|
1642
|
+
case 'unconfirmed':
|
|
1643
|
+
return ansi.yellow(this.copy.oauthUnconfirmed);
|
|
1644
|
+
case 'authenticated':
|
|
1645
|
+
if (this.oauthStatus.loadingModels) {
|
|
1646
|
+
return `${ansi.yellow('⠋')} ${this.copy.oauthLoadingModels}`;
|
|
1647
|
+
}
|
|
1648
|
+
return this.oauthStatus.modelError
|
|
1649
|
+
? ansi.red(`✗ ${this.copy.oauthRetryModelsAction} · ${this.oauthStatus.modelError}`)
|
|
1650
|
+
: ansi.green(`✓ ${this.copy.oauthContinueToModels}`);
|
|
1651
|
+
case 'error':
|
|
1652
|
+
return ansi.red(`✗ ${this.oauthStatus.text} · ${this.copy.oauthRetryAction}`);
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1493
1655
|
renderModels(width) {
|
|
1494
1656
|
this.focusOnly(this.status.kind !== 'saving' ? this.modelsSearchEditor : null);
|
|
1495
1657
|
const label = this.picked?.label ?? '';
|