@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
|
@@ -55,7 +55,7 @@ window.__ModuleLoader__.load({
|
|
|
55
55
|
}
|
|
56
56
|
//#endregion
|
|
57
57
|
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-settings-models/src/client/ModelsSection.module.css.mjs
|
|
58
|
-
const css$3 = ".sDNkSa_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}.sDNkSa_title{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.sDNkSa_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:14px;line-height:22px}.sDNkSa_notice{color:var(--dsw-alias-state-warn-label);margin:0;font-size:12px;line-height:18px}.sDNkSa_savedNotice{color:var(--dsw-alias-state-success-primary);margin:0;font-size:12px;line-height:18px}.sDNkSa_rows{flex-direction:column;gap:8px;margin:12px 0 0;padding:0;list-style:none;display:flex}.sDNkSa_rowCard{border:.5px solid var(--dsw-alias-border-l4);border-radius:16px;flex-direction:column;gap:12px;padding:12px 14px;display:flex}.sDNkSa_rowHead{align-items:center;gap:10px;display:flex}.sDNkSa_rowIdentity{align-items:center;gap:6px;min-width:0;display:inline-flex}.sDNkSa_rowName{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.sDNkSa_rowTag{border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-secondary);border-radius:4px;flex:none;padding:1px 6px;font-size:11px;line-height:16px}.sDNkSa_credentialDot{box-sizing:border-box;corner-shape:round;border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.sDNkSa_credentialDotConfigured{background:var(--dsw-alias-state-success-primary)}.sDNkSa_credentialDotMissing{background:var(--dsw-alias-state-error-primary)}.sDNkSa_rowActions{align-items:center;gap:4px;margin-left:auto;display:inline-flex}.sDNkSa_primaryButton,.sDNkSa_secondaryButton,.sDNkSa_addButton{box-sizing:border-box;height:36px;font:inherit;cursor:pointer;border:none;border-radius:18px;justify-content:center;align-items:center;gap:4px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.sDNkSa_primaryButton{background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}.sDNkSa_primaryButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}.sDNkSa_secondaryButton,.sDNkSa_addButton{border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-primary);background:0 0}.sDNkSa_secondaryButton:hover:not(:disabled),.sDNkSa_addButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.sDNkSa_secondaryButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-solid)}.sDNkSa_dangerButton{box-sizing:border-box;height:36px;color:var(--dsw-alias-state-error-primary);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:18px;justify-content:center;align-items:center;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.sDNkSa_dangerButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}.sDNkSa_rowActions .sDNkSa_secondaryButton,.sDNkSa_rowActions .sDNkSa_dangerButton{border-radius:14px;height:28px;padding:0 10px;font-size:12px;line-height:18px}.sDNkSa_primaryButton:disabled,.sDNkSa_secondaryButton:disabled,.sDNkSa_dangerButton:disabled,.sDNkSa_addButton:disabled,.sDNkSa_linkButton:disabled,.sDNkSa_addModelButton:disabled{opacity:.4;cursor:default}.sDNkSa_primaryButton:focus-visible,.sDNkSa_secondaryButton:focus-visible,.sDNkSa_dangerButton:focus-visible,.sDNkSa_addButton:focus-visible,.sDNkSa_linkButton:focus-visible,.sDNkSa_addModelButton:focus-visible,.sDNkSa_iconButton:focus-visible,.sDNkSa_customizedSummary:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-border-l3);outline:none}.sDNkSa_editor{background:var(--dsw-alias-bg-module-platform);border-radius:12px;flex-direction:column;gap:14px;padding:14px 16px;display:flex}.sDNkSa_editorHeader{align-items:baseline;gap:8px;display:flex}.sDNkSa_editorTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.sDNkSa_editorRoute{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.sDNkSa_field{flex-direction:column;gap:6px;display:flex}.sDNkSa_fieldLabel{color:var(--dsw-alias-label-secondary);align-items:center;gap:10px;font-size:12px;font-weight:500;line-height:18px;display:inline-flex}.sDNkSa_linkButton{box-sizing:border-box;height:28px;color:var(--dsw-alias-label-tertiary);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:14px;align-items:center;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}.sDNkSa_linkButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.sDNkSa_advancedHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.sDNkSa_editorActions{justify-content:flex-end;gap:8px;display:flex}.sDNkSa_addBlock{flex-direction:column;gap:12px;display:flex}.sDNkSa_addActions{flex-wrap:wrap;gap:10px;display:flex}.sDNkSa_addButton{border:1px dashed var(--dsw-alias-border-l3);border-radius:16px;flex:1 1 0;gap:6px;min-width:180px;height:44px}.sDNkSa_addCard,.sDNkSa_setupCard{background:var(--dsw-alias-bg-module-platform);border-radius:12px;flex-direction:column;gap:14px;padding:14px 16px;list-style:none;display:flex}.sDNkSa_addCard .sDNkSa_editor,.sDNkSa_setupCard .sDNkSa_editor{background:0 0;padding:0}.sDNkSa_customized{border-top:.5px solid var(--dsw-alias-border-l2);padding-top:10px}.sDNkSa_customizedSummary{cursor:pointer;width:fit-content;color:var(--dsw-alias-label-secondary);border-radius:6px;align-items:center;gap:6px;margin-left:-4px;padding:2px 4px;font-size:12px;font-weight:500;line-height:18px;list-style:none;display:flex}.sDNkSa_customizedSummary::-webkit-details-marker{display:none}.sDNkSa_customizedSummary:before{content:\"\";border-bottom:1.5px solid;border-right:1.5px solid;width:5px;height:5px;transition:transform .12s;transform:rotate(-45deg)translate(-1px,-1px)}.sDNkSa_customized[open]>.sDNkSa_customizedSummary:before{transform:rotate(45deg)translate(-1px,-1px)}.sDNkSa_customizedSummary:hover{color:var(--dsw-alias-label-primary)}.sDNkSa_customizedBody{flex-direction:column;gap:12px;padding-top:12px;display:flex}.sDNkSa_modelCatalog{border-top:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:10px;padding-top:12px;display:flex}.sDNkSa_modelCatalogHeading{flex-direction:column;gap:2px;display:flex}.sDNkSa_modelCatalogTitle{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500;line-height:18px}.sDNkSa_modelCatalogMeta,.sDNkSa_modelEmpty{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.sDNkSa_modelList{flex-direction:column;gap:8px;display:flex}.sDNkSa_modelListHead{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.sDNkSa_modelEntry{border:.5px solid var(--dsw-alias-border-l4);border-radius:10px;padding:6px}.sDNkSa_modelRow{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto auto;align-items:center;gap:6px;display:grid}.sDNkSa_iconButton{box-sizing:border-box;width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.sDNkSa_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.sDNkSa_iconButton:disabled{cursor:default;opacity:.4}.sDNkSa_iconButtonDanger:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}.sDNkSa_modelAdvanced{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 4px 2px;display:grid}.sDNkSa_modelField{flex-direction:column;gap:4px;min-width:0;display:flex}.sDNkSa_modelInputTypes{border:none;grid-column:1/-1;min-width:0;margin:0;padding:0}.sDNkSa_modelInputTypes legend{margin-bottom:4px;padding:0}.sDNkSa_modelInputChoices{flex-wrap:wrap;align-items:center;gap:16px;min-height:32px;display:flex}.sDNkSa_modelFieldLabel{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.sDNkSa_modelEmpty{border:1px dashed var(--dsw-alias-border-l3);text-align:center;border-radius:8px;padding:12px}.sDNkSa_addModelButton{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);height:28px;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;background:0 0;border-radius:14px;align-self:flex-start;align-items:center;gap:4px;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}.sDNkSa_addModelButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.sDNkSa_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);width:100%;height:32px;font:inherit;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 10px;font-size:14px;line-height:22px}select.sDNkSa_input{cursor:pointer;max-width:240px}.sDNkSa_input:focus{border-color:var(--dsw-alias-brand-primary);outline:none}.sDNkSa_input::placeholder{color:var(--dsw-alias-label-dimmed)}.sDNkSa_input:disabled{opacity:.6;cursor:default}.sDNkSa_selectInput{appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");background-position:right 12px center;background-repeat:no-repeat;background-size:12px 12px;padding-right:32px}.sDNkSa_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:18px}.sDNkSa_deleteDialog{width:min(480px,100%)}.sDNkSa_deleteConfirm:not(:disabled){border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}.sDNkSa_deleteConfirm:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}.sDNkSa_hiddenLabel{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.sDNkSa_customizedSummary:before,.sDNkSa_switchThumb{transition:none}}.sDNkSa_fetchDialog{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);max-width:520px}.sDNkSa_candidateToolbar{align-items:center;gap:8px;margin-bottom:6px;display:flex}.sDNkSa_candidateSearch{flex:240px;min-width:0}.sDNkSa_candidateList{flex-direction:column;gap:2px;max-height:320px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.sDNkSa_candidate{border-radius:6px}.sDNkSa_candidateLabel{cursor:pointer;align-items:center;gap:8px;padding:6px 8px;display:flex}.sDNkSa_candidateId{font-family:var(--ds-font-family-code);overflow-wrap:anywhere;flex:auto;font-size:13px}.sDNkSa_candidateEmpty{color:var(--dsw-alias-label-secondary);text-align:center;margin:24px 0;font-size:13px;line-height:20px}";
|
|
58
|
+
const css$3 = ".sDNkSa_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}.sDNkSa_title{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;font-weight:500;line-height:24px}.sDNkSa_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:14px;line-height:22px}.sDNkSa_notice{color:var(--dsw-alias-state-warn-label);margin:0;font-size:12px;line-height:18px}.sDNkSa_savedNotice{color:var(--dsw-alias-state-success-primary);margin:0;font-size:12px;line-height:18px}.sDNkSa_rows{flex-direction:column;gap:8px;margin:12px 0 0;padding:0;list-style:none;display:flex}.sDNkSa_rowCard{border:.5px solid var(--dsw-alias-border-l4);border-radius:16px;flex-direction:column;gap:12px;padding:12px 14px;display:flex}.sDNkSa_rowHead{align-items:center;gap:10px;display:flex}.sDNkSa_rowIdentity{align-items:center;gap:6px;min-width:0;display:inline-flex}.sDNkSa_rowName{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.sDNkSa_rowTag{border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-secondary);border-radius:4px;flex:none;padding:1px 6px;font-size:11px;line-height:16px}.sDNkSa_credentialDot{box-sizing:border-box;corner-shape:round;border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.sDNkSa_credentialDotConfigured{background:var(--dsw-alias-state-success-primary)}.sDNkSa_credentialDotMissing{background:var(--dsw-alias-state-error-primary)}.sDNkSa_rowActions{align-items:center;gap:4px;margin-left:auto;display:inline-flex}.sDNkSa_primaryButton,.sDNkSa_secondaryButton,.sDNkSa_addButton{box-sizing:border-box;height:36px;font:inherit;cursor:pointer;border:none;border-radius:18px;justify-content:center;align-items:center;gap:4px;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.sDNkSa_primaryButton{background:var(--dsw-alias-button-primary-fill);color:var(--dsw-alias-label-primary-foreground)}.sDNkSa_primaryButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}.sDNkSa_secondaryButton,.sDNkSa_addButton{border:.5px solid var(--dsw-alias-border-l3);color:var(--dsw-alias-label-primary);background:0 0}.sDNkSa_secondaryButton:hover:not(:disabled),.sDNkSa_addButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.sDNkSa_secondaryButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-solid)}.sDNkSa_dangerButton{box-sizing:border-box;height:36px;color:var(--dsw-alias-state-error-primary);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:18px;justify-content:center;align-items:center;padding:0 14px;font-size:14px;line-height:22px;display:inline-flex}.sDNkSa_dangerButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}.sDNkSa_rowActions .sDNkSa_secondaryButton,.sDNkSa_rowActions .sDNkSa_dangerButton{border-radius:14px;height:28px;padding:0 10px;font-size:12px;line-height:18px}.sDNkSa_primaryButton:disabled,.sDNkSa_secondaryButton:disabled,.sDNkSa_dangerButton:disabled,.sDNkSa_addButton:disabled,.sDNkSa_linkButton:disabled,.sDNkSa_addModelButton:disabled{opacity:.4;cursor:default}.sDNkSa_primaryButton:focus-visible,.sDNkSa_secondaryButton:focus-visible,.sDNkSa_dangerButton:focus-visible,.sDNkSa_addButton:focus-visible,.sDNkSa_linkButton:focus-visible,.sDNkSa_addModelButton:focus-visible,.sDNkSa_iconButton:focus-visible,.sDNkSa_customizedSummary:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-border-l3);outline:none}.sDNkSa_editor{background:var(--dsw-alias-bg-module-platform);border-radius:12px;flex-direction:column;gap:14px;padding:14px 16px;display:flex}.sDNkSa_editorHeader{align-items:baseline;gap:8px;display:flex}.sDNkSa_editorTitle{color:var(--dsw-alias-label-primary);font-size:14px;font-weight:500;line-height:22px}.sDNkSa_editorRoute{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.sDNkSa_field{flex-direction:column;gap:6px;display:flex}.sDNkSa_fieldLabel{color:var(--dsw-alias-label-secondary);align-items:center;gap:10px;font-size:12px;font-weight:500;line-height:18px;display:inline-flex}.sDNkSa_linkButton{box-sizing:border-box;height:28px;color:var(--dsw-alias-label-tertiary);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:14px;align-items:center;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}.sDNkSa_linkButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.sDNkSa_advancedHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.sDNkSa_editorActions{justify-content:flex-end;gap:8px;display:flex}.sDNkSa_addBlock{flex-direction:column;gap:12px;display:flex}.sDNkSa_addActions{display:flex}.sDNkSa_addButton{border:1px dashed var(--dsw-alias-border-l3);border-radius:16px;flex:1 1 0;gap:6px;min-width:180px;height:44px}.sDNkSa_addModes{flex-direction:column;align-items:flex-start;gap:8px;display:flex}.sDNkSa_addPanel{flex-direction:column;gap:14px;display:flex}.sDNkSa_addPanel[hidden]{display:none}.sDNkSa_addCard,.sDNkSa_setupCard{background:var(--dsw-alias-bg-module-platform);border-radius:12px;flex-direction:column;gap:14px;padding:14px 16px;list-style:none;display:flex}.sDNkSa_addCard .sDNkSa_editor,.sDNkSa_setupCard .sDNkSa_editor{background:0 0;padding:0}.sDNkSa_customized{border-top:.5px solid var(--dsw-alias-border-l2);padding-top:10px}.sDNkSa_customizedSummary{cursor:pointer;width:fit-content;color:var(--dsw-alias-label-secondary);border-radius:6px;align-items:center;gap:6px;margin-left:-4px;padding:2px 4px;font-size:12px;font-weight:500;line-height:18px;list-style:none;display:flex}.sDNkSa_customizedSummary::-webkit-details-marker{display:none}.sDNkSa_customizedSummary:before{content:\"\";border-bottom:1.5px solid;border-right:1.5px solid;width:5px;height:5px;transition:transform .12s;transform:rotate(-45deg)translate(-1px,-1px)}.sDNkSa_customized[open]>.sDNkSa_customizedSummary:before{transform:rotate(45deg)translate(-1px,-1px)}.sDNkSa_customizedSummary:hover{color:var(--dsw-alias-label-primary)}.sDNkSa_customizedBody{flex-direction:column;gap:12px;padding-top:12px;display:flex}.sDNkSa_modelCatalog{border-top:.5px solid var(--dsw-alias-border-l2);flex-direction:column;gap:10px;padding-top:12px;display:flex}.sDNkSa_modelCatalogHeading{flex-direction:column;gap:2px;display:flex}.sDNkSa_modelCatalogTitle{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500;line-height:18px}.sDNkSa_modelCatalogMeta,.sDNkSa_modelEmpty{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.sDNkSa_modelList{flex-direction:column;gap:8px;display:flex}.sDNkSa_modelListHead{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.sDNkSa_modelEntry{border:.5px solid var(--dsw-alias-border-l4);border-radius:10px;padding:6px}.sDNkSa_modelRow{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto auto;align-items:center;gap:6px;display:grid}.sDNkSa_iconButton{box-sizing:border-box;width:28px;height:28px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;display:inline-flex}.sDNkSa_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}.sDNkSa_iconButton:disabled{cursor:default;opacity:.4}.sDNkSa_iconButtonDanger:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}.sDNkSa_modelAdvanced{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px 4px 2px;display:grid}.sDNkSa_modelField{flex-direction:column;gap:4px;min-width:0;display:flex}.sDNkSa_modelInputTypes{border:none;grid-column:1/-1;min-width:0;margin:0;padding:0}.sDNkSa_modelInputTypes legend{margin-bottom:4px;padding:0}.sDNkSa_modelInputChoices{flex-wrap:wrap;align-items:center;gap:16px;min-height:32px;display:flex}.sDNkSa_modelFieldLabel{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.sDNkSa_modelEmpty{border:1px dashed var(--dsw-alias-border-l3);text-align:center;border-radius:8px;padding:12px}.sDNkSa_addModelButton{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l3);height:28px;color:var(--dsw-alias-label-primary);font:inherit;cursor:pointer;background:0 0;border-radius:14px;align-self:flex-start;align-items:center;gap:4px;padding:0 10px;font-size:12px;line-height:18px;display:inline-flex}.sDNkSa_addModelButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.sDNkSa_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);width:100%;height:32px;font:inherit;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 10px;font-size:14px;line-height:22px}select.sDNkSa_input{cursor:pointer;max-width:240px}.sDNkSa_input:focus{border-color:var(--dsw-alias-brand-primary);outline:none}.sDNkSa_input::placeholder{color:var(--dsw-alias-label-dimmed)}.sDNkSa_input:disabled{opacity:.6;cursor:default}.sDNkSa_selectInput{appearance:none;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%2381858C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\");background-position:right 12px center;background-repeat:no-repeat;background-size:12px 12px;padding-right:32px}.sDNkSa_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:18px}.sDNkSa_deleteDialog{width:min(480px,100%)}.sDNkSa_deleteConfirm:not(:disabled){border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}.sDNkSa_deleteConfirm:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}.sDNkSa_hiddenLabel{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.sDNkSa_customizedSummary:before,.sDNkSa_switchThumb{transition:none}}.sDNkSa_fetchDialog{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);max-width:520px}.sDNkSa_candidateToolbar{align-items:center;gap:8px;margin-bottom:6px;display:flex}.sDNkSa_candidateSearch{flex:240px;min-width:0}.sDNkSa_candidateList{flex-direction:column;gap:2px;max-height:320px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.sDNkSa_candidate{border-radius:6px}.sDNkSa_candidateLabel{cursor:pointer;align-items:center;gap:8px;padding:6px 8px;display:flex}.sDNkSa_candidateId{font-family:var(--ds-font-family-code);overflow-wrap:anywhere;flex:auto;font-size:13px}.sDNkSa_candidateEmpty{color:var(--dsw-alias-label-secondary);text-align:center;margin:24px 0;font-size:13px;line-height:20px}";
|
|
59
59
|
const tagId$3 = "@deepseek-ai/dsh-client-ui-settings-models/ModelsSection.module.css";
|
|
60
60
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
61
61
|
const tag = document.createElement("style");
|
|
@@ -70,6 +70,8 @@ window.__ModuleLoader__.load({
|
|
|
70
70
|
"addButton": "sDNkSa_addButton",
|
|
71
71
|
"addCard": "sDNkSa_addCard",
|
|
72
72
|
"addModelButton": "sDNkSa_addModelButton",
|
|
73
|
+
"addModes": "sDNkSa_addModes",
|
|
74
|
+
"addPanel": "sDNkSa_addPanel",
|
|
73
75
|
"advancedHint": "sDNkSa_advancedHint",
|
|
74
76
|
"candidate": "sDNkSa_candidate",
|
|
75
77
|
"candidateEmpty": "sDNkSa_candidateEmpty",
|
|
@@ -231,7 +233,7 @@ window.__ModuleLoader__.load({
|
|
|
231
233
|
"aria-expanded": props.expanded,
|
|
232
234
|
title: t("modelAdvanced"),
|
|
233
235
|
onClick: props.onToggle,
|
|
234
|
-
children: props.expanded ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
236
|
+
children: props.expanded ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, {}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutlineRegular, {})
|
|
235
237
|
}),
|
|
236
238
|
(0, react_jsx_runtime.jsx)("button", {
|
|
237
239
|
type: "button",
|
|
@@ -240,7 +242,7 @@ window.__ModuleLoader__.load({
|
|
|
240
242
|
title: t("removeModel"),
|
|
241
243
|
disabled,
|
|
242
244
|
onClick: props.onRemove,
|
|
243
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
245
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutlineRegular, { size: 14 })
|
|
244
246
|
})
|
|
245
247
|
]
|
|
246
248
|
}), props.expanded ? (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -511,7 +513,7 @@ window.__ModuleLoader__.load({
|
|
|
511
513
|
onClick: () => {
|
|
512
514
|
props.onChange([...props.models.map((model) => ({ ...model })), { id: "" }]);
|
|
513
515
|
},
|
|
514
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
516
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutlineRegular, { size: 14 }), props.t("addModel")]
|
|
515
517
|
})
|
|
516
518
|
]
|
|
517
519
|
});
|
|
@@ -584,9 +586,12 @@ window.__ModuleLoader__.load({
|
|
|
584
586
|
* @returns the model-list editor.
|
|
585
587
|
*/
|
|
586
588
|
function ModelListEditor(props) {
|
|
587
|
-
const { models, onChange, probe, operations, t, disabled } = props;
|
|
589
|
+
const { models, onChange, probe, operations, t, disabled, onBusyChange } = props;
|
|
588
590
|
const { catalogProvider } = props;
|
|
589
591
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
592
|
+
(0, react.useEffect)(() => {
|
|
593
|
+
onBusyChange(busy);
|
|
594
|
+
}, [busy, onBusyChange]);
|
|
590
595
|
const [failure, setFailure] = (0, react.useState)(void 0);
|
|
591
596
|
const [inheritedCatalog, setInheritedCatalog] = (0, react.useState)(void 0);
|
|
592
597
|
(0, react.useEffect)(() => {
|
|
@@ -810,7 +815,7 @@ window.__ModuleLoader__.load({
|
|
|
810
815
|
onClick: () => {
|
|
811
816
|
onChange([...models, { id: "" }]);
|
|
812
817
|
},
|
|
813
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
818
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutlineRegular, { size: 14 }), t("addModel")]
|
|
814
819
|
}),
|
|
815
820
|
failure !== void 0 ? (0, react_jsx_runtime.jsx)("p", {
|
|
816
821
|
className: ModelsSection_module_css_default["error"],
|
|
@@ -1120,18 +1125,46 @@ window.__ModuleLoader__.load({
|
|
|
1120
1125
|
return { kind: "credential-missing" };
|
|
1121
1126
|
}
|
|
1122
1127
|
//#endregion
|
|
1128
|
+
//#region lib/types/client/protocol-label.js
|
|
1129
|
+
/**
|
|
1130
|
+
* Product names for the wire protocols a pi-ai route may speak. The pickers
|
|
1131
|
+
* show these instead of the schema identifiers (`openai-completions`), which
|
|
1132
|
+
* are what `settings.yaml` carries and what the option values stay.
|
|
1133
|
+
*/
|
|
1134
|
+
/** The protocols this page names, keyed by their schema identifier. */
|
|
1135
|
+
const PROTOCOL_LABEL_KEYS = {
|
|
1136
|
+
"openai-completions": "protocolOpenAiCompletions",
|
|
1137
|
+
"openai-responses": "protocolOpenAiResponses",
|
|
1138
|
+
"anthropic-messages": "protocolAnthropicMessages"
|
|
1139
|
+
};
|
|
1140
|
+
/**
|
|
1141
|
+
* The picker text for one protocol identifier.
|
|
1142
|
+
* @param t - section copy.
|
|
1143
|
+
* @param protocol - the schema identifier of the protocol.
|
|
1144
|
+
* @returns the product name this page knows the protocol by; a protocol the
|
|
1145
|
+
* adapter adds before this page names it shows its identifier, the spelling
|
|
1146
|
+
* `settings.yaml` needs anyway.
|
|
1147
|
+
*/
|
|
1148
|
+
function protocolLabel(t, protocol) {
|
|
1149
|
+
const key = PROTOCOL_LABEL_KEYS[protocol];
|
|
1150
|
+
return key === void 0 ? protocol : t(key);
|
|
1151
|
+
}
|
|
1152
|
+
//#endregion
|
|
1123
1153
|
//#region lib/types/client/CustomProviderCard.js
|
|
1124
1154
|
/**
|
|
1125
1155
|
* The card that declares a provider pi-ai does not ship — an OpenAI-compatible
|
|
1126
1156
|
* gateway, a self-hosted server, or a provider newer than the installed
|
|
1127
1157
|
* catalog.
|
|
1128
1158
|
*
|
|
1129
|
-
* This is a create, not an edit, which is why it is its own
|
|
1159
|
+
* This is a create, not an edit, which is why it is its own form rather than
|
|
1130
1160
|
* the provider editor with extra fields: the route id is being *chosen* here,
|
|
1131
|
-
* and the settings address does not exist until it is.
|
|
1132
|
-
*
|
|
1133
|
-
*
|
|
1134
|
-
*
|
|
1161
|
+
* and the settings address does not exist until it is. It renders as the
|
|
1162
|
+
* custom-API panel of the section's add card; the card's mode switch names it
|
|
1163
|
+
* when both modes are offered, and with the custom mode alone the card shows
|
|
1164
|
+
* this form directly. One `settings.mutate` sets the whole profile at
|
|
1165
|
+
* `providers.<route>`; the key travels separately through `credentials/set`
|
|
1166
|
+
* under the reference the profile records, exactly as an existing provider's
|
|
1167
|
+
* key does.
|
|
1135
1168
|
*
|
|
1136
1169
|
* The three fields a hand-declared route cannot default — endpoint, protocol,
|
|
1137
1170
|
* and at least one model — are required here rather than at load, so the
|
|
@@ -1168,7 +1201,7 @@ window.__ModuleLoader__.load({
|
|
|
1168
1201
|
* @returns the creation card.
|
|
1169
1202
|
*/
|
|
1170
1203
|
function CustomProviderCard(props) {
|
|
1171
|
-
const { taken, protocols, operations, t } = props;
|
|
1204
|
+
const { taken, protocols, operations, t, onBusyChange } = props;
|
|
1172
1205
|
const [openedAt] = (0, react.useState)(() => props.revision);
|
|
1173
1206
|
const [route, setRoute] = (0, react.useState)("");
|
|
1174
1207
|
const [displayName, setDisplayName] = (0, react.useState)("");
|
|
@@ -1177,6 +1210,14 @@ window.__ModuleLoader__.load({
|
|
|
1177
1210
|
const [keyDraft, setKeyDraft] = (0, react.useState)("");
|
|
1178
1211
|
const [models, setModels] = (0, react.useState)([]);
|
|
1179
1212
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
1213
|
+
const [listBusy, setListBusy] = (0, react.useState)(false);
|
|
1214
|
+
(0, react.useEffect)(() => {
|
|
1215
|
+
onBusyChange?.(busy || listBusy);
|
|
1216
|
+
}, [
|
|
1217
|
+
busy,
|
|
1218
|
+
listBusy,
|
|
1219
|
+
onBusyChange
|
|
1220
|
+
]);
|
|
1180
1221
|
const [failure, setFailure] = (0, react.useState)(void 0);
|
|
1181
1222
|
/**
|
|
1182
1223
|
* The profile write landed. Only the key write can still be outstanding, so
|
|
@@ -1238,13 +1279,6 @@ window.__ModuleLoader__.load({
|
|
|
1238
1279
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
1239
1280
|
className: ModelsSection_module_css_default["editor"],
|
|
1240
1281
|
children: [
|
|
1241
|
-
(0, react_jsx_runtime.jsx)("div", {
|
|
1242
|
-
className: ModelsSection_module_css_default["editorHeader"],
|
|
1243
|
-
children: (0, react_jsx_runtime.jsx)("span", {
|
|
1244
|
-
className: ModelsSection_module_css_default["editorTitle"],
|
|
1245
|
-
children: t("customTitle")
|
|
1246
|
-
})
|
|
1247
|
-
}),
|
|
1248
1282
|
(0, react_jsx_runtime.jsxs)("div", {
|
|
1249
1283
|
className: ModelsSection_module_css_default["field"],
|
|
1250
1284
|
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
@@ -1295,7 +1329,7 @@ window.__ModuleLoader__.load({
|
|
|
1295
1329
|
className: ModelsSection_module_css_default["input"],
|
|
1296
1330
|
type: "text",
|
|
1297
1331
|
value: baseURL,
|
|
1298
|
-
placeholder: t("customBaseUrlPlaceholder"),
|
|
1332
|
+
placeholder: t(protocol === "anthropic-messages" ? "customAnthropicBaseUrlPlaceholder" : "customBaseUrlPlaceholder"),
|
|
1299
1333
|
"aria-label": t("baseUrl"),
|
|
1300
1334
|
"aria-invalid": baseUrlInvalid,
|
|
1301
1335
|
disabled: profileDisabled,
|
|
@@ -1323,7 +1357,7 @@ window.__ModuleLoader__.load({
|
|
|
1323
1357
|
},
|
|
1324
1358
|
children: protocols.map((choice) => (0, react_jsx_runtime.jsx)("option", {
|
|
1325
1359
|
value: choice,
|
|
1326
|
-
children: choice
|
|
1360
|
+
children: protocolLabel(t, choice)
|
|
1327
1361
|
}, choice))
|
|
1328
1362
|
})]
|
|
1329
1363
|
}),
|
|
@@ -1364,7 +1398,8 @@ window.__ModuleLoader__.load({
|
|
|
1364
1398
|
probeBlocked: baseUrlInvalid ? "customBaseUrlInvalid" : keyFailure === "keyBlank" ? "keyBlankNew" : keyFailure,
|
|
1365
1399
|
operations,
|
|
1366
1400
|
t,
|
|
1367
|
-
disabled: profileDisabled
|
|
1401
|
+
disabled: profileDisabled,
|
|
1402
|
+
onBusyChange: setListBusy
|
|
1368
1403
|
}),
|
|
1369
1404
|
failure !== void 0 ? (0, react_jsx_runtime.jsx)("p", {
|
|
1370
1405
|
className: ModelsSection_module_css_default["error"],
|
|
@@ -1408,9 +1443,9 @@ window.__ModuleLoader__.load({
|
|
|
1408
1443
|
* Reasoning effort is deliberately absent: it is a per-MODEL capability, and
|
|
1409
1444
|
* the models under one provider disagree about it, so a provider-scoped
|
|
1410
1445
|
* control can only be set to a value some of them reject. The composer's
|
|
1411
|
-
* model picker offers each model its own levels; `
|
|
1446
|
+
* model picker offers each model its own levels; `cordis.patch.yml` keeps the
|
|
1412
1447
|
* profile field for a deployment that knows its route. Everything else stays
|
|
1413
|
-
* owned by `
|
|
1448
|
+
* owned by `cordis.patch.yml`. Profile edits land as minimal `settings.mutate`
|
|
1414
1449
|
* path ops against the stored section — the card names only the fields it can
|
|
1415
1450
|
* see instead of rebuilding the whole subtree from a partial descriptor.
|
|
1416
1451
|
*/
|
|
@@ -1470,6 +1505,15 @@ window.__ModuleLoader__.load({
|
|
|
1470
1505
|
const [keyDraft, setKeyDraft] = (0, react.useState)("");
|
|
1471
1506
|
const [keyState, setKeyState] = (0, react.useState)(void 0);
|
|
1472
1507
|
const [busy, setBusy] = (0, react.useState)(false);
|
|
1508
|
+
const [listBusy, setListBusy] = (0, react.useState)(false);
|
|
1509
|
+
const { onBusyChange } = props;
|
|
1510
|
+
(0, react.useEffect)(() => {
|
|
1511
|
+
onBusyChange?.(busy || listBusy);
|
|
1512
|
+
}, [
|
|
1513
|
+
busy,
|
|
1514
|
+
listBusy,
|
|
1515
|
+
onBusyChange
|
|
1516
|
+
]);
|
|
1473
1517
|
const [failure, setFailure] = (0, react.useState)(void 0);
|
|
1474
1518
|
const [committedOriginal, setCommittedOriginal] = (0, react.useState)(() => schema.getPath(namespace.user, settingsPath));
|
|
1475
1519
|
const [expectedRevision, setExpectedRevision] = (0, react.useState)(() => namespace.revision);
|
|
@@ -1681,7 +1725,7 @@ window.__ModuleLoader__.load({
|
|
|
1681
1725
|
className: ModelsSection_module_css_default["input"],
|
|
1682
1726
|
type: "text",
|
|
1683
1727
|
value: stringAt(draft, "baseURL") ?? "",
|
|
1684
|
-
placeholder: family === "deepseek" ? t(
|
|
1728
|
+
placeholder: family === "deepseek" ? t("deepSeekBaseUrl") : stringAt(fallback, "baseURL") ?? t("baseUrlDefault"),
|
|
1685
1729
|
"aria-describedby": family === "deepseek" ? `${props.provider}-endpoint-hint` : void 0,
|
|
1686
1730
|
"aria-label": t("baseUrl"),
|
|
1687
1731
|
disabled,
|
|
@@ -1714,7 +1758,7 @@ window.__ModuleLoader__.load({
|
|
|
1714
1758
|
children: t("customApiUnset")
|
|
1715
1759
|
}) : null, protocols.map((choice) => (0, react_jsx_runtime.jsx)("option", {
|
|
1716
1760
|
value: choice,
|
|
1717
|
-
children: choice
|
|
1761
|
+
children: protocolLabel(t, choice)
|
|
1718
1762
|
}, choice))]
|
|
1719
1763
|
})]
|
|
1720
1764
|
}) : null,
|
|
@@ -1728,7 +1772,8 @@ window.__ModuleLoader__.load({
|
|
|
1728
1772
|
defaultInput: Array.isArray(defaultInput) ? defaultInput : void 0,
|
|
1729
1773
|
probe,
|
|
1730
1774
|
probeBlocked: keyFailure,
|
|
1731
|
-
operations
|
|
1775
|
+
operations,
|
|
1776
|
+
onBusyChange: setListBusy
|
|
1732
1777
|
})
|
|
1733
1778
|
]
|
|
1734
1779
|
})]
|
|
@@ -1785,11 +1830,19 @@ window.__ModuleLoader__.load({
|
|
|
1785
1830
|
* solid configured or missing dots. A whole-section provider without a
|
|
1786
1831
|
* configured key renders as its open setup card instead of a row, but only in
|
|
1787
1832
|
* the first-run posture — no provider on the page can serve requests yet — and
|
|
1788
|
-
* only until the user closes that card
|
|
1789
|
-
*
|
|
1790
|
-
*
|
|
1791
|
-
*
|
|
1792
|
-
*
|
|
1833
|
+
* only until the user closes that card. The add flow is one card behind one
|
|
1834
|
+
* button: a mode switch chooses between adopting a dormant directory provider
|
|
1835
|
+
* (the catalog select over the provider editor) and declaring a custom model
|
|
1836
|
+
* API (the create form). A panel mounts the first time its mode is shown and
|
|
1837
|
+
* stays mounted, hidden, while the card is open and its mode stays offered,
|
|
1838
|
+
* so switching modes discards neither draft and an unvisited mode costs
|
|
1839
|
+
* nothing; the switch holds still while either panel has a write or an
|
|
1840
|
+
* endpoint interrogation in flight, since a switch underneath one would
|
|
1841
|
+
* orphan the answer. Each card kind owns its own open state, so closing one
|
|
1842
|
+
* never discards a draft in another. Every
|
|
1843
|
+
* mutation writes through the wire, while a provider removal first requires
|
|
1844
|
+
* confirmation; the page re-renders from pushed invalidations or the
|
|
1845
|
+
* post-apply reload.
|
|
1793
1846
|
*/
|
|
1794
1847
|
/** Render an editor for either the setup posture or an expanded provider row. */
|
|
1795
1848
|
function renderProviderEditor({ target, ...props }) {
|
|
@@ -1836,7 +1889,7 @@ window.__ModuleLoader__.load({
|
|
|
1836
1889
|
function needsSetup(row, anyUsable) {
|
|
1837
1890
|
if (anyUsable) return false;
|
|
1838
1891
|
if (row.entry.settingsPath.length > 0) return false;
|
|
1839
|
-
if (row
|
|
1892
|
+
if (!showsApiKeyCredentialStatus(row)) return false;
|
|
1840
1893
|
return row.credential?.configured !== true;
|
|
1841
1894
|
}
|
|
1842
1895
|
/**
|
|
@@ -1901,30 +1954,48 @@ window.__ModuleLoader__.load({
|
|
|
1901
1954
|
const { controller, operations, schema, t } = injected;
|
|
1902
1955
|
const state = injected.useSnapshot((snapshot) => snapshot);
|
|
1903
1956
|
const [editing, setEditing] = (0, react.useState)(void 0);
|
|
1904
|
-
const [
|
|
1957
|
+
const [addOpen, setAddOpen] = (0, react.useState)(false);
|
|
1958
|
+
const [addMode, setAddMode] = (0, react.useState)("catalog");
|
|
1959
|
+
/** The modes shown since the add card opened; each keeps its panel mounted. */
|
|
1960
|
+
const [visited, setVisited] = (0, react.useState)(() => /* @__PURE__ */ new Set());
|
|
1961
|
+
/** Whether each add panel has a write or an interrogation in flight. */
|
|
1962
|
+
const [catalogBusy, setCatalogBusy] = (0, react.useState)(false);
|
|
1963
|
+
const [customBusy, setCustomBusy] = (0, react.useState)(false);
|
|
1964
|
+
/** Base of the add card's tab and panel ids. */
|
|
1965
|
+
const addId = (0, react.useId)();
|
|
1905
1966
|
const [deleteTarget, setDeleteTarget] = (0, react.useState)(void 0);
|
|
1906
1967
|
const [deleting, setDeleting] = (0, react.useState)(false);
|
|
1907
1968
|
const [deleteFailure, setDeleteFailure] = (0, react.useState)(void 0);
|
|
1908
1969
|
const [savedTarget, setSavedTarget] = (0, react.useState)(void 0);
|
|
1909
|
-
const [declaring, setDeclaring] = (0, react.useState)(false);
|
|
1910
1970
|
const [dismissedSetup, setDismissedSetup] = (0, react.useState)(() => /* @__PURE__ */ new Set());
|
|
1911
1971
|
const announceSaved = (target) => {
|
|
1912
1972
|
controller.load().then(() => {
|
|
1913
1973
|
setSavedTarget(target);
|
|
1914
1974
|
});
|
|
1915
1975
|
};
|
|
1916
|
-
|
|
1976
|
+
/**
|
|
1977
|
+
* Close the add card whole. The catalog target is forgotten with it, since
|
|
1978
|
+
* `editing` doubles as the row editor's target once the card is closed and a
|
|
1979
|
+
* refresh could otherwise open the row of a provider the draft never saved.
|
|
1980
|
+
* The busy flags reset here because a panel that closes itself on success
|
|
1981
|
+
* unmounts before it can report idle.
|
|
1982
|
+
*/
|
|
1983
|
+
const closeAdd = () => {
|
|
1917
1984
|
setEditing(void 0);
|
|
1918
|
-
|
|
1919
|
-
|
|
1985
|
+
setAddOpen(false);
|
|
1986
|
+
setCatalogBusy(false);
|
|
1987
|
+
setCustomBusy(false);
|
|
1988
|
+
};
|
|
1989
|
+
const closeEditor = (changed, target) => {
|
|
1990
|
+
closeAdd();
|
|
1920
1991
|
if (changed) announceSaved(target);
|
|
1921
1992
|
};
|
|
1922
1993
|
/**
|
|
1923
|
-
* Close a setup card, which owns none of the state above: the row-editor
|
|
1924
|
-
*
|
|
1925
|
-
*
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
1994
|
+
* Close a setup card, which owns none of the state above: the row-editor
|
|
1995
|
+
* and add cards each own one of those, so clearing them here would discard
|
|
1996
|
+
* a draft the user opened beside this card. Dismissal is this card's own —
|
|
1997
|
+
* the provider falls back to an ordinary row for the rest of the session,
|
|
1998
|
+
* and reopens through Edit.
|
|
1928
1999
|
*/
|
|
1929
2000
|
const closeSetup = (changed, target) => {
|
|
1930
2001
|
setDismissedSetup((previous) => new Set([...previous, target.provider]));
|
|
@@ -1977,11 +2048,37 @@ window.__ModuleLoader__.load({
|
|
|
1977
2048
|
const anyUsable = state.rows.some(providerUsable);
|
|
1978
2049
|
const configured = state.rows.filter((row) => row.configured);
|
|
1979
2050
|
const configurable = state.rows.filter((row) => state.namespaces.has(row.entry.settingsNs));
|
|
1980
|
-
const addable =
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
2051
|
+
const addable = state.rows.flatMap((row) => {
|
|
2052
|
+
const namespace = state.namespaces.get(row.entry.settingsNs);
|
|
2053
|
+
return namespace === void 0 || row.configured ? [] : [{
|
|
2054
|
+
row,
|
|
2055
|
+
namespace
|
|
2056
|
+
}];
|
|
2057
|
+
});
|
|
2058
|
+
const piAi = state.namespaces.get("llm-pi-ai");
|
|
2059
|
+
const protocols = protocolChoices(piAi, schema);
|
|
2060
|
+
const catalogOffered = configurable.length > 0;
|
|
2061
|
+
const catalogEnabled = addable.length > 0;
|
|
2062
|
+
const customOffered = piAi !== void 0;
|
|
2063
|
+
const customEnabled = protocols.length > 0;
|
|
2064
|
+
const bothOffered = catalogOffered && customOffered;
|
|
2065
|
+
const mode = bothOffered ? addMode : customOffered ? "custom" : "catalog";
|
|
2066
|
+
const mounted = (candidate) => mode === candidate || visited.has(candidate);
|
|
2067
|
+
const switchLocked = catalogBusy || customBusy;
|
|
2068
|
+
const draft = (() => {
|
|
2069
|
+
if (!addOpen || !catalogOffered) return void 0;
|
|
2070
|
+
const kept = editing === void 0 ? void 0 : state.namespaces.get(editing.settingsNs);
|
|
2071
|
+
if (editing !== void 0 && kept !== void 0) return {
|
|
2072
|
+
target: editing,
|
|
2073
|
+
namespace: kept
|
|
2074
|
+
};
|
|
2075
|
+
const first = addable[0];
|
|
2076
|
+
return first === void 0 ? void 0 : {
|
|
2077
|
+
target: targetOf(first.row),
|
|
2078
|
+
namespace: first.namespace
|
|
2079
|
+
};
|
|
2080
|
+
})();
|
|
2081
|
+
const addRow = draft === void 0 ? void 0 : state.rows.find((row) => row.entry.provider === draft.target.provider);
|
|
1985
2082
|
return (0, react_jsx_runtime.jsxs)("div", {
|
|
1986
2083
|
className: ModelsSection_module_css_default["section"],
|
|
1987
2084
|
children: [
|
|
@@ -2037,7 +2134,7 @@ window.__ModuleLoader__.load({
|
|
|
2037
2134
|
}, { entryKey: row.entry.settingsNs })
|
|
2038
2135
|
]
|
|
2039
2136
|
}, row.entry.provider);
|
|
2040
|
-
const open = !
|
|
2137
|
+
const open = !addOpen && editing?.provider === row.entry.provider;
|
|
2041
2138
|
const credentialConfigured = showsApiKeyCredentialStatus(row) && row.credential?.configured === true;
|
|
2042
2139
|
const credentialMissing = showsApiKeyCredentialStatus(row) && !credentialConfigured && row.apiKeyEnv !== void 0 && row.credential?.configured === false;
|
|
2043
2140
|
return (0, react_jsx_runtime.jsxs)("li", {
|
|
@@ -2076,8 +2173,7 @@ window.__ModuleLoader__.load({
|
|
|
2076
2173
|
"aria-label": providerCopy(t("editProvider"), target),
|
|
2077
2174
|
onClick: () => {
|
|
2078
2175
|
setSavedTarget(void 0);
|
|
2079
|
-
|
|
2080
|
-
setAdding(false);
|
|
2176
|
+
setAddOpen(false);
|
|
2081
2177
|
setEditing(open ? void 0 : target);
|
|
2082
2178
|
},
|
|
2083
2179
|
children: t("edit")
|
|
@@ -2118,94 +2214,136 @@ window.__ModuleLoader__.load({
|
|
|
2118
2214
|
}),
|
|
2119
2215
|
(0, react_jsx_runtime.jsx)("div", {
|
|
2120
2216
|
className: ModelsSection_module_css_default["addBlock"],
|
|
2121
|
-
children:
|
|
2217
|
+
children: addOpen ? (0, react_jsx_runtime.jsxs)("div", {
|
|
2122
2218
|
className: ModelsSection_module_css_default["addCard"],
|
|
2123
2219
|
children: [
|
|
2124
2220
|
(0, react_jsx_runtime.jsxs)("div", {
|
|
2125
|
-
className: ModelsSection_module_css_default["
|
|
2126
|
-
children: [(0, react_jsx_runtime.jsx)(
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2221
|
+
className: ModelsSection_module_css_default["addModes"],
|
|
2222
|
+
children: [bothOffered ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SegmentedControl, {
|
|
2223
|
+
id: addId,
|
|
2224
|
+
label: t("addMode"),
|
|
2225
|
+
value: mode,
|
|
2226
|
+
disabled: switchLocked,
|
|
2227
|
+
options: [{
|
|
2228
|
+
value: "catalog",
|
|
2229
|
+
label: t("addCatalog"),
|
|
2230
|
+
disabled: !catalogEnabled,
|
|
2231
|
+
...catalogEnabled ? {} : { title: t("addCatalogExhausted") }
|
|
2232
|
+
}, {
|
|
2233
|
+
value: "custom",
|
|
2234
|
+
label: t("addCustom"),
|
|
2235
|
+
disabled: !customEnabled,
|
|
2236
|
+
...customEnabled ? {} : { title: t("addCustomUnavailable") }
|
|
2237
|
+
}],
|
|
2238
|
+
onChange: (next) => {
|
|
2239
|
+
setAddMode(next);
|
|
2240
|
+
setVisited((previous) => new Set([...previous, next]));
|
|
2241
|
+
}
|
|
2242
|
+
}) : (0, react_jsx_runtime.jsx)("div", {
|
|
2243
|
+
className: ModelsSection_module_css_default["editorHeader"],
|
|
2244
|
+
children: (0, react_jsx_runtime.jsx)("span", {
|
|
2245
|
+
className: ModelsSection_module_css_default["editorTitle"],
|
|
2246
|
+
children: t(mode === "catalog" ? "addCatalog" : "addCustom")
|
|
2247
|
+
})
|
|
2248
|
+
}), (0, react_jsx_runtime.jsx)("p", {
|
|
2249
|
+
className: ModelsSection_module_css_default["advancedHint"],
|
|
2250
|
+
children: t(mode === "catalog" ? "addCatalogHint" : "addCustomHint")
|
|
2143
2251
|
})]
|
|
2144
2252
|
}),
|
|
2145
|
-
(0, react_jsx_runtime.
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2253
|
+
mounted("catalog") && draft !== void 0 ? (0, react_jsx_runtime.jsxs)("div", {
|
|
2254
|
+
id: `${addId}-catalog-panel`,
|
|
2255
|
+
...bothOffered ? {
|
|
2256
|
+
role: "tabpanel",
|
|
2257
|
+
"aria-labelledby": `${addId}-catalog`
|
|
2258
|
+
} : {},
|
|
2259
|
+
hidden: mode !== "catalog",
|
|
2260
|
+
className: ModelsSection_module_css_default["addPanel"],
|
|
2261
|
+
children: [
|
|
2262
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
2263
|
+
className: ModelsSection_module_css_default["field"],
|
|
2264
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
2265
|
+
className: ModelsSection_module_css_default["fieldLabel"],
|
|
2266
|
+
children: t("provider")
|
|
2267
|
+
}), (0, react_jsx_runtime.jsx)("select", {
|
|
2268
|
+
className: `${ModelsSection_module_css_default["input"]} ${ModelsSection_module_css_default["selectInput"]}`,
|
|
2269
|
+
value: draft.target.provider,
|
|
2270
|
+
"aria-label": t("provider"),
|
|
2271
|
+
disabled: catalogBusy,
|
|
2272
|
+
onChange: (event) => {
|
|
2273
|
+
const picked = addable.find((candidate) => candidate.row.entry.provider === event.target.value);
|
|
2274
|
+
/* v8 ignore next -- the select only lists addable rows */
|
|
2275
|
+
if (picked === void 0) return;
|
|
2276
|
+
setEditing(targetOf(picked.row));
|
|
2277
|
+
},
|
|
2278
|
+
children: addable.map(({ row }) => (0, react_jsx_runtime.jsx)("option", {
|
|
2279
|
+
value: row.entry.provider,
|
|
2280
|
+
children: row.entry.displayName
|
|
2281
|
+
}, row.entry.provider))
|
|
2282
|
+
})]
|
|
2283
|
+
}),
|
|
2284
|
+
(0, react_jsx_runtime.jsx)(ProviderEditor, {
|
|
2285
|
+
provider: draft.target.provider,
|
|
2286
|
+
displayName: draft.target.displayName,
|
|
2287
|
+
hideTitle: true,
|
|
2288
|
+
namespace: draft.namespace,
|
|
2289
|
+
schema,
|
|
2290
|
+
settingsPath: draft.target.settingsPath,
|
|
2291
|
+
operations,
|
|
2292
|
+
t,
|
|
2293
|
+
readOnly: !state.writable,
|
|
2294
|
+
onClose: (changed) => {
|
|
2295
|
+
closeEditor(changed, draft.target);
|
|
2296
|
+
},
|
|
2297
|
+
onBusyChange: setCatalogBusy
|
|
2298
|
+
}, draft.target.provider),
|
|
2299
|
+
addRow === void 0 ? null : renderSlot("settings.models.provider-card", {
|
|
2300
|
+
provider: addRow.entry,
|
|
2301
|
+
configured: addRow.configured,
|
|
2302
|
+
keyConfigured: keyConfiguredOf(addRow)
|
|
2303
|
+
}, { entryKey: addRow.entry.settingsNs })
|
|
2304
|
+
]
|
|
2305
|
+
}) : null,
|
|
2306
|
+
mounted("custom") && piAi !== void 0 ? (0, react_jsx_runtime.jsx)("div", {
|
|
2307
|
+
id: `${addId}-custom-panel`,
|
|
2308
|
+
...bothOffered ? {
|
|
2309
|
+
role: "tabpanel",
|
|
2310
|
+
"aria-labelledby": `${addId}-custom`
|
|
2311
|
+
} : {},
|
|
2312
|
+
hidden: mode !== "custom",
|
|
2313
|
+
className: ModelsSection_module_css_default["addPanel"],
|
|
2314
|
+
children: (0, react_jsx_runtime.jsx)(CustomProviderCard, {
|
|
2315
|
+
taken: state.rows.map((row) => row.entry.provider),
|
|
2316
|
+
protocols,
|
|
2317
|
+
revision: piAi.revision,
|
|
2318
|
+
operations,
|
|
2319
|
+
t,
|
|
2320
|
+
readOnly: !state.writable,
|
|
2321
|
+
onClose: (changed) => {
|
|
2322
|
+
closeAdd();
|
|
2323
|
+
if (changed) controller.load();
|
|
2324
|
+
},
|
|
2325
|
+
onBusyChange: setCustomBusy
|
|
2326
|
+
})
|
|
2327
|
+
}) : null
|
|
2164
2328
|
]
|
|
2165
|
-
}) :
|
|
2166
|
-
className: ModelsSection_module_css_default["addCard"],
|
|
2167
|
-
children: (0, react_jsx_runtime.jsx)(CustomProviderCard, {
|
|
2168
|
-
taken: state.rows.map((row) => row.entry.provider),
|
|
2169
|
-
protocols,
|
|
2170
|
-
/* v8 ignore next -- the card only opens from a button disabled without this namespace */
|
|
2171
|
-
revision: state.namespaces.get("llm-pi-ai")?.revision ?? 0,
|
|
2172
|
-
operations,
|
|
2173
|
-
t,
|
|
2174
|
-
readOnly: !state.writable,
|
|
2175
|
-
onClose: (changed) => {
|
|
2176
|
-
setDeclaring(false);
|
|
2177
|
-
if (changed) controller.load();
|
|
2178
|
-
}
|
|
2179
|
-
})
|
|
2180
|
-
}) : (0, react_jsx_runtime.jsxs)("div", {
|
|
2329
|
+
}) : catalogOffered || customOffered ? (0, react_jsx_runtime.jsx)("div", {
|
|
2181
2330
|
className: ModelsSection_module_css_default["addActions"],
|
|
2182
|
-
children:
|
|
2331
|
+
children: (0, react_jsx_runtime.jsxs)("button", {
|
|
2183
2332
|
type: "button",
|
|
2184
2333
|
className: ModelsSection_module_css_default["addButton"],
|
|
2185
|
-
disabled:
|
|
2334
|
+
disabled: !state.writable || !catalogEnabled && !customEnabled,
|
|
2186
2335
|
onClick: () => {
|
|
2187
2336
|
const first = addable[0];
|
|
2188
|
-
|
|
2189
|
-
if (first === void 0) return;
|
|
2337
|
+
const initial = catalogEnabled ? "catalog" : "custom";
|
|
2190
2338
|
setSavedTarget(void 0);
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2339
|
+
setEditing(first === void 0 ? void 0 : targetOf(first.row));
|
|
2340
|
+
setAddMode(initial);
|
|
2341
|
+
setVisited(new Set([initial]));
|
|
2342
|
+
setAddOpen(true);
|
|
2194
2343
|
},
|
|
2195
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
2196
|
-
})
|
|
2197
|
-
|
|
2198
|
-
className: ModelsSection_module_css_default["addButton"],
|
|
2199
|
-
disabled: protocols.length === 0 || !state.writable,
|
|
2200
|
-
onClick: () => {
|
|
2201
|
-
setSavedTarget(void 0);
|
|
2202
|
-
setAdding(false);
|
|
2203
|
-
setEditing(void 0);
|
|
2204
|
-
setDeclaring(true);
|
|
2205
|
-
},
|
|
2206
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutline16, { size: 14 }), t("customAdd")]
|
|
2207
|
-
})]
|
|
2208
|
-
})
|
|
2344
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutlineRegular, { size: 14 }), t("add")]
|
|
2345
|
+
})
|
|
2346
|
+
}) : null
|
|
2209
2347
|
}),
|
|
2210
2348
|
renderSlot("settings.models.footer", {}),
|
|
2211
2349
|
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
@@ -2238,7 +2376,7 @@ window.__ModuleLoader__.load({
|
|
|
2238
2376
|
}
|
|
2239
2377
|
//#endregion
|
|
2240
2378
|
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-settings-models/src/client/OnboardingModal.module.css.mjs
|
|
2241
|
-
const css$2 = ".B3K-6a_dialog{width:min(600px,100%);padding:0}.B3K-6a_content{box-sizing:border-box;flex-direction:column;
|
|
2379
|
+
const css$2 = ".B3K-6a_dialog{width:min(600px,100%);max-height:100%;padding:0}.B3K-6a_content{box-sizing:border-box;flex-direction:column;min-height:0;padding:28px;display:flex;overflow-y:auto}.B3K-6a_title{color:var(--dsw-alias-label-primary);outline:none;margin:0;font-size:20px;font-weight:500;line-height:28px}.B3K-6a_body{margin-top:20px}@media (width<=560px){.B3K-6a_content{padding:24px}}";
|
|
2242
2380
|
const tagId$2 = "@deepseek-ai/dsh-client-ui-settings-models/OnboardingModal.module.css";
|
|
2243
2381
|
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
2244
2382
|
const tag = document.createElement("style");
|
|
@@ -2333,20 +2471,34 @@ window.__ModuleLoader__.load({
|
|
|
2333
2471
|
* @returns the onboarding modal or null when onboarding needs no intervention.
|
|
2334
2472
|
*/
|
|
2335
2473
|
function DeepSeekOnboardingDialog(props) {
|
|
2336
|
-
const { complete, controller, useModels, operations, schema, t } = props;
|
|
2474
|
+
const { complete, controller, useModels, operations, schema, t, renderSlot, automatic, explicit = false } = props;
|
|
2475
|
+
const [apiKey, setApiKey] = (0, react.useState)(explicit);
|
|
2337
2476
|
const state = useModels((snapshot) => snapshot);
|
|
2338
2477
|
const readiness = onboardingReadiness(state);
|
|
2339
2478
|
(0, react.useEffect)(() => {
|
|
2340
|
-
if (state.status === "idle") controller.load();
|
|
2341
|
-
}, [
|
|
2479
|
+
if ((automatic || explicit) && state.status === "idle") controller.load();
|
|
2480
|
+
}, [
|
|
2481
|
+
controller,
|
|
2482
|
+
state.status,
|
|
2483
|
+
automatic,
|
|
2484
|
+
explicit
|
|
2485
|
+
]);
|
|
2342
2486
|
(0, react.useEffect)(() => {
|
|
2343
|
-
if (readiness.kind === "adapter-absent" || readiness.kind === "provider-ready" || readiness.kind === "unavailable") complete();
|
|
2344
|
-
}, [
|
|
2487
|
+
if (!automatic && !explicit || readiness.kind === "adapter-absent" || !explicit && readiness.kind === "provider-ready" || readiness.kind === "unavailable") complete();
|
|
2488
|
+
}, [
|
|
2489
|
+
complete,
|
|
2490
|
+
readiness.kind,
|
|
2491
|
+
explicit,
|
|
2492
|
+
automatic
|
|
2493
|
+
]);
|
|
2494
|
+
if (!automatic && !explicit) return null;
|
|
2345
2495
|
switch (readiness.kind) {
|
|
2346
2496
|
case "loading":
|
|
2347
2497
|
case "adapter-absent":
|
|
2348
|
-
case "provider-ready":
|
|
2349
2498
|
case "unavailable": return null;
|
|
2499
|
+
case "provider-ready":
|
|
2500
|
+
if (!explicit) return null;
|
|
2501
|
+
break;
|
|
2350
2502
|
case "credential-missing": break;
|
|
2351
2503
|
/* v8 ignore next -- every current readiness variant is handled above */
|
|
2352
2504
|
default: return assertNever$1(readiness);
|
|
@@ -2362,7 +2514,7 @@ window.__ModuleLoader__.load({
|
|
|
2362
2514
|
}
|
|
2363
2515
|
controller.load();
|
|
2364
2516
|
};
|
|
2365
|
-
|
|
2517
|
+
const editor = (0, react_jsx_runtime.jsxs)(OnboardingModal, {
|
|
2366
2518
|
title: t("onboardingTitle"),
|
|
2367
2519
|
children: [(0, react_jsx_runtime.jsx)("p", {
|
|
2368
2520
|
className: DeepSeekOnboardingDialog_module_css_default.description,
|
|
@@ -2389,6 +2541,12 @@ window.__ModuleLoader__.load({
|
|
|
2389
2541
|
})
|
|
2390
2542
|
})]
|
|
2391
2543
|
});
|
|
2544
|
+
return apiKey ? editor : renderSlot("settings.models.sign-in", {
|
|
2545
|
+
complete,
|
|
2546
|
+
useApiKey: () => {
|
|
2547
|
+
setApiKey(true);
|
|
2548
|
+
}
|
|
2549
|
+
}, { fallback: editor });
|
|
2392
2550
|
}
|
|
2393
2551
|
//#endregion
|
|
2394
2552
|
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-settings-models/src/client/WelcomeNotice.module.css.mjs
|
|
@@ -2466,7 +2624,7 @@ window.__ModuleLoader__.load({
|
|
|
2466
2624
|
//#endregion
|
|
2467
2625
|
//#region lib/types/onboarding-copy.js
|
|
2468
2626
|
/** Durable settings namespace for product-wide GUI onboarding facts. */
|
|
2469
|
-
const WELCOME_NOTICE_SETTINGS_NAMESPACE = "ui-
|
|
2627
|
+
const WELCOME_NOTICE_SETTINGS_NAMESPACE = "ui-settings-general";
|
|
2470
2628
|
/** Field storing the last welcome notice version the user acknowledged. */
|
|
2471
2629
|
const WELCOME_NOTICE_ACK_FIELD = "welcomeNoticeVersion";
|
|
2472
2630
|
/**
|
|
@@ -2482,16 +2640,6 @@ window.__ModuleLoader__.load({
|
|
|
2482
2640
|
* remote browser's memory-mode scope never answers and the acknowledgement
|
|
2483
2641
|
* stays process-local here.
|
|
2484
2642
|
*/
|
|
2485
|
-
/**
|
|
2486
|
-
* Accept any object section verbatim; a malformed durable value reads as an
|
|
2487
|
-
* empty section, so the notice treats it as unacknowledged instead of leaving
|
|
2488
|
-
* the scope stuck on its previous value.
|
|
2489
|
-
* @param section - the wire section value.
|
|
2490
|
-
* @returns the section object, or an empty one for non-object values.
|
|
2491
|
-
*/
|
|
2492
|
-
function decodeWelcomeSection(section) {
|
|
2493
|
-
return typeof section === "object" && section !== null && !Array.isArray(section) ? section : {};
|
|
2494
|
-
}
|
|
2495
2643
|
/* v8 ignore next 3 -- closed-union default only defends future source widening */
|
|
2496
2644
|
function assertNever(_value) {
|
|
2497
2645
|
throw new Error("unexpected welcome settings status");
|
|
@@ -2690,7 +2838,14 @@ window.__ModuleLoader__.load({
|
|
|
2690
2838
|
deleteDescriptionWithCredential: "Deleting {provider} removes its configuration and stored API key.",
|
|
2691
2839
|
deleteConfirm: "Delete {provider}",
|
|
2692
2840
|
deleting: "Deleting {provider}…",
|
|
2693
|
-
add: "Add provider",
|
|
2841
|
+
add: "Add model provider",
|
|
2842
|
+
addMode: "How to add",
|
|
2843
|
+
addCatalog: "Third-party model provider",
|
|
2844
|
+
addCustom: "Custom model API",
|
|
2845
|
+
addCatalogHint: "Pick OpenAI, Anthropic, Kimi, or another provider from the built-in catalog and enter its API key.",
|
|
2846
|
+
addCustomHint: "Connect a relay, a self-hosted server, or any other OpenAI- or Anthropic-compatible endpoint by its base URL, protocol, and models.",
|
|
2847
|
+
addCatalogExhausted: "Every catalog provider is already configured.",
|
|
2848
|
+
addCustomUnavailable: "No API protocol is available to declare.",
|
|
2694
2849
|
provider: "Provider",
|
|
2695
2850
|
close: "Close",
|
|
2696
2851
|
cancel: "Cancel",
|
|
@@ -2711,9 +2866,8 @@ window.__ModuleLoader__.load({
|
|
|
2711
2866
|
customized: "Customized settings",
|
|
2712
2867
|
baseUrl: "Base URL",
|
|
2713
2868
|
baseUrlDefault: "Provider default",
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
deepSeekEndpointHint: "Use an endpoint compatible with the configured connection.",
|
|
2869
|
+
deepSeekBaseUrl: "https://api.deepseek.com/anthropic",
|
|
2870
|
+
deepSeekEndpointHint: "Use an API endpoint compatible with Anthropic Messages.",
|
|
2717
2871
|
models: "Models",
|
|
2718
2872
|
modelsInherited: "Using the adapter defaults",
|
|
2719
2873
|
modelsCustomized: "Customized model catalog",
|
|
@@ -2741,7 +2895,7 @@ window.__ModuleLoader__.load({
|
|
|
2741
2895
|
modelNameInvalid: "Display name cannot be empty.",
|
|
2742
2896
|
modelContextInvalid: "Context window must be a positive count, like 131072, 256K, or 1M.",
|
|
2743
2897
|
modelMaxTokensInvalid: "Max output tokens must be a positive count, like 8192, 64K, or 1M.",
|
|
2744
|
-
advancedHint: "Other fields live in
|
|
2898
|
+
advancedHint: "Other fields live in cordis.patch.yml; edit that section directly.",
|
|
2745
2899
|
modelCapacityInvalid: "A capacity must be a number, optionally suffixed K or M.",
|
|
2746
2900
|
modelDuplicate: "Each model ID may appear once.",
|
|
2747
2901
|
fetchModels: "Fetch available models",
|
|
@@ -2755,8 +2909,6 @@ window.__ModuleLoader__.load({
|
|
|
2755
2909
|
fetchSelectAll: "Select all",
|
|
2756
2910
|
fetchDeselectAll: "Deselect all",
|
|
2757
2911
|
fetchAdopt: "Add selected",
|
|
2758
|
-
customAdd: "Add a custom provider",
|
|
2759
|
-
customTitle: "Custom provider",
|
|
2760
2912
|
customTag: "Custom",
|
|
2761
2913
|
customRoute: "Provider ID",
|
|
2762
2914
|
customRouteHint: "Lowercase identifier, starting with a letter, that uniquely names this provider in requests and as its credential name.",
|
|
@@ -2765,10 +2917,14 @@ window.__ModuleLoader__.load({
|
|
|
2765
2917
|
customDisplayName: "Display name",
|
|
2766
2918
|
customApi: "API protocol",
|
|
2767
2919
|
customApiUnset: "Not selected",
|
|
2920
|
+
protocolOpenAiCompletions: "OpenAI Chat Completions",
|
|
2921
|
+
protocolOpenAiResponses: "OpenAI Responses",
|
|
2922
|
+
protocolAnthropicMessages: "Anthropic Messages",
|
|
2768
2923
|
customNeedsBaseUrl: "A custom provider needs a base URL.",
|
|
2769
2924
|
customBaseUrlInvalid: "Enter a valid HTTP or HTTPS URL.",
|
|
2770
2925
|
customNeedsModels: "A custom provider needs at least one model.",
|
|
2771
2926
|
customBaseUrlPlaceholder: "https://gateway.example/v1",
|
|
2927
|
+
customAnthropicBaseUrlPlaceholder: "https://gateway.example",
|
|
2772
2928
|
settingsPathUnresolvable: "unresolvable settings path",
|
|
2773
2929
|
create: "Create provider",
|
|
2774
2930
|
creating: "Creating…",
|
|
@@ -2787,7 +2943,7 @@ window.__ModuleLoader__.load({
|
|
|
2787
2943
|
const zh = {
|
|
2788
2944
|
nav: "模型",
|
|
2789
2945
|
title: "模型",
|
|
2790
|
-
intro: "
|
|
2946
|
+
intro: "填入各提供商的 API 密钥即可使用其模型。",
|
|
2791
2947
|
edit: "编辑",
|
|
2792
2948
|
editProvider: "编辑 {provider}",
|
|
2793
2949
|
remove: "删除",
|
|
@@ -2797,8 +2953,15 @@ window.__ModuleLoader__.load({
|
|
|
2797
2953
|
deleteDescriptionWithCredential: "删除 {provider} 会移除其配置和存储的 API 密钥。",
|
|
2798
2954
|
deleteConfirm: "删除 {provider}",
|
|
2799
2955
|
deleting: "正在删除 {provider}…",
|
|
2800
|
-
add: "
|
|
2801
|
-
|
|
2956
|
+
add: "添加模型提供商",
|
|
2957
|
+
addMode: "添加方式",
|
|
2958
|
+
addCatalog: "第三方模型提供商",
|
|
2959
|
+
addCustom: "自定义模型 API",
|
|
2960
|
+
addCatalogHint: "从内置目录中选择 OpenAI、Anthropic、Kimi 等提供商,填入其 API 密钥即可使用。",
|
|
2961
|
+
addCustomHint: "连接中转站、自部署服务或其他兼容 OpenAI / Anthropic 协议的接口,需填写 API 地址、协议和模型。",
|
|
2962
|
+
addCatalogExhausted: "目录中的提供商都已添加。",
|
|
2963
|
+
addCustomUnavailable: "没有可用的 API 协议。",
|
|
2964
|
+
provider: "提供商",
|
|
2802
2965
|
close: "关闭",
|
|
2803
2966
|
cancel: "取消",
|
|
2804
2967
|
apply: "保存",
|
|
@@ -2807,7 +2970,7 @@ window.__ModuleLoader__.load({
|
|
|
2807
2970
|
credentialConfigured: "API 密钥已配置",
|
|
2808
2971
|
credentialMissing: "API 密钥缺失",
|
|
2809
2972
|
readOnly: "当前部署的设置文档为只读。",
|
|
2810
|
-
loadFailed: "
|
|
2973
|
+
loadFailed: "加载提供商目录失败",
|
|
2811
2974
|
conflict: "这张卡片打开期间,这些设置已被其他地方改动。请关闭后重新打开,在当前值上编辑。",
|
|
2812
2975
|
retry: "重试",
|
|
2813
2976
|
keyInput: "API 密钥",
|
|
@@ -2817,10 +2980,9 @@ window.__ModuleLoader__.load({
|
|
|
2817
2980
|
keyEnvLocked: "由启动环境提供(只读)",
|
|
2818
2981
|
customized: "自定义设置",
|
|
2819
2982
|
baseUrl: "API 地址",
|
|
2820
|
-
baseUrlDefault: "
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
deepSeekEndpointHint: "请填写与当前连接配置兼容的 API 地址。",
|
|
2983
|
+
baseUrlDefault: "提供商默认",
|
|
2984
|
+
deepSeekBaseUrl: "https://api.deepseek.com/anthropic",
|
|
2985
|
+
deepSeekEndpointHint: "请填写兼容 Anthropic Messages 协议的 API 地址。",
|
|
2824
2986
|
models: "模型目录",
|
|
2825
2987
|
modelsInherited: "正在使用适配器默认模型",
|
|
2826
2988
|
modelsCustomized: "已自定义模型目录",
|
|
@@ -2830,9 +2992,9 @@ window.__ModuleLoader__.load({
|
|
|
2830
2992
|
modelName: "显示名称",
|
|
2831
2993
|
modelNamePlaceholder: "留空时使用模型 ID",
|
|
2832
2994
|
contextWindow: "上下文窗口",
|
|
2833
|
-
contextWindowPlaceholder: "
|
|
2995
|
+
contextWindowPlaceholder: "使用提供商默认值",
|
|
2834
2996
|
maxTokens: "最大输出 token 数",
|
|
2835
|
-
maxTokensPlaceholder: "
|
|
2997
|
+
maxTokensPlaceholder: "使用提供商默认值",
|
|
2836
2998
|
modelAdvanced: "模型选项",
|
|
2837
2999
|
modelInputTypes: "输入类型",
|
|
2838
3000
|
modelInputText: "文本",
|
|
@@ -2841,43 +3003,45 @@ window.__ModuleLoader__.load({
|
|
|
2841
3003
|
removeModel: "删除模型",
|
|
2842
3004
|
modelsEmpty: "模型选择器中将不显示任何模型;目录外 ID 仍可直接发送。",
|
|
2843
3005
|
keyBlank: "请输入 API 密钥;留空则保持已存储的密钥。",
|
|
2844
|
-
keyBlankNew: "请输入 API
|
|
3006
|
+
keyBlankNew: "请输入 API 密钥;若该提供商以其他方式鉴权,可以留空。",
|
|
2845
3007
|
keyIllegalCharacters: "该 API 密钥格式错误,请检查。",
|
|
2846
3008
|
modelIdRequired: "模型 ID 不能为空。",
|
|
2847
3009
|
modelIdDuplicate: "模型 ID 不能重复。",
|
|
2848
3010
|
modelNameInvalid: "显示名称不能为空。",
|
|
2849
3011
|
modelContextInvalid: "上下文窗口必须是正数,例如 131072、256K 或 1M。",
|
|
2850
3012
|
modelMaxTokensInvalid: "最大输出 token 数必须是正数,例如 8192、64K 或 1M。",
|
|
2851
|
-
advancedHint: "其余字段在
|
|
3013
|
+
advancedHint: "其余字段在 cordis.patch.yml 中,请直接编辑对应段。",
|
|
2852
3014
|
modelCapacityInvalid: "容量需为数字,可加 K 或 M 后缀。",
|
|
2853
3015
|
modelDuplicate: "每个模型 ID 只能出现一次。",
|
|
2854
3016
|
fetchModels: "获取可用模型",
|
|
2855
|
-
fetching: "
|
|
3017
|
+
fetching: "正在询问提供商…",
|
|
2856
3018
|
fetchNeedsBaseUrl: "请先填写 API 地址,再获取。",
|
|
2857
|
-
fetchEmpty: "
|
|
3019
|
+
fetchEmpty: "该提供商没有列出任何模型,请手动添加。",
|
|
2858
3020
|
fetchTitle: "选择要添加的模型",
|
|
2859
|
-
fetchDescription: "
|
|
3021
|
+
fetchDescription: "以下是模型提供商的可用模型,勾选要添加的模型。",
|
|
2860
3022
|
fetchSearch: "搜索模型",
|
|
2861
3023
|
fetchNoMatches: "没有匹配的模型。",
|
|
2862
3024
|
fetchSelectAll: "全选",
|
|
2863
3025
|
fetchDeselectAll: "取消全选",
|
|
2864
3026
|
fetchAdopt: "添加所选",
|
|
2865
|
-
customAdd: "添加自定义提供方",
|
|
2866
|
-
customTitle: "自定义提供方",
|
|
2867
3027
|
customTag: "自定义",
|
|
2868
3028
|
customRoute: "Provider ID",
|
|
2869
|
-
customRouteHint: "
|
|
3029
|
+
customRouteHint: "以小写字母开头的标识,在请求中唯一标识该提供商,并用于派生凭据名。",
|
|
2870
3030
|
customRouteInvalid: "需以小写字母开头,之后可用小写字母、数字和短横线。",
|
|
2871
|
-
customRouteTaken: "
|
|
3031
|
+
customRouteTaken: "已有提供商使用了这个 ID。",
|
|
2872
3032
|
customDisplayName: "显示名称",
|
|
2873
3033
|
customApi: "API 协议",
|
|
2874
3034
|
customApiUnset: "未选择",
|
|
2875
|
-
|
|
3035
|
+
protocolOpenAiCompletions: "OpenAI Chat Completions",
|
|
3036
|
+
protocolOpenAiResponses: "OpenAI Responses",
|
|
3037
|
+
protocolAnthropicMessages: "Anthropic Messages",
|
|
3038
|
+
customNeedsBaseUrl: "自定义模型 API 需要填写 API 地址。",
|
|
2876
3039
|
customBaseUrlInvalid: "请输入有效的 HTTP 或 HTTPS 地址。",
|
|
2877
|
-
customNeedsModels: "
|
|
3040
|
+
customNeedsModels: "自定义模型 API 至少需要一个模型。",
|
|
2878
3041
|
customBaseUrlPlaceholder: "https://gateway.example/v1",
|
|
3042
|
+
customAnthropicBaseUrlPlaceholder: "https://gateway.example",
|
|
2879
3043
|
settingsPathUnresolvable: "无法解析设置路径",
|
|
2880
|
-
create: "
|
|
3044
|
+
create: "创建提供商",
|
|
2881
3045
|
creating: "创建中…",
|
|
2882
3046
|
welcomeTitle: "内测声明",
|
|
2883
3047
|
welcomeBody: "DeepSeek Harness 目前的 0.1 版本仍处在面向 Harness 开发者进行测试的阶段,还有许多地方需要持续改进和打磨,希望听取广大开发者的反馈建议。预计 DeepSeek Harness 的核心插件以及基础 API 都会在接下来的一段时间内快速迭代、持续演化。\n\n我们期待与全球开发者一起,在开源、开放、可复用、可组合的基础设施之上,共同探索智能上限。欢迎全球 Harness 开发者加入 DSH 插件生态。",
|
|
@@ -2891,6 +3055,904 @@ window.__ModuleLoader__.load({
|
|
|
2891
3055
|
keyRequired: "请输入 API 密钥后继续。"
|
|
2892
3056
|
};
|
|
2893
3057
|
//#endregion
|
|
3058
|
+
//#region ../../../vendor/cosmokit/src/misc.ts
|
|
3059
|
+
/** Return true when a value is `null` or `undefined`. */
|
|
3060
|
+
function isNullable(value) {
|
|
3061
|
+
return value === null || value === void 0;
|
|
3062
|
+
}
|
|
3063
|
+
/** Return true for non-array object values. */
|
|
3064
|
+
function isPlainObject(data) {
|
|
3065
|
+
return data && typeof data === "object" && !Array.isArray(data);
|
|
3066
|
+
}
|
|
3067
|
+
/** Filter object entries and return a new object. */
|
|
3068
|
+
function filterKeys(object, filter) {
|
|
3069
|
+
return Object.fromEntries(Object.entries(object).filter(([key, value]) => filter(key, value)));
|
|
3070
|
+
}
|
|
3071
|
+
/** Map object values while preserving the original key set. */
|
|
3072
|
+
function mapValues(object, transform) {
|
|
3073
|
+
return Object.fromEntries(Object.entries(object).map(([key, value]) => [key, transform(value, key)]));
|
|
3074
|
+
}
|
|
3075
|
+
/** Pick selected keys from an object, optionally including `undefined` values. */
|
|
3076
|
+
function pick(source, keys, forced) {
|
|
3077
|
+
if (!keys) return { ...source };
|
|
3078
|
+
const result = {};
|
|
3079
|
+
for (const key of keys) if (forced || source[key] !== void 0) result[key] = source[key];
|
|
3080
|
+
return result;
|
|
3081
|
+
}
|
|
3082
|
+
//#endregion
|
|
3083
|
+
//#region ../../../vendor/cosmokit/src/volatile.ts
|
|
3084
|
+
/** Shared config references used by schema validators and plugin runtimes. */
|
|
3085
|
+
const write = Symbol.for("cosmokit.volatile.write");
|
|
3086
|
+
function snapshot(value, ancestors = /* @__PURE__ */ new Set()) {
|
|
3087
|
+
if (typeof value === "function") throw new TypeError("volatile config cannot contain functions");
|
|
3088
|
+
if (value === null || typeof value !== "object") return value;
|
|
3089
|
+
if (ancestors.has(value)) throw new TypeError("volatile config cannot contain cycles");
|
|
3090
|
+
ancestors.add(value);
|
|
3091
|
+
try {
|
|
3092
|
+
if (Array.isArray(value)) return Object.freeze(value.map((item) => snapshot(item, ancestors)));
|
|
3093
|
+
if (Object.getPrototypeOf(value) !== Object.prototype && Object.getPrototypeOf(value) !== null) throw new TypeError("volatile config objects must be plain objects or arrays");
|
|
3094
|
+
return Object.freeze(Object.fromEntries(Object.entries(value).map(([key, item]) => [key, snapshot(item, ancestors)])));
|
|
3095
|
+
} finally {
|
|
3096
|
+
ancestors.delete(value);
|
|
3097
|
+
}
|
|
3098
|
+
}
|
|
3099
|
+
/**
|
|
3100
|
+
* Create a detached reference containing an immutable copy of the supplied data.
|
|
3101
|
+
* @param value - validated config data; class instances and functions are unsupported.
|
|
3102
|
+
* @returns a reference whose value is updated only by its owning runtime.
|
|
3103
|
+
*/
|
|
3104
|
+
function createVolatile(value) {
|
|
3105
|
+
let current = snapshot(value);
|
|
3106
|
+
return Object.freeze({
|
|
3107
|
+
get: () => current,
|
|
3108
|
+
[write]: (value) => {
|
|
3109
|
+
current = value;
|
|
3110
|
+
}
|
|
3111
|
+
});
|
|
3112
|
+
}
|
|
3113
|
+
/**
|
|
3114
|
+
* Identify references across ESM/CJS copies of the shared library.
|
|
3115
|
+
* @param value - a parsed config value.
|
|
3116
|
+
* @returns whether the value implements the shared reference protocol.
|
|
3117
|
+
*/
|
|
3118
|
+
function isVolatile(value) {
|
|
3119
|
+
return typeof value === "object" && value !== null && write in value;
|
|
3120
|
+
}
|
|
3121
|
+
//#endregion
|
|
3122
|
+
//#region ../../../vendor/cosmokit/src/types.ts
|
|
3123
|
+
/** Test values using `instanceof` with a `toStringTag` fallback. */
|
|
3124
|
+
function is(type, value) {
|
|
3125
|
+
if (arguments.length === 1) return (value) => is(type, value);
|
|
3126
|
+
return type in globalThis && value instanceof globalThis[type] || Object.prototype.toString.call(value).slice(8, -1) === type;
|
|
3127
|
+
}
|
|
3128
|
+
function isArrayBufferLike(value) {
|
|
3129
|
+
return is("ArrayBuffer", value) || is("SharedArrayBuffer", value);
|
|
3130
|
+
}
|
|
3131
|
+
function isArrayBufferSource(value) {
|
|
3132
|
+
return isArrayBufferLike(value) || ArrayBuffer.isView(value);
|
|
3133
|
+
}
|
|
3134
|
+
let Binary;
|
|
3135
|
+
(function(_Binary) {
|
|
3136
|
+
_Binary.is = isArrayBufferLike;
|
|
3137
|
+
_Binary.isSource = isArrayBufferSource;
|
|
3138
|
+
function fromSource(source) {
|
|
3139
|
+
if (ArrayBuffer.isView(source)) return source.buffer.slice(source.byteOffset, source.byteOffset + source.byteLength);
|
|
3140
|
+
else return source;
|
|
3141
|
+
}
|
|
3142
|
+
_Binary.fromSource = fromSource;
|
|
3143
|
+
function toBase64(source) {
|
|
3144
|
+
source = fromSource(source);
|
|
3145
|
+
if (typeof Buffer !== "undefined") return Buffer.from(source).toString("base64");
|
|
3146
|
+
let binary = "";
|
|
3147
|
+
const bytes = new Uint8Array(source);
|
|
3148
|
+
for (let i = 0; i < bytes.byteLength; i++) binary += String.fromCharCode(bytes[i]);
|
|
3149
|
+
return btoa(binary);
|
|
3150
|
+
}
|
|
3151
|
+
_Binary.toBase64 = toBase64;
|
|
3152
|
+
function fromBase64(source) {
|
|
3153
|
+
if (typeof Buffer !== "undefined") return fromSource(Buffer.from(source, "base64"));
|
|
3154
|
+
return Uint8Array.from(atob(source), (c) => c.charCodeAt(0));
|
|
3155
|
+
}
|
|
3156
|
+
_Binary.fromBase64 = fromBase64;
|
|
3157
|
+
function toHex(source) {
|
|
3158
|
+
source = fromSource(source);
|
|
3159
|
+
if (typeof Buffer !== "undefined") return Buffer.from(source).toString("hex");
|
|
3160
|
+
return Array.from(new Uint8Array(source), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
3161
|
+
}
|
|
3162
|
+
_Binary.toHex = toHex;
|
|
3163
|
+
function fromHex(source) {
|
|
3164
|
+
if (typeof Buffer !== "undefined") return fromSource(Buffer.from(source, "hex"));
|
|
3165
|
+
const hex = source.length % 2 === 0 ? source : source.slice(0, source.length - 1);
|
|
3166
|
+
const buffer = [];
|
|
3167
|
+
for (let i = 0; i < hex.length; i += 2) buffer.push(parseInt(`${hex[i]}${hex[i + 1]}`, 16));
|
|
3168
|
+
return Uint8Array.from(buffer).buffer;
|
|
3169
|
+
}
|
|
3170
|
+
_Binary.fromHex = fromHex;
|
|
3171
|
+
})(Binary || (Binary = {}));
|
|
3172
|
+
Binary.fromBase64;
|
|
3173
|
+
Binary.toBase64;
|
|
3174
|
+
Binary.fromHex;
|
|
3175
|
+
Binary.toHex;
|
|
3176
|
+
/** Deep-clone common JavaScript values while preserving prototypes and cycles. */
|
|
3177
|
+
function clone(source, refs = /* @__PURE__ */ new Map()) {
|
|
3178
|
+
if (!source || typeof source !== "object") return source;
|
|
3179
|
+
if (is("Date", source)) return new Date(source.valueOf());
|
|
3180
|
+
if (is("RegExp", source)) return new RegExp(source.source, source.flags);
|
|
3181
|
+
if (isArrayBufferLike(source)) return source.slice(0);
|
|
3182
|
+
if (ArrayBuffer.isView(source)) return source.buffer.slice(source.byteOffset, source.byteOffset + source.byteLength);
|
|
3183
|
+
const cached = refs.get(source);
|
|
3184
|
+
if (cached) return cached;
|
|
3185
|
+
if (Array.isArray(source)) {
|
|
3186
|
+
const result = [];
|
|
3187
|
+
refs.set(source, result);
|
|
3188
|
+
source.forEach((value, index) => {
|
|
3189
|
+
result[index] = Reflect.apply(clone, null, [value, refs]);
|
|
3190
|
+
});
|
|
3191
|
+
return result;
|
|
3192
|
+
}
|
|
3193
|
+
const result = Object.create(Object.getPrototypeOf(source));
|
|
3194
|
+
refs.set(source, result);
|
|
3195
|
+
for (const key of Reflect.ownKeys(source)) {
|
|
3196
|
+
const descriptor = { ...Reflect.getOwnPropertyDescriptor(source, key) };
|
|
3197
|
+
if ("value" in descriptor) descriptor.value = Reflect.apply(clone, null, [descriptor.value, refs]);
|
|
3198
|
+
Reflect.defineProperty(result, key, descriptor);
|
|
3199
|
+
}
|
|
3200
|
+
return result;
|
|
3201
|
+
}
|
|
3202
|
+
/**
|
|
3203
|
+
* Compare values recursively, treating two volatile references as equal regardless of value.
|
|
3204
|
+
* Strict comparison distinguishes null/undefined, treats opaque objects by identity,
|
|
3205
|
+
* compares URLs by normalized href, treats array holes as undefined, and considers distinct cyclic structures unequal.
|
|
3206
|
+
* @param a - first value.
|
|
3207
|
+
* @param b - second value.
|
|
3208
|
+
* @param strict - whether to require strict data equality outside volatile references.
|
|
3209
|
+
* @returns whether the values compare equal.
|
|
3210
|
+
*/
|
|
3211
|
+
function deepEqual(a, b, strict) {
|
|
3212
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
3213
|
+
function compare(a, b) {
|
|
3214
|
+
if (a === b) return true;
|
|
3215
|
+
if (isVolatile(a) || isVolatile(b)) return isVolatile(a) && isVolatile(b);
|
|
3216
|
+
if (!strict && isNullable(a) && isNullable(b)) return true;
|
|
3217
|
+
if (typeof a !== typeof b || typeof a !== "object" || !a || !b) return false;
|
|
3218
|
+
if (ancestors.has(a)) return false;
|
|
3219
|
+
function check(test, then) {
|
|
3220
|
+
return test(a) ? test(b) ? then(a, b) : false : test(b) ? false : void 0;
|
|
3221
|
+
}
|
|
3222
|
+
ancestors.add(a);
|
|
3223
|
+
try {
|
|
3224
|
+
return check(Array.isArray, (a, b) => {
|
|
3225
|
+
if (a.length !== b.length) return false;
|
|
3226
|
+
for (let index = 0; index < a.length; index++) if (!compare(a[index], b[index])) return false;
|
|
3227
|
+
return true;
|
|
3228
|
+
}) ?? 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) => {
|
|
3229
|
+
if (a.byteLength !== b.byteLength) return false;
|
|
3230
|
+
const viewA = new Uint8Array(a);
|
|
3231
|
+
const viewB = new Uint8Array(b);
|
|
3232
|
+
for (let i = 0; i < viewA.length; i++) if (viewA[i] !== viewB[i]) return false;
|
|
3233
|
+
return true;
|
|
3234
|
+
}) ?? ((!strict || [a, b].every((value) => Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null)) && Object.keys({
|
|
3235
|
+
...a,
|
|
3236
|
+
...b
|
|
3237
|
+
}).every((key) => compare(a[key], b[key])));
|
|
3238
|
+
} finally {
|
|
3239
|
+
ancestors.delete(a);
|
|
3240
|
+
}
|
|
3241
|
+
}
|
|
3242
|
+
return compare(a, b);
|
|
3243
|
+
}
|
|
3244
|
+
//#endregion
|
|
3245
|
+
//#region ../../../vendor/cosmokit/src/time.ts
|
|
3246
|
+
let Time;
|
|
3247
|
+
(function(_Time) {
|
|
3248
|
+
_Time.millisecond = 1;
|
|
3249
|
+
const second = _Time.second = 1e3;
|
|
3250
|
+
const minute = _Time.minute = second * 60;
|
|
3251
|
+
const hour = _Time.hour = minute * 60;
|
|
3252
|
+
const day = _Time.day = hour * 24;
|
|
3253
|
+
const week = _Time.week = day * 7;
|
|
3254
|
+
let timezoneOffset = (/* @__PURE__ */ new Date()).getTimezoneOffset();
|
|
3255
|
+
function setTimezoneOffset(offset) {
|
|
3256
|
+
timezoneOffset = offset;
|
|
3257
|
+
}
|
|
3258
|
+
_Time.setTimezoneOffset = setTimezoneOffset;
|
|
3259
|
+
function getTimezoneOffset() {
|
|
3260
|
+
return timezoneOffset;
|
|
3261
|
+
}
|
|
3262
|
+
_Time.getTimezoneOffset = getTimezoneOffset;
|
|
3263
|
+
function getDateNumber(date = /* @__PURE__ */ new Date(), offset) {
|
|
3264
|
+
if (typeof date === "number") date = new Date(date);
|
|
3265
|
+
if (offset === void 0) offset = timezoneOffset;
|
|
3266
|
+
return Math.floor((date.valueOf() / minute - offset) / 1440);
|
|
3267
|
+
}
|
|
3268
|
+
_Time.getDateNumber = getDateNumber;
|
|
3269
|
+
function fromDateNumber(value, offset) {
|
|
3270
|
+
const date = new Date(value * day);
|
|
3271
|
+
if (offset === void 0) offset = timezoneOffset;
|
|
3272
|
+
return new Date(+date + offset * minute);
|
|
3273
|
+
}
|
|
3274
|
+
_Time.fromDateNumber = fromDateNumber;
|
|
3275
|
+
const numeric = /\d+(?:\.\d+)?/.source;
|
|
3276
|
+
const timeRegExp = new RegExp(`^${[
|
|
3277
|
+
"w(?:eek(?:s)?)?",
|
|
3278
|
+
"d(?:ay(?:s)?)?",
|
|
3279
|
+
"h(?:our(?:s)?)?",
|
|
3280
|
+
"m(?:in(?:ute)?(?:s)?)?",
|
|
3281
|
+
"s(?:ec(?:ond)?(?:s)?)?"
|
|
3282
|
+
].map((unit) => `(${numeric}${unit})?`).join("")}$`);
|
|
3283
|
+
function parseTime(source) {
|
|
3284
|
+
const capture = timeRegExp.exec(source);
|
|
3285
|
+
if (!capture) return 0;
|
|
3286
|
+
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);
|
|
3287
|
+
}
|
|
3288
|
+
_Time.parseTime = parseTime;
|
|
3289
|
+
function parseDate(date) {
|
|
3290
|
+
const parsed = parseTime(date);
|
|
3291
|
+
if (parsed) date = Date.now() + parsed;
|
|
3292
|
+
else if (/^\d{1,2}(:\d{1,2}){1,2}$/.test(date)) date = `${(/* @__PURE__ */ new Date()).toLocaleDateString()}-${date}`;
|
|
3293
|
+
else if (/^\d{1,2}-\d{1,2}-\d{1,2}(:\d{1,2}){1,2}$/.test(date)) date = `${(/* @__PURE__ */ new Date()).getFullYear()}-${date}`;
|
|
3294
|
+
return date ? new Date(date) : /* @__PURE__ */ new Date();
|
|
3295
|
+
}
|
|
3296
|
+
_Time.parseDate = parseDate;
|
|
3297
|
+
function format(ms) {
|
|
3298
|
+
const abs = Math.abs(ms);
|
|
3299
|
+
if (abs >= day - hour / 2) return Math.round(ms / day) + "d";
|
|
3300
|
+
else if (abs >= hour - minute / 2) return Math.round(ms / hour) + "h";
|
|
3301
|
+
else if (abs >= minute - second / 2) return Math.round(ms / minute) + "m";
|
|
3302
|
+
else if (abs >= second) return Math.round(ms / second) + "s";
|
|
3303
|
+
return ms + "ms";
|
|
3304
|
+
}
|
|
3305
|
+
_Time.format = format;
|
|
3306
|
+
function toDigits(source, length = 2) {
|
|
3307
|
+
return source.toString().padStart(length, "0");
|
|
3308
|
+
}
|
|
3309
|
+
_Time.toDigits = toDigits;
|
|
3310
|
+
function template(template, time = /* @__PURE__ */ new Date()) {
|
|
3311
|
+
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));
|
|
3312
|
+
}
|
|
3313
|
+
_Time.template = template;
|
|
3314
|
+
})(Time || (Time = {}));
|
|
3315
|
+
//#endregion
|
|
3316
|
+
//#region ../../../vendor/schemastery/src/index.ts
|
|
3317
|
+
const kSchema = Symbol.for("schemastery");
|
|
3318
|
+
const kValidationError = Symbol.for("ValidationError");
|
|
3319
|
+
globalThis.__schemastery_index__ ??= 0;
|
|
3320
|
+
globalThis.__schemastery_refs__ = void 0;
|
|
3321
|
+
var ValidationError = class extends TypeError {
|
|
3322
|
+
options;
|
|
3323
|
+
name = "ValidationError";
|
|
3324
|
+
constructor(message, options) {
|
|
3325
|
+
let prefix = "$";
|
|
3326
|
+
for (const segment of options.path || []) if (typeof segment === "string") prefix += "." + segment;
|
|
3327
|
+
else if (typeof segment === "number") prefix += "[" + segment + "]";
|
|
3328
|
+
else if (typeof segment === "symbol") prefix += `[Symbol(${segment.toString()})]`;
|
|
3329
|
+
if (prefix.startsWith(".")) prefix = prefix.slice(1);
|
|
3330
|
+
super((prefix === "$" ? "" : `${prefix} `) + message);
|
|
3331
|
+
this.options = options;
|
|
3332
|
+
}
|
|
3333
|
+
static is(error) {
|
|
3334
|
+
return !!error?.[kValidationError];
|
|
3335
|
+
}
|
|
3336
|
+
};
|
|
3337
|
+
Object.defineProperty(ValidationError.prototype, kValidationError, { value: true });
|
|
3338
|
+
const Schema = function(options) {
|
|
3339
|
+
const schema = function(data, options = {}) {
|
|
3340
|
+
return Schema.resolve(data, schema, options)[0];
|
|
3341
|
+
};
|
|
3342
|
+
if (options.refs) {
|
|
3343
|
+
const refs = mapValues(options.refs, (options) => new Schema(options));
|
|
3344
|
+
const getRef = (uid) => refs[uid];
|
|
3345
|
+
for (const key in refs) {
|
|
3346
|
+
const options = refs[key];
|
|
3347
|
+
options.sKey = getRef(options.sKey);
|
|
3348
|
+
options.inner = getRef(options.inner);
|
|
3349
|
+
options.list = options.list && options.list.map(getRef);
|
|
3350
|
+
options.dict = options.dict && mapValues(options.dict, getRef);
|
|
3351
|
+
}
|
|
3352
|
+
return refs[options.uid];
|
|
3353
|
+
}
|
|
3354
|
+
Object.assign(schema, options);
|
|
3355
|
+
if (typeof schema.callback === "string") try {
|
|
3356
|
+
schema.callback = new Function("return " + schema.callback)();
|
|
3357
|
+
} catch {}
|
|
3358
|
+
Object.defineProperty(schema, "uid", { value: globalThis.__schemastery_index__++ });
|
|
3359
|
+
Object.setPrototypeOf(schema, Schema.prototype);
|
|
3360
|
+
schema.meta ||= {};
|
|
3361
|
+
schema.toString = schema.toString.bind(schema);
|
|
3362
|
+
return schema;
|
|
3363
|
+
};
|
|
3364
|
+
Schema.prototype = Object.create(Function.prototype);
|
|
3365
|
+
Schema.prototype[kSchema] = true;
|
|
3366
|
+
Object.defineProperty(Schema.prototype, "~standard", { get() {
|
|
3367
|
+
return {
|
|
3368
|
+
version: 1,
|
|
3369
|
+
vendor: "schemastery",
|
|
3370
|
+
validate: (value) => {
|
|
3371
|
+
try {
|
|
3372
|
+
return { value: Schema.resolve(value, this, {})[0] };
|
|
3373
|
+
} catch (error) {
|
|
3374
|
+
if (ValidationError.is(error)) return { issues: [{
|
|
3375
|
+
message: error.message,
|
|
3376
|
+
path: error.options.path
|
|
3377
|
+
}] };
|
|
3378
|
+
throw error;
|
|
3379
|
+
}
|
|
3380
|
+
}
|
|
3381
|
+
};
|
|
3382
|
+
} });
|
|
3383
|
+
Schema.ValidationError = ValidationError;
|
|
3384
|
+
Schema.prototype.toJSON = function toJSON() {
|
|
3385
|
+
if (globalThis.__schemastery_refs__) {
|
|
3386
|
+
globalThis.__schemastery_refs__[this.uid] ??= JSON.parse(JSON.stringify({ ...this }));
|
|
3387
|
+
return this.uid;
|
|
3388
|
+
}
|
|
3389
|
+
globalThis.__schemastery_refs__ = { [this.uid]: { ...this } };
|
|
3390
|
+
globalThis.__schemastery_refs__[this.uid] = JSON.parse(JSON.stringify({ ...this }));
|
|
3391
|
+
const result = {
|
|
3392
|
+
uid: this.uid,
|
|
3393
|
+
refs: globalThis.__schemastery_refs__
|
|
3394
|
+
};
|
|
3395
|
+
globalThis.__schemastery_refs__ = void 0;
|
|
3396
|
+
return result;
|
|
3397
|
+
};
|
|
3398
|
+
Schema.prototype.set = function set(key, value) {
|
|
3399
|
+
this.dict[key] = value;
|
|
3400
|
+
return this;
|
|
3401
|
+
};
|
|
3402
|
+
Schema.prototype.push = function push(value) {
|
|
3403
|
+
this.list.push(value);
|
|
3404
|
+
return this;
|
|
3405
|
+
};
|
|
3406
|
+
function mergeDesc(original, messages) {
|
|
3407
|
+
const result = typeof original === "string" ? { "": original } : { ...original };
|
|
3408
|
+
for (const locale in messages) {
|
|
3409
|
+
const value = messages[locale];
|
|
3410
|
+
if (value?.$description || value?.$desc) result[locale] = value.$description || value.$desc;
|
|
3411
|
+
else if (typeof value === "string") result[locale] = value;
|
|
3412
|
+
}
|
|
3413
|
+
return result;
|
|
3414
|
+
}
|
|
3415
|
+
function getInner(value) {
|
|
3416
|
+
return value?.$value ?? value?.$inner;
|
|
3417
|
+
}
|
|
3418
|
+
function extractKeys(data) {
|
|
3419
|
+
return filterKeys(data ?? {}, (key) => !key.startsWith("$"));
|
|
3420
|
+
}
|
|
3421
|
+
Schema.prototype.i18n = function i18n(messages) {
|
|
3422
|
+
const schema = Schema(this);
|
|
3423
|
+
const desc = mergeDesc(schema.meta.description, messages);
|
|
3424
|
+
if (Object.keys(desc).length) schema.meta.description = desc;
|
|
3425
|
+
if (schema.dict) schema.dict = mapValues(schema.dict, (inner, key) => {
|
|
3426
|
+
return inner.i18n(mapValues(messages, (data) => getInner(data)?.[key] ?? data?.[key]));
|
|
3427
|
+
});
|
|
3428
|
+
if (schema.list) schema.list = schema.list.map((inner, index) => {
|
|
3429
|
+
return inner.i18n(mapValues(messages, (data = {}) => {
|
|
3430
|
+
if (Array.isArray(getInner(data))) return getInner(data)[index];
|
|
3431
|
+
if (Array.isArray(data)) return data[index];
|
|
3432
|
+
return extractKeys(data);
|
|
3433
|
+
}));
|
|
3434
|
+
});
|
|
3435
|
+
if (schema.inner) schema.inner = schema.inner.i18n(mapValues(messages, (data) => {
|
|
3436
|
+
if (getInner(data)) return getInner(data);
|
|
3437
|
+
return extractKeys(data);
|
|
3438
|
+
}));
|
|
3439
|
+
if (schema.sKey) schema.sKey = schema.sKey.i18n(mapValues(messages, (data) => data?.$key));
|
|
3440
|
+
return schema;
|
|
3441
|
+
};
|
|
3442
|
+
Schema.prototype.extra = function extra(key, value) {
|
|
3443
|
+
const schema = Schema(this);
|
|
3444
|
+
schema.meta = {
|
|
3445
|
+
...schema.meta,
|
|
3446
|
+
[key]: value
|
|
3447
|
+
};
|
|
3448
|
+
return schema;
|
|
3449
|
+
};
|
|
3450
|
+
for (const key of [
|
|
3451
|
+
"required",
|
|
3452
|
+
"disabled",
|
|
3453
|
+
"collapse",
|
|
3454
|
+
"hidden",
|
|
3455
|
+
"loose"
|
|
3456
|
+
]) Object.assign(Schema.prototype, { [key](value = true) {
|
|
3457
|
+
const schema = Schema(this);
|
|
3458
|
+
schema.meta = {
|
|
3459
|
+
...schema.meta,
|
|
3460
|
+
[key]: value
|
|
3461
|
+
};
|
|
3462
|
+
return schema;
|
|
3463
|
+
} });
|
|
3464
|
+
Schema.prototype.deprecated = function deprecated() {
|
|
3465
|
+
const schema = Schema(this);
|
|
3466
|
+
schema.meta.badges ||= [];
|
|
3467
|
+
schema.meta.badges.push({
|
|
3468
|
+
text: "deprecated",
|
|
3469
|
+
type: "danger"
|
|
3470
|
+
});
|
|
3471
|
+
return schema;
|
|
3472
|
+
};
|
|
3473
|
+
Schema.prototype.experimental = function experimental() {
|
|
3474
|
+
const schema = Schema(this);
|
|
3475
|
+
schema.meta.badges ||= [];
|
|
3476
|
+
schema.meta.badges.push({
|
|
3477
|
+
text: "experimental",
|
|
3478
|
+
type: "warning"
|
|
3479
|
+
});
|
|
3480
|
+
return schema;
|
|
3481
|
+
};
|
|
3482
|
+
Schema.prototype.pattern = function pattern(regexp) {
|
|
3483
|
+
const schema = Schema(this);
|
|
3484
|
+
const pattern = pick(regexp, ["source", "flags"]);
|
|
3485
|
+
schema.meta = {
|
|
3486
|
+
...schema.meta,
|
|
3487
|
+
pattern
|
|
3488
|
+
};
|
|
3489
|
+
return schema;
|
|
3490
|
+
};
|
|
3491
|
+
Schema.prototype.simplify = function simplify(value) {
|
|
3492
|
+
if (isVolatile(value)) value = value.get();
|
|
3493
|
+
if (deepEqual(value, this.meta.default, this.type === "dict")) return null;
|
|
3494
|
+
if (isNullable(value)) return value;
|
|
3495
|
+
if (this.type === "object" || this.type === "dict") {
|
|
3496
|
+
const result = {};
|
|
3497
|
+
for (const key in value) {
|
|
3498
|
+
const item = (this.type === "object" ? this.dict[key] : this.inner)?.simplify(value[key]);
|
|
3499
|
+
if (this.type === "dict" || !isNullable(item)) result[key] = item;
|
|
3500
|
+
}
|
|
3501
|
+
if (deepEqual(result, this.meta.default, this.type === "dict")) return null;
|
|
3502
|
+
return result;
|
|
3503
|
+
} else if (this.type === "array" || this.type === "tuple") {
|
|
3504
|
+
const result = [];
|
|
3505
|
+
value.forEach((value, index) => {
|
|
3506
|
+
const schema = this.type === "array" ? this.inner : this.list[index];
|
|
3507
|
+
const item = schema ? schema.simplify(value) : value;
|
|
3508
|
+
result.push(item);
|
|
3509
|
+
});
|
|
3510
|
+
return result;
|
|
3511
|
+
} else if (this.type === "intersect") {
|
|
3512
|
+
const result = {};
|
|
3513
|
+
for (const item of this.list) Object.assign(result, item.simplify(value));
|
|
3514
|
+
return result;
|
|
3515
|
+
} else if (this.type === "union") for (const schema of this.list) try {
|
|
3516
|
+
Schema.resolve(value, schema, {});
|
|
3517
|
+
return schema.simplify(value);
|
|
3518
|
+
} catch {}
|
|
3519
|
+
return value;
|
|
3520
|
+
};
|
|
3521
|
+
Schema.prototype.toString = function toString(inline) {
|
|
3522
|
+
return formatters[this.type]?.(this, inline) ?? `Schema<${this.type}>`;
|
|
3523
|
+
};
|
|
3524
|
+
Schema.prototype.role = function role(role, extra) {
|
|
3525
|
+
const schema = Schema(this);
|
|
3526
|
+
schema.meta = {
|
|
3527
|
+
...schema.meta,
|
|
3528
|
+
role,
|
|
3529
|
+
extra
|
|
3530
|
+
};
|
|
3531
|
+
return schema;
|
|
3532
|
+
};
|
|
3533
|
+
for (const key of [
|
|
3534
|
+
"default",
|
|
3535
|
+
"link",
|
|
3536
|
+
"comment",
|
|
3537
|
+
"description",
|
|
3538
|
+
"max",
|
|
3539
|
+
"min",
|
|
3540
|
+
"step"
|
|
3541
|
+
]) Object.assign(Schema.prototype, { [key](value) {
|
|
3542
|
+
const schema = Schema(this);
|
|
3543
|
+
schema.meta = {
|
|
3544
|
+
...schema.meta,
|
|
3545
|
+
[key]: value
|
|
3546
|
+
};
|
|
3547
|
+
return schema;
|
|
3548
|
+
} });
|
|
3549
|
+
Schema.prototype.volatile = function volatile() {
|
|
3550
|
+
if (this.meta.volatile) throw new TypeError("volatile schema is already wrapped");
|
|
3551
|
+
return this.extra("volatile", true);
|
|
3552
|
+
};
|
|
3553
|
+
const resolvers = {};
|
|
3554
|
+
const checkedVolatile = Symbol("checked-volatile-schema");
|
|
3555
|
+
function validateVolatileSchema(schema, path = [], blocked = false, seen = /* @__PURE__ */ new Map()) {
|
|
3556
|
+
const states = seen.get(schema) ?? /* @__PURE__ */ new Set();
|
|
3557
|
+
if (states.has(blocked)) return;
|
|
3558
|
+
states.add(blocked);
|
|
3559
|
+
seen.set(schema, states);
|
|
3560
|
+
if (schema.meta?.volatile && blocked) throw new ValidationError("volatile fields require a fixed object path without an enclosing volatile field", { path });
|
|
3561
|
+
const nested = blocked || !!schema.meta?.volatile;
|
|
3562
|
+
if (schema.dict) for (const [key, child] of Object.entries(schema.dict)) validateVolatileSchema(child, [...path, key], nested, seen);
|
|
3563
|
+
if (schema.sKey) validateVolatileSchema(schema.sKey, [...path, "<key>"], true, seen);
|
|
3564
|
+
if (schema.inner && (schema.type !== "lazy" || schema.inner[kSchema])) validateVolatileSchema(schema.inner, [...path, "*"], true, seen);
|
|
3565
|
+
if (schema.list) for (let index = 0; index < schema.list.length; index++) validateVolatileSchema(schema.list[index], [...path, String(index)], true, seen);
|
|
3566
|
+
}
|
|
3567
|
+
Schema.extend = function extend(type, resolve) {
|
|
3568
|
+
resolvers[type] = resolve;
|
|
3569
|
+
};
|
|
3570
|
+
Schema.resolve = function resolve(data, schema, options = {}, strict = false) {
|
|
3571
|
+
if (!schema) return [data];
|
|
3572
|
+
if (!options[checkedVolatile]) {
|
|
3573
|
+
validateVolatileSchema(schema, options.path);
|
|
3574
|
+
options = {
|
|
3575
|
+
...options,
|
|
3576
|
+
[checkedVolatile]: true
|
|
3577
|
+
};
|
|
3578
|
+
}
|
|
3579
|
+
if (schema.meta?.volatile) {
|
|
3580
|
+
const inner = Schema(schema);
|
|
3581
|
+
inner.meta = {
|
|
3582
|
+
...schema.meta,
|
|
3583
|
+
volatile: false
|
|
3584
|
+
};
|
|
3585
|
+
const [value, adapted] = Schema.resolve(data, inner, options, strict);
|
|
3586
|
+
try {
|
|
3587
|
+
return [createVolatile(value), adapted];
|
|
3588
|
+
} catch (error) {
|
|
3589
|
+
throw new ValidationError(error instanceof Error ? error.message : String(error), options);
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
if (options.ignore?.(data, schema)) return [data];
|
|
3593
|
+
if (isNullable(data) && schema.type !== "lazy") {
|
|
3594
|
+
if (schema.meta.required) throw new ValidationError(`missing required value`, options);
|
|
3595
|
+
let current = schema;
|
|
3596
|
+
let fallback = schema.meta.default;
|
|
3597
|
+
while (current?.type === "intersect" && isNullable(fallback)) {
|
|
3598
|
+
current = current.list[0];
|
|
3599
|
+
fallback = current?.meta.default;
|
|
3600
|
+
}
|
|
3601
|
+
if (isNullable(fallback)) return [data];
|
|
3602
|
+
data = clone(fallback);
|
|
3603
|
+
}
|
|
3604
|
+
const callback = resolvers[schema.type];
|
|
3605
|
+
if (!callback) throw new ValidationError(`unsupported type "${schema.type}"`, options);
|
|
3606
|
+
try {
|
|
3607
|
+
return callback(data, schema, options, strict);
|
|
3608
|
+
} catch (error) {
|
|
3609
|
+
if (!schema.meta.loose) throw error;
|
|
3610
|
+
return [schema.meta.default];
|
|
3611
|
+
}
|
|
3612
|
+
};
|
|
3613
|
+
Schema.from = function from(source) {
|
|
3614
|
+
if (isNullable(source)) return Schema.any();
|
|
3615
|
+
else if ([
|
|
3616
|
+
"string",
|
|
3617
|
+
"number",
|
|
3618
|
+
"boolean"
|
|
3619
|
+
].includes(typeof source)) return Schema.const(source).required();
|
|
3620
|
+
else if (source[kSchema]) return source;
|
|
3621
|
+
else if (typeof source === "function") switch (source) {
|
|
3622
|
+
case String: return Schema.string().required();
|
|
3623
|
+
case Number: return Schema.number().required();
|
|
3624
|
+
case Boolean: return Schema.boolean().required();
|
|
3625
|
+
case Function: return Schema.function().required();
|
|
3626
|
+
default: return Schema.is(source).required();
|
|
3627
|
+
}
|
|
3628
|
+
else throw new TypeError(`cannot infer schema from ${source}`);
|
|
3629
|
+
};
|
|
3630
|
+
Schema.lazy = function lazy(builder) {
|
|
3631
|
+
const toJSON = () => {
|
|
3632
|
+
if (!schema.inner[kSchema]) {
|
|
3633
|
+
schema.inner = schema.builder();
|
|
3634
|
+
schema.inner.meta = {
|
|
3635
|
+
...schema.meta,
|
|
3636
|
+
...schema.inner.meta
|
|
3637
|
+
};
|
|
3638
|
+
}
|
|
3639
|
+
return schema.inner.toJSON();
|
|
3640
|
+
};
|
|
3641
|
+
const schema = new Schema({
|
|
3642
|
+
type: "lazy",
|
|
3643
|
+
builder,
|
|
3644
|
+
inner: { toJSON }
|
|
3645
|
+
});
|
|
3646
|
+
return schema;
|
|
3647
|
+
};
|
|
3648
|
+
Schema.natural = function natural() {
|
|
3649
|
+
return Schema.number().step(1).min(0);
|
|
3650
|
+
};
|
|
3651
|
+
Schema.percent = function percent() {
|
|
3652
|
+
return Schema.number().step(.01).min(0).max(1).role("slider");
|
|
3653
|
+
};
|
|
3654
|
+
Schema.date = function date() {
|
|
3655
|
+
return Schema.union([Schema.is(Date), Schema.transform(Schema.string().role("datetime"), (value, options) => {
|
|
3656
|
+
const date = new Date(value);
|
|
3657
|
+
if (isNaN(+date)) throw new ValidationError(`invalid date "${value}"`, options);
|
|
3658
|
+
return date;
|
|
3659
|
+
}, true)]);
|
|
3660
|
+
};
|
|
3661
|
+
Schema.regExp = function regExp(flag = "") {
|
|
3662
|
+
return Schema.union([Schema.is(RegExp), Schema.transform(Schema.string().role("regexp", { flag }), (value, options) => {
|
|
3663
|
+
try {
|
|
3664
|
+
return new RegExp(value, flag);
|
|
3665
|
+
} catch (e) {
|
|
3666
|
+
throw new ValidationError(e.message, options);
|
|
3667
|
+
}
|
|
3668
|
+
}, true)]);
|
|
3669
|
+
};
|
|
3670
|
+
Schema.arrayBuffer = function arrayBuffer(encoding) {
|
|
3671
|
+
return Schema.union([
|
|
3672
|
+
Schema.is(ArrayBuffer),
|
|
3673
|
+
Schema.is(SharedArrayBuffer),
|
|
3674
|
+
Schema.transform(Schema.any(), (value, options) => {
|
|
3675
|
+
if (Binary.isSource(value)) return Binary.fromSource(value);
|
|
3676
|
+
throw new ValidationError(`expected ArrayBufferSource but got ${value}`, options);
|
|
3677
|
+
}, true),
|
|
3678
|
+
...encoding ? [Schema.transform(Schema.string(), (value, options) => {
|
|
3679
|
+
try {
|
|
3680
|
+
return encoding === "base64" ? Binary.fromBase64(value) : Binary.fromHex(value);
|
|
3681
|
+
} catch (e) {
|
|
3682
|
+
throw new ValidationError(e.message, options);
|
|
3683
|
+
}
|
|
3684
|
+
}, true)] : []
|
|
3685
|
+
]);
|
|
3686
|
+
};
|
|
3687
|
+
Schema.extend("lazy", (data, schema, options, strict) => {
|
|
3688
|
+
if (!schema.inner[kSchema]) {
|
|
3689
|
+
schema.inner = schema.builder();
|
|
3690
|
+
schema.inner.meta = {
|
|
3691
|
+
...schema.meta,
|
|
3692
|
+
...schema.inner.meta
|
|
3693
|
+
};
|
|
3694
|
+
validateVolatileSchema(schema.inner, options.path, true);
|
|
3695
|
+
}
|
|
3696
|
+
return Schema.resolve(data, schema.inner, options, strict);
|
|
3697
|
+
});
|
|
3698
|
+
Schema.extend("any", (data) => {
|
|
3699
|
+
return [data];
|
|
3700
|
+
});
|
|
3701
|
+
Schema.extend("never", (data, _, options) => {
|
|
3702
|
+
throw new ValidationError(`expected nullable but got ${data}`, options);
|
|
3703
|
+
});
|
|
3704
|
+
Schema.extend("const", (data, { value }, options) => {
|
|
3705
|
+
if (deepEqual(data, value)) return [value];
|
|
3706
|
+
throw new ValidationError(`expected ${value} but got ${data}`, options);
|
|
3707
|
+
});
|
|
3708
|
+
function checkWithinRange(data, meta, description, options, skipMin = false) {
|
|
3709
|
+
const { max = Infinity, min = -Infinity } = meta;
|
|
3710
|
+
if (data > max) throw new ValidationError(`expected ${description} <= ${max} but got ${data}`, options);
|
|
3711
|
+
if (data < min && !skipMin) throw new ValidationError(`expected ${description} >= ${min} but got ${data}`, options);
|
|
3712
|
+
}
|
|
3713
|
+
Schema.extend("string", (data, { meta }, options) => {
|
|
3714
|
+
if (typeof data !== "string") throw new ValidationError(`expected string but got ${data}`, options);
|
|
3715
|
+
if (meta.pattern) {
|
|
3716
|
+
const regexp = new RegExp(meta.pattern.source, meta.pattern.flags);
|
|
3717
|
+
if (!regexp.test(data)) throw new ValidationError(`expect string to match regexp ${regexp}`, options);
|
|
3718
|
+
}
|
|
3719
|
+
checkWithinRange(data.length, meta, "string length", options);
|
|
3720
|
+
return [data];
|
|
3721
|
+
});
|
|
3722
|
+
function decimalShift(data, digits) {
|
|
3723
|
+
const str = data.toString();
|
|
3724
|
+
if (str.includes("e")) return data * Math.pow(10, digits);
|
|
3725
|
+
const index = str.indexOf(".");
|
|
3726
|
+
if (index === -1) return data * Math.pow(10, digits);
|
|
3727
|
+
const frac = str.slice(index + 1);
|
|
3728
|
+
const integer = str.slice(0, index);
|
|
3729
|
+
if (frac.length <= digits) return +(integer + frac.padEnd(digits, "0"));
|
|
3730
|
+
return +(integer + frac.slice(0, digits) + "." + frac.slice(digits));
|
|
3731
|
+
}
|
|
3732
|
+
function isMultipleOf(data, min, step) {
|
|
3733
|
+
step = Math.abs(step);
|
|
3734
|
+
if (!/^\d+\.\d+$/.test(step.toString())) return (data - min) % step === 0;
|
|
3735
|
+
const index = step.toString().indexOf(".");
|
|
3736
|
+
const digits = step.toString().slice(index + 1).length;
|
|
3737
|
+
return Math.abs(decimalShift(data, digits) - decimalShift(min, digits)) % decimalShift(step, digits) === 0;
|
|
3738
|
+
}
|
|
3739
|
+
Schema.extend("number", (data, { meta }, options) => {
|
|
3740
|
+
if (typeof data !== "number") throw new ValidationError(`expected number but got ${data}`, options);
|
|
3741
|
+
checkWithinRange(data, meta, "number", options);
|
|
3742
|
+
const { step } = meta;
|
|
3743
|
+
if (step && !isMultipleOf(data, meta.min ?? 0, step)) throw new ValidationError(`expected number multiple of ${step} but got ${data}`, options);
|
|
3744
|
+
return [data];
|
|
3745
|
+
});
|
|
3746
|
+
Schema.extend("boolean", (data, _, options) => {
|
|
3747
|
+
if (typeof data === "boolean") return [data];
|
|
3748
|
+
throw new ValidationError(`expected boolean but got ${data}`, options);
|
|
3749
|
+
});
|
|
3750
|
+
Schema.extend("bitset", (data, { bits, meta }, options) => {
|
|
3751
|
+
let value = 0, keys = [];
|
|
3752
|
+
if (typeof data === "number") {
|
|
3753
|
+
value = data;
|
|
3754
|
+
for (const key in bits) if (data & bits[key]) keys.push(key);
|
|
3755
|
+
} else if (Array.isArray(data)) {
|
|
3756
|
+
keys = data;
|
|
3757
|
+
for (const key of keys) {
|
|
3758
|
+
if (typeof key !== "string") throw new ValidationError(`expected string but got ${key}`, options);
|
|
3759
|
+
if (key in bits) value |= bits[key];
|
|
3760
|
+
}
|
|
3761
|
+
} else throw new ValidationError(`expected number or array but got ${data}`, options);
|
|
3762
|
+
if (value === meta.default) return [value];
|
|
3763
|
+
return [value, keys];
|
|
3764
|
+
});
|
|
3765
|
+
Schema.extend("function", (data, _, options) => {
|
|
3766
|
+
if (typeof data === "function") return [data];
|
|
3767
|
+
throw new ValidationError(`expected function but got ${data}`, options);
|
|
3768
|
+
});
|
|
3769
|
+
Schema.extend("is", (data, { constructor }, options) => {
|
|
3770
|
+
if (typeof constructor === "function") {
|
|
3771
|
+
if (data instanceof constructor) return [data];
|
|
3772
|
+
throw new ValidationError(`expected ${constructor.name} but got ${data}`, options);
|
|
3773
|
+
} else {
|
|
3774
|
+
if (isNullable(data)) throw new ValidationError(`expected ${constructor} but got ${data}`, options);
|
|
3775
|
+
let prototype = Object.getPrototypeOf(data);
|
|
3776
|
+
while (prototype) {
|
|
3777
|
+
if (prototype.constructor?.name === constructor) return [data];
|
|
3778
|
+
prototype = Object.getPrototypeOf(prototype);
|
|
3779
|
+
}
|
|
3780
|
+
throw new ValidationError(`expected ${constructor} but got ${data}`, options);
|
|
3781
|
+
}
|
|
3782
|
+
});
|
|
3783
|
+
function property(data, key, schema, options) {
|
|
3784
|
+
try {
|
|
3785
|
+
const [value, adapted] = Schema.resolve(data[key], schema, {
|
|
3786
|
+
...options,
|
|
3787
|
+
path: [...options.path || [], key]
|
|
3788
|
+
});
|
|
3789
|
+
if (adapted !== void 0) data[key] = adapted;
|
|
3790
|
+
return value;
|
|
3791
|
+
} catch (e) {
|
|
3792
|
+
if (!options?.autofix) throw e;
|
|
3793
|
+
delete data[key];
|
|
3794
|
+
return schema.meta.volatile ? createVolatile(schema.meta.default) : schema.meta.default;
|
|
3795
|
+
}
|
|
3796
|
+
}
|
|
3797
|
+
Schema.extend("array", (data, { inner, meta }, options) => {
|
|
3798
|
+
if (!Array.isArray(data)) throw new ValidationError(`expected array but got ${data}`, options);
|
|
3799
|
+
checkWithinRange(data.length, meta, "array length", options, !isNullable(inner.meta.default));
|
|
3800
|
+
return [data.map((_, index) => property(data, index, inner, options))];
|
|
3801
|
+
});
|
|
3802
|
+
Schema.extend("dict", (data, { inner, sKey }, options, strict) => {
|
|
3803
|
+
if (!isPlainObject(data)) throw new ValidationError(`expected object but got ${data}`, options);
|
|
3804
|
+
const result = {};
|
|
3805
|
+
for (const key in data) {
|
|
3806
|
+
let rKey;
|
|
3807
|
+
try {
|
|
3808
|
+
rKey = Schema.resolve(key, sKey, options)[0];
|
|
3809
|
+
} catch (error) {
|
|
3810
|
+
if (strict) continue;
|
|
3811
|
+
throw error;
|
|
3812
|
+
}
|
|
3813
|
+
result[rKey] = property(data, key, inner, options);
|
|
3814
|
+
data[rKey] = data[key];
|
|
3815
|
+
if (key !== rKey) delete data[key];
|
|
3816
|
+
}
|
|
3817
|
+
return [result];
|
|
3818
|
+
});
|
|
3819
|
+
Schema.extend("tuple", (data, { list }, options, strict) => {
|
|
3820
|
+
if (!Array.isArray(data)) throw new ValidationError(`expected array but got ${data}`, options);
|
|
3821
|
+
const result = list.map((inner, index) => property(data, index, inner, options));
|
|
3822
|
+
if (strict) return [result];
|
|
3823
|
+
result.push(...data.slice(list.length));
|
|
3824
|
+
return [result];
|
|
3825
|
+
});
|
|
3826
|
+
function merge(result, data) {
|
|
3827
|
+
for (const key in data) {
|
|
3828
|
+
if (key in result) continue;
|
|
3829
|
+
result[key] = data[key];
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
Schema.extend("object", (data, { dict }, options, strict) => {
|
|
3833
|
+
if (!isPlainObject(data)) throw new ValidationError(`expected object but got ${data}`, options);
|
|
3834
|
+
const result = {};
|
|
3835
|
+
for (const key in dict) {
|
|
3836
|
+
const value = property(data, key, dict[key], options);
|
|
3837
|
+
if (!isNullable(value) || key in data) result[key] = value;
|
|
3838
|
+
}
|
|
3839
|
+
if (!strict) merge(result, data);
|
|
3840
|
+
return [result];
|
|
3841
|
+
});
|
|
3842
|
+
Schema.extend("union", (data, { list, toString }, options, strict) => {
|
|
3843
|
+
const messages = [];
|
|
3844
|
+
for (const inner of list) try {
|
|
3845
|
+
return Schema.resolve(data, inner, options, strict);
|
|
3846
|
+
} catch (error) {
|
|
3847
|
+
messages.push(error);
|
|
3848
|
+
}
|
|
3849
|
+
throw new ValidationError(`expected ${toString()} but got ${JSON.stringify(data)}`, options);
|
|
3850
|
+
});
|
|
3851
|
+
Schema.extend("intersect", (data, { list, toString }, options, strict) => {
|
|
3852
|
+
if (!list.length) return [data];
|
|
3853
|
+
let result;
|
|
3854
|
+
for (const inner of list) {
|
|
3855
|
+
const value = Schema.resolve(data, inner, options, true)[0];
|
|
3856
|
+
if (isNullable(value)) continue;
|
|
3857
|
+
if (isNullable(result)) result = value;
|
|
3858
|
+
else if (typeof result !== typeof value) throw new ValidationError(`expected ${toString()} but got ${JSON.stringify(data)}`, options);
|
|
3859
|
+
else if (typeof value === "object") merge(result ??= {}, value);
|
|
3860
|
+
else if (result !== value) throw new ValidationError(`expected ${toString()} but got ${JSON.stringify(data)}`, options);
|
|
3861
|
+
}
|
|
3862
|
+
if (!strict && isPlainObject(data)) merge(result, data);
|
|
3863
|
+
return [result];
|
|
3864
|
+
});
|
|
3865
|
+
Schema.extend("transform", (data, { inner, callback, preserve }, options) => {
|
|
3866
|
+
const [result, adapted = data] = Schema.resolve(data, inner, options, true);
|
|
3867
|
+
if (preserve) return [callback(result)];
|
|
3868
|
+
else return [callback(result), callback(adapted)];
|
|
3869
|
+
});
|
|
3870
|
+
const formatters = {};
|
|
3871
|
+
function defineMethod(name, keys, format) {
|
|
3872
|
+
formatters[name] = format;
|
|
3873
|
+
Object.assign(Schema, { [name](...args) {
|
|
3874
|
+
const schema = new Schema({ type: name });
|
|
3875
|
+
keys.forEach((key, index) => {
|
|
3876
|
+
switch (key) {
|
|
3877
|
+
case "sKey":
|
|
3878
|
+
schema.sKey = args[index] ?? Schema.string();
|
|
3879
|
+
break;
|
|
3880
|
+
case "inner":
|
|
3881
|
+
schema.inner = Schema.from(args[index]);
|
|
3882
|
+
break;
|
|
3883
|
+
case "list":
|
|
3884
|
+
schema.list = args[index].map(Schema.from);
|
|
3885
|
+
break;
|
|
3886
|
+
case "dict":
|
|
3887
|
+
schema.dict = mapValues(args[index], Schema.from);
|
|
3888
|
+
break;
|
|
3889
|
+
case "bits":
|
|
3890
|
+
schema.bits = {};
|
|
3891
|
+
for (const key in args[index]) {
|
|
3892
|
+
if (typeof args[index][key] !== "number") continue;
|
|
3893
|
+
schema.bits[key] = args[index][key];
|
|
3894
|
+
}
|
|
3895
|
+
break;
|
|
3896
|
+
case "callback": {
|
|
3897
|
+
const callback = schema.callback = args[index];
|
|
3898
|
+
callback["toJSON"] ||= () => callback.toString();
|
|
3899
|
+
break;
|
|
3900
|
+
}
|
|
3901
|
+
case "constructor": {
|
|
3902
|
+
const constructor = schema.constructor = args[index];
|
|
3903
|
+
if (typeof constructor === "function") constructor["toJSON"] ||= () => constructor["name"];
|
|
3904
|
+
break;
|
|
3905
|
+
}
|
|
3906
|
+
default: schema[key] = args[index];
|
|
3907
|
+
}
|
|
3908
|
+
});
|
|
3909
|
+
if (name === "object" || name === "dict") schema.meta.default = {};
|
|
3910
|
+
else if (name === "array" || name === "tuple") schema.meta.default = [];
|
|
3911
|
+
else if (name === "bitset") schema.meta.default = 0;
|
|
3912
|
+
return schema;
|
|
3913
|
+
} });
|
|
3914
|
+
}
|
|
3915
|
+
defineMethod("is", ["constructor"], ({ constructor }) => {
|
|
3916
|
+
if (typeof constructor === "function") return constructor.name;
|
|
3917
|
+
else return constructor;
|
|
3918
|
+
});
|
|
3919
|
+
defineMethod("any", [], () => "any");
|
|
3920
|
+
defineMethod("never", [], () => "never");
|
|
3921
|
+
defineMethod("const", ["value"], ({ value }) => typeof value === "string" ? JSON.stringify(value) : value);
|
|
3922
|
+
defineMethod("string", [], () => "string");
|
|
3923
|
+
defineMethod("number", [], () => "number");
|
|
3924
|
+
defineMethod("boolean", [], () => "boolean");
|
|
3925
|
+
defineMethod("bitset", ["bits"], () => "bitset");
|
|
3926
|
+
defineMethod("function", [], () => "function");
|
|
3927
|
+
defineMethod("array", ["inner"], ({ inner }) => `${inner.toString(true)}[]`);
|
|
3928
|
+
defineMethod("dict", ["inner", "sKey"], ({ inner, sKey }) => `{ [key: ${sKey.toString()}]: ${inner.toString()} }`);
|
|
3929
|
+
defineMethod("tuple", ["list"], ({ list }) => `[${list.map((inner) => inner.toString()).join(", ")}]`);
|
|
3930
|
+
defineMethod("object", ["dict"], ({ dict }) => {
|
|
3931
|
+
if (Object.keys(dict).length === 0) return "{}";
|
|
3932
|
+
return `{ ${Object.entries(dict).map(([key, inner]) => {
|
|
3933
|
+
return `${key}${inner.meta.required ? "" : "?"}: ${inner.toString()}`;
|
|
3934
|
+
}).join(", ")} }`;
|
|
3935
|
+
});
|
|
3936
|
+
defineMethod("union", ["list"], ({ list }, inline) => {
|
|
3937
|
+
const result = list.map(({ toString: format }) => format()).join(" | ");
|
|
3938
|
+
return inline ? `(${result})` : result;
|
|
3939
|
+
});
|
|
3940
|
+
defineMethod("intersect", ["list"], ({ list }) => {
|
|
3941
|
+
return `${list.map((inner) => inner.toString(true)).join(" & ")}`;
|
|
3942
|
+
});
|
|
3943
|
+
defineMethod("transform", [
|
|
3944
|
+
"inner",
|
|
3945
|
+
"callback",
|
|
3946
|
+
"preserve"
|
|
3947
|
+
], ({ inner }, isInner) => inner.toString(isInner));
|
|
3948
|
+
//#endregion
|
|
3949
|
+
//#region lib/types/onboarding-config.js
|
|
3950
|
+
/** Public page-bootstrap options shared by the Host and Client halves. */
|
|
3951
|
+
/** Validate Host configuration and its public page-bootstrap payload. */
|
|
3952
|
+
const Config = Schema.object({ credentialOnboarding: Schema.boolean().default(true) });
|
|
3953
|
+
/** Page-global key carrying only the public onboarding options. */
|
|
3954
|
+
const ONBOARDING_CONFIG_GLOBAL = "__DSH_MODELS_ONBOARDING__";
|
|
3955
|
+
//#endregion
|
|
2894
3956
|
//#region lib/types/client/index.js
|
|
2895
3957
|
/** Dictionary namespace owned by this plugin. */
|
|
2896
3958
|
const NS = "settings.models";
|
|
@@ -2915,7 +3977,7 @@ window.__ModuleLoader__.load({
|
|
|
2915
3977
|
"remote.credentials",
|
|
2916
3978
|
"remote.llm",
|
|
2917
3979
|
"remote.settings",
|
|
2918
|
-
"
|
|
3980
|
+
"configForms",
|
|
2919
3981
|
"settingsSchema"
|
|
2920
3982
|
];
|
|
2921
3983
|
/**
|
|
@@ -2925,13 +3987,15 @@ window.__ModuleLoader__.load({
|
|
|
2925
3987
|
* @param ctx - client root context.
|
|
2926
3988
|
*/
|
|
2927
3989
|
function apply(ctx) {
|
|
3990
|
+
const payload = globalThis[ONBOARDING_CONFIG_GLOBAL];
|
|
3991
|
+
const credentialOnboarding = Config(payload === void 0 ? {} : payload).credentialOnboarding && !("dshDesktop" in globalThis);
|
|
2928
3992
|
ctx.effect(() => ctx.locale.register(NS, {
|
|
2929
3993
|
zh,
|
|
2930
3994
|
en
|
|
2931
3995
|
}), "ui-settings-models: copy dictionaries");
|
|
2932
3996
|
const schema = createSettingsSchemaOperations(ctx.settingsSchema);
|
|
2933
3997
|
const operations = createModelsOperations(ctx);
|
|
2934
|
-
const controller = new ModelsSettingsStore(ctx, schema, ctx.
|
|
3998
|
+
const controller = new ModelsSettingsStore(ctx, schema, ctx.configForms.describe());
|
|
2935
3999
|
const t = ctx.locale.bind(NS);
|
|
2936
4000
|
const injected = () => ({
|
|
2937
4001
|
controller,
|
|
@@ -2941,16 +4005,14 @@ window.__ModuleLoader__.load({
|
|
|
2941
4005
|
t
|
|
2942
4006
|
});
|
|
2943
4007
|
const deepSeekOnboardingInjected = () => ({
|
|
4008
|
+
automatic: credentialOnboarding,
|
|
2944
4009
|
controller,
|
|
2945
4010
|
hooks: { models: controller.store },
|
|
2946
4011
|
operations,
|
|
2947
4012
|
schema,
|
|
2948
4013
|
t
|
|
2949
4014
|
});
|
|
2950
|
-
const welcomeController = new WelcomeNoticeStore(ctx.
|
|
2951
|
-
namespace: WELCOME_NOTICE_SETTINGS_NAMESPACE,
|
|
2952
|
-
decode: decodeWelcomeSection
|
|
2953
|
-
}));
|
|
4015
|
+
const welcomeController = new WelcomeNoticeStore(ctx.configForms.get(WELCOME_NOTICE_SETTINGS_NAMESPACE));
|
|
2954
4016
|
const welcomeInjected = () => ({
|
|
2955
4017
|
controller: welcomeController,
|
|
2956
4018
|
hooks: { welcome: welcomeController.store },
|
|
@@ -2999,6 +4061,10 @@ window.__ModuleLoader__.load({
|
|
|
2999
4061
|
ctx.slots.inject("settings.onboarding", () => ctx.slots.register({
|
|
3000
4062
|
name: "settings.onboarding",
|
|
3001
4063
|
id: "deepseek-official",
|
|
4064
|
+
children: { "settings.models.sign-in": {
|
|
4065
|
+
kind: "single",
|
|
4066
|
+
scope: "root"
|
|
4067
|
+
} },
|
|
3002
4068
|
order: 0,
|
|
3003
4069
|
inject: deepSeekOnboardingInjected
|
|
3004
4070
|
}, DeepSeekOnboardingDialog));
|