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

Function logCliWarnings

apps/opencode-plugin/cli-bridge.ts:185–194  ·  view source on GitHub ↗
(client: OpenCodeClient, stderr: string)

Source from the content-addressed store, hash-verified

183}
184
185function logCliWarnings(client: OpenCodeClient, stderr: string): void {
186 const warningLines = stderr
187 .split(/\r?\n/)
188 .map((line) => line.trim())
189 .filter((line) => /\bwarn(?:ing)?\b/i.test(line));
190
191 for (const line of warningLines) {
192 log(client, "info", `[Plannotator] ${line}`);
193 }
194}
195
196export function formatUserFacingCliStderrLine(line: string): string | undefined {
197 const trimmed = line.trim();

Callers 2

runCliPlanReviewFunction · 0.85
handleCliCommandFunction · 0.85

Calls 1

logFunction · 0.70

Tested by

no test coverage detected