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

Function matchJob

src/index.js:530–534  ·  view source on GitHub ↗
(job, target, index)

Source from the content-addressed store, hash-verified

528 )
529 } catch {}
530}
531
532function commandKey(sessionID, name, args) { return `${sessionID || "no-session"}:${name || ""}:${normalizeArgsForKey(args)}` }
533function markHandled(sessionID, name, args) {
534 handledCommands.set(commandKey(sessionID, name, args), now())
535 for (const [key, time] of handledCommands.entries()) if (now() - time > 30_000) handledCommands.delete(key)
536}
537function wasHandled(sessionID, name, args) {

Callers 7

pickGoalJobFunction · 0.85
stopLoopFunction · 0.85
updateJobStateFunction · 0.85
pauseGoalFunction · 0.85
resumeGoalFunction · 0.85
clearGoalFunction · 0.85
runNowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected