Repository navigation
feat(h3-image-executor): 把一句话需求跑成经过校验的 4K 图片 - #123
Merged
Merged
Conversation
新增 Mini App 插件包 plugins/liddalidd/h3-image-executor(v1.8.1),并在两个根 README 的列表里各加一行。
MyPrototypeWhat
approved these changes
Nov 11, 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.
新增 H3-Image-Executor:在 MiniMax Code 里把一句话需求跑成经过校验的 4K 图片。它会规划分镜、检索参考图、生成、看图评审、校正色偏、有限次修正,最后交付图片和验收报告;多图任务会先生成角色设定图,让同一个主体前后一致。使用前需要自备 H3-Image 接口地址和 Key。
测试环境与结果
website_deploy确认卡片,点「允许一次」后拿到链接;在聊天里说画图需求,会打开面板并把需求交进去。npm run check:0 个 error;本包 1 个 warning,原因见下;92 个测试全部通过。没有验证的
session.run或tool:call后的提示、问卷、Host 重新加载页面后的视图恢复。剩余的
npm run checkwarningENTRY_STDOUT(miniapp/node/tools/h3-review.mjs):这是随h3-image-reviewSkill 发布的命令行工具,由 Agent 用node单独运行。Mini App 入口server.mjs不会 import 它,所以它的 stdout 是这个子进程自己的输出,不是 Host 的。声明的权限与最低客户端版本
agentAccess: ["session.run"],agentConcurrency: 8:规划、评审、修正、选优都跑 Agent 轮次;「发布公开链接」再跑一轮去调website_deploy,这一次调用要用户在页面上点「允许一次」,应用从不替用户放行。toolAccess: ["call"]:只调用名字里含search_images的工具(测试环境里是connector__matrix__search_images),用来检索参考图。surface.window:弹出窗口的尺寸。toolAccess决定)。没有声明session.read、deviceAccess、hostAccess。Written by Claude Opus 5.5
包里有什么
plugins/liddalidd/h3-image-executor/,插件 IDh3-image-executor,v1.8.1,分类 Studio,MIT。miniapp/client是页面;miniapp/node是server.mjs入口、工作流、H3-Image 客户端,以及纯 JS 的 PNG / JPEG 编解码,没有第三方依赖。h3-image-executor让聊天里的画图需求默认交给面板,用户点名别的工具或不想用面板时听用户的;h3-image-review说明随包的h3-review命令行工具怎么用。docs/dashboard.jpg是包内 README 和这里用的截图,样例会话是四张城市黄昏街景。MINIMAX_API_KEY/MINIMAX_BASE_URL。数据与访问(摘要,完整内容见包内 README 的
## Data & access)context.dataDir(settings.json权限 0600、sessions/<id>/、refcache/、sessions/.trash/),JSON 状态原子写入。dataDir之外只有两处:发布轮次把分享页拷到本 Mini App 自己的 Agent 工作目录下的h3-share-publish/index.html,因为website_deploy只接受这个目录里的路径;h3-review被 Agent 运行时会写看图材料。~/.zshrc等 shell 配置,只找MINIMAX_API_KEY、MINIMAX_BASE_URL;README 写明了这依赖未公开的布局。不读 MiniMax Code 自己的配置文件。pbpaste/pbcopy,Windows 是 PowerShell),参数固定、不经过 shell、2 秒超时、输出有上限。几个设计取舍
website_deploy只下发给 Agent 轮次,context.tool调不到它。这一轮里除website_deploy以外的工具请求一律自动拒绝;website_deploy本身交给用户在页面上确认。https://<name>.space.mcode.cn地址。session.run或tool:call时,页面会说明该打开哪个开关;Agent 权限被关掉时任务立刻停下,不再继续消耗生图请求。Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.