@klarkxy/dsh-current-title 0.2.2 → 0.2.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/README.md +16 -28
- package/docs/README.zh-CN.md +16 -28
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,49 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
# Auto Title
|
|
2
2
|
|
|
3
3
|
<!-- release-state-note -->
|
|
4
4
|
|
|
5
|
-
Keeps a DSH session title on the task you are working on right now, and leaves a name you set by hand alone.
|
|
6
|
-
|
|
7
5
|
[简体中文](docs/README.zh-CN.md)
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
Keeps each DeepSeek Harness session title on the task you are working on. A title you rename by hand is never overwritten.
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
```text
|
|
10
|
+
0903 | Fix | Login callback fails
|
|
11
|
+
```
|
|
12
12
|
|
|
13
13
|
## Install
|
|
14
14
|
|
|
15
|
-
Requires Node.js ≥22 (26 verified) and DSH `0.1.7-rc.2` or later. The **Auto Title** entry starts enabled and can be disabled in plugin settings. Native title storage and scheduling come from the host `sessionTitle`; generation uses the host `llm` service. Install the published package into the target profile:
|
|
16
|
-
|
|
17
15
|
```sh
|
|
18
16
|
dsh plugin --profile web add @klarkxy/dsh-current-title
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
Replace `web` with your profile name.
|
|
22
|
-
|
|
23
|
-
Hosts that bundle this feature usually enable it by default; where the host supports live plugin switching, the switch under Settings → Plugins takes effect without a restart. Installation or removal may require a restart when the host asks for one.
|
|
19
|
+
Replace `web` with your profile name and restart it if DSH asks. Auto Title is enabled after installation and can be turned off in the plugin list.
|
|
24
20
|
|
|
25
|
-
##
|
|
21
|
+
## Use
|
|
26
22
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- `status` — current settings, slot support and ownership, and per-session title state (title, source kind, generating, pinned) when `sessionId` is given.
|
|
30
|
-
- `settings` — update the stored prompt and model with compare-and-swap (`{ prompt?, model?, expectedRevision }`). An empty prompt keeps the built-in instruction. An empty model follows the live session model and then the host default chat model. The type-label locale stays `auto`.
|
|
31
|
-
- `regenerate` — regenerate one session's title (`{ sessionId }`); fails with `not-found` for an unknown session and `unavailable` while the title provider is inactive.
|
|
32
|
-
|
|
33
|
-
## Title shape
|
|
34
|
-
|
|
35
|
-
```text
|
|
36
|
-
0903 | 修复 | 登录回调失败
|
|
37
|
-
```
|
|
23
|
+
Titles update automatically. Under **Plugins → Auto Title** you can:
|
|
38
24
|
|
|
39
|
-
|
|
25
|
+
- choose whether titles follow every message or only the first one;
|
|
26
|
+
- add your own title instruction;
|
|
27
|
+
- pick a title model (empty follows the current session model);
|
|
28
|
+
- regenerate the title of the open session.
|
|
40
29
|
|
|
41
|
-
##
|
|
30
|
+
## Limits
|
|
42
31
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- Disabling cancels work in progress and drops late results.
|
|
32
|
+
- Each title costs one model call; failed generations keep the existing title.
|
|
33
|
+
- Turning the plugin off hands titles back to the built-in DSH title feature.
|
|
46
34
|
|
|
47
35
|
## License
|
|
48
36
|
|
|
49
|
-
[SATA License 2.1](LICENSE)
|
|
37
|
+
[SATA License 2.1](LICENSE)
|
package/docs/README.zh-CN.md
CHANGED
|
@@ -1,49 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
# 自动标题
|
|
2
2
|
|
|
3
3
|
<!-- release-state-note -->
|
|
4
4
|
|
|
5
|
-
让会话标题跟着你手头的任务走;你手动改过的名字不会被覆盖。
|
|
6
|
-
|
|
7
5
|
[English](../README.md)
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
让 DeepSeek Harness 的会话标题跟着你手头的任务走。你手动改过的名字不会被覆盖。
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
```text
|
|
10
|
+
0903 | 修复 | 登录回调失败
|
|
11
|
+
```
|
|
12
12
|
|
|
13
13
|
## 安装
|
|
14
14
|
|
|
15
|
-
需要 Node.js ≥22(已验证 26)与 DSH `0.1.7-rc.2` 或更高版本。「自动标题」默认启用,可在插件设置中关闭。标题写入宿主 `sessionTitle`,由宿主调度;生成使用宿主 `llm` 服务。把已发布包装进目标 profile:
|
|
16
|
-
|
|
17
15
|
```sh
|
|
18
16
|
dsh plugin --profile web add @klarkxy/dsh-current-title
|
|
19
17
|
```
|
|
20
18
|
|
|
21
|
-
把 `web` 换成你的 profile
|
|
22
|
-
|
|
23
|
-
部分宿主会预装并默认启用本功能;宿主支持热切换时,通过「设置 → 插件」开关无需重启。宿主提示需要重启时,安装或移除后重启。
|
|
19
|
+
把 `web` 换成你的 profile 名,DSH 提示时重启。安装后默认启用,可在插件列表中关闭。
|
|
24
20
|
|
|
25
|
-
##
|
|
21
|
+
## 使用
|
|
26
22
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- `status` — 当前设置、槽位支持与归属;传入 `sessionId` 时附带该会话的标题状态(标题、来源类型、是否生成中、是否被手动固定)。
|
|
30
|
-
- `settings` — 按比较并交换修订号更新提示词和模型(`{ prompt?, model?, expectedRevision }`)。提示词留空使用内置说明;模型留空先跟随当前会话模型,再回落到宿主默认对话模型。类型标签语言保持 `auto`。
|
|
31
|
-
- `regenerate` — 重新生成单个会话的标题(`{ sessionId }`);会话不存在报 `not-found`,标题服务未就绪报 `unavailable`。
|
|
32
|
-
|
|
33
|
-
## 标题形状
|
|
34
|
-
|
|
35
|
-
```text
|
|
36
|
-
0903 | 修复 | 登录回调失败
|
|
37
|
-
```
|
|
23
|
+
标题会自动更新。在「插件 → 自动标题」里可以:
|
|
38
24
|
|
|
39
|
-
|
|
25
|
+
- 选择标题跟随每条消息,还是只看第一条消息;
|
|
26
|
+
- 填写自己的标题提示词;
|
|
27
|
+
- 选择标题模型(留空跟随当前会话模型);
|
|
28
|
+
- 重新生成当前会话的标题。
|
|
40
29
|
|
|
41
|
-
##
|
|
30
|
+
## 限制
|
|
42
31
|
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- 关闭插件会取消在途生成并丢弃迟到结果。
|
|
32
|
+
- 每次生成标题会调用一次模型;生成失败时保留原标题。
|
|
33
|
+
- 关闭插件后,标题交还给 DSH 自带的标题功能。
|
|
46
34
|
|
|
47
35
|
## 许可证
|
|
48
36
|
|
|
49
|
-
[SATA License 2.1](../LICENSE)
|
|
37
|
+
[SATA License 2.1](../LICENSE)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@klarkxy/dsh-current-title",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Auto Title: keep session titles following the latest task; names you set by hand stay put.",
|
|
5
5
|
"icon": "./icon.svg",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"test": "vitest run --root ../.. --config vitest.editor-plugins.config.ts --maxWorkers=2 plugins/dsh-current-title/src"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@klarkxy/dsh-model-route": "0.2.
|
|
77
|
-
"@klarkxy/dsh-plugin-kit": "0.3.
|
|
76
|
+
"@klarkxy/dsh-model-route": "0.2.3",
|
|
77
|
+
"@klarkxy/dsh-plugin-kit": "0.3.3",
|
|
78
78
|
"zod": "^4.1.5"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
@@ -125,6 +125,6 @@
|
|
|
125
125
|
"registry": "https://registry.npmjs.org/"
|
|
126
126
|
},
|
|
127
127
|
"dshRelease": {
|
|
128
|
-
"contentHash": "
|
|
128
|
+
"contentHash": "0536ebebcfa8587cbfd445c8b158e9ae1d777ab7f459312aa16c27eb1b26a630"
|
|
129
129
|
}
|
|
130
130
|
}
|