Commit Graph

3 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
zcol e08c4ed1e8 v0.4: 拖拽插入位置指示 + 上下半落点判定(修复分组向下拖逻辑)
- 根因:分组排序仅支持 moveBefore(插到目标行前),向下拖想放目标后
  却落在其前;且无任何插入位置指示
- 新增 core/matcher.ts moveAfter(与 moveBefore 对称,目标缺失=追加)
- 拖拽按行上下半判定落点:上半=行前 / 下半=行后;2px 插入指示线
  .wgInsertBefore / .wgInsertAfter 实时显示落点,drop 按事件坐标即时重判
- 分组与项目排序均支持前/后双向;拖到未分类=追加末尾(恒最末)
- 更新展示截图 screenshot.png
- 单测 65/65,真机 CDP 30/30(含向下拖 6 项新断言),零侵入+现场恢复
2026-08-22 01:20:12 +03: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