@qqbrowser/qbot-dsh 0.0.8 → 0.0.9
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-B-8-D2pP.js → dump-config-BD79jvHi.js} +1 -1
- package/lib/{plugin-seeuRTd8.js → plugin-B3Ecl7VN.js} +1 -1
- package/lib/profile-boot-B71dQloK.js +8 -0
- package/lib/profile-boot-_PCyp_wB.js +1 -0
- 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/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +4 -25
- package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-runtime/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-schema-form/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-code-runtime/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-content-review/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-headless/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-apiproxy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/index.js +5 -5
- package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-persona/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-qb-auth/lib/index.js +2 -2
- 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/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/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
- package/package.json +1 -1
- package/lib/profile-boot-BDKTPd1I.js +0 -1
- package/lib/profile-boot-DdCQCr1r.js +0 -5
package/lib/bin.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
var m=Object.defineProperty;var s=(t,e)=>m(t,"name",{value:e,configurable:!0});import{readFileSync as E,writeSync as g}from"node:fs";import{fileURLToPath as l}from"node:url";const d="jsonl-v1",f=1,y={WEB_LISTEN_FAILED:"Failed to start local web server",WEB_STARTUP_FAILED:"Failed to start DSH web service"},p={stdout:process.stdout,stderr:process.stderr,writeLine:s((t,e)=>{const o=Buffer.from(e,"utf8");let r=0;for(;r<o.byteLength;){const i=g(t,o,r,o.byteLength-r);if(i===0)throw new Error("native protocol stdout write made no progress");r+=i}},"writeLine"),onExit:s(t=>{process.on("exit",t)},"onExit"),offExit:s(t=>{process.off("exit",t)},"offExit")};function b(t){return t[0]==="web"?!0:t.some((e,o)=>e==="--profile"&&t[o+1]==="web"||e==="--profile=web")}s(b,"selectsWebProfile");function v(t){return b(t)?t.some((e,o)=>e===`--native-protocol=${d}`||e==="--native-protocol"&&t[o+1]===d):!1}s(v,"requestsNativeJsonlV1");function L(t){const e=[t],o=new Set;for(;e.length>0;){const r=e.pop();if(typeof r!="object"||r===null||o.has(r))continue;o.add(r);const i=r;if(i.code==="WEB_LISTEN_FAILED")return"WEB_LISTEN_FAILED";if(e.push(i.cause),Array.isArray(i.errors)){const n=i.errors;e.push(...n)}}return"WEB_STARTUP_FAILED"}s(L,"classifyNativeStartupError");var S=class{static{s(this,"NativeProtocolWriter")}name=d;state="pending";stdout=p.stdout;stderr=p.stderr;originalWrite=this.stdout.write;redirectWrite;exitListener;constructor(){this.redirectWrite=((...t)=>!!Reflect.apply(this.stderr.write,this.stderr,t)),this.stdout.write=this.redirectWrite,this.exitListener=t=>{t!==0&&this.emitError("WEB_STARTUP_FAILED")},p.onExit(this.exitListener)}emitReady(t){if(this.state!=="pending")return!1;if(!Number.isInteger(t.port)||t.port<1||t.port>65535)throw new Error("native protocol ready port must be an integer from 1 through 65535");if(!Number.isInteger(t.pid)||t.pid<1)throw new Error("native protocol ready pid must be a positive integer");return this.write({protocolVersion:f,event:"ready",url:`http://${t.host}:${String(t.port)}`,host:t.host,port:t.port,pid:t.pid}),this.state="ready",!0}emitError(t){return this.state!=="pending"?!1:(this.write({protocolVersion:f,event:"error",code:t,message:y[t]}),this.state="error",!0)}dispose(){this.stdout.write===this.redirectWrite&&(this.stdout.write=this.originalWrite),p.offExit(this.exitListener)}write(t){p.writeLine(this.stdout.fd,`${JSON.stringify(t)}
|
|
3
|
-
`)}};function A(t){return v(t)?new S:void 0}s(A,"createNativeProtocolWriter");function R(t,e=process.platform,o=process.arch){if(t===null||typeof t!="object"||Array.isArray(t))throw new Error("qbot-dsh: package manifest is not an object");const r=t,i=typeof r.version=="string"?r.version:"0.0.0";if(r.dshRelease===void 0)return i;if(r.dshRelease===null||typeof r.dshRelease!="object"||Array.isArray(r.dshRelease))throw new Error("qbot-dsh: package manifest has invalid dshRelease metadata");const n=r.dshRelease.targets;if(!Array.isArray(n)||n.length===0||n.some(w=>typeof w!="string"))throw new Error("qbot-dsh: package manifest has invalid dshRelease.targets metadata");const c=`${e}-${o}`;if(!n.includes(c))throw new Error(`qbot-dsh: unsupported target ${c}; this package supports ${n.join(", ")}`);return i}s(R,"releaseVersionForTarget");function _(){return R(JSON.parse(E(l(new URL("../package.json",import.meta.url)),"utf8")))}s(_,"readVersion");const u=process.argv.slice(2),h=A(u),{parseDshArgs:W}=await import("./args-DcHS9iff.js"),a=W(u,_());switch(a.mode){case"profile":{if(import.meta.url.endsWith("/src/bin.ts")){const[o,r,i]=await Promise.all([import("node:fs"),import("node:path"),import("@deepseek-ai/dsh-home-paths")]),n=r.join(i.resolveDshHome(),"profiles");o.mkdirSync(n,{recursive:!0});try{o.symlinkSync(l(new URL("../../../node_modules/.pnpm/node_modules/",import.meta.url)),r.join(n,"node_modules"),"junction")}catch(c){if(c.code!=="EEXIST")throw c}}const{runProfile:t}=await import("./profile-boot-
|
|
3
|
+
`)}};function A(t){return v(t)?new S:void 0}s(A,"createNativeProtocolWriter");function R(t,e=process.platform,o=process.arch){if(t===null||typeof t!="object"||Array.isArray(t))throw new Error("qbot-dsh: package manifest is not an object");const r=t,i=typeof r.version=="string"?r.version:"0.0.0";if(r.dshRelease===void 0)return i;if(r.dshRelease===null||typeof r.dshRelease!="object"||Array.isArray(r.dshRelease))throw new Error("qbot-dsh: package manifest has invalid dshRelease metadata");const n=r.dshRelease.targets;if(!Array.isArray(n)||n.length===0||n.some(w=>typeof w!="string"))throw new Error("qbot-dsh: package manifest has invalid dshRelease.targets metadata");const c=`${e}-${o}`;if(!n.includes(c))throw new Error(`qbot-dsh: unsupported target ${c}; this package supports ${n.join(", ")}`);return i}s(R,"releaseVersionForTarget");function _(){return R(JSON.parse(E(l(new URL("../package.json",import.meta.url)),"utf8")))}s(_,"readVersion");const u=process.argv.slice(2),h=A(u),{parseDshArgs:W}=await import("./args-DcHS9iff.js"),a=W(u,_());switch(a.mode){case"profile":{if(import.meta.url.endsWith("/src/bin.ts")){const[o,r,i]=await Promise.all([import("node:fs"),import("node:path"),import("@deepseek-ai/dsh-home-paths")]),n=r.join(i.resolveDshHome(),"profiles");o.mkdirSync(n,{recursive:!0});try{o.symlinkSync(l(new URL("../../../node_modules/.pnpm/node_modules/",import.meta.url)),r.join(n,"node_modules"),"junction")}catch(c){if(c.code!=="EEXIST")throw c}}const{runProfile:t}=await import("./profile-boot-_PCyp_wB.js"),{loadLayeredEnv:e}=await import("@deepseek-ai/dsh-app-boot");try{await t({environment:e("qbot-dsh"),profile:a.profile,patchFiles:a.patches,args:a.args,...h===void 0?{}:{nativeProtocol:h}})}catch(o){throw h?.emitError(L(o)),o}break}case"plugin":{const{runPlugin:t}=await import("./plugin-B3Ecl7VN.js");process.exit(t(a.profile,a.args));break}case"dump-config":{const{runDumpConfig:t}=await import("./dump-config-BD79jvHi.js");t(a.profile,a.defaultOnly,a.patches);break}default:throw new Error(`qbot-dsh: unhandled invocation mode ${JSON.stringify(a)}`)}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var n=Object.defineProperty;var r=(s,a)=>n(s,"name",{value:a,configurable:!0});import{i as m,n as f,r as P}from"./profile-boot-
|
|
1
|
+
var n=Object.defineProperty;var r=(s,a)=>n(s,"name",{value:a,configurable:!0});import{i as m,n as f,r as P}from"./profile-boot-B71dQloK.js";import{existsSync as d}from"node:fs";import{join as u,resolve as b}from"node:path";import{loadOptionalPatches as E,loadOverlayPatches as O,renderConfigDump as g}from"@deepseek-ai/dsh-app-boot";const c="qbot-dsh";function v(s,a,i){const o=m(s,!a),e=o.layers.map(t=>({label:t.packageName,patches:t.patches}));if(!a){d(o.patchPath)&&e.push({label:o.patchPath,patches:o.patches});const t=P(),p=E(c,t);p!==void 0&&e.push({label:t,patches:p});for(const l of i){const h=b(l);e.push({label:h,patches:O(c,h)})}}process.stdout.write(g(c,u(o.dir,f),e))}r(v,"runDumpConfig");export{v as runDumpConfig};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var w=Object.defineProperty;var c=(n,t)=>w(n,"name",{value:t,configurable:!0});import{t as g}from"./profile-boot-
|
|
1
|
+
var w=Object.defineProperty;var c=(n,t)=>w(n,"name",{value:t,configurable:!0});import{t as g}from"./profile-boot-B71dQloK.js";import{existsSync as $}from"node:fs";import{join as u,resolve as b}from"node:path";import{DEFAULT_PROFILE_BUNDLES as y,PROFILE_TEMPLATES as P,initProfile as k,readProfileManifest as d,resolveBundleDir as v,resolveProfileDir as x,writeProfileManifest as E}from"@deepseek-ai/dsh-app-boot";import{spawnSync as S}from"node:child_process";const i="qbot-dsh";function h(n,t){let e;try{e=v(i,n,g,t)}catch{return!1}return d(i,e).dsh?.bundle?.patch!==void 0}c(h,"exportsPatch");function N(n,t){const e=d(i,t),p=new Set(Object.keys(n.dependencies??{})),o=Object.keys(e.dependencies??{}),s=e.dsh?.profile?.bundles??[];let a=!1;for(const r of o){const l=h(r,t);l&&!s.includes(r)?(s.push(r),a=!0):!l&&!p.has(r)&&process.stderr.write(`${i}: warning: ${r} declares no dsh.bundle — installed as a plain dependency, not a profile layer (a later update that gains one activates it automatically)
|
|
2
2
|
`)}const f=new Set(o);for(const r of[...s]){const l=p.has(r)||f.has(r),m=f.has(r)&&h(r,t);l&&!m&&(s.splice(s.indexOf(r),1),a=!0)}a&&(e.dsh={...e.dsh,profile:{...e.dsh?.profile,bundles:s}},E(t,e))}c(N,"reconcilePlugins");function L(n,t){const e=/^(?<prefix>(?:file|link):)?(?<path>\.{1,2}(?:[/\\].*)?)$/.exec(n);return e?.groups?.path===void 0?n:`${e.groups.prefix??""}${b(t,e.groups.path)}`}c(L,"anchorPathSpec");function O(n,t){const e=x(n);$(u(e,"package.json"))||(k(e,P[n]??y),process.stderr.write(`${i}: initialized profile ${n} at ${e}
|
|
3
3
|
`));const p=d(i,e),o=S("pnpm",t.map(a=>L(a,process.cwd())),{cwd:e,stdio:"inherit",shell:process.platform==="win32"});if(o.error!==void 0){if(o.error.code==="ENOENT")return process.stderr.write(`${i}: pnpm not found on PATH — install pnpm to manage profile plugins
|
|
4
4
|
`),127;throw o.error}const s=o.status??1;return s===0?N(p,e):(process.stderr.write(`${i}: pnpm failed in profile directory ${e}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var N=Object.defineProperty;var o=(e,t)=>N(e,"name",{value:t,configurable:!0});import{writeFileSync as I}from"node:fs";import{fileURLToPath as _}from"node:url";import{join as v,resolve as D}from"node:path";import{PROFILE_PATCH_FILENAME as H,boot as M,composeEntries as F,installFailLoud as k,loadOptionalPatches as P,loadOverlayPatches as A,loadProfile as C,watchUserPatches as b}from"@deepseek-ai/dsh-app-boot";import{resolveDshHome as $}from"@deepseek-ai/dsh-home-paths";import{DSH_LAUNCH_ENVIRONMENT_KEY as U}from"@deepseek-ai/dsh-launch-environment";import{provideCmdline as G}from"@deepseek-ai/dsh-cmdline";import{Socket as q}from"node:net";const x=5e3;function j(e,t=s=>{process.exit(s)},n=s=>{process.exitCode=s},d=x){let s,i,a=!1,l=!1;const c=o(()=>{i!==void 0&&clearTimeout(i)},"clearExitTimeout"),r=o(f=>{l||(l=!0,c(),t(f))},"forceExitOnce"),u=o(f=>{a||l||(a=!0,c(),n(f))},"completeOnce"),h=o((f,L)=>(s!==void 0||(i=setTimeout(()=>{r(f)},d),s=Promise.resolve().then(e).then(()=>{L?r(f):u(f)},()=>{r(f)})),s),"start");return{shutdown(f){return h(f,!1)},interrupt(f){if(s!==void 0){r(f);return}h(f,!0)}}}o(j,"createProcessShutdown");const m="DSH_HOST_LIFELINE_FD",Y=2147483647,V=new Set(["EPIPE","ECONNRESET","ERR_STREAM_PREMATURE_CLOSE"]),S={armed:!1,dispose:o(()=>{},"dispose")};function W(e){if(e===void 0||e==="")return{kind:"absent"};if(!/^\d+$/.test(e))return{kind:"invalid",value:e};const t=Number(e);return t>Y?{kind:"invalid",value:e}:{kind:"descriptor",fd:t}}o(W,"resolveLifelineFd");function B(e){const t=new q({fd:e,readable:!0,writable:!1});return t.unref(),t.resume(),{onEnd:o(n=>{t.on("end",n)},"onEnd"),onError:o(n=>{t.on("error",n)},"onError"),close:o(()=>{t.destroy()},"close")}}o(B,"openDescriptorChannel");function J(e){const t=e.env??process.env,n=e.warn??(c=>{process.stderr.write(c)}),d=e.open??B,s=W(t[m]);if(s.kind==="absent")return S;if(s.kind==="invalid")return n(`qbot-dsh: ${m}=${JSON.stringify(s.value)} is not a file descriptor number; host-lifeline shutdown is off
|
|
2
|
+
`),S;let i;try{i=d(s.fd)}catch(c){return n(`qbot-dsh: cannot observe ${m}=${String(s.fd)} (${O(c)}); host-lifeline shutdown is off
|
|
3
|
+
`),S}let a=!1;const l=o(()=>a?!1:(a=!0,i.close(),!0),"release");return i.onEnd(()=>{l()&&e.onHostGone()}),i.onError(c=>{const r=c.code??"";if(l()){if(V.has(r)){e.onHostGone();return}n(`qbot-dsh: ${m}=${String(s.fd)} failed (${O(c)}); host-lifeline shutdown is off and DSH keeps running
|
|
4
|
+
`)}}),{armed:!0,dispose:o(()=>{l()},"dispose")}}o(J,"installHostLifeline");function O(e){return e?.code??(e instanceof Error?e.message:String(e))}o(O,"describe");const K=_(new URL("../config/agent-presets/",import.meta.url)),p="qbot-dsh";function E(){return v($(),H)}o(E,"homePatchPath");const T=_(new URL("../package.json",import.meta.url)),y="session-telemetry-otel",X=`# qbot-dsh profile root — an empty entry list. The tree is composed as patches:
|
|
5
|
+
# each bundle in package.json's dsh.profile.bundles, then cordis.patch.yml, then any
|
|
6
|
+
# --patch overlays. Edit cordis.patch.yml, not this file.
|
|
7
|
+
[]
|
|
8
|
+
`,g="cordis.yml";function w(e,t){if(!((e??"")===""||!t))return{id:y,disabled:!0}}o(w,"resolveTelemetryPatch");function R(e,t=!0){const n=C(p,e,T,void 0,{userLayer:t});return I(v(n.dir,g),X),n}o(R,"prepareProfile");function z(e){return[...e.bundlePatches,...e.profile.patches,...e.homePatches,...e.overlays]}o(z,"allPatches");function Q(e,t){const n=R(e),d=P(p,E())??[],s=t.flatMap(r=>A(p,D(r))),i=n.layers.flatMap(r=>r.patches),a=new Map;for(const r of F([i,n.patches,d,s]))typeof r.id=="string"&&a.set(r.id,r);const l=[...s];a.has("agent-presets")&&l.push({id:"agent-presets",config:{...a.get("agent-presets")?.config??{},roots:[{path:K,trust:"system"}]}});const c=w(process.env.DSH_TELEMETRY_DISABLED,a.has(y));return c!==void 0&&l.push(c),{profile:n,bundlePatches:i,homePatches:d,overlays:l,rows:a}}o(Q,"composeProfile");function Z(e,t,n){if(!t.aborted&&!(e.fiber.state!==2||e.get("loader")===void 0))throw n}o(Z,"suppressShutdownError");async function ee(e){const t=Q(e.profile,e.patchFiles),n={},d={},s=j(async()=>{d.lifeline?.dispose(),await n.current?.fiber.dispose()}),i=new AbortController,a=o(u=>{i.abort(),s.interrupt(u)},"interrupt");process.on("SIGTERM",()=>{a(0)}),process.on("SIGINT",()=>{a(130)}),d.lifeline=J({onHostGone:o(()=>{a(0)},"onHostGone")}),k(p,process,async()=>{await n.current?.fiber.dispose()});const l=v(t.profile.dir,g),c=o(()=>structuredClone([...t.bundlePatches,...P(p,t.profile.patchPath)??[],...P(p,E())??[],...t.overlays]),"composeLive"),r=await M(p,l,structuredClone(z(t)),u=>{n.current=u,u.provide(U,e.environment),G(u,{args:e.args,exit:o(h=>{s.shutdown(h)},"exit"),...e.nativeProtocol===void 0?{}:{nativeProtocol:e.nativeProtocol}})});if(n.current=r,!i.signal.aborted&&r.fiber.state===2&&r.get("loader")!==void 0)try{r.get("hmr")===void 0&&(r.get("timer")===void 0&&await r.loader.create({name:"@deepseek-ai/cordis-plugin-timer"}),await r.loader.create({name:"@deepseek-ai/cordis-plugin-hmr",config:{root:[]}})),await b(r,{binName:p,filename:t.profile.patchPath,compose:c}),await b(r,{binName:p,filename:E(),compose:c})}catch(u){Z(r,i.signal,u)}return{ctx:r,shutdown:s}}o(ee,"runProfile");export{w as a,R as i,g as n,ee as o,E as r,T as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o}from"./profile-boot-B71dQloK.js";export{o as runProfile};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-agent","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-agent","version":"0.0.9","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"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-scope":"^0.0.9","@deepseek-ai/dsh-llm":"^0.0.9","@deepseek-ai/dsh-session":"^0.0.9","@deepseek-ai/dsh-system-prompt":"^0.0.9","@deepseek-ai/dsh-typert-protocol":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-agent-default-model","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-agent-default-model","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.9","@deepseek-ai/dsh-settings":"^0.0.9","@deepseek-ai/dsh-llm":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-agent-instructions","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-agent-instructions","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.9","@deepseek-ai/dsh-fs":"^0.0.9","@deepseek-ai/dsh-llm":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-home-paths":"^0.0.9","@deepseek-ai/dsh-tools":"^0.0.9","@deepseek-ai/dsh-session":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-agent-loop","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-agent-loop","version":"0.0.9","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"},"./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-llm":"^0.0.9","@deepseek-ai/dsh-scope":"^0.0.9","@deepseek-ai/dsh-session-persistence":"^0.0.9","@deepseek-ai/dsh-session":"^0.0.9","@deepseek-ai/dsh-system-prompt":"^0.0.9","@deepseek-ai/dsh-tools":"^0.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-settings":"^0.0.9"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-agent-presets","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-agent-presets","version":"0.0.9","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"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/cordis-plugin-include":"^1.0.6","@deepseek-ai/dsh-atomic-write":"^0.0.9","@deepseek-ai/cordis-plugin-loader":"^1.0.2","@deepseek-ai/dsh-agent":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-home-paths":"^0.0.9","@deepseek-ai/dsh-scope":"^0.0.9","@deepseek-ai/dsh-session":"^0.0.9","@deepseek-ai/dsh-settings":"^0.0.9","@deepseek-ai/dsh-system-prompt":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"js-yaml":"^4.1.0","@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-agent-tool-presentation","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-agent-tool-presentation","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-tools":"^0.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.9"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-anonymous-user-id","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-anonymous-user-id","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-home-paths":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-api-gateway","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-api-gateway","version":"0.0.9","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"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-typert-registry","@deepseek-ai/dsh-client-connection"],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"@deepseek-ai/dsh-typert-protocol":"^0.0.9"},"peerDependencies":{"@deepseek-ai/dsh-client-connection":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-typert-registry":"^0.0.9"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-api-remotes","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-api-remotes","version":"0.0.9","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"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"dsh":{"client":{"inject":["@deepseek-ai/dsh-api-gateway"],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"@deepseek-ai/dsh-typert-protocol":"^0.0.9"},"peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-agent":"^0.0.9","@deepseek-ai/dsh-commands":"^0.0.9","@deepseek-ai/dsh-api-gateway":"^0.0.9","@deepseek-ai/dsh-goal":"^0.0.9","@deepseek-ai/dsh-host-plugin-inventory":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-credentials":"^0.0.9","@deepseek-ai/dsh-cordis-host-runner":"^0.0.9","@deepseek-ai/dsh-llm":"^0.0.9","@deepseek-ai/dsh-message-feedback":"^0.0.9","@deepseek-ai/dsh-session":"^0.0.9","@deepseek-ai/dsh-agent-presets":"^0.0.9","@deepseek-ai/dsh-session-persistence":"^0.0.9","@deepseek-ai/dsh-typert-registry":"^0.0.9","@deepseek-ai/dsh-settings":"^0.0.9"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-app-boot","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-app-boot","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"js-yaml":"^4.2.0"},"peerDependencies":{"@deepseek-ai/cordis-plugin-group":"^1.0.1","@deepseek-ai/cordis-plugin-hmr":"^1.0.16","@deepseek-ai/cordis-plugin-include":"^1.0.6","@deepseek-ai/cordis-plugin-loader":"^1.0.2","@deepseek-ai/dsh-launch-environment":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-home-paths":"^0.0.9","@deepseek-ai/dsh-system-prompt":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"},"peerDependenciesMeta":{"@deepseek-ai/cordis-plugin-hmr":{"optional":true}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-atomic-write","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-atomic-write","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.9"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-attachment","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-attachment","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-brand":"^0.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.9"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-attachment-local","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-attachment-local","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-attachment":"^0.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-home-paths":"^0.0.9"},"dependencies":{"sharp":"^0.35.3","@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
- id: agent-default-model
|
|
37
37
|
name: '@deepseek-ai/dsh-agent-default-model'
|
|
38
38
|
config:
|
|
39
|
-
provider:
|
|
40
|
-
model:
|
|
39
|
+
provider: qb-gateway
|
|
40
|
+
model: Auto
|
|
41
41
|
- id: jobs
|
|
42
42
|
name: '@deepseek-ai/dsh-jobs-local'
|
|
43
43
|
- id: llm-retry
|
|
@@ -46,31 +46,10 @@
|
|
|
46
46
|
name: '@deepseek-ai/dsh-settings-file'
|
|
47
47
|
- id: credentials
|
|
48
48
|
name: '@deepseek-ai/dsh-credentials-local'
|
|
49
|
-
config:
|
|
50
|
-
fallbacks:
|
|
51
|
-
VENUS_INTERNAL_API_KEY: 'E9isWWfAr4VIFuIa5RbJaPxD@2040'
|
|
52
49
|
- id: llm-pi-ai
|
|
53
50
|
name: '@deepseek-ai/dsh-llm-pi-ai'
|
|
54
51
|
config:
|
|
55
52
|
providers:
|
|
56
|
-
venus-internal:
|
|
57
|
-
displayName: Venus Internal
|
|
58
|
-
apiKeyEnv: VENUS_INTERNAL_API_KEY
|
|
59
|
-
api: openai-completions
|
|
60
|
-
baseURL: http://v2.open.venus.oa.com/llmproxy
|
|
61
|
-
defaultContextWindow: 131072
|
|
62
|
-
defaultMaxTokens: 32768
|
|
63
|
-
models:
|
|
64
|
-
- id: deepseek-v4-flash
|
|
65
|
-
name: DeepSeek-V4-Flash
|
|
66
|
-
- id: deepseek-v4-pro
|
|
67
|
-
name: DeepSeek-V4-Pro
|
|
68
|
-
- id: kimi-k2.6
|
|
69
|
-
name: Kimi-K2.6
|
|
70
|
-
- id: glm-5.2
|
|
71
|
-
name: GLM-5.2
|
|
72
|
-
- id: hy3
|
|
73
|
-
name: HY3
|
|
74
53
|
qb-gateway:
|
|
75
54
|
displayName: QB Gateway
|
|
76
55
|
apiKeyEnv: DSH_QB_GATEWAY_KEY
|
|
@@ -79,8 +58,8 @@
|
|
|
79
58
|
defaultContextWindow: 131072
|
|
80
59
|
defaultMaxTokens: 32768
|
|
81
60
|
models:
|
|
82
|
-
- id:
|
|
83
|
-
name:
|
|
61
|
+
- id: Auto
|
|
62
|
+
name: Auto
|
|
84
63
|
- id: qb-auth
|
|
85
64
|
name: '@deepseek-ai/dsh-qb-auth'
|
|
86
65
|
- id: content-review
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-base","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-base","version":"0.0.9","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"},"./cordis.patch.yml":"./cordis.patch.yml","./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dsh":{"bundle":{"patch":"./cordis.patch.yml"}},"dependencies":{"@deepseek-ai/cordis-plugin-hmr":"^1.0.16","@deepseek-ai/cordis-plugin-timer":"^1.1.3","@deepseek-ai/dsh-agent":"^0.0.9","@deepseek-ai/dsh-agent-loop":"^0.0.9","@deepseek-ai/dsh-agent-default-model":"^0.0.9","@deepseek-ai/dsh-attachment-local":"^0.0.9","@deepseek-ai/dsh-shell-env":"^0.0.9","@deepseek-ai/dsh-bash-sandbox":"^0.0.9","@deepseek-ai/dsh-command-compact":"^0.0.9","@deepseek-ai/dsh-command-feedback":"^0.0.9","@deepseek-ai/dsh-command-goal":"^0.0.9","@deepseek-ai/dsh-commands":"^0.0.9","@deepseek-ai/dsh-compaction-basic":"^0.0.9","@deepseek-ai/dsh-credentials-local":"^0.0.9","@deepseek-ai/dsh-fs-local":"^0.0.9","@deepseek-ai/dsh-compaction-tool-result-pruner":"^0.0.9","@deepseek-ai/dsh-content-review":"^0.0.9","@deepseek-ai/dsh-goal":"^0.0.9","@deepseek-ai/dsh-fs-observation-policy":"^0.0.9","@deepseek-ai/dsh-goal-round-driver":"^0.0.9","@deepseek-ai/dsh-api-gateway":"^0.0.9","@deepseek-ai/dsh-llm-deepseek":"^0.0.9","@deepseek-ai/dsh-fs-sandbox":"^0.0.9","@deepseek-ai/dsh-llm-gateway-openai":"^0.0.9","@deepseek-ai/dsh-llm":"^0.0.9","@deepseek-ai/dsh-llm-pi-ai":"^0.0.9","@deepseek-ai/dsh-llm-retry":"^0.0.9","@deepseek-ai/dsh-plan-mode":"^0.0.9","@deepseek-ai/dsh-pwsh-sandbox":"^0.0.9","@deepseek-ai/dsh-qb-auth":"^0.0.9","@deepseek-ai/dsh-sandbox-local":"^0.0.9","@deepseek-ai/dsh-repeat-tool-reminder":"^0.0.9","@deepseek-ai/dsh-permission-presets":"^0.0.9","@deepseek-ai/dsh-session":"^0.0.9","@deepseek-ai/dsh-sandbox-policy":"^0.0.9","@deepseek-ai/dsh-session-persistence-jsonl":"^0.0.9","@deepseek-ai/dsh-session-checkpoint-policy":"^0.0.9","@deepseek-ai/dsh-session-query-sqlite":"^0.0.9","@deepseek-ai/dsh-session-projection":"^0.0.9","@deepseek-ai/dsh-session-telemetry-otel":"^0.0.9","@deepseek-ai/dsh-session-title-first-prompt-llm":"^0.0.9","@deepseek-ai/dsh-settings-file":"^0.0.9","@deepseek-ai/dsh-session-title":"^0.0.9","@deepseek-ai/dsh-skill":"^0.0.9","@deepseek-ai/dsh-skill-badge":"^0.0.9","@deepseek-ai/dsh-skill-filesystem":"^0.0.9","@deepseek-ai/dsh-spill-local":"^0.0.9","@deepseek-ai/dsh-subagent":"^0.0.9","@deepseek-ai/dsh-subagent-fork-in-process":"^0.0.9","@deepseek-ai/dsh-spill-policy":"^0.0.9","@deepseek-ai/dsh-subprocess-local":"^0.0.9","@deepseek-ai/dsh-subagent-spawn-in-process":"^0.0.9","@deepseek-ai/dsh-system-prompt":"^0.0.9","@deepseek-ai/dsh-jobs-local":"^0.0.9","@deepseek-ai/dsh-tool-bash":"^0.0.9","@deepseek-ai/dsh-token-meter":"^0.0.9","@deepseek-ai/dsh-tool-fs":"^0.0.9","@deepseek-ai/dsh-tool-fs-search":"^0.0.9","@deepseek-ai/dsh-tool-call-timeout-policy":"^0.0.9","@deepseek-ai/dsh-tool-pwsh":"^0.0.9","@deepseek-ai/dsh-tool-str-replace-editor":"^0.0.9","@deepseek-ai/dsh-tool-ralph":"^0.0.9","@deepseek-ai/dsh-tool-goal":"^0.0.9","@deepseek-ai/dsh-tool-subagent-control":"^0.0.9","@deepseek-ai/dsh-tool-skill":"^0.0.9","@deepseek-ai/dsh-tool-subagent-report":"^0.0.9","@deepseek-ai/dsh-tool-subagent":"^0.0.9","@deepseek-ai/dsh-tool-jobs":"^0.0.9","@deepseek-ai/dsh-tool-web":"^0.0.9","@deepseek-ai/dsh-tool-workflow":"^0.0.9","@deepseek-ai/dsh-tool-todo":"^0.0.9","@deepseek-ai/dsh-typert-loader":"^0.0.9","@deepseek-ai/dsh-tools":"^0.0.9","@deepseek-ai/dsh-user-approval":"^0.0.9","@deepseek-ai/dsh-typert-registry":"^0.0.9","@deepseek-ai/dsh-web":"^0.0.9","@deepseek-ai/dsh-user-questions":"^0.0.9","@deepseek-ai/dsh-workflow-worker-thread":"^0.0.9","@deepseek-ai/dsh-web-search-deepseek":"^0.0.9","@deepseek-ai/dsh-agent-instructions":"^0.0.9"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-bash-local","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-bash-local","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-shell":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-subprocess":"^0.0.9","@deepseek-ai/dsh-timeout":"^0.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-settings":"^0.0.9"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-bash-sandbox","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-bash-sandbox","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-shell":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-bash-local":"^0.0.9","@deepseek-ai/dsh-sandbox":"^0.0.9","@deepseek-ai/dsh-sandbox-policy":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-brand","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-brand","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-client-connection","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-client-connection","version":"0.0.9","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-host-apiproxy":"^0.0.9","@deepseek-ai/dsh-commands":"^0.0.9","@deepseek-ai/dsh-llm":"^0.0.9","@deepseek-ai/dsh-session":"^0.0.9","@deepseek-ai/dsh-tools":"^0.0.9","@deepseek-ai/schemastery":"^3.18.1","@deepseek-ai/dsh-attachment":"^0.0.9"},"peerDependencies":{"@deepseek-ai/dsh-host-webserver":"^0.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.0.9"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-client-hmr","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-client-hmr","version":"0.0.9","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/cordis-plugin-loader":"^1.0.2","@deepseek-ai/dsh-host-webserver":"^0.0.9","@deepseek-ai/dsh-client-modules":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var $e=Object.defineProperty;var l=(v,j)=>$e(v,"name",{value:j,configurable:!0});window.__ModuleLoader__.load({id:"@deepseek-ai/dsh-client-locale",factory:l(v=>{var j={exports:{}},w=j.exports;Object.defineProperty(w,Symbol.toStringTag,{value:"Module"});let $=v("react/jsx-runtime"),W=v("react"),I=v("@deepseek-ai/dsh-client-ui-primitives"),Y=v("@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 O(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(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=>O(e[i],t[i],r))}l(O,"deepEqual");let R;(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 ve=new Date(a*i);return u===void 0&&(u=o),new Date(+ve+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 S(a,u=2){return a.toString().padStart(u,"0")}l(S,"toDigits"),e.toDigits=S;function Se(a,u=new Date){return a.replace("yyyy",u.getFullYear().toString()).replace("yy",u.getFullYear().toString().slice(2)).replace("MM",S(u.getMonth()+1)).replace("dd",S(u.getDate())).replace("hh",S(u.getHours())).replace("mm",S(u.getMinutes())).replace("ss",S(u.getSeconds())).replace("SSS",S(u.getMilliseconds(),3))}l(Se,"template"),e.template=Se})(R||(R={}));const E=Symbol.for("schemastery"),T=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?.[T]}};Object.defineProperty(p.prototype,T,{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 _(e){return e?.$value??e?.$inner}l(_,"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)?.[s]??o?.[s])))),r.list&&(r.list=r.list.map((i,s)=>i.i18n(b(t,(o={})=>Array.isArray(_(o))?_(o)[s]:Array.isArray(o)?o[s]:F(o))))),r.inner&&(r.inner=r.inner.i18n(b(t,i=>_(i)?_(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(O(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 O(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(O(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=".AdxkIa_row{border-bottom:1px solid var(--dsw-alias-border-l2);align-items:center;gap:8px;padding:16px 0;display:flex}.AdxkIa_rowText{flex-direction:column;flex:1;gap:4px;min-width:0;padding-right:48px;display:flex}.AdxkIa_title{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:400;line-height:22px}.AdxkIa_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}.AdxkIa_selector:hover{background:var(--dsw-alias-interactive-bg-hover)}.AdxkIa_chevron{flex:none}",q="@deepseek-ai/dsh-client-locale/LanguageRow.module.css";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify(q)+"]")===null){const e=document.createElement("style");e.dataset.plugin="@deepseek-ai/dsh-client-locale",e.dataset.pluginCss=q,e.textContent=le,document.head.appendChild(e)}var k={rowText:"AdxkIa_rowText",chevron:"AdxkIa_chevron",selector:"AdxkIa_selector",row:"AdxkIa_row",title:"AdxkIa_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:k.row,children:[(0,$.jsx)("div",{className:k.rowText,children:(0,$.jsx)("div",{className:k.title,children:e("language.title")})}),(0,$.jsx)(I.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:k.selector,"aria-haspopup":"menu","aria-expanded":s,onClick:l(()=>{o(h=>!h)},"onClick"),children:[f,(0,$.jsx)(I.IconChevronDownOutline14,{className:k.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",V="common",z="settings.locale",H=Object.freeze([{id:"zh",label:"中文"},{id:"en",label:"English"}]);var U=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:H,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=H.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 U(e,e.settingsScope.bind({namespace:re}));t.register(V,{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=V,w.FALLBACK_LOCALE=ue,w.LocaleRuntime=U,w.SETTINGS_NS=z,w.apply=ye,w.inject=de,j.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",title:"j_Uvsa_title",rowText:"j_Uvsa_rowText",selector:"j_Uvsa_selector",row:"j_Uvsa_row"};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.9","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/cordis":"^4.0.1","@deepseek-ai/dsh-api-remotes":"^0.0.9","@deepseek-ai/dsh-client-runtime":"^0.0.9","@deepseek-ai/dsh-client-ui-primitives":"^0.0.9","@deepseek-ai/dsh-client-connection":"^0.0.9","@deepseek-ai/dsh-client-ui-slots":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/dsh-client-ui-settings":"^0.0.9"},"dependencies":{"@deepseek-ai/dsh-settings":"^0.0.9","@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.9","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.9","@deepseek-ai/cordis":"^4.0.1"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-client-runtime","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-client-runtime","version":"0.0.9","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-typert-registry","@deepseek-ai/dsh-api-remotes"],"platform":"web","immediately":true}},"license":"MIT","dependencies":{"immer":"^10.1.1","react":"^18.2.0","zustand":"~4.4.7","@deepseek-ai/dsh-agent":"^0.0.9","@deepseek-ai/dsh-commands":"^0.0.9","@deepseek-ai/dsh-client-connection":"^0.0.9","@deepseek-ai/dsh-attachment":"^0.0.9","@deepseek-ai/dsh-host-apiproxy":"^0.0.9","@deepseek-ai/dsh-client-ui-slots":"^0.0.9","@deepseek-ai/dsh-llm":"^0.0.9","@deepseek-ai/dsh-llm-retry":"^0.0.9","@deepseek-ai/dsh-session":"^0.0.9","@deepseek-ai/dsh-session-projection":"^0.0.9","@deepseek-ai/dsh-tools":"^0.0.9","@deepseek-ai/dsh-session-title":"^0.0.9"},"peerDependencies":{"@deepseek-ai/dsh-api-remotes":"^0.0.9","@deepseek-ai/dsh-typert-protocol":"^0.0.9","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-typert-registry":"^0.0.9","@deepseek-ai/dsh-invariants":"^0.0.9"}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@deepseek-ai/dsh-client-schema-form","version":"0.0.
|
|
1
|
+
{"name":"@deepseek-ai/dsh-client-schema-form","version":"0.0.9","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"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.9","@deepseek-ai/cordis":"^4.0.1"}}
|