# Reims-Go Plugins Market / 插件市场索引仓库 本仓库是 [Reims-Go](https://github.com/Nwflower/Reims-Go) 的官方与社区插件市场静态索引仓库。 - **客户端主索引**:`https://raw.githubusercontent.com/reims-go/plugins/dist/index.json` - **CDN 备选镜像**:`https://cdn.jsdelivr.net/gh/reims-go/plugins@dist/index.json` - **仓库分工**: - `main` 分支:存放人工维护的 [`registry.json`](registry.json)、[`withdrawn.json`](withdrawn.json) 与校验/构建脚本。 - `dist` 分支:由 GitHub Actions 自动构建发布的轻量静态 `index.json`(只读产物,客户端直接消费)。 - `.zip` 插件压缩包:**不存放在本仓库 Git 历史中**,由各插件作者托管在各自仓库的 GitHub Releases 上。 --- ## 插件上架流程 / How to Submit a Plugin ### 1. 本地开发与标准打包 使用最新版 Reims-Go CLI 校验并生成合规压缩包(自动执行静态安全门禁并生成 `SHA256SUMS`): ```powershell reims-go plugin doctor ./my-plugin reims-go plugin pack ./my-plugin ``` 主题插件可在校验和打包时附加 `--contract ui-contract.json`(取自主仓库 [`frontend/ui-contract.json`](https://github.com/Nwflower/Reims-Go/blob/main/frontend/ui-contract.json)),提前核对公开部件类名(`rg-p-*`)与设计令牌。命令会输出生成的 `-.zip` 路径及其 **64 位 SHA-256 哈希**。 打包前确认以下清单与归档约定(完整架构与契约见 [`Reims-Go/docs/plugin-architecture.md`](https://github.com/Nwflower/Reims-Go/blob/main/docs/plugin-architecture.md)): - **`version`**:须为合法语义化版本且不含首尾空白;市场 CI 校验单个压缩包不超过 256 MiB。 - **`platforms`**:客户端与市场统一支持 `any`、`*`、`windows-x64`、`windows/amd64`(不区分大小写;纯主题与语言包建议写 `["any"]` 或省略)。 - **`engines`**:按需声明 `pluginApi`、`uiApi`、`bridgeApi` 与 `reims-go` 范围,市场预检与本地安装执行同一套校验。 - **`SHA256SUMS`**:统一使用正斜杠相对路径,支持含空格的资源文件名,禁止重复条目与反斜杠(优先由 `reims-go plugin pack` 自动生成)。 - **交互主题脚本**:通过稳定的 `contributes.themes[].uiScript` 声明并请求 `ui:script` 权限,正式版插件不得依赖实验性契约项。 ### 2. 发布 GitHub Release 在你的开源插件仓库打 tag(例如 `v1.0.0`)并上传该 `.zip` 压缩包作为 Release 资产。 ### 3. 向本仓库提 PR 登记到 `registry.json` 在 [`registry.json`](registry.json) 的 `plugins` 数组中添加一条记录: ```json { "id": "community.theme.example", "repo": "your-name/reims-theme-example", "kind": "theme", "trust": "community", "channel": "stable", "version": "1.0.0", "asset": "community.theme.example-1.0.0.zip", "sha256": "", "tags": ["theme", "dark"], "changelog": { "zh-CN": "首个正式版本", "en-US": "Initial stable release" } } ``` > 其余元数据(`name`、`description`、`publisher`、`license`、`engines`、`platforms`、`permissions`、`tier`)由 CI 直接从压缩包内的 `plugin.json` 自动提取,无需重复填写。 --- ## 分级审核与市场红线 / Review Policy & Redlines | 分级 | 类型 | 审核标准 | | :--- | :--- | :--- | | **L1** | 主题、语言包、VM 模板、运行时源、规则 Hook | 通过 `reims-go plugin doctor --json` 零硬拦截,许可证清晰;**严禁夹带任何可执行文件或系统脚本** | | **L4 / `ui:script`** | `iframe` 面板、交互主题脚本 | 公开源码仓库,通过静态门禁(禁止 `window.go` / `window.runtime` / `eval` / 未声明联网等)并经人工代码复核;`ui:script` 在主窗口界面环境运行并可访问页面 DOM(非隔离沙盒),客户端在市场与已安装页均会展示脚本路径与 SHA-256,升级改动脚本后自动暂停待用户重新确认 | | **L3 Sidecar** | 原生可执行程序(如额外客体驱动) | **必须开源且由 GitHub Actions 从源码可复现构建**,禁止未声明额外二进制;客户端将向用户如实披露当前 Windows 账户完整权限与可执行文件 SHA-256 | ### 绝对红线(CI 与客户端双重硬拦截) - 严禁包含任何 Apple 专有系统文件(`.ipsw`、`BaseSystem.dmg`、`InstallESD.dmg`)、闭源固件、SMC OSK 或真实 SMBIOS 序列号。 - 严禁在 `.svg` 中嵌入 `