@capgo/cli 8.33.0 → 8.33.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.
Files changed (35) hide show
  1. package/README.md +5 -2
  2. package/dist/index.js +690 -701
  3. package/dist/package.json +5 -3
  4. package/dist/src/analytics/cli-headers.d.ts +9 -0
  5. package/dist/src/analytics/org-resolver.d.ts +3 -1
  6. package/dist/src/api/app.d.ts +16 -4
  7. package/dist/src/api/channels.d.ts +31 -46
  8. package/dist/src/api/versions.d.ts +13 -4
  9. package/dist/src/app/list.d.ts +1 -1
  10. package/dist/src/build/credentials.d.ts +6 -0
  11. package/dist/src/build/onboarding/android/types.d.ts +1 -1
  12. package/dist/src/build/onboarding/android/ui/app.d.ts +2 -0
  13. package/dist/src/build/onboarding/command.d.ts +2 -0
  14. package/dist/src/build/onboarding/types.d.ts +1 -1
  15. package/dist/src/build/onboarding/ui/app.d.ts +2 -0
  16. package/dist/src/build/onboarding/ui/components.d.ts +1 -0
  17. package/dist/src/build/onboarding/ui/shell.d.ts +2 -0
  18. package/dist/src/build/onboarding/ui/steps/android-shared.d.ts +1 -1
  19. package/dist/src/bundle/auto-bump-ai.d.ts +50 -0
  20. package/dist/src/bundle/upload.d.ts +14 -0
  21. package/dist/src/capacitor-cli.d.ts +1 -0
  22. package/dist/src/channel/add.d.ts +0 -36
  23. package/dist/src/mcp/tool-schemas.d.ts +1 -0
  24. package/dist/src/posthog.d.ts +8 -0
  25. package/dist/src/preview/qr.d.ts +13 -9
  26. package/dist/src/schemas/auth.d.ts +2 -2
  27. package/dist/src/schemas/build.d.ts +22 -0
  28. package/dist/src/schemas/bundle.d.ts +2 -0
  29. package/dist/src/schemas/sdk.d.ts +15 -0
  30. package/dist/src/sdk.js +384 -395
  31. package/dist/src/shared/cli-user-error.d.ts +20 -0
  32. package/dist/src/types/supabase.types.d.ts +3 -0
  33. package/dist/src/utils.d.ts +23 -1
  34. package/dist/src/versionHelpers.d.ts +9 -1
  35. package/package.json +5 -3
package/README.md CHANGED
@@ -422,7 +422,7 @@ npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel prod
422
422
  | **--no-delta** | <code>boolean</code> | Disable delta updates even if instant updates are enabled |
423
423
  | **--encrypted-checksum** | <code>string</code> | An encrypted checksum (signature). Used only when uploading an external bundle. |
424
424
  | **--auto-set-bundle** | <code>boolean</code> | Set the bundle version in Capacitor config |
425
- | **--auto-bump** | <code>string</code> | Auto-increment bundle version from the latest remote channel/app version. Level: major, minor (default), patch|fix, or metadata (prerelease) |
425
+ | **--auto-bump** | <code>string</code> | Auto-increment bundle version from the latest remote channel/app version. Level: major, minor (default), patch|fix, metadata (prerelease), or ai |
426
426
  | **--capacitor-config** | <code>string</code> | Capacitor config source to update (useful with dynamic monorepo configs) |
427
427
  | **--dry-upload** | <code>boolean</code> | Dry upload the bundle process: add the row in database without uploading files or updating channels (Used by Capgo for internal testing) |
428
428
  | **--package-json** | <code>string</code> | Paths to package.json files for monorepos (comma-separated) |
@@ -1390,6 +1390,7 @@ Set up build credentials interactively (iOS: certificates + profiles automated;
1390
1390
  | **-a** | <code>string</code> | API key to link to your account |
1391
1391
  | **-p** | <code>string</code> | Platform to onboard (ios or android). If omitted, auto-detects when only one native folder exists; prompts otherwise. |
1392
1392
  | **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
1393
+ | **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
1393
1394
  | **--no-analytics** | <code>boolean</code> | Disable build onboarding analytics and terminal replay for this run |
1394
1395
 
1395
1396
  ### <a id="build-request"></a> 🔹 **Request**
@@ -1442,9 +1443,11 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
1442
1443
  | **--keystore-store-password** | <code>string</code> | Android: Keystore store password |
1443
1444
  | **--play-config-json** | <code>string</code> | Android: Base64-encoded Google Play service account JSON |
1444
1445
  | **--android-flavor** | <code>string</code> | Android: Product flavor to build (e.g. production). Required if your project has multiple flavors. |
1446
+ | **--android-track** | <code>string</code> | Android: Google Play track for this upload (internal, alpha, beta, production). Default without --submit-to-store-review: internal. With --submit-to-store-review and no track set: production. Precedence: CLI > env > saved credentials |
1447
+ | **--android-release-status** | <code>string</code> | Android: Google Play release status (draft, completed, inProgress, halted). Default without --submit-to-store-review: draft. With --submit-to-store-review and no status set: completed. Precedence: CLI > env > saved credentials |
1445
1448
  | **--in-app-update-priority** | <code>string</code> | Android: Google Play in-app update priority for this release (integer 0–5; higher = more urgent). See https://developer.android.com/guide/playcore/in-app-updates. Precedence: CLI > env > saved credentials |
1446
1449
  | **--no-playstore-upload** | <code>boolean</code> | Android: do not upload the AAB/APK to Google Play for this build (ignores saved Play credentials). Use when the Play app does not exist yet, or you only want a Capgo download link. Requires --output-upload. |
1447
- | **--submit-to-store-review** | <code>boolean</code> | After upload, submit the store release for review instead of leaving it as a draft/inactive build. Android marks the Play release completed; iOS submits the processed TestFlight build to App Store review. |
1450
+ | **--submit-to-store-review** | <code>boolean</code> | After upload, submit the store release for review instead of leaving it as a draft/inactive build. On Android this defaults to the production track with release_status completed (override with --android-track / PLAY_STORE_TRACK and --android-release-status / PLAY_STORE_RELEASE_STATUS). On iOS this submits the processed TestFlight build to App Store review. |
1448
1451
  | **--store-release-name** | <code>string</code> | Store release name/version label. Android sends this as the Google Play version_name; iOS uses it as the App Store version when creating or reusing the editable version. |
1449
1452
  | **--store-release-notes** | <code>string</code> | Default store release notes. Android uses this as the Play changelog; iOS uses it as the fallback App Store What's New text. |
1450
1453
  | **--store-release-notes-locale** | <code>string</code> | Localized store release notes (repeatable), for example --store-release-notes-locale en-US="Bug fixes" --store-release-notes-locale fr-FR="Corrections". |