@capgo/cli 8.0.6 → 8.0.8
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 +549 -508
- package/dist/package.json +9 -3
- package/dist/src/build/onboarding/android/types.d.ts +1 -1
- package/dist/src/build/onboarding/types.d.ts +1 -1
- package/dist/src/build/onboarding/ui/components.d.ts +1 -0
- package/dist/src/build/onboarding/ui/steps/android-shared.d.ts +8 -2
- package/dist/src/build/onboarding/ui/steps/ios-shared.d.ts +4 -1
- package/dist/src/onboarding-support.d.ts +11 -1
- package/dist/src/sdk.js +304 -285
- package/dist/src/support/clipboard.d.ts +5 -0
- package/dist/src/support/contact-support.d.ts +23 -0
- package/dist/src/support/help-menu.d.ts +7 -0
- package/dist/src/support/internal-log.d.ts +4 -0
- package/dist/src/support/mailto.d.ts +7 -0
- package/dist/src/support/redact.d.ts +1 -0
- package/dist/src/support/support-upload.d.ts +12 -0
- package/package.json +9 -3
- package/skills/native-builds/SKILL.md +1 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface ContactSupportDeps {
|
|
2
|
+
subject: string;
|
|
3
|
+
body: string;
|
|
4
|
+
confirm: (message: string, logPath: string) => Promise<boolean>;
|
|
5
|
+
buildFiles: () => ({
|
|
6
|
+
logPath: string;
|
|
7
|
+
gzPath: string;
|
|
8
|
+
} | null) | Promise<{
|
|
9
|
+
logPath: string;
|
|
10
|
+
gzPath: string;
|
|
11
|
+
} | null>;
|
|
12
|
+
copyPath: (path: string) => boolean;
|
|
13
|
+
reveal?: (path: string) => boolean | void;
|
|
14
|
+
openUrl: (url: string) => Promise<unknown>;
|
|
15
|
+
print: (message: string) => void;
|
|
16
|
+
upload?: (gzPath: string) => Promise<{
|
|
17
|
+
id: string;
|
|
18
|
+
url: string;
|
|
19
|
+
} | null>;
|
|
20
|
+
}
|
|
21
|
+
export type ContactSupportResult = 'opened' | 'cancelled' | 'failed';
|
|
22
|
+
export declare function resetSupportUploadCacheForTests(): void;
|
|
23
|
+
export declare function contactSupport(deps: ContactSupportDeps): Promise<ContactSupportResult>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function startInternalLog(appId?: string, dir?: string): string | null;
|
|
2
|
+
export declare function getInternalLogPath(): string | null;
|
|
3
|
+
export declare function safeHeaders(headers: Headers | null | undefined): string;
|
|
4
|
+
export declare function appendInternalLog(line: string): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function redactSecrets(text: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface SupportUploadInput {
|
|
2
|
+
apiHost: string;
|
|
3
|
+
apikey: string;
|
|
4
|
+
appId?: string;
|
|
5
|
+
jobId?: string;
|
|
6
|
+
gzPath: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SupportUploadResult {
|
|
9
|
+
id: string;
|
|
10
|
+
url: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function uploadSupportLogs(input: SupportUploadInput): Promise<SupportUploadResult | null>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.8",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"test:app-verification": "bun test/test-app-verification.mjs",
|
|
112
112
|
"test:pbxproj-parser": "bun test/test-pbxproj-parser.mjs",
|
|
113
113
|
"test:manifest-path-encoding": "bun test/test-manifest-path-encoding.mjs",
|
|
114
|
-
"test": "bun run build && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:mcp-analytics && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:apple-api-import-helpers && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream",
|
|
114
|
+
"test": "bun run build && bun run test:version-detection:setup && bun run test:bundle && bun run test:functional && bun run test:semver && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:fail-on-incompatible && bun run test:credentials && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:checksum && bun run test:build-needed && bun run test:ci-prompts && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:supabase-perf && bun run test:preview-qr && bun run test:mcp-analytics && bun run test:app-created-source && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:build-platform-selection && bun run test:onboarding-recovery && bun run test:onboarding-progress && bun run test:onboarding-run-targets && bun run test:run-device-command && bun run test:init-app-conflict && bun run test:init-guardrails && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:version-detection && bun run test:platform-paths && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:apple-api-import-helpers && bun run test:bundle-id-detector && bun run test:apple-api-app-list && bun run test:app-verification && bun run test:pbxproj-parser && bun run test:ai-log-capture && bun run test:ai-analyze-flow && bun run test:ai-sse-parser && bun run test:ai-render-markdown && bun run test:ai-stream-markdown && bun run test:ai-onboarding-mode && bun run test:ai-fit && bun run test:platform-layout && bun run test:frame-fit && bun run test:onboarding-min-size && bun run test:min-size-gate && bun run test:shell-size-gate && bun run test:build-log-sanitize && bun run test:build-output-viewport && bun run test:diff-viewer-viewport && bun run test:build-complete-exit && bun run test:ai-analyze-stream && bun run test:support-mailto && bun run test:support-redact && bun run test:support-internal-log && bun run test:support-help-menu && bun run test:support-contact && bun run test:support-bundle-files",
|
|
115
115
|
"test:build-platform-selection": "bun test/test-build-platform-selection.mjs",
|
|
116
116
|
"test:ai-log-capture": "bun test/test-ai-log-capture.mjs",
|
|
117
117
|
"test:ai-analyze-flow": "bun test/test-ai-analyze-flow.mjs",
|
|
@@ -129,7 +129,13 @@
|
|
|
129
129
|
"test:build-output-viewport": "bun test/test-build-output-viewport.mjs",
|
|
130
130
|
"test:diff-viewer-viewport": "bun test/test-diff-viewer-viewport.mjs",
|
|
131
131
|
"test:build-complete-exit": "bun test/test-build-complete-exit.mjs",
|
|
132
|
-
"test:ai-stream-markdown": "bun test/test-ai-stream-markdown.mjs"
|
|
132
|
+
"test:ai-stream-markdown": "bun test/test-ai-stream-markdown.mjs",
|
|
133
|
+
"test:support-mailto": "bun test/test-support-mailto.mjs",
|
|
134
|
+
"test:support-redact": "bun test/test-support-redact.mjs",
|
|
135
|
+
"test:support-internal-log": "bun test/test-support-internal-log.mjs",
|
|
136
|
+
"test:support-help-menu": "bun test/test-support-help-menu.mjs",
|
|
137
|
+
"test:support-contact": "bun test/test-support-contact.mjs",
|
|
138
|
+
"test:support-bundle-files": "bun test/test-support-bundle-files.mjs"
|
|
133
139
|
},
|
|
134
140
|
"dependencies": {
|
|
135
141
|
"@inkjs/ui": "^2.0.0",
|
|
@@ -29,6 +29,7 @@ Use this skill for Capgo Cloud native iOS and Android build workflows.
|
|
|
29
29
|
- Optionally kicks off the first build at the end.
|
|
30
30
|
- If the native `ios/` folder is missing, onboarding can offer to run `cap add ios` automatically instead of exiting immediately.
|
|
31
31
|
- Unexpected failures now keep the user inside the recovery screen, show package-manager-aware commands, and save a support bundle under `~/.capgo-credentials/support/`.
|
|
32
|
+
- The recovery screen offers an "Email Capgo support" action: it writes a redacted diagnostics bundle as both `.log` and `.log.gz` under `~/.capgo-credentials/support/`, copies the `.log.gz` path to the clipboard, reveals it in Finder on macOS, and opens a pre-filled `mailto:support@capgo.app` for the user to attach the file and send (no logs are uploaded automatically). An "Ask AI for help" option is also offered when a build log exists.
|
|
32
33
|
|
|
33
34
|
#### What it automates (iOS)
|
|
34
35
|
|