@max-null/dsh-chinese-thinking 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Max-Null
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,36 @@
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: 150, // 工具指引段(100–199),稳定、前缀安全
30
+ text: '始终使用中文进行思考和回复,无论用户使用什么语言。',
31
+ })
32
+ ```
33
+
34
+ ## 依赖(peerDependencies,由宿主提供)
35
+
36
+ `@deepseek-ai/cordis`、`@deepseek-ai/dsh-system-prompt`
@@ -0,0 +1,11 @@
1
+ /**
2
+ * `dsh-chinese-thinking`: inject one stable system-prompt section so the agent
3
+ * thinks and replies in Chinese, regardless of the user's language. It owns no
4
+ * storage, tools, or state — one fixed section, prefix-stable and cache-safe.
5
+ */
6
+ import type { Context } from '@deepseek-ai/cordis';
7
+ export declare const name = "dsh-chinese-thinking";
8
+ export declare const inject: string[];
9
+ /** The fixed instruction injected into every assembled system prompt. */
10
+ export declare const PROMPT_TEXT = "\u59CB\u7EC8\u4F7F\u7528\u4E2D\u6587\u8FDB\u884C\u601D\u8003\u548C\u56DE\u590D\uFF0C\u65E0\u8BBA\u7528\u6237\u4F7F\u7528\u4EC0\u4E48\u8BED\u8A00\u3002";
11
+ export declare function apply(ctx: Context): void;
package/dist/index.js ADDED
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `dsh-chinese-thinking`: inject one stable system-prompt section so the agent
3
+ * thinks and replies in Chinese, regardless of the user's language. It owns no
4
+ * storage, tools, or state — one fixed section, prefix-stable and cache-safe.
5
+ */
6
+ export const name = 'dsh-chinese-thinking';
7
+ export const inject = ['systemPrompt'];
8
+ /** The fixed instruction injected into every assembled system prompt. */
9
+ export const PROMPT_TEXT = '始终使用中文进行思考和回复,无论用户使用什么语言。';
10
+ export function apply(ctx) {
11
+ ctx.systemPrompt.section({
12
+ name: 'chinese-thinking',
13
+ order: 150,
14
+ text: PROMPT_TEXT,
15
+ });
16
+ }
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@max-null/dsh-chinese-thinking",
3
+ "version": "0.1.0",
4
+ "description": "Injects one system-prompt section so a DeepSeek Harness agent thinks and replies in Chinese",
5
+ "license": "MIT",
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "type": "module",
10
+ "main": "dist/index.js",
11
+ "types": "dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "default": "./dist/index.js"
16
+ }
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "keywords": [
22
+ "deepseek",
23
+ "harness",
24
+ "dsh",
25
+ "plugin",
26
+ "chinese",
27
+ "prompt",
28
+ "cordis"
29
+ ],
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/Max-Null/dsh-chinese-thinking.git"
33
+ },
34
+ "scripts": {
35
+ "build": "tsc -p tsconfig.json",
36
+ "typecheck": "tsc --noEmit -p tsconfig.json",
37
+ "test": "vitest run",
38
+ "prepublishOnly": "npm run build"
39
+ },
40
+ "peerDependencies": {
41
+ "@deepseek-ai/cordis": "^4.0.1",
42
+ "@deepseek-ai/dsh-system-prompt": ">=0.0.1-rc.1"
43
+ },
44
+ "devDependencies": {
45
+ "@deepseek-ai/cordis": "^4.0.1",
46
+ "@deepseek-ai/dsh-system-prompt": ">=0.0.1-rc.1",
47
+ "@types/node": "^26.2.0",
48
+ "tsx": "^4.0.0",
49
+ "typescript": "^5.5.0",
50
+ "vitest": "^2.1.0"
51
+ }
52
+ }