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

Function walk

src/index.js:744–756  ·  view source on GitHub ↗
(current)

Source from the content-addressed store, hash-verified

742 if (client?.session?.get) {
743 try {
744 const info = await sdkCall(client.session.get.bind(client.session), { path: { id: sessionID } }, { path: { sessionID } }, { sessionID });
745 updateSessionExecutionContext(info);
746 } catch {}
747 }
748 const context = sessionExecutionContexts.get(sessionID) || {};
749 const normalized = { agent: context.agent || "build", model: context.model };
750 sessionExecutionContexts.set(sessionID, normalized);
751 return normalized;
752}
753function getSessionExecutionContext(sessionID) {
754 return sessionExecutionContexts.get(sessionID);
755}
756function setSessionExecutionContext(sessionID, context) {
757 sessionExecutionContexts.set(sessionID, context);
758 return context;
759}

Callers 1

untilReachedFunction · 0.85

Calls 1

fileContainsFunction · 0.85

Tested by

no test coverage detected