@cueframe/kernel 0.2.5 → 0.2.6

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 (42) hide show
  1. package/dist/_members/composition/scene/clipRules.d.ts +1 -1
  2. package/dist/_members/mcp/server.d.ts +1 -4
  3. package/dist/animate/preparation-facts.js +2 -2
  4. package/dist/animate.js +3 -3
  5. package/dist/authoring/scene.js +2 -2
  6. package/dist/authoring.js +2 -2
  7. package/dist/{chunk-E7GIZEPS.js → chunk-3V75A6UH.js} +1 -1
  8. package/dist/chunk-6FIJJ6GN.js +3619 -0
  9. package/dist/{chunk-6EWRIAZA.js → chunk-ARCGJUCQ.js} +1 -1
  10. package/dist/{chunk-WIHXXF3X.js → chunk-DHL55ZBJ.js} +1 -1
  11. package/dist/{chunk-DQLYWNLC.js → chunk-GP2SCGCH.js} +2 -2
  12. package/dist/{chunk-VKATKWWR.js → chunk-JDOO6GTW.js} +1 -1
  13. package/dist/{chunk-7W6ZIKWV.js → chunk-LNGDWWYU.js} +1 -1
  14. package/dist/{chunk-I5QWBM3M.js → chunk-LO6X2NMI.js} +2 -2
  15. package/dist/{chunk-MH3UPKWR.js → chunk-M2CXETU3.js} +19 -7
  16. package/dist/{chunk-5DJ3IEJR.js → chunk-M5QETDOL.js} +2 -2
  17. package/dist/{chunk-QS36DMFG.js → chunk-SKQR5KAL.js} +1 -1
  18. package/dist/chunk-TECEMBCI.js +9440 -0
  19. package/dist/{chunk-YFSBFCXO.js → chunk-VTREDSYF.js} +1 -1
  20. package/dist/{chunk-VCSSJLOU.js → chunk-XSUJQ7BR.js} +2 -2
  21. package/dist/component-runtime/browserOptions.js +2 -2
  22. package/dist/component-runtime/render.js +3 -3
  23. package/dist/component-runtime.js +4 -4
  24. package/dist/compose.js +6 -6
  25. package/dist/composition/scene.js +1 -1
  26. package/dist/composition-ops.js +2 -2
  27. package/dist/core/render.js +2 -2
  28. package/dist/core.js +2 -2
  29. package/dist/mcp/adapter.js +2 -2
  30. package/dist/mcp/core.js +1 -1
  31. package/dist/mcp/server.js +3 -3
  32. package/dist/mcp.js +3 -3
  33. package/dist/primitives/effects.js +4 -4
  34. package/dist/primitives/layouts.js +4 -4
  35. package/dist/primitives/scenes.js +4 -4
  36. package/dist/primitives.js +6 -6
  37. package/dist/render-harness.js +6 -6
  38. package/package.json +11 -11
  39. package/dist/_members/mcp/generated/inputSchemas.d.ts +0 -1
  40. package/dist/_members/mcp/inputSchemas.d.ts +0 -6
  41. package/dist/chunk-6BVVCRRD.js +0 -26488
  42. package/dist/chunk-KQDZAHLP.js +0 -3637
@@ -24,7 +24,7 @@ import {
24
24
  } from "./chunk-W2245F6G.js";
25
25
  import {
26
26
  FlexLayout
27
- } from "./chunk-5DJ3IEJR.js";
27
+ } from "./chunk-M5QETDOL.js";
28
28
 
29
29
  // ../execution/primitives/src/layouts/chat-to-preview-layout/index.tsx
30
30
  import { Easing, interpolate, useCurrentFrame, useVideoConfig } from "remotion";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZVG446DJ.js";
5
5
  import {
6
6
  STUDIO_SHADOW_MAP_BUDGET
7
- } from "./chunk-MH3UPKWR.js";
7
+ } from "./chunk-M2CXETU3.js";
8
8
 
9
9
  // ../execution/component-runtime/src/webglProbe.ts
10
10
  var FEATURE_OFF = /(^|_)off(?:_ok)?$|^(?:unavailable|disabled)$/;
@@ -15,7 +15,7 @@ import {
15
15
  componentBrowserBackend,
16
16
  componentBrowserOptions,
17
17
  readGpuAttestation
18
- } from "./chunk-WIHXXF3X.js";
18
+ } from "./chunk-DHL55ZBJ.js";
19
19
  import {
20
20
  ComponentCapturePageRasterAttestationV1,
21
21
  ComponentGraphicsApiV2,
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-ZVG446DJ.js";
29
29
  import {
30
30
  parseSceneShotSpecV2
31
- } from "./chunk-MH3UPKWR.js";
31
+ } from "./chunk-M2CXETU3.js";
32
32
 
33
33
  // ../execution/component-runtime/src/sceneAdmission.ts
34
34
  import { ZodError } from "zod";
@@ -18,7 +18,7 @@ import {
18
18
  sceneW5GeneratedRigAllocationsV1,
19
19
  sceneW5PresetAllocationsV1,
20
20
  sceneW5WorldTextAllocationsV1
21
- } from "./chunk-MH3UPKWR.js";
21
+ } from "./chunk-M2CXETU3.js";
22
22
 
23
23
  // ../execution/animate/src/three/toneMapping.ts
24
24
  import {
@@ -26,7 +26,7 @@ import {
26
26
  perspectiveFor,
27
27
  resolveCamera,
28
28
  useStage
29
- } from "./chunk-5DJ3IEJR.js";
29
+ } from "./chunk-M5QETDOL.js";
30
30
 
31
31
  // ../execution/primitives/src/effects/blur/index.tsx
32
32
  import React2 from "react";
@@ -43,14 +43,14 @@ import {
43
43
  makeDefaultScreenTexture,
44
44
  resolveCamera,
45
45
  useImageTexture
46
- } from "./chunk-5DJ3IEJR.js";
46
+ } from "./chunk-M5QETDOL.js";
47
47
  import {
48
48
  DEVICE_GLASS_OPACITY_ENCODED,
49
49
  DeviceMesh,
50
50
  StudioRig,
51
51
  deviceDimensions,
52
52
  laptopLayout
53
- } from "./chunk-VKATKWWR.js";
53
+ } from "./chunk-JDOO6GTW.js";
54
54
 
55
55
  // ../execution/primitives/src/scenes/changelog-bite/index.tsx
56
56
  import {
@@ -1296,7 +1296,7 @@ function slotOwner(spec2, slot) {
1296
1296
  for (const layer of layers) {
1297
1297
  if ("surfaces" in layer && layer.surfaces !== void 0) {
1298
1298
  for (const binding of Object.values(layer.surfaces)) {
1299
- if (binding.source === "image" && binding.assetSlot === slot) return layer.id;
1299
+ if (binding.source === "image" && binding.assetSlot === slot || binding.source === "video" && binding.mediaId === slot) return layer.id;
1300
1300
  }
1301
1301
  }
1302
1302
  if (layer.kind === "group") {
@@ -1377,12 +1377,24 @@ function sceneSpecIssues(value, path) {
1377
1377
  }
1378
1378
  function bindingIssues(spec2, assets, path, mediaKindById) {
1379
1379
  const issues = [];
1380
- const slots = sceneShotImageSlots(spec2);
1381
- for (const slot of slots) {
1380
+ const images = sceneShotImageSlots(spec2);
1381
+ const videos = sceneShotVideoSlots(spec2);
1382
+ const slots = new Map([
1383
+ ...images.map((slot) => [slot, "image"]),
1384
+ ...videos.map((slot) => [slot, "video"])
1385
+ ]);
1386
+ for (const slot of images.filter((slot2) => videos.includes(slot2))) {
1387
+ issues.push({
1388
+ path: `${path}.${slot}`,
1389
+ code: "validation_error",
1390
+ detail: `slot '${slot}' is used by both image and video surfaces; use distinct slot names.`
1391
+ });
1392
+ }
1393
+ for (const [slot, kind] of slots) {
1382
1394
  if (typeof assets[slot] === "string" && assets[slot].length > 0) continue;
1383
1395
  issues.push({
1384
1396
  path: `${path}.${slot}`,
1385
- detail: `slot '${slot}' is referenced by layer '${slotOwner(spec2, slot)}' but not bound; bind it to an image media id.`,
1397
+ detail: `slot '${slot}' is referenced by layer '${slotOwner(spec2, slot)}' but not bound; bind it to ${kind === "image" ? "an image" : "a video"} media id.`,
1386
1398
  code: "validation_error"
1387
1399
  });
1388
1400
  }
@@ -1391,7 +1403,7 @@ function bindingIssues(spec2, assets, path, mediaKindById) {
1391
1403
  issues.push({ path: `${path}.${name}`, detail: `'${name}' is not a valid slot name.`, code: "validation_error" });
1392
1404
  continue;
1393
1405
  }
1394
- if (!slots.includes(name)) {
1406
+ if (!slots.has(name)) {
1395
1407
  issues.push({
1396
1408
  path: `${path}.${name}`,
1397
1409
  detail: `no layer references slot '${name}'; remove the binding or reference the slot from a layer.`,
@@ -1403,10 +1415,10 @@ function bindingIssues(spec2, assets, path, mediaKindById) {
1403
1415
  const kind = mediaKindById[mediaId];
1404
1416
  if (kind === void 0) {
1405
1417
  issues.push({ path: `${path}.${name}`, detail: `media '${mediaId}' is not in this project.`, code: "validation_error" });
1406
- } else if (kind !== "image") {
1418
+ } else if (kind !== slots.get(name)) {
1407
1419
  issues.push({
1408
1420
  path: `${path}.${name}`,
1409
- detail: `slot '${name}' needs image media (PNG, JPEG or WebP); '${mediaId}' is ${kind}.`,
1421
+ detail: `slot '${name}' needs ${slots.get(name)} media (${slots.get(name) === "image" ? "PNG, JPEG or WebP" : "MP4 or WebM"}); '${mediaId}' is ${kind}.`,
1410
1422
  code: "validation_error"
1411
1423
  });
1412
1424
  }
@@ -19,7 +19,7 @@ import {
19
19
  slabTriangleCount,
20
20
  takeSceneEnvironment,
21
21
  useSceneActualResourceRegistrarV1
22
- } from "./chunk-VKATKWWR.js";
22
+ } from "./chunk-JDOO6GTW.js";
23
23
  import {
24
24
  resolveCaptionFaces
25
25
  } from "./chunk-TARKDVP6.js";
@@ -34,7 +34,7 @@ import {
34
34
  sceneTextureBytes,
35
35
  sceneVideoMidpointAddressV1,
36
36
  selectSceneBakeScale
37
- } from "./chunk-MH3UPKWR.js";
37
+ } from "./chunk-M2CXETU3.js";
38
38
 
39
39
  // ../execution/animate/src/easing/smooth.ts
40
40
  var sigmoid = (x) => 1 / (1 + Math.exp(-x));
@@ -8,7 +8,7 @@ import {
8
8
  sceneShotImageSlots,
9
9
  sceneShotVideoSlots,
10
10
  sceneSpecIssues
11
- } from "./chunk-MH3UPKWR.js";
11
+ } from "./chunk-M2CXETU3.js";
12
12
 
13
13
  // ../authoring/src/scene/validate.ts
14
14
  var SceneAuthoringError = class extends Error {