@cueframe/kernel 0.2.24 → 0.2.26
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/authoring/scene/validate.d.ts +7 -1
- package/dist/_members/errors/registry.d.ts +6 -0
- package/dist/authoring/scene.js +1 -1
- package/dist/authoring.js +3 -3
- package/dist/{chunk-EDDIDBI6.js → chunk-2RVANTUG.js} +1 -1
- package/dist/{chunk-QWXUYVHX.js → chunk-ABJBQCW2.js} +1 -0
- package/dist/{chunk-PNJ7DACK.js → chunk-F5B6OM73.js} +41 -34
- package/dist/{chunk-EVUXHHQY.js → chunk-JEJKLW2N.js} +1 -1
- package/dist/{chunk-NXEJASGI.js → chunk-JGXJEY77.js} +2 -2
- package/dist/{chunk-MMZMS3S4.js → chunk-JTVHOHT6.js} +1 -1
- package/dist/{chunk-B2SS3H6Y.js → chunk-PMBPLTKU.js} +1 -1
- package/dist/{chunk-K4VE64CR.js → chunk-QAALM5BW.js} +1 -1
- package/dist/{chunk-MNPKGS7X.js → chunk-QSQFZAZV.js} +1 -1
- package/dist/{chunk-JCQTSVZQ.js → chunk-USAXWI4T.js} +26 -2
- package/dist/{chunk-JNQKX4OI.js → chunk-XT3SK7HR.js} +2 -2
- package/dist/compose.js +1 -1
- package/dist/composition/projection.js +2 -2
- package/dist/composition-ops.js +3 -3
- package/dist/composition.js +2 -2
- package/dist/core/render.js +3 -3
- package/dist/core/select.js +2 -2
- package/dist/core.js +3 -3
- package/dist/director/ai-sdk.js +3 -3
- package/dist/director/domain.js +2 -2
- package/dist/director.js +3 -3
- package/dist/errors.js +1 -1
- package/dist/mcp/adapter.js +2 -2
- package/dist/mcp/core.js +1 -1
- package/dist/mcp/server.js +3 -3
- package/dist/mcp.js +3 -3
- package/dist/render-harness/cardAssetAdmission.js +2 -2
- package/dist/render-harness.js +4 -4
- package/package.json +13 -13
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
querySchemaShape,
|
|
3
3
|
serializeQuery,
|
|
4
4
|
waitForJob
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JTVHOHT6.js";
|
|
6
6
|
import {
|
|
7
7
|
CURATED_TOOLS
|
|
8
8
|
} from "./chunk-3OOMVQ6I.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
text,
|
|
24
24
|
textWithData,
|
|
25
25
|
withMedia
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-F5B6OM73.js";
|
|
27
27
|
|
|
28
28
|
// ../mcp/src/prompts.ts
|
|
29
29
|
var skillListCache = null;
|
|
@@ -218,6 +218,22 @@ function canonical(value) {
|
|
|
218
218
|
function sameManifest(a, b) {
|
|
219
219
|
return canonical(a) === canonical(b);
|
|
220
220
|
}
|
|
221
|
+
function describeThrown(error) {
|
|
222
|
+
const issues = error?.issues;
|
|
223
|
+
if (Array.isArray(issues) && issues.length > 0) {
|
|
224
|
+
return issues.slice(0, 3).map((issue) => `${(issue.path ?? []).join(".") || "(root)"}: ${issue.message ?? "invalid"}`).join("; ");
|
|
225
|
+
}
|
|
226
|
+
if (error instanceof Error && error.message) return error.message;
|
|
227
|
+
return String(error);
|
|
228
|
+
}
|
|
229
|
+
var opClipId = (op) => {
|
|
230
|
+
const id = op?.clipId;
|
|
231
|
+
return typeof id === "string" ? id : void 0;
|
|
232
|
+
};
|
|
233
|
+
var opType = (op) => {
|
|
234
|
+
const type = op?.type;
|
|
235
|
+
return typeof type === "string" ? type : void 0;
|
|
236
|
+
};
|
|
221
237
|
async function materializeSceneOpsCore(composition, ops, deps) {
|
|
222
238
|
const out = [];
|
|
223
239
|
const staged = /* @__PURE__ */ new Map();
|
|
@@ -307,8 +323,16 @@ async function materializeSceneOpsCore(composition, ops, deps) {
|
|
|
307
323
|
};
|
|
308
324
|
current = emit({ type: "clip.update", clipId: op.clipId, patch }, current);
|
|
309
325
|
} catch (error) {
|
|
310
|
-
if (error instanceof SceneAuthoringError
|
|
311
|
-
|
|
326
|
+
if (error instanceof SceneAuthoringError) {
|
|
327
|
+
if (error.opIndex === void 0) error.opIndex = i;
|
|
328
|
+
throw error;
|
|
329
|
+
}
|
|
330
|
+
throw new SceneAuthoringError(
|
|
331
|
+
"scene_materialization_failed",
|
|
332
|
+
"scene",
|
|
333
|
+
`validated, then failed to compile into a component: ${describeThrown(error)}. This is deterministic, so replaying the identical batch will fail the same way; change the spec (or report it with this message) rather than retrying.`,
|
|
334
|
+
{ clipId: opClipId(op), opIndex: i, op: opType(op) }
|
|
335
|
+
);
|
|
312
336
|
}
|
|
313
337
|
}
|
|
314
338
|
return out;
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
scoreAndRank,
|
|
25
25
|
segmentShots,
|
|
26
26
|
stabilizeSelectionHysteresis
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-QAALM5BW.js";
|
|
28
28
|
import {
|
|
29
29
|
compositionHasVo,
|
|
30
30
|
roleDefaultGainDb
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
CueframeError,
|
|
38
38
|
encodeError
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ABJBQCW2.js";
|
|
40
40
|
import {
|
|
41
41
|
SCENE_CAPTURE_IDENTITY_FIELDS_V1,
|
|
42
42
|
SCENE_PRESET_TRIANGLES,
|
package/dist/compose.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
silhouetteKeepOutForWindow,
|
|
33
33
|
sourceRectToOutput,
|
|
34
34
|
sourceWindowKey
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-QSQFZAZV.js";
|
|
36
36
|
import {
|
|
37
37
|
BRAND_TOKEN_REFS,
|
|
38
38
|
BRAND_TOKEN_ROOT_KEYS,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
contrastRatio
|
|
75
75
|
} from "../chunk-ILO4NEZ3.js";
|
|
76
76
|
import "../chunk-VG2ND6PX.js";
|
|
77
|
-
import "../chunk-
|
|
77
|
+
import "../chunk-ABJBQCW2.js";
|
|
78
78
|
import "../chunk-AVTEPAWI.js";
|
|
79
79
|
import "../chunk-2ESYSVXG.js";
|
|
80
80
|
export {
|
package/dist/composition-ops.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
playableSpans
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XT3SK7HR.js";
|
|
4
4
|
import "./chunk-QH3YI3ND.js";
|
|
5
5
|
import "./chunk-QISFYLBB.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-QAALM5BW.js";
|
|
7
7
|
import "./chunk-VZ7TYX6Z.js";
|
|
8
8
|
import "./chunk-DENF4TPI.js";
|
|
9
9
|
import {
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
} from "./chunk-B7J5UUUV.js";
|
|
31
31
|
import "./chunk-KYRDKK2D.js";
|
|
32
32
|
import "./chunk-WREYUH2E.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-ABJBQCW2.js";
|
|
34
34
|
import "./chunk-7PA7FGLD.js";
|
|
35
35
|
import {
|
|
36
36
|
SCENE_SLOT_MEDIA_FORMATS,
|
package/dist/composition.js
CHANGED
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
silhouetteKeepOutForWindow,
|
|
47
47
|
sourceRectToOutput,
|
|
48
48
|
sourceWindowKey
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-QSQFZAZV.js";
|
|
50
50
|
import {
|
|
51
51
|
BRAND_TOKEN_REFS,
|
|
52
52
|
BRAND_TOKEN_ROOT_KEYS,
|
|
@@ -194,7 +194,7 @@ import {
|
|
|
194
194
|
ReframeSegmentFields
|
|
195
195
|
} from "./chunk-B7J5UUUV.js";
|
|
196
196
|
import "./chunk-WREYUH2E.js";
|
|
197
|
-
import "./chunk-
|
|
197
|
+
import "./chunk-ABJBQCW2.js";
|
|
198
198
|
import "./chunk-AVTEPAWI.js";
|
|
199
199
|
import "./chunk-2ESYSVXG.js";
|
|
200
200
|
|
package/dist/core/render.js
CHANGED
|
@@ -66,19 +66,19 @@ import {
|
|
|
66
66
|
sliceTranscriptWords,
|
|
67
67
|
splitIntoSentences,
|
|
68
68
|
validateComposition
|
|
69
|
-
} from "../chunk-
|
|
69
|
+
} from "../chunk-XT3SK7HR.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-
|
|
76
|
+
import "../chunk-QAALM5BW.js";
|
|
77
77
|
import "../chunk-VZ7TYX6Z.js";
|
|
78
78
|
import "../chunk-DENF4TPI.js";
|
|
79
79
|
import "../chunk-KYRDKK2D.js";
|
|
80
80
|
import "../chunk-WREYUH2E.js";
|
|
81
|
-
import "../chunk-
|
|
81
|
+
import "../chunk-ABJBQCW2.js";
|
|
82
82
|
import "../chunk-7PA7FGLD.js";
|
|
83
83
|
import "../chunk-XACXNDFL.js";
|
|
84
84
|
import "../chunk-2L7PYYJK.js";
|
package/dist/core/select.js
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
stabilizeIncumbentChallenger,
|
|
8
8
|
stabilizePresenceGate,
|
|
9
9
|
stabilizeSelectionHysteresis
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-QAALM5BW.js";
|
|
11
|
+
import "../chunk-ABJBQCW2.js";
|
|
12
12
|
import "../chunk-2ESYSVXG.js";
|
|
13
13
|
|
|
14
14
|
// ../execution/core/src/select/errorCodes.ts
|
package/dist/core.js
CHANGED
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
ensureEven,
|
|
11
11
|
extractCaptionWordsFromDoc,
|
|
12
12
|
isEmphasized
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XT3SK7HR.js";
|
|
14
14
|
import "./chunk-QH3YI3ND.js";
|
|
15
15
|
import "./chunk-QISFYLBB.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-QAALM5BW.js";
|
|
17
17
|
import "./chunk-VZ7TYX6Z.js";
|
|
18
18
|
import "./chunk-DENF4TPI.js";
|
|
19
19
|
import "./chunk-KYRDKK2D.js";
|
|
20
20
|
import "./chunk-WREYUH2E.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-ABJBQCW2.js";
|
|
22
22
|
import "./chunk-7PA7FGLD.js";
|
|
23
23
|
import "./chunk-XACXNDFL.js";
|
|
24
24
|
import "./chunk-2L7PYYJK.js";
|
package/dist/director/ai-sdk.js
CHANGED
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
dataChunk,
|
|
11
11
|
generationArtifactFromToolResult,
|
|
12
12
|
projectDirectorHistory
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-JEJKLW2N.js";
|
|
14
|
+
import "../chunk-2RVANTUG.js";
|
|
15
15
|
import "../chunk-73DQTUWY.js";
|
|
16
16
|
import "../chunk-BADZHXLR.js";
|
|
17
17
|
import "../chunk-U3JPILZS.js";
|
|
18
18
|
import "../chunk-XELS2BGA.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-ABJBQCW2.js";
|
|
20
20
|
import "../chunk-2ESYSVXG.js";
|
|
21
21
|
export {
|
|
22
22
|
CueFrameIteration,
|
package/dist/director/domain.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ProjectRef,
|
|
10
10
|
chatErrorViewFromEnvelope,
|
|
11
11
|
chatErrorViewFromUnknown
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-2RVANTUG.js";
|
|
13
13
|
import {
|
|
14
14
|
ClientRequestId,
|
|
15
15
|
GenerateMediaCommand,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
import "../chunk-BADZHXLR.js";
|
|
32
32
|
import "../chunk-U3JPILZS.js";
|
|
33
33
|
import "../chunk-XELS2BGA.js";
|
|
34
|
-
import "../chunk-
|
|
34
|
+
import "../chunk-ABJBQCW2.js";
|
|
35
35
|
import "../chunk-2ESYSVXG.js";
|
|
36
36
|
export {
|
|
37
37
|
ChatErrorView,
|
package/dist/director.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
dataChunk,
|
|
11
11
|
generationArtifactFromToolResult,
|
|
12
12
|
projectDirectorHistory
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-JEJKLW2N.js";
|
|
14
14
|
import "./chunk-FTVZF4GO.js";
|
|
15
15
|
import {
|
|
16
16
|
ChatErrorView,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ProjectRef,
|
|
23
23
|
chatErrorViewFromEnvelope,
|
|
24
24
|
chatErrorViewFromUnknown
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2RVANTUG.js";
|
|
26
26
|
import {
|
|
27
27
|
ClientRequestId,
|
|
28
28
|
GenerateMediaCommand,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
import "./chunk-BADZHXLR.js";
|
|
45
45
|
import "./chunk-U3JPILZS.js";
|
|
46
46
|
import "./chunk-XELS2BGA.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-ABJBQCW2.js";
|
|
48
48
|
import "./chunk-2ESYSVXG.js";
|
|
49
49
|
export {
|
|
50
50
|
ChatErrorView,
|
package/dist/errors.js
CHANGED
package/dist/mcp/adapter.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
querySchemaShape,
|
|
3
3
|
serializeQuery,
|
|
4
4
|
waitForJob
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-JTVHOHT6.js";
|
|
6
6
|
import {
|
|
7
7
|
CURATED_TOOLS
|
|
8
8
|
} from "../chunk-3OOMVQ6I.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
opById,
|
|
17
17
|
safeParse,
|
|
18
18
|
sniffImageMediaType
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-F5B6OM73.js";
|
|
20
20
|
import "../chunk-2ESYSVXG.js";
|
|
21
21
|
|
|
22
22
|
// ../mcp/src/adapter.ts
|
package/dist/mcp/core.js
CHANGED
package/dist/mcp/server.js
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
registerRawTools,
|
|
8
8
|
registerSkillPrompts,
|
|
9
9
|
titleCase
|
|
10
|
-
} from "../chunk-
|
|
11
|
-
import "../chunk-
|
|
10
|
+
} from "../chunk-JGXJEY77.js";
|
|
11
|
+
import "../chunk-JTVHOHT6.js";
|
|
12
12
|
import "../chunk-3OOMVQ6I.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-F5B6OM73.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-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-JGXJEY77.js";
|
|
11
|
+
import "./chunk-JTVHOHT6.js";
|
|
12
12
|
import "./chunk-3OOMVQ6I.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-F5B6OM73.js";
|
|
14
14
|
import "./chunk-2ESYSVXG.js";
|
|
15
15
|
export {
|
|
16
16
|
API_URLS,
|
package/dist/render-harness.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertCardHtmlAssetFree
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PMBPLTKU.js";
|
|
4
4
|
import {
|
|
5
5
|
assertNoRemoteRefs,
|
|
6
6
|
assetSlots,
|
|
@@ -42,17 +42,17 @@ import {
|
|
|
42
42
|
parseSceneComponentCaptureIntentV1,
|
|
43
43
|
prepareSceneShotRenderInput,
|
|
44
44
|
readSceneShotManifest
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-XT3SK7HR.js";
|
|
46
46
|
import "./chunk-QH3YI3ND.js";
|
|
47
47
|
import "./chunk-QISFYLBB.js";
|
|
48
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-QAALM5BW.js";
|
|
49
49
|
import "./chunk-VZ7TYX6Z.js";
|
|
50
50
|
import "./chunk-DENF4TPI.js";
|
|
51
51
|
import "./chunk-KYRDKK2D.js";
|
|
52
52
|
import "./chunk-WREYUH2E.js";
|
|
53
53
|
import {
|
|
54
54
|
CueframeError
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-ABJBQCW2.js";
|
|
56
56
|
import "./chunk-7PA7FGLD.js";
|
|
57
57
|
import {
|
|
58
58
|
evaluateScene,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cueframe/kernel",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
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
19
|
"@cueframe/account-model": "0.1.0",
|
|
21
|
-
"@cueframe/
|
|
20
|
+
"@cueframe/authoring": "0.1.0",
|
|
21
|
+
"@cueframe/animate": "0.1.0",
|
|
22
22
|
"@cueframe/cloud-import": "0.1.0",
|
|
23
23
|
"@cueframe/composition": "0.1.0",
|
|
24
|
+
"@cueframe/brand-derivation": "0.1.0",
|
|
24
25
|
"@cueframe/compose": "0.1.0",
|
|
25
|
-
"@cueframe/component-runtime": "0.1.0",
|
|
26
|
-
"@cueframe/authoring": "0.1.0",
|
|
27
|
-
"@cueframe/director": "0.1.0",
|
|
28
|
-
"@cueframe/foundation": "0.1.0",
|
|
29
|
-
"@cueframe/errors": "0.1.0",
|
|
30
26
|
"@cueframe/composition-ops": "0.1.0",
|
|
31
|
-
"@cueframe/nle-export": "0.1.0",
|
|
32
27
|
"@cueframe/core": "0.1.0",
|
|
33
|
-
"@cueframe/
|
|
28
|
+
"@cueframe/director": "0.1.0",
|
|
29
|
+
"@cueframe/component-runtime": "0.1.0",
|
|
34
30
|
"@cueframe/perception": "0.1.0",
|
|
35
|
-
"@cueframe/
|
|
36
|
-
"@cueframe/
|
|
31
|
+
"@cueframe/foundation": "0.1.0",
|
|
32
|
+
"@cueframe/media-model": "0.1.0",
|
|
33
|
+
"@cueframe/nle-export": "0.1.0",
|
|
37
34
|
"@cueframe/primitives": "0.1.0",
|
|
38
|
-
"@cueframe/
|
|
35
|
+
"@cueframe/render-harness": "0.1.0",
|
|
36
|
+
"@cueframe/mcp": "0.1.0",
|
|
37
|
+
"@cueframe/errors": "0.1.0",
|
|
38
|
+
"@cueframe/plane": "0.1.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"gsap": "3.13.0",
|