@cueframe/kernel 0.2.26 → 0.2.28

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.
@@ -6,7 +6,9 @@ import { type ComponentManifestV2, type ComponentSourceV2 } from './contracts.js
6
6
  * intentionally not proof that every declared slot is consumed.
7
7
  */
8
8
  export declare function sourceAssetHandleReads(tsxSource: string): ReadonlySet<string>;
9
- export declare function missingDeclaredAssetHandleReads(tsxSource: string, manifest: Pick<ComponentManifestV2, 'assets'>): string[];
9
+ export declare function missingDeclaredAssetHandleReads(tsxSource: string, manifest: Pick<ComponentManifestV2, 'assets'> & {
10
+ sceneShot?: unknown;
11
+ }): string[];
10
12
  /** Refuse a component before bundling when its declared media cannot reach the mount. */
11
13
  export declare function assertSourceReadsDeclaredAssets(source: Pick<ComponentSourceV2, 'componentId' | 'tsxSource' | 'manifest'>): void;
12
14
  //# sourceMappingURL=sourceAdmission.d.ts.map
@@ -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,GAC5C,MAAM,EAAE,CAKV;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
  } from "./chunk-EXY4JJPH.js";
14
14
  import {
15
15
  assertSourceReadsDeclaredAssets
16
- } from "./chunk-WXHD6OUT.js";
16
+ } from "./chunk-SH5OTTVU.js";
17
17
  import {
18
18
  resolvedComponentRenderer
19
19
  } from "./chunk-5BAWOULP.js";
@@ -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,13 +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
61
  const slots = Object.keys(manifest.assets);
57
62
  if (slots.length === 0) return [];
58
- const reads = sourceAssetHandleReads(tsxSource);
59
- 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));
60
66
  }
61
67
  function assertSourceReadsDeclaredAssets(source) {
62
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-WXHD6OUT.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-TXI53LIT.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-WXHD6OUT.js";
76
+ } from "./chunk-SH5OTTVU.js";
77
77
  import {
78
78
  HALF_FLOAT_COLOR_TARGET_EXTENSIONS,
79
79
  admittedHost,
@@ -8,7 +8,7 @@ import {
8
8
  isRemoteUrl,
9
9
  renderInputAssets
10
10
  } from "./chunk-MN6D3U5N.js";
11
- import "./chunk-TXI53LIT.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-WXHD6OUT.js";
29
+ import "./chunk-SH5OTTVU.js";
30
30
  import {
31
31
  componentBrowserBackend
32
32
  } from "./chunk-5BAWOULP.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cueframe/kernel",
3
- "version": "0.2.26",
3
+ "version": "0.2.28",
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",
23
- "@cueframe/composition": "0.1.0",
24
- "@cueframe/brand-derivation": "0.1.0",
25
- "@cueframe/compose": "0.1.0",
26
21
  "@cueframe/composition-ops": "0.1.0",
22
+ "@cueframe/component-runtime": "0.1.0",
23
+ "@cueframe/cloud-import": "0.1.0",
24
+ "@cueframe/animate": "0.1.0",
27
25
  "@cueframe/core": "0.1.0",
26
+ "@cueframe/composition": "0.1.0",
28
27
  "@cueframe/director": "0.1.0",
29
- "@cueframe/component-runtime": "0.1.0",
30
- "@cueframe/perception": "0.1.0",
31
- "@cueframe/foundation": "0.1.0",
28
+ "@cueframe/compose": "0.1.0",
32
29
  "@cueframe/media-model": "0.1.0",
33
- "@cueframe/nle-export": "0.1.0",
34
- "@cueframe/primitives": "0.1.0",
35
- "@cueframe/render-harness": "0.1.0",
36
30
  "@cueframe/mcp": "0.1.0",
31
+ "@cueframe/foundation": "0.1.0",
37
32
  "@cueframe/errors": "0.1.0",
38
- "@cueframe/plane": "0.1.0"
33
+ "@cueframe/nle-export": "0.1.0",
34
+ "@cueframe/plane": "0.1.0",
35
+ "@cueframe/primitives": "0.1.0",
36
+ "@cueframe/brand-derivation": "0.1.0",
37
+ "@cueframe/perception": "0.1.0",
38
+ "@cueframe/render-harness": "0.1.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "gsap": "3.13.0",