MCPcopy Create free account
hub / github.com/apache/maka / setSessionStatus

Method setSessionStatus

packages/runtime/src/session-manager.ts:1568–1579  ·  view source on GitHub ↗
(
    sessionId: string,
    status: SessionStatus,
    blockedReason?: SessionBlockedReason,
  )

Source from the content-addressed store, hash-verified

1566 }
1567
1568 async setSessionStatus(
1569 sessionId: string,
1570 status: SessionStatus,
1571 blockedReason?: SessionBlockedReason,
1572 ): Promise<SessionSummary> {
1573 const next = await this.deps.store.updateHeader(
1574 sessionId,
1575 buildStatusPatch(status, this.deps.now(), blockedReason),
1576 );
1577 this.runtimeKernel.updateCachedHeader(sessionId, next);
1578 return headerToSummary(next);
1579 }
1580
1581 async commitRevisionVersion(sessionId: string): Promise<SessionSummary> {
1582 const current = await this.deps.store.readHeader(sessionId);

Callers

nothing calls this directly

Calls 5

buildStatusPatchFunction · 0.85
headerToSummaryFunction · 0.85
updateHeaderMethod · 0.65
nowMethod · 0.65
updateCachedHeaderMethod · 0.65

Tested by

no test coverage detected