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

Function resumeStateFromSummary

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

Source from the content-addressed store, hash-verified

618}
619
620function resumeStateFromSummary(
621 summary: SessionSummary | undefined,
622): ResumedSessionState | undefined {
623 if (!hasResumeState(summary)) return undefined;
624 return {
625 sessionMetadata: summary.sessionMetadata,
626 agents: summary.agents,
627 warning: summary.warning,
628 };
629}
630
631function hasResumeState(
632 summary: SessionSummary | undefined,

Callers 2

constructorMethod · 0.85
reloadSessionMethod · 0.85

Calls 1

hasResumeStateFunction · 0.85

Tested by

no test coverage detected