pi2dsh 0.6.1 → 0.8.0

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
@@ -13,9 +13,12 @@ dsh plugin --profile headless add pi-vision-tool
13
13
 
14
14
  No conversion step, no generated bundles: the engine discovers every Pi
15
15
  package you added to the profile and mounts them all through one bridge
16
- instance. Remove with `dsh plugin remove <pkg>`; upgrade the engine with
17
- `dsh plugin add pi2dsh@latest` (your plugins are untouched), upgrade a
18
- plugin with `dsh plugin add <pkg>@latest` (the engine is untouched).
16
+ instance. Mounting happens at startup **restart `dsh` after adding or
17
+ removing plugins**. Remove a plugin with `dsh plugin remove <pkg>` (remove
18
+ plugins before removing the engine, or they sit unmounted); upgrade the
19
+ engine with `dsh plugin add pi2dsh@latest` (your plugins are untouched),
20
+ upgrade a plugin with `dsh plugin add <pkg>@latest` (the engine is
21
+ untouched).
19
22
 
20
23
  If an add stops with `ERR_PNPM_IGNORED_BUILDS` (pnpm blocks dependency
21
24
  build scripts by default), set the listed packages to `true` under
@@ -133,7 +136,7 @@ is aspirational.
133
136
  | Example | What you get |
134
137
  |---|---|
135
138
  | [`examples/vision-bridge`](examples/vision-bridge/) | A text-only model answers questions about images: mention an image path, a configured vision model reads it, the analysis is injected into the conversation (works in CLI and the DSH web app; probe images included) |
136
- | [`examples/custom-models`](examples/custom-models/) | Define a provider once in Pi's standard `models.json` it becomes a native DSH llm route: visible in the DSH web model picker, usable as the main model, and resolvable/callable by every Pi plugin through one directory |
139
+ | [`examples/custom-gateways`](examples/custom-gateways/) | Add any OpenAI-compatible gateway the official DSH way (the `llm-pi-ai:` section of DSH settings) it appears in the DSH model picker, works as the main model, and every Pi plugin sees it through the bridge's registry projection; the bridge owns zero model configuration |
137
140
 
138
141
  More verified capabilities (approval guardian, cross-session memory,
139
142
  interactive OAuth, MCP config conversion, host mode) get their examples as
package/README.zh.md CHANGED
@@ -12,9 +12,10 @@ dsh plugin --profile headless add pi-vision-tool
12
12
  ```
13
13
 
14
14
  没有转换步骤、没有生成产物:引擎自动发现你加进 profile 的每个 Pi 包,
15
- 全部经一份桥实例挂载。卸载用 `dsh plugin remove <包>`;升级引擎
16
- `dsh plugin add pi2dsh@latest`(插件不动),升级插件
17
- `dsh plugin add <包>@latest`(引擎不动)。
15
+ 全部经一份桥实例挂载。挂载发生在启动时——**加/卸插件后要重启 `dsh`**。
16
+ 卸插件用 `dsh plugin remove <包>`(先卸插件再卸引擎,否则插件留在依赖里
17
+ 没人挂载);升级引擎 `dsh plugin add pi2dsh@latest`(插件不动),升级
18
+ 插件 `dsh plugin add <包>@latest`(引擎不动)。
18
19
 
19
20
  如果 add 报 `ERR_PNPM_IGNORED_BUILDS`(pnpm 默认拦依赖的构建脚本):
20
21
  在 profile 的 `pnpm-workspace.yaml` 里把列出的包在 `allowBuilds` 下设为
@@ -123,7 +124,7 @@ npx pi2dsh mcp-config # Pi mcpServers → DSH patc
123
124
  | 示例 | 你得到什么 |
124
125
  |---|---|
125
126
  | [`examples/vision-bridge`](examples/vision-bridge/) | 纯文本模型回答图片问题:消息里带图片路径,配置的视觉模型识图,分析结果注入对话(CLI 与 DSH Web 都能用;附探针测试图) |
126
- | [`examples/custom-models`](examples/custom-models/) | Pi 标准 `models.json` 里定义一次 provider——它成为原生 DSH llm 路由:出现在 DSH Web 模型选择器、可当主模型对话、所有 Pi 插件经同一个目录可见可调 |
127
+ | [`examples/custom-gateways`](examples/custom-gateways/) | DSH 官方方式(DSH settings `llm-pi-ai:` 段)接入任意 OpenAI 兼容网关——出现在 DSH 模型选择器、可当主模型、所有 Pi 插件经桥的 registry 投影看到同一路由;桥自身零模型配置 |
127
128
 
128
129
  更多已验证能力(审批 guardian、跨会话记忆、交互式 OAuth、MCP 配置转换、host 模式)的示例,将按同一标准逐个重新端到端验证后补齐。
129
130