@songtonyli/dsh-cli 0.1.30 → 0.1.32
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/README.md +1 -1
- package/bin/dsh.mjs +1 -1
- package/node_modules/@deepseek-ai/cordis/README.md +4 -0
- package/node_modules/@deepseek-ai/cordis/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis/src/index.ts +2 -0
- package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
- package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
- package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
- package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +87 -7
- package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -3
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/diff.ts +45 -0
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +53 -7
- package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +13 -1
- package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
- package/node_modules/@deepseek-ai/cosmokit/README.md +6 -0
- package/node_modules/@deepseek-ai/cosmokit/lib/index.js +112 -19
- package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
- package/node_modules/@deepseek-ai/cosmokit/src/index.ts +2 -0
- package/node_modules/@deepseek-ai/cosmokit/src/types.ts +49 -23
- package/node_modules/@deepseek-ai/cosmokit/src/volatile.ts +86 -0
- package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh/lib/bin.js +21 -5
- package/node_modules/@deepseek-ai/dsh/lib/{dump-config-Bb5YvFIX.js → dump-config-C-0P1h0W.js} +14 -3
- package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +2 -0
- package/node_modules/@deepseek-ai/dsh/lib/dump-config-schema-BgEU7VYz.js +41 -0
- package/node_modules/@deepseek-ai/dsh/lib/{plugin-DJ-rVHUS.js → plugin-CnNK4cws.js} +1 -1
- package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-BNu17Y9U.js → profile-boot-DIiro1p-.js} +8 -15
- package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
- package/node_modules/@deepseek-ai/dsh/package.json +113 -119
- package/node_modules/@deepseek-ai/dsh-acp/lib/index.js +7 -6
- package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-agent/README.md +3 -0
- package/node_modules/@deepseek-ai/dsh-agent/README.zh.md +3 -0
- package/node_modules/@deepseek-ai/dsh-agent/lib/index.js +40 -6
- package/node_modules/@deepseek-ai/dsh-agent/lib/types/archive-admission.js +35 -0
- package/node_modules/@deepseek-ai/dsh-agent/lib/types/consumed-work.js +5 -4
- package/node_modules/@deepseek-ai/dsh-agent/lib/types/index.js +4 -0
- package/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.js +1 -2
- package/node_modules/@deepseek-ai/dsh-agent/package.json +27 -20
- package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +9 -9
- package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +9 -9
- package/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +26 -39
- package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -2
- package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +39 -49
- package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +26 -28
- package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset}/README.i18n.yaml +3 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset/README.md +94 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/README.zh.md +94 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/lib/index.js +29 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +49 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/SKILL.md +29 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +506 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +38 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +60 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/mcp-bundle.md +5 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/ui-plugin.md +13 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/verification.md +5 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/client.js +22 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/package.json +15 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/cordis.patch.yml +8 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/package.json +7 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset/skills/editing-cordis-compositions/SKILL.md +84 -0
- package/node_modules/@deepseek-ai/{dsh-api-authorization-controller → dsh-agent-preset-registry}/README.i18n.yaml +3 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +107 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +107 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +781 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/invariant.js +806 -0
- package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/typert.host.js +118 -270
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +84 -0
- package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/composition-inventory.js +9 -36
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/definition.js +29 -0
- package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/display.js +12 -3
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +371 -0
- package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/invariant.js +7 -19
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +243 -0
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/preset.js +2 -0
- package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/session.js +1 -1
- package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +96 -0
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
- package/node_modules/@deepseek-ai/{dsh-settings-file → dsh-api-account-controller}/README.i18n.yaml +3 -3
- package/node_modules/@deepseek-ai/dsh-api-account-controller/README.md +53 -0
- package/node_modules/@deepseek-ai/dsh-api-account-controller/README.zh.md +53 -0
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/index.js +209 -0
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +273 -0
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +267 -0
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/index.js +116 -0
- package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/{dsh-api-authorization-controller → dsh-api-account-controller}/package.json +13 -20
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +9 -4
- package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +9 -4
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +294 -51
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +516 -92
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/index.js +104 -14
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +2 -2
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +164 -11
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +322 -33
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/stream-protocol.js +10 -46
- package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/stream-server.js +210 -23
- package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +18 -13
- package/node_modules/@deepseek-ai/{dsh-llm-cursor → dsh-api-job-controller}/README.i18n.yaml +3 -3
- package/node_modules/@deepseek-ai/dsh-api-job-controller/README.md +69 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/README.zh.md +69 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/client.js +367 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/index.js +377 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/typert.host.js +273 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/typert.remote-client.js +181 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/index.js +23 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/model.js +164 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/service.js +182 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/index.js +150 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/observe.js +107 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/rows.js +43 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/types.js +8 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/wake.js +59 -0
- package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +82 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1751 -1017
- package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +7 -3
- package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +40 -39
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +31 -8
- package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +31 -8
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +603 -515
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +299 -137
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +373 -183
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +216 -124
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/archived-session-gate.js +52 -0
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/lineage.js +2 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +249 -277
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +45 -13
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +35 -47
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +112 -50
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +72 -36
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/control.js +2 -44
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +1 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +117 -13
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/list.js +24 -15
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/skill-catalog.js +60 -50
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/types.js +0 -1
- package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +68 -72
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.md +1 -2
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.zh.md +1 -2
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/index.js +6 -78
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.host.js +33 -99
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.remote-client.js +32 -80
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/types/index.js +6 -61
- package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +50 -22
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.remote-client.js +4 -4
- package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -19
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.md +16 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.zh.md +16 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/client.js +98 -6
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +202 -15
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.host.js +161 -11
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.remote-client.js +121 -8
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/index.js +4 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/model.js +70 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/service.js +33 -3
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/commands.js +45 -7
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +65 -0
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/feed.js +9 -1
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/index.js +62 -5
- package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -18
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +26 -25
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +26 -25
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/client.js +41 -35
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +129 -121
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +72 -141
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +61 -120
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/changes.js +106 -46
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/client/change-feed.js +34 -27
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/client/provider.js +13 -6
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +32 -53
- package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -14
- package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-app-boot/README.md +33 -15
- package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +33 -15
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +1647 -681
- package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +255 -357
- package/node_modules/@deepseek-ai/dsh-app-boot/package.json +20 -18
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-authorization/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-authorization/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-authorization/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-authorization/lib/index.js +16 -4
- package/node_modules/@deepseek-ai/dsh-authorization/lib/types/index.js +19 -4
- package/node_modules/@deepseek-ai/dsh-authorization/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-base/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-base/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +20 -26
- package/node_modules/@deepseek-ai/dsh-base/package.json +94 -94
- package/node_modules/@deepseek-ai/dsh-bash-local/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-bash-local/README.md +7 -6
- package/node_modules/@deepseek-ai/dsh-bash-local/README.zh.md +7 -6
- package/node_modules/@deepseek-ai/dsh-bash-local/lib/index.js +153 -202
- package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -13
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/lib/index.js +58 -63
- package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-connection/README.md +7 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/README.zh.md +7 -3
- package/node_modules/@deepseek-ai/dsh-client-connection/lib/client.js +169 -28
- package/node_modules/@deepseek-ai/dsh-client-connection/lib/index.js +98 -36
- package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -10
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/client.js +8 -12
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +46 -18
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/client/runtime.js +5 -12
- package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/protocol.js +5 -0
- package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-hmr/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +6 -4
- package/node_modules/@deepseek-ai/dsh-client-hmr/lib/index.js +8 -5
- package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-locale/README.md +9 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/README.zh.md +9 -1
- package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +225 -75
- package/node_modules/@deepseek-ai/dsh-client-locale/lib/index.js +9 -8
- package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -11
- package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/README.md +2 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +2 -1
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +57 -36
- package/node_modules/@deepseek-ai/dsh-client-modules/lib/invariant.js +2 -2
- package/node_modules/@deepseek-ai/dsh-client-modules/package.json +8 -7
- package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -6
- package/node_modules/@deepseek-ai/dsh-client-store/LICENSE +21 -0
- package/node_modules/@deepseek-ai/{dsh-client-ui-settings-unarchive-sessions → dsh-client-store}/README.i18n.yaml +3 -3
- package/node_modules/@deepseek-ai/dsh-client-store/README.md +48 -0
- package/node_modules/@deepseek-ai/dsh-client-store/README.zh.md +48 -0
- package/node_modules/@deepseek-ai/dsh-client-store/lib/index.js +180 -0
- package/node_modules/@deepseek-ai/dsh-client-store/lib/types/contract.d.ts +121 -0
- package/node_modules/@deepseek-ai/dsh-client-store/lib/types/index.d.ts +92 -0
- package/node_modules/@deepseek-ai/dsh-client-store/package.json +37 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +13 -31
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +22 -40
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +865 -1033
- package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +21 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +28 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +62 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +60 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +4808 -1393
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +37 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +41 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +20 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +19 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +19 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +1321 -349
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/index.js +9 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +34 -32
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +28 -25
- package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +14 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +14 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +628 -497
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +17 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +31 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +7 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +18 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +13 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +25 -18
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +29 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +413 -63
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/index.js +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +26 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +75 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +10 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +15 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +12 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +20 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +20 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +530 -195
- package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +25 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +39 -100
- package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -16
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +8 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +73 -60
- package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +29 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +29 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +1095 -381
- package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +16 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +25 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +25 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +1 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +27 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +68 -48
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +6 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +1 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/PathLabel.module.css +28 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +76 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +55 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/StateDot.module.css +64 -37
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +13 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TextShimmer.module.css +27 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +31 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +12 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +5418 -2739
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +53 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +145 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConfigField.d.ts +33 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +4 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +14 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/LinkIcon.d.ts +15 -30
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +50 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PathLabel.d.ts +13 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PermissionIcon.d.ts +39 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReferenceIcon.d.ts +12 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedControl.d.ts +35 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedTabs.d.ts +26 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SiteGlyph.d.ts +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/StateDot.d.ts +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +15 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TextShimmer.d.ts +13 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Toast.d.ts +19 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +12 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-types.d.ts +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +19 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +376 -195
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/props.d.ts +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +36 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +21 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/overlay-top-margin.d.ts +14 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +17 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/SettingsForm.d.ts +46 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +69 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/form-model.d.ts +214 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +4 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +12 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +7 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +7 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-session/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-session/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-session/lib/client.js +2 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +20 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +20 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +281 -117
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/index.js +18 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +13 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +75 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +75 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2383 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +28 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +69 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.md +78 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.zh.md +78 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/lib/client.js +175 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/lib/index.js +12 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +60 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +17 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +17 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +166 -36
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/index.js +8 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +19 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +14 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +25 -22
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +1246 -180
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/index.js +24 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +15 -10
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.zh.md +5 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +116 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.md +11 -46
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.zh.md +15 -50
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +15 -1753
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +10 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.md +78 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.zh.md +78 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/lib/client.js +199 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/lib/index.js +12 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +60 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +9 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.md +82 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.zh.md +82 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +857 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/index.js +13 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +61 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +79 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +79 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +324 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/index.js +13 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +61 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +35 -28
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +12 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +13 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +13 -12
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +1191 -429
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +16 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +46 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +46 -20
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +133782 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +3766 -789
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +37 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/index.js +13 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +34 -21
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +11 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +11 -9
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +316 -106
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +15 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +10 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +10 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +323 -111
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -14
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +24 -141
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +16 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +25 -24
- package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +13 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +13 -7
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +168 -260
- package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +6 -4
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +172 -70
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +14 -27
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/Montserrat-OFL.txt +93 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/brand-font.css +24 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-light.woff2 +0 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-medium.woff2 +0 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-regular.woff2 +0 -0
- package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +17 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +10 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +10 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1887 -204
- package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +24 -23
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +32 -44
- package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -17
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +19 -13
- package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -19
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +9 -8
- package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -15
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +102 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +102 -11
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +2182 -1015
- package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -22
- package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +46 -18
- package/node_modules/@deepseek-ai/dsh-commands/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-compaction/lib/index.js +2 -5
- package/node_modules/@deepseek-ai/dsh-compaction/lib/invariant.js +4 -22
- package/node_modules/@deepseek-ai/dsh-compaction/lib/types/checkpoint.js +2 -2
- package/node_modules/@deepseek-ai/dsh-compaction/lib/types/invariant.js +2 -3
- package/node_modules/@deepseek-ai/dsh-compaction/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +9 -8
- package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +9 -8
- package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +50 -19
- package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/index.js +1 -7
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/types/image-offload.js +0 -3
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/types/project-message.js +0 -5
- package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/lib/index.js +3 -7
- package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-config-editor/README.md +79 -0
- package/node_modules/@deepseek-ai/dsh-config-editor/README.zh.md +79 -0
- package/node_modules/@deepseek-ai/dsh-config-editor/lib/index.js +132 -0
- package/node_modules/@deepseek-ai/dsh-config-editor/package.json +54 -0
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +878 -170
- package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +6 -68
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +107 -51
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.remote-client.js +15 -15
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +5 -6
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/sandbox.js +0 -27
- package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-credentials/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +63 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +63 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/index.js +35 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/index.js +36 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +42 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +96 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +96 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +891 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +55 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +488 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/logout.js +34 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/protocol.js +210 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +52 -0
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +8 -4
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +8 -4
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +14 -74
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +6 -8
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +51 -189
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +3 -151
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +0 -41
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +10 -10
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +8 -4
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +28 -26
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +16 -4
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +16 -4
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +3 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/icon.svg +12 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +12 -7
- package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-web-profile → dsh-experimental-api-speech-to-text}/README.i18n.yaml +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.md +78 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.zh.md +78 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/index.js +218 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +432 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +311 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/index.js +142 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +60 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +11 -9
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +11 -9
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +127 -562
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +30 -27
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +76 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +76 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +5714 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/index.js +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +92 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.md +80 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.zh.md +80 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/index.js +200 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/index.js +181 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/types.js +2 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/wave.js +24 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +57 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +82 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +82 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +818 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +219 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +53 -0
- package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/runtime/assets.json +28 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +23 -24
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +27 -25
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.md +77 -0
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.zh.md +77 -0
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/cordis.patch.yml +13 -0
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/icon.svg +9 -0
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/en.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/zh.json +6 -0
- package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +54 -0
- package/node_modules/@deepseek-ai/dsh-file-reference/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-file-reference/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-file-reference/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-file-reference-local/README.md +3 -4
- package/node_modules/@deepseek-ai/dsh-file-reference-local/README.zh.md +3 -4
- package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-fs/README.md +7 -5
- package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +7 -5
- package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +12 -0
- package/node_modules/@deepseek-ai/dsh-fs/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-fs-local/README.md +6 -3
- package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +6 -3
- package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +27 -0
- package/node_modules/@deepseek-ai/dsh-fs-local/package.json +8 -7
- package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +46 -18
- package/node_modules/@deepseek-ai/dsh-goal/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/lib/index.js +2 -3
- package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-headless/lib/{json-stream-Bh4BGGk9.js → json-stream-BA-F3lfb.js} +4 -4
- package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +1 -1
- package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-hmr/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-hook-protocol/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/lib/index.js +4 -7
- package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-hooks-codex/lib/index.js +3 -6
- package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +28 -81
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/icons.js +4 -49
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/index.js +8 -8
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +8 -27
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/shared.js +16 -7
- package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.md +8 -4
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.zh.md +8 -4
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/index.js +19 -11
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +23 -4
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +23 -4
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/types/index.js +18 -10
- package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +14 -12
- package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-host-webserver/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-host-webserver/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-invariants/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-invariants/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-invariants/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-invariants/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-jobs/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-jobs/README.md +18 -11
- package/node_modules/@deepseek-ai/dsh-jobs/README.zh.md +18 -11
- package/node_modules/@deepseek-ai/dsh-jobs/lib/index.js +74 -16
- package/node_modules/@deepseek-ai/dsh-jobs/lib/invariant.js +67 -17
- package/node_modules/@deepseek-ai/dsh-jobs/lib/types/archive-admission.js +43 -0
- package/node_modules/@deepseek-ai/dsh-jobs/lib/types/index.js +34 -16
- package/node_modules/@deepseek-ai/dsh-jobs/lib/types/invariant.js +90 -27
- package/node_modules/@deepseek-ai/dsh-jobs/lib/types/types.js +3 -2
- package/node_modules/@deepseek-ai/dsh-jobs/lib/types/view.js +9 -0
- package/node_modules/@deepseek-ai/dsh-jobs/package.json +22 -11
- package/node_modules/@deepseek-ai/dsh-jobs-local/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-jobs-local/README.md +18 -11
- package/node_modules/@deepseek-ai/dsh-jobs-local/README.zh.md +17 -10
- package/node_modules/@deepseek-ai/dsh-jobs-local/lib/index.js +566 -193
- package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm/README.md +11 -8
- package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +11 -8
- package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +41 -97
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +69 -13
- package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/assembler.js +4 -4
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +12 -64
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +3 -1
- package/node_modules/@deepseek-ai/dsh-llm/lib/types/message.js +21 -16
- package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +35 -49
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +36 -50
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +1132 -2048
- package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +53 -43
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +12 -9
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +11 -8
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +84 -184
- package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +30 -24
- package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-native-command/README.md +8 -9
- package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +8 -9
- package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +612 -3
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/desktop-entry.js +79 -0
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-linux.js +70 -0
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +228 -0
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications.js +191 -0
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/index.js +10 -0
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +230 -0
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/runner.js +27 -0
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/types.js +25 -0
- package/node_modules/@deepseek-ai/dsh-native-command/lib/types/url-opener.js +88 -0
- package/node_modules/@deepseek-ai/dsh-native-command/package.json +10 -5
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +33 -57
- package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/index.js +4 -4
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.host.js +41 -3
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.remote-client.js +39 -1
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/index.js +4 -3
- package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-package-manifest/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-package-manifest/README.zh.md +3 -1
- package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +16 -35
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +54 -20
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +7 -1
- package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +14 -38
- package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -24
- package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-persona/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-persona/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +1 -2
- package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +12 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +12 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +371 -74
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +203 -29
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +155 -15
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +210 -70
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +16 -2
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +35 -5
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/registry.js +95 -0
- package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +5 -1
- package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +37 -32
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-pwsh-local/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-pwsh-local/README.md +6 -5
- package/node_modules/@deepseek-ai/dsh-pwsh-local/README.zh.md +6 -5
- package/node_modules/@deepseek-ai/dsh-pwsh-local/lib/index.js +161 -196
- package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -13
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.md +5 -5
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.zh.md +5 -5
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/lib/index.js +58 -63
- package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +36 -60
- package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +3 -3
- package/node_modules/@deepseek-ai/dsh-sandbox-local/README.md +3 -3
- package/node_modules/@deepseek-ai/dsh-sandbox-local/README.zh.md +3 -3
- package/node_modules/@deepseek-ai/dsh-sandbox-local/lib/index.js +3 -2
- package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
- package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +3 -3
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.md +19 -15
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.zh.md +17 -13
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-CutH1Lgc.js → types-DxezulnA.js} +267 -78
- package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-schedule/README.md +3 -1
- package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +4 -1
- package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +104 -37
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +61 -5
- package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +11 -1
- package/node_modules/@deepseek-ai/dsh-schedule/package.json +25 -23
- package/node_modules/@deepseek-ai/dsh-scope/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +2 -0
- package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +2 -0
- package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +15 -0
- package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +10 -8
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session/README.md +11 -9
- package/node_modules/@deepseek-ai/dsh-session/README.zh.md +12 -8
- package/node_modules/@deepseek-ai/dsh-session/lib/index.js +215 -125
- package/node_modules/@deepseek-ai/dsh-session/lib/invariant.js +4 -1
- package/node_modules/@deepseek-ai/dsh-session/lib/types/fork.js +28 -0
- package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +56 -61
- package/node_modules/@deepseek-ai/dsh-session/lib/types/invariant.js +5 -1
- package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session/lib/types/repair.js +52 -23
- package/node_modules/@deepseek-ai/dsh-session/lib/types/surface.js +73 -17
- package/node_modules/@deepseek-ai/dsh-session/lib/types/types.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session/package.json +15 -11
- package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.md +5 -1
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.zh.md +5 -1
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/index.js +55 -10
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/children.js +17 -0
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/generated.js +25 -11
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/historical.js +20 -0
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -10
- package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +350 -0
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +350 -0
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/lib/index.js +1552 -0
- package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +51 -0
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +43 -20
- package/node_modules/@deepseek-ai/dsh-session-log-export/lib/index.js +48 -17
- package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -23
- package/node_modules/@deepseek-ai/dsh-session-persistence/lib/index.js +2 -0
- package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.md +6 -2
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.zh.md +6 -2
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/index.js +210 -45
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +1456 -313
- package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.md +2 -2
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.zh.md +2 -2
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/lib/index.js +71 -51
- package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +4 -5
- package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/index.js +5 -5
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +47 -19
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.remote-client.js +1 -1
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/index.js +3 -7
- package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/projection.js +1 -0
- package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
- package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-session-telemetry/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-telemetry/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-session-telemetry/lib/index.js +6 -5
- package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
- package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-session-title/package.json +19 -19
- package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-session-title-llm/lib/index.js +1 -4
- package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-settings/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-settings/README.md +19 -96
- package/node_modules/@deepseek-ai/dsh-settings/README.zh.md +25 -102
- package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +360 -426
- package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +271 -512
- package/node_modules/@deepseek-ai/dsh-settings/lib/types/redact.js +14 -8
- package/node_modules/@deepseek-ai/dsh-settings/lib/types/schema.js +85 -0
- package/node_modules/@deepseek-ai/dsh-settings/lib/types/types.js +1 -9
- package/node_modules/@deepseek-ai/dsh-settings/package.json +21 -17
- package/node_modules/@deepseek-ai/dsh-shell/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-shell/README.md +17 -10
- package/node_modules/@deepseek-ai/dsh-shell/README.zh.md +17 -10
- package/node_modules/@deepseek-ai/dsh-shell/lib/index.js +19 -21
- package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -9
- package/node_modules/@deepseek-ai/dsh-shell-env/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-shell-env/README.md +5 -5
- package/node_modules/@deepseek-ai/dsh-shell-env/README.zh.md +5 -5
- package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +10 -1
- package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -12
- package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
- package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-skill-office/README.md +100 -0
- package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +100 -0
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +46 -0
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-pptx/SKILL.md +70 -0
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-xlsx/SKILL.md +56 -0
- package/node_modules/@deepseek-ai/dsh-skill-office/assets/scripts/check_office.py +279 -0
- package/node_modules/@deepseek-ai/dsh-skill-office/lib/index.js +80 -0
- package/node_modules/@deepseek-ai/dsh-skill-office/package.json +43 -0
- package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-subagent/README.md +9 -6
- package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +9 -6
- package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +301 -239
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +60 -89
- package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +2 -56
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/archive-admission.js +151 -0
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/catalog.js +12 -6
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control-types.js +2 -3
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control.js +2 -40
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +29 -91
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/lifecycle.js +14 -19
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +45 -49
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/projection.js +10 -4
- package/node_modules/@deepseek-ai/dsh-subagent/lib/types/run-settlement.js +1 -1
- package/node_modules/@deepseek-ai/dsh-subagent/package.json +57 -54
- package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
- package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +26 -26
- package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +3 -3
- package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
- package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +2 -3
- package/node_modules/@deepseek-ai/dsh-time-context/lib/invariant.js +4 -4
- package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +35 -57
- package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
- package/node_modules/@deepseek-ai/dsh-token-meter/lib/index.js +0 -7
- package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/estimate.js +0 -3
- package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/surface-fold.js +0 -5
- package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
- package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +11 -11
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +16 -10
- package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +16 -10
- package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +421 -183
- package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +9 -3
- package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +22 -22
- package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +6 -5
- package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +6 -5
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +4 -9980
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +7809 -0
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/config.js +93 -0
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/host.js +17 -0
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/index.js +57 -0
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/present.js +16 -0
- package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/providers.js +85 -0
- package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +21 -12
- package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +30 -30
- package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +1 -2
- package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +9 -8
- package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +10 -9
- package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +110 -51
- package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -4
- package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +10 -5
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +10 -5
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +440 -207
- package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +9 -3
- package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
- package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/model-selection-settings.js +12 -38
- package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -32
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +10 -20
- package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
- package/node_modules/@deepseek-ai/dsh-tool-web/package.json +21 -21
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +21 -8
- package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +21 -8
- package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +179 -11
- package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +147 -14
- package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/record.js +43 -0
- package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -21
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +6 -0
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.md +128 -0
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.zh.md +128 -0
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/lib/index.js +252 -0
- package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +44 -0
- package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tools/README.md +4 -0
- package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +4 -0
- package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +5 -6
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +2 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
- package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +1 -0
- package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
- package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-tui-app/README.md +18 -16
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +18 -16
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +866 -144
- package/node_modules/@deepseek-ai/dsh-tui-app/package.json +75 -75
- package/node_modules/@deepseek-ai/dsh-typert-loader/lib/index.js +1 -0
- package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-typert-protocol/README.md +7 -2
- package/node_modules/@deepseek-ai/dsh-typert-protocol/README.zh.md +7 -2
- package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/index.js +66 -3
- package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/index.js +20 -2
- package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/json-value.js +61 -0
- package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +6 -3
- package/node_modules/@deepseek-ai/dsh-typert-registry/lib/client.js +3 -0
- package/node_modules/@deepseek-ai/dsh-typert-registry/lib/index.js +3 -0
- package/node_modules/@deepseek-ai/dsh-typert-registry/lib/types/service.js +6 -0
- package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-user-approval/lib/index.js +1 -4
- package/node_modules/@deepseek-ai/dsh-user-approval/lib/invariant.js +1 -4
- package/node_modules/@deepseek-ai/dsh-user-approval/lib/types/index.js +1 -1
- package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
- package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
- package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
- package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-web-app/README.md +9 -6
- package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +9 -6
- package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +51 -29
- package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +293 -1
- package/node_modules/@deepseek-ai/dsh-web-app/package.json +150 -102
- package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +154 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/minimal.patch.yml +61 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +152 -0
- package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +146 -0
- package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +127 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +1 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon-dark.svg +3 -0
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon.svg +0 -5
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +4 -3
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/manifest.webmanifest +3 -4
- package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +15 -10
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.md +4 -4
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.zh.md +4 -4
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +21 -29
- package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -18
- package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
- package/node_modules/@deepseek-ai/dsh-webhook/lib/index.js +121 -50
- package/node_modules/@deepseek-ai/dsh-webhook/lib/types/session.js +111 -46
- package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
- package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
- package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
- package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
- package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -36
- package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +2 -2
- package/node_modules/@deepseek-ai/dsh-workspace/README.md +16 -4
- package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +17 -4
- package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +166 -25
- package/node_modules/@deepseek-ai/dsh-workspace/lib/invariant.js +8 -3
- package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +185 -21
- package/node_modules/@deepseek-ai/dsh-workspace/lib/types/spec.js +11 -4
- package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
- package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
- package/node_modules/@deepseek-ai/schemastery/README.md +4 -0
- package/node_modules/@deepseek-ai/schemastery/lib/index.cjs +40 -1
- package/node_modules/@deepseek-ai/schemastery/lib/index.mjs +41 -2
- package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
- package/node_modules/@deepseek-ai/schemastery/src/index.ts +93 -33
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +0 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +0 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +0 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +0 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +0 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +0 -2
- package/node_modules/@eslint-community/regexpp/LICENSE +21 -0
- package/node_modules/@eslint-community/regexpp/README.md +177 -0
- package/node_modules/@eslint-community/regexpp/index.js +3042 -0
- package/node_modules/@eslint-community/regexpp/index.mjs +3032 -0
- package/node_modules/@eslint-community/regexpp/package.json +71 -0
- package/node_modules/ajv/.runkit_example.js +23 -0
- package/node_modules/ajv/LICENSE +22 -0
- package/node_modules/ajv/README.md +207 -0
- package/node_modules/ajv/dist/2019.js +61 -0
- package/node_modules/ajv/dist/2020.js +55 -0
- package/node_modules/ajv/dist/ajv.js +50 -0
- package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/node_modules/ajv/dist/compile/errors.js +123 -0
- package/node_modules/ajv/dist/compile/index.js +242 -0
- package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
- package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
- package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
- package/node_modules/ajv/dist/compile/names.js +28 -0
- package/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/node_modules/ajv/dist/compile/rules.js +26 -0
- package/node_modules/ajv/dist/compile/util.js +178 -0
- package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/node_modules/ajv/dist/core.js +618 -0
- package/node_modules/ajv/dist/jtd.js +72 -0
- package/node_modules/ajv/dist/refs/data.json +13 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
- package/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
- package/node_modules/ajv/dist/runtime/quote.js +30 -0
- package/node_modules/ajv/dist/runtime/re2.js +6 -0
- package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
- package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/node_modules/ajv/dist/standalone/index.js +90 -0
- package/node_modules/ajv/dist/standalone/instance.js +35 -0
- package/node_modules/ajv/dist/types/index.js +3 -0
- package/node_modules/ajv/dist/types/json-schema.js +3 -0
- package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
- package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
- package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
- package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/node_modules/ajv/dist/vocabularies/next.js +8 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
- package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/node_modules/ajv/lib/2019.ts +81 -0
- package/node_modules/ajv/lib/2020.ts +75 -0
- package/node_modules/ajv/lib/ajv.ts +70 -0
- package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
- package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
- package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
- package/node_modules/ajv/lib/compile/errors.ts +184 -0
- package/node_modules/ajv/lib/compile/index.ts +324 -0
- package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
- package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
- package/node_modules/ajv/lib/compile/names.ts +27 -0
- package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
- package/node_modules/ajv/lib/compile/resolve.ts +149 -0
- package/node_modules/ajv/lib/compile/rules.ts +50 -0
- package/node_modules/ajv/lib/compile/util.ts +213 -0
- package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
- package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
- package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
- package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
- package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
- package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
- package/node_modules/ajv/lib/core.ts +892 -0
- package/node_modules/ajv/lib/jtd.ts +132 -0
- package/node_modules/ajv/lib/refs/data.json +13 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
- package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
- package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
- package/node_modules/ajv/lib/runtime/equal.ts +7 -0
- package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
- package/node_modules/ajv/lib/runtime/quote.ts +31 -0
- package/node_modules/ajv/lib/runtime/re2.ts +6 -0
- package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
- package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
- package/node_modules/ajv/lib/runtime/uri.ts +6 -0
- package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
- package/node_modules/ajv/lib/standalone/index.ts +100 -0
- package/node_modules/ajv/lib/standalone/instance.ts +36 -0
- package/node_modules/ajv/lib/types/index.ts +244 -0
- package/node_modules/ajv/lib/types/json-schema.ts +187 -0
- package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
- package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
- package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
- package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
- package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
- package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
- package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
- package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
- package/node_modules/ajv/package.json +104 -0
- package/node_modules/fast-uri/.gitattributes +2 -0
- package/node_modules/fast-uri/.github/dependabot.yml +13 -0
- package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
- package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
- package/node_modules/fast-uri/LICENSE +30 -0
- package/node_modules/fast-uri/README.md +152 -0
- package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/node_modules/fast-uri/benchmark/package.json +17 -0
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/node_modules/fast-uri/eslint.config.js +6 -0
- package/node_modules/fast-uri/index.js +631 -0
- package/node_modules/fast-uri/lib/schemes.js +272 -0
- package/node_modules/fast-uri/lib/utils.js +747 -0
- package/node_modules/fast-uri/package.json +56 -0
- package/node_modules/fast-uri/test/ajv.test.js +43 -0
- package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
- package/node_modules/fast-uri/test/equal.test.js +145 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
- package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
- package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
- package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
- package/node_modules/fast-uri/test/parse.test.js +327 -0
- package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
- package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
- package/node_modules/fast-uri/test/resolve.test.js +87 -0
- package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
- package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
- package/node_modules/fast-uri/test/security.test.js +431 -0
- package/node_modules/fast-uri/test/serialize.test.js +151 -0
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/node_modules/fast-uri/test/uri-js.test.js +912 -0
- package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
- package/node_modules/fast-uri/test/util.test.js +38 -0
- package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
- package/node_modules/fast-uri/tsconfig.json +9 -0
- package/node_modules/fast-uri/types/index.test-d.ts +17 -0
- package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
- package/node_modules/json-schema-traverse/LICENSE +21 -0
- package/node_modules/json-schema-traverse/README.md +95 -0
- package/node_modules/json-schema-traverse/index.js +93 -0
- package/node_modules/json-schema-traverse/package.json +38 -0
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
- package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
- package/node_modules/require-from-string/index.js +34 -0
- package/node_modules/require-from-string/license +21 -0
- package/node_modules/require-from-string/package.json +25 -0
- package/node_modules/require-from-string/readme.md +56 -0
- package/node_modules/sherpa-onnx-node/README.md +11 -0
- package/node_modules/sherpa-onnx-node/addon-static-import.js +70 -0
- package/node_modules/sherpa-onnx-node/addon.js +98 -0
- package/node_modules/sherpa-onnx-node/audio-tagg.js +45 -0
- package/node_modules/sherpa-onnx-node/keyword-spotter.js +68 -0
- package/node_modules/sherpa-onnx-node/non-streaming-asr.js +158 -0
- package/node_modules/sherpa-onnx-node/non-streaming-speaker-diarization.js +38 -0
- package/node_modules/sherpa-onnx-node/non-streaming-speech-denoiser.js +32 -0
- package/node_modules/sherpa-onnx-node/non-streaming-tts.js +116 -0
- package/node_modules/sherpa-onnx-node/online-speech-denoiser.js +46 -0
- package/node_modules/sherpa-onnx-node/package.json +56 -0
- package/node_modules/sherpa-onnx-node/punctuation.js +43 -0
- package/node_modules/sherpa-onnx-node/resampler.js +80 -0
- package/node_modules/sherpa-onnx-node/sherpa-onnx.js +49 -0
- package/node_modules/sherpa-onnx-node/speaker-identification.js +152 -0
- package/node_modules/sherpa-onnx-node/spoken-language-identification.js +38 -0
- package/node_modules/sherpa-onnx-node/streaming-asr.js +181 -0
- package/node_modules/sherpa-onnx-node/types.js +788 -0
- package/node_modules/sherpa-onnx-node/vad.js +134 -0
- package/package.json +318 -272
- package/node_modules/@bufbuild/protobuf/README.md +0 -41
- package/node_modules/@bufbuild/protobuf/dist/commonjs/clone.js +0 -66
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/boot.js +0 -18
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/enum.js +0 -31
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/extension.js +0 -28
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/file.js +0 -18
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/index.js +0 -39
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/message.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/service.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/symbols.js +0 -43
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/types.js +0 -15
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/boot.js +0 -105
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/embed.js +0 -244
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/enum.js +0 -58
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/extension.js +0 -28
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/file.js +0 -35
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/index.js +0 -39
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/message.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/restore-json-names.js +0 -29
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/scalar.js +0 -67
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/service.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/symbols.js +0 -74
- package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/types.js +0 -15
- package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +0 -296
- package/node_modules/@bufbuild/protobuf/dist/commonjs/descriptors.js +0 -53
- package/node_modules/@bufbuild/protobuf/dist/commonjs/equals.js +0 -209
- package/node_modules/@bufbuild/protobuf/dist/commonjs/extensions.js +0 -168
- package/node_modules/@bufbuild/protobuf/dist/commonjs/fields.js +0 -45
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +0 -415
- package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +0 -1037
- package/node_modules/@bufbuild/protobuf/dist/commonjs/index.js +0 -55
- package/node_modules/@bufbuild/protobuf/dist/commonjs/is-message.js +0 -33
- package/node_modules/@bufbuild/protobuf/dist/commonjs/json-value.js +0 -15
- package/node_modules/@bufbuild/protobuf/dist/commonjs/merge.js +0 -70
- package/node_modules/@bufbuild/protobuf/dist/commonjs/package.json +0 -4
- package/node_modules/@bufbuild/protobuf/dist/commonjs/proto-int64.js +0 -131
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/error.js +0 -36
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/guard.js +0 -78
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/index.js +0 -41
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.js +0 -157
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/names.js +0 -115
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/nested-types.js +0 -110
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/path.js +0 -376
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +0 -292
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-types.js +0 -16
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +0 -469
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/scalar.js +0 -129
- package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/unsafe.js +0 -149
- package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +0 -954
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.js +0 -437
- package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +0 -625
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/from-text.js +0 -684
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/index.js +0 -21
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/is-group-like.js +0 -47
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/reader.js +0 -481
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/to-text.js +0 -358
- package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/writer.js +0 -220
- package/node_modules/@bufbuild/protobuf/dist/commonjs/types.js +0 -15
- package/node_modules/@bufbuild/protobuf/dist/commonjs/unknown-enum.js +0 -26
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.js +0 -188
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +0 -726
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.js +0 -37
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/size-delimited.js +0 -191
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.js +0 -106
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-format.js +0 -199
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.js +0 -334
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/any.js +0 -75
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/duration.js +0 -39
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/any_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/api_pb.js +0 -39
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -68
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/cpp_features_pb.js +0 -60
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/descriptor_pb.js +0 -892
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/duration_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/empty_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/field_mask_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/go_features_pb.js +0 -126
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/java_features_pb.js +0 -106
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/source_context_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/struct_pb.js +0 -59
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/timestamp_pb.js +0 -27
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/type_pb.js +0 -242
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/wrappers_pb.js +0 -67
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/index.js +0 -48
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.js +0 -44
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/timestamp.js +0 -57
- package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.js +0 -66
- package/node_modules/@bufbuild/protobuf/dist/esm/clone.js +0 -63
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/boot.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js +0 -26
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js +0 -25
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js +0 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js +0 -21
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js +0 -40
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +0 -101
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +0 -239
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +0 -53
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +0 -25
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +0 -32
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +0 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +0 -21
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +0 -26
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +0 -63
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +0 -71
- package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/create.js +0 -293
- package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +0 -50
- package/node_modules/@bufbuild/protobuf/dist/esm/equals.js +0 -206
- package/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +0 -159
- package/node_modules/@bufbuild/protobuf/dist/esm/fields.js +0 -41
- package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +0 -409
- package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +0 -1029
- package/node_modules/@bufbuild/protobuf/dist/esm/index.js +0 -29
- package/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +0 -30
- package/node_modules/@bufbuild/protobuf/dist/esm/json-value.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/merge.js +0 -67
- package/node_modules/@bufbuild/protobuf/dist/esm/package.json +0 -4
- package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +0 -128
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +0 -31
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +0 -71
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js +0 -21
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.js +0 -152
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +0 -109
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +0 -105
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js +0 -369
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +0 -284
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +0 -464
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +0 -124
- package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +0 -140
- package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +0 -948
- package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +0 -433
- package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +0 -620
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/from-text.js +0 -680
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/index.js +0 -15
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/is-group-like.js +0 -44
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/reader.js +0 -477
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/to-text.js +0 -355
- package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/writer.js +0 -214
- package/node_modules/@bufbuild/protobuf/dist/esm/types.js +0 -14
- package/node_modules/@bufbuild/protobuf/dist/esm/unknown-enum.js +0 -23
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +0 -184
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +0 -721
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +0 -18
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +0 -186
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +0 -101
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +0 -195
- package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +0 -325
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +0 -69
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +0 -35
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +0 -36
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -65
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +0 -57
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +0 -888
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +0 -123
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +0 -103
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +0 -56
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +0 -24
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +0 -239
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +0 -64
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +0 -32
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.js +0 -41
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +0 -50
- package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +0 -61
- package/node_modules/@bufbuild/protobuf/package.json +0 -136
- package/node_modules/@deepseek-ai/dsh-agent-presets/README.md +0 -195
- package/node_modules/@deepseek-ai/dsh-agent-presets/README.zh.md +0 -195
- package/node_modules/@deepseek-ai/dsh-agent-presets/lib/index.js +0 -1820
- package/node_modules/@deepseek-ai/dsh-agent-presets/lib/invariant.js +0 -1838
- package/node_modules/@deepseek-ai/dsh-agent-presets/lib/typert.remote-client.js +0 -207
- package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/authoring.js +0 -176
- package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/discovery.js +0 -316
- package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/index.js +0 -799
- package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/metadata.js +0 -92
- package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/mount.js +0 -386
- package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/preset.js +0 -11
- package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/specifier.js +0 -41
- package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +0 -98
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/agent.cordis.yml +0 -283
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/preset.yml +0 -3
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/cordis-plugin-development/SKILL.md +0 -108
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/editing-cordis-compositions/SKILL.md +0 -102
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/minimal/agent.cordis.yml +0 -69
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/minimal/preset.yml +0 -3
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/agent.cordis.yml +0 -287
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/preset.yml +0 -3
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/agent.cordis.yml +0 -266
- package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/preset.yml +0 -3
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.md +0 -138
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.zh.md +0 -138
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/index.js +0 -501
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.host.js +0 -350
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.remote-client.js +0 -249
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/index.js +0 -424
- package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/types.js +0 -12
- package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.js +0 -61
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/README.md +0 -112
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/README.zh.md +0 -112
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/lib/client.js +0 -216
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/lib/index.js +0 -6
- package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/package.json +0 -66
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.md +0 -98
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.zh.md +0 -98
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/cordis.patch.yml +0 -6
- package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/package.json +0 -47
- package/node_modules/@deepseek-ai/dsh-llm-cursor/README.md +0 -142
- package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +0 -142
- package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +0 -3050
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +0 -62
- package/node_modules/@deepseek-ai/dsh-settings/lib/invariant.js +0 -35
- package/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.js +0 -41
- package/node_modules/@deepseek-ai/dsh-settings-file/README.md +0 -150
- package/node_modules/@deepseek-ai/dsh-settings-file/README.zh.md +0 -150
- package/node_modules/@deepseek-ai/dsh-settings-file/lib/index.js +0 -285
- package/node_modules/@deepseek-ai/dsh-settings-file/package.json +0 -47
- package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-UEJ3Ntqn.js +0 -1511
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-8VXBH-f-.js +0 -127
- package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-lP1BfJ4l.css +0 -1
- /package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/types.js +0 -0
- /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-web-profile → dsh-experimental-voice-input-bundle}/lib/index.js +0 -0
|
@@ -0,0 +1,2383 @@
|
|
|
1
|
+
window.__ModuleLoader__.load({
|
|
2
|
+
id: "@deepseek-ai/dsh-client-ui-settings-account",
|
|
3
|
+
factory: (require) => {
|
|
4
|
+
var module = { exports: {} };
|
|
5
|
+
var exports = module.exports;
|
|
6
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let react = require("react");
|
|
9
|
+
let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
|
|
10
|
+
let react_dom = require("react-dom");
|
|
11
|
+
//#region ../../../vendor/cosmokit/src/misc.ts
|
|
12
|
+
/** Return true when a value is `null` or `undefined`. */
|
|
13
|
+
function isNullable(value) {
|
|
14
|
+
return value === null || value === void 0;
|
|
15
|
+
}
|
|
16
|
+
/** Return true for non-array object values. */
|
|
17
|
+
function isPlainObject(data) {
|
|
18
|
+
return data && typeof data === "object" && !Array.isArray(data);
|
|
19
|
+
}
|
|
20
|
+
/** Filter object entries and return a new object. */
|
|
21
|
+
function filterKeys(object, filter) {
|
|
22
|
+
return Object.fromEntries(Object.entries(object).filter(([key, value]) => filter(key, value)));
|
|
23
|
+
}
|
|
24
|
+
/** Map object values while preserving the original key set. */
|
|
25
|
+
function mapValues(object, transform) {
|
|
26
|
+
return Object.fromEntries(Object.entries(object).map(([key, value]) => [key, transform(value, key)]));
|
|
27
|
+
}
|
|
28
|
+
/** Pick selected keys from an object, optionally including `undefined` values. */
|
|
29
|
+
function pick(source, keys, forced) {
|
|
30
|
+
if (!keys) return { ...source };
|
|
31
|
+
const result = {};
|
|
32
|
+
for (const key of keys) if (forced || source[key] !== void 0) result[key] = source[key];
|
|
33
|
+
return result;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region ../../../vendor/cosmokit/src/volatile.ts
|
|
37
|
+
/** Shared config references used by schema validators and plugin runtimes. */
|
|
38
|
+
const write = Symbol.for("cosmokit.volatile.write");
|
|
39
|
+
function snapshot(value, ancestors = /* @__PURE__ */ new Set()) {
|
|
40
|
+
if (typeof value === "function") throw new TypeError("volatile config cannot contain functions");
|
|
41
|
+
if (value === null || typeof value !== "object") return value;
|
|
42
|
+
if (ancestors.has(value)) throw new TypeError("volatile config cannot contain cycles");
|
|
43
|
+
ancestors.add(value);
|
|
44
|
+
try {
|
|
45
|
+
if (Array.isArray(value)) return Object.freeze(value.map((item) => snapshot(item, ancestors)));
|
|
46
|
+
if (Object.getPrototypeOf(value) !== Object.prototype && Object.getPrototypeOf(value) !== null) throw new TypeError("volatile config objects must be plain objects or arrays");
|
|
47
|
+
return Object.freeze(Object.fromEntries(Object.entries(value).map(([key, item]) => [key, snapshot(item, ancestors)])));
|
|
48
|
+
} finally {
|
|
49
|
+
ancestors.delete(value);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Create a detached reference containing an immutable copy of the supplied data.
|
|
54
|
+
* @param value - validated config data; class instances and functions are unsupported.
|
|
55
|
+
* @returns a reference whose value is updated only by its owning runtime.
|
|
56
|
+
*/
|
|
57
|
+
function createVolatile(value) {
|
|
58
|
+
let current = snapshot(value);
|
|
59
|
+
return Object.freeze({
|
|
60
|
+
get: () => current,
|
|
61
|
+
[write]: (value) => {
|
|
62
|
+
current = value;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Identify references across ESM/CJS copies of the shared library.
|
|
68
|
+
* @param value - a parsed config value.
|
|
69
|
+
* @returns whether the value implements the shared reference protocol.
|
|
70
|
+
*/
|
|
71
|
+
function isVolatile(value) {
|
|
72
|
+
return typeof value === "object" && value !== null && write in value;
|
|
73
|
+
}
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region ../../../vendor/cosmokit/src/types.ts
|
|
76
|
+
/** Test values using `instanceof` with a `toStringTag` fallback. */
|
|
77
|
+
function is(type, value) {
|
|
78
|
+
if (arguments.length === 1) return (value) => is(type, value);
|
|
79
|
+
return type in globalThis && value instanceof globalThis[type] || Object.prototype.toString.call(value).slice(8, -1) === type;
|
|
80
|
+
}
|
|
81
|
+
function isArrayBufferLike(value) {
|
|
82
|
+
return is("ArrayBuffer", value) || is("SharedArrayBuffer", value);
|
|
83
|
+
}
|
|
84
|
+
function isArrayBufferSource(value) {
|
|
85
|
+
return isArrayBufferLike(value) || ArrayBuffer.isView(value);
|
|
86
|
+
}
|
|
87
|
+
let Binary;
|
|
88
|
+
(function(_Binary) {
|
|
89
|
+
_Binary.is = isArrayBufferLike;
|
|
90
|
+
_Binary.isSource = isArrayBufferSource;
|
|
91
|
+
function fromSource(source) {
|
|
92
|
+
if (ArrayBuffer.isView(source)) return source.buffer.slice(source.byteOffset, source.byteOffset + source.byteLength);
|
|
93
|
+
else return source;
|
|
94
|
+
}
|
|
95
|
+
_Binary.fromSource = fromSource;
|
|
96
|
+
function toBase64(source) {
|
|
97
|
+
source = fromSource(source);
|
|
98
|
+
if (typeof Buffer !== "undefined") return Buffer.from(source).toString("base64");
|
|
99
|
+
let binary = "";
|
|
100
|
+
const bytes = new Uint8Array(source);
|
|
101
|
+
for (let i = 0; i < bytes.byteLength; i++) binary += String.fromCharCode(bytes[i]);
|
|
102
|
+
return btoa(binary);
|
|
103
|
+
}
|
|
104
|
+
_Binary.toBase64 = toBase64;
|
|
105
|
+
function fromBase64(source) {
|
|
106
|
+
if (typeof Buffer !== "undefined") return fromSource(Buffer.from(source, "base64"));
|
|
107
|
+
return Uint8Array.from(atob(source), (c) => c.charCodeAt(0));
|
|
108
|
+
}
|
|
109
|
+
_Binary.fromBase64 = fromBase64;
|
|
110
|
+
function toHex(source) {
|
|
111
|
+
source = fromSource(source);
|
|
112
|
+
if (typeof Buffer !== "undefined") return Buffer.from(source).toString("hex");
|
|
113
|
+
return Array.from(new Uint8Array(source), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
114
|
+
}
|
|
115
|
+
_Binary.toHex = toHex;
|
|
116
|
+
function fromHex(source) {
|
|
117
|
+
if (typeof Buffer !== "undefined") return fromSource(Buffer.from(source, "hex"));
|
|
118
|
+
const hex = source.length % 2 === 0 ? source : source.slice(0, source.length - 1);
|
|
119
|
+
const buffer = [];
|
|
120
|
+
for (let i = 0; i < hex.length; i += 2) buffer.push(parseInt(`${hex[i]}${hex[i + 1]}`, 16));
|
|
121
|
+
return Uint8Array.from(buffer).buffer;
|
|
122
|
+
}
|
|
123
|
+
_Binary.fromHex = fromHex;
|
|
124
|
+
})(Binary || (Binary = {}));
|
|
125
|
+
Binary.fromBase64;
|
|
126
|
+
Binary.toBase64;
|
|
127
|
+
Binary.fromHex;
|
|
128
|
+
Binary.toHex;
|
|
129
|
+
/** Deep-clone common JavaScript values while preserving prototypes and cycles. */
|
|
130
|
+
function clone(source, refs = /* @__PURE__ */ new Map()) {
|
|
131
|
+
if (!source || typeof source !== "object") return source;
|
|
132
|
+
if (is("Date", source)) return new Date(source.valueOf());
|
|
133
|
+
if (is("RegExp", source)) return new RegExp(source.source, source.flags);
|
|
134
|
+
if (isArrayBufferLike(source)) return source.slice(0);
|
|
135
|
+
if (ArrayBuffer.isView(source)) return source.buffer.slice(source.byteOffset, source.byteOffset + source.byteLength);
|
|
136
|
+
const cached = refs.get(source);
|
|
137
|
+
if (cached) return cached;
|
|
138
|
+
if (Array.isArray(source)) {
|
|
139
|
+
const result = [];
|
|
140
|
+
refs.set(source, result);
|
|
141
|
+
source.forEach((value, index) => {
|
|
142
|
+
result[index] = Reflect.apply(clone, null, [value, refs]);
|
|
143
|
+
});
|
|
144
|
+
return result;
|
|
145
|
+
}
|
|
146
|
+
const result = Object.create(Object.getPrototypeOf(source));
|
|
147
|
+
refs.set(source, result);
|
|
148
|
+
for (const key of Reflect.ownKeys(source)) {
|
|
149
|
+
const descriptor = { ...Reflect.getOwnPropertyDescriptor(source, key) };
|
|
150
|
+
if ("value" in descriptor) descriptor.value = Reflect.apply(clone, null, [descriptor.value, refs]);
|
|
151
|
+
Reflect.defineProperty(result, key, descriptor);
|
|
152
|
+
}
|
|
153
|
+
return result;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Compare values recursively, treating two volatile references as equal regardless of value.
|
|
157
|
+
* Strict comparison distinguishes null/undefined, treats opaque objects by identity,
|
|
158
|
+
* compares URLs by normalized href, treats array holes as undefined, and considers distinct cyclic structures unequal.
|
|
159
|
+
* @param a - first value.
|
|
160
|
+
* @param b - second value.
|
|
161
|
+
* @param strict - whether to require strict data equality outside volatile references.
|
|
162
|
+
* @returns whether the values compare equal.
|
|
163
|
+
*/
|
|
164
|
+
function deepEqual(a, b, strict) {
|
|
165
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
166
|
+
function compare(a, b) {
|
|
167
|
+
if (a === b) return true;
|
|
168
|
+
if (isVolatile(a) || isVolatile(b)) return isVolatile(a) && isVolatile(b);
|
|
169
|
+
if (!strict && isNullable(a) && isNullable(b)) return true;
|
|
170
|
+
if (typeof a !== typeof b || typeof a !== "object" || !a || !b) return false;
|
|
171
|
+
if (ancestors.has(a)) return false;
|
|
172
|
+
function check(test, then) {
|
|
173
|
+
return test(a) ? test(b) ? then(a, b) : false : test(b) ? false : void 0;
|
|
174
|
+
}
|
|
175
|
+
ancestors.add(a);
|
|
176
|
+
try {
|
|
177
|
+
return check(Array.isArray, (a, b) => {
|
|
178
|
+
if (a.length !== b.length) return false;
|
|
179
|
+
for (let index = 0; index < a.length; index++) if (!compare(a[index], b[index])) return false;
|
|
180
|
+
return true;
|
|
181
|
+
}) ?? check(is("Date"), (a, b) => a.valueOf() === b.valueOf()) ?? check(is("URL"), (a, b) => a.href === b.href) ?? check(is("RegExp"), (a, b) => a.source === b.source && a.flags === b.flags) ?? check(isArrayBufferLike, (a, b) => {
|
|
182
|
+
if (a.byteLength !== b.byteLength) return false;
|
|
183
|
+
const viewA = new Uint8Array(a);
|
|
184
|
+
const viewB = new Uint8Array(b);
|
|
185
|
+
for (let i = 0; i < viewA.length; i++) if (viewA[i] !== viewB[i]) return false;
|
|
186
|
+
return true;
|
|
187
|
+
}) ?? ((!strict || [a, b].every((value) => Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null)) && Object.keys({
|
|
188
|
+
...a,
|
|
189
|
+
...b
|
|
190
|
+
}).every((key) => compare(a[key], b[key])));
|
|
191
|
+
} finally {
|
|
192
|
+
ancestors.delete(a);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return compare(a, b);
|
|
196
|
+
}
|
|
197
|
+
//#endregion
|
|
198
|
+
//#region ../../../vendor/cosmokit/src/time.ts
|
|
199
|
+
let Time;
|
|
200
|
+
(function(_Time) {
|
|
201
|
+
_Time.millisecond = 1;
|
|
202
|
+
const second = _Time.second = 1e3;
|
|
203
|
+
const minute = _Time.minute = second * 60;
|
|
204
|
+
const hour = _Time.hour = minute * 60;
|
|
205
|
+
const day = _Time.day = hour * 24;
|
|
206
|
+
const week = _Time.week = day * 7;
|
|
207
|
+
let timezoneOffset = (/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
208
|
+
function setTimezoneOffset(offset) {
|
|
209
|
+
timezoneOffset = offset;
|
|
210
|
+
}
|
|
211
|
+
_Time.setTimezoneOffset = setTimezoneOffset;
|
|
212
|
+
function getTimezoneOffset() {
|
|
213
|
+
return timezoneOffset;
|
|
214
|
+
}
|
|
215
|
+
_Time.getTimezoneOffset = getTimezoneOffset;
|
|
216
|
+
function getDateNumber(date = /* @__PURE__ */ new Date(), offset) {
|
|
217
|
+
if (typeof date === "number") date = new Date(date);
|
|
218
|
+
if (offset === void 0) offset = timezoneOffset;
|
|
219
|
+
return Math.floor((date.valueOf() / minute - offset) / 1440);
|
|
220
|
+
}
|
|
221
|
+
_Time.getDateNumber = getDateNumber;
|
|
222
|
+
function fromDateNumber(value, offset) {
|
|
223
|
+
const date = new Date(value * day);
|
|
224
|
+
if (offset === void 0) offset = timezoneOffset;
|
|
225
|
+
return new Date(+date + offset * minute);
|
|
226
|
+
}
|
|
227
|
+
_Time.fromDateNumber = fromDateNumber;
|
|
228
|
+
const numeric = /\d+(?:\.\d+)?/.source;
|
|
229
|
+
const timeRegExp = new RegExp(`^${[
|
|
230
|
+
"w(?:eek(?:s)?)?",
|
|
231
|
+
"d(?:ay(?:s)?)?",
|
|
232
|
+
"h(?:our(?:s)?)?",
|
|
233
|
+
"m(?:in(?:ute)?(?:s)?)?",
|
|
234
|
+
"s(?:ec(?:ond)?(?:s)?)?"
|
|
235
|
+
].map((unit) => `(${numeric}${unit})?`).join("")}$`);
|
|
236
|
+
function parseTime(source) {
|
|
237
|
+
const capture = timeRegExp.exec(source);
|
|
238
|
+
if (!capture) return 0;
|
|
239
|
+
return (parseFloat(capture[1]) * week || 0) + (parseFloat(capture[2]) * day || 0) + (parseFloat(capture[3]) * hour || 0) + (parseFloat(capture[4]) * minute || 0) + (parseFloat(capture[5]) * second || 0);
|
|
240
|
+
}
|
|
241
|
+
_Time.parseTime = parseTime;
|
|
242
|
+
function parseDate(date) {
|
|
243
|
+
const parsed = parseTime(date);
|
|
244
|
+
if (parsed) date = Date.now() + parsed;
|
|
245
|
+
else if (/^\d{1,2}(:\d{1,2}){1,2}$/.test(date)) date = `${(/* @__PURE__ */ new Date()).toLocaleDateString()}-${date}`;
|
|
246
|
+
else if (/^\d{1,2}-\d{1,2}-\d{1,2}(:\d{1,2}){1,2}$/.test(date)) date = `${(/* @__PURE__ */ new Date()).getFullYear()}-${date}`;
|
|
247
|
+
return date ? new Date(date) : /* @__PURE__ */ new Date();
|
|
248
|
+
}
|
|
249
|
+
_Time.parseDate = parseDate;
|
|
250
|
+
function format(ms) {
|
|
251
|
+
const abs = Math.abs(ms);
|
|
252
|
+
if (abs >= day - hour / 2) return Math.round(ms / day) + "d";
|
|
253
|
+
else if (abs >= hour - minute / 2) return Math.round(ms / hour) + "h";
|
|
254
|
+
else if (abs >= minute - second / 2) return Math.round(ms / minute) + "m";
|
|
255
|
+
else if (abs >= second) return Math.round(ms / second) + "s";
|
|
256
|
+
return ms + "ms";
|
|
257
|
+
}
|
|
258
|
+
_Time.format = format;
|
|
259
|
+
function toDigits(source, length = 2) {
|
|
260
|
+
return source.toString().padStart(length, "0");
|
|
261
|
+
}
|
|
262
|
+
_Time.toDigits = toDigits;
|
|
263
|
+
function template(template, time = /* @__PURE__ */ new Date()) {
|
|
264
|
+
return template.replace("yyyy", time.getFullYear().toString()).replace("yy", time.getFullYear().toString().slice(2)).replace("MM", toDigits(time.getMonth() + 1)).replace("dd", toDigits(time.getDate())).replace("hh", toDigits(time.getHours())).replace("mm", toDigits(time.getMinutes())).replace("ss", toDigits(time.getSeconds())).replace("SSS", toDigits(time.getMilliseconds(), 3));
|
|
265
|
+
}
|
|
266
|
+
_Time.template = template;
|
|
267
|
+
})(Time || (Time = {}));
|
|
268
|
+
//#endregion
|
|
269
|
+
//#region ../../../vendor/schemastery/src/index.ts
|
|
270
|
+
const kSchema = Symbol.for("schemastery");
|
|
271
|
+
const kValidationError = Symbol.for("ValidationError");
|
|
272
|
+
globalThis.__schemastery_index__ ??= 0;
|
|
273
|
+
globalThis.__schemastery_refs__ = void 0;
|
|
274
|
+
var ValidationError = class extends TypeError {
|
|
275
|
+
options;
|
|
276
|
+
name = "ValidationError";
|
|
277
|
+
constructor(message, options) {
|
|
278
|
+
let prefix = "$";
|
|
279
|
+
for (const segment of options.path || []) if (typeof segment === "string") prefix += "." + segment;
|
|
280
|
+
else if (typeof segment === "number") prefix += "[" + segment + "]";
|
|
281
|
+
else if (typeof segment === "symbol") prefix += `[Symbol(${segment.toString()})]`;
|
|
282
|
+
if (prefix.startsWith(".")) prefix = prefix.slice(1);
|
|
283
|
+
super((prefix === "$" ? "" : `${prefix} `) + message);
|
|
284
|
+
this.options = options;
|
|
285
|
+
}
|
|
286
|
+
static is(error) {
|
|
287
|
+
return !!error?.[kValidationError];
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
Object.defineProperty(ValidationError.prototype, kValidationError, { value: true });
|
|
291
|
+
const Schema = function(options) {
|
|
292
|
+
const schema = function(data, options = {}) {
|
|
293
|
+
return Schema.resolve(data, schema, options)[0];
|
|
294
|
+
};
|
|
295
|
+
if (options.refs) {
|
|
296
|
+
const refs = mapValues(options.refs, (options) => new Schema(options));
|
|
297
|
+
const getRef = (uid) => refs[uid];
|
|
298
|
+
for (const key in refs) {
|
|
299
|
+
const options = refs[key];
|
|
300
|
+
options.sKey = getRef(options.sKey);
|
|
301
|
+
options.inner = getRef(options.inner);
|
|
302
|
+
options.list = options.list && options.list.map(getRef);
|
|
303
|
+
options.dict = options.dict && mapValues(options.dict, getRef);
|
|
304
|
+
}
|
|
305
|
+
return refs[options.uid];
|
|
306
|
+
}
|
|
307
|
+
Object.assign(schema, options);
|
|
308
|
+
if (typeof schema.callback === "string") try {
|
|
309
|
+
schema.callback = new Function("return " + schema.callback)();
|
|
310
|
+
} catch {}
|
|
311
|
+
Object.defineProperty(schema, "uid", { value: globalThis.__schemastery_index__++ });
|
|
312
|
+
Object.setPrototypeOf(schema, Schema.prototype);
|
|
313
|
+
schema.meta ||= {};
|
|
314
|
+
schema.toString = schema.toString.bind(schema);
|
|
315
|
+
return schema;
|
|
316
|
+
};
|
|
317
|
+
Schema.prototype = Object.create(Function.prototype);
|
|
318
|
+
Schema.prototype[kSchema] = true;
|
|
319
|
+
Object.defineProperty(Schema.prototype, "~standard", { get() {
|
|
320
|
+
return {
|
|
321
|
+
version: 1,
|
|
322
|
+
vendor: "schemastery",
|
|
323
|
+
validate: (value) => {
|
|
324
|
+
try {
|
|
325
|
+
return { value: Schema.resolve(value, this, {})[0] };
|
|
326
|
+
} catch (error) {
|
|
327
|
+
if (ValidationError.is(error)) return { issues: [{
|
|
328
|
+
message: error.message,
|
|
329
|
+
path: error.options.path
|
|
330
|
+
}] };
|
|
331
|
+
throw error;
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
} });
|
|
336
|
+
Schema.ValidationError = ValidationError;
|
|
337
|
+
Schema.prototype.toJSON = function toJSON() {
|
|
338
|
+
if (globalThis.__schemastery_refs__) {
|
|
339
|
+
globalThis.__schemastery_refs__[this.uid] ??= JSON.parse(JSON.stringify({ ...this }));
|
|
340
|
+
return this.uid;
|
|
341
|
+
}
|
|
342
|
+
globalThis.__schemastery_refs__ = { [this.uid]: { ...this } };
|
|
343
|
+
globalThis.__schemastery_refs__[this.uid] = JSON.parse(JSON.stringify({ ...this }));
|
|
344
|
+
const result = {
|
|
345
|
+
uid: this.uid,
|
|
346
|
+
refs: globalThis.__schemastery_refs__
|
|
347
|
+
};
|
|
348
|
+
globalThis.__schemastery_refs__ = void 0;
|
|
349
|
+
return result;
|
|
350
|
+
};
|
|
351
|
+
Schema.prototype.set = function set(key, value) {
|
|
352
|
+
this.dict[key] = value;
|
|
353
|
+
return this;
|
|
354
|
+
};
|
|
355
|
+
Schema.prototype.push = function push(value) {
|
|
356
|
+
this.list.push(value);
|
|
357
|
+
return this;
|
|
358
|
+
};
|
|
359
|
+
function mergeDesc(original, messages) {
|
|
360
|
+
const result = typeof original === "string" ? { "": original } : { ...original };
|
|
361
|
+
for (const locale in messages) {
|
|
362
|
+
const value = messages[locale];
|
|
363
|
+
if (value?.$description || value?.$desc) result[locale] = value.$description || value.$desc;
|
|
364
|
+
else if (typeof value === "string") result[locale] = value;
|
|
365
|
+
}
|
|
366
|
+
return result;
|
|
367
|
+
}
|
|
368
|
+
function getInner(value) {
|
|
369
|
+
return value?.$value ?? value?.$inner;
|
|
370
|
+
}
|
|
371
|
+
function extractKeys(data) {
|
|
372
|
+
return filterKeys(data ?? {}, (key) => !key.startsWith("$"));
|
|
373
|
+
}
|
|
374
|
+
Schema.prototype.i18n = function i18n(messages) {
|
|
375
|
+
const schema = Schema(this);
|
|
376
|
+
const desc = mergeDesc(schema.meta.description, messages);
|
|
377
|
+
if (Object.keys(desc).length) schema.meta.description = desc;
|
|
378
|
+
if (schema.dict) schema.dict = mapValues(schema.dict, (inner, key) => {
|
|
379
|
+
return inner.i18n(mapValues(messages, (data) => getInner(data)?.[key] ?? data?.[key]));
|
|
380
|
+
});
|
|
381
|
+
if (schema.list) schema.list = schema.list.map((inner, index) => {
|
|
382
|
+
return inner.i18n(mapValues(messages, (data = {}) => {
|
|
383
|
+
if (Array.isArray(getInner(data))) return getInner(data)[index];
|
|
384
|
+
if (Array.isArray(data)) return data[index];
|
|
385
|
+
return extractKeys(data);
|
|
386
|
+
}));
|
|
387
|
+
});
|
|
388
|
+
if (schema.inner) schema.inner = schema.inner.i18n(mapValues(messages, (data) => {
|
|
389
|
+
if (getInner(data)) return getInner(data);
|
|
390
|
+
return extractKeys(data);
|
|
391
|
+
}));
|
|
392
|
+
if (schema.sKey) schema.sKey = schema.sKey.i18n(mapValues(messages, (data) => data?.$key));
|
|
393
|
+
return schema;
|
|
394
|
+
};
|
|
395
|
+
Schema.prototype.extra = function extra(key, value) {
|
|
396
|
+
const schema = Schema(this);
|
|
397
|
+
schema.meta = {
|
|
398
|
+
...schema.meta,
|
|
399
|
+
[key]: value
|
|
400
|
+
};
|
|
401
|
+
return schema;
|
|
402
|
+
};
|
|
403
|
+
for (const key of [
|
|
404
|
+
"required",
|
|
405
|
+
"disabled",
|
|
406
|
+
"collapse",
|
|
407
|
+
"hidden",
|
|
408
|
+
"loose"
|
|
409
|
+
]) Object.assign(Schema.prototype, { [key](value = true) {
|
|
410
|
+
const schema = Schema(this);
|
|
411
|
+
schema.meta = {
|
|
412
|
+
...schema.meta,
|
|
413
|
+
[key]: value
|
|
414
|
+
};
|
|
415
|
+
return schema;
|
|
416
|
+
} });
|
|
417
|
+
Schema.prototype.deprecated = function deprecated() {
|
|
418
|
+
const schema = Schema(this);
|
|
419
|
+
schema.meta.badges ||= [];
|
|
420
|
+
schema.meta.badges.push({
|
|
421
|
+
text: "deprecated",
|
|
422
|
+
type: "danger"
|
|
423
|
+
});
|
|
424
|
+
return schema;
|
|
425
|
+
};
|
|
426
|
+
Schema.prototype.experimental = function experimental() {
|
|
427
|
+
const schema = Schema(this);
|
|
428
|
+
schema.meta.badges ||= [];
|
|
429
|
+
schema.meta.badges.push({
|
|
430
|
+
text: "experimental",
|
|
431
|
+
type: "warning"
|
|
432
|
+
});
|
|
433
|
+
return schema;
|
|
434
|
+
};
|
|
435
|
+
Schema.prototype.pattern = function pattern(regexp) {
|
|
436
|
+
const schema = Schema(this);
|
|
437
|
+
const pattern = pick(regexp, ["source", "flags"]);
|
|
438
|
+
schema.meta = {
|
|
439
|
+
...schema.meta,
|
|
440
|
+
pattern
|
|
441
|
+
};
|
|
442
|
+
return schema;
|
|
443
|
+
};
|
|
444
|
+
Schema.prototype.simplify = function simplify(value) {
|
|
445
|
+
if (isVolatile(value)) value = value.get();
|
|
446
|
+
if (deepEqual(value, this.meta.default, this.type === "dict")) return null;
|
|
447
|
+
if (isNullable(value)) return value;
|
|
448
|
+
if (this.type === "object" || this.type === "dict") {
|
|
449
|
+
const result = {};
|
|
450
|
+
for (const key in value) {
|
|
451
|
+
const item = (this.type === "object" ? this.dict[key] : this.inner)?.simplify(value[key]);
|
|
452
|
+
if (this.type === "dict" || !isNullable(item)) result[key] = item;
|
|
453
|
+
}
|
|
454
|
+
if (deepEqual(result, this.meta.default, this.type === "dict")) return null;
|
|
455
|
+
return result;
|
|
456
|
+
} else if (this.type === "array" || this.type === "tuple") {
|
|
457
|
+
const result = [];
|
|
458
|
+
value.forEach((value, index) => {
|
|
459
|
+
const schema = this.type === "array" ? this.inner : this.list[index];
|
|
460
|
+
const item = schema ? schema.simplify(value) : value;
|
|
461
|
+
result.push(item);
|
|
462
|
+
});
|
|
463
|
+
return result;
|
|
464
|
+
} else if (this.type === "intersect") {
|
|
465
|
+
const result = {};
|
|
466
|
+
for (const item of this.list) Object.assign(result, item.simplify(value));
|
|
467
|
+
return result;
|
|
468
|
+
} else if (this.type === "union") for (const schema of this.list) try {
|
|
469
|
+
Schema.resolve(value, schema, {});
|
|
470
|
+
return schema.simplify(value);
|
|
471
|
+
} catch {}
|
|
472
|
+
return value;
|
|
473
|
+
};
|
|
474
|
+
Schema.prototype.toString = function toString(inline) {
|
|
475
|
+
return formatters[this.type]?.(this, inline) ?? `Schema<${this.type}>`;
|
|
476
|
+
};
|
|
477
|
+
Schema.prototype.role = function role(role, extra) {
|
|
478
|
+
const schema = Schema(this);
|
|
479
|
+
schema.meta = {
|
|
480
|
+
...schema.meta,
|
|
481
|
+
role,
|
|
482
|
+
extra
|
|
483
|
+
};
|
|
484
|
+
return schema;
|
|
485
|
+
};
|
|
486
|
+
for (const key of [
|
|
487
|
+
"default",
|
|
488
|
+
"link",
|
|
489
|
+
"comment",
|
|
490
|
+
"description",
|
|
491
|
+
"max",
|
|
492
|
+
"min",
|
|
493
|
+
"step"
|
|
494
|
+
]) Object.assign(Schema.prototype, { [key](value) {
|
|
495
|
+
const schema = Schema(this);
|
|
496
|
+
schema.meta = {
|
|
497
|
+
...schema.meta,
|
|
498
|
+
[key]: value
|
|
499
|
+
};
|
|
500
|
+
return schema;
|
|
501
|
+
} });
|
|
502
|
+
Schema.prototype.volatile = function volatile() {
|
|
503
|
+
if (this.meta.volatile) throw new TypeError("volatile schema is already wrapped");
|
|
504
|
+
return this.extra("volatile", true);
|
|
505
|
+
};
|
|
506
|
+
const resolvers = {};
|
|
507
|
+
const checkedVolatile = Symbol("checked-volatile-schema");
|
|
508
|
+
function validateVolatileSchema(schema, path = [], blocked = false, seen = /* @__PURE__ */ new Map()) {
|
|
509
|
+
const states = seen.get(schema) ?? /* @__PURE__ */ new Set();
|
|
510
|
+
if (states.has(blocked)) return;
|
|
511
|
+
states.add(blocked);
|
|
512
|
+
seen.set(schema, states);
|
|
513
|
+
if (schema.meta?.volatile && blocked) throw new ValidationError("volatile fields require a fixed object path without an enclosing volatile field", { path });
|
|
514
|
+
const nested = blocked || !!schema.meta?.volatile;
|
|
515
|
+
if (schema.dict) for (const [key, child] of Object.entries(schema.dict)) validateVolatileSchema(child, [...path, key], nested, seen);
|
|
516
|
+
if (schema.sKey) validateVolatileSchema(schema.sKey, [...path, "<key>"], true, seen);
|
|
517
|
+
if (schema.inner && (schema.type !== "lazy" || schema.inner[kSchema])) validateVolatileSchema(schema.inner, [...path, "*"], true, seen);
|
|
518
|
+
if (schema.list) for (let index = 0; index < schema.list.length; index++) validateVolatileSchema(schema.list[index], [...path, String(index)], true, seen);
|
|
519
|
+
}
|
|
520
|
+
Schema.extend = function extend(type, resolve) {
|
|
521
|
+
resolvers[type] = resolve;
|
|
522
|
+
};
|
|
523
|
+
Schema.resolve = function resolve(data, schema, options = {}, strict = false) {
|
|
524
|
+
if (!schema) return [data];
|
|
525
|
+
if (!options[checkedVolatile]) {
|
|
526
|
+
validateVolatileSchema(schema, options.path);
|
|
527
|
+
options = {
|
|
528
|
+
...options,
|
|
529
|
+
[checkedVolatile]: true
|
|
530
|
+
};
|
|
531
|
+
}
|
|
532
|
+
if (schema.meta?.volatile) {
|
|
533
|
+
const inner = Schema(schema);
|
|
534
|
+
inner.meta = {
|
|
535
|
+
...schema.meta,
|
|
536
|
+
volatile: false
|
|
537
|
+
};
|
|
538
|
+
const [value, adapted] = Schema.resolve(data, inner, options, strict);
|
|
539
|
+
try {
|
|
540
|
+
return [createVolatile(value), adapted];
|
|
541
|
+
} catch (error) {
|
|
542
|
+
throw new ValidationError(error instanceof Error ? error.message : String(error), options);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
if (options.ignore?.(data, schema)) return [data];
|
|
546
|
+
if (isNullable(data) && schema.type !== "lazy") {
|
|
547
|
+
if (schema.meta.required) throw new ValidationError(`missing required value`, options);
|
|
548
|
+
let current = schema;
|
|
549
|
+
let fallback = schema.meta.default;
|
|
550
|
+
while (current?.type === "intersect" && isNullable(fallback)) {
|
|
551
|
+
current = current.list[0];
|
|
552
|
+
fallback = current?.meta.default;
|
|
553
|
+
}
|
|
554
|
+
if (isNullable(fallback)) return [data];
|
|
555
|
+
data = clone(fallback);
|
|
556
|
+
}
|
|
557
|
+
const callback = resolvers[schema.type];
|
|
558
|
+
if (!callback) throw new ValidationError(`unsupported type "${schema.type}"`, options);
|
|
559
|
+
try {
|
|
560
|
+
return callback(data, schema, options, strict);
|
|
561
|
+
} catch (error) {
|
|
562
|
+
if (!schema.meta.loose) throw error;
|
|
563
|
+
return [schema.meta.default];
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
Schema.from = function from(source) {
|
|
567
|
+
if (isNullable(source)) return Schema.any();
|
|
568
|
+
else if ([
|
|
569
|
+
"string",
|
|
570
|
+
"number",
|
|
571
|
+
"boolean"
|
|
572
|
+
].includes(typeof source)) return Schema.const(source).required();
|
|
573
|
+
else if (source[kSchema]) return source;
|
|
574
|
+
else if (typeof source === "function") switch (source) {
|
|
575
|
+
case String: return Schema.string().required();
|
|
576
|
+
case Number: return Schema.number().required();
|
|
577
|
+
case Boolean: return Schema.boolean().required();
|
|
578
|
+
case Function: return Schema.function().required();
|
|
579
|
+
default: return Schema.is(source).required();
|
|
580
|
+
}
|
|
581
|
+
else throw new TypeError(`cannot infer schema from ${source}`);
|
|
582
|
+
};
|
|
583
|
+
Schema.lazy = function lazy(builder) {
|
|
584
|
+
const toJSON = () => {
|
|
585
|
+
if (!schema.inner[kSchema]) {
|
|
586
|
+
schema.inner = schema.builder();
|
|
587
|
+
schema.inner.meta = {
|
|
588
|
+
...schema.meta,
|
|
589
|
+
...schema.inner.meta
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
return schema.inner.toJSON();
|
|
593
|
+
};
|
|
594
|
+
const schema = new Schema({
|
|
595
|
+
type: "lazy",
|
|
596
|
+
builder,
|
|
597
|
+
inner: { toJSON }
|
|
598
|
+
});
|
|
599
|
+
return schema;
|
|
600
|
+
};
|
|
601
|
+
Schema.natural = function natural() {
|
|
602
|
+
return Schema.number().step(1).min(0);
|
|
603
|
+
};
|
|
604
|
+
Schema.percent = function percent() {
|
|
605
|
+
return Schema.number().step(.01).min(0).max(1).role("slider");
|
|
606
|
+
};
|
|
607
|
+
Schema.date = function date() {
|
|
608
|
+
return Schema.union([Schema.is(Date), Schema.transform(Schema.string().role("datetime"), (value, options) => {
|
|
609
|
+
const date = new Date(value);
|
|
610
|
+
if (isNaN(+date)) throw new ValidationError(`invalid date "${value}"`, options);
|
|
611
|
+
return date;
|
|
612
|
+
}, true)]);
|
|
613
|
+
};
|
|
614
|
+
Schema.regExp = function regExp(flag = "") {
|
|
615
|
+
return Schema.union([Schema.is(RegExp), Schema.transform(Schema.string().role("regexp", { flag }), (value, options) => {
|
|
616
|
+
try {
|
|
617
|
+
return new RegExp(value, flag);
|
|
618
|
+
} catch (e) {
|
|
619
|
+
throw new ValidationError(e.message, options);
|
|
620
|
+
}
|
|
621
|
+
}, true)]);
|
|
622
|
+
};
|
|
623
|
+
Schema.arrayBuffer = function arrayBuffer(encoding) {
|
|
624
|
+
return Schema.union([
|
|
625
|
+
Schema.is(ArrayBuffer),
|
|
626
|
+
Schema.is(SharedArrayBuffer),
|
|
627
|
+
Schema.transform(Schema.any(), (value, options) => {
|
|
628
|
+
if (Binary.isSource(value)) return Binary.fromSource(value);
|
|
629
|
+
throw new ValidationError(`expected ArrayBufferSource but got ${value}`, options);
|
|
630
|
+
}, true),
|
|
631
|
+
...encoding ? [Schema.transform(Schema.string(), (value, options) => {
|
|
632
|
+
try {
|
|
633
|
+
return encoding === "base64" ? Binary.fromBase64(value) : Binary.fromHex(value);
|
|
634
|
+
} catch (e) {
|
|
635
|
+
throw new ValidationError(e.message, options);
|
|
636
|
+
}
|
|
637
|
+
}, true)] : []
|
|
638
|
+
]);
|
|
639
|
+
};
|
|
640
|
+
Schema.extend("lazy", (data, schema, options, strict) => {
|
|
641
|
+
if (!schema.inner[kSchema]) {
|
|
642
|
+
schema.inner = schema.builder();
|
|
643
|
+
schema.inner.meta = {
|
|
644
|
+
...schema.meta,
|
|
645
|
+
...schema.inner.meta
|
|
646
|
+
};
|
|
647
|
+
validateVolatileSchema(schema.inner, options.path, true);
|
|
648
|
+
}
|
|
649
|
+
return Schema.resolve(data, schema.inner, options, strict);
|
|
650
|
+
});
|
|
651
|
+
Schema.extend("any", (data) => {
|
|
652
|
+
return [data];
|
|
653
|
+
});
|
|
654
|
+
Schema.extend("never", (data, _, options) => {
|
|
655
|
+
throw new ValidationError(`expected nullable but got ${data}`, options);
|
|
656
|
+
});
|
|
657
|
+
Schema.extend("const", (data, { value }, options) => {
|
|
658
|
+
if (deepEqual(data, value)) return [value];
|
|
659
|
+
throw new ValidationError(`expected ${value} but got ${data}`, options);
|
|
660
|
+
});
|
|
661
|
+
function checkWithinRange(data, meta, description, options, skipMin = false) {
|
|
662
|
+
const { max = Infinity, min = -Infinity } = meta;
|
|
663
|
+
if (data > max) throw new ValidationError(`expected ${description} <= ${max} but got ${data}`, options);
|
|
664
|
+
if (data < min && !skipMin) throw new ValidationError(`expected ${description} >= ${min} but got ${data}`, options);
|
|
665
|
+
}
|
|
666
|
+
Schema.extend("string", (data, { meta }, options) => {
|
|
667
|
+
if (typeof data !== "string") throw new ValidationError(`expected string but got ${data}`, options);
|
|
668
|
+
if (meta.pattern) {
|
|
669
|
+
const regexp = new RegExp(meta.pattern.source, meta.pattern.flags);
|
|
670
|
+
if (!regexp.test(data)) throw new ValidationError(`expect string to match regexp ${regexp}`, options);
|
|
671
|
+
}
|
|
672
|
+
checkWithinRange(data.length, meta, "string length", options);
|
|
673
|
+
return [data];
|
|
674
|
+
});
|
|
675
|
+
function decimalShift(data, digits) {
|
|
676
|
+
const str = data.toString();
|
|
677
|
+
if (str.includes("e")) return data * Math.pow(10, digits);
|
|
678
|
+
const index = str.indexOf(".");
|
|
679
|
+
if (index === -1) return data * Math.pow(10, digits);
|
|
680
|
+
const frac = str.slice(index + 1);
|
|
681
|
+
const integer = str.slice(0, index);
|
|
682
|
+
if (frac.length <= digits) return +(integer + frac.padEnd(digits, "0"));
|
|
683
|
+
return +(integer + frac.slice(0, digits) + "." + frac.slice(digits));
|
|
684
|
+
}
|
|
685
|
+
function isMultipleOf(data, min, step) {
|
|
686
|
+
step = Math.abs(step);
|
|
687
|
+
if (!/^\d+\.\d+$/.test(step.toString())) return (data - min) % step === 0;
|
|
688
|
+
const index = step.toString().indexOf(".");
|
|
689
|
+
const digits = step.toString().slice(index + 1).length;
|
|
690
|
+
return Math.abs(decimalShift(data, digits) - decimalShift(min, digits)) % decimalShift(step, digits) === 0;
|
|
691
|
+
}
|
|
692
|
+
Schema.extend("number", (data, { meta }, options) => {
|
|
693
|
+
if (typeof data !== "number") throw new ValidationError(`expected number but got ${data}`, options);
|
|
694
|
+
checkWithinRange(data, meta, "number", options);
|
|
695
|
+
const { step } = meta;
|
|
696
|
+
if (step && !isMultipleOf(data, meta.min ?? 0, step)) throw new ValidationError(`expected number multiple of ${step} but got ${data}`, options);
|
|
697
|
+
return [data];
|
|
698
|
+
});
|
|
699
|
+
Schema.extend("boolean", (data, _, options) => {
|
|
700
|
+
if (typeof data === "boolean") return [data];
|
|
701
|
+
throw new ValidationError(`expected boolean but got ${data}`, options);
|
|
702
|
+
});
|
|
703
|
+
Schema.extend("bitset", (data, { bits, meta }, options) => {
|
|
704
|
+
let value = 0, keys = [];
|
|
705
|
+
if (typeof data === "number") {
|
|
706
|
+
value = data;
|
|
707
|
+
for (const key in bits) if (data & bits[key]) keys.push(key);
|
|
708
|
+
} else if (Array.isArray(data)) {
|
|
709
|
+
keys = data;
|
|
710
|
+
for (const key of keys) {
|
|
711
|
+
if (typeof key !== "string") throw new ValidationError(`expected string but got ${key}`, options);
|
|
712
|
+
if (key in bits) value |= bits[key];
|
|
713
|
+
}
|
|
714
|
+
} else throw new ValidationError(`expected number or array but got ${data}`, options);
|
|
715
|
+
if (value === meta.default) return [value];
|
|
716
|
+
return [value, keys];
|
|
717
|
+
});
|
|
718
|
+
Schema.extend("function", (data, _, options) => {
|
|
719
|
+
if (typeof data === "function") return [data];
|
|
720
|
+
throw new ValidationError(`expected function but got ${data}`, options);
|
|
721
|
+
});
|
|
722
|
+
Schema.extend("is", (data, { constructor }, options) => {
|
|
723
|
+
if (typeof constructor === "function") {
|
|
724
|
+
if (data instanceof constructor) return [data];
|
|
725
|
+
throw new ValidationError(`expected ${constructor.name} but got ${data}`, options);
|
|
726
|
+
} else {
|
|
727
|
+
if (isNullable(data)) throw new ValidationError(`expected ${constructor} but got ${data}`, options);
|
|
728
|
+
let prototype = Object.getPrototypeOf(data);
|
|
729
|
+
while (prototype) {
|
|
730
|
+
if (prototype.constructor?.name === constructor) return [data];
|
|
731
|
+
prototype = Object.getPrototypeOf(prototype);
|
|
732
|
+
}
|
|
733
|
+
throw new ValidationError(`expected ${constructor} but got ${data}`, options);
|
|
734
|
+
}
|
|
735
|
+
});
|
|
736
|
+
function property(data, key, schema, options) {
|
|
737
|
+
try {
|
|
738
|
+
const [value, adapted] = Schema.resolve(data[key], schema, {
|
|
739
|
+
...options,
|
|
740
|
+
path: [...options.path || [], key]
|
|
741
|
+
});
|
|
742
|
+
if (adapted !== void 0) data[key] = adapted;
|
|
743
|
+
return value;
|
|
744
|
+
} catch (e) {
|
|
745
|
+
if (!options?.autofix) throw e;
|
|
746
|
+
delete data[key];
|
|
747
|
+
return schema.meta.volatile ? createVolatile(schema.meta.default) : schema.meta.default;
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
Schema.extend("array", (data, { inner, meta }, options) => {
|
|
751
|
+
if (!Array.isArray(data)) throw new ValidationError(`expected array but got ${data}`, options);
|
|
752
|
+
checkWithinRange(data.length, meta, "array length", options, !isNullable(inner.meta.default));
|
|
753
|
+
return [data.map((_, index) => property(data, index, inner, options))];
|
|
754
|
+
});
|
|
755
|
+
Schema.extend("dict", (data, { inner, sKey }, options, strict) => {
|
|
756
|
+
if (!isPlainObject(data)) throw new ValidationError(`expected object but got ${data}`, options);
|
|
757
|
+
const result = {};
|
|
758
|
+
for (const key in data) {
|
|
759
|
+
let rKey;
|
|
760
|
+
try {
|
|
761
|
+
rKey = Schema.resolve(key, sKey, options)[0];
|
|
762
|
+
} catch (error) {
|
|
763
|
+
if (strict) continue;
|
|
764
|
+
throw error;
|
|
765
|
+
}
|
|
766
|
+
result[rKey] = property(data, key, inner, options);
|
|
767
|
+
data[rKey] = data[key];
|
|
768
|
+
if (key !== rKey) delete data[key];
|
|
769
|
+
}
|
|
770
|
+
return [result];
|
|
771
|
+
});
|
|
772
|
+
Schema.extend("tuple", (data, { list }, options, strict) => {
|
|
773
|
+
if (!Array.isArray(data)) throw new ValidationError(`expected array but got ${data}`, options);
|
|
774
|
+
const result = list.map((inner, index) => property(data, index, inner, options));
|
|
775
|
+
if (strict) return [result];
|
|
776
|
+
result.push(...data.slice(list.length));
|
|
777
|
+
return [result];
|
|
778
|
+
});
|
|
779
|
+
function merge(result, data) {
|
|
780
|
+
for (const key in data) {
|
|
781
|
+
if (key in result) continue;
|
|
782
|
+
result[key] = data[key];
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
Schema.extend("object", (data, { dict }, options, strict) => {
|
|
786
|
+
if (!isPlainObject(data)) throw new ValidationError(`expected object but got ${data}`, options);
|
|
787
|
+
const result = {};
|
|
788
|
+
for (const key in dict) {
|
|
789
|
+
const value = property(data, key, dict[key], options);
|
|
790
|
+
if (!isNullable(value) || key in data) result[key] = value;
|
|
791
|
+
}
|
|
792
|
+
if (!strict) merge(result, data);
|
|
793
|
+
return [result];
|
|
794
|
+
});
|
|
795
|
+
Schema.extend("union", (data, { list, toString }, options, strict) => {
|
|
796
|
+
const messages = [];
|
|
797
|
+
for (const inner of list) try {
|
|
798
|
+
return Schema.resolve(data, inner, options, strict);
|
|
799
|
+
} catch (error) {
|
|
800
|
+
messages.push(error);
|
|
801
|
+
}
|
|
802
|
+
throw new ValidationError(`expected ${toString()} but got ${JSON.stringify(data)}`, options);
|
|
803
|
+
});
|
|
804
|
+
Schema.extend("intersect", (data, { list, toString }, options, strict) => {
|
|
805
|
+
if (!list.length) return [data];
|
|
806
|
+
let result;
|
|
807
|
+
for (const inner of list) {
|
|
808
|
+
const value = Schema.resolve(data, inner, options, true)[0];
|
|
809
|
+
if (isNullable(value)) continue;
|
|
810
|
+
if (isNullable(result)) result = value;
|
|
811
|
+
else if (typeof result !== typeof value) throw new ValidationError(`expected ${toString()} but got ${JSON.stringify(data)}`, options);
|
|
812
|
+
else if (typeof value === "object") merge(result ??= {}, value);
|
|
813
|
+
else if (result !== value) throw new ValidationError(`expected ${toString()} but got ${JSON.stringify(data)}`, options);
|
|
814
|
+
}
|
|
815
|
+
if (!strict && isPlainObject(data)) merge(result, data);
|
|
816
|
+
return [result];
|
|
817
|
+
});
|
|
818
|
+
Schema.extend("transform", (data, { inner, callback, preserve }, options) => {
|
|
819
|
+
const [result, adapted = data] = Schema.resolve(data, inner, options, true);
|
|
820
|
+
if (preserve) return [callback(result)];
|
|
821
|
+
else return [callback(result), callback(adapted)];
|
|
822
|
+
});
|
|
823
|
+
const formatters = {};
|
|
824
|
+
function defineMethod(name, keys, format) {
|
|
825
|
+
formatters[name] = format;
|
|
826
|
+
Object.assign(Schema, { [name](...args) {
|
|
827
|
+
const schema = new Schema({ type: name });
|
|
828
|
+
keys.forEach((key, index) => {
|
|
829
|
+
switch (key) {
|
|
830
|
+
case "sKey":
|
|
831
|
+
schema.sKey = args[index] ?? Schema.string();
|
|
832
|
+
break;
|
|
833
|
+
case "inner":
|
|
834
|
+
schema.inner = Schema.from(args[index]);
|
|
835
|
+
break;
|
|
836
|
+
case "list":
|
|
837
|
+
schema.list = args[index].map(Schema.from);
|
|
838
|
+
break;
|
|
839
|
+
case "dict":
|
|
840
|
+
schema.dict = mapValues(args[index], Schema.from);
|
|
841
|
+
break;
|
|
842
|
+
case "bits":
|
|
843
|
+
schema.bits = {};
|
|
844
|
+
for (const key in args[index]) {
|
|
845
|
+
if (typeof args[index][key] !== "number") continue;
|
|
846
|
+
schema.bits[key] = args[index][key];
|
|
847
|
+
}
|
|
848
|
+
break;
|
|
849
|
+
case "callback": {
|
|
850
|
+
const callback = schema.callback = args[index];
|
|
851
|
+
callback["toJSON"] ||= () => callback.toString();
|
|
852
|
+
break;
|
|
853
|
+
}
|
|
854
|
+
case "constructor": {
|
|
855
|
+
const constructor = schema.constructor = args[index];
|
|
856
|
+
if (typeof constructor === "function") constructor["toJSON"] ||= () => constructor["name"];
|
|
857
|
+
break;
|
|
858
|
+
}
|
|
859
|
+
default: schema[key] = args[index];
|
|
860
|
+
}
|
|
861
|
+
});
|
|
862
|
+
if (name === "object" || name === "dict") schema.meta.default = {};
|
|
863
|
+
else if (name === "array" || name === "tuple") schema.meta.default = [];
|
|
864
|
+
else if (name === "bitset") schema.meta.default = 0;
|
|
865
|
+
return schema;
|
|
866
|
+
} });
|
|
867
|
+
}
|
|
868
|
+
defineMethod("is", ["constructor"], ({ constructor }) => {
|
|
869
|
+
if (typeof constructor === "function") return constructor.name;
|
|
870
|
+
else return constructor;
|
|
871
|
+
});
|
|
872
|
+
defineMethod("any", [], () => "any");
|
|
873
|
+
defineMethod("never", [], () => "never");
|
|
874
|
+
defineMethod("const", ["value"], ({ value }) => typeof value === "string" ? JSON.stringify(value) : value);
|
|
875
|
+
defineMethod("string", [], () => "string");
|
|
876
|
+
defineMethod("number", [], () => "number");
|
|
877
|
+
defineMethod("boolean", [], () => "boolean");
|
|
878
|
+
defineMethod("bitset", ["bits"], () => "bitset");
|
|
879
|
+
defineMethod("function", [], () => "function");
|
|
880
|
+
defineMethod("array", ["inner"], ({ inner }) => `${inner.toString(true)}[]`);
|
|
881
|
+
defineMethod("dict", ["inner", "sKey"], ({ inner, sKey }) => `{ [key: ${sKey.toString()}]: ${inner.toString()} }`);
|
|
882
|
+
defineMethod("tuple", ["list"], ({ list }) => `[${list.map((inner) => inner.toString()).join(", ")}]`);
|
|
883
|
+
defineMethod("object", ["dict"], ({ dict }) => {
|
|
884
|
+
if (Object.keys(dict).length === 0) return "{}";
|
|
885
|
+
return `{ ${Object.entries(dict).map(([key, inner]) => {
|
|
886
|
+
return `${key}${inner.meta.required ? "" : "?"}: ${inner.toString()}`;
|
|
887
|
+
}).join(", ")} }`;
|
|
888
|
+
});
|
|
889
|
+
defineMethod("union", ["list"], ({ list }, inline) => {
|
|
890
|
+
const result = list.map(({ toString: format }) => format()).join(" | ");
|
|
891
|
+
return inline ? `(${result})` : result;
|
|
892
|
+
});
|
|
893
|
+
defineMethod("intersect", ["list"], ({ list }) => {
|
|
894
|
+
return `${list.map((inner) => inner.toString(true)).join(" & ")}`;
|
|
895
|
+
});
|
|
896
|
+
defineMethod("transform", [
|
|
897
|
+
"inner",
|
|
898
|
+
"callback",
|
|
899
|
+
"preserve"
|
|
900
|
+
], ({ inner }, isInner) => inner.toString(isInner));
|
|
901
|
+
//#endregion
|
|
902
|
+
//#region lib/types/contact-config.js
|
|
903
|
+
/** Public questionnaire deployment options shared by Host and Client. */
|
|
904
|
+
/** Validate public questionnaire options. */
|
|
905
|
+
const Config = Schema.object({
|
|
906
|
+
contactFormUrl: Schema.string().pattern(/^https:\/\/[^/\s]+\//).default("https://trtgsjkv6r.feishu.cn/share/base/form/shrcnhcHE4A6lQaQ3v0raCXmBAg"),
|
|
907
|
+
contactSource: Schema.string().default("")
|
|
908
|
+
});
|
|
909
|
+
//#endregion
|
|
910
|
+
//#region lib/types/client/contact-url.js
|
|
911
|
+
/**
|
|
912
|
+
* Build an external questionnaire URL without authentication credentials.
|
|
913
|
+
* @param config - questionnaire destination and supported source option.
|
|
914
|
+
* @param context - currently available account and browser environment.
|
|
915
|
+
* @returns questionnaire URL with hidden, optionally prefilled context fields.
|
|
916
|
+
*/
|
|
917
|
+
function contactUrl(config, context) {
|
|
918
|
+
const url = new URL(config.contactFormUrl);
|
|
919
|
+
const ratio = Number.isFinite(context.pixelRatio) ? context.pixelRatio : 1;
|
|
920
|
+
const width = Math.round(context.width * ratio);
|
|
921
|
+
const height = Math.round(context.height * ratio);
|
|
922
|
+
const fields = {
|
|
923
|
+
uid: context.uid,
|
|
924
|
+
source: config.contactSource,
|
|
925
|
+
app_version: context.version,
|
|
926
|
+
os_version: void 0,
|
|
927
|
+
device_brand: void 0,
|
|
928
|
+
device_model: void 0,
|
|
929
|
+
app_locale: context.locale,
|
|
930
|
+
screen_resolution: width > 0 && height > 0 ? `${width}x${height}` : void 0
|
|
931
|
+
};
|
|
932
|
+
for (const [name, value] of Object.entries(fields)) {
|
|
933
|
+
url.searchParams.set(`hide_${name}`, "1");
|
|
934
|
+
url.searchParams.delete(`prefill_${name}`);
|
|
935
|
+
if (value) url.searchParams.set(`prefill_${name}`, value);
|
|
936
|
+
}
|
|
937
|
+
return url.href;
|
|
938
|
+
}
|
|
939
|
+
//#endregion
|
|
940
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-settings-account/src/client/SignInDialog.module.css.mjs
|
|
941
|
+
const css$4 = ".fKdxNq_dialog{user-select:none;box-sizing:border-box;border:.5px solid var(--dsw-alias-border-inverted)}.fKdxNq_content{flex-direction:column;width:100%;display:flex}.fKdxNq_header{justify-content:space-between;align-items:center;gap:8px;padding:22px 24px 12px;display:flex}.fKdxNq_title{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.fKdxNq_close{box-sizing:border-box;width:28px;height:28px;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;border:0;border-radius:28px;flex:none;justify-content:center;align-items:center;padding:6px;display:inline-flex}.fKdxNq_close:hover{background:var(--dsw-alias-interactive-bg-hover)}.fKdxNq_actions{box-sizing:border-box;justify-content:flex-end;align-items:center;gap:8px;width:100%;padding:0 24px;display:flex}.fKdxNq_primaryButton,.fKdxNq_secondaryButton{box-sizing:border-box;border-radius:12px;min-width:72px;height:36px;font-size:14px;line-height:22px}.fKdxNq_primaryButton{padding:0 16px;font-weight:500}.fKdxNq_secondaryButton{border:.5px solid var(--dsw-alias-border-l2);padding:0 14px}.fKdxNq_description{color:var(--dsw-alias-label-primary);margin:0;padding:0 24px;font-size:14px;line-height:22px}.fKdxNq_link{color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;text-decoration:underline}.fKdxNq_spinner{flex:none;animation:1s linear infinite fKdxNq_spin}.fKdxNq_primaryButton:has(.fKdxNq_spinner){opacity:1}@keyframes fKdxNq_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.fKdxNq_spinner{animation:none}}";
|
|
942
|
+
const tagId$4 = "@deepseek-ai/dsh-client-ui-settings-account/SignInDialog.module.css";
|
|
943
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$4) + "]") === null) {
|
|
944
|
+
const tag = document.createElement("style");
|
|
945
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-settings-account";
|
|
946
|
+
tag.dataset.pluginCss = tagId$4;
|
|
947
|
+
tag.textContent = css$4;
|
|
948
|
+
document.head.appendChild(tag);
|
|
949
|
+
}
|
|
950
|
+
var SignInDialog_module_css_default = {
|
|
951
|
+
"actions": "fKdxNq_actions",
|
|
952
|
+
"close": "fKdxNq_close",
|
|
953
|
+
"content": "fKdxNq_content",
|
|
954
|
+
"description": "fKdxNq_description",
|
|
955
|
+
"dialog": "fKdxNq_dialog",
|
|
956
|
+
"header": "fKdxNq_header",
|
|
957
|
+
"link": "fKdxNq_link",
|
|
958
|
+
"primaryButton": "fKdxNq_primaryButton",
|
|
959
|
+
"secondaryButton": "fKdxNq_secondaryButton",
|
|
960
|
+
"spin": "fKdxNq_spin",
|
|
961
|
+
"spinner": "fKdxNq_spinner",
|
|
962
|
+
"title": "fKdxNq_title"
|
|
963
|
+
};
|
|
964
|
+
//#endregion
|
|
965
|
+
//#region lib/types/client/SignInDialog.js
|
|
966
|
+
/** Account authorization dialog; errors allow retry after cancelling any active attempt. */
|
|
967
|
+
/** @param props - safe account state, localized copy, and user actions. @returns login dialog. */
|
|
968
|
+
function SignInDialog({ account, start, cancel, close, useApiKey, t }) {
|
|
969
|
+
const [busy, setBusy] = (0, react.useState)(false);
|
|
970
|
+
const [failed, setFailed] = (0, react.useState)(false);
|
|
971
|
+
const [copyResult, setCopyResult] = (0, react.useState)(null);
|
|
972
|
+
const attempt = account.view?.attempt;
|
|
973
|
+
(0, react.useEffect)(() => {
|
|
974
|
+
setCopyResult(null);
|
|
975
|
+
}, [attempt?.id, attempt?.authorizeUrl]);
|
|
976
|
+
(0, react.useEffect)(() => {
|
|
977
|
+
if (copyResult === null) return;
|
|
978
|
+
const timer = setTimeout(() => {
|
|
979
|
+
setCopyResult(null);
|
|
980
|
+
}, 2e3);
|
|
981
|
+
return () => {
|
|
982
|
+
clearTimeout(timer);
|
|
983
|
+
};
|
|
984
|
+
}, [copyResult]);
|
|
985
|
+
const authorizeUrl = attempt?.authorizeUrl;
|
|
986
|
+
const phase = attempt?.phase;
|
|
987
|
+
const active = busy || phase === "initializing" || phase === "waiting-browser" || phase === "exchanging" || phase === "committing";
|
|
988
|
+
const expired = phase === "expired";
|
|
989
|
+
const error = failed || account.loginFailed || account.failed || phase === "failed";
|
|
990
|
+
const waiting = active && !error;
|
|
991
|
+
const committing = phase === "committing";
|
|
992
|
+
(0, react.useEffect)(() => {
|
|
993
|
+
if (account.view?.status === "credential-stored") close();
|
|
994
|
+
}, [account.view?.status, close]);
|
|
995
|
+
const run = async (action) => {
|
|
996
|
+
setBusy(true);
|
|
997
|
+
setFailed(false);
|
|
998
|
+
try {
|
|
999
|
+
await action();
|
|
1000
|
+
} catch {
|
|
1001
|
+
setFailed(true);
|
|
1002
|
+
} finally {
|
|
1003
|
+
setBusy(false);
|
|
1004
|
+
}
|
|
1005
|
+
};
|
|
1006
|
+
const dismiss = () => {
|
|
1007
|
+
if (committing || busy) return;
|
|
1008
|
+
if (active && attempt) run(async () => {
|
|
1009
|
+
await cancel(attempt.id);
|
|
1010
|
+
close();
|
|
1011
|
+
});
|
|
1012
|
+
else close();
|
|
1013
|
+
};
|
|
1014
|
+
const retry = async () => {
|
|
1015
|
+
if (active && attempt) await cancel(attempt.id);
|
|
1016
|
+
await start();
|
|
1017
|
+
};
|
|
1018
|
+
const copyLink = async (authorizeUrl) => {
|
|
1019
|
+
try {
|
|
1020
|
+
await navigator.clipboard.writeText(authorizeUrl);
|
|
1021
|
+
setCopyResult({ messageKey: "copiedLink" });
|
|
1022
|
+
} catch {
|
|
1023
|
+
setCopyResult({ messageKey: "copyFailed" });
|
|
1024
|
+
}
|
|
1025
|
+
};
|
|
1026
|
+
const title = error ? t("failureTitle") : active ? t("browserTitle") : expired ? t("timeoutTitle") : t("loginTitle");
|
|
1027
|
+
return (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
1028
|
+
open: true,
|
|
1029
|
+
headless: true,
|
|
1030
|
+
title,
|
|
1031
|
+
onClose: dismiss,
|
|
1032
|
+
className: SignInDialog_module_css_default.dialog,
|
|
1033
|
+
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
1034
|
+
className: SignInDialog_module_css_default.content,
|
|
1035
|
+
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
1036
|
+
className: SignInDialog_module_css_default.header,
|
|
1037
|
+
children: [(0, react_jsx_runtime.jsx)("h2", {
|
|
1038
|
+
className: SignInDialog_module_css_default.title,
|
|
1039
|
+
children: title
|
|
1040
|
+
}), (0, react_jsx_runtime.jsx)("button", {
|
|
1041
|
+
type: "button",
|
|
1042
|
+
className: SignInDialog_module_css_default.close,
|
|
1043
|
+
"aria-label": t("close"),
|
|
1044
|
+
onClick: dismiss,
|
|
1045
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, { size: 14 })
|
|
1046
|
+
})]
|
|
1047
|
+
}), waiting ? (0, react_jsx_runtime.jsxs)("p", {
|
|
1048
|
+
className: SignInDialog_module_css_default.description,
|
|
1049
|
+
children: [
|
|
1050
|
+
t("browserPrompt"),
|
|
1051
|
+
(0, react_jsx_runtime.jsx)("button", {
|
|
1052
|
+
type: "button",
|
|
1053
|
+
className: SignInDialog_module_css_default.link,
|
|
1054
|
+
disabled: !authorizeUrl,
|
|
1055
|
+
onClick: authorizeUrl ? () => {
|
|
1056
|
+
copyLink(authorizeUrl);
|
|
1057
|
+
} : void 0,
|
|
1058
|
+
children: t(copyResult?.messageKey ?? "copyLink")
|
|
1059
|
+
}),
|
|
1060
|
+
t("browserDescription")
|
|
1061
|
+
]
|
|
1062
|
+
}) : (0, react_jsx_runtime.jsx)("p", {
|
|
1063
|
+
className: SignInDialog_module_css_default.description,
|
|
1064
|
+
children: error ? t("failed") : expired ? t("timeoutDescription") : t("loginDescription")
|
|
1065
|
+
})]
|
|
1066
|
+
}), (0, react_jsx_runtime.jsxs)("div", {
|
|
1067
|
+
className: SignInDialog_module_css_default.actions,
|
|
1068
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
1069
|
+
variant: "outline",
|
|
1070
|
+
className: SignInDialog_module_css_default.secondaryButton,
|
|
1071
|
+
disabled: committing || busy,
|
|
1072
|
+
onClick: active ? dismiss : useApiKey,
|
|
1073
|
+
children: t(active ? "cancel" : "addApiKey")
|
|
1074
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
1075
|
+
variant: "primary",
|
|
1076
|
+
className: SignInDialog_module_css_default.primaryButton,
|
|
1077
|
+
disabled: busy || committing || waiting || account.view === void 0,
|
|
1078
|
+
"aria-label": waiting ? t("waiting") : void 0,
|
|
1079
|
+
onClick: () => {
|
|
1080
|
+
run(retry);
|
|
1081
|
+
},
|
|
1082
|
+
children: waiting ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconLoadingOutlineRegular, { className: SignInDialog_module_css_default.spinner }) : t(expired || error ? "retry" : "signIn")
|
|
1083
|
+
})]
|
|
1084
|
+
})]
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
//#endregion
|
|
1088
|
+
//#region lib/types/client/AccountOnboarding.js
|
|
1089
|
+
/** Account choice inside the model credential onboarding step. */
|
|
1090
|
+
/** @param props - onboarding completion, account state and actions. @returns account dialog while signed out. */
|
|
1091
|
+
function AccountOnboarding({ complete, useApiKey, useAccount, setOnboarding, showLogin, start, cancel, t }) {
|
|
1092
|
+
const account = useAccount((value) => value);
|
|
1093
|
+
(0, react.useEffect)(() => {
|
|
1094
|
+
setOnboarding(true);
|
|
1095
|
+
return () => {
|
|
1096
|
+
setOnboarding(false);
|
|
1097
|
+
};
|
|
1098
|
+
}, [setOnboarding]);
|
|
1099
|
+
(0, react.useEffect)(() => {
|
|
1100
|
+
if (account.view?.status === "credential-stored") complete();
|
|
1101
|
+
}, [account.view?.status, complete]);
|
|
1102
|
+
if (!account.view || account.view.status === "credential-stored") return null;
|
|
1103
|
+
return (0, react_jsx_runtime.jsx)(SignInDialog, {
|
|
1104
|
+
account,
|
|
1105
|
+
start,
|
|
1106
|
+
cancel,
|
|
1107
|
+
t,
|
|
1108
|
+
close: () => {
|
|
1109
|
+
showLogin(false);
|
|
1110
|
+
complete();
|
|
1111
|
+
},
|
|
1112
|
+
useApiKey: () => {
|
|
1113
|
+
showLogin(false);
|
|
1114
|
+
useApiKey();
|
|
1115
|
+
}
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
//#endregion
|
|
1119
|
+
//#region lib/types/client/LogoutIcon.js
|
|
1120
|
+
/** Figma IcDsLogOutOutline16 glyph, stored inline for theme-aware rendering. */
|
|
1121
|
+
/** @returns the account menu logout glyph. */
|
|
1122
|
+
function LogoutIcon() {
|
|
1123
|
+
return (0, react_jsx_runtime.jsx)("span", {
|
|
1124
|
+
style: {
|
|
1125
|
+
width: 16,
|
|
1126
|
+
height: 16,
|
|
1127
|
+
position: "relative"
|
|
1128
|
+
},
|
|
1129
|
+
"aria-hidden": "true",
|
|
1130
|
+
children: (0, react_jsx_runtime.jsxs)("svg", {
|
|
1131
|
+
style: {
|
|
1132
|
+
position: "absolute",
|
|
1133
|
+
left: 1.168,
|
|
1134
|
+
top: 1.214
|
|
1135
|
+
},
|
|
1136
|
+
width: "13.664",
|
|
1137
|
+
height: "13.571",
|
|
1138
|
+
viewBox: "0 0 14 14",
|
|
1139
|
+
fill: "none",
|
|
1140
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1141
|
+
children: [(0, react_jsx_runtime.jsx)("path", {
|
|
1142
|
+
d: "M3.9961 1.40039C3.37842 1.40039 2.96028 1.40039 2.63867 1.42871C2.32631 1.45627 2.17171 1.50666 2.06641 1.56543C1.85606 1.68288 1.68189 1.85605 1.56446 2.06641C1.50569 2.17173 1.45625 2.32627 1.42871 2.63867C1.40036 2.9603 1.39942 3.37827 1.39942 3.9961L1.39942 9.5752C1.39942 10.193 1.40036 10.611 1.42871 10.9326C1.45625 11.245 1.50569 11.3996 1.56445 11.5049C1.68188 11.7153 1.85605 11.8884 2.06641 12.0059C2.17171 12.0646 2.32631 12.115 2.63867 12.1426C2.96028 12.1709 3.37842 12.1709 3.9961 12.1709V13.5713C3.4033 13.5713 2.91297 13.5721 2.51563 13.5371C2.10906 13.5013 1.73277 13.4233 1.38379 13.2285C0.946838 12.9845 0.585697 12.6235 0.341799 12.1865C0.14725 11.8377 0.0700118 11.4621 0.0341815 11.0557C-0.000847399 10.6583 1.58129e-06 10.1681 1.85029e-06 9.5752L2.09416e-06 3.9961C1.83027e-06 3.40325 -0.000846367 2.91297 0.0341818 2.51563C0.0700164 2.10924 0.147239 1.73362 0.341799 1.38477C0.585703 0.947758 0.946825 0.586744 1.38379 0.342775C1.73277 0.148001 2.10906 0.0700381 2.51563 0.0341813C2.91297 -0.000823893 3.40331 1.37805e-06 3.9961 1.71712e-06L3.9961 1.40039Z",
|
|
1143
|
+
fill: "currentColor"
|
|
1144
|
+
}), (0, react_jsx_runtime.jsx)("path", {
|
|
1145
|
+
d: "M13.6426 6.51953C13.6705 6.6957 13.6705 6.8756 13.6426 7.05176C13.5902 7.38188 13.4302 7.64112 13.2539 7.86035C13.0857 8.06937 12.8546 8.29971 12.6006 8.55371L9.3086 11.8447L8.31836 10.8545L11.6104 7.56348C11.637 7.53681 11.6628 7.51104 11.6875 7.48633H3.74317V6.08594H11.6885C11.6635 6.06088 11.6374 6.03487 11.6104 6.00781L8.31836 2.7168L9.3086 1.72656L12.6006 5.01758C12.8547 5.27169 13.0857 5.50185 13.2539 5.71094C13.4303 5.93018 13.5902 6.18939 13.6426 6.51953Z",
|
|
1146
|
+
fill: "currentColor"
|
|
1147
|
+
})]
|
|
1148
|
+
})
|
|
1149
|
+
});
|
|
1150
|
+
}
|
|
1151
|
+
//#endregion
|
|
1152
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-settings-account/src/client/AccountAvatar.module.css.mjs
|
|
1153
|
+
const css$3 = ".UkIqtW_image{border-radius:inherit;object-fit:cover;width:100%;height:100%;display:block}";
|
|
1154
|
+
const tagId$3 = "@deepseek-ai/dsh-client-ui-settings-account/AccountAvatar.module.css";
|
|
1155
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
1156
|
+
const tag = document.createElement("style");
|
|
1157
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-settings-account";
|
|
1158
|
+
tag.dataset.pluginCss = tagId$3;
|
|
1159
|
+
tag.textContent = css$3;
|
|
1160
|
+
document.head.appendChild(tag);
|
|
1161
|
+
}
|
|
1162
|
+
var AccountAvatar_module_css_default = { "image": "UkIqtW_image" };
|
|
1163
|
+
//#endregion
|
|
1164
|
+
//#region lib/types/client/AccountAvatar.js
|
|
1165
|
+
/** Shared account picture with an icon fallback for missing or unavailable images. */
|
|
1166
|
+
/**
|
|
1167
|
+
* Render a decorative avatar next to the account identity.
|
|
1168
|
+
* @param props - profile picture URL; absent while signed out or loading.
|
|
1169
|
+
* @returns picture or the default account icon.
|
|
1170
|
+
*/
|
|
1171
|
+
function AccountAvatar({ url }) {
|
|
1172
|
+
const [failedUrl, setFailedUrl] = (0, react.useState)();
|
|
1173
|
+
return url && url !== failedUrl ? (0, react_jsx_runtime.jsx)("img", {
|
|
1174
|
+
className: AccountAvatar_module_css_default.image,
|
|
1175
|
+
src: url,
|
|
1176
|
+
alt: "",
|
|
1177
|
+
referrerPolicy: "no-referrer",
|
|
1178
|
+
onError: () => {
|
|
1179
|
+
setFailedUrl(url);
|
|
1180
|
+
}
|
|
1181
|
+
}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconUserOutlineMedium, { size: 16 });
|
|
1182
|
+
}
|
|
1183
|
+
//#endregion
|
|
1184
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-settings-account/src/client/AccountMenu.module.css.mjs
|
|
1185
|
+
const css$2 = ".NHVTgq_root{flex:1;min-width:0}.NHVTgq_anchor{width:100%}.NHVTgq_trigger{user-select:none;width:100%;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:8px;padding:6px;font-size:14px;display:flex}.NHVTgq_trigger[data-collapsed=true]{box-sizing:border-box;justify-content:center;gap:0;width:36px;height:36px;padding:0}.NHVTgq_trigger:hover{background:var(--dsw-alias-interactive-bg-hover)}.NHVTgq_avatar{background:var(--dsw-alias-bg-skeleton);width:32px;height:32px;color:var(--dsw-alias-label-tertiary);border-radius:16px;flex:none;justify-content:center;align-items:center;display:flex}.NHVTgq_label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.NHVTgq_error{color:var(--dsw-alias-state-error-primary);font-size:12px}";
|
|
1186
|
+
const tagId$2 = "@deepseek-ai/dsh-client-ui-settings-account/AccountMenu.module.css";
|
|
1187
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
1188
|
+
const tag = document.createElement("style");
|
|
1189
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-settings-account";
|
|
1190
|
+
tag.dataset.pluginCss = tagId$2;
|
|
1191
|
+
tag.textContent = css$2;
|
|
1192
|
+
document.head.appendChild(tag);
|
|
1193
|
+
}
|
|
1194
|
+
var AccountMenu_module_css_default = {
|
|
1195
|
+
"anchor": "NHVTgq_anchor",
|
|
1196
|
+
"avatar": "NHVTgq_avatar",
|
|
1197
|
+
"error": "NHVTgq_error",
|
|
1198
|
+
"label": "NHVTgq_label",
|
|
1199
|
+
"root": "NHVTgq_root",
|
|
1200
|
+
"trigger": "NHVTgq_trigger"
|
|
1201
|
+
};
|
|
1202
|
+
//#endregion
|
|
1203
|
+
//#region lib/types/client/AccountMenu.js
|
|
1204
|
+
/** Sidebar account launcher and locally authoritative sign-out action. */
|
|
1205
|
+
/** The signed-in label stays empty while the profile loads.
|
|
1206
|
+
* @param props - sidebar geometry, settings navigation and account operations.
|
|
1207
|
+
* @returns account menu launcher.
|
|
1208
|
+
*/
|
|
1209
|
+
function AccountMenu({ wide, openSettings, openOnboarding, useAccount, signOut, contactUs, showLogin, start, cancel, t }) {
|
|
1210
|
+
const account = useAccount((state) => state);
|
|
1211
|
+
const signedIn = account.view?.status === "credential-stored";
|
|
1212
|
+
const profile = account.details?.profile;
|
|
1213
|
+
const label = profile === void 0 ? null : profile.status === "ready" ? profile.value.name ?? profile.value.contact ?? t("signedIn") : t("signedIn");
|
|
1214
|
+
const [open, setOpen] = (0, react.useState)(false);
|
|
1215
|
+
const [busy, setBusy] = (0, react.useState)(false);
|
|
1216
|
+
const [logoutFailed, setLogoutFailed] = (0, react.useState)(false);
|
|
1217
|
+
const logout = async () => {
|
|
1218
|
+
setBusy(true);
|
|
1219
|
+
setLogoutFailed(false);
|
|
1220
|
+
try {
|
|
1221
|
+
await signOut();
|
|
1222
|
+
setOpen(false);
|
|
1223
|
+
} catch {
|
|
1224
|
+
setLogoutFailed(true);
|
|
1225
|
+
} finally {
|
|
1226
|
+
setBusy(false);
|
|
1227
|
+
}
|
|
1228
|
+
};
|
|
1229
|
+
const beginSignIn = () => {
|
|
1230
|
+
setOpen(false);
|
|
1231
|
+
start().catch(() => void 0);
|
|
1232
|
+
};
|
|
1233
|
+
return (0, react_jsx_runtime.jsxs)("div", {
|
|
1234
|
+
className: AccountMenu_module_css_default.root,
|
|
1235
|
+
children: [
|
|
1236
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
|
|
1237
|
+
open,
|
|
1238
|
+
side: "top",
|
|
1239
|
+
portal: true,
|
|
1240
|
+
autoFocus: true,
|
|
1241
|
+
className: AccountMenu_module_css_default.anchor,
|
|
1242
|
+
anchor: (0, react_jsx_runtime.jsxs)("button", {
|
|
1243
|
+
type: "button",
|
|
1244
|
+
className: AccountMenu_module_css_default.trigger,
|
|
1245
|
+
"data-collapsed": !wide,
|
|
1246
|
+
"aria-label": t("menu"),
|
|
1247
|
+
"aria-haspopup": "menu",
|
|
1248
|
+
"aria-expanded": open,
|
|
1249
|
+
onClick: () => {
|
|
1250
|
+
setOpen((value) => !value);
|
|
1251
|
+
},
|
|
1252
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1253
|
+
className: AccountMenu_module_css_default.avatar,
|
|
1254
|
+
children: (0, react_jsx_runtime.jsx)(AccountAvatar, { url: signedIn && profile?.status === "ready" ? profile.value.avatarUrl : null })
|
|
1255
|
+
}), wide && (0, react_jsx_runtime.jsx)("span", {
|
|
1256
|
+
className: AccountMenu_module_css_default.label,
|
|
1257
|
+
children: signedIn ? label : t("signedOut")
|
|
1258
|
+
})]
|
|
1259
|
+
}),
|
|
1260
|
+
items: [
|
|
1261
|
+
{
|
|
1262
|
+
id: "settings",
|
|
1263
|
+
label: t("settings"),
|
|
1264
|
+
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconSettingsOutlineMedium, { size: 16 })
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
id: "contact",
|
|
1268
|
+
label: t("contactUs"),
|
|
1269
|
+
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPaperPlaneOutlineMedium, { size: 16 })
|
|
1270
|
+
},
|
|
1271
|
+
...signedIn ? [{
|
|
1272
|
+
id: "signout",
|
|
1273
|
+
label: t("signOut"),
|
|
1274
|
+
icon: (0, react_jsx_runtime.jsx)(LogoutIcon, {}),
|
|
1275
|
+
disabled: busy
|
|
1276
|
+
}] : [{
|
|
1277
|
+
id: "signin",
|
|
1278
|
+
label: t("signIn"),
|
|
1279
|
+
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconUserOutlineMedium, { size: 16 })
|
|
1280
|
+
}]
|
|
1281
|
+
],
|
|
1282
|
+
onClose: () => {
|
|
1283
|
+
setOpen(false);
|
|
1284
|
+
},
|
|
1285
|
+
onSelect: (id) => {
|
|
1286
|
+
if (id === "settings") {
|
|
1287
|
+
setOpen(false);
|
|
1288
|
+
openSettings();
|
|
1289
|
+
} else if (id === "contact") {
|
|
1290
|
+
setOpen(false);
|
|
1291
|
+
contactUs();
|
|
1292
|
+
} else if (id === "signin") beginSignIn();
|
|
1293
|
+
else logout();
|
|
1294
|
+
}
|
|
1295
|
+
}),
|
|
1296
|
+
account.loginVisible && !account.onboarding && (0, react_jsx_runtime.jsx)(SignInDialog, {
|
|
1297
|
+
account,
|
|
1298
|
+
start,
|
|
1299
|
+
cancel,
|
|
1300
|
+
t,
|
|
1301
|
+
close: () => {
|
|
1302
|
+
showLogin(false);
|
|
1303
|
+
},
|
|
1304
|
+
useApiKey: () => {
|
|
1305
|
+
showLogin(false);
|
|
1306
|
+
openOnboarding("deepseek-official");
|
|
1307
|
+
}
|
|
1308
|
+
}),
|
|
1309
|
+
logoutFailed && (0, react_jsx_runtime.jsx)("span", {
|
|
1310
|
+
className: AccountMenu_module_css_default.error,
|
|
1311
|
+
role: "alert",
|
|
1312
|
+
children: t("failed")
|
|
1313
|
+
})
|
|
1314
|
+
]
|
|
1315
|
+
});
|
|
1316
|
+
}
|
|
1317
|
+
//#endregion
|
|
1318
|
+
//#region ../../../node_modules/.pnpm/big.js@7.0.1/node_modules/big.js/big.mjs
|
|
1319
|
+
/************************************** EDITABLE DEFAULTS *****************************************/
|
|
1320
|
+
var DP = 20, RM = 1, MAX_DP = 1e6, MAX_POWER = 1e6, NE = -7, PE = 21, STRICT = false, NAME = "[big.js] ", INVALID = NAME + "Invalid ", INVALID_DP = INVALID + "decimal places", INVALID_RM = INVALID + "rounding mode", DIV_BY_ZERO = NAME + "Division by zero", P = {}, UNDEFINED = void 0, NUMERIC = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;
|
|
1321
|
+
function _Big_() {
|
|
1322
|
+
function Big(n) {
|
|
1323
|
+
var x = this;
|
|
1324
|
+
if (!(x instanceof Big)) return n === UNDEFINED && arguments.length === 0 ? _Big_() : new Big(n);
|
|
1325
|
+
if (n instanceof Big) {
|
|
1326
|
+
x.s = n.s;
|
|
1327
|
+
x.e = n.e;
|
|
1328
|
+
x.c = n.c.slice();
|
|
1329
|
+
} else {
|
|
1330
|
+
if (typeof n !== "string") {
|
|
1331
|
+
if (Big.strict === true && typeof n !== "bigint") throw TypeError(INVALID + "value");
|
|
1332
|
+
n = n === 0 && 1 / n < 0 ? "-0" : String(n);
|
|
1333
|
+
}
|
|
1334
|
+
parse(x, n);
|
|
1335
|
+
}
|
|
1336
|
+
x.constructor = Big;
|
|
1337
|
+
}
|
|
1338
|
+
Big.prototype = P;
|
|
1339
|
+
Big.DP = DP;
|
|
1340
|
+
Big.RM = RM;
|
|
1341
|
+
Big.NE = NE;
|
|
1342
|
+
Big.PE = PE;
|
|
1343
|
+
Big.strict = STRICT;
|
|
1344
|
+
Big.roundDown = 0;
|
|
1345
|
+
Big.roundHalfUp = 1;
|
|
1346
|
+
Big.roundHalfEven = 2;
|
|
1347
|
+
Big.roundUp = 3;
|
|
1348
|
+
return Big;
|
|
1349
|
+
}
|
|
1350
|
+
function parse(x, n) {
|
|
1351
|
+
var e, i, nl;
|
|
1352
|
+
if (!NUMERIC.test(n)) throw Error(INVALID + "number");
|
|
1353
|
+
x.s = n.charAt(0) == "-" ? (n = n.slice(1), -1) : 1;
|
|
1354
|
+
if ((e = n.indexOf(".")) > -1) n = n.replace(".", "");
|
|
1355
|
+
if ((i = n.search(/e/i)) > 0) {
|
|
1356
|
+
if (e < 0) e = i;
|
|
1357
|
+
e += +n.slice(i + 1);
|
|
1358
|
+
n = n.substring(0, i);
|
|
1359
|
+
} else if (e < 0) e = n.length;
|
|
1360
|
+
nl = n.length;
|
|
1361
|
+
for (i = 0; i < nl && n.charAt(i) == "0";) ++i;
|
|
1362
|
+
if (i == nl) x.c = [x.e = 0];
|
|
1363
|
+
else {
|
|
1364
|
+
for (; nl > 0 && n.charAt(--nl) == "0";);
|
|
1365
|
+
x.e = e - i - 1;
|
|
1366
|
+
x.c = [];
|
|
1367
|
+
for (e = 0; i <= nl;) x.c[e++] = +n.charAt(i++);
|
|
1368
|
+
}
|
|
1369
|
+
return x;
|
|
1370
|
+
}
|
|
1371
|
+
function round(x, sd, rm, more) {
|
|
1372
|
+
var xc = x.c;
|
|
1373
|
+
if (rm === UNDEFINED) rm = x.constructor.RM;
|
|
1374
|
+
if (rm !== 0 && rm !== 1 && rm !== 2 && rm !== 3) throw Error(INVALID_RM);
|
|
1375
|
+
if (sd < 1) {
|
|
1376
|
+
more = rm === 3 && (more || !!xc[0]) || sd === 0 && (rm === 1 && xc[0] >= 5 || rm === 2 && (xc[0] > 5 || xc[0] === 5 && (more || xc[1] !== UNDEFINED)));
|
|
1377
|
+
xc.length = 1;
|
|
1378
|
+
if (more) {
|
|
1379
|
+
x.e = x.e - sd + 1;
|
|
1380
|
+
xc[0] = 1;
|
|
1381
|
+
} else xc[0] = x.e = 0;
|
|
1382
|
+
} else if (sd < xc.length) {
|
|
1383
|
+
more = rm === 1 && xc[sd] >= 5 || rm === 2 && (xc[sd] > 5 || xc[sd] === 5 && (more || xc[sd + 1] !== UNDEFINED || xc[sd - 1] & 1)) || rm === 3 && (more || !!xc[0]);
|
|
1384
|
+
xc.length = sd;
|
|
1385
|
+
if (more) for (; ++xc[--sd] > 9;) {
|
|
1386
|
+
xc[sd] = 0;
|
|
1387
|
+
if (sd === 0) {
|
|
1388
|
+
++x.e;
|
|
1389
|
+
xc.unshift(1);
|
|
1390
|
+
break;
|
|
1391
|
+
}
|
|
1392
|
+
}
|
|
1393
|
+
for (sd = xc.length; !xc[--sd];) xc.pop();
|
|
1394
|
+
}
|
|
1395
|
+
return x;
|
|
1396
|
+
}
|
|
1397
|
+
function stringify(x, doExponential, isNonzero) {
|
|
1398
|
+
var e = x.e, s = x.c.join(""), n = s.length;
|
|
1399
|
+
if (doExponential) s = s.charAt(0) + (n > 1 ? "." + s.slice(1) : "") + (e < 0 ? "e" : "e+") + e;
|
|
1400
|
+
else if (e < 0) {
|
|
1401
|
+
for (; ++e;) s = "0" + s;
|
|
1402
|
+
s = "0." + s;
|
|
1403
|
+
} else if (e > 0) {
|
|
1404
|
+
if (++e > n) for (e -= n; e--;) s += "0";
|
|
1405
|
+
else if (e < n) s = s.slice(0, e) + "." + s.slice(e);
|
|
1406
|
+
} else if (n > 1) s = s.charAt(0) + "." + s.slice(1);
|
|
1407
|
+
return x.s < 0 && isNonzero ? "-" + s : s;
|
|
1408
|
+
}
|
|
1409
|
+
P.abs = function() {
|
|
1410
|
+
var x = new this.constructor(this);
|
|
1411
|
+
x.s = 1;
|
|
1412
|
+
return x;
|
|
1413
|
+
};
|
|
1414
|
+
P.cmp = function(y) {
|
|
1415
|
+
var isneg, x = this, xc = x.c, yc = (y = new x.constructor(y)).c, i = x.s, j = y.s, k = x.e, l = y.e;
|
|
1416
|
+
if (!xc[0] || !yc[0]) return !xc[0] ? !yc[0] ? 0 : -j : i;
|
|
1417
|
+
if (i != j) return i;
|
|
1418
|
+
isneg = i < 0;
|
|
1419
|
+
if (k != l) return k > l ^ isneg ? 1 : -1;
|
|
1420
|
+
j = (k = xc.length) < (l = yc.length) ? k : l;
|
|
1421
|
+
for (i = -1; ++i < j;) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ isneg ? 1 : -1;
|
|
1422
|
+
return k == l ? 0 : k > l ^ isneg ? 1 : -1;
|
|
1423
|
+
};
|
|
1424
|
+
P.div = function(y) {
|
|
1425
|
+
var x = this, Big = x.constructor, a = x.c, b = (y = new Big(y)).c, k = x.s == y.s ? 1 : -1, dp = Big.DP;
|
|
1426
|
+
if (dp !== ~~dp || dp < 0 || dp > MAX_DP) throw Error(INVALID_DP);
|
|
1427
|
+
if (!b[0]) throw Error(DIV_BY_ZERO);
|
|
1428
|
+
if (!a[0]) {
|
|
1429
|
+
y.s = k;
|
|
1430
|
+
y.c = [y.e = 0];
|
|
1431
|
+
return y;
|
|
1432
|
+
}
|
|
1433
|
+
var bl, bt, n, cmp, ri, bz = b.slice(), ai = bl = b.length, al = a.length, r = a.slice(0, bl), rl = r.length, q = y, qc = q.c = [], qi = 0, p = dp + (q.e = x.e - y.e) + 1;
|
|
1434
|
+
q.s = k;
|
|
1435
|
+
k = p < 0 ? 0 : p;
|
|
1436
|
+
bz.unshift(0);
|
|
1437
|
+
for (; rl++ < bl;) r.push(0);
|
|
1438
|
+
do {
|
|
1439
|
+
for (n = 0; n < 10; n++) {
|
|
1440
|
+
if (bl != (rl = r.length)) cmp = bl > rl ? 1 : -1;
|
|
1441
|
+
else for (ri = -1, cmp = 0; ++ri < bl;) if (b[ri] != r[ri]) {
|
|
1442
|
+
cmp = b[ri] > r[ri] ? 1 : -1;
|
|
1443
|
+
break;
|
|
1444
|
+
}
|
|
1445
|
+
if (cmp < 0) {
|
|
1446
|
+
for (bt = rl == bl ? b : bz; rl;) {
|
|
1447
|
+
if (r[--rl] < bt[rl]) {
|
|
1448
|
+
ri = rl;
|
|
1449
|
+
for (; ri && !r[--ri];) r[ri] = 9;
|
|
1450
|
+
--r[ri];
|
|
1451
|
+
r[rl] += 10;
|
|
1452
|
+
}
|
|
1453
|
+
r[rl] -= bt[rl];
|
|
1454
|
+
}
|
|
1455
|
+
for (; !r[0];) r.shift();
|
|
1456
|
+
} else break;
|
|
1457
|
+
}
|
|
1458
|
+
qc[qi++] = cmp ? n : ++n;
|
|
1459
|
+
if (r[0] && cmp) r[rl] = a[ai] || 0;
|
|
1460
|
+
else r = [a[ai]];
|
|
1461
|
+
} while ((ai++ < al || r[0] !== UNDEFINED) && k--);
|
|
1462
|
+
if (!qc[0] && qi != 1) {
|
|
1463
|
+
qc.shift();
|
|
1464
|
+
q.e--;
|
|
1465
|
+
p--;
|
|
1466
|
+
}
|
|
1467
|
+
if (qi > p) round(q, p, Big.RM, r[0] !== UNDEFINED);
|
|
1468
|
+
return q;
|
|
1469
|
+
};
|
|
1470
|
+
P.eq = function(y) {
|
|
1471
|
+
return this.cmp(y) === 0;
|
|
1472
|
+
};
|
|
1473
|
+
P.gt = function(y) {
|
|
1474
|
+
return this.cmp(y) > 0;
|
|
1475
|
+
};
|
|
1476
|
+
P.gte = function(y) {
|
|
1477
|
+
return this.cmp(y) > -1;
|
|
1478
|
+
};
|
|
1479
|
+
P.lt = function(y) {
|
|
1480
|
+
return this.cmp(y) < 0;
|
|
1481
|
+
};
|
|
1482
|
+
P.lte = function(y) {
|
|
1483
|
+
return this.cmp(y) < 1;
|
|
1484
|
+
};
|
|
1485
|
+
P.minus = P.sub = function(y) {
|
|
1486
|
+
var i, j, t, xlty, x = this, Big = x.constructor, a = x.s, b = (y = new Big(y)).s;
|
|
1487
|
+
if (a != b) {
|
|
1488
|
+
y.s = -b;
|
|
1489
|
+
return x.plus(y);
|
|
1490
|
+
}
|
|
1491
|
+
var xc = x.c.slice(), xe = x.e, yc = y.c, ye = y.e;
|
|
1492
|
+
if (!xc[0] || !yc[0]) {
|
|
1493
|
+
if (yc[0]) y.s = -b;
|
|
1494
|
+
else if (xc[0]) y = new Big(x);
|
|
1495
|
+
else y.s = 1;
|
|
1496
|
+
return y;
|
|
1497
|
+
}
|
|
1498
|
+
if (a = xe - ye) {
|
|
1499
|
+
if (xlty = a < 0) {
|
|
1500
|
+
a = -a;
|
|
1501
|
+
t = xc;
|
|
1502
|
+
} else {
|
|
1503
|
+
ye = xe;
|
|
1504
|
+
t = yc;
|
|
1505
|
+
}
|
|
1506
|
+
t.reverse();
|
|
1507
|
+
for (b = a; b--;) t.push(0);
|
|
1508
|
+
t.reverse();
|
|
1509
|
+
} else {
|
|
1510
|
+
j = ((xlty = xc.length < yc.length) ? xc : yc).length;
|
|
1511
|
+
for (a = b = 0; b < j; b++) if (xc[b] != yc[b]) {
|
|
1512
|
+
xlty = xc[b] < yc[b];
|
|
1513
|
+
break;
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
if (xlty) {
|
|
1517
|
+
t = xc;
|
|
1518
|
+
xc = yc;
|
|
1519
|
+
yc = t;
|
|
1520
|
+
y.s = -y.s;
|
|
1521
|
+
}
|
|
1522
|
+
if ((b = (j = yc.length) - (i = xc.length)) > 0) for (; b--;) xc[i++] = 0;
|
|
1523
|
+
for (b = i; j > a;) {
|
|
1524
|
+
if (xc[--j] < yc[j]) {
|
|
1525
|
+
for (i = j; i && !xc[--i];) xc[i] = 9;
|
|
1526
|
+
--xc[i];
|
|
1527
|
+
xc[j] += 10;
|
|
1528
|
+
}
|
|
1529
|
+
xc[j] -= yc[j];
|
|
1530
|
+
}
|
|
1531
|
+
for (; xc[--b] === 0;) xc.pop();
|
|
1532
|
+
for (; xc[0] === 0;) {
|
|
1533
|
+
xc.shift();
|
|
1534
|
+
--ye;
|
|
1535
|
+
}
|
|
1536
|
+
if (!xc[0]) {
|
|
1537
|
+
y.s = 1;
|
|
1538
|
+
xc = [ye = 0];
|
|
1539
|
+
}
|
|
1540
|
+
y.c = xc;
|
|
1541
|
+
y.e = ye;
|
|
1542
|
+
return y;
|
|
1543
|
+
};
|
|
1544
|
+
P.mod = function(y) {
|
|
1545
|
+
var ygtx, x = this, Big = x.constructor, a = x.s, b = (y = new Big(y)).s;
|
|
1546
|
+
if (!y.c[0]) throw Error(DIV_BY_ZERO);
|
|
1547
|
+
x.s = y.s = 1;
|
|
1548
|
+
ygtx = y.cmp(x) == 1;
|
|
1549
|
+
x.s = a;
|
|
1550
|
+
y.s = b;
|
|
1551
|
+
if (ygtx) return new Big(x);
|
|
1552
|
+
a = Big.DP;
|
|
1553
|
+
b = Big.RM;
|
|
1554
|
+
Big.DP = Big.RM = 0;
|
|
1555
|
+
x = x.div(y);
|
|
1556
|
+
Big.DP = a;
|
|
1557
|
+
Big.RM = b;
|
|
1558
|
+
return this.minus(x.times(y));
|
|
1559
|
+
};
|
|
1560
|
+
P.neg = function() {
|
|
1561
|
+
var x = new this.constructor(this);
|
|
1562
|
+
x.s = -x.s;
|
|
1563
|
+
return x;
|
|
1564
|
+
};
|
|
1565
|
+
P.plus = P.add = function(y) {
|
|
1566
|
+
var e, k, t, x = this, Big = x.constructor;
|
|
1567
|
+
y = new Big(y);
|
|
1568
|
+
if (x.s != y.s) {
|
|
1569
|
+
y.s = -y.s;
|
|
1570
|
+
return x.minus(y);
|
|
1571
|
+
}
|
|
1572
|
+
var xe = x.e, xc = x.c, ye = y.e, yc = y.c;
|
|
1573
|
+
if (!xc[0] || !yc[0]) {
|
|
1574
|
+
if (!yc[0]) if (xc[0]) y = new Big(x);
|
|
1575
|
+
else y.s = x.s;
|
|
1576
|
+
return y;
|
|
1577
|
+
}
|
|
1578
|
+
xc = xc.slice();
|
|
1579
|
+
if (e = xe - ye) {
|
|
1580
|
+
if (e > 0) {
|
|
1581
|
+
ye = xe;
|
|
1582
|
+
t = yc;
|
|
1583
|
+
} else {
|
|
1584
|
+
e = -e;
|
|
1585
|
+
t = xc;
|
|
1586
|
+
}
|
|
1587
|
+
t.reverse();
|
|
1588
|
+
for (; e--;) t.push(0);
|
|
1589
|
+
t.reverse();
|
|
1590
|
+
}
|
|
1591
|
+
if (xc.length - yc.length < 0) {
|
|
1592
|
+
t = yc;
|
|
1593
|
+
yc = xc;
|
|
1594
|
+
xc = t;
|
|
1595
|
+
}
|
|
1596
|
+
e = yc.length;
|
|
1597
|
+
for (k = 0; e; xc[e] %= 10) k = (xc[--e] = xc[e] + yc[e] + k) / 10 | 0;
|
|
1598
|
+
if (k) {
|
|
1599
|
+
xc.unshift(k);
|
|
1600
|
+
++ye;
|
|
1601
|
+
}
|
|
1602
|
+
for (e = xc.length; xc[--e] === 0;) xc.pop();
|
|
1603
|
+
y.c = xc;
|
|
1604
|
+
y.e = ye;
|
|
1605
|
+
return y;
|
|
1606
|
+
};
|
|
1607
|
+
P.pow = function(n) {
|
|
1608
|
+
var x = this, one = new x.constructor("1"), y = one, isneg = n < 0;
|
|
1609
|
+
if (n !== ~~n || n < -MAX_POWER || n > MAX_POWER) throw Error(INVALID + "exponent");
|
|
1610
|
+
if (isneg) n = -n;
|
|
1611
|
+
for (;;) {
|
|
1612
|
+
if (n & 1) y = y.times(x);
|
|
1613
|
+
n >>= 1;
|
|
1614
|
+
if (!n) break;
|
|
1615
|
+
x = x.times(x);
|
|
1616
|
+
}
|
|
1617
|
+
return isneg ? one.div(y) : y;
|
|
1618
|
+
};
|
|
1619
|
+
P.prec = function(sd, rm) {
|
|
1620
|
+
if (sd !== ~~sd || sd < 1 || sd > MAX_DP) throw Error(INVALID + "precision");
|
|
1621
|
+
return round(new this.constructor(this), sd, rm);
|
|
1622
|
+
};
|
|
1623
|
+
P.round = function(dp, rm) {
|
|
1624
|
+
if (dp === UNDEFINED) dp = 0;
|
|
1625
|
+
else if (dp !== ~~dp || dp < -MAX_DP || dp > MAX_DP) throw Error(INVALID_DP);
|
|
1626
|
+
return round(new this.constructor(this), dp + this.e + 1, rm);
|
|
1627
|
+
};
|
|
1628
|
+
P.sqrt = function() {
|
|
1629
|
+
var r, c, t, x = this, Big = x.constructor, s = x.s, e = x.e, half = new Big("0.5");
|
|
1630
|
+
if (!x.c[0]) return new Big(x);
|
|
1631
|
+
if (s < 0) throw Error(NAME + "No square root");
|
|
1632
|
+
s = Math.sqrt(+stringify(x, true, true));
|
|
1633
|
+
if (s === 0 || s === Infinity) {
|
|
1634
|
+
c = x.c.join("");
|
|
1635
|
+
if (!(c.length + e & 1)) c += "0";
|
|
1636
|
+
s = Math.sqrt(c);
|
|
1637
|
+
e = ((e + 1) / 2 | 0) - (e < 0 || e & 1);
|
|
1638
|
+
r = new Big((s == Infinity ? "5e" : (s = s.toExponential()).slice(0, s.indexOf("e") + 1)) + e);
|
|
1639
|
+
} else r = new Big(s + "");
|
|
1640
|
+
e = r.e + (Big.DP += 4);
|
|
1641
|
+
do {
|
|
1642
|
+
t = r;
|
|
1643
|
+
r = half.times(t.plus(x.div(t)));
|
|
1644
|
+
} while (t.c.slice(0, e).join("") !== r.c.slice(0, e).join(""));
|
|
1645
|
+
return round(r, (Big.DP -= 4) + r.e + 1, Big.RM);
|
|
1646
|
+
};
|
|
1647
|
+
P.times = P.mul = function(y) {
|
|
1648
|
+
var c, x = this, Big = x.constructor, xc = x.c, yc = (y = new Big(y)).c, a = xc.length, b = yc.length, i = x.e, j = y.e;
|
|
1649
|
+
y.s = x.s == y.s ? 1 : -1;
|
|
1650
|
+
if (!xc[0] || !yc[0]) {
|
|
1651
|
+
y.c = [y.e = 0];
|
|
1652
|
+
return y;
|
|
1653
|
+
}
|
|
1654
|
+
y.e = i + j;
|
|
1655
|
+
if (a < b) {
|
|
1656
|
+
c = xc;
|
|
1657
|
+
xc = yc;
|
|
1658
|
+
yc = c;
|
|
1659
|
+
j = a;
|
|
1660
|
+
a = b;
|
|
1661
|
+
b = j;
|
|
1662
|
+
}
|
|
1663
|
+
for (c = new Array(j = a + b); j--;) c[j] = 0;
|
|
1664
|
+
for (i = b; i--;) {
|
|
1665
|
+
b = 0;
|
|
1666
|
+
for (j = a + i; j > i;) {
|
|
1667
|
+
b = c[j] + yc[i] * xc[j - i - 1] + b;
|
|
1668
|
+
c[j--] = b % 10;
|
|
1669
|
+
b = b / 10 | 0;
|
|
1670
|
+
}
|
|
1671
|
+
c[j] = b;
|
|
1672
|
+
}
|
|
1673
|
+
if (b) ++y.e;
|
|
1674
|
+
else c.shift();
|
|
1675
|
+
for (i = c.length; !c[--i];) c.pop();
|
|
1676
|
+
y.c = c;
|
|
1677
|
+
return y;
|
|
1678
|
+
};
|
|
1679
|
+
P.toExponential = function(dp, rm) {
|
|
1680
|
+
var x = this, n = x.c[0];
|
|
1681
|
+
if (dp !== UNDEFINED) {
|
|
1682
|
+
if (dp !== ~~dp || dp < 0 || dp > MAX_DP) throw Error(INVALID_DP);
|
|
1683
|
+
x = round(new x.constructor(x), ++dp, rm);
|
|
1684
|
+
for (; x.c.length < dp;) x.c.push(0);
|
|
1685
|
+
}
|
|
1686
|
+
return stringify(x, true, !!n);
|
|
1687
|
+
};
|
|
1688
|
+
P.toFixed = function(dp, rm) {
|
|
1689
|
+
var x = this, n = x.c[0];
|
|
1690
|
+
if (dp !== UNDEFINED) {
|
|
1691
|
+
if (dp !== ~~dp || dp < 0 || dp > MAX_DP) throw Error(INVALID_DP);
|
|
1692
|
+
x = round(new x.constructor(x), dp + x.e + 1, rm);
|
|
1693
|
+
for (dp = dp + x.e + 1; x.c.length < dp;) x.c.push(0);
|
|
1694
|
+
}
|
|
1695
|
+
return stringify(x, false, !!n);
|
|
1696
|
+
};
|
|
1697
|
+
P.toJSON = P.toString = function() {
|
|
1698
|
+
var x = this, Big = x.constructor;
|
|
1699
|
+
return stringify(x, x.e <= Big.NE || x.e >= Big.PE, !!x.c[0]);
|
|
1700
|
+
};
|
|
1701
|
+
if (typeof Symbol !== "undefined") P[Symbol.for("nodejs.util.inspect.custom")] = P.toJSON;
|
|
1702
|
+
P.toNumber = function() {
|
|
1703
|
+
var n = +stringify(this, true, true);
|
|
1704
|
+
if (this.constructor.strict === true && !this.eq(n.toString())) throw Error(NAME + "Imprecise conversion");
|
|
1705
|
+
return n;
|
|
1706
|
+
};
|
|
1707
|
+
P.toPrecision = function(sd, rm) {
|
|
1708
|
+
var x = this, Big = x.constructor, n = x.c[0];
|
|
1709
|
+
if (sd !== UNDEFINED) {
|
|
1710
|
+
if (sd !== ~~sd || sd < 1 || sd > MAX_DP) throw Error(INVALID + "precision");
|
|
1711
|
+
x = round(new Big(x), sd, rm);
|
|
1712
|
+
for (; x.c.length < sd;) x.c.push(0);
|
|
1713
|
+
}
|
|
1714
|
+
return stringify(x, sd <= x.e || x.e <= Big.NE || x.e >= Big.PE, !!n);
|
|
1715
|
+
};
|
|
1716
|
+
P.valueOf = function() {
|
|
1717
|
+
var x = this, Big = x.constructor;
|
|
1718
|
+
if (Big.strict === true) throw Error(NAME + "valueOf disallowed");
|
|
1719
|
+
return stringify(x, x.e <= Big.NE || x.e >= Big.PE, true);
|
|
1720
|
+
};
|
|
1721
|
+
var Big = _Big_();
|
|
1722
|
+
//#endregion
|
|
1723
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-settings-account/src/client/PlatformOverlay.module.css.mjs
|
|
1724
|
+
const css$1 = ".gl5Xjq_overlay{z-index:1001;background:var(--dsw-alias-bg-base);flex-direction:column;display:flex;position:fixed;inset:0}.gl5Xjq_header{box-sizing:border-box;border-bottom:.5px solid var(--dsw-alias-border-l1);app-region:drag;flex:none;height:48px;padding:6px 16px}.gl5Xjq_controls{align-items:center;gap:24px;padding-top:5px;display:flex}.gl5Xjq_trafficLights{flex:none;width:60.667px;height:14px;display:none}html[data-platform=darwin] .gl5Xjq_trafficLights{display:block}.gl5Xjq_back{box-sizing:border-box;height:28px;color:var(--dsw-alias-label-secondary);font:inherit;white-space:nowrap;cursor:pointer;app-region:no-drag;background:0 0;border:none;border-radius:28px;justify-content:center;align-items:center;gap:8px;padding:0 6px;font-size:14px;line-height:22px;display:inline-flex}.gl5Xjq_viewport{min-height:0;color:var(--dsw-alias-label-secondary);flex:1;position:relative}.gl5Xjq_status{flex-direction:column;justify-content:center;align-items:center;gap:16px;display:flex;position:absolute;inset:0}.gl5Xjq_failure{color:var(--dsw-alias-label-tertiary);text-align:center;font-size:14px;line-height:22px}.gl5Xjq_retry.gl5Xjq_retry{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l2);border-radius:18px;min-width:58px;height:32px;padding:0 12px;font-size:13px;font-weight:400;line-height:20px}.gl5Xjq_spinner{width:24px;height:24px;animation:1s linear infinite gl5Xjq_spin;position:relative}.gl5Xjq_spinner:before{content:\"\";background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAxOSAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI3BhaW50MF9hbmd1bGFyXzI5ODhfMzIzMjlfY2xpcF9wYXRoKSIgZGF0YS1maWdtYS1za2lwLXBhcnNlPSJ0cnVlIj48ZyB0cmFuc2Zvcm09Im1hdHJpeCgwLjAwNjk1MDQ4IDAuMDA2OTUwNDggLTAuMDA2OTUwNDggMC4wMDY5NTA0OCAxMC44Nzk3IDEwLjg3OTMpIj48Zm9yZWlnbk9iamVjdCB4PSItMTg2Ny40MiIgeT0iLTE4NjcuNDIiIHdpZHRoPSIzNzM0Ljg1IiBoZWlnaHQ9IjM3MzQuODUiPjxkaXYgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiIHN0eWxlPSJiYWNrZ3JvdW5kOmNvbmljLWdyYWRpZW50KGZyb20gOTBkZWcscmdiYSgyNDYsIDI0NiwgMjQ2LCAwLjk5NDMpIDBkZWcscmdiYSgwLCAwLCAwLCAwLjgzKSAyNzMuMDI3ZGVnLHJnYmEoMCwgMCwgMCwgMCkgMjg3LjY5NGRlZyxyZ2JhKDI1NSwgMjU1LCAyNTUsIDEpIDM1MC40OTdkZWcscmdiYSgyNDYsIDI0NiwgMjQ2LCAwLjk5NDMpIDM2MGRlZyk7aGVpZ2h0OjEwMCU7d2lkdGg6MTAwJTtvcGFjaXR5OjAuNSI+PC9kaXY+PC9mb3JlaWduT2JqZWN0PjwvZz48L2c+PHBhdGggZD0iTTMuMTg2MjcgMTguNTcyMkMtMS4wNjIwOSAxNC4zMjM2IC0xLjA2MjA5IDcuNDM1MDIgMy4xODYyNyAzLjE4NjM5QzcuNDM0ODggLTEuMDYyMjIgMTQuMzIzMyAtMS4wNjIwNSAxOC41NzIxIDMuMTg2MzlMMTcuMDg3OCA0LjY3MDdDMTMuNjU5MSAxLjI0MjM2IDguMTAwMTEgMS4yNDMyMiA0LjY3MTYxIDQuNjcxNzNDMS4yNDMzNSA4LjEwMDI2IDEuMjQzMzUgMTMuNjU4MyA0LjY3MTYxIDE3LjA4NjhDOC4xMDAxMSAyMC41MTUzIDEzLjY1OTEgMjAuNTE2MiAxNy4wODc4IDE3LjA4NzlMMTguNTcyMSAxOC41NzIyQzE0LjMyMzMgMjIuODIwNiA3LjQzNDg4IDIyLjgyMDggMy4xODYyNyAxOC41NzIyWiIgZGF0YS1maWdtYS1ncmFkaWVudC1maWxsPSJ7JiMzNDt0eXBlJiMzNDs6JiMzNDtHUkFESUVOVF9BTkdVTEFSJiMzNDssJiMzNDtzdG9wcyYjMzQ7Olt7JiMzNDtjb2xvciYjMzQ7OnsmIzM0O3ImIzM0OzowLjAsJiMzNDtnJiMzNDs6MC4wLCYjMzQ7YiYjMzQ7OjAuMCwmIzM0O2EmIzM0OzowLjgyOTk5OTk4MzMxMDY5OTQ2fSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC43NTg0MDg3MjUyNjE2ODgyM30seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MC4wLCYjMzQ7ZyYjMzQ7OjAuMCwmIzM0O2ImIzM0OzowLjAsJiMzNDthJiMzNDs6MC4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC43OTkxNDk2OTIwNTg1NjMyM30seyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MS4wLCYjMzQ7ZyYjMzQ7OjEuMCwmIzM0O2ImIzM0OzoxLjAsJiMzNDthJiMzNDs6MS4wfSwmIzM0O3Bvc2l0aW9uJiMzNDs6MC45NzM2MDE4MTgwODQ3MTY4MH1dLCYjMzQ7dHJhbnNmb3JtJiMzNDs6eyYjMzQ7bTAwJiMzNDs6MTMuOTAwOTUzMjkyODQ2NjgwLCYjMzQ7bTAxJiMzNDs6LTEzLjkwMDk1MzI5Mjg0NjY4MCwmIzM0O20wMiYjMzQ7OjEwLjg3OTY3Nzc3MjUyMTk3MywmIzM0O20xMCYjMzQ7OjEzLjkwMDk1NDI0NjUyMDk5NiwmIzM0O20xMSYjMzQ7OjEzLjkwMDk1NDI0NjUyMDk5NiwmIzM0O20xMiYjMzQ7Oi0zLjAyMTY2NzAwMzYzMTU5MTh9LCYjMzQ7b3BhY2l0eSYjMzQ7OjAuNTAsJiMzNDtibGVuZE1vZGUmIzM0OzomIzM0O05PUk1BTCYjMzQ7LCYjMzQ7c3RvcHNWYXImIzM0OzpbeyYjMzQ7Y29sb3ImIzM0Ozp7JiMzNDtyJiMzNDs6MC4wLCYjMzQ7ZyYjMzQ7OjAuMCwmIzM0O2ImIzM0OzowLjAsJiMzNDthJiMzNDs6MC44Mjk5OTk5ODMzMTA2OTk0Nn0sJiMzNDtwb3NpdGlvbiYjMzQ7OjAuNzU4NDA4NzI1MjYxNjg4MjN9LHsmIzM0O2NvbG9yJiMzNDs6eyYjMzQ7ciYjMzQ7OjAuMCwmIzM0O2cmIzM0OzowLjAsJiMzNDtiJiMzNDs6MC4wLCYjMzQ7YSYjMzQ7OjAuMH0sJiMzNDtwb3NpdGlvbiYjMzQ7OjAuNzk5MTQ5NjkyMDU4NTYzMjN9LHsmIzM0O2NvbG9yJiMzNDs6eyYjMzQ7ciYjMzQ7OjEuMCwmIzM0O2cmIzM0OzoxLjAsJiMzNDtiJiMzNDs6MS4wLCYjMzQ7YSYjMzQ7OjEuMH0sJiMzNDtwb3NpdGlvbiYjMzQ7OjAuOTczNjAxODE4MDg0NzE2ODB9XSwmIzM0O3Zpc2libGUmIzM0Ozp0cnVlfSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJwYWludDBfYW5ndWxhcl8yOTg4XzMyMzI5X2NsaXBfcGF0aCI+PHBhdGggZD0iTTMuMTg2MjcgMTguNTcyMkMtMS4wNjIwOSAxNC4zMjM2IC0xLjA2MjA5IDcuNDM1MDIgMy4xODYyNyAzLjE4NjM5QzcuNDM0ODggLTEuMDYyMjIgMTQuMzIzMyAtMS4wNjIwNSAxOC41NzIxIDMuMTg2MzlMMTcuMDg3OCA0LjY3MDdDMTMuNjU5MSAxLjI0MjM2IDguMTAwMTEgMS4yNDMyMiA0LjY3MTYxIDQuNjcxNzNDMS4yNDMzNSA4LjEwMDI2IDEuMjQzMzUgMTMuNjU4MyA0LjY3MTYxIDE3LjA4NjhDOC4xMDAxMSAyMC41MTUzIDEzLjY1OTEgMjAuNTE2MiAxNy4wODc4IDE3LjA4NzlMMTguNTcyMSAxOC41NzIyQzE0LjMyMzMgMjIuODIwNiA3LjQzNDg4IDIyLjgyMDggMy4xODYyNyAxOC41NzIyWiIvPjwvY2xpcFBhdGg+PC9kZWZzPgo8L3N2Zz4K) 50%/100% 100% no-repeat;width:18.572px;height:21.759px;position:absolute;top:1.121px;left:1.12px}@keyframes gl5Xjq_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.gl5Xjq_spinner{animation:none}}";
|
|
1725
|
+
const tagId$1 = "@deepseek-ai/dsh-client-ui-settings-account/PlatformOverlay.module.css";
|
|
1726
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
1727
|
+
const tag = document.createElement("style");
|
|
1728
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-settings-account";
|
|
1729
|
+
tag.dataset.pluginCss = tagId$1;
|
|
1730
|
+
tag.textContent = css$1;
|
|
1731
|
+
document.head.appendChild(tag);
|
|
1732
|
+
}
|
|
1733
|
+
var PlatformOverlay_module_css_default = {
|
|
1734
|
+
"back": "gl5Xjq_back",
|
|
1735
|
+
"controls": "gl5Xjq_controls",
|
|
1736
|
+
"failure": "gl5Xjq_failure",
|
|
1737
|
+
"header": "gl5Xjq_header",
|
|
1738
|
+
"overlay": "gl5Xjq_overlay",
|
|
1739
|
+
"retry": "gl5Xjq_retry",
|
|
1740
|
+
"spin": "gl5Xjq_spin",
|
|
1741
|
+
"spinner": "gl5Xjq_spinner",
|
|
1742
|
+
"status": "gl5Xjq_status",
|
|
1743
|
+
"trafficLights": "gl5Xjq_trafficLights",
|
|
1744
|
+
"viewport": "gl5Xjq_viewport"
|
|
1745
|
+
};
|
|
1746
|
+
//#endregion
|
|
1747
|
+
//#region lib/types/client/PlatformOverlay.js
|
|
1748
|
+
/** Desktop Platform viewport; the native child owns remote content and credentials. */
|
|
1749
|
+
/** @param props - native commands, localized copy, and return action. @returns full-window Platform container. */
|
|
1750
|
+
function PlatformOverlay({ bridge, page, backLabel, loadingLabel, failureLabel, retryLabel, onClose }) {
|
|
1751
|
+
const layer = (0, react.useRef)(null);
|
|
1752
|
+
const back = (0, react.useRef)(null);
|
|
1753
|
+
const viewport = (0, react.useRef)(null);
|
|
1754
|
+
const [attempt, setAttempt] = (0, react.useState)(0);
|
|
1755
|
+
const [status, setStatus] = (0, react.useState)("loading");
|
|
1756
|
+
(0, react.useEffect)(() => {
|
|
1757
|
+
const element = viewport.current;
|
|
1758
|
+
const previousFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
1759
|
+
const background = Array.from(document.body.children).filter((element) => element instanceof HTMLElement && element !== layer.current).map((element) => ({
|
|
1760
|
+
element,
|
|
1761
|
+
inert: element.inert
|
|
1762
|
+
}));
|
|
1763
|
+
for (const { element } of background) element.inert = true;
|
|
1764
|
+
back.current?.focus();
|
|
1765
|
+
let closed = false;
|
|
1766
|
+
const bounds = () => {
|
|
1767
|
+
const rect = element.getBoundingClientRect();
|
|
1768
|
+
return {
|
|
1769
|
+
x: rect.x,
|
|
1770
|
+
y: rect.y,
|
|
1771
|
+
width: rect.width,
|
|
1772
|
+
height: rect.height
|
|
1773
|
+
};
|
|
1774
|
+
};
|
|
1775
|
+
const fail = () => {
|
|
1776
|
+
if (!closed) setStatus("failed");
|
|
1777
|
+
};
|
|
1778
|
+
setStatus("loading");
|
|
1779
|
+
bridge.open(page, bounds()).then(() => {
|
|
1780
|
+
if (!closed) setStatus("loaded");
|
|
1781
|
+
}, fail);
|
|
1782
|
+
const observer = new ResizeObserver(() => {
|
|
1783
|
+
bridge.setBounds(bounds()).catch(fail);
|
|
1784
|
+
});
|
|
1785
|
+
observer.observe(element);
|
|
1786
|
+
return () => {
|
|
1787
|
+
closed = true;
|
|
1788
|
+
observer.disconnect();
|
|
1789
|
+
for (const { element, inert } of background) element.inert = inert;
|
|
1790
|
+
if (previousFocus?.isConnected) previousFocus.focus();
|
|
1791
|
+
bridge.close().catch(() => {});
|
|
1792
|
+
};
|
|
1793
|
+
}, [
|
|
1794
|
+
bridge,
|
|
1795
|
+
page,
|
|
1796
|
+
attempt
|
|
1797
|
+
]);
|
|
1798
|
+
return (0, react_dom.createPortal)((0, react_jsx_runtime.jsxs)("div", {
|
|
1799
|
+
ref: layer,
|
|
1800
|
+
className: PlatformOverlay_module_css_default.overlay,
|
|
1801
|
+
role: "dialog",
|
|
1802
|
+
"aria-modal": "true",
|
|
1803
|
+
"aria-label": backLabel,
|
|
1804
|
+
children: [(0, react_jsx_runtime.jsx)("header", {
|
|
1805
|
+
className: PlatformOverlay_module_css_default.header,
|
|
1806
|
+
children: (0, react_jsx_runtime.jsxs)("div", {
|
|
1807
|
+
className: PlatformOverlay_module_css_default.controls,
|
|
1808
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1809
|
+
className: PlatformOverlay_module_css_default.trafficLights,
|
|
1810
|
+
"aria-hidden": "true"
|
|
1811
|
+
}), (0, react_jsx_runtime.jsxs)("button", {
|
|
1812
|
+
ref: back,
|
|
1813
|
+
className: PlatformOverlay_module_css_default.back,
|
|
1814
|
+
onClick: onClose,
|
|
1815
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronLeftOutlineRegular, { size: 16 }), backLabel]
|
|
1816
|
+
})]
|
|
1817
|
+
})
|
|
1818
|
+
}), (0, react_jsx_runtime.jsx)("div", {
|
|
1819
|
+
ref: viewport,
|
|
1820
|
+
className: PlatformOverlay_module_css_default.viewport,
|
|
1821
|
+
children: status !== "loaded" && (0, react_jsx_runtime.jsx)("div", {
|
|
1822
|
+
className: PlatformOverlay_module_css_default.status,
|
|
1823
|
+
role: "status",
|
|
1824
|
+
"aria-label": status === "loading" ? loadingLabel : void 0,
|
|
1825
|
+
children: status === "failed" ? (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1826
|
+
className: PlatformOverlay_module_css_default.failure,
|
|
1827
|
+
children: failureLabel
|
|
1828
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
1829
|
+
variant: "outline",
|
|
1830
|
+
className: PlatformOverlay_module_css_default.retry,
|
|
1831
|
+
onClick: () => {
|
|
1832
|
+
setAttempt((value) => value + 1);
|
|
1833
|
+
},
|
|
1834
|
+
children: retryLabel
|
|
1835
|
+
})] }) : (0, react_jsx_runtime.jsx)("span", {
|
|
1836
|
+
className: PlatformOverlay_module_css_default.spinner,
|
|
1837
|
+
"aria-hidden": "true"
|
|
1838
|
+
})
|
|
1839
|
+
})
|
|
1840
|
+
})]
|
|
1841
|
+
}), document.body);
|
|
1842
|
+
}
|
|
1843
|
+
//#endregion
|
|
1844
|
+
//#region lib/types/client/formatBalance.js
|
|
1845
|
+
/** Platform Web currency formatting for account balances; source amounts retain decimal precision. */
|
|
1846
|
+
/**
|
|
1847
|
+
* Format a balance using Platform Web's two-decimal and sub-cent display rules.
|
|
1848
|
+
* @param amount - validated decimal balance string.
|
|
1849
|
+
* @param symbol - currency symbol.
|
|
1850
|
+
* @returns signed currency text with grouped digits.
|
|
1851
|
+
*/
|
|
1852
|
+
function formatBalance(amount, symbol) {
|
|
1853
|
+
const value = new Big(amount);
|
|
1854
|
+
if (value.eq(0)) return `${symbol}0.00`;
|
|
1855
|
+
if (value.lt(0)) return `-${symbol}${value.gt(-.01) ? "0.01" : addCommas(value.abs().toFixed(2))}`;
|
|
1856
|
+
if (value.lt("0.01")) return `<${symbol}0.01`;
|
|
1857
|
+
return `${symbol}${addCommas(value.round(2, Big.roundDown).toFixed(2))}`;
|
|
1858
|
+
}
|
|
1859
|
+
function addCommas(value) {
|
|
1860
|
+
const [integer, fraction] = value.split(".");
|
|
1861
|
+
return `${Number(integer).toLocaleString()}.${fraction}`;
|
|
1862
|
+
}
|
|
1863
|
+
//#endregion
|
|
1864
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-settings-account/src/client/AccountSection.module.css.mjs
|
|
1865
|
+
const css = ".W5OVCG_section{color:var(--dsw-alias-label-primary);flex-direction:column;gap:16px;padding:8px 0;font-size:13px;line-height:22px;display:flex}.W5OVCG_card,.W5OVCG_balanceCard{border:.5px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-module-platform);border-radius:10px;padding:12px 16px}.W5OVCG_card,.W5OVCG_row{justify-content:space-between;align-items:center;gap:16px;display:flex}.W5OVCG_identity{align-items:center;gap:10px;min-width:0;min-height:44px;display:flex}.W5OVCG_avatar{width:32px;height:32px;color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-bg-skeleton);border-radius:16px;flex:none;justify-content:center;align-items:center;display:flex}.W5OVCG_identityCopy{flex-direction:column;min-width:0;display:flex}.W5OVCG_name{font-size:14px;font-weight:500}.W5OVCG_status,.W5OVCG_secondary,.W5OVCG_unavailable{color:var(--dsw-alias-label-tertiary)}.W5OVCG_balanceCard{flex-direction:column;gap:8px;display:flex}.W5OVCG_row{box-sizing:border-box;min-height:40px;padding:6px 0}.W5OVCG_divider{border-top:.5px solid var(--dsw-alias-border-l2)}.W5OVCG_links,.W5OVCG_actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;display:flex}.W5OVCG_button.W5OVCG_button,.W5OVCG_linkButton{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l2);white-space:nowrap;border-radius:12px;flex:none;justify-content:center;align-items:center;min-width:58px;height:32px;padding:0 12px;font-size:13px;line-height:20px;text-decoration:none;display:inline-flex}.W5OVCG_linkButton{color:var(--dsw-alias-label-primary)}.W5OVCG_linkButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.W5OVCG_linkButton:focus-visible{outline:2px solid var(--dsw-alias-button-primary-fill);outline-offset:2px}.W5OVCG_primary{color:var(--dsw-alias-label-primary-foreground);background:var(--dsw-alias-button-primary-fill);border-color:#0000;font-weight:500}.W5OVCG_primary:hover{background:var(--dsw-alias-button-primary-hover)}.W5OVCG_signedOut{box-sizing:border-box;min-height:calc(100% + 16px);color:var(--dsw-alias-label-primary);flex-direction:column;justify-content:center;align-items:center;margin-bottom:-16px;padding-bottom:8px;display:flex}.W5OVCG_signedOutContent{flex-direction:column;justify-content:center;align-items:center;gap:20px;width:100%;min-height:60px;padding:12px 0;display:flex}.W5OVCG_signedOutCopy{text-align:center;flex-direction:column;gap:4px;width:100%;display:flex}.W5OVCG_signedOutTitle{font-size:14px;line-height:22px}.W5OVCG_signedOutDescription{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.W5OVCG_signInButton.W5OVCG_signInButton{border-radius:12px;min-width:72px;height:36px;padding:0 14px;font-size:14px;font-weight:500;line-height:22px}.W5OVCG_amount{flex-wrap:wrap;justify-content:flex-end;font-size:18px;font-weight:510;line-height:28px;display:flex}.W5OVCG_amount>span+span:before{content:\" + \";white-space:pre}.W5OVCG_accountInfo{color:var(--dsw-alias-label-primary);flex:none;align-items:center;gap:2px;font-size:13px;line-height:22px;text-decoration:underline;display:inline-flex}";
|
|
1866
|
+
const tagId = "@deepseek-ai/dsh-client-ui-settings-account/AccountSection.module.css";
|
|
1867
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
1868
|
+
const tag = document.createElement("style");
|
|
1869
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-settings-account";
|
|
1870
|
+
tag.dataset.pluginCss = tagId;
|
|
1871
|
+
tag.textContent = css;
|
|
1872
|
+
document.head.appendChild(tag);
|
|
1873
|
+
}
|
|
1874
|
+
var AccountSection_module_css_default = {
|
|
1875
|
+
"accountInfo": "W5OVCG_accountInfo",
|
|
1876
|
+
"actions": "W5OVCG_actions",
|
|
1877
|
+
"amount": "W5OVCG_amount",
|
|
1878
|
+
"avatar": "W5OVCG_avatar",
|
|
1879
|
+
"balanceCard": "W5OVCG_balanceCard",
|
|
1880
|
+
"button": "W5OVCG_button",
|
|
1881
|
+
"card": "W5OVCG_card",
|
|
1882
|
+
"divider": "W5OVCG_divider",
|
|
1883
|
+
"identity": "W5OVCG_identity",
|
|
1884
|
+
"identityCopy": "W5OVCG_identityCopy",
|
|
1885
|
+
"linkButton": "W5OVCG_linkButton",
|
|
1886
|
+
"links": "W5OVCG_links",
|
|
1887
|
+
"name": "W5OVCG_name",
|
|
1888
|
+
"primary": "W5OVCG_primary",
|
|
1889
|
+
"row": "W5OVCG_row",
|
|
1890
|
+
"secondary": "W5OVCG_secondary",
|
|
1891
|
+
"section": "W5OVCG_section",
|
|
1892
|
+
"signInButton": "W5OVCG_signInButton",
|
|
1893
|
+
"signedOut": "W5OVCG_signedOut",
|
|
1894
|
+
"signedOutContent": "W5OVCG_signedOutContent",
|
|
1895
|
+
"signedOutCopy": "W5OVCG_signedOutCopy",
|
|
1896
|
+
"signedOutDescription": "W5OVCG_signedOutDescription",
|
|
1897
|
+
"signedOutTitle": "W5OVCG_signedOutTitle",
|
|
1898
|
+
"status": "W5OVCG_status",
|
|
1899
|
+
"unavailable": "W5OVCG_unavailable"
|
|
1900
|
+
};
|
|
1901
|
+
//#endregion
|
|
1902
|
+
//#region lib/types/client/AccountSection.js
|
|
1903
|
+
/** Account settings renders safe Host state and explicit login actions. */
|
|
1904
|
+
/** @param props - localized actions and account subscription. @returns account settings UI. */
|
|
1905
|
+
function AccountSection({ t, useAccount, start, cancel, refresh, platform }) {
|
|
1906
|
+
const { view: state, details, failed: streamFailed } = useAccount((value) => value);
|
|
1907
|
+
const [platformPage, setPlatformPage] = (0, react.useState)();
|
|
1908
|
+
const [failed, setFailed] = (0, react.useState)(false);
|
|
1909
|
+
const [busy, setBusy] = (0, react.useState)(false);
|
|
1910
|
+
(0, react.useEffect)(() => {
|
|
1911
|
+
refresh();
|
|
1912
|
+
}, [refresh]);
|
|
1913
|
+
const profile = details?.profile?.status === "ready" ? details.profile.value : void 0;
|
|
1914
|
+
const wallets = details?.balance?.status === "ready" ? details.balance.value : void 0;
|
|
1915
|
+
const bonusWallets = details?.balance?.status === "ready" ? details.balance.bonusWallets.filter((wallet) => new Big(wallet.balance).gt(0)) : [];
|
|
1916
|
+
const attempt = state?.attempt;
|
|
1917
|
+
const active = attempt !== null && attempt !== void 0 && [
|
|
1918
|
+
"initializing",
|
|
1919
|
+
"waiting-browser",
|
|
1920
|
+
"exchanging",
|
|
1921
|
+
"committing"
|
|
1922
|
+
].includes(attempt.phase);
|
|
1923
|
+
const signedIn = state?.status === "credential-stored";
|
|
1924
|
+
(0, react.useEffect)(() => {
|
|
1925
|
+
if (!signedIn) setPlatformPage(void 0);
|
|
1926
|
+
}, [signedIn]);
|
|
1927
|
+
const run = async (action) => {
|
|
1928
|
+
setBusy(true);
|
|
1929
|
+
setFailed(false);
|
|
1930
|
+
try {
|
|
1931
|
+
await action();
|
|
1932
|
+
} catch {
|
|
1933
|
+
setFailed(true);
|
|
1934
|
+
} finally {
|
|
1935
|
+
setBusy(false);
|
|
1936
|
+
}
|
|
1937
|
+
};
|
|
1938
|
+
const status = failed || streamFailed || attempt?.phase === "failed" ? t("failed") : attempt?.phase === "expired" ? t("expired") : active ? t(attempt.phase === "initializing" ? "initializing" : attempt.phase === "waiting-browser" ? "waiting" : "completing") : signedIn ? profile?.contact ?? t(details?.profile === void 0 ? "loading" : "profileUnavailable") : t("signInDescription");
|
|
1939
|
+
if (!signedIn && !active) return (0, react_jsx_runtime.jsx)("section", {
|
|
1940
|
+
className: AccountSection_module_css_default.signedOut,
|
|
1941
|
+
"aria-label": t("nav"),
|
|
1942
|
+
children: (0, react_jsx_runtime.jsxs)("div", {
|
|
1943
|
+
className: AccountSection_module_css_default.signedOutContent,
|
|
1944
|
+
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
1945
|
+
className: AccountSection_module_css_default.signedOutCopy,
|
|
1946
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1947
|
+
className: AccountSection_module_css_default.signedOutTitle,
|
|
1948
|
+
children: t("settingsSignedOutTitle")
|
|
1949
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
1950
|
+
className: AccountSection_module_css_default.signedOutDescription,
|
|
1951
|
+
role: "status",
|
|
1952
|
+
children: failed || streamFailed ? t("failed") : t("settingsSignedOutDescription")
|
|
1953
|
+
})]
|
|
1954
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
1955
|
+
variant: "primary",
|
|
1956
|
+
className: AccountSection_module_css_default.signInButton,
|
|
1957
|
+
disabled: busy || state === void 0,
|
|
1958
|
+
onClick: () => {
|
|
1959
|
+
run(start);
|
|
1960
|
+
},
|
|
1961
|
+
children: t("signIn")
|
|
1962
|
+
})]
|
|
1963
|
+
})
|
|
1964
|
+
});
|
|
1965
|
+
return (0, react_jsx_runtime.jsxs)("section", {
|
|
1966
|
+
className: AccountSection_module_css_default.section,
|
|
1967
|
+
"aria-label": t("nav"),
|
|
1968
|
+
children: [
|
|
1969
|
+
platformPage !== void 0 && platform !== void 0 && signedIn && (0, react_jsx_runtime.jsx)(PlatformOverlay, {
|
|
1970
|
+
bridge: platform,
|
|
1971
|
+
page: platformPage,
|
|
1972
|
+
backLabel: t("backToHarness"),
|
|
1973
|
+
loadingLabel: t("loading"),
|
|
1974
|
+
failureLabel: t("platformFailed"),
|
|
1975
|
+
retryLabel: t("platformRetry"),
|
|
1976
|
+
onClose: () => {
|
|
1977
|
+
setPlatformPage(void 0);
|
|
1978
|
+
}
|
|
1979
|
+
}),
|
|
1980
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
1981
|
+
className: AccountSection_module_css_default.card,
|
|
1982
|
+
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
1983
|
+
className: AccountSection_module_css_default.identity,
|
|
1984
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1985
|
+
className: AccountSection_module_css_default.avatar,
|
|
1986
|
+
children: (0, react_jsx_runtime.jsx)(AccountAvatar, { url: signedIn ? profile?.avatarUrl : null })
|
|
1987
|
+
}), (0, react_jsx_runtime.jsxs)("div", {
|
|
1988
|
+
className: AccountSection_module_css_default.identityCopy,
|
|
1989
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1990
|
+
className: AccountSection_module_css_default.name,
|
|
1991
|
+
children: signedIn ? profile?.name ?? t("signedIn") : t("signedOut")
|
|
1992
|
+
}), (0, react_jsx_runtime.jsx)("span", {
|
|
1993
|
+
className: AccountSection_module_css_default.status,
|
|
1994
|
+
role: "status",
|
|
1995
|
+
children: status
|
|
1996
|
+
})]
|
|
1997
|
+
})]
|
|
1998
|
+
}), signedIn && (0, react_jsx_runtime.jsxs)("a", {
|
|
1999
|
+
className: AccountSection_module_css_default.accountInfo,
|
|
2000
|
+
href: "https://platform.deepseek.com",
|
|
2001
|
+
target: "_blank",
|
|
2002
|
+
rel: "noopener noreferrer",
|
|
2003
|
+
children: [t("accountInfo"), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconRightUpOutlineRegular, { size: 12 })]
|
|
2004
|
+
})]
|
|
2005
|
+
}),
|
|
2006
|
+
active && (0, react_jsx_runtime.jsxs)("div", {
|
|
2007
|
+
className: AccountSection_module_css_default.actions,
|
|
2008
|
+
children: [attempt.authorizeUrl && (0, react_jsx_runtime.jsx)("a", {
|
|
2009
|
+
className: AccountSection_module_css_default.linkButton,
|
|
2010
|
+
href: attempt.authorizeUrl,
|
|
2011
|
+
target: "_blank",
|
|
2012
|
+
rel: "noreferrer",
|
|
2013
|
+
children: t("open")
|
|
2014
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
2015
|
+
variant: "outline",
|
|
2016
|
+
className: AccountSection_module_css_default.button,
|
|
2017
|
+
disabled: busy || attempt.phase === "committing",
|
|
2018
|
+
onClick: () => {
|
|
2019
|
+
run(() => cancel(attempt.id));
|
|
2020
|
+
},
|
|
2021
|
+
children: t("cancel")
|
|
2022
|
+
})]
|
|
2023
|
+
}),
|
|
2024
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
2025
|
+
className: AccountSection_module_css_default.balanceCard,
|
|
2026
|
+
children: [
|
|
2027
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
2028
|
+
className: AccountSection_module_css_default.row,
|
|
2029
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: t("balance") }), signedIn && wallets !== void 0 && wallets.length > 0 ? (0, react_jsx_runtime.jsx)("span", {
|
|
2030
|
+
className: AccountSection_module_css_default.amount,
|
|
2031
|
+
children: wallets.map((wallet) => (0, react_jsx_runtime.jsx)("span", { children: formatBalance(wallet.balance, wallet.currency === "CNY" ? "¥" : "$") }, wallet.currency))
|
|
2032
|
+
}) : (0, react_jsx_runtime.jsx)("span", {
|
|
2033
|
+
className: AccountSection_module_css_default.unavailable,
|
|
2034
|
+
children: t(!signedIn ? "balanceSignedOut" : details?.balance === void 0 ? "loading" : "balanceUnavailable")
|
|
2035
|
+
})]
|
|
2036
|
+
}),
|
|
2037
|
+
signedIn && bonusWallets.length > 0 && (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)("div", { className: AccountSection_module_css_default.divider }), (0, react_jsx_runtime.jsxs)("div", {
|
|
2038
|
+
className: AccountSection_module_css_default.row,
|
|
2039
|
+
children: [(0, react_jsx_runtime.jsx)("span", { children: t("bonusBalance") }), (0, react_jsx_runtime.jsx)("span", {
|
|
2040
|
+
className: AccountSection_module_css_default.amount,
|
|
2041
|
+
children: bonusWallets.map((wallet) => (0, react_jsx_runtime.jsx)("span", { children: formatBalance(wallet.balance, wallet.currency === "CNY" ? "¥" : "$") }, wallet.currency))
|
|
2042
|
+
})]
|
|
2043
|
+
})] }),
|
|
2044
|
+
(0, react_jsx_runtime.jsx)("div", { className: AccountSection_module_css_default.divider }),
|
|
2045
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
2046
|
+
className: AccountSection_module_css_default.row,
|
|
2047
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
2048
|
+
className: AccountSection_module_css_default.secondary,
|
|
2049
|
+
children: t("more")
|
|
2050
|
+
}), (0, react_jsx_runtime.jsxs)("div", {
|
|
2051
|
+
className: AccountSection_module_css_default.links,
|
|
2052
|
+
children: [(0, react_jsx_runtime.jsx)("a", {
|
|
2053
|
+
className: AccountSection_module_css_default.linkButton,
|
|
2054
|
+
href: state?.links.usageUrl,
|
|
2055
|
+
"aria-disabled": state === void 0,
|
|
2056
|
+
target: "_blank",
|
|
2057
|
+
rel: "noreferrer",
|
|
2058
|
+
onClick: (event) => {
|
|
2059
|
+
if (platform !== void 0 && signedIn) {
|
|
2060
|
+
event.preventDefault();
|
|
2061
|
+
setPlatformPage("usage");
|
|
2062
|
+
}
|
|
2063
|
+
},
|
|
2064
|
+
children: t("usage")
|
|
2065
|
+
}), (0, react_jsx_runtime.jsx)("a", {
|
|
2066
|
+
className: `${AccountSection_module_css_default.linkButton} ${AccountSection_module_css_default.primary}`,
|
|
2067
|
+
href: state?.links.topUpUrl,
|
|
2068
|
+
"aria-disabled": state === void 0,
|
|
2069
|
+
target: "_blank",
|
|
2070
|
+
rel: "noreferrer",
|
|
2071
|
+
onClick: (event) => {
|
|
2072
|
+
if (platform !== void 0 && signedIn) {
|
|
2073
|
+
event.preventDefault();
|
|
2074
|
+
setPlatformPage("top-up");
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2077
|
+
children: t("topUp")
|
|
2078
|
+
})]
|
|
2079
|
+
})]
|
|
2080
|
+
})
|
|
2081
|
+
]
|
|
2082
|
+
})
|
|
2083
|
+
]
|
|
2084
|
+
});
|
|
2085
|
+
}
|
|
2086
|
+
//#endregion
|
|
2087
|
+
//#region lib/types/client/locales.js
|
|
2088
|
+
/** Account settings copy, owned by the account feature. */
|
|
2089
|
+
const en = {
|
|
2090
|
+
close: "Close",
|
|
2091
|
+
addApiKey: "Add API Key",
|
|
2092
|
+
retry: "Sign in again",
|
|
2093
|
+
loginTitle: "Start creating",
|
|
2094
|
+
loginDescription: "Sign in to create, edit, and share your design projects. Everything is saved locally.",
|
|
2095
|
+
browserTitle: "Waiting for sign in",
|
|
2096
|
+
browserPrompt: "Page did not open automatically? ",
|
|
2097
|
+
copyLink: "Copy sign-in link",
|
|
2098
|
+
copiedLink: "Link copied",
|
|
2099
|
+
copyFailed: "Copy failed",
|
|
2100
|
+
browserDescription: ", then open it in your browser to finish signing in.",
|
|
2101
|
+
timeoutTitle: "Sign in timed out",
|
|
2102
|
+
timeoutDescription: "Sign in again to continue.",
|
|
2103
|
+
failureTitle: "Could not sign in",
|
|
2104
|
+
platformFailed: "Could not complete the operation. Try again.",
|
|
2105
|
+
platformRetry: "Retry",
|
|
2106
|
+
loading: "Loading…",
|
|
2107
|
+
backToHarness: "Back to DeepSeek Harness",
|
|
2108
|
+
settings: "Settings",
|
|
2109
|
+
contactUs: "Contact us",
|
|
2110
|
+
menu: "Account menu",
|
|
2111
|
+
nav: "Account",
|
|
2112
|
+
signedIn: "Signed in to DeepSeek",
|
|
2113
|
+
signedOut: "Not signed in",
|
|
2114
|
+
signIn: "Sign in",
|
|
2115
|
+
signOut: "Sign out",
|
|
2116
|
+
cancel: "Cancel",
|
|
2117
|
+
open: "Open browser",
|
|
2118
|
+
initializing: "Starting sign in…",
|
|
2119
|
+
waiting: "Continue in your browser",
|
|
2120
|
+
completing: "Completing sign in…",
|
|
2121
|
+
expired: "Sign in expired. Try again.",
|
|
2122
|
+
failed: "Could not complete the operation. Try again.",
|
|
2123
|
+
settingsSignedOutTitle: "You are not signed in to DeepSeek Harness",
|
|
2124
|
+
settingsSignedOutDescription: "Sign in to DeepSeek Harness to get your dedicated API Key",
|
|
2125
|
+
signInDescription: "Use your DeepSeek account to get started.",
|
|
2126
|
+
profileUnavailable: "Account details are not available yet.",
|
|
2127
|
+
balance: "Recharge balance",
|
|
2128
|
+
bonusBalance: "Bonus balance",
|
|
2129
|
+
balanceUnavailable: "View on Platform",
|
|
2130
|
+
balanceSignedOut: "Sign in to view",
|
|
2131
|
+
accountInfo: "More account information",
|
|
2132
|
+
more: "More",
|
|
2133
|
+
usage: "View usage",
|
|
2134
|
+
topUp: "Top up"
|
|
2135
|
+
};
|
|
2136
|
+
/** Chinese account settings copy. */
|
|
2137
|
+
const zh = {
|
|
2138
|
+
close: "关闭",
|
|
2139
|
+
addApiKey: "添加 API Key",
|
|
2140
|
+
retry: "重新登录",
|
|
2141
|
+
loginTitle: "开始你的创作",
|
|
2142
|
+
loginDescription: "登录后即可创建、编辑和分享你的设计项目,所有内容在本地保存。",
|
|
2143
|
+
browserTitle: "等待登录",
|
|
2144
|
+
browserPrompt: "没有自动打开新页面?",
|
|
2145
|
+
copyLink: "复制登录链接",
|
|
2146
|
+
copiedLink: "链接已复制",
|
|
2147
|
+
copyFailed: "复制失败",
|
|
2148
|
+
browserDescription: ",手动打开登录页完成登录。",
|
|
2149
|
+
timeoutTitle: "登录已超时",
|
|
2150
|
+
timeoutDescription: "请重新登录后继续操作。",
|
|
2151
|
+
failureTitle: "登录失败",
|
|
2152
|
+
platformFailed: "操作未完成,请重试",
|
|
2153
|
+
platformRetry: "重试",
|
|
2154
|
+
loading: "加载中…",
|
|
2155
|
+
backToHarness: "返回 DeepSeek Harness",
|
|
2156
|
+
settings: "设置",
|
|
2157
|
+
contactUs: "联系我们",
|
|
2158
|
+
menu: "账号菜单",
|
|
2159
|
+
nav: "账号与余额",
|
|
2160
|
+
signedIn: "已登录 DeepSeek",
|
|
2161
|
+
signedOut: "尚未登录",
|
|
2162
|
+
signIn: "登录",
|
|
2163
|
+
signOut: "退出登录",
|
|
2164
|
+
cancel: "取消",
|
|
2165
|
+
open: "打开浏览器",
|
|
2166
|
+
initializing: "正在发起登录…",
|
|
2167
|
+
waiting: "请在浏览器中继续",
|
|
2168
|
+
completing: "正在完成登录…",
|
|
2169
|
+
expired: "登录已过期,请重试。",
|
|
2170
|
+
failed: "操作未完成,请重试。",
|
|
2171
|
+
settingsSignedOutTitle: "当前未登录 DeepSeek Harness 账号",
|
|
2172
|
+
settingsSignedOutDescription: "登录 DeepSeek Harness 账号获取专属 API Key",
|
|
2173
|
+
signInDescription: "登录 DeepSeek 账号以开始使用",
|
|
2174
|
+
profileUnavailable: "账号资料暂不可用",
|
|
2175
|
+
balance: "充值余额",
|
|
2176
|
+
bonusBalance: "赠金余额",
|
|
2177
|
+
balanceUnavailable: "前往开放平台查看",
|
|
2178
|
+
balanceSignedOut: "登录后查看",
|
|
2179
|
+
accountInfo: "更多账号信息",
|
|
2180
|
+
more: "更多",
|
|
2181
|
+
usage: "查询用量",
|
|
2182
|
+
topUp: "充值"
|
|
2183
|
+
};
|
|
2184
|
+
//#endregion
|
|
2185
|
+
//#region lib/types/client/index.js
|
|
2186
|
+
/** Services required by account settings. */
|
|
2187
|
+
const inject = [
|
|
2188
|
+
"slots",
|
|
2189
|
+
"locale",
|
|
2190
|
+
"remote",
|
|
2191
|
+
"remote.account"
|
|
2192
|
+
];
|
|
2193
|
+
/** Register account UI only in the Desktop renderer. @param ctx - client plugin context. */
|
|
2194
|
+
function apply(ctx) {
|
|
2195
|
+
if (!("dshDesktop" in globalThis)) return;
|
|
2196
|
+
ctx.effect(() => ctx.locale.register("settings.account", {
|
|
2197
|
+
en,
|
|
2198
|
+
zh
|
|
2199
|
+
}), "account: dictionaries");
|
|
2200
|
+
const t = ctx.locale.bind("settings.account");
|
|
2201
|
+
const config = Config(globalThis["__DSH_CONTACT_CONFIG__"] ?? {});
|
|
2202
|
+
let snapshot = {
|
|
2203
|
+
view: void 0,
|
|
2204
|
+
details: void 0,
|
|
2205
|
+
failed: false,
|
|
2206
|
+
loginVisible: false
|
|
2207
|
+
};
|
|
2208
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
2209
|
+
const publish = (value) => {
|
|
2210
|
+
snapshot = value;
|
|
2211
|
+
for (const listener of listeners) listener();
|
|
2212
|
+
};
|
|
2213
|
+
let revision = 0;
|
|
2214
|
+
let refreshing;
|
|
2215
|
+
const refresh = () => {
|
|
2216
|
+
if (snapshot.view?.status !== "credential-stored") return Promise.resolve();
|
|
2217
|
+
if (refreshing !== void 0) return refreshing;
|
|
2218
|
+
const generation = revision;
|
|
2219
|
+
const read = async (field, query) => {
|
|
2220
|
+
let value;
|
|
2221
|
+
try {
|
|
2222
|
+
value = await query();
|
|
2223
|
+
} catch {
|
|
2224
|
+
value = { status: "failed" };
|
|
2225
|
+
}
|
|
2226
|
+
if (generation === revision && value !== null) publish({
|
|
2227
|
+
...snapshot,
|
|
2228
|
+
details: {
|
|
2229
|
+
...snapshot.details,
|
|
2230
|
+
[field]: value
|
|
2231
|
+
}
|
|
2232
|
+
});
|
|
2233
|
+
};
|
|
2234
|
+
const request = Promise.all([read("profile", async () => {
|
|
2235
|
+
const result = await ctx.remote.account.getProfile();
|
|
2236
|
+
if (!result.ok) throw new Error("account profile failed");
|
|
2237
|
+
return result.value;
|
|
2238
|
+
}), read("balance", async () => {
|
|
2239
|
+
const result = await ctx.remote.account.getBalance();
|
|
2240
|
+
if (!result.ok) throw new Error("account balance failed");
|
|
2241
|
+
return result.value;
|
|
2242
|
+
})]).then(() => void 0);
|
|
2243
|
+
refreshing = request;
|
|
2244
|
+
request.finally(() => {
|
|
2245
|
+
if (refreshing === request) refreshing = void 0;
|
|
2246
|
+
});
|
|
2247
|
+
return request;
|
|
2248
|
+
};
|
|
2249
|
+
ctx.effect(() => () => {
|
|
2250
|
+
revision++;
|
|
2251
|
+
}, "account: details request lifetime");
|
|
2252
|
+
const stream = ctx.remote.$stream({
|
|
2253
|
+
name: "account",
|
|
2254
|
+
open: (signal) => ctx.remote.account.watch(signal),
|
|
2255
|
+
ended: () => /* @__PURE__ */ new Error("account stream ended")
|
|
2256
|
+
});
|
|
2257
|
+
let disposed = false;
|
|
2258
|
+
ctx.effect(() => () => {
|
|
2259
|
+
disposed = true;
|
|
2260
|
+
return stream.dispose();
|
|
2261
|
+
}, "account: state stream");
|
|
2262
|
+
(async () => {
|
|
2263
|
+
for await (const frame of stream) {
|
|
2264
|
+
revision++;
|
|
2265
|
+
refreshing = void 0;
|
|
2266
|
+
publish({
|
|
2267
|
+
...snapshot,
|
|
2268
|
+
view: frame.value,
|
|
2269
|
+
details: void 0,
|
|
2270
|
+
failed: false
|
|
2271
|
+
});
|
|
2272
|
+
frame.accept();
|
|
2273
|
+
refresh();
|
|
2274
|
+
}
|
|
2275
|
+
})().catch(() => {
|
|
2276
|
+
if (!disposed) publish({
|
|
2277
|
+
...snapshot,
|
|
2278
|
+
failed: true
|
|
2279
|
+
});
|
|
2280
|
+
});
|
|
2281
|
+
const nativePlatform = globalThis.dshPlatform;
|
|
2282
|
+
const operations = {
|
|
2283
|
+
...nativePlatform === void 0 ? {} : { platform: nativePlatform },
|
|
2284
|
+
refresh,
|
|
2285
|
+
contactUs() {
|
|
2286
|
+
const profile = snapshot.details?.profile;
|
|
2287
|
+
const url = contactUrl(config, {
|
|
2288
|
+
uid: profile?.status === "ready" ? profile.value.id : null,
|
|
2289
|
+
version: "0.1.7-alpha.1",
|
|
2290
|
+
locale: ctx.locale.getSnapshot().active === "zh" ? "zh-CN" : "en",
|
|
2291
|
+
width: window.screen.width,
|
|
2292
|
+
height: window.screen.height,
|
|
2293
|
+
pixelRatio: window.devicePixelRatio
|
|
2294
|
+
});
|
|
2295
|
+
window.open(url, "_blank", "noopener,noreferrer");
|
|
2296
|
+
},
|
|
2297
|
+
showLogin(visible) {
|
|
2298
|
+
publish({
|
|
2299
|
+
...snapshot,
|
|
2300
|
+
loginVisible: visible
|
|
2301
|
+
});
|
|
2302
|
+
},
|
|
2303
|
+
setOnboarding(active) {
|
|
2304
|
+
publish({
|
|
2305
|
+
...snapshot,
|
|
2306
|
+
onboarding: active
|
|
2307
|
+
});
|
|
2308
|
+
},
|
|
2309
|
+
hooks: { account: {
|
|
2310
|
+
getSnapshot: () => snapshot,
|
|
2311
|
+
subscribe: (listener) => {
|
|
2312
|
+
listeners.add(listener);
|
|
2313
|
+
return () => {
|
|
2314
|
+
listeners.delete(listener);
|
|
2315
|
+
};
|
|
2316
|
+
}
|
|
2317
|
+
} },
|
|
2318
|
+
async start() {
|
|
2319
|
+
publish({
|
|
2320
|
+
...snapshot,
|
|
2321
|
+
loginVisible: true,
|
|
2322
|
+
loginFailed: false
|
|
2323
|
+
});
|
|
2324
|
+
const transport = globalThis.__DSH_TRANSPORT__;
|
|
2325
|
+
try {
|
|
2326
|
+
if (!(await ctx.remote.account.startSignIn(ctx.locale.getSnapshot().active, transport?.streamBaseUrl !== void 0 ? new URL(transport.streamBaseUrl).origin : window.location.origin, "desktop")).ok) throw new Error("account start failed");
|
|
2327
|
+
} catch (error) {
|
|
2328
|
+
publish({
|
|
2329
|
+
...snapshot,
|
|
2330
|
+
loginFailed: true
|
|
2331
|
+
});
|
|
2332
|
+
throw error;
|
|
2333
|
+
}
|
|
2334
|
+
},
|
|
2335
|
+
async cancel(id) {
|
|
2336
|
+
if (!(await ctx.remote.account.cancelSignIn(id)).ok) throw new Error("account cancel failed");
|
|
2337
|
+
},
|
|
2338
|
+
async signOut() {
|
|
2339
|
+
if (!(await ctx.remote.account.signOut()).ok) throw new Error("account sign-out failed");
|
|
2340
|
+
}
|
|
2341
|
+
};
|
|
2342
|
+
ctx.slots.inject("settings.models.sign-in", () => ctx.slots.register({
|
|
2343
|
+
name: "settings.models.sign-in",
|
|
2344
|
+
locale: "settings.account",
|
|
2345
|
+
inject: () => operations
|
|
2346
|
+
}, AccountOnboarding));
|
|
2347
|
+
ctx.slots.inject("settings.launcher", () => ctx.slots.register({
|
|
2348
|
+
name: "settings.launcher",
|
|
2349
|
+
locale: "settings.account",
|
|
2350
|
+
inject: () => operations
|
|
2351
|
+
}, AccountMenu));
|
|
2352
|
+
ctx.slots.inject("settings.section", () => {
|
|
2353
|
+
let unregister;
|
|
2354
|
+
const update = () => {
|
|
2355
|
+
if (snapshot.view?.status === "credential-stored") unregister ??= ctx.slots.register({
|
|
2356
|
+
name: "settings.section",
|
|
2357
|
+
id: "account",
|
|
2358
|
+
order: -10,
|
|
2359
|
+
label: () => t("nav"),
|
|
2360
|
+
locale: "settings.account",
|
|
2361
|
+
inject: () => operations
|
|
2362
|
+
}, AccountSection);
|
|
2363
|
+
else {
|
|
2364
|
+
unregister?.();
|
|
2365
|
+
unregister = void 0;
|
|
2366
|
+
}
|
|
2367
|
+
};
|
|
2368
|
+
listeners.add(update);
|
|
2369
|
+
update();
|
|
2370
|
+
return () => {
|
|
2371
|
+
listeners.delete(update);
|
|
2372
|
+
unregister?.();
|
|
2373
|
+
};
|
|
2374
|
+
});
|
|
2375
|
+
}
|
|
2376
|
+
//#endregion
|
|
2377
|
+
exports.apply = apply;
|
|
2378
|
+
exports.inject = inject;
|
|
2379
|
+
return module.exports;
|
|
2380
|
+
}
|
|
2381
|
+
});
|
|
2382
|
+
|
|
2383
|
+
//# sourceMappingURL=client.js.map
|