maka-agent 0.2.0-dev.6.20260830 → 0.2.0-dev.62.20260928
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 +482 -263
- 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/@ai-sdk/anthropic/CHANGELOG.md +117 -0
- package/node_modules/@ai-sdk/anthropic/dist/index.js +937 -411
- package/node_modules/@ai-sdk/anthropic/dist/internal/index.js +335 -160
- package/node_modules/@ai-sdk/anthropic/docs/05-anthropic.mdx +132 -43
- package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/anthropic/package.json +6 -6
- package/node_modules/@ai-sdk/cohere/CHANGELOG.md +105 -0
- package/node_modules/@ai-sdk/cohere/dist/index.js +20 -22
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/cohere/package.json +6 -6
- package/node_modules/@ai-sdk/google/CHANGELOG.md +176 -0
- package/node_modules/@ai-sdk/google/dist/index.js +4441 -2801
- package/node_modules/@ai-sdk/google/dist/internal/index.js +640 -177
- package/node_modules/@ai-sdk/google/docs/15-google.mdx +225 -97
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/google/package.json +6 -6
- package/node_modules/@ai-sdk/open-responses/CHANGELOG.md +81 -0
- package/node_modules/@ai-sdk/open-responses/dist/index.js +570 -22
- package/node_modules/@ai-sdk/open-responses/docs/06-open-responses.mdx +123 -2
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/CHANGELOG.md +38 -0
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/package.json +1 -1
- package/node_modules/@ai-sdk/open-responses/package.json +3 -3
- package/node_modules/@ai-sdk/openai/CHANGELOG.md +184 -0
- package/node_modules/@ai-sdk/openai/dist/index.js +2013 -736
- package/node_modules/@ai-sdk/openai/dist/internal/index.js +1377 -478
- package/node_modules/@ai-sdk/openai/docs/03-openai.mdx +208 -52
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/LICENSE +13 -0
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/openai/package.json +6 -6
- package/node_modules/@ai-sdk/openai-compatible/CHANGELOG.md +126 -0
- package/node_modules/@ai-sdk/openai-compatible/dist/index.js +105 -20
- package/node_modules/@ai-sdk/openai-compatible/dist/internal/index.js +9 -0
- package/node_modules/@ai-sdk/openai-compatible/docs/index.mdx +78 -0
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/openai-compatible/package.json +6 -6
- package/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +92 -0
- package/node_modules/@ai-sdk/provider-utils/dist/index.js +664 -168
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/LICENSE +13 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@ai-sdk/provider-utils/package.json +5 -5
- package/node_modules/@earendil-works/pi-tui/README.md +53 -4
- package/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js +202 -42
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +36 -3
- package/node_modules/@earendil-works/pi-tui/dist/components/box.js +29 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +107 -22
- 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/index.js +2 -1
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/latex.js +14 -0
- package/node_modules/@earendil-works/pi-tui/dist/layout.js +32 -9
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +2 -8
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +19 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +38 -6
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +21 -14
- package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +405 -57
- 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 +9 -0
- package/node_modules/@earendil-works/pi-tui/package.json +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/es/index.js +199 -35
- package/node_modules/@larksuiteoapi/node-sdk/lib/index.js +199 -35
- 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 +24702 -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 +11 -12
- 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 +7 -57
- 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 +153 -104
- package/node_modules/@maka/eval/harbor/eval_framework.py +37 -14
- package/node_modules/@maka/eval/harbor/relay_agent.py +47 -10
- package/node_modules/@maka/eval/harbor/run_trial.py +11 -4
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Client.md +4 -0
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- 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/symbols.js +2 -0
- 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 +12 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client.js +3 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher.js +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 +10 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
- 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 +12 -6
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/redirect-handler.js +21 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/retry-handler.js +148 -30
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/cache.js +65 -12
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/decompress.js +115 -13
- 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/cookies/parse.js +150 -147
- 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 +13 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/index.js +6 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/request.js +2 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/util.js +6 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/web/webidl/index.js +3 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/connection.js +1 -1
- 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/stream/websocketstream.js +8 -10
- 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/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 +500 -550
- package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +593 -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/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 +103 -89
- 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 +282 -188
- package/node_modules/@maka/runtime/dist/model-factory.js +127 -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 +131 -0
- package/node_modules/@maka/runtime/dist/plugin-approval-service.js +33 -0
- package/node_modules/@maka/runtime/dist/plugin-attachment-service.js +53 -0
- package/node_modules/@maka/runtime/dist/plugin-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 +188 -25
- package/node_modules/@maka/runtime/dist/plugin-data-services.js +332 -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 +62 -0
- package/node_modules/@maka/runtime/dist/plugin-goal-service.js +61 -0
- package/node_modules/@maka/runtime/dist/plugin-invocation-signal.js +24 -0
- package/node_modules/@maka/runtime/dist/plugin-llm-service.js +85 -0
- package/node_modules/@maka/runtime/dist/plugin-lsp-service.js +94 -0
- package/node_modules/@maka/runtime/dist/plugin-runtime.js +239 -10
- package/node_modules/@maka/runtime/dist/plugin-scope-registry.js +91 -0
- package/node_modules/@maka/runtime/dist/plugin-session-query-service.js +71 -0
- package/node_modules/@maka/runtime/dist/plugin-shell-env-service.js +87 -0
- package/node_modules/@maka/runtime/dist/plugin-shell-service.js +74 -0
- package/node_modules/@maka/runtime/dist/plugin-skill-service.js +93 -0
- package/node_modules/@maka/runtime/dist/plugin-system-prompt-service.js +346 -0
- package/node_modules/@maka/runtime/dist/plugin-tool-service.js +171 -0
- package/node_modules/@maka/runtime/dist/plugin-user-question-service.js +43 -0
- package/node_modules/@maka/runtime/dist/plugin-web-service.js +69 -0
- package/node_modules/@maka/runtime/dist/prior-run-context.js +24 -94
- package/node_modules/@maka/runtime/dist/process-tree-terminator.js +2 -2
- package/node_modules/@maka/runtime/dist/prompt-composition.js +36 -31
- package/node_modules/@maka/runtime/dist/provider-error-classification.js +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 +93 -17
- 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 +18839 -10323
- package/node_modules/@maka/runtime/dist/workspace-executor.js +26 -35
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/LICENSE +13 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +538 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/package.json +78 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/CHANGELOG.md +3269 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/LICENSE +13 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/dist/index.js +3835 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +1610 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/package.json +80 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/CHANGELOG.md +1262 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/LICENSE +13 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/README.md +1 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/dist/index.js +426 -0
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/package.json +63 -0
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/README.md +44 -8
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/package.json +4 -4
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +39 -3
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js +4 -0
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/package.json +4 -4
- package/node_modules/@maka/runtime/node_modules/ai/CHANGELOG.md +10271 -0
- package/node_modules/@maka/runtime/node_modules/ai/LICENSE +13 -0
- package/node_modules/@maka/runtime/node_modules/ai/dist/index.js +20146 -0
- package/node_modules/@maka/runtime/node_modules/ai/dist/internal/index.js +3690 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +185 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/04-loop-control.mdx +517 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +413 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +338 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +815 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +525 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +1512 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +680 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +371 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +333 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +163 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +180 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/42-batch.mdx +372 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +241 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +855 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-core/index.mdx +137 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +683 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +69 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +47 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +826 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +406 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +216 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +582 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/06-advanced/04-caching.mdx +182 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +117 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +3267 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +4303 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +330 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +332 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +331 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +253 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +125 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +1102 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/20-start-batch.mdx +154 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/21-get-batch-status.mdx +133 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/22-get-batch-results.mdx +109 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/23-cancel-batch.mdx +96 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/24-list-batches.mdx +121 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +368 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +331 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +147 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +250 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +493 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +256 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +199 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +125 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +1035 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +361 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/03-generate-video.mdx +157 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +32 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +31 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +43 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-stream-provider-error.mdx +52 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-tool-choice-violation-error.mdx +38 -0
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +43 -0
- package/node_modules/@maka/runtime/node_modules/ai/package.json +127 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Client.md +4 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- 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/symbols.js +2 -0
- 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 +12 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client.js +3 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher.js +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 +10 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
- 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 +12 -6
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/redirect-handler.js +21 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/retry-handler.js +148 -30
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/cache.js +65 -12
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/decompress.js +115 -13
- 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/cookies/parse.js +150 -147
- 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 +13 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/index.js +6 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/request.js +2 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/util.js +6 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/webidl/index.js +3 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/connection.js +1 -1
- 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/stream/websocketstream.js +8 -10
- package/node_modules/@maka/runtime/node_modules/undici/package.json +3 -3
- package/node_modules/@maka/runtime/package.json +52 -21
- 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 +138 -153
- 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 +37 -90
- 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 +472 -304
- 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 +802 -215
- 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 +437 -574
- 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 +45 -61
- 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/src-D_zzAWoS.mjs +22 -5
- package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs +22 -5
- 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 +1 -1
- package/node_modules/@types/node/package.json +3 -3
- package/node_modules/balanced-match/LICENSE.md +23 -0
- package/node_modules/balanced-match/README.md +57 -0
- package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/balanced-match/package.json +68 -0
- package/node_modules/brace-expansion/LICENSE +23 -0
- package/node_modules/brace-expansion/README.md +105 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +289 -0
- package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/brace-expansion/dist/esm/index.js +285 -0
- package/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/brace-expansion/package.json +64 -0
- package/node_modules/fast-uri/index.js +215 -47
- package/node_modules/fast-uri/lib/schemes.js +9 -4
- package/node_modules/fast-uri/lib/utils.js +396 -92
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fs-native-extensions/package.json +1 -1
- package/node_modules/fs-native-extensions/prebuilds/android-arm/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/android-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/android-ia32/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/android-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/prebuilds/ios-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/ios-arm64-simulator/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/ios-x64-simulator/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/linux-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/linux-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/src/win32.c +50 -11
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1203 -0
- package/node_modules/glob/dist/commonjs/glob.js +248 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.js +223 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/esm/glob.js +244 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.min.js +4 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.js +219 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/package.json +98 -0
- package/node_modules/minimatch/LICENSE.md +55 -0
- package/node_modules/minimatch/README.md +528 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/minimatch/package.json +73 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +636 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/path-scurry/node_modules/lru-cache/README.md +469 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
- package/node_modules/path-scurry/package.json +72 -0
- package/node_modules/qs/.github/THREAT_MODEL.md +3 -3
- package/node_modules/qs/CHANGELOG.md +15 -0
- package/node_modules/qs/README.md +19 -1
- package/node_modules/qs/dist/qs.js +21 -21
- package/node_modules/qs/eslint.config.mjs +1 -1
- package/node_modules/qs/lib/parse.js +3 -4
- package/node_modules/qs/lib/stringify.js +23 -8
- package/node_modules/qs/lib/utils.js +10 -3
- package/node_modules/qs/package.json +4 -4
- package/node_modules/run/README.md +109 -18
- package/node_modules/run/THIRD_PARTY_NOTICES.md +11 -11
- package/node_modules/run/dist/continuation-validation.js +116 -1
- package/node_modules/run/dist/errors.js +12 -2
- package/node_modules/run/dist/host-function-invocation.js +2 -1
- package/node_modules/run/dist/run.js +30 -4
- package/node_modules/run/dist/runtime/guest-serde-source.js +1 -1
- package/node_modules/run/dist/runtime/guest-sources.js +214 -56
- package/node_modules/run/dist/runtime/manager.js +575 -116
- package/node_modules/run/dist/runtime/max-workers.js +8 -4
- package/node_modules/run/dist/runtime/protocol-validation.js +20 -7
- package/node_modules/run/dist/runtime/sync-bridge-protocol.js +135 -0
- package/node_modules/run/dist/runtime/worker-source.js +1 -1
- package/node_modules/run/dist/utils/options.js +7 -0
- package/node_modules/run/dist/utils/promise-with-resolvers.js +13 -1
- package/node_modules/run/dist/utils/serde.js +1 -7
- package/node_modules/run/dist/utils/source-cache.js +83 -13
- package/node_modules/run/package.json +6 -4
- package/node_modules/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 +334 -0
- package/node_modules/systeminformation/lib/bluetooth.js +315 -0
- package/node_modules/systeminformation/lib/bluetoothVendors.js +1138 -0
- package/node_modules/systeminformation/lib/cli.js +100 -0
- package/node_modules/systeminformation/lib/cpu.js +2285 -0
- package/node_modules/systeminformation/lib/docker.js +791 -0
- package/node_modules/systeminformation/lib/dockerSocket.js +117 -0
- package/node_modules/systeminformation/lib/filesystem.js +1927 -0
- package/node_modules/systeminformation/lib/graphics.js +1317 -0
- package/node_modules/systeminformation/lib/index.js +520 -0
- package/node_modules/systeminformation/lib/internet.js +265 -0
- package/node_modules/systeminformation/lib/memory.js +622 -0
- package/node_modules/systeminformation/lib/network.js +2008 -0
- package/node_modules/systeminformation/lib/osinfo.js +1290 -0
- package/node_modules/systeminformation/lib/printer.js +209 -0
- package/node_modules/systeminformation/lib/processes.js +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 +2833 -0
- package/node_modules/systeminformation/lib/virtualbox.js +116 -0
- package/node_modules/systeminformation/lib/wifi.js +839 -0
- package/node_modules/systeminformation/package.json +102 -0
- package/node_modules/undici/docs/docs/api/Client.md +4 -0
- package/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
- package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- package/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
- package/node_modules/undici/lib/core/symbols.js +2 -0
- 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 +12 -4
- package/node_modules/undici/lib/dispatcher/client-h2.js +43 -3
- package/node_modules/undici/lib/dispatcher/client.js +3 -2
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
- package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +10 -3
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
- 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 +12 -6
- package/node_modules/undici/lib/handler/redirect-handler.js +21 -4
- package/node_modules/undici/lib/handler/retry-handler.js +148 -30
- package/node_modules/undici/lib/interceptor/cache.js +65 -12
- package/node_modules/undici/lib/interceptor/decompress.js +115 -13
- 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/cookies/parse.js +150 -147
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
- package/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
- package/node_modules/undici/lib/web/fetch/index.js +6 -0
- package/node_modules/undici/lib/web/fetch/request.js +2 -3
- package/node_modules/undici/lib/web/fetch/util.js +6 -1
- package/node_modules/undici/lib/web/webidl/index.js +3 -3
- package/node_modules/undici/lib/web/websocket/connection.js +1 -1
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- 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 +3 -3
- package/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +0 -549
- package/node_modules/@ai-sdk/code-mode/package.json +0 -78
- package/node_modules/@ai-sdk/gateway/CHANGELOG.md +0 -3067
- package/node_modules/@ai-sdk/gateway/dist/index.js +0 -3208
- package/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +0 -1297
- package/node_modules/@ai-sdk/gateway/package.json +0 -80
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +0 -2444
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/README.md +0 -1
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/dist/index.js +0 -4295
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/package.json +0 -82
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/src/to-json-schema/zod3-to-json-schema/LICENSE +0 -16
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/src/to-json-schema/zod3-to-json-schema/README.md +0 -24
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/LICENSE +0 -21
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/README.md +0 -741
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Agent.md +0 -84
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Client.md +0 -288
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Connector.md +0 -115
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ContentType.md +0 -57
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Cookies.md +0 -128
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Debug.md +0 -62
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Errors.md +0 -49
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EventSource.md +0 -45
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Fetch.md +0 -60
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockClient.md +0 -81
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockPool.md +0 -555
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Pool.md +0 -84
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -275
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Util.md +0 -25
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/index-fetch.js +0 -65
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/index.js +0 -234
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/abort-signal.js +0 -59
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-connect.js +0 -110
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-pipeline.js +0 -252
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-request.js +0 -214
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-stream.js +0 -209
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-upgrade.js +0 -111
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/index.js +0 -7
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/readable.js +0 -580
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/memory-cache-store.js +0 -279
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -467
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/connect.js +0 -153
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/constants.js +0 -143
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/diagnostics.js +0 -227
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/errors.js +0 -477
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/request.js +0 -464
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-client.js +0 -422
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-utils.js +0 -212
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/symbols.js +0 -75
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/tree.js +0 -160
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/util.js +0 -992
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/agent.js +0 -158
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h1.js +0 -1731
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client.js +0 -664
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -184
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool.js +0 -118
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -319
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -260
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/encoding/index.js +0 -33
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/global.js +0 -59
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-handler.js +0 -760
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/decorator-handler.js +0 -67
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/redirect-handler.js +0 -238
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/retry-handler.js +0 -418
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/unwrap-handler.js +0 -106
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/wrap-handler.js +0 -105
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/cache.js +0 -602
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/decompress.js +0 -259
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dns.js +0 -571
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dump.js +0 -112
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/redirect.js +0 -21
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/response-error.js +0 -95
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/retry.js +0 -19
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/constants.js +0 -531
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/utils.js +0 -12
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-agent.js +0 -232
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-call-history.js +0 -248
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-client.js +0 -68
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-errors.js +0 -29
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-pool.js +0 -68
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-symbols.js +0 -32
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-utils.js +0 -486
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/cache.js +0 -676
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/date.js +0 -670
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/promise.js +0 -28
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/runtime-features.js +0 -124
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/stats.js +0 -32
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/timers.js +0 -425
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cache.js +0 -864
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/util.js +0 -45
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/constants.js +0 -12
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/index.js +0 -199
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/parse.js +0 -314
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/util.js +0 -352
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/util.js +0 -29
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/LICENSE +0 -21
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/body.js +0 -509
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/constants.js +0 -131
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/data-url.js +0 -596
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata.js +0 -259
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/global.js +0 -40
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/headers.js +0 -719
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/index.js +0 -2413
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/request.js +0 -1115
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/response.js +0 -641
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/util.js +0 -1522
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/infra/index.js +0 -229
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/webidl/index.js +0 -1006
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/connection.js +0 -329
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/constants.js +0 -126
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/events.js +0 -331
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/frame.js +0 -133
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -100
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/receiver.js +0 -507
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/sender.js +0 -109
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -498
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/util.js +0 -347
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/websocket.js +0 -758
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/package.json +0 -152
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/scripts/strip-comments.js +0 -10
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/types/README.md +0 -6
- package/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1218
- package/node_modules/@ai-sdk/provider/package.json +0 -63
- package/node_modules/@formatjs/icu-messageformat-parser/index.js +0 -2173
- package/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +0 -207
- package/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +0 -160
- package/node_modules/@formatjs/icu-messageformat-parser/package.json +0 -21
- package/node_modules/@formatjs/icu-messageformat-parser/printer.js +0 -224
- package/node_modules/@maka/core/dist/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/ai/CHANGELOG.md +0 -9971
- package/node_modules/ai/dist/index.js +0 -18513
- package/node_modules/ai/dist/internal/index.js +0 -3680
- package/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +0 -179
- package/node_modules/ai/docs/03-agents/04-loop-control.mdx +0 -515
- package/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +0 -412
- package/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +0 -326
- package/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +0 -718
- package/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +0 -513
- package/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +0 -1509
- package/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +0 -617
- package/node_modules/ai/docs/03-ai-sdk-core/35-image-generation.mdx +0 -344
- package/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +0 -332
- package/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +0 -180
- package/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +0 -155
- package/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +0 -149
- package/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +0 -830
- package/node_modules/ai/docs/03-ai-sdk-core/index.mdx +0 -132
- package/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +0 -495
- package/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +0 -65
- package/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +0 -45
- package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +0 -798
- package/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +0 -401
- package/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +0 -212
- package/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +0 -578
- package/node_modules/ai/docs/06-advanced/04-caching.mdx +0 -175
- package/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +0 -111
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +0 -3253
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +0 -4261
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +0 -304
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +0 -302
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +0 -317
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +0 -252
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +0 -92
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +0 -1102
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +0 -342
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +0 -268
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +0 -145
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +0 -225
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +0 -493
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +0 -256
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +0 -166
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +0 -120
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +0 -954
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +0 -347
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +0 -26
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +0 -26
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +0 -36
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +0 -41
- package/node_modules/ai/package.json +0 -117
- package/node_modules/intl-messageformat/intl-messageformat.iife.js +0 -2807
- package/node_modules/intl-messageformat/package.json +0 -40
- package/node_modules/socks/.eslintrc.cjs +0 -11
- /package/node_modules/@ai-sdk/{code-mode → anthropic/node_modules/@ai-sdk/provider}/LICENSE +0 -0
- /package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/README.md +0 -0
- /package/node_modules/@ai-sdk/{provider → anthropic/node_modules/@ai-sdk/provider}/dist/index.js +0 -0
- /package/node_modules/@ai-sdk/{gateway → cohere/node_modules/@ai-sdk/provider}/LICENSE +0 -0
- /package/node_modules/@ai-sdk/{provider → google/node_modules/@ai-sdk/provider}/LICENSE +0 -0
- /package/node_modules/{ai → @ai-sdk/openai-compatible/node_modules/@ai-sdk/provider}/LICENSE +0 -0
- /package/node_modules/@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/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/README.md +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/approval-continuation.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/approval.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/code-mode-tool.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/continuation-capability.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/direct-tool-call.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/errors.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/host-interrupt.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/index.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/interrupt-continuation.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/tool-invocation.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/tool-prompt.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/types.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/dist/utils/serialization.js +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/code-mode/src/tsconfig.json +0 -0
- /package/node_modules/{@ai-sdk → @maka/runtime/node_modules/@ai-sdk}/gateway/README.md +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/README.md +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/00-introduction/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/03-prompts.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/04-tools.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/05-streaming.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/06-provider-options.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-foundations/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/00-choosing-a-provider.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/01-navigating-the-library.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/02-nextjs-app-router.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/03-nextjs-pages-router.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/04-svelte.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/05-nuxt.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/06-nodejs.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/07-expo.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/08-tanstack-start.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/09-coding-agents.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/02-getting-started/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/02-building-agents.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/03-workflows.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/05-configuring-call-options.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-memory.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/06-subagents.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/08-terminal-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-agents/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/05-generating-text.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/17-mcp-apps.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/17-runtime-and-tool-context.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/18-code-mode.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/20-prompt-engineering.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/25-settings.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/26-reasoning.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/30-embeddings.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/31-reranking.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-realtime.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/36-translation.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/38-video-generation.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/40-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/41-skill-uploads.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/45-provider-management.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/55-testing.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/65-devtools.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-core/65-lifecycle-callbacks.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/03-tools.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/06-workflow-utilities.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/07-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/08-terminal-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/03-ai-sdk-harnesses/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/02-chatbot.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-message-persistence.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/03-chatbot-resume-streams.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/04-generative-user-interfaces.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/05-completion.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/08-object-generation.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/21-error-handling.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/24-reading-ui-message-streams.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/25-message-metadata.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/04-ai-sdk-ui/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/01-overview.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/02-streaming-react-components.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/03-generative-ui-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/03-saving-and-restoring-states.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/04-multistep-interfaces.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/05-streaming-values.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/06-loading-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/08-error-handling.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/09-authentication.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/10-migrating-to-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/05-ai-sdk-rsc/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/01-prompt-engineering.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/02-stopping-streams.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/03-backpressure.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/05-multiple-streamables.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/06-rate-limiting.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/07-rendering-ui-with-language-models.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/08-model-as-router.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/09-multistep-interfaces.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/09-sequential-generations.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/10-vercel-deployment-guide.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/06-advanced/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-stream-transcribe.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-stream-translate.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/11-transcribe.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/12-generate-speech.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/13-generate-video.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/14-upload-skill.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/15-agent.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/17-create-agent-ui-stream.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/18-create-agent-ui-stream-response.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/18-pipe-agent-ui-stream-to-response.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/20-tool.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/22-dynamic-tool.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/23-create-mcp-client.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/23-get-realtime-tool-definitions.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/24-mcp-apps.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/24-mcp-stdio-transport.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/25-json-schema.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/26-zod-schema.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/27-valibot-schema.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/29-filter-active-tools.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/30-model-message.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/32-validate-ui-messages.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/33-safe-validate-ui-messages.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/34-sandbox.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/40-provider-registry.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/42-custom-provider.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/50-cosine-similarity.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/60-wrap-language-model.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/61-wrap-image-model.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/65-language-model-v2-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/66-extract-reasoning-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/67-simulate-streaming-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/68-default-instructions-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/68-default-settings-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/69-add-tool-input-examples-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/70-extract-json-middleware.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/70-is-step-count.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/71-has-tool-call.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/72-loop-finished.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/75-simulate-readable-stream.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/90-generate-id.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/91-create-id-generator.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/01-ai-sdk-core/92-default-generated-file.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/02-use-completion.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/03-use-object.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/05-use-realtime.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/32-prune-messages.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/42-pipe-ui-message-stream-to-response.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/43-read-ui-message-stream.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/46-infer-ui-tools.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/47-infer-ui-tool.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/48-mcp-app-renderer.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/50-direct-chat-transport.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/02-ai-sdk-ui/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/01-stream-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/02-create-ai.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/03-create-streamable-ui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/04-create-streamable-value.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/05-read-streamable-value.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/06-get-ai-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/07-get-mutable-ai-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/08-use-ai-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/09-use-actions.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/10-use-ui-state.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/11-use-streamable-value.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/20-render.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/03-ai-sdk-rsc/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-api-call-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-download-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-empty-response-body-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-data-content-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-message-role-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-prompt-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-response-data-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-approval-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-approval-signature-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-input-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-json-parse-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-load-api-key-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-load-setting-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-message-conversion-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-content-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-object-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-output-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-speech-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-model-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-reference-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-tool-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-transcript-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-translation-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-no-video-generated-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-retry-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-too-many-embedding-values-for-call-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-call-not-found-for-approval-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-call-repair-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-type-validation-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-ui-message-stream-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/05-ai-sdk-errors/ai-unsupported-functionality-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/06-ai-sdk-tui/01-run-agent-tui.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/06-ai-sdk-tui/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/07-reference/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/00-versioning.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/23-migration-guide-7-0.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/24-migration-guide-6-0.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/25-migration-guide-5-0-data.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/26-migration-guide-5-0.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/27-migration-guide-4-2.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/28-migration-guide-4-1.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/29-migration-guide-4-0.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/36-migration-guide-3-4.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/37-migration-guide-3-3.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/38-migration-guide-3-2.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/39-migration-guide-3-1.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/08-migration-guides/index.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/01-azure-stream-slow.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/03-server-actions-in-client-components.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/04-strange-stream-output.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/05-streamable-ui-errors.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/05-tool-invocation-missing-result.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-streaming-not-working-when-deployed.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-streaming-not-working-when-proxied.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/06-timeout-on-vercel.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/07-unclosed-streams.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/08-use-chat-failed-to-parse-stream.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/09-client-stream-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/10-use-chat-tools-no-response.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/11-use-chat-custom-request-options.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/12-typescript-performance-zod.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/12-use-chat-an-error-occurred.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/13-repeated-assistant-messages.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/14-stream-abort-handling.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/14-tool-calling-with-structured-outputs.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/15-abort-breaks-resumable-streams.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/15-stream-text-not-working.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/16-streaming-status-delay.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/17-use-chat-stale-body-data.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/18-ontoolcall-type-narrowing.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/19-unsupported-model-version.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/20-no-object-generated-content-filter.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/21-missing-tool-results-error.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/30-model-is-not-assignable-to-type.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/40-typescript-cannot-find-namespace-jsx.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/50-react-maximum-update-depth-exceeded.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/60-jest-cannot-find-module-ai-rsc.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/70-high-memory-usage-with-images.mdx +0 -0
- /package/node_modules/{ai → @maka/runtime/node_modules/ai}/docs/09-troubleshooting/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/README.md +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/dist/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/package.json +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/README.md +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/block-elements.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/blocks.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/composition-objects.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/extensions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/calls.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/chunk.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/bot-profile.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/status-emoji-display-info.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/dialog.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/app.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/assistant.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/call.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/channel.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/dnd.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/email.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/emoji.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/entity-details-requested.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/file.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/function.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/grid-migration.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/group.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/im.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/invite.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/link-shared.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/member.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message-metadata.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/pin.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/reaction.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/shared-channel.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/star.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/steps-from-apps.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/subteam.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/team.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/token.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/user.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-attachments.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-metadata.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/views.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/WebClient.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/chat-stream.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/errors.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/file-upload.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/helpers.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/instrument.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/logger.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/retry-policies.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/helpers.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/analytics.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/apps.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/auth.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/barriers.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/conversations.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/emoji.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/functions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/inviteRequests.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/roles.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/teams.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/usergroups.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/users.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/workflows.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/api.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/apps.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/assistant.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/auth.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bookmarks.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bots.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/calls.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/canvas.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/chat.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/common.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/conversations.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dialog.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dnd.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/emoji.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/entity.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/files.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/functions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/manifest.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/migration.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/oauth.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/openid.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/pins.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reactions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reminders.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/rtm.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/search.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/slackLists.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/stars.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/team.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/tooling.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/usergroups.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/users.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/views.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/workflows.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAnalyticsGetFileResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsActivitiesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApproveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApprovedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsClearResolutionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsCancelResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsUninstallResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyAssignEntitiesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyGetEntitiesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyRemoveEntitiesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkMoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPrivateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPublicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDisconnectSharedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetConversationPrefsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetCustomRetentionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetTeamsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRemoveCustomRetentionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessAddGroupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessListGroupsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSearchResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetConversationPrefsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetCustomRetentionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetTeamsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddAliasResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApproveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApprovedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDeniedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDenyResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesAddAssignmentsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesListAssignmentsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesRemoveAssignmentsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsAdminsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsOwnersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDescriptionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetIconResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetNameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddTeamsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsListChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsRemoveChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersAssignResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionClearSettingsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionGetSettingsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionInvalidateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetBulkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionSetSettingsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetAdminResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetExpirationResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetOwnerResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetRegularResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersUnsupportedVersionsExportResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsPermissionsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsSearchResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsUnpublishResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ApiTestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsConnectionsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsEventAuthorizationsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestExportResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestValidateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsRequestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsResourcesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsScopesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersRequestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUninstallResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetStatusResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetSuggestedPromptsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetTitleResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthRevokeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTeamsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksEditResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BotsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsEndResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesEditResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesSectionsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsJoinResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsKickResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsLeaveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetPurposeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetTopicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteScheduledMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatGetPermalinkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatMeMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostEphemeralResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduleMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduledMessagesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUnfurlResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsAcceptSharedInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsApproveSharedInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCanvasesCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsDeclineSharedInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsExternalInvitePermissionsSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteSharedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsJoinResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsKickResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsLeaveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListConnectInvitesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMembersResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteApproveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteDenyResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetPurposeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetTopicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DialogOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndDndResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndSnoozeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndSetSnoozeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndTeamInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EmojiListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EntityPresentDetailsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsEditResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCompleteUploadExternalResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesGetUploadURLExternalResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteShareResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRevokePublicURLResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesSharedPublicURLResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesUploadResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteErrorResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteSuccessResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateChildResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsKickResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsLeaveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetPurposeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetTopicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MigrationExchangeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthAccessResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthTokenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2AccessResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2ExchangeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectTokenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectUserInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsGetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersCompleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmConnectResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmStartResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/SearchMessagesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamAccessLogsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillableInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillingInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsDisconnectResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamIntegrationLogsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamPreferencesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamProfileGetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ToolingTokensRotateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsDisableResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsEnableResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersConversationsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDeletePhotoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDiscoverableContactsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersGetPresenceResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersIdentityResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersLookupByEmailResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileGetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetActiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPhotoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPresenceResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPublishResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPushResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepCompletedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepFailedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsUpdateStepResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/index.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/License +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/README.md +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/dns.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/stop.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/index.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry_operation.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/package.json +0 -0
|
@@ -1,2413 +0,0 @@
|
|
|
1
|
-
// https://github.com/Ethan-Arrowood/undici-fetch
|
|
2
|
-
|
|
3
|
-
'use strict'
|
|
4
|
-
|
|
5
|
-
const {
|
|
6
|
-
makeNetworkError,
|
|
7
|
-
makeAppropriateNetworkError,
|
|
8
|
-
filterResponse,
|
|
9
|
-
makeResponse,
|
|
10
|
-
fromInnerResponse,
|
|
11
|
-
getResponseState
|
|
12
|
-
} = require('./response')
|
|
13
|
-
const { HeadersList } = require('./headers')
|
|
14
|
-
const { Request, cloneRequest, getRequestDispatcher, getRequestState } = require('./request')
|
|
15
|
-
const zlib = require('node:zlib')
|
|
16
|
-
const {
|
|
17
|
-
makePolicyContainer,
|
|
18
|
-
clonePolicyContainer,
|
|
19
|
-
requestBadPort,
|
|
20
|
-
TAOCheck,
|
|
21
|
-
appendRequestOriginHeader,
|
|
22
|
-
responseLocationURL,
|
|
23
|
-
requestCurrentURL,
|
|
24
|
-
setRequestReferrerPolicyOnRedirect,
|
|
25
|
-
tryUpgradeRequestToAPotentiallyTrustworthyURL,
|
|
26
|
-
createOpaqueTimingInfo,
|
|
27
|
-
appendFetchMetadata,
|
|
28
|
-
corsCheck,
|
|
29
|
-
crossOriginResourcePolicyCheck,
|
|
30
|
-
determineRequestsReferrer,
|
|
31
|
-
coarsenedSharedCurrentTime,
|
|
32
|
-
sameOrigin,
|
|
33
|
-
isCancelled,
|
|
34
|
-
isAborted,
|
|
35
|
-
isErrorLike,
|
|
36
|
-
fullyReadBody,
|
|
37
|
-
readableStreamClose,
|
|
38
|
-
urlIsLocal,
|
|
39
|
-
urlIsHttpHttpsScheme,
|
|
40
|
-
urlHasHttpsScheme,
|
|
41
|
-
clampAndCoarsenConnectionTimingInfo,
|
|
42
|
-
simpleRangeHeaderValue,
|
|
43
|
-
buildContentRange,
|
|
44
|
-
createInflate,
|
|
45
|
-
extractMimeType,
|
|
46
|
-
hasAuthenticationEntry,
|
|
47
|
-
includesCredentials,
|
|
48
|
-
isTraversableNavigable
|
|
49
|
-
} = require('./util')
|
|
50
|
-
const assert = require('node:assert')
|
|
51
|
-
const { safelyExtractBody, extractBody } = require('./body')
|
|
52
|
-
const {
|
|
53
|
-
redirectStatusSet,
|
|
54
|
-
nullBodyStatus,
|
|
55
|
-
safeMethodsSet,
|
|
56
|
-
requestBodyHeader,
|
|
57
|
-
subresourceSet
|
|
58
|
-
} = require('./constants')
|
|
59
|
-
const EE = require('node:events')
|
|
60
|
-
const { Readable, pipeline, finished, isErrored, isReadable } = require('node:stream')
|
|
61
|
-
const { addAbortListener, bufferToLowerCasedHeaderName } = require('../../core/util')
|
|
62
|
-
const { dataURLProcessor, serializeAMimeType, minimizeSupportedMimeType } = require('./data-url')
|
|
63
|
-
const { getGlobalDispatcher } = require('../../global')
|
|
64
|
-
const { webidl } = require('../webidl')
|
|
65
|
-
const { STATUS_CODES } = require('node:http')
|
|
66
|
-
const { bytesMatch } = require('../subresource-integrity/subresource-integrity')
|
|
67
|
-
const { createDeferredPromise } = require('../../util/promise')
|
|
68
|
-
const { isomorphicEncode } = require('../infra')
|
|
69
|
-
const { runtimeFeatures } = require('../../util/runtime-features')
|
|
70
|
-
|
|
71
|
-
// Node.js v23.8.0+ and v22.15.0+ supports Zstandard
|
|
72
|
-
const hasZstd = runtimeFeatures.has('zstd')
|
|
73
|
-
|
|
74
|
-
const GET_OR_HEAD = ['GET', 'HEAD']
|
|
75
|
-
|
|
76
|
-
const defaultUserAgent = typeof __UNDICI_IS_NODE__ !== 'undefined' || typeof esbuildDetection !== 'undefined'
|
|
77
|
-
? 'node'
|
|
78
|
-
: 'undici'
|
|
79
|
-
|
|
80
|
-
/** @type {import('buffer').resolveObjectURL} */
|
|
81
|
-
let resolveObjectURL
|
|
82
|
-
|
|
83
|
-
class Fetch extends EE {
|
|
84
|
-
constructor (dispatcher) {
|
|
85
|
-
super()
|
|
86
|
-
|
|
87
|
-
this.dispatcher = dispatcher
|
|
88
|
-
this.connection = null
|
|
89
|
-
this.dump = false
|
|
90
|
-
this.state = 'ongoing'
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
terminate (reason) {
|
|
94
|
-
if (this.state !== 'ongoing') {
|
|
95
|
-
return
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
this.state = 'terminated'
|
|
99
|
-
this.connection?.destroy(reason)
|
|
100
|
-
this.emit('terminated', reason)
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// https://fetch.spec.whatwg.org/#fetch-controller-abort
|
|
104
|
-
abort (error) {
|
|
105
|
-
if (this.state !== 'ongoing') {
|
|
106
|
-
return
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// 1. Set controller’s state to "aborted".
|
|
110
|
-
this.state = 'aborted'
|
|
111
|
-
|
|
112
|
-
// 2. Let fallbackError be an "AbortError" DOMException.
|
|
113
|
-
// 3. Set error to fallbackError if it is not given.
|
|
114
|
-
if (!error) {
|
|
115
|
-
error = new DOMException('The operation was aborted.', 'AbortError')
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// 4. Let serializedError be StructuredSerialize(error).
|
|
119
|
-
// If that threw an exception, catch it, and let
|
|
120
|
-
// serializedError be StructuredSerialize(fallbackError).
|
|
121
|
-
|
|
122
|
-
// 5. Set controller’s serialized abort reason to serializedError.
|
|
123
|
-
this.serializedAbortReason = error
|
|
124
|
-
|
|
125
|
-
this.connection?.destroy(error)
|
|
126
|
-
this.emit('terminated', error)
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
function handleFetchDone (response) {
|
|
131
|
-
finalizeAndReportTiming(response, 'fetch')
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// https://fetch.spec.whatwg.org/#fetch-method
|
|
135
|
-
function fetch (input, init = undefined) {
|
|
136
|
-
webidl.argumentLengthCheck(arguments, 1, 'globalThis.fetch')
|
|
137
|
-
|
|
138
|
-
// 1. Let p be a new promise.
|
|
139
|
-
let p = createDeferredPromise()
|
|
140
|
-
|
|
141
|
-
// 2. Let requestObject be the result of invoking the initial value of
|
|
142
|
-
// Request as constructor with input and init as arguments. If this throws
|
|
143
|
-
// an exception, reject p with it and return p.
|
|
144
|
-
let requestObject
|
|
145
|
-
|
|
146
|
-
try {
|
|
147
|
-
requestObject = new Request(input, init)
|
|
148
|
-
} catch (e) {
|
|
149
|
-
p.reject(e)
|
|
150
|
-
return p.promise
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// 3. Let request be requestObject’s request.
|
|
154
|
-
const request = getRequestState(requestObject)
|
|
155
|
-
|
|
156
|
-
// 4. If requestObject’s signal’s aborted flag is set, then:
|
|
157
|
-
if (requestObject.signal.aborted) {
|
|
158
|
-
// 1. Abort the fetch() call with p, request, null, and
|
|
159
|
-
// requestObject’s signal’s abort reason.
|
|
160
|
-
abortFetch(p, request, null, requestObject.signal.reason, null)
|
|
161
|
-
|
|
162
|
-
// 2. Return p.
|
|
163
|
-
return p.promise
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// 5. Let globalObject be request’s client’s global object.
|
|
167
|
-
const globalObject = request.client.globalObject
|
|
168
|
-
|
|
169
|
-
// 6. If globalObject is a ServiceWorkerGlobalScope object, then set
|
|
170
|
-
// request’s service-workers mode to "none".
|
|
171
|
-
if (globalObject?.constructor?.name === 'ServiceWorkerGlobalScope') {
|
|
172
|
-
request.serviceWorkers = 'none'
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// 7. Let responseObject be null.
|
|
176
|
-
let responseObject = null
|
|
177
|
-
|
|
178
|
-
// 8. Let relevantRealm be this’s relevant Realm.
|
|
179
|
-
|
|
180
|
-
// 9. Let locallyAborted be false.
|
|
181
|
-
let locallyAborted = false
|
|
182
|
-
|
|
183
|
-
// 10. Let controller be null.
|
|
184
|
-
let controller = null
|
|
185
|
-
|
|
186
|
-
// 11. Add the following abort steps to requestObject’s signal:
|
|
187
|
-
addAbortListener(
|
|
188
|
-
requestObject.signal,
|
|
189
|
-
() => {
|
|
190
|
-
// 1. Set locallyAborted to true.
|
|
191
|
-
locallyAborted = true
|
|
192
|
-
|
|
193
|
-
// 2. Assert: controller is non-null.
|
|
194
|
-
assert(controller != null)
|
|
195
|
-
|
|
196
|
-
// 3. Abort controller with requestObject’s signal’s abort reason.
|
|
197
|
-
controller.abort(requestObject.signal.reason)
|
|
198
|
-
|
|
199
|
-
const realResponse = responseObject?.deref()
|
|
200
|
-
|
|
201
|
-
// 4. Abort the fetch() call with p, request, responseObject,
|
|
202
|
-
// and requestObject’s signal’s abort reason.
|
|
203
|
-
abortFetch(p, request, realResponse, requestObject.signal.reason, controller.controller)
|
|
204
|
-
}
|
|
205
|
-
)
|
|
206
|
-
|
|
207
|
-
// 12. Let handleFetchDone given response response be to finalize and
|
|
208
|
-
// report timing with response, globalObject, and "fetch".
|
|
209
|
-
// see function handleFetchDone
|
|
210
|
-
|
|
211
|
-
// 13. Set controller to the result of calling fetch given request,
|
|
212
|
-
// with processResponseEndOfBody set to handleFetchDone, and processResponse
|
|
213
|
-
// given response being these substeps:
|
|
214
|
-
|
|
215
|
-
const processResponse = (response) => {
|
|
216
|
-
// 1. If locallyAborted is true, terminate these substeps.
|
|
217
|
-
if (locallyAborted) {
|
|
218
|
-
return
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
// 2. If response’s aborted flag is set, then:
|
|
222
|
-
if (response.aborted) {
|
|
223
|
-
// 1. Let deserializedError be the result of deserialize a serialized
|
|
224
|
-
// abort reason given controller’s serialized abort reason and
|
|
225
|
-
// relevantRealm.
|
|
226
|
-
|
|
227
|
-
// 2. Abort the fetch() call with p, request, responseObject, and
|
|
228
|
-
// deserializedError.
|
|
229
|
-
|
|
230
|
-
abortFetch(p, request, responseObject, controller.serializedAbortReason, controller.controller)
|
|
231
|
-
return
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
// 3. If response is a network error, then reject p with a TypeError
|
|
235
|
-
// and terminate these substeps.
|
|
236
|
-
if (response.type === 'error') {
|
|
237
|
-
p.reject(new TypeError('fetch failed', { cause: response.error }))
|
|
238
|
-
return
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
// 4. Set responseObject to the result of creating a Response object,
|
|
242
|
-
// given response, "immutable", and relevantRealm.
|
|
243
|
-
responseObject = new WeakRef(fromInnerResponse(response, 'immutable'))
|
|
244
|
-
|
|
245
|
-
// 5. Resolve p with responseObject.
|
|
246
|
-
p.resolve(responseObject.deref())
|
|
247
|
-
p = null
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
controller = fetching({
|
|
251
|
-
request,
|
|
252
|
-
processResponseEndOfBody: handleFetchDone,
|
|
253
|
-
processResponse,
|
|
254
|
-
dispatcher: getRequestDispatcher(requestObject), // undici
|
|
255
|
-
// Keep requestObject alive to prevent its AbortController from being GC'd
|
|
256
|
-
// See https://github.com/nodejs/undici/issues/4627
|
|
257
|
-
requestObject
|
|
258
|
-
})
|
|
259
|
-
|
|
260
|
-
// 14. Return p.
|
|
261
|
-
return p.promise
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
// https://fetch.spec.whatwg.org/#finalize-and-report-timing
|
|
265
|
-
function finalizeAndReportTiming (response, initiatorType = 'other') {
|
|
266
|
-
// 1. If response is an aborted network error, then return.
|
|
267
|
-
if (response.type === 'error' && response.aborted) {
|
|
268
|
-
return
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
// 2. If response’s URL list is null or empty, then return.
|
|
272
|
-
if (!response.urlList?.length) {
|
|
273
|
-
return
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
// 3. Let originalURL be response’s URL list[0].
|
|
277
|
-
const originalURL = response.urlList[0]
|
|
278
|
-
|
|
279
|
-
// 4. Let timingInfo be response’s timing info.
|
|
280
|
-
let timingInfo = response.timingInfo
|
|
281
|
-
|
|
282
|
-
// 5. Let cacheState be response’s cache state.
|
|
283
|
-
let cacheState = response.cacheState
|
|
284
|
-
|
|
285
|
-
// 6. If originalURL’s scheme is not an HTTP(S) scheme, then return.
|
|
286
|
-
if (!urlIsHttpHttpsScheme(originalURL)) {
|
|
287
|
-
return
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// 7. If timingInfo is null, then return.
|
|
291
|
-
if (timingInfo === null) {
|
|
292
|
-
return
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// 8. If response’s timing allow passed flag is not set, then:
|
|
296
|
-
if (!response.timingAllowPassed) {
|
|
297
|
-
// 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.
|
|
298
|
-
timingInfo = createOpaqueTimingInfo({
|
|
299
|
-
startTime: timingInfo.startTime
|
|
300
|
-
})
|
|
301
|
-
|
|
302
|
-
// 2. Set cacheState to the empty string.
|
|
303
|
-
cacheState = ''
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
// 9. Set timingInfo’s end time to the coarsened shared current time
|
|
307
|
-
// given global’s relevant settings object’s cross-origin isolated
|
|
308
|
-
// capability.
|
|
309
|
-
// TODO: given global’s relevant settings object’s cross-origin isolated
|
|
310
|
-
// capability?
|
|
311
|
-
timingInfo.endTime = coarsenedSharedCurrentTime()
|
|
312
|
-
|
|
313
|
-
// 10. Set response’s timing info to timingInfo.
|
|
314
|
-
response.timingInfo = timingInfo
|
|
315
|
-
|
|
316
|
-
// 11. Mark resource timing for timingInfo, originalURL, initiatorType,
|
|
317
|
-
// global, and cacheState.
|
|
318
|
-
markResourceTiming(
|
|
319
|
-
timingInfo,
|
|
320
|
-
originalURL.href,
|
|
321
|
-
initiatorType,
|
|
322
|
-
globalThis,
|
|
323
|
-
cacheState,
|
|
324
|
-
'', // bodyType
|
|
325
|
-
response.status
|
|
326
|
-
)
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
// https://w3c.github.io/resource-timing/#dfn-mark-resource-timing
|
|
330
|
-
const markResourceTiming = performance.markResourceTiming
|
|
331
|
-
|
|
332
|
-
// https://fetch.spec.whatwg.org/#abort-fetch
|
|
333
|
-
function abortFetch (p, request, responseObject, error, controller /* undici-specific */) {
|
|
334
|
-
// 1. Reject promise with error.
|
|
335
|
-
if (p) {
|
|
336
|
-
// We might have already resolved the promise at this stage
|
|
337
|
-
p.reject(error)
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
// 2. If request’s body is not null and is readable, then cancel request’s
|
|
341
|
-
// body with error.
|
|
342
|
-
if (request.body?.stream != null && isReadable(request.body.stream)) {
|
|
343
|
-
request.body.stream.cancel(error).catch((err) => {
|
|
344
|
-
if (err.code === 'ERR_INVALID_STATE') {
|
|
345
|
-
// Node bug?
|
|
346
|
-
return
|
|
347
|
-
}
|
|
348
|
-
throw err
|
|
349
|
-
})
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
// 3. If responseObject is null, then return.
|
|
353
|
-
if (responseObject == null) {
|
|
354
|
-
return
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
// 4. Let response be responseObject’s response.
|
|
358
|
-
const response = getResponseState(responseObject)
|
|
359
|
-
|
|
360
|
-
// 5. If response’s body is not null and is readable, then error response’s
|
|
361
|
-
// body with error.
|
|
362
|
-
if (response.body?.stream != null && isReadable(response.body.stream)) {
|
|
363
|
-
controller.error(error)
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
// https://fetch.spec.whatwg.org/#fetching
|
|
368
|
-
function fetching ({
|
|
369
|
-
request,
|
|
370
|
-
processRequestBodyChunkLength,
|
|
371
|
-
processRequestEndOfBody,
|
|
372
|
-
processResponse,
|
|
373
|
-
processResponseEndOfBody,
|
|
374
|
-
processResponseConsumeBody,
|
|
375
|
-
useParallelQueue = false,
|
|
376
|
-
dispatcher = getGlobalDispatcher(), // undici
|
|
377
|
-
requestObject = null // Keep alive to prevent AbortController GC, see #4627
|
|
378
|
-
}) {
|
|
379
|
-
// Ensure that the dispatcher is set accordingly
|
|
380
|
-
assert(dispatcher)
|
|
381
|
-
|
|
382
|
-
// 1. Let taskDestination be null.
|
|
383
|
-
let taskDestination = null
|
|
384
|
-
|
|
385
|
-
// 2. Let crossOriginIsolatedCapability be false.
|
|
386
|
-
let crossOriginIsolatedCapability = false
|
|
387
|
-
|
|
388
|
-
// 3. If request’s client is non-null, then:
|
|
389
|
-
if (request.client != null) {
|
|
390
|
-
// 1. Set taskDestination to request’s client’s global object.
|
|
391
|
-
taskDestination = request.client.globalObject
|
|
392
|
-
|
|
393
|
-
// 2. Set crossOriginIsolatedCapability to request’s client’s cross-origin
|
|
394
|
-
// isolated capability.
|
|
395
|
-
crossOriginIsolatedCapability =
|
|
396
|
-
request.client.crossOriginIsolatedCapability
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
// 4. If useParallelQueue is true, then set taskDestination to the result of
|
|
400
|
-
// starting a new parallel queue.
|
|
401
|
-
// TODO
|
|
402
|
-
|
|
403
|
-
// 5. Let timingInfo be a new fetch timing info whose start time and
|
|
404
|
-
// post-redirect start time are the coarsened shared current time given
|
|
405
|
-
// crossOriginIsolatedCapability.
|
|
406
|
-
const currentTime = coarsenedSharedCurrentTime(crossOriginIsolatedCapability)
|
|
407
|
-
const timingInfo = createOpaqueTimingInfo({
|
|
408
|
-
startTime: currentTime
|
|
409
|
-
})
|
|
410
|
-
|
|
411
|
-
// 6. Let fetchParams be a new fetch params whose
|
|
412
|
-
// request is request,
|
|
413
|
-
// timing info is timingInfo,
|
|
414
|
-
// process request body chunk length is processRequestBodyChunkLength,
|
|
415
|
-
// process request end-of-body is processRequestEndOfBody,
|
|
416
|
-
// process response is processResponse,
|
|
417
|
-
// process response consume body is processResponseConsumeBody,
|
|
418
|
-
// process response end-of-body is processResponseEndOfBody,
|
|
419
|
-
// task destination is taskDestination,
|
|
420
|
-
// and cross-origin isolated capability is crossOriginIsolatedCapability.
|
|
421
|
-
const fetchParams = {
|
|
422
|
-
controller: new Fetch(dispatcher),
|
|
423
|
-
request,
|
|
424
|
-
timingInfo,
|
|
425
|
-
processRequestBodyChunkLength,
|
|
426
|
-
processRequestEndOfBody,
|
|
427
|
-
processResponse,
|
|
428
|
-
processResponseConsumeBody,
|
|
429
|
-
processResponseEndOfBody,
|
|
430
|
-
taskDestination,
|
|
431
|
-
crossOriginIsolatedCapability,
|
|
432
|
-
// Keep requestObject alive to prevent its AbortController from being GC'd
|
|
433
|
-
requestObject
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
// 7. If request’s body is a byte sequence, then set request’s body to
|
|
437
|
-
// request’s body as a body.
|
|
438
|
-
// NOTE: Since fetching is only called from fetch, body should already be
|
|
439
|
-
// extracted.
|
|
440
|
-
assert(!request.body || request.body.stream)
|
|
441
|
-
|
|
442
|
-
// 8. If request’s window is "client", then set request’s window to request’s
|
|
443
|
-
// client, if request’s client’s global object is a Window object; otherwise
|
|
444
|
-
// "no-window".
|
|
445
|
-
if (request.window === 'client') {
|
|
446
|
-
// TODO: What if request.client is null?
|
|
447
|
-
request.window =
|
|
448
|
-
request.client?.globalObject?.constructor?.name === 'Window'
|
|
449
|
-
? request.client
|
|
450
|
-
: 'no-window'
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
// 9. If request’s origin is "client", then set request’s origin to request’s
|
|
454
|
-
// client’s origin.
|
|
455
|
-
if (request.origin === 'client') {
|
|
456
|
-
request.origin = request.client.origin
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
// 10. If all of the following conditions are true:
|
|
460
|
-
// TODO
|
|
461
|
-
|
|
462
|
-
// 11. If request’s policy container is "client", then:
|
|
463
|
-
if (request.policyContainer === 'client') {
|
|
464
|
-
// 1. If request’s client is non-null, then set request’s policy
|
|
465
|
-
// container to a clone of request’s client’s policy container. [HTML]
|
|
466
|
-
if (request.client != null) {
|
|
467
|
-
request.policyContainer = clonePolicyContainer(
|
|
468
|
-
request.client.policyContainer
|
|
469
|
-
)
|
|
470
|
-
} else {
|
|
471
|
-
// 2. Otherwise, set request’s policy container to a new policy
|
|
472
|
-
// container.
|
|
473
|
-
request.policyContainer = makePolicyContainer()
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
// 12. If request’s header list does not contain `Accept`, then:
|
|
478
|
-
if (!request.headersList.contains('accept', true)) {
|
|
479
|
-
// 1. Let value be `*/*`.
|
|
480
|
-
const value = '*/*'
|
|
481
|
-
|
|
482
|
-
// 2. A user agent should set value to the first matching statement, if
|
|
483
|
-
// any, switching on request’s destination:
|
|
484
|
-
// "document"
|
|
485
|
-
// "frame"
|
|
486
|
-
// "iframe"
|
|
487
|
-
// `text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`
|
|
488
|
-
// "image"
|
|
489
|
-
// `image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5`
|
|
490
|
-
// "style"
|
|
491
|
-
// `text/css,*/*;q=0.1`
|
|
492
|
-
// TODO
|
|
493
|
-
|
|
494
|
-
// 3. Append `Accept`/value to request’s header list.
|
|
495
|
-
request.headersList.append('accept', value, true)
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
// 13. If request’s header list does not contain `Accept-Language`, then
|
|
499
|
-
// user agents should append `Accept-Language`/an appropriate value to
|
|
500
|
-
// request’s header list.
|
|
501
|
-
if (!request.headersList.contains('accept-language', true)) {
|
|
502
|
-
request.headersList.append('accept-language', '*', true)
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
// 14. If request’s priority is null, then use request’s initiator and
|
|
506
|
-
// destination appropriately in setting request’s priority to a
|
|
507
|
-
// user-agent-defined object.
|
|
508
|
-
if (request.priority === null) {
|
|
509
|
-
// TODO
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
// 15. If request is a subresource request, then:
|
|
513
|
-
if (subresourceSet.has(request.destination)) {
|
|
514
|
-
// TODO
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
// 16. Run main fetch given fetchParams.
|
|
518
|
-
mainFetch(fetchParams, false)
|
|
519
|
-
|
|
520
|
-
// 17. Return fetchParam's controller
|
|
521
|
-
return fetchParams.controller
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
// https://fetch.spec.whatwg.org/#concept-main-fetch
|
|
525
|
-
async function mainFetch (fetchParams, recursive) {
|
|
526
|
-
try {
|
|
527
|
-
// 1. Let request be fetchParams’s request.
|
|
528
|
-
const request = fetchParams.request
|
|
529
|
-
|
|
530
|
-
// 2. Let response be null.
|
|
531
|
-
let response = null
|
|
532
|
-
|
|
533
|
-
// 3. If request’s local-URLs-only flag is set and request’s current URL is
|
|
534
|
-
// not local, then set response to a network error.
|
|
535
|
-
if (request.localURLsOnly && !urlIsLocal(requestCurrentURL(request))) {
|
|
536
|
-
response = makeNetworkError('local URLs only')
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
// 4. Run report Content Security Policy violations for request.
|
|
540
|
-
// TODO
|
|
541
|
-
|
|
542
|
-
// 5. Upgrade request to a potentially trustworthy URL, if appropriate.
|
|
543
|
-
tryUpgradeRequestToAPotentiallyTrustworthyURL(request)
|
|
544
|
-
|
|
545
|
-
// 6. If should request be blocked due to a bad port, should fetching request
|
|
546
|
-
// be blocked as mixed content, or should request be blocked by Content
|
|
547
|
-
// Security Policy returns blocked, then set response to a network error.
|
|
548
|
-
if (requestBadPort(request) === 'blocked') {
|
|
549
|
-
response = makeNetworkError('bad port')
|
|
550
|
-
}
|
|
551
|
-
// TODO: should fetching request be blocked as mixed content?
|
|
552
|
-
// TODO: should request be blocked by Content Security Policy?
|
|
553
|
-
|
|
554
|
-
// 7. If request’s referrer policy is the empty string, then set request’s
|
|
555
|
-
// referrer policy to request’s policy container’s referrer policy.
|
|
556
|
-
if (request.referrerPolicy === '') {
|
|
557
|
-
request.referrerPolicy = request.policyContainer.referrerPolicy
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
// 8. If request’s referrer is not "no-referrer", then set request’s
|
|
561
|
-
// referrer to the result of invoking determine request’s referrer.
|
|
562
|
-
if (request.referrer !== 'no-referrer') {
|
|
563
|
-
request.referrer = determineRequestsReferrer(request)
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
// 9. Set request’s current URL’s scheme to "https" if all of the following
|
|
567
|
-
// conditions are true:
|
|
568
|
-
// - request’s current URL’s scheme is "http"
|
|
569
|
-
// - request’s current URL’s host is a domain
|
|
570
|
-
// - Matching request’s current URL’s host per Known HSTS Host Domain Name
|
|
571
|
-
// Matching results in either a superdomain match with an asserted
|
|
572
|
-
// includeSubDomains directive or a congruent match (with or without an
|
|
573
|
-
// asserted includeSubDomains directive). [HSTS]
|
|
574
|
-
// TODO
|
|
575
|
-
|
|
576
|
-
// 10. If recursive is false, then run the remaining steps in parallel.
|
|
577
|
-
// TODO
|
|
578
|
-
|
|
579
|
-
// 11. If response is null, then set response to the result of running
|
|
580
|
-
// the steps corresponding to the first matching statement:
|
|
581
|
-
if (response === null) {
|
|
582
|
-
const currentURL = requestCurrentURL(request)
|
|
583
|
-
if (
|
|
584
|
-
// - request’s current URL’s origin is same origin with request’s origin,
|
|
585
|
-
// and request’s response tainting is "basic"
|
|
586
|
-
(sameOrigin(currentURL, request.url) && request.responseTainting === 'basic') ||
|
|
587
|
-
// request’s current URL’s scheme is "data"
|
|
588
|
-
(currentURL.protocol === 'data:') ||
|
|
589
|
-
// - request’s mode is "navigate" or "websocket"
|
|
590
|
-
(request.mode === 'navigate' || request.mode === 'websocket')
|
|
591
|
-
) {
|
|
592
|
-
// 1. Set request’s response tainting to "basic".
|
|
593
|
-
request.responseTainting = 'basic'
|
|
594
|
-
|
|
595
|
-
// 2. Return the result of running scheme fetch given fetchParams.
|
|
596
|
-
response = await schemeFetch(fetchParams)
|
|
597
|
-
|
|
598
|
-
// request’s mode is "same-origin"
|
|
599
|
-
} else if (request.mode === 'same-origin') {
|
|
600
|
-
// 1. Return a network error.
|
|
601
|
-
response = makeNetworkError('request mode cannot be "same-origin"')
|
|
602
|
-
|
|
603
|
-
// request’s mode is "no-cors"
|
|
604
|
-
} else if (request.mode === 'no-cors') {
|
|
605
|
-
// 1. If request’s redirect mode is not "follow", then return a network
|
|
606
|
-
// error.
|
|
607
|
-
if (request.redirect !== 'follow') {
|
|
608
|
-
response = makeNetworkError(
|
|
609
|
-
'redirect mode cannot be "follow" for "no-cors" request'
|
|
610
|
-
)
|
|
611
|
-
} else {
|
|
612
|
-
// 2. Set request’s response tainting to "opaque".
|
|
613
|
-
request.responseTainting = 'opaque'
|
|
614
|
-
|
|
615
|
-
// 3. Return the result of running scheme fetch given fetchParams.
|
|
616
|
-
response = await schemeFetch(fetchParams)
|
|
617
|
-
}
|
|
618
|
-
// request’s current URL’s scheme is not an HTTP(S) scheme
|
|
619
|
-
} else if (!urlIsHttpHttpsScheme(requestCurrentURL(request))) {
|
|
620
|
-
// Return a network error.
|
|
621
|
-
response = makeNetworkError('URL scheme must be a HTTP(S) scheme')
|
|
622
|
-
|
|
623
|
-
// - request’s use-CORS-preflight flag is set
|
|
624
|
-
// - request’s unsafe-request flag is set and either request’s method is
|
|
625
|
-
// not a CORS-safelisted method or CORS-unsafe request-header names with
|
|
626
|
-
// request’s header list is not empty
|
|
627
|
-
// 1. Set request’s response tainting to "cors".
|
|
628
|
-
// 2. Let corsWithPreflightResponse be the result of running HTTP fetch
|
|
629
|
-
// given fetchParams and true.
|
|
630
|
-
// 3. If corsWithPreflightResponse is a network error, then clear cache
|
|
631
|
-
// entries using request.
|
|
632
|
-
// 4. Return corsWithPreflightResponse.
|
|
633
|
-
// TODO
|
|
634
|
-
|
|
635
|
-
// Otherwise
|
|
636
|
-
} else {
|
|
637
|
-
// 1. Set request’s response tainting to "cors".
|
|
638
|
-
request.responseTainting = 'cors'
|
|
639
|
-
|
|
640
|
-
// 2. Return the result of running HTTP fetch given fetchParams.
|
|
641
|
-
response = await httpFetch(fetchParams)
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
// 12. If recursive is true, then return response.
|
|
646
|
-
if (recursive) {
|
|
647
|
-
return response
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
// 13. If response is not a network error and response is not a filtered
|
|
651
|
-
// response, then:
|
|
652
|
-
if (response.status !== 0 && !response.internalResponse) {
|
|
653
|
-
// If request’s response tainting is "cors", then:
|
|
654
|
-
if (request.responseTainting === 'cors') {
|
|
655
|
-
// 1. Let headerNames be the result of extracting header list values
|
|
656
|
-
// given `Access-Control-Expose-Headers` and response’s header list.
|
|
657
|
-
// TODO
|
|
658
|
-
// 2. If request’s credentials mode is not "include" and headerNames
|
|
659
|
-
// contains `*`, then set response’s CORS-exposed header-name list to
|
|
660
|
-
// all unique header names in response’s header list.
|
|
661
|
-
// TODO
|
|
662
|
-
// 3. Otherwise, if headerNames is not null or failure, then set
|
|
663
|
-
// response’s CORS-exposed header-name list to headerNames.
|
|
664
|
-
// TODO
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
// Set response to the following filtered response with response as its
|
|
668
|
-
// internal response, depending on request’s response tainting:
|
|
669
|
-
if (request.responseTainting === 'basic') {
|
|
670
|
-
response = filterResponse(response, 'basic')
|
|
671
|
-
} else if (request.responseTainting === 'cors') {
|
|
672
|
-
response = filterResponse(response, 'cors')
|
|
673
|
-
} else if (request.responseTainting === 'opaque') {
|
|
674
|
-
response = filterResponse(response, 'opaque')
|
|
675
|
-
} else {
|
|
676
|
-
assert(false)
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
// 14. Let internalResponse be response, if response is a network error,
|
|
681
|
-
// and response’s internal response otherwise.
|
|
682
|
-
let internalResponse =
|
|
683
|
-
response.status === 0 ? response : response.internalResponse
|
|
684
|
-
|
|
685
|
-
// 15. If internalResponse’s URL list is empty, then set it to a clone of
|
|
686
|
-
// request’s URL list.
|
|
687
|
-
if (internalResponse.urlList.length === 0) {
|
|
688
|
-
internalResponse.urlList.push(...request.urlList)
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
// 16. If request’s timing allow failed flag is unset, then set
|
|
692
|
-
// internalResponse’s timing allow passed flag.
|
|
693
|
-
if (!request.timingAllowFailed) {
|
|
694
|
-
response.timingAllowPassed = true
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
// 17. If response is not a network error and any of the following returns
|
|
698
|
-
// blocked
|
|
699
|
-
// - should internalResponse to request be blocked as mixed content
|
|
700
|
-
// - should internalResponse to request be blocked by Content Security Policy
|
|
701
|
-
// - should internalResponse to request be blocked due to its MIME type
|
|
702
|
-
// - should internalResponse to request be blocked due to nosniff
|
|
703
|
-
// TODO
|
|
704
|
-
|
|
705
|
-
// 18. If response’s type is "opaque", internalResponse’s status is 206,
|
|
706
|
-
// internalResponse’s range-requested flag is set, and request’s header
|
|
707
|
-
// list does not contain `Range`, then set response and internalResponse
|
|
708
|
-
// to a network error.
|
|
709
|
-
if (
|
|
710
|
-
response.type === 'opaque' &&
|
|
711
|
-
internalResponse.status === 206 &&
|
|
712
|
-
internalResponse.rangeRequested &&
|
|
713
|
-
!request.headers.contains('range', true)
|
|
714
|
-
) {
|
|
715
|
-
response = internalResponse = makeNetworkError()
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
// 19. If response is not a network error and either request’s method is
|
|
719
|
-
// `HEAD` or `CONNECT`, or internalResponse’s status is a null body status,
|
|
720
|
-
// set internalResponse’s body to null and disregard any enqueuing toward
|
|
721
|
-
// it (if any).
|
|
722
|
-
if (
|
|
723
|
-
response.status !== 0 &&
|
|
724
|
-
(request.method === 'HEAD' ||
|
|
725
|
-
request.method === 'CONNECT' ||
|
|
726
|
-
nullBodyStatus.includes(internalResponse.status))
|
|
727
|
-
) {
|
|
728
|
-
internalResponse.body = null
|
|
729
|
-
fetchParams.controller.dump = true
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
// 20. If request’s integrity metadata is not the empty string, then:
|
|
733
|
-
if (request.integrity) {
|
|
734
|
-
// 1. Let processBodyError be this step: run fetch finale given fetchParams
|
|
735
|
-
// and a network error.
|
|
736
|
-
const processBodyError = (reason) =>
|
|
737
|
-
fetchFinale(fetchParams, makeNetworkError(reason))
|
|
738
|
-
|
|
739
|
-
// 2. If request’s response tainting is "opaque", or response’s body is null,
|
|
740
|
-
// then run processBodyError and abort these steps.
|
|
741
|
-
if (request.responseTainting === 'opaque' || response.body == null) {
|
|
742
|
-
processBodyError(response.error)
|
|
743
|
-
return
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
// 3. Let processBody given bytes be these steps:
|
|
747
|
-
const processBody = (bytes) => {
|
|
748
|
-
// 1. If bytes do not match request’s integrity metadata,
|
|
749
|
-
// then run processBodyError and abort these steps. [SRI]
|
|
750
|
-
if (!bytesMatch(bytes, request.integrity)) {
|
|
751
|
-
processBodyError('integrity mismatch')
|
|
752
|
-
return
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
// 2. Set response’s body to bytes as a body.
|
|
756
|
-
response.body = safelyExtractBody(bytes)[0]
|
|
757
|
-
|
|
758
|
-
// 3. Run fetch finale given fetchParams and response.
|
|
759
|
-
fetchFinale(fetchParams, response)
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
// 4. Fully read response’s body given processBody and processBodyError.
|
|
763
|
-
fullyReadBody(response.body, processBody, processBodyError)
|
|
764
|
-
} else {
|
|
765
|
-
// 21. Otherwise, run fetch finale given fetchParams and response.
|
|
766
|
-
fetchFinale(fetchParams, response)
|
|
767
|
-
}
|
|
768
|
-
} catch (err) {
|
|
769
|
-
fetchParams.controller.terminate(err)
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
// https://fetch.spec.whatwg.org/#concept-scheme-fetch
|
|
774
|
-
// given a fetch params fetchParams
|
|
775
|
-
function schemeFetch (fetchParams) {
|
|
776
|
-
// Note: since the connection is destroyed on redirect, which sets fetchParams to a
|
|
777
|
-
// cancelled state, we do not want this condition to trigger *unless* there have been
|
|
778
|
-
// no redirects. See https://github.com/nodejs/undici/issues/1776
|
|
779
|
-
// 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.
|
|
780
|
-
if (isCancelled(fetchParams) && fetchParams.request.redirectCount === 0) {
|
|
781
|
-
return Promise.resolve(makeAppropriateNetworkError(fetchParams))
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
// 2. Let request be fetchParams’s request.
|
|
785
|
-
const { request } = fetchParams
|
|
786
|
-
|
|
787
|
-
const { protocol: scheme } = requestCurrentURL(request)
|
|
788
|
-
|
|
789
|
-
// 3. Switch on request’s current URL’s scheme and run the associated steps:
|
|
790
|
-
switch (scheme) {
|
|
791
|
-
case 'about:': {
|
|
792
|
-
// If request’s current URL’s path is the string "blank", then return a new response
|
|
793
|
-
// whose status message is `OK`, header list is « (`Content-Type`, `text/html;charset=utf-8`) »,
|
|
794
|
-
// and body is the empty byte sequence as a body.
|
|
795
|
-
|
|
796
|
-
// Otherwise, return a network error.
|
|
797
|
-
return Promise.resolve(makeNetworkError('about scheme is not supported'))
|
|
798
|
-
}
|
|
799
|
-
case 'blob:': {
|
|
800
|
-
if (!resolveObjectURL) {
|
|
801
|
-
resolveObjectURL = require('node:buffer').resolveObjectURL
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
// 1. Let blobURLEntry be request’s current URL’s blob URL entry.
|
|
805
|
-
const blobURLEntry = requestCurrentURL(request)
|
|
806
|
-
|
|
807
|
-
// https://github.com/web-platform-tests/wpt/blob/7b0ebaccc62b566a1965396e5be7bb2bc06f841f/FileAPI/url/resources/fetch-tests.js#L52-L56
|
|
808
|
-
// Buffer.resolveObjectURL does not ignore URL queries.
|
|
809
|
-
if (blobURLEntry.search.length !== 0) {
|
|
810
|
-
return Promise.resolve(makeNetworkError('NetworkError when attempting to fetch resource.'))
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
const blob = resolveObjectURL(blobURLEntry.toString())
|
|
814
|
-
|
|
815
|
-
// 2. If request’s method is not `GET`, blobURLEntry is null, or blobURLEntry’s
|
|
816
|
-
// object is not a Blob object, then return a network error.
|
|
817
|
-
if (request.method !== 'GET' || !webidl.is.Blob(blob)) {
|
|
818
|
-
return Promise.resolve(makeNetworkError('invalid method'))
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
// 3. Let blob be blobURLEntry’s object.
|
|
822
|
-
// Note: done above
|
|
823
|
-
|
|
824
|
-
// 4. Let response be a new response.
|
|
825
|
-
const response = makeResponse()
|
|
826
|
-
|
|
827
|
-
// 5. Let fullLength be blob’s size.
|
|
828
|
-
const fullLength = blob.size
|
|
829
|
-
|
|
830
|
-
// 6. Let serializedFullLength be fullLength, serialized and isomorphic encoded.
|
|
831
|
-
const serializedFullLength = isomorphicEncode(`${fullLength}`)
|
|
832
|
-
|
|
833
|
-
// 7. Let type be blob’s type.
|
|
834
|
-
const type = blob.type
|
|
835
|
-
|
|
836
|
-
// 8. If request’s header list does not contain `Range`:
|
|
837
|
-
// 9. Otherwise:
|
|
838
|
-
if (!request.headersList.contains('range', true)) {
|
|
839
|
-
// 1. Let bodyWithType be the result of safely extracting blob.
|
|
840
|
-
// Note: in the FileAPI a blob "object" is a Blob *or* a MediaSource.
|
|
841
|
-
// In node, this can only ever be a Blob. Therefore we can safely
|
|
842
|
-
// use extractBody directly.
|
|
843
|
-
const bodyWithType = extractBody(blob)
|
|
844
|
-
|
|
845
|
-
// 2. Set response’s status message to `OK`.
|
|
846
|
-
response.statusText = 'OK'
|
|
847
|
-
|
|
848
|
-
// 3. Set response’s body to bodyWithType’s body.
|
|
849
|
-
response.body = bodyWithType[0]
|
|
850
|
-
|
|
851
|
-
// 4. Set response’s header list to « (`Content-Length`, serializedFullLength), (`Content-Type`, type) ».
|
|
852
|
-
response.headersList.set('content-length', serializedFullLength, true)
|
|
853
|
-
response.headersList.set('content-type', type, true)
|
|
854
|
-
} else {
|
|
855
|
-
// 1. Set response’s range-requested flag.
|
|
856
|
-
response.rangeRequested = true
|
|
857
|
-
|
|
858
|
-
// 2. Let rangeHeader be the result of getting `Range` from request’s header list.
|
|
859
|
-
const rangeHeader = request.headersList.get('range', true)
|
|
860
|
-
|
|
861
|
-
// 3. Let rangeValue be the result of parsing a single range header value given rangeHeader and true.
|
|
862
|
-
const rangeValue = simpleRangeHeaderValue(rangeHeader, true)
|
|
863
|
-
|
|
864
|
-
// 4. If rangeValue is failure, then return a network error.
|
|
865
|
-
if (rangeValue === 'failure') {
|
|
866
|
-
return Promise.resolve(makeNetworkError('failed to fetch the data URL'))
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
// 5. Let (rangeStart, rangeEnd) be rangeValue.
|
|
870
|
-
let { rangeStartValue: rangeStart, rangeEndValue: rangeEnd } = rangeValue
|
|
871
|
-
|
|
872
|
-
// 6. If rangeStart is null:
|
|
873
|
-
// 7. Otherwise:
|
|
874
|
-
if (rangeStart === null) {
|
|
875
|
-
// 1. Set rangeStart to fullLength − rangeEnd.
|
|
876
|
-
rangeStart = fullLength - rangeEnd
|
|
877
|
-
|
|
878
|
-
// 2. Set rangeEnd to rangeStart + rangeEnd − 1.
|
|
879
|
-
rangeEnd = rangeStart + rangeEnd - 1
|
|
880
|
-
} else {
|
|
881
|
-
// 1. If rangeStart is greater than or equal to fullLength, then return a network error.
|
|
882
|
-
if (rangeStart >= fullLength) {
|
|
883
|
-
return Promise.resolve(makeNetworkError('Range start is greater than the blob\'s size.'))
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
// 2. If rangeEnd is null or rangeEnd is greater than or equal to fullLength, then set
|
|
887
|
-
// rangeEnd to fullLength − 1.
|
|
888
|
-
if (rangeEnd === null || rangeEnd >= fullLength) {
|
|
889
|
-
rangeEnd = fullLength - 1
|
|
890
|
-
}
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
// 8. Let slicedBlob be the result of invoking slice blob given blob, rangeStart,
|
|
894
|
-
// rangeEnd + 1, and type.
|
|
895
|
-
const slicedBlob = blob.slice(rangeStart, rangeEnd + 1, type)
|
|
896
|
-
|
|
897
|
-
// 9. Let slicedBodyWithType be the result of safely extracting slicedBlob.
|
|
898
|
-
// Note: same reason as mentioned above as to why we use extractBody
|
|
899
|
-
const slicedBodyWithType = extractBody(slicedBlob)
|
|
900
|
-
|
|
901
|
-
// 10. Set response’s body to slicedBodyWithType’s body.
|
|
902
|
-
response.body = slicedBodyWithType[0]
|
|
903
|
-
|
|
904
|
-
// 11. Let serializedSlicedLength be slicedBlob’s size, serialized and isomorphic encoded.
|
|
905
|
-
const serializedSlicedLength = isomorphicEncode(`${slicedBlob.size}`)
|
|
906
|
-
|
|
907
|
-
// 12. Let contentRange be the result of invoking build a content range given rangeStart,
|
|
908
|
-
// rangeEnd, and fullLength.
|
|
909
|
-
const contentRange = buildContentRange(rangeStart, rangeEnd, fullLength)
|
|
910
|
-
|
|
911
|
-
// 13. Set response’s status to 206.
|
|
912
|
-
response.status = 206
|
|
913
|
-
|
|
914
|
-
// 14. Set response’s status message to `Partial Content`.
|
|
915
|
-
response.statusText = 'Partial Content'
|
|
916
|
-
|
|
917
|
-
// 15. Set response’s header list to « (`Content-Length`, serializedSlicedLength),
|
|
918
|
-
// (`Content-Type`, type), (`Content-Range`, contentRange) ».
|
|
919
|
-
response.headersList.set('content-length', serializedSlicedLength, true)
|
|
920
|
-
response.headersList.set('content-type', type, true)
|
|
921
|
-
response.headersList.set('content-range', contentRange, true)
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
// 10. Return response.
|
|
925
|
-
return Promise.resolve(response)
|
|
926
|
-
}
|
|
927
|
-
case 'data:': {
|
|
928
|
-
// 1. Let dataURLStruct be the result of running the
|
|
929
|
-
// data: URL processor on request’s current URL.
|
|
930
|
-
const currentURL = requestCurrentURL(request)
|
|
931
|
-
const dataURLStruct = dataURLProcessor(currentURL)
|
|
932
|
-
|
|
933
|
-
// 2. If dataURLStruct is failure, then return a
|
|
934
|
-
// network error.
|
|
935
|
-
if (dataURLStruct === 'failure') {
|
|
936
|
-
return Promise.resolve(makeNetworkError('failed to fetch the data URL'))
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
// 3. Let mimeType be dataURLStruct’s MIME type, serialized.
|
|
940
|
-
const mimeType = serializeAMimeType(dataURLStruct.mimeType)
|
|
941
|
-
|
|
942
|
-
// 4. Return a response whose status message is `OK`,
|
|
943
|
-
// header list is « (`Content-Type`, mimeType) »,
|
|
944
|
-
// and body is dataURLStruct’s body as a body.
|
|
945
|
-
return Promise.resolve(makeResponse({
|
|
946
|
-
statusText: 'OK',
|
|
947
|
-
headersList: [
|
|
948
|
-
['content-type', { name: 'Content-Type', value: mimeType }]
|
|
949
|
-
],
|
|
950
|
-
body: safelyExtractBody(dataURLStruct.body)[0]
|
|
951
|
-
}))
|
|
952
|
-
}
|
|
953
|
-
case 'file:': {
|
|
954
|
-
// For now, unfortunate as it is, file URLs are left as an exercise for the reader.
|
|
955
|
-
// When in doubt, return a network error.
|
|
956
|
-
return Promise.resolve(makeNetworkError('not implemented... yet...'))
|
|
957
|
-
}
|
|
958
|
-
case 'http:':
|
|
959
|
-
case 'https:': {
|
|
960
|
-
// Return the result of running HTTP fetch given fetchParams.
|
|
961
|
-
|
|
962
|
-
return httpFetch(fetchParams)
|
|
963
|
-
.catch((err) => makeNetworkError(err))
|
|
964
|
-
}
|
|
965
|
-
default: {
|
|
966
|
-
return Promise.resolve(makeNetworkError('unknown scheme'))
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
|
|
971
|
-
// https://fetch.spec.whatwg.org/#finalize-response
|
|
972
|
-
function finalizeResponse (fetchParams, response) {
|
|
973
|
-
// 1. Set fetchParams’s request’s done flag.
|
|
974
|
-
fetchParams.request.done = true
|
|
975
|
-
|
|
976
|
-
// 2, If fetchParams’s process response done is not null, then queue a fetch
|
|
977
|
-
// task to run fetchParams’s process response done given response, with
|
|
978
|
-
// fetchParams’s task destination.
|
|
979
|
-
if (fetchParams.processResponseDone != null) {
|
|
980
|
-
queueMicrotask(() => fetchParams.processResponseDone(response))
|
|
981
|
-
}
|
|
982
|
-
}
|
|
983
|
-
|
|
984
|
-
// https://fetch.spec.whatwg.org/#fetch-finale
|
|
985
|
-
function fetchFinale (fetchParams, response) {
|
|
986
|
-
// 1. Let timingInfo be fetchParams’s timing info.
|
|
987
|
-
let timingInfo = fetchParams.timingInfo
|
|
988
|
-
|
|
989
|
-
// 2. If response is not a network error and fetchParams’s request’s client is a secure context,
|
|
990
|
-
// then set timingInfo’s server-timing headers to the result of getting, decoding, and splitting
|
|
991
|
-
// `Server-Timing` from response’s internal response’s header list.
|
|
992
|
-
// TODO
|
|
993
|
-
|
|
994
|
-
// 3. Let processResponseEndOfBody be the following steps:
|
|
995
|
-
const processResponseEndOfBody = () => {
|
|
996
|
-
// 1. Let unsafeEndTime be the unsafe shared current time.
|
|
997
|
-
const unsafeEndTime = Date.now() // ?
|
|
998
|
-
|
|
999
|
-
// 2. If fetchParams’s request’s destination is "document", then set fetchParams’s controller’s
|
|
1000
|
-
// full timing info to fetchParams’s timing info.
|
|
1001
|
-
if (fetchParams.request.destination === 'document') {
|
|
1002
|
-
fetchParams.controller.fullTimingInfo = timingInfo
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
// 3. Set fetchParams’s controller’s report timing steps to the following steps given a global object global:
|
|
1006
|
-
fetchParams.controller.reportTimingSteps = () => {
|
|
1007
|
-
// 1. If fetchParams’s request’s URL’s scheme is not an HTTP(S) scheme, then return.
|
|
1008
|
-
if (!urlIsHttpHttpsScheme(fetchParams.request.url)) {
|
|
1009
|
-
return
|
|
1010
|
-
}
|
|
1011
|
-
|
|
1012
|
-
// 2. Set timingInfo’s end time to the relative high resolution time given unsafeEndTime and global.
|
|
1013
|
-
timingInfo.endTime = unsafeEndTime
|
|
1014
|
-
|
|
1015
|
-
// 3. Let cacheState be response’s cache state.
|
|
1016
|
-
let cacheState = response.cacheState
|
|
1017
|
-
|
|
1018
|
-
// 4. Let bodyInfo be response’s body info.
|
|
1019
|
-
const bodyInfo = response.bodyInfo
|
|
1020
|
-
|
|
1021
|
-
// 5. If response’s timing allow passed flag is not set, then set timingInfo to the result of creating an
|
|
1022
|
-
// opaque timing info for timingInfo and set cacheState to the empty string.
|
|
1023
|
-
if (!response.timingAllowPassed) {
|
|
1024
|
-
timingInfo = createOpaqueTimingInfo(timingInfo)
|
|
1025
|
-
|
|
1026
|
-
cacheState = ''
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
// 6. Let responseStatus be 0.
|
|
1030
|
-
let responseStatus = 0
|
|
1031
|
-
|
|
1032
|
-
// 7. If fetchParams’s request’s mode is not "navigate" or response’s has-cross-origin-redirects is false:
|
|
1033
|
-
if (fetchParams.request.mode !== 'navigate' || !response.hasCrossOriginRedirects) {
|
|
1034
|
-
// 1. Set responseStatus to response’s status.
|
|
1035
|
-
responseStatus = response.status
|
|
1036
|
-
|
|
1037
|
-
// 2. Let mimeType be the result of extracting a MIME type from response’s header list.
|
|
1038
|
-
const mimeType = extractMimeType(response.headersList)
|
|
1039
|
-
|
|
1040
|
-
// 3. If mimeType is not failure, then set bodyInfo’s content type to the result of minimizing a supported MIME type given mimeType.
|
|
1041
|
-
if (mimeType !== 'failure') {
|
|
1042
|
-
bodyInfo.contentType = minimizeSupportedMimeType(mimeType)
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
// 8. If fetchParams’s request’s initiator type is non-null, then mark resource timing given timingInfo,
|
|
1047
|
-
// fetchParams’s request’s URL, fetchParams’s request’s initiator type, global, cacheState, bodyInfo,
|
|
1048
|
-
// and responseStatus.
|
|
1049
|
-
if (fetchParams.request.initiatorType != null) {
|
|
1050
|
-
markResourceTiming(timingInfo, fetchParams.request.url.href, fetchParams.request.initiatorType, globalThis, cacheState, bodyInfo, responseStatus)
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
|
|
1054
|
-
// 4. Let processResponseEndOfBodyTask be the following steps:
|
|
1055
|
-
const processResponseEndOfBodyTask = () => {
|
|
1056
|
-
// 1. Set fetchParams’s request’s done flag.
|
|
1057
|
-
fetchParams.request.done = true
|
|
1058
|
-
|
|
1059
|
-
// 2. If fetchParams’s process response end-of-body is non-null, then run fetchParams’s process
|
|
1060
|
-
// response end-of-body given response.
|
|
1061
|
-
if (fetchParams.processResponseEndOfBody != null) {
|
|
1062
|
-
queueMicrotask(() => fetchParams.processResponseEndOfBody(response))
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
// 3. If fetchParams’s request’s initiator type is non-null and fetchParams’s request’s client’s
|
|
1066
|
-
// global object is fetchParams’s task destination, then run fetchParams’s controller’s report
|
|
1067
|
-
// timing steps given fetchParams’s request’s client’s global object.
|
|
1068
|
-
if (fetchParams.request.initiatorType != null) {
|
|
1069
|
-
fetchParams.controller.reportTimingSteps()
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
// 5. Queue a fetch task to run processResponseEndOfBodyTask with fetchParams’s task destination
|
|
1074
|
-
queueMicrotask(() => processResponseEndOfBodyTask())
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
// 4. If fetchParams’s process response is non-null, then queue a fetch task to run fetchParams’s
|
|
1078
|
-
// process response given response, with fetchParams’s task destination.
|
|
1079
|
-
if (fetchParams.processResponse != null) {
|
|
1080
|
-
queueMicrotask(() => {
|
|
1081
|
-
fetchParams.processResponse(response)
|
|
1082
|
-
fetchParams.processResponse = null
|
|
1083
|
-
})
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
// 5. Let internalResponse be response, if response is a network error; otherwise response’s internal response.
|
|
1087
|
-
const internalResponse = response.type === 'error' ? response : (response.internalResponse ?? response)
|
|
1088
|
-
|
|
1089
|
-
// 6. If internalResponse’s body is null, then run processResponseEndOfBody.
|
|
1090
|
-
// 7. Otherwise:
|
|
1091
|
-
if (internalResponse.body == null) {
|
|
1092
|
-
processResponseEndOfBody()
|
|
1093
|
-
} else {
|
|
1094
|
-
// mcollina: all the following steps of the specs are skipped.
|
|
1095
|
-
// The internal transform stream is not needed.
|
|
1096
|
-
// See https://github.com/nodejs/undici/pull/3093#issuecomment-2050198541
|
|
1097
|
-
|
|
1098
|
-
// 1. Let transformStream be a new TransformStream.
|
|
1099
|
-
// 2. Let identityTransformAlgorithm be an algorithm which, given chunk, enqueues chunk in transformStream.
|
|
1100
|
-
// 3. Set up transformStream with transformAlgorithm set to identityTransformAlgorithm and flushAlgorithm
|
|
1101
|
-
// set to processResponseEndOfBody.
|
|
1102
|
-
// 4. Set internalResponse’s body’s stream to the result of internalResponse’s body’s stream piped through transformStream.
|
|
1103
|
-
|
|
1104
|
-
finished(internalResponse.body.stream, () => {
|
|
1105
|
-
processResponseEndOfBody()
|
|
1106
|
-
})
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
// https://fetch.spec.whatwg.org/#http-fetch
|
|
1111
|
-
async function httpFetch (fetchParams) {
|
|
1112
|
-
// 1. Let request be fetchParams’s request.
|
|
1113
|
-
const request = fetchParams.request
|
|
1114
|
-
|
|
1115
|
-
// 2. Let response be null.
|
|
1116
|
-
let response = null
|
|
1117
|
-
|
|
1118
|
-
// 3. Let actualResponse be null.
|
|
1119
|
-
let actualResponse = null
|
|
1120
|
-
|
|
1121
|
-
// 4. Let timingInfo be fetchParams’s timing info.
|
|
1122
|
-
const timingInfo = fetchParams.timingInfo
|
|
1123
|
-
|
|
1124
|
-
// 5. If request’s service-workers mode is "all", then:
|
|
1125
|
-
if (request.serviceWorkers === 'all') {
|
|
1126
|
-
// TODO
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
// 6. If response is null, then:
|
|
1130
|
-
if (response === null) {
|
|
1131
|
-
// 1. If makeCORSPreflight is true and one of these conditions is true:
|
|
1132
|
-
// TODO
|
|
1133
|
-
|
|
1134
|
-
// 2. If request’s redirect mode is "follow", then set request’s
|
|
1135
|
-
// service-workers mode to "none".
|
|
1136
|
-
if (request.redirect === 'follow') {
|
|
1137
|
-
request.serviceWorkers = 'none'
|
|
1138
|
-
}
|
|
1139
|
-
|
|
1140
|
-
// 3. Set response and actualResponse to the result of running
|
|
1141
|
-
// HTTP-network-or-cache fetch given fetchParams.
|
|
1142
|
-
actualResponse = response = await httpNetworkOrCacheFetch(fetchParams)
|
|
1143
|
-
|
|
1144
|
-
// 4. If request’s response tainting is "cors" and a CORS check
|
|
1145
|
-
// for request and response returns failure, then return a network error.
|
|
1146
|
-
if (
|
|
1147
|
-
request.responseTainting === 'cors' &&
|
|
1148
|
-
corsCheck(request, response) === 'failure'
|
|
1149
|
-
) {
|
|
1150
|
-
return makeNetworkError('cors failure')
|
|
1151
|
-
}
|
|
1152
|
-
|
|
1153
|
-
// 5. If the TAO check for request and response returns failure, then set
|
|
1154
|
-
// request’s timing allow failed flag.
|
|
1155
|
-
if (TAOCheck(request, response) === 'failure') {
|
|
1156
|
-
request.timingAllowFailed = true
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
// 7. If either request’s response tainting or response’s type
|
|
1161
|
-
// is "opaque", and the cross-origin resource policy check with
|
|
1162
|
-
// request’s origin, request’s client, request’s destination,
|
|
1163
|
-
// and actualResponse returns blocked, then return a network error.
|
|
1164
|
-
if (
|
|
1165
|
-
(request.responseTainting === 'opaque' || response.type === 'opaque') &&
|
|
1166
|
-
crossOriginResourcePolicyCheck(
|
|
1167
|
-
request.origin,
|
|
1168
|
-
request.client,
|
|
1169
|
-
request.destination,
|
|
1170
|
-
actualResponse
|
|
1171
|
-
) === 'blocked'
|
|
1172
|
-
) {
|
|
1173
|
-
return makeNetworkError('blocked')
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
// 8. If actualResponse’s status is a redirect status, then:
|
|
1177
|
-
if (redirectStatusSet.has(actualResponse.status)) {
|
|
1178
|
-
// 1. If actualResponse’s status is not 303, request’s body is not null,
|
|
1179
|
-
// and the connection uses HTTP/2, then user agents may, and are even
|
|
1180
|
-
// encouraged to, transmit an RST_STREAM frame.
|
|
1181
|
-
// See, https://github.com/whatwg/fetch/issues/1288
|
|
1182
|
-
if (request.redirect !== 'manual') {
|
|
1183
|
-
fetchParams.controller.connection.destroy(undefined, false)
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
// 2. Switch on request’s redirect mode:
|
|
1187
|
-
if (request.redirect === 'error') {
|
|
1188
|
-
// Set response to a network error.
|
|
1189
|
-
response = makeNetworkError('unexpected redirect')
|
|
1190
|
-
} else if (request.redirect === 'manual') {
|
|
1191
|
-
// Set response to an opaque-redirect filtered response whose internal
|
|
1192
|
-
// response is actualResponse.
|
|
1193
|
-
// NOTE(spec): On the web this would return an `opaqueredirect` response,
|
|
1194
|
-
// but that doesn't make sense server side.
|
|
1195
|
-
// See https://github.com/nodejs/undici/issues/1193.
|
|
1196
|
-
response = actualResponse
|
|
1197
|
-
} else if (request.redirect === 'follow') {
|
|
1198
|
-
// Set response to the result of running HTTP-redirect fetch given
|
|
1199
|
-
// fetchParams and response.
|
|
1200
|
-
response = await httpRedirectFetch(fetchParams, response)
|
|
1201
|
-
} else {
|
|
1202
|
-
assert(false)
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
// 9. Set response’s timing info to timingInfo.
|
|
1207
|
-
response.timingInfo = timingInfo
|
|
1208
|
-
|
|
1209
|
-
// 10. Return response.
|
|
1210
|
-
return response
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
// https://fetch.spec.whatwg.org/#http-redirect-fetch
|
|
1214
|
-
function httpRedirectFetch (fetchParams, response) {
|
|
1215
|
-
// 1. Let request be fetchParams’s request.
|
|
1216
|
-
const request = fetchParams.request
|
|
1217
|
-
|
|
1218
|
-
// 2. Let actualResponse be response, if response is not a filtered response,
|
|
1219
|
-
// and response’s internal response otherwise.
|
|
1220
|
-
const actualResponse = response.internalResponse
|
|
1221
|
-
? response.internalResponse
|
|
1222
|
-
: response
|
|
1223
|
-
|
|
1224
|
-
// 3. Let locationURL be actualResponse’s location URL given request’s current
|
|
1225
|
-
// URL’s fragment.
|
|
1226
|
-
let locationURL
|
|
1227
|
-
|
|
1228
|
-
try {
|
|
1229
|
-
locationURL = responseLocationURL(
|
|
1230
|
-
actualResponse,
|
|
1231
|
-
requestCurrentURL(request).hash
|
|
1232
|
-
)
|
|
1233
|
-
|
|
1234
|
-
// 4. If locationURL is null, then return response.
|
|
1235
|
-
if (locationURL == null) {
|
|
1236
|
-
return response
|
|
1237
|
-
}
|
|
1238
|
-
} catch (err) {
|
|
1239
|
-
// 5. If locationURL is failure, then return a network error.
|
|
1240
|
-
return Promise.resolve(makeNetworkError(err))
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
// 6. If locationURL’s scheme is not an HTTP(S) scheme, then return a network
|
|
1244
|
-
// error.
|
|
1245
|
-
if (!urlIsHttpHttpsScheme(locationURL)) {
|
|
1246
|
-
return Promise.resolve(makeNetworkError('URL scheme must be a HTTP(S) scheme'))
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
// 7. If request’s redirect count is 20, then return a network error.
|
|
1250
|
-
if (request.redirectCount === 20) {
|
|
1251
|
-
return Promise.resolve(makeNetworkError('redirect count exceeded'))
|
|
1252
|
-
}
|
|
1253
|
-
|
|
1254
|
-
// 8. Increase request’s redirect count by 1.
|
|
1255
|
-
request.redirectCount += 1
|
|
1256
|
-
|
|
1257
|
-
// 9. If request’s mode is "cors", locationURL includes credentials, and
|
|
1258
|
-
// request’s origin is not same origin with locationURL’s origin, then return
|
|
1259
|
-
// a network error.
|
|
1260
|
-
if (
|
|
1261
|
-
request.mode === 'cors' &&
|
|
1262
|
-
(locationURL.username || locationURL.password) &&
|
|
1263
|
-
!sameOrigin(request, locationURL)
|
|
1264
|
-
) {
|
|
1265
|
-
return Promise.resolve(makeNetworkError('cross origin not allowed for request mode "cors"'))
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
// 10. If request’s response tainting is "cors" and locationURL includes
|
|
1269
|
-
// credentials, then return a network error.
|
|
1270
|
-
if (
|
|
1271
|
-
request.responseTainting === 'cors' &&
|
|
1272
|
-
(locationURL.username || locationURL.password)
|
|
1273
|
-
) {
|
|
1274
|
-
return Promise.resolve(makeNetworkError(
|
|
1275
|
-
'URL cannot contain credentials for request mode "cors"'
|
|
1276
|
-
))
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
// 11. If actualResponse’s status is not 303, request’s body is non-null,
|
|
1280
|
-
// and request’s body’s source is null, then return a network error.
|
|
1281
|
-
if (
|
|
1282
|
-
actualResponse.status !== 303 &&
|
|
1283
|
-
request.body != null &&
|
|
1284
|
-
request.body.source == null
|
|
1285
|
-
) {
|
|
1286
|
-
return Promise.resolve(makeNetworkError())
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
// 12. If one of the following is true
|
|
1290
|
-
// - actualResponse’s status is 301 or 302 and request’s method is `POST`
|
|
1291
|
-
// - actualResponse’s status is 303 and request’s method is not `GET` or `HEAD`
|
|
1292
|
-
if (
|
|
1293
|
-
([301, 302].includes(actualResponse.status) && request.method === 'POST') ||
|
|
1294
|
-
(actualResponse.status === 303 &&
|
|
1295
|
-
!GET_OR_HEAD.includes(request.method))
|
|
1296
|
-
) {
|
|
1297
|
-
// then:
|
|
1298
|
-
// 1. Set request’s method to `GET` and request’s body to null.
|
|
1299
|
-
request.method = 'GET'
|
|
1300
|
-
request.body = null
|
|
1301
|
-
|
|
1302
|
-
// 2. For each headerName of request-body-header name, delete headerName from
|
|
1303
|
-
// request’s header list.
|
|
1304
|
-
for (const headerName of requestBodyHeader) {
|
|
1305
|
-
request.headersList.delete(headerName)
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
// 13. If request’s current URL’s origin is not same origin with locationURL’s
|
|
1310
|
-
// origin, then for each headerName of CORS non-wildcard request-header name,
|
|
1311
|
-
// delete headerName from request’s header list.
|
|
1312
|
-
if (!sameOrigin(requestCurrentURL(request), locationURL)) {
|
|
1313
|
-
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
|
|
1314
|
-
request.headersList.delete('authorization', true)
|
|
1315
|
-
|
|
1316
|
-
// https://fetch.spec.whatwg.org/#authentication-entries
|
|
1317
|
-
request.headersList.delete('proxy-authorization', true)
|
|
1318
|
-
|
|
1319
|
-
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
|
|
1320
|
-
request.headersList.delete('cookie', true)
|
|
1321
|
-
request.headersList.delete('host', true)
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
// 14. If request's body is non-null, then set request's body to the first return
|
|
1325
|
-
// value of safely extracting request's body's source.
|
|
1326
|
-
if (request.body != null) {
|
|
1327
|
-
assert(request.body.source != null)
|
|
1328
|
-
request.body = safelyExtractBody(request.body.source)[0]
|
|
1329
|
-
}
|
|
1330
|
-
|
|
1331
|
-
// 15. Let timingInfo be fetchParams’s timing info.
|
|
1332
|
-
const timingInfo = fetchParams.timingInfo
|
|
1333
|
-
|
|
1334
|
-
// 16. Set timingInfo’s redirect end time and post-redirect start time to the
|
|
1335
|
-
// coarsened shared current time given fetchParams’s cross-origin isolated
|
|
1336
|
-
// capability.
|
|
1337
|
-
timingInfo.redirectEndTime = timingInfo.postRedirectStartTime =
|
|
1338
|
-
coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)
|
|
1339
|
-
|
|
1340
|
-
// 17. If timingInfo’s redirect start time is 0, then set timingInfo’s
|
|
1341
|
-
// redirect start time to timingInfo’s start time.
|
|
1342
|
-
if (timingInfo.redirectStartTime === 0) {
|
|
1343
|
-
timingInfo.redirectStartTime = timingInfo.startTime
|
|
1344
|
-
}
|
|
1345
|
-
|
|
1346
|
-
// 18. Append locationURL to request’s URL list.
|
|
1347
|
-
request.urlList.push(locationURL)
|
|
1348
|
-
|
|
1349
|
-
// 19. Invoke set request’s referrer policy on redirect on request and
|
|
1350
|
-
// actualResponse.
|
|
1351
|
-
setRequestReferrerPolicyOnRedirect(request, actualResponse)
|
|
1352
|
-
|
|
1353
|
-
// 20. Return the result of running main fetch given fetchParams and true.
|
|
1354
|
-
return mainFetch(fetchParams, true)
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
// https://fetch.spec.whatwg.org/#http-network-or-cache-fetch
|
|
1358
|
-
async function httpNetworkOrCacheFetch (
|
|
1359
|
-
fetchParams,
|
|
1360
|
-
isAuthenticationFetch = false,
|
|
1361
|
-
isNewConnectionFetch = false
|
|
1362
|
-
) {
|
|
1363
|
-
// 1. Let request be fetchParams’s request.
|
|
1364
|
-
const request = fetchParams.request
|
|
1365
|
-
|
|
1366
|
-
// 2. Let httpFetchParams be null.
|
|
1367
|
-
let httpFetchParams = null
|
|
1368
|
-
|
|
1369
|
-
// 3. Let httpRequest be null.
|
|
1370
|
-
let httpRequest = null
|
|
1371
|
-
|
|
1372
|
-
// 4. Let response be null.
|
|
1373
|
-
let response = null
|
|
1374
|
-
|
|
1375
|
-
// 5. Let storedResponse be null.
|
|
1376
|
-
// TODO: cache
|
|
1377
|
-
|
|
1378
|
-
// 6. Let httpCache be null.
|
|
1379
|
-
const httpCache = null
|
|
1380
|
-
|
|
1381
|
-
// 7. Let the revalidatingFlag be unset.
|
|
1382
|
-
const revalidatingFlag = false
|
|
1383
|
-
|
|
1384
|
-
// 8. Run these steps, but abort when the ongoing fetch is terminated:
|
|
1385
|
-
|
|
1386
|
-
// 1. If request’s window is "no-window" and request’s redirect mode is
|
|
1387
|
-
// "error", then set httpFetchParams to fetchParams and httpRequest to
|
|
1388
|
-
// request.
|
|
1389
|
-
if (request.window === 'no-window' && request.redirect === 'error') {
|
|
1390
|
-
httpFetchParams = fetchParams
|
|
1391
|
-
httpRequest = request
|
|
1392
|
-
} else {
|
|
1393
|
-
// Otherwise:
|
|
1394
|
-
|
|
1395
|
-
// 1. Set httpRequest to a clone of request.
|
|
1396
|
-
httpRequest = cloneRequest(request)
|
|
1397
|
-
|
|
1398
|
-
// 2. Set httpFetchParams to a copy of fetchParams.
|
|
1399
|
-
httpFetchParams = { ...fetchParams }
|
|
1400
|
-
|
|
1401
|
-
// 3. Set httpFetchParams’s request to httpRequest.
|
|
1402
|
-
httpFetchParams.request = httpRequest
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
// 3. Let includeCredentials be true if one of
|
|
1406
|
-
const includeCredentials =
|
|
1407
|
-
request.credentials === 'include' ||
|
|
1408
|
-
(request.credentials === 'same-origin' &&
|
|
1409
|
-
request.responseTainting === 'basic')
|
|
1410
|
-
|
|
1411
|
-
// 4. Let contentLength be httpRequest’s body’s length, if httpRequest’s
|
|
1412
|
-
// body is non-null; otherwise null.
|
|
1413
|
-
const contentLength = httpRequest.body ? httpRequest.body.length : null
|
|
1414
|
-
|
|
1415
|
-
// 5. Let contentLengthHeaderValue be null.
|
|
1416
|
-
let contentLengthHeaderValue = null
|
|
1417
|
-
|
|
1418
|
-
// 6. If httpRequest’s body is null and httpRequest’s method is `POST` or
|
|
1419
|
-
// `PUT`, then set contentLengthHeaderValue to `0`.
|
|
1420
|
-
if (
|
|
1421
|
-
httpRequest.body == null &&
|
|
1422
|
-
['POST', 'PUT'].includes(httpRequest.method)
|
|
1423
|
-
) {
|
|
1424
|
-
contentLengthHeaderValue = '0'
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
// 7. If contentLength is non-null, then set contentLengthHeaderValue to
|
|
1428
|
-
// contentLength, serialized and isomorphic encoded.
|
|
1429
|
-
if (contentLength != null) {
|
|
1430
|
-
contentLengthHeaderValue = isomorphicEncode(`${contentLength}`)
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
// 8. If contentLengthHeaderValue is non-null, then append
|
|
1434
|
-
// `Content-Length`/contentLengthHeaderValue to httpRequest’s header
|
|
1435
|
-
// list.
|
|
1436
|
-
if (
|
|
1437
|
-
contentLengthHeaderValue != null &&
|
|
1438
|
-
!httpRequest.headersList.contains('content-length', true)
|
|
1439
|
-
) {
|
|
1440
|
-
httpRequest.headersList.append('content-length', contentLengthHeaderValue, true)
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
// 9. If contentLengthHeaderValue is non-null, then append (`Content-Length`,
|
|
1444
|
-
// contentLengthHeaderValue) to httpRequest’s header list.
|
|
1445
|
-
|
|
1446
|
-
// 10. If contentLength is non-null and httpRequest’s keepalive is true,
|
|
1447
|
-
// then:
|
|
1448
|
-
if (contentLength != null && httpRequest.keepalive) {
|
|
1449
|
-
// NOTE: keepalive is a noop outside of browser context.
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
// 11. If httpRequest’s referrer is a URL, then append
|
|
1453
|
-
// `Referer`/httpRequest’s referrer, serialized and isomorphic encoded,
|
|
1454
|
-
// to httpRequest’s header list.
|
|
1455
|
-
if (webidl.is.URL(httpRequest.referrer)) {
|
|
1456
|
-
httpRequest.headersList.append('referer', isomorphicEncode(httpRequest.referrer.href), true)
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
// 12. Append a request `Origin` header for httpRequest.
|
|
1460
|
-
appendRequestOriginHeader(httpRequest)
|
|
1461
|
-
|
|
1462
|
-
// 13. Append the Fetch metadata headers for httpRequest. [FETCH-METADATA]
|
|
1463
|
-
appendFetchMetadata(httpRequest)
|
|
1464
|
-
|
|
1465
|
-
// 14. If httpRequest’s header list does not contain `User-Agent`, then
|
|
1466
|
-
// user agents should append `User-Agent`/default `User-Agent` value to
|
|
1467
|
-
// httpRequest’s header list.
|
|
1468
|
-
if (!httpRequest.headersList.contains('user-agent', true)) {
|
|
1469
|
-
httpRequest.headersList.append('user-agent', defaultUserAgent, true)
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
// 15. If httpRequest’s cache mode is "default" and httpRequest’s header
|
|
1473
|
-
// list contains `If-Modified-Since`, `If-None-Match`,
|
|
1474
|
-
// `If-Unmodified-Since`, `If-Match`, or `If-Range`, then set
|
|
1475
|
-
// httpRequest’s cache mode to "no-store".
|
|
1476
|
-
if (
|
|
1477
|
-
httpRequest.cache === 'default' &&
|
|
1478
|
-
(httpRequest.headersList.contains('if-modified-since', true) ||
|
|
1479
|
-
httpRequest.headersList.contains('if-none-match', true) ||
|
|
1480
|
-
httpRequest.headersList.contains('if-unmodified-since', true) ||
|
|
1481
|
-
httpRequest.headersList.contains('if-match', true) ||
|
|
1482
|
-
httpRequest.headersList.contains('if-range', true))
|
|
1483
|
-
) {
|
|
1484
|
-
httpRequest.cache = 'no-store'
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
// 16. If httpRequest’s cache mode is "no-cache", httpRequest’s prevent
|
|
1488
|
-
// no-cache cache-control header modification flag is unset, and
|
|
1489
|
-
// httpRequest’s header list does not contain `Cache-Control`, then append
|
|
1490
|
-
// `Cache-Control`/`max-age=0` to httpRequest’s header list.
|
|
1491
|
-
if (
|
|
1492
|
-
httpRequest.cache === 'no-cache' &&
|
|
1493
|
-
!httpRequest.preventNoCacheCacheControlHeaderModification &&
|
|
1494
|
-
!httpRequest.headersList.contains('cache-control', true)
|
|
1495
|
-
) {
|
|
1496
|
-
httpRequest.headersList.append('cache-control', 'max-age=0', true)
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
// 17. If httpRequest’s cache mode is "no-store" or "reload", then:
|
|
1500
|
-
if (httpRequest.cache === 'no-store' || httpRequest.cache === 'reload') {
|
|
1501
|
-
// 1. If httpRequest’s header list does not contain `Pragma`, then append
|
|
1502
|
-
// `Pragma`/`no-cache` to httpRequest’s header list.
|
|
1503
|
-
if (!httpRequest.headersList.contains('pragma', true)) {
|
|
1504
|
-
httpRequest.headersList.append('pragma', 'no-cache', true)
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
// 2. If httpRequest’s header list does not contain `Cache-Control`,
|
|
1508
|
-
// then append `Cache-Control`/`no-cache` to httpRequest’s header list.
|
|
1509
|
-
if (!httpRequest.headersList.contains('cache-control', true)) {
|
|
1510
|
-
httpRequest.headersList.append('cache-control', 'no-cache', true)
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
|
|
1514
|
-
// 18. If httpRequest’s header list contains `Range`, then append
|
|
1515
|
-
// `Accept-Encoding`/`identity` to httpRequest’s header list.
|
|
1516
|
-
if (httpRequest.headersList.contains('range', true)) {
|
|
1517
|
-
httpRequest.headersList.append('accept-encoding', 'identity', true)
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
// 19. Modify httpRequest’s header list per HTTP. Do not append a given
|
|
1521
|
-
// header if httpRequest’s header list contains that header’s name.
|
|
1522
|
-
// TODO: https://github.com/whatwg/fetch/issues/1285#issuecomment-896560129
|
|
1523
|
-
if (!httpRequest.headersList.contains('accept-encoding', true)) {
|
|
1524
|
-
if (urlHasHttpsScheme(requestCurrentURL(httpRequest))) {
|
|
1525
|
-
httpRequest.headersList.append('accept-encoding', 'br, gzip, deflate', true)
|
|
1526
|
-
} else {
|
|
1527
|
-
httpRequest.headersList.append('accept-encoding', 'gzip, deflate', true)
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
|
-
httpRequest.headersList.delete('host', true)
|
|
1532
|
-
|
|
1533
|
-
// 21. If includeCredentials is true, then:
|
|
1534
|
-
if (includeCredentials) {
|
|
1535
|
-
// 1. If the user agent is not configured to block cookies for httpRequest
|
|
1536
|
-
// (see section 7 of [COOKIES]), then:
|
|
1537
|
-
// TODO: credentials
|
|
1538
|
-
|
|
1539
|
-
// 2. If httpRequest’s header list does not contain `Authorization`, then:
|
|
1540
|
-
if (!httpRequest.headersList.contains('authorization', true)) {
|
|
1541
|
-
// 1. Let authorizationValue be null.
|
|
1542
|
-
let authorizationValue = null
|
|
1543
|
-
|
|
1544
|
-
// 2. If there’s an authentication entry for httpRequest and either
|
|
1545
|
-
// httpRequest’s use-URL-credentials flag is unset or httpRequest’s
|
|
1546
|
-
// current URL does not include credentials, then set
|
|
1547
|
-
// authorizationValue to authentication entry.
|
|
1548
|
-
if (hasAuthenticationEntry(httpRequest) && (
|
|
1549
|
-
httpRequest.useURLCredentials === undefined || !includesCredentials(requestCurrentURL(httpRequest))
|
|
1550
|
-
)) {
|
|
1551
|
-
// TODO
|
|
1552
|
-
} else if (includesCredentials(requestCurrentURL(httpRequest)) && isAuthenticationFetch) {
|
|
1553
|
-
// 3. Otherwise, if httpRequest’s current URL does include credentials
|
|
1554
|
-
// and isAuthenticationFetch is true, set authorizationValue to
|
|
1555
|
-
// httpRequest’s current URL, converted to an `Authorization` value
|
|
1556
|
-
const { username, password } = requestCurrentURL(httpRequest)
|
|
1557
|
-
authorizationValue = `Basic ${Buffer.from(`${username}:${password}`).toString('base64')}`
|
|
1558
|
-
}
|
|
1559
|
-
|
|
1560
|
-
// 4. If authorizationValue is non-null, then append (`Authorization`,
|
|
1561
|
-
// authorizationValue) to httpRequest’s header list.
|
|
1562
|
-
if (authorizationValue !== null) {
|
|
1563
|
-
httpRequest.headersList.append('Authorization', authorizationValue, false)
|
|
1564
|
-
}
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
|
|
1568
|
-
// 21. If there’s a proxy-authentication entry, use it as appropriate.
|
|
1569
|
-
// TODO: proxy-authentication
|
|
1570
|
-
|
|
1571
|
-
// 22. Set httpCache to the result of determining the HTTP cache
|
|
1572
|
-
// partition, given httpRequest.
|
|
1573
|
-
// TODO: cache
|
|
1574
|
-
|
|
1575
|
-
// 23. If httpCache is null, then set httpRequest’s cache mode to
|
|
1576
|
-
// "no-store".
|
|
1577
|
-
if (httpCache == null) {
|
|
1578
|
-
httpRequest.cache = 'no-store'
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
|
-
// 24. If httpRequest’s cache mode is neither "no-store" nor "reload",
|
|
1582
|
-
// then:
|
|
1583
|
-
if (httpRequest.cache !== 'no-store' && httpRequest.cache !== 'reload') {
|
|
1584
|
-
// TODO: cache
|
|
1585
|
-
}
|
|
1586
|
-
|
|
1587
|
-
// 9. If aborted, then return the appropriate network error for fetchParams.
|
|
1588
|
-
// TODO
|
|
1589
|
-
|
|
1590
|
-
// 10. If response is null, then:
|
|
1591
|
-
if (response == null) {
|
|
1592
|
-
// 1. If httpRequest’s cache mode is "only-if-cached", then return a
|
|
1593
|
-
// network error.
|
|
1594
|
-
if (httpRequest.cache === 'only-if-cached') {
|
|
1595
|
-
return makeNetworkError('only if cached')
|
|
1596
|
-
}
|
|
1597
|
-
|
|
1598
|
-
// 2. Let forwardResponse be the result of running HTTP-network fetch
|
|
1599
|
-
// given httpFetchParams, includeCredentials, and isNewConnectionFetch.
|
|
1600
|
-
const forwardResponse = await httpNetworkFetch(
|
|
1601
|
-
httpFetchParams,
|
|
1602
|
-
includeCredentials,
|
|
1603
|
-
isNewConnectionFetch
|
|
1604
|
-
)
|
|
1605
|
-
|
|
1606
|
-
// 3. If httpRequest’s method is unsafe and forwardResponse’s status is
|
|
1607
|
-
// in the range 200 to 399, inclusive, invalidate appropriate stored
|
|
1608
|
-
// responses in httpCache, as per the "Invalidation" chapter of HTTP
|
|
1609
|
-
// Caching, and set storedResponse to null. [HTTP-CACHING]
|
|
1610
|
-
if (
|
|
1611
|
-
!safeMethodsSet.has(httpRequest.method) &&
|
|
1612
|
-
forwardResponse.status >= 200 &&
|
|
1613
|
-
forwardResponse.status <= 399
|
|
1614
|
-
) {
|
|
1615
|
-
// TODO: cache
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
// 4. If the revalidatingFlag is set and forwardResponse’s status is 304,
|
|
1619
|
-
// then:
|
|
1620
|
-
if (revalidatingFlag && forwardResponse.status === 304) {
|
|
1621
|
-
// TODO: cache
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
// 5. If response is null, then:
|
|
1625
|
-
if (response == null) {
|
|
1626
|
-
// 1. Set response to forwardResponse.
|
|
1627
|
-
response = forwardResponse
|
|
1628
|
-
|
|
1629
|
-
// 2. Store httpRequest and forwardResponse in httpCache, as per the
|
|
1630
|
-
// "Storing Responses in Caches" chapter of HTTP Caching. [HTTP-CACHING]
|
|
1631
|
-
// TODO: cache
|
|
1632
|
-
}
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
// 11. Set response’s URL list to a clone of httpRequest’s URL list.
|
|
1636
|
-
response.urlList = [...httpRequest.urlList]
|
|
1637
|
-
|
|
1638
|
-
// 12. If httpRequest’s header list contains `Range`, then set response’s
|
|
1639
|
-
// range-requested flag.
|
|
1640
|
-
if (httpRequest.headersList.contains('range', true)) {
|
|
1641
|
-
response.rangeRequested = true
|
|
1642
|
-
}
|
|
1643
|
-
|
|
1644
|
-
// 13. Set response’s request-includes-credentials to includeCredentials.
|
|
1645
|
-
response.requestIncludesCredentials = includeCredentials
|
|
1646
|
-
|
|
1647
|
-
// 14. If response’s status is 401, httpRequest’s response tainting is not "cors",
|
|
1648
|
-
// includeCredentials is true, and request’s traversable for user prompts is
|
|
1649
|
-
// a traversable navigable:
|
|
1650
|
-
//
|
|
1651
|
-
// In Node.js there is no traversable navigable to prompt the user, but we
|
|
1652
|
-
// still need to handle URL-embedded credentials so authentication retries
|
|
1653
|
-
// for WebSocket handshakes continue to work.
|
|
1654
|
-
if (response.status === 401 && httpRequest.responseTainting !== 'cors' && includeCredentials && (
|
|
1655
|
-
request.useURLCredentials !== undefined ||
|
|
1656
|
-
isTraversableNavigable(request.traversableForUserPrompts)
|
|
1657
|
-
)) {
|
|
1658
|
-
// 2. If request’s body is non-null, then:
|
|
1659
|
-
if (request.body != null) {
|
|
1660
|
-
// 1. If request’s body’s source is null, then return a network error.
|
|
1661
|
-
if (request.body.source == null) {
|
|
1662
|
-
// Note: In Node.js, this code path should not be reached because
|
|
1663
|
-
// isTraversableNavigable() returns false for non-navigable contexts.
|
|
1664
|
-
// However, we handle it gracefully by returning the response instead of
|
|
1665
|
-
// a network error, as we won't actually retry the request.
|
|
1666
|
-
// This aligns with the Fetch spec discussion in whatwg/fetch#1132,
|
|
1667
|
-
// which allows implementations flexibility when credentials can't be obtained.
|
|
1668
|
-
return response
|
|
1669
|
-
}
|
|
1670
|
-
|
|
1671
|
-
// 2. Set request’s body to the body of the result of safely extracting
|
|
1672
|
-
// request’s body’s source.
|
|
1673
|
-
request.body = safelyExtractBody(request.body.source)[0]
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
// 3. If request’s use-URL-credentials flag is unset or isAuthenticationFetch is
|
|
1677
|
-
// true, then:
|
|
1678
|
-
if (request.useURLCredentials === undefined || isAuthenticationFetch) {
|
|
1679
|
-
// 1. If fetchParams is canceled, then return the appropriate network error
|
|
1680
|
-
// for fetchParams.
|
|
1681
|
-
if (isCancelled(fetchParams)) {
|
|
1682
|
-
return makeAppropriateNetworkError(fetchParams)
|
|
1683
|
-
}
|
|
1684
|
-
|
|
1685
|
-
// 2. Let username and password be the result of prompting the end user for a
|
|
1686
|
-
// username and password, respectively, in request’s traversable for user prompts.
|
|
1687
|
-
// TODO
|
|
1688
|
-
|
|
1689
|
-
// 3. Set the username given request’s current URL and username.
|
|
1690
|
-
// requestCurrentURL(request).username = TODO
|
|
1691
|
-
|
|
1692
|
-
// 4. Set the password given request’s current URL and password.
|
|
1693
|
-
// requestCurrentURL(request).password = TODO
|
|
1694
|
-
|
|
1695
|
-
// In browsers, the user will be prompted to enter a username/password before the request
|
|
1696
|
-
// is re-sent. To prevent an infinite 401 loop, return the response for now.
|
|
1697
|
-
// https://github.com/nodejs/undici/pull/4756
|
|
1698
|
-
return response
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
// 4. Set response to the result of running HTTP-network-or-cache fetch given
|
|
1702
|
-
// fetchParams and true.
|
|
1703
|
-
fetchParams.controller.connection.destroy()
|
|
1704
|
-
|
|
1705
|
-
response = await httpNetworkOrCacheFetch(fetchParams, true)
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
// 15. If response’s status is 407, then:
|
|
1709
|
-
if (response.status === 407) {
|
|
1710
|
-
// 1. If request’s window is "no-window", then return a network error.
|
|
1711
|
-
if (request.window === 'no-window') {
|
|
1712
|
-
return makeNetworkError()
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
// 2. ???
|
|
1716
|
-
|
|
1717
|
-
// 3. If fetchParams is canceled, then return the appropriate network error for fetchParams.
|
|
1718
|
-
if (isCancelled(fetchParams)) {
|
|
1719
|
-
return makeAppropriateNetworkError(fetchParams)
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
// 4. Prompt the end user as appropriate in request’s window and store
|
|
1723
|
-
// the result as a proxy-authentication entry. [HTTP-AUTH]
|
|
1724
|
-
// TODO: Invoke some kind of callback?
|
|
1725
|
-
|
|
1726
|
-
// 5. Set response to the result of running HTTP-network-or-cache fetch given
|
|
1727
|
-
// fetchParams.
|
|
1728
|
-
// TODO
|
|
1729
|
-
return makeNetworkError('proxy authentication required')
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
// 16. If all of the following are true
|
|
1733
|
-
if (
|
|
1734
|
-
// response’s status is 421
|
|
1735
|
-
response.status === 421 &&
|
|
1736
|
-
// isNewConnectionFetch is false
|
|
1737
|
-
!isNewConnectionFetch &&
|
|
1738
|
-
// request’s body is null, or request’s body is non-null and request’s body’s source is non-null
|
|
1739
|
-
(request.body == null || request.body.source != null)
|
|
1740
|
-
) {
|
|
1741
|
-
// then:
|
|
1742
|
-
|
|
1743
|
-
// 1. If fetchParams is canceled, then return the appropriate network error for fetchParams.
|
|
1744
|
-
if (isCancelled(fetchParams)) {
|
|
1745
|
-
return makeAppropriateNetworkError(fetchParams)
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
// 2. Set response to the result of running HTTP-network-or-cache
|
|
1749
|
-
// fetch given fetchParams, isAuthenticationFetch, and true.
|
|
1750
|
-
|
|
1751
|
-
// TODO (spec): The spec doesn't specify this but we need to cancel
|
|
1752
|
-
// the active response before we can start a new one.
|
|
1753
|
-
// https://github.com/whatwg/fetch/issues/1293
|
|
1754
|
-
fetchParams.controller.connection.destroy()
|
|
1755
|
-
|
|
1756
|
-
response = await httpNetworkOrCacheFetch(
|
|
1757
|
-
fetchParams,
|
|
1758
|
-
isAuthenticationFetch,
|
|
1759
|
-
true
|
|
1760
|
-
)
|
|
1761
|
-
}
|
|
1762
|
-
|
|
1763
|
-
// 17. If isAuthenticationFetch is true, then create an authentication entry
|
|
1764
|
-
if (isAuthenticationFetch) {
|
|
1765
|
-
// TODO
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
// 18. Return response.
|
|
1769
|
-
return response
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
// https://fetch.spec.whatwg.org/#http-network-fetch
|
|
1773
|
-
async function httpNetworkFetch (
|
|
1774
|
-
fetchParams,
|
|
1775
|
-
includeCredentials = false,
|
|
1776
|
-
forceNewConnection = false
|
|
1777
|
-
) {
|
|
1778
|
-
assert(!fetchParams.controller.connection || fetchParams.controller.connection.destroyed)
|
|
1779
|
-
|
|
1780
|
-
fetchParams.controller.connection = {
|
|
1781
|
-
abort: null,
|
|
1782
|
-
destroyed: false,
|
|
1783
|
-
destroy (err, abort = true) {
|
|
1784
|
-
if (!this.destroyed) {
|
|
1785
|
-
this.destroyed = true
|
|
1786
|
-
if (abort) {
|
|
1787
|
-
this.abort?.(err ?? new DOMException('The operation was aborted.', 'AbortError'))
|
|
1788
|
-
}
|
|
1789
|
-
}
|
|
1790
|
-
}
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
// 1. Let request be fetchParams’s request.
|
|
1794
|
-
const request = fetchParams.request
|
|
1795
|
-
|
|
1796
|
-
// 2. Let response be null.
|
|
1797
|
-
let response = null
|
|
1798
|
-
|
|
1799
|
-
// 3. Let timingInfo be fetchParams’s timing info.
|
|
1800
|
-
const timingInfo = fetchParams.timingInfo
|
|
1801
|
-
|
|
1802
|
-
// 4. Let httpCache be the result of determining the HTTP cache partition,
|
|
1803
|
-
// given request.
|
|
1804
|
-
// TODO: cache
|
|
1805
|
-
const httpCache = null
|
|
1806
|
-
|
|
1807
|
-
// 5. If httpCache is null, then set request’s cache mode to "no-store".
|
|
1808
|
-
if (httpCache == null) {
|
|
1809
|
-
request.cache = 'no-store'
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
// 6. Let networkPartitionKey be the result of determining the network
|
|
1813
|
-
// partition key given request.
|
|
1814
|
-
// TODO
|
|
1815
|
-
|
|
1816
|
-
// 7. Let newConnection be "yes" if forceNewConnection is true; otherwise
|
|
1817
|
-
// "no".
|
|
1818
|
-
const newConnection = forceNewConnection ? 'yes' : 'no' // eslint-disable-line no-unused-vars
|
|
1819
|
-
|
|
1820
|
-
// 8. Switch on request’s mode:
|
|
1821
|
-
if (request.mode === 'websocket') {
|
|
1822
|
-
// Let connection be the result of obtaining a WebSocket connection,
|
|
1823
|
-
// given request’s current URL.
|
|
1824
|
-
// TODO
|
|
1825
|
-
} else {
|
|
1826
|
-
// Let connection be the result of obtaining a connection, given
|
|
1827
|
-
// networkPartitionKey, request’s current URL’s origin,
|
|
1828
|
-
// includeCredentials, and forceNewConnection.
|
|
1829
|
-
// TODO
|
|
1830
|
-
}
|
|
1831
|
-
|
|
1832
|
-
// 9. Run these steps, but abort when the ongoing fetch is terminated:
|
|
1833
|
-
|
|
1834
|
-
// 1. If connection is failure, then return a network error.
|
|
1835
|
-
|
|
1836
|
-
// 2. Set timingInfo’s final connection timing info to the result of
|
|
1837
|
-
// calling clamp and coarsen connection timing info with connection’s
|
|
1838
|
-
// timing info, timingInfo’s post-redirect start time, and fetchParams’s
|
|
1839
|
-
// cross-origin isolated capability.
|
|
1840
|
-
|
|
1841
|
-
// 3. If connection is not an HTTP/2 connection, request’s body is non-null,
|
|
1842
|
-
// and request’s body’s source is null, then append (`Transfer-Encoding`,
|
|
1843
|
-
// `chunked`) to request’s header list.
|
|
1844
|
-
|
|
1845
|
-
// 4. Set timingInfo’s final network-request start time to the coarsened
|
|
1846
|
-
// shared current time given fetchParams’s cross-origin isolated
|
|
1847
|
-
// capability.
|
|
1848
|
-
|
|
1849
|
-
// 5. Set response to the result of making an HTTP request over connection
|
|
1850
|
-
// using request with the following caveats:
|
|
1851
|
-
|
|
1852
|
-
// - Follow the relevant requirements from HTTP. [HTTP] [HTTP-SEMANTICS]
|
|
1853
|
-
// [HTTP-COND] [HTTP-CACHING] [HTTP-AUTH]
|
|
1854
|
-
|
|
1855
|
-
// - If request’s body is non-null, and request’s body’s source is null,
|
|
1856
|
-
// then the user agent may have a buffer of up to 64 kibibytes and store
|
|
1857
|
-
// a part of request’s body in that buffer. If the user agent reads from
|
|
1858
|
-
// request’s body beyond that buffer’s size and the user agent needs to
|
|
1859
|
-
// resend request, then instead return a network error.
|
|
1860
|
-
|
|
1861
|
-
// - Set timingInfo’s final network-response start time to the coarsened
|
|
1862
|
-
// shared current time given fetchParams’s cross-origin isolated capability,
|
|
1863
|
-
// immediately after the user agent’s HTTP parser receives the first byte
|
|
1864
|
-
// of the response (e.g., frame header bytes for HTTP/2 or response status
|
|
1865
|
-
// line for HTTP/1.x).
|
|
1866
|
-
|
|
1867
|
-
// - Wait until all the headers are transmitted.
|
|
1868
|
-
|
|
1869
|
-
// - Any responses whose status is in the range 100 to 199, inclusive,
|
|
1870
|
-
// and is not 101, are to be ignored, except for the purposes of setting
|
|
1871
|
-
// timingInfo’s final network-response start time above.
|
|
1872
|
-
|
|
1873
|
-
// - If request’s header list contains `Transfer-Encoding`/`chunked` and
|
|
1874
|
-
// response is transferred via HTTP/1.0 or older, then return a network
|
|
1875
|
-
// error.
|
|
1876
|
-
|
|
1877
|
-
// - If the HTTP request results in a TLS client certificate dialog, then:
|
|
1878
|
-
|
|
1879
|
-
// 1. If request’s window is an environment settings object, make the
|
|
1880
|
-
// dialog available in request’s window.
|
|
1881
|
-
|
|
1882
|
-
// 2. Otherwise, return a network error.
|
|
1883
|
-
|
|
1884
|
-
// To transmit request’s body body, run these steps:
|
|
1885
|
-
let requestBody = null
|
|
1886
|
-
// 1. If body is null and fetchParams’s process request end-of-body is
|
|
1887
|
-
// non-null, then queue a fetch task given fetchParams’s process request
|
|
1888
|
-
// end-of-body and fetchParams’s task destination.
|
|
1889
|
-
if (request.body == null && fetchParams.processRequestEndOfBody) {
|
|
1890
|
-
queueMicrotask(() => fetchParams.processRequestEndOfBody())
|
|
1891
|
-
} else if (request.body != null) {
|
|
1892
|
-
// 2. Otherwise, if body is non-null:
|
|
1893
|
-
|
|
1894
|
-
// 1. Let processBodyChunk given bytes be these steps:
|
|
1895
|
-
const processBodyChunk = async function * (bytes) {
|
|
1896
|
-
// 1. If the ongoing fetch is terminated, then abort these steps.
|
|
1897
|
-
if (isCancelled(fetchParams)) {
|
|
1898
|
-
return
|
|
1899
|
-
}
|
|
1900
|
-
|
|
1901
|
-
// 2. Run this step in parallel: transmit bytes.
|
|
1902
|
-
yield bytes
|
|
1903
|
-
|
|
1904
|
-
// 3. If fetchParams’s process request body is non-null, then run
|
|
1905
|
-
// fetchParams’s process request body given bytes’s length.
|
|
1906
|
-
fetchParams.processRequestBodyChunkLength?.(bytes.byteLength)
|
|
1907
|
-
}
|
|
1908
|
-
|
|
1909
|
-
// 2. Let processEndOfBody be these steps:
|
|
1910
|
-
const processEndOfBody = () => {
|
|
1911
|
-
// 1. If fetchParams is canceled, then abort these steps.
|
|
1912
|
-
if (isCancelled(fetchParams)) {
|
|
1913
|
-
return
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
// 2. If fetchParams’s process request end-of-body is non-null,
|
|
1917
|
-
// then run fetchParams’s process request end-of-body.
|
|
1918
|
-
if (fetchParams.processRequestEndOfBody) {
|
|
1919
|
-
fetchParams.processRequestEndOfBody()
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
// 3. Let processBodyError given e be these steps:
|
|
1924
|
-
const processBodyError = (e) => {
|
|
1925
|
-
// 1. If fetchParams is canceled, then abort these steps.
|
|
1926
|
-
if (isCancelled(fetchParams)) {
|
|
1927
|
-
return
|
|
1928
|
-
}
|
|
1929
|
-
|
|
1930
|
-
// 2. If e is an "AbortError" DOMException, then abort fetchParams’s controller.
|
|
1931
|
-
if (e.name === 'AbortError') {
|
|
1932
|
-
fetchParams.controller.abort()
|
|
1933
|
-
} else {
|
|
1934
|
-
fetchParams.controller.terminate(e)
|
|
1935
|
-
}
|
|
1936
|
-
}
|
|
1937
|
-
|
|
1938
|
-
// 4. Incrementally read request’s body given processBodyChunk, processEndOfBody,
|
|
1939
|
-
// processBodyError, and fetchParams’s task destination.
|
|
1940
|
-
requestBody = (async function * () {
|
|
1941
|
-
try {
|
|
1942
|
-
for await (const bytes of request.body.stream) {
|
|
1943
|
-
yield * processBodyChunk(bytes)
|
|
1944
|
-
}
|
|
1945
|
-
processEndOfBody()
|
|
1946
|
-
} catch (err) {
|
|
1947
|
-
processBodyError(err)
|
|
1948
|
-
}
|
|
1949
|
-
})()
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
try {
|
|
1953
|
-
// socket is only provided for websockets
|
|
1954
|
-
const { body, status, statusText, headersList, socket } = await dispatch({ body: requestBody })
|
|
1955
|
-
|
|
1956
|
-
if (socket) {
|
|
1957
|
-
response = makeResponse({ status, statusText, headersList, socket })
|
|
1958
|
-
} else {
|
|
1959
|
-
const iterator = body[Symbol.asyncIterator]()
|
|
1960
|
-
fetchParams.controller.next = () => iterator.next()
|
|
1961
|
-
|
|
1962
|
-
response = makeResponse({ status, statusText, headersList })
|
|
1963
|
-
}
|
|
1964
|
-
} catch (err) {
|
|
1965
|
-
// 10. If aborted, then:
|
|
1966
|
-
if (err.name === 'AbortError') {
|
|
1967
|
-
// 1. If connection uses HTTP/2, then transmit an RST_STREAM frame.
|
|
1968
|
-
fetchParams.controller.connection.destroy()
|
|
1969
|
-
|
|
1970
|
-
// 2. Return the appropriate network error for fetchParams.
|
|
1971
|
-
return makeAppropriateNetworkError(fetchParams, err)
|
|
1972
|
-
}
|
|
1973
|
-
|
|
1974
|
-
return makeNetworkError(err)
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
// 11. Let pullAlgorithm be an action that resumes the ongoing fetch
|
|
1978
|
-
// if it is suspended.
|
|
1979
|
-
const pullAlgorithm = () => {
|
|
1980
|
-
return fetchParams.controller.resume()
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
// 12. Let cancelAlgorithm be an algorithm that aborts fetchParams’s
|
|
1984
|
-
// controller with reason, given reason.
|
|
1985
|
-
const cancelAlgorithm = (reason) => {
|
|
1986
|
-
// If the aborted fetch was already terminated, then we do not
|
|
1987
|
-
// need to do anything.
|
|
1988
|
-
if (!isCancelled(fetchParams)) {
|
|
1989
|
-
fetchParams.controller.abort(reason)
|
|
1990
|
-
}
|
|
1991
|
-
}
|
|
1992
|
-
|
|
1993
|
-
// 13. Let highWaterMark be a non-negative, non-NaN number, chosen by
|
|
1994
|
-
// the user agent.
|
|
1995
|
-
// TODO
|
|
1996
|
-
|
|
1997
|
-
// 14. Let sizeAlgorithm be an algorithm that accepts a chunk object
|
|
1998
|
-
// and returns a non-negative, non-NaN, non-infinite number, chosen by the user agent.
|
|
1999
|
-
// TODO
|
|
2000
|
-
|
|
2001
|
-
// 15. Let stream be a new ReadableStream.
|
|
2002
|
-
// 16. Set up stream with byte reading support with pullAlgorithm set to pullAlgorithm,
|
|
2003
|
-
// cancelAlgorithm set to cancelAlgorithm.
|
|
2004
|
-
const stream = new ReadableStream(
|
|
2005
|
-
{
|
|
2006
|
-
start (controller) {
|
|
2007
|
-
fetchParams.controller.controller = controller
|
|
2008
|
-
},
|
|
2009
|
-
pull: pullAlgorithm,
|
|
2010
|
-
cancel: cancelAlgorithm,
|
|
2011
|
-
type: 'bytes'
|
|
2012
|
-
}
|
|
2013
|
-
)
|
|
2014
|
-
|
|
2015
|
-
// 17. Run these steps, but abort when the ongoing fetch is terminated:
|
|
2016
|
-
|
|
2017
|
-
// 1. Set response’s body to a new body whose stream is stream.
|
|
2018
|
-
response.body = { stream, source: null, length: null }
|
|
2019
|
-
|
|
2020
|
-
// 2. If response is not a network error and request’s cache mode is
|
|
2021
|
-
// not "no-store", then update response in httpCache for request.
|
|
2022
|
-
// TODO
|
|
2023
|
-
|
|
2024
|
-
// 3. If includeCredentials is true and the user agent is not configured
|
|
2025
|
-
// to block cookies for request (see section 7 of [COOKIES]), then run the
|
|
2026
|
-
// "set-cookie-string" parsing algorithm (see section 5.2 of [COOKIES]) on
|
|
2027
|
-
// the value of each header whose name is a byte-case-insensitive match for
|
|
2028
|
-
// `Set-Cookie` in response’s header list, if any, and request’s current URL.
|
|
2029
|
-
// TODO
|
|
2030
|
-
|
|
2031
|
-
// 18. If aborted, then:
|
|
2032
|
-
// TODO
|
|
2033
|
-
|
|
2034
|
-
// 19. Run these steps in parallel:
|
|
2035
|
-
|
|
2036
|
-
// 1. Run these steps, but abort when fetchParams is canceled:
|
|
2037
|
-
if (!fetchParams.controller.resume) {
|
|
2038
|
-
fetchParams.controller.on('terminated', onAborted)
|
|
2039
|
-
}
|
|
2040
|
-
|
|
2041
|
-
fetchParams.controller.resume = async () => {
|
|
2042
|
-
// 1. While true
|
|
2043
|
-
while (true) {
|
|
2044
|
-
// 1-3. See onData...
|
|
2045
|
-
|
|
2046
|
-
// 4. Set bytes to the result of handling content codings given
|
|
2047
|
-
// codings and bytes.
|
|
2048
|
-
let bytes
|
|
2049
|
-
let isFailure
|
|
2050
|
-
try {
|
|
2051
|
-
const { done, value } = await fetchParams.controller.next()
|
|
2052
|
-
|
|
2053
|
-
if (isAborted(fetchParams)) {
|
|
2054
|
-
break
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
bytes = done ? undefined : value
|
|
2058
|
-
} catch (err) {
|
|
2059
|
-
if (fetchParams.controller.ended && !timingInfo.encodedBodySize) {
|
|
2060
|
-
// zlib doesn't like empty streams.
|
|
2061
|
-
bytes = undefined
|
|
2062
|
-
} else {
|
|
2063
|
-
bytes = err
|
|
2064
|
-
|
|
2065
|
-
// err may be propagated from the result of calling readablestream.cancel,
|
|
2066
|
-
// which might not be an error. https://github.com/nodejs/undici/issues/2009
|
|
2067
|
-
isFailure = true
|
|
2068
|
-
}
|
|
2069
|
-
}
|
|
2070
|
-
|
|
2071
|
-
if (bytes === undefined) {
|
|
2072
|
-
// 2. Otherwise, if the bytes transmission for response’s message
|
|
2073
|
-
// body is done normally and stream is readable, then close
|
|
2074
|
-
// stream, finalize response for fetchParams and response, and
|
|
2075
|
-
// abort these in-parallel steps.
|
|
2076
|
-
readableStreamClose(fetchParams.controller.controller)
|
|
2077
|
-
|
|
2078
|
-
finalizeResponse(fetchParams, response)
|
|
2079
|
-
|
|
2080
|
-
return
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
// 5. Increase timingInfo’s decoded body size by bytes’s length.
|
|
2084
|
-
timingInfo.decodedBodySize += bytes?.byteLength ?? 0
|
|
2085
|
-
|
|
2086
|
-
// 6. If bytes is failure, then terminate fetchParams’s controller.
|
|
2087
|
-
if (isFailure) {
|
|
2088
|
-
fetchParams.controller.terminate(bytes)
|
|
2089
|
-
return
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
|
-
// 7. Enqueue a Uint8Array wrapping an ArrayBuffer containing bytes
|
|
2093
|
-
// into stream.
|
|
2094
|
-
const buffer = new Uint8Array(bytes)
|
|
2095
|
-
if (buffer.byteLength) {
|
|
2096
|
-
fetchParams.controller.controller.enqueue(buffer)
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
// 8. If stream is errored, then terminate the ongoing fetch.
|
|
2100
|
-
if (isErrored(stream)) {
|
|
2101
|
-
fetchParams.controller.terminate()
|
|
2102
|
-
return
|
|
2103
|
-
}
|
|
2104
|
-
|
|
2105
|
-
// 9. If stream doesn’t need more data ask the user agent to suspend
|
|
2106
|
-
// the ongoing fetch.
|
|
2107
|
-
if (fetchParams.controller.controller.desiredSize <= 0) {
|
|
2108
|
-
return
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
}
|
|
2112
|
-
|
|
2113
|
-
// 2. If aborted, then:
|
|
2114
|
-
function onAborted (reason) {
|
|
2115
|
-
// 2. If fetchParams is aborted, then:
|
|
2116
|
-
if (isAborted(fetchParams)) {
|
|
2117
|
-
// 1. Set response’s aborted flag.
|
|
2118
|
-
response.aborted = true
|
|
2119
|
-
|
|
2120
|
-
// 2. If stream is readable, then error stream with the result of
|
|
2121
|
-
// deserialize a serialized abort reason given fetchParams’s
|
|
2122
|
-
// controller’s serialized abort reason and an
|
|
2123
|
-
// implementation-defined realm.
|
|
2124
|
-
if (isReadable(stream)) {
|
|
2125
|
-
fetchParams.controller.controller.error(
|
|
2126
|
-
fetchParams.controller.serializedAbortReason
|
|
2127
|
-
)
|
|
2128
|
-
}
|
|
2129
|
-
} else {
|
|
2130
|
-
// 3. Otherwise, if stream is readable, error stream with a TypeError.
|
|
2131
|
-
if (isReadable(stream)) {
|
|
2132
|
-
fetchParams.controller.controller.error(new TypeError('terminated', {
|
|
2133
|
-
cause: isErrorLike(reason) ? reason : undefined
|
|
2134
|
-
}))
|
|
2135
|
-
}
|
|
2136
|
-
}
|
|
2137
|
-
|
|
2138
|
-
// 4. If connection uses HTTP/2, then transmit an RST_STREAM frame.
|
|
2139
|
-
// 5. Otherwise, the user agent should close connection unless it would be bad for performance to do so.
|
|
2140
|
-
fetchParams.controller.connection.destroy()
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
// 20. Return response.
|
|
2144
|
-
return response
|
|
2145
|
-
|
|
2146
|
-
function dispatch ({ body }) {
|
|
2147
|
-
const url = requestCurrentURL(request)
|
|
2148
|
-
/** @type {import('../../..').Agent} */
|
|
2149
|
-
const agent = fetchParams.controller.dispatcher
|
|
2150
|
-
|
|
2151
|
-
const path = url.pathname + url.search
|
|
2152
|
-
const hasTrailingQuestionMark = url.search.length === 0 && url.href[url.href.length - url.hash.length - 1] === '?'
|
|
2153
|
-
|
|
2154
|
-
return new Promise((resolve, reject) => agent.dispatch(
|
|
2155
|
-
{
|
|
2156
|
-
path: hasTrailingQuestionMark ? `${path}?` : path,
|
|
2157
|
-
origin: url.origin,
|
|
2158
|
-
method: request.method,
|
|
2159
|
-
body: agent.isMockActive ? request.body && (request.body.source || request.body.stream) : body,
|
|
2160
|
-
headers: request.headersList.entries,
|
|
2161
|
-
maxRedirections: 0,
|
|
2162
|
-
upgrade: request.mode === 'websocket' ? 'websocket' : undefined
|
|
2163
|
-
},
|
|
2164
|
-
{
|
|
2165
|
-
body: null,
|
|
2166
|
-
abort: null,
|
|
2167
|
-
|
|
2168
|
-
onConnect (abort) {
|
|
2169
|
-
// TODO (fix): Do we need connection here?
|
|
2170
|
-
const { connection } = fetchParams.controller
|
|
2171
|
-
|
|
2172
|
-
// Set timingInfo’s final connection timing info to the result of calling clamp and coarsen
|
|
2173
|
-
// connection timing info with connection’s timing info, timingInfo’s post-redirect start
|
|
2174
|
-
// time, and fetchParams’s cross-origin isolated capability.
|
|
2175
|
-
// TODO: implement connection timing
|
|
2176
|
-
timingInfo.finalConnectionTimingInfo = clampAndCoarsenConnectionTimingInfo(undefined, timingInfo.postRedirectStartTime, fetchParams.crossOriginIsolatedCapability)
|
|
2177
|
-
|
|
2178
|
-
if (connection.destroyed) {
|
|
2179
|
-
abort(new DOMException('The operation was aborted.', 'AbortError'))
|
|
2180
|
-
} else {
|
|
2181
|
-
fetchParams.controller.on('terminated', abort)
|
|
2182
|
-
this.abort = connection.abort = abort
|
|
2183
|
-
}
|
|
2184
|
-
|
|
2185
|
-
// Set timingInfo’s final network-request start time to the coarsened shared current time given
|
|
2186
|
-
// fetchParams’s cross-origin isolated capability.
|
|
2187
|
-
timingInfo.finalNetworkRequestStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)
|
|
2188
|
-
},
|
|
2189
|
-
|
|
2190
|
-
onResponseStarted () {
|
|
2191
|
-
// Set timingInfo’s final network-response start time to the coarsened shared current
|
|
2192
|
-
// time given fetchParams’s cross-origin isolated capability, immediately after the
|
|
2193
|
-
// user agent’s HTTP parser receives the first byte of the response (e.g., frame header
|
|
2194
|
-
// bytes for HTTP/2 or response status line for HTTP/1.x).
|
|
2195
|
-
timingInfo.finalNetworkResponseStartTime = coarsenedSharedCurrentTime(fetchParams.crossOriginIsolatedCapability)
|
|
2196
|
-
},
|
|
2197
|
-
|
|
2198
|
-
onHeaders (status, rawHeaders, resume, statusText) {
|
|
2199
|
-
if (status < 200) {
|
|
2200
|
-
return false
|
|
2201
|
-
}
|
|
2202
|
-
|
|
2203
|
-
const headersList = new HeadersList()
|
|
2204
|
-
|
|
2205
|
-
for (let i = 0; i < rawHeaders.length; i += 2) {
|
|
2206
|
-
const nameStr = bufferToLowerCasedHeaderName(rawHeaders[i])
|
|
2207
|
-
const value = rawHeaders[i + 1]
|
|
2208
|
-
if (Array.isArray(value) && !Buffer.isBuffer(rawHeaders[i + 1])) {
|
|
2209
|
-
for (const val of value) {
|
|
2210
|
-
headersList.append(nameStr, val.toString('latin1'), true)
|
|
2211
|
-
}
|
|
2212
|
-
} else {
|
|
2213
|
-
headersList.append(nameStr, value.toString('latin1'), true)
|
|
2214
|
-
}
|
|
2215
|
-
}
|
|
2216
|
-
const location = headersList.get('location', true)
|
|
2217
|
-
|
|
2218
|
-
this.body = new Readable({ read: resume })
|
|
2219
|
-
|
|
2220
|
-
const willFollow = location && request.redirect === 'follow' &&
|
|
2221
|
-
redirectStatusSet.has(status)
|
|
2222
|
-
|
|
2223
|
-
const decoders = []
|
|
2224
|
-
|
|
2225
|
-
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding
|
|
2226
|
-
if (request.method !== 'HEAD' && request.method !== 'CONNECT' && !nullBodyStatus.includes(status) && !willFollow) {
|
|
2227
|
-
// https://www.rfc-editor.org/rfc/rfc7231#section-3.1.2.1
|
|
2228
|
-
const contentEncoding = headersList.get('content-encoding', true)
|
|
2229
|
-
// "All content-coding values are case-insensitive..."
|
|
2230
|
-
/** @type {string[]} */
|
|
2231
|
-
const codings = contentEncoding ? contentEncoding.toLowerCase().split(',') : []
|
|
2232
|
-
|
|
2233
|
-
// Limit the number of content-encodings to prevent resource exhaustion.
|
|
2234
|
-
// CVE fix similar to urllib3 (GHSA-gm62-xv2j-4w53) and curl (CVE-2022-32206).
|
|
2235
|
-
const maxContentEncodings = 5
|
|
2236
|
-
if (codings.length > maxContentEncodings) {
|
|
2237
|
-
reject(new Error(`too many content-encodings in response: ${codings.length}, maximum allowed is ${maxContentEncodings}`))
|
|
2238
|
-
return true
|
|
2239
|
-
}
|
|
2240
|
-
|
|
2241
|
-
for (let i = codings.length - 1; i >= 0; --i) {
|
|
2242
|
-
const coding = codings[i].trim()
|
|
2243
|
-
// https://www.rfc-editor.org/rfc/rfc9112.html#section-7.2
|
|
2244
|
-
if (coding === 'x-gzip' || coding === 'gzip') {
|
|
2245
|
-
decoders.push(zlib.createGunzip({
|
|
2246
|
-
// Be less strict when decoding compressed responses, since sometimes
|
|
2247
|
-
// servers send slightly invalid responses that are still accepted
|
|
2248
|
-
// by common browsers.
|
|
2249
|
-
// Always using Z_SYNC_FLUSH is what cURL does.
|
|
2250
|
-
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
2251
|
-
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
2252
|
-
}))
|
|
2253
|
-
} else if (coding === 'deflate') {
|
|
2254
|
-
decoders.push(createInflate({
|
|
2255
|
-
flush: zlib.constants.Z_SYNC_FLUSH,
|
|
2256
|
-
finishFlush: zlib.constants.Z_SYNC_FLUSH
|
|
2257
|
-
}))
|
|
2258
|
-
} else if (coding === 'br') {
|
|
2259
|
-
decoders.push(zlib.createBrotliDecompress({
|
|
2260
|
-
flush: zlib.constants.BROTLI_OPERATION_FLUSH,
|
|
2261
|
-
finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
|
|
2262
|
-
}))
|
|
2263
|
-
} else if (coding === 'zstd' && hasZstd) {
|
|
2264
|
-
decoders.push(zlib.createZstdDecompress({
|
|
2265
|
-
flush: zlib.constants.ZSTD_e_continue,
|
|
2266
|
-
finishFlush: zlib.constants.ZSTD_e_end
|
|
2267
|
-
}))
|
|
2268
|
-
} else {
|
|
2269
|
-
decoders.length = 0
|
|
2270
|
-
break
|
|
2271
|
-
}
|
|
2272
|
-
}
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
|
-
const onError = this.onError.bind(this)
|
|
2276
|
-
|
|
2277
|
-
resolve({
|
|
2278
|
-
status,
|
|
2279
|
-
statusText,
|
|
2280
|
-
headersList,
|
|
2281
|
-
body: decoders.length
|
|
2282
|
-
? pipeline(this.body, ...decoders, (err) => {
|
|
2283
|
-
if (err) {
|
|
2284
|
-
this.onError(err)
|
|
2285
|
-
}
|
|
2286
|
-
}).on('error', onError)
|
|
2287
|
-
: this.body.on('error', onError)
|
|
2288
|
-
})
|
|
2289
|
-
|
|
2290
|
-
return true
|
|
2291
|
-
},
|
|
2292
|
-
|
|
2293
|
-
onData (chunk) {
|
|
2294
|
-
if (fetchParams.controller.dump) {
|
|
2295
|
-
return
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
// 1. If one or more bytes have been transmitted from response’s
|
|
2299
|
-
// message body, then:
|
|
2300
|
-
|
|
2301
|
-
// 1. Let bytes be the transmitted bytes.
|
|
2302
|
-
const bytes = chunk
|
|
2303
|
-
|
|
2304
|
-
// 2. Let codings be the result of extracting header list values
|
|
2305
|
-
// given `Content-Encoding` and response’s header list.
|
|
2306
|
-
// See pullAlgorithm.
|
|
2307
|
-
|
|
2308
|
-
// 3. Increase timingInfo’s encoded body size by bytes’s length.
|
|
2309
|
-
timingInfo.encodedBodySize += bytes.byteLength
|
|
2310
|
-
|
|
2311
|
-
// 4. See pullAlgorithm...
|
|
2312
|
-
|
|
2313
|
-
return this.body.push(bytes)
|
|
2314
|
-
},
|
|
2315
|
-
|
|
2316
|
-
onComplete () {
|
|
2317
|
-
if (this.abort) {
|
|
2318
|
-
fetchParams.controller.off('terminated', this.abort)
|
|
2319
|
-
}
|
|
2320
|
-
|
|
2321
|
-
fetchParams.controller.ended = true
|
|
2322
|
-
|
|
2323
|
-
this.body.push(null)
|
|
2324
|
-
},
|
|
2325
|
-
|
|
2326
|
-
onError (error) {
|
|
2327
|
-
if (this.abort) {
|
|
2328
|
-
fetchParams.controller.off('terminated', this.abort)
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
|
-
this.body?.destroy(error)
|
|
2332
|
-
|
|
2333
|
-
fetchParams.controller.terminate(error)
|
|
2334
|
-
|
|
2335
|
-
reject(error)
|
|
2336
|
-
},
|
|
2337
|
-
|
|
2338
|
-
onRequestUpgrade (_controller, status, headers, socket) {
|
|
2339
|
-
// We need to support 200 for websocket over h2 as per RFC-8441
|
|
2340
|
-
// Absence of session means H1
|
|
2341
|
-
if ((socket.session != null && status !== 200) || (socket.session == null && status !== 101)) {
|
|
2342
|
-
return false
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
const headersList = new HeadersList()
|
|
2346
|
-
|
|
2347
|
-
for (const [name, value] of Object.entries(headers)) {
|
|
2348
|
-
if (value == null) {
|
|
2349
|
-
continue
|
|
2350
|
-
}
|
|
2351
|
-
|
|
2352
|
-
const headerName = name.toLowerCase()
|
|
2353
|
-
|
|
2354
|
-
if (Array.isArray(value)) {
|
|
2355
|
-
for (const entry of value) {
|
|
2356
|
-
headersList.append(headerName, String(entry), true)
|
|
2357
|
-
}
|
|
2358
|
-
} else {
|
|
2359
|
-
headersList.append(headerName, String(value), true)
|
|
2360
|
-
}
|
|
2361
|
-
}
|
|
2362
|
-
|
|
2363
|
-
resolve({
|
|
2364
|
-
status,
|
|
2365
|
-
statusText: STATUS_CODES[status],
|
|
2366
|
-
headersList,
|
|
2367
|
-
socket
|
|
2368
|
-
})
|
|
2369
|
-
|
|
2370
|
-
return true
|
|
2371
|
-
},
|
|
2372
|
-
|
|
2373
|
-
onUpgrade (status, rawHeaders, socket) {
|
|
2374
|
-
// We need to support 200 for websocket over h2 as per RFC-8441
|
|
2375
|
-
// Absence of session means H1
|
|
2376
|
-
if ((socket.session != null && status !== 200) || (socket.session == null && status !== 101)) {
|
|
2377
|
-
return false
|
|
2378
|
-
}
|
|
2379
|
-
|
|
2380
|
-
const headersList = new HeadersList()
|
|
2381
|
-
|
|
2382
|
-
for (let i = 0; i < rawHeaders.length; i += 2) {
|
|
2383
|
-
const nameStr = bufferToLowerCasedHeaderName(rawHeaders[i])
|
|
2384
|
-
const value = rawHeaders[i + 1]
|
|
2385
|
-
if (Array.isArray(value) && !Buffer.isBuffer(rawHeaders[i + 1])) {
|
|
2386
|
-
for (const val of value) {
|
|
2387
|
-
headersList.append(nameStr, val.toString('latin1'), true)
|
|
2388
|
-
}
|
|
2389
|
-
} else {
|
|
2390
|
-
headersList.append(nameStr, value.toString('latin1'), true)
|
|
2391
|
-
}
|
|
2392
|
-
}
|
|
2393
|
-
|
|
2394
|
-
resolve({
|
|
2395
|
-
status,
|
|
2396
|
-
statusText: STATUS_CODES[status],
|
|
2397
|
-
headersList,
|
|
2398
|
-
socket
|
|
2399
|
-
})
|
|
2400
|
-
|
|
2401
|
-
return true
|
|
2402
|
-
}
|
|
2403
|
-
}
|
|
2404
|
-
))
|
|
2405
|
-
}
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
module.exports = {
|
|
2409
|
-
fetch,
|
|
2410
|
-
Fetch,
|
|
2411
|
-
fetching,
|
|
2412
|
-
finalizeAndReportTiming
|
|
2413
|
-
}
|