@capgo/cli 8.8.2 → 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.
@@ -1,3 +1,4 @@
1
+ export declare const SUPPORT_EMAIL = "support@capgo.app";
1
2
  export interface ContactSupportDeps {
2
3
  subject: string;
3
4
  body: string;
@@ -18,4 +18,9 @@ export declare function writeFileAtomic(filePath: string, content: string, optio
18
18
  * Read file content while rejecting symbolic-link targets.
19
19
  */
20
20
  export declare function readSafeFile(filePath: string): Promise<string>;
21
+ /**
22
+ * Read file BYTES while rejecting symbolic-link targets (binary-safe twin of
23
+ * readSafeFile — for credential files like keystores / .p12 / .p8 that are not utf-8).
24
+ */
25
+ export declare function readSafeFileBytes(filePath: string): Promise<Buffer>;
21
26
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.8.2",
4
+ "version": "8.9.0",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -89,6 +89,17 @@
89
89
  "test:supabase-perf": "bun test/test-supabase-perf.mjs",
90
90
  "test:preview-qr": "bun test/test-preview-qr.mjs",
91
91
  "test:mcp-analytics": "bun test/test-mcp-analytics.mjs",
92
+ "test:mcp-instructions": "bun test/test-mcp-instructions.mjs",
93
+ "test:mcp-stdout-guard": "bun test/test-mcp-stdout-guard.mjs",
94
+ "test:mcp-platform-select": "bun test/test-mcp-platform-select.mjs",
95
+ "test:mcp-explain-scopes": "bun test/test-mcp-explain-scopes.mjs",
96
+ "test:mcp-oauth-reopen": "bun test/test-mcp-oauth-reopen.mjs",
97
+ "test:mcp-broker-oauth": "bun test/test-mcp-broker-oauth.mjs",
98
+ "test:mcp-broker-session": "bun test/test-mcp-broker-session.mjs",
99
+ "test:mcp-credentials-manage": "bun test/test-mcp-credentials-manage.mjs",
100
+ "test:mcp-resume-prompt": "bun test/test-mcp-resume-prompt.mjs",
101
+ "test:mcp-build-job": "bun test/test-mcp-build-job.mjs",
102
+ "test:mcp-build-tools": "bun test/test-mcp-build-tools.mjs",
92
103
  "test:app-created-source": "bun test/test-app-created-source.mjs",
93
104
  "test:doctor-analytics": "bun test/test-doctor-analytics.mjs",
94
105
  "test:posthog-exception": "bun test/test-posthog-exception.mjs",
@@ -140,7 +151,7 @@
140
151
  "test:ios-verify-app": "bun test/test-ios-verify-app.mjs",
141
152
  "test:platform-flow-contract": "bun test/test-platform-flow-contract.mjs",
142
153
  "test:tail-engine-shared": "bun test/test-tail-engine-shared.mjs",
143
- "test": "bun run build && bun run test:helper-dce && 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:project-type-detection && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:asc-key-protocol && 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 && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:platform-flow-contract && bun run test:tail-engine-shared",
154
+ "test": "bun run build && bun run test:helper-dce && 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:mcp-instructions && bun run test:mcp-stdout-guard && bun run test:mcp-platform-select && bun run test:mcp-explain-scopes && bun run test:mcp-oauth-reopen && bun run test:mcp-broker-oauth && bun run test:mcp-broker-session && bun run test:mcp-credentials-manage && bun run test:mcp-resume-prompt && bun run test:mcp-build-job && bun run test:mcp-build-tools && 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:project-type-detection && bun run test:payload-split && bun run test:manifest-path-encoding && bun run test:macos-signing && bun run test:asc-key-protocol && 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 && bun run test:self-update && bun run test:update-prompt && bun run test:apple-api-cert-create && bun run test:android-tail-engine && bun run test:android-tail-render && bun run test:android-tail-routing && bun run test:dev-gate-stripped && bun run test:frame-fit-ios-shared && bun run test:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-e2e && bun run test:ios-flow-contract && bun run test:ios-import-discovery && bun run test:ios-import-export && bun run test:ios-import-pickers && bun run test:ios-import-recovery && bun run test:ios-recovery && bun run test:ios-resume && bun run test:ios-tail-handoff && bun run test:ios-tui-render && bun run test:p8-error && bun run test:ios-tui-routing && bun run test:ios-updater-sync-validation && bun run test:ios-verify-app && bun run test:platform-flow-contract && bun run test:tail-engine-shared",
144
155
  "test:build-platform-selection": "bun test/test-build-platform-selection.mjs",
145
156
  "test:ai-log-capture": "bun test/test-ai-log-capture.mjs",
146
157
  "test:ai-analyze-flow": "bun test/test-ai-analyze-flow.mjs",
@@ -1,22 +0,0 @@
1
- /**
2
- * Build the arguments array for invoking osascript to open a Terminal window
3
- * running `command`. Escapes backslashes first, then double-quotes, so that
4
- * neither character can break out of the AppleScript string literal.
5
- */
6
- export declare function buildOsascriptArgs(command: string): string[];
7
- /**
8
- * Returns true when the current platform is macOS (darwin).
9
- * Accepts an explicit platform string for testability.
10
- */
11
- export declare function canLaunchTerminal(platform?: string): boolean;
12
- /**
13
- * Launch `command` in a new macOS Terminal.app window via osascript.
14
- * The optional `exec` parameter is injectable so tests never spawn a real
15
- * process — pass a fake to avoid side effects.
16
- */
17
- export declare function launchBuildInTerminal(command: string, exec?: (cmd: string, args: string[]) => Promise<unknown>): Promise<{
18
- ok: true;
19
- } | {
20
- ok: false;
21
- error: string;
22
- }>;