@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
|
@@ -71,7 +71,157 @@ window.__ModuleLoader__.load({
|
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
//#endregion
|
|
74
|
-
//#region
|
|
74
|
+
//#region lib/types/client/guide-locales.js
|
|
75
|
+
/** Curated help for shipped presets, kept separate from their short picker copy. */
|
|
76
|
+
const guideEn = {
|
|
77
|
+
modeExplanation: "Mode details",
|
|
78
|
+
howToUse: "How to use",
|
|
79
|
+
guideSections: "Guide sections",
|
|
80
|
+
guideExampleTask: "Example task",
|
|
81
|
+
guideCopy: "Copy",
|
|
82
|
+
guideCopied: "Copied",
|
|
83
|
+
guideFootnotes: "Footnotes",
|
|
84
|
+
guideStandardIntro: "Choose Standard mode when starting a new task. Describe what you want to accomplish, point to the relevant files, and explain how to check the result.",
|
|
85
|
+
guideStandardExplanation: [
|
|
86
|
+
"### How it works",
|
|
87
|
+
"The agent calls tools directly to read and edit files, search, and run terminal commands. It includes Skills, planning, goals, subagents, workflows, and context compaction.",
|
|
88
|
+
"### When to choose it",
|
|
89
|
+
"Start here for everyday coding, file work, and research. Standard mode can also write scripts and process files in batches. PTC changes how tool calls are organized; it is not required for batch tasks."
|
|
90
|
+
].join("\n\n"),
|
|
91
|
+
guideStandardUsage: [
|
|
92
|
+
"### Fix a bug",
|
|
93
|
+
"> Find out why submitting the search form twice makes the results disappear. Fix it and run the relevant tests. Explain the cause and what changed.",
|
|
94
|
+
"Expected output: a code change, the relevant test results, and an explanation of the cause.",
|
|
95
|
+
"### Organize project notes",
|
|
96
|
+
"> Read the Markdown notes in this project. Summarize the agreed decisions and open questions, with links to the source files.",
|
|
97
|
+
"Expected output: a summary with references that you can check against the original notes."
|
|
98
|
+
].join("\n\n"),
|
|
99
|
+
guidePtcIntro: "Choose PTC mode when starting a new task. Specify the input files, processing rules, and output format. The agent writes the code.",
|
|
100
|
+
guidePtcExplanation: [
|
|
101
|
+
"### How tools are called",
|
|
102
|
+
"PTC means Programmatic Tool Calling. In this built-in preset, the agent uses run_code to write a TypeScript program that calls tools through a generated SDK. The program can use loops, conditions, error handling, and concurrent calls where appropriate.",
|
|
103
|
+
"### What reaches the model",
|
|
104
|
+
"Tool results first reach the program, which can filter and combine them. The model receives what the program prints or returns; image results are attached separately. Nested tool calls are still recorded and remain subject to tool permissions.",
|
|
105
|
+
"### Compared with Standard mode",
|
|
106
|
+
"Both modes can handle coding and batch tasks. Standard mode exposes individual tools directly; PTC organizes tool calls in code. The current PTC preset leaves the workflow tool disabled. Speed and token use depend on the task and how the program handles its results."
|
|
107
|
+
].join("\n\n"),
|
|
108
|
+
guidePtcUsage: [
|
|
109
|
+
"### Check a set of configuration files",
|
|
110
|
+
"> Check all JSON files in configs/. List missing required fields and invalid values against schema.json. Save a CSV with one row per issue. Include unreadable files in the report and keep checking the rest. Leave the original files unchanged.",
|
|
111
|
+
"Expected output: an issue summary and a CSV report. The program can repeat the same checks, handle individual failures, and collect the results.",
|
|
112
|
+
"### Summarize error logs",
|
|
113
|
+
"> Analyze the log files in logs/. Group errors by service and error type. Show the ten most frequent groups and one example from each. Save the full counts to a CSV.",
|
|
114
|
+
"Expected output: the top error groups and a complete count table. Intermediate data can be aggregated in the program before the summary reaches the model."
|
|
115
|
+
].join("\n\n"),
|
|
116
|
+
guideMinimalIntro: "Choose Minimal mode for a new task. For a comparison, hold the model, permissions, input, and starting workspace state constant across runs.",
|
|
117
|
+
guideMinimalExplanation: [
|
|
118
|
+
"### What is included",
|
|
119
|
+
"One persistent shell tool and a fixed system prompt. The built-in preset does not load Skills, planning, context compaction, or the standard runtime context.",
|
|
120
|
+
"### When to choose it",
|
|
121
|
+
"Use it as a baseline for experiments and comparisons. It can still read files and execute scripts through shell commands, but offers fewer built-in ways to manage a long task. Fewer tools does not necessarily make it easier for a beginner."
|
|
122
|
+
].join("\n\n"),
|
|
123
|
+
guideMinimalUsage: [
|
|
124
|
+
"### Compare performance on a small bug fix",
|
|
125
|
+
"> Run the tests for this project, find the cause of the failure, and make the smallest fix. Run the relevant tests again and report the result.",
|
|
126
|
+
"Run the same task separately in Standard and Minimal modes from the same starting state. Compare task completion, tool calls, and the resulting changes. Minimal mode performs the work through terminal commands."
|
|
127
|
+
].join("\n\n"),
|
|
128
|
+
guideCordisIntro: "Choose Creator mode for a new task. Describe the capability you want, where it should appear, and how you will verify it.",
|
|
129
|
+
guideCordisExplanation: [
|
|
130
|
+
"### What you can create",
|
|
131
|
+
"Creator mode includes the standard task tools plus runtime inspection, persistent plugin management, and guidance for authoring Cordis plugins and agent presets. It can create a plugin that adds a capability or UI, or a preset that combines tools and prompts for a particular job.",
|
|
132
|
+
"### Plugins and modes",
|
|
133
|
+
"A plugin adds capabilities to DSH, such as a tool, a service connection, or a UI entry. A mode is an agent preset that selects tools and defines how the agent works in a task. A plugin can be included in a custom preset.",
|
|
134
|
+
"### How the result takes effect",
|
|
135
|
+
"Ask the agent to install and verify the result, not just generate source code. A plugin may load immediately or require a restart, depending on what it changes. A newly created preset is selected when starting a new task."
|
|
136
|
+
].join("\n\n"),
|
|
137
|
+
guideCordisUsage: [
|
|
138
|
+
"### Add a UI",
|
|
139
|
+
"> Create a DSH plugin that adds a project notes entry to the sidebar. Let me browse the Markdown files in this workspace and preview a selected note. Install it and verify that the page opens.",
|
|
140
|
+
"Expected output: an installed plugin with a working entry and preview page, plus any remaining activation steps.",
|
|
141
|
+
"### Add a tool",
|
|
142
|
+
"> Create a plugin with a tool that reads this project’s test report and summarizes the failed tests. Register it and verify it with a sample report.",
|
|
143
|
+
"Expected output: a plugin with a callable tool and a verified sample call.",
|
|
144
|
+
"### Create my own mode",
|
|
145
|
+
"> Create a “Code review” mode based on Standard mode. Have it prioritize potential bugs and test gaps, cite file paths and lines, and ask before modifying files. Save it as a selectable preset.",
|
|
146
|
+
"Expected output: a custom preset for new tasks. These review instructions guide the agent; permission settings determine which actions it can execute."
|
|
147
|
+
].join("\n\n")
|
|
148
|
+
};
|
|
149
|
+
/** Simplified Chinese help. Examples describe suggested tasks, not recorded runs. */
|
|
150
|
+
const guideZh = {
|
|
151
|
+
modeExplanation: "模式说明",
|
|
152
|
+
howToUse: "如何使用",
|
|
153
|
+
guideSections: "帮助内容",
|
|
154
|
+
guideExampleTask: "示例任务",
|
|
155
|
+
guideCopy: "复制",
|
|
156
|
+
guideCopied: "已复制",
|
|
157
|
+
guideFootnotes: "脚注",
|
|
158
|
+
guideStandardIntro: "新建任务时选择「标准模式」,说明要完成什么、相关文件在哪里,以及怎样判断任务完成。",
|
|
159
|
+
guideStandardExplanation: [
|
|
160
|
+
"### 工作方式",
|
|
161
|
+
"Agent 直接调用工具来读写文件、检索资料和执行终端命令。包含 Skills、计划、目标、子 Agent、工作流和上下文压缩等能力。",
|
|
162
|
+
"### 什么时候选",
|
|
163
|
+
"日常编程、文件处理和资料整理可以从这里开始。标准模式也能编写脚本、批量处理文件;PTC 改变的是工具调用方式,批量任务并不必须使用 PTC。"
|
|
164
|
+
].join("\n\n"),
|
|
165
|
+
guideStandardUsage: [
|
|
166
|
+
"### 修复一个问题",
|
|
167
|
+
"> 搜索表单连续提交两次后,结果会消失。请定位原因、修复问题并运行相关测试,最后说明原因和修改内容。",
|
|
168
|
+
"预期产出:代码修改、相关测试结果,以及问题原因说明。",
|
|
169
|
+
"### 整理项目资料",
|
|
170
|
+
"> 阅读项目中的 Markdown 记录,整理已经达成的结论和仍待确认的问题,并附上对应文件链接。",
|
|
171
|
+
"预期产出:一份带来源引用的总结,方便回到原文核对。"
|
|
172
|
+
].join("\n\n"),
|
|
173
|
+
guidePtcIntro: "新建任务时选择「PTC 模式」,说明输入文件、处理规则和输出格式。代码由 Agent 编写。",
|
|
174
|
+
guidePtcExplanation: [
|
|
175
|
+
"### 怎样调用工具",
|
|
176
|
+
"PTC 是 Programmatic Tool Calling,即通过程序调用工具。当前内置预设让 Agent 通过 run_code 编写 TypeScript 程序,使用生成的工具 SDK 发起调用。程序可以组织循环、条件判断、错误处理,以及适合并发执行的调用。",
|
|
177
|
+
"### 哪些结果交给模型",
|
|
178
|
+
"工具返回的数据先交给程序,经过筛选、计算或合并,再通过输出或返回值交给模型;图片结果会另行附加。程序中的工具调用仍会被记录,也仍受工具权限约束。",
|
|
179
|
+
"### 与标准模式的区别",
|
|
180
|
+
"两种模式都能编程、批量处理文件。标准模式直接向模型提供各个工具;PTC 让模型用代码组织工具调用。当前 PTC 预设未启用 workflow 工具。速度和 token 用量取决于具体任务与结果处理方式。"
|
|
181
|
+
].join("\n\n"),
|
|
182
|
+
guidePtcUsage: [
|
|
183
|
+
"### 批量检查配置文件",
|
|
184
|
+
"> 检查 configs/ 下所有 JSON 文件,按照 schema.json 找出缺失字段和不合法的值。每个问题写成 CSV 中的一行;读取失败的文件也记入报告,继续检查其余文件。保留原文件。",
|
|
185
|
+
"预期产出:问题汇总和一份 CSV 报告。程序可以对多份文件执行相同检查,处理单个文件的失败,再汇总结果。",
|
|
186
|
+
"### 汇总错误日志",
|
|
187
|
+
"> 分析 logs/ 下的日志,按服务和错误类型统计次数,列出出现最多的十类错误,每类保留一条示例。完整统计另存为 CSV。",
|
|
188
|
+
"预期产出:高频错误摘要和完整统计表。中间数据可以先在程序中聚合,再把汇总交给模型。"
|
|
189
|
+
].join("\n\n"),
|
|
190
|
+
guideMinimalIntro: "新建任务时选择「极简模式」。做对照测试时,保持模型、权限、任务输入和工作区起始状态一致。",
|
|
191
|
+
guideMinimalExplanation: [
|
|
192
|
+
"### 保留哪些能力",
|
|
193
|
+
"仅提供一个持久 Shell 工具,并使用固定系统提示词。内置预设不加载 Skills、计划、上下文压缩,也不注入标准运行时上下文。",
|
|
194
|
+
"### 什么时候选",
|
|
195
|
+
"适合作为实验和对照测试的基线。Agent 仍能通过终端命令读写文件、运行脚本,但缺少管理长任务的内置辅助能力。工具少,不代表对新手更容易。"
|
|
196
|
+
].join("\n\n"),
|
|
197
|
+
guideMinimalUsage: [
|
|
198
|
+
"### 对比基础修复表现",
|
|
199
|
+
"> 运行这个项目的测试,找出失败原因,做最小修复,再运行相关测试并报告结果。",
|
|
200
|
+
"分别用标准模式和极简模式,从相同的工作区状态执行这条任务,对比完成情况、工具调用和最终修改。极简模式会通过终端命令完成这些操作。"
|
|
201
|
+
].join("\n\n"),
|
|
202
|
+
guideCordisIntro: "新建任务时选择「创造模式」,说明希望增加什么能力、从哪里使用,以及怎样验证效果。",
|
|
203
|
+
guideCordisExplanation: [
|
|
204
|
+
"### 可以创造什么",
|
|
205
|
+
"创造模式具备标准任务工具,并增加运行时检查、持久化插件管理,以及 Cordis 插件和 Agent 预设的开发指引。可以编写插件来添加功能或界面,也可以组合工具和提示词,创建适合特定任务的模式。",
|
|
206
|
+
"### 插件与模式的关系",
|
|
207
|
+
"插件为 DSH 增加能力,例如工具、服务连接或界面入口。模式是一份 Agent 预设,用来选择任务可用的工具,并约定 Agent 的工作方式。自定义模式中也可以使用自己开发的插件。",
|
|
208
|
+
"### 怎样让成果生效",
|
|
209
|
+
"可以要求 Agent 完成安装并验证实际效果。插件可能即时加载,也可能需要重启,取决于修改内容;新建的模式在创建新任务时选择。"
|
|
210
|
+
].join("\n\n"),
|
|
211
|
+
guideCordisUsage: [
|
|
212
|
+
"### 添加一个界面",
|
|
213
|
+
"> 帮我写一个 DSH 插件,在侧栏增加「项目笔记」入口,列出当前工作区的 Markdown 文件,点击后能预览内容。完成安装并验证页面能打开。",
|
|
214
|
+
"预期产出:带侧栏入口和预览页的插件,以及仍需完成的生效步骤。",
|
|
215
|
+
"### 添加一个工具",
|
|
216
|
+
"> 写一个插件,提供读取项目测试报告、汇总失败用例的工具。注册工具,并用一份示例报告验证调用结果。",
|
|
217
|
+
"预期产出:可调用的新工具,以及一次示例调用的验证结果。",
|
|
218
|
+
"### 创建自己的模式",
|
|
219
|
+
"> 基于标准模式创建「代码审查」模式,优先检查潜在错误和测试缺口,指出文件与行号,修改文件前先询问我。保存成可选择的预设。",
|
|
220
|
+
"预期产出:可在新任务中选择的自定义模式。审查要求用于指导 Agent,实际可执行的操作仍由权限设置决定。"
|
|
221
|
+
].join("\n\n")
|
|
222
|
+
};
|
|
223
|
+
//#endregion
|
|
224
|
+
//#region ../../preset/agent-preset-registry/src/display.ts
|
|
75
225
|
const BUILT_IN_PRESET_KEYS = {
|
|
76
226
|
standard: {
|
|
77
227
|
name: "presetStandardName",
|
|
@@ -91,13 +241,22 @@ window.__ModuleLoader__.load({
|
|
|
91
241
|
}
|
|
92
242
|
};
|
|
93
243
|
/**
|
|
244
|
+
* Whether a roster row is one of the shipped presets whose copy the dictionaries carry.
|
|
245
|
+
* A shipped preset publishes no `name`; a declaration that names itself owns its copy.
|
|
246
|
+
* @param preset - roster row.
|
|
247
|
+
* @returns true for a shipped preset id without a published name.
|
|
248
|
+
*/
|
|
249
|
+
function isBuiltInPreset(preset) {
|
|
250
|
+
return preset.name === void 0 && BUILT_IN_PRESET_KEYS[preset.id] !== void 0;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
94
253
|
* Resolve preset display copy without making user-authored metadata translatable.
|
|
95
254
|
* @param preset - roster row whose copy is being rendered.
|
|
96
255
|
* @param t - active locale lookup covering {@link BuiltInPresetCopyKey}.
|
|
97
|
-
* @returns localized copy for a known shipped preset, otherwise
|
|
256
|
+
* @returns localized copy for a known shipped preset, otherwise declaration metadata.
|
|
98
257
|
*/
|
|
99
258
|
function presetDisplayText(preset, t) {
|
|
100
|
-
const keys = preset
|
|
259
|
+
const keys = isBuiltInPreset(preset) ? BUILT_IN_PRESET_KEYS[preset.id] : void 0;
|
|
101
260
|
if (keys !== void 0) return {
|
|
102
261
|
name: t(keys.name),
|
|
103
262
|
description: t(keys.description)
|
|
@@ -112,133 +271,75 @@ window.__ModuleLoader__.load({
|
|
|
112
271
|
/** Locale bundles for the agent-preset hero chip, header label, and management section. */
|
|
113
272
|
/** English copy. */
|
|
114
273
|
const en = {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
274
|
+
...guideEn,
|
|
275
|
+
builtInGroup: "Built-in",
|
|
276
|
+
customGroup: "Custom",
|
|
277
|
+
sectionIntro: "Choose the agent’s tools and how it works. Use Standard mode for everyday tasks, or Creator mode to add capabilities to DSH.",
|
|
278
|
+
seatHint: "Choose the agent preset for your new task",
|
|
279
|
+
headerHint: "The agent preset chosen when this task started",
|
|
119
280
|
nav: "Agent presets",
|
|
120
|
-
|
|
121
|
-
builtIn: "Built-in",
|
|
122
|
-
setDefault: "Set as default",
|
|
123
|
-
view: "View",
|
|
281
|
+
setDefault: "Set as new task default",
|
|
124
282
|
presetStandardName: "Standard mode",
|
|
125
|
-
presetStandardDescription: "
|
|
283
|
+
presetStandardDescription: "Work with code, files, and information. Suitable for most tasks, with search, editing, terminal commands, and other tools available as needed.",
|
|
126
284
|
presetPtcName: "PTC mode",
|
|
127
|
-
presetPtcDescription: "
|
|
285
|
+
presetPtcDescription: "Includes all Standard mode capabilities. Better suited to tasks that call tools in batches and then filter, organize, deduplicate, count, or summarize the results.",
|
|
128
286
|
presetMinimalName: "Minimal mode",
|
|
129
|
-
presetMinimalDescription: "
|
|
287
|
+
presetMinimalDescription: "The agent works using only a terminal tool. Useful for testing and comparing its basic performance.",
|
|
130
288
|
presetCordisName: "Creator mode",
|
|
131
|
-
presetCordisDescription: "
|
|
132
|
-
duplicate: "Duplicate",
|
|
133
|
-
duplicateUnavailable: "This deployment has no writable preset directory",
|
|
134
|
-
delete: "Delete",
|
|
135
|
-
presetId: "Identifier",
|
|
136
|
-
presetIdPlaceholder: "my-agent",
|
|
137
|
-
displayName: "Name",
|
|
138
|
-
displayNamePlaceholder: "Shown in the picker; defaults to the identifier",
|
|
289
|
+
presetCordisDescription: "Customize DSH through conversation. Let the agent write plugins that add features or UI, or combine tools and prompts to create your own mode.",
|
|
139
290
|
inUse: "New task default",
|
|
140
|
-
selectionOffDefault: "
|
|
141
|
-
builtInGroup: "Built-in",
|
|
142
|
-
customGroup: "Custom",
|
|
291
|
+
selectionOffDefault: "Application default",
|
|
143
292
|
noDescription: "No description.",
|
|
144
293
|
brokenBadge: "Failed to load",
|
|
145
|
-
brokenNoCopy: "A preset that failed to load cannot be duplicated",
|
|
146
294
|
switchRefused: "Could not switch to {name}: {reason}",
|
|
147
|
-
copyOf: "Copied from",
|
|
148
|
-
composition: "Composition (agent.cordis.yml)",
|
|
149
|
-
cancel: "Cancel",
|
|
150
295
|
close: "Close",
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
copyIntro: "The whole preset is copied on this machine. The identifier becomes its directory name and cannot be changed later; everything else is edited in the preset's own files.",
|
|
154
|
-
create: "Create",
|
|
155
|
-
creating: "Creating…",
|
|
156
|
-
creatorDraft: "Draft a custom preset with Creator mode",
|
|
157
|
-
openLocation: "Open folder",
|
|
158
|
-
showLocation: "Show location",
|
|
159
|
-
revealedPathLabel: "Preset files:",
|
|
160
|
-
idRequired: "Give the preset an identifier.",
|
|
161
|
-
idInvalid: "Use lowercase letters, digits, and hyphens, starting with a letter or digit.",
|
|
162
|
-
idTaken: "A preset with this identifier already exists.",
|
|
163
|
-
deleteTitle: "Delete this preset?",
|
|
164
|
-
deleteDescription: "The preset directory is deleted. Sessions already running on it keep working; new sessions cannot select it.",
|
|
165
|
-
deleteConfirm: "Delete",
|
|
166
|
-
deleting: "Deleting…",
|
|
167
|
-
showPicker: "Allow switching Agent modes",
|
|
296
|
+
creatorDraft: "Let the agent help me create a preset",
|
|
297
|
+
showPicker: "Choose a mode for new tasks",
|
|
168
298
|
showPickerBeta: "Beta",
|
|
169
|
-
showPickerDescription: "When enabled, new
|
|
170
|
-
enablePickerToSetDefault: "Turn on
|
|
171
|
-
enablePickerToCreate: "Turn on
|
|
299
|
+
showPickerDescription: "When enabled, each new task can choose a mode and the default is set here. When disabled, new tasks use the application default preset. Existing tasks are unaffected.",
|
|
300
|
+
enablePickerToSetDefault: "Turn on mode selection for new tasks to choose a default",
|
|
301
|
+
enablePickerToCreate: "Turn on mode selection for new tasks to start Creator mode"
|
|
172
302
|
};
|
|
173
303
|
/** Simplified Chinese copy. */
|
|
174
304
|
const zh = {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
305
|
+
...guideZh,
|
|
306
|
+
builtInGroup: "内置",
|
|
307
|
+
customGroup: "自定义",
|
|
308
|
+
sectionIntro: "选择 Agent 的工具和工作方式。日常任务用「标准模式」,扩展 DSH 的能力用「创造模式」。",
|
|
309
|
+
seatHint: "选择新任务使用的 Agent 预设",
|
|
310
|
+
headerHint: "本任务的 Agent 预设,在任务开始时确定",
|
|
179
311
|
nav: "Agent 预设",
|
|
180
|
-
|
|
181
|
-
builtIn: "内置",
|
|
182
|
-
setDefault: "设为默认",
|
|
183
|
-
view: "查看",
|
|
312
|
+
setDefault: "设为新任务默认",
|
|
184
313
|
presetStandardName: "标准模式",
|
|
185
|
-
presetStandardDescription: "
|
|
314
|
+
presetStandardDescription: "处理代码、文件和资料,适合大多数任务。Agent 会按需使用检索、编辑和终端等工具。",
|
|
186
315
|
presetPtcName: "PTC 模式",
|
|
187
|
-
presetPtcDescription: "
|
|
316
|
+
presetPtcDescription: "包含标准模式的所有能力,更适合批量调用工具,并对结果进行筛选、整理、去重、统计或汇总的任务。",
|
|
188
317
|
presetMinimalName: "极简模式",
|
|
189
|
-
presetMinimalDescription: "
|
|
318
|
+
presetMinimalDescription: "Agent 仅使用终端工具完成任务,适合测试和对比其基础表现。",
|
|
190
319
|
presetCordisName: "创造模式",
|
|
191
|
-
presetCordisDescription: "
|
|
192
|
-
duplicate: "复制",
|
|
193
|
-
duplicateUnavailable: "此部署未配置可写的预设目录",
|
|
194
|
-
delete: "删除",
|
|
195
|
-
presetId: "标识符",
|
|
196
|
-
presetIdPlaceholder: "my-agent",
|
|
197
|
-
displayName: "名称",
|
|
198
|
-
displayNamePlaceholder: "选择器中显示的名字,缺省用标识符",
|
|
320
|
+
presetCordisDescription: "用对话定制 DSH:让 Agent 编写插件,添加新功能或界面;也能组合工具和提示词,创建自己的模式。",
|
|
199
321
|
inUse: "新任务默认",
|
|
200
|
-
selectionOffDefault: "
|
|
201
|
-
builtInGroup: "内置",
|
|
202
|
-
customGroup: "自定义",
|
|
322
|
+
selectionOffDefault: "应用默认",
|
|
203
323
|
noDescription: "暂无描述。",
|
|
204
324
|
brokenBadge: "加载失败",
|
|
205
|
-
brokenNoCopy: "预设加载失败,不能复制",
|
|
206
325
|
switchRefused: "无法切换到「{name}」:{reason}",
|
|
207
|
-
copyOf: "复制自",
|
|
208
|
-
composition: "组装(agent.cordis.yml)",
|
|
209
|
-
cancel: "取消",
|
|
210
326
|
close: "关闭",
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
openLocation: "打开目录",
|
|
218
|
-
showLocation: "查看路径",
|
|
219
|
-
revealedPathLabel: "预设文件:",
|
|
220
|
-
idRequired: "请填写标识符。",
|
|
221
|
-
idInvalid: "只能使用小写字母、数字与连字符,且以字母或数字开头。",
|
|
222
|
-
idTaken: "该标识符已被占用。",
|
|
223
|
-
deleteTitle: "删除该预设?",
|
|
224
|
-
deleteDescription: "预设目录将被删除。已在其上运行的会话不受影响;新会话将无法再选择它。",
|
|
225
|
-
deleteConfirm: "删除",
|
|
226
|
-
deleting: "正在删除…",
|
|
227
|
-
showPicker: "允许切换agent模式",
|
|
228
|
-
showPickerBeta: "beta",
|
|
229
|
-
showPickerDescription: "开启后,新任务可选择标准、PTC、创造、极简及自定义模式;关闭后统一使用默认模式(默认为标准模式,可自定义)。仅影响新任务。",
|
|
230
|
-
enablePickerToSetDefault: "请先开启 Agent 模式选择,再设置默认模式",
|
|
231
|
-
enablePickerToCreate: "请先开启 Agent 模式选择,再启动创造模式"
|
|
327
|
+
creatorDraft: "让 Agent 帮我创建预设模式",
|
|
328
|
+
showPicker: "新任务可选择模式",
|
|
329
|
+
showPickerBeta: "Beta",
|
|
330
|
+
showPickerDescription: "开启后,可为每个新任务选择模式,并在这里设置默认值。关闭后,新任务使用应用配置的默认预设。已有任务不受影响。",
|
|
331
|
+
enablePickerToSetDefault: "请先开启新任务模式选择,再设置默认值",
|
|
332
|
+
enablePickerToCreate: "请先开启新任务模式选择,再启动创造模式"
|
|
232
333
|
};
|
|
233
334
|
//#endregion
|
|
234
335
|
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-agent-preset/src/client/AgentPresetLabel.module.css.mjs
|
|
235
|
-
const css$
|
|
236
|
-
const tagId$
|
|
237
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
336
|
+
const css$3 = ".HxAcOG_label{background:var(--dsw-alias-fill-tsp-secondary);max-width:180px;height:22px;color:var(--dsw-alias-label-secondary);white-space:nowrap;text-overflow:ellipsis;border-radius:6px;align-items:center;gap:4px;padding:0 2px 0 0;font-size:12px;line-height:22px;display:inline-flex;overflow:hidden}.HxAcOG_icon{opacity:.7;flex:none}";
|
|
337
|
+
const tagId$3 = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetLabel.module.css";
|
|
338
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
|
|
238
339
|
const tag = document.createElement("style");
|
|
239
340
|
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-agent-preset";
|
|
240
|
-
tag.dataset.pluginCss = tagId$
|
|
241
|
-
tag.textContent = css$
|
|
341
|
+
tag.dataset.pluginCss = tagId$3;
|
|
342
|
+
tag.textContent = css$3;
|
|
242
343
|
document.head.appendChild(tag);
|
|
243
344
|
}
|
|
244
345
|
var AgentPresetLabel_module_css_default = {
|
|
@@ -276,7 +377,7 @@ window.__ModuleLoader__.load({
|
|
|
276
377
|
return (0, react_jsx_runtime.jsxs)("span", {
|
|
277
378
|
className: AgentPresetLabel_module_css_default.label,
|
|
278
379
|
title: text?.description ?? t("headerHint"),
|
|
279
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
380
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconAgentPresetOutlineRegular, {
|
|
280
381
|
size: 14,
|
|
281
382
|
className: AgentPresetLabel_module_css_default.icon
|
|
282
383
|
}), text?.name ?? preset]
|
|
@@ -284,13 +385,13 @@ window.__ModuleLoader__.load({
|
|
|
284
385
|
}
|
|
285
386
|
//#endregion
|
|
286
387
|
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-agent-preset/src/client/AgentPresetSeat.module.css.mjs
|
|
287
|
-
const css$
|
|
288
|
-
const tagId$
|
|
289
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$
|
|
388
|
+
const css$2 = ".Y55O_q_menuAnchor{min-width:54px;max-width:100%}.Y55O_q_seat{min-width:0;max-width:min(100%,240px);min-height:28px;color:var(--dsw-alias-label-primary);white-space:nowrap;cursor:pointer;background:0 0;border:none;border-radius:16px;align-items:center;gap:4px;padding:0 8px;font-size:13px;font-weight:500;line-height:20px;display:inline-flex}.Y55O_q_seat:not(:disabled):hover,.Y55O_q_seat[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover)}.Y55O_q_seat:disabled{cursor:default;color:var(--dsw-alias-label-quaternary)}.Y55O_q_seatIcon{color:var(--dsw-alias-label-primary);flex:none}.Y55O_q_seatLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Y55O_q_introIcon{animation:.15s cubic-bezier(.16,1,.3,1) both Y55O_q_seat-icon-in}@keyframes Y55O_q_seat-icon-in{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.Y55O_q_introText{white-space:pre;display:inline-block}.Y55O_q_introChar{white-space:pre;opacity:0;animation:.4s ease-out forwards Y55O_q_seat-char-in;display:inline-block}@keyframes Y55O_q_seat-char-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.Y55O_q_introIcon,.Y55O_q_introChar{opacity:1;animation:none}}.Y55O_q_chevron{color:var(--dsw-alias-label-caption);flex:none}.Y55O_q_item{flex-direction:column;gap:2px;max-width:280px;display:flex}.Y55O_q_itemName{color:var(--dsw-alias-label-primary);font-size:13px;line-height:20px}.Y55O_q_itemDesc{color:var(--dsw-alias-label-caption);white-space:normal;font-size:12px;line-height:16px}";
|
|
389
|
+
const tagId$2 = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetSeat.module.css";
|
|
390
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
|
|
290
391
|
const tag = document.createElement("style");
|
|
291
392
|
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-agent-preset";
|
|
292
|
-
tag.dataset.pluginCss = tagId$
|
|
293
|
-
tag.textContent = css$
|
|
393
|
+
tag.dataset.pluginCss = tagId$2;
|
|
394
|
+
tag.textContent = css$2;
|
|
294
395
|
document.head.appendChild(tag);
|
|
295
396
|
}
|
|
296
397
|
var AgentPresetSeat_module_css_default = {
|
|
@@ -327,16 +428,7 @@ window.__ModuleLoader__.load({
|
|
|
327
428
|
const INTRO_CHAR_STAGGER_MS = 40;
|
|
328
429
|
const INTRO_TEXT_REVEAL_MS = 200;
|
|
329
430
|
const INTRO_CHAR_FADE_MS = 400;
|
|
330
|
-
/**
|
|
331
|
-
* How long a refused switch holds before fading.
|
|
332
|
-
*
|
|
333
|
-
* Longer than the primitive's default because this banner is the only place
|
|
334
|
-
* the refusal appears. The chip's label has already snapped back to the
|
|
335
|
-
* preset the session still runs, and a preset the host refuses to MOUNT is
|
|
336
|
-
* one discovery reported healthy — its row on the settings page carries no
|
|
337
|
-
* reason to go back and read, because there was nothing to see until the
|
|
338
|
-
* rows actually ran.
|
|
339
|
-
*/
|
|
431
|
+
/** Duration of a selection-refusal banner, including a revision becoming unavailable during a pick. */
|
|
340
432
|
const REFUSAL_HOLD_MS = 8e3;
|
|
341
433
|
/**
|
|
342
434
|
* Per-character start offset for the introduce reveal.
|
|
@@ -352,22 +444,24 @@ window.__ModuleLoader__.load({
|
|
|
352
444
|
* @param props - composed slot props.
|
|
353
445
|
* @returns the chip, or null when the deployment composes no presets.
|
|
354
446
|
*/
|
|
355
|
-
function AgentPresetSeat({ sessionId, useSessionRetainInfo, load, select, introduced, useAgentPresetSeat, t }) {
|
|
447
|
+
function AgentPresetSeat({ sessionId, useSessionRetainInfo, load, select, introduced, useAgentPresetSeat, useShowPresetPicker, t }) {
|
|
448
|
+
const showPresetPicker = useShowPresetPicker((value) => value);
|
|
356
449
|
const state = useAgentPresetSeat((snapshot) => snapshot);
|
|
357
450
|
const main = useSessionRetainInfo((info) => sessionId === void 0 || (info?.retainedBy.mainView ?? 0) > 0);
|
|
358
451
|
const [open, setOpen] = (0, react.useState)(false);
|
|
359
452
|
const toastSeq = (0, react.useRef)(0);
|
|
360
453
|
const [toast, setToast] = (0, react.useState)(null);
|
|
361
|
-
const
|
|
362
|
-
pickerVisible
|
|
454
|
+
const visible = showPresetPicker && state.showPicker;
|
|
455
|
+
const pickerVisible = (0, react.useRef)(visible);
|
|
456
|
+
pickerVisible.current = visible;
|
|
363
457
|
(0, react.useEffect)(() => {
|
|
364
458
|
load();
|
|
365
459
|
}, [load]);
|
|
366
460
|
(0, react.useEffect)(() => {
|
|
367
|
-
if (
|
|
461
|
+
if (visible) return;
|
|
368
462
|
setOpen(false);
|
|
369
463
|
setToast(null);
|
|
370
|
-
}, [
|
|
464
|
+
}, [visible]);
|
|
371
465
|
const chosen = state.options.find((option) => option.id === state.current);
|
|
372
466
|
const label = (chosen === void 0 ? void 0 : presetDisplayText(chosen, t))?.name ?? state.current;
|
|
373
467
|
const ready = state.options.length > 0 && state.current !== "";
|
|
@@ -393,7 +487,7 @@ window.__ModuleLoader__.load({
|
|
|
393
487
|
label,
|
|
394
488
|
introduced
|
|
395
489
|
]);
|
|
396
|
-
if (!main || !
|
|
490
|
+
if (!main || !visible || !ready) return null;
|
|
397
491
|
const characters = Array.from(label);
|
|
398
492
|
const stagger = introStaggerMs(characters.length);
|
|
399
493
|
const shownLabel = introducing ? (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -457,17 +551,17 @@ window.__ModuleLoader__.load({
|
|
|
457
551
|
setOpen((value) => !value);
|
|
458
552
|
},
|
|
459
553
|
children: [
|
|
460
|
-
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
554
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconAgentPresetOutlineRegular, { className: introducing ? `${AgentPresetSeat_module_css_default.seatIcon} ${AgentPresetSeat_module_css_default.introIcon}` : AgentPresetSeat_module_css_default.seatIcon }),
|
|
461
555
|
(0, react_jsx_runtime.jsx)("span", {
|
|
462
556
|
className: AgentPresetSeat_module_css_default.seatLabel,
|
|
463
557
|
children: shownLabel
|
|
464
558
|
}),
|
|
465
|
-
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
559
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { className: AgentPresetSeat_module_css_default.chevron })
|
|
466
560
|
]
|
|
467
561
|
})
|
|
468
562
|
}), toast !== null && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Toast, {
|
|
469
563
|
text: toast.text,
|
|
470
|
-
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.
|
|
564
|
+
icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconWarningOutlineRegular, {}),
|
|
471
565
|
holdMs: REFUSAL_HOLD_MS,
|
|
472
566
|
anchor: document.querySelector("[data-composer-card]"),
|
|
473
567
|
onDone: () => {
|
|
@@ -476,6 +570,463 @@ window.__ModuleLoader__.load({
|
|
|
476
570
|
}, toast.seq)] });
|
|
477
571
|
}
|
|
478
572
|
//#endregion
|
|
573
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-agent-preset/src/client/PresetGuideDialog.module.css.mjs
|
|
574
|
+
const css$1 = ".iYayda_guideDialog{box-sizing:border-box;gap:0;width:min(640px,100%);height:min(600px,100%);max-height:100%;padding:0}.iYayda_guideLayout{flex-direction:column;height:100%;min-height:0;display:flex}.iYayda_guideHeader{flex:none;padding:24px 24px 20px 28px}.iYayda_guideTitleRow{justify-content:space-between;align-items:center;gap:16px;display:flex}.iYayda_guideTitle{margin:0;font-size:20px;font-weight:600;line-height:28px}.iYayda_guideIntro{color:var(--dsw-alias-label-secondary);margin:8px 0 0;font-size:14px;line-height:22px}.iYayda_guideClose{width:32px;height:32px;min-height:32px;color:var(--dsw-alias-label-tertiary);border-radius:10px;padding:0}.iYayda_guideTabs{flex:none;margin:0 28px 22px}.iYayda_guidePanel{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;flex:1;padding:0 24px 24px 28px;font-size:16px;overflow-y:auto}.iYayda_guidePanel:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.iYayda_guidePanel h3{margin:28px 0 10px;font-size:16px;font-weight:600;line-height:24px}.iYayda_guidePanel h3:first-child{margin-top:0}.iYayda_guidePanel p{color:var(--dsw-alias-label-primary);margin:0 0 16px;font-size:16px;line-height:1.625}.iYayda_guidePanel blockquote{background:var(--dsw-alias-bg-module-platform);border:0;border-radius:12px;margin:10px 0 14px;padding:14px 16px}.iYayda_guidePanel blockquote p{color:var(--dsw-alias-label-primary);margin:0}.iYayda_guidePanel[data-guide-page=usage] p{color:var(--dsw-alias-label-secondary);margin-bottom:12px;font-size:14px;line-height:22px}.iYayda_guidePanel[data-guide-page=usage] h3{margin:0}.iYayda_guideExample+.iYayda_guideExample{margin-top:28px}.iYayda_guideExampleHeader{flex-wrap:wrap;align-items:center;gap:8px 10px;margin-bottom:8px;display:flex}.iYayda_guideExampleTag{flex-shrink:0;gap:4px}.iYayda_guidePanel[data-guide-page=usage] blockquote{margin:8px 0;padding:12px 16px}.iYayda_guidePanel[data-guide-page=usage] blockquote p{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;line-height:26px}";
|
|
575
|
+
const tagId$1 = "@deepseek-ai/dsh-client-ui-agent-preset/PresetGuideDialog.module.css";
|
|
576
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
|
|
577
|
+
const tag = document.createElement("style");
|
|
578
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-agent-preset";
|
|
579
|
+
tag.dataset.pluginCss = tagId$1;
|
|
580
|
+
tag.textContent = css$1;
|
|
581
|
+
document.head.appendChild(tag);
|
|
582
|
+
}
|
|
583
|
+
var PresetGuideDialog_module_css_default = {
|
|
584
|
+
"guideClose": "iYayda_guideClose",
|
|
585
|
+
"guideDialog": "iYayda_guideDialog",
|
|
586
|
+
"guideExample": "iYayda_guideExample",
|
|
587
|
+
"guideExampleHeader": "iYayda_guideExampleHeader",
|
|
588
|
+
"guideExampleTag": "iYayda_guideExampleTag",
|
|
589
|
+
"guideHeader": "iYayda_guideHeader",
|
|
590
|
+
"guideIntro": "iYayda_guideIntro",
|
|
591
|
+
"guideLayout": "iYayda_guideLayout",
|
|
592
|
+
"guidePanel": "iYayda_guidePanel",
|
|
593
|
+
"guideTabs": "iYayda_guideTabs",
|
|
594
|
+
"guideTitle": "iYayda_guideTitle",
|
|
595
|
+
"guideTitleRow": "iYayda_guideTitleRow"
|
|
596
|
+
};
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region lib/types/client/PresetGuideDialog.js
|
|
599
|
+
/** Read-only help stays local to Settings and never changes the selected preset. */
|
|
600
|
+
const guides = new Map([
|
|
601
|
+
["standard", {
|
|
602
|
+
name: "presetStandardName",
|
|
603
|
+
intro: "guideStandardIntro",
|
|
604
|
+
explanation: "guideStandardExplanation",
|
|
605
|
+
usage: "guideStandardUsage"
|
|
606
|
+
}],
|
|
607
|
+
["ptc", {
|
|
608
|
+
name: "presetPtcName",
|
|
609
|
+
intro: "guidePtcIntro",
|
|
610
|
+
explanation: "guidePtcExplanation",
|
|
611
|
+
usage: "guidePtcUsage"
|
|
612
|
+
}],
|
|
613
|
+
["minimal", {
|
|
614
|
+
name: "presetMinimalName",
|
|
615
|
+
intro: "guideMinimalIntro",
|
|
616
|
+
explanation: "guideMinimalExplanation",
|
|
617
|
+
usage: "guideMinimalUsage"
|
|
618
|
+
}],
|
|
619
|
+
["cordis", {
|
|
620
|
+
name: "presetCordisName",
|
|
621
|
+
intro: "guideCordisIntro",
|
|
622
|
+
explanation: "guideCordisExplanation",
|
|
623
|
+
usage: "guideCordisUsage"
|
|
624
|
+
}]
|
|
625
|
+
]);
|
|
626
|
+
/**
|
|
627
|
+
* Look up help only for known, shipped presets.
|
|
628
|
+
* @param id - preset identifier from the roster.
|
|
629
|
+
* @param trust - roster source; custom presets own their capability claims.
|
|
630
|
+
* @returns the shipped guide, or undefined for unknown and custom presets.
|
|
631
|
+
*/
|
|
632
|
+
function presetGuide(id, trust) {
|
|
633
|
+
return trust === "system" ? guides.get(id) : void 0;
|
|
634
|
+
}
|
|
635
|
+
/** Curated usage dictionaries contain only level-three example sections. */
|
|
636
|
+
function GuideUsage({ text, t }) {
|
|
637
|
+
const labels = {
|
|
638
|
+
code: {
|
|
639
|
+
copyLabel: t("guideCopy"),
|
|
640
|
+
copiedLabel: t("guideCopied")
|
|
641
|
+
},
|
|
642
|
+
footnotes: t("guideFootnotes")
|
|
643
|
+
};
|
|
644
|
+
return text.split(/(?=^### )/m).map((section) => {
|
|
645
|
+
const headingEnd = section.indexOf("\n");
|
|
646
|
+
const title = section.slice(4, headingEnd);
|
|
647
|
+
return (0, react_jsx_runtime.jsxs)("section", {
|
|
648
|
+
className: PresetGuideDialog_module_css_default.guideExample,
|
|
649
|
+
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
650
|
+
className: PresetGuideDialog_module_css_default.guideExampleHeader,
|
|
651
|
+
children: [(0, react_jsx_runtime.jsx)("h3", { children: title }), (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
652
|
+
tone: "neutral",
|
|
653
|
+
className: PresetGuideDialog_module_css_default.guideExampleTag,
|
|
654
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconListPenOutlineRegular, { size: 12 }), t("guideExampleTask")]
|
|
655
|
+
})]
|
|
656
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MarkdownText, {
|
|
657
|
+
text: section.slice(headingEnd + 1),
|
|
658
|
+
labels
|
|
659
|
+
})]
|
|
660
|
+
}, title);
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* Open read-only help without changing the selected preset.
|
|
665
|
+
* @param props - localized guide, initial page, and close callback.
|
|
666
|
+
* @returns the modal reader with independent scroll positions for each page.
|
|
667
|
+
*/
|
|
668
|
+
function PresetGuideDialog({ guide, initialPage, t, onClose }) {
|
|
669
|
+
const [page, setPage] = (0, react.useState)(initialPage);
|
|
670
|
+
const guideId = (0, react.useId)();
|
|
671
|
+
const content = (0, react.useRef)(null);
|
|
672
|
+
(0, react.useLayoutEffect)(() => {
|
|
673
|
+
const previous = document.activeElement;
|
|
674
|
+
content.current?.querySelector("[role=\"tab\"][aria-selected=\"true\"]")?.focus();
|
|
675
|
+
return () => {
|
|
676
|
+
if (previous instanceof HTMLElement) previous.focus();
|
|
677
|
+
};
|
|
678
|
+
}, []);
|
|
679
|
+
const onKeyDown = (event) => {
|
|
680
|
+
if (event.key === "Escape") {
|
|
681
|
+
event.preventDefault();
|
|
682
|
+
event.stopPropagation();
|
|
683
|
+
onClose();
|
|
684
|
+
} else if (event.key === "Tab") {
|
|
685
|
+
const targets = Array.from(event.currentTarget.querySelectorAll("button:not([disabled]):not([tabindex=\"-1\"]), [tabindex=\"0\"]")).filter((element) => !element.closest("[hidden]"));
|
|
686
|
+
const first = targets[0];
|
|
687
|
+
const last = targets[targets.length - 1];
|
|
688
|
+
if (event.shiftKey && document.activeElement === first) {
|
|
689
|
+
event.preventDefault();
|
|
690
|
+
last?.focus();
|
|
691
|
+
} else if (!event.shiftKey && document.activeElement === last) {
|
|
692
|
+
event.preventDefault();
|
|
693
|
+
first?.focus();
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
698
|
+
open: true,
|
|
699
|
+
headless: true,
|
|
700
|
+
onClose,
|
|
701
|
+
title: t(guide.name),
|
|
702
|
+
className: PresetGuideDialog_module_css_default.guideDialog,
|
|
703
|
+
children: (0, react_jsx_runtime.jsxs)("div", {
|
|
704
|
+
ref: content,
|
|
705
|
+
className: PresetGuideDialog_module_css_default.guideLayout,
|
|
706
|
+
role: "presentation",
|
|
707
|
+
onKeyDownCapture: onKeyDown,
|
|
708
|
+
children: [
|
|
709
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
710
|
+
className: PresetGuideDialog_module_css_default.guideHeader,
|
|
711
|
+
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
712
|
+
className: PresetGuideDialog_module_css_default.guideTitleRow,
|
|
713
|
+
children: [(0, react_jsx_runtime.jsx)("h2", {
|
|
714
|
+
className: PresetGuideDialog_module_css_default.guideTitle,
|
|
715
|
+
children: t(guide.name)
|
|
716
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
717
|
+
variant: "ghost",
|
|
718
|
+
className: PresetGuideDialog_module_css_default.guideClose,
|
|
719
|
+
"aria-label": t("close"),
|
|
720
|
+
onClick: onClose,
|
|
721
|
+
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, { size: 18 })
|
|
722
|
+
})]
|
|
723
|
+
}), (0, react_jsx_runtime.jsx)("p", {
|
|
724
|
+
className: PresetGuideDialog_module_css_default.guideIntro,
|
|
725
|
+
children: t(guide.intro)
|
|
726
|
+
})]
|
|
727
|
+
}),
|
|
728
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SegmentedTabs, {
|
|
729
|
+
className: PresetGuideDialog_module_css_default.guideTabs,
|
|
730
|
+
label: t("guideSections"),
|
|
731
|
+
value: page,
|
|
732
|
+
onChange: setPage,
|
|
733
|
+
items: [{
|
|
734
|
+
value: "explanation",
|
|
735
|
+
label: t("modeExplanation"),
|
|
736
|
+
id: `${guideId}-explanation-tab`,
|
|
737
|
+
panelId: `${guideId}-explanation-panel`
|
|
738
|
+
}, {
|
|
739
|
+
value: "usage",
|
|
740
|
+
label: t("howToUse"),
|
|
741
|
+
id: `${guideId}-usage-tab`,
|
|
742
|
+
panelId: `${guideId}-usage-panel`
|
|
743
|
+
}]
|
|
744
|
+
}),
|
|
745
|
+
["explanation", "usage"].map((section) => (0, react_jsx_runtime.jsx)("div", {
|
|
746
|
+
id: `${guideId}-${section}-panel`,
|
|
747
|
+
role: "tabpanel",
|
|
748
|
+
"aria-labelledby": `${guideId}-${section}-tab`,
|
|
749
|
+
className: PresetGuideDialog_module_css_default.guidePanel,
|
|
750
|
+
"data-guide-page": section,
|
|
751
|
+
hidden: page !== section,
|
|
752
|
+
tabIndex: 0,
|
|
753
|
+
children: section === "usage" ? (0, react_jsx_runtime.jsx)(GuideUsage, {
|
|
754
|
+
text: t(guide.usage),
|
|
755
|
+
t
|
|
756
|
+
}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MarkdownText, {
|
|
757
|
+
text: t(guide.explanation),
|
|
758
|
+
labels: {
|
|
759
|
+
code: {
|
|
760
|
+
copyLabel: t("guideCopy"),
|
|
761
|
+
copiedLabel: t("guideCopied")
|
|
762
|
+
},
|
|
763
|
+
footnotes: t("guideFootnotes")
|
|
764
|
+
}
|
|
765
|
+
})
|
|
766
|
+
}, section))
|
|
767
|
+
]
|
|
768
|
+
})
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
//#endregion
|
|
772
|
+
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-agent-preset/src/client/AgentPresetSection.module.css.mjs
|
|
773
|
+
const css = ".PiZwra_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}.PiZwra_title{margin:0;font-size:18px;font-weight:600}.PiZwra_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px}.PiZwra_pickerPreference{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-module-platform);border-radius:14px;justify-content:space-between;align-items:flex-start;gap:20px;padding:14px 16px;display:flex}.PiZwra_pickerPreferenceCopy{gap:4px;min-width:0;display:grid}.PiZwra_pickerPreferenceTitleRow{align-items:center;gap:6px;min-width:0;display:flex}.PiZwra_pickerPreferenceTitle{font-size:14px;font-weight:600;line-height:1.5}.PiZwra_pickerPreferenceDescription{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.5}.PiZwra_group{flex-direction:column;gap:10px;display:flex}.PiZwra_group+.PiZwra_group{margin-top:20px}.PiZwra_groupHead{letter-spacing:.06em;text-transform:uppercase;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;font-weight:600}.PiZwra_cards{grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.PiZwra_card{border:.5px solid var(--dsw-alias-border-l4);background:0 0;border-radius:20px;flex-direction:column;transition:border-color .16s,background .16s;display:flex}.PiZwra_card:hover:not(.PiZwra_cardActive):not(.PiZwra_cardSelectionDisabled){background:var(--dsw-alias-interactive-bg-hover)}.PiZwra_cardActive{background:var(--dsw-alias-bg-module-platform);border-color:var(--dsw-static-neutral-bluish-400)}.PiZwra_cardSelectionDisabled{background:var(--dsw-alias-bg-module-platform)}.PiZwra_cardSelectionDisabled .PiZwra_cardMain{opacity:.48}.PiZwra_cardBroken,.PiZwra_cardBroken:hover{border-color:var(--dsw-alias-state-error-primary)}.PiZwra_brokenBadge{corner-shape:round;white-space:nowrap;background:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-bg-layer-3);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.PiZwra_brokenTip{z-index:1;background:var(--dsw-alias-label-primary);width:max-content;max-width:100%;color:var(--dsw-alias-bg-layer-3);text-align:left;white-space:pre-line;overflow-wrap:anywhere;opacity:0;pointer-events:none;border-radius:6px;padding:6px 8px;font-size:11px;font-weight:400;line-height:1.5;transition:opacity .12s;position:absolute;top:calc(100% + 6px);left:0}.PiZwra_brokenBadge:hover .PiZwra_brokenTip,.PiZwra_cardMain:focus-visible .PiZwra_brokenTip{opacity:1}.PiZwra_cardMain[aria-disabled=true]{cursor:default}.PiZwra_cardBrokenReason{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.PiZwra_cardMain{appearance:none;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px 12px 0 0;flex-direction:column;flex:1;gap:12px;padding:14px 16px 12px;display:flex}.PiZwra_cardMain:disabled{cursor:default}.PiZwra_cardMain:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.PiZwra_cardHead{align-items:flex-start;gap:12px;display:flex;position:relative}.PiZwra_cardIdentity{flex:1;align-items:center;gap:6px;min-width:0;display:flex}.PiZwra_cardName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:15px;font-weight:600;line-height:1.4;overflow:hidden}.PiZwra_cardDesc{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:4;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-block:auto;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.PiZwra_cardId{max-width:35%;font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;font-size:11px;line-height:21px;overflow:hidden}.PiZwra_cardFoot{border-top:.5px solid var(--dsw-alias-border-l2);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px;padding:6px 10px;display:flex}.PiZwra_cardHelp{align-items:center;gap:4px;margin-right:auto;display:flex}.PiZwra_helpButton{min-height:28px;color:var(--dsw-alias-label-tertiary);padding:5px 6px;font-size:12px;font-weight:400}.PiZwra_helpButton:hover,.PiZwra_helpButton:focus-visible{color:var(--dsw-alias-label-primary)}.PiZwra_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.PiZwra_creatorButton{box-sizing:border-box;border:1px dashed var(--dsw-alias-border-l3);height:44px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;border-radius:20px;justify-content:center;align-self:stretch;align-items:center;gap:6px;font-size:14px;line-height:22px;display:flex}.PiZwra_creatorButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.PiZwra_creatorButton:disabled{opacity:.4;cursor:default}";
|
|
774
|
+
const tagId = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetSection.module.css";
|
|
775
|
+
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
776
|
+
const tag = document.createElement("style");
|
|
777
|
+
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-agent-preset";
|
|
778
|
+
tag.dataset.pluginCss = tagId;
|
|
779
|
+
tag.textContent = css;
|
|
780
|
+
document.head.appendChild(tag);
|
|
781
|
+
}
|
|
782
|
+
var AgentPresetSection_module_css_default = {
|
|
783
|
+
"brokenBadge": "PiZwra_brokenBadge",
|
|
784
|
+
"brokenTip": "PiZwra_brokenTip",
|
|
785
|
+
"card": "PiZwra_card",
|
|
786
|
+
"cardActive": "PiZwra_cardActive",
|
|
787
|
+
"cardBroken": "PiZwra_cardBroken",
|
|
788
|
+
"cardBrokenReason": "PiZwra_cardBrokenReason",
|
|
789
|
+
"cardDesc": "PiZwra_cardDesc",
|
|
790
|
+
"cardFoot": "PiZwra_cardFoot",
|
|
791
|
+
"cardHead": "PiZwra_cardHead",
|
|
792
|
+
"cardHelp": "PiZwra_cardHelp",
|
|
793
|
+
"cardId": "PiZwra_cardId",
|
|
794
|
+
"cardIdentity": "PiZwra_cardIdentity",
|
|
795
|
+
"cardMain": "PiZwra_cardMain",
|
|
796
|
+
"cardName": "PiZwra_cardName",
|
|
797
|
+
"cardSelectionDisabled": "PiZwra_cardSelectionDisabled",
|
|
798
|
+
"cards": "PiZwra_cards",
|
|
799
|
+
"creatorButton": "PiZwra_creatorButton",
|
|
800
|
+
"error": "PiZwra_error",
|
|
801
|
+
"group": "PiZwra_group",
|
|
802
|
+
"groupHead": "PiZwra_groupHead",
|
|
803
|
+
"helpButton": "PiZwra_helpButton",
|
|
804
|
+
"intro": "PiZwra_intro",
|
|
805
|
+
"pickerPreference": "PiZwra_pickerPreference",
|
|
806
|
+
"pickerPreferenceCopy": "PiZwra_pickerPreferenceCopy",
|
|
807
|
+
"pickerPreferenceDescription": "PiZwra_pickerPreferenceDescription",
|
|
808
|
+
"pickerPreferenceTitle": "PiZwra_pickerPreferenceTitle",
|
|
809
|
+
"pickerPreferenceTitleRow": "PiZwra_pickerPreferenceTitleRow",
|
|
810
|
+
"section": "PiZwra_section",
|
|
811
|
+
"title": "PiZwra_title"
|
|
812
|
+
};
|
|
813
|
+
//#endregion
|
|
814
|
+
//#region lib/types/client/AgentPresetSection.js
|
|
815
|
+
function CardDescription({ text }) {
|
|
816
|
+
const ref = (0, react.useRef)(null);
|
|
817
|
+
const [truncated, setTruncated] = (0, react.useState)(false);
|
|
818
|
+
(0, react.useLayoutEffect)(() => {
|
|
819
|
+
const el = ref.current;
|
|
820
|
+
/* v8 ignore next -- the ref is attached before layout effects run. */
|
|
821
|
+
if (el === null) return;
|
|
822
|
+
const measure = () => {
|
|
823
|
+
setTruncated(el.scrollHeight > el.clientHeight);
|
|
824
|
+
};
|
|
825
|
+
measure();
|
|
826
|
+
if (typeof ResizeObserver === "undefined") return;
|
|
827
|
+
const observer = new ResizeObserver(measure);
|
|
828
|
+
observer.observe(el);
|
|
829
|
+
return () => {
|
|
830
|
+
observer.disconnect();
|
|
831
|
+
};
|
|
832
|
+
}, [text]);
|
|
833
|
+
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
834
|
+
label: text,
|
|
835
|
+
side: "bottom",
|
|
836
|
+
delayMs: 400,
|
|
837
|
+
disabled: !truncated,
|
|
838
|
+
maxWidth: 360,
|
|
839
|
+
children: (0, react_jsx_runtime.jsx)("span", {
|
|
840
|
+
ref,
|
|
841
|
+
className: AgentPresetSection_module_css_default.cardDesc,
|
|
842
|
+
title: "",
|
|
843
|
+
children: text
|
|
844
|
+
})
|
|
845
|
+
});
|
|
846
|
+
}
|
|
847
|
+
/** Render the roster with its default, mode help, and the guidance to Creator mode.
|
|
848
|
+
* @param props Settings actions, snapshot hooks and localized text.
|
|
849
|
+
* @returns The preset settings section.
|
|
850
|
+
*/
|
|
851
|
+
function AgentPresetSection({ useAgentPresetSection, load, makeDefault, setPickerVisible, startCreatorDraft, close: closeSettings, useDeveloperTools, t }) {
|
|
852
|
+
const state = useAgentPresetSection((value) => value);
|
|
853
|
+
const developerTools = useDeveloperTools((enabled) => enabled);
|
|
854
|
+
const [guide, setGuide] = (0, react.useState)(null);
|
|
855
|
+
(0, react.useEffect)(() => {
|
|
856
|
+
load();
|
|
857
|
+
}, [load]);
|
|
858
|
+
const creator = startCreatorDraft !== void 0 && state.rows.some((row) => row.id === "cordis") ? startCreatorDraft : void 0;
|
|
859
|
+
const creatorButton = creator === void 0 ? null : (0, react_jsx_runtime.jsxs)("button", {
|
|
860
|
+
type: "button",
|
|
861
|
+
className: AgentPresetSection_module_css_default.creatorButton,
|
|
862
|
+
disabled: !state.showPicker || state.policySaving,
|
|
863
|
+
title: state.showPicker ? void 0 : t("enablePickerToCreate"),
|
|
864
|
+
onClick: () => {
|
|
865
|
+
creator();
|
|
866
|
+
closeSettings();
|
|
867
|
+
},
|
|
868
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutlineRegular, { size: 14 }), t("creatorDraft")]
|
|
869
|
+
});
|
|
870
|
+
return (0, react_jsx_runtime.jsxs)("section", {
|
|
871
|
+
className: AgentPresetSection_module_css_default.section,
|
|
872
|
+
children: [
|
|
873
|
+
(0, react_jsx_runtime.jsx)("h2", {
|
|
874
|
+
className: AgentPresetSection_module_css_default.title,
|
|
875
|
+
children: t("nav")
|
|
876
|
+
}),
|
|
877
|
+
(0, react_jsx_runtime.jsx)("p", {
|
|
878
|
+
className: AgentPresetSection_module_css_default.intro,
|
|
879
|
+
children: t("sectionIntro")
|
|
880
|
+
}),
|
|
881
|
+
developerTools && (0, react_jsx_runtime.jsxs)("div", {
|
|
882
|
+
className: AgentPresetSection_module_css_default.pickerPreference,
|
|
883
|
+
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
884
|
+
className: AgentPresetSection_module_css_default.pickerPreferenceCopy,
|
|
885
|
+
children: [(0, react_jsx_runtime.jsxs)("span", {
|
|
886
|
+
className: AgentPresetSection_module_css_default.pickerPreferenceTitleRow,
|
|
887
|
+
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
888
|
+
className: AgentPresetSection_module_css_default.pickerPreferenceTitle,
|
|
889
|
+
children: t("showPicker")
|
|
890
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("showPickerBeta") })]
|
|
891
|
+
}), (0, react_jsx_runtime.jsx)("p", {
|
|
892
|
+
className: AgentPresetSection_module_css_default.pickerPreferenceDescription,
|
|
893
|
+
children: t("showPickerDescription")
|
|
894
|
+
})]
|
|
895
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Switch, {
|
|
896
|
+
checked: state.showPicker,
|
|
897
|
+
disabled: state.status !== "ready" || state.policySaving,
|
|
898
|
+
onChange: (value) => {
|
|
899
|
+
setPickerVisible(value);
|
|
900
|
+
},
|
|
901
|
+
label: t("showPicker")
|
|
902
|
+
})]
|
|
903
|
+
}),
|
|
904
|
+
state.error === null ? null : (0, react_jsx_runtime.jsx)("p", {
|
|
905
|
+
className: AgentPresetSection_module_css_default.error,
|
|
906
|
+
role: "alert",
|
|
907
|
+
children: state.error
|
|
908
|
+
}),
|
|
909
|
+
[true, false].map((builtIn) => {
|
|
910
|
+
const rows = state.rows.filter((row) => isBuiltInPreset(row) === builtIn);
|
|
911
|
+
const entry = builtIn ? null : creatorButton;
|
|
912
|
+
if (rows.length === 0 && entry === null) return null;
|
|
913
|
+
return (0, react_jsx_runtime.jsxs)("section", {
|
|
914
|
+
className: AgentPresetSection_module_css_default.group,
|
|
915
|
+
children: [
|
|
916
|
+
(0, react_jsx_runtime.jsx)("h3", {
|
|
917
|
+
className: AgentPresetSection_module_css_default.groupHead,
|
|
918
|
+
children: t(builtIn ? "builtInGroup" : "customGroup")
|
|
919
|
+
}),
|
|
920
|
+
rows.length === 0 ? null : (0, react_jsx_runtime.jsx)("ul", {
|
|
921
|
+
className: AgentPresetSection_module_css_default.cards,
|
|
922
|
+
children: rows.map((row) => {
|
|
923
|
+
const display = presetDisplayText(row, t);
|
|
924
|
+
const help = presetGuide(row.id, builtIn ? "system" : "user");
|
|
925
|
+
const selectionAction = row.broken !== void 0 ? t("brokenBadge") : row.isDefault ? t(state.showPicker ? "inUse" : "selectionOffDefault") : t(state.showPicker ? "setDefault" : "enablePickerToSetDefault");
|
|
926
|
+
return (0, react_jsx_runtime.jsxs)("li", {
|
|
927
|
+
"data-agent-preset-id": row.id,
|
|
928
|
+
className: [
|
|
929
|
+
AgentPresetSection_module_css_default.card,
|
|
930
|
+
row.broken === void 0 ? void 0 : AgentPresetSection_module_css_default.cardBroken,
|
|
931
|
+
row.isDefault ? AgentPresetSection_module_css_default.cardActive : void 0,
|
|
932
|
+
!state.showPicker && row.broken === void 0 && !row.isDefault ? AgentPresetSection_module_css_default.cardSelectionDisabled : void 0
|
|
933
|
+
].filter(Boolean).join(" "),
|
|
934
|
+
children: [(0, react_jsx_runtime.jsxs)("button", {
|
|
935
|
+
type: "button",
|
|
936
|
+
className: AgentPresetSection_module_css_default.cardMain,
|
|
937
|
+
"aria-pressed": row.isDefault,
|
|
938
|
+
disabled: row.isDefault || row.broken === void 0 && (!state.showPicker || state.policySaving),
|
|
939
|
+
"aria-disabled": row.broken !== void 0,
|
|
940
|
+
"aria-label": `${selectionAction}: ${display.name}`,
|
|
941
|
+
title: selectionAction,
|
|
942
|
+
onClick: () => {
|
|
943
|
+
if (row.broken === void 0) makeDefault(row.id);
|
|
944
|
+
},
|
|
945
|
+
children: [
|
|
946
|
+
(0, react_jsx_runtime.jsxs)("span", {
|
|
947
|
+
className: AgentPresetSection_module_css_default.cardHead,
|
|
948
|
+
children: [(0, react_jsx_runtime.jsxs)("span", {
|
|
949
|
+
className: AgentPresetSection_module_css_default.cardIdentity,
|
|
950
|
+
children: [
|
|
951
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
952
|
+
className: AgentPresetSection_module_css_default.cardName,
|
|
953
|
+
title: display.name,
|
|
954
|
+
children: display.name
|
|
955
|
+
}),
|
|
956
|
+
row.broken === void 0 ? null : (0, react_jsx_runtime.jsxs)("span", {
|
|
957
|
+
className: AgentPresetSection_module_css_default.brokenBadge,
|
|
958
|
+
children: [t("brokenBadge"), (0, react_jsx_runtime.jsx)("span", {
|
|
959
|
+
className: AgentPresetSection_module_css_default.brokenTip,
|
|
960
|
+
"aria-hidden": "true",
|
|
961
|
+
children: row.broken
|
|
962
|
+
})]
|
|
963
|
+
}),
|
|
964
|
+
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
965
|
+
tone: row.isDefault ? "solid" : "outline",
|
|
966
|
+
children: row.isDefault ? t(state.showPicker ? "inUse" : "selectionOffDefault") : t(builtIn ? "builtInGroup" : "customGroup")
|
|
967
|
+
})
|
|
968
|
+
]
|
|
969
|
+
}), (0, react_jsx_runtime.jsx)("code", {
|
|
970
|
+
className: AgentPresetSection_module_css_default.cardId,
|
|
971
|
+
title: row.id,
|
|
972
|
+
children: row.id
|
|
973
|
+
})]
|
|
974
|
+
}),
|
|
975
|
+
(0, react_jsx_runtime.jsx)(CardDescription, { text: display.description ?? t("noDescription") }),
|
|
976
|
+
row.broken === void 0 ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
977
|
+
className: AgentPresetSection_module_css_default.cardBrokenReason,
|
|
978
|
+
role: "alert",
|
|
979
|
+
children: row.broken
|
|
980
|
+
})
|
|
981
|
+
]
|
|
982
|
+
}), help === void 0 ? null : (0, react_jsx_runtime.jsx)("div", {
|
|
983
|
+
className: AgentPresetSection_module_css_default.cardFoot,
|
|
984
|
+
children: (0, react_jsx_runtime.jsxs)("div", {
|
|
985
|
+
className: AgentPresetSection_module_css_default.cardHelp,
|
|
986
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
987
|
+
variant: "ghost",
|
|
988
|
+
className: AgentPresetSection_module_css_default.helpButton,
|
|
989
|
+
"aria-label": `${t("modeExplanation")}: ${display.name}`,
|
|
990
|
+
onClick: () => {
|
|
991
|
+
setGuide({
|
|
992
|
+
content: help,
|
|
993
|
+
page: "explanation"
|
|
994
|
+
});
|
|
995
|
+
},
|
|
996
|
+
children: t("modeExplanation")
|
|
997
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
998
|
+
variant: "ghost",
|
|
999
|
+
className: AgentPresetSection_module_css_default.helpButton,
|
|
1000
|
+
"aria-label": `${t("howToUse")}: ${display.name}`,
|
|
1001
|
+
onClick: () => {
|
|
1002
|
+
setGuide({
|
|
1003
|
+
content: help,
|
|
1004
|
+
page: "usage"
|
|
1005
|
+
});
|
|
1006
|
+
},
|
|
1007
|
+
children: t("howToUse")
|
|
1008
|
+
})]
|
|
1009
|
+
})
|
|
1010
|
+
})]
|
|
1011
|
+
}, row.id);
|
|
1012
|
+
})
|
|
1013
|
+
}),
|
|
1014
|
+
entry
|
|
1015
|
+
]
|
|
1016
|
+
}, String(builtIn));
|
|
1017
|
+
}),
|
|
1018
|
+
guide === null ? null : (0, react_jsx_runtime.jsx)(PresetGuideDialog, {
|
|
1019
|
+
guide: guide.content,
|
|
1020
|
+
initialPage: guide.page,
|
|
1021
|
+
t,
|
|
1022
|
+
onClose: () => {
|
|
1023
|
+
setGuide(null);
|
|
1024
|
+
}
|
|
1025
|
+
})
|
|
1026
|
+
]
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
//#endregion
|
|
479
1030
|
//#region lib/types/client/settings-store.js
|
|
480
1031
|
/**
|
|
481
1032
|
* Agent-preset roster store shared by the display surfaces.
|
|
@@ -485,7 +1036,7 @@ window.__ModuleLoader__.load({
|
|
|
485
1036
|
* the surface that writes them.
|
|
486
1037
|
*/
|
|
487
1038
|
/** The agent-preset settings namespace on the host wire. */
|
|
488
|
-
const AGENT_PRESET_SETTINGS_NS = "agent-
|
|
1039
|
+
const AGENT_PRESET_SETTINGS_NS = "agent-preset-registry";
|
|
489
1040
|
/** Write only the named agent-preset settings fields. */
|
|
490
1041
|
async function writeAgentPresetSettings(ctx, patch) {
|
|
491
1042
|
const response = await ctx.remote.settings.update(AGENT_PRESET_SETTINGS_NS, patch, void 0);
|
|
@@ -502,7 +1053,7 @@ window.__ModuleLoader__.load({
|
|
|
502
1053
|
* @returns the failure message, or undefined once the write landed.
|
|
503
1054
|
*/
|
|
504
1055
|
function writeDefaultPreset(ctx, id) {
|
|
505
|
-
return writeAgentPresetSettings(ctx, {
|
|
1056
|
+
return writeAgentPresetSettings(ctx, { selectedDefault: id });
|
|
506
1057
|
}
|
|
507
1058
|
/**
|
|
508
1059
|
* Persist whether new-session surfaces expose preset selection.
|
|
@@ -515,7 +1066,6 @@ window.__ModuleLoader__.load({
|
|
|
515
1066
|
}
|
|
516
1067
|
const EMPTY_ROSTER = {
|
|
517
1068
|
presets: [],
|
|
518
|
-
authorable: false,
|
|
519
1069
|
modeSelectionEnabled: false
|
|
520
1070
|
};
|
|
521
1071
|
/**
|
|
@@ -583,7 +1133,6 @@ window.__ModuleLoader__.load({
|
|
|
583
1133
|
function presetOptions(presets) {
|
|
584
1134
|
return presets.filter((preset) => preset.broken === void 0).map((preset) => ({
|
|
585
1135
|
id: preset.id,
|
|
586
|
-
trust: preset.trust,
|
|
587
1136
|
...preset.name === void 0 ? {} : { name: preset.name },
|
|
588
1137
|
...preset.description === void 0 ? {} : { description: preset.description }
|
|
589
1138
|
}));
|
|
@@ -635,838 +1184,33 @@ window.__ModuleLoader__.load({
|
|
|
635
1184
|
}
|
|
636
1185
|
};
|
|
637
1186
|
//#endregion
|
|
638
|
-
//#region lib/types/client/
|
|
1187
|
+
//#region lib/types/client/seat-store.js
|
|
639
1188
|
/**
|
|
640
|
-
*
|
|
641
|
-
* the only way a preset is created, and a read-only viewer over the shipped
|
|
642
|
-
* compositions.
|
|
1189
|
+
* Hero-chip controller: which preset the NEXT session gets.
|
|
643
1190
|
*
|
|
644
|
-
* The
|
|
645
|
-
*
|
|
646
|
-
*
|
|
647
|
-
*
|
|
648
|
-
* where the host has a desktop, show its path where it does not.
|
|
1191
|
+
* The new-session screen has no session, so a pick is staged rather than
|
|
1192
|
+
* applied. It reaches a session when one becomes current and is still blank —
|
|
1193
|
+
* whether the workspace connect created it or reused an existing blank one,
|
|
1194
|
+
* which is why staging cannot simply ride along on `sessions.create`.
|
|
649
1195
|
*
|
|
650
|
-
* The
|
|
651
|
-
*
|
|
652
|
-
* more than the row it targeted.
|
|
1196
|
+
* The stage is forgotten once applied. The next new session starts from the
|
|
1197
|
+
* Host-effective default again.
|
|
653
1198
|
*/
|
|
654
|
-
/** Ids a preset directory may be named, mirroring the host's own rule. */
|
|
655
|
-
const PRESET_ID = /^[a-z0-9][a-z0-9-]*$/;
|
|
656
|
-
const errorMessage = (error) => error instanceof Error ? error.message : String(error);
|
|
657
1199
|
const INITIAL$1 = {
|
|
658
|
-
status: "idle",
|
|
659
|
-
error: null,
|
|
660
|
-
authorable: false,
|
|
661
|
-
hasDocument: false,
|
|
662
1200
|
showPicker: false,
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
deleting: false,
|
|
669
|
-
revealedPaths: {}
|
|
1201
|
+
options: [],
|
|
1202
|
+
current: "",
|
|
1203
|
+
error: null,
|
|
1204
|
+
busy: false,
|
|
1205
|
+
introduce: false
|
|
670
1206
|
};
|
|
671
|
-
/**
|
|
672
|
-
|
|
673
|
-
* it can. Client-side only: the host re-checks the id and its answer is what
|
|
674
|
-
* the dialog reports on failure.
|
|
675
|
-
* @param draft - the open copy dialog.
|
|
676
|
-
* @param rows - the roster, for the collision check.
|
|
677
|
-
* @returns the blocking reason's locale key, or undefined when submittable.
|
|
678
|
-
*/
|
|
679
|
-
function draftBlocker(draft, rows) {
|
|
680
|
-
if (draft.id === "") return "idRequired";
|
|
681
|
-
if (!PRESET_ID.test(draft.id)) return "idInvalid";
|
|
682
|
-
if (rows.some((row) => row.id === draft.id)) return "idTaken";
|
|
683
|
-
}
|
|
684
|
-
/** Reads the roster and drives the copy dialog, viewer, and location reveals. */
|
|
685
|
-
var AgentPresetSectionController = class {
|
|
1207
|
+
/** Stages the next session's preset and applies it when one appears. */
|
|
1208
|
+
var AgentPresetSeatController = class {
|
|
686
1209
|
ctx;
|
|
687
|
-
|
|
688
|
-
|
|
1210
|
+
currentSession;
|
|
1211
|
+
staged;
|
|
1212
|
+
/** Chip snapshot the renderer subscribes to. */
|
|
689
1213
|
store = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(INITIAL$1);
|
|
690
|
-
/** The one roster load whose completion current callers await. */
|
|
691
|
-
loadFlight;
|
|
692
|
-
reloadRequested = false;
|
|
693
|
-
constructor(ctx, rosterChanged = () => {}) {
|
|
694
|
-
this.ctx = ctx;
|
|
695
|
-
this.rosterChanged = rosterChanged;
|
|
696
|
-
}
|
|
697
|
-
set(patch) {
|
|
698
|
-
this.store.set({
|
|
699
|
-
...this.store.getSnapshot(),
|
|
700
|
-
...patch
|
|
701
|
-
});
|
|
702
|
-
}
|
|
703
|
-
/** Read back and reflect the Host-effective default after a policy write. */
|
|
704
|
-
async confirmEffectiveDefault(showPicker) {
|
|
705
|
-
await this.load();
|
|
706
|
-
if (this.store.getSnapshot().status === "error") await this.load();
|
|
707
|
-
const state = this.store.getSnapshot();
|
|
708
|
-
if (state.status !== "ready" || state.showPicker !== showPicker) return void 0;
|
|
709
|
-
return state.rows.find((row) => row.isDefault)?.id;
|
|
710
|
-
}
|
|
711
|
-
/**
|
|
712
|
-
* Show or hide new-session preset selection without changing the saved
|
|
713
|
-
* default. The Host roster resolves that saved default while selection is
|
|
714
|
-
* shown and the deployment default while it is hidden.
|
|
715
|
-
* @param showPicker - whether the new-session picker should be exposed.
|
|
716
|
-
* @param syncBlankSession - optional current-blank-task sync kept inside the saving state.
|
|
717
|
-
* @returns once the Host state and optional blank-task sync settle.
|
|
718
|
-
*/
|
|
719
|
-
async setPickerVisible(showPicker, syncBlankSession) {
|
|
720
|
-
const state = this.store.getSnapshot();
|
|
721
|
-
if (state.status !== "ready" || state.policySaving || state.showPicker === showPicker) return;
|
|
722
|
-
this.set({
|
|
723
|
-
policySaving: true,
|
|
724
|
-
error: null
|
|
725
|
-
});
|
|
726
|
-
try {
|
|
727
|
-
const failure = await writeModeSelectionEnabled(this.ctx, showPicker);
|
|
728
|
-
if (failure !== void 0) {
|
|
729
|
-
await this.load();
|
|
730
|
-
this.set({ error: failure });
|
|
731
|
-
return;
|
|
732
|
-
}
|
|
733
|
-
const effectiveDefault = await this.confirmEffectiveDefault(showPicker);
|
|
734
|
-
if (effectiveDefault === void 0) return;
|
|
735
|
-
const syncFailure = await syncBlankSession?.(effectiveDefault);
|
|
736
|
-
if (syncFailure !== void 0) this.set({ error: syncFailure });
|
|
737
|
-
} catch (error) {
|
|
738
|
-
await this.load();
|
|
739
|
-
this.set({ error: errorMessage(error) });
|
|
740
|
-
} finally {
|
|
741
|
-
this.set({ policySaving: false });
|
|
742
|
-
}
|
|
743
|
-
}
|
|
744
|
-
patchCopy(patch) {
|
|
745
|
-
const { copy } = this.store.getSnapshot();
|
|
746
|
-
if (copy === null) return;
|
|
747
|
-
this.set({ copy: {
|
|
748
|
-
...copy,
|
|
749
|
-
...patch
|
|
750
|
-
} });
|
|
751
|
-
}
|
|
752
|
-
/**
|
|
753
|
-
* Load the roster. An empty roster means the deployment composes no
|
|
754
|
-
* presets, which is a valid deployment rather than a failure — the section
|
|
755
|
-
* reports `unavailable` and renders nothing.
|
|
756
|
-
* @returns once the snapshot reflects the host.
|
|
757
|
-
*/
|
|
758
|
-
async load() {
|
|
759
|
-
this.reloadRequested = true;
|
|
760
|
-
this.loadFlight ??= this.drainLoads();
|
|
761
|
-
await this.loadFlight;
|
|
762
|
-
}
|
|
763
|
-
/** Coalesce invalidations without losing changes received during a read. */
|
|
764
|
-
async drainLoads() {
|
|
765
|
-
try {
|
|
766
|
-
do
|
|
767
|
-
await this.loadOnce();
|
|
768
|
-
while (this.reloadRequested);
|
|
769
|
-
} finally {
|
|
770
|
-
this.loadFlight = void 0;
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
/** Perform the section's one owned roster read. */
|
|
774
|
-
async loadOnce() {
|
|
775
|
-
this.reloadRequested = false;
|
|
776
|
-
const opener = this.ctx.remote.settings.canOpenAgentPresetDirectory();
|
|
777
|
-
const roster = await beginRosterRead(this.ctx, this.store);
|
|
778
|
-
const described = await opener;
|
|
779
|
-
if (roster === void 0) return;
|
|
780
|
-
const { presets, authorable, modeSelectionEnabled: showPicker } = roster;
|
|
781
|
-
const hasDocument = described.ok && described.value;
|
|
782
|
-
if (presets.length === 0) {
|
|
783
|
-
this.set({
|
|
784
|
-
status: "unavailable",
|
|
785
|
-
rows: [],
|
|
786
|
-
authorable,
|
|
787
|
-
hasDocument,
|
|
788
|
-
showPicker,
|
|
789
|
-
copy: null,
|
|
790
|
-
view: null
|
|
791
|
-
});
|
|
792
|
-
return;
|
|
793
|
-
}
|
|
794
|
-
const revealed = this.store.getSnapshot().revealedPaths;
|
|
795
|
-
const kept = Object.fromEntries(Object.entries(revealed).filter(([id]) => presets.some((preset) => preset.id === id)));
|
|
796
|
-
this.set({
|
|
797
|
-
status: "ready",
|
|
798
|
-
error: null,
|
|
799
|
-
authorable,
|
|
800
|
-
hasDocument,
|
|
801
|
-
showPicker,
|
|
802
|
-
rows: presets.map((preset) => ({ ...preset })),
|
|
803
|
-
revealedPaths: kept
|
|
804
|
-
});
|
|
805
|
-
}
|
|
806
|
-
/**
|
|
807
|
-
* Open one shipped preset's composition in the read-only viewer.
|
|
808
|
-
* @param id - the preset to view.
|
|
809
|
-
* @returns once the composition loaded or the failure is on the page.
|
|
810
|
-
*/
|
|
811
|
-
async view(id) {
|
|
812
|
-
this.set({ error: null });
|
|
813
|
-
const result = await this.ctx.remote.agentPresets.read(id);
|
|
814
|
-
if (!result.ok) {
|
|
815
|
-
this.set({ error: result.error.message });
|
|
816
|
-
return;
|
|
817
|
-
}
|
|
818
|
-
const { name, content } = result.value;
|
|
819
|
-
this.set({ view: {
|
|
820
|
-
id,
|
|
821
|
-
title: name ?? id,
|
|
822
|
-
content
|
|
823
|
-
} });
|
|
824
|
-
}
|
|
825
|
-
/** Close the read-only viewer. */
|
|
826
|
-
closeView() {
|
|
827
|
-
this.set({ view: null });
|
|
828
|
-
}
|
|
829
|
-
/**
|
|
830
|
-
* Open the copy dialog over one preset.
|
|
831
|
-
* @param from - the preset the copy will start from.
|
|
832
|
-
*/
|
|
833
|
-
beginCopy(from) {
|
|
834
|
-
const row = this.store.getSnapshot().rows.find((candidate) => candidate.id === from);
|
|
835
|
-
this.set({
|
|
836
|
-
error: null,
|
|
837
|
-
copy: {
|
|
838
|
-
from,
|
|
839
|
-
fromTitle: row?.name ?? from,
|
|
840
|
-
id: "",
|
|
841
|
-
name: "",
|
|
842
|
-
saving: false,
|
|
843
|
-
error: null
|
|
844
|
-
}
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
/** Close the copy dialog, discarding whatever was typed. */
|
|
848
|
-
cancelCopy() {
|
|
849
|
-
this.set({ copy: null });
|
|
850
|
-
}
|
|
851
|
-
/**
|
|
852
|
-
* Name the preset the copy creates.
|
|
853
|
-
* @param id - the id typed into the dialog.
|
|
854
|
-
*/
|
|
855
|
-
setCopyId(id) {
|
|
856
|
-
this.patchCopy({
|
|
857
|
-
id,
|
|
858
|
-
error: null
|
|
859
|
-
});
|
|
860
|
-
}
|
|
861
|
-
/**
|
|
862
|
-
* Name the copy's display name.
|
|
863
|
-
* @param name - the display name typed into the dialog.
|
|
864
|
-
*/
|
|
865
|
-
setCopyName(name) {
|
|
866
|
-
this.patchCopy({
|
|
867
|
-
name,
|
|
868
|
-
error: null
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
/**
|
|
872
|
-
* Submit the copy, re-read the roster, then take the user to the new
|
|
873
|
-
* preset's files — the directory opens where the host has a desktop, and
|
|
874
|
-
* its path appears on the new row where it does not.
|
|
875
|
-
* @returns once the copy settled and the page reflects it.
|
|
876
|
-
*/
|
|
877
|
-
async confirmCopy() {
|
|
878
|
-
const draft = this.store.getSnapshot().copy;
|
|
879
|
-
if (draft === null || draft.saving) return;
|
|
880
|
-
if (draftBlocker(draft, this.store.getSnapshot().rows) !== void 0) return;
|
|
881
|
-
this.patchCopy({
|
|
882
|
-
saving: true,
|
|
883
|
-
error: null
|
|
884
|
-
});
|
|
885
|
-
const name = draft.name.trim();
|
|
886
|
-
const result = await this.ctx.remote.agentPresets.copy(draft.from, draft.id, name === "" ? void 0 : name);
|
|
887
|
-
if (!result.ok) {
|
|
888
|
-
this.patchCopy({
|
|
889
|
-
saving: false,
|
|
890
|
-
error: result.error.message
|
|
891
|
-
});
|
|
892
|
-
return;
|
|
893
|
-
}
|
|
894
|
-
this.set({ copy: null });
|
|
895
|
-
await this.load();
|
|
896
|
-
this.rosterChanged();
|
|
897
|
-
await this.openLocation(draft.id);
|
|
898
|
-
}
|
|
899
|
-
/**
|
|
900
|
-
* Open one preset's directory on the host desktop, or reveal its path on
|
|
901
|
-
* the row where the deployment has no opener to hand it to.
|
|
902
|
-
* @param id - the preset whose files the user wants.
|
|
903
|
-
* @returns once the host answered and the page reflects it.
|
|
904
|
-
*/
|
|
905
|
-
async openLocation(id) {
|
|
906
|
-
const result = await this.ctx.remote.settings.openAgentPresetDirectory(id);
|
|
907
|
-
if (!result.ok) {
|
|
908
|
-
this.set({ error: result.error.message });
|
|
909
|
-
return;
|
|
910
|
-
}
|
|
911
|
-
if (result.value.opened) return;
|
|
912
|
-
const { path } = result.value;
|
|
913
|
-
this.set({ revealedPaths: {
|
|
914
|
-
...this.store.getSnapshot().revealedPaths,
|
|
915
|
-
[id]: path
|
|
916
|
-
} });
|
|
917
|
-
}
|
|
918
|
-
/**
|
|
919
|
-
* Ask for confirmation before deleting one preset.
|
|
920
|
-
* @param id - the preset to delete, or null to dismiss the confirmation.
|
|
921
|
-
*/
|
|
922
|
-
confirmDelete(id) {
|
|
923
|
-
if (this.store.getSnapshot().deleting) return;
|
|
924
|
-
this.set({ pendingDelete: id });
|
|
925
|
-
}
|
|
926
|
-
/**
|
|
927
|
-
* Delete the preset awaiting confirmation, then re-read the roster.
|
|
928
|
-
*
|
|
929
|
-
* A session already composed from it keeps running: its composition was
|
|
930
|
-
* mounted at creation and nothing re-reads the file.
|
|
931
|
-
* @returns once the delete settled and the page reflects it.
|
|
932
|
-
*/
|
|
933
|
-
async remove() {
|
|
934
|
-
const { pendingDelete, deleting } = this.store.getSnapshot();
|
|
935
|
-
if (pendingDelete === null || deleting) return;
|
|
936
|
-
this.set({
|
|
937
|
-
deleting: true,
|
|
938
|
-
error: null
|
|
939
|
-
});
|
|
940
|
-
const result = await this.ctx.remote.agentPresets.deletePreset(pendingDelete);
|
|
941
|
-
if (!result.ok) {
|
|
942
|
-
this.set({
|
|
943
|
-
deleting: false,
|
|
944
|
-
pendingDelete: null,
|
|
945
|
-
error: result.error.message
|
|
946
|
-
});
|
|
947
|
-
return;
|
|
948
|
-
}
|
|
949
|
-
this.set({
|
|
950
|
-
deleting: false,
|
|
951
|
-
pendingDelete: null
|
|
952
|
-
});
|
|
953
|
-
await this.load();
|
|
954
|
-
this.rosterChanged();
|
|
955
|
-
}
|
|
956
|
-
/**
|
|
957
|
-
* Make one preset the default for sessions created later. Running sessions
|
|
958
|
-
* keep the composition they began with, so this never disturbs work.
|
|
959
|
-
* @param id - the preset to make default.
|
|
960
|
-
* @param syncBlankSession - optional current-blank-task sync kept inside the policy lock.
|
|
961
|
-
* @returns once the write and optional blank-task sync settle.
|
|
962
|
-
*/
|
|
963
|
-
async makeDefault(id, syncBlankSession) {
|
|
964
|
-
const state = this.store.getSnapshot();
|
|
965
|
-
if (!state.showPicker || state.policySaving) return;
|
|
966
|
-
this.set({
|
|
967
|
-
policySaving: true,
|
|
968
|
-
error: null
|
|
969
|
-
});
|
|
970
|
-
try {
|
|
971
|
-
const failure = await writeDefaultPreset(this.ctx, id);
|
|
972
|
-
if (failure !== void 0) {
|
|
973
|
-
this.set({ error: failure });
|
|
974
|
-
return;
|
|
975
|
-
}
|
|
976
|
-
const effectiveDefault = await this.confirmEffectiveDefault(true);
|
|
977
|
-
if (effectiveDefault === void 0) return;
|
|
978
|
-
const syncFailure = await syncBlankSession?.(effectiveDefault);
|
|
979
|
-
if (syncFailure !== void 0) this.set({ error: syncFailure });
|
|
980
|
-
} catch (error) {
|
|
981
|
-
this.set({ error: errorMessage(error) });
|
|
982
|
-
} finally {
|
|
983
|
-
this.set({ policySaving: false });
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
};
|
|
987
|
-
//#endregion
|
|
988
|
-
//#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-agent-preset/src/client/AgentPresetSection.module.css.mjs
|
|
989
|
-
const css = ".PiZwra_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}.PiZwra_title{margin:0;font-size:18px;font-weight:600}.PiZwra_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px}.PiZwra_pickerPreference{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-module-platform);border-radius:14px;justify-content:space-between;align-items:flex-start;gap:20px;padding:14px 16px;display:flex}.PiZwra_pickerPreferenceCopy{gap:4px;min-width:0;display:grid}.PiZwra_pickerPreferenceTitleRow{align-items:center;gap:6px;min-width:0;display:flex}.PiZwra_pickerPreferenceTitle{font-size:14px;font-weight:600;line-height:1.5}.PiZwra_pickerPreferenceDescription{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.5}.PiZwra_group{flex-direction:column;gap:10px;display:flex}.PiZwra_group+.PiZwra_group{margin-top:20px}.PiZwra_groupHead{letter-spacing:.06em;text-transform:uppercase;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;font-weight:600}.PiZwra_cards{grid-template-columns:repeat(auto-fill,minmax(268px,1fr));grid-auto-rows:1fr;gap:12px;margin:0;padding:0;list-style:none;display:grid}.PiZwra_card{border:.5px solid var(--dsw-alias-border-l4);background:0 0;border-radius:20px;flex-direction:column;transition:border-color .16s,background .16s;display:flex}.PiZwra_card:hover:not(.PiZwra_cardActive):not(.PiZwra_cardSelectionDisabled){background:var(--dsw-alias-interactive-bg-hover)}.PiZwra_cardActive{background:var(--dsw-alias-bg-module-platform);border-color:var(--dsw-static-neutral-bluish-400)}.PiZwra_cardSelectionDisabled{background:var(--dsw-alias-bg-module-platform)}.PiZwra_cardSelectionDisabled .PiZwra_cardMain{opacity:.48}.PiZwra_cardBroken,.PiZwra_cardBroken:hover{border-color:var(--dsw-alias-state-error-primary)}.PiZwra_brokenBadge{corner-shape:round;white-space:nowrap;background:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-bg-layer-3);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.PiZwra_brokenTip{z-index:1;background:var(--dsw-alias-label-primary);width:max-content;max-width:100%;color:var(--dsw-alias-bg-layer-3);text-align:left;white-space:pre-line;overflow-wrap:anywhere;opacity:0;pointer-events:none;border-radius:6px;padding:6px 8px;font-size:11px;font-weight:400;line-height:1.5;transition:opacity .12s;position:absolute;top:calc(100% + 6px);left:0}.PiZwra_brokenBadge:hover .PiZwra_brokenTip,.PiZwra_cardMain:focus-visible .PiZwra_brokenTip{opacity:1}.PiZwra_cardMain[aria-disabled=true]{cursor:default}.PiZwra_cardBrokenReason{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.PiZwra_cardMain{appearance:none;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px 12px 0 0;flex-direction:column;flex:1;gap:8px;padding:14px 16px 12px;display:flex}.PiZwra_cardMain:disabled{cursor:default}.PiZwra_cardMain:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.PiZwra_cardHead{align-items:center;gap:8px;display:flex;position:relative}.PiZwra_cardName{font-size:15px;font-weight:600;line-height:1.4}.PiZwra_inUse{margin-left:auto}.PiZwra_cardDesc{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:4;overflow-wrap:anywhere;-webkit-box-orient:vertical;min-height:42px;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.PiZwra_cardId{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-tertiary);margin-top:auto;font-size:11px}.PiZwra_cardFoot{border-top:.5px solid var(--dsw-alias-border-l2);justify-content:flex-end;gap:2px;padding:6px 10px;display:flex}.PiZwra_iconButton{appearance:none;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;padding:6px;display:inline-flex;position:relative}.PiZwra_iconButton:disabled{opacity:.4;cursor:default}.PiZwra_iconButton:hover:not(:disabled){background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}.PiZwra_iconButton:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-1px}.PiZwra_iconButton:after{content:attr(data-tip);background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3);white-space:nowrap;opacity:0;pointer-events:none;border-radius:6px;padding:3px 8px;font-size:11px;line-height:17px;transition:opacity .12s;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.PiZwra_iconButton:hover:after,.PiZwra_iconButton:focus-visible:after{opacity:1}.PiZwra_iconDanger:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}.PiZwra_revealedPath{color:var(--dsw-alias-label-tertiary);align-items:baseline;gap:6px;margin:0;padding:6px 16px 10px;font-size:11px;display:flex}.PiZwra_revealedPath code{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-secondary);user-select:all;overflow-wrap:anywhere}.PiZwra_revealedPathLabel{white-space:nowrap}.PiZwra_secondaryButton{color:var(--dsw-alias-label-secondary);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:7px;padding:5px 8px;font-size:12.5px}.PiZwra_secondaryButton:hover:not(:disabled){background:var(--dsw-alias-bg-layer-1)}.PiZwra_secondaryButton:disabled{opacity:.5;cursor:default}.PiZwra_field{flex-direction:column;gap:6px;display:flex}.PiZwra_fieldLabel{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500}.PiZwra_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);font:inherit;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);border-radius:10px;padding:9px 12px;font-size:13px}.PiZwra_input:focus{border-color:var(--dsw-alias-brand-primary);outline:none}.PiZwra_input::placeholder{color:var(--dsw-alias-label-dimmed)}.PiZwra_dialog{width:min(560px,100%)}.PiZwra_dialogFields{flex-direction:column;gap:12px;display:flex}.PiZwra_viewerCode{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);max-height:min(52vh,480px);color:var(--dsw-alias-label-secondary);font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);white-space:pre;tab-size:2;--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border-radius:10px;margin:0;padding:12px;font-size:12.5px;line-height:1.5;overflow:auto}.PiZwra_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.PiZwra_deleteDialog{width:min(480px,100%)}.PiZwra_deleteConfirm:not(:disabled){border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}.PiZwra_deleteConfirm:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}.PiZwra_creatorButton{box-sizing:border-box;border:1px dashed var(--dsw-alias-border-l3);height:44px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;border-radius:20px;justify-content:center;align-self:stretch;align-items:center;gap:6px;font-size:14px;line-height:22px;display:flex}.PiZwra_creatorButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.PiZwra_creatorButton:disabled{opacity:.4;cursor:default}";
|
|
990
|
-
const tagId = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetSection.module.css";
|
|
991
|
-
if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
|
|
992
|
-
const tag = document.createElement("style");
|
|
993
|
-
tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-agent-preset";
|
|
994
|
-
tag.dataset.pluginCss = tagId;
|
|
995
|
-
tag.textContent = css;
|
|
996
|
-
document.head.appendChild(tag);
|
|
997
|
-
}
|
|
998
|
-
var AgentPresetSection_module_css_default = {
|
|
999
|
-
"brokenBadge": "PiZwra_brokenBadge",
|
|
1000
|
-
"brokenTip": "PiZwra_brokenTip",
|
|
1001
|
-
"card": "PiZwra_card",
|
|
1002
|
-
"cardActive": "PiZwra_cardActive",
|
|
1003
|
-
"cardBroken": "PiZwra_cardBroken",
|
|
1004
|
-
"cardBrokenReason": "PiZwra_cardBrokenReason",
|
|
1005
|
-
"cardDesc": "PiZwra_cardDesc",
|
|
1006
|
-
"cardFoot": "PiZwra_cardFoot",
|
|
1007
|
-
"cardHead": "PiZwra_cardHead",
|
|
1008
|
-
"cardId": "PiZwra_cardId",
|
|
1009
|
-
"cardMain": "PiZwra_cardMain",
|
|
1010
|
-
"cardName": "PiZwra_cardName",
|
|
1011
|
-
"cardSelectionDisabled": "PiZwra_cardSelectionDisabled",
|
|
1012
|
-
"cards": "PiZwra_cards",
|
|
1013
|
-
"creatorButton": "PiZwra_creatorButton",
|
|
1014
|
-
"deleteConfirm": "PiZwra_deleteConfirm",
|
|
1015
|
-
"deleteDialog": "PiZwra_deleteDialog",
|
|
1016
|
-
"dialog": "PiZwra_dialog",
|
|
1017
|
-
"dialogFields": "PiZwra_dialogFields",
|
|
1018
|
-
"error": "PiZwra_error",
|
|
1019
|
-
"field": "PiZwra_field",
|
|
1020
|
-
"fieldLabel": "PiZwra_fieldLabel",
|
|
1021
|
-
"group": "PiZwra_group",
|
|
1022
|
-
"groupHead": "PiZwra_groupHead",
|
|
1023
|
-
"iconButton": "PiZwra_iconButton",
|
|
1024
|
-
"iconDanger": "PiZwra_iconDanger",
|
|
1025
|
-
"inUse": "PiZwra_inUse",
|
|
1026
|
-
"input": "PiZwra_input",
|
|
1027
|
-
"intro": "PiZwra_intro",
|
|
1028
|
-
"pickerPreference": "PiZwra_pickerPreference",
|
|
1029
|
-
"pickerPreferenceCopy": "PiZwra_pickerPreferenceCopy",
|
|
1030
|
-
"pickerPreferenceDescription": "PiZwra_pickerPreferenceDescription",
|
|
1031
|
-
"pickerPreferenceTitle": "PiZwra_pickerPreferenceTitle",
|
|
1032
|
-
"pickerPreferenceTitleRow": "PiZwra_pickerPreferenceTitleRow",
|
|
1033
|
-
"revealedPath": "PiZwra_revealedPath",
|
|
1034
|
-
"revealedPathLabel": "PiZwra_revealedPathLabel",
|
|
1035
|
-
"secondaryButton": "PiZwra_secondaryButton",
|
|
1036
|
-
"section": "PiZwra_section",
|
|
1037
|
-
"title": "PiZwra_title",
|
|
1038
|
-
"viewerCode": "PiZwra_viewerCode"
|
|
1039
|
-
};
|
|
1040
|
-
//#endregion
|
|
1041
|
-
//#region lib/types/client/AgentPresetSection.js
|
|
1042
|
-
/**
|
|
1043
|
-
* Agent-presets settings section: the roster as cards, a copy dialog as the
|
|
1044
|
-
* only way a preset is created, and a read-only viewer over the shipped
|
|
1045
|
-
* compositions.
|
|
1046
|
-
*
|
|
1047
|
-
* The browser edits no composition text — a shipped preset opens read-only to
|
|
1048
|
-
* be READ (it is the known-good composition a copy starts from), and a custom
|
|
1049
|
-
* preset is edited in its own files, which is what the location action leads
|
|
1050
|
-
* to. Deleting a preset leaves running sessions alone: a composition is
|
|
1051
|
-
* mounted once at session creation and nothing re-reads the file.
|
|
1052
|
-
*/
|
|
1053
|
-
function CopyDialog({ state, t, actions }) {
|
|
1054
|
-
const draft = state.copy;
|
|
1055
|
-
const blocker = draft === null ? void 0 : draftBlocker(draft, state.rows);
|
|
1056
|
-
const message = draft === null ? null : draft.error ?? (blocker === void 0 ? null : t(blocker));
|
|
1057
|
-
const source = draft === null ? void 0 : state.rows.find((row) => row.id === draft.from);
|
|
1058
|
-
const sourceTitle = source === void 0 ? draft?.fromTitle : presetDisplayText(source, t).name;
|
|
1059
|
-
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
1060
|
-
open: draft !== null,
|
|
1061
|
-
onClose: () => {
|
|
1062
|
-
actions.cancelCopy();
|
|
1063
|
-
},
|
|
1064
|
-
title: draft === null ? t("copyTitle") : `${t("copyTitle")} · ${t("copyOf")} ${sourceTitle}`,
|
|
1065
|
-
closeLabel: t("close"),
|
|
1066
|
-
description: t("copyIntro"),
|
|
1067
|
-
className: AgentPresetSection_module_css_default.dialog,
|
|
1068
|
-
footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
1069
|
-
variant: "outline",
|
|
1070
|
-
disabled: draft?.saving === true,
|
|
1071
|
-
onClick: () => {
|
|
1072
|
-
actions.cancelCopy();
|
|
1073
|
-
},
|
|
1074
|
-
children: t("cancel")
|
|
1075
|
-
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
1076
|
-
disabled: draft === null || draft.saving || blocker !== void 0,
|
|
1077
|
-
onClick: () => {
|
|
1078
|
-
actions.confirmCopy();
|
|
1079
|
-
},
|
|
1080
|
-
children: draft?.saving === true ? t("creating") : t("create")
|
|
1081
|
-
})] }),
|
|
1082
|
-
children: draft === null ? null : (0, react_jsx_runtime.jsxs)("div", {
|
|
1083
|
-
className: AgentPresetSection_module_css_default.dialogFields,
|
|
1084
|
-
children: [
|
|
1085
|
-
(0, react_jsx_runtime.jsxs)("label", {
|
|
1086
|
-
className: AgentPresetSection_module_css_default.field,
|
|
1087
|
-
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1088
|
-
className: AgentPresetSection_module_css_default.fieldLabel,
|
|
1089
|
-
children: t("presetId")
|
|
1090
|
-
}), (0, react_jsx_runtime.jsx)("input", {
|
|
1091
|
-
className: AgentPresetSection_module_css_default.input,
|
|
1092
|
-
value: draft.id,
|
|
1093
|
-
autoFocus: true,
|
|
1094
|
-
spellCheck: false,
|
|
1095
|
-
placeholder: t("presetIdPlaceholder"),
|
|
1096
|
-
onChange: (event) => {
|
|
1097
|
-
actions.setCopyId(event.target.value);
|
|
1098
|
-
}
|
|
1099
|
-
})]
|
|
1100
|
-
}),
|
|
1101
|
-
(0, react_jsx_runtime.jsxs)("label", {
|
|
1102
|
-
className: AgentPresetSection_module_css_default.field,
|
|
1103
|
-
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1104
|
-
className: AgentPresetSection_module_css_default.fieldLabel,
|
|
1105
|
-
children: t("displayName")
|
|
1106
|
-
}), (0, react_jsx_runtime.jsx)("input", {
|
|
1107
|
-
className: AgentPresetSection_module_css_default.input,
|
|
1108
|
-
value: draft.name,
|
|
1109
|
-
spellCheck: false,
|
|
1110
|
-
placeholder: t("displayNamePlaceholder"),
|
|
1111
|
-
onChange: (event) => {
|
|
1112
|
-
actions.setCopyName(event.target.value);
|
|
1113
|
-
}
|
|
1114
|
-
})]
|
|
1115
|
-
}),
|
|
1116
|
-
message === null ? null : (0, react_jsx_runtime.jsx)("p", {
|
|
1117
|
-
className: AgentPresetSection_module_css_default.error,
|
|
1118
|
-
role: "alert",
|
|
1119
|
-
children: message
|
|
1120
|
-
})
|
|
1121
|
-
]
|
|
1122
|
-
})
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
/**
|
|
1126
|
-
* Render one card's description, clamped by CSS and offered in full on hover.
|
|
1127
|
-
* The tooltip is attached only while the text is actually cut off, so a short
|
|
1128
|
-
* description does not answer a hover with a bubble repeating the card.
|
|
1129
|
-
* @param props.text - the description as rendered, already localized.
|
|
1130
|
-
* @returns the description element, tooltip-anchored while it overflows.
|
|
1131
|
-
*/
|
|
1132
|
-
function CardDescription({ text }) {
|
|
1133
|
-
const ref = (0, react.useRef)(null);
|
|
1134
|
-
const [truncated, setTruncated] = (0, react.useState)(false);
|
|
1135
|
-
(0, react.useLayoutEffect)(() => {
|
|
1136
|
-
const el = ref.current;
|
|
1137
|
-
/* v8 ignore next -- the ref is attached before layout effects run. */
|
|
1138
|
-
if (el === null) return;
|
|
1139
|
-
const measure = () => {
|
|
1140
|
-
setTruncated(el.scrollHeight > el.clientHeight);
|
|
1141
|
-
};
|
|
1142
|
-
measure();
|
|
1143
|
-
if (typeof ResizeObserver === "undefined") return;
|
|
1144
|
-
const observer = new ResizeObserver(measure);
|
|
1145
|
-
observer.observe(el);
|
|
1146
|
-
return () => {
|
|
1147
|
-
observer.disconnect();
|
|
1148
|
-
};
|
|
1149
|
-
}, [text]);
|
|
1150
|
-
return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
|
|
1151
|
-
label: text,
|
|
1152
|
-
side: "bottom",
|
|
1153
|
-
delayMs: 400,
|
|
1154
|
-
disabled: !truncated,
|
|
1155
|
-
maxWidth: 360,
|
|
1156
|
-
children: (0, react_jsx_runtime.jsx)("span", {
|
|
1157
|
-
ref,
|
|
1158
|
-
className: AgentPresetSection_module_css_default.cardDesc,
|
|
1159
|
-
title: "",
|
|
1160
|
-
children: text
|
|
1161
|
-
})
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
/**
|
|
1165
|
-
* Render the Agent presets section content column.
|
|
1166
|
-
* @param props - composed slot props.
|
|
1167
|
-
* @returns the section, or null when the deployment composes no presets.
|
|
1168
|
-
*/
|
|
1169
|
-
function AgentPresetSection(props) {
|
|
1170
|
-
const { useAgentPresetSection, t, load } = props;
|
|
1171
|
-
const state = useAgentPresetSection((snapshot) => snapshot);
|
|
1172
|
-
const viewedId = state.view?.id;
|
|
1173
|
-
const viewedRow = viewedId === void 0 ? void 0 : state.rows.find((row) => row.id === viewedId);
|
|
1174
|
-
const viewedTitle = state.view === null ? "" : viewedRow === void 0 ? state.view.title : presetDisplayText(viewedRow, t).name;
|
|
1175
|
-
(0, react.useEffect)(() => {
|
|
1176
|
-
load();
|
|
1177
|
-
}, [load]);
|
|
1178
|
-
if (state.status === "unavailable") return null;
|
|
1179
|
-
if (state.status === "error") {
|
|
1180
|
-
/* v8 ignore next -- an error status always carries text; the fallback satisfies the nullable type */
|
|
1181
|
-
const detail = state.error ?? "";
|
|
1182
|
-
return (0, react_jsx_runtime.jsxs)("div", {
|
|
1183
|
-
className: AgentPresetSection_module_css_default.section,
|
|
1184
|
-
children: [(0, react_jsx_runtime.jsx)("p", {
|
|
1185
|
-
className: AgentPresetSection_module_css_default.error,
|
|
1186
|
-
role: "alert",
|
|
1187
|
-
children: `${t("error")} ${detail}`
|
|
1188
|
-
}), (0, react_jsx_runtime.jsx)("button", {
|
|
1189
|
-
type: "button",
|
|
1190
|
-
className: AgentPresetSection_module_css_default.secondaryButton,
|
|
1191
|
-
onClick: () => {
|
|
1192
|
-
load();
|
|
1193
|
-
},
|
|
1194
|
-
children: t("retry")
|
|
1195
|
-
})]
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
const creatorButton = props.startCreatorDraft !== void 0 && state.rows.some((row) => row.id === "cordis") ? (0, react_jsx_runtime.jsxs)("button", {
|
|
1199
|
-
type: "button",
|
|
1200
|
-
className: AgentPresetSection_module_css_default.creatorButton,
|
|
1201
|
-
disabled: !state.authorable || !state.showPicker || state.policySaving,
|
|
1202
|
-
title: !state.showPicker ? t("enablePickerToCreate") : state.authorable ? void 0 : t("duplicateUnavailable"),
|
|
1203
|
-
onClick: () => {
|
|
1204
|
-
props.startCreatorDraft?.();
|
|
1205
|
-
props.close();
|
|
1206
|
-
},
|
|
1207
|
-
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutline16, { size: 14 }), t("creatorDraft")]
|
|
1208
|
-
}) : null;
|
|
1209
|
-
return (0, react_jsx_runtime.jsxs)("div", {
|
|
1210
|
-
className: AgentPresetSection_module_css_default.section,
|
|
1211
|
-
children: [
|
|
1212
|
-
(0, react_jsx_runtime.jsx)("h2", {
|
|
1213
|
-
className: AgentPresetSection_module_css_default.title,
|
|
1214
|
-
children: t("nav")
|
|
1215
|
-
}),
|
|
1216
|
-
(0, react_jsx_runtime.jsx)("p", {
|
|
1217
|
-
className: AgentPresetSection_module_css_default.intro,
|
|
1218
|
-
children: t("sectionIntro")
|
|
1219
|
-
}),
|
|
1220
|
-
(0, react_jsx_runtime.jsxs)("div", {
|
|
1221
|
-
className: AgentPresetSection_module_css_default.pickerPreference,
|
|
1222
|
-
children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
1223
|
-
className: AgentPresetSection_module_css_default.pickerPreferenceCopy,
|
|
1224
|
-
children: [(0, react_jsx_runtime.jsxs)("span", {
|
|
1225
|
-
className: AgentPresetSection_module_css_default.pickerPreferenceTitleRow,
|
|
1226
|
-
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1227
|
-
className: AgentPresetSection_module_css_default.pickerPreferenceTitle,
|
|
1228
|
-
children: t("showPicker")
|
|
1229
|
-
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("showPickerBeta") })]
|
|
1230
|
-
}), (0, react_jsx_runtime.jsx)("p", {
|
|
1231
|
-
className: AgentPresetSection_module_css_default.pickerPreferenceDescription,
|
|
1232
|
-
children: t("showPickerDescription")
|
|
1233
|
-
})]
|
|
1234
|
-
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Switch, {
|
|
1235
|
-
checked: state.showPicker,
|
|
1236
|
-
label: t("showPicker"),
|
|
1237
|
-
disabled: state.status !== "ready" || state.policySaving,
|
|
1238
|
-
onChange: (next) => {
|
|
1239
|
-
props.setPickerVisible(next);
|
|
1240
|
-
}
|
|
1241
|
-
})]
|
|
1242
|
-
}),
|
|
1243
|
-
state.error === null ? null : (0, react_jsx_runtime.jsx)("p", {
|
|
1244
|
-
className: AgentPresetSection_module_css_default.error,
|
|
1245
|
-
role: "alert",
|
|
1246
|
-
children: state.error
|
|
1247
|
-
}),
|
|
1248
|
-
[["system", t("builtInGroup")], ["user", t("customGroup")]].map(([trust, heading]) => {
|
|
1249
|
-
const group = state.rows.filter((row) => row.trust === trust).map((row) => ({
|
|
1250
|
-
row,
|
|
1251
|
-
text: presetDisplayText(row, t),
|
|
1252
|
-
selectionAction: row.broken !== void 0 ? t("brokenBadge") : row.isDefault ? t(state.showPicker ? "inUse" : "selectionOffDefault") : t(state.showPicker ? "setDefault" : "enablePickerToSetDefault")
|
|
1253
|
-
}));
|
|
1254
|
-
const tail = trust === "user" ? creatorButton : null;
|
|
1255
|
-
if (group.length === 0 && tail === null) return null;
|
|
1256
|
-
return (0, react_jsx_runtime.jsxs)("section", {
|
|
1257
|
-
className: AgentPresetSection_module_css_default.group,
|
|
1258
|
-
children: [
|
|
1259
|
-
(0, react_jsx_runtime.jsx)("h3", {
|
|
1260
|
-
className: AgentPresetSection_module_css_default.groupHead,
|
|
1261
|
-
children: heading
|
|
1262
|
-
}),
|
|
1263
|
-
group.length === 0 ? null : (0, react_jsx_runtime.jsx)("ul", {
|
|
1264
|
-
className: AgentPresetSection_module_css_default.cards,
|
|
1265
|
-
children: group.map(({ row, text, selectionAction }) => (0, react_jsx_runtime.jsxs)("li", {
|
|
1266
|
-
className: [
|
|
1267
|
-
AgentPresetSection_module_css_default.card,
|
|
1268
|
-
row.broken !== void 0 ? AgentPresetSection_module_css_default.cardBroken : void 0,
|
|
1269
|
-
row.isDefault ? AgentPresetSection_module_css_default.cardActive : void 0,
|
|
1270
|
-
!state.showPicker && row.broken === void 0 && !row.isDefault ? AgentPresetSection_module_css_default.cardSelectionDisabled : void 0
|
|
1271
|
-
].filter(Boolean).join(" "),
|
|
1272
|
-
children: [
|
|
1273
|
-
(0, react_jsx_runtime.jsxs)("button", {
|
|
1274
|
-
type: "button",
|
|
1275
|
-
className: AgentPresetSection_module_css_default.cardMain,
|
|
1276
|
-
"aria-pressed": row.isDefault,
|
|
1277
|
-
disabled: row.isDefault || row.broken === void 0 && (!state.showPicker || state.policySaving),
|
|
1278
|
-
"aria-disabled": row.broken !== void 0,
|
|
1279
|
-
"aria-label": `${selectionAction}: ${text.name}`,
|
|
1280
|
-
title: selectionAction,
|
|
1281
|
-
onClick: () => {
|
|
1282
|
-
if (row.broken !== void 0) return;
|
|
1283
|
-
props.makeDefault(row.id);
|
|
1284
|
-
},
|
|
1285
|
-
children: [
|
|
1286
|
-
(0, react_jsx_runtime.jsxs)("span", {
|
|
1287
|
-
className: AgentPresetSection_module_css_default.cardHead,
|
|
1288
|
-
children: [
|
|
1289
|
-
(0, react_jsx_runtime.jsx)("span", {
|
|
1290
|
-
className: AgentPresetSection_module_css_default.cardName,
|
|
1291
|
-
children: text.name
|
|
1292
|
-
}),
|
|
1293
|
-
row.broken !== void 0 ? (0, react_jsx_runtime.jsxs)("span", {
|
|
1294
|
-
className: AgentPresetSection_module_css_default.brokenBadge,
|
|
1295
|
-
children: [t("brokenBadge"), (0, react_jsx_runtime.jsx)("span", {
|
|
1296
|
-
className: AgentPresetSection_module_css_default.brokenTip,
|
|
1297
|
-
"aria-hidden": "true",
|
|
1298
|
-
children: row.broken
|
|
1299
|
-
})]
|
|
1300
|
-
}) : null,
|
|
1301
|
-
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: row.trust === "user" ? t("userTrust") : t("builtIn") }),
|
|
1302
|
-
row.isDefault ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
|
|
1303
|
-
tone: "solid",
|
|
1304
|
-
className: AgentPresetSection_module_css_default.inUse,
|
|
1305
|
-
children: state.showPicker ? t("inUse") : t("selectionOffDefault")
|
|
1306
|
-
}) : null
|
|
1307
|
-
]
|
|
1308
|
-
}),
|
|
1309
|
-
(0, react_jsx_runtime.jsx)(CardDescription, { text: text.description ?? t("noDescription") }),
|
|
1310
|
-
row.broken === void 0 ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
1311
|
-
className: AgentPresetSection_module_css_default.cardBrokenReason,
|
|
1312
|
-
role: "alert",
|
|
1313
|
-
children: row.broken
|
|
1314
|
-
}),
|
|
1315
|
-
(0, react_jsx_runtime.jsx)("code", {
|
|
1316
|
-
className: AgentPresetSection_module_css_default.cardId,
|
|
1317
|
-
children: row.id
|
|
1318
|
-
})
|
|
1319
|
-
]
|
|
1320
|
-
}),
|
|
1321
|
-
(0, react_jsx_runtime.jsxs)("div", {
|
|
1322
|
-
className: AgentPresetSection_module_css_default.cardFoot,
|
|
1323
|
-
children: [
|
|
1324
|
-
row.trust === "system" ? row.broken === void 0 ? (0, react_jsx_runtime.jsx)("button", {
|
|
1325
|
-
type: "button",
|
|
1326
|
-
className: AgentPresetSection_module_css_default.iconButton,
|
|
1327
|
-
"data-tip": t("view"),
|
|
1328
|
-
"aria-label": `${t("view")}: ${text.name}`,
|
|
1329
|
-
onClick: () => {
|
|
1330
|
-
props.view(row.id);
|
|
1331
|
-
},
|
|
1332
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconBrowseOutline16, {})
|
|
1333
|
-
}) : null : (0, react_jsx_runtime.jsx)("button", {
|
|
1334
|
-
type: "button",
|
|
1335
|
-
className: AgentPresetSection_module_css_default.iconButton,
|
|
1336
|
-
"data-tip": state.hasDocument ? t("openLocation") : t("showLocation"),
|
|
1337
|
-
"aria-label": `${state.hasDocument ? t("openLocation") : t("showLocation")}: ${text.name}`,
|
|
1338
|
-
onClick: () => {
|
|
1339
|
-
props.openLocation(row.id);
|
|
1340
|
-
},
|
|
1341
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderOpenOutline16, {})
|
|
1342
|
-
}),
|
|
1343
|
-
(0, react_jsx_runtime.jsx)("button", {
|
|
1344
|
-
type: "button",
|
|
1345
|
-
className: AgentPresetSection_module_css_default.iconButton,
|
|
1346
|
-
disabled: !state.authorable || row.broken !== void 0,
|
|
1347
|
-
"data-tip": row.broken !== void 0 ? t("brokenNoCopy") : state.authorable ? t("duplicate") : t("duplicateUnavailable"),
|
|
1348
|
-
"aria-label": `${t("duplicate")}: ${text.name}`,
|
|
1349
|
-
onClick: () => {
|
|
1350
|
-
props.beginCopy(row.id);
|
|
1351
|
-
},
|
|
1352
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCopyOutline16, {})
|
|
1353
|
-
}),
|
|
1354
|
-
row.trust === "user" ? (0, react_jsx_runtime.jsx)("button", {
|
|
1355
|
-
type: "button",
|
|
1356
|
-
className: `${AgentPresetSection_module_css_default.iconButton} ${AgentPresetSection_module_css_default.iconDanger}`,
|
|
1357
|
-
"data-tip": t("delete"),
|
|
1358
|
-
"aria-label": `${t("delete")}: ${text.name}`,
|
|
1359
|
-
onClick: () => {
|
|
1360
|
-
props.confirmDelete(row.id);
|
|
1361
|
-
},
|
|
1362
|
-
children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutline16, {})
|
|
1363
|
-
}) : null
|
|
1364
|
-
]
|
|
1365
|
-
}),
|
|
1366
|
-
state.revealedPaths[row.id] === void 0 ? null : (0, react_jsx_runtime.jsxs)("p", {
|
|
1367
|
-
className: AgentPresetSection_module_css_default.revealedPath,
|
|
1368
|
-
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
1369
|
-
className: AgentPresetSection_module_css_default.revealedPathLabel,
|
|
1370
|
-
children: t("revealedPathLabel")
|
|
1371
|
-
}), (0, react_jsx_runtime.jsx)("code", { children: state.revealedPaths[row.id] })]
|
|
1372
|
-
})
|
|
1373
|
-
]
|
|
1374
|
-
}, row.id))
|
|
1375
|
-
}),
|
|
1376
|
-
tail
|
|
1377
|
-
]
|
|
1378
|
-
}, trust);
|
|
1379
|
-
}),
|
|
1380
|
-
(0, react_jsx_runtime.jsx)(CopyDialog, {
|
|
1381
|
-
state,
|
|
1382
|
-
t,
|
|
1383
|
-
actions: {
|
|
1384
|
-
cancelCopy: props.cancelCopy,
|
|
1385
|
-
confirmCopy: props.confirmCopy,
|
|
1386
|
-
setCopyId: props.setCopyId,
|
|
1387
|
-
setCopyName: props.setCopyName
|
|
1388
|
-
}
|
|
1389
|
-
}),
|
|
1390
|
-
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
1391
|
-
open: state.view !== null,
|
|
1392
|
-
onClose: () => {
|
|
1393
|
-
props.closeView();
|
|
1394
|
-
},
|
|
1395
|
-
title: state.view === null ? "" : `${t("view")} · ${viewedTitle}`,
|
|
1396
|
-
closeLabel: t("close"),
|
|
1397
|
-
description: t("composition"),
|
|
1398
|
-
className: AgentPresetSection_module_css_default.dialog,
|
|
1399
|
-
footer: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
1400
|
-
variant: "outline",
|
|
1401
|
-
autoFocus: true,
|
|
1402
|
-
onClick: () => {
|
|
1403
|
-
props.closeView();
|
|
1404
|
-
},
|
|
1405
|
-
children: t("close")
|
|
1406
|
-
}),
|
|
1407
|
-
children: state.view === null ? null : (0, react_jsx_runtime.jsx)("pre", {
|
|
1408
|
-
className: AgentPresetSection_module_css_default.viewerCode,
|
|
1409
|
-
children: state.view.content
|
|
1410
|
-
})
|
|
1411
|
-
}),
|
|
1412
|
-
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
1413
|
-
open: state.pendingDelete !== null,
|
|
1414
|
-
onClose: () => {
|
|
1415
|
-
props.confirmDelete(null);
|
|
1416
|
-
},
|
|
1417
|
-
title: t("deleteTitle"),
|
|
1418
|
-
closeLabel: t("close"),
|
|
1419
|
-
description: t("deleteDescription"),
|
|
1420
|
-
className: AgentPresetSection_module_css_default.deleteDialog,
|
|
1421
|
-
footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
1422
|
-
variant: "outline",
|
|
1423
|
-
autoFocus: true,
|
|
1424
|
-
disabled: state.deleting,
|
|
1425
|
-
onClick: () => {
|
|
1426
|
-
props.confirmDelete(null);
|
|
1427
|
-
},
|
|
1428
|
-
children: t("cancel")
|
|
1429
|
-
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
1430
|
-
variant: "outline",
|
|
1431
|
-
className: AgentPresetSection_module_css_default.deleteConfirm,
|
|
1432
|
-
disabled: state.deleting,
|
|
1433
|
-
onClick: () => {
|
|
1434
|
-
props.remove();
|
|
1435
|
-
},
|
|
1436
|
-
children: state.deleting ? t("deleting") : t("deleteConfirm")
|
|
1437
|
-
})] })
|
|
1438
|
-
})
|
|
1439
|
-
]
|
|
1440
|
-
});
|
|
1441
|
-
}
|
|
1442
|
-
//#endregion
|
|
1443
|
-
//#region lib/types/client/seat-store.js
|
|
1444
|
-
/**
|
|
1445
|
-
* Hero-chip controller: which preset the NEXT session gets.
|
|
1446
|
-
*
|
|
1447
|
-
* The new-session screen has no session, so a pick is staged rather than
|
|
1448
|
-
* applied. It reaches a session when one becomes current and is still blank —
|
|
1449
|
-
* whether the workspace connect created it or reused an existing blank one,
|
|
1450
|
-
* which is why staging cannot simply ride along on `sessions.create`.
|
|
1451
|
-
*
|
|
1452
|
-
* The stage is forgotten once applied. The next new session starts from the
|
|
1453
|
-
* Host-effective default again.
|
|
1454
|
-
*/
|
|
1455
|
-
const INITIAL = {
|
|
1456
|
-
showPicker: false,
|
|
1457
|
-
options: [],
|
|
1458
|
-
current: "",
|
|
1459
|
-
error: null,
|
|
1460
|
-
busy: false,
|
|
1461
|
-
introduce: false
|
|
1462
|
-
};
|
|
1463
|
-
/** Stages the next session's preset and applies it when one appears. */
|
|
1464
|
-
var AgentPresetSeatController = class {
|
|
1465
|
-
ctx;
|
|
1466
|
-
currentSession;
|
|
1467
|
-
staged;
|
|
1468
|
-
/** Chip snapshot the renderer subscribes to. */
|
|
1469
|
-
store = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(INITIAL);
|
|
1470
1214
|
/**
|
|
1471
1215
|
* The Host-effective default, so a consumed stage can fall back to it without
|
|
1472
1216
|
* re-reading the roster.
|
|
@@ -1474,6 +1218,8 @@ window.__ModuleLoader__.load({
|
|
|
1474
1218
|
fallback = "";
|
|
1475
1219
|
/** Only the newest roster read may publish after overlapping refreshes. */
|
|
1476
1220
|
loadGeneration = 0;
|
|
1221
|
+
/** Completion of the active Host selection; Settings choices wait before staging. */
|
|
1222
|
+
pendingSelection;
|
|
1477
1223
|
constructor(ctx, currentSession, staged = {
|
|
1478
1224
|
id: void 0,
|
|
1479
1225
|
introduce: false
|
|
@@ -1488,6 +1234,10 @@ window.__ModuleLoader__.load({
|
|
|
1488
1234
|
...patch
|
|
1489
1235
|
});
|
|
1490
1236
|
}
|
|
1237
|
+
clearStage() {
|
|
1238
|
+
this.staged.id = void 0;
|
|
1239
|
+
this.staged.introduce = false;
|
|
1240
|
+
}
|
|
1491
1241
|
/**
|
|
1492
1242
|
* Read the roster and open the chip on the Host-effective default.
|
|
1493
1243
|
* @returns once the snapshot reflects the host.
|
|
@@ -1501,10 +1251,7 @@ window.__ModuleLoader__.load({
|
|
|
1501
1251
|
return;
|
|
1502
1252
|
}
|
|
1503
1253
|
const { presets, modeSelectionEnabled } = roster.value;
|
|
1504
|
-
if (!modeSelectionEnabled)
|
|
1505
|
-
this.staged.id = void 0;
|
|
1506
|
-
this.staged.introduce = false;
|
|
1507
|
-
}
|
|
1254
|
+
if (!modeSelectionEnabled) this.clearStage();
|
|
1508
1255
|
this.fallback = presets.find((preset) => preset.isDefault)?.id ?? presets[0]?.id ?? "";
|
|
1509
1256
|
const session = this.currentSession();
|
|
1510
1257
|
this.set({
|
|
@@ -1531,8 +1278,7 @@ window.__ModuleLoader__.load({
|
|
|
1531
1278
|
async select(id) {
|
|
1532
1279
|
if (this.store.getSnapshot().busy) return void 0;
|
|
1533
1280
|
this.stage(id);
|
|
1534
|
-
await this.apply();
|
|
1535
|
-
return this.store.getSnapshot().error ?? void 0;
|
|
1281
|
+
return await this.apply();
|
|
1536
1282
|
}
|
|
1537
1283
|
/**
|
|
1538
1284
|
* Stage a pick WITHOUT the immediate apply, for a flow that starts the
|
|
@@ -1564,17 +1310,17 @@ window.__ModuleLoader__.load({
|
|
|
1564
1310
|
}
|
|
1565
1311
|
/**
|
|
1566
1312
|
* Apply a Settings choice only if its captured Session is still current and
|
|
1567
|
-
* blank. The selection uses the existing stage/apply path.
|
|
1313
|
+
* blank after any pending selection settles. The selection uses the existing stage/apply path.
|
|
1568
1314
|
* @param expectedSessionId - blank Session captured before the Settings write.
|
|
1569
1315
|
* @param id - the effective default that the write persisted.
|
|
1570
1316
|
* @returns the Host refusal text, or undefined when applied or no longer relevant.
|
|
1571
1317
|
*/
|
|
1572
1318
|
async syncBlankSession(expectedSessionId, id) {
|
|
1319
|
+
while (this.pendingSelection !== void 0) await this.pendingSelection;
|
|
1573
1320
|
const session = this.currentSession();
|
|
1574
1321
|
if (session === void 0 || !session.blank || session.id !== expectedSessionId) return void 0;
|
|
1575
1322
|
this.stage(id);
|
|
1576
|
-
await this.apply();
|
|
1577
|
-
return this.store.getSnapshot().error ?? void 0;
|
|
1323
|
+
return await this.apply();
|
|
1578
1324
|
}
|
|
1579
1325
|
/** Acknowledge the introduction cue once the chip has played it. */
|
|
1580
1326
|
introduced() {
|
|
@@ -1587,9 +1333,11 @@ window.__ModuleLoader__.load({
|
|
|
1587
1333
|
*
|
|
1588
1334
|
* Called both by `select()` and by whoever observes the current session
|
|
1589
1335
|
* changing, because the session may appear either before or after the pick.
|
|
1590
|
-
*
|
|
1336
|
+
* List updates do not repeat a selection while its response is pending.
|
|
1337
|
+
* @returns this attempt's Host refusal, or undefined when successful or no switch starts.
|
|
1591
1338
|
*/
|
|
1592
1339
|
async apply() {
|
|
1340
|
+
if (this.store.getSnapshot().busy) return;
|
|
1593
1341
|
const staged = this.staged.id;
|
|
1594
1342
|
const session = this.currentSession();
|
|
1595
1343
|
if (staged === void 0) {
|
|
@@ -1599,30 +1347,33 @@ window.__ModuleLoader__.load({
|
|
|
1599
1347
|
}
|
|
1600
1348
|
if (session === void 0) return;
|
|
1601
1349
|
if (!session.blank || presetOf(session) === staged) {
|
|
1602
|
-
this.
|
|
1603
|
-
this.staged.introduce = false;
|
|
1350
|
+
this.clearStage();
|
|
1604
1351
|
return;
|
|
1605
1352
|
}
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
const result = await this.ctx.remote.agentPresets.select(session.id, staged);
|
|
1611
|
-
this.staged.id = void 0;
|
|
1612
|
-
this.staged.introduce = false;
|
|
1613
|
-
if (!result.ok) {
|
|
1614
|
-
const { error } = result;
|
|
1353
|
+
const completion = Promise.withResolvers();
|
|
1354
|
+
this.pendingSelection = completion.promise;
|
|
1355
|
+
this.clearStage();
|
|
1356
|
+
try {
|
|
1615
1357
|
this.set({
|
|
1616
|
-
busy:
|
|
1617
|
-
error:
|
|
1618
|
-
current: presetOf(session) ?? ""
|
|
1358
|
+
busy: true,
|
|
1359
|
+
error: null
|
|
1619
1360
|
});
|
|
1620
|
-
|
|
1361
|
+
const result = await this.ctx.remote.agentPresets.select(session.id, staged);
|
|
1362
|
+
if (!result.ok) {
|
|
1363
|
+
const { error } = result;
|
|
1364
|
+
const refusal = "reason" in error.details && typeof error.details.reason === "string" ? error.details.reason : error.message;
|
|
1365
|
+
this.set({
|
|
1366
|
+
error: refusal,
|
|
1367
|
+
current: this.staged.id ?? presetOf(session) ?? ""
|
|
1368
|
+
});
|
|
1369
|
+
return refusal;
|
|
1370
|
+
}
|
|
1371
|
+
this.set({ current: this.staged.id ?? result.value });
|
|
1372
|
+
} finally {
|
|
1373
|
+
this.pendingSelection = void 0;
|
|
1374
|
+
this.set({ busy: false });
|
|
1375
|
+
completion.resolve(void 0);
|
|
1621
1376
|
}
|
|
1622
|
-
this.set({
|
|
1623
|
-
busy: false,
|
|
1624
|
-
current: result.value
|
|
1625
|
-
});
|
|
1626
1377
|
}
|
|
1627
1378
|
};
|
|
1628
1379
|
function presetOf(session) {
|
|
@@ -1630,12 +1381,101 @@ window.__ModuleLoader__.load({
|
|
|
1630
1381
|
return typeof value === "string" ? value : void 0;
|
|
1631
1382
|
}
|
|
1632
1383
|
//#endregion
|
|
1384
|
+
//#region lib/types/client/section-store.js
|
|
1385
|
+
const INITIAL = {
|
|
1386
|
+
status: "idle",
|
|
1387
|
+
error: null,
|
|
1388
|
+
showPicker: true,
|
|
1389
|
+
policySaving: false,
|
|
1390
|
+
rows: []
|
|
1391
|
+
};
|
|
1392
|
+
const message = (error) => error instanceof Error ? error.message : String(error);
|
|
1393
|
+
/** Loads the roster and writes the default and chooser policy. */
|
|
1394
|
+
var AgentPresetSectionController = class {
|
|
1395
|
+
ctx;
|
|
1396
|
+
/** Observable roster and selection state. */
|
|
1397
|
+
store = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(INITIAL);
|
|
1398
|
+
loading;
|
|
1399
|
+
constructor(ctx) {
|
|
1400
|
+
this.ctx = ctx;
|
|
1401
|
+
}
|
|
1402
|
+
set(patch) {
|
|
1403
|
+
this.store.set({
|
|
1404
|
+
...this.store.getSnapshot(),
|
|
1405
|
+
...patch
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
/** Refresh the roster; concurrent calls share one read.
|
|
1409
|
+
* @returns Once the roster read settles.
|
|
1410
|
+
*/
|
|
1411
|
+
load() {
|
|
1412
|
+
return this.loading ??= this.readRoster().finally(() => {
|
|
1413
|
+
this.loading = void 0;
|
|
1414
|
+
});
|
|
1415
|
+
}
|
|
1416
|
+
async readRoster() {
|
|
1417
|
+
try {
|
|
1418
|
+
const result = await this.ctx.remote.agentPresets.list();
|
|
1419
|
+
if (!result.ok) throw new Error(result.error.message);
|
|
1420
|
+
this.set({
|
|
1421
|
+
status: "ready",
|
|
1422
|
+
error: null,
|
|
1423
|
+
rows: result.value.presets,
|
|
1424
|
+
showPicker: result.value.modeSelectionEnabled
|
|
1425
|
+
});
|
|
1426
|
+
} catch (error) {
|
|
1427
|
+
this.set({
|
|
1428
|
+
status: "error",
|
|
1429
|
+
error: message(error)
|
|
1430
|
+
});
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
/** Set the default and synchronize the current blank task when supplied.
|
|
1434
|
+
* @param id Selected default.
|
|
1435
|
+
* @param sync Blank-session synchronization callback.
|
|
1436
|
+
* @returns Once saved and refreshed.
|
|
1437
|
+
*/
|
|
1438
|
+
async makeDefault(id, sync) {
|
|
1439
|
+
if (!this.store.getSnapshot().showPicker) return;
|
|
1440
|
+
await this.policy(() => writeDefaultPreset(this.ctx, id), sync);
|
|
1441
|
+
}
|
|
1442
|
+
/** Change chooser visibility.
|
|
1443
|
+
* @param visible Whether the chooser is visible.
|
|
1444
|
+
* @param sync Blank-session synchronization callback.
|
|
1445
|
+
* @returns Once saved and refreshed.
|
|
1446
|
+
*/
|
|
1447
|
+
async setPickerVisible(visible, sync) {
|
|
1448
|
+
await this.policy(() => writeModeSelectionEnabled(this.ctx, visible), sync);
|
|
1449
|
+
}
|
|
1450
|
+
async policy(write, sync) {
|
|
1451
|
+
if (this.store.getSnapshot().policySaving) return;
|
|
1452
|
+
this.set({
|
|
1453
|
+
policySaving: true,
|
|
1454
|
+
error: null
|
|
1455
|
+
});
|
|
1456
|
+
try {
|
|
1457
|
+
const error = await write();
|
|
1458
|
+
await this.load();
|
|
1459
|
+
if (error !== void 0) throw new Error(error);
|
|
1460
|
+
const selected = this.store.getSnapshot().rows.find((row) => row.isDefault);
|
|
1461
|
+
if (selected !== void 0) {
|
|
1462
|
+
const error = await sync?.(selected.id);
|
|
1463
|
+
if (error !== void 0) throw new Error(error);
|
|
1464
|
+
}
|
|
1465
|
+
} catch (error) {
|
|
1466
|
+
this.set({ error: message(error) });
|
|
1467
|
+
} finally {
|
|
1468
|
+
this.set({ policySaving: false });
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
};
|
|
1472
|
+
//#endregion
|
|
1633
1473
|
//#region lib/types/client/index.js
|
|
1634
1474
|
/**
|
|
1635
1475
|
* Agent-preset surface plugin, browser half — three surfaces over one roster:
|
|
1636
1476
|
* a chip on the new-session screen for the session about to start, a
|
|
1637
|
-
* read-only label in the session header, and a settings section that
|
|
1638
|
-
* the roster (
|
|
1477
|
+
* read-only label in the session header, and a settings section that lists
|
|
1478
|
+
* the roster (selection, the new-task default, and the way into Creator mode).
|
|
1639
1479
|
*
|
|
1640
1480
|
* A running session keeps the composition it began with (the host refuses to
|
|
1641
1481
|
* adopt an existing session under a different preset). That is what splits
|
|
@@ -1651,7 +1491,8 @@ window.__ModuleLoader__.load({
|
|
|
1651
1491
|
"locale",
|
|
1652
1492
|
"remote",
|
|
1653
1493
|
"remote.agentPresets",
|
|
1654
|
-
"remote.settings"
|
|
1494
|
+
"remote.settings",
|
|
1495
|
+
"configForms"
|
|
1655
1496
|
];
|
|
1656
1497
|
/**
|
|
1657
1498
|
* Mount the roster surfaces: hero chip, session-header label, settings section.
|
|
@@ -1664,33 +1505,41 @@ window.__ModuleLoader__.load({
|
|
|
1664
1505
|
introduce: false
|
|
1665
1506
|
};
|
|
1666
1507
|
const seats = new WeakMapWithValues();
|
|
1508
|
+
const boundSeatDisposers = /* @__PURE__ */ new Set();
|
|
1509
|
+
ctx.effect(() => async () => {
|
|
1510
|
+
await Promise.all([...boundSeatDisposers].map((dispose) => dispose()));
|
|
1511
|
+
}, "ui-agent-preset: bound selections");
|
|
1667
1512
|
const unboundSeat = new AgentPresetSeatController(ctx, () => void 0, staged);
|
|
1668
|
-
const seatFor = (
|
|
1669
|
-
|
|
1670
|
-
if (
|
|
1671
|
-
seat = new AgentPresetSeatController(
|
|
1672
|
-
if (
|
|
1673
|
-
const summary =
|
|
1674
|
-
return summary !== void 0 && (
|
|
1513
|
+
const seatFor = (binding) => {
|
|
1514
|
+
const existing = seats.get(binding);
|
|
1515
|
+
if (existing !== void 0) return existing;
|
|
1516
|
+
const seat = new AgentPresetSeatController(ctx, () => {
|
|
1517
|
+
if (ctx.sessions.binding(binding.sessionId) !== binding) return void 0;
|
|
1518
|
+
const summary = ctx.sessions.list.getSnapshot().byId[binding.sessionId];
|
|
1519
|
+
return summary !== void 0 && (ctx.sessions.retainInfo(binding.sessionId).getSnapshot().retainedBy.mainView ?? 0) > 0 ? summary : void 0;
|
|
1675
1520
|
}, staged);
|
|
1676
1521
|
seats.set(binding, seat);
|
|
1677
|
-
binding.ctx.effect(() =>
|
|
1678
|
-
|
|
1522
|
+
const dispose = binding.ctx.effect(() => {
|
|
1523
|
+
const stop = ctx.sessions.list.subscribe(() => {
|
|
1524
|
+
seat.apply();
|
|
1525
|
+
});
|
|
1526
|
+
return () => {
|
|
1527
|
+
stop();
|
|
1528
|
+
seats.delete(binding);
|
|
1529
|
+
boundSeatDisposers.delete(dispose);
|
|
1530
|
+
};
|
|
1679
1531
|
}, "ui-agent-preset: Provider binding");
|
|
1532
|
+
boundSeatDisposers.add(dispose);
|
|
1680
1533
|
return seat;
|
|
1681
1534
|
};
|
|
1682
|
-
const section = new AgentPresetSectionController(ctx
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
for (const seat of seats.values) seat.load();
|
|
1686
|
-
});
|
|
1687
|
-
const mainBlankSeat = (scope) => {
|
|
1688
|
-
const summary = Object.values(scope.sessions.list.getSnapshot().byId).find((session) => {
|
|
1535
|
+
const section = new AgentPresetSectionController(ctx);
|
|
1536
|
+
const mainBlankSeat = () => {
|
|
1537
|
+
const summary = Object.values(ctx.sessions.list.getSnapshot().byId).find((session) => {
|
|
1689
1538
|
/* v8 ignore next -- retained source counts omit zero-valued entries. */
|
|
1690
1539
|
return session.blank && (session.retainedBy.mainView ?? 0) > 0;
|
|
1691
1540
|
});
|
|
1692
|
-
const binding = summary === void 0 ? void 0 :
|
|
1693
|
-
return binding === void 0 ? void 0 : seatFor(
|
|
1541
|
+
const binding = summary === void 0 ? void 0 : ctx.sessions.binding(summary.id);
|
|
1542
|
+
return binding === void 0 ? void 0 : seatFor(binding);
|
|
1694
1543
|
};
|
|
1695
1544
|
ctx.effect(() => ctx.locale.register("settings.agentPreset", {
|
|
1696
1545
|
zh,
|
|
@@ -1704,7 +1553,7 @@ window.__ModuleLoader__.load({
|
|
|
1704
1553
|
for (const seat of seats.values) seat.load();
|
|
1705
1554
|
};
|
|
1706
1555
|
const disposers = [ctx.remote.$on("settings/document-updated", (ns) => {
|
|
1707
|
-
if (ns !== "agent-
|
|
1556
|
+
if (ns !== "agent-preset-registry") return;
|
|
1708
1557
|
refresh();
|
|
1709
1558
|
}), ctx.on("connection/reset", () => {
|
|
1710
1559
|
refresh();
|
|
@@ -1721,10 +1570,13 @@ window.__ModuleLoader__.load({
|
|
|
1721
1570
|
"uiWorkspace"
|
|
1722
1571
|
], (scope) => {
|
|
1723
1572
|
const seatInjected = (sessionId) => {
|
|
1724
|
-
const binding = sessionId === void 0 ? void 0 :
|
|
1725
|
-
const seat = binding === void 0 ? unboundSeat : seatFor(
|
|
1573
|
+
const binding = sessionId === void 0 ? void 0 : ctx.sessions.binding(sessionId);
|
|
1574
|
+
const seat = binding === void 0 ? unboundSeat : seatFor(binding);
|
|
1726
1575
|
return {
|
|
1727
|
-
hooks: {
|
|
1576
|
+
hooks: {
|
|
1577
|
+
agentPresetSeat: seat.store,
|
|
1578
|
+
showPresetPicker: ctx.configForms.developerTools.enabled
|
|
1579
|
+
},
|
|
1728
1580
|
load: () => seat.load(),
|
|
1729
1581
|
select: (id) => seat.select(id),
|
|
1730
1582
|
introduced: () => {
|
|
@@ -1739,7 +1591,7 @@ window.__ModuleLoader__.load({
|
|
|
1739
1591
|
scope.effect(() => {
|
|
1740
1592
|
creatorDraft = () => {
|
|
1741
1593
|
if (!section.store.getSnapshot().showPicker) return;
|
|
1742
|
-
const seat = mainBlankSeat(
|
|
1594
|
+
const seat = mainBlankSeat() ?? unboundSeat;
|
|
1743
1595
|
seat.stage("cordis", true);
|
|
1744
1596
|
scope.uiWorkspace.startSession();
|
|
1745
1597
|
seat.apply();
|
|
@@ -1767,7 +1619,7 @@ window.__ModuleLoader__.load({
|
|
|
1767
1619
|
const captureBlankSessionSync = () => {
|
|
1768
1620
|
const summary = Object.values(ctx.sessions.list.getSnapshot().byId).find((session) => session.blank && (session.retainedBy.mainView ?? 0) > 0);
|
|
1769
1621
|
const binding = summary === void 0 ? void 0 : ctx.sessions.binding(summary.id);
|
|
1770
|
-
const seat = binding === void 0 ? void 0 :
|
|
1622
|
+
const seat = binding === void 0 ? void 0 : seatFor(binding);
|
|
1771
1623
|
const sessionId = seat?.blankSessionId();
|
|
1772
1624
|
return async (id) => {
|
|
1773
1625
|
if (seat === void 0 || sessionId === void 0 || binding === void 0 || seats.get(binding) !== seat) return void 0;
|
|
@@ -1775,31 +1627,12 @@ window.__ModuleLoader__.load({
|
|
|
1775
1627
|
};
|
|
1776
1628
|
};
|
|
1777
1629
|
const sectionInjected = () => ({
|
|
1778
|
-
hooks: {
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
closeView: () => {
|
|
1782
|
-
section.closeView();
|
|
1630
|
+
hooks: {
|
|
1631
|
+
agentPresetSection: section.store,
|
|
1632
|
+
developerTools: ctx.configForms.developerTools.enabled
|
|
1783
1633
|
},
|
|
1784
|
-
|
|
1785
|
-
section.beginCopy(from);
|
|
1786
|
-
},
|
|
1787
|
-
cancelCopy: () => {
|
|
1788
|
-
section.cancelCopy();
|
|
1789
|
-
},
|
|
1790
|
-
setCopyId: (id) => {
|
|
1791
|
-
section.setCopyId(id);
|
|
1792
|
-
},
|
|
1793
|
-
setCopyName: (name) => {
|
|
1794
|
-
section.setCopyName(name);
|
|
1795
|
-
},
|
|
1796
|
-
confirmCopy: () => section.confirmCopy(),
|
|
1797
|
-
openLocation: (id) => section.openLocation(id),
|
|
1634
|
+
load: () => section.load(),
|
|
1798
1635
|
...creatorDraft === void 0 ? {} : { startCreatorDraft: creatorDraft },
|
|
1799
|
-
confirmDelete: (id) => {
|
|
1800
|
-
section.confirmDelete(id);
|
|
1801
|
-
},
|
|
1802
|
-
remove: () => section.remove(),
|
|
1803
1636
|
makeDefault: (id) => section.makeDefault(id, captureBlankSessionSync()),
|
|
1804
1637
|
setPickerVisible: (showPicker) => section.setPickerVisible(showPicker, captureBlankSessionSync())
|
|
1805
1638
|
});
|
|
@@ -1815,7 +1648,6 @@ window.__ModuleLoader__.load({
|
|
|
1815
1648
|
//#endregion
|
|
1816
1649
|
exports.AGENT_PRESET_SETTINGS_NS = AGENT_PRESET_SETTINGS_NS;
|
|
1817
1650
|
exports.apply = apply;
|
|
1818
|
-
exports.draftBlocker = draftBlocker;
|
|
1819
1651
|
exports.inject = inject;
|
|
1820
1652
|
exports.writeDefaultPreset = writeDefaultPreset;
|
|
1821
1653
|
return module.exports;
|