@enhance-eng/enhance 0.1.158 → 0.1.161
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/{cli-output-identity.lib-DBMayAFH.mjs → cli-output-identity.lib-BfvrkZX5.mjs} +232 -100
- package/dist/main.mjs +102 -32
- package/dist/{mcp-invocation.adapter-HEKcQv-G.mjs → mcp-invocation.adapter-DtgErzi9.mjs} +8 -4
- package/dist/mcp-main.mjs +7 -7
- package/dist/{mcp-server.adapter-D1D-6M_L.mjs → mcp-server.adapter-DJeyBKo7.mjs} +1 -1
- package/dist/mcp.mjs +2 -2
- package/dist/{mutation-key.adapter-DKwaV7lk.mjs → mutation-key.adapter-TMLqYILu.mjs} +346 -177
- package/dist/remote-mcp-main.mjs +5 -5
- package/package.json +1 -1
|
@@ -30,7 +30,8 @@ const LEGACY_CANVAS_FORMATS = {
|
|
|
30
30
|
v10: 10,
|
|
31
31
|
v11: 11,
|
|
32
32
|
v12: 12,
|
|
33
|
-
v13: 13
|
|
33
|
+
v13: 13,
|
|
34
|
+
v14: 14
|
|
34
35
|
};
|
|
35
36
|
const LEGACY_CANVAS_ADAPTATIONS = {
|
|
36
37
|
[LEGACY_CANVAS_FORMATS.v1]: "layout",
|
|
@@ -45,7 +46,8 @@ const LEGACY_CANVAS_ADAPTATIONS = {
|
|
|
45
46
|
[LEGACY_CANVAS_FORMATS.v10]: "geometry",
|
|
46
47
|
[LEGACY_CANVAS_FORMATS.v11]: "css",
|
|
47
48
|
[LEGACY_CANVAS_FORMATS.v12]: "text-shadow-blend",
|
|
48
|
-
[LEGACY_CANVAS_FORMATS.v13]: "format-number"
|
|
49
|
+
[LEGACY_CANVAS_FORMATS.v13]: "format-number",
|
|
50
|
+
[LEGACY_CANVAS_FORMATS.v14]: "format-number"
|
|
49
51
|
};
|
|
50
52
|
|
|
51
53
|
//#endregion
|
|
@@ -307,7 +309,7 @@ const withoutTextShadowBlends = (document) => {
|
|
|
307
309
|
|
|
308
310
|
//#endregion
|
|
309
311
|
//#region ../../packages/canvas-format/src/canvas-format.lib.ts
|
|
310
|
-
const READABLE_FORMATS = /* @__PURE__ */ new Set([...Object.values(LEGACY_CANVAS_FORMATS),
|
|
312
|
+
const READABLE_FORMATS = /* @__PURE__ */ new Set([...Object.values(LEGACY_CANVAS_FORMATS), 15]);
|
|
311
313
|
const isReadableCanvasFormat = (version) => READABLE_FORMATS.has(version);
|
|
312
314
|
/** Formats whose adaptation rewrites the stored document in place, keeping its geometry. */
|
|
313
315
|
const ADAPTED_IN_PLACE = /* @__PURE__ */ new Set([
|
|
@@ -331,20 +333,20 @@ const legacyLayout = (layout) => {
|
|
|
331
333
|
const adaptLegacyFormat = (document) => {
|
|
332
334
|
const version = document["version"];
|
|
333
335
|
if (!isReadableCanvasFormat(version)) return null;
|
|
334
|
-
if (version ===
|
|
336
|
+
if (version === 15 || !isRecord$1(document["nodes"])) return document;
|
|
335
337
|
const adaptation = Object.entries(LEGACY_CANVAS_ADAPTATIONS).find(([format]) => Number(format) === version)?.[1];
|
|
336
338
|
if (ADAPTED_IN_PLACE.has(adaptation)) return {
|
|
337
339
|
...document,
|
|
338
|
-
version:
|
|
340
|
+
version: 15
|
|
339
341
|
};
|
|
340
342
|
if (Object.values(document["nodes"]).some((node) => isRecord$1(node) && node["geometry"] !== void 0)) return null;
|
|
341
343
|
if (adaptation === "typography") return {
|
|
342
344
|
...document,
|
|
343
|
-
version:
|
|
345
|
+
version: 15
|
|
344
346
|
};
|
|
345
347
|
return {
|
|
346
348
|
...document,
|
|
347
|
-
version:
|
|
349
|
+
version: 15,
|
|
348
350
|
nodes: Object.fromEntries(Object.entries(document["nodes"]).map(([id, node]) => [id, isRecord$1(node) && node["layout"] !== void 0 ? {
|
|
349
351
|
...node,
|
|
350
352
|
layout: legacyLayout(node["layout"])
|
|
@@ -352,15 +354,15 @@ const adaptLegacyFormat = (document) => {
|
|
|
352
354
|
};
|
|
353
355
|
};
|
|
354
356
|
/**
|
|
355
|
-
* Adapt known formats in memory, retaining malformed content for each boundary's validator.
|
|
356
|
-
* 13
|
|
357
|
-
*
|
|
357
|
+
* Adapt known formats in memory, retaining malformed content for each boundary's validator. Formats
|
|
358
|
+
* 13 and 14 differ from the current format only in the optional facts their layers cannot hold, so
|
|
359
|
+
* they take only the new format number. Format 12 already has the CSS model, so it takes only the
|
|
358
360
|
* text shadow step that every older format takes after the CSS adaptation.
|
|
359
361
|
*/
|
|
360
362
|
const adaptCanvasDocumentFormat = (document) => {
|
|
361
363
|
const adapted = adaptLegacyFormat(document);
|
|
362
364
|
if (adapted === null || adapted === document) return adapted;
|
|
363
|
-
if (document["version"] === LEGACY_CANVAS_FORMATS.v13) return adapted;
|
|
365
|
+
if (document["version"] === LEGACY_CANVAS_FORMATS.v13 || document["version"] === LEGACY_CANVAS_FORMATS.v14) return adapted;
|
|
364
366
|
return withoutTextShadowBlends(document["version"] === LEGACY_CANVAS_FORMATS.v12 ? adapted : adaptCanvasCss(adapted));
|
|
365
367
|
};
|
|
366
368
|
|
|
@@ -931,6 +933,22 @@ const canvasBaselineSourceSchema = z.object({
|
|
|
931
933
|
overflowClip: z.literal(true).optional(),
|
|
932
934
|
lineAboveBorderBottom: canvasNumberSchema.optional()
|
|
933
935
|
}).strict();
|
|
936
|
+
/** The room a scroll container keeps for its scrollbars, per side, as conversion measured it. */
|
|
937
|
+
const canvasScrollbarGutterSchema = z.object({
|
|
938
|
+
top: nonNegativeCanvasNumberSchema.optional(),
|
|
939
|
+
right: nonNegativeCanvasNumberSchema.optional(),
|
|
940
|
+
bottom: nonNegativeCanvasNumberSchema.optional(),
|
|
941
|
+
left: nonNegativeCanvasNumberSchema.optional()
|
|
942
|
+
}).strict();
|
|
943
|
+
/** A percentage of the containing block plus pixels; unlike a size limit, either may be negative. */
|
|
944
|
+
const canvasParentRelativeCoordinateSchema = z.object({
|
|
945
|
+
ratio: canvasNumberSchema,
|
|
946
|
+
offset: canvasNumberSchema.optional()
|
|
947
|
+
}).strict();
|
|
948
|
+
const canvasPositionParentSchema = z.object({
|
|
949
|
+
x: canvasParentRelativeCoordinateSchema.optional(),
|
|
950
|
+
y: canvasParentRelativeCoordinateSchema.optional()
|
|
951
|
+
}).strict();
|
|
934
952
|
const canvasNodeLayoutSchema = z.object({
|
|
935
953
|
rotation: canvasNumberSchema.optional(),
|
|
936
954
|
flipHorizontal: z.boolean().optional(),
|
|
@@ -967,10 +985,12 @@ const canvasNodeLayoutSchema = z.object({
|
|
|
967
985
|
canvasParentSizeBoundSchema
|
|
968
986
|
]).optional(),
|
|
969
987
|
flowOffset: canvasFlowOffsetSchema.optional(),
|
|
988
|
+
positionParent: canvasPositionParentSchema.optional(),
|
|
970
989
|
order: canvasNumberSchema.int().optional(),
|
|
971
990
|
margin: canvasFlexMarginSchema.partial().optional(),
|
|
972
991
|
clipContent: z.boolean().optional(),
|
|
973
992
|
baselineSource: canvasBaselineSourceSchema.optional(),
|
|
993
|
+
scrollbarGutter: canvasScrollbarGutterSchema.optional(),
|
|
974
994
|
container: canvasFlexLayoutSchema.partial().extend({ padding: canvasFlexPaddingSchema.partial().optional() }).optional()
|
|
975
995
|
}).strict();
|
|
976
996
|
|
|
@@ -2195,7 +2215,7 @@ const canvasGeometrySchema = z.discriminatedUnion("kind", [
|
|
|
2195
2215
|
//#endregion
|
|
2196
2216
|
//#region ../../packages/contract/src/canvas/canvas-scene.schema.ts
|
|
2197
2217
|
const CANVAS_COMPOSITING_RETIRED = "Update Enhance: compositing is no longer supported. Use the isolation style or a mask group.";
|
|
2198
|
-
const canvasDocumentFormatSchema = z.literal(
|
|
2218
|
+
const canvasDocumentFormatSchema = z.literal(15, { error: "This editor uses an unsupported document format. Update the editor before changing this canvas." });
|
|
2199
2219
|
const canvasPreservedFontAppearanceSchema = z.object({
|
|
2200
2220
|
signature: z.string().regex(/^[a-f0-9]{16}$/u),
|
|
2201
2221
|
/** The captured picture of the page's text, inline as written or as its canvas image store path. */
|
|
@@ -2246,7 +2266,7 @@ const canvasSceneNodeSchema = z.looseObject({
|
|
|
2246
2266
|
box: canvasSceneBoxSchema.optional()
|
|
2247
2267
|
});
|
|
2248
2268
|
const canvasSceneDocumentSchema = z.object({
|
|
2249
|
-
version: z.literal(
|
|
2269
|
+
version: z.literal(15),
|
|
2250
2270
|
nodes: z.record(z.string(), canvasSceneNodeSchema),
|
|
2251
2271
|
relationships: z.record(z.string(), z.object({
|
|
2252
2272
|
parentId: z.string().min(1),
|
|
@@ -2263,7 +2283,7 @@ const canvasReadableSceneDocumentSchema = z.preprocess((value) => {
|
|
|
2263
2283
|
return adaptCanvasDocumentFormat(blob);
|
|
2264
2284
|
}, canvasSceneDocumentSchema);
|
|
2265
2285
|
const emptyCanvasSceneDocument = () => ({
|
|
2266
|
-
version:
|
|
2286
|
+
version: 15,
|
|
2267
2287
|
nodes: { root: {
|
|
2268
2288
|
id: "root",
|
|
2269
2289
|
label: "Canvas",
|
|
@@ -2358,14 +2378,26 @@ const canvasSubtreeDraftSchema = z.object({
|
|
|
2358
2378
|
nodeCount: draft.nodes.length
|
|
2359
2379
|
}
|
|
2360
2380
|
}));
|
|
2361
|
-
|
|
2381
|
+
/** A capture that lands as a new editable frame on a page, with no screen layer. */
|
|
2382
|
+
const editableFrameCaptureSchema = z.object({
|
|
2383
|
+
screenId: z.string().min(1),
|
|
2384
|
+
pageId: z.string().min(1)
|
|
2385
|
+
});
|
|
2386
|
+
const editableFrameInputBase = {
|
|
2362
2387
|
canvasId: z.uuid(),
|
|
2363
2388
|
documentFormatVersion: canvasDocumentFormatSchema,
|
|
2364
2389
|
mutationId: z.uuid(),
|
|
2365
2390
|
baseVersion: z.number().int().positive(),
|
|
2366
|
-
screenNodeId: z.string().min(1),
|
|
2367
2391
|
draft: canvasSubtreeDraftSchema
|
|
2368
|
-
}
|
|
2392
|
+
};
|
|
2393
|
+
/** An editable frame comes from exactly one screen layer or one capture, never both. */
|
|
2394
|
+
const createEditableFrameInputSchema = z.union([z.strictObject({
|
|
2395
|
+
...editableFrameInputBase,
|
|
2396
|
+
screenNodeId: z.string().min(1).describe("The screen layer to convert beside itself.")
|
|
2397
|
+
}), z.strictObject({
|
|
2398
|
+
...editableFrameInputBase,
|
|
2399
|
+
capture: editableFrameCaptureSchema.describe("The stored page a new capture lands from, and the page its frame goes on.")
|
|
2400
|
+
})]);
|
|
2369
2401
|
const createEditableFrameResultSchema = z.object({
|
|
2370
2402
|
canvasId: z.uuid(),
|
|
2371
2403
|
mutationId: z.uuid(),
|
|
@@ -2472,7 +2504,10 @@ const canvasRenderSnapshotResultSchema = z.object({
|
|
|
2472
2504
|
recordingId: z.uuid(),
|
|
2473
2505
|
atMs: z.number().int().nonnegative(),
|
|
2474
2506
|
screenId: z.uuid(),
|
|
2475
|
-
|
|
2507
|
+
/** Null when the snapshot asked for a place only, so no screen layer was added. */
|
|
2508
|
+
screenNodeId: z.string().min(1).nullable(),
|
|
2509
|
+
/** The page the place is on. */
|
|
2510
|
+
pageId: z.string().min(1).optional(),
|
|
2476
2511
|
viewport: z.object({
|
|
2477
2512
|
width: z.number().int().positive(),
|
|
2478
2513
|
height: z.number().int().positive()
|
|
@@ -2641,7 +2676,11 @@ const canvasSnapshotRequestSchema = z.strictObject({
|
|
|
2641
2676
|
pageId: z.string().min(1).optional(),
|
|
2642
2677
|
nodeIds: z.array(z.string().min(1))
|
|
2643
2678
|
}),
|
|
2644
|
-
|
|
2679
|
+
/**
|
|
2680
|
+
* Below the walkthrough: as a screen layer, which installed CLIs ask for, or as a place only,
|
|
2681
|
+
* where the agent's CLI lands an editable frame.
|
|
2682
|
+
*/
|
|
2683
|
+
placement: z.strictObject({ kind: z.enum(["below-source", "editable-below-source"]) })
|
|
2645
2684
|
});
|
|
2646
2685
|
const createRecordingSnapshotInputSchema = z.object({
|
|
2647
2686
|
canvasId: z.uuid(),
|
|
@@ -2913,6 +2952,21 @@ const canvasTextStylesSchema = z.strictObject({
|
|
|
2913
2952
|
"text-align": textStyleValues["text-align"].optional(),
|
|
2914
2953
|
"white-space": textStyleValues["white-space"].optional()
|
|
2915
2954
|
});
|
|
2955
|
+
/** Every alignment a browser computes, which conversion stores and Undo must be able to put back. */
|
|
2956
|
+
const storedTextAlignSchema = z.enum([
|
|
2957
|
+
"start",
|
|
2958
|
+
"end",
|
|
2959
|
+
"left",
|
|
2960
|
+
"right",
|
|
2961
|
+
"center",
|
|
2962
|
+
"justify",
|
|
2963
|
+
"justify-all",
|
|
2964
|
+
"match-parent",
|
|
2965
|
+
"-webkit-left",
|
|
2966
|
+
"-webkit-right",
|
|
2967
|
+
"-webkit-center"
|
|
2968
|
+
]);
|
|
2969
|
+
const storedFontStyleSchema = z.union([textStyleValues["font-style"], z.string().regex(/^oblique -?(?:\d+(?:\.\d+)?|\.\d+)deg$/u)]);
|
|
2916
2970
|
const restorableTextStyleValue = z.union([canvasAdditionalStyleSchema.shape.value, canvasNumberSchema]).nullable().optional();
|
|
2917
2971
|
const canvasTextStylePatchSchema = z.strictObject({
|
|
2918
2972
|
"text-decoration": restorableTextStyleValue,
|
|
@@ -2935,7 +2989,7 @@ const canvasTextStylePatchSchema = z.strictObject({
|
|
|
2935
2989
|
"text-box": canvasAdditionalStyleSchema.shape.value.nullable().optional(),
|
|
2936
2990
|
"text-box-trim": canvasAdditionalStyleSchema.shape.value.nullable().optional(),
|
|
2937
2991
|
"text-box-edge": canvasAdditionalStyleSchema.shape.value.nullable().optional(),
|
|
2938
|
-
"font-style":
|
|
2992
|
+
"font-style": storedFontStyleSchema.nullable().optional(),
|
|
2939
2993
|
"font-stretch": z.union([z.enum([
|
|
2940
2994
|
"normal",
|
|
2941
2995
|
"ultra-condensed",
|
|
@@ -2953,14 +3007,22 @@ const canvasTextStylePatchSchema = z.strictObject({
|
|
|
2953
3007
|
z.literal("normal")
|
|
2954
3008
|
]).nullable().optional(),
|
|
2955
3009
|
"line-height": textStyleValues["line-height"].nullable().optional(),
|
|
2956
|
-
"text-align":
|
|
3010
|
+
"text-align": storedTextAlignSchema.nullable().optional(),
|
|
2957
3011
|
"text-indent": z.union([canvasNumberSchema, signedPixelLengthSchema]).nullable().optional(),
|
|
2958
3012
|
"white-space": textStyleValues["white-space"].nullable().optional(),
|
|
2959
3013
|
"word-spacing": z.union([
|
|
2960
3014
|
canvasNumberSchema,
|
|
2961
3015
|
signedPixelLengthSchema,
|
|
2962
3016
|
z.literal("normal")
|
|
2963
|
-
]).nullable().optional()
|
|
3017
|
+
]).nullable().optional(),
|
|
3018
|
+
direction: restorableTextStyleValue,
|
|
3019
|
+
"unicode-bidi": restorableTextStyleValue,
|
|
3020
|
+
"hanging-punctuation": restorableTextStyleValue,
|
|
3021
|
+
"text-transform": restorableTextStyleValue,
|
|
3022
|
+
"-webkit-text-stroke": restorableTextStyleValue,
|
|
3023
|
+
"-webkit-text-stroke-width": restorableTextStyleValue,
|
|
3024
|
+
"-webkit-text-stroke-color": restorableTextStyleValue,
|
|
3025
|
+
"paint-order": restorableTextStyleValue
|
|
2964
3026
|
});
|
|
2965
3027
|
const overflowStyleValue = canvasAdditionalStyleSchema.shape.value;
|
|
2966
3028
|
const dimensionalStyleValue = z.union([z.string(), canvasNumberSchema]);
|
|
@@ -3583,7 +3645,7 @@ const canvasInspectNodeSummarySchema = z.object({
|
|
|
3583
3645
|
kind: z.string().min(1).max(MAX_RENDER_KIND_LENGTH),
|
|
3584
3646
|
parentId: z.string().min(1).nullable(),
|
|
3585
3647
|
childCount: z.number().int().min(0),
|
|
3586
|
-
box:
|
|
3648
|
+
box: canvasSceneBoxSchema.nullable(),
|
|
3587
3649
|
propertySections: z.array(canvasPropertySectionSchema)
|
|
3588
3650
|
});
|
|
3589
3651
|
const inspectCanvasInputSchema = z.object({ canvasId: z.uuid() });
|
|
@@ -3594,7 +3656,7 @@ const inspectCanvasOutputSchema = z.object({
|
|
|
3594
3656
|
version: z.number().int().positive(),
|
|
3595
3657
|
nodeCount: z.number().int().min(0),
|
|
3596
3658
|
rootChildCount: z.number().int().min(0),
|
|
3597
|
-
bounds:
|
|
3659
|
+
bounds: canvasSceneBoxSchema.nullable(),
|
|
3598
3660
|
kinds: z.record(z.string(), z.number().int().min(0)),
|
|
3599
3661
|
next: z.array(z.string().min(1))
|
|
3600
3662
|
});
|
|
@@ -7498,7 +7560,7 @@ const ROOT_FIXTURE_NODE_ID = "root";
|
|
|
7498
7560
|
const SORT_KEY_DIGITS = 4;
|
|
7499
7561
|
const sortKeyAt = (seat) => `a${String(seat).padStart(SORT_KEY_DIGITS, "0")}`;
|
|
7500
7562
|
const emptyFixtureDocument = () => ({
|
|
7501
|
-
version:
|
|
7563
|
+
version: 15,
|
|
7502
7564
|
nodes: { [ROOT_FIXTURE_NODE_ID]: {
|
|
7503
7565
|
id: ROOT_FIXTURE_NODE_ID,
|
|
7504
7566
|
label: "Canvas",
|
|
@@ -8174,6 +8236,11 @@ const prototypeBridgeConnectedSchema = z$1.extend(prototypeBridgeConnectRequestS
|
|
|
8174
8236
|
capabilities: z$1.array(z$1.string()),
|
|
8175
8237
|
release: z$1.string().check(z$1.minLength(1))
|
|
8176
8238
|
});
|
|
8239
|
+
/**
|
|
8240
|
+
* The input script's answer to a connect request when the page's own Content Security Policy
|
|
8241
|
+
* refused the capture script, which therefore can never answer it.
|
|
8242
|
+
*/
|
|
8243
|
+
const prototypeBridgeCaptureBlockedSchema = z$1.extend(prototypeBridgeConnectRequestSchema, { type: z$1.literal("enhance.prototype.capture-blocked") });
|
|
8177
8244
|
const prototypeBridgeUnloadingSchema = z$1.object({
|
|
8178
8245
|
protocol: z$1.literal(1),
|
|
8179
8246
|
type: z$1.literal("enhance.prototype.unloading"),
|
|
@@ -8791,6 +8858,8 @@ const createScreenInputSchema = z.object({
|
|
|
8791
8858
|
});
|
|
8792
8859
|
const createScreenOutputSchema = z.object({
|
|
8793
8860
|
screenId: z.uuid(),
|
|
8861
|
+
/** Where the screen's files are stored; a capture names its stored copies by it. */
|
|
8862
|
+
assetBundleId: z.uuid().nullable(),
|
|
8794
8863
|
/** Re-issued on every call, because the usual reason for a retry is an expired presign. */
|
|
8795
8864
|
upload: signedUploadSchema,
|
|
8796
8865
|
alreadyExists: z.boolean(),
|
|
@@ -9100,6 +9169,7 @@ const clientRenderFailureDetailsSchema = z.strictObject({
|
|
|
9100
9169
|
"clipboard-image-pending",
|
|
9101
9170
|
"clipboard-image-unavailable",
|
|
9102
9171
|
"edit-target-unsupported",
|
|
9172
|
+
"edit-result-invalid",
|
|
9103
9173
|
"react-hook-order",
|
|
9104
9174
|
"menu-rows-unsupported"
|
|
9105
9175
|
]),
|
|
@@ -9416,7 +9486,8 @@ const CANVAS_SAVE_ANALYTICS_STATES = [
|
|
|
9416
9486
|
"delivered",
|
|
9417
9487
|
"failed",
|
|
9418
9488
|
"disabled",
|
|
9419
|
-
"no-identity"
|
|
9489
|
+
"no-identity",
|
|
9490
|
+
"expired"
|
|
9420
9491
|
];
|
|
9421
9492
|
const clientSaveIncidentOutputSchema = z.object({
|
|
9422
9493
|
accepted: z.literal(true),
|
|
@@ -10858,50 +10929,6 @@ const CANVAS_CAPABILITY_SPECS = [
|
|
|
10858
10929
|
}
|
|
10859
10930
|
];
|
|
10860
10931
|
|
|
10861
|
-
//#endregion
|
|
10862
|
-
//#region src/application/canvas-capture.schema.ts
|
|
10863
|
-
const canvasCaptureCapabilityInputSchema = z.strictObject({
|
|
10864
|
-
...canvasRenderRequestSchema.pick({
|
|
10865
|
-
canvasRef: true,
|
|
10866
|
-
waitMs: true
|
|
10867
|
-
}).shape,
|
|
10868
|
-
baseVersion: z.number().int().positive(),
|
|
10869
|
-
source: z.strictObject({
|
|
10870
|
-
kind: z.literal("recording"),
|
|
10871
|
-
recordingId: z.uuid(),
|
|
10872
|
-
atMs: z.number().int().nonnegative()
|
|
10873
|
-
}),
|
|
10874
|
-
previewJobId: z.uuid().describe("The successful canvas_render job whose pixels you inspected at this exact recording time and canvas version."),
|
|
10875
|
-
placement: canvasSnapshotRequestSchema.shape.placement
|
|
10876
|
-
});
|
|
10877
|
-
const canvasCaptureInputSchema = canvasCaptureCapabilityInputSchema.extend({ clientToken: z.uuid() });
|
|
10878
|
-
const canvasCaptureOutputSchema = z.strictObject({
|
|
10879
|
-
operation: z.strictObject({
|
|
10880
|
-
kind: z.literal("canvas-render"),
|
|
10881
|
-
canvasId: z.uuid(),
|
|
10882
|
-
jobId: z.uuid()
|
|
10883
|
-
}),
|
|
10884
|
-
state: z.enum([
|
|
10885
|
-
"queued",
|
|
10886
|
-
"running",
|
|
10887
|
-
"succeeded",
|
|
10888
|
-
"failed",
|
|
10889
|
-
"cancelled",
|
|
10890
|
-
"expired"
|
|
10891
|
-
]),
|
|
10892
|
-
requestedVersion: z.number().int().positive(),
|
|
10893
|
-
source: canvasCaptureCapabilityInputSchema.shape.source,
|
|
10894
|
-
attachment: z.enum([
|
|
10895
|
-
"pending",
|
|
10896
|
-
"committed",
|
|
10897
|
-
"not_confirmed"
|
|
10898
|
-
]),
|
|
10899
|
-
result: canvasRenderSnapshotResultSchema.nullable(),
|
|
10900
|
-
failure: canvasRenderFailureSchema.nullable(),
|
|
10901
|
-
warningCount: z.number().int().nonnegative(),
|
|
10902
|
-
warnings: z.array(z.string())
|
|
10903
|
-
});
|
|
10904
|
-
|
|
10905
10932
|
//#endregion
|
|
10906
10933
|
//#region src/application/canvas-receipt.schema.ts
|
|
10907
10934
|
const nodeId = canvasSceneNodeSchema.shape.id;
|
|
@@ -10982,6 +11009,58 @@ const canvasPreparationStatusSchema = z.strictObject({
|
|
|
10982
11009
|
});
|
|
10983
11010
|
const canvasPreparationOutputSchema = z.union([canvasWriteReceiptSchema, canvasPreparationStatusSchema]).meta({ type: "object" });
|
|
10984
11011
|
|
|
11012
|
+
//#endregion
|
|
11013
|
+
//#region src/application/canvas-capture.schema.ts
|
|
11014
|
+
const canvasCaptureCapabilityInputSchema = z.strictObject({
|
|
11015
|
+
...canvasRenderRequestSchema.pick({
|
|
11016
|
+
canvasRef: true,
|
|
11017
|
+
waitMs: true
|
|
11018
|
+
}).shape,
|
|
11019
|
+
baseVersion: z.number().int().positive(),
|
|
11020
|
+
source: z.strictObject({
|
|
11021
|
+
kind: z.literal("recording"),
|
|
11022
|
+
recordingId: z.uuid(),
|
|
11023
|
+
atMs: z.number().int().nonnegative()
|
|
11024
|
+
}),
|
|
11025
|
+
previewJobId: z.uuid().describe("The successful canvas_render job whose pixels you inspected at this exact recording time and canvas version."),
|
|
11026
|
+
placement: canvasSnapshotRequestSchema.shape.placement.describe("Use editable-below-source. below-source is kept for older clients and lands the same editable frame below the root-level recording on its page.")
|
|
11027
|
+
});
|
|
11028
|
+
const canvasCaptureInputSchema = canvasCaptureCapabilityInputSchema.extend({ clientToken: z.uuid() });
|
|
11029
|
+
const canvasCaptureOutputSchema = z.strictObject({
|
|
11030
|
+
operation: z.discriminatedUnion("kind", [
|
|
11031
|
+
z.strictObject({
|
|
11032
|
+
kind: z.literal("canvas-render"),
|
|
11033
|
+
canvasId: z.uuid(),
|
|
11034
|
+
jobId: z.uuid()
|
|
11035
|
+
}),
|
|
11036
|
+
canvasPreparationOperationSchema,
|
|
11037
|
+
canvasMutationReferenceSchema
|
|
11038
|
+
]).describe("The step to follow with operation_status: the snapshot, the compile, or the saved frame."),
|
|
11039
|
+
state: z.enum([
|
|
11040
|
+
"queued",
|
|
11041
|
+
"running",
|
|
11042
|
+
"succeeded",
|
|
11043
|
+
"failed",
|
|
11044
|
+
"cancelled",
|
|
11045
|
+
"expired"
|
|
11046
|
+
]),
|
|
11047
|
+
requestedVersion: z.number().int().positive(),
|
|
11048
|
+
source: canvasCaptureCapabilityInputSchema.shape.source,
|
|
11049
|
+
attachment: z.enum([
|
|
11050
|
+
"pending",
|
|
11051
|
+
"committed",
|
|
11052
|
+
"not_confirmed"
|
|
11053
|
+
]),
|
|
11054
|
+
result: canvasRenderSnapshotResultSchema.nullable(),
|
|
11055
|
+
frame: z.strictObject({
|
|
11056
|
+
nodeId: canvasSceneNodeSchema.shape.id,
|
|
11057
|
+
version: z.number().int().positive()
|
|
11058
|
+
}).nullable().describe("The editable frame the capture saved, once attachment is committed; version is the canvas version for your next write."),
|
|
11059
|
+
failure: canvasRenderFailureSchema.nullable(),
|
|
11060
|
+
warningCount: z.number().int().nonnegative(),
|
|
11061
|
+
warnings: z.array(z.string())
|
|
11062
|
+
});
|
|
11063
|
+
|
|
10985
11064
|
//#endregion
|
|
10986
11065
|
//#region src/application/canvas-asset.schema.ts
|
|
10987
11066
|
const canvasAssetOperationSchema = canvasAssetUploadIdentitySchema.extend({ kind: z.literal("canvas-asset") });
|
|
@@ -11182,8 +11261,15 @@ const CANVAS_CONVERSION_CAPABILITY_SPECS = [
|
|
|
11182
11261
|
idempotency: "single",
|
|
11183
11262
|
inputSchema: canvasCaptureCapabilityInputSchema,
|
|
11184
11263
|
outputSchema: canvasCaptureOutputSchema,
|
|
11185
|
-
summary: "
|
|
11186
|
-
procedures: [
|
|
11264
|
+
summary: "Land an inspected recording moment as an editable frame below its recording, saved as one change at the observed canvas revision.",
|
|
11265
|
+
procedures: [
|
|
11266
|
+
"canvas.mutation.get",
|
|
11267
|
+
"canvas.render.snapshot",
|
|
11268
|
+
"canvas.render.get",
|
|
11269
|
+
"canvas.render.preparation.create",
|
|
11270
|
+
"canvas.render.preparation.get",
|
|
11271
|
+
"canvas.applyOperations"
|
|
11272
|
+
],
|
|
11187
11273
|
inputExample: {
|
|
11188
11274
|
canvasRef: CAPABILITY_UUID_EXAMPLE,
|
|
11189
11275
|
baseVersion: 1,
|
|
@@ -11193,7 +11279,7 @@ const CANVAS_CONVERSION_CAPABILITY_SPECS = [
|
|
|
11193
11279
|
atMs: 500
|
|
11194
11280
|
},
|
|
11195
11281
|
previewJobId: CAPABILITY_UUID_EXAMPLE,
|
|
11196
|
-
placement: { kind: "below-source" },
|
|
11282
|
+
placement: { kind: "editable-below-source" },
|
|
11197
11283
|
waitMs: 1500
|
|
11198
11284
|
},
|
|
11199
11285
|
outputExample: {
|
|
@@ -11211,6 +11297,7 @@ const CANVAS_CONVERSION_CAPABILITY_SPECS = [
|
|
|
11211
11297
|
},
|
|
11212
11298
|
attachment: "pending",
|
|
11213
11299
|
result: null,
|
|
11300
|
+
frame: null,
|
|
11214
11301
|
failure: null,
|
|
11215
11302
|
warningCount: 0,
|
|
11216
11303
|
warnings: []
|
|
@@ -11932,6 +12019,7 @@ const OPTION_DESCRIPTIONS = {
|
|
|
11932
12019
|
"--message-id": "Comment message id returned by comment writes or `enhance comment list`.",
|
|
11933
12020
|
"--node-id": "Stable node id returned by `enhance canvas tree`.",
|
|
11934
12021
|
"--screen-node-id": "Root-level screen node id returned by `enhance canvas tree`.",
|
|
12022
|
+
"--capture": "JSON `{screenId, pageId}`: a stored captured page and the page for its frame.",
|
|
11935
12023
|
"--job-id": "Render or conversion job id returned by its create command.",
|
|
11936
12024
|
"--person-id": "Person id returned by the relevant people or participants list.",
|
|
11937
12025
|
"--display-name": "Name to show for the current person in comments and collaboration surfaces.",
|
|
@@ -12911,8 +12999,10 @@ const credentialRefusedError = (reason) => appError("UNAUTHORIZED", REFUSED_CRED
|
|
|
12911
12999
|
|
|
12912
13000
|
//#endregion
|
|
12913
13001
|
//#region ../api/src/shared/trpc/instance.trpc.ts
|
|
12914
|
-
|
|
12915
|
-
|
|
13002
|
+
const OPAQUE_FAILURE = {
|
|
13003
|
+
code: "INTERNAL",
|
|
13004
|
+
message: "something went wrong on our side; quote the correlation id"
|
|
13005
|
+
};
|
|
12916
13006
|
/** What a caller is told when their input failed validation. The detail is in `fields`. */
|
|
12917
13007
|
const REJECTED = REQUEST_REJECTED;
|
|
12918
13008
|
/** Structural, not `instanceof ZodError`, which breaks across two installed copies of zod. */
|
|
@@ -12963,9 +13053,10 @@ const fieldMessage = (issue) => {
|
|
|
12963
13053
|
* without parsing prose, it describes an internal schema, and it is the most common failure any
|
|
12964
13054
|
* form produces.
|
|
12965
13055
|
*/
|
|
12966
|
-
const fieldsOf$2 = (cause) => {
|
|
13056
|
+
const fieldsOf$2 = ({ code, cause }) => {
|
|
12967
13057
|
const parsed = issueList.safeParse(cause);
|
|
12968
13058
|
if (!parsed.success) return null;
|
|
13059
|
+
if (code !== "BAD_REQUEST") return OPAQUE_FAILURE;
|
|
12969
13060
|
return {
|
|
12970
13061
|
code: "BAD_REQUEST",
|
|
12971
13062
|
message: REJECTED,
|
|
@@ -12989,26 +13080,28 @@ const fieldsOf$2 = (cause) => {
|
|
|
12989
13080
|
* Every other code is a refusal this system chose to make, with a sentence written for whoever
|
|
12990
13081
|
* provoked it. Those are part of the contract and cross unchanged.
|
|
12991
13082
|
*/
|
|
12992
|
-
const toWireAppError = (
|
|
12993
|
-
|
|
12994
|
-
if (cause.code === "
|
|
12995
|
-
|
|
12996
|
-
message: OPAQUE
|
|
12997
|
-
};
|
|
13083
|
+
const toWireAppError = (failure) => {
|
|
13084
|
+
const { cause } = failure;
|
|
13085
|
+
if (!isAppError(cause)) return fieldsOf$2(failure) ?? (failure.code === "INTERNAL_SERVER_ERROR" ? OPAQUE_FAILURE : null);
|
|
13086
|
+
if (cause.code === "INTERNAL") return OPAQUE_FAILURE;
|
|
12998
13087
|
return {
|
|
12999
13088
|
code: cause.code,
|
|
13000
13089
|
message: cause.message,
|
|
13001
13090
|
...cause.fields && { fields: cause.fields }
|
|
13002
13091
|
};
|
|
13003
13092
|
};
|
|
13004
|
-
const t = initTRPC.context().create({ errorFormatter: ({ shape, error, ctx }) =>
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
...shape
|
|
13008
|
-
appError:
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13093
|
+
const t = initTRPC.context().create({ errorFormatter: ({ shape, error, ctx }) => {
|
|
13094
|
+
const appError = toWireAppError(error);
|
|
13095
|
+
return {
|
|
13096
|
+
...shape,
|
|
13097
|
+
message: appError?.code === "INTERNAL" ? appError.message : shape.message,
|
|
13098
|
+
data: {
|
|
13099
|
+
...shape.data,
|
|
13100
|
+
appError,
|
|
13101
|
+
correlationId: ctx === void 0 ? null : ctx.requestId
|
|
13102
|
+
}
|
|
13103
|
+
};
|
|
13104
|
+
} });
|
|
13012
13105
|
const trpcRouter = t.router;
|
|
13013
13106
|
const trpcProcedure = t.procedure;
|
|
13014
13107
|
const trpcMiddleware = t.middleware;
|
|
@@ -13045,7 +13138,7 @@ const outcomeFrom = (result) => {
|
|
|
13045
13138
|
kind: "success",
|
|
13046
13139
|
data: result.data
|
|
13047
13140
|
};
|
|
13048
|
-
const onWire = toWireAppError(result.error
|
|
13141
|
+
const onWire = toWireAppError(result.error);
|
|
13049
13142
|
if (onWire !== null) return {
|
|
13050
13143
|
kind: "failure",
|
|
13051
13144
|
error: onWire
|
|
@@ -13443,6 +13536,30 @@ const toCanvasSceneNodeContract = (node) => canvasSceneNodeSchema.parse({
|
|
|
13443
13536
|
...node.box !== void 0 && { box: { ...node.box } }
|
|
13444
13537
|
});
|
|
13445
13538
|
|
|
13539
|
+
//#endregion
|
|
13540
|
+
//#region ../api/src/canvas/infrastructure/editable-frame-origin.mapper.ts
|
|
13541
|
+
/**
|
|
13542
|
+
* Where an editable frame comes from and where it goes: beside its screen layer, or, for a capture
|
|
13543
|
+
* that has no screen layer, onto its page at the box the draft gives.
|
|
13544
|
+
*/
|
|
13545
|
+
const toEditableFrameOrigin = (input) => "screenNodeId" in input ? {
|
|
13546
|
+
destination: { kind: "adjacent" },
|
|
13547
|
+
source: {
|
|
13548
|
+
kind: "screen",
|
|
13549
|
+
nodeId: input.screenNodeId
|
|
13550
|
+
}
|
|
13551
|
+
} : {
|
|
13552
|
+
destination: {
|
|
13553
|
+
kind: "insert-children",
|
|
13554
|
+
targetNodeId: "root",
|
|
13555
|
+
pageId: input.capture.pageId
|
|
13556
|
+
},
|
|
13557
|
+
source: {
|
|
13558
|
+
kind: "captured-page",
|
|
13559
|
+
screenId: input.capture.screenId
|
|
13560
|
+
}
|
|
13561
|
+
};
|
|
13562
|
+
|
|
13446
13563
|
//#endregion
|
|
13447
13564
|
//#region ../api/src/canvas/infrastructure/canvas.router.ts
|
|
13448
13565
|
const applyOperations = (handlers) => canvasEditorProcedure.input(applyCanvasOperationsInputSchema).output(applyCanvasOperationsOutputSchema).mutation(async ({ input, ctx }) => {
|
|
@@ -13466,11 +13583,7 @@ const applyOperations = (handlers) => canvasEditorProcedure.input(applyCanvasOpe
|
|
|
13466
13583
|
const createEditableFrame = (handlers) => canvasEditorProcedure.meta({ description: "Atomically insert a validated editable frame subtree beside an existing screen." }).input(createEditableFrameInputSchema).output(createEditableFrameOutputSchema).mutation(async ({ input, ctx }) => {
|
|
13467
13584
|
const created = orThrow(await handlers.createEditableFrame.execute({
|
|
13468
13585
|
...input,
|
|
13469
|
-
|
|
13470
|
-
source: {
|
|
13471
|
-
kind: "screen",
|
|
13472
|
-
nodeId: input.screenNodeId
|
|
13473
|
-
},
|
|
13586
|
+
...toEditableFrameOrigin(input),
|
|
13474
13587
|
personId: ctx.viewer.personId,
|
|
13475
13588
|
actor: toCanvasMutationActor(ctx.viewer)
|
|
13476
13589
|
}));
|
|
@@ -14760,18 +14873,30 @@ const toCanvasPreparationJob = (job) => {
|
|
|
14760
14873
|
const actorOf$2 = (viewer) => toAgentCanvasRequestActor(viewer) ?? orThrow((0, import_index_cjs.err)(appError("UNAUTHORIZED", "this call needs an agent token")));
|
|
14761
14874
|
const present = (job) => toCanvasPreparationJob(job) ?? orThrow((0, import_index_cjs.err)(appError("NOT_FOUND", "no such preparation")));
|
|
14762
14875
|
const firstNodeId = (request) => {
|
|
14763
|
-
if (request.kind === "compile-screens") return
|
|
14876
|
+
if (request.kind === "compile-screens") return "root";
|
|
14764
14877
|
if (request.kind === "compile-html") return request.fragments[0]?.parentNodeId;
|
|
14765
14878
|
if (request.kind === "duplicate") return request.nodeIds[0];
|
|
14766
14879
|
const change = request.changes[0];
|
|
14767
14880
|
if (change === void 0) return void 0;
|
|
14768
14881
|
return "nodeIds" in change ? change.nodeIds[0] : change.nodeId;
|
|
14769
14882
|
};
|
|
14883
|
+
/**
|
|
14884
|
+
* An agent compiles a stored page only when it captured that page on this canvas: each page is the
|
|
14885
|
+
* agent's own succeeded snapshot, so the compile reads nothing the agent could not read already.
|
|
14886
|
+
*/
|
|
14887
|
+
const hasOwnCapturedPages = async (handlers, canvasId, request, actor) => {
|
|
14888
|
+
if (request.kind !== "compile-screens") return true;
|
|
14889
|
+
return (await Promise.all(request.sources.map(async ({ screenId }) => handlers.get.execute({
|
|
14890
|
+
jobId: screenId,
|
|
14891
|
+
actor
|
|
14892
|
+
})))).every((snapshot) => snapshot.isOk() && snapshot.value.purpose === "snapshot" && snapshot.value.canvasId === canvasId && snapshot.value.state === "succeeded");
|
|
14893
|
+
};
|
|
14770
14894
|
const createCanvasPreparationRouter = (handlers) => trpcRouter({
|
|
14771
|
-
create: agentCanvasEditorProcedure.meta({ description: "Prepare a typed canvas arrangement, duplicate or
|
|
14895
|
+
create: agentCanvasEditorProcedure.meta({ description: "Prepare a typed canvas arrangement, duplicate, HTML compilation or captured-page compilation through the native renderer without committing it." }).input(createCanvasPreparationInputSchema).output(createCanvasPreparationOutputSchema).mutation(async ({ input, ctx }) => {
|
|
14772
14896
|
const actor = actorOf$2(ctx.viewer);
|
|
14773
14897
|
const nodeId = firstNodeId(input.request);
|
|
14774
14898
|
if (nodeId === void 0) return orThrow((0, import_index_cjs.err)(appError("BAD_REQUEST", "preparation needs explicit objects")));
|
|
14899
|
+
if (!await hasOwnCapturedPages(handlers, input.canvasId, input.request, actor)) return orThrow((0, import_index_cjs.err)(appError("FORBIDDEN", "an agent compiles only a page it captured on this canvas")));
|
|
14775
14900
|
const made = orThrow(await handlers.create.execute({
|
|
14776
14901
|
canvasId: input.canvasId,
|
|
14777
14902
|
expectedVersion: input.expectedVersion,
|
|
@@ -15221,6 +15346,12 @@ const EXPORT_ATTEMPT_DEADLINE_MINUTES = 30;
|
|
|
15221
15346
|
/** A person's export of a tall or wide layer is banded, so it may run longer than other renders. */
|
|
15222
15347
|
const RENDER_EXPORT_MAX_AGE_MS = EXPORT_MAX_AGE_MINUTES * MILLISECONDS_PER_MINUTE;
|
|
15223
15348
|
const RENDER_EXPORT_ATTEMPT_DEADLINE_MS = EXPORT_ATTEMPT_DEADLINE_MINUTES * MILLISECONDS_PER_MINUTE;
|
|
15349
|
+
const THUMBNAIL_MAX_AGE_MINUTES = 60;
|
|
15350
|
+
/**
|
|
15351
|
+
* A release asks for its thumbnails in batches of 50, and a large canvas takes minutes on the
|
|
15352
|
+
* lane's few workers, so the last in line must outlast the whole batch ahead of it.
|
|
15353
|
+
*/
|
|
15354
|
+
const RENDER_THUMBNAIL_MAX_AGE_MS = THUMBNAIL_MAX_AGE_MINUTES * MILLISECONDS_PER_MINUTE;
|
|
15224
15355
|
const CAPTURE_COMPILE_ATTEMPT_DEADLINE_MINUTES = 2;
|
|
15225
15356
|
/**
|
|
15226
15357
|
* A screen compile of a capture run has two minutes of work. A page not editable by then lands as
|
|
@@ -16842,6 +16973,7 @@ const createScreenRouter = (handlers) => trpcRouter({
|
|
|
16842
16973
|
});
|
|
16843
16974
|
return {
|
|
16844
16975
|
screenId: result.screen.id,
|
|
16976
|
+
assetBundleId: result.screen.assetBundleId,
|
|
16845
16977
|
upload: {
|
|
16846
16978
|
url: result.upload.url,
|
|
16847
16979
|
expiresAt: result.upload.expiresAt.toISOString(),
|
|
@@ -17025,7 +17157,7 @@ const deliverCanvasSaveRecord = async (analytics, input, personId, build) => {
|
|
|
17025
17157
|
properties: eventPropertiesOf(input, trace, build.apiBuild, build.environment),
|
|
17026
17158
|
insertId: trace.eventId,
|
|
17027
17159
|
occurredAt: new Date(trace.occurredAt)
|
|
17028
|
-
})).unwrapOr(
|
|
17160
|
+
})).unwrapOr("failed");
|
|
17029
17161
|
};
|
|
17030
17162
|
const clientSaveTelemetryRoute = (deps) => baseProcedure.input(clientSaveIncidentInputSchema).output(clientSaveIncidentOutputSchema).mutation(async ({ input, ctx }) => {
|
|
17031
17163
|
const { analytics, apiBuild, environment } = deps;
|
|
@@ -18035,4 +18167,4 @@ const withCommandInFailure = (value, commandName) => ({
|
|
|
18035
18167
|
});
|
|
18036
18168
|
|
|
18037
18169
|
//#endregion
|
|
18038
|
-
export { canvasRenderBatchRequestSchema as $, wholeCanvasDocumentOutputSchema as $n, cliAuthConfigurationSchema as $t, operationStatusImageSchema as A, canvasRecordingPropsSchema as An, canvasAdditionalStyleSchema as Ar, hasCanvasReferenceScope as At,
|
|
18170
|
+
export { canvasRenderBatchRequestSchema as $, wholeCanvasDocumentOutputSchema as $n, cliAuthConfigurationSchema as $t, operationStatusImageSchema as A, canvasRecordingPropsSchema as An, canvasAdditionalStyleSchema as Ar, hasCanvasReferenceScope as At, canvasArrangeInputSchema as B, FRAME_KIND as Bn, getRecordingOutputSchema as Bt, canvasPrototypeOutputSchema as C, canvasCssTypographyOwners as Cn, reserveCanvasAssetOutputSchema as Cr, canvasMakeEditableInputSchema as Ct, encodeCanvasExchangeToken as D, canvasCaptureSchema as Dn, canvasRichTextValueOf as Dr, canvasReferenceNodeIds as Dt, decodeCanvasExchangeToken as E, canvasTextRunsOf as En, canvasRichTextOf as Er, assertCanvasReferenceNodes as Et, canvasAssetImportOutputSchema as F, canvasAgentActivityPhaseSchema as Fn, createCanvasOutputSchema as Fr, appErrorSchema as Ft, canvasApplyCapabilityInputSchema as G, TEXT_KIND as Gn, foldPrototypeArtifactPath as Gt, canvasDuplicateInputSchema as H, IMAGE_KIND as Hn, PROTOTYPE_ARTIFACT_MANIFEST_PATH as Ht, canvasCaptureCapabilityInputSchema as I, AGENT_CLIENT_HEADER as In, listCanvasesOutputSchema as Ir, completeScreenOutputSchema as It, canvasWriteHtmlCapabilityInputSchema as J, getCanvasMutationOutputSchema as Jn, prototypeArtifactManifestSchema as Jt, canvasReadCapabilityInputSchema as K, applyCanvasOperationsInputSchema as Kn, getPrototypeArtifactCapabilitiesOutputSchema as Kt, canvasCaptureInputSchema as L, agentClientMetadata as Ln, createScreenOutputSchema as Lt, operationStatusOutputSchema as M, canvasReferencePageOf as Mn, canvasBlendModeSchema as Mr, PartialBatchError as Mt, canvasAssetImportCapabilityInputSchema as N, resolveCanvasReference as Nn, canvasPaintSchema as Nr, CliError as Nt, resolveCanvasSnapshot as O, canvasConversionMetadataSchema as On, hasCanvasRichTextPaints as Or, canvasReferenceRenderTarget as Ot, canvasAssetImportInputSchema as P, beginCanvasActivityOutputSchema as Pn, canvasSchema as Pr, transcriptOutputSchema as Pt, transcriptReadCapabilityInputSchema as Q, saveCanvasDocumentOutputSchema as Qn, MCP_AUTH_SCOPE as Qt, canvasCaptureOutputSchema as R, createCanvasPreparationOutputSchema as Rn, appendRecordingChunkOutputSchema as Rt, canvasPrototypeIntentSchema as S, applyCanvasTypographyPatch as Sn, reserveCanvasAssetInputSchema as Sr, canvasMakeEditableCapabilityInputSchema as St, canvasSnapshotToken as T, canvasTextPropsWithContent as Tn, canvasImageAssetIdentityFromPath as Tr, canvasEditsSchema as Tt, canvasPreparationOutputSchema as U, PAGE_KIND as Un, attachPrototypeArtifactOutputSchema as Ut, canvasDuplicateCapabilityInputSchema as V, GROUP_KIND as Vn, startRecordingOutputSchema as Vt, canvasWriteReceiptSchema as W, RECTANGLE_KIND as Wn, createPrototypeArtifactOutputSchema as Wt, prototypePublishCapabilityInputSchema as X, textOf as Xn, submitPrototypeArtifactOutputSchema as Xt, commentAttentionCapabilityInputSchema as Y, canvasLayoutWithoutCssProperties as Yn, prototypeArtifactPathSchema as Yt, recordingSnapshotCapabilityInputSchema as Z, mapCanvasFontSources as Zn, getMeOutputSchema as Zt, OPTION_DESCRIPTIONS as _, screenAreaCommentTargetSchema as _n, canvasLayoutMainAxisOf as _r, canvasFindCursorSchema as _t, toSharedCapabilities as a, commentAuthorSchema as an, canvasRenderStateSchema as ar, canvasRenderFileSchema as at, canvasPrototypeCapabilityInputSchema as b, screenTextCommentTargetSchema as bn, canvasCssValue as br, canvasInsertHtmlCapabilityInputSchema as bt, toFailurePayload as c, commentResolverSchema as cn, createCanvasRenderOutputSchema as cr, canvasOutlineCursorSchema as ct, toRemoteError as d, elementAnchorSchema as dn, getCanvasRenderOutputSchema as dr, canvasUpdateHtmlCapabilityInputSchema as dt, createAgentTokenOutputSchema as en, canvasOperationSchema as er, canvasRenderBatchResultSchema as et, ProcessExitError as f, getCommentOutputSchema as fn, canvasReadableSceneDocumentSchema as fr, canvasUpdateHtmlInputSchema as ft, toCapabilityDefinition as g, replyCommentOutputSchema as gn, canvasAxisStyleProperties as gr, canvasCreateToolOutputSchema as gt, createCapabilityPolicyAdapter as h, replyCommentInputSchema as hn, canvasAuthoredStyleDeclarations as hr, canvasCreateToolInputSchema as ht, toPresentedCapabilities as i, withFixtureScreen as in, canvasRenderSourceStateSchema as ir, canvasRenderRequestSchema as it, operationStatusInputSchema as j, DEFAULT_CANVAS_REFERENCE_PAGE_ID as jn, CANVAS_BLEND_MODES as jr, parseCanvasReference as jt, canvasConversionStatusSchema as k, canvasPrototypePropsSchema as kn, CANVAS_RICH_TEXT_STYLE_PROPERTIES as kr, fromCanvasReference as kt, toMcpFailurePayload as l, commentThreadSchema as ln, createRecordingSnapshotOutputSchema as lr, canvasReadInputSchema as lt, createRouterShapeAdapter as m, listCommentsOutputSchema as mn, canvasAuthoredLayoutValueOf as mr, canvasResourcesCursorSchema as mt, withCommandName as n, listOrganisationsOutputSchema as nn, createCanvasConversionOutputSchema as nr, canvasRenderScopedInputSchema as nt, createMcpCapabilityDiscoveryAdapter as o, commentCanvasContextSchema as on, canvasRenderTargetSchema as or, canvasRemoveCapabilityInputSchema as ot, createCapabilityCatalogAdapter as p, listCommentsInputSchema as pn, canvasSceneDocumentSchema as pr, canvasTranscriptCursorSchema as pt, canvasRenderCapabilityInputSchema as q, applyCanvasOperationsOutputSchema as qn, getPrototypePublishStatusOutputSchema as qt, toCanvasAuthoringResult as r, emptyFixtureDocument as rn, getCanvasConversionOutputSchema as rr, canvasRenderScopedToolInputSchema as rt, toExitCode as s, commentMessageSchema as sn, canvasWorldBoundsSchema as sr, canvasRemoveInputSchema as st, withCommandInFailure as t, createOrganisationOutputSchema as tn, canvasNodeStylePatchSchema as tr, canvasRenderPendingSchema as tt, toPublishedExitTable as u, domLocatorSchema as un, downloadCanvasRenderOutputSchema as ur, canvasReadOutputSchema as ut, PROTOTYPE_UPDATE_GUIDANCE as v, screenElementCommentTargetSchema as vn, canvasLayoutPriorityDeclarations as vr, canvasFindInputSchema as vt, canvasExchangeDigest as w, canvasTextChangeBetween as wn, canvasFontAssetIdentityFromPath as wr, canvasEditCapabilityInputSchema as wt, canvasPrototypeInputSchema as x, startCommentInputSchema as xn, canvasAssetUploadOutputSchema as xr, canvasInsertHtmlInputSchema as xt, PROCEDURE_DESCRIPTIONS as y, screenElementsCommentTargetSchema as yn, canvasCssTokens as yr, canvasFindOutputSchema as yt, canvasArrangeCapabilityInputSchema as z, getCanvasPreparationOutputSchema as zn, completeRecordingOutputSchema as zt };
|