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

Function appendLoopLog

src/index.js:536–541  ·  view source on GitHub ↗
(directory, line, extra = {})

Source from the content-addressed store, hash-verified

534 const verify = job.verifyCommand ? ", verify" : ""
535 const preflight = job.preflightCommand ? ", preflight" : ""
536 const failures = job.maxFailures > 0 ? `, max failures ${job.maxFailures}` : ""
537 const stopFile = job.stopFile ? ", stop-file" : ""
538 const watch = job.watchPaths?.length ? `, watch ${job.watchPaths.join(",")}` : ""
539 const paused = job.paused ? ", paused" : ""
540 return `${title}${durationToText(job.intervalMs)}${kind} -> ${job.action || `[prompt-file: ${job.promptFile}]`}${limit}${runtime}${timeout}${compact}${verify}${preflight}${failures}${stopFile}${watch}${paused}`
541}
542
543function matchJob(job, target, index) {
544 const text = String(target || "").trim()

Callers 14

startHeartbeatFunction · 0.85
ensureBranchFunction · 0.85
scheduleIdleWorkFunction · 0.85
startWatchdogFunction · 0.85
scheduleDueWorkFunction · 0.85
setGoalCompleteFunction · 0.85
setGoalBlockedFunction · 0.85
setGoalProgressFunction · 0.85
runGoalChecksFunction · 0.85
finalizeActiveRunFunction · 0.85
fireActionFunction · 0.85
maybeRunDueJobsFunction · 0.85

Calls 2

ensureDirFunction · 0.85
stateDirFunction · 0.85

Tested by

no test coverage detected