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

Method ensureOpen

packages/node-sdk/src/session.ts:541–545  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

539 }
540
541 private ensureOpen(): void {
542 if (this.closed) {
543 throw new KimiError(ErrorCodes.SESSION_CLOSED, 'Session is closed');
544 }
545 }
546
547 private requireSummary(): SessionSummary {
548 if (this.summary === undefined) {

Callers 15

getResumeStateMethod · 0.95
reloadSessionMethod · 0.95
onEventMethod · 0.95
setApprovalHandlerMethod · 0.95
setQuestionHandlerMethod · 0.95
promptMethod · 0.95
runShellCommandMethod · 0.95
cancelShellCommandMethod · 0.95
steerMethod · 0.95
swarmMethod · 0.95
initMethod · 0.95
getSessionWarningsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected