79 lines
2.1 KiB
JSON
79 lines
2.1 KiB
JSON
{
|
|
"name": "OpenHands SDK - Working Test with Verification",
|
|
"meta": {
|
|
"instanceId": "openhands-sdk-working-test"
|
|
},
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"id": "manual-trigger",
|
|
"name": "Manual Trigger",
|
|
"type": "n8n-nodes-base.manualTrigger",
|
|
"typeVersion": 1,
|
|
"position": [240, 300]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"command": "cd /tmp/software-agent-sdk && . .venv/bin/activate && source /home/bam/openhands/.env && python /home/bam/openhands-sdk-wrapper-fixed.py \"Create file: n8n-working-test-$(date +%s).txt with content: SUCCESS from n8n workflow!\"",
|
|
"options": {
|
|
"sessionId": "working-test-session"
|
|
}
|
|
},
|
|
"id": "execute-sdk",
|
|
"name": "Execute OpenHands SDK",
|
|
"type": "n8n-nodes-base.executeCommand",
|
|
"typeVersion": 1,
|
|
"position": [460, 300]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"command": "ls -lt /home/bam/n8n-working-test-*.txt 2>/dev/null | head -1 && echo \"=== FILE VERIFICATION ===\" && if ls /home/bam/n8n-working-test-*.txt >/dev/null 2>&1; then echo \"✅ FILE EXISTS AND VERIFIED!\"; cat /home/bam/n8n-working-test-*.txt 2>/dev/null | head -1; else echo \"❌ FILE NOT FOUND!\"; fi",
|
|
"options": {
|
|
"sessionId": "working-test-session"
|
|
}
|
|
},
|
|
"id": "verify-file",
|
|
"name": "Verify File Created",
|
|
"type": "n8n-nodes-base.executeCommand",
|
|
"typeVersion": 1,
|
|
"position": [680, 300]
|
|
}
|
|
],
|
|
"connections": {
|
|
"Manual Trigger": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Execute OpenHands SDK",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Execute OpenHands SDK": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Verify File Created",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"pinData": {},
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
},
|
|
"staticData": null,
|
|
"triggerCount": 0,
|
|
"updatedAt": "2025-12-01T11:50:00.000Z",
|
|
"versionId": "1",
|
|
"active": false,
|
|
"meta": {
|
|
"templateCredsSetupCompleted": false
|
|
}
|
|
}
|