@capgo/cli 8.14.1 → 8.15.0

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 (32) hide show
  1. package/README.md +29 -0
  2. package/dist/index.js +647 -643
  3. package/dist/package.json +3 -2
  4. package/dist/src/build/cwd.d.ts +7 -0
  5. package/dist/src/build/mobileprovision-parser.d.ts +2 -0
  6. package/dist/src/build/onboarding/apple-access.d.ts +26 -0
  7. package/dist/src/build/onboarding/apple-api.d.ts +15 -0
  8. package/dist/src/build/prescan/checks/android-keystore.d.ts +3 -0
  9. package/dist/src/build/prescan/checks/android-manifest.d.ts +14 -0
  10. package/dist/src/build/prescan/checks/android-project.d.ts +28 -0
  11. package/dist/src/build/prescan/checks/blob-limit.d.ts +8 -0
  12. package/dist/src/build/prescan/checks/credentials.d.ts +2 -0
  13. package/dist/src/build/prescan/checks/ios-certs.d.ts +11 -0
  14. package/dist/src/build/prescan/checks/ios-plist.d.ts +3 -0
  15. package/dist/src/build/prescan/checks/ios-profiles.d.ts +21 -0
  16. package/dist/src/build/prescan/checks/shared-remote.d.ts +3 -0
  17. package/dist/src/build/prescan/checks/shared.d.ts +4 -0
  18. package/dist/src/build/prescan/checks/store-access.d.ts +20 -0
  19. package/dist/src/build/prescan/command.d.ts +52 -0
  20. package/dist/src/build/prescan/context.d.ts +15 -0
  21. package/dist/src/build/prescan/engine.d.ts +7 -0
  22. package/dist/src/build/prescan/gradle.d.ts +65 -0
  23. package/dist/src/build/prescan/manifest.d.ts +61 -0
  24. package/dist/src/build/prescan/prompt.d.ts +15 -0
  25. package/dist/src/build/prescan/registry.d.ts +2 -0
  26. package/dist/src/build/prescan/report.d.ts +6 -0
  27. package/dist/src/build/prescan/types.d.ts +50 -0
  28. package/dist/src/build/prescan/upload-intent.d.ts +3 -0
  29. package/dist/src/schemas/build.d.ts +3 -0
  30. package/dist/src/schemas/sdk.d.ts +2 -0
  31. package/dist/src/sdk.js +436 -402
  32. package/package.json +3 -2
package/README.md CHANGED
@@ -75,6 +75,7 @@ Follow the documentation here: https://capacitorjs.com/docs/getting-started/
75
75
  - [Needed](#build-needed)
76
76
  - [Init](#build-init)
77
77
  - [Request](#build-request)
78
+ - [Prescan](#build-prescan)
78
79
  - [Last-output](#build-last-output)
79
80
  - [Credentials](#build-credentials)
80
81
  - [Apple-key](#build-credentials-apple-key)
@@ -1299,12 +1300,40 @@ npx @capgo/cli@latest build request com.example.app --platform ios --path .
1299
1300
  | **--skip-build-number-bump** | <code>boolean</code> | Skip automatic build number/version code incrementing. Uses whatever version is already in the project files. |
1300
1301
  | **--no-skip-build-number-bump** | <code>boolean</code> | Override saved credentials to re-enable automatic build number incrementing for this build only. |
1301
1302
  | **--ai-analytics** | <code>boolean</code> | On build failure, send logs to Capgo AI for diagnosis. In interactive terminals this skips the upfront confirmation; in CI this auto-uploads and prints the analysis to stderr. |
1303
+ | **--no-prescan** | <code>boolean</code> | Skip the automatic pre-build scan |
1304
+ | **--prescan-ignore-fatal** | <code>boolean</code> | Run the pre-build scan but never block the build (report only) |
1305
+ | **--fail-on-warnings** | <code>boolean</code> | Treat prescan warnings as fatal |
1302
1306
  | **--send-logs** | <code>boolean</code> | On a CI/CD build failure, automatically upload the build logs to Capgo support (no email required). Capgo support is notified and will follow up by email. Additive to --ai-analytics — both can be passed. |
1303
1307
  | **-a** | <code>string</code> | API key to link to your account |
1304
1308
  | **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
1305
1309
  | **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
1306
1310
  | **--verbose** | <code>boolean</code> | Enable verbose output with detailed logging |
1307
1311
 
1312
+ ### <a id="build-prescan"></a> 🔹 **Prescan**
1313
+
1314
+ ```bash
1315
+ npx @capgo/cli@latest build prescan
1316
+ ```
1317
+
1318
+ Scan your project and saved credentials for problems that would fail a cloud build — before uploading anything.
1319
+ Checks credentials (expiry, passwords, profile pairing), project state (cap sync, node_modules layout), and platform config. Runs automatically inside `build request`; this command runs it standalone (e.g. in CI).
1320
+
1321
+ **Options:**
1322
+
1323
+ | Param | Type | Description |
1324
+ | -------------- | ------------- | -------------------- |
1325
+ | **--platform** | <code>string</code> | Target platform: ios or android (required) |
1326
+ | **--path** | <code>string</code> | Path to the project directory (default: current directory) |
1327
+ | **-a** | <code>string</code> | API key to link to your account |
1328
+ | **--android-flavor** | <code>string</code> | Android: product flavor the build will use |
1329
+ | **--ios-dist** | <code>string</code> | iOS: distribution mode to validate against |
1330
+ | **--json** | <code>boolean</code> | Output a machine-readable JSON report |
1331
+ | **--fail-on-warnings** | <code>boolean</code> | Exit non-zero when warnings are found (CI) |
1332
+ | **--ignore-fatal** | <code>boolean</code> | Diagnostic mode: report everything but always exit 0 |
1333
+ | **--verbose** | <code>boolean</code> | Enable verbose output with detailed logging |
1334
+ | **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
1335
+ | **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
1336
+
1308
1337
  ### <a id="build-last-output"></a> 🔹 **Last-output**
1309
1338
 
1310
1339
  ```bash