@songtonyli/dsh-cli 0.1.31 → 0.1.33
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-api-job-controller/README.i18n.yaml +6 -0
- 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 -93
- 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-cursor/lib/index.js +13 -50
- package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +25 -26
- 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 +15 -15
- package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +15 -15
- package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +554 -131
- 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 -268
- 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-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
|
@@ -1,1820 +0,0 @@
|
|
|
1
|
-
import { isBuiltin } from "node:module";
|
|
2
|
-
import { chmod, cp, readFile, readdir, rm, stat } from "node:fs/promises";
|
|
3
|
-
import { evaluate, isJsExpr } from "@deepseek-ai/cordis-plugin-loader";
|
|
4
|
-
import z from "@deepseek-ai/schemastery";
|
|
5
|
-
import { Remote, RemoteError, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
|
|
6
|
-
import { bindScopeParent, createScope, scopeOf, scopeParentOf } from "@deepseek-ai/dsh-scope";
|
|
7
|
-
import { dshHomePath, expandHomePath } from "@deepseek-ai/dsh-home-paths";
|
|
8
|
-
import { existsSync } from "node:fs";
|
|
9
|
-
import { dirname, isAbsolute, join, resolve } from "node:path";
|
|
10
|
-
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
11
|
-
import yaml, { load } from "js-yaml";
|
|
12
|
-
import { Include, entryListSchema } from "@deepseek-ai/cordis-plugin-include";
|
|
13
|
-
import { writeFileAtomic } from "@deepseek-ai/dsh-atomic-write";
|
|
14
|
-
import { Context } from "@deepseek-ai/cordis";
|
|
15
|
-
import { z as z$1 } from "zod";
|
|
16
|
-
//#region lib/types/metadata.js
|
|
17
|
-
/**
|
|
18
|
-
* A preset's display metadata: the name and description a picker shows.
|
|
19
|
-
*
|
|
20
|
-
* It lives in its own file because the composition is a top-level list of
|
|
21
|
-
* plugin rows — YAML cannot carry sibling keys beside it, and faking a
|
|
22
|
-
* metadata row would hand the Loader something to load. Keeping it separate
|
|
23
|
-
* also keeps the composition exactly what its name says: a Cordis file the
|
|
24
|
-
* loader owns and the cordis preset can author.
|
|
25
|
-
*
|
|
26
|
-
* The file carries display text ONLY. `id` is the directory name and `trust`
|
|
27
|
-
* comes from the root a preset was discovered under, so neither is writable
|
|
28
|
-
* here — otherwise a locally authored preset could claim to be a shipped one.
|
|
29
|
-
*
|
|
30
|
-
* Every read failure degrades to no metadata. A preset whose display text is
|
|
31
|
-
* missing, malformed, or unreadable still mounts: presentation is not a
|
|
32
|
-
* capability, and a broken name must never become an agent that cannot start.
|
|
33
|
-
* @module @deepseek-ai/dsh-agent-presets/metadata
|
|
34
|
-
*/
|
|
35
|
-
/** The optional display-metadata file beside a preset's composition. */
|
|
36
|
-
const METADATA_FILE = "preset.yml";
|
|
37
|
-
/** A non-empty trimmed string, or undefined for anything else. */
|
|
38
|
-
function text(value) {
|
|
39
|
-
if (typeof value !== "string") return void 0;
|
|
40
|
-
const trimmed = value.trim();
|
|
41
|
-
return trimmed === "" ? void 0 : trimmed;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Read one preset directory's display metadata.
|
|
45
|
-
*
|
|
46
|
-
* Absent, unparsable, and wrongly-shaped files are all the same answer —
|
|
47
|
-
* empty metadata — because the caller renders a picker, not a diagnostic.
|
|
48
|
-
* @param directory - the preset directory.
|
|
49
|
-
* @returns the display text the preset published, possibly empty.
|
|
50
|
-
*/
|
|
51
|
-
async function readPresetMetadata(directory) {
|
|
52
|
-
let raw;
|
|
53
|
-
try {
|
|
54
|
-
raw = await readFile(join(directory, METADATA_FILE), "utf8");
|
|
55
|
-
} catch {
|
|
56
|
-
return {};
|
|
57
|
-
}
|
|
58
|
-
let parsed;
|
|
59
|
-
try {
|
|
60
|
-
parsed = yaml.load(raw);
|
|
61
|
-
} catch {
|
|
62
|
-
return {};
|
|
63
|
-
}
|
|
64
|
-
if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return {};
|
|
65
|
-
const record = parsed;
|
|
66
|
-
const name = text(record.name);
|
|
67
|
-
const description = text(record.description);
|
|
68
|
-
const order = typeof record.order === "number" && Number.isFinite(record.order) ? record.order : void 0;
|
|
69
|
-
return {
|
|
70
|
-
...name === void 0 ? {} : { name },
|
|
71
|
-
...description === void 0 ? {} : { description },
|
|
72
|
-
...order === void 0 ? {} : { order }
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Render display metadata as the file's contents.
|
|
77
|
-
*
|
|
78
|
-
* Absent fields are omitted rather than written empty, so a preset with no
|
|
79
|
-
* description does not ship a key that reads as an intentional blank.
|
|
80
|
-
* @param metadata - the display text to store.
|
|
81
|
-
* @returns the YAML document, or undefined when there is nothing to store.
|
|
82
|
-
*/
|
|
83
|
-
function renderPresetMetadata(metadata) {
|
|
84
|
-
const name = text(metadata.name);
|
|
85
|
-
const description = text(metadata.description);
|
|
86
|
-
const { order } = metadata;
|
|
87
|
-
if (name === void 0 && description === void 0 && order === void 0) return void 0;
|
|
88
|
-
return yaml.dump({
|
|
89
|
-
...name === void 0 ? {} : { name },
|
|
90
|
-
...description === void 0 ? {} : { description },
|
|
91
|
-
...order === void 0 ? {} : { order }
|
|
92
|
-
}, { lineWidth: -1 });
|
|
93
|
-
}
|
|
94
|
-
//#endregion
|
|
95
|
-
//#region lib/types/preset.js
|
|
96
|
-
/** Agent-preset vocabulary shared by discovery, mounting, and consumers. */
|
|
97
|
-
/**
|
|
98
|
-
* Ids a preset directory may use.
|
|
99
|
-
*
|
|
100
|
-
* The id becomes a path segment, so this is a containment boundary rather than
|
|
101
|
-
* a style rule: `..`, a separator, or an absolute-looking name would place the
|
|
102
|
-
* composition outside the root the deployment authorised. Discovery shares it:
|
|
103
|
-
* a directory whose name no copy could ever claim is not a preset slot.
|
|
104
|
-
*/
|
|
105
|
-
const PRESET_ID = /^[a-z0-9][a-z0-9-]*$/;
|
|
106
|
-
//#endregion
|
|
107
|
-
//#region lib/types/specifier.js
|
|
108
|
-
/**
|
|
109
|
-
* How one composition row's `name` reaches a module.
|
|
110
|
-
*
|
|
111
|
-
* A preset composition is read by `Include`, which rewrites its context's
|
|
112
|
-
* `baseUrl` to the composition's own directory. That is right for a row
|
|
113
|
-
* naming a file the preset ships and wrong for a row naming a package: a
|
|
114
|
-
* locally authored preset lives under the user's home, where Node's upward
|
|
115
|
-
* `node_modules` walk never reaches the harness's own dependencies. Both the
|
|
116
|
-
* mount's import override and discovery's health check therefore have to
|
|
117
|
-
* classify a row's name before they can act on it, and they must classify it
|
|
118
|
-
* the same way — a row discovery resolves from one base and the mount imports
|
|
119
|
-
* from another would be reported healthy and then fail to load.
|
|
120
|
-
* @module @deepseek-ai/dsh-agent-presets/specifier
|
|
121
|
-
*/
|
|
122
|
-
/**
|
|
123
|
-
* Classify one row's `name`.
|
|
124
|
-
*
|
|
125
|
-
* An absolute filesystem path becomes a file URL here rather than at each
|
|
126
|
-
* call site, because Node's ESM resolver rejects a bare drive-letter path on
|
|
127
|
-
* Windows. A `file:` URL is already one and joins it: the Loader accepts both
|
|
128
|
-
* spellings for the same thing, and treating the URL as a package name would
|
|
129
|
-
* hand it to a resolver that only normalizes it, reporting a file that is not
|
|
130
|
-
* there as present. The `specifier` a caller receives is always the string to
|
|
131
|
-
* hand a resolver; only `kind` decides which base it goes with.
|
|
132
|
-
* @param name - the module specifier exactly as the row wrote it.
|
|
133
|
-
* @returns the classification, carrying the specifier to resolve.
|
|
134
|
-
*/
|
|
135
|
-
function classifyRowSpecifier(name) {
|
|
136
|
-
if (name.startsWith("cordis:")) return {
|
|
137
|
-
kind: "builtin",
|
|
138
|
-
specifier: name
|
|
139
|
-
};
|
|
140
|
-
if (name.startsWith(".")) return {
|
|
141
|
-
kind: "preset",
|
|
142
|
-
specifier: name
|
|
143
|
-
};
|
|
144
|
-
if (name.startsWith("file:")) return {
|
|
145
|
-
kind: "file",
|
|
146
|
-
specifier: name
|
|
147
|
-
};
|
|
148
|
-
if (isAbsolute(name)) return {
|
|
149
|
-
kind: "file",
|
|
150
|
-
specifier: pathToFileURL(name).href
|
|
151
|
-
};
|
|
152
|
-
return {
|
|
153
|
-
kind: "package",
|
|
154
|
-
specifier: name
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
//#endregion
|
|
158
|
-
//#region lib/types/discovery.js
|
|
159
|
-
/**
|
|
160
|
-
* Filesystem discovery of agent presets. A preset is a directory holding
|
|
161
|
-
* {@link COMPOSITION_FILE}, optionally beside a {@link METADATA_FILE} carrying
|
|
162
|
-
* its display text; the directory name is the preset id. Discovery
|
|
163
|
-
* re-reads the roots on every call so a preset authored while the process is
|
|
164
|
-
* running is visible without a restart.
|
|
165
|
-
*
|
|
166
|
-
* Discovery also owns preset HEALTH: a directory whose composition is
|
|
167
|
-
* missing or unloadable is reported as a broken roster row rather than
|
|
168
|
-
* skipped. A skipped directory would still occupy its id on disk — the copy
|
|
169
|
-
* path refuses the name while no surface shows anything to delete — and a
|
|
170
|
-
* malformed composition would otherwise read as an ordinary preset until the
|
|
171
|
-
* first session fails to mount it.
|
|
172
|
-
*
|
|
173
|
-
* Health is what every consumer reads before offering a preset — the pickers
|
|
174
|
-
* drop a broken row rather than defer the discovery to a failed session
|
|
175
|
-
* start — so it covers the way an authored preset actually rots: a row naming
|
|
176
|
-
* a package that was renamed or uninstalled. Resolving those names is a
|
|
177
|
-
* separate pass from the shape check and stops short of importing anything,
|
|
178
|
-
* so a composition is judged without running a line of plugin code.
|
|
179
|
-
* @module @deepseek-ai/dsh-agent-presets/discovery
|
|
180
|
-
*/
|
|
181
|
-
/** The composition file that makes a directory a preset. */
|
|
182
|
-
const COMPOSITION_FILE = "agent.cordis.yml";
|
|
183
|
-
/**
|
|
184
|
-
* Harness-home directory holding locally authored presets.
|
|
185
|
-
*
|
|
186
|
-
* This package owns the writable root the way `dsh-skill-filesystem` owns
|
|
187
|
-
* `<dshHome>/skills`: where a person's own presets go is the same place in
|
|
188
|
-
* every deployment that does not say otherwise, so a launcher that forgets to
|
|
189
|
-
* configure one still finds them.
|
|
190
|
-
*
|
|
191
|
-
* Package-internal on purpose: no consumer outside this package addresses the
|
|
192
|
-
* directory by name, and a test that imported it could not catch this value
|
|
193
|
-
* being wrong — the expected segment is spelled out where it is asserted.
|
|
194
|
-
*/
|
|
195
|
-
const USER_PRESET_DIR = ".agent-presets";
|
|
196
|
-
/**
|
|
197
|
-
* The shipped presets, bundled inside this package: the roster's built-in
|
|
198
|
-
* compositions travel with the machinery that mounts them, the way each
|
|
199
|
-
* preset's own skills travel inside its directory. Resolved relative to this
|
|
200
|
-
* module so both launch layouts work — `src/` under tsx and the bundled
|
|
201
|
-
* `lib/` sit one level below the package root.
|
|
202
|
-
*/
|
|
203
|
-
const SHIPPED_PRESET_ROOT = fileURLToPath(new URL("../presets/", import.meta.url));
|
|
204
|
-
/**
|
|
205
|
-
* Why `rows` cannot be an entry list, or undefined when it can.
|
|
206
|
-
*
|
|
207
|
-
* A shallow shape check, deliberately short of the loader's work: it does not
|
|
208
|
-
* resolve plugin names or apply configs. What it catches is the hand-edit
|
|
209
|
-
* that produces a file the loader cannot even begin with — and it must accept
|
|
210
|
-
* everything the loader accepts, which is why rows are only required to be
|
|
211
|
-
* maps carrying a plugin `name` (groups recurse into their own lists).
|
|
212
|
-
*
|
|
213
|
-
* Shared with the composition inventory, whose file reads race edits against
|
|
214
|
-
* the health verdict and must judge the raced content by the same rule.
|
|
215
|
-
* @param rows - the parsed composition document.
|
|
216
|
-
* @param at - row-path prefix for nested diagnostics, empty at the top level.
|
|
217
|
-
* @returns one human-readable reason, or undefined when the shape holds.
|
|
218
|
-
*/
|
|
219
|
-
function entryListProblem(rows, at = "") {
|
|
220
|
-
if (!Array.isArray(rows)) return at === "" ? "the composition must be a top-level list of plugin rows" : `group ${at} must hold a list of plugin rows`;
|
|
221
|
-
for (const [index, row] of rows.entries()) {
|
|
222
|
-
const label = at === "" ? `row ${String(index + 1)}` : `${at} row ${String(index + 1)}`;
|
|
223
|
-
if (typeof row !== "object" || row === null || Array.isArray(row)) return `${label} is not a plugin row (expected a map with a "name")`;
|
|
224
|
-
const { name, group, config } = row;
|
|
225
|
-
if (typeof name !== "string" || name === "") return `${label} names no plugin (a "name" string is required)`;
|
|
226
|
-
if (group === true) {
|
|
227
|
-
const nested = entryListProblem(config, label);
|
|
228
|
-
if (nested !== void 0) return nested;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Whether a package specifier is installed above `base` without importing it.
|
|
234
|
-
*
|
|
235
|
-
* The direct disk walk accepts unexported subpaths and rejects stale links
|
|
236
|
-
* whose package directory no longer exists.
|
|
237
|
-
* @param name - package specifier, possibly carrying a subpath.
|
|
238
|
-
* @param base - directory URL whose ancestors contain candidate `node_modules` directories.
|
|
239
|
-
* @returns true when the package is installed.
|
|
240
|
-
*/
|
|
241
|
-
function packageInstalled(name, base) {
|
|
242
|
-
const pkg = name.split("/").slice(0, name.startsWith("@") ? 2 : 1).join("/");
|
|
243
|
-
let dir = fileURLToPath(base);
|
|
244
|
-
for (;;) {
|
|
245
|
-
if (existsSync(join(dir, "node_modules", pkg, "package.json"))) return true;
|
|
246
|
-
const parent = dirname(dir);
|
|
247
|
-
if (parent === dir) return false;
|
|
248
|
-
dir = parent;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* Whether one classified row names a module that exists, importing nothing.
|
|
253
|
-
*
|
|
254
|
-
* Package rows delegate to the injected lookup. Relative and `file:` rows use
|
|
255
|
-
* file metadata. No check evaluates the named module.
|
|
256
|
-
* @param row - the classified specifier, from {@link classifyRowSpecifier}.
|
|
257
|
-
* @param presetBase - directory URL a preset-relative specifier resolves against.
|
|
258
|
-
* @param harnessBase - base URL a package name resolves against.
|
|
259
|
-
* @param resolves - package lookup selected by the owning caller.
|
|
260
|
-
* @returns true when the row names something that can be imported.
|
|
261
|
-
*/
|
|
262
|
-
async function rowResolves(row, presetBase, harnessBase, resolves) {
|
|
263
|
-
if (row.kind === "builtin") return true;
|
|
264
|
-
if (row.kind === "package") return isBuiltin(row.specifier) || resolves(row.specifier, harnessBase);
|
|
265
|
-
return await isFile(fileURLToPath(row.kind === "file" ? new URL(row.specifier) : new URL(row.specifier, presetBase)));
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Rows whose module cannot be resolved.
|
|
269
|
-
*
|
|
270
|
-
* Only rows that will certainly be started are checked, and the test is the
|
|
271
|
-
* Loader's own: it starts a row when `Boolean(options.disabled)` is false, so
|
|
272
|
-
* `disabled: 0` names a row that DOES start and must be checked. A `!!js`
|
|
273
|
-
* expression is an object and therefore truthy, which skips exactly the rows
|
|
274
|
-
* whose value only the loader context can decide. Skipping those trades a
|
|
275
|
-
* missed name for the failure that matters more: calling a usable preset
|
|
276
|
-
* broken makes it unselectable and uncopyable, which is worse than reporting
|
|
277
|
-
* the same stale row at mount time as before.
|
|
278
|
-
*
|
|
279
|
-
* Shape is the caller's precondition: {@link entryListProblem} has already
|
|
280
|
-
* proven every row is a map carrying a `name` string, and groups recurse the
|
|
281
|
-
* same way it does.
|
|
282
|
-
* @param rows - the parsed composition rows.
|
|
283
|
-
* @param presetBase - directory URL a preset-relative specifier resolves against.
|
|
284
|
-
* @param harnessBase - base URL a package name resolves against.
|
|
285
|
-
* @param at - row-path prefix for nested diagnostics, empty at the top level.
|
|
286
|
-
* @returns one entry per unresolvable row, in composition order.
|
|
287
|
-
*/
|
|
288
|
-
async function unresolvableRows(rows, presetBase, harnessBase, resolves, at = "") {
|
|
289
|
-
const found = [];
|
|
290
|
-
for (const [index, entry] of rows.entries()) {
|
|
291
|
-
const row = entry;
|
|
292
|
-
if (Boolean(row.disabled)) continue;
|
|
293
|
-
const positional = at === "" ? `row ${String(index + 1)}` : `${at} row ${String(index + 1)}`;
|
|
294
|
-
if (row.group === true) {
|
|
295
|
-
found.push(...await unresolvableRows(row.config, presetBase, harnessBase, resolves, positional));
|
|
296
|
-
continue;
|
|
297
|
-
}
|
|
298
|
-
if (await rowResolves(classifyRowSpecifier(row.name), presetBase, harnessBase, resolves)) continue;
|
|
299
|
-
const label = typeof row.id === "string" && row.id !== "" ? `row "${row.id}"` : positional;
|
|
300
|
-
found.push({
|
|
301
|
-
label,
|
|
302
|
-
name: row.name
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
return found;
|
|
306
|
-
}
|
|
307
|
-
/**
|
|
308
|
-
* Why the composition at `path` cannot mount, or undefined when it looks
|
|
309
|
-
* loadable. Parsed with the loader's own YAML dialect ({@link entryListSchema},
|
|
310
|
-
* the one carrying `!!js`), so health can never call a composition broken
|
|
311
|
-
* that the loader would accept.
|
|
312
|
-
* A package-lookup failure becomes this composition's broken reason, so one
|
|
313
|
-
* preset cannot abort discovery of the rest of the roster.
|
|
314
|
-
* @param path - absolute path of the composition file.
|
|
315
|
-
* @param harnessBase - base URL a row's package name resolves against.
|
|
316
|
-
* @returns one human-readable reason, or undefined when the file is loadable.
|
|
317
|
-
*/
|
|
318
|
-
async function compositionProblem(path, harnessBase, resolves) {
|
|
319
|
-
let content;
|
|
320
|
-
try {
|
|
321
|
-
content = await readFile(path, "utf8");
|
|
322
|
-
} catch {
|
|
323
|
-
return `the composition file ${COMPOSITION_FILE} cannot be read`;
|
|
324
|
-
}
|
|
325
|
-
let rows;
|
|
326
|
-
try {
|
|
327
|
-
rows = load(content, { schema: entryListSchema });
|
|
328
|
-
} catch (error) {
|
|
329
|
-
return `the composition is not valid YAML: ${(error instanceof Error ? error.message : String(error)).replace(/\n[\s\S]*$/, "")}`;
|
|
330
|
-
}
|
|
331
|
-
const shape = entryListProblem(rows);
|
|
332
|
-
if (shape !== void 0) return shape;
|
|
333
|
-
const presetBase = new URL(".", pathToFileURL(path)).href;
|
|
334
|
-
let unresolvable;
|
|
335
|
-
try {
|
|
336
|
-
unresolvable = await unresolvableRows(rows, presetBase, harnessBase, resolves);
|
|
337
|
-
} catch (error) {
|
|
338
|
-
return `the composition's plugins cannot be checked: ${(error instanceof Error ? error.message : String(error)).replace(/\n[\s\S]*$/, "")}`;
|
|
339
|
-
}
|
|
340
|
-
const [first] = unresolvable;
|
|
341
|
-
if (first === void 0) return void 0;
|
|
342
|
-
if (unresolvable.length === 1) return `${first.label} names a plugin that cannot be resolved: ${first.name}`;
|
|
343
|
-
return `${String(unresolvable.length)} rows name plugins that cannot be resolved:\n` + unresolvable.map((row) => `- ${row.label}: ${row.name}`).join("\n");
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Whether `path` names an existing regular file.
|
|
347
|
-
* @param path - absolute path to test.
|
|
348
|
-
* @returns true when the path resolves to a file.
|
|
349
|
-
*/
|
|
350
|
-
async function isFile(path) {
|
|
351
|
-
try {
|
|
352
|
-
return (await stat(path)).isFile();
|
|
353
|
-
} catch {
|
|
354
|
-
return false;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
/**
|
|
358
|
-
* Scan one root for preset directories.
|
|
359
|
-
*
|
|
360
|
-
* An absent root yields no presets rather than throwing: the user root does
|
|
361
|
-
* not exist until the first locally authored preset, and naming a default
|
|
362
|
-
* that no root supplies already fails loud at resolution.
|
|
363
|
-
*
|
|
364
|
-
* Every directory whose name is a usable preset id is a roster row — broken
|
|
365
|
-
* when its composition is missing or unloadable. A directory named outside
|
|
366
|
-
* {@link PRESET_ID} is skipped instead: no copy could ever claim that name,
|
|
367
|
-
* so it blocks nothing, and reporting `.DS_Store`-grade residue as broken
|
|
368
|
-
* presets would teach users to ignore the marker.
|
|
369
|
-
* @param root - the directory and the trust its presets inherit.
|
|
370
|
-
* @param harnessBase - base URL a row's package name resolves against; the
|
|
371
|
-
* caller's own `ctx.baseUrl`, which is where the installed harness lives.
|
|
372
|
-
* @param resolves - package-presence lookup for the active runtime.
|
|
373
|
-
* @returns the root's presets ordered by id.
|
|
374
|
-
*/
|
|
375
|
-
async function scanRoot(root, harnessBase, resolves = packageInstalled) {
|
|
376
|
-
const dir = resolve(expandHomePath(root.path));
|
|
377
|
-
let children;
|
|
378
|
-
try {
|
|
379
|
-
children = await readdir(dir, { withFileTypes: true });
|
|
380
|
-
} catch (error) {
|
|
381
|
-
if (error.code === "ENOENT") return [];
|
|
382
|
-
throw new Error(`agent-presets: cannot read preset root ${dir}: ${String(error)}`, { cause: error });
|
|
383
|
-
}
|
|
384
|
-
const found = [];
|
|
385
|
-
for (const child of children) {
|
|
386
|
-
if (!child.isDirectory() || !PRESET_ID.test(child.name)) continue;
|
|
387
|
-
const directory = join(dir, child.name);
|
|
388
|
-
const path = join(directory, COMPOSITION_FILE);
|
|
389
|
-
const broken = await isFile(path) ? await compositionProblem(path, harnessBase, resolves) : `the composition file ${COMPOSITION_FILE} is missing — the directory still occupies the id; delete it or restore the file`;
|
|
390
|
-
const metadata = await readPresetMetadata(directory);
|
|
391
|
-
found.push({
|
|
392
|
-
id: child.name,
|
|
393
|
-
trust: root.trust,
|
|
394
|
-
path,
|
|
395
|
-
...metadata,
|
|
396
|
-
...broken === void 0 ? {} : { broken }
|
|
397
|
-
});
|
|
398
|
-
}
|
|
399
|
-
return found.sort((left, right) => {
|
|
400
|
-
const byOrder = (left.order ?? Number.POSITIVE_INFINITY) - (right.order ?? Number.POSITIVE_INFINITY);
|
|
401
|
-
return byOrder === 0 ? left.id.localeCompare(right.id) : byOrder;
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* Scan every root in precedence order.
|
|
406
|
-
* @param roots - roots in precedence order; an earlier root wins a duplicate id.
|
|
407
|
-
* @param harnessBase - base URL a row's package name resolves against.
|
|
408
|
-
* @param resolves - package-presence lookup for the active runtime.
|
|
409
|
-
* @returns every discovered preset, first-root-wins per id.
|
|
410
|
-
*/
|
|
411
|
-
async function discoverPresets(roots, harnessBase, resolves = packageInstalled) {
|
|
412
|
-
const byId = /* @__PURE__ */ new Map();
|
|
413
|
-
for (const root of roots) for (const preset of await scanRoot(root, harnessBase, resolves)) {
|
|
414
|
-
if (byId.has(preset.id)) continue;
|
|
415
|
-
byId.set(preset.id, preset);
|
|
416
|
-
}
|
|
417
|
-
return [...byId.values()];
|
|
418
|
-
}
|
|
419
|
-
//#endregion
|
|
420
|
-
//#region lib/types/authoring.js
|
|
421
|
-
/**
|
|
422
|
-
* Copying, reading, and deleting locally authored presets.
|
|
423
|
-
*
|
|
424
|
-
* Authoring is confined to a `user` root: the shipped `.system` set is part of
|
|
425
|
-
* the deployment, and letting a browser rewrite it would turn "reset to a known
|
|
426
|
-
* preset" into something the same caller could have broken first.
|
|
427
|
-
*
|
|
428
|
-
* The only authoring write is a whole-directory copy of an existing preset.
|
|
429
|
-
* No caller supplies composition text: the inputs are ids the host resolves
|
|
430
|
-
* against its own roots plus an optional display name, so authoring grants no
|
|
431
|
-
* capability the copied preset did not already carry.
|
|
432
|
-
* @module @deepseek-ai/dsh-agent-presets/authoring
|
|
433
|
-
*/
|
|
434
|
-
/**
|
|
435
|
-
* Refuse one authoring request the deployment does not allow.
|
|
436
|
-
* @param presetId - what the caller tried to change, for the diagnostic.
|
|
437
|
-
* @param reason - why authoring is refused.
|
|
438
|
-
* @returns the failure to throw.
|
|
439
|
-
*/
|
|
440
|
-
function notWritable(presetId, reason) {
|
|
441
|
-
return new RemoteError("agent-preset/read-only", `agent-presets: preset "${presetId}" cannot be written: ${reason}`, {
|
|
442
|
-
agentPreset: presetId,
|
|
443
|
-
reason
|
|
444
|
-
});
|
|
445
|
-
}
|
|
446
|
-
/**
|
|
447
|
-
* Refuse a copy onto an id something already occupies. Both the roster check
|
|
448
|
-
* and the on-disk check answer with it, so a taken id reads the same either way.
|
|
449
|
-
* @param presetId - the id that is already taken.
|
|
450
|
-
* @returns the failure to throw.
|
|
451
|
-
*/
|
|
452
|
-
function presetExists(presetId) {
|
|
453
|
-
const reason = `preset "${presetId}" already exists — a copy never overwrites; delete the existing preset first or choose another id`;
|
|
454
|
-
return new RemoteError("agent-preset/invalid", `agent-presets: ${reason}`, {
|
|
455
|
-
agentPreset: presetId,
|
|
456
|
-
reason
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* The root locally authored presets are written to.
|
|
461
|
-
* @param roots - the configured roots in precedence order.
|
|
462
|
-
* @param presetId - the preset the caller is authoring, named by the refusal.
|
|
463
|
-
* @returns the absolute path of the first `user` root.
|
|
464
|
-
* @throws when the deployment configured no writable root.
|
|
465
|
-
*/
|
|
466
|
-
function writableRoot(roots, presetId) {
|
|
467
|
-
const root = roots.find((candidate) => candidate.trust === "user");
|
|
468
|
-
if (root === void 0) throw notWritable(presetId, "this deployment configures no user-writable preset root");
|
|
469
|
-
return resolve(expandHomePath(root.path));
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* Read one preset's composition text.
|
|
473
|
-
* @param preset - the resolved preset.
|
|
474
|
-
* @returns the file's contents.
|
|
475
|
-
*/
|
|
476
|
-
async function readComposition(preset) {
|
|
477
|
-
return await readFile(preset.path, "utf8");
|
|
478
|
-
}
|
|
479
|
-
/** Whether anything occupies the path (cp's own errorOnExist backstops races). */
|
|
480
|
-
async function occupied(path) {
|
|
481
|
-
let present = true;
|
|
482
|
-
try {
|
|
483
|
-
await stat(path);
|
|
484
|
-
} catch {
|
|
485
|
-
present = false;
|
|
486
|
-
}
|
|
487
|
-
return present;
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* Re-tighten a copied tree to owner-only. A shipped preset is world-readable
|
|
491
|
-
* in its install and `cp` preserves that; the copy carries the same weight as
|
|
492
|
-
* the settings document beside it, so group/other access is stripped. A
|
|
493
|
-
* file's owner-execute bit survives — a preset may ship runnable helpers.
|
|
494
|
-
*/
|
|
495
|
-
async function tightenModes(dir) {
|
|
496
|
-
await chmod(dir, 448);
|
|
497
|
-
for (const entry of await readdir(dir, { withFileTypes: true })) {
|
|
498
|
-
const target = join(dir, entry.name);
|
|
499
|
-
if (entry.isDirectory()) await tightenModes(target);
|
|
500
|
-
else
|
|
501
|
-
/* v8 ignore next -- Windows exposes no POSIX owner-execute bit; the POSIX lane covers both file modes. */
|
|
502
|
-
await chmod(target, ((await stat(target)).mode & 64) === 0 ? 384 : 448);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
/**
|
|
506
|
-
* Create a preset by copying an existing one's whole directory.
|
|
507
|
-
*
|
|
508
|
-
* The copy carries everything the source directory holds — composition,
|
|
509
|
-
* metadata, skill directories, assets — because a preset is its directory,
|
|
510
|
-
* not one file. Symlinks are dereferenced so the copy is self-contained
|
|
511
|
-
* rather than a set of links back into the install it was copied from.
|
|
512
|
-
*
|
|
513
|
-
* The copied metadata is then rewritten: the source's description is kept
|
|
514
|
-
* (the file is the author's to edit afterwards), but its name and roster
|
|
515
|
-
* `order` are not — a copy presenting itself identically to its source, or
|
|
516
|
-
* sorted into the shipped set's declared order, would make the roster stop
|
|
517
|
-
* distinguishing them. With no name given and no description to keep, the
|
|
518
|
-
* file is removed so the copy publishes nothing rather than a blank.
|
|
519
|
-
* @param roots - the configured roots; the first `user` one receives the copy.
|
|
520
|
-
* @param source - the resolved preset the copy starts from.
|
|
521
|
-
* @param id - the new preset's id, which becomes its directory name.
|
|
522
|
-
* @param name - display name for the copy; omitted falls back to the id.
|
|
523
|
-
* @returns the absolute path of the new preset directory.
|
|
524
|
-
* @throws when the id is unusable or already occupied on disk, or the
|
|
525
|
-
* deployment configures no writable root.
|
|
526
|
-
*/
|
|
527
|
-
async function copyComposition(roots, source, id, name) {
|
|
528
|
-
if (!PRESET_ID.test(id)) {
|
|
529
|
-
const reason = `preset id ${JSON.stringify(id)} must match ${String(PRESET_ID)} — the id is a directory name, so anything else could escape the preset root`;
|
|
530
|
-
throw new RemoteError("agent-preset/invalid", `agent-presets: ${reason}`, {
|
|
531
|
-
agentPreset: id,
|
|
532
|
-
reason
|
|
533
|
-
});
|
|
534
|
-
}
|
|
535
|
-
const dir = join(writableRoot(roots, id), id);
|
|
536
|
-
if (await occupied(dir)) throw presetExists(id);
|
|
537
|
-
try {
|
|
538
|
-
await cp(dirname(source.path), dir, {
|
|
539
|
-
recursive: true,
|
|
540
|
-
dereference: true,
|
|
541
|
-
force: false,
|
|
542
|
-
errorOnExist: true
|
|
543
|
-
});
|
|
544
|
-
await tightenModes(dir);
|
|
545
|
-
const rendered = renderPresetMetadata({
|
|
546
|
-
...name === void 0 ? {} : { name },
|
|
547
|
-
...source.description === void 0 ? {} : { description: source.description }
|
|
548
|
-
});
|
|
549
|
-
const metadataPath = join(dir, METADATA_FILE);
|
|
550
|
-
if (rendered === void 0) await rm(metadataPath, { force: true });
|
|
551
|
-
else await writeFileAtomic(metadataPath, rendered, {
|
|
552
|
-
mode: 384,
|
|
553
|
-
dirMode: 448
|
|
554
|
-
});
|
|
555
|
-
} catch (error) {
|
|
556
|
-
await rm(dir, {
|
|
557
|
-
recursive: true,
|
|
558
|
-
force: true
|
|
559
|
-
});
|
|
560
|
-
throw error;
|
|
561
|
-
}
|
|
562
|
-
return dir;
|
|
563
|
-
}
|
|
564
|
-
/**
|
|
565
|
-
* Delete a locally authored preset.
|
|
566
|
-
*
|
|
567
|
-
* A shipped preset is refused: it belongs to the deployment. A preset a live
|
|
568
|
-
* session mounted is NOT refused — the composition was read at creation and is
|
|
569
|
-
* never re-read, so that session keeps running exactly as it was.
|
|
570
|
-
* @param roots - the configured roots.
|
|
571
|
-
* @param preset - the resolved preset to remove.
|
|
572
|
-
* @throws when the preset ships with the deployment or lies outside the writable root.
|
|
573
|
-
*/
|
|
574
|
-
async function deleteComposition(roots, preset) {
|
|
575
|
-
if (preset.trust !== "user") throw notWritable(preset.id, "it ships with the deployment");
|
|
576
|
-
const dir = join(writableRoot(roots, preset.id), preset.id);
|
|
577
|
-
if (!isAbsolute(preset.path) || !preset.path.startsWith(dir)) throw notWritable(preset.id, "it does not live under the writable preset root");
|
|
578
|
-
await rm(dir, {
|
|
579
|
-
recursive: true,
|
|
580
|
-
force: true
|
|
581
|
-
});
|
|
582
|
-
}
|
|
583
|
-
//#endregion
|
|
584
|
-
//#region lib/types/mount.js
|
|
585
|
-
/**
|
|
586
|
-
* Mount one preset composition under an agent's scope context, then prove the
|
|
587
|
-
* result is usable before the agent is published.
|
|
588
|
-
*
|
|
589
|
-
* The scope context is what makes the composition per-session: entry contexts
|
|
590
|
-
* chain to the context the subtree was plugged into, so every `ctx.tools`
|
|
591
|
-
* and `ctx.systemPrompt` registration inside the preset files into that
|
|
592
|
-
* agent's layer and unwinds with it. Two guards make that safe. A row that
|
|
593
|
-
* never reached a usable state is rejected, because a directly-plugged subtree
|
|
594
|
-
* is absent from `ctx.loader.entries()` and no boot audit covers it. A row that
|
|
595
|
-
* published a service into the ROOT realm is rejected, because such a service
|
|
596
|
-
* is process-global rather than per-session and the second session mounting the
|
|
597
|
-
* same preset collides with the first.
|
|
598
|
-
* @module @deepseek-ai/dsh-agent-presets/mount
|
|
599
|
-
*/
|
|
600
|
-
/**
|
|
601
|
-
* Subtrees captured by config identity. A subtree plugged directly (rather than
|
|
602
|
-
* created as a loader entry) never links itself to an `Entry`, so this is the
|
|
603
|
-
* only handle to the rows it created; config objects are minted per mount, so
|
|
604
|
-
* concurrent mounts cannot collide.
|
|
605
|
-
*/
|
|
606
|
-
const mounted = /* @__PURE__ */ new WeakMap();
|
|
607
|
-
/**
|
|
608
|
-
* The base URL bare specifiers resolve against, per pending mount, keyed by the
|
|
609
|
-
* same config object. Recorded before the subtree is plugged, because `Include`
|
|
610
|
-
* rewrites its own context's `baseUrl` to the composition's directory and the
|
|
611
|
-
* pre-mount value is the only handle on where the harness itself lives.
|
|
612
|
-
*/
|
|
613
|
-
const harnessBase = /* @__PURE__ */ new WeakMap();
|
|
614
|
-
/**
|
|
615
|
-
* Include subclass that publishes its tree and fiber for the audit, and never
|
|
616
|
-
* writes to the file it read.
|
|
617
|
-
*/
|
|
618
|
-
var PresetTree = class extends Include {
|
|
619
|
-
constructor(ctx, config) {
|
|
620
|
-
super(ctx, config);
|
|
621
|
-
const owner = this.ctx.fiber.entry;
|
|
622
|
-
if (owner?.subtree === this) delete owner.subtree;
|
|
623
|
-
mounted.set(config, {
|
|
624
|
-
tree: this,
|
|
625
|
-
fiber: ctx.fiber
|
|
626
|
-
});
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
* Resolve a bare specifier from the harness rather than from the preset.
|
|
630
|
-
*
|
|
631
|
-
* `EntryTree.import()` resolves against the tree's own `baseUrl`, which
|
|
632
|
-
* `Include` sets to the composition's directory. That is right for a
|
|
633
|
-
* relative specifier — a preset's own files travel with it — and wrong for
|
|
634
|
-
* a package name: a locally authored preset lives under the user's home,
|
|
635
|
-
* where Node's upward `node_modules` walk never reaches the harness's own
|
|
636
|
-
* dependencies, so every `@deepseek-ai/dsh-*` row would fail to import. The
|
|
637
|
-
* mount records the host composition's base instead, which is inside the
|
|
638
|
-
* installed harness, and bare names resolve from there. An absolute
|
|
639
|
-
* filesystem path names neither base and becomes a file URL before Node's
|
|
640
|
-
* ESM loader receives it, which is required for drive-letter paths on
|
|
641
|
-
* Windows.
|
|
642
|
-
*
|
|
643
|
-
* {@link classifyRowSpecifier} makes that split, so discovery's health check
|
|
644
|
-
* resolves every row from the same base this import uses.
|
|
645
|
-
* @param name - the module specifier from the row.
|
|
646
|
-
* @param getOuterStack - the loader's stack composer for import diagnostics.
|
|
647
|
-
* @returns the imported module, or the `cordis:` builtin.
|
|
648
|
-
*/
|
|
649
|
-
import(name, getOuterStack) {
|
|
650
|
-
const row = classifyRowSpecifier(name);
|
|
651
|
-
const base = harnessBase.get(this.config);
|
|
652
|
-
/* v8 ignore next -- every PresetTree is constructed by `mountPreset`, which records the base first */
|
|
653
|
-
if (base === void 0) return super.import(row.specifier, getOuterStack);
|
|
654
|
-
if (row.kind === "builtin" || row.kind === "preset") return super.import(row.specifier, getOuterStack);
|
|
655
|
-
const internal = this.ctx.loader.internal;
|
|
656
|
-
/* v8 ignore next -- Node always supplies the internal module loader; the branch keeps a
|
|
657
|
-
hypothetical embedder from losing the row's name in a resolution error. */
|
|
658
|
-
if (internal === void 0) return super.import(row.specifier, getOuterStack);
|
|
659
|
-
return internal.import(row.specifier, base, {});
|
|
660
|
-
}
|
|
661
|
-
/**
|
|
662
|
-
* A preset is an input, never a persistence target.
|
|
663
|
-
*
|
|
664
|
-
* The Loader writes a tree back through this method whenever it decides the
|
|
665
|
-
* config changed — a plugin self-disposing is enough, and tearing an agent
|
|
666
|
-
* down disposes its whole subtree. Inherited, that rewrites the preset file
|
|
667
|
-
* with whatever the dying tree held, which in practice means truncating a
|
|
668
|
-
* shipped composition to `[]` the first time a session ends. Persisting a
|
|
669
|
-
* preset is also meaningless: nothing here is user state, and the same file
|
|
670
|
-
* backs every session that names it.
|
|
671
|
-
*
|
|
672
|
-
* Dropping the write drops the `loader/config-update` the inherited method
|
|
673
|
-
* emits with it. No consumer observes one for a preset subtree, and a
|
|
674
|
-
* future "edit your preset while it runs" flow needs a deliberate
|
|
675
|
-
* persistence path rather than this method's return.
|
|
676
|
-
*/
|
|
677
|
-
write() {}
|
|
678
|
-
};
|
|
679
|
-
const mounts = /* @__PURE__ */ new Set();
|
|
680
|
-
/**
|
|
681
|
-
* Drop every record whose subtree is gone.
|
|
682
|
-
*
|
|
683
|
-
* Records are pruned by observation rather than through a disposal hook
|
|
684
|
-
* because a subtree can be torn down by its owning agent, by a failed mount, or
|
|
685
|
-
* by the whole tree unloading, and a cleared `uid` is what all three share.
|
|
686
|
-
*
|
|
687
|
-
* Pruning therefore has to happen on a path this module owns. Reading is one
|
|
688
|
-
* such path, but not a reliable one: the only production reader is the
|
|
689
|
-
* invariant companion's service listener, and `dsh-invariants` is a
|
|
690
|
-
* development composition — a shipped host never loads it. Mounting is the
|
|
691
|
-
* other, and it is the one every session takes, which bounds the set at one
|
|
692
|
-
* generation of dead records rather than one per session ever composed. Each
|
|
693
|
-
* record would otherwise retain its whole disposed subtree: the fiber holds
|
|
694
|
-
* its config, and that config is the key its `EntryTree` is stored under.
|
|
695
|
-
*/
|
|
696
|
-
function pruneDisposedMounts() {
|
|
697
|
-
for (const mount of mounts) if (mount.fiber.uid === null) mounts.delete(mount);
|
|
698
|
-
}
|
|
699
|
-
/**
|
|
700
|
-
* Every preset composition still installed, pruning fibers disposed since the
|
|
701
|
-
* last read.
|
|
702
|
-
*
|
|
703
|
-
* The record set is module state and therefore spans every Cordis runtime in
|
|
704
|
-
* the process; a reader that serves one runtime passes that runtime's root
|
|
705
|
-
* fiber so another runtime mounting the same preset id (a second embedded
|
|
706
|
-
* app, a test's second harness) never answers for it.
|
|
707
|
-
* @param within - when present, only mounts inside this fiber's subtree.
|
|
708
|
-
* @returns the live mounts.
|
|
709
|
-
*/
|
|
710
|
-
function livePresetMounts(within) {
|
|
711
|
-
pruneDisposedMounts();
|
|
712
|
-
const all = [...mounts];
|
|
713
|
-
return within === void 0 ? all : all.filter((mount) => withinFiber(mount.fiber, within));
|
|
714
|
-
}
|
|
715
|
-
/**
|
|
716
|
-
* Whether `fiber` is `root` itself or is mounted anywhere inside its subtree.
|
|
717
|
-
*
|
|
718
|
-
* Membership is object identity. `uid` looks like a cheaper key but is a
|
|
719
|
-
* per-registry counter, so fibers in two different roots collide on it and a
|
|
720
|
-
* subtree in one runtime would be blamed for a service published in another.
|
|
721
|
-
* @param fiber - the fiber to locate.
|
|
722
|
-
* @param root - the subtree root to test membership against.
|
|
723
|
-
* @returns true when `fiber` belongs to `root`'s subtree.
|
|
724
|
-
*/
|
|
725
|
-
function withinFiber(fiber, root) {
|
|
726
|
-
let current = fiber;
|
|
727
|
-
while (true) {
|
|
728
|
-
if (current === root) return true;
|
|
729
|
-
const parent = current.parent.fiber;
|
|
730
|
-
if (parent === current) return false;
|
|
731
|
-
current = parent;
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
/**
|
|
735
|
-
* Service names the mounted subtree published into the root realm.
|
|
736
|
-
*
|
|
737
|
-
* A provider without an `isolate` realm stores its implementation under the
|
|
738
|
-
* root's symbol for that name, which is exactly the comparison below; a
|
|
739
|
-
* provider inside an `isolate` realm stores under a realm-private symbol and
|
|
740
|
-
* is correctly absent here.
|
|
741
|
-
* @param ctx - any context of the runtime whose service store is inspected.
|
|
742
|
-
* @param mount - the mounted subtree's fiber.
|
|
743
|
-
* @returns the leaked service names in lexical order.
|
|
744
|
-
*/
|
|
745
|
-
function leakedServices(ctx, mount) {
|
|
746
|
-
const store = ctx.reflect.store;
|
|
747
|
-
const rootIsolate = ctx.root[Context.isolate];
|
|
748
|
-
const leaked = [];
|
|
749
|
-
for (const key of Object.getOwnPropertySymbols(store)) {
|
|
750
|
-
const impl = store[key];
|
|
751
|
-
/* v8 ignore next -- cordis deletes a store slot on disposal rather than
|
|
752
|
-
clearing it, so an own symbol always resolves; the guard exists only
|
|
753
|
-
because the store's index signature is optional. */
|
|
754
|
-
if (impl === void 0) continue;
|
|
755
|
-
if (!withinFiber(impl.fiber, mount)) continue;
|
|
756
|
-
if (rootIsolate[impl.name] === key) leaked.push(impl.name);
|
|
757
|
-
}
|
|
758
|
-
return leaked.sort((left, right) => left.localeCompare(right));
|
|
759
|
-
}
|
|
760
|
-
/**
|
|
761
|
-
* The standing composition one agent is joined to.
|
|
762
|
-
*
|
|
763
|
-
* The agent's own key is parented to its preset's standing key, so the mount
|
|
764
|
-
* is found by matching that parent rather than by walking up from the agent —
|
|
765
|
-
* the mount is not under the agent's fiber. An agent that joined no preset —
|
|
766
|
-
* a deployment composing no roster, or a child agent before its join — has no
|
|
767
|
-
* parent link and resolves to undefined.
|
|
768
|
-
* @param agentCtx - the agent's scope context.
|
|
769
|
-
* @returns the mount the agent joined, or undefined when it joined none.
|
|
770
|
-
*/
|
|
771
|
-
function standingMountFor(agentCtx) {
|
|
772
|
-
const agentKey = scopeOf(agentCtx);
|
|
773
|
-
if (agentKey === void 0) return void 0;
|
|
774
|
-
const standingKey = scopeParentOf(agentKey);
|
|
775
|
-
if (standingKey === void 0) return void 0;
|
|
776
|
-
return livePresetMounts().find((candidate) => candidate.key === standingKey);
|
|
777
|
-
}
|
|
778
|
-
/**
|
|
779
|
-
* One agent's instance of a service its preset mounted.
|
|
780
|
-
*
|
|
781
|
-
* A preset publishes a service behind an `isolate` realm so two sessions
|
|
782
|
-
* cannot collide, and an entry-local realm is invisible to everything outside
|
|
783
|
-
* the group — including the agent's own scope context and the host. That is
|
|
784
|
-
* right for the rows inside the group and wrong for one caller: a request that
|
|
785
|
-
* is ABOUT a session but arrives from outside it, which is every browser RPC
|
|
786
|
-
* the api-proxy serves.
|
|
787
|
-
*
|
|
788
|
-
* Ownership is the same relation {@link leakedServices} reads, inverted: there
|
|
789
|
-
* it names implementations a subtree published into the ROOT realm, here it
|
|
790
|
-
* names the one this subtree published anywhere. Fiber membership is object
|
|
791
|
-
* identity for the reason stated on {@link withinFiber}.
|
|
792
|
-
*
|
|
793
|
-
* This is READ addressing for a caller that already holds the agent. It is not
|
|
794
|
-
* a general host handle on a session's internals: a host row that `inject`s a
|
|
795
|
-
* service cannot use it, because injection resolves before any session exists
|
|
796
|
-
* and has no agent to key by — such a service belongs on the host plane.
|
|
797
|
-
* @param ctx - any context of the runtime whose service store is inspected.
|
|
798
|
-
* @param agent - the agent whose mounted composition to look inside.
|
|
799
|
-
* @param name - the service name as the preset's rows resolve it.
|
|
800
|
-
* @returns the agent's instance, or undefined when its preset mounts none.
|
|
801
|
-
*/
|
|
802
|
-
function serviceForAgent(ctx, agent, name) {
|
|
803
|
-
const mount = standingMountFor(agent.ctx);
|
|
804
|
-
if (mount === void 0) return void 0;
|
|
805
|
-
const store = ctx.reflect.store;
|
|
806
|
-
for (const key of Object.getOwnPropertySymbols(store)) {
|
|
807
|
-
const impl = store[key];
|
|
808
|
-
/* v8 ignore next -- cordis deletes a store slot on disposal rather than clearing it */
|
|
809
|
-
if (impl === void 0) continue;
|
|
810
|
-
if (impl.name !== name) continue;
|
|
811
|
-
if (withinFiber(impl.fiber, mount.fiber)) return impl.value;
|
|
812
|
-
}
|
|
813
|
-
}
|
|
814
|
-
/**
|
|
815
|
-
* Rows that did not reach a usable state, each rendered as one diagnostic line.
|
|
816
|
-
*
|
|
817
|
-
* Wait for the subtree, then report import failures, activation failures, and
|
|
818
|
-
* rows waiting for services the composition does not supply.
|
|
819
|
-
* @param tree - the mounted subtree.
|
|
820
|
-
* @returns one line per unusable row, empty when every enabled row is usable.
|
|
821
|
-
*/
|
|
822
|
-
async function inactiveRows(tree) {
|
|
823
|
-
await tree.await();
|
|
824
|
-
const lines = [];
|
|
825
|
-
for (const entry of tree.entries()) {
|
|
826
|
-
if (entry.disabled) continue;
|
|
827
|
-
const fiber = entry.fiber;
|
|
828
|
-
if (fiber === void 0) {
|
|
829
|
-
lines.push(`${entry.options.id} (${entry.options.name}): never started`);
|
|
830
|
-
continue;
|
|
831
|
-
}
|
|
832
|
-
try {
|
|
833
|
-
await fiber.await();
|
|
834
|
-
} catch (error) {
|
|
835
|
-
const detail = mountDetail(error);
|
|
836
|
-
lines.push(`${entry.options.id} (${entry.options.name}): ${detail}`);
|
|
837
|
-
continue;
|
|
838
|
-
}
|
|
839
|
-
const missing = Object.keys(fiber.inject).filter((name) => fiber.ctx.get(name) === void 0);
|
|
840
|
-
if (missing.length > 0) lines.push(`${entry.options.id} (${entry.options.name}): waiting for ${missing.join(", ")}`);
|
|
841
|
-
}
|
|
842
|
-
return lines;
|
|
843
|
-
}
|
|
844
|
-
/**
|
|
845
|
-
* The causes of `error` whose detail its own message does not already carry.
|
|
846
|
-
*
|
|
847
|
-
* Aggregate errors carry separate member messages. A wrapper can preserve the
|
|
848
|
-
* aggregate as its cause without including those messages in its own text.
|
|
849
|
-
* @param error - the failure to read branches from.
|
|
850
|
-
* @returns the branches to render beneath `error.message`, possibly empty.
|
|
851
|
-
*/
|
|
852
|
-
function detailBranches(error) {
|
|
853
|
-
if (error instanceof AggregateError) return error.errors;
|
|
854
|
-
return error.cause instanceof AggregateError ? error.cause.errors : [];
|
|
855
|
-
}
|
|
856
|
-
/**
|
|
857
|
-
* The reportable text of a mount failure.
|
|
858
|
-
*
|
|
859
|
-
* A plugin may reject with an aggregate or wrap one as its cause. Include its
|
|
860
|
-
* member messages beneath the row diagnostic so each failure is visible.
|
|
861
|
-
* @param error - the value the mount rejected with.
|
|
862
|
-
* @returns a single-line-per-cause description.
|
|
863
|
-
*/
|
|
864
|
-
function mountDetail(error) {
|
|
865
|
-
if (!(error instanceof Error)) return String(error);
|
|
866
|
-
const branches = detailBranches(error);
|
|
867
|
-
if (branches.length === 0) return error.message;
|
|
868
|
-
return [error.message, ...branches.map((branch) => `- ${mountDetail(branch).replaceAll("\n", "\n ")}`)].join("\n");
|
|
869
|
-
}
|
|
870
|
-
/**
|
|
871
|
-
* Mount `preset` under `agentCtx` and return only once every row is usable.
|
|
872
|
-
*
|
|
873
|
-
* The subtree is owned by `agentCtx`'s fiber, so it unwinds with the agent and
|
|
874
|
-
* the caller receives no disposer. A rejection leaves nothing mounted.
|
|
875
|
-
* @param agentCtx - the agent's scope context, from the agent factory's `setup`.
|
|
876
|
-
* @param preset - the resolved preset to compose the agent from.
|
|
877
|
-
* @throws when `agentCtx` carries no scope, a row is unusable, or a row
|
|
878
|
-
* published a service into the root realm.
|
|
879
|
-
*/
|
|
880
|
-
async function mountPreset(agentCtx, preset) {
|
|
881
|
-
if (scopeOf(agentCtx) === void 0) throw new Error(`agent-presets: refusing to mount preset "${preset.id}" into an unscoped context; its registrations would apply to every agent in the process`);
|
|
882
|
-
const config = { path: pathToFileURL(preset.path).href };
|
|
883
|
-
/* v8 ignore next -- the Loader sets `baseUrl` on the root before any scoped context derives from it */
|
|
884
|
-
if (agentCtx.baseUrl !== void 0) harnessBase.set(config, agentCtx.baseUrl);
|
|
885
|
-
pruneDisposedMounts();
|
|
886
|
-
const handle = agentCtx.plugin(PresetTree, config);
|
|
887
|
-
try {
|
|
888
|
-
await handle.await();
|
|
889
|
-
const subtree = mounted.get(config);
|
|
890
|
-
/* v8 ignore next -- the subclass constructor runs before `await()` settles for every mounted tree */
|
|
891
|
-
if (subtree === void 0) throw new Error("mounted subtree did not publish its entry tree");
|
|
892
|
-
const { tree, fiber } = subtree;
|
|
893
|
-
const unusable = await inactiveRows(tree);
|
|
894
|
-
if (unusable.length > 0) throw new Error(`${String(unusable.length)} row(s) did not activate:\n${unusable.join("\n")}`);
|
|
895
|
-
const leaked = leakedServices(agentCtx, fiber);
|
|
896
|
-
if (leaked.length > 0) throw new Error(`row(s) published process-global service(s) [${leaked.join(", ")}]; a preset service must sit behind an \`isolate\` realm or move to the host composition`);
|
|
897
|
-
mounts.add({
|
|
898
|
-
presetId: preset.id,
|
|
899
|
-
fiber,
|
|
900
|
-
tree,
|
|
901
|
-
key: scopeOf(agentCtx)
|
|
902
|
-
});
|
|
903
|
-
} catch (error) {
|
|
904
|
-
try {
|
|
905
|
-
await handle.dispose();
|
|
906
|
-
} catch {}
|
|
907
|
-
const reason = `${mountDetail(error)} (${preset.path})`;
|
|
908
|
-
throw new RemoteError("agent-preset/invalid", `agent-presets: preset "${preset.id}" failed to mount: ${reason}`, {
|
|
909
|
-
agentPreset: preset.id,
|
|
910
|
-
reason
|
|
911
|
-
}, { cause: error });
|
|
912
|
-
}
|
|
913
|
-
}
|
|
914
|
-
//#endregion
|
|
915
|
-
//#region lib/types/composition-inventory.js
|
|
916
|
-
/**
|
|
917
|
-
* Structured composition reads for plugin-listing surfaces: the plugin rows
|
|
918
|
-
* each preset names, with each row's effective enablement. A preset with a
|
|
919
|
-
* live standing mount answers from that mount's Loader entries — evaluated
|
|
920
|
-
* `disabled`, real root-fiber states; a preset no session has composed since
|
|
921
|
-
* boot answers from its composition file, with `!!js` disabled expressions
|
|
922
|
-
* evaluated through the caller-supplied Loader evaluator so the file answer
|
|
923
|
-
* matches the decision a mount on this host would make. A row whose
|
|
924
|
-
* expression the evaluator refuses stays `'conditional'`.
|
|
925
|
-
* @module @deepseek-ai/dsh-agent-presets/composition-inventory
|
|
926
|
-
*/
|
|
927
|
-
/**
|
|
928
|
-
* One `disabled` node's contribution to effective enablement, mirroring the
|
|
929
|
-
* Loader's own reading: a `!!js` expression is asked of the evaluator — a
|
|
930
|
-
* refusal (throw) leaves the decision to a mount — and anything else disables
|
|
931
|
-
* exactly when `Boolean(value)` does.
|
|
932
|
-
* @param value - the raw `disabled` node of one composition row.
|
|
933
|
-
* @param evaluateExpression - the Loader-context evaluator for `!!js` nodes.
|
|
934
|
-
* @returns true (disabled), false (enabled), or `'conditional'`.
|
|
935
|
-
*/
|
|
936
|
-
function disabledContribution(value, evaluateExpression) {
|
|
937
|
-
if (isJsExpr(value)) try {
|
|
938
|
-
return Boolean(evaluateExpression(value.__jsExpr));
|
|
939
|
-
} catch {
|
|
940
|
-
return "conditional";
|
|
941
|
-
}
|
|
942
|
-
return Boolean(value);
|
|
943
|
-
}
|
|
944
|
-
/**
|
|
945
|
-
* Combine an ancestor group's disabled state with a row's own, the way the
|
|
946
|
-
* Loader walks owning groups: any literal true disables, otherwise any
|
|
947
|
-
* expression leaves the decision to a mount.
|
|
948
|
-
* @param outer - the combined ancestor contribution.
|
|
949
|
-
* @param own - this row's contribution.
|
|
950
|
-
* @returns the row's effective disabled state.
|
|
951
|
-
*/
|
|
952
|
-
function combineDisabled(outer, own) {
|
|
953
|
-
if (outer === true || own === true) return true;
|
|
954
|
-
if (outer === "conditional" || own === "conditional") return "conditional";
|
|
955
|
-
return false;
|
|
956
|
-
}
|
|
957
|
-
/**
|
|
958
|
-
* Flatten one parsed row list into plugin rows. Group rows are structural —
|
|
959
|
-
* the Loader reports a group entry as always enabled and lets children
|
|
960
|
-
* inherit its `disabled` — so only their children are emitted.
|
|
961
|
-
* @param rows - the parsed rows, shape-checked by the caller.
|
|
962
|
-
* @param outerDisabled - the combined ancestor-group disabled state.
|
|
963
|
-
* @param evaluateExpression - the Loader-context evaluator for `!!js` nodes.
|
|
964
|
-
* @param found - the accumulator receiving flattened rows.
|
|
965
|
-
*/
|
|
966
|
-
function flattenRows(rows, outerDisabled, evaluateExpression, found) {
|
|
967
|
-
for (const value of rows) {
|
|
968
|
-
const row = value;
|
|
969
|
-
const disabled = combineDisabled(outerDisabled, disabledContribution(row.disabled, evaluateExpression));
|
|
970
|
-
if (row.group === true) {
|
|
971
|
-
flattenRows(row.config, disabled, evaluateExpression, found);
|
|
972
|
-
continue;
|
|
973
|
-
}
|
|
974
|
-
found.push({
|
|
975
|
-
entryId: typeof row.id === "string" && row.id !== "" ? row.id : null,
|
|
976
|
-
moduleName: row.name,
|
|
977
|
-
enabled: disabled === true ? false : disabled === "conditional" ? "conditional" : true,
|
|
978
|
-
...isJsExpr(row.disabled) ? { condition: row.disabled.__jsExpr } : {}
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
/**
|
|
983
|
-
* Plugin rows of one composition file, for a preset with no live mount.
|
|
984
|
-
*
|
|
985
|
-
* Parsed with the Loader's own dialect ({@link entryListSchema}), so the rows
|
|
986
|
-
* reported are the rows a mount would start from. A file that stopped reading
|
|
987
|
-
* as a composition — discovery judged the preset healthy moments earlier, so
|
|
988
|
-
* only an edit racing this read gets here — answers as broken with the raced
|
|
989
|
-
* reason rather than dropping the rows silently.
|
|
990
|
-
* @param path - absolute path of the composition file.
|
|
991
|
-
* @param evaluateExpression - the Loader-context evaluator for `!!js` nodes.
|
|
992
|
-
* @returns flattened rows in composition order, or why they cannot be read.
|
|
993
|
-
*/
|
|
994
|
-
async function fileComposition(path, evaluateExpression) {
|
|
995
|
-
let rows;
|
|
996
|
-
try {
|
|
997
|
-
rows = load(await readFile(path, "utf8"), { schema: entryListSchema });
|
|
998
|
-
} catch (error) {
|
|
999
|
-
/* v8 ignore next -- fs and js-yaml throw Errors for every failure here; the fallback keeps a hostile value readable */
|
|
1000
|
-
return { broken: error instanceof Error ? error.message : String(error) };
|
|
1001
|
-
}
|
|
1002
|
-
const problem = entryListProblem(rows);
|
|
1003
|
-
if (problem !== void 0) return { broken: problem };
|
|
1004
|
-
const found = [];
|
|
1005
|
-
flattenRows(rows, false, evaluateExpression, found);
|
|
1006
|
-
return { rows: found };
|
|
1007
|
-
}
|
|
1008
|
-
/**
|
|
1009
|
-
* Plugin rows of one live standing composition, in Loader-entry order.
|
|
1010
|
-
* @param tree - the standing mount's entry tree.
|
|
1011
|
-
* @returns rows with the Loader's evaluated enablement and root-fiber states.
|
|
1012
|
-
*/
|
|
1013
|
-
function mountedCompositionRows(tree) {
|
|
1014
|
-
const found = [];
|
|
1015
|
-
for (const entry of tree.entries()) {
|
|
1016
|
-
if (entry.options.group) continue;
|
|
1017
|
-
found.push({
|
|
1018
|
-
entryId: entry.id,
|
|
1019
|
-
moduleName: entry.options.name,
|
|
1020
|
-
enabled: !entry.disabled,
|
|
1021
|
-
...isJsExpr(entry.options.disabled) ? { condition: entry.options.disabled.__jsExpr } : {},
|
|
1022
|
-
...entry.fiber === void 0 ? {} : { fiberState: entry.fiber.state }
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
return found;
|
|
1026
|
-
}
|
|
1027
|
-
//#endregion
|
|
1028
|
-
//#region lib/types/session.js
|
|
1029
|
-
/**
|
|
1030
|
-
* The session-log record of which preset a session actually runs.
|
|
1031
|
-
*
|
|
1032
|
-
* The creation header names the preset a session STARTED with, and it is
|
|
1033
|
-
* deep-frozen because that is a creation fact. A session may still change
|
|
1034
|
-
* preset while it is blank, and the effect of that change outlives the blank
|
|
1035
|
-
* window: the first turn — and every turn after it — runs under the newly
|
|
1036
|
-
* mounted composition. Recording the change is what keeps the log honest, and
|
|
1037
|
-
* it is required outright by the repo's model-visible ⟺ logged rule, since the
|
|
1038
|
-
* preset decides the tool schemas and prompt sections the model sees.
|
|
1039
|
-
*
|
|
1040
|
-
* Reconstruction reads the `agentPreset` Session projection, never the header
|
|
1041
|
-
* alone.
|
|
1042
|
-
* @module @deepseek-ai/dsh-agent-presets/session
|
|
1043
|
-
*/
|
|
1044
|
-
const agentPresetSchema = z$1.union([z$1.string(), z$1.null()]);
|
|
1045
|
-
/** Current Session preset, initialized from its header and advanced by selection events. */
|
|
1046
|
-
const agentPresetProjectionDefinition = {
|
|
1047
|
-
key: "agentPreset",
|
|
1048
|
-
stateSchema: agentPresetSchema,
|
|
1049
|
-
init: (header) => header.agentPreset ?? null,
|
|
1050
|
-
apply: (state, event) => event.type === "agent-preset/selected" ? event.data.agentPreset : state,
|
|
1051
|
-
wire: {
|
|
1052
|
-
viewSchema: agentPresetSchema,
|
|
1053
|
-
view: (state) => state
|
|
1054
|
-
},
|
|
1055
|
-
stateVersion: 1
|
|
1056
|
-
};
|
|
1057
|
-
//#endregion
|
|
1058
|
-
//#region lib/types/index.js
|
|
1059
|
-
/**
|
|
1060
|
-
* Agent presets: each session composes its model-facing plugin set from one
|
|
1061
|
-
* preset `cordis.yml`, mounted ONCE per preset under a standing scope and
|
|
1062
|
-
* joined by every agent that names it.
|
|
1063
|
-
*
|
|
1064
|
-
* The standing mount is what makes a preset one composition rather than one
|
|
1065
|
-
* per session: its plugin instances, tool registrations, prompt sections, and
|
|
1066
|
-
* projection units exist exactly once, keyed per session inside the plugins
|
|
1067
|
-
* themselves (they predate presets and were written for a shared world). An
|
|
1068
|
-
* agent joins by having its scope key parented to the mount's
|
|
1069
|
-
* ({@link bindScopeParent}), which makes the mount's registrations visible to
|
|
1070
|
-
* that agent's views and the mount's listeners receive that agent's events —
|
|
1071
|
-
* and a host reader with no agent at all (a cold transcript read) resolves
|
|
1072
|
-
* the same standing registrations by preset id.
|
|
1073
|
-
*
|
|
1074
|
-
* This package owns the preset vocabulary, filesystem discovery, and the
|
|
1075
|
-
* guarded standing mount. It does not decide when an agent is created — the
|
|
1076
|
-
* agent factory's `setup(agentCtx)` hook is the one supported call site,
|
|
1077
|
-
* because only there is the join installed while the agent is still
|
|
1078
|
-
* unpublished, so a rejected composition rolls the whole creation back.
|
|
1079
|
-
* @module @deepseek-ai/dsh-agent-presets
|
|
1080
|
-
*/
|
|
1081
|
-
var __runInitializers = function(thisArg, initializers, value) {
|
|
1082
|
-
var useValue = arguments.length > 2;
|
|
1083
|
-
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
1084
|
-
return useValue ? value : void 0;
|
|
1085
|
-
};
|
|
1086
|
-
var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
1087
|
-
function accept(f) {
|
|
1088
|
-
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
1089
|
-
return f;
|
|
1090
|
-
}
|
|
1091
|
-
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
1092
|
-
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
1093
|
-
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
1094
|
-
var _, done = false;
|
|
1095
|
-
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
1096
|
-
var context = {};
|
|
1097
|
-
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
1098
|
-
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
1099
|
-
context.addInitializer = function(f) {
|
|
1100
|
-
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
1101
|
-
extraInitializers.push(accept(f || null));
|
|
1102
|
-
};
|
|
1103
|
-
var result = (0, decorators[i])(kind === "accessor" ? {
|
|
1104
|
-
get: descriptor.get,
|
|
1105
|
-
set: descriptor.set
|
|
1106
|
-
} : descriptor[key], context);
|
|
1107
|
-
if (kind === "accessor") {
|
|
1108
|
-
if (result === void 0) continue;
|
|
1109
|
-
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
1110
|
-
if (_ = accept(result.get)) descriptor.get = _;
|
|
1111
|
-
if (_ = accept(result.set)) descriptor.set = _;
|
|
1112
|
-
if (_ = accept(result.init)) initializers.unshift(_);
|
|
1113
|
-
} else if (_ = accept(result)) if (kind === "field") initializers.unshift(_);
|
|
1114
|
-
else descriptor[key] = _;
|
|
1115
|
-
}
|
|
1116
|
-
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
1117
|
-
done = true;
|
|
1118
|
-
};
|
|
1119
|
-
/** Settings namespace carrying the user's preset-picker preference and chosen default. */
|
|
1120
|
-
const SETTINGS_NAMESPACE = "agent-presets";
|
|
1121
|
-
/** Refuse an empty preset id before invoking a domain operation. */
|
|
1122
|
-
function validatePresetId(value, field) {
|
|
1123
|
-
if (value.length === 0) throw new RemoteError("gateway/bad-request", `${field} must be a non-empty string`, {});
|
|
1124
|
-
}
|
|
1125
|
-
/** Runtime schema for the user-writable slice. */
|
|
1126
|
-
const AgentPresetSettingsSchema = z.object({
|
|
1127
|
-
default: z.string(),
|
|
1128
|
-
modeSelectionEnabled: z.boolean()
|
|
1129
|
-
});
|
|
1130
|
-
/**
|
|
1131
|
-
* Registry over the deployment's agent presets.
|
|
1132
|
-
*
|
|
1133
|
-
* Discovery is unmemoized: `list()` and `resolve()` re-read the roots on every
|
|
1134
|
-
* call so a preset authored while the process runs is visible immediately,
|
|
1135
|
-
* and a preset deleted underneath a picker disappears from the next read.
|
|
1136
|
-
*/
|
|
1137
|
-
let AgentPresets = (() => {
|
|
1138
|
-
let _classSuper = TypertRemoteService;
|
|
1139
|
-
let _instanceExtraInitializers = [];
|
|
1140
|
-
let _remoteExportList_decorators;
|
|
1141
|
-
let _readDocument_decorators;
|
|
1142
|
-
let _remoteExportCopy_decorators;
|
|
1143
|
-
let _remoteExportDelete_decorators;
|
|
1144
|
-
let _select_decorators;
|
|
1145
|
-
return class AgentPresets extends _classSuper {
|
|
1146
|
-
static {
|
|
1147
|
-
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1148
|
-
_remoteExportList_decorators = [Remote("list")];
|
|
1149
|
-
_readDocument_decorators = [Remote("read")];
|
|
1150
|
-
_remoteExportCopy_decorators = [Remote("copy")];
|
|
1151
|
-
_remoteExportDelete_decorators = [Remote("deletePreset")];
|
|
1152
|
-
_select_decorators = [Remote("select")];
|
|
1153
|
-
__esDecorate(this, null, _remoteExportList_decorators, {
|
|
1154
|
-
kind: "method",
|
|
1155
|
-
name: "remoteExportList",
|
|
1156
|
-
static: false,
|
|
1157
|
-
private: false,
|
|
1158
|
-
access: {
|
|
1159
|
-
has: (obj) => "remoteExportList" in obj,
|
|
1160
|
-
get: (obj) => obj.remoteExportList
|
|
1161
|
-
},
|
|
1162
|
-
metadata: _metadata
|
|
1163
|
-
}, null, _instanceExtraInitializers);
|
|
1164
|
-
__esDecorate(this, null, _readDocument_decorators, {
|
|
1165
|
-
kind: "method",
|
|
1166
|
-
name: "readDocument",
|
|
1167
|
-
static: false,
|
|
1168
|
-
private: false,
|
|
1169
|
-
access: {
|
|
1170
|
-
has: (obj) => "readDocument" in obj,
|
|
1171
|
-
get: (obj) => obj.readDocument
|
|
1172
|
-
},
|
|
1173
|
-
metadata: _metadata
|
|
1174
|
-
}, null, _instanceExtraInitializers);
|
|
1175
|
-
__esDecorate(this, null, _remoteExportCopy_decorators, {
|
|
1176
|
-
kind: "method",
|
|
1177
|
-
name: "remoteExportCopy",
|
|
1178
|
-
static: false,
|
|
1179
|
-
private: false,
|
|
1180
|
-
access: {
|
|
1181
|
-
has: (obj) => "remoteExportCopy" in obj,
|
|
1182
|
-
get: (obj) => obj.remoteExportCopy
|
|
1183
|
-
},
|
|
1184
|
-
metadata: _metadata
|
|
1185
|
-
}, null, _instanceExtraInitializers);
|
|
1186
|
-
__esDecorate(this, null, _remoteExportDelete_decorators, {
|
|
1187
|
-
kind: "method",
|
|
1188
|
-
name: "remoteExportDelete",
|
|
1189
|
-
static: false,
|
|
1190
|
-
private: false,
|
|
1191
|
-
access: {
|
|
1192
|
-
has: (obj) => "remoteExportDelete" in obj,
|
|
1193
|
-
get: (obj) => obj.remoteExportDelete
|
|
1194
|
-
},
|
|
1195
|
-
metadata: _metadata
|
|
1196
|
-
}, null, _instanceExtraInitializers);
|
|
1197
|
-
__esDecorate(this, null, _select_decorators, {
|
|
1198
|
-
kind: "method",
|
|
1199
|
-
name: "select",
|
|
1200
|
-
static: false,
|
|
1201
|
-
private: false,
|
|
1202
|
-
access: {
|
|
1203
|
-
has: (obj) => "select" in obj,
|
|
1204
|
-
get: (obj) => obj.select
|
|
1205
|
-
},
|
|
1206
|
-
metadata: _metadata
|
|
1207
|
-
}, null, _instanceExtraInitializers);
|
|
1208
|
-
if (_metadata) Object.defineProperty(this, Symbol.metadata, {
|
|
1209
|
-
enumerable: true,
|
|
1210
|
-
configurable: true,
|
|
1211
|
-
writable: true,
|
|
1212
|
-
value: _metadata
|
|
1213
|
-
});
|
|
1214
|
-
}
|
|
1215
|
-
config = __runInitializers(this, _instanceExtraInitializers);
|
|
1216
|
-
static inject = ["loader", "sessionProjections"];
|
|
1217
|
-
/** Runtime schema for the preset roster. */
|
|
1218
|
-
static Config = z.object({
|
|
1219
|
-
default: z.string().required(),
|
|
1220
|
-
roots: z.array(z.object({
|
|
1221
|
-
path: z.string().required(),
|
|
1222
|
-
trust: z.union(["system", "user"]).default("user")
|
|
1223
|
-
})).default([]),
|
|
1224
|
-
includeShippedRoot: z.boolean().default(true),
|
|
1225
|
-
includeUserRoot: z.boolean().default(true)
|
|
1226
|
-
});
|
|
1227
|
-
/**
|
|
1228
|
-
* The roots discovery and authoring actually scan: the package's shipped
|
|
1229
|
-
* root unless `includeShippedRoot` is false, then every configured root in
|
|
1230
|
-
* order, then the harness-home user root unless `includeUserRoot` is false.
|
|
1231
|
-
*
|
|
1232
|
-
* Derived once, because a root set that changed between `list()` and the
|
|
1233
|
-
* `copy()` acting on its answer would author into a directory the caller
|
|
1234
|
-
* never saw. The shipped root comes FIRST and the user root LAST because an
|
|
1235
|
-
* earlier root wins a duplicate id: a shipped preset shadows any directory
|
|
1236
|
-
* that claimed its name, and a configured root still shadows a locally
|
|
1237
|
-
* authored one.
|
|
1238
|
-
*/
|
|
1239
|
-
resolvedRoots;
|
|
1240
|
-
/**
|
|
1241
|
-
* Where a row's package name resolves from: the base URL of the composition
|
|
1242
|
-
* this roster was loaded by, which is inside the installed harness.
|
|
1243
|
-
*
|
|
1244
|
-
* Discovery needs it because a preset's own directory is the wrong base for
|
|
1245
|
-
* a package name — a locally authored preset lives under the user's home,
|
|
1246
|
-
* where Node's upward `node_modules` walk never reaches the harness's
|
|
1247
|
-
* dependencies. The mount already resolves rows this way; holding the same
|
|
1248
|
-
* base here is what lets health answer the question before a session does.
|
|
1249
|
-
*/
|
|
1250
|
-
harnessBase;
|
|
1251
|
-
/**
|
|
1252
|
-
* The user layer over `config.default`, present only while a settings
|
|
1253
|
-
* provider is composed. Held rather than snapshotted so a hot-reloaded
|
|
1254
|
-
* document takes effect without a restart.
|
|
1255
|
-
*/
|
|
1256
|
-
settings;
|
|
1257
|
-
/**
|
|
1258
|
-
* The settings service behind {@link settings}, held for the one write this
|
|
1259
|
-
* service makes: clearing a user default it has just deleted.
|
|
1260
|
-
*/
|
|
1261
|
-
settingsService;
|
|
1262
|
-
/**
|
|
1263
|
-
* The service's own untraced context. Methods invoked through the traceable
|
|
1264
|
-
* proxy see `this.ctx` rebound to the CALLER's context, which carries a
|
|
1265
|
-
* shadow; a subtree minted from it resolves every service through that
|
|
1266
|
-
* shadow's fiber instead of each entry's own inject store, so preset rows
|
|
1267
|
-
* would fail on the very services they declare. Standing mounts must hang
|
|
1268
|
-
* off the untraced original (the `jobs-local` selfCtx precedent).
|
|
1269
|
-
*/
|
|
1270
|
-
selfCtx;
|
|
1271
|
-
constructor(ctx, config) {
|
|
1272
|
-
super(ctx, "agentPresets");
|
|
1273
|
-
this.config = config;
|
|
1274
|
-
this.selfCtx = ctx;
|
|
1275
|
-
const { baseUrl } = ctx;
|
|
1276
|
-
if (baseUrl === void 0) throw new Error("agent-presets: the roster needs `ctx.baseUrl` to resolve the plugins a composition names; compose it under a Loader, or set the base on the context this plugin is applied to");
|
|
1277
|
-
this.harnessBase = baseUrl;
|
|
1278
|
-
this.resolvedRoots = [
|
|
1279
|
-
...config.includeShippedRoot ? [{
|
|
1280
|
-
path: SHIPPED_PRESET_ROOT,
|
|
1281
|
-
trust: "system"
|
|
1282
|
-
}] : [],
|
|
1283
|
-
...config.roots,
|
|
1284
|
-
...config.includeUserRoot ? [{
|
|
1285
|
-
path: dshHomePath(USER_PRESET_DIR),
|
|
1286
|
-
trust: "user"
|
|
1287
|
-
}] : []
|
|
1288
|
-
];
|
|
1289
|
-
ctx.inject(["settings"], (settingsCtx) => {
|
|
1290
|
-
this.settings = settingsCtx.settings.register(SETTINGS_NAMESPACE, AgentPresetSettingsSchema, { base: {
|
|
1291
|
-
default: config.default,
|
|
1292
|
-
modeSelectionEnabled: true
|
|
1293
|
-
} });
|
|
1294
|
-
this.settingsService = settingsCtx.settings;
|
|
1295
|
-
settingsCtx.effect(() => () => {
|
|
1296
|
-
this.settings = void 0;
|
|
1297
|
-
this.settingsService = void 0;
|
|
1298
|
-
}, "agentPresets.settings()");
|
|
1299
|
-
});
|
|
1300
|
-
ctx.sessionProjections.register(agentPresetProjectionDefinition);
|
|
1301
|
-
ctx.on("agent/created", ({ agent }) => {
|
|
1302
|
-
if (this.resolvedRoots.length === 0) return;
|
|
1303
|
-
if (this.composedPreset(agent.ctx) !== void 0) return;
|
|
1304
|
-
ctx.logger.warn(`agent "${agent.id}" was published without joining an agent preset; its tools, prompt sections, and skill catalog resolve against the empty global layer (join through AgentPresets.mount() or composeFrom() in the agent factory setup)`);
|
|
1305
|
-
});
|
|
1306
|
-
ctx.on("session/event", (session, event) => {
|
|
1307
|
-
if (event.type !== "agent-preset/selected") return;
|
|
1308
|
-
ctx.emit("agent-preset/selected", session.id, event.data.agentPreset);
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
/**
|
|
1312
|
-
* The preset id mounted when a caller names none.
|
|
1313
|
-
*
|
|
1314
|
-
* Read per call rather than cached: the settings document is hot-reloaded, so
|
|
1315
|
-
* changing the default takes effect on the next session created and leaves
|
|
1316
|
-
* every running session on the preset it was composed from.
|
|
1317
|
-
*/
|
|
1318
|
-
get defaultId() {
|
|
1319
|
-
return this.selectionPolicy().defaultId;
|
|
1320
|
-
}
|
|
1321
|
-
/** Read one internally consistent snapshot of the selection policy. */
|
|
1322
|
-
selectionPolicy() {
|
|
1323
|
-
const settings = this.settings?.get();
|
|
1324
|
-
if (settings === void 0) return {
|
|
1325
|
-
enabled: true,
|
|
1326
|
-
defaultId: this.config.default
|
|
1327
|
-
};
|
|
1328
|
-
const enabled = settings.modeSelectionEnabled;
|
|
1329
|
-
return {
|
|
1330
|
-
enabled,
|
|
1331
|
-
defaultId: enabled ? settings.default : this.config.default
|
|
1332
|
-
};
|
|
1333
|
-
}
|
|
1334
|
-
/**
|
|
1335
|
-
* Every preset the configured roots currently supply.
|
|
1336
|
-
* @returns the presets, first-root-wins per id.
|
|
1337
|
-
*/
|
|
1338
|
-
async list() {
|
|
1339
|
-
const packages = this.ctx.get("pluginPackages");
|
|
1340
|
-
return packages === void 0 ? await discoverPresets(this.resolvedRoots, this.harnessBase) : await discoverPresets(this.resolvedRoots, this.harnessBase, (specifier, base) => packages.packageOf(specifier, base) !== void 0);
|
|
1341
|
-
}
|
|
1342
|
-
/**
|
|
1343
|
-
* The roster off the Host: {@link list} projected to path-free rows, with
|
|
1344
|
-
* the policy-effective default marked, this deployment's authoring
|
|
1345
|
-
* capability, and its mode-selection policy beside it.
|
|
1346
|
-
*
|
|
1347
|
-
* Whether a client can open a preset's directory is the Host's own opener
|
|
1348
|
-
* capability, not a roster property — a caller needing both joins them.
|
|
1349
|
-
* @returns the rows, authoring capability, and effective selection policy.
|
|
1350
|
-
*/
|
|
1351
|
-
async remoteExportList() {
|
|
1352
|
-
const policy = this.selectionPolicy();
|
|
1353
|
-
return {
|
|
1354
|
-
presets: (await this.list()).map((preset) => ({
|
|
1355
|
-
id: preset.id,
|
|
1356
|
-
trust: preset.trust,
|
|
1357
|
-
isDefault: preset.id === policy.defaultId,
|
|
1358
|
-
...preset.name === void 0 ? {} : { name: preset.name },
|
|
1359
|
-
...preset.description === void 0 ? {} : { description: preset.description },
|
|
1360
|
-
...preset.broken === void 0 ? {} : { broken: preset.broken }
|
|
1361
|
-
})),
|
|
1362
|
-
authorable: this.authorable,
|
|
1363
|
-
modeSelectionEnabled: policy.enabled
|
|
1364
|
-
};
|
|
1365
|
-
}
|
|
1366
|
-
/**
|
|
1367
|
-
* Every preset's composition as flattened plugin rows, for plugin-listing
|
|
1368
|
-
* surfaces beside the roster's own picker.
|
|
1369
|
-
*
|
|
1370
|
-
* A preset with a live standing mount answers from its newest generation's
|
|
1371
|
-
* Loader entries — the composition new sessions join — even when the file
|
|
1372
|
-
* behind it has since been edited into an unreadable state: the mount is
|
|
1373
|
-
* what sessions actually run, so the broken verdict only applies to a
|
|
1374
|
-
* preset nothing composed. One never composed since boot answers from its
|
|
1375
|
-
* file, with `!!js` disabled gates evaluated against the Loader context so
|
|
1376
|
-
* both answers reflect the same host. Reading never mounts: an unmounted
|
|
1377
|
-
* preset is parsed, not composed, so listing a preset's plugins cannot
|
|
1378
|
-
* activate them early. A composition that stopped reading between
|
|
1379
|
-
* discovery's health verdict and this read is reported broken with the
|
|
1380
|
-
* raced reason rather than dropped.
|
|
1381
|
-
* @returns one composition per roster preset, in roster order.
|
|
1382
|
-
*/
|
|
1383
|
-
async compositionInventory() {
|
|
1384
|
-
const defaultId = this.defaultId;
|
|
1385
|
-
const evaluateExpression = (expression) => evaluate(this.ctx.loader.ctx, expression);
|
|
1386
|
-
const rootFiber = this.ctx.root.fiber;
|
|
1387
|
-
const found = [];
|
|
1388
|
-
for (const preset of await this.list()) {
|
|
1389
|
-
const identity = {
|
|
1390
|
-
id: preset.id,
|
|
1391
|
-
trust: preset.trust,
|
|
1392
|
-
...preset.name === void 0 ? {} : { name: preset.name },
|
|
1393
|
-
isDefault: preset.id === defaultId
|
|
1394
|
-
};
|
|
1395
|
-
const mount = livePresetMounts(rootFiber).findLast((candidate) => candidate.presetId === preset.id);
|
|
1396
|
-
if (mount !== void 0) {
|
|
1397
|
-
found.push({
|
|
1398
|
-
...identity,
|
|
1399
|
-
rows: mountedCompositionRows(mount.tree)
|
|
1400
|
-
});
|
|
1401
|
-
continue;
|
|
1402
|
-
}
|
|
1403
|
-
if (preset.broken !== void 0) {
|
|
1404
|
-
found.push({
|
|
1405
|
-
...identity,
|
|
1406
|
-
broken: preset.broken,
|
|
1407
|
-
rows: []
|
|
1408
|
-
});
|
|
1409
|
-
continue;
|
|
1410
|
-
}
|
|
1411
|
-
const read = await fileComposition(preset.path, evaluateExpression);
|
|
1412
|
-
found.push("broken" in read ? {
|
|
1413
|
-
...identity,
|
|
1414
|
-
broken: read.broken,
|
|
1415
|
-
rows: []
|
|
1416
|
-
} : {
|
|
1417
|
-
...identity,
|
|
1418
|
-
rows: read.rows
|
|
1419
|
-
});
|
|
1420
|
-
}
|
|
1421
|
-
return found;
|
|
1422
|
-
}
|
|
1423
|
-
/**
|
|
1424
|
-
* Resolve one preset by id.
|
|
1425
|
-
*
|
|
1426
|
-
* A broken preset resolves — deleting one, reading one, and reporting one
|
|
1427
|
-
* all need the row — and the mounting paths refuse it AFTER resolution
|
|
1428
|
-
* through {@link resolveMountable}.
|
|
1429
|
-
* @param id - the preset id, or `undefined` for {@link defaultId}.
|
|
1430
|
-
* @returns the resolved preset.
|
|
1431
|
-
* @throws when no configured root supplies that id.
|
|
1432
|
-
*/
|
|
1433
|
-
async resolve(id) {
|
|
1434
|
-
const wanted = id ?? this.defaultId;
|
|
1435
|
-
const presets = await this.list();
|
|
1436
|
-
const found = presets.find((preset) => preset.id === wanted);
|
|
1437
|
-
if (found === void 0) {
|
|
1438
|
-
const available = presets.map((preset) => preset.id);
|
|
1439
|
-
throw new RemoteError("agent-preset/not-found", `agent-presets: preset "${wanted}" not found (available: ${available.join(", ") || "none"})`, {
|
|
1440
|
-
agentPreset: wanted,
|
|
1441
|
-
available
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
return found;
|
|
1445
|
-
}
|
|
1446
|
-
/**
|
|
1447
|
-
* Resolve one preset that is about to compose an agent, refusing a broken
|
|
1448
|
-
* one with its discovery-reported reason. Failing here rather than inside
|
|
1449
|
-
* the loader keeps the answer the same for every unloadable shape — ghost
|
|
1450
|
-
* directory, unparsable YAML, rowless list — and spends no mount attempt
|
|
1451
|
-
* on a composition discovery already read as unusable.
|
|
1452
|
-
* @param id - the preset id, or `undefined` for {@link defaultId}.
|
|
1453
|
-
* @returns the resolved, mountable preset.
|
|
1454
|
-
* @throws when the preset is unknown or discovery reports it broken.
|
|
1455
|
-
*/
|
|
1456
|
-
async resolveMountable(id) {
|
|
1457
|
-
const preset = await this.resolve(id);
|
|
1458
|
-
if (preset.broken !== void 0) throw new RemoteError("agent-preset/invalid", `agent-presets: preset "${preset.id}" failed to mount: ${preset.broken}`, {
|
|
1459
|
-
agentPreset: preset.id,
|
|
1460
|
-
reason: preset.broken
|
|
1461
|
-
});
|
|
1462
|
-
return preset;
|
|
1463
|
-
}
|
|
1464
|
-
/**
|
|
1465
|
-
* Standing mounts by preset id, single-flight so two agents racing the
|
|
1466
|
-
* first use of one preset share one composition. A settled failure is
|
|
1467
|
-
* removed so a later session retries a preset whose file has been fixed; a
|
|
1468
|
-
* settled success serves until the composition FILE visibly changes — each
|
|
1469
|
-
* generation records its file stamp, and a stale stamp starts the next
|
|
1470
|
-
* generation for sessions created afterwards. Sessions already joined keep
|
|
1471
|
-
* the generation they run on; a superseded one is never disposed while the
|
|
1472
|
-
* process lives (reclaimed only by whole-tree teardown), so editing files
|
|
1473
|
-
* is bounded by how often compositions change, not by session count.
|
|
1474
|
-
*/
|
|
1475
|
-
standing = /* @__PURE__ */ new Map();
|
|
1476
|
-
/**
|
|
1477
|
-
* Parent bindings of the agents this roster composed, keyed by the agent's
|
|
1478
|
-
* scope key. The binding is dsh-scope's only re-link capability; holding it
|
|
1479
|
-
* here makes this service the sole authority that can move an agent between
|
|
1480
|
-
* standing compositions. WeakMap: entries die with their agents.
|
|
1481
|
-
*/
|
|
1482
|
-
bindings = /* @__PURE__ */ new WeakMap();
|
|
1483
|
-
/**
|
|
1484
|
-
* Compose one agent from a preset: ensure the preset's standing mount, then
|
|
1485
|
-
* parent the agent's scope key to it so the mount's registrations and
|
|
1486
|
-
* listeners cover this agent.
|
|
1487
|
-
*
|
|
1488
|
-
* Call from the agent factory's `setup(agentCtx)`; a rejection there rolls
|
|
1489
|
-
* the agent creation back, so a broken preset never yields a half-composed
|
|
1490
|
-
* session.
|
|
1491
|
-
* @param agentCtx - the agent's scope context.
|
|
1492
|
-
* @param id - the preset id, or `undefined` for {@link defaultId}.
|
|
1493
|
-
* @returns the preset that was composed, for the caller to record.
|
|
1494
|
-
* @throws when the preset is unknown or its composition is unusable.
|
|
1495
|
-
*/
|
|
1496
|
-
async mount(agentCtx, id) {
|
|
1497
|
-
const agentKey = scopeOf(agentCtx);
|
|
1498
|
-
if (agentKey === void 0) throw new Error("agent-presets: refusing to compose an unscoped context; the scope key is what joins an agent to its preset");
|
|
1499
|
-
const preset = await this.resolveMountable(id);
|
|
1500
|
-
const standing = await this.ensureStanding(preset);
|
|
1501
|
-
this.bindings.set(agentKey, bindScopeParent(agentKey, standing.key));
|
|
1502
|
-
return preset;
|
|
1503
|
-
}
|
|
1504
|
-
/**
|
|
1505
|
-
* Join one agent to the SAME standing composition another already runs on.
|
|
1506
|
-
*
|
|
1507
|
-
* This is how a child agent inherits its parent's capabilities. It is a bind,
|
|
1508
|
-
* not a mount: the parent's generation is already composed, so the child gets
|
|
1509
|
-
* that exact instance — the same plugin objects, the same tool registrations,
|
|
1510
|
-
* the same prompt sections. Re-resolving the parent's preset by id instead
|
|
1511
|
-
* would re-read the roster, and a composition file edited since the parent
|
|
1512
|
-
* started would hand the child a DIFFERENT generation than the one its
|
|
1513
|
-
* parent's history was produced under (and a preset deleted since would fail
|
|
1514
|
-
* the child outright while its parent keeps running).
|
|
1515
|
-
*
|
|
1516
|
-
* Synchronous, and with no composition failure mode of its own — it reads no
|
|
1517
|
-
* roster, mounts nothing, and touches no file — which is what lets a child
|
|
1518
|
-
* creation window use it: the two in-process subagent drivers compose their
|
|
1519
|
-
* children inside a synchronous `setup`. It still rejects a caller error, as
|
|
1520
|
-
* the `@throws` below record.
|
|
1521
|
-
*
|
|
1522
|
-
* A parent that joined no preset — a rosterless deployment — yields no join
|
|
1523
|
-
* and no error: there, the model-facing rows sit in the host composition and
|
|
1524
|
-
* the child already sees them through the global layer.
|
|
1525
|
-
* @param agentCtx - the joining agent's scope context.
|
|
1526
|
-
* @param parentCtx - the scope context of the agent whose composition to join.
|
|
1527
|
-
* @returns the preset id joined, or undefined when the parent joined none.
|
|
1528
|
-
* @throws when `agentCtx` carries no scope, or has already joined a preset.
|
|
1529
|
-
*/
|
|
1530
|
-
composeFrom(agentCtx, parentCtx) {
|
|
1531
|
-
const agentKey = scopeOf(agentCtx);
|
|
1532
|
-
if (agentKey === void 0) throw new Error("agent-presets: refusing to compose an unscoped context; the scope key is what joins an agent to its preset");
|
|
1533
|
-
const standing = standingMountFor(parentCtx);
|
|
1534
|
-
if (standing === void 0) return void 0;
|
|
1535
|
-
this.bindings.set(agentKey, bindScopeParent(agentKey, standing.key));
|
|
1536
|
-
return standing.presetId;
|
|
1537
|
-
}
|
|
1538
|
-
/**
|
|
1539
|
-
* The preset one live agent runs on.
|
|
1540
|
-
*
|
|
1541
|
-
* Read from the live scope chain rather than from the session, so it answers
|
|
1542
|
-
* for an agent whose session has not recorded a preset yet — a child agent
|
|
1543
|
-
* whose durable header is being built from its parent's composition.
|
|
1544
|
-
* @param agentCtx - the agent's scope context.
|
|
1545
|
-
* @returns the preset id, or undefined when the agent joined none.
|
|
1546
|
-
*/
|
|
1547
|
-
composedPreset(agentCtx) {
|
|
1548
|
-
return standingMountFor(agentCtx)?.presetId;
|
|
1549
|
-
}
|
|
1550
|
-
/**
|
|
1551
|
-
* The roots this roster scans, which is not `config.roots`: the package's
|
|
1552
|
-
* shipped root unless `includeShippedRoot` is false, every configured root
|
|
1553
|
-
* in order, then the harness-home user root unless `includeUserRoot` is
|
|
1554
|
-
* false. Read this — not the config field — to answer whether a roster is
|
|
1555
|
-
* composed at all, so one derivation decides it.
|
|
1556
|
-
*/
|
|
1557
|
-
get roots() {
|
|
1558
|
-
return this.resolvedRoots;
|
|
1559
|
-
}
|
|
1560
|
-
/** Whether this deployment has a root locally authored presets go to. */
|
|
1561
|
-
get authorable() {
|
|
1562
|
-
return this.resolvedRoots.some((root) => root.trust === "user");
|
|
1563
|
-
}
|
|
1564
|
-
/**
|
|
1565
|
-
* Read one preset's composition text.
|
|
1566
|
-
* @param id - the preset id.
|
|
1567
|
-
* @returns the composition exactly as stored.
|
|
1568
|
-
* @throws when no configured root supplies that id.
|
|
1569
|
-
*/
|
|
1570
|
-
async read(id) {
|
|
1571
|
-
return await readComposition(await this.resolve(id));
|
|
1572
|
-
}
|
|
1573
|
-
/**
|
|
1574
|
-
* One preset's composition text with the roster row it belongs to.
|
|
1575
|
-
* @param agentPreset - the preset id.
|
|
1576
|
-
* @returns the composition beside its trust and published metadata.
|
|
1577
|
-
* @throws {RemoteError} `gateway/bad-request` for an empty id, or
|
|
1578
|
-
* `agent-preset/not-found` when no configured root supplies it.
|
|
1579
|
-
*/
|
|
1580
|
-
async readDocument(agentPreset) {
|
|
1581
|
-
validatePresetId(agentPreset, "agentPreset");
|
|
1582
|
-
const preset = await this.resolve(agentPreset);
|
|
1583
|
-
return {
|
|
1584
|
-
agentPreset: preset.id,
|
|
1585
|
-
trust: preset.trust,
|
|
1586
|
-
content: await this.read(preset.id),
|
|
1587
|
-
...preset.name === void 0 ? {} : { name: preset.name },
|
|
1588
|
-
...preset.description === void 0 ? {} : { description: preset.description }
|
|
1589
|
-
};
|
|
1590
|
-
}
|
|
1591
|
-
/**
|
|
1592
|
-
* Create a locally authored preset by copying an existing one whole.
|
|
1593
|
-
*
|
|
1594
|
-
* Copy is the only authoring write. Composition text never crosses this
|
|
1595
|
-
* seam: the source is named by id and its directory is copied as it stands,
|
|
1596
|
-
* so the copy is exactly as loadable as its source and authoring grants no
|
|
1597
|
-
* capability the roster did not already carry. The copy is NOT mounted to
|
|
1598
|
-
* validate — a source that mounts today yields a copy that mounts today.
|
|
1599
|
-
* @param from - the preset the copy starts from; shipped presets are the
|
|
1600
|
-
* primary source, so any trust is accepted.
|
|
1601
|
-
* @param id - the new preset's id, which becomes its directory name.
|
|
1602
|
-
* @param name - display name for the copy; absent falls back to the id.
|
|
1603
|
-
* @throws when the source is unknown, the id is unusable or already taken,
|
|
1604
|
-
* or the deployment configures no writable root.
|
|
1605
|
-
*/
|
|
1606
|
-
async copy(from, id, name) {
|
|
1607
|
-
const source = await this.resolve(from);
|
|
1608
|
-
if ((await this.list()).some((preset) => preset.id === id)) throw presetExists(id);
|
|
1609
|
-
await copyComposition(this.resolvedRoots, source, id, name);
|
|
1610
|
-
this.standing.delete(id);
|
|
1611
|
-
}
|
|
1612
|
-
/**
|
|
1613
|
-
* Copy one preset through the Remote API.
|
|
1614
|
-
* @param from - the source preset id.
|
|
1615
|
-
* @param id - the new preset id.
|
|
1616
|
-
* @param name - the copy's optional display name.
|
|
1617
|
-
* @returns once the copy is stored.
|
|
1618
|
-
* @throws {RemoteError} with the corresponding stable preset code and
|
|
1619
|
-
* details when the copy is refused.
|
|
1620
|
-
*/
|
|
1621
|
-
async remoteExportCopy(from, id, name) {
|
|
1622
|
-
validatePresetId(from, "from");
|
|
1623
|
-
validatePresetId(id, "agentPreset");
|
|
1624
|
-
await this.copy(from, id, name);
|
|
1625
|
-
}
|
|
1626
|
-
/**
|
|
1627
|
-
* Delete a locally authored preset.
|
|
1628
|
-
*
|
|
1629
|
-
* @param id - the preset id.
|
|
1630
|
-
* @throws when the preset is unknown or ships with the deployment.
|
|
1631
|
-
*/
|
|
1632
|
-
async remove(id) {
|
|
1633
|
-
await deleteComposition(this.resolvedRoots, await this.resolve(id));
|
|
1634
|
-
this.standing.delete(id);
|
|
1635
|
-
if (this.settings?.get().default !== id) return;
|
|
1636
|
-
await this.settingsService?.mutate(SETTINGS_NAMESPACE, [{
|
|
1637
|
-
op: "unset",
|
|
1638
|
-
path: ["default"]
|
|
1639
|
-
}]);
|
|
1640
|
-
}
|
|
1641
|
-
/**
|
|
1642
|
-
* Delete one preset through the Remote API.
|
|
1643
|
-
* @param id - the preset id.
|
|
1644
|
-
* @returns once the preset is deleted.
|
|
1645
|
-
* @throws {RemoteError} with the corresponding stable preset code and
|
|
1646
|
-
* details when deletion is refused.
|
|
1647
|
-
*/
|
|
1648
|
-
async remoteExportDelete(id) {
|
|
1649
|
-
validatePresetId(id, "agentPreset");
|
|
1650
|
-
await this.remove(id);
|
|
1651
|
-
}
|
|
1652
|
-
/**
|
|
1653
|
-
* One agent's instance of a service its preset mounted.
|
|
1654
|
-
*
|
|
1655
|
-
* A preset publishes services behind `isolate` realms, which are invisible
|
|
1656
|
-
* outside the group that declares them — including to the host. This is how a
|
|
1657
|
-
* caller holding the agent reads one anyway: a request that is ABOUT a
|
|
1658
|
-
* session but arrives from outside it, which is every browser RPC.
|
|
1659
|
-
*
|
|
1660
|
-
* Read addressing only. A host row that `inject`s a service cannot use this,
|
|
1661
|
-
* because injection resolves before any session exists and has no agent to
|
|
1662
|
-
* key by; such a service belongs on the host plane instead.
|
|
1663
|
-
* @param agent - the agent whose composition to look inside.
|
|
1664
|
-
* @param name - the service name as the preset's rows resolve it.
|
|
1665
|
-
* @returns the agent's instance, or undefined when its preset mounts none.
|
|
1666
|
-
*/
|
|
1667
|
-
serviceFor(agent, name) {
|
|
1668
|
-
return serviceForAgent(this.ctx, agent, name);
|
|
1669
|
-
}
|
|
1670
|
-
/**
|
|
1671
|
-
* Re-link one agent to a different preset's standing composition.
|
|
1672
|
-
*
|
|
1673
|
-
* Only valid while the agent has produced nothing: swapping tools mid
|
|
1674
|
-
* conversation would leave logged tool calls the new composition cannot
|
|
1675
|
-
* make. The CALLER owns that check — this method does not read session
|
|
1676
|
-
* history.
|
|
1677
|
-
*
|
|
1678
|
-
* The swap is a parent re-link, not an unmount: standing mounts are shared
|
|
1679
|
-
* and permanent, so the old composition stays for its other agents and the
|
|
1680
|
-
* new one is ensured BEFORE the link moves. An unknown or unusable preset
|
|
1681
|
-
* therefore throws with the agent exactly as it was — there is no torn-down
|
|
1682
|
-
* state to restore. The re-link runs through the binding this roster kept
|
|
1683
|
-
* from the agent's mount — dsh-scope's only re-link authority. An agent
|
|
1684
|
-
* that never composed one has nothing to re-link: the switch is then the
|
|
1685
|
-
* agent's first bind, exactly a mount. A committed re-link emits
|
|
1686
|
-
* `tools/change` because changing the parent scope changes the Agent's
|
|
1687
|
-
* resolved tool set without adding or removing registry entries.
|
|
1688
|
-
* @param agentCtx - the agent's scope context.
|
|
1689
|
-
* @param id - the preset to compose the agent from instead.
|
|
1690
|
-
* @returns the preset now installed.
|
|
1691
|
-
* @throws when the preset is unknown or its composition is unusable.
|
|
1692
|
-
*/
|
|
1693
|
-
async recompose(agentCtx, id) {
|
|
1694
|
-
const agentKey = scopeOf(agentCtx);
|
|
1695
|
-
if (agentKey === void 0) throw new Error("agent-presets: refusing to recompose an unscoped context");
|
|
1696
|
-
const preset = await this.resolveMountable(id);
|
|
1697
|
-
const standing = await this.ensureStanding(preset);
|
|
1698
|
-
const binding = this.bindings.get(agentKey);
|
|
1699
|
-
if (binding === void 0) this.bindings.set(agentKey, bindScopeParent(agentKey, standing.key));
|
|
1700
|
-
else binding.rebind(standing.key);
|
|
1701
|
-
try {
|
|
1702
|
-
this.ctx.emit("tools/change");
|
|
1703
|
-
} catch (error) {
|
|
1704
|
-
this.ctx.logger.warn(`agent-presets: tools/change listener failed after recomposing an Agent: ${String(error)}`);
|
|
1705
|
-
}
|
|
1706
|
-
return preset;
|
|
1707
|
-
}
|
|
1708
|
-
/**
|
|
1709
|
-
* Serializes {@link select} per session. Two concurrent selects would both
|
|
1710
|
-
* pass the blank check, and the second re-link would then find the record
|
|
1711
|
-
* the first already replaced — leaving two compositions registered into one
|
|
1712
|
-
* agent layer. A client's `busy` flag is not enforcement: the wire is
|
|
1713
|
-
* reachable directly.
|
|
1714
|
-
*
|
|
1715
|
-
* Entries hold a failure-swallowing guard rather than the turn itself, so a
|
|
1716
|
-
* refused switch does not reject the next caller's chain.
|
|
1717
|
-
*/
|
|
1718
|
-
switches = /* @__PURE__ */ new Map();
|
|
1719
|
-
/**
|
|
1720
|
-
* Compose a blank session's agent from a different preset and record it.
|
|
1721
|
-
* @param agent - the session's live agent, resolved from the wire identity.
|
|
1722
|
-
* @param agentPreset - the preset to compose the agent from instead.
|
|
1723
|
-
* @returns the preset id that was recorded.
|
|
1724
|
-
* @throws {RemoteError} with `gateway/bad-request`, `agent-preset/locked`,
|
|
1725
|
-
* `agent-preset/not-found`, or `agent-preset/invalid` when refused.
|
|
1726
|
-
*/
|
|
1727
|
-
async select(agent, agentPreset) {
|
|
1728
|
-
validatePresetId(agentPreset, "agentPreset");
|
|
1729
|
-
const turn = (this.switches.get(agent.id) ?? Promise.resolve()).then(() => this.swap(agent, agentPreset));
|
|
1730
|
-
const guard = turn.catch(() => void 0);
|
|
1731
|
-
this.switches.set(agent.id, guard);
|
|
1732
|
-
try {
|
|
1733
|
-
return await turn;
|
|
1734
|
-
} finally {
|
|
1735
|
-
if (this.switches.get(agent.id) === guard) this.switches.delete(agent.id);
|
|
1736
|
-
}
|
|
1737
|
-
}
|
|
1738
|
-
/** One queued switch: re-check, recompose, then record what the agent runs. */
|
|
1739
|
-
async swap(agent, agentPreset) {
|
|
1740
|
-
const boundary = this.selfCtx.sessionProjections.stateOf(agent.session, "turnBoundary");
|
|
1741
|
-
if (boundary !== void 0 && (boundary.openTurnStartSeq !== null || boundary.lastTurn > 0)) throw new RemoteError("agent-preset/locked", `session "${agent.id}" has already started; its agent preset is fixed`, {
|
|
1742
|
-
sessionId: agent.id,
|
|
1743
|
-
agentPreset
|
|
1744
|
-
});
|
|
1745
|
-
const preset = await this.recompose(agent.ctx, agentPreset);
|
|
1746
|
-
agent.session.append("agent-preset/selected", { agentPreset: preset.id });
|
|
1747
|
-
return preset.id;
|
|
1748
|
-
}
|
|
1749
|
-
/**
|
|
1750
|
-
* The standing scope key of one preset, for a host reader with no agent.
|
|
1751
|
-
*
|
|
1752
|
-
* A cold transcript read resolves tool presenters against the composition
|
|
1753
|
-
* the session recorded, and the standing mount makes that possible without
|
|
1754
|
-
* resuming anything: ensuring the mount composes plugins but starts no
|
|
1755
|
-
* agent, no session, and no turn.
|
|
1756
|
-
* @param id - the preset id, or `undefined` for {@link defaultId}.
|
|
1757
|
-
* @returns the standing scope key readers pass as a registry view scope.
|
|
1758
|
-
* @throws when the preset is unknown or its composition is unusable.
|
|
1759
|
-
*/
|
|
1760
|
-
async standingKeyFor(id) {
|
|
1761
|
-
const preset = await this.resolveMountable(id);
|
|
1762
|
-
return (await this.ensureStanding(preset)).key;
|
|
1763
|
-
}
|
|
1764
|
-
/** Resolve (or create, single-flight) the standing mount of one preset. */
|
|
1765
|
-
async ensureStanding(preset) {
|
|
1766
|
-
const pending = this.standing.get(preset.id);
|
|
1767
|
-
if (pending !== void 0) {
|
|
1768
|
-
const mounted = await pending;
|
|
1769
|
-
const current = await compositionStamp(preset.path);
|
|
1770
|
-
if (current === void 0 || sameStamp(mounted.stamp, current)) return mounted;
|
|
1771
|
-
if (this.standing.get(preset.id) === pending) this.standing.delete(preset.id);
|
|
1772
|
-
return this.ensureStanding(preset);
|
|
1773
|
-
}
|
|
1774
|
-
const created = (async () => {
|
|
1775
|
-
const key = { agentPreset: preset.id };
|
|
1776
|
-
const scope = createScope(this.selfCtx, key);
|
|
1777
|
-
try {
|
|
1778
|
-
const stamp = await compositionStamp(preset.path);
|
|
1779
|
-
if (stamp === void 0) {
|
|
1780
|
-
const reason = `composition file is unreadable: ${preset.path}`;
|
|
1781
|
-
throw new RemoteError("agent-preset/invalid", `agent-presets: preset "${preset.id}" failed to mount: ${reason}`, {
|
|
1782
|
-
agentPreset: preset.id,
|
|
1783
|
-
reason
|
|
1784
|
-
});
|
|
1785
|
-
}
|
|
1786
|
-
await mountPreset(scope.ctx, preset);
|
|
1787
|
-
return {
|
|
1788
|
-
key,
|
|
1789
|
-
scope,
|
|
1790
|
-
stamp
|
|
1791
|
-
};
|
|
1792
|
-
} catch (error) {
|
|
1793
|
-
this.standing.delete(preset.id);
|
|
1794
|
-
await scope.dispose();
|
|
1795
|
-
throw error;
|
|
1796
|
-
}
|
|
1797
|
-
})();
|
|
1798
|
-
this.standing.set(preset.id, created);
|
|
1799
|
-
return created;
|
|
1800
|
-
}
|
|
1801
|
-
};
|
|
1802
|
-
})();
|
|
1803
|
-
/** Read one composition file's stamp, or undefined when it cannot be statted. */
|
|
1804
|
-
async function compositionStamp(path) {
|
|
1805
|
-
try {
|
|
1806
|
-
const { mtimeMs, size } = await stat(path);
|
|
1807
|
-
return {
|
|
1808
|
-
mtimeMs,
|
|
1809
|
-
size
|
|
1810
|
-
};
|
|
1811
|
-
} catch {
|
|
1812
|
-
return;
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
/** Whether two stamps name the same file state. */
|
|
1816
|
-
function sameStamp(a, b) {
|
|
1817
|
-
return a.mtimeMs === b.mtimeMs && a.size === b.size;
|
|
1818
|
-
}
|
|
1819
|
-
//#endregion
|
|
1820
|
-
export { AgentPresetSettingsSchema, AgentPresets, AgentPresets as default, COMPOSITION_FILE, METADATA_FILE, SETTINGS_NAMESPACE, SHIPPED_PRESET_ROOT, agentPresetProjectionDefinition, copyComposition, deleteComposition, discoverPresets, inactiveRows, leakedServices, livePresetMounts, mountPreset, readComposition, readPresetMetadata, renderPresetMetadata, scanRoot, serviceForAgent, standingMountFor, writableRoot };
|