native-update 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AI-INTEGRATION-GUIDE.md +88 -58
- package/Readme.md +57 -88
- package/cli/AGENTS.md +9 -0
- package/cli/CLAUDE.md +9 -0
- package/cli/package.json +2 -2
- package/dist/esm/app-update/app-update-checker.d.ts +19 -0
- package/dist/esm/app-update/app-update-checker.js +19 -0
- package/dist/esm/background-update/background-scheduler.d.ts +21 -0
- package/dist/esm/background-update/background-scheduler.js +47 -24
- package/dist/esm/core/update-check.d.ts +89 -0
- package/dist/esm/core/update-check.js +86 -0
- package/dist/esm/definitions.d.ts +11 -1
- package/dist/esm/live-update/version-manager.js +43 -27
- package/dist/esm/plugin.js +14 -20
- package/dist/esm/types/rollout.d.ts +9 -3
- package/dist/plugin.cjs.js +1 -1
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.js +2 -2
- package/docs/AGENTS.md +9 -0
- package/docs/CHANGELOG.md +51 -0
- package/docs/CLAUDE.md +9 -0
- package/docs/DEPLOY_NOTES.md +116 -0
- package/docs/MANUAL-TASKS.md +18 -5
- package/docs/api/background-update-api.md +14 -1
- package/docs/features/e2e-full-verification/00-overview.md +99 -0
- package/docs/features/e2e-full-verification/00-tracker.json +284 -0
- package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +183 -0
- package/docs/features/e2e-full-verification/phase02-test-auth.md +176 -0
- package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +63 -0
- package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +73 -0
- package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +69 -0
- package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +51 -0
- package/docs/features/e2e-full-verification/results/phase01-drift-report.md +50 -0
- package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +215 -0
- package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +139 -0
- package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +99 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-01-dashboard.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-02-signup.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04b-duplicate-bundle-422.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08a-upload-graceful-fail.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-11-analytics.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-13-pricing.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15b-regular-user-admin-redirect.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png +0 -0
- package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-17-mobile-375.png +0 -0
- package/docs/features/e2e-full-verification/results/route-list.json +1 -0
- package/docs/features/queues-and-emails/00-overview.md +41 -0
- package/docs/features/queues-and-emails/00-tracker.json +99 -0
- package/docs/features/queues-and-emails/phase01-foundation.md +15 -0
- package/docs/features/queues-and-emails/phase02-queued-jobs.md +19 -0
- package/docs/features/queues-and-emails/phase03-transactional-emails.md +16 -0
- package/docs/features/queues-and-emails/phase04-quota-ops.md +17 -0
- package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +16 -0
- package/docs/features/queues-and-emails/phase06-verify-deploy.md +17 -0
- package/docs/server-requirements.md +41 -11
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[{"domain":null,"method":"GET|HEAD","uri":"\/","name":null,"action":"Closure","middleware":["web"],"path":"routes\/web.php:6"},{"domain":null,"method":"GET|HEAD","uri":"admin\/login","name":"admin.login","action":"App\\Http\\Controllers\\Auth\\NovaAuthController@showLogin","middleware":["web","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"admin\/login\/google","name":"admin.login.google","action":"App\\Http\\Controllers\\Auth\\NovaAuthController@redirectToGoogle","middleware":["web","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"admin\/login\/google\/callback","name":"admin.login.google.callback","action":"App\\Http\\Controllers\\Auth\\NovaAuthController@handleGoogleCallback","middleware":["web","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"GET|POST|HEAD","uri":"admin\/logout","name":"admin.logout","action":"App\\Http\\Controllers\\Auth\\NovaAuthController@logout","middleware":["web","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/admin\/apps","name":null,"action":"App\\Http\\Controllers\\Admin\\AdminController@apps","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","App\\Http\\Middleware\\RequireAdmin","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-any"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/admin\/builds","name":null,"action":"App\\Http\\Controllers\\Admin\\AdminController@builds","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","App\\Http\\Middleware\\RequireAdmin","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-any"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/admin\/overview","name":null,"action":"App\\Http\\Controllers\\Admin\\AdminController@overview","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","App\\Http\\Middleware\\RequireAdmin","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:admin.access"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/admin\/users","name":null,"action":"App\\Http\\Controllers\\Admin\\AdminController@users","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","App\\Http\\Middleware\\RequireAdmin","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:users.view"],"path":null},{"domain":null,"method":"PATCH","uri":"api\/admin\/users\/{user}","name":null,"action":"App\\Http\\Controllers\\Admin\\AdminController@updateUser","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","App\\Http\\Middleware\\RequireAdmin","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:users.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/auth\/google\/callback","name":"auth.google.callback","action":"App\\Http\\Controllers\\Auth\\OAuthController@handleGoogleCallback","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/auth\/google\/redirect","name":"auth.google.redirect","action":"App\\Http\\Controllers\\Auth\\OAuthController@redirectToGoogle","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:30,1"],"path":null},{"domain":null,"method":"POST","uri":"api\/auth\/logout","name":"auth.logout","action":"App\\Http\\Controllers\\Auth\\OAuthController@logout","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum"],"path":null},{"domain":null,"method":"POST","uri":"api\/auth\/test-e2e\/de4781d9fcfc2f389ecfe99869c19a90f9463c2f9d9b5a24177d7f23d2a14cf1\/login","name":"auth.test-e2e.login","action":"App\\Http\\Controllers\\Auth\\TestAuthController@login","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:5,1"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@store","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.create"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@show","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"PUT","uri":"api\/dashboard\/apps\/{app}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@update","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.update-own"],"path":null},{"domain":null,"method":"DELETE","uri":"api\/dashboard\/apps\/{app}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@destroy","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.delete-own"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/analytics","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AnalyticsDashboardController@show","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/api-keys","name":null,"action":"App\\Http\\Controllers\\Dashboard\\ApiKeyController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:api-keys.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/api-keys","name":null,"action":"App\\Http\\Controllers\\Dashboard\\ApiKeyController@store","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:api-keys.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/api-keys\/{apiKey}\/deprecate","name":null,"action":"App\\Http\\Controllers\\Dashboard\\ApiKeyController@deprecate","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:api-keys.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/api-keys\/{apiKey}\/revoke","name":null,"action":"App\\Http\\Controllers\\Dashboard\\ApiKeyController@revoke","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:api-keys.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/builds","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/builds","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@store","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:builds.upload"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/builds\/{build}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@show","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"PUT","uri":"api\/dashboard\/apps\/{app}\/builds\/{build}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@update","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:builds.promote"],"path":null},{"domain":null,"method":"DELETE","uri":"api\/dashboard\/apps\/{app}\/builds\/{build}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@destroy","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:builds.delete"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/builds\/{build}\/promote","name":null,"action":"App\\Http\\Controllers\\Dashboard\\BuildController@promote","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:builds.promote"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/signing-keys","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SigningKeyController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:signing-keys.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/signing-keys","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SigningKeyController@store","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:signing-keys.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/signing-keys\/public","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SigningKeyController@getPublicKey","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:signing-keys.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/apps\/{app}\/signing-keys\/rotate","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SigningKeyController@rotate","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:signing-keys.rotate"],"path":null},{"domain":null,"method":"DELETE","uri":"api\/dashboard\/apps\/{app}\/signing-keys\/{signingKey}","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SigningKeyController@destroy","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:signing-keys.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/apps\/{app}\/stats","name":null,"action":"App\\Http\\Controllers\\Dashboard\\AppController@stats","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"PATCH","uri":"api\/dashboard\/builds\/{build}\/rollout","name":null,"action":"App\\Http\\Controllers\\Dashboard\\RolloutController@update","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:builds.promote"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/google-drive\/auth-url","name":null,"action":"App\\Http\\Controllers\\Dashboard\\GoogleDriveController@getAuthUrl","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:google-drive.connect"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/google-drive\/builds","name":null,"action":"App\\Http\\Controllers\\Dashboard\\GoogleDriveController@listBuilds","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:google-drive.connect"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/google-drive\/callback","name":null,"action":"App\\Http\\Controllers\\Dashboard\\GoogleDriveController@callback","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:google-drive.connect"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/google-drive\/disconnect","name":null,"action":"App\\Http\\Controllers\\Dashboard\\GoogleDriveController@disconnect","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:google-drive.connect"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/google-drive\/status","name":null,"action":"App\\Http\\Controllers\\Dashboard\\GoogleDriveController@status","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:google-drive.connect"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/me","name":null,"action":"App\\Http\\Controllers\\Dashboard\\MeController@show","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1"],"path":null},{"domain":null,"method":"DELETE","uri":"api\/dashboard\/me","name":null,"action":"App\\Http\\Controllers\\Dashboard\\MeController@destroy","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:account.delete"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/preferences","name":null,"action":"App\\Http\\Controllers\\Dashboard\\PreferencesController@show","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:preferences.manage"],"path":null},{"domain":null,"method":"PUT","uri":"api\/dashboard\/preferences","name":null,"action":"App\\Http\\Controllers\\Dashboard\\PreferencesController@update","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:preferences.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/rollouts","name":null,"action":"App\\Http\\Controllers\\Dashboard\\RolloutController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:apps.view-own"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/subscription","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@index","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.view"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/subscription\/activate","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@activate","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/subscription\/billing-portal","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@billingPortal","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/subscription\/cancel","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@cancel","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/subscription\/change-plan","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@changePlan","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/dashboard\/subscription\/plans","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@plans","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.view"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/subscription\/resume","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@resume","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"POST","uri":"api\/dashboard\/subscription\/subscribe","name":null,"action":"App\\Http\\Controllers\\Dashboard\\SubscriptionController@subscribe","middleware":["api","Illuminate\\Auth\\Middleware\\Authenticate:sanctum","Illuminate\\Routing\\Middleware\\ThrottleRequests:120,1","Illuminate\\Auth\\Middleware\\Authorize:subscriptions.manage"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/health","name":"api.health","action":"Closure","middleware":["api"],"path":"routes\/api.php:30"},{"domain":null,"method":"POST","uri":"api\/v1\/analytics\/download","name":null,"action":"App\\Http\\Controllers\\Api\\BundleController@reportDownload","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:600,15","App\\Http\\Middleware\\ValidateApiKey"],"path":null},{"domain":null,"method":"POST","uri":"api\/v1\/analytics\/install","name":null,"action":"App\\Http\\Controllers\\Api\\BundleController@reportInstall","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:600,15","App\\Http\\Middleware\\ValidateApiKey"],"path":null},{"domain":null,"method":"POST","uri":"api\/v1\/analytics\/mau","name":null,"action":"App\\Http\\Controllers\\Api\\AnalyticsController@mauPing","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:600,15","App\\Http\\Middleware\\ValidateApiKey"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/v1\/bundles\/{build}\/download","name":"api.bundles.download","action":"App\\Http\\Controllers\\Api\\BundleController@download","middleware":["api","Illuminate\\Routing\\Middleware\\ValidateSignature"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"api\/v1\/updates\/check","name":null,"action":"App\\Http\\Controllers\\Api\\UpdateController@check","middleware":["api","Illuminate\\Routing\\Middleware\\ThrottleRequests:600,15","App\\Http\\Middleware\\ValidateApiKey"],"path":null},{"domain":null,"method":"POST","uri":"api\/webhooks\/paypal","name":"webhooks.paypal","action":"App\\Http\\Controllers\\Webhook\\PayPalWebhookController@handleWebhook","middleware":["api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova","name":"nova.pages.home","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\HomeController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/dashboards\/cards\/{dashboard}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\DashboardCardController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/dashboards\/cards\/{dashboard}\/metrics\/{metric}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\DashboardMetricController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/dashboards\/{dashboard}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\DashboardController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/impersonate","name":"nova.api.start-nova-impersonation","action":"Laravel\\Nova\\Http\\Controllers\\ImpersonateController@startImpersonating","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/impersonate","name":"nova.api.stop-nova-impersonation","action":"Laravel\\Nova\\Http\\Controllers\\ImpersonateController@stopImpersonating","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/nova-notifications","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationIndexController","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/nova-notifications","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationDeleteAllController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/nova-notifications\/read-all","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationReadAllController","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/nova-notifications\/{notification}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationDeleteController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/nova-notifications\/{notification}\/read","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationReadController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/nova-notifications\/{notification}\/unread","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\NotificationUnreadController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/scripts\/{script}","name":"nova.asset.","action":"Laravel\\Nova\\Http\\Controllers\\ScriptController","middleware":["nova:asset"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/search","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\SearchController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/styles\/{style}","name":"nova.asset.","action":"Laravel\\Nova\\Http\\Controllers\\StyleController","middleware":["nova:asset"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceIndexController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceStoreController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceDestroyController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/action","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ActionController@store","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/action","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ActionController@sync","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/actions","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ActionController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/associatable\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\AssociatableController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/attachable\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\AttachableController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/cards","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\CardController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/count","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceCountController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/creation-fields","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\CreationFieldController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/creation-fields","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\CreationFieldSyncController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/detach","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceDetachController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/field-attachment\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldAttachmentController@store","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/field-attachment\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldAttachmentController@destroyAttachment","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/field-attachment\/{field}\/draftId","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldAttachmentController@draftId","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/field-attachment\/{field}\/{draftId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldAttachmentController@destroyPending","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/field\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/field\/{field}\/preview","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldPreviewController@create","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/filters","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FilterController","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/force","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceForceDeleteController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensController@show","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/lens\/{lens}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensResourceDestroyController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/lens\/{lens}\/action","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensActionController@store","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/lens\/{lens}\/action","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensActionController@sync","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/actions","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensActionController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/cards","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensCardController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/count","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensResourceCountController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/filters","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensFilterController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/lens\/{lens}\/force","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensResourceForceDeleteController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/metrics","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensMetricController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lens\/{lens}\/metrics\/{metric}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensMetricController@show","middleware":["nova:api"],"path":null},{"domain":null,"method":"PUT","uri":"nova-api\/{resource}\/lens\/{lens}\/restore","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensResourceRestoreController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/lenses","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\LensController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/metrics","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\MetricController@index","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/metrics\/{metric}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\MetricController@show","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/morphable\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\MorphableController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/relate-authorization","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\RelatableAuthorizationController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PUT","uri":"nova-api\/{resource}\/restore","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceRestoreController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/search","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceSearchController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/soft-deletes","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\SoftDeleteStatusController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceShowController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PUT","uri":"nova-api\/{resource}\/{resourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceUpdateController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/attach-morphed\/{relatedResource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\MorphedResourceAttachController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/attach\/{relatedResource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourceAttachController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/attachable\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\AttachableController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/creation-pivot-fields\/{relatedResource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\CreationPivotFieldController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/{resourceId}\/creation-pivot-fields\/{relatedResource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\CreationPivotFieldController@sync","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/download\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldDownloadController","middleware":["nova:api"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/{resourceId}\/field\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldDestroyController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/field\/{field}\/preview","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldPreviewController@update","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/field\/{field}\/preview\/{relatedResource}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldPreviewController@createPivot","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/field\/{field}\/preview\/{relatedResource}\/{relatedResourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\FieldPreviewController@updatePivot","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/metrics\/{metric}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\DetailMetricController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/peek","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourcePeekController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/preview","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\ResourcePreviewController","middleware":["nova:api"],"path":null},{"domain":null,"method":"POST","uri":"nova-api\/{resource}\/{resourceId}\/update-attached\/{relatedResource}\/{relatedResourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\AttachedResourceUpdateController","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/update-fields","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\UpdateFieldController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/{resourceId}\/update-fields","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\UpdateFieldController@sync","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova-api\/{resource}\/{resourceId}\/update-pivot-fields\/{relatedResource}\/{relatedResourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\UpdatePivotFieldController","middleware":["nova:api"],"path":null},{"domain":null,"method":"PATCH","uri":"nova-api\/{resource}\/{resourceId}\/update-pivot-fields\/{relatedResource}\/{relatedResourceId}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\UpdatePivotFieldController@sync","middleware":["nova:api","Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize"],"path":null},{"domain":null,"method":"DELETE","uri":"nova-api\/{resource}\/{resourceId}\/{relatedResource}\/{relatedResourceId}\/field\/{field}","name":"nova.api.","action":"Laravel\\Nova\\Http\\Controllers\\PivotFieldDestroyController","middleware":["nova:api"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/403","name":"nova.pages.403","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\Error403Controller","middleware":["web","Laravel\\Nova\\Http\\Middleware\\HandleInertiaRequests","nova:serving"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/404","name":"nova.pages.404","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\Error404Controller","middleware":["web","Laravel\\Nova\\Http\\Middleware\\HandleInertiaRequests","nova:serving"],"path":null},{"domain":null,"method":"GET|HEAD|POST|PUT|PATCH|DELETE|OPTIONS","uri":"nova\/dashboard","name":"nova.pages.dashboard","action":"Illuminate\\Routing\\RedirectController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/dashboards\/{name}","name":"nova.pages.dashboard.custom","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\DashboardController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD|POST|PUT|PATCH|DELETE|OPTIONS","uri":"nova\/login","name":"nova.pages.login","action":"Illuminate\\Routing\\RedirectController","middleware":["nova:auth"],"path":null},{"domain":null,"method":"GET|HEAD|POST|PUT|PATCH|DELETE|OPTIONS","uri":"nova\/password\/reset","name":"nova.pages.password.email","action":"Illuminate\\Routing\\RedirectController","middleware":["nova:auth"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}","name":"nova.pages.index","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\ResourceIndexController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/lens\/{lens}","name":"nova.pages.lens","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\LensController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/new","name":"nova.pages.create","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\ResourceCreateController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/{resourceId}","name":"nova.pages.detail","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\ResourceDetailController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/{resourceId}\/attach\/{relatedResource}","name":"nova.pages.attach","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\AttachableController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/{resourceId}\/edit","name":"nova.pages.edit","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\ResourceUpdateController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/{resourceId}\/edit-attached\/{relatedResource}\/{relatedResourceId}","name":"nova.pages.edit-attached","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\AttachedResourceUpdateController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/resources\/{resource}\/{resourceId}\/replicate","name":"nova.pages.replicate","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\ResourceReplicateController","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/user-security","name":"nova.pages.user-security","action":"Laravel\\Nova\\Http\\Controllers\\Pages\\UserSecurityController@show","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/user-security\/confirm-password","name":"nova.pages.password.verify","action":"Laravel\\Nova\\Http\\Controllers\\Fortify\\ConfirmablePasswordController@show","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"POST","uri":"nova\/user-security\/confirm-password","name":"nova.password.confirm","action":"Laravel\\Nova\\Http\\Controllers\\Fortify\\ConfirmablePasswordController@store","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"nova\/user-security\/confirmed-password-status","name":"nova.password.confirmation","action":"Laravel\\Fortify\\Http\\Controllers\\ConfirmedPasswordStatusController@show","middleware":["nova","Laravel\\Nova\\Http\\Middleware\\Authenticate","Laravel\\Nova\\Http\\Middleware\\Authorize"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"sanctum\/csrf-cookie","name":"sanctum.csrf-cookie","action":"Laravel\\Sanctum\\Http\\Controllers\\CsrfCookieController@show","middleware":["web"],"path":null},{"domain":null,"method":"GET|HEAD","uri":"storage\/{path}","name":"storage.local","action":"Closure","middleware":[],"path":"vendor\/laravel\/framework\/src\/Illuminate\/Filesystem\/FilesystemServiceProvider.php:111"},{"domain":null,"method":"PUT","uri":"storage\/{path}","name":"storage.local.upload","action":"Closure","middleware":[],"path":"vendor\/laravel\/framework\/src\/Illuminate\/Filesystem\/FilesystemServiceProvider.php:119"},{"domain":null,"method":"GET|HEAD","uri":"up","name":null,"action":"Closure","middleware":[],"path":"vendor\/laravel\/framework\/src\/Illuminate\/Foundation\/Configuration\/ApplicationBuilder.php:224"}]
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Queues + Emails — Overview
|
|
2
|
+
|
|
3
|
+
**Full implementation plan (complete code per task): `/Users/pc/.claude/plans/queues-and-emails-native-update.md`**
|
|
4
|
+
Tracker: `00-tracker.json` (resume point). Model workflow: Fable 5 planned; Opus 4.8 implements; Fable 5 reviews.
|
|
5
|
+
|
|
6
|
+
## What + why
|
|
7
|
+
|
|
8
|
+
The backend queues nothing today (`QUEUE_CONNECTION=database`, jobs tables exist + empty on prod)
|
|
9
|
+
and sends zero email (`MAIL_*` unset → log mailer). This feature:
|
|
10
|
+
|
|
11
|
+
1. **Queue worker with no new cron** — scheduler-driven `queue:work --stop-when-empty` every
|
|
12
|
+
minute from `routes/console.php` (the existing `schedule:run` cron drives it). Supersedes the
|
|
13
|
+
earlier advice to add a second cron on the server.
|
|
14
|
+
2. **Transactional email layer** — queued notifications: welcome, admin new-user alert,
|
|
15
|
+
subscription lifecycle (activated/cancelled/suspended/expired/payment_failed), account
|
|
16
|
+
suspension, MAU quota warning/exceeded, daily failed-jobs admin alert (that one deliberately
|
|
17
|
+
NOT queued). Transport: **FilesHub email API** (prod — global rule: FilesHub for email sending
|
|
18
|
+
+ file storage; custom `FilesHubTransport`), log (local), array (tests).
|
|
19
|
+
3. **Async PayPal webhook processing** — signature verified sync, handling moved to
|
|
20
|
+
`ProcessPayPalWebhookJob` (unique on event id, 3 tries + backoff), controller ACKs 200 fast.
|
|
21
|
+
4. **Reliable FilesHub cleanup** — `DeleteFilesHubObjectsJob` with retries replaces
|
|
22
|
+
fire-and-forget deletes; fixes a latent bug where deleting a promoted build could destroy the
|
|
23
|
+
FilesHub object a sibling build still serves (zero-copy promotions share `fileshub_public_id`).
|
|
24
|
+
5. **Quota + ops monitoring** — daily `quota:check-mau` (warn at 80%, exceeded at 100%, max once
|
|
25
|
+
per calendar month each) and `queue:alert-failed`; plus `queue:prune-failed` weekly and
|
|
26
|
+
`sanctum:prune-expired` daily.
|
|
27
|
+
|
|
28
|
+
**Deliberately NOT queued:** update-check analytics (stays `afterResponse()` — hottest path),
|
|
29
|
+
`SubscriptionController` PayPal calls (user-interactive). **Deferred:** async build upload
|
|
30
|
+
processing (phase05, owner decision — YAGNI until a real upload timeout is seen).
|
|
31
|
+
|
|
32
|
+
## Acceptance criteria
|
|
33
|
+
|
|
34
|
+
- `vendor/bin/pint --dirty` clean; `php artisan test` fully green (sqlite; MySQL parity for the
|
|
35
|
+
new users migration when available). NO new test files (owner rule) — only side-effect fixes.
|
|
36
|
+
- `php artisan schedule:list` shows: worker every minute, prune-failed weekly, sanctum-prune +
|
|
37
|
+
quota:check-mau + queue:alert-failed daily, analytics:cleanup monthly (existing).
|
|
38
|
+
- Every new env key in `.env.example` with `[REQUIRED*]`/`[OPTIONAL]` tag; local `.env` stays
|
|
39
|
+
no-send (`log` mailer, `sync` queue).
|
|
40
|
+
- Deploy delta appended to `docs/DEPLOY_NOTES.md`; owner-only steps in `docs/MANUAL-TASKS.md`;
|
|
41
|
+
compact doc sync in backend + root CLAUDE/AGENTS. ONE commit per session, pushed.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "queues-and-emails-tracker",
|
|
3
|
+
"description": "Resumable tracker for queue adoption + transactional email across the Laravel backend. The first phase/sub-task with status 'pending' or 'in_progress' is the next thing to work on.",
|
|
4
|
+
"module": "queues-and-emails",
|
|
5
|
+
"createdAt": "2026-07-13",
|
|
6
|
+
"lastUpdated": "2026-07-13",
|
|
7
|
+
"planFile": "/Users/pc/.claude/plans/queues-and-emails-native-update.md",
|
|
8
|
+
"overview": "docs/features/queues-and-emails/00-overview.md",
|
|
9
|
+
"modelWorkflow": "Fable 5 planned AND implemented (owner switched back to Fable and asked for everything now, 2026-07-13). Local implementation is COMPLETE; only the server deploy (phase06.5) remains.",
|
|
10
|
+
"userDecisions": {
|
|
11
|
+
"workerModel": "Scheduler-driven `queue:work --stop-when-empty --max-time=50` every minute via routes/console.php (withoutOverlapping(10) + runInBackground). SUPERSEDES the 2026-07-12 server-session advice to add a second cron — the queue:work hPanel cron must be DELETED; schedule:run is the only cron.",
|
|
12
|
+
"queueCount": "ONE queue (default). No named queues.",
|
|
13
|
+
"mailTransport": "FilesHub email API (owner directive 2026-07-13: FilesHub for email sending + file storage globally, unless another tool is named). Custom transport app/Mail/Transport/FilesHubTransport.php → POST /api/v1/emails/send, reusing FILESHUB_* keys; the API key needs the `email` permission (docs/MANUAL-TASKS.md row 10). MAIL_MAILER=log locally; array in tests. Prod stays on `log` (safe) until the key has the email permission. SUPERSEDES the earlier Hostinger-SMTP decision — no SMTP anywhere.",
|
|
14
|
+
"updateCheckAnalytics": "STAYS dispatch()->afterResponse() — deliberately NOT moved to the queue (would add a jobs-table INSERT+DELETE per update check on the hottest path).",
|
|
15
|
+
"asyncBuildProcessing": "IMPLEMENTED env-gated (owner asked for the plan 'as complete as possible' + all backend work done now): NATIVE_UPDATE_ASYNC_BUILD_PROCESSING, default FALSE (kill-switch). Sync path unchanged when off. Before enabling in prod: dashboard builds page should poll/refresh 'processing' status (it already displays + filters the status).",
|
|
16
|
+
"tests": "No new test files (owner global rule). One existing test legitimately flipped: MeControllerTest's finding-#7 gap-pin now asserts the FIXED behavior (account deletion queues FilesHub cleanup for 'drive'-labeled rows)."
|
|
17
|
+
},
|
|
18
|
+
"knownRisks": [
|
|
19
|
+
"Email quota: FilesHub allows ~450 mails/day per sending account (429 → queued retry with backoff); deliverability is FilesHub's concern (its own sending accounts), not this app's.",
|
|
20
|
+
"PayPal is now ACK'd 200 immediately after signature verify — retries are ours (3 tries + backoff); queue:alert-failed daily mail is the safety net for exhausted retries.",
|
|
21
|
+
"Zero-copy promotions share fileshub_public_id across build rows; deletion previously could destroy a shared object — Build::queueStoredFileDeletion now guards (latent prod bug, fixed in passing).",
|
|
22
|
+
"withoutOverlapping uses the cache store for its mutex — prod CACHE_STORE=database (verified present).",
|
|
23
|
+
"The scheduler cron on prod is still broken (hPanel arg-parsing, MANUAL-TASKS row 8) — until the owner fixes it, NOTHING scheduled runs on prod, including the queue worker."
|
|
24
|
+
],
|
|
25
|
+
"phases": [
|
|
26
|
+
{
|
|
27
|
+
"id": "phase01",
|
|
28
|
+
"title": "Queue + mail foundation (env contract, scheduler worker, BaseQueuedNotification)",
|
|
29
|
+
"status": "complete",
|
|
30
|
+
"completedAt": "2026-07-13",
|
|
31
|
+
"subTasks": [
|
|
32
|
+
{ "id": "phase01.1", "title": "MAIL_* + mau_warning_ratio + async-flag env/config contract in .env + .env.example + config/native_update.php", "status": "complete", "awaitingUser": false },
|
|
33
|
+
{ "id": "phase01.2", "title": "Scheduler-driven queue worker + queue:prune-failed weekly + sanctum:prune-expired daily in routes/console.php", "status": "complete", "awaitingUser": false },
|
|
34
|
+
{ "id": "phase01.3", "title": "app/Notifications/BaseQueuedNotification.php abstract", "status": "complete", "awaitingUser": false }
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"id": "phase02",
|
|
39
|
+
"title": "Queued jobs: PayPal webhook processing + FilesHub cleanup (incl. shared-object guard bugfix)",
|
|
40
|
+
"status": "complete",
|
|
41
|
+
"completedAt": "2026-07-13",
|
|
42
|
+
"subTasks": [
|
|
43
|
+
{ "id": "phase02.1", "title": "ProcessPayPalWebhookJob (ShouldBeUnique on event id; handlers moved verbatim; ACTIVATED-unknown now throws to retry) + controller slims to verify→dispatch→200", "status": "complete", "awaitingUser": false },
|
|
44
|
+
{ "id": "phase02.2", "title": "DeleteFilesHubObjectsJob + Build::queueStoredFileDeletion() guard + User::deleteAllFiles() id-sweep dispatch + drop BuildController::destroy inline delete", "status": "complete", "awaitingUser": false }
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "phase03",
|
|
49
|
+
"title": "Transactional emails: welcome, admin new-user, subscription lifecycle, account suspension",
|
|
50
|
+
"status": "complete",
|
|
51
|
+
"completedAt": "2026-07-13",
|
|
52
|
+
"subTasks": [
|
|
53
|
+
{ "id": "phase03.1", "title": "WelcomeNotification + AdminNewUserNotification wired on wasRecentlyCreated in OAuthController", "status": "complete", "awaitingUser": false },
|
|
54
|
+
{ "id": "phase03.2", "title": "SubscriptionEventNotification (single parameterized class) wired into all 5 webhook-job handlers", "status": "complete", "awaitingUser": false },
|
|
55
|
+
{ "id": "phase03.3", "title": "AccountSuspendedNotification via User::suspend() + AdminController false→true transition guard (copy verified honest: only dashboard sign-in is blocked while suspended)", "status": "complete", "awaitingUser": false }
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "phase04",
|
|
60
|
+
"title": "Quota monitoring + ops alerts",
|
|
61
|
+
"status": "complete",
|
|
62
|
+
"completedAt": "2026-07-13",
|
|
63
|
+
"subTasks": [
|
|
64
|
+
{ "id": "phase04.1", "title": "users migration: mau_warning_notified_at + mau_exceeded_notified_at (nullable timestamps; verified on local MySQL 8.x strict) + casts", "status": "complete", "awaitingUser": false },
|
|
65
|
+
{ "id": "phase04.2", "title": "MauQuotaNotification + quota:check-mau command (chunkById, once-per-calendar-month per level, honest no-cutoff copy) + daily schedule", "status": "complete", "awaitingUser": false },
|
|
66
|
+
{ "id": "phase04.3", "title": "AdminFailedJobsNotification (deliberately NOT queued) + queue:alert-failed command + daily schedule", "status": "complete", "awaitingUser": false }
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "phase05",
|
|
71
|
+
"title": "Async build upload processing (env-gated, default OFF)",
|
|
72
|
+
"status": "complete",
|
|
73
|
+
"completedAt": "2026-07-13",
|
|
74
|
+
"subTasks": [
|
|
75
|
+
{ "id": "phase05.1", "title": "Implemented per owner's 'as complete as possible' directive: BuildController::storeAsync (checksum in-request, bundle → storage/app/pending-builds, row status='processing', 202) + ProcessBuildUploadJob (sign → FilesHub upload → 'active'; failed() → status 'failed' + BuildProcessingFailedNotification + temp cleanup). Gate: NATIVE_UPDATE_ASYNC_BUILD_PROCESSING=false (kill-switch, sync path unchanged).", "status": "complete", "awaitingUser": false },
|
|
76
|
+
{ "id": "phase05.2", "title": "OWNER (later, optional): before flipping the flag ON in prod, add 'processing'-status polling/refresh to the website builds page", "status": "blocked", "awaitingUser": true }
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "phase06",
|
|
81
|
+
"title": "Verification, docs, deploy handoff",
|
|
82
|
+
"status": "in_progress",
|
|
83
|
+
"completedAt": null,
|
|
84
|
+
"subTasks": [
|
|
85
|
+
{ "id": "phase06.1", "title": "Full gates: pint clean; php artisan test 248/248 green (sqlite); migration + both new commands verified on local MySQL 8.x; schedule:list shows 6 custom entries; end-to-end database-queue smoke (dispatch → jobs row → worker drain → mail in log, 0 failed)", "status": "complete", "awaitingUser": false },
|
|
86
|
+
{ "id": "phase06.2", "title": "docs/DEPLOY_NOTES.md: new 2026-07-13 pending item + 2026-07-10 cron item narrowed to ONE cron (queue:work cron DELETED)", "status": "complete", "awaitingUser": false },
|
|
87
|
+
{ "id": "phase06.3", "title": "docs/MANUAL-TASKS.md: row 8 updated (single cron) + row 10 added (create Hostinger mailbox, password → ~/.secrets, SPF/DKIM, confirm test mail)", "status": "complete", "awaitingUser": false },
|
|
88
|
+
{ "id": "phase06.4", "title": "Docs sync: backend/CLAUDE.md + backend/AGENTS.md 'Queues + outbound email' block, root CLAUDE.md/AGENTS.md pointer, tracker + memory updates, ONE commit + push", "status": "complete", "awaitingUser": false },
|
|
89
|
+
{ "id": "phase06.5", "title": "Server deploy + prod verification (server agent per DEPLOY_NOTES 2026-07-13 item; SMTP mailbox env is owner-provided — until then prod mail stays on the log driver)", "status": "blocked", "awaitingUser": true }
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"runHistory": [
|
|
94
|
+
{ "date": "2026-07-13", "phase": "planning", "summary": "Fable 5: explored backend (no mail infra existed; webhook sync; FilesHub deletes fire-and-forget; afterResponse analytics kept), wrote full plan with code to ~/.claude/plans/queues-and-emails-native-update.md, scaffolded this tracker.", "commit": "47c20f8" },
|
|
95
|
+
{ "date": "2026-07-13", "phase": "phase01-phase06 (implementation)", "summary": "Fable 5 (owner directive: everything now): implemented all phases incl. env-gated async build processing. 2 jobs + 1 async-build job, 7 notification classes, 2 commands, 1 migration, 6 schedule entries. Gates: pint clean, 248/248 tests, MySQL parity, live database-queue smoke drained to the log mailer. Deploy handoff written; server deploy (06.5) remains.", "commit": "1938111" },
|
|
96
|
+
{ "date": "2026-07-13", "phase": "mail-transport swap", "summary": "Owner set the global FilesHub email+storage rule → replaced the Hostinger-SMTP plan with a custom FilesHubTransport (Mail::extend 'fileshub', POST /api/v1/emails/send, FILESHUB_* keys, email permission). SMTP env keys deleted; DEPLOY_NOTES/MANUAL-TASKS/docs updated; global rule recorded in ~/.claude/CLAUDE.md + AGENTS.md + rules/services-integrations.md.", "commit": "pending" }
|
|
97
|
+
],
|
|
98
|
+
"resumeInstructions": "Local work COMPLETE. Remaining: (a) phase06.5 server deploy — server agent follows the 2026-07-13 item in docs/DEPLOY_NOTES.md; (b) owner creates the SMTP mailbox (docs/MANUAL-TASKS.md row 10) and fixes the hPanel cron (row 8); (c) optional phase05.2 dashboard polling before enabling async build processing."
|
|
99
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Phase 01 — Queue + mail foundation
|
|
2
|
+
|
|
3
|
+
**Plan sections:** Tasks 1–3 in `/Users/pc/.claude/plans/queues-and-emails-native-update.md` (complete code there).
|
|
4
|
+
|
|
5
|
+
Deliverables: MAIL_* + `mau_warning_ratio` env/config contract (`.env`, `.env.example`,
|
|
6
|
+
`config/native_update.php`; local `.env` → `MAIL_MAILER=log` + `QUEUE_CONNECTION=sync`);
|
|
7
|
+
scheduler-driven worker + `queue:prune-failed` weekly + `sanctum:prune-expired` daily in
|
|
8
|
+
`routes/console.php`; `app/Notifications/BaseQueuedNotification.php`.
|
|
9
|
+
|
|
10
|
+
**Gate:** `vendor/bin/pint --dirty` clean · `php artisan test` green · `php artisan schedule:list`
|
|
11
|
+
shows the 3 new entries.
|
|
12
|
+
|
|
13
|
+
| Date | Result | Notes |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| 2026-07-13 | ✅ complete | Implemented in main-context Fable session; gates green (pint, 248/248 tests) |
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Phase 02 — Queued jobs: PayPal webhook + FilesHub cleanup
|
|
2
|
+
|
|
3
|
+
**Plan sections:** Tasks 4–5 in `/Users/pc/.claude/plans/queues-and-emails-native-update.md` (complete code there).
|
|
4
|
+
|
|
5
|
+
Deliverables: `app/Jobs/ProcessPayPalWebhookJob.php` (handlers moved verbatim from the controller;
|
|
6
|
+
`ShouldBeUnique` on PayPal event id; ACTIVATED-unknown-subscription throws to retry — it races
|
|
7
|
+
`SubscriptionController::activate()`); controller = verify sync → dispatch → 200.
|
|
8
|
+
`app/Jobs/DeleteFilesHubObjectsJob.php` (5 tries, long backoff, 404=success);
|
|
9
|
+
`Build::queueStoredFileDeletion()` with the shared-`fileshub_public_id` guard (fixes the latent
|
|
10
|
+
promoted-build double-delete bug; keys on public-id presence, not the legacy `storage_provider`
|
|
11
|
+
label); `User::deleteAllFiles()` → id sweep + chunked dispatch; `BuildController::destroy()` inline
|
|
12
|
+
delete block removed.
|
|
13
|
+
|
|
14
|
+
**Gate:** pint clean · `php artisan test` green (adapt PayPalWebhookTest/BuildControllerTest/
|
|
15
|
+
MeControllerTest only where behavior legitimately changed — sync queue runs jobs inline).
|
|
16
|
+
|
|
17
|
+
| Date | Result | Notes |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| 2026-07-13 | ✅ complete | Implemented in main-context Fable session; gates green (pint, 248/248 tests) |
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Phase 03 — Transactional emails
|
|
2
|
+
|
|
3
|
+
**Plan sections:** Tasks 6–8 in `/Users/pc/.claude/plans/queues-and-emails-native-update.md` (complete code + copy there).
|
|
4
|
+
|
|
5
|
+
Deliverables: `WelcomeNotification` + `Admin/AdminNewUserNotification` on `wasRecentlyCreated` in
|
|
6
|
+
`OAuthController` (TestAuthController untouched — E2E logins never mail);
|
|
7
|
+
`SubscriptionEventNotification` (ONE parameterized class) wired into all 5 webhook-job handlers;
|
|
8
|
+
`AccountSuspendedNotification` via `User::suspend()` + `AdminController` false→true suspension
|
|
9
|
+
transition guard. Copy: short, kind, factual, no banned words; actions built from
|
|
10
|
+
`config('native_update.frontend_url')`.
|
|
11
|
+
|
|
12
|
+
**Gate:** pint clean · `php artisan test` green (mail runs on the `array` transport in tests).
|
|
13
|
+
|
|
14
|
+
| Date | Result | Notes |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| 2026-07-13 | ✅ complete | Implemented in main-context Fable session; gates green (pint, 248/248 tests) |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Phase 04 — Quota monitoring + ops alerts
|
|
2
|
+
|
|
3
|
+
**Plan sections:** Tasks 9–11 in `/Users/pc/.claude/plans/queues-and-emails-native-update.md` (complete code there).
|
|
4
|
+
|
|
5
|
+
Deliverables: users migration `mau_warning_notified_at` + `mau_exceeded_notified_at` (nullable
|
|
6
|
+
timestamps, casts added, NOT fillable, MySQL-strict safe); `MauQuotaNotification` +
|
|
7
|
+
`quota:check-mau` command (chunkById(100), per-app `DeviceActivity::getMAU`, warn ≥80% / exceeded
|
|
8
|
+
≥100%, once per calendar month per level, honest no-cutoff copy) scheduled daily 06:00;
|
|
9
|
+
`Admin/AdminFailedJobsNotification` (deliberately NOT queued) + `queue:alert-failed` command
|
|
10
|
+
(notifyNow to ADMIN_EMAILS when failed_jobs > 0) scheduled daily 07:00.
|
|
11
|
+
|
|
12
|
+
**Gate:** pint clean · `php artisan test` green · migration verified on local MySQL if available ·
|
|
13
|
+
`php artisan schedule:list` shows 6 custom entries.
|
|
14
|
+
|
|
15
|
+
| Date | Result | Notes |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| 2026-07-13 | ✅ complete | Implemented in main-context Fable session; gates green (pint, 248/248 tests) |
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Phase 05 — OPTIONAL: async build upload processing (BLOCKED — owner decision)
|
|
2
|
+
|
|
3
|
+
**Status: awaiting owner decision. Recommendation: SKIP until a real upload timeout is observed.**
|
|
4
|
+
|
|
5
|
+
Today `BuildController::store()` hashes + signs + re-uploads to FilesHub in-request; it works in
|
|
6
|
+
production. Risk it would address: PHP max_execution_time on very large bundles (shared hosting).
|
|
7
|
+
The `builds.status` enum already has `uploading`/`processing`, so the async shape is known (see
|
|
8
|
+
plan Phase 05): temp-store upload → row `status='processing'` → `ProcessBuildUploadJob` → active/
|
|
9
|
+
failed + owner failure notification; website dashboard would need `processing`-status polling.
|
|
10
|
+
|
|
11
|
+
If approved: Fable extends the plan FIRST (full task code), then Opus implements env-gated
|
|
12
|
+
(`NATIVE_UPDATE_ASYNC_BUILD_PROCESSING`, default `false`). Do not start from this stub alone.
|
|
13
|
+
|
|
14
|
+
| Date | Result | Notes |
|
|
15
|
+
|---|---|---|
|
|
16
|
+
| 2026-07-13 | ✅ implemented (env-gated, default OFF) | Owner directed full completion; flag stays false until dashboard adds processing-status polling (phase05.2, owner) |
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Phase 06 — Verification, docs, deploy handoff
|
|
2
|
+
|
|
3
|
+
**Plan section:** Task 12 in `/Users/pc/.claude/plans/queues-and-emails-native-update.md` (exact deploy-note text + verification commands there).
|
|
4
|
+
|
|
5
|
+
Deliverables: full gates (pint, `php artisan test` sqlite + MySQL parity if available,
|
|
6
|
+
`schedule:list`); `docs/DEPLOY_NOTES.md` pending item (migrate --force, MAIL_* server env +
|
|
7
|
+
config:cache + FPM restart, **do NOT add the previously-suggested queue:work cron** — scheduler
|
|
8
|
+
drives the worker, verify jobs table drains + one raw SMTP test mail); `docs/MANUAL-TASKS.md` rows
|
|
9
|
+
(create Hostinger mailbox, password → `~/.secrets/native-update/` + INDEX, SPF/DKIM, confirm
|
|
10
|
+
mail receipt); compact backend/root CLAUDE+AGENTS sync; tracker update; ONE commit + push.
|
|
11
|
+
|
|
12
|
+
phase06.5 (server deploy + prod verification) is server-agent/owner-side — local agent marks it
|
|
13
|
+
`awaitingUser` and stops there.
|
|
14
|
+
|
|
15
|
+
| Date | Result | Notes |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| 2026-07-13 | ✅ local complete | Gates + queue smoke green; DEPLOY_NOTES + MANUAL-TASKS written; server deploy (06.5) pending |
|
|
@@ -10,30 +10,60 @@ This plugin does **not** include a backend server. You must build your own serve
|
|
|
10
10
|
|
|
11
11
|
### 1. Version Check Endpoint
|
|
12
12
|
```
|
|
13
|
-
GET /api/v1/updates/check
|
|
13
|
+
GET /api/v1/updates/check?channel={channel}
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
+
This is the single endpoint every OTA update check hits. The plugin
|
|
17
|
+
implements it in exactly one place — `src/core/update-check.ts` — used by
|
|
18
|
+
`checkForUpdate()`, `VersionManager`, and the background scheduler alike.
|
|
19
|
+
|
|
16
20
|
**Query Parameters:**
|
|
17
|
-
- `
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
- `
|
|
21
|
+
- `channel`: production | staging | development (defaults to `production`)
|
|
22
|
+
|
|
23
|
+
**Headers (sent by the plugin — a custom backend MUST read these):**
|
|
24
|
+
- `X-API-Key`: app API key (**required** — return 401 if missing/invalid)
|
|
25
|
+
- `X-Device-ID`: stable per-device hash (**required** — return 400 if missing)
|
|
26
|
+
- `X-Current-Version`: currently-installed bundle version
|
|
27
|
+
- `X-Platform`: ios | android | web
|
|
28
|
+
- `X-App-Version`: native app version (optional)
|
|
29
|
+
|
|
30
|
+
**Response (200) — no update:**
|
|
31
|
+
```json
|
|
32
|
+
{ "available": false, "message": "No updates available" }
|
|
33
|
+
```
|
|
21
34
|
|
|
22
|
-
**Response:**
|
|
35
|
+
**Response (200) — update available:**
|
|
23
36
|
```json
|
|
24
37
|
{
|
|
25
|
-
"
|
|
38
|
+
"available": true,
|
|
26
39
|
"version": "1.2.3",
|
|
27
|
-
"
|
|
28
|
-
"releaseNotes": "Bug fixes and improvements",
|
|
40
|
+
"bundleId": "0f1e…uuid",
|
|
29
41
|
"downloadUrl": "https://cdn.example.com/bundles/1.2.3.zip",
|
|
30
|
-
"signature": "base64-encoded-signature",
|
|
31
42
|
"checksum": "sha256-hash",
|
|
43
|
+
"signature": "base64-encoded-signature-or-null",
|
|
32
44
|
"size": 1234567,
|
|
33
|
-
"mandatory": false
|
|
45
|
+
"mandatory": false,
|
|
46
|
+
"releaseNotes": "Bug fixes and improvements",
|
|
47
|
+
"minNativeVersion": "2.0.0",
|
|
48
|
+
"expiresAt": "2026-07-10T12:00:00+00:00"
|
|
34
49
|
}
|
|
35
50
|
```
|
|
36
51
|
|
|
52
|
+
> **Field names are the contract.** Use `available` (not `updateAvailable`)
|
|
53
|
+
> and `downloadUrl` (not `bundleUrl`); a custom backend that renames these
|
|
54
|
+
> will read back as "no update available". These names match the reference
|
|
55
|
+
> Laravel backend's `UpdateController@check`.
|
|
56
|
+
|
|
57
|
+
### 1a. (Optional) Native app-version endpoint — custom extension point
|
|
58
|
+
```
|
|
59
|
+
GET {serverUrl}/app-version?platform={ios|android|web}¤t={ver}
|
|
60
|
+
```
|
|
61
|
+
Only needed if you want SERVER-driven **native app-store** update prompts
|
|
62
|
+
(a newer Play Store / App Store *binary*, not an OTA bundle). This is a
|
|
63
|
+
plugin extension point, separate from the OTA `/v1/updates/check` flow, and
|
|
64
|
+
is a no-op unless you configure it. Return `{ "version": "2.1.0", "priority": 3 }`
|
|
65
|
+
(or `latestVersion`). See `docs/api/background-update-api.md`.
|
|
66
|
+
|
|
37
67
|
### 2. Bundle Download Endpoint
|
|
38
68
|
```
|
|
39
69
|
GET /api/v1/bundles/{version}
|