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

Function removeInstructionsEntry

src/installer/targets/codex.ts:189–193  ·  view source on GitHub ↗

* Strip the marker-delimited CodeGraph block from this location's * AGENTS.md if a prior install wrote one. Used by both install * (self-heal on upgrade) and uninstall — see issue #529.

(loc: Location)

Source from the content-addressed store, hash-verified

187 * (self-heal on upgrade) and uninstall — see issue #529.
188 */
189function removeInstructionsEntry(loc: Location): WriteResult['files'][number] {
190 const file = instructionsPath(loc);
191 const action = removeMarkedSection(file, CODEGRAPH_SECTION_START, CODEGRAPH_SECTION_END);
192 return { path: file, action };
193}
194
195export const codexTarget: AgentTarget = new CodexTarget();

Callers 1

uninstallMethod · 0.70

Calls 2

removeMarkedSectionFunction · 0.90
instructionsPathFunction · 0.70

Tested by

no test coverage detected