@cueframe/kernel 0.2.32 → 0.2.34

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 (56) hide show
  1. package/dist/_members/errors/registry.d.ts +4 -0
  2. package/dist/_members/render-harness/assetRefs.d.ts +26 -0
  3. package/dist/_members/render-harness/assetRefs.d.ts.map +1 -0
  4. package/dist/_members/render-harness/cardAssetAdmission.d.ts.map +1 -1
  5. package/dist/_members/render-harness/cardFonts.d.ts +13 -0
  6. package/dist/_members/render-harness/cardFonts.d.ts.map +1 -0
  7. package/dist/_members/render-harness/cardRender.d.ts +1 -0
  8. package/dist/_members/render-harness/cardRender.d.ts.map +1 -1
  9. package/dist/_members/render-harness/css-tree-subpaths.d.ts +5 -0
  10. package/dist/_members/render-harness/renderInputAssets.d.ts.map +1 -1
  11. package/dist/authoring.js +2 -2
  12. package/dist/{chunk-LLC6TCH5.js → chunk-3GNTA646.js} +1 -1
  13. package/dist/{chunk-LEJ5QXHP.js → chunk-4RREA7VA.js} +7 -6
  14. package/dist/{chunk-3OOMVQ6I.js → chunk-5YO4LAB7.js} +2 -2
  15. package/dist/{chunk-WYKUWRQG.js → chunk-A3MXR6JI.js} +33 -1
  16. package/dist/{chunk-F5B6OM73.js → chunk-ANNB4VC6.js} +1283 -1271
  17. package/dist/{chunk-T4XTC35J.js → chunk-DLKCGEKP.js} +1 -1
  18. package/dist/{chunk-Q244EHRI.js → chunk-GMVUJYPM.js} +1 -1
  19. package/dist/{chunk-MN6D3U5N.js → chunk-KSRFYFUZ.js} +8 -1
  20. package/dist/{chunk-JGXJEY77.js → chunk-NJOWIGUL.js} +3 -3
  21. package/dist/chunk-OSMXQV5V.js +18 -0
  22. package/dist/chunk-RAPDICTC.js +82 -0
  23. package/dist/{chunk-NSXFYDBP.js → chunk-TCYULWNP.js} +1 -1
  24. package/dist/{chunk-AZSTZE64.js → chunk-W44ASS4N.js} +6 -6
  25. package/dist/{chunk-JTVHOHT6.js → chunk-YOE5Y2SJ.js} +1 -1
  26. package/dist/compose.js +20 -20
  27. package/dist/composition/projection.js +2 -2
  28. package/dist/composition-ops.js +5 -5
  29. package/dist/composition.js +2 -2
  30. package/dist/core/render.js +3 -3
  31. package/dist/core/select.js +2 -2
  32. package/dist/core.js +3 -3
  33. package/dist/director/ai-sdk.js +3 -3
  34. package/dist/director/domain.js +2 -2
  35. package/dist/director.js +3 -3
  36. package/dist/errors.js +3 -1
  37. package/dist/mcp/adapter.js +3 -3
  38. package/dist/mcp/core.js +1 -1
  39. package/dist/mcp/curation.js +1 -1
  40. package/dist/mcp/server.js +4 -4
  41. package/dist/mcp.js +4 -4
  42. package/dist/primitives/hero-text.js +2 -2
  43. package/dist/primitives/lib/index.js +6 -6
  44. package/dist/primitives/lib.js +6 -6
  45. package/dist/primitives/scenes.js +2 -2
  46. package/dist/primitives/text.js +3 -3
  47. package/dist/primitives.js +18 -18
  48. package/dist/render-harness/cardAssetAdmission.js +3 -2
  49. package/dist/render-harness/cardFonts.d.ts +1 -0
  50. package/dist/render-harness/cardFonts.js +13 -0
  51. package/dist/render-harness/renderInputAssets.js +2 -1
  52. package/dist/render-harness.js +28 -7
  53. package/package.json +17 -13
  54. package/dist/{chunk-ZDL7XEXW.js → chunk-RBWS5XHE.js} +7 -7
  55. package/dist/{chunk-7SQOXIWR.js → chunk-RL5SO653.js} +3 -3
  56. package/dist/{chunk-IAQHWJUO.js → chunk-TE3PNQG6.js} +4 -4
@@ -21,13 +21,13 @@ import {
21
21
  TrackingIn,
22
22
  Typewriter,
23
23
  catalog
24
- } from "../chunk-ZDL7XEXW.js";
25
- import "../chunk-U4V4FZGE.js";
24
+ } from "../chunk-RBWS5XHE.js";
26
25
  import "../chunk-DLF4WVSE.js";
26
+ import "../chunk-U4V4FZGE.js";
27
27
  import "../chunk-LT4PWSR2.js";
28
28
  import "../chunk-FWSJLHSV.js";
29
- import "../chunk-XHGZ2E77.js";
30
29
  import "../chunk-ZFEXATWN.js";
30
+ import "../chunk-XHGZ2E77.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";
10
1
  import {
11
2
  catalog as catalog4
12
3
  } from "./chunk-JRJQECCF.js";
13
4
  import {
14
5
  catalog as catalog7
15
- } from "./chunk-IAQHWJUO.js";
16
- import "./chunk-S5H6GH6M.js";
17
- import "./chunk-QAGGJHAF.js";
18
- import "./chunk-MFHXCHRI.js";
6
+ } from "./chunk-TE3PNQG6.js";
19
7
  import {
20
8
  catalog
21
- } from "./chunk-ZDL7XEXW.js";
22
- import "./chunk-U4V4FZGE.js";
9
+ } from "./chunk-RBWS5XHE.js";
23
10
  import "./chunk-DLF4WVSE.js";
24
- import "./chunk-LT4PWSR2.js";
25
- import "./chunk-FWSJLHSV.js";
11
+ import "./chunk-U4V4FZGE.js";
26
12
  import {
27
13
  catalog as catalog3
28
14
  } from "./chunk-FVDFPJHT.js";
29
15
  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";
30
21
  import {
31
22
  catalog as catalog5
32
23
  } from "./chunk-RAXHCRVV.js";
33
- import "./chunk-XHGZ2E77.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";
34
33
  import "./chunk-ZFEXATWN.js";
34
+ import "./chunk-XHGZ2E77.js";
35
35
  import "./chunk-W2245F6G.js";
36
36
  import "./chunk-JBWSK2YD.js";
37
37
  import "./chunk-OBA6NW4S.js";
@@ -1,7 +1,8 @@
1
1
  import {
2
2
  assertCardHtmlAssetFree
3
- } from "../chunk-LEJ5QXHP.js";
4
- import "../chunk-WYKUWRQG.js";
3
+ } from "../chunk-4RREA7VA.js";
4
+ import "../chunk-OSMXQV5V.js";
5
+ import "../chunk-A3MXR6JI.js";
5
6
  import "../chunk-2ESYSVXG.js";
6
7
  export {
7
8
  assertCardHtmlAssetFree
@@ -0,0 +1 @@
1
+ export * from "../_members/render-harness/cardFonts.js";
@@ -0,0 +1,13 @@
1
+ import {
2
+ assertCardFontsAdmitted,
3
+ cardBundledFamilies,
4
+ cardFontFamilyStacks
5
+ } from "../chunk-RAPDICTC.js";
6
+ import "../chunk-A3MXR6JI.js";
7
+ import "../chunk-AVTEPAWI.js";
8
+ import "../chunk-2ESYSVXG.js";
9
+ export {
10
+ assertCardFontsAdmitted,
11
+ cardBundledFamilies,
12
+ cardFontFamilyStacks
13
+ };
@@ -4,7 +4,8 @@ import {
4
4
  assetUrlKey,
5
5
  isRemoteUrl,
6
6
  renderInputAssets
7
- } from "../chunk-MN6D3U5N.js";
7
+ } from "../chunk-KSRFYFUZ.js";
8
+ import "../chunk-OSMXQV5V.js";
8
9
  import "../chunk-7AZLFN26.js";
9
10
  import "../chunk-7PA7FGLD.js";
10
11
  import "../chunk-2ESYSVXG.js";
@@ -1,13 +1,17 @@
1
1
  import {
2
2
  assertCardHtmlAssetFree
3
- } from "./chunk-LEJ5QXHP.js";
3
+ } from "./chunk-4RREA7VA.js";
4
+ import {
5
+ assertCardFontsAdmitted
6
+ } from "./chunk-RAPDICTC.js";
4
7
  import {
5
8
  assertNoRemoteRefs,
6
9
  assetSlots,
7
10
  assetUrlKey,
8
11
  isRemoteUrl,
9
12
  renderInputAssets
10
- } from "./chunk-MN6D3U5N.js";
13
+ } from "./chunk-KSRFYFUZ.js";
14
+ import "./chunk-OSMXQV5V.js";
11
15
  import "./chunk-256ZO323.js";
12
16
  import "./chunk-BVA3537Z.js";
13
17
  import {
@@ -42,17 +46,17 @@ import {
42
46
  parseSceneComponentCaptureIntentV1,
43
47
  prepareSceneShotRenderInput,
44
48
  readSceneShotManifest
45
- } from "./chunk-AZSTZE64.js";
49
+ } from "./chunk-W44ASS4N.js";
46
50
  import "./chunk-QH3YI3ND.js";
47
51
  import "./chunk-QISFYLBB.js";
52
+ import "./chunk-3GNTA646.js";
48
53
  import "./chunk-VZ7TYX6Z.js";
49
- import "./chunk-LLC6TCH5.js";
50
54
  import "./chunk-DENF4TPI.js";
51
55
  import "./chunk-KYRDKK2D.js";
52
56
  import "./chunk-WREYUH2E.js";
53
57
  import {
54
58
  CueframeError
55
- } from "./chunk-WYKUWRQG.js";
59
+ } from "./chunk-A3MXR6JI.js";
56
60
  import "./chunk-7PA7FGLD.js";
57
61
  import {
58
62
  evaluateScene,
@@ -1109,12 +1113,25 @@ var CARD_COMPOSITION_ID = "CueFrameCardStill";
1109
1113
  var CARD_ROOT_FILENAME = "card.Root.local.tsx";
1110
1114
  var CARD_ENTRY_FILENAME = "card.entry.local.tsx";
1111
1115
  function generateCardRootSource(opts) {
1116
+ const fontsModule = JSON.stringify(join6(opts.renderEntryRoot, "src", "fonts"));
1112
1117
  return `// GENERATED by @cueframe/render-harness generateCardRootSource \u2014 DO NOT EDIT.
1113
1118
  import React from 'react';
1114
- import { Composition, AbsoluteFill, getInputProps } from 'remotion';
1119
+ import { Composition, AbsoluteFill, getInputProps, delayRender, continueRender } from 'remotion';
1120
+ import { ensureAllFontsLoaded } from ${fontsModule};
1115
1121
 
1116
1122
  const Card: React.FC = () => {
1117
1123
  const { html, cssVars } = getInputProps() as { html: string; cssVars?: Record<string, string> };
1124
+ // Hold the frame until the faces are registered. Without this the still can be
1125
+ // captured mid-load and fall back to a system face \u2014 the same silent
1126
+ // substitution, just intermittent instead of constant.
1127
+ const [handle] = React.useState(() => delayRender('card-fonts'));
1128
+ React.useEffect(() => {
1129
+ let cancelled = false;
1130
+ ensureAllFontsLoaded()
1131
+ .catch(() => undefined)
1132
+ .then(() => { if (!cancelled) continueRender(handle); });
1133
+ return () => { cancelled = true; };
1134
+ }, [handle]);
1118
1135
  return (
1119
1136
  <AbsoluteFill>
1120
1137
  <div
@@ -1162,7 +1179,11 @@ async function renderCardStill(opts) {
1162
1179
  const renderEntryRoot = resolveRenderEntryRoot(opts.renderEntryRoot);
1163
1180
  const browserExecutable = (await verifyLocalStagedBrowser(renderEntryRoot)).path;
1164
1181
  mkdirSync(opts.outDir, { recursive: true });
1165
- writeFileSync(join6(opts.outDir, CARD_ROOT_FILENAME), generateCardRootSource({ width, height, fps }));
1182
+ assertCardFontsAdmitted(opts.html, "still");
1183
+ writeFileSync(
1184
+ join6(opts.outDir, CARD_ROOT_FILENAME),
1185
+ generateCardRootSource({ width, height, fps, renderEntryRoot })
1186
+ );
1166
1187
  const entryPoint = join6(opts.outDir, CARD_ENTRY_FILENAME);
1167
1188
  writeFileSync(entryPoint, generateCardEntrySource());
1168
1189
  const { bundle } = await importFromRenderEntry(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cueframe/kernel",
3
- "version": "0.2.32",
3
+ "version": "0.2.34",
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": [
@@ -16,26 +16,26 @@
16
16
  "devDependencies": {
17
17
  "tsup": "^8.3.5",
18
18
  "typescript": "^5.9.3",
19
- "@cueframe/animate": "0.1.0",
20
- "@cueframe/cloud-import": "0.1.0",
21
19
  "@cueframe/account-model": "0.1.0",
22
- "@cueframe/composition-ops": "0.1.0",
20
+ "@cueframe/animate": "0.1.0",
21
+ "@cueframe/authoring": "0.1.0",
22
+ "@cueframe/brand-derivation": "0.1.0",
23
23
  "@cueframe/composition": "0.1.0",
24
- "@cueframe/compose": "0.1.0",
25
- "@cueframe/director": "0.1.0",
24
+ "@cueframe/composition-ops": "0.1.0",
26
25
  "@cueframe/component-runtime": "0.1.0",
27
26
  "@cueframe/core": "0.1.0",
27
+ "@cueframe/compose": "0.1.0",
28
+ "@cueframe/director": "0.1.0",
29
+ "@cueframe/cloud-import": "0.1.0",
30
+ "@cueframe/errors": "0.1.0",
28
31
  "@cueframe/mcp": "0.1.0",
29
32
  "@cueframe/media-model": "0.1.0",
30
- "@cueframe/foundation": "0.1.0",
31
- "@cueframe/errors": "0.1.0",
32
- "@cueframe/nle-export": "0.1.0",
33
- "@cueframe/render-harness": "0.1.0",
34
- "@cueframe/primitives": "0.1.0",
35
33
  "@cueframe/perception": "0.1.0",
36
- "@cueframe/authoring": "0.1.0",
37
34
  "@cueframe/plane": "0.1.0",
38
- "@cueframe/brand-derivation": "0.1.0"
35
+ "@cueframe/nle-export": "0.1.0",
36
+ "@cueframe/foundation": "0.1.0",
37
+ "@cueframe/primitives": "0.1.0",
38
+ "@cueframe/render-harness": "0.1.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "gsap": "3.13.0",
@@ -457,6 +457,10 @@
457
457
  "types": "./dist/render-harness/cardAssetAdmission.d.ts",
458
458
  "default": "./dist/render-harness/cardAssetAdmission.js"
459
459
  },
460
+ "./render-harness/cardFonts": {
461
+ "types": "./dist/render-harness/cardFonts.d.ts",
462
+ "default": "./dist/render-harness/cardFonts.js"
463
+ },
460
464
  "./render-harness/renderInputAssets": {
461
465
  "types": "./dist/render-harness/renderInputAssets.d.ts",
462
466
  "default": "./dist/render-harness/renderInputAssets.js"
@@ -1,9 +1,9 @@
1
- import {
2
- TextStage
3
- } from "./chunk-U4V4FZGE.js";
4
1
  import {
5
2
  recolor
6
3
  } from "./chunk-DLF4WVSE.js";
4
+ import {
5
+ TextStage
6
+ } from "./chunk-U4V4FZGE.js";
7
7
  import {
8
8
  resolveTypeface
9
9
  } from "./chunk-LT4PWSR2.js";
@@ -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";
19
15
  import {
20
16
  resolveEasing,
21
17
  staggerRise,
22
18
  staggerUp
23
19
  } 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,
@@ -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";
10
7
  import {
11
8
  fadeProgress,
12
9
  resolveEasing,
13
10
  staggerUp,
14
11
  wordPop
15
12
  } 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,3 +1,7 @@
1
+ import {
2
+ frostedGlassWipe,
3
+ spatialPush
4
+ } from "./chunk-QGAWDLYX.js";
1
5
  import {
2
6
  DashboardPopulate
3
7
  } from "./chunk-S5H6GH6M.js";
@@ -7,10 +11,6 @@ import {
7
11
  import {
8
12
  EASING_BY_INTENT
9
13
  } 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,