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
|
@@ -1,3208 +0,0 @@
|
|
|
1
|
-
// src/gateway-realtime-auth.ts
|
|
2
|
-
var GATEWAY_REALTIME_SUBPROTOCOL = "ai-gateway-realtime.v1";
|
|
3
|
-
var GATEWAY_TRANSCRIPTION_SUBPROTOCOL = "ai-gateway-transcription.v1";
|
|
4
|
-
var GATEWAY_AUTH_SUBPROTOCOL_PREFIX = "ai-gateway-auth.";
|
|
5
|
-
var GATEWAY_TEAM_SUBPROTOCOL_PREFIX = "ai-gateway-team.";
|
|
6
|
-
function getGatewayRealtimeProtocols(token, options) {
|
|
7
|
-
return buildGatewayProtocols(GATEWAY_REALTIME_SUBPROTOCOL, token, options);
|
|
8
|
-
}
|
|
9
|
-
function getGatewayTranscriptionProtocols(token, options) {
|
|
10
|
-
return buildGatewayProtocols(
|
|
11
|
-
GATEWAY_TRANSCRIPTION_SUBPROTOCOL,
|
|
12
|
-
token,
|
|
13
|
-
options
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
function buildGatewayProtocols(marker11, token, options) {
|
|
17
|
-
const protocols = [marker11, `${GATEWAY_AUTH_SUBPROTOCOL_PREFIX}${token}`];
|
|
18
|
-
if (options == null ? void 0 : options.teamIdOrSlug) {
|
|
19
|
-
protocols.push(
|
|
20
|
-
`${GATEWAY_TEAM_SUBPROTOCOL_PREFIX}${encodeSubprotocolValue(options.teamIdOrSlug)}`
|
|
21
|
-
);
|
|
22
|
-
}
|
|
23
|
-
return protocols;
|
|
24
|
-
}
|
|
25
|
-
function getGatewayRealtimeAuthToken(secWebSocketProtocol) {
|
|
26
|
-
var _a11;
|
|
27
|
-
return ((_a11 = findProtocol(secWebSocketProtocol, GATEWAY_AUTH_SUBPROTOCOL_PREFIX)) == null ? void 0 : _a11.slice(
|
|
28
|
-
GATEWAY_AUTH_SUBPROTOCOL_PREFIX.length
|
|
29
|
-
)) || void 0;
|
|
30
|
-
}
|
|
31
|
-
function getGatewayRealtimeTeamIdOrSlug(secWebSocketProtocol) {
|
|
32
|
-
var _a11;
|
|
33
|
-
const encoded = (_a11 = findProtocol(
|
|
34
|
-
secWebSocketProtocol,
|
|
35
|
-
GATEWAY_TEAM_SUBPROTOCOL_PREFIX
|
|
36
|
-
)) == null ? void 0 : _a11.slice(GATEWAY_TEAM_SUBPROTOCOL_PREFIX.length);
|
|
37
|
-
if (!encoded) return void 0;
|
|
38
|
-
try {
|
|
39
|
-
return decodeSubprotocolValue(encoded) || void 0;
|
|
40
|
-
} catch (e) {
|
|
41
|
-
return void 0;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
function findProtocol(secWebSocketProtocol, prefix) {
|
|
45
|
-
return secWebSocketProtocol == null ? void 0 : secWebSocketProtocol.split(",").map((protocol) => protocol.trim()).find((protocol) => protocol.startsWith(prefix));
|
|
46
|
-
}
|
|
47
|
-
function encodeSubprotocolValue(value) {
|
|
48
|
-
const bytes = new TextEncoder().encode(value);
|
|
49
|
-
let binary = "";
|
|
50
|
-
for (const byte of bytes) {
|
|
51
|
-
binary += String.fromCharCode(byte);
|
|
52
|
-
}
|
|
53
|
-
return btoa(binary).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/u, "");
|
|
54
|
-
}
|
|
55
|
-
function decodeSubprotocolValue(value) {
|
|
56
|
-
const base64 = value.replace(/-/g, "+").replace(/_/g, "/");
|
|
57
|
-
const padding = "=".repeat((4 - base64.length % 4) % 4);
|
|
58
|
-
const binary = atob(`${base64}${padding}`);
|
|
59
|
-
const bytes = Uint8Array.from(binary, (char) => char.charCodeAt(0));
|
|
60
|
-
return new TextDecoder().decode(bytes);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// src/gateway-provider.ts
|
|
64
|
-
import {
|
|
65
|
-
createJsonErrorResponseHandler as createJsonErrorResponseHandler11,
|
|
66
|
-
createJsonResponseHandler as createJsonResponseHandler11,
|
|
67
|
-
getErrorMessage as getErrorMessage11,
|
|
68
|
-
loadOptionalSetting,
|
|
69
|
-
postJsonToApi as postJsonToApi8,
|
|
70
|
-
withoutTrailingSlash,
|
|
71
|
-
withUserAgentSuffix
|
|
72
|
-
} from "@ai-sdk/provider-utils";
|
|
73
|
-
|
|
74
|
-
// src/zod.ts
|
|
75
|
-
import {
|
|
76
|
-
any,
|
|
77
|
-
array,
|
|
78
|
-
boolean,
|
|
79
|
-
discriminatedUnion,
|
|
80
|
-
enum as enumType,
|
|
81
|
-
literal,
|
|
82
|
-
number,
|
|
83
|
-
object,
|
|
84
|
-
record,
|
|
85
|
-
string,
|
|
86
|
-
union,
|
|
87
|
-
unknown
|
|
88
|
-
} from "zod/v4";
|
|
89
|
-
var z = {
|
|
90
|
-
any,
|
|
91
|
-
array,
|
|
92
|
-
boolean,
|
|
93
|
-
discriminatedUnion,
|
|
94
|
-
enum: enumType,
|
|
95
|
-
literal,
|
|
96
|
-
number,
|
|
97
|
-
object,
|
|
98
|
-
record,
|
|
99
|
-
string,
|
|
100
|
-
union,
|
|
101
|
-
unknown
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// src/errors/as-gateway-error.ts
|
|
105
|
-
import { APICallError } from "@ai-sdk/provider";
|
|
106
|
-
|
|
107
|
-
// src/errors/gateway-error.ts
|
|
108
|
-
var marker = "vercel.ai.gateway.error";
|
|
109
|
-
var symbol = Symbol.for(marker);
|
|
110
|
-
var _a, _b;
|
|
111
|
-
var GatewayError = class _GatewayError extends (_b = Error, _a = symbol, _b) {
|
|
112
|
-
constructor({
|
|
113
|
-
message,
|
|
114
|
-
statusCode = 500,
|
|
115
|
-
cause,
|
|
116
|
-
generationId,
|
|
117
|
-
isRetryable = statusCode != null && (statusCode === 408 || // request timeout
|
|
118
|
-
statusCode === 409 || // conflict
|
|
119
|
-
statusCode === 429 || // too many requests
|
|
120
|
-
statusCode >= 500)
|
|
121
|
-
// server error
|
|
122
|
-
}) {
|
|
123
|
-
super(generationId ? `${message} [${generationId}]` : message);
|
|
124
|
-
this[_a] = true;
|
|
125
|
-
this.statusCode = statusCode;
|
|
126
|
-
this.cause = cause;
|
|
127
|
-
this.generationId = generationId;
|
|
128
|
-
this.isRetryable = isRetryable;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Checks if the given error is a Gateway Error.
|
|
132
|
-
* @param {unknown} error - The error to check.
|
|
133
|
-
* @returns {boolean} True if the error is a Gateway Error, false otherwise.
|
|
134
|
-
*/
|
|
135
|
-
static isInstance(error) {
|
|
136
|
-
return _GatewayError.hasMarker(error);
|
|
137
|
-
}
|
|
138
|
-
static hasMarker(error) {
|
|
139
|
-
return typeof error === "object" && error !== null && symbol in error && error[symbol] === true;
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
// src/errors/gateway-authentication-error.ts
|
|
144
|
-
var name = "GatewayAuthenticationError";
|
|
145
|
-
var marker2 = `vercel.ai.gateway.error.${name}`;
|
|
146
|
-
var symbol2 = Symbol.for(marker2);
|
|
147
|
-
var _a2, _b2;
|
|
148
|
-
var GatewayAuthenticationError = class _GatewayAuthenticationError extends (_b2 = GatewayError, _a2 = symbol2, _b2) {
|
|
149
|
-
constructor({
|
|
150
|
-
message = "Authentication failed",
|
|
151
|
-
statusCode = 401,
|
|
152
|
-
cause,
|
|
153
|
-
generationId
|
|
154
|
-
} = {}) {
|
|
155
|
-
super({ message, statusCode, cause, generationId });
|
|
156
|
-
this[_a2] = true;
|
|
157
|
-
// used in isInstance
|
|
158
|
-
this.name = name;
|
|
159
|
-
this.type = "authentication_error";
|
|
160
|
-
}
|
|
161
|
-
static isInstance(error) {
|
|
162
|
-
return GatewayError.hasMarker(error) && symbol2 in error;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Creates a contextual error message when authentication fails
|
|
166
|
-
*/
|
|
167
|
-
static createContextualError({
|
|
168
|
-
apiKeyProvided,
|
|
169
|
-
oidcTokenProvided,
|
|
170
|
-
statusCode = 401,
|
|
171
|
-
cause,
|
|
172
|
-
generationId
|
|
173
|
-
}) {
|
|
174
|
-
let contextualMessage;
|
|
175
|
-
if (apiKeyProvided) {
|
|
176
|
-
contextualMessage = `AI Gateway authentication failed: Invalid API key or token.
|
|
177
|
-
|
|
178
|
-
Create a new API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
179
|
-
|
|
180
|
-
Provide an API key or Vercel access token via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.`;
|
|
181
|
-
} else if (oidcTokenProvided) {
|
|
182
|
-
contextualMessage = `AI Gateway authentication failed: Invalid OIDC token.
|
|
183
|
-
|
|
184
|
-
Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.
|
|
185
|
-
|
|
186
|
-
Alternatively, use an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
187
|
-
or pass a Vercel access token via the 'apiKey' option.`;
|
|
188
|
-
} else {
|
|
189
|
-
contextualMessage = `AI Gateway authentication failed: No authentication provided.
|
|
190
|
-
|
|
191
|
-
Option 1 - API key:
|
|
192
|
-
Create an API key: https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%2Fapi-keys
|
|
193
|
-
Provide via 'apiKey' option or 'AI_GATEWAY_API_KEY' environment variable.
|
|
194
|
-
|
|
195
|
-
Option 2 - Vercel access token:
|
|
196
|
-
Pass a Vercel personal access token or Vercel app access token via the 'apiKey' option.
|
|
197
|
-
|
|
198
|
-
Option 3 - OIDC token:
|
|
199
|
-
Run 'npx vercel link' to link your project, then 'vc env pull' to fetch the token.`;
|
|
200
|
-
}
|
|
201
|
-
return new _GatewayAuthenticationError({
|
|
202
|
-
message: contextualMessage,
|
|
203
|
-
statusCode,
|
|
204
|
-
cause,
|
|
205
|
-
generationId
|
|
206
|
-
});
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
// src/errors/gateway-invalid-request-error.ts
|
|
211
|
-
var name2 = "GatewayInvalidRequestError";
|
|
212
|
-
var marker3 = `vercel.ai.gateway.error.${name2}`;
|
|
213
|
-
var symbol3 = Symbol.for(marker3);
|
|
214
|
-
var _a3, _b3;
|
|
215
|
-
var GatewayInvalidRequestError = class extends (_b3 = GatewayError, _a3 = symbol3, _b3) {
|
|
216
|
-
constructor({
|
|
217
|
-
message = "Invalid request",
|
|
218
|
-
statusCode = 400,
|
|
219
|
-
cause,
|
|
220
|
-
generationId
|
|
221
|
-
} = {}) {
|
|
222
|
-
super({ message, statusCode, cause, generationId });
|
|
223
|
-
this[_a3] = true;
|
|
224
|
-
// used in isInstance
|
|
225
|
-
this.name = name2;
|
|
226
|
-
this.type = "invalid_request_error";
|
|
227
|
-
}
|
|
228
|
-
static isInstance(error) {
|
|
229
|
-
return GatewayError.hasMarker(error) && symbol3 in error;
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
// src/errors/gateway-rate-limit-error.ts
|
|
234
|
-
var name3 = "GatewayRateLimitError";
|
|
235
|
-
var marker4 = `vercel.ai.gateway.error.${name3}`;
|
|
236
|
-
var symbol4 = Symbol.for(marker4);
|
|
237
|
-
var _a4, _b4;
|
|
238
|
-
var GatewayRateLimitError = class extends (_b4 = GatewayError, _a4 = symbol4, _b4) {
|
|
239
|
-
constructor({
|
|
240
|
-
message = "Rate limit exceeded",
|
|
241
|
-
statusCode = 429,
|
|
242
|
-
cause,
|
|
243
|
-
generationId
|
|
244
|
-
} = {}) {
|
|
245
|
-
super({ message, statusCode, cause, generationId });
|
|
246
|
-
this[_a4] = true;
|
|
247
|
-
// used in isInstance
|
|
248
|
-
this.name = name3;
|
|
249
|
-
this.type = "rate_limit_exceeded";
|
|
250
|
-
}
|
|
251
|
-
static isInstance(error) {
|
|
252
|
-
return GatewayError.hasMarker(error) && symbol4 in error;
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
// src/errors/gateway-model-not-found-error.ts
|
|
257
|
-
import { lazySchema, zodSchema } from "@ai-sdk/provider-utils";
|
|
258
|
-
var name4 = "GatewayModelNotFoundError";
|
|
259
|
-
var marker5 = `vercel.ai.gateway.error.${name4}`;
|
|
260
|
-
var symbol5 = Symbol.for(marker5);
|
|
261
|
-
var modelNotFoundParamSchema = lazySchema(
|
|
262
|
-
() => zodSchema(
|
|
263
|
-
z.object({
|
|
264
|
-
modelId: z.string()
|
|
265
|
-
})
|
|
266
|
-
)
|
|
267
|
-
);
|
|
268
|
-
var _a5, _b5;
|
|
269
|
-
var GatewayModelNotFoundError = class extends (_b5 = GatewayError, _a5 = symbol5, _b5) {
|
|
270
|
-
constructor({
|
|
271
|
-
message = "Model not found",
|
|
272
|
-
statusCode = 404,
|
|
273
|
-
modelId,
|
|
274
|
-
cause,
|
|
275
|
-
generationId
|
|
276
|
-
} = {}) {
|
|
277
|
-
super({ message, statusCode, cause, generationId });
|
|
278
|
-
this[_a5] = true;
|
|
279
|
-
// used in isInstance
|
|
280
|
-
this.name = name4;
|
|
281
|
-
this.type = "model_not_found";
|
|
282
|
-
this.modelId = modelId;
|
|
283
|
-
}
|
|
284
|
-
static isInstance(error) {
|
|
285
|
-
return GatewayError.hasMarker(error) && symbol5 in error;
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
// src/errors/gateway-internal-server-error.ts
|
|
290
|
-
var name5 = "GatewayInternalServerError";
|
|
291
|
-
var marker6 = `vercel.ai.gateway.error.${name5}`;
|
|
292
|
-
var symbol6 = Symbol.for(marker6);
|
|
293
|
-
var _a6, _b6;
|
|
294
|
-
var GatewayInternalServerError = class extends (_b6 = GatewayError, _a6 = symbol6, _b6) {
|
|
295
|
-
constructor({
|
|
296
|
-
message = "Internal server error",
|
|
297
|
-
statusCode = 500,
|
|
298
|
-
cause,
|
|
299
|
-
generationId
|
|
300
|
-
} = {}) {
|
|
301
|
-
super({ message, statusCode, cause, generationId });
|
|
302
|
-
this[_a6] = true;
|
|
303
|
-
// used in isInstance
|
|
304
|
-
this.name = name5;
|
|
305
|
-
this.type = "internal_server_error";
|
|
306
|
-
}
|
|
307
|
-
static isInstance(error) {
|
|
308
|
-
return GatewayError.hasMarker(error) && symbol6 in error;
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
// src/errors/gateway-failed-dependency-error.ts
|
|
313
|
-
var name6 = "GatewayFailedDependencyError";
|
|
314
|
-
var marker7 = `vercel.ai.gateway.error.${name6}`;
|
|
315
|
-
var symbol7 = Symbol.for(marker7);
|
|
316
|
-
var _a7, _b7;
|
|
317
|
-
var GatewayFailedDependencyError = class extends (_b7 = GatewayError, _a7 = symbol7, _b7) {
|
|
318
|
-
constructor({
|
|
319
|
-
message = "Failed dependency",
|
|
320
|
-
statusCode = 424,
|
|
321
|
-
cause,
|
|
322
|
-
generationId
|
|
323
|
-
} = {}) {
|
|
324
|
-
super({ message, statusCode, cause, generationId });
|
|
325
|
-
this[_a7] = true;
|
|
326
|
-
// used in isInstance
|
|
327
|
-
this.name = name6;
|
|
328
|
-
this.type = "failed_dependency";
|
|
329
|
-
}
|
|
330
|
-
static isInstance(error) {
|
|
331
|
-
return GatewayError.hasMarker(error) && symbol7 in error;
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
// src/errors/gateway-forbidden-error.ts
|
|
336
|
-
import { lazySchema as lazySchema2, zodSchema as zodSchema2 } from "@ai-sdk/provider-utils";
|
|
337
|
-
var name7 = "GatewayForbiddenError";
|
|
338
|
-
var marker8 = `vercel.ai.gateway.error.${name7}`;
|
|
339
|
-
var symbol8 = Symbol.for(marker8);
|
|
340
|
-
var forbiddenParamSchema = lazySchema2(
|
|
341
|
-
() => zodSchema2(
|
|
342
|
-
z.object({
|
|
343
|
-
ruleId: z.string()
|
|
344
|
-
})
|
|
345
|
-
)
|
|
346
|
-
);
|
|
347
|
-
var _a8, _b8;
|
|
348
|
-
var GatewayForbiddenError = class extends (_b8 = GatewayError, _a8 = symbol8, _b8) {
|
|
349
|
-
constructor({
|
|
350
|
-
message = "Forbidden",
|
|
351
|
-
statusCode = 403,
|
|
352
|
-
cause,
|
|
353
|
-
generationId,
|
|
354
|
-
ruleId
|
|
355
|
-
} = {}) {
|
|
356
|
-
super({ message, statusCode, cause, generationId });
|
|
357
|
-
this[_a8] = true;
|
|
358
|
-
// used in isInstance
|
|
359
|
-
this.name = name7;
|
|
360
|
-
this.type = "forbidden";
|
|
361
|
-
this.ruleId = ruleId;
|
|
362
|
-
}
|
|
363
|
-
static isInstance(error) {
|
|
364
|
-
return GatewayError.hasMarker(error) && symbol8 in error;
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
// src/errors/gateway-response-error.ts
|
|
369
|
-
var name8 = "GatewayResponseError";
|
|
370
|
-
var marker9 = `vercel.ai.gateway.error.${name8}`;
|
|
371
|
-
var symbol9 = Symbol.for(marker9);
|
|
372
|
-
var _a9, _b9;
|
|
373
|
-
var GatewayResponseError = class extends (_b9 = GatewayError, _a9 = symbol9, _b9) {
|
|
374
|
-
constructor({
|
|
375
|
-
message = "Invalid response from Gateway",
|
|
376
|
-
statusCode = 502,
|
|
377
|
-
response,
|
|
378
|
-
validationError,
|
|
379
|
-
cause,
|
|
380
|
-
generationId
|
|
381
|
-
} = {}) {
|
|
382
|
-
super({ message, statusCode, cause, generationId });
|
|
383
|
-
this[_a9] = true;
|
|
384
|
-
// used in isInstance
|
|
385
|
-
this.name = name8;
|
|
386
|
-
this.type = "response_error";
|
|
387
|
-
this.response = response;
|
|
388
|
-
this.validationError = validationError;
|
|
389
|
-
}
|
|
390
|
-
static isInstance(error) {
|
|
391
|
-
return GatewayError.hasMarker(error) && symbol9 in error;
|
|
392
|
-
}
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
// src/errors/create-gateway-error.ts
|
|
396
|
-
import {
|
|
397
|
-
lazySchema as lazySchema3,
|
|
398
|
-
safeValidateTypes,
|
|
399
|
-
zodSchema as zodSchema3
|
|
400
|
-
} from "@ai-sdk/provider-utils";
|
|
401
|
-
async function createGatewayErrorFromResponse({
|
|
402
|
-
response,
|
|
403
|
-
statusCode,
|
|
404
|
-
defaultMessage = "Gateway request failed",
|
|
405
|
-
cause,
|
|
406
|
-
authMethod
|
|
407
|
-
}) {
|
|
408
|
-
var _a11;
|
|
409
|
-
const parseResult = await safeValidateTypes({
|
|
410
|
-
value: response,
|
|
411
|
-
schema: gatewayErrorResponseSchema
|
|
412
|
-
});
|
|
413
|
-
if (!parseResult.success) {
|
|
414
|
-
const rawGenerationId = typeof response === "object" && response !== null && "generationId" in response ? response.generationId : void 0;
|
|
415
|
-
return new GatewayResponseError({
|
|
416
|
-
message: `Invalid error response format: ${defaultMessage}`,
|
|
417
|
-
statusCode,
|
|
418
|
-
response,
|
|
419
|
-
validationError: parseResult.error,
|
|
420
|
-
cause,
|
|
421
|
-
generationId: rawGenerationId
|
|
422
|
-
});
|
|
423
|
-
}
|
|
424
|
-
const validatedResponse = parseResult.value;
|
|
425
|
-
const errorType = validatedResponse.error.type;
|
|
426
|
-
const message = validatedResponse.error.message;
|
|
427
|
-
const generationId = (_a11 = validatedResponse.generationId) != null ? _a11 : void 0;
|
|
428
|
-
switch (errorType) {
|
|
429
|
-
case "authentication_error":
|
|
430
|
-
return GatewayAuthenticationError.createContextualError({
|
|
431
|
-
apiKeyProvided: authMethod === "api-key",
|
|
432
|
-
oidcTokenProvided: authMethod === "oidc",
|
|
433
|
-
statusCode,
|
|
434
|
-
cause,
|
|
435
|
-
generationId
|
|
436
|
-
});
|
|
437
|
-
case "invalid_request_error":
|
|
438
|
-
return new GatewayInvalidRequestError({
|
|
439
|
-
message,
|
|
440
|
-
statusCode,
|
|
441
|
-
cause,
|
|
442
|
-
generationId
|
|
443
|
-
});
|
|
444
|
-
case "rate_limit_exceeded":
|
|
445
|
-
return new GatewayRateLimitError({
|
|
446
|
-
message,
|
|
447
|
-
statusCode,
|
|
448
|
-
cause,
|
|
449
|
-
generationId
|
|
450
|
-
});
|
|
451
|
-
case "model_not_found": {
|
|
452
|
-
const modelResult = await safeValidateTypes({
|
|
453
|
-
value: validatedResponse.error.param,
|
|
454
|
-
schema: modelNotFoundParamSchema
|
|
455
|
-
});
|
|
456
|
-
return new GatewayModelNotFoundError({
|
|
457
|
-
message,
|
|
458
|
-
statusCode,
|
|
459
|
-
modelId: modelResult.success ? modelResult.value.modelId : void 0,
|
|
460
|
-
cause,
|
|
461
|
-
generationId
|
|
462
|
-
});
|
|
463
|
-
}
|
|
464
|
-
case "internal_server_error":
|
|
465
|
-
return new GatewayInternalServerError({
|
|
466
|
-
message,
|
|
467
|
-
statusCode,
|
|
468
|
-
cause,
|
|
469
|
-
generationId
|
|
470
|
-
});
|
|
471
|
-
case "failed_dependency":
|
|
472
|
-
return new GatewayFailedDependencyError({
|
|
473
|
-
message,
|
|
474
|
-
statusCode,
|
|
475
|
-
cause,
|
|
476
|
-
generationId
|
|
477
|
-
});
|
|
478
|
-
case "forbidden": {
|
|
479
|
-
const ruleResult = await safeValidateTypes({
|
|
480
|
-
value: validatedResponse.error.param,
|
|
481
|
-
schema: forbiddenParamSchema
|
|
482
|
-
});
|
|
483
|
-
return new GatewayForbiddenError({
|
|
484
|
-
message,
|
|
485
|
-
statusCode,
|
|
486
|
-
cause,
|
|
487
|
-
generationId,
|
|
488
|
-
ruleId: ruleResult.success ? ruleResult.value.ruleId : void 0
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
default:
|
|
492
|
-
return new GatewayInternalServerError({
|
|
493
|
-
message,
|
|
494
|
-
statusCode,
|
|
495
|
-
cause,
|
|
496
|
-
generationId
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
var gatewayErrorResponseSchema = lazySchema3(
|
|
501
|
-
() => zodSchema3(
|
|
502
|
-
z.object({
|
|
503
|
-
error: z.object({
|
|
504
|
-
message: z.string(),
|
|
505
|
-
type: z.string().nullish(),
|
|
506
|
-
param: z.unknown().nullish(),
|
|
507
|
-
code: z.union([z.string(), z.number()]).nullish()
|
|
508
|
-
}),
|
|
509
|
-
generationId: z.string().nullish()
|
|
510
|
-
})
|
|
511
|
-
)
|
|
512
|
-
);
|
|
513
|
-
|
|
514
|
-
// src/errors/extract-api-call-response.ts
|
|
515
|
-
import { secureJsonParse } from "@ai-sdk/provider-utils";
|
|
516
|
-
function extractApiCallResponse(error) {
|
|
517
|
-
if (error.data !== void 0) {
|
|
518
|
-
return error.data;
|
|
519
|
-
}
|
|
520
|
-
if (error.responseBody != null) {
|
|
521
|
-
try {
|
|
522
|
-
return secureJsonParse(error.responseBody);
|
|
523
|
-
} catch (e) {
|
|
524
|
-
return error.responseBody;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
return {};
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
// src/errors/gateway-timeout-error.ts
|
|
531
|
-
var name9 = "GatewayTimeoutError";
|
|
532
|
-
var marker10 = `vercel.ai.gateway.error.${name9}`;
|
|
533
|
-
var symbol10 = Symbol.for(marker10);
|
|
534
|
-
var _a10, _b10;
|
|
535
|
-
var GatewayTimeoutError = class _GatewayTimeoutError extends (_b10 = GatewayError, _a10 = symbol10, _b10) {
|
|
536
|
-
constructor({
|
|
537
|
-
message = "Request timed out",
|
|
538
|
-
statusCode = 408,
|
|
539
|
-
cause,
|
|
540
|
-
generationId
|
|
541
|
-
} = {}) {
|
|
542
|
-
super({ message, statusCode, cause, generationId });
|
|
543
|
-
this[_a10] = true;
|
|
544
|
-
// used in isInstance
|
|
545
|
-
this.name = name9;
|
|
546
|
-
this.type = "timeout_error";
|
|
547
|
-
}
|
|
548
|
-
static isInstance(error) {
|
|
549
|
-
return GatewayError.hasMarker(error) && symbol10 in error;
|
|
550
|
-
}
|
|
551
|
-
/**
|
|
552
|
-
* Creates a helpful timeout error message with troubleshooting guidance
|
|
553
|
-
*/
|
|
554
|
-
static createTimeoutError({
|
|
555
|
-
originalMessage,
|
|
556
|
-
statusCode = 408,
|
|
557
|
-
cause,
|
|
558
|
-
generationId
|
|
559
|
-
}) {
|
|
560
|
-
const message = `Gateway request timed out: ${originalMessage}
|
|
561
|
-
|
|
562
|
-
This is a client-side timeout. To resolve this, increase your timeout configuration: https://vercel.com/docs/ai-gateway/capabilities/video-generation#extending-timeouts-for-node.js`;
|
|
563
|
-
return new _GatewayTimeoutError({
|
|
564
|
-
message,
|
|
565
|
-
statusCode,
|
|
566
|
-
cause,
|
|
567
|
-
generationId
|
|
568
|
-
});
|
|
569
|
-
}
|
|
570
|
-
};
|
|
571
|
-
|
|
572
|
-
// src/errors/as-gateway-error.ts
|
|
573
|
-
function isTimeoutError(error) {
|
|
574
|
-
if (!(error instanceof Error)) {
|
|
575
|
-
return false;
|
|
576
|
-
}
|
|
577
|
-
const errorCode = error.code;
|
|
578
|
-
if (typeof errorCode === "string") {
|
|
579
|
-
const undiciTimeoutCodes = [
|
|
580
|
-
"UND_ERR_HEADERS_TIMEOUT",
|
|
581
|
-
"UND_ERR_BODY_TIMEOUT",
|
|
582
|
-
"UND_ERR_CONNECT_TIMEOUT"
|
|
583
|
-
];
|
|
584
|
-
return undiciTimeoutCodes.includes(errorCode);
|
|
585
|
-
}
|
|
586
|
-
return false;
|
|
587
|
-
}
|
|
588
|
-
async function asGatewayError(error, authMethod) {
|
|
589
|
-
var _a11;
|
|
590
|
-
if (GatewayError.isInstance(error)) {
|
|
591
|
-
return error;
|
|
592
|
-
}
|
|
593
|
-
if (isTimeoutError(error)) {
|
|
594
|
-
return GatewayTimeoutError.createTimeoutError({
|
|
595
|
-
originalMessage: error instanceof Error ? error.message : "Unknown error",
|
|
596
|
-
cause: error
|
|
597
|
-
});
|
|
598
|
-
}
|
|
599
|
-
if (APICallError.isInstance(error)) {
|
|
600
|
-
if (error.cause && isTimeoutError(error.cause)) {
|
|
601
|
-
return GatewayTimeoutError.createTimeoutError({
|
|
602
|
-
originalMessage: error.message,
|
|
603
|
-
cause: error
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
return await createGatewayErrorFromResponse({
|
|
607
|
-
response: extractApiCallResponse(error),
|
|
608
|
-
statusCode: (_a11 = error.statusCode) != null ? _a11 : 500,
|
|
609
|
-
defaultMessage: "Gateway request failed",
|
|
610
|
-
cause: error,
|
|
611
|
-
authMethod
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
return await createGatewayErrorFromResponse({
|
|
615
|
-
response: {},
|
|
616
|
-
statusCode: 500,
|
|
617
|
-
defaultMessage: error instanceof Error ? `Gateway request failed: ${error.message}` : "Unknown Gateway error",
|
|
618
|
-
cause: error,
|
|
619
|
-
authMethod
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
// src/gateway-headers.ts
|
|
624
|
-
var GATEWAY_AUTH_METHOD_HEADER = "ai-gateway-auth-method";
|
|
625
|
-
var VERCEL_AI_GATEWAY_TEAM_HEADER = "x-vercel-ai-gateway-team";
|
|
626
|
-
|
|
627
|
-
// src/errors/parse-auth-method.ts
|
|
628
|
-
import {
|
|
629
|
-
lazySchema as lazySchema4,
|
|
630
|
-
safeValidateTypes as safeValidateTypes2,
|
|
631
|
-
zodSchema as zodSchema4
|
|
632
|
-
} from "@ai-sdk/provider-utils";
|
|
633
|
-
async function parseAuthMethod(headers) {
|
|
634
|
-
const result = await safeValidateTypes2({
|
|
635
|
-
value: headers[GATEWAY_AUTH_METHOD_HEADER],
|
|
636
|
-
schema: gatewayAuthMethodSchema
|
|
637
|
-
});
|
|
638
|
-
return result.success ? result.value : void 0;
|
|
639
|
-
}
|
|
640
|
-
var gatewayAuthMethodSchema = lazySchema4(
|
|
641
|
-
() => zodSchema4(z.union([z.literal("api-key"), z.literal("oidc")]))
|
|
642
|
-
);
|
|
643
|
-
|
|
644
|
-
// src/gateway-fetch-metadata.ts
|
|
645
|
-
import {
|
|
646
|
-
createJsonErrorResponseHandler,
|
|
647
|
-
createJsonResponseHandler,
|
|
648
|
-
getErrorMessage,
|
|
649
|
-
getFromApi,
|
|
650
|
-
lazySchema as lazySchema5,
|
|
651
|
-
resolve,
|
|
652
|
-
zodSchema as zodSchema5
|
|
653
|
-
} from "@ai-sdk/provider-utils";
|
|
654
|
-
|
|
655
|
-
// src/gateway-model-entry.ts
|
|
656
|
-
var KNOWN_MODEL_TYPES = [
|
|
657
|
-
"embedding",
|
|
658
|
-
"image",
|
|
659
|
-
"language",
|
|
660
|
-
"realtime",
|
|
661
|
-
"reranking",
|
|
662
|
-
"speech",
|
|
663
|
-
"transcription",
|
|
664
|
-
"video"
|
|
665
|
-
];
|
|
666
|
-
|
|
667
|
-
// src/gateway-fetch-metadata.ts
|
|
668
|
-
var GatewayFetchMetadata = class {
|
|
669
|
-
constructor(config) {
|
|
670
|
-
this.config = config;
|
|
671
|
-
}
|
|
672
|
-
async getAvailableModels() {
|
|
673
|
-
try {
|
|
674
|
-
const { value } = await getFromApi({
|
|
675
|
-
url: `${this.config.baseURL}/config`,
|
|
676
|
-
validateUrl: false,
|
|
677
|
-
headers: this.config.headers ? await resolve(this.config.headers) : void 0,
|
|
678
|
-
successfulResponseHandler: createJsonResponseHandler(
|
|
679
|
-
gatewayAvailableModelsResponseSchema
|
|
680
|
-
),
|
|
681
|
-
failedResponseHandler: createJsonErrorResponseHandler({
|
|
682
|
-
errorSchema: z.any(),
|
|
683
|
-
errorToMessage: (data) => {
|
|
684
|
-
var _a11;
|
|
685
|
-
return (_a11 = getErrorMessage(data)) != null ? _a11 : "unknown error";
|
|
686
|
-
}
|
|
687
|
-
}),
|
|
688
|
-
fetch: this.config.fetch
|
|
689
|
-
});
|
|
690
|
-
return value;
|
|
691
|
-
} catch (error) {
|
|
692
|
-
throw await asGatewayError(error);
|
|
693
|
-
}
|
|
694
|
-
}
|
|
695
|
-
async getCredits() {
|
|
696
|
-
try {
|
|
697
|
-
const baseUrl = new URL(this.config.baseURL);
|
|
698
|
-
const { value } = await getFromApi({
|
|
699
|
-
url: `${baseUrl.origin}/v1/credits`,
|
|
700
|
-
validateUrl: false,
|
|
701
|
-
headers: this.config.headers ? await resolve(this.config.headers) : void 0,
|
|
702
|
-
successfulResponseHandler: createJsonResponseHandler(
|
|
703
|
-
gatewayCreditsResponseSchema
|
|
704
|
-
),
|
|
705
|
-
failedResponseHandler: createJsonErrorResponseHandler({
|
|
706
|
-
errorSchema: z.any(),
|
|
707
|
-
errorToMessage: (data) => {
|
|
708
|
-
var _a11;
|
|
709
|
-
return (_a11 = getErrorMessage(data)) != null ? _a11 : "unknown error";
|
|
710
|
-
}
|
|
711
|
-
}),
|
|
712
|
-
fetch: this.config.fetch
|
|
713
|
-
});
|
|
714
|
-
return value;
|
|
715
|
-
} catch (error) {
|
|
716
|
-
throw await asGatewayError(error);
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
};
|
|
720
|
-
var gatewayAvailableModelsResponseSchema = lazySchema5(
|
|
721
|
-
() => zodSchema5(
|
|
722
|
-
z.object({
|
|
723
|
-
models: z.array(
|
|
724
|
-
z.object({
|
|
725
|
-
id: z.string(),
|
|
726
|
-
name: z.string(),
|
|
727
|
-
description: z.string().nullish(),
|
|
728
|
-
pricing: z.object({
|
|
729
|
-
input: z.string(),
|
|
730
|
-
output: z.string(),
|
|
731
|
-
input_cache_read: z.string().nullish(),
|
|
732
|
-
input_cache_write: z.string().nullish()
|
|
733
|
-
}).transform(
|
|
734
|
-
({ input, output, input_cache_read, input_cache_write }) => ({
|
|
735
|
-
input,
|
|
736
|
-
output,
|
|
737
|
-
...input_cache_read ? { cachedInputTokens: input_cache_read } : {},
|
|
738
|
-
...input_cache_write ? { cacheCreationInputTokens: input_cache_write } : {}
|
|
739
|
-
})
|
|
740
|
-
).nullish(),
|
|
741
|
-
specification: z.object({
|
|
742
|
-
specificationVersion: z.literal("v4"),
|
|
743
|
-
provider: z.string(),
|
|
744
|
-
modelId: z.string()
|
|
745
|
-
}),
|
|
746
|
-
modelType: z.string().nullish()
|
|
747
|
-
})
|
|
748
|
-
).transform(
|
|
749
|
-
(models) => models.filter(
|
|
750
|
-
(m) => m.modelType == null || KNOWN_MODEL_TYPES.includes(m.modelType)
|
|
751
|
-
)
|
|
752
|
-
)
|
|
753
|
-
})
|
|
754
|
-
)
|
|
755
|
-
);
|
|
756
|
-
var gatewayCreditsResponseSchema = lazySchema5(
|
|
757
|
-
() => zodSchema5(
|
|
758
|
-
z.object({
|
|
759
|
-
balance: z.string(),
|
|
760
|
-
total_used: z.string()
|
|
761
|
-
}).transform(({ balance, total_used }) => ({
|
|
762
|
-
balance,
|
|
763
|
-
totalUsed: total_used
|
|
764
|
-
}))
|
|
765
|
-
)
|
|
766
|
-
);
|
|
767
|
-
|
|
768
|
-
// src/gateway-spend-report.ts
|
|
769
|
-
import {
|
|
770
|
-
createJsonErrorResponseHandler as createJsonErrorResponseHandler2,
|
|
771
|
-
createJsonResponseHandler as createJsonResponseHandler2,
|
|
772
|
-
getErrorMessage as getErrorMessage2,
|
|
773
|
-
getFromApi as getFromApi2,
|
|
774
|
-
lazySchema as lazySchema6,
|
|
775
|
-
resolve as resolve2,
|
|
776
|
-
zodSchema as zodSchema6
|
|
777
|
-
} from "@ai-sdk/provider-utils";
|
|
778
|
-
var GatewaySpendReport = class {
|
|
779
|
-
constructor(config) {
|
|
780
|
-
this.config = config;
|
|
781
|
-
}
|
|
782
|
-
async getSpendReport(params) {
|
|
783
|
-
try {
|
|
784
|
-
const baseUrl = new URL(this.config.baseURL);
|
|
785
|
-
const searchParams = new URLSearchParams();
|
|
786
|
-
searchParams.set("start_date", params.startDate);
|
|
787
|
-
searchParams.set("end_date", params.endDate);
|
|
788
|
-
if (params.groupBy) {
|
|
789
|
-
searchParams.set("group_by", params.groupBy);
|
|
790
|
-
}
|
|
791
|
-
if (params.datePart) {
|
|
792
|
-
searchParams.set("date_part", params.datePart);
|
|
793
|
-
}
|
|
794
|
-
if (params.userId) {
|
|
795
|
-
searchParams.set("user_id", params.userId);
|
|
796
|
-
}
|
|
797
|
-
if (params.model) {
|
|
798
|
-
searchParams.set("model", params.model);
|
|
799
|
-
}
|
|
800
|
-
if (params.provider) {
|
|
801
|
-
searchParams.set("provider", params.provider);
|
|
802
|
-
}
|
|
803
|
-
if (params.credentialType) {
|
|
804
|
-
searchParams.set("credential_type", params.credentialType);
|
|
805
|
-
}
|
|
806
|
-
if (params.tags && params.tags.length > 0) {
|
|
807
|
-
searchParams.set("tags", params.tags.join(","));
|
|
808
|
-
}
|
|
809
|
-
const { value } = await getFromApi2({
|
|
810
|
-
url: `${baseUrl.origin}/v1/report?${searchParams.toString()}`,
|
|
811
|
-
validateUrl: false,
|
|
812
|
-
headers: this.config.headers ? await resolve2(this.config.headers) : void 0,
|
|
813
|
-
successfulResponseHandler: createJsonResponseHandler2(
|
|
814
|
-
gatewaySpendReportResponseSchema
|
|
815
|
-
),
|
|
816
|
-
failedResponseHandler: createJsonErrorResponseHandler2({
|
|
817
|
-
errorSchema: z.any(),
|
|
818
|
-
errorToMessage: (data) => {
|
|
819
|
-
var _a11;
|
|
820
|
-
return (_a11 = getErrorMessage2(data)) != null ? _a11 : "unknown error";
|
|
821
|
-
}
|
|
822
|
-
}),
|
|
823
|
-
fetch: this.config.fetch
|
|
824
|
-
});
|
|
825
|
-
return value;
|
|
826
|
-
} catch (error) {
|
|
827
|
-
throw await asGatewayError(error);
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
};
|
|
831
|
-
var gatewaySpendReportResponseSchema = lazySchema6(
|
|
832
|
-
() => zodSchema6(
|
|
833
|
-
z.object({
|
|
834
|
-
results: z.array(
|
|
835
|
-
z.object({
|
|
836
|
-
day: z.string().optional(),
|
|
837
|
-
hour: z.string().optional(),
|
|
838
|
-
user: z.string().optional(),
|
|
839
|
-
model: z.string().optional(),
|
|
840
|
-
tag: z.string().optional(),
|
|
841
|
-
provider: z.string().optional(),
|
|
842
|
-
credential_type: z.enum(["byok", "system"]).optional(),
|
|
843
|
-
total_cost: z.number(),
|
|
844
|
-
market_cost: z.number().optional(),
|
|
845
|
-
input_tokens: z.number().optional(),
|
|
846
|
-
output_tokens: z.number().optional(),
|
|
847
|
-
cached_input_tokens: z.number().optional(),
|
|
848
|
-
cache_creation_input_tokens: z.number().optional(),
|
|
849
|
-
reasoning_tokens: z.number().optional(),
|
|
850
|
-
request_count: z.number().optional()
|
|
851
|
-
}).transform(
|
|
852
|
-
({
|
|
853
|
-
credential_type,
|
|
854
|
-
total_cost,
|
|
855
|
-
market_cost,
|
|
856
|
-
input_tokens,
|
|
857
|
-
output_tokens,
|
|
858
|
-
cached_input_tokens,
|
|
859
|
-
cache_creation_input_tokens,
|
|
860
|
-
reasoning_tokens,
|
|
861
|
-
request_count,
|
|
862
|
-
...rest
|
|
863
|
-
}) => ({
|
|
864
|
-
...rest,
|
|
865
|
-
...credential_type !== void 0 ? { credentialType: credential_type } : {},
|
|
866
|
-
totalCost: total_cost,
|
|
867
|
-
...market_cost !== void 0 ? { marketCost: market_cost } : {},
|
|
868
|
-
...input_tokens !== void 0 ? { inputTokens: input_tokens } : {},
|
|
869
|
-
...output_tokens !== void 0 ? { outputTokens: output_tokens } : {},
|
|
870
|
-
...cached_input_tokens !== void 0 ? { cachedInputTokens: cached_input_tokens } : {},
|
|
871
|
-
...cache_creation_input_tokens !== void 0 ? { cacheCreationInputTokens: cache_creation_input_tokens } : {},
|
|
872
|
-
...reasoning_tokens !== void 0 ? { reasoningTokens: reasoning_tokens } : {},
|
|
873
|
-
...request_count !== void 0 ? { requestCount: request_count } : {}
|
|
874
|
-
})
|
|
875
|
-
)
|
|
876
|
-
)
|
|
877
|
-
})
|
|
878
|
-
)
|
|
879
|
-
);
|
|
880
|
-
|
|
881
|
-
// src/gateway-generation-info.ts
|
|
882
|
-
import {
|
|
883
|
-
createJsonErrorResponseHandler as createJsonErrorResponseHandler3,
|
|
884
|
-
createJsonResponseHandler as createJsonResponseHandler3,
|
|
885
|
-
getErrorMessage as getErrorMessage3,
|
|
886
|
-
getFromApi as getFromApi3,
|
|
887
|
-
lazySchema as lazySchema7,
|
|
888
|
-
resolve as resolve3,
|
|
889
|
-
zodSchema as zodSchema7
|
|
890
|
-
} from "@ai-sdk/provider-utils";
|
|
891
|
-
var GatewayGenerationInfoFetcher = class {
|
|
892
|
-
constructor(config) {
|
|
893
|
-
this.config = config;
|
|
894
|
-
}
|
|
895
|
-
async getGenerationInfo(params) {
|
|
896
|
-
try {
|
|
897
|
-
const baseUrl = new URL(this.config.baseURL);
|
|
898
|
-
const { value } = await getFromApi3({
|
|
899
|
-
url: `${baseUrl.origin}/v1/generation?id=${encodeURIComponent(params.id)}`,
|
|
900
|
-
validateUrl: false,
|
|
901
|
-
headers: this.config.headers ? await resolve3(this.config.headers) : void 0,
|
|
902
|
-
successfulResponseHandler: createJsonResponseHandler3(
|
|
903
|
-
gatewayGenerationInfoResponseSchema
|
|
904
|
-
),
|
|
905
|
-
failedResponseHandler: createJsonErrorResponseHandler3({
|
|
906
|
-
errorSchema: z.any(),
|
|
907
|
-
errorToMessage: (data) => {
|
|
908
|
-
var _a11;
|
|
909
|
-
return (_a11 = getErrorMessage3(data)) != null ? _a11 : "unknown error";
|
|
910
|
-
}
|
|
911
|
-
}),
|
|
912
|
-
fetch: this.config.fetch
|
|
913
|
-
});
|
|
914
|
-
return value;
|
|
915
|
-
} catch (error) {
|
|
916
|
-
throw await asGatewayError(error);
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
};
|
|
920
|
-
var gatewayGenerationInfoResponseSchema = lazySchema7(
|
|
921
|
-
() => zodSchema7(
|
|
922
|
-
z.object({
|
|
923
|
-
data: z.object({
|
|
924
|
-
id: z.string(),
|
|
925
|
-
total_cost: z.number(),
|
|
926
|
-
upstream_inference_cost: z.number(),
|
|
927
|
-
usage: z.number(),
|
|
928
|
-
created_at: z.string(),
|
|
929
|
-
model: z.string(),
|
|
930
|
-
is_byok: z.boolean(),
|
|
931
|
-
provider_name: z.string(),
|
|
932
|
-
streamed: z.boolean(),
|
|
933
|
-
finish_reason: z.string(),
|
|
934
|
-
latency: z.number(),
|
|
935
|
-
generation_time: z.number(),
|
|
936
|
-
native_tokens_prompt: z.number(),
|
|
937
|
-
native_tokens_completion: z.number(),
|
|
938
|
-
native_tokens_reasoning: z.number(),
|
|
939
|
-
native_tokens_cached: z.number(),
|
|
940
|
-
native_tokens_cache_creation: z.number(),
|
|
941
|
-
billable_web_search_calls: z.number()
|
|
942
|
-
}).transform(
|
|
943
|
-
({
|
|
944
|
-
total_cost,
|
|
945
|
-
upstream_inference_cost,
|
|
946
|
-
created_at,
|
|
947
|
-
is_byok,
|
|
948
|
-
provider_name,
|
|
949
|
-
finish_reason,
|
|
950
|
-
generation_time,
|
|
951
|
-
native_tokens_prompt,
|
|
952
|
-
native_tokens_completion,
|
|
953
|
-
native_tokens_reasoning,
|
|
954
|
-
native_tokens_cached,
|
|
955
|
-
native_tokens_cache_creation,
|
|
956
|
-
billable_web_search_calls,
|
|
957
|
-
...rest
|
|
958
|
-
}) => ({
|
|
959
|
-
...rest,
|
|
960
|
-
totalCost: total_cost,
|
|
961
|
-
upstreamInferenceCost: upstream_inference_cost,
|
|
962
|
-
createdAt: created_at,
|
|
963
|
-
isByok: is_byok,
|
|
964
|
-
providerName: provider_name,
|
|
965
|
-
finishReason: finish_reason,
|
|
966
|
-
generationTime: generation_time,
|
|
967
|
-
promptTokens: native_tokens_prompt,
|
|
968
|
-
completionTokens: native_tokens_completion,
|
|
969
|
-
reasoningTokens: native_tokens_reasoning,
|
|
970
|
-
cachedTokens: native_tokens_cached,
|
|
971
|
-
cacheCreationTokens: native_tokens_cache_creation,
|
|
972
|
-
billableWebSearchCalls: billable_web_search_calls
|
|
973
|
-
})
|
|
974
|
-
)
|
|
975
|
-
}).transform(({ data }) => data)
|
|
976
|
-
)
|
|
977
|
-
);
|
|
978
|
-
|
|
979
|
-
// src/gateway-language-model.ts
|
|
980
|
-
import {
|
|
981
|
-
combineHeaders,
|
|
982
|
-
createEventSourceResponseHandler,
|
|
983
|
-
createJsonErrorResponseHandler as createJsonErrorResponseHandler4,
|
|
984
|
-
createJsonResponseHandler as createJsonResponseHandler4,
|
|
985
|
-
getErrorMessage as getErrorMessage4,
|
|
986
|
-
postJsonToApi,
|
|
987
|
-
resolve as resolve4,
|
|
988
|
-
serializeModelOptions,
|
|
989
|
-
WORKFLOW_SERIALIZE,
|
|
990
|
-
WORKFLOW_DESERIALIZE
|
|
991
|
-
} from "@ai-sdk/provider-utils";
|
|
992
|
-
var GatewayLanguageModel = class _GatewayLanguageModel {
|
|
993
|
-
constructor(modelId, config) {
|
|
994
|
-
this.modelId = modelId;
|
|
995
|
-
this.config = config;
|
|
996
|
-
this.specificationVersion = "v4";
|
|
997
|
-
this.supportedUrls = { "*/*": [/.*/] };
|
|
998
|
-
}
|
|
999
|
-
static [WORKFLOW_SERIALIZE](model) {
|
|
1000
|
-
return serializeModelOptions({
|
|
1001
|
-
modelId: model.modelId,
|
|
1002
|
-
config: model.config
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
static [WORKFLOW_DESERIALIZE](options) {
|
|
1006
|
-
return new _GatewayLanguageModel(options.modelId, options.config);
|
|
1007
|
-
}
|
|
1008
|
-
get provider() {
|
|
1009
|
-
return this.config.provider;
|
|
1010
|
-
}
|
|
1011
|
-
async getArgs(options) {
|
|
1012
|
-
const { abortSignal: _abortSignal, ...optionsWithoutSignal } = options;
|
|
1013
|
-
return {
|
|
1014
|
-
args: this.maybeEncodeFileParts(optionsWithoutSignal),
|
|
1015
|
-
warnings: []
|
|
1016
|
-
};
|
|
1017
|
-
}
|
|
1018
|
-
async doGenerate(options) {
|
|
1019
|
-
const { args, warnings } = await this.getArgs(options);
|
|
1020
|
-
const { abortSignal } = options;
|
|
1021
|
-
const resolvedHeaders = this.config.headers ? await resolve4(this.config.headers) : void 0;
|
|
1022
|
-
try {
|
|
1023
|
-
const {
|
|
1024
|
-
responseHeaders,
|
|
1025
|
-
value: responseBody,
|
|
1026
|
-
rawValue: rawResponse
|
|
1027
|
-
} = await postJsonToApi({
|
|
1028
|
-
url: this.getUrl(),
|
|
1029
|
-
headers: combineHeaders(
|
|
1030
|
-
resolvedHeaders,
|
|
1031
|
-
options.headers,
|
|
1032
|
-
this.getModelConfigHeaders(this.modelId, false),
|
|
1033
|
-
await resolve4(this.config.o11yHeaders)
|
|
1034
|
-
),
|
|
1035
|
-
body: args,
|
|
1036
|
-
successfulResponseHandler: createJsonResponseHandler4(z.any()),
|
|
1037
|
-
failedResponseHandler: createJsonErrorResponseHandler4({
|
|
1038
|
-
errorSchema: z.any(),
|
|
1039
|
-
errorToMessage: (data) => {
|
|
1040
|
-
var _a11;
|
|
1041
|
-
return (_a11 = getErrorMessage4(data)) != null ? _a11 : "unknown error";
|
|
1042
|
-
}
|
|
1043
|
-
}),
|
|
1044
|
-
...abortSignal && { abortSignal },
|
|
1045
|
-
fetch: this.config.fetch
|
|
1046
|
-
});
|
|
1047
|
-
return {
|
|
1048
|
-
...responseBody,
|
|
1049
|
-
request: { body: args },
|
|
1050
|
-
response: { headers: responseHeaders, body: rawResponse },
|
|
1051
|
-
warnings
|
|
1052
|
-
};
|
|
1053
|
-
} catch (error) {
|
|
1054
|
-
throw await asGatewayError(
|
|
1055
|
-
error,
|
|
1056
|
-
await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
|
|
1057
|
-
);
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
async doStream(options) {
|
|
1061
|
-
const { args, warnings } = await this.getArgs(options);
|
|
1062
|
-
const { abortSignal } = options;
|
|
1063
|
-
const resolvedHeaders = this.config.headers ? await resolve4(this.config.headers) : void 0;
|
|
1064
|
-
try {
|
|
1065
|
-
const { value: response, responseHeaders } = await postJsonToApi({
|
|
1066
|
-
url: this.getUrl(),
|
|
1067
|
-
headers: combineHeaders(
|
|
1068
|
-
resolvedHeaders,
|
|
1069
|
-
options.headers,
|
|
1070
|
-
this.getModelConfigHeaders(this.modelId, true),
|
|
1071
|
-
await resolve4(this.config.o11yHeaders)
|
|
1072
|
-
),
|
|
1073
|
-
body: args,
|
|
1074
|
-
successfulResponseHandler: createEventSourceResponseHandler(z.any()),
|
|
1075
|
-
failedResponseHandler: createJsonErrorResponseHandler4({
|
|
1076
|
-
errorSchema: z.any(),
|
|
1077
|
-
errorToMessage: (data) => {
|
|
1078
|
-
var _a11;
|
|
1079
|
-
return (_a11 = getErrorMessage4(data)) != null ? _a11 : "unknown error";
|
|
1080
|
-
}
|
|
1081
|
-
}),
|
|
1082
|
-
...abortSignal && { abortSignal },
|
|
1083
|
-
fetch: this.config.fetch
|
|
1084
|
-
});
|
|
1085
|
-
return {
|
|
1086
|
-
stream: response.pipeThrough(
|
|
1087
|
-
new TransformStream({
|
|
1088
|
-
start(controller) {
|
|
1089
|
-
if (warnings.length > 0) {
|
|
1090
|
-
controller.enqueue({ type: "stream-start", warnings });
|
|
1091
|
-
}
|
|
1092
|
-
},
|
|
1093
|
-
transform(chunk, controller) {
|
|
1094
|
-
if (chunk.success) {
|
|
1095
|
-
const streamPart = chunk.value;
|
|
1096
|
-
if (streamPart.type === "raw" && !options.includeRawChunks) {
|
|
1097
|
-
return;
|
|
1098
|
-
}
|
|
1099
|
-
if (streamPart.type === "response-metadata" && streamPart.timestamp && typeof streamPart.timestamp === "string") {
|
|
1100
|
-
streamPart.timestamp = new Date(streamPart.timestamp);
|
|
1101
|
-
}
|
|
1102
|
-
controller.enqueue(streamPart);
|
|
1103
|
-
} else {
|
|
1104
|
-
controller.error(
|
|
1105
|
-
chunk.error
|
|
1106
|
-
);
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
})
|
|
1110
|
-
),
|
|
1111
|
-
request: { body: args },
|
|
1112
|
-
response: { headers: responseHeaders }
|
|
1113
|
-
};
|
|
1114
|
-
} catch (error) {
|
|
1115
|
-
throw await asGatewayError(
|
|
1116
|
-
error,
|
|
1117
|
-
await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
|
|
1118
|
-
);
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
/**
|
|
1122
|
-
* Encodes inline `Uint8Array` file data to a base64 string in place.
|
|
1123
|
-
* @param options - The options to encode.
|
|
1124
|
-
* @returns The options with the file data encoded.
|
|
1125
|
-
*/
|
|
1126
|
-
maybeEncodeFileParts(options) {
|
|
1127
|
-
for (const message of options.prompt) {
|
|
1128
|
-
if (!Array.isArray(message.content)) {
|
|
1129
|
-
continue;
|
|
1130
|
-
}
|
|
1131
|
-
for (const part of message.content) {
|
|
1132
|
-
if (part.type === "file" || part.type === "reasoning-file") {
|
|
1133
|
-
part.data = maybeBase64EncodeFileData(part.data);
|
|
1134
|
-
} else if (part.type === "tool-result" && part.output.type === "content") {
|
|
1135
|
-
for (const contentPart of part.output.value) {
|
|
1136
|
-
if (contentPart.type === "file") {
|
|
1137
|
-
contentPart.data = maybeBase64EncodeFileData(contentPart.data);
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
}
|
|
1143
|
-
return options;
|
|
1144
|
-
}
|
|
1145
|
-
getUrl() {
|
|
1146
|
-
return `${this.config.baseURL}/language-model`;
|
|
1147
|
-
}
|
|
1148
|
-
getModelConfigHeaders(modelId, streaming) {
|
|
1149
|
-
return {
|
|
1150
|
-
"ai-language-model-specification-version": "4",
|
|
1151
|
-
"ai-language-model-id": modelId,
|
|
1152
|
-
"ai-language-model-streaming": String(streaming)
|
|
1153
|
-
};
|
|
1154
|
-
}
|
|
1155
|
-
};
|
|
1156
|
-
function maybeBase64EncodeFileData(data) {
|
|
1157
|
-
if (data.type === "data") {
|
|
1158
|
-
const bytes = data.data;
|
|
1159
|
-
if (bytes instanceof Uint8Array) {
|
|
1160
|
-
return { ...data, data: Buffer.from(bytes).toString("base64") };
|
|
1161
|
-
}
|
|
1162
|
-
}
|
|
1163
|
-
return data;
|
|
1164
|
-
}
|
|
1165
|
-
|
|
1166
|
-
// src/gateway-embedding-model.ts
|
|
1167
|
-
import {
|
|
1168
|
-
combineHeaders as combineHeaders2,
|
|
1169
|
-
createJsonErrorResponseHandler as createJsonErrorResponseHandler5,
|
|
1170
|
-
createJsonResponseHandler as createJsonResponseHandler5,
|
|
1171
|
-
getErrorMessage as getErrorMessage5,
|
|
1172
|
-
lazySchema as lazySchema8,
|
|
1173
|
-
postJsonToApi as postJsonToApi2,
|
|
1174
|
-
resolve as resolve5,
|
|
1175
|
-
serializeModelOptions as serializeModelOptions2,
|
|
1176
|
-
WORKFLOW_SERIALIZE as WORKFLOW_SERIALIZE2,
|
|
1177
|
-
WORKFLOW_DESERIALIZE as WORKFLOW_DESERIALIZE2,
|
|
1178
|
-
zodSchema as zodSchema8
|
|
1179
|
-
} from "@ai-sdk/provider-utils";
|
|
1180
|
-
var GatewayEmbeddingModel = class _GatewayEmbeddingModel {
|
|
1181
|
-
constructor(modelId, config) {
|
|
1182
|
-
this.modelId = modelId;
|
|
1183
|
-
this.config = config;
|
|
1184
|
-
this.specificationVersion = "v4";
|
|
1185
|
-
this.maxEmbeddingsPerCall = 2048;
|
|
1186
|
-
this.supportsParallelCalls = true;
|
|
1187
|
-
}
|
|
1188
|
-
static [WORKFLOW_SERIALIZE2](model) {
|
|
1189
|
-
return serializeModelOptions2({
|
|
1190
|
-
modelId: model.modelId,
|
|
1191
|
-
config: model.config
|
|
1192
|
-
});
|
|
1193
|
-
}
|
|
1194
|
-
static [WORKFLOW_DESERIALIZE2](options) {
|
|
1195
|
-
return new _GatewayEmbeddingModel(options.modelId, options.config);
|
|
1196
|
-
}
|
|
1197
|
-
get provider() {
|
|
1198
|
-
return this.config.provider;
|
|
1199
|
-
}
|
|
1200
|
-
async doEmbed({
|
|
1201
|
-
values,
|
|
1202
|
-
headers,
|
|
1203
|
-
abortSignal,
|
|
1204
|
-
providerOptions
|
|
1205
|
-
}) {
|
|
1206
|
-
var _a11, _b11;
|
|
1207
|
-
const resolvedHeaders = this.config.headers ? await resolve5(this.config.headers) : void 0;
|
|
1208
|
-
try {
|
|
1209
|
-
const {
|
|
1210
|
-
responseHeaders,
|
|
1211
|
-
value: responseBody,
|
|
1212
|
-
rawValue
|
|
1213
|
-
} = await postJsonToApi2({
|
|
1214
|
-
url: this.getUrl(),
|
|
1215
|
-
headers: combineHeaders2(
|
|
1216
|
-
resolvedHeaders,
|
|
1217
|
-
headers != null ? headers : {},
|
|
1218
|
-
this.getModelConfigHeaders(),
|
|
1219
|
-
await resolve5(this.config.o11yHeaders)
|
|
1220
|
-
),
|
|
1221
|
-
body: {
|
|
1222
|
-
values,
|
|
1223
|
-
...providerOptions ? { providerOptions } : {}
|
|
1224
|
-
},
|
|
1225
|
-
successfulResponseHandler: createJsonResponseHandler5(
|
|
1226
|
-
gatewayEmbeddingResponseSchema
|
|
1227
|
-
),
|
|
1228
|
-
failedResponseHandler: createJsonErrorResponseHandler5({
|
|
1229
|
-
errorSchema: z.any(),
|
|
1230
|
-
errorToMessage: (data) => {
|
|
1231
|
-
var _a12;
|
|
1232
|
-
return (_a12 = getErrorMessage5(data)) != null ? _a12 : "unknown error";
|
|
1233
|
-
}
|
|
1234
|
-
}),
|
|
1235
|
-
...abortSignal && { abortSignal },
|
|
1236
|
-
fetch: this.config.fetch
|
|
1237
|
-
});
|
|
1238
|
-
return {
|
|
1239
|
-
embeddings: responseBody.embeddings,
|
|
1240
|
-
usage: (_a11 = responseBody.usage) != null ? _a11 : void 0,
|
|
1241
|
-
providerMetadata: responseBody.providerMetadata,
|
|
1242
|
-
response: { headers: responseHeaders, body: rawValue },
|
|
1243
|
-
warnings: (_b11 = responseBody.warnings) != null ? _b11 : []
|
|
1244
|
-
};
|
|
1245
|
-
} catch (error) {
|
|
1246
|
-
throw await asGatewayError(
|
|
1247
|
-
error,
|
|
1248
|
-
await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
|
|
1249
|
-
);
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
getUrl() {
|
|
1253
|
-
return `${this.config.baseURL}/embedding-model`;
|
|
1254
|
-
}
|
|
1255
|
-
getModelConfigHeaders() {
|
|
1256
|
-
return {
|
|
1257
|
-
"ai-embedding-model-specification-version": "4",
|
|
1258
|
-
"ai-model-id": this.modelId
|
|
1259
|
-
};
|
|
1260
|
-
}
|
|
1261
|
-
};
|
|
1262
|
-
var gatewayEmbeddingWarningSchema = z.discriminatedUnion("type", [
|
|
1263
|
-
z.object({
|
|
1264
|
-
type: z.literal("unsupported"),
|
|
1265
|
-
feature: z.string(),
|
|
1266
|
-
details: z.string().optional()
|
|
1267
|
-
}),
|
|
1268
|
-
z.object({
|
|
1269
|
-
type: z.literal("compatibility"),
|
|
1270
|
-
feature: z.string(),
|
|
1271
|
-
details: z.string().optional()
|
|
1272
|
-
}),
|
|
1273
|
-
z.object({
|
|
1274
|
-
type: z.literal("deprecated"),
|
|
1275
|
-
setting: z.string(),
|
|
1276
|
-
message: z.string()
|
|
1277
|
-
}),
|
|
1278
|
-
z.object({
|
|
1279
|
-
type: z.literal("other"),
|
|
1280
|
-
message: z.string()
|
|
1281
|
-
})
|
|
1282
|
-
]);
|
|
1283
|
-
var gatewayEmbeddingResponseSchema = lazySchema8(
|
|
1284
|
-
() => zodSchema8(
|
|
1285
|
-
z.object({
|
|
1286
|
-
embeddings: z.array(z.array(z.number())),
|
|
1287
|
-
usage: z.object({ tokens: z.number() }).nullish(),
|
|
1288
|
-
warnings: z.array(gatewayEmbeddingWarningSchema).optional(),
|
|
1289
|
-
providerMetadata: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
|
|
1290
|
-
})
|
|
1291
|
-
)
|
|
1292
|
-
);
|
|
1293
|
-
|
|
1294
|
-
// src/gateway-image-model.ts
|
|
1295
|
-
import {
|
|
1296
|
-
combineHeaders as combineHeaders3,
|
|
1297
|
-
convertUint8ArrayToBase64,
|
|
1298
|
-
createJsonErrorResponseHandler as createJsonErrorResponseHandler6,
|
|
1299
|
-
createJsonResponseHandler as createJsonResponseHandler6,
|
|
1300
|
-
getErrorMessage as getErrorMessage6,
|
|
1301
|
-
postJsonToApi as postJsonToApi3,
|
|
1302
|
-
resolve as resolve6,
|
|
1303
|
-
serializeModelOptions as serializeModelOptions3,
|
|
1304
|
-
WORKFLOW_SERIALIZE as WORKFLOW_SERIALIZE3,
|
|
1305
|
-
WORKFLOW_DESERIALIZE as WORKFLOW_DESERIALIZE3
|
|
1306
|
-
} from "@ai-sdk/provider-utils";
|
|
1307
|
-
var GatewayImageModel = class _GatewayImageModel {
|
|
1308
|
-
constructor(modelId, config) {
|
|
1309
|
-
this.modelId = modelId;
|
|
1310
|
-
this.config = config;
|
|
1311
|
-
this.specificationVersion = "v4";
|
|
1312
|
-
// Set a very large number to prevent client-side splitting of requests
|
|
1313
|
-
this.maxImagesPerCall = Number.MAX_SAFE_INTEGER;
|
|
1314
|
-
}
|
|
1315
|
-
static [WORKFLOW_SERIALIZE3](model) {
|
|
1316
|
-
return serializeModelOptions3({
|
|
1317
|
-
modelId: model.modelId,
|
|
1318
|
-
config: model.config
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
static [WORKFLOW_DESERIALIZE3](options) {
|
|
1322
|
-
return new _GatewayImageModel(options.modelId, options.config);
|
|
1323
|
-
}
|
|
1324
|
-
get provider() {
|
|
1325
|
-
return this.config.provider;
|
|
1326
|
-
}
|
|
1327
|
-
async doGenerate({
|
|
1328
|
-
prompt,
|
|
1329
|
-
n,
|
|
1330
|
-
size,
|
|
1331
|
-
aspectRatio,
|
|
1332
|
-
seed,
|
|
1333
|
-
files,
|
|
1334
|
-
mask,
|
|
1335
|
-
providerOptions,
|
|
1336
|
-
headers,
|
|
1337
|
-
abortSignal
|
|
1338
|
-
}) {
|
|
1339
|
-
var _a11, _b11, _c, _d;
|
|
1340
|
-
const resolvedHeaders = this.config.headers ? await resolve6(this.config.headers) : void 0;
|
|
1341
|
-
try {
|
|
1342
|
-
const { responseHeaders, value: responseBody } = await postJsonToApi3({
|
|
1343
|
-
url: this.getUrl(),
|
|
1344
|
-
headers: combineHeaders3(
|
|
1345
|
-
resolvedHeaders,
|
|
1346
|
-
headers != null ? headers : {},
|
|
1347
|
-
this.getModelConfigHeaders(),
|
|
1348
|
-
await resolve6(this.config.o11yHeaders)
|
|
1349
|
-
),
|
|
1350
|
-
body: {
|
|
1351
|
-
prompt,
|
|
1352
|
-
n,
|
|
1353
|
-
...size && { size },
|
|
1354
|
-
...aspectRatio && { aspectRatio },
|
|
1355
|
-
...seed && { seed },
|
|
1356
|
-
...providerOptions && { providerOptions },
|
|
1357
|
-
...files && {
|
|
1358
|
-
files: files.map((file) => maybeEncodeImageFile(file))
|
|
1359
|
-
},
|
|
1360
|
-
...mask && { mask: maybeEncodeImageFile(mask) }
|
|
1361
|
-
},
|
|
1362
|
-
successfulResponseHandler: createJsonResponseHandler6(
|
|
1363
|
-
gatewayImageResponseSchema
|
|
1364
|
-
),
|
|
1365
|
-
failedResponseHandler: createJsonErrorResponseHandler6({
|
|
1366
|
-
errorSchema: z.any(),
|
|
1367
|
-
errorToMessage: (data) => {
|
|
1368
|
-
var _a12;
|
|
1369
|
-
return (_a12 = getErrorMessage6(data)) != null ? _a12 : "unknown error";
|
|
1370
|
-
}
|
|
1371
|
-
}),
|
|
1372
|
-
...abortSignal && { abortSignal },
|
|
1373
|
-
fetch: this.config.fetch
|
|
1374
|
-
});
|
|
1375
|
-
return {
|
|
1376
|
-
images: responseBody.images,
|
|
1377
|
-
// Always base64 strings from server
|
|
1378
|
-
warnings: (_a11 = responseBody.warnings) != null ? _a11 : [],
|
|
1379
|
-
providerMetadata: responseBody.providerMetadata,
|
|
1380
|
-
response: {
|
|
1381
|
-
timestamp: /* @__PURE__ */ new Date(),
|
|
1382
|
-
modelId: this.modelId,
|
|
1383
|
-
headers: responseHeaders
|
|
1384
|
-
},
|
|
1385
|
-
...responseBody.usage != null && {
|
|
1386
|
-
usage: {
|
|
1387
|
-
inputTokens: (_b11 = responseBody.usage.inputTokens) != null ? _b11 : void 0,
|
|
1388
|
-
outputTokens: (_c = responseBody.usage.outputTokens) != null ? _c : void 0,
|
|
1389
|
-
totalTokens: (_d = responseBody.usage.totalTokens) != null ? _d : void 0
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
};
|
|
1393
|
-
} catch (error) {
|
|
1394
|
-
throw await asGatewayError(
|
|
1395
|
-
error,
|
|
1396
|
-
await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
|
|
1397
|
-
);
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
getUrl() {
|
|
1401
|
-
return `${this.config.baseURL}/image-model`;
|
|
1402
|
-
}
|
|
1403
|
-
getModelConfigHeaders() {
|
|
1404
|
-
return {
|
|
1405
|
-
"ai-image-model-specification-version": "4",
|
|
1406
|
-
"ai-model-id": this.modelId
|
|
1407
|
-
};
|
|
1408
|
-
}
|
|
1409
|
-
};
|
|
1410
|
-
function maybeEncodeImageFile(file) {
|
|
1411
|
-
if (file.type === "file" && file.data instanceof Uint8Array) {
|
|
1412
|
-
return {
|
|
1413
|
-
...file,
|
|
1414
|
-
data: convertUint8ArrayToBase64(file.data)
|
|
1415
|
-
};
|
|
1416
|
-
}
|
|
1417
|
-
return file;
|
|
1418
|
-
}
|
|
1419
|
-
var providerMetadataEntrySchema = z.object({
|
|
1420
|
-
images: z.array(z.unknown()).optional()
|
|
1421
|
-
}).catchall(z.unknown());
|
|
1422
|
-
var gatewayImageWarningSchema = z.discriminatedUnion("type", [
|
|
1423
|
-
z.object({
|
|
1424
|
-
type: z.literal("unsupported"),
|
|
1425
|
-
feature: z.string(),
|
|
1426
|
-
details: z.string().optional()
|
|
1427
|
-
}),
|
|
1428
|
-
z.object({
|
|
1429
|
-
type: z.literal("compatibility"),
|
|
1430
|
-
feature: z.string(),
|
|
1431
|
-
details: z.string().optional()
|
|
1432
|
-
}),
|
|
1433
|
-
z.object({
|
|
1434
|
-
type: z.literal("deprecated"),
|
|
1435
|
-
setting: z.string(),
|
|
1436
|
-
message: z.string()
|
|
1437
|
-
}),
|
|
1438
|
-
z.object({
|
|
1439
|
-
type: z.literal("other"),
|
|
1440
|
-
message: z.string()
|
|
1441
|
-
})
|
|
1442
|
-
]);
|
|
1443
|
-
var gatewayImageUsageSchema = z.object({
|
|
1444
|
-
inputTokens: z.number().nullish(),
|
|
1445
|
-
outputTokens: z.number().nullish(),
|
|
1446
|
-
totalTokens: z.number().nullish()
|
|
1447
|
-
});
|
|
1448
|
-
var gatewayImageResponseSchema = z.object({
|
|
1449
|
-
images: z.array(z.string()),
|
|
1450
|
-
// Always base64 strings over the wire
|
|
1451
|
-
warnings: z.array(gatewayImageWarningSchema).optional(),
|
|
1452
|
-
providerMetadata: z.record(z.string(), providerMetadataEntrySchema).optional(),
|
|
1453
|
-
usage: gatewayImageUsageSchema.optional()
|
|
1454
|
-
});
|
|
1455
|
-
|
|
1456
|
-
// src/gateway-video-model.ts
|
|
1457
|
-
import {
|
|
1458
|
-
APICallError as APICallError2,
|
|
1459
|
-
getErrorMessage as getErrorMessage7
|
|
1460
|
-
} from "@ai-sdk/provider";
|
|
1461
|
-
import {
|
|
1462
|
-
combineHeaders as combineHeaders4,
|
|
1463
|
-
convertUint8ArrayToBase64 as convertUint8ArrayToBase642,
|
|
1464
|
-
createJsonErrorResponseHandler as createJsonErrorResponseHandler7,
|
|
1465
|
-
createJsonResponseHandler as createJsonResponseHandler7,
|
|
1466
|
-
parseJsonEventStream,
|
|
1467
|
-
postJsonToApi as postJsonToApi4,
|
|
1468
|
-
resolve as resolve7
|
|
1469
|
-
} from "@ai-sdk/provider-utils";
|
|
1470
|
-
var GatewayVideoModel = class {
|
|
1471
|
-
constructor(modelId, config) {
|
|
1472
|
-
this.modelId = modelId;
|
|
1473
|
-
this.config = config;
|
|
1474
|
-
this.specificationVersion = "v4";
|
|
1475
|
-
// Set a very large number to prevent client-side splitting of requests
|
|
1476
|
-
this.maxVideosPerCall = Number.MAX_SAFE_INTEGER;
|
|
1477
|
-
}
|
|
1478
|
-
get provider() {
|
|
1479
|
-
return this.config.provider;
|
|
1480
|
-
}
|
|
1481
|
-
async doGenerate(options) {
|
|
1482
|
-
var _a11, _b11;
|
|
1483
|
-
const { headers, abortSignal } = options;
|
|
1484
|
-
const resolvedHeaders = this.config.headers ? await resolve7(this.config.headers) : void 0;
|
|
1485
|
-
try {
|
|
1486
|
-
const { responseHeaders, value: responseBody } = await postJsonToApi4({
|
|
1487
|
-
url: this.getUrl(),
|
|
1488
|
-
headers: combineHeaders4(
|
|
1489
|
-
resolvedHeaders,
|
|
1490
|
-
headers != null ? headers : {},
|
|
1491
|
-
this.getModelConfigHeaders(),
|
|
1492
|
-
await resolve7(this.config.o11yHeaders),
|
|
1493
|
-
{ accept: "text/event-stream" }
|
|
1494
|
-
),
|
|
1495
|
-
body: this.buildRequestBody(options),
|
|
1496
|
-
successfulResponseHandler: async ({
|
|
1497
|
-
response,
|
|
1498
|
-
url,
|
|
1499
|
-
requestBodyValues
|
|
1500
|
-
}) => {
|
|
1501
|
-
if (response.body == null) {
|
|
1502
|
-
throw new APICallError2({
|
|
1503
|
-
message: "SSE response body is empty",
|
|
1504
|
-
url,
|
|
1505
|
-
requestBodyValues,
|
|
1506
|
-
statusCode: response.status
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
const eventStream = parseJsonEventStream({
|
|
1510
|
-
stream: response.body,
|
|
1511
|
-
schema: gatewayVideoEventSchema
|
|
1512
|
-
});
|
|
1513
|
-
const reader = eventStream.getReader();
|
|
1514
|
-
const { done, value: parseResult } = await reader.read();
|
|
1515
|
-
reader.releaseLock();
|
|
1516
|
-
if (done || !parseResult) {
|
|
1517
|
-
throw new APICallError2({
|
|
1518
|
-
message: "SSE stream ended without a data event",
|
|
1519
|
-
url,
|
|
1520
|
-
requestBodyValues,
|
|
1521
|
-
statusCode: response.status
|
|
1522
|
-
});
|
|
1523
|
-
}
|
|
1524
|
-
if (!parseResult.success) {
|
|
1525
|
-
throw new APICallError2({
|
|
1526
|
-
message: "Failed to parse video SSE event",
|
|
1527
|
-
cause: parseResult.error,
|
|
1528
|
-
url,
|
|
1529
|
-
requestBodyValues,
|
|
1530
|
-
statusCode: response.status
|
|
1531
|
-
});
|
|
1532
|
-
}
|
|
1533
|
-
const event = parseResult.value;
|
|
1534
|
-
if (event.type === "error") {
|
|
1535
|
-
throw new APICallError2({
|
|
1536
|
-
message: event.message,
|
|
1537
|
-
statusCode: event.statusCode,
|
|
1538
|
-
url,
|
|
1539
|
-
requestBodyValues,
|
|
1540
|
-
responseHeaders: Object.fromEntries([...response.headers]),
|
|
1541
|
-
responseBody: JSON.stringify(event),
|
|
1542
|
-
data: {
|
|
1543
|
-
error: {
|
|
1544
|
-
message: event.message,
|
|
1545
|
-
type: event.errorType,
|
|
1546
|
-
param: event.param
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
});
|
|
1550
|
-
}
|
|
1551
|
-
return {
|
|
1552
|
-
value: {
|
|
1553
|
-
videos: event.videos,
|
|
1554
|
-
warnings: event.warnings,
|
|
1555
|
-
providerMetadata: event.providerMetadata
|
|
1556
|
-
},
|
|
1557
|
-
responseHeaders: Object.fromEntries([...response.headers])
|
|
1558
|
-
};
|
|
1559
|
-
},
|
|
1560
|
-
failedResponseHandler: createJsonErrorResponseHandler7({
|
|
1561
|
-
errorSchema: z.any(),
|
|
1562
|
-
errorToMessage: (data) => {
|
|
1563
|
-
var _a12;
|
|
1564
|
-
return (_a12 = getErrorMessage7(data)) != null ? _a12 : "unknown error";
|
|
1565
|
-
}
|
|
1566
|
-
}),
|
|
1567
|
-
...abortSignal && { abortSignal },
|
|
1568
|
-
fetch: this.config.fetch
|
|
1569
|
-
});
|
|
1570
|
-
return {
|
|
1571
|
-
videos: responseBody.videos,
|
|
1572
|
-
warnings: (_a11 = responseBody.warnings) != null ? _a11 : [],
|
|
1573
|
-
providerMetadata: (_b11 = responseBody.providerMetadata) != null ? _b11 : void 0,
|
|
1574
|
-
response: {
|
|
1575
|
-
timestamp: /* @__PURE__ */ new Date(),
|
|
1576
|
-
modelId: this.modelId,
|
|
1577
|
-
headers: responseHeaders
|
|
1578
|
-
}
|
|
1579
|
-
};
|
|
1580
|
-
} catch (error) {
|
|
1581
|
-
throw await asGatewayError(
|
|
1582
|
-
error,
|
|
1583
|
-
await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
|
|
1584
|
-
);
|
|
1585
|
-
}
|
|
1586
|
-
}
|
|
1587
|
-
// `handleWebhookOption` is intentionally NOT implemented. The Gateway's
|
|
1588
|
-
// async video jobs are polling-first: it does not expose a provider->SDK
|
|
1589
|
-
// webhook completion channel. If this method were present, `generateVideo`
|
|
1590
|
-
// would forward a webhook URL and await a notification that never arrives.
|
|
1591
|
-
// `doStart` still forwards the spec's `webhookUrl` — as the Gateway's
|
|
1592
|
-
// `callbackUrl` wire field (its completion-webhook contract; unknown body
|
|
1593
|
-
// keys are stripped server-side). Enabling webhooks later requires adding
|
|
1594
|
-
// `handleWebhookOption` here plus handling the Gateway's HMAC-signed
|
|
1595
|
-
// delivery format; the wire field is already the right one.
|
|
1596
|
-
async doStart(options) {
|
|
1597
|
-
var _a11, _b11;
|
|
1598
|
-
const { headers, abortSignal, webhookUrl } = options;
|
|
1599
|
-
const resolvedHeaders = this.config.headers ? await resolve7(this.config.headers) : void 0;
|
|
1600
|
-
try {
|
|
1601
|
-
const { responseHeaders, value: responseBody } = await postJsonToApi4({
|
|
1602
|
-
url: this.getStartUrl(),
|
|
1603
|
-
headers: combineHeaders4(
|
|
1604
|
-
resolvedHeaders,
|
|
1605
|
-
headers != null ? headers : {},
|
|
1606
|
-
this.getModelConfigHeaders(),
|
|
1607
|
-
await resolve7(this.config.o11yHeaders)
|
|
1608
|
-
),
|
|
1609
|
-
body: {
|
|
1610
|
-
...this.buildRequestBody(options),
|
|
1611
|
-
// The spec option is `webhookUrl`; the Gateway's wire contract for a
|
|
1612
|
-
// completion webhook is `callbackUrl`.
|
|
1613
|
-
...webhookUrl && { callbackUrl: webhookUrl }
|
|
1614
|
-
},
|
|
1615
|
-
successfulResponseHandler: createJsonResponseHandler7(
|
|
1616
|
-
gatewayVideoStartResponseSchema
|
|
1617
|
-
),
|
|
1618
|
-
failedResponseHandler: createJsonErrorResponseHandler7({
|
|
1619
|
-
errorSchema: z.any(),
|
|
1620
|
-
errorToMessage: (data) => {
|
|
1621
|
-
var _a12;
|
|
1622
|
-
return (_a12 = getErrorMessage7(data)) != null ? _a12 : "unknown error";
|
|
1623
|
-
}
|
|
1624
|
-
}),
|
|
1625
|
-
...abortSignal && { abortSignal },
|
|
1626
|
-
fetch: this.config.fetch
|
|
1627
|
-
});
|
|
1628
|
-
return {
|
|
1629
|
-
operation: responseBody.operation,
|
|
1630
|
-
warnings: (_a11 = responseBody.warnings) != null ? _a11 : [],
|
|
1631
|
-
providerMetadata: (_b11 = responseBody.providerMetadata) != null ? _b11 : void 0,
|
|
1632
|
-
response: {
|
|
1633
|
-
timestamp: /* @__PURE__ */ new Date(),
|
|
1634
|
-
modelId: this.modelId,
|
|
1635
|
-
headers: responseHeaders
|
|
1636
|
-
}
|
|
1637
|
-
};
|
|
1638
|
-
} catch (error) {
|
|
1639
|
-
throw await asGatewayError(
|
|
1640
|
-
error,
|
|
1641
|
-
await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
|
|
1642
|
-
);
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
async doStatus({
|
|
1646
|
-
operation,
|
|
1647
|
-
abortSignal,
|
|
1648
|
-
headers
|
|
1649
|
-
}) {
|
|
1650
|
-
var _a11, _b11, _c, _d, _e, _f;
|
|
1651
|
-
const resolvedHeaders = this.config.headers ? await resolve7(this.config.headers) : void 0;
|
|
1652
|
-
try {
|
|
1653
|
-
const { responseHeaders, value: responseBody } = await postJsonToApi4({
|
|
1654
|
-
url: this.getStatusUrl(),
|
|
1655
|
-
headers: combineHeaders4(
|
|
1656
|
-
resolvedHeaders,
|
|
1657
|
-
headers != null ? headers : {},
|
|
1658
|
-
this.getModelConfigHeaders(),
|
|
1659
|
-
await resolve7(this.config.o11yHeaders)
|
|
1660
|
-
),
|
|
1661
|
-
body: { operation },
|
|
1662
|
-
successfulResponseHandler: createJsonResponseHandler7(
|
|
1663
|
-
gatewayVideoStatusResponseSchema
|
|
1664
|
-
),
|
|
1665
|
-
failedResponseHandler: createJsonErrorResponseHandler7({
|
|
1666
|
-
errorSchema: z.any(),
|
|
1667
|
-
errorToMessage: (data) => {
|
|
1668
|
-
var _a12;
|
|
1669
|
-
return (_a12 = getErrorMessage7(data)) != null ? _a12 : "unknown error";
|
|
1670
|
-
}
|
|
1671
|
-
}),
|
|
1672
|
-
...abortSignal && { abortSignal },
|
|
1673
|
-
fetch: this.config.fetch
|
|
1674
|
-
});
|
|
1675
|
-
const response = {
|
|
1676
|
-
timestamp: /* @__PURE__ */ new Date(),
|
|
1677
|
-
modelId: this.modelId,
|
|
1678
|
-
headers: responseHeaders
|
|
1679
|
-
};
|
|
1680
|
-
if (responseBody.status === "completed") {
|
|
1681
|
-
return {
|
|
1682
|
-
status: "completed",
|
|
1683
|
-
videos: responseBody.videos,
|
|
1684
|
-
warnings: (_a11 = responseBody.warnings) != null ? _a11 : [],
|
|
1685
|
-
providerMetadata: (_b11 = responseBody.providerMetadata) != null ? _b11 : void 0,
|
|
1686
|
-
response
|
|
1687
|
-
};
|
|
1688
|
-
}
|
|
1689
|
-
if (responseBody.status === "error") {
|
|
1690
|
-
return {
|
|
1691
|
-
status: "error",
|
|
1692
|
-
error: responseBody.error,
|
|
1693
|
-
providerMetadata: (_c = responseBody.providerMetadata) != null ? _c : void 0,
|
|
1694
|
-
response
|
|
1695
|
-
};
|
|
1696
|
-
}
|
|
1697
|
-
if (responseBody.status === "cancelled") {
|
|
1698
|
-
return {
|
|
1699
|
-
status: "error",
|
|
1700
|
-
error: "Video generation was cancelled.",
|
|
1701
|
-
providerMetadata: (_d = responseBody.providerMetadata) != null ? _d : void 0,
|
|
1702
|
-
response
|
|
1703
|
-
};
|
|
1704
|
-
}
|
|
1705
|
-
return {
|
|
1706
|
-
status: "pending",
|
|
1707
|
-
warnings: (_e = responseBody.warnings) != null ? _e : [],
|
|
1708
|
-
providerMetadata: (_f = responseBody.providerMetadata) != null ? _f : void 0,
|
|
1709
|
-
response
|
|
1710
|
-
};
|
|
1711
|
-
} catch (error) {
|
|
1712
|
-
throw await asGatewayError(
|
|
1713
|
-
error,
|
|
1714
|
-
await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
|
|
1715
|
-
);
|
|
1716
|
-
}
|
|
1717
|
-
}
|
|
1718
|
-
buildRequestBody({
|
|
1719
|
-
prompt,
|
|
1720
|
-
n,
|
|
1721
|
-
aspectRatio,
|
|
1722
|
-
resolution,
|
|
1723
|
-
duration,
|
|
1724
|
-
fps,
|
|
1725
|
-
seed,
|
|
1726
|
-
generateAudio,
|
|
1727
|
-
image,
|
|
1728
|
-
frameImages,
|
|
1729
|
-
inputReferences,
|
|
1730
|
-
providerOptions
|
|
1731
|
-
}) {
|
|
1732
|
-
return {
|
|
1733
|
-
prompt,
|
|
1734
|
-
n,
|
|
1735
|
-
...aspectRatio && { aspectRatio },
|
|
1736
|
-
...resolution && { resolution },
|
|
1737
|
-
...duration && { duration },
|
|
1738
|
-
...fps && { fps },
|
|
1739
|
-
...seed && { seed },
|
|
1740
|
-
...generateAudio !== void 0 && { generateAudio },
|
|
1741
|
-
...providerOptions && { providerOptions },
|
|
1742
|
-
...image && { image: maybeEncodeVideoFile(image) },
|
|
1743
|
-
...frameImages && {
|
|
1744
|
-
frameImages: frameImages.map((frame) => ({
|
|
1745
|
-
...frame,
|
|
1746
|
-
image: maybeEncodeVideoFile(frame.image)
|
|
1747
|
-
}))
|
|
1748
|
-
},
|
|
1749
|
-
...inputReferences && {
|
|
1750
|
-
inputReferences: inputReferences.map(
|
|
1751
|
-
(reference) => maybeEncodeVideoFile(reference)
|
|
1752
|
-
)
|
|
1753
|
-
}
|
|
1754
|
-
};
|
|
1755
|
-
}
|
|
1756
|
-
getUrl() {
|
|
1757
|
-
return `${this.config.baseURL}/video-model`;
|
|
1758
|
-
}
|
|
1759
|
-
getStartUrl() {
|
|
1760
|
-
return `${this.config.baseURL}/video-model/start`;
|
|
1761
|
-
}
|
|
1762
|
-
getStatusUrl() {
|
|
1763
|
-
return `${this.config.baseURL}/video-model/status`;
|
|
1764
|
-
}
|
|
1765
|
-
getModelConfigHeaders() {
|
|
1766
|
-
return {
|
|
1767
|
-
"ai-video-model-specification-version": "4",
|
|
1768
|
-
"ai-model-id": this.modelId
|
|
1769
|
-
};
|
|
1770
|
-
}
|
|
1771
|
-
};
|
|
1772
|
-
function maybeEncodeVideoFile(file) {
|
|
1773
|
-
if (file.type === "file" && file.data instanceof Uint8Array) {
|
|
1774
|
-
return {
|
|
1775
|
-
...file,
|
|
1776
|
-
data: convertUint8ArrayToBase642(file.data)
|
|
1777
|
-
};
|
|
1778
|
-
}
|
|
1779
|
-
return file;
|
|
1780
|
-
}
|
|
1781
|
-
var providerMetadataEntrySchema2 = z.object({
|
|
1782
|
-
videos: z.array(z.unknown()).optional()
|
|
1783
|
-
}).catchall(z.unknown());
|
|
1784
|
-
var gatewayVideoDataSchema = z.union([
|
|
1785
|
-
z.object({
|
|
1786
|
-
type: z.literal("url"),
|
|
1787
|
-
url: z.string(),
|
|
1788
|
-
mediaType: z.string()
|
|
1789
|
-
}),
|
|
1790
|
-
z.object({
|
|
1791
|
-
type: z.literal("base64"),
|
|
1792
|
-
data: z.string(),
|
|
1793
|
-
mediaType: z.string()
|
|
1794
|
-
})
|
|
1795
|
-
]);
|
|
1796
|
-
var gatewayVideoWarningSchema = z.discriminatedUnion("type", [
|
|
1797
|
-
z.object({
|
|
1798
|
-
type: z.literal("unsupported"),
|
|
1799
|
-
feature: z.string(),
|
|
1800
|
-
details: z.string().optional()
|
|
1801
|
-
}),
|
|
1802
|
-
z.object({
|
|
1803
|
-
type: z.literal("compatibility"),
|
|
1804
|
-
feature: z.string(),
|
|
1805
|
-
details: z.string().optional()
|
|
1806
|
-
}),
|
|
1807
|
-
z.object({
|
|
1808
|
-
type: z.literal("deprecated"),
|
|
1809
|
-
setting: z.string(),
|
|
1810
|
-
message: z.string()
|
|
1811
|
-
}),
|
|
1812
|
-
z.object({
|
|
1813
|
-
type: z.literal("other"),
|
|
1814
|
-
message: z.string()
|
|
1815
|
-
})
|
|
1816
|
-
]);
|
|
1817
|
-
var gatewayVideoEventSchema = z.discriminatedUnion("type", [
|
|
1818
|
-
z.object({
|
|
1819
|
-
type: z.literal("result"),
|
|
1820
|
-
videos: z.array(gatewayVideoDataSchema),
|
|
1821
|
-
warnings: z.array(gatewayVideoWarningSchema).optional(),
|
|
1822
|
-
providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).optional()
|
|
1823
|
-
}),
|
|
1824
|
-
z.object({
|
|
1825
|
-
type: z.literal("error"),
|
|
1826
|
-
message: z.string(),
|
|
1827
|
-
errorType: z.string(),
|
|
1828
|
-
statusCode: z.number(),
|
|
1829
|
-
param: z.unknown().nullable()
|
|
1830
|
-
})
|
|
1831
|
-
]);
|
|
1832
|
-
var gatewayVideoStartResponseSchema = z.object({
|
|
1833
|
-
operation: z.unknown(),
|
|
1834
|
-
warnings: z.array(gatewayVideoWarningSchema).nullish(),
|
|
1835
|
-
providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).nullish()
|
|
1836
|
-
});
|
|
1837
|
-
var gatewayVideoStatusResponseSchema = z.discriminatedUnion("status", [
|
|
1838
|
-
z.object({
|
|
1839
|
-
status: z.literal("pending"),
|
|
1840
|
-
warnings: z.array(gatewayVideoWarningSchema).nullish(),
|
|
1841
|
-
providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).nullish()
|
|
1842
|
-
}),
|
|
1843
|
-
z.object({
|
|
1844
|
-
status: z.literal("completed"),
|
|
1845
|
-
videos: z.array(gatewayVideoDataSchema),
|
|
1846
|
-
warnings: z.array(gatewayVideoWarningSchema).nullish(),
|
|
1847
|
-
providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).nullish()
|
|
1848
|
-
}),
|
|
1849
|
-
z.object({
|
|
1850
|
-
status: z.literal("error"),
|
|
1851
|
-
error: z.string(),
|
|
1852
|
-
providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).nullish()
|
|
1853
|
-
}),
|
|
1854
|
-
z.object({
|
|
1855
|
-
status: z.literal("cancelled"),
|
|
1856
|
-
providerMetadata: z.record(z.string(), providerMetadataEntrySchema2).nullish()
|
|
1857
|
-
})
|
|
1858
|
-
]);
|
|
1859
|
-
|
|
1860
|
-
// src/gateway-reranking-model.ts
|
|
1861
|
-
import {
|
|
1862
|
-
combineHeaders as combineHeaders5,
|
|
1863
|
-
createJsonErrorResponseHandler as createJsonErrorResponseHandler8,
|
|
1864
|
-
createJsonResponseHandler as createJsonResponseHandler8,
|
|
1865
|
-
getErrorMessage as getErrorMessage8,
|
|
1866
|
-
lazySchema as lazySchema9,
|
|
1867
|
-
postJsonToApi as postJsonToApi5,
|
|
1868
|
-
resolve as resolve8,
|
|
1869
|
-
zodSchema as zodSchema9
|
|
1870
|
-
} from "@ai-sdk/provider-utils";
|
|
1871
|
-
var GatewayRerankingModel = class {
|
|
1872
|
-
constructor(modelId, config) {
|
|
1873
|
-
this.modelId = modelId;
|
|
1874
|
-
this.config = config;
|
|
1875
|
-
this.specificationVersion = "v4";
|
|
1876
|
-
}
|
|
1877
|
-
get provider() {
|
|
1878
|
-
return this.config.provider;
|
|
1879
|
-
}
|
|
1880
|
-
async doRerank({
|
|
1881
|
-
documents,
|
|
1882
|
-
query,
|
|
1883
|
-
topN,
|
|
1884
|
-
headers,
|
|
1885
|
-
abortSignal,
|
|
1886
|
-
providerOptions
|
|
1887
|
-
}) {
|
|
1888
|
-
var _a11;
|
|
1889
|
-
const resolvedHeaders = this.config.headers ? await resolve8(this.config.headers) : void 0;
|
|
1890
|
-
try {
|
|
1891
|
-
const {
|
|
1892
|
-
responseHeaders,
|
|
1893
|
-
value: responseBody,
|
|
1894
|
-
rawValue
|
|
1895
|
-
} = await postJsonToApi5({
|
|
1896
|
-
url: this.getUrl(),
|
|
1897
|
-
headers: combineHeaders5(
|
|
1898
|
-
resolvedHeaders,
|
|
1899
|
-
headers != null ? headers : {},
|
|
1900
|
-
this.getModelConfigHeaders(),
|
|
1901
|
-
await resolve8(this.config.o11yHeaders)
|
|
1902
|
-
),
|
|
1903
|
-
body: {
|
|
1904
|
-
documents,
|
|
1905
|
-
query,
|
|
1906
|
-
...topN != null ? { topN } : {},
|
|
1907
|
-
...providerOptions ? { providerOptions } : {}
|
|
1908
|
-
},
|
|
1909
|
-
successfulResponseHandler: createJsonResponseHandler8(
|
|
1910
|
-
gatewayRerankingResponseSchema
|
|
1911
|
-
),
|
|
1912
|
-
failedResponseHandler: createJsonErrorResponseHandler8({
|
|
1913
|
-
errorSchema: z.any(),
|
|
1914
|
-
errorToMessage: (data) => {
|
|
1915
|
-
var _a12;
|
|
1916
|
-
return (_a12 = getErrorMessage8(data)) != null ? _a12 : "unknown error";
|
|
1917
|
-
}
|
|
1918
|
-
}),
|
|
1919
|
-
...abortSignal && { abortSignal },
|
|
1920
|
-
fetch: this.config.fetch
|
|
1921
|
-
});
|
|
1922
|
-
return {
|
|
1923
|
-
ranking: responseBody.ranking,
|
|
1924
|
-
providerMetadata: responseBody.providerMetadata,
|
|
1925
|
-
response: { headers: responseHeaders, body: rawValue },
|
|
1926
|
-
warnings: (_a11 = responseBody.warnings) != null ? _a11 : []
|
|
1927
|
-
};
|
|
1928
|
-
} catch (error) {
|
|
1929
|
-
throw await asGatewayError(
|
|
1930
|
-
error,
|
|
1931
|
-
await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
|
|
1932
|
-
);
|
|
1933
|
-
}
|
|
1934
|
-
}
|
|
1935
|
-
getUrl() {
|
|
1936
|
-
return `${this.config.baseURL}/reranking-model`;
|
|
1937
|
-
}
|
|
1938
|
-
getModelConfigHeaders() {
|
|
1939
|
-
return {
|
|
1940
|
-
"ai-reranking-model-specification-version": "4",
|
|
1941
|
-
"ai-model-id": this.modelId
|
|
1942
|
-
};
|
|
1943
|
-
}
|
|
1944
|
-
};
|
|
1945
|
-
var gatewayRerankingWarningSchema = z.discriminatedUnion("type", [
|
|
1946
|
-
z.object({
|
|
1947
|
-
type: z.literal("unsupported"),
|
|
1948
|
-
feature: z.string(),
|
|
1949
|
-
details: z.string().optional()
|
|
1950
|
-
}),
|
|
1951
|
-
z.object({
|
|
1952
|
-
type: z.literal("compatibility"),
|
|
1953
|
-
feature: z.string(),
|
|
1954
|
-
details: z.string().optional()
|
|
1955
|
-
}),
|
|
1956
|
-
z.object({
|
|
1957
|
-
type: z.literal("deprecated"),
|
|
1958
|
-
setting: z.string(),
|
|
1959
|
-
message: z.string()
|
|
1960
|
-
}),
|
|
1961
|
-
z.object({
|
|
1962
|
-
type: z.literal("other"),
|
|
1963
|
-
message: z.string()
|
|
1964
|
-
})
|
|
1965
|
-
]);
|
|
1966
|
-
var gatewayRerankingResponseSchema = lazySchema9(
|
|
1967
|
-
() => zodSchema9(
|
|
1968
|
-
z.object({
|
|
1969
|
-
ranking: z.array(
|
|
1970
|
-
z.object({
|
|
1971
|
-
index: z.number(),
|
|
1972
|
-
relevanceScore: z.number()
|
|
1973
|
-
})
|
|
1974
|
-
),
|
|
1975
|
-
warnings: z.array(gatewayRerankingWarningSchema).optional(),
|
|
1976
|
-
providerMetadata: z.record(z.string(), z.record(z.string(), z.unknown())).optional()
|
|
1977
|
-
})
|
|
1978
|
-
)
|
|
1979
|
-
);
|
|
1980
|
-
|
|
1981
|
-
// src/gateway-speech-model.ts
|
|
1982
|
-
import {
|
|
1983
|
-
combineHeaders as combineHeaders6,
|
|
1984
|
-
createJsonErrorResponseHandler as createJsonErrorResponseHandler9,
|
|
1985
|
-
createJsonResponseHandler as createJsonResponseHandler9,
|
|
1986
|
-
getErrorMessage as getErrorMessage9,
|
|
1987
|
-
postJsonToApi as postJsonToApi6,
|
|
1988
|
-
resolve as resolve9
|
|
1989
|
-
} from "@ai-sdk/provider-utils";
|
|
1990
|
-
var GatewaySpeechModel = class {
|
|
1991
|
-
constructor(modelId, config) {
|
|
1992
|
-
this.modelId = modelId;
|
|
1993
|
-
this.config = config;
|
|
1994
|
-
this.specificationVersion = "v4";
|
|
1995
|
-
}
|
|
1996
|
-
get provider() {
|
|
1997
|
-
return this.config.provider;
|
|
1998
|
-
}
|
|
1999
|
-
async doGenerate({
|
|
2000
|
-
text,
|
|
2001
|
-
voice,
|
|
2002
|
-
outputFormat,
|
|
2003
|
-
instructions,
|
|
2004
|
-
speed,
|
|
2005
|
-
language,
|
|
2006
|
-
providerOptions,
|
|
2007
|
-
headers,
|
|
2008
|
-
abortSignal
|
|
2009
|
-
}) {
|
|
2010
|
-
var _a11;
|
|
2011
|
-
const resolvedHeaders = this.config.headers ? await resolve9(this.config.headers) : void 0;
|
|
2012
|
-
try {
|
|
2013
|
-
const {
|
|
2014
|
-
responseHeaders,
|
|
2015
|
-
value: responseBody,
|
|
2016
|
-
rawValue
|
|
2017
|
-
} = await postJsonToApi6({
|
|
2018
|
-
url: this.getUrl(),
|
|
2019
|
-
headers: combineHeaders6(
|
|
2020
|
-
resolvedHeaders,
|
|
2021
|
-
headers != null ? headers : {},
|
|
2022
|
-
this.getModelConfigHeaders(),
|
|
2023
|
-
await resolve9(this.config.o11yHeaders)
|
|
2024
|
-
),
|
|
2025
|
-
body: {
|
|
2026
|
-
text,
|
|
2027
|
-
...voice && { voice },
|
|
2028
|
-
...outputFormat && { outputFormat },
|
|
2029
|
-
...instructions && { instructions },
|
|
2030
|
-
...speed != null && { speed },
|
|
2031
|
-
...language && { language },
|
|
2032
|
-
...providerOptions && { providerOptions }
|
|
2033
|
-
},
|
|
2034
|
-
successfulResponseHandler: createJsonResponseHandler9(
|
|
2035
|
-
gatewaySpeechResponseSchema
|
|
2036
|
-
),
|
|
2037
|
-
failedResponseHandler: createJsonErrorResponseHandler9({
|
|
2038
|
-
errorSchema: z.any(),
|
|
2039
|
-
errorToMessage: (data) => {
|
|
2040
|
-
var _a12;
|
|
2041
|
-
return (_a12 = getErrorMessage9(data)) != null ? _a12 : "unknown error";
|
|
2042
|
-
}
|
|
2043
|
-
}),
|
|
2044
|
-
...abortSignal && { abortSignal },
|
|
2045
|
-
fetch: this.config.fetch
|
|
2046
|
-
});
|
|
2047
|
-
return {
|
|
2048
|
-
audio: responseBody.audio,
|
|
2049
|
-
warnings: (_a11 = responseBody.warnings) != null ? _a11 : [],
|
|
2050
|
-
providerMetadata: responseBody.providerMetadata,
|
|
2051
|
-
response: {
|
|
2052
|
-
timestamp: /* @__PURE__ */ new Date(),
|
|
2053
|
-
modelId: this.modelId,
|
|
2054
|
-
headers: responseHeaders,
|
|
2055
|
-
body: rawValue
|
|
2056
|
-
}
|
|
2057
|
-
};
|
|
2058
|
-
} catch (error) {
|
|
2059
|
-
throw await asGatewayError(
|
|
2060
|
-
error,
|
|
2061
|
-
await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
|
|
2062
|
-
);
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
2065
|
-
getUrl() {
|
|
2066
|
-
return `${this.config.baseURL}/speech-model`;
|
|
2067
|
-
}
|
|
2068
|
-
getModelConfigHeaders() {
|
|
2069
|
-
return {
|
|
2070
|
-
"ai-speech-model-specification-version": "4",
|
|
2071
|
-
"ai-model-id": this.modelId
|
|
2072
|
-
};
|
|
2073
|
-
}
|
|
2074
|
-
};
|
|
2075
|
-
var providerMetadataEntrySchema3 = z.object({}).catchall(z.unknown());
|
|
2076
|
-
var gatewaySpeechWarningSchema = z.discriminatedUnion("type", [
|
|
2077
|
-
z.object({
|
|
2078
|
-
type: z.literal("unsupported"),
|
|
2079
|
-
feature: z.string(),
|
|
2080
|
-
details: z.string().optional()
|
|
2081
|
-
}),
|
|
2082
|
-
z.object({
|
|
2083
|
-
type: z.literal("compatibility"),
|
|
2084
|
-
feature: z.string(),
|
|
2085
|
-
details: z.string().optional()
|
|
2086
|
-
}),
|
|
2087
|
-
z.object({
|
|
2088
|
-
type: z.literal("deprecated"),
|
|
2089
|
-
setting: z.string(),
|
|
2090
|
-
message: z.string()
|
|
2091
|
-
}),
|
|
2092
|
-
z.object({
|
|
2093
|
-
type: z.literal("other"),
|
|
2094
|
-
message: z.string()
|
|
2095
|
-
})
|
|
2096
|
-
]);
|
|
2097
|
-
var gatewaySpeechResponseSchema = z.object({
|
|
2098
|
-
audio: z.string(),
|
|
2099
|
-
warnings: z.array(gatewaySpeechWarningSchema).optional(),
|
|
2100
|
-
providerMetadata: z.record(z.string(), providerMetadataEntrySchema3).optional()
|
|
2101
|
-
});
|
|
2102
|
-
|
|
2103
|
-
// src/gateway-transcription-model.ts
|
|
2104
|
-
import {
|
|
2105
|
-
getErrorMessage as getErrorMessage10
|
|
2106
|
-
} from "@ai-sdk/provider";
|
|
2107
|
-
import {
|
|
2108
|
-
combineHeaders as combineHeaders7,
|
|
2109
|
-
convertBase64ToUint8Array,
|
|
2110
|
-
convertUint8ArrayToBase64 as convertUint8ArrayToBase643,
|
|
2111
|
-
createJsonErrorResponseHandler as createJsonErrorResponseHandler10,
|
|
2112
|
-
createJsonResponseHandler as createJsonResponseHandler10,
|
|
2113
|
-
connectToWebSocket,
|
|
2114
|
-
normalizeHeaders,
|
|
2115
|
-
experimental_parseTranscriptionStreamPart as parseTranscriptionStreamPart,
|
|
2116
|
-
postJsonToApi as postJsonToApi7,
|
|
2117
|
-
resolve as resolve10,
|
|
2118
|
-
EXPERIMENTAL_TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE as TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE,
|
|
2119
|
-
waitForWebSocketBufferDrain,
|
|
2120
|
-
EXPERIMENTAL_TRANSCRIPTION_STREAM_START_FRAME_TYPE as TRANSCRIPTION_STREAM_START_FRAME_TYPE
|
|
2121
|
-
} from "@ai-sdk/provider-utils";
|
|
2122
|
-
var GatewayTranscriptionModel = class {
|
|
2123
|
-
constructor(modelId, config) {
|
|
2124
|
-
this.modelId = modelId;
|
|
2125
|
-
this.config = config;
|
|
2126
|
-
this.specificationVersion = "v4";
|
|
2127
|
-
}
|
|
2128
|
-
get provider() {
|
|
2129
|
-
return this.config.provider;
|
|
2130
|
-
}
|
|
2131
|
-
async doGenerate({
|
|
2132
|
-
audio,
|
|
2133
|
-
mediaType,
|
|
2134
|
-
providerOptions,
|
|
2135
|
-
headers,
|
|
2136
|
-
abortSignal
|
|
2137
|
-
}) {
|
|
2138
|
-
var _a11, _b11, _c, _d;
|
|
2139
|
-
const resolvedHeaders = this.config.headers ? await resolve10(this.config.headers) : void 0;
|
|
2140
|
-
try {
|
|
2141
|
-
const {
|
|
2142
|
-
responseHeaders,
|
|
2143
|
-
value: responseBody,
|
|
2144
|
-
rawValue
|
|
2145
|
-
} = await postJsonToApi7({
|
|
2146
|
-
url: this.getUrl(),
|
|
2147
|
-
headers: combineHeaders7(
|
|
2148
|
-
resolvedHeaders,
|
|
2149
|
-
headers != null ? headers : {},
|
|
2150
|
-
this.getModelConfigHeaders(),
|
|
2151
|
-
await resolve10(this.config.o11yHeaders)
|
|
2152
|
-
),
|
|
2153
|
-
body: {
|
|
2154
|
-
audio: audio instanceof Uint8Array ? convertUint8ArrayToBase643(audio) : audio,
|
|
2155
|
-
mediaType,
|
|
2156
|
-
...providerOptions && { providerOptions }
|
|
2157
|
-
},
|
|
2158
|
-
successfulResponseHandler: createJsonResponseHandler10(
|
|
2159
|
-
gatewayTranscriptionResponseSchema
|
|
2160
|
-
),
|
|
2161
|
-
failedResponseHandler: createJsonErrorResponseHandler10({
|
|
2162
|
-
errorSchema: z.any(),
|
|
2163
|
-
errorToMessage: (data) => {
|
|
2164
|
-
var _a12;
|
|
2165
|
-
return (_a12 = getErrorMessage10(data)) != null ? _a12 : "unknown error";
|
|
2166
|
-
}
|
|
2167
|
-
}),
|
|
2168
|
-
...abortSignal && { abortSignal },
|
|
2169
|
-
fetch: this.config.fetch
|
|
2170
|
-
});
|
|
2171
|
-
return {
|
|
2172
|
-
text: responseBody.text,
|
|
2173
|
-
segments: (_a11 = responseBody.segments) != null ? _a11 : [],
|
|
2174
|
-
language: (_b11 = responseBody.language) != null ? _b11 : void 0,
|
|
2175
|
-
durationInSeconds: (_c = responseBody.durationInSeconds) != null ? _c : void 0,
|
|
2176
|
-
warnings: (_d = responseBody.warnings) != null ? _d : [],
|
|
2177
|
-
providerMetadata: responseBody.providerMetadata,
|
|
2178
|
-
response: {
|
|
2179
|
-
timestamp: /* @__PURE__ */ new Date(),
|
|
2180
|
-
modelId: this.modelId,
|
|
2181
|
-
headers: responseHeaders,
|
|
2182
|
-
body: rawValue
|
|
2183
|
-
}
|
|
2184
|
-
};
|
|
2185
|
-
} catch (error) {
|
|
2186
|
-
throw await asGatewayError(
|
|
2187
|
-
error,
|
|
2188
|
-
await parseAuthMethod(resolvedHeaders != null ? resolvedHeaders : {})
|
|
2189
|
-
);
|
|
2190
|
-
}
|
|
2191
|
-
}
|
|
2192
|
-
async doStream(options) {
|
|
2193
|
-
var _a11, _b11, _c, _d, _e;
|
|
2194
|
-
const currentDate = (_c = (_b11 = (_a11 = this.config._internal) == null ? void 0 : _a11.currentDate) == null ? void 0 : _b11.call(_a11)) != null ? _c : /* @__PURE__ */ new Date();
|
|
2195
|
-
const headers = combineHeaders7(
|
|
2196
|
-
await resolve10((_d = this.config.headers) != null ? _d : {}),
|
|
2197
|
-
(_e = options.headers) != null ? _e : {},
|
|
2198
|
-
this.getModelConfigHeaders(),
|
|
2199
|
-
await resolve10(this.config.o11yHeaders)
|
|
2200
|
-
);
|
|
2201
|
-
const authMethod = await parseAuthMethod(headers);
|
|
2202
|
-
const startFrame = {
|
|
2203
|
-
type: TRANSCRIPTION_STREAM_START_FRAME_TYPE,
|
|
2204
|
-
inputAudioFormat: options.inputAudioFormat,
|
|
2205
|
-
...options.providerOptions != null && {
|
|
2206
|
-
providerOptions: options.providerOptions
|
|
2207
|
-
},
|
|
2208
|
-
...options.includeRawChunks != null && {
|
|
2209
|
-
includeRawChunks: options.includeRawChunks
|
|
2210
|
-
}
|
|
2211
|
-
};
|
|
2212
|
-
return {
|
|
2213
|
-
stream: createGatewayTranscriptionStream({
|
|
2214
|
-
webSocket: this.config.webSocket,
|
|
2215
|
-
url: toGatewayTranscriptionUrl(this.config.baseURL, this.modelId),
|
|
2216
|
-
protocols: getProtocolsFromHeaders(headers),
|
|
2217
|
-
headers,
|
|
2218
|
-
startFrame,
|
|
2219
|
-
audio: options.audio,
|
|
2220
|
-
abortSignal: options.abortSignal,
|
|
2221
|
-
authMethod
|
|
2222
|
-
}),
|
|
2223
|
-
request: { body: startFrame },
|
|
2224
|
-
response: { timestamp: currentDate, modelId: this.modelId }
|
|
2225
|
-
};
|
|
2226
|
-
}
|
|
2227
|
-
getUrl() {
|
|
2228
|
-
return `${this.config.baseURL}/transcription-model`;
|
|
2229
|
-
}
|
|
2230
|
-
getModelConfigHeaders() {
|
|
2231
|
-
return {
|
|
2232
|
-
"ai-transcription-model-specification-version": "4",
|
|
2233
|
-
"ai-model-id": this.modelId
|
|
2234
|
-
};
|
|
2235
|
-
}
|
|
2236
|
-
};
|
|
2237
|
-
function toGatewayTranscriptionUrl(baseURL, modelId) {
|
|
2238
|
-
const url = new URL(`${baseURL.replace(/^http/, "ws")}/transcription-model`);
|
|
2239
|
-
url.searchParams.set("ai-model-id", modelId);
|
|
2240
|
-
return url.toString();
|
|
2241
|
-
}
|
|
2242
|
-
function getProtocolsFromHeaders(headers) {
|
|
2243
|
-
const normalizedHeaders = normalizeHeaders(headers);
|
|
2244
|
-
const authorization = normalizedHeaders.authorization;
|
|
2245
|
-
const token = (authorization == null ? void 0 : authorization.startsWith("Bearer ")) ? authorization.slice("Bearer ".length) : void 0;
|
|
2246
|
-
return token == null ? [GATEWAY_TRANSCRIPTION_SUBPROTOCOL] : getGatewayTranscriptionProtocols(token, {
|
|
2247
|
-
teamIdOrSlug: normalizedHeaders[VERCEL_AI_GATEWAY_TEAM_HEADER]
|
|
2248
|
-
});
|
|
2249
|
-
}
|
|
2250
|
-
var MAX_AUDIO_FRAME_BYTES = 64 * 1024;
|
|
2251
|
-
function createGatewayTranscriptionStream({
|
|
2252
|
-
webSocket,
|
|
2253
|
-
url,
|
|
2254
|
-
protocols,
|
|
2255
|
-
headers,
|
|
2256
|
-
startFrame,
|
|
2257
|
-
audio,
|
|
2258
|
-
abortSignal,
|
|
2259
|
-
authMethod
|
|
2260
|
-
}) {
|
|
2261
|
-
let finished = false;
|
|
2262
|
-
let cleanup = () => {
|
|
2263
|
-
};
|
|
2264
|
-
return new ReadableStream({
|
|
2265
|
-
start: (controller) => {
|
|
2266
|
-
let audioReader;
|
|
2267
|
-
let hasServerErrorPart = false;
|
|
2268
|
-
let lastServerError;
|
|
2269
|
-
let audioStopped = false;
|
|
2270
|
-
let connection;
|
|
2271
|
-
cleanup = (closeCode) => {
|
|
2272
|
-
if (audioReader != null) {
|
|
2273
|
-
void audioReader.cancel().catch(() => {
|
|
2274
|
-
});
|
|
2275
|
-
} else {
|
|
2276
|
-
void audio.cancel().catch(() => {
|
|
2277
|
-
});
|
|
2278
|
-
}
|
|
2279
|
-
connection == null ? void 0 : connection.close(closeCode);
|
|
2280
|
-
};
|
|
2281
|
-
const stopAudio = () => {
|
|
2282
|
-
audioStopped = true;
|
|
2283
|
-
if (audioReader != null) {
|
|
2284
|
-
void audioReader.cancel().catch(() => {
|
|
2285
|
-
});
|
|
2286
|
-
audioReader = void 0;
|
|
2287
|
-
} else {
|
|
2288
|
-
void audio.cancel().catch(() => {
|
|
2289
|
-
});
|
|
2290
|
-
}
|
|
2291
|
-
};
|
|
2292
|
-
const finishWithError = (error) => {
|
|
2293
|
-
if (finished) return;
|
|
2294
|
-
finished = true;
|
|
2295
|
-
cleanup();
|
|
2296
|
-
void errorControllerWithGatewayError(controller, error, authMethod);
|
|
2297
|
-
};
|
|
2298
|
-
const sendAudio = async (socket) => {
|
|
2299
|
-
const reader = audio.getReader();
|
|
2300
|
-
audioReader = reader;
|
|
2301
|
-
try {
|
|
2302
|
-
while (true) {
|
|
2303
|
-
const { done, value } = await reader.read();
|
|
2304
|
-
if (done || finished) break;
|
|
2305
|
-
const bytes = typeof value === "string" ? convertBase64ToUint8Array(value) : value;
|
|
2306
|
-
for (let offset = 0; offset < bytes.length; offset += MAX_AUDIO_FRAME_BYTES) {
|
|
2307
|
-
if (finished) break;
|
|
2308
|
-
socket.send(
|
|
2309
|
-
bytes.subarray(offset, offset + MAX_AUDIO_FRAME_BYTES)
|
|
2310
|
-
);
|
|
2311
|
-
await waitForWebSocketBufferDrain(socket);
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2314
|
-
} finally {
|
|
2315
|
-
reader.releaseLock();
|
|
2316
|
-
if (audioReader === reader) {
|
|
2317
|
-
audioReader = void 0;
|
|
2318
|
-
}
|
|
2319
|
-
}
|
|
2320
|
-
if (!finished && !audioStopped) {
|
|
2321
|
-
socket.send(
|
|
2322
|
-
JSON.stringify({
|
|
2323
|
-
type: TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE
|
|
2324
|
-
})
|
|
2325
|
-
);
|
|
2326
|
-
}
|
|
2327
|
-
};
|
|
2328
|
-
connection = connectToWebSocket({
|
|
2329
|
-
url,
|
|
2330
|
-
protocols,
|
|
2331
|
-
headers,
|
|
2332
|
-
webSocket,
|
|
2333
|
-
abortSignal,
|
|
2334
|
-
onAbort: (reason) => {
|
|
2335
|
-
if (finished) return;
|
|
2336
|
-
finished = true;
|
|
2337
|
-
cleanup();
|
|
2338
|
-
controller.error(reason);
|
|
2339
|
-
},
|
|
2340
|
-
onProcessingError: finishWithError,
|
|
2341
|
-
onOpen: (socket) => {
|
|
2342
|
-
socket.send(JSON.stringify(startFrame));
|
|
2343
|
-
void sendAudio(socket).catch(finishWithError);
|
|
2344
|
-
},
|
|
2345
|
-
// Server frames are envelope-serialized stream parts; the codec
|
|
2346
|
-
// handles parsing, unknown-part skipping, and timestamp revival.
|
|
2347
|
-
onMessageText: (text) => {
|
|
2348
|
-
if (finished) return;
|
|
2349
|
-
const part = parseTranscriptionStreamPart(text);
|
|
2350
|
-
if (part == null) return;
|
|
2351
|
-
if (part.type === "finish") {
|
|
2352
|
-
finished = true;
|
|
2353
|
-
controller.enqueue(part);
|
|
2354
|
-
controller.close();
|
|
2355
|
-
cleanup(1e3);
|
|
2356
|
-
return;
|
|
2357
|
-
}
|
|
2358
|
-
if (part.type === "error") {
|
|
2359
|
-
hasServerErrorPart = true;
|
|
2360
|
-
lastServerError = part.error;
|
|
2361
|
-
stopAudio();
|
|
2362
|
-
}
|
|
2363
|
-
controller.enqueue(part);
|
|
2364
|
-
},
|
|
2365
|
-
onSocketError: () => {
|
|
2366
|
-
finishWithError(
|
|
2367
|
-
new Error("Connection error on AI Gateway transcription stream")
|
|
2368
|
-
);
|
|
2369
|
-
},
|
|
2370
|
-
onClose: () => {
|
|
2371
|
-
if (hasServerErrorPart) {
|
|
2372
|
-
if (finished) return;
|
|
2373
|
-
void createErrorFromServerErrorPart(
|
|
2374
|
-
lastServerError,
|
|
2375
|
-
authMethod
|
|
2376
|
-
).then(finishWithError);
|
|
2377
|
-
return;
|
|
2378
|
-
}
|
|
2379
|
-
finishWithError(
|
|
2380
|
-
new Error(
|
|
2381
|
-
"AI Gateway transcription stream closed before a finish part was received"
|
|
2382
|
-
)
|
|
2383
|
-
);
|
|
2384
|
-
}
|
|
2385
|
-
});
|
|
2386
|
-
},
|
|
2387
|
-
cancel: () => {
|
|
2388
|
-
if (finished) return;
|
|
2389
|
-
finished = true;
|
|
2390
|
-
cleanup();
|
|
2391
|
-
}
|
|
2392
|
-
});
|
|
2393
|
-
}
|
|
2394
|
-
var providerMetadataEntrySchema4 = z.object({}).catchall(z.unknown());
|
|
2395
|
-
var gatewayTranscriptionWarningSchema = z.discriminatedUnion("type", [
|
|
2396
|
-
z.object({
|
|
2397
|
-
type: z.literal("unsupported"),
|
|
2398
|
-
feature: z.string(),
|
|
2399
|
-
details: z.string().optional()
|
|
2400
|
-
}),
|
|
2401
|
-
z.object({
|
|
2402
|
-
type: z.literal("compatibility"),
|
|
2403
|
-
feature: z.string(),
|
|
2404
|
-
details: z.string().optional()
|
|
2405
|
-
}),
|
|
2406
|
-
z.object({
|
|
2407
|
-
type: z.literal("deprecated"),
|
|
2408
|
-
setting: z.string(),
|
|
2409
|
-
message: z.string()
|
|
2410
|
-
}),
|
|
2411
|
-
z.object({
|
|
2412
|
-
type: z.literal("other"),
|
|
2413
|
-
message: z.string()
|
|
2414
|
-
})
|
|
2415
|
-
]);
|
|
2416
|
-
var gatewayTranscriptionResponseSchema = z.object({
|
|
2417
|
-
text: z.string(),
|
|
2418
|
-
segments: z.array(
|
|
2419
|
-
z.object({
|
|
2420
|
-
text: z.string(),
|
|
2421
|
-
startSecond: z.number(),
|
|
2422
|
-
endSecond: z.number()
|
|
2423
|
-
})
|
|
2424
|
-
).optional(),
|
|
2425
|
-
language: z.string().nullish(),
|
|
2426
|
-
durationInSeconds: z.number().nullish(),
|
|
2427
|
-
warnings: z.array(gatewayTranscriptionWarningSchema).optional(),
|
|
2428
|
-
providerMetadata: z.record(z.string(), providerMetadataEntrySchema4).optional()
|
|
2429
|
-
});
|
|
2430
|
-
async function errorControllerWithGatewayError(controller, error, authMethod) {
|
|
2431
|
-
controller.error(await asGatewayError(error, authMethod));
|
|
2432
|
-
}
|
|
2433
|
-
function getServerErrorMessage(error) {
|
|
2434
|
-
if (error != null && typeof error === "object" && "message" in error && typeof error.message === "string") {
|
|
2435
|
-
return error.message;
|
|
2436
|
-
}
|
|
2437
|
-
return getErrorMessage10(error);
|
|
2438
|
-
}
|
|
2439
|
-
var SERVER_ERROR_STATUS_CODES = {
|
|
2440
|
-
authentication_error: 401,
|
|
2441
|
-
failed_dependency: 424,
|
|
2442
|
-
forbidden: 403,
|
|
2443
|
-
internal_server_error: 500,
|
|
2444
|
-
invalid_request_error: 400,
|
|
2445
|
-
model_not_found: 404,
|
|
2446
|
-
rate_limit_exceeded: 429
|
|
2447
|
-
};
|
|
2448
|
-
async function createErrorFromServerErrorPart(error, authMethod) {
|
|
2449
|
-
if (typeof error === "object" && error != null && "message" in error && typeof error.message === "string" && "type" in error && typeof error.type === "string" && error.type in SERVER_ERROR_STATUS_CODES) {
|
|
2450
|
-
return createGatewayErrorFromResponse({
|
|
2451
|
-
response: { error: { message: error.message, type: error.type } },
|
|
2452
|
-
statusCode: SERVER_ERROR_STATUS_CODES[error.type],
|
|
2453
|
-
authMethod
|
|
2454
|
-
});
|
|
2455
|
-
}
|
|
2456
|
-
return new Error(
|
|
2457
|
-
`AI Gateway transcription stream failed: ${getServerErrorMessage(error)}`
|
|
2458
|
-
);
|
|
2459
|
-
}
|
|
2460
|
-
|
|
2461
|
-
// src/gateway-realtime-model.ts
|
|
2462
|
-
var GatewayRealtimeModel = class {
|
|
2463
|
-
constructor(modelId, config) {
|
|
2464
|
-
this.specificationVersion = "v4";
|
|
2465
|
-
this.modelId = modelId;
|
|
2466
|
-
this.provider = config.provider;
|
|
2467
|
-
this.config = config;
|
|
2468
|
-
}
|
|
2469
|
-
/**
|
|
2470
|
-
* Mints a single-use, short-lived client secret (`vcst_`) the browser uses to
|
|
2471
|
-
* open the realtime WebSocket without ever holding the long-lived Gateway
|
|
2472
|
-
* credential. The customer's server calls this (via
|
|
2473
|
-
* `gateway.experimental_realtime.getToken`) and hands the returned token to
|
|
2474
|
-
* the browser, which connects with it through the `ai-gateway-auth.<token>`
|
|
2475
|
-
* subprotocol. `expiresAfterSeconds` is forwarded to the mint endpoint;
|
|
2476
|
-
* `sessionConfig` is intentionally unused here — it is applied later via the
|
|
2477
|
-
* normalized `session-update` event.
|
|
2478
|
-
*/
|
|
2479
|
-
async doCreateClientSecret(options) {
|
|
2480
|
-
const secret = await this.config.createClientSecret({
|
|
2481
|
-
modelId: this.modelId,
|
|
2482
|
-
...(options == null ? void 0 : options.expiresAfterSeconds) != null && {
|
|
2483
|
-
expiresAfterSeconds: options.expiresAfterSeconds
|
|
2484
|
-
}
|
|
2485
|
-
});
|
|
2486
|
-
return {
|
|
2487
|
-
token: secret.token,
|
|
2488
|
-
url: toGatewayRealtimeUrl(this.config.baseURL, this.modelId),
|
|
2489
|
-
...secret.expiresAt != null && { expiresAt: secret.expiresAt }
|
|
2490
|
-
};
|
|
2491
|
-
}
|
|
2492
|
-
getWebSocketConfig(options) {
|
|
2493
|
-
return {
|
|
2494
|
-
url: options.url,
|
|
2495
|
-
protocols: getGatewayRealtimeProtocols(options.token, {
|
|
2496
|
-
teamIdOrSlug: this.config.teamIdOrSlug
|
|
2497
|
-
})
|
|
2498
|
-
};
|
|
2499
|
-
}
|
|
2500
|
-
parseServerEvent(raw) {
|
|
2501
|
-
return raw;
|
|
2502
|
-
}
|
|
2503
|
-
serializeClientEvent(event) {
|
|
2504
|
-
return event;
|
|
2505
|
-
}
|
|
2506
|
-
buildSessionConfig(config) {
|
|
2507
|
-
return config;
|
|
2508
|
-
}
|
|
2509
|
-
};
|
|
2510
|
-
function toGatewayRealtimeUrl(baseURL, modelId) {
|
|
2511
|
-
const url = new URL(`${baseURL.replace(/^http/, "ws")}/realtime-model`);
|
|
2512
|
-
url.searchParams.set("ai-model-id", modelId);
|
|
2513
|
-
return url.toString();
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
// src/tool/exa-search.ts
|
|
2517
|
-
import {
|
|
2518
|
-
createProviderExecutedToolFactory,
|
|
2519
|
-
lazySchema as lazySchema10,
|
|
2520
|
-
zodSchema as zodSchema10
|
|
2521
|
-
} from "@ai-sdk/provider-utils";
|
|
2522
|
-
var exaSearchInputSchema = lazySchema10(
|
|
2523
|
-
() => zodSchema10(
|
|
2524
|
-
z.object({
|
|
2525
|
-
query: z.string().describe("Natural-language web search query. This is required."),
|
|
2526
|
-
type: z.enum(["auto", "fast", "instant"]).optional().describe(
|
|
2527
|
-
"Search method. Use auto for the default balance of speed and quality."
|
|
2528
|
-
),
|
|
2529
|
-
num_results: z.number().optional().describe("Maximum number of results to return (1-100, default: 10)."),
|
|
2530
|
-
category: z.enum([
|
|
2531
|
-
"company",
|
|
2532
|
-
"people",
|
|
2533
|
-
"research paper",
|
|
2534
|
-
"news",
|
|
2535
|
-
"personal site",
|
|
2536
|
-
"financial report"
|
|
2537
|
-
]).optional().describe("Optional content category to focus results."),
|
|
2538
|
-
user_location: z.string().optional().describe("Two-letter ISO country code such as 'US'."),
|
|
2539
|
-
include_domains: z.array(z.string()).optional().describe("Only return results from these domains."),
|
|
2540
|
-
exclude_domains: z.array(z.string()).optional().describe("Exclude results from these domains."),
|
|
2541
|
-
start_published_date: z.string().optional().describe("Only return links published after this ISO 8601 date."),
|
|
2542
|
-
end_published_date: z.string().optional().describe("Only return links published before this ISO 8601 date."),
|
|
2543
|
-
contents: z.object({
|
|
2544
|
-
text: z.union([
|
|
2545
|
-
z.boolean(),
|
|
2546
|
-
z.object({
|
|
2547
|
-
max_characters: z.number().optional(),
|
|
2548
|
-
include_html_tags: z.boolean().optional(),
|
|
2549
|
-
verbosity: z.enum(["compact", "standard", "full"]).optional(),
|
|
2550
|
-
include_sections: z.array(
|
|
2551
|
-
z.enum([
|
|
2552
|
-
"header",
|
|
2553
|
-
"navigation",
|
|
2554
|
-
"banner",
|
|
2555
|
-
"body",
|
|
2556
|
-
"sidebar",
|
|
2557
|
-
"footer",
|
|
2558
|
-
"metadata"
|
|
2559
|
-
])
|
|
2560
|
-
).optional(),
|
|
2561
|
-
exclude_sections: z.array(
|
|
2562
|
-
z.enum([
|
|
2563
|
-
"header",
|
|
2564
|
-
"navigation",
|
|
2565
|
-
"banner",
|
|
2566
|
-
"body",
|
|
2567
|
-
"sidebar",
|
|
2568
|
-
"footer",
|
|
2569
|
-
"metadata"
|
|
2570
|
-
])
|
|
2571
|
-
).optional()
|
|
2572
|
-
})
|
|
2573
|
-
]).optional(),
|
|
2574
|
-
highlights: z.union([
|
|
2575
|
-
z.boolean(),
|
|
2576
|
-
z.object({
|
|
2577
|
-
query: z.string().optional(),
|
|
2578
|
-
max_characters: z.number().optional()
|
|
2579
|
-
})
|
|
2580
|
-
]).optional(),
|
|
2581
|
-
max_age_hours: z.number().optional(),
|
|
2582
|
-
livecrawl_timeout: z.number().optional(),
|
|
2583
|
-
subpages: z.number().optional(),
|
|
2584
|
-
subpage_target: z.union([z.string(), z.array(z.string())]).optional(),
|
|
2585
|
-
extras: z.object({
|
|
2586
|
-
links: z.number().optional(),
|
|
2587
|
-
image_links: z.number().optional()
|
|
2588
|
-
}).optional()
|
|
2589
|
-
}).optional().describe("Controls extracted page content and freshness.")
|
|
2590
|
-
})
|
|
2591
|
-
)
|
|
2592
|
-
);
|
|
2593
|
-
var exaSearchOutputSchema = lazySchema10(
|
|
2594
|
-
() => zodSchema10(
|
|
2595
|
-
z.union([
|
|
2596
|
-
z.object({
|
|
2597
|
-
requestId: z.string(),
|
|
2598
|
-
searchType: z.string().optional(),
|
|
2599
|
-
resolvedSearchType: z.string().optional(),
|
|
2600
|
-
results: z.array(
|
|
2601
|
-
z.object({
|
|
2602
|
-
title: z.string(),
|
|
2603
|
-
url: z.string(),
|
|
2604
|
-
id: z.string(),
|
|
2605
|
-
publishedDate: z.string().nullable().optional(),
|
|
2606
|
-
author: z.string().nullable().optional(),
|
|
2607
|
-
image: z.string().nullable().optional(),
|
|
2608
|
-
favicon: z.string().nullable().optional(),
|
|
2609
|
-
text: z.string().optional(),
|
|
2610
|
-
highlights: z.array(z.string()).optional(),
|
|
2611
|
-
highlightScores: z.array(z.number()).optional(),
|
|
2612
|
-
summary: z.string().optional(),
|
|
2613
|
-
subpages: z.array(z.any()).optional(),
|
|
2614
|
-
extras: z.object({
|
|
2615
|
-
links: z.array(z.string()).optional(),
|
|
2616
|
-
imageLinks: z.array(z.string()).optional()
|
|
2617
|
-
}).optional()
|
|
2618
|
-
})
|
|
2619
|
-
),
|
|
2620
|
-
costDollars: z.object({
|
|
2621
|
-
total: z.number().optional(),
|
|
2622
|
-
search: z.record(z.string(), z.number()).optional()
|
|
2623
|
-
}).optional()
|
|
2624
|
-
}),
|
|
2625
|
-
z.object({
|
|
2626
|
-
error: z.enum([
|
|
2627
|
-
"api_error",
|
|
2628
|
-
"rate_limit",
|
|
2629
|
-
"timeout",
|
|
2630
|
-
"invalid_input",
|
|
2631
|
-
"configuration_error",
|
|
2632
|
-
"execution_error",
|
|
2633
|
-
"unknown"
|
|
2634
|
-
]),
|
|
2635
|
-
statusCode: z.number().optional(),
|
|
2636
|
-
message: z.string()
|
|
2637
|
-
})
|
|
2638
|
-
])
|
|
2639
|
-
)
|
|
2640
|
-
);
|
|
2641
|
-
var exaSearchToolFactory = createProviderExecutedToolFactory({
|
|
2642
|
-
id: "gateway.exa_search",
|
|
2643
|
-
inputSchema: exaSearchInputSchema,
|
|
2644
|
-
outputSchema: exaSearchOutputSchema
|
|
2645
|
-
});
|
|
2646
|
-
var exaSearch = (config = {}) => exaSearchToolFactory(config);
|
|
2647
|
-
|
|
2648
|
-
// src/tool/parallel-search.ts
|
|
2649
|
-
import {
|
|
2650
|
-
createProviderExecutedToolFactory as createProviderExecutedToolFactory2,
|
|
2651
|
-
lazySchema as lazySchema11,
|
|
2652
|
-
zodSchema as zodSchema11
|
|
2653
|
-
} from "@ai-sdk/provider-utils";
|
|
2654
|
-
var parallelSearchInputSchema = lazySchema11(
|
|
2655
|
-
() => zodSchema11(
|
|
2656
|
-
z.object({
|
|
2657
|
-
objective: z.string().describe(
|
|
2658
|
-
"Natural-language description of the web research goal, including source or freshness guidance and broader context from the task. Maximum 5000 characters."
|
|
2659
|
-
),
|
|
2660
|
-
search_queries: z.array(z.string()).optional().describe(
|
|
2661
|
-
"Optional search queries to supplement the objective. Maximum 200 characters per query."
|
|
2662
|
-
),
|
|
2663
|
-
mode: z.enum(["one-shot", "agentic"]).optional().describe(
|
|
2664
|
-
'Mode preset: "one-shot" for comprehensive results with longer excerpts (default), "agentic" for concise, token-efficient results for multi-step workflows.'
|
|
2665
|
-
),
|
|
2666
|
-
max_results: z.number().optional().describe(
|
|
2667
|
-
"Maximum number of results to return (1-20). Defaults to 10 if not specified."
|
|
2668
|
-
),
|
|
2669
|
-
source_policy: z.object({
|
|
2670
|
-
include_domains: z.array(z.string()).optional().describe(
|
|
2671
|
-
"Limit results to these domains. Use plain domain names only \u2014 e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."
|
|
2672
|
-
),
|
|
2673
|
-
exclude_domains: z.array(z.string()).optional().describe(
|
|
2674
|
-
"Exclude results from these domains. Use plain domain names only \u2014 e.g. example.com or sub.example.gov, or a bare extension like .edu. Do not include a scheme, path, or port (e.g. not https://example.com/page)."
|
|
2675
|
-
),
|
|
2676
|
-
after_date: z.string().optional().describe(
|
|
2677
|
-
"Only include results published after this date. Use an ISO 8601 calendar date formatted YYYY-MM-DD (e.g. 2025-01-01); do not include a time."
|
|
2678
|
-
)
|
|
2679
|
-
}).optional().describe(
|
|
2680
|
-
"Source policy for controlling which domains to include/exclude and freshness."
|
|
2681
|
-
),
|
|
2682
|
-
excerpts: z.object({
|
|
2683
|
-
max_chars_per_result: z.number().optional().describe("Maximum characters per result."),
|
|
2684
|
-
max_chars_total: z.number().optional().describe("Maximum total characters across all results.")
|
|
2685
|
-
}).optional().describe("Excerpt configuration for controlling result length."),
|
|
2686
|
-
fetch_policy: z.object({
|
|
2687
|
-
max_age_seconds: z.number().optional().describe(
|
|
2688
|
-
"Maximum age in seconds for cached content. Set to 0 to always fetch fresh content."
|
|
2689
|
-
)
|
|
2690
|
-
}).optional().describe("Fetch policy for controlling content freshness.")
|
|
2691
|
-
})
|
|
2692
|
-
)
|
|
2693
|
-
);
|
|
2694
|
-
var parallelSearchOutputSchema = lazySchema11(
|
|
2695
|
-
() => zodSchema11(
|
|
2696
|
-
z.union([
|
|
2697
|
-
// Success response
|
|
2698
|
-
z.object({
|
|
2699
|
-
searchId: z.string(),
|
|
2700
|
-
results: z.array(
|
|
2701
|
-
z.object({
|
|
2702
|
-
url: z.string(),
|
|
2703
|
-
title: z.string(),
|
|
2704
|
-
excerpt: z.string(),
|
|
2705
|
-
publishDate: z.string().nullable().optional(),
|
|
2706
|
-
relevanceScore: z.number().optional()
|
|
2707
|
-
})
|
|
2708
|
-
)
|
|
2709
|
-
}),
|
|
2710
|
-
// Error response
|
|
2711
|
-
z.object({
|
|
2712
|
-
error: z.enum([
|
|
2713
|
-
"api_error",
|
|
2714
|
-
"rate_limit",
|
|
2715
|
-
"timeout",
|
|
2716
|
-
"invalid_input",
|
|
2717
|
-
"configuration_error",
|
|
2718
|
-
"unknown"
|
|
2719
|
-
]),
|
|
2720
|
-
statusCode: z.number().optional(),
|
|
2721
|
-
message: z.string()
|
|
2722
|
-
})
|
|
2723
|
-
])
|
|
2724
|
-
)
|
|
2725
|
-
);
|
|
2726
|
-
var parallelSearchToolFactory = createProviderExecutedToolFactory2({
|
|
2727
|
-
id: "gateway.parallel_search",
|
|
2728
|
-
inputSchema: parallelSearchInputSchema,
|
|
2729
|
-
outputSchema: parallelSearchOutputSchema
|
|
2730
|
-
});
|
|
2731
|
-
var parallelSearch = (config = {}) => parallelSearchToolFactory(config);
|
|
2732
|
-
|
|
2733
|
-
// src/tool/perplexity-search.ts
|
|
2734
|
-
import {
|
|
2735
|
-
createProviderExecutedToolFactory as createProviderExecutedToolFactory3,
|
|
2736
|
-
lazySchema as lazySchema12,
|
|
2737
|
-
zodSchema as zodSchema12
|
|
2738
|
-
} from "@ai-sdk/provider-utils";
|
|
2739
|
-
var perplexitySearchInputSchema = lazySchema12(
|
|
2740
|
-
() => zodSchema12(
|
|
2741
|
-
z.object({
|
|
2742
|
-
query: z.union([z.string(), z.array(z.string())]).describe(
|
|
2743
|
-
"Search query (string) or multiple queries (array of up to 5 strings). Multi-query searches return combined results from all queries."
|
|
2744
|
-
),
|
|
2745
|
-
max_results: z.number().optional().describe(
|
|
2746
|
-
"Maximum number of search results to return (1-20, default: 10)"
|
|
2747
|
-
),
|
|
2748
|
-
max_tokens_per_page: z.number().optional().describe(
|
|
2749
|
-
"Maximum number of tokens to extract per search result page (256-2048, default: 2048)"
|
|
2750
|
-
),
|
|
2751
|
-
max_tokens: z.number().optional().describe(
|
|
2752
|
-
"Maximum total tokens across all search results (default: 25000, max: 1000000)"
|
|
2753
|
-
),
|
|
2754
|
-
country: z.string().optional().describe(
|
|
2755
|
-
"Two-letter ISO 3166-1 alpha-2 country code for regional search results (e.g., 'US', 'GB', 'FR')"
|
|
2756
|
-
),
|
|
2757
|
-
search_domain_filter: z.array(z.string()).optional().describe(
|
|
2758
|
-
"List of domains to include or exclude from search results (max 20). To include: ['nature.com', 'science.org']. To exclude: ['-example.com', '-spam.net']"
|
|
2759
|
-
),
|
|
2760
|
-
search_language_filter: z.array(z.string()).optional().describe(
|
|
2761
|
-
"List of ISO 639-1 language codes to filter results (max 10, lowercase). Examples: ['en', 'fr', 'de']"
|
|
2762
|
-
),
|
|
2763
|
-
search_after_date: z.string().optional().describe(
|
|
2764
|
-
"Include only results published after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."
|
|
2765
|
-
),
|
|
2766
|
-
search_before_date: z.string().optional().describe(
|
|
2767
|
-
"Include only results published before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."
|
|
2768
|
-
),
|
|
2769
|
-
last_updated_after_filter: z.string().optional().describe(
|
|
2770
|
-
"Include only results last updated after this date. Format: 'MM/DD/YYYY' (e.g., '3/1/2025'). Cannot be used with search_recency_filter."
|
|
2771
|
-
),
|
|
2772
|
-
last_updated_before_filter: z.string().optional().describe(
|
|
2773
|
-
"Include only results last updated before this date. Format: 'MM/DD/YYYY' (e.g., '3/15/2025'). Cannot be used with search_recency_filter."
|
|
2774
|
-
),
|
|
2775
|
-
search_recency_filter: z.enum(["day", "week", "month", "year"]).optional().describe(
|
|
2776
|
-
"Filter results by relative time period. Cannot be used with search_after_date or search_before_date."
|
|
2777
|
-
)
|
|
2778
|
-
})
|
|
2779
|
-
)
|
|
2780
|
-
);
|
|
2781
|
-
var perplexitySearchOutputSchema = lazySchema12(
|
|
2782
|
-
() => zodSchema12(
|
|
2783
|
-
z.union([
|
|
2784
|
-
// Success response
|
|
2785
|
-
z.object({
|
|
2786
|
-
results: z.array(
|
|
2787
|
-
z.object({
|
|
2788
|
-
title: z.string(),
|
|
2789
|
-
url: z.string(),
|
|
2790
|
-
snippet: z.string(),
|
|
2791
|
-
date: z.string().optional(),
|
|
2792
|
-
lastUpdated: z.string().optional()
|
|
2793
|
-
})
|
|
2794
|
-
),
|
|
2795
|
-
id: z.string()
|
|
2796
|
-
}),
|
|
2797
|
-
// Error response
|
|
2798
|
-
z.object({
|
|
2799
|
-
error: z.enum([
|
|
2800
|
-
"api_error",
|
|
2801
|
-
"rate_limit",
|
|
2802
|
-
"timeout",
|
|
2803
|
-
"invalid_input",
|
|
2804
|
-
"unknown"
|
|
2805
|
-
]),
|
|
2806
|
-
statusCode: z.number().optional(),
|
|
2807
|
-
message: z.string()
|
|
2808
|
-
})
|
|
2809
|
-
])
|
|
2810
|
-
)
|
|
2811
|
-
);
|
|
2812
|
-
var perplexitySearchToolFactory = createProviderExecutedToolFactory3({
|
|
2813
|
-
id: "gateway.perplexity_search",
|
|
2814
|
-
inputSchema: perplexitySearchInputSchema,
|
|
2815
|
-
outputSchema: perplexitySearchOutputSchema
|
|
2816
|
-
});
|
|
2817
|
-
var perplexitySearch = (config = {}) => perplexitySearchToolFactory(config);
|
|
2818
|
-
|
|
2819
|
-
// src/gateway-tools.ts
|
|
2820
|
-
var gatewayTools = {
|
|
2821
|
-
/**
|
|
2822
|
-
* Search the web using Exa for current information and token-efficient
|
|
2823
|
-
* excerpts optimized for agent workflows.
|
|
2824
|
-
*
|
|
2825
|
-
* Supports search type, category, domain, date, location, and content
|
|
2826
|
-
* extraction controls.
|
|
2827
|
-
*/
|
|
2828
|
-
exaSearch,
|
|
2829
|
-
/**
|
|
2830
|
-
* Search the web using Parallel AI's Search API for LLM-optimized excerpts.
|
|
2831
|
-
*
|
|
2832
|
-
* Takes a natural language objective and returns relevant excerpts,
|
|
2833
|
-
* replacing multiple keyword searches with a single call for broad
|
|
2834
|
-
* or complex queries. Supports different search types for depth vs
|
|
2835
|
-
* breadth tradeoffs.
|
|
2836
|
-
*/
|
|
2837
|
-
parallelSearch,
|
|
2838
|
-
/**
|
|
2839
|
-
* Search the web using Perplexity's Search API for real-time information,
|
|
2840
|
-
* news, research papers, and articles.
|
|
2841
|
-
*
|
|
2842
|
-
* Provides ranked search results with advanced filtering options including
|
|
2843
|
-
* domain, language, date range, and recency filters.
|
|
2844
|
-
*/
|
|
2845
|
-
perplexitySearch
|
|
2846
|
-
};
|
|
2847
|
-
|
|
2848
|
-
// src/vercel-environment.ts
|
|
2849
|
-
import { getContext } from "@vercel/oidc";
|
|
2850
|
-
import { getVercelOidcToken } from "@vercel/oidc";
|
|
2851
|
-
async function getVercelRequestId() {
|
|
2852
|
-
var _a11;
|
|
2853
|
-
return (_a11 = getContext().headers) == null ? void 0 : _a11["x-vercel-id"];
|
|
2854
|
-
}
|
|
2855
|
-
|
|
2856
|
-
// src/version.ts
|
|
2857
|
-
var VERSION = true ? "4.0.56" : "0.0.0-test";
|
|
2858
|
-
|
|
2859
|
-
// src/gateway-provider.ts
|
|
2860
|
-
var AI_GATEWAY_PROTOCOL_VERSION = "0.0.1";
|
|
2861
|
-
var gatewayClientSecretResponseSchema = z.object({
|
|
2862
|
-
token: z.string(),
|
|
2863
|
-
expiresAt: z.number().nullish()
|
|
2864
|
-
});
|
|
2865
|
-
function createGateway(options = {}) {
|
|
2866
|
-
var _a11, _b11;
|
|
2867
|
-
let pendingMetadata = null;
|
|
2868
|
-
let metadataCache = null;
|
|
2869
|
-
const cacheRefreshMillis = (_a11 = options.metadataCacheRefreshMillis) != null ? _a11 : 1e3 * 60 * 5;
|
|
2870
|
-
let lastFetchTime = 0;
|
|
2871
|
-
const baseURL = (_b11 = withoutTrailingSlash(options.baseURL)) != null ? _b11 : "https://ai-gateway.vercel.sh/v4/ai";
|
|
2872
|
-
const createAuthHeaders = (auth) => withUserAgentSuffix(
|
|
2873
|
-
{
|
|
2874
|
-
Authorization: `Bearer ${auth.token}`,
|
|
2875
|
-
"ai-gateway-protocol-version": AI_GATEWAY_PROTOCOL_VERSION,
|
|
2876
|
-
[GATEWAY_AUTH_METHOD_HEADER]: auth.authMethod,
|
|
2877
|
-
...options.teamIdOrSlug != null ? { [VERCEL_AI_GATEWAY_TEAM_HEADER]: options.teamIdOrSlug } : {},
|
|
2878
|
-
...options.headers
|
|
2879
|
-
},
|
|
2880
|
-
`ai-sdk/gateway/${VERSION}`
|
|
2881
|
-
);
|
|
2882
|
-
const getHeaders = async () => {
|
|
2883
|
-
try {
|
|
2884
|
-
return createAuthHeaders(await getGatewayAuthToken(options));
|
|
2885
|
-
} catch (error) {
|
|
2886
|
-
throw GatewayAuthenticationError.createContextualError({
|
|
2887
|
-
apiKeyProvided: false,
|
|
2888
|
-
oidcTokenProvided: false,
|
|
2889
|
-
statusCode: 401,
|
|
2890
|
-
cause: error
|
|
2891
|
-
});
|
|
2892
|
-
}
|
|
2893
|
-
};
|
|
2894
|
-
const getRealtimeAuthToken = async () => {
|
|
2895
|
-
try {
|
|
2896
|
-
return await getGatewayAuthToken(options);
|
|
2897
|
-
} catch (error) {
|
|
2898
|
-
throw GatewayAuthenticationError.createContextualError({
|
|
2899
|
-
apiKeyProvided: false,
|
|
2900
|
-
oidcTokenProvided: false,
|
|
2901
|
-
statusCode: 401,
|
|
2902
|
-
cause: error
|
|
2903
|
-
});
|
|
2904
|
-
}
|
|
2905
|
-
};
|
|
2906
|
-
const mintClientSecret = async (params) => {
|
|
2907
|
-
assertGatewayClientSecretServerEnvironment();
|
|
2908
|
-
const auth = await getRealtimeAuthToken();
|
|
2909
|
-
const headers = createAuthHeaders(auth);
|
|
2910
|
-
const url = new URL("/v1/realtime/client-secrets", baseURL).toString();
|
|
2911
|
-
try {
|
|
2912
|
-
const { value } = await postJsonToApi8({
|
|
2913
|
-
url,
|
|
2914
|
-
headers,
|
|
2915
|
-
body: {
|
|
2916
|
-
model: params.modelId,
|
|
2917
|
-
...params.routeKind != null && { routeKind: params.routeKind },
|
|
2918
|
-
...params.expiresAfterSeconds != null && {
|
|
2919
|
-
expiresIn: params.expiresAfterSeconds
|
|
2920
|
-
}
|
|
2921
|
-
},
|
|
2922
|
-
successfulResponseHandler: createJsonResponseHandler11(
|
|
2923
|
-
gatewayClientSecretResponseSchema
|
|
2924
|
-
),
|
|
2925
|
-
failedResponseHandler: createJsonErrorResponseHandler11({
|
|
2926
|
-
errorSchema: z.any(),
|
|
2927
|
-
errorToMessage: (data) => {
|
|
2928
|
-
var _a12;
|
|
2929
|
-
return (_a12 = getErrorMessage11(data)) != null ? _a12 : "unknown error";
|
|
2930
|
-
}
|
|
2931
|
-
}),
|
|
2932
|
-
fetch: options.fetch
|
|
2933
|
-
});
|
|
2934
|
-
return {
|
|
2935
|
-
token: value.token,
|
|
2936
|
-
...value.expiresAt != null && { expiresAt: value.expiresAt }
|
|
2937
|
-
};
|
|
2938
|
-
} catch (error) {
|
|
2939
|
-
throw await asGatewayError(error, await parseAuthMethod(headers));
|
|
2940
|
-
}
|
|
2941
|
-
};
|
|
2942
|
-
const createO11yHeaders = () => {
|
|
2943
|
-
const deploymentId = loadOptionalSetting({
|
|
2944
|
-
settingValue: void 0,
|
|
2945
|
-
environmentVariableName: "VERCEL_DEPLOYMENT_ID"
|
|
2946
|
-
});
|
|
2947
|
-
const environment = loadOptionalSetting({
|
|
2948
|
-
settingValue: void 0,
|
|
2949
|
-
environmentVariableName: "VERCEL_ENV"
|
|
2950
|
-
});
|
|
2951
|
-
const region = loadOptionalSetting({
|
|
2952
|
-
settingValue: void 0,
|
|
2953
|
-
environmentVariableName: "VERCEL_REGION"
|
|
2954
|
-
});
|
|
2955
|
-
const projectId = loadOptionalSetting({
|
|
2956
|
-
settingValue: void 0,
|
|
2957
|
-
environmentVariableName: "VERCEL_PROJECT_ID"
|
|
2958
|
-
});
|
|
2959
|
-
return async () => {
|
|
2960
|
-
const requestId = await getVercelRequestId();
|
|
2961
|
-
return {
|
|
2962
|
-
...deploymentId && { "ai-o11y-deployment-id": deploymentId },
|
|
2963
|
-
...environment && { "ai-o11y-environment": environment },
|
|
2964
|
-
...region && { "ai-o11y-region": region },
|
|
2965
|
-
...requestId && { "ai-o11y-request-id": requestId },
|
|
2966
|
-
...projectId && { "ai-o11y-project-id": projectId }
|
|
2967
|
-
};
|
|
2968
|
-
};
|
|
2969
|
-
};
|
|
2970
|
-
const createLanguageModel = (modelId) => {
|
|
2971
|
-
return new GatewayLanguageModel(modelId, {
|
|
2972
|
-
provider: "gateway",
|
|
2973
|
-
baseURL,
|
|
2974
|
-
headers: getHeaders,
|
|
2975
|
-
fetch: options.fetch,
|
|
2976
|
-
o11yHeaders: createO11yHeaders()
|
|
2977
|
-
});
|
|
2978
|
-
};
|
|
2979
|
-
const getAvailableModels = async () => {
|
|
2980
|
-
var _a12, _b12, _c;
|
|
2981
|
-
const now = (_c = (_b12 = (_a12 = options._internal) == null ? void 0 : _a12.currentDate) == null ? void 0 : _b12.call(_a12).getTime()) != null ? _c : Date.now();
|
|
2982
|
-
if (!pendingMetadata || now - lastFetchTime > cacheRefreshMillis) {
|
|
2983
|
-
lastFetchTime = now;
|
|
2984
|
-
pendingMetadata = new GatewayFetchMetadata({
|
|
2985
|
-
baseURL,
|
|
2986
|
-
headers: getHeaders,
|
|
2987
|
-
fetch: options.fetch
|
|
2988
|
-
}).getAvailableModels().then((metadata) => {
|
|
2989
|
-
metadataCache = metadata;
|
|
2990
|
-
return metadata;
|
|
2991
|
-
}).catch(async (error) => {
|
|
2992
|
-
throw await asGatewayError(
|
|
2993
|
-
error,
|
|
2994
|
-
await parseAuthMethod(await getHeaders())
|
|
2995
|
-
);
|
|
2996
|
-
});
|
|
2997
|
-
}
|
|
2998
|
-
return metadataCache ? Promise.resolve(metadataCache) : pendingMetadata;
|
|
2999
|
-
};
|
|
3000
|
-
const getCredits = async () => {
|
|
3001
|
-
return new GatewayFetchMetadata({
|
|
3002
|
-
baseURL,
|
|
3003
|
-
headers: getHeaders,
|
|
3004
|
-
fetch: options.fetch
|
|
3005
|
-
}).getCredits().catch(async (error) => {
|
|
3006
|
-
throw await asGatewayError(
|
|
3007
|
-
error,
|
|
3008
|
-
await parseAuthMethod(await getHeaders())
|
|
3009
|
-
);
|
|
3010
|
-
});
|
|
3011
|
-
};
|
|
3012
|
-
const getSpendReport = async (params) => {
|
|
3013
|
-
return new GatewaySpendReport({
|
|
3014
|
-
baseURL,
|
|
3015
|
-
headers: getHeaders,
|
|
3016
|
-
fetch: options.fetch
|
|
3017
|
-
}).getSpendReport(params).catch(async (error) => {
|
|
3018
|
-
throw await asGatewayError(
|
|
3019
|
-
error,
|
|
3020
|
-
await parseAuthMethod(await getHeaders())
|
|
3021
|
-
);
|
|
3022
|
-
});
|
|
3023
|
-
};
|
|
3024
|
-
const getGenerationInfo = async (params) => {
|
|
3025
|
-
return new GatewayGenerationInfoFetcher({
|
|
3026
|
-
baseURL,
|
|
3027
|
-
headers: getHeaders,
|
|
3028
|
-
fetch: options.fetch
|
|
3029
|
-
}).getGenerationInfo(params).catch(async (error) => {
|
|
3030
|
-
throw await asGatewayError(
|
|
3031
|
-
error,
|
|
3032
|
-
await parseAuthMethod(await getHeaders())
|
|
3033
|
-
);
|
|
3034
|
-
});
|
|
3035
|
-
};
|
|
3036
|
-
const provider = function(modelId) {
|
|
3037
|
-
if (new.target) {
|
|
3038
|
-
throw new Error(
|
|
3039
|
-
"The Gateway Provider model function cannot be called with the new keyword."
|
|
3040
|
-
);
|
|
3041
|
-
}
|
|
3042
|
-
return createLanguageModel(modelId);
|
|
3043
|
-
};
|
|
3044
|
-
provider.specificationVersion = "v4";
|
|
3045
|
-
provider.getAvailableModels = getAvailableModels;
|
|
3046
|
-
provider.getCredits = getCredits;
|
|
3047
|
-
provider.getSpendReport = getSpendReport;
|
|
3048
|
-
provider.getGenerationInfo = getGenerationInfo;
|
|
3049
|
-
provider.imageModel = (modelId) => {
|
|
3050
|
-
return new GatewayImageModel(modelId, {
|
|
3051
|
-
provider: "gateway",
|
|
3052
|
-
baseURL,
|
|
3053
|
-
headers: getHeaders,
|
|
3054
|
-
fetch: options.fetch,
|
|
3055
|
-
o11yHeaders: createO11yHeaders()
|
|
3056
|
-
});
|
|
3057
|
-
};
|
|
3058
|
-
provider.languageModel = createLanguageModel;
|
|
3059
|
-
const createEmbeddingModel = (modelId) => {
|
|
3060
|
-
return new GatewayEmbeddingModel(modelId, {
|
|
3061
|
-
provider: "gateway",
|
|
3062
|
-
baseURL,
|
|
3063
|
-
headers: getHeaders,
|
|
3064
|
-
fetch: options.fetch,
|
|
3065
|
-
o11yHeaders: createO11yHeaders()
|
|
3066
|
-
});
|
|
3067
|
-
};
|
|
3068
|
-
provider.embeddingModel = createEmbeddingModel;
|
|
3069
|
-
provider.textEmbeddingModel = createEmbeddingModel;
|
|
3070
|
-
provider.videoModel = (modelId) => {
|
|
3071
|
-
return new GatewayVideoModel(modelId, {
|
|
3072
|
-
provider: "gateway",
|
|
3073
|
-
baseURL,
|
|
3074
|
-
headers: getHeaders,
|
|
3075
|
-
fetch: options.fetch,
|
|
3076
|
-
o11yHeaders: createO11yHeaders()
|
|
3077
|
-
});
|
|
3078
|
-
};
|
|
3079
|
-
const createRerankingModel = (modelId) => {
|
|
3080
|
-
return new GatewayRerankingModel(modelId, {
|
|
3081
|
-
provider: "gateway",
|
|
3082
|
-
baseURL,
|
|
3083
|
-
headers: getHeaders,
|
|
3084
|
-
fetch: options.fetch,
|
|
3085
|
-
o11yHeaders: createO11yHeaders()
|
|
3086
|
-
});
|
|
3087
|
-
};
|
|
3088
|
-
provider.rerankingModel = createRerankingModel;
|
|
3089
|
-
provider.reranking = createRerankingModel;
|
|
3090
|
-
const createSpeechModel = (modelId) => {
|
|
3091
|
-
return new GatewaySpeechModel(modelId, {
|
|
3092
|
-
provider: "gateway",
|
|
3093
|
-
baseURL,
|
|
3094
|
-
headers: getHeaders,
|
|
3095
|
-
fetch: options.fetch,
|
|
3096
|
-
o11yHeaders: createO11yHeaders()
|
|
3097
|
-
});
|
|
3098
|
-
};
|
|
3099
|
-
provider.speechModel = createSpeechModel;
|
|
3100
|
-
provider.speech = createSpeechModel;
|
|
3101
|
-
const createTranscriptionModel = (modelId) => {
|
|
3102
|
-
return new GatewayTranscriptionModel(modelId, {
|
|
3103
|
-
provider: "gateway",
|
|
3104
|
-
baseURL,
|
|
3105
|
-
headers: getHeaders,
|
|
3106
|
-
fetch: options.fetch,
|
|
3107
|
-
o11yHeaders: createO11yHeaders(),
|
|
3108
|
-
webSocket: options.webSocket
|
|
3109
|
-
});
|
|
3110
|
-
};
|
|
3111
|
-
provider.transcriptionModel = createTranscriptionModel;
|
|
3112
|
-
provider.transcription = createTranscriptionModel;
|
|
3113
|
-
provider.experimental_transcription = Object.assign(
|
|
3114
|
-
(modelId) => createTranscriptionModel(modelId),
|
|
3115
|
-
{
|
|
3116
|
-
getToken: async (tokenOptions) => {
|
|
3117
|
-
const secret = await mintClientSecret({
|
|
3118
|
-
modelId: tokenOptions.model,
|
|
3119
|
-
routeKind: "transcription",
|
|
3120
|
-
...tokenOptions.expiresAfterSeconds != null && {
|
|
3121
|
-
expiresAfterSeconds: tokenOptions.expiresAfterSeconds
|
|
3122
|
-
}
|
|
3123
|
-
});
|
|
3124
|
-
return {
|
|
3125
|
-
token: secret.token,
|
|
3126
|
-
url: toGatewayTranscriptionUrl(baseURL, tokenOptions.model),
|
|
3127
|
-
...secret.expiresAt != null && { expiresAt: secret.expiresAt }
|
|
3128
|
-
};
|
|
3129
|
-
}
|
|
3130
|
-
}
|
|
3131
|
-
);
|
|
3132
|
-
const createRealtimeModel = (modelId) => new GatewayRealtimeModel(modelId, {
|
|
3133
|
-
provider: "gateway.realtime",
|
|
3134
|
-
baseURL,
|
|
3135
|
-
teamIdOrSlug: options.teamIdOrSlug,
|
|
3136
|
-
createClientSecret: mintClientSecret
|
|
3137
|
-
});
|
|
3138
|
-
provider.experimental_realtime = Object.assign(
|
|
3139
|
-
(modelId) => createRealtimeModel(modelId),
|
|
3140
|
-
{
|
|
3141
|
-
getToken: async (tokenOptions) => {
|
|
3142
|
-
const { model: modelId, ...secretOptions } = tokenOptions;
|
|
3143
|
-
const model = createRealtimeModel(modelId);
|
|
3144
|
-
const secret = await model.doCreateClientSecret(secretOptions);
|
|
3145
|
-
return {
|
|
3146
|
-
token: secret.token,
|
|
3147
|
-
url: secret.url,
|
|
3148
|
-
...secret.expiresAt != null && { expiresAt: secret.expiresAt }
|
|
3149
|
-
};
|
|
3150
|
-
}
|
|
3151
|
-
}
|
|
3152
|
-
);
|
|
3153
|
-
provider.chat = provider.languageModel;
|
|
3154
|
-
provider.embedding = provider.embeddingModel;
|
|
3155
|
-
provider.image = provider.imageModel;
|
|
3156
|
-
provider.video = provider.videoModel;
|
|
3157
|
-
provider.tools = gatewayTools;
|
|
3158
|
-
return provider;
|
|
3159
|
-
}
|
|
3160
|
-
var gateway = createGateway();
|
|
3161
|
-
async function getGatewayAuthToken(options) {
|
|
3162
|
-
const apiKey = loadOptionalSetting({
|
|
3163
|
-
settingValue: options.apiKey,
|
|
3164
|
-
environmentVariableName: "AI_GATEWAY_API_KEY"
|
|
3165
|
-
});
|
|
3166
|
-
if (apiKey) {
|
|
3167
|
-
return {
|
|
3168
|
-
token: apiKey,
|
|
3169
|
-
authMethod: "api-key"
|
|
3170
|
-
};
|
|
3171
|
-
}
|
|
3172
|
-
const oidcToken = await getVercelOidcToken();
|
|
3173
|
-
return {
|
|
3174
|
-
token: oidcToken,
|
|
3175
|
-
authMethod: "oidc"
|
|
3176
|
-
};
|
|
3177
|
-
}
|
|
3178
|
-
function assertGatewayClientSecretServerEnvironment() {
|
|
3179
|
-
if (typeof globalThis.window !== "undefined") {
|
|
3180
|
-
throw new Error(
|
|
3181
|
-
"AI Gateway client secrets must be minted server-side: minting needs your Gateway credential, which must never reach the browser. Call gateway.experimental_realtime.getToken() or gateway.experimental_transcription.getToken() from your server and pass the returned token to the client."
|
|
3182
|
-
);
|
|
3183
|
-
}
|
|
3184
|
-
}
|
|
3185
|
-
export {
|
|
3186
|
-
GATEWAY_AUTH_SUBPROTOCOL_PREFIX,
|
|
3187
|
-
GATEWAY_REALTIME_SUBPROTOCOL,
|
|
3188
|
-
GATEWAY_TEAM_SUBPROTOCOL_PREFIX,
|
|
3189
|
-
GATEWAY_TRANSCRIPTION_SUBPROTOCOL,
|
|
3190
|
-
GatewayAuthenticationError,
|
|
3191
|
-
GatewayError,
|
|
3192
|
-
GatewayFailedDependencyError,
|
|
3193
|
-
GatewayForbiddenError,
|
|
3194
|
-
GatewayInternalServerError,
|
|
3195
|
-
GatewayInvalidRequestError,
|
|
3196
|
-
GatewayModelNotFoundError,
|
|
3197
|
-
GatewayRateLimitError,
|
|
3198
|
-
GatewayResponseError,
|
|
3199
|
-
VERSION,
|
|
3200
|
-
createGateway,
|
|
3201
|
-
createGateway as createGatewayProvider,
|
|
3202
|
-
gateway,
|
|
3203
|
-
getGatewayRealtimeAuthToken,
|
|
3204
|
-
getGatewayRealtimeProtocols,
|
|
3205
|
-
getGatewayRealtimeTeamIdOrSlug,
|
|
3206
|
-
getGatewayTranscriptionProtocols
|
|
3207
|
-
};
|
|
3208
|
-
//# sourceMappingURL=index.js.map
|