fix(cindy-art): prioritize Art media handling - #100
Open
GaoWeiLiuXD wants to merge 1 commit into
Open
Conversation
Signed-off-by: liugaowei <liugaowei@xd.com>
|
| Filename | Overview |
|---|---|
| cindy-art/main.js | 扩展所有 Art 参数整理结果的 Agent 指引,明确受管 URI 的展示、复用和按需路径解析方式;未发现可确认的行为缺陷。 |
| cindy-art/ghost.json | 扩大 Art 的默认媒体召回优先级并正确递增补丁版本,现有能力和最低客户端版本声明保持不变。 |
| cindy-art/locales/en.json | 英文 whenToUse 与主清单新增的 Art 优先路由语义一致。 |
| cindy-art/locales/ja.json | 日文 whenToUse 与其他语言保持相同的媒体范围和优先条件。 |
| cindy-art/locales/ko.json | 韩文 whenToUse 与其他语言保持相同的媒体范围和优先条件。 |
| cindy-art/locales/zh-CN.json | 中文本地化同步主清单的媒体范围和 Art 优先路由条件。 |
| .tests/cindy-art.test.mjs | 更新版本断言并覆盖新增路由及媒体处理指引文本;测试与实现一致。 |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
U[用户图片或视频请求] --> R{明确指定其他媒体渠道?}
R -->|是| O[使用指定渠道]
R -->|否| A[优先调用 Art]
A --> P[返回创作参数与模型来源]
P --> C[Cindy Core media]
C --> M[返回受管媒体 URI]
M --> D[最终回复中展示一次]
M --> L{用户明确询问本地路径?}
L -->|是| X[调用 resolve_local_path]
L -->|否| N[直接展示、复用或附件交接]
Reviews (1): Last reviewed commit: "fix(cindy-art): prioritize Art media han..." | Re-trigger Greptile
Collaborator
当前合并门禁未通过(head 51bdf99)新 PR 已进入巡检,当前状态:
请完成人工 review 后正式 Approve;完成前请勿合并。 |
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.
What changed / 改了什么
whenToUse。resolve_local_path;禁止猜测路径或扫描磁盘。main保留订阅专属模型转发修复,并将 Art 版本从 1.13.4 递增到 1.13.5。Why / 为什么
默认生图请求可能被下游 harness 自带图片工具抢占,从而绕过用户在 Art 中配置的模型;同时,工具结果自动渲染与 Agent 最终回复重复嵌图会造成同一图片展示两次。Agent 在只拿到受管 URI 时还可能误以为必须扫描磁盘才能找到源文件。
本改动把 Art 设为未指定其他渠道时的首选,并把展示、改图与显式路径查询三种语义写清。
Checklist
real user data, unrelated generated files, or
node_modules.已 review 完整 diff —— 无凭证、令牌、授权码、真实用户数据、无关生成文件或
node_modules。ghost.jsondeclares only capabilities actually used (network hosts /slots / secrets); any new capability is justified in this PR description.
ghost.json只声明实际用到的能力;本 PR 未新增 capability。本插件四个工具只整理参数,不直接执行不可逆外部动作。
descriptionstill matches actual behavior; SKILL.mdand settings copy stay consistent with it.
本 PR 未修改
tools[].description或 parameters。ghost.jsonversionto a SemVer greater thanmain.minCindyVersion未新增或提高。src/或node/worker.cjs。git commit -s.Tool declaration changes / 工具声明改动
不涉及
tools[].description或 parameters。仅修改顶层whenToUse,使未显式选择其他媒体渠道的生图、改图和视频请求优先召回 Art;并修改运行时 result note,指导 Agent 正确处理受管媒体地址。Verification / 验证
本地 macOS Desktop E2E:普通“生成一张夏天的图”命中 Art → Cindy Core media,没有调用 harness 自带 image tool;结果只展示一次;显式询问路径时调用
resolve_local_path;后续改图直接复用原始cindy-media://地址。该 E2E 使用了包含同一组 Agent 指引变更的预合并包;对齐最新main后的最终 1.13.5 包已完成契约与发布同款打包校验。Sensitive changes / 敏感变更
None / 无。未改依赖、vendor、二进制资源、OAuth/API scope、凭证或鉴权边界、network/secret/slot/tool/Node capability、provisioning audience、minCindyVersion 或发布策略。