MCPcopy Create free account
hub / github.com/backnotprop/plannotator / stripConflictingPlanModeRules

Function stripConflictingPlanModeRules

apps/opencode-plugin/plan-mode.ts:45–56  ·  view source on GitHub ↗
(systemEntries: string[])

Source from the content-addressed store, hash-verified

43}
44
45export function stripConflictingPlanModeRules(systemEntries: string[]): string[] {
46 return systemEntries
47 .map((entry) =>
48 cleanupSystemEntry(
49 entry
50 .split("\n")
51 .filter((line) => !shouldStripPlanModeLine(line))
52 .join("\n"),
53 ),
54 )
55 .filter(Boolean);
56}

Callers 2

PlannotatorPluginFunction · 0.90
plan-mode.test.tsFile · 0.90

Calls 2

cleanupSystemEntryFunction · 0.85
shouldStripPlanModeLineFunction · 0.85

Tested by

no test coverage detected