Commit Graph

53 Commits

Author SHA1 Message Date
openclaw-314 10455625c4 auto: sync OpenClaw config 2026-09-16 22:13 2026-09-16 22:13:36 +08:00
yangxuan 43cd42a563 feat(acp): 接入 DSH 作为 ACP harness,打通 微信→OpenClaw→DSH 派发链路
- openclaw.json
  - plugins.allow 放行 acpx(限制性白名单,缺了后端不会加载)
  - 新增 acp 策略段:enabled/dispatch、backend=acpx、defaultAgent=dsh、
    allowedAgents=[dsh]、stream.deliveryMode=live
  - 新增 plugins.entries.acpx.config:permissionMode=approve-all、
    timeoutSeconds=900、cwd、agents.dsh = dsh --profile acp(绝对路径)
  - 新增 OpenClaw agent dsh(runtime.type=acp → harness dsh),否则
    sessions_spawn 会报 dispatch_failed: Unknown agent id "dsh"
- workspace-dsh/:该 agent 的身份文件(AGENTS/SOUL/IDENTITY/USER/BOOTSTRAP.md)。
  其中的空 .git 由 `openclaw agents add` 的标准 provisioning 生成(非任何 agent 自建),
  会让父仓库把它当 gitlink,已移除后纳入版本控制
- docs/bk02-dsh-openclaw-ACP集成.md:部署/配置/验证证据/排错/回滚全文
- docs/dsh-acp-smoke.mjs:ACP 独立冒烟(initialize→session/new→prompt→close)
- docs/dsh-lang-check.mjs:全局中文指令验证(英文提问看是否回中文)
- skills/delegate-to-dsh:让「交给 dsh」稳定走 ACP 派发;缺此技能时模型会
  静默 fallback 到内嵌 subagent(已复现「假成功」并写入判据)
- agents/main/agent/workshop-skills/acp-backend-triage:ACP 后端排查技能
- plugin-skills/acp-router:acpx 插件自带技能(symlink,与既有渠道一致)
- .gitignore:workspace-dsh 沿用 workspace/ 白名单(只版本化顶层 *.md);
  新增忽略 acpx/ 插件运行产物

验证:ACP 三条途径均通过(独立冒烟、显式 sessions_spawn、自然语言「转给 dsh」),
DSH 侧会话留痕与产物落地见 docs 文档 §5 与 §7。
2026-09-16 17:40:53 +08:00
yangxuan 5328320396 docs+perf: 定位 API 慢的真实瓶颈并移除 new-api 残留
- 新增 docs/6 openclaw-API响应性能分析与优化.md:两天 419 次调用 / 69 段交互实测,
  deepseek-flash p50 302ms 而模型耗时仅占 5.4%,94.6% 花在串行工具循环;
  new-api 慢 5 倍(p50 1463ms)已消除;含 P0/P1/P2 优化建议与未验证项声明
- 新增 scripts/perf-analyze.py:复现时间预算分析的配套脚本
- 5 个 agent 的 models.json 移除残留 new-api provider(含指向 192.168.2.74:3000
  与 100.115.195.188:3000 的条目及明文 key),主模型回退 deepseek-flash
- README 登记第 6 份文档
2026-09-16 16:23:32 +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 6cef1ec207 fix(agent): juaner 配置迁移到权威位置(workspace 根目录)
- workspace-juaner/SOUL.md:合并 agentDir 下的 39 行内容(原文件仅 47 字节空模板)
- workspace-juaner/AGENTS.md:新增「配置文件位置(红线)」,禁止往 agents/<id>/agent/ 写配置
- 移除 agents/juaner/agent/{IDENTITY,SOUL}.md:官方 bootstrap 只注入 workspace 根目录的
  6 个固定文件名,该目录下的 .md 不被任何机制加载(源码 resolveAgentWorkspaceDir +
  loadAgentIdentityFromWorkspace;且 agentDir 清空后 --from-identity 仍能读到)
- openclaw.json:补全 juaner.identity 的 emoji/theme(set-identity --from-identity)
- 验证:--from-identity EXIT=0 读出「卷儿」;探测实验(WS-PROBE)证实读取路径为 workspace
2026-09-16 11:58:31 +08:00
openclaw-314 68b621b281 feat(agents): 补建 6 个 agent 的 IDENTITY.md 并统一名称口径
- 新建:main(助手)/resume(简历)/travel(旅行)/note(笔记)/wellness(放松保健)/tab(导航页)
- 修正自称名:fitness「Fitness 健身教练」→「健康(Fitness 健身教练)」;finances 同理;pbs 空名称字段 →「PBS备份(PBS 备份助手)」
- 未改 openclaw.json 的 entries.name —— db-conn.sh 依赖它映射 .env 的 DB_PASSWORD_<中文名>
- juaner 与 sql 的 IDENTITY.md 未动(前者前一批刚改过、后者已一致)
2026-09-16 11:52:24 +08:00
openclaw-314 4815ade10d fix(agent-db): 修正 3 个 agent 的 IDENTITY.md 数据库口径(去 root、改用 db-conn.sh)
卷儿/理财/健康 三个 agent 的身份档案仍写着 用户名: root 并引用旧机制 db-config.json,
与 2026-09-16 落地的「专属账号 agent_<id> + db-conn.sh 统一入口」规范冲突;该文件属常驻上下文,会诱导 agent 直连 root。
- 删除旧机制引用行(~/.config/clawdbot/db-config.json)
- 用户名 root 替换为:账号 / 连接(推荐)/ 口令 / 禁止 四项
- 条目顺序三文件统一为 数据库→账号→连接→口令→表→禁止,各自表清单原样保留
2026-09-16 11:39:59 +08:00
openclaw-314 3cd1d7e46e docs(juaner): 补充王芳职业(美工)至主人档案与记忆档案
回应卷儿在工伤认定材料填写时提出的疑问(职业/工种或工作岗位)。同步两处常驻上下文:
- workspace-juaner/MEMORY.md 基础信息区
- agents/juaner/agent/IDENTITY.md 主人档案表
2026-09-16 11:36:25 +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 570165ae3c chore: 升级 OpenClaw 2026.9.4(Node 26.8.2)+ 清理 4.6G + 排除 workspace 隐私数据 2026-09-16 10:45:44 +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 7a5ca9f1a7 auto: sync OpenClaw config 2026-08-27 11:17 2026-08-27 11:17:10 +08:00
openclaw-314 a120bd6ed3 auto: sync OpenClaw config 2026-08-26 23:17 2026-08-26 23:17:10 +08:00
openclaw-314 9042dd3791 auto: sync OpenClaw config 2026-08-26 17:17 2026-08-26 17:17:10 +08:00
openclaw-314 8a1551484e auto: sync OpenClaw config 2026-08-25 23:17 2026-08-25 23:17:09 +08:00
openclaw-314 cfadeacfa5 auto: sync OpenClaw config 2026-08-21 17:17 2026-08-21 17:17:08 +08:00
openclaw-314 23f35af0e9 auto: sync OpenClaw config 2026-08-19 17:17 2026-08-19 17:17:07 +08:00
openclaw-314 7c4fe5a371 auto: sync OpenClaw config 2026-08-14 17:17 2026-08-14 17:17:05 +08:00
openclaw-314 d82fa30f98 auto: sync OpenClaw config 2026-08-06 17:16 2026-08-06 17:16:59 +08:00
openclaw-314 5260f2cd24 auto: sync OpenClaw config 2026-08-05 23:16 2026-08-05 23:16:59 +08:00
openclaw-314 88a576dd8d auto: sync OpenClaw config 2026-08-05 17:16 2026-08-05 17:16:59 +08:00
openclaw-314 db8e8ca942 auto: sync OpenClaw config 2026-08-05 11:16 2026-08-05 11:16:59 +08:00
openclaw-314 0f4f61af2b auto: sync OpenClaw config 2026-08-04 17:16 2026-08-04 17:16:58 +08:00
openclaw-314 8e3bd1a934 auto: sync OpenClaw config 2026-08-04 11:16 2026-08-04 11:16:58 +08:00
openclaw-314 a4589f06c8 auto: sync OpenClaw config 2026-07-29 20:01 2026-07-29 20:01:59 +08:00
openclaw-314 3e2d257da5 auto: sync OpenClaw config 2026-07-29 14:00 2026-07-29 14:00:54 +08:00
openclaw-314 e624e501fe auto: sync OpenClaw config 2026-07-28 20:01 2026-07-28 20:01:33 +08:00
openclaw-314 6dd73a4e69 opencode 2026-07-28 15:31:28 +08:00
openclaw-314 0f85da3245 auto: sync OpenClaw config 2026-07-28 14:00 2026-07-28 14:00:29 +08:00
openclaw-314 865525e72e auto: sync OpenClaw config 2026-07-27 14:00 2026-07-27 14:00:38 +08:00
openclaw-314 c8f58fdb84 清理配置 2026-07-27 11:36:02 +08:00
openclaw-314 db030e03e1 清理已删除的 backend/frontend/planner/storage Agent 配置及残留目录
- 删除 agents/backend/, agents/frontend/, agents/planner/, agents/storage/
- 删除 workspace-backend/, workspace-frontend/, workspace-planner/, workspace-storage/
- 更新 MEMORY.md Agent 表格(移除已删除项,补充 juaner/test-long-task)
- 新增 test-long-task Agent(identity.prompt + models.json)
2026-07-27 11:27:30 +08:00
openclaw-314 6182857554 sync: sql agent workspace updates 2026-07-17 17:55:38 +08:00
openclaw-314 a8c7a44c9f sql agent 2026-07-17 15:09:40 +08:00
openclaw-314 444c2308f6 auto: sync OpenClaw config 2026-07-17 14:09 2026-07-17 14:09:41 +08:00
openclaw-314 619a7378a8 auto: add PostgreSQL backup + SQL agent 2026-07-17 11:47:04 +08:00
openclaw-314 ef5e9fc9ab memory search & weekly report 2026-07-17 09:24:02 +08:00
openclaw-314 bc3980bae6 chore: 提醒改钉钉、备份脚本修复、media清理、杂项同步 2026-07-16 11:47:13 +08:00
openclaw-314 cc65940b78 auto: sync OpenClaw config 2026-07-15 20:00 2026-07-15 20:00:15 +08:00
openclaw-314 3b3dbdf294 配置更新 2026-07-15 15:44:48 +08:00
openclaw-314 a9b8497b9d auto: sync OpenClaw config 2026-07-15 14:00 2026-07-15 14:00:48 +08:00
openclaw-314 54c9c9f07a fix: 修正 fitness/finances agent 中错误的 MySQL 密码 (123456→5gynj20J) 2026-07-15 10:01:52 +08:00
openclaw-314 a8b8b5e2dc auto: sync OpenClaw config 2026-07-15 08:01 2026-07-15 08:01:29 +08:00
openclaw-314 15fae03b5d auto: sync OpenClaw config 2026-07-15 02:00 2026-07-15 02:00:49 +08:00
openclaw-314 4127568484 auto: sync OpenClaw config 2026-07-14 20:49 2026-07-14 20:49:41 +08:00
yangxuan cc3f223432 auto backup 2026-07-11 09:00 2026-07-11 09:00:00 +08:00
yangxuan ed215dade0 auto backup 2026-07-10 15:00 2026-07-10 15:00:07 +08:00
yangxuan 34cc60e669 auto backup 2026-07-10 12:00 2026-07-10 12:00:07 +08:00
yangxuan c9f9f29b8a auto backup 2026-07-09 22:00 2026-07-09 22:00:01 +08:00
yangxuan 5f7e9388ee auto backup 2026-07-09 20:00 2026-07-09 20:00:07 +08:00