dsh-gateway-provider 1.0.6 → 1.0.8

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
@@ -131,11 +131,10 @@ the bridge is lifted from the official `dsh-llm-pi-ai` adapter.
131
131
  ```sh
132
132
  git clone https://github.com/Luck9Star/dsh-gateway-provider
133
133
  cd dsh-gateway-provider
134
- npm install # installs the plugin-pinned pi-ai copy (direct dependency)
135
- npm run link # symlink @deepseek-ai/* into your dsh profile (single instanceof safety)
136
- npm run test:client # settings-UI render, both locales
137
- npm run test:urls # URL/derivation units
138
- npm run smoke # live gateway round-trip (needs a real key)
134
+ pnpm install # pi-ai (pinned) + @deepseek-ai/* profile symlinks, via the prepare hook
135
+ pnpm run test:client # settings-UI render, both locales
136
+ pnpm run test:urls # URL/derivation units
137
+ pnpm run smoke # live gateway round-trip (needs a real key)
139
138
  ```
140
139
 
141
140
  ### Why the plugin pins its own pi-ai
package/docs/README.zh.md CHANGED
@@ -91,11 +91,10 @@ dsh --profile web
91
91
  ```sh
92
92
  git clone https://github.com/Luck9Star/dsh-gateway-provider
93
93
  cd dsh-gateway-provider
94
- npm install # 安装插件自带的 pi-ai 固定副本(直接依赖)
95
- npm run link # @deepseek-ai/* 软链进 dsh profile(保证单实例)
96
- npm run test:client # 设置页渲染测试,双语言
97
- npm run test:urls # URL 派生单元测试
98
- npm run smoke # 真实网关往返(需要真 key)
94
+ pnpm install # 一条命令搞定:pi-ai 固定副本 + @deepseek-ai/* 软链(prepare 钩子自动执行)
95
+ pnpm run test:client # 设置页渲染测试,双语言
96
+ pnpm run test:urls # URL 派生单元测试
97
+ pnpm run smoke # 真实网关往返(需要真 key)
99
98
  ```
100
99
 
101
100
  ### 为什么插件自带 pi-ai
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-gateway-provider",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Generic LLM gateway model provider plugin for DeepSeek Harness: mounts newapi / LiteLLM / Higress / any OpenAI-compatible gateway as provider routes, auto-discovers the model list, enriches every model with models.dev parameters, and dispatches each model over its native wire protocol (OpenAI / Anthropic / Gemini) via the pi-ai SDK",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,6 +24,7 @@
24
24
  "docs"
25
25
  ],
26
26
  "scripts": {
27
+ "prepare": "bash scripts/link.sh",
27
28
  "link": "bash scripts/link.sh",
28
29
  "smoke": "node test/smoke.mjs",
29
30
  "test:session": "node test/session-affinity.mjs",