sovkora 0.0.0-stage → 1.1.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.
Files changed (98) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +9 -0
  3. package/README.md +67 -2
  4. package/dist/commands/agent.command.js +267 -0
  5. package/dist/commands/chat.command.js +214 -0
  6. package/dist/commands/chat.handlers.js +150 -0
  7. package/dist/commands/chat.types.js +44 -0
  8. package/dist/commands/cinema.command.js +643 -0
  9. package/dist/commands/config.command.js +228 -0
  10. package/dist/commands/db.command.js +114 -0
  11. package/dist/commands/demo.command.js +55 -0
  12. package/dist/commands/dev.command.js +462 -0
  13. package/dist/commands/docs.command.js +135 -0
  14. package/dist/commands/doctor.command.js +119 -0
  15. package/dist/commands/forgot.command.js +57 -0
  16. package/dist/commands/generate.command.js +376 -0
  17. package/dist/commands/graph.command.js +54 -0
  18. package/dist/commands/init.command.js +380 -0
  19. package/dist/commands/init.steps.js +115 -0
  20. package/dist/commands/install.command.js +459 -0
  21. package/dist/commands/login.command.js +110 -0
  22. package/dist/commands/logs.command.js +215 -0
  23. package/dist/commands/logs.steps.js +130 -0
  24. package/dist/commands/mcp.command.js +104 -0
  25. package/dist/commands/models.command.js +164 -0
  26. package/dist/commands/onboard.command.js +236 -0
  27. package/dist/commands/pack.command.js +255 -0
  28. package/dist/commands/profile.command.js +51 -0
  29. package/dist/commands/recover.command.js +489 -0
  30. package/dist/commands/register.command.js +94 -0
  31. package/dist/commands/release.command.js +99 -0
  32. package/dist/commands/reset.command.js +79 -0
  33. package/dist/commands/runs.command.js +201 -0
  34. package/dist/commands/settings.command.js +85 -0
  35. package/dist/commands/start.command.js +590 -0
  36. package/dist/commands/status.command.js +167 -0
  37. package/dist/commands/stop.command.js +313 -0
  38. package/dist/commands/studio.command.js +266 -0
  39. package/dist/commands/test.command.js +134 -0
  40. package/dist/commands/verify.command.js +52 -0
  41. package/dist/commands/video.command.js +73 -0
  42. package/dist/commands/workspace-guard.js +72 -0
  43. package/dist/index.js +207 -0
  44. package/dist/renderers.js +250 -0
  45. package/dist/services/api-client.js +150 -0
  46. package/dist/services/auth.api.js +87 -0
  47. package/dist/services/chat.api.js +117 -0
  48. package/dist/services/cinema-estimate.json +42 -0
  49. package/dist/services/cinema.childsafe.js +52 -0
  50. package/dist/services/cinema.director.js +285 -0
  51. package/dist/services/cinema.production.js +417 -0
  52. package/dist/services/cinema.staging.js +323 -0
  53. package/dist/services/cinema.story.js +758 -0
  54. package/dist/services/cinema.treatment.js +393 -0
  55. package/dist/services/composer.run.js +94 -0
  56. package/dist/services/demo/demo.documents.js +108 -0
  57. package/dist/services/demo/demo.guard.js +49 -0
  58. package/dist/services/demo/demo.persona.js +114 -0
  59. package/dist/services/demo/demo.seed.js +281 -0
  60. package/dist/services/diagnostics.js +327 -0
  61. package/dist/services/image-model-recipes.json +93 -0
  62. package/dist/services/image-models.js +152 -0
  63. package/dist/services/local-store.js +145 -0
  64. package/dist/services/mcp.api.js +38 -0
  65. package/dist/services/model-catalog.js +70 -0
  66. package/dist/services/notify.js +55 -0
  67. package/dist/services/pack.api.js +23 -0
  68. package/dist/services/pack.bundle.js +241 -0
  69. package/dist/services/pack.sources.js +101 -0
  70. package/dist/services/release-manifest.js +266 -0
  71. package/dist/services/runs.view.js +80 -0
  72. package/dist/services/runs.wait.js +38 -0
  73. package/dist/services/semver.js +55 -0
  74. package/dist/services/settings.api.js +108 -0
  75. package/dist/services/string-utils.js +70 -0
  76. package/dist/services/studio.api.js +120 -0
  77. package/dist/services/templates.js +893 -0
  78. package/dist/services/tool-installer.js +353 -0
  79. package/dist/services/tool-path.js +72 -0
  80. package/dist/services/version-manager.js +253 -0
  81. package/dist/services/workspace-bootstrap.js +68 -0
  82. package/dist/threads.js +202 -0
  83. package/dist/types/api.types.js +6 -0
  84. package/dist/types/local.types.js +6 -0
  85. package/dist/ui/box.js +46 -0
  86. package/dist/ui/logger.js +28 -0
  87. package/dist/ui/platform.js +32 -0
  88. package/dist/ui/prompts.js +130 -0
  89. package/dist/ui/table.js +33 -0
  90. package/dist/utils/config.js +150 -0
  91. package/dist/utils/development-status.js +22 -0
  92. package/dist/utils/endpoints.js +41 -0
  93. package/dist/utils/health.js +94 -0
  94. package/dist/utils/pid.js +83 -0
  95. package/dist/utils/platform.js +358 -0
  96. package/dist/utils/process.js +139 -0
  97. package/dist/utils/state-dir.js +105 -0
  98. package/package.json +95 -4
@@ -0,0 +1,323 @@
1
+ "use strict";
2
+ /**
3
+ * @file cinema.staging.ts
4
+ * @description The v3 gates of a cinematic short (orazaka#289, ADR-080 v3): what a frame-by-frame audit of « le relais »
5
+ * and « la première livraison » found wrong, each turned into a check.
6
+ *
7
+ * | Anomaly found | Where it is caught |
8
+ * | --- | --- |
9
+ * | birds without a contact shadow, shadow blobs floating in the air | `grounded`, `floatingShadow` questions |
10
+ * | shadows against the light | the plate states its hard key (`light`); shadows cast from it by construction |
11
+ * | birds floating beside the surface they should stand on | `staging[].support` + `surface` (placed on it), `floating` |
12
+ * | wrong scale against the set | `staging[].scale` (a reference object and a ratio), `scaleFinding` |
13
+ * | cut-out edges, flat cel birds pasted on photographs | the keyframe re-rendered in the plate's light; `onModel` |
14
+ * | colour and light that do not match the plate | measured `lumaRatio` / `chromaShift` (recorded) |
15
+ * | locked-off framings | `camera` vocabulary, `static` share in the cut, measured `cameraShift` / `zoom` on the take |
16
+ * | motion that slides like a sticker | `sliding` question over four frames of the take |
17
+ * | props and costumes that change between shots | `continuity` question over two shots that share a prop |
18
+ * | birds that drift off their design in a take | `onModel` question against the character's render |
19
+ * | a light burst that whites the frame out | measured `clippedSeconds` |
20
+ *
21
+ * And the brief of v3 (no narrator, music-video energy): `critiqueCut` refuses a narrator where the film has none, a cut
22
+ * off the tempo, slow cutting, monotonous camera moves and a film without low angles or macro inserts.
23
+ *
24
+ * Pure: the caller (krizaka-ui tools/brand-films/v3/integrity.py) runs the vision model and measures the frames.
25
+ */
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.FRAME_CHECK_MODEL = exports.FRAME_QUESTIONS = exports.StagingError = exports.MAX_CLIPPED_SECONDS = exports.MAX_CHROMA_SHIFT = exports.LUMA_RATIO = exports.MIN_ZOOM = exports.MIN_CAMERA_SHIFT = exports.SCALE_TOLERANCE = exports.MIN_LOW_OR_MACRO = exports.MIN_CAMERA_KINDS = exports.MAX_MEAN_SHOT_SECONDS = exports.MAX_STATIC_SHARE = exports.SUPPORTS = exports.KEYS = exports.ANGLES = exports.CAMERA_MOVES = void 0;
28
+ exports.parseStaging = parseStaging;
29
+ exports.critiqueCut = critiqueCut;
30
+ exports.parseYesNo = parseYesNo;
31
+ exports.questionsFor = questionsFor;
32
+ exports.frameGate = frameGate;
33
+ exports.scaleFinding = scaleFinding;
34
+ exports.measuredFindings = measuredFindings;
35
+ /** Camera moves a shot may name. `locked` is the only static one: a choice, rationed by `MAX_STATIC_SHARE`. */
36
+ exports.CAMERA_MOVES = [
37
+ "handheld",
38
+ "whip-pan",
39
+ "dolly-in",
40
+ "dolly-out",
41
+ "tracking",
42
+ "orbit",
43
+ "crane-up",
44
+ "fpv",
45
+ "crane-down",
46
+ "push-in",
47
+ "pull-back",
48
+ "tilt-up",
49
+ "tilt-down",
50
+ "snap-zoom",
51
+ "locked",
52
+ ];
53
+ exports.ANGLES = ["low", "eye", "high", "overhead", "macro", "dutch"];
54
+ /** Where a key light comes from, as a plate prompt says it (« hard key light from the left »). */
55
+ exports.KEYS = ["left", "right", "back-left", "back-right", "back", "front", "top"];
56
+ /** How a character is held up in a shot: standing on a surface, flying, or carried by another. */
57
+ exports.SUPPORTS = ["ground", "air", "held"];
58
+ /** At most this share of a film's shots may be locked off (« static framings », the v2 audit). */
59
+ // @fixed: the brief's « dynamic » made a number; a craft rule of the pack, not a business parameter.
60
+ exports.MAX_STATIC_SHARE = 0.15;
61
+ /** The mean screen time of a shot (music-video cutting). */
62
+ // @fixed: a craft rule of the pack.
63
+ exports.MAX_MEAN_SHOT_SECONDS = 2.2;
64
+ /** At least this many kinds of camera move in a film. */
65
+ // @fixed: a craft rule of the pack.
66
+ exports.MIN_CAMERA_KINDS = 5;
67
+ /** At least this many low-angle or macro shots in a film. */
68
+ // @fixed: a craft rule of the pack.
69
+ exports.MIN_LOW_OR_MACRO = 3;
70
+ /** A character's height against its reference may be off by this factor at most (0.7–1.43 of the asked ratio). */
71
+ // @fixed: the tolerance of a placement measured on a generated frame.
72
+ exports.SCALE_TOLERANCE = 1.43;
73
+ /** A moving shot whose camera moves less than this share of the frame width per frame, and zooms less than MIN_ZOOM, is static. */
74
+ // @fixed: a threshold of the motion measure, a technical fact.
75
+ exports.MIN_CAMERA_SHIFT = 0.0015;
76
+ // @fixed: a threshold of the motion measure, a technical fact.
77
+ exports.MIN_ZOOM = 0.01;
78
+ /** The character's mean luminance against the plate around it: outside this range it does not belong to its light. */
79
+ // @fixed: a threshold of the light measure.
80
+ exports.LUMA_RATIO = [0.55, 1.6];
81
+ /** Mean chroma distance (CIELAB a*b*) between the character's light and the plate's beyond which they differ. */
82
+ // @fixed: a threshold of the colour measure.
83
+ exports.MAX_CHROMA_SHIFT = 15;
84
+ /** Seconds of a take whited out (more than a third of the frame clipped) beyond which the burst hides the picture. */
85
+ // @fixed: a threshold of the exposure measure.
86
+ exports.MAX_CLIPPED_SECONDS = 0.3;
87
+ class StagingError extends Error {
88
+ }
89
+ exports.StagingError = StagingError;
90
+ const str = (v) => (typeof v === "string" ? v.trim() : "");
91
+ const list = (v) => (Array.isArray(v) ? v : []);
92
+ function oneOf(value, allowed, what) {
93
+ if (!allowed.includes(String(value)))
94
+ throw new StagingError(`${what} '${String(value)}' is not one of ${allowed.join(", ")}`);
95
+ return value;
96
+ }
97
+ /**
98
+ * The staging of a v3 treatment, read once: every character a shot shows stands on a named surface with a scale
99
+ * reference, flies, or is held; the camera names a move and an angle; the light names its key. Refused by name otherwise.
100
+ */
101
+ function parseStaging(raw) {
102
+ const score = (raw.score ?? {});
103
+ const bpm = Number(score.bpm);
104
+ if (Number.isNaN(bpm) || bpm <= 0)
105
+ throw new StagingError("the film's score names its tempo (score.bpm)");
106
+ const beat = 60 / bpm;
107
+ const shots = list(raw.shots).map((s, i) => {
108
+ const id = i + 1;
109
+ const where = `shot ${id}`;
110
+ const beats = Number(s.beats);
111
+ if (Number.isNaN(beats) || beats <= 0)
112
+ throw new StagingError(`${where}: its length is a number of beats (beats)`);
113
+ const characters = list(s.characters).map(String);
114
+ const staging = list(s.staging).map((g, k) => {
115
+ const character = str(g.character);
116
+ const support = oneOf(g.support, exports.SUPPORTS, `${where}: staging[${k}].support`);
117
+ if (support === "ground") {
118
+ if (!str(g.surface))
119
+ throw new StagingError(`${where}: ${character} stands on the ground but names no surface`);
120
+ const sc = g.scale;
121
+ if (!sc || !str(sc.ref) || Number.isNaN(Number(sc.ratio)) || Number(sc.ratio) <= 0)
122
+ throw new StagingError(`${where}: ${character} stands on the ground but has no scale reference (scale.ref, scale.ratio)`);
123
+ return { character, support, surface: str(g.surface), scale: { ref: str(sc.ref), ratio: Number(sc.ratio) } };
124
+ }
125
+ return { character, support };
126
+ });
127
+ for (const c of characters) {
128
+ if (!staging.some((g) => g.character === c))
129
+ throw new StagingError(`${where}: ${c} is in the shot but not staged (ground, air or held)`);
130
+ }
131
+ const light = (s.light ?? {});
132
+ return {
133
+ id,
134
+ slug: str(s.slug) || `shot-${id}`,
135
+ beats,
136
+ seconds: beats * beat,
137
+ characters,
138
+ camera: oneOf(s.camera, exports.CAMERA_MOVES, `${where}: camera`),
139
+ angle: oneOf(s.angle ?? "eye", exports.ANGLES, `${where}: angle`),
140
+ light: { key: oneOf(light.key, exports.KEYS, `${where}: light.key`), hard: light.hard !== false },
141
+ plate: str(s.plate),
142
+ staging,
143
+ props: list(s.props).map(String),
144
+ };
145
+ });
146
+ return {
147
+ narration: raw.narration === "narrator" ? "narrator" : "none",
148
+ lines: list(raw.lines).length,
149
+ bpm,
150
+ shots,
151
+ };
152
+ }
153
+ /** The words a plate prompt uses to say where its key light comes from. */
154
+ const KEY_WORDS = {
155
+ left: /\b(from|on) the left\b/i,
156
+ right: /\b(from|on) the right\b/i,
157
+ "back-left": /\b(behind|back)[ -]?left\b|\bfrom (the )?back left\b/i,
158
+ "back-right": /\b(behind|back)[ -]?right\b|\bfrom (the )?back right\b/i,
159
+ back: /\b(backlit|from behind|behind the subject|contre-jour)\b/i,
160
+ front: /\b(from the front|from the camera|frontal)\b/i,
161
+ top: /\b(from above|overhead|top light)\b/i,
162
+ };
163
+ /** The cut of a v3 film (pure): no narrator where there is none, music-video pace, kinetic camera, lights that agree. */
164
+ function critiqueCut(film) {
165
+ const findings = [];
166
+ if (film.narration === "none" && film.lines > 0) {
167
+ findings.push({
168
+ rule: "narrator",
169
+ message: `${film.lines} narrator line(s) in a film told without a narrator: tell it with picture, action and sound`,
170
+ });
171
+ }
172
+ const n = Math.max(1, film.shots.length);
173
+ const mean = film.shots.reduce((a, s) => a + s.seconds, 0) / n;
174
+ if (mean > exports.MAX_MEAN_SHOT_SECONDS)
175
+ findings.push({
176
+ rule: "pace",
177
+ message: `the mean shot lasts ${mean.toFixed(2)} s (at most ${exports.MAX_MEAN_SHOT_SECONDS} s)`,
178
+ });
179
+ const locked = film.shots.filter((s) => s.camera === "locked").length;
180
+ if (locked / n > exports.MAX_STATIC_SHARE)
181
+ findings.push({
182
+ rule: "static",
183
+ message: `${locked} of ${film.shots.length} shots are locked off (at most ${Math.round(exports.MAX_STATIC_SHARE * 100)} %)`,
184
+ });
185
+ const kinds = new Set(film.shots.map((s) => s.camera).filter((c) => c !== "locked"));
186
+ if (kinds.size < exports.MIN_CAMERA_KINDS)
187
+ findings.push({ rule: "camera", message: `${kinds.size} kind(s) of camera move (at least ${exports.MIN_CAMERA_KINDS})` });
188
+ const lowOrMacro = film.shots.filter((s) => s.angle === "low" || s.angle === "macro").length;
189
+ if (lowOrMacro < exports.MIN_LOW_OR_MACRO)
190
+ findings.push({
191
+ rule: "angle",
192
+ message: `${lowOrMacro} low-angle or macro shot(s) (at least ${exports.MIN_LOW_OR_MACRO})`,
193
+ });
194
+ for (const s of film.shots) {
195
+ if (s.light.hard && s.plate && !KEY_WORDS[s.light.key].test(s.plate)) {
196
+ findings.push({
197
+ rule: "light",
198
+ shot: s.id,
199
+ message: `the plate does not say its hard key comes ${s.light.key === "top" ? "from above" : "from the " + s.light.key}: the composite's shadows would not know where to fall`,
200
+ });
201
+ }
202
+ }
203
+ return { findings, pass: findings.length === 0 };
204
+ }
205
+ /**
206
+ * Calibrated on nine frames (six v2 frames with the anomalies, three v3 keyframes), Qwen2.5-VL 7B on MLX:
207
+ * - `grounded` (a shadow under the feet) catches 4 of 6 bad frames and passes the 3 good ones; `floating` adds the
208
+ * owl hovering in front of its sill; together 5 of 6 (krizaka-ui tools/brand-films/v3/calibration.json).
209
+ * - `floatingShadow` flags a blob in the air but also read a wet reflection as one: asked only where no character
210
+ * stands on a surface (a flying shot, v2's ellipses in the air).
211
+ * - `onModel` (nine pairs: five v3 characters against their own render, four against another bird's) answers right on
212
+ * all nine once it says a flat drawing is compared with a 3D render; asked only « the same design », it refused three
213
+ * of the five right characters for their 3D look.
214
+ * - Dropped: « do the shadows fall in the same direction » answered NO on all nine; « does it look pasted » answered
215
+ * YES on all three good keyframes (a cartoon character is « pasted » to it). Shadows fall from the treatment's key by
216
+ * construction (krizaka-ui stage.cast_shadow) and a person reviews them.
217
+ *
218
+ * The questions, each with the answer that passes. `{character}`, `{surface}` and `{prop}` are filled per shot. A frame
219
+ * passes a check only on a clear expected word: anything else (the other word, a hedge) fails it.
220
+ */
221
+ exports.FRAME_QUESTIONS = {
222
+ grounded: {
223
+ ask: "Does {character} cast a shadow on {surface} right under its feet? Answer YES or NO only.",
224
+ pass: "YES",
225
+ },
226
+ floating: {
227
+ ask: "Is {character} floating in the air above or beside {surface} instead of standing on it? Answer YES or NO only.",
228
+ pass: "NO",
229
+ },
230
+ floatingShadow: {
231
+ ask: "Is there a dark shadow shape floating in the air in this image, not lying on any surface? Answer YES or NO only.",
232
+ pass: "NO",
233
+ },
234
+ onModel: {
235
+ ask: "The first image is a flat reference drawing of a cartoon character; the second image shows a character rendered in 3D. Is it the same character: the same kind of bird or animal, the same main colours and the same distinctive features (a visor, glasses, a crest, ear tufts, a long neck)? Differences of drawing style, pose and lighting do not matter. Answer YES or NO only.",
236
+ pass: "YES",
237
+ },
238
+ continuity: {
239
+ ask: "Is {prop} in the first image the same object as in the second image: the same shape, colour and size? Answer YES or NO only.",
240
+ pass: "YES",
241
+ },
242
+ sliding: {
243
+ ask: "These are four frames of one shot, in order. Does any character slide across the ground without stepping, float above the ground, or move like a flat cutout pasted on the picture? Answer YES or NO only.",
244
+ pass: "NO",
245
+ },
246
+ };
247
+ /** The vision model the questions were written for (Apache-2.0, local on MLX). */
248
+ exports.FRAME_CHECK_MODEL = "Qwen2.5-VL-7B-Instruct";
249
+ /** Reads an answer strictly: true only when it starts with the expected word and nothing hedges it. */
250
+ function parseYesNo(raw, expected) {
251
+ const text = raw.trim().toUpperCase();
252
+ const word = text.match(/^(YES|NO)\b/)?.[1];
253
+ if (word !== expected)
254
+ return false;
255
+ return !/\bBUT\b|\bHOWEVER\b|\bPARTLY\b/.test(text);
256
+ }
257
+ const fill = (template, values) => template.replace(/\{(\w+)\}/g, (_, k) => values[k] ?? k);
258
+ /**
259
+ * The keyframe questions of a shot: each grounded character is asked whether it touches its surface; every character shot
260
+ * is asked about floating shadows and pasted characters, and — under a hard key — about the direction of its shadows.
261
+ */
262
+ function questionsFor(shot, described) {
263
+ if (shot.staging.length === 0)
264
+ return [];
265
+ const q = (check, values = {}) => ({
266
+ check,
267
+ question: fill(exports.FRAME_QUESTIONS[check].ask, values),
268
+ pass: exports.FRAME_QUESTIONS[check].pass,
269
+ });
270
+ const out = [];
271
+ for (const g of shot.staging) {
272
+ if (g.support !== "ground")
273
+ continue;
274
+ const values = { character: described[g.character] ?? `the ${g.character}`, surface: g.surface ?? "the ground" };
275
+ out.push(q("grounded", values), q("floating", values));
276
+ }
277
+ if (!shot.staging.some((g) => g.support === "ground"))
278
+ out.push(q("floatingShadow"));
279
+ return out;
280
+ }
281
+ /** The gate: a file with one failed check is rejected; the film passes only when nothing is rejected and a person reviewed. */
282
+ function frameGate(results, review) {
283
+ const rejected = [...new Set(results.filter((r) => !r.pass).map((r) => r.file))].sort((a, b) => a.localeCompare(b));
284
+ const reviewed = Boolean(review?.by && review?.at);
285
+ return { pass: results.length > 0 && rejected.length === 0 && reviewed, rejected, reviewed };
286
+ }
287
+ // ── Measured checks ─────────────────────────────────────────────────────────────────────────────────────────────────
288
+ /** Scale: the measured height of a character (pixels) against its reference object's, compared with the asked ratio. */
289
+ function scaleFinding(heights, ratio) {
290
+ const measured = heights.character / Math.max(1, heights.ref);
291
+ const factor = measured / ratio;
292
+ if (factor <= exports.SCALE_TOLERANCE && factor >= 1 / exports.SCALE_TOLERANCE)
293
+ return undefined;
294
+ return `the character is ${factor.toFixed(1)}× the asked size against its reference (measured ${measured.toFixed(2)}, asked ${ratio})`;
295
+ }
296
+ /** What the measures say is wrong with a take or a keyframe (pure). */
297
+ function measuredFindings(shot, m) {
298
+ const out = [];
299
+ if (shot.camera !== "locked" && m.cameraShift !== undefined) {
300
+ if (m.cameraShift < exports.MIN_CAMERA_SHIFT && (m.zoom ?? 0) < exports.MIN_ZOOM) {
301
+ out.push({
302
+ check: "static",
303
+ message: `the shot asks for « ${shot.camera} » but the camera does not move (shift ${m.cameraShift.toFixed(4)}, zoom ${(m.zoom ?? 0).toFixed(3)})`,
304
+ });
305
+ }
306
+ }
307
+ if (m.lumaRatio !== undefined && (m.lumaRatio < exports.LUMA_RATIO[0] || m.lumaRatio > exports.LUMA_RATIO[1])) {
308
+ out.push({
309
+ check: "colour",
310
+ message: `the character is ${m.lumaRatio.toFixed(2)}× as bright as the plate around it`,
311
+ });
312
+ }
313
+ if (m.chromaShift !== undefined && m.chromaShift > exports.MAX_CHROMA_SHIFT) {
314
+ out.push({
315
+ check: "colour",
316
+ message: `the character's light differs in colour from the plate's (Δab ${m.chromaShift.toFixed(1)})`,
317
+ });
318
+ }
319
+ if (m.clippedSeconds !== undefined && m.clippedSeconds > exports.MAX_CLIPPED_SECONDS) {
320
+ out.push({ check: "whiteout", message: `${m.clippedSeconds.toFixed(2)} s of the take are whited out` });
321
+ }
322
+ return out;
323
+ }