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

Function maybeCompact

src/index.js:700–709  ·  view source on GitHub ↗
(client, sessionID, job)

Source from the content-addressed store, hash-verified

698 }
699 return String(error);
700}
701async function sdkCall(method, ...argsList) {
702 let firstError;
703 for (const args of argsList) {
704 if (args === undefined)
705 continue;
706 try {
707 const result = await method(args);
708 const error = sdkError(result);
709 if (!error)
710 return sdkData(result);
711 firstError = firstError || new Error(sdkErrorMessage(error));
712 } catch (error) {

Callers 1

maybeRunDueJobsFunction · 0.85

Calls 2

nowFunction · 0.85
compactSessionFunction · 0.85

Tested by

no test coverage detected