MCPcopy Create free account
hub / github.com/contextgo/contextgo / makeProfile

Function makeProfile

tests/unit/context-engine/contextEngineService.test.ts:74–86  ·  view source on GitHub ↗
(overrides: Partial<ProfileSegment> & Pick<ProfileSegment, 'id' | 'summary'>)

Source from the content-addressed store, hash-verified

72}
73
74function makeProfile(overrides: Partial<ProfileSegment> & Pick<ProfileSegment, 'id' | 'summary'>): ProfileSegment {
75 return {
76 id: overrides.id,
77 spaceId: SPACE_ID,
78 key: overrides.key ?? 'engineering-style',
79 summary: overrides.summary,
80 memoryIds: overrides.memoryIds ?? ['memory-1'],
81 confidence: overrides.confidence ?? 0.8,
82 state: overrides.state ?? 'active',
83 createdAt: overrides.createdAt ?? '2026-03-30T00:00:00.000Z',
84 updatedAt: overrides.updatedAt ?? '2026-03-30T00:00:00.000Z',
85 };
86}
87
88async function writeTestDocument(filePath: string, content: string): Promise<void> {
89 await fs.mkdir(path.dirname(filePath), { recursive: true });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected