dsh-plugin-litellm-bridge 0.0.0-stage → 2.0.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.
@@ -0,0 +1,32 @@
1
+ # dsh-plugin-litellm-bridge
2
+
3
+ LiteLLM 网关桥接插件(DSH)。完整文档见仓库根 [`README.md`](../README.md) 与
4
+ [`docs/README.md`](../docs/README.md)。
5
+
6
+ ## 它做什么
7
+
8
+ 1. **读 DSH 模型池** —— 模型与凭证都在 DSH【设置 → 模型】维护,插件只读取;
9
+ 不向网关拉模型清单,也不接管供应商凭证。
10
+ 2. **编排降级链** —— 每个 profile 下 `root` / `coder` / `research` 三条独立链,
11
+ 从 DSH 模型池选模型、拖拽排序、填超时。
12
+ 3. **下发执行** —— 生成 `config.yaml` 交给 LiteLLM 网关;网关按顺序执行
13
+ 重试 / 降级。插件本身**不含任何路由逻辑**。
14
+ 4. **网关生命周期跟随 DSH** —— DSH 启动自动拉起,退出自动关闭;异常退出
15
+ 写进日志面板。
16
+ 5. **会话级入口** —— 会话标题旁直接选 profile,存入会话变量。
17
+ 6. **子代理改道** —— Trae/WorkBuddy 会话的 spawn 子 Agent 强制走网关的
18
+ subagent 链;主 Agent 保持原供应商。
19
+
20
+ ## 本地开发
21
+
22
+ ```bash
23
+ node tests/run-all.mjs # 497 项静态/逻辑断言
24
+ node tests/live-e2e.mjs # 拉起真实网关验证链路(20 项)
25
+ ```
26
+
27
+ ## 安装
28
+
29
+ 本目录可独立安装(`file:`),仓库根也提供同名的可 `git+https` 安装版本。
30
+ 两种形态指向同一份实现,`tests/package-layout.test.mjs` 有断言防止漂移。
31
+
32
+ MIT