Repository navigation
Fix: Add PNPM Workspace scan fallback for better reliability - #9
Conversation
📝 WalkthroughWalkthroughThe PR enhances dependency analysis by introducing pnpm multi-depth fallback retry logic, improved error tracking with separate failure collections, expanded package manager support with enhanced progress reporting, and updated CLI behavior to conditionally produce outputs. Documentation is updated with getting-started examples and premium offering information. Changes
Sequence Diagram(s)sequenceDiagram
participant CLI as CLI Handler
participant Runner as npmLs Runner
participant PnpmFallback as Pnpm Fallback
participant PnpmTool as Pnpm Tool
CLI->>Runner: runNpmLs(path, dir, "pnpm", {contextLabel, onProgress})
Runner->>PnpmFallback: runPnpmLsWithFallback()
loop Depth attempts: [Infinity, 8, 4, 2, 1]
PnpmFallback->>PnpmTool: pnpm ls --depth=N --json
alt Success
PnpmTool-->>PnpmFallback: JSON output
PnpmFallback->>PnpmFallback: parseJsonOutput()
PnpmFallback->>Runner: return parsed tree
else Parse failure
PnpmFallback->>PnpmFallback: Track attempt metadata<br/>(depth, exit code, OOM status)
PnpmFallback->>PnpmFallback: Continue to next depth
end
end
PnpmFallback->>PnpmFallback: buildLsFailureMessage()
PnpmFallback-->>Runner: Error metadata or parsed result
Runner->>CLI: aggregated dependency data
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
Summary by CodeRabbit
Release Notes
Documentation
Bug Fixes