dsh-deeptutor 0.1.0 → 0.1.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/README.md +34 -5
- package/README.zh.md +22 -4
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# dsh-deeptutor
|
|
2
2
|
|
|
3
|
+
**English** | [简体中文](README.zh.md)
|
|
4
|
+
|
|
3
5
|
DeepTutor bridge **bundle** for **DeepSeek Harness (dsh)**, migrated from the
|
|
4
6
|
pi coding-agent extension (`TecFancy/pi-extensions`, `extensions/deeptutor` +
|
|
5
7
|
`skills/deeptutor`).
|
|
@@ -13,23 +15,30 @@ Registers three model-facing tools that drive the
|
|
|
13
15
|
| `deeptutor_kb` | List / search / info the user's personal knowledge bases (RAG) |
|
|
14
16
|
| `deeptutor_note` | Archive Markdown learning notes to a server notebook |
|
|
15
17
|
|
|
18
|
+
The seven capabilities above are the fixed enum accepted by `deeptutor_run`.
|
|
19
|
+
The underlying DeepTutor CLI may expose more — enumerate the full command set
|
|
20
|
+
with `deeptutor --help` / `deeptutor <cmd> --help`. The `deeptutor` skill
|
|
21
|
+
instructs the agent to discover commands this way and, when the tool's enum
|
|
22
|
+
doesn't cover a capability, to drive the CLI directly (local binary or over
|
|
23
|
+
SSH).
|
|
24
|
+
|
|
16
25
|
Deployment auto-detects local vs. remote: local `serve` (or local CLI) on this
|
|
17
26
|
machine, or a server reached through an auto-started SSH tunnel (with SSH CLI
|
|
18
27
|
fallback).
|
|
19
28
|
|
|
20
29
|
## Install into a profile (bundle)
|
|
21
30
|
|
|
22
|
-
|
|
31
|
+
The package is published to npm as `dsh-deeptutor`. A bundle install has two
|
|
32
|
+
parts: (1) install the npm package into the profile, and (2) make the loader
|
|
33
|
+
mount it by listing it in the profile's `dsh.profile.bundles`.
|
|
23
34
|
|
|
24
35
|
```sh
|
|
25
|
-
#
|
|
36
|
+
# 1. install the npm package into the profile (forwards to pnpm)
|
|
26
37
|
dsh plugin --profile web add dsh-deeptutor
|
|
27
38
|
```
|
|
28
39
|
|
|
29
|
-
or add it manually to the profile manifest
|
|
30
|
-
(`~/.dsh/profiles/<name>/package.json`):
|
|
31
|
-
|
|
32
40
|
```json
|
|
41
|
+
// 2. add the bundle to the profile manifest (~/.dsh/profiles/<name>/package.json)
|
|
33
42
|
{
|
|
34
43
|
"dependencies": { "dsh-deeptutor": "^0.1.0" },
|
|
35
44
|
"dsh": {
|
|
@@ -38,6 +47,26 @@ or add it manually to the profile manifest
|
|
|
38
47
|
}
|
|
39
48
|
```
|
|
40
49
|
|
|
50
|
+
Both steps are required. With dsh CLI 0.1.0-rc.x, `dsh plugin add` is a plain
|
|
51
|
+
pnpm forwarder — it installs the dependency but does **not** touch
|
|
52
|
+
`dsh.profile.bundles`, so skipping step 2 leaves the package installed but
|
|
53
|
+
never loaded. Restart dsh after installing; the bundle list is resolved at
|
|
54
|
+
boot.
|
|
55
|
+
|
|
56
|
+
Alternatively, keep the manifest untouched and mount the bundle through a user
|
|
57
|
+
patch layer (the npm package still has to be installed first):
|
|
58
|
+
|
|
59
|
+
```yaml
|
|
60
|
+
# overlay.yml — insert the bundle row via a user patch layer
|
|
61
|
+
- insert:
|
|
62
|
+
- id: dsh-deeptutor
|
|
63
|
+
name: 'dsh-deeptutor'
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
```sh
|
|
67
|
+
dsh web --patch ./overlay.yml
|
|
68
|
+
```
|
|
69
|
+
|
|
41
70
|
The bundle manifest (`dsh.bundle.patch → cordis.patch.yml`) inserts the plugin
|
|
42
71
|
row; later patch layers can override or disable it by id.
|
|
43
72
|
|
package/README.zh.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# dsh-deeptutor
|
|
2
2
|
|
|
3
|
+
[English](README.md) | **简体中文**
|
|
4
|
+
|
|
3
5
|
面向 **DeepSeek Harness (dsh)** 的 DeepTutor 桥接 **bundle**,从 pi 编码 agent 扩展迁移而来(`TecFancy/pi-extensions`,`extensions/deeptutor` + `skills/deeptutor`)。
|
|
4
6
|
|
|
5
7
|
注册三个模型可见工具,驱动 [HKUDS/DeepTutor](https://github.com/HKUDS/DeepTutor) 辅导服务:
|
|
@@ -10,20 +12,21 @@
|
|
|
10
12
|
| `deeptutor_kb` | 列出 / 搜索 / 查看个人知识库(RAG)信息 |
|
|
11
13
|
| `deeptutor_note` | 将 Markdown 学习笔记归档到服务端 notebook |
|
|
12
14
|
|
|
15
|
+
上表 7 个 capability 是 `deeptutor_run` 工具接受的固定枚举。底层 DeepTutor CLI 可能支持更多命令——用 `deeptutor --help` / `deeptutor <cmd> --help` 可枚举完整命令集。`deeptutor` skill 会指示 agent 用这种方式动态发现命令;当工具的枚举未覆盖某能力时,agent 可直接调用 CLI(本地二进制或经 SSH)来驱动。
|
|
16
|
+
|
|
13
17
|
部署模式自动适配:本机本地 `serve`(或本地 CLI),或通过自动建立的 SSH 隧道访问服务器(含 SSH CLI 回退)。
|
|
14
18
|
|
|
15
19
|
## 安装到 profile(bundle 方式)
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
包已发布到 npm(`dsh-deeptutor`)。bundle 安装分两步:(1) 将 npm 包装入 profile;(2) 将其列入 profile 的 `dsh.profile.bundles`,让加载器真正挂载它。
|
|
18
22
|
|
|
19
23
|
```sh
|
|
20
|
-
#
|
|
24
|
+
# 1. 将 npm 包装入 profile(转发给 pnpm)
|
|
21
25
|
dsh plugin --profile web add dsh-deeptutor
|
|
22
26
|
```
|
|
23
27
|
|
|
24
|
-
或手动编辑 profile 清单(`~/.dsh/profiles/<name>/package.json`):
|
|
25
|
-
|
|
26
28
|
```json
|
|
29
|
+
// 2. 在 profile 清单(~/.dsh/profiles/<name>/package.json)中加入 bundle
|
|
27
30
|
{
|
|
28
31
|
"dependencies": { "dsh-deeptutor": "^0.1.0" },
|
|
29
32
|
"dsh": {
|
|
@@ -32,6 +35,21 @@ dsh plugin --profile web add dsh-deeptutor
|
|
|
32
35
|
}
|
|
33
36
|
```
|
|
34
37
|
|
|
38
|
+
两步缺一不可:在 dsh CLI 0.1.0-rc.x 中,`dsh plugin add` 只是 pnpm 转发器——它只安装依赖,**不会**修改 `dsh.profile.bundles`;跳过第 2 步会导致包已安装却从未被加载。安装后需重启 dsh(bundle 列表在启动时解析)。
|
|
39
|
+
|
|
40
|
+
也可以不动清单,改用用户 patch 层挂载 bundle(仍需先安装 npm 包):
|
|
41
|
+
|
|
42
|
+
```yaml
|
|
43
|
+
# overlay.yml —— 通过用户 patch 层插入 bundle 行
|
|
44
|
+
- insert:
|
|
45
|
+
- id: dsh-deeptutor
|
|
46
|
+
name: 'dsh-deeptutor'
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
dsh web --patch ./overlay.yml
|
|
51
|
+
```
|
|
52
|
+
|
|
35
53
|
bundle 清单(`dsh.bundle.patch → cordis.patch.yml`)负责插入插件行;上层 patch 层可按 id 覆盖或禁用。
|
|
36
54
|
|
|
37
55
|
## 源码开发(无需发布)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-deeptutor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "DeepTutor bridge bundle for DeepSeek Harness: learning capabilities, knowledge bases, and note archiving (HTTP/WS first, CLI fallback; auto-adapts local/remote deployment).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"src",
|
|
30
30
|
"scripts",
|
|
31
31
|
"cordis.patch.yml",
|
|
32
|
-
"README.md"
|
|
32
|
+
"README.md",
|
|
33
|
+
"README.zh.md"
|
|
33
34
|
],
|
|
34
35
|
"dsh": {
|
|
35
36
|
"bundle": {
|