@aiwayds/dsh-llm-proxy 0.3.1 → 0.4.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.
Files changed (2) hide show
  1. package/README.md +20 -1
  2. package/package.json +7 -6
package/README.md CHANGED
@@ -29,6 +29,8 @@ dsh plugin add @aiwayds/dsh-llm-proxy # 或在 settings.yaml 的 plugins 里
29
29
  # name: '@aiwayds/dsh-llm-proxy'
30
30
  ```
31
31
 
32
+ > **要求 dsh >= 0.1.2-rc.1** — 本插件只跟随 dsh RC/stable 线(CI 与发版在运行时解析 latest/next 中更新的 dist-tag)。**不再支持 alpha 线。**
33
+
32
34
  > ⚠️ 最低宿主要求:0.2.0 起本插件声明 `inject: ['skills']`,要求宿主 dsh 提供 skills
33
35
  > 服务(`@deepseek-ai/dsh-skill` 0.1.1-rc 系列+)。无该服务的旧宿主上,本插件(含代理
34
36
  > 路由功能)不会加载。
@@ -36,6 +38,23 @@ dsh plugin add @aiwayds/dsh-llm-proxy # 或在 settings.yaml 的 plugins 里
36
38
  > 发布状态:本包已发布到 npm(0.2.0,自带内置 skill),方式一
37
39
  > `dsh plugin add @aiwayds/dsh-llm-proxy` 即可直接用。
38
40
 
41
+ ## 卸载
42
+
43
+ ```bash
44
+ dsh plugin --profile <profile> remove @aiwayds/dsh-llm-proxy
45
+ ```
46
+
47
+ 宿主自动清理:profile 清单里的 `dsh.profile.bundles` 条目被摘除,本包的 patch 层随之卸下。
48
+
49
+ 插件自身**不在磁盘上留下任何状态**——不写任何文件,环境变量只读不写;进程级 undici/fetch 全局接管的拆除是对称且经过测试的(`test/dispose.test.mjs` 覆盖 dispose 后 globals 还原与 HMR 窗口),dispose 干净。
50
+
51
+ 会留存的只有**手动安装的 skill**(见上文 Skill 一节),需手工删除:
52
+
53
+ ```bash
54
+ rm ~/.dsh/skills/dsh-llm-proxy # 手动拷贝/软链的副本
55
+ rm -r ~/.agents/skills/dsh-llm-proxy # npx skills add 装出的条目
56
+ ```
57
+
39
58
  ## Skill(内置使用指南)
40
59
 
41
60
  本仓库自带一个 dsh skill(`skills/dsh-llm-proxy/SKILL.md`):面向 agent 的配置 + 排障
@@ -65,7 +84,7 @@ cordis 闭包,导致双实例崩溃(详见 dsh 生态 link-dsh-closure 机
65
84
  ## 配置入口(settings.yaml 命名空间段)
66
85
 
67
86
  dsh 插件的用户配置唯一入口是 **settings.yaml 里按插件 id 命名的命名空间段**。本插件通过
68
- `@deepseek-ai/dsh-settings`(要求 `>=0.1.2-alpha.4`)settings provider 的
87
+ `@deepseek-ai/dsh-settings`(要求 `>=0.1.2-rc.1`)settings provider 的
69
88
  `installSection` 注册了 `dsh-llm-proxy` 命名空间
70
89
  (与 harness 内置插件 `llm-deepseek` 的 `llm-deepseek:` 段同机制),所以请在
71
90
  `~/.dsh/settings.yaml` 写:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwayds/dsh-llm-proxy",
3
- "version": "0.3.1",
3
+ "version": "0.4.1",
4
4
  "description": "dsh plugin: SYSTEM proxy (env) + LLM traffic-splitting proxy via a process-global undici routing dispatcher",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -34,7 +34,8 @@
34
34
  "check": "tsc --noEmit -p tsconfig.json",
35
35
  "pretest": "npm run build",
36
36
  "prepare": "npm run build",
37
- "test": "node --test test/match.test.mjs test/router.test.mjs test/config.test.mjs test/skill.test.mjs test/dispose.test.mjs test/e2e.test.mjs"
37
+ "test": "node --test test/match.test.mjs test/router.test.mjs test/config.test.mjs test/skill.test.mjs test/dispose.test.mjs test/e2e.test.mjs",
38
+ "smoke": "node scripts/smoke-boot.mjs"
38
39
  },
39
40
  "dependencies": {
40
41
  "undici": "8.9.0"
@@ -42,8 +43,8 @@
42
43
  "peerDependencies": {
43
44
  "@deepseek-ai/cordis": "4.0.2",
44
45
  "@deepseek-ai/schemastery": "3.18.2",
45
- "@deepseek-ai/dsh-settings": ">=0.1.2-alpha.4",
46
- "@deepseek-ai/dsh-skill": ">=0.1.2-alpha.4"
46
+ "@deepseek-ai/dsh-settings": ">=0.1.2-rc.1",
47
+ "@deepseek-ai/dsh-skill": ">=0.1.2-rc.1"
47
48
  },
48
49
  "peerDependenciesMeta": {
49
50
  "@deepseek-ai/cordis": {
@@ -59,8 +60,8 @@
59
60
  "devDependencies": {
60
61
  "@deepseek-ai/cordis": "4.0.2",
61
62
  "@deepseek-ai/schemastery": "3.18.2",
62
- "@deepseek-ai/dsh-settings": "0.1.2-alpha.4",
63
- "@deepseek-ai/dsh-skill": "0.1.2-alpha.4",
63
+ "@deepseek-ai/dsh-settings": "0.1.2-rc.1",
64
+ "@deepseek-ai/dsh-skill": "0.1.2-rc.1",
64
65
  "@types/node": "^24.0.0",
65
66
  "typescript": "^5.9.0"
66
67
  },