maka-agent 0.2.0-dev.6.20260830 → 0.2.0-dev.64.20260929
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/DISCLAIMER-WIP +6 -1
- package/LICENSE +291 -9
- package/README.md +50 -20
- package/README.zh-CN.md +39 -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 +490 -271
- package/dist/acp/active-promise.js +38 -0
- package/dist/acp/goal-plan-operations.js +142 -0
- package/dist/acp/goal-plan-routes.js +33 -0
- package/dist/acp/maka-acp-agent.js +128 -7
- package/dist/acp/prompt-content.js +225 -0
- package/dist/acp/session-configuration.js +143 -0
- package/dist/acp/session-domain-observation.js +185 -0
- package/dist/acp/session-event-mapper.js +205 -0
- package/dist/acp/session-interactions.js +550 -0
- package/dist/acp/session-mcp.js +361 -0
- package/dist/acp/session-registry.js +2378 -0
- package/dist/acp/stdio-server.js +32 -1
- package/dist/acp/tool-event-mapper.js +457 -0
- package/dist/acp/turn-observation.js +260 -0
- package/dist/activation-command.js +12 -5
- package/dist/bounded-chunk-buffer.js +16 -3
- package/dist/cli-core.js +98 -102
- package/dist/cli-ui-locale.js +7 -2
- package/dist/mcp-capability-provider.js +21 -12
- package/dist/mcp-capability-publication.js +155 -0
- package/dist/onboarding-catalog.js +23 -8
- package/dist/pi-transcript-tools.js +17 -5
- package/dist/pi-transcript.js +77 -31
- package/dist/pi-tui-form-interaction.js +497 -0
- package/dist/pi-tui-layout.js +101 -24
- package/dist/pi-tui-mcp-status.js +194 -128
- package/dist/pi-tui-pickers.js +588 -103
- package/dist/pi-tui-runner.js +1097 -251
- 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 +41 -8
- package/dist/runtime-host-cli-context.js +300 -80
- package/dist/runtime-host-cli-installation.js +8 -2
- package/dist/runtime-host-cli.js +360 -64
- 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 +16 -1
- 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 +363 -23
- 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 +1 -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 +89 -67
- package/dist/runtime-host-run-mcp.js +161 -0
- 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 +30 -11
- package/dist/runtime-host-session-channel.js +282 -28
- package/dist/runtime-host-session-driver.js +115 -55
- package/dist/runtime-host-session-update.js +62 -0
- package/dist/runtime-host-setup-command.js +72 -52
- package/dist/runtime-host-task-readiness.js +2 -3
- package/dist/runtime-host-tui-command.js +63 -82
- package/dist/runtime-host-tui-context.js +74 -11
- package/dist/runtime-host-tui-owner.js +226 -0
- package/dist/runtime-host-update-command.js +165 -70
- 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 +92 -0
- package/dist/tui-copy-catalog.js +1060 -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 +162 -122
- package/dist/tui-mcp-remote-publication.js +395 -0
- package/dist/workspace-root.js +2 -2
- 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/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js +12 -12
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +52 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +5 -4
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +7 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +51 -8
- package/node_modules/@agentclientprotocol/sdk/package.json +2 -2
- package/node_modules/@agentclientprotocol/sdk/schema/schema.json +90 -2
- package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +103 -12
- package/node_modules/@ai-sdk/anthropic/CHANGELOG.md +257 -0
- package/node_modules/@ai-sdk/anthropic/README.md +1 -1
- package/node_modules/@ai-sdk/anthropic/dist/index.js +2478 -1198
- package/node_modules/@ai-sdk/anthropic/dist/internal/index.js +1822 -894
- package/node_modules/@ai-sdk/anthropic/docs/05-anthropic.mdx +590 -80
- package/node_modules/@ai-sdk/anthropic/package.json +6 -6
- package/node_modules/@ai-sdk/code-mode/dist/approval-continuation.js +0 -1
- package/node_modules/@ai-sdk/code-mode/dist/code-mode-tool.js +26 -7
- package/node_modules/@ai-sdk/code-mode/dist/errors.js +0 -8
- package/node_modules/@ai-sdk/code-mode/dist/interrupt-continuation.js +0 -2
- package/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +8 -19
- package/node_modules/@ai-sdk/code-mode/dist/tool-prompt.js +43 -15
- package/node_modules/@ai-sdk/code-mode/package.json +5 -5
- package/node_modules/@ai-sdk/cohere/CHANGELOG.md +204 -0
- package/node_modules/@ai-sdk/cohere/README.md +1 -1
- package/node_modules/@ai-sdk/cohere/dist/index.js +54 -70
- package/node_modules/@ai-sdk/cohere/docs/25-cohere.mdx +11 -9
- package/node_modules/@ai-sdk/cohere/package.json +6 -6
- package/node_modules/@ai-sdk/gateway/CHANGELOG.md +385 -0
- package/node_modules/@ai-sdk/gateway/README.md +1 -1
- package/node_modules/@ai-sdk/gateway/dist/index.js +1326 -357
- package/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +547 -29
- package/node_modules/@ai-sdk/gateway/package.json +8 -8
- package/node_modules/@ai-sdk/google/CHANGELOG.md +356 -0
- package/node_modules/@ai-sdk/google/README.md +1 -1
- package/node_modules/@ai-sdk/google/dist/index.js +6356 -4699
- package/node_modules/@ai-sdk/google/dist/internal/index.js +1207 -824
- package/node_modules/@ai-sdk/google/docs/15-google.mdx +444 -133
- package/node_modules/@ai-sdk/google/package.json +6 -6
- package/node_modules/@ai-sdk/open-responses/CHANGELOG.md +190 -0
- package/node_modules/@ai-sdk/open-responses/dist/index.js +908 -124
- package/node_modules/@ai-sdk/open-responses/docs/06-open-responses.mdx +240 -4
- package/node_modules/@ai-sdk/open-responses/package.json +4 -4
- package/node_modules/@ai-sdk/openai/CHANGELOG.md +331 -0
- package/node_modules/@ai-sdk/openai/README.md +27 -2
- package/node_modules/@ai-sdk/openai/dist/index.js +3791 -1897
- package/node_modules/@ai-sdk/openai/dist/internal/index.js +3008 -1980
- package/node_modules/@ai-sdk/openai/docs/03-openai.mdx +485 -120
- package/node_modules/@ai-sdk/openai/package.json +6 -6
- package/node_modules/@ai-sdk/openai-compatible/CHANGELOG.md +236 -0
- package/node_modules/@ai-sdk/openai-compatible/dist/index.js +218 -143
- package/node_modules/@ai-sdk/openai-compatible/dist/internal/index.js +31 -14
- package/node_modules/@ai-sdk/openai-compatible/docs/index.mdx +80 -0
- package/node_modules/@ai-sdk/openai-compatible/package.json +6 -6
- package/node_modules/@ai-sdk/provider/CHANGELOG.md +91 -0
- package/node_modules/@ai-sdk/provider/dist/index.js +127 -102
- package/node_modules/@ai-sdk/provider/package.json +3 -3
- package/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +191 -0
- package/node_modules/@ai-sdk/provider-utils/dist/experimental-evaluation/index.js +1618 -0
- package/node_modules/@ai-sdk/provider-utils/dist/index.js +1105 -407
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +3 -1
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/docs/docs/api/Dispatcher.md +1 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/client-h2.js +84 -19
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/client.js +6 -2
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/handler/cache-handler.js +21 -5
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/handler/retry-handler.js +109 -23
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/interceptor/cache.js +20 -1
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/interceptor/decompress.js +338 -46
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/eventsource/eventsource-stream.js +245 -150
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/websocket/connection.js +19 -9
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/package.json +1 -1
- package/node_modules/@ai-sdk/provider-utils/package.json +10 -5
- package/node_modules/@earendil-works/pi-tui/README.md +61 -6
- package/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js +202 -42
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +54 -14
- package/node_modules/@earendil-works/pi-tui/dist/components/box.js +29 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +114 -28
- package/node_modules/@earendil-works/pi-tui/dist/components/input.js +44 -5
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.js +10 -3
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +9 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js +21 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js +8 -2
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +49 -2
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +79 -9
- package/node_modules/@earendil-works/pi-tui/dist/components/text.js +5 -4
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +23 -22
- package/node_modules/@earendil-works/pi-tui/dist/index.js +4 -1
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/latex.js +123 -16
- package/node_modules/@earendil-works/pi-tui/dist/layout.js +32 -9
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +3 -50
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +19 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-platform.js +42 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +38 -6
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +19 -30
- package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +427 -60
- package/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js +111 -50
- package/node_modules/@earendil-works/pi-tui/dist/tui.js +123 -9
- package/node_modules/@earendil-works/pi-tui/dist/utils.js +13 -0
- package/node_modules/@earendil-works/pi-tui/native/clipboard.h +170 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/README.md +8 -6
- package/node_modules/@earendil-works/pi-tui/native/darwin/build.sh +12 -5
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-arm64/darwin-platform.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-x64/darwin-platform.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/src/darwin-platform.m +93 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/README.md +23 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/build.sh +65 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/prebuilds/linux-arm64/linux-platform-x11.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/prebuilds/linux-x64/linux-platform-x11.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/src/clipboard-worker.h +70 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/src/linux-platform-x11.c +274 -0
- package/node_modules/@earendil-works/pi-tui/native/napi.h +89 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/README.md +16 -7
- package/node_modules/@earendil-works/pi-tui/native/win32/build.mjs +7 -4
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-arm64/win32-platform.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-x64/win32-platform.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/src/win32-platform.c +241 -0
- package/node_modules/@earendil-works/pi-tui/package.json +11 -4
- package/node_modules/@larksuiteoapi/node-sdk/README.md +20 -0
- package/node_modules/@larksuiteoapi/node-sdk/README.zh.md +20 -0
- package/node_modules/@larksuiteoapi/node-sdk/es/index.js +232 -36
- package/node_modules/@larksuiteoapi/node-sdk/lib/index.js +232 -36
- package/node_modules/@larksuiteoapi/node-sdk/package.json +1 -1
- package/node_modules/@maka/acp-executor-plugin/dist/acp-errors.js +26 -0
- package/node_modules/@maka/acp-executor-plugin/dist/acp-filesystem.js +103 -0
- package/node_modules/@maka/acp-executor-plugin/dist/acp-process.js +119 -0
- package/node_modules/@maka/acp-executor-plugin/dist/acp-projection.js +146 -0
- package/node_modules/@maka/acp-executor-plugin/dist/index.js +958 -0
- package/node_modules/@maka/acp-executor-plugin/dist/plugin.mjs +24719 -0
- package/node_modules/@maka/acp-executor-plugin/package.json +15 -0
- package/node_modules/@maka/antigravity-acp-plugin/dist/index.js +88 -0
- package/node_modules/@maka/antigravity-acp-plugin/dist/model-presentation.js +53 -0
- package/node_modules/@maka/antigravity-acp-plugin/dist/plugin.mjs +115 -0
- package/node_modules/@maka/antigravity-acp-plugin/package.json +15 -0
- package/node_modules/@maka/core/dist/agent-graph-schedule.js +15 -4
- package/node_modules/@maka/core/dist/agent-run.js +25 -336
- package/node_modules/@maka/core/dist/artifacts.js +33 -23
- package/node_modules/@maka/core/dist/attachments.js +107 -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 +14 -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/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 +125 -21
- package/node_modules/@maka/core/dist/execution-inspect.js +12 -21
- package/node_modules/@maka/core/dist/executor-catalog.js +115 -0
- package/node_modules/@maka/core/dist/executor-id.js +22 -0
- package/node_modules/@maka/core/dist/external-session.js +65 -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 +657 -2
- package/node_modules/@maka/core/dist/llm-connections.js +108 -97
- 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/mcp.js +4 -1
- package/node_modules/@maka/core/dist/message-queue-order.js +47 -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 -196
- package/node_modules/@maka/core/dist/model-catalog.js +194 -337
- package/node_modules/@maka/core/dist/model-facts.js +204 -0
- package/node_modules/@maka/core/dist/model-failure.js +40 -0
- package/node_modules/@maka/core/dist/model-metadata.generated.js +2069 -1878
- package/node_modules/@maka/core/dist/model-metadata.js +371 -215
- package/node_modules/@maka/core/dist/model-projection-transition.js +145 -0
- package/node_modules/@maka/core/dist/model-thinking.js +133 -34
- package/node_modules/@maka/core/dist/model-web-search.js +13 -15
- package/node_modules/@maka/core/dist/models-dev-projection.js +320 -0
- package/node_modules/@maka/core/dist/models-dev-refresh.js +55 -0
- package/node_modules/@maka/core/dist/onboarding.js +3 -5
- package/node_modules/@maka/core/dist/openai-urls.js +51 -0
- 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 +49 -291
- package/node_modules/@maka/core/dist/provider-registry.js +251 -494
- package/node_modules/@maka/core/dist/recall.js +1143 -0
- package/node_modules/@maka/core/dist/record-schema.js +22 -2
- package/node_modules/@maka/core/dist/redaction.js +128 -43
- package/node_modules/@maka/core/dist/refresh-read-coordinator.js +62 -0
- package/node_modules/@maka/core/dist/relative-time-policy.js +71 -0
- package/node_modules/@maka/core/dist/relative-time.js +26 -77
- 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 +31 -0
- package/node_modules/@maka/core/dist/runtime-event.js +270 -12
- package/node_modules/@maka/core/dist/runtime-handoff.js +106 -0
- package/node_modules/@maka/core/dist/runtime-invocation.js +228 -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 +247 -74
- package/node_modules/@maka/core/dist/runtime-policy/credential-vault-codec.js +15 -1
- package/node_modules/@maka/core/dist/runtime-policy/model-catalog-entry-codec.js +106 -0
- package/node_modules/@maka/core/dist/runtime-policy/policy-codec.js +139 -4
- package/node_modules/@maka/core/dist/runtime-policy.js +7 -3
- package/node_modules/@maka/core/dist/scheduled-task.js +12 -2
- package/node_modules/@maka/core/dist/session-name.js +2 -3
- package/node_modules/@maka/core/dist/session-reference.js +149 -0
- package/node_modules/@maka/core/dist/session-send-projection.js +8 -4
- package/node_modules/@maka/core/dist/session-start-mode.js +39 -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 +356 -57
- package/node_modules/@maka/core/dist/settings.js +50 -12
- package/node_modules/@maka/core/dist/shell-run-result.js +1 -0
- package/node_modules/@maka/core/dist/shell-run.js +15 -0
- package/node_modules/@maka/core/dist/skill-locations.js +29 -0
- 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 +29 -4
- package/node_modules/@maka/core/dist/tool-activity-args.js +4 -0
- package/node_modules/@maka/core/dist/tool-ledger-scanner.js +365 -104
- package/node_modules/@maka/core/dist/tool-quiet-preview.js +53 -26
- package/node_modules/@maka/core/dist/tool-result-archive-evidence.js +22 -0
- package/node_modules/@maka/core/dist/tool-result-record-schema.js +12 -2
- package/node_modules/@maka/core/dist/transcript-search.js +46 -0
- package/node_modules/@maka/core/dist/turn-origin.js +20 -0
- 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 -31
- package/node_modules/@maka/core/dist/usage-stats/types.js +3 -0
- package/node_modules/@maka/core/dist/work-board.js +94 -1
- 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 +2178 -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 +2810 -0
- package/node_modules/@maka/core/node_modules/intl-messageformat/package.json +40 -0
- package/node_modules/@maka/core/package.json +34 -8
- package/node_modules/@maka/eval/dist/egress-audit.js +127 -0
- package/node_modules/@maka/eval/dist/experiment-directory.js +4 -13
- package/node_modules/@maka/eval/dist/fleet-simulation.js +270 -0
- package/node_modules/@maka/eval/dist/fleet-store.js +243 -0
- package/node_modules/@maka/eval/dist/fleet-worker.js +125 -0
- package/node_modules/@maka/eval/dist/fleet.js +329 -0
- package/node_modules/@maka/eval/dist/harbor-external-subject.js +2 -1
- package/node_modules/@maka/eval/dist/harbor-maka-subject.js +16 -3
- package/node_modules/@maka/eval/dist/harness-executor.js +19 -98
- package/node_modules/@maka/eval/dist/index.js +3 -0
- package/node_modules/@maka/eval/dist/install-preflight.js +39 -10
- package/node_modules/@maka/eval/dist/maka-artifacts.js +28 -14
- package/node_modules/@maka/eval/dist/maka-subject.js +35 -3
- package/node_modules/@maka/eval/dist/metering-checkpoint.js +4 -4
- 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 +6 -5
- package/node_modules/@maka/eval/harbor/egress_filter.py +202 -136
- package/node_modules/@maka/eval/harbor/eval_framework.py +39 -16
- package/node_modules/@maka/eval/harbor/relay_agent.py +47 -10
- package/node_modules/@maka/eval/harbor/run_trial.py +13 -6
- package/node_modules/@maka/eval/node_modules/undici/README.md +10 -1
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Agent.md +8 -8
- 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/DiagnosticsChannel.md +9 -6
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Dispatcher.md +9 -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/Errors.md +25 -0
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Fetch.md +10 -0
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Interceptors.md +8 -3
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/index.md +10 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/api/readable.js +1 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/core/symbols.js +2 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/core/util.js +0 -39
- 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 +7 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h2.js +94 -10
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client.js +9 -3
- 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 +15 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +31 -9
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/pool-base.js +63 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/pool.js +90 -7
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/proxy-agent.js +33 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
- 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 +91 -21
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/cache-handler.js +29 -5
- 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 +29 -10
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/redirect-handler.js +26 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/retry-handler.js +215 -38
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/cache.js +69 -13
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/decompress.js +319 -50
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dns.js +7 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dump.js +10 -23
- 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/util/cache.js +45 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/web/cache/cache.js +17 -8
- package/node_modules/@maka/eval/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
- package/node_modules/@maka/eval/node_modules/undici/lib/web/cookies/index.js +19 -7
- package/node_modules/@maka/eval/node_modules/undici/lib/web/cookies/parse.js +150 -147
- package/node_modules/@maka/eval/node_modules/undici/lib/web/cookies/util.js +3 -1
- 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 +38 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/body.js +22 -15
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/formdata.js +30 -36
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/headers.js +34 -31
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/index.js +52 -25
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/request.js +76 -82
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/util.js +13 -8
- package/node_modules/@maka/eval/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/web/webidl/index.js +5 -17
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/connection.js +34 -13
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/receiver.js +2 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/stream/websocketstream.js +27 -14
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- 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/credential-coordinator.js +6 -1
- package/node_modules/@maka/mcp/dist/form-elicitation.js +213 -0
- package/node_modules/@maka/mcp/dist/index.js +517 -72
- package/node_modules/@maka/mcp/dist/oauth.js +58 -8
- package/node_modules/@maka/mcp/dist/sep-2243.js +3 -3
- package/node_modules/@maka/mcp/dist/tool-progress.js +45 -0
- package/node_modules/@maka/mcp/package.json +1 -1
- package/node_modules/@maka/runtime/dist/agent-graph-supervisor-wake.js +33 -6
- package/node_modules/@maka/runtime/dist/agent-graph-timeline.js +12 -11
- package/node_modules/@maka/runtime/dist/agent-run-inspect.js +38 -86
- package/node_modules/@maka/runtime/dist/agent-run-recovery.js +36 -46
- package/node_modules/@maka/runtime/dist/agent-run.js +603 -470
- package/node_modules/@maka/runtime/dist/agent-swarm-status-tool.js +0 -1
- package/node_modules/@maka/runtime/dist/ai-sdk-backend.js +116 -3753
- package/node_modules/@maka/runtime/dist/ai-sdk-compaction-contract.js +6 -1
- package/node_modules/@maka/runtime/dist/ai-sdk-compaction.js +511 -549
- package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +623 -0
- package/node_modules/@maka/runtime/dist/ai-sdk-tool-repair.js +115 -0
- package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +2616 -0
- package/node_modules/@maka/runtime/dist/apply-patch-profile.js +64 -14
- package/node_modules/@maka/runtime/dist/ask-user-question-tool.js +0 -1
- package/node_modules/@maka/runtime/dist/background-task-health-tool.js +104 -0
- 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/proxied-fetch.js +5 -4
- 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 +134 -133
- 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/codex-v4a-patch.js +18 -0
- package/node_modules/@maka/runtime/dist/computer-use-codec.js +1 -141
- package/node_modules/@maka/runtime/dist/computer-use-tools.js +162 -205
- package/node_modules/@maka/runtime/dist/context-budget-helpers.js +7 -56
- 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 +25 -12
- package/node_modules/@maka/runtime/dist/conversation-copy.js +731 -356
- package/node_modules/@maka/runtime/dist/cua-frame-state.js +1 -69
- package/node_modules/@maka/runtime/dist/deepseek-web-search-codec.js +71 -0
- package/node_modules/@maka/runtime/dist/durable-tool-result-projection.js +436 -0
- package/node_modules/@maka/runtime/dist/edit-replace.js +9 -9
- package/node_modules/@maka/runtime/dist/execution-inspect.js +56 -41
- package/node_modules/@maka/runtime/dist/filesystem-executor.js +17 -28
- 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 +50 -125
- package/node_modules/@maka/runtime/dist/filesystem-worker/protocol.js +29 -11
- package/node_modules/@maka/runtime/dist/filesystem-worker/worker-entry.js +2 -0
- package/node_modules/@maka/runtime/dist/format-json.js +39 -0
- package/node_modules/@maka/runtime/dist/github-copilot-oauth-enrollment.js +267 -0
- package/node_modules/@maka/runtime/dist/glob-search.js +87 -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 -34
- 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 +114 -93
- package/node_modules/@maka/runtime/dist/image-file.js +26 -33
- 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 +26 -55
- package/node_modules/@maka/runtime/dist/mcp-tools.js +102 -37
- package/node_modules/@maka/runtime/dist/memory-extraction-evidence.js +7 -1
- package/node_modules/@maka/runtime/dist/memory-extraction.js +30 -19
- package/node_modules/@maka/runtime/dist/message-authority.js +9 -0
- package/node_modules/@maka/runtime/dist/model-adapter.js +291 -193
- package/node_modules/@maka/runtime/dist/model-factory.js +131 -135
- package/node_modules/@maka/runtime/dist/model-fetcher.js +102 -90
- package/node_modules/@maka/runtime/dist/model-history.js +533 -169
- package/node_modules/@maka/runtime/dist/model-projection-transition-ledger.js +207 -0
- package/node_modules/@maka/runtime/dist/model-runtime.js +91 -113
- package/node_modules/@maka/runtime/dist/native-web-search-tool.js +2 -1
- package/node_modules/@maka/runtime/dist/network/abortable-connector.js +55 -0
- package/node_modules/@maka/runtime/dist/network/proxy-dispatcher.js +72 -37
- package/node_modules/@maka/runtime/dist/network/proxy-test.js +1 -1
- package/node_modules/@maka/runtime/dist/network/scoped-fetch-transport.js +7 -2
- package/node_modules/@maka/runtime/dist/oauth-provider-contracts.js +28 -1
- package/node_modules/@maka/runtime/dist/openai-apply-patch.js +5 -0
- package/node_modules/@maka/runtime/dist/openai-codex-history-compactor.js +29 -77
- package/node_modules/@maka/runtime/dist/openai-responses-websocket.js +2 -5
- package/node_modules/@maka/runtime/dist/opencode-session-header.js +30 -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 +123 -0
- package/node_modules/@maka/runtime/dist/plugin-approval-service.js +33 -0
- package/node_modules/@maka/runtime/dist/plugin-attachment-service.js +45 -0
- package/node_modules/@maka/runtime/dist/plugin-client-bridge-service.js +308 -0
- package/node_modules/@maka/runtime/dist/plugin-command-service.js +100 -0
- package/node_modules/@maka/runtime/dist/plugin-composition-loader.js +209 -56
- package/node_modules/@maka/runtime/dist/plugin-data-services.js +315 -0
- package/node_modules/@maka/runtime/dist/plugin-executor-backend.js +451 -0
- package/node_modules/@maka/runtime/dist/plugin-executor-service.js +576 -0
- package/node_modules/@maka/runtime/dist/plugin-fs-service.js +54 -0
- package/node_modules/@maka/runtime/dist/plugin-goal-service.js +53 -0
- package/node_modules/@maka/runtime/dist/plugin-internals.js +78 -0
- package/node_modules/@maka/runtime/dist/plugin-invocation-signal.js +24 -0
- package/node_modules/@maka/runtime/dist/plugin-llm-service.js +77 -0
- package/node_modules/@maka/runtime/dist/plugin-lsp-service.js +94 -0
- package/node_modules/@maka/runtime/dist/plugin-runtime.js +211 -10
- package/node_modules/@maka/runtime/dist/plugin-scope-registry.js +91 -0
- package/node_modules/@maka/runtime/dist/plugin-session-query-service.js +63 -0
- package/node_modules/@maka/runtime/dist/plugin-shell-env-service.js +87 -0
- package/node_modules/@maka/runtime/dist/plugin-shell-service.js +66 -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 +61 -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 +127 -205
- package/node_modules/@maka/runtime/dist/provider-error-signals.js +31 -0
- package/node_modules/@maka/runtime/dist/provider-image-overflow-recovery.js +12 -31
- package/node_modules/@maka/runtime/dist/provider-request-telemetry.js +207 -204
- package/node_modules/@maka/runtime/dist/provider-retry-policy.js +79 -0
- package/node_modules/@maka/runtime/dist/provider-urls.js +1 -18
- package/node_modules/@maka/runtime/dist/pty-screen-collector.js +32 -6
- package/node_modules/@maka/runtime/dist/quiescent-session-snapshot.js +78 -0
- package/node_modules/@maka/runtime/dist/read-page.js +234 -0
- package/node_modules/@maka/runtime/dist/recall-candidates.js +53 -0
- package/node_modules/@maka/runtime/dist/recall-tools.js +282 -0
- package/node_modules/@maka/runtime/dist/recovery-resolver.js +0 -59
- 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/responses-reasoning-state.js +19 -7
- 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 +114 -66
- package/node_modules/@maka/runtime/dist/runtime-event-read-model.js +420 -234
- package/node_modules/@maka/runtime/dist/runtime-invocation-route.js +49 -0
- package/node_modules/@maka/runtime/dist/runtime-kernel.js +619 -357
- package/node_modules/@maka/runtime/dist/runtime-ledger-repair.js +235 -450
- package/node_modules/@maka/runtime/dist/runtime-read-model.js +94 -200
- 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 +0 -12
- 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 +68 -9
- package/node_modules/@maka/runtime/dist/session-event-runtime-mapper.js +67 -20
- 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 +985 -1067
- package/node_modules/@maka/runtime/dist/session-projection-helpers.js +18 -28
- package/node_modules/@maka/runtime/dist/session-recap.js +90 -17
- 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 +83 -78
- package/node_modules/@maka/runtime/dist/shell-run-tool-result.js +19 -9
- package/node_modules/@maka/runtime/dist/shell-tools.js +84 -14
- package/node_modules/@maka/runtime/dist/skills-discovery.js +17 -23
- package/node_modules/@maka/runtime/dist/stream-graph-coordinator.js +96 -20
- 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-schedule-reconcile.js +1 -0
- package/node_modules/@maka/runtime/dist/stream-graph-supervisor-tools.js +26 -12
- package/node_modules/@maka/runtime/dist/stream-usage-fallback-fetch.js +74 -0
- package/node_modules/@maka/runtime/dist/subagent-tools.js +77 -90
- package/node_modules/@maka/runtime/dist/subscription-credentials.js +51 -4
- package/node_modules/@maka/runtime/dist/subscription-model-fetch.js +135 -13
- 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 +299 -215
- package/node_modules/@maka/runtime/dist/terminal-run-commit.js +42 -171
- package/node_modules/@maka/runtime/dist/test-connection.js +35 -85
- 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 +89 -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 +415 -613
- 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 +13681 -5108
- package/node_modules/@maka/runtime/dist/workspace-executor.js +26 -35
- 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/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +3 -1
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/docs/docs/api/Dispatcher.md +1 -0
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/client-h2.js +84 -19
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/client.js +6 -2
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/handler/cache-handler.js +21 -5
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/handler/retry-handler.js +109 -23
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/interceptor/cache.js +20 -1
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/interceptor/decompress.js +338 -46
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/eventsource/eventsource-stream.js +245 -150
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/websocket/connection.js +19 -9
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/package.json +1 -1
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/package.json +5 -5
- package/node_modules/@maka/runtime/node_modules/undici/README.md +10 -1
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Agent.md +8 -8
- 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/DiagnosticsChannel.md +9 -6
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Dispatcher.md +9 -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/Errors.md +25 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Fetch.md +10 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Interceptors.md +8 -3
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/index.md +10 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/api/readable.js +1 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/core/symbols.js +2 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/core/util.js +0 -39
- 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 +7 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h2.js +94 -10
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client.js +9 -3
- 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 +15 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +31 -9
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/pool-base.js +63 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/pool.js +90 -7
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/proxy-agent.js +33 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
- 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 +91 -21
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/cache-handler.js +29 -5
- 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 +29 -10
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/redirect-handler.js +26 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/retry-handler.js +215 -38
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/cache.js +69 -13
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/decompress.js +319 -50
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dns.js +7 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dump.js +10 -23
- 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/util/cache.js +45 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/cache/cache.js +17 -8
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/cookies/index.js +19 -7
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/cookies/parse.js +150 -147
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/cookies/util.js +3 -1
- 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 +38 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/body.js +22 -15
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/formdata.js +30 -36
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/headers.js +34 -31
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/index.js +52 -25
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/request.js +76 -82
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/util.js +13 -8
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/webidl/index.js +5 -17
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/connection.js +34 -13
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/receiver.js +2 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/stream/websocketstream.js +27 -14
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- package/node_modules/@maka/runtime/node_modules/undici/package.json +3 -3
- package/node_modules/@maka/runtime/package.json +53 -22
- package/node_modules/@maka/runtime-host/dist/adapter/provider-retry-projector.js +63 -0
- package/node_modules/@maka/runtime-host/dist/adapter/session-projector.js +137 -156
- package/node_modules/@maka/runtime-host/dist/candidate-cli.js +7 -7
- package/node_modules/@maka/runtime-host/dist/candidate-entry.js +18 -7
- package/node_modules/@maka/runtime-host/dist/candidate-launch-owner-guard.js +13 -0
- package/node_modules/@maka/runtime-host/dist/client/capability-provider-service.js +2 -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 +190 -30
- package/node_modules/@maka/runtime-host/dist/client/connect-or-spawn.js +60 -20
- package/node_modules/@maka/runtime-host/dist/client/connection.js +170 -63
- package/node_modules/@maka/runtime-host/dist/client/host-handoff-copy.js +248 -0
- package/node_modules/@maka/runtime-host/dist/client/host-handoff.js +311 -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/hosted-execution-target.js +33 -6
- package/node_modules/@maka/runtime-host/dist/client/hosted-execution.js +10 -28
- package/node_modules/@maka/runtime-host/dist/client/index.js +15 -11
- 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 +389 -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 +80 -8
- package/node_modules/@maka/runtime-host/dist/client/reconnecting-connection.js +15 -4
- 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-catalog-summary.js +15 -1
- package/node_modules/@maka/runtime-host/dist/client/session-subscription.js +105 -125
- package/node_modules/@maka/runtime-host/dist/client/ssh-operator-activation.js +48 -11
- package/node_modules/@maka/runtime-host/dist/client/startup-error.js +1 -1
- package/node_modules/@maka/runtime-host/dist/client/wait-for-ready.js +1 -1
- 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/composition-identity.js +19 -0
- package/node_modules/@maka/runtime-host/dist/control/endpoint.js +8 -9
- package/node_modules/@maka/runtime-host/dist/execution-candidate-main.js +8 -1
- 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/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/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 +48 -60
- package/node_modules/@maka/runtime-host/dist/peer-mesh/node.js +1228 -472
- package/node_modules/@maka/runtime-host/dist/peer-mesh/owner.js +33 -70
- package/node_modules/@maka/runtime-host/dist/peer-mesh/store.js +141 -59
- 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 +5 -12
- package/node_modules/@maka/runtime-host/dist/protocol/artifact.js +11 -20
- package/node_modules/@maka/runtime-host/dist/protocol/client-capability.js +273 -46
- package/node_modules/@maka/runtime-host/dist/protocol/codec.js +11 -0
- 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 +42 -9
- 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 +41 -12
- 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 +283 -5
- package/node_modules/@maka/runtime-host/dist/protocol/message-queue-limits.js +21 -0
- package/node_modules/@maka/runtime-host/dist/protocol/message.js +29 -112
- 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 +34 -10
- package/node_modules/@maka/runtime-host/dist/protocol/peer-mesh.js +14 -31
- package/node_modules/@maka/runtime-host/dist/protocol/plan.js +1 -0
- package/node_modules/@maka/runtime-host/dist/protocol/plugin-platform.js +899 -0
- package/node_modules/@maka/runtime-host/dist/protocol/project-catalog.js +2 -2
- package/node_modules/@maka/runtime-host/dist/protocol/prompt-suggestions.js +61 -0
- package/node_modules/@maka/runtime-host/dist/protocol/queue-mutation.js +136 -0
- package/node_modules/@maka/runtime-host/dist/protocol/recall.js +270 -0
- package/node_modules/@maka/runtime-host/dist/protocol/runtime-policy.js +84 -26
- package/node_modules/@maka/runtime-host/dist/protocol/runtime-resource.js +4 -17
- package/node_modules/@maka/runtime-host/dist/protocol/scheduled-task.js +26 -6
- package/node_modules/@maka/runtime-host/dist/protocol/session-bundle.js +100 -0
- package/node_modules/@maka/runtime-host/dist/protocol/session-catalog-change.js +24 -6
- package/node_modules/@maka/runtime-host/dist/protocol/session-catalog.js +134 -14
- package/node_modules/@maka/runtime-host/dist/protocol/session-collaboration.js +68 -4
- package/node_modules/@maka/runtime-host/dist/protocol/session-continuity.js +71 -34
- 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 +34 -127
- package/node_modules/@maka/runtime-host/dist/protocol/session-turns.js +38 -59
- package/node_modules/@maka/runtime-host/dist/protocol/skill-catalog.js +2 -1
- package/node_modules/@maka/runtime-host/dist/protocol/turn-provider-retry.js +69 -0
- package/node_modules/@maka/runtime-host/dist/protocol/turn.js +54 -95
- package/node_modules/@maka/runtime-host/dist/protocol/usage-pricing.js +39 -3
- package/node_modules/@maka/runtime-host/dist/protocol/usage-screen.js +312 -0
- package/node_modules/@maka/runtime-host/dist/protocol/workhub-coordination.js +218 -75
- package/node_modules/@maka/runtime-host/dist/server/access-authority.js +78 -17
- 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 +137 -49
- 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 +95 -97
- package/node_modules/@maka/runtime-host/dist/server/builtin-external-agent-plugins.js +188 -0
- package/node_modules/@maka/runtime-host/dist/server/candidate.js +15 -7
- 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 +2 -1
- package/node_modules/@maka/runtime-host/dist/server/client-capability-coordinator.js +633 -101
- package/node_modules/@maka/runtime-host/dist/server/client-capability-invocation-broker.js +266 -53
- 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 +45 -44
- 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 +46 -18
- package/node_modules/@maka/runtime-host/dist/server/connection-session.js +42 -19
- package/node_modules/@maka/runtime-host/dist/server/context-coordinator.js +2 -0
- package/node_modules/@maka/runtime-host/dist/server/daily-review-coordinator.js +164 -82
- package/node_modules/@maka/runtime-host/dist/server/execution-artifacts.js +59 -57
- package/node_modules/@maka/runtime-host/dist/server/execution-candidate.js +4 -1
- package/node_modules/@maka/runtime-host/dist/server/execution-composition-factory.js +10 -4
- package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +1511 -240
- 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 +160 -20
- package/node_modules/@maka/runtime-host/dist/server/execution-model-composition.js +102 -73
- package/node_modules/@maka/runtime-host/dist/server/execution-service.js +49 -25
- package/node_modules/@maka/runtime-host/dist/server/extension-bundle.js +253 -0
- package/node_modules/@maka/runtime-host/dist/server/extension-package-manifest.js +280 -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 +130 -55
- package/node_modules/@maka/runtime-host/dist/server/failure-diagnostic.js +24 -0
- package/node_modules/@maka/runtime-host/dist/server/generated-text.js +39 -0
- package/node_modules/@maka/runtime-host/dist/server/goal-coordinator.js +176 -40
- package/node_modules/@maka/runtime-host/dist/server/host-change-feed.js +26 -22
- package/node_modules/@maka/runtime-host/dist/server/host-composition-source.js +47 -0
- package/node_modules/@maka/runtime-host/dist/server/host-composition.js +1 -29
- package/node_modules/@maka/runtime-host/dist/server/host-kernel.js +164 -35
- 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 +15 -4
- 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 +205 -75
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-tool-profile.js +82 -12
- package/node_modules/@maka/runtime-host/dist/server/index.js +5 -0
- package/node_modules/@maka/runtime-host/dist/server/interaction-coordinator.js +467 -40
- 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 +178 -126
- package/node_modules/@maka/runtime-host/dist/server/interactive-turn-coordinator.js +5 -17
- package/node_modules/@maka/runtime-host/dist/server/jev-routing-model.js +157 -0
- 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 +8 -6
- package/node_modules/@maka/runtime-host/dist/server/memory-projection.js +14 -15
- package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +565 -353
- package/node_modules/@maka/runtime-host/dist/server/message-queue-state.js +69 -0
- 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 +66 -127
- 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 +1 -1
- package/node_modules/@maka/runtime-host/dist/server/plan-coordinator.js +52 -16
- 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 +204 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-package-store.js +545 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-platform-coordinator.js +400 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-platform.js +1273 -0
- package/node_modules/@maka/runtime-host/dist/server/process-lifecycle.js +1 -1
- package/node_modules/@maka/runtime-host/dist/server/process-termination-error.js +27 -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/prompt-suggestion.js +179 -0
- package/node_modules/@maka/runtime-host/dist/server/provider-retry-projection.js +71 -0
- package/node_modules/@maka/runtime-host/dist/server/queued-mutation-executor.js +94 -0
- package/node_modules/@maka/runtime-host/dist/server/recall-coordinator.js +117 -0
- package/node_modules/@maka/runtime-host/dist/server/recall-material-fetch.js +92 -0
- 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 +803 -218
- package/node_modules/@maka/runtime-host/dist/server/runtime-policy-coordinator.js +74 -18
- package/node_modules/@maka/runtime-host/dist/server/runtime-resource-coordinator.js +24 -31
- package/node_modules/@maka/runtime-host/dist/server/runtime-resource-projection.js +15 -32
- package/node_modules/@maka/runtime-host/dist/server/safe-boundary-resume-policy.js +27 -0
- package/node_modules/@maka/runtime-host/dist/server/sandbox-boundary-graph-wake.js +3 -5
- 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 +166 -0
- package/node_modules/@maka/runtime-host/dist/server/session-catalog-coordinator.js +461 -62
- package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +484 -586
- package/node_modules/@maka/runtime-host/dist/server/session-effect-coordinator.js +13 -7
- package/node_modules/@maka/runtime-host/dist/server/session-retirement-coordinator.js +68 -16
- package/node_modules/@maka/runtime-host/dist/server/session-revision-coordinator.js +118 -189
- package/node_modules/@maka/runtime-host/dist/server/session-revision-graph-references.js +64 -85
- package/node_modules/@maka/runtime-host/dist/server/session-sidecar-purge.js +2 -1
- package/node_modules/@maka/runtime-host/dist/server/session-title.js +3 -16
- 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 +23 -488
- package/node_modules/@maka/runtime-host/dist/server/session-transcript-reader.js +407 -115
- package/node_modules/@maka/runtime-host/dist/server/session-turn-access-request-coordinator.js +33 -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 +120 -36
- package/node_modules/@maka/runtime-host/dist/server/web-fetch-tool.js +38 -2
- package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-action-gate.js +625 -39
- package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-coordinator.js +625 -132
- package/node_modules/@maka/runtime-host/dist/server/workhub-message-attachments.js +47 -0
- package/node_modules/@maka/runtime-host/dist/server/workhub-result-coordinator.js +203 -0
- package/node_modules/@maka/runtime-host/dist/server/workhub-result-runtime.js +293 -0
- package/node_modules/@maka/runtime-host/dist/server/workhub-target-execution-authority.js +161 -0
- package/node_modules/@maka/runtime-host/dist/transport/framed-byte-stream-transport.js +43 -6
- 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 +9 -1
- package/node_modules/@maka/storage/dist/agent-run-store-contract.js +956 -0
- package/node_modules/@maka/storage/dist/agent-run-store.js +264 -1058
- package/node_modules/@maka/storage/dist/artifact-attachments.js +66 -18
- package/node_modules/@maka/storage/dist/artifact-metadata-codec.js +28 -31
- package/node_modules/@maka/storage/dist/artifact-store.js +265 -787
- package/node_modules/@maka/storage/dist/artifact-stores.js +5 -12
- package/node_modules/@maka/storage/dist/artifact-writer-lock.js +1 -1
- package/node_modules/@maka/storage/dist/atomic-file-write.js +75 -0
- package/node_modules/@maka/storage/dist/claude-code-session-adapter.js +802 -321
- package/node_modules/@maka/storage/dist/claude-code-transcript-lineage.js +106 -77
- package/node_modules/@maka/storage/dist/codex-session-adapter.js +845 -315
- package/node_modules/@maka/storage/dist/config-transfer.js +14 -8
- 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 +10 -0
- package/node_modules/@maka/storage/dist/credential-store.js +15 -63
- package/node_modules/@maka/storage/dist/execution-persistence-provider.js +55 -0
- package/node_modules/@maka/storage/dist/execution-record-codec.js +1 -22
- package/node_modules/@maka/storage/dist/execution-stores.js +254 -81
- package/node_modules/@maka/storage/dist/external-session-importer.js +25 -3
- 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 +41 -10
- package/node_modules/@maka/storage/dist/graph-control-values.js +126 -0
- package/node_modules/@maka/storage/dist/interaction-store-contract.js +231 -0
- package/node_modules/@maka/storage/dist/interaction-store-public.js +1 -1
- package/node_modules/@maka/storage/dist/interaction-store.js +196 -166
- package/node_modules/@maka/storage/dist/legacy-run-header.js +327 -0
- package/node_modules/@maka/storage/dist/local-execution-persistence.js +80 -0
- package/node_modules/@maka/storage/dist/mcp-config-store.js +123 -30
- package/node_modules/@maka/storage/dist/message-admission-store.js +8 -3
- 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/offset-external-session-catalog.js +69 -0
- package/node_modules/@maka/storage/dist/opencode-session-adapter.js +278 -77
- 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 +60 -8
- package/node_modules/@maka/storage/dist/plan-authority.js +50 -0
- package/node_modules/@maka/storage/dist/plan-store.js +30 -0
- package/node_modules/@maka/storage/dist/process-lifetime-file-update-lock.js +0 -41
- package/node_modules/@maka/storage/dist/production-session-snapshot.js +761 -0
- package/node_modules/@maka/storage/dist/project-catalog.js +51 -74
- package/node_modules/@maka/storage/dist/quiescent-session-snapshot.js +1154 -0
- package/node_modules/@maka/storage/dist/recall-fold.js +65 -0
- package/node_modules/@maka/storage/dist/root-authority.js +4 -0
- package/node_modules/@maka/storage/dist/runtime-event-invariants.js +2 -2
- package/node_modules/@maka/storage/dist/runtime-event-persistence.js +9 -0
- package/node_modules/@maka/storage/dist/runtime-event-store-contract.js +19 -0
- package/node_modules/@maka/storage/dist/runtime-partial-values.js +118 -0
- package/node_modules/@maka/storage/dist/runtime-policy/connection-catalog-document.js +181 -112
- package/node_modules/@maka/storage/dist/runtime-policy/coordinator.js +552 -121
- package/node_modules/@maka/storage/dist/runtime-policy/credential-vault-document.js +4 -1
- package/node_modules/@maka/storage/dist/runtime-policy/document-io.js +22 -16
- package/node_modules/@maka/storage/dist/runtime-policy/legacy-custom-connection.js +65 -0
- 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 +157 -9
- package/node_modules/@maka/storage/dist/runtime-policy/policy-document.js +12 -4
- package/node_modules/@maka/storage/dist/runtime-policy-stores.js +7 -4
- package/node_modules/@maka/storage/dist/runtime-transcript-query.js +333 -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 +1042 -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-contract.js +61 -0
- package/node_modules/@maka/storage/dist/session-store-values.js +354 -0
- package/node_modules/@maka/storage/dist/session-store.js +129 -433
- 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 +297 -34
- package/node_modules/@maka/storage/dist/shell-run-authority.js +1 -0
- package/node_modules/@maka/storage/dist/shell-run-store.js +15 -0
- 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 +46 -2
- package/node_modules/@maka/storage/dist/sqlite-long-term-memory-store.js +86 -12
- package/node_modules/@maka/storage/dist/sqlite-runtime-schema.js +455 -1
- package/node_modules/@maka/storage/dist/sqlite-runtime-store.js +1461 -359
- package/node_modules/@maka/storage/dist/sqlite-session-metadata-schema.js +114 -5
- package/node_modules/@maka/storage/dist/sqlite-session-metadata-store.js +705 -1049
- package/node_modules/@maka/storage/dist/sqlite-usage-schema.js +280 -20
- package/node_modules/@maka/storage/dist/sqlite-usage-store.js +29 -6
- package/node_modules/@maka/storage/dist/sqlite-workflow-schema.js +7 -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 +5 -9
- package/node_modules/@maka/storage/dist/telemetry-file-schema.js +5 -3
- package/node_modules/@maka/storage/dist/tool-commit-validation.js +111 -0
- package/node_modules/@maka/storage/dist/tool-result-archive-evidence.js +138 -0
- package/node_modules/@maka/storage/dist/usage-screen.js +384 -0
- package/node_modules/@maka/storage/dist/usage-stores.js +30 -9
- package/node_modules/@maka/storage/dist/work-board-store.js +44 -5
- 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 +9 -5
- package/node_modules/@modelcontextprotocol/client/dist/index-BCtJi0p5.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-CEk3qkZM.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs +375 -60
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs +369 -61
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/src-D0qEN74R.cjs +7521 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-DDAAhLnO.mjs +7153 -0
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +8 -2
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts.map +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts.map +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +8 -2
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/auth--n_Yzytt.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/auth-4-zilcqg.cjs +2900 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/auth-CGP0BDVq.mjs +1679 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/auth-YUQV3RRv.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/index.cjs +175 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/index.mjs +3 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/internal.cjs +201 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/internal.mjs +3 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/package.json +85 -0
- package/node_modules/@modelcontextprotocol/client/package.json +4 -4
- package/node_modules/@openai/agents-core/dist/agent.js +8 -10
- package/node_modules/@openai/agents-core/dist/agent.mjs +9 -11
- package/node_modules/@openai/agents-core/dist/agentToolInput.js +2 -30
- package/node_modules/@openai/agents-core/dist/agentToolInput.mjs +1 -29
- package/node_modules/@openai/agents-core/dist/defaultModel.js +23 -3
- package/node_modules/@openai/agents-core/dist/defaultModel.mjs +21 -3
- package/node_modules/@openai/agents-core/dist/handoff.js +5 -5
- package/node_modules/@openai/agents-core/dist/handoff.mjs +5 -5
- package/node_modules/@openai/agents-core/dist/index.js +2 -1
- package/node_modules/@openai/agents-core/dist/index.mjs +1 -1
- package/node_modules/@openai/agents-core/dist/items.js +8 -1
- package/node_modules/@openai/agents-core/dist/items.mjs +8 -1
- package/node_modules/@openai/agents-core/dist/mcp.js +26 -16
- package/node_modules/@openai/agents-core/dist/mcp.mjs +27 -17
- package/node_modules/@openai/agents-core/dist/mcpServers.js +18 -15
- package/node_modules/@openai/agents-core/dist/mcpServers.mjs +18 -15
- package/node_modules/@openai/agents-core/dist/mcpShared.js +12 -0
- package/node_modules/@openai/agents-core/dist/mcpShared.mjs +12 -0
- package/node_modules/@openai/agents-core/dist/memory/session.js +8 -0
- package/node_modules/@openai/agents-core/dist/memory/session.mjs +7 -0
- package/node_modules/@openai/agents-core/dist/metadata.js +2 -2
- package/node_modules/@openai/agents-core/dist/metadata.mjs +2 -2
- package/node_modules/@openai/agents-core/dist/run.js +550 -248
- package/node_modules/@openai/agents-core/dist/run.mjs +555 -253
- package/node_modules/@openai/agents-core/dist/runState.js +747 -420
- package/node_modules/@openai/agents-core/dist/runState.mjs +742 -421
- package/node_modules/@openai/agents-core/dist/runStateLegacyCompaction.js +440 -0
- package/node_modules/@openai/agents-core/dist/runStateLegacyCompaction.mjs +404 -0
- package/node_modules/@openai/agents-core/dist/runner/blockedOutputPersistence.js +274 -78
- package/node_modules/@openai/agents-core/dist/runner/blockedOutputPersistence.mjs +268 -77
- package/node_modules/@openai/agents-core/dist/runner/conversation.js +22 -3
- package/node_modules/@openai/agents-core/dist/runner/conversation.mjs +23 -4
- package/node_modules/@openai/agents-core/dist/runner/guardrails.js +80 -15
- package/node_modules/@openai/agents-core/dist/runner/guardrails.mjs +78 -15
- package/node_modules/@openai/agents-core/dist/runner/items.js +35 -2
- package/node_modules/@openai/agents-core/dist/runner/items.mjs +35 -2
- package/node_modules/@openai/agents-core/dist/runner/modelOutputs.js +47 -18
- package/node_modules/@openai/agents-core/dist/runner/modelOutputs.mjs +50 -21
- package/node_modules/@openai/agents-core/dist/runner/modelPreparation.js +28 -0
- package/node_modules/@openai/agents-core/dist/runner/modelPreparation.mjs +28 -1
- package/node_modules/@openai/agents-core/dist/runner/modelRetry.js +322 -217
- package/node_modules/@openai/agents-core/dist/runner/modelRetry.mjs +322 -217
- package/node_modules/@openai/agents-core/dist/runner/modelSettings.js +15 -22
- package/node_modules/@openai/agents-core/dist/runner/modelSettings.mjs +15 -22
- package/node_modules/@openai/agents-core/dist/runner/outputGuardrailBlockedMessage.js +32 -0
- package/node_modules/@openai/agents-core/dist/runner/outputGuardrailBlockedMessage.mjs +28 -0
- package/node_modules/@openai/agents-core/dist/runner/runLoop.js +53 -8
- package/node_modules/@openai/agents-core/dist/runner/runLoop.mjs +53 -8
- package/node_modules/@openai/agents-core/dist/runner/sessionItems.js +119 -0
- package/node_modules/@openai/agents-core/dist/runner/sessionItems.mjs +114 -0
- package/node_modules/@openai/agents-core/dist/runner/sessionPersistence.js +408 -157
- package/node_modules/@openai/agents-core/dist/runner/sessionPersistence.mjs +388 -142
- package/node_modules/@openai/agents-core/dist/runner/toolExecution.js +42 -3
- package/node_modules/@openai/agents-core/dist/runner/toolExecution.mjs +42 -3
- package/node_modules/@openai/agents-core/dist/runner/toolSearch.js +1 -0
- package/node_modules/@openai/agents-core/dist/runner/toolSearch.mjs +1 -1
- package/node_modules/@openai/agents-core/dist/runner/toolSearchAttribution.js +19 -0
- package/node_modules/@openai/agents-core/dist/runner/toolSearchAttribution.mjs +15 -0
- package/node_modules/@openai/agents-core/dist/runner/turnResolution.js +65 -13
- package/node_modules/@openai/agents-core/dist/runner/turnResolution.mjs +65 -13
- package/node_modules/@openai/agents-core/dist/runner/usageTracking.js +69 -0
- package/node_modules/@openai/agents-core/dist/runner/usageTracking.mjs +65 -0
- package/node_modules/@openai/agents-core/dist/sandbox/manifest.js +4 -0
- package/node_modules/@openai/agents-core/dist/sandbox/manifest.mjs +4 -0
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/docker.js +317 -127
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/docker.mjs +319 -129
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/localWorkspace.js +1 -1
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/localWorkspace.mjs +1 -1
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/pty.js +27 -13
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/pty.mjs +27 -13
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFileWorker.js +196 -0
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFileWorker.mjs +193 -0
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFiles.js +215 -0
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFiles.mjs +211 -0
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/unixLocal.js +193 -83
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/unixLocal.mjs +196 -86
- package/node_modules/@openai/agents-core/dist/sandbox/session.js +2 -1
- package/node_modules/@openai/agents-core/dist/sandbox/session.mjs +2 -1
- package/node_modules/@openai/agents-core/dist/tracing/processor.js +21 -7
- package/node_modules/@openai/agents-core/dist/tracing/processor.mjs +21 -7
- package/node_modules/@openai/agents-core/dist/tracing/spans.js +40 -6
- package/node_modules/@openai/agents-core/dist/tracing/spans.mjs +7 -3
- package/node_modules/@openai/agents-core/dist/types/protocol.js +6 -0
- package/node_modules/@openai/agents-core/dist/types/protocol.mjs +6 -0
- package/node_modules/@openai/agents-core/dist/usage.js +13 -4
- package/node_modules/@openai/agents-core/dist/usage.mjs +13 -4
- package/node_modules/@openai/agents-core/dist/utils/applyDiff.js +24 -7
- package/node_modules/@openai/agents-core/dist/utils/applyDiff.mjs +24 -7
- package/node_modules/@openai/agents-core/dist/utils/internal.js +3 -1
- package/node_modules/@openai/agents-core/dist/utils/internal.mjs +1 -1
- package/node_modules/@openai/agents-core/dist/utils/zodCompat.js +29 -0
- package/node_modules/@openai/agents-core/dist/utils/zodCompat.mjs +28 -0
- package/node_modules/@openai/agents-core/dist/utils/zodJsonSchemaCompat.js +3 -31
- package/node_modules/@openai/agents-core/dist/utils/zodJsonSchemaCompat.mjs +1 -29
- package/node_modules/@openai/agents-core/package.json +1 -1
- 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 +2 -2
- package/node_modules/@types/node/package.json +3 -18
- package/node_modules/ai/CHANGELOG.md +611 -0
- package/node_modules/ai/README.md +6 -6
- package/node_modules/ai/dist/index.js +7872 -3383
- package/node_modules/ai/dist/internal/index.js +837 -465
- package/node_modules/ai/docs/00-introduction/index.mdx +1 -1
- package/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +15 -4
- package/node_modules/ai/docs/02-foundations/03-prompts.mdx +1 -1
- package/node_modules/ai/docs/02-foundations/04-tools.mdx +2 -2
- package/node_modules/ai/docs/02-foundations/06-provider-options.mdx +11 -11
- package/node_modules/ai/docs/02-getting-started/00-choosing-a-provider.mdx +4 -4
- package/node_modules/ai/docs/02-getting-started/02-nextjs-app-router.mdx +3 -3
- package/node_modules/ai/docs/02-getting-started/03-nextjs-pages-router.mdx +4 -4
- package/node_modules/ai/docs/02-getting-started/04-svelte.mdx +7 -7
- package/node_modules/ai/docs/02-getting-started/05-nuxt.mdx +8 -8
- package/node_modules/ai/docs/02-getting-started/06-nodejs.mdx +3 -3
- package/node_modules/ai/docs/02-getting-started/07-expo.mdx +10 -3
- package/node_modules/ai/docs/02-getting-started/08-tanstack-start.mdx +3 -3
- package/node_modules/ai/docs/02-getting-started/09-coding-agents.mdx +1 -1
- package/node_modules/ai/docs/03-agents/02-building-agents.mdx +2 -2
- package/node_modules/ai/docs/03-agents/03-workflows.mdx +2 -2
- package/node_modules/ai/docs/03-agents/04-loop-control.mdx +6 -4
- package/node_modules/ai/docs/03-agents/05-configuring-call-options.mdx +4 -2
- package/node_modules/ai/docs/03-agents/06-memory.mdx +2 -2
- package/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +5 -4
- package/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +35 -7
- package/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +125 -28
- package/node_modules/ai/docs/03-agents/08-terminal-ui.mdx +14 -10
- package/node_modules/ai/docs/03-ai-sdk-core/05-generating-text.mdx +2 -2
- package/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +15 -3
- package/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +14 -6
- package/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +95 -1
- package/node_modules/ai/docs/03-ai-sdk-core/17-mcp-apps.mdx +2 -2
- package/node_modules/ai/docs/03-ai-sdk-core/18-code-mode.mdx +50 -0
- package/node_modules/ai/docs/03-ai-sdk-core/19-tool-search.mdx +82 -0
- package/node_modules/ai/docs/03-ai-sdk-core/20-prompt-engineering.mdx +1 -1
- package/node_modules/ai/docs/03-ai-sdk-core/26-reasoning.mdx +15 -14
- package/node_modules/ai/docs/03-ai-sdk-core/31-reranking.mdx +12 -10
- package/node_modules/ai/docs/03-ai-sdk-core/32-evaluation.mdx +287 -0
- package/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +79 -14
- package/node_modules/ai/docs/03-ai-sdk-core/36-realtime.mdx +41 -18
- package/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +37 -35
- package/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +8 -23
- package/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +26 -1
- package/node_modules/ai/docs/03-ai-sdk-core/40-middleware.mdx +92 -7
- package/node_modules/ai/docs/03-ai-sdk-core/41-skill-uploads.mdx +1 -1
- package/node_modules/ai/docs/03-ai-sdk-core/42-batch.mdx +371 -0
- package/node_modules/ai/docs/03-ai-sdk-core/45-provider-management.mdx +31 -21
- package/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +94 -2
- package/node_modules/ai/docs/03-ai-sdk-core/55-testing.mdx +75 -0
- package/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +89 -11
- package/node_modules/ai/docs/03-ai-sdk-core/65-devtools.mdx +3 -3
- package/node_modules/ai/docs/03-ai-sdk-core/65-lifecycle-callbacks.mdx +132 -7
- package/node_modules/ai/docs/03-ai-sdk-core/index.mdx +11 -0
- package/node_modules/ai/docs/03-ai-sdk-harnesses/01-overview.mdx +3 -2
- package/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +324 -97
- package/node_modules/ai/docs/03-ai-sdk-harnesses/03-tools.mdx +47 -22
- package/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +6 -6
- package/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +15 -13
- package/node_modules/ai/docs/03-ai-sdk-harnesses/06-workflow-utilities.mdx +43 -9
- package/node_modules/ai/docs/03-ai-sdk-harnesses/07-ui.mdx +33 -30
- package/node_modules/ai/docs/03-ai-sdk-harnesses/08-terminal-ui.mdx +8 -6
- package/node_modules/ai/docs/04-ai-sdk-ui/01-overview.mdx +1 -1
- package/node_modules/ai/docs/04-ai-sdk-ui/02-chatbot.mdx +47 -21
- package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-message-persistence.mdx +46 -3
- package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-resume-streams.mdx +11 -4
- package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +39 -2
- package/node_modules/ai/docs/04-ai-sdk-ui/05-completion.mdx +1 -1
- package/node_modules/ai/docs/04-ai-sdk-ui/08-object-generation.mdx +4 -1
- package/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +11 -6
- package/node_modules/ai/docs/04-ai-sdk-ui/21-error-handling.mdx +28 -2
- package/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +7 -3
- package/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +6 -2
- package/node_modules/ai/docs/05-ai-sdk-rsc/02-streaming-react-components.mdx +5 -5
- package/node_modules/ai/docs/05-ai-sdk-rsc/04-multistep-interfaces.mdx +2 -2
- package/node_modules/ai/docs/05-ai-sdk-rsc/06-loading-state.mdx +1 -1
- package/node_modules/ai/docs/05-ai-sdk-rsc/10-migrating-to-ui.mdx +3 -3
- package/node_modules/ai/docs/06-advanced/02-stopping-streams.mdx +8 -0
- package/node_modules/ai/docs/06-advanced/04-caching.mdx +9 -1
- package/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +54 -3
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +28 -5
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +66 -15
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +31 -5
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +38 -8
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +24 -10
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +2 -1
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/11-transcribe.mdx +1 -1
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/12-generate-speech.mdx +3 -3
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-evaluate.mdx +74 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +37 -4
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +5 -3
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/20-start-batch.mdx +154 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/20-tool.mdx +7 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/21-get-batch-status.mdx +133 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/22-dynamic-tool.mdx +7 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/22-get-batch-results.mdx +109 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/23-cancel-batch.mdx +96 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/23-tool-search.mdx +76 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/24-list-batches.mdx +121 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +27 -1
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +63 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/32-validate-ui-messages.mdx +30 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/33-safe-validate-ui-messages.mdx +12 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/40-provider-registry.mdx +19 -1
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/42-custom-provider.mdx +22 -4
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/60-wrap-language-model.mdx +1 -1
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/61-wrap-image-model.mdx +17 -2
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +5 -3
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +31 -0
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +2 -2
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/03-use-object.mdx +4 -1
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/05-use-realtime.mdx +364 -48
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +14 -2
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +45 -6
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +6 -1
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/50-direct-chat-transport.mdx +3 -3
- package/node_modules/ai/docs/07-reference/03-ai-sdk-rsc/01-stream-ui.mdx +2 -1
- package/node_modules/ai/docs/07-reference/03-ai-sdk-rsc/02-create-ai.mdx +1 -1
- package/node_modules/ai/docs/07-reference/03-ai-sdk-rsc/03-create-streamable-ui.mdx +1 -1
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +124 -43
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +29 -15
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/03-generate-video.mdx +157 -0
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +6 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-api-call-error.mdx +4 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-evaluation-unsupported-question-type-error.mdx +31 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +6 -1
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +7 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-such-model-error.mdx +4 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-error.mdx +4 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-stream-provider-error.mdx +52 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-tool-choice-violation-error.mdx +38 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-ui-message-stream-error.mdx +6 -2
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +131 -34
- package/node_modules/ai/docs/07-reference/06-ai-sdk-tui/01-run-agent-tui.mdx +13 -9
- package/node_modules/ai/docs/08-migration-guides/29-migration-guide-4-0.mdx +5 -5
- package/node_modules/ai/docs/08-migration-guides/37-migration-guide-3-3.mdx +1 -1
- package/node_modules/ai/docs/09-troubleshooting/11-use-chat-custom-request-options.mdx +3 -3
- package/node_modules/ai/docs/09-troubleshooting/13-repeated-assistant-messages.mdx +2 -2
- package/node_modules/ai/docs/09-troubleshooting/17-use-chat-stale-body-data.mdx +1 -1
- package/node_modules/ai/docs/09-troubleshooting/70-high-memory-usage-with-images.mdx +2 -2
- package/node_modules/ai/package.json +19 -9
- 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/image-dimensions/cli.js +18 -3
- package/node_modules/image-dimensions/index.js +7 -5
- package/node_modules/image-dimensions/package.json +4 -1
- package/node_modules/image-dimensions/readme.md +2 -1
- package/node_modules/image-dimensions/types/avif.js +2 -24
- package/node_modules/image-dimensions/types/heic.js +2 -24
- package/node_modules/image-dimensions/types/jpeg.js +28 -7
- package/node_modules/image-dimensions/types/png.js +13 -2
- package/node_modules/image-dimensions/types/webp.js +20 -36
- package/node_modules/image-dimensions/utilities.js +184 -60
- package/node_modules/ip-address/README.md +145 -135
- package/node_modules/ip-address/dist/common.js +48 -0
- package/node_modules/ip-address/dist/ipv4.js +117 -11
- package/node_modules/ip-address/dist/ipv6.js +162 -48
- package/node_modules/ip-address/dist/v4/constants.js +40 -1
- package/node_modules/ip-address/dist/v6/constants.js +47 -1
- package/node_modules/ip-address/package.json +1 -1
- package/node_modules/marked/README.md +1 -0
- package/node_modules/marked/lib/marked.esm.js +30 -29
- package/node_modules/marked/lib/marked.umd.js +30 -29
- package/node_modules/marked/man/marked.1 +1 -1
- package/node_modules/marked/package.json +11 -11
- 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/socks/build/common/helpers.js +5 -6
- package/node_modules/socks/build/common/util.js +2 -2
- package/node_modules/socks/package.json +7 -7
- 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 +355 -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 +1933 -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 +620 -0
- package/node_modules/systeminformation/lib/network.js +2014 -0
- package/node_modules/systeminformation/lib/osinfo.js +1304 -0
- package/node_modules/systeminformation/lib/printer.js +209 -0
- package/node_modules/systeminformation/lib/processes.js +1496 -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 +2840 -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/README.md +10 -1
- package/node_modules/undici/docs/docs/api/Agent.md +8 -8
- package/node_modules/undici/docs/docs/api/Client.md +4 -0
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
- package/node_modules/undici/docs/docs/api/Dispatcher.md +9 -0
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/undici/docs/docs/api/Errors.md +25 -0
- package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/undici/docs/docs/api/Fetch.md +10 -0
- package/node_modules/undici/docs/docs/api/Interceptors.md +8 -3
- package/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- package/node_modules/undici/docs/docs/index.md +10 -1
- package/node_modules/undici/lib/api/readable.js +1 -2
- package/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
- package/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/undici/lib/core/symbols.js +2 -0
- package/node_modules/undici/lib/core/util.js +0 -39
- package/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
- package/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
- package/node_modules/undici/lib/dispatcher/client-h2.js +94 -10
- package/node_modules/undici/lib/dispatcher/client.js +9 -3
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
- package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +31 -9
- package/node_modules/undici/lib/dispatcher/pool-base.js +63 -2
- package/node_modules/undici/lib/dispatcher/pool.js +90 -7
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +33 -3
- package/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
- package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
- package/node_modules/undici/lib/handler/cache-handler.js +29 -5
- package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/undici/lib/handler/deduplication-handler.js +29 -10
- package/node_modules/undici/lib/handler/redirect-handler.js +26 -4
- package/node_modules/undici/lib/handler/retry-handler.js +215 -38
- package/node_modules/undici/lib/interceptor/cache.js +69 -13
- package/node_modules/undici/lib/interceptor/decompress.js +319 -50
- package/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
- package/node_modules/undici/lib/interceptor/dns.js +7 -0
- package/node_modules/undici/lib/interceptor/dump.js +10 -23
- 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/util/cache.js +45 -3
- package/node_modules/undici/lib/web/cache/cache.js +17 -8
- package/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
- package/node_modules/undici/lib/web/cookies/index.js +19 -7
- package/node_modules/undici/lib/web/cookies/parse.js +150 -147
- package/node_modules/undici/lib/web/cookies/util.js +3 -1
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
- package/node_modules/undici/lib/web/eventsource/eventsource.js +38 -4
- package/node_modules/undici/lib/web/fetch/body.js +22 -15
- package/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/node_modules/undici/lib/web/fetch/formdata.js +30 -36
- package/node_modules/undici/lib/web/fetch/headers.js +34 -31
- package/node_modules/undici/lib/web/fetch/index.js +52 -25
- package/node_modules/undici/lib/web/fetch/request.js +76 -82
- package/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/undici/lib/web/fetch/util.js +13 -8
- package/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/undici/lib/web/webidl/index.js +5 -17
- package/node_modules/undici/lib/web/websocket/connection.js +34 -13
- package/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/undici/lib/web/websocket/receiver.js +2 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +27 -14
- package/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- package/node_modules/undici/package.json +3 -3
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +19 -18
- package/node_modules/yaml/browser/dist/nodes/Alias.js +25 -23
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +19 -18
- package/node_modules/yaml/dist/nodes/Alias.js +25 -23
- package/node_modules/yaml/package.json +1 -1
- package/node_modules/zod/README.md +29 -2
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +21 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +20 -8
- package/node_modules/zod/v3/ZodError.cjs +41 -12
- package/node_modules/zod/v3/ZodError.js +22 -12
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +26 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +21 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +62 -34
- package/node_modules/zod/v4/classic/errors.js +43 -34
- package/node_modules/zod/v4/classic/external.cjs +51 -27
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +376 -75
- package/node_modules/zod/v4/classic/from-json-schema.js +357 -75
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +21 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +30 -22
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/parse.cjs +23 -1
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +591 -426
- package/node_modules/zod/v4/classic/schemas.js +564 -424
- package/node_modules/zod/v4/core/api.cjs +66 -24
- package/node_modules/zod/v4/core/api.js +44 -24
- package/node_modules/zod/v4/core/checks.cjs +88 -128
- package/node_modules/zod/v4/core/checks.js +68 -127
- package/node_modules/zod/v4/core/compile.cjs +1908 -0
- package/node_modules/zod/v4/core/compile.js +1858 -0
- package/node_modules/zod/v4/core/core.cjs +101 -19
- package/node_modules/zod/v4/core/core.js +83 -20
- package/node_modules/zod/v4/core/doc.cjs +31 -9
- package/node_modules/zod/v4/core/doc.js +12 -9
- package/node_modules/zod/v4/core/errors.cjs +126 -25
- package/node_modules/zod/v4/core/errors.js +107 -25
- package/node_modules/zod/v4/core/index.cjs +24 -1
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
- package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +441 -156
- package/node_modules/zod/v4/core/json-schema-processors.js +400 -158
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/memoizer.cjs +356 -0
- package/node_modules/zod/v4/core/memoizer.js +307 -0
- package/node_modules/zod/v4/core/parse.cjs +148 -46
- package/node_modules/zod/v4/core/parse.js +127 -45
- package/node_modules/zod/v4/core/regexes.cjs +54 -17
- package/node_modules/zod/v4/core/regexes.js +32 -15
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +785 -386
- package/node_modules/zod/v4/core/schemas.js +753 -386
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +269 -45
- package/node_modules/zod/v4/core/to-json-schema.js +247 -44
- package/node_modules/zod/v4/core/util.cjs +372 -157
- package/node_modules/zod/v4/core/util.js +341 -156
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +34 -5
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +5 -0
- package/node_modules/zod/v4/locales/ar.js +5 -0
- package/node_modules/zod/v4/locales/az.cjs +5 -0
- package/node_modules/zod/v4/locales/az.js +5 -0
- package/node_modules/zod/v4/locales/be.cjs +12 -0
- package/node_modules/zod/v4/locales/be.js +12 -0
- package/node_modules/zod/v4/locales/bg.cjs +5 -0
- package/node_modules/zod/v4/locales/bg.js +5 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +5 -0
- package/node_modules/zod/v4/locales/ca.js +5 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +5 -0
- package/node_modules/zod/v4/locales/cs.js +5 -0
- package/node_modules/zod/v4/locales/da.cjs +7 -2
- package/node_modules/zod/v4/locales/da.js +7 -2
- package/node_modules/zod/v4/locales/de.cjs +5 -0
- package/node_modules/zod/v4/locales/de.js +5 -0
- package/node_modules/zod/v4/locales/el.cjs +3 -0
- package/node_modules/zod/v4/locales/el.js +3 -0
- package/node_modules/zod/v4/locales/en.cjs +16 -4
- package/node_modules/zod/v4/locales/en.js +16 -4
- package/node_modules/zod/v4/locales/eo.cjs +5 -0
- package/node_modules/zod/v4/locales/eo.js +5 -0
- package/node_modules/zod/v4/locales/es.cjs +4 -0
- package/node_modules/zod/v4/locales/es.js +4 -0
- package/node_modules/zod/v4/locales/fa.cjs +5 -0
- package/node_modules/zod/v4/locales/fa.js +5 -0
- package/node_modules/zod/v4/locales/fi.cjs +5 -0
- package/node_modules/zod/v4/locales/fi.js +5 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +5 -0
- package/node_modules/zod/v4/locales/fr-CA.js +5 -0
- package/node_modules/zod/v4/locales/fr.cjs +18 -14
- package/node_modules/zod/v4/locales/fr.js +18 -14
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +7 -0
- package/node_modules/zod/v4/locales/he.js +7 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +4 -0
- package/node_modules/zod/v4/locales/hr.js +4 -0
- package/node_modules/zod/v4/locales/hu.cjs +5 -0
- package/node_modules/zod/v4/locales/hu.js +5 -0
- package/node_modules/zod/v4/locales/hy.cjs +11 -0
- package/node_modules/zod/v4/locales/hy.js +11 -0
- package/node_modules/zod/v4/locales/id.cjs +5 -0
- package/node_modules/zod/v4/locales/id.js +5 -0
- package/node_modules/zod/v4/locales/index.cjs +43 -2
- package/node_modules/zod/v4/locales/index.js +11 -0
- package/node_modules/zod/v4/locales/is.cjs +5 -0
- package/node_modules/zod/v4/locales/is.js +5 -0
- package/node_modules/zod/v4/locales/it.cjs +5 -0
- package/node_modules/zod/v4/locales/it.js +5 -0
- package/node_modules/zod/v4/locales/ja.cjs +5 -0
- package/node_modules/zod/v4/locales/ja.js +5 -0
- package/node_modules/zod/v4/locales/ka.cjs +5 -0
- package/node_modules/zod/v4/locales/ka.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +5 -0
- package/node_modules/zod/v4/locales/km.js +5 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +5 -0
- package/node_modules/zod/v4/locales/ko.js +5 -0
- package/node_modules/zod/v4/locales/lt.cjs +4 -0
- package/node_modules/zod/v4/locales/lt.js +4 -0
- package/node_modules/zod/v4/locales/mk.cjs +5 -0
- package/node_modules/zod/v4/locales/mk.js +5 -0
- package/node_modules/zod/v4/locales/ms.cjs +5 -0
- package/node_modules/zod/v4/locales/ms.js +5 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +5 -0
- package/node_modules/zod/v4/locales/nl.js +5 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +7 -2
- package/node_modules/zod/v4/locales/no.js +7 -2
- package/node_modules/zod/v4/locales/ota.cjs +5 -0
- package/node_modules/zod/v4/locales/ota.js +5 -0
- package/node_modules/zod/v4/locales/pl.cjs +5 -0
- package/node_modules/zod/v4/locales/pl.js +5 -0
- package/node_modules/zod/v4/locales/ps.cjs +5 -0
- package/node_modules/zod/v4/locales/ps.js +5 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +89 -55
- package/node_modules/zod/v4/locales/pt.js +89 -55
- package/node_modules/zod/v4/locales/ro.cjs +3 -0
- package/node_modules/zod/v4/locales/ro.js +3 -0
- package/node_modules/zod/v4/locales/ru.cjs +12 -0
- package/node_modules/zod/v4/locales/ru.js +12 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +5 -0
- package/node_modules/zod/v4/locales/sl.js +5 -0
- package/node_modules/zod/v4/locales/sv.cjs +7 -2
- package/node_modules/zod/v4/locales/sv.js +7 -2
- package/node_modules/zod/v4/locales/ta.cjs +5 -0
- package/node_modules/zod/v4/locales/ta.js +5 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +5 -0
- package/node_modules/zod/v4/locales/th.js +5 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +5 -0
- package/node_modules/zod/v4/locales/tr.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +5 -0
- package/node_modules/zod/v4/locales/uk.js +5 -0
- package/node_modules/zod/v4/locales/ur.cjs +5 -0
- package/node_modules/zod/v4/locales/ur.js +5 -0
- package/node_modules/zod/v4/locales/uz.cjs +3 -0
- package/node_modules/zod/v4/locales/uz.js +3 -0
- package/node_modules/zod/v4/locales/vi.cjs +5 -0
- package/node_modules/zod/v4/locales/vi.js +5 -0
- package/node_modules/zod/v4/locales/yo.cjs +5 -0
- package/node_modules/zod/v4/locales/yo.js +5 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-CN.js +5 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-TW.js +5 -0
- package/node_modules/zod/v4/mini/checks.cjs +21 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +33 -1
- package/node_modules/zod/v4/mini/external.js +3 -1
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +22 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +117 -53
- package/node_modules/zod/v4/mini/schemas.js +92 -51
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/package.json +4 -4
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1224
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/LICENSE +0 -13
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/README.md +0 -1
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/dist/index.js +0 -426
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/package.json +0 -63
- 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/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-arm64/darwin-modifiers.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/src/darwin-modifiers.c +0 -70
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/src/win32-console-mode.c +0 -119
- 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/deep-research-client-progress.js +0 -132
- package/node_modules/@maka/core/dist/deep-research-run.js +0 -625
- package/node_modules/@maka/core/dist/deep-research.js +0 -227
- package/node_modules/@maka/core/dist/foreign-session.js +0 -596
- package/node_modules/@maka/core/dist/task-ledger.js +0 -797
- package/node_modules/@maka/core/dist/thread-search.js +0 -498
- package/node_modules/@maka/eval/dist/maka-runtime-policy.js +0 -42
- 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/deep-research-tools.js +0 -741
- package/node_modules/@maka/runtime/dist/history-tools.js +0 -429
- package/node_modules/@maka/runtime/dist/provider-runtime-policy.js +0 -43
- 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/deep-research.js +0 -233
- package/node_modules/@maka/runtime-host/dist/protocol/task-ledger.js +0 -321
- package/node_modules/@maka/runtime-host/dist/server/deep-research-coordinator.js +0 -116
- package/node_modules/@maka/runtime-host/dist/server/task-ledger-coordinator.js +0 -154
- package/node_modules/@maka/storage/dist/artifact-storage-layout.js +0 -26
- package/node_modules/@maka/storage/dist/deep-research-authority.js +0 -129
- package/node_modules/@maka/storage/dist/deep-research-store.js +0 -343
- package/node_modules/@maka/storage/dist/foreign-session-store.js +0 -641
- 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/@modelcontextprotocol/client/dist/index-CHhhk6PQ.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index-D4xIIEF6.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs +0 -7063
- package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs +0 -7431
- package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs +0 -1678
- package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs +0 -2899
- package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +0 -175
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +0 -201
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/package.json +0 -85
- package/node_modules/intl-messageformat/intl-messageformat.iife.js +0 -2807
- package/node_modules/intl-messageformat/package.json +0 -40
- package/node_modules/socks/.eslintrc.cjs +0 -11
- /package/node_modules/@maka/{storage/dist/artifact-metadata-repository.js → core/dist/client-plugin-bridge.js} +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/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/LICENSE +0 -0
- /package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/README.md +0 -0
- /package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/dist/internal.d.cts.map +0 -0
- /package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/dist/internal.d.mts.map +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
|
@@ -8,7 +8,7 @@ function combineHeaders(...headers) {
|
|
|
8
8
|
return headers.reduce(
|
|
9
9
|
(combinedHeaders, currentHeaders) => ({
|
|
10
10
|
...combinedHeaders,
|
|
11
|
-
...currentHeaders
|
|
11
|
+
...currentHeaders
|
|
12
12
|
}),
|
|
13
13
|
{}
|
|
14
14
|
);
|
|
@@ -24,11 +24,11 @@ function removeUndefinedEntries(record) {
|
|
|
24
24
|
// src/delay.ts
|
|
25
25
|
async function delay(delayInMs, options) {
|
|
26
26
|
if (delayInMs == null) {
|
|
27
|
-
return
|
|
27
|
+
return;
|
|
28
28
|
}
|
|
29
|
-
const signal = options
|
|
29
|
+
const signal = options?.abortSignal;
|
|
30
30
|
return new Promise((resolve2, reject) => {
|
|
31
|
-
if (signal
|
|
31
|
+
if (signal?.aborted) {
|
|
32
32
|
reject(createAbortError());
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
@@ -38,13 +38,13 @@ async function delay(delayInMs, options) {
|
|
|
38
38
|
}, delayInMs);
|
|
39
39
|
const cleanup = () => {
|
|
40
40
|
clearTimeout(timeoutId);
|
|
41
|
-
signal
|
|
41
|
+
signal?.removeEventListener("abort", onAbort);
|
|
42
42
|
};
|
|
43
43
|
const onAbort = () => {
|
|
44
44
|
cleanup();
|
|
45
45
|
reject(createAbortError());
|
|
46
46
|
};
|
|
47
|
-
signal
|
|
47
|
+
signal?.addEventListener("abort", onAbort);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
function createAbortError() {
|
|
@@ -53,7 +53,7 @@ function createAbortError() {
|
|
|
53
53
|
|
|
54
54
|
// src/websocket.ts
|
|
55
55
|
function getWebSocketConstructor(webSocket) {
|
|
56
|
-
const WebSocketConstructor = webSocket
|
|
56
|
+
const WebSocketConstructor = webSocket ?? globalThis.WebSocket;
|
|
57
57
|
if (WebSocketConstructor == null) {
|
|
58
58
|
throw new Error("No WebSocket implementation available.");
|
|
59
59
|
}
|
|
@@ -86,9 +86,8 @@ async function waitForWebSocketBufferDrain(socket, {
|
|
|
86
86
|
pollIntervalMs = 20,
|
|
87
87
|
abortSignal
|
|
88
88
|
} = {}) {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
if ((abortSignal == null ? void 0 : abortSignal.aborted) === true) {
|
|
89
|
+
while (socket.readyState === WEBSOCKET_OPEN_STATE && (socket.bufferedAmount ?? 0) > highWaterMark) {
|
|
90
|
+
if (abortSignal?.aborted === true) {
|
|
92
91
|
return;
|
|
93
92
|
}
|
|
94
93
|
await delay(pollIntervalMs);
|
|
@@ -109,43 +108,39 @@ function connectToWebSocket({
|
|
|
109
108
|
onClose,
|
|
110
109
|
onAbort
|
|
111
110
|
}) {
|
|
112
|
-
var _a3;
|
|
113
111
|
let socket;
|
|
114
112
|
let abortListener;
|
|
115
113
|
const close = (code) => {
|
|
116
114
|
if (abortListener != null) {
|
|
117
|
-
abortSignal
|
|
115
|
+
abortSignal?.removeEventListener("abort", abortListener);
|
|
118
116
|
abortListener = void 0;
|
|
119
117
|
}
|
|
120
118
|
try {
|
|
121
|
-
socket
|
|
122
|
-
} catch
|
|
119
|
+
socket?.close(code);
|
|
120
|
+
} catch {
|
|
123
121
|
}
|
|
124
122
|
};
|
|
125
|
-
if (abortSignal
|
|
126
|
-
onAbort
|
|
123
|
+
if (abortSignal?.aborted) {
|
|
124
|
+
onAbort?.(abortSignal.reason ?? new Error("Aborted"));
|
|
127
125
|
return { socket: void 0, close };
|
|
128
126
|
}
|
|
129
127
|
try {
|
|
130
128
|
const WebSocketConstructor = getWebSocketConstructor(webSocket);
|
|
131
129
|
socket = new WebSocketConstructor(url, protocols, {
|
|
132
|
-
headers: removeUndefinedEntries(headers
|
|
130
|
+
headers: removeUndefinedEntries(headers ?? {})
|
|
133
131
|
});
|
|
134
132
|
} catch (error) {
|
|
135
133
|
onProcessingError(error);
|
|
136
134
|
return { socket: void 0, close };
|
|
137
135
|
}
|
|
138
136
|
if (abortSignal != null && onAbort != null) {
|
|
139
|
-
abortListener = () =>
|
|
140
|
-
var _a4;
|
|
141
|
-
return onAbort((_a4 = abortSignal.reason) != null ? _a4 : new Error("Aborted"));
|
|
142
|
-
};
|
|
137
|
+
abortListener = () => onAbort(abortSignal.reason ?? new Error("Aborted"));
|
|
143
138
|
abortSignal.addEventListener("abort", abortListener, { once: true });
|
|
144
139
|
}
|
|
145
140
|
const openedSocket = socket;
|
|
146
141
|
socket.onopen = () => {
|
|
147
142
|
try {
|
|
148
|
-
onOpen
|
|
143
|
+
onOpen?.(openedSocket);
|
|
149
144
|
} catch (error) {
|
|
150
145
|
onProcessingError(error);
|
|
151
146
|
}
|
|
@@ -155,13 +150,13 @@ function connectToWebSocket({
|
|
|
155
150
|
tail = tail.then(() => readWebSocketMessageText(event.data)).then((text) => onMessageText(text)).catch(onProcessingError);
|
|
156
151
|
};
|
|
157
152
|
socket.onerror = () => {
|
|
158
|
-
tail = tail.then(() => onSocketError
|
|
153
|
+
tail = tail.then(() => onSocketError?.()).catch(onProcessingError);
|
|
159
154
|
};
|
|
160
155
|
socket.onclose = (event) => {
|
|
161
156
|
const closeEvent = event;
|
|
162
|
-
const code = typeof
|
|
163
|
-
const reason = typeof
|
|
164
|
-
tail = tail.then(() => onClose
|
|
157
|
+
const code = typeof closeEvent?.code === "number" ? closeEvent.code : void 0;
|
|
158
|
+
const reason = typeof closeEvent?.reason === "string" ? closeEvent.reason : void 0;
|
|
159
|
+
tail = tail.then(() => onClose?.({ code, reason })).catch(onProcessingError);
|
|
165
160
|
};
|
|
166
161
|
return { socket, close };
|
|
167
162
|
}
|
|
@@ -197,13 +192,16 @@ function convertAsyncIteratorToReadableStream(iterator) {
|
|
|
197
192
|
if (iterator.return) {
|
|
198
193
|
try {
|
|
199
194
|
await iterator.return(reason);
|
|
200
|
-
} catch
|
|
195
|
+
} catch {
|
|
201
196
|
}
|
|
202
197
|
}
|
|
203
198
|
}
|
|
204
199
|
});
|
|
205
200
|
}
|
|
206
201
|
|
|
202
|
+
// src/convert-inline-file-data-to-uint8-array.ts
|
|
203
|
+
import { UnsupportedFunctionalityError } from "@ai-sdk/provider";
|
|
204
|
+
|
|
207
205
|
// src/uint8-utils.ts
|
|
208
206
|
var { btoa, atob } = globalThis;
|
|
209
207
|
function convertBase64ToUint8Array(base64String) {
|
|
@@ -212,11 +210,12 @@ function convertBase64ToUint8Array(base64String) {
|
|
|
212
210
|
return Uint8Array.from(latin1string, (byte) => byte.codePointAt(0));
|
|
213
211
|
}
|
|
214
212
|
function convertUint8ArrayToBase64(array) {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
213
|
+
const chunks = [];
|
|
214
|
+
const chunkSize = 4096;
|
|
215
|
+
for (let i = 0; i < array.length; i += chunkSize) {
|
|
216
|
+
chunks.push(String.fromCodePoint(...array.subarray(i, i + chunkSize)));
|
|
218
217
|
}
|
|
219
|
-
return btoa(
|
|
218
|
+
return btoa(chunks.join(""));
|
|
220
219
|
}
|
|
221
220
|
function convertToBase64(value) {
|
|
222
221
|
return value instanceof Uint8Array ? convertUint8ArrayToBase64(value) : value;
|
|
@@ -224,6 +223,14 @@ function convertToBase64(value) {
|
|
|
224
223
|
|
|
225
224
|
// src/convert-inline-file-data-to-uint8-array.ts
|
|
226
225
|
function convertInlineFileDataToUint8Array(data) {
|
|
226
|
+
if (data.type === "stream") {
|
|
227
|
+
const error = new UnsupportedFunctionalityError({
|
|
228
|
+
functionality: "streaming file upload"
|
|
229
|
+
});
|
|
230
|
+
void data.stream.cancel(error).catch(() => {
|
|
231
|
+
});
|
|
232
|
+
throw error;
|
|
233
|
+
}
|
|
227
234
|
if (data.type === "text") {
|
|
228
235
|
return new TextEncoder().encode(data.text);
|
|
229
236
|
}
|
|
@@ -273,8 +280,8 @@ function createLanguageModelResponseMetadata({
|
|
|
273
280
|
created
|
|
274
281
|
}) {
|
|
275
282
|
return {
|
|
276
|
-
id: id
|
|
277
|
-
modelId: model
|
|
283
|
+
id: id ?? void 0,
|
|
284
|
+
modelId: model ?? void 0,
|
|
278
285
|
timestamp: created != null ? new Date(created * 1e3) : void 0
|
|
279
286
|
};
|
|
280
287
|
}
|
|
@@ -312,15 +319,34 @@ function createToolNameMapping({
|
|
|
312
319
|
}
|
|
313
320
|
}
|
|
314
321
|
return {
|
|
315
|
-
toProviderToolName: (customToolName) =>
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
322
|
+
toProviderToolName: (customToolName) => customToolNameToProviderToolName[customToolName] ?? customToolName,
|
|
323
|
+
toCustomToolName: (providerToolName) => providerToolNameToCustomToolName[providerToolName] ?? providerToolName
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// src/create-provider-stream-error.ts
|
|
328
|
+
var marker = /* @__PURE__ */ Symbol.for("vercel.ai.providerStreamError");
|
|
329
|
+
function createProviderStreamError({
|
|
330
|
+
message,
|
|
331
|
+
type,
|
|
332
|
+
code,
|
|
333
|
+
statusCode,
|
|
334
|
+
isRetryable,
|
|
335
|
+
data
|
|
336
|
+
}) {
|
|
337
|
+
const error = {
|
|
338
|
+
message,
|
|
339
|
+
type,
|
|
340
|
+
code,
|
|
341
|
+
statusCode,
|
|
342
|
+
isRetryable,
|
|
343
|
+
data
|
|
323
344
|
};
|
|
345
|
+
Object.defineProperty(error, marker, { value: true });
|
|
346
|
+
return error;
|
|
347
|
+
}
|
|
348
|
+
function isProviderStreamError(error) {
|
|
349
|
+
return typeof error === "object" && error != null && error[marker] === true;
|
|
324
350
|
}
|
|
325
351
|
|
|
326
352
|
// src/delayed-promise.ts
|
|
@@ -346,17 +372,15 @@ var DelayedPromise = class {
|
|
|
346
372
|
return this._promise;
|
|
347
373
|
}
|
|
348
374
|
resolve(value) {
|
|
349
|
-
var _a3;
|
|
350
375
|
this.status = { type: "resolved", value };
|
|
351
376
|
if (this._promise) {
|
|
352
|
-
|
|
377
|
+
this._resolve?.(value);
|
|
353
378
|
}
|
|
354
379
|
}
|
|
355
380
|
reject(error) {
|
|
356
|
-
var _a3;
|
|
357
381
|
this.status = { type: "rejected", error };
|
|
358
382
|
if (this._promise) {
|
|
359
|
-
|
|
383
|
+
this._reject?.(error);
|
|
360
384
|
}
|
|
361
385
|
}
|
|
362
386
|
isResolved() {
|
|
@@ -370,12 +394,229 @@ var DelayedPromise = class {
|
|
|
370
394
|
}
|
|
371
395
|
};
|
|
372
396
|
|
|
397
|
+
// src/delete-from-api.ts
|
|
398
|
+
import { APICallError as APICallError2 } from "@ai-sdk/provider";
|
|
399
|
+
|
|
400
|
+
// src/extract-response-headers.ts
|
|
401
|
+
function extractResponseHeaders(response) {
|
|
402
|
+
return Object.fromEntries([...response.headers]);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// src/get-runtime-environment-user-agent.ts
|
|
406
|
+
function getRuntimeEnvironmentUserAgent(globalThisAny = globalThis) {
|
|
407
|
+
if (globalThisAny.navigator?.userAgent) {
|
|
408
|
+
return globalThisAny.navigator.userAgent.toLowerCase();
|
|
409
|
+
}
|
|
410
|
+
if (globalThisAny.process?.versions?.node) {
|
|
411
|
+
return `node.js/${globalThisAny.process.version}`;
|
|
412
|
+
}
|
|
413
|
+
if (globalThisAny.EdgeRuntime) {
|
|
414
|
+
return "vercel-edge";
|
|
415
|
+
}
|
|
416
|
+
return "";
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
// src/handle-fetch-error.ts
|
|
420
|
+
import { APICallError } from "@ai-sdk/provider";
|
|
421
|
+
|
|
422
|
+
// src/is-abort-error.ts
|
|
423
|
+
function isAbortError(error) {
|
|
424
|
+
return (error instanceof Error || typeof DOMException === "function" && error instanceof DOMException) && (error.name === "AbortError" || error.name === "ResponseAborted" || // Next.js
|
|
425
|
+
error.name === "TimeoutError");
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// src/handle-fetch-error.ts
|
|
429
|
+
var FETCH_FAILED_ERROR_MESSAGES = ["fetch failed", "failed to fetch"];
|
|
430
|
+
var RETRYABLE_NETWORK_ERROR_CODES = /* @__PURE__ */ new Set([
|
|
431
|
+
"ConnectionRefused",
|
|
432
|
+
"ConnectionClosed",
|
|
433
|
+
"FailedToOpenSocket",
|
|
434
|
+
"ECONNRESET",
|
|
435
|
+
"ECONNREFUSED",
|
|
436
|
+
"ETIMEDOUT",
|
|
437
|
+
"EPIPE",
|
|
438
|
+
"UND_ERR_SOCKET",
|
|
439
|
+
"UND_ERR_HEADERS_TIMEOUT",
|
|
440
|
+
"UND_ERR_BODY_TIMEOUT",
|
|
441
|
+
"UND_ERR_CONNECT_TIMEOUT"
|
|
442
|
+
]);
|
|
443
|
+
function findNetworkError(error) {
|
|
444
|
+
const visited = /* @__PURE__ */ new Set();
|
|
445
|
+
let current = error;
|
|
446
|
+
while (current instanceof Error && !visited.has(current)) {
|
|
447
|
+
visited.add(current);
|
|
448
|
+
const errorWithCode = current;
|
|
449
|
+
if (typeof errorWithCode.code === "string" && RETRYABLE_NETWORK_ERROR_CODES.has(errorWithCode.code)) {
|
|
450
|
+
return errorWithCode;
|
|
451
|
+
}
|
|
452
|
+
current = current.cause;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
function handleFetchError({
|
|
456
|
+
error,
|
|
457
|
+
url,
|
|
458
|
+
requestBodyValues
|
|
459
|
+
}) {
|
|
460
|
+
if (isAbortError(error)) {
|
|
461
|
+
return error;
|
|
462
|
+
}
|
|
463
|
+
if (error instanceof TypeError && FETCH_FAILED_ERROR_MESSAGES.includes(error.message.toLowerCase())) {
|
|
464
|
+
const cause = error.cause;
|
|
465
|
+
if (cause != null) {
|
|
466
|
+
return new APICallError({
|
|
467
|
+
message: `Cannot connect to API: ${cause.message}`,
|
|
468
|
+
cause,
|
|
469
|
+
url,
|
|
470
|
+
requestBodyValues,
|
|
471
|
+
isRetryable: true
|
|
472
|
+
// retry when network error
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
const networkError = findNetworkError(error);
|
|
477
|
+
if (networkError != null) {
|
|
478
|
+
if (APICallError.isInstance(error)) {
|
|
479
|
+
return new APICallError({
|
|
480
|
+
message: error.message,
|
|
481
|
+
cause: error.cause,
|
|
482
|
+
url: error.url,
|
|
483
|
+
requestBodyValues: error.requestBodyValues,
|
|
484
|
+
statusCode: error.statusCode,
|
|
485
|
+
responseHeaders: error.responseHeaders,
|
|
486
|
+
responseBody: error.responseBody,
|
|
487
|
+
data: error.data,
|
|
488
|
+
isRetryable: true
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
return new APICallError({
|
|
492
|
+
message: `Cannot connect to API: ${error instanceof Error ? error.message : networkError.message}`,
|
|
493
|
+
cause: error,
|
|
494
|
+
url,
|
|
495
|
+
requestBodyValues,
|
|
496
|
+
isRetryable: true
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
return error;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
// src/version.ts
|
|
503
|
+
var VERSION = true ? "5.0.51" : "0.0.0-test";
|
|
504
|
+
|
|
505
|
+
// src/normalize-headers.ts
|
|
506
|
+
function normalizeHeaders(headers) {
|
|
507
|
+
if (headers == null) {
|
|
508
|
+
return {};
|
|
509
|
+
}
|
|
510
|
+
const normalized = {};
|
|
511
|
+
if (headers instanceof Headers) {
|
|
512
|
+
headers.forEach((value, key) => {
|
|
513
|
+
normalized[key.toLowerCase()] = value;
|
|
514
|
+
});
|
|
515
|
+
} else {
|
|
516
|
+
if (!Array.isArray(headers)) {
|
|
517
|
+
headers = Object.entries(headers);
|
|
518
|
+
}
|
|
519
|
+
for (const [key, value] of headers) {
|
|
520
|
+
if (value != null) {
|
|
521
|
+
normalized[key.toLowerCase()] = value;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
return normalized;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
// src/with-user-agent-suffix.ts
|
|
529
|
+
function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
530
|
+
const normalizedHeaders = new Headers(normalizeHeaders(headers));
|
|
531
|
+
const currentUserAgentHeader = normalizedHeaders.get("user-agent") || "";
|
|
532
|
+
normalizedHeaders.set(
|
|
533
|
+
"user-agent",
|
|
534
|
+
[currentUserAgentHeader, ...userAgentSuffixParts].filter(Boolean).join(" ")
|
|
535
|
+
);
|
|
536
|
+
return Object.fromEntries(normalizedHeaders.entries());
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
// src/delete-from-api.ts
|
|
540
|
+
var getOriginalFetch = () => globalThis.fetch;
|
|
541
|
+
var deleteFromApi = async ({
|
|
542
|
+
url,
|
|
543
|
+
headers = {},
|
|
544
|
+
failedResponseHandler,
|
|
545
|
+
successfulResponseHandler,
|
|
546
|
+
abortSignal,
|
|
547
|
+
fetch = getOriginalFetch()
|
|
548
|
+
}) => {
|
|
549
|
+
try {
|
|
550
|
+
const response = await fetch(url, {
|
|
551
|
+
method: "DELETE",
|
|
552
|
+
headers: withUserAgentSuffix(
|
|
553
|
+
headers,
|
|
554
|
+
`ai-sdk-provider-utils/${VERSION}`,
|
|
555
|
+
getRuntimeEnvironmentUserAgent()
|
|
556
|
+
),
|
|
557
|
+
signal: abortSignal
|
|
558
|
+
});
|
|
559
|
+
const responseHeaders = extractResponseHeaders(response);
|
|
560
|
+
if (!response.ok) {
|
|
561
|
+
let errorInformation;
|
|
562
|
+
try {
|
|
563
|
+
errorInformation = await failedResponseHandler({
|
|
564
|
+
response,
|
|
565
|
+
url,
|
|
566
|
+
requestBodyValues: {}
|
|
567
|
+
});
|
|
568
|
+
} catch (error) {
|
|
569
|
+
if (isAbortError(error) || APICallError2.isInstance(error)) {
|
|
570
|
+
throw error;
|
|
571
|
+
}
|
|
572
|
+
throw new APICallError2({
|
|
573
|
+
message: "Failed to process error response",
|
|
574
|
+
cause: error,
|
|
575
|
+
statusCode: response.status,
|
|
576
|
+
url,
|
|
577
|
+
responseHeaders,
|
|
578
|
+
requestBodyValues: {}
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
throw errorInformation.value;
|
|
582
|
+
}
|
|
583
|
+
try {
|
|
584
|
+
return await successfulResponseHandler({
|
|
585
|
+
response,
|
|
586
|
+
url,
|
|
587
|
+
requestBodyValues: {}
|
|
588
|
+
});
|
|
589
|
+
} catch (error) {
|
|
590
|
+
if (error instanceof Error) {
|
|
591
|
+
if (isAbortError(error) || APICallError2.isInstance(error)) {
|
|
592
|
+
throw error;
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
throw new APICallError2({
|
|
596
|
+
message: "Failed to process successful response",
|
|
597
|
+
cause: error,
|
|
598
|
+
statusCode: response.status,
|
|
599
|
+
url,
|
|
600
|
+
responseHeaders,
|
|
601
|
+
requestBodyValues: {}
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
} catch (error) {
|
|
605
|
+
throw handleFetchError({ error, url, requestBodyValues: {} });
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
|
|
373
609
|
// src/detect-media-type.ts
|
|
374
610
|
var imageMediaTypeSignatures = [
|
|
375
611
|
{
|
|
376
612
|
mediaType: "image/gif",
|
|
377
|
-
bytesPrefix: [71, 73, 70]
|
|
378
|
-
//
|
|
613
|
+
bytesPrefix: [71, 73, 70, 56, 55, 97]
|
|
614
|
+
// GIF87a
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
mediaType: "image/gif",
|
|
618
|
+
bytesPrefix: [71, 73, 70, 56, 57, 97]
|
|
619
|
+
// GIF89a
|
|
379
620
|
},
|
|
380
621
|
{
|
|
381
622
|
mediaType: "image/png",
|
|
@@ -409,7 +650,7 @@ var imageMediaTypeSignatures = [
|
|
|
409
650
|
},
|
|
410
651
|
{
|
|
411
652
|
mediaType: "image/bmp",
|
|
412
|
-
bytesPrefix: [66, 77]
|
|
653
|
+
bytesPrefix: [66, 77, null, null, null, null, 0, 0, 0, 0]
|
|
413
654
|
},
|
|
414
655
|
{
|
|
415
656
|
mediaType: "image/tiff",
|
|
@@ -425,7 +666,8 @@ var imageMediaTypeSignatures = [
|
|
|
425
666
|
0,
|
|
426
667
|
0,
|
|
427
668
|
0,
|
|
428
|
-
|
|
669
|
+
null,
|
|
670
|
+
// box size (variable)
|
|
429
671
|
102,
|
|
430
672
|
116,
|
|
431
673
|
121,
|
|
@@ -442,7 +684,8 @@ var imageMediaTypeSignatures = [
|
|
|
442
684
|
0,
|
|
443
685
|
0,
|
|
444
686
|
0,
|
|
445
|
-
|
|
687
|
+
null,
|
|
688
|
+
// box size (variable)
|
|
446
689
|
102,
|
|
447
690
|
116,
|
|
448
691
|
121,
|
|
@@ -462,6 +705,26 @@ var documentMediaTypeSignatures = [
|
|
|
462
705
|
}
|
|
463
706
|
];
|
|
464
707
|
var audioMediaTypeSignaturesWithoutMp4 = [
|
|
708
|
+
{
|
|
709
|
+
mediaType: "audio/aac",
|
|
710
|
+
bytesPrefix: [255, 240]
|
|
711
|
+
// MPEG-4 ADTS with CRC
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
mediaType: "audio/aac",
|
|
715
|
+
bytesPrefix: [255, 241]
|
|
716
|
+
// MPEG-4 ADTS without CRC
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
mediaType: "audio/aac",
|
|
720
|
+
bytesPrefix: [255, 248]
|
|
721
|
+
// MPEG-2 ADTS with CRC
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
mediaType: "audio/aac",
|
|
725
|
+
bytesPrefix: [255, 249]
|
|
726
|
+
// MPEG-2 ADTS without CRC
|
|
727
|
+
},
|
|
465
728
|
{
|
|
466
729
|
mediaType: "audio/mpeg",
|
|
467
730
|
bytesPrefix: [255, 251]
|
|
@@ -625,7 +888,6 @@ function detectMediaTypeBySignatures({
|
|
|
625
888
|
return signature.mediaType;
|
|
626
889
|
}
|
|
627
890
|
}
|
|
628
|
-
return void 0;
|
|
629
891
|
}
|
|
630
892
|
var topLevelSignatureTables = {
|
|
631
893
|
image: imageMediaTypeSignatures,
|
|
@@ -671,18 +933,17 @@ function isFullMediaType(mediaType) {
|
|
|
671
933
|
|
|
672
934
|
// src/cancel-response-body.ts
|
|
673
935
|
async function cancelResponseBody(response) {
|
|
674
|
-
var _a3;
|
|
675
936
|
try {
|
|
676
|
-
await
|
|
677
|
-
} catch
|
|
937
|
+
await response.body?.cancel();
|
|
938
|
+
} catch {
|
|
678
939
|
}
|
|
679
940
|
}
|
|
680
941
|
|
|
681
942
|
// src/download-error.ts
|
|
682
943
|
import { AISDKError } from "@ai-sdk/provider";
|
|
683
944
|
var name = "AI_DownloadError";
|
|
684
|
-
var
|
|
685
|
-
var symbol = Symbol.for(
|
|
945
|
+
var marker2 = `vercel.ai.error.${name}`;
|
|
946
|
+
var symbol = Symbol.for(marker2);
|
|
686
947
|
var _a, _b;
|
|
687
948
|
var DownloadError = class extends (_b = AISDKError, _a = symbol, _b) {
|
|
688
949
|
constructor({
|
|
@@ -699,7 +960,7 @@ var DownloadError = class extends (_b = AISDKError, _a = symbol, _b) {
|
|
|
699
960
|
this.statusText = statusText;
|
|
700
961
|
}
|
|
701
962
|
static isInstance(error) {
|
|
702
|
-
return AISDKError.hasMarker(error,
|
|
963
|
+
return AISDKError.hasMarker(error, marker2);
|
|
703
964
|
}
|
|
704
965
|
};
|
|
705
966
|
|
|
@@ -712,7 +973,7 @@ function isBrowserRuntime(globalThisAny = globalThis) {
|
|
|
712
973
|
function isSameOrigin(url, baseUrl) {
|
|
713
974
|
try {
|
|
714
975
|
return new URL(url).origin === new URL(baseUrl).origin;
|
|
715
|
-
} catch
|
|
976
|
+
} catch {
|
|
716
977
|
return false;
|
|
717
978
|
}
|
|
718
979
|
}
|
|
@@ -722,7 +983,7 @@ function validateDownloadUrl(url) {
|
|
|
722
983
|
let parsed;
|
|
723
984
|
try {
|
|
724
985
|
parsed = new URL(url);
|
|
725
|
-
} catch
|
|
986
|
+
} catch {
|
|
726
987
|
throw new DownloadError({
|
|
727
988
|
url,
|
|
728
989
|
message: `Invalid URL: ${url}`
|
|
@@ -767,7 +1028,6 @@ function validateDownloadUrl(url) {
|
|
|
767
1028
|
message: `URL with IP address ${hostname} is not allowed`
|
|
768
1029
|
});
|
|
769
1030
|
}
|
|
770
|
-
return;
|
|
771
1031
|
}
|
|
772
1032
|
}
|
|
773
1033
|
function validateDownloadAddress({
|
|
@@ -908,32 +1168,21 @@ function createSafeLookup(lookup) {
|
|
|
908
1168
|
});
|
|
909
1169
|
}
|
|
910
1170
|
var safeNodeFetchPromise;
|
|
911
|
-
var initialGlobalFetch = globalThis.fetch;
|
|
912
|
-
var initialGlobalFetchIsNodeDefault = isNodeDefaultFetch(initialGlobalFetch);
|
|
913
1171
|
function isNodeRuntime() {
|
|
914
|
-
var _a3, _b3;
|
|
915
1172
|
const runtimeProcess = globalThis.process;
|
|
916
|
-
return
|
|
1173
|
+
return runtimeProcess?.release?.name === "node" && runtimeProcess.versions?.bun == null && runtimeProcess.versions?.deno == null && runtimeProcess.title !== "workerd" && globalThis.EdgeRuntime == null;
|
|
917
1174
|
}
|
|
918
1175
|
async function getDefaultDownloadFetch() {
|
|
919
|
-
if (!isNodeRuntime()
|
|
1176
|
+
if (!isNodeRuntime()) {
|
|
920
1177
|
return globalThis.fetch;
|
|
921
1178
|
}
|
|
922
|
-
return safeNodeFetchPromise
|
|
923
|
-
}
|
|
924
|
-
function isNodeDefaultFetch(fetch) {
|
|
925
|
-
if (typeof fetch !== "function") {
|
|
926
|
-
return false;
|
|
927
|
-
}
|
|
928
|
-
const source = Function.prototype.toString.call(fetch);
|
|
929
|
-
return source.includes("internal/deps/undici") || source.includes("lazy loading of undici");
|
|
1179
|
+
return safeNodeFetchPromise ??= Promise.resolve().then(createSafeNodeFetch);
|
|
930
1180
|
}
|
|
931
1181
|
function createSafeNodeFetch() {
|
|
932
|
-
const
|
|
1182
|
+
const module = loadBuiltinModule("node:module");
|
|
933
1183
|
const { lookup } = loadBuiltinModule("node:dns");
|
|
934
|
-
const
|
|
935
|
-
|
|
936
|
-
);
|
|
1184
|
+
const nodeRequire = module.createRequire(getCurrentModulePath());
|
|
1185
|
+
const { Agent, fetch } = nodeRequire("undici");
|
|
937
1186
|
const dispatcher = new Agent({
|
|
938
1187
|
connect: {
|
|
939
1188
|
lookup: createSafeLookup(lookup)
|
|
@@ -948,9 +1197,8 @@ function createSafeNodeFetch() {
|
|
|
948
1197
|
));
|
|
949
1198
|
}
|
|
950
1199
|
function loadBuiltinModule(id) {
|
|
951
|
-
var _a3;
|
|
952
1200
|
const processWithBuiltins = globalThis.process;
|
|
953
|
-
const builtinModule =
|
|
1201
|
+
const builtinModule = processWithBuiltins?.getBuiltinModule?.(id);
|
|
954
1202
|
if (builtinModule == null) {
|
|
955
1203
|
throw new Error(`Node.js built-in module ${id} is unavailable`);
|
|
956
1204
|
}
|
|
@@ -963,7 +1211,7 @@ function getCurrentModulePath() {
|
|
|
963
1211
|
const error = new Error("Capture current module path");
|
|
964
1212
|
Error.captureStackTrace(error, getCurrentModulePath);
|
|
965
1213
|
const [caller] = error.stack;
|
|
966
|
-
const fileName = caller
|
|
1214
|
+
const fileName = caller?.getFileName();
|
|
967
1215
|
if (fileName == null) {
|
|
968
1216
|
throw new Error("Unable to determine the current module path");
|
|
969
1217
|
}
|
|
@@ -1012,6 +1260,27 @@ function sanitizeRequestHeaders(input) {
|
|
|
1012
1260
|
// src/fetch-with-validated-redirects.ts
|
|
1013
1261
|
var MAX_DOWNLOAD_REDIRECTS = 10;
|
|
1014
1262
|
var REDIRECT_STATUS_CODES = /* @__PURE__ */ new Set([301, 302, 303, 307, 308]);
|
|
1263
|
+
async function getValidatedFetch(customFetch) {
|
|
1264
|
+
return customFetch == null || customFetch === globalThis.fetch ? await getDefaultDownloadFetch() : customFetch;
|
|
1265
|
+
}
|
|
1266
|
+
async function fetchWithValidatedEndpoint({
|
|
1267
|
+
url,
|
|
1268
|
+
init,
|
|
1269
|
+
fetch: customFetch,
|
|
1270
|
+
trustedOrigin,
|
|
1271
|
+
redirect = "error"
|
|
1272
|
+
}) {
|
|
1273
|
+
const urlText = url.toString();
|
|
1274
|
+
const isTrusted = trustedOrigin !== void 0 && isSameOrigin(urlText, trustedOrigin);
|
|
1275
|
+
if (!isTrusted) {
|
|
1276
|
+
validateDownloadUrl(urlText);
|
|
1277
|
+
}
|
|
1278
|
+
const fetch = isTrusted && customFetch != null ? customFetch : isTrusted ? globalThis.fetch : await getValidatedFetch(customFetch);
|
|
1279
|
+
return await fetch(url, {
|
|
1280
|
+
...init,
|
|
1281
|
+
redirect
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1015
1284
|
async function fetchWithValidatedRedirects({
|
|
1016
1285
|
url,
|
|
1017
1286
|
headers,
|
|
@@ -1034,7 +1303,7 @@ async function fetchWithValidatedRedirects({
|
|
|
1034
1303
|
if (!isTrustedHop) {
|
|
1035
1304
|
validateDownloadUrl(currentUrl);
|
|
1036
1305
|
}
|
|
1037
|
-
const fetch = customFetch != null ? customFetch : isTrustedHop ? globalThis.fetch : await
|
|
1306
|
+
const fetch = isTrustedHop && customFetch != null ? customFetch : isTrustedHop ? globalThis.fetch : await getValidatedFetch(customFetch);
|
|
1038
1307
|
const response = await fetch(currentUrl, perHopInit("manual"));
|
|
1039
1308
|
if (response.type === "opaqueredirect") {
|
|
1040
1309
|
if (!isBrowserRuntime()) {
|
|
@@ -1045,9 +1314,9 @@ async function fetchWithValidatedRedirects({
|
|
|
1045
1314
|
}
|
|
1046
1315
|
return await fetch(currentUrl, perHopInit("follow"));
|
|
1047
1316
|
}
|
|
1048
|
-
const location = response.headers
|
|
1317
|
+
const location = response.headers?.get("location");
|
|
1049
1318
|
if (REDIRECT_STATUS_CODES.has(response.status) && location) {
|
|
1050
|
-
|
|
1319
|
+
void cancelResponseBody(response);
|
|
1051
1320
|
const nextUrl = new URL(location, currentUrl).toString();
|
|
1052
1321
|
if (currentHeaders !== void 0 && !isSameOrigin(nextUrl, currentUrl)) {
|
|
1053
1322
|
const userAgent = currentHeaders.get("user-agent");
|
|
@@ -1066,6 +1335,52 @@ async function fetchWithValidatedRedirects({
|
|
|
1066
1335
|
});
|
|
1067
1336
|
}
|
|
1068
1337
|
|
|
1338
|
+
// src/fetch-untrusted-url.ts
|
|
1339
|
+
var SAFE_UNTRUSTED_FIRST_HOP_HEADERS = /* @__PURE__ */ new Set([
|
|
1340
|
+
"accept",
|
|
1341
|
+
"accept-language",
|
|
1342
|
+
"baggage",
|
|
1343
|
+
"cache-control",
|
|
1344
|
+
"idempotency-key",
|
|
1345
|
+
"if-match",
|
|
1346
|
+
"if-modified-since",
|
|
1347
|
+
"if-none-match",
|
|
1348
|
+
"if-range",
|
|
1349
|
+
"if-unmodified-since",
|
|
1350
|
+
"pragma",
|
|
1351
|
+
"range",
|
|
1352
|
+
"traceparent",
|
|
1353
|
+
"tracestate",
|
|
1354
|
+
"user-agent",
|
|
1355
|
+
"x-correlation-id",
|
|
1356
|
+
"x-request-id"
|
|
1357
|
+
]);
|
|
1358
|
+
async function fetchUntrustedUrl({
|
|
1359
|
+
headers,
|
|
1360
|
+
credentialedOrigin,
|
|
1361
|
+
untrustedFirstHopHeaders,
|
|
1362
|
+
...options
|
|
1363
|
+
}) {
|
|
1364
|
+
let firstHopHeaders;
|
|
1365
|
+
if (headers !== void 0) {
|
|
1366
|
+
firstHopHeaders = sanitizeRequestHeaders(headers);
|
|
1367
|
+
const origin = credentialedOrigin ?? options.trustedOrigin;
|
|
1368
|
+
if (origin === void 0 || !isSameOrigin(options.url, origin)) {
|
|
1369
|
+
const allowedHeaders = /* @__PURE__ */ new Set([
|
|
1370
|
+
...SAFE_UNTRUSTED_FIRST_HOP_HEADERS,
|
|
1371
|
+
...(untrustedFirstHopHeaders ?? []).map((name3) => name3.toLowerCase())
|
|
1372
|
+
]);
|
|
1373
|
+
firstHopHeaders = new Headers(
|
|
1374
|
+
[...firstHopHeaders].filter(([name3]) => allowedHeaders.has(name3))
|
|
1375
|
+
);
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
return fetchWithValidatedRedirects({
|
|
1379
|
+
...options,
|
|
1380
|
+
headers: firstHopHeaders
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1069
1384
|
// src/read-response-with-size-limit.ts
|
|
1070
1385
|
var DEFAULT_MAX_DOWNLOAD_SIZE = 2 * 1024 * 1024 * 1024;
|
|
1071
1386
|
async function readResponseWithSizeLimit({
|
|
@@ -1109,7 +1424,7 @@ async function readResponseWithSizeLimit({
|
|
|
1109
1424
|
} finally {
|
|
1110
1425
|
try {
|
|
1111
1426
|
await reader.cancel();
|
|
1112
|
-
} catch
|
|
1427
|
+
} catch {
|
|
1113
1428
|
} finally {
|
|
1114
1429
|
reader.releaseLock();
|
|
1115
1430
|
}
|
|
@@ -1125,11 +1440,10 @@ async function readResponseWithSizeLimit({
|
|
|
1125
1440
|
|
|
1126
1441
|
// src/download-blob.ts
|
|
1127
1442
|
async function downloadBlob(url, options) {
|
|
1128
|
-
var _a3, _b3;
|
|
1129
1443
|
try {
|
|
1130
|
-
const response = await
|
|
1444
|
+
const response = await fetchUntrustedUrl({
|
|
1131
1445
|
url,
|
|
1132
|
-
abortSignal: options
|
|
1446
|
+
abortSignal: options?.abortSignal
|
|
1133
1447
|
});
|
|
1134
1448
|
if (!response.ok) {
|
|
1135
1449
|
await cancelResponseBody(response);
|
|
@@ -1142,9 +1456,9 @@ async function downloadBlob(url, options) {
|
|
|
1142
1456
|
const data = await readResponseWithSizeLimit({
|
|
1143
1457
|
response,
|
|
1144
1458
|
url,
|
|
1145
|
-
maxBytes:
|
|
1459
|
+
maxBytes: options?.maxBytes ?? DEFAULT_MAX_DOWNLOAD_SIZE
|
|
1146
1460
|
});
|
|
1147
|
-
const contentType =
|
|
1461
|
+
const contentType = response.headers.get("content-type") ?? void 0;
|
|
1148
1462
|
return new Blob([data], contentType ? { type: contentType } : void 0);
|
|
1149
1463
|
} catch (error) {
|
|
1150
1464
|
if (DownloadError.isInstance(error)) {
|
|
@@ -1154,6 +1468,14 @@ async function downloadBlob(url, options) {
|
|
|
1154
1468
|
}
|
|
1155
1469
|
}
|
|
1156
1470
|
|
|
1471
|
+
// src/embedding-model-capabilities.ts
|
|
1472
|
+
var EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL = /* @__PURE__ */ Symbol.for(
|
|
1473
|
+
"vercel.ai.embeddingModel.maxInputBytesPerCall"
|
|
1474
|
+
);
|
|
1475
|
+
var EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER = /* @__PURE__ */ Symbol.for(
|
|
1476
|
+
"vercel.ai.embeddingModel.providerOptionsTransformer"
|
|
1477
|
+
);
|
|
1478
|
+
|
|
1157
1479
|
// src/extract-lines.ts
|
|
1158
1480
|
function extractLines({
|
|
1159
1481
|
text,
|
|
@@ -1163,16 +1485,11 @@ function extractLines({
|
|
|
1163
1485
|
if (startLine == null && endLine == null) return text;
|
|
1164
1486
|
const lineEnding = text.includes("\r\n") ? "\r\n" : text.includes("\n") ? "\n" : text.includes("\r") ? "\r" : "\n";
|
|
1165
1487
|
const lines = text.split(lineEnding);
|
|
1166
|
-
const start = Math.max(1, startLine
|
|
1167
|
-
const end = Math.min(lines.length, endLine
|
|
1488
|
+
const start = Math.max(1, startLine ?? 1) - 1;
|
|
1489
|
+
const end = Math.min(lines.length, endLine ?? lines.length);
|
|
1168
1490
|
return lines.slice(start, end).join(lineEnding);
|
|
1169
1491
|
}
|
|
1170
1492
|
|
|
1171
|
-
// src/extract-response-headers.ts
|
|
1172
|
-
function extractResponseHeaders(response) {
|
|
1173
|
-
return Object.fromEntries([...response.headers]);
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
1493
|
// src/filter-nullable.ts
|
|
1177
1494
|
function filterNullable(...values) {
|
|
1178
1495
|
return values.filter((value) => value != null);
|
|
@@ -1211,128 +1528,8 @@ var generateId = createIdGenerator();
|
|
|
1211
1528
|
import { getErrorMessage } from "@ai-sdk/provider";
|
|
1212
1529
|
|
|
1213
1530
|
// src/get-from-api.ts
|
|
1214
|
-
import { APICallError as
|
|
1215
|
-
|
|
1216
|
-
// src/handle-fetch-error.ts
|
|
1217
|
-
import { APICallError } from "@ai-sdk/provider";
|
|
1218
|
-
|
|
1219
|
-
// src/is-abort-error.ts
|
|
1220
|
-
function isAbortError(error) {
|
|
1221
|
-
return (error instanceof Error || error instanceof DOMException) && (error.name === "AbortError" || error.name === "ResponseAborted" || // Next.js
|
|
1222
|
-
error.name === "TimeoutError");
|
|
1223
|
-
}
|
|
1224
|
-
|
|
1225
|
-
// src/handle-fetch-error.ts
|
|
1226
|
-
var FETCH_FAILED_ERROR_MESSAGES = ["fetch failed", "failed to fetch"];
|
|
1227
|
-
var BUN_ERROR_CODES = [
|
|
1228
|
-
"ConnectionRefused",
|
|
1229
|
-
"ConnectionClosed",
|
|
1230
|
-
"FailedToOpenSocket",
|
|
1231
|
-
"ECONNRESET",
|
|
1232
|
-
"ECONNREFUSED",
|
|
1233
|
-
"ETIMEDOUT",
|
|
1234
|
-
"EPIPE"
|
|
1235
|
-
];
|
|
1236
|
-
function isBunNetworkError(error) {
|
|
1237
|
-
if (!(error instanceof Error)) {
|
|
1238
|
-
return false;
|
|
1239
|
-
}
|
|
1240
|
-
const code = error.code;
|
|
1241
|
-
if (typeof code === "string" && BUN_ERROR_CODES.includes(code)) {
|
|
1242
|
-
return true;
|
|
1243
|
-
}
|
|
1244
|
-
return false;
|
|
1245
|
-
}
|
|
1246
|
-
function handleFetchError({
|
|
1247
|
-
error,
|
|
1248
|
-
url,
|
|
1249
|
-
requestBodyValues
|
|
1250
|
-
}) {
|
|
1251
|
-
if (isAbortError(error)) {
|
|
1252
|
-
return error;
|
|
1253
|
-
}
|
|
1254
|
-
if (error instanceof TypeError && FETCH_FAILED_ERROR_MESSAGES.includes(error.message.toLowerCase())) {
|
|
1255
|
-
const cause = error.cause;
|
|
1256
|
-
if (cause != null) {
|
|
1257
|
-
return new APICallError({
|
|
1258
|
-
message: `Cannot connect to API: ${cause.message}`,
|
|
1259
|
-
cause,
|
|
1260
|
-
url,
|
|
1261
|
-
requestBodyValues,
|
|
1262
|
-
isRetryable: true
|
|
1263
|
-
// retry when network error
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
if (isBunNetworkError(error)) {
|
|
1268
|
-
return new APICallError({
|
|
1269
|
-
message: `Cannot connect to API: ${error.message}`,
|
|
1270
|
-
cause: error,
|
|
1271
|
-
url,
|
|
1272
|
-
requestBodyValues,
|
|
1273
|
-
isRetryable: true
|
|
1274
|
-
});
|
|
1275
|
-
}
|
|
1276
|
-
return error;
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
// src/get-runtime-environment-user-agent.ts
|
|
1280
|
-
function getRuntimeEnvironmentUserAgent(globalThisAny = globalThis) {
|
|
1281
|
-
var _a3, _b3, _c;
|
|
1282
|
-
if (globalThisAny.window) {
|
|
1283
|
-
return `runtime/browser`;
|
|
1284
|
-
}
|
|
1285
|
-
if ((_a3 = globalThisAny.navigator) == null ? void 0 : _a3.userAgent) {
|
|
1286
|
-
return `runtime/${globalThisAny.navigator.userAgent.toLowerCase()}`;
|
|
1287
|
-
}
|
|
1288
|
-
if ((_c = (_b3 = globalThisAny.process) == null ? void 0 : _b3.versions) == null ? void 0 : _c.node) {
|
|
1289
|
-
return `runtime/node.js/${globalThisAny.process.version.substring(0)}`;
|
|
1290
|
-
}
|
|
1291
|
-
if (globalThisAny.EdgeRuntime) {
|
|
1292
|
-
return `runtime/vercel-edge`;
|
|
1293
|
-
}
|
|
1294
|
-
return "runtime/unknown";
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
// src/normalize-headers.ts
|
|
1298
|
-
function normalizeHeaders(headers) {
|
|
1299
|
-
if (headers == null) {
|
|
1300
|
-
return {};
|
|
1301
|
-
}
|
|
1302
|
-
const normalized = {};
|
|
1303
|
-
if (headers instanceof Headers) {
|
|
1304
|
-
headers.forEach((value, key) => {
|
|
1305
|
-
normalized[key.toLowerCase()] = value;
|
|
1306
|
-
});
|
|
1307
|
-
} else {
|
|
1308
|
-
if (!Array.isArray(headers)) {
|
|
1309
|
-
headers = Object.entries(headers);
|
|
1310
|
-
}
|
|
1311
|
-
for (const [key, value] of headers) {
|
|
1312
|
-
if (value != null) {
|
|
1313
|
-
normalized[key.toLowerCase()] = value;
|
|
1314
|
-
}
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
return normalized;
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
// src/with-user-agent-suffix.ts
|
|
1321
|
-
function withUserAgentSuffix(headers, ...userAgentSuffixParts) {
|
|
1322
|
-
const normalizedHeaders = new Headers(normalizeHeaders(headers));
|
|
1323
|
-
const currentUserAgentHeader = normalizedHeaders.get("user-agent") || "";
|
|
1324
|
-
normalizedHeaders.set(
|
|
1325
|
-
"user-agent",
|
|
1326
|
-
[currentUserAgentHeader, ...userAgentSuffixParts].filter(Boolean).join(" ")
|
|
1327
|
-
);
|
|
1328
|
-
return Object.fromEntries(normalizedHeaders.entries());
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
// src/version.ts
|
|
1332
|
-
var VERSION = true ? "5.0.28" : "0.0.0-test";
|
|
1333
|
-
|
|
1334
|
-
// src/get-from-api.ts
|
|
1335
|
-
var getOriginalFetch = () => globalThis.fetch;
|
|
1531
|
+
import { APICallError as APICallError3 } from "@ai-sdk/provider";
|
|
1532
|
+
var getOriginalFetch2 = () => globalThis.fetch;
|
|
1336
1533
|
var getFromApi = async ({
|
|
1337
1534
|
url,
|
|
1338
1535
|
headers = {},
|
|
@@ -1345,11 +1542,11 @@ var getFromApi = async ({
|
|
|
1345
1542
|
trustedOrigin
|
|
1346
1543
|
}) => {
|
|
1347
1544
|
try {
|
|
1348
|
-
const requestFetch = fetch
|
|
1545
|
+
const requestFetch = fetch ?? getOriginalFetch2();
|
|
1349
1546
|
const outgoingHeaders = credentialedOrigin !== void 0 && !isSameOrigin(url, credentialedOrigin) ? {} : headers;
|
|
1350
1547
|
const requestHeaders = withUserAgentSuffix(
|
|
1351
1548
|
outgoingHeaders,
|
|
1352
|
-
`ai-sdk
|
|
1549
|
+
`ai-sdk-provider-utils/${VERSION}`,
|
|
1353
1550
|
getRuntimeEnvironmentUserAgent()
|
|
1354
1551
|
);
|
|
1355
1552
|
const response = validateUrl ? await fetchWithValidatedRedirects({
|
|
@@ -1373,10 +1570,10 @@ var getFromApi = async ({
|
|
|
1373
1570
|
requestBodyValues: {}
|
|
1374
1571
|
});
|
|
1375
1572
|
} catch (error) {
|
|
1376
|
-
if (isAbortError(error) ||
|
|
1573
|
+
if (isAbortError(error) || APICallError3.isInstance(error)) {
|
|
1377
1574
|
throw error;
|
|
1378
1575
|
}
|
|
1379
|
-
throw new
|
|
1576
|
+
throw new APICallError3({
|
|
1380
1577
|
message: "Failed to process error response",
|
|
1381
1578
|
cause: error,
|
|
1382
1579
|
statusCode: response.status,
|
|
@@ -1395,11 +1592,11 @@ var getFromApi = async ({
|
|
|
1395
1592
|
});
|
|
1396
1593
|
} catch (error) {
|
|
1397
1594
|
if (error instanceof Error) {
|
|
1398
|
-
if (isAbortError(error) ||
|
|
1595
|
+
if (isAbortError(error) || APICallError3.isInstance(error)) {
|
|
1399
1596
|
throw error;
|
|
1400
1597
|
}
|
|
1401
1598
|
}
|
|
1402
|
-
throw new
|
|
1599
|
+
throw new APICallError3({
|
|
1403
1600
|
message: "Failed to process successful response",
|
|
1404
1601
|
cause: error,
|
|
1405
1602
|
statusCode: response.status,
|
|
@@ -1438,8 +1635,7 @@ function injectJsonInstructionIntoMessages({
|
|
|
1438
1635
|
schemaPrefix,
|
|
1439
1636
|
schemaSuffix
|
|
1440
1637
|
}) {
|
|
1441
|
-
|
|
1442
|
-
const systemMessage = ((_a3 = messages[0]) == null ? void 0 : _a3.role) === "system" ? { ...messages[0] } : { role: "system", content: "" };
|
|
1638
|
+
const systemMessage = messages[0]?.role === "system" ? { ...messages[0] } : { role: "system", content: "" };
|
|
1443
1639
|
systemMessage.content = injectJsonInstruction({
|
|
1444
1640
|
prompt: systemMessage.content,
|
|
1445
1641
|
schema,
|
|
@@ -1448,14 +1644,13 @@ function injectJsonInstructionIntoMessages({
|
|
|
1448
1644
|
});
|
|
1449
1645
|
return [
|
|
1450
1646
|
systemMessage,
|
|
1451
|
-
...
|
|
1647
|
+
...messages[0]?.role === "system" ? messages.slice(1) : messages
|
|
1452
1648
|
];
|
|
1453
1649
|
}
|
|
1454
1650
|
|
|
1455
1651
|
// src/is-buffer.ts
|
|
1456
1652
|
function isBuffer(value) {
|
|
1457
|
-
|
|
1458
|
-
return (_b3 = (_a3 = globalThis.Buffer) == null ? void 0 : _a3.isBuffer(value)) != null ? _b3 : false;
|
|
1653
|
+
return globalThis.Buffer?.isBuffer(value) ?? false;
|
|
1459
1654
|
}
|
|
1460
1655
|
|
|
1461
1656
|
// src/is-non-nullable.ts
|
|
@@ -1492,7 +1687,7 @@ function isUrlSupported({
|
|
|
1492
1687
|
if (isTopLevelOnly) {
|
|
1493
1688
|
return `${mediaType}/` === mediaTypePrefix;
|
|
1494
1689
|
}
|
|
1495
|
-
return mediaType.startsWith(mediaTypePrefix);
|
|
1690
|
+
return mediaTypePrefix.endsWith("/") ? mediaType.startsWith(mediaTypePrefix) : mediaType === mediaTypePrefix;
|
|
1496
1691
|
}).flatMap(({ regexes }) => regexes).some((pattern) => testRegExpFromStart(pattern, url));
|
|
1497
1692
|
}
|
|
1498
1693
|
function testRegExpFromStart(pattern, value) {
|
|
@@ -1655,15 +1850,34 @@ function mapReasoningToProviderBudget({
|
|
|
1655
1850
|
|
|
1656
1851
|
// src/media-type-to-extension.ts
|
|
1657
1852
|
function mediaTypeToExtension(mediaType) {
|
|
1658
|
-
var _a3;
|
|
1659
1853
|
const [_type, subtype = ""] = mediaType.toLowerCase().split("/");
|
|
1660
|
-
return
|
|
1854
|
+
return {
|
|
1661
1855
|
mpeg: "mp3",
|
|
1662
1856
|
"x-wav": "wav",
|
|
1663
1857
|
opus: "ogg",
|
|
1664
1858
|
mp4: "m4a",
|
|
1665
1859
|
"x-m4a": "m4a"
|
|
1666
|
-
}[subtype]
|
|
1860
|
+
}[subtype] ?? subtype;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
// src/normalize-batch-request-counts.ts
|
|
1864
|
+
function normalizeBatchRequestCounts({
|
|
1865
|
+
total,
|
|
1866
|
+
pending,
|
|
1867
|
+
completed,
|
|
1868
|
+
failed
|
|
1869
|
+
}) {
|
|
1870
|
+
if (isNonNegativeSafeInteger(total) && isNonNegativeSafeInteger(pending) && isNonNegativeSafeInteger(completed) && isNonNegativeSafeInteger(failed) && pending + completed + failed === total) {
|
|
1871
|
+
return {
|
|
1872
|
+
total,
|
|
1873
|
+
pending,
|
|
1874
|
+
completed,
|
|
1875
|
+
failed
|
|
1876
|
+
};
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
function isNonNegativeSafeInteger(value) {
|
|
1880
|
+
return value != null && Number.isSafeInteger(value) && value >= 0;
|
|
1667
1881
|
}
|
|
1668
1882
|
|
|
1669
1883
|
// src/parse-json.ts
|
|
@@ -1711,7 +1925,7 @@ function secureJsonParse(text) {
|
|
|
1711
1925
|
const { stackTraceLimit } = Error;
|
|
1712
1926
|
try {
|
|
1713
1927
|
Error.stackTraceLimit = 0;
|
|
1714
|
-
} catch
|
|
1928
|
+
} catch {
|
|
1715
1929
|
return _parse(text);
|
|
1716
1930
|
}
|
|
1717
1931
|
try {
|
|
@@ -1734,7 +1948,8 @@ import { toJSONSchema } from "zod/v4/core";
|
|
|
1734
1948
|
// src/add-additional-properties-to-json-schema.ts
|
|
1735
1949
|
function addAdditionalPropertiesToJsonSchema(jsonSchema2) {
|
|
1736
1950
|
if (jsonSchema2.type === "object" || Array.isArray(jsonSchema2.type) && jsonSchema2.type.includes("object")) {
|
|
1737
|
-
|
|
1951
|
+
const { additionalProperties } = jsonSchema2;
|
|
1952
|
+
jsonSchema2.additionalProperties = additionalProperties != null && typeof additionalProperties !== "boolean" ? visit(additionalProperties) : false;
|
|
1738
1953
|
const { properties } = jsonSchema2;
|
|
1739
1954
|
if (properties != null) {
|
|
1740
1955
|
for (const key of Object.keys(properties)) {
|
|
@@ -1807,11 +2022,10 @@ function parseAnyDef() {
|
|
|
1807
2022
|
|
|
1808
2023
|
// src/to-json-schema/zod3-to-json-schema/parsers/array.ts
|
|
1809
2024
|
function parseArrayDef(def, refs) {
|
|
1810
|
-
var _a3, _b3, _c;
|
|
1811
2025
|
const res = {
|
|
1812
2026
|
type: "array"
|
|
1813
2027
|
};
|
|
1814
|
-
if (
|
|
2028
|
+
if (def.type?._def && def.type?._def?.typeName !== "ZodAny") {
|
|
1815
2029
|
res.items = parseDef(def.type._def, {
|
|
1816
2030
|
...refs,
|
|
1817
2031
|
currentPath: [...refs.currentPath, "items"]
|
|
@@ -1878,7 +2092,7 @@ var parseCatchDef = (def, refs) => {
|
|
|
1878
2092
|
|
|
1879
2093
|
// src/to-json-schema/zod3-to-json-schema/parsers/date.ts
|
|
1880
2094
|
function parseDateDef(def, refs, overrideDateStrategy) {
|
|
1881
|
-
const strategy = overrideDateStrategy
|
|
2095
|
+
const strategy = overrideDateStrategy ?? refs.dateStrategy;
|
|
1882
2096
|
if (Array.isArray(strategy)) {
|
|
1883
2097
|
return {
|
|
1884
2098
|
anyOf: strategy.map((item) => parseDateDef(def, refs, item))
|
|
@@ -1997,7 +2211,7 @@ var zodPatterns = {
|
|
|
1997
2211
|
/**
|
|
1998
2212
|
* `a-z` was added to replicate /i flag
|
|
1999
2213
|
*/
|
|
2000
|
-
email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'
|
|
2214
|
+
email: /^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9-]*\.)+[a-zA-Z]{2,}$/,
|
|
2001
2215
|
/**
|
|
2002
2216
|
* Constructed a valid Unicode RegExp
|
|
2003
2217
|
*
|
|
@@ -2199,8 +2413,7 @@ function escapeNonAlphaNumeric(source) {
|
|
|
2199
2413
|
return result;
|
|
2200
2414
|
}
|
|
2201
2415
|
function addFormat(schema, value, message, refs) {
|
|
2202
|
-
|
|
2203
|
-
if (schema.format || ((_a3 = schema.anyOf) == null ? void 0 : _a3.some((x) => x.format))) {
|
|
2416
|
+
if (schema.format || schema.anyOf?.some((x) => x.format)) {
|
|
2204
2417
|
if (!schema.anyOf) {
|
|
2205
2418
|
schema.anyOf = [];
|
|
2206
2419
|
}
|
|
@@ -2219,8 +2432,7 @@ function addFormat(schema, value, message, refs) {
|
|
|
2219
2432
|
}
|
|
2220
2433
|
}
|
|
2221
2434
|
function addPattern(schema, regex, message, refs) {
|
|
2222
|
-
|
|
2223
|
-
if (schema.pattern || ((_a3 = schema.allOf) == null ? void 0 : _a3.some((x) => x.pattern))) {
|
|
2435
|
+
if (schema.pattern || schema.allOf?.some((x) => x.pattern)) {
|
|
2224
2436
|
if (!schema.allOf) {
|
|
2225
2437
|
schema.allOf = [];
|
|
2226
2438
|
}
|
|
@@ -2239,7 +2451,6 @@ function addPattern(schema, regex, message, refs) {
|
|
|
2239
2451
|
}
|
|
2240
2452
|
}
|
|
2241
2453
|
function stringifyRegExpWithFlags(regex, refs) {
|
|
2242
|
-
var _a3;
|
|
2243
2454
|
if (!refs.applyRegexFlags || !regex.flags) {
|
|
2244
2455
|
return regex.source;
|
|
2245
2456
|
}
|
|
@@ -2269,7 +2480,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
2269
2480
|
pattern += source[i];
|
|
2270
2481
|
pattern += `${source[i - 2]}-${source[i]}`.toUpperCase();
|
|
2271
2482
|
inCharRange = false;
|
|
2272
|
-
} else if (source[i + 1] === "-" &&
|
|
2483
|
+
} else if (source[i + 1] === "-" && source[i + 2]?.match(/[a-z]/)) {
|
|
2273
2484
|
pattern += source[i];
|
|
2274
2485
|
inCharRange = true;
|
|
2275
2486
|
} else {
|
|
@@ -2310,7 +2521,7 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
2310
2521
|
}
|
|
2311
2522
|
try {
|
|
2312
2523
|
new RegExp(pattern);
|
|
2313
|
-
} catch
|
|
2524
|
+
} catch {
|
|
2314
2525
|
console.warn(
|
|
2315
2526
|
`Could not convert regex pattern at ${refs.currentPath.join(
|
|
2316
2527
|
"/"
|
|
@@ -2323,28 +2534,27 @@ function stringifyRegExpWithFlags(regex, refs) {
|
|
|
2323
2534
|
|
|
2324
2535
|
// src/to-json-schema/zod3-to-json-schema/parsers/record.ts
|
|
2325
2536
|
function parseRecordDef(def, refs) {
|
|
2326
|
-
var _a3, _b3, _c, _d, _e, _f;
|
|
2327
2537
|
const schema = {
|
|
2328
2538
|
type: "object",
|
|
2329
|
-
additionalProperties:
|
|
2539
|
+
additionalProperties: parseDef(def.valueType._def, {
|
|
2330
2540
|
...refs,
|
|
2331
2541
|
currentPath: [...refs.currentPath, "additionalProperties"]
|
|
2332
|
-
})
|
|
2542
|
+
}) ?? refs.allowedAdditionalProperties
|
|
2333
2543
|
};
|
|
2334
|
-
if (
|
|
2544
|
+
if (def.keyType?._def.typeName === "ZodString" && def.keyType._def.checks?.length) {
|
|
2335
2545
|
const { type: _type, ...keyType } = parseStringDef(def.keyType._def, refs);
|
|
2336
2546
|
return {
|
|
2337
2547
|
...schema,
|
|
2338
2548
|
propertyNames: keyType
|
|
2339
2549
|
};
|
|
2340
|
-
} else if (
|
|
2550
|
+
} else if (def.keyType?._def.typeName === "ZodEnum") {
|
|
2341
2551
|
return {
|
|
2342
2552
|
...schema,
|
|
2343
2553
|
propertyNames: {
|
|
2344
2554
|
enum: def.keyType._def.values
|
|
2345
2555
|
}
|
|
2346
2556
|
};
|
|
2347
|
-
} else if (
|
|
2557
|
+
} else if (def.keyType?._def.typeName === "ZodBranded" && def.keyType._def.type._def.typeName === "ZodString" && def.keyType._def.type._def.checks?.length) {
|
|
2348
2558
|
const { type: _type, ...keyType } = parseBrandedDef(
|
|
2349
2559
|
def.keyType._def,
|
|
2350
2560
|
refs
|
|
@@ -2597,15 +2807,14 @@ function decideAdditionalProperties(def, refs) {
|
|
|
2597
2807
|
function safeIsOptional(schema) {
|
|
2598
2808
|
try {
|
|
2599
2809
|
return schema.isOptional();
|
|
2600
|
-
} catch
|
|
2810
|
+
} catch {
|
|
2601
2811
|
return true;
|
|
2602
2812
|
}
|
|
2603
2813
|
}
|
|
2604
2814
|
|
|
2605
2815
|
// src/to-json-schema/zod3-to-json-schema/parsers/optional.ts
|
|
2606
2816
|
var parseOptionalDef = (def, refs) => {
|
|
2607
|
-
|
|
2608
|
-
if (refs.currentPath.toString() === ((_a3 = refs.propertyPath) == null ? void 0 : _a3.toString())) {
|
|
2817
|
+
if (refs.currentPath.toString() === refs.propertyPath?.toString()) {
|
|
2609
2818
|
return parseDef(def.innerType._def, refs);
|
|
2610
2819
|
}
|
|
2611
2820
|
const innerSchema = parseDef(def.innerType._def, {
|
|
@@ -2804,11 +3013,9 @@ var getRelativePath = (pathA, pathB) => {
|
|
|
2804
3013
|
|
|
2805
3014
|
// src/to-json-schema/zod3-to-json-schema/parse-def.ts
|
|
2806
3015
|
function parseDef(def, refs, forceResolution = false) {
|
|
2807
|
-
var _a3;
|
|
2808
3016
|
const seenItem = refs.seen.get(def);
|
|
2809
3017
|
if (refs.override) {
|
|
2810
|
-
const overrideResult =
|
|
2811
|
-
refs,
|
|
3018
|
+
const overrideResult = refs.override?.(
|
|
2812
3019
|
def,
|
|
2813
3020
|
refs,
|
|
2814
3021
|
seenItem,
|
|
@@ -2890,34 +3097,30 @@ var getRefs = (options) => {
|
|
|
2890
3097
|
|
|
2891
3098
|
// src/to-json-schema/zod3-to-json-schema/zod3-to-json-schema.ts
|
|
2892
3099
|
var zod3ToJsonSchema = (schema, options) => {
|
|
2893
|
-
var _a3;
|
|
2894
3100
|
const refs = getRefs(options);
|
|
2895
3101
|
let definitions = typeof options === "object" && options.definitions ? Object.entries(options.definitions).reduce(
|
|
2896
|
-
(acc, [name4, schema2]) => {
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
)) != null ? _a4 : parseAnyDef()
|
|
2908
|
-
};
|
|
2909
|
-
},
|
|
3102
|
+
(acc, [name4, schema2]) => ({
|
|
3103
|
+
...acc,
|
|
3104
|
+
[name4]: parseDef(
|
|
3105
|
+
schema2._def,
|
|
3106
|
+
{
|
|
3107
|
+
...refs,
|
|
3108
|
+
currentPath: [...refs.basePath, refs.definitionPath, name4]
|
|
3109
|
+
},
|
|
3110
|
+
true
|
|
3111
|
+
) ?? parseAnyDef()
|
|
3112
|
+
}),
|
|
2910
3113
|
{}
|
|
2911
3114
|
) : void 0;
|
|
2912
|
-
const name3 = typeof options === "string" ? options :
|
|
2913
|
-
const main =
|
|
3115
|
+
const name3 = typeof options === "string" ? options : options?.nameStrategy === "title" ? void 0 : options?.name;
|
|
3116
|
+
const main = parseDef(
|
|
2914
3117
|
schema._def,
|
|
2915
3118
|
name3 === void 0 ? refs : {
|
|
2916
3119
|
...refs,
|
|
2917
3120
|
currentPath: [...refs.basePath, refs.definitionPath, name3]
|
|
2918
3121
|
},
|
|
2919
3122
|
false
|
|
2920
|
-
)
|
|
3123
|
+
) ?? parseAnyDef();
|
|
2921
3124
|
const title = typeof options === "object" && options.name !== void 0 && options.nameStrategy === "title" ? options.name : void 0;
|
|
2922
3125
|
if (title !== void 0) {
|
|
2923
3126
|
main.title = title;
|
|
@@ -3009,8 +3212,7 @@ function hasStandardJsonSchema(schema) {
|
|
|
3009
3212
|
return schema["~standard"].jsonSchema != null;
|
|
3010
3213
|
}
|
|
3011
3214
|
function zod3Schema(zodSchema2, options) {
|
|
3012
|
-
|
|
3013
|
-
const useReferences = (_a3 = options == null ? void 0 : options.useReferences) != null ? _a3 : false;
|
|
3215
|
+
const useReferences = options?.useReferences ?? false;
|
|
3014
3216
|
return jsonSchema(
|
|
3015
3217
|
// defer json schema creation to avoid unnecessary computation when only validation is needed
|
|
3016
3218
|
() => zod3ToJsonSchema(zodSchema2, {
|
|
@@ -3025,8 +3227,7 @@ function zod3Schema(zodSchema2, options) {
|
|
|
3025
3227
|
);
|
|
3026
3228
|
}
|
|
3027
3229
|
function zod4Schema(zodSchema2, options) {
|
|
3028
|
-
|
|
3029
|
-
const useReferences = (_a3 = options == null ? void 0 : options.useReferences) != null ? _a3 : false;
|
|
3230
|
+
const useReferences = options?.useReferences ?? false;
|
|
3030
3231
|
return jsonSchema(
|
|
3031
3232
|
// defer json schema creation to avoid unnecessary computation when only validation is needed
|
|
3032
3233
|
() => addAdditionalPropertiesToJsonSchema(
|
|
@@ -3135,7 +3336,7 @@ function isParsableJson(input) {
|
|
|
3135
3336
|
try {
|
|
3136
3337
|
secureJsonParse(input);
|
|
3137
3338
|
return true;
|
|
3138
|
-
} catch
|
|
3339
|
+
} catch {
|
|
3139
3340
|
return false;
|
|
3140
3341
|
}
|
|
3141
3342
|
}
|
|
@@ -3167,7 +3368,7 @@ async function parseProviderOptions({
|
|
|
3167
3368
|
providerOptions,
|
|
3168
3369
|
schema
|
|
3169
3370
|
}) {
|
|
3170
|
-
if (
|
|
3371
|
+
if (providerOptions?.[provider] == null) {
|
|
3171
3372
|
return void 0;
|
|
3172
3373
|
}
|
|
3173
3374
|
const parsedProviderOptions = await safeValidateTypes({
|
|
@@ -3184,9 +3385,179 @@ async function parseProviderOptions({
|
|
|
3184
3385
|
return parsedProviderOptions.value;
|
|
3185
3386
|
}
|
|
3186
3387
|
|
|
3388
|
+
// src/post-multipart-stream-to-api.ts
|
|
3389
|
+
import { APICallError as APICallError4 } from "@ai-sdk/provider";
|
|
3390
|
+
var getOriginalFetch3 = () => globalThis.fetch;
|
|
3391
|
+
function escapeMultipartHeaderValue(value) {
|
|
3392
|
+
return value.replace(/[\r\n]/g, "").replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
3393
|
+
}
|
|
3394
|
+
function createMultipartBody(parts, boundary) {
|
|
3395
|
+
const encoder = new TextEncoder();
|
|
3396
|
+
let disposed = false;
|
|
3397
|
+
let activeReader;
|
|
3398
|
+
const enteredStreams = /* @__PURE__ */ new Set();
|
|
3399
|
+
async function* emitParts() {
|
|
3400
|
+
for (const part of parts) {
|
|
3401
|
+
if (disposed) return;
|
|
3402
|
+
const disposition = `--${boundary}\r
|
|
3403
|
+
Content-Disposition: form-data; name="${escapeMultipartHeaderValue(part.name)}"`;
|
|
3404
|
+
if (part.type === "field") {
|
|
3405
|
+
yield encoder.encode(`${disposition}\r
|
|
3406
|
+
\r
|
|
3407
|
+
${part.value}\r
|
|
3408
|
+
`);
|
|
3409
|
+
continue;
|
|
3410
|
+
}
|
|
3411
|
+
const filenameParameter = `; filename="${escapeMultipartHeaderValue(
|
|
3412
|
+
part.filename ?? "blob"
|
|
3413
|
+
)}"`;
|
|
3414
|
+
const mediaType = (part.mediaType ?? "application/octet-stream").replace(
|
|
3415
|
+
/[\r\n]/g,
|
|
3416
|
+
""
|
|
3417
|
+
);
|
|
3418
|
+
yield encoder.encode(
|
|
3419
|
+
`${disposition}${filenameParameter}\r
|
|
3420
|
+
Content-Type: ${mediaType}\r
|
|
3421
|
+
\r
|
|
3422
|
+
`
|
|
3423
|
+
);
|
|
3424
|
+
if (part.content instanceof Uint8Array) {
|
|
3425
|
+
yield part.content;
|
|
3426
|
+
} else {
|
|
3427
|
+
const reader = part.content.getReader();
|
|
3428
|
+
activeReader = reader;
|
|
3429
|
+
enteredStreams.add(part.content);
|
|
3430
|
+
let finished = false;
|
|
3431
|
+
try {
|
|
3432
|
+
while (true) {
|
|
3433
|
+
const { done, value } = await reader.read();
|
|
3434
|
+
if (done || disposed) {
|
|
3435
|
+
finished = done;
|
|
3436
|
+
break;
|
|
3437
|
+
}
|
|
3438
|
+
yield value;
|
|
3439
|
+
}
|
|
3440
|
+
} finally {
|
|
3441
|
+
activeReader = void 0;
|
|
3442
|
+
if (!finished) {
|
|
3443
|
+
await reader.cancel().catch(() => {
|
|
3444
|
+
});
|
|
3445
|
+
}
|
|
3446
|
+
reader.releaseLock();
|
|
3447
|
+
}
|
|
3448
|
+
if (disposed) return;
|
|
3449
|
+
}
|
|
3450
|
+
yield encoder.encode("\r\n");
|
|
3451
|
+
}
|
|
3452
|
+
yield encoder.encode(`--${boundary}--\r
|
|
3453
|
+
`);
|
|
3454
|
+
}
|
|
3455
|
+
return {
|
|
3456
|
+
stream: convertAsyncIteratorToReadableStream(emitParts()),
|
|
3457
|
+
async dispose(reason) {
|
|
3458
|
+
if (disposed) return;
|
|
3459
|
+
disposed = true;
|
|
3460
|
+
const reader = activeReader;
|
|
3461
|
+
if (reader != null) {
|
|
3462
|
+
await reader.cancel(reason).catch(() => {
|
|
3463
|
+
});
|
|
3464
|
+
}
|
|
3465
|
+
for (const part of parts) {
|
|
3466
|
+
if (part.type === "file" && !(part.content instanceof Uint8Array) && !enteredStreams.has(part.content)) {
|
|
3467
|
+
await part.content.cancel(reason).catch(() => {
|
|
3468
|
+
});
|
|
3469
|
+
}
|
|
3470
|
+
}
|
|
3471
|
+
}
|
|
3472
|
+
};
|
|
3473
|
+
}
|
|
3474
|
+
var postMultipartStreamToApi = async ({
|
|
3475
|
+
url,
|
|
3476
|
+
headers = {},
|
|
3477
|
+
parts,
|
|
3478
|
+
failedResponseHandler,
|
|
3479
|
+
successfulResponseHandler,
|
|
3480
|
+
abortSignal,
|
|
3481
|
+
fetch = getOriginalFetch3()
|
|
3482
|
+
}) => {
|
|
3483
|
+
const boundary = `ai-sdk-multipart-${generateId()}`;
|
|
3484
|
+
const requestBodyValues = Object.fromEntries(
|
|
3485
|
+
parts.map((part) => [
|
|
3486
|
+
part.name,
|
|
3487
|
+
part.type === "field" ? part.value : `<file:${part.filename ?? part.name}>`
|
|
3488
|
+
])
|
|
3489
|
+
);
|
|
3490
|
+
const body = createMultipartBody(parts, boundary);
|
|
3491
|
+
try {
|
|
3492
|
+
const requestInit = {
|
|
3493
|
+
method: "POST",
|
|
3494
|
+
headers: withUserAgentSuffix(
|
|
3495
|
+
{
|
|
3496
|
+
...headers,
|
|
3497
|
+
"Content-Type": `multipart/form-data; boundary=${boundary}`
|
|
3498
|
+
},
|
|
3499
|
+
`ai-sdk-provider-utils/${VERSION}`,
|
|
3500
|
+
getRuntimeEnvironmentUserAgent()
|
|
3501
|
+
),
|
|
3502
|
+
body: body.stream,
|
|
3503
|
+
duplex: "half",
|
|
3504
|
+
signal: abortSignal
|
|
3505
|
+
};
|
|
3506
|
+
const response = await fetch(url, requestInit);
|
|
3507
|
+
const responseHeaders = extractResponseHeaders(response);
|
|
3508
|
+
if (!response.ok) {
|
|
3509
|
+
let errorInformation;
|
|
3510
|
+
try {
|
|
3511
|
+
errorInformation = await failedResponseHandler({
|
|
3512
|
+
response,
|
|
3513
|
+
url,
|
|
3514
|
+
requestBodyValues
|
|
3515
|
+
});
|
|
3516
|
+
} catch (error) {
|
|
3517
|
+
if (isAbortError(error) || APICallError4.isInstance(error)) {
|
|
3518
|
+
throw error;
|
|
3519
|
+
}
|
|
3520
|
+
throw new APICallError4({
|
|
3521
|
+
message: "Failed to process error response",
|
|
3522
|
+
cause: error,
|
|
3523
|
+
statusCode: response.status,
|
|
3524
|
+
url,
|
|
3525
|
+
responseHeaders,
|
|
3526
|
+
requestBodyValues
|
|
3527
|
+
});
|
|
3528
|
+
}
|
|
3529
|
+
throw errorInformation.value;
|
|
3530
|
+
}
|
|
3531
|
+
try {
|
|
3532
|
+
return await successfulResponseHandler({
|
|
3533
|
+
response,
|
|
3534
|
+
url,
|
|
3535
|
+
requestBodyValues
|
|
3536
|
+
});
|
|
3537
|
+
} catch (error) {
|
|
3538
|
+
if (error instanceof Error) {
|
|
3539
|
+
if (isAbortError(error) || APICallError4.isInstance(error)) {
|
|
3540
|
+
throw error;
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
throw new APICallError4({
|
|
3544
|
+
message: "Failed to process successful response",
|
|
3545
|
+
cause: error,
|
|
3546
|
+
statusCode: response.status,
|
|
3547
|
+
url,
|
|
3548
|
+
responseHeaders,
|
|
3549
|
+
requestBodyValues
|
|
3550
|
+
});
|
|
3551
|
+
}
|
|
3552
|
+
} catch (error) {
|
|
3553
|
+
await body.dispose(error);
|
|
3554
|
+
throw handleFetchError({ error, url, requestBodyValues });
|
|
3555
|
+
}
|
|
3556
|
+
};
|
|
3557
|
+
|
|
3187
3558
|
// src/post-to-api.ts
|
|
3188
|
-
import { APICallError as
|
|
3189
|
-
var
|
|
3559
|
+
import { APICallError as APICallError5 } from "@ai-sdk/provider";
|
|
3560
|
+
var getOriginalFetch4 = () => globalThis.fetch;
|
|
3190
3561
|
var postJsonToApi = async ({
|
|
3191
3562
|
url,
|
|
3192
3563
|
headers,
|
|
@@ -3237,14 +3608,14 @@ var postToApi = async ({
|
|
|
3237
3608
|
successfulResponseHandler,
|
|
3238
3609
|
failedResponseHandler,
|
|
3239
3610
|
abortSignal,
|
|
3240
|
-
fetch =
|
|
3611
|
+
fetch = getOriginalFetch4()
|
|
3241
3612
|
}) => {
|
|
3242
3613
|
try {
|
|
3243
3614
|
const response = await fetch(url, {
|
|
3244
3615
|
method: "POST",
|
|
3245
3616
|
headers: withUserAgentSuffix(
|
|
3246
3617
|
headers,
|
|
3247
|
-
`ai-sdk
|
|
3618
|
+
`ai-sdk-provider-utils/${VERSION}`,
|
|
3248
3619
|
getRuntimeEnvironmentUserAgent()
|
|
3249
3620
|
),
|
|
3250
3621
|
body: body.content,
|
|
@@ -3260,10 +3631,10 @@ var postToApi = async ({
|
|
|
3260
3631
|
requestBodyValues: body.values
|
|
3261
3632
|
});
|
|
3262
3633
|
} catch (error) {
|
|
3263
|
-
if (isAbortError(error) ||
|
|
3634
|
+
if (isAbortError(error) || APICallError5.isInstance(error)) {
|
|
3264
3635
|
throw error;
|
|
3265
3636
|
}
|
|
3266
|
-
throw new
|
|
3637
|
+
throw new APICallError5({
|
|
3267
3638
|
message: "Failed to process error response",
|
|
3268
3639
|
cause: error,
|
|
3269
3640
|
statusCode: response.status,
|
|
@@ -3282,11 +3653,11 @@ var postToApi = async ({
|
|
|
3282
3653
|
});
|
|
3283
3654
|
} catch (error) {
|
|
3284
3655
|
if (error instanceof Error) {
|
|
3285
|
-
if (isAbortError(error) ||
|
|
3656
|
+
if (isAbortError(error) || APICallError5.isInstance(error)) {
|
|
3286
3657
|
throw error;
|
|
3287
3658
|
}
|
|
3288
3659
|
}
|
|
3289
|
-
throw new
|
|
3660
|
+
throw new APICallError5({
|
|
3290
3661
|
message: "Failed to process successful response",
|
|
3291
3662
|
cause: error,
|
|
3292
3663
|
statusCode: response.status,
|
|
@@ -3397,12 +3768,12 @@ async function resolve(value) {
|
|
|
3397
3768
|
if (typeof value === "function") {
|
|
3398
3769
|
value = value();
|
|
3399
3770
|
}
|
|
3400
|
-
return
|
|
3771
|
+
return value;
|
|
3401
3772
|
}
|
|
3402
3773
|
|
|
3403
3774
|
// src/resolve-full-media-type.ts
|
|
3404
3775
|
import {
|
|
3405
|
-
UnsupportedFunctionalityError
|
|
3776
|
+
UnsupportedFunctionalityError as UnsupportedFunctionalityError2
|
|
3406
3777
|
} from "@ai-sdk/provider";
|
|
3407
3778
|
function resolveFullMediaType({
|
|
3408
3779
|
part
|
|
@@ -3418,11 +3789,11 @@ function resolveFullMediaType({
|
|
|
3418
3789
|
if (detected) {
|
|
3419
3790
|
return detected;
|
|
3420
3791
|
}
|
|
3421
|
-
throw new
|
|
3792
|
+
throw new UnsupportedFunctionalityError2({
|
|
3422
3793
|
functionality: `file of media type "${part.mediaType}" must specify subtype since it could not be auto-detected`
|
|
3423
3794
|
});
|
|
3424
3795
|
}
|
|
3425
|
-
throw new
|
|
3796
|
+
throw new UnsupportedFunctionalityError2({
|
|
3426
3797
|
functionality: `file of media type "${part.mediaType}" must specify subtype since it is not passed as inline bytes`
|
|
3427
3798
|
});
|
|
3428
3799
|
}
|
|
@@ -3525,8 +3896,64 @@ async function retryWithExponentialBackoffInternal(f, {
|
|
|
3525
3896
|
}
|
|
3526
3897
|
|
|
3527
3898
|
// src/response-handler.ts
|
|
3528
|
-
import { APICallError as
|
|
3899
|
+
import { APICallError as APICallError6, EmptyResponseBodyError } from "@ai-sdk/provider";
|
|
3529
3900
|
var textDecoder2 = new TextDecoder();
|
|
3901
|
+
function wrapResponseBodyStream({
|
|
3902
|
+
stream,
|
|
3903
|
+
url,
|
|
3904
|
+
requestBodyValues,
|
|
3905
|
+
statusCode,
|
|
3906
|
+
responseHeaders
|
|
3907
|
+
}) {
|
|
3908
|
+
const reader = stream.getReader();
|
|
3909
|
+
let readerReleased = false;
|
|
3910
|
+
const releaseReader = () => {
|
|
3911
|
+
if (!readerReleased) {
|
|
3912
|
+
reader.releaseLock();
|
|
3913
|
+
readerReleased = true;
|
|
3914
|
+
}
|
|
3915
|
+
};
|
|
3916
|
+
return new ReadableStream({
|
|
3917
|
+
async pull(controller) {
|
|
3918
|
+
try {
|
|
3919
|
+
const { done, value } = await reader.read();
|
|
3920
|
+
if (done) {
|
|
3921
|
+
releaseReader();
|
|
3922
|
+
controller.close();
|
|
3923
|
+
} else {
|
|
3924
|
+
controller.enqueue(value);
|
|
3925
|
+
}
|
|
3926
|
+
} catch (error) {
|
|
3927
|
+
releaseReader();
|
|
3928
|
+
if (isAbortError(error)) {
|
|
3929
|
+
controller.error(error);
|
|
3930
|
+
return;
|
|
3931
|
+
}
|
|
3932
|
+
controller.error(
|
|
3933
|
+
handleFetchError({
|
|
3934
|
+
error: new APICallError6({
|
|
3935
|
+
message: "Failed to process successful response",
|
|
3936
|
+
cause: error,
|
|
3937
|
+
statusCode,
|
|
3938
|
+
url,
|
|
3939
|
+
responseHeaders,
|
|
3940
|
+
requestBodyValues
|
|
3941
|
+
}),
|
|
3942
|
+
url,
|
|
3943
|
+
requestBodyValues
|
|
3944
|
+
})
|
|
3945
|
+
);
|
|
3946
|
+
}
|
|
3947
|
+
},
|
|
3948
|
+
async cancel(reason) {
|
|
3949
|
+
try {
|
|
3950
|
+
await reader.cancel(reason);
|
|
3951
|
+
} finally {
|
|
3952
|
+
releaseReader();
|
|
3953
|
+
}
|
|
3954
|
+
}
|
|
3955
|
+
});
|
|
3956
|
+
}
|
|
3530
3957
|
async function readResponseBodyAsText({
|
|
3531
3958
|
response,
|
|
3532
3959
|
url
|
|
@@ -3548,14 +3975,14 @@ var createJsonErrorResponseHandler = ({
|
|
|
3548
3975
|
if (responseBody.trim() === "") {
|
|
3549
3976
|
return {
|
|
3550
3977
|
responseHeaders,
|
|
3551
|
-
value: new
|
|
3978
|
+
value: new APICallError6({
|
|
3552
3979
|
message: response.statusText,
|
|
3553
3980
|
url,
|
|
3554
3981
|
requestBodyValues,
|
|
3555
3982
|
statusCode: response.status,
|
|
3556
3983
|
responseHeaders,
|
|
3557
3984
|
responseBody,
|
|
3558
|
-
isRetryable: isRetryable
|
|
3985
|
+
isRetryable: isRetryable?.(response)
|
|
3559
3986
|
})
|
|
3560
3987
|
};
|
|
3561
3988
|
}
|
|
@@ -3566,7 +3993,7 @@ var createJsonErrorResponseHandler = ({
|
|
|
3566
3993
|
});
|
|
3567
3994
|
return {
|
|
3568
3995
|
responseHeaders,
|
|
3569
|
-
value: new
|
|
3996
|
+
value: new APICallError6({
|
|
3570
3997
|
message: errorToMessage(parsedError),
|
|
3571
3998
|
url,
|
|
3572
3999
|
requestBodyValues,
|
|
@@ -3574,25 +4001,25 @@ var createJsonErrorResponseHandler = ({
|
|
|
3574
4001
|
responseHeaders,
|
|
3575
4002
|
responseBody,
|
|
3576
4003
|
data: parsedError,
|
|
3577
|
-
isRetryable: isRetryable
|
|
4004
|
+
isRetryable: isRetryable?.(response, parsedError)
|
|
3578
4005
|
})
|
|
3579
4006
|
};
|
|
3580
|
-
} catch
|
|
4007
|
+
} catch {
|
|
3581
4008
|
return {
|
|
3582
4009
|
responseHeaders,
|
|
3583
|
-
value: new
|
|
4010
|
+
value: new APICallError6({
|
|
3584
4011
|
message: response.statusText,
|
|
3585
4012
|
url,
|
|
3586
4013
|
requestBodyValues,
|
|
3587
4014
|
statusCode: response.status,
|
|
3588
4015
|
responseHeaders,
|
|
3589
4016
|
responseBody,
|
|
3590
|
-
isRetryable: isRetryable
|
|
4017
|
+
isRetryable: isRetryable?.(response)
|
|
3591
4018
|
})
|
|
3592
4019
|
};
|
|
3593
4020
|
}
|
|
3594
4021
|
};
|
|
3595
|
-
var createEventSourceResponseHandler = (chunkSchema) => async ({ response }) => {
|
|
4022
|
+
var createEventSourceResponseHandler = (chunkSchema) => async ({ response, url, requestBodyValues }) => {
|
|
3596
4023
|
const responseHeaders = extractResponseHeaders(response);
|
|
3597
4024
|
if (response.body == null) {
|
|
3598
4025
|
throw new EmptyResponseBodyError({});
|
|
@@ -3600,7 +4027,13 @@ var createEventSourceResponseHandler = (chunkSchema) => async ({ response }) =>
|
|
|
3600
4027
|
return {
|
|
3601
4028
|
responseHeaders,
|
|
3602
4029
|
value: parseJsonEventStream({
|
|
3603
|
-
stream:
|
|
4030
|
+
stream: wrapResponseBodyStream({
|
|
4031
|
+
stream: response.body,
|
|
4032
|
+
url,
|
|
4033
|
+
requestBodyValues,
|
|
4034
|
+
statusCode: response.status,
|
|
4035
|
+
responseHeaders
|
|
4036
|
+
}),
|
|
3604
4037
|
schema: chunkSchema
|
|
3605
4038
|
})
|
|
3606
4039
|
};
|
|
@@ -3613,7 +4046,7 @@ var createJsonResponseHandler = (responseSchema) => async ({ response, url, requ
|
|
|
3613
4046
|
});
|
|
3614
4047
|
const responseHeaders = extractResponseHeaders(response);
|
|
3615
4048
|
if (!parsedResult.success) {
|
|
3616
|
-
throw new
|
|
4049
|
+
throw new APICallError6({
|
|
3617
4050
|
message: "Invalid JSON response",
|
|
3618
4051
|
cause: parsedResult.error,
|
|
3619
4052
|
statusCode: response.status,
|
|
@@ -3629,10 +4062,62 @@ var createJsonResponseHandler = (responseSchema) => async ({ response, url, requ
|
|
|
3629
4062
|
rawValue: parsedResult.rawValue
|
|
3630
4063
|
};
|
|
3631
4064
|
};
|
|
4065
|
+
var createJsonLinesResponseHandler = (responseSchema) => async ({ response }) => {
|
|
4066
|
+
const responseHeaders = extractResponseHeaders(response);
|
|
4067
|
+
if (response.body == null) {
|
|
4068
|
+
throw new EmptyResponseBodyError({});
|
|
4069
|
+
}
|
|
4070
|
+
return {
|
|
4071
|
+
responseHeaders,
|
|
4072
|
+
value: parseJsonLines({
|
|
4073
|
+
stream: response.body,
|
|
4074
|
+
schema: responseSchema
|
|
4075
|
+
})
|
|
4076
|
+
};
|
|
4077
|
+
};
|
|
4078
|
+
async function* parseJsonLines({
|
|
4079
|
+
stream,
|
|
4080
|
+
schema
|
|
4081
|
+
}) {
|
|
4082
|
+
const reader = stream.getReader();
|
|
4083
|
+
const decoder = new TextDecoder();
|
|
4084
|
+
let buffer = "";
|
|
4085
|
+
let finished = false;
|
|
4086
|
+
try {
|
|
4087
|
+
while (true) {
|
|
4088
|
+
const { done, value } = await reader.read();
|
|
4089
|
+
if (done) {
|
|
4090
|
+
finished = true;
|
|
4091
|
+
buffer += decoder.decode();
|
|
4092
|
+
break;
|
|
4093
|
+
}
|
|
4094
|
+
buffer += decoder.decode(value, { stream: true });
|
|
4095
|
+
let lineEnd = buffer.indexOf("\n");
|
|
4096
|
+
while (lineEnd !== -1) {
|
|
4097
|
+
const line = buffer.slice(0, lineEnd).replace(/\r$/, "");
|
|
4098
|
+
buffer = buffer.slice(lineEnd + 1);
|
|
4099
|
+
if (line.trim().length > 0) {
|
|
4100
|
+
yield await parseJSON({ text: line, schema });
|
|
4101
|
+
}
|
|
4102
|
+
lineEnd = buffer.indexOf("\n");
|
|
4103
|
+
}
|
|
4104
|
+
}
|
|
4105
|
+
const finalLine = buffer.replace(/\r$/, "");
|
|
4106
|
+
if (finalLine.trim().length > 0) {
|
|
4107
|
+
yield await parseJSON({ text: finalLine, schema });
|
|
4108
|
+
}
|
|
4109
|
+
} finally {
|
|
4110
|
+
if (!finished) {
|
|
4111
|
+
await reader.cancel().catch(() => {
|
|
4112
|
+
});
|
|
4113
|
+
}
|
|
4114
|
+
reader.releaseLock();
|
|
4115
|
+
}
|
|
4116
|
+
}
|
|
3632
4117
|
var createBinaryResponseHandler = () => async ({ response, url, requestBodyValues }) => {
|
|
3633
4118
|
const responseHeaders = extractResponseHeaders(response);
|
|
3634
4119
|
if (!response.body) {
|
|
3635
|
-
throw new
|
|
4120
|
+
throw new APICallError6({
|
|
3636
4121
|
message: "Response body is empty",
|
|
3637
4122
|
url,
|
|
3638
4123
|
requestBodyValues,
|
|
@@ -3648,7 +4133,7 @@ var createBinaryResponseHandler = () => async ({ response, url, requestBodyValue
|
|
|
3648
4133
|
value: new Uint8Array(buffer)
|
|
3649
4134
|
};
|
|
3650
4135
|
} catch (error) {
|
|
3651
|
-
throw new
|
|
4136
|
+
throw new APICallError6({
|
|
3652
4137
|
message: "Failed to read response as array buffer",
|
|
3653
4138
|
url,
|
|
3654
4139
|
requestBodyValues,
|
|
@@ -3659,12 +4144,28 @@ var createBinaryResponseHandler = () => async ({ response, url, requestBodyValue
|
|
|
3659
4144
|
});
|
|
3660
4145
|
}
|
|
3661
4146
|
};
|
|
4147
|
+
var createBinaryStreamResponseHandler = () => async ({ response, url, requestBodyValues }) => {
|
|
4148
|
+
const responseHeaders = extractResponseHeaders(response);
|
|
4149
|
+
if (response.body == null) {
|
|
4150
|
+
throw new EmptyResponseBodyError({});
|
|
4151
|
+
}
|
|
4152
|
+
return {
|
|
4153
|
+
responseHeaders,
|
|
4154
|
+
value: wrapResponseBodyStream({
|
|
4155
|
+
stream: response.body,
|
|
4156
|
+
url,
|
|
4157
|
+
requestBodyValues,
|
|
4158
|
+
statusCode: response.status,
|
|
4159
|
+
responseHeaders
|
|
4160
|
+
})
|
|
4161
|
+
};
|
|
4162
|
+
};
|
|
3662
4163
|
var createStatusCodeErrorResponseHandler = () => async ({ response, url, requestBodyValues }) => {
|
|
3663
4164
|
const responseHeaders = extractResponseHeaders(response);
|
|
3664
4165
|
const responseBody = await readResponseBodyAsText({ response, url });
|
|
3665
4166
|
return {
|
|
3666
4167
|
responseHeaders,
|
|
3667
|
-
value: new
|
|
4168
|
+
value: new APICallError6({
|
|
3668
4169
|
message: response.statusText,
|
|
3669
4170
|
url,
|
|
3670
4171
|
requestBodyValues,
|
|
@@ -3696,8 +4197,8 @@ function isJSONSerializable(value) {
|
|
|
3696
4197
|
// src/serialization-error.ts
|
|
3697
4198
|
import { AISDKError as AISDKError2 } from "@ai-sdk/provider";
|
|
3698
4199
|
var name2 = "AI_SerializationError";
|
|
3699
|
-
var
|
|
3700
|
-
var symbol2 = Symbol.for(
|
|
4200
|
+
var marker3 = `vercel.ai.error.${name2}`;
|
|
4201
|
+
var symbol2 = Symbol.for(marker3);
|
|
3701
4202
|
var _a2, _b2;
|
|
3702
4203
|
var SerializationError = class extends (_b2 = AISDKError2, _a2 = symbol2, _b2) {
|
|
3703
4204
|
// used in isInstance
|
|
@@ -3709,7 +4210,7 @@ var SerializationError = class extends (_b2 = AISDKError2, _a2 = symbol2, _b2) {
|
|
|
3709
4210
|
this[_a2] = true;
|
|
3710
4211
|
}
|
|
3711
4212
|
static isInstance(error) {
|
|
3712
|
-
return AISDKError2.hasMarker(error,
|
|
4213
|
+
return AISDKError2.hasMarker(error, marker3);
|
|
3713
4214
|
}
|
|
3714
4215
|
};
|
|
3715
4216
|
|
|
@@ -3745,16 +4246,87 @@ function resolveSync(value) {
|
|
|
3745
4246
|
import {
|
|
3746
4247
|
InvalidResponseDataError
|
|
3747
4248
|
} from "@ai-sdk/provider";
|
|
3748
|
-
|
|
3749
|
-
|
|
4249
|
+
|
|
4250
|
+
// src/streaming-tool-call-argument-state.ts
|
|
4251
|
+
function startsWithStructuredValue(value) {
|
|
4252
|
+
if (typeof value !== "string") {
|
|
4253
|
+
return false;
|
|
4254
|
+
}
|
|
4255
|
+
const firstCharacter = value.trimStart()[0];
|
|
4256
|
+
return firstCharacter === "{" || firstCharacter === "[";
|
|
3750
4257
|
}
|
|
4258
|
+
var StreamingToolCallArgumentState = class {
|
|
4259
|
+
constructor(initialValue = "") {
|
|
4260
|
+
this.structure = { kind: "undetermined" };
|
|
4261
|
+
this.append(initialValue);
|
|
4262
|
+
}
|
|
4263
|
+
get hasCompleteStructuredValue() {
|
|
4264
|
+
return this.structure.kind === "structured" && this.structure.complete === true;
|
|
4265
|
+
}
|
|
4266
|
+
append(delta) {
|
|
4267
|
+
let nextStructure = this.structure;
|
|
4268
|
+
for (const character of delta) {
|
|
4269
|
+
if (nextStructure.kind === "undetermined") {
|
|
4270
|
+
if (/\s/.test(character)) {
|
|
4271
|
+
continue;
|
|
4272
|
+
}
|
|
4273
|
+
if (character !== "{" && character !== "[") {
|
|
4274
|
+
nextStructure = { kind: "other" };
|
|
4275
|
+
continue;
|
|
4276
|
+
}
|
|
4277
|
+
nextStructure = {
|
|
4278
|
+
kind: "structured",
|
|
4279
|
+
stack: [character],
|
|
4280
|
+
inString: false,
|
|
4281
|
+
escaped: false,
|
|
4282
|
+
complete: false
|
|
4283
|
+
};
|
|
4284
|
+
continue;
|
|
4285
|
+
}
|
|
4286
|
+
if (nextStructure.kind !== "structured" || nextStructure.complete) {
|
|
4287
|
+
continue;
|
|
4288
|
+
}
|
|
4289
|
+
if (nextStructure.inString) {
|
|
4290
|
+
if (nextStructure.escaped) {
|
|
4291
|
+
nextStructure.escaped = false;
|
|
4292
|
+
} else if (character === "\\") {
|
|
4293
|
+
nextStructure.escaped = true;
|
|
4294
|
+
} else if (character === '"') {
|
|
4295
|
+
nextStructure.inString = false;
|
|
4296
|
+
}
|
|
4297
|
+
continue;
|
|
4298
|
+
}
|
|
4299
|
+
if (character === '"') {
|
|
4300
|
+
nextStructure.inString = true;
|
|
4301
|
+
} else if (character === "{" || character === "[") {
|
|
4302
|
+
nextStructure.stack.push(character);
|
|
4303
|
+
} else if (character === "}" || character === "]") {
|
|
4304
|
+
const expectedOpening = character === "}" ? "{" : "[";
|
|
4305
|
+
if (nextStructure.stack.at(-1) !== expectedOpening) {
|
|
4306
|
+
nextStructure = { kind: "other" };
|
|
4307
|
+
continue;
|
|
4308
|
+
}
|
|
4309
|
+
nextStructure.stack.pop();
|
|
4310
|
+
if (nextStructure.stack.length === 0) {
|
|
4311
|
+
nextStructure.complete = true;
|
|
4312
|
+
}
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4315
|
+
this.structure = nextStructure;
|
|
4316
|
+
}
|
|
4317
|
+
};
|
|
4318
|
+
|
|
4319
|
+
// src/streaming-tool-call-tracker.ts
|
|
3751
4320
|
var StreamingToolCallTracker = class {
|
|
3752
4321
|
constructor(controller, options = {}) {
|
|
3753
4322
|
this.toolCalls = [];
|
|
3754
|
-
|
|
4323
|
+
this.toolCallsById = /* @__PURE__ */ new Map();
|
|
4324
|
+
this.toolCallsByIndex = /* @__PURE__ */ new Map();
|
|
4325
|
+
this.usedToolCallIds = /* @__PURE__ */ new Set();
|
|
4326
|
+
this.nextGeneratedIdSuffixes = /* @__PURE__ */ new Map();
|
|
3755
4327
|
this.controller = controller;
|
|
3756
|
-
this._generateId =
|
|
3757
|
-
this.typeValidation =
|
|
4328
|
+
this._generateId = options.generateId ?? generateId;
|
|
4329
|
+
this.typeValidation = options.typeValidation ?? "none";
|
|
3758
4330
|
this.extractMetadata = options.extractMetadata;
|
|
3759
4331
|
this.buildToolCallProviderMetadata = options.buildToolCallProviderMetadata;
|
|
3760
4332
|
}
|
|
@@ -3764,90 +4336,161 @@ var StreamingToolCallTracker = class {
|
|
|
3764
4336
|
* events as appropriate.
|
|
3765
4337
|
*/
|
|
3766
4338
|
processDelta(toolCallDelta) {
|
|
3767
|
-
|
|
3768
|
-
const wireId =
|
|
3769
|
-
const
|
|
3770
|
-
const
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
4339
|
+
const wireName = toolCallDelta.function?.name;
|
|
4340
|
+
const wireId = this.getNonBlankString(toolCallDelta.id);
|
|
4341
|
+
const name3 = this.getNonBlankString(wireName);
|
|
4342
|
+
const { index } = toolCallDelta;
|
|
4343
|
+
const resolution = this.resolveToolCall({
|
|
4344
|
+
wireId,
|
|
4345
|
+
index,
|
|
4346
|
+
name: name3,
|
|
4347
|
+
hasExplicitCallStart: name3 != null && startsWithStructuredValue(toolCallDelta.function?.arguments)
|
|
4348
|
+
});
|
|
4349
|
+
if (resolution.kind === "ambiguous") {
|
|
4350
|
+
throw new InvalidResponseDataError({
|
|
4351
|
+
data: toolCallDelta,
|
|
4352
|
+
message: "Ambiguous streamed tool call delta."
|
|
4353
|
+
});
|
|
3781
4354
|
}
|
|
3782
|
-
|
|
3783
|
-
|
|
4355
|
+
let toolCall;
|
|
4356
|
+
if (resolution.kind === "new") {
|
|
4357
|
+
toolCall = this.processNewToolCall(toolCallDelta, {
|
|
4358
|
+
wireId,
|
|
4359
|
+
index,
|
|
4360
|
+
name: name3
|
|
4361
|
+
});
|
|
4362
|
+
} else {
|
|
4363
|
+
toolCall = resolution.toolCall;
|
|
4364
|
+
if (wireId != null) {
|
|
4365
|
+
this.associateWireId(toolCall, wireId);
|
|
4366
|
+
}
|
|
4367
|
+
this.processExistingToolCall(toolCall, toolCallDelta);
|
|
3784
4368
|
}
|
|
3785
|
-
if (
|
|
3786
|
-
toolCall
|
|
4369
|
+
if (index != null) {
|
|
4370
|
+
this.associateIndex(toolCall, index);
|
|
3787
4371
|
}
|
|
3788
|
-
this.processExistingToolCall(toolCall, toolCallDelta);
|
|
3789
4372
|
}
|
|
3790
4373
|
/**
|
|
3791
|
-
*
|
|
3792
|
-
*
|
|
3793
|
-
* actually match, which is why a delta carrying only arguments never resolves here.
|
|
3794
|
-
*
|
|
3795
|
-
* Scanning stops at the first call an alias claims, and a `function.name` that disagrees
|
|
3796
|
-
* with that call rejects the delta rather than letting the scan continue. Continuing past
|
|
3797
|
-
* it reaches a call whose claim on the alias a later call has already superseded, which
|
|
3798
|
-
* files a whole new call as a continuation of one two positions back.
|
|
4374
|
+
* Finalize any unfinished tool calls. Should be called during the stream's
|
|
4375
|
+
* flush handler to ensure all tool calls are properly completed.
|
|
3799
4376
|
*/
|
|
4377
|
+
flush() {
|
|
4378
|
+
const toolCalls = this.toolCalls.every((toolCall) => toolCall.index != null) ? [...this.toolCalls].sort(
|
|
4379
|
+
(a, b) => a.index - b.index || a.sequence - b.sequence
|
|
4380
|
+
) : this.toolCalls;
|
|
4381
|
+
for (const toolCall of toolCalls) {
|
|
4382
|
+
if (!toolCall.hasFinished) {
|
|
4383
|
+
this.finishToolCall(toolCall);
|
|
4384
|
+
}
|
|
4385
|
+
}
|
|
4386
|
+
}
|
|
3800
4387
|
/**
|
|
3801
|
-
*
|
|
3802
|
-
*
|
|
3803
|
-
*
|
|
3804
|
-
*
|
|
3805
|
-
*
|
|
3806
|
-
*
|
|
4388
|
+
* Correlation precedence for streamed deltas:
|
|
4389
|
+
*
|
|
4390
|
+
* | ID evidence | index/name evidence | start evidence | resolution |
|
|
4391
|
+
* | --- | --- | --- | --- |
|
|
4392
|
+
* | known | matching | any | matching call, new call, or ambiguity |
|
|
4393
|
+
* | known | conflicting | named | new call |
|
|
4394
|
+
* | unseen | matching | structured start | new call |
|
|
4395
|
+
* | unseen | matching | continuation | matching call or ambiguity |
|
|
4396
|
+
* | absent | matching | any | matching call, new call, or ambiguity |
|
|
4397
|
+
* | absent | absent | named | new call |
|
|
4398
|
+
* | absent | absent | unnamed | sole unfinished call, new call, or ambiguity |
|
|
3807
4399
|
*/
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
4400
|
+
resolveToolCall({
|
|
4401
|
+
wireId,
|
|
4402
|
+
index,
|
|
4403
|
+
name: name3,
|
|
4404
|
+
hasExplicitCallStart
|
|
4405
|
+
}) {
|
|
4406
|
+
const indexedToolCalls = index != null ? this.toolCallsByIndex.get(index) : void 0;
|
|
4407
|
+
const matchingIndexedToolCalls = this.filterToolCallsByName(
|
|
4408
|
+
indexedToolCalls,
|
|
4409
|
+
name3
|
|
4410
|
+
);
|
|
4411
|
+
if (wireId != null) {
|
|
4412
|
+
const toolCallsWithId = this.toolCallsById.get(wireId);
|
|
4413
|
+
if (toolCallsWithId != null) {
|
|
4414
|
+
if (index != null) {
|
|
4415
|
+
const matchingToolCalls = matchingIndexedToolCalls.filter(
|
|
4416
|
+
(toolCall) => toolCallsWithId.has(toolCall)
|
|
4417
|
+
);
|
|
4418
|
+
const matchingToolCall = this.resolveMatchingToolCall(
|
|
4419
|
+
matchingToolCalls,
|
|
4420
|
+
hasExplicitCallStart
|
|
4421
|
+
);
|
|
4422
|
+
if (matchingToolCall.kind !== "new") {
|
|
4423
|
+
return matchingToolCall;
|
|
4424
|
+
}
|
|
4425
|
+
if (name3 != null) {
|
|
4426
|
+
return { kind: "new" };
|
|
4427
|
+
}
|
|
4428
|
+
if (indexedToolCalls != null) {
|
|
4429
|
+
return { kind: "ambiguous" };
|
|
4430
|
+
}
|
|
4431
|
+
return this.resolveMatchingToolCall([...toolCallsWithId], false);
|
|
3818
4432
|
}
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
4433
|
+
if (name3 != null) {
|
|
4434
|
+
const matchingToolCalls = [...toolCallsWithId].filter(
|
|
4435
|
+
(toolCall) => toolCall.function.name === name3
|
|
4436
|
+
);
|
|
4437
|
+
return this.resolveMatchingToolCall(
|
|
4438
|
+
matchingToolCalls,
|
|
4439
|
+
hasExplicitCallStart
|
|
4440
|
+
);
|
|
3824
4441
|
}
|
|
3825
|
-
|
|
4442
|
+
return this.resolveMatchingToolCall([...toolCallsWithId], false);
|
|
3826
4443
|
}
|
|
3827
|
-
if (
|
|
3828
|
-
|
|
3829
|
-
return void 0;
|
|
3830
|
-
}
|
|
3831
|
-
return wireName !== void 0 && candidate.function.name !== wireName ? void 0 : candidate;
|
|
4444
|
+
if (matchingIndexedToolCalls.length > 0) {
|
|
4445
|
+
return hasExplicitCallStart ? { kind: "new" } : this.resolveMatchingToolCall(matchingIndexedToolCalls, false);
|
|
3832
4446
|
}
|
|
4447
|
+
return { kind: "new" };
|
|
3833
4448
|
}
|
|
3834
|
-
|
|
4449
|
+
if (indexedToolCalls != null) {
|
|
4450
|
+
return this.resolveMatchingToolCall(
|
|
4451
|
+
matchingIndexedToolCalls,
|
|
4452
|
+
hasExplicitCallStart
|
|
4453
|
+
);
|
|
4454
|
+
}
|
|
4455
|
+
if (name3 != null) {
|
|
4456
|
+
return { kind: "new" };
|
|
4457
|
+
}
|
|
4458
|
+
const unfinishedToolCalls = this.toolCalls.filter(
|
|
4459
|
+
(toolCall) => !toolCall.hasFinished
|
|
4460
|
+
);
|
|
4461
|
+
if (unfinishedToolCalls.length === 1) {
|
|
4462
|
+
return { kind: "existing", toolCall: unfinishedToolCalls[0] };
|
|
4463
|
+
}
|
|
4464
|
+
return unfinishedToolCalls.length > 1 ? { kind: "ambiguous" } : { kind: "new" };
|
|
3835
4465
|
}
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
*/
|
|
3840
|
-
flush() {
|
|
3841
|
-
const indices = this.toolCalls.map((toolCall) => toolCall.index);
|
|
3842
|
-
const ordered = indices.every((index) => index !== void 0) && new Set(indices).size === indices.length ? [...this.toolCalls].sort((a, b) => a.index - b.index) : this.toolCalls;
|
|
3843
|
-
for (const toolCall of ordered) {
|
|
3844
|
-
if (!toolCall.hasFinished) {
|
|
3845
|
-
this.finishToolCall(toolCall);
|
|
3846
|
-
}
|
|
4466
|
+
filterToolCallsByName(toolCalls, name3) {
|
|
4467
|
+
if (toolCalls == null) {
|
|
4468
|
+
return [];
|
|
3847
4469
|
}
|
|
4470
|
+
return [...toolCalls].filter(
|
|
4471
|
+
(toolCall) => name3 == null || toolCall.function.name === name3
|
|
4472
|
+
);
|
|
3848
4473
|
}
|
|
3849
|
-
|
|
3850
|
-
|
|
4474
|
+
resolveMatchingToolCall(toolCalls, hasExplicitCallStart) {
|
|
4475
|
+
if (toolCalls.length === 0) {
|
|
4476
|
+
return { kind: "new" };
|
|
4477
|
+
}
|
|
4478
|
+
if (!hasExplicitCallStart) {
|
|
4479
|
+
return toolCalls.length === 1 ? { kind: "existing", toolCall: toolCalls[0] } : { kind: "ambiguous" };
|
|
4480
|
+
}
|
|
4481
|
+
const continuableToolCalls = toolCalls.filter(
|
|
4482
|
+
(toolCall) => !toolCall.argumentState.hasCompleteStructuredValue
|
|
4483
|
+
);
|
|
4484
|
+
if (continuableToolCalls.length === 1) {
|
|
4485
|
+
return { kind: "existing", toolCall: continuableToolCalls[0] };
|
|
4486
|
+
}
|
|
4487
|
+
return continuableToolCalls.length > 1 ? { kind: "ambiguous" } : { kind: "new" };
|
|
4488
|
+
}
|
|
4489
|
+
processNewToolCall(toolCallDelta, {
|
|
4490
|
+
wireId,
|
|
4491
|
+
index,
|
|
4492
|
+
name: name3
|
|
4493
|
+
}) {
|
|
3851
4494
|
if (this.typeValidation === "required") {
|
|
3852
4495
|
if (toolCallDelta.type !== "function") {
|
|
3853
4496
|
throw new InvalidResponseDataError({
|
|
@@ -3863,32 +4506,37 @@ var StreamingToolCallTracker = class {
|
|
|
3863
4506
|
});
|
|
3864
4507
|
}
|
|
3865
4508
|
}
|
|
3866
|
-
if (
|
|
4509
|
+
if (name3 == null) {
|
|
3867
4510
|
throw new InvalidResponseDataError({
|
|
3868
4511
|
data: toolCallDelta,
|
|
3869
4512
|
message: `Expected 'function.name' to be a string.`
|
|
3870
4513
|
});
|
|
3871
4514
|
}
|
|
3872
|
-
const
|
|
4515
|
+
const id = this.createToolCallId(wireId);
|
|
3873
4516
|
this.controller.enqueue({
|
|
3874
4517
|
type: "tool-input-start",
|
|
3875
|
-
id
|
|
3876
|
-
toolName:
|
|
4518
|
+
id,
|
|
4519
|
+
toolName: name3
|
|
3877
4520
|
});
|
|
3878
|
-
const metadata =
|
|
4521
|
+
const metadata = this.extractMetadata?.(toolCallDelta);
|
|
4522
|
+
const initialArguments = toolCallDelta.function?.arguments ?? "";
|
|
3879
4523
|
const toolCall = {
|
|
3880
|
-
id
|
|
4524
|
+
id,
|
|
4525
|
+
index: index ?? void 0,
|
|
4526
|
+
sequence: this.toolCalls.length,
|
|
3881
4527
|
type: "function",
|
|
3882
4528
|
function: {
|
|
3883
|
-
name:
|
|
3884
|
-
arguments:
|
|
4529
|
+
name: name3,
|
|
4530
|
+
arguments: initialArguments
|
|
3885
4531
|
},
|
|
4532
|
+
argumentState: new StreamingToolCallArgumentState(initialArguments),
|
|
3886
4533
|
hasFinished: false,
|
|
3887
|
-
metadata
|
|
3888
|
-
wireId,
|
|
3889
|
-
index: wireIndex
|
|
4534
|
+
metadata
|
|
3890
4535
|
};
|
|
3891
4536
|
this.toolCalls.push(toolCall);
|
|
4537
|
+
if (wireId != null) {
|
|
4538
|
+
this.associateWireId(toolCall, wireId);
|
|
4539
|
+
}
|
|
3892
4540
|
if (toolCall.function.arguments.length > 0) {
|
|
3893
4541
|
this.controller.enqueue({
|
|
3894
4542
|
type: "tool-input-delta",
|
|
@@ -3898,12 +4546,53 @@ var StreamingToolCallTracker = class {
|
|
|
3898
4546
|
}
|
|
3899
4547
|
return toolCall;
|
|
3900
4548
|
}
|
|
4549
|
+
associateWireId(toolCall, wireId) {
|
|
4550
|
+
let toolCallsWithId = this.toolCallsById.get(wireId);
|
|
4551
|
+
if (toolCallsWithId == null) {
|
|
4552
|
+
toolCallsWithId = /* @__PURE__ */ new Set();
|
|
4553
|
+
this.toolCallsById.set(wireId, toolCallsWithId);
|
|
4554
|
+
}
|
|
4555
|
+
toolCallsWithId.add(toolCall);
|
|
4556
|
+
}
|
|
4557
|
+
associateIndex(toolCall, index) {
|
|
4558
|
+
let toolCallsWithIndex = this.toolCallsByIndex.get(index);
|
|
4559
|
+
if (toolCallsWithIndex == null) {
|
|
4560
|
+
toolCallsWithIndex = /* @__PURE__ */ new Set();
|
|
4561
|
+
this.toolCallsByIndex.set(index, toolCallsWithIndex);
|
|
4562
|
+
}
|
|
4563
|
+
toolCallsWithIndex.add(toolCall);
|
|
4564
|
+
}
|
|
4565
|
+
createToolCallId(wireId) {
|
|
4566
|
+
if (wireId != null && !this.usedToolCallIds.has(wireId)) {
|
|
4567
|
+
this.usedToolCallIds.add(wireId);
|
|
4568
|
+
return wireId;
|
|
4569
|
+
}
|
|
4570
|
+
const generatedId = this.getNonBlankString(this._generateId()) ?? "tool-call";
|
|
4571
|
+
if (!this.usedToolCallIds.has(generatedId)) {
|
|
4572
|
+
this.usedToolCallIds.add(generatedId);
|
|
4573
|
+
return generatedId;
|
|
4574
|
+
}
|
|
4575
|
+
const initialSuffix = this.nextGeneratedIdSuffixes.get(generatedId) ?? 1;
|
|
4576
|
+
const maximumSuffix = initialSuffix + this.usedToolCallIds.size;
|
|
4577
|
+
for (let suffix = initialSuffix; suffix <= maximumSuffix; suffix++) {
|
|
4578
|
+
const suffixedId = `${generatedId}-${suffix}`;
|
|
4579
|
+
if (!this.usedToolCallIds.has(suffixedId)) {
|
|
4580
|
+
this.usedToolCallIds.add(suffixedId);
|
|
4581
|
+
this.nextGeneratedIdSuffixes.set(generatedId, suffix + 1);
|
|
4582
|
+
return suffixedId;
|
|
4583
|
+
}
|
|
4584
|
+
}
|
|
4585
|
+
throw new Error("Failed to create a unique tool call ID.");
|
|
4586
|
+
}
|
|
4587
|
+
getNonBlankString(value) {
|
|
4588
|
+
return value != null && value.trim().length > 0 ? value : void 0;
|
|
4589
|
+
}
|
|
3901
4590
|
processExistingToolCall(toolCall, toolCallDelta) {
|
|
3902
|
-
var _a3;
|
|
3903
4591
|
if (toolCall.hasFinished) {
|
|
3904
4592
|
return;
|
|
3905
4593
|
}
|
|
3906
|
-
if (
|
|
4594
|
+
if (toolCallDelta.function?.arguments != null) {
|
|
4595
|
+
toolCall.argumentState.append(toolCallDelta.function.arguments);
|
|
3907
4596
|
toolCall.function.arguments += toolCallDelta.function.arguments;
|
|
3908
4597
|
this.controller.enqueue({
|
|
3909
4598
|
type: "tool-input-delta",
|
|
@@ -3913,18 +4602,16 @@ var StreamingToolCallTracker = class {
|
|
|
3913
4602
|
}
|
|
3914
4603
|
}
|
|
3915
4604
|
finishToolCall(toolCall) {
|
|
3916
|
-
var _a3, _b3;
|
|
3917
4605
|
this.controller.enqueue({
|
|
3918
4606
|
type: "tool-input-end",
|
|
3919
4607
|
id: toolCall.id
|
|
3920
4608
|
});
|
|
3921
|
-
const providerMetadata =
|
|
3922
|
-
this,
|
|
4609
|
+
const providerMetadata = this.buildToolCallProviderMetadata?.(
|
|
3923
4610
|
toolCall.metadata
|
|
3924
4611
|
);
|
|
3925
4612
|
this.controller.enqueue({
|
|
3926
4613
|
type: "tool-call",
|
|
3927
|
-
toolCallId:
|
|
4614
|
+
toolCallId: toolCall.id,
|
|
3928
4615
|
toolName: toolCall.function.name,
|
|
3929
4616
|
input: toolCall.function.arguments,
|
|
3930
4617
|
...providerMetadata ? { providerMetadata } : {}
|
|
@@ -3946,7 +4633,7 @@ function parseTranscriptionStreamClientFrame(text) {
|
|
|
3946
4633
|
let value;
|
|
3947
4634
|
try {
|
|
3948
4635
|
value = secureJsonParse(text);
|
|
3949
|
-
} catch
|
|
4636
|
+
} catch {
|
|
3950
4637
|
return { type: "invalid", message: "malformed JSON" };
|
|
3951
4638
|
}
|
|
3952
4639
|
if (value == null || typeof value !== "object" || Array.isArray(value)) {
|
|
@@ -4003,7 +4690,7 @@ function serializeTranscriptionStreamPart(part) {
|
|
|
4003
4690
|
});
|
|
4004
4691
|
}
|
|
4005
4692
|
return JSON.stringify(part);
|
|
4006
|
-
} catch
|
|
4693
|
+
} catch {
|
|
4007
4694
|
return void 0;
|
|
4008
4695
|
}
|
|
4009
4696
|
}
|
|
@@ -4014,7 +4701,7 @@ function parseTranscriptionStreamPart(text) {
|
|
|
4014
4701
|
let value;
|
|
4015
4702
|
try {
|
|
4016
4703
|
value = secureJsonParse(text);
|
|
4017
|
-
} catch
|
|
4704
|
+
} catch {
|
|
4018
4705
|
return void 0;
|
|
4019
4706
|
}
|
|
4020
4707
|
if (value == null || typeof value !== "object" || Array.isArray(value)) {
|
|
@@ -4073,7 +4760,7 @@ function isSegment(value) {
|
|
|
4073
4760
|
// src/validate-base-url.ts
|
|
4074
4761
|
import { InvalidArgumentError as InvalidArgumentError3 } from "@ai-sdk/provider";
|
|
4075
4762
|
function validateBaseURL(baseURL) {
|
|
4076
|
-
if (
|
|
4763
|
+
if (baseURL?.trim() === "") {
|
|
4077
4764
|
throw new InvalidArgumentError3({
|
|
4078
4765
|
argument: "baseURL",
|
|
4079
4766
|
message: "baseURL must be a non-empty string."
|
|
@@ -4084,7 +4771,7 @@ function validateBaseURL(baseURL) {
|
|
|
4084
4771
|
|
|
4085
4772
|
// src/without-trailing-slash.ts
|
|
4086
4773
|
function withoutTrailingSlash(url) {
|
|
4087
|
-
return url
|
|
4774
|
+
return url?.replace(/\/$/, "");
|
|
4088
4775
|
}
|
|
4089
4776
|
|
|
4090
4777
|
// src/types/executable-tool.ts
|
|
@@ -4123,7 +4810,7 @@ function toolCaller(tool2, definition) {
|
|
|
4123
4810
|
});
|
|
4124
4811
|
}
|
|
4125
4812
|
function getToolCaller(tool2) {
|
|
4126
|
-
return tool2
|
|
4813
|
+
return tool2?.experimental_toolCaller;
|
|
4127
4814
|
}
|
|
4128
4815
|
|
|
4129
4816
|
// src/index.ts
|
|
@@ -4135,6 +4822,8 @@ export {
|
|
|
4135
4822
|
DEFAULT_MAX_DOWNLOAD_SIZE,
|
|
4136
4823
|
DelayedPromise,
|
|
4137
4824
|
DownloadError,
|
|
4825
|
+
EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL as EXPERIMENTAL_EMBEDDING_MODEL_MAX_INPUT_BYTES_PER_CALL,
|
|
4826
|
+
EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER as EXPERIMENTAL_EMBEDDING_MODEL_PROVIDER_OPTIONS_TRANSFORMER,
|
|
4138
4827
|
TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_AUDIO_DONE_FRAME_TYPE,
|
|
4139
4828
|
TRANSCRIPTION_STREAM_START_FRAME_TYPE as EXPERIMENTAL_TRANSCRIPTION_STREAM_START_FRAME_TYPE,
|
|
4140
4829
|
EventSourceParserStream2 as EventSourceParserStream,
|
|
@@ -4156,18 +4845,22 @@ export {
|
|
|
4156
4845
|
convertToFormData,
|
|
4157
4846
|
convertUint8ArrayToBase64,
|
|
4158
4847
|
createBinaryResponseHandler,
|
|
4848
|
+
createBinaryStreamResponseHandler,
|
|
4159
4849
|
createEventSourceResponseHandler,
|
|
4160
4850
|
createIdGenerator,
|
|
4161
4851
|
createJsonErrorResponseHandler,
|
|
4852
|
+
createJsonLinesResponseHandler,
|
|
4162
4853
|
createJsonResponseHandler,
|
|
4163
4854
|
createLanguageModelResponseMetadata,
|
|
4164
4855
|
createNullLanguageModelUsage,
|
|
4165
4856
|
createProviderDefinedToolFactory,
|
|
4166
4857
|
createProviderDefinedToolFactoryWithOutputSchema,
|
|
4167
4858
|
createProviderExecutedToolFactory,
|
|
4859
|
+
createProviderStreamError,
|
|
4168
4860
|
createStatusCodeErrorResponseHandler,
|
|
4169
4861
|
createToolNameMapping,
|
|
4170
4862
|
delay,
|
|
4863
|
+
deleteFromApi,
|
|
4171
4864
|
detectMediaType,
|
|
4172
4865
|
downloadBlob,
|
|
4173
4866
|
dynamicTool,
|
|
@@ -4179,6 +4872,8 @@ export {
|
|
|
4179
4872
|
toolCaller as experimental_toolCaller,
|
|
4180
4873
|
extractLines,
|
|
4181
4874
|
extractResponseHeaders,
|
|
4875
|
+
fetchUntrustedUrl,
|
|
4876
|
+
fetchWithValidatedEndpoint,
|
|
4182
4877
|
fetchWithValidatedRedirects,
|
|
4183
4878
|
filterNullable,
|
|
4184
4879
|
generateId,
|
|
@@ -4197,6 +4892,7 @@ export {
|
|
|
4197
4892
|
isNonNullable,
|
|
4198
4893
|
isParsableJson,
|
|
4199
4894
|
isProviderReference,
|
|
4895
|
+
isProviderStreamError,
|
|
4200
4896
|
isRecord,
|
|
4201
4897
|
isSameOrigin,
|
|
4202
4898
|
isUrlSupported,
|
|
@@ -4208,12 +4904,14 @@ export {
|
|
|
4208
4904
|
mapReasoningToProviderBudget,
|
|
4209
4905
|
mapReasoningToProviderEffort,
|
|
4210
4906
|
mediaTypeToExtension,
|
|
4907
|
+
normalizeBatchRequestCounts,
|
|
4211
4908
|
normalizeHeaders,
|
|
4212
4909
|
parseJSON,
|
|
4213
4910
|
parseJsonEventStream,
|
|
4214
4911
|
parseProviderOptions,
|
|
4215
4912
|
postFormDataToApi,
|
|
4216
4913
|
postJsonToApi,
|
|
4914
|
+
postMultipartStreamToApi,
|
|
4217
4915
|
postToApi,
|
|
4218
4916
|
readResponseWithSizeLimit,
|
|
4219
4917
|
readWebSocketMessageText,
|