Files
openclaude/scripts
3kin0xandGitHub 5873bc6714 feat(knowledge): introduce local Orama persistence (feature-flagged) (#1015)
* feat(knowledge): introduce local Orama persistence (clean phase 1)

- Added @orama/orama and persistence plugin.
- Implemented optional local-only Orama backend in knowledgeGraph.ts.
- Gated Orama logic behind OPENCLAUDE_KNOWLEDGE_ORAMA=1.
- Converted knowledge and conversation arc functions to async.
- Fixed circular dependency between knowledgeGraph and sessionStorage by moving getProjectsDir to envUtils.
- Updated all call sites and tests to handle async Knowledge API.
- Verified build and tests pass on latest main.

* fix: address PR review comments for knowledge feature (async finalizeArcTurn and Orama cleanup)

* test: add comprehensive stress and edge case testing for Orama Knowledge Graph

* fix: prevent test pollution by restoring Orama env flag in stress test

* refactor: harden Knowledge architecture with concurrency locks, optimized I/O, and consolidated state
2026-05-09 22:35:37 +08:00
..