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,4 +1,7 @@
|
|
|
1
1
|
// src/chat/openai-chat-language-model.ts
|
|
2
|
+
import {
|
|
3
|
+
InvalidResponseDataError
|
|
4
|
+
} from "@ai-sdk/provider";
|
|
2
5
|
import {
|
|
3
6
|
StreamingToolCallTracker,
|
|
4
7
|
combineHeaders,
|
|
@@ -34,19 +37,23 @@ var openaiFailedResponseHandler = createJsonErrorResponseHandler({
|
|
|
34
37
|
|
|
35
38
|
// src/openai-language-model-capabilities.ts
|
|
36
39
|
function getOpenAILanguageModelCapabilities(modelId) {
|
|
37
|
-
var
|
|
40
|
+
var _a2, _b, _c, _d, _e;
|
|
38
41
|
const oSeriesVersion = getOSeriesVersion(modelId);
|
|
39
42
|
const gptVersion = getGptVersion(modelId);
|
|
40
|
-
const isGptChatModel = (gptVersion == null ? void 0 : gptVersion.minor) == null && ((_b = (
|
|
43
|
+
const isGptChatModel = (gptVersion == null ? void 0 : gptVersion.minor) == null && ((_b = (_a2 = gptVersion == null ? void 0 : gptVersion.variant) == null ? void 0 : _a2.startsWith("chat")) != null ? _b : false);
|
|
41
44
|
const isGptNanoModel = (_d = (_c = gptVersion == null ? void 0 : gptVersion.variant) == null ? void 0 : _c.startsWith("nano")) != null ? _d : false;
|
|
45
|
+
const isGpt6OrLaterModel = gptVersion != null && gptVersion.major >= 6;
|
|
42
46
|
const supportsFlexProcessing = oSeriesVersion != null && oSeriesVersion >= 3 || gptVersion != null && gptVersion.major >= 5 && !isGptChatModel;
|
|
43
47
|
const supportsPriorityProcessing = modelId.startsWith("gpt-4") || gptVersion != null && gptVersion.major >= 5 && !isGptNanoModel && !isGptChatModel || oSeriesVersion != null && oSeriesVersion >= 3;
|
|
44
48
|
const isReasoningModel = oSeriesVersion != null || gptVersion != null && gptVersion.major >= 5 && !isGptChatModel;
|
|
45
|
-
const supportsNonReasoningParameters = gptVersion != null && (gptVersion.major > 5 || gptVersion.major === 5 && ((_e = gptVersion.minor) != null ? _e : 0) >= 1);
|
|
49
|
+
const supportsNonReasoningParameters = !isGpt6OrLaterModel && gptVersion != null && (gptVersion.major > 5 || gptVersion.major === 5 && ((_e = gptVersion.minor) != null ? _e : 0) >= 1);
|
|
46
50
|
const systemMessageMode = isReasoningModel ? "developer" : "system";
|
|
47
51
|
return {
|
|
48
52
|
supportsFlexProcessing,
|
|
49
53
|
supportsPriorityProcessing,
|
|
54
|
+
supportsConfigurationUpdate: isGpt6OrLaterModel,
|
|
55
|
+
supportsAsyncToolCalling: isGpt6OrLaterModel,
|
|
56
|
+
supportedReasoningEfforts: isGpt6OrLaterModel ? ["low", "medium", "high", "xhigh", "max"] : void 0,
|
|
50
57
|
isReasoningModel,
|
|
51
58
|
systemMessageMode,
|
|
52
59
|
supportsNonReasoningParameters
|
|
@@ -70,6 +77,25 @@ function getGptVersion(modelId) {
|
|
|
70
77
|
|
|
71
78
|
// src/openai-stream-error.ts
|
|
72
79
|
import { APICallError } from "@ai-sdk/provider";
|
|
80
|
+
import {
|
|
81
|
+
createProviderStreamError
|
|
82
|
+
} from "@ai-sdk/provider-utils";
|
|
83
|
+
function createOpenAIProviderStreamError(frame) {
|
|
84
|
+
var _a2, _b;
|
|
85
|
+
const streamError = parseStreamError(frame);
|
|
86
|
+
if (streamError == null) {
|
|
87
|
+
return void 0;
|
|
88
|
+
}
|
|
89
|
+
const statusCode = getStatusCode(streamError);
|
|
90
|
+
return createProviderStreamError({
|
|
91
|
+
message: streamError.message,
|
|
92
|
+
type: (_a2 = streamError.type) != null ? _a2 : void 0,
|
|
93
|
+
code: (_b = streamError.code) != null ? _b : void 0,
|
|
94
|
+
statusCode,
|
|
95
|
+
isRetryable: isRetryableStreamError(streamError, statusCode),
|
|
96
|
+
data: frame
|
|
97
|
+
});
|
|
98
|
+
}
|
|
73
99
|
async function throwIfOpenAIStreamErrorBeforeOutput({
|
|
74
100
|
stream,
|
|
75
101
|
getError,
|
|
@@ -166,20 +192,21 @@ function createOpenAIStreamError({
|
|
|
166
192
|
requestBodyValues,
|
|
167
193
|
responseHeaders
|
|
168
194
|
}) {
|
|
169
|
-
var
|
|
170
|
-
const streamError =
|
|
195
|
+
var _a2, _b;
|
|
196
|
+
const streamError = createOpenAIProviderStreamError(frame);
|
|
171
197
|
return new APICallError({
|
|
172
|
-
message: (
|
|
198
|
+
message: (_a2 = streamError == null ? void 0 : streamError.message) != null ? _a2 : "OpenAI stream failed before any output was generated",
|
|
173
199
|
url,
|
|
174
200
|
requestBodyValues,
|
|
175
|
-
statusCode: streamError == null ?
|
|
201
|
+
statusCode: (_b = streamError == null ? void 0 : streamError.statusCode) != null ? _b : 500,
|
|
176
202
|
responseHeaders,
|
|
177
203
|
responseBody: JSON.stringify(frame),
|
|
178
|
-
data: frame
|
|
204
|
+
data: frame,
|
|
205
|
+
isRetryable: streamError == null ? void 0 : streamError.isRetryable
|
|
179
206
|
});
|
|
180
207
|
}
|
|
181
208
|
function parseStreamError(frame) {
|
|
182
|
-
var
|
|
209
|
+
var _a2;
|
|
183
210
|
const value = asRecord(frame);
|
|
184
211
|
if (value == null) {
|
|
185
212
|
return void 0;
|
|
@@ -190,27 +217,20 @@ function parseStreamError(frame) {
|
|
|
190
217
|
return typeof (responseError == null ? void 0 : responseError.message) === "string" ? {
|
|
191
218
|
message: responseError.message,
|
|
192
219
|
code: getStringOrNumber(responseError.code),
|
|
193
|
-
type: "response.failed"
|
|
194
|
-
frame
|
|
220
|
+
type: "response.failed"
|
|
195
221
|
} : void 0;
|
|
196
222
|
}
|
|
197
|
-
const error = (
|
|
223
|
+
const error = (_a2 = asRecord(value.error)) != null ? _a2 : value;
|
|
198
224
|
return typeof error.message === "string" && (asRecord(value.error) != null || typeof error.type === "string" || "code" in error || "param" in error) ? {
|
|
199
225
|
message: error.message,
|
|
200
226
|
code: getStringOrNumber(error.code),
|
|
201
|
-
type: typeof error.type === "string" ? error.type : void 0
|
|
202
|
-
frame
|
|
227
|
+
type: typeof error.type === "string" ? error.type : void 0
|
|
203
228
|
} : void 0;
|
|
204
229
|
}
|
|
205
230
|
function getStatusCode(error) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
if (typeof error.code === "string" && /^\d{3}$/.test(error.code)) {
|
|
210
|
-
const numericCode = Number(error.code);
|
|
211
|
-
if (isHttpErrorStatusCode(numericCode)) {
|
|
212
|
-
return numericCode;
|
|
213
|
-
}
|
|
231
|
+
const explicitStatusCode = getHttpStatusCode(error.code);
|
|
232
|
+
if (explicitStatusCode != null) {
|
|
233
|
+
return explicitStatusCode;
|
|
214
234
|
}
|
|
215
235
|
const discriminator = [error.code, error.type].filter((value) => typeof value === "string" || typeof value === "number").join(" ").toLowerCase();
|
|
216
236
|
if (["insufficient_quota", "rate_limit"].some(
|
|
@@ -239,15 +259,28 @@ function getStringOrNumber(value) {
|
|
|
239
259
|
function isHttpErrorStatusCode(value) {
|
|
240
260
|
return Number.isInteger(value) && value >= 400 && value <= 599;
|
|
241
261
|
}
|
|
262
|
+
function getHttpStatusCode(value) {
|
|
263
|
+
const statusCode = typeof value === "string" && /^\d{3}$/.test(value) ? Number(value) : value;
|
|
264
|
+
return typeof statusCode === "number" && isHttpErrorStatusCode(statusCode) ? statusCode : void 0;
|
|
265
|
+
}
|
|
266
|
+
function isRetryableStatusCode(statusCode) {
|
|
267
|
+
return statusCode === 408 || statusCode === 409 || statusCode === 429 || statusCode >= 500;
|
|
268
|
+
}
|
|
269
|
+
function isRetryableStreamError(error, statusCode) {
|
|
270
|
+
if (error.code === "insufficient_quota" || error.type === "insufficient_quota") {
|
|
271
|
+
return false;
|
|
272
|
+
}
|
|
273
|
+
return isRetryableStatusCode(statusCode);
|
|
274
|
+
}
|
|
242
275
|
|
|
243
276
|
// src/chat/convert-openai-chat-usage.ts
|
|
244
277
|
import { createNullLanguageModelUsage } from "@ai-sdk/provider-utils";
|
|
245
278
|
function convertOpenAIChatUsage(usage) {
|
|
246
|
-
var
|
|
279
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h;
|
|
247
280
|
if (usage == null) {
|
|
248
281
|
return createNullLanguageModelUsage();
|
|
249
282
|
}
|
|
250
|
-
const promptTokens = (
|
|
283
|
+
const promptTokens = (_a2 = usage.prompt_tokens) != null ? _a2 : 0;
|
|
251
284
|
const completionTokens = (_b = usage.completion_tokens) != null ? _b : 0;
|
|
252
285
|
const cachedTokens = (_d = (_c = usage.prompt_tokens_details) == null ? void 0 : _c.cached_tokens) != null ? _d : 0;
|
|
253
286
|
const cacheWriteTokens = (_f = (_e = usage.prompt_tokens_details) == null ? void 0 : _e.cache_write_tokens) != null ? _f : void 0;
|
|
@@ -261,7 +294,7 @@ function convertOpenAIChatUsage(usage) {
|
|
|
261
294
|
},
|
|
262
295
|
outputTokens: {
|
|
263
296
|
total: completionTokens,
|
|
264
|
-
text: completionTokens - reasoningTokens,
|
|
297
|
+
text: Math.max(0, completionTokens - reasoningTokens),
|
|
265
298
|
reasoning: reasoningTokens
|
|
266
299
|
},
|
|
267
300
|
raw: usage
|
|
@@ -279,17 +312,19 @@ import {
|
|
|
279
312
|
resolveProviderReference
|
|
280
313
|
} from "@ai-sdk/provider-utils";
|
|
281
314
|
function serializeToolCallArguments(input) {
|
|
282
|
-
return JSON.stringify(
|
|
315
|
+
return JSON.stringify(
|
|
316
|
+
typeof input === "object" && input !== null && !Array.isArray(input) ? input : {}
|
|
317
|
+
);
|
|
283
318
|
}
|
|
284
319
|
function getPromptCacheBreakpoint(providerOptions) {
|
|
285
|
-
var
|
|
286
|
-
return (
|
|
320
|
+
var _a2;
|
|
321
|
+
return (_a2 = providerOptions == null ? void 0 : providerOptions.openai) == null ? void 0 : _a2.promptCacheBreakpoint;
|
|
287
322
|
}
|
|
288
323
|
function convertToOpenAIChatMessages({
|
|
289
324
|
prompt,
|
|
290
325
|
systemMessageMode = "system"
|
|
291
326
|
}) {
|
|
292
|
-
var
|
|
327
|
+
var _a2, _b;
|
|
293
328
|
const messages = [];
|
|
294
329
|
const warnings = [];
|
|
295
330
|
for (const { role, content, providerOptions } of prompt) {
|
|
@@ -348,7 +383,7 @@ function convertToOpenAIChatMessages({
|
|
|
348
383
|
messages.push({
|
|
349
384
|
role: "user",
|
|
350
385
|
content: content.map((part, index) => {
|
|
351
|
-
var
|
|
386
|
+
var _a3, _b2, _c;
|
|
352
387
|
switch (part.type) {
|
|
353
388
|
case "text": {
|
|
354
389
|
const promptCacheBreakpoint = getPromptCacheBreakpoint(
|
|
@@ -394,7 +429,7 @@ function convertToOpenAIChatMessages({
|
|
|
394
429
|
type: "image_url",
|
|
395
430
|
image_url: {
|
|
396
431
|
url: part.data.type === "url" ? part.data.url.toString() : `data:${resolveFullMediaType({ part })};base64,${convertToBase64(part.data.data)}`,
|
|
397
|
-
detail: (_b2 = (
|
|
432
|
+
detail: (_b2 = (_a3 = part.providerOptions) == null ? void 0 : _a3.openai) == null ? void 0 : _b2.imageDetail
|
|
398
433
|
},
|
|
399
434
|
...promptCacheBreakpoint != null && {
|
|
400
435
|
prompt_cache_breakpoint: promptCacheBreakpoint
|
|
@@ -519,7 +554,7 @@ function convertToOpenAIChatMessages({
|
|
|
519
554
|
continue;
|
|
520
555
|
}
|
|
521
556
|
const output = toolResponse.output;
|
|
522
|
-
const promptCacheBreakpoint = (
|
|
557
|
+
const promptCacheBreakpoint = (_a2 = output.type === "content" ? output.value.map((part) => getPromptCacheBreakpoint(part.providerOptions)).find((breakpoint) => breakpoint != null) : getPromptCacheBreakpoint(output.providerOptions)) != null ? _a2 : getPromptCacheBreakpoint(toolResponse.providerOptions);
|
|
523
558
|
let contentValue;
|
|
524
559
|
switch (output.type) {
|
|
525
560
|
case "text":
|
|
@@ -800,11 +835,12 @@ var openaiLanguageModelChatOptions = lazySchema2(
|
|
|
800
835
|
* - 'flex': 50% cheaper processing at the cost of increased latency. Only available for o3 and o4-mini models.
|
|
801
836
|
* - 'priority': Higher-speed processing with predictably low latency at premium cost. Available for Enterprise customers.
|
|
802
837
|
* - 'fast': OpenAI's newer name for the 'priority' tier. Interchangeable with it.
|
|
838
|
+
* - 'ultrafast': Access-controlled Ultrafast processing. Only available for gpt-5.6-sol.
|
|
803
839
|
* - 'default': The request will be processed with the standard pricing and performance for the selected model.
|
|
804
840
|
*
|
|
805
841
|
* @default 'auto'
|
|
806
842
|
*/
|
|
807
|
-
serviceTier: z3.enum(["auto", "flex", "priority", "fast", "default"]).optional(),
|
|
843
|
+
serviceTier: z3.enum(["auto", "flex", "priority", "fast", "ultrafast", "default"]).optional(),
|
|
808
844
|
/**
|
|
809
845
|
* Whether to use strict JSON schema validation.
|
|
810
846
|
*
|
|
@@ -873,9 +909,119 @@ var openaiLanguageModelChatOptions = lazySchema2(
|
|
|
873
909
|
);
|
|
874
910
|
|
|
875
911
|
// src/chat/openai-chat-prepare-tools.ts
|
|
912
|
+
import {
|
|
913
|
+
UnsupportedFunctionalityError as UnsupportedFunctionalityError3
|
|
914
|
+
} from "@ai-sdk/provider";
|
|
915
|
+
|
|
916
|
+
// src/normalize-openai-json-schema.ts
|
|
876
917
|
import {
|
|
877
918
|
UnsupportedFunctionalityError as UnsupportedFunctionalityError2
|
|
878
919
|
} from "@ai-sdk/provider";
|
|
920
|
+
function normalizeOpenAIJsonSchema(schema) {
|
|
921
|
+
let removedPropertyNames = false;
|
|
922
|
+
const normalizedSchema = normalizeSchema(schema);
|
|
923
|
+
return {
|
|
924
|
+
schema: normalizedSchema,
|
|
925
|
+
warnings: removedPropertyNames ? [
|
|
926
|
+
{
|
|
927
|
+
type: "compatibility",
|
|
928
|
+
feature: "JSON Schema propertyNames",
|
|
929
|
+
details: "OpenAI does not support JSON Schema propertyNames. It was removed before sending the schema, so OpenAI will not enforce property-name constraints."
|
|
930
|
+
}
|
|
931
|
+
] : []
|
|
932
|
+
};
|
|
933
|
+
function normalizeSchema(schema2) {
|
|
934
|
+
const propertyNames = schema2.propertyNames;
|
|
935
|
+
if (propertyNames != null) {
|
|
936
|
+
if (typeof propertyNames === "boolean" || propertyNames.type !== "string") {
|
|
937
|
+
throw new UnsupportedFunctionalityError2({
|
|
938
|
+
functionality: "JSON Schema propertyNames that does not use a string schema"
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
removedPropertyNames = true;
|
|
942
|
+
}
|
|
943
|
+
const normalizedSchema2 = { ...schema2 };
|
|
944
|
+
delete normalizedSchema2.propertyNames;
|
|
945
|
+
if (normalizedSchema2.properties != null) {
|
|
946
|
+
normalizedSchema2.properties = normalizeSchemaRecord(
|
|
947
|
+
normalizedSchema2.properties
|
|
948
|
+
);
|
|
949
|
+
}
|
|
950
|
+
if (normalizedSchema2.patternProperties != null) {
|
|
951
|
+
normalizedSchema2.patternProperties = normalizeSchemaRecord(
|
|
952
|
+
normalizedSchema2.patternProperties
|
|
953
|
+
);
|
|
954
|
+
}
|
|
955
|
+
if (normalizedSchema2.additionalProperties != null) {
|
|
956
|
+
normalizedSchema2.additionalProperties = normalizeDefinition(
|
|
957
|
+
normalizedSchema2.additionalProperties
|
|
958
|
+
);
|
|
959
|
+
}
|
|
960
|
+
if (normalizedSchema2.additionalItems != null) {
|
|
961
|
+
normalizedSchema2.additionalItems = normalizeDefinition(
|
|
962
|
+
normalizedSchema2.additionalItems
|
|
963
|
+
);
|
|
964
|
+
}
|
|
965
|
+
if (normalizedSchema2.items != null) {
|
|
966
|
+
normalizedSchema2.items = Array.isArray(normalizedSchema2.items) ? normalizedSchema2.items.map(normalizeDefinition) : normalizeDefinition(normalizedSchema2.items);
|
|
967
|
+
}
|
|
968
|
+
if (normalizedSchema2.contains != null) {
|
|
969
|
+
normalizedSchema2.contains = normalizeDefinition(
|
|
970
|
+
normalizedSchema2.contains
|
|
971
|
+
);
|
|
972
|
+
}
|
|
973
|
+
if (normalizedSchema2.not != null) {
|
|
974
|
+
normalizedSchema2.not = normalizeDefinition(normalizedSchema2.not);
|
|
975
|
+
}
|
|
976
|
+
if (normalizedSchema2.allOf != null) {
|
|
977
|
+
normalizedSchema2.allOf = normalizedSchema2.allOf.map(normalizeDefinition);
|
|
978
|
+
}
|
|
979
|
+
if (normalizedSchema2.anyOf != null) {
|
|
980
|
+
normalizedSchema2.anyOf = normalizedSchema2.anyOf.map(normalizeDefinition);
|
|
981
|
+
}
|
|
982
|
+
if (normalizedSchema2.oneOf != null) {
|
|
983
|
+
normalizedSchema2.oneOf = normalizedSchema2.oneOf.map(normalizeDefinition);
|
|
984
|
+
}
|
|
985
|
+
if (normalizedSchema2.definitions != null) {
|
|
986
|
+
normalizedSchema2.definitions = normalizeSchemaRecord(
|
|
987
|
+
normalizedSchema2.definitions
|
|
988
|
+
);
|
|
989
|
+
}
|
|
990
|
+
if (normalizedSchema2.$defs != null) {
|
|
991
|
+
normalizedSchema2.$defs = normalizeSchemaRecord(normalizedSchema2.$defs);
|
|
992
|
+
}
|
|
993
|
+
if (normalizedSchema2.dependencies != null) {
|
|
994
|
+
normalizedSchema2.dependencies = Object.fromEntries(
|
|
995
|
+
Object.entries(normalizedSchema2.dependencies).map(
|
|
996
|
+
([key, dependency]) => [
|
|
997
|
+
key,
|
|
998
|
+
Array.isArray(dependency) ? dependency : normalizeDefinition(dependency)
|
|
999
|
+
]
|
|
1000
|
+
)
|
|
1001
|
+
);
|
|
1002
|
+
}
|
|
1003
|
+
for (const keyword of ["if", "then", "else"]) {
|
|
1004
|
+
const conditionalSchema = normalizedSchema2[keyword];
|
|
1005
|
+
if (conditionalSchema != null) {
|
|
1006
|
+
normalizedSchema2[keyword] = normalizeDefinition(conditionalSchema);
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
return normalizedSchema2;
|
|
1010
|
+
}
|
|
1011
|
+
function normalizeSchemaRecord(schemas) {
|
|
1012
|
+
return Object.fromEntries(
|
|
1013
|
+
Object.entries(schemas).map(([key, schema2]) => [
|
|
1014
|
+
key,
|
|
1015
|
+
normalizeDefinition(schema2)
|
|
1016
|
+
])
|
|
1017
|
+
);
|
|
1018
|
+
}
|
|
1019
|
+
function normalizeDefinition(definition) {
|
|
1020
|
+
return typeof definition === "boolean" ? definition : normalizeSchema(definition);
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
// src/chat/openai-chat-prepare-tools.ts
|
|
879
1025
|
function prepareChatTools({
|
|
880
1026
|
tools,
|
|
881
1027
|
toolChoice
|
|
@@ -888,17 +1034,22 @@ function prepareChatTools({
|
|
|
888
1034
|
const openaiTools = [];
|
|
889
1035
|
for (const tool of tools) {
|
|
890
1036
|
switch (tool.type) {
|
|
891
|
-
case "function":
|
|
1037
|
+
case "function": {
|
|
1038
|
+
const normalizedInputSchema = normalizeOpenAIJsonSchema(
|
|
1039
|
+
tool.inputSchema
|
|
1040
|
+
);
|
|
1041
|
+
toolWarnings.push(...normalizedInputSchema.warnings);
|
|
892
1042
|
openaiTools.push({
|
|
893
1043
|
type: "function",
|
|
894
1044
|
function: {
|
|
895
1045
|
name: tool.name,
|
|
896
1046
|
description: tool.description,
|
|
897
|
-
parameters:
|
|
1047
|
+
parameters: normalizedInputSchema.schema,
|
|
898
1048
|
...tool.strict != null ? { strict: tool.strict } : {}
|
|
899
1049
|
}
|
|
900
1050
|
});
|
|
901
1051
|
break;
|
|
1052
|
+
}
|
|
902
1053
|
default:
|
|
903
1054
|
toolWarnings.push({
|
|
904
1055
|
type: "unsupported",
|
|
@@ -929,7 +1080,7 @@ function prepareChatTools({
|
|
|
929
1080
|
};
|
|
930
1081
|
default: {
|
|
931
1082
|
const _exhaustiveCheck = type;
|
|
932
|
-
throw new
|
|
1083
|
+
throw new UnsupportedFunctionalityError3({
|
|
933
1084
|
functionality: `tool choice type: ${_exhaustiveCheck}`
|
|
934
1085
|
});
|
|
935
1086
|
}
|
|
@@ -974,15 +1125,25 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
974
1125
|
reasoning,
|
|
975
1126
|
providerOptions
|
|
976
1127
|
}) {
|
|
977
|
-
var
|
|
1128
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
978
1129
|
const warnings = [];
|
|
979
|
-
const openaiOptions = (
|
|
1130
|
+
const openaiOptions = (_a2 = await parseProviderOptions({
|
|
980
1131
|
provider: "openai",
|
|
981
1132
|
providerOptions,
|
|
982
1133
|
schema: openaiLanguageModelChatOptions
|
|
983
|
-
})) != null ?
|
|
1134
|
+
})) != null ? _a2 : {};
|
|
984
1135
|
const modelCapabilities = getOpenAILanguageModelCapabilities(this.modelId);
|
|
985
|
-
|
|
1136
|
+
let resolvedReasoningEffort = (_b = openaiOptions.reasoningEffort) != null ? _b : isCustomReasoning(reasoning) ? reasoning : void 0;
|
|
1137
|
+
if (resolvedReasoningEffort != null && modelCapabilities.supportedReasoningEfforts != null && !modelCapabilities.supportedReasoningEfforts.includes(
|
|
1138
|
+
resolvedReasoningEffort
|
|
1139
|
+
)) {
|
|
1140
|
+
warnings.push({
|
|
1141
|
+
type: "unsupported",
|
|
1142
|
+
feature: "reasoningEffort",
|
|
1143
|
+
details: `${this.modelId} only supports the following reasoning efforts: ${modelCapabilities.supportedReasoningEfforts.join(", ")}`
|
|
1144
|
+
});
|
|
1145
|
+
resolvedReasoningEffort = void 0;
|
|
1146
|
+
}
|
|
986
1147
|
const isReasoningModel = (_c = openaiOptions.forceReasoning) != null ? _c : modelCapabilities.isReasoningModel;
|
|
987
1148
|
if (topK != null) {
|
|
988
1149
|
warnings.push({ type: "unsupported", feature: "topK" });
|
|
@@ -995,6 +1156,10 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
995
1156
|
);
|
|
996
1157
|
warnings.push(...messageWarnings);
|
|
997
1158
|
const strictJsonSchema = (_e = openaiOptions.strictJsonSchema) != null ? _e : true;
|
|
1159
|
+
const normalizedResponseFormatSchema = (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null ? normalizeOpenAIJsonSchema(responseFormat.schema) : void 0;
|
|
1160
|
+
if (normalizedResponseFormatSchema != null) {
|
|
1161
|
+
warnings.push(...normalizedResponseFormatSchema.warnings);
|
|
1162
|
+
}
|
|
998
1163
|
const baseArgs = {
|
|
999
1164
|
// model id:
|
|
1000
1165
|
model: this.modelId,
|
|
@@ -1010,10 +1175,10 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1010
1175
|
top_p: topP,
|
|
1011
1176
|
frequency_penalty: frequencyPenalty,
|
|
1012
1177
|
presence_penalty: presencePenalty,
|
|
1013
|
-
response_format: (responseFormat == null ? void 0 : responseFormat.type) === "json" ?
|
|
1178
|
+
response_format: (responseFormat == null ? void 0 : responseFormat.type) === "json" ? normalizedResponseFormatSchema != null ? {
|
|
1014
1179
|
type: "json_schema",
|
|
1015
1180
|
json_schema: {
|
|
1016
|
-
schema:
|
|
1181
|
+
schema: normalizedResponseFormatSchema.schema,
|
|
1017
1182
|
strict: strictJsonSchema,
|
|
1018
1183
|
name: (_f = responseFormat.name) != null ? _f : "response",
|
|
1019
1184
|
description: responseFormat.description
|
|
@@ -1037,6 +1202,14 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1037
1202
|
// messages:
|
|
1038
1203
|
messages
|
|
1039
1204
|
};
|
|
1205
|
+
if (modelCapabilities.supportedReasoningEfforts != null && baseArgs.prompt_cache_retention != null) {
|
|
1206
|
+
baseArgs.prompt_cache_retention = void 0;
|
|
1207
|
+
warnings.push({
|
|
1208
|
+
type: "unsupported",
|
|
1209
|
+
feature: "promptCacheRetention",
|
|
1210
|
+
details: "promptCacheRetention is not supported by GPT-6 and later models; use promptCacheOptions instead"
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1040
1213
|
if (isReasoningModel) {
|
|
1041
1214
|
if (resolvedReasoningEffort !== "none" || !modelCapabilities.supportsNonReasoningParameters) {
|
|
1042
1215
|
if (baseArgs.temperature != null) {
|
|
@@ -1143,7 +1316,7 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1143
1316
|
};
|
|
1144
1317
|
}
|
|
1145
1318
|
async doGenerate(options) {
|
|
1146
|
-
var
|
|
1319
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
1147
1320
|
const { args: body, warnings } = await this.getArgs(options);
|
|
1148
1321
|
const {
|
|
1149
1322
|
responseHeaders,
|
|
@@ -1154,7 +1327,7 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1154
1327
|
path: "/chat/completions",
|
|
1155
1328
|
modelId: this.modelId
|
|
1156
1329
|
}),
|
|
1157
|
-
headers: combineHeaders((_b = (
|
|
1330
|
+
headers: combineHeaders((_b = (_a2 = this.config).headers) == null ? void 0 : _b.call(_a2), options.headers),
|
|
1158
1331
|
body,
|
|
1159
1332
|
failedResponseHandler: openaiFailedResponseHandler,
|
|
1160
1333
|
successfulResponseHandler: createJsonResponseHandler(
|
|
@@ -1164,6 +1337,12 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1164
1337
|
fetch: this.config.fetch
|
|
1165
1338
|
});
|
|
1166
1339
|
const choice = response.choices[0];
|
|
1340
|
+
if (choice == null) {
|
|
1341
|
+
throw new InvalidResponseDataError({
|
|
1342
|
+
data: rawResponse,
|
|
1343
|
+
message: "Response did not contain any choices."
|
|
1344
|
+
});
|
|
1345
|
+
}
|
|
1167
1346
|
const content = [];
|
|
1168
1347
|
const text = choice.message.content;
|
|
1169
1348
|
if (text != null && text.length > 0) {
|
|
@@ -1215,7 +1394,7 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1215
1394
|
};
|
|
1216
1395
|
}
|
|
1217
1396
|
async doStream(options) {
|
|
1218
|
-
var
|
|
1397
|
+
var _a2, _b;
|
|
1219
1398
|
const { args, warnings } = await this.getArgs(options);
|
|
1220
1399
|
const body = {
|
|
1221
1400
|
...args,
|
|
@@ -1230,7 +1409,7 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1230
1409
|
});
|
|
1231
1410
|
const { responseHeaders, value: response } = await postJsonToApi({
|
|
1232
1411
|
url,
|
|
1233
|
-
headers: combineHeaders((_b = (
|
|
1412
|
+
headers: combineHeaders((_b = (_a2 = this.config).headers) == null ? void 0 : _b.call(_a2), options.headers),
|
|
1234
1413
|
body,
|
|
1235
1414
|
failedResponseHandler: openaiFailedResponseHandler,
|
|
1236
1415
|
successfulResponseHandler: createEventSourceResponseHandler(
|
|
@@ -1267,7 +1446,7 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1267
1446
|
controller.enqueue({ type: "stream-start", warnings });
|
|
1268
1447
|
},
|
|
1269
1448
|
transform(chunk, controller) {
|
|
1270
|
-
var
|
|
1449
|
+
var _a3, _b2, _c, _d, _e, _f;
|
|
1271
1450
|
if (options.includeRawChunks) {
|
|
1272
1451
|
controller.enqueue({ type: "raw", rawValue: chunk.rawValue });
|
|
1273
1452
|
}
|
|
@@ -1279,7 +1458,10 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1279
1458
|
const value = chunk.value;
|
|
1280
1459
|
if ("error" in value) {
|
|
1281
1460
|
finishReason = { unified: "error", raw: void 0 };
|
|
1282
|
-
controller.enqueue({
|
|
1461
|
+
controller.enqueue({
|
|
1462
|
+
type: "error",
|
|
1463
|
+
error: (_a3 = createOpenAIProviderStreamError(value.error)) != null ? _a3 : value.error
|
|
1464
|
+
});
|
|
1283
1465
|
return;
|
|
1284
1466
|
}
|
|
1285
1467
|
if (!metadataExtracted) {
|
|
@@ -1294,11 +1476,11 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1294
1476
|
}
|
|
1295
1477
|
if (value.usage != null) {
|
|
1296
1478
|
usage = value.usage;
|
|
1297
|
-
if (((
|
|
1298
|
-
providerMetadata.openai.acceptedPredictionTokens = (
|
|
1479
|
+
if (((_b2 = value.usage.completion_tokens_details) == null ? void 0 : _b2.accepted_prediction_tokens) != null) {
|
|
1480
|
+
providerMetadata.openai.acceptedPredictionTokens = (_c = value.usage.completion_tokens_details) == null ? void 0 : _c.accepted_prediction_tokens;
|
|
1299
1481
|
}
|
|
1300
|
-
if (((
|
|
1301
|
-
providerMetadata.openai.rejectedPredictionTokens = (
|
|
1482
|
+
if (((_d = value.usage.completion_tokens_details) == null ? void 0 : _d.rejected_prediction_tokens) != null) {
|
|
1483
|
+
providerMetadata.openai.rejectedPredictionTokens = (_e = value.usage.completion_tokens_details) == null ? void 0 : _e.rejected_prediction_tokens;
|
|
1302
1484
|
}
|
|
1303
1485
|
}
|
|
1304
1486
|
const choice = value.choices[0];
|
|
@@ -1308,7 +1490,7 @@ var OpenAIChatLanguageModel = class _OpenAIChatLanguageModel {
|
|
|
1308
1490
|
raw: choice.finish_reason
|
|
1309
1491
|
};
|
|
1310
1492
|
}
|
|
1311
|
-
if (((
|
|
1493
|
+
if (((_f = choice == null ? void 0 : choice.logprobs) == null ? void 0 : _f.content) != null) {
|
|
1312
1494
|
providerMetadata.openai.logprobs = choice.logprobs.content;
|
|
1313
1495
|
}
|
|
1314
1496
|
if ((choice == null ? void 0 : choice.delta) == null) {
|
|
@@ -1388,11 +1570,11 @@ import {
|
|
|
1388
1570
|
// src/completion/convert-openai-completion-usage.ts
|
|
1389
1571
|
import { createNullLanguageModelUsage as createNullLanguageModelUsage2 } from "@ai-sdk/provider-utils";
|
|
1390
1572
|
function convertOpenAICompletionUsage(usage) {
|
|
1391
|
-
var
|
|
1573
|
+
var _a2, _b, _c, _d;
|
|
1392
1574
|
if (usage == null) {
|
|
1393
1575
|
return createNullLanguageModelUsage2();
|
|
1394
1576
|
}
|
|
1395
|
-
const promptTokens = (
|
|
1577
|
+
const promptTokens = (_a2 = usage.prompt_tokens) != null ? _a2 : 0;
|
|
1396
1578
|
const completionTokens = (_b = usage.completion_tokens) != null ? _b : 0;
|
|
1397
1579
|
return {
|
|
1398
1580
|
inputTokens: {
|
|
@@ -1413,7 +1595,7 @@ function convertOpenAICompletionUsage(usage) {
|
|
|
1413
1595
|
// src/completion/convert-to-openai-completion-prompt.ts
|
|
1414
1596
|
import {
|
|
1415
1597
|
InvalidPromptError,
|
|
1416
|
-
UnsupportedFunctionalityError as
|
|
1598
|
+
UnsupportedFunctionalityError as UnsupportedFunctionalityError4
|
|
1417
1599
|
} from "@ai-sdk/provider";
|
|
1418
1600
|
function convertToOpenAICompletionPrompt({
|
|
1419
1601
|
prompt,
|
|
@@ -1456,7 +1638,7 @@ ${userMessage}
|
|
|
1456
1638
|
return part.text;
|
|
1457
1639
|
}
|
|
1458
1640
|
case "tool-call": {
|
|
1459
|
-
throw new
|
|
1641
|
+
throw new UnsupportedFunctionalityError4({
|
|
1460
1642
|
functionality: "tool-call messages"
|
|
1461
1643
|
});
|
|
1462
1644
|
}
|
|
@@ -1469,7 +1651,7 @@ ${assistantMessage}
|
|
|
1469
1651
|
break;
|
|
1470
1652
|
}
|
|
1471
1653
|
case "tool": {
|
|
1472
|
-
throw new
|
|
1654
|
+
throw new UnsupportedFunctionalityError4({
|
|
1473
1655
|
functionality: "tool messages"
|
|
1474
1656
|
});
|
|
1475
1657
|
}
|
|
@@ -1717,7 +1899,7 @@ var OpenAICompletionLanguageModel = class _OpenAICompletionLanguageModel {
|
|
|
1717
1899
|
};
|
|
1718
1900
|
}
|
|
1719
1901
|
async doGenerate(options) {
|
|
1720
|
-
var
|
|
1902
|
+
var _a2, _b, _c;
|
|
1721
1903
|
const { args, warnings } = await this.getArgs(options);
|
|
1722
1904
|
const {
|
|
1723
1905
|
responseHeaders,
|
|
@@ -1728,7 +1910,7 @@ var OpenAICompletionLanguageModel = class _OpenAICompletionLanguageModel {
|
|
|
1728
1910
|
path: "/completions",
|
|
1729
1911
|
modelId: this.modelId
|
|
1730
1912
|
}),
|
|
1731
|
-
headers: combineHeaders2((_b = (
|
|
1913
|
+
headers: combineHeaders2((_b = (_a2 = this.config).headers) == null ? void 0 : _b.call(_a2), options.headers),
|
|
1732
1914
|
body: args,
|
|
1733
1915
|
failedResponseHandler: openaiFailedResponseHandler,
|
|
1734
1916
|
successfulResponseHandler: createJsonResponseHandler2(
|
|
@@ -1760,7 +1942,7 @@ var OpenAICompletionLanguageModel = class _OpenAICompletionLanguageModel {
|
|
|
1760
1942
|
};
|
|
1761
1943
|
}
|
|
1762
1944
|
async doStream(options) {
|
|
1763
|
-
var
|
|
1945
|
+
var _a2, _b;
|
|
1764
1946
|
const { args, warnings } = await this.getArgs(options);
|
|
1765
1947
|
const body = {
|
|
1766
1948
|
...args,
|
|
@@ -1775,7 +1957,7 @@ var OpenAICompletionLanguageModel = class _OpenAICompletionLanguageModel {
|
|
|
1775
1957
|
});
|
|
1776
1958
|
const { responseHeaders, value: response } = await postJsonToApi2({
|
|
1777
1959
|
url,
|
|
1778
|
-
headers: combineHeaders2((_b = (
|
|
1960
|
+
headers: combineHeaders2((_b = (_a2 = this.config).headers) == null ? void 0 : _b.call(_a2), options.headers),
|
|
1779
1961
|
body,
|
|
1780
1962
|
failedResponseHandler: openaiFailedResponseHandler,
|
|
1781
1963
|
successfulResponseHandler: createEventSourceResponseHandler2(
|
|
@@ -1806,6 +1988,7 @@ var OpenAICompletionLanguageModel = class _OpenAICompletionLanguageModel {
|
|
|
1806
1988
|
controller.enqueue({ type: "stream-start", warnings });
|
|
1807
1989
|
},
|
|
1808
1990
|
transform(chunk, controller) {
|
|
1991
|
+
var _a3;
|
|
1809
1992
|
if (options.includeRawChunks) {
|
|
1810
1993
|
controller.enqueue({ type: "raw", rawValue: chunk.rawValue });
|
|
1811
1994
|
}
|
|
@@ -1817,7 +2000,10 @@ var OpenAICompletionLanguageModel = class _OpenAICompletionLanguageModel {
|
|
|
1817
2000
|
const value = chunk.value;
|
|
1818
2001
|
if ("error" in value) {
|
|
1819
2002
|
finishReason = { unified: "error", raw: void 0 };
|
|
1820
|
-
controller.enqueue({
|
|
2003
|
+
controller.enqueue({
|
|
2004
|
+
type: "error",
|
|
2005
|
+
error: (_a3 = createOpenAIProviderStreamError(value.error)) != null ? _a3 : value.error
|
|
2006
|
+
});
|
|
1821
2007
|
return;
|
|
1822
2008
|
}
|
|
1823
2009
|
if (isFirstChunk) {
|
|
@@ -1879,6 +2065,7 @@ import {
|
|
|
1879
2065
|
import {
|
|
1880
2066
|
combineHeaders as combineHeaders3,
|
|
1881
2067
|
createJsonResponseHandler as createJsonResponseHandler3,
|
|
2068
|
+
EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL,
|
|
1882
2069
|
parseProviderOptions as parseProviderOptions3,
|
|
1883
2070
|
postJsonToApi as postJsonToApi3,
|
|
1884
2071
|
serializeModelOptions as serializeModelOptions3,
|
|
@@ -1922,15 +2109,17 @@ var openaiTextEmbeddingResponseSchema = lazySchema6(
|
|
|
1922
2109
|
);
|
|
1923
2110
|
|
|
1924
2111
|
// src/embedding/openai-embedding-model.ts
|
|
2112
|
+
var _a;
|
|
1925
2113
|
var OpenAIEmbeddingModel = class _OpenAIEmbeddingModel {
|
|
1926
2114
|
constructor(modelId, config) {
|
|
1927
2115
|
this.specificationVersion = "v4";
|
|
1928
2116
|
this.maxEmbeddingsPerCall = 2048;
|
|
2117
|
+
this[_a] = 3e5;
|
|
1929
2118
|
this.supportsParallelCalls = true;
|
|
1930
2119
|
this.modelId = modelId;
|
|
1931
2120
|
this.config = config;
|
|
1932
2121
|
}
|
|
1933
|
-
static [WORKFLOW_SERIALIZE3](model) {
|
|
2122
|
+
static [(_a = EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL, WORKFLOW_SERIALIZE3)](model) {
|
|
1934
2123
|
return serializeModelOptions3({
|
|
1935
2124
|
modelId: model.modelId,
|
|
1936
2125
|
config: model.config
|
|
@@ -1948,7 +2137,7 @@ var OpenAIEmbeddingModel = class _OpenAIEmbeddingModel {
|
|
|
1948
2137
|
abortSignal,
|
|
1949
2138
|
providerOptions
|
|
1950
2139
|
}) {
|
|
1951
|
-
var
|
|
2140
|
+
var _a2, _b, _c;
|
|
1952
2141
|
if (values.length > this.maxEmbeddingsPerCall) {
|
|
1953
2142
|
throw new TooManyEmbeddingValuesForCallError({
|
|
1954
2143
|
provider: this.provider,
|
|
@@ -1957,11 +2146,11 @@ var OpenAIEmbeddingModel = class _OpenAIEmbeddingModel {
|
|
|
1957
2146
|
values
|
|
1958
2147
|
});
|
|
1959
2148
|
}
|
|
1960
|
-
const openaiOptions = (
|
|
2149
|
+
const openaiOptions = (_a2 = await parseProviderOptions3({
|
|
1961
2150
|
provider: "openai",
|
|
1962
2151
|
providerOptions,
|
|
1963
2152
|
schema: openaiEmbeddingModelOptions
|
|
1964
|
-
})) != null ?
|
|
2153
|
+
})) != null ? _a2 : {};
|
|
1965
2154
|
const {
|
|
1966
2155
|
responseHeaders,
|
|
1967
2156
|
value: response,
|
|
@@ -2053,6 +2242,10 @@ var modelMaxImagesPerCall = {
|
|
|
2053
2242
|
"gpt-image-1-mini": 10,
|
|
2054
2243
|
"gpt-image-1.5": 10,
|
|
2055
2244
|
"gpt-image-2": 10,
|
|
2245
|
+
"gpt-image-2.5-flare": 10,
|
|
2246
|
+
"gpt-image-2.5-flare-2026-09-08": 10,
|
|
2247
|
+
"gpt-image-2.5-sunburst": 10,
|
|
2248
|
+
"gpt-image-2.5-sunburst-2026-09-08": 10,
|
|
2056
2249
|
"chatgpt-image-latest": 10
|
|
2057
2250
|
};
|
|
2058
2251
|
var defaultResponseFormatPrefixes = ["chatgpt-image-", "gpt-image-"];
|
|
@@ -2062,16 +2255,17 @@ function hasDefaultResponseFormat(modelId) {
|
|
|
2062
2255
|
);
|
|
2063
2256
|
}
|
|
2064
2257
|
function getMaxImagesPerCall(modelId) {
|
|
2065
|
-
var
|
|
2066
|
-
return (
|
|
2258
|
+
var _a2;
|
|
2259
|
+
return (_a2 = modelMaxImagesPerCall[modelId]) != null ? _a2 : modelId.startsWith("gpt-image-") ? 10 : 1;
|
|
2067
2260
|
}
|
|
2068
2261
|
var baseImageModelOptionsObject = z9.object({
|
|
2069
2262
|
/**
|
|
2070
2263
|
* Quality of the generated image(s).
|
|
2071
2264
|
*
|
|
2072
|
-
* Valid values: `standard`, `hd`, `low`, `medium`, `high`, `auto`.
|
|
2265
|
+
* Valid values: `standard`, `hd`, `low`, `medium`, `high`, `xhigh`, `max`, `auto`.
|
|
2266
|
+
* `xhigh` and `max` are supported by GPT Image 2.5 models.
|
|
2073
2267
|
*/
|
|
2074
|
-
quality: z9.enum(["standard", "hd", "low", "medium", "high", "auto"]).optional(),
|
|
2268
|
+
quality: z9.enum(["standard", "hd", "low", "medium", "high", "xhigh", "max", "auto"]).optional(),
|
|
2075
2269
|
/**
|
|
2076
2270
|
* Background behavior for the generated image(s).
|
|
2077
2271
|
*
|
|
@@ -2159,7 +2353,7 @@ var OpenAIImageModel = class _OpenAIImageModel {
|
|
|
2159
2353
|
headers,
|
|
2160
2354
|
abortSignal
|
|
2161
2355
|
}) {
|
|
2162
|
-
var
|
|
2356
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
|
2163
2357
|
const warnings = [];
|
|
2164
2358
|
if (aspectRatio != null) {
|
|
2165
2359
|
warnings.push({
|
|
@@ -2171,7 +2365,7 @@ var OpenAIImageModel = class _OpenAIImageModel {
|
|
|
2171
2365
|
if (seed != null) {
|
|
2172
2366
|
warnings.push({ type: "unsupported", feature: "seed" });
|
|
2173
2367
|
}
|
|
2174
|
-
const currentDate = (_c = (_b = (
|
|
2368
|
+
const currentDate = (_c = (_b = (_a2 = this.config._internal) == null ? void 0 : _a2.currentDate) == null ? void 0 : _b.call(_a2)) != null ? _c : /* @__PURE__ */ new Date();
|
|
2175
2369
|
if (files != null) {
|
|
2176
2370
|
const openaiOptions2 = (_d = await parseProviderOptions4({
|
|
2177
2371
|
provider: "openai",
|
|
@@ -2234,10 +2428,10 @@ var OpenAIImageModel = class _OpenAIImageModel {
|
|
|
2234
2428
|
providerMetadata: {
|
|
2235
2429
|
openai: {
|
|
2236
2430
|
images: response2.data.map((item, index) => {
|
|
2237
|
-
var
|
|
2431
|
+
var _a3, _b2, _c2, _d2, _e2, _f2;
|
|
2238
2432
|
return {
|
|
2239
2433
|
...item.revised_prompt ? { revisedPrompt: item.revised_prompt } : {},
|
|
2240
|
-
created: (
|
|
2434
|
+
created: (_a3 = response2.created) != null ? _a3 : void 0,
|
|
2241
2435
|
size: (_b2 = response2.size) != null ? _b2 : void 0,
|
|
2242
2436
|
quality: (_c2 = response2.quality) != null ? _c2 : void 0,
|
|
2243
2437
|
background: (_d2 = response2.background) != null ? _d2 : void 0,
|
|
@@ -2301,10 +2495,10 @@ var OpenAIImageModel = class _OpenAIImageModel {
|
|
|
2301
2495
|
providerMetadata: {
|
|
2302
2496
|
openai: {
|
|
2303
2497
|
images: response.data.map((item, index) => {
|
|
2304
|
-
var
|
|
2498
|
+
var _a3, _b2, _c2, _d2, _e2, _f2;
|
|
2305
2499
|
return {
|
|
2306
2500
|
...item.revised_prompt ? { revisedPrompt: item.revised_prompt } : {},
|
|
2307
|
-
created: (
|
|
2501
|
+
created: (_a3 = response.created) != null ? _a3 : void 0,
|
|
2308
2502
|
size: (_b2 = response.size) != null ? _b2 : void 0,
|
|
2309
2503
|
quality: (_c2 = response.quality) != null ? _c2 : void 0,
|
|
2310
2504
|
background: (_d2 = response.background) != null ? _d2 : void 0,
|
|
@@ -2349,7 +2543,7 @@ async function fileToBlob(file) {
|
|
|
2349
2543
|
|
|
2350
2544
|
// src/transcription/openai-transcription-model.ts
|
|
2351
2545
|
import {
|
|
2352
|
-
UnsupportedFunctionalityError as
|
|
2546
|
+
UnsupportedFunctionalityError as UnsupportedFunctionalityError5
|
|
2353
2547
|
} from "@ai-sdk/provider";
|
|
2354
2548
|
import {
|
|
2355
2549
|
combineHeaders as combineHeaders5,
|
|
@@ -2385,18 +2579,28 @@ var openaiTranscriptionResponseSchema = lazySchema9(
|
|
|
2385
2579
|
})
|
|
2386
2580
|
).nullish(),
|
|
2387
2581
|
segments: z10.array(
|
|
2388
|
-
z10.
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2582
|
+
z10.union([
|
|
2583
|
+
z10.object({
|
|
2584
|
+
id: z10.number(),
|
|
2585
|
+
seek: z10.number(),
|
|
2586
|
+
start: z10.number(),
|
|
2587
|
+
end: z10.number(),
|
|
2588
|
+
text: z10.string(),
|
|
2589
|
+
tokens: z10.array(z10.number()),
|
|
2590
|
+
temperature: z10.number(),
|
|
2591
|
+
avg_logprob: z10.number(),
|
|
2592
|
+
compression_ratio: z10.number(),
|
|
2593
|
+
no_speech_prob: z10.number()
|
|
2594
|
+
}),
|
|
2595
|
+
z10.object({
|
|
2596
|
+
type: z10.literal("transcript.text.segment"),
|
|
2597
|
+
id: z10.string(),
|
|
2598
|
+
start: z10.number(),
|
|
2599
|
+
end: z10.number(),
|
|
2600
|
+
text: z10.string(),
|
|
2601
|
+
speaker: z10.string()
|
|
2602
|
+
})
|
|
2603
|
+
])
|
|
2400
2604
|
).nullish()
|
|
2401
2605
|
})
|
|
2402
2606
|
)
|
|
@@ -2433,6 +2637,22 @@ var openAITranscriptionModelOptions = lazySchema10(
|
|
|
2433
2637
|
* @default ['segment']
|
|
2434
2638
|
*/
|
|
2435
2639
|
timestampGranularities: z11.array(z11.enum(["word", "segment"])).default(["segment"]).optional(),
|
|
2640
|
+
/**
|
|
2641
|
+
* The format of the transcription response.
|
|
2642
|
+
*/
|
|
2643
|
+
responseFormat: z11.enum(["json", "verbose_json", "diarized_json"]).optional(),
|
|
2644
|
+
/**
|
|
2645
|
+
* Controls how the audio is split into chunks before transcription.
|
|
2646
|
+
*/
|
|
2647
|
+
chunkingStrategy: z11.union([
|
|
2648
|
+
z11.literal("auto"),
|
|
2649
|
+
z11.object({
|
|
2650
|
+
type: z11.literal("server_vad"),
|
|
2651
|
+
threshold: z11.number().min(0).max(1).optional(),
|
|
2652
|
+
prefixPaddingMs: z11.number().int().min(0).optional(),
|
|
2653
|
+
silenceDurationMs: z11.number().int().min(0).optional()
|
|
2654
|
+
})
|
|
2655
|
+
]).optional(),
|
|
2436
2656
|
/**
|
|
2437
2657
|
* Options for streaming transcription models such as `gpt-realtime-whisper`.
|
|
2438
2658
|
*/
|
|
@@ -2536,6 +2756,7 @@ var OpenAITranscriptionModel = class _OpenAITranscriptionModel {
|
|
|
2536
2756
|
mediaType,
|
|
2537
2757
|
providerOptions
|
|
2538
2758
|
}) {
|
|
2759
|
+
var _a2, _b;
|
|
2539
2760
|
const warnings = [];
|
|
2540
2761
|
const openAIOptions = await parseProviderOptions5({
|
|
2541
2762
|
provider: "openai",
|
|
@@ -2554,6 +2775,8 @@ var OpenAITranscriptionModel = class _OpenAITranscriptionModel {
|
|
|
2554
2775
|
if (this.modelId === "whisper-1") {
|
|
2555
2776
|
formData.append("response_format", "verbose_json");
|
|
2556
2777
|
}
|
|
2778
|
+
const isDiarizationModel = this.modelId === "gpt-4o-transcribe-diarize";
|
|
2779
|
+
const chunkingStrategy = (_a2 = openAIOptions == null ? void 0 : openAIOptions.chunkingStrategy) != null ? _a2 : isDiarizationModel ? "auto" : void 0;
|
|
2557
2780
|
if (openAIOptions) {
|
|
2558
2781
|
const isGpt4oTranscribeModel = [
|
|
2559
2782
|
"gpt-4o-transcribe",
|
|
@@ -2566,7 +2789,7 @@ var OpenAITranscriptionModel = class _OpenAITranscriptionModel {
|
|
|
2566
2789
|
// https://platform.openai.com/docs/api-reference/audio/createTranscription#audio_createtranscription-response_format
|
|
2567
2790
|
// prefer verbose_json to get segments for models that support it
|
|
2568
2791
|
...this.modelId !== "whisper-1" && {
|
|
2569
|
-
response_format: isGpt4oTranscribeModel ? "json" : "verbose_json"
|
|
2792
|
+
response_format: (_b = openAIOptions.responseFormat) != null ? _b : isDiarizationModel ? "diarized_json" : isGpt4oTranscribeModel ? "json" : "verbose_json"
|
|
2570
2793
|
},
|
|
2571
2794
|
temperature: openAIOptions.temperature,
|
|
2572
2795
|
timestamp_granularities: openAIOptions.timestampGranularities
|
|
@@ -2582,6 +2805,25 @@ var OpenAITranscriptionModel = class _OpenAITranscriptionModel {
|
|
|
2582
2805
|
}
|
|
2583
2806
|
}
|
|
2584
2807
|
}
|
|
2808
|
+
} else if (isDiarizationModel) {
|
|
2809
|
+
formData.append("response_format", "diarized_json");
|
|
2810
|
+
}
|
|
2811
|
+
if (chunkingStrategy != null) {
|
|
2812
|
+
formData.append(
|
|
2813
|
+
"chunking_strategy",
|
|
2814
|
+
typeof chunkingStrategy === "string" ? chunkingStrategy : JSON.stringify({
|
|
2815
|
+
type: chunkingStrategy.type,
|
|
2816
|
+
...chunkingStrategy.threshold != null && {
|
|
2817
|
+
threshold: chunkingStrategy.threshold
|
|
2818
|
+
},
|
|
2819
|
+
...chunkingStrategy.prefixPaddingMs != null && {
|
|
2820
|
+
prefix_padding_ms: chunkingStrategy.prefixPaddingMs
|
|
2821
|
+
},
|
|
2822
|
+
...chunkingStrategy.silenceDurationMs != null && {
|
|
2823
|
+
silence_duration_ms: chunkingStrategy.silenceDurationMs
|
|
2824
|
+
}
|
|
2825
|
+
})
|
|
2826
|
+
);
|
|
2585
2827
|
}
|
|
2586
2828
|
return {
|
|
2587
2829
|
formData,
|
|
@@ -2589,13 +2831,13 @@ var OpenAITranscriptionModel = class _OpenAITranscriptionModel {
|
|
|
2589
2831
|
};
|
|
2590
2832
|
}
|
|
2591
2833
|
async doGenerate(options) {
|
|
2592
|
-
var
|
|
2834
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
2593
2835
|
if (isRealtimeTranscriptionModelId(this.modelId)) {
|
|
2594
|
-
throw new
|
|
2836
|
+
throw new UnsupportedFunctionalityError5({
|
|
2595
2837
|
functionality: `non-streaming transcription with ${this.modelId}`
|
|
2596
2838
|
});
|
|
2597
2839
|
}
|
|
2598
|
-
const currentDate = (_c = (_b = (
|
|
2840
|
+
const currentDate = (_c = (_b = (_a2 = this.config._internal) == null ? void 0 : _a2.currentDate) == null ? void 0 : _b.call(_a2)) != null ? _c : /* @__PURE__ */ new Date();
|
|
2599
2841
|
const { formData, warnings } = await this.getArgs(options);
|
|
2600
2842
|
const {
|
|
2601
2843
|
value: response,
|
|
@@ -2616,36 +2858,53 @@ var OpenAITranscriptionModel = class _OpenAITranscriptionModel {
|
|
|
2616
2858
|
fetch: this.config.fetch
|
|
2617
2859
|
});
|
|
2618
2860
|
const language = response.language != null && response.language in languageMap ? languageMap[response.language] : void 0;
|
|
2861
|
+
const diarizedSegments = (_f = response.segments) == null ? void 0 : _f.flatMap(
|
|
2862
|
+
(segment) => "speaker" in segment ? [
|
|
2863
|
+
{
|
|
2864
|
+
text: segment.text,
|
|
2865
|
+
startSecond: segment.start,
|
|
2866
|
+
endSecond: segment.end,
|
|
2867
|
+
speaker: segment.speaker
|
|
2868
|
+
}
|
|
2869
|
+
] : []
|
|
2870
|
+
);
|
|
2619
2871
|
return {
|
|
2620
2872
|
text: response.text,
|
|
2621
|
-
segments: (
|
|
2873
|
+
segments: (_j = (_i = (_g = response.segments) == null ? void 0 : _g.map((segment) => ({
|
|
2622
2874
|
text: segment.text,
|
|
2623
2875
|
startSecond: segment.start,
|
|
2624
2876
|
endSecond: segment.end
|
|
2625
|
-
}))) != null ?
|
|
2877
|
+
}))) != null ? _i : (_h = response.words) == null ? void 0 : _h.map((word) => ({
|
|
2626
2878
|
text: word.word,
|
|
2627
2879
|
startSecond: word.start,
|
|
2628
2880
|
endSecond: word.end
|
|
2629
|
-
}))) != null ?
|
|
2881
|
+
}))) != null ? _j : [],
|
|
2630
2882
|
language,
|
|
2631
|
-
durationInSeconds: (
|
|
2883
|
+
durationInSeconds: (_k = response.duration) != null ? _k : void 0,
|
|
2632
2884
|
warnings,
|
|
2633
2885
|
response: {
|
|
2634
2886
|
timestamp: currentDate,
|
|
2635
2887
|
modelId: this.modelId,
|
|
2636
2888
|
headers: responseHeaders,
|
|
2637
2889
|
body: rawResponse
|
|
2890
|
+
},
|
|
2891
|
+
...diarizedSegments != null && diarizedSegments.length > 0 && {
|
|
2892
|
+
providerMetadata: {
|
|
2893
|
+
openai: {
|
|
2894
|
+
segments: diarizedSegments
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2638
2897
|
}
|
|
2639
2898
|
};
|
|
2640
2899
|
}
|
|
2641
2900
|
async doStream(options) {
|
|
2642
|
-
var
|
|
2901
|
+
var _a2, _b, _c, _d, _e, _f, _g;
|
|
2643
2902
|
if (!isRealtimeTranscriptionModelId(this.modelId)) {
|
|
2644
|
-
throw new
|
|
2903
|
+
throw new UnsupportedFunctionalityError5({
|
|
2645
2904
|
functionality: `streaming transcription with ${this.modelId}`
|
|
2646
2905
|
});
|
|
2647
2906
|
}
|
|
2648
|
-
const currentDate = (_c = (_b = (
|
|
2907
|
+
const currentDate = (_c = (_b = (_a2 = this.config._internal) == null ? void 0 : _a2.currentDate) == null ? void 0 : _b.call(_a2)) != null ? _c : /* @__PURE__ */ new Date();
|
|
2649
2908
|
const openAIOptions = await parseProviderOptions5({
|
|
2650
2909
|
provider: "openai",
|
|
2651
2910
|
providerOptions: options.providerOptions,
|
|
@@ -2784,7 +3043,7 @@ function createOpenAIRealtimeTranscriptionStream({
|
|
|
2784
3043
|
void sendAudio(socket).catch(finishWithError);
|
|
2785
3044
|
},
|
|
2786
3045
|
onMessageText: async (text) => {
|
|
2787
|
-
var
|
|
3046
|
+
var _a2, _b, _c, _d;
|
|
2788
3047
|
const parsed = await safeParseJSON({ text });
|
|
2789
3048
|
if (!parsed.success) return;
|
|
2790
3049
|
const raw = parsed.value;
|
|
@@ -2796,7 +3055,7 @@ function createOpenAIRealtimeTranscriptionStream({
|
|
|
2796
3055
|
controller.enqueue({
|
|
2797
3056
|
type: "transcript-delta",
|
|
2798
3057
|
id: raw.item_id,
|
|
2799
|
-
delta: (
|
|
3058
|
+
delta: (_a2 = raw.delta) != null ? _a2 : ""
|
|
2800
3059
|
});
|
|
2801
3060
|
break;
|
|
2802
3061
|
}
|
|
@@ -2835,7 +3094,7 @@ function buildOpenAIRealtimeTranscriptionSession({
|
|
|
2835
3094
|
inputAudioFormat,
|
|
2836
3095
|
providerOptions
|
|
2837
3096
|
}) {
|
|
2838
|
-
var
|
|
3097
|
+
var _a2, _b;
|
|
2839
3098
|
return {
|
|
2840
3099
|
type: "session.update",
|
|
2841
3100
|
session: {
|
|
@@ -2849,7 +3108,7 @@ function buildOpenAIRealtimeTranscriptionSession({
|
|
|
2849
3108
|
transcription: {
|
|
2850
3109
|
model: modelId,
|
|
2851
3110
|
...(providerOptions == null ? void 0 : providerOptions.language) != null ? { language: providerOptions.language } : {},
|
|
2852
|
-
...((
|
|
3111
|
+
...((_a2 = providerOptions == null ? void 0 : providerOptions.streaming) == null ? void 0 : _a2.delay) != null ? { delay: providerOptions.streaming.delay } : {}
|
|
2853
3112
|
},
|
|
2854
3113
|
turn_detection: null
|
|
2855
3114
|
}
|
|
@@ -2859,14 +3118,14 @@ function buildOpenAIRealtimeTranscriptionSession({
|
|
|
2859
3118
|
};
|
|
2860
3119
|
}
|
|
2861
3120
|
function getOpenAIRealtimeConnection(headers) {
|
|
2862
|
-
var
|
|
3121
|
+
var _a2;
|
|
2863
3122
|
let authorization;
|
|
2864
3123
|
for (const [key, value] of Object.entries(headers)) {
|
|
2865
3124
|
if (key.toLowerCase() === "authorization" && value != null) {
|
|
2866
3125
|
authorization = value;
|
|
2867
3126
|
}
|
|
2868
3127
|
}
|
|
2869
|
-
const token = (
|
|
3128
|
+
const token = (_a2 = authorization == null ? void 0 : authorization.match(/^bearer\s+(.+)$/i)) == null ? void 0 : _a2[1];
|
|
2870
3129
|
if (token == null) {
|
|
2871
3130
|
return { protocols: ["realtime"], headers };
|
|
2872
3131
|
}
|
|
@@ -2981,8 +3240,8 @@ var OpenAISpeechModel = class _OpenAISpeechModel {
|
|
|
2981
3240
|
};
|
|
2982
3241
|
}
|
|
2983
3242
|
async doGenerate(options) {
|
|
2984
|
-
var
|
|
2985
|
-
const currentDate = (_c = (_b = (
|
|
3243
|
+
var _a2, _b, _c, _d, _e;
|
|
3244
|
+
const currentDate = (_c = (_b = (_a2 = this.config._internal) == null ? void 0 : _a2.currentDate) == null ? void 0 : _b.call(_a2)) != null ? _c : /* @__PURE__ */ new Date();
|
|
2986
3245
|
const { requestBody, warnings } = await this.getArgs(options);
|
|
2987
3246
|
const {
|
|
2988
3247
|
value: audio,
|
|
@@ -3034,16 +3293,38 @@ import {
|
|
|
3034
3293
|
WORKFLOW_SERIALIZE as WORKFLOW_SERIALIZE7
|
|
3035
3294
|
} from "@ai-sdk/provider-utils";
|
|
3036
3295
|
|
|
3296
|
+
// src/openai-config.ts
|
|
3297
|
+
function prepareOpenAIConfigForWorkflowDeserialize(config) {
|
|
3298
|
+
if (config.provider == null) {
|
|
3299
|
+
throw new Error(
|
|
3300
|
+
"OpenAI model is missing provider after workflow deserialization."
|
|
3301
|
+
);
|
|
3302
|
+
}
|
|
3303
|
+
return {
|
|
3304
|
+
...config,
|
|
3305
|
+
provider: config.provider,
|
|
3306
|
+
url: typeof config.url === "function" ? config.url : ({ path }) => {
|
|
3307
|
+
if (config.baseURL == null) {
|
|
3308
|
+
throw new Error(
|
|
3309
|
+
"OpenAI model is missing baseURL after workflow deserialization."
|
|
3310
|
+
);
|
|
3311
|
+
}
|
|
3312
|
+
return `${config.baseURL}${path}`;
|
|
3313
|
+
},
|
|
3314
|
+
headers: typeof config.headers === "function" ? config.headers : config.headers == null ? void 0 : () => config.headers
|
|
3315
|
+
};
|
|
3316
|
+
}
|
|
3317
|
+
|
|
3037
3318
|
// src/responses/convert-openai-responses-usage.ts
|
|
3038
3319
|
import { createNullLanguageModelUsage as createNullLanguageModelUsage3 } from "@ai-sdk/provider-utils";
|
|
3039
3320
|
function convertOpenAIResponsesUsage(usage) {
|
|
3040
|
-
var
|
|
3321
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
3041
3322
|
if (usage == null) {
|
|
3042
3323
|
return createNullLanguageModelUsage3();
|
|
3043
3324
|
}
|
|
3044
3325
|
const inputTokens = usage.input_tokens;
|
|
3045
3326
|
const outputTokens = usage.output_tokens;
|
|
3046
|
-
const cachedTokens = (_b = (
|
|
3327
|
+
const cachedTokens = (_b = (_a2 = usage.input_tokens_details) == null ? void 0 : _a2.cached_tokens) != null ? _b : 0;
|
|
3047
3328
|
const cacheWriteTokens = (_d = (_c = usage.input_tokens_details) == null ? void 0 : _c.cache_write_tokens) != null ? _d : void 0;
|
|
3048
3329
|
const reasoningTokens = (_f = (_e = usage.output_tokens_details) == null ? void 0 : _e.reasoning_tokens) != null ? _f : 0;
|
|
3049
3330
|
return {
|
|
@@ -3064,7 +3345,7 @@ function convertOpenAIResponsesUsage(usage) {
|
|
|
3064
3345
|
|
|
3065
3346
|
// src/responses/convert-to-openai-responses-input.ts
|
|
3066
3347
|
import {
|
|
3067
|
-
UnsupportedFunctionalityError as
|
|
3348
|
+
UnsupportedFunctionalityError as UnsupportedFunctionalityError6
|
|
3068
3349
|
} from "@ai-sdk/provider";
|
|
3069
3350
|
import {
|
|
3070
3351
|
convertToBase64 as convertToBase643,
|
|
@@ -3421,7 +3702,7 @@ var programmaticToolCallingFactory = createProviderExecutedToolFactory({
|
|
|
3421
3702
|
var programmaticToolCalling = () => experimental_toolCaller(programmaticToolCallingFactory({}), {
|
|
3422
3703
|
type: "provider",
|
|
3423
3704
|
prepareProviderOptions: (providerOptions) => {
|
|
3424
|
-
var
|
|
3705
|
+
var _a2;
|
|
3425
3706
|
const openaiOptions = providerOptions == null ? void 0 : providerOptions.openai;
|
|
3426
3707
|
return {
|
|
3427
3708
|
...providerOptions,
|
|
@@ -3429,7 +3710,7 @@ var programmaticToolCalling = () => experimental_toolCaller(programmaticToolCall
|
|
|
3429
3710
|
...openaiOptions,
|
|
3430
3711
|
allowedCallers: [
|
|
3431
3712
|
.../* @__PURE__ */ new Set([
|
|
3432
|
-
...(
|
|
3713
|
+
...(_a2 = openaiOptions == null ? void 0 : openaiOptions.allowedCallers) != null ? _a2 : [],
|
|
3433
3714
|
"programmatic"
|
|
3434
3715
|
])
|
|
3435
3716
|
]
|
|
@@ -3438,6 +3719,84 @@ var programmaticToolCalling = () => experimental_toolCaller(programmaticToolCall
|
|
|
3438
3719
|
}
|
|
3439
3720
|
});
|
|
3440
3721
|
|
|
3722
|
+
// src/responses/expand-parallel-tool-call.ts
|
|
3723
|
+
import {
|
|
3724
|
+
isJSONObject
|
|
3725
|
+
} from "@ai-sdk/provider";
|
|
3726
|
+
import { safeParseJSON as safeParseJSON2 } from "@ai-sdk/provider-utils";
|
|
3727
|
+
var parallelToolName = "parallel";
|
|
3728
|
+
var recipientNamePrefix = "functions.";
|
|
3729
|
+
function getParallelToolCallMetadata({
|
|
3730
|
+
providerOptions,
|
|
3731
|
+
providerOptionsName
|
|
3732
|
+
}) {
|
|
3733
|
+
var _a2;
|
|
3734
|
+
const metadata = (_a2 = providerOptions == null ? void 0 : providerOptions[providerOptionsName]) == null ? void 0 : _a2.parallelToolCall;
|
|
3735
|
+
if (!isJSONObject(metadata) || typeof metadata.itemId !== "string" || typeof metadata.toolCallId !== "string" || typeof metadata.toolName !== "string" || typeof metadata.input !== "string" || typeof metadata.index !== "number" || !Number.isInteger(metadata.index) || typeof metadata.count !== "number" || !Number.isInteger(metadata.count) || metadata.index < 0 || metadata.count <= metadata.index) {
|
|
3736
|
+
return void 0;
|
|
3737
|
+
}
|
|
3738
|
+
return metadata;
|
|
3739
|
+
}
|
|
3740
|
+
function isUndeclaredParallelToolCall({
|
|
3741
|
+
toolName,
|
|
3742
|
+
tools
|
|
3743
|
+
}) {
|
|
3744
|
+
return toolName === parallelToolName && !tools.some((tool) => tool.name === parallelToolName);
|
|
3745
|
+
}
|
|
3746
|
+
async function expandParallelToolCall({
|
|
3747
|
+
toolCall,
|
|
3748
|
+
tools,
|
|
3749
|
+
providerOptionsName,
|
|
3750
|
+
itemId
|
|
3751
|
+
}) {
|
|
3752
|
+
if (!isUndeclaredParallelToolCall({ toolName: toolCall.toolName, tools })) {
|
|
3753
|
+
return void 0;
|
|
3754
|
+
}
|
|
3755
|
+
const parsedInput = await safeParseJSON2({ text: toolCall.input });
|
|
3756
|
+
if (!parsedInput.success || !isJSONObject(parsedInput.value)) {
|
|
3757
|
+
return void 0;
|
|
3758
|
+
}
|
|
3759
|
+
const toolUses = parsedInput.value.tool_uses;
|
|
3760
|
+
if (!Array.isArray(toolUses) || toolUses.length === 0) {
|
|
3761
|
+
return void 0;
|
|
3762
|
+
}
|
|
3763
|
+
const availableToolNames = new Set(tools.map((tool) => tool.name));
|
|
3764
|
+
const expandedToolCalls = [];
|
|
3765
|
+
for (const [index, toolUse] of toolUses.entries()) {
|
|
3766
|
+
if (!isJSONObject(toolUse)) {
|
|
3767
|
+
return void 0;
|
|
3768
|
+
}
|
|
3769
|
+
const recipientName = toolUse.recipient_name;
|
|
3770
|
+
const parameters = toolUse.parameters;
|
|
3771
|
+
if (typeof recipientName !== "string" || !recipientName.startsWith(recipientNamePrefix) || !isJSONObject(parameters)) {
|
|
3772
|
+
return void 0;
|
|
3773
|
+
}
|
|
3774
|
+
const toolName = recipientName.slice(recipientNamePrefix.length);
|
|
3775
|
+
if (toolName.length === 0 || !availableToolNames.has(toolName)) {
|
|
3776
|
+
return void 0;
|
|
3777
|
+
}
|
|
3778
|
+
expandedToolCalls.push({
|
|
3779
|
+
type: "tool-call",
|
|
3780
|
+
toolCallId: `${toolCall.toolCallId}_${index}`,
|
|
3781
|
+
toolName,
|
|
3782
|
+
input: JSON.stringify(parameters),
|
|
3783
|
+
providerMetadata: {
|
|
3784
|
+
[providerOptionsName]: {
|
|
3785
|
+
parallelToolCall: {
|
|
3786
|
+
itemId,
|
|
3787
|
+
toolCallId: toolCall.toolCallId,
|
|
3788
|
+
toolName: toolCall.toolName,
|
|
3789
|
+
input: toolCall.input,
|
|
3790
|
+
index,
|
|
3791
|
+
count: toolUses.length
|
|
3792
|
+
}
|
|
3793
|
+
}
|
|
3794
|
+
}
|
|
3795
|
+
});
|
|
3796
|
+
}
|
|
3797
|
+
return expandedToolCalls;
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3441
3800
|
// src/responses/convert-to-openai-responses-input.ts
|
|
3442
3801
|
function serializeToolCallArguments2(input) {
|
|
3443
3802
|
return JSON.stringify(input === void 0 ? {} : input);
|
|
@@ -3445,9 +3804,186 @@ function serializeToolCallArguments2(input) {
|
|
|
3445
3804
|
function mapToolCaller(caller) {
|
|
3446
3805
|
return caller == null ? void 0 : caller.type === "program" ? { type: "program", caller_id: caller.callerId } : caller;
|
|
3447
3806
|
}
|
|
3807
|
+
async function convertFunctionToolResultOutput({
|
|
3808
|
+
output,
|
|
3809
|
+
toolName,
|
|
3810
|
+
outputSchemaToolNames,
|
|
3811
|
+
promptCacheBreakpoint,
|
|
3812
|
+
providerOptionsName,
|
|
3813
|
+
warnings
|
|
3814
|
+
}) {
|
|
3815
|
+
var _a2;
|
|
3816
|
+
const hasOutputSchema = outputSchemaToolNames == null ? void 0 : outputSchemaToolNames.has(toolName);
|
|
3817
|
+
const convertScalarOutput = (value) => promptCacheBreakpoint == null ? value : [
|
|
3818
|
+
{
|
|
3819
|
+
type: "input_text",
|
|
3820
|
+
text: value,
|
|
3821
|
+
prompt_cache_breakpoint: promptCacheBreakpoint
|
|
3822
|
+
}
|
|
3823
|
+
];
|
|
3824
|
+
switch (output.type) {
|
|
3825
|
+
case "text":
|
|
3826
|
+
case "error-text":
|
|
3827
|
+
return convertScalarOutput(
|
|
3828
|
+
hasOutputSchema ? JSON.stringify(output.value) : output.value
|
|
3829
|
+
);
|
|
3830
|
+
case "execution-denied": {
|
|
3831
|
+
const reason = (_a2 = output.reason) != null ? _a2 : "Tool call execution denied.";
|
|
3832
|
+
return convertScalarOutput(
|
|
3833
|
+
hasOutputSchema ? JSON.stringify(reason) : reason
|
|
3834
|
+
);
|
|
3835
|
+
}
|
|
3836
|
+
case "json":
|
|
3837
|
+
case "error-json":
|
|
3838
|
+
return convertScalarOutput(JSON.stringify(output.value));
|
|
3839
|
+
case "content":
|
|
3840
|
+
return output.value.map((item) => {
|
|
3841
|
+
var _a3, _b, _c;
|
|
3842
|
+
const promptCacheBreakpoint2 = getPromptCacheBreakpoint2(
|
|
3843
|
+
item.providerOptions,
|
|
3844
|
+
providerOptionsName
|
|
3845
|
+
);
|
|
3846
|
+
switch (item.type) {
|
|
3847
|
+
case "text": {
|
|
3848
|
+
return {
|
|
3849
|
+
type: "input_text",
|
|
3850
|
+
text: item.text,
|
|
3851
|
+
...promptCacheBreakpoint2 != null && {
|
|
3852
|
+
prompt_cache_breakpoint: promptCacheBreakpoint2
|
|
3853
|
+
}
|
|
3854
|
+
};
|
|
3855
|
+
}
|
|
3856
|
+
case "file": {
|
|
3857
|
+
const topLevel = getTopLevelMediaType2(item.mediaType);
|
|
3858
|
+
const imageDetail = (_b = (_a3 = item.providerOptions) == null ? void 0 : _a3[providerOptionsName]) == null ? void 0 : _b.imageDetail;
|
|
3859
|
+
if (item.data.type === "data") {
|
|
3860
|
+
const fullMediaType = resolveFullMediaType2({ part: item });
|
|
3861
|
+
if (topLevel === "image") {
|
|
3862
|
+
return {
|
|
3863
|
+
type: "input_image",
|
|
3864
|
+
image_url: `data:${fullMediaType};base64,${convertToBase643(item.data.data)}`,
|
|
3865
|
+
detail: imageDetail,
|
|
3866
|
+
...promptCacheBreakpoint2 != null && {
|
|
3867
|
+
prompt_cache_breakpoint: promptCacheBreakpoint2
|
|
3868
|
+
}
|
|
3869
|
+
};
|
|
3870
|
+
}
|
|
3871
|
+
return {
|
|
3872
|
+
type: "input_file",
|
|
3873
|
+
filename: (_c = item.filename) != null ? _c : "data",
|
|
3874
|
+
file_data: `data:${fullMediaType};base64,${convertToBase643(item.data.data)}`,
|
|
3875
|
+
...promptCacheBreakpoint2 != null && {
|
|
3876
|
+
prompt_cache_breakpoint: promptCacheBreakpoint2
|
|
3877
|
+
}
|
|
3878
|
+
};
|
|
3879
|
+
}
|
|
3880
|
+
if (item.data.type === "url") {
|
|
3881
|
+
if (topLevel === "image") {
|
|
3882
|
+
return {
|
|
3883
|
+
type: "input_image",
|
|
3884
|
+
image_url: item.data.url.toString(),
|
|
3885
|
+
detail: imageDetail,
|
|
3886
|
+
...promptCacheBreakpoint2 != null && {
|
|
3887
|
+
prompt_cache_breakpoint: promptCacheBreakpoint2
|
|
3888
|
+
}
|
|
3889
|
+
};
|
|
3890
|
+
}
|
|
3891
|
+
return {
|
|
3892
|
+
type: "input_file",
|
|
3893
|
+
file_url: item.data.url.toString(),
|
|
3894
|
+
...promptCacheBreakpoint2 != null && {
|
|
3895
|
+
prompt_cache_breakpoint: promptCacheBreakpoint2
|
|
3896
|
+
}
|
|
3897
|
+
};
|
|
3898
|
+
}
|
|
3899
|
+
warnings.push({
|
|
3900
|
+
type: "other",
|
|
3901
|
+
message: `unsupported tool content part type: ${item.type} with data type: ${item.data.type}`
|
|
3902
|
+
});
|
|
3903
|
+
return void 0;
|
|
3904
|
+
}
|
|
3905
|
+
default: {
|
|
3906
|
+
warnings.push({
|
|
3907
|
+
type: "other",
|
|
3908
|
+
message: `unsupported tool content part type: ${item.type}`
|
|
3909
|
+
});
|
|
3910
|
+
return void 0;
|
|
3911
|
+
}
|
|
3912
|
+
}
|
|
3913
|
+
}).filter(isNonNullable);
|
|
3914
|
+
}
|
|
3915
|
+
}
|
|
3916
|
+
function hasSameParallelToolCall(first, second) {
|
|
3917
|
+
return first.itemId === second.itemId && first.toolCallId === second.toolCallId && first.toolName === second.toolName && first.input === second.input && first.count === second.count;
|
|
3918
|
+
}
|
|
3919
|
+
function collectCompleteParallelToolResultGroups({
|
|
3920
|
+
prompt,
|
|
3921
|
+
providerOptionsName
|
|
3922
|
+
}) {
|
|
3923
|
+
const pendingGroups = /* @__PURE__ */ new Map();
|
|
3924
|
+
for (const message of prompt) {
|
|
3925
|
+
if (message.role !== "tool") {
|
|
3926
|
+
continue;
|
|
3927
|
+
}
|
|
3928
|
+
for (const part of message.content) {
|
|
3929
|
+
if (part.type !== "tool-result") {
|
|
3930
|
+
continue;
|
|
3931
|
+
}
|
|
3932
|
+
const metadata = getParallelToolCallMetadata({
|
|
3933
|
+
providerOptions: part.providerOptions,
|
|
3934
|
+
providerOptionsName
|
|
3935
|
+
});
|
|
3936
|
+
if (metadata == null) {
|
|
3937
|
+
continue;
|
|
3938
|
+
}
|
|
3939
|
+
const existing = pendingGroups.get(metadata.toolCallId);
|
|
3940
|
+
if (existing == null) {
|
|
3941
|
+
pendingGroups.set(metadata.toolCallId, {
|
|
3942
|
+
metadata,
|
|
3943
|
+
results: /* @__PURE__ */ new Map([[metadata.index, part]]),
|
|
3944
|
+
invalid: false
|
|
3945
|
+
});
|
|
3946
|
+
continue;
|
|
3947
|
+
}
|
|
3948
|
+
if (!hasSameParallelToolCall(existing.metadata, metadata) || existing.results.has(metadata.index)) {
|
|
3949
|
+
existing.invalid = true;
|
|
3950
|
+
continue;
|
|
3951
|
+
}
|
|
3952
|
+
existing.results.set(metadata.index, part);
|
|
3953
|
+
}
|
|
3954
|
+
}
|
|
3955
|
+
const completeGroups = /* @__PURE__ */ new Map();
|
|
3956
|
+
for (const [toolCallId, group] of pendingGroups) {
|
|
3957
|
+
if (group.invalid || group.results.size !== group.metadata.count) {
|
|
3958
|
+
continue;
|
|
3959
|
+
}
|
|
3960
|
+
const results = Array.from(
|
|
3961
|
+
{ length: group.metadata.count },
|
|
3962
|
+
(_, index) => group.results.get(index)
|
|
3963
|
+
);
|
|
3964
|
+
if (results.every(isNonNullable)) {
|
|
3965
|
+
completeGroups.set(toolCallId, {
|
|
3966
|
+
metadata: group.metadata,
|
|
3967
|
+
results
|
|
3968
|
+
});
|
|
3969
|
+
}
|
|
3970
|
+
}
|
|
3971
|
+
return completeGroups;
|
|
3972
|
+
}
|
|
3448
3973
|
function getPromptCacheBreakpoint2(providerOptions, providerOptionsName) {
|
|
3449
|
-
var
|
|
3450
|
-
return (
|
|
3974
|
+
var _a2;
|
|
3975
|
+
return (_a2 = providerOptions == null ? void 0 : providerOptions[providerOptionsName]) == null ? void 0 : _a2.promptCacheBreakpoint;
|
|
3976
|
+
}
|
|
3977
|
+
function getScalarToolResultPromptCacheBreakpoint({
|
|
3978
|
+
output,
|
|
3979
|
+
toolResultProviderOptions,
|
|
3980
|
+
providerOptionsName
|
|
3981
|
+
}) {
|
|
3982
|
+
var _a2;
|
|
3983
|
+
return output.type === "content" ? void 0 : (_a2 = getPromptCacheBreakpoint2(output.providerOptions, providerOptionsName)) != null ? _a2 : getPromptCacheBreakpoint2(
|
|
3984
|
+
toolResultProviderOptions,
|
|
3985
|
+
providerOptionsName
|
|
3986
|
+
);
|
|
3451
3987
|
}
|
|
3452
3988
|
function isFileId(data, prefixes) {
|
|
3453
3989
|
if (!prefixes) return false;
|
|
@@ -3458,6 +3994,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3458
3994
|
toolNameMapping,
|
|
3459
3995
|
systemMessageMode,
|
|
3460
3996
|
providerOptionsName,
|
|
3997
|
+
explicitMessageItemType = false,
|
|
3461
3998
|
fileIdPrefixes,
|
|
3462
3999
|
passThroughUnsupportedFiles = false,
|
|
3463
4000
|
store,
|
|
@@ -3467,13 +4004,21 @@ async function convertToOpenAIResponsesInput({
|
|
|
3467
4004
|
hasShellTool = false,
|
|
3468
4005
|
hasApplyPatchTool = false,
|
|
3469
4006
|
hasComputerTool = false,
|
|
4007
|
+
toolSearchToolName,
|
|
3470
4008
|
customProviderToolNames,
|
|
3471
4009
|
outputSchemaToolNames
|
|
3472
4010
|
}) {
|
|
3473
|
-
var
|
|
4011
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P;
|
|
3474
4012
|
let input = [];
|
|
3475
4013
|
const warnings = [];
|
|
3476
4014
|
const processedApprovalIds = /* @__PURE__ */ new Set();
|
|
4015
|
+
const programmaticToolCallIds = /* @__PURE__ */ new Set();
|
|
4016
|
+
const parallelToolResultGroups = hasConversation || hasPreviousResponseId ? collectCompleteParallelToolResultGroups({
|
|
4017
|
+
prompt,
|
|
4018
|
+
providerOptionsName
|
|
4019
|
+
}) : /* @__PURE__ */ new Map();
|
|
4020
|
+
const emittedParallelToolCalls = /* @__PURE__ */ new Set();
|
|
4021
|
+
const emittedParallelToolResults = /* @__PURE__ */ new Set();
|
|
3477
4022
|
for (const { role, content, providerOptions } of prompt) {
|
|
3478
4023
|
switch (role) {
|
|
3479
4024
|
case "system": {
|
|
@@ -3484,6 +4029,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3484
4029
|
providerOptionsName
|
|
3485
4030
|
);
|
|
3486
4031
|
input.push({
|
|
4032
|
+
...explicitMessageItemType && { type: "message" },
|
|
3487
4033
|
role: "system",
|
|
3488
4034
|
content: promptCacheBreakpoint == null ? content : [
|
|
3489
4035
|
{
|
|
@@ -3501,6 +4047,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3501
4047
|
providerOptionsName
|
|
3502
4048
|
);
|
|
3503
4049
|
input.push({
|
|
4050
|
+
...explicitMessageItemType && { type: "message" },
|
|
3504
4051
|
role: "developer",
|
|
3505
4052
|
content: promptCacheBreakpoint == null ? content : [
|
|
3506
4053
|
{
|
|
@@ -3530,9 +4077,10 @@ async function convertToOpenAIResponsesInput({
|
|
|
3530
4077
|
}
|
|
3531
4078
|
case "user": {
|
|
3532
4079
|
input.push({
|
|
4080
|
+
...explicitMessageItemType && { type: "message" },
|
|
3533
4081
|
role: "user",
|
|
3534
4082
|
content: content.map((part, index) => {
|
|
3535
|
-
var
|
|
4083
|
+
var _a3, _b2, _c2, _d2, _e2;
|
|
3536
4084
|
switch (part.type) {
|
|
3537
4085
|
case "text": {
|
|
3538
4086
|
const promptCacheBreakpoint = getPromptCacheBreakpoint2(
|
|
@@ -3562,7 +4110,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3562
4110
|
return {
|
|
3563
4111
|
type: "input_image",
|
|
3564
4112
|
file_id: fileId,
|
|
3565
|
-
detail: (_b2 = (
|
|
4113
|
+
detail: (_b2 = (_a3 = part.providerOptions) == null ? void 0 : _a3[providerOptionsName]) == null ? void 0 : _b2.imageDetail,
|
|
3566
4114
|
...promptCacheBreakpoint != null && {
|
|
3567
4115
|
prompt_cache_breakpoint: promptCacheBreakpoint
|
|
3568
4116
|
}
|
|
@@ -3577,7 +4125,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3577
4125
|
};
|
|
3578
4126
|
}
|
|
3579
4127
|
case "text": {
|
|
3580
|
-
throw new
|
|
4128
|
+
throw new UnsupportedFunctionalityError6({
|
|
3581
4129
|
functionality: "text file parts"
|
|
3582
4130
|
});
|
|
3583
4131
|
}
|
|
@@ -3607,7 +4155,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3607
4155
|
}
|
|
3608
4156
|
const fullMediaType = resolveFullMediaType2({ part });
|
|
3609
4157
|
if (fullMediaType !== "application/pdf" && !passThroughUnsupportedFiles) {
|
|
3610
|
-
throw new
|
|
4158
|
+
throw new UnsupportedFunctionalityError6({
|
|
3611
4159
|
functionality: `file part media type ${fullMediaType}`
|
|
3612
4160
|
});
|
|
3613
4161
|
}
|
|
@@ -3635,7 +4183,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3635
4183
|
for (const part of content) {
|
|
3636
4184
|
switch (part.type) {
|
|
3637
4185
|
case "text": {
|
|
3638
|
-
const providerOptions2 = (
|
|
4186
|
+
const providerOptions2 = (_a2 = part.providerOptions) == null ? void 0 : _a2[providerOptionsName];
|
|
3639
4187
|
const id = providerOptions2 == null ? void 0 : providerOptions2.itemId;
|
|
3640
4188
|
const phase = providerOptions2 == null ? void 0 : providerOptions2.phase;
|
|
3641
4189
|
if (hasConversation && id != null) {
|
|
@@ -3646,6 +4194,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3646
4194
|
break;
|
|
3647
4195
|
}
|
|
3648
4196
|
input.push({
|
|
4197
|
+
...explicitMessageItemType && { type: "message" },
|
|
3649
4198
|
role: "assistant",
|
|
3650
4199
|
content: [{ type: "output_text", text: part.text }],
|
|
3651
4200
|
id,
|
|
@@ -3654,16 +4203,48 @@ async function convertToOpenAIResponsesInput({
|
|
|
3654
4203
|
break;
|
|
3655
4204
|
}
|
|
3656
4205
|
case "tool-call": {
|
|
4206
|
+
const parallelToolCallMetadata = getParallelToolCallMetadata({
|
|
4207
|
+
providerOptions: part.providerOptions,
|
|
4208
|
+
providerOptionsName
|
|
4209
|
+
});
|
|
4210
|
+
const parallelToolResultGroup = parallelToolCallMetadata == null ? void 0 : parallelToolResultGroups.get(
|
|
4211
|
+
parallelToolCallMetadata.toolCallId
|
|
4212
|
+
);
|
|
4213
|
+
if (parallelToolCallMetadata != null && parallelToolResultGroup != null && hasSameParallelToolCall(
|
|
4214
|
+
parallelToolResultGroup.metadata,
|
|
4215
|
+
parallelToolCallMetadata
|
|
4216
|
+
)) {
|
|
4217
|
+
if (!emittedParallelToolCalls.has(
|
|
4218
|
+
parallelToolResultGroup.metadata.toolCallId
|
|
4219
|
+
)) {
|
|
4220
|
+
emittedParallelToolCalls.add(
|
|
4221
|
+
parallelToolResultGroup.metadata.toolCallId
|
|
4222
|
+
);
|
|
4223
|
+
if (!hasConversation) {
|
|
4224
|
+
input.push({
|
|
4225
|
+
type: "function_call",
|
|
4226
|
+
call_id: parallelToolResultGroup.metadata.toolCallId,
|
|
4227
|
+
name: parallelToolResultGroup.metadata.toolName,
|
|
4228
|
+
arguments: parallelToolResultGroup.metadata.input
|
|
4229
|
+
});
|
|
4230
|
+
}
|
|
4231
|
+
}
|
|
4232
|
+
break;
|
|
4233
|
+
}
|
|
3657
4234
|
const id = (_f = (_c = (_b = part.providerOptions) == null ? void 0 : _b[providerOptionsName]) == null ? void 0 : _c.itemId) != null ? _f : (_e = (_d = part.providerMetadata) == null ? void 0 : _d[providerOptionsName]) == null ? void 0 : _e.itemId;
|
|
3658
4235
|
const namespace = (_k = (_h = (_g = part.providerOptions) == null ? void 0 : _g[providerOptionsName]) == null ? void 0 : _h.namespace) != null ? _k : (_j = (_i = part.providerMetadata) == null ? void 0 : _i[providerOptionsName]) == null ? void 0 : _j.namespace;
|
|
3659
|
-
const
|
|
4236
|
+
const isAsync = (_p = (_m = (_l = part.providerOptions) == null ? void 0 : _l[providerOptionsName]) == null ? void 0 : _m.async) != null ? _p : (_o = (_n = part.providerMetadata) == null ? void 0 : _n[providerOptionsName]) == null ? void 0 : _o.async;
|
|
4237
|
+
const caller = (_r = (_q = part.providerOptions) == null ? void 0 : _q[providerOptionsName]) == null ? void 0 : _r.caller;
|
|
4238
|
+
if ((caller == null ? void 0 : caller.type) === "program") {
|
|
4239
|
+
programmaticToolCallIds.add(part.toolCallId);
|
|
4240
|
+
}
|
|
3660
4241
|
if (hasConversation && id != null) {
|
|
3661
4242
|
break;
|
|
3662
4243
|
}
|
|
3663
4244
|
const resolvedToolName = toolNameMapping.toProviderToolName(
|
|
3664
4245
|
part.toolName
|
|
3665
4246
|
);
|
|
3666
|
-
if (
|
|
4247
|
+
if (part.toolName === toolSearchToolName) {
|
|
3667
4248
|
if (store && id != null) {
|
|
3668
4249
|
input.push({ type: "item_reference", id });
|
|
3669
4250
|
break;
|
|
@@ -3680,7 +4261,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3680
4261
|
type: "tool_search_call",
|
|
3681
4262
|
id: id != null ? id : part.toolCallId,
|
|
3682
4263
|
execution,
|
|
3683
|
-
call_id: (
|
|
4264
|
+
call_id: (_s = parsedInput.call_id) != null ? _s : null,
|
|
3684
4265
|
status: "completed",
|
|
3685
4266
|
arguments: parsedInput.arguments
|
|
3686
4267
|
});
|
|
@@ -3712,7 +4293,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3712
4293
|
break;
|
|
3713
4294
|
}
|
|
3714
4295
|
}
|
|
3715
|
-
const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || hasComputerTool && resolvedToolName === "computer" || ((
|
|
4296
|
+
const isProviderDefinedToolCall = hasLocalShellTool && resolvedToolName === "local_shell" || hasShellTool && resolvedToolName === "shell" || hasApplyPatchTool && resolvedToolName === "apply_patch" || hasComputerTool && resolvedToolName === "computer" || ((_t = customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) != null ? _t : false);
|
|
3716
4297
|
if (hasPreviousResponseId && store && id != null && isProviderDefinedToolCall) {
|
|
3717
4298
|
break;
|
|
3718
4299
|
}
|
|
@@ -3825,6 +4406,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3825
4406
|
call_id: part.toolCallId,
|
|
3826
4407
|
name: resolvedToolName,
|
|
3827
4408
|
input: typeof part.input === "string" ? part.input : JSON.stringify(part.input),
|
|
4409
|
+
...isAsync != null && { async: isAsync },
|
|
3828
4410
|
id
|
|
3829
4411
|
});
|
|
3830
4412
|
break;
|
|
@@ -3834,6 +4416,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3834
4416
|
call_id: part.toolCallId,
|
|
3835
4417
|
name: resolvedToolName,
|
|
3836
4418
|
arguments: serializeToolCallArguments2(part.input),
|
|
4419
|
+
...isAsync != null && { async: isAsync },
|
|
3837
4420
|
...namespace != null && { namespace },
|
|
3838
4421
|
...caller != null && {
|
|
3839
4422
|
caller: mapToolCaller(caller)
|
|
@@ -3852,8 +4435,8 @@ async function convertToOpenAIResponsesInput({
|
|
|
3852
4435
|
const resolvedResultToolName = toolNameMapping.toProviderToolName(
|
|
3853
4436
|
part.toolName
|
|
3854
4437
|
);
|
|
3855
|
-
if (
|
|
3856
|
-
const itemId = (
|
|
4438
|
+
if (part.toolName === toolSearchToolName) {
|
|
4439
|
+
const itemId = (_z = (_y = (_v = (_u = part.providerOptions) == null ? void 0 : _u[providerOptionsName]) == null ? void 0 : _v.itemId) != null ? _y : (_x = (_w = part.providerMetadata) == null ? void 0 : _w[providerOptionsName]) == null ? void 0 : _x.itemId) != null ? _z : part.toolCallId;
|
|
3857
4440
|
if (store) {
|
|
3858
4441
|
input.push({ type: "item_reference", id: itemId });
|
|
3859
4442
|
} else if (part.output.type === "json") {
|
|
@@ -3873,7 +4456,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3873
4456
|
break;
|
|
3874
4457
|
}
|
|
3875
4458
|
if (resolvedResultToolName === "programmatic_tool_calling") {
|
|
3876
|
-
const itemId = (
|
|
4459
|
+
const itemId = (_F = (_E = (_B = (_A = part.providerOptions) == null ? void 0 : _A[providerOptionsName]) == null ? void 0 : _B.itemId) != null ? _E : (_D = (_C = part.providerMetadata) == null ? void 0 : _C[providerOptionsName]) == null ? void 0 : _D.itemId) != null ? _F : part.toolCallId;
|
|
3877
4460
|
if (store) {
|
|
3878
4461
|
input.push({ type: "item_reference", id: itemId });
|
|
3879
4462
|
} else if (part.output.type === "json") {
|
|
@@ -3913,7 +4496,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3913
4496
|
break;
|
|
3914
4497
|
}
|
|
3915
4498
|
if (store) {
|
|
3916
|
-
const itemId = (
|
|
4499
|
+
const itemId = (_I = (_H = (_G = part.providerOptions) == null ? void 0 : _G[providerOptionsName]) == null ? void 0 : _H.itemId) != null ? _I : part.toolCallId;
|
|
3917
4500
|
input.push({ type: "item_reference", id: itemId });
|
|
3918
4501
|
} else {
|
|
3919
4502
|
warnings.push({
|
|
@@ -3998,7 +4581,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
3998
4581
|
}
|
|
3999
4582
|
case "custom": {
|
|
4000
4583
|
if (part.kind === "openai.compaction") {
|
|
4001
|
-
const providerOptions2 = (
|
|
4584
|
+
const providerOptions2 = (_J = part.providerOptions) == null ? void 0 : _J[providerOptionsName];
|
|
4002
4585
|
const id = providerOptions2 == null ? void 0 : providerOptions2.itemId;
|
|
4003
4586
|
if (hasConversation && id != null) {
|
|
4004
4587
|
break;
|
|
@@ -4043,9 +4626,68 @@ async function convertToOpenAIResponsesInput({
|
|
|
4043
4626
|
});
|
|
4044
4627
|
continue;
|
|
4045
4628
|
}
|
|
4629
|
+
const parallelToolCallMetadata = getParallelToolCallMetadata({
|
|
4630
|
+
providerOptions: part.providerOptions,
|
|
4631
|
+
providerOptionsName
|
|
4632
|
+
});
|
|
4633
|
+
const parallelToolResultGroup = parallelToolCallMetadata == null ? void 0 : parallelToolResultGroups.get(
|
|
4634
|
+
parallelToolCallMetadata.toolCallId
|
|
4635
|
+
);
|
|
4636
|
+
if (parallelToolCallMetadata != null && parallelToolResultGroup != null && hasSameParallelToolCall(
|
|
4637
|
+
parallelToolResultGroup.metadata,
|
|
4638
|
+
parallelToolCallMetadata
|
|
4639
|
+
)) {
|
|
4640
|
+
if (!emittedParallelToolResults.has(
|
|
4641
|
+
parallelToolResultGroup.metadata.toolCallId
|
|
4642
|
+
)) {
|
|
4643
|
+
emittedParallelToolResults.add(
|
|
4644
|
+
parallelToolResultGroup.metadata.toolCallId
|
|
4645
|
+
);
|
|
4646
|
+
const toolOutputs = await Promise.all(
|
|
4647
|
+
parallelToolResultGroup.results.map(async (result) => {
|
|
4648
|
+
const promptCacheBreakpoint = getScalarToolResultPromptCacheBreakpoint({
|
|
4649
|
+
output: result.output,
|
|
4650
|
+
toolResultProviderOptions: result.providerOptions,
|
|
4651
|
+
providerOptionsName
|
|
4652
|
+
});
|
|
4653
|
+
return {
|
|
4654
|
+
output: await convertFunctionToolResultOutput({
|
|
4655
|
+
output: result.output,
|
|
4656
|
+
toolName: result.toolName,
|
|
4657
|
+
outputSchemaToolNames,
|
|
4658
|
+
providerOptionsName,
|
|
4659
|
+
warnings
|
|
4660
|
+
}),
|
|
4661
|
+
promptCacheBreakpoint
|
|
4662
|
+
};
|
|
4663
|
+
})
|
|
4664
|
+
);
|
|
4665
|
+
const serializedToolOutputs = toolOutputs.map(
|
|
4666
|
+
({ output: output2 }) => typeof output2 === "string" ? output2 : JSON.stringify(output2)
|
|
4667
|
+
);
|
|
4668
|
+
const hasPromptCacheBreakpoint = toolOutputs.some(
|
|
4669
|
+
({ promptCacheBreakpoint }) => promptCacheBreakpoint != null
|
|
4670
|
+
);
|
|
4671
|
+
input.push({
|
|
4672
|
+
type: "function_call_output",
|
|
4673
|
+
call_id: parallelToolResultGroup.metadata.toolCallId,
|
|
4674
|
+
// The internal wrapper returns one output containing the child
|
|
4675
|
+
// results in the same order as the original tool_uses array.
|
|
4676
|
+
output: hasPromptCacheBreakpoint ? serializedToolOutputs.map((text, index) => ({
|
|
4677
|
+
type: "input_text",
|
|
4678
|
+
text: index === 0 ? text : `
|
|
4679
|
+
${text}`,
|
|
4680
|
+
...toolOutputs[index].promptCacheBreakpoint != null && {
|
|
4681
|
+
prompt_cache_breakpoint: toolOutputs[index].promptCacheBreakpoint
|
|
4682
|
+
}
|
|
4683
|
+
})) : serializedToolOutputs.join("\n")
|
|
4684
|
+
});
|
|
4685
|
+
}
|
|
4686
|
+
continue;
|
|
4687
|
+
}
|
|
4046
4688
|
const output = part.output;
|
|
4047
4689
|
if (output.type === "execution-denied") {
|
|
4048
|
-
const approvalId = (
|
|
4690
|
+
const approvalId = (_L = (_K = output.providerOptions) == null ? void 0 : _K.openai) == null ? void 0 : _L.approvalId;
|
|
4049
4691
|
if (approvalId) {
|
|
4050
4692
|
continue;
|
|
4051
4693
|
}
|
|
@@ -4053,7 +4695,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
4053
4695
|
const resolvedToolName = toolNameMapping.toProviderToolName(
|
|
4054
4696
|
part.toolName
|
|
4055
4697
|
);
|
|
4056
|
-
if (
|
|
4698
|
+
if (part.toolName === toolSearchToolName && output.type === "json") {
|
|
4057
4699
|
const parsedOutput = await validateTypes({
|
|
4058
4700
|
value: output.value,
|
|
4059
4701
|
schema: toolSearchOutputSchema
|
|
@@ -4125,7 +4767,7 @@ async function convertToOpenAIResponsesInput({
|
|
|
4125
4767
|
file_id: parsedOutput.output.fileId,
|
|
4126
4768
|
detail: parsedOutput.output.detail
|
|
4127
4769
|
},
|
|
4128
|
-
acknowledged_safety_checks: (
|
|
4770
|
+
acknowledged_safety_checks: (_M = parsedOutput.acknowledgedSafetyChecks) == null ? void 0 : _M.map((safetyCheck) => ({
|
|
4129
4771
|
id: safetyCheck.id,
|
|
4130
4772
|
code: safetyCheck.code,
|
|
4131
4773
|
message: safetyCheck.message
|
|
@@ -4134,23 +4776,37 @@ async function convertToOpenAIResponsesInput({
|
|
|
4134
4776
|
continue;
|
|
4135
4777
|
}
|
|
4136
4778
|
if (customProviderToolNames == null ? void 0 : customProviderToolNames.has(resolvedToolName)) {
|
|
4779
|
+
const promptCacheBreakpoint = getScalarToolResultPromptCacheBreakpoint({
|
|
4780
|
+
output,
|
|
4781
|
+
toolResultProviderOptions: part.providerOptions,
|
|
4782
|
+
providerOptionsName
|
|
4783
|
+
});
|
|
4784
|
+
const convertScalarOutput = (value) => promptCacheBreakpoint == null ? value : [
|
|
4785
|
+
{
|
|
4786
|
+
type: "input_text",
|
|
4787
|
+
text: value,
|
|
4788
|
+
prompt_cache_breakpoint: promptCacheBreakpoint
|
|
4789
|
+
}
|
|
4790
|
+
];
|
|
4137
4791
|
let outputValue;
|
|
4138
4792
|
switch (output.type) {
|
|
4139
4793
|
case "text":
|
|
4140
4794
|
case "error-text":
|
|
4141
|
-
outputValue = output.value;
|
|
4795
|
+
outputValue = convertScalarOutput(output.value);
|
|
4142
4796
|
break;
|
|
4143
4797
|
case "execution-denied":
|
|
4144
|
-
outputValue = (
|
|
4798
|
+
outputValue = convertScalarOutput(
|
|
4799
|
+
(_N = output.reason) != null ? _N : "Tool call execution denied."
|
|
4800
|
+
);
|
|
4145
4801
|
break;
|
|
4146
4802
|
case "json":
|
|
4147
4803
|
case "error-json":
|
|
4148
|
-
outputValue = JSON.stringify(output.value);
|
|
4804
|
+
outputValue = convertScalarOutput(JSON.stringify(output.value));
|
|
4149
4805
|
break;
|
|
4150
4806
|
case "content":
|
|
4151
4807
|
outputValue = output.value.map((item) => {
|
|
4152
|
-
var
|
|
4153
|
-
const
|
|
4808
|
+
var _a3, _b2, _c2;
|
|
4809
|
+
const promptCacheBreakpoint2 = getPromptCacheBreakpoint2(
|
|
4154
4810
|
item.providerOptions,
|
|
4155
4811
|
providerOptionsName
|
|
4156
4812
|
);
|
|
@@ -4159,13 +4815,13 @@ async function convertToOpenAIResponsesInput({
|
|
|
4159
4815
|
return {
|
|
4160
4816
|
type: "input_text",
|
|
4161
4817
|
text: item.text,
|
|
4162
|
-
...
|
|
4163
|
-
prompt_cache_breakpoint:
|
|
4818
|
+
...promptCacheBreakpoint2 != null && {
|
|
4819
|
+
prompt_cache_breakpoint: promptCacheBreakpoint2
|
|
4164
4820
|
}
|
|
4165
4821
|
};
|
|
4166
4822
|
case "file": {
|
|
4167
4823
|
const topLevel = getTopLevelMediaType2(item.mediaType);
|
|
4168
|
-
const imageDetail = (_b2 = (
|
|
4824
|
+
const imageDetail = (_b2 = (_a3 = item.providerOptions) == null ? void 0 : _a3[providerOptionsName]) == null ? void 0 : _b2.imageDetail;
|
|
4169
4825
|
if (item.data.type === "data") {
|
|
4170
4826
|
const fullMediaType = resolveFullMediaType2({
|
|
4171
4827
|
part: item
|
|
@@ -4175,8 +4831,8 @@ async function convertToOpenAIResponsesInput({
|
|
|
4175
4831
|
type: "input_image",
|
|
4176
4832
|
image_url: `data:${fullMediaType};base64,${convertToBase643(item.data.data)}`,
|
|
4177
4833
|
detail: imageDetail,
|
|
4178
|
-
...
|
|
4179
|
-
prompt_cache_breakpoint:
|
|
4834
|
+
...promptCacheBreakpoint2 != null && {
|
|
4835
|
+
prompt_cache_breakpoint: promptCacheBreakpoint2
|
|
4180
4836
|
}
|
|
4181
4837
|
};
|
|
4182
4838
|
}
|
|
@@ -4184,8 +4840,8 @@ async function convertToOpenAIResponsesInput({
|
|
|
4184
4840
|
type: "input_file",
|
|
4185
4841
|
filename: (_c2 = item.filename) != null ? _c2 : "data",
|
|
4186
4842
|
file_data: `data:${fullMediaType};base64,${convertToBase643(item.data.data)}`,
|
|
4187
|
-
...
|
|
4188
|
-
prompt_cache_breakpoint:
|
|
4843
|
+
...promptCacheBreakpoint2 != null && {
|
|
4844
|
+
prompt_cache_breakpoint: promptCacheBreakpoint2
|
|
4189
4845
|
}
|
|
4190
4846
|
};
|
|
4191
4847
|
}
|
|
@@ -4195,16 +4851,16 @@ async function convertToOpenAIResponsesInput({
|
|
|
4195
4851
|
type: "input_image",
|
|
4196
4852
|
image_url: item.data.url.toString(),
|
|
4197
4853
|
detail: imageDetail,
|
|
4198
|
-
...
|
|
4199
|
-
prompt_cache_breakpoint:
|
|
4854
|
+
...promptCacheBreakpoint2 != null && {
|
|
4855
|
+
prompt_cache_breakpoint: promptCacheBreakpoint2
|
|
4200
4856
|
}
|
|
4201
4857
|
};
|
|
4202
4858
|
}
|
|
4203
4859
|
return {
|
|
4204
4860
|
type: "input_file",
|
|
4205
4861
|
file_url: item.data.url.toString(),
|
|
4206
|
-
...
|
|
4207
|
-
prompt_cache_breakpoint:
|
|
4862
|
+
...promptCacheBreakpoint2 != null && {
|
|
4863
|
+
prompt_cache_breakpoint: promptCacheBreakpoint2
|
|
4208
4864
|
}
|
|
4209
4865
|
};
|
|
4210
4866
|
}
|
|
@@ -4233,104 +4889,25 @@ async function convertToOpenAIResponsesInput({
|
|
|
4233
4889
|
});
|
|
4234
4890
|
continue;
|
|
4235
4891
|
}
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
contentValue = hasOutputSchema ? JSON.stringify(output.value) : output.value;
|
|
4242
|
-
break;
|
|
4243
|
-
case "execution-denied": {
|
|
4244
|
-
const reason = (_J = output.reason) != null ? _J : "Tool call execution denied.";
|
|
4245
|
-
contentValue = hasOutputSchema ? JSON.stringify(reason) : reason;
|
|
4246
|
-
break;
|
|
4247
|
-
}
|
|
4248
|
-
case "json":
|
|
4249
|
-
case "error-json":
|
|
4250
|
-
contentValue = JSON.stringify(output.value);
|
|
4251
|
-
break;
|
|
4252
|
-
case "content":
|
|
4253
|
-
contentValue = output.value.map((item) => {
|
|
4254
|
-
var _a2, _b2, _c2;
|
|
4255
|
-
const promptCacheBreakpoint = getPromptCacheBreakpoint2(
|
|
4256
|
-
item.providerOptions,
|
|
4257
|
-
providerOptionsName
|
|
4258
|
-
);
|
|
4259
|
-
switch (item.type) {
|
|
4260
|
-
case "text": {
|
|
4261
|
-
return {
|
|
4262
|
-
type: "input_text",
|
|
4263
|
-
text: item.text,
|
|
4264
|
-
...promptCacheBreakpoint != null && {
|
|
4265
|
-
prompt_cache_breakpoint: promptCacheBreakpoint
|
|
4266
|
-
}
|
|
4267
|
-
};
|
|
4268
|
-
}
|
|
4269
|
-
case "file": {
|
|
4270
|
-
const topLevel = getTopLevelMediaType2(item.mediaType);
|
|
4271
|
-
const imageDetail = (_b2 = (_a2 = item.providerOptions) == null ? void 0 : _a2[providerOptionsName]) == null ? void 0 : _b2.imageDetail;
|
|
4272
|
-
if (item.data.type === "data") {
|
|
4273
|
-
const fullMediaType = resolveFullMediaType2({
|
|
4274
|
-
part: item
|
|
4275
|
-
});
|
|
4276
|
-
if (topLevel === "image") {
|
|
4277
|
-
return {
|
|
4278
|
-
type: "input_image",
|
|
4279
|
-
image_url: `data:${fullMediaType};base64,${convertToBase643(item.data.data)}`,
|
|
4280
|
-
detail: imageDetail,
|
|
4281
|
-
...promptCacheBreakpoint != null && {
|
|
4282
|
-
prompt_cache_breakpoint: promptCacheBreakpoint
|
|
4283
|
-
}
|
|
4284
|
-
};
|
|
4285
|
-
}
|
|
4286
|
-
return {
|
|
4287
|
-
type: "input_file",
|
|
4288
|
-
filename: (_c2 = item.filename) != null ? _c2 : "data",
|
|
4289
|
-
file_data: `data:${fullMediaType};base64,${convertToBase643(item.data.data)}`,
|
|
4290
|
-
...promptCacheBreakpoint != null && {
|
|
4291
|
-
prompt_cache_breakpoint: promptCacheBreakpoint
|
|
4292
|
-
}
|
|
4293
|
-
};
|
|
4294
|
-
}
|
|
4295
|
-
if (item.data.type === "url") {
|
|
4296
|
-
if (topLevel === "image") {
|
|
4297
|
-
return {
|
|
4298
|
-
type: "input_image",
|
|
4299
|
-
image_url: item.data.url.toString(),
|
|
4300
|
-
detail: imageDetail,
|
|
4301
|
-
...promptCacheBreakpoint != null && {
|
|
4302
|
-
prompt_cache_breakpoint: promptCacheBreakpoint
|
|
4303
|
-
}
|
|
4304
|
-
};
|
|
4305
|
-
}
|
|
4306
|
-
return {
|
|
4307
|
-
type: "input_file",
|
|
4308
|
-
file_url: item.data.url.toString(),
|
|
4309
|
-
...promptCacheBreakpoint != null && {
|
|
4310
|
-
prompt_cache_breakpoint: promptCacheBreakpoint
|
|
4311
|
-
}
|
|
4312
|
-
};
|
|
4313
|
-
}
|
|
4314
|
-
warnings.push({
|
|
4315
|
-
type: "other",
|
|
4316
|
-
message: `unsupported tool content part type: ${item.type} with data type: ${item.data.type}`
|
|
4317
|
-
});
|
|
4318
|
-
return void 0;
|
|
4319
|
-
}
|
|
4320
|
-
default: {
|
|
4321
|
-
warnings.push({
|
|
4322
|
-
type: "other",
|
|
4323
|
-
message: `unsupported tool content part type: ${item.type}`
|
|
4324
|
-
});
|
|
4325
|
-
return void 0;
|
|
4326
|
-
}
|
|
4327
|
-
}
|
|
4328
|
-
}).filter(isNonNullable);
|
|
4329
|
-
break;
|
|
4892
|
+
const resultCaller = (_P = (_O = part.providerOptions) == null ? void 0 : _O[providerOptionsName]) == null ? void 0 : _P.caller;
|
|
4893
|
+
if (output.type === "execution-denied" && ((resultCaller == null ? void 0 : resultCaller.type) === "program" || programmaticToolCallIds.has(part.toolCallId))) {
|
|
4894
|
+
throw new UnsupportedFunctionalityError6({
|
|
4895
|
+
functionality: "execution-denied results for programmatic tool calls"
|
|
4896
|
+
});
|
|
4330
4897
|
}
|
|
4331
|
-
const
|
|
4332
|
-
|
|
4333
|
-
|
|
4898
|
+
const contentValue = await convertFunctionToolResultOutput({
|
|
4899
|
+
output,
|
|
4900
|
+
toolName: part.toolName,
|
|
4901
|
+
outputSchemaToolNames,
|
|
4902
|
+
promptCacheBreakpoint: getScalarToolResultPromptCacheBreakpoint({
|
|
4903
|
+
output,
|
|
4904
|
+
toolResultProviderOptions: part.providerOptions,
|
|
4905
|
+
providerOptionsName
|
|
4906
|
+
}),
|
|
4907
|
+
providerOptionsName,
|
|
4908
|
+
warnings
|
|
4909
|
+
});
|
|
4910
|
+
const caller = mapToolCaller(resultCaller);
|
|
4334
4911
|
input.push({
|
|
4335
4912
|
type: "function_call_output",
|
|
4336
4913
|
call_id: part.toolCallId,
|
|
@@ -4384,6 +4961,7 @@ function mapOpenAIResponseFinishReason({
|
|
|
4384
4961
|
|
|
4385
4962
|
// src/responses/openai-responses-api.ts
|
|
4386
4963
|
import {
|
|
4964
|
+
isRecord,
|
|
4387
4965
|
lazySchema as lazySchema18,
|
|
4388
4966
|
zodSchema as zodSchema18
|
|
4389
4967
|
} from "@ai-sdk/provider-utils";
|
|
@@ -4398,6 +4976,31 @@ var jsonValueSchema = z20.lazy(
|
|
|
4398
4976
|
z20.record(z20.string(), jsonValueSchema.optional())
|
|
4399
4977
|
])
|
|
4400
4978
|
);
|
|
4979
|
+
var jsonObjectSchema = z20.record(z20.string(), jsonValueSchema.optional());
|
|
4980
|
+
var openaiResponsesUsageSchema = z20.intersection(
|
|
4981
|
+
jsonObjectSchema,
|
|
4982
|
+
z20.object({
|
|
4983
|
+
input_tokens: z20.number(),
|
|
4984
|
+
input_tokens_details: z20.intersection(
|
|
4985
|
+
jsonObjectSchema,
|
|
4986
|
+
z20.object({
|
|
4987
|
+
cached_tokens: z20.number().nullish(),
|
|
4988
|
+
cache_write_tokens: z20.number().nullish(),
|
|
4989
|
+
orchestration_input_tokens: z20.number().nullish(),
|
|
4990
|
+
orchestration_input_cached_tokens: z20.number().nullish()
|
|
4991
|
+
})
|
|
4992
|
+
).nullish(),
|
|
4993
|
+
output_tokens: z20.number(),
|
|
4994
|
+
output_tokens_details: z20.intersection(
|
|
4995
|
+
jsonObjectSchema,
|
|
4996
|
+
z20.object({
|
|
4997
|
+
reasoning_tokens: z20.number().nullish(),
|
|
4998
|
+
orchestration_output_tokens: z20.number().nullish()
|
|
4999
|
+
})
|
|
5000
|
+
).nullish(),
|
|
5001
|
+
total_tokens: z20.number().optional()
|
|
5002
|
+
})
|
|
5003
|
+
);
|
|
4401
5004
|
var openaiResponsesComputerSafetyCheckSchema = z20.object({
|
|
4402
5005
|
id: z20.string(),
|
|
4403
5006
|
code: z20.string().nullish(),
|
|
@@ -4481,6 +5084,19 @@ var openaiResponsesProgramOutputSchema = z20.object({
|
|
|
4481
5084
|
result: z20.string(),
|
|
4482
5085
|
status: z20.enum(["completed", "incomplete"])
|
|
4483
5086
|
});
|
|
5087
|
+
var openaiResponsesLocalShellCallSchema = z20.object({
|
|
5088
|
+
type: z20.literal("local_shell_call"),
|
|
5089
|
+
id: z20.string(),
|
|
5090
|
+
call_id: z20.string(),
|
|
5091
|
+
action: z20.object({
|
|
5092
|
+
type: z20.literal("exec"),
|
|
5093
|
+
command: z20.array(z20.string()),
|
|
5094
|
+
timeout_ms: z20.number().optional(),
|
|
5095
|
+
user: z20.string().optional(),
|
|
5096
|
+
working_directory: z20.string().optional(),
|
|
5097
|
+
env: z20.record(z20.string(), z20.string()).optional()
|
|
5098
|
+
})
|
|
5099
|
+
});
|
|
4484
5100
|
var openaiResponsesNestedErrorChunkSchema = z20.object({
|
|
4485
5101
|
type: z20.literal("error"),
|
|
4486
5102
|
sequence_number: z20.number(),
|
|
@@ -4498,6 +5114,64 @@ var openaiResponsesErrorChunkSchema = z20.object({
|
|
|
4498
5114
|
message: z20.string(),
|
|
4499
5115
|
param: z20.string().nullish()
|
|
4500
5116
|
});
|
|
5117
|
+
var openaiResponsesModeledChunkTypes = /* @__PURE__ */ new Set([
|
|
5118
|
+
"error",
|
|
5119
|
+
"response.apply_patch_call_operation_diff.delta",
|
|
5120
|
+
"response.apply_patch_call_operation_diff.done",
|
|
5121
|
+
"response.code_interpreter_call_code.delta",
|
|
5122
|
+
"response.code_interpreter_call_code.done",
|
|
5123
|
+
"response.completed",
|
|
5124
|
+
"response.created",
|
|
5125
|
+
"response.custom_tool_call_input.delta",
|
|
5126
|
+
"response.failed",
|
|
5127
|
+
"response.function_call_arguments.delta",
|
|
5128
|
+
"response.function_call_arguments.done",
|
|
5129
|
+
"response.image_generation_call.partial_image",
|
|
5130
|
+
"response.in_progress",
|
|
5131
|
+
"response.incomplete",
|
|
5132
|
+
"response.output_item.added",
|
|
5133
|
+
"response.output_item.done",
|
|
5134
|
+
"response.output_text.annotation.added",
|
|
5135
|
+
"response.output_text.delta",
|
|
5136
|
+
"response.reasoning_summary_part.added",
|
|
5137
|
+
"response.reasoning_summary_part.done",
|
|
5138
|
+
"response.reasoning_summary_text.delta"
|
|
5139
|
+
]);
|
|
5140
|
+
var openaiResponsesModeledOutputItemTypes = /* @__PURE__ */ new Set([
|
|
5141
|
+
"apply_patch_call",
|
|
5142
|
+
"code_interpreter_call",
|
|
5143
|
+
"compaction",
|
|
5144
|
+
"computer_call",
|
|
5145
|
+
"custom_tool_call",
|
|
5146
|
+
"file_search_call",
|
|
5147
|
+
"function_call",
|
|
5148
|
+
"image_generation_call",
|
|
5149
|
+
"local_shell_call",
|
|
5150
|
+
"mcp_approval_request",
|
|
5151
|
+
"mcp_call",
|
|
5152
|
+
"mcp_list_tools",
|
|
5153
|
+
"message",
|
|
5154
|
+
"program",
|
|
5155
|
+
"program_output",
|
|
5156
|
+
"reasoning",
|
|
5157
|
+
"shell_call",
|
|
5158
|
+
"shell_call_output",
|
|
5159
|
+
"tool_search_call",
|
|
5160
|
+
"tool_search_output",
|
|
5161
|
+
"web_search_call"
|
|
5162
|
+
]);
|
|
5163
|
+
function isModeledOpenAIResponsesChunk(value) {
|
|
5164
|
+
if (typeof value.type !== "string" || !openaiResponsesModeledChunkTypes.has(value.type)) {
|
|
5165
|
+
return false;
|
|
5166
|
+
}
|
|
5167
|
+
if (value.type !== "response.output_item.added" && value.type !== "response.output_item.done") {
|
|
5168
|
+
return true;
|
|
5169
|
+
}
|
|
5170
|
+
if (!isRecord(value.item) || typeof value.item.type !== "string") {
|
|
5171
|
+
return true;
|
|
5172
|
+
}
|
|
5173
|
+
return openaiResponsesModeledOutputItemTypes.has(value.item.type);
|
|
5174
|
+
}
|
|
4501
5175
|
var openaiResponsesChunkSchema = lazySchema18(
|
|
4502
5176
|
() => zodSchema18(
|
|
4503
5177
|
z20.union([
|
|
@@ -4523,20 +5197,7 @@ var openaiResponsesChunkSchema = lazySchema18(
|
|
|
4523
5197
|
type: z20.enum(["response.completed", "response.incomplete"]),
|
|
4524
5198
|
response: z20.object({
|
|
4525
5199
|
incomplete_details: z20.object({ reason: z20.string() }).nullish(),
|
|
4526
|
-
usage:
|
|
4527
|
-
input_tokens: z20.number(),
|
|
4528
|
-
input_tokens_details: z20.object({
|
|
4529
|
-
cached_tokens: z20.number().nullish(),
|
|
4530
|
-
cache_write_tokens: z20.number().nullish(),
|
|
4531
|
-
orchestration_input_tokens: z20.number().nullish(),
|
|
4532
|
-
orchestration_input_cached_tokens: z20.number().nullish()
|
|
4533
|
-
}).nullish(),
|
|
4534
|
-
output_tokens: z20.number(),
|
|
4535
|
-
output_tokens_details: z20.object({
|
|
4536
|
-
reasoning_tokens: z20.number().nullish(),
|
|
4537
|
-
orchestration_output_tokens: z20.number().nullish()
|
|
4538
|
-
}).nullish()
|
|
4539
|
-
}),
|
|
5200
|
+
usage: openaiResponsesUsageSchema.nullish(),
|
|
4540
5201
|
reasoning: z20.object({
|
|
4541
5202
|
context: z20.string().nullish()
|
|
4542
5203
|
}).nullish(),
|
|
@@ -4552,20 +5213,7 @@ var openaiResponsesChunkSchema = lazySchema18(
|
|
|
4552
5213
|
message: z20.string()
|
|
4553
5214
|
}).nullish(),
|
|
4554
5215
|
incomplete_details: z20.object({ reason: z20.string() }).nullish(),
|
|
4555
|
-
usage:
|
|
4556
|
-
input_tokens: z20.number(),
|
|
4557
|
-
input_tokens_details: z20.object({
|
|
4558
|
-
cached_tokens: z20.number().nullish(),
|
|
4559
|
-
cache_write_tokens: z20.number().nullish(),
|
|
4560
|
-
orchestration_input_tokens: z20.number().nullish(),
|
|
4561
|
-
orchestration_input_cached_tokens: z20.number().nullish()
|
|
4562
|
-
}).nullish(),
|
|
4563
|
-
output_tokens: z20.number(),
|
|
4564
|
-
output_tokens_details: z20.object({
|
|
4565
|
-
reasoning_tokens: z20.number().nullish(),
|
|
4566
|
-
orchestration_output_tokens: z20.number().nullish()
|
|
4567
|
-
}).nullish()
|
|
4568
|
-
}).nullish(),
|
|
5216
|
+
usage: openaiResponsesUsageSchema.nullish(),
|
|
4569
5217
|
reasoning: z20.object({
|
|
4570
5218
|
context: z20.string().nullish()
|
|
4571
5219
|
}).nullish(),
|
|
@@ -4610,6 +5258,7 @@ var openaiResponsesChunkSchema = lazySchema18(
|
|
|
4610
5258
|
call_id: z20.string(),
|
|
4611
5259
|
name: z20.string(),
|
|
4612
5260
|
arguments: z20.string(),
|
|
5261
|
+
async: z20.boolean().nullish(),
|
|
4613
5262
|
namespace: z20.string().nullish(),
|
|
4614
5263
|
caller: openaiResponsesToolCallerSchema.nullish()
|
|
4615
5264
|
}),
|
|
@@ -4625,6 +5274,7 @@ var openaiResponsesChunkSchema = lazySchema18(
|
|
|
4625
5274
|
type: z20.literal("file_search_call"),
|
|
4626
5275
|
id: z20.string()
|
|
4627
5276
|
}),
|
|
5277
|
+
openaiResponsesLocalShellCallSchema,
|
|
4628
5278
|
z20.object({
|
|
4629
5279
|
type: z20.literal("image_generation_call"),
|
|
4630
5280
|
id: z20.string()
|
|
@@ -4683,7 +5333,8 @@ var openaiResponsesChunkSchema = lazySchema18(
|
|
|
4683
5333
|
id: z20.string(),
|
|
4684
5334
|
call_id: z20.string(),
|
|
4685
5335
|
name: z20.string(),
|
|
4686
|
-
input: z20.string()
|
|
5336
|
+
input: z20.string(),
|
|
5337
|
+
async: z20.boolean().nullish()
|
|
4687
5338
|
}),
|
|
4688
5339
|
z20.object({
|
|
4689
5340
|
type: z20.literal("shell_call"),
|
|
@@ -4756,6 +5407,7 @@ var openaiResponsesChunkSchema = lazySchema18(
|
|
|
4756
5407
|
call_id: z20.string(),
|
|
4757
5408
|
name: z20.string(),
|
|
4758
5409
|
arguments: z20.string(),
|
|
5410
|
+
async: z20.boolean().nullish(),
|
|
4759
5411
|
status: z20.enum(["in_progress", "completed", "incomplete"]),
|
|
4760
5412
|
namespace: z20.string().nullish(),
|
|
4761
5413
|
caller: openaiResponsesToolCallerSchema.nullish()
|
|
@@ -4768,6 +5420,7 @@ var openaiResponsesChunkSchema = lazySchema18(
|
|
|
4768
5420
|
call_id: z20.string(),
|
|
4769
5421
|
name: z20.string(),
|
|
4770
5422
|
input: z20.string(),
|
|
5423
|
+
async: z20.boolean().nullish(),
|
|
4771
5424
|
status: z20.literal("completed")
|
|
4772
5425
|
}),
|
|
4773
5426
|
z20.object({
|
|
@@ -4831,19 +5484,7 @@ var openaiResponsesChunkSchema = lazySchema18(
|
|
|
4831
5484
|
})
|
|
4832
5485
|
).nullish()
|
|
4833
5486
|
}),
|
|
4834
|
-
|
|
4835
|
-
type: z20.literal("local_shell_call"),
|
|
4836
|
-
id: z20.string(),
|
|
4837
|
-
call_id: z20.string(),
|
|
4838
|
-
action: z20.object({
|
|
4839
|
-
type: z20.literal("exec"),
|
|
4840
|
-
command: z20.array(z20.string()),
|
|
4841
|
-
timeout_ms: z20.number().optional(),
|
|
4842
|
-
user: z20.string().optional(),
|
|
4843
|
-
working_directory: z20.string().optional(),
|
|
4844
|
-
env: z20.record(z20.string(), z20.string()).optional()
|
|
4845
|
-
})
|
|
4846
|
-
}),
|
|
5487
|
+
openaiResponsesLocalShellCallSchema,
|
|
4847
5488
|
openaiResponsesComputerCallSchema,
|
|
4848
5489
|
z20.object({
|
|
4849
5490
|
type: z20.literal("mcp_call"),
|
|
@@ -4971,6 +5612,14 @@ var openaiResponsesChunkSchema = lazySchema18(
|
|
|
4971
5612
|
output_index: z20.number(),
|
|
4972
5613
|
delta: z20.string()
|
|
4973
5614
|
}),
|
|
5615
|
+
z20.object({
|
|
5616
|
+
// `name` is documented as required but omitted from live API events:
|
|
5617
|
+
// https://github.com/openai/openai-openapi/issues/545
|
|
5618
|
+
type: z20.literal("response.function_call_arguments.done"),
|
|
5619
|
+
item_id: z20.string(),
|
|
5620
|
+
output_index: z20.number(),
|
|
5621
|
+
arguments: z20.string()
|
|
5622
|
+
}),
|
|
4974
5623
|
z20.object({
|
|
4975
5624
|
type: z20.literal("response.custom_tool_call_input.delta"),
|
|
4976
5625
|
item_id: z20.string(),
|
|
@@ -5060,7 +5709,9 @@ var openaiResponsesChunkSchema = lazySchema18(
|
|
|
5060
5709
|
}),
|
|
5061
5710
|
openaiResponsesNestedErrorChunkSchema,
|
|
5062
5711
|
openaiResponsesErrorChunkSchema,
|
|
5063
|
-
z20.object({ type: z20.string() }).loose().
|
|
5712
|
+
z20.object({ type: z20.string() }).loose().refine((value) => !isModeledOpenAIResponsesChunk(value), {
|
|
5713
|
+
message: "Known response chunk failed schema validation"
|
|
5714
|
+
}).transform((value) => ({
|
|
5064
5715
|
type: "unknown_chunk",
|
|
5065
5716
|
message: value.type
|
|
5066
5717
|
}))
|
|
@@ -5200,25 +5851,14 @@ var openaiResponsesResponseSchema = lazySchema18(
|
|
|
5200
5851
|
id: z20.string(),
|
|
5201
5852
|
result: z20.string()
|
|
5202
5853
|
}),
|
|
5203
|
-
|
|
5204
|
-
type: z20.literal("local_shell_call"),
|
|
5205
|
-
id: z20.string(),
|
|
5206
|
-
call_id: z20.string(),
|
|
5207
|
-
action: z20.object({
|
|
5208
|
-
type: z20.literal("exec"),
|
|
5209
|
-
command: z20.array(z20.string()),
|
|
5210
|
-
timeout_ms: z20.number().optional(),
|
|
5211
|
-
user: z20.string().optional(),
|
|
5212
|
-
working_directory: z20.string().optional(),
|
|
5213
|
-
env: z20.record(z20.string(), z20.string()).optional()
|
|
5214
|
-
})
|
|
5215
|
-
}),
|
|
5854
|
+
openaiResponsesLocalShellCallSchema,
|
|
5216
5855
|
z20.object({
|
|
5217
5856
|
type: z20.literal("function_call"),
|
|
5218
5857
|
call_id: z20.string(),
|
|
5219
5858
|
name: z20.string(),
|
|
5220
5859
|
arguments: z20.string(),
|
|
5221
5860
|
id: z20.string(),
|
|
5861
|
+
async: z20.boolean().nullish(),
|
|
5222
5862
|
namespace: z20.string().nullish(),
|
|
5223
5863
|
caller: openaiResponsesToolCallerSchema.nullish()
|
|
5224
5864
|
}),
|
|
@@ -5229,7 +5869,8 @@ var openaiResponsesResponseSchema = lazySchema18(
|
|
|
5229
5869
|
call_id: z20.string(),
|
|
5230
5870
|
name: z20.string(),
|
|
5231
5871
|
input: z20.string(),
|
|
5232
|
-
id: z20.string()
|
|
5872
|
+
id: z20.string(),
|
|
5873
|
+
async: z20.boolean().nullish()
|
|
5233
5874
|
}),
|
|
5234
5875
|
openaiResponsesComputerCallSchema,
|
|
5235
5876
|
z20.object({
|
|
@@ -5368,20 +6009,7 @@ var openaiResponsesResponseSchema = lazySchema18(
|
|
|
5368
6009
|
context: z20.string().nullish()
|
|
5369
6010
|
}).nullish(),
|
|
5370
6011
|
incomplete_details: z20.object({ reason: z20.string() }).nullish(),
|
|
5371
|
-
usage:
|
|
5372
|
-
input_tokens: z20.number(),
|
|
5373
|
-
input_tokens_details: z20.object({
|
|
5374
|
-
cached_tokens: z20.number().nullish(),
|
|
5375
|
-
cache_write_tokens: z20.number().nullish(),
|
|
5376
|
-
orchestration_input_tokens: z20.number().nullish(),
|
|
5377
|
-
orchestration_input_cached_tokens: z20.number().nullish()
|
|
5378
|
-
}).nullish(),
|
|
5379
|
-
output_tokens: z20.number(),
|
|
5380
|
-
output_tokens_details: z20.object({
|
|
5381
|
-
reasoning_tokens: z20.number().nullish(),
|
|
5382
|
-
orchestration_output_tokens: z20.number().nullish()
|
|
5383
|
-
}).nullish()
|
|
5384
|
-
}).optional()
|
|
6012
|
+
usage: openaiResponsesUsageSchema.nullish()
|
|
5385
6013
|
})
|
|
5386
6014
|
)
|
|
5387
6015
|
);
|
|
@@ -5435,7 +6063,8 @@ var openaiResponsesReasoningModelIds = [
|
|
|
5435
6063
|
"gpt-5.6",
|
|
5436
6064
|
"gpt-5.6-luna",
|
|
5437
6065
|
"gpt-5.6-sol",
|
|
5438
|
-
"gpt-5.6-terra"
|
|
6066
|
+
"gpt-5.6-terra",
|
|
6067
|
+
"gpt-6-astra"
|
|
5439
6068
|
];
|
|
5440
6069
|
var openaiResponsesModelIds = [
|
|
5441
6070
|
"gpt-4.1",
|
|
@@ -5486,6 +6115,14 @@ var openaiLanguageModelResponsesOptionsSchema = lazySchema19(
|
|
|
5486
6115
|
"message.output_text.logprobs"
|
|
5487
6116
|
])
|
|
5488
6117
|
).nullish(),
|
|
6118
|
+
/**
|
|
6119
|
+
* Whether to automatically include web search action sources in the
|
|
6120
|
+
* response. Disable this for OpenAI-compatible providers that do not
|
|
6121
|
+
* support the `web_search_call.action.sources` include value.
|
|
6122
|
+
*
|
|
6123
|
+
* Defaults to `true`.
|
|
6124
|
+
*/
|
|
6125
|
+
includeWebSearchSources: z21.boolean().optional(),
|
|
5489
6126
|
/**
|
|
5490
6127
|
* Instructions for the model.
|
|
5491
6128
|
* They can be used to change the system or developer message when continuing a conversation using the `previousResponseId` option.
|
|
@@ -5557,6 +6194,15 @@ var openaiLanguageModelResponsesOptionsSchema = lazySchema19(
|
|
|
5557
6194
|
* Supported values vary by model.
|
|
5558
6195
|
*/
|
|
5559
6196
|
reasoningEffort: z21.string().nullish(),
|
|
6197
|
+
/**
|
|
6198
|
+
* Updates the reasoning effort for GPT-6 and later models starting with this response
|
|
6199
|
+
* without changing the request-level reasoning effort. This preserves the
|
|
6200
|
+
* request prefix for prompt caching.
|
|
6201
|
+
*
|
|
6202
|
+
* Only supported by GPT-6 and later models in standard, single-agent mode. Cannot be
|
|
6203
|
+
* combined with automatic compaction or automatic truncation.
|
|
6204
|
+
*/
|
|
6205
|
+
reasoningEffortUpdate: z21.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
|
|
5560
6206
|
/**
|
|
5561
6207
|
* Controls how much model work GPT-5.6 performs before returning a final answer.
|
|
5562
6208
|
* `standard` is the default. `pro` increases quality, latency, and token usage.
|
|
@@ -5583,10 +6229,11 @@ var openaiLanguageModelResponsesOptionsSchema = lazySchema19(
|
|
|
5583
6229
|
* Set to 'flex' for 50% cheaper processing at the cost of increased latency (available for o3, o4-mini, and gpt-5 models).
|
|
5584
6230
|
* Set to 'priority' for faster processing with Enterprise access (available for gpt-4, gpt-5, gpt-5-mini, o3, o4-mini; gpt-5-nano is not supported).
|
|
5585
6231
|
* Set to 'fast' for the same tier as 'priority' (OpenAI's newer name for it).
|
|
6232
|
+
* Set to 'ultrafast' for access-controlled Ultrafast processing (available only for gpt-5.6-sol).
|
|
5586
6233
|
*
|
|
5587
6234
|
* Defaults to 'auto'.
|
|
5588
6235
|
*/
|
|
5589
|
-
serviceTier: z21.enum(["auto", "flex", "priority", "fast", "default"]).nullish(),
|
|
6236
|
+
serviceTier: z21.enum(["auto", "flex", "priority", "fast", "ultrafast", "default"]).nullish(),
|
|
5590
6237
|
/**
|
|
5591
6238
|
* Whether to store the generation. Defaults to `true`.
|
|
5592
6239
|
*/
|
|
@@ -5675,7 +6322,7 @@ var openaiLanguageModelResponsesOptionsSchema = lazySchema19(
|
|
|
5675
6322
|
|
|
5676
6323
|
// src/responses/openai-responses-prepare-tools.ts
|
|
5677
6324
|
import {
|
|
5678
|
-
UnsupportedFunctionalityError as
|
|
6325
|
+
UnsupportedFunctionalityError as UnsupportedFunctionalityError7
|
|
5679
6326
|
} from "@ai-sdk/provider";
|
|
5680
6327
|
import {
|
|
5681
6328
|
resolveProviderReference as resolveProviderReference3,
|
|
@@ -5793,6 +6440,7 @@ import { z as z24 } from "zod/v4";
|
|
|
5793
6440
|
var imageGenerationArgsSchema = lazySchema22(
|
|
5794
6441
|
() => zodSchema22(
|
|
5795
6442
|
z24.object({
|
|
6443
|
+
action: z24.enum(["generate", "edit", "auto"]).optional(),
|
|
5796
6444
|
background: z24.enum(["auto", "opaque", "transparent"]).optional(),
|
|
5797
6445
|
inputFidelity: z24.enum(["low", "high"]).optional(),
|
|
5798
6446
|
inputImageMask: z24.object({
|
|
@@ -5800,12 +6448,15 @@ var imageGenerationArgsSchema = lazySchema22(
|
|
|
5800
6448
|
imageUrl: z24.string().optional()
|
|
5801
6449
|
}).optional(),
|
|
5802
6450
|
model: z24.string().optional(),
|
|
5803
|
-
moderation: z24.enum(["auto"]).optional(),
|
|
6451
|
+
moderation: z24.enum(["auto", "low"]).optional(),
|
|
5804
6452
|
outputCompression: z24.number().int().min(0).max(100).optional(),
|
|
5805
6453
|
outputFormat: z24.enum(["png", "jpeg", "webp"]).optional(),
|
|
5806
6454
|
partialImages: z24.number().int().min(0).max(3).optional(),
|
|
5807
|
-
quality: z24.enum(["auto", "low", "medium", "high"]).optional(),
|
|
5808
|
-
size: z24.
|
|
6455
|
+
quality: z24.enum(["auto", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
6456
|
+
size: z24.union([
|
|
6457
|
+
z24.enum(["1024x1024", "1024x1536", "1536x1024", "auto"]),
|
|
6458
|
+
z24.string().regex(/^\d+x\d+$/)
|
|
6459
|
+
]).optional()
|
|
5809
6460
|
}).strict()
|
|
5810
6461
|
)
|
|
5811
6462
|
);
|
|
@@ -5833,6 +6484,7 @@ var customArgsSchema = lazySchema23(
|
|
|
5833
6484
|
() => zodSchema23(
|
|
5834
6485
|
z25.object({
|
|
5835
6486
|
description: z25.string().optional(),
|
|
6487
|
+
async: z25.boolean().optional(),
|
|
5836
6488
|
format: z25.union([
|
|
5837
6489
|
z25.object({
|
|
5838
6490
|
type: z25.literal("grammar"),
|
|
@@ -6038,9 +6690,10 @@ async function prepareResponsesTools({
|
|
|
6038
6690
|
allowedTools,
|
|
6039
6691
|
toolNameMapping,
|
|
6040
6692
|
customProviderToolNames,
|
|
6041
|
-
outputSchemaToolNames
|
|
6693
|
+
outputSchemaToolNames,
|
|
6694
|
+
supportsAsyncToolCalling = true
|
|
6042
6695
|
}) {
|
|
6043
|
-
var
|
|
6696
|
+
var _a2, _b, _c, _d;
|
|
6044
6697
|
tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
|
|
6045
6698
|
const toolWarnings = [];
|
|
6046
6699
|
if (tools == null) {
|
|
@@ -6066,13 +6719,20 @@ async function prepareResponsesTools({
|
|
|
6066
6719
|
for (const tool of tools) {
|
|
6067
6720
|
switch (tool.type) {
|
|
6068
6721
|
case "function": {
|
|
6069
|
-
const openaiOptions = (
|
|
6722
|
+
const openaiOptions = (_a2 = tool.providerOptions) == null ? void 0 : _a2.openai;
|
|
6070
6723
|
if ((openaiOptions == null ? void 0 : openaiOptions.outputSchema) != null) {
|
|
6071
6724
|
outputSchemaToolNames == null ? void 0 : outputSchemaToolNames.add(tool.name);
|
|
6072
6725
|
}
|
|
6073
6726
|
const openaiFunctionTool = prepareFunctionTool({
|
|
6074
6727
|
tool,
|
|
6075
|
-
options: openaiOptions
|
|
6728
|
+
options: openaiOptions,
|
|
6729
|
+
toolWarnings,
|
|
6730
|
+
async: resolveAsyncToolOption({
|
|
6731
|
+
value: openaiOptions == null ? void 0 : openaiOptions.async,
|
|
6732
|
+
supportsAsyncToolCalling,
|
|
6733
|
+
toolName: tool.name,
|
|
6734
|
+
toolWarnings
|
|
6735
|
+
})
|
|
6076
6736
|
});
|
|
6077
6737
|
const namespace = openaiOptions == null ? void 0 : openaiOptions.namespace;
|
|
6078
6738
|
if (namespace == null) {
|
|
@@ -6089,7 +6749,7 @@ async function prepareResponsesTools({
|
|
|
6089
6749
|
namespaceTools.set(namespace.name, namespaceTool);
|
|
6090
6750
|
openaiTools.push(namespaceTool);
|
|
6091
6751
|
} else if (namespaceTool.description !== namespace.description) {
|
|
6092
|
-
throw new
|
|
6752
|
+
throw new UnsupportedFunctionalityError7({
|
|
6093
6753
|
functionality: `conflicting descriptions for OpenAI tool namespace "${namespace.name}"`
|
|
6094
6754
|
});
|
|
6095
6755
|
}
|
|
@@ -6209,6 +6869,7 @@ async function prepareResponsesTools({
|
|
|
6209
6869
|
});
|
|
6210
6870
|
openaiTools.push({
|
|
6211
6871
|
type: "image_generation",
|
|
6872
|
+
action: args.action,
|
|
6212
6873
|
background: args.background,
|
|
6213
6874
|
input_fidelity: args.inputFidelity,
|
|
6214
6875
|
input_image_mask: args.inputImageMask ? {
|
|
@@ -6260,6 +6921,12 @@ async function prepareResponsesTools({
|
|
|
6260
6921
|
type: "custom",
|
|
6261
6922
|
name: tool.name,
|
|
6262
6923
|
description: args.description,
|
|
6924
|
+
...resolveAsyncToolOption({
|
|
6925
|
+
value: args.async,
|
|
6926
|
+
supportsAsyncToolCalling,
|
|
6927
|
+
toolName: tool.name,
|
|
6928
|
+
toolWarnings
|
|
6929
|
+
}) != null ? { async: args.async } : {},
|
|
6263
6930
|
format: args.format
|
|
6264
6931
|
});
|
|
6265
6932
|
resolvedCustomProviderToolNames.add(tool.name);
|
|
@@ -6349,7 +7016,7 @@ async function prepareResponsesTools({
|
|
|
6349
7016
|
allowedToolEntries.push(resolution.entry);
|
|
6350
7017
|
}
|
|
6351
7018
|
if (allowedToolEntries.length === 0) {
|
|
6352
|
-
throw new
|
|
7019
|
+
throw new UnsupportedFunctionalityError7({
|
|
6353
7020
|
functionality: `allowedTools with only tools that cannot be allow-listed (${droppedToolNames.join(
|
|
6354
7021
|
", "
|
|
6355
7022
|
)})`
|
|
@@ -6384,7 +7051,7 @@ async function prepareResponsesTools({
|
|
|
6384
7051
|
}
|
|
6385
7052
|
default: {
|
|
6386
7053
|
const _exhaustiveCheck = type;
|
|
6387
|
-
throw new
|
|
7054
|
+
throw new UnsupportedFunctionalityError7({
|
|
6388
7055
|
functionality: `tool choice type: ${_exhaustiveCheck}`
|
|
6389
7056
|
});
|
|
6390
7057
|
}
|
|
@@ -6439,20 +7106,46 @@ function toAllowedToolResolution(tool) {
|
|
|
6439
7106
|
}
|
|
6440
7107
|
function prepareFunctionTool({
|
|
6441
7108
|
tool,
|
|
6442
|
-
options
|
|
7109
|
+
options,
|
|
7110
|
+
toolWarnings,
|
|
7111
|
+
async
|
|
6443
7112
|
}) {
|
|
7113
|
+
var _a2;
|
|
6444
7114
|
const deferLoading = options == null ? void 0 : options.deferLoading;
|
|
7115
|
+
const normalizedInputSchema = normalizeOpenAIJsonSchema(tool.inputSchema);
|
|
7116
|
+
const normalizedOutputSchema = (options == null ? void 0 : options.outputSchema) != null ? normalizeOpenAIJsonSchema(options.outputSchema) : void 0;
|
|
7117
|
+
toolWarnings.push(
|
|
7118
|
+
...normalizedInputSchema.warnings,
|
|
7119
|
+
...(_a2 = normalizedOutputSchema == null ? void 0 : normalizedOutputSchema.warnings) != null ? _a2 : []
|
|
7120
|
+
);
|
|
6445
7121
|
return {
|
|
6446
7122
|
type: "function",
|
|
6447
7123
|
name: tool.name,
|
|
6448
7124
|
description: tool.description,
|
|
6449
|
-
parameters:
|
|
7125
|
+
parameters: normalizedInputSchema.schema,
|
|
7126
|
+
...async != null ? { async } : {},
|
|
6450
7127
|
...tool.strict != null ? { strict: tool.strict } : {},
|
|
6451
7128
|
...deferLoading != null ? { defer_loading: deferLoading } : {},
|
|
6452
7129
|
...(options == null ? void 0 : options.allowedCallers) != null ? { allowed_callers: options.allowedCallers } : {},
|
|
6453
|
-
...(options == null ? void 0 : options.outputSchema) != null ? { output_schema:
|
|
7130
|
+
...(options == null ? void 0 : options.outputSchema) != null ? { output_schema: normalizedOutputSchema == null ? void 0 : normalizedOutputSchema.schema } : {}
|
|
6454
7131
|
};
|
|
6455
7132
|
}
|
|
7133
|
+
function resolveAsyncToolOption({
|
|
7134
|
+
value,
|
|
7135
|
+
supportsAsyncToolCalling,
|
|
7136
|
+
toolName,
|
|
7137
|
+
toolWarnings
|
|
7138
|
+
}) {
|
|
7139
|
+
if (value !== true || supportsAsyncToolCalling) {
|
|
7140
|
+
return value;
|
|
7141
|
+
}
|
|
7142
|
+
toolWarnings.push({
|
|
7143
|
+
type: "unsupported",
|
|
7144
|
+
feature: `async tool calling for "${toolName}"`,
|
|
7145
|
+
details: "Async tool calling is only supported by GPT-6 and later models."
|
|
7146
|
+
});
|
|
7147
|
+
return void 0;
|
|
7148
|
+
}
|
|
6456
7149
|
function mapShellEnvironment(environment) {
|
|
6457
7150
|
if (environment.type === "containerReference") {
|
|
6458
7151
|
const env2 = environment;
|
|
@@ -6484,11 +7177,11 @@ function mapShellEnvironment(environment) {
|
|
|
6484
7177
|
function mapShellSkills(skills) {
|
|
6485
7178
|
return skills == null ? void 0 : skills.map(
|
|
6486
7179
|
(skill) => {
|
|
6487
|
-
var
|
|
7180
|
+
var _a2, _b;
|
|
6488
7181
|
return skill.type === "skillReference" ? {
|
|
6489
7182
|
type: "skill_reference",
|
|
6490
7183
|
skill_id: resolveProviderReference3({
|
|
6491
|
-
reference: (
|
|
7184
|
+
reference: (_a2 = skill.providerReference) != null ? _a2 : {},
|
|
6492
7185
|
provider: "openai"
|
|
6493
7186
|
}),
|
|
6494
7187
|
version: (_b = skill.version) != null ? _b : "latest"
|
|
@@ -6508,13 +7201,13 @@ function mapShellSkills(skills) {
|
|
|
6508
7201
|
|
|
6509
7202
|
// src/responses/openai-responses-language-model.ts
|
|
6510
7203
|
function extractApprovalRequestIdToToolCallIdMapping(prompt) {
|
|
6511
|
-
var
|
|
7204
|
+
var _a2, _b;
|
|
6512
7205
|
const mapping = {};
|
|
6513
7206
|
for (const message of prompt) {
|
|
6514
7207
|
if (message.role !== "assistant") continue;
|
|
6515
7208
|
for (const part of message.content) {
|
|
6516
7209
|
if (part.type !== "tool-call") continue;
|
|
6517
|
-
const approvalRequestId = (_b = (
|
|
7210
|
+
const approvalRequestId = (_b = (_a2 = part.providerOptions) == null ? void 0 : _a2.openai) == null ? void 0 : _b.approvalRequestId;
|
|
6518
7211
|
if (approvalRequestId != null) {
|
|
6519
7212
|
mapping[approvalRequestId] = part.toolCallId;
|
|
6520
7213
|
}
|
|
@@ -6577,26 +7270,27 @@ function mapComputerCallInput({
|
|
|
6577
7270
|
pending_safety_checks,
|
|
6578
7271
|
status
|
|
6579
7272
|
}) {
|
|
6580
|
-
var
|
|
7273
|
+
var _a2;
|
|
6581
7274
|
return {
|
|
6582
7275
|
actions: (actions != null ? actions : action != null ? [action] : []).map(
|
|
6583
7276
|
mapComputerAction
|
|
6584
7277
|
),
|
|
6585
|
-
pendingSafetyChecks: (
|
|
7278
|
+
pendingSafetyChecks: (_a2 = pending_safety_checks == null ? void 0 : pending_safety_checks.map((safetyCheck) => ({
|
|
6586
7279
|
id: safetyCheck.id,
|
|
6587
7280
|
...safetyCheck.code != null && { code: safetyCheck.code },
|
|
6588
7281
|
...safetyCheck.message != null && { message: safetyCheck.message }
|
|
6589
|
-
}))) != null ?
|
|
7282
|
+
}))) != null ? _a2 : [],
|
|
6590
7283
|
status
|
|
6591
7284
|
};
|
|
6592
7285
|
}
|
|
7286
|
+
var openaiResponsesSupportedUrls = {
|
|
7287
|
+
"image/*": [/^https?:\/\/.*$/],
|
|
7288
|
+
"application/pdf": [/^https?:\/\/.*$/]
|
|
7289
|
+
};
|
|
6593
7290
|
var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
6594
7291
|
constructor(modelId, config) {
|
|
6595
7292
|
this.specificationVersion = "v4";
|
|
6596
|
-
this.supportedUrls =
|
|
6597
|
-
"image/*": [/^https?:\/\/.*$/],
|
|
6598
|
-
"application/pdf": [/^https?:\/\/.*$/]
|
|
6599
|
-
};
|
|
7293
|
+
this.supportedUrls = openaiResponsesSupportedUrls;
|
|
6600
7294
|
this.modelId = modelId;
|
|
6601
7295
|
this.config = config;
|
|
6602
7296
|
}
|
|
@@ -6607,30 +7301,37 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6607
7301
|
});
|
|
6608
7302
|
}
|
|
6609
7303
|
static [WORKFLOW_DESERIALIZE7](options) {
|
|
6610
|
-
return new _OpenAIResponsesLanguageModel(
|
|
7304
|
+
return new _OpenAIResponsesLanguageModel(
|
|
7305
|
+
options.modelId,
|
|
7306
|
+
prepareOpenAIConfigForWorkflowDeserialize(options.config)
|
|
7307
|
+
);
|
|
6611
7308
|
}
|
|
6612
7309
|
get provider() {
|
|
6613
7310
|
return this.config.provider;
|
|
6614
7311
|
}
|
|
6615
|
-
async
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
7312
|
+
static async prepareRequest({
|
|
7313
|
+
modelId,
|
|
7314
|
+
config,
|
|
7315
|
+
options: {
|
|
7316
|
+
maxOutputTokens,
|
|
7317
|
+
temperature,
|
|
7318
|
+
stopSequences,
|
|
7319
|
+
topP,
|
|
7320
|
+
topK,
|
|
7321
|
+
presencePenalty,
|
|
7322
|
+
frequencyPenalty,
|
|
7323
|
+
seed,
|
|
7324
|
+
prompt,
|
|
7325
|
+
reasoning,
|
|
7326
|
+
providerOptions,
|
|
7327
|
+
tools,
|
|
7328
|
+
toolChoice,
|
|
7329
|
+
responseFormat
|
|
7330
|
+
}
|
|
6630
7331
|
}) {
|
|
6631
|
-
var
|
|
7332
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
6632
7333
|
const warnings = [];
|
|
6633
|
-
const modelCapabilities = getOpenAILanguageModelCapabilities(
|
|
7334
|
+
const modelCapabilities = getOpenAILanguageModelCapabilities(modelId);
|
|
6634
7335
|
if (topK != null) {
|
|
6635
7336
|
warnings.push({ type: "unsupported", feature: "topK" });
|
|
6636
7337
|
}
|
|
@@ -6646,7 +7347,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6646
7347
|
if (stopSequences != null) {
|
|
6647
7348
|
warnings.push({ type: "unsupported", feature: "stopSequences" });
|
|
6648
7349
|
}
|
|
6649
|
-
const providerOptionsName =
|
|
7350
|
+
const providerOptionsName = config.provider.includes("azure") ? "azure" : "openai";
|
|
6650
7351
|
let openaiOptions = await parseProviderOptions8({
|
|
6651
7352
|
provider: providerOptionsName,
|
|
6652
7353
|
providerOptions,
|
|
@@ -6659,7 +7360,17 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6659
7360
|
schema: openaiLanguageModelResponsesOptionsSchema
|
|
6660
7361
|
});
|
|
6661
7362
|
}
|
|
6662
|
-
|
|
7363
|
+
let resolvedReasoningEffort = (_a2 = openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null ? _a2 : isCustomReasoning2(reasoning) ? reasoning : void 0;
|
|
7364
|
+
if (resolvedReasoningEffort != null && modelCapabilities.supportedReasoningEfforts != null && !modelCapabilities.supportedReasoningEfforts.includes(
|
|
7365
|
+
resolvedReasoningEffort
|
|
7366
|
+
)) {
|
|
7367
|
+
warnings.push({
|
|
7368
|
+
type: "unsupported",
|
|
7369
|
+
feature: "reasoningEffort",
|
|
7370
|
+
details: `${modelId} only supports the following reasoning efforts: ${modelCapabilities.supportedReasoningEfforts.join(", ")}`
|
|
7371
|
+
});
|
|
7372
|
+
resolvedReasoningEffort = void 0;
|
|
7373
|
+
}
|
|
6663
7374
|
const resolvedReasoningSummary = (openaiOptions == null ? void 0 : openaiOptions.reasoningSummary) !== void 0 ? openaiOptions.reasoningSummary : resolvedReasoningEffort != null && resolvedReasoningEffort !== "none" ? "detailed" : void 0;
|
|
6664
7375
|
const isReasoningModel = (_b = openaiOptions == null ? void 0 : openaiOptions.forceReasoning) != null ? _b : modelCapabilities.isReasoningModel;
|
|
6665
7376
|
if ((openaiOptions == null ? void 0 : openaiOptions.conversation) && (openaiOptions == null ? void 0 : openaiOptions.previousResponseId)) {
|
|
@@ -6698,14 +7409,16 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6698
7409
|
allowedTools: (_c = openaiOptions == null ? void 0 : openaiOptions.allowedTools) != null ? _c : void 0,
|
|
6699
7410
|
toolNameMapping,
|
|
6700
7411
|
customProviderToolNames,
|
|
6701
|
-
outputSchemaToolNames
|
|
7412
|
+
outputSchemaToolNames,
|
|
7413
|
+
supportsAsyncToolCalling: modelCapabilities.supportsAsyncToolCalling
|
|
6702
7414
|
});
|
|
6703
7415
|
const { input, warnings: inputWarnings } = await convertToOpenAIResponsesInput({
|
|
6704
7416
|
prompt,
|
|
6705
7417
|
toolNameMapping,
|
|
6706
7418
|
systemMessageMode: (_d = openaiOptions == null ? void 0 : openaiOptions.systemMessageMode) != null ? _d : isReasoningModel ? "developer" : modelCapabilities.systemMessageMode,
|
|
6707
7419
|
providerOptionsName,
|
|
6708
|
-
|
|
7420
|
+
explicitMessageItemType: config.explicitMessageItemType,
|
|
7421
|
+
fileIdPrefixes: config.fileIdPrefixes,
|
|
6709
7422
|
passThroughUnsupportedFiles: (_e = openaiOptions == null ? void 0 : openaiOptions.passThroughUnsupportedFiles) != null ? _e : false,
|
|
6710
7423
|
store: (_f = openaiOptions == null ? void 0 : openaiOptions.store) != null ? _f : true,
|
|
6711
7424
|
hasConversation: (openaiOptions == null ? void 0 : openaiOptions.conversation) != null,
|
|
@@ -6714,14 +7427,33 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6714
7427
|
hasShellTool: hasOpenAITool("openai.shell"),
|
|
6715
7428
|
hasApplyPatchTool: hasOpenAITool("openai.apply_patch"),
|
|
6716
7429
|
hasComputerTool: hasOpenAITool("openai.computer"),
|
|
7430
|
+
toolSearchToolName: getOpenAIToolName("openai.tool_search"),
|
|
6717
7431
|
customProviderToolNames: customProviderToolNames.size > 0 ? customProviderToolNames : void 0,
|
|
6718
7432
|
outputSchemaToolNames: outputSchemaToolNames.size > 0 ? outputSchemaToolNames : void 0
|
|
6719
7433
|
});
|
|
6720
7434
|
warnings.push(...inputWarnings);
|
|
7435
|
+
const reasoningEffortUpdate = openaiOptions == null ? void 0 : openaiOptions.reasoningEffortUpdate;
|
|
7436
|
+
const configurationUpdateIsSupported = reasoningEffortUpdate == null || modelCapabilities.supportsConfigurationUpdate && (openaiOptions == null ? void 0 : openaiOptions.reasoningMode) !== "pro" && (openaiOptions == null ? void 0 : openaiOptions.contextManagement) == null && (openaiOptions == null ? void 0 : openaiOptions.truncation) !== "auto";
|
|
7437
|
+
if (reasoningEffortUpdate != null && !configurationUpdateIsSupported) {
|
|
7438
|
+
warnings.push({
|
|
7439
|
+
type: "unsupported",
|
|
7440
|
+
feature: "reasoningEffortUpdate",
|
|
7441
|
+
details: !modelCapabilities.supportsConfigurationUpdate ? "reasoningEffortUpdate is only supported by GPT-6 and later models" : "reasoningEffortUpdate requires standard reasoning mode without automatic compaction or automatic truncation"
|
|
7442
|
+
});
|
|
7443
|
+
} else if (reasoningEffortUpdate != null) {
|
|
7444
|
+
input.unshift({
|
|
7445
|
+
type: "configuration_update",
|
|
7446
|
+
reasoning: { effort: reasoningEffortUpdate }
|
|
7447
|
+
});
|
|
7448
|
+
}
|
|
6721
7449
|
if (openaiOptions == null ? void 0 : openaiOptions.compactionTrigger) {
|
|
6722
7450
|
input.push({ type: "compaction_trigger" });
|
|
6723
7451
|
}
|
|
6724
7452
|
const strictJsonSchema = (_g = openaiOptions == null ? void 0 : openaiOptions.strictJsonSchema) != null ? _g : true;
|
|
7453
|
+
const normalizedResponseFormatSchema = (responseFormat == null ? void 0 : responseFormat.type) === "json" && responseFormat.schema != null ? normalizeOpenAIJsonSchema(responseFormat.schema) : void 0;
|
|
7454
|
+
if (normalizedResponseFormatSchema != null) {
|
|
7455
|
+
warnings.push(...normalizedResponseFormatSchema.warnings);
|
|
7456
|
+
}
|
|
6725
7457
|
let include = openaiOptions == null ? void 0 : openaiOptions.include;
|
|
6726
7458
|
function addInclude(key) {
|
|
6727
7459
|
if (include == null) {
|
|
@@ -6730,8 +7462,12 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6730
7462
|
include = [...include, key];
|
|
6731
7463
|
}
|
|
6732
7464
|
}
|
|
7465
|
+
function getOpenAIToolName(id) {
|
|
7466
|
+
var _a3;
|
|
7467
|
+
return (_a3 = tools == null ? void 0 : tools.find((tool) => tool.type === "provider" && tool.id === id)) == null ? void 0 : _a3.name;
|
|
7468
|
+
}
|
|
6733
7469
|
function hasOpenAITool(id) {
|
|
6734
|
-
return (
|
|
7470
|
+
return getOpenAIToolName(id) != null;
|
|
6735
7471
|
}
|
|
6736
7472
|
const topLogprobs = typeof (openaiOptions == null ? void 0 : openaiOptions.logprobs) === "number" ? openaiOptions == null ? void 0 : openaiOptions.logprobs : (openaiOptions == null ? void 0 : openaiOptions.logprobs) === true ? TOP_LOGPROBS_MAX : void 0;
|
|
6737
7473
|
if (topLogprobs) {
|
|
@@ -6740,7 +7476,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6740
7476
|
const webSearchToolName = (_h = tools == null ? void 0 : tools.find(
|
|
6741
7477
|
(tool) => tool.type === "provider" && (tool.id === "openai.web_search" || tool.id === "openai.web_search_preview")
|
|
6742
7478
|
)) == null ? void 0 : _h.name;
|
|
6743
|
-
if (webSearchToolName) {
|
|
7479
|
+
if (webSearchToolName && config.supportsWebSearchSourcesInclude !== false && (openaiOptions == null ? void 0 : openaiOptions.includeWebSearchSources) !== false) {
|
|
6744
7480
|
addInclude("web_search_call.action.sources");
|
|
6745
7481
|
}
|
|
6746
7482
|
if (hasOpenAITool("openai.code_interpreter")) {
|
|
@@ -6751,7 +7487,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6751
7487
|
addInclude("reasoning.encrypted_content");
|
|
6752
7488
|
}
|
|
6753
7489
|
const baseArgs = {
|
|
6754
|
-
model:
|
|
7490
|
+
model: modelId,
|
|
6755
7491
|
input,
|
|
6756
7492
|
temperature,
|
|
6757
7493
|
top_p: topP,
|
|
@@ -6759,12 +7495,12 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6759
7495
|
...((responseFormat == null ? void 0 : responseFormat.type) === "json" || (openaiOptions == null ? void 0 : openaiOptions.textVerbosity)) && {
|
|
6760
7496
|
text: {
|
|
6761
7497
|
...(responseFormat == null ? void 0 : responseFormat.type) === "json" && {
|
|
6762
|
-
format:
|
|
7498
|
+
format: normalizedResponseFormatSchema != null ? {
|
|
6763
7499
|
type: "json_schema",
|
|
6764
7500
|
strict: strictJsonSchema,
|
|
6765
7501
|
name: (_i = responseFormat.name) != null ? _i : "response",
|
|
6766
7502
|
description: responseFormat.description,
|
|
6767
|
-
schema:
|
|
7503
|
+
schema: normalizedResponseFormatSchema.schema
|
|
6768
7504
|
} : { type: "json_object" }
|
|
6769
7505
|
},
|
|
6770
7506
|
...(openaiOptions == null ? void 0 : openaiOptions.textVerbosity) && {
|
|
@@ -6814,6 +7550,14 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6814
7550
|
}
|
|
6815
7551
|
}
|
|
6816
7552
|
};
|
|
7553
|
+
if (modelCapabilities.supportsConfigurationUpdate && baseArgs.prompt_cache_retention != null) {
|
|
7554
|
+
baseArgs.prompt_cache_retention = void 0;
|
|
7555
|
+
warnings.push({
|
|
7556
|
+
type: "unsupported",
|
|
7557
|
+
feature: "promptCacheRetention",
|
|
7558
|
+
details: "promptCacheRetention is not supported by GPT-6 and later models; use promptCacheOptions instead"
|
|
7559
|
+
});
|
|
7560
|
+
}
|
|
6817
7561
|
if (isReasoningModel) {
|
|
6818
7562
|
if (!(resolvedReasoningEffort === "none" && modelCapabilities.supportsNonReasoningParameters)) {
|
|
6819
7563
|
if (baseArgs.temperature != null) {
|
|
@@ -6832,6 +7576,18 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6832
7576
|
details: "topP is not supported for reasoning models"
|
|
6833
7577
|
});
|
|
6834
7578
|
}
|
|
7579
|
+
if (modelCapabilities.supportedReasoningEfforts != null && (baseArgs.top_logprobs != null || ((_j = baseArgs.include) == null ? void 0 : _j.includes("message.output_text.logprobs")))) {
|
|
7580
|
+
baseArgs.top_logprobs = void 0;
|
|
7581
|
+
const filteredInclude = (_k = baseArgs.include) == null ? void 0 : _k.filter(
|
|
7582
|
+
(value) => value !== "message.output_text.logprobs"
|
|
7583
|
+
);
|
|
7584
|
+
baseArgs.include = filteredInclude != null && filteredInclude.length > 0 ? filteredInclude : void 0;
|
|
7585
|
+
warnings.push({
|
|
7586
|
+
type: "unsupported",
|
|
7587
|
+
feature: "logprobs",
|
|
7588
|
+
details: "logprobs is not supported for reasoning models"
|
|
7589
|
+
});
|
|
7590
|
+
}
|
|
6835
7591
|
}
|
|
6836
7592
|
} else {
|
|
6837
7593
|
if ((openaiOptions == null ? void 0 : openaiOptions.reasoningEffort) != null) {
|
|
@@ -6879,9 +7635,9 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6879
7635
|
});
|
|
6880
7636
|
delete baseArgs.service_tier;
|
|
6881
7637
|
}
|
|
6882
|
-
const shellToolEnvType = (
|
|
7638
|
+
const shellToolEnvType = (_n = (_m = (_l = tools == null ? void 0 : tools.find(
|
|
6883
7639
|
(tool) => tool.type === "provider" && tool.id === "openai.shell"
|
|
6884
|
-
)) == null ? void 0 :
|
|
7640
|
+
)) == null ? void 0 : _l.args) == null ? void 0 : _m.environment) == null ? void 0 : _n.type;
|
|
6885
7641
|
const isShellProviderExecuted = shellToolEnvType === "containerAuto" || shellToolEnvType === "containerReference";
|
|
6886
7642
|
return {
|
|
6887
7643
|
webSearchToolName,
|
|
@@ -6897,8 +7653,15 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6897
7653
|
isShellProviderExecuted
|
|
6898
7654
|
};
|
|
6899
7655
|
}
|
|
7656
|
+
getArgs(options) {
|
|
7657
|
+
return _OpenAIResponsesLanguageModel.prepareRequest({
|
|
7658
|
+
modelId: this.modelId,
|
|
7659
|
+
config: this.config,
|
|
7660
|
+
options
|
|
7661
|
+
});
|
|
7662
|
+
}
|
|
6900
7663
|
async doGenerate(options) {
|
|
6901
|
-
var
|
|
7664
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H;
|
|
6902
7665
|
const {
|
|
6903
7666
|
args: body,
|
|
6904
7667
|
warnings,
|
|
@@ -6918,7 +7681,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6918
7681
|
rawValue: rawResponse
|
|
6919
7682
|
} = await postJsonToApi6({
|
|
6920
7683
|
url,
|
|
6921
|
-
headers: combineHeaders7((_b = (
|
|
7684
|
+
headers: combineHeaders7((_b = (_a2 = this.config).headers) == null ? void 0 : _b.call(_a2), options.headers),
|
|
6922
7685
|
body,
|
|
6923
7686
|
failedResponseHandler: openaiFailedResponseHandler,
|
|
6924
7687
|
successfulResponseHandler: createJsonResponseHandler6(
|
|
@@ -6952,6 +7715,9 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6952
7715
|
}
|
|
6953
7716
|
const content = [];
|
|
6954
7717
|
const logprobs = [];
|
|
7718
|
+
const functionTools = (_e = (_d = options.tools) == null ? void 0 : _d.filter(
|
|
7719
|
+
(tool) => tool.type === "function"
|
|
7720
|
+
)) != null ? _e : [];
|
|
6955
7721
|
let hasFunctionCall = false;
|
|
6956
7722
|
const hostedToolSearchCallIds = [];
|
|
6957
7723
|
for (const part of response.output) {
|
|
@@ -6967,7 +7733,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6967
7733
|
providerMetadata: {
|
|
6968
7734
|
[providerOptionsName]: {
|
|
6969
7735
|
itemId: part.id,
|
|
6970
|
-
reasoningEncryptedContent: (
|
|
7736
|
+
reasoningEncryptedContent: (_f = part.encrypted_content) != null ? _f : null
|
|
6971
7737
|
}
|
|
6972
7738
|
}
|
|
6973
7739
|
});
|
|
@@ -6993,7 +7759,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
6993
7759
|
break;
|
|
6994
7760
|
}
|
|
6995
7761
|
case "tool_search_call": {
|
|
6996
|
-
const toolCallId = (
|
|
7762
|
+
const toolCallId = (_g = part.call_id) != null ? _g : part.id;
|
|
6997
7763
|
const isHosted = part.execution === "server";
|
|
6998
7764
|
if (isHosted) {
|
|
6999
7765
|
hostedToolSearchCallIds.push(toolCallId);
|
|
@@ -7016,7 +7782,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7016
7782
|
break;
|
|
7017
7783
|
}
|
|
7018
7784
|
case "tool_search_output": {
|
|
7019
|
-
const toolCallId = (
|
|
7785
|
+
const toolCallId = (_i = (_h = part.call_id) != null ? _h : hostedToolSearchCallIds.shift()) != null ? _i : part.id;
|
|
7020
7786
|
content.push({
|
|
7021
7787
|
type: "tool-result",
|
|
7022
7788
|
toolCallId,
|
|
@@ -7087,7 +7853,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7087
7853
|
}
|
|
7088
7854
|
case "message": {
|
|
7089
7855
|
for (const contentPart of part.content) {
|
|
7090
|
-
if (((
|
|
7856
|
+
if (((_k = (_j = options.providerOptions) == null ? void 0 : _j[providerOptionsName]) == null ? void 0 : _k.logprobs) && contentPart.logprobs) {
|
|
7091
7857
|
logprobs.push(contentPart.logprobs);
|
|
7092
7858
|
}
|
|
7093
7859
|
const providerMetadata2 = {
|
|
@@ -7109,7 +7875,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7109
7875
|
content.push({
|
|
7110
7876
|
type: "source",
|
|
7111
7877
|
sourceType: "url",
|
|
7112
|
-
id: (
|
|
7878
|
+
id: (_n = (_m = (_l = this.config).generateId) == null ? void 0 : _m.call(_l)) != null ? _n : generateId2(),
|
|
7113
7879
|
url: annotation.url,
|
|
7114
7880
|
title: annotation.title
|
|
7115
7881
|
});
|
|
@@ -7117,7 +7883,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7117
7883
|
content.push({
|
|
7118
7884
|
type: "source",
|
|
7119
7885
|
sourceType: "document",
|
|
7120
|
-
id: (
|
|
7886
|
+
id: (_q = (_p = (_o = this.config).generateId) == null ? void 0 : _p.call(_o)) != null ? _q : generateId2(),
|
|
7121
7887
|
mediaType: "text/plain",
|
|
7122
7888
|
title: annotation.filename,
|
|
7123
7889
|
filename: annotation.filename,
|
|
@@ -7133,7 +7899,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7133
7899
|
content.push({
|
|
7134
7900
|
type: "source",
|
|
7135
7901
|
sourceType: "document",
|
|
7136
|
-
id: (
|
|
7902
|
+
id: (_t = (_s = (_r = this.config).generateId) == null ? void 0 : _s.call(_r)) != null ? _t : generateId2(),
|
|
7137
7903
|
mediaType: "text/plain",
|
|
7138
7904
|
title: annotation.filename,
|
|
7139
7905
|
filename: annotation.filename,
|
|
@@ -7149,7 +7915,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7149
7915
|
content.push({
|
|
7150
7916
|
type: "source",
|
|
7151
7917
|
sourceType: "document",
|
|
7152
|
-
id: (
|
|
7918
|
+
id: (_w = (_v = (_u = this.config).generateId) == null ? void 0 : _v.call(_u)) != null ? _w : generateId2(),
|
|
7153
7919
|
mediaType: "application/octet-stream",
|
|
7154
7920
|
title: annotation.file_id,
|
|
7155
7921
|
filename: annotation.file_id,
|
|
@@ -7168,6 +7934,20 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7168
7934
|
}
|
|
7169
7935
|
case "function_call": {
|
|
7170
7936
|
hasFunctionCall = true;
|
|
7937
|
+
const expandedToolCalls = await expandParallelToolCall({
|
|
7938
|
+
toolCall: {
|
|
7939
|
+
toolCallId: part.call_id,
|
|
7940
|
+
toolName: part.name,
|
|
7941
|
+
input: part.arguments
|
|
7942
|
+
},
|
|
7943
|
+
tools: functionTools,
|
|
7944
|
+
providerOptionsName,
|
|
7945
|
+
itemId: part.id
|
|
7946
|
+
});
|
|
7947
|
+
if (expandedToolCalls != null) {
|
|
7948
|
+
content.push(...expandedToolCalls);
|
|
7949
|
+
break;
|
|
7950
|
+
}
|
|
7171
7951
|
content.push({
|
|
7172
7952
|
type: "tool-call",
|
|
7173
7953
|
toolCallId: part.call_id,
|
|
@@ -7176,6 +7956,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7176
7956
|
providerMetadata: {
|
|
7177
7957
|
[providerOptionsName]: {
|
|
7178
7958
|
itemId: part.id,
|
|
7959
|
+
...part.async != null && { async: part.async },
|
|
7179
7960
|
...part.namespace != null && { namespace: part.namespace },
|
|
7180
7961
|
...part.caller != null && {
|
|
7181
7962
|
caller: part.caller.type === "program" ? {
|
|
@@ -7237,7 +8018,8 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7237
8018
|
input: JSON.stringify(part.input),
|
|
7238
8019
|
providerMetadata: {
|
|
7239
8020
|
[providerOptionsName]: {
|
|
7240
|
-
itemId: part.id
|
|
8021
|
+
itemId: part.id,
|
|
8022
|
+
...part.async != null && { async: part.async }
|
|
7241
8023
|
}
|
|
7242
8024
|
}
|
|
7243
8025
|
});
|
|
@@ -7264,7 +8046,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7264
8046
|
break;
|
|
7265
8047
|
}
|
|
7266
8048
|
case "mcp_call": {
|
|
7267
|
-
const toolCallId = part.approval_request_id != null ? (
|
|
8049
|
+
const toolCallId = part.approval_request_id != null ? (_x = approvalRequestIdToDummyToolCallIdFromPrompt[part.approval_request_id]) != null ? _x : part.id : part.id;
|
|
7268
8050
|
const toolName = `mcp.${part.name}`;
|
|
7269
8051
|
content.push({
|
|
7270
8052
|
type: "tool-call",
|
|
@@ -7298,8 +8080,8 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7298
8080
|
break;
|
|
7299
8081
|
}
|
|
7300
8082
|
case "mcp_approval_request": {
|
|
7301
|
-
const approvalRequestId = (
|
|
7302
|
-
const dummyToolCallId = (
|
|
8083
|
+
const approvalRequestId = (_y = part.approval_request_id) != null ? _y : part.id;
|
|
8084
|
+
const dummyToolCallId = (_B = (_A = (_z = this.config).generateId) == null ? void 0 : _A.call(_z)) != null ? _B : generateId2();
|
|
7303
8085
|
const toolName = `mcp.${part.name}`;
|
|
7304
8086
|
content.push({
|
|
7305
8087
|
type: "tool-call",
|
|
@@ -7365,13 +8147,13 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7365
8147
|
toolName: toolNameMapping.toCustomToolName("file_search"),
|
|
7366
8148
|
result: {
|
|
7367
8149
|
queries: part.queries,
|
|
7368
|
-
results: (
|
|
8150
|
+
results: (_D = (_C = part.results) == null ? void 0 : _C.map((result) => ({
|
|
7369
8151
|
attributes: result.attributes,
|
|
7370
8152
|
fileId: result.file_id,
|
|
7371
8153
|
filename: result.filename,
|
|
7372
8154
|
score: result.score,
|
|
7373
8155
|
text: result.text
|
|
7374
|
-
}))) != null ?
|
|
8156
|
+
}))) != null ? _D : null
|
|
7375
8157
|
}
|
|
7376
8158
|
});
|
|
7377
8159
|
break;
|
|
@@ -7398,6 +8180,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7398
8180
|
break;
|
|
7399
8181
|
}
|
|
7400
8182
|
case "apply_patch_call": {
|
|
8183
|
+
hasFunctionCall = true;
|
|
7401
8184
|
content.push({
|
|
7402
8185
|
type: "tool-call",
|
|
7403
8186
|
toolCallId: part.call_id,
|
|
@@ -7435,7 +8218,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7435
8218
|
responseId: response.id,
|
|
7436
8219
|
...logprobs.length > 0 ? { logprobs } : {},
|
|
7437
8220
|
...typeof response.service_tier === "string" ? { serviceTier: response.service_tier } : {},
|
|
7438
|
-
...((
|
|
8221
|
+
...((_E = response.reasoning) == null ? void 0 : _E.context) != null ? { reasoningContext: response.reasoning.context } : {}
|
|
7439
8222
|
}
|
|
7440
8223
|
};
|
|
7441
8224
|
const usage = response.usage;
|
|
@@ -7443,10 +8226,10 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7443
8226
|
content,
|
|
7444
8227
|
finishReason: {
|
|
7445
8228
|
unified: mapOpenAIResponseFinishReason({
|
|
7446
|
-
finishReason: (
|
|
8229
|
+
finishReason: (_F = response.incomplete_details) == null ? void 0 : _F.reason,
|
|
7447
8230
|
hasFunctionCall
|
|
7448
8231
|
}),
|
|
7449
|
-
raw: (
|
|
8232
|
+
raw: (_H = (_G = response.incomplete_details) == null ? void 0 : _G.reason) != null ? _H : void 0
|
|
7450
8233
|
},
|
|
7451
8234
|
usage: convertOpenAIResponsesUsage(usage),
|
|
7452
8235
|
request: { body },
|
|
@@ -7462,7 +8245,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7462
8245
|
};
|
|
7463
8246
|
}
|
|
7464
8247
|
async doStream(options) {
|
|
7465
|
-
var
|
|
8248
|
+
var _a2, _b, _c, _d;
|
|
7466
8249
|
const {
|
|
7467
8250
|
args: body,
|
|
7468
8251
|
warnings,
|
|
@@ -7478,7 +8261,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7478
8261
|
});
|
|
7479
8262
|
const { responseHeaders, value: response } = await postJsonToApi6({
|
|
7480
8263
|
url,
|
|
7481
|
-
headers: combineHeaders7((_b = (
|
|
8264
|
+
headers: combineHeaders7((_b = (_a2 = this.config).headers) == null ? void 0 : _b.call(_a2), options.headers),
|
|
7482
8265
|
body: {
|
|
7483
8266
|
...body,
|
|
7484
8267
|
stream: true
|
|
@@ -7501,6 +8284,9 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7501
8284
|
});
|
|
7502
8285
|
const self = this;
|
|
7503
8286
|
const approvalRequestIdToDummyToolCallIdFromPrompt = extractApprovalRequestIdToToolCallIdMapping(options.prompt);
|
|
8287
|
+
const functionTools = (_d = (_c = options.tools) == null ? void 0 : _c.filter(
|
|
8288
|
+
(tool) => tool.type === "function"
|
|
8289
|
+
)) != null ? _d : [];
|
|
7504
8290
|
const approvalRequestIdToDummyToolCallIdFromStream = /* @__PURE__ */ new Map();
|
|
7505
8291
|
let finishReason = {
|
|
7506
8292
|
unified: "other",
|
|
@@ -7519,8 +8305,8 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7519
8305
|
itemId,
|
|
7520
8306
|
outputIndex
|
|
7521
8307
|
}) => {
|
|
7522
|
-
var
|
|
7523
|
-
return outputIndex == null ? itemId : (
|
|
8308
|
+
var _a3;
|
|
8309
|
+
return outputIndex == null ? itemId : (_a3 = activeOutputItemIds[outputIndex]) != null ? _a3 : itemId;
|
|
7524
8310
|
};
|
|
7525
8311
|
let serviceTier;
|
|
7526
8312
|
let reasoningContext;
|
|
@@ -7533,7 +8319,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7533
8319
|
controller.enqueue({ type: "stream-start", warnings });
|
|
7534
8320
|
},
|
|
7535
8321
|
transform(chunk, controller) {
|
|
7536
|
-
var
|
|
8322
|
+
var _a3, _b2, _c2, _d2, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S;
|
|
7537
8323
|
if (options.includeRawChunks) {
|
|
7538
8324
|
controller.enqueue({ type: "raw", rawValue: chunk.rawValue });
|
|
7539
8325
|
}
|
|
@@ -7545,6 +8331,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7545
8331
|
requestBodyValues: body,
|
|
7546
8332
|
responseHeaders
|
|
7547
8333
|
}) : chunk.error;
|
|
8334
|
+
encounteredStreamError = true;
|
|
7548
8335
|
finishReason = { unified: "error", raw: void 0 };
|
|
7549
8336
|
controller.enqueue({ type: "error", error });
|
|
7550
8337
|
return;
|
|
@@ -7552,22 +8339,32 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7552
8339
|
const value = chunk.value;
|
|
7553
8340
|
if (isResponseOutputItemAddedChunk(value)) {
|
|
7554
8341
|
if (value.item.type === "function_call") {
|
|
8342
|
+
const suppressInputStreaming = isUndeclaredParallelToolCall({
|
|
8343
|
+
toolName: value.item.name,
|
|
8344
|
+
tools: functionTools
|
|
8345
|
+
});
|
|
7555
8346
|
ongoingToolCalls[value.output_index] = {
|
|
7556
8347
|
toolName: value.item.name,
|
|
7557
|
-
toolCallId: value.item.call_id
|
|
8348
|
+
toolCallId: value.item.call_id,
|
|
8349
|
+
suppressInputStreaming,
|
|
8350
|
+
bufferedInputDeltas: suppressInputStreaming ? [] : void 0,
|
|
8351
|
+
async: value.item.async
|
|
7558
8352
|
};
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
8353
|
+
if (!suppressInputStreaming) {
|
|
8354
|
+
controller.enqueue({
|
|
8355
|
+
type: "tool-input-start",
|
|
8356
|
+
id: value.item.call_id,
|
|
8357
|
+
toolName: value.item.name
|
|
8358
|
+
});
|
|
8359
|
+
}
|
|
7564
8360
|
} else if (value.item.type === "custom_tool_call") {
|
|
7565
8361
|
const toolName = toolNameMapping.toCustomToolName(
|
|
7566
8362
|
value.item.name
|
|
7567
8363
|
);
|
|
7568
8364
|
ongoingToolCalls[value.output_index] = {
|
|
7569
8365
|
toolName,
|
|
7570
|
-
toolCallId: value.item.call_id
|
|
8366
|
+
toolCallId: value.item.call_id,
|
|
8367
|
+
async: value.item.async
|
|
7571
8368
|
};
|
|
7572
8369
|
controller.enqueue({
|
|
7573
8370
|
type: "tool-input-start",
|
|
@@ -7603,7 +8400,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7603
8400
|
providerExecuted: true
|
|
7604
8401
|
});
|
|
7605
8402
|
} else if (value.item.type === "computer_call") {
|
|
7606
|
-
const toolCallId = (
|
|
8403
|
+
const toolCallId = (_a3 = value.item.call_id) != null ? _a3 : value.item.id;
|
|
7607
8404
|
ongoingToolCalls[value.output_index] = {
|
|
7608
8405
|
toolName: toolNameMapping.toCustomToolName("computer"),
|
|
7609
8406
|
toolCallId
|
|
@@ -7713,7 +8510,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7713
8510
|
} else if (value.item.type === "message") {
|
|
7714
8511
|
activeOutputItemIds[value.output_index] = value.item.id;
|
|
7715
8512
|
ongoingAnnotations.splice(0, ongoingAnnotations.length);
|
|
7716
|
-
activeMessagePhase = (
|
|
8513
|
+
activeMessagePhase = (_c2 = value.item.phase) != null ? _c2 : void 0;
|
|
7717
8514
|
controller.enqueue({
|
|
7718
8515
|
type: "text-start",
|
|
7719
8516
|
id: value.item.id,
|
|
@@ -7738,7 +8535,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7738
8535
|
providerMetadata: {
|
|
7739
8536
|
[providerOptionsName]: {
|
|
7740
8537
|
itemId: value.item.id,
|
|
7741
|
-
reasoningEncryptedContent: (
|
|
8538
|
+
reasoningEncryptedContent: (_d2 = value.item.encrypted_content) != null ? _d2 : null
|
|
7742
8539
|
}
|
|
7743
8540
|
}
|
|
7744
8541
|
});
|
|
@@ -7766,37 +8563,106 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7766
8563
|
});
|
|
7767
8564
|
activeOutputItemIds[value.output_index] = void 0;
|
|
7768
8565
|
} else if (value.item.type === "function_call") {
|
|
8566
|
+
const item = value.item;
|
|
8567
|
+
const ongoingToolCall = ongoingToolCalls[value.output_index];
|
|
7769
8568
|
ongoingToolCalls[value.output_index] = void 0;
|
|
7770
8569
|
hasFunctionCall = true;
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
8570
|
+
const suppressInputStreaming = (_f = ongoingToolCall == null ? void 0 : ongoingToolCall.suppressInputStreaming) != null ? _f : isUndeclaredParallelToolCall({
|
|
8571
|
+
toolName: item.name,
|
|
8572
|
+
tools: functionTools
|
|
8573
|
+
});
|
|
8574
|
+
const enqueueUnexpandedToolCall = () => {
|
|
8575
|
+
var _a4;
|
|
8576
|
+
if (suppressInputStreaming) {
|
|
8577
|
+
controller.enqueue({
|
|
8578
|
+
type: "tool-input-start",
|
|
8579
|
+
id: item.call_id,
|
|
8580
|
+
toolName: item.name
|
|
8581
|
+
});
|
|
8582
|
+
const bufferedInputDeltas = (_a4 = ongoingToolCall == null ? void 0 : ongoingToolCall.bufferedInputDeltas) != null ? _a4 : [];
|
|
8583
|
+
if (bufferedInputDeltas.length > 0) {
|
|
8584
|
+
for (const delta of bufferedInputDeltas) {
|
|
8585
|
+
controller.enqueue({
|
|
8586
|
+
type: "tool-input-delta",
|
|
8587
|
+
id: item.call_id,
|
|
8588
|
+
delta
|
|
8589
|
+
});
|
|
7778
8590
|
}
|
|
8591
|
+
} else if (item.arguments.length > 0) {
|
|
8592
|
+
controller.enqueue({
|
|
8593
|
+
type: "tool-input-delta",
|
|
8594
|
+
id: item.call_id,
|
|
8595
|
+
delta: item.arguments
|
|
8596
|
+
});
|
|
7779
8597
|
}
|
|
7780
8598
|
}
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
7797
|
-
|
|
8599
|
+
controller.enqueue({
|
|
8600
|
+
type: "tool-input-end",
|
|
8601
|
+
id: item.call_id,
|
|
8602
|
+
...item.namespace != null && {
|
|
8603
|
+
providerMetadata: {
|
|
8604
|
+
[providerOptionsName]: {
|
|
8605
|
+
namespace: item.namespace
|
|
8606
|
+
}
|
|
8607
|
+
}
|
|
8608
|
+
}
|
|
8609
|
+
});
|
|
8610
|
+
controller.enqueue({
|
|
8611
|
+
type: "tool-call",
|
|
8612
|
+
toolCallId: item.call_id,
|
|
8613
|
+
toolName: item.name,
|
|
8614
|
+
input: item.arguments,
|
|
8615
|
+
providerMetadata: {
|
|
8616
|
+
[providerOptionsName]: {
|
|
8617
|
+
itemId: item.id,
|
|
8618
|
+
...item.async != null ? { async: item.async } : (ongoingToolCall == null ? void 0 : ongoingToolCall.async) != null ? { async: ongoingToolCall.async } : {},
|
|
8619
|
+
...item.namespace != null && {
|
|
8620
|
+
namespace: item.namespace
|
|
8621
|
+
},
|
|
8622
|
+
...item.caller != null && {
|
|
8623
|
+
caller: item.caller.type === "program" ? {
|
|
8624
|
+
type: "program",
|
|
8625
|
+
callerId: item.caller.caller_id
|
|
8626
|
+
} : item.caller
|
|
8627
|
+
}
|
|
7798
8628
|
}
|
|
7799
8629
|
}
|
|
8630
|
+
});
|
|
8631
|
+
};
|
|
8632
|
+
if (!suppressInputStreaming) {
|
|
8633
|
+
enqueueUnexpandedToolCall();
|
|
8634
|
+
return;
|
|
8635
|
+
}
|
|
8636
|
+
return expandParallelToolCall({
|
|
8637
|
+
toolCall: {
|
|
8638
|
+
toolCallId: item.call_id,
|
|
8639
|
+
toolName: item.name,
|
|
8640
|
+
input: item.arguments
|
|
8641
|
+
},
|
|
8642
|
+
tools: functionTools,
|
|
8643
|
+
providerOptionsName,
|
|
8644
|
+
itemId: item.id
|
|
8645
|
+
}).then((expandedToolCalls) => {
|
|
8646
|
+
if (expandedToolCalls == null) {
|
|
8647
|
+
enqueueUnexpandedToolCall();
|
|
8648
|
+
return;
|
|
8649
|
+
}
|
|
8650
|
+
for (const toolCall of expandedToolCalls) {
|
|
8651
|
+
controller.enqueue({
|
|
8652
|
+
type: "tool-input-start",
|
|
8653
|
+
id: toolCall.toolCallId,
|
|
8654
|
+
toolName: toolCall.toolName
|
|
8655
|
+
});
|
|
8656
|
+
controller.enqueue({
|
|
8657
|
+
type: "tool-input-delta",
|
|
8658
|
+
id: toolCall.toolCallId,
|
|
8659
|
+
delta: toolCall.input
|
|
8660
|
+
});
|
|
8661
|
+
controller.enqueue({
|
|
8662
|
+
type: "tool-input-end",
|
|
8663
|
+
id: toolCall.toolCallId
|
|
8664
|
+
});
|
|
8665
|
+
controller.enqueue(toolCall);
|
|
7800
8666
|
}
|
|
7801
8667
|
});
|
|
7802
8668
|
} else if (value.item.type === "program") {
|
|
@@ -7835,6 +8701,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7835
8701
|
}
|
|
7836
8702
|
});
|
|
7837
8703
|
} else if (value.item.type === "custom_tool_call") {
|
|
8704
|
+
const ongoingToolCall = ongoingToolCalls[value.output_index];
|
|
7838
8705
|
ongoingToolCalls[value.output_index] = void 0;
|
|
7839
8706
|
hasFunctionCall = true;
|
|
7840
8707
|
const toolName = toolNameMapping.toCustomToolName(
|
|
@@ -7851,7 +8718,8 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7851
8718
|
input: JSON.stringify(value.item.input),
|
|
7852
8719
|
providerMetadata: {
|
|
7853
8720
|
[providerOptionsName]: {
|
|
7854
|
-
itemId: value.item.id
|
|
8721
|
+
itemId: value.item.id,
|
|
8722
|
+
...value.item.async != null ? { async: value.item.async } : (ongoingToolCall == null ? void 0 : ongoingToolCall.async) != null ? { async: ongoingToolCall.async } : {}
|
|
7855
8723
|
}
|
|
7856
8724
|
}
|
|
7857
8725
|
});
|
|
@@ -7921,13 +8789,13 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7921
8789
|
toolName: toolNameMapping.toCustomToolName("file_search"),
|
|
7922
8790
|
result: {
|
|
7923
8791
|
queries: value.item.queries,
|
|
7924
|
-
results: (
|
|
8792
|
+
results: (_h = (_g = value.item.results) == null ? void 0 : _g.map((result2) => ({
|
|
7925
8793
|
attributes: result2.attributes,
|
|
7926
8794
|
fileId: result2.file_id,
|
|
7927
8795
|
filename: result2.filename,
|
|
7928
8796
|
score: result2.score,
|
|
7929
8797
|
text: result2.text
|
|
7930
|
-
}))) != null ?
|
|
8798
|
+
}))) != null ? _h : null
|
|
7931
8799
|
}
|
|
7932
8800
|
});
|
|
7933
8801
|
} else if (value.item.type === "code_interpreter_call") {
|
|
@@ -7953,7 +8821,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7953
8821
|
const toolCall = ongoingToolCalls[value.output_index];
|
|
7954
8822
|
const isHosted = value.item.execution === "server";
|
|
7955
8823
|
if (toolCall != null) {
|
|
7956
|
-
const toolCallId = isHosted ? toolCall.toolCallId : (
|
|
8824
|
+
const toolCallId = isHosted ? toolCall.toolCallId : (_i = value.item.call_id) != null ? _i : value.item.id;
|
|
7957
8825
|
if (isHosted) {
|
|
7958
8826
|
hostedToolSearchCallIds.push(toolCallId);
|
|
7959
8827
|
} else {
|
|
@@ -7985,7 +8853,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
7985
8853
|
}
|
|
7986
8854
|
ongoingToolCalls[value.output_index] = void 0;
|
|
7987
8855
|
} else if (value.item.type === "tool_search_output") {
|
|
7988
|
-
const toolCallId = (
|
|
8856
|
+
const toolCallId = (_k = (_j = value.item.call_id) != null ? _j : hostedToolSearchCallIds.shift()) != null ? _k : value.item.id;
|
|
7989
8857
|
controller.enqueue({
|
|
7990
8858
|
type: "tool-result",
|
|
7991
8859
|
toolCallId,
|
|
@@ -8001,10 +8869,10 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8001
8869
|
});
|
|
8002
8870
|
} else if (value.item.type === "mcp_call") {
|
|
8003
8871
|
ongoingToolCalls[value.output_index] = void 0;
|
|
8004
|
-
const approvalRequestId = (
|
|
8005
|
-
const aliasedToolCallId = approvalRequestId != null ? (
|
|
8872
|
+
const approvalRequestId = (_l = value.item.approval_request_id) != null ? _l : void 0;
|
|
8873
|
+
const aliasedToolCallId = approvalRequestId != null ? (_n = (_m = approvalRequestIdToDummyToolCallIdFromStream.get(
|
|
8006
8874
|
approvalRequestId
|
|
8007
|
-
)) != null ?
|
|
8875
|
+
)) != null ? _m : approvalRequestIdToDummyToolCallIdFromPrompt[approvalRequestId]) != null ? _n : value.item.id : value.item.id;
|
|
8008
8876
|
const toolName = `mcp.${value.item.name}`;
|
|
8009
8877
|
controller.enqueue({
|
|
8010
8878
|
type: "tool-call",
|
|
@@ -8056,6 +8924,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8056
8924
|
toolCall.applyPatch.endEmitted = true;
|
|
8057
8925
|
}
|
|
8058
8926
|
if (toolCall && value.item.status === "completed") {
|
|
8927
|
+
hasFunctionCall = true;
|
|
8059
8928
|
controller.enqueue({
|
|
8060
8929
|
type: "tool-call",
|
|
8061
8930
|
toolCallId: toolCall.toolCallId,
|
|
@@ -8074,8 +8943,8 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8074
8943
|
ongoingToolCalls[value.output_index] = void 0;
|
|
8075
8944
|
} else if (value.item.type === "mcp_approval_request") {
|
|
8076
8945
|
ongoingToolCalls[value.output_index] = void 0;
|
|
8077
|
-
const dummyToolCallId = (
|
|
8078
|
-
const approvalRequestId = (
|
|
8946
|
+
const dummyToolCallId = (_q = (_p = (_o = self.config).generateId) == null ? void 0 : _p.call(_o)) != null ? _q : generateId2();
|
|
8947
|
+
const approvalRequestId = (_r = value.item.approval_request_id) != null ? _r : value.item.id;
|
|
8079
8948
|
approvalRequestIdToDummyToolCallIdFromStream.set(
|
|
8080
8949
|
approvalRequestId,
|
|
8081
8950
|
dummyToolCallId
|
|
@@ -8169,7 +9038,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8169
9038
|
providerMetadata: {
|
|
8170
9039
|
[providerOptionsName]: {
|
|
8171
9040
|
itemId,
|
|
8172
|
-
reasoningEncryptedContent: (
|
|
9041
|
+
reasoningEncryptedContent: (_s = value.item.encrypted_content) != null ? _s : null
|
|
8173
9042
|
}
|
|
8174
9043
|
}
|
|
8175
9044
|
});
|
|
@@ -8193,11 +9062,15 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8193
9062
|
} else if (isResponseFunctionCallArgumentsDeltaChunk(value)) {
|
|
8194
9063
|
const toolCall = ongoingToolCalls[value.output_index];
|
|
8195
9064
|
if (toolCall != null) {
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
9065
|
+
if (toolCall.suppressInputStreaming) {
|
|
9066
|
+
(_t = toolCall.bufferedInputDeltas) == null ? void 0 : _t.push(value.delta);
|
|
9067
|
+
} else {
|
|
9068
|
+
controller.enqueue({
|
|
9069
|
+
type: "tool-input-delta",
|
|
9070
|
+
id: toolCall.toolCallId,
|
|
9071
|
+
delta: value.delta
|
|
9072
|
+
});
|
|
9073
|
+
}
|
|
8201
9074
|
}
|
|
8202
9075
|
} else if (isResponseCustomToolCallInputDeltaChunk(value)) {
|
|
8203
9076
|
const toolCall = ongoingToolCalls[value.output_index];
|
|
@@ -8300,7 +9173,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8300
9173
|
id: itemId,
|
|
8301
9174
|
delta: value.delta
|
|
8302
9175
|
});
|
|
8303
|
-
if (((
|
|
9176
|
+
if (((_v = (_u = options.providerOptions) == null ? void 0 : _u[providerOptionsName]) == null ? void 0 : _v.logprobs) && value.logprobs) {
|
|
8304
9177
|
logprobs.push(value.logprobs);
|
|
8305
9178
|
}
|
|
8306
9179
|
} else if (value.type === "response.reasoning_summary_part.added") {
|
|
@@ -8334,7 +9207,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8334
9207
|
providerMetadata: {
|
|
8335
9208
|
[providerOptionsName]: {
|
|
8336
9209
|
itemId,
|
|
8337
|
-
reasoningEncryptedContent: (
|
|
9210
|
+
reasoningEncryptedContent: (_w = activeReasoningPart.encryptedContent) != null ? _w : null
|
|
8338
9211
|
}
|
|
8339
9212
|
}
|
|
8340
9213
|
});
|
|
@@ -8378,22 +9251,24 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8378
9251
|
}
|
|
8379
9252
|
}
|
|
8380
9253
|
} else if (isResponseFinishedChunk(value)) {
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
9254
|
+
if (!encounteredStreamError) {
|
|
9255
|
+
finishReason = {
|
|
9256
|
+
unified: mapOpenAIResponseFinishReason({
|
|
9257
|
+
finishReason: (_x = value.response.incomplete_details) == null ? void 0 : _x.reason,
|
|
9258
|
+
hasFunctionCall
|
|
9259
|
+
}),
|
|
9260
|
+
raw: (_z = (_y = value.response.incomplete_details) == null ? void 0 : _y.reason) != null ? _z : void 0
|
|
9261
|
+
};
|
|
9262
|
+
}
|
|
9263
|
+
usage = (_A = value.response.usage) != null ? _A : void 0;
|
|
8389
9264
|
if (typeof value.response.service_tier === "string") {
|
|
8390
9265
|
serviceTier = value.response.service_tier;
|
|
8391
9266
|
}
|
|
8392
|
-
if (((
|
|
9267
|
+
if (((_B = value.response.reasoning) == null ? void 0 : _B.context) != null) {
|
|
8393
9268
|
reasoningContext = value.response.reasoning.context;
|
|
8394
9269
|
}
|
|
8395
9270
|
} else if (isResponseFailedChunk(value)) {
|
|
8396
|
-
const incompleteReason = (
|
|
9271
|
+
const incompleteReason = (_C = value.response.incomplete_details) == null ? void 0 : _C.reason;
|
|
8397
9272
|
finishReason = {
|
|
8398
9273
|
unified: incompleteReason ? mapOpenAIResponseFinishReason({
|
|
8399
9274
|
finishReason: incompleteReason,
|
|
@@ -8401,23 +9276,24 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8401
9276
|
}) : "error",
|
|
8402
9277
|
raw: incompleteReason != null ? incompleteReason : "error"
|
|
8403
9278
|
};
|
|
8404
|
-
usage = (
|
|
8405
|
-
if (((
|
|
9279
|
+
usage = (_D = value.response.usage) != null ? _D : void 0;
|
|
9280
|
+
if (((_E = value.response.reasoning) == null ? void 0 : _E.context) != null) {
|
|
8406
9281
|
reasoningContext = value.response.reasoning.context;
|
|
8407
9282
|
}
|
|
8408
9283
|
if (!encounteredStreamError && value.response.error != null) {
|
|
8409
9284
|
encounteredStreamError = true;
|
|
9285
|
+
const error = {
|
|
9286
|
+
type: "response.failed",
|
|
9287
|
+
sequence_number: value.sequence_number,
|
|
9288
|
+
response: {
|
|
9289
|
+
error: value.response.error,
|
|
9290
|
+
incomplete_details: value.response.incomplete_details,
|
|
9291
|
+
service_tier: value.response.service_tier
|
|
9292
|
+
}
|
|
9293
|
+
};
|
|
8410
9294
|
controller.enqueue({
|
|
8411
9295
|
type: "error",
|
|
8412
|
-
error:
|
|
8413
|
-
type: "response.failed",
|
|
8414
|
-
sequence_number: value.sequence_number,
|
|
8415
|
-
response: {
|
|
8416
|
-
error: value.response.error,
|
|
8417
|
-
incomplete_details: value.response.incomplete_details,
|
|
8418
|
-
service_tier: value.response.service_tier
|
|
8419
|
-
}
|
|
8420
|
-
}
|
|
9296
|
+
error: (_F = createOpenAIProviderStreamError(error)) != null ? _F : error
|
|
8421
9297
|
});
|
|
8422
9298
|
}
|
|
8423
9299
|
} else if (isResponseAnnotationAddedChunk(value)) {
|
|
@@ -8426,7 +9302,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8426
9302
|
controller.enqueue({
|
|
8427
9303
|
type: "source",
|
|
8428
9304
|
sourceType: "url",
|
|
8429
|
-
id: (
|
|
9305
|
+
id: (_I = (_H = (_G = self.config).generateId) == null ? void 0 : _H.call(_G)) != null ? _I : generateId2(),
|
|
8430
9306
|
url: value.annotation.url,
|
|
8431
9307
|
title: value.annotation.title
|
|
8432
9308
|
});
|
|
@@ -8434,7 +9310,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8434
9310
|
controller.enqueue({
|
|
8435
9311
|
type: "source",
|
|
8436
9312
|
sourceType: "document",
|
|
8437
|
-
id: (
|
|
9313
|
+
id: (_L = (_K = (_J = self.config).generateId) == null ? void 0 : _K.call(_J)) != null ? _L : generateId2(),
|
|
8438
9314
|
mediaType: "text/plain",
|
|
8439
9315
|
title: value.annotation.filename,
|
|
8440
9316
|
filename: value.annotation.filename,
|
|
@@ -8450,7 +9326,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8450
9326
|
controller.enqueue({
|
|
8451
9327
|
type: "source",
|
|
8452
9328
|
sourceType: "document",
|
|
8453
|
-
id: (
|
|
9329
|
+
id: (_O = (_N = (_M = self.config).generateId) == null ? void 0 : _N.call(_M)) != null ? _O : generateId2(),
|
|
8454
9330
|
mediaType: "text/plain",
|
|
8455
9331
|
title: value.annotation.filename,
|
|
8456
9332
|
filename: value.annotation.filename,
|
|
@@ -8466,7 +9342,7 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8466
9342
|
controller.enqueue({
|
|
8467
9343
|
type: "source",
|
|
8468
9344
|
sourceType: "document",
|
|
8469
|
-
id: (
|
|
9345
|
+
id: (_R = (_Q = (_P = self.config).generateId) == null ? void 0 : _Q.call(_P)) != null ? _R : generateId2(),
|
|
8470
9346
|
mediaType: "application/octet-stream",
|
|
8471
9347
|
title: value.annotation.file_id,
|
|
8472
9348
|
filename: value.annotation.file_id,
|
|
@@ -8482,10 +9358,31 @@ var OpenAIResponsesLanguageModel = class _OpenAIResponsesLanguageModel {
|
|
|
8482
9358
|
} else if (isErrorChunk(value)) {
|
|
8483
9359
|
encounteredStreamError = true;
|
|
8484
9360
|
finishReason = { unified: "error", raw: "error" };
|
|
8485
|
-
controller.enqueue({
|
|
9361
|
+
controller.enqueue({
|
|
9362
|
+
type: "error",
|
|
9363
|
+
error: (_S = createOpenAIProviderStreamError(value)) != null ? _S : value
|
|
9364
|
+
});
|
|
8486
9365
|
}
|
|
8487
9366
|
},
|
|
8488
9367
|
flush(controller) {
|
|
9368
|
+
var _a3;
|
|
9369
|
+
for (const toolCall of Object.values(ongoingToolCalls)) {
|
|
9370
|
+
if (!(toolCall == null ? void 0 : toolCall.suppressInputStreaming)) {
|
|
9371
|
+
continue;
|
|
9372
|
+
}
|
|
9373
|
+
controller.enqueue({
|
|
9374
|
+
type: "tool-input-start",
|
|
9375
|
+
id: toolCall.toolCallId,
|
|
9376
|
+
toolName: toolCall.toolName
|
|
9377
|
+
});
|
|
9378
|
+
for (const delta of (_a3 = toolCall.bufferedInputDeltas) != null ? _a3 : []) {
|
|
9379
|
+
controller.enqueue({
|
|
9380
|
+
type: "tool-input-delta",
|
|
9381
|
+
id: toolCall.toolCallId,
|
|
9382
|
+
delta
|
|
9383
|
+
});
|
|
9384
|
+
}
|
|
9385
|
+
}
|
|
8489
9386
|
const providerMetadata = {
|
|
8490
9387
|
[providerOptionsName]: {
|
|
8491
9388
|
responseId,
|
|
@@ -8586,7 +9483,7 @@ function isResponseOutputChunk(chunk) {
|
|
|
8586
9483
|
return !(chunk.type === "response.created" || chunk.type === "response.in_progress" || chunk.type === "response.failed" || chunk.type === "error" || chunk.type === "unknown_chunk");
|
|
8587
9484
|
}
|
|
8588
9485
|
function mapWebSearchOutput(action) {
|
|
8589
|
-
var
|
|
9486
|
+
var _a2;
|
|
8590
9487
|
if (action == null) {
|
|
8591
9488
|
return {};
|
|
8592
9489
|
}
|
|
@@ -8595,7 +9492,7 @@ function mapWebSearchOutput(action) {
|
|
|
8595
9492
|
return {
|
|
8596
9493
|
action: {
|
|
8597
9494
|
type: "search",
|
|
8598
|
-
query: (
|
|
9495
|
+
query: (_a2 = action.query) != null ? _a2 : void 0,
|
|
8599
9496
|
...action.queries != null && { queries: action.queries }
|
|
8600
9497
|
},
|
|
8601
9498
|
// include sources when provided by the Responses API (behind include flag)
|
|
@@ -8642,6 +9539,7 @@ export {
|
|
|
8642
9539
|
imageGeneration,
|
|
8643
9540
|
imageGenerationArgsSchema,
|
|
8644
9541
|
imageGenerationOutputSchema,
|
|
9542
|
+
mapWebSearchOutput,
|
|
8645
9543
|
modelMaxImagesPerCall,
|
|
8646
9544
|
openAITranscriptionModelOptions,
|
|
8647
9545
|
openaiEmbeddingModelOptions,
|
|
@@ -8650,6 +9548,7 @@ export {
|
|
|
8650
9548
|
openaiImageModelOptions,
|
|
8651
9549
|
openaiLanguageModelChatOptions,
|
|
8652
9550
|
openaiLanguageModelCompletionOptions,
|
|
9551
|
+
openaiResponsesSupportedUrls,
|
|
8653
9552
|
openaiSpeechModelOptionsSchema,
|
|
8654
9553
|
programmaticToolCalling,
|
|
8655
9554
|
programmaticToolCallingInputSchema,
|