Repository navigation
Conversation
- 新增 GET /api/plugins/updates:从 npm 或精选列表装的插件,返回有新版本的 和确认已是最新的两份名单。插件中心有新版本时显示「更新到 vX」,已是最新时 不显示按钮;从 GitHub、网址装的或查询失败的照旧显示「更新」,文件夹装的仍是 「重新加载」。 - 精选列表里带 tarball 和 sha256 的插件,启动一分钟后和之后每 6 小时检查一次, 有新登记的版本就自动更新;失败只记日志,下一轮再试。 - 精选列表新增 packages 数组,只写 npm 包名,名称、说明、版本从 npm 读; 旧版 BeefTV 不认这个键,会直接忽略。 - 插件页的设置表单拆到单独文件(页面原有 856 行,近两周改了 9 次)。 - 插件开发文档「发布与上架」改成提 PR 加一行包名。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
接在 #408 后面(base 是
feat/plugin-provider-models)。为什么
改了什么
新版本提示
GET /api/plugins/updates。它查从 npm 或精选列表装的插件,返回两份名单:有新版本的(updates),和确认已是最新的(upToDate)。x.y.z三段数字,读不懂的版本号不提示更新。精选插件自动更新
plugins里带tarball和sha256的条目由我们维护。上架只写包名
registry.json新增packages数组,只写 npm 包名。卡片上的名称、说明、版本、作者和仓库都从 npm 读,结果缓存 10 分钟。plugins里重复的包只显示一次。packages,会直接忽略,不会显示缺信息的卡片。其它
pages/plugins/index.tsx原来有 856 行,近两周改了 9 次。按 AGENTS.md 第 10 节,把插件设置表单拆到plugin-fields-config-form.tsx,更新按钮单独成plugin-update-button.tsx。拆完是 771 行。npmRegistryOrder。验证
updates;updates,并标为official;upToDate;packages里的包名会从 npm 补全成卡片,查不到的和空行会跳过,搜索词能过滤;go test ./...:68 个包里 67 个通过。internal/bootstrap的TestRuntimeOpenStartClose偶尔在关闭时超时,原因是测试客户端留下一条还没发请求的空连接,Go 要等满 5 秒才把它当空闲连接关掉,而测试的关闭时限正好是 5 秒。没有本 PR 的提交也会出现,修法在 test(bootstrap): 运行时测试 - 关闭前清掉客户端空闲连接,修偶发超时 #411。bun run test:3343 个通过;2 个失败是「公开发布导出」测试,它调用的脚本要用rsync,这台机器没装(退出码 127),和本 PR 无关。脚本在这组失败后就退出了,单独运行的 123 个测试文件另外补跑,全部通过。go vet、tsc --noEmit、bun run lint、bun run build通过。还没验证:
合并前
beeftv-plugins仓库的registry.json要加上packages数组,才能用一行上架。这是对外改动,等确认后再提 PR。🤖 Generated with Claude Code