@cueframe/kernel 0.2.27 → 0.2.29

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.
@@ -1 +1 @@
1
- {"version":3,"file":"sourceAdmission.d.ts","sourceRoot":"","sources":["../src/sourceAdmission.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAgBxB;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAuC7E;AAED,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GACtE,MAAM,EAAE,CAkBV;AAED,yFAAyF;AACzF,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,WAAW,GAAG,UAAU,CAAC,GACxE,IAAI,CAoBN"}
1
+ {"version":3,"file":"sourceAdmission.d.ts","sourceRoot":"","sources":["../src/sourceAdmission.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACvB,MAAM,gBAAgB,CAAC;AAgBxB;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAE7E;AAoDD,wBAAgB,+BAA+B,CAC7C,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GACtE,MAAM,EAAE,CAyBV;AAED,yFAAyF;AACzF,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,WAAW,GAAG,UAAU,CAAC,GACxE,IAAI,CAoBN"}
@@ -13,7 +13,7 @@ import {
13
13
  sceneTrackIdFor,
14
14
  validateSceneAdd,
15
15
  validateSceneUpdate
16
- } from "../chunk-USAXWI4T.js";
16
+ } from "../chunk-JSSJNSZL.js";
17
17
  import {
18
18
  SCENE_TRANSITION_KINDS,
19
19
  collectSceneClipIssues,
package/dist/authoring.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  hasSceneOp,
5
5
  isSceneOp,
6
6
  materializeSceneOpsCore
7
- } from "./chunk-USAXWI4T.js";
7
+ } from "./chunk-JSSJNSZL.js";
8
8
  import {
9
9
  ZERO_USAGE,
10
10
  buildDirectorTools,
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-EXY4JJPH.js";
14
14
  import {
15
15
  assertSourceReadsDeclaredAssets
16
- } from "./chunk-H6T2Y7NB.js";
16
+ } from "./chunk-SH5OTTVU.js";
17
17
  import {
18
18
  resolvedComponentRenderer
19
19
  } from "./chunk-5BAWOULP.js";
@@ -260,7 +260,17 @@ async function materializeSceneOpsCore(composition, ops, deps) {
260
260
  for (let i = 0; i < ops.length; i++) {
261
261
  const op = ops[i];
262
262
  if (!isSceneOp(op)) {
263
- current = emit(op, current);
263
+ try {
264
+ current = emit(op, current);
265
+ } catch (error) {
266
+ if (error instanceof SceneAuthoringError) throw error;
267
+ throw new SceneAuthoringError(
268
+ "invalid_composition",
269
+ "ops",
270
+ error instanceof Error ? error.message : String(error),
271
+ { opIndex: i }
272
+ );
273
+ }
264
274
  continue;
265
275
  }
266
276
  try {
@@ -14,6 +14,9 @@ function staticMember(node) {
14
14
  return name === null ? null : { object: candidate.object, property: name };
15
15
  }
16
16
  function sourceAssetHandleReads(tsxSource) {
17
+ return scanSourceReads(tsxSource).assetHandleSlots;
18
+ }
19
+ function scanSourceReads(tsxSource) {
17
20
  let root;
18
21
  try {
19
22
  root = parse(tsxSource, {
@@ -29,6 +32,7 @@ function sourceAssetHandleReads(tsxSource) {
29
32
  );
30
33
  }
31
34
  const reads = /* @__PURE__ */ new Set();
35
+ let preparedPlan = false;
32
36
  const visit = (value) => {
33
37
  if (!value || typeof value !== "object") return;
34
38
  if (Array.isArray(value)) {
@@ -37,6 +41,7 @@ function sourceAssetHandleReads(tsxSource) {
37
41
  }
38
42
  const node = value;
39
43
  const leaf = staticMember(node);
44
+ if (leaf?.property === "preparedSceneShot") preparedPlan = true;
40
45
  if (leaf?.property === "handle") {
41
46
  const slot = staticMember(leaf.object);
42
47
  const rootObject = slot?.object;
@@ -50,14 +55,14 @@ function sourceAssetHandleReads(tsxSource) {
50
55
  }
51
56
  };
52
57
  visit(root);
53
- return reads;
58
+ return { assetHandleSlots: reads, readsPreparedScenePlan: preparedPlan };
54
59
  }
55
60
  function missingDeclaredAssetHandleReads(tsxSource, manifest) {
56
- if (manifest.sceneShot !== void 0) return [];
57
61
  const slots = Object.keys(manifest.assets);
58
62
  if (slots.length === 0) return [];
59
- const reads = sourceAssetHandleReads(tsxSource);
60
- return slots.filter((slot) => !reads.has(slot));
63
+ const scan = scanSourceReads(tsxSource);
64
+ if (manifest.sceneShot !== void 0 && scan.readsPreparedScenePlan) return [];
65
+ return slots.filter((slot) => !scan.assetHandleSlots.has(slot));
61
66
  }
62
67
  function assertSourceReadsDeclaredAssets(source) {
63
68
  const missing = missingDeclaredAssetHandleReads(source.tsxSource, source.manifest);
@@ -2,7 +2,7 @@ import {
2
2
  assertSourceReadsDeclaredAssets,
3
3
  missingDeclaredAssetHandleReads,
4
4
  sourceAssetHandleReads
5
- } from "../chunk-H6T2Y7NB.js";
5
+ } from "../chunk-SH5OTTVU.js";
6
6
  import "../chunk-ZVG446DJ.js";
7
7
  import "../chunk-2ESYSVXG.js";
8
8
  export {
@@ -7,7 +7,7 @@ import {
7
7
  sourceIdentityForBake,
8
8
  startComponentAssetServer,
9
9
  verifyComponentOutput
10
- } from "./chunk-Z7X3H23K.js";
10
+ } from "./chunk-256ZO323.js";
11
11
  import {
12
12
  COMPONENT_MEDIA_HEADROOM,
13
13
  COMPONENT_MEDIA_TIERS,
@@ -73,7 +73,7 @@ import {
73
73
  assertSourceReadsDeclaredAssets,
74
74
  missingDeclaredAssetHandleReads,
75
75
  sourceAssetHandleReads
76
- } from "./chunk-H6T2Y7NB.js";
76
+ } from "./chunk-SH5OTTVU.js";
77
77
  import {
78
78
  HALF_FLOAT_COLOR_TARGET_EXTENSIONS,
79
79
  admittedHost,
package/dist/compose.js CHANGED
@@ -5,40 +5,40 @@ import {
5
5
  import "./chunk-JQMPHKLU.js";
6
6
  import "./chunk-ZZRBKGDA.js";
7
7
  import "./chunk-GULDS3VE.js";
8
+ import {
9
+ catalog as catalog6
10
+ } from "./chunk-VLJOIUHL.js";
11
+ import {
12
+ catalog as catalog2
13
+ } from "./chunk-WAUVKF2F.js";
14
+ import {
15
+ catalog as catalog8
16
+ } from "./chunk-7SQOXIWR.js";
8
17
  import {
9
18
  catalog as catalog4
10
19
  } from "./chunk-JRJQECCF.js";
11
20
  import {
12
21
  catalog as catalog7
13
- } from "./chunk-TE3PNQG6.js";
22
+ } from "./chunk-IAQHWJUO.js";
23
+ import "./chunk-S5H6GH6M.js";
24
+ import "./chunk-QAGGJHAF.js";
25
+ import "./chunk-MFHXCHRI.js";
14
26
  import {
15
27
  catalog
16
- } from "./chunk-ZS3A3QUM.js";
28
+ } from "./chunk-ZDL7XEXW.js";
17
29
  import "./chunk-U4V4FZGE.js";
18
30
  import "./chunk-DLF4WVSE.js";
31
+ import "./chunk-LT4PWSR2.js";
32
+ import "./chunk-FWSJLHSV.js";
19
33
  import {
20
34
  catalog as catalog3
21
35
  } from "./chunk-FVDFPJHT.js";
22
36
  import "./chunk-QGAWDLYX.js";
23
- import {
24
- catalog as catalog6
25
- } from "./chunk-VLJOIUHL.js";
26
- import "./chunk-S5H6GH6M.js";
27
- import "./chunk-QAGGJHAF.js";
28
37
  import {
29
38
  catalog as catalog5
30
39
  } from "./chunk-RAXHCRVV.js";
31
- import {
32
- catalog as catalog2
33
- } from "./chunk-WAUVKF2F.js";
34
- import "./chunk-MFHXCHRI.js";
35
- import {
36
- catalog as catalog8
37
- } from "./chunk-RL5SO653.js";
38
- import "./chunk-LT4PWSR2.js";
39
- import "./chunk-FWSJLHSV.js";
40
- import "./chunk-ZFEXATWN.js";
41
40
  import "./chunk-XHGZ2E77.js";
41
+ import "./chunk-ZFEXATWN.js";
42
42
  import "./chunk-W2245F6G.js";
43
43
  import "./chunk-JBWSK2YD.js";
44
44
  import "./chunk-OBA6NW4S.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  playableSpans
3
- } from "./chunk-UXCRLEYB.js";
3
+ } from "./chunk-XT3SK7HR.js";
4
4
  import "./chunk-QH3YI3ND.js";
5
5
  import "./chunk-QISFYLBB.js";
6
- import "./chunk-VZ7TYX6Z.js";
7
6
  import "./chunk-QAALM5BW.js";
7
+ import "./chunk-VZ7TYX6Z.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-UXCRLEYB.js";
69
+ } from "../chunk-XT3SK7HR.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-VZ7TYX6Z.js";
77
76
  import "../chunk-QAALM5BW.js";
77
+ import "../chunk-VZ7TYX6Z.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-UXCRLEYB.js";
13
+ } from "./chunk-XT3SK7HR.js";
14
14
  import "./chunk-QH3YI3ND.js";
15
15
  import "./chunk-QISFYLBB.js";
16
- import "./chunk-VZ7TYX6Z.js";
17
16
  import "./chunk-QAALM5BW.js";
17
+ import "./chunk-VZ7TYX6Z.js";
18
18
  import "./chunk-DENF4TPI.js";
19
19
  import "./chunk-KYRDKK2D.js";
20
20
  import "./chunk-WREYUH2E.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  HeroText,
3
3
  catalog
4
- } from "../chunk-RL5SO653.js";
4
+ } from "../chunk-7SQOXIWR.js";
5
5
  import "../chunk-LT4PWSR2.js";
6
6
  import "../chunk-FWSJLHSV.js";
7
- import "../chunk-ZFEXATWN.js";
8
7
  import "../chunk-XHGZ2E77.js";
8
+ import "../chunk-ZFEXATWN.js";
9
9
  import "../chunk-W2245F6G.js";
10
10
  import "../chunk-2ESYSVXG.js";
11
11
  export {
@@ -8,11 +8,11 @@ import {
8
8
  ProductLaunchTrailer,
9
9
  TerminalToBrowserDeploy,
10
10
  catalog
11
- } from "../chunk-TE3PNQG6.js";
12
- import "../chunk-QGAWDLYX.js";
11
+ } from "../chunk-IAQHWJUO.js";
13
12
  import "../chunk-S5H6GH6M.js";
14
13
  import "../chunk-QAGGJHAF.js";
15
14
  import "../chunk-MFHXCHRI.js";
15
+ import "../chunk-QGAWDLYX.js";
16
16
  import "../chunk-W2245F6G.js";
17
17
  import "../chunk-JBWSK2YD.js";
18
18
  import "../chunk-OBA6NW4S.js";
@@ -21,13 +21,13 @@ import {
21
21
  TrackingIn,
22
22
  Typewriter,
23
23
  catalog
24
- } from "../chunk-ZS3A3QUM.js";
24
+ } from "../chunk-ZDL7XEXW.js";
25
25
  import "../chunk-U4V4FZGE.js";
26
26
  import "../chunk-DLF4WVSE.js";
27
27
  import "../chunk-LT4PWSR2.js";
28
28
  import "../chunk-FWSJLHSV.js";
29
- import "../chunk-ZFEXATWN.js";
30
29
  import "../chunk-XHGZ2E77.js";
30
+ import "../chunk-ZFEXATWN.js";
31
31
  import "../chunk-W2245F6G.js";
32
32
  import "../chunk-2ESYSVXG.js";
33
33
  export {
@@ -1,37 +1,37 @@
1
+ import {
2
+ catalog as catalog6
3
+ } from "./chunk-VLJOIUHL.js";
4
+ import {
5
+ catalog as catalog2
6
+ } from "./chunk-WAUVKF2F.js";
7
+ import {
8
+ catalog as catalog8
9
+ } from "./chunk-7SQOXIWR.js";
1
10
  import {
2
11
  catalog as catalog4
3
12
  } from "./chunk-JRJQECCF.js";
4
13
  import {
5
14
  catalog as catalog7
6
- } from "./chunk-TE3PNQG6.js";
15
+ } from "./chunk-IAQHWJUO.js";
16
+ import "./chunk-S5H6GH6M.js";
17
+ import "./chunk-QAGGJHAF.js";
18
+ import "./chunk-MFHXCHRI.js";
7
19
  import {
8
20
  catalog
9
- } from "./chunk-ZS3A3QUM.js";
21
+ } from "./chunk-ZDL7XEXW.js";
10
22
  import "./chunk-U4V4FZGE.js";
11
23
  import "./chunk-DLF4WVSE.js";
24
+ import "./chunk-LT4PWSR2.js";
25
+ import "./chunk-FWSJLHSV.js";
12
26
  import {
13
27
  catalog as catalog3
14
28
  } from "./chunk-FVDFPJHT.js";
15
29
  import "./chunk-QGAWDLYX.js";
16
- import {
17
- catalog as catalog6
18
- } from "./chunk-VLJOIUHL.js";
19
- import "./chunk-S5H6GH6M.js";
20
- import "./chunk-QAGGJHAF.js";
21
30
  import {
22
31
  catalog as catalog5
23
32
  } from "./chunk-RAXHCRVV.js";
24
- import {
25
- catalog as catalog2
26
- } from "./chunk-WAUVKF2F.js";
27
- import "./chunk-MFHXCHRI.js";
28
- import {
29
- catalog as catalog8
30
- } from "./chunk-RL5SO653.js";
31
- import "./chunk-LT4PWSR2.js";
32
- import "./chunk-FWSJLHSV.js";
33
- import "./chunk-ZFEXATWN.js";
34
33
  import "./chunk-XHGZ2E77.js";
34
+ import "./chunk-ZFEXATWN.js";
35
35
  import "./chunk-W2245F6G.js";
36
36
  import "./chunk-JBWSK2YD.js";
37
37
  import "./chunk-OBA6NW4S.js";
@@ -8,7 +8,7 @@ import {
8
8
  isRemoteUrl,
9
9
  renderInputAssets
10
10
  } from "./chunk-MN6D3U5N.js";
11
- import "./chunk-Z7X3H23K.js";
11
+ import "./chunk-256ZO323.js";
12
12
  import "./chunk-BVA3537Z.js";
13
13
  import {
14
14
  COMPONENT_STILL_RUNTIME_IDENTITY,
@@ -26,7 +26,7 @@ import {
26
26
  } from "./chunk-EXY4JJPH.js";
27
27
  import "./chunk-DAARYRNT.js";
28
28
  import "./chunk-5NGYBI5Z.js";
29
- import "./chunk-H6T2Y7NB.js";
29
+ import "./chunk-SH5OTTVU.js";
30
30
  import {
31
31
  componentBrowserBackend
32
32
  } from "./chunk-5BAWOULP.js";
@@ -42,11 +42,11 @@ import {
42
42
  parseSceneComponentCaptureIntentV1,
43
43
  prepareSceneShotRenderInput,
44
44
  readSceneShotManifest
45
- } from "./chunk-UXCRLEYB.js";
45
+ } from "./chunk-XT3SK7HR.js";
46
46
  import "./chunk-QH3YI3ND.js";
47
47
  import "./chunk-QISFYLBB.js";
48
- import "./chunk-VZ7TYX6Z.js";
49
48
  import "./chunk-QAALM5BW.js";
49
+ import "./chunk-VZ7TYX6Z.js";
50
50
  import "./chunk-DENF4TPI.js";
51
51
  import "./chunk-KYRDKK2D.js";
52
52
  import "./chunk-WREYUH2E.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cueframe/kernel",
3
- "version": "0.2.27",
3
+ "version": "0.2.29",
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/brand-derivation": "0.1.0",
20
21
  "@cueframe/animate": "0.1.0",
22
+ "@cueframe/authoring": "0.1.0",
21
23
  "@cueframe/cloud-import": "0.1.0",
22
24
  "@cueframe/compose": "0.1.0",
23
- "@cueframe/authoring": "0.1.0",
24
- "@cueframe/brand-derivation": "0.1.0",
25
+ "@cueframe/composition-ops": "0.1.0",
26
+ "@cueframe/component-runtime": "0.1.0",
25
27
  "@cueframe/core": "0.1.0",
28
+ "@cueframe/errors": "0.1.0",
26
29
  "@cueframe/director": "0.1.0",
27
30
  "@cueframe/composition": "0.1.0",
28
- "@cueframe/errors": "0.1.0",
31
+ "@cueframe/nle-export": "0.1.0",
29
32
  "@cueframe/foundation": "0.1.0",
30
- "@cueframe/composition-ops": "0.1.0",
31
- "@cueframe/component-runtime": "0.1.0",
32
- "@cueframe/mcp": "0.1.0",
33
- "@cueframe/plane": "0.1.0",
34
33
  "@cueframe/perception": "0.1.0",
35
- "@cueframe/primitives": "0.1.0",
36
34
  "@cueframe/render-harness": "0.1.0",
37
- "@cueframe/nle-export": "0.1.0",
35
+ "@cueframe/primitives": "0.1.0",
36
+ "@cueframe/mcp": "0.1.0",
37
+ "@cueframe/plane": "0.1.0",
38
38
  "@cueframe/media-model": "0.1.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -4,15 +4,15 @@ import {
4
4
  import {
5
5
  resolveContrast
6
6
  } from "./chunk-FWSJLHSV.js";
7
+ import {
8
+ resolveFitFontSize
9
+ } from "./chunk-XHGZ2E77.js";
7
10
  import {
8
11
  fadeProgress,
9
12
  resolveEasing,
10
13
  staggerUp,
11
14
  wordPop
12
15
  } from "./chunk-ZFEXATWN.js";
13
- import {
14
- resolveFitFontSize
15
- } from "./chunk-XHGZ2E77.js";
16
16
 
17
17
  // ../execution/primitives/src/hero-text/HeroText.tsx
18
18
  import { useCurrentFrame, useVideoConfig } from "remotion";
@@ -1,7 +1,3 @@
1
- import {
2
- frostedGlassWipe,
3
- spatialPush
4
- } from "./chunk-QGAWDLYX.js";
5
1
  import {
6
2
  DashboardPopulate
7
3
  } from "./chunk-S5H6GH6M.js";
@@ -11,6 +7,10 @@ import {
11
7
  import {
12
8
  EASING_BY_INTENT
13
9
  } from "./chunk-MFHXCHRI.js";
10
+ import {
11
+ frostedGlassWipe,
12
+ spatialPush
13
+ } from "./chunk-QGAWDLYX.js";
14
14
  import {
15
15
  ACCENT,
16
16
  ACCENT_SOFT,
@@ -7,10 +7,6 @@ import {
7
7
  flattenCompoundClips,
8
8
  hasCompoundClips
9
9
  } from "./chunk-QISFYLBB.js";
10
- import {
11
- compositionHasVo,
12
- roleDefaultGainDb
13
- } from "./chunk-VZ7TYX6Z.js";
14
10
  import {
15
11
  DOMINANCE_WEIGHTS,
16
12
  ENTER_SEC,
@@ -29,6 +25,10 @@ import {
29
25
  segmentShots,
30
26
  stabilizeSelectionHysteresis
31
27
  } from "./chunk-QAALM5BW.js";
28
+ import {
29
+ compositionHasVo,
30
+ roleDefaultGainDb
31
+ } from "./chunk-VZ7TYX6Z.js";
32
32
  import {
33
33
  SHOT_SCALE_TARGET,
34
34
  shotScaleZoom
@@ -12,15 +12,15 @@ import {
12
12
  FLOOR_TEXT,
13
13
  resolveContrast
14
14
  } from "./chunk-FWSJLHSV.js";
15
+ import {
16
+ FitText,
17
+ resolveFitFontSize
18
+ } from "./chunk-XHGZ2E77.js";
15
19
  import {
16
20
  resolveEasing,
17
21
  staggerRise,
18
22
  staggerUp
19
23
  } from "./chunk-ZFEXATWN.js";
20
- import {
21
- FitText,
22
- resolveFitFontSize
23
- } from "./chunk-XHGZ2E77.js";
24
24
  import {
25
25
  ACCENT,
26
26
  ACCENT_STRONG,