Commit Graph

4 Commits

Author SHA1 Message Date
qyh15 36b9cb2bc0 fix(folders): make the folder overlay crash-safe and consistent
The folder sidecar was written as a whole document with no concurrency
control, and any read failure silently degraded to an empty document, so a
later edit could erase every workspace's folder configuration. Rework the
read/write path end to end:

- Agent side: expose a content revision, require If-Match on PUT, answer
  409 with the current document, serialise read-compare-write, and fail the
  GET loudly instead of serving an empty overlay. Unknown schema versions
  are reported and never downgraded back to v1.
- Client: load/save report failure instead of fabricating an empty
  document, edits go through one serial queue with optimistic update,
  rollback on error, and reload on conflict. Editing is blocked while the
  overlay cannot be read. Creating a workspace is compensated when the
  follow-up save fails, so no orphan workspace is left behind.
- Paths: normalise NFC and lexically fold "." and "..", decide
  absoluteness by spelling instead of process.platform, share one
  implementation between core and host, and keep an existing root when a
  member is re-registered at the same path.
- Remote folders: resolve the owner root from the SSH probe instead of the
  "~" alias, and make "subfolder of this project" versus "register a new
  cloud workspace" an explicit choice in the dialog.
- Stop shipping the client source map, which embedded the full TypeScript
  sources in the published package.
- Track the SSH integration plan and cover the new behaviour with tests
  (CAS, persistence, remote path parsing).

Verification: both tsconfigs typecheck clean, 288 tests pass, build
succeeds, and all three ad-hoc verifiers pass.
2026-11-07 17:29:57 +08:00
qyh15 2fb87d1904 release: workspace-groups-local 1.0.0 2026-10-28 18:44:51 +08:00
qyh15 b30f771aeb feat: 以已安装 0.4.2 版本源码重建工作树(顶部会话标签条 / 快切面板 / 分支视图)
仓库 HEAD(942babe, package 版本仍是 0.1.0) 只有侧栏分组浏览器,缺少用户
实际运行的 0.4.2 构建中的会话标签条等模块。本次以
profiles/desktop 中已安装的 @dsh-xhl/workspace-groups@0.4.2 的
lib/client.js.map(内联 sourcesContent)为准重建完整 client 源码树,
并补齐宿主侧 host-tabs.ts 与 /workspace-groups/tabs 路由。

重建结果与安装构建逐字节对齐:
- 宿主产物 lib/index.js 与安装版 diff 行数 0
- 客户端产物 lib/client.js 仅 1 行差异(CSS 虚拟模块内联的绝对路径)
- lib/types 下 27 个 .d.ts 与安装版完全一致

相对仓库 HEAD 新增:SessionTabs / QuickPanel / FlowerBranch / open-folder /
subagent-lineage / store-hook / tab-* 模块,tsdown 平台外置模块补充
@deepseek-ai/dsh-client-store,package 版本对齐 0.4.2。
2026-10-27 17:04:10 +08:00
zcol b56507bcf1 chore: package dsh-workspace-groups v0.1.0 for GitHub distribution
- MIT license, README with install/uninstall + screenshot, .gitignore
- keywords + docs for dsh-plugin topic collection
- commit lib/ so git install needs no build scripts
2026-08-21 23:22:57 +03:00