v1.0.3 - Clean architecture and improved maintainability
ποΈ Code Architecture Improvements
Major Refactoring
- 50% code reduction in main file (512β256 lines)
- Modular design with focused, single-responsibility modules
- Clean separation of concerns across the codebase
New Modules
lib/logger.mjs- Centralized debug logginglib/request-transformer.mjs- Request body transformationslib/response-handler.mjs- SSE to JSON conversion
Code Quality
- Removed all debug console.logs
- Improved readability and maintainability
- Easier testing of individual components
- Better organized imports and dependencies
π Documentation Updates
- Updated project structure in README
- Added version pinning instructions
- Improved module overview with new files
ποΈ Cleanup
- Removed bundled
codex-instructions.md(fully migrated to GitHub fetching)
π§ Technical Details
All functionality remains identical - this is purely a refactoring release for better code organization and future maintainability. No breaking changes.
π¦ Installation
```bash
npm install [email protected]
```
Or in your `opencode.json`:
```json
{
"plugin": ["opencode-openai-codex-auth"]
}
```
π Package Stats
- Total files: 10
- Package size: 12.4 kB
- Unpacked size: 36.9 kB