Files
breakpilot-core/pitch-deck/scripts/compute-wd.ts
Benjamin Admin 14362cbc0e
Some checks failed
Build pitch-deck / build-push-deploy (push) Successful in 1m14s
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 34s
CI / test-python-voice (push) Successful in 36s
CI / test-bqas (push) Has been cancelled
chore(pitch-deck): TEMP public fp-patch v2 — fix WD funding + recompute
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-21 18:09:35 +02:00

19 lines
656 B
TypeScript

import { Pool } from 'pg'
import { computeFinanzplan } from '../lib/finanzplan/engine'
async function main() {
const pool = new Pool({ connectionString: process.env.DATABASE_URL || 'postgres://breakpilot:breakpilot123@localhost:5432/breakpilot_db' })
try {
const sid = 'c0000000-0000-0000-0000-000000000200'
console.log('Computing WD scenario:', sid)
const result = await computeFinanzplan(pool, sid)
console.log('Done. Cash m60:', result.liquiditaet?.endstand?.m60)
console.log('Headcount m60:', result.personalkosten?.headcount?.m60)
} catch (e) {
console.error('Error:', e)
} finally {
await pool.end()
}
}
main()