@glissade/cli 0.5.0-pre.2 → 0.5.0-pre.4

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/dist/cli.js CHANGED
@@ -44,7 +44,7 @@ const USAGE = `usage:
44
44
  gs dev <scene-module> [--record] [--port <n>]
45
45
  gs import <lottie.json> [--out <dir>] [--allow-degraded]
46
46
  gs narrate <scene-module|script.narration.json> [--provider <id>] [--align <id>] [--force]
47
- gs sfx <scene-module|script.sfx.json>
47
+ gs sfx <scene-module|script.sfx.json> [--verbose]
48
48
 
49
49
  render options:
50
50
  --out <path> output directory for a PNG sequence, or .mp4/.webm (needs ffmpeg). default: ./out
@@ -105,6 +105,10 @@ async function main() {
105
105
  try {
106
106
  const result = prepareSfx(sfxScriptPathFor(modulePath));
107
107
  process.stderr.write(`gs sfx: ${result.clipCount} ${result.clipCount === 1 ? "hit" : "hits"}, ${result.voices.length} ${result.voices.length === 1 ? "voice" : "voices"} rendered → ${result.timingPath}\n`);
108
+ if (flags.has("verbose")) for (const c of result.clips) {
109
+ const extra = [c.gain !== void 0 ? `gain ${c.gain.toFixed(2)}` : null, c.playbackRate !== void 0 ? `rate ${c.playbackRate.toFixed(3)}` : null].filter(Boolean);
110
+ process.stderr.write(` ${c.at.toFixed(3)}s ${c.voice}${extra.length ? ` (${extra.join(", ")})` : ""}\n`);
111
+ }
108
112
  } catch (err) {
109
113
  fail(err instanceof Error ? err.message : String(err));
110
114
  }
package/dist/sfx.js CHANGED
@@ -91,7 +91,8 @@ function prepareSfx(scriptPath) {
91
91
  timingPath,
92
92
  cacheDir,
93
93
  voices: Object.keys(assets),
94
- clipCount: timedClips.length
94
+ clipCount: timedClips.length,
95
+ clips: timedClips
95
96
  };
96
97
  }
97
98
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/cli",
3
- "version": "0.5.0-pre.2",
3
+ "version": "0.5.0-pre.4",
4
4
  "description": "glissade CLI: headless rendering via backend-skia (+ FFmpeg mux).",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -20,14 +20,14 @@
20
20
  "@napi-rs/canvas": "^0.1.65",
21
21
  "esbuild": "^0.28.0",
22
22
  "jiti": "^2.4.2",
23
- "@glissade/backend-skia": "0.5.0-pre.2",
24
- "@glissade/core": "0.5.0-pre.2",
25
- "@glissade/interact": "0.5.0-pre.2",
26
- "@glissade/lottie": "0.5.0-pre.2",
27
- "@glissade/narrate": "0.5.0-pre.2",
28
- "@glissade/player": "0.5.0-pre.2",
29
- "@glissade/scene": "0.5.0-pre.2",
30
- "@glissade/sfx": "0.5.0-pre.2"
23
+ "@glissade/backend-skia": "0.5.0-pre.4",
24
+ "@glissade/core": "0.5.0-pre.4",
25
+ "@glissade/interact": "0.5.0-pre.4",
26
+ "@glissade/lottie": "0.5.0-pre.4",
27
+ "@glissade/narrate": "0.5.0-pre.4",
28
+ "@glissade/player": "0.5.0-pre.4",
29
+ "@glissade/scene": "0.5.0-pre.4",
30
+ "@glissade/sfx": "0.5.0-pre.4"
31
31
  },
32
32
  "repository": {
33
33
  "type": "git",