Skip to content

Conversation

@thoroc
Copy link
Contributor

@thoroc thoroc commented Jan 31, 2026

Summary

Refactors warcraft plugin to use new opencode-notification and opencode-config packages instead of internal implementations.

Changes

  • Refactor to use opencode-notification package (PR feat(notification): Add opencode-notification utility package #22):

    • Update notification.ts to use shared utilities
    • Update notification-core.ts with standardized patterns
  • Refactor to use opencode-config package (PR feat(config): Add opencode-config utility package #23):

    • Update config/loader.ts to use opencode-config
    • Update config/package.ts with shared utilities
    • Add loader.coverage.test.ts for comprehensive testing
  • Update build configuration:

    • Update package.json with new dependencies
    • Update project.json with new targets
    • Update schema validator and test utilities

Dependencies

Blocks

  • None (final integration PR)

Testing

  • Tests pass: bunx nx test opencode-warcraft-notifications-plugin
  • Type-check passes: bunx nx type-check opencode-warcraft-notifications-plugin
  • Integration test: Plugin loads and uses notification/config correctly

Integration Demonstration

This PR demonstrates the new opencode-notification and opencode-config packages working in production by migrating the warcraft plugin to use them instead of internal implementations.

- Refactor to use opencode-notification package (PR2)
- Refactor to use opencode-config package (PR3)
- Update notification.ts and notification-core.ts to use shared utilities
- Refactor config/loader.ts and config/package.ts to use opencode-config
- Update package.json with new dependencies
- Update project.json with new targets
- Update test utilities and schema validator
- Final integration PR demonstrating new packages working together

This refactor demonstrates the new opencode-notification and opencode-config
packages working in production by migrating the warcraft plugin to use them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants