MCPcopy Create free account
hub / github.com/ByBrawe/opencode-loop / logsLoop

Function logsLoop

src/index.js:1524–1528  ·  view source on GitHub ↗
(directory, client, sessionID)

Source from the content-addressed store, hash-verified

1522 if (!text || ["active", "current", "goal"].includes(text.toLowerCase()))
1523 return goals.find((job) => job.goalStatus === "active" && job.enabled !== false) || goals[0];
1524 return goals.find((job, index) => matchJob(job, text, index));
1525}
1526function parseGoalToolText(args, fields) {
1527 const result = {};
1528 for (const field of fields)
1529 result[field] = String(args?.[field] || "").trim();
1530 return result;
1531}

Callers 1

handleCommandFunction · 0.85

Calls 2

stateDirFunction · 0.85
sayFunction · 0.85

Tested by

no test coverage detected