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

Function withState

graph-ui/src/pseudocode/imports-group.test.ts:101–103  ·  view source on GitHub ↗

One IR with a family forced into a state the recording never has.

(document: SemanticIR, family: 'calls' | 'throws' | 'reads', state: KnowledgeState)

Source from the content-addressed store, hash-verified

99
100/** One IR with a family forced into a state the recording never has. */
101function withState(document: SemanticIR, family: 'calls' | 'throws' | 'reads', state: KnowledgeState): SemanticIR {
102 return { ...document, [family]: { ...document[family], state } };
103}
104
105function group(entries: FileImportRef[], irs: readonly SemanticIR[] = [CREATE_USER], cap?: number) {
106 return buildImportsGroup({ imports: dto(entries, { fileIrs: [...irs] }), irs, uri: URI, cap });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected