@cueframe/kernel 0.2.39 → 0.2.41

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.
@@ -7,7 +7,10 @@ export declare function componentRuntimeError(error: unknown, fallbackCode: Runt
7
7
  * Page diagnostics for one bake. Remotion renders on up to four pages at once,
8
8
  * so one TypeError in the author's code arrives up to four times; joined
9
9
  * verbatim it read as "×3" and sent a reporter bisecting three components for
10
- * a defect in one. Identical text is one entry.
10
+ * a defect in one. A diagnostic's identity is its first line (the exception's
11
+ * own `Name: message`); the stack of the first occurrence is kept as its
12
+ * localisation. Stacks from concurrent pages differ in frames that carry no
13
+ * information (`at async Promise.all (index N)`), so byte-identity is not it.
11
14
  */
12
15
  export declare function pageDiagnosticSink(limit?: number): {
13
16
  push(entry: {
@@ -1 +1 @@
1
- {"version":3,"file":"renderDiagnostics.d.ts","sourceRoot":"","sources":["../src/renderDiagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmE,qBAAqB,EAA6B,KAAK,uCAAuC,IAAI,4BAA4B,EAAE,KAAK,yBAAyB,EAAE,KAAK,8BAA8B,EAAE,KAAK,yBAAyB,IAAI,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE1V,eAAO,MAAM,2BAA2B,8BAA8B,CAAC;AACvE,eAAO,MAAM,sCAAsC,oCAAoC,CAAC;AACxF,eAAO,MAAM,4BAA4B,qCAAqC,CAAC;AAE/E,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,EACd,YAAY,EAAE,gBAAgB,EAC9B,SAAS,UAAQ,GAChB,qBAAqB,CAiBvB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,SAAI,GAAG;IAC7C,IAAI,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACrD,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAA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AAQ,EAAE,8BAA8B;sBAGpD;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;eAiB9B,yBAAyB;EAUvC"}
@@ -42,6 +42,26 @@ export declare const CO_BATCHED_CALLERS = 4;
42
42
  export declare const MAX_STILL_BEATS_PER_BATCH = 18;
43
43
  /** Seconds the harness needs for `beats` stills in one run. */
44
44
  export declare function stillBudgetSeconds(beats: number): number;
45
+ /**
46
+ * Requests of at most this many stills share one worker run with up to
47
+ * CO_BATCHED_CALLERS others: the in-loop lanes' singleton captures and their
48
+ * bursts, where one browser launch amortized over four tiny requests is the
49
+ * point. A larger request gets a container of its own — a full batch already
50
+ * amortizes its browser over its own stills, and co-batching four of them
51
+ * serialized 72 stills through one container for 8.5 minutes while three
52
+ * containers sat idle (CUE-39). `STILL_COBATCH_MAX_BEATS` on the worker.
53
+ */
54
+ export declare const STILL_COBATCH_MAX_BEATS = 3;
55
+ /** Still worker cold start (Chromium + Remotion), measured ~126s on 2026-07-19. */
56
+ export declare const STILL_WORKER_COLD_START_S = 150;
57
+ /**
58
+ * The longest a caller waits for `beats` stills: a cold worker plus the budget
59
+ * of the run the request lands in. A small request may share its run with
60
+ * CO_BATCHED_CALLERS - 1 others; a large one runs alone. This is the number a
61
+ * phase may promise; the harness budget alone omits the boot and was exceeded
62
+ * on every cold start.
63
+ */
64
+ export declare function stillCaptureWaitSeconds(beats: number): number;
45
65
  export declare const PreviewFrameRequest: z.ZodObject<{
46
66
  composition: z.ZodOptional<z.ZodUnknown>;
47
67
  compositionId: z.ZodOptional<z.ZodString>;
@@ -279,10 +279,13 @@ function componentRuntimeError(error, fallbackCode, retryable = false) {
279
279
  }
280
280
  function pageDiagnosticSink(limit = 5) {
281
281
  const lines = [];
282
+ const seen = /* @__PURE__ */ new Set();
282
283
  return {
283
284
  push(entry) {
284
- const line = `${entry.type}: ${entry.message.slice(0, 2e3)}`;
285
- if (lines.length < limit && !lines.includes(line)) lines.push(line);
285
+ const key = `${entry.type}: ${entry.message.split("\n", 1)[0]}`;
286
+ if (lines.length >= limit || seen.has(key)) return;
287
+ seen.add(key);
288
+ lines.push(`${entry.type}: ${entry.message.slice(0, 2e3)}`);
286
289
  },
287
290
  lines
288
291
  };
@@ -3,7 +3,7 @@ import {
3
3
  assertSceneShotParamsAdmitted,
4
4
  materializeComponentSource,
5
5
  renderComponentAlpha
6
- } from "./chunk-5JYYZDLK.js";
6
+ } from "./chunk-CJF3KBJ5.js";
7
7
  import {
8
8
  componentArtifactId,
9
9
  componentBundleId,
@@ -26,7 +26,7 @@ import {
26
26
  stagedBrowserLocator,
27
27
  verifyLocalStagedBrowser,
28
28
  vp9AlphaFfmpegOverride
29
- } from "../chunk-5JYYZDLK.js";
29
+ } from "../chunk-CJF3KBJ5.js";
30
30
  import "../chunk-WB2VFDQZ.js";
31
31
  import "../chunk-EXY4JJPH.js";
32
32
  import "../chunk-DAARYRNT.js";
@@ -7,7 +7,7 @@ import {
7
7
  sourceIdentityForBake,
8
8
  startComponentAssetServer,
9
9
  verifyComponentOutput
10
- } from "./chunk-26NRV5BK.js";
10
+ } from "./chunk-QHLCJ3PE.js";
11
11
  import {
12
12
  COMPONENT_MEDIA_HEADROOM,
13
13
  COMPONENT_MEDIA_TIERS,
@@ -52,7 +52,7 @@ import {
52
52
  stagedBrowserLocator,
53
53
  verifyLocalStagedBrowser,
54
54
  vp9AlphaFfmpegOverride
55
- } from "./chunk-5JYYZDLK.js";
55
+ } from "./chunk-CJF3KBJ5.js";
56
56
  import "./chunk-WB2VFDQZ.js";
57
57
  import {
58
58
  bundleIdentityFields,
package/dist/compose.js CHANGED
@@ -5,39 +5,39 @@ import {
5
5
  } from "./chunk-QDBVYZSF.js";
6
6
  import "./chunk-JQMPHKLU.js";
7
7
  import "./chunk-ZZRBKGDA.js";
8
- import {
9
- catalog as catalog4
10
- } from "./chunk-JRJQECCF.js";
11
- import {
12
- catalog as catalog7
13
- } from "./chunk-TE3PNQG6.js";
14
- import {
15
- catalog
16
- } from "./chunk-RBWS5XHE.js";
17
- import "./chunk-DLF4WVSE.js";
18
- import "./chunk-U4V4FZGE.js";
19
8
  import {
20
9
  catalog as catalog3
21
10
  } from "./chunk-FVDFPJHT.js";
22
- import "./chunk-QGAWDLYX.js";
23
11
  import {
24
12
  catalog as catalog6
25
13
  } from "./chunk-VLJOIUHL.js";
26
- import "./chunk-S5H6GH6M.js";
27
- import "./chunk-QAGGJHAF.js";
28
- import {
29
- catalog as catalog5
30
- } from "./chunk-RAXHCRVV.js";
31
14
  import {
32
15
  catalog as catalog2
33
16
  } from "./chunk-WAUVKF2F.js";
34
- import "./chunk-MFHXCHRI.js";
35
17
  import {
36
18
  catalog as catalog8
37
19
  } from "./chunk-RL5SO653.js";
20
+ import {
21
+ catalog as catalog4
22
+ } from "./chunk-JRJQECCF.js";
23
+ import {
24
+ catalog as catalog7
25
+ } from "./chunk-TE3PNQG6.js";
26
+ import "./chunk-QGAWDLYX.js";
27
+ import "./chunk-S5H6GH6M.js";
28
+ import "./chunk-QAGGJHAF.js";
29
+ import "./chunk-MFHXCHRI.js";
30
+ import {
31
+ catalog
32
+ } from "./chunk-RBWS5XHE.js";
33
+ import "./chunk-DLF4WVSE.js";
34
+ import "./chunk-U4V4FZGE.js";
38
35
  import "./chunk-LT4PWSR2.js";
39
36
  import "./chunk-FWSJLHSV.js";
40
37
  import "./chunk-ZFEXATWN.js";
38
+ import {
39
+ catalog as catalog5
40
+ } from "./chunk-RAXHCRVV.js";
41
41
  import "./chunk-XHGZ2E77.js";
42
42
  import "./chunk-W2245F6G.js";
43
43
  import "./chunk-JBWSK2YD.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  playableSpans
3
- } from "./chunk-UOYKFFFK.js";
3
+ } from "./chunk-L5XECASW.js";
4
4
  import "./chunk-QH3YI3ND.js";
5
5
  import "./chunk-QISFYLBB.js";
6
- import "./chunk-IYZEK6WY.js";
7
6
  import "./chunk-VZ7TYX6Z.js";
7
+ import "./chunk-IYZEK6WY.js";
8
8
  import "./chunk-DENF4TPI.js";
9
9
  import {
10
10
  createHeadlessStore,
@@ -66,15 +66,15 @@ import {
66
66
  sliceTranscriptWords,
67
67
  splitIntoSentences,
68
68
  validateComposition
69
- } from "../chunk-UOYKFFFK.js";
69
+ } from "../chunk-L5XECASW.js";
70
70
  import {
71
71
  buildEasedZooms,
72
72
  buildPannedCenters,
73
73
  easeOutCubic
74
74
  } from "../chunk-QH3YI3ND.js";
75
75
  import "../chunk-QISFYLBB.js";
76
- import "../chunk-IYZEK6WY.js";
77
76
  import "../chunk-VZ7TYX6Z.js";
77
+ import "../chunk-IYZEK6WY.js";
78
78
  import "../chunk-DENF4TPI.js";
79
79
  import "../chunk-KYRDKK2D.js";
80
80
  import "../chunk-WREYUH2E.js";
package/dist/core.js CHANGED
@@ -10,11 +10,11 @@ import {
10
10
  ensureEven,
11
11
  extractCaptionWordsFromDoc,
12
12
  isEmphasized
13
- } from "./chunk-UOYKFFFK.js";
13
+ } from "./chunk-L5XECASW.js";
14
14
  import "./chunk-QH3YI3ND.js";
15
15
  import "./chunk-QISFYLBB.js";
16
- import "./chunk-IYZEK6WY.js";
17
16
  import "./chunk-VZ7TYX6Z.js";
17
+ import "./chunk-IYZEK6WY.js";
18
18
  import "./chunk-DENF4TPI.js";
19
19
  import "./chunk-KYRDKK2D.js";
20
20
  import "./chunk-WREYUH2E.js";
@@ -10,6 +10,12 @@ var MAX_STILL_BEATS_PER_BATCH = 18;
10
10
  function stillBudgetSeconds(beats) {
11
11
  return STILL_BUDGET_BASE_S + STILL_BUDGET_PER_BEAT_S * beats;
12
12
  }
13
+ var STILL_COBATCH_MAX_BEATS = 3;
14
+ var STILL_WORKER_COLD_START_S = 150;
15
+ function stillCaptureWaitSeconds(beats) {
16
+ const run = beats > STILL_COBATCH_MAX_BEATS ? beats : STILL_COBATCH_MAX_BEATS * CO_BATCHED_CALLERS;
17
+ return STILL_WORKER_COLD_START_S + stillBudgetSeconds(run);
18
+ }
13
19
  var PreviewFrameRequest = z.object({
14
20
  composition: z.unknown().optional().describe(
15
21
  "The composition to render. Absent \u21D2 the project's ACTIVE composition \u2014 what create_render will encode. The response's `previewed.source` names what was rendered."
@@ -47,5 +53,8 @@ export {
47
53
  STILL_BUDGET_BASE_S,
48
54
  STILL_BUDGET_CEILING_S,
49
55
  STILL_BUDGET_PER_BEAT_S,
50
- stillBudgetSeconds
56
+ STILL_COBATCH_MAX_BEATS,
57
+ STILL_WORKER_COLD_START_S,
58
+ stillBudgetSeconds,
59
+ stillCaptureWaitSeconds
51
60
  };
@@ -1,36 +1,36 @@
1
- import {
2
- catalog as catalog4
3
- } from "./chunk-JRJQECCF.js";
4
- import {
5
- catalog as catalog7
6
- } from "./chunk-TE3PNQG6.js";
7
- import {
8
- catalog
9
- } from "./chunk-RBWS5XHE.js";
10
- import "./chunk-DLF4WVSE.js";
11
- import "./chunk-U4V4FZGE.js";
12
1
  import {
13
2
  catalog as catalog3
14
3
  } from "./chunk-FVDFPJHT.js";
15
- import "./chunk-QGAWDLYX.js";
16
4
  import {
17
5
  catalog as catalog6
18
6
  } from "./chunk-VLJOIUHL.js";
19
- import "./chunk-S5H6GH6M.js";
20
- import "./chunk-QAGGJHAF.js";
21
- import {
22
- catalog as catalog5
23
- } from "./chunk-RAXHCRVV.js";
24
7
  import {
25
8
  catalog as catalog2
26
9
  } from "./chunk-WAUVKF2F.js";
27
- import "./chunk-MFHXCHRI.js";
28
10
  import {
29
11
  catalog as catalog8
30
12
  } from "./chunk-RL5SO653.js";
13
+ import {
14
+ catalog as catalog4
15
+ } from "./chunk-JRJQECCF.js";
16
+ import {
17
+ catalog as catalog7
18
+ } from "./chunk-TE3PNQG6.js";
19
+ import "./chunk-QGAWDLYX.js";
20
+ import "./chunk-S5H6GH6M.js";
21
+ import "./chunk-QAGGJHAF.js";
22
+ import "./chunk-MFHXCHRI.js";
23
+ import {
24
+ catalog
25
+ } from "./chunk-RBWS5XHE.js";
26
+ import "./chunk-DLF4WVSE.js";
27
+ import "./chunk-U4V4FZGE.js";
31
28
  import "./chunk-LT4PWSR2.js";
32
29
  import "./chunk-FWSJLHSV.js";
33
30
  import "./chunk-ZFEXATWN.js";
31
+ import {
32
+ catalog as catalog5
33
+ } from "./chunk-RAXHCRVV.js";
34
34
  import "./chunk-XHGZ2E77.js";
35
35
  import "./chunk-W2245F6G.js";
36
36
  import "./chunk-JBWSK2YD.js";
@@ -12,7 +12,7 @@ import {
12
12
  renderInputAssets
13
13
  } from "./chunk-KSRFYFUZ.js";
14
14
  import "./chunk-OSMXQV5V.js";
15
- import "./chunk-26NRV5BK.js";
15
+ import "./chunk-QHLCJ3PE.js";
16
16
  import "./chunk-BVA3537Z.js";
17
17
  import {
18
18
  COMPONENT_STILL_RUNTIME_IDENTITY,
@@ -23,7 +23,7 @@ import {
23
23
  readMaterializedComponentSource,
24
24
  resolveRenderEntryRoot,
25
25
  verifyLocalStagedBrowser
26
- } from "./chunk-5JYYZDLK.js";
26
+ } from "./chunk-CJF3KBJ5.js";
27
27
  import "./chunk-WB2VFDQZ.js";
28
28
  import {
29
29
  sourceVersionId
@@ -46,11 +46,11 @@ import {
46
46
  parseSceneComponentCaptureIntentV1,
47
47
  prepareSceneShotRenderInput,
48
48
  readSceneShotManifest
49
- } from "./chunk-UOYKFFFK.js";
49
+ } from "./chunk-L5XECASW.js";
50
50
  import "./chunk-QH3YI3ND.js";
51
51
  import "./chunk-QISFYLBB.js";
52
- import "./chunk-IYZEK6WY.js";
53
52
  import "./chunk-VZ7TYX6Z.js";
53
+ import "./chunk-IYZEK6WY.js";
54
54
  import "./chunk-DENF4TPI.js";
55
55
  import "./chunk-KYRDKK2D.js";
56
56
  import "./chunk-WREYUH2E.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cueframe/kernel",
3
- "version": "0.2.39",
3
+ "version": "0.2.41",
4
4
  "type": "module",
5
5
  "description": "Publish-only aggregate of CueFrame's isomorphic kernel packages — composition, primitives, authoring, MCP, and friends shipped as one npm artifact. Members remain separate workspace packages; this only changes what ships.",
6
6
  "files": [
@@ -17,24 +17,24 @@
17
17
  "tsup": "^8.3.5",
18
18
  "typescript": "^5.9.3",
19
19
  "@cueframe/account-model": "0.1.0",
20
- "@cueframe/authoring": "0.1.0",
21
20
  "@cueframe/animate": "0.1.0",
21
+ "@cueframe/authoring": "0.1.0",
22
+ "@cueframe/brand-derivation": "0.1.0",
22
23
  "@cueframe/cloud-import": "0.1.0",
23
24
  "@cueframe/compose": "0.1.0",
24
25
  "@cueframe/composition-ops": "0.1.0",
25
- "@cueframe/brand-derivation": "0.1.0",
26
- "@cueframe/core": "0.1.0",
27
26
  "@cueframe/composition": "0.1.0",
28
27
  "@cueframe/component-runtime": "0.1.0",
28
+ "@cueframe/core": "0.1.0",
29
29
  "@cueframe/director": "0.1.0",
30
30
  "@cueframe/errors": "0.1.0",
31
31
  "@cueframe/foundation": "0.1.0",
32
+ "@cueframe/mcp": "0.1.0",
32
33
  "@cueframe/media-model": "0.1.0",
33
34
  "@cueframe/nle-export": "0.1.0",
34
35
  "@cueframe/perception": "0.1.0",
35
- "@cueframe/primitives": "0.1.0",
36
36
  "@cueframe/plane": "0.1.0",
37
- "@cueframe/mcp": "0.1.0",
37
+ "@cueframe/primitives": "0.1.0",
38
38
  "@cueframe/render-harness": "0.1.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -7,6 +7,10 @@ import {
7
7
  flattenCompoundClips,
8
8
  hasCompoundClips
9
9
  } from "./chunk-QISFYLBB.js";
10
+ import {
11
+ compositionHasVo,
12
+ roleDefaultGainDb
13
+ } from "./chunk-VZ7TYX6Z.js";
10
14
  import {
11
15
  DOMINANCE_WEIGHTS,
12
16
  ENTER_SEC,
@@ -25,10 +29,6 @@ import {
25
29
  segmentShots,
26
30
  stabilizeSelectionHysteresis
27
31
  } from "./chunk-IYZEK6WY.js";
28
- import {
29
- compositionHasVo,
30
- roleDefaultGainDb
31
- } from "./chunk-VZ7TYX6Z.js";
32
32
  import {
33
33
  SHOT_SCALE_TARGET,
34
34
  shotScaleZoom