@elementor/editor-variables 3.35.0-363 → 3.35.0-364
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/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +14 -14
- package/src/mcp/create-variable-tool.ts +4 -0
- package/src/mcp/delete-variable-tool.ts +4 -0
- package/src/mcp/list-variables-tool.ts +9 -5
- package/src/mcp/update-variable-tool.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-variables",
|
|
3
|
-
"version": "3.35.0-
|
|
3
|
+
"version": "3.35.0-364",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Elementor Team",
|
|
6
6
|
"homepage": "https://elementor.com/",
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elementor/editor": "3.35.0-
|
|
43
|
-
"@elementor/editor-canvas": "3.35.0-
|
|
44
|
-
"@elementor/editor-controls": "3.35.0-
|
|
45
|
-
"@elementor/editor-current-user": "3.35.0-
|
|
46
|
-
"@elementor/editor-editing-panel": "3.35.0-
|
|
47
|
-
"@elementor/editor-mcp": "3.35.0-
|
|
48
|
-
"@elementor/editor-panels": "3.35.0-
|
|
49
|
-
"@elementor/editor-props": "3.35.0-
|
|
50
|
-
"@elementor/editor-ui": "3.35.0-
|
|
51
|
-
"@elementor/editor-v1-adapters": "3.35.0-
|
|
52
|
-
"@elementor/http-client": "3.35.0-
|
|
42
|
+
"@elementor/editor": "3.35.0-364",
|
|
43
|
+
"@elementor/editor-canvas": "3.35.0-364",
|
|
44
|
+
"@elementor/editor-controls": "3.35.0-364",
|
|
45
|
+
"@elementor/editor-current-user": "3.35.0-364",
|
|
46
|
+
"@elementor/editor-editing-panel": "3.35.0-364",
|
|
47
|
+
"@elementor/editor-mcp": "3.35.0-364",
|
|
48
|
+
"@elementor/editor-panels": "3.35.0-364",
|
|
49
|
+
"@elementor/editor-props": "3.35.0-364",
|
|
50
|
+
"@elementor/editor-ui": "3.35.0-364",
|
|
51
|
+
"@elementor/editor-v1-adapters": "3.35.0-364",
|
|
52
|
+
"@elementor/http-client": "3.35.0-364",
|
|
53
53
|
"@elementor/icons": "^1.62.0",
|
|
54
|
-
"@elementor/mixpanel": "3.35.0-
|
|
55
|
-
"@elementor/schema": "3.35.0-
|
|
54
|
+
"@elementor/mixpanel": "3.35.0-364",
|
|
55
|
+
"@elementor/schema": "3.35.0-364",
|
|
56
56
|
"@elementor/ui": "1.36.17",
|
|
57
57
|
"@wordpress/i18n": "^5.13.0"
|
|
58
58
|
},
|
|
@@ -21,6 +21,10 @@ export const initCreateVariableTool = () => {
|
|
|
21
21
|
name: 'create-global-variable',
|
|
22
22
|
schema: InputSchema,
|
|
23
23
|
outputSchema: OutputSchema,
|
|
24
|
+
modelPreferences: {
|
|
25
|
+
intelligencePriority: 0.7,
|
|
26
|
+
speedPriority: 0.7,
|
|
27
|
+
},
|
|
24
28
|
description: `Create a new global variable
|
|
25
29
|
## When to use this tool:
|
|
26
30
|
- When a user requests to create a new global variable in the Elementor editor.
|
|
@@ -12,6 +12,10 @@ export const initDeleteVariableTool = () => {
|
|
|
12
12
|
outputSchema: {
|
|
13
13
|
status: z.enum( [ 'ok', 'error' ] ).describe( 'The status of the operation' ),
|
|
14
14
|
},
|
|
15
|
+
modelPreferences: {
|
|
16
|
+
intelligencePriority: 0.7,
|
|
17
|
+
speedPriority: 0.8,
|
|
18
|
+
},
|
|
15
19
|
description: `Delete an existing global variable
|
|
16
20
|
|
|
17
21
|
## When to use this tool:
|
|
@@ -22,13 +22,13 @@ export const initListVariablesTool = () => {
|
|
|
22
22
|
getMCPByDomain( 'canvas' ).addTool( {
|
|
23
23
|
name: 'list-global-variables',
|
|
24
24
|
description: `List the global variables
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
## When to use this tool:
|
|
27
27
|
- When a user requests to see all available global variables in the Elementor editor.
|
|
28
28
|
- When you need to be exact on a variable label, to avoid any mistakes.
|
|
29
29
|
- When you want to see the most up-to-date list of global variables.
|
|
30
30
|
- Before using any other variables related tools that makes changes, such as deletion, creation, or updates. This ensures you have the latest information and there is no naming collision or mismatching.
|
|
31
|
-
|
|
31
|
+
|
|
32
32
|
## Example tool response (JSON format):
|
|
33
33
|
\`\`\`json
|
|
34
34
|
{ variables: [
|
|
@@ -36,18 +36,22 @@ export const initListVariablesTool = () => {
|
|
|
36
36
|
{ type: 'global-font-variable', label: 'Headline', value: 'serif', id: 'some-other-unique-id' },
|
|
37
37
|
] }
|
|
38
38
|
\`\`\`
|
|
39
|
-
|
|
39
|
+
|
|
40
40
|
Once you get the response, please display the variables in a user-friendly way, unless explicitly requested otherwise.
|
|
41
41
|
Unless explicitly requested otherwise, response in HTML Format, prefer to use tables or unordered lists.
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
Note: **The label is most improtant to be seen as-is without any changes.**
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
<important>
|
|
46
46
|
**Do not omit the label**. This is important for the user to identify the variable.
|
|
47
47
|
**Do not change the label**, it must be displayed exactly as it is, in it's original characters as received from this tool.
|
|
48
48
|
</important>
|
|
49
49
|
`,
|
|
50
50
|
outputSchema: VariableListSchema,
|
|
51
|
+
modelPreferences: {
|
|
52
|
+
intelligencePriority: 0.5,
|
|
53
|
+
speedPriority: 0.95,
|
|
54
|
+
},
|
|
51
55
|
handler: async () => {
|
|
52
56
|
const variables = service.variables() as Record< string, TVariable >;
|
|
53
57
|
return {
|
|
@@ -26,6 +26,10 @@ export const initUpdateVariableTool = () => {
|
|
|
26
26
|
.describe( 'Optional message providing additional information about the operation' ),
|
|
27
27
|
},
|
|
28
28
|
name: 'update-global-variable',
|
|
29
|
+
modelPreferences: {
|
|
30
|
+
intelligencePriority: 0.75,
|
|
31
|
+
speedPriority: 0.7,
|
|
32
|
+
},
|
|
29
33
|
description: `Update an existing global variable
|
|
30
34
|
|
|
31
35
|
## When to use this tool:
|