Commit Graph

14 Commits

Author SHA1 Message Date
Youzini-afk
96b43c7860 feat: migrate compress/consolidation/reflection graphStats to shared ranking core + prompt node refs
- New maintenance/task-graph-stats.js: shared helper wrapping rankNodesForTaskContext + createPromptNodeReferenceMap
- extractor.js: extract and reflection graphStats now use buildTaskGraphStats
- compressor.js: compression graphStats uses shared helper, excludes current batch from relevant ranking
- consolidator.js: consolidation graphStats uses shared helper, excludes new nodes from relevant ranking
- index.js: passes schema + embeddingConfig into generateReflection
- p0-regressions.mjs: added graphStats assertions for compress/consolidation/reflection (prompt-facing refs, no raw UUIDs)
2026-04-12 15:27:22 +08:00
Youzini-afk
dc5051f2ef feat: shared ranking core + prompt node references; recall reuses shared core for base query/vector/diffusion; remove retriever-local duplicate helpers; add regression tests 2026-04-12 14:59:37 +08:00
Youzini-afk
f40b03c306 feat: hide assistant card names in extraction transcript, split sectioned recentMessages into 2 system messages 2026-04-12 13:33:41 +08:00
Youzini-afk
a8e3169002 feat: add isContextOnly flag to extraction messages to prevent repeated extraction
- buildExtractionMessages marks messages with isContextOnly (seq < startIdx)
- formatExtractionTranscript inserts section dividers for mixed context/target
- extractor.js Layer 1 prompt splits context review vs extraction target with guidance
- Add tests/extraction-context-only-flag.mjs (7 test cases)
2026-04-12 12:46:05 +08:00
Youzini-afk
322752bb43 feat: improve shujuku-compatible extraction and recall input 2026-04-11 16:05:34 +08:00
Youzini-afk
5c9a8a9df1 Normalize mistaken user owners across extraction and cognition 2026-04-09 23:38:40 +08:00
Youzini-afk
e4feda5471 Add hierarchical summary frontier system 2026-04-09 14:50:52 +08:00
Youzini-afk
922b716ff6 Fix host regex reuse for extraction inputs 2026-04-09 00:28:29 +08:00
Youzini-afk
323e1fd5b0 feat: add story timeline layer 2026-04-08 22:41:49 +08:00
Youzini-afk
d7989303d9 feat: support multi-owner scene recall anchors 2026-04-08 21:29:36 +08:00
Youzini-afk
a4fed87e6e feat(cognition): finish multi-character knowledge and monitor workflow 2026-04-08 18:21:38 +08:00
Youzini-afk
9b057ebdfb fix(extract): 收紧智能探测条件 — 要求数组中至少一个元素含 action/op/type 字段才接受 2026-04-08 13:45:31 +08:00
Youzini-afk
b0cd52b1cc fix(extract): 增强 JSON 解析容错 + 扩充容器键白名单 + 单操作兜底 + 诊断改善
- extractJSON: 新增 trailing comma 容错和截断 JSON 自动闭合修复
- extractOperationsPayload: 容器键白名单从 5 扩充到 13,新增智能探测和单操作对象包装
- 错误日志现在会输出 result 的类型、键名和预览,方便排查
2026-04-08 13:38:31 +08:00
Youzini-afk
feec17f3e3 Reorganize modules into layered directories 2026-04-08 01:17:57 +08:00