security hardening + drafts/attachments

This commit is contained in:
2026-02-21 19:10:56 -05:00
parent 1dc99eb681
commit a0105956e4
35 changed files with 4928 additions and 0 deletions

20
worker/src/worker.js Normal file
View File

@@ -0,0 +1,20 @@
import 'dotenv/config';
import pg from 'pg';
const { Pool } = pg;
const pool = new Pool({ connectionString: process.env.DATABASE_URL });
// Placeholder worker loop
async function main() {
// eslint-disable-next-line no-console
console.log('Mastermind worker started');
while (true) {
await new Promise((r) => setTimeout(r, 10_000));
// future: ingest inbox, OCR docs, classify
}
}
main().catch((e) => {
console.error(e);
process.exit(1);
});