Commit Graph

106 Commits

Author SHA1 Message Date
openclaw-314 020da8f26d feat(agent): 10 个 agent 身份配置迁移到 workspace 权威位置 + 全中文口径统一
- 10 个 agent:以 agentDir 版真实内容为主体,合并进 workspace 的 IDENTITY.md/SOUL.md
  (原 workspace 版多为英文空模板,其体积主要来自 base64 头像)
- 移出 agents/<id>/agent/*.md:该目录是状态目录,其中的 .md 不被任何机制加载
  (依据:官方 bootstrap 只注入 workspace 根目录的 6 个固定文件名;
   源码 resolveAgentWorkspaceDir -> loadAgentIdentityFromWorkspace;且 agentDir 清空后仍能读到)
- 各 AGENTS.md 追加「配置文件位置(红线)」,原有内容零改动
- 口径统一:Emoji 取单图标 · 正文不重复头像 data URI(wellness 省 2834 B)·
  wellness 的 SOUL.md 中文化(复用 note 译文,两者英文原文 sha 相同)
- openclaw.json:11 个 agent 的 identity 补齐 emoji/theme(set-identity --from-identity)
- avatar 全部 no-op(与同步前逐字节一致,未改动任何头像)
2026-09-16 12:14:06 +08:00
openclaw-314 e6fc040256 fix(workspace): 补写 workspace 版 IDENTITY.md 的名称字段
- 8 个文件:workspace/、workspace-juaner/-note/-pbs/-resume/-sql/-tab/-travel/
- 顶层插入 tooling 可解析的英文 Name 行;加粗字段修正为权威名(tab: tab→导航页;sql: SQL Agent→SQL)
- 实测 openclaw agents set-identity 只写 config、不反向写回工作区文件(agents 子命令无 sync/writeback 类命令),故改为手动补写
- 校验:11/11 的顶层 Name 与加粗名称字段均等于 entries.name;fitness/finances/wellness 本就正确未动
2026-09-16 11:54:38 +08:00
openclaw-314 31c9958741 feat(agent-db): 引入 db-conn.sh 统一数据库入口,各 agent 改用专用账号
- 新增 scripts/db-conn.sh:按 agent id 反查中文名,读 .env 后经 MYSQL_PWD 转发给 docker exec,口令不进 argv/stdout,--print 只输出占位符
- new-agent.sh 新增 --adopt 模式(为既有 agent 补建库/账号),与 --reset-password 互斥
- AGENTS.md.tpl 与 11 个 workspace-*/AGENTS.md 改用 db-conn.sh,禁用 root 与 docker exec 直连
- mysql-schema-sync 技能改用 MYSQL_PWD_SQL 环境变量,不再硬编码密码
- 设计文档补附录 A 第 8 条:中文键名无法注入 agent 环境的三条实测依据
2026-09-16 11:30:55 +08:00
openclaw-314 75d3aa8067 auto: agent DB backup 20260916 2026-09-16 11:19:19 +08:00
openclaw-314 3e59b2944c auto: sync OpenClaw config 2026-09-16 04:13 2026-09-16 04:13:34 +08:00
openclaw-314 dfb903c1c7 auto: agent DB backup 20260916 2026-09-16 03:00:03 +08:00
openclaw-314 27340a8ee2 auto: sync OpenClaw config 2026-09-15 04:13 2026-09-15 04:13:34 +08:00
openclaw-314 0b06fa511c auto: agent DB backup 20260915 2026-09-15 03:00:03 +08:00
openclaw-314 6842991d87 auto: sync OpenClaw config 2026-09-14 04:13 2026-09-14 04:13:33 +08:00
openclaw-314 8ca713b06e auto: agent DB backup 20260914 2026-09-14 03:00:02 +08:00
openclaw-314 58c0003ed3 auto: sync OpenClaw config 2026-09-13 04:13 2026-09-13 04:13:33 +08:00
openclaw-314 b6df93494f auto: agent DB backup 20260913 2026-09-13 03:00:02 +08:00
openclaw-314 f80005fc34 auto: sync OpenClaw config 2026-09-12 04:13 2026-09-12 04:13:33 +08:00
openclaw-314 6d95428cf4 auto: agent DB backup 20260912 2026-09-12 03:00:02 +08:00
openclaw-314 24066282ed auto: sync OpenClaw config 2026-09-11 22:13 2026-09-11 22:13:32 +08:00
openclaw-314 14d42d129c auto: sync OpenClaw config 2026-09-11 04:13 2026-09-11 04:13:32 +08:00
openclaw-314 2e71348de8 auto: agent DB backup 20260911 2026-09-11 03:00:02 +08:00
openclaw-314 b235a96c21 auto: sync OpenClaw config 2026-09-10 04:13 2026-09-10 04:13:32 +08:00
openclaw-314 bfd379a1d2 auto: agent DB backup 20260910 2026-09-10 03:00:03 +08:00
openclaw-314 8807584b26 auto: sync OpenClaw config 2026-09-09 04:13 2026-09-09 04:13:31 +08:00
openclaw-314 8c20e400cc auto: agent DB backup 20260909 2026-09-09 03:00:03 +08:00
openclaw-314 110cc2e353 auto: sync OpenClaw config 2026-09-08 04:13 2026-09-08 04:13:29 +08:00
openclaw-314 5f72604af3 auto: agent DB backup 20260908 2026-09-08 03:00:03 +08:00
openclaw-314 b73799cf75 auto: sync OpenClaw config 2026-09-07 04:13 2026-09-07 04:13:29 +08:00
openclaw-314 34771c1b43 auto: agent DB backup 20260907 2026-09-07 03:00:03 +08:00
openclaw-314 03827b9010 auto: sync OpenClaw config 2026-09-06 04:13 2026-09-06 04:13:29 +08:00
openclaw-314 ab01f2b993 auto: agent DB backup 20260906 2026-09-06 03:00:02 +08:00
openclaw-314 3e7ea12bd1 auto: sync OpenClaw config 2026-09-05 04:13 2026-09-05 04:13:28 +08:00
openclaw-314 8957b214fc auto: agent DB backup 20260905 2026-09-05 03:00:03 +08:00
openclaw-314 dc60a9dc43 auto: sync OpenClaw config 2026-09-04 10:13 2026-09-04 10:13:28 +08:00
openclaw-314 01f729f1aa auto: sync OpenClaw config 2026-09-04 04:13 2026-09-04 04:13:28 +08:00
openclaw-314 dffa655625 auto: agent DB backup 20260904 2026-09-04 03:00:02 +08:00
openclaw-314 471e81e914 auto: sync OpenClaw config 2026-09-03 04:13 2026-09-03 04:13:27 +08:00
openclaw-314 cf3ea44d63 auto: agent DB backup 20260903 2026-09-03 03:00:03 +08:00
openclaw-314 0517f8212c auto: sync OpenClaw config 2026-09-02 04:13 2026-09-02 04:13:27 +08:00
openclaw-314 a259bcaad7 auto: agent DB backup 20260902 2026-09-02 03:00:02 +08:00
openclaw-314 bb77e01051 auto: sync OpenClaw config 2026-09-01 10:10 [manual] 2026-09-01 10:10:21 +08:00
openclaw-314 0a394ad88b auto: agent DB backup 20260901 2026-09-01 03:00:03 +08:00
openclaw-314 ab308d48d1 auto: agent DB backup 20260831 2026-08-31 03:00:03 +08:00
openclaw-314 3ca5562221 auto: agent DB backup 20260830 2026-08-30 03:00:03 +08:00
openclaw-314 bdce2075f0 auto: agent DB backup 20260829 2026-08-29 03:00:03 +08:00
openclaw-314 28376d1461 auto: sync OpenClaw config 2026-08-28 17:17 2026-08-28 17:17:11 +08:00
openclaw-314 cb0c81843a auto: agent DB backup 20260828 2026-08-28 03:00:02 +08:00
openclaw-314 b2528d49f4 auto: sync OpenClaw config 2026-08-27 17:17 2026-08-27 17:17:10 +08:00
openclaw-314 7a5ca9f1a7 auto: sync OpenClaw config 2026-08-27 11:17 2026-08-27 11:17:10 +08:00
openclaw-314 0269b99815 auto: agent DB backup 20260827 2026-08-27 03:00:02 +08:00
openclaw-314 3a59383df8 auto: agent DB backup 20260826 2026-08-26 19:54:08 +08:00
openclaw-314 d8b3f98dca auto: agent DB backup 20260826 2026-08-26 03:00:02 +08:00
openclaw-314 c7bff93fe5 auto: agent DB backup 20260825 2026-08-25 03:00:02 +08:00
openclaw-314 b392ce1f57 auto: agent DB backup 20260824 2026-08-24 03:00:02 +08:00