Files

1.5 KiB

R11.1 任务报告

目标

依据 UniDesk #2275,让默认 agentrun describe aipodspec/<name> 一次查询即可对照 AipodSpec provenance、resource bundle source 与 required skill 声明,避免为读取名称追加 --full、临时 dump 和二次解析。

实现

  • scripts/src/agentrun/render.ts 在默认 resourceBundleRef 有界投影中增加 requiredSkills.countrequiredSkills.namesrequiredSkills.omittedCountvaluesPrinted=false
  • 名称同时兼容服务端摘要的 namesitems[].name 与完整 AipodSpec 数组,最多展示 16 个、单项最多 120 字符;仓库、Aipod、skill、节点与分支均未硬编码。
  • 人类输出直接显示 required skill 名称及省略数;JSON 与 YAML 继续复用同一投影,并保留原 requiredSkillCount 字段。
  • scripts/src/agentrun.test.ts 复用既有 AipodSpec describe 测试,覆盖名称、省略数、同构输出、stdout 预算和凭据不泄漏。

Smoke

执行一次:

bun test scripts/src/agentrun.test.ts -t 'aipodspec describe is bounded and homologous while full and raw stay complete'

结果:1 pass24 filtered out0 fail43 expect() calls

边界与风险

  • 未修改 AipodSpec、AgentRun owning YAML、bundle、SecretRef、CI/CD 或任何运行面。
  • 输出最多增加 16 个有界名称;既有测试继续验证默认 text/JSON/YAML 均低于 10240 字节。
  • 完整对象仍只通过显式 --full/--raw 下钻。