-
Notifications
You must be signed in to change notification settings - Fork 5.3k
chore: 1.0.19 #5429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: 1.0.19 #5429
Conversation
- Fixed CLI update to use global installation command (bun add -g) - Modified update logic to skip package updates when not in a project directory - Added test to verify no files are created in empty directories - Shows clear error message if bun is not installed - Ensures 'elizaos update' only updates global CLI when run outside projects Fixes issue where running 'elizaos update' in non-project directories would create package.json, node_modules, etc.
- Changed path.join() to join() to match the import statement - Fixes ReferenceError in test execution
- Change directory before running test instead of using cwd option - Fix exit code check - runCliCommandSilently returns string not object - Ensure directory is restored after test - All update tests now pass locally
- Skip 'update succeeds outside a project' test in CI - Skip 'update command should not create files' test in CI - These tests attempt global CLI updates which aren't appropriate for CI - Tests will still run locally for development validation
…-non-project-dir fix: prevent CLI update from creating files in non-project directories
Remove explanatory comment about removed code check in socketio/index.ts. The code change is self-evident without the comment. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
fix: issue 5425 - removing check if sender name includes DM
- Add CommonJS shims for browser compatibility in Vite config - Configure proper polyfills for crypto, buffer, and Node.js globals - Update package versions: caniuse-lite, decimal.js, zod - Fix async operation in server initialization - Minor code formatting improvements
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Claude finished @wtfsayo's task —— View job PR Review: chore: 1.0.19
🔍 Code Review SummaryThis PR includes several quality improvements and bug fixes across CLI update functionality and SocketIO handling. Overall, the changes demonstrate good engineering practices with improved error handling, better test coverage, and more precise logic. 📋 Code Quality & Best Practices✅ Strengths:
|
Claude finished @wtfsayo's task —— View job PR Review - Release 1.0.19Review Tasks:
🎯 Overall AssessmentThis is a well-structured release PR with significant improvements to the CLI update functionality and comprehensive test coverage. The code follows TypeScript best practices and includes proper error handling throughout. ✅ Code Quality & Best PracticesStrengths:
Areas for Improvement:
🔍 Potential IssuesMinor Issues:
Edge Cases Handled Well:
🛡️ Security AssessmentStrong Security Practices:
No security concerns identified. ⚡ Performance ConsiderationsEfficient Patterns:
Minor Optimization:
🧪 Test CoverageExcellent Test Coverage:
Test Quality:
📋 Specific Recommendations
🏆 Verdict✅ APPROVE - This is a solid release PR with:
The changes enhance the CLI update functionality significantly while maintaining code quality standards. The comprehensive test suite provides confidence in the reliability of the update mechanisms. Ready for release pending any final integration tests. |
…ackage-updates fix: improve browser compatibility and update dependencies
Claude finished @wtfsayo's task —— View job PR Review: chore: 1.0.19
🔍 Code Review SummaryThis PR includes several quality improvements and bug fixes across CLI update functionality and SocketIO handling. Overall, the changes demonstrate good engineering practices with improved error handling, better test coverage, and more precise logic. 📋 Code Quality & Best Practices✅ Strengths:
|
- Set protocolImports to false to prevent esbuild directory read errors - Add crypto-browserify override to ensure proper browser polyfills - Align vite.config.cypress.ts with main vite.config.ts polyfill settings - Add process/browser alias to fix readable-stream import issues This fixes the "Error reading node-stdlib-browser/esm/proxy/process: is a directory" error that was preventing Cypress component tests from running in CI. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
Claude finished @wtfsayo's task —— View job PR Review: chore: 1.0.19
🔍 Code Review SummaryThis PR includes several quality improvements and bug fixes across CLI update functionality and SocketIO handling. Overall, the changes demonstrate good engineering practices with improved error handling, better test coverage, and more precise logic. 📋 Code Quality & Best Practices✅ Strengths:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR prepares the 1.0.19 release by updating runtime checks, improving build configurations, refining test execution conditions, and adjusting the CLI update flow.
- Simplify DM channel detection and drop unnecessary
await
- Enhance Vite configs with CommonJS shims and refined polyfills
- Introduce CI skips in update tests and refactor package vs CLI update logic; switch CLI installer to Bun
Reviewed Changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
packages/server/src/socketio/index.ts | Remove senderName -based DM detection |
packages/server/src/index.ts | Drop redundant await on synchronous resolvePgliteDir |
packages/client/vite.config.ts | Add injectCommonJSShims plugin and explicit polyfill aliases |
packages/client/vite.config.cypress.ts | Tighten polyfill scopes and add process.browser definition |
packages/cli/tests/commands/update.test.ts | Skip certain tests in CI environments; add fresh non-project test |
packages/cli/src/commands/update/index.ts | Precompute directory context; guard package updates to projects |
packages/cli/src/commands/update/actions/cli-update.ts | Replace NPM installer with Bun via execa and better error hints |
Comments suppressed due to low confidence (3)
packages/server/src/socketio/index.ts:282
- Removing the
senderName?.includes('DM')
check may cause DMs to be misclassified when metadata is missing. Consider preserving a fallback or documenting why the senderName-based heuristic is no longer needed.
const isDmChannel = metadata?.isDm || metadata?.channelType === ChannelType.DM;
packages/cli/tests/commands/update.test.ts:154
it.skipIf
is not a standard Mocha/Jest API and may throwTypeError: it.skipIf is not a function
. Use a supported conditional skip pattern (e.g.,if (condition) { it.skip(...) } else { it(...) }
).
it.skipIf(process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true')(
packages/client/vite.config.cypress.ts:84
- Many modules were removed from the
include
array. Verify that essential polyfills for your tested codebase (e.g., crypto, streams) are still present and that this reduction doesn't break Cypress tests.
'util',
Prepare for release 1.0.19