81 lines
2.1 KiB
JSON
81 lines
2.1 KiB
JSON
{
|
|
"name": "OpenHands SDK SSH Simple Test",
|
|
"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-simple-$(date +%s).txt with content: SUCCESS from n8n SSH workflow!\"",
|
|
"sessionId": "ssh-simple-session",
|
|
"authentication": "password"
|
|
},
|
|
"id": "execute-sdk-ssh",
|
|
"name": "Execute OpenHands SDK (SSH)",
|
|
"type": "n8n-nodes-base.ssh",
|
|
"typeVersion": 2,
|
|
"position": [460, 300],
|
|
"credentials": {
|
|
"sshPassword": {
|
|
"id": "bam-localhost",
|
|
"name": "bam-localhost"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"command": "ls -lt /home/bam/n8n-ssh-simple-*.txt 2>/dev/null | head -1 && echo \"=== FILE VERIFICATION ===\" && if ls /home/bam/n8n-ssh-simple-*.txt >/dev/null 2>&1; then echo \"✅ FILE CREATED SUCCESSFULLY!\"; cat /home/bam/n8n-ssh-simple-*.txt 2>/dev/null | head -1; echo \"✅ WORKFLOW PASSED\"; else echo \"❌ FILE NOT FOUND - WORKFLOW FAILED\"; fi",
|
|
"sessionId": "ssh-simple-session",
|
|
"authentication": "password"
|
|
},
|
|
"id": "verify-file",
|
|
"name": "Verify File Created",
|
|
"type": "n8n-nodes-base.ssh",
|
|
"typeVersion": 2,
|
|
"position": [680, 300],
|
|
"credentials": {
|
|
"sshPassword": {
|
|
"id": "bam-localhost",
|
|
"name": "bam-localhost"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"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
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
},
|
|
"staticData": null,
|
|
"triggerCount": 0,
|
|
"active": false,
|
|
"versionId": "1"
|
|
}
|