pro-visu 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +377 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +6303 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/index.d.ts +818 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/scene-app/assets/index-1XHtZ357.css +1 -0
- package/dist/scene-app/assets/index-sed_MW8w.js +49 -0
- package/dist/scene-app/index.html +25 -0
- package/package.json +85 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config/define-config.ts"],"sourcesContent":["import type { ScrollReelOptions } from \"@/generators/scroll-reel/options\";\nimport type { ScreenshotsOptions } from \"@/generators/screenshots/options\";\nimport type { WallOptions } from \"@/generators/wall/options\";\nimport type { SpecimenOptions } from \"@/generators/specimen/options\";\nimport type { PaletteOptions } from \"@/generators/palette/options\";\nimport type { PaletteReelOptions } from \"@/generators/palette-reel/options\";\nimport type { ImageOptions } from \"@/generators/image/options\";\n\n/**\n * Author-facing config types. These power editor autocomplete in `pro-visu.config.ts`.\n * The runtime validator lives in `schema.ts`; each generator validates its own options.\n * When a new generator is added, extend `AssetSpecInput` and `defaults` here.\n */\n\nexport type LogLevel = \"silent\" | \"error\" | \"warn\" | \"info\" | \"debug\";\n\nexport interface BrowserSettingsInput {\n /** Run the browser without a visible window (default true). Set false to watch captures. */\n headless?: boolean;\n /** Browser channel, e.g. \"chrome\" or \"msedge\". Omit to use the managed Chromium. */\n channel?: string;\n /** Absolute path to a browser executable (overrides `channel` + managed Chromium). */\n executablePath?: string;\n /** Extra launch args, e.g. [\"--no-sandbox\"] on CI. */\n args?: string[];\n /** Browser launch timeout (ms). */\n timeout?: number;\n}\n\nexport interface ServerSettingsInput {\n /**\n * Command that starts the server, run via the shell. The tool sets PORT/HOST in its environment\n * to the readiness port/host, so frameworks that honor PORT (Next, Vite, …) bind it\n * automatically — `command: \"next start\"` is enough. An explicit flag still wins.\n */\n command: string;\n /** Optional one-shot build to run first, e.g. \"next build\". */\n build?: string;\n /** Health-check URL polled until it responds. Defaults to http://127.0.0.1:<port>. */\n url?: string;\n /**\n * Port the readiness check polls — also derives `url` when `url` is omitted, and is passed to\n * the command as PORT so it binds the same port automatically. Defaults to 3101.\n */\n port?: number;\n /** Working dir for build + command, relative to the config dir. Defaults to it. */\n cwd?: string;\n /** Max time to wait for the server to become reachable (ms). Default 120000. */\n readyTimeoutMs?: number;\n /** If a server is already reachable at the URL, use it as-is (don't start/stop one). */\n reuseExisting?: boolean;\n}\n\nexport interface ShowcaseSettingsInput {\n /** Output directory for generated assets, relative to the repo root (default \"pro-visu\"). */\n outDir?: string;\n /** How many assets to generate in parallel (shared browser, separate contexts). */\n concurrency?: number;\n /**\n * Raise the Node heap (V8 old-space) to this many MB. Heavy jobs — large frame-stepped walls\n * especially — can exceed Node's ~4 GB default and crash with \"JavaScript heap out of memory\".\n * When set above the current limit, the CLI re-execs itself with `--max-old-space-size`. This is\n * the Node process heap, not the browser's.\n */\n maxMemoryMB?: number;\n /** CLI log verbosity. */\n logLevel?: LogLevel;\n /** Playwright launch controls. */\n browser?: BrowserSettingsInput;\n /** Build → start → wait → capture → stop a server automatically. */\n server?: ServerSettingsInput;\n /** \"draft\" lowers fps/scale and speeds the encoder for fast iteration. */\n quality?: \"draft\" | \"final\";\n /** Skip assets whose inputs+options+tool fingerprint is unchanged (opt-in). */\n cache?: boolean;\n /** Per-generator option defaults, keyed by generator id, merged under each asset. */\n defaults?: {\n \"scroll-reel\"?: ScrollReelOptions;\n screenshots?: ScreenshotsOptions;\n specimen?: SpecimenOptions;\n palette?: PaletteOptions;\n \"palette-reel\"?: PaletteReelOptions;\n };\n}\n\n/** Fields common to every asset. */\nexport interface AssetBaseInput {\n /** Unique id for this asset — also the output filename (`<slug(name)>.mp4`) and manifest key. */\n name: string;\n /** Other assets this one consumes, as `{ slotName: assetName }`. Producers run first. */\n inputs?: Record<string, string>;\n}\n\n/**\n * Discriminated by `generator` so each asset gets the right `options` autocomplete. URL-based\n * generators take a `url` — absolute, or a `/path` resolved against the managed server; omit it\n * to capture the managed server's root. A local `scene` composites its `inputs` and needs none.\n */\nexport type AssetSpecInput =\n | (AssetBaseInput & { url?: string; generator: \"scroll-reel\"; options?: ScrollReelOptions })\n | (AssetBaseInput & { url?: string; generator: \"screenshots\"; options?: ScreenshotsOptions })\n | (AssetBaseInput & { generator: \"wall\"; options?: WallOptions })\n | (AssetBaseInput & { generator: \"specimen\"; options: SpecimenOptions })\n | (AssetBaseInput & { generator: \"palette\"; options: PaletteOptions })\n | (AssetBaseInput & { generator: \"palette-reel\"; options: PaletteReelOptions })\n | (AssetBaseInput & { generator: \"image\"; options: ImageOptions });\n\nexport interface ShowcaseUserConfig {\n settings?: ShowcaseSettingsInput;\n assets: AssetSpecInput[];\n}\n\n/** Identity helper that gives `pro-visu.config.ts` full type-checking + autocomplete. */\nexport function defineConfig(config: ShowcaseUserConfig): ShowcaseUserConfig {\n return config;\n}\n"],"mappings":";AAiHO,SAAS,aAAa,QAAgD;AAC3E,SAAO;AACT;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.block{display:block}.hidden{display:none}.flex{display:flex}.flex-grow,.grow{flex-grow:1}.transform,[transform=""]{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.px,[px=""]{padding-left:1rem;padding-right:1rem}.text-accent,[text~=accent]{color:var(--sp-accent)}.text-foreground,[text~=foreground]{color:var(--sp-foreground)}.text-muted,[text~=muted]{color:var(--sp-muted)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}
|