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

Function upsertInstructionsEntry

src/installer/targets/shared.ts:186–194  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

184 * initialize instructions).
185 */
186export function upsertInstructionsEntry(file: string): { path: string; action: 'created' | 'updated' | 'unchanged' } {
187 const action = replaceOrAppendMarkedSection(
188 file,
189 CODEGRAPH_INSTRUCTIONS_BLOCK,
190 CODEGRAPH_SECTION_START,
191 CODEGRAPH_SECTION_END,
192 );
193 return { path: file, action: action === 'appended' ? 'updated' : action };
194}
195
196/**
197 * Inverse of `replaceOrAppendMarkedSection`. Strips the marker

Callers 4

installMethod · 0.90
installMethod · 0.90
installMethod · 0.90
installMethod · 0.90

Calls 1

Tested by

no test coverage detected