diff --git a/skills/browser-trace/EXAMPLES.md b/skills/browser-trace/EXAMPLES.md index a1710364..9d975390 100644 --- a/skills/browser-trace/EXAMPLES.md +++ b/skills/browser-trace/EXAMPLES.md @@ -220,4 +220,4 @@ jq -c 'select(.params.frameId == .params.loaderId or .params.frameId != null) jq '.proxyBytes' browserbase/session.json ``` -**Key idea**: `bb-capture.mjs ` (no `--new`) only adds an tracer; it never sends action commands. The production worker keeps running. `bb-finalize.mjs` *without* `--release` leaves the session alive when you're done. +**Key idea**: `bb-capture.mjs ` (no `--new`) only adds a tracer; it never sends action commands. The production worker keeps running. `bb-finalize.mjs` *without* `--release` leaves the session alive when you're done. diff --git a/skills/browser-trace/REFERENCE.md b/skills/browser-trace/REFERENCE.md index ae4c886a..5571c2f2 100644 --- a/skills/browser-trace/REFERENCE.md +++ b/skills/browser-trace/REFERENCE.md @@ -305,7 +305,7 @@ grep -lr 'api\.example\.com' .o11y/*/cdp/network/requests.jsonl # Search DOM dumps for an element class that came and went rg -l 'class="error-banner"' .o11y//dom/ -# Tail the firehose live (re-run start-capture is fine — it appends to raw.ndjson? no, it overwrites) +# Tail the firehose live (note: re-running start-capture overwrites raw.ndjson, it does not append) tail -f .o11y//cdp/raw.ndjson | jq -c '{m:.method, u:.params.request.url // .params.frame.url // ""}' ``` @@ -328,5 +328,5 @@ The interval-second arg to `start-capture.mjs` controls only the sampler. The fi | Browserbase session ends as soon as tracer connects | tracer was the only client; no automation attached | create with `--keep-alive`, attach automation with `browse open --cdp --session ` first | | `index.jsonl` shows `"url": ""` | sampler `browse get url` failed transiently | benign; happens during navigation transitions | | Screenshots empty / huge / inconsistent sizes | viewport not set | `browse viewport 1920 1080 --cdp ` once before capture | -| `raw.ndjson` grows but bisect buckets empty | wrong domains; e.g. you wanted DOM but didn't enable it | `O11Y_DOMAINS="Network Console Runtime Log Page DOM" bash start-capture.mjs ...` | +| `raw.ndjson` grows but bisect buckets empty | wrong domains; e.g. you wanted DOM but didn't enable it | `O11Y_DOMAINS="Network Console Runtime Log Page DOM" node scripts/start-capture.mjs ...` | | Loop process leaks after crash | `stop-capture.mjs` not run | `pkill -f snapshot-loop.mjs`; PID files in `` are stale | diff --git a/skills/browser-trace/SKILL.md b/skills/browser-trace/SKILL.md index 0fd691e0..eef308c3 100644 --- a/skills/browser-trace/SKILL.md +++ b/skills/browser-trace/SKILL.md @@ -220,7 +220,7 @@ jq -c 'select(.params.type == "error")' .o11y//cdp/console/logs.jsonl jq -r '.params.frame.url' .o11y//cdp/page/navigations.jsonl # Find the screenshot taken closest to a timestamp (e.g., when an exception fired) -ls .o11y//screenshots/ | sort | awk -v t=20260427T1714123NZ ' +ls .o11y//screenshots/ | sort | awk -v t=20260427T171412Z ' $0 >= t { print; exit }' ```