Files
pbakaus_impeccable/scripts/strip-local-world-cards.mjs
T
Paul BakausandClaude Fable 5 7557935fdb Expand concept system: modes, ratings, re-roll, breadth strategy
Catalog: mode-aligned staging surfaces (persuade/operate/read/experience),
star ratings on approvals feeding challenger draw weights, family
retirements, authoring strategy and territory guide, rework and breadth
authoring rounds, composition mining from rejected worlds.

Seed: six challengers (two per tier), --reroll chains, --mode staging
filter, rating-weighted draws. New-work: Present/visualize/re-roll flow,
image-gen requirement, register-neutral vocabulary.

Pipeline: per-mode staging prompts with split frames, hero-from-board
reference generation, render-safety guards. Labs: ratings UI, unrated
filter, mode chips, composition approve-guard.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-20 22:10:10 -07:00

16 lines
684 B
JavaScript

#!/usr/bin/env node
// World cards are served from R2 by functions/worlds/cards/[[file]].js.
// Astro copies site/public/worlds/cards (local generation output) into the
// static build; this strips it so deploys stay light and the Function owns
// the route. Runs as part of `bun run build`.
import { rmSync, existsSync } from 'node:fs';
import { join, dirname } from 'node:path';
import { fileURLToPath } from 'node:url';
const buildCards = join(dirname(fileURLToPath(import.meta.url)), '..', 'build', 'worlds', 'cards');
if (existsSync(buildCards)) {
rmSync(buildCards, { recursive: true });
console.log('✓ Stripped local world cards from build output (served from R2)');
}