job-forge 2.14.45 → 2.14.47

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/iso/mcp.json CHANGED
@@ -4,8 +4,8 @@
4
4
  "command": "npx",
5
5
  "args": ["--no-install", "job-forge", "mcp:geometra"],
6
6
  "env": {
7
- "GEOMETRA_STEALTH": "1",
8
- "GEOMETRA_BROWSER": "stealth"
7
+ "GEOMETRA_STEALTH": "0",
8
+ "GEOMETRA_BROWSER": "stock"
9
9
  }
10
10
  },
11
11
  "gmail": {
package/modes/apply.md CHANGED
@@ -42,8 +42,8 @@ Live application assistant. Reads the active application form in Chrome (via Geo
42
42
  - [D6] Use `fieldLabel` over `fieldId` everywhere it works.
43
43
  why: labels are stable across DOM refreshes; IDs are regenerated
44
44
 
45
- - [D7] If the orchestrator says a proxy is configured, read the top-level `proxy:` block from `config/profile.yml` and pass that object plus `headless: true` and `stealth: true` into every `geometra_connect` call — including Call 3 of the recovery sequence — and every Geometra auto-connect call that passes `pageUrl` or `url`. If the task prompt includes a legacy inline `proxy` object, pass it through and still set `headless: true` and `stealth: true`, but do not echo credentials in status text. If absent, run with `headless: true`, `stealth: true`, and no proxy; never invent a proxy URL.
46
- why: class-B Ashby / Cloudflare-fronted portals need a residential outbound IP plus a stealth Chromium fingerprint, and Geometra opens visible Chromium unless `headless: true` is explicit. Geometra MCP v1.59.0 added proxy plumbing, and v1.61.3 added CloakBrowser stealth Chromium via `stealth: true`; the orchestrator owns the config pipe. See "BYO Residential Proxy" in modes/reference-portals.md.
45
+ - [D7] If the orchestrator says a proxy is configured, read the top-level `proxy:` block from `config/profile.yml` and pass that object plus `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `blockedSitePolicy: "manual-handoff"` into every `geometra_connect` call — including Call 3 of the recovery sequence — and every Geometra auto-connect call that passes `pageUrl` or `url`. If the task prompt includes a legacy inline `proxy` object, pass it through and still set the same headless/browser/block-detection options, but do not echo credentials in status text. If absent, run with `headless: true`, `browserMode: "stock"`, `blockDetection: true`, `blockedSitePolicy: "manual-handoff"`, and no proxy; never invent a proxy URL.
46
+ why: Geometra MCP >=1.62.3 keeps stock Chromium as the default browser mode, preserves headless operation when `headless: true` is explicit, and returns structured `blockedSite` / `manualHandoff` metadata for challenge, CAPTCHA, access-denied, and unsupported-browser states. JobForge should surface those states instead of silently looping on blocked portals. See "BYO Proxy + Block Detection" in modes/reference-portals.md.
47
47
 
48
48
  - [D8] Upgrade application routing to `@general-paid` when the offer score is ≥ 4.0/5, the user flags "top-tier", "dream job", or "high-stakes", or the candidate is late-stage/post-screen.
49
49
  why: high-stakes applications need the quality-sensitive prompt and medium reasoning budget even though OpenCode now routes both application tiers through DeepSeek V4 Flash by default
@@ -53,7 +53,7 @@ Live application assistant. Reads the active application form in Chrome (via Geo
53
53
 
54
54
  ## Procedure
55
55
 
56
- 1. `geometra_connect`: `headless: true`, `stealth: true`, `isolated: true` [D7].
56
+ 1. `geometra_connect`: `headless: true`, `browserMode: "stock"`, `isolated: true`, `blockDetection: true`, `blockedSitePolicy: "manual-handoff"` [D7].
57
57
  2. Run `geometra_page_model`; do not WebFetch the URL [D5].
58
58
  3. If Geometra is unavailable, ask for screenshot or pasted text [D2].
59
59
  4. Extract company + role; Grep `reports/` for a matching evaluation.
@@ -356,7 +356,9 @@ Call 3: geometra_connect({
356
356
  isolated: true,
357
357
  headless: true,
358
358
  slowMo: 350,
359
- stealth: true,
359
+ browserMode: "stock",
360
+ blockDetection: true,
361
+ blockedSitePolicy: "manual-handoff",
360
362
  proxy: <pass through from task prompt if present; omit otherwise>
361
363
  })
362
364
  Call 4: geometra_run_actions({
@@ -9,7 +9,7 @@ Fetch the JD content once. If the input is a **URL** (not pasted JD text), fetch
9
9
  **Pick exactly one method, in this priority order:**
10
10
 
11
11
  1. **Greenhouse JSON API (first try, if the URL is Greenhouse-backed):** If the pipeline.md entry carries `| gh={slug}/{id}` OR the URL host matches `*.greenhouse.io` / a known Greenhouse customer front-end (`*.pinterestcareers.com`, `okta.com/company/careers/opportunity/*`, `samsara.com/company/careers/roles/*`, `zoominfo.com/careers?gh_jid=*`, `collibra.com/.../?gh_jid=*`, `careers.toasttab.com/jobs?gh_jid=*`, `careers.airbnb.com/positions/*?gh_jid=*`, `coinbase.com/careers/positions/*?gh_jid=*`, `instacart.careers/job/?gh_jid=*`), extract `slug` and `id` and WebFetch `https://boards-api.greenhouse.io/v1/boards/{slug}/jobs/{id}`. 200 + JSON with `content` is the authoritative JD. 404 = genuinely closed (mark CLOSED and stop). **OpenCode WebFetch compatibility:** do not pass `format: "json"`; omit `format` or use `format: "text"` and parse the returned JSON text. **If 200, STOP — do not fall back to Geometra or WebFetch of the front-end.** The API is faster, cheaper (no Geometra session), and never returns a bot-shell.
12
- 2. **Direct Geometra helper:** Most non-Greenhouse job portals (Lever, Ashby, Workday) are SPAs. Use `npx job-forge portal:snapshot --url "{url}" --json` to render and read the page model/snapshot. This helper enforces `headless: true`, `stealth: true`, and `isolated: true` in code, reads `config/profile.yml` proxy config, and closes Chromium before exit. **If this returns non-empty JD text, STOP — do not WebFetch the same URL.**
12
+ 2. **Direct Geometra helper:** Most non-Greenhouse job portals (Lever, Ashby, Workday) are SPAs. Use `npx job-forge portal:snapshot --url "{url}" --json` to render and read the page model/snapshot. This helper enforces `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `isolated: true` in code, reads `config/profile.yml` proxy config, returns `blockedSite` metadata when detected, and closes Chromium before exit. **If this returns non-empty JD text, STOP — do not WebFetch the same URL.**
13
13
  3. **WebFetch (only if Geometra is unavailable OR returned only a shell with no JD text):** For static pages (ZipRecruiter, WeLoveProduct, company career pages).
14
14
  4. **WebSearch (only if methods 1–3 all failed):** Search for the role title + company on secondary portals that index the JD in static HTML.
15
15
 
package/modes/pipeline.md CHANGED
@@ -34,7 +34,7 @@ Processes accumulated job offer URLs from `data/pipeline.md`. The user adds URLs
34
34
  ## Detect JD From URL
35
35
 
36
36
  1. **Greenhouse JSON API (FIRST, when the entry has `| gh={slug}/{id}` OR the host looks Greenhouse-backed):** WebFetch `https://boards-api.greenhouse.io/v1/boards/{slug}/jobs/{id}`. 200 + JSON with `content` = LIVE, use it as the JD; 404 = genuinely CLOSED (mark `- [!]` and continue). **OpenCode WebFetch compatibility:** do not pass `format: "json"`; omit `format` or use `format: "text"` and parse the returned JSON text. Bot-hostile customer fronts (`pinterestcareers.com`, `okta.com`, `samsara.com`, `zoominfo.com`, `collibra.com`, `careers.toasttab.com`, `careers.airbnb.com`, `coinbase.com`, `instacart.careers`, `careers.toasttab.com`) MUST be verified via this API first — WebFetch/Geometra of those domains returns a shell or 403 and causes false CLOSED marks.
37
- 2. **Direct Geometra helper:** `npx job-forge portal:snapshot --url "{url}" --json`. Works with non-Greenhouse SPAs (Lever, Ashby, Workday), enforces `headless: true`, `stealth: true`, and `isolated: true` in code, reads `config/profile.yml` proxy config, and closes Chromium before exit.
37
+ 2. **Direct Geometra helper:** `npx job-forge portal:snapshot --url "{url}" --json`. Works with non-Greenhouse SPAs (Lever, Ashby, Workday), enforces `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `isolated: true` in code, reads `config/profile.yml` proxy config, returns `blockedSite` metadata when detected, and closes Chromium before exit.
38
38
  3. **Geometra MCP (interactive fallback):** Use only when the one-shot helper is not enough and a live multi-step browser session is required.
39
39
  4. **WebFetch (fallback):** For static pages or when Geometra is not available.
40
40
  5. **WebSearch (last resort):** Search on secondary portals that index the JD.
@@ -40,7 +40,7 @@ These blocks come from two distinct root causes and require different responses:
40
40
  | Class | Root cause | Recoverable in-session? | Fix |
41
41
  |---|---|---|---|
42
42
  | **A. React-validation lag** | programmatic text input didn't fire composition events; React marks required fields internally missing even though values look correct | Yes | Refill with `imeFriendly: true` and resubmit once. |
43
- | **B. Environment fingerprint** | datacenter IP / VPN / headless Chromium signatures / browser-extension tells detected server-side | No (in headless) | Mark `Failed` with note "Ashby env-fingerprint"; recommend manual submit from user's own browser. |
43
+ | **B. Server-side block** | portal rejects the session after inspecting network/browser/session signals | No (in headless) | Mark `Failed` with note "Ashby blocked session"; preserve `blockedSite` details when present and recommend manual submit from the user's own browser. |
44
44
 
45
45
  **How to tell them apart:** if you saw `invalidCount > 0` and the "required field" error BEFORE submit, class A is likely — retry with `imeFriendly: true`. If the form filled perfectly clean (`invalidCount: 0` on every step) and the spam flag fires only on submit, class B is likely — Ashby's "Learn more" dialog cites VPN/proxy, ad blockers, shared/public network, which `imeFriendly` cannot influence.
46
46
 
@@ -50,7 +50,7 @@ These blocks come from two distinct root causes and require different responses:
50
50
 
51
51
  **Rule — do NOT loop retrying a class B block.** One retry with `imeFriendly: true` is the correct test for class A. If the same spam message fires after a clean `imeFriendly` refill, stop, mark Failed, move on. Repeated retries waste subagent time and do not change the outcome.
52
52
 
53
- **Class B fixBYO residential proxy + headless stealth Chromium.** When the candidate has configured `proxy:` in `config/profile.yml`, every `geometra_connect` call threads that proxy through to Chromium, which flips the outbound IP from datacenter to residential/mobile. JobForge also passes `headless: true` and `stealth: true` so Geometra MCP runs without opening a visible browser and Geometra MCP >=1.61.3 launches CloakBrowser's patched Chromium instead of stock Playwright Chromium. See the "BYO Residential Proxy" reference section below. Without a configured proxy, stealth still helps browser fingerprinting, but the outbound IP remains datacenter.
53
+ **Class B responsestructured block detection + manual handoff.** JobForge passes `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `blockedSitePolicy: "manual-handoff"` so Geometra MCP >=1.62.3 keeps browser windows hidden and returns structured `blockedSite` metadata when the portal serves a challenge, CAPTCHA, access-denied page, unsupported-browser screen, or similar block. If the same spam/block message fires after a clean `imeFriendly` retry, stop, record the failed outcome, and surface the `blockedSite` / `manualHandoff` detail to the orchestrator.
54
54
 
55
55
  **Known-block Ashby tenants (2026-04-19 empirical observations).** These tenants fired class B on every attempted submit from a headless datacenter-IP proxy. Orchestrators planning apply dispatches should assume these tenants will Fail in headless — prioritize other portals, or skip same-tenant siblings after a confirmed class B to avoid burning subagent slots:
56
56
 
@@ -60,7 +60,7 @@ These blocks come from two distinct root causes and require different responses:
60
60
 
61
61
  - Supabase, LangChain, Poolside, Runway Financial, Sentry, Cognition
62
62
 
63
- **Base rate for untested Ashby tenants (5/5 tested 2026-04-19 cycle 4 = class B).** The prior today is ~80-90% of untested Ashby tenants fingerprint-block headless submits. Orchestrators should treat any tenant not on the class-A-compatible list as likely class B — still dispatch to collect the data point, but don't burn multiple sibling-role slots on the same Ashby tenant.
63
+ **Base rate for untested Ashby tenants (5/5 tested 2026-04-19 cycle 4 = class B).** Treat any tenant not on the class-A-compatible list as higher-risk for server-side submit blocks — still dispatch to collect the data point, but don't burn multiple sibling-role slots on the same Ashby tenant after one confirmed block.
64
64
 
65
65
  The pattern is tenant configuration, not role or company size. Lists drift as tenants tune their anti-bot — treat as probabilistic priors, not hard rules.
66
66
 
@@ -72,7 +72,7 @@ The pattern is tenant configuration, not role or company size. Lists drift as te
72
72
 
73
73
  **Avature multi-step wizards have a native-`<select>` validation lag (Bloomberg pattern).** Bloomberg's careers site redirects to `bloomberg.avature.net` with a 4-step wizard. On Step 2, native `<select>` elements ("Is Current Position? / No") accept the value but keep `invalid: true` persistently — neither Tab, re-submit, nor re-pick clears it. `imeFriendly` has no effect because the field is a native `<select>`, not React-controlled text. There is no documented recovery. Mark `Failed` with reason "Avature native-select validation lag"; account creation up to that point is preserved for any future manual path. Confirmed on Bloomberg Sr SWE Auth #828, 2026-04-19.
74
74
 
75
- **Cloudflare / ATS-vendor blocks on Dropbox-class portals.** Dropbox's real apply flow lives behind `happydance.website` (ATS vendor), which Cloudflare-fingerprints headless Chromium + datacenter IPs and returns "Sorry, you have been blocked". `job-boards.greenhouse.io/dropbox` does not mirror — there is no public Greenhouse fallback. Symptom-wise indistinguishable from Ashby class B but at a different layer. Mark `Failed` with reason "ATS vendor Cloudflare block (happydance.website or equivalent)". Confirmed on Dropbox Sr FS Product #831, 2026-04-19.
75
+ **Cloudflare / ATS-vendor blocks on Dropbox-class portals.** Dropbox's real apply flow lives behind `happydance.website` (ATS vendor), which can return "Sorry, you have been blocked" before the form renders. `job-boards.greenhouse.io/dropbox` does not mirror — there is no public Greenhouse fallback. Symptom-wise indistinguishable from Ashby class B but at a different layer. Mark `Failed` with reason "ATS vendor Cloudflare block (happydance.website or equivalent)" and preserve `blockedSite` details when present. Confirmed on Dropbox Sr FS Product #831, 2026-04-19.
76
76
 
77
77
  **Greenhouse OTP-on-fill variant (Instacart pattern).** Most Greenhouse OTP flows fire on Submit. A minority (Instacart Staff FoodStorm #827, 2026-04-19) fire the 8-cell security-code gate mid-fill, BEFORE the user clicks Submit. Detection: watch for an 8-cell OTP input surfacing after resume upload or the first listbox commit. Fetch from Gmail (`from:greenhouse newer_than:10m`) immediately when it appears — do not wait for Submit.
78
78
 
@@ -80,7 +80,7 @@ The pattern is tenant configuration, not role or company size. Lists drift as te
80
80
 
81
81
  **Breezy portal — tenant-dependent, native `<select>`, resume-auto-parse is primary.** A subset of companies (Avantos AI, Courted, Instinct Science confirmed 2026-04-19) host applications on `*.breezy.hr` or `applytojob.com`. Empirical rules:
82
82
 
83
- - **Class is per-tenant, not uniform.** Avantos (Failed 2026-04-19 #854) returned Breezy's own "It looks like maybe you've already applied to this job?" banner from IP fingerprinting, even on a first submit — distinct failure mode from Ashby's "flagged as possible spam". Courted (Applied 2026-04-19 #855) went through cleanly on the same session. Don't pre-skip Breezy; the outcome is tenant-specific.
83
+ - **Class is per-tenant, not uniform.** Avantos (Failed 2026-04-19 #854) returned Breezy's own "It looks like maybe you've already applied to this job?" banner on a first submit — distinct failure mode from Ashby's "flagged as possible spam". Courted (Applied 2026-04-19 #855) went through cleanly on the same session. Don't pre-skip Breezy; the outcome is tenant-specific.
84
84
  - **Native `<select>` elements, not React comboboxes.** `geometra_pick_listbox_option` sets the visible display but NOT the underlying form state — submit will fail with "A response is required" on every combobox. Use `geometra_select_option` with x,y + label value for every choice field on Breezy.
85
85
  - **Resume-auto-parse carries the signal.** After resume upload, Breezy auto-parses work history and education into structured rows. Do NOT Add/Delete position rows via Geometra — row mutations reshuffle fieldIds mid-flow, sequential `fill_fields` calls land in wrong rows, and upstream pollution corrupts earlier positions. Trust the parsed resume and fill only Personal Details + salary.
86
86
 
@@ -138,12 +138,20 @@ When running multiple application forms in parallel, each `geometra_connect` MUS
138
138
 
139
139
  **Correct parallel pattern:**
140
140
  ```javascript
141
- geometra_connect({ pageUrl: "https://...", isolated: true, headless: true, slowMo: 350, stealth: true })
141
+ geometra_connect({
142
+ pageUrl: "https://...",
143
+ isolated: true,
144
+ headless: true,
145
+ slowMo: 350,
146
+ browserMode: "stock",
147
+ blockDetection: true,
148
+ blockedSitePolicy: "manual-handoff"
149
+ })
142
150
  ```
143
151
 
144
152
  **Wrong:** running `geometra_connect` without `isolated: true` when submitting multiple forms concurrently. The forms may share state and produce incorrect submissions.
145
153
 
146
- **With a configured proxy,** add `proxy: { server, username?, password?, bypass? }` to the same call — see "BYO Residential Proxy" below. The reusable-proxy pool is partitioned by proxy identity, so mixing direct and proxied sessions across parallel rounds is safe. Keep `headless: true` and `stealth: true` either way so JobForge uses Geometra's CloakBrowser Chromium path for portal sessions without opening visible windows.
154
+ **With a configured proxy,** add `proxy: { server, username?, password?, bypass? }` to the same call — see "BYO Proxy + Block Detection" below. The reusable-proxy pool is partitioned by proxy identity, so mixing direct and proxied sessions across parallel rounds is safe. Keep `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `blockedSitePolicy: "manual-handoff"` either way so JobForge keeps browser windows hidden and surfaces structured blocked-site states.
147
155
 
148
156
  ### Session Reuse — When Subagents Cannot Reach Existing Sessions
149
157
 
@@ -187,7 +195,7 @@ Every subagent that uses Geometra must run these THREE tool calls as its FIRST t
187
195
  ```
188
196
  Step 1: geometra_list_sessions()
189
197
  Step 2: geometra_disconnect({ closeBrowser: true })
190
- Step 3: geometra_connect({ pageUrl: "<the URL the orchestrator gave you>", isolated: true, headless: true, slowMo: 350, stealth: true })
198
+ Step 3: geometra_connect({ pageUrl: "<the URL the orchestrator gave you>", isolated: true, headless: true, slowMo: 350, browserMode: "stock", blockDetection: true, blockedSitePolicy: "manual-handoff" })
191
199
  ```
192
200
 
193
201
  **If the orchestrator says proxy is configured,** read the top-level
@@ -195,12 +203,13 @@ Step 3: geometra_connect({ pageUrl: "<the URL the orchestrator gave you>", isol
195
203
 
196
204
  ```
197
205
  Step 3: geometra_connect({
198
- pageUrl: "<URL>", isolated: true, headless: true, slowMo: 350, stealth: true,
206
+ pageUrl: "<URL>", isolated: true, headless: true, slowMo: 350,
207
+ browserMode: "stock", blockDetection: true, blockedSitePolicy: "manual-handoff",
199
208
  proxy: { server: "...", username: "...", password: "...", bypass: "..." }
200
209
  })
201
210
  ```
202
211
 
203
- Pass the proxy object through unchanged. Do NOT paraphrase or drop fields — `username`/`password`/`bypass` are optional, so only include what exists in `config/profile.yml`. Do not echo proxy credentials in status text. See the "BYO Residential Proxy" reference section for the why.
212
+ Pass the proxy object through unchanged. Do NOT paraphrase or drop fields — `username`/`password`/`bypass` are optional, so only include what exists in `config/profile.yml`. Do not echo proxy credentials in status text. See the "BYO Proxy + Block Detection" reference section for the why.
204
213
 
205
214
  **DO NOT** skip Step 1 or Step 2. **DO NOT** think about whether it's needed. **DO NOT** look at `geometra_list_sessions` output and reason about it — just always call `geometra_disconnect({ closeBrowser: true })` next. The disconnect is a no-op if the pool is empty, and a poison-cure if it isn't.
206
215
 
@@ -13,6 +13,7 @@ Prefer a local helper when the workflow needs:
13
13
  - One-shot rendered browser snapshots or form schemas.
14
14
  - Scoring, timing, priority, or lineage decisions.
15
15
  - Safe export checks.
16
+ - Evidence bundles at side-effect, release, handoff, blocked-site, or repro boundaries.
16
17
 
17
18
  Do not paste whole helper outputs into prompts unless the downstream agent needs that exact file-backed result. Prefer passing paths, ids, keys, and short summaries.
18
19
 
@@ -40,6 +41,7 @@ Do not paste whole helper outputs into prompts unless the downstream agent needs
40
41
  | Follow-up timing | `templates/timeline.json` | `npx job-forge timeline:*` |
41
42
  | Next-action ranking | `templates/prioritize.json` | `npx job-forge prioritize:*` |
42
43
  | Artifact lineage | `.jobforge-lineage.json` | `npx job-forge lineage:*` |
44
+ | Evidence receipts | `.jobforge-receipts/` | `npx job-forge receipts:*` |
43
45
 
44
46
  ## Mandatory Uses
45
47
 
@@ -50,6 +52,7 @@ Do not paste whole helper outputs into prompts unless the downstream agent needs
50
52
  - For next-action or replacement-candidate selection, run `prioritize:build` or `prioritize:select --limit N`.
51
53
  - For generated reports or PDFs reused after input changes, run `lineage:check --artifact <file>` if lineage exists; after creating derived artifacts, record them with `lineage:record --artifact <file> --input <source>...`.
52
54
  - Before exporting traces, prompts, reports, or fixtures outside the project, run `redact:scan`, `redact:apply`, or `redact:verify`.
55
+ - After irreversible or trust-sensitive actions, create a receipt with `receipts:create` from the relevant tracker TSV, report, portal snapshot/form schema, and filtered ledger events. Use `receipts:verify` before treating a receipt as a workflow gate, and `receipts:redact` before sharing it outside the project.
53
56
  - When diagnosing consumer harness drift, run `migrate:plan` or `migrate:check`; `job-forge sync` applies safe migrations automatically unless `JOB_FORGE_SKIP_MIGRATIONS=1` is set.
54
57
  - When you only need a rendered page model, compact snapshot, or form schema from one URL, prefer `portal:snapshot` / `portal:form-schema` over Geometra MCP tool calls. Use MCP for interactive multi-step browser sessions.
55
58
 
@@ -49,13 +49,13 @@ When a form says "enter the code we sent to your email", you MUST retrieve the c
49
49
 
50
50
  ---
51
51
 
52
- ## BYO Residential Proxy + Stealth Chromium
52
+ ## BYO Proxy + Block Detection
53
53
 
54
- **Problem:** on 2026-04-19 cycle 4, 5/5 untested Ashby tenants and 100% of Dropbox-class Cloudflare-fronted portals fingerprint-blocked headless Chromium from datacenter IPs. `imeFriendly: true` fixes class A (React validation lag) but has zero effect on class B (environment fingerprint). There is no in-session software-only fix for class B: the server decided the session is a bot before the form response was rendered.
54
+ **Problem:** Some portals return CAPTCHA, challenge, access-denied, unsupported-browser, rate-limit, or similar blocked states before a form can be read or submitted. `imeFriendly: true` fixes React validation lag, but it cannot change a server-side portal decision.
55
55
 
56
- **Fix:** route the spawned Chromium through a residential or mobile proxy the candidate already pays for, and launch Geometra's headless CloakBrowser stealth Chromium with `headless: true` and `stealth: true`. Geometra MCP v1.59.0 added a `proxy: { server, username?, password?, bypass? }` parameter on `geometra_connect` and `geometra_prepare_browser`; v1.61.3 added `stealth: true` for CloakBrowser. The outbound IP becomes residential/mobile, the browser fingerprint moves off stock Playwright Chromium, and the class-B checks have fewer signals to trip.
56
+ **Default response:** JobForge keeps the browser hidden and predictable: pass `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `blockedSitePolicy: "manual-handoff"` on Geometra connects. Geometra MCP >=1.62.3 returns structured `blockedSite` and `manualHandoff` metadata so the orchestrator can record the block, stop retries, and ask for a manual path when needed.
57
57
 
58
- **Proxy is opt-in; headless and stealth are default.** JobForge does NOT bundle or resell proxy bandwidth the candidate brings their own provider (Bright Data, Oxylabs, SOAX, Smartproxy, mobile hotspot, self-hosted SOCKS). Without a configured proxy, JobForge still passes `headless: true` and `stealth: true`, but the outbound IP remains the machine or hosting environment running Chromium.
58
+ **Proxy is opt-in.** JobForge does NOT bundle or resell proxy bandwidth. If the candidate has their own proxy for legitimate network routing, JobForge can pass the top-level `proxy:` object through to Geometra without printing credentials. Without a configured proxy, JobForge omits the proxy parameter.
59
59
 
60
60
  ### Where the proxy config lives
61
61
 
@@ -76,33 +76,33 @@ See `config/profile.example.yml` for the commented-out template.
76
76
  **Orchestrator responsibilities:**
77
77
 
78
78
  1. On session start, read `config/profile.yml` once. If a `proxy:` block is present, remember that a proxy is configured, but do not paste username/password values into task prompts or user-visible status.
79
- 2. When dispatching any subagent whose work involves a `geometra_connect` call or a Geometra auto-connect call with `pageUrl` / `url`, tell it to read `config/profile.yml` and pass the top-level `proxy:` block plus `headless: true` and `stealth: true` to every connect. Example dispatch prompt line: "Proxy is configured; read `config/profile.yml` and pass its top-level `proxy:` object plus `headless: true` and `stealth: true` to every Geometra connect or auto-connect call."
80
- 3. When the orchestrator itself opens a Chromium session (single-application interactive flow), include the same `proxy` object from `config/profile.yml`, `headless: true`, and `stealth: true` in its own `geometra_connect` call.
79
+ 2. When dispatching any subagent whose work involves a `geometra_connect` call or a Geometra auto-connect call with `pageUrl` / `url`, tell it to read `config/profile.yml` and pass the top-level `proxy:` block plus `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `blockedSitePolicy: "manual-handoff"` to every connect. Example dispatch prompt line: "Proxy is configured; read `config/profile.yml` and pass its top-level `proxy:` object plus `headless: true`, `browserMode: \"stock\"`, `blockDetection: true`, and `blockedSitePolicy: \"manual-handoff\"` to every Geometra connect or auto-connect call."
80
+ 3. When the orchestrator itself opens a Chromium session (single-application interactive flow), include the same `proxy` object from `config/profile.yml`, `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `blockedSitePolicy: "manual-handoff"` in its own `geometra_connect` call.
81
81
  4. If `proxy:` is absent from `profile.yml`, skip the param entirely. Do NOT invent a proxy URL or leave a stale placeholder.
82
82
 
83
83
  **Subagent responsibilities:**
84
84
 
85
- 1. If the task prompt says proxy is configured, read `config/profile.yml` and pass the top-level `proxy:` object plus `headless: true` and `stealth: true` through to `geometra_connect`, any Geometra auto-connect call with `pageUrl` / `url`, and any `geometra_prepare_browser` calls unchanged.
86
- 2. If the task prompt includes a legacy inline `proxy` object, pass it through unchanged and still set `headless: true` and `stealth: true`, but never print the credentials back in status text.
87
- 3. If the task prompt does NOT mention a proxy and `config/profile.yml` has no `proxy:` block, run with `headless: true`, `stealth: true`, and no proxy.
85
+ 1. If the task prompt says proxy is configured, read `config/profile.yml` and pass the top-level `proxy:` object plus `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `blockedSitePolicy: "manual-handoff"` through to `geometra_connect` and any Geometra auto-connect call with `pageUrl` / `url`. For `geometra_prepare_browser`, pass only the supported launch fields: `proxy`, `headless: true`, and `browserMode: "stock"`.
86
+ 2. If the task prompt includes a legacy inline `proxy` object, pass it through unchanged and still set the same headless/browser/block-detection options, but never print the credentials back in status text.
87
+ 3. If the task prompt does NOT mention a proxy and `config/profile.yml` has no `proxy:` block, run with `headless: true`, `browserMode: "stock"`, `blockDetection: true`, `blockedSitePolicy: "manual-handoff"`, and no proxy.
88
88
  4. Never second-guess the proxy field — if it comes from `profile.yml`, it's authoritative.
89
89
 
90
- ### When proxy use is load-bearing
90
+ ### When blocked-site metadata is load-bearing
91
91
 
92
- Apply these rules when deciding whether the proxy is worth waiting for:
92
+ Apply these rules when deciding whether to stop automation and hand off:
93
93
 
94
- - **Required** for known-block Ashby tenants (see the class-B list in the Ashby section above), for `happydance.website` / Cloudflare-fronted ATSes, and for any Lever tenant that previously failed in the class-B pattern.
95
- - **Recommended** for any Ashby tenant NOT on the class-A-compatible list (base rate prior: ~80-90% block headless).
96
- - **Optional** for Greenhouse, Workday, Lever-clean tenants these accept datacenter IPs today; using the proxy adds ~100ms per frame but no material downside.
97
- - **Not useful** for Typeform (Geometra-unsupported), Avature native-select lag (not a fingerprint issue), JazzHR+reCAPTCHA (reCAPTCHA scores unrelated to IP), Breezy (tenant-configured per-IP throttle proxy may help or may hit a fresh throttle).
94
+ - **Stop immediately** when Geometra returns `blockedSite.detected: true` with `blockedSitePolicy: "manual-handoff"` and the page is a CAPTCHA, Cloudflare challenge, access-denied page, unsupported-browser page, or rate-limit notice.
95
+ - **Retry once only** for Ashby text-field rejection when `invalidCount` suggested React validation lag; the retry must use `imeFriendly: true`. If the same spam/block message repeats after clean fills, stop.
96
+ - **Do not spend time on Geometra-unsupported portals** such as Typeform or known native-select validation dead ends such as Avature. Mark Failed with the specific reason.
97
+ - **Use a configured proxy only when it is already present in `profile.yml`.** Never invent a proxy, ask subagents to paste credentials, or print the configured values.
98
98
 
99
99
  ### Pool partitioning — why mixed runs are safe
100
100
 
101
- The Geometra MCP partitions its reusable-proxy pool by proxy identity and browser flavor — proxy partitioning landed in `@geometra/mcp@1.59.0`, and stealth partitioning is available in `@geometra/mcp@1.61.3`. A direct session and a proxied session NEVER share a Chromium instance, and stock and stealth sessions do not pool together. Practical consequence: flipping `proxy:` on or off in `profile.yml` mid-session is safe — the next `geometra_connect` just opens a fresh Chromium in its own pool partition.
101
+ The Geometra MCP partitions its reusable-proxy pool by proxy identity and browser mode. A direct session and a proxied session NEVER share a Chromium instance, and stock and explicitly requested alternate browser modes do not pool together. Practical consequence: flipping `proxy:` on or off in `profile.yml` mid-session is safe — the next `geometra_connect` just opens a fresh Chromium in its own pool partition.
102
102
 
103
103
  ### Direct helper for one-shot reads
104
104
 
105
- Use `npx job-forge portal:snapshot --url "{url}" --json` or `npx job-forge portal:form-schema --url "{url}" --json` when you only need a rendered page model, compact snapshot, or form schema. These commands import Geometra's session module directly instead of going through MCP, enforce `headless: true`, `stealth: true`, and `isolated: true`, pass the `config/profile.yml` proxy block if configured, and close Chromium before exit. Keep MCP for interactive multi-step browser automation where a live `sessionId` must be driven across actions.
105
+ Use `npx job-forge portal:snapshot --url "{url}" --json` or `npx job-forge portal:form-schema --url "{url}" --json` when you only need a rendered page model, compact snapshot, form schema, or `blockedSite` metadata from one URL. These commands import Geometra's session module directly instead of going through MCP, enforce `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `isolated: true`, pass the `config/profile.yml` proxy block if configured, and close Chromium before exit. Keep MCP for interactive multi-step browser automation where a live `sessionId` must be driven across actions.
106
106
 
107
107
  ### Troubleshooting
108
108
 
@@ -110,8 +110,9 @@ Use `npx job-forge portal:snapshot --url "{url}" --json` or `npx job-forge porta
110
110
  |---|---|
111
111
  | `Error: Failed to connect to proxy` immediately after `geometra_connect` | Proxy URL is wrong / unreachable. Verify the `server:` field hits the right host:port. |
112
112
  | `407 Proxy Authentication Required` | `username` or `password` is wrong or missing. Many residential providers require both. |
113
- | Class-B submit failure persists even with proxy set | (a) proxy is a datacenter proxy, not residential; (b) same tenant IP-banned your specific proxy's IP pool; (c) tenant uses TLS fingerprint / canvas fingerprint, not IP — switch to a fresh Chromium (isolated: true) and retry once, else mark Failed. |
114
- | Every `geometra_connect` is 3-5s slower than before | Expected residential proxies add latency. Trade-off for higher submit-success rate. Do NOT revert unless the acceptance-rate lift is < 5%. |
113
+ | `blockedSite.detected: true` on connect or page model | Stop automation for that URL, preserve the `blockedSite` payload, and route to manual handoff or mark Failed with the specific block type. |
114
+ | Proxy is configured but pages fail immediately | Proxy URL/auth may be wrong, or the target site may reject the route. Verify the `server:` field locally; do not paste credentials into prompts. |
115
+ | Every `geometra_connect` is 3-5s slower than before | Expected when a configured proxy adds network latency. Remove or adjust `proxy:` in `profile.yml` only if the candidate no longer wants that routing. |
115
116
 
116
117
  ---
117
118
 
package/modes/scan.md CHANGED
@@ -25,7 +25,7 @@ Read `portals.yml` which contains:
25
25
 
26
26
  ### Use Level 1 — Direct Geometra (PRIMARY)
27
27
 
28
- **For each company in `tracked_companies`:** Connect to its `careers_url` with Geometra MCP (`geometra_connect({ ..., headless: true, stealth: true })` + `geometra_page_model` / `geometra_list_items`), read ALL visible job listings, and extract the title + URL of each one. Direct Geometra is the most reliable method because:
28
+ **For each company in `tracked_companies`:** Connect to its `careers_url` with Geometra MCP (`geometra_connect({ ..., headless: true, browserMode: "stock", blockDetection: true, blockedSitePolicy: "manual-handoff" })` + `geometra_page_model` / `geometra_list_items`), read ALL visible job listings, and extract the title + URL of each one. Direct Geometra is the most reliable method because:
29
29
 
30
30
  - It sees the page in real time (not cached Google results).
31
31
  - It works with SPAs (Ashby, Lever, Workday).
@@ -138,7 +138,7 @@ The levels are additive — all are executed, results are merged and deduplicate
138
138
 
139
139
  4. **Level 1 — Geometra scan** (sequential, or ≤2 parallel via `task` subagents per Hard Limit #1 in `AGENTS.md`):
140
140
  For each company in `tracked_companies` with `enabled: true` and `careers_url` defined:
141
- a. `geometra_connect` to the `careers_url` with `headless: true` and `stealth: true`
141
+ a. `geometra_connect` to the `careers_url` with `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `blockedSitePolicy: "manual-handoff"`
142
142
  b. `geometra_page_model` or `geometra_list_items` to read all job listings
143
143
  c. If the page has filters/departments, navigate the relevant sections
144
144
  d. For each job listing extract: `{title, url, company}`
@@ -317,7 +317,7 @@ Each company in `tracked_companies` MUST have a `careers_url` — the direct URL
317
317
  **If `careers_url` doesn't exist** for a company:
318
318
  1. Try the pattern for its known platform
319
319
  2. If that fails, do a quick WebSearch: `"{company}" careers jobs`
320
- 3. Navigate with Geometra (`geometra_connect` with `headless: true` and `stealth: true`) to confirm it works
320
+ 3. Navigate with Geometra (`geometra_connect` with `headless: true`, `browserMode: "stock"`, `blockDetection: true`, and `blockedSitePolicy: "manual-handoff"`) to confirm it works
321
321
  4. **Save the found URL in portals.yml** for future scans
322
322
 
323
323
  **If `careers_url` returns 404 or redirect:**
package/opencode.json CHANGED
@@ -22,8 +22,8 @@
22
22
  "mcp:geometra"
23
23
  ],
24
24
  "environment": {
25
- "GEOMETRA_STEALTH": "1",
26
- "GEOMETRA_BROWSER": "stealth"
25
+ "GEOMETRA_STEALTH": "0",
26
+ "GEOMETRA_BROWSER": "stock"
27
27
  }
28
28
  },
29
29
  "gmail": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "job-forge",
3
- "version": "2.14.45",
3
+ "version": "2.14.47",
4
4
  "description": "AI-powered job search pipeline built on opencode",
5
5
  "type": "module",
6
6
  "bin": {
@@ -106,6 +106,12 @@
106
106
  "redact:verify": "node bin/job-forge.mjs redact:verify",
107
107
  "redact:apply": "node bin/job-forge.mjs redact:apply",
108
108
  "redact:explain": "node bin/job-forge.mjs redact:explain",
109
+ "receipts:create": "node bin/job-forge.mjs receipts:create",
110
+ "receipts:capture": "node bin/job-forge.mjs receipts:capture",
111
+ "receipts:verify": "node bin/job-forge.mjs receipts:verify",
112
+ "receipts:inspect": "node bin/job-forge.mjs receipts:inspect",
113
+ "receipts:redact": "node bin/job-forge.mjs receipts:redact",
114
+ "receipts:path": "node bin/job-forge.mjs receipts:path",
109
115
  "migrate:plan": "node bin/job-forge.mjs migrate:plan",
110
116
  "migrate:apply": "node bin/job-forge.mjs migrate:apply",
111
117
  "migrate:check": "node bin/job-forge.mjs migrate:check",
@@ -195,11 +201,12 @@
195
201
  "@agent-pattern-labs/iso-postflight": "^0.1.1",
196
202
  "@agent-pattern-labs/iso-preflight": "^0.1.1",
197
203
  "@agent-pattern-labs/iso-prioritize": "^0.1.1",
204
+ "@agent-pattern-labs/iso-receipts": "^0.1.0",
198
205
  "@agent-pattern-labs/iso-redact": "^0.1.1",
199
206
  "@agent-pattern-labs/iso-score": "^0.1.1",
200
207
  "@agent-pattern-labs/iso-timeline": "^0.1.1",
201
208
  "@agent-pattern-labs/iso-trace": "^0.5.1",
202
- "@geometra/mcp": "1.62.2",
209
+ "@geometra/mcp": "1.62.3",
203
210
  "playwright": "^1.58.1"
204
211
  },
205
212
  "devDependencies": {
@@ -35,6 +35,7 @@ const groups = [
35
35
  helper('prioritize', '@agent-pattern-labs/iso-prioritize', ['status', 'items', 'build', 'rank', 'select', 'check', 'verify', 'explain'], { template: 'templates/prioritize.json', artifacts: ['.jobforge-prioritize.json', '.jobforge-prioritize-items.json'], migrated: true }),
36
36
  helper('lineage', '@agent-pattern-labs/iso-lineage', ['status', 'record', 'check', 'stale', 'verify', 'explain'], { artifacts: ['.jobforge-lineage.json'], migrated: true }),
37
37
  helper('redact', '@agent-pattern-labs/iso-redact', ['scan', 'verify', 'apply', 'explain'], { template: 'templates/redact.json', artifacts: ['.jobforge-redacted/'], migrated: true }),
38
+ helper('receipts', '', ['create', 'capture', 'verify', 'inspect', 'redact', 'path'], { artifacts: ['.jobforge-receipts/'], migrated: true }),
38
39
  helper('migrate', '@agent-pattern-labs/iso-migrate', ['plan', 'apply', 'check', 'explain'], { template: 'templates/migrations.json', migrated: true }),
39
40
  ];
40
41
 
@@ -21,14 +21,14 @@ const checks = [
21
21
  ["H5 blocks same-company concurrent retry", () => every(files.instructions, ["Re-dispatch the same company only AFTER", "previous subagent returns"])],
22
22
  ["H6 requires merge and verify", () => every(files.instructions, ["batch/tracker-additions/*.tsv", "npx job-forge merge", "npx job-forge verify"])],
23
23
  ["H7 distrusts subagent prose", () => every(files.instructions, ["must originate from a file", "not from prior subagent prose"])],
24
- ["H8 keeps proxy secret and requires headless stealth", () => every(files.instructions, ["[H8]", "Do not transcribe `server`, `username`, `password`, or `bypass`", "`headless: true`", "`stealth: true`"])],
24
+ ["H8 keeps proxy secret and requires stock headless block detection", () => every(files.instructions, ["[H8]", "Do not transcribe `server`, `username`, `password`, or `bypass`", "`headless: true`", "`browserMode: \\\"stock\\\"`", "`blockDetection: true`", "`blockedSitePolicy: \\\"manual-handoff\\\"`"])],
25
25
  ["H9 points to Geometra MCP lifecycle logs", () => every(files.instructions, ["[H9]", ".jobforge-mcp/geometra-mcp.jsonl", "launcher_start", "heartbeat", "child_exit"])],
26
26
  ["OpenCode addendum exists for task semantics", () => every(files.instructionsOpencode, ["OpenCode", "`task`", "launch acknowledgement", "Do not use `task` to poll status"])],
27
27
  ["root points to consolidated helper reference", () => every(files.instructions, ["[D8]", "modes/reference-local-helpers.md", "deterministic local helpers"])],
28
28
  ["helper reference covers score/timeline/prioritize/lineage", () => every(files.helpers, ["templates/score.json", "npx job-forge score:*", "templates/timeline.json", "npx job-forge timeline:*", "templates/prioritize.json", "npx job-forge prioritize:*", ".jobforge-lineage.json", "npx job-forge lineage:*"])],
29
29
  ["root helper defaults are consolidated", () => !/\[D(?:9|1\d|2[0-9])\]/.test(files.instructions)],
30
30
  ["shared prompt points to on-demand references", () => every(files.instructions, ["modes/{mode}.md", "modes/reference-setup.md", "modes/reference-portals.md", "modes/reference-geometra.md"])],
31
- ["apply mode requires headless stealth Geometra", () => every(files.apply, ["`headless: true`", "`stealth: true`", "`isolated: true`", "every Geometra auto-connect call"])],
31
+ ["apply mode requires stock headless Geometra with block detection", () => every(files.apply, ["`headless: true`", "`browserMode: \"stock\"`", "`isolated: true`", "`blockDetection: true`", "`blockedSitePolicy: \"manual-handoff\"`", "every Geometra auto-connect call"])],
32
32
  ["apply mode uses host-safe run_actions continuations", () => every(files.apply, ["softTimeoutMs: 45000", "resumeFromIndex", "pauseReason: \"soft-timeout\"", "This is a continuation, not a retry"])],
33
33
  ["apply mode owns high-stakes upgrade", () => every(files.apply, ["[D8]", "@general-paid", "4.0/5", "high-stakes"])],
34
34
  ["apply mode blocks provider auto-downgrade", () => every(files.apply, ["[D9]", "do not auto-downgrade", "inspect telemetry before retrying"])],
@@ -21,7 +21,8 @@ Usage:
21
21
  Defaults are enforced in code for every browser launch:
22
22
  isolated: true
23
23
  headless: true
24
- stealth: true
24
+ browserMode: stock
25
+ blockDetection: true
25
26
  slowMo: 350
26
27
 
27
28
  The helper imports Geometra's session module directly. It does not call the
@@ -66,6 +67,7 @@ async function snapshot(opts) {
66
67
  const pageModel = geometra.buildPageModel(root, {
67
68
  maxPrimaryActions: opts.maxPrimaryActions,
68
69
  maxSectionsPerKind: opts.maxSectionsPerKind,
70
+ blockDetection: true,
69
71
  });
70
72
  const compact = geometra.buildCompactUiIndex(root, {
71
73
  maxNodes: opts.maxNodes,
@@ -76,6 +78,7 @@ async function snapshot(opts) {
76
78
  url: opts.url,
77
79
  session: connectionSummary(session, proxy),
78
80
  defaults: launchDefaults(opts, proxy),
81
+ blockedSite: pageModel.blockedSite ?? { detected: false },
79
82
  pageModel,
80
83
  compact,
81
84
  ...(opts.forms ? { forms: geometra.buildFormSchemas(root, formOptions(opts)) } : {}),
@@ -83,8 +86,9 @@ async function snapshot(opts) {
83
86
  output(result, opts, () => {
84
87
  console.log(`url: ${opts.url}`);
85
88
  console.log(`session: ${session.id}`);
86
- console.log(`defaults: isolated=true headless=true stealth=true slowMo=${opts.slowMo}`);
89
+ console.log(`defaults: ${formatDefaults(opts, proxy)}`);
87
90
  if (proxy) console.log(`proxy: ${redactProxy(proxy)}`);
91
+ printBlockedSite(pageModel);
88
92
  console.log(geometra.summarizePageModel(pageModel, 12));
89
93
  console.log(geometra.summarizeCompactIndex(compact.nodes, 24));
90
94
  if (opts.forms) {
@@ -104,18 +108,25 @@ async function formSchema(opts) {
104
108
 
105
109
  try {
106
110
  const root = buildRoot(geometra, session);
111
+ const pageModel = geometra.buildPageModel(root, {
112
+ maxPrimaryActions: opts.maxPrimaryActions,
113
+ maxSectionsPerKind: opts.maxSectionsPerKind,
114
+ blockDetection: true,
115
+ });
107
116
  const forms = geometra.buildFormSchemas(root, formOptions(opts));
108
117
  const result = {
109
118
  url: opts.url,
110
119
  session: connectionSummary(session, proxy),
111
120
  defaults: launchDefaults(opts, proxy),
121
+ blockedSite: pageModel.blockedSite ?? { detected: false },
112
122
  forms,
113
123
  };
114
124
  output(result, opts, () => {
115
125
  console.log(`url: ${opts.url}`);
116
126
  console.log(`session: ${session.id}`);
117
- console.log(`defaults: isolated=true headless=true stealth=true slowMo=${opts.slowMo}`);
127
+ console.log(`defaults: ${formatDefaults(opts, proxy)}`);
118
128
  if (proxy) console.log(`proxy: ${redactProxy(proxy)}`);
129
+ printBlockedSite(pageModel);
119
130
  for (const form of forms) {
120
131
  const name = form.name ? ` "${form.name}"` : '';
121
132
  console.log(`${form.formId}${name}: ${form.fieldCount} fields, ${form.requiredCount} required, ${form.invalidCount} invalid`);
@@ -144,7 +155,7 @@ async function explain(opts) {
144
155
  output(result, opts, () => {
145
156
  console.log(`project: ${PROJECT_DIR}`);
146
157
  console.log(`module: ${moduleTarget.source} ${moduleTarget.path}`);
147
- console.log(`defaults: isolated=true headless=true stealth=true slowMo=${opts.slowMo}`);
158
+ console.log(`defaults: ${formatDefaults(opts, proxy)}`);
148
159
  console.log(`profile proxy: ${proxy ? redactProxy(proxy) : 'none'}`);
149
160
  });
150
161
  }
@@ -154,7 +165,7 @@ async function connect(geometra, opts, proxy) {
154
165
  pageUrl: opts.url,
155
166
  isolated: true,
156
167
  headless: true,
157
- stealth: true,
168
+ stealth: false,
158
169
  slowMo: opts.slowMo,
159
170
  width: opts.width,
160
171
  height: opts.height,
@@ -318,7 +329,8 @@ function launchDefaults(opts, proxy) {
318
329
  return {
319
330
  isolated: true,
320
331
  headless: true,
321
- stealth: true,
332
+ browserMode: 'stock',
333
+ blockDetection: true,
322
334
  slowMo: opts.slowMo,
323
335
  width: opts.width,
324
336
  height: opts.height,
@@ -326,6 +338,24 @@ function launchDefaults(opts, proxy) {
326
338
  };
327
339
  }
328
340
 
341
+ function formatDefaults(opts, proxy) {
342
+ const defaults = launchDefaults(opts, proxy);
343
+ return [
344
+ `isolated=${defaults.isolated}`,
345
+ `headless=${defaults.headless}`,
346
+ `browserMode=${defaults.browserMode}`,
347
+ `blockDetection=${defaults.blockDetection}`,
348
+ `slowMo=${defaults.slowMo}`,
349
+ ].join(' ');
350
+ }
351
+
352
+ function printBlockedSite(pageModel) {
353
+ if (!pageModel.blockedSite?.detected) return;
354
+ const type = pageModel.blockedSite.type ?? 'unknown';
355
+ const hint = pageModel.blockedSite.hint ? ` - ${pageModel.blockedSite.hint}` : '';
356
+ console.log(`blocked: ${type}${hint}`);
357
+ }
358
+
329
359
  function connectionSummary(session, proxy) {
330
360
  return {
331
361
  id: session.id,