Agent completed work jubii

This commit is contained in:
Lucas Winther
2026-07-09 08:07:32 +02:00
parent 6466d3a45c
commit eb72a2e646
29 changed files with 2051 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
/**
* Auth — TODO(M4).
*
* Passport.js local strategy behind a connect-compat adapter over Bun.serve
* (Decisions.md D-008): wrap Bun's Request in a minimal req/res shim, run the
* passport authenticate chain, translate back to a Response. Sessions in
* bun:sqlite with HttpOnly cookies (D-009). Routes:
* POST /api/auth/register|login|logout, GET /api/auth/me.
*/
export {};
+9
View File
@@ -0,0 +1,9 @@
/**
* Database — TODO(M4).
*
* bun:sqlite (Decisions.md D-009). Tables: users (id, username, password_hash
* via Bun.password Argon2), sessions (id, user_id, expires_at). DB path from
* env, default ./data/app.db.
*/
export {};
+10
View File
@@ -0,0 +1,10 @@
/**
* Server-side transcription engine — TODO(M5).
*
* POST /api/transcribe: auth-guarded, runs the same Transformers.js pipeline
* under Bun (ONNX Runtime, CPU), streams progress + partial transcripts as a
* chunked JSON-lines response (Decisions.md D-011). Reuses the shared model
* catalog in src/lib/models.ts; keep pipelines warm across requests.
*/
export {};