@240xu/dsh-message-ops 0.10.8 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -61,12 +61,28 @@ dsh plugin --profile web add file:C:/path/to/dsh-message-ops
61
61
 
62
62
  | 方法 | 路径 | 说明 |
63
63
  |---|---|---|
64
- | GET | `/api/message-ops/messages?sessionId=<id>` | 消息级列表(磁盘真相 + 可见性标注 + running 状态) |
64
+ | GET | `/api/message-ops/messages?sessionId=<id>` | 消息级列表(磁盘真相 + 可见性标注 + running 状态);`&view=compact` 只回 `seq/role/snippet/time/visible/shadowed`(体积约 −54%) |
65
+ | GET | `/api/message-ops/search?sessionId=<id>&q=&role=&limit=` | 服务端全文检索(含已回滚消息之外的全部文本),返回 query 对齐片段 |
66
+ | GET | `/api/message-ops/session/trash` | 回收站列表(自动清理过期条目) |
65
67
  | POST | `/api/message-ops/revert` | `{sessionId, seq}` 回滚到该条(含) |
66
68
  | POST | `/api/message-ops/delete` | `{sessionId, seq}` 仅遮蔽该条 |
67
69
  | POST | `/api/message-ops/branch` | `{sessionId, upToSeq}` 分支新会话,返回 `{newId, dir, keptEvents}` |
68
70
  | GET | `/api/message-ops/export?sessionId=<id>&seq=<可选>` | 导出 Markdown(seq ≤ 上界,缺省全部),附件下载 |
69
71
  | POST | `/api/message-ops/restore` | `{sessionId, seq}` 回滚恢复:seq 为某次 revert/delete 标记事件的 seq |
72
+ | POST | `/api/message-ops/session/delete` | `{sessionId, confirmTitle}` 整会话移入回收站(7 天保留;运行中 409) |
73
+ | POST | `/api/message-ops/session/restore` | `{trashId}` 从回收站恢复目录与投影/工作区元数据 |
74
+ | POST | `/api/message-ops/session/purge` | `{trashId}` 永久删除(唯一 destructive 操作) |
75
+
76
+ ### 0.11.0 · 方向 A 面板 + 会话回收站
77
+
78
+ - `src/client.js` 新增右侧功能主义抽屉 `OpsPanel`(560px,≤760px 全屏):
79
+ 消息/回收站双 tab、200ms 防抖搜索、角色过滤、含已回滚开关、46px 固定行高
80
+ 虚拟列表、`/text` 详情、回滚/仅删除/分支、整会话删除(输入标题确认)。
81
+ 旧 `OpsDialog` 保留为 `window.__MOPS_LEGACY_DIALOG === true` 回退。
82
+ - `GET /messages?view=compact` 为面板默认载荷;`GET /search` 提供 500 字符
83
+ 上限的服务端全文检索(LRU 8 corpus 缓存,按 logPath mtime+size 失效)。
84
+ - `src/session-trash.js`:删除 = 目录 `rename` + 投影行/工作区/归档/置顶元数据
85
+ 快照写 `manifest.json`;恢复拒绝覆盖已存在目录(409);purge 才真正删除。
70
86
 
71
87
  ## 0.2.4 UI GAP(ux-scout dsh-ui-spec G-M1)
72
88
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@240xu/dsh-message-ops",
3
- "version": "0.10.8",
3
+ "version": "0.11.0",
4
4
  "description": "DSH web 插件:消息级回滚 / 删除 / 恢复(补 dsh 官方没有的部分)。分支与导出用官方内置能力。",
5
5
  "type": "module",
6
6
  "license": "MIT",