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

Function payload

__tests__/ui-file-model.test.ts:60–85  ·  view source on GitHub ↗
(over: Partial<WireFilePayload> = {})

Source from the content-addressed store, hash-verified

58}
59
60function payload(over: Partial<WireFilePayload> = {}): WireFilePayload {
61 return {
62 file: {
63 path: 'src/graph/traversal.ts',
64 language: 'typescript',
65 size: 24216,
66 modifiedAt: 1,
67 indexedAt: 2,
68 contentHash: 'abc',
69 nodeCount: 26,
70 generated: false,
71 test: false,
72 errors: [],
73 id: 'file:src/graph/traversal.ts',
74 },
75 topLevel: { calls: 0 },
76 drift: false,
77 outline: { total: 0, shown: 0, truncated: false, items: [] },
78 imports: { total: 0, shown: 0, truncated: false, items: [] },
79 importedBy: { total: 0, shown: 0, truncated: false, items: [] },
80 unresolvedImports: [],
81 dependencies: [],
82 dependents: [],
83 ...over,
84 } as WireFilePayload;
85}
86
87/* ----------------------------------------------------------------- rail -- */
88

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected