@capgo/cli 8.91.0 → 8.92.1
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/dist/index.js +678 -676
- package/dist/notify-app-ready-worker.js +120 -120
- package/dist/onboarding-worker.js +298 -296
- package/dist/package.json +2 -2
- package/dist/src/api/direct-offer.d.ts +11 -0
- package/dist/src/build/request.d.ts +2 -0
- package/dist/src/onboarding/setup-notices.d.ts +2 -0
- package/dist/src/sdk.js +301 -299
- package/dist/src/shared/direct-offer.d.ts +5 -0
- package/dist/updater-installed-worker.js +113 -113
- package/package.json +2 -2
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.92.1",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"test:app-permission-helper": "bun test/test-app-permission-helper.mjs",
|
|
238
238
|
"test:2fa-compliance-network": "bun test/test-2fa-compliance-network.mjs",
|
|
239
239
|
"test:organization-set-api-host": "bun test/test-organization-set-api-host.mjs",
|
|
240
|
-
"test:plan-validation": "bun test/test-plan-validation.mjs",
|
|
240
|
+
"test:plan-validation": "bun test/test-plan-validation.mjs && bun test ./test/test-direct-offer-plan.mjs",
|
|
241
241
|
"test:auto-bump-version": "bun test/test-auto-bump-version.mjs",
|
|
242
242
|
"test:auto-bump-ai-diff": "bun test/test-auto-bump-ai-diff.mjs",
|
|
243
243
|
"test:ios-provisioning-map": "bun test/test-ios-provisioning-map.mjs",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CapgoApiTarget } from '../utils';
|
|
2
|
+
/**
|
|
3
|
+
* Best-effort: true when the app's org never had a free trial (direct offer).
|
|
4
|
+
* Only called after a plan check already blocked the command. Reads the org
|
|
5
|
+
* creation time and trial end from the existing `private/onboarding_progress`
|
|
6
|
+
* billing summary (needs app.read + org.read_billing). `N: 4` without `initial`
|
|
7
|
+
* runs none of the periodic onboarding checks. Any error, timeout, older server
|
|
8
|
+
* without `orgCreatedAt`/`hasPaid`, `null` value, or an org that paid before
|
|
9
|
+
* (churned) keeps the normal plan copy.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isDirectOfferApp(client: CapgoApiTarget, appId: string | undefined): Promise<boolean>;
|
|
@@ -50,6 +50,8 @@ interface ResolveBuildPlatformOptions {
|
|
|
50
50
|
promptPlatform?: () => Promise<unknown>;
|
|
51
51
|
}
|
|
52
52
|
export declare function resolveBuildPlatform(platform: string | undefined, { silent, interactive, promptPlatform, }?: ResolveBuildPlatformOptions): Promise<BuildPlatform>;
|
|
53
|
+
/** Surface plan / concurrency limit errors with a clear upgrade CTA, then throw. */
|
|
54
|
+
export declare function throwIfBuildPlanLimitError(status: number, errorText: string, action: 'request' | 'start', logger: BuildLogger, isDirectOffer?: () => Promise<boolean>): Promise<void>;
|
|
53
55
|
export type { BuildCredentials, BuildRequestOptions, BuildRequestResult } from '../schemas/build';
|
|
54
56
|
export interface BuildJobCachePayloadInput {
|
|
55
57
|
cache?: boolean;
|
|
@@ -3,6 +3,8 @@ export type LocalOnboardingStep = 'add_code' | 'add_updater';
|
|
|
3
3
|
interface Billing {
|
|
4
4
|
orgId: string;
|
|
5
5
|
trialEndsAt: string | null;
|
|
6
|
+
/** Org created without a free trial (direct offer): never mention a trial. */
|
|
7
|
+
trialSkipped?: boolean;
|
|
6
8
|
plansUrl: string;
|
|
7
9
|
}
|
|
8
10
|
export type SetupNotice = {
|