opencode-plugin-hub 0.1.4 → 0.3.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 +3 -1
- package/dist/gui-experimental.cjs +44 -17
- package/package.json +2 -2
- package/src/contract.ts +22 -0
- package/src/gui/admin.ts +127 -9
- package/src/gui/page.tsx +245 -50
- package/src/gui.tsx +2 -0
package/README.md
CHANGED
|
@@ -200,6 +200,8 @@ npm run refresh # 重建内置目录快照(会逐个查 npm,约 1-2 分钟
|
|
|
200
200
|
|
|
201
201
|
## 发布到 npm
|
|
202
202
|
|
|
203
|
+
> 发布只通过 GitHub Actions:`npm version patch` 后推送 `v*` tag,由 `.github/workflows/publish.yml` 构建并发布。本地 `npm publish` 已被 `prepublishOnly` 守卫禁止。下面的手动流程仅作历史/首次发布参考(首次发布 npm 无法用 OIDC)。
|
|
204
|
+
|
|
203
205
|
包名 `opencode-plugin-hub` 当前在 npm 上可用。注意:这台机器默认 registry 是 `registry.npmmirror.com`(淘宝镜像),**镜像不能发布**;`package.json` 的 `publishConfig.registry` 已经固定到官方 `registry.npmjs.org`,登录也要显式指定:
|
|
204
206
|
|
|
205
207
|
```bash
|
|
@@ -218,7 +220,7 @@ npm publish --access public # publishConfig 会把它发到 registry.
|
|
|
218
220
|
- `files` 只带 `dist`、`src`、`LICENSE`;`README.md`、`package.json` 由 npm 自动包含。
|
|
219
221
|
- `repository` / `homepage` / `bugs` 已指向 <https://github.com/meiyx7/opencode-plugin-hub>;如果你 fork 或转移仓库,记得同步改这三项。
|
|
220
222
|
- 如果 `opencode-plugin-hub` 被占用,改用带 scope 的名字,例如 `@your-name/opencode-plugin-hub`,同步改 `package.json` 的 `name` 和安装文档。
|
|
221
|
-
- 更新版本:`npm version patch`(或 `minor` / `major`),再 `npm publish
|
|
223
|
+
- 更新版本:`npm version patch`(或 `minor` / `major`),再 `git push --follow-tags`,由 GitHub Actions 自动发布;本地 `npm publish` 已被 `prepublishOnly` 守卫禁止。
|
|
222
224
|
- 有 2FA 的账号发布时会提示输入一次性验证码。
|
|
223
225
|
- npm 发布是公开且难以撤回的,建议先 `npm pack`,在本地或测试机器上确认能装再发。
|
|
224
226
|
- 发布后用 `npm view opencode-plugin-hub version --registry=https://registry.npmjs.org/` 确认。npmmirror 是异步镜像,刚发布时可能还没同步;如果 OpenCode 通过镜像拉包暂时找不到,等几分钟或临时把 registry 指向官方 npm。
|