@capgo/cli 7.95.10 → 7.95.11

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.11",
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",
@@ -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";