Admin hub and navigation shell for 40Q AI packages. It centralizes settings pages, menus, and shared helpers so individual AI packages stay lean.
- Top-level “40Q Autonomy AI” menu with Overview and Settings pages.
- Adds submenus for installed AI packages (e.g., SEO Assistant, Alt Text Copilot).
- Hides legacy settings menus from packages to keep navigation in one place.
- Publishes a configurable list of packages and shared env keys (
config/autonomy-ai.php).
- Ensure the Composer path repo includes this package (already present in this project):
"repositories": [ { "type": "path", "url": "packages/*/*", "options": { "symlink": true } } ], "require": { "40q/autonomy-ai-hub": "*" }
- Install/refresh autoloaders:
composer update 40q/autonomy-ai-hub
- Activate 40Q Autonomy AI Hub in wp-admin → Plugins (required by downstream AI packages).
- No manual provider registration is needed. Acorn auto-discovers
FortyQ\AutonomyAiHub\AutonomyAiServiceProvidervia the package’scomposer.jsonextra.acorn.providersentry.
- Publish config if you need per-site overrides:
wp acorn vendor:publish --tag=autonomy-ai-config
- Key settings live in
config/autonomy-ai.php:packages: metadata and manage links for each AI package.settings.env_keys: env variables surfaced in the hub Settings screen.- Menu title/position/capability.
- AI packages should:
- Depend on
40q/autonomy-ai-hub. - Detect the hub and register their settings page under the hub submenu.
- Avoid standalone menus when the hub is active (the hub hides duplicates).
- Depend on
- Code lives at
packages/40q/autonomy-ai-hub. - Provider:
FortyQ\AutonomyAiHub\AutonomyAiServiceProvider. - Views:
resources/views. - Tests:
tests/.