Skip to content

Releases

v1.0.8 - seed 表验证基线对齐 DSH 0.2.0-rc.2

Choose a tag to compare

@daetz-coder daetz-coder released this 01 Oct 07:26

v1.0.8 — 平台 seed 表验证基线对齐 DSH 0.2.0-rc.2

本项目现只面向 DSH 0.2.x(桌面应用那条线),但 platform-seeds.json 的 verifiedAgainst 仍停在 0.1.5-rc.2 / 0.1.7-rc.1 —— 意味着 check:platform:against 是在拿 0.1.x 的基线去比对 0.2.x 的运行实例。

用项目自带脚本重新校准:

node scripts/check-platform-contract.mjs --sync <installed-dsh>
# ✓ platform-seeds.json updated from … (dsh 0.2.0-rc.2)

结论:seed 表本身一个字没变

0.2.0-rc.2 与 0.1.7-rc.1 是同一张 9 项表:

react, react/jsx-runtime, react-dom, react-dom/client,
@deepseek-ai/cordis, @deepseek-ai/dsh-client-store,
@deepseek-ai/dsh-client-ui-slots, @deepseek-ai/dsh-client-ui-primitives,
@deepseek-ai/dsh-client-ui-dockkit

这与先前从桌面应用包中独立解出 staticModules 得到的比对结果一致(逐条相同)。所以本次只是补上验证记录,不改变任何 require,不影响产物字节。

保留 0.1.x 的记录是有意的:它如实说明这张表在那两个版本上同样是这份内容;将来换版本时 --against 才能分辨「真的漂移了」还是「本来就一致」。


产物无变化:24/24 测试通过,构建产物逐字节不变。

v1.0.7 - 修复 DSH 0.2 下多窗口墙永远为空

Choose a tag to compare

@daetz-coder daetz-coder released this 01 Oct 07:09

v1.0.7 — 修复 DSH 0.2 下多窗口墙永远为空

问题

自 DSH 0.2 起,每个 dsh web 进程会生成一个 launch token,未带令牌的 / 返回 401,只有 ?token= 才下发界面。

墙的探活判定是 status === 200 && body.includes('__DSH_BOOT__'),不带令牌一律判为离线 —— 于是实例明明在跑,网格却是空的。

实测(DSH 0.2.0-rc.2):

探测方式 结果
无 token HTTP 401 → 判定离线
带 token HTTP 200 + __DSH_BOOT__ ✅

现在开箱即用

dsh-multi-chat start --ports 3080,3081

start 会从各实例的控制台输出中读取 launch token,记录到 $DSH_HOME/multi-wall-instances.json(按端口索引),node 半边自动读取 —— 无需任何配置。

用其他方式启动的实例需要手动登记,可以直接编辑那个 JSON,或在 profile patch 层里写:

- id: ui-multi-wall
  name: dsh-multi-chat
  config:
    tokens:
      "3085": "<dsh web 启动时打印的令牌>"

令牌是每进程的:重启实例会生成新的。start 同时把每个实例的完整控制台日志留在 $DSH_HOME/multi-wall-logs/instance-<port>.log,便于取用。

实现要点

  • 令牌只存在于进程控制台,DSH 不落盘,因此只能从启动输出取。这是把 start 作为交接点的原因。
  • 交接文件放在 $DSH_HOME 而非包内:CLI 可能从 npx 缓存运行、插件装在 profile 里,只有这个路径两边解析一致。
  • node 半边每次请求重新读取令牌表 —— start 可以在插件启动之后运行,而令牌只对它打印过的那个实例有效。

顺带修掉的两个坑

  • detached + shell 的子进程拿不到 stdio,launch token 永远读不到(日志文件 0 字节)。改为解析出 dsh CLI 的 JS 入口,用 node <entry> 直接 spawn,不经 shell。
  • 冷启动时服务器接了连接但还没组装完 index.html,600ms 的探活超时永远等不到完整响应。就绪探测单独放宽到 10s;墙对已运行实例的存活轮询仍用 600ms。

测试:node 半边迁出 jsdom

新增 tests/node-plugin.spec.ts,node 半边不再跑在 jsdom 环境。这是必须的,不是顺手整理:jsdom 自带的 AbortSignal 与 Node 的 fetch 不是同一个类,undici 会抛

TypeError: RequestInit: Expected signal to be an instance of AbortSignal.

于是每一条探活都会失败 —— node 半边在 jsdom 里的断言本来就是假的。

新增回归用例:起一个会对无 token 请求返回 401 的本地实例,验证「无 token 判死、有 token 判活」,锁住本次空墙的成因。


⚠️ 本版本面向 DSH 0.2.x。若你的 dsh CLI 低于 0.2.0,请先升级 CLI —— 旧版 CLI 用的是另一套凭据格式,dsh web 无法启动。

v1.0.6 - 官方支持桌面版 profile

Choose a tag to compare

@daetz-coder daetz-coder released this 01 Oct 06:07

v1.0.6 — 官方支持桌面版 profile

市场现在同时向 web 和 desktop 两个 profile 分发本插件:

# 适用于 dsh web
dsh plugin --profile web add dsh-multi-chat

# 适用于桌面版应用
dsh plugin --profile desktop add dsh-multi-chat

卸载同理,把 --profile web 换成 --profile desktop 即可。

为什么之前只声明 web

platform-seeds.json 取自 web shell 的 staticModules 表,当时据此推断"桌面端没有这张表"。这次逐条实测后推翻了该结论 —— 桌面端跑的是同一套浏览器界面、同一张模块表。

web(dsh web) desktop(桌面版应用)
宿主侧 /multi/api/* 路由 ✅ 依赖 webServer ✅ dsh-web-app 提供该服务
浏览器侧 slot 注册 ✅ ✅ seed 表逐条相同
市场列表展示 ✅ ✅ 本版本新增

实测依据

  • 宿主侧:桌面 profile 启动图里确实存在 webserver(@deepseek-ai/dsh-host-webserver)、web-runtime 与 web-startup(@deepseek-ai/dsh-web-app),所以 /multi/api/* 路由可注册。
  • 浏览器侧:从桌面应用包解出的 staticModules seed 表与 platform-seeds.json 逐条相同(同样 9 项);两个 profile 的客户端包集合也逐条相同。
  • compose 实跑:dsh plugin --profile desktop add dsh-multi-chat 后,dsh --profile desktop --dump-config 成功合成出 ui-multi-wall 行。

一个此前容易误判的点

dsh.client.inject 里列的包(dsh-client-ui-renderer 等)不从宿主启动图解析 —— web profile 里同样是 0 引用,插件照常工作。所以"某个 inject 目标没出现在启动图里"并不构成桌面不支持的证据,这正是之前差点得出错误结论的地方。

先例

dshmarket 同样声明 dsh.client.platform: "web"(与本插件一致),自带 client/client.js,就运行在桌面 profile 里。


本版本只改动分发声明与文档,产物字节不变(构建确定性已在 v1.0.5 验证:两次干净构建 22 个产物 + sourcemap 全部一致)。

⚠️ 安装后需重启对应的 profile 才会加载。

v1.0.5 - 可复现构建 + 发布 v1.0.4 的修复

Choose a tag to compare

@daetz-coder daetz-coder released this 01 Oct 05:53

v1.0.5 — 可复现构建,发布产物不再泄漏构建机路径

为什么发这个版本

v1.0.4 的修复从未发布过。 修复代码在 git 里(6023c6e),但 npm 的 latest 一直停在 1.0.3 —— 那个版本 require 了上游早已删除的 @deepseek-ai/dsh-client-runtime/client。web shell 的模块表里查不到它,require 当场抛 missed the module table,而 boot 是 fail-closed 的:整个 Web UI 停在 "Failed to load plugins" 卡片上,卸载插件才恢复。

换句话说,README 里宣传的 dsh plugin --profile web add dsh-multi-chat 过去会把所有人装进这个坏版本。本版本把 1.0.4/1.0.5 推上去了,latest 现在指向可用版本。

升级

dsh plugin --profile web add dsh-multi-chat
# 重启 dsh web 生效

如果你现在跑的是 1.0.3 且页面卡在 "Failed to load plugins",直接升级即可,无需手动清理 patch。

构建可复现性

  • CSS 虚拟模块 id 不再是绝对路径。 它会原样出现在产物的 //#region 注释里,所以过去发布出去的 bundle 带着构建机的目录结构(CI 上是 /root/autodl-tmp/work/dsh-multi-chat/...)。同一原因也让 lightningcss 的 [hash] 每台机器不同(CI LWBPha_* / 本机 sRUrTW_*)—— 产物无法复现,源码一行没动也会整包 diff。现改为仓库相对路径。
  • CSS 类名映射按键排序输出。 原本照抄 lightningcss 的 exports(哈希相关顺序),每次构建都重排。
  • 验证:两次干净构建,22 个产物 + sourcemap 全部字节一致。

仓库卫生

  • 新增 .gitattributes:统一 LF,保留 .ps1/.cmd/.vbs/.bat 的 CRLF。此前 core.autocrlf=true 会改写已提交的 lib/**,导致每次重建都带噪声 diff。
  • .gitignore 恢复 harness-src/ 条目 —— 6023c6e 移除它之后,那份 vendored 检出一直以未跟踪状态暴露在工作区。

测试

tests/client-bundle.spec.ts 的两个用例曾稳定超时:seed 包冷启动导入约 5s,正好卡在 vitest 默认 5s 预算上。改为显式 30s 预算。

放宽是安全的 —— 真正的模块表缺失是在工厂内同步抛错,表现为断言失败而不是超时,所以这个用例仍然能挡住 v1.0.3 那类回归。

平台契约守卫(v1.0.4 引入,本次继续生效)

platform-seeds.json 钉住 web shell 的 seed 表,是插件 bundle 唯一可 require 的模块面;scripts/check-platform-contract.mjs 在构建后扫产物,越界即失败。指向新 DSH 版本时用 npm run sync:platform -- <path-to-dsh> 采纳新表。


注意:桌面版不安装也不应安装本插件 —— dsh.marketplace.profiles 声明为 ["web"],seed 表取自 web shell,两者不一致时插件无法解析。

v1.0.4 - 修复 dsh web 启动失败

Choose a tag to compare

@daetz-coder daetz-coder released this 01 Oct 05:53

v1.0.4 — 修复 dsh web 启动失败

补记:这个版本当时只发布了到 npm,GitHub 上漏打了标签。本次 v1.0.5 发布时一并补上,保持两处版本序列一致。

问题

v1.0.3 的浏览器产物硬 require 了 @deepseek-ai/dsh-client-runtime/client —— 一个上游已经删除的包。web shell 的模块表里查不到它,require 当场抛 missed the module table,而 boot 是 fail-closed 的:整个 Web UI 停在 "Failed to load plugins" 卡片上,卸载插件才恢复。

根因

插件没有任何平台版本锚点:package.json 里 dsh 依赖数为 0,类型全靠 tsconfig.vitest.json 指向一份 gitignore 掉的 harness-src/ 本地检出。于是对着一个已经不存在的平台也能编译通过。

修复

  • store.ts:defineStore / EngineStoreHandle 改从 @deepseek-ai/dsh-client-store 取
  • index.ts:ClientContext 改从 @deepseek-ai/cordis 取,并 type-only 引入 dsh-client-ui-renderer/client 以合并 ctx.slots
  • 图标改用新的 weight 命名(IconXxx16/14 → IconXxxRegular);每个调用点本就显式传了 size,渲染尺寸不变
  • 补齐 src/invariant.ts 缺失的 @deepseek-ai/dsh-invariants 依赖

防复发

  • platform-seeds.json —— 钉住 web shell 的 seed 表,这是插件 bundle 唯一可 require 的模块面。它同时是 tsdown externals 和校验脚本的唯一事实来源,二者不可能不一致。
  • scripts/check-platform-contract.mjs —— 构建后扫产物里的 require,越界即失败。支持 --against <dsh> 做漂移比对、--sync <dsh> 采纳新版本 seed 表。
  • 平台包以精确版本钉进 devDependencies(0.1.7-rc.1),删除 harness-src 机制,测试改为解析 node_modules —— 平台面移动时测试会大声失败。
  • 新增 tests/client-bundle.spec.ts —— 把构建产物送进 web shell 模块表的替身(tests/dsh-module-loader.ts)真实物化,复现原报错信息。

若你停留在 1.0.3 且页面卡在 "Failed to load plugins",直接升级即可:

dsh plugin --profile web add dsh-multi-chat

v1.0.3

Choose a tag to compare

@daetz-coder daetz-coder released this 19 Aug 04:28

v1.0.3

dsh-multi-chat install now makes registry installs always resolve the newest version.

pnpm ≥ 11 ships a minimumReleaseAge supply-chain guard (default cutoff: 1 day) that silently skips freshly published versions — so dsh plugin --profile web add dsh-multi-chat could fall back to an older release right after a publish.

Changed

  • bin/dsh-multi-chat.mjs (install): after installing, writes minimumReleaseAge: 0 into the profile's pnpm-workspace.yaml (idempotent; respects an explicit user-set value). Verified end-to-end against a temp $DSH_HOME profile: workspace file created with the setting, plugin installed as file: dependency, bundle layer reconciled.
  • README (EN/ZH): documents the default cutoff (1 day), the manual one-line fix, and the CLI's automatic handling; tarball examples bumped to 1.0.3.

For users

dsh plugin --profile web add dsh-multi-chat        # after this release, resolves latest
# …or, if a stale version appears:
#   add  minimumReleaseAge: 0  to  ~/.dsh/profiles/web/pnpm-workspace.yaml  and re-run
npx dsh-multi-chat install                          # does that automatically

Offline tarball attached: dsh-multi-chat-1.0.3.tgz

v1.0.2

Choose a tag to compare

@daetz-coder daetz-coder released this 19 Aug 04:13

v1.0.2

Documentation-only fix on top of v1.0.1 (published and verified end-to-end: one-command install → fresh dsh web boot → wall client entry + /multi/api/* routes live).

Added

  • README (EN/ZH): pnpm ≥ 11 minimumReleaseAge gotcha — pnpm 11's supply-chain guard skips freshly published versions. If dsh plugin --profile web add dsh-multi-chat resolves an older version, add minimumReleaseAge: 0 to ~/.dsh/profiles/web/pnpm-workspace.yaml and re-run.

Verified in v1.0.1

  • dsh plugin --profile web add dsh-multi-chat → installs [email protected], auto-reconciles dsh.profile.bundles.
  • Fresh dsh web boot mounts the plugin: client entry in boot HTML + /multi/api/ports returns live JSON.
  • dsh plugin --profile web remove dsh-multi-chat → manifest returns to in-box bundles, nothing manual to clean.

Uninstall: dsh plugin --profile web remove dsh-multi-chat
Offline tarball attached: dsh-multi-chat-1.0.2.tgz

v1.0.1

Choose a tag to compare

@daetz-coder daetz-coder released this 19 Aug 04:01

v1.0.1

Docs & distribution polish — everything is verified working (unit suite 20/20 green, tarball content verified).

  • One-command install from the npm registry: dsh plugin --profile web add dsh-multi-chat (DSH auto-mounts the bundle layer via dsh.bundle.patch — no manual patch edits).
  • Single uninstall command for every channel: dsh plugin --profile web remove dsh-multi-chat.
  • README (EN/ZH): install/uninstall cheat-sheet covering registry / npx / global CLI / tarball / git-clone channels; corrected install-flow wording to match npm pack + dsh plugin add.

Install (any of):

dsh plugin --profile web add dsh-multi-chat      # one-command (registry)
npx dsh-multi-chat install                       # npx (packs + installs tarball)
npm i -g dsh-multi-chat && dsh-multi-chat install # global CLI
# offline: dsh plugin --profile web add ./dsh-multi-chat-1.0.1.tgz

Uninstall:

dsh plugin --profile web remove dsh-multi-chat   # then restart dsh web

For repeatability, the exact npm pack tarball is attached as dsh-multi-chat-1.0.1.tgz.

v0.6.5 — Official DSH bundle form + bilingual docs

Choose a tag to compare

@daetz-coder daetz-coder released this 17 Aug 03:27

dsh-multi-chat v0.6.5

Multi-window wall for DeepSeek Harness — run & monitor N DSH conversations side-by-side, with an authenticated LAN gateway for phone/tablet access.

多窗口墙插件:在 DeepSeek Harness 里并排运行、监控多个对话实例,内置带口令认证的局域网网关,手机/平板也能看。

What's new / 本次更新

Official DSH bundle form (the big one / 重大变更)

This release adopts the official DSH plugin form — the plugin now ships its own dsh.bundle.patch declaration pointing at an in-package cordis.patch.yml. This unlocks the Cordis-native experience:

  • Install → npx dsh-multi-chat install (or dsh plugin --profile web add <tarball>) — DSH auto-appends the package to dsh.profile.bundles and mounts its bundle layer. No manual profile patch edits, ever.
  • Uninstall → dsh plugin --profile web remove @deepseek-ai/dsh-client-ui-multi-wall — one command, nothing manual to clean up.
  • Fully live-tested: install → auto-mount → plugin routes (/multi/api/ports) working inside a running dsh web → clean uninstall.

本版本改为官方 DSH bundle 形态:插件自带 dsh.bundle.patch 声明(指向包内 cordis.patch.yml),安装后 DSH 自动把它加入 bundle 层栈并挂载——再也无需手改 profile 的 cordis.patch.yml;卸载一条命令干净完成。

Also in this release / 其他

  • Bilingual README: English README.md + Chinese README.zh.md(双语 README)
  • Bilingual distribution docs / 双语分发文档
  • Screenshots: Windows dual-chat, iPad dual-chat, Windows triple-chat(三张效果图)

Install / 安装

npx dsh-multi-chat install
npx dsh-multi-chat start --ports 3080,3081,3082

Uninstall / 卸载

dsh plugin --profile web remove @deepseek-ai/dsh-client-ui-multi-wall

Resources / 资源