@enhance-eng/enhance 0.1.160 → 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-DrfKWcGw.mjs → cli-output-identity.lib-BfvrkZX5.mjs} +179 -76
- package/dist/main.mjs +66 -16
- package/dist/{mcp-invocation.adapter-DrEm-z3C.mjs → mcp-invocation.adapter-DtgErzi9.mjs} +8 -4
- package/dist/mcp-main.mjs +7 -7
- package/dist/{mcp-server.adapter-YQLl2Wec.mjs → mcp-server.adapter-DJeyBKo7.mjs} +1 -1
- package/dist/mcp.mjs +2 -2
- package/dist/{mutation-key.adapter-DFjvJyX6.mjs → mutation-key.adapter-TMLqYILu.mjs} +342 -173
- package/dist/remote-mcp-main.mjs +5 -5
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $n as wholeCanvasDocumentOutputSchema, At as hasCanvasReferenceScope, En as canvasTextRunsOf, Et as assertCanvasReferenceNodes, Fn as canvasAgentActivityPhaseSchema$1, Ft as appErrorSchema$1, It as completeScreenOutputSchema, Lt as createScreenOutputSchema, Mt as PartialBatchError, Nt as CliError, Ot as canvasReferenceRenderTarget, Pn as beginCanvasActivityOutputSchema, Pr as canvasSchema$1, Qn as saveCanvasDocumentOutputSchema, Rt as appendRecordingChunkOutputSchema, Tt as canvasEditsSchema, Vt as startRecordingOutputSchema, _ as OPTION_DESCRIPTIONS, _r as canvasLayoutMainAxisOf, a as toSharedCapabilities, c as toFailurePayload, dt as canvasUpdateHtmlCapabilityInputSchema, er as canvasOperationSchema$1, f as ProcessExitError, fr as canvasReadableSceneDocumentSchema, gr as canvasAxisStyleProperties, h as createCapabilityPolicyAdapter, hr as canvasAuthoredStyleDeclarations, in as withFixtureScreen, j as operationStatusInputSchema, jt as parseCanvasReference, kt as fromCanvasReference, lt as canvasReadInputSchema, m as createRouterShapeAdapter, mr as canvasAuthoredLayoutValueOf, n as withCommandName, nt as canvasRenderScopedInputSchema, o as createMcpCapabilityDiscoveryAdapter, ot as canvasRemoveCapabilityInputSchema, p as createCapabilityCatalogAdapter, r as toCanvasAuthoringResult, rn as emptyFixtureDocument, s as toExitCode, sr as canvasWorldBoundsSchema$1, t as withCommandInFailure, tn as createOrganisationOutputSchema, u as toPublishedExitTable, vr as canvasLayoutPriorityDeclarations, vt as canvasFindInputSchema, y as PROCEDURE_DESCRIPTIONS, zt as completeRecordingOutputSchema } from "./cli-output-identity.lib-
|
|
3
|
-
import { C as canvasRadialGradientSvg, D as canvasAngularGradientSvg, E as canvasDiamondGradientSvg, O as canvasColorCss, S as createAuthUseCase, T as canvasFilterListCss, _ as assertCanvasReferenceOperations, b as createCanvasActivityComposite, d as createRenderFileAdapter, f as readCanvasReferenceScene, g as createEditCanvasComposite, h as fromCapabilityReference, k as compareCanvasSortKeys, n as createHttpRemoteAdapter, o as createOauthLoopbackAdapter, p as createWriteHtmlCanvasComposite, r as readCliEnvironment, s as createCapabilityInvocationAdapter, t as createMutationKeyAdapter, v as sceneAtVersion, w as canvasLinearGradientSvg, x as createRenderCanvasComposite, y as createApplyCanvasComposite } from "./mutation-key.adapter-
|
|
2
|
+
import { $n as wholeCanvasDocumentOutputSchema, At as hasCanvasReferenceScope, En as canvasTextRunsOf, Et as assertCanvasReferenceNodes, Fn as canvasAgentActivityPhaseSchema$1, Ft as appErrorSchema$1, It as completeScreenOutputSchema, Lt as createScreenOutputSchema, Mt as PartialBatchError, Nt as CliError, Ot as canvasReferenceRenderTarget, Pn as beginCanvasActivityOutputSchema, Pr as canvasSchema$1, Qn as saveCanvasDocumentOutputSchema, Rt as appendRecordingChunkOutputSchema, Tt as canvasEditsSchema, Vt as startRecordingOutputSchema, _ as OPTION_DESCRIPTIONS, _r as canvasLayoutMainAxisOf, a as toSharedCapabilities, c as toFailurePayload, dt as canvasUpdateHtmlCapabilityInputSchema, er as canvasOperationSchema$1, f as ProcessExitError, fr as canvasReadableSceneDocumentSchema, gr as canvasAxisStyleProperties, h as createCapabilityPolicyAdapter, hr as canvasAuthoredStyleDeclarations, in as withFixtureScreen, j as operationStatusInputSchema, jt as parseCanvasReference, kt as fromCanvasReference, lt as canvasReadInputSchema, m as createRouterShapeAdapter, mr as canvasAuthoredLayoutValueOf, n as withCommandName, nt as canvasRenderScopedInputSchema, o as createMcpCapabilityDiscoveryAdapter, ot as canvasRemoveCapabilityInputSchema, p as createCapabilityCatalogAdapter, r as toCanvasAuthoringResult, rn as emptyFixtureDocument, s as toExitCode, sr as canvasWorldBoundsSchema$1, t as withCommandInFailure, tn as createOrganisationOutputSchema, u as toPublishedExitTable, vr as canvasLayoutPriorityDeclarations, vt as canvasFindInputSchema, y as PROCEDURE_DESCRIPTIONS, zt as completeRecordingOutputSchema } from "./cli-output-identity.lib-BfvrkZX5.mjs";
|
|
3
|
+
import { C as canvasRadialGradientSvg, D as canvasAngularGradientSvg, E as canvasDiamondGradientSvg, O as canvasColorCss, S as createAuthUseCase, T as canvasFilterListCss, _ as assertCanvasReferenceOperations, b as createCanvasActivityComposite, d as createRenderFileAdapter, f as readCanvasReferenceScene, g as createEditCanvasComposite, h as fromCapabilityReference, k as compareCanvasSortKeys, n as createHttpRemoteAdapter, o as createOauthLoopbackAdapter, p as createWriteHtmlCanvasComposite, r as readCliEnvironment, s as createCapabilityInvocationAdapter, t as createMutationKeyAdapter, v as sceneAtVersion, w as canvasLinearGradientSvg, x as createRenderCanvasComposite, y as createApplyCanvasComposite } from "./mutation-key.adapter-TMLqYILu.mjs";
|
|
4
4
|
import { t as toCapabilityInventory } from "./capability-inventory.mapper-DyYXyVBJ.mjs";
|
|
5
5
|
import { t as createFileCredentialAdapter } from "./file-credential.adapter-C78gc9OK.mjs";
|
|
6
6
|
import process from "node:process";
|
|
@@ -65,10 +65,14 @@ const canvasTextDirectionDeclarations = (direction) => direction === void 0 ? {}
|
|
|
65
65
|
...direction !== "auto" && { direction },
|
|
66
66
|
"unicode-bidi": direction === "auto" ? "plaintext" : "isolate"
|
|
67
67
|
};
|
|
68
|
+
/** The fonts the canvas ships, by the plain name people write and the name of the bundled face. */
|
|
69
|
+
const CANVAS_BUNDLED_FONT_FAMILIES = {
|
|
70
|
+
Inter: "Inter Variable",
|
|
71
|
+
"JetBrains Mono": "JetBrains Mono Variable"
|
|
72
|
+
};
|
|
68
73
|
const canvasTypographyFontFamily = (typography) => [.../* @__PURE__ */ new Set([
|
|
69
74
|
typography.family,
|
|
70
|
-
...typography.family
|
|
71
|
-
...typography.family === "JetBrains Mono" ? ["JetBrains Mono Variable"] : [],
|
|
75
|
+
...Object.hasOwn(CANVAS_BUNDLED_FONT_FAMILIES, typography.family) ? [CANVAS_BUNDLED_FONT_FAMILIES[typography.family] ?? typography.family] : [],
|
|
72
76
|
...typography.fallbackFamilies
|
|
73
77
|
])].map((family) => canvasFontFamilyCss(family)).join(", ");
|
|
74
78
|
/** Weight is the sole wght owner; the remaining axes never shadow the visible weight field. */
|
|
@@ -1634,7 +1638,7 @@ const registerCanvasProgram = (program, input) => {
|
|
|
1634
1638
|
};
|
|
1635
1639
|
|
|
1636
1640
|
//#endregion
|
|
1637
|
-
//#region ../../packages/sdk/dist/stall-watch.lib-
|
|
1641
|
+
//#region ../../packages/sdk/dist/stall-watch.lib-DgIzqC3b.mjs
|
|
1638
1642
|
const CAPTURE_METADATA_LENGTH = 200;
|
|
1639
1643
|
const CAPTURE_FAILURE_LENGTH = 1e3;
|
|
1640
1644
|
const CAPTURE_UPLOAD_BATCH_SIZE = 400;
|
|
@@ -4052,14 +4056,25 @@ const canvasSubtreeDraftSchema = z.object({
|
|
|
4052
4056
|
nodeCount: draft.nodes.length
|
|
4053
4057
|
}
|
|
4054
4058
|
}));
|
|
4055
|
-
|
|
4059
|
+
/** A capture that lands as a new editable frame on a page, with no screen layer. */
|
|
4060
|
+
const editableFrameCaptureSchema = z.object({
|
|
4061
|
+
screenId: z.string().min(1),
|
|
4062
|
+
pageId: z.string().min(1)
|
|
4063
|
+
});
|
|
4064
|
+
const editableFrameInputBase = {
|
|
4056
4065
|
canvasId: z.uuid(),
|
|
4057
4066
|
documentFormatVersion: canvasDocumentFormatSchema,
|
|
4058
4067
|
mutationId: z.uuid(),
|
|
4059
4068
|
baseVersion: z.number().int().positive(),
|
|
4060
|
-
screenNodeId: z.string().min(1),
|
|
4061
4069
|
draft: canvasSubtreeDraftSchema
|
|
4062
|
-
}
|
|
4070
|
+
};
|
|
4071
|
+
z.union([z.strictObject({
|
|
4072
|
+
...editableFrameInputBase,
|
|
4073
|
+
screenNodeId: z.string().min(1).describe("The screen layer to convert beside itself.")
|
|
4074
|
+
}), z.strictObject({
|
|
4075
|
+
...editableFrameInputBase,
|
|
4076
|
+
capture: editableFrameCaptureSchema.describe("The stored page a new capture lands from, and the page its frame goes on.")
|
|
4077
|
+
})]);
|
|
4063
4078
|
const createEditableFrameResultSchema = z.object({
|
|
4064
4079
|
canvasId: z.uuid(),
|
|
4065
4080
|
mutationId: z.uuid(),
|
|
@@ -4160,7 +4175,10 @@ const canvasRenderSnapshotResultSchema = z.object({
|
|
|
4160
4175
|
recordingId: z.uuid(),
|
|
4161
4176
|
atMs: z.number().int().nonnegative(),
|
|
4162
4177
|
screenId: z.uuid(),
|
|
4163
|
-
|
|
4178
|
+
/** Null when the snapshot asked for a place only, so no screen layer was added. */
|
|
4179
|
+
screenNodeId: z.string().min(1).nullable(),
|
|
4180
|
+
/** The page the place is on. */
|
|
4181
|
+
pageId: z.string().min(1).optional(),
|
|
4164
4182
|
viewport: z.object({
|
|
4165
4183
|
width: z.number().int().positive(),
|
|
4166
4184
|
height: z.number().int().positive()
|
|
@@ -4325,7 +4343,11 @@ const canvasSnapshotRequestSchema = z.strictObject({
|
|
|
4325
4343
|
pageId: z.string().min(1).optional(),
|
|
4326
4344
|
nodeIds: z.array(z.string().min(1))
|
|
4327
4345
|
}),
|
|
4328
|
-
|
|
4346
|
+
/**
|
|
4347
|
+
* Below the walkthrough: as a screen layer, which installed CLIs ask for, or as a place only,
|
|
4348
|
+
* where the agent's CLI lands an editable frame.
|
|
4349
|
+
*/
|
|
4350
|
+
placement: z.strictObject({ kind: z.enum(["below-source", "editable-below-source"]) })
|
|
4329
4351
|
});
|
|
4330
4352
|
z.object({
|
|
4331
4353
|
canvasId: z.uuid(),
|
|
@@ -4582,6 +4604,21 @@ const canvasTextStylesSchema = z.strictObject({
|
|
|
4582
4604
|
"text-align": textStyleValues["text-align"].optional(),
|
|
4583
4605
|
"white-space": textStyleValues["white-space"].optional()
|
|
4584
4606
|
});
|
|
4607
|
+
/** Every alignment a browser computes, which conversion stores and Undo must be able to put back. */
|
|
4608
|
+
const storedTextAlignSchema = z.enum([
|
|
4609
|
+
"start",
|
|
4610
|
+
"end",
|
|
4611
|
+
"left",
|
|
4612
|
+
"right",
|
|
4613
|
+
"center",
|
|
4614
|
+
"justify",
|
|
4615
|
+
"justify-all",
|
|
4616
|
+
"match-parent",
|
|
4617
|
+
"-webkit-left",
|
|
4618
|
+
"-webkit-right",
|
|
4619
|
+
"-webkit-center"
|
|
4620
|
+
]);
|
|
4621
|
+
const storedFontStyleSchema = z.union([textStyleValues["font-style"], z.string().regex(/^oblique -?(?:\d+(?:\.\d+)?|\.\d+)deg$/u)]);
|
|
4585
4622
|
const restorableTextStyleValue = z.union([canvasAdditionalStyleSchema.shape.value, canvasNumberSchema]).nullable().optional();
|
|
4586
4623
|
const canvasTextStylePatchSchema = z.strictObject({
|
|
4587
4624
|
"text-decoration": restorableTextStyleValue,
|
|
@@ -4604,7 +4641,7 @@ const canvasTextStylePatchSchema = z.strictObject({
|
|
|
4604
4641
|
"text-box": canvasAdditionalStyleSchema.shape.value.nullable().optional(),
|
|
4605
4642
|
"text-box-trim": canvasAdditionalStyleSchema.shape.value.nullable().optional(),
|
|
4606
4643
|
"text-box-edge": canvasAdditionalStyleSchema.shape.value.nullable().optional(),
|
|
4607
|
-
"font-style":
|
|
4644
|
+
"font-style": storedFontStyleSchema.nullable().optional(),
|
|
4608
4645
|
"font-stretch": z.union([z.enum([
|
|
4609
4646
|
"normal",
|
|
4610
4647
|
"ultra-condensed",
|
|
@@ -4622,14 +4659,22 @@ const canvasTextStylePatchSchema = z.strictObject({
|
|
|
4622
4659
|
z.literal("normal")
|
|
4623
4660
|
]).nullable().optional(),
|
|
4624
4661
|
"line-height": textStyleValues["line-height"].nullable().optional(),
|
|
4625
|
-
"text-align":
|
|
4662
|
+
"text-align": storedTextAlignSchema.nullable().optional(),
|
|
4626
4663
|
"text-indent": z.union([canvasNumberSchema, signedPixelLengthSchema]).nullable().optional(),
|
|
4627
4664
|
"white-space": textStyleValues["white-space"].nullable().optional(),
|
|
4628
4665
|
"word-spacing": z.union([
|
|
4629
4666
|
canvasNumberSchema,
|
|
4630
4667
|
signedPixelLengthSchema,
|
|
4631
4668
|
z.literal("normal")
|
|
4632
|
-
]).nullable().optional()
|
|
4669
|
+
]).nullable().optional(),
|
|
4670
|
+
direction: restorableTextStyleValue,
|
|
4671
|
+
"unicode-bidi": restorableTextStyleValue,
|
|
4672
|
+
"hanging-punctuation": restorableTextStyleValue,
|
|
4673
|
+
"text-transform": restorableTextStyleValue,
|
|
4674
|
+
"-webkit-text-stroke": restorableTextStyleValue,
|
|
4675
|
+
"-webkit-text-stroke-width": restorableTextStyleValue,
|
|
4676
|
+
"-webkit-text-stroke-color": restorableTextStyleValue,
|
|
4677
|
+
"paint-order": restorableTextStyleValue
|
|
4633
4678
|
});
|
|
4634
4679
|
const overflowStyleValue = canvasAdditionalStyleSchema.shape.value;
|
|
4635
4680
|
const dimensionalStyleValue = z.union([z.string(), canvasNumberSchema]);
|
|
@@ -8093,6 +8138,7 @@ z$1.extend(prototypeBridgeConnectRequestSchema, {
|
|
|
8093
8138
|
capabilities: z$1.array(z$1.string()),
|
|
8094
8139
|
release: z$1.string().check(z$1.minLength(1))
|
|
8095
8140
|
});
|
|
8141
|
+
z$1.extend(prototypeBridgeConnectRequestSchema, { type: z$1.literal("enhance.prototype.capture-blocked") });
|
|
8096
8142
|
z$1.object({
|
|
8097
8143
|
protocol: z$1.literal(1),
|
|
8098
8144
|
type: z$1.literal("enhance.prototype.unloading"),
|
|
@@ -8647,6 +8693,8 @@ z.object({
|
|
|
8647
8693
|
});
|
|
8648
8694
|
z.object({
|
|
8649
8695
|
screenId: z.uuid(),
|
|
8696
|
+
/** Where the screen's files are stored; a capture names its stored copies by it. */
|
|
8697
|
+
assetBundleId: z.uuid().nullable(),
|
|
8650
8698
|
/** Re-issued on every call, because the usual reason for a retry is an expired presign. */
|
|
8651
8699
|
upload: signedUploadSchema,
|
|
8652
8700
|
alreadyExists: z.boolean(),
|
|
@@ -8929,6 +8977,7 @@ const clientRenderFailureDetailsSchema = z.strictObject({
|
|
|
8929
8977
|
"clipboard-image-pending",
|
|
8930
8978
|
"clipboard-image-unavailable",
|
|
8931
8979
|
"edit-target-unsupported",
|
|
8980
|
+
"edit-result-invalid",
|
|
8932
8981
|
"react-hook-order",
|
|
8933
8982
|
"menu-rows-unsupported"
|
|
8934
8983
|
]),
|
|
@@ -9240,7 +9289,8 @@ z.object({
|
|
|
9240
9289
|
"delivered",
|
|
9241
9290
|
"failed",
|
|
9242
9291
|
"disabled",
|
|
9243
|
-
"no-identity"
|
|
9292
|
+
"no-identity",
|
|
9293
|
+
"expired"
|
|
9244
9294
|
]).optional()
|
|
9245
9295
|
});
|
|
9246
9296
|
z.discriminatedUnion("type", [z.object({ type: z.literal("enhance3:extension-probe") }).strict(), z.object({ type: z.literal("enhance3:extension-present") }).strict()]);
|
|
@@ -9744,7 +9794,7 @@ const startStallWatch = (caller, idleMs = STALL_MS) => {
|
|
|
9744
9794
|
};
|
|
9745
9795
|
|
|
9746
9796
|
//#endregion
|
|
9747
|
-
//#region ../../packages/sdk/dist/capture-client.client-
|
|
9797
|
+
//#region ../../packages/sdk/dist/capture-client.client-BM_NxOqy.mjs
|
|
9748
9798
|
const line = (text) => `Enhance: ${text}\n`;
|
|
9749
9799
|
/** A left-out capture by its journey and step, or by its test when it could not be read at all. */
|
|
9750
9800
|
const leftOutName = (leftOut, attempts) => {
|
|
@@ -11233,7 +11283,7 @@ const main = async () => {
|
|
|
11233
11283
|
const remote = createHttpRemoteAdapter(config.apiUrl, credentials, mutationKey);
|
|
11234
11284
|
const cli = createCliProgram({
|
|
11235
11285
|
apiUrl: config.apiUrl,
|
|
11236
|
-
version: "0.1.
|
|
11286
|
+
version: "0.1.161",
|
|
11237
11287
|
credentials,
|
|
11238
11288
|
remote,
|
|
11239
11289
|
mutationKey,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { A as operationStatusImageSchema, B as
|
|
3
|
-
import { S as createAuthUseCase, h as fromCapabilityReference, m as boundedResultPage, n as createHttpRemoteAdapter, o as createOauthLoopbackAdapter, s as createCapabilityInvocationAdapter, t as createMutationKeyAdapter } from "./mutation-key.adapter-
|
|
4
|
-
import { a as createMcpResultAdapter, i as mcpDispatchedResultSchema, n as createMcpWorkflowsAdapter, o as createMcpClientContextAdapter, r as createMcpClientInvocationAdapter } from "./mcp-server.adapter-
|
|
2
|
+
import { A as operationStatusImageSchema, B as canvasArrangeInputSchema, C as canvasPrototypeOutputSchema, Ct as canvasMakeEditableInputSchema, D as encodeCanvasExchangeToken, E as decodeCanvasExchangeToken, F as canvasAssetImportOutputSchema, Fr as createCanvasOutputSchema, H as canvasDuplicateInputSchema, L as canvasCaptureInputSchema, M as operationStatusOutputSchema, Nt as CliError, P as canvasAssetImportInputSchema, R as canvasCaptureOutputSchema, U as canvasPreparationOutputSchema, W as canvasWriteReceiptSchema, _n as screenAreaCommentTargetSchema, an as commentAuthorSchema, bn as screenTextCommentTargetSchema, cn as commentResolverSchema, dn as elementAnchorSchema, fn as getCommentOutputSchema, ft as canvasUpdateHtmlInputSchema, gn as replyCommentOutputSchema, gt as canvasCreateToolOutputSchema, hn as replyCommentInputSchema, ht as canvasCreateToolInputSchema, j as operationStatusInputSchema, jt as parseCanvasReference, k as canvasConversionStatusSchema, l as toMcpFailurePayload, ln as commentThreadSchema, lt as canvasReadInputSchema, mn as listCommentsOutputSchema, on as commentCanvasContextSchema, p as createCapabilityCatalogAdapter, pn as listCommentsInputSchema, rt as canvasRenderScopedToolInputSchema, sn as commentMessageSchema, st as canvasRemoveInputSchema, un as domLocatorSchema, ut as canvasReadOutputSchema, v as PROTOTYPE_UPDATE_GUIDANCE, vn as screenElementCommentTargetSchema, vt as canvasFindInputSchema, w as canvasExchangeDigest, x as canvasPrototypeInputSchema, xn as startCommentInputSchema, xt as canvasInsertHtmlInputSchema, yn as screenElementsCommentTargetSchema, yt as canvasFindOutputSchema } from "./cli-output-identity.lib-BfvrkZX5.mjs";
|
|
3
|
+
import { S as createAuthUseCase, h as fromCapabilityReference, m as boundedResultPage, n as createHttpRemoteAdapter, o as createOauthLoopbackAdapter, s as createCapabilityInvocationAdapter, t as createMutationKeyAdapter } from "./mutation-key.adapter-TMLqYILu.mjs";
|
|
4
|
+
import { a as createMcpResultAdapter, i as mcpDispatchedResultSchema, n as createMcpWorkflowsAdapter, o as createMcpClientContextAdapter, r as createMcpClientInvocationAdapter } from "./mcp-server.adapter-DJeyBKo7.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
import { McpServer } from "@modelcontextprotocol/server";
|
|
7
7
|
|
|
@@ -47,6 +47,10 @@ ${CANVAS_HTML_EXAMPLES.mixed}
|
|
|
47
47
|
|
|
48
48
|
A new subtree cannot contain retained IDs or opaque placeholders. Insert a container and use canvas_arrange to move retained objects into it. New fragments are compiled independently; do not rely on inherited parent measurements or styles. Use explicit child dimensions and styles, then inspect the committed rendering. For a separate screen, prefer canvas_insert_html at an explicit parent and observed baseVersion.
|
|
49
49
|
|
|
50
|
+
## Fonts
|
|
51
|
+
|
|
52
|
+
Inter and JetBrains Mono are built into every canvas: write font-family: Inter or font-family: 'JetBrains Mono' and the text renders and measures in those faces without an import. The CSS generic families (sans-serif, serif, monospace, system-ui and the others) need no import either. Any other family must be imported with asset_import before text uses it; use the family the ready resource names. Text in a family that has no face on the canvas renders in a fallback and shows as a missing font.
|
|
53
|
+
|
|
50
54
|
## Deletion, commitment and recovery
|
|
51
55
|
|
|
52
56
|
Omission is not implicit deletion. Declare intentional omitted subtrees in removeNodeIds, or call canvas_remove with explicit roots. Locked content prevents the whole invalid edit. A no-op creates no revision. A pending preparation is not a commit: follow operation_status and its continuation until the outcome states whether the canvas changed.
|
|
@@ -124,7 +128,7 @@ const registerInsertion = (server, invoke) => {
|
|
|
124
128
|
const registerConversion = (server, invoke) => {
|
|
125
129
|
server.registerTool("canvas_capture", {
|
|
126
130
|
title: "Capture a recording moment",
|
|
127
|
-
description: "
|
|
131
|
+
description: "Land an exact recording moment as an editable frame after inspecting its canvas_render preview. Supply that preview job, the canvas version that preview rendered (baseVersion) and the full page/selection reference. The page is stored, compiled into editable layers and saved as one frame below the root-level recording on the same page, in one change at baseVersion. When attachment is committed, frame.nodeId is the editable frame (edit its layers) and frame.version is the canvas version to use as your next baseVersion; canvas_make_editable is not needed. A concurrent canvas edit prevents the save: render a new preview and capture with a new clientToken. When attachment is pending, repeat with identical arguments and the same clientToken, or follow its operation with operation_status; a new token could save a second frame. When attachment is not_confirmed with a failure, nothing was added: capture again with a new clientToken. This supports recordings already on this canvas, not arbitrary URLs or prototype crawling.",
|
|
128
132
|
inputSchema: canvasCaptureInputSchema,
|
|
129
133
|
outputSchema: canvasCaptureOutputSchema,
|
|
130
134
|
annotations: {
|
package/dist/mcp-main.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { g as toCapabilityDefinition, p as createCapabilityCatalogAdapter } from "./cli-output-identity.lib-
|
|
3
|
-
import { i as readLocalMcpEnvironment } from "./mutation-key.adapter-
|
|
2
|
+
import { g as toCapabilityDefinition, p as createCapabilityCatalogAdapter } from "./cli-output-identity.lib-BfvrkZX5.mjs";
|
|
3
|
+
import { i as readLocalMcpEnvironment } from "./mutation-key.adapter-TMLqYILu.mjs";
|
|
4
4
|
import { t as createFileCredentialAdapter } from "./file-credential.adapter-C78gc9OK.mjs";
|
|
5
|
-
import { n as createMcpCanvasProfileAdapter, t as createMcpInvocationAdapter } from "./mcp-invocation.adapter-
|
|
6
|
-
import { o as createMcpClientContextAdapter, t as createMcpServerAdapter } from "./mcp-server.adapter-
|
|
5
|
+
import { n as createMcpCanvasProfileAdapter, t as createMcpInvocationAdapter } from "./mcp-invocation.adapter-DtgErzi9.mjs";
|
|
6
|
+
import { o as createMcpClientContextAdapter, t as createMcpServerAdapter } from "./mcp-server.adapter-DJeyBKo7.mjs";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { serveStdio } from "@modelcontextprotocol/server/stdio";
|
|
@@ -170,19 +170,19 @@ const clientContext = createMcpClientContextAdapter();
|
|
|
170
170
|
const main = () => {
|
|
171
171
|
const config = readLocalMcpEnvironment();
|
|
172
172
|
const credentials = createFileCredentialAdapter(config.configDirectory);
|
|
173
|
-
const invocation = createMcpInvocationAdapter(config.apiUrl, credentials, config.configDirectory, { version: "0.1.
|
|
173
|
+
const invocation = createMcpInvocationAdapter(config.apiUrl, credentials, config.configDirectory, { version: "0.1.161" });
|
|
174
174
|
const catalog = [...createCapabilityCatalogAdapter(), ...createMcpTransportCapabilityAdapter()];
|
|
175
175
|
const client = clientContext.createStdio();
|
|
176
176
|
serveStdio(() => config.profile === "canvas" ? createMcpCanvasProfileAdapter({
|
|
177
177
|
readOnly: config.isReadOnly,
|
|
178
178
|
...config.workflowsDirectory !== void 0 && { workflowsDirectory: config.workflowsDirectory },
|
|
179
179
|
name: config.mcpServiceName,
|
|
180
|
-
version: "0.1.
|
|
180
|
+
version: "0.1.161",
|
|
181
181
|
invocation,
|
|
182
182
|
clientMetadata: client.metadata,
|
|
183
183
|
catalog
|
|
184
184
|
}) : createMcpServerAdapter({
|
|
185
|
-
version: "0.1.
|
|
185
|
+
version: "0.1.161",
|
|
186
186
|
name: config.mcpServiceName,
|
|
187
187
|
commandName: config.commandName,
|
|
188
188
|
invocation,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $n as wholeCanvasDocumentOutputSchema, At as hasCanvasReferenceScope, J as canvasWriteHtmlCapabilityInputSchema, Ln as agentClientMetadata, Nt as CliError, Ot as canvasReferenceRenderTarget, at as canvasRenderFileSchema, et as canvasRenderBatchResultSchema, fr as canvasReadableSceneDocumentSchema, i as toPresentedCapabilities, ir as canvasRenderSourceStateSchema, jt as parseCanvasReference, l as toMcpFailurePayload, n as withCommandName, o as createMcpCapabilityDiscoveryAdapter, or as canvasRenderTargetSchema, p as createCapabilityCatalogAdapter, r as toCanvasAuthoringResult, t as withCommandInFailure, wt as canvasEditCapabilityInputSchema } from "./cli-output-identity.lib-
|
|
2
|
+
import { $n as wholeCanvasDocumentOutputSchema, At as hasCanvasReferenceScope, J as canvasWriteHtmlCapabilityInputSchema, Ln as agentClientMetadata, Nt as CliError, Ot as canvasReferenceRenderTarget, at as canvasRenderFileSchema, et as canvasRenderBatchResultSchema, fr as canvasReadableSceneDocumentSchema, i as toPresentedCapabilities, ir as canvasRenderSourceStateSchema, jt as parseCanvasReference, l as toMcpFailurePayload, n as withCommandName, o as createMcpCapabilityDiscoveryAdapter, or as canvasRenderTargetSchema, p as createCapabilityCatalogAdapter, r as toCanvasAuthoringResult, t as withCommandInFailure, wt as canvasEditCapabilityInputSchema } from "./cli-output-identity.lib-BfvrkZX5.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
5
|
import path from "node:path";
|
package/dist/mcp.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as toSharedCapabilities, p as createCapabilityCatalogAdapter } from "./cli-output-identity.lib-
|
|
2
|
+
import { a as toSharedCapabilities, p as createCapabilityCatalogAdapter } from "./cli-output-identity.lib-BfvrkZX5.mjs";
|
|
3
3
|
import { t as toCapabilityInventory } from "./capability-inventory.mapper-DyYXyVBJ.mjs";
|
|
4
|
-
import { t as createMcpServerAdapter } from "./mcp-server.adapter-
|
|
4
|
+
import { t as createMcpServerAdapter } from "./mcp-server.adapter-DJeyBKo7.mjs";
|
|
5
5
|
|
|
6
6
|
export { createCapabilityCatalogAdapter, createMcpServerAdapter as createEnhanceMcpServer, toCapabilityInventory, toSharedCapabilities };
|