@capgo/cli 8.84.0 → 8.86.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.
- package/README.md +153 -2
- package/dist/index.js +850 -835
- package/dist/notify-app-ready-worker.js +1 -1
- package/dist/onboarding-worker.js +1 -1
- package/dist/package.json +3 -2
- package/dist/src/mcp/tool-schemas.d.ts +74 -4
- package/dist/src/organization/index.d.ts +1 -0
- package/dist/src/organization/member-manage.d.ts +22 -0
- package/dist/src/organization/set.d.ts +4 -4
- package/dist/src/schemas/account.d.ts +29 -0
- package/dist/src/schemas/channel.d.ts +3 -0
- package/dist/src/schemas/index.d.ts +4 -2
- package/dist/src/schemas/organization.d.ts +20 -0
- package/dist/src/schemas/sdk.d.ts +72 -0
- package/dist/src/sdk.d.ts +44 -2
- package/dist/src/sdk.js +363 -363
- package/dist/src/shared/docs-search.d.ts +7 -0
- package/dist/src/shared/email-preferences.d.ts +9 -0
- package/dist/src/types/supabase.types.d.ts +16 -9
- package/dist/src/user/settings.d.ts +6 -0
- package/dist/src/utils.d.ts +34 -24
- package/dist/updater-installed-worker.js +1 -1
- package/package.json +3 -2
- package/skills/organization-management/SKILL.md +37 -0
- package/skills/release-management/SKILL.md +2 -0
- package/skills/usage/SKILL.md +2 -2
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const DOCS_SEARCH_MAX_RESULTS = 20;
|
|
2
|
+
export interface DocsSearchResult {
|
|
3
|
+
title: string;
|
|
4
|
+
url: string;
|
|
5
|
+
snippet?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function searchCapgoDocs(query: string, limit?: number, fetchImpl?: typeof fetch): Promise<DocsSearchResult[]>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Email notification toggles shown in the org Notifications settings page. */
|
|
2
|
+
export declare const ORG_EMAIL_PREFERENCE_KEYS: readonly ["usage_limit", "credit_usage", "bundle_created", "bundle_deployed", "deploy_stats_24h", "weekly_stats", "monthly_stats", "billing_period_stats", "device_error", "channel_self_rejected", "onboarding", "builder_onboarding"];
|
|
3
|
+
/** Email notification toggles shown in the account Notifications settings page. */
|
|
4
|
+
export declare const USER_EMAIL_PREFERENCE_KEYS: readonly ["usage_limit", "credit_usage", "bundle_created", "bundle_deployed", "deploy_stats_24h", "weekly_stats", "monthly_stats", "billing_period_stats", "device_error", "channel_self_rejected", "onboarding", "builder_onboarding", "bundle_incompatible", "cli_realtime_feed"];
|
|
5
|
+
export type EmailPreferences = Record<string, boolean>;
|
|
6
|
+
/**
|
|
7
|
+
* Parse repeatable `key=true|false` flags (commas allowed) into an email preference patch.
|
|
8
|
+
*/
|
|
9
|
+
export declare function parseEmailPreferenceFlags(values: string[] | undefined, allowedKeys: readonly string[]): EmailPreferences | undefined;
|
|
@@ -2335,6 +2335,7 @@ export type Database = {
|
|
|
2335
2335
|
build_time_unit: number;
|
|
2336
2336
|
created_at: string;
|
|
2337
2337
|
credit_id: string;
|
|
2338
|
+
credit_id_us: string | null;
|
|
2338
2339
|
description: string;
|
|
2339
2340
|
id: string;
|
|
2340
2341
|
market_desc: string | null;
|
|
@@ -2345,8 +2346,11 @@ export type Database = {
|
|
|
2345
2346
|
price_m_id: string;
|
|
2346
2347
|
price_y: number;
|
|
2347
2348
|
price_y_id: string;
|
|
2349
|
+
price_y_id_us: string | null;
|
|
2350
|
+
price_m_id_us: string | null;
|
|
2348
2351
|
storage: number;
|
|
2349
2352
|
stripe_id: string;
|
|
2353
|
+
stripe_id_us: string | null;
|
|
2350
2354
|
updated_at: string;
|
|
2351
2355
|
};
|
|
2352
2356
|
Insert: {
|
|
@@ -2354,6 +2358,7 @@ export type Database = {
|
|
|
2354
2358
|
build_time_unit?: number;
|
|
2355
2359
|
created_at?: string;
|
|
2356
2360
|
credit_id: string;
|
|
2361
|
+
credit_id_us?: string | null;
|
|
2357
2362
|
description?: string;
|
|
2358
2363
|
id?: string;
|
|
2359
2364
|
market_desc?: string | null;
|
|
@@ -2364,8 +2369,11 @@ export type Database = {
|
|
|
2364
2369
|
price_m_id: string;
|
|
2365
2370
|
price_y?: number;
|
|
2366
2371
|
price_y_id: string;
|
|
2372
|
+
price_y_id_us?: string | null;
|
|
2373
|
+
price_m_id_us?: string | null;
|
|
2367
2374
|
storage: number;
|
|
2368
2375
|
stripe_id?: string;
|
|
2376
|
+
stripe_id_us?: string | null;
|
|
2369
2377
|
updated_at?: string;
|
|
2370
2378
|
};
|
|
2371
2379
|
Update: {
|
|
@@ -2373,6 +2381,7 @@ export type Database = {
|
|
|
2373
2381
|
build_time_unit?: number;
|
|
2374
2382
|
created_at?: string;
|
|
2375
2383
|
credit_id?: string;
|
|
2384
|
+
credit_id_us?: string | null;
|
|
2376
2385
|
description?: string;
|
|
2377
2386
|
id?: string;
|
|
2378
2387
|
market_desc?: string | null;
|
|
@@ -2383,8 +2392,11 @@ export type Database = {
|
|
|
2383
2392
|
price_m_id?: string;
|
|
2384
2393
|
price_y?: number;
|
|
2385
2394
|
price_y_id?: string;
|
|
2395
|
+
price_y_id_us?: string | null;
|
|
2396
|
+
price_m_id_us?: string | null;
|
|
2386
2397
|
storage?: number;
|
|
2387
2398
|
stripe_id?: string;
|
|
2399
|
+
stripe_id_us?: string | null;
|
|
2388
2400
|
updated_at?: string;
|
|
2389
2401
|
};
|
|
2390
2402
|
Relationships: [];
|
|
@@ -2755,6 +2767,7 @@ export type Database = {
|
|
|
2755
2767
|
stripe_info: {
|
|
2756
2768
|
Row: {
|
|
2757
2769
|
bandwidth_exceeded: boolean | null;
|
|
2770
|
+
billing_account: string;
|
|
2758
2771
|
build_time_exceeded: boolean | null;
|
|
2759
2772
|
canceled_at: string | null;
|
|
2760
2773
|
churn_reason: string | null;
|
|
@@ -2783,6 +2796,7 @@ export type Database = {
|
|
|
2783
2796
|
};
|
|
2784
2797
|
Insert: {
|
|
2785
2798
|
bandwidth_exceeded?: boolean | null;
|
|
2799
|
+
billing_account?: string;
|
|
2786
2800
|
build_time_exceeded?: boolean | null;
|
|
2787
2801
|
canceled_at?: string | null;
|
|
2788
2802
|
churn_reason?: string | null;
|
|
@@ -2811,6 +2825,7 @@ export type Database = {
|
|
|
2811
2825
|
};
|
|
2812
2826
|
Update: {
|
|
2813
2827
|
bandwidth_exceeded?: boolean | null;
|
|
2828
|
+
billing_account?: string;
|
|
2814
2829
|
build_time_exceeded?: boolean | null;
|
|
2815
2830
|
canceled_at?: string | null;
|
|
2816
2831
|
churn_reason?: string | null;
|
|
@@ -2837,15 +2852,7 @@ export type Database = {
|
|
|
2837
2852
|
updated_at?: string;
|
|
2838
2853
|
upgraded_at?: string | null;
|
|
2839
2854
|
};
|
|
2840
|
-
Relationships: [
|
|
2841
|
-
{
|
|
2842
|
-
foreignKeyName: "stripe_info_product_id_fkey";
|
|
2843
|
-
columns: ["product_id"];
|
|
2844
|
-
isOneToOne: false;
|
|
2845
|
-
referencedRelation: "plans";
|
|
2846
|
-
referencedColumns: ["stripe_id"];
|
|
2847
|
-
}
|
|
2848
|
-
];
|
|
2855
|
+
Relationships: [];
|
|
2849
2856
|
};
|
|
2850
2857
|
trial_extension_events: {
|
|
2851
2858
|
Row: {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AccountProfile, AccountSetOptions } from '../schemas/account';
|
|
2
|
+
import type { OptionsBase } from '../schemas/base';
|
|
3
|
+
export declare function getAccountInternal(options: OptionsBase, silent?: boolean): Promise<AccountProfile>;
|
|
4
|
+
export declare function setAccountInternal(options: AccountSetOptions, silent?: boolean): Promise<AccountProfile>;
|
|
5
|
+
export declare function getAccount(options: OptionsBase): Promise<void>;
|
|
6
|
+
export declare function setAccount(options: AccountSetOptions): Promise<void>;
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -2447,6 +2447,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2447
2447
|
build_time_unit: number;
|
|
2448
2448
|
created_at: string;
|
|
2449
2449
|
credit_id: string;
|
|
2450
|
+
credit_id_us: string | null;
|
|
2450
2451
|
description: string;
|
|
2451
2452
|
id: string;
|
|
2452
2453
|
market_desc: string | null;
|
|
@@ -2457,8 +2458,11 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2457
2458
|
price_m_id: string;
|
|
2458
2459
|
price_y: number;
|
|
2459
2460
|
price_y_id: string;
|
|
2461
|
+
price_y_id_us: string | null;
|
|
2462
|
+
price_m_id_us: string | null;
|
|
2460
2463
|
storage: number;
|
|
2461
2464
|
stripe_id: string;
|
|
2465
|
+
stripe_id_us: string | null;
|
|
2462
2466
|
updated_at: string;
|
|
2463
2467
|
};
|
|
2464
2468
|
Insert: {
|
|
@@ -2466,6 +2470,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2466
2470
|
build_time_unit?: number;
|
|
2467
2471
|
created_at?: string;
|
|
2468
2472
|
credit_id: string;
|
|
2473
|
+
credit_id_us?: string | null;
|
|
2469
2474
|
description?: string;
|
|
2470
2475
|
id?: string;
|
|
2471
2476
|
market_desc?: string | null;
|
|
@@ -2476,8 +2481,11 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2476
2481
|
price_m_id: string;
|
|
2477
2482
|
price_y?: number;
|
|
2478
2483
|
price_y_id: string;
|
|
2484
|
+
price_y_id_us?: string | null;
|
|
2485
|
+
price_m_id_us?: string | null;
|
|
2479
2486
|
storage: number;
|
|
2480
2487
|
stripe_id?: string;
|
|
2488
|
+
stripe_id_us?: string | null;
|
|
2481
2489
|
updated_at?: string;
|
|
2482
2490
|
};
|
|
2483
2491
|
Update: {
|
|
@@ -2485,6 +2493,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2485
2493
|
build_time_unit?: number;
|
|
2486
2494
|
created_at?: string;
|
|
2487
2495
|
credit_id?: string;
|
|
2496
|
+
credit_id_us?: string | null;
|
|
2488
2497
|
description?: string;
|
|
2489
2498
|
id?: string;
|
|
2490
2499
|
market_desc?: string | null;
|
|
@@ -2495,8 +2504,11 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2495
2504
|
price_m_id?: string;
|
|
2496
2505
|
price_y?: number;
|
|
2497
2506
|
price_y_id?: string;
|
|
2507
|
+
price_y_id_us?: string | null;
|
|
2508
|
+
price_m_id_us?: string | null;
|
|
2498
2509
|
storage?: number;
|
|
2499
2510
|
stripe_id?: string;
|
|
2511
|
+
stripe_id_us?: string | null;
|
|
2500
2512
|
updated_at?: string;
|
|
2501
2513
|
};
|
|
2502
2514
|
Relationships: [];
|
|
@@ -2849,6 +2861,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2849
2861
|
stripe_info: {
|
|
2850
2862
|
Row: {
|
|
2851
2863
|
bandwidth_exceeded: boolean | null;
|
|
2864
|
+
billing_account: string;
|
|
2852
2865
|
build_time_exceeded: boolean | null;
|
|
2853
2866
|
canceled_at: string | null;
|
|
2854
2867
|
churn_reason: string | null;
|
|
@@ -2877,6 +2890,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2877
2890
|
};
|
|
2878
2891
|
Insert: {
|
|
2879
2892
|
bandwidth_exceeded?: boolean | null;
|
|
2893
|
+
billing_account?: string;
|
|
2880
2894
|
build_time_exceeded?: boolean | null;
|
|
2881
2895
|
canceled_at?: string | null;
|
|
2882
2896
|
churn_reason?: string | null;
|
|
@@ -2905,6 +2919,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2905
2919
|
};
|
|
2906
2920
|
Update: {
|
|
2907
2921
|
bandwidth_exceeded?: boolean | null;
|
|
2922
|
+
billing_account?: string;
|
|
2908
2923
|
build_time_exceeded?: boolean | null;
|
|
2909
2924
|
canceled_at?: string | null;
|
|
2910
2925
|
churn_reason?: string | null;
|
|
@@ -2931,13 +2946,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2931
2946
|
updated_at?: string;
|
|
2932
2947
|
upgraded_at?: string | null;
|
|
2933
2948
|
};
|
|
2934
|
-
Relationships: [
|
|
2935
|
-
foreignKeyName: "stripe_info_product_id_fkey";
|
|
2936
|
-
columns: ["product_id"];
|
|
2937
|
-
isOneToOne: false;
|
|
2938
|
-
referencedRelation: "plans";
|
|
2939
|
-
referencedColumns: ["stripe_id"];
|
|
2940
|
-
}];
|
|
2949
|
+
Relationships: [];
|
|
2941
2950
|
};
|
|
2942
2951
|
trial_extension_events: {
|
|
2943
2952
|
Row: {
|
|
@@ -3339,11 +3348,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3339
3348
|
email_preferences?: import("./types/supabase.types").Json;
|
|
3340
3349
|
enable_notifications?: boolean;
|
|
3341
3350
|
first_name?: string | null;
|
|
3342
|
-
github_username
|
|
3343
|
-
/**
|
|
3344
|
-
* Check if a package is compatible and return detailed reasons if not
|
|
3345
|
-
*/
|
|
3346
|
-
?: string | null;
|
|
3351
|
+
github_username?: string | null;
|
|
3347
3352
|
id: string;
|
|
3348
3353
|
image_url?: string | null;
|
|
3349
3354
|
last_name?: string | null;
|
|
@@ -8181,6 +8186,7 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
8181
8186
|
build_time_unit: number;
|
|
8182
8187
|
created_at: string;
|
|
8183
8188
|
credit_id: string;
|
|
8189
|
+
credit_id_us: string | null;
|
|
8184
8190
|
description: string;
|
|
8185
8191
|
id: string;
|
|
8186
8192
|
market_desc: string | null;
|
|
@@ -8191,8 +8197,11 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
8191
8197
|
price_m_id: string;
|
|
8192
8198
|
price_y: number;
|
|
8193
8199
|
price_y_id: string;
|
|
8200
|
+
price_y_id_us: string | null;
|
|
8201
|
+
price_m_id_us: string | null;
|
|
8194
8202
|
storage: number;
|
|
8195
8203
|
stripe_id: string;
|
|
8204
|
+
stripe_id_us: string | null;
|
|
8196
8205
|
updated_at: string;
|
|
8197
8206
|
};
|
|
8198
8207
|
Insert: {
|
|
@@ -8200,6 +8209,7 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
8200
8209
|
build_time_unit?: number;
|
|
8201
8210
|
created_at?: string;
|
|
8202
8211
|
credit_id: string;
|
|
8212
|
+
credit_id_us?: string | null;
|
|
8203
8213
|
description?: string;
|
|
8204
8214
|
id?: string;
|
|
8205
8215
|
market_desc?: string | null;
|
|
@@ -8210,8 +8220,11 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
8210
8220
|
price_m_id: string;
|
|
8211
8221
|
price_y?: number;
|
|
8212
8222
|
price_y_id: string;
|
|
8223
|
+
price_y_id_us?: string | null;
|
|
8224
|
+
price_m_id_us?: string | null;
|
|
8213
8225
|
storage: number;
|
|
8214
8226
|
stripe_id?: string;
|
|
8227
|
+
stripe_id_us?: string | null;
|
|
8215
8228
|
updated_at?: string;
|
|
8216
8229
|
};
|
|
8217
8230
|
Update: {
|
|
@@ -8219,6 +8232,7 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
8219
8232
|
build_time_unit?: number;
|
|
8220
8233
|
created_at?: string;
|
|
8221
8234
|
credit_id?: string;
|
|
8235
|
+
credit_id_us?: string | null;
|
|
8222
8236
|
description?: string;
|
|
8223
8237
|
id?: string;
|
|
8224
8238
|
market_desc?: string | null;
|
|
@@ -8229,8 +8243,11 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
8229
8243
|
price_m_id?: string;
|
|
8230
8244
|
price_y?: number;
|
|
8231
8245
|
price_y_id?: string;
|
|
8246
|
+
price_y_id_us?: string | null;
|
|
8247
|
+
price_m_id_us?: string | null;
|
|
8232
8248
|
storage?: number;
|
|
8233
8249
|
stripe_id?: string;
|
|
8250
|
+
stripe_id_us?: string | null;
|
|
8234
8251
|
updated_at?: string;
|
|
8235
8252
|
};
|
|
8236
8253
|
Relationships: [];
|
|
@@ -8583,6 +8600,7 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
8583
8600
|
stripe_info: {
|
|
8584
8601
|
Row: {
|
|
8585
8602
|
bandwidth_exceeded: boolean | null;
|
|
8603
|
+
billing_account: string;
|
|
8586
8604
|
build_time_exceeded: boolean | null;
|
|
8587
8605
|
canceled_at: string | null;
|
|
8588
8606
|
churn_reason: string | null;
|
|
@@ -8611,6 +8629,7 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
8611
8629
|
};
|
|
8612
8630
|
Insert: {
|
|
8613
8631
|
bandwidth_exceeded?: boolean | null;
|
|
8632
|
+
billing_account?: string;
|
|
8614
8633
|
build_time_exceeded?: boolean | null;
|
|
8615
8634
|
canceled_at?: string | null;
|
|
8616
8635
|
churn_reason?: string | null;
|
|
@@ -8639,6 +8658,7 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
8639
8658
|
};
|
|
8640
8659
|
Update: {
|
|
8641
8660
|
bandwidth_exceeded?: boolean | null;
|
|
8661
|
+
billing_account?: string;
|
|
8642
8662
|
build_time_exceeded?: boolean | null;
|
|
8643
8663
|
canceled_at?: string | null;
|
|
8644
8664
|
churn_reason?: string | null;
|
|
@@ -8665,13 +8685,7 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
8665
8685
|
updated_at?: string;
|
|
8666
8686
|
upgraded_at?: string | null;
|
|
8667
8687
|
};
|
|
8668
|
-
Relationships: [
|
|
8669
|
-
foreignKeyName: "stripe_info_product_id_fkey";
|
|
8670
|
-
columns: ["product_id"];
|
|
8671
|
-
isOneToOne: false;
|
|
8672
|
-
referencedRelation: "plans";
|
|
8673
|
-
referencedColumns: ["stripe_id"];
|
|
8674
|
-
}];
|
|
8688
|
+
Relationships: [];
|
|
8675
8689
|
};
|
|
8676
8690
|
trial_extension_events: {
|
|
8677
8691
|
Row: {
|
|
@@ -9073,11 +9087,7 @@ export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>
|
|
|
9073
9087
|
email_preferences?: import("./types/supabase.types").Json;
|
|
9074
9088
|
enable_notifications?: boolean;
|
|
9075
9089
|
first_name?: string | null;
|
|
9076
|
-
github_username
|
|
9077
|
-
/**
|
|
9078
|
-
* Check if a package is compatible and return detailed reasons if not
|
|
9079
|
-
*/
|
|
9080
|
-
?: string | null;
|
|
9090
|
+
github_username?: string | null;
|
|
9081
9091
|
id: string;
|
|
9082
9092
|
image_url?: string | null;
|
|
9083
9093
|
last_name?: string | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as uC}from"node:module";var AC=Object.create;var{getPrototypeOf:RC,defineProperty:E2,getOwnPropertyNames:XH,getOwnPropertyDescriptor:SC}=Object,QH=Object.prototype.hasOwnProperty;function YH(D){return this[D]}var TC,bC,h$=(D,$,U)=>{var I=D!=null&&typeof D==="object";if(I){var F=$?TC??=new WeakMap:bC??=new WeakMap,J=F.get(D);if(J)return J}U=D!=null?AC(RC(D)):{};let X=$||!D||!D.__esModule?E2(U,"default",{value:D,enumerable:!0}):U;for(let Q of XH(D))if(!QH.call(X,Q))E2(X,Q,{get:YH.bind(D,Q),enumerable:!0});if(I)F.set(D,X);return X},x0=(D)=>{var $=(JH??=new WeakMap).get(D),U;if($)return $;if($=E2({},"__esModule",{value:!0}),D&&typeof D==="object"||typeof D==="function"){for(var I of XH(D))if(!QH.call($,I))E2($,I,{get:YH.bind(D,I),enumerable:!(U=SC(D,I))||U.enumerable})}return JH.set(D,$),$},JH,C=(D,$)=>()=>($||D(($={exports:{}}).exports,$),$.exports);var PC=(D)=>D;function CC(D,$){this[D]=PC.bind(null,$)}var X$=(D,$)=>{for(var U in $)E2(D,U,{get:$[U],enumerable:!0,configurable:!0,set:CC.bind($,U)})};var T=(D,$)=>()=>(D&&($=D(D=0)),$);var o=uC(import.meta.url);var t$;var A1=T(()=>{t$={name:"@capgo/cli",type:"module",version:"8.84.0",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"Apache 2.0",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"https://github.com/Cap-go/capgo.app",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"bunx --bun supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",typecheck:"tsgo --project tsconfig.tsgo.json --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:notify-app-ready-background":"bun test ./test/test-notify-app-ready-background.mjs ./test/test-background-check-shutdown.mjs","test:bundle":"bun test/test-bundle.mjs","test:bundle-validation":"bun test test/bundle/","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs && bun test/test-get-remote-dependencies.mjs","test:package-json-guard":"bun test/test-package-json-guard.mjs","test:credentials":"bun test/test-credentials.mjs","test:credentials-export":"bun test/test-credentials-export.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:cli-help":"bun test/test-cli-help.mjs","test:build-cache-payload":"bun test/test-build-cache-payload.mjs","test:build-cancellation":"bun test/test-build-cancellation.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:capgo-app-id-prompt":"bun test/test-capgo-app-id-prompt.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs && bun test/test-android-select-guard.mjs","test:android-keystore-action":"bun test/test-android-keystore-action.mjs","test:android-google-play-action":"bun test/test-android-google-play-action.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:cli-headers":"bun test/test-cli-headers.mjs","test:min-cli-version":"bun test/test-min-cli-version.mjs","test:authenticated-command-invocation":"bun test/test-authenticated-command-invocation.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:supabase-perf":"bun test/test-supabase-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:bundle-pages":"bun test test/test-bundle-pages.test.ts","test:mcp-analytics":"bun test/test-mcp-analytics.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:app-add-exists":"bun test/test-app-add-exists.mjs","test:app-add-getting-started":"bun test/test-app-add-getting-started.mjs","test:app-list-output-text":"bun test/test-app-list-output-text.mjs","test:app-todo":"bun test/test-app-todo.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:cli-recovery":"bun test/test-cli-recovery.mjs","test:create-supabase-client":"bun test/test-create-supabase-client.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:channel-add-exists":"bun test/test-channel-add-exists.mjs","test:wait-log":"bun test/test-wait-log.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-upload-recovery":"bun test/test-init-upload-error-gate.mjs && bun test/test-init-upload-monorepo-recovery.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:init-telemetry":"bun test/test-init-telemetry.mjs","test:capacitor-config-target":"bun test/test-capacitor-config-target.mjs","test:builder-app-id-config":"bun test/test-builder-app-id-config.mjs","test:capacitor-config-typescript7":"bun test/test-capacitor-config-typescript7.mjs","test:capacitor-config-native-import":"bun test/test-capacitor-config-native-import.mjs","test:cli-user-error-config":"bun test/test-cli-user-error-config.mjs","test:cordova-upload-mode":"bun test/test-cordova-upload-mode.mjs","test:init-monorepo-targeting":"bun run test:capacitor-config-target && bun run test:builder-app-id-config && bun run test:capacitor-config-typescript7 && bun run test:capacitor-config-native-import && bun run test:cli-user-error-config && bun test/test-init-monorepo-targeting.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs","test:mcp":"node test/test-mcp.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:frame-fit-ios-shared":"bun test/test-frame-fit-ios-shared.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-certificate-action":"bun test/test-ios-certificate-action.mjs","test:ios-profile-action":"bun test/test-ios-profile-action.mjs","test:ios-credential-action":"bun test/test-ios-credential-action.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-flow-contract":"bun test/test-ios-flow-contract.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:ios-marketing-version":"bun test/test-ios-marketing-version.mjs","test:android-version":"bun test/test-android-version.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun scripts/run-test-suite.ts","test:run":"bun scripts/run-test-suite.ts","test:serial":"bun run build && bun scripts/run-test-suite.ts --serial","test:suite":"bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:notify-app-ready-background && bun run test:bundle-validation && bun run test:functional && bun run test:semver && bun run test:auto-bump-version && bun run test:auto-bump-ai-diff && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:cordova-upload-mode && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:package-json-guard && bun run test:credentials && bun run test:credentials-export && bun run test:ios-provisioning-map && bun run test:ios-provisioning-command && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:cli-help && bun run test:build-cache-payload && bun run test:build-cancellation && bun run test:ci-prompts && bun run test:capgo-app-id-prompt && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:android-keystore-action && bun run test:android-google-play-action && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:cli-headers && bun run test:min-cli-version && bun run test:authenticated-command-invocation && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:bundle-pages && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:app-add-exists && bun run test:app-add-getting-started && bun run test:app-list-output-text && bun run test:app-todo && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:cli-recovery && bun run test:create-supabase-client && bun run test:build-platform-selection && bun run test:builder-project-discovery && bun run test:builder-app-selection && bun run test:builder-login-gate && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:channel-list && bun run test:channel-add-exists && bun run test:wait-log && bun run test:init-guardrails && bun run test:init-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:android-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-gcp && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:2fa-compliance-network && bun run test:organization-set-api-host && bun run test:trial-warning && bun run test:plan-validation","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:builder-project-discovery":"bun test/test-builder-project-discovery.mjs","test:builder-app-selection":"bun test/test-builder-app-selection.mjs","test:builder-login-gate":"bun test/test-builder-login-gate.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-analyze-stream":"bun test/test-ai-analyze-stream.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support-mailto":"bun test/test-support-mailto.mjs","test:support-redact":"bun test/test-support-redact.mjs","test:support-internal-log":"bun test/test-support-internal-log.mjs","test:support-help-menu":"bun test/test-support-help-menu.mjs","test:support-contact":"bun test/test-support-contact.mjs","test:support-upload-prompt":"bun test/test-support-upload-prompt.mjs","test:support-bundle-files":"bun test/test-support-bundle-files.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:app-set-options":"bun test/test-app-set-options.mjs && bun test/test-app-list-options.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-gcp":"bun test/test-android-gcp.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:appflow-auth":"bun test/test-appflow-auth.mjs","test:appflow-api-map":"bun test/test-appflow-api-map.mjs","test:appflow-validate":"bun test/test-appflow-validate.mjs","test:appflow-flow":"bun test/test-appflow-flow.mjs","test:appflow-gapfill":"bun test/test-appflow-gapfill.mjs","test:appflow-engine":"bun test/test-appflow-engine.mjs","test:appflow-tail":"bun test/test-appflow-tail.mjs","test:appflow-fetch":"bun test/test-appflow-fetch.mjs","test:appflow-sa-decode":"bun test/test-appflow-sa-decode.mjs","test:app-permission-helper":"bun test/test-app-permission-helper.mjs","test:2fa-compliance-network":"bun test/test-2fa-compliance-network.mjs","test:organization-set-api-host":"bun test/test-organization-set-api-host.mjs","test:trial-warning":"bun test/test-trial-warning.mjs","test:plan-validation":"bun test/test-plan-validation.mjs","test:auto-bump-version":"bun test/test-auto-bump-version.mjs","test:auto-bump-ai-diff":"bun test/test-auto-bump-ai-diff.mjs","test:ios-provisioning-map":"bun test/test-ios-provisioning-map.mjs","test:ios-provisioning-command":"bun test/test-ios-provisioning-command.mjs","test:channel-list":"bun test/test-channel-list.mjs"},dependencies:{"@inkjs/ui":"^2.0.0","@manypkg/tools":"^2.1.2","@rrweb/types":"^2.1.1","@standard-schema/spec":"^1.1.0","@xmldom/xmldom":"^0.9.10","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","agent-cli-detector":"^0.1.6","happy-dom":"^20.11.0",ink:"^7.1.1","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.8","rrweb-snapshot":"^2.1.1","string-width":"^8.2.2",typescript:"6.0.3",zod:"^4.5.4"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.2.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.4.2","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.7.0","@modelcontextprotocol/client":"^2.0.0-beta.5","@modelcontextprotocol/server":"^2.0.0-beta.5","@sauber/table":"npm:@jsr/sauber__table","@sinonjs/fake-timers":"15.4.0","@std/semver":"npm:@jsr/std__semver@1.0.8","@supabase/supabase-js":"^2.110.8","@tanstack/intent":"^0.3.6","@types/adm-zip":"^0.5.8","@types/jsonwebtoken":"^9.0.10","@types/node":"^26.1.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.17","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native-preview":"7.0.0-dev.20260707.2","@vercel/ncc":"^0.44.1","@vue/compiler-dom":"3.5.40","@xterm/headless":"^6.0.0","adm-zip":"^0.6.0","ci-info":"^4.4.0",commander:"^15.0.0",eslint:"^10.7.0","git-format-staged":"4.0.2",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.75.0",partysocket:"^1.3.0",prettyjson:"^1.2.5",tmp:"^0.2.7","tus-js-client":"^4.3.1",ws:"^8.21.1"}}});var ZD;var Z6=T(()=>{ZD=class ZD extends Error{context;constructor(D,$){super(D);this.name="CliUserError",this.context=$}}});import{platform as _C}from"node:os";import{version as xC}from"node:process";function KH(D){BH=D}function fC(D){for(let $=0;$<D.length;$++)if(D.charCodeAt($)>255)return!1;return!0}function WH(D){if(D.toLowerCase()==="x-capgo-log-token")return"Build log token is missing. Re-run the build command or pass a valid log token.";return"Capgo API key is missing. Run `npx -y @capgo/cli@latest login` or pass `--apikey`."}function yC(D){if(D.toLowerCase()==="x-capgo-log-token")return"Build log token contains invalid characters (only ASCII is allowed). Re-run the build command to get a fresh token.";if(D.toLowerCase()==="authorization")return"Authorization header contains invalid characters (only ASCII is allowed). Check your Capgo API key or Supabase anon key configuration.";return"Capgo API key contains invalid characters (only ASCII is allowed). Copy the key from the Capgo dashboard."}function HF(D,$){if($===void 0||$===null){if(qF.has(D.toLowerCase()))throw new ZD(WH(D));throw new ZD(`HTTP header "${D}" is missing or invalid.`)}if(typeof $!=="string"){if(qF.has(D.toLowerCase()))throw new ZD(WH(D));throw new ZD(`HTTP header "${D}" is missing or invalid.`)}if(!fC($)){if(qF.has(D.toLowerCase()))throw new ZD(yC(D));throw new ZD(`HTTP header "${D}" contains invalid characters (only ASCII is allowed).`)}return $}function J0(D){let $={capgo_api:gC,"x-cli-version":t$.version,"x-cli-command":BH,"x-cli-node":xC,"x-cli-os":_C()};if(D)for(let[U,I]of Object.entries(D))$[U]=HF(U,I);return $}var gC="2025-10-01",BH="",qF;var d3=T(()=>{A1();Z6();qF=new Set(["authorization","capgkey","x-capgo-log-token"])});import{existsSync as V$}from"fs";var v2=(D=".",$="unknown")=>{let U=`${D}/bun.lockb`,I=`${D}/bun.lock`,F=`${D}/pnpm-lock.yaml`,J=`${D}/shrinkwrap.yaml`,X=`${D}/yarn.lock`,Q=`${D}/package-lock.json`,Y=`${D}/npm-shrinkwrap.json`;if(V$(U)||V$(I))return"bun";if(V$(F)||V$(J))return"pnpm";if(V$(X))return"yarn";if(V$(Q)||V$(Y))return"npm";return $},c3=(D=v2(),$=!1)=>{switch(D){case"bun":return $?"bun install":"install";case"pnpm":return $?"pnpm install":"install";case"yarn":return $?"yarn install":"install";case"npm":return $?"npm install":"install";case"unknown":return $?"unknown unknown":"unknown";default:return $?"npm install":"install"}},GH=(D=".",$="npx")=>{let U=`${D}/bun.lockb`,I=`${D}/bun.lock`,F=`${D}/pnpm-lock.yaml`,J=`${D}/shrinkwrap.yaml`,X=`${D}/yarn.lock`,Q=`${D}/package-lock.json`,Y=`${D}/npm-shrinkwrap.json`;if(V$(U)||V$(I))return"bunx";if(V$(F)||V$(J))return"pnpm exec";if(V$(X))return"yarn dlx";if(V$(Q)||V$(Y))return"npx";return $};var qH=()=>{};var HH,NH=(D)=>{return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510},zH=(D)=>{return D===8987||D===9001||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D>=131072&&D<=196605||D>=196608&&D<=262141};var LH=T(()=>{HH=(()=>{let D=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return($)=>{let U=0;D.lastIndex=0;while(D.test($))U+=1;return $.length-U}})()});var mC,hC,wH,nC,ZH,iC,lC,dC,MH=(D,$={},U={})=>{let I=$.limit??1/0,F=$.ellipsis??"",J=$?.ellipsisWidth??(F?MH(F,dC,U).width:0),X=0,Q=U.controlWidth??0,Y=U.tabWidth??8,W=U.emojiWidth??2,B=2,K=U.regularWidth??1,q=U.wideWidth??2,H=[[iC,K],[mC,0],[hC,Q],[nC,Y],[ZH,W],[wH,q]],G=0,z=0,N=D.length,M=0,Z=!1,L=N,v=Math.max(0,I-J),A=0,V=0,b=0,y=0;D:while(!0){if(V>A||z>=N&&z>G){let _=D.slice(A,V)||D.slice(G,z);M=0;for(let n of _.replaceAll(lC,"")){let m=n.codePointAt(0)||0;if(NH(m))y=2;else if(zH(m))y=q;else y=K;if(b+y>v)L=Math.min(L,Math.max(A,G)+M);if(b+y>I){Z=!0;break D}M+=n.length,b+=y}A=V=0}if(z>=N)break D;for(let _=0,n=H.length;_<n;_++){let[m,UD]=H[_];if(m.lastIndex=z,m.test(D)){if(M=m===wH?HH(D.slice(z,m.lastIndex)):m===ZH?1:m.lastIndex-z,y=M*UD,b+y>v)L=Math.min(L,z+Math.floor((v-b)/UD));if(b+y>I){Z=!0;break D}b+=y,A=G,V=z,z=G=m.lastIndex;continue D}}z+=1}return{width:Z?v:b,index:Z?L:N,truncated:Z,ellipsed:Z&&I>=J}},OH;var EH=T(()=>{LH();mC=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,hC=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,wH=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,nC=/\t{1,1000}/y,ZH=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,iC=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,lC=/\p{M}+/gu,dC={limit:1/0,ellipsis:""},OH=MH});var cC,pC=(D,$={})=>{return OH(D,cC,$).width},X0;var NF=T(()=>{EH();cC={limit:1/0,ellipsis:"",ellipsisWidth:0},X0=pC});function g0(D,$,U){return String(D).normalize().split(sC).map((I)=>aC(I,$,U)).join(`
|
|
1
|
+
import{createRequire as uC}from"node:module";var AC=Object.create;var{getPrototypeOf:RC,defineProperty:E2,getOwnPropertyNames:XH,getOwnPropertyDescriptor:SC}=Object,QH=Object.prototype.hasOwnProperty;function YH(D){return this[D]}var TC,bC,h$=(D,$,U)=>{var I=D!=null&&typeof D==="object";if(I){var F=$?TC??=new WeakMap:bC??=new WeakMap,J=F.get(D);if(J)return J}U=D!=null?AC(RC(D)):{};let X=$||!D||!D.__esModule?E2(U,"default",{value:D,enumerable:!0}):U;for(let Q of XH(D))if(!QH.call(X,Q))E2(X,Q,{get:YH.bind(D,Q),enumerable:!0});if(I)F.set(D,X);return X},x0=(D)=>{var $=(JH??=new WeakMap).get(D),U;if($)return $;if($=E2({},"__esModule",{value:!0}),D&&typeof D==="object"||typeof D==="function"){for(var I of XH(D))if(!QH.call($,I))E2($,I,{get:YH.bind(D,I),enumerable:!(U=SC(D,I))||U.enumerable})}return JH.set(D,$),$},JH,C=(D,$)=>()=>($||D(($={exports:{}}).exports,$),$.exports);var PC=(D)=>D;function CC(D,$){this[D]=PC.bind(null,$)}var X$=(D,$)=>{for(var U in $)E2(D,U,{get:$[U],enumerable:!0,configurable:!0,set:CC.bind($,U)})};var T=(D,$)=>()=>(D&&($=D(D=0)),$);var o=uC(import.meta.url);var t$;var A1=T(()=>{t$={name:"@capgo/cli",type:"module",version:"8.86.0",description:"A CLI to upload to capgo servers",author:"Martin martin@capgo.app",license:"Apache 2.0",homepage:"https://github.com/Cap-go/capgo/tree/main/cli#readme",repository:{type:"git",url:"https://github.com/Cap-go/capgo.app",directory:"cli"},bugs:{url:"https://github.com/Cap-go/capgo/issues"},keywords:["appflow alternative","ionic","capacitor","auto update","live update","capgo","cli","upload","capgo-cli","sdk","tanstack-intent"],exports:{".":{import:"./dist/index.js",require:"./dist/index.js"},"./sdk":{types:"./dist/src/sdk.d.ts",import:"./dist/src/sdk.js"}},main:"dist/index.js",types:"dist/src/index.d.ts",bin:{capgo:"dist/index.js"},files:["!skills/_artifacts","dist","skills"],engines:{npm:">=8.0.0",node:">=20.0.0"},scripts:{build:"tsc && bun build.mjs",dev:"NODE_ENV=development ncc build","no-debug":"node dist/index.js","dev-build":"SUPA_DB=development ncc build",pack:"pkg",types:"bunx --bun supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",typecheck:"tsgo --project tsconfig.tsgo.json --noEmit",lint:"bun run lint:ox","lint:ox":"oxlint --config ../.oxlintrc.json src","lint:fix":"oxlint --config ../.oxlintrc.json --fix src","check-posix-paths":"node test/check-posix-paths.js","generate-docs":"node dist/index.js generate-docs README.md","test:notify-app-ready-background":"bun test ./test/test-notify-app-ready-background.mjs ./test/test-background-check-shutdown.mjs","test:bundle":"bun test/test-bundle.mjs","test:bundle-validation":"bun test test/bundle/","test:prescan":"bun test test/prescan/","test:functional":"bun test/test-functional.mjs","test:semver":"bun test/test-semver-validation.mjs","test:version-edge-cases":"bun test/test-version-validation.mjs","test:regex":"bun test/test-regex-validation.mjs","test:upload":"bun test/test-upload-validation.mjs","test:fail-on-incompatible":"bun test/test-fail-on-incompatible.mjs","test:native-dependencies":"bun test/test-native-dependencies.mjs && bun test/test-get-remote-dependencies.mjs","test:package-json-guard":"bun test/test-package-json-guard.mjs","test:credentials":"bun test/test-credentials.mjs","test:credentials-export":"bun test/test-credentials-export.mjs","test:asc-key-protocol":"bun test/test-asc-key-protocol.mjs","test:credentials-validation":"bun test/test-credentials-validation.mjs","test:android-service-account-validation":"bun test/test-android-service-account-validation.mjs","test:build-zip-filter":"bun test/test-build-zip-filter.mjs","test:checksum":"bun test/test-checksum-algorithm.mjs","test:build-needed":"bun test/test-build-needed.mjs","test:cli-help":"bun test/test-cli-help.mjs","test:build-cache-payload":"bun test/test-build-cache-payload.mjs","test:build-cancellation":"bun test/test-build-cancellation.mjs","test:ci-prompts":"bun test/test-ci-prompts.mjs","test:capgo-app-id-prompt":"bun test/test-capgo-app-id-prompt.mjs","test:ci-secrets":"bun test/test-ci-secrets.mjs","test:android-onboarding-progress":"bun test/test-android-onboarding-progress.mjs && bun test/test-android-select-guard.mjs","test:android-keystore-action":"bun test/test-android-keystore-action.mjs","test:android-google-play-action":"bun test/test-android-google-play-action.mjs","test:onboarding-telemetry":"bun test/test-onboarding-telemetry.mjs","test:v2-event-migration":"bun test/test-v2-event-migration.mjs","test:analytics":"bun test/test-analytics.mjs","test:cli-headers":"bun test/test-cli-headers.mjs","test:min-cli-version":"bun test/test-min-cli-version.mjs","test:authenticated-command-invocation":"bun test/test-authenticated-command-invocation.mjs","test:analytics-error-category":"bun test/test-analytics-error-category.mjs","test:analytics-org-resolver":"bun test/test-analytics-org-resolver.mjs","test:supabase-perf":"bun test/test-supabase-perf.mjs","test:preview-qr":"bun test/test-preview-qr.mjs","test:bundle-pages":"bun test test/test-bundle-pages.test.ts","test:mcp-analytics":"bun test/test-mcp-analytics.mjs","test:mcp-instructions":"bun test/test-mcp-instructions.mjs","test:mcp-stdout-guard":"bun test/test-mcp-stdout-guard.mjs","test:mcp-platform-select":"bun test/test-mcp-platform-select.mjs","test:mcp-explain-scopes":"bun test/test-mcp-explain-scopes.mjs","test:mcp-oauth-reopen":"bun test/test-mcp-oauth-reopen.mjs","test:mcp-broker-oauth":"bun test/test-mcp-broker-oauth.mjs","test:mcp-broker-session":"bun test/test-mcp-broker-session.mjs","test:mcp-credentials-manage":"bun test/test-mcp-credentials-manage.mjs","test:mcp-resume-prompt":"bun test/test-mcp-resume-prompt.mjs","test:mcp-build-job":"bun test/test-mcp-build-job.mjs","test:mcp-build-tools":"bun test/test-mcp-build-tools.mjs","test:app-created-source":"bun test/test-app-created-source.mjs","test:app-add-exists":"bun test/test-app-add-exists.mjs","test:app-add-getting-started":"bun test/test-app-add-getting-started.mjs","test:app-list-output-text":"bun test/test-app-list-output-text.mjs","test:app-todo":"bun test/test-app-todo.mjs","test:doctor-analytics":"bun test/test-doctor-analytics.mjs","test:posthog-exception":"bun test/test-posthog-exception.mjs","test:cli-recovery":"bun test/test-cli-recovery.mjs","test:create-supabase-client":"bun test/test-create-supabase-client.mjs","test:onboarding-recovery":"bun test/test-onboarding-recovery.mjs","test:onboarding-progress":"bun test/test-onboarding-progress.mjs","test:onboarding-run-targets":"bun test/test-onboarding-run-targets.mjs","test:run-device-command":"bun test/test-run-device-command.mjs","test:init-app-conflict":"bun test/test-init-app-conflict.mjs","test:channel-add-exists":"bun test/test-channel-add-exists.mjs","test:wait-log":"bun test/test-wait-log.mjs","test:init-guardrails":"bun test/test-init-guardrails.mjs","test:init-upload-recovery":"bun test/test-init-upload-error-gate.mjs && bun test/test-init-upload-monorepo-recovery.mjs","test:init-replay":"bun test/test-init-replay.mjs","test:init-telemetry":"bun test/test-init-telemetry.mjs","test:capacitor-config-target":"bun test/test-capacitor-config-target.mjs","test:builder-app-id-config":"bun test/test-builder-app-id-config.mjs","test:capacitor-config-typescript7":"bun test/test-capacitor-config-typescript7.mjs","test:capacitor-config-native-import":"bun test/test-capacitor-config-native-import.mjs","test:cli-user-error-config":"bun test/test-cli-user-error-config.mjs","test:cordova-upload-mode":"bun test/test-cordova-upload-mode.mjs","test:init-monorepo-targeting":"bun run test:capacitor-config-target && bun run test:builder-app-id-config && bun run test:capacitor-config-typescript7 && bun run test:capacitor-config-native-import && bun run test:cli-user-error-config && bun test/test-init-monorepo-targeting.mjs","test:prompt-preferences":"bun test/test-prompt-preferences.mjs","test:esm-sdk":"node test/test-sdk-esm.mjs","test:auth-session":"bun test/test-auth-session.mjs","test:mcp":"node test/test-mcp.mjs","test:mcp-no-key-handshake":"node test/test-mcp-no-key-handshake.mjs","test:version-detection":"node test/test-get-installed-version.mjs","test:version-detection:setup":"./test/fixtures/setup-test-projects.sh","test:platform-paths":"bun test/test-platform-paths.mjs","test:project-type-detection":"bun test/test-project-type-detection.mjs","test:payload-split":"bun test/test-payload-split.mjs","test:macos-signing":"bun test/test-macos-signing.mjs","test:helper-dce":"bash scripts/check-helper-dce.sh","test:apple-api-import-helpers":"bun test/test-apple-api-import-helpers.mjs","test:apple-api-verify-key":"bun test/test-apple-api-verify-key.mjs","test:bundle-id-detector":"bun test/test-bundle-id-detector.mjs","test:apple-api-app-list":"bun test/test-apple-api-app-list.mjs","test:apple-api-cert-create":"bun test/test-apple-api-cert-create.mjs","test:app-verification":"bun test/test-app-verification.mjs","test:pbxproj-parser":"bun test/test-pbxproj-parser.mjs","test:self-update":"bun test/test-self-update.mjs","test:update-prompt":"bun test/test-update-prompt.mjs","test:android-tail-engine":"bun test/test-android-tail-engine.mjs","test:android-tail-render":"bun test/test-android-tail-render.mjs","test:android-tail-routing":"bun test/test-android-tail-routing.mjs","test:dev-gate-stripped":"bun test/test-dev-gate-stripped.mjs","test:frame-fit-ios-shared":"bun test/test-frame-fit-ios-shared.mjs","test:ios-confirm-app-id":"bun test/test-ios-confirm-app-id.mjs","test:ios-create-new":"bun test/test-ios-create-new.mjs","test:ios-certificate-action":"bun test/test-ios-certificate-action.mjs","test:ios-profile-action":"bun test/test-ios-profile-action.mjs","test:ios-credential-action":"bun test/test-ios-credential-action.mjs","test:ios-e2e":"bun test/test-ios-e2e.mjs","test:ios-flow-contract":"bun test/test-ios-flow-contract.mjs","test:ios-import-discovery":"bun test/test-ios-import-discovery.mjs","test:ios-import-export":"bun test/test-ios-import-export.mjs","test:ios-import-pickers":"bun test/test-ios-import-pickers.mjs","test:ios-import-recovery":"bun test/test-ios-import-recovery.mjs","test:ios-recovery":"bun test/test-ios-recovery.mjs","test:ios-resume":"bun test/test-ios-resume.mjs","test:ios-tail-handoff":"bun test/test-ios-tail-handoff.mjs","test:ios-tui-render":"bun test/test-ios-tui-render.mjs","test:p8-error":"bun test/test-p8-error.mjs","test:ios-tui-routing":"bun test/test-ios-tui-routing.mjs","test:ios-updater-sync-validation":"bun test/test-ios-updater-sync-validation.mjs","test:ios-verify-app":"bun test/test-ios-verify-app.mjs","test:ios-marketing-version":"bun test/test-ios-marketing-version.mjs","test:android-version":"bun test/test-android-version.mjs","test:platform-flow-contract":"bun test/test-platform-flow-contract.mjs","test:tail-engine-shared":"bun test/test-tail-engine-shared.mjs",test:"bun run build && bun scripts/run-test-suite.ts","test:run":"bun scripts/run-test-suite.ts","test:serial":"bun run build && bun scripts/run-test-suite.ts --serial","test:suite":"bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:notify-app-ready-background && bun run test:bundle-validation && bun run test:functional && bun run test:semver && bun run test:auto-bump-version && bun run test:auto-bump-ai-diff && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:cordova-upload-mode && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:package-json-guard && bun run test:credentials && bun run test:credentials-export && bun run test:ios-provisioning-map && bun run test:ios-provisioning-command && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:cli-help && bun run test:build-cache-payload && bun run test:build-cancellation && bun run test:ci-prompts && bun run test:capgo-app-id-prompt && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:android-keystore-action && bun run test:android-google-play-action && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:cli-headers && bun run test:min-cli-version && bun run test:authenticated-command-invocation && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:bundle-pages && bun run test:app-set-options && bun run test:settings-parity && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:app-add-exists && bun run test:app-add-getting-started && bun run test:app-list-output-text && bun run test:app-todo && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:cli-recovery && bun run test:create-supabase-client && bun run test:build-platform-selection && bun run test:builder-project-discovery && bun run test:builder-app-selection && bun run test:builder-login-gate && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:channel-list && bun run test:channel-add-exists && bun run test:wait-log && bun run test:init-guardrails && bun run test:init-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:android-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-gcp && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:2fa-compliance-network && bun run test:organization-set-api-host && bun run test:trial-warning && bun run test:plan-validation","test:build-platform-selection":"bun test/test-build-platform-selection.mjs","test:builder-project-discovery":"bun test/test-builder-project-discovery.mjs","test:builder-app-selection":"bun test/test-builder-app-selection.mjs","test:builder-login-gate":"bun test/test-builder-login-gate.mjs","test:ai-log-capture":"bun test/test-ai-log-capture.mjs","test:ai-analyze-flow":"bun test/test-ai-analyze-flow.mjs","test:cicd-failure-help":"bun test/test-cicd-failure-help.mjs","test:ai-analyze-stream":"bun test/test-ai-analyze-stream.mjs","test:ai-sse-parser":"bun test/test-ai-sse-parser.mjs","test:ai-render-markdown":"bun test/test-ai-render-markdown.mjs","test:ai-onboarding-mode":"bun test/test-ai-onboarding-mode.mjs","test:ai-fit":"bun test/test-ai-fit.mjs","test:platform-layout":"bun test/test-platform-layout.mjs","test:frame-fit":"bun test/run-frame-fit.mjs","test:onboarding-min-size":"bun test/test-onboarding-min-size.mjs","test:min-size-gate":"bun test/test-min-size-gate.mjs","test:shell-size-gate":"bun test/test-shell-size-gate.mjs","test:build-log-sanitize":"bun test/test-build-log-sanitize.mjs","test:build-output-viewport":"bun test/test-build-output-viewport.mjs","test:diff-viewer-viewport":"bun test/test-diff-viewer-viewport.mjs","test:build-complete-exit":"bun test/test-build-complete-exit.mjs","test:ai-stream-markdown":"bun test/test-ai-stream-markdown.mjs","test:support-mailto":"bun test/test-support-mailto.mjs","test:support-redact":"bun test/test-support-redact.mjs","test:support-internal-log":"bun test/test-support-internal-log.mjs","test:support-help-menu":"bun test/test-support-help-menu.mjs","test:support-contact":"bun test/test-support-contact.mjs","test:support-upload-prompt":"bun test/test-support-upload-prompt.mjs","test:support-bundle-files":"bun test/test-support-bundle-files.mjs","test:mcp-live-update-onboarding":"bun test/test-mcp-live-update-onboarding.mjs","test:app-set-options":"bun test/test-app-set-options.mjs && bun test/test-app-list-options.mjs","test:settings-parity":"bun test/test-settings-parity.mjs","test:android-reporting-api":"bun test/test-android-reporting-api.mjs","test:android-gcp":"bun test/test-android-gcp.mjs","test:android-app-verification":"bun test/test-android-app-verification.mjs","test:android-rename":"bun test/test-android-rename.mjs","test:appflow-auth":"bun test/test-appflow-auth.mjs","test:appflow-api-map":"bun test/test-appflow-api-map.mjs","test:appflow-validate":"bun test/test-appflow-validate.mjs","test:appflow-flow":"bun test/test-appflow-flow.mjs","test:appflow-gapfill":"bun test/test-appflow-gapfill.mjs","test:appflow-engine":"bun test/test-appflow-engine.mjs","test:appflow-tail":"bun test/test-appflow-tail.mjs","test:appflow-fetch":"bun test/test-appflow-fetch.mjs","test:appflow-sa-decode":"bun test/test-appflow-sa-decode.mjs","test:app-permission-helper":"bun test/test-app-permission-helper.mjs","test:2fa-compliance-network":"bun test/test-2fa-compliance-network.mjs","test:organization-set-api-host":"bun test/test-organization-set-api-host.mjs","test:trial-warning":"bun test/test-trial-warning.mjs","test:plan-validation":"bun test/test-plan-validation.mjs","test:auto-bump-version":"bun test/test-auto-bump-version.mjs","test:auto-bump-ai-diff":"bun test/test-auto-bump-ai-diff.mjs","test:ios-provisioning-map":"bun test/test-ios-provisioning-map.mjs","test:ios-provisioning-command":"bun test/test-ios-provisioning-command.mjs","test:channel-list":"bun test/test-channel-list.mjs"},dependencies:{"@inkjs/ui":"^2.0.0","@manypkg/tools":"^2.1.2","@rrweb/types":"^2.1.1","@standard-schema/spec":"^1.1.0","@xmldom/xmldom":"^0.9.10","@xterm/addon-serialize":"^0.14.0","@xterm/headless":"^6.0.0","agent-cli-detector":"^0.1.6","happy-dom":"^20.11.0",ink:"^7.1.1","ink-spinner":"^5.0.0",jsonwebtoken:"^9.0.3","node-forge":"^1.4.0",qrcode:"^1.5.4",react:"^19.2.8","rrweb-snapshot":"^2.1.1","string-width":"^8.2.2",typescript:"6.0.3",zod:"^4.5.4"},optionalDependencies:{"@capgo/cli-helper-darwin-arm64":"^1.1.1","@capgo/cli-helper-darwin-x64":"^1.1.1","node-pty":"^1.1.0"},devDependencies:{"@antfu/eslint-config":"^9.2.0","@bradenmacdonald/s3-lite-client":"npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6","@capacitor/cli":"^8.4.2","@capgo/find-package-manager":"^0.0.18","@clack/prompts":"^1.7.0","@modelcontextprotocol/client":"^2.0.0-beta.5","@modelcontextprotocol/server":"^2.0.0-beta.5","@sauber/table":"npm:@jsr/sauber__table","@sinonjs/fake-timers":"15.4.0","@std/semver":"npm:@jsr/std__semver@1.0.8","@supabase/supabase-js":"^2.110.8","@tanstack/intent":"^0.3.6","@types/adm-zip":"^0.5.8","@types/jsonwebtoken":"^9.0.10","@types/node":"^26.1.1","@types/node-forge":"^1.3.14","@types/prettyjson":"^0.0.33","@types/qrcode":"^1.5.6","@types/react":"^19.2.17","@types/tmp":"^0.2.6","@types/ws":"^8.18.1","@typescript/native-preview":"7.0.0-dev.20260707.2","@vercel/ncc":"^0.44.1","@vue/compiler-dom":"3.5.40","@xterm/headless":"^6.0.0","adm-zip":"^0.6.0","ci-info":"^4.4.0",commander:"^15.0.0",eslint:"^10.7.0","git-format-staged":"4.0.2",husky:"^9.1.7","is-wsl":"^3.1.1",micromatch:"^4.0.8",open:"^11.0.0",oxlint:"^1.75.0",partysocket:"^1.3.0",prettyjson:"^1.2.5",tmp:"^0.2.7","tus-js-client":"^4.3.1",ws:"^8.21.1"}}});var ZD;var Z6=T(()=>{ZD=class ZD extends Error{context;constructor(D,$){super(D);this.name="CliUserError",this.context=$}}});import{platform as _C}from"node:os";import{version as xC}from"node:process";function KH(D){BH=D}function fC(D){for(let $=0;$<D.length;$++)if(D.charCodeAt($)>255)return!1;return!0}function WH(D){if(D.toLowerCase()==="x-capgo-log-token")return"Build log token is missing. Re-run the build command or pass a valid log token.";return"Capgo API key is missing. Run `npx -y @capgo/cli@latest login` or pass `--apikey`."}function yC(D){if(D.toLowerCase()==="x-capgo-log-token")return"Build log token contains invalid characters (only ASCII is allowed). Re-run the build command to get a fresh token.";if(D.toLowerCase()==="authorization")return"Authorization header contains invalid characters (only ASCII is allowed). Check your Capgo API key or Supabase anon key configuration.";return"Capgo API key contains invalid characters (only ASCII is allowed). Copy the key from the Capgo dashboard."}function HF(D,$){if($===void 0||$===null){if(qF.has(D.toLowerCase()))throw new ZD(WH(D));throw new ZD(`HTTP header "${D}" is missing or invalid.`)}if(typeof $!=="string"){if(qF.has(D.toLowerCase()))throw new ZD(WH(D));throw new ZD(`HTTP header "${D}" is missing or invalid.`)}if(!fC($)){if(qF.has(D.toLowerCase()))throw new ZD(yC(D));throw new ZD(`HTTP header "${D}" contains invalid characters (only ASCII is allowed).`)}return $}function J0(D){let $={capgo_api:gC,"x-cli-version":t$.version,"x-cli-command":BH,"x-cli-node":xC,"x-cli-os":_C()};if(D)for(let[U,I]of Object.entries(D))$[U]=HF(U,I);return $}var gC="2025-10-01",BH="",qF;var d3=T(()=>{A1();Z6();qF=new Set(["authorization","capgkey","x-capgo-log-token"])});import{existsSync as V$}from"fs";var v2=(D=".",$="unknown")=>{let U=`${D}/bun.lockb`,I=`${D}/bun.lock`,F=`${D}/pnpm-lock.yaml`,J=`${D}/shrinkwrap.yaml`,X=`${D}/yarn.lock`,Q=`${D}/package-lock.json`,Y=`${D}/npm-shrinkwrap.json`;if(V$(U)||V$(I))return"bun";if(V$(F)||V$(J))return"pnpm";if(V$(X))return"yarn";if(V$(Q)||V$(Y))return"npm";return $},c3=(D=v2(),$=!1)=>{switch(D){case"bun":return $?"bun install":"install";case"pnpm":return $?"pnpm install":"install";case"yarn":return $?"yarn install":"install";case"npm":return $?"npm install":"install";case"unknown":return $?"unknown unknown":"unknown";default:return $?"npm install":"install"}},GH=(D=".",$="npx")=>{let U=`${D}/bun.lockb`,I=`${D}/bun.lock`,F=`${D}/pnpm-lock.yaml`,J=`${D}/shrinkwrap.yaml`,X=`${D}/yarn.lock`,Q=`${D}/package-lock.json`,Y=`${D}/npm-shrinkwrap.json`;if(V$(U)||V$(I))return"bunx";if(V$(F)||V$(J))return"pnpm exec";if(V$(X))return"yarn dlx";if(V$(Q)||V$(Y))return"npx";return $};var qH=()=>{};var HH,NH=(D)=>{return D===12288||D>=65281&&D<=65376||D>=65504&&D<=65510},zH=(D)=>{return D===8987||D===9001||D>=12272&&D<=12287||D>=12289&&D<=12350||D>=12441&&D<=12543||D>=12549&&D<=12591||D>=12593&&D<=12686||D>=12688&&D<=12771||D>=12783&&D<=12830||D>=12832&&D<=12871||D>=12880&&D<=19903||D>=65040&&D<=65049||D>=65072&&D<=65106||D>=65108&&D<=65126||D>=65128&&D<=65131||D>=127488&&D<=127490||D>=127504&&D<=127547||D>=127552&&D<=127560||D>=131072&&D<=196605||D>=196608&&D<=262141};var LH=T(()=>{HH=(()=>{let D=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return($)=>{let U=0;D.lastIndex=0;while(D.test($))U+=1;return $.length-U}})()});var mC,hC,wH,nC,ZH,iC,lC,dC,MH=(D,$={},U={})=>{let I=$.limit??1/0,F=$.ellipsis??"",J=$?.ellipsisWidth??(F?MH(F,dC,U).width:0),X=0,Q=U.controlWidth??0,Y=U.tabWidth??8,W=U.emojiWidth??2,B=2,K=U.regularWidth??1,q=U.wideWidth??2,H=[[iC,K],[mC,0],[hC,Q],[nC,Y],[ZH,W],[wH,q]],G=0,z=0,N=D.length,M=0,Z=!1,L=N,v=Math.max(0,I-J),A=0,V=0,b=0,y=0;D:while(!0){if(V>A||z>=N&&z>G){let _=D.slice(A,V)||D.slice(G,z);M=0;for(let n of _.replaceAll(lC,"")){let m=n.codePointAt(0)||0;if(NH(m))y=2;else if(zH(m))y=q;else y=K;if(b+y>v)L=Math.min(L,Math.max(A,G)+M);if(b+y>I){Z=!0;break D}M+=n.length,b+=y}A=V=0}if(z>=N)break D;for(let _=0,n=H.length;_<n;_++){let[m,UD]=H[_];if(m.lastIndex=z,m.test(D)){if(M=m===wH?HH(D.slice(z,m.lastIndex)):m===ZH?1:m.lastIndex-z,y=M*UD,b+y>v)L=Math.min(L,z+Math.floor((v-b)/UD));if(b+y>I){Z=!0;break D}b+=y,A=G,V=z,z=G=m.lastIndex;continue D}}z+=1}return{width:Z?v:b,index:Z?L:N,truncated:Z,ellipsed:Z&&I>=J}},OH;var EH=T(()=>{LH();mC=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,hC=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,wH=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,nC=/\t{1,1000}/y,ZH=/[\u{1F1E6}-\u{1F1FF}]{2}|\u{1F3F4}[\u{E0061}-\u{E007A}]{2}[\u{E0030}-\u{E0039}\u{E0061}-\u{E007A}]{1,3}\u{E007F}|(?:\p{Emoji}\uFE0F\u20E3?|\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation})(?:\u200D(?:\p{Emoji_Modifier_Base}\p{Emoji_Modifier}?|\p{Emoji_Presentation}|\p{Emoji}\uFE0F\u20E3?))*/yu,iC=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,lC=/\p{M}+/gu,dC={limit:1/0,ellipsis:""},OH=MH});var cC,pC=(D,$={})=>{return OH(D,cC,$).width},X0;var NF=T(()=>{EH();cC={limit:1/0,ellipsis:"",ellipsisWidth:0},X0=pC});function g0(D,$,U){return String(D).normalize().split(sC).map((I)=>aC(I,$,U)).join(`
|
|
2
2
|
`)}var p3="\x1B",RH="",rC=39,LF="\x07",SH="[",oC="]",TH="m",wF,vH,VH=(D)=>{if(D>=30&&D<=37)return 39;if(D>=90&&D<=97)return 39;if(D>=40&&D<=47)return 49;if(D>=100&&D<=107)return 49;if(D===1||D===2)return 22;if(D===3)return 23;if(D===4)return 24;if(D===7)return 27;if(D===8)return 28;if(D===9)return 29;if(D===0)return 0;return},jH=(D)=>`${p3}${SH}${D}${TH}`,AH=(D)=>`${p3}${wF}${D}${LF}`,zF=(D,$,U)=>{let I=$[Symbol.iterator](),F=!1,J=!1,X=D.at(-1),Q=X===void 0?0:X0(X),Y=I.next(),W=I.next(),B=0;while(!Y.done){let K=Y.value,q=X0(K);if(Q+q<=U)D[D.length-1]+=K;else D.push(K),Q=0;if(K===p3||K===RH)F=!0,J=$.startsWith(wF,B+1);if(F){if(J){if(K===LF)F=!1,J=!1}else if(K===TH)F=!1}else if(Q+=q,Q===U&&!W.done)D.push(""),Q=0;Y=W,W=I.next(),B+=K.length}if(X=D.at(-1),!Q&&X!==void 0&&X.length&&D.length>1)D[D.length-2]+=D.pop()},tC=(D)=>{let $=D.split(" "),U=$.length;while(U){if(X0($[U-1]))break;U--}if(U===$.length)return D;return $.slice(0,U).join(" ")+$.slice(U).join("")},aC=(D,$,U={})=>{if(U.trim!==!1&&D.trim()==="")return"";let I="",F,J,X=D.split(" "),Q=[""],Y=0;for(let K=0;K<X.length;K++){let q=X[K];if(U.trim!==!1){let G=Q.at(-1)??"",z=G.trimStart();if(G.length!==z.length)Q[Q.length-1]=z,Y=X0(z)}if(K!==0){if(Y>=$&&(U.wordWrap===!1||U.trim===!1))Q.push(""),Y=0;if(Y||U.trim===!1)Q[Q.length-1]+=" ",Y++}let H=X0(q);if(U.hard&&H>$){let G=$-Y,z=1+Math.floor((H-G-1)/$);if(Math.floor((H-1)/$)<z)Q.push("");zF(Q,q,$),Y=X0(Q.at(-1)??"");continue}if(Y+H>$&&Y&&H){if(U.wordWrap===!1&&Y<$){zF(Q,q,$),Y=X0(Q.at(-1)??"");continue}Q.push(""),Y=0}if(Y+H>$&&U.wordWrap===!1){zF(Q,q,$),Y=X0(Q.at(-1)??"");continue}Q[Q.length-1]+=q,Y+=H}if(U.trim!==!1)Q=Q.map((K)=>tC(K));let W=Q.join(`
|
|
3
3
|
`),B=!1;for(let K=0;K<W.length;K++){let q=W[K];if(I+=q,!B){if(B=q>="\uD800"&&q<="\uDBFF",B)continue}else B=!1;if(q===p3||q===RH){vH.lastIndex=K+1;let G=vH.exec(W)?.groups;if(G?.code!==void 0){let z=Number.parseFloat(G.code);F=z===rC?void 0:z}else if(G?.uri!==void 0)J=G.uri.length===0?void 0:G.uri}if(W[K+1]===`
|
|
4
4
|
`){if(J)I+=AH("");let H=F?VH(F):void 0;if(F&&H)I+=jH(H)}else if(q===`
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.86.0",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
"test": "bun run build && bun scripts/run-test-suite.ts",
|
|
196
196
|
"test:run": "bun scripts/run-test-suite.ts",
|
|
197
197
|
"test:serial": "bun run build && bun scripts/run-test-suite.ts --serial",
|
|
198
|
-
"test:suite": "bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:notify-app-ready-background && bun run test:bundle-validation && bun run test:functional && bun run test:semver && bun run test:auto-bump-version && bun run test:auto-bump-ai-diff && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:cordova-upload-mode && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:package-json-guard && bun run test:credentials && bun run test:credentials-export && bun run test:ios-provisioning-map && bun run test:ios-provisioning-command && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:cli-help && bun run test:build-cache-payload && bun run test:build-cancellation && bun run test:ci-prompts && bun run test:capgo-app-id-prompt && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:android-keystore-action && bun run test:android-google-play-action && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:cli-headers && bun run test:min-cli-version && bun run test:authenticated-command-invocation && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:bundle-pages && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:app-add-exists && bun run test:app-add-getting-started && bun run test:app-list-output-text && bun run test:app-todo && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:cli-recovery && bun run test:create-supabase-client && bun run test:build-platform-selection && bun run test:builder-project-discovery && bun run test:builder-app-selection && bun run test:builder-login-gate && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:channel-list && bun run test:channel-add-exists && bun run test:wait-log && bun run test:init-guardrails && bun run test:init-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:android-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-gcp && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:2fa-compliance-network && bun run test:organization-set-api-host && bun run test:trial-warning && bun run test:plan-validation",
|
|
198
|
+
"test:suite": "bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:notify-app-ready-background && bun run test:bundle-validation && bun run test:functional && bun run test:semver && bun run test:auto-bump-version && bun run test:auto-bump-ai-diff && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:cordova-upload-mode && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:package-json-guard && bun run test:credentials && bun run test:credentials-export && bun run test:ios-provisioning-map && bun run test:ios-provisioning-command && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:cli-help && bun run test:build-cache-payload && bun run test:build-cancellation && bun run test:ci-prompts && bun run test:capgo-app-id-prompt && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:android-keystore-action && bun run test:android-google-play-action && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:cli-headers && bun run test:min-cli-version && bun run test:authenticated-command-invocation && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:bundle-pages && bun run test:app-set-options && bun run test:settings-parity && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && bun run test:app-created-source && bun run test:app-add-exists && bun run test:app-add-getting-started && bun run test:app-list-output-text && bun run test:app-todo && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:cli-recovery && bun run test:create-supabase-client && bun run test:build-platform-selection && bun run test:builder-project-discovery && bun run test:builder-app-selection && bun run test:builder-login-gate && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-monorepo-targeting && bun run test:init-app-conflict && bun run test:channel-list && bun run test:channel-add-exists && bun run test:wait-log && bun run test:init-guardrails && bun run test:init-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:cicd-failure-help && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-upload-prompt && bun run test:support-bundle-files && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:ios-marketing-version && bun run test:android-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-gcp && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:2fa-compliance-network && bun run test:organization-set-api-host && bun run test:trial-warning && bun run test:plan-validation",
|
|
199
199
|
"test:build-platform-selection": "bun test/test-build-platform-selection.mjs",
|
|
200
200
|
"test:builder-project-discovery": "bun test/test-builder-project-discovery.mjs",
|
|
201
201
|
"test:builder-app-selection": "bun test/test-builder-app-selection.mjs",
|
|
@@ -227,6 +227,7 @@
|
|
|
227
227
|
"test:support-bundle-files": "bun test/test-support-bundle-files.mjs",
|
|
228
228
|
"test:mcp-live-update-onboarding": "bun test/test-mcp-live-update-onboarding.mjs",
|
|
229
229
|
"test:app-set-options": "bun test/test-app-set-options.mjs && bun test/test-app-list-options.mjs",
|
|
230
|
+
"test:settings-parity": "bun test/test-settings-parity.mjs",
|
|
230
231
|
"test:android-reporting-api": "bun test/test-android-reporting-api.mjs",
|
|
231
232
|
"test:android-gcp": "bun test/test-android-gcp.mjs",
|
|
232
233
|
"test:android-app-verification": "bun test/test-android-app-verification.mjs",
|
|
@@ -17,6 +17,25 @@ Use this skill for account and organization administration commands.
|
|
|
17
17
|
- Key option:
|
|
18
18
|
- `-a, --apikey <apikey>`
|
|
19
19
|
|
|
20
|
+
### `account get`
|
|
21
|
+
|
|
22
|
+
- Alias: `g`
|
|
23
|
+
- Example: `npx @capgo/cli@latest account get`
|
|
24
|
+
- Shows the profile and email notification settings of the API key owner.
|
|
25
|
+
|
|
26
|
+
### `account set`
|
|
27
|
+
|
|
28
|
+
- Alias: `s`
|
|
29
|
+
- Example: `npx @capgo/cli@latest account set --first-name Ada --no-newsletter --email-preference weekly_stats=false`
|
|
30
|
+
- Notes:
|
|
31
|
+
- Email, password, 2FA and account deletion stay in the web dashboard because they need an interactive sign-in.
|
|
32
|
+
- Key options:
|
|
33
|
+
- `--first-name <firstName>`, `--last-name <lastName>`, `--country <country>`
|
|
34
|
+
- `--discord-username <username>`, `--format-locale <locale>` (empty or `null` clears)
|
|
35
|
+
- `--notifications`, `--no-notifications`
|
|
36
|
+
- `--newsletter`, `--no-newsletter`
|
|
37
|
+
- `--email-preference <key=bool>` (repeatable)
|
|
38
|
+
|
|
20
39
|
## Organization commands
|
|
21
40
|
|
|
22
41
|
### `organization list`
|
|
@@ -42,6 +61,20 @@ Use this skill for account and organization administration commands.
|
|
|
42
61
|
- Useful before enabling 2FA enforcement.
|
|
43
62
|
- Viewing 2FA status requires `super_admin` rights.
|
|
44
63
|
|
|
64
|
+
### `organization members-invite [orgId]`
|
|
65
|
+
|
|
66
|
+
- Example: `npx @capgo/cli@latest organization members-invite ORG_ID --email teammate@example.com --role org_admin`
|
|
67
|
+
- Roles: `org_member`, `org_billing_admin`, `org_admin`, `org_super_admin`.
|
|
68
|
+
|
|
69
|
+
### `organization members-role [orgId]`
|
|
70
|
+
|
|
71
|
+
- Example: `npx @capgo/cli@latest organization members-role ORG_ID --email teammate@example.com --role org_member`
|
|
72
|
+
- Changes the role of a member or a pending invite.
|
|
73
|
+
|
|
74
|
+
### `organization members-remove [orgId]`
|
|
75
|
+
|
|
76
|
+
- Example: `npx @capgo/cli@latest organization members-remove ORG_ID --email teammate@example.com`
|
|
77
|
+
|
|
45
78
|
### `organization set [orgId]`
|
|
46
79
|
|
|
47
80
|
- Alias: `s`
|
|
@@ -65,6 +98,10 @@ Use this skill for account and organization administration commands.
|
|
|
65
98
|
- `--require-apikey-expiration`, `--no-require-apikey-expiration`
|
|
66
99
|
- `--max-apikey-expiration-days <days>`
|
|
67
100
|
- `--enforce-hashed-api-keys`, `--no-enforce-hashed-api-keys`
|
|
101
|
+
- `--website <url>`
|
|
102
|
+
- `--enforce-encrypted-bundles`, `--no-enforce-encrypted-bundles`
|
|
103
|
+
- `--required-encryption-key <key>`
|
|
104
|
+
- `--email-preference <key=bool>` (repeatable)
|
|
68
105
|
|
|
69
106
|
### `organization delete [orgId]`
|
|
70
107
|
|