MCPcopy Index your code
hub / github.com/ByBrawe/opencode-loop / goalStatusText

Function goalStatusText

src/index.js:620–627  ·  view source on GitHub ↗
(job)

Source from the content-addressed store, hash-verified

618}
619
620function presetDefaults(name, args) {
621 const [maybeDuration, rest] = splitFirst(args)
622 const parsed = parseDuration(maybeDuration)
623 const intervalMs = parsed === null ? 0 : parsed
624 const extra = parsed === null ? String(args || "").trim() : rest
625 if (name === "loop-compact") return { intervalMs: intervalMs || parseDuration("200m"), action: extra || "/compact", kind: "compact", name: "compact", immediate: false }
626 if (name === "loop-command" || name === "loop-cmd") return { intervalMs, action: extra, kind: "command", name: "command", immediate: false }
627 if (name === "loop-prompt") return { intervalMs, action: extra, kind: "prompt", name: "prompt", immediate: true }
628 if (name === "loop-ask") return { intervalMs, action: extra, kind: "prompt", name: "ask", immediate: false }
629 if (name === "loop-shell") return { intervalMs, action: extra, kind: "shell", name: "shell", immediate: false }
630 if (name === "loop-testfix") return { intervalMs, name: "testfix", safe: true, askNever: true, verifyCommand: extra || "npm test", action: `Run the project tests. Fix failures. Re-run the tests. Test command hint: ${extra || "npm test"}` }

Callers 3

goalReportTextFunction · 0.85
statusGoalFunction · 0.85
statusLoopFunction · 0.85

Calls 1

isGoalJobFunction · 0.85

Tested by

no test coverage detected