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

Function removeInstructionsEntry

src/installer/targets/gemini.ts:156–160  ·  view source on GitHub ↗

* Strip the marker-delimited CodeGraph block from GEMINI.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

154 * uninstall — see issue #529.
155 */
156function removeInstructionsEntry(loc: Location): WriteResult['files'][number] {
157 const file = instructionsPath(loc);
158 const action = removeMarkedSection(file, CODEGRAPH_SECTION_START, CODEGRAPH_SECTION_END);
159 return { path: file, action };
160}
161
162export const geminiTarget: AgentTarget = new GeminiTarget();

Callers 1

uninstallMethod · 0.70

Calls 2

removeMarkedSectionFunction · 0.90
instructionsPathFunction · 0.70

Tested by

no test coverage detected