Skip to content

Commit e4705ed

Browse files
committed
fix: correct IKnowledgeGraph import path in memory specs
Path was '../../src/core/knowledge/IKnowledgeGraph' (doesn't exist); correct path is '../../src/memory/retrieval/graph/knowledge/ IKnowledgeGraph'. vitest ran these green via esbuild type-stripping, but IDE tsserver flagged the missing module. All 22 tests across the four specs still pass.
1 parent e48cd64 commit e4705ed

4 files changed

Lines changed: 4 additions & 4 deletions

tests/memory/CognitiveMemoryManager.getTraceCount.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { CognitiveMemoryManager } from '../../src/memory/CognitiveMemoryManager'
1010
import type { CognitiveMemoryConfig, PADState } from '../../src/memory/core/config';
1111
import type { IVectorStore, VectorDocument, QueryResult } from '../../src/rag/IVectorStore';
1212
import type { IEmbeddingManager } from '../../src/rag/IEmbeddingManager';
13-
import type { IKnowledgeGraph } from '../../src/core/knowledge/IKnowledgeGraph';
13+
import type { IKnowledgeGraph } from '../../src/memory/retrieval/graph/knowledge/IKnowledgeGraph';
1414
import type { IWorkingMemory } from '../../src/cognitive_substrate/memory/IWorkingMemory';
1515

1616
function createMockVectorStore(): IVectorStore {

tests/memory/CognitiveMemoryManager.integration.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { CognitiveMemoryManager } from '../../src/memory/CognitiveMemoryManager'
99
import type { CognitiveMemoryConfig, PADState } from '../../src/memory/core/config';
1010
import type { IVectorStore, VectorDocument, QueryResult } from '../../src/rag/IVectorStore';
1111
import type { IEmbeddingManager } from '../../src/rag/IEmbeddingManager';
12-
import type { IKnowledgeGraph } from '../../src/core/knowledge/IKnowledgeGraph';
12+
import type { IKnowledgeGraph } from '../../src/memory/retrieval/graph/knowledge/IKnowledgeGraph';
1313
import type { IWorkingMemory } from '../../src/cognitive_substrate/memory/IWorkingMemory';
1414

1515
// ---------------------------------------------------------------------------

tests/memory/CognitiveMemoryManager.scoringWeightsOverride.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { CognitiveMemoryManager } from '../../src/memory/CognitiveMemoryManager'
1313
import type { CognitiveMemoryConfig, PADState } from '../../src/memory/core/config';
1414
import type { IVectorStore, VectorDocument, QueryResult } from '../../src/rag/IVectorStore';
1515
import type { IEmbeddingManager } from '../../src/rag/IEmbeddingManager';
16-
import type { IKnowledgeGraph } from '../../src/core/knowledge/IKnowledgeGraph';
16+
import type { IKnowledgeGraph } from '../../src/memory/retrieval/graph/knowledge/IKnowledgeGraph';
1717
import type { IWorkingMemory } from '../../src/cognitive_substrate/memory/IWorkingMemory';
1818
import type { SignalName } from '../../src/memory/core/decay/RetrievalPriorityScorer';
1919

tests/memory/CognitiveMemoryManager.tagRoundTrip.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { CognitiveMemoryManager } from '../../src/memory/CognitiveMemoryManager'
1414
import type { CognitiveMemoryConfig, PADState } from '../../src/memory/core/config';
1515
import type { IVectorStore, VectorDocument, QueryResult } from '../../src/rag/IVectorStore';
1616
import type { IEmbeddingManager } from '../../src/rag/IEmbeddingManager';
17-
import type { IKnowledgeGraph } from '../../src/core/knowledge/IKnowledgeGraph';
17+
import type { IKnowledgeGraph } from '../../src/memory/retrieval/graph/knowledge/IKnowledgeGraph';
1818
import type { IWorkingMemory } from '../../src/cognitive_substrate/memory/IWorkingMemory';
1919

2020
function createMockVectorStore(): IVectorStore {

0 commit comments

Comments
 (0)