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

Function formatUserFacingCliStderrLine

apps/opencode-plugin/cli-bridge.ts:196–203  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

194}
195
196export function formatUserFacingCliStderrLine(line: string): string | undefined {
197 const trimmed = line.trim();
198 if (!trimmed) return undefined;
199 if (/^Open this link on your local machine to\b/.test(trimmed)) return trimmed;
200 if (/^https?:\/\/\S+/.test(trimmed)) return trimmed;
201 if (/^\(.+annotations added in browser\)$/.test(trimmed)) return trimmed;
202 return undefined;
203}
204
205function createCliStderrForwarder(client: OpenCodeClient) {
206 let pending = "";

Callers 2

cli-bridge.test.tsFile · 0.90
forwardLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected