accelr8 3.7.0 → 3.7.1
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/chunks/{app-LK4ZWGHW.js → app-EOVXVIEE.js} +9 -9
- package/dist/chunks/{chunk-5BI2REGA.js → chunk-P3CEHEKI.js} +1 -1
- package/dist/chunks/{client-DSPPLOJJ.js → client-OIVTEENE.js} +1 -1
- package/dist/chunks/{server-RZ7GYEFD.js → server-NZ5JUOCF.js} +1 -1
- package/dist/cli.js +4 -4
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-HY6ULYGH.js";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SERVER
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P3CEHEKI.js";
|
|
10
10
|
|
|
11
11
|
// src/radio/app.ts
|
|
12
12
|
import tk from "terminal-kit";
|
|
@@ -139,20 +139,20 @@ var Showrunner = class {
|
|
|
139
139
|
const vizHold = opts?.vizHold ?? DEFAULT_VIZ_HOLD;
|
|
140
140
|
const fade = opts?.fade ?? FADE;
|
|
141
141
|
this.fade = fade;
|
|
142
|
+
const VIZ_SLOTS = opts?.vizSlots ?? 60;
|
|
143
|
+
const BUMP_EVERY = opts?.bumpEvery ?? 6;
|
|
144
|
+
const VIG_EVERY = opts?.vigEvery ?? 30;
|
|
142
145
|
const viz = scenes.filter((s) => s.kind === "visualizer");
|
|
143
146
|
const bumps = scenes.filter((s) => s.kind === "bump");
|
|
144
147
|
const vig = scenes.filter((s) => s.kind === "vignette");
|
|
145
148
|
const push = (s) => this.seq.push({ scene: s, hold: Math.max(fade * 2, s.durationMs ?? vizHold) });
|
|
146
149
|
if (viz.length) {
|
|
147
|
-
let
|
|
148
|
-
for (let
|
|
149
|
-
push(viz[
|
|
150
|
-
|
|
151
|
-
if (
|
|
152
|
-
if (count % 6 === 0 && vig.length) push(vig[vgi++ % vig.length]);
|
|
150
|
+
let vi = 0, bi = 0, vgi = 0;
|
|
151
|
+
for (let n = 1; n <= VIZ_SLOTS; n++) {
|
|
152
|
+
push(viz[vi++ % viz.length]);
|
|
153
|
+
if (vig.length && n % VIG_EVERY === 0) push(vig[vgi++ % vig.length]);
|
|
154
|
+
else if (bumps.length && n % BUMP_EVERY === 0) push(bumps[bi++ % bumps.length]);
|
|
153
155
|
}
|
|
154
|
-
while (bi < bumps.length) push(bumps[bi++]);
|
|
155
|
-
while (vgi < vig.length) push(vig[vgi++]);
|
|
156
156
|
} else {
|
|
157
157
|
for (const s of scenes) push(s);
|
|
158
158
|
}
|
package/dist/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
DEFAULT_SERVER,
|
|
4
4
|
PORT,
|
|
5
5
|
VERSION
|
|
6
|
-
} from "./chunks/chunk-
|
|
6
|
+
} from "./chunks/chunk-P3CEHEKI.js";
|
|
7
7
|
|
|
8
8
|
// src/cli.ts
|
|
9
9
|
var HELP = `
|
|
@@ -53,7 +53,7 @@ async function main() {
|
|
|
53
53
|
console.error(`invalid port: ${argVal(args, "--port")}`);
|
|
54
54
|
process.exit(1);
|
|
55
55
|
}
|
|
56
|
-
const { runServer } = await import("./chunks/server-
|
|
56
|
+
const { runServer } = await import("./chunks/server-NZ5JUOCF.js");
|
|
57
57
|
runServer(port);
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
@@ -67,7 +67,7 @@ async function main() {
|
|
|
67
67
|
console.error("accelr8 radio needs an interactive terminal (TTY).");
|
|
68
68
|
process.exit(1);
|
|
69
69
|
}
|
|
70
|
-
const { runRadio } = await import("./chunks/app-
|
|
70
|
+
const { runRadio } = await import("./chunks/app-EOVXVIEE.js");
|
|
71
71
|
runRadio({
|
|
72
72
|
name: argVal(args, "--name"),
|
|
73
73
|
server: argVal(args, "--server"),
|
|
@@ -90,7 +90,7 @@ async function main() {
|
|
|
90
90
|
const { cachedUpdate, refreshUpdateCache } = await import("./chunks/update-UEPNGB6Y.js");
|
|
91
91
|
refreshUpdateCache();
|
|
92
92
|
const update = cachedUpdate(VERSION);
|
|
93
|
-
const { runClient } = await import("./chunks/client-
|
|
93
|
+
const { runClient } = await import("./chunks/client-OIVTEENE.js");
|
|
94
94
|
runClient({
|
|
95
95
|
name: argVal(args, "--name"),
|
|
96
96
|
server: argVal(args, "--server"),
|