dsh-deeptutor 0.1.1 → 0.1.2

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 +17 -11
  2. package/README.zh.md +9 -5
  3. package/package.json +4 -2
package/README.md CHANGED
@@ -28,17 +28,29 @@ fallback).
28
28
 
29
29
  ## Install into a profile (bundle)
30
30
 
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`.
31
+ The package is published to npm as `dsh-deeptutor`. Install it with a single
32
+ command — `dsh plugin add` forwards to pnpm and then reconciles the profile's
33
+ `dsh.profile.bundles` against the installed state, so a `dsh.bundle`-declaring
34
+ package like this one is registered automatically (verified on dsh CLI
35
+ 0.1.0-rc.6):
34
36
 
35
37
  ```sh
36
- # 1. install the npm package into the profile (forwards to pnpm)
37
38
  dsh plugin --profile web add dsh-deeptutor
38
39
  ```
39
40
 
41
+ Verify the bundle is mounted, then restart dsh (the bundle list is resolved
42
+ at boot):
43
+
44
+ ```sh
45
+ dsh --profile web --dump-config | grep dsh-deeptutor
46
+ ```
47
+
48
+ If your dsh CLI does not auto-register the bundle (older versions, or you
49
+ installed the dependency manually), add it to the profile manifest
50
+ (`~/.dsh/profiles/<name>/package.json`) and run `dsh plugin --profile web
51
+ install`:
52
+
40
53
  ```json
41
- // 2. add the bundle to the profile manifest (~/.dsh/profiles/<name>/package.json)
42
54
  {
43
55
  "dependencies": { "dsh-deeptutor": "^0.1.0" },
44
56
  "dsh": {
@@ -47,12 +59,6 @@ dsh plugin --profile web add dsh-deeptutor
47
59
  }
48
60
  ```
49
61
 
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
62
  Alternatively, keep the manifest untouched and mount the bundle through a user
57
63
  patch layer (the npm package still has to be installed first):
58
64
 
package/README.zh.md CHANGED
@@ -18,15 +18,21 @@
18
18
 
19
19
  ## 安装到 profile(bundle 方式)
20
20
 
21
- 包已发布到 npm(`dsh-deeptutor`)。bundle 安装分两步:(1) 将 npm 包装入 profile;(2) 将其列入 profile 的 `dsh.profile.bundles`,让加载器真正挂载它。
21
+ 包已发布到 npm(`dsh-deeptutor`)。一条命令即可安装:`dsh plugin add` 会转发给 pnpm 安装依赖,并把 profile 的 `dsh.profile.bundles` 与已安装状态对账,因此声明了 `dsh.bundle` 的包(如本插件)会被自动登记(已在 dsh CLI 0.1.0-rc.6 上验证):
22
22
 
23
23
  ```sh
24
- # 1. 将 npm 包装入 profile(转发给 pnpm)
25
24
  dsh plugin --profile web add dsh-deeptutor
26
25
  ```
27
26
 
27
+ 验证挂载,然后重启 dsh(bundle 列表在启动时解析):
28
+
29
+ ```sh
30
+ dsh --profile web --dump-config | grep dsh-deeptutor
31
+ ```
32
+
33
+ 如果你的 dsh CLI 不会自动登记 bundle(旧版本,或手动安装依赖),请在 profile 清单(`~/.dsh/profiles/<name>/package.json`)中手动加入,再运行 `dsh plugin --profile web install`:
34
+
28
35
  ```json
29
- // 2. 在 profile 清单(~/.dsh/profiles/<name>/package.json)中加入 bundle
30
36
  {
31
37
  "dependencies": { "dsh-deeptutor": "^0.1.0" },
32
38
  "dsh": {
@@ -35,8 +41,6 @@ dsh plugin --profile web add dsh-deeptutor
35
41
  }
36
42
  ```
37
43
 
38
- 两步缺一不可:在 dsh CLI 0.1.0-rc.x 中,`dsh plugin add` 只是 pnpm 转发器——它只安装依赖,**不会**修改 `dsh.profile.bundles`;跳过第 2 步会导致包已安装却从未被加载。安装后需重启 dsh(bundle 列表在启动时解析)。
39
-
40
44
  也可以不动清单,改用用户 patch 层挂载 bundle(仍需先安装 npm 包):
41
45
 
42
46
  ```yaml
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-deeptutor",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
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",
@@ -43,11 +43,13 @@
43
43
  "prepack": "npm run build && npm run typecheck",
44
44
  "pack:check": "npm pack --dry-run"
45
45
  },
46
- "dependencies": {
46
+ "peerDependencies": {
47
47
  "@deepseek-ai/cordis": "^4.0.1",
48
48
  "@deepseek-ai/dsh-tools": "^0.1.0-rc.6"
49
49
  },
50
50
  "devDependencies": {
51
+ "@deepseek-ai/cordis": "^4.0.1",
52
+ "@deepseek-ai/dsh-tools": "^0.1.0-rc.6",
51
53
  "@types/node": "^24.0.0",
52
54
  "typescript": "^5.9.3"
53
55
  }