@lynn123411/dsh-llm-agentrouter 0.2.0 → 0.2.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynn123411/dsh-llm-agentrouter
2
2
 
3
- AgentRouter 中转聚合插件:把同一家中转的多个模型收拢为一条 pi-ai 路由(模型选择器只出现一个 AgentRouter 分组),国内 / 国际端点在「设置 - 插件 - AgentRouter 中转站」一键切换、下一请求即生效,外加出站请求的 User-Agent 改写与 402 配额耗尽提示围栏。分叉自 `aqiu817/dsh-llm-agentrouter`,适配 DSH `0.1.2-alpha.5` settings/slots API
3
+ AgentRouter 中转聚合插件:把同一家中转的多个模型收拢为一条 pi-ai 路由(模型选择器只出现一个 AgentRouter 分组),国内 / 国际端点在「设置 - 插件 - AgentRouter 中转站」一键切换、下一请求即生效,外加出站请求的 User-Agent 改写与 402 配额耗尽提示围栏。分叉自 `aqiu817/dsh-llm-agentrouter`,适配 DSH `0.1.2-alpha.5` 起的新 settings/slots API,已在 `0.1.5-rc.1` 逐项实证兼容。
4
4
 
5
5
  ## 特性
6
6
 
package/cordis.patch.yml CHANGED
@@ -47,6 +47,17 @@
47
47
  # field for. The group title is therefore the only reachable surface — and it is
48
48
  # a name, not a notice, so it stays a name. The endpoint is explained where it is
49
49
  # changed: 设置 → 插件 → AgentRouter 中转站.
50
+ #
51
+ # WHOLE-OBJECT OVERWRITE, NOT A DEEP MERGE — RE-CHECK ON EVERY dsh-base BUMP
52
+ # The loader applies a patch entry as `target[key] = value`
53
+ # (applyEntryPatches, 0.1.5-rc.1), so the `config:` below REPLACES the
54
+ # llm-pi-ai row's whole config object: nothing a default config carried survives,
55
+ # at any depth. That is safe today only because dsh-base mounts
56
+ # `- id: llm-pi-ai` with a `name:` and no `config:` at all
57
+ # (dsh-base/cordis.patch.yml:107), so there is nothing to lose. If a future
58
+ # dsh-base gives that row a default config, this patch swallows it SILENTLY —
59
+ # diff the shipped llm-pi-ai row against this file on every dsh-base bump and
60
+ # fold whatever it adds into the `providers:` map below.
50
61
  - id: llm-pi-ai
51
62
  name: '@deepseek-ai/dsh-llm-pi-ai'
52
63
  config:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lynn123411/dsh-llm-agentrouter",
3
- "version": "0.2.0",
4
- "description": "AgentRouter 中转聚合:一条 pi-ai 路由承载多模型 + 国内/国际端点一键切换(设置卡片)+ 出站请求 User-Agent/403-配额改写围栏。aqiu817/dsh-llm-agentrouter alpha.5 兼容分叉。",
3
+ "version": "0.2.2",
4
+ "description": "AgentRouter 中转聚合:一条 pi-ai 路由承载多模型 + 国内/国际端点一键切换(设置卡片)+ 出站请求 User-Agent/402-配额改写围栏。aqiu817/dsh-llm-agentrouter 分叉,适配 0.1.2-alpha.5 起新 settings/slots API,已在 0.1.5-rc.1 逐项实证兼容。",
5
5
  "keywords": [
6
6
  "deepseek-harness",
7
7
  "dsh-plugin",
@@ -44,6 +44,9 @@
44
44
  "LICENSE",
45
45
  "README.md"
46
46
  ],
47
+ "publishConfig": {
48
+ "access": "public"
49
+ },
47
50
  "scripts": {
48
51
  "test": "node --test test/*.test.mjs"
49
52
  },