Skip to content

v1.0.3 - Clean architecture and improved maintainability

Choose a tag to compare

@numman-ali numman-ali released this 02 Oct 12:58
· 56 commits to main since this release

πŸ—οΈ 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 logging
  • lib/request-transformer.mjs - Request body transformations
  • lib/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