This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user