@capgo/cli 8.100.0 → 8.101.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.
- package/README.md +81 -17
- package/dist/index.js +761 -754
- package/dist/notify-app-ready-worker.js +1 -1
- package/dist/onboarding-worker.js +225 -225
- package/dist/package.json +3 -2
- package/dist/src/build/monitor.d.ts +2 -0
- package/dist/src/mcp/tool-schemas.d.ts +14 -0
- package/dist/src/observe/command.d.ts +2 -0
- package/dist/src/schemas/observe-response.d.ts +10 -0
- package/dist/src/schemas/sdk.d.ts +30 -0
- package/dist/src/sdk.d.ts +9 -2
- package/dist/src/sdk.js +297 -297
- package/dist/updater-installed-worker.js +1 -1
- package/package.json +3 -2
- package/skills/native-builds/SKILL.md +7 -0
- package/skills/observe/SKILL.md +26 -1
package/dist/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.101.0",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -203,7 +203,8 @@
|
|
|
203
203
|
"test": "bun run build && bun scripts/run-test-suite.ts",
|
|
204
204
|
"test:run": "bun scripts/run-test-suite.ts",
|
|
205
205
|
"test:serial": "bun run build && bun scripts/run-test-suite.ts --serial",
|
|
206
|
-
"test:
|
|
206
|
+
"test:monitoring": "bun test test/test-monitoring.test.ts",
|
|
207
|
+
"test:suite": "bun run test:monitoring && bun run test:helper-dce && bun run test:version-detection:setup && bun run test:bundle && bun run test:notify-app-ready-background && bun run test:bundle-validation && bun run test:functional && bun run test:semver && bun run test:auto-bump-version && bun run test:auto-bump-ai-diff && bun run test:version-edge-cases && bun run test:regex && bun run test:upload && bun run test:cordova-upload-mode && bun run test:fail-on-incompatible && bun run test:native-dependencies && bun run test:package-json-guard && bun run test:credentials && bun run test:credentials-export && bun run test:key-create-mode && bun run test:ios-provisioning-map && bun run test:ios-provisioning-command && bun run test:credentials-validation && bun run test:android-service-account-validation && bun run test:build-zip-filter && bun run test:offline-packers && bun run test:checksum && bun run test:build-needed && bun run test:cli-help && bun run test:build-cache-payload && bun run test:build-cancellation && bun run test:ci-prompts && bun run test:capgo-app-id-prompt && bun run test:ci-secrets && bun run test:android-onboarding-progress && bun run test:android-keystore-action && bun run test:android-google-play-action && bun run test:onboarding-telemetry && bun run test:v2-event-migration && bun run test:analytics && bun run test:cli-headers && bun run test:min-cli-version && bun run test:authenticated-command-invocation && bun run test:analytics-error-category && bun run test:analytics-org-resolver && bun run test:api-perf && bun run test:preview-qr && bun run test:bundle-pages && bun run test:bundle-single-requests && bun run test:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-error-guidance && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && bun run test:mcp-project-dir && bun run test:mcp-host-fields && 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:app-add-exists && bun run test:app-add-getting-started && bun run test:app-list && bun run test:app-todo && bun run test:doctor-analytics && bun run test:posthog-exception && bun run test:cli-recovery && bun run test:create-capgo-client && bun run test:bundle-soft-delete && bun run test:no-supabase-sdk && bun run test:no-redirect-error && bun run test:build-platform-selection && bun run test:builder-project-discovery && bun run test:builder-app-selection && bun run test:builder-login-gate && 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-monorepo-targeting && bun run test:init-app-conflict && bun run test:channel-list && bun run test:channel-add-exists && bun run test:wait-log && bun run test:init-guardrails && bun run test:init-command-execution && bun run test:init-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && bun run test:init-ota-checklist && bun run test:prompt-preferences && bun run test:esm-sdk && bun run test:mcp && bun run test:mcp-no-key-handshake && bun run test:auth-session && bun run test:version-detection && bun run test:platform-paths && bun run test:project-type-detection && bun run test:payload-split && bun run test:macos-signing && bun run test:asc-key-protocol && bun run test:apple-api-import-helpers && bun run test:apple-api-verify-key && 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:cicd-failure-help && 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:support && 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:ios-confirm-app-id && bun run test:ios-create-new && bun run test:ios-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && bun run test:ios-e2e && 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:ios-marketing-version && bun run test:android-version && bun run test:platform-flow-contract && bun run test:tail-engine-shared && bun run test:prescan && bun run test:android-reporting-api && bun run test:android-gcp && bun run test:android-app-verification && bun run test:android-rename && bun run test:appflow-auth && bun run test:appflow-api-map && bun run test:appflow-validate && bun run test:appflow-flow && bun run test:appflow-gapfill && bun run test:appflow-engine && bun run test:appflow-tail && bun run test:appflow-fetch && bun run test:appflow-sa-decode && bun run test:app-permission-helper && bun run test:2fa-compliance-network && bun run test:retryable-capgo-api-error && bun run test:organization-set-api-host && bun run test:plan-validation && bun run test:setup-notices && bun run test:settings-parity && bun run test:init-browser-login && bun run test:android-onboarding-units && bun run test:build-credentials-units && bun run test:onboarding-generators && bun run test:mcp-onboarding",
|
|
207
208
|
"test:build-platform-selection": "bun test/test-build-platform-selection.mjs",
|
|
208
209
|
"test:builder-project-discovery": "bun test/test-builder-project-discovery.mjs",
|
|
209
210
|
"test:builder-app-selection": "bun test/test-builder-app-selection.mjs",
|
|
@@ -224,6 +224,11 @@ export declare const mcpGetStatsInputSchema: z.ZodObject<{
|
|
|
224
224
|
rangeStart: z.ZodOptional<z.ZodString>;
|
|
225
225
|
rangeEnd: z.ZodOptional<z.ZodString>;
|
|
226
226
|
}, z.core.$strip>;
|
|
227
|
+
export declare const mcpBuildMonitorInputSchema: z.ZodObject<{
|
|
228
|
+
appId: z.ZodString;
|
|
229
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
230
|
+
job_id: z.ZodString;
|
|
231
|
+
}, z.core.$strip>;
|
|
227
232
|
export declare const mcpObserveInputSchema: z.ZodObject<{
|
|
228
233
|
appId: z.ZodString;
|
|
229
234
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
@@ -234,13 +239,22 @@ export declare const mcpObserveInputSchema: z.ZodObject<{
|
|
|
234
239
|
}>>;
|
|
235
240
|
deviceId: z.ZodOptional<z.ZodString>;
|
|
236
241
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
242
|
+
channelId: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
244
|
+
all: "all";
|
|
245
|
+
native: "native";
|
|
246
|
+
updater: "updater";
|
|
247
|
+
}>>;
|
|
237
248
|
view: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
errors: "errors";
|
|
238
250
|
device: "device";
|
|
239
251
|
summary: "summary";
|
|
240
252
|
metrics: "metrics";
|
|
241
253
|
events: "events";
|
|
242
254
|
routes: "routes";
|
|
243
255
|
versions: "versions";
|
|
256
|
+
release: "release";
|
|
257
|
+
logs: "logs";
|
|
244
258
|
}>>;
|
|
245
259
|
days: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<7>, z.ZodLiteral<30>]>>;
|
|
246
260
|
action: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const observeSampleResponseSchema: z.ZodObject<{
|
|
3
|
+
device_id: z.ZodString;
|
|
4
|
+
action: z.ZodString;
|
|
5
|
+
version_name: z.ZodString;
|
|
6
|
+
created_at: z.ZodString;
|
|
7
|
+
duration_ms: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
route: z.ZodNullable<z.ZodString>;
|
|
9
|
+
metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
@@ -582,13 +582,25 @@ export declare const deviceStatsSchema: z.ZodObject<{
|
|
|
582
582
|
createdAt: z.ZodString;
|
|
583
583
|
}, z.core.$strip>;
|
|
584
584
|
export type DeviceStats = z.infer<typeof deviceStatsSchema>;
|
|
585
|
+
export declare const buildMonitorOptionsSchema: z.ZodObject<{
|
|
586
|
+
appId: z.ZodString;
|
|
587
|
+
jobId: z.ZodString;
|
|
588
|
+
cursor: z.ZodOptional<z.ZodNumber>;
|
|
589
|
+
apikey: z.ZodOptional<z.ZodString>;
|
|
590
|
+
apiHost: z.ZodOptional<z.ZodString>;
|
|
591
|
+
filesHost: z.ZodOptional<z.ZodString>;
|
|
592
|
+
}, z.core.$strip>;
|
|
593
|
+
export type BuildMonitorOptions = z.infer<typeof buildMonitorOptionsSchema>;
|
|
585
594
|
export declare const observeViewSchema: z.ZodEnum<{
|
|
595
|
+
errors: "errors";
|
|
586
596
|
device: "device";
|
|
587
597
|
summary: "summary";
|
|
588
598
|
metrics: "metrics";
|
|
589
599
|
events: "events";
|
|
590
600
|
routes: "routes";
|
|
591
601
|
versions: "versions";
|
|
602
|
+
release: "release";
|
|
603
|
+
logs: "logs";
|
|
592
604
|
}>;
|
|
593
605
|
export declare const observeSortSchema: z.ZodEnum<{
|
|
594
606
|
slowest: "slowest";
|
|
@@ -599,13 +611,22 @@ export declare const observeSortSchema: z.ZodEnum<{
|
|
|
599
611
|
export declare const observeDaysSchema: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<7>, z.ZodLiteral<30>]>;
|
|
600
612
|
export declare const observeOptionsObjectSchema: z.ZodObject<{
|
|
601
613
|
appId: z.ZodString;
|
|
614
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
615
|
+
all: "all";
|
|
616
|
+
native: "native";
|
|
617
|
+
updater: "updater";
|
|
618
|
+
}>>;
|
|
619
|
+
channelId: z.ZodOptional<z.ZodNumber>;
|
|
602
620
|
view: z.ZodOptional<z.ZodEnum<{
|
|
621
|
+
errors: "errors";
|
|
603
622
|
device: "device";
|
|
604
623
|
summary: "summary";
|
|
605
624
|
metrics: "metrics";
|
|
606
625
|
events: "events";
|
|
607
626
|
routes: "routes";
|
|
608
627
|
versions: "versions";
|
|
628
|
+
release: "release";
|
|
629
|
+
logs: "logs";
|
|
609
630
|
}>>;
|
|
610
631
|
days: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<7>, z.ZodLiteral<30>]>>;
|
|
611
632
|
action: z.ZodOptional<z.ZodString>;
|
|
@@ -628,13 +649,22 @@ export declare function refineObserveDeviceId(value: {
|
|
|
628
649
|
}, ctx: z.RefinementCtx): void;
|
|
629
650
|
export declare const observeOptionsSchema: z.ZodObject<{
|
|
630
651
|
appId: z.ZodString;
|
|
652
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
653
|
+
all: "all";
|
|
654
|
+
native: "native";
|
|
655
|
+
updater: "updater";
|
|
656
|
+
}>>;
|
|
657
|
+
channelId: z.ZodOptional<z.ZodNumber>;
|
|
631
658
|
view: z.ZodOptional<z.ZodEnum<{
|
|
659
|
+
errors: "errors";
|
|
632
660
|
device: "device";
|
|
633
661
|
summary: "summary";
|
|
634
662
|
metrics: "metrics";
|
|
635
663
|
events: "events";
|
|
636
664
|
routes: "routes";
|
|
637
665
|
versions: "versions";
|
|
666
|
+
release: "release";
|
|
667
|
+
logs: "logs";
|
|
638
668
|
}>>;
|
|
639
669
|
days: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<3>, z.ZodLiteral<7>, z.ZodLiteral<30>]>>;
|
|
640
670
|
action: z.ZodOptional<z.ZodString>;
|
package/dist/src/sdk.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import type { BuildZipResult } from './build/zip-command';
|
|
|
5
5
|
import type { ZipResult } from './bundle/zip';
|
|
6
6
|
import type { StarAllRepositoryResult } from './github';
|
|
7
7
|
import type { ProbeInternalResult } from './probe';
|
|
8
|
-
import type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleCompatibilityOptions, BundleInfo, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetAccountOptions, GetStatsOptions, InviteOrganizationMemberOptions, ListOrganizationsOptions, LoginOptions, ObserveOptions, OrganizationInfo, ProbeOptions, PromoteChannelOptions, RemoveOrganizationMemberOptions, RequestBuildOptions, SaveKeyOptions, SDKResult, SetSettingOptions, StarAllRepositoriesOptions, StarRepoOptions, UpdateAccountOptions, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationMemberRoleOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBuildOptions, ZipBundleOptions } from './schemas/sdk';
|
|
8
|
+
import type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleCompatibilityOptions, BundleInfo, BuildMonitorOptions, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetAccountOptions, GetStatsOptions, InviteOrganizationMemberOptions, ListOrganizationsOptions, LoginOptions, ObserveOptions, OrganizationInfo, ProbeOptions, PromoteChannelOptions, RemoveOrganizationMemberOptions, RequestBuildOptions, SaveKeyOptions, SDKResult, SetSettingOptions, StarAllRepositoriesOptions, StarRepoOptions, UpdateAccountOptions, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationMemberRoleOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBuildOptions, ZipBundleOptions } from './schemas/sdk';
|
|
9
9
|
import type { AccountProfile } from './schemas/account';
|
|
10
10
|
import { getInfoInternal } from './app/info';
|
|
11
11
|
import { checkCompatibilityInternal } from './bundle/compatibility';
|
|
@@ -430,6 +430,11 @@ export declare class CapgoSDK {
|
|
|
430
430
|
* ```
|
|
431
431
|
*/
|
|
432
432
|
getStats(options: GetStatsOptions): Promise<SDKResult<DeviceStats[]>>;
|
|
433
|
+
/** Read any authorized cloud build, including builds started by CI or the hosted MCP. */
|
|
434
|
+
getBuildStatus(options: BuildMonitorOptions): Promise<SDKResult<Record<string, unknown>>>;
|
|
435
|
+
/** Bounded JSON snapshot; disconnecting never cancels a build. */
|
|
436
|
+
getBuildLogs(options: BuildMonitorOptions): Promise<SDKResult<Record<string, unknown>>>;
|
|
437
|
+
private readBuildMonitor;
|
|
433
438
|
/**
|
|
434
439
|
* Query Capgo Observe (launch, issues, routes, device timelines).
|
|
435
440
|
* Start with view=summary; follow findings.next. Use --json / MCP for agents.
|
|
@@ -598,6 +603,8 @@ export declare function getStats(options: GetStatsOptions): Promise<SDKResult<De
|
|
|
598
603
|
* Start with view=summary and follow findings.next. view=device is the session timeline.
|
|
599
604
|
*/
|
|
600
605
|
export declare function getObserve(options: ObserveOptions): Promise<SDKResult<Record<string, unknown>>>;
|
|
606
|
+
export declare function getBuildStatus(options: BuildMonitorOptions): Promise<SDKResult<Record<string, unknown>>>;
|
|
607
|
+
export declare function getBuildLogs(options: BuildMonitorOptions): Promise<SDKResult<Record<string, unknown>>>;
|
|
601
608
|
export declare function probeUpdates(options: ProbeOptions): Promise<SDKResult<ProbeInternalResult>>;
|
|
602
609
|
/**
|
|
603
610
|
* Get Capacitor configuration
|
|
@@ -615,7 +622,7 @@ export type { BuildCredentials } from './build/request';
|
|
|
615
622
|
export type { BuildZipResult } from './build/zip-command';
|
|
616
623
|
export type { CapacitorConfig } from './config';
|
|
617
624
|
export type { ProbeInternalResult } from './probe';
|
|
618
|
-
export type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleCompatibilityOptions, BundleInfo, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetAccountOptions, GetStatsOptions, InviteOrganizationMemberOptions, ListOrganizationsOptions, LoginOptions, ObserveOptions, OrganizationInfo, ProbeOptions, PromoteChannelOptions, RemoveOrganizationMemberOptions, RequestBuildOptions, SaveKeyOptions, SDKResult, SetSettingOptions, StarAllRepositoriesOptions, StarRepoOptions, StatsOrder, UpdateAccountOptions, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationMemberRoleOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBuildOptions, ZipBundleOptions, } from './schemas/sdk';
|
|
625
|
+
export type { AccountIdOptions, AddAppOptions, AddChannelOptions, AddOrganizationOptions, AppInfo, BundleCompatibilityOptions, BundleInfo, BuildMonitorOptions, CleanupOptions, CurrentBundleOptions, DecryptBundleOptions, DeleteOldKeyOptions, DeleteOrganizationOptions, DeviceStats, DoctorOptions, EncryptBundleOptions, GenerateKeyOptions, GetAccountOptions, GetStatsOptions, InviteOrganizationMemberOptions, ListOrganizationsOptions, LoginOptions, ObserveOptions, OrganizationInfo, ProbeOptions, PromoteChannelOptions, RemoveOrganizationMemberOptions, RequestBuildOptions, SaveKeyOptions, SDKResult, SetSettingOptions, StarAllRepositoriesOptions, StarRepoOptions, StatsOrder, UpdateAccountOptions, UpdateAppOptions, UpdateChannelOptions, UpdateOrganizationMemberRoleOptions, UpdateOrganizationOptions, UploadOptions, UploadResult, ZipBuildOptions, ZipBundleOptions, } from './schemas/sdk';
|
|
619
626
|
export type { AccountProfile } from './schemas/account';
|
|
620
627
|
export type { AppRow, AppVersionRow, ChannelRow, Organization } from './types/api';
|
|
621
628
|
export { createCapgoClient, withCapgoHosts } from './utils';
|