dsh-coding 0.0.0-stage → 0.0.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.
- package/LICENSE +21 -0
- package/README.md +84 -2
- package/cordis.patch.yml +6 -0
- package/icon.svg +6 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +13 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +55 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ygzhang
|
|
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
CHANGED
|
@@ -1,3 +1,85 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DSH Coding 编程智能体插件
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> 开发中,NPM 包名锁定为 `dsh-coding`。
|
|
4
|
+
|
|
5
|
+
最小化的 DSH 插件,用于检查并锁定 npm 包名 **`dsh-coding`**。它不提供任何任务功能:不注册 Agent 工具、不注入提示词、不声明预设、没有客户端代码,也不读写配置。
|
|
6
|
+
|
|
7
|
+
- 插件名称:DSH Coding 编程智能体插件
|
|
8
|
+
- 插件说明:开发中,NPM 包名锁定为 `dsh-coding`
|
|
9
|
+
- npm 包名:`dsh-coding`
|
|
10
|
+
- 插件 ID:`dsh-coding`
|
|
11
|
+
|
|
12
|
+
## 安装
|
|
13
|
+
|
|
14
|
+
DSH Desktop 的 **Plugins / 插件** 页面选择 **Add plugin / 添加插件**,输入包名:
|
|
15
|
+
|
|
16
|
+
```text
|
|
17
|
+
dsh-coding
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
CLI:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
dsh plugin --profile <profile> add dsh-coding
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
安装后只有一行被动的 Host 插件,注册一个空的 `dshCoding` 服务。现有会话和预设不受影响。
|
|
27
|
+
|
|
28
|
+
## 开发
|
|
29
|
+
|
|
30
|
+
需要 Node.js ≥ 24.9.0 与 pnpm。
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pnpm install
|
|
34
|
+
pnpm typecheck # tsc --noEmit
|
|
35
|
+
pnpm build # 输出 lib/index.js 与 lib/index.d.ts
|
|
36
|
+
pnpm test # 校验清单与构建产物
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
本地挂载调试:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
dsh plugin --profile <profile> add /absolute/path/to/dsh-coding
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## 发布
|
|
46
|
+
|
|
47
|
+
发布前先确认包名仍可用:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npm view dsh-coding version
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
若输出 `E404` 表示可用,然后登录并发布:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm login
|
|
57
|
+
pnpm publish
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
`prepublishOnly` 会依次执行 `typecheck`、`build`、`test`,发布内容由 `package.json` 的 `files` 限定为:
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
lib/
|
|
64
|
+
locale/*.json
|
|
65
|
+
icon.svg
|
|
66
|
+
cordis.patch.yml
|
|
67
|
+
README.md
|
|
68
|
+
LICENSE
|
|
69
|
+
package.json
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 结构
|
|
73
|
+
|
|
74
|
+
```text
|
|
75
|
+
src/index.ts 被动 Host 插件(仅注册 dshCoding 服务)
|
|
76
|
+
cordis.patch.yml bundle 行:插入 dsh-coding
|
|
77
|
+
locale/zh.json 插件页标题与简介(中文)
|
|
78
|
+
locale/en.json 插件页标题与简介(英文)
|
|
79
|
+
icon.svg 插件图标
|
|
80
|
+
test/package.test.mjs 清单与产物校验
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## 许可
|
|
84
|
+
|
|
85
|
+
MIT
|
package/cordis.patch.yml
ADDED
package/icon.svg
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" role="img" aria-label="DSH Coding">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#0f172a"/>
|
|
3
|
+
<path d="M24 22l-10 10 10 10" fill="none" stroke="#7dd3fc" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M36 42h10" fill="none" stroke="#fbbf24" stroke-width="4" stroke-linecap="round"/>
|
|
5
|
+
<circle cx="40" cy="22" r="3" fill="#e2e8f0"/>
|
|
6
|
+
</svg>
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Service, type Context } from '@deepseek-ai/cordis';
|
|
2
|
+
/**
|
|
3
|
+
* Inert Host entry for the `dsh-coding` bundle.
|
|
4
|
+
*
|
|
5
|
+
* It registers the `dshCoding` service and does nothing else: the package
|
|
6
|
+
* reserves the npm name and proves that the bundle installs and composes. It
|
|
7
|
+
* adds no tools, prompts, presets, client code, or settings.
|
|
8
|
+
*/
|
|
9
|
+
export default class DshCodingService extends Service {
|
|
10
|
+
constructor(ctx: Context);
|
|
11
|
+
}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Service } from '@deepseek-ai/cordis';
|
|
2
|
+
/**
|
|
3
|
+
* Inert Host entry for the `dsh-coding` bundle.
|
|
4
|
+
*
|
|
5
|
+
* It registers the `dshCoding` service and does nothing else: the package
|
|
6
|
+
* reserves the npm name and proves that the bundle installs and composes. It
|
|
7
|
+
* adds no tools, prompts, presets, client code, or settings.
|
|
8
|
+
*/
|
|
9
|
+
export default class DshCodingService extends Service {
|
|
10
|
+
constructor(ctx) {
|
|
11
|
+
super(ctx, 'dshCoding');
|
|
12
|
+
}
|
|
13
|
+
}
|
package/locale/en.json
ADDED
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-coding",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "DSH Coding 编程智能体插件。开发中,NPM 包名锁定为 dsh-coding。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./lib/index.js",
|
|
7
|
+
"types": "./lib/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/index.d.ts",
|
|
11
|
+
"default": "./lib/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./locale/*.json": "./locale/*.json",
|
|
14
|
+
"./icon": "./icon.svg",
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"lib",
|
|
19
|
+
"locale/*.json",
|
|
20
|
+
"icon.svg",
|
|
21
|
+
"cordis.patch.yml",
|
|
22
|
+
"README.md",
|
|
23
|
+
"LICENSE"
|
|
24
|
+
],
|
|
25
|
+
"dsh": {
|
|
26
|
+
"bundle": {
|
|
27
|
+
"patch": "./cordis.patch.yml"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"deepseek-harness",
|
|
32
|
+
"dsh",
|
|
33
|
+
"dsh-plugin",
|
|
34
|
+
"dsh-coding"
|
|
35
|
+
],
|
|
36
|
+
"author": "ygzhang",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=24.9.0",
|
|
43
|
+
"dsh": ">=0.2.2-rc.5 <0.3.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@deepseek-ai/cordis": ">=4.0.5 <5"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
50
|
+
"@types/node": "^24.0.0",
|
|
51
|
+
"typescript": "^5.9.0"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "tsc -p tsconfig.build.json",
|
|
55
|
+
"typecheck": "tsc -p tsconfig.json",
|
|
56
|
+
"test": "node --test test/*.test.mjs"
|
|
57
|
+
}
|
|
6
58
|
}
|