dsh-more 0.0.3 → 0.0.5

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 (32) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +5 -3
  3. package/README.zh-CN.md +5 -3
  4. package/dist/client.js +88 -513
  5. package/dist/index.js +154 -58
  6. package/dist/types/client/index.d.ts +5 -1
  7. package/dist/types/generated/host-settings-schema.d.ts +2 -2
  8. package/dist/types/generated/patch-catalog.d.ts +4 -4
  9. package/dist/types/kernel/client/activation.d.ts +2 -1
  10. package/dist/types/kernel/client/config-card.d.ts +2 -2
  11. package/dist/types/kernel/client/message-actions.d.ts +4 -0
  12. package/dist/types/kernel/client/patch.d.ts +1 -1
  13. package/dist/types/kernel/host/settings.d.ts +1 -1
  14. package/dist/types/patches/message-delete/client/index.d.ts +1 -1
  15. package/dist/types/patches/message-delete/host/message-selection.d.ts +3 -3
  16. package/dist/types/patches/message-delete/host/projection.d.ts +26 -3
  17. package/dist/types/patches/message-edit/client/index.d.ts +1 -1
  18. package/dist/types/patches/message-edit/host/edit-continuation.d.ts +3 -3
  19. package/dist/types/patches/model-reasoning-efforts/client/index.d.ts +17 -2
  20. package/dist/types/patches/session-auto-title/client/index.d.ts +2 -0
  21. package/dist/types/patches/session-auto-title/host/generate.d.ts +6 -0
  22. package/dist/types/patches/session-auto-title/shared.d.ts +2 -0
  23. package/dist/types/platform/dsh/client/message-targets.d.ts +3 -2
  24. package/dist/types/platform/dsh/client/runtime.d.ts +2 -1
  25. package/dist/types/platform/dsh/client/session-sync.d.ts +4 -2
  26. package/dist/types/platform/dsh/host/session-history.d.ts +3 -3
  27. package/dsh.plugin.json +1 -1
  28. package/package.json +65 -46
  29. package/dist/types/patches/conversation-quick-navigation/client/index.d.ts +0 -22
  30. package/dist/types/patches/conversation-quick-navigation/client/navigation.d.ts +0 -26
  31. package/dist/types/patches/conversation-quick-navigation/shared.d.ts +0 -1
  32. /package/dist/types/patches/{conversation-quick-navigation → session-auto-title}/host/index.d.ts +0 -0
package/CONTRIBUTING.md CHANGED
@@ -12,7 +12,7 @@
12
12
 
13
13
  - Node.js `22.19.x` 或 `>= 24`;
14
14
  - pnpm;
15
- - 与项目当前依赖匹配的 DSH。本版本面向 DSH `0.1.0-rc.7`。
15
+ - 与项目当前依赖匹配的 DSH。本版本面向 DSH `0.1.2-rc.1`。
16
16
 
17
17
  首次检出后执行:
18
18
 
package/README.md CHANGED
@@ -6,7 +6,7 @@ Practical, independently switchable patches for missing context and history cont
6
6
 
7
7
  `dsh-more` integrates with the existing DSH interface instead of adding a separate management dashboard. Its current patch set can edit a user message and restart from that point, remove one message while preserving the surrounding context, and permanently delete a session while leaving native archive behavior intact.
8
8
 
9
- > **Compatibility:** the current release targets DeepSeek Harness `0.1.0-rc.7` and requires Node.js `>= 24`. DSH is still a release candidate, so upgrades may require changes in the centralized adapter layer described below.
9
+ > **Compatibility:** the current release targets DeepSeek Harness `0.1.2-rc.1` and requires Node.js `>= 24`. DSH is still a release candidate, so upgrades may require changes in the centralized adapter layer described below.
10
10
 
11
11
  ## Features
12
12
 
@@ -23,7 +23,7 @@ All three switches live under **Settings → Plugins → Plugin configuration
23
23
  ### Requirements
24
24
 
25
25
  - Node.js `>= 24`
26
- - A working `dsh` CLI and a Web profile compatible with DSH `0.1.0-rc.7`
26
+ - A working `dsh` CLI and a Web profile compatible with DSH `0.1.2-rc.1`
27
27
  - Access to the npm registry that publishes `dsh-more`
28
28
 
29
29
  pnpm is needed only when installing or developing from source. For a published release, use the DSH plugin command so the package is installed into the selected DSH profile; do not install it globally with `npm install -g`.
@@ -233,7 +233,9 @@ The repository does not currently contain a full browser end-to-end suite agains
233
233
 
234
234
  ## Compatibility notes
235
235
 
236
- - The current dependency set targets DSH `0.1.0-rc.7`; pre-release API or DOM changes can require adapter updates.
236
+ This update migrates to the split Client services, `useChat` snapshots, settings registration, and session projection APIs, and updates message action row targeting. Dependencies and the lockfile target `0.1.2-rc.1` without the retired `dsh-client-runtime`. For an existing local linked install, rebuild, restart DSH, and reload the page to load both the new Host and Client.
237
+
238
+ - The current dependency set targets DSH `0.1.2-rc.1`; pre-release API or DOM changes can require adapter updates.
237
239
  - In-product DSH More copy is currently primarily Simplified Chinese, although native Copy/Archive selectors recognize both Chinese and English labels.
238
240
  - Message actions operate only on ordinary user messages and assistant messages still present in the current model surface; editing requires a completed owning turn.
239
241
  - Permanent deletion supports DSH persistence locations of kind `jsonl` only.
package/README.zh-CN.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  `dsh-more` 不创建平行的“管理中心”,而是把能力直接嵌入 DSH 现有界面。当前补丁可以编辑用户消息并从该处重新开始、在保留前后上下文的前提下删除单条消息,以及在不改变原生归档语义的情况下永久删除会话。
8
8
 
9
- > **兼容性:** 当前发布面向 DeepSeek Harness `0.1.0-rc.7`,要求 Node.js `>= 24`。DSH 仍是 RC 版本,升级后可能需要调整下文所述的集中适配层。
9
+ > **兼容性:** 当前发布面向 DeepSeek Harness `0.1.2-rc.1`,要求 Node.js `>= 24`。DSH 仍是 RC 版本,升级后可能需要调整下文所述的集中适配层。
10
10
 
11
11
  ## 功能概览
12
12
 
@@ -23,7 +23,7 @@
23
23
  ### 环境要求
24
24
 
25
25
  - Node.js `>= 24`
26
- - 可正常使用的 `dsh` CLI,以及与 DSH `0.1.0-rc.7` 兼容的 Web profile
26
+ - 可正常使用的 `dsh` CLI,以及与 DSH `0.1.2-rc.1` 兼容的 Web profile
27
27
  - 能访问发布 `dsh-more` 的 npm registry
28
28
 
29
29
  只有从源码安装或参与开发时才需要 pnpm。安装已发布版本时,应通过 DSH 插件命令把包加入指定 profile;不要使用 `npm install -g` 全局安装。
@@ -233,7 +233,9 @@ pnpm run package # 构建并生成 npm tarball
233
233
 
234
234
  ## 兼容性说明
235
235
 
236
- - 当前依赖面向 DSH `0.1.0-rc.7`;预发布 API 或 DOM 变化可能要求更新 adapter。
236
+ 本次适配迁移到新版拆分后的 Client 服务、`useChat` 聊天快照、设置注册和会话投影接口,并更新消息操作行定位。依赖与锁文件统一到 `0.1.2-rc.1`;不再加载已停止更新的 `dsh-client-runtime`。已有本地链接安装在重新构建后,需要重启 DSH 并刷新页面以加载新的 Host 和 Client。
237
+
238
+ - 当前依赖面向 DSH `0.1.2-rc.1`;预发布 API 或 DOM 变化可能要求更新 adapter。
237
239
  - DSH More 的产品内文案目前以简体中文为主;对 DSH 原生 Copy/Archive 元素的定位同时识别中英文标签。
238
240
  - 消息操作只面向仍在当前 model surface 中的普通用户消息和助手消息;编辑要求所属轮次已经完成。
239
241
  - 永久删除只支持 DSH 返回的 `jsonl` 持久化定位。