mvp-factory-setups/openhands-sdk-n8n-SSH-WORKI...

89 lines
2.3 KiB
JSON

{
"name": "OpenHands SDK SSH - Working Test",
"meta": {
"instanceId": "openhands-sdk-ssh-working"
},
"nodes": [
{
"parameters": {},
"id": "manual-trigger",
"name": "Manual Trigger",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [240, 300]
},
{
"parameters": {
"command": "sh /home/bam/openhands-sdk-wrapper-sh.sh \"Create file: n8n-ssh-test-$(date +%s).txt with content: SUCCESS from n8n SSH workflow!\"",
"sessionId": "ssh-working-session",
"authentication": "privateKey"
},
"id": "execute-sdk",
"name": "Execute OpenHands SDK (SSH)",
"type": "n8n-nodes-base.ssh",
"typeVersion": 2,
"position": [460, 300],
"credentials": {
"sshPrivateKey": {
"id": "v2BMXeCFGpXaoIyb",
"name": "SSH Private Key account"
}
}
},
{
"parameters": {
"command": "ls -lt /home/bam/n8n-ssh-test-*.txt 2>/dev/null | head -1 && echo \"=== VERIFICATION ===\" && if ls /home/bam/n8n-ssh-test-*.txt >/dev/null 2>&1; then echo \"✅ FILE CREATED SUCCESSFULLY!\"; cat /home/bam/n8n-ssh-test-*.txt 2>/dev/null | head -1; echo \"✅ WORKFLOW PASSED\"; else echo \"❌ FILE NOT FOUND - WORKFLOW FAILED\"; fi",
"sessionId": "ssh-working-session",
"authentication": "privateKey"
},
"id": "verify-file",
"name": "Verify File Created",
"type": "n8n-nodes-base.ssh",
"typeVersion": 2,
"position": [680, 300],
"credentials": {
"sshPrivateKey": {
"id": "v2BMXeCFGpXaoIyb",
"name": "SSH Private Key account"
}
}
}
],
"connections": {
"Manual Trigger": {
"main": [
[
{
"node": "Execute OpenHands SDK (SSH)",
"type": "main",
"index": 0
}
]
]
},
"Execute OpenHands SDK (SSH)": {
"main": [
[
{
"node": "Verify File Created",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"triggerCount": 0,
"updatedAt": "2025-12-01T11:51:00.000Z",
"versionId": "1",
"active": false,
"meta": {
"templateCredsSetupCompleted": false
}
}