Skip to content

Refactor/debug engine optimization#25

Merged
Sidhant0707 merged 24 commits into
mainfrom
refactor/debug-engine-optimization
May 30, 2026
Merged

Refactor/debug engine optimization#25
Sidhant0707 merged 24 commits into
mainfrom
refactor/debug-engine-optimization

Conversation

@Sidhant0707
Copy link
Copy Markdown
Owner

No description provided.

- Implement circular dependency detection on adjacency list

- Add percentile-based file complexity heatmap to graph nodes

- Introduce orphan file detection for dead code identification

- Update node state interfaces and UI legends
…nents

- Extract state management, LLM streaming, and graph traversal into custom hooks

- Modularize UI into dedicated layout components (Visualizer, Doctor, Risk Radar)

- Isolate static configurations and types into constants.ts

- Strip page.tsx down to act strictly as a layout orchestrator
- Extract changed files from existing PR analysis route

- Add 'pr-blast' highlight mode to React Flow ArchitectureMap

- Implement automatic tab switching and state lifting for seamless UX
…ive dashboard

- **Algorithms**: Shipped zero-latency, pure math static analysis features including Articulation Points (Bridge Detection), Dead Code Reachability (BFS), Dependency PageRank, and Robert C. Martin's Instability Matrix (Ca/Ce coupling).
- **Architecture Insights UI**: Built the new `ArchInsightsPanel` and `InfoTooltip` to visualize critical single-points-of-failure, unreachable code chunks, and codebase stability metrics directly over the React Flow canvas.
- **Pipeline Integration**: Upgraded `ast-pipeline.ts` and `analyze.ts` types to support the new graph theory outputs without triggering external API calls.
- **Command Center Dashboard**: Extracted flat dashboard list into a client-side `DashboardGrid` component. Added interactive grouping by repository, analysis count badges, and chronological sorting with formatted timestamps.
- Add checkout API route (/api/checkout)
- Add webhook handler (/api/webhooks/lemonsqueezy)
- Update usage.ts to support pro tier (100/day limit)
- Update analyze route to use ratelimitPro for pro users
- Update chat route to bypass limit for pro users
- Update analyze-pr route to bypass limit for pro users
- Add ratelimitPro to ratelimit.ts
- Supabase profiles table created with plan_tier column
- Add handleUpgrade function calling /api/checkout
- Update tier names: Student→Intern, Architect→Specialist, Surgical→Chief Surgeon
- Specialist tier now live with ₹99/mo and amber styling
- Add loading state and login redirect for unauthenticated users
- Remove Coming Soon badge from Specialist tier
- Free tier: context 20k -> 6k chars, max_tokens 1024 -> 512
- Pro tier: context 14k chars, max_tokens 1024, deepseek-r1 model
- Reduces token usage by ~70% for free tier chat
Amber color tokens felt out of place against the dark technical aesthetic.
Replaced all amber instances in RiskDashboard with the existing
slate/white/transparent vocabulary used throughout the component.

- Pro banner: amber border/bg → white/5 glass surface
- Upgrade button: amber fills → slate-300/white hover
- Locked Auto-Patch button: amber tint → desaturated slate-500
- FileCode icon: amber-400 → slate-300 with white hover
- Traffic light middle dot: amber-500 → slate-500
Amber color tokens felt out of place against the dark technical aesthetic.
Replaced all amber instances in RiskDashboard with the existing
slate/white/transparent vocabulary used throughout the component.

- Pro banner: amber border/bg → white/5 glass surface
- Upgrade button: amber fills → slate-300/white hover
- Locked Auto-Patch button: amber tint → desaturated slate-500
- FileCode icon: amber-400 → slate-300 with white hover
- Traffic light middle dot: amber-500 → slate-500
- fix: dynamic analysis_version query instead of hardcoded v3
- fix: separate visited sets for upstream/downstream BFS traversal
- fix: node ID collision in mermaid sanitizer (path-aware)
- fix: opacity replaced with stroke-width in mermaid styles
- fix: JSON.parse wrapped in try/catch in cache and groq-debug
- fix: requiresRuntimeCheck narrowed to specific runtime patterns
- fix: at async removed from framework noise filter in stack-parser
- fix: findMatchingFile disambiguates same-name files by path score
- perf: parallel file fetching via Promise.allSettled
- perf: reverse graph memoized via WeakMap
- perf: BFS queue uses head pointer instead of array.shift()
- refactor: rename gemini-debug to groq-debug with backward alias
- refactor: confidence removed from AI prompt, heuristics only
- remove: dead code generateErrorGraph and extractAllCrashNodes
- add: cache invalidation via invalidateRepoCache()
- add: server-side rate limiting with 429 response
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 30, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
codeautopsy Ready Ready Preview, Comment May 30, 2026 6:25pm

@github-actions
Copy link
Copy Markdown

🧠 Architecture Analyzed by CodeAutopsy

Latest commit scanned: a0b35d4

View Architecture Graph

@Sidhant0707 Sidhant0707 merged commit 90dabbe into main May 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant