@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.
- 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/utils.d.ts +4 -25
- package/package.json +28 -26
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type StandardSchema } from './ark_validation';
|
|
2
2
|
/**
|
|
3
|
-
* Validate options using a
|
|
3
|
+
* Validate options using a Standard Schema with CLI-friendly error messages.
|
|
4
4
|
* Preserves the existing silent/log.error pattern used across all commands.
|
|
5
|
-
*
|
|
6
|
-
* @param schema - The Zod schema to validate against
|
|
7
|
-
* @param data - The data to validate
|
|
8
|
-
* @param silent - If true, suppresses log output (for SDK usage)
|
|
9
|
-
* @returns The parsed and validated data
|
|
10
|
-
* @throws Error with a descriptive message if validation fails
|
|
11
5
|
*/
|
|
12
|
-
export declare function validateOptions<T>(schema:
|
|
6
|
+
export declare function validateOptions<T>(schema: StandardSchema<T>, data: unknown, silent?: boolean): T;
|
package/dist/src/sdk.d.ts
CHANGED
|
@@ -518,17 +518,7 @@ export declare function probeUpdates(options: ProbeOptions): Promise<SDKResult<P
|
|
|
518
518
|
* }
|
|
519
519
|
* ```
|
|
520
520
|
*/
|
|
521
|
-
export declare function getCapacitorConfig(): Promise<
|
|
522
|
-
config: {
|
|
523
|
-
[x: string]: unknown;
|
|
524
|
-
appId: string;
|
|
525
|
-
appName: string;
|
|
526
|
-
webDir: string;
|
|
527
|
-
plugins?: Record<string, any> | undefined;
|
|
528
|
-
android?: Record<string, any> | undefined;
|
|
529
|
-
};
|
|
530
|
-
path: string;
|
|
531
|
-
} | null>;
|
|
521
|
+
export declare function getCapacitorConfig(): Promise<import("./config").ExtConfigPairs | null>;
|
|
532
522
|
export type { BuildCredentials } from './build/request';
|
|
533
523
|
export type { CapacitorConfig } from './config';
|
|
534
524
|
export type { ProbeInternalResult } from './probe';
|