This commit is contained in:
1 parent
a5081a81bb
commit
aa4ec99c0b
3 files changed
+25
-1
No files matched your search
@@ -97,7 +97,7 @@
|
||||
| `image-annotate/` | 标注 / 修图:全屏单张图片编辑器(选区 / 图层 / 裁剪…) | **需构建** |
|
||||
| `image-vectorize/` | 位图转矢量:potrace 单色 / 灰度描摹 → SVG / PNG | **需构建** |
|
||||
| `style-source/` | 风格库:367 风格面板 → 插预览图 / 提示词 / 样式节点 | 手写单文件 |
|
||||
| `ai-chat/` | AI 对话:直连本机 Magpie 网关的浮窗流式对话 | 手写单文件 |
|
||||
| `ai-chat/` | AI 对话:直连本机 Magpie 网关的浮窗流式对话 | 手写单文件 · 实验/需本机 Magpie+CSP |
|
||||
|
||||
> 桌面仓的同步脚本 `sync-plugins-from-repo.js` 里有一份**上架白名单**(当前为
|
||||
> `batch-export / blank-canvas / image-annotate / image-vectorize / style-source / white-bg-800 / xianyi-cutout`)。
|
||||
|
||||
@@ -48,3 +48,15 @@
|
||||
暂以开发者模式本机加载:把 `src/index.js` 放到 `<资料目录>/plugins/local/ai-chat/plugin.js`,
|
||||
打开客户端开发者模式后重启。若要纳入市场,需先把 id 加进桌面仓同步脚本的白名单、改好 CSP 并重新打包客户端,
|
||||
再走根 README「发布到市场」的链路。
|
||||
|
||||
## 状态:实验性,默认不上市场(2026-11-22 明确)
|
||||
|
||||
本插件**不在** `plugins/index.json` / `market/index.json` 的同步白名单里(见根 README 与 `image-workbench-desktop/scripts/sync-plugins-from-repo.js` 的 `DEV_ONLY_IDS`)。原因:
|
||||
|
||||
1. 依赖**本机 Magpie** 网关(默认 `127.0.0.1:3425`),多数用户没有;
|
||||
2. 需要宿主 CSP `connect-src` 放行 `3425`,必须**改客户端并重新打包**才生效。
|
||||
|
||||
因此它只作为「开发者直装」保留:
|
||||
|
||||
- 目录里已有 `manifest.json`(`main` 指向 `src/index.js`);想本机试用,把整个 `ai-chat/` 放到资料目录 `plugins/ai-chat/`,并在宿主 CSP 里放行 3425 后重启;
|
||||
- 不随客户端发版、不进市场,避免用户装了连不上。
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"id": "ai-chat",
|
||||
"name": "AI 对话",
|
||||
"version": "1.0.0",
|
||||
"apiVersion": 1,
|
||||
"main": "src/index.js",
|
||||
"description": "浮窗直连本机 Magpie(OpenAI 兼容网关)的 AI 对话插件;需本机网关 + 宿主 CSP 放行 3425 端口,默认不上市场。",
|
||||
"author": "official",
|
||||
"icon": "💬",
|
||||
"tags": ["AI", "对话", "实验"],
|
||||
"files": {}
|
||||
}
|
||||
Reference in new issue
Block a user