From a4325d1b6dd83b1d6a76d5c9a7be47fb993a4192 Mon Sep 17 00:00:00 2001 From: Yashyr190 Date: Wed, 13 May 2026 00:02:59 +0530 Subject: [PATCH 1/9] Finalize DebugPilot AI submission --- submissions/debugpilot-ai | 301 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 301 insertions(+) create mode 100644 submissions/debugpilot-ai diff --git a/submissions/debugpilot-ai b/submissions/debugpilot-ai new file mode 100644 index 00000000..b64b4f43 --- /dev/null +++ b/submissions/debugpilot-ai @@ -0,0 +1,301 @@ +# DebugPilot AI + +AI-powered debugging workflow for faster incident triage and root cause analysis. + +--- + +## ๐Ÿš€ Live Demo + +**Production Deployment:** +[Live Demo](https://debugpilot-ai.vercel.app/) + +**GitHub Repository:** +[GitHub Repository](https://github.com/Yashyr190/debugpilot-ai) +--- + +## ๐Ÿ“Œ Overview + +DebugPilot AI is a lightweight AI-powered debugging assistant designed for developers working with modern full-stack applications. + +Developers often lose significant time manually reading logs, tracing stack errors, and identifying the actual subsystem responsible for failures. DebugPilot AI transforms raw logs, runtime exceptions, deployment failures, and API errors into structured debugging reports with actionable engineering insights. + +The goal of the project is not to replace developers, but to accelerate the first triage pass by converting noisy debugging data into a clean workflow-oriented report. + +--- + +## โ— Problem Statement + +Debugging production and development issues usually starts with scattered context: + +* Stack traces +* CI/CD failures +* Browser console errors +* Runtime exceptions +* API response failures +* Authentication issues +* Infrastructure logs + +Most debugging workflows are repetitive and unstructured. Developers spend time: + +* identifying the subsystem +* estimating severity +* finding root causes +* determining immediate next steps +* deciding what to check first + +This slows engineering velocity and increases debugging fatigue. + +--- + +## โœ… Solution + +DebugPilot AI provides a structured debugging workflow that converts raw technical failures into practical engineering reports. + +The application analyzes developer input and generates: + +* Error categorization +* Severity classification +* Likely subsystem detection +* Root cause analysis +* Immediate next debugging step +* Suggested fixes +* Debugging checklists +* Prevention guidance +* Confidence scoring + +Instead of returning long generic AI responses, the app focuses on concise, engineering-oriented outputs that resemble real incident triage workflows. + +--- + +## ๐Ÿง  Core Features + +### ๐Ÿ” AI-Powered Incident Triage + +Transforms stack traces, logs, and deployment failures into structured debugging reports. + +### โš ๏ธ Severity Detection + +Classifies issues into: + +* Low +* Medium +* High +* Critical + +### ๐Ÿ—๏ธ Likely Subsystem Identification + +Identifies the most relevant engineering layer involved in the issue. + +Examples: + +* Frontend API Layer +* React Rendering Layer +* Deployment Build Pipeline +* Backend Validation Layer +* Database Connection Layer + +### ๐Ÿ› ๏ธ Root Cause Analysis + +Provides concise and actionable debugging explanations. + +### ๐Ÿš€ Immediate Next Step + +Suggests the most practical first debugging action. + +### ๐Ÿ“‹ Debugging Checklist + +Generates operational debugging steps for developers. + +### ๐Ÿ›ก๏ธ Prevention Guidance + +Provides engineering practices to reduce recurring failures. + +### ๐Ÿ“Š Confidence Score + +Estimates confidence in the generated debugging report. + +### ๐ŸŽจ Modern Developer-Focused UI + +Built with a clean dark interface optimized for developer workflows. + +--- + +## โš™๏ธ Workflow + +```text +Input Error/Logs + โ†“ +Issue Classification + โ†“ +Severity Detection + โ†“ +Subsystem Identification + โ†“ +Root Cause Analysis + โ†“ +Fix Suggestions + โ†“ +Debugging Checklist + โ†“ +Prevention Guidance +``` + +--- + +## ๐Ÿงช Example Supported Issues + +DebugPilot AI can analyze: + +* React rendering failures +* API response errors +* Authentication token failures +* Deployment/build pipeline failures +* Database connection timeouts +* Runtime exceptions +* TypeScript build errors +* Infrastructure-related logs + +--- + +## ๐Ÿ–ผ๏ธ Screenshots + +### Landing Interface +Screenshot 2026-05-12 at 6 44 22โ€ฏPM + +### Structured Debugging Report +Screenshot 2026-05-12 at 6 42 01โ€ฏPM +Screenshot 2026-05-12 at 6 43 03โ€ฏPM + +### Deployment Failure Analysis +Screenshot 2026-05-12 at 6 45 46โ€ฏPM + +--- + +## ๐Ÿ› ๏ธ Tech Stack + +### Frontend + +* Next.js 14 +* TypeScript +* Tailwind CSS + +### UI/UX + +* Glassmorphism-inspired interface +* Responsive layout +* Animated report transitions +* Loading shimmer states + +### AI Workflow + +* Structured debugging pipeline +* Heuristic fallback analyzer +* Confidence scoring system +* Workflow-oriented response generation + +--- + +## ๐Ÿงฑ Architecture + +The application uses a lightweight Next.js API route as the analysis boundary. + +If an AI API key is configured, the system can generate structured debugging responses using an LLM. If no key is configured, the app falls back to a local heuristic analyzer to ensure the application remains fully functional during demos and local development. + +This approach keeps the application: + +* lightweight +* reliable +* demo-friendly +* deployment-safe + +--- + +## ๐Ÿš€ Getting Started + +### Clone the repository + +```bash +git clone https://github.com/Yashyr190/debugpilot-ai.git +``` + +### Navigate into the project + +```bash +cd debugpilot-ai +``` + +### Install dependencies + +```bash +npm install +``` + +### Start development server + +```bash +npm run dev +``` + +Open: + +```text +http://localhost:3000 +``` + +--- + +## ๐Ÿ” Environment Variables + +Optional: + +```env +OPENAI_API_KEY=your_api_key +``` + +The application can also run completely without external AI APIs using the built-in local heuristic analysis mode. + +--- + +## ๐ŸŒฑ Future Improvements + +Potential future enhancements include: + +* GitHub repository context analysis +* CI/CD log ingestion +* Slack integration +* AI-generated pull request fixes +* Repository-aware debugging +* Multi-agent debugging workflows +* Real-time production incident monitoring + +--- + +## ๐ŸŽฏ Why This Project + +The focus of DebugPilot AI was not building a massive platform, but designing a focused developer workflow that feels practical, realistic, and immediately useful. + +The project emphasizes: + +* workflow design +* engineering usability +* structured outputs +* practical debugging +* AI-native product thinking + +--- + +## ๐Ÿ“น Demo Video + +(https://drive.google.com/file/d/1B6vfclYXRypmdNDDFDD16DtDiTtuYRL2/view?usp=sharing) + +--- + +## ๐Ÿ™Œ Acknowledgements + +Built as part of the Lamatic AgentKit Challenge. + +--- + +## ๐Ÿ“„ License + +MIT License From ad8fa9679c7f88bbdb4ee9d1c74e5c29f7bf8280 Mon Sep 17 00:00:00 2001 From: Yashyr190 Date: Fri, 15 May 2026 21:03:34 +0530 Subject: [PATCH 2/9] fix: align DebugPilot AI with AgentKit repository structure --- kits/debugpilot-ai/.gitignore | 4 ++++ .../debugpilot-ai/README.md | 1 + kits/debugpilot-ai/agent.md | 14 ++++++++++++ kits/debugpilot-ai/apps/.env.example | 3 +++ kits/debugpilot-ai/apps/app/page.tsx | 3 +++ kits/debugpilot-ai/apps/package.json | 12 ++++++++++ kits/debugpilot-ai/apps/tsconfig.json | 5 +++++ kits/debugpilot-ai/constitutions/default.md | 7 ++++++ kits/debugpilot-ai/flows/debugpilot-flow.ts | 4 ++++ kits/debugpilot-ai/lamatic.config.ts | 22 +++++++++++++++++++ 10 files changed, 75 insertions(+) create mode 100644 kits/debugpilot-ai/.gitignore rename submissions/debugpilot-ai => kits/debugpilot-ai/README.md (99%) create mode 100644 kits/debugpilot-ai/agent.md create mode 100644 kits/debugpilot-ai/apps/.env.example create mode 100644 kits/debugpilot-ai/apps/app/page.tsx create mode 100644 kits/debugpilot-ai/apps/package.json create mode 100644 kits/debugpilot-ai/apps/tsconfig.json create mode 100644 kits/debugpilot-ai/constitutions/default.md create mode 100644 kits/debugpilot-ai/flows/debugpilot-flow.ts create mode 100644 kits/debugpilot-ai/lamatic.config.ts diff --git a/kits/debugpilot-ai/.gitignore b/kits/debugpilot-ai/.gitignore new file mode 100644 index 00000000..cb6d243c --- /dev/null +++ b/kits/debugpilot-ai/.gitignore @@ -0,0 +1,4 @@ +node_modules +.next +.env.local +dist \ No newline at end of file diff --git a/submissions/debugpilot-ai b/kits/debugpilot-ai/README.md similarity index 99% rename from submissions/debugpilot-ai rename to kits/debugpilot-ai/README.md index b64b4f43..fa7c99dc 100644 --- a/submissions/debugpilot-ai +++ b/kits/debugpilot-ai/README.md @@ -299,3 +299,4 @@ Built as part of the Lamatic AgentKit Challenge. ## ๐Ÿ“„ License MIT License + diff --git a/kits/debugpilot-ai/agent.md b/kits/debugpilot-ai/agent.md new file mode 100644 index 00000000..4ffd2ee9 --- /dev/null +++ b/kits/debugpilot-ai/agent.md @@ -0,0 +1,14 @@ +# DebugPilot AI + +DebugPilot AI is an AI-powered debugging assistant designed for developers working with modern full-stack applications. + +It analyzes runtime errors, logs, deployment failures, and stack traces to provide structured debugging reports and actionable engineering insights. + +## Capabilities + +- Root cause analysis +- Runtime error interpretation +- Stack trace summarization +- Deployment issue diagnosis +- API failure analysis +- Suggested engineering fixes \ No newline at end of file diff --git a/kits/debugpilot-ai/apps/.env.example b/kits/debugpilot-ai/apps/.env.example new file mode 100644 index 00000000..09d93431 --- /dev/null +++ b/kits/debugpilot-ai/apps/.env.example @@ -0,0 +1,3 @@ +LAMATIC_API_KEY= +LAMATIC_PROJECT_ID= +DEBUGPILOT_FLOW_ID= \ No newline at end of file diff --git a/kits/debugpilot-ai/apps/app/page.tsx b/kits/debugpilot-ai/apps/app/page.tsx new file mode 100644 index 00000000..15f66032 --- /dev/null +++ b/kits/debugpilot-ai/apps/app/page.tsx @@ -0,0 +1,3 @@ +export default function Page() { + return
DebugPilot AI
; +} \ No newline at end of file diff --git a/kits/debugpilot-ai/apps/package.json b/kits/debugpilot-ai/apps/package.json new file mode 100644 index 00000000..9b2e3c8d --- /dev/null +++ b/kits/debugpilot-ai/apps/package.json @@ -0,0 +1,12 @@ +{ + "name": "debugpilot-ai", + "private": true, + "scripts": { + "dev": "next dev" + }, + "dependencies": { + "next": "14.2.5", + "react": "^18.2.0", + "react-dom": "^18.2.0" + } +} \ No newline at end of file diff --git a/kits/debugpilot-ai/apps/tsconfig.json b/kits/debugpilot-ai/apps/tsconfig.json new file mode 100644 index 00000000..e63490b7 --- /dev/null +++ b/kits/debugpilot-ai/apps/tsconfig.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "jsx": "preserve" + } +} \ No newline at end of file diff --git a/kits/debugpilot-ai/constitutions/default.md b/kits/debugpilot-ai/constitutions/default.md new file mode 100644 index 00000000..bc8f8443 --- /dev/null +++ b/kits/debugpilot-ai/constitutions/default.md @@ -0,0 +1,7 @@ +# DebugPilot AI Constitution + +- Prioritize actionable debugging insights +- Avoid hallucinating fixes +- Explain probable root causes clearly +- Focus on production-safe recommendations +- Prefer deterministic debugging approaches \ No newline at end of file diff --git a/kits/debugpilot-ai/flows/debugpilot-flow.ts b/kits/debugpilot-ai/flows/debugpilot-flow.ts new file mode 100644 index 00000000..d37f9be2 --- /dev/null +++ b/kits/debugpilot-ai/flows/debugpilot-flow.ts @@ -0,0 +1,4 @@ +export const debugpilotFlow = { + id: "debugpilot-flow", + name: "DebugPilot Root Cause Analysis Flow" +}; \ No newline at end of file diff --git a/kits/debugpilot-ai/lamatic.config.ts b/kits/debugpilot-ai/lamatic.config.ts new file mode 100644 index 00000000..583b953f --- /dev/null +++ b/kits/debugpilot-ai/lamatic.config.ts @@ -0,0 +1,22 @@ +export default { + name: "DebugPilot AI", + description: "AI-powered debugging workflow for root cause analysis.", + version: "1.0.0", + type: "kit" as const, + author: { + name: "Yash Ramnani", + email: "yashyr190@gmail.com" + }, + tags: ["debugging", "ai", "developer-tools"], + steps: [ + { + id: "debugpilot-flow", + type: "mandatory" as const, + envKey: "DEBUGPILOT_FLOW_ID" + } + ], + links: { + demo: "https://debugpilot-ai.vercel.app", + github: "https://github.com/Lamatic/AgentKit/tree/main/kits/debugpilot-ai" + } +}; \ No newline at end of file From 51b47482acfadbc6b41336e78c3ab2e647f09290 Mon Sep 17 00:00:00 2001 From: Yashyr190 Date: Fri, 15 May 2026 21:14:49 +0530 Subject: [PATCH 3/9] chore: finalize DebugPilot AI kit structure --- kits/debugpilot-ai/apps/next.config.mjs | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 kits/debugpilot-ai/apps/next.config.mjs diff --git a/kits/debugpilot-ai/apps/next.config.mjs b/kits/debugpilot-ai/apps/next.config.mjs new file mode 100644 index 00000000..a58e2393 --- /dev/null +++ b/kits/debugpilot-ai/apps/next.config.mjs @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +export default nextConfig; \ No newline at end of file From e69ceccef6368f6f07b06262034c471dc661c437 Mon Sep 17 00:00:00 2001 From: Yashyr190 Date: Fri, 15 May 2026 21:37:42 +0530 Subject: [PATCH 4/9] docs: resolve CodeRabbit review warnings --- kits/debugpilot-ai/.gitignore | 1 + kits/debugpilot-ai/README.md | 3 +++ kits/debugpilot-ai/agent.md | 2 +- kits/debugpilot-ai/apps/app/page.tsx | 3 +++ kits/debugpilot-ai/apps/package.json | 4 ++-- kits/debugpilot-ai/constitutions/default.md | 2 +- kits/debugpilot-ai/flows/debugpilot-flow.ts | 3 +++ kits/debugpilot-ai/lamatic.config.ts | 3 +++ 8 files changed, 17 insertions(+), 4 deletions(-) diff --git a/kits/debugpilot-ai/.gitignore b/kits/debugpilot-ai/.gitignore index cb6d243c..26916d32 100644 --- a/kits/debugpilot-ai/.gitignore +++ b/kits/debugpilot-ai/.gitignore @@ -1,4 +1,5 @@ node_modules .next +.env .env.local dist \ No newline at end of file diff --git a/kits/debugpilot-ai/README.md b/kits/debugpilot-ai/README.md index fa7c99dc..383790dc 100644 --- a/kits/debugpilot-ai/README.md +++ b/kits/debugpilot-ai/README.md @@ -160,13 +160,16 @@ DebugPilot AI can analyze: ## ๐Ÿ–ผ๏ธ Screenshots ### Landing Interface + Screenshot 2026-05-12 at 6 44 22โ€ฏPM ### Structured Debugging Report + Screenshot 2026-05-12 at 6 42 01โ€ฏPM Screenshot 2026-05-12 at 6 43 03โ€ฏPM ### Deployment Failure Analysis + Screenshot 2026-05-12 at 6 45 46โ€ฏPM --- diff --git a/kits/debugpilot-ai/agent.md b/kits/debugpilot-ai/agent.md index 4ffd2ee9..de6c6232 100644 --- a/kits/debugpilot-ai/agent.md +++ b/kits/debugpilot-ai/agent.md @@ -11,4 +11,4 @@ It analyzes runtime errors, logs, deployment failures, and stack traces to provi - Stack trace summarization - Deployment issue diagnosis - API failure analysis -- Suggested engineering fixes \ No newline at end of file +- Suggested engineering fixes diff --git a/kits/debugpilot-ai/apps/app/page.tsx b/kits/debugpilot-ai/apps/app/page.tsx index 15f66032..fba2db07 100644 --- a/kits/debugpilot-ai/apps/app/page.tsx +++ b/kits/debugpilot-ai/apps/app/page.tsx @@ -1,3 +1,6 @@ +/** + * Minimal landing page for DebugPilot AI. + */ export default function Page() { return
DebugPilot AI
; } \ No newline at end of file diff --git a/kits/debugpilot-ai/apps/package.json b/kits/debugpilot-ai/apps/package.json index 9b2e3c8d..2250baf9 100644 --- a/kits/debugpilot-ai/apps/package.json +++ b/kits/debugpilot-ai/apps/package.json @@ -6,7 +6,7 @@ }, "dependencies": { "next": "14.2.5", - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "18.2.0", + "react-dom": "18.2.0" } } \ No newline at end of file diff --git a/kits/debugpilot-ai/constitutions/default.md b/kits/debugpilot-ai/constitutions/default.md index bc8f8443..cf4392b5 100644 --- a/kits/debugpilot-ai/constitutions/default.md +++ b/kits/debugpilot-ai/constitutions/default.md @@ -4,4 +4,4 @@ - Avoid hallucinating fixes - Explain probable root causes clearly - Focus on production-safe recommendations -- Prefer deterministic debugging approaches \ No newline at end of file +- Prefer deterministic debugging approaches diff --git a/kits/debugpilot-ai/flows/debugpilot-flow.ts b/kits/debugpilot-ai/flows/debugpilot-flow.ts index d37f9be2..75fa3f3e 100644 --- a/kits/debugpilot-ai/flows/debugpilot-flow.ts +++ b/kits/debugpilot-ai/flows/debugpilot-flow.ts @@ -1,3 +1,6 @@ +/** + * Primary debugging workflow configuration. + */ export const debugpilotFlow = { id: "debugpilot-flow", name: "DebugPilot Root Cause Analysis Flow" diff --git a/kits/debugpilot-ai/lamatic.config.ts b/kits/debugpilot-ai/lamatic.config.ts index 583b953f..ed195560 100644 --- a/kits/debugpilot-ai/lamatic.config.ts +++ b/kits/debugpilot-ai/lamatic.config.ts @@ -1,3 +1,6 @@ +/** + * Configuration metadata for the DebugPilot AI kit. + */ export default { name: "DebugPilot AI", description: "AI-powered debugging workflow for root cause analysis.", From fd97f7224a6b4a1da76f8eb3718156fe9ae0697a Mon Sep 17 00:00:00 2001 From: Yashyr190 Date: Fri, 15 May 2026 22:08:47 +0530 Subject: [PATCH 5/9] docs: improve docstring coverage for workflow exports --- kits/debugpilot-ai/apps/app/page.tsx | 2 +- kits/debugpilot-ai/flows/debugpilot-flow.ts | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/kits/debugpilot-ai/apps/app/page.tsx b/kits/debugpilot-ai/apps/app/page.tsx index fba2db07..1243776d 100644 --- a/kits/debugpilot-ai/apps/app/page.tsx +++ b/kits/debugpilot-ai/apps/app/page.tsx @@ -2,5 +2,5 @@ * Minimal landing page for DebugPilot AI. */ export default function Page() { - return
DebugPilot AI
; + return
DebugPilot AI
; } \ No newline at end of file diff --git a/kits/debugpilot-ai/flows/debugpilot-flow.ts b/kits/debugpilot-ai/flows/debugpilot-flow.ts index 75fa3f3e..3fc55470 100644 --- a/kits/debugpilot-ai/flows/debugpilot-flow.ts +++ b/kits/debugpilot-ai/flows/debugpilot-flow.ts @@ -1,7 +1,9 @@ /** - * Primary debugging workflow configuration. + * Primary debugging workflow configuration for DebugPilot AI. */ -export const debugpilotFlow = { - id: "debugpilot-flow", - name: "DebugPilot Root Cause Analysis Flow" -}; \ No newline at end of file +export function getDebugPilotFlow() { + return { + id: "debugpilot-flow", + name: "DebugPilot Root Cause Analysis Flow" + }; +} \ No newline at end of file From 7dd5d043d5d0f7979ceb617faee70b272e654abd Mon Sep 17 00:00:00 2001 From: Yashyr190 Date: Sat, 16 May 2026 01:20:23 +0530 Subject: [PATCH 6/9] chore: finalize app scripts and TypeScript tooling --- kits/debugpilot-ai/apps/package.json | 10 +++++++++- kits/debugpilot-ai/flows/debugpilot-flow.ts | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/kits/debugpilot-ai/apps/package.json b/kits/debugpilot-ai/apps/package.json index 2250baf9..58933bec 100644 --- a/kits/debugpilot-ai/apps/package.json +++ b/kits/debugpilot-ai/apps/package.json @@ -2,11 +2,19 @@ "name": "debugpilot-ai", "private": true, "scripts": { - "dev": "next dev" + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint" }, "dependencies": { "next": "14.2.5", "react": "18.2.0", "react-dom": "18.2.0" + }, + "devDependencies": { + "typescript": "5.4.5", + "@types/react": "18.2.66", + "@types/node": "20.12.7" } } \ No newline at end of file diff --git a/kits/debugpilot-ai/flows/debugpilot-flow.ts b/kits/debugpilot-ai/flows/debugpilot-flow.ts index 3fc55470..8dd0d004 100644 --- a/kits/debugpilot-ai/flows/debugpilot-flow.ts +++ b/kits/debugpilot-ai/flows/debugpilot-flow.ts @@ -6,4 +6,4 @@ export function getDebugPilotFlow() { id: "debugpilot-flow", name: "DebugPilot Root Cause Analysis Flow" }; -} \ No newline at end of file +} From fba3dba25bcc0c2b58acd9ec586f5ca464f15499 Mon Sep 17 00:00:00 2001 From: Yashyr190 Date: Sat, 16 May 2026 01:26:50 +0530 Subject: [PATCH 7/9] chore: finalize flow scaffold and app tooling --- kits/debugpilot-ai/flows/debugpilot-flow.ts | 32 +++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/kits/debugpilot-ai/flows/debugpilot-flow.ts b/kits/debugpilot-ai/flows/debugpilot-flow.ts index 8dd0d004..8a5e68af 100644 --- a/kits/debugpilot-ai/flows/debugpilot-flow.ts +++ b/kits/debugpilot-ai/flows/debugpilot-flow.ts @@ -3,7 +3,35 @@ */ export function getDebugPilotFlow() { return { - id: "debugpilot-flow", - name: "DebugPilot Root Cause Analysis Flow" + meta: { + id: "debugpilot-flow", + name: "DebugPilot Root Cause Analysis Flow" + }, + inputs: [], + references: { + output: "debug-analysis" + }, + nodes: [ + { + nodeId: "triggerNode", + nodeType: "graphqlNode", + nodeName: "Debug Trigger", + values: {}, + needs: [] + }, + { + nodeId: "debugLLMNode", + nodeType: "LLMNode", + nodeName: "Debug Analysis", + values: {}, + needs: ["triggerNode"] + } + ], + edges: [ + { + source: "triggerNode", + target: "debugLLMNode" + } + ] }; } From eb06af8be74d2e14e57499a625a6eb9bf0dc2f47 Mon Sep 17 00:00:00 2001 From: Yashyr190 Date: Sat, 16 May 2026 01:40:46 +0530 Subject: [PATCH 8/9] chore: improve Lamatic flow scaffold structure --- kits/debugpilot-ai/flows/debugpilot-flow.ts | 82 ++++++++++++--------- 1 file changed, 48 insertions(+), 34 deletions(-) diff --git a/kits/debugpilot-ai/flows/debugpilot-flow.ts b/kits/debugpilot-ai/flows/debugpilot-flow.ts index 8a5e68af..5175abf9 100644 --- a/kits/debugpilot-ai/flows/debugpilot-flow.ts +++ b/kits/debugpilot-ai/flows/debugpilot-flow.ts @@ -1,37 +1,51 @@ /** - * Primary debugging workflow configuration for DebugPilot AI. - */ -export function getDebugPilotFlow() { + +* Primary debugging workflow configuration for DebugPilot AI. + */ + export function getDebugPilotFlow() { return { - meta: { - id: "debugpilot-flow", - name: "DebugPilot Root Cause Analysis Flow" - }, - inputs: [], - references: { - output: "debug-analysis" - }, - nodes: [ - { - nodeId: "triggerNode", - nodeType: "graphqlNode", - nodeName: "Debug Trigger", - values: {}, - needs: [] - }, - { - nodeId: "debugLLMNode", - nodeType: "LLMNode", - nodeName: "Debug Analysis", - values: {}, - needs: ["triggerNode"] - } - ], - edges: [ - { - source: "triggerNode", - target: "debugLLMNode" - } - ] + meta: { + id: "debugpilot-flow", + name: "DebugPilot Root Cause Analysis Flow", + description: "Minimal debugging workflow scaffold for DebugPilot AI.", + version: "1.0.0" + }, + + inputs: { + error: { + type: "string", + required: true + } + }, + + references: { + output: "debug-analysis" + }, + + nodes: [ + { + nodeId: "triggerNode", + nodeType: "graphqlNode", + nodeName: "Debug Trigger", + values: {}, + needs: [] + }, + { + nodeId: "debugLLMNode", + nodeType: "LLMNode", + nodeName: "Debug Analysis", + values: { + prompt: "Analyze the provided debugging issue." + }, + needs: ["triggerNode"] + } + ], + + edges: [ + { + source: "triggerNode", + target: "debugLLMNode" + } + ] }; -} + } From 3448c9069641d9002af55d77153d06ce4853def5 Mon Sep 17 00:00:00 2001 From: Yashyr190 Date: Fri, 22 May 2026 16:30:52 +0530 Subject: [PATCH 9/9] fix: improve DebugPilot flow configuration and runtime safety --- kits/debugpilot-ai/flows/debugpilot-flow.ts | 104 +++++++++++--------- 1 file changed, 60 insertions(+), 44 deletions(-) diff --git a/kits/debugpilot-ai/flows/debugpilot-flow.ts b/kits/debugpilot-ai/flows/debugpilot-flow.ts index 5175abf9..6b484f88 100644 --- a/kits/debugpilot-ai/flows/debugpilot-flow.ts +++ b/kits/debugpilot-ai/flows/debugpilot-flow.ts @@ -1,51 +1,67 @@ /** - -* Primary debugging workflow configuration for DebugPilot AI. - */ - export function getDebugPilotFlow() { + * Primary debugging workflow configuration for DebugPilot AI. + */ +export function getDebugPilotFlow(): Record { return { - meta: { - id: "debugpilot-flow", - name: "DebugPilot Root Cause Analysis Flow", - description: "Minimal debugging workflow scaffold for DebugPilot AI.", - version: "1.0.0" - }, + meta: { + id: "debugpilot-flow", + name: "DebugPilot Root Cause Analysis Flow", + description: "Minimal debugging workflow scaffold for DebugPilot AI.", + version: "1.0.0" + }, + + inputs: { + error: { + type: "string", + required: true + } + }, - inputs: { - error: { - type: "string", - required: true - } - }, + references: { + output: "debugLLMNode" + }, - references: { - output: "debug-analysis" - }, + nodes: [ + { + nodeId: "triggerNode", + nodeType: "graphqlNode", + nodeName: "Debug Trigger", + values: { + responseType: "realtime", + schema: { + type: "object", + properties: { + error: { + type: "string" + } + }, + required: ["error"] + } + }, + needs: [] + }, - nodes: [ - { - nodeId: "triggerNode", - nodeType: "graphqlNode", - nodeName: "Debug Trigger", - values: {}, - needs: [] - }, - { - nodeId: "debugLLMNode", - nodeType: "LLMNode", - nodeName: "Debug Analysis", - values: { - prompt: "Analyze the provided debugging issue." - }, - needs: ["triggerNode"] - } - ], + { + nodeId: "debugLLMNode", + nodeType: "llmNode", + nodeName: "Debug Analysis", + values: { + model: "gpt-4", + temperature: 0.3, + topP: 0.9, + maxTokens: 1200, + prompt: + "Analyze the provided debugging issue and produce: Summary, Root Cause Analysis, Debugging Steps, Recommended Fixes, Reliability Risks, and Prevention Strategy." + }, + needs: ["triggerNode"] + } + ], - edges: [ - { - source: "triggerNode", - target: "debugLLMNode" - } - ] + edges: [ + { + source: "triggerNode", + target: "debugLLMNode" + } + ] }; - } +} \ No newline at end of file