Commit Graph

98 Commits

Author SHA1 Message Date
openclaw-314 c51006a57d chore(agent): 头像统一为 minio 短 URL,消除 dataURI 的上下文开销
- main/wellness/finances/fitness/travel 五个 agent 的 identity.avatar
  由 base64 data URI(2483~3903 字符)改为 https://minio.climbcube.cn/img/assistant.jpg
- 机器标签 - Avatar: 同步更新;wellness 正文的指引行改为直接写 URL
- 五个文件合计减少 16,488 B(每次会话注入约省 4~5k tokens)
- openclaw.json:五个 agent 的 identity.avatar 同步(set-identity --from-identity)
- 现 11/11 agent 头像完全一致
2026-09-16 12:24:52 +08:00
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 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 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 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 0aa13d3cf0 auto: sync OpenClaw config 2026-09-09 16:13 2026-09-09 16:13:31 +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 06c1c1d9f6 auto: sync OpenClaw config 2026-09-05 10:13 2026-09-05 10:13:28 +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 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 1c6cd29815 auto: sync OpenClaw config 2026-09-03 16:13 2026-09-03 16:13:27 +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 cb0c81843a auto: agent DB backup 20260828 2026-08-28 03:00:02 +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
openclaw-314 30e32146cc auto: agent DB backup 20260823 2026-08-23 03:00:02 +08:00