@enhance-eng/enhance 0.1.13 → 0.1.14
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-DAJiBMGX.mjs → cli-output-identity.lib-bX6NwZjd.mjs} +13 -11
- package/dist/main.mjs +3 -3
- package/dist/{mcp-invocation.adapter-BG-WBGEr.mjs → mcp-invocation.adapter-BdZ-LpPW.mjs} +2 -2
- package/dist/mcp-main.mjs +7 -7
- package/dist/{mcp-server.adapter-BgUZCdl4.mjs → mcp-server.adapter-DBlOw4BM.mjs} +1 -1
- package/dist/mcp.mjs +2 -2
- package/dist/{mutation-key.adapter-BffKsNR-.mjs → mutation-key.adapter-p1odGHfg.mjs} +1 -1
- package/dist/remote-mcp-main.mjs +5 -5
- package/package.json +1 -1
|
@@ -1757,7 +1757,7 @@ const DESCRIPTOR_BY_KIND = Object.fromEntries([
|
|
|
1757
1757
|
resizeBehavior: {
|
|
1758
1758
|
mode: "reflow",
|
|
1759
1759
|
preservesAspect: false,
|
|
1760
|
-
|
|
1760
|
+
canLockAspectRatio: true
|
|
1761
1761
|
},
|
|
1762
1762
|
propertySections: ["position", "layout"]
|
|
1763
1763
|
},
|
|
@@ -1800,7 +1800,7 @@ const DESCRIPTOR_BY_KIND = Object.fromEntries([
|
|
|
1800
1800
|
resizeBehavior: {
|
|
1801
1801
|
mode: "reflow",
|
|
1802
1802
|
preservesAspect: false,
|
|
1803
|
-
|
|
1803
|
+
canLockAspectRatio: true
|
|
1804
1804
|
},
|
|
1805
1805
|
propertySections: [
|
|
1806
1806
|
"position",
|
|
@@ -1822,7 +1822,7 @@ const DESCRIPTOR_BY_KIND = Object.fromEntries([
|
|
|
1822
1822
|
resizeBehavior: {
|
|
1823
1823
|
mode: "reflow",
|
|
1824
1824
|
preservesAspect: false,
|
|
1825
|
-
|
|
1825
|
+
canLockAspectRatio: true
|
|
1826
1826
|
},
|
|
1827
1827
|
propertySections: FRAME_PROPERTY_SECTIONS
|
|
1828
1828
|
},
|
|
@@ -1840,7 +1840,7 @@ const DESCRIPTOR_BY_KIND = Object.fromEntries([
|
|
|
1840
1840
|
resizeBehavior: {
|
|
1841
1841
|
mode: "reflow",
|
|
1842
1842
|
preservesAspect: false,
|
|
1843
|
-
|
|
1843
|
+
canLockAspectRatio: true
|
|
1844
1844
|
},
|
|
1845
1845
|
propertySections: [
|
|
1846
1846
|
"position",
|
|
@@ -1864,7 +1864,7 @@ const DESCRIPTOR_BY_KIND = Object.fromEntries([
|
|
|
1864
1864
|
resizeBehavior: {
|
|
1865
1865
|
mode: "reflow",
|
|
1866
1866
|
preservesAspect: false,
|
|
1867
|
-
|
|
1867
|
+
canLockAspectRatio: true
|
|
1868
1868
|
},
|
|
1869
1869
|
propertySections: SHAPE_PROPERTY_SECTIONS
|
|
1870
1870
|
},
|
|
@@ -1882,7 +1882,7 @@ const DESCRIPTOR_BY_KIND = Object.fromEntries([
|
|
|
1882
1882
|
resizeBehavior: {
|
|
1883
1883
|
mode: "scale",
|
|
1884
1884
|
preservesAspect: true,
|
|
1885
|
-
|
|
1885
|
+
canLockAspectRatio: true
|
|
1886
1886
|
},
|
|
1887
1887
|
propertySections: SHAPE_PROPERTY_SECTIONS
|
|
1888
1888
|
},
|
|
@@ -1901,7 +1901,7 @@ const DESCRIPTOR_BY_KIND = Object.fromEntries([
|
|
|
1901
1901
|
resizeBehavior: {
|
|
1902
1902
|
mode: "scale",
|
|
1903
1903
|
preservesAspect: true,
|
|
1904
|
-
|
|
1904
|
+
canLockAspectRatio: true
|
|
1905
1905
|
},
|
|
1906
1906
|
propertySections: SVG_PROPERTY_SECTIONS
|
|
1907
1907
|
},
|
|
@@ -1919,7 +1919,7 @@ const DESCRIPTOR_BY_KIND = Object.fromEntries([
|
|
|
1919
1919
|
resizeBehavior: {
|
|
1920
1920
|
mode: "scale",
|
|
1921
1921
|
preservesAspect: true,
|
|
1922
|
-
|
|
1922
|
+
canLockAspectRatio: true
|
|
1923
1923
|
},
|
|
1924
1924
|
propertySections: []
|
|
1925
1925
|
},
|
|
@@ -1937,7 +1937,7 @@ const DESCRIPTOR_BY_KIND = Object.fromEntries([
|
|
|
1937
1937
|
resizeBehavior: {
|
|
1938
1938
|
mode: "reflow",
|
|
1939
1939
|
preservesAspect: false,
|
|
1940
|
-
|
|
1940
|
+
canLockAspectRatio: false
|
|
1941
1941
|
},
|
|
1942
1942
|
propertySections: [
|
|
1943
1943
|
"position",
|
|
@@ -4110,7 +4110,8 @@ const getRecordingOutputSchema = z.object({
|
|
|
4110
4110
|
path: z.string().startsWith("/v1/recording-assets/")
|
|
4111
4111
|
})),
|
|
4112
4112
|
/** How much of the page we could not fetch. A replay says so rather than rendering short. */
|
|
4113
|
-
missingAssetCount: z.number().int().min(0)
|
|
4113
|
+
missingAssetCount: z.number().int().min(0),
|
|
4114
|
+
missingAssetUrls: z.array(z.string()).optional()
|
|
4114
4115
|
});
|
|
4115
4116
|
const refreshRecordingUploadInputSchema = z.object({
|
|
4116
4117
|
recordingId: z.uuid(),
|
|
@@ -8806,7 +8807,8 @@ const get = (handlers) => canvasReaderProcedure.input(getRecordingInputSchema).o
|
|
|
8806
8807
|
path: recordingAssetPath(entry.assetBundleId, entry.urlHash)
|
|
8807
8808
|
})),
|
|
8808
8809
|
sourceUrl: result.recording.sourceUrl,
|
|
8809
|
-
missingAssetCount: result.missingAssetCount
|
|
8810
|
+
missingAssetCount: result.missingAssetCount,
|
|
8811
|
+
missingAssetUrls: [...result.missingAssetUrls]
|
|
8810
8812
|
};
|
|
8811
8813
|
});
|
|
8812
8814
|
/**
|
package/dist/main.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { $ as canvasLayoutWithoutCssProperties, A as startRecordingOutputSchema, C as CliError, D as createScreenOutputSchema, E as completeScreenOutputSchema, G as emptyFixtureDocument, J as canvasAgentActivityPhaseSchema, K as withFixtureScreen, O as appendRecordingChunkOutputSchema, Q as canvasNodeStylePatchSchema, S as PartialBatchError, T as appErrorSchema, W as createOrganisationOutputSchema, Y as MAX_CANVAS_OPERATIONS, Z as canvasOperationSchema, _t as canvasSchema, at as canvasWorldBoundsSchema, c as ProcessExitError, d as createCapabilityPolicyAdapter, dt as canvasAdditionalStyleSchema, et as getCanvasDocumentOutputSchema, ft as canvasAuthoredLayoutValueOf, gt as canvasLayoutPriorityDeclarations, ht as canvasLayoutMainAxisOf, i as toFailurePayload, it as RENDER_MIN_SCALE, k as completeRecordingOutputSchema, l as createCapabilityCatalogAdapter, m as PROCEDURE_DESCRIPTIONS, mt as canvasAxisStyleProperties, n as withCommandName, o as toSharedCapabilities, p as OPTION_DESCRIPTIONS, pt as canvasAuthoredStyleDeclarations, q as beginCanvasActivityOutputSchema, r as toExitCode, s as createMcpCapabilityDiscoveryAdapter, t as withCommandInFailure, tt as saveCanvasDocumentOutputSchema, u as createRouterShapeAdapter, ut as canvasReadableSceneDocumentSchema } from "./cli-output-identity.lib-
|
|
3
|
-
import { a as createOauthLoopbackAdapter, c as createWriteHtmlCanvasComposite, d as createRenderCanvasComposite, f as createAuthUseCase, l as createApplyCanvasComposite, n as createHttpRemoteAdapter, o as createCapabilityInvocationAdapter, r as CLI_CONFIG, s as createRenderFileAdapter, t as createMutationKeyAdapter, u as createCanvasActivityComposite } from "./mutation-key.adapter-
|
|
2
|
+
import { $ as canvasLayoutWithoutCssProperties, A as startRecordingOutputSchema, C as CliError, D as createScreenOutputSchema, E as completeScreenOutputSchema, G as emptyFixtureDocument, J as canvasAgentActivityPhaseSchema, K as withFixtureScreen, O as appendRecordingChunkOutputSchema, Q as canvasNodeStylePatchSchema, S as PartialBatchError, T as appErrorSchema, W as createOrganisationOutputSchema, Y as MAX_CANVAS_OPERATIONS, Z as canvasOperationSchema, _t as canvasSchema, at as canvasWorldBoundsSchema, c as ProcessExitError, d as createCapabilityPolicyAdapter, dt as canvasAdditionalStyleSchema, et as getCanvasDocumentOutputSchema, ft as canvasAuthoredLayoutValueOf, gt as canvasLayoutPriorityDeclarations, ht as canvasLayoutMainAxisOf, i as toFailurePayload, it as RENDER_MIN_SCALE, k as completeRecordingOutputSchema, l as createCapabilityCatalogAdapter, m as PROCEDURE_DESCRIPTIONS, mt as canvasAxisStyleProperties, n as withCommandName, o as toSharedCapabilities, p as OPTION_DESCRIPTIONS, pt as canvasAuthoredStyleDeclarations, q as beginCanvasActivityOutputSchema, r as toExitCode, s as createMcpCapabilityDiscoveryAdapter, t as withCommandInFailure, tt as saveCanvasDocumentOutputSchema, u as createRouterShapeAdapter, ut as canvasReadableSceneDocumentSchema } from "./cli-output-identity.lib-bX6NwZjd.mjs";
|
|
3
|
+
import { a as createOauthLoopbackAdapter, c as createWriteHtmlCanvasComposite, d as createRenderCanvasComposite, f as createAuthUseCase, l as createApplyCanvasComposite, n as createHttpRemoteAdapter, o as createCapabilityInvocationAdapter, r as CLI_CONFIG, s as createRenderFileAdapter, t as createMutationKeyAdapter, u as createCanvasActivityComposite } from "./mutation-key.adapter-p1odGHfg.mjs";
|
|
4
4
|
import { t as toCapabilityInventory } from "./capability-inventory.mapper-DyYXyVBJ.mjs";
|
|
5
5
|
import { t as createFileCredentialAdapter } from "./file-credential.adapter-rI5HpMEo.mjs";
|
|
6
6
|
import { Command } from "commander";
|
|
@@ -2527,7 +2527,7 @@ const main = async () => {
|
|
|
2527
2527
|
const credentials = createFileCredentialAdapter(CLI_CONFIG.configDirectory);
|
|
2528
2528
|
const mutationKey = createMutationKeyAdapter();
|
|
2529
2529
|
const cli = createCliProgram({
|
|
2530
|
-
version: "0.1.
|
|
2530
|
+
version: "0.1.14",
|
|
2531
2531
|
credentials,
|
|
2532
2532
|
remote: createHttpRemoteAdapter(CLI_CONFIG.apiUrl, credentials, mutationKey),
|
|
2533
2533
|
mutationKey,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { i as toFailurePayload } from "./cli-output-identity.lib-
|
|
3
|
-
import { a as createOauthLoopbackAdapter, f as createAuthUseCase, n as createHttpRemoteAdapter, o as createCapabilityInvocationAdapter, t as createMutationKeyAdapter } from "./mutation-key.adapter-
|
|
2
|
+
import { i as toFailurePayload } from "./cli-output-identity.lib-bX6NwZjd.mjs";
|
|
3
|
+
import { a as createOauthLoopbackAdapter, f as createAuthUseCase, n as createHttpRemoteAdapter, o as createCapabilityInvocationAdapter, t as createMutationKeyAdapter } from "./mutation-key.adapter-p1odGHfg.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/infrastructure/mcp-auth.adapter.ts
|
package/dist/mcp-main.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { f as toCapabilityDefinition, l as createCapabilityCatalogAdapter } from "./cli-output-identity.lib-
|
|
3
|
-
import { r as CLI_CONFIG } from "./mutation-key.adapter-
|
|
2
|
+
import { f as toCapabilityDefinition, l as createCapabilityCatalogAdapter } from "./cli-output-identity.lib-bX6NwZjd.mjs";
|
|
3
|
+
import { r as CLI_CONFIG } from "./mutation-key.adapter-p1odGHfg.mjs";
|
|
4
4
|
import { t as createFileCredentialAdapter } from "./file-credential.adapter-rI5HpMEo.mjs";
|
|
5
|
-
import { t as createMcpInvocationAdapter } from "./mcp-invocation.adapter-
|
|
6
|
-
import { t as createMcpServerAdapter } from "./mcp-server.adapter-
|
|
5
|
+
import { t as createMcpInvocationAdapter } from "./mcp-invocation.adapter-BdZ-LpPW.mjs";
|
|
6
|
+
import { t as createMcpServerAdapter } from "./mcp-server.adapter-DBlOw4BM.mjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
import process from "node:process";
|
|
9
9
|
import { serveStdio } from "@modelcontextprotocol/server/stdio";
|
|
@@ -152,7 +152,7 @@ const capabilities = [
|
|
|
152
152
|
exampleInput: {},
|
|
153
153
|
exampleOutput: {
|
|
154
154
|
status: "ok",
|
|
155
|
-
runtimeVersion: "0.1.
|
|
155
|
+
runtimeVersion: "0.1.14",
|
|
156
156
|
api: {
|
|
157
157
|
reachable: true,
|
|
158
158
|
status: 200
|
|
@@ -167,10 +167,10 @@ const createMcpTransportCapabilityAdapter = () => capabilities;
|
|
|
167
167
|
//#endregion
|
|
168
168
|
//#region src/mcp-main.ts
|
|
169
169
|
const credentials = createFileCredentialAdapter(CLI_CONFIG.configDirectory);
|
|
170
|
-
const invocation = createMcpInvocationAdapter(CLI_CONFIG.apiUrl, credentials, CLI_CONFIG.configDirectory, "0.1.
|
|
170
|
+
const invocation = createMcpInvocationAdapter(CLI_CONFIG.apiUrl, credentials, CLI_CONFIG.configDirectory, "0.1.14");
|
|
171
171
|
const catalog = [...createCapabilityCatalogAdapter(), ...createMcpTransportCapabilityAdapter()];
|
|
172
172
|
serveStdio(() => createMcpServerAdapter({
|
|
173
|
-
version: "0.1.
|
|
173
|
+
version: "0.1.14",
|
|
174
174
|
name: CLI_CONFIG.mcpServiceName,
|
|
175
175
|
commandName: CLI_CONFIG.commandName,
|
|
176
176
|
invocation,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { C as CliError, a as toPresentedCapabilities, i as toFailurePayload, l as createCapabilityCatalogAdapter, n as withCommandName, s as createMcpCapabilityDiscoveryAdapter, t as withCommandInFailure } from "./cli-output-identity.lib-
|
|
2
|
+
import { C as CliError, a as toPresentedCapabilities, i as toFailurePayload, l as createCapabilityCatalogAdapter, n as withCommandName, s as createMcpCapabilityDiscoveryAdapter, t as withCommandInFailure } from "./cli-output-identity.lib-bX6NwZjd.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
5
5
|
import { readFile, rm } from "node:fs/promises";
|
package/dist/mcp.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { l as createCapabilityCatalogAdapter, o as toSharedCapabilities } from "./cli-output-identity.lib-
|
|
2
|
+
import { l as createCapabilityCatalogAdapter, o as toSharedCapabilities } from "./cli-output-identity.lib-bX6NwZjd.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-DBlOw4BM.mjs";
|
|
5
5
|
|
|
6
6
|
export { createCapabilityCatalogAdapter, createMcpServerAdapter as createEnhanceMcpServer, toCapabilityInventory, toSharedCapabilities };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { B as getMeOutputSchema, C as CliError, F as getPrototypeArtifactCapabilitiesOutputSchema, H as cliAuthConfigurationSchema, I as getPrototypePublishStatusOutputSchema, L as prototypeArtifactManifestSchema, M as attachPrototypeArtifactOutputSchema, N as createPrototypeArtifactOutputSchema, P as foldPrototypeArtifactPath, R as prototypeArtifactPathSchema, S as PartialBatchError, U as createAgentTokenOutputSchema, X as applyCanvasOperationsOutputSchema, _ as canvasWriteHtmlCapabilityInputSchema, b as recordingSnapshotCapabilityInputSchema, ct as downloadCanvasRenderOutputSchema, et as getCanvasDocumentOutputSchema, g as canvasRenderCapabilityInputSchema, h as canvasApplyCapabilityInputSchema, j as PROTOTYPE_ARTIFACT_MANIFEST_PATH, lt as getCanvasRenderOutputSchema, nt as createCanvasConversionOutputSchema, ot as createCanvasRenderOutputSchema, q as beginCanvasActivityOutputSchema, rt as getCanvasConversionOutputSchema, st as createRecordingSnapshotOutputSchema, ut as canvasReadableSceneDocumentSchema, v as commentAttentionCapabilityInputSchema, w as transcriptOutputSchema, x as transcriptReadCapabilityInputSchema, y as prototypePublishCapabilityInputSchema, z as submitPrototypeArtifactOutputSchema } from "./cli-output-identity.lib-
|
|
2
|
+
import { B as getMeOutputSchema, C as CliError, F as getPrototypeArtifactCapabilitiesOutputSchema, H as cliAuthConfigurationSchema, I as getPrototypePublishStatusOutputSchema, L as prototypeArtifactManifestSchema, M as attachPrototypeArtifactOutputSchema, N as createPrototypeArtifactOutputSchema, P as foldPrototypeArtifactPath, R as prototypeArtifactPathSchema, S as PartialBatchError, U as createAgentTokenOutputSchema, X as applyCanvasOperationsOutputSchema, _ as canvasWriteHtmlCapabilityInputSchema, b as recordingSnapshotCapabilityInputSchema, ct as downloadCanvasRenderOutputSchema, et as getCanvasDocumentOutputSchema, g as canvasRenderCapabilityInputSchema, h as canvasApplyCapabilityInputSchema, j as PROTOTYPE_ARTIFACT_MANIFEST_PATH, lt as getCanvasRenderOutputSchema, nt as createCanvasConversionOutputSchema, ot as createCanvasRenderOutputSchema, q as beginCanvasActivityOutputSchema, rt as getCanvasConversionOutputSchema, st as createRecordingSnapshotOutputSchema, ut as canvasReadableSceneDocumentSchema, v as commentAttentionCapabilityInputSchema, w as transcriptOutputSchema, x as transcriptReadCapabilityInputSchema, y as prototypePublishCapabilityInputSchema, z as submitPrototypeArtifactOutputSchema } from "./cli-output-identity.lib-bX6NwZjd.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { homedir, tmpdir } from "node:os";
|
|
5
5
|
import process from "node:process";
|
package/dist/remote-mcp-main.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { B as getMeOutputSchema, V as MCP_AUTH_SCOPE, l as createCapabilityCatalogAdapter } from "./cli-output-identity.lib-
|
|
3
|
-
import { i as readRemoteMcpEnvironment, n as createHttpRemoteAdapter, t as createMutationKeyAdapter } from "./mutation-key.adapter-
|
|
4
|
-
import { t as createMcpInvocationAdapter } from "./mcp-invocation.adapter-
|
|
5
|
-
import { t as createMcpServerAdapter } from "./mcp-server.adapter-
|
|
2
|
+
import { B as getMeOutputSchema, V as MCP_AUTH_SCOPE, l as createCapabilityCatalogAdapter } from "./cli-output-identity.lib-bX6NwZjd.mjs";
|
|
3
|
+
import { i as readRemoteMcpEnvironment, n as createHttpRemoteAdapter, t as createMutationKeyAdapter } from "./mutation-key.adapter-p1odGHfg.mjs";
|
|
4
|
+
import { t as createMcpInvocationAdapter } from "./mcp-invocation.adapter-BdZ-LpPW.mjs";
|
|
5
|
+
import { t as createMcpServerAdapter } from "./mcp-server.adapter-DBlOw4BM.mjs";
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import process from "node:process";
|
|
8
8
|
import path from "node:path";
|
|
@@ -145,7 +145,7 @@ const server = await createRemoteMcpHttpAdapter({
|
|
|
145
145
|
configDirectory: path.join(os.tmpdir(), "enhance-remote-mcp"),
|
|
146
146
|
allowedHosts: config.MCP_ALLOWED_HOSTS.split(",").map((value) => value.trim()),
|
|
147
147
|
allowedOrigins: config.MCP_ALLOWED_ORIGINS.split(",").map((value) => value.trim()),
|
|
148
|
-
version: "0.1.
|
|
148
|
+
version: "0.1.14",
|
|
149
149
|
onerror: (error) => process.stderr.write(`${error.message}\n`)
|
|
150
150
|
});
|
|
151
151
|
await server.listen(config.PORT, config.MCP_HOST);
|