@capgo/cli 7.76.5 → 7.76.7

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.76.5",
4
+ "version": "7.76.7",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -63,13 +63,14 @@
63
63
  "test:upload": "bun test/test-upload-validation.mjs",
64
64
  "test:credentials": "bun test/test-credentials.mjs",
65
65
  "test:credentials-validation": "bun test/test-credentials-validation.mjs",
66
+ "test:build-zip-filter": "bun test/test-build-zip-filter.mjs",
66
67
  "test:checksum": "bun test/test-checksum-algorithm.mjs",
67
68
  "test:esm-sdk": "node test/test-sdk-esm.mjs",
68
69
  "test:mcp": "node test/test-mcp.mjs",
69
70
  "test:version-detection": "node test/test-get-installed-version.mjs",
70
71
  "test:version-detection:setup": "./test/fixtures/setup-test-projects.sh",
71
72
  "test:platform-paths": "bun test/test-platform-paths.mjs",
72
- "test": "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:checksum && bun run test:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths"
73
+ "test": "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:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths"
73
74
  },
74
75
  "devDependencies": {
75
76
  "@antfu/eslint-config": "^7.0.0",
@@ -27,6 +27,25 @@
27
27
  */
28
28
  import type { BuildRequestOptions, BuildRequestResult } from '../schemas/build';
29
29
  export type { BuildCredentials, BuildRequestOptions, BuildRequestResponse, BuildRequestResult } from '../schemas/build';
30
+ /**
31
+ * Extract native node_modules roots that contain platform folders.
32
+ */
33
+ interface NativeDependencies {
34
+ packages: Set<string>;
35
+ usesSPM: boolean;
36
+ usesCocoaPods: boolean;
37
+ }
38
+ /**
39
+ * Check if a file path should be included in the zip
40
+ */
41
+ export declare function shouldIncludeFile(filePath: string, platform: 'ios' | 'android', nativeDeps: NativeDependencies, platformDir: string): boolean;
42
+ /**
43
+ * Zip directory for native build, including only necessary files:
44
+ * - ios/ OR android/ folder (based on platform)
45
+ * - node_modules with native code (from Podfile/settings.gradle)
46
+ * - capacitor.config.*, package.json, package-lock.json
47
+ */
48
+ export declare function zipDirectory(projectDir: string, outputPath: string, platform: 'ios' | 'android', capConfig: any): Promise<void>;
30
49
  /**
31
50
  * Request a native build from Capgo's cloud build service
32
51
  *
@@ -0,0 +1,8 @@
1
+ export interface ReplicationProgressOptions {
2
+ interactive?: boolean;
3
+ totalMs?: number;
4
+ updateIntervalMs?: number;
5
+ title?: string;
6
+ completeMessage?: string;
7
+ }
8
+ export declare function showReplicationProgress({ interactive, totalMs, updateIntervalMs, title, completeMessage, }?: ReplicationProgressOptions): Promise<void>;
@@ -50,6 +50,7 @@ export declare const optionsUploadSchema: z.ZodObject<{
50
50
  versionExistsOk: z.ZodOptional<z.ZodBoolean>;
51
51
  selfAssign: z.ZodOptional<z.ZodBoolean>;
52
52
  verbose: z.ZodOptional<z.ZodBoolean>;
53
+ showReplicationProgress: z.ZodOptional<z.ZodBoolean>;
53
54
  }, z.core.$strip>;
54
55
  export type OptionsUpload = z.infer<typeof optionsUploadSchema>;
55
56
  export declare const zipResultSchema: z.ZodObject<{