mvp-factory-openhands/openhands-sdk-n8n-workflow-...

131 lines
3.3 KiB
JSON

{
"meta": {
"instanceId": "openhands-sdk-n8n-fixed"
},
"nodes": [
{
"parameters": {
"httpMethod": "POST",
"path": "openhands-sdk-fixed",
"responseMode": "responseNode"
},
"id": "webhook-trigger-fixed",
"name": "Webhook Trigger",
"type": "n8n-nodes-base.webhook",
"typeVersion": 2,
"position": [240, 300],
"webhookId": "openhands-sdk-fixed-webhook"
},
{
"parameters": {
"command": "cd /tmp/software-agent-sdk && source .venv/bin/activate && source /home/bam/openhands/.env && python /home/bam/openhands-sdk-wrapper-fixed.py \"Build and test project {{ $json.repository.full_name }} - Commit: {{ $json.commits[0].message }}\"",
"sessionId": "sdk-session-fixed"
},
"id": "sdk-execute-fixed",
"name": "Execute OpenHands SDK (FIXED)",
"type": "n8n-nodes-base.ssh",
"typeVersion": 2,
"position": [460, 300],
"credentials": {
"sshPassword": {
"id": "ai-dev-localhost",
"name": "ai-dev-localhost"
}
}
},
{
"parameters": {
"command": "ls -la /home/bam/sdk-test-*.txt /home/bam/sdk-wrapper-test*.txt /home/bam/*.txt 2>/dev/null | tail -20",
"sessionId": "sdk-session-fixed"
},
"id": "verify-files-fixed",
"name": "Verify Results",
"type": "n8n-nodes-base.ssh",
"typeVersion": 2,
"position": [680, 300],
"credentials": {
"sshPassword": {
"id": "ai-dev-localhost",
"name": "ai-dev-localhost"
}
}
},
{
"parameters": {
"respondWith": "json",
"responseBody": {
"status": "success",
"message": "OpenHands SDK FIXED task completed successfully",
"timestamp": "{{ $now }}",
"repository": "{{ $json.repository.full_name }}",
"commit": "{{ $json.commits[0].message }}",
"workflow": "openhands-sdk-fixed",
"method": "SDK (Docker-free, Filesystem-fixed)",
"note": "Fixed: SDK wrapper now properly persists files to host filesystem",
"files_created": "{{ $json.files_created }}"
},
"options": {}
},
"id": "webhook-response-fixed",
"name": "Webhook Response",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [900, 300]
}
],
"connections": {
"Webhook Trigger": {
"main": [
[
{
"node": "Execute OpenHands SDK (FIXED)",
"type": "main",
"index": 0
}
]
]
},
"Execute OpenHands SDK (FIXED)": {
"main": [
[
{
"node": "Verify Results",
"type": "main",
"index": 0
}
]
]
},
"Verify Results": {
"main": [
[
{
"node": "Webhook Response",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [
"openhands",
"sdk",
"docker-free",
"python",
"fixed"
],
"triggerCount": 1,
"updatedAt": "2025-12-01T00:20:00.000Z",
"versionId": "2",
"active": false,
"meta": {
"templateCredsSetupCompleted": false
}
}