@max-null/dsh-chinese-thinking 0.2.0 → 0.3.1

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 (3) hide show
  1. package/README.md +49 -36
  2. package/dist/index.js +2 -1
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -1,36 +1,49 @@
1
- # dsh-chinese-thinking
2
-
3
- 一个"小而美"的 DeepSeek Harness 插件,只做一件事:**注入一条固定的 system-prompt section,让 agent 始终用中文思考和回复**——无论用户用什么语言。
4
-
5
- 无存储、无工具、无状态。一条固定文本,前缀稳定、缓存安全。
6
-
7
- ## 注入的文案
8
-
9
- > 始终使用中文进行思考和回复,无论用户使用什么语言。
10
-
11
- ## 用法
12
-
13
- ```bash
14
- npm install @max-null/dsh-chinese-thinking
15
- ```
16
-
17
- 在你的 `cordis.yml` 加一条(`system-prompt` 由宿主已有):
18
-
19
- ```yaml
20
- - id: chinese-thinking
21
- name: '@max-null/dsh-chinese-thinking'
22
- ```
23
-
24
- ## 实现
25
-
26
- ```ts
27
- ctx.systemPrompt.section({
28
- name: 'chinese-thinking',
29
- order: -90, // persona 之前(身份声明 -100 之后),每轮最先读到
30
- text: '始终使用中文进行思考和回复,无论用户使用什么语言。',
31
- })
32
- ```
33
-
34
- ## 依赖(peerDependencies,由宿主提供)
35
-
36
- `@deepseek-ai/cordis`、`@deepseek-ai/dsh-system-prompt`
1
+ # dsh-chinese-thinking
2
+
3
+ 本插件属于 **`@max-null/*` 插件系列**——这一系列共同构成 **[SSID(思灵 · Seek Soul in Darkness)](https://github.com/Max-Null/seek-soul-in-darkness)** 桌面体验。SSID 是整合它们的盒:`dsh-capture` · `dsh-chat-rail` · `dsh-chinese-thinking` · `dsh-draft-polish` · `dsh-guardian` · `dsh-habit` · `dsh-memory` · `dsh-node-appearance` · `dsh-plugin-center` · `dsh-quick-toolbar` · `dsh-skill-mcp-center` · `dsh-ssid-panels` · `dsh-ssid-zh-ui` · `dsh-achievements`。
4
+
5
+ This plugin belongs to the **`@max-null/*` family** — a set of plugins that together form the **[SSID (思灵 · Seek Soul in Darkness)](https://github.com/Max-Null/seek-soul-in-darkness)** desktop experience.
6
+
7
+ 一个"小而美"的 DeepSeek Harness 插件,只做一件事:**注入一条固定的 system-prompt section,让 agent 始终用中文思考和回复**——无论用户用什么语言。
8
+
9
+ 无存储、无工具、无状态。一条固定文本,前缀稳定、缓存安全。
10
+
11
+ ## 注入的文案
12
+
13
+ > 始终使用中文进行思考和回复,无论用户使用什么语言。
14
+
15
+ ## 截图
16
+
17
+ 本插件是**纯提示注入类**:不新增任何按钮、面板或设置项。装完后 agent 会先用中文思考再作答,效果直接体现在会话输出上。
18
+
19
+ > 按《SSiD 开发手册》§9 截图规范:截图须回答「装完会多出/变成什么」的**入口与面板**。
20
+ > 本插件无界面元素,故**不适用**该项要求,改以上述行为效果说明代替。
21
+
22
+ ## 用法
23
+
24
+ ```bash
25
+ npm install @max-null/dsh-chinese-thinking
26
+ ```
27
+
28
+ 在你的 `cordis.patch.yml` 加一条(`system-prompt` 由宿主已有):
29
+
30
+ ```yaml
31
+ - id: chinese-thinking
32
+ name: '@max-null/dsh-chinese-thinking'
33
+ ```
34
+
35
+ ## 实现
36
+
37
+ ```ts
38
+ ctx.systemPrompt.section({
39
+ name: 'chinese-thinking',
40
+ order: -90, // 身份声明(-100)之后、persona(0)之前——行为指令中排位最靠前
41
+ text: '始终使用中文进行思考和回复,无论用户使用什么语言。',
42
+ })
43
+ ```
44
+
45
+ ## SSID 系列
46
+
47
+ ## 依赖(peerDependencies,由宿主提供)
48
+
49
+ `@deepseek-ai/cordis`、`@deepseek-ai/dsh-system-prompt`
package/dist/index.js CHANGED
@@ -10,7 +10,8 @@ export const PROMPT_TEXT = '始终使用中文进行思考和回复,无论用
10
10
  export function apply(ctx) {
11
11
  ctx.systemPrompt.section({
12
12
  name: 'chinese-thinking',
13
- // Before the deployment persona so the instruction is read first every turn.
13
+ // Rendered after the harness identity (-100) and before the deployment persona
14
+ // (0) — the earliest behaviour instruction the model reads.
14
15
  order: -90,
15
16
  text: PROMPT_TEXT,
16
17
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@max-null/dsh-chinese-thinking",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Injects one system-prompt section so a DeepSeek Harness agent thinks and replies in Chinese",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -48,11 +48,11 @@
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@deepseek-ai/cordis": "^4.0.1",
51
- "@deepseek-ai/dsh-system-prompt": ">=0.0.1-rc.1"
51
+ "@deepseek-ai/dsh-system-prompt": ">=0.1.1-rc.1 <0.3.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@deepseek-ai/cordis": "^4.0.1",
55
- "@deepseek-ai/dsh-system-prompt": ">=0.0.1-rc.1",
55
+ "@deepseek-ai/dsh-system-prompt": ">=0.1.1-rc.1 <0.3.0",
56
56
  "@types/node": "^26.2.0",
57
57
  "tsx": "^4.0.0",
58
58
  "typescript": "^5.5.0",