狼哥
f92c54f371
fix: support OPENCLAW_HOME env var ( #275 )
...
fix: support OPENCLAW_HOME for non-standard OpenClaw paths\n\nAdds get_openclaw_home() helper in scripts/utils.py and updates all\ninstall/runtime scripts to resolve OpenClaw home from OPENCLAW_HOME\nenvironment variable with fallback to ~/.openclaw.\n\nCloses #271
2026-04-10 00:55:27 +08:00
cft0808
0f1c24bd44
fix: 修复多个bug并合并社区贡献
...
Bug 修复:
- Fix #232 : court_discuss.py 添加 from __future__ import annotations 兼容 Python 3.9
- Fix #233 : Dockerfile 添加 channels 模块 COPY 解决 Docker 运行时 ModuleNotFoundError
- Fix #234 : sync_agent_config.py 将 dispatchChannel 默认值从 'feishu' 改为空字符串
- Fix #241 : sync_agent_config.py 收集 defaults.models 中的所有可用模型到看板选择器
社区贡献 (cherry-pick):
- PR #239 (@ElninoZhong): 添加 workflow state vs execution ownership 文档
- PR #237 (@ElninoZhong): 修复 feishu 默认值问题
- PR #212 (@YIOYIOIOI): Windows install.ps1 优先 python 命令 + UTF-8 编码修复
依赖更新 (Dependabot):
- actions/checkout v4 → v6
- docker/setup-buildx-action v3 → v4
- docker/build-push-action v5 → v7
- actions/labeler v5 → v6
- actions/stale v9 → v10
2026-03-30 21:48:55 +08:00
cft0808
8ad2b512c3
fix: 对齐文档与OpenClaw实现链路(安装/同步/统计)
...
- install.sh: workspace与agent注册补齐太子/吏部/早朝
- sync_agent_config.py: 增加__main__入口,修正taizi映射,兼容model对象结构
- sync_officials_stats.py: 兼容model对象结构,修复TypeError,太子ID改为taizi并保留main兼容
- README_EN.md: 修正Quick Start里旧的9-workspace描述
2026-02-27 21:49:58 +08:00
cft0808
11f15db16f
feat: 添加吏部(libu_hr) + 自动部署所有 SOUL.md
...
1. 吏部 agent:
- 新建 agents/libu_hr/SOUL.md (人事/培训/Agent管理)
- 注册到 openclaw.json (shangshu.allowAgents += libu_hr)
- 添加到 sync_agent_config/sync_officials_stats/server.py/dashboard.html
- 更新尚书省 dispatch SKILL.md 部门能力索引
- 所有六部 SOUL.md 中'吏部暂空'→'吏部(libu_hr)负责人事/培训'
2. 自动 SOUL.md 部署:
- sync_agent_config.py 新增 deploy_soul_files()
- 每次同步自动将项目 agents/xxx/SOUL.md → workspace soul.md
- 处理 taizi→main 名称映射
- 只在内容变更时写入,确保 sessions 目录存在
- 修复: xingbu 缺 sessions dir, main 缺 workspace
完整阵容 11 个: 🤴 太子 + 三省(📜 📍 📮 ) + 六部(📝 💰 ⚔️ ⚖️ 🔧 👔 ) + 📰 钦天监
2026-02-27 00:17:31 +08:00
cft0808
19886035d4
fix: 补全太子(main)+钦天监(zaochao) agent 配置
...
- 部署 agents/taizi/SOUL.md → ~/.openclaw/agents/main/SOUL.md
太子之前在裸跑,没有任何指令/人设
- sync_agent_config.py: ID_LABEL 新增 main, 补充 EXTRA_AGENTS 逻辑
处理不在 openclaw.json agents list 中的 agent (main=默认, zaochao=独立)
- sync_officials_stats.py: OFFICIALS 列表加入 main(太子)
- dashboard.html: _agentLabels 加入 zaochao
- agent_config.json: 8→10 agents, officials_stats: 9→10
2026-02-27 00:03:35 +08:00
cft0808
efd36ab729
feat: 添加 Copilot 模型配置 + 旨意看板归档功能
...
模型配置:
- 新增 Copilot 系列模型 (Claude Sonnet 4, Claude Opus 4.5, GPT-4o, Gemini 2.5 Pro, o3-mini)
- 新增 github-copilot/claude-opus-4.6 模型
旨意看板归档:
- 看板顶部新增筛选栏: 进行中 / 已归档 / 全部
- Done/Cancelled 状态自动归入归档视图
- 支持单条归档/取消归档操作
- 支持一键归档所有已完成任务
- 归档卡片虚线边框半透明展示
- Tab 徽章仅统计活跃旨意数
其他:
- agents SOUL.md 更新
- 脚本健壮性改进 (file_lock, refresh, sync)
2026-02-26 21:09:05 +08:00
cft0808
1110886de2
fix: 可移植性修复 + server.py 路由修复
...
- SOUL.md: 硬编码路径替换为 __REPO_DIR__ 占位符,支持跨环境部署
- dashboard/server.py: 修复 morning-brief/refresh 路由
- 原错误:POST handler 混入 GET 分支导致永远 404
- 修复:将 POST /api/morning-brief/refresh 移至 do_POST 正确位置
- scripts/: 路径变量改用 __file__ 相对路径,提升可移植性
- install.sh / run_loop.sh: 同步修复
2026-02-24 21:53:01 +08:00
cft0808
b5c28b48c4
feat: 官员总览重设计 - 左右分栏/品级排行/旨意参与/缓存费用准确计算
2026-02-23 23:45:41 +08:00
cft0808
b8c8d22702
feat: 官员总览 - Token消耗/实际费用/功绩统计/心跳监控
2026-02-23 23:12:41 +08:00