MCPcopy Create free account
hub / github.com/MigoXLab/coderio / markComponentGenerated

Function markComponentGenerated

src/utils/code-cache.ts:86–90  ·  view source on GitHub ↗
(cache: CodeCache, nodeId: string)

Source from the content-addressed store, hash-verified

84 * @param nodeId - The unique node ID to mark as generated
85 */
86export function markComponentGenerated(cache: CodeCache, nodeId: string): void {
87 if (!isComponentGenerated(cache, nodeId)) {
88 cache.generatedComponents.push(nodeId);
89 }
90}
91
92/**
93 * Mark a component as generated and save cache immediately

Callers 2

code-cache.test.tsFile · 0.90
saveComponentGeneratedFunction · 0.85

Calls 2

isComponentGeneratedFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected