@qqbrowser/qbot-dsh 0.0.15 → 0.1.0
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/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/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/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/package.json +1 -1
- 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/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cmdline/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-content-review/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/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/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/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/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-gateway-openai/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-qb-auth/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/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query/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/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/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 +5 -2
- 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/package.json +1 -1
- 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-web-search-dsh/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
- 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/@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/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/package.json +1 -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
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
#
|
|
3
|
-
# Copyright (c) 2011-2015 Ryan Prichard
|
|
4
|
-
#
|
|
5
|
-
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
# of this software and associated documentation files (the "Software"), to
|
|
7
|
-
# deal in the Software without restriction, including without limitation the
|
|
8
|
-
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
9
|
-
# sell copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
# furnished to do so, subject to the following conditions:
|
|
11
|
-
#
|
|
12
|
-
# The above copyright notice and this permission notice shall be included in
|
|
13
|
-
# all copies or substantial portions of the Software.
|
|
14
|
-
#
|
|
15
|
-
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
20
|
-
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
21
|
-
# IN THE SOFTWARE.
|
|
22
|
-
|
|
23
|
-
#
|
|
24
|
-
# findTool(desc, commandList)
|
|
25
|
-
#
|
|
26
|
-
# Searches commandLine for the first command in the PATH and returns it.
|
|
27
|
-
# Prints an error and aborts the script if no match is found.
|
|
28
|
-
#
|
|
29
|
-
FINDTOOL_OUT=""
|
|
30
|
-
function findTool {
|
|
31
|
-
DESC=$1
|
|
32
|
-
OPTIONS=$2
|
|
33
|
-
for CMD in ${OPTIONS}; do
|
|
34
|
-
if (which $CMD &>/dev/null) then
|
|
35
|
-
echo "Found $DESC: $CMD"
|
|
36
|
-
FINDTOOL_OUT="$CMD"
|
|
37
|
-
return
|
|
38
|
-
fi
|
|
39
|
-
done
|
|
40
|
-
echo "Error: could not find $DESC. One of these should be in your PATH:"
|
|
41
|
-
for CMD in ${OPTIONS}; do
|
|
42
|
-
echo " * $CMD"
|
|
43
|
-
done
|
|
44
|
-
exit 1
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
IS_CYGWIN=0
|
|
48
|
-
IS_MSYS1=0
|
|
49
|
-
IS_MSYS2=0
|
|
50
|
-
|
|
51
|
-
# Link parts of the Cygwin binary statically to aid in redistribution? The
|
|
52
|
-
# binary still links dynamically against the main DLL. The MinGW binaries are
|
|
53
|
-
# also statically linked and therefore depend only on Windows DLLs. I started
|
|
54
|
-
# linking the Cygwin/MSYS binary statically, because G++ 4.7 changed the
|
|
55
|
-
# Windows C++ ABI.
|
|
56
|
-
UNIX_LDFLAGS_STATIC='-static -static-libgcc -static-libstdc++'
|
|
57
|
-
|
|
58
|
-
# Detect the environment -- Cygwin or MSYS.
|
|
59
|
-
case $(uname -s) in
|
|
60
|
-
CYGWIN*)
|
|
61
|
-
echo 'uname -s identifies a Cygwin environment.'
|
|
62
|
-
IS_CYGWIN=1
|
|
63
|
-
case $(uname -m) in
|
|
64
|
-
i686)
|
|
65
|
-
echo 'uname -m identifies an i686 environment.'
|
|
66
|
-
UNIX_CXX=i686-pc-cygwin-g++
|
|
67
|
-
MINGW_CXX=i686-w64-mingw32-g++
|
|
68
|
-
;;
|
|
69
|
-
x86_64)
|
|
70
|
-
echo 'uname -m identifies an x86_64 environment.'
|
|
71
|
-
UNIX_CXX=x86_64-pc-cygwin-g++
|
|
72
|
-
MINGW_CXX=x86_64-w64-mingw32-g++
|
|
73
|
-
;;
|
|
74
|
-
*)
|
|
75
|
-
echo 'Error: uname -m did not match either i686 or x86_64.'
|
|
76
|
-
exit 1
|
|
77
|
-
;;
|
|
78
|
-
esac
|
|
79
|
-
;;
|
|
80
|
-
MSYS*|MINGW*)
|
|
81
|
-
# MSYS2 notes:
|
|
82
|
-
# - MSYS2 offers two shortcuts to open an environment:
|
|
83
|
-
# - MinGW-w64 Win32 Shell. This env reports a `uname -s` of
|
|
84
|
-
# MINGW32_NT-6.1 on 32-bit Win7. The MinGW-w64 compiler
|
|
85
|
-
# (i686-w64-mingw32-g++.exe) is in the PATH.
|
|
86
|
-
# - MSYS2 Shell. `uname -s` instead reports MSYS_NT-6.1.
|
|
87
|
-
# The i686-w64-mingw32-g++ compiler is not in the PATH.
|
|
88
|
-
# - MSYS2 appears to use MinGW-w64, not the older mingw.org.
|
|
89
|
-
# MSYS notes:
|
|
90
|
-
# - `uname -s` is always MINGW32_NT-6.1 on Win7.
|
|
91
|
-
echo 'uname -s identifies an MSYS/MSYS2 environment.'
|
|
92
|
-
case $(uname -m) in
|
|
93
|
-
i686)
|
|
94
|
-
echo 'uname -m identifies an i686 environment.'
|
|
95
|
-
UNIX_CXX=i686-pc-msys-g++
|
|
96
|
-
if echo "$(uname -r)" | grep '^1[.]' > /dev/null; then
|
|
97
|
-
# The MSYS-targeting compiler for the original 32-bit-only
|
|
98
|
-
# MSYS does not recognize the -static-libstdc++ flag, and
|
|
99
|
-
# it does not work with -static, because it tries to link
|
|
100
|
-
# statically with the core MSYS library and fails.
|
|
101
|
-
#
|
|
102
|
-
# Distinguish between the two using the major version
|
|
103
|
-
# number of `uname -r`:
|
|
104
|
-
#
|
|
105
|
-
# MSYS uname -r: 1.0.18(0.48/3/2)
|
|
106
|
-
# MSYS2 uname -r: 2.0.0(0.284/5/3)
|
|
107
|
-
#
|
|
108
|
-
# This is suboptimal because MSYS2 is not actually the
|
|
109
|
-
# second version of MSYS--it's a brand-new fork of Cygwin.
|
|
110
|
-
#
|
|
111
|
-
IS_MSYS1=1
|
|
112
|
-
UNIX_LDFLAGS_STATIC=
|
|
113
|
-
MINGW_CXX=mingw32-g++
|
|
114
|
-
else
|
|
115
|
-
IS_MSYS2=1
|
|
116
|
-
MINGW_CXX=i686-w64-mingw32-g++.exe
|
|
117
|
-
fi
|
|
118
|
-
;;
|
|
119
|
-
x86_64)
|
|
120
|
-
echo 'uname -m identifies an x86_64 environment.'
|
|
121
|
-
IS_MSYS2=1
|
|
122
|
-
UNIX_CXX=x86_64-pc-msys-g++
|
|
123
|
-
MINGW_CXX=x86_64-w64-mingw32-g++
|
|
124
|
-
;;
|
|
125
|
-
*)
|
|
126
|
-
echo 'Error: uname -m did not match either i686 or x86_64.'
|
|
127
|
-
exit 1
|
|
128
|
-
;;
|
|
129
|
-
esac
|
|
130
|
-
;;
|
|
131
|
-
*)
|
|
132
|
-
echo 'Error: uname -s did not match either CYGWIN* or MINGW*.'
|
|
133
|
-
exit 1
|
|
134
|
-
;;
|
|
135
|
-
esac
|
|
136
|
-
|
|
137
|
-
# Search the PATH and pick the first match.
|
|
138
|
-
findTool "Cygwin/MSYS G++ compiler" "$UNIX_CXX"
|
|
139
|
-
UNIX_CXX=$FINDTOOL_OUT
|
|
140
|
-
findTool "MinGW G++ compiler" "$MINGW_CXX"
|
|
141
|
-
MINGW_CXX=$FINDTOOL_OUT
|
|
142
|
-
|
|
143
|
-
# Write config files.
|
|
144
|
-
echo Writing config.mk
|
|
145
|
-
echo UNIX_CXX=$UNIX_CXX > config.mk
|
|
146
|
-
echo UNIX_LDFLAGS_STATIC=$UNIX_LDFLAGS_STATIC >> config.mk
|
|
147
|
-
echo MINGW_CXX=$MINGW_CXX >> config.mk
|
|
148
|
-
|
|
149
|
-
if test $IS_MSYS1 = 1; then
|
|
150
|
-
echo UNIX_CXXFLAGS += -DWINPTY_TARGET_MSYS1 >> config.mk
|
|
151
|
-
# The MSYS1 MinGW compiler has a bug that prevents inclusion of algorithm
|
|
152
|
-
# and math.h in normal C++11 mode. The workaround is to enable the gnu++11
|
|
153
|
-
# mode instead. The bug was fixed on 2015-07-31, but as of 2016-02-26, the
|
|
154
|
-
# fix apparently hasn't been released. See
|
|
155
|
-
# http://ehc.ac/p/mingw/bugs/2250/.
|
|
156
|
-
echo MINGW_ENABLE_CXX11_FLAG := -std=gnu++11 >> config.mk
|
|
157
|
-
fi
|
|
158
|
-
|
|
159
|
-
if test -d .git -a -f .git/HEAD -a -f .git/index && git rev-parse HEAD >&/dev/null; then
|
|
160
|
-
echo "Commit info: git"
|
|
161
|
-
echo 'COMMIT_HASH = $(shell git rev-parse HEAD)' >> config.mk
|
|
162
|
-
echo 'COMMIT_HASH_DEP := config.mk .git/HEAD .git/index' >> config.mk
|
|
163
|
-
else
|
|
164
|
-
echo "Commit info: none"
|
|
165
|
-
echo 'COMMIT_HASH := none' >> config.mk
|
|
166
|
-
echo 'COMMIT_HASH_DEP := config.mk' >> config.mk
|
|
167
|
-
fi
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# PowerShell script for controlling the console QuickEdit and InsertMode flags.
|
|
3
|
-
#
|
|
4
|
-
# Turn QuickEdit off to interact with mouse-driven console programs.
|
|
5
|
-
#
|
|
6
|
-
# Usage:
|
|
7
|
-
#
|
|
8
|
-
# powershell .\ConinMode.ps1 [Options]
|
|
9
|
-
#
|
|
10
|
-
# Options:
|
|
11
|
-
# -QuickEdit [on/off]
|
|
12
|
-
# -InsertMode [on/off]
|
|
13
|
-
# -Mode [integer]
|
|
14
|
-
#
|
|
15
|
-
|
|
16
|
-
param (
|
|
17
|
-
[ValidateSet("on", "off")][string] $QuickEdit,
|
|
18
|
-
[ValidateSet("on", "off")][string] $InsertMode,
|
|
19
|
-
[int] $Mode
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
$signature = @'
|
|
23
|
-
[DllImport("kernel32.dll", SetLastError = true)]
|
|
24
|
-
public static extern IntPtr GetStdHandle(int nStdHandle);
|
|
25
|
-
|
|
26
|
-
[DllImport("kernel32.dll", SetLastError = true)]
|
|
27
|
-
public static extern uint GetConsoleMode(
|
|
28
|
-
IntPtr hConsoleHandle,
|
|
29
|
-
out uint lpMode);
|
|
30
|
-
|
|
31
|
-
[DllImport("kernel32.dll", SetLastError = true)]
|
|
32
|
-
public static extern uint SetConsoleMode(
|
|
33
|
-
IntPtr hConsoleHandle,
|
|
34
|
-
uint dwMode);
|
|
35
|
-
|
|
36
|
-
public const int STD_INPUT_HANDLE = -10;
|
|
37
|
-
public const int ENABLE_INSERT_MODE = 0x0020;
|
|
38
|
-
public const int ENABLE_QUICK_EDIT_MODE = 0x0040;
|
|
39
|
-
public const int ENABLE_EXTENDED_FLAGS = 0x0080;
|
|
40
|
-
'@
|
|
41
|
-
|
|
42
|
-
$WinAPI = Add-Type -MemberDefinition $signature `
|
|
43
|
-
-Name WinAPI -Namespace ConinModeScript `
|
|
44
|
-
-PassThru
|
|
45
|
-
|
|
46
|
-
function GetConIn {
|
|
47
|
-
$ret = $WinAPI::GetStdHandle($WinAPI::STD_INPUT_HANDLE)
|
|
48
|
-
if ($ret -eq -1) {
|
|
49
|
-
throw "error: cannot get stdin"
|
|
50
|
-
}
|
|
51
|
-
return $ret
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function GetConsoleMode {
|
|
55
|
-
$conin = GetConIn
|
|
56
|
-
$mode = 0
|
|
57
|
-
$ret = $WinAPI::GetConsoleMode($conin, [ref]$mode)
|
|
58
|
-
if ($ret -eq 0) {
|
|
59
|
-
throw "GetConsoleMode failed (is stdin a console?)"
|
|
60
|
-
}
|
|
61
|
-
return $mode
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function SetConsoleMode($mode) {
|
|
65
|
-
$conin = GetConIn
|
|
66
|
-
$ret = $WinAPI::SetConsoleMode($conin, $mode)
|
|
67
|
-
if ($ret -eq 0) {
|
|
68
|
-
throw "SetConsoleMode failed (is stdin a console?)"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
$oldMode = GetConsoleMode
|
|
73
|
-
$newMode = $oldMode
|
|
74
|
-
$doingSomething = $false
|
|
75
|
-
|
|
76
|
-
if ($PSBoundParameters.ContainsKey("Mode")) {
|
|
77
|
-
$newMode = $Mode
|
|
78
|
-
$doingSomething = $true
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
if ($QuickEdit + $InsertMode -ne "") {
|
|
82
|
-
if (!($newMode -band $WinAPI::ENABLE_EXTENDED_FLAGS)) {
|
|
83
|
-
# We can't enable an extended flag without overwriting the existing
|
|
84
|
-
# QuickEdit/InsertMode flags. AFAICT, there is no way to query their
|
|
85
|
-
# existing values, so at least we can choose sensible defaults.
|
|
86
|
-
$newMode = $newMode -bor $WinAPI::ENABLE_EXTENDED_FLAGS
|
|
87
|
-
$newMode = $newMode -bor $WinAPI::ENABLE_QUICK_EDIT_MODE
|
|
88
|
-
$newMode = $newMode -bor $WinAPI::ENABLE_INSERT_MODE
|
|
89
|
-
$doingSomething = $true
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
if ($QuickEdit -eq "on") {
|
|
94
|
-
$newMode = $newMode -bor $WinAPI::ENABLE_QUICK_EDIT_MODE
|
|
95
|
-
$doingSomething = $true
|
|
96
|
-
} elseif ($QuickEdit -eq "off") {
|
|
97
|
-
$newMode = $newMode -band (-bnot $WinAPI::ENABLE_QUICK_EDIT_MODE)
|
|
98
|
-
$doingSomething = $true
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if ($InsertMode -eq "on") {
|
|
102
|
-
$newMode = $newMode -bor $WinAPI::ENABLE_INSERT_MODE
|
|
103
|
-
$doingSomething = $true
|
|
104
|
-
} elseif ($InsertMode -eq "off") {
|
|
105
|
-
$newMode = $newMode -band (-bnot $WinAPI::ENABLE_INSERT_MODE)
|
|
106
|
-
$doingSomething = $true
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
if ($doingSomething) {
|
|
110
|
-
echo "old mode: $oldMode"
|
|
111
|
-
SetConsoleMode $newMode
|
|
112
|
-
$newMode = GetConsoleMode
|
|
113
|
-
echo "new mode: $newMode"
|
|
114
|
-
} else {
|
|
115
|
-
echo "mode: $oldMode"
|
|
116
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Usage: powershell <path>\IdentifyConsoleWindow.ps1
|
|
3
|
-
#
|
|
4
|
-
# This script determines whether the process has a console attached, whether
|
|
5
|
-
# that console has a non-NULL window (e.g. HWND), and whether the window is on
|
|
6
|
-
# the current window station.
|
|
7
|
-
#
|
|
8
|
-
|
|
9
|
-
$signature = @'
|
|
10
|
-
[DllImport("kernel32.dll", SetLastError=true)]
|
|
11
|
-
public static extern IntPtr GetConsoleWindow();
|
|
12
|
-
|
|
13
|
-
[DllImport("kernel32.dll", CharSet=CharSet.Auto, SetLastError=true)]
|
|
14
|
-
public static extern bool SetConsoleTitle(String title);
|
|
15
|
-
|
|
16
|
-
[DllImport("user32.dll", CharSet=CharSet.Auto, SetLastError=true)]
|
|
17
|
-
public static extern int GetWindowText(IntPtr hWnd,
|
|
18
|
-
System.Text.StringBuilder lpString,
|
|
19
|
-
int nMaxCount);
|
|
20
|
-
'@
|
|
21
|
-
|
|
22
|
-
$WinAPI = Add-Type -MemberDefinition $signature `
|
|
23
|
-
-Name WinAPI -Namespace IdentifyConsoleWindow -PassThru
|
|
24
|
-
|
|
25
|
-
if (!$WinAPI::SetConsoleTitle("ConsoleWindowScript")) {
|
|
26
|
-
echo "error: could not change console title -- is a console attached?"
|
|
27
|
-
exit 1
|
|
28
|
-
} else {
|
|
29
|
-
echo "note: successfully set console title to ""ConsoleWindowScript""."
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
$hwnd = $WinAPI::GetConsoleWindow()
|
|
33
|
-
if ($hwnd -eq 0) {
|
|
34
|
-
echo "note: GetConsoleWindow returned NULL."
|
|
35
|
-
} else {
|
|
36
|
-
echo "note: GetConsoleWindow returned 0x$($hwnd.ToString("X"))."
|
|
37
|
-
$sb = New-Object System.Text.StringBuilder -ArgumentList 4096
|
|
38
|
-
if ($WinAPI::GetWindowText($hwnd, $sb, $sb.Capacity)) {
|
|
39
|
-
$title = $sb.ToString()
|
|
40
|
-
echo "note: GetWindowText returned ""${title}""."
|
|
41
|
-
if ($title -eq "ConsoleWindowScript") {
|
|
42
|
-
echo "success!"
|
|
43
|
-
} else {
|
|
44
|
-
echo "error: expected to see ""ConsoleWindowScript""."
|
|
45
|
-
echo " (Perhaps the console window is on a different window station?)"
|
|
46
|
-
}
|
|
47
|
-
} else {
|
|
48
|
-
echo "error: GetWindowText could not read the window title."
|
|
49
|
-
echo " (Perhaps the console window is on a different window station?)"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
FORE=$1
|
|
4
|
-
BACK=$2
|
|
5
|
-
FILL=$3
|
|
6
|
-
|
|
7
|
-
if [ "$FORE" = "" ]; then
|
|
8
|
-
FORE=DefaultFore
|
|
9
|
-
fi
|
|
10
|
-
if [ "$BACK" = "" ]; then
|
|
11
|
-
BACK=DefaultBack
|
|
12
|
-
fi
|
|
13
|
-
|
|
14
|
-
# To detect color changes, we want a character that fills the whole cell
|
|
15
|
-
# if possible. U+2588 is perfect, except that it becomes invisible in the
|
|
16
|
-
# original xterm, when bolded. For that terminal, use something else, like
|
|
17
|
-
# "#" or "@".
|
|
18
|
-
if [ "$FILL" = "" ]; then
|
|
19
|
-
FILL="█"
|
|
20
|
-
fi
|
|
21
|
-
|
|
22
|
-
# SGR (Select Graphic Rendition)
|
|
23
|
-
s() {
|
|
24
|
-
printf '\033[0m'
|
|
25
|
-
while [ "$1" != "" ]; do
|
|
26
|
-
printf '\033['"$1"'m'
|
|
27
|
-
shift
|
|
28
|
-
done
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
# Print
|
|
32
|
-
p() {
|
|
33
|
-
echo -n "$@"
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
# Print with newline
|
|
37
|
-
pn() {
|
|
38
|
-
echo "$@"
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
# For practical reasons, sandwich black and white in-between the other colors.
|
|
42
|
-
FORE_COLORS="31 30 37 32 33 34 35 36"
|
|
43
|
-
BACK_COLORS="41 40 47 42 43 44 45 46"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
### Test order of Invert(7) -- it does not matter what order it appears in.
|
|
48
|
-
|
|
49
|
-
# The Red color setting here (31) is shadowed by the green setting (32). The
|
|
50
|
-
# Reverse flag does not cause (32) to alter the background color immediately;
|
|
51
|
-
# instead, the Reverse flag is applied once to determine the final effective
|
|
52
|
-
# Fore/Back colors.
|
|
53
|
-
s 7 31 32; p " -- Should be: $BACK-on-green -- "; s; pn
|
|
54
|
-
s 31 7 32; p " -- Should be: $BACK-on-green -- "; s; pn
|
|
55
|
-
s 31 32 7; p " -- Should be: $BACK-on-green -- "; s; pn
|
|
56
|
-
|
|
57
|
-
# As above, but for the background color.
|
|
58
|
-
s 7 41 42; p " -- Should be: green-on-$FORE -- "; s; pn
|
|
59
|
-
s 41 7 42; p " -- Should be: green-on-$FORE -- "; s; pn
|
|
60
|
-
s 41 42 7; p " -- Should be: green-on-$FORE -- "; s; pn
|
|
61
|
-
|
|
62
|
-
# One last, related test
|
|
63
|
-
s 7; p "Invert text"; s 7 1; p " with some words bold"; s; pn;
|
|
64
|
-
s 0; p "Normal text"; s 0 1; p " with some words bold"; s; pn;
|
|
65
|
-
|
|
66
|
-
pn
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### Test effect of Bold(1) on color, with and without Invert(7).
|
|
71
|
-
|
|
72
|
-
# The Bold flag does not affect the background color when Reverse is missing.
|
|
73
|
-
# There should always be 8 colored boxes.
|
|
74
|
-
p " "
|
|
75
|
-
for x in $BACK_COLORS; do
|
|
76
|
-
s $x; p "-"; s $x 1; p "-"
|
|
77
|
-
done
|
|
78
|
-
s; pn " Bold should not affect background"
|
|
79
|
-
|
|
80
|
-
# On some terminals, Bold affects color, and on some it doesn't. If there
|
|
81
|
-
# are only 8 colored boxes, then the next two tests will also show 8 colored
|
|
82
|
-
# boxes. If there are 16 boxes, then exactly one of the next two tests will
|
|
83
|
-
# also have 16 boxes.
|
|
84
|
-
p " "
|
|
85
|
-
for x in $FORE_COLORS; do
|
|
86
|
-
s $x; p "$FILL"; s $x 1; p "$FILL"
|
|
87
|
-
done
|
|
88
|
-
s; pn " Does bold affect foreground color?"
|
|
89
|
-
|
|
90
|
-
# On some terminals, Bold+Invert highlights the final Background color.
|
|
91
|
-
p " "
|
|
92
|
-
for x in $FORE_COLORS; do
|
|
93
|
-
s $x 7; p "-"; s $x 7 1; p "-"
|
|
94
|
-
done
|
|
95
|
-
s; pn " Test if Bold+Invert affects background color"
|
|
96
|
-
|
|
97
|
-
# On some terminals, Bold+Invert highlights the final Foreground color.
|
|
98
|
-
p " "
|
|
99
|
-
for x in $BACK_COLORS; do
|
|
100
|
-
s $x 7; p "$FILL"; s $x 7 1; p "$FILL"
|
|
101
|
-
done
|
|
102
|
-
s; pn " Test if Bold+Invert affects foreground color"
|
|
103
|
-
|
|
104
|
-
pn
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
### Test for support of ForeHi and BackHi properties.
|
|
109
|
-
|
|
110
|
-
# ForeHi
|
|
111
|
-
p " "
|
|
112
|
-
for x in $FORE_COLORS; do
|
|
113
|
-
hi=$(( $x + 60 ))
|
|
114
|
-
s $x; p "$FILL"; s $hi; p "$FILL"
|
|
115
|
-
done
|
|
116
|
-
s; pn " Test for support of ForeHi colors"
|
|
117
|
-
p " "
|
|
118
|
-
for x in $FORE_COLORS; do
|
|
119
|
-
hi=$(( $x + 60 ))
|
|
120
|
-
s $x; p "$FILL"; s $x $hi; p "$FILL"
|
|
121
|
-
done
|
|
122
|
-
s; pn " Test for support of ForeHi colors (w/compat)"
|
|
123
|
-
|
|
124
|
-
# BackHi
|
|
125
|
-
p " "
|
|
126
|
-
for x in $BACK_COLORS; do
|
|
127
|
-
hi=$(( $x + 60 ))
|
|
128
|
-
s $x; p "-"; s $hi; p "-"
|
|
129
|
-
done
|
|
130
|
-
s; pn " Test for support of BackHi colors"
|
|
131
|
-
p " "
|
|
132
|
-
for x in $BACK_COLORS; do
|
|
133
|
-
hi=$(( $x + 60 ))
|
|
134
|
-
s $x; p "-"; s $x $hi; p "-"
|
|
135
|
-
done
|
|
136
|
-
s; pn " Test for support of BackHi colors (w/compat)"
|
|
137
|
-
|
|
138
|
-
pn
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
### Identify the default fore and back colors.
|
|
143
|
-
|
|
144
|
-
pn "Match default fore and back colors against 16-color palette"
|
|
145
|
-
pn " ==fore== ==back=="
|
|
146
|
-
for fore in $FORE_COLORS; do
|
|
147
|
-
forehi=$(( $fore + 60 ))
|
|
148
|
-
back=$(( $fore + 10 ))
|
|
149
|
-
backhi=$(( $back + 60 ))
|
|
150
|
-
p " "
|
|
151
|
-
s $fore; p "$FILL"; s; p "$FILL"; s $fore; p "$FILL"; s; p " "
|
|
152
|
-
s $forehi; p "$FILL"; s; p "$FILL"; s $forehi; p "$FILL"; s; p " "
|
|
153
|
-
s $back; p "-"; s; p "-"; s $back; p "-"; s; p " "
|
|
154
|
-
s $backhi; p "-"; s; p "-"; s $backhi; p "-"; s; p " "
|
|
155
|
-
pn " $fore $forehi $back $backhi"
|
|
156
|
-
done
|
|
157
|
-
|
|
158
|
-
pn
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
### Test coloring of rest-of-line.
|
|
163
|
-
|
|
164
|
-
#
|
|
165
|
-
# When a new line is scrolled in, every cell in the line receives the
|
|
166
|
-
# current background color, which can be the default/transparent color.
|
|
167
|
-
#
|
|
168
|
-
|
|
169
|
-
p "Newline with red background: usually no red -->"; s 41; pn
|
|
170
|
-
s; pn "This text is plain, but rest is red if scrolled -->"
|
|
171
|
-
s; p " "; s 41; printf '\033[1K'; s; printf '\033[1C'; pn "<-- red Erase-in-Line to beginning"
|
|
172
|
-
s; p "red Erase-in-Line to end -->"; s 41; printf '\033[0K'; s; pn
|
|
173
|
-
pn
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
### Moving the cursor around does not change colors of anything.
|
|
178
|
-
|
|
179
|
-
pn "Test modifying uncolored lines with a colored SGR:"
|
|
180
|
-
pn "aaaa"
|
|
181
|
-
pn
|
|
182
|
-
pn "____e"
|
|
183
|
-
s 31 42; printf '\033[4C\033[3A'; pn "bb"
|
|
184
|
-
pn "cccc"
|
|
185
|
-
pn "dddd"
|
|
186
|
-
s; pn
|
|
187
|
-
|
|
188
|
-
pn "Test modifying colored+inverted+bold line with plain text:"
|
|
189
|
-
s 42 31 7 1; printf 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\r';
|
|
190
|
-
s; pn "This text is plain and followed by green-on-red -->"
|
|
191
|
-
pn
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
### Full-width character overwriting
|
|
196
|
-
|
|
197
|
-
pn 'Overwrite part of a full-width char with a half-width char'
|
|
198
|
-
p 'initial U+4000 ideographs -->'; s 31 42; p '䀀䀀'; s; pn
|
|
199
|
-
p 'write X to index #1 -->'; s 31 42; p '䀀䀀'; s 35 44; printf '\033[24G'; p X; s; pn
|
|
200
|
-
p 'write X to index #2 -->'; s 31 42; p '䀀䀀'; s 35 44; printf '\033[25G'; p X; s; pn
|
|
201
|
-
p 'write X to index #3 -->'; s 31 42; p '䀀䀀'; s 35 44; printf '\033[26G'; p X; s; pn
|
|
202
|
-
p 'write X to index #4 -->'; s 31 42; p '䀀䀀'; s 35 44; printf '\033[27G'; p X; s; pn
|
|
203
|
-
pn
|
|
204
|
-
|
|
205
|
-
pn 'Verify that Erase-in-Line can "fix" last char in line'
|
|
206
|
-
p 'original -->'; s 31 42; p '䀀䀀'; s; pn
|
|
207
|
-
p 'overwrite -->'; s 31 42; p '䀀䀀'; s 35 44; printf '\033[30G'; p 'XXX'; s; pn
|
|
208
|
-
p 'overwrite + Erase-in-Line -->'; s 31 42; p '䀀䀀'; s 35 44; printf '\033[30G'; p 'XXX'; s; printf '\033[0K'; pn
|
|
209
|
-
p 'original -->'; s 31 42; p 'X䀀䀀'; s; pn
|
|
210
|
-
p 'overwrite -->'; s 31 42; p 'X䀀䀀'; s 35 44; printf '\033[30G'; p 'ーー'; s; pn
|
|
211
|
-
p 'overwrite + Erase-in-Line -->'; s 31 42; p 'X䀀䀀'; s 35 44; printf '\033[30G'; p 'ーー'; s; printf '\033[0K'; pn
|
|
212
|
-
pn
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
|
|
3
|
-
setlocal
|
|
4
|
-
cd %~dp0..
|
|
5
|
-
set Path=C:\Python27;C:\Program Files\Git\cmd;%Path%
|
|
6
|
-
|
|
7
|
-
call "%VS140COMNTOOLS%\VsDevCmd.bat" || goto :fail
|
|
8
|
-
|
|
9
|
-
rmdir /s/q build-libpty 2>NUL
|
|
10
|
-
mkdir build-libpty\win
|
|
11
|
-
mkdir build-libpty\win\x86
|
|
12
|
-
mkdir build-libpty\win\x86_64
|
|
13
|
-
mkdir build-libpty\win\xp
|
|
14
|
-
|
|
15
|
-
rmdir /s/q src\Release 2>NUL
|
|
16
|
-
rmdir /s/q src\.vs 2>NUL
|
|
17
|
-
del src\*.vcxproj src\*.vcxproj.filters src\*.sln src\*.sdf 2>NUL
|
|
18
|
-
|
|
19
|
-
call vcbuild.bat --msvc-platform Win32 --gyp-msvs-version 2015 --toolset v140_xp || goto :fail
|
|
20
|
-
copy src\Release\Win32\winpty.dll build-libpty\win\xp || goto :fail
|
|
21
|
-
copy src\Release\Win32\winpty-agent.exe build-libpty\win\xp || goto :fail
|
|
22
|
-
|
|
23
|
-
call vcbuild.bat --msvc-platform Win32 --gyp-msvs-version 2015 || goto :fail
|
|
24
|
-
copy src\Release\Win32\winpty.dll build-libpty\win\x86 || goto :fail
|
|
25
|
-
copy src\Release\Win32\winpty-agent.exe build-libpty\win\x86 || goto :fail
|
|
26
|
-
|
|
27
|
-
call vcbuild.bat --msvc-platform x64 --gyp-msvs-version 2015 || goto :fail
|
|
28
|
-
copy src\Release\x64\winpty.dll build-libpty\win\x86_64 || goto :fail
|
|
29
|
-
copy src\Release\x64\winpty-agent.exe build-libpty\win\x86_64 || goto :fail
|
|
30
|
-
|
|
31
|
-
echo success
|
|
32
|
-
goto :EOF
|
|
33
|
-
|
|
34
|
-
:fail
|
|
35
|
-
echo error: build failed
|
|
36
|
-
exit /b 1
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
|
|
3
|
-
REM -- Echo the git commit hash. If git isn't available for some reason,
|
|
4
|
-
REM -- output nothing instead.
|
|
5
|
-
|
|
6
|
-
git rev-parse HEAD >NUL 2>NUL && (
|
|
7
|
-
git rev-parse HEAD
|
|
8
|
-
) || (
|
|
9
|
-
echo none
|
|
10
|
-
)
|
|
11
|
-
|
|
12
|
-
REM -- Set ERRORLEVEL to 0 using this cryptic syntax.
|
|
13
|
-
(call )
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
@echo off
|
|
2
|
-
|
|
3
|
-
rem -- Echo the git commit hash. If git isn't available for some reason,
|
|
4
|
-
rem -- output nothing instead.
|
|
5
|
-
|
|
6
|
-
mkdir ..\gen 2>nul
|
|
7
|
-
|
|
8
|
-
set /p VERSION=<..\..\VERSION.txt
|
|
9
|
-
set COMMIT=%1
|
|
10
|
-
|
|
11
|
-
echo // AUTO-GENERATED BY %0 %*>..\gen\GenVersion.h
|
|
12
|
-
echo const char GenVersion_Version[] = "%VERSION%";>>..\gen\GenVersion.h
|
|
13
|
-
echo const char GenVersion_Commit[] = "%COMMIT%";>>..\gen\GenVersion.h
|
|
14
|
-
|
|
15
|
-
rem -- The winpty.gyp file expects the script to output the include directory,
|
|
16
|
-
rem -- relative to src.
|
|
17
|
-
echo gen
|
|
18
|
-
|
|
19
|
-
rem -- Set ERRORLEVEL to 0 using this cryptic syntax.
|
|
20
|
-
(call )
|