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

Method updateStatus

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

Source from the content-addressed store, hash-verified

5228 }
5229
5230 private async updateStatus(
5231 sessionId: string,
5232 status: SessionStatus,
5233 blockedReason?: SessionBlockedReason,
5234 ts = this.deps.now(),
5235 ): Promise<void> {
5236 await this.updateHeader(sessionId, buildStatusPatch(status, ts, blockedReason));
5237 }
5238
5239 private async updateHeader(sessionId: string, patch: SessionHeaderPatch): Promise<SessionHeader> {
5240 const next = await this.deps.store.updateHeader(sessionId, patch);

Calls 3

updateHeaderMethod · 0.95
buildStatusPatchFunction · 0.85
nowMethod · 0.65

Tested by

no test coverage detected