@aiwayds/dsh-llm-proxy 0.4.0 → 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 +17 -0
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -38,6 +38,23 @@ dsh plugin add @aiwayds/dsh-llm-proxy # 或在 settings.yaml 的 plugins 里
38
38
  > 发布状态:本包已发布到 npm(0.2.0,自带内置 skill),方式一
39
39
  > `dsh plugin add @aiwayds/dsh-llm-proxy` 即可直接用。
40
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
+
41
58
  ## Skill(内置使用指南)
42
59
 
43
60
  本仓库自带一个 dsh skill(`skills/dsh-llm-proxy/SKILL.md`):面向 agent 的配置 + 排障
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwayds/dsh-llm-proxy",
3
- "version": "0.4.0",
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"