Commit Graph

786 Commits

Author SHA1 Message Date
youzini
a4a11bb6d2 Merge pull request #31 from Hao19911125/main
手动存储的大小修剪
2026-04-12 16:16:35 +08:00
github-actions[bot]
117e45c781 chore: bump manifest version [skip ci] 2026-04-12 08:16:15 +00:00
Youzini-afk
22f75e9660 tests: stub recall prompt headers in retrieval-config harness 2026-04-12 16:16:02 +08:00
Youzini-afk
8a6cad7778 tests: stub recall prompt headers in retrieval-config harness 2026-04-12 16:15:55 +08:00
youzini
db7da1c27d Merge pull request #32 from Youzini-afk/dev
Dev
2026-04-12 16:09:02 +08:00
github-actions[bot]
9ecd0e8b00 chore: bump manifest version [skip ci] 2026-04-12 08:07:56 +00:00
Youzini-afk
64dec0df2b recall: sectioned recentMessages with context/target split for LLM prompt
- prompt-builder.js: add RECALL_TARGET_CONTENT_HEADER, update splitSectionedTranscriptPayloadMessage to recognize recall-specific target header
- retriever.js: add buildRecallSectionedTranscript helper, format recentMessages as sectioned transcript with context-review and recall-target headers for prompt building while keeping flat string[] for ranking
- p0-regressions.mjs: add testRecallUsesSectionedPromptMessagesForContextAndTarget regression asserting two system messages with correct transcriptSection and headers
2026-04-12 16:07:38 +08:00
github-actions[bot]
79f5f618b4 chore: bump manifest version [skip ci] 2026-04-12 07:27:38 +00:00
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
Hao19911125
4b9668fdc5 Clear restored backup dirty history markers 2026-04-12 15:09:11 +08:00
github-actions[bot]
9c6f0954a1 chore: bump manifest version [skip ci] 2026-04-12 06:59:52 +00: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
github-actions[bot]
4b4f77caff chore: bump manifest version [skip ci] 2026-04-12 05:33:52 +00: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
github-actions[bot]
433e62e084 chore: bump manifest version [skip ci] 2026-04-12 05:04:17 +00:00
Youzini-afk
559312c1b6 fix: preserve isContextOnly context/target dividers in final prompt transcript rendering
Root cause: formatPromptMessageTranscript in prompt-builder.js ignored
isContextOnly, so context review and extraction target sections were
flattened into plain transcript even though the flag was correctly set
in intermediate layers. Additionally, userPromptSections (which
contained the dividers) was only a fallback that never reached the
final prompt when block-based profiles had user blocks.

Fix:
- getPromptMessageLikeDescriptor now preserves isContextOnly flag
- formatPromptMessageTranscript now inserts context/target section
  dividers when messages carry isContextOnly, ensuring the final
  LLM prompt always shows the distinction regardless of which
  rendering path (recentMessages, chatMessages, dialogueText) is used

Regression tests:
- prompt-builder-mixed-transcript: verify recentMessages block content
  includes context review and extraction target dividers
- extractor-phase3-layered-context: end-to-end test proving default
  extract profile + default structured mode produces final promptMessages
  with context/target section dividers
2026-04-12 13:04:04 +08:00
github-actions[bot]
270ceba78f chore: bump manifest version [skip ci] 2026-04-12 04:53:26 +00:00
Youzini-afk
3f7dd0d727 feat: persist extract action mode selection across panel sessions
- Add extractActionMode setting (default: pending) to settings-defaults.js
- Panel refresh restores dropdown from settings.extractActionMode
- Dropdown change event persists selection via _patchSettings
- Extract button reads settings as fallback when DOM value missing
- Add default value assertion in tests/default-settings.mjs
2026-04-12 12:53:08 +08:00
github-actions[bot]
46bd0bf6c5 chore: bump manifest version [skip ci] 2026-04-12 04:46:21 +00: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
Hao19911125
288c33f3c3 Rebind restored backup history hashes locally 2026-04-12 11:49:34 +08:00
Hao19911125
580a049442 Slim manual cloud backups and guard truncated journal rollback 2026-04-12 10:43:38 +08:00
Hao19911125
aec756f180 Merge branch 'main' of https://github.com/Hao19911125/ST-Bionic-Memory-Ecology 2026-04-12 09:49:08 +08:00
Hao19911125
c60720acb5 Update .gitignore 2026-04-12 09:48:43 +08:00
youzini
477d4b2011 Merge pull request #30 from Youzini-afk/dev
Dev
2026-04-11 23:22:52 +08:00
github-actions[bot]
84eaecbecc chore: bump manifest version [skip ci] 2026-04-11 15:20:44 +00:00
Youzini-afk
fdfc15303b fix: stabilize mobile graph dragging and resize 2026-04-11 23:20:26 +08:00
github-actions[bot]
ba09d3b31b chore: bump manifest version [skip ci] 2026-04-11 15:07:23 +00:00
Youzini-afk
898698364e perf: reduce graph panel refresh churn during streaming 2026-04-11 23:07:06 +08:00
github-actions[bot]
b506aaa7c5 chore: bump manifest version [skip ci] 2026-04-11 14:31:08 +00:00
Youzini-afk
b06f49f7f9 merge: sync main into dev after PR #29 2026-04-11 22:30:46 +08:00
github-actions[bot]
4cb00ad96d chore: bump manifest version [skip ci] 2026-04-11 14:23:37 +00:00
Youzini-afk
1a2e9ac33d feat: auto-detect dedicated memory llm providers 2026-04-11 22:23:18 +08:00
youzini
0c882fc647 Merge pull request #29 from Hao19911125/main
提示词查看不触发BME
2026-04-11 22:14:48 +08:00
Hao19911125
943c398fb9 Guard against Tavern Helper prompt viewer fake generations 2026-04-11 22:09:40 +08:00
Hao19911125
0d4a692bbb Merge branch 'Youzini-afk:main' into main 2026-04-11 21:55:40 +08:00
Hao19911125
fb7f59c44e Skip BME on trivial user sends 2026-04-11 21:47:22 +08:00
github-actions[bot]
ce5f9a381c chore: bump manifest version [skip ci] 2026-04-11 13:26:37 +00:00
github-actions[bot]
1033b56a07 chore: bump manifest version [skip ci] 2026-04-11 13:26:31 +00:00
Youzini-afk
b1942727e9 Merge branch 'main' into dev 2026-04-11 21:13:50 +08:00
github-actions[bot]
b81ba30541 chore: bump manifest version [skip ci] 2026-04-11 13:08:08 +00:00
youzini
cca669d39b Merge pull request #28 from Hao19911125/main
MVU额外解析不响应
2026-04-11 21:07:58 +08:00
Hao19911125
ffcad87a90 Merge branch 'Youzini-afk:main' into main 2026-04-11 21:03:40 +08:00
Hao19911125
ddbd4c3c61 Silence BME during MVU extra analysis retry 2026-04-11 20:47:46 +08:00
github-actions[bot]
732ab82775 chore: bump manifest version [skip ci] 2026-04-11 12:43:29 +00:00
Youzini-afk
7d23552ff3 fix(ci): support node 20 module hook fallback 2026-04-11 20:43:18 +08:00
youzini
58b229d5e7 Merge pull request #27 from Youzini-afk/dev
Dev
2026-04-11 20:38:02 +08:00
github-actions[bot]
3cf76a3129 chore: bump manifest version [skip ci] 2026-04-11 12:36:38 +00:00
Youzini-afk
9becc23526 fix(ux): quiet expected history recovery toasts 2026-04-11 20:36:26 +08:00
github-actions[bot]
f3c3256bb3 chore: bump manifest version [skip ci] 2026-04-11 12:03:05 +00:00