MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / assertSessionExists

Function assertSessionExists

apps/cli/src/ai/chat-command.ts:120–125  ·  view source on GitHub ↗
(dbManager: DatabaseManager, sessionId: string)

Source from the content-addressed store, hash-verified

118}
119
120function assertSessionExists(dbManager: DatabaseManager, sessionId: string): void {
121 const db = dbManager.open(sessionId)
122 if (!db) {
123 throw new Error(`Session ${sessionId} not found`)
124 }
125}
126
127export function resolveAIChatTarget(
128 options: Pick<ChatCommandOptions, 'sessionId' | 'aiChatId' | 'question'>,

Callers 1

resolveAIChatTargetFunction · 0.85

Calls 1

openMethod · 0.65

Tested by

no test coverage detected