@capgo/cli 8.46.0 → 8.47.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 +189 -2
- package/dist/index.js +728 -700
- package/dist/package.json +1 -1
- package/dist/src/mcp/tool-schemas.d.ts +22 -0
- package/dist/src/observe/api.d.ts +2 -0
- package/dist/src/observe/command.d.ts +14 -0
- package/dist/src/schemas/index.d.ts +2 -2
- package/dist/src/schemas/sdk.d.ts +71 -0
- package/dist/src/sdk.d.ts +12 -2
- package/dist/src/sdk.js +291 -291
- package/dist/src/types/supabase.types.d.ts +8 -2
- package/dist/src/utils.d.ts +7 -1
- package/package.json +1 -1
- package/skills/_artifacts/domain_map.yaml +5 -0
- package/skills/_artifacts/skill_spec.md +2 -1
- package/skills/_artifacts/skill_tree.yaml +4 -0
- package/skills/observe/SKILL.md +38 -0
- package/skills/usage/SKILL.md +10 -1
|
@@ -5608,6 +5608,12 @@ export type Database = {
|
|
|
5608
5608
|
};
|
|
5609
5609
|
Returns: boolean;
|
|
5610
5610
|
};
|
|
5611
|
+
verify_getting_started: {
|
|
5612
|
+
Args: {
|
|
5613
|
+
p_app_id: string;
|
|
5614
|
+
};
|
|
5615
|
+
Returns: Json;
|
|
5616
|
+
};
|
|
5611
5617
|
verify_mfa: {
|
|
5612
5618
|
Args: never;
|
|
5613
5619
|
Returns: boolean;
|
|
@@ -5621,7 +5627,7 @@ export type Database = {
|
|
|
5621
5627
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
5622
5628
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
5623
5629
|
platform_os: "ios" | "android" | "electron";
|
|
5624
|
-
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "keyMismatch" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal" | "download_0" | "disableProdBuild" | "disableDevice" | "disablePlatformElectron" | "customIdBlocked" | "app_crash" | "app_crash_native" | "app_anr" | "app_killed_low_memory" | "app_killed_excessive_resource_usage" | "app_initialization_failure" | "app_memory_warning" | "webview_javascript_error" | "webview_unhandled_rejection" | "webview_resource_error" | "webview_security_policy_violation" | "webview_unclean_restart" | "webview_render_process_gone" | "webview_content_process_terminated" | "os_version_changed" | "native_app_version_changed";
|
|
5630
|
+
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "keyMismatch" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal" | "download_0" | "disableProdBuild" | "disableDevice" | "disablePlatformElectron" | "customIdBlocked" | "app_crash" | "app_crash_native" | "app_anr" | "app_killed_low_memory" | "app_killed_excessive_resource_usage" | "app_initialization_failure" | "app_memory_warning" | "webview_javascript_error" | "webview_unhandled_rejection" | "webview_resource_error" | "webview_security_policy_violation" | "webview_unclean_restart" | "webview_render_process_gone" | "webview_content_process_terminated" | "os_version_changed" | "native_app_version_changed" | "app_nav";
|
|
5625
5631
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
5626
5632
|
user_role: "read" | "upload" | "write" | "admin";
|
|
5627
5633
|
version_action: "get" | "fail" | "install" | "uninstall";
|
|
@@ -5722,7 +5728,7 @@ export declare const Constants: {
|
|
|
5722
5728
|
readonly cron_task_type: readonly ["function", "queue", "function_queue"];
|
|
5723
5729
|
readonly disable_update: readonly ["major", "minor", "patch", "version_number", "none"];
|
|
5724
5730
|
readonly platform_os: readonly ["ios", "android", "electron"];
|
|
5725
|
-
readonly stats_action: readonly ["delete", "reset", "set", "get", "set_fail", "update_fail", "download_fail", "windows_path_fail", "canonical_path_fail", "directory_path_fail", "unzip_fail", "low_mem_fail", "download_10", "download_20", "download_30", "download_40", "download_50", "download_60", "download_70", "download_80", "download_90", "download_complete", "decrypt_fail", "app_moved_to_foreground", "app_moved_to_background", "uninstall", "needPlanUpgrade", "missingBundle", "noNew", "disablePlatformIos", "disablePlatformAndroid", "disableAutoUpdateToMajor", "cannotUpdateViaPrivateChannel", "disableAutoUpdateToMinor", "disableAutoUpdateToPatch", "channelMisconfigured", "disableAutoUpdateMetadata", "disableAutoUpdateUnderNative", "disableDevBuild", "disableEmulator", "cannotGetBundle", "checksum_fail", "NoChannelOrOverride", "setChannel", "getChannel", "rateLimited", "disableAutoUpdate", "keyMismatch", "ping", "InvalidIp", "blocked_by_server_url", "download_manifest_start", "download_manifest_complete", "download_zip_start", "download_zip_complete", "download_manifest_file_fail", "download_manifest_checksum_fail", "download_manifest_brotli_fail", "backend_refusal", "download_0", "disableProdBuild", "disableDevice", "disablePlatformElectron", "customIdBlocked", "app_crash", "app_crash_native", "app_anr", "app_killed_low_memory", "app_killed_excessive_resource_usage", "app_initialization_failure", "app_memory_warning", "webview_javascript_error", "webview_unhandled_rejection", "webview_resource_error", "webview_security_policy_violation", "webview_unclean_restart", "webview_render_process_gone", "webview_content_process_terminated", "os_version_changed", "native_app_version_changed"];
|
|
5731
|
+
readonly stats_action: readonly ["delete", "reset", "set", "get", "set_fail", "update_fail", "download_fail", "windows_path_fail", "canonical_path_fail", "directory_path_fail", "unzip_fail", "low_mem_fail", "download_10", "download_20", "download_30", "download_40", "download_50", "download_60", "download_70", "download_80", "download_90", "download_complete", "decrypt_fail", "app_moved_to_foreground", "app_moved_to_background", "uninstall", "needPlanUpgrade", "missingBundle", "noNew", "disablePlatformIos", "disablePlatformAndroid", "disableAutoUpdateToMajor", "cannotUpdateViaPrivateChannel", "disableAutoUpdateToMinor", "disableAutoUpdateToPatch", "channelMisconfigured", "disableAutoUpdateMetadata", "disableAutoUpdateUnderNative", "disableDevBuild", "disableEmulator", "cannotGetBundle", "checksum_fail", "NoChannelOrOverride", "setChannel", "getChannel", "rateLimited", "disableAutoUpdate", "keyMismatch", "ping", "InvalidIp", "blocked_by_server_url", "download_manifest_start", "download_manifest_complete", "download_zip_start", "download_zip_complete", "download_manifest_file_fail", "download_manifest_checksum_fail", "download_manifest_brotli_fail", "backend_refusal", "download_0", "disableProdBuild", "disableDevice", "disablePlatformElectron", "customIdBlocked", "app_crash", "app_crash_native", "app_anr", "app_killed_low_memory", "app_killed_excessive_resource_usage", "app_initialization_failure", "app_memory_warning", "webview_javascript_error", "webview_unhandled_rejection", "webview_resource_error", "webview_security_policy_violation", "webview_unclean_restart", "webview_render_process_gone", "webview_content_process_terminated", "os_version_changed", "native_app_version_changed", "app_nav"];
|
|
5726
5732
|
readonly stripe_status: readonly ["created", "succeeded", "updated", "failed", "deleted", "canceled"];
|
|
5727
5733
|
readonly user_role: readonly ["read", "upload", "write", "admin"];
|
|
5728
5734
|
readonly version_action: readonly ["get", "fail", "install", "uninstall"];
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -5667,6 +5667,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5667
5667
|
};
|
|
5668
5668
|
Returns: boolean;
|
|
5669
5669
|
};
|
|
5670
|
+
verify_getting_started: {
|
|
5671
|
+
Args: {
|
|
5672
|
+
p_app_id: string;
|
|
5673
|
+
};
|
|
5674
|
+
Returns: import("./types/supabase.types").Json;
|
|
5675
|
+
};
|
|
5670
5676
|
verify_mfa: {
|
|
5671
5677
|
Args: never;
|
|
5672
5678
|
Returns: boolean;
|
|
@@ -5680,7 +5686,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5680
5686
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
5681
5687
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
5682
5688
|
platform_os: "ios" | "android" | "electron";
|
|
5683
|
-
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "keyMismatch" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal" | "download_0" | "disableProdBuild" | "disableDevice" | "disablePlatformElectron" | "customIdBlocked" | "app_crash" | "app_crash_native" | "app_anr" | "app_killed_low_memory" | "app_killed_excessive_resource_usage" | "app_initialization_failure" | "app_memory_warning" | "webview_javascript_error" | "webview_unhandled_rejection" | "webview_resource_error" | "webview_security_policy_violation" | "webview_unclean_restart" | "webview_render_process_gone" | "webview_content_process_terminated" | "os_version_changed" | "native_app_version_changed";
|
|
5689
|
+
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "keyMismatch" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal" | "download_0" | "disableProdBuild" | "disableDevice" | "disablePlatformElectron" | "customIdBlocked" | "app_crash" | "app_crash_native" | "app_anr" | "app_killed_low_memory" | "app_killed_excessive_resource_usage" | "app_initialization_failure" | "app_memory_warning" | "webview_javascript_error" | "webview_unhandled_rejection" | "webview_resource_error" | "webview_security_policy_violation" | "webview_unclean_restart" | "webview_render_process_gone" | "webview_content_process_terminated" | "os_version_changed" | "native_app_version_changed" | "app_nav";
|
|
5684
5690
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
5685
5691
|
user_role: "read" | "upload" | "write" | "admin";
|
|
5686
5692
|
version_action: "get" | "fail" | "install" | "uninstall";
|
package/package.json
CHANGED
|
@@ -11,6 +11,11 @@ domains:
|
|
|
11
11
|
- webdocs/star.mdx
|
|
12
12
|
- webdocs/star-all.mdx
|
|
13
13
|
- src/index.ts
|
|
14
|
+
- name: observe
|
|
15
|
+
summary: Query Observe findings, launch and WebView timings, device timelines, and per-screen routes from the CLI and MCP.
|
|
16
|
+
primary_sources:
|
|
17
|
+
- webdocs/observe.mdx
|
|
18
|
+
- src/index.ts
|
|
14
19
|
- name: ota-release-management
|
|
15
20
|
summary: OTA bundle uploads, channel operations, preview QR codes, compatibility checks, cleanup, and encryption-key workflows.
|
|
16
21
|
primary_sources:
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Goal
|
|
4
4
|
|
|
5
|
-
Provide a small Capgo CLI skill set that helps an agent choose and invoke the correct CLI commands for app setup, OTA release operations, organization administration, MCP setup, GitHub support commands, and native cloud builds without exceeding TanStack Intent size limits.
|
|
5
|
+
Provide a small Capgo CLI skill set that helps an agent choose and invoke the correct CLI commands for app setup, OTA release operations, organization administration, MCP setup, GitHub support commands, Observe queries, and native cloud builds without exceeding TanStack Intent size limits.
|
|
6
6
|
|
|
7
7
|
## Sources
|
|
8
8
|
|
|
@@ -13,6 +13,7 @@ Provide a small Capgo CLI skill set that helps an agent choose and invoke the co
|
|
|
13
13
|
## Skill set
|
|
14
14
|
|
|
15
15
|
- `usage`: routing, setup, diagnostics, app commands, docs generation, MCP, and GitHub support commands.
|
|
16
|
+
- `observe`: Observe query commands and MCP (`summary`, `metrics`, `events`, `device`, `versions`, `routes`).
|
|
16
17
|
- `release-management`: bundle, channel, compatibility, cleanup, and encryption-key workflows.
|
|
17
18
|
- `native-builds`: native cloud build requests and build credential storage/update flows.
|
|
18
19
|
- `organization-management`: account ID lookup, organization admin flows, and deprecated `organisation` aliases.
|
|
@@ -3,6 +3,10 @@ skills:
|
|
|
3
3
|
path: skills/usage/SKILL.md
|
|
4
4
|
domain: cli-usage
|
|
5
5
|
focus: High-level routing and shared invocation rules.
|
|
6
|
+
- name: observe
|
|
7
|
+
path: skills/observe/SKILL.md
|
|
8
|
+
domain: observe
|
|
9
|
+
focus: Query Observe findings, metrics, device timelines, and navigation routes.
|
|
6
10
|
- name: release-management
|
|
7
11
|
path: skills/release-management/SKILL.md
|
|
8
12
|
domain: ota-release-management
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: observe
|
|
3
|
+
description: Use when querying Capgo Observe metrics, launch timings, crashes, WebView loads, device timelines, or per-screen navigation from the CLI, SDK, or MCP.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Capgo Observe
|
|
7
|
+
|
|
8
|
+
Query existing Observe stats so agents and scripts can act on the data. Dashboards stay visual; this surface is for `findings` plus a next query.
|
|
9
|
+
|
|
10
|
+
Capgo has no session id. Treat `device_id` + time window as the session. Start with `summary` and follow `findings[].next`.
|
|
11
|
+
|
|
12
|
+
Navigation does not need Expo Router. Listen to `history.pushState`, `history.replaceState`, `popstate`, `hashchange`, and Capacitor App `appUrlOpen`, then send stats action `app_nav` with `metadata.route` (or `path`) and optional `duration_ms`.
|
|
13
|
+
|
|
14
|
+
## CLI
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npx @capgo/cli@latest observe summary
|
|
18
|
+
npx @capgo/cli@latest observe metrics --action app_launch_ready --sort slowest --json
|
|
19
|
+
npx @capgo/cli@latest observe events --action app_crash_native
|
|
20
|
+
npx @capgo/cli@latest observe device DEVICE_ID --json
|
|
21
|
+
npx @capgo/cli@latest observe versions
|
|
22
|
+
npx @capgo/cli@latest observe routes --json
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Shared flags: `-a, --apikey`, `--days` (`1`, `3`, `7`, `30`), `--action`, `--sort`, `--limit`, `--version-name`, `--json`.
|
|
26
|
+
|
|
27
|
+
## MCP
|
|
28
|
+
|
|
29
|
+
Call `capgo_observe` with `view=summary` first. Follow `findings[].next`. Use `view=device` and `deviceId` for the timeline.
|
|
30
|
+
|
|
31
|
+
## Views
|
|
32
|
+
|
|
33
|
+
- `summary`: findings, handoff prompt, overview
|
|
34
|
+
- `metrics`: timed samples (launch, WebView, `app_nav`)
|
|
35
|
+
- `events`: action counts and latest devices
|
|
36
|
+
- `device`: ordered timeline for one `device_id`
|
|
37
|
+
- `versions`: per-bundle launch/issue breakdown
|
|
38
|
+
- `routes`: grouped by `metadata.route` / `path` / `url`
|
package/skills/usage/SKILL.md
CHANGED
|
@@ -10,6 +10,7 @@ Use this skill as the entry point for the Capgo CLI skill set.
|
|
|
10
10
|
TanStack Intent skills should stay focused and under the validator line limit, so the Capgo CLI guidance is split into multiple skills:
|
|
11
11
|
|
|
12
12
|
- `usage`: high-level command routing, shared invocation rules, and quick command selection.
|
|
13
|
+
- `observe`: Observe query commands and MCP (`summary`, `metrics`, `events`, `device`, `versions`, `routes`).
|
|
13
14
|
- `release-management`: OTA bundle, channel, and encryption-key workflows.
|
|
14
15
|
- `native-builds`: native cloud build request and build-credential workflows.
|
|
15
16
|
- `organization-management`: organization, account, and deprecated organisation-alias workflows.
|
|
@@ -31,6 +32,7 @@ TanStack Intent skills should stay focused and under the validator line limit, s
|
|
|
31
32
|
- `login [apikey]`: store an API key locally.
|
|
32
33
|
- `doctor`: inspect installation health and gather troubleshooting details.
|
|
33
34
|
- `probe`: test whether the update endpoint would deliver an update.
|
|
35
|
+
- `observe summary|metrics|events|device|versions|routes`: query Observe findings, timings, device timelines, and per-screen routes. Start with `observe summary`. Use `observe device DEVICE_ID` as the session timeline. Navigation uses `app_nav` + `metadata.route` (history/popstate/hashchange/appUrlOpen, no Expo Router). Pass `--json` for agents.
|
|
34
36
|
|
|
35
37
|
### App-level operations
|
|
36
38
|
|
|
@@ -43,7 +45,7 @@ TanStack Intent skills should stay focused and under the validator line limit, s
|
|
|
43
45
|
|
|
44
46
|
### Docs and agent integrations
|
|
45
47
|
|
|
46
|
-
- `mcp`: start the Capgo MCP server for AI-agent integrations; pass `--capacitor-config <path>` when its config-writing tools should target an app-specific source.
|
|
48
|
+
- `mcp`: start the Capgo MCP server for AI-agent integrations; pass `--capacitor-config <path>` when its config-writing tools should target an app-specific source. Observe queries use `capgo_observe` (start at `view=summary`).
|
|
47
49
|
|
|
48
50
|
### GitHub support commands
|
|
49
51
|
|
|
@@ -52,6 +54,13 @@ TanStack Intent skills should stay focused and under the validator line limit, s
|
|
|
52
54
|
|
|
53
55
|
## Related skills
|
|
54
56
|
|
|
57
|
+
### `observe`
|
|
58
|
+
|
|
59
|
+
Load `skills/observe/SKILL.md` when working with:
|
|
60
|
+
|
|
61
|
+
- `observe summary`, `observe metrics`, `observe events`, `observe device`, `observe versions`, `observe routes`
|
|
62
|
+
- MCP `capgo_observe`
|
|
63
|
+
|
|
55
64
|
### `release-management`
|
|
56
65
|
|
|
57
66
|
Load `skills/release-management/SKILL.md` when working with:
|