mirror of
https://github.com/logancyang/obsidian-copilot.git
synced 2026-07-22 07:50:24 +00:00
* Integrate ProjectChainRunner and ChatManager with new layered context - Introduced `ProjectChainRunner` to automatically include project context in L1 via `ChatManager.getSystemPromptForMessage()`, simplifying the class structure by inheriting behavior from `CopilotPlusChainRunner`. - Updated `ChatManager` to build system prompts that append project context when in project mode, ensuring seamless integration without special-case logic. - Implemented null guards for project context to prevent erroneous output when context is unavailable. - Refactored documentation to reflect changes in context handling and the new project chain runner functionality. * Enhance ChatManager tests with project context mocks - Added mocks for project context retrieval and system prompt settings in `ChatManager.test.ts` to facilitate testing without relying on actual project data. - Improved test coverage for context-related functionalities by simulating project context and system prompt retrieval, ensuring robust testing of the ChatManager's behavior in various scenarios. |
||
|---|---|---|
| .. | ||
| CITATION_IMPLEMENTATION.md | ||
| CONTEXT_ENGINEERING.md | ||
| MESSAGE_ARCHITECTURE.md | ||
| TECHDEBT.md | ||
| TOOLS.md | ||