MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / packetOf

Function packetOf

graph-ui/src/compiler/card-compiler.test.ts:25–44  ·  view source on GitHub ↗

A packet the way a recipe would have produced it, without a server.

(overrides: Partial<FactPacket> = {})

Source from the content-addressed store, hash-verified

23
24/** A packet the way a recipe would have produced it, without a server. */
25function packetOf(overrides: Partial<FactPacket> = {}): FactPacket {
26 const question = overrides.question ?? 'Wer ruft createUser?';
27 const classification = classifyQuestion(question);
28 return {
29 klass: overrides.klass ?? classification.klass,
30 question,
31 classification,
32 depth: 1,
33 subject: CREATE_USER_IR.symbol,
34 subjectIr: CREATE_USER_IR,
35 ambiguous: [],
36 neighbours: [],
37 routes: [],
38 entryPoints: [],
39 observed: [],
40 sources: [],
41 notes: [],
42 ...overrides,
43 };
44}
45
46function caller(name: string, line: number): NeighbourFact {
47 return {

Callers 1

Calls 1

classifyQuestionFunction · 0.90

Tested by

no test coverage detected