MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / hasResumeState

Function hasResumeState

packages/node-sdk/src/session.ts:631–641  ·  view source on GitHub ↗
(
  summary: SessionSummary | undefined,
)

Source from the content-addressed store, hash-verified

629}
630
631function hasResumeState(
632 summary: SessionSummary | undefined,
633): summary is SessionSummary & ResumedSessionState {
634 return (
635 summary !== undefined &&
636 typeof (summary as { readonly sessionMetadata?: unknown }).sessionMetadata === 'object' &&
637 (summary as { readonly sessionMetadata?: unknown }).sessionMetadata !== null &&
638 typeof (summary as { readonly agents?: unknown }).agents === 'object' &&
639 (summary as { readonly agents?: unknown }).agents !== null
640 );
641}

Callers 1

resumeStateFromSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected