dsh-deeptutor 0.1.7 → 0.1.9
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 +226 -181
- package/README.zh.md +166 -133
- package/cordis.patch.yml +17 -17
- package/docs/demo/en-final-answer.png +0 -0
- package/docs/demo/en-study-page.png +0 -0
- package/docs/demo/final-answer.png +0 -0
- package/docs/demo/study-page.png +0 -0
- package/package.json +75 -66
- package/scripts/install-profile.mjs +233 -233
- package/scripts/md-to-html.js +381 -381
- package/scripts/sync-skills.mjs +46 -46
- package/skills/deeptutor/README.md +129 -129
- package/skills/deeptutor/SKILL.md +183 -183
- package/skills/html-doc/SKILL.md +91 -91
- package/skills/html-doc/scripts/md-to-html.js +381 -381
- package/src/cli-exec.ts +251 -251
- package/src/config.ts +71 -71
- package/src/html-render.ts +53 -53
- package/src/http-api.ts +98 -98
- package/src/index.ts +468 -468
- package/src/turn.ts +197 -197
package/README.zh.md
CHANGED
|
@@ -1,133 +1,166 @@
|
|
|
1
|
-
# dsh-deeptutor
|
|
2
|
-
|
|
3
|
-
[English](https://github.com/TecFancy/dsh-deeptutor/blob/main/README.md) | **简体中文**
|
|
4
|
-
|
|
5
|
-
面向 **DeepSeek Harness (dsh)**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
npm
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
1
|
+
# dsh-deeptutor
|
|
2
|
+
|
|
3
|
+
[English](https://github.com/TecFancy/dsh-deeptutor/blob/main/README.md) | **简体中文**
|
|
4
|
+
|
|
5
|
+
面向 **DeepSeek Harness (dsh)** 的**学习辅助扩展**。它将 [HKUDS/DeepTutor](https://github.com/HKUDS/DeepTutor) 辅导服务接入你的 agent,让 dsh 会话能够深度讲解知识点、出题自测、规划学习路径、检索你的个人知识库,并把学习笔记归档到 notebook —— 全程不出 harness。
|
|
6
|
+
|
|
7
|
+
只要对 agent 说 *"给我讲讲 async/await"*,它就能跑一次 deep-solve,把答案渲染成可在浏览器打开的自包含 HTML 学习页,再把摘要归档进你的笔记本。
|
|
8
|
+
|
|
9
|
+
本扩展由 pi 编码 agent 扩展迁移而来(`TecFancy/pi-extensions`,`extensions/deeptutor` + `skills/deeptutor`)。
|
|
10
|
+
|
|
11
|
+
## 它带来什么
|
|
12
|
+
|
|
13
|
+
三个 agent 可见工具,当你请求学习帮助时由模型调用:
|
|
14
|
+
|
|
15
|
+
| 工具 | 作用 |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `deeptutor_run` | 执行一次学习调用: `deep_solve`(深度讲解)/ `deep_question`(自测题)/ `deep_research` / `chat` / `mastery_path`(学习路径规划)/ `visualize` / `math_animator`(可视化)。可挂载你的知识库(`kbs`)与工具(`rag`、`web_search`、`reason`、`code_execution` 等);返回 `session_id`,后续轮次可延续同一上下文。 |
|
|
18
|
+
| `deeptutor_kb` | 列出 / 搜索 / 查看你的个人知识库(RAG) |
|
|
19
|
+
| `deeptutor_note` | 把 Markdown 学习笔记(计划、总结、错题等)归档到服务器 notebook |
|
|
20
|
+
|
|
21
|
+
上表 7 个 capability 是 `deeptutor_run` 工具接受的固定枚举。底层 DeepTutor CLI 可能支持更多命令 —— 用 `deeptutor --help` / `deeptutor <cmd> --help` 可枚举完整命令集。`deeptutor` skill 会指示 agent 以这种方式动态发现命令;当工具的枚举未覆盖某能力时,agent 可直接调用 CLI(本地二进制或经 SSH)来驱动。
|
|
22
|
+
|
|
23
|
+
## 示例会话
|
|
24
|
+
|
|
25
|
+
一次典型的"求学习帮助"流程:
|
|
26
|
+
|
|
27
|
+
1. **提问** —— *"用我的 dotnet 知识库讲讲 C# 泛型协变,并生成学习页。"*
|
|
28
|
+
2. agent 先检索你的自有资料:`deeptutor_kb`(`action=search`,`kb=dotnet`)。
|
|
29
|
+
3. 再执行深度讲解:`deeptutor_run`(`capability=deep_solve`,`kbs=[dotnet]`,`html=data/study/csharp-covariance.html`)—— 答案返回的同时,自包含 HTML 学习页(及配套 `.md` 源文件)写入磁盘。
|
|
30
|
+
4. 最后归档摘要:`deeptutor_note`(`notebook=dotnet-learning`,`type=solve`)。
|
|
31
|
+
|
|
32
|
+
以上不是固定脚本 —— agent 会根据你的提问自由选择工具与参数。
|
|
33
|
+
|
|
34
|
+
以下是该流程的真实录制(async/await 状态机 deep-solve,挂载 `dotnet-csharp` 知识库,渲染 HTML 学习页,归档笔记本):
|
|
35
|
+
|
|
36
|
+

|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
|
|
40
|
+
## 环境要求
|
|
41
|
+
|
|
42
|
+
- 可用的 DeepSeek Harness (dsh) 安装。`dsh plugin add` 自动登记 bundle 已在 dsh CLI 0.1.0-rc.6 + pnpm 8.15.6 上验证。
|
|
43
|
+
- 一个 DeepTutor 部署,二选一:
|
|
44
|
+
- **本地** —— 本机运行 `deeptutor serve`,或 PATH 上有 `deeptutor` CLI(作为回退);
|
|
45
|
+
- **远程** —— DeepTutor 在服务器上,通过自动建立的 SSH 隧道访问(含 SSH CLI 回退)。
|
|
46
|
+
|
|
47
|
+
## 安装到 profile(bundle 方式)
|
|
48
|
+
|
|
49
|
+
包已发布到 npm(`dsh-deeptutor`)。推荐一条命令 —— 运行随包发布的安装器(`scripts/install-profile.mjs`,以 `dsh-deeptutor` 二进制暴露),它包装 `dsh plugin add` 并自动处理下文所述的 pnpm workspace-root 检查:
|
|
50
|
+
|
|
51
|
+
```sh
|
|
52
|
+
pnpm dlx dsh-deeptutor --profile web
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
从本仓库检出目录运行同一个安装器:
|
|
56
|
+
|
|
57
|
+
```sh
|
|
58
|
+
node scripts/install-profile.mjs --profile web
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
或者自己执行底层命令:`dsh plugin add` 会转发给 pnpm 安装依赖,并把 profile 的 `dsh.profile.bundles` 与已安装状态对账,因此声明了 `dsh.bundle` 的包(如本插件)会被自动登记:
|
|
62
|
+
|
|
63
|
+
```sh
|
|
64
|
+
dsh plugin --profile web add dsh-deeptutor -w
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
> **坑:pnpm workspace-root 检查。** dsh 的 profile 脚手架**总是**写入 `pnpm-workspace.yaml`(`packages: ["."]`、`nodeLinker: hoisted`),profile 目录本身就是 pnpm workspace 根。在 pnpm ≥ 8 上,`pnpm add` 在 workspace 根目录执行会因 `ERR_PNPM_ADDING_TO_ROOT` 中止,必须显式加 workspace-root 标志,所以上面的命令追加了 `-w`/`--workspace-root`(注意:Windows 上 pnpm 把这条错误打在 **stdout**,看起来像警告,实际是失败)。两种处理方式:
|
|
68
|
+
>
|
|
69
|
+
> 1. 使用安装器 / 命令保留 `-w`(推荐 —— 安装器先试裸命令,只有检查触发时才自动补 `-w`)。
|
|
70
|
+
> 2. 或者永久放行裸命令:在 `~/.dsh/profiles/<name>/pnpm-workspace.yaml` 中加入 `ignore-workspace-root-check: true`,之后 `dsh plugin --profile web add dsh-deeptutor` 按原样即可。
|
|
71
|
+
|
|
72
|
+
验证挂载,然后重启 dsh(bundle 列表在启动时解析):
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
dsh --profile web --dump-config | grep dsh-deeptutor
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
如果你的 dsh CLI 不会自动登记 bundle(旧版本,或手动安装依赖),请在 profile 清单(`~/.dsh/profiles/<name>/package.json`)中手动加入,再运行 `dsh plugin --profile web install`:
|
|
79
|
+
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"dependencies": { "dsh-deeptutor": "^0.1.0" },
|
|
83
|
+
"dsh": {
|
|
84
|
+
"profile": { "bundles": ["@deepseek-ai/dsh-base", "@deepseek-ai/dsh-web-app", "dsh-deeptutor"] }
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
也可以不动清单,改用用户 patch 层挂载 bundle(仍需先安装 npm 包):
|
|
90
|
+
|
|
91
|
+
```yaml
|
|
92
|
+
# overlay.yml —— 通过用户 patch 层插入 bundle 行
|
|
93
|
+
- insert:
|
|
94
|
+
- id: dsh-deeptutor
|
|
95
|
+
name: 'dsh-deeptutor'
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
```sh
|
|
99
|
+
dsh web --patch ./overlay.yml
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
bundle 清单(`dsh.bundle.patch → cordis.patch.yml`)负责插入插件行;上层 patch 层可按 id 覆盖或禁用。
|
|
103
|
+
|
|
104
|
+
## Skills
|
|
105
|
+
|
|
106
|
+
本包携带两个 skill(`skills/deeptutor` 与 `skills/html-doc`),随包安装器每次运行时都会把它们复制到 `<DSH_HOME>/skills/<name>/`(dsh 自动发现)—— 所以 `pnpm dlx dsh-deeptutor` 一次装齐插件 **和** skill:
|
|
107
|
+
|
|
108
|
+
- `deeptutor` — 面向 agent 的学习工作流(`~/.dsh/skills/deeptutor/SKILL.md`)
|
|
109
|
+
- `html-doc` — 将学习内容渲染为自包含 HTML 页面(`~/.dsh/skills/html-doc/`);`deeptutor_run` 传入 `html` 路径时,插件内部使用同一转换器(`scripts/md-to-html.js`)
|
|
110
|
+
|
|
111
|
+
升级包版本时会就地覆盖 skill 文件;包未携带的文件不会被删除。
|
|
112
|
+
|
|
113
|
+
`skills/` 下的文件与 `TecFancy/pi-extensions` 中的同名技能逐字节一致(以 pi 仓库为唯一来源,保持 agent 中立)。上游修改后执行 `node scripts/sync-skills.mjs ../pi-extensions` 同步。
|
|
114
|
+
|
|
115
|
+
## 配置(环境变量,与 agent 无关)
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
# 远程部署(DeepTutor 在服务器上,通过 SSH 隧道访问)
|
|
119
|
+
export DEEPTUTOR_SSH_HOST="tencent-cloud" # SSH 主机别名(设置 = 远程模式)
|
|
120
|
+
export DEEPTUTOR_API_BASE="http://127.0.0.1:8001" # 本地隧道地址
|
|
121
|
+
export DEEPTUTOR_REMOTE_BIN="/home/ubuntu/my-deeptutor/.venv/bin/deeptutor"
|
|
122
|
+
export DEEPTUTOR_REMOTE_HOME="/home/ubuntu/my-deeptutor"
|
|
123
|
+
|
|
124
|
+
# 本地部署 —— 不要设置 DEEPTUTOR_SSH_HOST
|
|
125
|
+
# export DEEPTUTOR_API_BASE="http://127.0.0.1:8001" # 本地 serve 端口
|
|
126
|
+
# export DEEPTUTOR_LOCAL_BIN="deeptutor" # 本地 CLI 路径(默认: PATH 上的 deeptutor)
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
修改环境变量后需重启 dsh。
|
|
130
|
+
|
|
131
|
+
## 工作原理
|
|
132
|
+
|
|
133
|
+
插件自动适配部署模式:若 DeepTutor API 可达(本地 `serve`,或经隧道的远程服务器),学习回合走 HTTP/WebSocket;否则回退到 CLI —— 本地的 `deeptutor` 二进制,或经 SSH 的远程二进制。远程模式按需启动 SSH 隧道,插件卸载时自动拆除。
|
|
134
|
+
|
|
135
|
+
## 源码开发(无需发布)
|
|
136
|
+
|
|
137
|
+
```sh
|
|
138
|
+
dsh web --patch /path/to/dsh-deeptutor/cordis.yml
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
## 构建与发布
|
|
142
|
+
|
|
143
|
+
```sh
|
|
144
|
+
npm install
|
|
145
|
+
npm run build # tsc → lib/(相对 .ts import 改写为 .js)
|
|
146
|
+
npm run typecheck
|
|
147
|
+
npm test # node:test + type stripping
|
|
148
|
+
npm pack # 检查 dsh-deeptutor-<version>.tgz
|
|
149
|
+
npm publish
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
通过 `--patch` 直接加载 `src/*.ts` 需要 Node ≥ 22.6(type stripping);发布的 bundle 自带编译后的 `lib/`,安装到 profile 后仅需普通 Node ≥ 20 ESM。
|
|
153
|
+
|
|
154
|
+
## 目录结构
|
|
155
|
+
|
|
156
|
+
```
|
|
157
|
+
src/ # TypeScript 源码(开发加载、类型检查)
|
|
158
|
+
lib/ # 编译产物(发布入口,由 npm run build 生成)
|
|
159
|
+
scripts/md-to-html.js # 零依赖 Markdown → HTML 转换器
|
|
160
|
+
scripts/install-profile.mjs # 一键 profile 安装器(以 `dsh-deeptutor` 二进制暴露)
|
|
161
|
+
skills/ # 随包 skill:deeptutor/ + html-doc/(安装到 <DSH_HOME>/skills/)
|
|
162
|
+
cordis.yml # 开发 overlay:按绝对路径插入 src/index.ts
|
|
163
|
+
cordis.patch.yml # bundle patch:按包名插入插件
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
`src/index.ts` 注册工具;`config.ts` 环境配置;`cli-exec.ts` 本地/SSH CLI 执行;`http-api.ts` API 探测 + SSH 隧道;`turn.ts` 单次学习回合(WebSocket / CLI 事件折叠与格式化);`html-render.ts` 答案 → 自包含 HTML。
|
package/cordis.patch.yml
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
# dsh-deeptutor bundle patch: inserts the DeepTutor bridge plugin.
|
|
2
|
-
#
|
|
3
|
-
# Mount into a profile either by adding "dsh-deeptutor" to the profile's
|
|
4
|
-
# `dsh.profile.bundles` list (recommended), or by inserting the same row
|
|
5
|
-
# through a user patch layer:
|
|
6
|
-
#
|
|
7
|
-
# - insert:
|
|
8
|
-
# - id: dsh-deeptutor
|
|
9
|
-
# name: 'dsh-deeptutor'
|
|
10
|
-
#
|
|
11
|
-
# The `name` is the npm package itself; the loader resolves it from the
|
|
12
|
-
# profile's node_modules (installed via `dsh plugin` or the profile's own
|
|
13
|
-
# package manager).
|
|
14
|
-
|
|
15
|
-
- insert:
|
|
16
|
-
- id: dsh-deeptutor
|
|
17
|
-
name: 'dsh-deeptutor'
|
|
1
|
+
# dsh-deeptutor bundle patch: inserts the DeepTutor bridge plugin.
|
|
2
|
+
#
|
|
3
|
+
# Mount into a profile either by adding "dsh-deeptutor" to the profile's
|
|
4
|
+
# `dsh.profile.bundles` list (recommended), or by inserting the same row
|
|
5
|
+
# through a user patch layer:
|
|
6
|
+
#
|
|
7
|
+
# - insert:
|
|
8
|
+
# - id: dsh-deeptutor
|
|
9
|
+
# name: 'dsh-deeptutor'
|
|
10
|
+
#
|
|
11
|
+
# The `name` is the npm package itself; the loader resolves it from the
|
|
12
|
+
# profile's node_modules (installed via `dsh plugin` or the profile's own
|
|
13
|
+
# package manager).
|
|
14
|
+
|
|
15
|
+
- insert:
|
|
16
|
+
- id: dsh-deeptutor
|
|
17
|
+
name: 'dsh-deeptutor'
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,66 +1,75 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-deeptutor",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "
|
|
5
|
-
"keywords": [
|
|
6
|
-
"dsh",
|
|
7
|
-
"dsh-plugin",
|
|
8
|
-
"dsh-bundle",
|
|
9
|
-
"deeptutor",
|
|
10
|
-
"tutoring",
|
|
11
|
-
"rag",
|
|
12
|
-
"agent"
|
|
13
|
-
],
|
|
14
|
-
"license": "MIT",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
"scripts",
|
|
39
|
-
"skills",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-deeptutor",
|
|
3
|
+
"version": "0.1.9",
|
|
4
|
+
"description": "Learning assistant extension for DeepSeek Harness (dsh): DeepTutor tutoring for your agent — deep explanations, self-test questions, learning paths, personal knowledge-base search (RAG), and note archiving (HTTP/WS first, CLI fallback; auto-adapts local/remote deployment).",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"dsh",
|
|
7
|
+
"dsh-plugin",
|
|
8
|
+
"dsh-bundle",
|
|
9
|
+
"deeptutor",
|
|
10
|
+
"tutoring",
|
|
11
|
+
"rag",
|
|
12
|
+
"agent"
|
|
13
|
+
],
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/TecFancy/dsh-deeptutor.git"
|
|
18
|
+
},
|
|
19
|
+
"homepage": "https://github.com/TecFancy/dsh-deeptutor",
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/TecFancy/dsh-deeptutor/issues"
|
|
22
|
+
},
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=20.11"
|
|
25
|
+
},
|
|
26
|
+
"type": "module",
|
|
27
|
+
"main": "./lib/index.js",
|
|
28
|
+
"types": "./lib/index.d.ts",
|
|
29
|
+
"bin": {
|
|
30
|
+
"dsh-deeptutor": "scripts/install-profile.mjs"
|
|
31
|
+
},
|
|
32
|
+
"exports": {
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./lib/index.d.ts",
|
|
35
|
+
"default": "./lib/index.js"
|
|
36
|
+
},
|
|
37
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
38
|
+
"./scripts/*": "./scripts/*",
|
|
39
|
+
"./skills/*": "./skills/*",
|
|
40
|
+
"./src/*": "./src/*",
|
|
41
|
+
"./package.json": "./package.json"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"lib",
|
|
45
|
+
"src",
|
|
46
|
+
"scripts",
|
|
47
|
+
"skills",
|
|
48
|
+
"docs",
|
|
49
|
+
"cordis.patch.yml",
|
|
50
|
+
"README.md",
|
|
51
|
+
"README.zh.md"
|
|
52
|
+
],
|
|
53
|
+
"dsh": {
|
|
54
|
+
"bundle": {
|
|
55
|
+
"patch": "./cordis.patch.yml"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "tsc -p tsconfig.build.json",
|
|
60
|
+
"typecheck": "tsc --noEmit",
|
|
61
|
+
"prepack": "npm run build && npm run typecheck",
|
|
62
|
+
"pack:check": "npm pack --dry-run",
|
|
63
|
+
"test": "node --test --experimental-strip-types"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
67
|
+
"@deepseek-ai/dsh-tools": "^0.1.0-rc.6"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@deepseek-ai/cordis": "^4.0.1",
|
|
71
|
+
"@deepseek-ai/dsh-tools": "^0.1.0-rc.6",
|
|
72
|
+
"@types/node": "^24.0.0",
|
|
73
|
+
"typescript": "^5.9.3"
|
|
74
|
+
}
|
|
75
|
+
}
|