@cueframe/kernel 0.2.43 → 0.2.45
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/contracts.d.ts +7 -1
- package/dist/_members/component-runtime/contracts.d.ts.map +1 -1
- package/dist/_members/errors/registry.d.ts +32 -0
- package/dist/_members/mcp/executor.d.ts +4 -3
- package/dist/_members/mcp/serverClient.d.ts +7 -0
- package/dist/_members/plane/contract.d.ts +35 -1
- package/dist/authoring.js +2 -2
- package/dist/{chunk-WEXGESUQ.js → chunk-4S2YZQJP.js} +1 -1
- package/dist/{chunk-RO57QD5M.js → chunk-7XZW26U2.js} +3 -3
- package/dist/{chunk-NPZWMZI6.js → chunk-AMFFWX3C.js} +10 -10
- package/dist/{chunk-IYZEK6WY.js → chunk-CYILSHK5.js} +1 -1
- package/dist/{chunk-UGYYZBG4.js → chunk-EC6VFQE6.js} +1 -0
- package/dist/{chunk-AYOVAVNO.js → chunk-EDBQPQAG.js} +1 -1
- package/dist/{chunk-6PBYCESM.js → chunk-JVWLZNHC.js} +1 -1
- package/dist/{chunk-PCCVZYAF.js → chunk-JWMWVP64.js} +1 -1
- package/dist/{chunk-JX7NKSJP.js → chunk-K66NLMGX.js} +1 -1
- package/dist/{chunk-UAOTQSS3.js → chunk-MYBK6DKF.js} +9 -9
- package/dist/{chunk-SLN5UKLT.js → chunk-Q5P5UFOP.js} +2 -3
- package/dist/{chunk-QSWONRX2.js → chunk-ULQJWGUV.js} +20 -1
- package/dist/{chunk-IHKMFEBT.js → chunk-URZR6C3N.js} +1 -1
- package/dist/{chunk-BUAAQDDJ.js → chunk-VVKBCBNR.js} +1 -1
- package/dist/chunk-W5AFGFVZ.js +123 -0
- package/dist/{chunk-62VTAA6O.js → chunk-WL2MLKWU.js} +1 -1
- package/dist/{chunk-VCBLGZQQ.js → chunk-WWXTJZ67.js} +13 -4
- package/dist/component-runtime/browserOptions.js +2 -2
- package/dist/component-runtime/contracts.js +1 -1
- package/dist/component-runtime/importPolicy.js +2 -2
- package/dist/component-runtime/render.js +4 -4
- package/dist/component-runtime/sourceAdmission.js +2 -2
- package/dist/component-runtime.js +6 -6
- 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 +3 -1
- package/dist/mcp/executor.js +2 -1
- package/dist/mcp/server.js +2 -2
- package/dist/mcp.js +8 -7
- package/dist/plane/conformance.js +1 -1
- package/dist/plane/contract.js +31 -46
- package/dist/plane.js +1 -1
- package/dist/render-harness/cardAssetAdmission.js +2 -2
- package/dist/render-harness/cardFonts.js +2 -2
- package/dist/render-harness.js +11 -11
- package/package.json +11 -11
- package/dist/{chunk-JENEKKAM.js → chunk-HUZN2HRT.js} +5 -5
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CLIENT_HEADER,
|
|
3
|
+
formatClientHeader
|
|
4
|
+
} from "./chunk-W5AFGFVZ.js";
|
|
5
|
+
|
|
1
6
|
// ../mcp/src/executor.ts
|
|
2
7
|
var API_URLS = {
|
|
3
8
|
dev: "https://api-dev.cueframe.ai",
|
|
4
9
|
prod: "https://api.cueframe.ai"
|
|
5
10
|
};
|
|
6
|
-
function makeNetworkExecutor(baseUrl, apiKey) {
|
|
11
|
+
function makeNetworkExecutor(baseUrl, apiKey, client) {
|
|
12
|
+
const clientHeader = formatClientHeader(client);
|
|
7
13
|
return {
|
|
8
14
|
async invoke({ method, path, body, query, payment }) {
|
|
9
15
|
const url = `${baseUrl}${path}${query ? `?${query}` : ""}`;
|
|
10
|
-
const headers = {};
|
|
16
|
+
const headers = { [CLIENT_HEADER]: clientHeader };
|
|
11
17
|
if (payment) headers["PAYMENT-SIGNATURE"] = payment;
|
|
12
18
|
else if (apiKey) headers["authorization"] = `Bearer ${apiKey}`;
|
|
13
19
|
let payload;
|
|
@@ -25,6 +31,7 @@ function makeNetworkExecutor(baseUrl, apiKey) {
|
|
|
25
31
|
};
|
|
26
32
|
}
|
|
27
33
|
function makeSessionExecutor(opts) {
|
|
34
|
+
const client = formatClientHeader(opts.client);
|
|
28
35
|
return {
|
|
29
36
|
async invoke({ method, path, body, query, idempotent }) {
|
|
30
37
|
const token = await opts.getToken();
|
|
@@ -34,7 +41,7 @@ function makeSessionExecutor(opts) {
|
|
|
34
41
|
const url = `${opts.baseUrl}${path}${query ? `?${query}` : ""}`;
|
|
35
42
|
const headers = {
|
|
36
43
|
authorization: `Bearer ${token}`,
|
|
37
|
-
|
|
44
|
+
[CLIENT_HEADER]: client
|
|
38
45
|
};
|
|
39
46
|
let payload;
|
|
40
47
|
if (body !== void 0) {
|
|
@@ -80,13 +87,15 @@ function requestIdempotencyKey(prefix, content, idempotent) {
|
|
|
80
87
|
const identity = idempotent ? content : `${content}|${freshInvocationNonce()}`;
|
|
81
88
|
return `${prefix}-${fnv1a(identity)}`;
|
|
82
89
|
}
|
|
83
|
-
function makePlatformExecutor(baseUrl, deployKey, orgId, opts) {
|
|
90
|
+
function makePlatformExecutor(baseUrl, deployKey, orgId, client, opts) {
|
|
91
|
+
const clientHeader = formatClientHeader(client);
|
|
84
92
|
return {
|
|
85
93
|
async invoke({ method, path, body, query, idempotent }) {
|
|
86
94
|
const url = `${baseUrl}${path}${query ? `?${query}` : ""}`;
|
|
87
95
|
const headers = {
|
|
88
96
|
"x-deploy-key": deployKey,
|
|
89
97
|
"x-org-id": orgId,
|
|
98
|
+
[CLIENT_HEADER]: clientHeader,
|
|
90
99
|
...opts?.actingUserId ? { "x-acting-user-id": opts.actingUserId } : {}
|
|
91
100
|
};
|
|
92
101
|
if (method !== "GET" && method !== "HEAD") {
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
componentBrowserOptions,
|
|
5
5
|
resolvedComponentRenderer,
|
|
6
6
|
webglBackend
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-JWMWVP64.js";
|
|
8
|
+
import "../chunk-EC6VFQE6.js";
|
|
9
9
|
import "../chunk-CL5Y6V6K.js";
|
|
10
10
|
import "../chunk-2L7PYYJK.js";
|
|
11
11
|
import "../chunk-2ESYSVXG.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
COMPONENT_IMPORT_ALLOWLIST,
|
|
3
3
|
assertComponentImportsAllowed
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-K66NLMGX.js";
|
|
5
|
+
import "../chunk-EC6VFQE6.js";
|
|
6
6
|
import "../chunk-2ESYSVXG.js";
|
|
7
7
|
export {
|
|
8
8
|
COMPONENT_IMPORT_ALLOWLIST,
|
|
@@ -26,13 +26,13 @@ import {
|
|
|
26
26
|
stagedBrowserLocator,
|
|
27
27
|
verifyLocalStagedBrowser,
|
|
28
28
|
vp9AlphaFfmpegOverride
|
|
29
|
-
} from "../chunk-
|
|
29
|
+
} from "../chunk-7XZW26U2.js";
|
|
30
30
|
import "../chunk-WB2VFDQZ.js";
|
|
31
31
|
import "../chunk-EXY4JJPH.js";
|
|
32
32
|
import "../chunk-DAARYRNT.js";
|
|
33
|
-
import "../chunk-
|
|
34
|
-
import "../chunk-
|
|
35
|
-
import "../chunk-
|
|
33
|
+
import "../chunk-K66NLMGX.js";
|
|
34
|
+
import "../chunk-JWMWVP64.js";
|
|
35
|
+
import "../chunk-EC6VFQE6.js";
|
|
36
36
|
import "../chunk-CL5Y6V6K.js";
|
|
37
37
|
import "../chunk-2L7PYYJK.js";
|
|
38
38
|
import "../chunk-AVTEPAWI.js";
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
describeMissingAssetReads,
|
|
4
4
|
missingDeclaredAssetHandleReads,
|
|
5
5
|
sourceAssetReads
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-WL2MLKWU.js";
|
|
7
|
+
import "../chunk-EC6VFQE6.js";
|
|
8
8
|
import "../chunk-2ESYSVXG.js";
|
|
9
9
|
export {
|
|
10
10
|
assertSourceReadsDeclaredAssets,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
sourceIdentityForBake,
|
|
8
8
|
startComponentAssetServer,
|
|
9
9
|
verifyComponentOutput
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MYBK6DKF.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-7XZW26U2.js";
|
|
56
56
|
import "./chunk-WB2VFDQZ.js";
|
|
57
57
|
import {
|
|
58
58
|
bundleIdentityFields,
|
|
@@ -68,13 +68,13 @@ import {
|
|
|
68
68
|
import {
|
|
69
69
|
COMPONENT_IMPORT_ALLOWLIST,
|
|
70
70
|
assertComponentImportsAllowed
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-K66NLMGX.js";
|
|
72
72
|
import {
|
|
73
73
|
assertSourceReadsDeclaredAssets,
|
|
74
74
|
describeMissingAssetReads,
|
|
75
75
|
missingDeclaredAssetHandleReads,
|
|
76
76
|
sourceAssetReads
|
|
77
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-WL2MLKWU.js";
|
|
78
78
|
import {
|
|
79
79
|
HALF_FLOAT_COLOR_TARGET_EXTENSIONS,
|
|
80
80
|
admittedHost,
|
|
@@ -87,7 +87,7 @@ import {
|
|
|
87
87
|
resolvedComponentRenderer,
|
|
88
88
|
webGlRefusal,
|
|
89
89
|
webglBackend
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-JWMWVP64.js";
|
|
91
91
|
import {
|
|
92
92
|
CANVAS2D_COMPONENT_MANIFEST_V2,
|
|
93
93
|
COMPONENT_BUNDLE_VERSION,
|
|
@@ -128,7 +128,7 @@ import {
|
|
|
128
128
|
assertRendererReceiptMatches,
|
|
129
129
|
authoredComponentProps,
|
|
130
130
|
readComponentSourceRef
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-EC6VFQE6.js";
|
|
132
132
|
import "./chunk-CL5Y6V6K.js";
|
|
133
133
|
import "./chunk-2L7PYYJK.js";
|
|
134
134
|
import "./chunk-AVTEPAWI.js";
|
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-EDBQPQAG.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-ULQJWGUV.js";
|
|
78
78
|
import "../chunk-AVTEPAWI.js";
|
|
79
79
|
import "../chunk-2ESYSVXG.js";
|
|
80
80
|
export {
|
package/dist/composition-ops.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
playableSpans
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AMFFWX3C.js";
|
|
4
4
|
import "./chunk-QH3YI3ND.js";
|
|
5
|
+
import "./chunk-CYILSHK5.js";
|
|
5
6
|
import "./chunk-QISFYLBB.js";
|
|
6
7
|
import "./chunk-VZ7TYX6Z.js";
|
|
7
|
-
import "./chunk-IYZEK6WY.js";
|
|
8
8
|
import "./chunk-DENF4TPI.js";
|
|
9
9
|
import {
|
|
10
10
|
createHeadlessStore,
|
|
@@ -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-ULQJWGUV.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-EDBQPQAG.js";
|
|
50
50
|
import {
|
|
51
51
|
BRAND_TOKEN_REFS,
|
|
52
52
|
BRAND_TOKEN_ROOT_KEYS,
|
|
@@ -197,7 +197,7 @@ import {
|
|
|
197
197
|
ReframeSegmentFields
|
|
198
198
|
} from "./chunk-B7J5UUUV.js";
|
|
199
199
|
import "./chunk-WREYUH2E.js";
|
|
200
|
-
import "./chunk-
|
|
200
|
+
import "./chunk-ULQJWGUV.js";
|
|
201
201
|
import "./chunk-AVTEPAWI.js";
|
|
202
202
|
import "./chunk-2ESYSVXG.js";
|
|
203
203
|
|
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-AMFFWX3C.js";
|
|
70
70
|
import {
|
|
71
71
|
buildEasedZooms,
|
|
72
72
|
buildPannedCenters,
|
|
73
73
|
easeOutCubic
|
|
74
74
|
} from "../chunk-QH3YI3ND.js";
|
|
75
|
+
import "../chunk-CYILSHK5.js";
|
|
75
76
|
import "../chunk-QISFYLBB.js";
|
|
76
77
|
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";
|
|
81
|
-
import "../chunk-
|
|
81
|
+
import "../chunk-ULQJWGUV.js";
|
|
82
82
|
import "../chunk-7PA7FGLD.js";
|
|
83
83
|
import "../chunk-CL5Y6V6K.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-CYILSHK5.js";
|
|
11
|
+
import "../chunk-ULQJWGUV.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-AMFFWX3C.js";
|
|
14
14
|
import "./chunk-QH3YI3ND.js";
|
|
15
|
+
import "./chunk-CYILSHK5.js";
|
|
15
16
|
import "./chunk-QISFYLBB.js";
|
|
16
17
|
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";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-ULQJWGUV.js";
|
|
22
22
|
import "./chunk-7PA7FGLD.js";
|
|
23
23
|
import "./chunk-CL5Y6V6K.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-URZR6C3N.js";
|
|
14
|
+
import "../chunk-4S2YZQJP.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-ULQJWGUV.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-4S2YZQJP.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-ULQJWGUV.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-URZR6C3N.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-4S2YZQJP.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-ULQJWGUV.js";
|
|
48
48
|
import "./chunk-2ESYSVXG.js";
|
|
49
49
|
export {
|
|
50
50
|
ChatErrorView,
|
package/dist/errors.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CueframeError,
|
|
3
|
+
DEFAULT_RETRY_AFTER_SECONDS,
|
|
3
4
|
ERROR_CODES,
|
|
4
5
|
decodeError,
|
|
5
6
|
encodeError,
|
|
6
7
|
retryAfterSecondsFor,
|
|
7
8
|
scrubSensitive,
|
|
8
9
|
toWireEnvelope
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ULQJWGUV.js";
|
|
10
11
|
import "./chunk-2ESYSVXG.js";
|
|
11
12
|
export {
|
|
12
13
|
CueframeError,
|
|
14
|
+
DEFAULT_RETRY_AFTER_SECONDS,
|
|
13
15
|
ERROR_CODES,
|
|
14
16
|
decodeError,
|
|
15
17
|
encodeError,
|
package/dist/mcp/executor.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-SPF3AXTB.js";
|
|
10
|
+
} from "../chunk-HUZN2HRT.js";
|
|
12
11
|
import "../chunk-OZNULDQE.js";
|
|
13
12
|
import "../chunk-5YO4LAB7.js";
|
|
13
|
+
import "../chunk-SPF3AXTB.js";
|
|
14
14
|
import "../chunk-46PFSJZE.js";
|
|
15
15
|
import "../chunk-2ESYSVXG.js";
|
|
16
16
|
export {
|
package/dist/mcp.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
API_URLS,
|
|
3
|
-
makeNetworkExecutor,
|
|
4
|
-
makePlatformExecutor
|
|
5
|
-
} from "./chunk-VCBLGZQQ.js";
|
|
6
1
|
import {
|
|
7
2
|
buildServer,
|
|
8
3
|
registerCuratedTools,
|
|
9
4
|
registerRawTools
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-SPF3AXTB.js";
|
|
5
|
+
} from "./chunk-HUZN2HRT.js";
|
|
12
6
|
import "./chunk-OZNULDQE.js";
|
|
13
7
|
import "./chunk-5YO4LAB7.js";
|
|
8
|
+
import {
|
|
9
|
+
API_URLS,
|
|
10
|
+
makeNetworkExecutor,
|
|
11
|
+
makePlatformExecutor
|
|
12
|
+
} from "./chunk-WWXTJZ67.js";
|
|
13
|
+
import "./chunk-W5AFGFVZ.js";
|
|
14
|
+
import "./chunk-SPF3AXTB.js";
|
|
14
15
|
import "./chunk-46PFSJZE.js";
|
|
15
16
|
import "./chunk-2ESYSVXG.js";
|
|
16
17
|
export {
|
package/dist/plane/contract.js
CHANGED
|
@@ -1,51 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CLIENT_HEADER,
|
|
3
|
+
CLIENT_OSES,
|
|
4
|
+
CLIENT_SURFACES,
|
|
5
|
+
CO_BATCHED_CALLERS,
|
|
6
|
+
DesktopPreviewFrameRequest,
|
|
7
|
+
MAX_STILL_BEATS_PER_BATCH,
|
|
8
|
+
PreviewFrameRequest,
|
|
9
|
+
STILL_BUDGET_BASE_S,
|
|
10
|
+
STILL_BUDGET_CEILING_S,
|
|
11
|
+
STILL_BUDGET_PER_BEAT_S,
|
|
12
|
+
STILL_COBATCH_MAX_BEATS,
|
|
13
|
+
STILL_WORKER_COLD_START_S,
|
|
14
|
+
clientOs,
|
|
15
|
+
clientPairIsPossible,
|
|
16
|
+
formatClientHeader,
|
|
17
|
+
osFromNodePlatform,
|
|
18
|
+
osFromUserAgent,
|
|
19
|
+
parseClientHeader,
|
|
20
|
+
stillBudgetSeconds,
|
|
21
|
+
stillCaptureWaitSeconds
|
|
22
|
+
} from "../chunk-W5AFGFVZ.js";
|
|
1
23
|
import "../chunk-2ESYSVXG.js";
|
|
2
|
-
|
|
3
|
-
// ../plane/src/contract.ts
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
var STILL_BUDGET_BASE_S = 60;
|
|
6
|
-
var STILL_BUDGET_PER_BEAT_S = 10;
|
|
7
|
-
var STILL_BUDGET_CEILING_S = 840;
|
|
8
|
-
var CO_BATCHED_CALLERS = 4;
|
|
9
|
-
var MAX_STILL_BEATS_PER_BATCH = 18;
|
|
10
|
-
function stillBudgetSeconds(beats) {
|
|
11
|
-
return STILL_BUDGET_BASE_S + STILL_BUDGET_PER_BEAT_S * beats;
|
|
12
|
-
}
|
|
13
|
-
var STILL_COBATCH_MAX_BEATS = 3;
|
|
14
|
-
var STILL_WORKER_COLD_START_S = 150;
|
|
15
|
-
function stillCaptureWaitSeconds(beats) {
|
|
16
|
-
const run = beats > STILL_COBATCH_MAX_BEATS ? beats : STILL_COBATCH_MAX_BEATS * CO_BATCHED_CALLERS;
|
|
17
|
-
return STILL_WORKER_COLD_START_S + stillBudgetSeconds(run);
|
|
18
|
-
}
|
|
19
|
-
var PreviewFrameRequest = z.object({
|
|
20
|
-
composition: z.unknown().optional().describe(
|
|
21
|
-
"The composition to render. Absent \u21D2 the project's ACTIVE composition \u2014 what create_render will encode. The response's `previewed.source` names what was rendered."
|
|
22
|
-
),
|
|
23
|
-
compositionId: z.string().optional().describe(
|
|
24
|
-
"Preview a SPECIFIC persisted composition of this project (create_render parity). Absent \u21D2 the active one. A stale/foreign id is a 404 \u2014 never a silent fall-through."
|
|
25
|
-
),
|
|
26
|
-
session_id: z.string().optional().describe(
|
|
27
|
-
"Compose-session id: render that session's SCRATCH composition (what the session has been editing) instead of the active row. Ignored when `composition` is passed."
|
|
28
|
-
),
|
|
29
|
-
timestamps: z.array(z.number()).min(1).max(MAX_STILL_BEATS_PER_BATCH).describe(
|
|
30
|
-
`Composition seconds to capture, ${MAX_STILL_BEATS_PER_BATCH} per request. The batch renders as ONE unit of work \u2014 one warm container, one source decode, N seeks \u2014 and that unit has a fixed time budget, so a larger batch is refused here rather than accepted and timed out minutes later. For a denser sweep, split it across calls; identical beats are served from the still cache, so overlapping batches are cheap.`
|
|
31
|
-
),
|
|
32
|
-
imageFormat: z.enum(["png", "jpeg"]).optional().describe(
|
|
33
|
-
"Still format. Default jpeg \u2014 these pixels go to a vision model, where jpeg is equivalent and png costs multiples in bytes to store and move. Pass png only when you need full fidelity."
|
|
34
|
-
),
|
|
35
|
-
scale: z.number().min(0.1).max(1).optional().describe(
|
|
36
|
-
"Render scale 0.1\u20131. Default 0.5, which is what this schema has always recommended for vision-bound looks. Pass 1 when judging fine detail \u2014 it costs ~4x the vision tokens."
|
|
37
|
-
),
|
|
38
|
-
jpegQuality: z.number().int().min(1).max(100).optional().describe(
|
|
39
|
-
"JPEG quality (jpeg only). Default 70 \u2014 the quality the eval panel grades at."
|
|
40
|
-
)
|
|
41
|
-
});
|
|
42
|
-
var DesktopPreviewFrameRequest = PreviewFrameRequest.pick({
|
|
43
|
-
timestamps: true,
|
|
44
|
-
imageFormat: true,
|
|
45
|
-
scale: true,
|
|
46
|
-
jpegQuality: true
|
|
47
|
-
}).strict();
|
|
48
24
|
export {
|
|
25
|
+
CLIENT_HEADER,
|
|
26
|
+
CLIENT_OSES,
|
|
27
|
+
CLIENT_SURFACES,
|
|
49
28
|
CO_BATCHED_CALLERS,
|
|
50
29
|
DesktopPreviewFrameRequest,
|
|
51
30
|
MAX_STILL_BEATS_PER_BATCH,
|
|
@@ -55,6 +34,12 @@ export {
|
|
|
55
34
|
STILL_BUDGET_PER_BEAT_S,
|
|
56
35
|
STILL_COBATCH_MAX_BEATS,
|
|
57
36
|
STILL_WORKER_COLD_START_S,
|
|
37
|
+
clientOs,
|
|
38
|
+
clientPairIsPossible,
|
|
39
|
+
formatClientHeader,
|
|
40
|
+
osFromNodePlatform,
|
|
41
|
+
osFromUserAgent,
|
|
42
|
+
parseClientHeader,
|
|
58
43
|
stillBudgetSeconds,
|
|
59
44
|
stillCaptureWaitSeconds
|
|
60
45
|
};
|
package/dist/plane.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
assertCardHtmlAssetFree
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VVKBCBNR.js";
|
|
4
4
|
import "../chunk-OSMXQV5V.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-ULQJWGUV.js";
|
|
6
6
|
import "../chunk-2ESYSVXG.js";
|
|
7
7
|
export {
|
|
8
8
|
assertCardHtmlAssetFree
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
assertCardFontsAdmitted,
|
|
3
3
|
cardBundledFamilies,
|
|
4
4
|
cardFontFamilyStacks
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-JVWLZNHC.js";
|
|
6
|
+
import "../chunk-ULQJWGUV.js";
|
|
7
7
|
import "../chunk-AVTEPAWI.js";
|
|
8
8
|
import "../chunk-2ESYSVXG.js";
|
|
9
9
|
export {
|
package/dist/render-harness.js
CHANGED
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
} from "./chunk-KSRFYFUZ.js";
|
|
8
8
|
import {
|
|
9
9
|
assertCardHtmlAssetFree
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VVKBCBNR.js";
|
|
11
11
|
import "./chunk-OSMXQV5V.js";
|
|
12
12
|
import {
|
|
13
13
|
assertCardFontsAdmitted
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-JVWLZNHC.js";
|
|
15
|
+
import "./chunk-MYBK6DKF.js";
|
|
16
16
|
import "./chunk-BVA3537Z.js";
|
|
17
17
|
import {
|
|
18
18
|
COMPONENT_STILL_RUNTIME_IDENTITY,
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
readMaterializedComponentSource,
|
|
24
24
|
resolveRenderEntryRoot,
|
|
25
25
|
verifyLocalStagedBrowser
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-7XZW26U2.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
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-K66NLMGX.js";
|
|
33
|
+
import "./chunk-WL2MLKWU.js";
|
|
34
34
|
import {
|
|
35
35
|
componentBrowserBackend
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-JWMWVP64.js";
|
|
37
|
+
import "./chunk-EC6VFQE6.js";
|
|
38
38
|
import {
|
|
39
39
|
generatedStudioPreparationFactsV1,
|
|
40
40
|
scenePresetBuilderDescriptorV1
|
|
@@ -46,17 +46,17 @@ import {
|
|
|
46
46
|
parseSceneComponentCaptureIntentV1,
|
|
47
47
|
prepareSceneShotRenderInput,
|
|
48
48
|
readSceneShotManifest
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-AMFFWX3C.js";
|
|
50
50
|
import "./chunk-QH3YI3ND.js";
|
|
51
|
+
import "./chunk-CYILSHK5.js";
|
|
51
52
|
import "./chunk-QISFYLBB.js";
|
|
52
53
|
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";
|
|
57
57
|
import {
|
|
58
58
|
CueframeError
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-ULQJWGUV.js";
|
|
60
60
|
import "./chunk-7PA7FGLD.js";
|
|
61
61
|
import {
|
|
62
62
|
evaluateScene,
|