@cueframe/kernel 0.2.37 → 0.2.39

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 (40) hide show
  1. package/dist/_members/component-runtime/render.d.ts.map +1 -1
  2. package/dist/_members/component-runtime/renderDiagnostics.d.ts +13 -0
  3. package/dist/_members/component-runtime/renderDiagnostics.d.ts.map +1 -1
  4. package/dist/_members/component-runtime/sourceAdmission.d.ts +17 -5
  5. package/dist/_members/component-runtime/sourceAdmission.d.ts.map +1 -1
  6. package/dist/_members/composition/validators/composition.d.ts +16 -0
  7. package/dist/authoring/build-tools.js +5 -5
  8. package/dist/authoring/context.js +4 -4
  9. package/dist/authoring/tools.js +4 -4
  10. package/dist/authoring.js +6 -6
  11. package/dist/{chunk-256ZO323.js → chunk-26NRV5BK.js} +2 -2
  12. package/dist/{chunk-H5CPILOK.js → chunk-5JYYZDLK.js} +14 -6
  13. package/dist/{chunk-EGNTUGAM.js → chunk-AG7HKF2U.js} +1 -1
  14. package/dist/{chunk-LL5GI3IS.js → chunk-BLDL2EKL.js} +2 -2
  15. package/dist/chunk-C7TTI7FP.js +161 -0
  16. package/dist/{chunk-F2HXB6RG.js → chunk-GA6NRDK3.js} +56 -28
  17. package/dist/{chunk-AYZPTH7L.js → chunk-ID5QY7V6.js} +34 -6
  18. package/dist/{chunk-ZBQQFAE7.js → chunk-JNOM4FW3.js} +1 -1
  19. package/dist/{chunk-HLW3P5ZP.js → chunk-MJWRC7G7.js} +4 -4
  20. package/dist/{chunk-CMC6MLR3.js → chunk-POTCIQTA.js} +1 -1
  21. package/dist/{chunk-6A6AYPWO.js → chunk-S3HHEJMZ.js} +1 -1
  22. package/dist/{chunk-6VTNIYSR.js → chunk-ZUJCWFS7.js} +1 -1
  23. package/dist/component-runtime/render.js +1 -1
  24. package/dist/component-runtime/sourceAdmission.js +5 -3
  25. package/dist/component-runtime.js +7 -5
  26. package/dist/compose.js +18 -18
  27. package/dist/composition/graphics-plan.js +1 -1
  28. package/dist/composition/ops.js +3 -3
  29. package/dist/composition/validators.js +8 -2
  30. package/dist/composition-ops.js +3 -3
  31. package/dist/composition.js +8 -2
  32. package/dist/{context-43UC63RY.js → context-KNFL62QR.js} +4 -4
  33. package/dist/mcp/adapter.js +2 -2
  34. package/dist/mcp/core.js +1 -1
  35. package/dist/mcp/server.js +3 -3
  36. package/dist/mcp.js +3 -3
  37. package/dist/primitives.js +18 -18
  38. package/dist/render-harness.js +3 -3
  39. package/package.json +10 -10
  40. package/dist/chunk-SH5OTTVU.js +0 -88
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  buildDirectorContext
3
- } from "./chunk-6VTNIYSR.js";
4
- import "./chunk-CMC6MLR3.js";
5
- import "./chunk-EGNTUGAM.js";
6
- import "./chunk-AYZPTH7L.js";
3
+ } from "./chunk-ZUJCWFS7.js";
4
+ import "./chunk-POTCIQTA.js";
5
+ import "./chunk-AG7HKF2U.js";
6
+ import "./chunk-ID5QY7V6.js";
7
7
  import "./chunk-WPZKOVYF.js";
8
8
  import "./chunk-B7J5UUUV.js";
9
9
  import "./chunk-KYRDKK2D.js";
@@ -2,7 +2,7 @@ import {
2
2
  querySchemaShape,
3
3
  serializeQuery,
4
4
  waitForJob
5
- } from "../chunk-ZBQQFAE7.js";
5
+ } from "../chunk-JNOM4FW3.js";
6
6
  import {
7
7
  CURATED_TOOLS
8
8
  } from "../chunk-5YO4LAB7.js";
@@ -16,7 +16,7 @@ import {
16
16
  opById,
17
17
  safeParse,
18
18
  sniffImageMediaType
19
- } from "../chunk-F2HXB6RG.js";
19
+ } from "../chunk-GA6NRDK3.js";
20
20
  import "../chunk-2ESYSVXG.js";
21
21
 
22
22
  // ../mcp/src/adapter.ts
package/dist/mcp/core.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  text,
19
19
  textWithData,
20
20
  withMedia
21
- } from "../chunk-F2HXB6RG.js";
21
+ } from "../chunk-GA6NRDK3.js";
22
22
  import "../chunk-2ESYSVXG.js";
23
23
  export {
24
24
  __resetPreviewCache,
@@ -7,10 +7,10 @@ import {
7
7
  registerRawTools,
8
8
  registerSkillPrompts,
9
9
  titleCase
10
- } from "../chunk-LL5GI3IS.js";
11
- import "../chunk-ZBQQFAE7.js";
10
+ } from "../chunk-BLDL2EKL.js";
11
+ import "../chunk-JNOM4FW3.js";
12
12
  import "../chunk-5YO4LAB7.js";
13
- import "../chunk-F2HXB6RG.js";
13
+ import "../chunk-GA6NRDK3.js";
14
14
  import "../chunk-2ESYSVXG.js";
15
15
  export {
16
16
  RAW_EXCLUDED_OPERATION_IDS,
package/dist/mcp.js CHANGED
@@ -7,10 +7,10 @@ import {
7
7
  buildServer,
8
8
  registerCuratedTools,
9
9
  registerRawTools
10
- } from "./chunk-LL5GI3IS.js";
11
- import "./chunk-ZBQQFAE7.js";
10
+ } from "./chunk-BLDL2EKL.js";
11
+ import "./chunk-JNOM4FW3.js";
12
12
  import "./chunk-5YO4LAB7.js";
13
- import "./chunk-F2HXB6RG.js";
13
+ import "./chunk-GA6NRDK3.js";
14
14
  import "./chunk-2ESYSVXG.js";
15
15
  export {
16
16
  API_URLS,
@@ -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";
1
12
  import {
2
13
  catalog as catalog3
3
14
  } from "./chunk-FVDFPJHT.js";
15
+ import "./chunk-QGAWDLYX.js";
4
16
  import {
5
17
  catalog as catalog6
6
18
  } 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";
7
24
  import {
8
25
  catalog as catalog2
9
26
  } from "./chunk-WAUVKF2F.js";
27
+ import "./chunk-MFHXCHRI.js";
10
28
  import {
11
29
  catalog as catalog8
12
30
  } 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";
28
31
  import "./chunk-LT4PWSR2.js";
29
32
  import "./chunk-FWSJLHSV.js";
30
33
  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-256ZO323.js";
15
+ import "./chunk-26NRV5BK.js";
16
16
  import "./chunk-BVA3537Z.js";
17
17
  import {
18
18
  COMPONENT_STILL_RUNTIME_IDENTITY,
@@ -23,14 +23,14 @@ import {
23
23
  readMaterializedComponentSource,
24
24
  resolveRenderEntryRoot,
25
25
  verifyLocalStagedBrowser
26
- } from "./chunk-H5CPILOK.js";
26
+ } from "./chunk-5JYYZDLK.js";
27
27
  import "./chunk-WB2VFDQZ.js";
28
28
  import {
29
29
  sourceVersionId
30
30
  } from "./chunk-EXY4JJPH.js";
31
31
  import "./chunk-DAARYRNT.js";
32
32
  import "./chunk-5NGYBI5Z.js";
33
- import "./chunk-SH5OTTVU.js";
33
+ import "./chunk-C7TTI7FP.js";
34
34
  import {
35
35
  componentBrowserBackend
36
36
  } from "./chunk-5BAWOULP.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cueframe/kernel",
3
- "version": "0.2.37",
3
+ "version": "0.2.39",
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": [
@@ -18,24 +18,24 @@
18
18
  "typescript": "^5.9.3",
19
19
  "@cueframe/account-model": "0.1.0",
20
20
  "@cueframe/authoring": "0.1.0",
21
+ "@cueframe/animate": "0.1.0",
22
+ "@cueframe/cloud-import": "0.1.0",
21
23
  "@cueframe/compose": "0.1.0",
22
24
  "@cueframe/composition-ops": "0.1.0",
23
- "@cueframe/animate": "0.1.0",
24
25
  "@cueframe/brand-derivation": "0.1.0",
25
- "@cueframe/composition": "0.1.0",
26
- "@cueframe/cloud-import": "0.1.0",
27
26
  "@cueframe/core": "0.1.0",
27
+ "@cueframe/composition": "0.1.0",
28
28
  "@cueframe/component-runtime": "0.1.0",
29
- "@cueframe/foundation": "0.1.0",
30
29
  "@cueframe/director": "0.1.0",
31
- "@cueframe/mcp": "0.1.0",
30
+ "@cueframe/errors": "0.1.0",
31
+ "@cueframe/foundation": "0.1.0",
32
+ "@cueframe/media-model": "0.1.0",
32
33
  "@cueframe/nle-export": "0.1.0",
33
34
  "@cueframe/perception": "0.1.0",
34
- "@cueframe/plane": "0.1.0",
35
35
  "@cueframe/primitives": "0.1.0",
36
- "@cueframe/media-model": "0.1.0",
37
- "@cueframe/render-harness": "0.1.0",
38
- "@cueframe/errors": "0.1.0"
36
+ "@cueframe/plane": "0.1.0",
37
+ "@cueframe/mcp": "0.1.0",
38
+ "@cueframe/render-harness": "0.1.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "gsap": "3.13.0",
@@ -1,88 +0,0 @@
1
- import {
2
- ComponentRuntimeError
3
- } from "./chunk-ZVG446DJ.js";
4
-
5
- // ../execution/component-runtime/src/sourceAdmission.ts
6
- import { parse } from "@babel/parser";
7
- function staticMember(node) {
8
- if (!node || typeof node !== "object") return null;
9
- const candidate = node;
10
- if (candidate.type !== "MemberExpression" && candidate.type !== "OptionalMemberExpression") return null;
11
- const property = candidate.property;
12
- if (!property) return null;
13
- const name = candidate.computed === true ? property.type === "StringLiteral" && typeof property.value === "string" ? property.value : null : property.type === "Identifier" && typeof property.name === "string" ? property.name : null;
14
- return name === null ? null : { object: candidate.object, property: name };
15
- }
16
- function sourceAssetHandleReads(tsxSource) {
17
- return scanSourceReads(tsxSource).assetHandleSlots;
18
- }
19
- function scanSourceReads(tsxSource) {
20
- let root;
21
- try {
22
- root = parse(tsxSource, {
23
- sourceType: "module",
24
- plugins: ["jsx", "typescript"],
25
- errorRecovery: false
26
- });
27
- } catch (error) {
28
- throw new ComponentRuntimeError(
29
- "component_does_not_compile",
30
- error instanceof Error ? error.message : String(error),
31
- { cause: error }
32
- );
33
- }
34
- const reads = /* @__PURE__ */ new Set();
35
- let preparedPlan = false;
36
- const visit = (value) => {
37
- if (!value || typeof value !== "object") return;
38
- if (Array.isArray(value)) {
39
- for (const child of value) visit(child);
40
- return;
41
- }
42
- const node = value;
43
- const leaf = staticMember(node);
44
- if (leaf?.property === "preparedSceneShot") preparedPlan = true;
45
- if (leaf?.property === "handle") {
46
- const slot = staticMember(leaf.object);
47
- const rootObject = slot?.object;
48
- if (slot && rootObject?.type === "Identifier" && rootObject.name === "assets") {
49
- reads.add(slot.property);
50
- }
51
- }
52
- for (const [key, child] of Object.entries(node)) {
53
- if (key === "loc" || key === "start" || key === "end" || key === "errors" || key === "comments") continue;
54
- visit(child);
55
- }
56
- };
57
- visit(root);
58
- return { assetHandleSlots: reads, readsPreparedScenePlan: preparedPlan };
59
- }
60
- function missingDeclaredAssetHandleReads(tsxSource, manifest) {
61
- const slots = Object.keys(manifest.assets);
62
- if (slots.length === 0) return [];
63
- const scan = scanSourceReads(tsxSource);
64
- if (manifest.sceneShot !== void 0 && scan.readsPreparedScenePlan) return [];
65
- return slots.filter((slot) => !scan.assetHandleSlots.has(slot));
66
- }
67
- function assertSourceReadsDeclaredAssets(source) {
68
- const missing = missingDeclaredAssetHandleReads(source.tsxSource, source.manifest);
69
- if (missing.length === 0) return;
70
- throw new ComponentRuntimeError(
71
- "invalid_component_source",
72
- `The manifest declares asset slot(s) ${missing.map((slot) => JSON.stringify(slot)).join(", ")} but the source never reads ${missing.length === 1 ? "it" : "them"} through \`assets[slot].handle\`. Declared slots are delivered to the mount as \`assets[slot].handle\` (a fetchable URL for <Img>/<Video>/<Audio>); \`params\` is the clip's \`props\` and carries no asset URL. Mount as ({ durationInFrames, params, assets, render }) and read \`assets.${missing[0]}.handle\`.`,
73
- {
74
- locator: {
75
- stage: "source-admission",
76
- componentId: source.componentId,
77
- path: "manifest.assets",
78
- slots: missing
79
- }
80
- }
81
- );
82
- }
83
-
84
- export {
85
- sourceAssetHandleReads,
86
- missingDeclaredAssetHandleReads,
87
- assertSourceReadsDeclaredAssets
88
- };