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 +7 -4
- package/README.zh.md +5 -4
- package/dist/analyzer-CKTsWVzn.mjs +628 -0
- package/dist/analyzer-CKTsWVzn.mjs.map +1 -0
- package/dist/cli.mjs +3 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/compat/pi-ai.d.mts +1 -11
- package/dist/compat/pi-ai.d.mts.map +1 -1
- package/dist/compat/pi-ai.mjs +2 -2
- package/dist/credentials-oauth.mjs +1 -1
- package/dist/generator-eyViezvs.mjs +300 -0
- package/dist/generator-eyViezvs.mjs.map +1 -0
- package/dist/host.d.mts +2 -0
- package/dist/host.d.mts.map +1 -1
- package/dist/host.mjs +3 -2
- package/dist/host.mjs.map +1 -1
- package/dist/index.d.mts +28 -10
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +35 -6
- package/dist/index.mjs.map +1 -1
- package/dist/mcp-config-Dlou-ZA-.mjs +707 -0
- package/dist/mcp-config-Dlou-ZA-.mjs.map +1 -0
- package/dist/{pi-ai-7HR3ciAs.mjs → pi-ai-C6Xag6xt.mjs} +12 -46
- package/dist/pi-ai-C6Xag6xt.mjs.map +1 -0
- package/dist/{runtime-CPvg87et.mjs → runtime-B-Mun-jX.mjs} +44 -947
- package/dist/runtime-B-Mun-jX.mjs.map +1 -0
- package/dist/runtime.d.mts +11 -6
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +2 -2
- package/package.json +7 -4
- package/dist/mcp-config-vU1LZ7fC.mjs +0 -1618
- package/dist/mcp-config-vU1LZ7fC.mjs.map +0 -1
- package/dist/pi-ai-7HR3ciAs.mjs.map +0 -1
- package/dist/runtime-CPvg87et.mjs.map +0 -1
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.
|
|
17
|
-
|
|
18
|
-
|
|
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-
|
|
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
|
-
|
|
16
|
-
`dsh plugin
|
|
17
|
-
`dsh plugin add
|
|
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-
|
|
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
|
|