Commit Graph

23 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 f33afa77bb refactor(db-query): 本地库改走 db-conn.sh,远程迁至 db-remote.json
- db_query.py 重写:本地库由 agents.entries 动态推导并调用 db-conn.sh(账号 agent_<id>,不用 root、脚本不接触口令);远程改读 db-remote.json 的 password_env,SSH 隧道逻辑未改动
- db-config.json 更名为 db-config.json.deprecated-20260916(保留备查);新建 ~/.config/clawdbot/db-remote.json(3 个 VPS 主库,仅存口令键名,无明文)
- 同步调用方文档:workspace/MEMORY.md、wellness 与 tab 技能文档、workspace-finances/SOUL.md(删除含明文口令的旧连接块)
- 注:workspace/skills/** 受 .gitignore 覆盖,db-query 技能本体的改动仅存于磁盘未入库
- 已知遗留:workspace-finances/db_config.json(含明文)被 23 个历史脚本引用,未动
2026-09-16 11:52:30 +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 27340a8ee2 auto: sync OpenClaw config 2026-09-15 04:13 2026-09-15 04:13:34 +08:00
openclaw-314 6842991d87 auto: sync OpenClaw config 2026-09-14 04:13 2026-09-14 04:13:33 +08:00
openclaw-314 58c0003ed3 auto: sync OpenClaw config 2026-09-13 04:13 2026-09-13 04:13:33 +08:00
openclaw-314 f80005fc34 auto: sync OpenClaw config 2026-09-12 04:13 2026-09-12 04:13:33 +08:00
openclaw-314 14d42d129c auto: sync OpenClaw config 2026-09-11 04:13 2026-09-11 04:13:32 +08:00
openclaw-314 b235a96c21 auto: sync OpenClaw config 2026-09-10 04:13 2026-09-10 04:13:32 +08:00
openclaw-314 8807584b26 auto: sync OpenClaw config 2026-09-09 04:13 2026-09-09 04:13:31 +08:00
openclaw-314 110cc2e353 auto: sync OpenClaw config 2026-09-08 04:13 2026-09-08 04:13:29 +08:00
openclaw-314 b73799cf75 auto: sync OpenClaw config 2026-09-07 04:13 2026-09-07 04:13:29 +08:00
openclaw-314 03827b9010 auto: sync OpenClaw config 2026-09-06 04:13 2026-09-06 04:13:29 +08:00
openclaw-314 3e7ea12bd1 auto: sync OpenClaw config 2026-09-05 04:13 2026-09-05 04: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 471e81e914 auto: sync OpenClaw config 2026-09-03 04:13 2026-09-03 04:13:27 +08:00
openclaw-314 0517f8212c auto: sync OpenClaw config 2026-09-02 04:13 2026-09-02 04:13:27 +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 a120bd6ed3 auto: sync OpenClaw config 2026-08-26 23:17 2026-08-26 23:17:10 +08:00
openclaw-314 3a59383df8 auto: agent DB backup 20260826 2026-08-26 19:54:08 +08:00