@capgo/cli 8.29.0 → 8.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/index.js +896 -851
  2. package/dist/package.json +28 -26
  3. package/dist/src/analytics/track.d.ts +0 -1
  4. package/dist/src/api/channels.d.ts +4 -1
  5. package/dist/src/app/debug.d.ts +1 -1
  6. package/dist/src/build/credentials.d.ts +1 -1
  7. package/dist/src/build/onboarding/mcp/build-tool-schemas.d.ts +14 -0
  8. package/dist/src/build/onboarding/mcp/build-tools.d.ts +2 -11
  9. package/dist/src/build/onboarding/mcp/credentials-manage.d.ts +12 -31
  10. package/dist/src/build/onboarding/mcp/onboarding-tools.d.ts +2 -20
  11. package/dist/src/bundle/upload_interface.d.ts +0 -1
  12. package/dist/src/channel/list.d.ts +8 -2
  13. package/dist/src/github-command.d.ts +1 -2
  14. package/dist/src/init/mcp/live-update-tools.d.ts +2 -18
  15. package/dist/src/mcp/registrar.d.ts +18 -0
  16. package/dist/src/mcp/tool-schemas.d.ts +127 -0
  17. package/dist/src/schemas/app.d.ts +34 -35
  18. package/dist/src/schemas/ark_validation.d.ts +23 -0
  19. package/dist/src/schemas/arktype.d.ts +2 -0
  20. package/dist/src/schemas/arktype_config.d.ts +1 -0
  21. package/dist/src/schemas/auth.d.ts +7 -14
  22. package/dist/src/schemas/base.d.ts +6 -7
  23. package/dist/src/schemas/build.d.ts +254 -266
  24. package/dist/src/schemas/bundle.d.ts +156 -164
  25. package/dist/src/schemas/channel.d.ts +85 -87
  26. package/dist/src/schemas/common.d.ts +43 -51
  27. package/dist/src/schemas/config.d.ts +12 -20
  28. package/dist/src/schemas/index.d.ts +1 -2
  29. package/dist/src/schemas/live-update-onboarding.d.ts +22 -31
  30. package/dist/src/schemas/onboarding.d.ts +57 -147
  31. package/dist/src/schemas/organization.d.ts +40 -41
  32. package/dist/src/schemas/sdk.d.ts +396 -418
  33. package/dist/src/schemas/validate.d.ts +3 -9
  34. package/dist/src/sdk.d.ts +1 -11
  35. package/dist/src/sdk.js +447 -480
  36. package/dist/src/utils.d.ts +4 -25
  37. package/package.json +28 -26
@@ -91,7 +91,6 @@ interface TrackOptions {
91
91
  */
92
92
  timestamp?: number | Date;
93
93
  }
94
- export type { OptionsBase } from './schemas/base';
95
94
  export declare function wait(ms: number): Promise<unknown>;
96
95
  interface PromptInteractivityOptions {
97
96
  silent?: boolean;
@@ -119,29 +118,9 @@ export declare function getBundleVersion(f?: string, file?: string | undefined):
119
118
  export declare function getInstalledVersion(packageName: string, rootDir?: string, packageJsonPath?: string): Promise<string | null>;
120
119
  export declare function getAllPackagesDependencies(f?: string, file?: string | undefined): Promise<Map<string, string>>;
121
120
  export declare function getDeclaredPackageVersionMap(f?: string, file?: string | undefined): Promise<Map<string, string>>;
122
- export declare function getConfig(silent?: boolean): Promise<{
123
- config: {
124
- [x: string]: unknown;
125
- appId: string;
126
- appName: string;
127
- webDir: string;
128
- plugins?: Record<string, any> | undefined;
129
- android?: Record<string, any> | undefined;
130
- };
131
- path: string;
132
- }>;
121
+ export declare function getConfig(silent?: boolean): Promise<ExtConfigPairs>;
133
122
  /** Loads the source config that a subsequent mutation will write. */
134
- export declare function getConfigForWrite(silent?: boolean): Promise<{
135
- config: {
136
- [x: string]: unknown;
137
- appId: string;
138
- appName: string;
139
- webDir: string;
140
- plugins?: Record<string, any> | undefined;
141
- android?: Record<string, any> | undefined;
142
- };
143
- path: string;
144
- }>;
123
+ export declare function getConfigForWrite(silent?: boolean): Promise<ExtConfigPairs>;
145
124
  export declare function updateConfigbyKey(key: string, newConfig: any): Promise<ExtConfigPairs>;
146
125
  export declare function updateConfigUpdater(newConfig: any): Promise<ExtConfigPairs>;
147
126
  export declare function getLocalConfig(silent?: boolean): Promise<CapgoConfig>;
@@ -5655,7 +5634,7 @@ export declare function generateManifest(path: string): Promise<{
5655
5634
  }[]>;
5656
5635
  export type manifestType = Awaited<ReturnType<typeof generateManifest>>;
5657
5636
  export declare function zipFile(filePath: string): Promise<Buffer>;
5658
- export declare function zipFileUnix(filePath: string): Buffer<ArrayBuffer>;
5637
+ export declare function zipFileUnix(filePath: string): Buffer<ArrayBufferLike>;
5659
5638
  export declare function zipFileWindows(filePath: string): Promise<Buffer>;
5660
5639
  export declare function uploadTUS(apikey: string, data: Buffer, orgId: string, appId: string, name: string, spinner: ReturnType<typeof spinnerC>, localConfig: CapgoConfig, chunkSize: number): Promise<boolean>;
5661
5640
  export declare function deletedFailedVersion(supabase: SupabaseClient<Database>, appId: string, name: string): Promise<void>;
@@ -5751,7 +5730,7 @@ export declare function getRemoteDependencies(supabase: SupabaseClient<Database>
5751
5730
  ios_checksum?: string | undefined;
5752
5731
  android_checksum?: string | undefined;
5753
5732
  }>>;
5754
- export type { Compatibility, CompatibilityDetails, IncompatibilityReason } from './schemas/common';
5733
+ export type { Compatibility, CompatibilityDetails } from './schemas/common';
5755
5734
  export declare function getAppId(appId: string | undefined, config: CapacitorConfig | undefined): any;
5756
5735
  /**
5757
5736
  * Check if a package is compatible and return detailed reasons if not
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.29.0",
4
+ "version": "8.29.1",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -206,18 +206,20 @@
206
206
  },
207
207
  "dependencies": {
208
208
  "@inkjs/ui": "^2.0.0",
209
- "@rrweb/types": "^2.0.1",
209
+ "@rrweb/types": "^2.1.1",
210
210
  "@xterm/addon-serialize": "^0.14.0",
211
211
  "@xterm/headless": "^6.0.0",
212
- "happy-dom": "^20.10.4",
213
- "ink": "^7.0.4",
212
+ "happy-dom": "^20.11.0",
213
+ "ink": "^7.1.1",
214
214
  "ink-spinner": "^5.0.0",
215
215
  "jsonwebtoken": "^9.0.3",
216
216
  "node-forge": "^1.4.0",
217
217
  "qrcode": "^1.5.4",
218
- "react": "^19.2.6",
219
- "rrweb-snapshot": "^2.0.1",
220
- "string-width": "^8.2.1"
218
+ "react": "^19.2.8",
219
+ "rrweb-snapshot": "^2.1.1",
220
+ "string-width": "^8.2.2",
221
+ "arktype": "^2.2.0",
222
+ "@standard-schema/spec": "^1.1.0"
221
223
  },
222
224
  "optionalDependencies": {
223
225
  "@capgo/cli-helper-darwin-arm64": "^1.1.1",
@@ -225,44 +227,44 @@
225
227
  "node-pty": "^1.1.0"
226
228
  },
227
229
  "devDependencies": {
228
- "@antfu/eslint-config": "^9.0.0",
230
+ "@antfu/eslint-config": "^9.2.0",
229
231
  "@bradenmacdonald/s3-lite-client": "npm:@jsr/bradenmacdonald__s3-lite-client@0.9.6",
230
- "@capacitor/cli": "^8.3.4",
232
+ "@capacitor/cli": "^8.4.2",
231
233
  "@capgo/find-package-manager": "^0.0.18",
232
- "@clack/prompts": "^1.4.0",
233
- "@modelcontextprotocol/sdk": "^1.29.0",
234
+ "@clack/prompts": "^1.7.0",
235
+ "@modelcontextprotocol/client": "^2.0.0-beta.5",
236
+ "@modelcontextprotocol/server": "^2.0.0-beta.5",
234
237
  "@sauber/table": "npm:@jsr/sauber__table",
235
238
  "@std/semver": "npm:@jsr/std__semver@1.0.8",
236
- "@supabase/supabase-js": "^2.106.2",
237
- "@tanstack/intent": "^0.0.41",
239
+ "@supabase/supabase-js": "^2.110.8",
240
+ "@tanstack/intent": "^0.3.6",
238
241
  "@types/adm-zip": "^0.5.8",
239
242
  "@types/jsonwebtoken": "^9.0.10",
240
- "@types/node": "^25.9.1",
243
+ "@types/node": "^26.1.1",
241
244
  "@types/node-forge": "^1.3.14",
242
245
  "@types/prettyjson": "^0.0.33",
243
246
  "@types/qrcode": "^1.5.6",
244
- "@types/react": "^19.2.15",
247
+ "@types/react": "^19.2.17",
245
248
  "@types/tmp": "^0.2.6",
246
249
  "@types/ws": "^8.18.1",
247
- "@typescript/native-preview": "7.0.0-dev.20260526.1",
248
- "@vercel/ncc": "^0.38.4",
250
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
251
+ "@vercel/ncc": "^0.44.1",
249
252
  "@xterm/headless": "^6.0.0",
250
- "adm-zip": "^0.5.17",
253
+ "adm-zip": "^0.6.0",
251
254
  "ci-info": "^4.4.0",
252
- "commander": "^14.0.3",
253
- "eslint": "^10.4.0",
255
+ "commander": "^15.0.0",
256
+ "eslint": "^10.7.0",
254
257
  "git-format-staged": "4.0.1",
255
258
  "husky": "^9.1.7",
256
259
  "is-wsl": "^3.1.1",
257
260
  "micromatch": "^4.0.8",
258
261
  "open": "^11.0.0",
259
- "oxlint": "^1.67.0",
260
- "partysocket": "^1.1.19",
262
+ "oxlint": "^1.75.0",
263
+ "partysocket": "^1.3.0",
261
264
  "prettyjson": "^1.2.5",
262
- "tmp": "^0.2.6",
265
+ "tmp": "^0.2.7",
263
266
  "tus-js-client": "^4.3.1",
264
- "typescript": "^6.0.3",
265
- "ws": "^8.21.0",
266
- "zod": "^4.4.3"
267
+ "typescript": "6.0.3",
268
+ "ws": "^8.21.1"
267
269
  }
268
270
  }