dsh-more 0.0.2 → 0.0.4
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/CONTRIBUTING.md +1 -1
- package/README.md +16 -3
- package/README.zh-CN.md +16 -3
- package/dist/client.js +1112 -152
- package/dist/index.js +262 -55
- package/dist/types/client/index.d.ts +5 -1
- package/dist/types/generated/host-settings-schema.d.ts +4 -0
- package/dist/types/generated/patch-catalog.d.ts +16 -0
- package/dist/types/kernel/client/activation.d.ts +2 -1
- package/dist/types/kernel/client/config-card.d.ts +2 -2
- package/dist/types/kernel/client/message-actions.d.ts +4 -0
- package/dist/types/kernel/client/patch.d.ts +1 -1
- package/dist/types/kernel/host/settings.d.ts +1 -1
- package/dist/types/patches/conversation-quick-navigation/client/index.d.ts +27 -0
- package/dist/types/patches/conversation-quick-navigation/client/navigation.d.ts +26 -0
- package/dist/types/patches/conversation-quick-navigation/host/index.d.ts +2 -0
- package/dist/types/patches/conversation-quick-navigation/shared.d.ts +1 -0
- package/dist/types/patches/message-delete/client/index.d.ts +1 -1
- package/dist/types/patches/message-delete/host/message-selection.d.ts +3 -3
- package/dist/types/patches/message-delete/host/projection.d.ts +26 -3
- package/dist/types/patches/message-edit/client/index.d.ts +1 -1
- package/dist/types/patches/message-edit/host/edit-continuation.d.ts +3 -3
- package/dist/types/patches/model-reasoning-efforts/client/index.d.ts +54 -0
- package/dist/types/patches/model-reasoning-efforts/host/index.d.ts +2 -0
- package/dist/types/patches/model-reasoning-efforts/host/validate.d.ts +13 -0
- package/dist/types/patches/model-reasoning-efforts/shared.d.ts +51 -0
- package/dist/types/platform/dsh/client/api.d.ts +2 -0
- package/dist/types/platform/dsh/client/message-targets.d.ts +14 -1
- package/dist/types/platform/dsh/client/runtime.d.ts +2 -1
- package/dist/types/platform/dsh/client/session-sync.d.ts +4 -2
- package/dist/types/platform/dsh/host/session-history.d.ts +3 -3
- package/dist/types/platform/dsh/host/wire.d.ts +6 -0
- package/dsh.plugin.json +1 -1
- package/package.json +64 -47
package/CONTRIBUTING.md
CHANGED
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.
|
|
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.
|
|
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`.
|
|
@@ -131,6 +131,17 @@ After confirmation, DSH More cancels a running task, waits for idle, flushes the
|
|
|
131
131
|
|
|
132
132
|
> **Irreversible:** permanent deletion does not archive the session and does not move it into a DSH More trash directory.
|
|
133
133
|
|
|
134
|
+
### Configure model reasoning effort
|
|
135
|
+
|
|
136
|
+
Open **Settings → Models**, expand a provider with **Edit**, and every model entry in the model catalog carries its own **Thinking effort** button:
|
|
137
|
+
|
|
138
|
+
1. Click a model's **Thinking effort**; in the dialog, check the levels the model offers (off / minimal / low / medium / high / xhigh / max) and, for each enabled level, fill in the wire spelling sent to the gateway (defaults to the level name); `off` needs no wire value — "supported, send nothing".
|
|
139
|
+
2. Click **Save**. The change is written to `reasoningEfforts` under `llm-pi-ai.providers.<route>.models[]` in `settings.yaml`, and the composer's model picker immediately offers those levels.
|
|
140
|
+
|
|
141
|
+
You can also check **This model does not reason** (writes `reasoningEfforts: false`) or use **Clear** to drop the field and fall back to the installed catalog. Only `off` may leave its wire value empty, and at least one non-`off` level is required — the same rules the pi-ai adapter enforces when resolving a route. Invalid configurations are rejected before any write, so a bad save never corrupts `settings.yaml`.
|
|
142
|
+
|
|
143
|
+
**Auto-fill:** models added via **Fetch available models** carry no `reasoningEfforts`, which the adapter treats as non-reasoning. After the provider is saved, this patch auto-fills the default `{ low, medium, high }` onto any model that has no `reasoningEfforts`, so a freshly fetched model can think immediately. To keep a model non-reasoning, set it to `reasoningEfforts: false` (explicit `false` is never auto-filled). The default levels can then be tuned per model from the thinking-effort button.
|
|
144
|
+
|
|
134
145
|
## Architecture
|
|
135
146
|
|
|
136
147
|

|
|
@@ -222,7 +233,9 @@ The repository does not currently contain a full browser end-to-end suite agains
|
|
|
222
233
|
|
|
223
234
|
## Compatibility notes
|
|
224
235
|
|
|
225
|
-
|
|
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.
|
|
226
239
|
- In-product DSH More copy is currently primarily Simplified Chinese, although native Copy/Archive selectors recognize both Chinese and English labels.
|
|
227
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.
|
|
228
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.
|
|
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.
|
|
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` 全局安装。
|
|
@@ -131,6 +131,17 @@ dsh plugin --profile web remove dsh-more
|
|
|
131
131
|
|
|
132
132
|
> **不可恢复:** 永久删除不会归档会话,也不会把会话移入 DSH More 回收目录。
|
|
133
133
|
|
|
134
|
+
### 配置模型思考强度
|
|
135
|
+
|
|
136
|
+
打开 **设置 → 模型**,点击某个提供方的 **编辑** 展开「模型目录」,每个模型条目下都有一个 **思考强度** 按钮:
|
|
137
|
+
|
|
138
|
+
1. 点击模型的 **思考强度**,在弹窗中勾选该模型支持的级别(不思考 / 极简 / 低 / 中 / 高 / 极高 / 最高),并为每个开启的级别填写发送给网关的线上值(默认与级别同名);`不思考` 不需要线上值,表示“支持、但不发送任何参数”;
|
|
139
|
+
2. 点击 **保存**。修改会写入 `settings.yaml` 中 `llm-pi-ai.providers.<route>.models[].reasoningEfforts`,会话里的模型选择器随即按此提供级别。
|
|
140
|
+
|
|
141
|
+
也可以勾选 **该模型不支持思考**(写入 `reasoningEfforts: false`),或用 **清除配置** 移除该字段、回到内置目录的能力。只有 `off` 允许留空线上值,且必须至少声明一个非 `off` 的级别,与 pi-ai 适配器的解析规则一致;无效配置会在写入前被拒绝,不会破坏 `settings.yaml`。
|
|
142
|
+
|
|
143
|
+
**自动填充:** 通过 **获取可用模型** 添加的模型默认没有 `reasoningEfforts`,适配器会把它当作不思考。本补丁会在保存提供方后,为**没有任何 `reasoningEfforts` 的模型**自动填入默认思考强度 `{ low, medium, high }`,让新拉取的模型立刻可以思考;如需某个模型不思考,请把它设为 `reasoningEfforts: false`(显式 false 不会被自动填充)。默认级别可用每个模型条目下的思考强度按钮再微调。
|
|
144
|
+
|
|
134
145
|
## 架构
|
|
135
146
|
|
|
136
147
|

|
|
@@ -222,7 +233,9 @@ pnpm run package # 构建并生成 npm tarball
|
|
|
222
233
|
|
|
223
234
|
## 兼容性说明
|
|
224
235
|
|
|
225
|
-
|
|
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。
|
|
226
239
|
- DSH More 的产品内文案目前以简体中文为主;对 DSH 原生 Copy/Archive 元素的定位同时识别中英文标签。
|
|
227
240
|
- 消息操作只面向仍在当前 model surface 中的普通用户消息和助手消息;编辑要求所属轮次已经完成。
|
|
228
241
|
- 永久删除只支持 DSH 返回的 `jsonl` 持久化定位。
|