[PR #4971] fix: improve code quality, type safety, and documentation #11190

Closed
opened 2026-02-16 18:15:59 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/4971

State: closed
Merged: No


Code Quality Improvements:

  • Replace any types with unknown in error handling (index.ts, processor.ts)
  • Fix type safety in provider.ts by using proper type assertions
  • Fix plugin hook typing to avoid @ts-expect-error
  • Fix fetch type compatibility in plugin/index.ts
  • Remove unused debug file (util/scrap.ts)
  • Replace console.log with UI.println in stats.ts for consistent output

Test Improvements:

  • Enable permission boundary test in patch.test.ts
  • Enable directory traversal test in bash.test.ts
  • Use polling pattern instead of arbitrary setTimeout for async tests

Documentation:

  • Redesigned README with better structure and formatting
  • Added feature highlights section
  • Added installation table for easier reference
  • Added agents comparison table
  • Added collapsible FAQ sections
  • Added configuration section
  • Improved community links with badges
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4971 **State:** closed **Merged:** No --- Code Quality Improvements: - Replace `any` types with `unknown` in error handling (index.ts, processor.ts) - Fix type safety in provider.ts by using proper type assertions - Fix plugin hook typing to avoid @ts-expect-error - Fix fetch type compatibility in plugin/index.ts - Remove unused debug file (util/scrap.ts) - Replace console.log with UI.println in stats.ts for consistent output Test Improvements: - Enable permission boundary test in patch.test.ts - Enable directory traversal test in bash.test.ts - Use polling pattern instead of arbitrary setTimeout for async tests Documentation: - Redesigned README with better structure and formatting - Added feature highlights section - Added installation table for easier reference - Added agents comparison table - Added collapsible FAQ sections - Added configuration section - Improved community links with badges
yindo added the pull-request label 2026-02-16 18:15:59 -05:00
yindo closed this issue 2026-02-16 18:15:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11190