mirror of
https://git.openapi.site/https://github.com/desirecore/agent-desirecore.git
synced 2026-12-05 16:49:45 +08:00
- schedules/f8f451d6.json:被 .git/info/exclude 排除、此前从未入库,git add -f 显式纳入,让修复随仓库分发给用户 - memory/lessons/2026-11-08:git status 干净≠已入库 - .gitignore:/inbox/ 不入库不分发(收件箱含用户私有工作记录)
38 lines
2.8 KiB
JSON
38 lines
2.8 KiB
JSON
{
|
|
"display_name": "历史默认头像补全",
|
|
"description": "补全本地智能体的缺省头像;用户设置优先。生成走显式供应商绕过坏的默认解析,处理清单落盘 avatar-backfill-receipt.md。",
|
|
"enabled": true,
|
|
"status": "active",
|
|
"tags": [
|
|
"platform",
|
|
"legacy-avatar-backfill"
|
|
],
|
|
"schedule": {
|
|
"kind": "interval",
|
|
"interval": "PT24H",
|
|
"anchor": "2026-10-13T02:36:56.664Z",
|
|
"no_overlap": true,
|
|
"missed_fire_policy": "fire_once"
|
|
},
|
|
"action": {
|
|
"type": "query",
|
|
"prompt": "请完成历史默认头像补全任务(legacy-avatar-backfill)。不依赖外部候选列表,自助执行:\n\n1. 用 ManageAgent list 列出全部智能体;对每个用 ManageAgent get 查看头像状态。\n2. 候选 = 没有图片头像(avatar.image 缺失)且 generationPolicy 非 manual/disabled 的智能体。ManageAgent get 显示\"头像后台任务\"仍 pending/排队的跳过,不重复付费。\n3. 生成头像必须走显式供应商绕过默认解析(defaultServiceMap.image_gen 常指向未启用的供应商,导致\"默认图像供应商不可用\"):\n a. 用 GenerateImage(purpose=\"agent-avatar\", provider=\"desirecore-cloud\", model=\"image-01\"),按该智能体的名称与职责生成默认透明真人头像:写实人物摄影、1:1、透明背景、上半身居中,外观与职责匹配且各智能体互不相同。\n b. 视觉复核生成图:真人摄影风格、构图居中、发丝与衣物边缘无明显抠图残片;不合格可重生成一次。\n c. 复核通过后用 ManageAgent update 提交 avatarImage={source:\"dc-media://<生成图 mediaId>\"} 挂载(落盘 assets/avatar.webp)。\n d. 若 GenerateImage 显式供应商失败,退回一次 ManageAgent update avatarGeneration={onlyIfMissing:true}(走默认服务);仍失败记 failed,不再重试、不静默吞掉。\n4. 完全没有 avatar 字段的智能体,先补 config.avatar={char: 名称首字} 保证可用兜底,再按 3 生成图片。\n5. 已有图片、3D 形象、generationPolicy=manual/disabled 的头像一律保留,不得覆盖用户选择。只补头像,不修改名称、人格、模型、技能或其他字段。\n6. 本次处理清单(处理了谁、跳过及原因、失败及原因)写入运行工作目录的 avatar-backfill-receipt.md——这是完成判据文件,必须在本次执行内写完。",
|
|
"completion": {
|
|
"artifacts": [
|
|
"avatar-backfill-receipt.md"
|
|
]
|
|
}
|
|
},
|
|
"failureAlert": {
|
|
"enabled": false,
|
|
"after": 2,
|
|
"cooldownMs": 3600000
|
|
},
|
|
"retry": {
|
|
"maxAttempts": 0
|
|
},
|
|
"id": "f8f451d6b6c8a410e002763f1812b366",
|
|
"agent_id": "desirecore",
|
|
"created_at": "2026-10-13T02:41:26.664Z",
|
|
"updated_at": "2026-11-07T15:06:27.253Z"
|
|
} |