refactor(core): simplify integration credentials (#31968)

This commit is contained in:
Dax 2026-06-12 02:15:25 -04:00 committed by GitHub
commit 30aec297d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
112 changed files with 2467 additions and 47728 deletions

View file

@ -92,6 +92,18 @@ describe("DatabaseMigration", () => {
)
})
test("rejects a non-empty database without a session table", async () => {
await expect(
run(
Effect.gen(function* () {
const db = yield* makeDb
yield* db.run(sql`CREATE TABLE unrelated (id text PRIMARY KEY)`)
yield* DatabaseMigration.apply(db)
}),
),
).rejects.toThrow("Database is not empty and has no session table")
})
test("backfills existing Context Epoch rows to the build agent", async () => {
await run(
Effect.gen(function* () {