diff --git a/src/templates/debug.json b/src/templates/debug.json new file mode 100644 index 0000000..2c1f4c3 --- /dev/null +++ b/src/templates/debug.json @@ -0,0 +1,128 @@ +{ + "name": "debug", + "displayName": "Debug Session", + "description": "Layout for debugging applications with multiple terminal panes", + "variables": [ + { + "name": "PROJECT_DIR", + "description": "Project root directory", + "defaultValue": "~/projects", + "required": true + }, + { + "name": "SERVER_URL", + "description": "Debug server URL", + "defaultValue": "http://localhost:3000", + "required": false + }, + { + "name": "LOG_LEVEL", + "description": "Logging level", + "defaultValue": "debug", + "required": false + } + ], + "layout": { + "version": "1.0.0", + "terminalType": "tmux", + "createdAt": "2024-01-01T00:00:00.000Z", + "updatedAt": "2024-01-01T00:00:00.000Z", + "session": { + "id": "s-debug", + "name": "debug", + "windows": [ + { + "id": "w0", + "index": 0, + "name": "debugger", + "panes": [ + { + "id": "p0", + "index": 0, + "layout": { + "x": 0, + "y": 0, + "width": 50, + "height": 30 + }, + "command": "cd ${PROJECT_DIR} && npm run debug", + "cwd": "${PROJECT_DIR}", + "title": "Debugger" + }, + { + "id": "p1", + "index": 1, + "layout": { + "x": 50, + "y": 0, + "width": 50, + "height": 30 + }, + "command": "cd ${PROJECT_DIR} && npm run test:watch", + "cwd": "${PROJECT_DIR}", + "title": "Tests" + } + ] + }, + { + "id": "w1", + "index": 1, + "name": "logs", + "panes": [ + { + "id": "p0", + "index": 0, + "layout": { + "x": 0, + "y": 0, + "width": 100, + "height": 20 + }, + "command": "cd ${PROJECT_DIR} && tail -f logs/app.log", + "cwd": "${PROJECT_DIR}", + "title": "Application Logs" + } + ] + }, + { + "id": "w2", + "index": 2, + "name": "api", + "panes": [ + { + "id": "p0", + "index": 0, + "layout": { + "x": 0, + "y": 0, + "width": 50, + "height": 24 + }, + "command": "curl ${SERVER_URL}/health", + "cwd": "${PROJECT_DIR}", + "title": "Health Check" + }, + { + "id": "p1", + "index": 1, + "layout": { + "x": 50, + "y": 0, + "width": 50, + "height": 24 + }, + "command": "cd ${PROJECT_DIR} && npm run db:query", + "cwd": "${PROJECT_DIR}", + "title": "Database" + } + ] + } + ], + "activeWindowIndex": 0 + }, + "metadata": { + "description": "Debugging environment", + "tags": ["debug", "testing", "troubleshooting"] + } + } +}