Repository navigation
Conversation
新增 beeftv-plugin-runninghub:用户手动添加工作流编号或 app:编号 作为模型, 插件自己上传素材、填节点、查进度。同一个提交删掉内置实现:Go 的 RunningHub 代码、内置插件声明、坏的 runninghub-workflow 协议包、画布和设置页里的 RunningHub 字段和工作流编辑器。按确认的方案不做迁移。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
这个 PR 做什么
RunningHub 从内置功能变成一个普通插件
beeftv-plugin-runninghub。你的工作流和 AI 应用就是 BeefTV 里的模型:在「模型配置 → 添加模型服务」选 RunningHub,填 API Key,手动加上工作流编号,画布上就能用。同一个 PR 删掉内置实现:Go 里的 RunningHub 代码、内置的 RunningHub 插件声明、坏的
runninghub-workflow协议包、画布和设置页里写死的 RunningHub 字段。净删约 1.1 万行。依赖 #413(基于
feat/plugin-comfyui)。用户能看到的变化
不做迁移
按已确认的方案,不搬旧配置,也不留内置兜底。之前配过的人要去市场装插件、重新填 Key,旧 RunningHub 节点要重新选模型。
实际影响比预想小:改动前内置 RunningHub 在桌面版里已经用不了。
localWorkspaceConfig每次都把runningHub配置清回默认值。runninghub-settings-pane.tsx没有任何引用。需要审阅的决定
字段映射编辑器、图形编辑器、测试台没有搬进插件,随内置实现一起删掉了。 已确认的方案没有提到它们,这里沿用 ComfyUI 插件的做法:自动判断提示词、素材和种子该填到哪。如果要保留手动映射,需要单独做一个插件设置界面。
其他取舍:
app:编号,也可以贴网页链接。PARAMS_INVALID、GET 能走到鉴权,所以旧的 POST 很可能一直是坏的。lib/targets.mjs是 ComfyUI 插件分类表的精简副本。 两个插件各自独立发布,为此再发一个共用包现在不值得。workflowProvider字段保留,只剩"model"一个值。 重试靠它判断是否以节点自身设置为来源,删掉会改变普通生成的重试行为。/plugins/status只返回states,不再返回statuses。statuses只服务内置工作流插件。验证
go test ./...bun run testpublic release boundary,测试环境缺rsync,与本 PR 无关)tsc、bun run lint、bun run build、node scripts/structure-budget.mjs没有验证的部分
没有用真实 RunningHub 账号跑过。 上游行为的依据只有三类:旧 Go 客户端、一个第三方 SDK、用假 Key 探测到的接口响应。官方文档多数页面读不到。真实账号的付费冒烟要等项目负责人给预算。
生成配置节点的新面板只做了渲染测试,浏览器里当前没有直接新建这个节点的入口,没有点过。
已知问题(不在本 PR 修)
GET /v1/images/jobs/{id}。这是 BeefAPI 专用的查询,对插件服务没有意义。请求只发给同一服务,密钥不外泄,404 后不影响结果,ComfyUI 插件同样如此。workflow分组在浮动菜单中不显示。合并顺序
和 #409 只有一处冲突:
web/src/pages/plugins/index.tsx顶部的一行图标 import,两边各删了几个图标。后合并的一方取两边都用到的图标即可。和 #414 没有冲突。界面有改动,合并前需要交叉 review。
发布前提
beeftv-plugin-runninghub还没有发布到 npm,也没有进插件市场清单。发布和清单 PR 需要单独确认。🤖 Generated with Claude Code