mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-20 01:56:37 +03:00
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>
16 lines
684 B
JavaScript
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)');
|
|
}
|