@capgo/cli 7.95.10 → 7.95.12

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "7.95.10",
4
+ "version": "7.95.12",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -86,7 +86,8 @@
86
86
  "test:version-detection:setup": "./test/fixtures/setup-test-projects.sh",
87
87
  "test:platform-paths": "bun test/test-platform-paths.mjs",
88
88
  "test:payload-split": "bun test/test-payload-split.mjs",
89
- "test": "bun run build && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:credentials && bun run test:credentials-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:ci-prompts && bun run test:onboarding-recovery && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths && bun run test:payload-split"
89
+ "test": "bun run build && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:credentials && bun run test:credentials-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:ci-prompts && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths && bun run test:payload-split",
90
+ "test:build-platform-selection": "bun test/test-build-platform-selection.mjs"
90
91
  },
91
92
  "dependencies": {
92
93
  "@inkjs/ui": "^2.0.0",
@@ -3241,42 +3241,6 @@ export declare function findChannelDevices(supabase: SupabaseClient<Database>, a
3241
3241
  name: string;
3242
3242
  }[];
3243
3243
  };
3244
- get_accessible_apps_for_apikey_v2: {
3245
- Args: {
3246
- apikey: string;
3247
- };
3248
- Returns: {
3249
- allow_device_custom_id: boolean;
3250
- allow_preview: boolean;
3251
- android_store_url: string | null;
3252
- app_id: string;
3253
- channel_device_count: number;
3254
- created_at: string | null;
3255
- default_upload_channel: string;
3256
- existing_app: boolean;
3257
- expose_metadata: boolean;
3258
- icon_url: string;
3259
- id: string | null;
3260
- ios_store_url: string | null;
3261
- last_version: string | null;
3262
- manifest_bundle_count: number;
3263
- name: string | null;
3264
- need_onboarding: boolean;
3265
- owner_org: string;
3266
- retention: number;
3267
- stats_refresh_requested_at: string | null;
3268
- stats_updated_at: string | null;
3269
- transfer_history: import("../types/supabase.types").Json[] | null;
3270
- updated_at: string | null;
3271
- user_id: string | null;
3272
- }[];
3273
- SetofOptions: {
3274
- from: "*";
3275
- to: "apps";
3276
- isOneToOne: false;
3277
- isSetofReturn: true;
3278
- };
3279
- };
3280
3244
  get_account_removal_date: {
3281
3245
  Args: never;
3282
3246
  Returns: string;
@@ -8420,42 +8384,6 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
8420
8384
  name: string;
8421
8385
  }[];
8422
8386
  };
8423
- get_accessible_apps_for_apikey_v2: {
8424
- Args: {
8425
- apikey: string;
8426
- };
8427
- Returns: {
8428
- allow_device_custom_id: boolean;
8429
- allow_preview: boolean;
8430
- android_store_url: string | null;
8431
- app_id: string;
8432
- channel_device_count: number;
8433
- created_at: string | null;
8434
- default_upload_channel: string;
8435
- existing_app: boolean;
8436
- expose_metadata: boolean;
8437
- icon_url: string;
8438
- id: string | null;
8439
- ios_store_url: string | null;
8440
- last_version: string | null;
8441
- manifest_bundle_count: number;
8442
- name: string | null;
8443
- need_onboarding: boolean;
8444
- owner_org: string;
8445
- retention: number;
8446
- stats_refresh_requested_at: string | null;
8447
- stats_updated_at: string | null;
8448
- transfer_history: import("../types/supabase.types").Json[] | null;
8449
- updated_at: string | null;
8450
- user_id: string | null;
8451
- }[];
8452
- SetofOptions: {
8453
- from: "*";
8454
- to: "apps";
8455
- isOneToOne: false;
8456
- isSetofReturn: true;
8457
- };
8458
- };
8459
8387
  get_account_removal_date: {
8460
8388
  Args: never;
8461
8389
  Returns: string;
@@ -43,6 +43,13 @@ export interface BuildLogger {
43
43
  /** Called with custom messages from the builder (QR codes, etc.) */
44
44
  customMsg: (kind: string, data: Record<string, unknown>) => void | Promise<void>;
45
45
  }
46
+ type BuildPlatform = 'ios' | 'android';
47
+ interface ResolveBuildPlatformOptions {
48
+ silent?: boolean;
49
+ interactive?: boolean;
50
+ promptPlatform?: () => Promise<unknown>;
51
+ }
52
+ export declare function resolveBuildPlatform(platform: string | undefined, { silent, interactive, promptPlatform, }?: ResolveBuildPlatformOptions): Promise<BuildPlatform>;
46
53
  export type { BuildCredentials, BuildRequestOptions, BuildRequestResponse, BuildRequestResult } from '../schemas/build';
47
54
  /**
48
55
  * Extract native node_modules roots that contain platform folders.
@@ -21,10 +21,10 @@ export declare const buildRequestOptionsSchema: z.ZodObject<{
21
21
  supaAnon: z.ZodOptional<z.ZodString>;
22
22
  path: z.ZodOptional<z.ZodString>;
23
23
  nodeModules: z.ZodOptional<z.ZodString>;
24
- platform: z.ZodEnum<{
24
+ platform: z.ZodOptional<z.ZodEnum<{
25
25
  android: "android";
26
26
  ios: "ios";
27
- }>;
27
+ }>>;
28
28
  buildMode: z.ZodOptional<z.ZodEnum<{
29
29
  debug: "debug";
30
30
  release: "release";