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

Function pickGoalJob

src/index.js:1037–1043  ·  view source on GitHub ↗
(state, target = "")

Source from the content-addressed store, hash-verified

1035}
1036
1037async function sessionIsIdle(client, sessionID, directory, options = {}) {
1038 return await sessionStatusType(client, sessionID, directory, options) === "idle"
1039}
1040
1041function scheduleIdleWork(directory, client, sessionID) {
1042 const previous = idleTimers.get(sessionID)
1043 if (previous) clearTimeout(previous)
1044 const timer = setTimeout(() => {
1045 idleTimers.delete(sessionID)
1046 Promise.resolve()

Callers 3

setGoalCompleteFunction · 0.85
setGoalBlockedFunction · 0.85
setGoalProgressFunction · 0.85

Calls 1

matchJobFunction · 0.85

Tested by

no test coverage detected