chore(db): relocate handle-lifecycle exports to db/client.ts, lint-ban raw sqlite #863
No reviewers
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!863
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "dev/849"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Relocates
getDb()/agentsDbPath()/resetDb()+orm()fromdb.tsintodb/client.ts(canonical home).db.tsre-exports them for backward compat while #843–#845 finish extracting aggregates.Adds
just sql-layer-check— bans non-typebun:sqliteimports outsideinfrastructure/database/(escape hatch:architect.tsmanages its own sessions DB). Wired intojust qaand a new CI job.Test plan
just sql-layer-checkpassesbun x turbo run typecheckcleanbun x @biomejs/biome@^2 check .— 0 errors, 8 pre-existing warningsCloses #849
Relocation correct, no circular deps, backward compat re-exports intact.
sql-layer-checkgrep is sound; Biome enforces double-quotes so single-quote escape attempts are caught at format time. CI green.