Media AI
Package docs status
Section titled “Package docs status”This page is generated from public package documentation in capell-4/packages and the package manifest checked into the source repository.
| Field | Value |
|---|---|
| Composer package | capell-app/media-ai |
| Package slug | media-ai |
| Product group | Capell Media |
| Tier | premium |
| Bundle | media |
| Runtime contexts | admin, console |
| Capell version | ^4.0 |
| Source repository | capell-app/packages |
| Source path | packages/media-ai |
| Docs source | packages/media-ai/docs |
| Manifest | capell.json |
What This Plugin Adds
Section titled “What This Plugin Adds”Media AI is an Available, No schema impact Capell package in the Capell Media product group. It ships as capell-app/media-ai and extends these surfaces: admin, console.
Media AI adds a provider-backed “Doctor image” action to image records in the Capell Admin media library, letting editors improve images, remove backgrounds or objects, restore damaged assets, and request upscales without leaving the CMS. It ships the ImageDoctor contract and a safe null implementation rather than a production AI provider; bind an implementation directly or through AI Orchestrator, and the action stays hidden until one is configured. Media AI is positioned as a premium Capell Media add-on to the free Media Library workflow, with no public frontend output and no database writes of its own.
After install, admins get package-owned management or reporting surfaces inside Capell.
Status details:
- Status: Available
- Tier: premium
- Bundle: media
- Composer package:
capell-app/media-ai - Namespace:
Capell\MediaAI - Theme key: not applicable
Why It Matters
Section titled “Why It Matters”For developers: The package gives developers package-owned service providers, Actions, Data objects, and Filament classes instead of pushing this behaviour into core or application code.
For teams: Provider-backed image editing inside Capell’s media library: improve images, remove backgrounds or objects, restore, and upscale through a Doctor image action that stays hidden until configured.
Screens And Workflow
Section titled “Screens And Workflow”Screenshot contract: docs/screenshots.json.
- Doctor image action on the Media edit page (admin, required).
Technical Shape
Section titled “Technical Shape”- Service providers:
Capell\MediaAI\Providers\MediaAIServiceProvider. - Config files:
packages/media-ai/config/capell-media-ai.php. - Filament classes:
MediaAIEditActionExtender. - Actions:
ApplyImageDoctorMetadataAction,QueueBatchImageDoctorRequestsAction. - Data objects:
ImageDoctorRequest,ImageDoctorResult. - Jobs:
RunImageDoctorJob. - Command signatures:
media-ai:doctor-batch. - Console command classes:
QueueImageDoctorBatchCommand. - Manifest contributions:
configurator: Capell\MediaAI\Manifest\MediaAIBatchCommandContribution,configurator: Capell\MediaAI\Manifest\MediaAIEditActionContribution,health-check: Capell\MediaAI\Manifest\MediaAIHealthContribution. - Health checks:
Capell\MediaAI\Health\MediaAIHealthCheck.
Data Model
Section titled “Data Model”This package has no schema impact. It does not declare package-owned migrations or required tables.
Docs gap: document extension points here if the package delegates persistence to a host package.
Install Impact
Section titled “Install Impact”- Admin navigation: adds package-owned Filament classes when registered.
- Permissions: none declared in
capell.json. - Public routes: none detected in package route files.
- Database changes: no package migrations declared.
- Settings: no package settings declared.
- Queues or schedules: review package jobs or schedules before install.
- Cache tags: none declared.
- Commands:
media-ai:doctor-batch.
Common Pitfalls
Section titled “Common Pitfalls”- Run package commands from the host app; in this repository use
vendor/bin/pestfor package tests. - Keep
composer.json,composer.local.json,capell.json, docs, screenshots, and tests aligned when the package surface changes.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Package surface is missing after install | Provider or manifest is not loaded | Confirm capell.json, package composer.json, and provider registration | Reinstall the package, refresh Composer autoload, and clear host caches |
| Background work does not run | Queue worker or scheduled command is not active | Check package jobs, commands, and host scheduler configuration | Start the queue or scheduler, then run the focused command or package test |
Quick Start
Section titled “Quick Start”- Install the package:
composer require capell-app/media-ai. - Run the required setup: no package migrations are declared; clear cached config and routes if the host app uses caches.
- Open the related Capell admin surface and verify Media AI appears.
Next Steps
Section titled “Next Steps”- Package docs
- Overview
- Screenshot contract
- Marketplace assets
- Capell content language plan
- Capell documentation design system
- Capell and package ERD notes
- Related packages: Ai Orchestrator, Media Library, Seo Suite.
- Focused tests:
vendor/bin/pest packages/media-ai/tests --configuration=phpunit.xml.