@qqbrowser/qbot-dsh 0.0.11 → 0.0.12
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/lib/bin.js +1 -1
- package/lib/{dump-config-BD79jvHi.js → dump-config-xQTUTTDD.js} +1 -1
- package/lib/{plugin-B3Ecl7VN.js → plugin-DNAeLZbb.js} +1 -1
- package/lib/profile-boot-BkordgJK.js +1 -0
- package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +1 -1
- package/node_modules/@deepseek-ai/cordis-plugin-hmr/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-agent/lib/index.js +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/lib/client.js +2 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +12 -12
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +2 -2
- package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-bash-local/lib/index.js +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 +6 -6
- package/node_modules/@deepseek-ai/dsh-client-connection/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +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 +2 -2
- 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 +6 -6
- 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 +1 -1
- 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 +11 -11
- 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 +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/lib/index.js +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 +13 -13
- 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/lib/index.js +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/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/lib/worker.cjs +4 -2
- package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +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 +7 -7
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-headless/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-home-quarantine-macos/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/index.js +4 -4
- 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/lib/worker.cjs +9 -7
- 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/invariant.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/lib/index.js +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 +2 -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/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +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/lib/index.js +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/lib/index.js +3 -3
- 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/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/lib/types-D2_FQYSK.js +1 -0
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +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/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session/lib/invariant.js +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/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/index.js +4 -4
- 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/lib/index.js +2 -2
- 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/lib/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-settings/lib/invariant.js +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/lib/index.js +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/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-spill-policy/lib/index.js +2 -2
- 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/lib/invariant.js +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/lib/index.js +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 +2 -2
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-time-context/lib/invariant.js +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/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +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/lib/index.js +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/lib/index.js +6 -6
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +26 -26
- 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/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{index-Dqw48FrP.js → index-BQQQ5Qt-.js} +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cpp-DddhVWhK.js +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{php-D-uCvoST.js → php-9bx0az3O.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{ruby-DEItuUFs.js → ruby-HDLHRjSL.js} +1 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/swift-C2oV4EkX.js +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{vendor-Cjbwl5VI.js → vendor-CeMKrCZm.js} +24 -24
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/LICENSE +21 -0
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/invariant.js +1 -0
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -0
- package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/index.js +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/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/lib/worker.cjs +3 -4
- package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace/lib/invariant.js +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
- package/package.json +1 -1
- package/lib/profile-boot-_PCyp_wB.js +0 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types-BjBvdldw.js +0 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cpp-DIPi6g--.js +0 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/swift-D82vCrfD.js +0 -1
- /package/lib/{profile-boot-B71dQloK.js → profile-boot-DDo03lXi.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var k=Object.defineProperty;var i=(e,t)=>k(e,"name",{value:t,configurable:!0});import y from"@deepseek-ai/schemastery";import{toFetchHandler as D}from"@deepseek-ai/dsh-host-apiproxy";import{Service as B}from"@deepseek-ai/cordis";import{RpcId as h,clientRequestSchema as C}from"@deepseek-ai/dsh-host-apiproxy/api";import{randomUUID as w}from"node:crypto";import R,{WebSocketServer as j}from"ws";const m="/api",v=`${m}/events.mux`,b=`${m}/events.host`,H=
|
|
2
|
-
`))}i(Z,"rejectWebSocketUpgrade");const K="client-connection",q=
|
|
1
|
+
var k=Object.defineProperty;var i=(e,t)=>k(e,"name",{value:t,configurable:!0});import y from"@deepseek-ai/schemastery";import{toFetchHandler as D}from"@deepseek-ai/dsh-host-apiproxy";import{Service as B}from"@deepseek-ai/cordis";import{RpcId as h,clientRequestSchema as C}from"@deepseek-ai/dsh-host-apiproxy/api";import{randomUUID as w}from"node:crypto";import R,{WebSocketServer as j}from"ws";const m="/api",v=`${m}/events.mux`,b=`${m}/events.host`,H=167772160;async function P(e,t,n,r=H){const o=new AbortController;t.on("close",()=>{t.writableEnded||o.abort()});const c=e.headers["content-length"];if(c!==void 0&&Number(c)>r){t.writeHead(413,{connection:"close"}),t.end(),e.destroy();return}const s=[];let a=0;for await(const f of e){const p=f;if(a+=p.byteLength,a>r){t.writeHead(413,{connection:"close"}),t.end(),e.destroy();return}s.push(p)}const u=new Request(new URL(e.url??"/","http://dsh.internal"),{method:e.method??"GET",headers:Object.fromEntries(Object.entries(e.headers).filter(([,f])=>typeof f=="string")),...s.length>0?{body:Buffer.concat(s)}:{},signal:o.signal}),d=await n.fetch(u);if(t.writeHead(d.status,Object.fromEntries(d.headers.entries())),d.body===null){t.end();return}for await(const f of d.body)t.write(f)||await new Promise(p=>{const l=i(()=>{t.off("drain",l),t.off("close",l),p()},"done");t.once("drain",l),t.once("close",l)});t.end()}i(P,"bridge");function M(e){if(e==="localhost"||e==="[::1]")return!0;const t=e.split(".");return t.length===4&&t[0]==="127"&&t.every(n=>/^\d{1,3}$/.test(n)&&Number(n)<=255)}i(M,"isLoopbackHostname");function S(e,t){if(e instanceof Headers)return e.get(t)??void 0;const n=e[t];return typeof n=="string"?n:void 0}i(S,"header");function E(e){try{return new URL(`http://${e}`)}catch{return}}i(E,"parseAuthority");function x(e){const t=E(e);if(!(t!==void 0&&T(e,t)===e.toLowerCase()))throw new Error(`client-connection: trustedHosts entry ${JSON.stringify(e)} is not a bare host[:port] authority`)}i(x,"assertTrustedAuthority");function T(e,t){const n=t.port!==""?t.port:new URL(`https://${e}`).port;return n===""?t.hostname:`${t.hostname}:${n}`}i(T,"canonicalAuthority");function F(e,t){return t.some(n=>{const r=E(n);return r===void 0?!1:T(n,r)===r.hostname?r.hostname===e.hostname:r.host===e.host})}i(F,"isTrustedAuthority");function g(e,t){const n=S(e.headers,"host");if(n===void 0)return!1;const r=E(n);if(r===void 0||!M(r.hostname)&&!F(r,t)||S(e.headers,"sec-fetch-site")==="cross-site")return!1;const o=S(e.headers,"origin");if(o===void 0)return!0;try{return new URL(o).host===r.host}catch{return!1}}i(g,"isTrustedApiRequest");const J=h("invalid-request"),W=/^\/[A-Za-z0-9._~-]+$/,V=/^[A-Za-z0-9_$.-]+$/;var I=class extends B{static{i(this,"HostConnectionService")}trustedHosts;interceptors=new Map;constructor(e,t){super(e,"connection"),this.trustedHosts=t}get rpc(){const e=this.ctx;return{handle:i((t,n,r)=>this.register(e,t,n,r),"handle"),intercept:i((t,n,r,o)=>this.registerInterceptor(e,t,n,r,o),"intercept")}}createSharedFetchHandler(e,t){return{fetch:i(n=>{const r=$(e,new URL(n.url).pathname),o=this.interceptors.get(e);return r===void 0||o===void 0||!o.matches(r)?t.fetch(n):o.options.authority==="loopback"&&!g(n,[])?Promise.resolve(new Response("forbidden",{status:403})):o.fetchHandler.fetch(n)},"fetch")}}register(e,t,n,r){z(t);const o=r.authority==="loopback"?[]:this.trustedHosts,c=N(t,n),s={kind:"prefix",path:t,handler:i(async(a,u)=>{if(!g(a,o)){u.writeHead(403),u.end("forbidden");return}await P(a,u,c)},"handler")};return e.effect(()=>e.webServer.register(s),`client-connection: ${t} rpc channel`)}registerInterceptor(e,t,n,r,o){if(t!=="/api")throw new Error(`connection: invalid shared RPC channel ${JSON.stringify(t)}`);const c={matches:n,fetchHandler:N(t,r),options:o};return e.effect(()=>{if(this.interceptors.has(t))throw new Error(`connection: shared RPC channel ${JSON.stringify(t)} already has an interceptor`);return this.interceptors.set(t,c),()=>{this.interceptors.delete(t)}},`client-connection: ${t} rpc interceptor`)}};function N(e,t){return{async fetch(n){const r=$(e,new URL(n.url).pathname);if(n.method!=="POST"||r===void 0)return new Response("not found",{status:404});if(n.headers.get("content-type")?.split(";",1)[0]?.trim().toLowerCase()!=="application/json")return new Response("content type must be application/json",{status:415});let o;try{o=await n.json()}catch{return new Response("body is not JSON",{status:400})}const c=C.safeParse(o);if(!c.success)return G(o,c.error.issues);const s=c.data;if(s.method!==r)return O(s.rpcId,{code:"bad-request",message:`method ${JSON.stringify(s.method)} does not match endpoint ${JSON.stringify(r)}`,details:{issues:[]}});try{const a=await t(r,s.payload,n.signal);return _(s.rpcId,a)}catch(a){return new Response(`handler failure: ${String(a)}`,{status:500})}}}}i(N,"rpcFetchHandler");function G(e,t){const n=e?.rpcId;return O(typeof n=="string"?h(n):J,{code:"bad-request",message:"invalid client-request message",details:{issues:t}})}i(G,"invalidEnvelopeResponse");function $(e,t){if(!t.startsWith(`${e}/`))return;const n=t.slice(e.length+1);if(!n.split("/").some(r=>r===""||r==="."||r===".."||!V.test(r)))return n}i($,"endpointFromPath");function O(e,t){return _(e,{ok:!1,error:t})}i(O,"errorResponse");function _(e,t){const n={type:"server-response",rpcId:e,result:t};return Response.json(n)}i(_,"fullResponse");function z(e){if(!W.test(e)||e==="/api")throw new Error(`connection: invalid or reserved RPC channel ${JSON.stringify(e)}`)}i(z,"assertChannel");function Q(e){return{type:"server-request",rpcId:e.rpcId,method:e.payload.type,payload:e.payload}}i(Q,"serverRequest");function A(e,t){return new Promise((n,r)=>{if(e.readyState!==R.OPEN){r(new Error("websocket downlink closed before frame delivery"));return}e.send(JSON.stringify(Q(t)),o=>{o?r(o):n()})})}i(A,"send");function Y(e){return{rpcId:h(w()),payload:{type:"stream/error",error:{code:"internal",message:String(e),details:{}}}}}i(Y,"failureFrame");var X=class{static{i(this,"WebSocketDownlinks")}api;server=new j({noServer:!0});pumps=new Set;constructor(e){this.api=e}handleMux(e,t,n){this.upgrade(e,t,n,r=>this.api.events.mux({rpcId:h(w()),payload:{}},r))}handleHost(e,t,n){this.upgrade(e,t,n,r=>this.api.events.host({rpcId:h(w()),payload:{}},r))}async close(){for(const e of this.server.clients)e.terminate();await new Promise((e,t)=>{this.server.close(n=>{n===void 0?e():t(n)})}),await Promise.all(this.pumps)}upgrade(e,t,n,r){this.server.handleUpgrade(e,t,n,o=>{const c=new AbortController;o.once("close",()=>{c.abort()}),o.once("error",()=>{c.abort()}),o.once("message",()=>{o.close(1008,"downlink only")});const s=this.pump(o,r(c.signal),c);this.pumps.add(s),s.then(()=>{this.pumps.delete(s)})})}async pump(e,t,n){try{for await(const r of t)await A(e,r)}catch(r){if(!n.signal.aborted)try{await A(e,Y(r))}catch{}}finally{n.abort(),e.readyState===R.OPEN&&e.close()}}};function Z(e){e.end(["HTTP/1.1 403 Forbidden","Connection: close","Content-Type: text/plain; charset=utf-8","Content-Length: 9","","forbidden"].join(`\r
|
|
2
|
+
`))}i(Z,"rejectWebSocketUpgrade");const K="client-connection",q=1048576;function L(e,t){const n=e.get("attachments");if(n===void 0)return;const r=Math.ceil(n.imageLimits.maxMessageImageBytes*4/3)+q;if(t<r)throw new Error(`client-connection maxRequestBodyBytes (${String(t)}) must be at least ${String(r)} for the configured aggregate image limit`)}i(L,"assertImageBodyCapacity");const ee=["webServer"],te=y.object({trustedHosts:y.array(String).default([]),maxRequestBodyBytes:y.natural().min(1).default(H)}),ne=new Set(["agentPreset.read","agentPreset.copy","agentPreset.openDocument","agentPreset.remove","host.pickDirectory","host.openPath","settings.describe","settings.openDocument","settings.update","settings.replace","settings.mutate","credentials.describe","credentials.set","credentials.unset","llm.discoverModels"]);function re(e,t){const n=t?.trustedHosts??[],r=t?.maxRequestBodyBytes??167772160;for(const s of n)x(s);e.get("apiProxy")!==void 0&&L(e,r);const o=new I(e,n).createSharedFetchHandler(m,{async fetch(s){const a=new URL(s.url).pathname,u=a.startsWith("/api/")?a.slice(5):void 0;if(u!==void 0&&ne.has(u)&&!g(s,[]))return new Response("forbidden",{status:403});if(s.method==="GET"&&(a===v||a===b))return new Response("upgrade required",{status:426,headers:{connection:"Upgrade",upgrade:"websocket"}});const d=e.get("apiProxy");return d===void 0?new Response("not found",{status:404}):D(d).fetch(s)}}),c={kind:"prefix",path:m,handler:i(async(s,a)=>{if(!g(s,n)){a.writeHead(403),a.end("forbidden");return}await P(s,a,o,r)},"handler")};e.effect(()=>e.webServer.register(c),"client-connection: /api route"),e.inject(["apiProxy"],s=>{L(s,r);const a=new X(s.apiProxy),u=i((d,f)=>{s.effect(()=>s.webServer.registerUpgrade({path:d,handler:i((p,l,U)=>{if(!g(p,n)){Z(l);return}return f(p,l,U)},"handler")}),`client-connection: ${d} WebSocket`)},"registerDownlink");s.effect(()=>()=>a.close(),"client-connection: WebSocket downlinks"),u(v,(d,f,p)=>{a.handleMux(d,f,p)}),u(b,(d,f,p)=>{a.handleHost(d,f,p)})})}i(re,"apply");export{m as API_PATH,te as Config,b as HOST_EVENTS_PATH,I as HostConnectionService,v as MUX_EVENTS_PATH,re as apply,ee as inject,K as name};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-client-connection","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-client-connection","version":"0.0.12","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":[],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"ws":"^8.21.0","@deepseek-ai/dsh-attachment":"^0.0.12","@deepseek-ai/dsh-commands":"^0.0.12","@deepseek-ai/dsh-session":"^0.0.12","@deepseek-ai/dsh-llm":"^0.0.12","@deepseek-ai/dsh-tools":"^0.0.12","@deepseek-ai/schemastery":"^3.18.1","@deepseek-ai/dsh-host-apiproxy":"^0.0.12"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.12","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-host-webserver":"^0.0.12"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var b=Object.defineProperty;var a=(c,l)=>b(c,"name",{value:l,configurable:!0});window.__ModuleLoader__.load({id:"@deepseek-ai/dsh-client-hmr",factory:a(c=>{var l={exports:{}},i=l.exports;Object.defineProperty(i,Symbol.toStringTag,{value:"Module"});const d="/plugins/events",m="client-hmr",p=["loader","modules"];function g(r,n){for(const s of r.entries())if(s.options.name===n)return s}a(g,"findEntry");function h(r){for(const n of document.querySelectorAll("style[data-plugin]"))n.getAttribute("data-plugin")===r&&n.remove()}a(h,"removeOwnedStyles");function y(r){const n=r.modules,s=r.loader;async function v(e){const t=g(s,e);if(t===void 0){r.logger.warn(`client-hmr: rebuilt frame for unknown entry "${e}" (not in the loader tree)`);return}n.invalidate(e),await n.prefetch(e);const o=t.fiber;if(o!==void 0){const f=o.runtime;for(f!==null&&t.ctx.registry.delete(f.callback);o.inertia!==void 0;)await o.inertia;delete t.fiber}h(e),await t.refresh(),await t.fiber?.await()}a(v,"reload");let u=Promise.resolve();const w=a(e=>{e.type==="rebuilt"&&(u=u.then(()=>v(e.id)).catch(t=>{r.logger.error(`client-hmr: reload of "${e.id}" failed`),r.logger.error(t)}))},"handle");r.effect(()=>{const e=new EventSource(d);return e.addEventListener("message",t=>{let o;try{o=JSON.parse(t.data)}catch{r.logger.warn(`client-hmr: unparseable event frame: ${t.data}`);return}w(o)}),()=>{e.close()}},"client-hmr: event source")}return a(y,"apply"),i.EVENTS_ENDPOINT=d,i.apply=y,i.inject=p,i.name=m,l.exports},"factory")});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-client-hmr","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-client-hmr","version":"0.0.12","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":[],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-client-modules":"^0.0.12","@deepseek-ai/dsh-host-webserver":"^0.0.12","@deepseek-ai/dsh-invariants":"^0.0.12","@deepseek-ai/cordis-plugin-loader":"^1.0.2","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _e=Object.defineProperty;var l=(S,k)=>_e(S,"name",{value:k,configurable:!0});window.__ModuleLoader__.load({id:"@deepseek-ai/dsh-client-locale",factory:l(S=>{var k={exports:{}},w=k.exports;Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});let _=S("react/jsx-runtime"),W=S("react"),R=S("@deepseek-ai/dsh-client-ui-primitives"),Y=S("@deepseek-ai/dsh-client-runtime/client");function y(e){return e==null}l(y,"isNullable");function N(e){return e&&typeof e=="object"&&!Array.isArray(e)}l(N,"isPlainObject");function Q(e,t){return Object.fromEntries(Object.entries(e).filter(([r,n])=>t(r,n)))}l(Q,"filterKeys");function b(e,t){return Object.fromEntries(Object.entries(e).map(([r,n])=>[r,t(n,r)]))}l(b,"mapValues");function X(e,t,r){if(!t)return{...e};const n={};for(const i of t)(r||e[i]!==void 0)&&(n[i]=e[i]);return n}l(X,"pick");function x(e,t){return arguments.length===1?r=>x(e,r):e in globalThis&&t instanceof globalThis[e]||Object.prototype.toString.call(t).slice(8,-1)===e}l(x,"is");function A(e){return x("ArrayBuffer",e)||x("SharedArrayBuffer",e)}l(A,"isArrayBufferLike");function Z(e){return A(e)||ArrayBuffer.isView(e)}l(Z,"isArrayBufferSource");let g;(function(e){e.is=A,e.isSource=Z;function t(o){return ArrayBuffer.isView(o)?o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength):o}l(t,"fromSource"),e.fromSource=t;function r(o){if(o=t(o),typeof Buffer<"u")return Buffer.from(o).toString("base64");let f="";const h=new Uint8Array(o);for(let m=0;m<h.byteLength;m++)f+=String.fromCharCode(h[m]);return btoa(f)}l(r,"toBase64"),e.toBase64=r;function n(o){return typeof Buffer<"u"?t(Buffer.from(o,"base64")):Uint8Array.from(atob(o),f=>f.charCodeAt(0))}l(n,"fromBase64"),e.fromBase64=n;function i(o){return o=t(o),typeof Buffer<"u"?Buffer.from(o).toString("hex"):Array.from(new Uint8Array(o),f=>f.toString(16).padStart(2,"0")).join("")}l(i,"toHex"),e.toHex=i;function s(o){if(typeof Buffer<"u")return t(Buffer.from(o,"hex"));const f=o.length%2===0?o:o.slice(0,o.length-1),h=[];for(let m=0;m<f.length;m+=2)h.push(parseInt(`${f[m]}${f[m+1]}`,16));return Uint8Array.from(h).buffer}l(s,"fromHex"),e.fromHex=s})(g||(g={})),g.fromBase64,g.toBase64,g.fromHex,g.toHex;function D(e,t=new Map){if(!e||typeof e!="object")return e;if(x("Date",e))return new Date(e.valueOf());if(x("RegExp",e))return new RegExp(e.source,e.flags);if(A(e))return e.slice(0);if(ArrayBuffer.isView(e))return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);const r=t.get(e);if(r)return r;if(Array.isArray(e)){const i=[];return t.set(e,i),e.forEach((s,o)=>{i[o]=Reflect.apply(D,null,[s,t])}),i}const n=Object.create(Object.getPrototypeOf(e));t.set(e,n);for(const i of Reflect.ownKeys(e)){const s={...Reflect.getOwnPropertyDescriptor(e,i)};"value"in s&&(s.value=Reflect.apply(D,null,[s.value,t])),Reflect.defineProperty(n,i,s)}return n}l(D,"clone");function $(e,t,r){if(e===t||!r&&y(e)&&y(t))return!0;if(typeof e!=typeof t||typeof e!="object"||!e||!t)return!1;function n(i,s){return i(e)?i(t)?s(e,t):!1:i(t)?!1:void 0}return l(n,"check"),n(Array.isArray,(i,s)=>i.length===s.length&&i.every((o,f)=>$(o,s[f])))??n(x("Date"),(i,s)=>i.valueOf()===s.valueOf())??n(x("RegExp"),(i,s)=>i.source===s.source&&i.flags===s.flags)??n(A,(i,s)=>{if(i.byteLength!==s.byteLength)return!1;const o=new Uint8Array(i),f=new Uint8Array(s);for(let h=0;h<o.length;h++)if(o[h]!==f[h])return!1;return!0})??Object.keys({...e,...t}).every(i=>$(e[i],t[i],r))}l($,"deepEqual");let T;(function(e){e.millisecond=1;const t=e.second=1e3,r=e.minute=t*60,n=e.hour=r*60,i=e.day=n*24,s=e.week=i*7;let o=new Date().getTimezoneOffset();function f(a){o=a}l(f,"setTimezoneOffset"),e.setTimezoneOffset=f;function h(){return o}l(h,"getTimezoneOffset"),e.getTimezoneOffset=h;function m(a=new Date,u){return typeof a=="number"&&(a=new Date(a)),u===void 0&&(u=o),Math.floor((a.valueOf()/r-u)/1440)}l(m,"getDateNumber"),e.getDateNumber=m;function ge(a,u){const Se=new Date(a*i);return u===void 0&&(u=o),new Date(+Se+u*r)}l(ge,"fromDateNumber"),e.fromDateNumber=ge;const me=/\d+(?:\.\d+)?/.source,be=new RegExp(`^${["w(?:eek(?:s)?)?","d(?:ay(?:s)?)?","h(?:our(?:s)?)?","m(?:in(?:ute)?(?:s)?)?","s(?:ec(?:ond)?(?:s)?)?"].map(a=>`(${me}${a})?`).join("")}$`);function G(a){const u=be.exec(a);return u?(parseFloat(u[1])*s||0)+(parseFloat(u[2])*i||0)+(parseFloat(u[3])*n||0)+(parseFloat(u[4])*r||0)+(parseFloat(u[5])*t||0):0}l(G,"parseTime"),e.parseTime=G;function we(a){const u=G(a);return u?a=Date.now()+u:/^\d{1,2}(:\d{1,2}){1,2}$/.test(a)?a=`${new Date().toLocaleDateString()}-${a}`:/^\d{1,2}-\d{1,2}-\d{1,2}(:\d{1,2}){1,2}$/.test(a)&&(a=`${new Date().getFullYear()}-${a}`),a?new Date(a):new Date}l(we,"parseDate"),e.parseDate=we;function xe(a){const u=Math.abs(a);return u>=i-n/2?Math.round(a/i)+"d":u>=n-r/2?Math.round(a/n)+"h":u>=r-t/2?Math.round(a/r)+"m":u>=t?Math.round(a/t)+"s":a+"ms"}l(xe,"format"),e.format=xe;function v(a,u=2){return a.toString().padStart(u,"0")}l(v,"toDigits"),e.toDigits=v;function ve(a,u=new Date){return a.replace("yyyy",u.getFullYear().toString()).replace("yy",u.getFullYear().toString().slice(2)).replace("MM",v(u.getMonth()+1)).replace("dd",v(u.getDate())).replace("hh",v(u.getHours())).replace("mm",v(u.getMinutes())).replace("ss",v(u.getSeconds())).replace("SSS",v(u.getMilliseconds(),3))}l(ve,"template"),e.template=ve})(T||(T={}));const E=Symbol.for("schemastery"),U=Symbol.for("ValidationError");globalThis.__schemastery_index__??=0,globalThis.__schemastery_refs__=void 0;var p=class extends TypeError{static{l(this,"ValidationError")}options;name="ValidationError";constructor(e,t){let r="$";for(const n of t.path||[])typeof n=="string"?r+="."+n:typeof n=="number"?r+="["+n+"]":typeof n=="symbol"&&(r+=`[Symbol(${n.toString()})]`);r.startsWith(".")&&(r=r.slice(1)),super((r==="$"?"":`${r} `)+e),this.options=t}static is(e){return!!e?.[U]}};Object.defineProperty(p.prototype,U,{value:!0});const c=l(function(e){const t=l(function(r,n={}){return c.resolve(r,t,n)[0]},"schema");if(e.refs){const r=b(e.refs,i=>new c(i)),n=l(i=>r[i],"getRef");for(const i in r){const s=r[i];s.sKey=n(s.sKey),s.inner=n(s.inner),s.list=s.list&&s.list.map(n),s.dict=s.dict&&b(s.dict,n)}return r[e.uid]}if(Object.assign(t,e),typeof t.callback=="string")try{t.callback=new Function("return "+t.callback)()}catch{}return Object.defineProperty(t,"uid",{value:globalThis.__schemastery_index__++}),Object.setPrototypeOf(t,c.prototype),t.meta||={},t.toString=t.toString.bind(t),t},"Schema");c.prototype=Object.create(Function.prototype),c.prototype[E]=!0,Object.defineProperty(c.prototype,"~standard",{get(){return{version:1,vendor:"schemastery",validate:l(e=>{try{return{value:c.resolve(e,this,{})[0]}}catch(t){if(p.is(t))return{issues:[{message:t.message,path:t.options.path}]};throw t}},"validate")}}}),c.ValidationError=p,c.prototype.toJSON=l(function(){if(globalThis.__schemastery_refs__)return globalThis.__schemastery_refs__[this.uid]??=JSON.parse(JSON.stringify({...this})),this.uid;globalThis.__schemastery_refs__={[this.uid]:{...this}},globalThis.__schemastery_refs__[this.uid]=JSON.parse(JSON.stringify({...this}));const t={uid:this.uid,refs:globalThis.__schemastery_refs__};return globalThis.__schemastery_refs__=void 0,t},"toJSON"),c.prototype.set=l(function(t,r){return this.dict[t]=r,this},"set"),c.prototype.push=l(function(t){return this.list.push(t),this},"push");function ee(e,t){const r=typeof e=="string"?{"":e}:{...e};for(const n in t){const i=t[n];i?.$description||i?.$desc?r[n]=i.$description||i.$desc:typeof i=="string"&&(r[n]=i)}return r}l(ee,"mergeDesc");function O(e){return e?.$value??e?.$inner}l(O,"getInner");function F(e){return Q(e??{},t=>!t.startsWith("$"))}l(F,"extractKeys"),c.prototype.i18n=l(function(t){const r=c(this),n=ee(r.meta.description,t);return Object.keys(n).length&&(r.meta.description=n),r.dict&&(r.dict=b(r.dict,(i,s)=>i.i18n(b(t,o=>O(o)?.[s]??o?.[s])))),r.list&&(r.list=r.list.map((i,s)=>i.i18n(b(t,(o={})=>Array.isArray(O(o))?O(o)[s]:Array.isArray(o)?o[s]:F(o))))),r.inner&&(r.inner=r.inner.i18n(b(t,i=>O(i)?O(i):F(i)))),r.sKey&&(r.sKey=r.sKey.i18n(b(t,i=>i?.$key))),r},"i18n"),c.prototype.extra=l(function(t,r){const n=c(this);return n.meta={...n.meta,[t]:r},n},"extra");for(const e of["required","disabled","collapse","hidden","loose"])Object.assign(c.prototype,{[e](t=!0){const r=c(this);return r.meta={...r.meta,[e]:t},r}});c.prototype.deprecated=l(function(){const t=c(this);return t.meta.badges||=[],t.meta.badges.push({text:"deprecated",type:"danger"}),t},"deprecated"),c.prototype.experimental=l(function(){const t=c(this);return t.meta.badges||=[],t.meta.badges.push({text:"experimental",type:"warning"}),t},"experimental"),c.prototype.pattern=l(function(t){const r=c(this),n=X(t,["source","flags"]);return r.meta={...r.meta,pattern:n},r},"pattern"),c.prototype.simplify=l(function(t){if($(t,this.meta.default,this.type==="dict"))return null;if(y(t))return t;if(this.type==="object"||this.type==="dict"){const r={};for(const n in t){const i=(this.type==="object"?this.dict[n]:this.inner)?.simplify(t[n]);(this.type==="dict"||!y(i))&&(r[n]=i)}return $(r,this.meta.default,this.type==="dict")?null:r}else if(this.type==="array"||this.type==="tuple"){const r=[];return t.forEach((n,i)=>{const s=this.type==="array"?this.inner:this.list[i],o=s?s.simplify(n):n;r.push(o)}),r}else if(this.type==="intersect"){const r={};for(const n of this.list)Object.assign(r,n.simplify(t));return r}else if(this.type==="union")for(const r of this.list)try{return c.resolve(t,r,{}),r.simplify(t)}catch{}return t},"simplify"),c.prototype.toString=l(function(t){return K[this.type]?.(this,t)??`Schema<${this.type}>`},"toString"),c.prototype.role=l(function(e,t){const r=c(this);return r.meta={...r.meta,role:e,extra:t},r},"role");for(const e of["default","link","comment","description","max","min","step"])Object.assign(c.prototype,{[e](t){const r=c(this);return r.meta={...r.meta,[e]:t},r}});const J={};c.extend=l(function(t,r){J[t]=r},"extend"),c.resolve=l(function(t,r,n={},i=!1){if(!r)return[t];if(n.ignore?.(t,r))return[t];if(y(t)&&r.type!=="lazy"){if(r.meta.required)throw new p("missing required value",n);let o=r,f=r.meta.default;for(;o?.type==="intersect"&&y(f);)o=o.list[0],f=o?.meta.default;if(y(f))return[t];t=D(f)}const s=J[r.type];if(!s)throw new p(`unsupported type "${r.type}"`,n);try{return s(t,r,n,i)}catch(o){if(!r.meta.loose)throw o;return[r.meta.default]}},"resolve"),c.from=l(function(t){if(y(t))return c.any();if(["string","number","boolean"].includes(typeof t))return c.const(t).required();if(t[E])return t;if(typeof t=="function")switch(t){case String:return c.string().required();case Number:return c.number().required();case Boolean:return c.boolean().required();case Function:return c.function().required();default:return c.is(t).required()}else throw new TypeError(`cannot infer schema from ${t}`)},"from"),c.lazy=l(function(t){const r=l(()=>(n.inner[E]||(n.inner=n.builder(),n.inner.meta={...n.meta,...n.inner.meta}),n.inner.toJSON()),"toJSON"),n=new c({type:"lazy",builder:t,inner:{toJSON:r}});return n},"lazy"),c.natural=l(function(){return c.number().step(1).min(0)},"natural"),c.percent=l(function(){return c.number().step(.01).min(0).max(1).role("slider")},"percent"),c.date=l(function(){return c.union([c.is(Date),c.transform(c.string().role("datetime"),(t,r)=>{const n=new Date(t);if(isNaN(+n))throw new p(`invalid date "${t}"`,r);return n},!0)])},"date"),c.regExp=l(function(t=""){return c.union([c.is(RegExp),c.transform(c.string().role("regexp",{flag:t}),(r,n)=>{try{return new RegExp(r,t)}catch(i){throw new p(i.message,n)}},!0)])},"regExp"),c.arrayBuffer=l(function(t){return c.union([c.is(ArrayBuffer),c.is(SharedArrayBuffer),c.transform(c.any(),(r,n)=>{if(g.isSource(r))return g.fromSource(r);throw new p(`expected ArrayBufferSource but got ${r}`,n)},!0),...t?[c.transform(c.string(),(r,n)=>{try{return t==="base64"?g.fromBase64(r):g.fromHex(r)}catch(i){throw new p(i.message,n)}},!0)]:[]])},"arrayBuffer"),c.extend("lazy",(e,t,r,n)=>(t.inner[E]||(t.inner=t.builder(),t.inner.meta={...t.meta,...t.inner.meta}),c.resolve(e,t.inner,r,n))),c.extend("any",e=>[e]),c.extend("never",(e,t,r)=>{throw new p(`expected nullable but got ${e}`,r)}),c.extend("const",(e,{value:t},r)=>{if($(e,t))return[t];throw new p(`expected ${t} but got ${e}`,r)});function M(e,t,r,n,i=!1){const{max:s=1/0,min:o=-1/0}=t;if(e>s)throw new p(`expected ${r} <= ${s} but got ${e}`,n);if(e<o&&!i)throw new p(`expected ${r} >= ${o} but got ${e}`,n)}l(M,"checkWithinRange"),c.extend("string",(e,{meta:t},r)=>{if(typeof e!="string")throw new p(`expected string but got ${e}`,r);if(t.pattern){const n=new RegExp(t.pattern.source,t.pattern.flags);if(!n.test(e))throw new p(`expect string to match regexp ${n}`,r)}return M(e.length,t,"string length",r),[e]});function B(e,t){const r=e.toString();if(r.includes("e"))return e*Math.pow(10,t);const n=r.indexOf(".");if(n===-1)return e*Math.pow(10,t);const i=r.slice(n+1),s=r.slice(0,n);return i.length<=t?+(s+i.padEnd(t,"0")):+(s+i.slice(0,t)+"."+i.slice(t))}l(B,"decimalShift");function te(e,t,r){if(r=Math.abs(r),!/^\d+\.\d+$/.test(r.toString()))return(e-t)%r===0;const n=r.toString().indexOf("."),i=r.toString().slice(n+1).length;return Math.abs(B(e,i)-B(t,i))%B(r,i)===0}l(te,"isMultipleOf"),c.extend("number",(e,{meta:t},r)=>{if(typeof e!="number")throw new p(`expected number but got ${e}`,r);M(e,t,"number",r);const{step:n}=t;if(n&&!te(e,t.min??0,n))throw new p(`expected number multiple of ${n} but got ${e}`,r);return[e]}),c.extend("boolean",(e,t,r)=>{if(typeof e=="boolean")return[e];throw new p(`expected boolean but got ${e}`,r)}),c.extend("bitset",(e,{bits:t,meta:r},n)=>{let i=0,s=[];if(typeof e=="number"){i=e;for(const o in t)e&t[o]&&s.push(o)}else if(Array.isArray(e)){s=e;for(const o of s){if(typeof o!="string")throw new p(`expected string but got ${o}`,n);o in t&&(i|=t[o])}}else throw new p(`expected number or array but got ${e}`,n);return i===r.default?[i]:[i,s]}),c.extend("function",(e,t,r)=>{if(typeof e=="function")return[e];throw new p(`expected function but got ${e}`,r)}),c.extend("is",(e,{constructor:t},r)=>{if(typeof t=="function"){if(e instanceof t)return[e];throw new p(`expected ${t.name} but got ${e}`,r)}else{if(y(e))throw new p(`expected ${t} but got ${e}`,r);let n=Object.getPrototypeOf(e);for(;n;){if(n.constructor?.name===t)return[e];n=Object.getPrototypeOf(n)}throw new p(`expected ${t} but got ${e}`,r)}});function L(e,t,r,n){try{const[i,s]=c.resolve(e[t],r,{...n,path:[...n.path||[],t]});return s!==void 0&&(e[t]=s),i}catch(i){if(!n?.autofix)throw i;return delete e[t],r.meta.default}}l(L,"property"),c.extend("array",(e,{inner:t,meta:r},n)=>{if(!Array.isArray(e))throw new p(`expected array but got ${e}`,n);return M(e.length,r,"array length",n,!y(t.meta.default)),[e.map((i,s)=>L(e,s,t,n))]}),c.extend("dict",(e,{inner:t,sKey:r},n,i)=>{if(!N(e))throw new p(`expected object but got ${e}`,n);const s={};for(const o in e){let f;try{f=c.resolve(o,r,n)[0]}catch(h){if(i)continue;throw h}s[f]=L(e,o,t,n),e[f]=e[o],o!==f&&delete e[o]}return[s]}),c.extend("tuple",(e,{list:t},r,n)=>{if(!Array.isArray(e))throw new p(`expected array but got ${e}`,r);const i=t.map((s,o)=>L(e,o,s,r));return n?[i]:(i.push(...e.slice(t.length)),[i])});function C(e,t){for(const r in t)r in e||(e[r]=t[r])}l(C,"merge"),c.extend("object",(e,{dict:t},r,n)=>{if(!N(e))throw new p(`expected object but got ${e}`,r);const i={};for(const s in t){const o=L(e,s,t[s],r);(!y(o)||s in e)&&(i[s]=o)}return n||C(i,e),[i]}),c.extend("union",(e,{list:t,toString:r},n,i)=>{const s=[];for(const o of t)try{return c.resolve(e,o,n,i)}catch(f){s.push(f)}throw new p(`expected ${r()} but got ${JSON.stringify(e)}`,n)}),c.extend("intersect",(e,{list:t,toString:r},n,i)=>{if(!t.length)return[e];let s;for(const o of t){const f=c.resolve(e,o,n,!0)[0];if(!y(f))if(y(s))s=f;else{if(typeof s!=typeof f)throw new p(`expected ${r()} but got ${JSON.stringify(e)}`,n);if(typeof f=="object")C(s??={},f);else if(s!==f)throw new p(`expected ${r()} but got ${JSON.stringify(e)}`,n)}}return!i&&N(e)&&C(s,e),[s]}),c.extend("transform",(e,{inner:t,callback:r,preserve:n},i)=>{const[s,o=e]=c.resolve(e,t,i,!0);return n?[r(s)]:[r(s),r(o)]});const K={};function d(e,t,r){K[e]=r,Object.assign(c,{[e](...n){const i=new c({type:e});return t.forEach((s,o)=>{switch(s){case"sKey":i.sKey=n[o]??c.string();break;case"inner":i.inner=c.from(n[o]);break;case"list":i.list=n[o].map(c.from);break;case"dict":i.dict=b(n[o],c.from);break;case"bits":i.bits={};for(const f in n[o])typeof n[o][f]=="number"&&(i.bits[f]=n[o][f]);break;case"callback":{const f=i.callback=n[o];f.toJSON||=()=>f.toString();break}case"constructor":{const f=i.constructor=n[o];typeof f=="function"&&(f.toJSON||=()=>f.name);break}default:i[s]=n[o]}}),e==="object"||e==="dict"?i.meta.default={}:e==="array"||e==="tuple"?i.meta.default=[]:e==="bitset"&&(i.meta.default=0),i}})}l(d,"defineMethod"),d("is",["constructor"],({constructor:e})=>typeof e=="function"?e.name:e),d("any",[],()=>"any"),d("never",[],()=>"never"),d("const",["value"],({value:e})=>typeof e=="string"?JSON.stringify(e):e),d("string",[],()=>"string"),d("number",[],()=>"number"),d("boolean",[],()=>"boolean"),d("bitset",["bits"],()=>"bitset"),d("function",[],()=>"function"),d("array",["inner"],({inner:e})=>`${e.toString(!0)}[]`),d("dict",["inner","sKey"],({inner:e,sKey:t})=>`{ [key: ${t.toString()}]: ${e.toString()} }`),d("tuple",["list"],({list:e})=>`[${e.map(t=>t.toString()).join(", ")}]`),d("object",["dict"],({dict:e})=>Object.keys(e).length===0?"{}":`{ ${Object.entries(e).map(([t,r])=>`${t}${r.meta.required?"":"?"}: ${r.toString()}`).join(", ")} }`),d("union",["list"],({list:e},t)=>{const r=e.map(({toString:n})=>n()).join(" | ");return t?`(${r})`:r}),d("intersect",["list"],({list:e})=>`${e.map(t=>t.toString(!0)).join(" & ")}`),d("transform",["inner","callback","preserve"],({inner:e},t)=>e.toString(t));const re="locale",P="preference",ne=["zh","en"];c.object({[P]:c.union([...ne]).required(!1)});const ie={ok:"确定",cancel:"取消",close:"关闭",copy:"复制",copied:"复制成功",retry:"重试",loading:"加载中…","load.failed":"加载失败",submit:"提交",submitting:"正在提交…",next:"下一步",previous:"上一步",skip:"跳过",delete:"删除",edit:"编辑",save:"保存",search:"搜索",more:"更多",collapse:"收起",expand:"展开",back:"返回",unknown:"未知",none:"无",truncated:"已截断"},oe={ok:"OK",cancel:"Cancel",close:"Close",copy:"Copy",copied:"Copied",retry:"Retry",loading:"Loading…","load.failed":"Failed to load",submit:"Submit",submitting:"Submitting…",next:"Next",previous:"Previous",skip:"Skip",delete:"Delete",edit:"Edit",save:"Save",search:"Search",more:"More",collapse:"Collapse",expand:"Expand",back:"Back",unknown:"Unknown",none:"None",truncated:"Truncated"},se={"language.title":"语言"},ce={"language.title":"Language"},le=".j_Uvsa_row{border-bottom:1px solid var(--dsw-alias-border-l2);align-items:center;gap:8px;padding:16px 0;display:flex}.j_Uvsa_rowText{flex-direction:column;flex:1;gap:4px;min-width:0;padding-right:48px;display:flex}.j_Uvsa_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:400;line-height:22px}.j_Uvsa_selector{background:var(--dsw-alias-bg-module-platform);height:36px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;border:none;border-radius:18px;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.j_Uvsa_selector:hover{background:var(--dsw-alias-interactive-bg-hover)}.j_Uvsa_chevron{flex:none}",I="@deepseek-ai/dsh-client-locale/LanguageRow.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(I)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-locale",e.dataset.pluginCss=I,e.textContent=le,document.head.appendChild(e)}var j={row:"j_Uvsa_row",title:"j_Uvsa_title",selector:"j_Uvsa_selector",rowText:"j_Uvsa_rowText",chevron:"j_Uvsa_chevron"};function fe({t:e,setLocale:t,useStore:r}){const n=r(h=>h.active),i=r(h=>h.options),[s,o]=(0,W.useState)(!1),f=i.find(h=>h.id===n)?.label??n;return(0,_.jsxs)("div",{className:j.row,children:[(0,_.jsx)("div",{className:j.rowText,children:(0,_.jsx)("div",{className:j.title,children:e("language.title")})}),(0,_.jsx)(R.Menu,{open:s,onClose:l(()=>{o(!1)},"onClose"),items:i.map(h=>({id:h.id,label:h.label})),selectedId:n,onSelect:l(h=>{t(h),o(!1)},"onSelect"),align:"end",portal:!0,anchor:(0,_.jsxs)("button",{type:"button",className:j.selector,"aria-haspopup":"menu","aria-expanded":s,onClick:l(()=>{o(h=>!h)},"onClick"),children:[f,(0,_.jsx)(R.IconChevronDownOutline14,{className:j.chevron})]})})]})}l(fe,"LanguageRow");function ae(){return(0,Y.defineStore)({init:l(()=>({active:"",options:[],revision:-1}),"init"),actions:{sync:l((e,t,r,n)=>{n<=e.revision||(e.active=t,e.options=r,e.revision=n)},"sync")}})}l(ae,"createLanguageRowStore");const ue="zh",q="common",z="settings.locale",V=Object.freeze([{id:"zh",label:"中文"},{id:"en",label:"English"}]);var H=class{static{l(this,"LocaleRuntime")}dicts=new Map;bound=new Map;snapshot;listeners=new Set;ctx;host;provisional;constructor(e,t){this.ctx=e,this.host=t,this.provisional=pe(),this.snapshot=Object.freeze({active:this.provisional,locales:V,revision:0}),t!==void 0&&(e.effect(()=>t.subscribe(()=>{this.adopt(t)}),"locale: settings scope adoption"),this.adopt(t))}getLocale(){return this.snapshot}getSnapshot(){return this.snapshot}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setLocale(e){const t=this.snapshot.locales.find(r=>r.id===e);if(t===void 0)throw new Error(`locale "${e}" is not registered`);this.snapshot.active!==t.id&&(this.publish(t.id,!0),this.host?.set(P,t.id))}adopt(e){const t=e.getSnapshot().value;if(t===void 0)return;const r=t.preference??this.provisional;this.snapshot.active!==r&&this.publish(r,!0)}register(e,t,r){const n=typeof t=="string"?[[t,r]]:Object.entries(t);let i=this.dicts.get(e);i||(i=new Map,this.dicts.set(e,i));for(const[s]of n)if(i.has(s))throw new Error(`locale namespace "${e}" already has locale "${s}"`);for(const[s,o]of n)i.set(s,o);return this.publish(this.snapshot.active,!1),()=>{const s=this.dicts.get(e);if(!s)return;let o=!1;for(const[f,h]of n)s.get(f)===h&&(s.delete(f),o=!0);o&&this.publish(this.snapshot.active,!1)}}bind(e){let t=this.bound.get(e);return t||(t=l((r,n)=>this.translate(e,r,n),"t"),this.bound.set(e,t),t)}translate(e,t,r){const n=this.lookup(e,t)??(e!=="common"?this.lookup("common",t):void 0)??t;return r?n.replace(/\{(\w+)\}/g,(i,s)=>s in r?String(r[s]):i):n}lookup(e,t){const r=this.dicts.get(e);return r?.get(this.snapshot.active)?.[t]??r?.get("zh")?.[t]}publish(e,t){this.snapshot=Object.freeze({active:e,locales:this.snapshot.locales,revision:this.snapshot.revision+1}),t&&this.ctx.emit("locale/change",this.snapshot);for(const r of[...this.listeners])try{r()}catch(n){console.error("locale subscriber crashed:",n)}}};function pe(){return he()??"zh"}l(pe,"resolveInitialLocale");function he(){if(!(typeof window>"u"))for(const e of[...navigator.languages??[],navigator.language]){const t=e.toLowerCase().split("-")[0],r=V.find(n=>n.id===t);if(r)return r.id}}l(he,"detectBrowserLocale");const de=["slots","connection","remote","settingsScope"];function ye(e){const t=new H(e,e.settingsScope.bind({namespace:re}));t.register(q,{zh:ie,en:oe}),t.register(z,{zh:se,en:ce}),e.provide("locale",t),e.slots.installLocale(t);const r=ae();let n;const i=l(o=>{n?.sync(o.active,o.locales.map(f=>({id:f.id,label:f.label})),o.revision)},"sync");e.on("locale/change",i);const s=l(o=>(n=o,i(t.getLocale()),{setLocale:l(f=>{t.setLocale(f)},"setLocale")}),"injected");e.slots.inject("settings.general.item",()=>e.slots.register({name:"settings.general.item",id:"language",order:0,store:r,locale:z,inject:s},fe))}return l(ye,"apply"),w.COMMON_NS=q,w.FALLBACK_LOCALE=ue,w.LocaleRuntime=H,w.SETTINGS_NS=z,w.apply=ye,w.inject=de,k.exports},"factory")});
|
|
1
|
+
var _e=Object.defineProperty;var l=(S,k)=>_e(S,"name",{value:k,configurable:!0});window.__ModuleLoader__.load({id:"@deepseek-ai/dsh-client-locale",factory:l(S=>{var k={exports:{}},w=k.exports;Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});let _=S("react/jsx-runtime"),W=S("react"),R=S("@deepseek-ai/dsh-client-ui-primitives"),Y=S("@deepseek-ai/dsh-client-runtime/client");function y(e){return e==null}l(y,"isNullable");function N(e){return e&&typeof e=="object"&&!Array.isArray(e)}l(N,"isPlainObject");function Q(e,t){return Object.fromEntries(Object.entries(e).filter(([r,n])=>t(r,n)))}l(Q,"filterKeys");function b(e,t){return Object.fromEntries(Object.entries(e).map(([r,n])=>[r,t(n,r)]))}l(b,"mapValues");function X(e,t,r){if(!t)return{...e};const n={};for(const i of t)(r||e[i]!==void 0)&&(n[i]=e[i]);return n}l(X,"pick");function x(e,t){return arguments.length===1?r=>x(e,r):e in globalThis&&t instanceof globalThis[e]||Object.prototype.toString.call(t).slice(8,-1)===e}l(x,"is");function A(e){return x("ArrayBuffer",e)||x("SharedArrayBuffer",e)}l(A,"isArrayBufferLike");function Z(e){return A(e)||ArrayBuffer.isView(e)}l(Z,"isArrayBufferSource");let g;(function(e){e.is=A,e.isSource=Z;function t(o){return ArrayBuffer.isView(o)?o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength):o}l(t,"fromSource"),e.fromSource=t;function r(o){if(o=t(o),typeof Buffer<"u")return Buffer.from(o).toString("base64");let f="";const h=new Uint8Array(o);for(let m=0;m<h.byteLength;m++)f+=String.fromCharCode(h[m]);return btoa(f)}l(r,"toBase64"),e.toBase64=r;function n(o){return typeof Buffer<"u"?t(Buffer.from(o,"base64")):Uint8Array.from(atob(o),f=>f.charCodeAt(0))}l(n,"fromBase64"),e.fromBase64=n;function i(o){return o=t(o),typeof Buffer<"u"?Buffer.from(o).toString("hex"):Array.from(new Uint8Array(o),f=>f.toString(16).padStart(2,"0")).join("")}l(i,"toHex"),e.toHex=i;function s(o){if(typeof Buffer<"u")return t(Buffer.from(o,"hex"));const f=o.length%2===0?o:o.slice(0,o.length-1),h=[];for(let m=0;m<f.length;m+=2)h.push(parseInt(`${f[m]}${f[m+1]}`,16));return Uint8Array.from(h).buffer}l(s,"fromHex"),e.fromHex=s})(g||(g={})),g.fromBase64,g.toBase64,g.fromHex,g.toHex;function D(e,t=new Map){if(!e||typeof e!="object")return e;if(x("Date",e))return new Date(e.valueOf());if(x("RegExp",e))return new RegExp(e.source,e.flags);if(A(e))return e.slice(0);if(ArrayBuffer.isView(e))return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);const r=t.get(e);if(r)return r;if(Array.isArray(e)){const i=[];return t.set(e,i),e.forEach((s,o)=>{i[o]=Reflect.apply(D,null,[s,t])}),i}const n=Object.create(Object.getPrototypeOf(e));t.set(e,n);for(const i of Reflect.ownKeys(e)){const s={...Reflect.getOwnPropertyDescriptor(e,i)};"value"in s&&(s.value=Reflect.apply(D,null,[s.value,t])),Reflect.defineProperty(n,i,s)}return n}l(D,"clone");function $(e,t,r){if(e===t||!r&&y(e)&&y(t))return!0;if(typeof e!=typeof t||typeof e!="object"||!e||!t)return!1;function n(i,s){return i(e)?i(t)?s(e,t):!1:i(t)?!1:void 0}return l(n,"check"),n(Array.isArray,(i,s)=>i.length===s.length&&i.every((o,f)=>$(o,s[f])))??n(x("Date"),(i,s)=>i.valueOf()===s.valueOf())??n(x("RegExp"),(i,s)=>i.source===s.source&&i.flags===s.flags)??n(A,(i,s)=>{if(i.byteLength!==s.byteLength)return!1;const o=new Uint8Array(i),f=new Uint8Array(s);for(let h=0;h<o.length;h++)if(o[h]!==f[h])return!1;return!0})??Object.keys({...e,...t}).every(i=>$(e[i],t[i],r))}l($,"deepEqual");let T;(function(e){e.millisecond=1;const t=e.second=1e3,r=e.minute=t*60,n=e.hour=r*60,i=e.day=n*24,s=e.week=i*7;let o=new Date().getTimezoneOffset();function f(a){o=a}l(f,"setTimezoneOffset"),e.setTimezoneOffset=f;function h(){return o}l(h,"getTimezoneOffset"),e.getTimezoneOffset=h;function m(a=new Date,u){return typeof a=="number"&&(a=new Date(a)),u===void 0&&(u=o),Math.floor((a.valueOf()/r-u)/1440)}l(m,"getDateNumber"),e.getDateNumber=m;function ge(a,u){const Se=new Date(a*i);return u===void 0&&(u=o),new Date(+Se+u*r)}l(ge,"fromDateNumber"),e.fromDateNumber=ge;const me=/\d+(?:\.\d+)?/.source,be=new RegExp(`^${["w(?:eek(?:s)?)?","d(?:ay(?:s)?)?","h(?:our(?:s)?)?","m(?:in(?:ute)?(?:s)?)?","s(?:ec(?:ond)?(?:s)?)?"].map(a=>`(${me}${a})?`).join("")}$`);function G(a){const u=be.exec(a);return u?(parseFloat(u[1])*s||0)+(parseFloat(u[2])*i||0)+(parseFloat(u[3])*n||0)+(parseFloat(u[4])*r||0)+(parseFloat(u[5])*t||0):0}l(G,"parseTime"),e.parseTime=G;function we(a){const u=G(a);return u?a=Date.now()+u:/^\d{1,2}(:\d{1,2}){1,2}$/.test(a)?a=`${new Date().toLocaleDateString()}-${a}`:/^\d{1,2}-\d{1,2}-\d{1,2}(:\d{1,2}){1,2}$/.test(a)&&(a=`${new Date().getFullYear()}-${a}`),a?new Date(a):new Date}l(we,"parseDate"),e.parseDate=we;function xe(a){const u=Math.abs(a);return u>=i-n/2?Math.round(a/i)+"d":u>=n-r/2?Math.round(a/n)+"h":u>=r-t/2?Math.round(a/r)+"m":u>=t?Math.round(a/t)+"s":a+"ms"}l(xe,"format"),e.format=xe;function v(a,u=2){return a.toString().padStart(u,"0")}l(v,"toDigits"),e.toDigits=v;function ve(a,u=new Date){return a.replace("yyyy",u.getFullYear().toString()).replace("yy",u.getFullYear().toString().slice(2)).replace("MM",v(u.getMonth()+1)).replace("dd",v(u.getDate())).replace("hh",v(u.getHours())).replace("mm",v(u.getMinutes())).replace("ss",v(u.getSeconds())).replace("SSS",v(u.getMilliseconds(),3))}l(ve,"template"),e.template=ve})(T||(T={}));const E=Symbol.for("schemastery"),U=Symbol.for("ValidationError");globalThis.__schemastery_index__??=0,globalThis.__schemastery_refs__=void 0;var p=class extends TypeError{static{l(this,"ValidationError")}options;name="ValidationError";constructor(e,t){let r="$";for(const n of t.path||[])typeof n=="string"?r+="."+n:typeof n=="number"?r+="["+n+"]":typeof n=="symbol"&&(r+=`[Symbol(${n.toString()})]`);r.startsWith(".")&&(r=r.slice(1)),super((r==="$"?"":`${r} `)+e),this.options=t}static is(e){return!!e?.[U]}};Object.defineProperty(p.prototype,U,{value:!0});const c=l(function(e){const t=l(function(r,n={}){return c.resolve(r,t,n)[0]},"schema");if(e.refs){const r=b(e.refs,i=>new c(i)),n=l(i=>r[i],"getRef");for(const i in r){const s=r[i];s.sKey=n(s.sKey),s.inner=n(s.inner),s.list=s.list&&s.list.map(n),s.dict=s.dict&&b(s.dict,n)}return r[e.uid]}if(Object.assign(t,e),typeof t.callback=="string")try{t.callback=new Function("return "+t.callback)()}catch{}return Object.defineProperty(t,"uid",{value:globalThis.__schemastery_index__++}),Object.setPrototypeOf(t,c.prototype),t.meta||={},t.toString=t.toString.bind(t),t},"Schema");c.prototype=Object.create(Function.prototype),c.prototype[E]=!0,Object.defineProperty(c.prototype,"~standard",{get(){return{version:1,vendor:"schemastery",validate:l(e=>{try{return{value:c.resolve(e,this,{})[0]}}catch(t){if(p.is(t))return{issues:[{message:t.message,path:t.options.path}]};throw t}},"validate")}}}),c.ValidationError=p,c.prototype.toJSON=l(function(){if(globalThis.__schemastery_refs__)return globalThis.__schemastery_refs__[this.uid]??=JSON.parse(JSON.stringify({...this})),this.uid;globalThis.__schemastery_refs__={[this.uid]:{...this}},globalThis.__schemastery_refs__[this.uid]=JSON.parse(JSON.stringify({...this}));const t={uid:this.uid,refs:globalThis.__schemastery_refs__};return globalThis.__schemastery_refs__=void 0,t},"toJSON"),c.prototype.set=l(function(t,r){return this.dict[t]=r,this},"set"),c.prototype.push=l(function(t){return this.list.push(t),this},"push");function ee(e,t){const r=typeof e=="string"?{"":e}:{...e};for(const n in t){const i=t[n];i?.$description||i?.$desc?r[n]=i.$description||i.$desc:typeof i=="string"&&(r[n]=i)}return r}l(ee,"mergeDesc");function O(e){return e?.$value??e?.$inner}l(O,"getInner");function F(e){return Q(e??{},t=>!t.startsWith("$"))}l(F,"extractKeys"),c.prototype.i18n=l(function(t){const r=c(this),n=ee(r.meta.description,t);return Object.keys(n).length&&(r.meta.description=n),r.dict&&(r.dict=b(r.dict,(i,s)=>i.i18n(b(t,o=>O(o)?.[s]??o?.[s])))),r.list&&(r.list=r.list.map((i,s)=>i.i18n(b(t,(o={})=>Array.isArray(O(o))?O(o)[s]:Array.isArray(o)?o[s]:F(o))))),r.inner&&(r.inner=r.inner.i18n(b(t,i=>O(i)?O(i):F(i)))),r.sKey&&(r.sKey=r.sKey.i18n(b(t,i=>i?.$key))),r},"i18n"),c.prototype.extra=l(function(t,r){const n=c(this);return n.meta={...n.meta,[t]:r},n},"extra");for(const e of["required","disabled","collapse","hidden","loose"])Object.assign(c.prototype,{[e](t=!0){const r=c(this);return r.meta={...r.meta,[e]:t},r}});c.prototype.deprecated=l(function(){const t=c(this);return t.meta.badges||=[],t.meta.badges.push({text:"deprecated",type:"danger"}),t},"deprecated"),c.prototype.experimental=l(function(){const t=c(this);return t.meta.badges||=[],t.meta.badges.push({text:"experimental",type:"warning"}),t},"experimental"),c.prototype.pattern=l(function(t){const r=c(this),n=X(t,["source","flags"]);return r.meta={...r.meta,pattern:n},r},"pattern"),c.prototype.simplify=l(function(t){if($(t,this.meta.default,this.type==="dict"))return null;if(y(t))return t;if(this.type==="object"||this.type==="dict"){const r={};for(const n in t){const i=(this.type==="object"?this.dict[n]:this.inner)?.simplify(t[n]);(this.type==="dict"||!y(i))&&(r[n]=i)}return $(r,this.meta.default,this.type==="dict")?null:r}else if(this.type==="array"||this.type==="tuple"){const r=[];return t.forEach((n,i)=>{const s=this.type==="array"?this.inner:this.list[i],o=s?s.simplify(n):n;r.push(o)}),r}else if(this.type==="intersect"){const r={};for(const n of this.list)Object.assign(r,n.simplify(t));return r}else if(this.type==="union")for(const r of this.list)try{return c.resolve(t,r,{}),r.simplify(t)}catch{}return t},"simplify"),c.prototype.toString=l(function(t){return K[this.type]?.(this,t)??`Schema<${this.type}>`},"toString"),c.prototype.role=l(function(e,t){const r=c(this);return r.meta={...r.meta,role:e,extra:t},r},"role");for(const e of["default","link","comment","description","max","min","step"])Object.assign(c.prototype,{[e](t){const r=c(this);return r.meta={...r.meta,[e]:t},r}});const J={};c.extend=l(function(t,r){J[t]=r},"extend"),c.resolve=l(function(t,r,n={},i=!1){if(!r)return[t];if(n.ignore?.(t,r))return[t];if(y(t)&&r.type!=="lazy"){if(r.meta.required)throw new p("missing required value",n);let o=r,f=r.meta.default;for(;o?.type==="intersect"&&y(f);)o=o.list[0],f=o?.meta.default;if(y(f))return[t];t=D(f)}const s=J[r.type];if(!s)throw new p(`unsupported type "${r.type}"`,n);try{return s(t,r,n,i)}catch(o){if(!r.meta.loose)throw o;return[r.meta.default]}},"resolve"),c.from=l(function(t){if(y(t))return c.any();if(["string","number","boolean"].includes(typeof t))return c.const(t).required();if(t[E])return t;if(typeof t=="function")switch(t){case String:return c.string().required();case Number:return c.number().required();case Boolean:return c.boolean().required();case Function:return c.function().required();default:return c.is(t).required()}else throw new TypeError(`cannot infer schema from ${t}`)},"from"),c.lazy=l(function(t){const r=l(()=>(n.inner[E]||(n.inner=n.builder(),n.inner.meta={...n.meta,...n.inner.meta}),n.inner.toJSON()),"toJSON"),n=new c({type:"lazy",builder:t,inner:{toJSON:r}});return n},"lazy"),c.natural=l(function(){return c.number().step(1).min(0)},"natural"),c.percent=l(function(){return c.number().step(.01).min(0).max(1).role("slider")},"percent"),c.date=l(function(){return c.union([c.is(Date),c.transform(c.string().role("datetime"),(t,r)=>{const n=new Date(t);if(isNaN(+n))throw new p(`invalid date "${t}"`,r);return n},!0)])},"date"),c.regExp=l(function(t=""){return c.union([c.is(RegExp),c.transform(c.string().role("regexp",{flag:t}),(r,n)=>{try{return new RegExp(r,t)}catch(i){throw new p(i.message,n)}},!0)])},"regExp"),c.arrayBuffer=l(function(t){return c.union([c.is(ArrayBuffer),c.is(SharedArrayBuffer),c.transform(c.any(),(r,n)=>{if(g.isSource(r))return g.fromSource(r);throw new p(`expected ArrayBufferSource but got ${r}`,n)},!0),...t?[c.transform(c.string(),(r,n)=>{try{return t==="base64"?g.fromBase64(r):g.fromHex(r)}catch(i){throw new p(i.message,n)}},!0)]:[]])},"arrayBuffer"),c.extend("lazy",(e,t,r,n)=>(t.inner[E]||(t.inner=t.builder(),t.inner.meta={...t.meta,...t.inner.meta}),c.resolve(e,t.inner,r,n))),c.extend("any",e=>[e]),c.extend("never",(e,t,r)=>{throw new p(`expected nullable but got ${e}`,r)}),c.extend("const",(e,{value:t},r)=>{if($(e,t))return[t];throw new p(`expected ${t} but got ${e}`,r)});function M(e,t,r,n,i=!1){const{max:s=1/0,min:o=-1/0}=t;if(e>s)throw new p(`expected ${r} <= ${s} but got ${e}`,n);if(e<o&&!i)throw new p(`expected ${r} >= ${o} but got ${e}`,n)}l(M,"checkWithinRange"),c.extend("string",(e,{meta:t},r)=>{if(typeof e!="string")throw new p(`expected string but got ${e}`,r);if(t.pattern){const n=new RegExp(t.pattern.source,t.pattern.flags);if(!n.test(e))throw new p(`expect string to match regexp ${n}`,r)}return M(e.length,t,"string length",r),[e]});function B(e,t){const r=e.toString();if(r.includes("e"))return e*Math.pow(10,t);const n=r.indexOf(".");if(n===-1)return e*Math.pow(10,t);const i=r.slice(n+1),s=r.slice(0,n);return i.length<=t?+(s+i.padEnd(t,"0")):+(s+i.slice(0,t)+"."+i.slice(t))}l(B,"decimalShift");function te(e,t,r){if(r=Math.abs(r),!/^\d+\.\d+$/.test(r.toString()))return(e-t)%r===0;const n=r.toString().indexOf("."),i=r.toString().slice(n+1).length;return Math.abs(B(e,i)-B(t,i))%B(r,i)===0}l(te,"isMultipleOf"),c.extend("number",(e,{meta:t},r)=>{if(typeof e!="number")throw new p(`expected number but got ${e}`,r);M(e,t,"number",r);const{step:n}=t;if(n&&!te(e,t.min??0,n))throw new p(`expected number multiple of ${n} but got ${e}`,r);return[e]}),c.extend("boolean",(e,t,r)=>{if(typeof e=="boolean")return[e];throw new p(`expected boolean but got ${e}`,r)}),c.extend("bitset",(e,{bits:t,meta:r},n)=>{let i=0,s=[];if(typeof e=="number"){i=e;for(const o in t)e&t[o]&&s.push(o)}else if(Array.isArray(e)){s=e;for(const o of s){if(typeof o!="string")throw new p(`expected string but got ${o}`,n);o in t&&(i|=t[o])}}else throw new p(`expected number or array but got ${e}`,n);return i===r.default?[i]:[i,s]}),c.extend("function",(e,t,r)=>{if(typeof e=="function")return[e];throw new p(`expected function but got ${e}`,r)}),c.extend("is",(e,{constructor:t},r)=>{if(typeof t=="function"){if(e instanceof t)return[e];throw new p(`expected ${t.name} but got ${e}`,r)}else{if(y(e))throw new p(`expected ${t} but got ${e}`,r);let n=Object.getPrototypeOf(e);for(;n;){if(n.constructor?.name===t)return[e];n=Object.getPrototypeOf(n)}throw new p(`expected ${t} but got ${e}`,r)}});function L(e,t,r,n){try{const[i,s]=c.resolve(e[t],r,{...n,path:[...n.path||[],t]});return s!==void 0&&(e[t]=s),i}catch(i){if(!n?.autofix)throw i;return delete e[t],r.meta.default}}l(L,"property"),c.extend("array",(e,{inner:t,meta:r},n)=>{if(!Array.isArray(e))throw new p(`expected array but got ${e}`,n);return M(e.length,r,"array length",n,!y(t.meta.default)),[e.map((i,s)=>L(e,s,t,n))]}),c.extend("dict",(e,{inner:t,sKey:r},n,i)=>{if(!N(e))throw new p(`expected object but got ${e}`,n);const s={};for(const o in e){let f;try{f=c.resolve(o,r,n)[0]}catch(h){if(i)continue;throw h}s[f]=L(e,o,t,n),e[f]=e[o],o!==f&&delete e[o]}return[s]}),c.extend("tuple",(e,{list:t},r,n)=>{if(!Array.isArray(e))throw new p(`expected array but got ${e}`,r);const i=t.map((s,o)=>L(e,o,s,r));return n?[i]:(i.push(...e.slice(t.length)),[i])});function C(e,t){for(const r in t)r in e||(e[r]=t[r])}l(C,"merge"),c.extend("object",(e,{dict:t},r,n)=>{if(!N(e))throw new p(`expected object but got ${e}`,r);const i={};for(const s in t){const o=L(e,s,t[s],r);(!y(o)||s in e)&&(i[s]=o)}return n||C(i,e),[i]}),c.extend("union",(e,{list:t,toString:r},n,i)=>{const s=[];for(const o of t)try{return c.resolve(e,o,n,i)}catch(f){s.push(f)}throw new p(`expected ${r()} but got ${JSON.stringify(e)}`,n)}),c.extend("intersect",(e,{list:t,toString:r},n,i)=>{if(!t.length)return[e];let s;for(const o of t){const f=c.resolve(e,o,n,!0)[0];if(!y(f))if(y(s))s=f;else{if(typeof s!=typeof f)throw new p(`expected ${r()} but got ${JSON.stringify(e)}`,n);if(typeof f=="object")C(s??={},f);else if(s!==f)throw new p(`expected ${r()} but got ${JSON.stringify(e)}`,n)}}return!i&&N(e)&&C(s,e),[s]}),c.extend("transform",(e,{inner:t,callback:r,preserve:n},i)=>{const[s,o=e]=c.resolve(e,t,i,!0);return n?[r(s)]:[r(s),r(o)]});const K={};function d(e,t,r){K[e]=r,Object.assign(c,{[e](...n){const i=new c({type:e});return t.forEach((s,o)=>{switch(s){case"sKey":i.sKey=n[o]??c.string();break;case"inner":i.inner=c.from(n[o]);break;case"list":i.list=n[o].map(c.from);break;case"dict":i.dict=b(n[o],c.from);break;case"bits":i.bits={};for(const f in n[o])typeof n[o][f]=="number"&&(i.bits[f]=n[o][f]);break;case"callback":{const f=i.callback=n[o];f.toJSON||=()=>f.toString();break}case"constructor":{const f=i.constructor=n[o];typeof f=="function"&&(f.toJSON||=()=>f.name);break}default:i[s]=n[o]}}),e==="object"||e==="dict"?i.meta.default={}:e==="array"||e==="tuple"?i.meta.default=[]:e==="bitset"&&(i.meta.default=0),i}})}l(d,"defineMethod"),d("is",["constructor"],({constructor:e})=>typeof e=="function"?e.name:e),d("any",[],()=>"any"),d("never",[],()=>"never"),d("const",["value"],({value:e})=>typeof e=="string"?JSON.stringify(e):e),d("string",[],()=>"string"),d("number",[],()=>"number"),d("boolean",[],()=>"boolean"),d("bitset",["bits"],()=>"bitset"),d("function",[],()=>"function"),d("array",["inner"],({inner:e})=>`${e.toString(!0)}[]`),d("dict",["inner","sKey"],({inner:e,sKey:t})=>`{ [key: ${t.toString()}]: ${e.toString()} }`),d("tuple",["list"],({list:e})=>`[${e.map(t=>t.toString()).join(", ")}]`),d("object",["dict"],({dict:e})=>Object.keys(e).length===0?"{}":`{ ${Object.entries(e).map(([t,r])=>`${t}${r.meta.required?"":"?"}: ${r.toString()}`).join(", ")} }`),d("union",["list"],({list:e},t)=>{const r=e.map(({toString:n})=>n()).join(" | ");return t?`(${r})`:r}),d("intersect",["list"],({list:e})=>`${e.map(t=>t.toString(!0)).join(" & ")}`),d("transform",["inner","callback","preserve"],({inner:e},t)=>e.toString(t));const re="locale",P="preference",ne=["zh","en"];c.object({[P]:c.union([...ne]).required(!1)});const ie={ok:"确定",cancel:"取消",close:"关闭",copy:"复制",copied:"复制成功",retry:"重试",loading:"加载中…","load.failed":"加载失败",submit:"提交",submitting:"正在提交…",next:"下一步",previous:"上一步",skip:"跳过",delete:"删除",edit:"编辑",save:"保存",search:"搜索",more:"更多",collapse:"收起",expand:"展开",back:"返回",unknown:"未知",none:"无",truncated:"已截断"},oe={ok:"OK",cancel:"Cancel",close:"Close",copy:"Copy",copied:"Copied",retry:"Retry",loading:"Loading…","load.failed":"Failed to load",submit:"Submit",submitting:"Submitting…",next:"Next",previous:"Previous",skip:"Skip",delete:"Delete",edit:"Edit",save:"Save",search:"Search",more:"More",collapse:"Collapse",expand:"Expand",back:"Back",unknown:"Unknown",none:"None",truncated:"Truncated"},se={"language.title":"语言"},ce={"language.title":"Language"},le=".j_Uvsa_row{border-bottom:1px solid var(--dsw-alias-border-l2);align-items:center;gap:8px;padding:16px 0;display:flex}.j_Uvsa_rowText{flex-direction:column;flex:1;gap:4px;min-width:0;padding-right:48px;display:flex}.j_Uvsa_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:400;line-height:22px}.j_Uvsa_selector{background:var(--dsw-alias-bg-module-platform);height:36px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;border:none;border-radius:18px;align-items:center;gap:12px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.j_Uvsa_selector:hover{background:var(--dsw-alias-interactive-bg-hover)}.j_Uvsa_chevron{flex:none}",I="@deepseek-ai/dsh-client-locale/LanguageRow.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(I)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-locale",e.dataset.pluginCss=I,e.textContent=le,document.head.appendChild(e)}var j={chevron:"j_Uvsa_chevron",row:"j_Uvsa_row",selector:"j_Uvsa_selector",rowText:"j_Uvsa_rowText",title:"j_Uvsa_title"};function fe({t:e,setLocale:t,useStore:r}){const n=r(h=>h.active),i=r(h=>h.options),[s,o]=(0,W.useState)(!1),f=i.find(h=>h.id===n)?.label??n;return(0,_.jsxs)("div",{className:j.row,children:[(0,_.jsx)("div",{className:j.rowText,children:(0,_.jsx)("div",{className:j.title,children:e("language.title")})}),(0,_.jsx)(R.Menu,{open:s,onClose:l(()=>{o(!1)},"onClose"),items:i.map(h=>({id:h.id,label:h.label})),selectedId:n,onSelect:l(h=>{t(h),o(!1)},"onSelect"),align:"end",portal:!0,anchor:(0,_.jsxs)("button",{type:"button",className:j.selector,"aria-haspopup":"menu","aria-expanded":s,onClick:l(()=>{o(h=>!h)},"onClick"),children:[f,(0,_.jsx)(R.IconChevronDownOutline14,{className:j.chevron})]})})]})}l(fe,"LanguageRow");function ae(){return(0,Y.defineStore)({init:l(()=>({active:"",options:[],revision:-1}),"init"),actions:{sync:l((e,t,r,n)=>{n<=e.revision||(e.active=t,e.options=r,e.revision=n)},"sync")}})}l(ae,"createLanguageRowStore");const ue="zh",q="common",z="settings.locale",V=Object.freeze([{id:"zh",label:"中文"},{id:"en",label:"English"}]);var H=class{static{l(this,"LocaleRuntime")}dicts=new Map;bound=new Map;snapshot;listeners=new Set;ctx;host;provisional;constructor(e,t){this.ctx=e,this.host=t,this.provisional=pe(),this.snapshot=Object.freeze({active:this.provisional,locales:V,revision:0}),t!==void 0&&(e.effect(()=>t.subscribe(()=>{this.adopt(t)}),"locale: settings scope adoption"),this.adopt(t))}getLocale(){return this.snapshot}getSnapshot(){return this.snapshot}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setLocale(e){const t=this.snapshot.locales.find(r=>r.id===e);if(t===void 0)throw new Error(`locale "${e}" is not registered`);this.snapshot.active!==t.id&&(this.publish(t.id,!0),this.host?.set(P,t.id))}adopt(e){const t=e.getSnapshot().value;if(t===void 0)return;const r=t.preference??this.provisional;this.snapshot.active!==r&&this.publish(r,!0)}register(e,t,r){const n=typeof t=="string"?[[t,r]]:Object.entries(t);let i=this.dicts.get(e);i||(i=new Map,this.dicts.set(e,i));for(const[s]of n)if(i.has(s))throw new Error(`locale namespace "${e}" already has locale "${s}"`);for(const[s,o]of n)i.set(s,o);return this.publish(this.snapshot.active,!1),()=>{const s=this.dicts.get(e);if(!s)return;let o=!1;for(const[f,h]of n)s.get(f)===h&&(s.delete(f),o=!0);o&&this.publish(this.snapshot.active,!1)}}bind(e){let t=this.bound.get(e);return t||(t=l((r,n)=>this.translate(e,r,n),"t"),this.bound.set(e,t),t)}translate(e,t,r){const n=this.lookup(e,t)??(e!=="common"?this.lookup("common",t):void 0)??t;return r?n.replace(/\{(\w+)\}/g,(i,s)=>s in r?String(r[s]):i):n}lookup(e,t){const r=this.dicts.get(e);return r?.get(this.snapshot.active)?.[t]??r?.get("zh")?.[t]}publish(e,t){this.snapshot=Object.freeze({active:e,locales:this.snapshot.locales,revision:this.snapshot.revision+1}),t&&this.ctx.emit("locale/change",this.snapshot);for(const r of[...this.listeners])try{r()}catch(n){console.error("locale subscriber crashed:",n)}}};function pe(){return he()??"zh"}l(pe,"resolveInitialLocale");function he(){if(!(typeof window>"u"))for(const e of[...navigator.languages??[],navigator.language]){const t=e.toLowerCase().split("-")[0],r=V.find(n=>n.id===t);if(r)return r.id}}l(he,"detectBrowserLocale");const de=["slots","connection","remote","settingsScope"];function ye(e){const t=new H(e,e.settingsScope.bind({namespace:re}));t.register(q,{zh:ie,en:oe}),t.register(z,{zh:se,en:ce}),e.provide("locale",t),e.slots.installLocale(t);const r=ae();let n;const i=l(o=>{n?.sync(o.active,o.locales.map(f=>({id:f.id,label:f.label})),o.revision)},"sync");e.on("locale/change",i);const s=l(o=>(n=o,i(t.getLocale()),{setLocale:l(f=>{t.setLocale(f)},"setLocale")}),"injected");e.slots.inject("settings.general.item",()=>e.slots.register({name:"settings.general.item",id:"language",order:0,store:r,locale:z,inject:s},fe))}return l(ye,"apply"),w.COMMON_NS=q,w.FALLBACK_LOCALE=ue,w.LocaleRuntime=H,w.SETTINGS_NS=z,w.apply=ye,w.inject=de,k.exports},"factory")});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-client-locale","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-client-locale","version":"0.0.12","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-api-remotes"],"platform":"web","immediately":true}},"license":"MIT","peerDependencies":{"react":"^18.2.0","@deepseek-ai/dsh-api-remotes":"^0.0.12","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-client-connection":"^0.0.12","@deepseek-ai/dsh-client-runtime":"^0.0.12","@deepseek-ai/dsh-client-ui-primitives":"^0.0.12","@deepseek-ai/dsh-client-ui-settings":"^0.0.12","@deepseek-ai/dsh-client-ui-slots":"^0.0.12","@deepseek-ai/dsh-invariants":"^0.0.12"},"dependencies":{"@deepseek-ai/dsh-settings":"^0.0.12","@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-client-modules","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-client-modules","version":"0.0.12","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./client":{"types":"./lib/types/client/index.d.ts","default":"./lib/client.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"platform":"web","inject":[],"immediately":true}},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.12","@deepseek-ai/cordis":"^4.0.1"}}
|