(type: string)
| 86 | ), |
| 87 | ) |
| 88 | const eventCount = (type: string) => |
| 89 | Database.Service.use(({ db }) => |
| 90 | db |
| 91 | .select() |
| 92 | .from(EventTable) |
| 93 | .where(eq(EventTable.type, type)) |
| 94 | .all() |
| 95 | .pipe( |
| 96 | Effect.orDie, |
| 97 | Effect.map((rows) => rows.length), |
| 98 | ), |
| 99 | ) |
| 100 | |
| 101 | describe("SessionV2.prompt", () => { |
| 102 | it.effect("exposes the execution registry", () => |