dsh-manage-session 0.4.8 → 0.5.3

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.en.md +4 -0
  3. package/README.md +4 -0
  4. package/cordis.patch.yml +6 -1
  5. package/dsh.plugin.json +22 -22
  6. package/lib/client.js +3848 -202
  7. package/lib/index.d.ts +759 -29
  8. package/lib/index.js +2604 -93
  9. package/locale/de.json +6 -0
  10. package/locale/en.json +6 -0
  11. package/locale/es.json +6 -0
  12. package/locale/fr.json +6 -0
  13. package/locale/it.json +6 -0
  14. package/locale/ja.json +6 -0
  15. package/locale/ko.json +6 -0
  16. package/locale/ru.json +6 -0
  17. package/locale/zh.json +6 -0
  18. package/package.json +43 -32
  19. package/src/client/bridge-scope.ts +213 -0
  20. package/src/client/index.ts +154 -26
  21. package/src/client/locales.ts +857 -223
  22. package/src/client/panel.tsx +139 -118
  23. package/src/client/search/card.tsx +563 -0
  24. package/src/client/search/host-api.ts +208 -0
  25. package/src/client/search/locales.ts +780 -0
  26. package/src/client/search/manage.tsx +400 -0
  27. package/src/client/search/panel.tsx +815 -0
  28. package/src/client/search/platform.ts +136 -0
  29. package/src/config.ts +54 -5
  30. package/src/host/history/archive-source.ts +48 -0
  31. package/src/host/history/archive.ts +56 -1
  32. package/src/host/history/favorites.ts +71 -0
  33. package/src/host/index/archive-source.ts +90 -0
  34. package/src/host/index/engine.ts +571 -0
  35. package/src/host/index/extract.ts +272 -0
  36. package/src/host/index/peers.ts +62 -0
  37. package/src/host/index/rebuild.ts +368 -0
  38. package/src/host/index/schema.ts +136 -0
  39. package/src/host/index/snapshot.ts +135 -0
  40. package/src/host/index/sync.ts +286 -0
  41. package/src/host/registry/archive-registry.ts +317 -0
  42. package/src/host/settings-bridge.ts +237 -0
  43. package/src/index.ts +1421 -532
package/CHANGELOG.md CHANGED
@@ -1,5 +1,41 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.3(DSH 0.2.1-rc.1 适配:webStartup 守卫 + 清单补枚,同 release)
4
+
5
+ ### 修复 —— 宿主服务更名 webRuntime→webStartup(守卫项,装载即运行炸面)
6
+ - 0.2.1-a.2 起宿主服务 `webRuntime` 更名 `webStartup`:`inject` 声明改钉新名,读取面改
7
+ `ctx.webStartup ?? ctx.get?.("webRuntime")` 双名回退链(能力探测不分派,a.2 前后宿主通吃)。
8
+ 只补清单不发本修复 = rc.1 装载即僵死(总计划裁决 2 四炸仓之一)。
9
+ ### 新增 —— 装载判据补 0.2.1-rc.1
10
+ - `scripts/hosts.mjs` supportedHosts 追加 `0.2.1-rc.1`(16 项);engines/5 个 dsh peer/manifest 经
11
+ sync-hosts 同串精确枚举;`developmentHost` 换代 0.2.1-rc.1(devDeps 实装验证前已核 node_modules)。
12
+
13
+ ## 0.5.2(merge-search-index 线转正,0.5.0-beta.1→18 全跨度)
14
+
15
+ > 本线(merge-search-index 分支)此前以 0.5.0-beta.1→18 迭代,beta.13 曾短暂挂
16
+ > latest;本版转稳定版并接回 latest。beta.14-17 为 pack 迭代(file: 依赖按版本
17
+ > 去重要求同名重打包必 bump,无代码变更)。
18
+
19
+ ### 新增 —— R1 统一搜索索引 + 管理台(beta.1-8)
20
+
21
+ - 统一 FTS5 内容索引(schema v5):标题三源供给、收藏/日期筛选,管家面板内置
22
+ 搜索台(Quest 板布局、workspace 定位 chips、分组收拢/展开全部)。
23
+ - **P1 服务替换**:归档/取消归档/清理全部免重启(内存路径直改 +
24
+ `StewardWorkspaceRegistry` 墓碑),`deleteSession` 七步链;会话删除带内容文件
25
+ 兜底;purge 侧如实上报备份处置(承接 0.4.7/0.4.8 的署名转换与备份审计)。
26
+
27
+ ### 修复 —— 构建自包含(beta.11-13)
28
+
29
+ - 宿主双入口自包含构建:修复 chunk 漏发导致的整包导入失败;P1 服务替换出发布
30
+ 产物清洗(beta.8-12 事故版本退役,check-release 发布防漏守卫)。
31
+
32
+ ### 新增 —— webServer 设置桥(beta.18,T20-b)
33
+
34
+ - 两张设置卡(搜索索引 / 会话管家)的数据面改走自家 webServer 桥(describe/
35
+ mutate),≤0.1.5 宿主上不再依赖 client settings 句柄死路(settingsScope 死路
36
+ 与 configForms 缺席双兜底)——家族节贡献卡契约 §4-2(数据桥化)落线。
37
+ - 注入 prepack=npm run build(stale-build 三防线,320ce31)。
38
+
3
39
  ## 0.4.8
4
40
 
5
41
  ### 修复 —— ST1:转换对第一方生产者名与宿主分叉
package/README.en.md CHANGED
@@ -10,6 +10,10 @@ A DSH web plugin for **session history files** and **session health checks**. It
10
10
  > Naming boundary: **this package ships no search or index features**. Search/indexing belongs to
11
11
  > `dsh-search-index`; neither side mentions or re-interprets the other's fields.
12
12
 
13
+ <!-- hosts-sync:begin -->
14
+ <!-- Generated by scripts/sync-hosts.mjs; single source in scripts/hosts.mjs -->
15
+ Supports DSH 0.1.0-rc.2, 0.1.0-rc.3, 0.1.0-rc.6, 0.1.0-rc.7, 0.1.0-rc.8, 0.1.1-rc.1, 0.1.1-rc.2, 0.1.2-rc.1, 0.1.5-rc.1, 0.1.5-rc.2, 0.1.5-rc.3, 0.1.7-rc.1, 0.1.7-rc.2, 0.2.0-rc.1, 0.2.0-rc.2, 0.2.1-rc.1 (enumerated peers — a per-rc tested whitelist; alpha/beta releases are out of scope).
16
+ <!-- hosts-sync:end -->
13
17
  ## Screenshots
14
18
 
15
19
  A **Session Steward** entry sits next to Search and Settings at the bottom of the sidebar:
package/README.md CHANGED
@@ -28,6 +28,10 @@ DSH Web 插件:**会话历史文件 + 会话健康检查**。
28
28
  > 命名边界:**本插件不提供搜索与索引**。搜索/独立索引属于另一片(`dsh-search-index`),
29
29
  > 两侧互不出现对方的子域字眼,也不互相解释对方字段。
30
30
 
31
+ <!-- hosts-sync:begin -->
32
+ <!-- 由 scripts/sync-hosts.mjs 生成,勿手改;单源在 scripts/hosts.mjs -->
33
+ 支持 DSH 0.1.0-rc.2、0.1.0-rc.3、0.1.0-rc.6、0.1.0-rc.7、0.1.0-rc.8、0.1.1-rc.1、0.1.1-rc.2、0.1.2-rc.1、0.1.5-rc.1、0.1.5-rc.2、0.1.5-rc.3、0.1.7-rc.1、0.1.7-rc.2、0.2.0-rc.1、0.2.0-rc.2、0.2.1-rc.1(枚举 peer,逐 rc 实测白名单;alpha/beta 不在支持范围)。
34
+ <!-- hosts-sync:end -->
31
35
  ## 界面预览
32
36
 
33
37
  侧边栏底部新增 **「会话管家」** 入口,与搜索、设置并列:
package/cordis.patch.yml CHANGED
@@ -2,10 +2,15 @@
2
2
  #
3
3
  # 通过官方 CLI 安装时 ——
4
4
  #
5
- # dsh plugin --profile <name> add dsh-manage-session
5
+ # dsh plugin --profile web add dsh-manage-session
6
6
  #
7
7
  # —— 命令会把 `dsh-manage-session` 追加到 bundle 栈,profile 启动时合并本补丁
8
8
  # (单个 insert,插入本插件行)。
9
+ #
10
+ # 注:P1「替换官方 workspace 注册表」已撤编(beta.8-12 实测桌面宿主对用户层
11
+ # 禁用核心服务行会触发 INACTIVE_EFFECT 启动致命)——归档/取消归档的即时生效
12
+ # 不依赖替换(官方 archiveSession/unarchiveSession 内存 API);仅删除保留
13
+ # 文件路径语义(操作后需重启侧栏生效)。子类源码留存 src/host/registry/ 备查。
9
14
  - insert:
10
15
  - id: dsh-manage-session
11
16
  name: 'dsh-manage-session'
package/dsh.plugin.json CHANGED
@@ -1,22 +1,22 @@
1
- {
2
- "id": "dsh-manage-session",
3
- "name": "dsh-manage-session",
4
- "version": "0.4.1",
5
- "description": {
6
- "en": "Session Steward (DSH 0.1.5 line): browse and bulk-prune the official session archive set, and run a four-gate session health checkup that ends in a reversible, backup-first prescription. Never rewrites session logs.",
7
- "zh": "会话管家(DSH 0.1.5 专线):浏览并批量清理官方会话归档集合,并对会话做四门体检,最终给出可逆、先备份的处方。不改写会话日志。"
8
- },
9
- "homepage": "https://github.com/drscrewdriver/dsh-manage-session",
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/drscrewdriver/dsh-manage-session.git"
13
- },
14
- "license": "MIT",
15
- "engines": {
16
- "dsh": ">=0.1.7-rc.1 <0.1.8-0"
17
- },
18
- "components": {
19
- "host": "lib/index.js",
20
- "client": "lib/client.js"
21
- }
22
- }
1
+ {
2
+ "id": "dsh-manage-session",
3
+ "name": "dsh-manage-session",
4
+ "version": "0.5.3",
5
+ "description": {
6
+ "en": "Session Steward (merged package): archive browsing & cleanup, a four-gate session health checkup with reversible prescriptions, plus an independent FTS5 content-search index (title/content modes, incremental sync, non-destructive rebuild, snapshot export/import). Never rewrites session logs.",
7
+ "zh": "会话管家(合并包):归档浏览与清理、四门体检(可逆处方),外加独立 FTS5 会话内容搜索(标题/内容双模式、增量同步、非破坏性整理、快照导入导出)。不改写会话日志。"
8
+ },
9
+ "homepage": "https://github.com/drscrewdriver/dsh-manage-session",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/drscrewdriver/dsh-manage-session.git"
13
+ },
14
+ "license": "MIT",
15
+ "engines": {
16
+ "dsh": "0.1.0-rc.2 || 0.1.0-rc.3 || 0.1.0-rc.6 || 0.1.0-rc.7 || 0.1.0-rc.8 || 0.1.1-rc.1 || 0.1.1-rc.2 || 0.1.2-rc.1 || 0.1.5-rc.1 || 0.1.5-rc.2 || 0.1.5-rc.3 || 0.1.7-rc.1 || 0.1.7-rc.2 || 0.2.0-rc.1 || 0.2.0-rc.2 || 0.2.1-rc.1"
17
+ },
18
+ "components": {
19
+ "host": "lib/index.js",
20
+ "client": "lib/client.js"
21
+ }
22
+ }