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

Method updateStatus

packages/runtime/src/runtime-kernel.ts:3232–3239  ·  view source on GitHub ↗
(
    sessionId: string,
    status: SessionStatus,
    blockedReason?: SessionBlockedReason,
    ts = this.deps.now(),
  )

Source from the content-addressed store, hash-verified

3230 }
3231
3232 private async updateStatus(
3233 sessionId: string,
3234 status: SessionStatus,
3235 blockedReason?: SessionBlockedReason,
3236 ts = this.deps.now(),
3237 ): Promise<void> {
3238 await this.updateHeader(sessionId, buildStatusPatch(status, ts, blockedReason));
3239 }
3240
3241 private async updateHeader(sessionId: string, patch: SessionHeaderPatch): Promise<SessionHeader> {
3242 const next = await this.deps.store.updateHeader(sessionId, patch);

Callers 5

startTurnMethod · 0.95
compactSessionClaimedMethod · 0.95
advanceStopOperationMethod · 0.95

Calls 3

updateHeaderMethod · 0.95
buildStatusPatchFunction · 0.85
nowMethod · 0.65

Tested by

no test coverage detected