Skip to content

Make WP Codebox component adapters generic#806

Merged
chubes4 merged 2 commits into
mainfrom
fix/issue-768-generic-component-adapters
Jun 8, 2026
Merged

Make WP Codebox component adapters generic#806
chubes4 merged 2 commits into
mainfrom
fix/issue-768-generic-component-adapters

Conversation

@chubes4

@chubes4 chubes4 commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Removes built-in Homeboy-shaped parent request normalization from generic WP Codebox; callers must normalize external request shapes through wp_codebox_normalize_parent_task_request or pass the generic runner contract directly.
  • Replaces fixed component-name/path assumptions with caller-declared component_contracts and wp_codebox_component_contracts for host and browser runtimes.
  • Deletes legacy component path inputs and defaults, including agents_api_path, data_machine_path, data_machine_code_path, runtime_component_paths, wp_codebox_component_paths, and the legacy adapter gates.

Testing

  • php tests/smoke-wordpress-plugin.php
  • npm run build
  • npm run agent-task-run-runtime-components-smoke
  • npm run recipe-staged-files-smoke
  • php -l packages/wordpress-plugin/src/class-wp-codebox-agent-sandbox-runner.php && php -l packages/wordpress-plugin/src/trait-wp-codebox-abilities-browser-runtime.php && php -l packages/wordpress-plugin/src/trait-wp-codebox-abilities-execution.php && php -l packages/wordpress-plugin/src/trait-wp-codebox-abilities-schemas.php && php -l packages/wordpress-plugin/src/trait-wp-codebox-abilities-agents-api-executors.php && php -l tests/smoke-wordpress-plugin.php

Notes

  • npm run check was started in an earlier pass and completed several check-group smokes, including build, WordPress plugin smoke, browser runtime operation smoke, package distribution smoke, external adapter smoke, and multiple runtime/recipe smokes. It was interrupted by user abort during recipe-staged-files-smoke; that interrupted smoke was rerun directly and passed.
  • A focused grep confirms tracked source/docs no longer reference the deleted legacy field/option names: homeboy/wp-codebox, wp_codebox_component_paths, agents_api_path, data_machine_path, data_machine_code_path, runtime_component_paths, legacy_component, or wp_codebox_enable_legacy.

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (openai/gpt-5.5)
  • Used for: Drafting and implementing the generic component adapter changes, deleting legacy compatibility paths, updating smoke coverage/docs, and running verification. Chris remains responsible for review and merge.

Fixes #768

@chubes4 chubes4 marked this pull request as draft June 8, 2026 00:01
@chubes4 chubes4 marked this pull request as ready for review June 8, 2026 00:02
@chubes4 chubes4 merged commit 2a91147 into main Jun 8, 2026
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.

Remove product-specific component assumptions from generic WP Codebox adapters

1 participant