Skip to content

Modularize WordPress plugin abilities#520

Merged
chubes4 merged 1 commit into
mainfrom
refactor/abilities-modules
Jun 3, 2026
Merged

Modularize WordPress plugin abilities#520
chubes4 merged 1 commit into
mainfrom
refactor/abilities-modules

Conversation

@chubes4
Copy link
Copy Markdown
Collaborator

@chubes4 chubes4 commented Jun 3, 2026

Summary

  • Split the WordPress plugin abilities monolith into focused internal traits for schemas, execution, permissions, inheritance, browser artifacts, browser runtime, browser blueprint, browser runner, and utilities.
  • Kept the WP_Codebox_Abilities public class and callback surface intact so existing ability and WP-CLI callers continue to resolve the same methods.
  • Preserved behavior with a mechanical decomposition and verified the refactored method set matches the original branch implementation.

Verification

  • php -l across class-wp-codebox-abilities.php and all trait-wp-codebox-abilities-*.php files
  • npm run wordpress-plugin-smoke (OK (346 assertions))
  • git diff --check
  • Method-set comparison against HEAD before the split (137 methods preserved)

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (GPT-5.5)
  • Used for: Mechanical decomposition of the PHP abilities monolith into focused traits, plus targeted syntax/smoke verification. Chris remains responsible for review and merge decisions.

@chubes4 chubes4 merged commit 1878e94 into main Jun 3, 2026
@chubes4 chubes4 deleted the refactor/abilities-modules branch June 4, 2026 21:00
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.

1 participant