@qqbrowser/qbot-dsh 0.1.0 → 0.1.2
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/cordis.patch.yml +50 -0
- package/lib/args-w1okyL78.js +9 -0
- package/lib/bin.js +1 -2
- package/lib/client.js +1 -0
- package/lib/content-review-CqDoh3wY.js +1 -0
- package/lib/content-review.js +1 -0
- package/lib/dump-config-CIL0Goqj.js +1 -0
- package/lib/gateway-port-CSFbDyoZ.js +1 -0
- package/lib/index.js +1 -0
- package/lib/llm-gateway-openai.js +17 -0
- package/lib/native-protocol-DdrIh89-.js +2 -0
- package/lib/{plugin-DNAeLZbb.js → plugin-viWCLnSr.js} +1 -1
- package/lib/profile-boot-CxJUSdnu.js +1 -0
- package/lib/profile-boot-DCgBQ4qO.js +8 -0
- package/lib/qb-auth-C2ofR1zn.js +4 -0
- package/lib/qb-auth.js +1 -0
- package/lib/web-search-dsh.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
- package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
- package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +1 -1
- package/node_modules/@deepseek-ai/cordis-plugin-hmr/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +12 -12
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +6 -37
- package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-runtime/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-schema-form/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cmdline/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-code-runtime/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-credentials-local/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +3 -3
- package/node_modules/@deepseek-ai/dsh-headless/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-home-paths/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-apiproxy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-persona/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-settings/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-settings-file/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-shell/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-skill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-spill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subprocess/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +5 -29
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +0 -1
- package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-web-app/lib/startup.js +4 -5
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/lib/worker.cjs +9 -8
- package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +3 -3
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +4 -4
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +6 -6
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +5 -5
- package/node_modules/@earendil-works/pi-ai/package.json +1 -1
- package/node_modules/@koromix/koffi-darwin-arm64/darwin_arm64/koffi.node +0 -0
- package/node_modules/@koromix/koffi-darwin-arm64/package.json +1 -1
- package/node_modules/@koromix/koffi-darwin-x64/darwin_x64/koffi.node +0 -0
- package/node_modules/@koromix/koffi-darwin-x64/package.json +1 -1
- package/node_modules/@koromix/koffi-win32-x64/package.json +1 -1
- package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node +0 -0
- package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
- package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
- package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
- package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
- package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
- package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
- package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
- package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
- package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
- package/node_modules/@smithy/core/package.json +1 -1
- package/node_modules/@smithy/signature-v4/dist-cjs/index.js +19 -7
- package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
- package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
- package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
- package/node_modules/@smithy/signature-v4/package.json +1 -1
- package/node_modules/koffi/package.json +1 -1
- package/node_modules/koffi/src/koffi/index.cjs +1 -1
- package/node_modules/koffi/src/koffi/index.js +1 -1
- package/node_modules/koffi/src/koffi/indirect.cjs +1 -1
- package/node_modules/koffi/src/koffi/indirect.js +1 -1
- package/node_modules/negotiator/lib/accept.js +54 -0
- package/node_modules/negotiator/lib/charset.js +10 -34
- package/node_modules/negotiator/lib/encoding.js +9 -30
- package/node_modules/negotiator/lib/language.js +15 -36
- package/node_modules/negotiator/lib/mediaType.js +16 -134
- package/node_modules/negotiator/node_modules/content-type/LICENSE +22 -0
- package/node_modules/negotiator/node_modules/content-type/dist/index.js +176 -0
- package/node_modules/negotiator/node_modules/content-type/package.json +1 -0
- package/node_modules/negotiator/package.json +1 -1
- package/node_modules/typebox/build/compile/validator.mjs +1 -1
- package/node_modules/typebox/build/format/_idna.mjs +1 -1
- package/node_modules/typebox/build/format/_puny.mjs +1 -1
- package/node_modules/typebox/build/format/uuid.mjs +1 -1
- package/node_modules/typebox/build/guard/emit.mjs +1 -1
- package/node_modules/typebox/build/guard/guard.mjs +1 -1
- package/node_modules/typebox/build/guard/string.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/_guard.mjs +1 -0
- package/node_modules/typebox/build/schema/engine/boolean.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/index.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/schema.mjs +1 -1
- package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
- package/node_modules/typebox/build/schema/types/_guard.mjs +1 -0
- package/node_modules/typebox/build/schema/types/index.mjs +1 -1
- package/node_modules/typebox/build/schema/types/schema.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ar_001.mjs +1 -1
- package/node_modules/typebox/build/system/locale/bn_BD.mjs +1 -1
- package/node_modules/typebox/build/system/locale/cs_CZ.mjs +1 -1
- package/node_modules/typebox/build/system/locale/de_DE.mjs +1 -1
- package/node_modules/typebox/build/system/locale/el_GR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/en_US.mjs +1 -1
- package/node_modules/typebox/build/system/locale/es_419.mjs +1 -1
- package/node_modules/typebox/build/system/locale/es_AR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/es_ES.mjs +1 -1
- package/node_modules/typebox/build/system/locale/es_MX.mjs +1 -1
- package/node_modules/typebox/build/system/locale/fa_IR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/fil_PH.mjs +1 -1
- package/node_modules/typebox/build/system/locale/fr_CA.mjs +1 -1
- package/node_modules/typebox/build/system/locale/fr_FR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ha_NG.mjs +1 -1
- package/node_modules/typebox/build/system/locale/hi_IN.mjs +1 -1
- package/node_modules/typebox/build/system/locale/hu_HU.mjs +1 -1
- package/node_modules/typebox/build/system/locale/id_ID.mjs +1 -1
- package/node_modules/typebox/build/system/locale/it_IT.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ja_JP.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ko_KR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ms_MY.mjs +1 -1
- package/node_modules/typebox/build/system/locale/nl_NL.mjs +1 -1
- package/node_modules/typebox/build/system/locale/pl_PL.mjs +1 -1
- package/node_modules/typebox/build/system/locale/pt_BR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/pt_PT.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ro_RO.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ru_RU.mjs +1 -1
- package/node_modules/typebox/build/system/locale/sv_SE.mjs +1 -1
- package/node_modules/typebox/build/system/locale/sw_TZ.mjs +1 -1
- package/node_modules/typebox/build/system/locale/th_TH.mjs +1 -1
- package/node_modules/typebox/build/system/locale/tr_TR.mjs +1 -1
- package/node_modules/typebox/build/system/locale/uk_UA.mjs +1 -1
- package/node_modules/typebox/build/system/locale/ur_PK.mjs +1 -1
- package/node_modules/typebox/build/system/locale/vi_VN.mjs +1 -1
- package/node_modules/typebox/build/system/locale/yo_NG.mjs +1 -1
- package/node_modules/typebox/build/system/locale/zh_Hans.mjs +1 -1
- package/node_modules/typebox/build/system/locale/zh_Hant.mjs +1 -1
- package/node_modules/typebox/build/system/memory/clone.mjs +1 -1
- package/node_modules/typebox/build/system/settings/settings.mjs +1 -1
- package/node_modules/typebox/build/type/action/_optional.mjs +1 -0
- package/node_modules/typebox/build/type/action/_readonly.mjs +1 -0
- package/node_modules/typebox/build/type/action/awaited.mjs +1 -0
- package/node_modules/typebox/build/type/action/conditional.mjs +1 -1
- package/node_modules/typebox/build/type/action/index.mjs +1 -1
- package/node_modules/typebox/build/type/action/mapped.mjs +1 -1
- package/node_modules/typebox/build/type/action/module.mjs +1 -1
- package/node_modules/typebox/build/type/action/options.mjs +1 -0
- package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +1 -0
- package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
- package/node_modules/typebox/build/type/engine/call/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +1 -1
- package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +1 -1
- package/node_modules/typebox/build/type/engine/cyclic/check.mjs +1 -1
- package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +1 -1
- package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +1 -1
- package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +1 -0
- package/node_modules/typebox/build/type/engine/enum/index.mjs +1 -1
- package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +1 -1
- package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +1 -1
- package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +1 -1
- package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/exclude/operation.mjs +1 -1
- package/node_modules/typebox/build/type/engine/extract/operation.mjs +1 -1
- package/node_modules/typebox/build/type/engine/index.mjs +1 -1
- package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +1 -1
- package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +1 -1
- package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +1 -1
- package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +1 -1
- package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +1 -1
- package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +1 -1
- package/node_modules/typebox/build/type/engine/module/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/object/from_type.mjs +1 -1
- package/node_modules/typebox/build/type/engine/object/from_union.mjs +1 -1
- package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
- package/node_modules/typebox/build/type/engine/options/instantiate.mjs +1 -0
- package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_object.mjs +1 -1
- package/node_modules/typebox/build/type/engine/partial/from_type.mjs +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +1 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +1 -1
- package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +1 -1
- package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +1 -1
- package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +1 -1
- package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +1 -1
- package/node_modules/typebox/build/type/engine/required/from_object.mjs +1 -1
- package/node_modules/typebox/build/type/engine/required/from_type.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +1 -1
- package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
- package/node_modules/typebox/build/type/engine/this/expand_this.mjs +1 -1
- package/node_modules/typebox/build/type/extends/async_iterator.mjs +1 -0
- package/node_modules/typebox/build/type/extends/enum.mjs +1 -1
- package/node_modules/typebox/build/type/extends/extends_left.mjs +1 -1
- package/node_modules/typebox/build/type/extends/extends_right.mjs +1 -1
- package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
- package/node_modules/typebox/build/type/extends/iterator.mjs +1 -0
- package/node_modules/typebox/build/type/extends/object.mjs +1 -1
- package/node_modules/typebox/build/type/extends/parameters.mjs +1 -1
- package/node_modules/typebox/build/type/extends/promise.mjs +1 -0
- package/node_modules/typebox/build/type/extends/template_literal.mjs +1 -1
- package/node_modules/typebox/build/type/extends/tuple.mjs +1 -1
- package/node_modules/typebox/build/type/extends/union.mjs +1 -1
- package/node_modules/typebox/build/type/script/mapping.mjs +1 -1
- package/node_modules/typebox/build/type/script/parser.mjs +6 -6
- package/node_modules/typebox/build/type/script/script.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
- package/node_modules/typebox/build/type/script/token/until.mjs +1 -1
- package/node_modules/typebox/build/type/types/_immutable.mjs +1 -1
- package/node_modules/typebox/build/type/types/_optional.mjs +1 -1
- package/node_modules/typebox/build/type/types/_readonly.mjs +1 -1
- package/node_modules/typebox/build/type/types/_refine.mjs +1 -1
- package/node_modules/typebox/build/type/types/async_iterator.mjs +1 -0
- package/node_modules/typebox/build/type/types/base.mjs +1 -0
- package/node_modules/typebox/build/type/types/call.mjs +1 -1
- package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
- package/node_modules/typebox/build/type/types/enum.mjs +1 -1
- package/node_modules/typebox/build/type/types/index.mjs +1 -1
- package/node_modules/typebox/build/type/types/iterator.mjs +1 -0
- package/node_modules/typebox/build/type/types/number.mjs +1 -1
- package/node_modules/typebox/build/type/types/promise.mjs +1 -0
- package/node_modules/typebox/build/type/types/record.mjs +1 -1
- package/node_modules/typebox/build/typebox.mjs +1 -1
- package/node_modules/typebox/build/value/clean/clean.mjs +1 -1
- package/node_modules/typebox/build/value/clean/from_base.mjs +1 -0
- package/node_modules/typebox/build/value/clean/from_intersect.mjs +1 -1
- package/node_modules/typebox/build/value/clean/from_type.mjs +1 -1
- package/node_modules/typebox/build/value/clean/from_union.mjs +1 -1
- package/node_modules/typebox/build/value/clone/clone.mjs +1 -1
- package/node_modules/typebox/build/value/codec/decode.mjs +1 -1
- package/node_modules/typebox/build/value/codec/encode.mjs +1 -1
- package/node_modules/typebox/build/value/codec/from_array.mjs +1 -1
- package/node_modules/typebox/build/value/codec/from_object.mjs +1 -1
- package/node_modules/typebox/build/value/codec/from_record.mjs +1 -1
- package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -1
- package/node_modules/typebox/build/value/codec/from_union.mjs +1 -1
- package/node_modules/typebox/build/value/convert/from_base.mjs +1 -0
- package/node_modules/typebox/build/value/convert/from_enum.mjs +1 -1
- package/node_modules/typebox/build/value/convert/from_template_literal.mjs +1 -1
- package/node_modules/typebox/build/value/convert/from_type.mjs +1 -1
- package/node_modules/typebox/build/value/create/from_async_iterator.mjs +1 -0
- package/node_modules/typebox/build/value/create/from_base.mjs +1 -0
- package/node_modules/typebox/build/value/create/from_enum.mjs +1 -1
- package/node_modules/typebox/build/value/create/from_iterator.mjs +1 -0
- package/node_modules/typebox/build/value/create/from_promise.mjs +1 -0
- package/node_modules/typebox/build/value/create/from_type.mjs +1 -1
- package/node_modules/typebox/build/value/default/from_base.mjs +1 -0
- package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
- package/node_modules/typebox/build/value/default/from_type.mjs +1 -1
- package/node_modules/typebox/build/value/index.mjs +1 -1
- package/node_modules/typebox/build/value/mutate/error.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/from_array.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/from_object.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/from_unknown.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/from_value.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
- package/node_modules/typebox/build/value/mutate/mutate.mjs +1 -0
- package/node_modules/typebox/build/value/repair/from_base.mjs +1 -0
- package/node_modules/typebox/build/value/repair/from_enum.mjs +1 -1
- package/node_modules/typebox/build/value/repair/from_type.mjs +1 -1
- package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +1 -1
- package/node_modules/typebox/build/value/value.mjs +1 -1
- package/node_modules/typebox/package.json +1 -1
- package/package.json +1 -1
- package/lib/args-DcHS9iff.js +0 -9
- package/lib/dump-config-xQTUTTDD.js +0 -1
- package/lib/profile-boot-BkordgJK.js +0 -1
- package/lib/profile-boot-DDo03lXi.js +0 -8
- package/node_modules/@deepseek-ai/dsh-content-review/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-content-review/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-content-review/lib/invariant.js +0 -1
- package/node_modules/@deepseek-ai/dsh-content-review/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/invariant.js +0 -1
- package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/index.js +0 -17
- package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/invariant.js +0 -1
- package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-qb-auth/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-qb-auth/lib/index.js +0 -4
- package/node_modules/@deepseek-ai/dsh-qb-auth/lib/invariant.js +0 -1
- package/node_modules/@deepseek-ai/dsh-qb-auth/package.json +0 -1
- package/node_modules/@deepseek-ai/dsh-web-search-dsh/LICENSE +0 -21
- package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/index.js +0 -1
- package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/invariant.js +0 -1
- package/node_modules/@deepseek-ai/dsh-web-search-dsh/package.json +0 -1
- package/node_modules/@napi-rs/xattr/LICENSE +0 -21
- package/node_modules/@napi-rs/xattr/index.js +0 -567
- package/node_modules/@napi-rs/xattr/package.json +0 -1
- package/node_modules/@napi-rs/xattr-darwin-arm64/package.json +0 -1
- package/node_modules/@napi-rs/xattr-darwin-arm64/xattr.darwin-arm64.node +0 -0
- package/node_modules/@napi-rs/xattr-darwin-x64/package.json +0 -1
- package/node_modules/@napi-rs/xattr-darwin-x64/xattr.darwin-x64.node +0 -0
- package/node_modules/@parcel/watcher/LICENSE +0 -21
- package/node_modules/@parcel/watcher/index.js +0 -44
- package/node_modules/@parcel/watcher/index.js.flow +0 -45
- package/node_modules/@parcel/watcher/package.json +0 -1
- package/node_modules/@parcel/watcher/scripts/build-from-source.js +0 -16
- package/node_modules/@parcel/watcher/wrapper.js +0 -88
- package/node_modules/@parcel/watcher-darwin-arm64/LICENSE +0 -21
- package/node_modules/@parcel/watcher-darwin-arm64/package.json +0 -1
- package/node_modules/@parcel/watcher-darwin-arm64/watcher.node +0 -0
- package/node_modules/@parcel/watcher-darwin-x64/LICENSE +0 -21
- package/node_modules/@parcel/watcher-darwin-x64/package.json +0 -1
- package/node_modules/@parcel/watcher-darwin-x64/watcher.node +0 -0
- package/node_modules/@parcel/watcher-win32-x64/LICENSE +0 -21
- package/node_modules/@parcel/watcher-win32-x64/package.json +0 -1
- package/node_modules/@parcel/watcher-win32-x64/watcher.node +0 -0
- package/node_modules/is-extglob/LICENSE +0 -21
- package/node_modules/is-extglob/index.js +0 -20
- package/node_modules/is-extglob/package.json +0 -1
- package/node_modules/is-glob/LICENSE +0 -21
- package/node_modules/is-glob/index.js +0 -150
- package/node_modules/is-glob/package.json +0 -1
- package/node_modules/typebox/build/type/action/_add_immutable.mjs +0 -1
- package/node_modules/typebox/build/type/action/_add_optional.mjs +0 -1
- package/node_modules/typebox/build/type/action/_add_readonly.mjs +0 -1
- package/node_modules/typebox/build/type/action/_remove_immutable.mjs +0 -1
- package/node_modules/typebox/build/type/action/_remove_optional.mjs +0 -1
- package/node_modules/typebox/build/type/action/_remove_readonly.mjs +0 -1
- package/node_modules/typebox/build/type/action/with.mjs +0 -1
- package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +0 -1
- package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +0 -1
- package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +0 -1
- package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +0 -1
- package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +0 -1
- package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +0 -1
- package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +0 -1
- package/node_modules/typebox/build/type/engine/priority/index.mjs +0 -1
- package/node_modules/typebox/build/type/engine/priority/priority.mjs +0 -1
- package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +0 -1
- package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +0 -1
- package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +0 -1
- package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +0 -1
- package/node_modules/typebox/build/type/engine/with/instantiate.mjs +0 -1
- package/node_modules/typebox/build/type/extends/dependent.mjs +0 -1
- package/node_modules/typebox/build/type/extends/record.mjs +0 -1
- package/node_modules/typebox/build/type/types/dependent.mjs +0 -1
- /package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-D2_FQYSK.js → types-DE3U0cmQ.js} +0 -0
- /package/node_modules/typebox/build/type/engine/{with → awaited}/index.mjs +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
1
2
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
2
3
|
import { fromUtf8, toUtf8 } from "@smithy/core/serde";
|
|
3
4
|
export class EventStreamSerde {
|
|
@@ -52,6 +53,8 @@ export class EventStreamSerde {
|
|
|
52
53
|
}
|
|
53
54
|
let unionMember = "";
|
|
54
55
|
for (const key in event) {
|
|
56
|
+
if (!hasOwn(event, key))
|
|
57
|
+
continue;
|
|
55
58
|
if (key !== "__type") {
|
|
56
59
|
unionMember = key;
|
|
57
60
|
break;
|
|
@@ -79,6 +82,8 @@ export class EventStreamSerde {
|
|
|
79
82
|
const asyncIterable = marshaller.deserialize(response.body, async (event) => {
|
|
80
83
|
let unionMember = "";
|
|
81
84
|
for (const key in event) {
|
|
85
|
+
if (!hasOwn(event, key))
|
|
86
|
+
continue;
|
|
82
87
|
if (key !== "__type") {
|
|
83
88
|
unionMember = key;
|
|
84
89
|
break;
|
|
@@ -153,6 +158,8 @@ export class EventStreamSerde {
|
|
|
153
158
|
throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");
|
|
154
159
|
}
|
|
155
160
|
for (const key in firstEvent.value) {
|
|
161
|
+
if (!hasOwn(firstEvent.value, key))
|
|
162
|
+
continue;
|
|
156
163
|
initialResponseContainer[key] = firstEvent.value[key];
|
|
157
164
|
}
|
|
158
165
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
1
2
|
import { fromHex, toHex } from "@smithy/core/serde";
|
|
2
3
|
import { Int64 } from "./Int64";
|
|
3
4
|
export class HeaderMarshaller {
|
|
@@ -9,7 +10,9 @@ export class HeaderMarshaller {
|
|
|
9
10
|
}
|
|
10
11
|
format(headers) {
|
|
11
12
|
const chunks = [];
|
|
12
|
-
for (const headerName
|
|
13
|
+
for (const headerName in headers) {
|
|
14
|
+
if (!hasOwn(headers, headerName))
|
|
15
|
+
continue;
|
|
13
16
|
const bytes = this.fromUtf8(headerName);
|
|
14
17
|
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
15
18
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
1
2
|
import { NormalizedSchema, translateTraits } from "@smithy/core/schema";
|
|
2
3
|
import { sdkStreamMixin, splitEvery, splitHeader } from "@smithy/core/serde";
|
|
3
4
|
import { HttpRequest } from "@smithy/core/transport";
|
|
@@ -93,6 +94,8 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
93
94
|
}
|
|
94
95
|
else if (typeof memberTraits.httpPrefixHeaders === "string") {
|
|
95
96
|
for (const key in inputMemberValue) {
|
|
97
|
+
if (!hasOwn(inputMemberValue, key))
|
|
98
|
+
continue;
|
|
96
99
|
const val = inputMemberValue[key];
|
|
97
100
|
const amalgam = memberTraits.httpPrefixHeaders + key;
|
|
98
101
|
serializer.write([memberNs.getValueSchema(), { httpHeader: amalgam }], val);
|
|
@@ -139,6 +142,8 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
139
142
|
const traits = ns.getMergedTraits();
|
|
140
143
|
if (traits.httpQueryParams) {
|
|
141
144
|
for (const key in data) {
|
|
145
|
+
if (!hasOwn(data, key))
|
|
146
|
+
continue;
|
|
142
147
|
if (!(key in query)) {
|
|
143
148
|
const val = data[key];
|
|
144
149
|
const valueSchema = ns.getValueSchema();
|
|
@@ -182,6 +187,8 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
182
187
|
throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.");
|
|
183
188
|
}
|
|
184
189
|
for (const header in response.headers) {
|
|
190
|
+
if (!hasOwn(response.headers, header))
|
|
191
|
+
continue;
|
|
185
192
|
const value = response.headers[header];
|
|
186
193
|
delete response.headers[header];
|
|
187
194
|
response.headers[header.toLowerCase()] = value;
|
|
@@ -269,6 +276,8 @@ export class HttpBindingProtocol extends HttpProtocol {
|
|
|
269
276
|
else if (memberTraits.httpPrefixHeaders !== undefined) {
|
|
270
277
|
dataObject[memberName] = {};
|
|
271
278
|
for (const header in response.headers) {
|
|
279
|
+
if (!hasOwn(response.headers, header))
|
|
280
|
+
continue;
|
|
272
281
|
if (header.startsWith(memberTraits.httpPrefixHeaders)) {
|
|
273
282
|
const value = response.headers[header];
|
|
274
283
|
const valueSchema = memberSchema.getValueSchema();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
1
2
|
import { NormalizedSchema, TypeRegistry, translateTraits } from "@smithy/core/schema";
|
|
2
3
|
import { HttpRequest, HttpResponse, isValidHostname } from "@smithy/core/transport";
|
|
3
4
|
import { SerdeContext } from "./SerdeContext";
|
|
@@ -43,6 +44,8 @@ export class HttpProtocol extends SerdeContext {
|
|
|
43
44
|
}
|
|
44
45
|
if (endpoint.headers) {
|
|
45
46
|
for (const name in endpoint.headers) {
|
|
47
|
+
if (!hasOwn(endpoint.headers, name))
|
|
48
|
+
continue;
|
|
46
49
|
request.headers[name] = endpoint.headers[name].join(", ");
|
|
47
50
|
}
|
|
48
51
|
}
|
|
@@ -58,6 +61,8 @@ export class HttpProtocol extends SerdeContext {
|
|
|
58
61
|
};
|
|
59
62
|
if (endpoint.headers) {
|
|
60
63
|
for (const name in endpoint.headers) {
|
|
64
|
+
if (!hasOwn(endpoint.headers, name))
|
|
65
|
+
continue;
|
|
61
66
|
request.headers[name] = endpoint.headers[name];
|
|
62
67
|
}
|
|
63
68
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
1
2
|
import { NormalizedSchema } from "@smithy/core/schema";
|
|
2
3
|
import { HttpRequest } from "@smithy/core/transport";
|
|
3
4
|
import { HttpProtocol } from "./HttpProtocol";
|
|
@@ -67,6 +68,8 @@ export class RpcProtocol extends HttpProtocol {
|
|
|
67
68
|
throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.");
|
|
68
69
|
}
|
|
69
70
|
for (const header in response.headers) {
|
|
71
|
+
if (!hasOwn(response.headers, header))
|
|
72
|
+
continue;
|
|
70
73
|
const value = response.headers[header];
|
|
71
74
|
delete response.headers[header];
|
|
72
75
|
response.headers[header.toLowerCase()] = value;
|
package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
1
2
|
import { HttpResponse } from "@smithy/core/protocols";
|
|
2
3
|
import { parseRfc7231DateTime } from "@smithy/core/serde";
|
|
3
4
|
export function parseRetryAfterHeader(response, logger) {
|
|
4
5
|
if (!HttpResponse.isInstance(response)) {
|
|
5
6
|
return;
|
|
6
7
|
}
|
|
7
|
-
for (const header
|
|
8
|
+
for (const header in response.headers) {
|
|
9
|
+
if (!hasOwn(response.headers, header))
|
|
10
|
+
continue;
|
|
8
11
|
const h = header.toLowerCase();
|
|
9
12
|
if (h === "retry-after") {
|
|
10
13
|
const retryAfter = response.headers[header];
|
|
@@ -41,3 +41,4 @@ export { streamCollector } from "./util-stream/stream-collector.browser";
|
|
|
41
41
|
const _getRandomValues = (array) => crypto.getRandomValues(array);
|
|
42
42
|
export const v4 = bindV4(_getRandomValues);
|
|
43
43
|
export const generateIdempotencyToken = v4;
|
|
44
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
@@ -43,3 +43,4 @@ export { streamCollector } from "./util-stream/stream-collector.browser";
|
|
|
43
43
|
const _getRandomValues = (array) => crypto.getRandomValues(array);
|
|
44
44
|
export const v4 = bindV4(_getRandomValues);
|
|
45
45
|
export const generateIdempotencyToken = v4;
|
|
46
|
+
export { hasOwn } from "@smithy/core/transport";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/transport";
|
|
1
2
|
export const parseBoolean = (value) => {
|
|
2
3
|
switch (value) {
|
|
3
4
|
case "true":
|
|
@@ -137,6 +138,8 @@ export const expectUnion = (value) => {
|
|
|
137
138
|
const asObject = expectObject(value);
|
|
138
139
|
const setKeys = [];
|
|
139
140
|
for (const k in asObject) {
|
|
141
|
+
if (!hasOwn(asObject, k))
|
|
142
|
+
continue;
|
|
140
143
|
if (asObject[k] != null) {
|
|
141
144
|
setKeys.push(k);
|
|
142
145
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hasOwn } from "./hasOwn";
|
|
1
2
|
import { parseUrl } from "./parseUrl";
|
|
2
3
|
export const toEndpointV1 = (endpoint) => {
|
|
3
4
|
if (typeof endpoint === "object") {
|
|
@@ -6,6 +7,8 @@ export const toEndpointV1 = (endpoint) => {
|
|
|
6
7
|
if (endpoint.headers) {
|
|
7
8
|
v1Endpoint.headers = {};
|
|
8
9
|
for (const name in endpoint.headers) {
|
|
10
|
+
if (!hasOwn(endpoint.headers, name))
|
|
11
|
+
continue;
|
|
9
12
|
v1Endpoint.headers[name.toLowerCase()] = endpoint.headers[name].join(", ");
|
|
10
13
|
}
|
|
11
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@smithy/core","version":"3.33.
|
|
1
|
+
{"name":"@smithy/core","version":"3.33.3","license":"Apache-2.0","sideEffects":false,"main":"./dist-cjs/index.js","module":"./dist-es/index.js","browser":{"./dist-es/submodules/checksum/index.js":"./dist-es/submodules/checksum/index.browser.js","./dist-es/submodules/config/index.js":"./dist-es/submodules/config/index.browser.js","./dist-es/submodules/endpoints/index.js":"./dist-es/submodules/endpoints/index.browser.js","./dist-es/submodules/event-streams/index.js":"./dist-es/submodules/event-streams/index.browser.js","./dist-es/submodules/retry/index.js":"./dist-es/submodules/retry/index.browser.js","./dist-es/submodules/serde/index.js":"./dist-es/submodules/serde/index.browser.js"},"react-native":{"./dist-es/submodules/checksum/index.js":"./dist-es/submodules/checksum/index.native.js","./dist-cjs/submodules/checksum/index.js":"./dist-cjs/submodules/checksum/index.native.js","./dist-es/submodules/config/index.js":"./dist-es/submodules/config/index.native.js","./dist-cjs/submodules/config/index.js":"./dist-cjs/submodules/config/index.native.js","./dist-es/submodules/serde/index.js":"./dist-es/submodules/serde/index.native.js","./dist-cjs/submodules/serde/index.js":"./dist-cjs/submodules/serde/index.native.js","./dist-es/submodules/endpoints/index.js":"./dist-es/submodules/endpoints/index.browser.js","./dist-cjs/submodules/endpoints/index.js":"./dist-cjs/submodules/endpoints/index.browser.js","./dist-es/submodules/event-streams/index.js":"./dist-es/submodules/event-streams/index.browser.js","./dist-cjs/submodules/event-streams/index.js":"./dist-cjs/submodules/event-streams/index.browser.js","./dist-es/submodules/retry/index.js":"./dist-es/submodules/retry/index.browser.js","./dist-cjs/submodules/retry/index.js":"./dist-cjs/submodules/retry/index.browser.js"},"exports":{".":{"types":"./dist-types/index.d.ts","module":"./dist-es/index.js","node":"./dist-cjs/index.js","import":"./dist-es/index.js","require":"./dist-cjs/index.js"},"./package.json":{"module":"./package.json","node":"./package.json","import":"./package.json","require":"./package.json"},"./cbor":{"types":"./dist-types/submodules/cbor/index.d.ts","module":"./dist-es/submodules/cbor/index.js","node":"./dist-cjs/submodules/cbor/index.js","import":"./dist-es/submodules/cbor/index.js","require":"./dist-cjs/submodules/cbor/index.js"},"./protocols":{"types":"./dist-types/submodules/protocols/index.d.ts","module":"./dist-es/submodules/protocols/index.js","node":"./dist-cjs/submodules/protocols/index.js","import":"./dist-es/submodules/protocols/index.js","require":"./dist-cjs/submodules/protocols/index.js"},"./serde":{"types":"./dist-types/submodules/serde/index.d.ts","react-native":{"import":"./dist-es/submodules/serde/index.native.js","require":"./dist-cjs/submodules/serde/index.native.js"},"browser":{"import":"./dist-es/submodules/serde/index.browser.js","require":"./dist-cjs/submodules/serde/index.browser.js"},"module":"./dist-es/submodules/serde/index.js","node":"./dist-cjs/submodules/serde/index.js","import":"./dist-es/submodules/serde/index.js","require":"./dist-cjs/submodules/serde/index.js"},"./schema":{"types":"./dist-types/submodules/schema/index.d.ts","module":"./dist-es/submodules/schema/index.js","node":"./dist-cjs/submodules/schema/index.js","import":"./dist-es/submodules/schema/index.js","require":"./dist-cjs/submodules/schema/index.js"},"./event-streams":{"types":"./dist-types/submodules/event-streams/index.d.ts","react-native":{"import":"./dist-es/submodules/event-streams/index.browser.js","require":"./dist-cjs/submodules/event-streams/index.browser.js"},"browser":{"import":"./dist-es/submodules/event-streams/index.browser.js","require":"./dist-cjs/submodules/event-streams/index.browser.js"},"module":"./dist-es/submodules/event-streams/index.js","node":"./dist-cjs/submodules/event-streams/index.js","import":"./dist-es/submodules/event-streams/index.js","require":"./dist-cjs/submodules/event-streams/index.js"},"./endpoints":{"types":"./dist-types/submodules/endpoints/index.d.ts","react-native":{"import":"./dist-es/submodules/endpoints/index.browser.js","require":"./dist-cjs/submodules/endpoints/index.browser.js"},"browser":{"import":"./dist-es/submodules/endpoints/index.browser.js","require":"./dist-cjs/submodules/endpoints/index.browser.js"},"module":"./dist-es/submodules/endpoints/index.js","node":"./dist-cjs/submodules/endpoints/index.js","import":"./dist-es/submodules/endpoints/index.js","require":"./dist-cjs/submodules/endpoints/index.js"},"./client":{"types":"./dist-types/submodules/client/index.d.ts","module":"./dist-es/submodules/client/index.js","node":"./dist-cjs/submodules/client/index.js","import":"./dist-es/submodules/client/index.js","require":"./dist-cjs/submodules/client/index.js"},"./config":{"types":"./dist-types/submodules/config/index.d.ts","react-native":{"import":"./dist-es/submodules/config/index.native.js","require":"./dist-cjs/submodules/config/index.native.js"},"browser":{"import":"./dist-es/submodules/config/index.browser.js","require":"./dist-cjs/submodules/config/index.browser.js"},"module":"./dist-es/submodules/config/index.js","node":"./dist-cjs/submodules/config/index.js","import":"./dist-es/submodules/config/index.js","require":"./dist-cjs/submodules/config/index.js"},"./checksum":{"types":"./dist-types/submodules/checksum/index.d.ts","react-native":{"import":"./dist-es/submodules/checksum/index.native.js","require":"./dist-cjs/submodules/checksum/index.native.js"},"browser":{"import":"./dist-es/submodules/checksum/index.browser.js","require":"./dist-cjs/submodules/checksum/index.browser.js"},"module":"./dist-es/submodules/checksum/index.js","node":"./dist-cjs/submodules/checksum/index.js","import":"./dist-es/submodules/checksum/index.js","require":"./dist-cjs/submodules/checksum/index.js"},"./retry":{"types":"./dist-types/submodules/retry/index.d.ts","react-native":{"import":"./dist-es/submodules/retry/index.browser.js","require":"./dist-cjs/submodules/retry/index.browser.js"},"browser":{"import":"./dist-es/submodules/retry/index.browser.js","require":"./dist-cjs/submodules/retry/index.browser.js"},"module":"./dist-es/submodules/retry/index.js","node":"./dist-cjs/submodules/retry/index.js","import":"./dist-es/submodules/retry/index.js","require":"./dist-cjs/submodules/retry/index.js"},"./transport":{"types":"./dist-types/submodules/transport/index.d.ts","module":"./dist-es/submodules/transport/index.js","node":"./dist-cjs/submodules/transport/index.js","import":"./dist-es/submodules/transport/index.js","require":"./dist-cjs/submodules/transport/index.js"}},"dependencies":{"@smithy/types":"^4.17.2","tslib":"^2.6.2"},"engines":{"node":">=18.0.0"}}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
const { fromUtf8, fromHex, toHex, toUint8Array, isArrayBuffer } = require("@smithy/core/serde");
|
|
1
|
+
const { hasOwn, fromUtf8, fromHex, toHex, toUint8Array, isArrayBuffer } = require("@smithy/core/serde");
|
|
2
2
|
const { normalizeProvider } = require("@smithy/core/client");
|
|
3
3
|
const { escapeUri, HttpRequest } = require("@smithy/core/protocols");
|
|
4
4
|
|
|
5
5
|
class HeaderFormatter {
|
|
6
6
|
format(headers) {
|
|
7
7
|
const chunks = [];
|
|
8
|
-
for (const headerName
|
|
8
|
+
for (const headerName in headers) {
|
|
9
|
+
if (!hasOwn(headers, headerName))
|
|
10
|
+
continue;
|
|
9
11
|
const bytes = fromUtf8(headerName);
|
|
10
12
|
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
11
13
|
}
|
|
@@ -174,7 +176,9 @@ const MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7;
|
|
|
174
176
|
const getCanonicalQuery = ({ query = {} }) => {
|
|
175
177
|
const keys = [];
|
|
176
178
|
const serialized = {};
|
|
177
|
-
for (const key
|
|
179
|
+
for (const key in query) {
|
|
180
|
+
if (!hasOwn(query, key))
|
|
181
|
+
continue;
|
|
178
182
|
if (key.toLowerCase() === SIGNATURE_HEADER) {
|
|
179
183
|
continue;
|
|
180
184
|
}
|
|
@@ -341,7 +345,9 @@ const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) =>
|
|
|
341
345
|
};
|
|
342
346
|
|
|
343
347
|
const getPayloadHash = async ({ headers, body }, hashConstructor) => {
|
|
344
|
-
for (const headerName
|
|
348
|
+
for (const headerName in headers) {
|
|
349
|
+
if (!hasOwn(headers, headerName))
|
|
350
|
+
continue;
|
|
345
351
|
if (headerName.toLowerCase() === SHA256_HEADER) {
|
|
346
352
|
return headers[headerName];
|
|
347
353
|
}
|
|
@@ -359,7 +365,9 @@ const getPayloadHash = async ({ headers, body }, hashConstructor) => {
|
|
|
359
365
|
|
|
360
366
|
const hasHeader = (soughtHeader, headers) => {
|
|
361
367
|
soughtHeader = soughtHeader.toLowerCase();
|
|
362
|
-
for (const headerName
|
|
368
|
+
for (const headerName in headers) {
|
|
369
|
+
if (!hasOwn(headers, headerName))
|
|
370
|
+
continue;
|
|
363
371
|
if (soughtHeader === headerName.toLowerCase()) {
|
|
364
372
|
return true;
|
|
365
373
|
}
|
|
@@ -369,7 +377,9 @@ const hasHeader = (soughtHeader, headers) => {
|
|
|
369
377
|
|
|
370
378
|
const moveHeadersToQuery = (request, options = {}) => {
|
|
371
379
|
const { headers, query = {} } = HttpRequest.clone(request);
|
|
372
|
-
for (const name
|
|
380
|
+
for (const name in headers) {
|
|
381
|
+
if (!hasOwn(headers, name))
|
|
382
|
+
continue;
|
|
373
383
|
const lname = name.toLowerCase();
|
|
374
384
|
if ((lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname)) ||
|
|
375
385
|
options.hoistableHeaders?.has(lname)) {
|
|
@@ -386,7 +396,9 @@ const moveHeadersToQuery = (request, options = {}) => {
|
|
|
386
396
|
|
|
387
397
|
const prepareRequest = (request) => {
|
|
388
398
|
request = HttpRequest.clone(request);
|
|
389
|
-
for (const headerName
|
|
399
|
+
for (const headerName in request.headers) {
|
|
400
|
+
if (!hasOwn(request.headers, headerName))
|
|
401
|
+
continue;
|
|
390
402
|
if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
|
|
391
403
|
delete request.headers[headerName];
|
|
392
404
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/serde";
|
|
1
2
|
import { fromHex, fromUtf8, toHex } from "@smithy/core/serde";
|
|
2
3
|
export class HeaderFormatter {
|
|
3
4
|
format(headers) {
|
|
4
5
|
const chunks = [];
|
|
5
|
-
for (const headerName
|
|
6
|
+
for (const headerName in headers) {
|
|
7
|
+
if (!hasOwn(headers, headerName))
|
|
8
|
+
continue;
|
|
6
9
|
const bytes = fromUtf8(headerName);
|
|
7
10
|
chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName]));
|
|
8
11
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/serde";
|
|
1
2
|
import { escapeUri } from "@smithy/core/protocols";
|
|
2
3
|
import { SIGNATURE_HEADER } from "./constants";
|
|
3
4
|
export const getCanonicalQuery = ({ query = {} }) => {
|
|
4
5
|
const keys = [];
|
|
5
6
|
const serialized = {};
|
|
6
|
-
for (const key
|
|
7
|
+
for (const key in query) {
|
|
8
|
+
if (!hasOwn(query, key))
|
|
9
|
+
continue;
|
|
7
10
|
if (key.toLowerCase() === SIGNATURE_HEADER) {
|
|
8
11
|
continue;
|
|
9
12
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/serde";
|
|
1
2
|
import { isArrayBuffer, toHex, toUint8Array } from "@smithy/core/serde";
|
|
2
3
|
import { SHA256_HEADER, UNSIGNED_PAYLOAD } from "./constants";
|
|
3
4
|
export const getPayloadHash = async ({ headers, body }, hashConstructor) => {
|
|
4
|
-
for (const headerName
|
|
5
|
+
for (const headerName in headers) {
|
|
6
|
+
if (!hasOwn(headers, headerName))
|
|
7
|
+
continue;
|
|
5
8
|
if (headerName.toLowerCase() === SHA256_HEADER) {
|
|
6
9
|
return headers[headerName];
|
|
7
10
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/serde";
|
|
1
2
|
export const hasHeader = (soughtHeader, headers) => {
|
|
2
3
|
soughtHeader = soughtHeader.toLowerCase();
|
|
3
|
-
for (const headerName
|
|
4
|
+
for (const headerName in headers) {
|
|
5
|
+
if (!hasOwn(headers, headerName))
|
|
6
|
+
continue;
|
|
4
7
|
if (soughtHeader === headerName.toLowerCase()) {
|
|
5
8
|
return true;
|
|
6
9
|
}
|
|
@@ -9,7 +12,9 @@ export const hasHeader = (soughtHeader, headers) => {
|
|
|
9
12
|
};
|
|
10
13
|
export const getHeaderValue = (soughtHeader, headers) => {
|
|
11
14
|
soughtHeader = soughtHeader.toLowerCase();
|
|
12
|
-
for (const headerName
|
|
15
|
+
for (const headerName in headers) {
|
|
16
|
+
if (!hasOwn(headers, headerName))
|
|
17
|
+
continue;
|
|
13
18
|
if (soughtHeader === headerName.toLowerCase()) {
|
|
14
19
|
return headers[headerName];
|
|
15
20
|
}
|
|
@@ -18,7 +23,9 @@ export const getHeaderValue = (soughtHeader, headers) => {
|
|
|
18
23
|
};
|
|
19
24
|
export const deleteHeader = (soughtHeader, headers) => {
|
|
20
25
|
soughtHeader = soughtHeader.toLowerCase();
|
|
21
|
-
for (const headerName
|
|
26
|
+
for (const headerName in headers) {
|
|
27
|
+
if (!hasOwn(headers, headerName))
|
|
28
|
+
continue;
|
|
22
29
|
if (soughtHeader === headerName.toLowerCase()) {
|
|
23
30
|
delete headers[headerName];
|
|
24
31
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/serde";
|
|
1
2
|
import { HttpRequest } from "@smithy/core/protocols";
|
|
2
3
|
export const moveHeadersToQuery = (request, options = {}) => {
|
|
3
4
|
const { headers, query = {} } = HttpRequest.clone(request);
|
|
4
|
-
for (const name
|
|
5
|
+
for (const name in headers) {
|
|
6
|
+
if (!hasOwn(headers, name))
|
|
7
|
+
continue;
|
|
5
8
|
const lname = name.toLowerCase();
|
|
6
9
|
if ((lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname)) ||
|
|
7
10
|
options.hoistableHeaders?.has(lname)) {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { hasOwn } from "@smithy/core/serde";
|
|
1
2
|
import { HttpRequest } from "@smithy/core/protocols";
|
|
2
3
|
import { GENERATED_HEADERS } from "./constants";
|
|
3
4
|
export const prepareRequest = (request) => {
|
|
4
5
|
request = HttpRequest.clone(request);
|
|
5
|
-
for (const headerName
|
|
6
|
+
for (const headerName in request.headers) {
|
|
7
|
+
if (!hasOwn(request.headers, headerName))
|
|
8
|
+
continue;
|
|
6
9
|
if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) {
|
|
7
10
|
delete request.headers[headerName];
|
|
8
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@smithy/signature-v4","version":"5.7.
|
|
1
|
+
{"name":"@smithy/signature-v4","version":"5.7.3","license":"Apache-2.0","sideEffects":false,"main":"./dist-cjs/index.js","module":"./dist-es/index.js","dependencies":{"@smithy/core":"^3.33.3","@smithy/types":"^4.17.2","tslib":"^2.6.2"},"engines":{"node":">=18.0.0"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"koffi","version":"3.1.
|
|
1
|
+
{"name":"koffi","version":"3.1.6","license":"MIT","cnoke":{"api":"../../vendor/node-api-headers","output":"build/koffi/{{ toolchain }}","node":16,"napi":8},"optionalDependencies":{"@koromix/koffi-linux-arm64":"3.1.6","@koromix/koffi-linux-ia32":"3.1.6","@koromix/koffi-linux-x64":"3.1.6","@koromix/koffi-linux-riscv64":"3.1.6","@koromix/koffi-freebsd-ia32":"3.1.6","@koromix/koffi-freebsd-x64":"3.1.6","@koromix/koffi-freebsd-arm64":"3.1.6","@koromix/koffi-openbsd-ia32":"3.1.6","@koromix/koffi-openbsd-x64":"3.1.6","@koromix/koffi-win32-ia32":"3.1.6","@koromix/koffi-win32-x64":"3.1.6","@koromix/koffi-win32-arm64":"3.1.6","@koromix/koffi-darwin-x64":"3.1.6","@koromix/koffi-darwin-arm64":"3.1.6","@koromix/koffi-linux-loong64":"3.1.6"},"type":"module","main":"./index.cjs","module":"./index.js","exports":{".":{"import":"./index.js","require":"./index.cjs","types":"./index.d.ts"},"./indirect":{"import":"./indirect.js","require":"./indirect.cjs","types":"./index.d.ts"}}}
|
|
@@ -208,7 +208,7 @@ var init_abi = __esm({
|
|
|
208
208
|
var package_default;
|
|
209
209
|
var init_package = __esm({
|
|
210
210
|
"package.json"() {
|
|
211
|
-
package_default = { name: "koffi", version: "3.1.
|
|
211
|
+
package_default = { name: "koffi", version: "3.1.6", cnoke: { api: "../../vendor/node-api-headers", output: "../../bin/Koffi/{{ toolchain }}", node: 16, napi: 8 } };
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
214
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var E=Object.defineProperty;var f=(e,a)=>E(e,"name",{value:a,configurable:!0});var h=f((e,a)=>(a=Symbol[e])?a:Symbol.for("Symbol."+e),"__knownSymbol"),v=f(e=>{throw TypeError(e)},"__typeError"),w=f((e,a,r)=>{if(a!=null){typeof a!="object"&&typeof a!="function"&&v("Object expected");var i,d;r&&(i=a[h("asyncDispose")]),i===void 0&&(i=a[h("dispose")],r&&(d=i)),typeof i!="function"&&v("Object not disposable"),d&&(i=f(function(){try{d.call(this)}catch(s){return Promise.reject(s)}},"dispose")),e.push([r,i,a])}else r&&e.push([r]);return a},"__using"),y=f((e,a,r)=>{var i=typeof SuppressedError=="function"?SuppressedError:function(t,n,l,c){return c=Error(l),c.name="SuppressedError",c.error=t,c.suppressed=n,c},d=f(t=>a=r?new i(t,a,"An error was suppressed during disposal"):(r=!0,t),"fail"),s=f(t=>{for(;t=e.pop();)try{var n=t[1]&&t[1].call(t[2]);if(t[0])return Promise.resolve(n).then(s,l=>(d(l),s()))}catch(l){d(l)}if(r)throw a},"next");return s()},"__callDispose");import p from"node:util";import I from"node:fs";import{createRequire as F}from"node:module";import m from"node:fs";function x(){let e=process.arch.toString();if(e=="riscv32"||e=="riscv64"){var a=[];try{const n=w(a,k(process.execPath,"r"));switch(b(n).e_flags&6){case 0:break;case 2:e+="f";break;case 4:e+="d";break;case 6:e+="q";break}}catch(n){var r=n,i=!0}finally{y(a,r,i)}}else if(e=="arm"){var d=[];try{const n=w(d,k(process.execPath,"r"));let l=b(n);if(l.e_flags&1024)e+="hf";else if(l.e_flags&512)e+="sf";else throw new Error("Unknown ARM floating-point ABI")}catch(n){var s=n,t=!0}finally{y(d,s,t)}}return e}f(x,"determineAbi");function b(e,a=0){let r=e.read(a,512);if(r.length<16)throw new Error("Truncated header");if(r[0]!=127||r[1]!=69||r[2]!=76||r[3]!=70)throw new Error("Invalid magic number");if(r[6]!=1)throw new Error("Invalid ELF version");if(r[5]!=1)throw new Error("Big-endian architectures are not supported");switch(r[4]){case 1:{if(r.length<68)throw new Error("Truncated ELF header");return{ei_class:32,e_machine:r.readUInt16LE(18),e_flags:r.readUInt32LE(36),e_phoff:r.readUInt32LE(28),e_phentsize:r.readUInt16LE(42),e_phnum:r.readUInt16LE(44)}}break;case 2:{if(r.length<120)throw new Error("Truncated ELF header");return{ei_class:64,e_machine:r.readUInt16LE(18),e_flags:r.readUInt32LE(48),e_phoff:r.readBigUInt64LE(32),e_phentsize:r.readUInt16LE(54),e_phnum:r.readUInt16LE(56)}}break;default:throw new Error("Invalid ELF class")}}f(b,"readElfHeader");function k(e,a){let r=m.openSync(e,a);return new K(r)}f(k,"openFile");var K=class{static{f(this,"FileHandle")}constructor(e){this.fd=e}close(){m.closeSync(this.fd)}[Symbol.dispose](){m.closeSync(this.fd)}read(e,a){let r=Buffer.allocUnsafe(a),i=m.readSync(this.fd,r,0,a,e);return r.subarray(0,i)}},_={name:"koffi",version:"3.1.
|
|
1
|
+
var E=Object.defineProperty;var f=(e,a)=>E(e,"name",{value:a,configurable:!0});var h=f((e,a)=>(a=Symbol[e])?a:Symbol.for("Symbol."+e),"__knownSymbol"),v=f(e=>{throw TypeError(e)},"__typeError"),w=f((e,a,r)=>{if(a!=null){typeof a!="object"&&typeof a!="function"&&v("Object expected");var i,d;r&&(i=a[h("asyncDispose")]),i===void 0&&(i=a[h("dispose")],r&&(d=i)),typeof i!="function"&&v("Object not disposable"),d&&(i=f(function(){try{d.call(this)}catch(s){return Promise.reject(s)}},"dispose")),e.push([r,i,a])}else r&&e.push([r]);return a},"__using"),y=f((e,a,r)=>{var i=typeof SuppressedError=="function"?SuppressedError:function(t,n,l,c){return c=Error(l),c.name="SuppressedError",c.error=t,c.suppressed=n,c},d=f(t=>a=r?new i(t,a,"An error was suppressed during disposal"):(r=!0,t),"fail"),s=f(t=>{for(;t=e.pop();)try{var n=t[1]&&t[1].call(t[2]);if(t[0])return Promise.resolve(n).then(s,l=>(d(l),s()))}catch(l){d(l)}if(r)throw a},"next");return s()},"__callDispose");import p from"node:util";import I from"node:fs";import{createRequire as F}from"node:module";import m from"node:fs";function x(){let e=process.arch.toString();if(e=="riscv32"||e=="riscv64"){var a=[];try{const n=w(a,k(process.execPath,"r"));switch(b(n).e_flags&6){case 0:break;case 2:e+="f";break;case 4:e+="d";break;case 6:e+="q";break}}catch(n){var r=n,i=!0}finally{y(a,r,i)}}else if(e=="arm"){var d=[];try{const n=w(d,k(process.execPath,"r"));let l=b(n);if(l.e_flags&1024)e+="hf";else if(l.e_flags&512)e+="sf";else throw new Error("Unknown ARM floating-point ABI")}catch(n){var s=n,t=!0}finally{y(d,s,t)}}return e}f(x,"determineAbi");function b(e,a=0){let r=e.read(a,512);if(r.length<16)throw new Error("Truncated header");if(r[0]!=127||r[1]!=69||r[2]!=76||r[3]!=70)throw new Error("Invalid magic number");if(r[6]!=1)throw new Error("Invalid ELF version");if(r[5]!=1)throw new Error("Big-endian architectures are not supported");switch(r[4]){case 1:{if(r.length<68)throw new Error("Truncated ELF header");return{ei_class:32,e_machine:r.readUInt16LE(18),e_flags:r.readUInt32LE(36),e_phoff:r.readUInt32LE(28),e_phentsize:r.readUInt16LE(42),e_phnum:r.readUInt16LE(44)}}break;case 2:{if(r.length<120)throw new Error("Truncated ELF header");return{ei_class:64,e_machine:r.readUInt16LE(18),e_flags:r.readUInt32LE(48),e_phoff:r.readBigUInt64LE(32),e_phentsize:r.readUInt16LE(54),e_phnum:r.readUInt16LE(56)}}break;default:throw new Error("Invalid ELF class")}}f(b,"readElfHeader");function k(e,a){let r=m.openSync(e,a);return new K(r)}f(k,"openFile");var K=class{static{f(this,"FileHandle")}constructor(e){this.fd=e}close(){m.closeSync(this.fd)}[Symbol.dispose](){m.closeSync(this.fd)}read(e,a){let r=Buffer.allocUnsafe(a),i=m.readSync(this.fd,r,0,a,e);return r.subarray(0,i)}},_={name:"koffi",version:"3.1.6",cnoke:{api:"../../vendor/node-api-headers",output:"../../bin/Koffi/{{ toolchain }}",node:16,napi:8}},L=F(import.meta.url);function T(){if(process.versions.napi==null||process.versions.napi<_.cnoke.napi){let i=parseInt(process.versions.node,10);throw new Error(`This engine is based on Node ${process.versions.node}, but ${_.name} does not support the Node ${i}.x branch (Node-API < ${_.cnoke.napi})`)}let e=x(),a=`${process.platform}-${process.arch}`,r=[`${process.platform}_${e}`];return process.platform=="linux"&&r.push(`musl_${e}`),[_.version,a,r]}f(T,"detectPlatform");function U(e,a,r){let s=[e+"/../../build/koffi"],t=null,n=null;if(process.resourcesPath!=null){let c=["/koffi","/koffi/build","/node_modules/koffi/build"];for(let u of c)s.push(process.resourcesPath+u)}let l=[`${import.meta.dirname}/../../../@koromix/koffi-${a}`,...r.flatMap(c=>s.map(u=>`${u}/${c}/koffi.node`))];for(let c of l)if(I.existsSync(c))try{t=L(c);break}catch(u){n??=u}if(t==null&&n!=null)throw n;return t}f(U,"loadDynamic");function S(e,a){if(e==null)throw new Error("Cannot find the native Koffi module; did you bundle it correctly?");if(e.version!=a)throw new Error("Mismatched native Koffi modules");let r=e.load,i=e.register,d=e.introspect??e.type;e.sizeof=s=>d(s).size,e.alignof=s=>d(s).alignment,e.offsetof=(s,t)=>{let n=d(s);if(n.primitive!="Record")throw new TypeError("The offsetof() function can only be used with record types");let l=n.members[t];if(l==null)throw new Error(`Record type ${n.name} does not have member '${t}'`);return l.offset},e.register=(...s)=>(s.length>=3&&typeof s[1]=="function"&&(process.emitWarning("Using koffi.register() with a custom this value was deprecated in Koffi 2.17, use function.bind() instead","DeprecationWarning","KOFFI009"),s[1]=s[1].bind(s[0]),s=s.slice(1)),i(...s)),e.load=(...s)=>{let t=r(...s);return t.cdecl=p.deprecate((...n)=>t.func("__cdecl",...n),"The koffi.cdecl() function was deprecated in Koffi 2.7, use koffi.func(...) instead","KOFFI003"),t.stdcall=p.deprecate((...n)=>t.func("__stdcall",...n),'The koffi.stdcall() function was deprecated in Koffi 2.7, use koffi.func("__stdcall", ...) instead',"KOFFI004"),t.fastcall=p.deprecate((...n)=>t.func("__fastcall",...n),'The koffi.fastcall() function was deprecated in Koffi 2.7, use koffi.func("__fastcall", ...) instead',"KOFFI005"),t.thiscall=p.deprecate((...n)=>t.func("__thiscall",...n),'The koffi.thiscall() function was deprecated in Koffi 2.7, use koffi.func("__thiscall", ...) instead',"KOFFI006"),t},e.introspect==null?(e.resolve=p.deprecate(e.type,"The koffi.resolve() function was deprecated in Koffi 3.0, use koffi.type() instead","KOFFI007"),e.introspect=p.deprecate(e.type,"The koffi.introspect() function was deprecated in Koffi 3.0, use koffi.type() instead","KOFFI008")):e.resolve=e.type}f(S,"wrapNative");import{loadStatic as $}from"./src/static.js";var[O,g,j]=T(),o=$(g)??U(import.meta.dirname,g,j);S(o,O);var P=o.LibraryHandle,z=o.TypeObject,q=o.Union,A=o.address,H=o.alias,B=o.alignof,D=o.alloc,N=o.array,R=o.as,M=o.call,W=o.config,C=o.decode,G=o.disposable,J=o.encode,Q=o.enumeration,V=o.errno,X=o.extension,Y=o.free,Z=o.in,ee=o.inout,re=o.introspect,oe=o.load,ae=o.node,te=o.offsetof,se=o.opaque,ne=o.os,ie=o.out,fe=o.pack,de=o.pointer,le=o.proto,ce=o.register,pe=o.reset,ue=o.resolve,me=o.sizeof,_e=o.stats,he=o.struct,ve=o.type,we=o.types,ye=o.union,be=o.unregister,ke=o.version,ge=o.view,Ee=o;export{P as LibraryHandle,z as TypeObject,q as Union,A as address,H as alias,B as alignof,D as alloc,N as array,R as as,M as call,W as config,C as decode,Ee as default,G as disposable,J as encode,Q as enumeration,V as errno,X as extension,Y as free,Z as in,ee as inout,re as introspect,oe as load,ae as node,te as offsetof,se as opaque,ne as os,ie as out,fe as pack,de as pointer,le as proto,ce as register,pe as reset,ue as resolve,me as sizeof,_e as stats,he as struct,ve as type,we as types,ye as union,be as unregister,ke as version,ge as view};
|
|
@@ -208,7 +208,7 @@ var init_abi = __esm({
|
|
|
208
208
|
var package_default;
|
|
209
209
|
var init_package = __esm({
|
|
210
210
|
"package.json"() {
|
|
211
|
-
package_default = { name: "koffi", version: "3.1.
|
|
211
|
+
package_default = { name: "koffi", version: "3.1.6", cnoke: { api: "../../vendor/node-api-headers", output: "../../bin/Koffi/{{ toolchain }}", node: 16, napi: 8 } };
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
214
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var g=Object.defineProperty;var f=(e,a)=>g(e,"name",{value:a,configurable:!0});var h=f((e,a)=>(a=Symbol[e])?a:Symbol.for("Symbol."+e),"__knownSymbol"),v=f(e=>{throw TypeError(e)},"__typeError"),w=f((e,a,r)=>{if(a!=null){typeof a!="object"&&typeof a!="function"&&v("Object expected");var i,d;r&&(i=a[h("asyncDispose")]),i===void 0&&(i=a[h("dispose")],r&&(d=i)),typeof i!="function"&&v("Object not disposable"),d&&(i=f(function(){try{d.call(this)}catch(s){return Promise.reject(s)}},"dispose")),e.push([r,i,a])}else r&&e.push([r]);return a},"__using"),y=f((e,a,r)=>{var i=typeof SuppressedError=="function"?SuppressedError:function(t,n,l,c){return c=Error(l),c.name="SuppressedError",c.error=t,c.suppressed=n,c},d=f(t=>a=r?new i(t,a,"An error was suppressed during disposal"):(r=!0,t),"fail"),s=f(t=>{for(;t=e.pop();)try{var n=t[1]&&t[1].call(t[2]);if(t[0])return Promise.resolve(n).then(s,l=>(d(l),s()))}catch(l){d(l)}if(r)throw a},"next");return s()},"__callDispose");import p from"node:util";import E from"node:fs";import{createRequire as I}from"node:module";import m from"node:fs";function F(){let e=process.arch.toString();if(e=="riscv32"||e=="riscv64"){var a=[];try{const n=w(a,k(process.execPath,"r"));switch(b(n).e_flags&6){case 0:break;case 2:e+="f";break;case 4:e+="d";break;case 6:e+="q";break}}catch(n){var r=n,i=!0}finally{y(a,r,i)}}else if(e=="arm"){var d=[];try{const n=w(d,k(process.execPath,"r"));let l=b(n);if(l.e_flags&1024)e+="hf";else if(l.e_flags&512)e+="sf";else throw new Error("Unknown ARM floating-point ABI")}catch(n){var s=n,t=!0}finally{y(d,s,t)}}return e}f(F,"determineAbi");function b(e,a=0){let r=e.read(a,512);if(r.length<16)throw new Error("Truncated header");if(r[0]!=127||r[1]!=69||r[2]!=76||r[3]!=70)throw new Error("Invalid magic number");if(r[6]!=1)throw new Error("Invalid ELF version");if(r[5]!=1)throw new Error("Big-endian architectures are not supported");switch(r[4]){case 1:{if(r.length<68)throw new Error("Truncated ELF header");return{ei_class:32,e_machine:r.readUInt16LE(18),e_flags:r.readUInt32LE(36),e_phoff:r.readUInt32LE(28),e_phentsize:r.readUInt16LE(42),e_phnum:r.readUInt16LE(44)}}break;case 2:{if(r.length<120)throw new Error("Truncated ELF header");return{ei_class:64,e_machine:r.readUInt16LE(18),e_flags:r.readUInt32LE(48),e_phoff:r.readBigUInt64LE(32),e_phentsize:r.readUInt16LE(54),e_phnum:r.readUInt16LE(56)}}break;default:throw new Error("Invalid ELF class")}}f(b,"readElfHeader");function k(e,a){let r=m.openSync(e,a);return new K(r)}f(k,"openFile");var K=class{static{f(this,"FileHandle")}constructor(e){this.fd=e}close(){m.closeSync(this.fd)}[Symbol.dispose](){m.closeSync(this.fd)}read(e,a){let r=Buffer.allocUnsafe(a),i=m.readSync(this.fd,r,0,a,e);return r.subarray(0,i)}},_={name:"koffi",version:"3.1.
|
|
1
|
+
var g=Object.defineProperty;var f=(e,a)=>g(e,"name",{value:a,configurable:!0});var h=f((e,a)=>(a=Symbol[e])?a:Symbol.for("Symbol."+e),"__knownSymbol"),v=f(e=>{throw TypeError(e)},"__typeError"),w=f((e,a,r)=>{if(a!=null){typeof a!="object"&&typeof a!="function"&&v("Object expected");var i,d;r&&(i=a[h("asyncDispose")]),i===void 0&&(i=a[h("dispose")],r&&(d=i)),typeof i!="function"&&v("Object not disposable"),d&&(i=f(function(){try{d.call(this)}catch(s){return Promise.reject(s)}},"dispose")),e.push([r,i,a])}else r&&e.push([r]);return a},"__using"),y=f((e,a,r)=>{var i=typeof SuppressedError=="function"?SuppressedError:function(t,n,l,c){return c=Error(l),c.name="SuppressedError",c.error=t,c.suppressed=n,c},d=f(t=>a=r?new i(t,a,"An error was suppressed during disposal"):(r=!0,t),"fail"),s=f(t=>{for(;t=e.pop();)try{var n=t[1]&&t[1].call(t[2]);if(t[0])return Promise.resolve(n).then(s,l=>(d(l),s()))}catch(l){d(l)}if(r)throw a},"next");return s()},"__callDispose");import p from"node:util";import E from"node:fs";import{createRequire as I}from"node:module";import m from"node:fs";function F(){let e=process.arch.toString();if(e=="riscv32"||e=="riscv64"){var a=[];try{const n=w(a,k(process.execPath,"r"));switch(b(n).e_flags&6){case 0:break;case 2:e+="f";break;case 4:e+="d";break;case 6:e+="q";break}}catch(n){var r=n,i=!0}finally{y(a,r,i)}}else if(e=="arm"){var d=[];try{const n=w(d,k(process.execPath,"r"));let l=b(n);if(l.e_flags&1024)e+="hf";else if(l.e_flags&512)e+="sf";else throw new Error("Unknown ARM floating-point ABI")}catch(n){var s=n,t=!0}finally{y(d,s,t)}}return e}f(F,"determineAbi");function b(e,a=0){let r=e.read(a,512);if(r.length<16)throw new Error("Truncated header");if(r[0]!=127||r[1]!=69||r[2]!=76||r[3]!=70)throw new Error("Invalid magic number");if(r[6]!=1)throw new Error("Invalid ELF version");if(r[5]!=1)throw new Error("Big-endian architectures are not supported");switch(r[4]){case 1:{if(r.length<68)throw new Error("Truncated ELF header");return{ei_class:32,e_machine:r.readUInt16LE(18),e_flags:r.readUInt32LE(36),e_phoff:r.readUInt32LE(28),e_phentsize:r.readUInt16LE(42),e_phnum:r.readUInt16LE(44)}}break;case 2:{if(r.length<120)throw new Error("Truncated ELF header");return{ei_class:64,e_machine:r.readUInt16LE(18),e_flags:r.readUInt32LE(48),e_phoff:r.readBigUInt64LE(32),e_phentsize:r.readUInt16LE(54),e_phnum:r.readUInt16LE(56)}}break;default:throw new Error("Invalid ELF class")}}f(b,"readElfHeader");function k(e,a){let r=m.openSync(e,a);return new K(r)}f(k,"openFile");var K=class{static{f(this,"FileHandle")}constructor(e){this.fd=e}close(){m.closeSync(this.fd)}[Symbol.dispose](){m.closeSync(this.fd)}read(e,a){let r=Buffer.allocUnsafe(a),i=m.readSync(this.fd,r,0,a,e);return r.subarray(0,i)}},_={name:"koffi",version:"3.1.6",cnoke:{api:"../../vendor/node-api-headers",output:"../../bin/Koffi/{{ toolchain }}",node:16,napi:8}},L=I(import.meta.url);function x(){if(process.versions.napi==null||process.versions.napi<_.cnoke.napi){let i=parseInt(process.versions.node,10);throw new Error(`This engine is based on Node ${process.versions.node}, but ${_.name} does not support the Node ${i}.x branch (Node-API < ${_.cnoke.napi})`)}let e=F(),a=`${process.platform}-${process.arch}`,r=[`${process.platform}_${e}`];return process.platform=="linux"&&r.push(`musl_${e}`),[_.version,a,r]}f(x,"detectPlatform");function T(e,a,r){let s=[e+"/../../build/koffi"],t=null,n=null;if(process.resourcesPath!=null){let c=["/koffi","/koffi/build","/node_modules/koffi/build"];for(let u of c)s.push(process.resourcesPath+u)}let l=[`${import.meta.dirname}/../../../@koromix/koffi-${a}`,...r.flatMap(c=>s.map(u=>`${u}/${c}/koffi.node`))];for(let c of l)if(E.existsSync(c))try{t=L(c);break}catch(u){n??=u}if(t==null&&n!=null)throw n;return t}f(T,"loadDynamic");function U(e,a){if(e==null)throw new Error("Cannot find the native Koffi module; did you bundle it correctly?");if(e.version!=a)throw new Error("Mismatched native Koffi modules");let r=e.load,i=e.register,d=e.introspect??e.type;e.sizeof=s=>d(s).size,e.alignof=s=>d(s).alignment,e.offsetof=(s,t)=>{let n=d(s);if(n.primitive!="Record")throw new TypeError("The offsetof() function can only be used with record types");let l=n.members[t];if(l==null)throw new Error(`Record type ${n.name} does not have member '${t}'`);return l.offset},e.register=(...s)=>(s.length>=3&&typeof s[1]=="function"&&(process.emitWarning("Using koffi.register() with a custom this value was deprecated in Koffi 2.17, use function.bind() instead","DeprecationWarning","KOFFI009"),s[1]=s[1].bind(s[0]),s=s.slice(1)),i(...s)),e.load=(...s)=>{let t=r(...s);return t.cdecl=p.deprecate((...n)=>t.func("__cdecl",...n),"The koffi.cdecl() function was deprecated in Koffi 2.7, use koffi.func(...) instead","KOFFI003"),t.stdcall=p.deprecate((...n)=>t.func("__stdcall",...n),'The koffi.stdcall() function was deprecated in Koffi 2.7, use koffi.func("__stdcall", ...) instead',"KOFFI004"),t.fastcall=p.deprecate((...n)=>t.func("__fastcall",...n),'The koffi.fastcall() function was deprecated in Koffi 2.7, use koffi.func("__fastcall", ...) instead',"KOFFI005"),t.thiscall=p.deprecate((...n)=>t.func("__thiscall",...n),'The koffi.thiscall() function was deprecated in Koffi 2.7, use koffi.func("__thiscall", ...) instead',"KOFFI006"),t},e.introspect==null?(e.resolve=p.deprecate(e.type,"The koffi.resolve() function was deprecated in Koffi 3.0, use koffi.type() instead","KOFFI007"),e.introspect=p.deprecate(e.type,"The koffi.introspect() function was deprecated in Koffi 3.0, use koffi.type() instead","KOFFI008")):e.resolve=e.type}f(U,"wrapNative");var[$,S,O]=x(),o=T(import.meta.dirname,S,O);U(o,$);var j=o.LibraryHandle,P=o.TypeObject,z=o.Union,q=o.address,A=o.alias,H=o.alignof,B=o.alloc,D=o.array,N=o.as,R=o.call,M=o.config,W=o.decode,C=o.disposable,G=o.encode,J=o.enumeration,Q=o.errno,V=o.extension,X=o.free,Y=o.in,Z=o.inout,ee=o.introspect,re=o.load,oe=o.node,ae=o.offsetof,te=o.opaque,se=o.os,ne=o.out,ie=o.pack,fe=o.pointer,de=o.proto,le=o.register,ce=o.reset,pe=o.resolve,ue=o.sizeof,me=o.stats,_e=o.struct,he=o.type,ve=o.types,we=o.union,ye=o.unregister,be=o.version,ke=o.view,ge=o;export{j as LibraryHandle,P as TypeObject,z as Union,q as address,A as alias,H as alignof,B as alloc,D as array,N as as,R as call,M as config,W as decode,ge as default,C as disposable,G as encode,J as enumeration,Q as errno,V as extension,X as free,Y as in,Z as inout,ee as introspect,re as load,oe as node,ae as offsetof,te as opaque,se as os,ne as out,ie as pack,fe as pointer,de as proto,le as register,ce as reset,pe as resolve,ue as sizeof,me as stats,_e as struct,he as type,ve as types,we as union,ye as unregister,be as version,ke as view};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* negotiator
|
|
3
|
+
* Copyright(c) 2026 Blake Embrey
|
|
4
|
+
* MIT Licensed
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
'use strict';
|
|
8
|
+
|
|
9
|
+
var contentType = require('content-type');
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Module exports.
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
module.exports = parseAccept;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Parse an Accept-style header.
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
function parseAccept(header) {
|
|
24
|
+
var values = [];
|
|
25
|
+
var index = 0;
|
|
26
|
+
|
|
27
|
+
while (index < header.length) {
|
|
28
|
+
var start = skipOptionalWhitespace(header, index);
|
|
29
|
+
var parsed = contentType.parse(header, { comma: true, start: start });
|
|
30
|
+
|
|
31
|
+
// `content-type` normalizes the type, but accept methods return original casing.
|
|
32
|
+
parsed.type = header.slice(start, start + parsed.type.length);
|
|
33
|
+
values.push(parsed);
|
|
34
|
+
|
|
35
|
+
index = parsed.index + 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return values;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Skip optional whitespace.
|
|
43
|
+
* @private
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
function skipOptionalWhitespace(header, index) {
|
|
47
|
+
var cursor = index;
|
|
48
|
+
|
|
49
|
+
while (header.charCodeAt(cursor) === 0x20 || header.charCodeAt(cursor) === 0x09) {
|
|
50
|
+
cursor++;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return cursor;
|
|
54
|
+
}
|