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

Method constructor

packages/node-sdk/src/session.ts:60–67  ·  view source on GitHub ↗
(options: SessionOptions)

Source from the content-addressed store, hash-verified

58 private closed = false;
59
60 constructor(options: SessionOptions) {
61 this.id = options.id;
62 this.workDir = options.workDir;
63 this.summary = options.summary;
64 this.resumeState = options.resumeState ?? resumeStateFromSummary(options.summary);
65 this.rpc = options.rpc;
66 this.onClose = options.onClose;
67 }
68
69 getResumeState(): ResumedSessionState | undefined {
70 this.ensureOpen();

Callers

nothing calls this directly

Calls 1

resumeStateFromSummaryFunction · 0.85

Tested by

no test coverage detected