@cueframe/kernel 0.2.38 → 0.2.40
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.
- package/dist/_members/component-runtime/render.d.ts.map +1 -1
- package/dist/_members/component-runtime/renderDiagnostics.d.ts +16 -0
- package/dist/_members/component-runtime/renderDiagnostics.d.ts.map +1 -1
- package/dist/_members/component-runtime/sourceAdmission.d.ts +17 -5
- package/dist/_members/component-runtime/sourceAdmission.d.ts.map +1 -1
- package/dist/chunk-C7TTI7FP.js +161 -0
- package/dist/{chunk-H5CPILOK.js → chunk-CJF3KBJ5.js} +17 -6
- package/dist/{chunk-256ZO323.js → chunk-QHLCJ3PE.js} +2 -2
- package/dist/component-runtime/render.js +1 -1
- package/dist/component-runtime/sourceAdmission.js +5 -3
- package/dist/component-runtime.js +7 -5
- package/dist/compose.js +7 -7
- package/dist/composition-ops.js +2 -2
- package/dist/core/render.js +2 -2
- package/dist/core.js +2 -2
- package/dist/primitives/effects.js +2 -2
- package/dist/primitives/ui-blocks.js +2 -2
- package/dist/primitives.js +7 -7
- package/dist/render-harness.js +11 -11
- package/package.json +12 -12
- package/dist/chunk-SH5OTTVU.js +0 -88
- package/dist/{chunk-VLJOIUHL.js → chunk-A76GTLSA.js} +3 -3
- package/dist/{chunk-UOYKFFFK.js → chunk-L5XECASW.js} +4 -4
- package/dist/{chunk-WAUVKF2F.js → chunk-O22P5IAX.js} +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../src/render.ts"],"names":[],"mappings":"AAMA,OAAO,EAGL,KAAK,SAAS,EACf,MAAM,gCAAgC,CAAC;AAMxC,OAAO,EAEL,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,0BAA0B,EAK/B,KAAK,uCAAuC,EAC5C,KAAK,iCAAiC,IAAI,wBAAwB,EAClE,KAAK,kCAAkC,IAAI,uCAAuC,EAClF,KAAK,sCAAsC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M,EAAE,MAAM,CAAC,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IACxG,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,CAAC;CACpD;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,aAAa,GAAG,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC/F,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD;wEACoE;IACpE,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,wBAAwB,GAC7B,OAAO,CAAC;IACT,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,yBAAyB,CAAC;IAC1C,IAAI,EAAE,0BAA0B,GAAG,IAAI,CAAC;CACzC,CAAC,CAoID"}
|
|
@@ -3,6 +3,22 @@ export declare const GRAPHICS_ATTESTATION_PREFIX = "__cueframe_graphics_v2__:";
|
|
|
3
3
|
export declare const CAPTURE_PAGE_RASTER_ATTESTATION_PREFIX = "__cueframe_capture_raster_v1__:";
|
|
4
4
|
export declare const BROWSER_RUNTIME_ERROR_PREFIX = "__cueframe_component_error_v2__:";
|
|
5
5
|
export declare function componentRuntimeError(error: unknown, fallbackCode: RuntimeErrorCode, retryable?: boolean): ComponentRuntimeError;
|
|
6
|
+
/**
|
|
7
|
+
* Page diagnostics for one bake. Remotion renders on up to four pages at once,
|
|
8
|
+
* so one TypeError in the author's code arrives up to four times; joined
|
|
9
|
+
* verbatim it read as "×3" and sent a reporter bisecting three components for
|
|
10
|
+
* a defect in one. A diagnostic's identity is its first line (the exception's
|
|
11
|
+
* own `Name: message`); the stack of the first occurrence is kept as its
|
|
12
|
+
* localisation. Stacks from concurrent pages differ in frames that carry no
|
|
13
|
+
* information (`at async Promise.all (index N)`), so byte-identity is not it.
|
|
14
|
+
*/
|
|
15
|
+
export declare function pageDiagnosticSink(limit?: number): {
|
|
16
|
+
push(entry: {
|
|
17
|
+
type: string;
|
|
18
|
+
message: string;
|
|
19
|
+
}): void;
|
|
20
|
+
readonly lines: readonly string[];
|
|
21
|
+
};
|
|
6
22
|
export declare function parseGraphicsAttestationLog(text: string): ComponentGraphicsActualV2 | null;
|
|
7
23
|
export declare function parseCapturePageRasterAttestationLog(text: string): CapturePageRasterAttestation | null;
|
|
8
24
|
export declare function graphicsCollector(required: ComponentGraphicsRequirementV2): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderDiagnostics.d.ts","sourceRoot":"","sources":["../src/renderDiagnostics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmE,qBAAqB,EAA6B,KAAK,uCAAuC,IAAI,4BAA4B,EAAE,KAAK,yBAAyB,EAAE,KAAK,8BAA8B,EAAE,KAAK,yBAAyB,IAAI,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE1V,eAAO,MAAM,2BAA2B,8BAA8B,CAAC;AACvE,eAAO,MAAM,sCAAsC,oCAAoC,CAAC;AACxF,eAAO,MAAM,4BAA4B,qCAAqC,CAAC;AAE/E,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,OAAO,EACd,YAAY,EAAE,gBAAgB,EAC9B,SAAS,UAAQ,GAChB,qBAAqB,CAiBvB;AAED,wBAAgB,2BAA2B,CAAC,IAAI,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,MAAM,CAAA;KAAE,GAAG,IAAI;eAiB9B,yBAAyB;EAUvC"}
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import { type ComponentManifestV2, type ComponentSourceV2 } from './contracts.js';
|
|
2
|
+
/** Slots the source demonstrably takes delivery of, or `every` when it reads `assets` dynamically. */
|
|
3
|
+
export type SourceAssetReads = {
|
|
4
|
+
slots: ReadonlySet<string>;
|
|
5
|
+
every: boolean;
|
|
6
|
+
};
|
|
2
7
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
8
|
+
* Which declared slots the source reads, from the AST — comments, strings,
|
|
9
|
+
* regexes and type positions are not runtime reads. A static `assets.<slot>`
|
|
10
|
+
* (dot, bracket-literal or optional) or a destructure `{ <slot> } = assets`
|
|
11
|
+
* proves that slot. Any DYNAMIC use of `assets` — `assets[key]`,
|
|
12
|
+
* `Object.entries(assets)`, spreading or passing it on — proves every slot:
|
|
13
|
+
* the source took delivery through `assets`, which is all this rule exists to
|
|
14
|
+
* establish. Only `.handle` was accepted before, which refused working
|
|
15
|
+
* components that iterate their slots or hand `assets.<slot>` to a harness
|
|
16
|
+
* primitive, and taught authors to add dead `void assets.x?.handle` lines.
|
|
7
17
|
*/
|
|
8
|
-
export declare function
|
|
18
|
+
export declare function sourceAssetReads(tsxSource: string): SourceAssetReads;
|
|
9
19
|
export declare function missingDeclaredAssetHandleReads(tsxSource: string, manifest: Pick<ComponentManifestV2, 'assets'> & {
|
|
10
20
|
sceneShot?: unknown;
|
|
11
21
|
}): string[];
|
|
22
|
+
/** The refusal text, written once for the public gate and the Convex create/update lane. */
|
|
23
|
+
export declare function describeMissingAssetReads(missing: readonly string[]): string;
|
|
12
24
|
/** Refuse a component before bundling when its declared media cannot reach the mount. */
|
|
13
25
|
export declare function assertSourceReadsDeclaredAssets(source: Pick<ComponentSourceV2, 'componentId' | 'tsxSource' | 'manifest'>): void;
|
|
14
26
|
//# 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;
|
|
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;AAIxB,sGAAsG;AACtG,MAAM,MAAM,gBAAgB,GAAG;IAAE,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,CAAC;AAsB9E;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,gBAAgB,CAGpE;AAgHD,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,CA0BV;AAED,4FAA4F;AAC5F,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAQ5E;AAED,yFAAyF;AACzF,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,WAAW,GAAG,UAAU,CAAC,GACxE,IAAI,CAeN"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ComponentRuntimeError
|
|
3
|
+
} from "./chunk-ZVG446DJ.js";
|
|
4
|
+
|
|
5
|
+
// ../execution/component-runtime/src/sourceAdmission.ts
|
|
6
|
+
import { parse } from "@babel/parser";
|
|
7
|
+
var AST_METADATA_KEYS = /* @__PURE__ */ new Set(["loc", "start", "end", "errors", "comments", "extra", "leadingComments", "trailingComments", "innerComments"]);
|
|
8
|
+
var BINDING_KEYS = /* @__PURE__ */ new Set(["id", "params", "param", "label", "local", "imported", "exported", "name"]);
|
|
9
|
+
function isAssets(node) {
|
|
10
|
+
return !!node && typeof node === "object" && node.type === "Identifier" && node.name === "assets";
|
|
11
|
+
}
|
|
12
|
+
function staticMember(node) {
|
|
13
|
+
if (!node || typeof node !== "object") return null;
|
|
14
|
+
const candidate = node;
|
|
15
|
+
if (candidate.type !== "MemberExpression" && candidate.type !== "OptionalMemberExpression") return null;
|
|
16
|
+
const property = candidate.property;
|
|
17
|
+
if (!property) return null;
|
|
18
|
+
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;
|
|
19
|
+
return name === null ? null : { object: candidate.object, property: name };
|
|
20
|
+
}
|
|
21
|
+
function sourceAssetReads(tsxSource) {
|
|
22
|
+
const scan = scanSourceReads(tsxSource);
|
|
23
|
+
return { slots: scan.assetSlots, every: scan.readsEverySlot };
|
|
24
|
+
}
|
|
25
|
+
function scanSourceReads(tsxSource) {
|
|
26
|
+
let root;
|
|
27
|
+
try {
|
|
28
|
+
root = parse(tsxSource, {
|
|
29
|
+
sourceType: "module",
|
|
30
|
+
plugins: ["jsx", "typescript"],
|
|
31
|
+
errorRecovery: false
|
|
32
|
+
});
|
|
33
|
+
} catch (error) {
|
|
34
|
+
throw new ComponentRuntimeError(
|
|
35
|
+
"component_does_not_compile",
|
|
36
|
+
error instanceof Error ? error.message : String(error),
|
|
37
|
+
{ cause: error }
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
const reads = /* @__PURE__ */ new Set();
|
|
41
|
+
let every = false;
|
|
42
|
+
let preparedPlan = false;
|
|
43
|
+
const recordPattern = (pattern) => {
|
|
44
|
+
for (const property of pattern.properties ?? []) {
|
|
45
|
+
if (property.type === "RestElement") {
|
|
46
|
+
every = true;
|
|
47
|
+
continue;
|
|
48
|
+
}
|
|
49
|
+
const key = property.key;
|
|
50
|
+
if (property.computed === true || !key) {
|
|
51
|
+
every = true;
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
if (key.type === "Identifier" && typeof key.name === "string") reads.add(key.name);
|
|
55
|
+
else if (key.type === "StringLiteral" && typeof key.value === "string") reads.add(key.value);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const visit = (value, position) => {
|
|
59
|
+
if (!value || typeof value !== "object") return;
|
|
60
|
+
if (Array.isArray(value)) {
|
|
61
|
+
for (const child of value) visit(child, position);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const node = value;
|
|
65
|
+
const type = typeof node.type === "string" ? node.type : "";
|
|
66
|
+
if (type === "Identifier") {
|
|
67
|
+
if (position === "value" && node.name === "assets") every = true;
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (type.startsWith("TS")) {
|
|
71
|
+
if ("expression" in node) visit(node.expression, "value");
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const leaf = staticMember(node);
|
|
75
|
+
if (leaf?.property === "preparedSceneShot") preparedPlan = true;
|
|
76
|
+
if (type === "MemberExpression" || type === "OptionalMemberExpression") {
|
|
77
|
+
if (isAssets(node.object)) {
|
|
78
|
+
if (leaf) reads.add(leaf.property);
|
|
79
|
+
else every = true;
|
|
80
|
+
} else {
|
|
81
|
+
visit(node.object, "value");
|
|
82
|
+
}
|
|
83
|
+
if (node.computed === true) visit(node.property, "value");
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (type === "VariableDeclarator" && isAssets(node.init) && node.id?.type === "ObjectPattern") {
|
|
87
|
+
recordPattern(node.id);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
if (type === "ObjectPattern") {
|
|
91
|
+
for (const property of node.properties ?? []) {
|
|
92
|
+
if (property.type === "RestElement") {
|
|
93
|
+
visit(property.argument, "binding");
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
const key = property.key;
|
|
97
|
+
const nested = property.value;
|
|
98
|
+
if (property.computed === true) visit(key, "value");
|
|
99
|
+
if (property.computed !== true && key?.type === "Identifier" && key.name === "assets" && nested?.type === "ObjectPattern") {
|
|
100
|
+
recordPattern(nested);
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
visit(nested, "binding");
|
|
104
|
+
}
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (type === "AssignmentPattern") {
|
|
108
|
+
visit(node.left, "binding");
|
|
109
|
+
visit(node.right, "value");
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (type === "ObjectProperty" || type === "ObjectMethod" || type === "ClassProperty" || type === "ClassMethod") {
|
|
113
|
+
if (node.computed === true) visit(node.key, "value");
|
|
114
|
+
for (const [key, child] of Object.entries(node)) {
|
|
115
|
+
if (key === "key" || AST_METADATA_KEYS.has(key)) continue;
|
|
116
|
+
visit(child, BINDING_KEYS.has(key) ? "binding" : "value");
|
|
117
|
+
}
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
for (const [key, child] of Object.entries(node)) {
|
|
121
|
+
if (AST_METADATA_KEYS.has(key)) continue;
|
|
122
|
+
visit(child, BINDING_KEYS.has(key) ? "binding" : "value");
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
visit(root, "value");
|
|
126
|
+
return { assetSlots: reads, readsEverySlot: every, readsPreparedScenePlan: preparedPlan };
|
|
127
|
+
}
|
|
128
|
+
function missingDeclaredAssetHandleReads(tsxSource, manifest) {
|
|
129
|
+
const slots = Object.keys(manifest.assets);
|
|
130
|
+
if (slots.length === 0) return [];
|
|
131
|
+
const scan = scanSourceReads(tsxSource);
|
|
132
|
+
if (manifest.sceneShot !== void 0 && scan.readsPreparedScenePlan) return [];
|
|
133
|
+
if (scan.readsEverySlot) return [];
|
|
134
|
+
return slots.filter((slot) => !scan.assetSlots.has(slot));
|
|
135
|
+
}
|
|
136
|
+
function describeMissingAssetReads(missing) {
|
|
137
|
+
return `The manifest declares asset slot(s) ${missing.map((slot) => JSON.stringify(slot)).join(", ")} but the source never reads ${missing.length === 1 ? "it" : "them"} from \`assets\`. Declared slots are delivered to the mount as \`assets[slot]\` ({ handle: a fetchable URL for <Img>/<Video>/<Audio>, \u2026 }); \`params\` is the clip's \`props\` and carries no asset URL. Mount as ({ durationInFrames, params, assets, render }) and read \`assets.${missing[0]}.handle\`, or read the slots dynamically (\`assets[key]\`, \`Object.entries(assets)\`), which counts for every declared slot.`;
|
|
138
|
+
}
|
|
139
|
+
function assertSourceReadsDeclaredAssets(source) {
|
|
140
|
+
const missing = missingDeclaredAssetHandleReads(source.tsxSource, source.manifest);
|
|
141
|
+
if (missing.length === 0) return;
|
|
142
|
+
throw new ComponentRuntimeError(
|
|
143
|
+
"invalid_component_source",
|
|
144
|
+
describeMissingAssetReads(missing),
|
|
145
|
+
{
|
|
146
|
+
locator: {
|
|
147
|
+
stage: "source-admission",
|
|
148
|
+
componentId: source.componentId,
|
|
149
|
+
path: "manifest.assets",
|
|
150
|
+
slots: missing
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export {
|
|
157
|
+
sourceAssetReads,
|
|
158
|
+
missingDeclaredAssetHandleReads,
|
|
159
|
+
describeMissingAssetReads,
|
|
160
|
+
assertSourceReadsDeclaredAssets
|
|
161
|
+
};
|
|
@@ -277,6 +277,19 @@ function componentRuntimeError(error, fallbackCode, retryable = false) {
|
|
|
277
277
|
}
|
|
278
278
|
return new ComponentRuntimeError(fallbackCode, message, { retryable, cause: error });
|
|
279
279
|
}
|
|
280
|
+
function pageDiagnosticSink(limit = 5) {
|
|
281
|
+
const lines = [];
|
|
282
|
+
const seen = /* @__PURE__ */ new Set();
|
|
283
|
+
return {
|
|
284
|
+
push(entry) {
|
|
285
|
+
const key = `${entry.type}: ${entry.message.split("\n", 1)[0]}`;
|
|
286
|
+
if (lines.length >= limit || seen.has(key)) return;
|
|
287
|
+
seen.add(key);
|
|
288
|
+
lines.push(`${entry.type}: ${entry.message.slice(0, 2e3)}`);
|
|
289
|
+
},
|
|
290
|
+
lines
|
|
291
|
+
};
|
|
292
|
+
}
|
|
280
293
|
function parseGraphicsAttestationLog(text) {
|
|
281
294
|
if (!text.startsWith(GRAPHICS_ATTESTATION_PREFIX)) return null;
|
|
282
295
|
try {
|
|
@@ -2001,12 +2014,10 @@ async function renderComponentAlpha(opts) {
|
|
|
2001
2014
|
throw componentRuntimeError(error, "component_resource_exhausted", true);
|
|
2002
2015
|
}
|
|
2003
2016
|
let primaryError;
|
|
2004
|
-
const pageDiagnostics =
|
|
2017
|
+
const pageDiagnostics = pageDiagnosticSink();
|
|
2005
2018
|
try {
|
|
2006
2019
|
await sizeLocalLaneWindows(renderEntryRoot, browser, width, height);
|
|
2007
|
-
const firewall = await installComponentRequestFirewall(browser, bundleServer.origin, opts.allowedAssetOrigins ?? /* @__PURE__ */ new Set(),
|
|
2008
|
-
if (pageDiagnostics.length < 5) pageDiagnostics.push(`${entry.type}: ${entry.message.slice(0, 2e3)}`);
|
|
2009
|
-
});
|
|
2020
|
+
const firewall = await installComponentRequestFirewall(browser, bundleServer.origin, opts.allowedAssetOrigins ?? /* @__PURE__ */ new Set(), pageDiagnostics.push);
|
|
2010
2021
|
const host = await assertComponentBrowserHardware(browser, requiredGraphics);
|
|
2011
2022
|
const composition = await selectComposition({
|
|
2012
2023
|
serveUrl,
|
|
@@ -2075,10 +2086,10 @@ async function renderComponentAlpha(opts) {
|
|
|
2075
2086
|
return { videoPath, actualGraphics: collector.receipt(), host };
|
|
2076
2087
|
} catch (error) {
|
|
2077
2088
|
primaryError = componentRuntimeError(error, "component_runtime_error");
|
|
2078
|
-
if (pageDiagnostics.length && primaryError instanceof ComponentRuntimeError) {
|
|
2089
|
+
if (pageDiagnostics.lines.length && primaryError instanceof ComponentRuntimeError) {
|
|
2079
2090
|
primaryError = new ComponentRuntimeError(
|
|
2080
2091
|
primaryError.code,
|
|
2081
|
-
`${pageDiagnostics.join("\n")}
|
|
2092
|
+
`${pageDiagnostics.lines.join("\n")}
|
|
2082
2093
|
${primaryError.message}`,
|
|
2083
2094
|
{
|
|
2084
2095
|
retryable: primaryError.retryable,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
assertSceneShotParamsAdmitted,
|
|
4
4
|
materializeComponentSource,
|
|
5
5
|
renderComponentAlpha
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CJF3KBJ5.js";
|
|
7
7
|
import {
|
|
8
8
|
componentArtifactId,
|
|
9
9
|
componentBundleId,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-EXY4JJPH.js";
|
|
14
14
|
import {
|
|
15
15
|
assertSourceReadsDeclaredAssets
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-C7TTI7FP.js";
|
|
17
17
|
import {
|
|
18
18
|
resolvedComponentRenderer
|
|
19
19
|
} from "./chunk-5BAWOULP.js";
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertSourceReadsDeclaredAssets,
|
|
3
|
+
describeMissingAssetReads,
|
|
3
4
|
missingDeclaredAssetHandleReads,
|
|
4
|
-
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
sourceAssetReads
|
|
6
|
+
} from "../chunk-C7TTI7FP.js";
|
|
6
7
|
import "../chunk-ZVG446DJ.js";
|
|
7
8
|
import "../chunk-2ESYSVXG.js";
|
|
8
9
|
export {
|
|
9
10
|
assertSourceReadsDeclaredAssets,
|
|
11
|
+
describeMissingAssetReads,
|
|
10
12
|
missingDeclaredAssetHandleReads,
|
|
11
|
-
|
|
13
|
+
sourceAssetReads
|
|
12
14
|
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
sourceIdentityForBake,
|
|
8
8
|
startComponentAssetServer,
|
|
9
9
|
verifyComponentOutput
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QHLCJ3PE.js";
|
|
11
11
|
import {
|
|
12
12
|
COMPONENT_MEDIA_HEADROOM,
|
|
13
13
|
COMPONENT_MEDIA_TIERS,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
stagedBrowserLocator,
|
|
53
53
|
verifyLocalStagedBrowser,
|
|
54
54
|
vp9AlphaFfmpegOverride
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-CJF3KBJ5.js";
|
|
56
56
|
import "./chunk-WB2VFDQZ.js";
|
|
57
57
|
import {
|
|
58
58
|
bundleIdentityFields,
|
|
@@ -71,9 +71,10 @@ import {
|
|
|
71
71
|
} from "./chunk-5NGYBI5Z.js";
|
|
72
72
|
import {
|
|
73
73
|
assertSourceReadsDeclaredAssets,
|
|
74
|
+
describeMissingAssetReads,
|
|
74
75
|
missingDeclaredAssetHandleReads,
|
|
75
|
-
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
sourceAssetReads
|
|
77
|
+
} from "./chunk-C7TTI7FP.js";
|
|
77
78
|
import {
|
|
78
79
|
HALF_FLOAT_COLOR_TARGET_EXTENSIONS,
|
|
79
80
|
admittedHost,
|
|
@@ -210,6 +211,7 @@ export {
|
|
|
210
211
|
componentStillRasterAffectingFlags,
|
|
211
212
|
createComponentStillSession,
|
|
212
213
|
decideComponentRequest,
|
|
214
|
+
describeMissingAssetReads,
|
|
213
215
|
generateLocalRoot,
|
|
214
216
|
importFromRenderEntry,
|
|
215
217
|
installComponentRequestFirewall,
|
|
@@ -232,7 +234,7 @@ export {
|
|
|
232
234
|
sha256Hex,
|
|
233
235
|
shouldIsolateWebGpuStillBrowser,
|
|
234
236
|
sizeLocalLaneWindows,
|
|
235
|
-
|
|
237
|
+
sourceAssetReads,
|
|
236
238
|
sourceIdentityForBake,
|
|
237
239
|
sourceVersionId,
|
|
238
240
|
stagedBrowserLocator,
|
package/dist/compose.js
CHANGED
|
@@ -5,9 +5,6 @@ import {
|
|
|
5
5
|
} from "./chunk-QDBVYZSF.js";
|
|
6
6
|
import "./chunk-JQMPHKLU.js";
|
|
7
7
|
import "./chunk-ZZRBKGDA.js";
|
|
8
|
-
import {
|
|
9
|
-
catalog as catalog4
|
|
10
|
-
} from "./chunk-JRJQECCF.js";
|
|
11
8
|
import {
|
|
12
9
|
catalog as catalog7
|
|
13
10
|
} from "./chunk-TE3PNQG6.js";
|
|
@@ -22,23 +19,26 @@ import {
|
|
|
22
19
|
import "./chunk-QGAWDLYX.js";
|
|
23
20
|
import {
|
|
24
21
|
catalog as catalog6
|
|
25
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-A76GTLSA.js";
|
|
26
23
|
import "./chunk-S5H6GH6M.js";
|
|
27
|
-
import "./chunk-QAGGJHAF.js";
|
|
28
24
|
import {
|
|
29
25
|
catalog as catalog5
|
|
30
26
|
} from "./chunk-RAXHCRVV.js";
|
|
31
27
|
import {
|
|
32
28
|
catalog as catalog2
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-MFHXCHRI.js";
|
|
29
|
+
} from "./chunk-O22P5IAX.js";
|
|
35
30
|
import {
|
|
36
31
|
catalog as catalog8
|
|
37
32
|
} from "./chunk-RL5SO653.js";
|
|
38
33
|
import "./chunk-LT4PWSR2.js";
|
|
39
34
|
import "./chunk-FWSJLHSV.js";
|
|
40
35
|
import "./chunk-ZFEXATWN.js";
|
|
36
|
+
import {
|
|
37
|
+
catalog as catalog4
|
|
38
|
+
} from "./chunk-JRJQECCF.js";
|
|
41
39
|
import "./chunk-XHGZ2E77.js";
|
|
40
|
+
import "./chunk-QAGGJHAF.js";
|
|
41
|
+
import "./chunk-MFHXCHRI.js";
|
|
42
42
|
import "./chunk-W2245F6G.js";
|
|
43
43
|
import "./chunk-JBWSK2YD.js";
|
|
44
44
|
import "./chunk-OBA6NW4S.js";
|
package/dist/composition-ops.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
playableSpans
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-L5XECASW.js";
|
|
4
4
|
import "./chunk-QH3YI3ND.js";
|
|
5
5
|
import "./chunk-QISFYLBB.js";
|
|
6
|
-
import "./chunk-IYZEK6WY.js";
|
|
7
6
|
import "./chunk-VZ7TYX6Z.js";
|
|
7
|
+
import "./chunk-IYZEK6WY.js";
|
|
8
8
|
import "./chunk-DENF4TPI.js";
|
|
9
9
|
import {
|
|
10
10
|
createHeadlessStore,
|
package/dist/core/render.js
CHANGED
|
@@ -66,15 +66,15 @@ import {
|
|
|
66
66
|
sliceTranscriptWords,
|
|
67
67
|
splitIntoSentences,
|
|
68
68
|
validateComposition
|
|
69
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-L5XECASW.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-IYZEK6WY.js";
|
|
77
76
|
import "../chunk-VZ7TYX6Z.js";
|
|
77
|
+
import "../chunk-IYZEK6WY.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-
|
|
13
|
+
} from "./chunk-L5XECASW.js";
|
|
14
14
|
import "./chunk-QH3YI3ND.js";
|
|
15
15
|
import "./chunk-QISFYLBB.js";
|
|
16
|
-
import "./chunk-IYZEK6WY.js";
|
|
17
16
|
import "./chunk-VZ7TYX6Z.js";
|
|
17
|
+
import "./chunk-IYZEK6WY.js";
|
|
18
18
|
import "./chunk-DENF4TPI.js";
|
|
19
19
|
import "./chunk-KYRDKK2D.js";
|
|
20
20
|
import "./chunk-WREYUH2E.js";
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
Vignette,
|
|
13
13
|
catalog,
|
|
14
14
|
laneDepths
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-MFHXCHRI.js";
|
|
15
|
+
} from "../chunk-O22P5IAX.js";
|
|
17
16
|
import "../chunk-XHGZ2E77.js";
|
|
17
|
+
import "../chunk-MFHXCHRI.js";
|
|
18
18
|
import "../chunk-W2245F6G.js";
|
|
19
19
|
import "../chunk-JBWSK2YD.js";
|
|
20
20
|
import "../chunk-OBA6NW4S.js";
|
|
@@ -30,14 +30,14 @@ import {
|
|
|
30
30
|
VisualDocsSnippet,
|
|
31
31
|
VoiceWaveform,
|
|
32
32
|
catalog
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-A76GTLSA.js";
|
|
34
34
|
import {
|
|
35
35
|
DashboardPopulate
|
|
36
36
|
} from "../chunk-S5H6GH6M.js";
|
|
37
|
-
import "../chunk-QAGGJHAF.js";
|
|
38
37
|
import "../chunk-LT4PWSR2.js";
|
|
39
38
|
import "../chunk-FWSJLHSV.js";
|
|
40
39
|
import "../chunk-XHGZ2E77.js";
|
|
40
|
+
import "../chunk-QAGGJHAF.js";
|
|
41
41
|
import "../chunk-W2245F6G.js";
|
|
42
42
|
import "../chunk-2ESYSVXG.js";
|
|
43
43
|
export {
|
package/dist/primitives.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
catalog as catalog4
|
|
3
|
-
} from "./chunk-JRJQECCF.js";
|
|
4
1
|
import {
|
|
5
2
|
catalog as catalog7
|
|
6
3
|
} from "./chunk-TE3PNQG6.js";
|
|
@@ -15,23 +12,26 @@ import {
|
|
|
15
12
|
import "./chunk-QGAWDLYX.js";
|
|
16
13
|
import {
|
|
17
14
|
catalog as catalog6
|
|
18
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-A76GTLSA.js";
|
|
19
16
|
import "./chunk-S5H6GH6M.js";
|
|
20
|
-
import "./chunk-QAGGJHAF.js";
|
|
21
17
|
import {
|
|
22
18
|
catalog as catalog5
|
|
23
19
|
} from "./chunk-RAXHCRVV.js";
|
|
24
20
|
import {
|
|
25
21
|
catalog as catalog2
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-MFHXCHRI.js";
|
|
22
|
+
} from "./chunk-O22P5IAX.js";
|
|
28
23
|
import {
|
|
29
24
|
catalog as catalog8
|
|
30
25
|
} from "./chunk-RL5SO653.js";
|
|
31
26
|
import "./chunk-LT4PWSR2.js";
|
|
32
27
|
import "./chunk-FWSJLHSV.js";
|
|
33
28
|
import "./chunk-ZFEXATWN.js";
|
|
29
|
+
import {
|
|
30
|
+
catalog as catalog4
|
|
31
|
+
} from "./chunk-JRJQECCF.js";
|
|
34
32
|
import "./chunk-XHGZ2E77.js";
|
|
33
|
+
import "./chunk-QAGGJHAF.js";
|
|
34
|
+
import "./chunk-MFHXCHRI.js";
|
|
35
35
|
import "./chunk-W2245F6G.js";
|
|
36
36
|
import "./chunk-JBWSK2YD.js";
|
|
37
37
|
import "./chunk-OBA6NW4S.js";
|
package/dist/render-harness.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
assertCardHtmlAssetFree
|
|
3
|
-
} from "./chunk-BUAAQDDJ.js";
|
|
4
|
-
import {
|
|
5
|
-
assertCardFontsAdmitted
|
|
6
|
-
} from "./chunk-6PBYCESM.js";
|
|
7
1
|
import {
|
|
8
2
|
assertNoRemoteRefs,
|
|
9
3
|
assetSlots,
|
|
@@ -11,8 +5,14 @@ import {
|
|
|
11
5
|
isRemoteUrl,
|
|
12
6
|
renderInputAssets
|
|
13
7
|
} from "./chunk-KSRFYFUZ.js";
|
|
8
|
+
import {
|
|
9
|
+
assertCardHtmlAssetFree
|
|
10
|
+
} from "./chunk-BUAAQDDJ.js";
|
|
14
11
|
import "./chunk-OSMXQV5V.js";
|
|
15
|
-
import
|
|
12
|
+
import {
|
|
13
|
+
assertCardFontsAdmitted
|
|
14
|
+
} from "./chunk-6PBYCESM.js";
|
|
15
|
+
import "./chunk-QHLCJ3PE.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-
|
|
26
|
+
} from "./chunk-CJF3KBJ5.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-
|
|
33
|
+
import "./chunk-C7TTI7FP.js";
|
|
34
34
|
import {
|
|
35
35
|
componentBrowserBackend
|
|
36
36
|
} from "./chunk-5BAWOULP.js";
|
|
@@ -46,11 +46,11 @@ import {
|
|
|
46
46
|
parseSceneComponentCaptureIntentV1,
|
|
47
47
|
prepareSceneShotRenderInput,
|
|
48
48
|
readSceneShotManifest
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-L5XECASW.js";
|
|
50
50
|
import "./chunk-QH3YI3ND.js";
|
|
51
51
|
import "./chunk-QISFYLBB.js";
|
|
52
|
-
import "./chunk-IYZEK6WY.js";
|
|
53
52
|
import "./chunk-VZ7TYX6Z.js";
|
|
53
|
+
import "./chunk-IYZEK6WY.js";
|
|
54
54
|
import "./chunk-DENF4TPI.js";
|
|
55
55
|
import "./chunk-KYRDKK2D.js";
|
|
56
56
|
import "./chunk-WREYUH2E.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cueframe/kernel",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.40",
|
|
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/authoring": "0.1.0",
|
|
20
19
|
"@cueframe/animate": "0.1.0",
|
|
21
|
-
"@cueframe/brand-derivation": "0.1.0",
|
|
22
|
-
"@cueframe/cloud-import": "0.1.0",
|
|
23
20
|
"@cueframe/account-model": "0.1.0",
|
|
21
|
+
"@cueframe/authoring": "0.1.0",
|
|
22
|
+
"@cueframe/cloud-import": "0.1.0",
|
|
24
23
|
"@cueframe/compose": "0.1.0",
|
|
25
|
-
"@cueframe/
|
|
26
|
-
"@cueframe/component-runtime": "0.1.0",
|
|
24
|
+
"@cueframe/brand-derivation": "0.1.0",
|
|
27
25
|
"@cueframe/core": "0.1.0",
|
|
28
|
-
"@cueframe/errors": "0.1.0",
|
|
29
26
|
"@cueframe/composition-ops": "0.1.0",
|
|
27
|
+
"@cueframe/composition": "0.1.0",
|
|
28
|
+
"@cueframe/mcp": "0.1.0",
|
|
30
29
|
"@cueframe/foundation": "0.1.0",
|
|
31
30
|
"@cueframe/nle-export": "0.1.0",
|
|
32
|
-
"@cueframe/perception": "0.1.0",
|
|
33
|
-
"@cueframe/render-harness": "0.1.0",
|
|
34
|
-
"@cueframe/mcp": "0.1.0",
|
|
35
|
-
"@cueframe/plane": "0.1.0",
|
|
36
31
|
"@cueframe/director": "0.1.0",
|
|
32
|
+
"@cueframe/errors": "0.1.0",
|
|
33
|
+
"@cueframe/component-runtime": "0.1.0",
|
|
34
|
+
"@cueframe/primitives": "0.1.0",
|
|
35
|
+
"@cueframe/render-harness": "0.1.0",
|
|
37
36
|
"@cueframe/media-model": "0.1.0",
|
|
38
|
-
"@cueframe/
|
|
37
|
+
"@cueframe/plane": "0.1.0",
|
|
38
|
+
"@cueframe/perception": "0.1.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"gsap": "3.13.0",
|
package/dist/chunk-SH5OTTVU.js
DELETED
|
@@ -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
|
-
};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DashboardPopulate
|
|
3
3
|
} from "./chunk-S5H6GH6M.js";
|
|
4
|
-
import {
|
|
5
|
-
useFrameScale
|
|
6
|
-
} from "./chunk-QAGGJHAF.js";
|
|
7
4
|
import {
|
|
8
5
|
resolveTypeface
|
|
9
6
|
} from "./chunk-LT4PWSR2.js";
|
|
@@ -14,6 +11,9 @@ import {
|
|
|
14
11
|
FitText,
|
|
15
12
|
resolveFitFontSize
|
|
16
13
|
} from "./chunk-XHGZ2E77.js";
|
|
14
|
+
import {
|
|
15
|
+
useFrameScale
|
|
16
|
+
} from "./chunk-QAGGJHAF.js";
|
|
17
17
|
import {
|
|
18
18
|
ACCENT,
|
|
19
19
|
ACCENT_DEEP,
|
|
@@ -7,6 +7,10 @@ import {
|
|
|
7
7
|
flattenCompoundClips,
|
|
8
8
|
hasCompoundClips
|
|
9
9
|
} from "./chunk-QISFYLBB.js";
|
|
10
|
+
import {
|
|
11
|
+
compositionHasVo,
|
|
12
|
+
roleDefaultGainDb
|
|
13
|
+
} from "./chunk-VZ7TYX6Z.js";
|
|
10
14
|
import {
|
|
11
15
|
DOMINANCE_WEIGHTS,
|
|
12
16
|
ENTER_SEC,
|
|
@@ -25,10 +29,6 @@ import {
|
|
|
25
29
|
segmentShots,
|
|
26
30
|
stabilizeSelectionHysteresis
|
|
27
31
|
} from "./chunk-IYZEK6WY.js";
|
|
28
|
-
import {
|
|
29
|
-
compositionHasVo,
|
|
30
|
-
roleDefaultGainDb
|
|
31
|
-
} from "./chunk-VZ7TYX6Z.js";
|
|
32
32
|
import {
|
|
33
33
|
SHOT_SCALE_TARGET,
|
|
34
34
|
shotScaleZoom
|