jiaruihuang/dsh-pi-ai-sync ↗★ 0
dsh-pi-ai-sync
dsh plugin: fuse dsh-model-sync (settings seam) and dsh-opencode-go-models (pi-ai catalog file) so provider routes stay in step with the pi.dev gateway — and new models become selectable without hand-editing node_modules. 适合使用pi.dev网关且不想手动编辑代码更新模型列表的用户
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jiaruihuang/dsh-pi-ai-syncドキュメント
README 全文を読む ↗Configuration
Edit the pi-ai-sync section of your settings document (on the dsh 0.1.x line
that is ~/.dsh/settings.yaml):
pi-ai-sync:
managedRoutes:
- opencode
- opencode-go
settingsMode: unset
intervalMinutes: 240
| Key | Default | Description |
|---|---|---|
managedRoutes | [] | Routes to sync; empty = opencode, opencode-go |
settingsMode | unset | unset removes the route's models override; mirror rewrites it from pi.dev; keep leaves settings alone |
catalogSync | true | Maintain the installed pi-ai catalog files (the core leg) |
intervalMinutes | 240 | Auto-refresh interval; 0 = startup only |
startupDelaySeconds | 5 | Delay before the first auto round |
refreshTimeoutMs | 120000 | Abort budget for one round's request |
syncNotify | true | Log the report when there was something to report |
keepBuiltinOnly | true | In mirror mode, keep catalog-only ids in the written list |