@capgo/cli 8.46.1 → 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 +2 -2
- package/dist/src/utils.d.ts +1 -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
package/README.md
CHANGED
|
@@ -183,6 +183,13 @@ Capgo continues to load the root config while writing only the selected source.
|
|
|
183
183
|
- 🔹 [Notifications](#notifications)
|
|
184
184
|
- [Setup](#notifications-setup)
|
|
185
185
|
- 🔹 [Probe](#probe)
|
|
186
|
+
- 📊 [Observe](#observe)
|
|
187
|
+
- [Summary](#observe-summary)
|
|
188
|
+
- [Metrics](#observe-metrics)
|
|
189
|
+
- [Events](#observe-events)
|
|
190
|
+
- [Device](#observe-device)
|
|
191
|
+
- [Versions](#observe-versions)
|
|
192
|
+
- [Routes](#observe-routes)
|
|
186
193
|
- 🔹 [Generate-docs](#generate-docs)
|
|
187
194
|
- 🔹 [Mcp](#mcp)
|
|
188
195
|
|
|
@@ -224,7 +231,7 @@ npx @capgo/cli@latest init YOUR_API_KEY com.example.app
|
|
|
224
231
|
|
|
225
232
|
📱 Run Capacitor apps on devices from the CLI.
|
|
226
233
|
|
|
227
|
-
### <a id="run-device"></a>
|
|
234
|
+
### <a id="run-device"></a> 📱 **Device**
|
|
228
235
|
|
|
229
236
|
```bash
|
|
230
237
|
npx @capgo/cli@latest run device
|
|
@@ -1889,6 +1896,186 @@ npx @capgo/cli@latest probe --platform ios
|
|
|
1889
1896
|
| **--platform** | <code>string</code> | Platform to probe: ios or android |
|
|
1890
1897
|
|
|
1891
1898
|
|
|
1899
|
+
## <a id="observe"></a> 📊 **Observe**
|
|
1900
|
+
|
|
1901
|
+
📊 Query Capgo Observe metrics so you can act on launch, crash, WebView, and navigation data.
|
|
1902
|
+
Start with summary and follow the findings. Capgo has no session id: use observe device DEVICE_ID for a device timeline.
|
|
1903
|
+
Navigation does not need Expo Router. Listen to history.pushState, history.replaceState, popstate, hashchange, and Capacitor App appUrlOpen, then send action=app_nav with metadata.route.
|
|
1904
|
+
|
|
1905
|
+
### <a id="observe-summary"></a> 📊 **Summary**
|
|
1906
|
+
|
|
1907
|
+
```bash
|
|
1908
|
+
npx @capgo/cli@latest observe summary
|
|
1909
|
+
```
|
|
1910
|
+
|
|
1911
|
+
📊 Actionable Observe findings for an app.
|
|
1912
|
+
Start here. Each finding includes a next view to query.
|
|
1913
|
+
|
|
1914
|
+
**Example:**
|
|
1915
|
+
|
|
1916
|
+
```bash
|
|
1917
|
+
npx @capgo/cli@latest observe summary
|
|
1918
|
+
```
|
|
1919
|
+
|
|
1920
|
+
**Options:**
|
|
1921
|
+
|
|
1922
|
+
| Param | Type | Description |
|
|
1923
|
+
| -------------- | ------------- | -------------------- |
|
|
1924
|
+
| **-a** | <code>string</code> | API key to link to your account |
|
|
1925
|
+
| **--days** | <code>string</code> | Lookback window in days: 1, 3, 7, or 30 (default: 7) |
|
|
1926
|
+
| **--action** | <code>string</code> | Filter by stats action, for example app_launch_ready or app_nav |
|
|
1927
|
+
| **--sort** | <code>string</code> | Sort samples: slowest, fastest, newest, or oldest |
|
|
1928
|
+
| **--limit** | <code>string</code> | Max rows to return |
|
|
1929
|
+
| **--version-name** | <code>string</code> | Filter by bundle version name |
|
|
1930
|
+
| **--json** | <code>boolean</code> | Output as JSON |
|
|
1931
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
1932
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
1933
|
+
|
|
1934
|
+
### <a id="observe-metrics"></a> 📊 **Metrics**
|
|
1935
|
+
|
|
1936
|
+
```bash
|
|
1937
|
+
npx @capgo/cli@latest observe metrics
|
|
1938
|
+
```
|
|
1939
|
+
|
|
1940
|
+
📈 Sample Observe timings, slowest first by default.
|
|
1941
|
+
Use --action app_launch_ready or app_nav, and --sort slowest to find outliers.
|
|
1942
|
+
|
|
1943
|
+
**Example:**
|
|
1944
|
+
|
|
1945
|
+
```bash
|
|
1946
|
+
npx @capgo/cli@latest observe metrics --action app_launch_ready --sort slowest --json
|
|
1947
|
+
```
|
|
1948
|
+
|
|
1949
|
+
**Options:**
|
|
1950
|
+
|
|
1951
|
+
| Param | Type | Description |
|
|
1952
|
+
| -------------- | ------------- | -------------------- |
|
|
1953
|
+
| **-a** | <code>string</code> | API key to link to your account |
|
|
1954
|
+
| **--days** | <code>string</code> | Lookback window in days: 1, 3, 7, or 30 (default: 7) |
|
|
1955
|
+
| **--action** | <code>string</code> | Filter by stats action, for example app_launch_ready or app_nav |
|
|
1956
|
+
| **--sort** | <code>string</code> | Sort samples: slowest, fastest, newest, or oldest |
|
|
1957
|
+
| **--limit** | <code>string</code> | Max rows to return |
|
|
1958
|
+
| **--version-name** | <code>string</code> | Filter by bundle version name |
|
|
1959
|
+
| **--json** | <code>boolean</code> | Output as JSON |
|
|
1960
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
1961
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
1962
|
+
|
|
1963
|
+
### <a id="observe-events"></a> 📊 **Events**
|
|
1964
|
+
|
|
1965
|
+
```bash
|
|
1966
|
+
npx @capgo/cli@latest observe events
|
|
1967
|
+
```
|
|
1968
|
+
|
|
1969
|
+
📋 Observe action counts and latest devices.
|
|
1970
|
+
|
|
1971
|
+
**Example:**
|
|
1972
|
+
|
|
1973
|
+
```bash
|
|
1974
|
+
npx @capgo/cli@latest observe events --action app_crash_native
|
|
1975
|
+
```
|
|
1976
|
+
|
|
1977
|
+
**Options:**
|
|
1978
|
+
|
|
1979
|
+
| Param | Type | Description |
|
|
1980
|
+
| -------------- | ------------- | -------------------- |
|
|
1981
|
+
| **-a** | <code>string</code> | API key to link to your account |
|
|
1982
|
+
| **--days** | <code>string</code> | Lookback window in days: 1, 3, 7, or 30 (default: 7) |
|
|
1983
|
+
| **--action** | <code>string</code> | Filter by stats action, for example app_launch_ready or app_nav |
|
|
1984
|
+
| **--sort** | <code>string</code> | Sort samples: slowest, fastest, newest, or oldest |
|
|
1985
|
+
| **--limit** | <code>string</code> | Max rows to return |
|
|
1986
|
+
| **--version-name** | <code>string</code> | Filter by bundle version name |
|
|
1987
|
+
| **--json** | <code>boolean</code> | Output as JSON |
|
|
1988
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
1989
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
1990
|
+
|
|
1991
|
+
### <a id="observe-device"></a> 📱 **Device**
|
|
1992
|
+
|
|
1993
|
+
```bash
|
|
1994
|
+
npx @capgo/cli@latest observe device
|
|
1995
|
+
```
|
|
1996
|
+
|
|
1997
|
+
📱 Device timeline (session substitute) for one device_id.
|
|
1998
|
+
Capgo has no session id. Read events in time order to see launch, WebView, crashes, and navigations.
|
|
1999
|
+
|
|
2000
|
+
**Example:**
|
|
2001
|
+
|
|
2002
|
+
```bash
|
|
2003
|
+
npx @capgo/cli@latest observe device DEVICE_ID --json
|
|
2004
|
+
```
|
|
2005
|
+
|
|
2006
|
+
**Options:**
|
|
2007
|
+
|
|
2008
|
+
| Param | Type | Description |
|
|
2009
|
+
| -------------- | ------------- | -------------------- |
|
|
2010
|
+
| **-d** | <code>string</code> | Device ID |
|
|
2011
|
+
| **-a** | <code>string</code> | API key to link to your account |
|
|
2012
|
+
| **--days** | <code>string</code> | Lookback window in days: 1, 3, 7, or 30 (default: 7) |
|
|
2013
|
+
| **--action** | <code>string</code> | Filter by stats action, for example app_launch_ready or app_nav |
|
|
2014
|
+
| **--sort** | <code>string</code> | Sort samples: slowest, fastest, newest, or oldest |
|
|
2015
|
+
| **--limit** | <code>string</code> | Max rows to return |
|
|
2016
|
+
| **--version-name** | <code>string</code> | Filter by bundle version name |
|
|
2017
|
+
| **--json** | <code>boolean</code> | Output as JSON |
|
|
2018
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
2019
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
2020
|
+
|
|
2021
|
+
### <a id="observe-versions"></a> 📊 **Versions**
|
|
2022
|
+
|
|
2023
|
+
```bash
|
|
2024
|
+
npx @capgo/cli@latest observe versions
|
|
2025
|
+
```
|
|
2026
|
+
|
|
2027
|
+
📦 Observe breakdown by bundle version.
|
|
2028
|
+
|
|
2029
|
+
**Example:**
|
|
2030
|
+
|
|
2031
|
+
```bash
|
|
2032
|
+
npx @capgo/cli@latest observe versions
|
|
2033
|
+
```
|
|
2034
|
+
|
|
2035
|
+
**Options:**
|
|
2036
|
+
|
|
2037
|
+
| Param | Type | Description |
|
|
2038
|
+
| -------------- | ------------- | -------------------- |
|
|
2039
|
+
| **-a** | <code>string</code> | API key to link to your account |
|
|
2040
|
+
| **--days** | <code>string</code> | Lookback window in days: 1, 3, 7, or 30 (default: 7) |
|
|
2041
|
+
| **--action** | <code>string</code> | Filter by stats action, for example app_launch_ready or app_nav |
|
|
2042
|
+
| **--sort** | <code>string</code> | Sort samples: slowest, fastest, newest, or oldest |
|
|
2043
|
+
| **--limit** | <code>string</code> | Max rows to return |
|
|
2044
|
+
| **--version-name** | <code>string</code> | Filter by bundle version name |
|
|
2045
|
+
| **--json** | <code>boolean</code> | Output as JSON |
|
|
2046
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
2047
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
2048
|
+
|
|
2049
|
+
### <a id="observe-routes"></a> 📊 **Routes**
|
|
2050
|
+
|
|
2051
|
+
```bash
|
|
2052
|
+
npx @capgo/cli@latest observe routes
|
|
2053
|
+
```
|
|
2054
|
+
|
|
2055
|
+
🧭 Per-screen Observe timings from metadata.route or action=app_nav.
|
|
2056
|
+
No Expo Router required. The app should listen to history/popstate/hashchange/appUrlOpen and send metadata.route.
|
|
2057
|
+
|
|
2058
|
+
**Example:**
|
|
2059
|
+
|
|
2060
|
+
```bash
|
|
2061
|
+
npx @capgo/cli@latest observe routes --json
|
|
2062
|
+
```
|
|
2063
|
+
|
|
2064
|
+
**Options:**
|
|
2065
|
+
|
|
2066
|
+
| Param | Type | Description |
|
|
2067
|
+
| -------------- | ------------- | -------------------- |
|
|
2068
|
+
| **-a** | <code>string</code> | API key to link to your account |
|
|
2069
|
+
| **--days** | <code>string</code> | Lookback window in days: 1, 3, 7, or 30 (default: 7) |
|
|
2070
|
+
| **--action** | <code>string</code> | Filter by stats action, for example app_launch_ready or app_nav |
|
|
2071
|
+
| **--sort** | <code>string</code> | Sort samples: slowest, fastest, newest, or oldest |
|
|
2072
|
+
| **--limit** | <code>string</code> | Max rows to return |
|
|
2073
|
+
| **--version-name** | <code>string</code> | Filter by bundle version name |
|
|
2074
|
+
| **--json** | <code>boolean</code> | Output as JSON |
|
|
2075
|
+
| **--supa-host** | <code>string</code> | Custom Supabase host URL (for self-hosting or Capgo development) |
|
|
2076
|
+
| **--supa-anon** | <code>string</code> | Custom Supabase anon key (for self-hosting) |
|
|
2077
|
+
|
|
2078
|
+
|
|
1892
2079
|
## <a id="mcp"></a> 🔹 **Mcp**
|
|
1893
2080
|
|
|
1894
2081
|
```bash
|
|
@@ -1906,7 +2093,7 @@ Selected tools exposed via MCP:
|
|
|
1906
2093
|
- capgo_list_organizations, capgo_add_organization
|
|
1907
2094
|
- capgo_star_repository
|
|
1908
2095
|
- capgo_star_all_repositories
|
|
1909
|
-
- capgo_get_account_id, capgo_doctor, capgo_get_stats
|
|
2096
|
+
- capgo_get_account_id, capgo_doctor, capgo_get_stats, capgo_observe
|
|
1910
2097
|
- capgo_request_build, capgo_generate_encryption_keys
|
|
1911
2098
|
Example usage with Claude Desktop:
|
|
1912
2099
|
Add to claude_desktop_config.json:
|