MCPcopy
hub / github.com/openai/codex-plugin-cc / firstMeaningfulLine

Function firstMeaningfulLine

plugins/codex/scripts/codex-companion.mjs:174–180  ·  view source on GitHub ↗
(text, fallback)

Source from the content-addressed store, hash-verified

172}
173
174function firstMeaningfulLine(text, fallback) {
175 const line = String(text ?? "")
176 .split(/\r?\n/)
177 .map((value) => value.trim())
178 .find(Boolean);
179 return line ?? fallback;
180}
181
182async function buildSetupReport(cwd, actionsTaken = []) {
183 const workspaceRoot = resolveWorkspaceRoot(cwd);

Callers 2

executeReviewRunFunction · 0.85
executeTaskRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected