@capgo/cli 8.28.2 → 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.
- package/dist/index.js +896 -851
- package/dist/package.json +28 -26
- package/dist/src/analytics/track.d.ts +0 -1
- package/dist/src/api/channels.d.ts +4 -1
- package/dist/src/app/debug.d.ts +1 -1
- package/dist/src/build/credentials.d.ts +1 -1
- package/dist/src/build/onboarding/mcp/build-tool-schemas.d.ts +14 -0
- package/dist/src/build/onboarding/mcp/build-tools.d.ts +2 -11
- package/dist/src/build/onboarding/mcp/credentials-manage.d.ts +12 -31
- package/dist/src/build/onboarding/mcp/onboarding-tools.d.ts +2 -20
- package/dist/src/bundle/upload_interface.d.ts +0 -1
- package/dist/src/channel/list.d.ts +8 -2
- package/dist/src/github-command.d.ts +1 -2
- package/dist/src/init/mcp/live-update-tools.d.ts +2 -18
- package/dist/src/mcp/registrar.d.ts +18 -0
- package/dist/src/mcp/tool-schemas.d.ts +127 -0
- package/dist/src/schemas/app.d.ts +34 -35
- package/dist/src/schemas/ark_validation.d.ts +23 -0
- package/dist/src/schemas/arktype.d.ts +2 -0
- package/dist/src/schemas/arktype_config.d.ts +1 -0
- package/dist/src/schemas/auth.d.ts +7 -14
- package/dist/src/schemas/base.d.ts +6 -7
- package/dist/src/schemas/build.d.ts +254 -266
- package/dist/src/schemas/bundle.d.ts +156 -164
- package/dist/src/schemas/channel.d.ts +85 -87
- package/dist/src/schemas/common.d.ts +43 -51
- package/dist/src/schemas/config.d.ts +12 -20
- package/dist/src/schemas/index.d.ts +1 -2
- package/dist/src/schemas/live-update-onboarding.d.ts +22 -31
- package/dist/src/schemas/onboarding.d.ts +57 -147
- package/dist/src/schemas/organization.d.ts +40 -41
- package/dist/src/schemas/sdk.d.ts +396 -418
- package/dist/src/schemas/validate.d.ts +3 -9
- package/dist/src/sdk.d.ts +1 -11
- package/dist/src/sdk.js +447 -480
- package/dist/src/types/supabase.types.d.ts +3 -0
- package/dist/src/utils.d.ts +7 -25
- package/package.json +28 -26
|
@@ -1596,6 +1596,7 @@ export type Database = {
|
|
|
1596
1596
|
updates: number;
|
|
1597
1597
|
updates_external: number | null;
|
|
1598
1598
|
updates_last_month: number | null;
|
|
1599
|
+
upgrade_rate_12m: number;
|
|
1599
1600
|
upgraded_orgs: number;
|
|
1600
1601
|
trial_extended_orgs: number;
|
|
1601
1602
|
trial_extended_subscribed_orgs: number;
|
|
@@ -1687,6 +1688,7 @@ export type Database = {
|
|
|
1687
1688
|
updates: number;
|
|
1688
1689
|
updates_external?: number | null;
|
|
1689
1690
|
updates_last_month?: number | null;
|
|
1691
|
+
upgrade_rate_12m?: number;
|
|
1690
1692
|
upgraded_orgs?: number;
|
|
1691
1693
|
trial_extended_orgs?: number;
|
|
1692
1694
|
trial_extended_subscribed_orgs?: number;
|
|
@@ -1778,6 +1780,7 @@ export type Database = {
|
|
|
1778
1780
|
updates?: number;
|
|
1779
1781
|
updates_external?: number | null;
|
|
1780
1782
|
updates_last_month?: number | null;
|
|
1783
|
+
upgrade_rate_12m?: number;
|
|
1781
1784
|
upgraded_orgs?: number;
|
|
1782
1785
|
trial_extended_orgs?: number;
|
|
1783
1786
|
trial_extended_subscribed_orgs?: number;
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -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>;
|
|
@@ -1678,6 +1657,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1678
1657
|
updates: number;
|
|
1679
1658
|
updates_external: number | null;
|
|
1680
1659
|
updates_last_month: number | null;
|
|
1660
|
+
upgrade_rate_12m: number;
|
|
1681
1661
|
upgraded_orgs: number;
|
|
1682
1662
|
trial_extended_orgs: number;
|
|
1683
1663
|
trial_extended_subscribed_orgs: number;
|
|
@@ -1769,6 +1749,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1769
1749
|
updates: number;
|
|
1770
1750
|
updates_external?: number | null;
|
|
1771
1751
|
updates_last_month?: number | null;
|
|
1752
|
+
upgrade_rate_12m?: number;
|
|
1772
1753
|
upgraded_orgs?: number;
|
|
1773
1754
|
trial_extended_orgs?: number;
|
|
1774
1755
|
trial_extended_subscribed_orgs?: number;
|
|
@@ -1860,6 +1841,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1860
1841
|
updates?: number;
|
|
1861
1842
|
updates_external?: number | null;
|
|
1862
1843
|
updates_last_month?: number | null;
|
|
1844
|
+
upgrade_rate_12m?: number;
|
|
1863
1845
|
upgraded_orgs?: number;
|
|
1864
1846
|
trial_extended_orgs?: number;
|
|
1865
1847
|
trial_extended_subscribed_orgs?: number;
|
|
@@ -5652,7 +5634,7 @@ export declare function generateManifest(path: string): Promise<{
|
|
|
5652
5634
|
}[]>;
|
|
5653
5635
|
export type manifestType = Awaited<ReturnType<typeof generateManifest>>;
|
|
5654
5636
|
export declare function zipFile(filePath: string): Promise<Buffer>;
|
|
5655
|
-
export declare function zipFileUnix(filePath: string): Buffer<
|
|
5637
|
+
export declare function zipFileUnix(filePath: string): Buffer<ArrayBufferLike>;
|
|
5656
5638
|
export declare function zipFileWindows(filePath: string): Promise<Buffer>;
|
|
5657
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>;
|
|
5658
5640
|
export declare function deletedFailedVersion(supabase: SupabaseClient<Database>, appId: string, name: string): Promise<void>;
|
|
@@ -5748,7 +5730,7 @@ export declare function getRemoteDependencies(supabase: SupabaseClient<Database>
|
|
|
5748
5730
|
ios_checksum?: string | undefined;
|
|
5749
5731
|
android_checksum?: string | undefined;
|
|
5750
5732
|
}>>;
|
|
5751
|
-
export type { Compatibility, CompatibilityDetails
|
|
5733
|
+
export type { Compatibility, CompatibilityDetails } from './schemas/common';
|
|
5752
5734
|
export declare function getAppId(appId: string | undefined, config: CapacitorConfig | undefined): any;
|
|
5753
5735
|
/**
|
|
5754
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.
|
|
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.
|
|
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.
|
|
213
|
-
"ink": "^7.
|
|
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.
|
|
219
|
-
"rrweb-snapshot": "^2.
|
|
220
|
-
"string-width": "^8.2.
|
|
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.
|
|
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.
|
|
232
|
+
"@capacitor/cli": "^8.4.2",
|
|
231
233
|
"@capgo/find-package-manager": "^0.0.18",
|
|
232
|
-
"@clack/prompts": "^1.
|
|
233
|
-
"@modelcontextprotocol/
|
|
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.
|
|
237
|
-
"@tanstack/intent": "^0.
|
|
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": "^
|
|
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.
|
|
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.
|
|
248
|
-
"@vercel/ncc": "^0.
|
|
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.
|
|
253
|
+
"adm-zip": "^0.6.0",
|
|
251
254
|
"ci-info": "^4.4.0",
|
|
252
|
-
"commander": "^
|
|
253
|
-
"eslint": "^10.
|
|
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.
|
|
260
|
-
"partysocket": "^1.
|
|
262
|
+
"oxlint": "^1.75.0",
|
|
263
|
+
"partysocket": "^1.3.0",
|
|
261
264
|
"prettyjson": "^1.2.5",
|
|
262
|
-
"tmp": "^0.2.
|
|
265
|
+
"tmp": "^0.2.7",
|
|
263
266
|
"tus-js-client": "^4.3.1",
|
|
264
|
-
"typescript": "
|
|
265
|
-
"ws": "^8.21.
|
|
266
|
-
"zod": "^4.4.3"
|
|
267
|
+
"typescript": "6.0.3",
|
|
268
|
+
"ws": "^8.21.1"
|
|
267
269
|
}
|
|
268
270
|
}
|