@capgo/cli 8.90.0 → 8.90.1
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 +92 -92
- package/dist/index.js +926 -936
- package/dist/notify-app-ready-worker.js +197 -203
- package/dist/onboarding-worker.js +464 -465
- package/dist/package.json +8 -8
- package/dist/src/analytics/api-perf.d.ts +39 -0
- package/dist/src/analytics/error-category.d.ts +1 -1
- package/dist/src/analytics/org-resolver.d.ts +2 -6
- package/dist/src/analytics/track.d.ts +1 -3
- package/dist/src/api/app.d.ts +31 -19
- package/dist/src/api/channels.d.ts +25 -52
- package/dist/src/api/cli-data.d.ts +27 -0
- package/dist/src/api/http-error.d.ts +9 -0
- package/dist/src/api/preflight.d.ts +53 -0
- package/dist/src/api/versions.d.ts +15 -59
- package/dist/src/app/add.d.ts +5 -9
- package/dist/src/app/debug.d.ts +1 -2
- package/dist/src/app/default-channels.d.ts +7 -9
- package/dist/src/app/list.d.ts +3 -70
- package/dist/src/auth/session.d.ts +1 -2
- package/dist/src/build/onboarding/android/ui/app.d.ts +2 -3
- package/dist/src/build/onboarding/app-selection.d.ts +2 -4
- package/dist/src/build/onboarding/appflow/tail.d.ts +1 -1
- package/dist/src/build/onboarding/command.d.ts +2 -3
- package/dist/src/build/onboarding/login.d.ts +1 -2
- package/dist/src/build/onboarding/ui/app.d.ts +2 -3
- package/dist/src/build/onboarding/ui/appflow-app.d.ts +1 -1
- package/dist/src/build/onboarding/ui/shell.d.ts +2 -3
- package/dist/src/build/prescan/command.d.ts +1 -2
- package/dist/src/build/prescan/context.d.ts +2 -3
- package/dist/src/build/prescan/types.d.ts +3 -4
- package/dist/src/bundle/auto-bump-ai.d.ts +6 -9
- package/dist/src/bundle/finalize-upload.d.ts +2 -4
- package/dist/src/bundle/list.d.ts +1 -25
- package/dist/src/bundle/manifest-upload.d.ts +1 -1
- package/dist/src/bundle/unlink.d.ts +1 -2
- package/dist/src/bundle/upload.d.ts +3 -3
- package/dist/src/channel/add.d.ts +3 -4
- package/dist/src/init/builder-setup.d.ts +1 -1
- package/dist/src/init/channel-selection.d.ts +2 -3
- package/dist/src/init/onboarding-report.d.ts +2 -4
- package/dist/src/init/replay.d.ts +2 -3
- package/dist/src/login.d.ts +1 -2
- package/dist/src/mcp/tool-schemas.d.ts +5 -5
- package/dist/src/observe/command.d.ts +1 -2
- package/dist/src/onboarding/background-api.d.ts +1 -1
- package/dist/src/onboarding/background-check.d.ts +0 -1
- package/dist/src/onboarding/background.d.ts +1 -2
- package/dist/src/organization/add.d.ts +2 -24
- package/dist/src/organization/list.d.ts +4 -34
- package/dist/src/organization/set.d.ts +4 -6
- package/dist/src/preview/qr.d.ts +1 -2
- package/dist/src/recovery/app-id.d.ts +1 -2
- package/dist/src/schemas/account.d.ts +2 -2
- package/dist/src/schemas/app.d.ts +6 -6
- package/dist/src/schemas/base.d.ts +2 -2
- package/dist/src/schemas/build.d.ts +4 -4
- package/dist/src/schemas/bundle.d.ts +13 -13
- package/dist/src/schemas/channel.d.ts +10 -10
- package/dist/src/schemas/onboarding.d.ts +1 -1
- package/dist/src/schemas/organization.d.ts +8 -8
- package/dist/src/schemas/sdk.d.ts +52 -52
- package/dist/src/sdk.d.ts +19 -8
- package/dist/src/sdk.js +449 -484
- package/dist/src/shared/network-error.d.ts +2 -2
- package/dist/src/shared/two-factor-compliance.d.ts +1 -1
- package/dist/src/types/api.d.ts +214 -0
- package/dist/src/user/whoami.d.ts +3 -4
- package/dist/src/utils.d.ts +135 -10894
- package/dist/updater-installed-worker.js +184 -190
- package/package.json +8 -8
- package/skills/usage/SKILL.md +2 -2
- package/dist/src/analytics/supabase-perf.d.ts +0 -48
- package/dist/src/types/supabase.types.d.ts +0 -5588
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/cli",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "8.90.
|
|
4
|
+
"version": "8.90.1",
|
|
5
5
|
"description": "A CLI to upload to capgo servers",
|
|
6
6
|
"author": "Martin martin@capgo.app",
|
|
7
7
|
"license": "Apache 2.0",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"no-debug": "node dist/index.js",
|
|
58
58
|
"dev-build": "SUPA_DB=development ncc build",
|
|
59
59
|
"pack": "pkg",
|
|
60
|
-
"types": "bunx --bun supabase gen types typescript --project-id=xvwzpoazmxkqosrdewyv > src/types/supabase.types.ts",
|
|
61
60
|
"typecheck": "tsgo --project tsconfig.tsgo.json --noEmit",
|
|
62
61
|
"lint": "bun run lint:ox",
|
|
63
62
|
"lint:ox": "oxlint --config ../.oxlintrc.json src",
|
|
@@ -89,6 +88,7 @@
|
|
|
89
88
|
"test:build-cancellation": "bun test/test-build-cancellation.mjs",
|
|
90
89
|
"test:ci-prompts": "bun test/test-ci-prompts.mjs",
|
|
91
90
|
"test:capgo-app-id-prompt": "bun test/test-capgo-app-id-prompt.mjs",
|
|
91
|
+
"test:bundle-soft-delete": "bun test/test-bundle-soft-delete.mjs",
|
|
92
92
|
"test:ci-secrets": "bun test/test-ci-secrets.mjs",
|
|
93
93
|
"test:android-onboarding-progress": "bun test/test-android-onboarding-progress.mjs && bun test/test-android-select-guard.mjs",
|
|
94
94
|
"test:android-keystore-action": "bun test/test-android-keystore-action.mjs",
|
|
@@ -101,12 +101,13 @@
|
|
|
101
101
|
"test:authenticated-command-invocation": "bun test/test-authenticated-command-invocation.mjs",
|
|
102
102
|
"test:analytics-error-category": "bun test/test-analytics-error-category.mjs",
|
|
103
103
|
"test:analytics-org-resolver": "bun test/test-analytics-org-resolver.mjs",
|
|
104
|
-
"test:
|
|
104
|
+
"test:api-perf": "bun test/test-api-perf.mjs",
|
|
105
105
|
"test:preview-qr": "bun test/test-preview-qr.mjs",
|
|
106
106
|
"test:bundle-pages": "bun test test/test-bundle-pages.test.ts",
|
|
107
107
|
"test:mcp-analytics": "bun test/test-mcp-analytics.mjs",
|
|
108
108
|
"test:mcp-instructions": "bun test/test-mcp-instructions.mjs",
|
|
109
109
|
"test:mcp-stdout-guard": "bun test/test-mcp-stdout-guard.mjs",
|
|
110
|
+
"test:mcp-host-fields": "bun test/test-mcp-host-fields.mjs",
|
|
110
111
|
"test:mcp-platform-select": "bun test/test-mcp-platform-select.mjs",
|
|
111
112
|
"test:mcp-explain-scopes": "bun test/test-mcp-explain-scopes.mjs",
|
|
112
113
|
"test:mcp-oauth-reopen": "bun test/test-mcp-oauth-reopen.mjs",
|
|
@@ -124,7 +125,8 @@
|
|
|
124
125
|
"test:doctor-analytics": "bun test/test-doctor-analytics.mjs",
|
|
125
126
|
"test:posthog-exception": "bun test/test-posthog-exception.mjs",
|
|
126
127
|
"test:cli-recovery": "bun test/test-cli-recovery.mjs",
|
|
127
|
-
"test:create-
|
|
128
|
+
"test:create-capgo-client": "bun test/test-create-capgo-client.mjs",
|
|
129
|
+
"test:no-supabase-sdk": "bun test/test-no-supabase-sdk.mjs",
|
|
128
130
|
"test:onboarding-recovery": "bun test/test-onboarding-recovery.mjs",
|
|
129
131
|
"test:onboarding-progress": "bun test/test-onboarding-progress.mjs",
|
|
130
132
|
"test:onboarding-run-targets": "bun test/test-onboarding-run-targets.mjs",
|
|
@@ -145,7 +147,7 @@
|
|
|
145
147
|
"test:init-monorepo-targeting": "bun run test:capacitor-config-target && bun run test:builder-app-id-config && bun run test:capacitor-config-typescript7 && bun run test:capacitor-config-native-import && bun run test:cli-user-error-config && bun test/test-init-monorepo-targeting.mjs",
|
|
146
148
|
"test:prompt-preferences": "bun test/test-prompt-preferences.mjs",
|
|
147
149
|
"test:esm-sdk": "node test/test-sdk-esm.mjs",
|
|
148
|
-
"test:auth-session": "bun test/test-auth-session.mjs",
|
|
150
|
+
"test:auth-session": "bun test/test-auth-session.mjs && bun test/test-auth-session-bad-key.mjs",
|
|
149
151
|
"test:mcp": "node test/test-mcp.mjs",
|
|
150
152
|
"test:mcp-no-key-handshake": "node test/test-mcp-no-key-handshake.mjs",
|
|
151
153
|
"test:version-detection": "node test/test-get-installed-version.mjs",
|
|
@@ -195,7 +197,7 @@
|
|
|
195
197
|
"test": "bun run build && bun scripts/run-test-suite.ts",
|
|
196
198
|
"test:run": "bun scripts/run-test-suite.ts",
|
|
197
199
|
"test:serial": "bun run build && bun scripts/run-test-suite.ts --serial",
|
|
198
|
-
"test:suite": "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: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: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:
|
|
200
|
+
"test:suite": "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: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: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:app-set-options && bun run test:mcp-analytics && bun run test:mcp-instructions && bun run test:mcp-live-update-onboarding && bun run test:mcp-stdout-guard && 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-output-text && 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: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-upload-recovery && bun run test:init-replay && bun run test:init-telemetry && 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: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-upload-prompt && 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-certificate-action && bun run test:ios-profile-action && bun run test:ios-credential-action && 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: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:organization-set-api-host && bun run test:plan-validation && bun run test:setup-notices && bun run test:settings-parity",
|
|
199
201
|
"test:build-platform-selection": "bun test/test-build-platform-selection.mjs",
|
|
200
202
|
"test:builder-project-discovery": "bun test/test-builder-project-discovery.mjs",
|
|
201
203
|
"test:builder-app-selection": "bun test/test-builder-app-selection.mjs",
|
|
@@ -244,7 +246,6 @@
|
|
|
244
246
|
"test:app-permission-helper": "bun test/test-app-permission-helper.mjs",
|
|
245
247
|
"test:2fa-compliance-network": "bun test/test-2fa-compliance-network.mjs",
|
|
246
248
|
"test:organization-set-api-host": "bun test/test-organization-set-api-host.mjs",
|
|
247
|
-
"test:trial-warning": "bun test/test-trial-warning.mjs",
|
|
248
249
|
"test:plan-validation": "bun test/test-plan-validation.mjs",
|
|
249
250
|
"test:auto-bump-version": "bun test/test-auto-bump-version.mjs",
|
|
250
251
|
"test:auto-bump-ai-diff": "bun test/test-auto-bump-ai-diff.mjs",
|
|
@@ -290,7 +291,6 @@
|
|
|
290
291
|
"@sauber/table": "npm:@jsr/sauber__table",
|
|
291
292
|
"@sinonjs/fake-timers": "15.4.0",
|
|
292
293
|
"@std/semver": "npm:@jsr/std__semver@1.0.8",
|
|
293
|
-
"@supabase/supabase-js": "^2.110.8",
|
|
294
294
|
"@tanstack/intent": "^0.3.6",
|
|
295
295
|
"@types/adm-zip": "^0.5.8",
|
|
296
296
|
"@types/jsonwebtoken": "^9.0.10",
|
package/skills/usage/SKILL.md
CHANGED
|
@@ -28,7 +28,7 @@ TanStack Intent skills should stay focused and under the validator line limit, s
|
|
|
28
28
|
- With analytics enabled, source scans emit `scan_started` and `scan_ended` events in the `notify-app-ready` channel with a shared `attempt_id`. The ended event includes scan duration, result, and todo-report outcome. An abandoned scan may have no ended event.
|
|
29
29
|
- With analytics enabled, displaying the waiting message emits `background_checks_wait_started` in the `cli-usage` channel. Its event properties include the command path, pending check count, grace period, and pending `scan_attempt_ids`. Telemetry shares the five-second wait budget and respects `CAPGO_DISABLE_TELEMETRY` and `CAPGO_DISABLE_POSTHOG`.
|
|
30
30
|
- Updater installation checks use the same scan events and attempt pairing in the `updater-installed` channel, with a separate attempt ID from the source scan. Telemetry opt-out does not prevent either onboarding check.
|
|
31
|
-
- Background onboarding requests trust the default Capgo API origin. For a custom API, explicitly select the self-host with `--
|
|
31
|
+
- Background onboarding requests trust the default Capgo API origin. For a custom API, explicitly select the self-host with `--api-host <url>/functions/v1` where supported, or list trusted URL origins (including scheme and port) in `CAPGO_TRUSTED_API_ORIGINS`, separated by commas. Remote hosts require HTTPS; HTTP is permitted only for trusted loopback origins. Untrusted destinations and redirects are skipped without sending credentials to another host.
|
|
32
32
|
- Set `CAPGO_SETUP_DEBUG=1` to diagnose background setup notices. Timing, HTTP status, scanner reports, shutdown deadlines, and suppression reasons go to stderr; credentials and response bodies are omitted. Keep stdout attached to your terminal when investigating the five-second wait: piping or redirecting stdout skips it.
|
|
33
33
|
- Shared public flags commonly include `-a, --apikey <apikey>` and `--verbose` on commands that support verbose output.
|
|
34
34
|
- `--capacitor-config <path>` is a global option for dynamic monorepos: Capacitor still loads the active root config, while config-writing commands update the selected app-specific source file. On `mcp`, the target remains active for the server lifetime so config-writing MCP tools use the same source.
|
|
@@ -51,7 +51,7 @@ TanStack Intent skills should stay focused and under the validator line limit, s
|
|
|
51
51
|
- `app add [appId]`: create an app in Capgo Cloud.
|
|
52
52
|
- `app list`: list apps under the current account. Pass `--filter-by-org-id <orgId>` to list only apps from one organization, `--show-org` to include organization names, and `--show-org-id` to include organization IDs. The CLI warns that the filter can hide other accessible apps. Use `npx @capgo/cli@latest app list --output-text` for plain status text with an embedded CSV app table and no interactive terminal formatting.
|
|
53
53
|
- `app delete [appId]`: remove an app.
|
|
54
|
-
- `app todo [appId]` (alias: `app todoList`): show the versioned onboarding checklist with done, skipped, and pending tasks, using the same live progress checks as the dashboard. Supports legacy v3 flat steps and v4 OTA steps under `setup.steps.ota` when `setup.ota_todo_list_version` is the string `"1"`. For a supported Builder-only V4 assignment, shows independent 🍎 iOS and 🤖 Android tasks, saved selection, timestamps, plain-language explanations of setup choices labeled `Note:` with each sentence on its own indented line, and actionable `Warning:` messages. Interactive terminals use colored headings and status markers; redirected output stays plain, and `NO_COLOR` disables colors. Use `npx @capgo/cli@latest build init` to resume; only a backend-reported successful cloud build completes the final task. OTA-only apps retain the OTA checklist. Supported dual assignments offer OTA/Builder tabs in interactive terminals (Left/Right or Tab to switch, Up/Down or Page Up/Page Down to scroll, q/Esc to close). For scripts and AI agents, pass `--list builder` or `--list ota` to print one list and exit; dual non-interactive invocations require this selector. Single-list apps do not need it. Tab navigation does not change saved setup choices or progress. Skipped tasks count toward completed progress. Live checks can refresh saved OTA milestones; a warning means saved progress is shown for checks that failed. Requires `app.read`; additional checks depend on the key's read permissions. Omit the app ID to infer it from the current Capacitor project. Example: `npx @capgo/cli@latest app todo com.example.app`. Supports `--list builder|ota`, `-a, --apikey`,
|
|
54
|
+
- `app todo [appId]` (alias: `app todoList`): show the versioned onboarding checklist with done, skipped, and pending tasks, using the same live progress checks as the dashboard. Supports legacy v3 flat steps and v4 OTA steps under `setup.steps.ota` when `setup.ota_todo_list_version` is the string `"1"`. For a supported Builder-only V4 assignment, shows independent 🍎 iOS and 🤖 Android tasks, saved selection, timestamps, plain-language explanations of setup choices labeled `Note:` with each sentence on its own indented line, and actionable `Warning:` messages. Interactive terminals use colored headings and status markers; redirected output stays plain, and `NO_COLOR` disables colors. Use `npx @capgo/cli@latest build init` to resume; only a backend-reported successful cloud build completes the final task. OTA-only apps retain the OTA checklist. Supported dual assignments offer OTA/Builder tabs in interactive terminals (Left/Right or Tab to switch, Up/Down or Page Up/Page Down to scroll, q/Esc to close). For scripts and AI agents, pass `--list builder` or `--list ota` to print one list and exit; dual non-interactive invocations require this selector. Single-list apps do not need it. Tab navigation does not change saved setup choices or progress. Skipped tasks count toward completed progress. Live checks can refresh saved OTA milestones; a warning means saved progress is shown for checks that failed. Requires `app.read`; additional checks depend on the key's read permissions. Omit the app ID to infer it from the current Capacitor project. Example: `npx @capgo/cli@latest app todo com.example.app`. Supports `--list builder|ota`, `-a, --apikey`, and `--api-host`.
|
|
55
55
|
- `app set [appId]`: update app settings such as name, icon, retention, metadata exposure, preview access with `--preview` or `--no-preview`, and optional device data collection with `--collect-country` / `--no-collect-country` (same pattern for platform, os-version, plugin-version, version-build, is-emulator, is-prod, install-source). Unchecked fields are not stored; `/updates` still uses the live request.
|
|
56
56
|
- `app setting [path]`: update Capacitor config values programmatically.
|
|
57
57
|
- `app debug [appId]`: listen for live-update debug events, optionally for one device.
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tags every Supabase call made inside `fn` with `source`.
|
|
3
|
-
*
|
|
4
|
-
* The Supabase JS query builder is a lazy thenable: it does not call `fetch`
|
|
5
|
-
* until `.then()` is invoked (i.e. when the caller `await`s it). If we only
|
|
6
|
-
* call `run(source, fn)` and return the builder, `.then()` fires *outside* the
|
|
7
|
-
* AsyncLocalStorage context and `getSupabaseSource()` returns `undefined`.
|
|
8
|
-
*
|
|
9
|
-
* To fix this, we wrap the result in `Promise.resolve()` inside the `run()`
|
|
10
|
-
* callback. This schedules the microtask (which calls `.then()` on the builder)
|
|
11
|
-
* while still inside the async context, so the source label propagates through
|
|
12
|
-
* to the actual fetch. For plain Promises and non-thenable values the behaviour
|
|
13
|
-
* is unchanged.
|
|
14
|
-
*/
|
|
15
|
-
export declare function withSupabaseSource<T>(source: string, fn: () => T): Promise<Awaited<T>>;
|
|
16
|
-
export declare function getSupabaseSource(): string | undefined;
|
|
17
|
-
export declare function enableSupabaseInstrumentation(): void;
|
|
18
|
-
export declare function isSupabaseInstrumentationEnabled(): boolean;
|
|
19
|
-
export interface SupabaseCallInfo {
|
|
20
|
-
url: string;
|
|
21
|
-
method: string;
|
|
22
|
-
status: number;
|
|
23
|
-
ok: boolean;
|
|
24
|
-
durationMs: number;
|
|
25
|
-
source?: string;
|
|
26
|
-
apikey?: string;
|
|
27
|
-
error?: unknown;
|
|
28
|
-
}
|
|
29
|
-
export type SupabaseCallRecorder = (info: SupabaseCallInfo) => void;
|
|
30
|
-
export declare function setSupabaseCallRecorder(fn: SupabaseCallRecorder): void;
|
|
31
|
-
/** A Supabase call slower than this is flagged `slow` regardless of status. */
|
|
32
|
-
export declare const SLOW_THRESHOLD_MS = 5000;
|
|
33
|
-
/**
|
|
34
|
-
* Parses a Supabase REST/RPC/Functions URL into a low-cardinality operation label.
|
|
35
|
-
* Query strings are discarded so filter values never leak and cardinality
|
|
36
|
-
* stays bounded. `/rest/v1/rpc/get_user_id` => `rpc:get_user_id`;
|
|
37
|
-
* `/rest/v1/apps?...` => `GET apps`;
|
|
38
|
-
* `/functions/v1/files/upload_link` => `POST functions:files/upload_link`.
|
|
39
|
-
*/
|
|
40
|
-
export declare function deriveSupabaseOperation(url: string, method: string): string;
|
|
41
|
-
/**
|
|
42
|
-
* A `fetch` wrapper for supabase-js's `global.fetch`. Times the real request
|
|
43
|
-
* (which runs regardless), captures the active source label, and hands the
|
|
44
|
-
* result to the injected recorder. Returns the real Response / rethrows the
|
|
45
|
-
* real error so supabase-js behavior is never altered. Calls `globalThis.fetch`
|
|
46
|
-
* dynamically (not a captured ref) so it is testable and never self-recurses.
|
|
47
|
-
*/
|
|
48
|
-
export declare function createTimedFetch(): typeof fetch;
|