@qqbrowser/qbot-dsh 0.0.15 → 0.1.1
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/config/agent-presets/code/agent.cordis.yml +2 -2
- package/config/agent-presets/standard/agent.cordis.yml +2 -2
- package/cordis.patch.yml +50 -0
- package/lib/args-w1okyL78.js +9 -0
- package/lib/bin.js +2 -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/lib/index.js +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/lib/client.js +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/lib/client.js +4 -4
- 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/lib/index.js +22 -22
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +2 -2
- 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/lib/typert.host.js +5 -2
- 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/lib/client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +10 -4
- 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/lib/typert.host.js +5 -2
- 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/lib/index.js +7 -7
- package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/rpc.schema.js +1 -1
- package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api-proxy.js +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/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/assembler.js +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +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/lib/index.js +3 -2
- 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/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/lib/index.js +2 -2
- 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/lib/index.js +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/lib/index.js +7 -10
- 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 +9 -30
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +8 -8
- 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/lib/index.js +2 -2
- 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/lib/index.js +15 -15
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/code-mode.js +8 -8
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +3 -3
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/ts-types.js +4 -4
- 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/dist/assets/{index-BQQQ5Qt-.js → index-fPGOmJjK.js} +25 -25
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +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/@deepseek-ai/node-addon-landlock-run/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/@tanstack/react-virtual/package.json +1 -1
- package/node_modules/@tanstack/virtual-core/dist/cjs/index.cjs +7 -1
- package/node_modules/@tanstack/virtual-core/dist/cjs/utils.cjs +14 -4
- package/node_modules/@tanstack/virtual-core/dist/esm/index.js +1 -1
- package/node_modules/@tanstack/virtual-core/dist/esm/utils.js +2 -2
- package/node_modules/@tanstack/virtual-core/package.json +1 -1
- package/node_modules/hono/dist/cjs/client/utils.js +1 -1
- package/node_modules/hono/dist/cjs/context.js +4 -0
- package/node_modules/hono/dist/cjs/middleware/cors/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/csrf/index.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/etag/digest.js +1 -1
- package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -2
- package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +3 -1
- package/node_modules/hono/dist/cjs/router/linear-router/router.js +7 -2
- package/node_modules/hono/dist/cjs/router/pattern-router/router.js +3 -9
- package/node_modules/hono/dist/cjs/router/trie-router/node.js +43 -67
- package/node_modules/hono/dist/cjs/router/trie-router/router.js +3 -11
- package/node_modules/hono/dist/cjs/utils/ipaddr.js +5 -3
- package/node_modules/hono/dist/client/utils.js +1 -1
- package/node_modules/hono/dist/middleware/cors/index.js +1 -1
- package/node_modules/hono/dist/middleware/csrf/index.js +1 -1
- package/node_modules/hono/dist/middleware/etag/digest.js +1 -1
- package/node_modules/hono/dist/middleware/etag/index.js +1 -1
- package/node_modules/hono/dist/middleware/pretty-json/index.js +1 -1
- package/node_modules/hono/dist/router/linear-router/router.js +1 -1
- package/node_modules/hono/dist/router/pattern-router/router.js +1 -1
- package/node_modules/hono/dist/router/trie-router/node.js +1 -1
- package/node_modules/hono/dist/router/trie-router/router.js +1 -1
- package/node_modules/hono/dist/utils/ipaddr.js +1 -1
- package/node_modules/hono/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/node-pty/lib/conpty_console_list_agent.js +11 -2
- package/node_modules/node-pty/lib/index.js +6 -6
- package/node_modules/node-pty/lib/shared/conout.js +2 -3
- package/node_modules/node-pty/lib/terminal.js +2 -2
- package/node_modules/node-pty/lib/unixTerminal.js +11 -6
- package/node_modules/node-pty/lib/utils.js +6 -7
- package/node_modules/node-pty/lib/windowsConoutConnection.js +24 -18
- package/node_modules/node-pty/lib/windowsPtyAgent.js +125 -101
- package/node_modules/node-pty/lib/windowsTerminal.js +14 -4
- package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +3 -3
- package/node_modules/node-pty/package.json +1 -1
- package/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
- package/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
- package/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
- package/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
- package/node_modules/node-pty/scripts/post-install.js +1 -5
- package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-arm64/OpenConsole.exe +0 -0
- package/node_modules/node-pty/third_party/conpty/{1.23.251008001 → 1.25.260303002}/win10-arm64/conpty.dll +0 -0
- package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/OpenConsole.exe +0 -0
- package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/conpty.dll +0 -0
- 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/node-pty/deps/winpty/.drone.yml +0 -15
- package/node_modules/node-pty/deps/winpty/LICENSE +0 -21
- package/node_modules/node-pty/deps/winpty/configure +0 -167
- package/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
- package/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
- package/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
- package/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
- package/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
- package/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
- package/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
- package/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
- package/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
- package/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
- package/node_modules/node-pty/lib/terminal.test.js +0 -139
- package/node_modules/node-pty/lib/testUtils.test.js +0 -28
- package/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
- package/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
- package/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
- package/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
- package/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
- package/node_modules/node-pty/scripts/gen-compile-commands.js +0 -8
- package/node_modules/node-pty/scripts/increment-version.js +0 -54
- package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
- package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
- package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
- 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
|
@@ -5,63 +5,49 @@
|
|
|
5
5
|
* Copyright (c) 2018, Microsoft Corporation (MIT License).
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.WindowsPtyAgent = void 0;
|
|
9
|
+
exports.argsToCommandLine = argsToCommandLine;
|
|
9
10
|
var fs = require("fs");
|
|
10
|
-
var os = require("os");
|
|
11
11
|
var path = require("path");
|
|
12
12
|
var child_process_1 = require("child_process");
|
|
13
13
|
var net_1 = require("net");
|
|
14
14
|
var windowsConoutConnection_1 = require("./windowsConoutConnection");
|
|
15
|
+
var eventEmitter2_1 = require("./eventEmitter2");
|
|
15
16
|
var utils_1 = require("./utils");
|
|
16
17
|
var conptyNative;
|
|
17
|
-
var winptyNative;
|
|
18
18
|
/**
|
|
19
19
|
* The amount of time to wait for additional data after the conpty shell process has exited before
|
|
20
20
|
* shutting down the socket. The timer will be reset if a new data event comes in after the timer
|
|
21
21
|
* has started.
|
|
22
22
|
*/
|
|
23
23
|
var FLUSH_DATA_INTERVAL = 1000;
|
|
24
|
+
var CONNECTION_TIMEOUT = 5000;
|
|
25
|
+
var defaultWindowsPtyAgentOptions = {
|
|
26
|
+
connectionTimeout: CONNECTION_TIMEOUT,
|
|
27
|
+
conoutConnectionFactory: function (conoutPipeName, useConptyDll) { return new windowsConoutConnection_1.ConoutConnection(conoutPipeName, useConptyDll); }
|
|
28
|
+
};
|
|
24
29
|
/**
|
|
25
|
-
* This agent sits between the WindowsTerminal class and provides
|
|
26
|
-
* and winpty.
|
|
30
|
+
* This agent sits between the WindowsTerminal class and provides an interface for conpty.
|
|
27
31
|
*/
|
|
28
32
|
var WindowsPtyAgent = /** @class */ (function () {
|
|
29
|
-
function WindowsPtyAgent(file, args, env, cwd, cols, rows, debug,
|
|
30
|
-
var _this = this;
|
|
33
|
+
function WindowsPtyAgent(file, args, env, cwd, cols, rows, debug, _useConptyDll, conptyInheritCursor, options) {
|
|
31
34
|
if (_useConptyDll === void 0) { _useConptyDll = false; }
|
|
32
35
|
if (conptyInheritCursor === void 0) { conptyInheritCursor = false; }
|
|
33
|
-
|
|
36
|
+
if (options === void 0) { options = defaultWindowsPtyAgentOptions; }
|
|
37
|
+
var _this = this;
|
|
34
38
|
this._useConptyDll = _useConptyDll;
|
|
35
|
-
this._pid = 0;
|
|
36
39
|
this._innerPid = 0;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
if (this._useConpty) {
|
|
41
|
-
if (!conptyNative) {
|
|
42
|
-
conptyNative = utils_1.loadNativeModule('conpty').module;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
if (!winptyNative) {
|
|
47
|
-
winptyNative = utils_1.loadNativeModule('pty').module;
|
|
48
|
-
}
|
|
40
|
+
this._onError = new eventEmitter2_1.EventEmitter2();
|
|
41
|
+
if (!conptyNative) {
|
|
42
|
+
conptyNative = (0, utils_1.loadNativeModule)('conpty').module;
|
|
49
43
|
}
|
|
50
|
-
this._ptyNative =
|
|
44
|
+
this._ptyNative = conptyNative;
|
|
51
45
|
// Sanitize input variable.
|
|
52
46
|
cwd = path.resolve(cwd);
|
|
53
47
|
// Compose command line
|
|
54
48
|
var commandLine = argsToCommandLine(file, args);
|
|
55
49
|
// Open pty session.
|
|
56
|
-
var term;
|
|
57
|
-
if (this._useConpty) {
|
|
58
|
-
term = this._ptyNative.startProcess(file, cols, rows, debug, this._generatePipeName(), conptyInheritCursor, this._useConptyDll);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
term = this._ptyNative.startProcess(file, commandLine, env, cwd, cols, rows, debug);
|
|
62
|
-
this._pid = term.pid;
|
|
63
|
-
this._innerPid = term.innerPid;
|
|
64
|
-
}
|
|
50
|
+
var term = conptyNative.startProcess(file, cols, rows, debug, this._generatePipeName(), conptyInheritCursor, this._useConptyDll);
|
|
65
51
|
// Not available on windows.
|
|
66
52
|
this._fd = term.fd;
|
|
67
53
|
// Generated incremental number that has no real purpose besides using it
|
|
@@ -71,10 +57,29 @@ var WindowsPtyAgent = /** @class */ (function () {
|
|
|
71
57
|
this._outSocket = new net_1.Socket();
|
|
72
58
|
this._outSocket.setEncoding('utf8');
|
|
73
59
|
// The conout socket must be ready out on another thread to avoid deadlocks
|
|
74
|
-
|
|
60
|
+
// We must wait for the worker to connect before calling conptyNative.connect()
|
|
61
|
+
// to avoid blocking the Node.js event loop in ConnectNamedPipe.
|
|
62
|
+
// See https://github.com/microsoft/node-pty/issues/763
|
|
63
|
+
this._conoutSocketWorker = options.conoutConnectionFactory(term.conout, this._useConptyDll);
|
|
64
|
+
// Store pending connection info - we'll complete the connection when worker is ready
|
|
65
|
+
this._pendingPtyInfo = { pty: this._pty, commandLine: commandLine, cwd: cwd, env: env };
|
|
66
|
+
// Never call connect() before the worker is ready, as ConnectNamedPipe
|
|
67
|
+
// would block the Node.js event loop while waiting for the output client.
|
|
68
|
+
this._connectionTimeout = setTimeout(function () {
|
|
69
|
+
_this._failPtyConnection(new Error('Timed out waiting for ConPTY output worker'));
|
|
70
|
+
}, options.connectionTimeout);
|
|
75
71
|
this._conoutSocketWorker.onReady(function () {
|
|
72
|
+
if (!_this._pendingPtyInfo) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
_this._clearConnectionTimeout();
|
|
76
76
|
_this._conoutSocketWorker.connectSocket(_this._outSocket);
|
|
77
|
+
// Now that the worker has connected to the output pipe, we can safely call
|
|
78
|
+
// conptyNative.connect() which calls ConnectNamedPipe - it won't block because
|
|
79
|
+
// the client (worker) is already connected
|
|
80
|
+
_this._completePtyConnection();
|
|
77
81
|
});
|
|
82
|
+
this._conoutSocketWorker.onError(function (error) { return _this._failPtyConnection(error); });
|
|
78
83
|
this._outSocket.on('connect', function () {
|
|
79
84
|
_this._outSocket.emit('ready_datapipe');
|
|
80
85
|
});
|
|
@@ -85,11 +90,12 @@ var WindowsPtyAgent = /** @class */ (function () {
|
|
|
85
90
|
writable: true
|
|
86
91
|
});
|
|
87
92
|
this._inSocket.setEncoding('utf8');
|
|
88
|
-
if (this._useConpty) {
|
|
89
|
-
var connect = this._ptyNative.connect(this._pty, commandLine, cwd, env, this._useConptyDll, function (c) { return _this._$onProcessExit(c); });
|
|
90
|
-
this._innerPid = connect.pid;
|
|
91
|
-
}
|
|
92
93
|
}
|
|
94
|
+
Object.defineProperty(WindowsPtyAgent.prototype, "onError", {
|
|
95
|
+
get: function () { return this._onError.event; },
|
|
96
|
+
enumerable: false,
|
|
97
|
+
configurable: true
|
|
98
|
+
});
|
|
93
99
|
Object.defineProperty(WindowsPtyAgent.prototype, "inSocket", {
|
|
94
100
|
get: function () { return this._inSocket; },
|
|
95
101
|
enumerable: false,
|
|
@@ -115,73 +121,104 @@ var WindowsPtyAgent = /** @class */ (function () {
|
|
|
115
121
|
enumerable: false,
|
|
116
122
|
configurable: true
|
|
117
123
|
});
|
|
118
|
-
WindowsPtyAgent.prototype.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
WindowsPtyAgent.prototype._completePtyConnection = function () {
|
|
125
|
+
var _this = this;
|
|
126
|
+
var _a;
|
|
127
|
+
if (!this._pendingPtyInfo) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
this._clearConnectionTimeout();
|
|
131
|
+
var _b = this._pendingPtyInfo, pty = _b.pty, commandLine = _b.commandLine, cwd = _b.cwd, env = _b.env;
|
|
132
|
+
this._pendingPtyInfo = undefined;
|
|
133
|
+
try {
|
|
134
|
+
var connect = conptyNative.connect(pty, commandLine, cwd, env, this._useConptyDll, function (c) { return _this._$onProcessExit(c); });
|
|
135
|
+
this._innerPid = connect.pid;
|
|
136
|
+
}
|
|
137
|
+
catch (err) {
|
|
138
|
+
// connect() runs from the conout worker's onReady callback, so a throw
|
|
139
|
+
// here would otherwise surface as an
|
|
140
|
+
// uncaughtException with no way for the consumer to observe it.
|
|
141
|
+
var code = (_a = /error code: (\d+)/.exec(err.message)) === null || _a === void 0 ? void 0 : _a[1];
|
|
142
|
+
this._exitCode = code ? parseInt(code, 10) : -1;
|
|
143
|
+
try {
|
|
144
|
+
this._ptyNative.kill(this._pty, this._useConptyDll);
|
|
122
145
|
}
|
|
123
|
-
|
|
146
|
+
catch ( /* already gone */_c) { /* already gone */ }
|
|
147
|
+
this._conoutSocketWorker.dispose();
|
|
148
|
+
this._inSocket.destroy();
|
|
149
|
+
this._outSocket.destroy();
|
|
150
|
+
this._onError.fire(err);
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
WindowsPtyAgent.prototype._failPtyConnection = function (error) {
|
|
154
|
+
if (!this._pendingPtyInfo) {
|
|
124
155
|
return;
|
|
125
156
|
}
|
|
126
|
-
this.
|
|
157
|
+
this._clearConnectionTimeout();
|
|
158
|
+
this._pendingPtyInfo = undefined;
|
|
159
|
+
this._exitCode = -1;
|
|
160
|
+
try {
|
|
161
|
+
this._ptyNative.kill(this._pty, this._useConptyDll);
|
|
162
|
+
}
|
|
163
|
+
catch ( /* already gone */_a) { /* already gone */ }
|
|
164
|
+
this._conoutSocketWorker.dispose();
|
|
165
|
+
this._inSocket.destroy();
|
|
166
|
+
this._outSocket.destroy();
|
|
167
|
+
this._onError.fire(error);
|
|
127
168
|
};
|
|
128
|
-
WindowsPtyAgent.prototype.
|
|
129
|
-
if (this.
|
|
130
|
-
|
|
169
|
+
WindowsPtyAgent.prototype._clearConnectionTimeout = function () {
|
|
170
|
+
if (this._connectionTimeout) {
|
|
171
|
+
clearTimeout(this._connectionTimeout);
|
|
172
|
+
this._connectionTimeout = undefined;
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
WindowsPtyAgent.prototype.resize = function (cols, rows) {
|
|
176
|
+
if (this._exitCode !== undefined) {
|
|
177
|
+
throw new Error('Cannot resize a pty that has already exited');
|
|
131
178
|
}
|
|
179
|
+
this._ptyNative.resize(this._pty, cols, rows, this._useConptyDll);
|
|
180
|
+
};
|
|
181
|
+
WindowsPtyAgent.prototype.clear = function () {
|
|
182
|
+
this._ptyNative.clear(this._pty, this._useConptyDll);
|
|
132
183
|
};
|
|
133
184
|
WindowsPtyAgent.prototype.kill = function () {
|
|
134
185
|
var _this = this;
|
|
186
|
+
// Prevent deferred connection from completing after kill
|
|
187
|
+
this._clearConnectionTimeout();
|
|
188
|
+
this._pendingPtyInfo = undefined;
|
|
135
189
|
// Tell the agent to kill the pty, this releases handles to the process
|
|
136
|
-
if (this.
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
this._ptyNative.kill(this._pty, this._useConptyDll);
|
|
151
|
-
this._conoutSocketWorker.dispose();
|
|
152
|
-
}
|
|
153
|
-
else {
|
|
154
|
-
// Close the input write handle to signal the end of session.
|
|
155
|
-
this._inSocket.destroy();
|
|
156
|
-
this._ptyNative.kill(this._pty, this._useConptyDll);
|
|
157
|
-
this._outSocket.on('data', function () {
|
|
158
|
-
_this._conoutSocketWorker.dispose();
|
|
190
|
+
if (!this._useConptyDll) {
|
|
191
|
+
this._inSocket.readable = false;
|
|
192
|
+
this._outSocket.readable = false;
|
|
193
|
+
this._getConsoleProcessList().then(function (consoleProcessList) {
|
|
194
|
+
consoleProcessList.forEach(function (pid) {
|
|
195
|
+
try {
|
|
196
|
+
process.kill(pid);
|
|
197
|
+
}
|
|
198
|
+
catch (e) {
|
|
199
|
+
// Ignore if process cannot be found (kill ESRCH error)
|
|
200
|
+
}
|
|
159
201
|
});
|
|
160
|
-
}
|
|
202
|
+
});
|
|
203
|
+
this._ptyNative.kill(this._pty, this._useConptyDll);
|
|
204
|
+
this._conoutSocketWorker.dispose();
|
|
161
205
|
}
|
|
162
206
|
else {
|
|
163
|
-
//
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
// Microsoft/vscode#26807).
|
|
169
|
-
var processList = this._ptyNative.getProcessList(this._pid);
|
|
170
|
-
this._ptyNative.kill(this._pid, this._innerPid);
|
|
171
|
-
processList.forEach(function (pid) {
|
|
172
|
-
try {
|
|
173
|
-
process.kill(pid);
|
|
174
|
-
}
|
|
175
|
-
catch (e) {
|
|
176
|
-
// Ignore if process cannot be found (kill ESRCH error)
|
|
177
|
-
}
|
|
207
|
+
// Close the input write handle to signal the end of session.
|
|
208
|
+
this._inSocket.destroy();
|
|
209
|
+
this._ptyNative.kill(this._pty, this._useConptyDll);
|
|
210
|
+
this._outSocket.on('data', function () {
|
|
211
|
+
_this._conoutSocketWorker.dispose();
|
|
178
212
|
});
|
|
179
213
|
}
|
|
180
214
|
};
|
|
181
215
|
WindowsPtyAgent.prototype._getConsoleProcessList = function () {
|
|
182
216
|
var _this = this;
|
|
217
|
+
if (this._innerPid <= 0) {
|
|
218
|
+
return Promise.resolve([]);
|
|
219
|
+
}
|
|
183
220
|
return new Promise(function (resolve) {
|
|
184
|
-
var agent = child_process_1.fork(path.join(__dirname, 'conpty_console_list_agent'), [_this._innerPid.toString()]);
|
|
221
|
+
var agent = (0, child_process_1.fork)(path.join(__dirname, 'conpty_console_list_agent'), [_this._innerPid.toString()]);
|
|
185
222
|
agent.on('message', function (message) {
|
|
186
223
|
clearTimeout(timeout);
|
|
187
224
|
resolve(message.consoleProcessList);
|
|
@@ -195,25 +232,13 @@ var WindowsPtyAgent = /** @class */ (function () {
|
|
|
195
232
|
};
|
|
196
233
|
Object.defineProperty(WindowsPtyAgent.prototype, "exitCode", {
|
|
197
234
|
get: function () {
|
|
198
|
-
|
|
199
|
-
return this._exitCode;
|
|
200
|
-
}
|
|
201
|
-
var winptyExitCode = this._ptyNative.getExitCode(this._innerPid);
|
|
202
|
-
return winptyExitCode === -1 ? undefined : winptyExitCode;
|
|
235
|
+
return this._exitCode;
|
|
203
236
|
},
|
|
204
237
|
enumerable: false,
|
|
205
238
|
configurable: true
|
|
206
239
|
});
|
|
207
|
-
WindowsPtyAgent.prototype._getWindowsBuildNumber = function () {
|
|
208
|
-
var osVersion = (/(\d+)\.(\d+)\.(\d+)/g).exec(os.release());
|
|
209
|
-
var buildNumber = 0;
|
|
210
|
-
if (osVersion && osVersion.length === 4) {
|
|
211
|
-
buildNumber = parseInt(osVersion[3]);
|
|
212
|
-
}
|
|
213
|
-
return buildNumber;
|
|
214
|
-
};
|
|
215
240
|
WindowsPtyAgent.prototype._generatePipeName = function () {
|
|
216
|
-
return "conpty-"
|
|
241
|
+
return "conpty-".concat(Math.random() * 10000000);
|
|
217
242
|
};
|
|
218
243
|
/**
|
|
219
244
|
* Triggered from the native side when a contpy process exits.
|
|
@@ -255,7 +280,7 @@ function argsToCommandLine(file, args) {
|
|
|
255
280
|
if (args.length === 0) {
|
|
256
281
|
return file;
|
|
257
282
|
}
|
|
258
|
-
return argsToCommandLine(file, [])
|
|
283
|
+
return "".concat(argsToCommandLine(file, []), " ").concat(args);
|
|
259
284
|
}
|
|
260
285
|
var argv = [file];
|
|
261
286
|
Array.prototype.push.apply(argv, args);
|
|
@@ -303,7 +328,6 @@ function argsToCommandLine(file, args) {
|
|
|
303
328
|
}
|
|
304
329
|
return result;
|
|
305
330
|
}
|
|
306
|
-
exports.argsToCommandLine = argsToCommandLine;
|
|
307
331
|
function isCommandLine(args) {
|
|
308
332
|
return typeof args === 'string';
|
|
309
333
|
}
|
|
@@ -8,10 +8,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
8
8
|
var extendStatics = function (d, b) {
|
|
9
9
|
extendStatics = Object.setPrototypeOf ||
|
|
10
10
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
11
|
-
function (d, b) { for (var p in b) if (
|
|
11
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
12
12
|
return extendStatics(d, b);
|
|
13
13
|
};
|
|
14
14
|
return function (d, b) {
|
|
15
|
+
if (typeof b !== "function" && b !== null)
|
|
16
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
17
|
extendStatics(d, b);
|
|
16
18
|
function __() { this.constructor = d; }
|
|
17
19
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -37,7 +39,7 @@ var WindowsTerminal = /** @class */ (function (_super) {
|
|
|
37
39
|
if (opt.encoding) {
|
|
38
40
|
console.warn('Setting encoding on Windows is not supported');
|
|
39
41
|
}
|
|
40
|
-
var env = utils_1.assign({}, opt.env);
|
|
42
|
+
var env = (0, utils_1.assign)({}, opt.env);
|
|
41
43
|
_this._cols = opt.cols || terminal_1.DEFAULT_COLS;
|
|
42
44
|
_this._rows = opt.rows || terminal_1.DEFAULT_ROWS;
|
|
43
45
|
var cwd = opt.cwd || process.cwd();
|
|
@@ -48,8 +50,14 @@ var WindowsTerminal = /** @class */ (function (_super) {
|
|
|
48
50
|
// Functions that need to run after `ready` event is emitted.
|
|
49
51
|
_this._deferreds = [];
|
|
50
52
|
// Create new termal.
|
|
51
|
-
_this._agent = new windowsPtyAgent_1.WindowsPtyAgent(file, args, parsedEnv, cwd, _this._cols, _this._rows, false, opt.
|
|
53
|
+
_this._agent = new windowsPtyAgent_1.WindowsPtyAgent(file, args, parsedEnv, cwd, _this._cols, _this._rows, false, opt.useConptyDll, opt.conptyInheritCursor);
|
|
52
54
|
_this._socket = _this._agent.outSocket;
|
|
55
|
+
// The socket 'close' handler that drives 'exit' is only attached after
|
|
56
|
+
// ready_datapipe, which never fires when connect() fails.
|
|
57
|
+
_this._agent.onError(function () {
|
|
58
|
+
_this._close();
|
|
59
|
+
_this.emit('exit', _this._agent.exitCode);
|
|
60
|
+
});
|
|
53
61
|
// Not available until `ready` event emitted.
|
|
54
62
|
_this._pid = _this._agent.innerPid;
|
|
55
63
|
_this._fd = _this._agent.fd;
|
|
@@ -57,6 +65,8 @@ var WindowsTerminal = /** @class */ (function (_super) {
|
|
|
57
65
|
// The forked windows terminal is not available until `ready` event is
|
|
58
66
|
// emitted.
|
|
59
67
|
_this._socket.on('ready_datapipe', function () {
|
|
68
|
+
// Update pid now that the agent has connected
|
|
69
|
+
_this._pid = _this._agent.innerPid;
|
|
60
70
|
// Run deferreds and set ready state once the first data event is received.
|
|
61
71
|
_this._socket.once('data', function () {
|
|
62
72
|
// Wait until the first data event is fired then we can run deferreds.
|
|
@@ -121,7 +131,7 @@ var WindowsTerminal = /** @class */ (function (_super) {
|
|
|
121
131
|
/**
|
|
122
132
|
* TTY
|
|
123
133
|
*/
|
|
124
|
-
WindowsTerminal.prototype.resize = function (cols, rows) {
|
|
134
|
+
WindowsTerminal.prototype.resize = function (cols, rows, pixelSize) {
|
|
125
135
|
var _this = this;
|
|
126
136
|
if (cols <= 0 || rows <= 0 || isNaN(cols) || isNaN(rows) || cols === Infinity || rows === Infinity) {
|
|
127
137
|
throw new Error('resizing must be done using positive cols and rows');
|
|
@@ -10,13 +10,13 @@ var conoutPipeName = worker_threads_1.workerData.conoutPipeName;
|
|
|
10
10
|
var conoutSocket = new net_1.Socket();
|
|
11
11
|
conoutSocket.setEncoding('utf8');
|
|
12
12
|
conoutSocket.connect(conoutPipeName, function () {
|
|
13
|
-
var server = net_1.createServer(function (workerSocket) {
|
|
13
|
+
var server = (0, net_1.createServer)(function (workerSocket) {
|
|
14
14
|
conoutSocket.pipe(workerSocket);
|
|
15
15
|
});
|
|
16
|
-
server.listen(conout_1.getWorkerPipeName(conoutPipeName));
|
|
16
|
+
server.listen((0, conout_1.getWorkerPipeName)(conoutPipeName));
|
|
17
17
|
if (!worker_threads_1.parentPort) {
|
|
18
18
|
throw new Error('worker_threads parentPort is null');
|
|
19
19
|
}
|
|
20
|
-
worker_threads_1.parentPort.postMessage(1 /* READY */);
|
|
20
|
+
worker_threads_1.parentPort.postMessage(1 /* ConoutWorkerMessage.READY */);
|
|
21
21
|
});
|
|
22
22
|
//# sourceMappingURL=conoutSocketWorker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"node-pty","version":"1.
|
|
1
|
+
{"name":"node-pty","version":"1.2.0-beta.15","license":"MIT","main":"./lib/index.js","dependencies":{"node-addon-api":"^7.1.0"}}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -12,11 +12,7 @@ const BUILD_FILES = [
|
|
|
12
12
|
path.join(RELEASE_DIR, 'conpty_console_list.pdb'),
|
|
13
13
|
path.join(RELEASE_DIR, 'pty.node'),
|
|
14
14
|
path.join(RELEASE_DIR, 'pty.pdb'),
|
|
15
|
-
path.join(RELEASE_DIR, 'spawn-helper')
|
|
16
|
-
path.join(RELEASE_DIR, 'winpty-agent.exe'),
|
|
17
|
-
path.join(RELEASE_DIR, 'winpty-agent.pdb'),
|
|
18
|
-
path.join(RELEASE_DIR, 'winpty.dll'),
|
|
19
|
-
path.join(RELEASE_DIR, 'winpty.pdb')
|
|
15
|
+
path.join(RELEASE_DIR, 'spawn-helper')
|
|
20
16
|
];
|
|
21
17
|
const CONPTY_DIR = path.join(__dirname, '../third_party/conpty');
|
|
22
18
|
const CONPTY_SUPPORTED_ARCH = ['x64', 'arm64'];
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var u=Object.defineProperty;var h=(o,t)=>u(o,"name",{value:t,configurable:!0});import{Settings as n}from"../system/settings/index.mjs";import{Arguments as c}from"../system/arguments/index.mjs";import{Base as l}from"../type/index.mjs";import{Errors as a,Clean as C,Convert as d,Create as p,Default as R,Decode as f,Encode as m,HasCodec as x,Parser as y,ParseError as T}from"../value/index.mjs";import{Build as E,BuildResult as b,EvaluateResult as k}from"../schema/index.mjs";export class Validator extends l{static{h(this,"Validator")}constructor(...t){super();const e=c.Match(t,{3:(s,r,i)=>[s,r,i],2:(s,r)=>[s,r]});if(e.length===3&&e[1]instanceof b&&e[2]instanceof k){const[s,r,i]=e;this.hasCodec=s,this.buildResult=r,this.evaluateResult=i}else{const[s,r]=e;this.hasCodec=x(s,r),this.buildResult=E(s,r),this.evaluateResult=this.buildResult.Evaluate()}}IsAccelerated(){return this.evaluateResult.IsAccelerated()}Context(){return this.buildResult.Context()}Type(){return this.buildResult.Schema()}Code(){return this.evaluateResult.Code()}Check(t){return this.evaluateResult.Check(t)}Parse(t){if(this.Check(t))return t;if(n.Get().correctiveParse)return y(this.Context(),this.Type(),t);throw new T(t,this.Errors(t))}Errors(t){return this.IsAccelerated()&&this.Check(t)?[]:a(this.Context(),this.Type(),t)}Clean(t){return C(this.Context(),this.Type(),t)}Convert(t){return d(this.Context(),this.Type(),t)}Create(){return p(this.Context(),this.Type())}Default(t){return R(this.Context(),this.Type(),t)}Decode(t){return this.hasCodec?f(this.Context(),this.Type(),t):this.Parse(t)}Encode(t){return this.hasCodec?m(this.Context(),this.Type(),t):this.Parse(t)}Clone(){return new Validator(this.hasCodec,this.buildResult,this.evaluateResult)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var g=Object.defineProperty;var t=(n,e)=>g(n,"name",{value:e,configurable:!0});import
|
|
1
|
+
var g=Object.defineProperty;var t=(n,e)=>g(n,"name",{value:e,configurable:!0});import*as l from"./_puny.mjs";function I(n){return new RegExp("\\p{Mn}","u").test(String.fromCodePoint(n))}t(I,"IsNonspacingMark");function h(n){return new RegExp("\\p{Mc}","u").test(String.fromCodePoint(n))}t(h,"IsSpacingCombiningMark");function p(n){return new RegExp("\\p{Me}","u").test(String.fromCodePoint(n))}t(p,"IsEnclosingMark");function C(n){return I(n)||h(n)||p(n)}t(C,"IsCombiningMark");const S=new Set([1600,2042,12334,12335,12337,12338,12339,12340,12341,12347]),m=new Set([2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,6980,7082,7083,43456,69702,69759,69817,69939,69940,70080,70197,70477,70722,70850,71103,71231,71350,72767,73028,73029]);function A(n){return new RegExp("\\p{Script=Greek}","u").test(String.fromCodePoint(n))}t(A,"IsGreek");function k(n){return new RegExp("\\p{Script=Hebrew}","u").test(String.fromCodePoint(n))}t(k,"IsHebrew");function P(n){return new RegExp("\\p{Script=Hiragana}","u").test(String.fromCodePoint(n))}t(P,"IsHiragana");function L(n){return new RegExp("\\p{Script=Katakana}","u").test(String.fromCodePoint(n))}t(L,"IsKatakana");function M(n){return new RegExp("\\p{Script=Han}","u").test(String.fromCodePoint(n))}t(M,"IsHan");function w(n){return n>=1632&&n<=1641}t(w,"IsArabicIndicDigit");function H(n){return n>=1776&&n<=1785}t(H,"IsExtendedArabicIndicDigit");function D(n){return m.has(n)}t(D,"IsVirama");function u(n){if(n.length===0)return!1;const e=[...n].map(i=>i.codePointAt(0)),r=e.length;if(e[0]===45||e[r-1]===45||r>=4&&e[2]===45&&e[3]===45||C(e[0]))return!1;let a=!1,o=!1,x=!1;for(let i=0;i<r;i++){const f=e[i];if(S.has(f))return!1;(P(f)||L(f)||M(f))&&(a=!0),w(f)&&(o=!0),H(f)&&(x=!0);const s=e[i-1],c=e[i+1];switch(f){case 183:if(s!==108||c!==108)return!1;break;case 885:if(c===void 0||!A(c))return!1;break;case 1523:case 1524:if(s===void 0||!k(s))return!1;break;case 8205:if(s===void 0||!D(s))return!1;break;case 12539:break}}return!(n.includes("・")&&!a||o&&x)}t(u,"IsUnicodeLabel");function y(n){if(n.charCodeAt(0)===45||n.charCodeAt(n.length-1)===45||n.length>=4&&n.charCodeAt(2)===45&&n.charCodeAt(3)===45)return!1;for(let e=0;e<n.length;e++){const r=n.charCodeAt(e);if(!(r>=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57||r===45))return!1}return!0}t(y,"IsAsciiLabel");function d(n){return n.toLowerCase().startsWith("xn--")}t(d,"IsPuny");function b(n){try{return u(l.Decode(n.slice(4)))}catch{return!1}}t(b,"IsPunyLabel");export function IsIdnLabel(n){return n.length===0||n.length>63?!1:d(n)?b(n):u(n)}t(IsIdnLabel,"IsIdnLabel");export function IsLabel(n){return n.length===0||n.length>63?!1:d(n)?b(n):y(n)}t(IsLabel,"IsLabel");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var U=Object.defineProperty;var O=(o,E)=>U(o,"name",{value:E,configurable:!0});const A=36,h=1,l=26,f=38,M=700,x=72,T=128;function Y(o,E,i){o=i?Math.floor(o/700):o>>1,o+=Math.floor(o/E);let t=0;for(;o>455;)o=Math.floor(o/35),t+=36;return t+Math.floor(36*o/(o+38))}O(Y,"Adapt");export function Decode(o){const E=[];let i=128,t=0,c=72;const _=o.lastIndexOf("-");if(_>0)for(let e=0;e<_;e++){const N=o.charCodeAt(e);if(N>=128)throw new Error("Invalid punycode: non-basic before delimiter");E.push(N)}let D=_<0?0:_+1;for(;D<o.length;){const e=t;let N=1,C=36;for(;;){if(D>=o.length)throw new Error("Invalid punycode: unexpected end of input");const n=o.charCodeAt(D++);let r;if(n>=97&&n<=122)r=n-97;else if(n>=48&&n<=57)r=n-48+26;else if(n>=65&&n<=90)r=n-65;else throw new Error("Invalid punycode: bad digit character");t+=r*N;const I=C<=c?1:C>=c+26?26:C-c;if(r<I)break;N*=36-I,C+=36}const P=E.length+1;c=Y(t-e,P,e===0),i+=Math.floor(t/P),t%=P,E.splice(t,0,i),t++}return globalThis.String.fromCodePoint(...E)}O(Decode,"Decode");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var n=Object.defineProperty;var
|
|
1
|
+
var n=Object.defineProperty;var t=(u,i)=>n(u,"name",{value:i,configurable:!0});const f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;export function IsUuid(u){return f.test(u)}t(IsUuid,"IsUuid");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var i=Object.defineProperty;var
|
|
1
|
+
var i=Object.defineProperty;var n=(t,r)=>i(t,"name",{value:r,configurable:!0});import*as o from"./guard.mjs";const $=/^[\p{ID_Start}_$][\p{ID_Continue}_$\u200C\u200D]*$/u;function c(t){return $.test(t)}n(c,"IsIdentifier");export function And(t,r){return`(${t} && ${r})`}n(And,"And");export function Or(t,r){return`(${t} || ${r})`}n(Or,"Or");export function Not(t){return`!(${t})`}n(Not,"Not");export function IsArray(t){return`Array.isArray(${t})`}n(IsArray,"IsArray");export function IsAsyncIterator(t){return`Guard.IsAsyncIterator(${t})`}n(IsAsyncIterator,"IsAsyncIterator");export function IsBigInt(t){return`typeof ${t} === "bigint"`}n(IsBigInt,"IsBigInt");export function IsBoolean(t){return`typeof ${t} === "boolean"`}n(IsBoolean,"IsBoolean");export function IsInteger(t){return`Number.isInteger(${t})`}n(IsInteger,"IsInteger");export function IsIterator(t){return`Guard.IsIterator(${t})`}n(IsIterator,"IsIterator");export function IsNull(t){return`${t} === null`}n(IsNull,"IsNull");export function IsNumber(t){return`Number.isFinite(${t})`}n(IsNumber,"IsNumber");export function IsObjectNotArray(t){return And(IsObject(t),Not(IsArray(t)))}n(IsObjectNotArray,"IsObjectNotArray");export function IsObject(t){return`typeof ${t} === "object" && ${t} !== null`}n(IsObject,"IsObject");export function IsString(t){return`typeof ${t} === "string"`}n(IsString,"IsString");export function IsSymbol(t){return`typeof ${t} === "symbol"`}n(IsSymbol,"IsSymbol");export function IsUndefined(t){return`${t} === undefined`}n(IsUndefined,"IsUndefined");export function IsFunction(t){return`typeof ${t} === "function"`}n(IsFunction,"IsFunction");export function IsConstructor(t){return`Guard.IsConstructor(${t})`}n(IsConstructor,"IsConstructor");export function IsEqual(t,r){return`${t} === ${r}`}n(IsEqual,"IsEqual");export function IsGreaterThan(t,r){return`${t} > ${r}`}n(IsGreaterThan,"IsGreaterThan");export function IsLessThan(t,r){return`${t} < ${r}`}n(IsLessThan,"IsLessThan");export function IsLessEqualThan(t,r){return`${t} <= ${r}`}n(IsLessEqualThan,"IsLessEqualThan");export function IsGreaterEqualThan(t,r){return`${t} >= ${r}`}n(IsGreaterEqualThan,"IsGreaterEqualThan");export function IsMinLength(t,r){return`Guard.IsMinLength(${t}, ${r})`}n(IsMinLength,"IsMinLength");export function IsMaxLength(t,r){return`Guard.IsMaxLength(${t}, ${r})`}n(IsMaxLength,"IsMaxLength");export function Every(t,r,e,u){return o.IsEqual(r,"0")?`${t}.every((${e[0]}, ${e[1]}) => ${u})`:`((value, callback) => { for(let index = ${r}; index < value.length; index++) if (!callback(value[index], index)) return false; return true })(${t}, (${e[0]}, ${e[1]}) => ${u})`}n(Every,"Every");export function Entries(t){return`Object.entries(${t})`}n(Entries,"Entries");export function Keys(t){return`Object.getOwnPropertyNames(${t})`}n(Keys,"Keys");export function HasPropertyKey(t,r){return o.IsEqual(r,'"__proto__"')||o.IsEqual(r,'"constructor"')?`Object.prototype.hasOwnProperty.call(${t}, ${r})`:`${r} in ${t}`}n(HasPropertyKey,"HasPropertyKey");export function IsDeepEqual(t,r){return`Guard.IsDeepEqual(${t}, ${r})`}n(IsDeepEqual,"IsDeepEqual");export function ArrayLiteral(t){return`[${t.join(", ")}]`}n(ArrayLiteral,"ArrayLiteral");export function ArrowFunction(t,r){return`((${t.join(", ")}) => ${r})`}n(ArrowFunction,"ArrowFunction");export function Call(t,r){return`${t}(${r.join(", ")})`}n(Call,"Call");export function New(t,r){return`new ${t}(${r.join(", ")})`}n(New,"New");export function Member(t,r){return`${t}${c(r)?`.${r}`:`[${Constant(r)}]`}`}n(Member,"Member");export function Constant(t){return o.IsString(t)?JSON.stringify(t):`${t}`}n(Constant,"Constant");export function Ternary(t,r,e){return`(${t} ? ${r} : ${e})`}n(Ternary,"Ternary");export function Statements(t){return`{ ${t.join("; ")}; }`}n(Statements,"Statements");export function ConstDeclaration(t,r){return`const ${t} = ${r}`}n(ConstDeclaration,"ConstDeclaration");export function If(t,r){return`if(${t}) { ${r} }`}n(If,"If");export function Return(t){return`return ${t}`}n(Return,"Return");export function ReduceAnd(t){return o.IsEqual(t.length,0)?"true":t.reduce((r,e)=>And(r,e))}n(ReduceAnd,"ReduceAnd");export function ReduceOr(t){return o.IsEqual(t.length,0)?"false":t.reduce((r,e)=>Or(r,e))}n(ReduceOr,"ReduceOr");export function PrefixIncrement(t){return`++${t}`}n(PrefixIncrement,"PrefixIncrement");export function MultipleOf(t,r){return`Guard.IsMultipleOf(${t}, ${r})`}n(MultipleOf,"MultipleOf");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=Object.defineProperty;var
|
|
1
|
+
var c=Object.defineProperty;var n=(t,r)=>c(t,"name",{value:r,configurable:!0});import*as s from"./string.mjs";export function IsArray(t){return Array.isArray(t)}n(IsArray,"IsArray");export function IsAsyncIterator(t){return IsObject(t)&&Symbol.asyncIterator in t}n(IsAsyncIterator,"IsAsyncIterator");export function IsBigInt(t){return IsEqual(typeof t,"bigint")}n(IsBigInt,"IsBigInt");export function IsBoolean(t){return IsEqual(typeof t,"boolean")}n(IsBoolean,"IsBoolean");export function IsConstructor(t){if(IsUndefined(t)||!IsFunction(t))return!1;const r=Function.prototype.toString.call(t);return!!(/^class\s/.test(r)||/\[native code\]/.test(r))}n(IsConstructor,"IsConstructor");export function IsFunction(t){return IsEqual(typeof t,"function")}n(IsFunction,"IsFunction");export function IsInteger(t){return Number.isInteger(t)}n(IsInteger,"IsInteger");export function IsIterator(t){return IsObject(t)&&Symbol.iterator in t}n(IsIterator,"IsIterator");export function IsNull(t){return IsEqual(t,null)}n(IsNull,"IsNull");export function IsNumber(t){return Number.isFinite(t)}n(IsNumber,"IsNumber");export function IsObjectNotArray(t){return IsObject(t)&&!IsArray(t)}n(IsObjectNotArray,"IsObjectNotArray");export function IsObject(t){return IsEqual(typeof t,"object")&&!IsNull(t)}n(IsObject,"IsObject");export function IsString(t){return IsEqual(typeof t,"string")}n(IsString,"IsString");export function IsSymbol(t){return IsEqual(typeof t,"symbol")}n(IsSymbol,"IsSymbol");export function IsUndefined(t){return IsEqual(t,void 0)}n(IsUndefined,"IsUndefined");export function IsEqual(t,r){return t===r}n(IsEqual,"IsEqual");export function IsGreaterThan(t,r){return t>r}n(IsGreaterThan,"IsGreaterThan");export function IsLessThan(t,r){return t<r}n(IsLessThan,"IsLessThan");export function IsLessEqualThan(t,r){return t<=r}n(IsLessEqualThan,"IsLessEqualThan");export function IsGreaterEqualThan(t,r){return t>=r}n(IsGreaterEqualThan,"IsGreaterEqualThan");export function IsMultipleOf(t,r){if(IsBigInt(t)||IsBigInt(r))return BigInt(t)%BigInt(r)===0n;const o=1e-10;if(!IsNumber(t)||IsInteger(t)&&1/r%1===0)return!0;const e=t%r;return Math.min(Math.abs(e),Math.abs(e-r))<o}n(IsMultipleOf,"IsMultipleOf");export function IsClassInstance(t){if(!IsObject(t))return!1;const r=globalThis.Object.getPrototypeOf(t);return IsNull(r)?!1:IsEqual(typeof r.constructor,"function")&&!(IsEqual(r.constructor,globalThis.Object)||IsEqual(r.constructor.name,"Object"))}n(IsClassInstance,"IsClassInstance");export function IsValueLike(t){return IsBigInt(t)||IsBoolean(t)||IsNull(t)||IsNumber(t)||IsString(t)||IsUndefined(t)}n(IsValueLike,"IsValueLike");export function GraphemeCount(t){return s.GraphemeCount(t)}n(GraphemeCount,"GraphemeCount");export function IsMaxLength(t,r){return s.IsMaxLengthFast(t,r)}n(IsMaxLength,"IsMaxLength");export function IsMinLength(t,r){return s.IsMinLengthFast(t,r)}n(IsMinLength,"IsMinLength");export function Every(t,r,o){for(let e=r;e<t.length;e++)if(!o(t[e],e))return!1;return!0}n(Every,"Every");export function EveryAll(t,r,o){let e=!0;for(let u=r;u<t.length;u++)o(t[u],u)||(e=!1);return e}n(EveryAll,"EveryAll");export function TakeLeft(t,r,o){return IsEqual(t.length,0)?o():r(t[0],t.slice(1))}n(TakeLeft,"TakeLeft");export function IsUnsafePropertyKey(t){return IsEqual(t,"__proto__")||IsEqual(t,"constructor")||IsEqual(t,"prototype")}n(IsUnsafePropertyKey,"IsUnsafePropertyKey");export function HasPropertyKey(t,r){return IsUnsafePropertyKey(r)?Object.prototype.hasOwnProperty.call(t,r):r in t}n(HasPropertyKey,"HasPropertyKey");export function EntriesRegExp(t){return Keys(t).map(r=>[new RegExp(`^${r}$`),t[r]])}n(EntriesRegExp,"EntriesRegExp");export function Entries(t){return Object.entries(t)}n(Entries,"Entries");export function Keys(t){return Object.getOwnPropertyNames(t)}n(Keys,"Keys");export function Symbols(t){return Object.getOwnPropertySymbols(t)}n(Symbols,"Symbols");export function Values(t){return Object.values(t)}n(Values,"Values");function f(t,r){if(!IsObject(r))return!1;const o=Keys(t);return IsEqual(o.length,Keys(r).length)&&o.every(e=>IsDeepEqual(t[e],r[e]))}n(f,"DeepEqualObject");function p(t,r){return IsArray(r)&&IsEqual(t.length,r.length)&&t.every((o,e)=>IsDeepEqual(t[e],r[e]))}n(p,"DeepEqualArray");export function IsDeepEqual(t,r){return IsArray(t)?p(t,r):IsObject(t)?f(t,r):IsEqual(t,r)}n(IsDeepEqual,"IsDeepEqual");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var h=Object.defineProperty;var i=(t,e)=>h(t,"name",{value:e,configurable:!0});function o(t,e,n){return t>=e&&t<=n}i(o,"IsBetween");function x(t){return o(t,127462,127487)}i(x,"IsRegionalIndicator");function d(t){return o(t,65024,65039)}i(d,"IsVariationSelector");function g(t){return o(t,768,879)||o(t,6832,6911)||o(t,7616,7679)||o(t,65056,65071)}i(g,"IsCombiningMark");function c(t){return t>65535?2:1}i(c,"CodePointLength");function u(t,e){for(;e<t.length;){const n=t.codePointAt(e);if(g(n)||d(n))e+=c(n);else break}return e}i(u,"ConsumeModifiers");function f(t,e){const n=t.codePointAt(e);let r=e+c(n);for(r=u(t,r);r<t.length-1&&t[r]==="";){const s=t.codePointAt(r+1);r+=1+c(s),r=u(t,r)}return x(n)&&r<t.length&&x(t.codePointAt(r))&&(r+=c(t.codePointAt(r))),r}i(f,"NextGraphemeClusterIndex");function F(t){return o(t,55296,56319)||o(t,768,879)||t===8205}i(F,"IsGraphemeCodePoint");export function GraphemeCount(t){let e=0,n=0;for(;n<t.length;)n=f(t,n),e++;return e}i(GraphemeCount,"GraphemeCount");function C(t,e){if(e===0)return!0;let n=0,r=0;for(;r<t.length;)if(r=f(t,r),n++,n>=e)return!0;return!1}i(C,"IsMinLength");function I(t,e){let n=0,r=0;for(;r<t.length;)if(r=f(t,r),n++,n>e)return!1;return!0}i(I,"IsMaxLength");export function IsMinLengthFast(t,e){if(e===0)return!0;let n=0;for(;n<t.length;){if(F(t.charCodeAt(n)))return C(t,e);if(n++,n>=e)return!0}return!1}i(IsMinLengthFast,"IsMinLengthFast");export function IsMaxLengthFast(t,e){let n=0;for(;n<t.length;){if(F(t.charCodeAt(n)))return I(t,e);if(n++,n>e)return!1}return!0}i(IsMaxLengthFast,"IsMaxLengthFast");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var l=Object.defineProperty;var c=(n,t)=>l(n,"name",{value:t,configurable:!0});import*as f from"../types/index.mjs";import{Hashing as u}from"../../system/hashing/index.mjs";import{EmitGuard as a}from"../../guard/index.mjs";import{BuildSchema as p}from"./schema.mjs";const i=new Map;function m(n,t,e,r){return n.UseUnevaluated()?a.Call(`check_${e}`,["context",r]):a.Call(`check_${e}`,[r])}c(m,"CreateCallExpression");function C(n,t,e,r){const o=p(n,t,e,"value");return t.UseUnevaluated()?a.ConstDeclaration(`check_${r}`,a.ArrowFunction(["context","value"],o)):a.ConstDeclaration(`check_${r}`,a.ArrowFunction(["value"],o))}c(C,"CreateFunctionExpression");export function ResetFunctions(){i.clear()}c(ResetFunctions,"ResetFunctions");export function GetFunctions(){return[...i.values()]}c(GetFunctions,"GetFunctions");export function CreateFunction(n,t,e,r){const o=f.IsSchemaObject(e)?u.Hash({__baseURL:n.BaseURL().href,...e}):u.Hash(e),s=m(t,e,o,r);return i.has(o)||(i.set(o,""),i.set(o,C(n,t,e,o))),s}c(CreateFunction,"CreateFunction");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=Object.defineProperty;var o=(a,r)=>n(a,"name",{value:r,configurable:!0});import*as i from"./_externals.mjs";import{EmitGuard as u}from"../../guard/index.mjs";export function BuildGuard(a,r,e,t){return u.Call(u.Member(u.Member(i.CreateVariable(e),"~guard"),"check"),[t])}o(BuildGuard,"BuildGuard");export function CheckGuard(a,r,e,t){return e["~guard"].check(t)}o(CheckGuard,"CheckGuard");export function ErrorGuard(a,r,e,t,c,d){return c["~guard"].check(d)||r.AddError({keyword:"~guard",schemaPath:e,instancePath:t,params:{errors:c["~guard"].errors(d)}})}o(ErrorGuard,"ErrorGuard");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=Object.defineProperty;var t=(r,o)=>l(r,"name",{value:o,configurable:!0});import{EmitGuard as n}from"../../guard/index.mjs";export function
|
|
1
|
+
var l=Object.defineProperty;var t=(r,o)=>l(r,"name",{value:o,configurable:!0});import{EmitGuard as n}from"../../guard/index.mjs";export function BuildBooleanSchema(r,o,e,a){return e?n.Constant(!0):n.Constant(!1)}t(BuildBooleanSchema,"BuildBooleanSchema");export function CheckBooleanSchema(r,o,e,a){return e}t(CheckBooleanSchema,"CheckBooleanSchema");export function ErrorBooleanSchema(r,o,e,a,u,c){return CheckBooleanSchema(r,o,u,c)||o.AddError({keyword:"boolean",schemaPath:e,instancePath:a,params:{}})}t(ErrorBooleanSchema,"ErrorBooleanSchema");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export*from"./_context.mjs";export*from"./_externals.mjs";export*from"./_functions.mjs";export*from"./_reducer.mjs";export*from"./_refine.mjs";export*from"./_stack.mjs";export*from"./additionalItems.mjs";export*from"./additionalProperties.mjs";export*from"./allOf.mjs";export*from"./anyOf.mjs";export*from"./boolean.mjs";export*from"./const.mjs";export*from"./contains.mjs";export*from"./dependencies.mjs";export*from"./dependentRequired.mjs";export*from"./dependentSchemas.mjs";export*from"./enum.mjs";export*from"./exclusiveMaximum.mjs";export*from"./exclusiveMinimum.mjs";export*from"./format.mjs";export*from"./if.mjs";export*from"./items.mjs";export*from"./maxContains.mjs";export*from"./maxItems.mjs";export*from"./maxLength.mjs";export*from"./maxProperties.mjs";export*from"./maximum.mjs";export*from"./minContains.mjs";export*from"./minItems.mjs";export*from"./minLength.mjs";export*from"./minProperties.mjs";export*from"./minimum.mjs";export*from"./multipleOf.mjs";export*from"./not.mjs";export*from"./oneOf.mjs";export*from"./pattern.mjs";export*from"./patternProperties.mjs";export*from"./prefixItems.mjs";export*from"./properties.mjs";export*from"./propertyNames.mjs";export*from"./recursiveRef.mjs";export*from"./ref.mjs";export*from"./required.mjs";export*from"./schema.mjs";export*from"./type.mjs";export*from"./unevaluatedItems.mjs";export*from"./unevaluatedProperties.mjs";export*from"./uniqueItems.mjs";
|
|
1
|
+
export*from"./_context.mjs";export*from"./_externals.mjs";export*from"./_guard.mjs";export*from"./_functions.mjs";export*from"./_reducer.mjs";export*from"./_refine.mjs";export*from"./_stack.mjs";export*from"./additionalItems.mjs";export*from"./additionalProperties.mjs";export*from"./allOf.mjs";export*from"./anyOf.mjs";export*from"./boolean.mjs";export*from"./const.mjs";export*from"./contains.mjs";export*from"./dependencies.mjs";export*from"./dependentRequired.mjs";export*from"./dependentSchemas.mjs";export*from"./enum.mjs";export*from"./exclusiveMaximum.mjs";export*from"./exclusiveMinimum.mjs";export*from"./format.mjs";export*from"./if.mjs";export*from"./items.mjs";export*from"./maxContains.mjs";export*from"./maxItems.mjs";export*from"./maxLength.mjs";export*from"./maxProperties.mjs";export*from"./maximum.mjs";export*from"./minContains.mjs";export*from"./minItems.mjs";export*from"./minLength.mjs";export*from"./minProperties.mjs";export*from"./minimum.mjs";export*from"./multipleOf.mjs";export*from"./not.mjs";export*from"./oneOf.mjs";export*from"./pattern.mjs";export*from"./patternProperties.mjs";export*from"./prefixItems.mjs";export*from"./properties.mjs";export*from"./propertyNames.mjs";export*from"./recursiveRef.mjs";export*from"./ref.mjs";export*from"./required.mjs";export*from"./schema.mjs";export*from"./type.mjs";export*from"./unevaluatedItems.mjs";export*from"./unevaluatedProperties.mjs";export*from"./uniqueItems.mjs";
|