@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
package/dist/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
  }
@@ -1,6 +1,5 @@
1
1
  import { withSupabaseSource } from './supabase-perf';
2
2
  export { getGlobalAnalyticsProps, getInvocationSource, setInvocationSource } from './global-props';
3
- export type { GlobalAnalyticsProps, InvocationSource } from './global-props';
4
3
  export declare function isTelemetryDisabled(): boolean;
5
4
  export declare function flushAnalytics(timeoutMs?: number): Promise<void>;
6
5
  export declare function resolveTrackingContext(apikey: string, signal?: AbortSignal): Promise<{
@@ -112,5 +112,8 @@ export declare function getActiveChannels(supabase: SupabaseClient<Database>, ap
112
112
  allow_device: boolean;
113
113
  allow_dev: boolean;
114
114
  allow_prod: boolean;
115
- version?: any;
115
+ version?: {
116
+ [x: string]: unknown;
117
+ name?: string | undefined;
118
+ } | undefined;
116
119
  }[]>;
@@ -1,6 +1,5 @@
1
1
  import type { AppDebugOptions } from '../schemas/app';
2
2
  import type { Database } from '../types/supabase.types';
3
- export type { AppDebugOptions as OptionsBaseDebug } from '../schemas/app';
4
3
  export declare function markSnag(channel: string, orgId: string, apikey: string, event: string, appId?: string, icon?: string, tags?: Record<string, string | number | boolean>): Promise<void>;
5
4
  export declare function cancelCommand(channel: string, command: boolean | symbol, orgId: string, apikey: string): Promise<void>;
6
5
  interface Order {
@@ -27,3 +26,4 @@ interface LogData {
27
26
  export declare function getStats(apikey: string, query: QueryStats, after: string | null): Promise<LogData[]>;
28
27
  export declare function waitLog(channel: string, apikey: string, appId: string, orgId: string, deviceId?: string): Promise<void>;
29
28
  export declare function debugApp(appId: string, options: AppDebugOptions): Promise<void>;
29
+ export {};
@@ -22,7 +22,7 @@ import type { CredentialFile, SavedCredentials } from '../schemas/build';
22
22
  import type { BuildCredentials } from './request';
23
23
  export declare const MIN_OUTPUT_RETENTION_SECONDS: number;
24
24
  export declare const MAX_OUTPUT_RETENTION_SECONDS: number;
25
- export type { AllCredentials, CredentialFile, SavedCredentials } from '../schemas/build';
25
+ export type { CredentialFile, SavedCredentials } from '../schemas/build';
26
26
  export declare function parseOutputRetentionSeconds(raw: string): number;
27
27
  export declare function parseOptionalBoolean(value: boolean | string | undefined): boolean;
28
28
  export declare function parseInAppUpdatePriority(value: number | string): number;
@@ -0,0 +1,14 @@
1
+ export declare const startCapgoBuildInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ platform: "android" | "ios";
3
+ }, {}>;
4
+ export declare const capgoBuildWaitInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
5
+ job_id: string;
6
+ timeout_seconds?: number | undefined;
7
+ }, {}>;
8
+ export declare const capgoBuildLogsInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
9
+ job_id: string;
10
+ cursor?: number | undefined;
11
+ }, {}>;
12
+ export declare const cancelCapgoBuildInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
13
+ job_id: string;
14
+ }, {}>;
@@ -1,13 +1,5 @@
1
+ import type { McpRegistrar } from '../../../mcp/registrar.js';
1
2
  import type { BuildJobDeps } from './build-job.js';
2
- /** Minimal shape of the MCP server's tool registrar (matches McpServer.tool / McpLike). */
3
- interface ToolRegistrar {
4
- tool: (name: string, description: string, schema: Record<string, unknown>, handler: (args: any) => Promise<{
5
- content: Array<{
6
- type: 'text';
7
- text: string;
8
- }>;
9
- }>) => unknown;
10
- }
11
3
  /**
12
4
  * Production build-job deps: spawn the published CLI's `build request` as a
13
5
  * tracked background child streaming to a local log file, read/clear the build
@@ -21,5 +13,4 @@ export declare function buildJobDeps(cwd: string): BuildJobDeps;
21
13
  * project's Capgo app id; `deps` are the build-job mechanics (production via
22
14
  * buildJobDeps; injectable fakes in tests).
23
15
  */
24
- export declare function registerBuildTools(server: ToolRegistrar, getAppId: () => Promise<string | undefined>, deps: BuildJobDeps): void;
25
- export {};
16
+ export declare function registerBuildTools(server: McpRegistrar, getAppId: () => Promise<string | undefined>, deps: BuildJobDeps): void;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import type { McpRegistrar } from '../../../mcp/registrar.js';
2
2
  import { loadSavedCredentials, removeSavedCredentialKeys, updateSavedCredentials } from '../../credentials.js';
3
3
  import { exportCredentialsToEnv } from '../env-export.js';
4
4
  /** The canonical Capgo credential field names (buildCredentialsSchema). Used only for a gentle typo nudge. */
@@ -46,34 +46,15 @@ export declare function buildCredentialsManageDeps(getAppId: () => Promise<strin
46
46
  * Returns guidance instead of throwing for every expected "can't do that" case so the assistant can recover.
47
47
  */
48
48
  export declare function runCredentialsManage(input: CredentialsManageInput, deps: CredentialsManageDeps): Promise<string>;
49
- /** zod shape for the tool's arguments. */
50
- export declare const credentialsManageSchema: {
51
- action: z.ZodEnum<{
52
- set: "set";
53
- list: "list";
54
- export: "export";
55
- remove: "remove";
56
- }>;
57
- platform: z.ZodOptional<z.ZodEnum<{
58
- android: "android";
59
- ios: "ios";
60
- }>>;
61
- key: z.ZodOptional<z.ZodString>;
62
- value: z.ZodOptional<z.ZodString>;
63
- valueFile: z.ZodOptional<z.ZodString>;
64
- path: z.ZodOptional<z.ZodString>;
65
- overwrite: z.ZodOptional<z.ZodBoolean>;
66
- appId: z.ZodOptional<z.ZodString>;
67
- };
68
- /** Minimal MCP server surface this registers against (mirrors onboarding-tools' McpLike.tool). */
69
- interface ToolRegistrar {
70
- tool: (name: string, description: string, schema: Record<string, unknown>, handler: (args: CredentialsManageInput) => Promise<{
71
- content: Array<{
72
- type: 'text';
73
- text: string;
74
- }>;
75
- }>) => unknown;
76
- }
49
+ export declare const credentialsManageSchema: import("arktype/internal/variants/object.ts").ObjectType<{
50
+ action: "remove" | "set" | "list" | "export";
51
+ platform?: "android" | "ios" | undefined;
52
+ key?: string | undefined;
53
+ value?: string | undefined;
54
+ valueFile?: string | undefined;
55
+ path?: string | undefined;
56
+ overwrite?: boolean | undefined;
57
+ appId?: string | undefined;
58
+ }, {}>;
77
59
  /** Register `capgo_builder_credentials_manage` on the given MCP server, bound to a getAppId resolver. */
78
- export declare function registerCredentialsManageTool(server: ToolRegistrar, getAppId: () => Promise<string | undefined>, depsOverride?: CredentialsManageDeps): void;
79
- export {};
60
+ export declare function registerCredentialsManageTool(server: McpRegistrar, getAppId: () => Promise<string | undefined>, depsOverride?: CredentialsManageDeps): void;
@@ -1,25 +1,8 @@
1
1
  import type { CapgoSDK } from '../../../sdk.js';
2
+ import type { McpRegistrar } from '../../../mcp/registrar.js';
2
3
  import type { EngineDeps } from './engine.js';
3
4
  import type { BuildJobDeps } from './build-job.js';
4
5
  import { type CredentialsManageDeps } from './credentials-manage.js';
5
- /** Minimal shape of the MCP server's tool registrar (matches McpServer.tool). */
6
- interface McpLike {
7
- tool: (name: string, description: string, schema: Record<string, unknown>, handler: (args: any) => Promise<{
8
- content: Array<{
9
- type: 'text';
10
- text: string;
11
- }>;
12
- }>) => unknown;
13
- prompt?: (name: string, description: string, handler: () => {
14
- messages: Array<{
15
- role: 'user' | 'assistant';
16
- content: {
17
- type: 'text';
18
- text: string;
19
- };
20
- }>;
21
- }) => unknown;
22
- }
23
6
  /**
24
7
  * Production EngineDeps wiring. Exported for tests that pin production-only
25
8
  * behavior (clearBuildRecord wiring, keystore file modes).
@@ -29,5 +12,4 @@ export declare function buildDeps(getSdk: () => CapgoSDK): EngineDeps;
29
12
  * Register the 2-tool onboarding spine onto an MCP server.
30
13
  * `depsOverride` is for tests; production passes only `server` + `sdk`.
31
14
  */
32
- export declare function registerOnboardingTools(server: McpLike, getSdk: () => CapgoSDK, depsOverride?: EngineDeps, buildJobDepsOverride?: BuildJobDeps, credentialsManageDepsOverride?: CredentialsManageDeps): void;
33
- export {};
15
+ export declare function registerOnboardingTools(server: McpRegistrar, getSdk: () => CapgoSDK, depsOverride?: EngineDeps, buildJobDepsOverride?: BuildJobDeps, credentialsManageDepsOverride?: CredentialsManageDeps): void;
@@ -1,2 +1 @@
1
- export { optionsUploadSchema } from '../schemas/bundle';
2
1
  export type { OptionsUpload } from '../schemas/bundle';
@@ -12,7 +12,10 @@ export declare function listChannelsInternal(appId: string, options: OptionsBase
12
12
  allow_device: boolean;
13
13
  allow_dev: boolean;
14
14
  allow_prod: boolean;
15
- version?: any;
15
+ version?: {
16
+ [x: string]: unknown;
17
+ name?: string | undefined;
18
+ } | undefined;
16
19
  }[]>;
17
20
  export declare function listChannels(appId: string, options: OptionsBase): Promise<{
18
21
  id: number;
@@ -27,5 +30,8 @@ export declare function listChannels(appId: string, options: OptionsBase): Promi
27
30
  allow_device: boolean;
28
31
  allow_dev: boolean;
29
32
  allow_prod: boolean;
30
- version?: any;
33
+ version?: {
34
+ [x: string]: unknown;
35
+ name?: string | undefined;
36
+ } | undefined;
31
37
  }[]>;
@@ -1,4 +1,3 @@
1
- import { defaultStarRepo } from './github';
2
1
  export declare function starRepositoryCommand(repository?: string): void;
3
2
  interface StarAllCommandOptions {
4
3
  minDelayMs?: string;
@@ -6,4 +5,4 @@ interface StarAllCommandOptions {
6
5
  maxConcurrency?: string;
7
6
  }
8
7
  export declare function starAllRepositoriesCommand(repositories: string[], options: StarAllCommandOptions): Promise<void>;
9
- export { defaultStarRepo };
8
+ export {};
@@ -1,23 +1,7 @@
1
1
  import type { CapgoSDK } from '../../sdk.js';
2
2
  import type { LiveUpdateStartInput } from '../../schemas/live-update-onboarding.js';
3
+ import type { McpRegistrar } from '../../mcp/registrar.js';
3
4
  import type { EngineDeps } from './engine.js';
4
- interface McpLike {
5
- tool: (name: string, description: string, schema: Record<string, unknown>, handler: (args: any) => Promise<{
6
- content: Array<{
7
- type: 'text';
8
- text: string;
9
- }>;
10
- }>) => unknown;
11
- prompt?: (name: string, description: string, handler: () => {
12
- messages: Array<{
13
- role: 'user' | 'assistant';
14
- content: {
15
- type: 'text';
16
- text: string;
17
- };
18
- }>;
19
- }) => unknown;
20
- }
21
5
  export interface LiveUpdateProjectTarget {
22
6
  packageJsonPath?: string;
23
7
  mainFilePath?: string;
@@ -25,5 +9,5 @@ export interface LiveUpdateProjectTarget {
25
9
  type LiveUpdateProjectTargetInput = Pick<LiveUpdateStartInput, 'packageJson' | 'mainFile'>;
26
10
  export declare function resolveLiveUpdateProjectTarget(input: LiveUpdateProjectTargetInput, initialCwd?: string): LiveUpdateProjectTarget;
27
11
  export declare function buildDeps(sdk: CapgoSDK, cwd?: string, getProjectTarget?: () => LiveUpdateProjectTarget | undefined): EngineDeps;
28
- export declare function registerLiveUpdateTools(server: McpLike, sdk: CapgoSDK, depsOverride?: EngineDeps): void;
12
+ export declare function registerLiveUpdateTools(server: McpRegistrar, sdk: CapgoSDK, depsOverride?: EngineDeps): void;
29
13
  export {};
@@ -0,0 +1,18 @@
1
+ /** Minimal MCP server surface used by Capgo tool registration helpers and tests. */
2
+ export interface McpRegistrar {
3
+ registerTool: (name: string, config: {
4
+ description: string;
5
+ inputSchema?: unknown;
6
+ }, handler: (...args: any[]) => any) => unknown;
7
+ registerPrompt: (name: string, config: {
8
+ description: string;
9
+ }, handler: () => {
10
+ messages: Array<{
11
+ role: 'user' | 'assistant';
12
+ content: {
13
+ type: 'text';
14
+ text: string;
15
+ };
16
+ }>;
17
+ }) => unknown;
18
+ }
@@ -0,0 +1,127 @@
1
+ export declare const mcpAddAppInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ appId: string;
3
+ name?: string | undefined;
4
+ icon?: string | undefined;
5
+ }, {}>;
6
+ export declare const mcpUpdateAppInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
7
+ appId: string;
8
+ name?: string | undefined;
9
+ icon?: string | undefined;
10
+ retention?: number | undefined;
11
+ }, {}>;
12
+ export declare const mcpDeleteAppInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
13
+ appId: string;
14
+ }, {}>;
15
+ export declare const mcpUploadBundleInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
16
+ appId: string;
17
+ path: string;
18
+ bundle?: string | undefined;
19
+ channel?: string | undefined;
20
+ rollout?: number | undefined;
21
+ rolloutPercentageBps?: number | undefined;
22
+ rolloutCacheTtlSeconds?: number | undefined;
23
+ comment?: string | undefined;
24
+ minUpdateVersion?: string | undefined;
25
+ autoMinUpdateVersion?: boolean | undefined;
26
+ autoSetBundle?: boolean | undefined;
27
+ encrypt?: boolean | undefined;
28
+ capacitorConfig?: string | undefined;
29
+ }, {}>;
30
+ export declare const mcpListBundlesInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
31
+ appId: string;
32
+ }, {}>;
33
+ export declare const mcpDeleteBundleInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
34
+ appId: string;
35
+ bundleId: string;
36
+ }, {}>;
37
+ export declare const mcpCleanupBundlesInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
38
+ appId: string;
39
+ keep?: number | undefined;
40
+ bundle?: string | undefined;
41
+ force?: boolean | undefined;
42
+ ignoreChannel?: boolean | undefined;
43
+ }, {}>;
44
+ export declare const mcpCheckCompatibilityInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
45
+ appId: string;
46
+ channel: string;
47
+ packageJson?: string | undefined;
48
+ }, {}>;
49
+ export declare const mcpListChannelsInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
50
+ appId: string;
51
+ }, {}>;
52
+ export declare const mcpAddChannelInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
53
+ appId: string;
54
+ channelId: string;
55
+ default?: boolean | undefined;
56
+ selfAssign?: boolean | undefined;
57
+ }, {}>;
58
+ export declare const mcpUpdateChannelInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
59
+ channelId: string;
60
+ appId: string;
61
+ bundle?: string | undefined;
62
+ state?: string | undefined;
63
+ downgrade?: boolean | undefined;
64
+ ios?: boolean | undefined;
65
+ android?: boolean | undefined;
66
+ selfAssign?: boolean | undefined;
67
+ disableAutoUpdate?: string | undefined;
68
+ dev?: boolean | undefined;
69
+ emulator?: boolean | undefined;
70
+ device?: boolean | undefined;
71
+ prod?: boolean | undefined;
72
+ rolloutBundle?: string | undefined;
73
+ rolloutPercentage?: number | undefined;
74
+ rolloutPercentageBps?: number | undefined;
75
+ rolloutEnable?: boolean | undefined;
76
+ rolloutDisable?: boolean | undefined;
77
+ rolloutPause?: boolean | undefined;
78
+ rolloutResume?: boolean | undefined;
79
+ rolloutRollback?: boolean | undefined;
80
+ rolloutPromote?: boolean | undefined;
81
+ rolloutCacheTtlSeconds?: number | undefined;
82
+ autoPauseEnabled?: boolean | undefined;
83
+ autoPauseDisabled?: boolean | undefined;
84
+ autoPauseWindowMinutes?: number | undefined;
85
+ autoPauseFailureRateBps?: number | null | undefined;
86
+ autoPauseConfidence?: number | undefined;
87
+ autoPauseMinAttempts?: number | null | undefined;
88
+ autoPauseMinFailures?: number | null | undefined;
89
+ autoPauseAction?: "pause" | "rollback" | "notify" | undefined;
90
+ autoPauseCooldownMinutes?: number | undefined;
91
+ }, {}>;
92
+ export declare const mcpDeleteChannelInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
93
+ appId: string;
94
+ channelId: string;
95
+ deleteBundle?: boolean | undefined;
96
+ }, {}>;
97
+ export declare const mcpGetCurrentBundleInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
98
+ appId: string;
99
+ channelId: string;
100
+ }, {}>;
101
+ export declare const mcpAddOrganizationInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
102
+ name: string;
103
+ email: string;
104
+ }, {}>;
105
+ export declare const mcpDoctorInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
106
+ packageJson?: string | undefined;
107
+ }, {}>;
108
+ export declare const mcpGetStatsInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
109
+ appId: string;
110
+ deviceIds?: string[] | undefined;
111
+ limit?: number | undefined;
112
+ rangeStart?: string | undefined;
113
+ rangeEnd?: string | undefined;
114
+ }, {}>;
115
+ export declare const mcpRequestBuildInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
116
+ appId: string;
117
+ platform: "android" | "ios";
118
+ path?: string | undefined;
119
+ nodeModules?: string | undefined;
120
+ }, {}>;
121
+ export declare const mcpGenerateEncryptionKeysInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
122
+ force?: boolean | undefined;
123
+ capacitorConfig?: string | undefined;
124
+ }, {}>;
125
+ export declare const mcpProbeInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
126
+ platform: "android" | "ios";
127
+ }, {}>;
@@ -1,35 +1,34 @@
1
- import { z } from 'zod';
2
- export declare const appOptionsSchema: z.ZodObject<{
3
- apikey: z.ZodString;
4
- supaHost: z.ZodOptional<z.ZodString>;
5
- supaAnon: z.ZodOptional<z.ZodString>;
6
- name: z.ZodOptional<z.ZodString>;
7
- icon: z.ZodOptional<z.ZodString>;
8
- retention: z.ZodOptional<z.ZodNumber>;
9
- exposeMetadata: z.ZodOptional<z.ZodBoolean>;
10
- preview: z.ZodOptional<z.ZodBoolean>;
11
- allowDeviceCustomId: z.ZodOptional<z.ZodBoolean>;
12
- blockProviderInfraRequests: z.ZodOptional<z.ZodBoolean>;
13
- buildTimeoutMinutes: z.ZodOptional<z.ZodNumber>;
14
- iosStoreUrl: z.ZodOptional<z.ZodString>;
15
- androidStoreUrl: z.ZodOptional<z.ZodString>;
16
- defaultUploadChannel: z.ZodOptional<z.ZodString>;
17
- defaultDownloadChannel: z.ZodOptional<z.ZodString>;
18
- disableDownloadChannels: z.ZodOptional<z.ZodBoolean>;
19
- }, z.core.$strip>;
20
- export type AppOptions = z.infer<typeof appOptionsSchema>;
21
- export declare const appDebugOptionsSchema: z.ZodObject<{
22
- apikey: z.ZodString;
23
- supaHost: z.ZodOptional<z.ZodString>;
24
- supaAnon: z.ZodOptional<z.ZodString>;
25
- device: z.ZodOptional<z.ZodString>;
26
- }, z.core.$strip>;
27
- export type AppDebugOptions = z.infer<typeof appDebugOptionsSchema>;
28
- export declare const appSettingOptionsSchema: z.ZodObject<{
29
- apikey: z.ZodString;
30
- supaHost: z.ZodOptional<z.ZodString>;
31
- supaAnon: z.ZodOptional<z.ZodString>;
32
- bool: z.ZodOptional<z.ZodString>;
33
- string: z.ZodOptional<z.ZodString>;
34
- }, z.core.$strip>;
35
- export type AppSettingOptions = z.infer<typeof appSettingOptionsSchema>;
1
+ export declare const appOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ apikey: string;
3
+ supaHost?: string | undefined;
4
+ supaAnon?: string | undefined;
5
+ name?: string | undefined;
6
+ icon?: string | undefined;
7
+ retention?: number | undefined;
8
+ exposeMetadata?: boolean | undefined;
9
+ preview?: boolean | undefined;
10
+ allowDeviceCustomId?: boolean | undefined;
11
+ blockProviderInfraRequests?: boolean | undefined;
12
+ buildTimeoutMinutes?: number | undefined;
13
+ iosStoreUrl?: string | undefined;
14
+ androidStoreUrl?: string | undefined;
15
+ defaultUploadChannel?: string | undefined;
16
+ defaultDownloadChannel?: string | undefined;
17
+ disableDownloadChannels?: boolean | undefined;
18
+ }, {}>;
19
+ export type AppOptions = typeof appOptionsSchema.infer;
20
+ export declare const appDebugOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
21
+ apikey: string;
22
+ supaHost?: string | undefined;
23
+ supaAnon?: string | undefined;
24
+ device?: string | undefined;
25
+ }, {}>;
26
+ export type AppDebugOptions = typeof appDebugOptionsSchema.infer;
27
+ export declare const appSettingOptionsSchema: import("arktype/internal/variants/object.ts").ObjectType<{
28
+ apikey: string;
29
+ supaHost?: string | undefined;
30
+ supaAnon?: string | undefined;
31
+ bool?: string | undefined;
32
+ string?: string | undefined;
33
+ }, {}>;
34
+ export type AppSettingOptions = typeof appSettingOptionsSchema.infer;
@@ -0,0 +1,23 @@
1
+ import './arktype_config';
2
+ import type { StandardSchemaV1 } from '@standard-schema/spec';
3
+ export type ValidationIssue = StandardSchemaV1.Issue & {
4
+ readonly code?: string;
5
+ };
6
+ export interface StandardSchema<T> {
7
+ '~standard': {
8
+ validate: (value: unknown) => StandardSchemaV1.Result<T> | Promise<StandardSchemaV1.Result<T>>;
9
+ };
10
+ }
11
+ export type SafeParseSchemaResult<T> = {
12
+ success: true;
13
+ data: T;
14
+ } | {
15
+ success: false;
16
+ error: SchemaError;
17
+ };
18
+ export declare class SchemaError extends Error {
19
+ readonly issues: readonly ValidationIssue[];
20
+ constructor(issues: readonly ValidationIssue[]);
21
+ }
22
+ export declare function safeParseSchema<T>(schema: StandardSchema<T>, value: unknown): SafeParseSchemaResult<T>;
23
+ export declare function parseSchema<T>(schema: StandardSchema<T>, value: unknown): T;
@@ -0,0 +1,2 @@
1
+ import './arktype_config';
2
+ export { type } from 'arktype';
@@ -0,0 +1 @@
1
+ export {};
@@ -1,14 +1,7 @@
1
- import { z } from 'zod';
2
- export declare const mcpLoginInputSchema: z.ZodObject<{
3
- apikey: z.ZodString;
4
- scope: z.ZodOptional<z.ZodEnum<{
5
- local: "local";
6
- global: "global";
7
- }>>;
8
- }, z.core.$strip>;
9
- export declare const mcpLogoutInputSchema: z.ZodObject<{
10
- scope: z.ZodOptional<z.ZodEnum<{
11
- local: "local";
12
- global: "global";
13
- }>>;
14
- }, z.core.$strip>;
1
+ export declare const mcpLoginInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ apikey: string;
3
+ scope?: "global" | "local" | undefined;
4
+ }, {}>;
5
+ export declare const mcpLogoutInputSchema: import("arktype/internal/variants/object.ts").ObjectType<{
6
+ scope?: "global" | "local" | undefined;
7
+ }, {}>;
@@ -1,7 +1,6 @@
1
- import { z } from 'zod';
2
- export declare const optionsBaseSchema: z.ZodObject<{
3
- apikey: z.ZodString;
4
- supaHost: z.ZodOptional<z.ZodString>;
5
- supaAnon: z.ZodOptional<z.ZodString>;
6
- }, z.core.$strip>;
7
- export type OptionsBase = z.infer<typeof optionsBaseSchema>;
1
+ export declare const optionsBaseSchema: import("arktype/internal/variants/object.ts").ObjectType<{
2
+ apikey: string;
3
+ supaHost?: string | undefined;
4
+ supaAnon?: string | undefined;
5
+ }, {}>;
6
+ export type OptionsBase = typeof optionsBaseSchema.infer;