Ship growth intelligence and demo polish
CI / verify (push) Successful in 3m51s

This commit is contained in:
2026-08-13 04:44:14 -07:00
parent a6167629cc
commit 1318c0b841
14 changed files with 112 additions and 35 deletions
+13 -8
View File
@@ -18,7 +18,7 @@
* would be fabricating commercial records about real businesses, which is a
* different thing entirely and not worth the realism.
*
* Remove it all with `npm run db:demo -- --clear`.
* Remove it all with `pnpm db:demo -- --clear`.
*
* The numbers are chosen to teach. The book as a whole clears a modest margin —
* roughly what this industry actually earns once capacity cost is charged
@@ -476,11 +476,16 @@ async function seedDemo() {
.where(eq(accounts.domain, 'lambda.ai'))
.limit(1);
if (lambda) {
await db
.insert(supplyDeals)
.values({
const LAMBDA_DEAL = `${PREFIX}256× H200 — pricing`;
const [existingLambdaDeal] = await db
.select({ id: supplyDeals.id })
.from(supplyDeals)
.where(and(eq(supplyDeals.accountId, lambda.id), eq(supplyDeals.name, LAMBDA_DEAL)))
.limit(1);
if (!existingLambdaDeal) {
await db.insert(supplyDeals).values({
accountId: lambda.id,
name: `${PREFIX}256× H200 — pricing`,
name: LAMBDA_DEAL,
stage: 'financial_diligence',
gpuType: 'H200',
gpuCount: 256,
@@ -490,8 +495,8 @@ async function seedDemo() {
technicalVerdict: 'pass',
technicalNotes: 'Fabric verified. Storage throughput per GPU is below spec — flagged.',
financialNotes: 'Awaiting a firm quote on the committed tranche.',
})
.onConflictDoNothing();
});
}
}
// ------------------------------------------------------------ demand side
@@ -823,7 +828,7 @@ async function seedDemo() {
console.log(` ${factSeeds.length} agent-derived facts (${factsAdded} new) — 2 applied, 4 awaiting review`);
console.log(' 6 demand deals across the pipeline, 5 supply deals');
console.log(' Allocations including one unconverted hold and internal research burn');
console.log('\nEverything is prefixed "DEMO — ". Remove it with: npm run db:demo -- --clear');
console.log('\nEverything is prefixed "DEMO — ". Remove it with: pnpm db:demo -- --clear');
}
const shouldClear = process.argv.includes('--clear');