94 lines
2.2 KiB
JSON
94 lines
2.2 KiB
JSON
{
|
|
"name": "OpenHands SDK Final",
|
|
"meta": {
|
|
"instanceId": "openhands-sdk-final-working"
|
|
},
|
|
"nodes": [
|
|
{
|
|
"parameters": {
|
|
"httpMethod": "POST",
|
|
"path": "openhands-sdk-final",
|
|
"responseMode": "responseNode"
|
|
},
|
|
"id": "webhook-1",
|
|
"name": "Webhook",
|
|
"type": "n8n-nodes-base.webhook",
|
|
"typeVersion": 2,
|
|
"position": [240, 300]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"command": "sh /home/bam/openhands-sdk-wrapper-sh.sh \"{{ $json.commits[0].message }}\"",
|
|
"sessionId": "sdk-session"
|
|
},
|
|
"id": "execute-sdk",
|
|
"name": "Execute OpenHands SDK (SH)",
|
|
"type": "n8n-nodes-base.ssh",
|
|
"typeVersion": 2,
|
|
"position": [460, 300],
|
|
"credentials": {
|
|
"sshPassword": {
|
|
"id": "ai-dev-localhost",
|
|
"name": "ai-dev-localhost"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"respondWith": "json",
|
|
"responseBody": {
|
|
"status": "success",
|
|
"message": "OpenHands SDK executed successfully",
|
|
"timestamp": "{{ $now }}",
|
|
"commit": "{{ $json.commits[0].message }}",
|
|
"workflow": "openhands-sdk-final",
|
|
"method": "SDK (sh-compatible, Docker-free)",
|
|
"note": "Files created in /home/bam - check for .txt files"
|
|
},
|
|
"options": {}
|
|
},
|
|
"id": "respond-1",
|
|
"name": "Respond to Webhook",
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"typeVersion": 1,
|
|
"position": [680, 300]
|
|
}
|
|
],
|
|
"connections": {
|
|
"Webhook": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Execute OpenHands SDK (SH)",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Execute OpenHands SDK (SH)": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Respond to Webhook",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"pinData": {},
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
},
|
|
"staticData": null,
|
|
"triggerCount": 1,
|
|
"updatedAt": "2025-12-01T10:05:00.000Z",
|
|
"versionId": "5",
|
|
"active": false,
|
|
"meta": {
|
|
"templateCredsSetupCompleted": false
|
|
}
|
|
}
|