Commit Graph

11 Commits

Author SHA1 Message Date
qyh15 2fb87d1904 release: workspace-groups-local 1.0.0 2026-10-28 18:44:51 +08:00
qyh15 fe3b9b0503 chore: standalone local plugin identity (workspace-groups-local) 2026-10-28 16:05:29 +08:00
qyh15 a17f2ef153 fix(folders): keep a remote terminal for sessions in mirror subfolders
remote-ssh resolves a session's remote side by reading .remote-ssh.json at the session cwd and never walks up, so a session started in <mirror>/sub silently fell back to a local terminal. The folders route gained POST, which stamps the workspace's connection record into the new subfolder with remotePath adjusted to the matching remote directory; remote-ssh always excludes that file from sync. The client asks for the stamp right after adding such a folder.
2026-10-28 15:33:52 +08:00
qyh15 d166d4a872 fix(folders): remote-ssh projects only take mirror subdirectories
@zhangfengshun/dsh-remote-ssh registers a remote workspace as an ordinary workspace whose directory is a local mirror of the remote root. The folder picker would have accepted any local directory for such a project, and sessions started there would never sync. The host now reports the mirror base alongside the overlay, the dialog swaps the picker for a relative-path field for mirror-backed projects, and joinSubpath refuses absolute input and .. escapes so a typo cannot leave the mirror.
2026-10-28 15:21:04 +08:00
qyh15 0db6e06ccf feat(sidebar): multi-root workspaces (extra folders + one root per project)
A DSH workspace owns exactly one canonical directory, so the folder layer is a plugin-side overlay instead of a core change: \/workspace-groups.folders.json stores extra folders and the chosen root per workspace id (strict on write, tolerant on read). The tree gains a folder row only when a project actually has extras, and sessions are partitioned by their recorded cwd with the most specific folder winning. A folder row can start a session in its own directory through sessions.create({workspaceId, cwd}); the base folder keeps the platform gesture so repeated clicks reuse the blank session. Folders start expanded so attaching one never hides rows that were already visible.
2026-10-28 00:41:51 +08:00
qyh15 133b54d69d feat: pinned tabs, tab context menu and group appearance (0.5.0)
Tab strip: pinned block, drag reorder with cross-boundary pin flip, middle-click close, double-click tab rename (never rewrites the session), context menu (close / others / right / pin / rename), responsive overflow; persistence v2 keeps pinned+title and still reads v1.

Sidebar: per-group colour and icon (20 presets or 1-4 char glyph) plus pinning, stored in the manual overlay 'appearance' map with strict-write/tolerant-read validation; animated group folding with the flower-branch overlay suppressed while rows move.

Tests: pure-logic suites for tabs, appearance partition and overlay parsing; verified by tools/verify-tabs.mjs and tools/verify-appearance.mjs (vitest cannot spawn in this sandbox).
2026-10-27 20:11:32 +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 fcaf221ac0 feat(v0.7): 顶层拖放落点改为插入横线 + 顶层项目可排序
- 顶层落点 = 插入横线(去掉整块高亮/虚线落点区):顶层项目行上下半 →
  .wgInsertBefore/.wgInsertAfter(可排序);顶层行下方空白 → 末尾横线;
  顶层为空 → 最后分组行下方独立横线(.wgTopLevelEmpty)
- 自动归顶层:落点不在任何分组内 → assignments[wsid]=null + 写入
  workspaceOrder[__topLevel__] 位置(moveBefore/moveAfter)
- 顶层项目可排序:deriveTopLevel 按 __topLevel__ 手动顺序(缺省 host 顺序)
- 修复两个 bug:
  - host 校验(validateManualGroups)拒绝 workspaceOrder[__topLevel__],
    导致拖出/顶层排序 PUT 400 静默失败 → 放行该保留 key
  - 拖到两行之间却落在上一行上面:moveWorkspaceTo 顶层分支用 __topLevel__
    存量(只含已排序项目)作为排序基准,其他顶层项目未进列表被排到后面 →
    改为取当前全部顶层项目全集定位
- 验证脚本:新增'拖到顶层行下半=after'断言、cat1 按 DOM 选非空分组、
  groupName 防重名、展开时序容错;真机 46/46 全过
- README 中英双语同步 v0.7(横线落点 + 顶层排序 + 验证记录 46/46)
2026-08-22 21:37:55 +03:00
zcol 3e494b0cfa feat: 顶层项目行模型 + 按级别收起恢复 + 顶层整区落点与图标区分
- v0.5: 删除「未分类」桶,不归组项目渲染为顶层项目行;null 覆盖=强制顶层;
  删除分组成员回顶层;拖拽/菜单移出分组(树中无未分类桶)
- v0.6: 拖动只收起被拖级别(拖项目收项目行、分组行不收;拖分组收分组行、
  项目行不收),dragend 恢复 dragstart 展开快照
- v0.6.1: 整个顶层区域为移出落点(拖拽中整区高亮 / 空顶层文字落点区,
  行间空白可 drop);项目行改用项目符号图标与分组文件夹区分;
  行 drop stopPropagation 防重复移出
- 验证脚本:按级别收起/恢复、图标区分、顶层区域空白 drop 断言(42/42);
  排序/拖出测试改用手动分组,对用户环境成员数变化健壮
- README 中英双语同步 v0.6.1,替换截图
2026-08-22 02:57:51 +03: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