Validate and repair missing Rolldown native deps during webviewer scaffold#268
Validate and repair missing Rolldown native deps during webviewer scaffold#268eluce2 wants to merge 3 commits into
Conversation
🦋 Changeset detectedLatest commit: 375b748 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
@proofkit/better-auth
@proofkit/cli
create-proofkit
@proofkit/fmdapi
@proofkit/fmodata
@proofkit/typegen
@proofkit/webviewer
commit: |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughAdds webviewer+pnpm Vite validation (runs ChangesVite Native Dependency Validation
🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/cli/src/core/executeInitPlan.ts`:
- Line 44: The hardcoded POSIX-only repair string PNPM_ROLLDOWN_REPAIR_COMMAND
uses `rm -rf` which breaks on Windows; replace it with a platform-agnostic
recovery message or provide platform-specific commands: emit a human-readable
instruction like "Delete node_modules and pnpm-lock.yaml, then run: pnpm install
--force" or detect process.platform and offer `rm -rf node_modules
pnpm-lock.yaml && pnpm install --force` for POSIX and `rmdir /s /q node_modules
& del pnpm-lock.yaml & pnpm install --force` for Windows; update every
occurrence of the same repair string (including the other instances noted) so
all user-facing recovery instructions use the new cross-platform wording or
detection logic.
In `@packages/cli/tests/test-layer.ts`:
- Around line 352-363: The code currently checks "if (scriptedResult)" which
skips falsy queued entries (e.g. "", 0, false, null) and can wrongly fall back
to default behavior; change the existence check to "scriptedResult !==
undefined" (or "typeof scriptedResult !== 'undefined'") so the value popped from
options.processRuns?.[processCommand]?.shift() is always consumed even when
falsy, then keep the same branching that uses Effect.succeed when it's an object
with stdout/stderr and Effect.fail otherwise (references: variable
scriptedResult, options.processRuns, processCommand, Effect.succeed,
Effect.fail).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 0ccd713c-c878-46aa-832d-50af51adeeaa
📒 Files selected for processing (5)
.changeset/quiet-bikes-validate.md.github/workflows/release.ymlpackages/cli/src/core/executeInitPlan.tspackages/cli/tests/executor.test.tspackages/cli/tests/test-layer.ts
Summary
pnpm exec vite --versionafter installTesting
packages/cliexecutor tests passpnpm run cipasses whenPROOFKIT_MANIFEST_REVALIDATE_SECRETis set locallySummary by CodeRabbit
Bug Fixes
Tests
Chores
CI