MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / payloadWith

Function payloadWith

__tests__/ui-filecode-model.test.ts:99–120  ·  view source on GitHub ↗
(calls: WireFileCall[], outline: WireOutlineEntry[] = [])

Source from the content-addressed store, hash-verified

97}
98
99function payloadWith(calls: WireFileCall[], outline: WireOutlineEntry[] = []): WireFileCodePayload {
100 return {
101 file: {
102 path: 'src/a.ts',
103 language: 'typescript',
104 size: 100,
105 indexedAt: 0,
106 contentHash: 'h',
107 generated: false,
108 test: false,
109 errors: [],
110 id: 'file:src/a.ts',
111 totalLines: 500,
112 },
113 drift: false,
114 outline: { total: outline.length, shown: outline.length, truncated: false, items: outline },
115 calls: { total: calls.length, shown: calls.length, truncated: false, items: calls },
116 outside: { total: 0, shown: 0, truncated: false, items: [] },
117 intraFileCalls: 0,
118 timing: { elapsedMs: 0 },
119 };
120}
121
122/* ---------------------------------------------------------------- pixels -- */
123

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected