Repository navigation
Conversation
- 新增 WorkflowManageCommandHandler,仅 bot 管理员(sudoers)可开启/关闭本群工作流 - 新增 WorkflowGroupOptions,群开关持久化于 workflow-config.json - WorkflowCommandHandler 仅允许已启用群使用 /workflow:run,未启用群静默忽略 - 更新 ZeroBot.Workflow 文档
feat(workflow): 新增群启用开关 /workflow:enable 与 /workflow:disable
/workflow:run 的 /v1/compile 与 /v1/run 请求各自默认超时由 600 秒提升到 1800 秒, 仍可用 WorkflowService__HttpTimeoutSeconds 覆盖。
公共素材(新增):
- /小画家:公共素材 列出本群素材(所有群员);/小画家:公共素材:添加:{name} 与
/小画家:公共素材:删除:{name} 需高权限(sudoers / 群管理员 / painter.manage)。
- 素材落盘于工作目录 painter/{群uid}/{名称SHA-256前16位}/,含 material.json 与图片文件;
同名添加覆盖,写入用临时目录 + 原子替换,增删在进程内串行。
- 三条指令跟随群开启状态:未 /小画家:启用 的群完全静默。
绘图引用:
- /小画家:画 支持引用消息:被引用消息中的全部图片优先参与绘图(引用消息的图片 > 本消息的图片)。
- 提示词开头 {name} 引用公共素材,命中则移除占位符并追加其图片,未命中则不替换、原样保留;
参考图总计不超过 MaxImages 张。
失败回发上游错误:
- PainterApi.GenerateAsync 改为返回 PaintResult,非 2xx / JSON 响应 / 空体 / 超时等失败
场景回发上游状态码与响应体原文(截断至 300 字符)。
文档:更新 src/plugins/AGENTS.md 的 Painter 条目。
测试:新增 PainterMaterialStore / PainterMaterialCommandHandler 用例,
扩充 PaintCommandHandler 与 PainterApi 用例;dotnet test 107 passed。
feat(painter): 公共素材库与绘图引用(引用消息 / 素材),失败回发上游错误
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.
No description provided.