@pixerate/editor 0.81.0 → 0.82.0
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/agent/index.cjs +36 -7
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +5 -3
- package/dist/agent/index.d.ts +5 -3
- package/dist/agent/index.js +43 -14
- package/dist/agent/index.js.map +1 -1
- package/dist/animation-editor/index.d.cts +1 -1
- package/dist/animation-editor/index.d.ts +1 -1
- package/dist/bridge/index.d.cts +3 -3
- package/dist/bridge/index.d.ts +3 -3
- package/dist/{bridge-client-C5dRjrz5.d.ts → bridge-client-CMGfnjTl.d.ts} +1 -1
- package/dist/{bridge-client-C5OziCRK.d.cts → bridge-client-VpnICVxP.d.cts} +1 -1
- package/dist/canvas/index.cjs +235 -104
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +59 -1
- package/dist/canvas/index.d.ts +59 -1
- package/dist/canvas/index.js +234 -103
- package/dist/canvas/index.js.map +1 -1
- package/dist/capture-DFEMFmVt.d.cts +133 -0
- package/dist/capture-wwNGaW05.d.ts +133 -0
- package/dist/chart/index.d.cts +1 -1
- package/dist/chart/index.d.ts +1 -1
- package/dist/{chunk-K73CKYUM.cjs → chunk-EI2MOVQ3.cjs} +198 -3
- package/dist/chunk-EI2MOVQ3.cjs.map +1 -0
- package/dist/chunk-FURT6ZFZ.cjs +1 -0
- package/dist/chunk-FURT6ZFZ.cjs.map +1 -0
- package/dist/{chunk-GPWNYQ7R.js → chunk-O2W2SP3C.js} +197 -2
- package/dist/chunk-O2W2SP3C.js.map +1 -0
- package/dist/chunk-REOJJIY3.js +201 -0
- package/dist/chunk-REOJJIY3.js.map +1 -0
- package/dist/chunk-RJ2BFKEN.js +1 -0
- package/dist/chunk-RJ2BFKEN.js.map +1 -0
- package/dist/chunk-VJUVNERT.cjs +201 -0
- package/dist/chunk-VJUVNERT.cjs.map +1 -0
- package/dist/commands/index.d.cts +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/diagram/index.d.cts +1 -1
- package/dist/diagram/index.d.ts +1 -1
- package/dist/dom-capture-7Wvf6Tyg.d.ts +59 -0
- package/dist/dom-capture-GyYuE-zq.d.cts +59 -0
- package/dist/generation/index.d.cts +2 -2
- package/dist/generation/index.d.ts +2 -2
- package/dist/image-editor/index.cjs +97 -1
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +24 -2
- package/dist/image-editor/index.d.ts +24 -2
- package/dist/image-editor/index.js +96 -0
- package/dist/image-editor/index.js.map +1 -1
- package/dist/{registry-DIpIaCkH.d.cts → registry-BqA1AZt0.d.cts} +1 -1
- package/dist/{registry-7AZFuand.d.ts → registry-D-4fit9C.d.ts} +1 -1
- package/dist/tools/index.cjs +33 -4
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.d.cts +4 -2
- package/dist/tools/index.d.ts +4 -2
- package/dist/tools/index.js +43 -14
- package/dist/video-editor/index.d.cts +1 -1
- package/dist/video-editor/index.d.ts +1 -1
- package/package.json +1 -1
- package/skills/pixerate-canvas/SKILL.md +1 -0
- package/skills/pixerate-image-editor/SKILL.md +1 -0
- package/dist/chunk-GPWNYQ7R.js.map +0 -1
- package/dist/chunk-K73CKYUM.cjs.map +0 -1
package/dist/agent/index.cjs
CHANGED
|
@@ -8,6 +8,7 @@ var _chunkDK6QBGCScjs = require('../chunk-DK6QBGCS.cjs');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkWADCJ7A7cjs = require('../chunk-WADCJ7A7.cjs');
|
|
11
|
+
require('../chunk-FURT6ZFZ.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
@@ -20,6 +21,7 @@ var _chunkWADCJ7A7cjs = require('../chunk-WADCJ7A7.cjs');
|
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
|
|
24
|
+
var _chunkQIWFEEWGcjs = require('../chunk-QIWFEEWG.cjs');
|
|
23
25
|
|
|
24
26
|
|
|
25
27
|
|
|
@@ -29,7 +31,6 @@ var _chunkWADCJ7A7cjs = require('../chunk-WADCJ7A7.cjs');
|
|
|
29
31
|
|
|
30
32
|
|
|
31
33
|
|
|
32
|
-
var _chunkK73CKYUMcjs = require('../chunk-K73CKYUM.cjs');
|
|
33
34
|
|
|
34
35
|
|
|
35
36
|
|
|
@@ -42,7 +43,22 @@ var _chunkK73CKYUMcjs = require('../chunk-K73CKYUM.cjs');
|
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
|
|
45
|
-
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
var _chunkEI2MOVQ3cjs = require('../chunk-EI2MOVQ3.cjs');
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
var _chunkVJUVNERTcjs = require('../chunk-VJUVNERT.cjs');
|
|
46
62
|
|
|
47
63
|
|
|
48
64
|
var _chunkTPOT575Pcjs = require('../chunk-TPOT575P.cjs');
|
|
@@ -1375,7 +1391,7 @@ function createSpreadsheetToolProvider(controller, options) {
|
|
|
1375
1391
|
};
|
|
1376
1392
|
}
|
|
1377
1393
|
function missingArgumentsMessage(name, args) {
|
|
1378
|
-
const required =
|
|
1394
|
+
const required = _chunkEI2MOVQ3cjs.EDIT_OPERATION_REQUIRED_ARGUMENTS[name][args.operation];
|
|
1379
1395
|
if (!required) return `Unknown operation "${args.operation}".`;
|
|
1380
1396
|
const missing = required.filter(
|
|
1381
1397
|
(key) => key === "id" ? args.id === void 0 && _optionalChain([args, 'access', _29 => _29.node, 'optionalAccess', _30 => _30.id]) === void 0 : args[key] === void 0
|
|
@@ -1412,10 +1428,10 @@ function createEditorMcpToolProvider(options) {
|
|
|
1412
1428
|
};
|
|
1413
1429
|
const canvas = _nullishCoalesce(_optionalChain([options, 'access', _31 => _31.surfaces, 'optionalAccess', _32 => _32.canvas]), () => ( true));
|
|
1414
1430
|
const prompt = _nullishCoalesce(_optionalChain([options, 'access', _33 => _33.surfaces, 'optionalAccess', _34 => _34.prompt]), () => ( true));
|
|
1415
|
-
const editTools = options.toolStyle === "combined" ? [...canvas ? [
|
|
1431
|
+
const editTools = options.toolStyle === "combined" ? [...canvas ? [_chunkEI2MOVQ3cjs.MCP_TOOL_EDIT_CANVAS] : [], ...prompt ? [_chunkEI2MOVQ3cjs.MCP_TOOL_EDIT_PROMPT] : []] : [...canvas ? _chunkEI2MOVQ3cjs.EDITOR_CANVAS_TOOLS : [], ...prompt ? _chunkEI2MOVQ3cjs.EDITOR_PROMPT_TOOLS : []];
|
|
1416
1432
|
const tools = [
|
|
1417
1433
|
{
|
|
1418
|
-
...
|
|
1434
|
+
..._chunkEI2MOVQ3cjs.MCP_TOOL_GET_EDITOR_STATE,
|
|
1419
1435
|
handler: ({ includeDocument = true, includeCanvas = true }) => {
|
|
1420
1436
|
const snapshot = options.getSnapshot();
|
|
1421
1437
|
return {
|
|
@@ -1429,7 +1445,7 @@ function createEditorMcpToolProvider(options) {
|
|
|
1429
1445
|
if (options.captureView) {
|
|
1430
1446
|
const capture = options.captureView;
|
|
1431
1447
|
tools.push({
|
|
1432
|
-
...
|
|
1448
|
+
..._chunkEI2MOVQ3cjs.MCP_TOOL_VIEW_EDITOR,
|
|
1433
1449
|
handler: async (args) => {
|
|
1434
1450
|
const image = await capture(args);
|
|
1435
1451
|
return { content: [{ type: "image", data: image.data, mimeType: image.mimeType }] };
|
|
@@ -1677,5 +1693,18 @@ function createCanvasComponentToolProvider(controller, options = { id: "canvas-c
|
|
|
1677
1693
|
|
|
1678
1694
|
|
|
1679
1695
|
|
|
1680
|
-
|
|
1696
|
+
|
|
1697
|
+
|
|
1698
|
+
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
|
|
1702
|
+
|
|
1703
|
+
|
|
1704
|
+
|
|
1705
|
+
|
|
1706
|
+
|
|
1707
|
+
|
|
1708
|
+
|
|
1709
|
+
exports.CAPTURE_EXCLUDE_SELECTOR = _chunkEI2MOVQ3cjs.CAPTURE_EXCLUDE_SELECTOR; exports.CAPTURE_OVERLAY_SELECTORS = _chunkEI2MOVQ3cjs.CAPTURE_OVERLAY_SELECTORS; exports.EDITOR_CANVAS_TOOLS = _chunkEI2MOVQ3cjs.EDITOR_CANVAS_TOOLS; exports.EDITOR_MCP_TOOLS = _chunkEI2MOVQ3cjs.EDITOR_MCP_TOOLS; exports.EDITOR_PROMPT_TOOLS = _chunkEI2MOVQ3cjs.EDITOR_PROMPT_TOOLS; exports.EDIT_OPERATION_REQUIRED_ARGUMENTS = _chunkEI2MOVQ3cjs.EDIT_OPERATION_REQUIRED_ARGUMENTS; exports.EXPORT_EXCLUDED_SELECTORS = _chunkEI2MOVQ3cjs.EXPORT_EXCLUDED_SELECTORS; exports.JSON_RPC_ERRORS = _chunkQIWFEEWGcjs.JSON_RPC_ERRORS; exports.MCP_PROTOCOL_VERSIONS = _chunkQIWFEEWGcjs.MCP_PROTOCOL_VERSIONS; exports.MCP_TOOL_CANVAS_ADD_NODE = _chunkEI2MOVQ3cjs.MCP_TOOL_CANVAS_ADD_NODE; exports.MCP_TOOL_CANVAS_CONNECT = _chunkEI2MOVQ3cjs.MCP_TOOL_CANVAS_CONNECT; exports.MCP_TOOL_CANVAS_HIGHLIGHT = _chunkEI2MOVQ3cjs.MCP_TOOL_CANVAS_HIGHLIGHT; exports.MCP_TOOL_CANVAS_LAYOUT = _chunkEI2MOVQ3cjs.MCP_TOOL_CANVAS_LAYOUT; exports.MCP_TOOL_CANVAS_REMOVE_NODES = _chunkEI2MOVQ3cjs.MCP_TOOL_CANVAS_REMOVE_NODES; exports.MCP_TOOL_CANVAS_SELECT = _chunkEI2MOVQ3cjs.MCP_TOOL_CANVAS_SELECT; exports.MCP_TOOL_CANVAS_UPDATE_NODE = _chunkEI2MOVQ3cjs.MCP_TOOL_CANVAS_UPDATE_NODE; exports.MCP_TOOL_EDIT_CANVAS = _chunkEI2MOVQ3cjs.MCP_TOOL_EDIT_CANVAS; exports.MCP_TOOL_EDIT_PROMPT = _chunkEI2MOVQ3cjs.MCP_TOOL_EDIT_PROMPT; exports.MCP_TOOL_GET_EDITOR_STATE = _chunkEI2MOVQ3cjs.MCP_TOOL_GET_EDITOR_STATE; exports.MCP_TOOL_PROMPT_INSERT_TEXT = _chunkEI2MOVQ3cjs.MCP_TOOL_PROMPT_INSERT_TEXT; exports.MCP_TOOL_PROMPT_REPLACE_RANGE = _chunkEI2MOVQ3cjs.MCP_TOOL_PROMPT_REPLACE_RANGE; exports.MCP_TOOL_PROMPT_SELECT = _chunkEI2MOVQ3cjs.MCP_TOOL_PROMPT_SELECT; exports.MCP_TOOL_PROMPT_SET_VARIABLE = _chunkEI2MOVQ3cjs.MCP_TOOL_PROMPT_SET_VARIABLE; exports.MCP_TOOL_VIEW_EDITOR = _chunkEI2MOVQ3cjs.MCP_TOOL_VIEW_EDITOR; exports.TOOL_BRIDGE_DEFAULT_PORT = _chunkQIWFEEWGcjs.TOOL_BRIDGE_DEFAULT_PORT; exports.TOOL_BRIDGE_PROTOCOL = _chunkQIWFEEWGcjs.TOOL_BRIDGE_PROTOCOL; exports.TOOL_NAMESPACE_SEPARATOR = _chunkQIWFEEWGcjs.TOOL_NAMESPACE_SEPARATOR; exports.ToolRegistry = _chunkQIWFEEWGcjs.ToolRegistry; exports.ToolRegistryError = _chunkQIWFEEWGcjs.ToolRegistryError; exports.captureInputSchema = _chunkVJUVNERTcjs.captureInputSchema; exports.captureOutputSize = _chunkVJUVNERTcjs.captureOutputSize; exports.cloneElementWithStyles = _chunkEI2MOVQ3cjs.cloneElementWithStyles; exports.connectToolBridge = _chunkQIWFEEWGcjs.connectToolBridge; exports.createCanvasComponentToolProvider = createCanvasComponentToolProvider; exports.createCaptureTool = _chunkVJUVNERTcjs.createCaptureTool; exports.createCaptureToolProvider = _chunkVJUVNERTcjs.createCaptureToolProvider; exports.createDocumentChartTools = createDocumentChartTools; exports.createEditorMcpToolProvider = createEditorMcpToolProvider; exports.createElementCaptureSurface = _chunkEI2MOVQ3cjs.createElementCaptureSurface; exports.createMcpServer = _chunkQIWFEEWGcjs.createMcpServer; exports.createRichTextToolProvider = createRichTextToolProvider; exports.createSpreadsheetToolProvider = createSpreadsheetToolProvider; exports.createToolRegistry = _chunkQIWFEEWGcjs.createToolRegistry; exports.elementToSvg = _chunkEI2MOVQ3cjs.elementToSvg; exports.normalizeSide = normalizeSide; exports.planAgentCommand = planAgentCommand; exports.planToolCall = planToolCall; exports.rasterizeElement = _chunkEI2MOVQ3cjs.rasterizeElement; exports.resolveCaptureRequest = _chunkVJUVNERTcjs.resolveCaptureRequest; exports.toCapturedImageData = _chunkVJUVNERTcjs.toCapturedImageData; exports.toToolResult = _chunkQIWFEEWGcjs.toToolResult; exports.toolCallToAgentCommand = toolCallToAgentCommand; exports.unionCaptureRects = _chunkVJUVNERTcjs.unionCaptureRects; exports.validateAgentCommand = validateAgentCommand; exports.validateJsonSchema = _chunkRIWPYSKUcjs.validateJsonSchema;
|
|
1681
1710
|
//# sourceMappingURL=index.cjs.map
|