(options?: CreateSessionOptions)
| 76 | } |
| 77 | |
| 78 | async createSession(options?: CreateSessionOptions): Promise<Session> { |
| 79 | const session = await this.call<Session>('POST', '/session', { |
| 80 | parentID: options?.parentId, |
| 81 | title: options?.title, |
| 82 | }); |
| 83 | this.kiloSessionId = session.id; |
| 84 | logger.withFields({ kiloSessionId: session.id }).info('Created kilo session'); |
| 85 | return session; |
| 86 | } |
| 87 | |
| 88 | async resumeSession(sessionId: string): Promise<Session> { |
| 89 | try { |
no test coverage detected