(url: string, projectId?: string)
| 327 | return { |
| 328 | // Sessions |
| 329 | createSession(url: string, projectId?: string): Session { |
| 330 | const session: Session = { |
| 331 | id: generateId(), |
| 332 | url, |
| 333 | status: "active", |
| 334 | createdAt: new Date().toISOString(), |
| 335 | projectId, |
| 336 | }; |
| 337 | |
| 338 | stmts.insertSession.run({ |
| 339 | id: session.id, |
| 340 | url: session.url, |
| 341 | status: session.status, |
| 342 | createdAt: session.createdAt, |
| 343 | projectId: session.projectId ?? null, |
| 344 | metadata: null, |
| 345 | }); |
| 346 | |
| 347 | const event = eventBus.emit("session.created", session.id, session); |
| 348 | persistEvent(event); |
| 349 | |
| 350 | return session; |
| 351 | }, |
| 352 | |
| 353 | getSession(id: string): Session | undefined { |
| 354 | const row = stmts.getSession.get(id) as Record<string, unknown> | undefined; |
nothing calls this directly
no test coverage detected
searching dependent graphs…