You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework `browsers create/update --telemetry` for the opt-in model:
- `--telemetry=all` captures the default set, `--telemetry=off` disables, and
`--telemetry=console,network` captures exactly the listed categories (replace
semantics). Drops the old name=on/off DSL.
- settableCategories expands to the full 9 (control, connection, system,
screenshot, captcha added); monitor is not settable (auto).
- After create/update, echo the categories telemetry will capture.
- `telemetry stream --categories` filter set covers all event categories
including monitor; category now read from the SDK's typed field directly.
NOTE: requires kernel-go-sdk >= v0.64 (new category fields). That bump is not
included here because it also requires migrating cmd/proxies to the new SDK
proxy API (unrelated). This change rebases on top of that SDK-bump PR; it does
not compile against the current pinned SDK (v0.58).
Co-authored-by: Cursor <cursoragent@cursor.com>
browsersUpdateCmd.Flags().Bool("force", false, "Force viewport resize even when a live view or recording/replay is active")
2252
-
browsersUpdateCmd.Flags().String("telemetry", "", "Update telemetry: --telemetry=all to enable, --telemetry=off to disable, --telemetry=network=on,page=off for per-category")
2258
+
browsersUpdateCmd.Flags().String("telemetry", "", "Update telemetry (opt-in, replaces current selection): --telemetry=all (default set), --telemetry=off (disable), or --telemetry=console,network (capture exactly those categories)")
2253
2259
2254
2260
browsersCmd.AddCommand(browsersListCmd)
2255
2261
browsersCmd.AddCommand(browsersCreateCmd)
@@ -2515,7 +2521,7 @@ func init() {
2515
2521
browsersCreateCmd.Flags().Bool("viewport-interactive", false, "Interactively select viewport size from list")
2516
2522
browsersCreateCmd.Flags().String("pool-id", "", "Browser pool ID to acquire from (mutually exclusive with --pool-name)")
2517
2523
browsersCreateCmd.Flags().String("pool-name", "", "Browser pool name to acquire from (mutually exclusive with --pool-id)")
2518
-
browsersCreateCmd.Flags().String("telemetry", "", "Configure telemetry: --telemetry=all to enable, --telemetry=off to disable, --telemetry=network=on,page=off for per-category")
2524
+
browsersCreateCmd.Flags().String("telemetry", "", "Configure telemetry (opt-in): --telemetry=all (default set), --telemetry=off (disable), or --telemetry=console,network (capture exactly those categories)")
2519
2525
2520
2526
// curl
2521
2527
curlCmd:=&cobra.Command{
@@ -2544,7 +2550,7 @@ followed automatically by Chromium.`,
telemetryStream.Flags().StringSlice("categories", []string{}, "Filter by API event category (api,console,interaction,network,page,system); system covers monitor_* and cdp_* events")
2553
+
telemetryStream.Flags().StringSlice("categories", []string{}, "Filter by event category (console,network,page,interaction,control,connection,system,screenshot,captcha,monitor)")
2548
2554
telemetryStream.Flags().StringSlice("types", []string{}, "Filter by event type (e.g. network_response,console_error)")
2549
2555
telemetryStream.Flags().Int64("seq", -1, "Resume after sequence number N (Last-Event-ID); replays events with seq > N. Default -1 streams from now")
2550
2556
telemetryStream.Flags().StringP("output", "o", "", "Output format: json for newline-delimited JSON envelopes")
{"matching type passes", `{"type":"console_log","category":"console","ts":0}`, nil, []string{"console_log"}, true},
296
271
{"non-matching type drops", `{"type":"network_response","category":"network","ts":0}`, nil, []string{"console_log"}, false},
297
272
{"both filters pass when both match", `{"type":"network_response","category":"network","ts":0}`, []string{"network"}, []string{"network_response"}, true},
0 commit comments