@capgo/cli 8.8.1 → 8.9.0

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 (29) hide show
  1. package/dist/index.js +816 -629
  2. package/dist/package.json +13 -2
  3. package/dist/src/build/onboarding/android/flow.d.ts +19 -0
  4. package/dist/src/build/onboarding/android/types.d.ts +8 -0
  5. package/dist/src/build/onboarding/apple-api.d.ts +2 -1
  6. package/dist/src/build/onboarding/ios/flow.d.ts +22 -0
  7. package/dist/src/build/onboarding/macos-signing.d.ts +13 -3
  8. package/dist/src/build/onboarding/mcp/app-id-validation.d.ts +1 -1
  9. package/dist/src/build/onboarding/mcp/broker-oauth.d.ts +30 -0
  10. package/dist/src/build/onboarding/mcp/broker-session.d.ts +19 -0
  11. package/dist/src/build/onboarding/mcp/build-job.d.ts +94 -0
  12. package/dist/src/build/onboarding/mcp/build-tools.d.ts +25 -0
  13. package/dist/src/build/onboarding/mcp/credentials-manage.d.ts +79 -0
  14. package/dist/src/build/onboarding/mcp/engine.d.ts +152 -35
  15. package/dist/src/build/onboarding/mcp/onboarding-tools.d.ts +17 -1
  16. package/dist/src/build/onboarding/mcp/session-state.d.ts +160 -0
  17. package/dist/src/build/onboarding/mcp/step-input.d.ts +49 -2
  18. package/dist/src/build/onboarding/mcp/tail-progress.d.ts +6 -0
  19. package/dist/src/build/onboarding/types.d.ts +1 -1
  20. package/dist/src/build/output-record.d.ts +43 -4
  21. package/dist/src/mcp/instructions.d.ts +15 -0
  22. package/dist/src/mcp/stdout-guard.d.ts +19 -0
  23. package/dist/src/schemas/onboarding.d.ts +100 -0
  24. package/dist/src/sdk.d.ts +8 -0
  25. package/dist/src/sdk.js +218 -218
  26. package/dist/src/support/contact-support.d.ts +1 -0
  27. package/dist/src/utils/safeWrites.d.ts +5 -0
  28. package/package.json +13 -2
  29. package/dist/src/build/onboarding/mcp/terminal-launch.d.ts +0 -22
@@ -22,7 +22,18 @@ export declare const onboardingNextStepSchema: z.ZodObject<{
22
22
  oauth: "oauth";
23
23
  "save-anyway": "save-anyway";
24
24
  }>>;
25
+ reopenSignIn: z.ZodOptional<z.ZodBoolean>;
26
+ openSignInBrowser: z.ZodOptional<z.ZodBoolean>;
27
+ confirmCode: z.ZodOptional<z.ZodString>;
25
28
  checkBuild: z.ZodOptional<z.ZodBoolean>;
29
+ resumeChoice: z.ZodOptional<z.ZodEnum<{
30
+ continue: "continue";
31
+ restart: "restart";
32
+ }>>;
33
+ credentialsExistChoice: z.ZodOptional<z.ZodEnum<{
34
+ backup: "backup";
35
+ cancel: "cancel";
36
+ }>>;
26
37
  keystoreMethod: z.ZodOptional<z.ZodEnum<{
27
38
  generate: "generate";
28
39
  existing: "existing";
@@ -37,5 +48,94 @@ export declare const onboardingNextStepSchema: z.ZodObject<{
37
48
  random: "random";
38
49
  }>>;
39
50
  keystoreCommonName: z.ZodOptional<z.ZodString>;
51
+ verifyAction: z.ZodOptional<z.ZodEnum<{
52
+ open: "open";
53
+ continue: "continue";
54
+ cancel: "cancel";
55
+ "create-new": "create-new";
56
+ back: "back";
57
+ recheck: "recheck";
58
+ pick: "pick";
59
+ autofix: "autofix";
60
+ reopen: "reopen";
61
+ }>>;
62
+ verifyAppId: z.ZodOptional<z.ZodString>;
63
+ certToRevoke: z.ZodOptional<z.ZodString>;
64
+ duplicateProfileAction: z.ZodOptional<z.ZodEnum<{
65
+ delete: "delete";
66
+ exit: "exit";
67
+ }>>;
68
+ errorAction: z.ZodOptional<z.ZodEnum<{
69
+ exit: "exit";
70
+ retry: "retry";
71
+ restart: "restart";
72
+ "email-support": "email-support";
73
+ }>>;
74
+ ciSecretAction: z.ZodOptional<z.ZodEnum<{
75
+ replace: "replace";
76
+ yes: "yes";
77
+ no: "no";
78
+ skip: "skip";
79
+ retry: "retry";
80
+ continue: "continue";
81
+ confirm: "confirm";
82
+ github: "github";
83
+ gitlab: "gitlab";
84
+ cancel: "cancel";
85
+ }>>;
86
+ githubActionsSetup: z.ZodOptional<z.ZodEnum<{
87
+ no: "no";
88
+ "with-workflow": "with-workflow";
89
+ "secrets-only": "secrets-only";
90
+ }>>;
91
+ exportEnvAction: z.ZodOptional<z.ZodEnum<{
92
+ replace: "replace";
93
+ yes: "yes";
94
+ no: "no";
95
+ skip: "skip";
96
+ }>>;
97
+ envExportPath: z.ZodOptional<z.ZodString>;
98
+ packageManager: z.ZodOptional<z.ZodEnum<{
99
+ yarn: "yarn";
100
+ npm: "npm";
101
+ bun: "bun";
102
+ pnpm: "pnpm";
103
+ }>>;
104
+ buildScript: z.ZodOptional<z.ZodString>;
105
+ buildScriptCustom: z.ZodOptional<z.ZodString>;
106
+ workflowFileAction: z.ZodOptional<z.ZodEnum<{
107
+ write: "write";
108
+ view: "view";
109
+ cancel: "cancel";
110
+ }>>;
111
+ setupMethod: z.ZodOptional<z.ZodEnum<{
112
+ "create-new": "create-new";
113
+ "import-existing": "import-existing";
114
+ }>>;
115
+ importDistribution: z.ZodOptional<z.ZodEnum<{
116
+ app_store: "app_store";
117
+ ad_hoc: "ad_hoc";
118
+ __cancel__: "__cancel__";
119
+ }>>;
120
+ identityChoice: z.ZodOptional<z.ZodString>;
121
+ profileChoice: z.ZodOptional<z.ZodString>;
122
+ importRecoveryAction: z.ZodOptional<z.ZodEnum<{
123
+ create: "create";
124
+ back: "back";
125
+ "provide-profile-path": "provide-profile-path";
126
+ browser: "browser";
127
+ }>>;
128
+ portalAction: z.ZodOptional<z.ZodEnum<{
129
+ back: "back";
130
+ "use-create": "use-create";
131
+ "open-anyway": "open-anyway";
132
+ "use-file": "use-file";
133
+ }>>;
134
+ profilePath: z.ZodOptional<z.ZodString>;
135
+ exportConfirm: z.ZodOptional<z.ZodEnum<{
136
+ exit: "exit";
137
+ back: "back";
138
+ go: "go";
139
+ }>>;
40
140
  }, z.core.$strip>;
41
141
  export type OnboardingNextStepInput = z.infer<typeof onboardingNextStepSchema>;
package/dist/src/sdk.d.ts CHANGED
@@ -105,6 +105,14 @@ export declare class CapgoSDK {
105
105
  * ```
106
106
  */
107
107
  listApps(): Promise<SDKResult<AppInfo[]>>;
108
+ /**
109
+ * Whether `appId` exists in Capgo Cloud AND the configured key has at least read
110
+ * access to it. Uses the TARGETED existence+permission check (the same one
111
+ * `app set` / `channel` / `bundle` use) — NOT listApps — so it never triggers the
112
+ * full-table RBAC RLS scan that times out on large databases and falsely reports an
113
+ * owned app as missing. Returns false for a missing app or one the key can't access.
114
+ */
115
+ appHasAccess(appId: string): Promise<SDKResult<boolean>>;
108
116
  /**
109
117
  * Retrieve the account ID associated with the configured API key
110
118
  */