修复 agc_tools 媒体资源提示词上限并按 kind 暴露 #398
Reference in New Issue
Block a user
Delete Branch "codex/agc-agent-resource-prompt-limits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
改动
resource_edit_prompt_max_chars单一权威:agc_toolsMCP 工具层、客户端受控工具桥与提交校验共用同一数字与拒绝文案,不再出现「schema 写 4000、真实上限按 kind 分」的分叉。agc_create_or_derive_resource的 schema 逐 kind 声明prompt.maxLength(background-music / sound-effect / video 与 character-animation),prompt描述写明每个数字;agc_edit_image继续用图片口径 32000。agc_list_registered_assets选已有 localAssetId;只在项目里的文件先agc_list_project_files确认assetImportable=true,再用agc_import_account_assets.localPaths登记后重试。agc_remove_background复用同一条文案。agc-client-projection的 SKILL.md 与 projection-contract.md 写明四个上限,并说明超限要在本地收敛而不是原样重发;清单指纹同步到2026-08-26.18(已合并 master 的抠图文案)。resourceEditModel.ts补注释指向 Rust 权威函数,数字未动。问题
agc_list_registered_assets与登记工具两步动作验证
agent::direct_tools_mcp::tests23 passed / 0 failed:含新增的按 kind 上限门禁、图片快速编辑契约(断言POST /api/editor/images/edits的路径、Bearer、Idempotency-Key、正文且不得回填 assetKind)、背景音乐契约(断言POST /api/editor/audios/background-music/generations的gptDescriptionPrompt与makeInstrumental)、超限零桥请求、未登记源资源提示。agent::direct_tool_bridge::tests18 passed / 7 failed;agent::skill_pack4 passed;npm run agc:skill-pack:check与skill-pack:test通过(version2026-08-26.18)。typecheck(tsc + skill-pack check + check-config)、resourceEditModel6 项前端测试、npm run check:encoding、npm run check:doc-index、cargo fmt --check、git diff --check通过。project::resource_editor45 条)失败与本 PR 无关:全部是tempfile::tempdir()的Windows 安全对象不属于当前用户,已 stash 改动并用基线复跑确认失败集合一致。npm run lint聚合门禁与 CI;未做任何付费生成。工具 schema 与 skill 文案都在应用内,终端用户需重新构建客户端才能看到修复效果。