@capgo/cli 7.88.1 → 7.88.3
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/README.md +5 -3
- package/dist/index.js +399 -417
- package/dist/package.json +1 -1
- package/dist/src/api/update.d.ts +7 -0
- package/dist/src/build/onboarding/command.d.ts +1 -1
- package/dist/src/build/onboarding/file-picker.d.ts +1 -0
- package/dist/src/{init.d.ts → init/command.d.ts} +1 -1
- package/dist/src/init/index.d.ts +1 -0
- package/dist/src/init/prompts.d.ts +41 -0
- package/dist/src/init/runtime.d.ts +73 -0
- package/dist/src/init/ui/app.d.ts +8 -0
- package/dist/src/init/ui/components.d.ts +28 -0
- package/dist/src/init/ui.d.ts +12 -0
- package/dist/src/sdk.js +220 -220
- package/dist/src/utils.d.ts +4 -8
- package/package.json +1 -1
- package/skills/native-builds/SKILL.md +4 -3
- package/skills/usage/SKILL.md +1 -1
package/dist/src/utils.d.ts
CHANGED
|
@@ -1952,13 +1952,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1952
1952
|
validated_at?: string;
|
|
1953
1953
|
};
|
|
1954
1954
|
Update: {
|
|
1955
|
-
created_at
|
|
1956
|
-
/**
|
|
1957
|
-
* Calculate checksums for iOS and Android native code in a dependency folder.
|
|
1958
|
-
* Includes both native source files and platform configuration files
|
|
1959
|
-
* (podspec, Package.swift, build.gradle) that define platform dependencies.
|
|
1960
|
-
*/
|
|
1961
|
-
?: string;
|
|
1955
|
+
created_at?: string;
|
|
1962
1956
|
id?: number;
|
|
1963
1957
|
org_id?: string;
|
|
1964
1958
|
policy_hash?: string;
|
|
@@ -3620,7 +3614,9 @@ export declare function checkPlanValid(supabase: SupabaseClient<Database>, orgId
|
|
|
3620
3614
|
export declare function checkPlanValidUpload(supabase: SupabaseClient<Database>, orgId: string, apikey: string, appId?: string, warning?: boolean): Promise<void>;
|
|
3621
3615
|
export declare function findSavedKey(quiet?: boolean): string;
|
|
3622
3616
|
export declare function getContentType(filename: string): string;
|
|
3623
|
-
export declare function findProjectType(
|
|
3617
|
+
export declare function findProjectType(options?: {
|
|
3618
|
+
quiet?: boolean;
|
|
3619
|
+
}): Promise<"unknown" | "angular-ts" | "angular-js" | "nuxtjs-ts" | "nuxtjs-js" | "nextjs-ts" | "nextjs-js" | "sveltekit-ts" | "sveltekit-js" | "svelte-ts" | "svelte-js" | "vue-ts" | "vue-js" | "react-ts" | "react-js">;
|
|
3624
3620
|
export declare function findMainFileForProjectType(projectType: string, isTypeScript: boolean): string | null;
|
|
3625
3621
|
export declare function findBuildCommandForProjectType(projectType: string): Promise<"build" | "generate">;
|
|
3626
3622
|
export declare function findMainFile(): Promise<string>;
|
package/package.json
CHANGED
|
@@ -9,13 +9,14 @@ Use this skill for Capgo Cloud native iOS and Android build workflows.
|
|
|
9
9
|
|
|
10
10
|
## Onboarding (automated iOS setup)
|
|
11
11
|
|
|
12
|
-
### `build onboarding`
|
|
12
|
+
### `build init` (alias: `build onboarding`)
|
|
13
13
|
|
|
14
14
|
- Interactive command that automates iOS certificate and provisioning profile creation.
|
|
15
15
|
- Reduces iOS setup from ~10 manual steps to 1 manual step (creating an API key) + 1 command.
|
|
16
|
-
- Example: `npx @capgo/cli@latest build
|
|
16
|
+
- Example: `npx @capgo/cli@latest build init`
|
|
17
|
+
- Backward compatibility: `npx @capgo/cli@latest build onboarding` still works.
|
|
17
18
|
- Notes:
|
|
18
|
-
- Uses Ink (React for terminal) for the interactive UI
|
|
19
|
+
- Uses Ink (React for terminal) for the interactive UI, alongside the main `init` onboarding flow.
|
|
19
20
|
- Requires running inside a Capacitor project directory with an `ios/` folder.
|
|
20
21
|
- The user creates ONE App Store Connect API key (.p8 file), then the CLI handles everything else.
|
|
21
22
|
- On macOS, offers a native file picker dialog for .p8 selection.
|
package/skills/usage/SKILL.md
CHANGED
|
@@ -24,7 +24,7 @@ TanStack Intent skills should stay focused and under the validator line limit, s
|
|
|
24
24
|
|
|
25
25
|
### Project setup and diagnostics
|
|
26
26
|
|
|
27
|
-
- `init [apikey] [appId]`: guided first-time setup for Capgo in a Capacitor app.
|
|
27
|
+
- `init [apikey] [appId]`: guided first-time setup for Capgo in a Capacitor app. The interactive flow now runs as a real Ink-based fullscreen onboarding so it uses the same UI stack as `build init` (alias: `build onboarding`), with a persistent dashboard, phase roadmap, progress cards, shared log area, and resume support. When dependency auto-detection fails on macOS, the flow opens a native file picker for `package.json` before falling back to manual path entry. If the user reuses a pending app that was already created in the web onboarding flow, the CLI syncs that selected dashboard app ID back into `capacitor.config.*` before the remaining steps continue. Outside that reused pending-app path, the CLI keeps using the local Capacitor app ID. It can also offer a final `npx skills add https://github.com/Cap-go/capgo-skills -g -y` install step before the GitHub support prompt; if accepted, the support menu includes `Cap-go/capgo-skills` alongside the updater-only and all-Capgo choices. If iOS sync validation fails during onboarding, the CLI can offer to run a one-line native reset command, wait for you to type `ready` after a manual fix, and offer cancellation every third failed retry.
|
|
28
28
|
- `login [apikey]`: store an API key locally.
|
|
29
29
|
- `doctor`: inspect installation health and gather troubleshooting details.
|
|
30
30
|
- `probe`: test whether the update endpoint would deliver an update.
|