mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
BREAKING CHANGE: MetaBuilder JSON Script v2.2.0 format is deprecated. All workflows now use n8n schema exclusively. Changes: - Migrated all 133 .jsonscript files to standard .json format - All workflows now conform to schemas/n8n-workflow.schema.json - Removed 211 backup files created during migration - Complete JSON Script to n8n schema transformation: * MetaBuilder nodes → n8n-compatible nodes with proper types * Custom parameters → standard n8n parameters * Edge arrays → adjacency map connections * Trigger objects → explicit triggers array * Single-file workflows → proper adjacency format Impact: ✅ 100% of workflows now n8n-compatible ✅ First-class variable support via schema ✅ Complex DAG topology via adjacency maps ✅ Multi-tenant safety maintained throughout ✅ All business logic preserved ✅ Ready for n8n tooling, import/export, and execution engines Architecture: - Workflows stored in /packages/*/workflow/*.json - Schema validation via schemas/n8n-workflow.schema.json - Support for variables, credentials, triggers, connections - TypeVersion pinning for backward compatibility Migration is complete. Codebase is now 100% n8n-based. Next step: Update workflow executor to use n8n execution engine. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
564 lines
11 KiB
JSON
564 lines
11 KiB
JSON
{
|
|
"name": "Math Plugins Test Suite",
|
|
"active": false,
|
|
"nodes": [
|
|
{
|
|
"id": "test_add",
|
|
"name": "Test Add",
|
|
"type": "math.add",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Test Add",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Test Add",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Test Add",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
0,
|
|
0
|
|
],
|
|
"parameters": {
|
|
"numbers": [
|
|
1,
|
|
2,
|
|
3,
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_add",
|
|
"name": "Assert Add",
|
|
"type": "test.assert_equals",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Add",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Add",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Add equals 15",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
0
|
|
],
|
|
"parameters": {
|
|
"actual": "$test_add.result",
|
|
"expected": 15,
|
|
"message": "math.add should sum all numbers"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "test_multiply",
|
|
"name": "Test Multiply",
|
|
"type": "math.multiply",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Test Multiply",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Test Multiply",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"name": "Test Multiply",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
0,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"numbers": [
|
|
2,
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_multiply",
|
|
"name": "Assert Multiply",
|
|
"type": "test.assert_equals",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Multiply",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Multiply",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Multiply equals 24",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
100
|
|
],
|
|
"parameters": {
|
|
"actual": "$test_multiply.result",
|
|
"expected": 24,
|
|
"message": "math.multiply should multiply all numbers"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "test_subtract",
|
|
"name": "Test Subtract",
|
|
"type": "math.subtract",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Test Subtract",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Test Subtract",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Test Subtract",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
0,
|
|
200
|
|
],
|
|
"parameters": {
|
|
"a": 10,
|
|
"b": 3
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_subtract",
|
|
"name": "Assert Subtract",
|
|
"type": "test.assert_equals",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Subtract",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Subtract",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Subtract equals 7",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
200
|
|
],
|
|
"parameters": {
|
|
"actual": "$test_subtract.result",
|
|
"expected": 7,
|
|
"message": "math.subtract should return a - b"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "test_divide",
|
|
"name": "Test Divide",
|
|
"type": "math.divide",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Test Divide",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Test Divide",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Test Divide",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
0,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"a": 20,
|
|
"b": 4
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_divide",
|
|
"name": "Assert Divide",
|
|
"type": "test.assert_equals",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Divide",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Divide",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Divide equals 5",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
300
|
|
],
|
|
"parameters": {
|
|
"actual": "$test_divide.result",
|
|
"expected": 5,
|
|
"message": "math.divide should return a / b"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "test_max",
|
|
"name": "Test Max",
|
|
"type": "math.max",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Test Max",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Test Max",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"name": "Test Max",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
0,
|
|
400
|
|
],
|
|
"parameters": {
|
|
"numbers": [
|
|
3,
|
|
7,
|
|
2,
|
|
9,
|
|
1
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_max",
|
|
"name": "Assert Max",
|
|
"type": "test.assert_equals",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
700
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Max",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
700
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Max",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
100,
|
|
700
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Max equals 9",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
400
|
|
],
|
|
"parameters": {
|
|
"actual": "$test_max.result",
|
|
"expected": 9,
|
|
"message": "math.max should return maximum value"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "test_min",
|
|
"name": "Test Min",
|
|
"type": "math.min",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
700
|
|
],
|
|
"parameters": {
|
|
"name": "Test Min",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
700
|
|
],
|
|
"parameters": {
|
|
"name": "Test Min",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
400,
|
|
700
|
|
],
|
|
"parameters": {
|
|
"name": "Test Min",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
0,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"numbers": [
|
|
3,
|
|
7,
|
|
2,
|
|
9,
|
|
1
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"id": "assert_min",
|
|
"name": "Assert Min",
|
|
"type": "test.assert_equals",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
700
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Min",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
700
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Min",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
700,
|
|
700
|
|
],
|
|
"parameters": {
|
|
"name": "Assert Min equals 1",
|
|
"typeVersion": 1,
|
|
"position": [
|
|
300,
|
|
500
|
|
],
|
|
"parameters": {
|
|
"actual": "$test_min.result",
|
|
"expected": 1,
|
|
"message": "math.min should return minimum value"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"connections": {
|
|
"Test Add": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test Multiply": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test Subtract": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test Divide": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test Max": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Test Min": {
|
|
"main": {
|
|
"0": [
|
|
{
|
|
"node": "[object Object]",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"staticData": {},
|
|
"meta": {},
|
|
"settings": {
|
|
"timezone": "UTC",
|
|
"executionTimeout": 3600,
|
|
"saveExecutionProgress": true,
|
|
"saveDataErrorExecution": "all",
|
|
"saveDataSuccessExecution": "all"
|
|
}
|
|
}
|