Commit Graph

49 Commits

Author SHA1 Message Date
小唯 A06 df7ab052d4 feat: 仓颉skill(cangjie-skill)完整集成
- 下载仓颉skill全量源码(methodology/extractors/templates)
- cangjie_distill.py: 知识蒸馏引擎(RIA-TV++流水线)
- cangjie-skills/股票投研体系/: 已蒸馏7个skill
  - Phase1: A股规则/K线基础
  - Phase2: MACD/KDJ/成交量
  - Phase3: 三表/估值方法
- INDEX.md技能地图

下一步: Phase5模拟交易
2026-07-11 22:49:12 +08:00
小唯 A06 6d9892185b feat: 股票投研体系学习体系
- stock_learning.py: 5阶段学习路径,每周推送
- topics.json: 股票投研主题建档
- cron: 股票投研周学习(每周一10:00)

Phase1→Phase5: 基础→技术分析→基本面→量化工具→模拟交易
2026-07-11 17:13:58 +08:00
小唯 A06 5fe8681101 feat: proactive_learning.py 四维主动学习体系
- 维度1: 现有工作优化 (skill/optimizer/daemon)
- 维度2: 新工具/新技能探索
- 维度3: 业务领域知识积累
- 维度4: 系统智能化 (集成已有 self-evolve)

新增 cron: 主动学习自检报告(每周日10:00)
2026-07-11 16:44:45 +08:00
小唯 A06 bdc1cbf04b auto-snapshot 2026-07-11 03:00:36 2026-07-11 03:00:36 +08:00
小唯 A06 7997b316c0 fix: 心迹写入2个bug
1. Phase3运算符优先级: important AND 标记 → 加括号
2. Phase2情绪词: 移除泛化词(成功/完成/解决了/修好了)
   只保留精准情感词(开心/高兴/太好了/完美/棒/太牛了)
2026-07-10 19:06:32 +08:00
小唯 A06 dcdef35c1c fix: daemon.py 3个字段bug修复
1. save_llm_context: queue→cares(json字段名)
2. save_llm_context: due_date→follow_up_date
3. _sync_soulful_to_llm_context 函数缺失补全
4. 同步调用插入 light tick
2026-07-10 18:11:08 +08:00
小唯 A06 16cce9dd45 fix: daemon.py 心迹写入(技术重要时刻)+cron职责分离
- journal_entry增加技术重要事件写心迹(不依赖情绪检测)
- 新增update-profile-full.sh wrapper供cron使用
- check_cares.py飞书卡片格式修复(cron已修复)
- 每日复盘cron改为update_profile --full纯cron
2026-07-10 17:08:06 +08:00
小唯 A06 04884bb67f fix: check_cares.py 飞书卡片格式修复(card对象转字符串+charset=utf-8),cron脚本路径修复 2026-07-10 10:07:02 +08:00
小唯 A06 6ca624af1e fix: today_check 用本地时间代替 UTC(时区差8小时导致牵挂全部跳过) 2026-07-10 03:46:00 +08:00
小唯 A06 46767ba886 fix: psutil.pid_exists用os.getpid()代替ctx[pid] 2026-07-10 03:38:11 +08:00
小唯 A06 1e2ede2fe5 fix: daemon_status用psutil兜底,psutil导入 2026-07-10 03:36:29 +08:00
小唯 A06 226edc0540 chore: update hermes-agent submodule to 8edad71cd 2026-07-10 03:32:21 +08:00
小唯 A06 61d2ab09c6 fix: tighten exception handling in daemon.py, soulful_core.py, zhiyi/__init__.py
- daemon.py: replace bare 'except Exception: pass' with specific
  (json.JSONDecodeError, OSError, IOError, KeyError, TypeError) in
  save_llm_context() — all 4 locations
- soulful_core.py: replace bare Exception in _zhiyi_commit with
  (requests.exceptions.Timeout, ConnectionError, RequestException, OSError, IOError);
  note ZHIYI_TIMEOUT=3 kept unchanged
- zhiyi/__init__.py: replace bare Exception in _load_soulful_context with
  (json.JSONDecodeError, OSError, IOError, KeyError, TypeError)

All files verified: python3 -m py_compile OK
2026-07-10 03:29:22 +08:00
小唯 A06 36ec8dc9fd fix: 审查补充 — content类型校验/os_keywords类型检查/encoding utf-8 2026-07-10 03:20:47 +08:00
小唯 A06 02d4277567 chore: update hermes-agent submodule to 0c2cda944 2026-07-10 03:17:59 +08:00
小唯 A06 d910338bec fix: 代码审查修复 — profile路径/jsonl→json/sys.modules覆写/timeout/循环import/summarize重复定义 2026-07-10 03:17:48 +08:00
小唯 A06 446bcb54b9 auto-snapshot 2026-07-10 03:00:12 2026-07-10 03:00:12 +08:00
小唯 A06 2ab3299508 chore: update hermes-agent submodule to eff7c1e 2026-07-10 02:47:24 +08:00
小唯 A06 050752a3a3 feat: daemon每tick写llm_context.json供Hermes插件注入Soulful上下文 2026-07-10 02:46:44 +08:00
小唯 A06 2c1441dec5 docs: 织忆与Soulful关系说明 2026-07-10 02:15:31 +08:00
小唯 A06 d5749b18fe feat: Soulful ↔ 织忆互通
Soulful → 织忆:
- _zhiyi_commit() 助手函数,重要心迹(★★★★+)自动写入织忆
- 已回填现有重要心迹

织忆 → Soulful:
- os_sense.py 已读取织忆 journal/wiki(已有)
- 双向数据流形成闭环
2026-07-10 02:00:35 +08:00
小唯 A06 ea577f6b14 fix: daemon LLM模型换成mistral-large(step-3.5-flash不稳定)+ 日志增强 2026-07-10 01:31:05 +08:00
小唯 A06 64b0bf4d52 fix: soulful_core.py summarize接口修复
- summarize移至if __name__之前解决嵌套作用域问题
- 新增cmd_summarize包装函数
- today_check()增加or []防止None报错
- 牵挂去重已完成
2026-07-10 01:21:15 +08:00
小唯 A06 d536dca24f fix: Soulful代码审查修复
严重:
- argparse语法错误 (-t,--type 顺序)
- main()未定义但被调用
- API变量未定义导致call_llm崩溃
- os_sense中文提取失效(\w不匹配中文)

数据:
- 牵挂去重(删除重复条目)
- soulful_core.py结构修复

低优先级(记录,不阻塞):
- 文件无锁并发写入
- 画像数据未在daemon使用(下次对话我会主动用)
- 牵挂识别误报(待持续优化)
2026-07-10 01:19:41 +08:00
小唯 A06 4e5ad6218c feat: Soulful 数据流向优化
- CaresQueue: 优先行动/其次飞书, auto_helpable关键词静默处理
- soulful_core: 新增 summarize() 接口, HeartTraces.delete()
- 删除了重复心迹, 牵挂去重处理
2026-07-10 01:07:14 +08:00
小唯 A06 f99830d11a feat: Soulful Phase 1-5 全部完成
Phase 1: 心迹库+画像库+牵挂队列 + daemon集成
Phase 2: 情感词库 + journal_entry自动心迹写入
Phase 3: os_sense.py (轻量OS感知) + daemon集成
Phase 4: SOUL.md文案灵魂感改造
Phase 5: update_profile.py自动牵挂识别

Files:
- scripts/soulful_core.py (HeartTraces/UserProfile/CaresQueue)
- scripts/update_profile.py (画像更新+自动牵挂识别)
- scripts/check_cares.py (牵挂温暖飞书推送)
- scripts/os_sense.py (OS无感感知, Phase3新增)
- scripts/daemon.py (集成三库+情感词库+心迹写入)
2026-07-09 23:48:02 +08:00
小唯 A06 7e43f0f742 fix: 更新飞书 webhook token(446db983)替换过期token(65c3ce80) 2026-07-09 23:29:33 +08:00
小唯 A06 82ee9bf176 feat: Soulful Phase 1 — 心迹/画像/牵挂三库 + daemon集成
- soulful_core.py: HeartTraces + UserProfile + CaresQueue 核心库
- update_profile.py: 从 journal 自动更新用户画像 + 心迹事件检测
- check_cares.py: 牵挂到期检查 + 温暖飞书推送
- daemon.py v2.1: 集成三库(心迹注入deep_think context、每小时牵挂检查、6h画像更新)
- cronjob: 每日9:00牵挂提醒 + 每日21:00牵挂清单
- 数据目录: ~/.hermes/soulful/

版本: 1.0.0
2026-07-09 21:32:30 +08:00
小唯 A06 29bcd7a2f1 docs: add page_dom_extract to web-content-extraction skill
- Tool 0 in decision tree + architecture diagram
- Detailed usage docs with output format example
2026-07-09 16:59:20 +08:00
小唯 A06 dbf065bcfa feat: page_dom_extract.py — text-based DOM simplifier
- HTML → LLM-readable simplified text format (page-agent inspired)
- [N]<tag>text</tag> numeric-indent notation
- Interactive element detection (a/button/input/select/textarea/details/summary/label + ARIA roles + contenteditable)
- curl primary fetch, lxml parsing, html.unescape for Chinese
- CLI: python3 page_dom_extract.py <url>
Ref: alibaba/page-agent d1
2026-07-09 16:58:11 +08:00
小唯 A06 a9500c7856 docs: update self-healing-infrastructure skill for daemon v2.1
- Reflection structure + Graceful Shutdown documented
- Stop command: systemctl stop instead of SHUTDOWN file
- MEMORY.md updated
2026-07-09 16:46:28 +08:00
小唯 A06 3de81d97ae feat(daemon): reflection结构 + graceful shutdown
- Deep prompt 改为三段式 reflection (evaluation/memory/next_goal)
- deep_think 返回 (reflection_dict, action_string)
- execute_action 从 deep_think 移到 main_loop(决策/执行分离)
- threading.Event 替代 SHUTDOWN_FILE 轮询
- signal handler 注册 SIGTERM/SIGINT → graceful stop
- last_reflection 持久化到 ctx
- JSON 容错解析 + 回退旧格式兼容
Ref: alibaba/page-agent d2+d4 移植
2026-07-09 16:44:48 +08:00
小唯 A06 79b4e24f40 fix: backup gaps + zhiyi audit + learner update 2026-07-09 13:16:10 +08:00
小唯 A06 0d98aa5f3b feat: whisper-stt + comfyui skills, 织忆health check done 2026-07-09 12:20:32 +08:00
小唯 A06 5fd6b42581 skill batch upgrade: 57 C->B, avg 5.2->6.0, needs_attention 58->0 2026-07-09 11:23:28 +08:00
小唯 A06 31fb8a91b0 skill cleanup: archive 33 D-grade, upgrade 7 to B/C, avg score 4.7→5.2, D count 40→0 2026-07-09 09:07:38 +08:00
小唯 A06 57b142e954 fix: cron no-agent script args - add wrappers for learner-learn.sh, dual-backup-push.sh; fix config-protector.sh 2026-07-09 08:09:22 +08:00
小唯 A06 a0658d81a8 auto-snapshot 2026-07-09 08:09:13 2026-07-09 08:09:13 +08:00
小唯 A06 f0200697bd auto-snapshot 2026-07-09 08:06:08 2026-07-09 08:06:08 +08:00
小唯 A06 7d6b48c8bc auto-snapshot 2026-07-09 02:52:03 2026-07-09 02:52:03 +08:00
小唯 A06 cd506ceb14 auto-snapshot 2026-07-09 02:47:58 2026-07-09 02:47:58 +08:00
小唯 A06 27805b222b auto-snapshot 2026-07-09 02:39:41 2026-07-09 02:39:41 +08:00
小唯 A06 d78b732457 auto-snapshot 2026-07-09 02:31:37 2026-07-09 02:31:37 +08:00
小唯 A06 29bf401a8b auto-snapshot 2026-07-09 02:24:24 2026-07-09 02:24:24 +08:00
小唯 A06 f1c823cc2e auto-snapshot 2026-07-09 02:19:35 2026-07-09 02:19:35 +08:00
小唯 A06 8efa01706b auto-snapshot 2026-07-09 02:11:15 2026-07-09 02:11:15 +08:00
小唯 A06 17c8b8c739 auto-snapshot 2026-07-09 02:10:35 2026-07-09 02:10:35 +08:00
小唯 A06 da1d6b19f6 config: 配置基线 2026-07-09(仅跟踪可恢复配置) 2026-07-09 02:10:07 +08:00
小唯 A06 2378c10922 init: 初始配置基线 2026-07-09 2026-07-09 02:09:53 +08:00