[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-vercel-vercel-sandbox":3,"mdc-ipnlh8-key":34,"related-org-vercel-vercel-sandbox":6936,"related-repo-vercel-vercel-sandbox":7113},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"vercel-sandbox","run untrusted code with Vercel Sandbox","Vercel Sandbox guidance — ephemeral Firecracker microVMs for running untrusted code safely. Supports AI agents, code generation, and experimentation. Use when executing user-generated or AI-generated code in isolation.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"vercel","Vercel","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvercel.png",[12,16,17,20],{"name":13,"slug":14,"type":15},"Security","security","tag",{"name":9,"slug":8,"type":15},{"name":18,"slug":19,"type":15},"Sandboxing","sandboxing",{"name":21,"slug":22,"type":15},"Agents","agents",226,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fvercel-plugin","2026-04-06T18:56:20.803657",null,36,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Fvercel-plugin\u002Ftree\u002FHEAD\u002Fskills\u002Fvercel-sandbox","---\nname: vercel-sandbox\ndescription: Vercel Sandbox guidance — ephemeral Firecracker microVMs for running untrusted code safely. Supports AI agents, code generation, and experimentation. Use when executing user-generated or AI-generated code in isolation.\nmetadata:\n  priority: 4\n  docs:\n    - \"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fsandbox\"\n  sitemap: \"https:\u002F\u002Fvercel.com\u002Fsitemap\u002Fdocs.xml\"\n  pathPatterns: []\n  importPatterns:\n    - '@vercel\u002Fsandbox'\n  bashPatterns:\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fsandbox\\b'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fsandbox\\b'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fsandbox\\b'\n    - '\\byarn\\s+add\\s+[^\\n]*@vercel\u002Fsandbox\\b'\n  promptSignals:\n    phrases:\n      - \"@vercel\u002Fsandbox\"\n      - \"sandbox\"\n      - \"code sandbox\"\n      - \"vercel sandbox\"\n      - \"isolated environment\"\n      - \"sandboxed execution\"\n    allOf:\n      - [sandbox, code]\n      - [sandbox, execute]\n      - [sandbox, run]\n      - [sandbox, isolated]\n      - [sandbox, safe]\n      - [sandbox, environment]\n      - [isolated, execute]\n      - [isolated, code]\n      - [isolated, environment]\n      - [isolated, run]\n      - [safe, execute]\n      - [safe, code]\n      - [untrusted, code]\n      - [untrusted, execute]\n      - [code, runner]\n      - [code, playground]\n      - [execute, safely]\n      - [run, safely]\n      - [run, isolation]\n      - [execute, isolation]\n      - [ffmpeg, process]\n      - [ffmpeg, convert]\n      - [ffmpeg, compress]\n      - [student, code]\n      - [student, execute]\n      - [student, run]\n    anyOf:\n      - \"sandbox\"\n      - \"isolated\"\n      - \"isolation\"\n      - \"untrusted\"\n      - \"safely\"\n      - \"microvm\"\n      - \"ffmpeg\"\n      - \"playground\"\n    noneOf:\n      - \"iframe sandbox\"\n      - \"sandbox attribute\"\n      - \"codesandbox.io\"\n      - \"stackblitz\"\n    minScore: 4\nretrieval:\n  aliases:\n    - code sandbox\n    - microvm\n    - isolated execution\n    - safe code runner\n  intents:\n    - run untrusted code\n    - execute code safely\n    - create sandbox\n    - isolate code execution\n  entities:\n    - Vercel Sandbox\n    - Firecracker\n    - microVM\n    - isolated execution\nchainTo:\n  -\n    pattern: 'from\\s+[''\"\"]vm2[''\"\"]|require\\s*\\(\\s*[''\"\"]vm2[''\"\"\\)]|new\\s+VM\\('\n    targetSkill: vercel-sandbox\n    message: 'vm2 detected — it has known security vulnerabilities. Reloading Vercel Sandbox guidance for Firecracker microVM-based safe execution.'\n  -\n    pattern: 'child_process.*exec\\(|execSync\\(|spawn\\(.*\\{.*shell:\\s*true'\n    targetSkill: ai-sdk\n    message: 'Shell exec for code execution detected — loading AI SDK guidance for tool-calling patterns that pair with Vercel Sandbox for safe agent execution.'\n\n---\n\n# Browser Automation with Vercel Sandbox\n\nRun agent-browser + headless Chrome inside ephemeral Vercel Sandbox microVMs. A Linux VM spins up on demand, executes browser commands, and shuts down. Works with any Vercel-deployed framework (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.).\n\n## Dependencies\n\n```bash\npnpm add @vercel\u002Fsandbox\n```\n\nThe sandbox VM needs system dependencies for Chromium plus agent-browser itself. Use sandbox snapshots (below) to pre-install everything for sub-second startup.\n\n## Core Pattern\n\n```ts\nimport { Sandbox } from \"@vercel\u002Fsandbox\";\n\n\u002F\u002F System libraries required by Chromium on the sandbox VM (Amazon Linux \u002F dnf)\nconst CHROMIUM_SYSTEM_DEPS = [\n  \"nss\", \"nspr\", \"libxkbcommon\", \"atk\", \"at-spi2-atk\", \"at-spi2-core\",\n  \"libXcomposite\", \"libXdamage\", \"libXrandr\", \"libXfixes\", \"libXcursor\",\n  \"libXi\", \"libXtst\", \"libXScrnSaver\", \"libXext\", \"mesa-libgbm\", \"libdrm\",\n  \"mesa-libGL\", \"mesa-libEGL\", \"cups-libs\", \"alsa-lib\", \"pango\", \"cairo\",\n  \"gtk3\", \"dbus-libs\",\n];\n\nfunction getSandboxCredentials() {\n  if (\n    process.env.VERCEL_TOKEN &&\n    process.env.VERCEL_TEAM_ID &&\n    process.env.VERCEL_PROJECT_ID\n  ) {\n    return {\n      token: process.env.VERCEL_TOKEN,\n      teamId: process.env.VERCEL_TEAM_ID,\n      projectId: process.env.VERCEL_PROJECT_ID,\n    };\n  }\n  return {};\n}\n\nasync function withBrowser\u003CT>(\n  fn: (sandbox: InstanceType\u003Ctypeof Sandbox>) => Promise\u003CT>,\n): Promise\u003CT> {\n  const snapshotId = process.env.AGENT_BROWSER_SNAPSHOT_ID;\n  const credentials = getSandboxCredentials();\n\n  const sandbox = snapshotId\n    ? await Sandbox.create({\n        ...credentials,\n        source: { type: \"snapshot\", snapshotId },\n        timeout: 120_000,\n      })\n    : await Sandbox.create({ ...credentials, runtime: \"node24\", timeout: 120_000 });\n\n  if (!snapshotId) {\n    await sandbox.runCommand(\"sh\", [\n      \"-c\",\n      `sudo dnf clean all 2>&1 && sudo dnf install -y --skip-broken ${CHROMIUM_SYSTEM_DEPS.join(\" \")} 2>&1 && sudo ldconfig 2>&1`,\n    ]);\n    await sandbox.runCommand(\"npm\", [\"install\", \"-g\", \"agent-browser\"]);\n    await sandbox.runCommand(\"npx\", [\"agent-browser\", \"install\"]);\n  }\n\n  try {\n    return await fn(sandbox);\n  } finally {\n    await sandbox.stop();\n  }\n}\n```\n\n## Screenshot\n\nThe `screenshot --json` command saves to a file and returns the path. Read the file back as base64:\n\n```ts\nexport async function screenshotUrl(url: string) {\n  return withBrowser(async (sandbox) => {\n    await sandbox.runCommand(\"agent-browser\", [\"open\", url]);\n\n    const titleResult = await sandbox.runCommand(\"agent-browser\", [\n      \"get\", \"title\", \"--json\",\n    ]);\n    const title = JSON.parse(await titleResult.stdout())?.data?.title || url;\n\n    const ssResult = await sandbox.runCommand(\"agent-browser\", [\n      \"screenshot\", \"--json\",\n    ]);\n    const ssPath = JSON.parse(await ssResult.stdout())?.data?.path;\n    const b64Result = await sandbox.runCommand(\"base64\", [\"-w\", \"0\", ssPath]);\n    const screenshot = (await b64Result.stdout()).trim();\n\n    await sandbox.runCommand(\"agent-browser\", [\"close\"]);\n\n    return { title, screenshot };\n  });\n}\n```\n\n## Accessibility Snapshot\n\n```ts\nexport async function snapshotUrl(url: string) {\n  return withBrowser(async (sandbox) => {\n    await sandbox.runCommand(\"agent-browser\", [\"open\", url]);\n\n    const titleResult = await sandbox.runCommand(\"agent-browser\", [\n      \"get\", \"title\", \"--json\",\n    ]);\n    const title = JSON.parse(await titleResult.stdout())?.data?.title || url;\n\n    const snapResult = await sandbox.runCommand(\"agent-browser\", [\n      \"snapshot\", \"-i\", \"-c\",\n    ]);\n    const snapshot = await snapResult.stdout();\n\n    await sandbox.runCommand(\"agent-browser\", [\"close\"]);\n\n    return { title, snapshot };\n  });\n}\n```\n\n## Multi-Step Workflows\n\nThe sandbox persists between commands, so you can run full automation sequences:\n\n```ts\nexport async function fillAndSubmitForm(url: string, data: Record\u003Cstring, string>) {\n  return withBrowser(async (sandbox) => {\n    await sandbox.runCommand(\"agent-browser\", [\"open\", url]);\n\n    const snapResult = await sandbox.runCommand(\"agent-browser\", [\n      \"snapshot\", \"-i\",\n    ]);\n    const snapshot = await snapResult.stdout();\n    \u002F\u002F Parse snapshot to find element refs...\n\n    for (const [ref, value] of Object.entries(data)) {\n      await sandbox.runCommand(\"agent-browser\", [\"fill\", ref, value]);\n    }\n\n    await sandbox.runCommand(\"agent-browser\", [\"click\", \"@e5\"]);\n    await sandbox.runCommand(\"agent-browser\", [\"wait\", \"--load\", \"networkidle\"]);\n\n    const ssResult = await sandbox.runCommand(\"agent-browser\", [\n      \"screenshot\", \"--json\",\n    ]);\n    const ssPath = JSON.parse(await ssResult.stdout())?.data?.path;\n    const b64Result = await sandbox.runCommand(\"base64\", [\"-w\", \"0\", ssPath]);\n    const screenshot = (await b64Result.stdout()).trim();\n\n    await sandbox.runCommand(\"agent-browser\", [\"close\"]);\n\n    return { screenshot };\n  });\n}\n```\n\n## Sandbox Snapshots (Fast Startup)\n\nA **sandbox snapshot** is a saved VM image of a Vercel Sandbox with system dependencies + agent-browser + Chromium already installed. Think of it like a Docker image -- instead of installing dependencies from scratch every time, the sandbox boots from the pre-built image.\n\nThis is unrelated to agent-browser's *accessibility snapshot* feature (`agent-browser snapshot`), which dumps a page's accessibility tree. A sandbox snapshot is a Vercel infrastructure concept for fast VM startup.\n\nWithout a sandbox snapshot, each run installs system deps + agent-browser + Chromium (~30s). With one, startup is sub-second.\n\n### Creating a sandbox snapshot\n\nThe snapshot must include system dependencies (via `dnf`), agent-browser, and Chromium:\n\n```ts\nimport { Sandbox } from \"@vercel\u002Fsandbox\";\n\nconst CHROMIUM_SYSTEM_DEPS = [\n  \"nss\", \"nspr\", \"libxkbcommon\", \"atk\", \"at-spi2-atk\", \"at-spi2-core\",\n  \"libXcomposite\", \"libXdamage\", \"libXrandr\", \"libXfixes\", \"libXcursor\",\n  \"libXi\", \"libXtst\", \"libXScrnSaver\", \"libXext\", \"mesa-libgbm\", \"libdrm\",\n  \"mesa-libGL\", \"mesa-libEGL\", \"cups-libs\", \"alsa-lib\", \"pango\", \"cairo\",\n  \"gtk3\", \"dbus-libs\",\n];\n\nasync function createSnapshot(): Promise\u003Cstring> {\n  const sandbox = await Sandbox.create({\n    runtime: \"node24\",\n    timeout: 300_000,\n  });\n\n  await sandbox.runCommand(\"sh\", [\n    \"-c\",\n    `sudo dnf clean all 2>&1 && sudo dnf install -y --skip-broken ${CHROMIUM_SYSTEM_DEPS.join(\" \")} 2>&1 && sudo ldconfig 2>&1`,\n  ]);\n  await sandbox.runCommand(\"npm\", [\"install\", \"-g\", \"agent-browser\"]);\n  await sandbox.runCommand(\"npx\", [\"agent-browser\", \"install\"]);\n\n  const snapshot = await sandbox.snapshot();\n  return snapshot.snapshotId;\n}\n```\n\nRun this once, then set the environment variable:\n\n```bash\nAGENT_BROWSER_SNAPSHOT_ID=snap_xxxxxxxxxxxx\n```\n\nA helper script is available in the demo app:\n\n```bash\nnpx tsx examples\u002Fenvironments\u002Fscripts\u002Fcreate-snapshot.ts\n```\n\nRecommended for any production deployment using the Sandbox pattern.\n\n## Authentication\n\nOn Vercel deployments, the Sandbox SDK authenticates automatically via OIDC. For local development or explicit control, set:\n\n```bash\nVERCEL_TOKEN=\u003Cpersonal-access-token>\nVERCEL_TEAM_ID=\u003Cteam-id>\nVERCEL_PROJECT_ID=\u003Cproject-id>\n```\n\nThese are spread into `Sandbox.create()` calls. When absent, the SDK falls back to `VERCEL_OIDC_TOKEN` (automatic on Vercel).\n\n## Scheduled Workflows (Cron)\n\nCombine with Vercel Cron Jobs for recurring browser tasks:\n\n```ts\n\u002F\u002F app\u002Fapi\u002Fcron\u002Froute.ts  (or equivalent in your framework)\nexport async function GET() {\n  const result = await withBrowser(async (sandbox) => {\n    await sandbox.runCommand(\"agent-browser\", [\"open\", \"https:\u002F\u002Fexample.com\u002Fpricing\"]);\n    const snap = await sandbox.runCommand(\"agent-browser\", [\"snapshot\", \"-i\", \"-c\"]);\n    await sandbox.runCommand(\"agent-browser\", [\"close\"]);\n    return await snap.stdout();\n  });\n\n  \u002F\u002F Process results, send alerts, store data...\n  return Response.json({ ok: true, snapshot: result });\n}\n```\n\n```json\n\u002F\u002F vercel.json\n{ \"crons\": [{ \"path\": \"\u002Fapi\u002Fcron\", \"schedule\": \"0 9 * * *\" }] }\n```\n\n## Environment Variables\n\n| Variable | Required | Description |\n|---|---|---|\n| `AGENT_BROWSER_SNAPSHOT_ID` | No (but recommended) | Pre-built sandbox snapshot ID for sub-second startup (see above) |\n| `VERCEL_TOKEN` | No | Vercel personal access token (for local dev; OIDC is automatic on Vercel) |\n| `VERCEL_TEAM_ID` | No | Vercel team ID (for local dev) |\n| `VERCEL_PROJECT_ID` | No | Vercel project ID (for local dev) |\n\n## Framework Examples\n\nThe pattern works identically across frameworks. The only difference is where you put the server-side code:\n\n| Framework | Server code location |\n|---|---|\n| Next.js | Server actions, API routes, route handlers |\n| SvelteKit | `+page.server.ts`, `+server.ts` |\n| Nuxt | `server\u002Fapi\u002F`, `server\u002Froutes\u002F` |\n| Remix | `loader`, `action` functions |\n| Astro | `.astro` frontmatter, API routes |\n\n## Example\n\nSee `examples\u002Fenvironments\u002F` in the agent-browser repo for a working app with the Vercel Sandbox pattern, including a sandbox snapshot creation script, streaming progress UI, and rate limiting.\n",{"data":35,"body":127},{"name":4,"description":6,"metadata":36,"retrieval":106,"chainTo":119},{"priority":37,"docs":38,"sitemap":40,"pathPatterns":41,"importPatterns":42,"bashPatterns":44,"promptSignals":49},4,[39],"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fsandbox","https:\u002F\u002Fvercel.com\u002Fsitemap\u002Fdocs.xml",[],[43],"@vercel\u002Fsandbox",[45,46,47,48],"\\bnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fsandbox\\b","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fsandbox\\b","\\bbun\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Fsandbox\\b","\\byarn\\s+add\\s+[^\\n]*@vercel\u002Fsandbox\\b",{"phrases":50,"allOf":56,"anyOf":99,"noneOf":101,"minScore":37},[43,51,52,53,54,55],"sandbox","code sandbox","vercel sandbox","isolated environment","sandboxed execution",[57,59,61,63,65,67,69,70,71,72,73,74,75,77,78,80,82,84,85,87,88,91,93,95,97,98],[51,58],"code",[51,60],"execute",[51,62],"run",[51,64],"isolated",[51,66],"safe",[51,68],"environment",[64,60],[64,58],[64,68],[64,62],[66,60],[66,58],[76,58],"untrusted",[76,60],[58,79],"runner",[58,81],"playground",[60,83],"safely",[62,83],[62,86],"isolation",[60,86],[89,90],"ffmpeg","process",[89,92],"convert",[89,94],"compress",[96,58],"student",[96,60],[96,62],[51,64,86,76,83,100,89,81],"microvm",[102,103,104,105],"iframe sandbox","sandbox attribute","codesandbox.io","stackblitz",{"aliases":107,"intents":110,"entities":115},[52,100,108,109],"isolated execution","safe code runner",[111,112,113,114],"run untrusted code","execute code safely","create sandbox","isolate code execution",[116,117,118,108],"Vercel Sandbox","Firecracker","microVM",[120,123],{"pattern":121,"targetSkill":4,"message":122},"from\\s+['\"\"]vm2['\"\"]|require\\s*\\(\\s*['\"\"]vm2['\"\"\\)]|new\\s+VM\\(","vm2 detected — it has known security vulnerabilities. Reloading Vercel Sandbox guidance for Firecracker microVM-based safe execution.",{"pattern":124,"targetSkill":125,"message":126},"child_process.*exec\\(|execSync\\(|spawn\\(.*\\{.*shell:\\s*true","ai-sdk","Shell exec for code execution detected — loading AI SDK guidance for tool-calling patterns that pair with Vercel Sandbox for safe agent execution.",{"type":128,"children":129},"root",[130,139,145,152,186,191,197,2060,2066,2079,2933,2939,3595,3601,3606,4765,4771,4784,4805,4810,4817,4830,5872,5877,5900,5905,5929,5934,5940,5945,6014,6035,6041,6046,6532,6650,6656,6771,6777,6782,6911,6917,6930],{"type":131,"tag":132,"props":133,"children":135},"element","h1",{"id":134},"browser-automation-with-vercel-sandbox",[136],{"type":137,"value":138},"text","Browser Automation with Vercel Sandbox",{"type":131,"tag":140,"props":141,"children":142},"p",{},[143],{"type":137,"value":144},"Run agent-browser + headless Chrome inside ephemeral Vercel Sandbox microVMs. A Linux VM spins up on demand, executes browser commands, and shuts down. Works with any Vercel-deployed framework (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.).",{"type":131,"tag":146,"props":147,"children":149},"h2",{"id":148},"dependencies",[150],{"type":137,"value":151},"Dependencies",{"type":131,"tag":153,"props":154,"children":159},"pre",{"className":155,"code":156,"language":157,"meta":158,"style":158},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","pnpm add @vercel\u002Fsandbox\n","bash","",[160],{"type":131,"tag":58,"props":161,"children":162},{"__ignoreMap":158},[163],{"type":131,"tag":164,"props":165,"children":168},"span",{"class":166,"line":167},"line",1,[169,175,181],{"type":131,"tag":164,"props":170,"children":172},{"style":171},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[173],{"type":137,"value":174},"pnpm",{"type":131,"tag":164,"props":176,"children":178},{"style":177},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[179],{"type":137,"value":180}," add",{"type":131,"tag":164,"props":182,"children":183},{"style":177},[184],{"type":137,"value":185}," @vercel\u002Fsandbox\n",{"type":131,"tag":140,"props":187,"children":188},{},[189],{"type":137,"value":190},"The sandbox VM needs system dependencies for Chromium plus agent-browser itself. Use sandbox snapshots (below) to pre-install everything for sub-second startup.",{"type":131,"tag":146,"props":192,"children":194},{"id":193},"core-pattern",[195],{"type":137,"value":196},"Core Pattern",{"type":131,"tag":153,"props":198,"children":202},{"className":199,"code":200,"language":201,"meta":158,"style":158},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { Sandbox } from \"@vercel\u002Fsandbox\";\n\n\u002F\u002F System libraries required by Chromium on the sandbox VM (Amazon Linux \u002F dnf)\nconst CHROMIUM_SYSTEM_DEPS = [\n  \"nss\", \"nspr\", \"libxkbcommon\", \"atk\", \"at-spi2-atk\", \"at-spi2-core\",\n  \"libXcomposite\", \"libXdamage\", \"libXrandr\", \"libXfixes\", \"libXcursor\",\n  \"libXi\", \"libXtst\", \"libXScrnSaver\", \"libXext\", \"mesa-libgbm\", \"libdrm\",\n  \"mesa-libGL\", \"mesa-libEGL\", \"cups-libs\", \"alsa-lib\", \"pango\", \"cairo\",\n  \"gtk3\", \"dbus-libs\",\n];\n\nfunction getSandboxCredentials() {\n  if (\n    process.env.VERCEL_TOKEN &&\n    process.env.VERCEL_TEAM_ID &&\n    process.env.VERCEL_PROJECT_ID\n  ) {\n    return {\n      token: process.env.VERCEL_TOKEN,\n      teamId: process.env.VERCEL_TEAM_ID,\n      projectId: process.env.VERCEL_PROJECT_ID,\n    };\n  }\n  return {};\n}\n\nasync function withBrowser\u003CT>(\n  fn: (sandbox: InstanceType\u003Ctypeof Sandbox>) => Promise\u003CT>,\n): Promise\u003CT> {\n  const snapshotId = process.env.AGENT_BROWSER_SNAPSHOT_ID;\n  const credentials = getSandboxCredentials();\n\n  const sandbox = snapshotId\n    ? await Sandbox.create({\n        ...credentials,\n        source: { type: \"snapshot\", snapshotId },\n        timeout: 120_000,\n      })\n    : await Sandbox.create({ ...credentials, runtime: \"node24\", timeout: 120_000 });\n\n  if (!snapshotId) {\n    await sandbox.runCommand(\"sh\", [\n      \"-c\",\n      `sudo dnf clean all 2>&1 && sudo dnf install -y --skip-broken ${CHROMIUM_SYSTEM_DEPS.join(\" \")} 2>&1 && sudo ldconfig 2>&1`,\n    ]);\n    await sandbox.runCommand(\"npm\", [\"install\", \"-g\", \"agent-browser\"]);\n    await sandbox.runCommand(\"npx\", [\"agent-browser\", \"install\"]);\n  }\n\n  try {\n    return await fn(sandbox);\n  } finally {\n    await sandbox.stop();\n  }\n}\n","ts",[203],{"type":131,"tag":58,"props":204,"children":205},{"__ignoreMap":158},[206,256,266,276,300,409,498,604,710,748,761,769,794,809,842,871,896,910,923,962,999,1037,1046,1055,1069,1078,1086,1120,1189,1219,1263,1292,1300,1322,1358,1376,1427,1450,1464,1563,1571,1602,1649,1671,1739,1752,1854,1935,1943,1951,1964,1997,2015,2044,2052],{"type":131,"tag":164,"props":207,"children":208},{"class":166,"line":167},[209,215,221,227,232,237,242,246,251],{"type":131,"tag":164,"props":210,"children":212},{"style":211},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[213],{"type":137,"value":214},"import",{"type":131,"tag":164,"props":216,"children":218},{"style":217},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[219],{"type":137,"value":220}," {",{"type":131,"tag":164,"props":222,"children":224},{"style":223},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[225],{"type":137,"value":226}," Sandbox",{"type":131,"tag":164,"props":228,"children":229},{"style":217},[230],{"type":137,"value":231}," }",{"type":131,"tag":164,"props":233,"children":234},{"style":211},[235],{"type":137,"value":236}," from",{"type":131,"tag":164,"props":238,"children":239},{"style":217},[240],{"type":137,"value":241}," \"",{"type":131,"tag":164,"props":243,"children":244},{"style":177},[245],{"type":137,"value":43},{"type":131,"tag":164,"props":247,"children":248},{"style":217},[249],{"type":137,"value":250},"\"",{"type":131,"tag":164,"props":252,"children":253},{"style":217},[254],{"type":137,"value":255},";\n",{"type":131,"tag":164,"props":257,"children":259},{"class":166,"line":258},2,[260],{"type":131,"tag":164,"props":261,"children":263},{"emptyLinePlaceholder":262},true,[264],{"type":137,"value":265},"\n",{"type":131,"tag":164,"props":267,"children":269},{"class":166,"line":268},3,[270],{"type":131,"tag":164,"props":271,"children":273},{"style":272},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[274],{"type":137,"value":275},"\u002F\u002F System libraries required by Chromium on the sandbox VM (Amazon Linux \u002F dnf)\n",{"type":131,"tag":164,"props":277,"children":278},{"class":166,"line":37},[279,285,290,295],{"type":131,"tag":164,"props":280,"children":282},{"style":281},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[283],{"type":137,"value":284},"const",{"type":131,"tag":164,"props":286,"children":287},{"style":223},[288],{"type":137,"value":289}," CHROMIUM_SYSTEM_DEPS ",{"type":131,"tag":164,"props":291,"children":292},{"style":217},[293],{"type":137,"value":294},"=",{"type":131,"tag":164,"props":296,"children":297},{"style":223},[298],{"type":137,"value":299}," [\n",{"type":131,"tag":164,"props":301,"children":303},{"class":166,"line":302},5,[304,309,314,318,323,327,332,336,340,344,349,353,357,361,366,370,374,378,383,387,391,395,400,404],{"type":131,"tag":164,"props":305,"children":306},{"style":217},[307],{"type":137,"value":308},"  \"",{"type":131,"tag":164,"props":310,"children":311},{"style":177},[312],{"type":137,"value":313},"nss",{"type":131,"tag":164,"props":315,"children":316},{"style":217},[317],{"type":137,"value":250},{"type":131,"tag":164,"props":319,"children":320},{"style":217},[321],{"type":137,"value":322},",",{"type":131,"tag":164,"props":324,"children":325},{"style":217},[326],{"type":137,"value":241},{"type":131,"tag":164,"props":328,"children":329},{"style":177},[330],{"type":137,"value":331},"nspr",{"type":131,"tag":164,"props":333,"children":334},{"style":217},[335],{"type":137,"value":250},{"type":131,"tag":164,"props":337,"children":338},{"style":217},[339],{"type":137,"value":322},{"type":131,"tag":164,"props":341,"children":342},{"style":217},[343],{"type":137,"value":241},{"type":131,"tag":164,"props":345,"children":346},{"style":177},[347],{"type":137,"value":348},"libxkbcommon",{"type":131,"tag":164,"props":350,"children":351},{"style":217},[352],{"type":137,"value":250},{"type":131,"tag":164,"props":354,"children":355},{"style":217},[356],{"type":137,"value":322},{"type":131,"tag":164,"props":358,"children":359},{"style":217},[360],{"type":137,"value":241},{"type":131,"tag":164,"props":362,"children":363},{"style":177},[364],{"type":137,"value":365},"atk",{"type":131,"tag":164,"props":367,"children":368},{"style":217},[369],{"type":137,"value":250},{"type":131,"tag":164,"props":371,"children":372},{"style":217},[373],{"type":137,"value":322},{"type":131,"tag":164,"props":375,"children":376},{"style":217},[377],{"type":137,"value":241},{"type":131,"tag":164,"props":379,"children":380},{"style":177},[381],{"type":137,"value":382},"at-spi2-atk",{"type":131,"tag":164,"props":384,"children":385},{"style":217},[386],{"type":137,"value":250},{"type":131,"tag":164,"props":388,"children":389},{"style":217},[390],{"type":137,"value":322},{"type":131,"tag":164,"props":392,"children":393},{"style":217},[394],{"type":137,"value":241},{"type":131,"tag":164,"props":396,"children":397},{"style":177},[398],{"type":137,"value":399},"at-spi2-core",{"type":131,"tag":164,"props":401,"children":402},{"style":217},[403],{"type":137,"value":250},{"type":131,"tag":164,"props":405,"children":406},{"style":217},[407],{"type":137,"value":408},",\n",{"type":131,"tag":164,"props":410,"children":412},{"class":166,"line":411},6,[413,417,422,426,430,434,439,443,447,451,456,460,464,468,473,477,481,485,490,494],{"type":131,"tag":164,"props":414,"children":415},{"style":217},[416],{"type":137,"value":308},{"type":131,"tag":164,"props":418,"children":419},{"style":177},[420],{"type":137,"value":421},"libXcomposite",{"type":131,"tag":164,"props":423,"children":424},{"style":217},[425],{"type":137,"value":250},{"type":131,"tag":164,"props":427,"children":428},{"style":217},[429],{"type":137,"value":322},{"type":131,"tag":164,"props":431,"children":432},{"style":217},[433],{"type":137,"value":241},{"type":131,"tag":164,"props":435,"children":436},{"style":177},[437],{"type":137,"value":438},"libXdamage",{"type":131,"tag":164,"props":440,"children":441},{"style":217},[442],{"type":137,"value":250},{"type":131,"tag":164,"props":444,"children":445},{"style":217},[446],{"type":137,"value":322},{"type":131,"tag":164,"props":448,"children":449},{"style":217},[450],{"type":137,"value":241},{"type":131,"tag":164,"props":452,"children":453},{"style":177},[454],{"type":137,"value":455},"libXrandr",{"type":131,"tag":164,"props":457,"children":458},{"style":217},[459],{"type":137,"value":250},{"type":131,"tag":164,"props":461,"children":462},{"style":217},[463],{"type":137,"value":322},{"type":131,"tag":164,"props":465,"children":466},{"style":217},[467],{"type":137,"value":241},{"type":131,"tag":164,"props":469,"children":470},{"style":177},[471],{"type":137,"value":472},"libXfixes",{"type":131,"tag":164,"props":474,"children":475},{"style":217},[476],{"type":137,"value":250},{"type":131,"tag":164,"props":478,"children":479},{"style":217},[480],{"type":137,"value":322},{"type":131,"tag":164,"props":482,"children":483},{"style":217},[484],{"type":137,"value":241},{"type":131,"tag":164,"props":486,"children":487},{"style":177},[488],{"type":137,"value":489},"libXcursor",{"type":131,"tag":164,"props":491,"children":492},{"style":217},[493],{"type":137,"value":250},{"type":131,"tag":164,"props":495,"children":496},{"style":217},[497],{"type":137,"value":408},{"type":131,"tag":164,"props":499,"children":501},{"class":166,"line":500},7,[502,506,511,515,519,523,528,532,536,540,545,549,553,557,562,566,570,574,579,583,587,591,596,600],{"type":131,"tag":164,"props":503,"children":504},{"style":217},[505],{"type":137,"value":308},{"type":131,"tag":164,"props":507,"children":508},{"style":177},[509],{"type":137,"value":510},"libXi",{"type":131,"tag":164,"props":512,"children":513},{"style":217},[514],{"type":137,"value":250},{"type":131,"tag":164,"props":516,"children":517},{"style":217},[518],{"type":137,"value":322},{"type":131,"tag":164,"props":520,"children":521},{"style":217},[522],{"type":137,"value":241},{"type":131,"tag":164,"props":524,"children":525},{"style":177},[526],{"type":137,"value":527},"libXtst",{"type":131,"tag":164,"props":529,"children":530},{"style":217},[531],{"type":137,"value":250},{"type":131,"tag":164,"props":533,"children":534},{"style":217},[535],{"type":137,"value":322},{"type":131,"tag":164,"props":537,"children":538},{"style":217},[539],{"type":137,"value":241},{"type":131,"tag":164,"props":541,"children":542},{"style":177},[543],{"type":137,"value":544},"libXScrnSaver",{"type":131,"tag":164,"props":546,"children":547},{"style":217},[548],{"type":137,"value":250},{"type":131,"tag":164,"props":550,"children":551},{"style":217},[552],{"type":137,"value":322},{"type":131,"tag":164,"props":554,"children":555},{"style":217},[556],{"type":137,"value":241},{"type":131,"tag":164,"props":558,"children":559},{"style":177},[560],{"type":137,"value":561},"libXext",{"type":131,"tag":164,"props":563,"children":564},{"style":217},[565],{"type":137,"value":250},{"type":131,"tag":164,"props":567,"children":568},{"style":217},[569],{"type":137,"value":322},{"type":131,"tag":164,"props":571,"children":572},{"style":217},[573],{"type":137,"value":241},{"type":131,"tag":164,"props":575,"children":576},{"style":177},[577],{"type":137,"value":578},"mesa-libgbm",{"type":131,"tag":164,"props":580,"children":581},{"style":217},[582],{"type":137,"value":250},{"type":131,"tag":164,"props":584,"children":585},{"style":217},[586],{"type":137,"value":322},{"type":131,"tag":164,"props":588,"children":589},{"style":217},[590],{"type":137,"value":241},{"type":131,"tag":164,"props":592,"children":593},{"style":177},[594],{"type":137,"value":595},"libdrm",{"type":131,"tag":164,"props":597,"children":598},{"style":217},[599],{"type":137,"value":250},{"type":131,"tag":164,"props":601,"children":602},{"style":217},[603],{"type":137,"value":408},{"type":131,"tag":164,"props":605,"children":607},{"class":166,"line":606},8,[608,612,617,621,625,629,634,638,642,646,651,655,659,663,668,672,676,680,685,689,693,697,702,706],{"type":131,"tag":164,"props":609,"children":610},{"style":217},[611],{"type":137,"value":308},{"type":131,"tag":164,"props":613,"children":614},{"style":177},[615],{"type":137,"value":616},"mesa-libGL",{"type":131,"tag":164,"props":618,"children":619},{"style":217},[620],{"type":137,"value":250},{"type":131,"tag":164,"props":622,"children":623},{"style":217},[624],{"type":137,"value":322},{"type":131,"tag":164,"props":626,"children":627},{"style":217},[628],{"type":137,"value":241},{"type":131,"tag":164,"props":630,"children":631},{"style":177},[632],{"type":137,"value":633},"mesa-libEGL",{"type":131,"tag":164,"props":635,"children":636},{"style":217},[637],{"type":137,"value":250},{"type":131,"tag":164,"props":639,"children":640},{"style":217},[641],{"type":137,"value":322},{"type":131,"tag":164,"props":643,"children":644},{"style":217},[645],{"type":137,"value":241},{"type":131,"tag":164,"props":647,"children":648},{"style":177},[649],{"type":137,"value":650},"cups-libs",{"type":131,"tag":164,"props":652,"children":653},{"style":217},[654],{"type":137,"value":250},{"type":131,"tag":164,"props":656,"children":657},{"style":217},[658],{"type":137,"value":322},{"type":131,"tag":164,"props":660,"children":661},{"style":217},[662],{"type":137,"value":241},{"type":131,"tag":164,"props":664,"children":665},{"style":177},[666],{"type":137,"value":667},"alsa-lib",{"type":131,"tag":164,"props":669,"children":670},{"style":217},[671],{"type":137,"value":250},{"type":131,"tag":164,"props":673,"children":674},{"style":217},[675],{"type":137,"value":322},{"type":131,"tag":164,"props":677,"children":678},{"style":217},[679],{"type":137,"value":241},{"type":131,"tag":164,"props":681,"children":682},{"style":177},[683],{"type":137,"value":684},"pango",{"type":131,"tag":164,"props":686,"children":687},{"style":217},[688],{"type":137,"value":250},{"type":131,"tag":164,"props":690,"children":691},{"style":217},[692],{"type":137,"value":322},{"type":131,"tag":164,"props":694,"children":695},{"style":217},[696],{"type":137,"value":241},{"type":131,"tag":164,"props":698,"children":699},{"style":177},[700],{"type":137,"value":701},"cairo",{"type":131,"tag":164,"props":703,"children":704},{"style":217},[705],{"type":137,"value":250},{"type":131,"tag":164,"props":707,"children":708},{"style":217},[709],{"type":137,"value":408},{"type":131,"tag":164,"props":711,"children":713},{"class":166,"line":712},9,[714,718,723,727,731,735,740,744],{"type":131,"tag":164,"props":715,"children":716},{"style":217},[717],{"type":137,"value":308},{"type":131,"tag":164,"props":719,"children":720},{"style":177},[721],{"type":137,"value":722},"gtk3",{"type":131,"tag":164,"props":724,"children":725},{"style":217},[726],{"type":137,"value":250},{"type":131,"tag":164,"props":728,"children":729},{"style":217},[730],{"type":137,"value":322},{"type":131,"tag":164,"props":732,"children":733},{"style":217},[734],{"type":137,"value":241},{"type":131,"tag":164,"props":736,"children":737},{"style":177},[738],{"type":137,"value":739},"dbus-libs",{"type":131,"tag":164,"props":741,"children":742},{"style":217},[743],{"type":137,"value":250},{"type":131,"tag":164,"props":745,"children":746},{"style":217},[747],{"type":137,"value":408},{"type":131,"tag":164,"props":749,"children":751},{"class":166,"line":750},10,[752,757],{"type":131,"tag":164,"props":753,"children":754},{"style":223},[755],{"type":137,"value":756},"]",{"type":131,"tag":164,"props":758,"children":759},{"style":217},[760],{"type":137,"value":255},{"type":131,"tag":164,"props":762,"children":764},{"class":166,"line":763},11,[765],{"type":131,"tag":164,"props":766,"children":767},{"emptyLinePlaceholder":262},[768],{"type":137,"value":265},{"type":131,"tag":164,"props":770,"children":772},{"class":166,"line":771},12,[773,778,784,789],{"type":131,"tag":164,"props":774,"children":775},{"style":281},[776],{"type":137,"value":777},"function",{"type":131,"tag":164,"props":779,"children":781},{"style":780},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[782],{"type":137,"value":783}," getSandboxCredentials",{"type":131,"tag":164,"props":785,"children":786},{"style":217},[787],{"type":137,"value":788},"()",{"type":131,"tag":164,"props":790,"children":791},{"style":217},[792],{"type":137,"value":793}," {\n",{"type":131,"tag":164,"props":795,"children":797},{"class":166,"line":796},13,[798,803],{"type":131,"tag":164,"props":799,"children":800},{"style":211},[801],{"type":137,"value":802},"  if",{"type":131,"tag":164,"props":804,"children":806},{"style":805},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[807],{"type":137,"value":808}," (\n",{"type":131,"tag":164,"props":810,"children":812},{"class":166,"line":811},14,[813,818,823,828,832,837],{"type":131,"tag":164,"props":814,"children":815},{"style":223},[816],{"type":137,"value":817},"    process",{"type":131,"tag":164,"props":819,"children":820},{"style":217},[821],{"type":137,"value":822},".",{"type":131,"tag":164,"props":824,"children":825},{"style":223},[826],{"type":137,"value":827},"env",{"type":131,"tag":164,"props":829,"children":830},{"style":217},[831],{"type":137,"value":822},{"type":131,"tag":164,"props":833,"children":834},{"style":223},[835],{"type":137,"value":836},"VERCEL_TOKEN",{"type":131,"tag":164,"props":838,"children":839},{"style":217},[840],{"type":137,"value":841}," &&\n",{"type":131,"tag":164,"props":843,"children":845},{"class":166,"line":844},15,[846,850,854,858,862,867],{"type":131,"tag":164,"props":847,"children":848},{"style":223},[849],{"type":137,"value":817},{"type":131,"tag":164,"props":851,"children":852},{"style":217},[853],{"type":137,"value":822},{"type":131,"tag":164,"props":855,"children":856},{"style":223},[857],{"type":137,"value":827},{"type":131,"tag":164,"props":859,"children":860},{"style":217},[861],{"type":137,"value":822},{"type":131,"tag":164,"props":863,"children":864},{"style":223},[865],{"type":137,"value":866},"VERCEL_TEAM_ID",{"type":131,"tag":164,"props":868,"children":869},{"style":217},[870],{"type":137,"value":841},{"type":131,"tag":164,"props":872,"children":874},{"class":166,"line":873},16,[875,879,883,887,891],{"type":131,"tag":164,"props":876,"children":877},{"style":223},[878],{"type":137,"value":817},{"type":131,"tag":164,"props":880,"children":881},{"style":217},[882],{"type":137,"value":822},{"type":131,"tag":164,"props":884,"children":885},{"style":223},[886],{"type":137,"value":827},{"type":131,"tag":164,"props":888,"children":889},{"style":217},[890],{"type":137,"value":822},{"type":131,"tag":164,"props":892,"children":893},{"style":223},[894],{"type":137,"value":895},"VERCEL_PROJECT_ID\n",{"type":131,"tag":164,"props":897,"children":899},{"class":166,"line":898},17,[900,905],{"type":131,"tag":164,"props":901,"children":902},{"style":805},[903],{"type":137,"value":904},"  ) ",{"type":131,"tag":164,"props":906,"children":907},{"style":217},[908],{"type":137,"value":909},"{\n",{"type":131,"tag":164,"props":911,"children":913},{"class":166,"line":912},18,[914,919],{"type":131,"tag":164,"props":915,"children":916},{"style":211},[917],{"type":137,"value":918},"    return",{"type":131,"tag":164,"props":920,"children":921},{"style":217},[922],{"type":137,"value":793},{"type":131,"tag":164,"props":924,"children":926},{"class":166,"line":925},19,[927,932,937,942,946,950,954,958],{"type":131,"tag":164,"props":928,"children":929},{"style":805},[930],{"type":137,"value":931},"      token",{"type":131,"tag":164,"props":933,"children":934},{"style":217},[935],{"type":137,"value":936},":",{"type":131,"tag":164,"props":938,"children":939},{"style":223},[940],{"type":137,"value":941}," process",{"type":131,"tag":164,"props":943,"children":944},{"style":217},[945],{"type":137,"value":822},{"type":131,"tag":164,"props":947,"children":948},{"style":223},[949],{"type":137,"value":827},{"type":131,"tag":164,"props":951,"children":952},{"style":217},[953],{"type":137,"value":822},{"type":131,"tag":164,"props":955,"children":956},{"style":223},[957],{"type":137,"value":836},{"type":131,"tag":164,"props":959,"children":960},{"style":217},[961],{"type":137,"value":408},{"type":131,"tag":164,"props":963,"children":965},{"class":166,"line":964},20,[966,971,975,979,983,987,991,995],{"type":131,"tag":164,"props":967,"children":968},{"style":805},[969],{"type":137,"value":970},"      teamId",{"type":131,"tag":164,"props":972,"children":973},{"style":217},[974],{"type":137,"value":936},{"type":131,"tag":164,"props":976,"children":977},{"style":223},[978],{"type":137,"value":941},{"type":131,"tag":164,"props":980,"children":981},{"style":217},[982],{"type":137,"value":822},{"type":131,"tag":164,"props":984,"children":985},{"style":223},[986],{"type":137,"value":827},{"type":131,"tag":164,"props":988,"children":989},{"style":217},[990],{"type":137,"value":822},{"type":131,"tag":164,"props":992,"children":993},{"style":223},[994],{"type":137,"value":866},{"type":131,"tag":164,"props":996,"children":997},{"style":217},[998],{"type":137,"value":408},{"type":131,"tag":164,"props":1000,"children":1002},{"class":166,"line":1001},21,[1003,1008,1012,1016,1020,1024,1028,1033],{"type":131,"tag":164,"props":1004,"children":1005},{"style":805},[1006],{"type":137,"value":1007},"      projectId",{"type":131,"tag":164,"props":1009,"children":1010},{"style":217},[1011],{"type":137,"value":936},{"type":131,"tag":164,"props":1013,"children":1014},{"style":223},[1015],{"type":137,"value":941},{"type":131,"tag":164,"props":1017,"children":1018},{"style":217},[1019],{"type":137,"value":822},{"type":131,"tag":164,"props":1021,"children":1022},{"style":223},[1023],{"type":137,"value":827},{"type":131,"tag":164,"props":1025,"children":1026},{"style":217},[1027],{"type":137,"value":822},{"type":131,"tag":164,"props":1029,"children":1030},{"style":223},[1031],{"type":137,"value":1032},"VERCEL_PROJECT_ID",{"type":131,"tag":164,"props":1034,"children":1035},{"style":217},[1036],{"type":137,"value":408},{"type":131,"tag":164,"props":1038,"children":1040},{"class":166,"line":1039},22,[1041],{"type":131,"tag":164,"props":1042,"children":1043},{"style":217},[1044],{"type":137,"value":1045},"    };\n",{"type":131,"tag":164,"props":1047,"children":1049},{"class":166,"line":1048},23,[1050],{"type":131,"tag":164,"props":1051,"children":1052},{"style":217},[1053],{"type":137,"value":1054},"  }\n",{"type":131,"tag":164,"props":1056,"children":1058},{"class":166,"line":1057},24,[1059,1064],{"type":131,"tag":164,"props":1060,"children":1061},{"style":211},[1062],{"type":137,"value":1063},"  return",{"type":131,"tag":164,"props":1065,"children":1066},{"style":217},[1067],{"type":137,"value":1068}," {};\n",{"type":131,"tag":164,"props":1070,"children":1072},{"class":166,"line":1071},25,[1073],{"type":131,"tag":164,"props":1074,"children":1075},{"style":217},[1076],{"type":137,"value":1077},"}\n",{"type":131,"tag":164,"props":1079,"children":1081},{"class":166,"line":1080},26,[1082],{"type":131,"tag":164,"props":1083,"children":1084},{"emptyLinePlaceholder":262},[1085],{"type":137,"value":265},{"type":131,"tag":164,"props":1087,"children":1089},{"class":166,"line":1088},27,[1090,1095,1100,1105,1110,1115],{"type":131,"tag":164,"props":1091,"children":1092},{"style":281},[1093],{"type":137,"value":1094},"async",{"type":131,"tag":164,"props":1096,"children":1097},{"style":281},[1098],{"type":137,"value":1099}," function",{"type":131,"tag":164,"props":1101,"children":1102},{"style":780},[1103],{"type":137,"value":1104}," withBrowser",{"type":131,"tag":164,"props":1106,"children":1107},{"style":217},[1108],{"type":137,"value":1109},"\u003C",{"type":131,"tag":164,"props":1111,"children":1112},{"style":171},[1113],{"type":137,"value":1114},"T",{"type":131,"tag":164,"props":1116,"children":1117},{"style":217},[1118],{"type":137,"value":1119},">(\n",{"type":131,"tag":164,"props":1121,"children":1123},{"class":166,"line":1122},28,[1124,1129,1133,1138,1143,1147,1152,1157,1161,1166,1171,1176,1180,1184],{"type":131,"tag":164,"props":1125,"children":1126},{"style":780},[1127],{"type":137,"value":1128},"  fn",{"type":131,"tag":164,"props":1130,"children":1131},{"style":217},[1132],{"type":137,"value":936},{"type":131,"tag":164,"props":1134,"children":1135},{"style":217},[1136],{"type":137,"value":1137}," (",{"type":131,"tag":164,"props":1139,"children":1141},{"style":1140},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[1142],{"type":137,"value":51},{"type":131,"tag":164,"props":1144,"children":1145},{"style":217},[1146],{"type":137,"value":936},{"type":131,"tag":164,"props":1148,"children":1149},{"style":171},[1150],{"type":137,"value":1151}," InstanceType",{"type":131,"tag":164,"props":1153,"children":1154},{"style":217},[1155],{"type":137,"value":1156},"\u003Ctypeof",{"type":131,"tag":164,"props":1158,"children":1159},{"style":223},[1160],{"type":137,"value":226},{"type":131,"tag":164,"props":1162,"children":1163},{"style":217},[1164],{"type":137,"value":1165},">)",{"type":131,"tag":164,"props":1167,"children":1168},{"style":281},[1169],{"type":137,"value":1170}," =>",{"type":131,"tag":164,"props":1172,"children":1173},{"style":171},[1174],{"type":137,"value":1175}," Promise",{"type":131,"tag":164,"props":1177,"children":1178},{"style":217},[1179],{"type":137,"value":1109},{"type":131,"tag":164,"props":1181,"children":1182},{"style":171},[1183],{"type":137,"value":1114},{"type":131,"tag":164,"props":1185,"children":1186},{"style":217},[1187],{"type":137,"value":1188},">,\n",{"type":131,"tag":164,"props":1190,"children":1192},{"class":166,"line":1191},29,[1193,1198,1202,1206,1210,1215],{"type":131,"tag":164,"props":1194,"children":1195},{"style":217},[1196],{"type":137,"value":1197},"):",{"type":131,"tag":164,"props":1199,"children":1200},{"style":171},[1201],{"type":137,"value":1175},{"type":131,"tag":164,"props":1203,"children":1204},{"style":217},[1205],{"type":137,"value":1109},{"type":131,"tag":164,"props":1207,"children":1208},{"style":171},[1209],{"type":137,"value":1114},{"type":131,"tag":164,"props":1211,"children":1212},{"style":217},[1213],{"type":137,"value":1214},">",{"type":131,"tag":164,"props":1216,"children":1217},{"style":217},[1218],{"type":137,"value":793},{"type":131,"tag":164,"props":1220,"children":1222},{"class":166,"line":1221},30,[1223,1228,1233,1238,1242,1246,1250,1254,1259],{"type":131,"tag":164,"props":1224,"children":1225},{"style":281},[1226],{"type":137,"value":1227},"  const",{"type":131,"tag":164,"props":1229,"children":1230},{"style":223},[1231],{"type":137,"value":1232}," snapshotId",{"type":131,"tag":164,"props":1234,"children":1235},{"style":217},[1236],{"type":137,"value":1237}," =",{"type":131,"tag":164,"props":1239,"children":1240},{"style":223},[1241],{"type":137,"value":941},{"type":131,"tag":164,"props":1243,"children":1244},{"style":217},[1245],{"type":137,"value":822},{"type":131,"tag":164,"props":1247,"children":1248},{"style":223},[1249],{"type":137,"value":827},{"type":131,"tag":164,"props":1251,"children":1252},{"style":217},[1253],{"type":137,"value":822},{"type":131,"tag":164,"props":1255,"children":1256},{"style":223},[1257],{"type":137,"value":1258},"AGENT_BROWSER_SNAPSHOT_ID",{"type":131,"tag":164,"props":1260,"children":1261},{"style":217},[1262],{"type":137,"value":255},{"type":131,"tag":164,"props":1264,"children":1266},{"class":166,"line":1265},31,[1267,1271,1276,1280,1284,1288],{"type":131,"tag":164,"props":1268,"children":1269},{"style":281},[1270],{"type":137,"value":1227},{"type":131,"tag":164,"props":1272,"children":1273},{"style":223},[1274],{"type":137,"value":1275}," credentials",{"type":131,"tag":164,"props":1277,"children":1278},{"style":217},[1279],{"type":137,"value":1237},{"type":131,"tag":164,"props":1281,"children":1282},{"style":780},[1283],{"type":137,"value":783},{"type":131,"tag":164,"props":1285,"children":1286},{"style":805},[1287],{"type":137,"value":788},{"type":131,"tag":164,"props":1289,"children":1290},{"style":217},[1291],{"type":137,"value":255},{"type":131,"tag":164,"props":1293,"children":1295},{"class":166,"line":1294},32,[1296],{"type":131,"tag":164,"props":1297,"children":1298},{"emptyLinePlaceholder":262},[1299],{"type":137,"value":265},{"type":131,"tag":164,"props":1301,"children":1303},{"class":166,"line":1302},33,[1304,1308,1313,1317],{"type":131,"tag":164,"props":1305,"children":1306},{"style":281},[1307],{"type":137,"value":1227},{"type":131,"tag":164,"props":1309,"children":1310},{"style":223},[1311],{"type":137,"value":1312}," sandbox",{"type":131,"tag":164,"props":1314,"children":1315},{"style":217},[1316],{"type":137,"value":1237},{"type":131,"tag":164,"props":1318,"children":1319},{"style":223},[1320],{"type":137,"value":1321}," snapshotId\n",{"type":131,"tag":164,"props":1323,"children":1325},{"class":166,"line":1324},34,[1326,1331,1336,1340,1344,1349,1354],{"type":131,"tag":164,"props":1327,"children":1328},{"style":217},[1329],{"type":137,"value":1330},"    ?",{"type":131,"tag":164,"props":1332,"children":1333},{"style":211},[1334],{"type":137,"value":1335}," await",{"type":131,"tag":164,"props":1337,"children":1338},{"style":223},[1339],{"type":137,"value":226},{"type":131,"tag":164,"props":1341,"children":1342},{"style":217},[1343],{"type":137,"value":822},{"type":131,"tag":164,"props":1345,"children":1346},{"style":780},[1347],{"type":137,"value":1348},"create",{"type":131,"tag":164,"props":1350,"children":1351},{"style":805},[1352],{"type":137,"value":1353},"(",{"type":131,"tag":164,"props":1355,"children":1356},{"style":217},[1357],{"type":137,"value":909},{"type":131,"tag":164,"props":1359,"children":1361},{"class":166,"line":1360},35,[1362,1367,1372],{"type":131,"tag":164,"props":1363,"children":1364},{"style":217},[1365],{"type":137,"value":1366},"        ...",{"type":131,"tag":164,"props":1368,"children":1369},{"style":223},[1370],{"type":137,"value":1371},"credentials",{"type":131,"tag":164,"props":1373,"children":1374},{"style":217},[1375],{"type":137,"value":408},{"type":131,"tag":164,"props":1377,"children":1378},{"class":166,"line":27},[1379,1384,1388,1392,1397,1401,1405,1410,1414,1418,1422],{"type":131,"tag":164,"props":1380,"children":1381},{"style":805},[1382],{"type":137,"value":1383},"        source",{"type":131,"tag":164,"props":1385,"children":1386},{"style":217},[1387],{"type":137,"value":936},{"type":131,"tag":164,"props":1389,"children":1390},{"style":217},[1391],{"type":137,"value":220},{"type":131,"tag":164,"props":1393,"children":1394},{"style":805},[1395],{"type":137,"value":1396}," type",{"type":131,"tag":164,"props":1398,"children":1399},{"style":217},[1400],{"type":137,"value":936},{"type":131,"tag":164,"props":1402,"children":1403},{"style":217},[1404],{"type":137,"value":241},{"type":131,"tag":164,"props":1406,"children":1407},{"style":177},[1408],{"type":137,"value":1409},"snapshot",{"type":131,"tag":164,"props":1411,"children":1412},{"style":217},[1413],{"type":137,"value":250},{"type":131,"tag":164,"props":1415,"children":1416},{"style":217},[1417],{"type":137,"value":322},{"type":131,"tag":164,"props":1419,"children":1420},{"style":223},[1421],{"type":137,"value":1232},{"type":131,"tag":164,"props":1423,"children":1424},{"style":217},[1425],{"type":137,"value":1426}," },\n",{"type":131,"tag":164,"props":1428,"children":1430},{"class":166,"line":1429},37,[1431,1436,1440,1446],{"type":131,"tag":164,"props":1432,"children":1433},{"style":805},[1434],{"type":137,"value":1435},"        timeout",{"type":131,"tag":164,"props":1437,"children":1438},{"style":217},[1439],{"type":137,"value":936},{"type":131,"tag":164,"props":1441,"children":1443},{"style":1442},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[1444],{"type":137,"value":1445}," 120_000",{"type":131,"tag":164,"props":1447,"children":1448},{"style":217},[1449],{"type":137,"value":408},{"type":131,"tag":164,"props":1451,"children":1453},{"class":166,"line":1452},38,[1454,1459],{"type":131,"tag":164,"props":1455,"children":1456},{"style":217},[1457],{"type":137,"value":1458},"      }",{"type":131,"tag":164,"props":1460,"children":1461},{"style":805},[1462],{"type":137,"value":1463},")\n",{"type":131,"tag":164,"props":1465,"children":1467},{"class":166,"line":1466},39,[1468,1473,1477,1481,1485,1489,1493,1498,1503,1507,1511,1516,1520,1524,1529,1533,1537,1542,1546,1550,1554,1559],{"type":131,"tag":164,"props":1469,"children":1470},{"style":217},[1471],{"type":137,"value":1472},"    :",{"type":131,"tag":164,"props":1474,"children":1475},{"style":211},[1476],{"type":137,"value":1335},{"type":131,"tag":164,"props":1478,"children":1479},{"style":223},[1480],{"type":137,"value":226},{"type":131,"tag":164,"props":1482,"children":1483},{"style":217},[1484],{"type":137,"value":822},{"type":131,"tag":164,"props":1486,"children":1487},{"style":780},[1488],{"type":137,"value":1348},{"type":131,"tag":164,"props":1490,"children":1491},{"style":805},[1492],{"type":137,"value":1353},{"type":131,"tag":164,"props":1494,"children":1495},{"style":217},[1496],{"type":137,"value":1497},"{",{"type":131,"tag":164,"props":1499,"children":1500},{"style":217},[1501],{"type":137,"value":1502}," ...",{"type":131,"tag":164,"props":1504,"children":1505},{"style":223},[1506],{"type":137,"value":1371},{"type":131,"tag":164,"props":1508,"children":1509},{"style":217},[1510],{"type":137,"value":322},{"type":131,"tag":164,"props":1512,"children":1513},{"style":805},[1514],{"type":137,"value":1515}," runtime",{"type":131,"tag":164,"props":1517,"children":1518},{"style":217},[1519],{"type":137,"value":936},{"type":131,"tag":164,"props":1521,"children":1522},{"style":217},[1523],{"type":137,"value":241},{"type":131,"tag":164,"props":1525,"children":1526},{"style":177},[1527],{"type":137,"value":1528},"node24",{"type":131,"tag":164,"props":1530,"children":1531},{"style":217},[1532],{"type":137,"value":250},{"type":131,"tag":164,"props":1534,"children":1535},{"style":217},[1536],{"type":137,"value":322},{"type":131,"tag":164,"props":1538,"children":1539},{"style":805},[1540],{"type":137,"value":1541}," timeout",{"type":131,"tag":164,"props":1543,"children":1544},{"style":217},[1545],{"type":137,"value":936},{"type":131,"tag":164,"props":1547,"children":1548},{"style":1442},[1549],{"type":137,"value":1445},{"type":131,"tag":164,"props":1551,"children":1552},{"style":217},[1553],{"type":137,"value":231},{"type":131,"tag":164,"props":1555,"children":1556},{"style":805},[1557],{"type":137,"value":1558},")",{"type":131,"tag":164,"props":1560,"children":1561},{"style":217},[1562],{"type":137,"value":255},{"type":131,"tag":164,"props":1564,"children":1566},{"class":166,"line":1565},40,[1567],{"type":131,"tag":164,"props":1568,"children":1569},{"emptyLinePlaceholder":262},[1570],{"type":137,"value":265},{"type":131,"tag":164,"props":1572,"children":1574},{"class":166,"line":1573},41,[1575,1579,1583,1588,1593,1598],{"type":131,"tag":164,"props":1576,"children":1577},{"style":211},[1578],{"type":137,"value":802},{"type":131,"tag":164,"props":1580,"children":1581},{"style":805},[1582],{"type":137,"value":1137},{"type":131,"tag":164,"props":1584,"children":1585},{"style":217},[1586],{"type":137,"value":1587},"!",{"type":131,"tag":164,"props":1589,"children":1590},{"style":223},[1591],{"type":137,"value":1592},"snapshotId",{"type":131,"tag":164,"props":1594,"children":1595},{"style":805},[1596],{"type":137,"value":1597},") ",{"type":131,"tag":164,"props":1599,"children":1600},{"style":217},[1601],{"type":137,"value":909},{"type":131,"tag":164,"props":1603,"children":1605},{"class":166,"line":1604},42,[1606,1611,1615,1619,1624,1628,1632,1637,1641,1645],{"type":131,"tag":164,"props":1607,"children":1608},{"style":211},[1609],{"type":137,"value":1610},"    await",{"type":131,"tag":164,"props":1612,"children":1613},{"style":223},[1614],{"type":137,"value":1312},{"type":131,"tag":164,"props":1616,"children":1617},{"style":217},[1618],{"type":137,"value":822},{"type":131,"tag":164,"props":1620,"children":1621},{"style":780},[1622],{"type":137,"value":1623},"runCommand",{"type":131,"tag":164,"props":1625,"children":1626},{"style":805},[1627],{"type":137,"value":1353},{"type":131,"tag":164,"props":1629,"children":1630},{"style":217},[1631],{"type":137,"value":250},{"type":131,"tag":164,"props":1633,"children":1634},{"style":177},[1635],{"type":137,"value":1636},"sh",{"type":131,"tag":164,"props":1638,"children":1639},{"style":217},[1640],{"type":137,"value":250},{"type":131,"tag":164,"props":1642,"children":1643},{"style":217},[1644],{"type":137,"value":322},{"type":131,"tag":164,"props":1646,"children":1647},{"style":805},[1648],{"type":137,"value":299},{"type":131,"tag":164,"props":1650,"children":1652},{"class":166,"line":1651},43,[1653,1658,1663,1667],{"type":131,"tag":164,"props":1654,"children":1655},{"style":217},[1656],{"type":137,"value":1657},"      \"",{"type":131,"tag":164,"props":1659,"children":1660},{"style":177},[1661],{"type":137,"value":1662},"-c",{"type":131,"tag":164,"props":1664,"children":1665},{"style":217},[1666],{"type":137,"value":250},{"type":131,"tag":164,"props":1668,"children":1669},{"style":217},[1670],{"type":137,"value":408},{"type":131,"tag":164,"props":1672,"children":1674},{"class":166,"line":1673},44,[1675,1680,1685,1690,1695,1699,1704,1708,1712,1716,1720,1725,1730,1735],{"type":131,"tag":164,"props":1676,"children":1677},{"style":217},[1678],{"type":137,"value":1679},"      `",{"type":131,"tag":164,"props":1681,"children":1682},{"style":177},[1683],{"type":137,"value":1684},"sudo dnf clean all 2>&1 && sudo dnf install -y --skip-broken ",{"type":131,"tag":164,"props":1686,"children":1687},{"style":217},[1688],{"type":137,"value":1689},"${",{"type":131,"tag":164,"props":1691,"children":1692},{"style":223},[1693],{"type":137,"value":1694},"CHROMIUM_SYSTEM_DEPS",{"type":131,"tag":164,"props":1696,"children":1697},{"style":217},[1698],{"type":137,"value":822},{"type":131,"tag":164,"props":1700,"children":1701},{"style":780},[1702],{"type":137,"value":1703},"join",{"type":131,"tag":164,"props":1705,"children":1706},{"style":223},[1707],{"type":137,"value":1353},{"type":131,"tag":164,"props":1709,"children":1710},{"style":217},[1711],{"type":137,"value":250},{"type":131,"tag":164,"props":1713,"children":1714},{"style":217},[1715],{"type":137,"value":241},{"type":131,"tag":164,"props":1717,"children":1718},{"style":223},[1719],{"type":137,"value":1558},{"type":131,"tag":164,"props":1721,"children":1722},{"style":217},[1723],{"type":137,"value":1724},"}",{"type":131,"tag":164,"props":1726,"children":1727},{"style":177},[1728],{"type":137,"value":1729}," 2>&1 && sudo ldconfig 2>&1",{"type":131,"tag":164,"props":1731,"children":1732},{"style":217},[1733],{"type":137,"value":1734},"`",{"type":131,"tag":164,"props":1736,"children":1737},{"style":217},[1738],{"type":137,"value":408},{"type":131,"tag":164,"props":1740,"children":1742},{"class":166,"line":1741},45,[1743,1748],{"type":131,"tag":164,"props":1744,"children":1745},{"style":805},[1746],{"type":137,"value":1747},"    ])",{"type":131,"tag":164,"props":1749,"children":1750},{"style":217},[1751],{"type":137,"value":255},{"type":131,"tag":164,"props":1753,"children":1755},{"class":166,"line":1754},46,[1756,1760,1764,1768,1772,1776,1780,1785,1789,1793,1798,1802,1807,1811,1815,1819,1824,1828,1832,1836,1841,1845,1850],{"type":131,"tag":164,"props":1757,"children":1758},{"style":211},[1759],{"type":137,"value":1610},{"type":131,"tag":164,"props":1761,"children":1762},{"style":223},[1763],{"type":137,"value":1312},{"type":131,"tag":164,"props":1765,"children":1766},{"style":217},[1767],{"type":137,"value":822},{"type":131,"tag":164,"props":1769,"children":1770},{"style":780},[1771],{"type":137,"value":1623},{"type":131,"tag":164,"props":1773,"children":1774},{"style":805},[1775],{"type":137,"value":1353},{"type":131,"tag":164,"props":1777,"children":1778},{"style":217},[1779],{"type":137,"value":250},{"type":131,"tag":164,"props":1781,"children":1782},{"style":177},[1783],{"type":137,"value":1784},"npm",{"type":131,"tag":164,"props":1786,"children":1787},{"style":217},[1788],{"type":137,"value":250},{"type":131,"tag":164,"props":1790,"children":1791},{"style":217},[1792],{"type":137,"value":322},{"type":131,"tag":164,"props":1794,"children":1795},{"style":805},[1796],{"type":137,"value":1797}," [",{"type":131,"tag":164,"props":1799,"children":1800},{"style":217},[1801],{"type":137,"value":250},{"type":131,"tag":164,"props":1803,"children":1804},{"style":177},[1805],{"type":137,"value":1806},"install",{"type":131,"tag":164,"props":1808,"children":1809},{"style":217},[1810],{"type":137,"value":250},{"type":131,"tag":164,"props":1812,"children":1813},{"style":217},[1814],{"type":137,"value":322},{"type":131,"tag":164,"props":1816,"children":1817},{"style":217},[1818],{"type":137,"value":241},{"type":131,"tag":164,"props":1820,"children":1821},{"style":177},[1822],{"type":137,"value":1823},"-g",{"type":131,"tag":164,"props":1825,"children":1826},{"style":217},[1827],{"type":137,"value":250},{"type":131,"tag":164,"props":1829,"children":1830},{"style":217},[1831],{"type":137,"value":322},{"type":131,"tag":164,"props":1833,"children":1834},{"style":217},[1835],{"type":137,"value":241},{"type":131,"tag":164,"props":1837,"children":1838},{"style":177},[1839],{"type":137,"value":1840},"agent-browser",{"type":131,"tag":164,"props":1842,"children":1843},{"style":217},[1844],{"type":137,"value":250},{"type":131,"tag":164,"props":1846,"children":1847},{"style":805},[1848],{"type":137,"value":1849},"])",{"type":131,"tag":164,"props":1851,"children":1852},{"style":217},[1853],{"type":137,"value":255},{"type":131,"tag":164,"props":1855,"children":1857},{"class":166,"line":1856},47,[1858,1862,1866,1870,1874,1878,1882,1887,1891,1895,1899,1903,1907,1911,1915,1919,1923,1927,1931],{"type":131,"tag":164,"props":1859,"children":1860},{"style":211},[1861],{"type":137,"value":1610},{"type":131,"tag":164,"props":1863,"children":1864},{"style":223},[1865],{"type":137,"value":1312},{"type":131,"tag":164,"props":1867,"children":1868},{"style":217},[1869],{"type":137,"value":822},{"type":131,"tag":164,"props":1871,"children":1872},{"style":780},[1873],{"type":137,"value":1623},{"type":131,"tag":164,"props":1875,"children":1876},{"style":805},[1877],{"type":137,"value":1353},{"type":131,"tag":164,"props":1879,"children":1880},{"style":217},[1881],{"type":137,"value":250},{"type":131,"tag":164,"props":1883,"children":1884},{"style":177},[1885],{"type":137,"value":1886},"npx",{"type":131,"tag":164,"props":1888,"children":1889},{"style":217},[1890],{"type":137,"value":250},{"type":131,"tag":164,"props":1892,"children":1893},{"style":217},[1894],{"type":137,"value":322},{"type":131,"tag":164,"props":1896,"children":1897},{"style":805},[1898],{"type":137,"value":1797},{"type":131,"tag":164,"props":1900,"children":1901},{"style":217},[1902],{"type":137,"value":250},{"type":131,"tag":164,"props":1904,"children":1905},{"style":177},[1906],{"type":137,"value":1840},{"type":131,"tag":164,"props":1908,"children":1909},{"style":217},[1910],{"type":137,"value":250},{"type":131,"tag":164,"props":1912,"children":1913},{"style":217},[1914],{"type":137,"value":322},{"type":131,"tag":164,"props":1916,"children":1917},{"style":217},[1918],{"type":137,"value":241},{"type":131,"tag":164,"props":1920,"children":1921},{"style":177},[1922],{"type":137,"value":1806},{"type":131,"tag":164,"props":1924,"children":1925},{"style":217},[1926],{"type":137,"value":250},{"type":131,"tag":164,"props":1928,"children":1929},{"style":805},[1930],{"type":137,"value":1849},{"type":131,"tag":164,"props":1932,"children":1933},{"style":217},[1934],{"type":137,"value":255},{"type":131,"tag":164,"props":1936,"children":1938},{"class":166,"line":1937},48,[1939],{"type":131,"tag":164,"props":1940,"children":1941},{"style":217},[1942],{"type":137,"value":1054},{"type":131,"tag":164,"props":1944,"children":1946},{"class":166,"line":1945},49,[1947],{"type":131,"tag":164,"props":1948,"children":1949},{"emptyLinePlaceholder":262},[1950],{"type":137,"value":265},{"type":131,"tag":164,"props":1952,"children":1954},{"class":166,"line":1953},50,[1955,1960],{"type":131,"tag":164,"props":1956,"children":1957},{"style":211},[1958],{"type":137,"value":1959},"  try",{"type":131,"tag":164,"props":1961,"children":1962},{"style":217},[1963],{"type":137,"value":793},{"type":131,"tag":164,"props":1965,"children":1967},{"class":166,"line":1966},51,[1968,1972,1976,1981,1985,1989,1993],{"type":131,"tag":164,"props":1969,"children":1970},{"style":211},[1971],{"type":137,"value":918},{"type":131,"tag":164,"props":1973,"children":1974},{"style":211},[1975],{"type":137,"value":1335},{"type":131,"tag":164,"props":1977,"children":1978},{"style":780},[1979],{"type":137,"value":1980}," fn",{"type":131,"tag":164,"props":1982,"children":1983},{"style":805},[1984],{"type":137,"value":1353},{"type":131,"tag":164,"props":1986,"children":1987},{"style":223},[1988],{"type":137,"value":51},{"type":131,"tag":164,"props":1990,"children":1991},{"style":805},[1992],{"type":137,"value":1558},{"type":131,"tag":164,"props":1994,"children":1995},{"style":217},[1996],{"type":137,"value":255},{"type":131,"tag":164,"props":1998,"children":2000},{"class":166,"line":1999},52,[2001,2006,2011],{"type":131,"tag":164,"props":2002,"children":2003},{"style":217},[2004],{"type":137,"value":2005},"  }",{"type":131,"tag":164,"props":2007,"children":2008},{"style":211},[2009],{"type":137,"value":2010}," finally",{"type":131,"tag":164,"props":2012,"children":2013},{"style":217},[2014],{"type":137,"value":793},{"type":131,"tag":164,"props":2016,"children":2018},{"class":166,"line":2017},53,[2019,2023,2027,2031,2036,2040],{"type":131,"tag":164,"props":2020,"children":2021},{"style":211},[2022],{"type":137,"value":1610},{"type":131,"tag":164,"props":2024,"children":2025},{"style":223},[2026],{"type":137,"value":1312},{"type":131,"tag":164,"props":2028,"children":2029},{"style":217},[2030],{"type":137,"value":822},{"type":131,"tag":164,"props":2032,"children":2033},{"style":780},[2034],{"type":137,"value":2035},"stop",{"type":131,"tag":164,"props":2037,"children":2038},{"style":805},[2039],{"type":137,"value":788},{"type":131,"tag":164,"props":2041,"children":2042},{"style":217},[2043],{"type":137,"value":255},{"type":131,"tag":164,"props":2045,"children":2047},{"class":166,"line":2046},54,[2048],{"type":131,"tag":164,"props":2049,"children":2050},{"style":217},[2051],{"type":137,"value":1054},{"type":131,"tag":164,"props":2053,"children":2055},{"class":166,"line":2054},55,[2056],{"type":131,"tag":164,"props":2057,"children":2058},{"style":217},[2059],{"type":137,"value":1077},{"type":131,"tag":146,"props":2061,"children":2063},{"id":2062},"screenshot",[2064],{"type":137,"value":2065},"Screenshot",{"type":131,"tag":140,"props":2067,"children":2068},{},[2069,2071,2077],{"type":137,"value":2070},"The ",{"type":131,"tag":58,"props":2072,"children":2074},{"className":2073},[],[2075],{"type":137,"value":2076},"screenshot --json",{"type":137,"value":2078}," command saves to a file and returns the path. Read the file back as base64:",{"type":131,"tag":153,"props":2080,"children":2082},{"className":199,"code":2081,"language":201,"meta":158,"style":158},"export async function screenshotUrl(url: string) {\n  return withBrowser(async (sandbox) => {\n    await sandbox.runCommand(\"agent-browser\", [\"open\", url]);\n\n    const titleResult = await sandbox.runCommand(\"agent-browser\", [\n      \"get\", \"title\", \"--json\",\n    ]);\n    const title = JSON.parse(await titleResult.stdout())?.data?.title || url;\n\n    const ssResult = await sandbox.runCommand(\"agent-browser\", [\n      \"screenshot\", \"--json\",\n    ]);\n    const ssPath = JSON.parse(await ssResult.stdout())?.data?.path;\n    const b64Result = await sandbox.runCommand(\"base64\", [\"-w\", \"0\", ssPath]);\n    const screenshot = (await b64Result.stdout()).trim();\n\n    await sandbox.runCommand(\"agent-browser\", [\"close\"]);\n\n    return { title, screenshot };\n  });\n}\n",[2083],{"type":131,"tag":58,"props":2084,"children":2085},{"__ignoreMap":158},[2086,2134,2173,2246,2253,2310,2364,2375,2463,2470,2526,2561,2572,2645,2748,2805,2812,2876,2883,2911,2926],{"type":131,"tag":164,"props":2087,"children":2088},{"class":166,"line":167},[2089,2094,2099,2103,2108,2112,2117,2121,2126,2130],{"type":131,"tag":164,"props":2090,"children":2091},{"style":211},[2092],{"type":137,"value":2093},"export",{"type":131,"tag":164,"props":2095,"children":2096},{"style":281},[2097],{"type":137,"value":2098}," async",{"type":131,"tag":164,"props":2100,"children":2101},{"style":281},[2102],{"type":137,"value":1099},{"type":131,"tag":164,"props":2104,"children":2105},{"style":780},[2106],{"type":137,"value":2107}," screenshotUrl",{"type":131,"tag":164,"props":2109,"children":2110},{"style":217},[2111],{"type":137,"value":1353},{"type":131,"tag":164,"props":2113,"children":2114},{"style":1140},[2115],{"type":137,"value":2116},"url",{"type":131,"tag":164,"props":2118,"children":2119},{"style":217},[2120],{"type":137,"value":936},{"type":131,"tag":164,"props":2122,"children":2123},{"style":171},[2124],{"type":137,"value":2125}," string",{"type":131,"tag":164,"props":2127,"children":2128},{"style":217},[2129],{"type":137,"value":1558},{"type":131,"tag":164,"props":2131,"children":2132},{"style":217},[2133],{"type":137,"value":793},{"type":131,"tag":164,"props":2135,"children":2136},{"class":166,"line":258},[2137,2141,2145,2149,2153,2157,2161,2165,2169],{"type":131,"tag":164,"props":2138,"children":2139},{"style":211},[2140],{"type":137,"value":1063},{"type":131,"tag":164,"props":2142,"children":2143},{"style":780},[2144],{"type":137,"value":1104},{"type":131,"tag":164,"props":2146,"children":2147},{"style":805},[2148],{"type":137,"value":1353},{"type":131,"tag":164,"props":2150,"children":2151},{"style":281},[2152],{"type":137,"value":1094},{"type":131,"tag":164,"props":2154,"children":2155},{"style":217},[2156],{"type":137,"value":1137},{"type":131,"tag":164,"props":2158,"children":2159},{"style":1140},[2160],{"type":137,"value":51},{"type":131,"tag":164,"props":2162,"children":2163},{"style":217},[2164],{"type":137,"value":1558},{"type":131,"tag":164,"props":2166,"children":2167},{"style":281},[2168],{"type":137,"value":1170},{"type":131,"tag":164,"props":2170,"children":2171},{"style":217},[2172],{"type":137,"value":793},{"type":131,"tag":164,"props":2174,"children":2175},{"class":166,"line":268},[2176,2180,2184,2188,2192,2196,2200,2204,2208,2212,2216,2220,2225,2229,2233,2238,2242],{"type":131,"tag":164,"props":2177,"children":2178},{"style":211},[2179],{"type":137,"value":1610},{"type":131,"tag":164,"props":2181,"children":2182},{"style":223},[2183],{"type":137,"value":1312},{"type":131,"tag":164,"props":2185,"children":2186},{"style":217},[2187],{"type":137,"value":822},{"type":131,"tag":164,"props":2189,"children":2190},{"style":780},[2191],{"type":137,"value":1623},{"type":131,"tag":164,"props":2193,"children":2194},{"style":805},[2195],{"type":137,"value":1353},{"type":131,"tag":164,"props":2197,"children":2198},{"style":217},[2199],{"type":137,"value":250},{"type":131,"tag":164,"props":2201,"children":2202},{"style":177},[2203],{"type":137,"value":1840},{"type":131,"tag":164,"props":2205,"children":2206},{"style":217},[2207],{"type":137,"value":250},{"type":131,"tag":164,"props":2209,"children":2210},{"style":217},[2211],{"type":137,"value":322},{"type":131,"tag":164,"props":2213,"children":2214},{"style":805},[2215],{"type":137,"value":1797},{"type":131,"tag":164,"props":2217,"children":2218},{"style":217},[2219],{"type":137,"value":250},{"type":131,"tag":164,"props":2221,"children":2222},{"style":177},[2223],{"type":137,"value":2224},"open",{"type":131,"tag":164,"props":2226,"children":2227},{"style":217},[2228],{"type":137,"value":250},{"type":131,"tag":164,"props":2230,"children":2231},{"style":217},[2232],{"type":137,"value":322},{"type":131,"tag":164,"props":2234,"children":2235},{"style":223},[2236],{"type":137,"value":2237}," url",{"type":131,"tag":164,"props":2239,"children":2240},{"style":805},[2241],{"type":137,"value":1849},{"type":131,"tag":164,"props":2243,"children":2244},{"style":217},[2245],{"type":137,"value":255},{"type":131,"tag":164,"props":2247,"children":2248},{"class":166,"line":37},[2249],{"type":131,"tag":164,"props":2250,"children":2251},{"emptyLinePlaceholder":262},[2252],{"type":137,"value":265},{"type":131,"tag":164,"props":2254,"children":2255},{"class":166,"line":302},[2256,2261,2266,2270,2274,2278,2282,2286,2290,2294,2298,2302,2306],{"type":131,"tag":164,"props":2257,"children":2258},{"style":281},[2259],{"type":137,"value":2260},"    const",{"type":131,"tag":164,"props":2262,"children":2263},{"style":223},[2264],{"type":137,"value":2265}," titleResult",{"type":131,"tag":164,"props":2267,"children":2268},{"style":217},[2269],{"type":137,"value":1237},{"type":131,"tag":164,"props":2271,"children":2272},{"style":211},[2273],{"type":137,"value":1335},{"type":131,"tag":164,"props":2275,"children":2276},{"style":223},[2277],{"type":137,"value":1312},{"type":131,"tag":164,"props":2279,"children":2280},{"style":217},[2281],{"type":137,"value":822},{"type":131,"tag":164,"props":2283,"children":2284},{"style":780},[2285],{"type":137,"value":1623},{"type":131,"tag":164,"props":2287,"children":2288},{"style":805},[2289],{"type":137,"value":1353},{"type":131,"tag":164,"props":2291,"children":2292},{"style":217},[2293],{"type":137,"value":250},{"type":131,"tag":164,"props":2295,"children":2296},{"style":177},[2297],{"type":137,"value":1840},{"type":131,"tag":164,"props":2299,"children":2300},{"style":217},[2301],{"type":137,"value":250},{"type":131,"tag":164,"props":2303,"children":2304},{"style":217},[2305],{"type":137,"value":322},{"type":131,"tag":164,"props":2307,"children":2308},{"style":805},[2309],{"type":137,"value":299},{"type":131,"tag":164,"props":2311,"children":2312},{"class":166,"line":411},[2313,2317,2322,2326,2330,2334,2339,2343,2347,2351,2356,2360],{"type":131,"tag":164,"props":2314,"children":2315},{"style":217},[2316],{"type":137,"value":1657},{"type":131,"tag":164,"props":2318,"children":2319},{"style":177},[2320],{"type":137,"value":2321},"get",{"type":131,"tag":164,"props":2323,"children":2324},{"style":217},[2325],{"type":137,"value":250},{"type":131,"tag":164,"props":2327,"children":2328},{"style":217},[2329],{"type":137,"value":322},{"type":131,"tag":164,"props":2331,"children":2332},{"style":217},[2333],{"type":137,"value":241},{"type":131,"tag":164,"props":2335,"children":2336},{"style":177},[2337],{"type":137,"value":2338},"title",{"type":131,"tag":164,"props":2340,"children":2341},{"style":217},[2342],{"type":137,"value":250},{"type":131,"tag":164,"props":2344,"children":2345},{"style":217},[2346],{"type":137,"value":322},{"type":131,"tag":164,"props":2348,"children":2349},{"style":217},[2350],{"type":137,"value":241},{"type":131,"tag":164,"props":2352,"children":2353},{"style":177},[2354],{"type":137,"value":2355},"--json",{"type":131,"tag":164,"props":2357,"children":2358},{"style":217},[2359],{"type":137,"value":250},{"type":131,"tag":164,"props":2361,"children":2362},{"style":217},[2363],{"type":137,"value":408},{"type":131,"tag":164,"props":2365,"children":2366},{"class":166,"line":500},[2367,2371],{"type":131,"tag":164,"props":2368,"children":2369},{"style":805},[2370],{"type":137,"value":1747},{"type":131,"tag":164,"props":2372,"children":2373},{"style":217},[2374],{"type":137,"value":255},{"type":131,"tag":164,"props":2376,"children":2377},{"class":166,"line":606},[2378,2382,2387,2391,2396,2400,2405,2409,2414,2418,2422,2427,2432,2437,2442,2446,2450,2455,2459],{"type":131,"tag":164,"props":2379,"children":2380},{"style":281},[2381],{"type":137,"value":2260},{"type":131,"tag":164,"props":2383,"children":2384},{"style":223},[2385],{"type":137,"value":2386}," title",{"type":131,"tag":164,"props":2388,"children":2389},{"style":217},[2390],{"type":137,"value":1237},{"type":131,"tag":164,"props":2392,"children":2393},{"style":223},[2394],{"type":137,"value":2395}," JSON",{"type":131,"tag":164,"props":2397,"children":2398},{"style":217},[2399],{"type":137,"value":822},{"type":131,"tag":164,"props":2401,"children":2402},{"style":780},[2403],{"type":137,"value":2404},"parse",{"type":131,"tag":164,"props":2406,"children":2407},{"style":805},[2408],{"type":137,"value":1353},{"type":131,"tag":164,"props":2410,"children":2411},{"style":211},[2412],{"type":137,"value":2413},"await",{"type":131,"tag":164,"props":2415,"children":2416},{"style":223},[2417],{"type":137,"value":2265},{"type":131,"tag":164,"props":2419,"children":2420},{"style":217},[2421],{"type":137,"value":822},{"type":131,"tag":164,"props":2423,"children":2424},{"style":780},[2425],{"type":137,"value":2426},"stdout",{"type":131,"tag":164,"props":2428,"children":2429},{"style":805},[2430],{"type":137,"value":2431},"())",{"type":131,"tag":164,"props":2433,"children":2434},{"style":217},[2435],{"type":137,"value":2436},"?.",{"type":131,"tag":164,"props":2438,"children":2439},{"style":223},[2440],{"type":137,"value":2441},"data",{"type":131,"tag":164,"props":2443,"children":2444},{"style":217},[2445],{"type":137,"value":2436},{"type":131,"tag":164,"props":2447,"children":2448},{"style":223},[2449],{"type":137,"value":2338},{"type":131,"tag":164,"props":2451,"children":2452},{"style":217},[2453],{"type":137,"value":2454}," ||",{"type":131,"tag":164,"props":2456,"children":2457},{"style":223},[2458],{"type":137,"value":2237},{"type":131,"tag":164,"props":2460,"children":2461},{"style":217},[2462],{"type":137,"value":255},{"type":131,"tag":164,"props":2464,"children":2465},{"class":166,"line":712},[2466],{"type":131,"tag":164,"props":2467,"children":2468},{"emptyLinePlaceholder":262},[2469],{"type":137,"value":265},{"type":131,"tag":164,"props":2471,"children":2472},{"class":166,"line":750},[2473,2477,2482,2486,2490,2494,2498,2502,2506,2510,2514,2518,2522],{"type":131,"tag":164,"props":2474,"children":2475},{"style":281},[2476],{"type":137,"value":2260},{"type":131,"tag":164,"props":2478,"children":2479},{"style":223},[2480],{"type":137,"value":2481}," ssResult",{"type":131,"tag":164,"props":2483,"children":2484},{"style":217},[2485],{"type":137,"value":1237},{"type":131,"tag":164,"props":2487,"children":2488},{"style":211},[2489],{"type":137,"value":1335},{"type":131,"tag":164,"props":2491,"children":2492},{"style":223},[2493],{"type":137,"value":1312},{"type":131,"tag":164,"props":2495,"children":2496},{"style":217},[2497],{"type":137,"value":822},{"type":131,"tag":164,"props":2499,"children":2500},{"style":780},[2501],{"type":137,"value":1623},{"type":131,"tag":164,"props":2503,"children":2504},{"style":805},[2505],{"type":137,"value":1353},{"type":131,"tag":164,"props":2507,"children":2508},{"style":217},[2509],{"type":137,"value":250},{"type":131,"tag":164,"props":2511,"children":2512},{"style":177},[2513],{"type":137,"value":1840},{"type":131,"tag":164,"props":2515,"children":2516},{"style":217},[2517],{"type":137,"value":250},{"type":131,"tag":164,"props":2519,"children":2520},{"style":217},[2521],{"type":137,"value":322},{"type":131,"tag":164,"props":2523,"children":2524},{"style":805},[2525],{"type":137,"value":299},{"type":131,"tag":164,"props":2527,"children":2528},{"class":166,"line":763},[2529,2533,2537,2541,2545,2549,2553,2557],{"type":131,"tag":164,"props":2530,"children":2531},{"style":217},[2532],{"type":137,"value":1657},{"type":131,"tag":164,"props":2534,"children":2535},{"style":177},[2536],{"type":137,"value":2062},{"type":131,"tag":164,"props":2538,"children":2539},{"style":217},[2540],{"type":137,"value":250},{"type":131,"tag":164,"props":2542,"children":2543},{"style":217},[2544],{"type":137,"value":322},{"type":131,"tag":164,"props":2546,"children":2547},{"style":217},[2548],{"type":137,"value":241},{"type":131,"tag":164,"props":2550,"children":2551},{"style":177},[2552],{"type":137,"value":2355},{"type":131,"tag":164,"props":2554,"children":2555},{"style":217},[2556],{"type":137,"value":250},{"type":131,"tag":164,"props":2558,"children":2559},{"style":217},[2560],{"type":137,"value":408},{"type":131,"tag":164,"props":2562,"children":2563},{"class":166,"line":771},[2564,2568],{"type":131,"tag":164,"props":2565,"children":2566},{"style":805},[2567],{"type":137,"value":1747},{"type":131,"tag":164,"props":2569,"children":2570},{"style":217},[2571],{"type":137,"value":255},{"type":131,"tag":164,"props":2573,"children":2574},{"class":166,"line":796},[2575,2579,2584,2588,2592,2596,2600,2604,2608,2612,2616,2620,2624,2628,2632,2636,2641],{"type":131,"tag":164,"props":2576,"children":2577},{"style":281},[2578],{"type":137,"value":2260},{"type":131,"tag":164,"props":2580,"children":2581},{"style":223},[2582],{"type":137,"value":2583}," ssPath",{"type":131,"tag":164,"props":2585,"children":2586},{"style":217},[2587],{"type":137,"value":1237},{"type":131,"tag":164,"props":2589,"children":2590},{"style":223},[2591],{"type":137,"value":2395},{"type":131,"tag":164,"props":2593,"children":2594},{"style":217},[2595],{"type":137,"value":822},{"type":131,"tag":164,"props":2597,"children":2598},{"style":780},[2599],{"type":137,"value":2404},{"type":131,"tag":164,"props":2601,"children":2602},{"style":805},[2603],{"type":137,"value":1353},{"type":131,"tag":164,"props":2605,"children":2606},{"style":211},[2607],{"type":137,"value":2413},{"type":131,"tag":164,"props":2609,"children":2610},{"style":223},[2611],{"type":137,"value":2481},{"type":131,"tag":164,"props":2613,"children":2614},{"style":217},[2615],{"type":137,"value":822},{"type":131,"tag":164,"props":2617,"children":2618},{"style":780},[2619],{"type":137,"value":2426},{"type":131,"tag":164,"props":2621,"children":2622},{"style":805},[2623],{"type":137,"value":2431},{"type":131,"tag":164,"props":2625,"children":2626},{"style":217},[2627],{"type":137,"value":2436},{"type":131,"tag":164,"props":2629,"children":2630},{"style":223},[2631],{"type":137,"value":2441},{"type":131,"tag":164,"props":2633,"children":2634},{"style":217},[2635],{"type":137,"value":2436},{"type":131,"tag":164,"props":2637,"children":2638},{"style":223},[2639],{"type":137,"value":2640},"path",{"type":131,"tag":164,"props":2642,"children":2643},{"style":217},[2644],{"type":137,"value":255},{"type":131,"tag":164,"props":2646,"children":2647},{"class":166,"line":811},[2648,2652,2657,2661,2665,2669,2673,2677,2681,2685,2690,2694,2698,2702,2706,2711,2715,2719,2723,2728,2732,2736,2740,2744],{"type":131,"tag":164,"props":2649,"children":2650},{"style":281},[2651],{"type":137,"value":2260},{"type":131,"tag":164,"props":2653,"children":2654},{"style":223},[2655],{"type":137,"value":2656}," b64Result",{"type":131,"tag":164,"props":2658,"children":2659},{"style":217},[2660],{"type":137,"value":1237},{"type":131,"tag":164,"props":2662,"children":2663},{"style":211},[2664],{"type":137,"value":1335},{"type":131,"tag":164,"props":2666,"children":2667},{"style":223},[2668],{"type":137,"value":1312},{"type":131,"tag":164,"props":2670,"children":2671},{"style":217},[2672],{"type":137,"value":822},{"type":131,"tag":164,"props":2674,"children":2675},{"style":780},[2676],{"type":137,"value":1623},{"type":131,"tag":164,"props":2678,"children":2679},{"style":805},[2680],{"type":137,"value":1353},{"type":131,"tag":164,"props":2682,"children":2683},{"style":217},[2684],{"type":137,"value":250},{"type":131,"tag":164,"props":2686,"children":2687},{"style":177},[2688],{"type":137,"value":2689},"base64",{"type":131,"tag":164,"props":2691,"children":2692},{"style":217},[2693],{"type":137,"value":250},{"type":131,"tag":164,"props":2695,"children":2696},{"style":217},[2697],{"type":137,"value":322},{"type":131,"tag":164,"props":2699,"children":2700},{"style":805},[2701],{"type":137,"value":1797},{"type":131,"tag":164,"props":2703,"children":2704},{"style":217},[2705],{"type":137,"value":250},{"type":131,"tag":164,"props":2707,"children":2708},{"style":177},[2709],{"type":137,"value":2710},"-w",{"type":131,"tag":164,"props":2712,"children":2713},{"style":217},[2714],{"type":137,"value":250},{"type":131,"tag":164,"props":2716,"children":2717},{"style":217},[2718],{"type":137,"value":322},{"type":131,"tag":164,"props":2720,"children":2721},{"style":217},[2722],{"type":137,"value":241},{"type":131,"tag":164,"props":2724,"children":2725},{"style":177},[2726],{"type":137,"value":2727},"0",{"type":131,"tag":164,"props":2729,"children":2730},{"style":217},[2731],{"type":137,"value":250},{"type":131,"tag":164,"props":2733,"children":2734},{"style":217},[2735],{"type":137,"value":322},{"type":131,"tag":164,"props":2737,"children":2738},{"style":223},[2739],{"type":137,"value":2583},{"type":131,"tag":164,"props":2741,"children":2742},{"style":805},[2743],{"type":137,"value":1849},{"type":131,"tag":164,"props":2745,"children":2746},{"style":217},[2747],{"type":137,"value":255},{"type":131,"tag":164,"props":2749,"children":2750},{"class":166,"line":844},[2751,2755,2760,2764,2768,2772,2776,2780,2784,2788,2792,2797,2801],{"type":131,"tag":164,"props":2752,"children":2753},{"style":281},[2754],{"type":137,"value":2260},{"type":131,"tag":164,"props":2756,"children":2757},{"style":223},[2758],{"type":137,"value":2759}," screenshot",{"type":131,"tag":164,"props":2761,"children":2762},{"style":217},[2763],{"type":137,"value":1237},{"type":131,"tag":164,"props":2765,"children":2766},{"style":805},[2767],{"type":137,"value":1137},{"type":131,"tag":164,"props":2769,"children":2770},{"style":211},[2771],{"type":137,"value":2413},{"type":131,"tag":164,"props":2773,"children":2774},{"style":223},[2775],{"type":137,"value":2656},{"type":131,"tag":164,"props":2777,"children":2778},{"style":217},[2779],{"type":137,"value":822},{"type":131,"tag":164,"props":2781,"children":2782},{"style":780},[2783],{"type":137,"value":2426},{"type":131,"tag":164,"props":2785,"children":2786},{"style":805},[2787],{"type":137,"value":2431},{"type":131,"tag":164,"props":2789,"children":2790},{"style":217},[2791],{"type":137,"value":822},{"type":131,"tag":164,"props":2793,"children":2794},{"style":780},[2795],{"type":137,"value":2796},"trim",{"type":131,"tag":164,"props":2798,"children":2799},{"style":805},[2800],{"type":137,"value":788},{"type":131,"tag":164,"props":2802,"children":2803},{"style":217},[2804],{"type":137,"value":255},{"type":131,"tag":164,"props":2806,"children":2807},{"class":166,"line":873},[2808],{"type":131,"tag":164,"props":2809,"children":2810},{"emptyLinePlaceholder":262},[2811],{"type":137,"value":265},{"type":131,"tag":164,"props":2813,"children":2814},{"class":166,"line":898},[2815,2819,2823,2827,2831,2835,2839,2843,2847,2851,2855,2859,2864,2868,2872],{"type":131,"tag":164,"props":2816,"children":2817},{"style":211},[2818],{"type":137,"value":1610},{"type":131,"tag":164,"props":2820,"children":2821},{"style":223},[2822],{"type":137,"value":1312},{"type":131,"tag":164,"props":2824,"children":2825},{"style":217},[2826],{"type":137,"value":822},{"type":131,"tag":164,"props":2828,"children":2829},{"style":780},[2830],{"type":137,"value":1623},{"type":131,"tag":164,"props":2832,"children":2833},{"style":805},[2834],{"type":137,"value":1353},{"type":131,"tag":164,"props":2836,"children":2837},{"style":217},[2838],{"type":137,"value":250},{"type":131,"tag":164,"props":2840,"children":2841},{"style":177},[2842],{"type":137,"value":1840},{"type":131,"tag":164,"props":2844,"children":2845},{"style":217},[2846],{"type":137,"value":250},{"type":131,"tag":164,"props":2848,"children":2849},{"style":217},[2850],{"type":137,"value":322},{"type":131,"tag":164,"props":2852,"children":2853},{"style":805},[2854],{"type":137,"value":1797},{"type":131,"tag":164,"props":2856,"children":2857},{"style":217},[2858],{"type":137,"value":250},{"type":131,"tag":164,"props":2860,"children":2861},{"style":177},[2862],{"type":137,"value":2863},"close",{"type":131,"tag":164,"props":2865,"children":2866},{"style":217},[2867],{"type":137,"value":250},{"type":131,"tag":164,"props":2869,"children":2870},{"style":805},[2871],{"type":137,"value":1849},{"type":131,"tag":164,"props":2873,"children":2874},{"style":217},[2875],{"type":137,"value":255},{"type":131,"tag":164,"props":2877,"children":2878},{"class":166,"line":912},[2879],{"type":131,"tag":164,"props":2880,"children":2881},{"emptyLinePlaceholder":262},[2882],{"type":137,"value":265},{"type":131,"tag":164,"props":2884,"children":2885},{"class":166,"line":925},[2886,2890,2894,2898,2902,2906],{"type":131,"tag":164,"props":2887,"children":2888},{"style":211},[2889],{"type":137,"value":918},{"type":131,"tag":164,"props":2891,"children":2892},{"style":217},[2893],{"type":137,"value":220},{"type":131,"tag":164,"props":2895,"children":2896},{"style":223},[2897],{"type":137,"value":2386},{"type":131,"tag":164,"props":2899,"children":2900},{"style":217},[2901],{"type":137,"value":322},{"type":131,"tag":164,"props":2903,"children":2904},{"style":223},[2905],{"type":137,"value":2759},{"type":131,"tag":164,"props":2907,"children":2908},{"style":217},[2909],{"type":137,"value":2910}," };\n",{"type":131,"tag":164,"props":2912,"children":2913},{"class":166,"line":964},[2914,2918,2922],{"type":131,"tag":164,"props":2915,"children":2916},{"style":217},[2917],{"type":137,"value":2005},{"type":131,"tag":164,"props":2919,"children":2920},{"style":805},[2921],{"type":137,"value":1558},{"type":131,"tag":164,"props":2923,"children":2924},{"style":217},[2925],{"type":137,"value":255},{"type":131,"tag":164,"props":2927,"children":2928},{"class":166,"line":1001},[2929],{"type":131,"tag":164,"props":2930,"children":2931},{"style":217},[2932],{"type":137,"value":1077},{"type":131,"tag":146,"props":2934,"children":2936},{"id":2935},"accessibility-snapshot",[2937],{"type":137,"value":2938},"Accessibility Snapshot",{"type":131,"tag":153,"props":2940,"children":2942},{"className":199,"code":2941,"language":201,"meta":158,"style":158},"export async function snapshotUrl(url: string) {\n  return withBrowser(async (sandbox) => {\n    await sandbox.runCommand(\"agent-browser\", [\"open\", url]);\n\n    const titleResult = await sandbox.runCommand(\"agent-browser\", [\n      \"get\", \"title\", \"--json\",\n    ]);\n    const title = JSON.parse(await titleResult.stdout())?.data?.title || url;\n\n    const snapResult = await sandbox.runCommand(\"agent-browser\", [\n      \"snapshot\", \"-i\", \"-c\",\n    ]);\n    const snapshot = await snapResult.stdout();\n\n    await sandbox.runCommand(\"agent-browser\", [\"close\"]);\n\n    return { title, snapshot };\n  });\n}\n",[2943],{"type":131,"tag":58,"props":2944,"children":2945},{"__ignoreMap":158},[2946,2990,3029,3100,3107,3162,3213,3224,3303,3310,3366,3418,3429,3469,3476,3539,3546,3573,3588],{"type":131,"tag":164,"props":2947,"children":2948},{"class":166,"line":167},[2949,2953,2957,2961,2966,2970,2974,2978,2982,2986],{"type":131,"tag":164,"props":2950,"children":2951},{"style":211},[2952],{"type":137,"value":2093},{"type":131,"tag":164,"props":2954,"children":2955},{"style":281},[2956],{"type":137,"value":2098},{"type":131,"tag":164,"props":2958,"children":2959},{"style":281},[2960],{"type":137,"value":1099},{"type":131,"tag":164,"props":2962,"children":2963},{"style":780},[2964],{"type":137,"value":2965}," snapshotUrl",{"type":131,"tag":164,"props":2967,"children":2968},{"style":217},[2969],{"type":137,"value":1353},{"type":131,"tag":164,"props":2971,"children":2972},{"style":1140},[2973],{"type":137,"value":2116},{"type":131,"tag":164,"props":2975,"children":2976},{"style":217},[2977],{"type":137,"value":936},{"type":131,"tag":164,"props":2979,"children":2980},{"style":171},[2981],{"type":137,"value":2125},{"type":131,"tag":164,"props":2983,"children":2984},{"style":217},[2985],{"type":137,"value":1558},{"type":131,"tag":164,"props":2987,"children":2988},{"style":217},[2989],{"type":137,"value":793},{"type":131,"tag":164,"props":2991,"children":2992},{"class":166,"line":258},[2993,2997,3001,3005,3009,3013,3017,3021,3025],{"type":131,"tag":164,"props":2994,"children":2995},{"style":211},[2996],{"type":137,"value":1063},{"type":131,"tag":164,"props":2998,"children":2999},{"style":780},[3000],{"type":137,"value":1104},{"type":131,"tag":164,"props":3002,"children":3003},{"style":805},[3004],{"type":137,"value":1353},{"type":131,"tag":164,"props":3006,"children":3007},{"style":281},[3008],{"type":137,"value":1094},{"type":131,"tag":164,"props":3010,"children":3011},{"style":217},[3012],{"type":137,"value":1137},{"type":131,"tag":164,"props":3014,"children":3015},{"style":1140},[3016],{"type":137,"value":51},{"type":131,"tag":164,"props":3018,"children":3019},{"style":217},[3020],{"type":137,"value":1558},{"type":131,"tag":164,"props":3022,"children":3023},{"style":281},[3024],{"type":137,"value":1170},{"type":131,"tag":164,"props":3026,"children":3027},{"style":217},[3028],{"type":137,"value":793},{"type":131,"tag":164,"props":3030,"children":3031},{"class":166,"line":268},[3032,3036,3040,3044,3048,3052,3056,3060,3064,3068,3072,3076,3080,3084,3088,3092,3096],{"type":131,"tag":164,"props":3033,"children":3034},{"style":211},[3035],{"type":137,"value":1610},{"type":131,"tag":164,"props":3037,"children":3038},{"style":223},[3039],{"type":137,"value":1312},{"type":131,"tag":164,"props":3041,"children":3042},{"style":217},[3043],{"type":137,"value":822},{"type":131,"tag":164,"props":3045,"children":3046},{"style":780},[3047],{"type":137,"value":1623},{"type":131,"tag":164,"props":3049,"children":3050},{"style":805},[3051],{"type":137,"value":1353},{"type":131,"tag":164,"props":3053,"children":3054},{"style":217},[3055],{"type":137,"value":250},{"type":131,"tag":164,"props":3057,"children":3058},{"style":177},[3059],{"type":137,"value":1840},{"type":131,"tag":164,"props":3061,"children":3062},{"style":217},[3063],{"type":137,"value":250},{"type":131,"tag":164,"props":3065,"children":3066},{"style":217},[3067],{"type":137,"value":322},{"type":131,"tag":164,"props":3069,"children":3070},{"style":805},[3071],{"type":137,"value":1797},{"type":131,"tag":164,"props":3073,"children":3074},{"style":217},[3075],{"type":137,"value":250},{"type":131,"tag":164,"props":3077,"children":3078},{"style":177},[3079],{"type":137,"value":2224},{"type":131,"tag":164,"props":3081,"children":3082},{"style":217},[3083],{"type":137,"value":250},{"type":131,"tag":164,"props":3085,"children":3086},{"style":217},[3087],{"type":137,"value":322},{"type":131,"tag":164,"props":3089,"children":3090},{"style":223},[3091],{"type":137,"value":2237},{"type":131,"tag":164,"props":3093,"children":3094},{"style":805},[3095],{"type":137,"value":1849},{"type":131,"tag":164,"props":3097,"children":3098},{"style":217},[3099],{"type":137,"value":255},{"type":131,"tag":164,"props":3101,"children":3102},{"class":166,"line":37},[3103],{"type":131,"tag":164,"props":3104,"children":3105},{"emptyLinePlaceholder":262},[3106],{"type":137,"value":265},{"type":131,"tag":164,"props":3108,"children":3109},{"class":166,"line":302},[3110,3114,3118,3122,3126,3130,3134,3138,3142,3146,3150,3154,3158],{"type":131,"tag":164,"props":3111,"children":3112},{"style":281},[3113],{"type":137,"value":2260},{"type":131,"tag":164,"props":3115,"children":3116},{"style":223},[3117],{"type":137,"value":2265},{"type":131,"tag":164,"props":3119,"children":3120},{"style":217},[3121],{"type":137,"value":1237},{"type":131,"tag":164,"props":3123,"children":3124},{"style":211},[3125],{"type":137,"value":1335},{"type":131,"tag":164,"props":3127,"children":3128},{"style":223},[3129],{"type":137,"value":1312},{"type":131,"tag":164,"props":3131,"children":3132},{"style":217},[3133],{"type":137,"value":822},{"type":131,"tag":164,"props":3135,"children":3136},{"style":780},[3137],{"type":137,"value":1623},{"type":131,"tag":164,"props":3139,"children":3140},{"style":805},[3141],{"type":137,"value":1353},{"type":131,"tag":164,"props":3143,"children":3144},{"style":217},[3145],{"type":137,"value":250},{"type":131,"tag":164,"props":3147,"children":3148},{"style":177},[3149],{"type":137,"value":1840},{"type":131,"tag":164,"props":3151,"children":3152},{"style":217},[3153],{"type":137,"value":250},{"type":131,"tag":164,"props":3155,"children":3156},{"style":217},[3157],{"type":137,"value":322},{"type":131,"tag":164,"props":3159,"children":3160},{"style":805},[3161],{"type":137,"value":299},{"type":131,"tag":164,"props":3163,"children":3164},{"class":166,"line":411},[3165,3169,3173,3177,3181,3185,3189,3193,3197,3201,3205,3209],{"type":131,"tag":164,"props":3166,"children":3167},{"style":217},[3168],{"type":137,"value":1657},{"type":131,"tag":164,"props":3170,"children":3171},{"style":177},[3172],{"type":137,"value":2321},{"type":131,"tag":164,"props":3174,"children":3175},{"style":217},[3176],{"type":137,"value":250},{"type":131,"tag":164,"props":3178,"children":3179},{"style":217},[3180],{"type":137,"value":322},{"type":131,"tag":164,"props":3182,"children":3183},{"style":217},[3184],{"type":137,"value":241},{"type":131,"tag":164,"props":3186,"children":3187},{"style":177},[3188],{"type":137,"value":2338},{"type":131,"tag":164,"props":3190,"children":3191},{"style":217},[3192],{"type":137,"value":250},{"type":131,"tag":164,"props":3194,"children":3195},{"style":217},[3196],{"type":137,"value":322},{"type":131,"tag":164,"props":3198,"children":3199},{"style":217},[3200],{"type":137,"value":241},{"type":131,"tag":164,"props":3202,"children":3203},{"style":177},[3204],{"type":137,"value":2355},{"type":131,"tag":164,"props":3206,"children":3207},{"style":217},[3208],{"type":137,"value":250},{"type":131,"tag":164,"props":3210,"children":3211},{"style":217},[3212],{"type":137,"value":408},{"type":131,"tag":164,"props":3214,"children":3215},{"class":166,"line":500},[3216,3220],{"type":131,"tag":164,"props":3217,"children":3218},{"style":805},[3219],{"type":137,"value":1747},{"type":131,"tag":164,"props":3221,"children":3222},{"style":217},[3223],{"type":137,"value":255},{"type":131,"tag":164,"props":3225,"children":3226},{"class":166,"line":606},[3227,3231,3235,3239,3243,3247,3251,3255,3259,3263,3267,3271,3275,3279,3283,3287,3291,3295,3299],{"type":131,"tag":164,"props":3228,"children":3229},{"style":281},[3230],{"type":137,"value":2260},{"type":131,"tag":164,"props":3232,"children":3233},{"style":223},[3234],{"type":137,"value":2386},{"type":131,"tag":164,"props":3236,"children":3237},{"style":217},[3238],{"type":137,"value":1237},{"type":131,"tag":164,"props":3240,"children":3241},{"style":223},[3242],{"type":137,"value":2395},{"type":131,"tag":164,"props":3244,"children":3245},{"style":217},[3246],{"type":137,"value":822},{"type":131,"tag":164,"props":3248,"children":3249},{"style":780},[3250],{"type":137,"value":2404},{"type":131,"tag":164,"props":3252,"children":3253},{"style":805},[3254],{"type":137,"value":1353},{"type":131,"tag":164,"props":3256,"children":3257},{"style":211},[3258],{"type":137,"value":2413},{"type":131,"tag":164,"props":3260,"children":3261},{"style":223},[3262],{"type":137,"value":2265},{"type":131,"tag":164,"props":3264,"children":3265},{"style":217},[3266],{"type":137,"value":822},{"type":131,"tag":164,"props":3268,"children":3269},{"style":780},[3270],{"type":137,"value":2426},{"type":131,"tag":164,"props":3272,"children":3273},{"style":805},[3274],{"type":137,"value":2431},{"type":131,"tag":164,"props":3276,"children":3277},{"style":217},[3278],{"type":137,"value":2436},{"type":131,"tag":164,"props":3280,"children":3281},{"style":223},[3282],{"type":137,"value":2441},{"type":131,"tag":164,"props":3284,"children":3285},{"style":217},[3286],{"type":137,"value":2436},{"type":131,"tag":164,"props":3288,"children":3289},{"style":223},[3290],{"type":137,"value":2338},{"type":131,"tag":164,"props":3292,"children":3293},{"style":217},[3294],{"type":137,"value":2454},{"type":131,"tag":164,"props":3296,"children":3297},{"style":223},[3298],{"type":137,"value":2237},{"type":131,"tag":164,"props":3300,"children":3301},{"style":217},[3302],{"type":137,"value":255},{"type":131,"tag":164,"props":3304,"children":3305},{"class":166,"line":712},[3306],{"type":131,"tag":164,"props":3307,"children":3308},{"emptyLinePlaceholder":262},[3309],{"type":137,"value":265},{"type":131,"tag":164,"props":3311,"children":3312},{"class":166,"line":750},[3313,3317,3322,3326,3330,3334,3338,3342,3346,3350,3354,3358,3362],{"type":131,"tag":164,"props":3314,"children":3315},{"style":281},[3316],{"type":137,"value":2260},{"type":131,"tag":164,"props":3318,"children":3319},{"style":223},[3320],{"type":137,"value":3321}," snapResult",{"type":131,"tag":164,"props":3323,"children":3324},{"style":217},[3325],{"type":137,"value":1237},{"type":131,"tag":164,"props":3327,"children":3328},{"style":211},[3329],{"type":137,"value":1335},{"type":131,"tag":164,"props":3331,"children":3332},{"style":223},[3333],{"type":137,"value":1312},{"type":131,"tag":164,"props":3335,"children":3336},{"style":217},[3337],{"type":137,"value":822},{"type":131,"tag":164,"props":3339,"children":3340},{"style":780},[3341],{"type":137,"value":1623},{"type":131,"tag":164,"props":3343,"children":3344},{"style":805},[3345],{"type":137,"value":1353},{"type":131,"tag":164,"props":3347,"children":3348},{"style":217},[3349],{"type":137,"value":250},{"type":131,"tag":164,"props":3351,"children":3352},{"style":177},[3353],{"type":137,"value":1840},{"type":131,"tag":164,"props":3355,"children":3356},{"style":217},[3357],{"type":137,"value":250},{"type":131,"tag":164,"props":3359,"children":3360},{"style":217},[3361],{"type":137,"value":322},{"type":131,"tag":164,"props":3363,"children":3364},{"style":805},[3365],{"type":137,"value":299},{"type":131,"tag":164,"props":3367,"children":3368},{"class":166,"line":763},[3369,3373,3377,3381,3385,3389,3394,3398,3402,3406,3410,3414],{"type":131,"tag":164,"props":3370,"children":3371},{"style":217},[3372],{"type":137,"value":1657},{"type":131,"tag":164,"props":3374,"children":3375},{"style":177},[3376],{"type":137,"value":1409},{"type":131,"tag":164,"props":3378,"children":3379},{"style":217},[3380],{"type":137,"value":250},{"type":131,"tag":164,"props":3382,"children":3383},{"style":217},[3384],{"type":137,"value":322},{"type":131,"tag":164,"props":3386,"children":3387},{"style":217},[3388],{"type":137,"value":241},{"type":131,"tag":164,"props":3390,"children":3391},{"style":177},[3392],{"type":137,"value":3393},"-i",{"type":131,"tag":164,"props":3395,"children":3396},{"style":217},[3397],{"type":137,"value":250},{"type":131,"tag":164,"props":3399,"children":3400},{"style":217},[3401],{"type":137,"value":322},{"type":131,"tag":164,"props":3403,"children":3404},{"style":217},[3405],{"type":137,"value":241},{"type":131,"tag":164,"props":3407,"children":3408},{"style":177},[3409],{"type":137,"value":1662},{"type":131,"tag":164,"props":3411,"children":3412},{"style":217},[3413],{"type":137,"value":250},{"type":131,"tag":164,"props":3415,"children":3416},{"style":217},[3417],{"type":137,"value":408},{"type":131,"tag":164,"props":3419,"children":3420},{"class":166,"line":771},[3421,3425],{"type":131,"tag":164,"props":3422,"children":3423},{"style":805},[3424],{"type":137,"value":1747},{"type":131,"tag":164,"props":3426,"children":3427},{"style":217},[3428],{"type":137,"value":255},{"type":131,"tag":164,"props":3430,"children":3431},{"class":166,"line":796},[3432,3436,3441,3445,3449,3453,3457,3461,3465],{"type":131,"tag":164,"props":3433,"children":3434},{"style":281},[3435],{"type":137,"value":2260},{"type":131,"tag":164,"props":3437,"children":3438},{"style":223},[3439],{"type":137,"value":3440}," snapshot",{"type":131,"tag":164,"props":3442,"children":3443},{"style":217},[3444],{"type":137,"value":1237},{"type":131,"tag":164,"props":3446,"children":3447},{"style":211},[3448],{"type":137,"value":1335},{"type":131,"tag":164,"props":3450,"children":3451},{"style":223},[3452],{"type":137,"value":3321},{"type":131,"tag":164,"props":3454,"children":3455},{"style":217},[3456],{"type":137,"value":822},{"type":131,"tag":164,"props":3458,"children":3459},{"style":780},[3460],{"type":137,"value":2426},{"type":131,"tag":164,"props":3462,"children":3463},{"style":805},[3464],{"type":137,"value":788},{"type":131,"tag":164,"props":3466,"children":3467},{"style":217},[3468],{"type":137,"value":255},{"type":131,"tag":164,"props":3470,"children":3471},{"class":166,"line":811},[3472],{"type":131,"tag":164,"props":3473,"children":3474},{"emptyLinePlaceholder":262},[3475],{"type":137,"value":265},{"type":131,"tag":164,"props":3477,"children":3478},{"class":166,"line":844},[3479,3483,3487,3491,3495,3499,3503,3507,3511,3515,3519,3523,3527,3531,3535],{"type":131,"tag":164,"props":3480,"children":3481},{"style":211},[3482],{"type":137,"value":1610},{"type":131,"tag":164,"props":3484,"children":3485},{"style":223},[3486],{"type":137,"value":1312},{"type":131,"tag":164,"props":3488,"children":3489},{"style":217},[3490],{"type":137,"value":822},{"type":131,"tag":164,"props":3492,"children":3493},{"style":780},[3494],{"type":137,"value":1623},{"type":131,"tag":164,"props":3496,"children":3497},{"style":805},[3498],{"type":137,"value":1353},{"type":131,"tag":164,"props":3500,"children":3501},{"style":217},[3502],{"type":137,"value":250},{"type":131,"tag":164,"props":3504,"children":3505},{"style":177},[3506],{"type":137,"value":1840},{"type":131,"tag":164,"props":3508,"children":3509},{"style":217},[3510],{"type":137,"value":250},{"type":131,"tag":164,"props":3512,"children":3513},{"style":217},[3514],{"type":137,"value":322},{"type":131,"tag":164,"props":3516,"children":3517},{"style":805},[3518],{"type":137,"value":1797},{"type":131,"tag":164,"props":3520,"children":3521},{"style":217},[3522],{"type":137,"value":250},{"type":131,"tag":164,"props":3524,"children":3525},{"style":177},[3526],{"type":137,"value":2863},{"type":131,"tag":164,"props":3528,"children":3529},{"style":217},[3530],{"type":137,"value":250},{"type":131,"tag":164,"props":3532,"children":3533},{"style":805},[3534],{"type":137,"value":1849},{"type":131,"tag":164,"props":3536,"children":3537},{"style":217},[3538],{"type":137,"value":255},{"type":131,"tag":164,"props":3540,"children":3541},{"class":166,"line":873},[3542],{"type":131,"tag":164,"props":3543,"children":3544},{"emptyLinePlaceholder":262},[3545],{"type":137,"value":265},{"type":131,"tag":164,"props":3547,"children":3548},{"class":166,"line":898},[3549,3553,3557,3561,3565,3569],{"type":131,"tag":164,"props":3550,"children":3551},{"style":211},[3552],{"type":137,"value":918},{"type":131,"tag":164,"props":3554,"children":3555},{"style":217},[3556],{"type":137,"value":220},{"type":131,"tag":164,"props":3558,"children":3559},{"style":223},[3560],{"type":137,"value":2386},{"type":131,"tag":164,"props":3562,"children":3563},{"style":217},[3564],{"type":137,"value":322},{"type":131,"tag":164,"props":3566,"children":3567},{"style":223},[3568],{"type":137,"value":3440},{"type":131,"tag":164,"props":3570,"children":3571},{"style":217},[3572],{"type":137,"value":2910},{"type":131,"tag":164,"props":3574,"children":3575},{"class":166,"line":912},[3576,3580,3584],{"type":131,"tag":164,"props":3577,"children":3578},{"style":217},[3579],{"type":137,"value":2005},{"type":131,"tag":164,"props":3581,"children":3582},{"style":805},[3583],{"type":137,"value":1558},{"type":131,"tag":164,"props":3585,"children":3586},{"style":217},[3587],{"type":137,"value":255},{"type":131,"tag":164,"props":3589,"children":3590},{"class":166,"line":925},[3591],{"type":131,"tag":164,"props":3592,"children":3593},{"style":217},[3594],{"type":137,"value":1077},{"type":131,"tag":146,"props":3596,"children":3598},{"id":3597},"multi-step-workflows",[3599],{"type":137,"value":3600},"Multi-Step Workflows",{"type":131,"tag":140,"props":3602,"children":3603},{},[3604],{"type":137,"value":3605},"The sandbox persists between commands, so you can run full automation sequences:",{"type":131,"tag":153,"props":3607,"children":3609},{"className":199,"code":3608,"language":201,"meta":158,"style":158},"export async function fillAndSubmitForm(url: string, data: Record\u003Cstring, string>) {\n  return withBrowser(async (sandbox) => {\n    await sandbox.runCommand(\"agent-browser\", [\"open\", url]);\n\n    const snapResult = await sandbox.runCommand(\"agent-browser\", [\n      \"snapshot\", \"-i\",\n    ]);\n    const snapshot = await snapResult.stdout();\n    \u002F\u002F Parse snapshot to find element refs...\n\n    for (const [ref, value] of Object.entries(data)) {\n      await sandbox.runCommand(\"agent-browser\", [\"fill\", ref, value]);\n    }\n\n    await sandbox.runCommand(\"agent-browser\", [\"click\", \"@e5\"]);\n    await sandbox.runCommand(\"agent-browser\", [\"wait\", \"--load\", \"networkidle\"]);\n\n    const ssResult = await sandbox.runCommand(\"agent-browser\", [\n      \"screenshot\", \"--json\",\n    ]);\n    const ssPath = JSON.parse(await ssResult.stdout())?.data?.path;\n    const b64Result = await sandbox.runCommand(\"base64\", [\"-w\", \"0\", ssPath]);\n    const screenshot = (await b64Result.stdout()).trim();\n\n    await sandbox.runCommand(\"agent-browser\", [\"close\"]);\n\n    return { screenshot };\n  });\n}\n",[3610],{"type":131,"tag":58,"props":3611,"children":3612},{"__ignoreMap":158},[3613,3692,3731,3802,3809,3864,3899,3910,3949,3957,3964,4038,4120,4128,4135,4216,4314,4321,4376,4411,4422,4493,4592,4647,4654,4717,4724,4743,4758],{"type":131,"tag":164,"props":3614,"children":3615},{"class":166,"line":167},[3616,3620,3624,3628,3633,3637,3641,3645,3649,3653,3658,3662,3667,3671,3676,3680,3684,3688],{"type":131,"tag":164,"props":3617,"children":3618},{"style":211},[3619],{"type":137,"value":2093},{"type":131,"tag":164,"props":3621,"children":3622},{"style":281},[3623],{"type":137,"value":2098},{"type":131,"tag":164,"props":3625,"children":3626},{"style":281},[3627],{"type":137,"value":1099},{"type":131,"tag":164,"props":3629,"children":3630},{"style":780},[3631],{"type":137,"value":3632}," fillAndSubmitForm",{"type":131,"tag":164,"props":3634,"children":3635},{"style":217},[3636],{"type":137,"value":1353},{"type":131,"tag":164,"props":3638,"children":3639},{"style":1140},[3640],{"type":137,"value":2116},{"type":131,"tag":164,"props":3642,"children":3643},{"style":217},[3644],{"type":137,"value":936},{"type":131,"tag":164,"props":3646,"children":3647},{"style":171},[3648],{"type":137,"value":2125},{"type":131,"tag":164,"props":3650,"children":3651},{"style":217},[3652],{"type":137,"value":322},{"type":131,"tag":164,"props":3654,"children":3655},{"style":1140},[3656],{"type":137,"value":3657}," data",{"type":131,"tag":164,"props":3659,"children":3660},{"style":217},[3661],{"type":137,"value":936},{"type":131,"tag":164,"props":3663,"children":3664},{"style":171},[3665],{"type":137,"value":3666}," Record",{"type":131,"tag":164,"props":3668,"children":3669},{"style":217},[3670],{"type":137,"value":1109},{"type":131,"tag":164,"props":3672,"children":3673},{"style":171},[3674],{"type":137,"value":3675},"string",{"type":131,"tag":164,"props":3677,"children":3678},{"style":217},[3679],{"type":137,"value":322},{"type":131,"tag":164,"props":3681,"children":3682},{"style":171},[3683],{"type":137,"value":2125},{"type":131,"tag":164,"props":3685,"children":3686},{"style":217},[3687],{"type":137,"value":1165},{"type":131,"tag":164,"props":3689,"children":3690},{"style":217},[3691],{"type":137,"value":793},{"type":131,"tag":164,"props":3693,"children":3694},{"class":166,"line":258},[3695,3699,3703,3707,3711,3715,3719,3723,3727],{"type":131,"tag":164,"props":3696,"children":3697},{"style":211},[3698],{"type":137,"value":1063},{"type":131,"tag":164,"props":3700,"children":3701},{"style":780},[3702],{"type":137,"value":1104},{"type":131,"tag":164,"props":3704,"children":3705},{"style":805},[3706],{"type":137,"value":1353},{"type":131,"tag":164,"props":3708,"children":3709},{"style":281},[3710],{"type":137,"value":1094},{"type":131,"tag":164,"props":3712,"children":3713},{"style":217},[3714],{"type":137,"value":1137},{"type":131,"tag":164,"props":3716,"children":3717},{"style":1140},[3718],{"type":137,"value":51},{"type":131,"tag":164,"props":3720,"children":3721},{"style":217},[3722],{"type":137,"value":1558},{"type":131,"tag":164,"props":3724,"children":3725},{"style":281},[3726],{"type":137,"value":1170},{"type":131,"tag":164,"props":3728,"children":3729},{"style":217},[3730],{"type":137,"value":793},{"type":131,"tag":164,"props":3732,"children":3733},{"class":166,"line":268},[3734,3738,3742,3746,3750,3754,3758,3762,3766,3770,3774,3778,3782,3786,3790,3794,3798],{"type":131,"tag":164,"props":3735,"children":3736},{"style":211},[3737],{"type":137,"value":1610},{"type":131,"tag":164,"props":3739,"children":3740},{"style":223},[3741],{"type":137,"value":1312},{"type":131,"tag":164,"props":3743,"children":3744},{"style":217},[3745],{"type":137,"value":822},{"type":131,"tag":164,"props":3747,"children":3748},{"style":780},[3749],{"type":137,"value":1623},{"type":131,"tag":164,"props":3751,"children":3752},{"style":805},[3753],{"type":137,"value":1353},{"type":131,"tag":164,"props":3755,"children":3756},{"style":217},[3757],{"type":137,"value":250},{"type":131,"tag":164,"props":3759,"children":3760},{"style":177},[3761],{"type":137,"value":1840},{"type":131,"tag":164,"props":3763,"children":3764},{"style":217},[3765],{"type":137,"value":250},{"type":131,"tag":164,"props":3767,"children":3768},{"style":217},[3769],{"type":137,"value":322},{"type":131,"tag":164,"props":3771,"children":3772},{"style":805},[3773],{"type":137,"value":1797},{"type":131,"tag":164,"props":3775,"children":3776},{"style":217},[3777],{"type":137,"value":250},{"type":131,"tag":164,"props":3779,"children":3780},{"style":177},[3781],{"type":137,"value":2224},{"type":131,"tag":164,"props":3783,"children":3784},{"style":217},[3785],{"type":137,"value":250},{"type":131,"tag":164,"props":3787,"children":3788},{"style":217},[3789],{"type":137,"value":322},{"type":131,"tag":164,"props":3791,"children":3792},{"style":223},[3793],{"type":137,"value":2237},{"type":131,"tag":164,"props":3795,"children":3796},{"style":805},[3797],{"type":137,"value":1849},{"type":131,"tag":164,"props":3799,"children":3800},{"style":217},[3801],{"type":137,"value":255},{"type":131,"tag":164,"props":3803,"children":3804},{"class":166,"line":37},[3805],{"type":131,"tag":164,"props":3806,"children":3807},{"emptyLinePlaceholder":262},[3808],{"type":137,"value":265},{"type":131,"tag":164,"props":3810,"children":3811},{"class":166,"line":302},[3812,3816,3820,3824,3828,3832,3836,3840,3844,3848,3852,3856,3860],{"type":131,"tag":164,"props":3813,"children":3814},{"style":281},[3815],{"type":137,"value":2260},{"type":131,"tag":164,"props":3817,"children":3818},{"style":223},[3819],{"type":137,"value":3321},{"type":131,"tag":164,"props":3821,"children":3822},{"style":217},[3823],{"type":137,"value":1237},{"type":131,"tag":164,"props":3825,"children":3826},{"style":211},[3827],{"type":137,"value":1335},{"type":131,"tag":164,"props":3829,"children":3830},{"style":223},[3831],{"type":137,"value":1312},{"type":131,"tag":164,"props":3833,"children":3834},{"style":217},[3835],{"type":137,"value":822},{"type":131,"tag":164,"props":3837,"children":3838},{"style":780},[3839],{"type":137,"value":1623},{"type":131,"tag":164,"props":3841,"children":3842},{"style":805},[3843],{"type":137,"value":1353},{"type":131,"tag":164,"props":3845,"children":3846},{"style":217},[3847],{"type":137,"value":250},{"type":131,"tag":164,"props":3849,"children":3850},{"style":177},[3851],{"type":137,"value":1840},{"type":131,"tag":164,"props":3853,"children":3854},{"style":217},[3855],{"type":137,"value":250},{"type":131,"tag":164,"props":3857,"children":3858},{"style":217},[3859],{"type":137,"value":322},{"type":131,"tag":164,"props":3861,"children":3862},{"style":805},[3863],{"type":137,"value":299},{"type":131,"tag":164,"props":3865,"children":3866},{"class":166,"line":411},[3867,3871,3875,3879,3883,3887,3891,3895],{"type":131,"tag":164,"props":3868,"children":3869},{"style":217},[3870],{"type":137,"value":1657},{"type":131,"tag":164,"props":3872,"children":3873},{"style":177},[3874],{"type":137,"value":1409},{"type":131,"tag":164,"props":3876,"children":3877},{"style":217},[3878],{"type":137,"value":250},{"type":131,"tag":164,"props":3880,"children":3881},{"style":217},[3882],{"type":137,"value":322},{"type":131,"tag":164,"props":3884,"children":3885},{"style":217},[3886],{"type":137,"value":241},{"type":131,"tag":164,"props":3888,"children":3889},{"style":177},[3890],{"type":137,"value":3393},{"type":131,"tag":164,"props":3892,"children":3893},{"style":217},[3894],{"type":137,"value":250},{"type":131,"tag":164,"props":3896,"children":3897},{"style":217},[3898],{"type":137,"value":408},{"type":131,"tag":164,"props":3900,"children":3901},{"class":166,"line":500},[3902,3906],{"type":131,"tag":164,"props":3903,"children":3904},{"style":805},[3905],{"type":137,"value":1747},{"type":131,"tag":164,"props":3907,"children":3908},{"style":217},[3909],{"type":137,"value":255},{"type":131,"tag":164,"props":3911,"children":3912},{"class":166,"line":606},[3913,3917,3921,3925,3929,3933,3937,3941,3945],{"type":131,"tag":164,"props":3914,"children":3915},{"style":281},[3916],{"type":137,"value":2260},{"type":131,"tag":164,"props":3918,"children":3919},{"style":223},[3920],{"type":137,"value":3440},{"type":131,"tag":164,"props":3922,"children":3923},{"style":217},[3924],{"type":137,"value":1237},{"type":131,"tag":164,"props":3926,"children":3927},{"style":211},[3928],{"type":137,"value":1335},{"type":131,"tag":164,"props":3930,"children":3931},{"style":223},[3932],{"type":137,"value":3321},{"type":131,"tag":164,"props":3934,"children":3935},{"style":217},[3936],{"type":137,"value":822},{"type":131,"tag":164,"props":3938,"children":3939},{"style":780},[3940],{"type":137,"value":2426},{"type":131,"tag":164,"props":3942,"children":3943},{"style":805},[3944],{"type":137,"value":788},{"type":131,"tag":164,"props":3946,"children":3947},{"style":217},[3948],{"type":137,"value":255},{"type":131,"tag":164,"props":3950,"children":3951},{"class":166,"line":712},[3952],{"type":131,"tag":164,"props":3953,"children":3954},{"style":272},[3955],{"type":137,"value":3956},"    \u002F\u002F Parse snapshot to find element refs...\n",{"type":131,"tag":164,"props":3958,"children":3959},{"class":166,"line":750},[3960],{"type":131,"tag":164,"props":3961,"children":3962},{"emptyLinePlaceholder":262},[3963],{"type":137,"value":265},{"type":131,"tag":164,"props":3965,"children":3966},{"class":166,"line":763},[3967,3972,3976,3980,3984,3989,3993,3998,4002,4007,4012,4016,4021,4025,4029,4034],{"type":131,"tag":164,"props":3968,"children":3969},{"style":211},[3970],{"type":137,"value":3971},"    for",{"type":131,"tag":164,"props":3973,"children":3974},{"style":805},[3975],{"type":137,"value":1137},{"type":131,"tag":164,"props":3977,"children":3978},{"style":281},[3979],{"type":137,"value":284},{"type":131,"tag":164,"props":3981,"children":3982},{"style":217},[3983],{"type":137,"value":1797},{"type":131,"tag":164,"props":3985,"children":3986},{"style":223},[3987],{"type":137,"value":3988},"ref",{"type":131,"tag":164,"props":3990,"children":3991},{"style":217},[3992],{"type":137,"value":322},{"type":131,"tag":164,"props":3994,"children":3995},{"style":223},[3996],{"type":137,"value":3997}," value",{"type":131,"tag":164,"props":3999,"children":4000},{"style":217},[4001],{"type":137,"value":756},{"type":131,"tag":164,"props":4003,"children":4004},{"style":217},[4005],{"type":137,"value":4006}," of",{"type":131,"tag":164,"props":4008,"children":4009},{"style":223},[4010],{"type":137,"value":4011}," Object",{"type":131,"tag":164,"props":4013,"children":4014},{"style":217},[4015],{"type":137,"value":822},{"type":131,"tag":164,"props":4017,"children":4018},{"style":780},[4019],{"type":137,"value":4020},"entries",{"type":131,"tag":164,"props":4022,"children":4023},{"style":805},[4024],{"type":137,"value":1353},{"type":131,"tag":164,"props":4026,"children":4027},{"style":223},[4028],{"type":137,"value":2441},{"type":131,"tag":164,"props":4030,"children":4031},{"style":805},[4032],{"type":137,"value":4033},")) ",{"type":131,"tag":164,"props":4035,"children":4036},{"style":217},[4037],{"type":137,"value":909},{"type":131,"tag":164,"props":4039,"children":4040},{"class":166,"line":771},[4041,4046,4050,4054,4058,4062,4066,4070,4074,4078,4082,4086,4091,4095,4099,4104,4108,4112,4116],{"type":131,"tag":164,"props":4042,"children":4043},{"style":211},[4044],{"type":137,"value":4045},"      await",{"type":131,"tag":164,"props":4047,"children":4048},{"style":223},[4049],{"type":137,"value":1312},{"type":131,"tag":164,"props":4051,"children":4052},{"style":217},[4053],{"type":137,"value":822},{"type":131,"tag":164,"props":4055,"children":4056},{"style":780},[4057],{"type":137,"value":1623},{"type":131,"tag":164,"props":4059,"children":4060},{"style":805},[4061],{"type":137,"value":1353},{"type":131,"tag":164,"props":4063,"children":4064},{"style":217},[4065],{"type":137,"value":250},{"type":131,"tag":164,"props":4067,"children":4068},{"style":177},[4069],{"type":137,"value":1840},{"type":131,"tag":164,"props":4071,"children":4072},{"style":217},[4073],{"type":137,"value":250},{"type":131,"tag":164,"props":4075,"children":4076},{"style":217},[4077],{"type":137,"value":322},{"type":131,"tag":164,"props":4079,"children":4080},{"style":805},[4081],{"type":137,"value":1797},{"type":131,"tag":164,"props":4083,"children":4084},{"style":217},[4085],{"type":137,"value":250},{"type":131,"tag":164,"props":4087,"children":4088},{"style":177},[4089],{"type":137,"value":4090},"fill",{"type":131,"tag":164,"props":4092,"children":4093},{"style":217},[4094],{"type":137,"value":250},{"type":131,"tag":164,"props":4096,"children":4097},{"style":217},[4098],{"type":137,"value":322},{"type":131,"tag":164,"props":4100,"children":4101},{"style":223},[4102],{"type":137,"value":4103}," ref",{"type":131,"tag":164,"props":4105,"children":4106},{"style":217},[4107],{"type":137,"value":322},{"type":131,"tag":164,"props":4109,"children":4110},{"style":223},[4111],{"type":137,"value":3997},{"type":131,"tag":164,"props":4113,"children":4114},{"style":805},[4115],{"type":137,"value":1849},{"type":131,"tag":164,"props":4117,"children":4118},{"style":217},[4119],{"type":137,"value":255},{"type":131,"tag":164,"props":4121,"children":4122},{"class":166,"line":796},[4123],{"type":131,"tag":164,"props":4124,"children":4125},{"style":217},[4126],{"type":137,"value":4127},"    }\n",{"type":131,"tag":164,"props":4129,"children":4130},{"class":166,"line":811},[4131],{"type":131,"tag":164,"props":4132,"children":4133},{"emptyLinePlaceholder":262},[4134],{"type":137,"value":265},{"type":131,"tag":164,"props":4136,"children":4137},{"class":166,"line":844},[4138,4142,4146,4150,4154,4158,4162,4166,4170,4174,4178,4182,4187,4191,4195,4199,4204,4208,4212],{"type":131,"tag":164,"props":4139,"children":4140},{"style":211},[4141],{"type":137,"value":1610},{"type":131,"tag":164,"props":4143,"children":4144},{"style":223},[4145],{"type":137,"value":1312},{"type":131,"tag":164,"props":4147,"children":4148},{"style":217},[4149],{"type":137,"value":822},{"type":131,"tag":164,"props":4151,"children":4152},{"style":780},[4153],{"type":137,"value":1623},{"type":131,"tag":164,"props":4155,"children":4156},{"style":805},[4157],{"type":137,"value":1353},{"type":131,"tag":164,"props":4159,"children":4160},{"style":217},[4161],{"type":137,"value":250},{"type":131,"tag":164,"props":4163,"children":4164},{"style":177},[4165],{"type":137,"value":1840},{"type":131,"tag":164,"props":4167,"children":4168},{"style":217},[4169],{"type":137,"value":250},{"type":131,"tag":164,"props":4171,"children":4172},{"style":217},[4173],{"type":137,"value":322},{"type":131,"tag":164,"props":4175,"children":4176},{"style":805},[4177],{"type":137,"value":1797},{"type":131,"tag":164,"props":4179,"children":4180},{"style":217},[4181],{"type":137,"value":250},{"type":131,"tag":164,"props":4183,"children":4184},{"style":177},[4185],{"type":137,"value":4186},"click",{"type":131,"tag":164,"props":4188,"children":4189},{"style":217},[4190],{"type":137,"value":250},{"type":131,"tag":164,"props":4192,"children":4193},{"style":217},[4194],{"type":137,"value":322},{"type":131,"tag":164,"props":4196,"children":4197},{"style":217},[4198],{"type":137,"value":241},{"type":131,"tag":164,"props":4200,"children":4201},{"style":177},[4202],{"type":137,"value":4203},"@e5",{"type":131,"tag":164,"props":4205,"children":4206},{"style":217},[4207],{"type":137,"value":250},{"type":131,"tag":164,"props":4209,"children":4210},{"style":805},[4211],{"type":137,"value":1849},{"type":131,"tag":164,"props":4213,"children":4214},{"style":217},[4215],{"type":137,"value":255},{"type":131,"tag":164,"props":4217,"children":4218},{"class":166,"line":873},[4219,4223,4227,4231,4235,4239,4243,4247,4251,4255,4259,4263,4268,4272,4276,4280,4285,4289,4293,4297,4302,4306,4310],{"type":131,"tag":164,"props":4220,"children":4221},{"style":211},[4222],{"type":137,"value":1610},{"type":131,"tag":164,"props":4224,"children":4225},{"style":223},[4226],{"type":137,"value":1312},{"type":131,"tag":164,"props":4228,"children":4229},{"style":217},[4230],{"type":137,"value":822},{"type":131,"tag":164,"props":4232,"children":4233},{"style":780},[4234],{"type":137,"value":1623},{"type":131,"tag":164,"props":4236,"children":4237},{"style":805},[4238],{"type":137,"value":1353},{"type":131,"tag":164,"props":4240,"children":4241},{"style":217},[4242],{"type":137,"value":250},{"type":131,"tag":164,"props":4244,"children":4245},{"style":177},[4246],{"type":137,"value":1840},{"type":131,"tag":164,"props":4248,"children":4249},{"style":217},[4250],{"type":137,"value":250},{"type":131,"tag":164,"props":4252,"children":4253},{"style":217},[4254],{"type":137,"value":322},{"type":131,"tag":164,"props":4256,"children":4257},{"style":805},[4258],{"type":137,"value":1797},{"type":131,"tag":164,"props":4260,"children":4261},{"style":217},[4262],{"type":137,"value":250},{"type":131,"tag":164,"props":4264,"children":4265},{"style":177},[4266],{"type":137,"value":4267},"wait",{"type":131,"tag":164,"props":4269,"children":4270},{"style":217},[4271],{"type":137,"value":250},{"type":131,"tag":164,"props":4273,"children":4274},{"style":217},[4275],{"type":137,"value":322},{"type":131,"tag":164,"props":4277,"children":4278},{"style":217},[4279],{"type":137,"value":241},{"type":131,"tag":164,"props":4281,"children":4282},{"style":177},[4283],{"type":137,"value":4284},"--load",{"type":131,"tag":164,"props":4286,"children":4287},{"style":217},[4288],{"type":137,"value":250},{"type":131,"tag":164,"props":4290,"children":4291},{"style":217},[4292],{"type":137,"value":322},{"type":131,"tag":164,"props":4294,"children":4295},{"style":217},[4296],{"type":137,"value":241},{"type":131,"tag":164,"props":4298,"children":4299},{"style":177},[4300],{"type":137,"value":4301},"networkidle",{"type":131,"tag":164,"props":4303,"children":4304},{"style":217},[4305],{"type":137,"value":250},{"type":131,"tag":164,"props":4307,"children":4308},{"style":805},[4309],{"type":137,"value":1849},{"type":131,"tag":164,"props":4311,"children":4312},{"style":217},[4313],{"type":137,"value":255},{"type":131,"tag":164,"props":4315,"children":4316},{"class":166,"line":898},[4317],{"type":131,"tag":164,"props":4318,"children":4319},{"emptyLinePlaceholder":262},[4320],{"type":137,"value":265},{"type":131,"tag":164,"props":4322,"children":4323},{"class":166,"line":912},[4324,4328,4332,4336,4340,4344,4348,4352,4356,4360,4364,4368,4372],{"type":131,"tag":164,"props":4325,"children":4326},{"style":281},[4327],{"type":137,"value":2260},{"type":131,"tag":164,"props":4329,"children":4330},{"style":223},[4331],{"type":137,"value":2481},{"type":131,"tag":164,"props":4333,"children":4334},{"style":217},[4335],{"type":137,"value":1237},{"type":131,"tag":164,"props":4337,"children":4338},{"style":211},[4339],{"type":137,"value":1335},{"type":131,"tag":164,"props":4341,"children":4342},{"style":223},[4343],{"type":137,"value":1312},{"type":131,"tag":164,"props":4345,"children":4346},{"style":217},[4347],{"type":137,"value":822},{"type":131,"tag":164,"props":4349,"children":4350},{"style":780},[4351],{"type":137,"value":1623},{"type":131,"tag":164,"props":4353,"children":4354},{"style":805},[4355],{"type":137,"value":1353},{"type":131,"tag":164,"props":4357,"children":4358},{"style":217},[4359],{"type":137,"value":250},{"type":131,"tag":164,"props":4361,"children":4362},{"style":177},[4363],{"type":137,"value":1840},{"type":131,"tag":164,"props":4365,"children":4366},{"style":217},[4367],{"type":137,"value":250},{"type":131,"tag":164,"props":4369,"children":4370},{"style":217},[4371],{"type":137,"value":322},{"type":131,"tag":164,"props":4373,"children":4374},{"style":805},[4375],{"type":137,"value":299},{"type":131,"tag":164,"props":4377,"children":4378},{"class":166,"line":925},[4379,4383,4387,4391,4395,4399,4403,4407],{"type":131,"tag":164,"props":4380,"children":4381},{"style":217},[4382],{"type":137,"value":1657},{"type":131,"tag":164,"props":4384,"children":4385},{"style":177},[4386],{"type":137,"value":2062},{"type":131,"tag":164,"props":4388,"children":4389},{"style":217},[4390],{"type":137,"value":250},{"type":131,"tag":164,"props":4392,"children":4393},{"style":217},[4394],{"type":137,"value":322},{"type":131,"tag":164,"props":4396,"children":4397},{"style":217},[4398],{"type":137,"value":241},{"type":131,"tag":164,"props":4400,"children":4401},{"style":177},[4402],{"type":137,"value":2355},{"type":131,"tag":164,"props":4404,"children":4405},{"style":217},[4406],{"type":137,"value":250},{"type":131,"tag":164,"props":4408,"children":4409},{"style":217},[4410],{"type":137,"value":408},{"type":131,"tag":164,"props":4412,"children":4413},{"class":166,"line":964},[4414,4418],{"type":131,"tag":164,"props":4415,"children":4416},{"style":805},[4417],{"type":137,"value":1747},{"type":131,"tag":164,"props":4419,"children":4420},{"style":217},[4421],{"type":137,"value":255},{"type":131,"tag":164,"props":4423,"children":4424},{"class":166,"line":1001},[4425,4429,4433,4437,4441,4445,4449,4453,4457,4461,4465,4469,4473,4477,4481,4485,4489],{"type":131,"tag":164,"props":4426,"children":4427},{"style":281},[4428],{"type":137,"value":2260},{"type":131,"tag":164,"props":4430,"children":4431},{"style":223},[4432],{"type":137,"value":2583},{"type":131,"tag":164,"props":4434,"children":4435},{"style":217},[4436],{"type":137,"value":1237},{"type":131,"tag":164,"props":4438,"children":4439},{"style":223},[4440],{"type":137,"value":2395},{"type":131,"tag":164,"props":4442,"children":4443},{"style":217},[4444],{"type":137,"value":822},{"type":131,"tag":164,"props":4446,"children":4447},{"style":780},[4448],{"type":137,"value":2404},{"type":131,"tag":164,"props":4450,"children":4451},{"style":805},[4452],{"type":137,"value":1353},{"type":131,"tag":164,"props":4454,"children":4455},{"style":211},[4456],{"type":137,"value":2413},{"type":131,"tag":164,"props":4458,"children":4459},{"style":223},[4460],{"type":137,"value":2481},{"type":131,"tag":164,"props":4462,"children":4463},{"style":217},[4464],{"type":137,"value":822},{"type":131,"tag":164,"props":4466,"children":4467},{"style":780},[4468],{"type":137,"value":2426},{"type":131,"tag":164,"props":4470,"children":4471},{"style":805},[4472],{"type":137,"value":2431},{"type":131,"tag":164,"props":4474,"children":4475},{"style":217},[4476],{"type":137,"value":2436},{"type":131,"tag":164,"props":4478,"children":4479},{"style":223},[4480],{"type":137,"value":2441},{"type":131,"tag":164,"props":4482,"children":4483},{"style":217},[4484],{"type":137,"value":2436},{"type":131,"tag":164,"props":4486,"children":4487},{"style":223},[4488],{"type":137,"value":2640},{"type":131,"tag":164,"props":4490,"children":4491},{"style":217},[4492],{"type":137,"value":255},{"type":131,"tag":164,"props":4494,"children":4495},{"class":166,"line":1039},[4496,4500,4504,4508,4512,4516,4520,4524,4528,4532,4536,4540,4544,4548,4552,4556,4560,4564,4568,4572,4576,4580,4584,4588],{"type":131,"tag":164,"props":4497,"children":4498},{"style":281},[4499],{"type":137,"value":2260},{"type":131,"tag":164,"props":4501,"children":4502},{"style":223},[4503],{"type":137,"value":2656},{"type":131,"tag":164,"props":4505,"children":4506},{"style":217},[4507],{"type":137,"value":1237},{"type":131,"tag":164,"props":4509,"children":4510},{"style":211},[4511],{"type":137,"value":1335},{"type":131,"tag":164,"props":4513,"children":4514},{"style":223},[4515],{"type":137,"value":1312},{"type":131,"tag":164,"props":4517,"children":4518},{"style":217},[4519],{"type":137,"value":822},{"type":131,"tag":164,"props":4521,"children":4522},{"style":780},[4523],{"type":137,"value":1623},{"type":131,"tag":164,"props":4525,"children":4526},{"style":805},[4527],{"type":137,"value":1353},{"type":131,"tag":164,"props":4529,"children":4530},{"style":217},[4531],{"type":137,"value":250},{"type":131,"tag":164,"props":4533,"children":4534},{"style":177},[4535],{"type":137,"value":2689},{"type":131,"tag":164,"props":4537,"children":4538},{"style":217},[4539],{"type":137,"value":250},{"type":131,"tag":164,"props":4541,"children":4542},{"style":217},[4543],{"type":137,"value":322},{"type":131,"tag":164,"props":4545,"children":4546},{"style":805},[4547],{"type":137,"value":1797},{"type":131,"tag":164,"props":4549,"children":4550},{"style":217},[4551],{"type":137,"value":250},{"type":131,"tag":164,"props":4553,"children":4554},{"style":177},[4555],{"type":137,"value":2710},{"type":131,"tag":164,"props":4557,"children":4558},{"style":217},[4559],{"type":137,"value":250},{"type":131,"tag":164,"props":4561,"children":4562},{"style":217},[4563],{"type":137,"value":322},{"type":131,"tag":164,"props":4565,"children":4566},{"style":217},[4567],{"type":137,"value":241},{"type":131,"tag":164,"props":4569,"children":4570},{"style":177},[4571],{"type":137,"value":2727},{"type":131,"tag":164,"props":4573,"children":4574},{"style":217},[4575],{"type":137,"value":250},{"type":131,"tag":164,"props":4577,"children":4578},{"style":217},[4579],{"type":137,"value":322},{"type":131,"tag":164,"props":4581,"children":4582},{"style":223},[4583],{"type":137,"value":2583},{"type":131,"tag":164,"props":4585,"children":4586},{"style":805},[4587],{"type":137,"value":1849},{"type":131,"tag":164,"props":4589,"children":4590},{"style":217},[4591],{"type":137,"value":255},{"type":131,"tag":164,"props":4593,"children":4594},{"class":166,"line":1048},[4595,4599,4603,4607,4611,4615,4619,4623,4627,4631,4635,4639,4643],{"type":131,"tag":164,"props":4596,"children":4597},{"style":281},[4598],{"type":137,"value":2260},{"type":131,"tag":164,"props":4600,"children":4601},{"style":223},[4602],{"type":137,"value":2759},{"type":131,"tag":164,"props":4604,"children":4605},{"style":217},[4606],{"type":137,"value":1237},{"type":131,"tag":164,"props":4608,"children":4609},{"style":805},[4610],{"type":137,"value":1137},{"type":131,"tag":164,"props":4612,"children":4613},{"style":211},[4614],{"type":137,"value":2413},{"type":131,"tag":164,"props":4616,"children":4617},{"style":223},[4618],{"type":137,"value":2656},{"type":131,"tag":164,"props":4620,"children":4621},{"style":217},[4622],{"type":137,"value":822},{"type":131,"tag":164,"props":4624,"children":4625},{"style":780},[4626],{"type":137,"value":2426},{"type":131,"tag":164,"props":4628,"children":4629},{"style":805},[4630],{"type":137,"value":2431},{"type":131,"tag":164,"props":4632,"children":4633},{"style":217},[4634],{"type":137,"value":822},{"type":131,"tag":164,"props":4636,"children":4637},{"style":780},[4638],{"type":137,"value":2796},{"type":131,"tag":164,"props":4640,"children":4641},{"style":805},[4642],{"type":137,"value":788},{"type":131,"tag":164,"props":4644,"children":4645},{"style":217},[4646],{"type":137,"value":255},{"type":131,"tag":164,"props":4648,"children":4649},{"class":166,"line":1057},[4650],{"type":131,"tag":164,"props":4651,"children":4652},{"emptyLinePlaceholder":262},[4653],{"type":137,"value":265},{"type":131,"tag":164,"props":4655,"children":4656},{"class":166,"line":1071},[4657,4661,4665,4669,4673,4677,4681,4685,4689,4693,4697,4701,4705,4709,4713],{"type":131,"tag":164,"props":4658,"children":4659},{"style":211},[4660],{"type":137,"value":1610},{"type":131,"tag":164,"props":4662,"children":4663},{"style":223},[4664],{"type":137,"value":1312},{"type":131,"tag":164,"props":4666,"children":4667},{"style":217},[4668],{"type":137,"value":822},{"type":131,"tag":164,"props":4670,"children":4671},{"style":780},[4672],{"type":137,"value":1623},{"type":131,"tag":164,"props":4674,"children":4675},{"style":805},[4676],{"type":137,"value":1353},{"type":131,"tag":164,"props":4678,"children":4679},{"style":217},[4680],{"type":137,"value":250},{"type":131,"tag":164,"props":4682,"children":4683},{"style":177},[4684],{"type":137,"value":1840},{"type":131,"tag":164,"props":4686,"children":4687},{"style":217},[4688],{"type":137,"value":250},{"type":131,"tag":164,"props":4690,"children":4691},{"style":217},[4692],{"type":137,"value":322},{"type":131,"tag":164,"props":4694,"children":4695},{"style":805},[4696],{"type":137,"value":1797},{"type":131,"tag":164,"props":4698,"children":4699},{"style":217},[4700],{"type":137,"value":250},{"type":131,"tag":164,"props":4702,"children":4703},{"style":177},[4704],{"type":137,"value":2863},{"type":131,"tag":164,"props":4706,"children":4707},{"style":217},[4708],{"type":137,"value":250},{"type":131,"tag":164,"props":4710,"children":4711},{"style":805},[4712],{"type":137,"value":1849},{"type":131,"tag":164,"props":4714,"children":4715},{"style":217},[4716],{"type":137,"value":255},{"type":131,"tag":164,"props":4718,"children":4719},{"class":166,"line":1080},[4720],{"type":131,"tag":164,"props":4721,"children":4722},{"emptyLinePlaceholder":262},[4723],{"type":137,"value":265},{"type":131,"tag":164,"props":4725,"children":4726},{"class":166,"line":1088},[4727,4731,4735,4739],{"type":131,"tag":164,"props":4728,"children":4729},{"style":211},[4730],{"type":137,"value":918},{"type":131,"tag":164,"props":4732,"children":4733},{"style":217},[4734],{"type":137,"value":220},{"type":131,"tag":164,"props":4736,"children":4737},{"style":223},[4738],{"type":137,"value":2759},{"type":131,"tag":164,"props":4740,"children":4741},{"style":217},[4742],{"type":137,"value":2910},{"type":131,"tag":164,"props":4744,"children":4745},{"class":166,"line":1122},[4746,4750,4754],{"type":131,"tag":164,"props":4747,"children":4748},{"style":217},[4749],{"type":137,"value":2005},{"type":131,"tag":164,"props":4751,"children":4752},{"style":805},[4753],{"type":137,"value":1558},{"type":131,"tag":164,"props":4755,"children":4756},{"style":217},[4757],{"type":137,"value":255},{"type":131,"tag":164,"props":4759,"children":4760},{"class":166,"line":1191},[4761],{"type":131,"tag":164,"props":4762,"children":4763},{"style":217},[4764],{"type":137,"value":1077},{"type":131,"tag":146,"props":4766,"children":4768},{"id":4767},"sandbox-snapshots-fast-startup",[4769],{"type":137,"value":4770},"Sandbox Snapshots (Fast Startup)",{"type":131,"tag":140,"props":4772,"children":4773},{},[4774,4776,4782],{"type":137,"value":4775},"A ",{"type":131,"tag":4777,"props":4778,"children":4779},"strong",{},[4780],{"type":137,"value":4781},"sandbox snapshot",{"type":137,"value":4783}," is a saved VM image of a Vercel Sandbox with system dependencies + agent-browser + Chromium already installed. Think of it like a Docker image -- instead of installing dependencies from scratch every time, the sandbox boots from the pre-built image.",{"type":131,"tag":140,"props":4785,"children":4786},{},[4787,4789,4795,4797,4803],{"type":137,"value":4788},"This is unrelated to agent-browser's ",{"type":131,"tag":4790,"props":4791,"children":4792},"em",{},[4793],{"type":137,"value":4794},"accessibility snapshot",{"type":137,"value":4796}," feature (",{"type":131,"tag":58,"props":4798,"children":4800},{"className":4799},[],[4801],{"type":137,"value":4802},"agent-browser snapshot",{"type":137,"value":4804},"), which dumps a page's accessibility tree. A sandbox snapshot is a Vercel infrastructure concept for fast VM startup.",{"type":131,"tag":140,"props":4806,"children":4807},{},[4808],{"type":137,"value":4809},"Without a sandbox snapshot, each run installs system deps + agent-browser + Chromium (~30s). With one, startup is sub-second.",{"type":131,"tag":4811,"props":4812,"children":4814},"h3",{"id":4813},"creating-a-sandbox-snapshot",[4815],{"type":137,"value":4816},"Creating a sandbox snapshot",{"type":131,"tag":140,"props":4818,"children":4819},{},[4820,4822,4828],{"type":137,"value":4821},"The snapshot must include system dependencies (via ",{"type":131,"tag":58,"props":4823,"children":4825},{"className":4824},[],[4826],{"type":137,"value":4827},"dnf",{"type":137,"value":4829},"), agent-browser, and Chromium:",{"type":131,"tag":153,"props":4831,"children":4833},{"className":199,"code":4832,"language":201,"meta":158,"style":158},"import { Sandbox } from \"@vercel\u002Fsandbox\";\n\nconst CHROMIUM_SYSTEM_DEPS = [\n  \"nss\", \"nspr\", \"libxkbcommon\", \"atk\", \"at-spi2-atk\", \"at-spi2-core\",\n  \"libXcomposite\", \"libXdamage\", \"libXrandr\", \"libXfixes\", \"libXcursor\",\n  \"libXi\", \"libXtst\", \"libXScrnSaver\", \"libXext\", \"mesa-libgbm\", \"libdrm\",\n  \"mesa-libGL\", \"mesa-libEGL\", \"cups-libs\", \"alsa-lib\", \"pango\", \"cairo\",\n  \"gtk3\", \"dbus-libs\",\n];\n\nasync function createSnapshot(): Promise\u003Cstring> {\n  const sandbox = await Sandbox.create({\n    runtime: \"node24\",\n    timeout: 300_000,\n  });\n\n  await sandbox.runCommand(\"sh\", [\n    \"-c\",\n    `sudo dnf clean all 2>&1 && sudo dnf install -y --skip-broken ${CHROMIUM_SYSTEM_DEPS.join(\" \")} 2>&1 && sudo ldconfig 2>&1`,\n  ]);\n  await sandbox.runCommand(\"npm\", [\"install\", \"-g\", \"agent-browser\"]);\n  await sandbox.runCommand(\"npx\", [\"agent-browser\", \"install\"]);\n\n  const snapshot = await sandbox.snapshot();\n  return snapshot.snapshotId;\n}\n",[4834],{"type":131,"tag":58,"props":4835,"children":4836},{"__ignoreMap":158},[4837,4876,4883,4902,5001,5084,5183,5282,5317,5328,5335,5376,5415,5443,5464,5479,5486,5530,5550,5610,5622,5717,5796,5803,5842,5865],{"type":131,"tag":164,"props":4838,"children":4839},{"class":166,"line":167},[4840,4844,4848,4852,4856,4860,4864,4868,4872],{"type":131,"tag":164,"props":4841,"children":4842},{"style":211},[4843],{"type":137,"value":214},{"type":131,"tag":164,"props":4845,"children":4846},{"style":217},[4847],{"type":137,"value":220},{"type":131,"tag":164,"props":4849,"children":4850},{"style":223},[4851],{"type":137,"value":226},{"type":131,"tag":164,"props":4853,"children":4854},{"style":217},[4855],{"type":137,"value":231},{"type":131,"tag":164,"props":4857,"children":4858},{"style":211},[4859],{"type":137,"value":236},{"type":131,"tag":164,"props":4861,"children":4862},{"style":217},[4863],{"type":137,"value":241},{"type":131,"tag":164,"props":4865,"children":4866},{"style":177},[4867],{"type":137,"value":43},{"type":131,"tag":164,"props":4869,"children":4870},{"style":217},[4871],{"type":137,"value":250},{"type":131,"tag":164,"props":4873,"children":4874},{"style":217},[4875],{"type":137,"value":255},{"type":131,"tag":164,"props":4877,"children":4878},{"class":166,"line":258},[4879],{"type":131,"tag":164,"props":4880,"children":4881},{"emptyLinePlaceholder":262},[4882],{"type":137,"value":265},{"type":131,"tag":164,"props":4884,"children":4885},{"class":166,"line":268},[4886,4890,4894,4898],{"type":131,"tag":164,"props":4887,"children":4888},{"style":281},[4889],{"type":137,"value":284},{"type":131,"tag":164,"props":4891,"children":4892},{"style":223},[4893],{"type":137,"value":289},{"type":131,"tag":164,"props":4895,"children":4896},{"style":217},[4897],{"type":137,"value":294},{"type":131,"tag":164,"props":4899,"children":4900},{"style":223},[4901],{"type":137,"value":299},{"type":131,"tag":164,"props":4903,"children":4904},{"class":166,"line":37},[4905,4909,4913,4917,4921,4925,4929,4933,4937,4941,4945,4949,4953,4957,4961,4965,4969,4973,4977,4981,4985,4989,4993,4997],{"type":131,"tag":164,"props":4906,"children":4907},{"style":217},[4908],{"type":137,"value":308},{"type":131,"tag":164,"props":4910,"children":4911},{"style":177},[4912],{"type":137,"value":313},{"type":131,"tag":164,"props":4914,"children":4915},{"style":217},[4916],{"type":137,"value":250},{"type":131,"tag":164,"props":4918,"children":4919},{"style":217},[4920],{"type":137,"value":322},{"type":131,"tag":164,"props":4922,"children":4923},{"style":217},[4924],{"type":137,"value":241},{"type":131,"tag":164,"props":4926,"children":4927},{"style":177},[4928],{"type":137,"value":331},{"type":131,"tag":164,"props":4930,"children":4931},{"style":217},[4932],{"type":137,"value":250},{"type":131,"tag":164,"props":4934,"children":4935},{"style":217},[4936],{"type":137,"value":322},{"type":131,"tag":164,"props":4938,"children":4939},{"style":217},[4940],{"type":137,"value":241},{"type":131,"tag":164,"props":4942,"children":4943},{"style":177},[4944],{"type":137,"value":348},{"type":131,"tag":164,"props":4946,"children":4947},{"style":217},[4948],{"type":137,"value":250},{"type":131,"tag":164,"props":4950,"children":4951},{"style":217},[4952],{"type":137,"value":322},{"type":131,"tag":164,"props":4954,"children":4955},{"style":217},[4956],{"type":137,"value":241},{"type":131,"tag":164,"props":4958,"children":4959},{"style":177},[4960],{"type":137,"value":365},{"type":131,"tag":164,"props":4962,"children":4963},{"style":217},[4964],{"type":137,"value":250},{"type":131,"tag":164,"props":4966,"children":4967},{"style":217},[4968],{"type":137,"value":322},{"type":131,"tag":164,"props":4970,"children":4971},{"style":217},[4972],{"type":137,"value":241},{"type":131,"tag":164,"props":4974,"children":4975},{"style":177},[4976],{"type":137,"value":382},{"type":131,"tag":164,"props":4978,"children":4979},{"style":217},[4980],{"type":137,"value":250},{"type":131,"tag":164,"props":4982,"children":4983},{"style":217},[4984],{"type":137,"value":322},{"type":131,"tag":164,"props":4986,"children":4987},{"style":217},[4988],{"type":137,"value":241},{"type":131,"tag":164,"props":4990,"children":4991},{"style":177},[4992],{"type":137,"value":399},{"type":131,"tag":164,"props":4994,"children":4995},{"style":217},[4996],{"type":137,"value":250},{"type":131,"tag":164,"props":4998,"children":4999},{"style":217},[5000],{"type":137,"value":408},{"type":131,"tag":164,"props":5002,"children":5003},{"class":166,"line":302},[5004,5008,5012,5016,5020,5024,5028,5032,5036,5040,5044,5048,5052,5056,5060,5064,5068,5072,5076,5080],{"type":131,"tag":164,"props":5005,"children":5006},{"style":217},[5007],{"type":137,"value":308},{"type":131,"tag":164,"props":5009,"children":5010},{"style":177},[5011],{"type":137,"value":421},{"type":131,"tag":164,"props":5013,"children":5014},{"style":217},[5015],{"type":137,"value":250},{"type":131,"tag":164,"props":5017,"children":5018},{"style":217},[5019],{"type":137,"value":322},{"type":131,"tag":164,"props":5021,"children":5022},{"style":217},[5023],{"type":137,"value":241},{"type":131,"tag":164,"props":5025,"children":5026},{"style":177},[5027],{"type":137,"value":438},{"type":131,"tag":164,"props":5029,"children":5030},{"style":217},[5031],{"type":137,"value":250},{"type":131,"tag":164,"props":5033,"children":5034},{"style":217},[5035],{"type":137,"value":322},{"type":131,"tag":164,"props":5037,"children":5038},{"style":217},[5039],{"type":137,"value":241},{"type":131,"tag":164,"props":5041,"children":5042},{"style":177},[5043],{"type":137,"value":455},{"type":131,"tag":164,"props":5045,"children":5046},{"style":217},[5047],{"type":137,"value":250},{"type":131,"tag":164,"props":5049,"children":5050},{"style":217},[5051],{"type":137,"value":322},{"type":131,"tag":164,"props":5053,"children":5054},{"style":217},[5055],{"type":137,"value":241},{"type":131,"tag":164,"props":5057,"children":5058},{"style":177},[5059],{"type":137,"value":472},{"type":131,"tag":164,"props":5061,"children":5062},{"style":217},[5063],{"type":137,"value":250},{"type":131,"tag":164,"props":5065,"children":5066},{"style":217},[5067],{"type":137,"value":322},{"type":131,"tag":164,"props":5069,"children":5070},{"style":217},[5071],{"type":137,"value":241},{"type":131,"tag":164,"props":5073,"children":5074},{"style":177},[5075],{"type":137,"value":489},{"type":131,"tag":164,"props":5077,"children":5078},{"style":217},[5079],{"type":137,"value":250},{"type":131,"tag":164,"props":5081,"children":5082},{"style":217},[5083],{"type":137,"value":408},{"type":131,"tag":164,"props":5085,"children":5086},{"class":166,"line":411},[5087,5091,5095,5099,5103,5107,5111,5115,5119,5123,5127,5131,5135,5139,5143,5147,5151,5155,5159,5163,5167,5171,5175,5179],{"type":131,"tag":164,"props":5088,"children":5089},{"style":217},[5090],{"type":137,"value":308},{"type":131,"tag":164,"props":5092,"children":5093},{"style":177},[5094],{"type":137,"value":510},{"type":131,"tag":164,"props":5096,"children":5097},{"style":217},[5098],{"type":137,"value":250},{"type":131,"tag":164,"props":5100,"children":5101},{"style":217},[5102],{"type":137,"value":322},{"type":131,"tag":164,"props":5104,"children":5105},{"style":217},[5106],{"type":137,"value":241},{"type":131,"tag":164,"props":5108,"children":5109},{"style":177},[5110],{"type":137,"value":527},{"type":131,"tag":164,"props":5112,"children":5113},{"style":217},[5114],{"type":137,"value":250},{"type":131,"tag":164,"props":5116,"children":5117},{"style":217},[5118],{"type":137,"value":322},{"type":131,"tag":164,"props":5120,"children":5121},{"style":217},[5122],{"type":137,"value":241},{"type":131,"tag":164,"props":5124,"children":5125},{"style":177},[5126],{"type":137,"value":544},{"type":131,"tag":164,"props":5128,"children":5129},{"style":217},[5130],{"type":137,"value":250},{"type":131,"tag":164,"props":5132,"children":5133},{"style":217},[5134],{"type":137,"value":322},{"type":131,"tag":164,"props":5136,"children":5137},{"style":217},[5138],{"type":137,"value":241},{"type":131,"tag":164,"props":5140,"children":5141},{"style":177},[5142],{"type":137,"value":561},{"type":131,"tag":164,"props":5144,"children":5145},{"style":217},[5146],{"type":137,"value":250},{"type":131,"tag":164,"props":5148,"children":5149},{"style":217},[5150],{"type":137,"value":322},{"type":131,"tag":164,"props":5152,"children":5153},{"style":217},[5154],{"type":137,"value":241},{"type":131,"tag":164,"props":5156,"children":5157},{"style":177},[5158],{"type":137,"value":578},{"type":131,"tag":164,"props":5160,"children":5161},{"style":217},[5162],{"type":137,"value":250},{"type":131,"tag":164,"props":5164,"children":5165},{"style":217},[5166],{"type":137,"value":322},{"type":131,"tag":164,"props":5168,"children":5169},{"style":217},[5170],{"type":137,"value":241},{"type":131,"tag":164,"props":5172,"children":5173},{"style":177},[5174],{"type":137,"value":595},{"type":131,"tag":164,"props":5176,"children":5177},{"style":217},[5178],{"type":137,"value":250},{"type":131,"tag":164,"props":5180,"children":5181},{"style":217},[5182],{"type":137,"value":408},{"type":131,"tag":164,"props":5184,"children":5185},{"class":166,"line":500},[5186,5190,5194,5198,5202,5206,5210,5214,5218,5222,5226,5230,5234,5238,5242,5246,5250,5254,5258,5262,5266,5270,5274,5278],{"type":131,"tag":164,"props":5187,"children":5188},{"style":217},[5189],{"type":137,"value":308},{"type":131,"tag":164,"props":5191,"children":5192},{"style":177},[5193],{"type":137,"value":616},{"type":131,"tag":164,"props":5195,"children":5196},{"style":217},[5197],{"type":137,"value":250},{"type":131,"tag":164,"props":5199,"children":5200},{"style":217},[5201],{"type":137,"value":322},{"type":131,"tag":164,"props":5203,"children":5204},{"style":217},[5205],{"type":137,"value":241},{"type":131,"tag":164,"props":5207,"children":5208},{"style":177},[5209],{"type":137,"value":633},{"type":131,"tag":164,"props":5211,"children":5212},{"style":217},[5213],{"type":137,"value":250},{"type":131,"tag":164,"props":5215,"children":5216},{"style":217},[5217],{"type":137,"value":322},{"type":131,"tag":164,"props":5219,"children":5220},{"style":217},[5221],{"type":137,"value":241},{"type":131,"tag":164,"props":5223,"children":5224},{"style":177},[5225],{"type":137,"value":650},{"type":131,"tag":164,"props":5227,"children":5228},{"style":217},[5229],{"type":137,"value":250},{"type":131,"tag":164,"props":5231,"children":5232},{"style":217},[5233],{"type":137,"value":322},{"type":131,"tag":164,"props":5235,"children":5236},{"style":217},[5237],{"type":137,"value":241},{"type":131,"tag":164,"props":5239,"children":5240},{"style":177},[5241],{"type":137,"value":667},{"type":131,"tag":164,"props":5243,"children":5244},{"style":217},[5245],{"type":137,"value":250},{"type":131,"tag":164,"props":5247,"children":5248},{"style":217},[5249],{"type":137,"value":322},{"type":131,"tag":164,"props":5251,"children":5252},{"style":217},[5253],{"type":137,"value":241},{"type":131,"tag":164,"props":5255,"children":5256},{"style":177},[5257],{"type":137,"value":684},{"type":131,"tag":164,"props":5259,"children":5260},{"style":217},[5261],{"type":137,"value":250},{"type":131,"tag":164,"props":5263,"children":5264},{"style":217},[5265],{"type":137,"value":322},{"type":131,"tag":164,"props":5267,"children":5268},{"style":217},[5269],{"type":137,"value":241},{"type":131,"tag":164,"props":5271,"children":5272},{"style":177},[5273],{"type":137,"value":701},{"type":131,"tag":164,"props":5275,"children":5276},{"style":217},[5277],{"type":137,"value":250},{"type":131,"tag":164,"props":5279,"children":5280},{"style":217},[5281],{"type":137,"value":408},{"type":131,"tag":164,"props":5283,"children":5284},{"class":166,"line":606},[5285,5289,5293,5297,5301,5305,5309,5313],{"type":131,"tag":164,"props":5286,"children":5287},{"style":217},[5288],{"type":137,"value":308},{"type":131,"tag":164,"props":5290,"children":5291},{"style":177},[5292],{"type":137,"value":722},{"type":131,"tag":164,"props":5294,"children":5295},{"style":217},[5296],{"type":137,"value":250},{"type":131,"tag":164,"props":5298,"children":5299},{"style":217},[5300],{"type":137,"value":322},{"type":131,"tag":164,"props":5302,"children":5303},{"style":217},[5304],{"type":137,"value":241},{"type":131,"tag":164,"props":5306,"children":5307},{"style":177},[5308],{"type":137,"value":739},{"type":131,"tag":164,"props":5310,"children":5311},{"style":217},[5312],{"type":137,"value":250},{"type":131,"tag":164,"props":5314,"children":5315},{"style":217},[5316],{"type":137,"value":408},{"type":131,"tag":164,"props":5318,"children":5319},{"class":166,"line":712},[5320,5324],{"type":131,"tag":164,"props":5321,"children":5322},{"style":223},[5323],{"type":137,"value":756},{"type":131,"tag":164,"props":5325,"children":5326},{"style":217},[5327],{"type":137,"value":255},{"type":131,"tag":164,"props":5329,"children":5330},{"class":166,"line":750},[5331],{"type":131,"tag":164,"props":5332,"children":5333},{"emptyLinePlaceholder":262},[5334],{"type":137,"value":265},{"type":131,"tag":164,"props":5336,"children":5337},{"class":166,"line":763},[5338,5342,5346,5351,5356,5360,5364,5368,5372],{"type":131,"tag":164,"props":5339,"children":5340},{"style":281},[5341],{"type":137,"value":1094},{"type":131,"tag":164,"props":5343,"children":5344},{"style":281},[5345],{"type":137,"value":1099},{"type":131,"tag":164,"props":5347,"children":5348},{"style":780},[5349],{"type":137,"value":5350}," createSnapshot",{"type":131,"tag":164,"props":5352,"children":5353},{"style":217},[5354],{"type":137,"value":5355},"():",{"type":131,"tag":164,"props":5357,"children":5358},{"style":171},[5359],{"type":137,"value":1175},{"type":131,"tag":164,"props":5361,"children":5362},{"style":217},[5363],{"type":137,"value":1109},{"type":131,"tag":164,"props":5365,"children":5366},{"style":171},[5367],{"type":137,"value":3675},{"type":131,"tag":164,"props":5369,"children":5370},{"style":217},[5371],{"type":137,"value":1214},{"type":131,"tag":164,"props":5373,"children":5374},{"style":217},[5375],{"type":137,"value":793},{"type":131,"tag":164,"props":5377,"children":5378},{"class":166,"line":771},[5379,5383,5387,5391,5395,5399,5403,5407,5411],{"type":131,"tag":164,"props":5380,"children":5381},{"style":281},[5382],{"type":137,"value":1227},{"type":131,"tag":164,"props":5384,"children":5385},{"style":223},[5386],{"type":137,"value":1312},{"type":131,"tag":164,"props":5388,"children":5389},{"style":217},[5390],{"type":137,"value":1237},{"type":131,"tag":164,"props":5392,"children":5393},{"style":211},[5394],{"type":137,"value":1335},{"type":131,"tag":164,"props":5396,"children":5397},{"style":223},[5398],{"type":137,"value":226},{"type":131,"tag":164,"props":5400,"children":5401},{"style":217},[5402],{"type":137,"value":822},{"type":131,"tag":164,"props":5404,"children":5405},{"style":780},[5406],{"type":137,"value":1348},{"type":131,"tag":164,"props":5408,"children":5409},{"style":805},[5410],{"type":137,"value":1353},{"type":131,"tag":164,"props":5412,"children":5413},{"style":217},[5414],{"type":137,"value":909},{"type":131,"tag":164,"props":5416,"children":5417},{"class":166,"line":796},[5418,5423,5427,5431,5435,5439],{"type":131,"tag":164,"props":5419,"children":5420},{"style":805},[5421],{"type":137,"value":5422},"    runtime",{"type":131,"tag":164,"props":5424,"children":5425},{"style":217},[5426],{"type":137,"value":936},{"type":131,"tag":164,"props":5428,"children":5429},{"style":217},[5430],{"type":137,"value":241},{"type":131,"tag":164,"props":5432,"children":5433},{"style":177},[5434],{"type":137,"value":1528},{"type":131,"tag":164,"props":5436,"children":5437},{"style":217},[5438],{"type":137,"value":250},{"type":131,"tag":164,"props":5440,"children":5441},{"style":217},[5442],{"type":137,"value":408},{"type":131,"tag":164,"props":5444,"children":5445},{"class":166,"line":811},[5446,5451,5455,5460],{"type":131,"tag":164,"props":5447,"children":5448},{"style":805},[5449],{"type":137,"value":5450},"    timeout",{"type":131,"tag":164,"props":5452,"children":5453},{"style":217},[5454],{"type":137,"value":936},{"type":131,"tag":164,"props":5456,"children":5457},{"style":1442},[5458],{"type":137,"value":5459}," 300_000",{"type":131,"tag":164,"props":5461,"children":5462},{"style":217},[5463],{"type":137,"value":408},{"type":131,"tag":164,"props":5465,"children":5466},{"class":166,"line":844},[5467,5471,5475],{"type":131,"tag":164,"props":5468,"children":5469},{"style":217},[5470],{"type":137,"value":2005},{"type":131,"tag":164,"props":5472,"children":5473},{"style":805},[5474],{"type":137,"value":1558},{"type":131,"tag":164,"props":5476,"children":5477},{"style":217},[5478],{"type":137,"value":255},{"type":131,"tag":164,"props":5480,"children":5481},{"class":166,"line":873},[5482],{"type":131,"tag":164,"props":5483,"children":5484},{"emptyLinePlaceholder":262},[5485],{"type":137,"value":265},{"type":131,"tag":164,"props":5487,"children":5488},{"class":166,"line":898},[5489,5494,5498,5502,5506,5510,5514,5518,5522,5526],{"type":131,"tag":164,"props":5490,"children":5491},{"style":211},[5492],{"type":137,"value":5493},"  await",{"type":131,"tag":164,"props":5495,"children":5496},{"style":223},[5497],{"type":137,"value":1312},{"type":131,"tag":164,"props":5499,"children":5500},{"style":217},[5501],{"type":137,"value":822},{"type":131,"tag":164,"props":5503,"children":5504},{"style":780},[5505],{"type":137,"value":1623},{"type":131,"tag":164,"props":5507,"children":5508},{"style":805},[5509],{"type":137,"value":1353},{"type":131,"tag":164,"props":5511,"children":5512},{"style":217},[5513],{"type":137,"value":250},{"type":131,"tag":164,"props":5515,"children":5516},{"style":177},[5517],{"type":137,"value":1636},{"type":131,"tag":164,"props":5519,"children":5520},{"style":217},[5521],{"type":137,"value":250},{"type":131,"tag":164,"props":5523,"children":5524},{"style":217},[5525],{"type":137,"value":322},{"type":131,"tag":164,"props":5527,"children":5528},{"style":805},[5529],{"type":137,"value":299},{"type":131,"tag":164,"props":5531,"children":5532},{"class":166,"line":912},[5533,5538,5542,5546],{"type":131,"tag":164,"props":5534,"children":5535},{"style":217},[5536],{"type":137,"value":5537},"    \"",{"type":131,"tag":164,"props":5539,"children":5540},{"style":177},[5541],{"type":137,"value":1662},{"type":131,"tag":164,"props":5543,"children":5544},{"style":217},[5545],{"type":137,"value":250},{"type":131,"tag":164,"props":5547,"children":5548},{"style":217},[5549],{"type":137,"value":408},{"type":131,"tag":164,"props":5551,"children":5552},{"class":166,"line":925},[5553,5558,5562,5566,5570,5574,5578,5582,5586,5590,5594,5598,5602,5606],{"type":131,"tag":164,"props":5554,"children":5555},{"style":217},[5556],{"type":137,"value":5557},"    `",{"type":131,"tag":164,"props":5559,"children":5560},{"style":177},[5561],{"type":137,"value":1684},{"type":131,"tag":164,"props":5563,"children":5564},{"style":217},[5565],{"type":137,"value":1689},{"type":131,"tag":164,"props":5567,"children":5568},{"style":223},[5569],{"type":137,"value":1694},{"type":131,"tag":164,"props":5571,"children":5572},{"style":217},[5573],{"type":137,"value":822},{"type":131,"tag":164,"props":5575,"children":5576},{"style":780},[5577],{"type":137,"value":1703},{"type":131,"tag":164,"props":5579,"children":5580},{"style":223},[5581],{"type":137,"value":1353},{"type":131,"tag":164,"props":5583,"children":5584},{"style":217},[5585],{"type":137,"value":250},{"type":131,"tag":164,"props":5587,"children":5588},{"style":217},[5589],{"type":137,"value":241},{"type":131,"tag":164,"props":5591,"children":5592},{"style":223},[5593],{"type":137,"value":1558},{"type":131,"tag":164,"props":5595,"children":5596},{"style":217},[5597],{"type":137,"value":1724},{"type":131,"tag":164,"props":5599,"children":5600},{"style":177},[5601],{"type":137,"value":1729},{"type":131,"tag":164,"props":5603,"children":5604},{"style":217},[5605],{"type":137,"value":1734},{"type":131,"tag":164,"props":5607,"children":5608},{"style":217},[5609],{"type":137,"value":408},{"type":131,"tag":164,"props":5611,"children":5612},{"class":166,"line":964},[5613,5618],{"type":131,"tag":164,"props":5614,"children":5615},{"style":805},[5616],{"type":137,"value":5617},"  ])",{"type":131,"tag":164,"props":5619,"children":5620},{"style":217},[5621],{"type":137,"value":255},{"type":131,"tag":164,"props":5623,"children":5624},{"class":166,"line":1001},[5625,5629,5633,5637,5641,5645,5649,5653,5657,5661,5665,5669,5673,5677,5681,5685,5689,5693,5697,5701,5705,5709,5713],{"type":131,"tag":164,"props":5626,"children":5627},{"style":211},[5628],{"type":137,"value":5493},{"type":131,"tag":164,"props":5630,"children":5631},{"style":223},[5632],{"type":137,"value":1312},{"type":131,"tag":164,"props":5634,"children":5635},{"style":217},[5636],{"type":137,"value":822},{"type":131,"tag":164,"props":5638,"children":5639},{"style":780},[5640],{"type":137,"value":1623},{"type":131,"tag":164,"props":5642,"children":5643},{"style":805},[5644],{"type":137,"value":1353},{"type":131,"tag":164,"props":5646,"children":5647},{"style":217},[5648],{"type":137,"value":250},{"type":131,"tag":164,"props":5650,"children":5651},{"style":177},[5652],{"type":137,"value":1784},{"type":131,"tag":164,"props":5654,"children":5655},{"style":217},[5656],{"type":137,"value":250},{"type":131,"tag":164,"props":5658,"children":5659},{"style":217},[5660],{"type":137,"value":322},{"type":131,"tag":164,"props":5662,"children":5663},{"style":805},[5664],{"type":137,"value":1797},{"type":131,"tag":164,"props":5666,"children":5667},{"style":217},[5668],{"type":137,"value":250},{"type":131,"tag":164,"props":5670,"children":5671},{"style":177},[5672],{"type":137,"value":1806},{"type":131,"tag":164,"props":5674,"children":5675},{"style":217},[5676],{"type":137,"value":250},{"type":131,"tag":164,"props":5678,"children":5679},{"style":217},[5680],{"type":137,"value":322},{"type":131,"tag":164,"props":5682,"children":5683},{"style":217},[5684],{"type":137,"value":241},{"type":131,"tag":164,"props":5686,"children":5687},{"style":177},[5688],{"type":137,"value":1823},{"type":131,"tag":164,"props":5690,"children":5691},{"style":217},[5692],{"type":137,"value":250},{"type":131,"tag":164,"props":5694,"children":5695},{"style":217},[5696],{"type":137,"value":322},{"type":131,"tag":164,"props":5698,"children":5699},{"style":217},[5700],{"type":137,"value":241},{"type":131,"tag":164,"props":5702,"children":5703},{"style":177},[5704],{"type":137,"value":1840},{"type":131,"tag":164,"props":5706,"children":5707},{"style":217},[5708],{"type":137,"value":250},{"type":131,"tag":164,"props":5710,"children":5711},{"style":805},[5712],{"type":137,"value":1849},{"type":131,"tag":164,"props":5714,"children":5715},{"style":217},[5716],{"type":137,"value":255},{"type":131,"tag":164,"props":5718,"children":5719},{"class":166,"line":1039},[5720,5724,5728,5732,5736,5740,5744,5748,5752,5756,5760,5764,5768,5772,5776,5780,5784,5788,5792],{"type":131,"tag":164,"props":5721,"children":5722},{"style":211},[5723],{"type":137,"value":5493},{"type":131,"tag":164,"props":5725,"children":5726},{"style":223},[5727],{"type":137,"value":1312},{"type":131,"tag":164,"props":5729,"children":5730},{"style":217},[5731],{"type":137,"value":822},{"type":131,"tag":164,"props":5733,"children":5734},{"style":780},[5735],{"type":137,"value":1623},{"type":131,"tag":164,"props":5737,"children":5738},{"style":805},[5739],{"type":137,"value":1353},{"type":131,"tag":164,"props":5741,"children":5742},{"style":217},[5743],{"type":137,"value":250},{"type":131,"tag":164,"props":5745,"children":5746},{"style":177},[5747],{"type":137,"value":1886},{"type":131,"tag":164,"props":5749,"children":5750},{"style":217},[5751],{"type":137,"value":250},{"type":131,"tag":164,"props":5753,"children":5754},{"style":217},[5755],{"type":137,"value":322},{"type":131,"tag":164,"props":5757,"children":5758},{"style":805},[5759],{"type":137,"value":1797},{"type":131,"tag":164,"props":5761,"children":5762},{"style":217},[5763],{"type":137,"value":250},{"type":131,"tag":164,"props":5765,"children":5766},{"style":177},[5767],{"type":137,"value":1840},{"type":131,"tag":164,"props":5769,"children":5770},{"style":217},[5771],{"type":137,"value":250},{"type":131,"tag":164,"props":5773,"children":5774},{"style":217},[5775],{"type":137,"value":322},{"type":131,"tag":164,"props":5777,"children":5778},{"style":217},[5779],{"type":137,"value":241},{"type":131,"tag":164,"props":5781,"children":5782},{"style":177},[5783],{"type":137,"value":1806},{"type":131,"tag":164,"props":5785,"children":5786},{"style":217},[5787],{"type":137,"value":250},{"type":131,"tag":164,"props":5789,"children":5790},{"style":805},[5791],{"type":137,"value":1849},{"type":131,"tag":164,"props":5793,"children":5794},{"style":217},[5795],{"type":137,"value":255},{"type":131,"tag":164,"props":5797,"children":5798},{"class":166,"line":1048},[5799],{"type":131,"tag":164,"props":5800,"children":5801},{"emptyLinePlaceholder":262},[5802],{"type":137,"value":265},{"type":131,"tag":164,"props":5804,"children":5805},{"class":166,"line":1057},[5806,5810,5814,5818,5822,5826,5830,5834,5838],{"type":131,"tag":164,"props":5807,"children":5808},{"style":281},[5809],{"type":137,"value":1227},{"type":131,"tag":164,"props":5811,"children":5812},{"style":223},[5813],{"type":137,"value":3440},{"type":131,"tag":164,"props":5815,"children":5816},{"style":217},[5817],{"type":137,"value":1237},{"type":131,"tag":164,"props":5819,"children":5820},{"style":211},[5821],{"type":137,"value":1335},{"type":131,"tag":164,"props":5823,"children":5824},{"style":223},[5825],{"type":137,"value":1312},{"type":131,"tag":164,"props":5827,"children":5828},{"style":217},[5829],{"type":137,"value":822},{"type":131,"tag":164,"props":5831,"children":5832},{"style":780},[5833],{"type":137,"value":1409},{"type":131,"tag":164,"props":5835,"children":5836},{"style":805},[5837],{"type":137,"value":788},{"type":131,"tag":164,"props":5839,"children":5840},{"style":217},[5841],{"type":137,"value":255},{"type":131,"tag":164,"props":5843,"children":5844},{"class":166,"line":1071},[5845,5849,5853,5857,5861],{"type":131,"tag":164,"props":5846,"children":5847},{"style":211},[5848],{"type":137,"value":1063},{"type":131,"tag":164,"props":5850,"children":5851},{"style":223},[5852],{"type":137,"value":3440},{"type":131,"tag":164,"props":5854,"children":5855},{"style":217},[5856],{"type":137,"value":822},{"type":131,"tag":164,"props":5858,"children":5859},{"style":223},[5860],{"type":137,"value":1592},{"type":131,"tag":164,"props":5862,"children":5863},{"style":217},[5864],{"type":137,"value":255},{"type":131,"tag":164,"props":5866,"children":5867},{"class":166,"line":1080},[5868],{"type":131,"tag":164,"props":5869,"children":5870},{"style":217},[5871],{"type":137,"value":1077},{"type":131,"tag":140,"props":5873,"children":5874},{},[5875],{"type":137,"value":5876},"Run this once, then set the environment variable:",{"type":131,"tag":153,"props":5878,"children":5880},{"className":155,"code":5879,"language":157,"meta":158,"style":158},"AGENT_BROWSER_SNAPSHOT_ID=snap_xxxxxxxxxxxx\n",[5881],{"type":131,"tag":58,"props":5882,"children":5883},{"__ignoreMap":158},[5884],{"type":131,"tag":164,"props":5885,"children":5886},{"class":166,"line":167},[5887,5891,5895],{"type":131,"tag":164,"props":5888,"children":5889},{"style":223},[5890],{"type":137,"value":1258},{"type":131,"tag":164,"props":5892,"children":5893},{"style":217},[5894],{"type":137,"value":294},{"type":131,"tag":164,"props":5896,"children":5897},{"style":177},[5898],{"type":137,"value":5899},"snap_xxxxxxxxxxxx\n",{"type":131,"tag":140,"props":5901,"children":5902},{},[5903],{"type":137,"value":5904},"A helper script is available in the demo app:",{"type":131,"tag":153,"props":5906,"children":5908},{"className":155,"code":5907,"language":157,"meta":158,"style":158},"npx tsx examples\u002Fenvironments\u002Fscripts\u002Fcreate-snapshot.ts\n",[5909],{"type":131,"tag":58,"props":5910,"children":5911},{"__ignoreMap":158},[5912],{"type":131,"tag":164,"props":5913,"children":5914},{"class":166,"line":167},[5915,5919,5924],{"type":131,"tag":164,"props":5916,"children":5917},{"style":171},[5918],{"type":137,"value":1886},{"type":131,"tag":164,"props":5920,"children":5921},{"style":177},[5922],{"type":137,"value":5923}," tsx",{"type":131,"tag":164,"props":5925,"children":5926},{"style":177},[5927],{"type":137,"value":5928}," examples\u002Fenvironments\u002Fscripts\u002Fcreate-snapshot.ts\n",{"type":131,"tag":140,"props":5930,"children":5931},{},[5932],{"type":137,"value":5933},"Recommended for any production deployment using the Sandbox pattern.",{"type":131,"tag":146,"props":5935,"children":5937},{"id":5936},"authentication",[5938],{"type":137,"value":5939},"Authentication",{"type":131,"tag":140,"props":5941,"children":5942},{},[5943],{"type":137,"value":5944},"On Vercel deployments, the Sandbox SDK authenticates automatically via OIDC. For local development or explicit control, set:",{"type":131,"tag":153,"props":5946,"children":5948},{"className":155,"code":5947,"language":157,"meta":158,"style":158},"VERCEL_TOKEN=\u003Cpersonal-access-token>\nVERCEL_TEAM_ID=\u003Cteam-id>\nVERCEL_PROJECT_ID=\u003Cproject-id>\n",[5949],{"type":131,"tag":58,"props":5950,"children":5951},{"__ignoreMap":158},[5952,5974,5994],{"type":131,"tag":164,"props":5953,"children":5954},{"class":166,"line":167},[5955,5959,5964,5969],{"type":131,"tag":164,"props":5956,"children":5957},{"style":223},[5958],{"type":137,"value":836},{"type":131,"tag":164,"props":5960,"children":5961},{"style":217},[5962],{"type":137,"value":5963},"=\u003C",{"type":131,"tag":164,"props":5965,"children":5966},{"style":177},[5967],{"type":137,"value":5968},"personal-access-token",{"type":131,"tag":164,"props":5970,"children":5971},{"style":217},[5972],{"type":137,"value":5973},">\n",{"type":131,"tag":164,"props":5975,"children":5976},{"class":166,"line":258},[5977,5981,5985,5990],{"type":131,"tag":164,"props":5978,"children":5979},{"style":223},[5980],{"type":137,"value":866},{"type":131,"tag":164,"props":5982,"children":5983},{"style":217},[5984],{"type":137,"value":5963},{"type":131,"tag":164,"props":5986,"children":5987},{"style":177},[5988],{"type":137,"value":5989},"team-id",{"type":131,"tag":164,"props":5991,"children":5992},{"style":217},[5993],{"type":137,"value":5973},{"type":131,"tag":164,"props":5995,"children":5996},{"class":166,"line":268},[5997,6001,6005,6010],{"type":131,"tag":164,"props":5998,"children":5999},{"style":223},[6000],{"type":137,"value":1032},{"type":131,"tag":164,"props":6002,"children":6003},{"style":217},[6004],{"type":137,"value":5963},{"type":131,"tag":164,"props":6006,"children":6007},{"style":177},[6008],{"type":137,"value":6009},"project-id",{"type":131,"tag":164,"props":6011,"children":6012},{"style":217},[6013],{"type":137,"value":5973},{"type":131,"tag":140,"props":6015,"children":6016},{},[6017,6019,6025,6027,6033],{"type":137,"value":6018},"These are spread into ",{"type":131,"tag":58,"props":6020,"children":6022},{"className":6021},[],[6023],{"type":137,"value":6024},"Sandbox.create()",{"type":137,"value":6026}," calls. When absent, the SDK falls back to ",{"type":131,"tag":58,"props":6028,"children":6030},{"className":6029},[],[6031],{"type":137,"value":6032},"VERCEL_OIDC_TOKEN",{"type":137,"value":6034}," (automatic on Vercel).",{"type":131,"tag":146,"props":6036,"children":6038},{"id":6037},"scheduled-workflows-cron",[6039],{"type":137,"value":6040},"Scheduled Workflows (Cron)",{"type":131,"tag":140,"props":6042,"children":6043},{},[6044],{"type":137,"value":6045},"Combine with Vercel Cron Jobs for recurring browser tasks:",{"type":131,"tag":153,"props":6047,"children":6049},{"className":199,"code":6048,"language":201,"meta":158,"style":158},"\u002F\u002F app\u002Fapi\u002Fcron\u002Froute.ts  (or equivalent in your framework)\nexport async function GET() {\n  const result = await withBrowser(async (sandbox) => {\n    await sandbox.runCommand(\"agent-browser\", [\"open\", \"https:\u002F\u002Fexample.com\u002Fpricing\"]);\n    const snap = await sandbox.runCommand(\"agent-browser\", [\"snapshot\", \"-i\", \"-c\"]);\n    await sandbox.runCommand(\"agent-browser\", [\"close\"]);\n    return await snap.stdout();\n  });\n\n  \u002F\u002F Process results, send alerts, store data...\n  return Response.json({ ok: true, snapshot: result });\n}\n",[6050],{"type":131,"tag":58,"props":6051,"children":6052},{"__ignoreMap":158},[6053,6061,6089,6141,6221,6329,6392,6423,6438,6445,6453,6525],{"type":131,"tag":164,"props":6054,"children":6055},{"class":166,"line":167},[6056],{"type":131,"tag":164,"props":6057,"children":6058},{"style":272},[6059],{"type":137,"value":6060},"\u002F\u002F app\u002Fapi\u002Fcron\u002Froute.ts  (or equivalent in your framework)\n",{"type":131,"tag":164,"props":6062,"children":6063},{"class":166,"line":258},[6064,6068,6072,6076,6081,6085],{"type":131,"tag":164,"props":6065,"children":6066},{"style":211},[6067],{"type":137,"value":2093},{"type":131,"tag":164,"props":6069,"children":6070},{"style":281},[6071],{"type":137,"value":2098},{"type":131,"tag":164,"props":6073,"children":6074},{"style":281},[6075],{"type":137,"value":1099},{"type":131,"tag":164,"props":6077,"children":6078},{"style":780},[6079],{"type":137,"value":6080}," GET",{"type":131,"tag":164,"props":6082,"children":6083},{"style":217},[6084],{"type":137,"value":788},{"type":131,"tag":164,"props":6086,"children":6087},{"style":217},[6088],{"type":137,"value":793},{"type":131,"tag":164,"props":6090,"children":6091},{"class":166,"line":268},[6092,6096,6101,6105,6109,6113,6117,6121,6125,6129,6133,6137],{"type":131,"tag":164,"props":6093,"children":6094},{"style":281},[6095],{"type":137,"value":1227},{"type":131,"tag":164,"props":6097,"children":6098},{"style":223},[6099],{"type":137,"value":6100}," result",{"type":131,"tag":164,"props":6102,"children":6103},{"style":217},[6104],{"type":137,"value":1237},{"type":131,"tag":164,"props":6106,"children":6107},{"style":211},[6108],{"type":137,"value":1335},{"type":131,"tag":164,"props":6110,"children":6111},{"style":780},[6112],{"type":137,"value":1104},{"type":131,"tag":164,"props":6114,"children":6115},{"style":805},[6116],{"type":137,"value":1353},{"type":131,"tag":164,"props":6118,"children":6119},{"style":281},[6120],{"type":137,"value":1094},{"type":131,"tag":164,"props":6122,"children":6123},{"style":217},[6124],{"type":137,"value":1137},{"type":131,"tag":164,"props":6126,"children":6127},{"style":1140},[6128],{"type":137,"value":51},{"type":131,"tag":164,"props":6130,"children":6131},{"style":217},[6132],{"type":137,"value":1558},{"type":131,"tag":164,"props":6134,"children":6135},{"style":281},[6136],{"type":137,"value":1170},{"type":131,"tag":164,"props":6138,"children":6139},{"style":217},[6140],{"type":137,"value":793},{"type":131,"tag":164,"props":6142,"children":6143},{"class":166,"line":37},[6144,6148,6152,6156,6160,6164,6168,6172,6176,6180,6184,6188,6192,6196,6200,6204,6209,6213,6217],{"type":131,"tag":164,"props":6145,"children":6146},{"style":211},[6147],{"type":137,"value":1610},{"type":131,"tag":164,"props":6149,"children":6150},{"style":223},[6151],{"type":137,"value":1312},{"type":131,"tag":164,"props":6153,"children":6154},{"style":217},[6155],{"type":137,"value":822},{"type":131,"tag":164,"props":6157,"children":6158},{"style":780},[6159],{"type":137,"value":1623},{"type":131,"tag":164,"props":6161,"children":6162},{"style":805},[6163],{"type":137,"value":1353},{"type":131,"tag":164,"props":6165,"children":6166},{"style":217},[6167],{"type":137,"value":250},{"type":131,"tag":164,"props":6169,"children":6170},{"style":177},[6171],{"type":137,"value":1840},{"type":131,"tag":164,"props":6173,"children":6174},{"style":217},[6175],{"type":137,"value":250},{"type":131,"tag":164,"props":6177,"children":6178},{"style":217},[6179],{"type":137,"value":322},{"type":131,"tag":164,"props":6181,"children":6182},{"style":805},[6183],{"type":137,"value":1797},{"type":131,"tag":164,"props":6185,"children":6186},{"style":217},[6187],{"type":137,"value":250},{"type":131,"tag":164,"props":6189,"children":6190},{"style":177},[6191],{"type":137,"value":2224},{"type":131,"tag":164,"props":6193,"children":6194},{"style":217},[6195],{"type":137,"value":250},{"type":131,"tag":164,"props":6197,"children":6198},{"style":217},[6199],{"type":137,"value":322},{"type":131,"tag":164,"props":6201,"children":6202},{"style":217},[6203],{"type":137,"value":241},{"type":131,"tag":164,"props":6205,"children":6206},{"style":177},[6207],{"type":137,"value":6208},"https:\u002F\u002Fexample.com\u002Fpricing",{"type":131,"tag":164,"props":6210,"children":6211},{"style":217},[6212],{"type":137,"value":250},{"type":131,"tag":164,"props":6214,"children":6215},{"style":805},[6216],{"type":137,"value":1849},{"type":131,"tag":164,"props":6218,"children":6219},{"style":217},[6220],{"type":137,"value":255},{"type":131,"tag":164,"props":6222,"children":6223},{"class":166,"line":302},[6224,6228,6233,6237,6241,6245,6249,6253,6257,6261,6265,6269,6273,6277,6281,6285,6289,6293,6297,6301,6305,6309,6313,6317,6321,6325],{"type":131,"tag":164,"props":6225,"children":6226},{"style":281},[6227],{"type":137,"value":2260},{"type":131,"tag":164,"props":6229,"children":6230},{"style":223},[6231],{"type":137,"value":6232}," snap",{"type":131,"tag":164,"props":6234,"children":6235},{"style":217},[6236],{"type":137,"value":1237},{"type":131,"tag":164,"props":6238,"children":6239},{"style":211},[6240],{"type":137,"value":1335},{"type":131,"tag":164,"props":6242,"children":6243},{"style":223},[6244],{"type":137,"value":1312},{"type":131,"tag":164,"props":6246,"children":6247},{"style":217},[6248],{"type":137,"value":822},{"type":131,"tag":164,"props":6250,"children":6251},{"style":780},[6252],{"type":137,"value":1623},{"type":131,"tag":164,"props":6254,"children":6255},{"style":805},[6256],{"type":137,"value":1353},{"type":131,"tag":164,"props":6258,"children":6259},{"style":217},[6260],{"type":137,"value":250},{"type":131,"tag":164,"props":6262,"children":6263},{"style":177},[6264],{"type":137,"value":1840},{"type":131,"tag":164,"props":6266,"children":6267},{"style":217},[6268],{"type":137,"value":250},{"type":131,"tag":164,"props":6270,"children":6271},{"style":217},[6272],{"type":137,"value":322},{"type":131,"tag":164,"props":6274,"children":6275},{"style":805},[6276],{"type":137,"value":1797},{"type":131,"tag":164,"props":6278,"children":6279},{"style":217},[6280],{"type":137,"value":250},{"type":131,"tag":164,"props":6282,"children":6283},{"style":177},[6284],{"type":137,"value":1409},{"type":131,"tag":164,"props":6286,"children":6287},{"style":217},[6288],{"type":137,"value":250},{"type":131,"tag":164,"props":6290,"children":6291},{"style":217},[6292],{"type":137,"value":322},{"type":131,"tag":164,"props":6294,"children":6295},{"style":217},[6296],{"type":137,"value":241},{"type":131,"tag":164,"props":6298,"children":6299},{"style":177},[6300],{"type":137,"value":3393},{"type":131,"tag":164,"props":6302,"children":6303},{"style":217},[6304],{"type":137,"value":250},{"type":131,"tag":164,"props":6306,"children":6307},{"style":217},[6308],{"type":137,"value":322},{"type":131,"tag":164,"props":6310,"children":6311},{"style":217},[6312],{"type":137,"value":241},{"type":131,"tag":164,"props":6314,"children":6315},{"style":177},[6316],{"type":137,"value":1662},{"type":131,"tag":164,"props":6318,"children":6319},{"style":217},[6320],{"type":137,"value":250},{"type":131,"tag":164,"props":6322,"children":6323},{"style":805},[6324],{"type":137,"value":1849},{"type":131,"tag":164,"props":6326,"children":6327},{"style":217},[6328],{"type":137,"value":255},{"type":131,"tag":164,"props":6330,"children":6331},{"class":166,"line":411},[6332,6336,6340,6344,6348,6352,6356,6360,6364,6368,6372,6376,6380,6384,6388],{"type":131,"tag":164,"props":6333,"children":6334},{"style":211},[6335],{"type":137,"value":1610},{"type":131,"tag":164,"props":6337,"children":6338},{"style":223},[6339],{"type":137,"value":1312},{"type":131,"tag":164,"props":6341,"children":6342},{"style":217},[6343],{"type":137,"value":822},{"type":131,"tag":164,"props":6345,"children":6346},{"style":780},[6347],{"type":137,"value":1623},{"type":131,"tag":164,"props":6349,"children":6350},{"style":805},[6351],{"type":137,"value":1353},{"type":131,"tag":164,"props":6353,"children":6354},{"style":217},[6355],{"type":137,"value":250},{"type":131,"tag":164,"props":6357,"children":6358},{"style":177},[6359],{"type":137,"value":1840},{"type":131,"tag":164,"props":6361,"children":6362},{"style":217},[6363],{"type":137,"value":250},{"type":131,"tag":164,"props":6365,"children":6366},{"style":217},[6367],{"type":137,"value":322},{"type":131,"tag":164,"props":6369,"children":6370},{"style":805},[6371],{"type":137,"value":1797},{"type":131,"tag":164,"props":6373,"children":6374},{"style":217},[6375],{"type":137,"value":250},{"type":131,"tag":164,"props":6377,"children":6378},{"style":177},[6379],{"type":137,"value":2863},{"type":131,"tag":164,"props":6381,"children":6382},{"style":217},[6383],{"type":137,"value":250},{"type":131,"tag":164,"props":6385,"children":6386},{"style":805},[6387],{"type":137,"value":1849},{"type":131,"tag":164,"props":6389,"children":6390},{"style":217},[6391],{"type":137,"value":255},{"type":131,"tag":164,"props":6393,"children":6394},{"class":166,"line":500},[6395,6399,6403,6407,6411,6415,6419],{"type":131,"tag":164,"props":6396,"children":6397},{"style":211},[6398],{"type":137,"value":918},{"type":131,"tag":164,"props":6400,"children":6401},{"style":211},[6402],{"type":137,"value":1335},{"type":131,"tag":164,"props":6404,"children":6405},{"style":223},[6406],{"type":137,"value":6232},{"type":131,"tag":164,"props":6408,"children":6409},{"style":217},[6410],{"type":137,"value":822},{"type":131,"tag":164,"props":6412,"children":6413},{"style":780},[6414],{"type":137,"value":2426},{"type":131,"tag":164,"props":6416,"children":6417},{"style":805},[6418],{"type":137,"value":788},{"type":131,"tag":164,"props":6420,"children":6421},{"style":217},[6422],{"type":137,"value":255},{"type":131,"tag":164,"props":6424,"children":6425},{"class":166,"line":606},[6426,6430,6434],{"type":131,"tag":164,"props":6427,"children":6428},{"style":217},[6429],{"type":137,"value":2005},{"type":131,"tag":164,"props":6431,"children":6432},{"style":805},[6433],{"type":137,"value":1558},{"type":131,"tag":164,"props":6435,"children":6436},{"style":217},[6437],{"type":137,"value":255},{"type":131,"tag":164,"props":6439,"children":6440},{"class":166,"line":712},[6441],{"type":131,"tag":164,"props":6442,"children":6443},{"emptyLinePlaceholder":262},[6444],{"type":137,"value":265},{"type":131,"tag":164,"props":6446,"children":6447},{"class":166,"line":750},[6448],{"type":131,"tag":164,"props":6449,"children":6450},{"style":272},[6451],{"type":137,"value":6452},"  \u002F\u002F Process results, send alerts, store data...\n",{"type":131,"tag":164,"props":6454,"children":6455},{"class":166,"line":763},[6456,6460,6465,6469,6474,6478,6482,6487,6491,6497,6501,6505,6509,6513,6517,6521],{"type":131,"tag":164,"props":6457,"children":6458},{"style":211},[6459],{"type":137,"value":1063},{"type":131,"tag":164,"props":6461,"children":6462},{"style":223},[6463],{"type":137,"value":6464}," Response",{"type":131,"tag":164,"props":6466,"children":6467},{"style":217},[6468],{"type":137,"value":822},{"type":131,"tag":164,"props":6470,"children":6471},{"style":780},[6472],{"type":137,"value":6473},"json",{"type":131,"tag":164,"props":6475,"children":6476},{"style":805},[6477],{"type":137,"value":1353},{"type":131,"tag":164,"props":6479,"children":6480},{"style":217},[6481],{"type":137,"value":1497},{"type":131,"tag":164,"props":6483,"children":6484},{"style":805},[6485],{"type":137,"value":6486}," ok",{"type":131,"tag":164,"props":6488,"children":6489},{"style":217},[6490],{"type":137,"value":936},{"type":131,"tag":164,"props":6492,"children":6494},{"style":6493},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[6495],{"type":137,"value":6496}," true",{"type":131,"tag":164,"props":6498,"children":6499},{"style":217},[6500],{"type":137,"value":322},{"type":131,"tag":164,"props":6502,"children":6503},{"style":805},[6504],{"type":137,"value":3440},{"type":131,"tag":164,"props":6506,"children":6507},{"style":217},[6508],{"type":137,"value":936},{"type":131,"tag":164,"props":6510,"children":6511},{"style":223},[6512],{"type":137,"value":6100},{"type":131,"tag":164,"props":6514,"children":6515},{"style":217},[6516],{"type":137,"value":231},{"type":131,"tag":164,"props":6518,"children":6519},{"style":805},[6520],{"type":137,"value":1558},{"type":131,"tag":164,"props":6522,"children":6523},{"style":217},[6524],{"type":137,"value":255},{"type":131,"tag":164,"props":6526,"children":6527},{"class":166,"line":771},[6528],{"type":131,"tag":164,"props":6529,"children":6530},{"style":217},[6531],{"type":137,"value":1077},{"type":131,"tag":153,"props":6533,"children":6536},{"className":6534,"code":6535,"language":6473,"meta":158,"style":158},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F vercel.json\n{ \"crons\": [{ \"path\": \"\u002Fapi\u002Fcron\", \"schedule\": \"0 9 * * *\" }] }\n",[6537],{"type":131,"tag":58,"props":6538,"children":6539},{"__ignoreMap":158},[6540,6548],{"type":131,"tag":164,"props":6541,"children":6542},{"class":166,"line":167},[6543],{"type":131,"tag":164,"props":6544,"children":6545},{"style":272},[6546],{"type":137,"value":6547},"\u002F\u002F vercel.json\n",{"type":131,"tag":164,"props":6549,"children":6550},{"class":166,"line":258},[6551,6555,6559,6564,6568,6572,6577,6581,6585,6589,6593,6597,6602,6606,6610,6614,6619,6623,6627,6631,6636,6640,6645],{"type":131,"tag":164,"props":6552,"children":6553},{"style":217},[6554],{"type":137,"value":1497},{"type":131,"tag":164,"props":6556,"children":6557},{"style":217},[6558],{"type":137,"value":241},{"type":131,"tag":164,"props":6560,"children":6561},{"style":281},[6562],{"type":137,"value":6563},"crons",{"type":131,"tag":164,"props":6565,"children":6566},{"style":217},[6567],{"type":137,"value":250},{"type":131,"tag":164,"props":6569,"children":6570},{"style":217},[6571],{"type":137,"value":936},{"type":131,"tag":164,"props":6573,"children":6574},{"style":217},[6575],{"type":137,"value":6576}," [{",{"type":131,"tag":164,"props":6578,"children":6579},{"style":217},[6580],{"type":137,"value":241},{"type":131,"tag":164,"props":6582,"children":6583},{"style":171},[6584],{"type":137,"value":2640},{"type":131,"tag":164,"props":6586,"children":6587},{"style":217},[6588],{"type":137,"value":250},{"type":131,"tag":164,"props":6590,"children":6591},{"style":217},[6592],{"type":137,"value":936},{"type":131,"tag":164,"props":6594,"children":6595},{"style":217},[6596],{"type":137,"value":241},{"type":131,"tag":164,"props":6598,"children":6599},{"style":177},[6600],{"type":137,"value":6601},"\u002Fapi\u002Fcron",{"type":131,"tag":164,"props":6603,"children":6604},{"style":217},[6605],{"type":137,"value":250},{"type":131,"tag":164,"props":6607,"children":6608},{"style":217},[6609],{"type":137,"value":322},{"type":131,"tag":164,"props":6611,"children":6612},{"style":217},[6613],{"type":137,"value":241},{"type":131,"tag":164,"props":6615,"children":6616},{"style":171},[6617],{"type":137,"value":6618},"schedule",{"type":131,"tag":164,"props":6620,"children":6621},{"style":217},[6622],{"type":137,"value":250},{"type":131,"tag":164,"props":6624,"children":6625},{"style":217},[6626],{"type":137,"value":936},{"type":131,"tag":164,"props":6628,"children":6629},{"style":217},[6630],{"type":137,"value":241},{"type":131,"tag":164,"props":6632,"children":6633},{"style":177},[6634],{"type":137,"value":6635},"0 9 * * *",{"type":131,"tag":164,"props":6637,"children":6638},{"style":217},[6639],{"type":137,"value":250},{"type":131,"tag":164,"props":6641,"children":6642},{"style":217},[6643],{"type":137,"value":6644}," }]",{"type":131,"tag":164,"props":6646,"children":6647},{"style":217},[6648],{"type":137,"value":6649}," }\n",{"type":131,"tag":146,"props":6651,"children":6653},{"id":6652},"environment-variables",[6654],{"type":137,"value":6655},"Environment Variables",{"type":131,"tag":6657,"props":6658,"children":6659},"table",{},[6660,6684],{"type":131,"tag":6661,"props":6662,"children":6663},"thead",{},[6664],{"type":131,"tag":6665,"props":6666,"children":6667},"tr",{},[6668,6674,6679],{"type":131,"tag":6669,"props":6670,"children":6671},"th",{},[6672],{"type":137,"value":6673},"Variable",{"type":131,"tag":6669,"props":6675,"children":6676},{},[6677],{"type":137,"value":6678},"Required",{"type":131,"tag":6669,"props":6680,"children":6681},{},[6682],{"type":137,"value":6683},"Description",{"type":131,"tag":6685,"props":6686,"children":6687},"tbody",{},[6688,6710,6731,6751],{"type":131,"tag":6665,"props":6689,"children":6690},{},[6691,6700,6705],{"type":131,"tag":6692,"props":6693,"children":6694},"td",{},[6695],{"type":131,"tag":58,"props":6696,"children":6698},{"className":6697},[],[6699],{"type":137,"value":1258},{"type":131,"tag":6692,"props":6701,"children":6702},{},[6703],{"type":137,"value":6704},"No (but recommended)",{"type":131,"tag":6692,"props":6706,"children":6707},{},[6708],{"type":137,"value":6709},"Pre-built sandbox snapshot ID for sub-second startup (see above)",{"type":131,"tag":6665,"props":6711,"children":6712},{},[6713,6721,6726],{"type":131,"tag":6692,"props":6714,"children":6715},{},[6716],{"type":131,"tag":58,"props":6717,"children":6719},{"className":6718},[],[6720],{"type":137,"value":836},{"type":131,"tag":6692,"props":6722,"children":6723},{},[6724],{"type":137,"value":6725},"No",{"type":131,"tag":6692,"props":6727,"children":6728},{},[6729],{"type":137,"value":6730},"Vercel personal access token (for local dev; OIDC is automatic on Vercel)",{"type":131,"tag":6665,"props":6732,"children":6733},{},[6734,6742,6746],{"type":131,"tag":6692,"props":6735,"children":6736},{},[6737],{"type":131,"tag":58,"props":6738,"children":6740},{"className":6739},[],[6741],{"type":137,"value":866},{"type":131,"tag":6692,"props":6743,"children":6744},{},[6745],{"type":137,"value":6725},{"type":131,"tag":6692,"props":6747,"children":6748},{},[6749],{"type":137,"value":6750},"Vercel team ID (for local dev)",{"type":131,"tag":6665,"props":6752,"children":6753},{},[6754,6762,6766],{"type":131,"tag":6692,"props":6755,"children":6756},{},[6757],{"type":131,"tag":58,"props":6758,"children":6760},{"className":6759},[],[6761],{"type":137,"value":1032},{"type":131,"tag":6692,"props":6763,"children":6764},{},[6765],{"type":137,"value":6725},{"type":131,"tag":6692,"props":6767,"children":6768},{},[6769],{"type":137,"value":6770},"Vercel project ID (for local dev)",{"type":131,"tag":146,"props":6772,"children":6774},{"id":6773},"framework-examples",[6775],{"type":137,"value":6776},"Framework Examples",{"type":131,"tag":140,"props":6778,"children":6779},{},[6780],{"type":137,"value":6781},"The pattern works identically across frameworks. The only difference is where you put the server-side code:",{"type":131,"tag":6657,"props":6783,"children":6784},{},[6785,6801],{"type":131,"tag":6661,"props":6786,"children":6787},{},[6788],{"type":131,"tag":6665,"props":6789,"children":6790},{},[6791,6796],{"type":131,"tag":6669,"props":6792,"children":6793},{},[6794],{"type":137,"value":6795},"Framework",{"type":131,"tag":6669,"props":6797,"children":6798},{},[6799],{"type":137,"value":6800},"Server code location",{"type":131,"tag":6685,"props":6802,"children":6803},{},[6804,6817,6842,6866,6892],{"type":131,"tag":6665,"props":6805,"children":6806},{},[6807,6812],{"type":131,"tag":6692,"props":6808,"children":6809},{},[6810],{"type":137,"value":6811},"Next.js",{"type":131,"tag":6692,"props":6813,"children":6814},{},[6815],{"type":137,"value":6816},"Server actions, API routes, route handlers",{"type":131,"tag":6665,"props":6818,"children":6819},{},[6820,6825],{"type":131,"tag":6692,"props":6821,"children":6822},{},[6823],{"type":137,"value":6824},"SvelteKit",{"type":131,"tag":6692,"props":6826,"children":6827},{},[6828,6834,6836],{"type":131,"tag":58,"props":6829,"children":6831},{"className":6830},[],[6832],{"type":137,"value":6833},"+page.server.ts",{"type":137,"value":6835},", ",{"type":131,"tag":58,"props":6837,"children":6839},{"className":6838},[],[6840],{"type":137,"value":6841},"+server.ts",{"type":131,"tag":6665,"props":6843,"children":6844},{},[6845,6850],{"type":131,"tag":6692,"props":6846,"children":6847},{},[6848],{"type":137,"value":6849},"Nuxt",{"type":131,"tag":6692,"props":6851,"children":6852},{},[6853,6859,6860],{"type":131,"tag":58,"props":6854,"children":6856},{"className":6855},[],[6857],{"type":137,"value":6858},"server\u002Fapi\u002F",{"type":137,"value":6835},{"type":131,"tag":58,"props":6861,"children":6863},{"className":6862},[],[6864],{"type":137,"value":6865},"server\u002Froutes\u002F",{"type":131,"tag":6665,"props":6867,"children":6868},{},[6869,6874],{"type":131,"tag":6692,"props":6870,"children":6871},{},[6872],{"type":137,"value":6873},"Remix",{"type":131,"tag":6692,"props":6875,"children":6876},{},[6877,6883,6884,6890],{"type":131,"tag":58,"props":6878,"children":6880},{"className":6879},[],[6881],{"type":137,"value":6882},"loader",{"type":137,"value":6835},{"type":131,"tag":58,"props":6885,"children":6887},{"className":6886},[],[6888],{"type":137,"value":6889},"action",{"type":137,"value":6891}," functions",{"type":131,"tag":6665,"props":6893,"children":6894},{},[6895,6900],{"type":131,"tag":6692,"props":6896,"children":6897},{},[6898],{"type":137,"value":6899},"Astro",{"type":131,"tag":6692,"props":6901,"children":6902},{},[6903,6909],{"type":131,"tag":58,"props":6904,"children":6906},{"className":6905},[],[6907],{"type":137,"value":6908},".astro",{"type":137,"value":6910}," frontmatter, API routes",{"type":131,"tag":146,"props":6912,"children":6914},{"id":6913},"example",[6915],{"type":137,"value":6916},"Example",{"type":131,"tag":140,"props":6918,"children":6919},{},[6920,6922,6928],{"type":137,"value":6921},"See ",{"type":131,"tag":58,"props":6923,"children":6925},{"className":6924},[],[6926],{"type":137,"value":6927},"examples\u002Fenvironments\u002F",{"type":137,"value":6929}," in the agent-browser repo for a working app with the Vercel Sandbox pattern, including a sandbox snapshot creation script, streaming progress UI, and rate limiting.",{"type":131,"tag":6931,"props":6932,"children":6933},"style",{},[6934],{"type":137,"value":6935},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":6937,"total":7112},[6938,6959,6973,6992,7003,7018,7033,7049,7061,7080,7092,7102],{"slug":6939,"name":6939,"fn":6940,"description":6941,"org":6942,"tags":6943,"stars":6956,"repoUrl":6957,"updatedAt":6958},"next-cache-components-adoption","enable and migrate to Next.js Cache Components","Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the `cacheComponents` flag, work through a flood of blocking-prerender \u002F instant validation errors, run the `cache-components-instant-false` codemod, or decide between opting routes out with `export const instant = false` and fixing them in place.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6944,6947,6950,6953,6955],{"name":6945,"slug":6946,"type":15},"Caching","caching",{"name":6948,"slug":6949,"type":15},"Frontend","frontend",{"name":6951,"slug":6952,"type":15},"Migration","migration",{"name":6811,"slug":6954,"type":15},"next-js",{"name":9,"slug":8,"type":15},141208,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js","2026-07-24T05:38:30.118542",{"slug":6960,"name":6960,"fn":6961,"description":6962,"org":6963,"tags":6964,"stars":6956,"repoUrl":6957,"updatedAt":6972},"next-cache-components-optimizer","optimize Next.js cache components","Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components \u002F PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next\u002Fplaywright instant() e2e and work it to green, one verified route at a time; the shipped test then guards against regression. Use when asked to make a route's navigation instant (its static shell commits immediately), fix a route whose static shell isn't prerendered\u002Fserved\u002Fprefetched, grow a route's static shell or fix its slow first paint, diagnose which Suspense boundary keeps a route out of its static shell, or write the instant() e2e guard for one. Requires Next.js 16.3+ with cacheComponents; directs an upgrade if older.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6965,6966,6967,6968,6971],{"name":6945,"slug":6946,"type":15},{"name":6948,"slug":6949,"type":15},{"name":6811,"slug":6954,"type":15},{"name":6969,"slug":6970,"type":15},"Performance","performance",{"name":9,"slug":8,"type":15},"2026-07-30T05:31:10.674078",{"slug":6974,"name":6974,"fn":6975,"description":6976,"org":6977,"tags":6978,"stars":6956,"repoUrl":6957,"updatedAt":6991},"next-dev-loop","verify Next.js runtime behavior","Verify Next.js runtime behavior after editing app code. Use this skill to confirm a change actually works in a running app — not just that it compiles or type-checks. Combines \u002F_next\u002Fmcp (Next.js's view) with agent-browser (the browser's view). Requires a running `next dev`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6979,6982,6983,6986,6987,6988],{"name":6980,"slug":6981,"type":15},"Debugging","debugging",{"name":6948,"slug":6949,"type":15},{"name":6984,"slug":6985,"type":15},"Local Development","local-development",{"name":6811,"slug":6954,"type":15},{"name":9,"slug":8,"type":15},{"name":6989,"slug":6990,"type":15},"Web Development","web-development","2026-05-22T06:45:28.627735",{"slug":6993,"name":6993,"fn":6994,"description":6995,"org":6996,"tags":6997,"stars":6956,"repoUrl":6957,"updatedAt":7002},"next-partial-prefetching-adoption","adopt Partial Prefetching in Next.js apps","Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the `partialPrefetching` flag, opt routes in with `export const prefetch = 'partial'`, audit `\u003CLink prefetch={true}>` calls, or resolve the link-prefetch-partial and instant-shell-url-data insights.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[6998,6999,7000,7001],{"name":6948,"slug":6949,"type":15},{"name":6811,"slug":6954,"type":15},{"name":6969,"slug":6970,"type":15},{"name":9,"slug":8,"type":15},"2026-07-30T05:31:11.591864",{"slug":7004,"name":7004,"fn":7005,"description":7006,"org":7007,"tags":7008,"stars":7015,"repoUrl":7016,"updatedAt":7017},"turborepo","manage monorepos with Turborepo","Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines,\ndependsOn, caching, remote cache, the \"turbo\" CLI, --filter, --affected, CI optimization, environment\nvariables, internal packages, monorepo structure\u002Fbest practices, and boundaries.\n\nUse when user: configures tasks\u002Fworkflows\u002Fpipelines, creates packages, sets up\nmonorepo, shares code between apps, runs changed\u002Faffected packages, debugs cache,\nor has apps\u002Fpackages directories.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7009,7012,7013],{"name":7010,"slug":7011,"type":15},"CI\u002FCD","ci-cd",{"name":6969,"slug":6970,"type":15},{"name":7014,"slug":7004,"type":15},"Turborepo",30809,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo","2026-07-30T05:32:14.920116",{"slug":7019,"name":7019,"fn":7020,"description":7021,"org":7022,"tags":7023,"stars":7030,"repoUrl":7031,"updatedAt":7032},"add-function-examples","add AI function examples for testing","Guide for adding new AI function examples, for testing specific features against the actual provider APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7024,7026,7029],{"name":7025,"slug":125,"type":15},"AI SDK",{"name":7027,"slug":7028,"type":15},"Testing","testing",{"name":9,"slug":8,"type":15},25670,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai","2026-04-06T18:55:51.318866",{"slug":7034,"name":7034,"fn":7035,"description":7036,"org":7037,"tags":7038,"stars":7030,"repoUrl":7031,"updatedAt":7048},"add-harness-package","add AI SDK harness packages","Guide for adding new AI SDK harness packages. Use when creating a new @ai-sdk\u002Fharness-\u003Cname> package that adapts a coding-agent runtime to HarnessV1.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7039,7040,7041,7044,7047],{"name":21,"slug":22,"type":15},{"name":7025,"slug":125,"type":15},{"name":7042,"slug":7043,"type":15},"Harness","harness",{"name":7045,"slug":7046,"type":15},"SDK","sdk",{"name":9,"slug":8,"type":15},"2026-06-18T08:29:19.858737",{"slug":7050,"name":7050,"fn":7051,"description":7052,"org":7053,"tags":7054,"stars":7030,"repoUrl":7031,"updatedAt":7060},"add-provider-package","add new provider packages to AI SDK","Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk\u002F\u003Cprovider> package to integrate an AI service into the SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7055,7056,7059],{"name":7025,"slug":125,"type":15},{"name":7057,"slug":7058,"type":15},"API Development","api-development",{"name":9,"slug":8,"type":15},"2026-04-06T18:55:47.45549",{"slug":7062,"name":7062,"fn":7063,"description":7064,"org":7065,"tags":7066,"stars":7030,"repoUrl":7031,"updatedAt":7079},"adr-skill","create and maintain architecture decision records","Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept\u002Freject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7067,7070,7073,7076],{"name":7068,"slug":7069,"type":15},"ADR","adr",{"name":7071,"slug":7072,"type":15},"Architecture","architecture",{"name":7074,"slug":7075,"type":15},"Documentation","documentation",{"name":7077,"slug":7078,"type":15},"Engineering","engineering","2026-04-06T18:55:50.043694",{"slug":125,"name":125,"fn":7081,"description":7082,"org":7083,"tags":7084,"stars":7030,"repoUrl":7031,"updatedAt":7091},"build AI features with Vercel AI SDK","Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: \"AI SDK\", \"Vercel AI SDK\", \"generateText\", \"streamText\", \"add AI to my app\", \"build an agent\", \"tool calling\", \"structured output\", \"useChat\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7085,7086,7087,7090],{"name":21,"slug":22,"type":15},{"name":7025,"slug":125,"type":15},{"name":7088,"slug":7089,"type":15},"LLM","llm",{"name":9,"slug":8,"type":15},"2026-04-06T18:55:48.739463",{"slug":7093,"name":7093,"fn":7094,"description":7095,"org":7096,"tags":7097,"stars":7030,"repoUrl":7031,"updatedAt":7101},"capture-api-response-test-fixture","capture API response test fixtures","Capture API response test fixture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7098,7099,7100],{"name":7057,"slug":7058,"type":15},{"name":7027,"slug":7028,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:55:56.374433",{"slug":7103,"name":7103,"fn":7104,"description":7105,"org":7106,"tags":7107,"stars":7030,"repoUrl":7031,"updatedAt":7111},"develop-ai-functions-example","develop AI SDK function examples","Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples\u002Fai-functions\u002Fsrc to validate provider support, demonstrate features, or create test fixtures.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7108,7109,7110],{"name":7025,"slug":125,"type":15},{"name":7027,"slug":7028,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:55:55.088956",68,{"items":7114,"total":1191},[7115,7130,7144,7159,7172,7185,7198],{"slug":7116,"name":7116,"fn":7117,"description":7118,"org":7119,"tags":7120,"stars":23,"repoUrl":24,"updatedAt":7129},"ai-gateway","configure and manage Vercel AI Gateway","Vercel AI Gateway expert guidance. Use when configuring model routing, provider failover, cost tracking, or managing multiple AI providers through a unified API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7121,7124,7127,7128],{"name":7122,"slug":7123,"type":15},"AI Infrastructure","ai-infrastructure",{"name":7125,"slug":7126,"type":15},"Cost Optimization","cost-optimization",{"name":7088,"slug":7089,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:56:06.57787",{"slug":7131,"name":7131,"fn":7132,"description":7133,"org":7134,"tags":7135,"stars":23,"repoUrl":24,"updatedAt":7143},"auth","integrate authentication in Next.js apps","Authentication integration guidance — Clerk (native Vercel Marketplace), Descope, and Auth0 setup for Next.js applications. Covers middleware auth patterns, sign-in\u002Fsign-up flows, and Marketplace provisioning. Use when implementing user authentication.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7136,7139,7140,7141,7142],{"name":7137,"slug":7138,"type":15},"Auth0","auth0",{"name":5939,"slug":5936,"type":15},{"name":6811,"slug":6954,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:56:17.050565",{"slug":7145,"name":7145,"fn":7146,"description":7147,"org":7148,"tags":7149,"stars":23,"repoUrl":24,"updatedAt":7158},"bootstrap","bootstrap Vercel-linked repositories","Project bootstrapping orchestrator for repos that depend on Vercel-linked resources (databases, auth, and managed integrations). Use when setting up or repairing a repository so linking, environment provisioning, env pulls, and first-run db\u002Fdev commands happen in the correct safe order.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7150,7153,7156,7157],{"name":7151,"slug":7152,"type":15},"Configuration","configuration",{"name":7154,"slug":7155,"type":15},"Deployment","deployment",{"name":6984,"slug":6985,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:56:18.297868",{"slug":7160,"name":7160,"fn":7161,"description":7162,"org":7163,"tags":7164,"stars":23,"repoUrl":24,"updatedAt":7171},"cdn-caching","debug Vercel CDN caching behavior","Debug Vercel CDN caching — cache hit rate, stale content, revalidation behavior, ISR + PPR, per-request cache reasons (cacheReason) and PPR state (ppr_state), and costs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7165,7166,7169,7170],{"name":6945,"slug":6946,"type":15},{"name":7167,"slug":7168,"type":15},"Observability","observability",{"name":6969,"slug":6970,"type":15},{"name":9,"slug":8,"type":15},"2026-07-30T05:31:34.628944",{"slug":7173,"name":7173,"fn":7174,"description":7175,"org":7176,"tags":7177,"stars":23,"repoUrl":24,"updatedAt":7184},"chat-sdk","build multi-platform chatbots with Vercel","Vercel Chat SDK expert guidance. Use when building multi-platform chat bots — Slack, Telegram, Microsoft Teams, Discord, Google Chat, GitHub, Linear — with a single codebase. Covers the Chat class, adapters, threads, messages, cards, modals, streaming, state management, and webhook setup.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7178,7179,7182,7183],{"name":21,"slug":22,"type":15},{"name":7180,"slug":7181,"type":15},"Messaging","messaging",{"name":7045,"slug":7046,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:56:26.921901",{"slug":7186,"name":7186,"fn":7187,"description":7188,"org":7189,"tags":7190,"stars":23,"repoUrl":24,"updatedAt":7197},"deployments-cicd","manage Vercel deployments and CI\u002FCD","Vercel deployment and CI\u002FCD expert guidance. Use when deploying, promoting, rolling back, inspecting deployments, building with --prebuilt, or configuring CI workflow files for Vercel.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7191,7192,7193,7196],{"name":7010,"slug":7011,"type":15},{"name":7154,"slug":7155,"type":15},{"name":7194,"slug":7195,"type":15},"Operations","operations",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:22.054263",{"slug":7199,"name":7199,"fn":7200,"description":7201,"org":7202,"tags":7203,"stars":23,"repoUrl":24,"updatedAt":7208},"env-vars","manage Vercel environment variables","Vercel environment variable expert guidance. Use when working with .env files, vercel env commands, OIDC tokens, or managing environment-specific configuration.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[7204,7205,7206,7207],{"name":7151,"slug":7152,"type":15},{"name":7194,"slug":7195,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:56:28.150777"]