agent/php/Controllers/Api
Snider dffdad8418 feat(api): implement §3 fleet+credits+subscription+sync+agent-auth routes (#848)
Additive-only — appended to php/Routes/api.php (existing routes
preserved). Existing /v1/fleet/{nodes,heartbeat,stats} +
/v1/agent/auth/provision left untouched.

New routes:
- /v1/agent/auth/register
- /v1/fleet/dispatch + /v1/fleet/stream
- /v1/credits/{balance,deduct,refund,ledger}
- /v1/subscription/{status,upgrade,cancel}
- /v1/agent/sync/{push,pull}

New controllers under php/Controllers/Api/{Fleet,Credits,Subscription,
Sync,AgentAuth}/. Reference FleetService/CreditService/SessionService
when available with fallbacks to current action/model layer (pre #849).

Pest Feature coverage under php/tests/Feature/Api/. pest skipped
(vendor binaries missing in sandbox).

Co-authored-by: Codex <noreply@openai.com>
Closes tasks.lthn.sh/view.php?id=848
2026-04-25 05:43:51 +01:00
..
AgentAuth feat(api): implement §3 fleet+credits+subscription+sync+agent-auth routes (#848) 2026-04-25 05:43:51 +01:00
Credits feat(api): implement §3 fleet+credits+subscription+sync+agent-auth routes (#848) 2026-04-25 05:43:51 +01:00
Fleet feat(api): implement §3 fleet+credits+subscription+sync+agent-auth routes (#848) 2026-04-25 05:43:51 +01:00
Subscription feat(api): implement §3 fleet+credits+subscription+sync+agent-auth routes (#848) 2026-04-25 05:43:51 +01:00
Sync feat(api): implement §3 fleet+credits+subscription+sync+agent-auth routes (#848) 2026-04-25 05:43:51 +01:00
AuthController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
BrainController.php feat(brain): add GET /v1/brain/search — ES full-text endpoint 2026-04-23 13:54:11 +01:00
CheckinController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
CreditsController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
FleetController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
GitHubWebhookController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
IssueController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
MessageController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
PhaseController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
PlanController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SessionController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SprintController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SubscriptionController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SyncController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
TaskController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00