diff --git a/scripts/sync-plugins-from-repo.js b/scripts/sync-plugins-from-repo.js index a11a6e2..ba9647d 100644 --- a/scripts/sync-plugins-from-repo.js +++ b/scripts/sync-plugins-from-repo.js @@ -19,6 +19,11 @@ const IDS = ['batch-export', 'blank-canvas', 'browser', 'gallery', 'grouplib', ' // 若不同步成目录,插件自带样式会被静默忽略(v1.0.3 grouplib 换行样式的坑)。 const FOLDER_IDS = ['gallery'] +// 刻意不随客户端/市场发布的插件(开发者直装): +// ai-chat —— 依赖本机 Magpie(3425) + 需宿主 CSP 放行,上架会让多数用户装上连不上。 +// 详见 ../iwb-plugins-desktop/ai-chat/README.md「状态」一节。 +const DEV_ONLY_IDS = ['ai-chat'] + const sha = (buf) => crypto.createHash('sha256').update(buf).digest() const shaHex = (buf) => sha(buf).toString('hex') const sri = (buf) => 'sha256-' + sha(buf).toString('base64')