# Deployments reference

<!-- prettier-ignore-start -->

Developer reference for `capell-app/deployments`. Start with the [README](../README.md) for what the extension does and how to install it.

## Package Details

Deployments is an **Available** Capell package in the **Capell Operations** product group. It ships as `capell-app/deployments` and extends these surfaces: admin.

- Status: Available
- Tier: paid
- Bundle: operations
- Composer package: `capell-app/deployments`
- Namespace: `Capell\Deployments`
- Theme key: not applicable

## Technical Shape

### Service providers

- `Capell\Deployments\Providers\MigrationMetadataServiceProvider`
- `Capell\Deployments\Providers\DeploymentsServiceProvider`

### Config files

- `packages/deployments/config/capell-deployments.php`

### Migrations

- `packages/deployments/database/migrations/2026_05_10_190845_01_create_deployment_connections_table.php`
- `packages/deployments/database/migrations/2026_06_07_090000_02_create_deployment_publications_table.php`
- `packages/deployments/database/migrations/2026_07_12_000001_create_deployment_publication_authorizations_table.php`
- `packages/deployments/database/migrations/2026_10_22_000001_add_check_evidence_version_to_deployment_publications.php`
- `packages/deployments/database/migrations/2026_11_21_000001_add_marketplace_install_attempt_to_deployment_publications.php`

### Models

- `DeploymentConnection`
- `DeploymentPublication`
- `DeploymentPublicationAuthorization`

### Filament classes

- `DeploymentConnectionPage`
- `DeploymentConnectionFilamentWidget`

### Route files

- `packages/deployments/routes/oauth.php`

### Extension contracts

- `GitProviderContract`
- `PublishesComposerChanges`

### Events

- `DeploymentPublishFailed`
- `DeploymentPublishSucceeded`

### Actions

- `AuthorizeComposerPublicationAction`
- `AuthorizeComposerRemovalAction`
- `CancelDeploymentPublicationAction`
- `ConnectDeploymentAction`
- `DisconnectDeploymentConnectionAction`
- `ConsumeOAuthStateAction`
- `CreateOAuthStateAction`
- `PrepareComposerRequirementCommitAction`
- `PrepareComposerRequirementRemovalCommitAction`
- `PublishComposerRequirementAction`
- `PublishComposerRequirementRemovalAction`
- `PublishMarketplaceComposerRequirementAction`
- `PublishMarketplaceComposerRequirementRemovalAction`
- `RecordDeploymentPublicationAction`
- `RefreshDeploymentPublicationStatusAction`
- `RefreshProviderTokenAction`
- `ReportDeploymentPublicationToMarketplaceAction`
- `ResolveComposerPublishingConnectionAction`
- `ResolveMarketplacePublisherAction`
- `ResolveMarketplaceRemovalAuthorizerAction`
- `SeedDeploymentsScreenshotFixtureAction`
- `SyncMarketplaceAwaitedPublicationsAction`
- `UpdateDeploymentConnectionSettingsAction`

### Data objects

- `ComposerPublicationOperationData`
- `ComposerRequirementData`
- `DeploymentConnectionSettingsData`
- `DeploymentDisconnectResultData`
- `OAuthConnectionData`
- `PublishComposerChangeResultData`
- `PullRequestData`
- `RepoFile`

### Jobs

- `RefreshDeploymentPublicationStatusJob`

### Scheduled commands

- `capell:deployments:sync-marketplace-publications (everyFiveMinutes; package registered)`

### Console command classes

- `SeedDeploymentsScreenshotFixtureCommand`
- `SyncMarketplaceAwaitedPublicationsCommand`

### Manifest contributions

- `admin-page: Capell\Deployments\Manifest\DeploymentsAdminPageContribution`
- `dashboard-widget: Capell\Deployments\Manifest\DeploymentsDashboardFilamentWidgetContribution`
- `route: Capell\Deployments\Manifest\DeploymentsRoutesContribution`
- `scheduled-job: Capell\Deployments\Manifest\DeploymentsScheduleContribution`

### Health checks

- `Capell\Deployments\Health\DeploymentsHealthCheck`

### Blade views

- `packages/deployments/resources/views/filament/pages/deployment-connection.blade.php`
- `packages/deployments/resources/views/filament/widgets/deployment-connection.blade.php`

## Data Model

- Required tables: `deployment_connections`, `deployment_publications`, `deployment_publication_authorizations`.
- Models: `DeploymentConnection`, `DeploymentPublication`, `DeploymentPublicationAuthorization`.
- Migration files: `2026_05_10_190845_01_create_deployment_connections_table.php`, `2026_06_07_090000_02_create_deployment_publications_table.php`, `2026_07_12_000001_create_deployment_publication_authorizations_table.php`, `2026_10_22_000001_add_check_evidence_version_to_deployment_publications.php`, `2026_11_21_000001_add_marketplace_install_attempt_to_deployment_publications.php`.
- Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: migrations declare cascade-on-delete relationships; no timed pruning or retention schedule is declared in `capell.json`.

<!-- prettier-ignore-end -->