feat(dsh): adapt to DSH 0.1.5-alpha.2

Baseline moves to DSH 0.1.5-alpha.2 only (peer floor ^0.1.5-alpha.2,
CI pin, manifest engines); alpha.1 users stay on v0.19.0-alpha.0.

Host-contract changes handled:
- the native guide entry lost its `description` field (entries are
  icon+title capsules now): `TabDescriptor.description` and the six
  `guideDesc*` keys plus the `nativeGuideDesc` fallback are removed.
- the file address grammar changed: `fileAddressFor` always returns a
  session-scoped address (absolute paths keep their leading `/`),
  `parseFileAddress` is prefix-based and strips `?`/`#`. The plugin's
  purity-gated mirror follows.
- global main panels replaced the `conversation` root slot with the
  keyed `main` slot (`main.conversation`): the bottom workbench's
  center-column locator now accepts both keys and skips
  `display: contents` slot hosts.

Fixes a pre-existing fill bug the alpha.2 probe made obvious: the native
tab body host is a block scroller with a definite height, so tab roots
that only declared `flex: 1` collapsed to content height and the side
chat composer drifted off the pane bottom. The native adapter now wraps
every tab body in a `height: 100%` column flex host.

Also promotes the dependencies `dsh-client-ui-primitives@0.1.5-alpha.2`
dropped from its manifest (anser / shiki / mdast-util-* / micromark-* /
katex / @shikijs/langs) and the newly unmet `dsh-session-persistence`
peer into devDependencies.
This commit is contained in:
Menghuan1918
2026-09-09 23:09:48 +08:00
parent d4765819c0
commit 0b6ac5d267
43 changed files with 944 additions and 930 deletions
+55 -37
View File
@@ -1,6 +1,6 @@
{
"name": "dsh-better-sidebar",
"version": "0.19.0-alpha.0",
"version": "0.19.0-alpha.1",
"description": "DSH web plugin: a VSCode-like right sidebar (explorer / editor / terminal / git / browser), isolated per conversation session. Exposes a service for other plugins to register sidebar tabs and file viewers.",
"type": "module",
"repository": {
@@ -89,20 +89,20 @@
"license": "MIT",
"peerDependencies": {
"@deepseek-ai/cordis": "^4.0.2",
"@deepseek-ai/dsh-agent": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-client-locale": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-client-ui-settings": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-client-ui-sidebar-right": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-client-ui-slots": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-host-webserver": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-invariants": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-llm": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-session": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-settings": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-subagent": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-tools": "^0.1.5-alpha.1",
"@deepseek-ai/dsh-agent": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-client-locale": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-client-ui-settings": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-client-ui-sidebar-right": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-client-ui-slots": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-host-webserver": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-invariants": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-llm": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-session": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-settings": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-subagent": "^0.1.5-alpha.2",
"@deepseek-ai/dsh-tools": "^0.1.5-alpha.2",
"@huanlin/dsh-plugin-better-locale": "^0.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
@@ -149,39 +149,57 @@
},
"devDependencies": {
"@cordisjs/plugin-loader": "^1.0.0-rc.5",
"@deepseek-ai/dsh-agent": "0.1.5-alpha.1",
"@deepseek-ai/dsh-agent-loop": "0.1.5-alpha.1",
"@deepseek-ai/dsh-attachment": "0.1.5-alpha.1",
"@deepseek-ai/dsh-client-locale": "0.1.5-alpha.1",
"@deepseek-ai/dsh-client-ui-conversation": "0.1.5-alpha.1",
"@deepseek-ai/dsh-client-ui-primitives": "0.1.5-alpha.1",
"@deepseek-ai/dsh-client-ui-settings": "0.1.5-alpha.1",
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.1.5-alpha.1",
"@deepseek-ai/dsh-client-ui-slots": "0.1.5-alpha.1",
"@deepseek-ai/dsh-code-runtime": "0.1.5-alpha.1",
"@deepseek-ai/dsh-host-webserver": "0.1.5-alpha.1",
"@deepseek-ai/dsh-invariants": "0.1.5-alpha.1",
"@deepseek-ai/dsh-llm": "0.1.5-alpha.1",
"@deepseek-ai/dsh-scope": "0.1.5-alpha.1",
"@deepseek-ai/dsh-session": "0.1.5-alpha.1",
"@deepseek-ai/dsh-session-projection": "0.1.5-alpha.1",
"@deepseek-ai/dsh-settings": "0.1.5-alpha.1",
"@deepseek-ai/dsh-subagent": "0.1.5-alpha.1",
"@deepseek-ai/dsh-system-prompt": "0.1.5-alpha.1",
"@deepseek-ai/dsh-tools": "0.1.5-alpha.1",
"@deepseek-ai/dsh-user-approval": "0.1.5-alpha.1",
"@deepseek-ai/dsh-util-time": "0.1.5-alpha.1",
"@deepseek-ai/dsh-agent": "0.1.5-alpha.2",
"@deepseek-ai/dsh-agent-loop": "0.1.5-alpha.2",
"@deepseek-ai/dsh-attachment": "0.1.5-alpha.2",
"@deepseek-ai/dsh-client-locale": "0.1.5-alpha.2",
"@deepseek-ai/dsh-client-ui-conversation": "0.1.5-alpha.2",
"@deepseek-ai/dsh-client-ui-primitives": "0.1.5-alpha.2",
"@deepseek-ai/dsh-client-ui-settings": "0.1.5-alpha.2",
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.1.5-alpha.2",
"@deepseek-ai/dsh-client-ui-slots": "0.1.5-alpha.2",
"@deepseek-ai/dsh-code-runtime": "0.1.5-alpha.2",
"@deepseek-ai/dsh-host-webserver": "0.1.5-alpha.2",
"@deepseek-ai/dsh-invariants": "0.1.5-alpha.2",
"@deepseek-ai/dsh-llm": "0.1.5-alpha.2",
"@deepseek-ai/dsh-scope": "0.1.5-alpha.2",
"@deepseek-ai/dsh-session": "0.1.5-alpha.2",
"@deepseek-ai/dsh-session-persistence": "0.1.5-alpha.2",
"@deepseek-ai/dsh-session-projection": "0.1.5-alpha.2",
"@deepseek-ai/dsh-settings": "0.1.5-alpha.2",
"@deepseek-ai/dsh-subagent": "0.1.5-alpha.2",
"@deepseek-ai/dsh-system-prompt": "0.1.5-alpha.2",
"@deepseek-ai/dsh-tools": "0.1.5-alpha.2",
"@deepseek-ai/dsh-user-approval": "0.1.5-alpha.2",
"@deepseek-ai/dsh-util-time": "0.1.5-alpha.2",
"@huanlin/dsh-plugin-better-locale": "^0.1.0",
"@playwright/test": "^1.62.1",
"@shikijs/langs": "^4.3.1",
"@types/mdast": "^4.0.4",
"@types/node": "^24.0.0",
"@types/react": "~18.3.1",
"@types/react-dom": "~18.3.1",
"@types/ws": "^8.5.10",
"@xterm/addon-fit": "^0.11.0",
"@xterm/xterm": "^5.5.0",
"anser": "^2.3.5",
"cordis": "^4.0.0-rc.8",
"jsdom": "^29.1.1",
"katex": "^0.16.47",
"lightningcss": "^1.32.0",
"mdast-util-from-markdown": "^2.0.3",
"mdast-util-gfm": "^3.1.0",
"mdast-util-math": "^3.0.0",
"micromark-core-commonmark": "^2.0.3",
"micromark-extension-gfm": "^3.0.0",
"micromark-extension-math": "^3.1.0",
"micromark-factory-space": "^2.0.1",
"micromark-util-character": "^2.1.1",
"micromark-util-classify-character": "^2.0.1",
"micromark-util-sanitize-uri": "^2.0.1",
"micromark-util-symbol": "^2.0.1",
"micromark-util-types": "^2.0.2",
"shiki": "^4.3.1",
"react": "^18.2.0",
"react-dom": "18.2.0",
"tsdown": "^0.22.2",