Feat/v2 enhancements#34
Conversation
Autopilot-Commit: true Autopilot-Version: 2.1.1 Autopilot-User: 9b06151f-e74d-41b9-af57-d1d258601e9e Autopilot-Signature: 36a6f5c0ac674cf38f404e600eba2e1e6473cdbf015d5ef971d10e3aaef677e3
…w/autopilot-cli into feat/v2-enhancements
Add automatic leaderboard synchronization after successful push events. The syncLeaderboard function is now exported from leaderboard.js and called in the watcher's push completion handler to ensure real-time leaderboard updates. Also update favicon from .ico to .svg for better scalability and modern browser support.
- Add proper fetch polyfill for Node versions without global fetch - Implement request timeout using AbortController to prevent hanging requests - Improve error detection for rate limits and invalid keys with better string matching - Enhance error response parsing to handle non-JSON error responses safely - Fix duplicate fetch call and ensure consistent API endpoint usage
- Add proper fetch polyfill for Node versions without global fetch - Implement request timeout using AbortController to prevent hanging requests - Improve error detection for rate limits and invalid keys with better string matching - Enhance error response parsing to handle non-JSON error responses safely - Fix duplicate fetch call and ensure consistent API endpoint usage - Clean up markdown stripping from AI responses more reliably - Update validation function to use timeout and better error reporting
Update the next-mdx-remote dependency to the latest major version. The package-lock.json changes reflect the update and its transitive dependency adjustments. The search index is also updated to include new changelog entries.
Add blockJS and blockDangerousJS options to MDX rendering configuration to prevent execution of potentially harmful JavaScript in documentation content.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughVersion 2.2.0 release adds automatic leaderboard synchronization, durable backend storage, and events API while enhancing AI provider resilience with timeouts and error handling. Updates favicon from .ico to .svg, enables MDX rendering features, bumps next-mdx-remote dependency, exports leaderboard sync function, and integrates leaderboard sync into watcher post-push flow. Changes
Sequence Diagram(s)sequenceDiagram
participant Watcher as Watcher Process
participant Leaderboard as Leaderboard Command
participant API as AUTOPILOT_API_URL
Watcher->>Watcher: Detect push success or process files
rect rgba(100, 150, 200, 0.5)
Watcher->>Leaderboard: syncLeaderboard(apiUrl)
Leaderboard->>API: POST /sync request
alt API call succeeds
API-->>Leaderboard: 200 OK
Leaderboard-->>Watcher: Promise resolves
else API call fails
API-->>Leaderboard: Error response
Leaderboard-->>Watcher: Error caught & logged (debug)
end
end
Watcher->>Watcher: Continue watcher flow
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Please include a summary of the change and which issue is fixed.
Type of change
Checklist:
npm run verify)Summary by CodeRabbit
New Features
Improvements
Documentation
Tests