PageSourceSearch

https://www.stagehand.dev/_next/static/chunks/09_nko388xpsz.js?dpl=dpl_33fgw7h4GHifzScze4XuQPdAfUre

js stagehand.dev collected 2026-09-24 17:41:20 UTC 21,588 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,48364,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return l},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return i}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function s(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function i(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,s(e));else t.set(r,s(n));return t}function l(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},45092,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return x},MiddlewareNotFoundError:function(){return v},MissingStaticPage:function(){return k},NormalizeError:function(){return b},PageNotFoundError:function(){return y},SP:function(){return g},ST:function(){return f},WEB_VITALS:function(){return o},execOnce:function(){return s},getDisplayName:function(){return u},getLocationOrigin:function(){return c},getURL:function(){return d},isAbsoluteUrl:function(){return l},isResSent:function(){return m},loadGetInitialProps:function(){return p},normalizeRepeatedSlashes:function(){return h},stringifyError:function(){return w}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function s(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let i=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,l=e=>i.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function d(){let{href:e}=window.location,t=c();return e.substring(t.length)}function u(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function m(e){return e.finished||e.headersSent}function h(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function p(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await p(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&m(r))return n;if(!n)throw Object.defineProperty(Error(`"${u(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let g="u">typeof performance,f=g&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class x extends Error{}class b extends Error{}class y extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class k extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class v extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},29002,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},40785,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return d},getImageProps:function(){return c}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let o=e.r(81258),s=e.r(98822),i=e.r(527),l=o._(e.r(95890));function c(e){let{props:t}=(0,s.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let d=i.Image},49947,(e,t,r)=>{t.exports=e.r(40785)},38532,63056,e=>{"use strict";var t=e.i(73184);e.i(25845),e.i(96800);var r=e.i(31908),n=e.i(49947),a=e.i(64973),o=e.i(45032),s=e.i(45280),i=e.i(70789);let l=new Set(["import","from","export","default","const","let","var","function","async","await","return","if","else","for","while","new","class","extends","type","interface","def","with","as","in","not","and","or","None","True","False","true","false","null","undefined","func","package","go","defer","err","nil"]),c=/(\/\/[^\n]*|#[^\n]*|\/\*[\s\S]*?\*\/)|("(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'|`(?:[^`\\]|\\.)*`)|(\.[A-Za-z_]\w*(?=\())|\b(\d+(?:\.\d+)?)\b|\b([A-Za-z_]\w*)\b/g,d={comment:"text-chrome-mute",string:"text-chrome-green-ink",call:"text-chrome-green-ink",number:"text-chrome-slate",keyword:"text-chrome-slate"};function u(e){return null==e||"boolean"==typeof e?"":"string"==typeof e||"number"==typeof e?String(e):Array.isArray(e)?e.map(u).join(""):(0,o.isValidElement)(e)?u(e.props.children):""}function m(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}let h={default:"max-w-[68ch] text-body leading-[1.65]",large:"max-w-[76ch] text-lead leading-[1.7] [&_p]:text-lead [&_li]:text-lead [&_h2]:text-[24px] [&_h3]:text-heading [&_h4]:text-title"};function p({id:e,children:t}){return(0,r.jsxs)(r.Fragment,{children:[t,(0,r.jsx)("a",{href:`#${e}`,"aria-label":"link to this section",className:"ml-2 font-bbmono font-normal text-chrome-mute no-underline opacity-0 transition-opacity hover:text-chrome-green-ink focus-visible:opacity-100 hoverable:group-hover:opacity-100",children:"#"})]})}function g(e,t){if(e)return e;let r=u(t);return r?m(r):void 0}function f({children:e}){return(0,r.jsx)("h1",{className:"font-brand text-[28px] leading-[1.12] tracking-[-0.02em] text-balance",children:e})}function x({id:e,children:t}){let n=g(e,t);return(0,r.jsx)("h2",{id:n,className:"group font-brand text-heading leading-[1.25] tracking-[-0.01em] text-balance",children:n?(0,r.jsx)(p,{id:n,children:t}):t})}function b({id:e,children:t}){let n=g(e,t);return(0,r.jsx)("h3",{id:n,className:"group font-brand text-title leading-[1.3] tracking-[-0.01em] text-balance",children:n?(0,r.jsx)(p,{id:n,children:t}):t})}function y({children:e}){return(0,r.jsx)("h4",{className:"font-brand text-lead leading-[1.35]",children:e})}function k({children:e}){return(0,r.jsx)("p",{className:"text-body leading-[1.65] text-pretty",children:e})}let v="underline decoration-chrome-green decoration-2 underline-offset-4 transition-colors hover:decoration-chrome-ink";function w({href:e,children:t,...n}){return!e||e.startsWith("#")?(0,r.jsx)("a",{href:e,...n,className:v,children:t}):(0,r.jsx)(a.default,{href:e,...(0,s.externalLinkProps)(e),...n,className:v,children:t})}function j({children:e}){return(0,r.jsx)("ul",{className:"list-disc pl-5 marker:text-chrome-mute [&>li+li]:mt-2",children:e})}function N({children:e}){return(0,r.jsx)("ol",{className:"list-decimal pl-5 marker:font-bbmono marker:text-label marker:text-chrome-dim [&>li+li]:mt-2",children:e})}function T({children:e}){return(0,r.jsx)("li",{className:"pl-1 [&>ol]:mt-2 [&>ul]:mt-2",children:e})}function S({children:e,...t}){return(0,r.jsx)("blockquote",{...t,className:"border-l-2 border-chrome-green pl-5 text-chrome-slate [&>*+*]:mt-3",children:e})}function E({children:e}){return(0,r.jsx)("code",{className:"border border-chrome-edge bg-chrome-tint px-1 py-px font-bbmono text-ui text-chrome-ink",children:e})}function P({children:e,filename:n,lang:a}){let s=function(e,t){if((0,o.isValidElement)(e)){let r=e.props.className?.match(/language-([\w-]+)/)?.[1];return{code:u(e.props.children),lang:t??r}}return{code:u(e),lang:t}}(e,a),i=s.code.replace(/\n$/,"");return(0,r.jsxs)("div",{className:"relative border border-chrome-edge bg-chrome-tint",children:[n?(0,r.jsxs)("div",{className:"flex items-center gap-4 border-b border-chrome-edge bg-white px-4 py-1.5 font-bbmono text-tag text-chrome-dim",children:[(0,r.jsx)("span",{children:n}),s.lang?(0,r.jsx)("span",{className:"lowercase",children:s.lang}):null,(0,r.jsx)(t.CopyButton,{text:i,ariaLabel:`copy ${n}`,className:"ml-auto"})]}):(0,r.jsx)(t.CopyButton,{text:i,className:"absolute top-2 right-2"}),(0,r.jsx)("pre",{tabIndex:0,role:"region","aria-label":n?`code, ${n}`:"code",className:`overflow-x-auto p-4 font-bbmono text-label leading-[1.6] text-chrome-ink ${n?"":"pr-20"}`,children:(0,r.jsx)("code",{children:function(e){let t,n=[],a=0,o=0;for(;null!==(t=c.exec(e));){let[s,i,c,u,m,h]=t,p=i?"comment":c?"string":u?"call":m?"number":h&&l.has(h
1)?"keyword":null;p&&(t.index>a&&n.push(e.slice(a,t.index)),n.push((0,r.jsx)("span",{className:d[p],children:s},o++)),a=t.index+s.length)}return a<e.length&&n.push(e.slice(a)),n}(i)})})]})}function O({children:e}){return(0,r.jsx)("div",{className:"overflow-x-auto",children:(0,r.jsx)("table",{className:"w-full border-collapse text-body leading-[1.5] tabular-nums",children:e})})}function _({children:e}){return(0,r.jsx)("thead",{children:e})}function C({children:e}){return(0,r.jsx)("tbody",{children:e})}function I({children:e}){return(0,r.jsx)("tr",{className:"border-b border-chrome-edge",children:e})}function F({children:e,...t}){return(0,r.jsx)("th",{...t,className:"py-2 pr-4 text-left align-bottom font-bbmono text-tag font-normal lowercase text-chrome-dim last:pr-0",children:e})}function $({children:e,...t}){return(0,r.jsx)("td",{...t,className:"py-2 pr-4 align-top last:pr-0",children:e})}function A({children:e}){return(0,r.jsx)("figcaption",{className:`mt-2.5 ${i.eyebrow}`,children:e})}function B(){return(0,r.jsx)("hr",{className:"border-0 border-t border-chrome-edge"})}function M({children:e}){return(0,r.jsx)("strong",{className:"font-semibold",children:e})}function U({children:e}){return(0,r.jsx)("em",{className:"italic",children:e})}e.s(["A",0,w,"Blockquote",0,S,"CodeBlock",0,P,"Em",0,U,"FAQ",0,function({children:e}){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x,{children:"Frequently asked questions"}),(0,r.jsx)("div",{className:"divide-y divide-chrome-edge border-y border-chrome-edge",children:e})]})},"FAQItem",0,function({question:e,children:t}){return(0,r.jsxs)("details",{id:m(e),className:"group",children:[(0,r.jsx)("summary",{className:"cursor-pointer list-none py-4 [&::-webkit-details-marker]:hidden",children:(0,r.jsxs)("h3",{className:"flex items-center justify-between gap-4 font-brand text-title leading-[1.3] tracking-[-0.01em]",children:[e,(0,r.jsx)("svg",{"aria-hidden":"true",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",className:"size-4 shrink-0 text-chrome-dim group-open:rotate-180",children:(0,r.jsx)("path",{d:"m4.5 6.5 3.5 3.5 3.5-3.5"})})]})}),(0,r.jsx)("div",{className:"pb-5 [&>*+*]:mt-3",children:t})]})},"Figure",0,function({src:e,alt:t="",width:a,height:o,caption:s,frame:i=!0,children:l}){return(0,r.jsxs)("figure",{children:[(0,r.jsx)("div",{className:i?"border border-chrome-edge bg-chrome-tint":void 0,children:e&&a&&o?(0,r.jsx)(n.default,{src:e,alt:t,width:a,height:o,className:"block h-auto w-full"}):l}),s?(0,r.jsx)(A,{children:s}):null]})},"H1",0,f,"H2",0,x,"H3",0,b,"H4",0,y,"Hr",0,B,"InlineCode",0,E,"Lead",0,function({children:e}){return(0,r.jsx)("p",{className:"text-lead leading-[1.6] text-pretty text-chrome-slate",children:e})},"Li",0,T,"Ol",0,N,"P",0,k,"Prose",0,function({size:e="default",className:t,children:n}){return(0,r.jsx)("div",{className:`${h[e]} font-body text-chrome-ink [&>*+*]:mt-5 [&>*+h2]:mt-12 [&>*+h3]:mt-9 [&>*+h4]:mt-7 [&>h2+*]:mt-4 [&>h3+*]:mt-3 [&>h4+*]:mt-2 [&>*+hr]:mt-10 [&>hr+*]:mt-10 ${t??""}`,children:n})},"Strong",0,M,"Table",0,O,"Tbody",0,C,"Td",0,$,"Th",0,F,"Thead",0,_,"Tr",0,I,"Ul",0,j,"mdxComponents",0,{h1:f,h2:x,h3:b,h4:y,p:k,a:w,ul:j,ol:N,li:T,blockquote:S,code:E,pre:P,table:O,thead:_,tbody:C,tr:I,th:F,td:$,hr:B,strong:M,em:U}],63056),e.i(84974),e.i(69367),e.i(66732),e.s([],38532)},2492,e=>{"use strict";var t=e.i(31908),r=e.i(45032),n=e.i(72878),a=e.i(16960),o=e.i(90233);e.i(38532);var s=e.i(73184),i=e.i(70789);e.s(["InstallBlock",0,function({surface:e="install"}){let[l,c]=(0,r.useState)("ts"),[d,u]=(0,r.useState)(!1),[m,h]=(0,r.useState)(!1),p=n.install.find(e=>e.id===l)?.cmd??n.install[0].cmd;return(0,t.jsxs)("div",{className:"w-full max-w-[32rem]",children:[(0,t.jsx)("div",{className:`flex items-center gap-4 ${i.mono}`,children:(0,t.jsx)(s.TabList,{items:n.install,active:l,onSelect:t=>{c(t),(0,o.track)("language_selected",{surface:e,language:t})}})}),(0,t.jsxs)("div",{className:"relative mt-4",children:[(0,t.jsx)(s.Corners,{tone:"green"}),(0,t.jsxs)("button",{onClick:async()=>{let{ok:e,method:t}=await (0,s.copyText)(p);(0,o.track)("install_command_copied",{language:l,method:t,ok:e}),e&&((0,a.unlock)("copy"),u(!0),setTimeout(()=>u(!1),1400))},className:"flex w-full items-start justify-between gap-4 border border-dev-line bg-dev-bg px-5 py-4 text-left @sm:items-center",children:[(0,t.jsxs)("code",{className:"font-bbmono text-body break-all text-dev-ink @sm:truncate @sm:break-normal",children:[(0,t.jsx)("span",{className:"text-chrome-green",children:"$ "}),p]}),(0,t.jsx)("span",{role:"status",className:"shrink-0 font-bbmono text-tag text-dev-dim",children:d?"copied ✓":"copy"})]})]}),(0,t.jsx)("button",{onClick:async()=>{let{ok:e,method:t}=await (0,s.copyText)(n.agentSetup.prompt);(0,o.track)("agent_setup_copied",{method:t,ok:e}),e&&((0,a.unlock)("copy"),h(!0),setTimeout(()=>h(!1),1400))},className:`mt-4 inline-flex items-center gap-1.5 ${i.eyebrow} transition-colors hover:text-chrome-ink`,children:(0,t.jsx)("span",{role:"status",className:"inline-flex items-center gap-1.5",children:m?(0,t.jsx)("span",{className:"text-chrome-green-ink",children:"copied prompt ✓"}):(0,t.jsxs)(t.Fragment,{children:[n.agentSetup.label.toLowerCase(),(0,t.jsx)(s.CopyIcon,{className:"size-3.5"})]})})})]})}])},84034,e=>{"use strict";e.s(["featureGridA",0,{title:"Your agent's favorite browser tool",sub:"everything an agent needs to control a browser",cards:[{kicker:"tokens",title:"Token efficie
1ncy as a priority",body:"Our hybrid accessibility tree trimming gives your agents exactly what they need to understand the page and nothing more.",wide:!0},{kicker:"api",title:"Familiar APIs",body:"The Playwright-style methods you and your agents already know and love (goto, click, locator, screenshot)."},{kicker:"sdk-worker",title:"Faster in production",body:"Stagehand lives right next to the browser, so your agent’s actions feel instant, not remote."},{kicker:"selector",title:"Self-healing primitives",body:"Use Act, Observe, and Extract with natural language to automate pages. When sites change, we detect it and refresh how the actions happen on the page automatically."},{kicker:"features",title:"Features Agents need",body:"WebMCP, Clipboard Support, Self-healing actions, Batched commands, deep locators for nested iframes, and OTel support."}]},"tokenBars",0,[{label:"stagehand",tokens:7376,tone:"lead"},{label:"playwright",tokens:35746,tone:"base"}],"upvoteFig",0,{file:"quickstart.ts",site:"Y Combinator — Top Stories",steps:[{code:"const sh = await Stagehand.create();",note:"browser opens",ms:1200},{code:"const page = sh.context.activePage();",note:"tab attached",ms:850},{code:'await page.goto("news.ycombinator.com");',note:"page loaded",ms:1300},{code:'await sh.act("upvote the top story");',note:"top story upvoted",ms:1800},{code:"const data = await sh.extract({ schema });",note:"data returned",ms:1700},{code:"await sh.close();",note:"browser closed",ms:1300}],rows:[{title:"Show HN: Stagehand, the SDK for browser agents",tag:"+1 · sh.act, 21ms"},{title:"Show HN: Legacy automation framework"}],extracted:{title:"Show HN: Stagehand, the SDK…",points:128,upvoted:!0}},"workerDiagram",0,{intro:"Stagehand runs as an extension next to the browser, closing the distance and reducing round-trip latency for all actions on the page.",client:"your code",browser:{tab:"the page",extension:"browser extension"}}])},66202,e=>{"use strict";e.s(["heroCompare",0,[{id:"speed",label:"speed",title:"Wall-clock time",better:"low",fmt:"ms",groups:[{suite:"batch",stagehand:4727.49,playwright:9044.99},{suite:"click",stagehand:96.52,playwright:364.39},{suite:"type",stagehand:291.24,playwright:1481.61}]}],"homeStats",0,[{value:"2x",label:"faster than playwright"},{value:"80%",label:"more token efficient"}],"hops",0,{v3:["sdk","driver","cdp","browser"],v4:["sdk","service worker","browser"]}])},23376,34405,e=>{"use strict";var t=e.i(31908),r=e.i(45032),n=e.i(16960),a=e.i(90233),o=e.i(72878),s=e.i(84034),i=e.i(66202);let l=Object.fromEntries(o.install.map(({id:e,cmd:t})=>[e,t])),c=o.comparisonShort.filter(e=>!0===e.stagehand&&!1===e.playwright).map(e=>e.capability),d=[{id:"install",role:"button",name:"copy install command",candidate:"copy the install command",instruction:"Extract the install command for every language",cost:{promptTokens:412,completionTokens:63,inferenceTimeMs:640},result:{commands:l,default:"ts"}},{id:"benchmarks",role:"section",name:"benchmarks",candidate:"switch the benchmark metric",instruction:"Extract what this chart measures and what it compares",cost:{promptTokens:906,completionTokens:71,inferenceTimeMs:880},result:{compares:["stagehand","playwright"],metrics:i.heroCompare.map(e=>e.label),operations:i.heroCompare[0].groups.map(e=>e.suite)}},{id:"comparison",role:"table",name:"stagehand vs playwright",candidate:"read the capability table",instruction:"Extract every capability row and which framework supports it",cost:{promptTokens:1338,completionTokens:118,inferenceTimeMs:1090},result:{rows:o.comparisonShort.length,built_for:{stagehand:"agents",playwright:"testing"},stagehand_only:c}},{id:"quickstart",role:"region",name:"quickstart code",candidate:"copy the quickstart snippet",instruction:"Extract the API calls this snippet makes",cost:{promptTokens:1105,completionTokens:96,inferenceTimeMs:1010},result:{package:"@browserbasehq/stagehand",calls:["localBrowser.launch","Stagehand.create","browser.context.activePage","page.goto","sh.extract","sh.close"],schema:"zod"}}],u={tokens:{technique:"hybrid accessibility tree trimming",sends:"only the nodes an agent needs to act"},api:{style:"playwright",methods:["goto","click","locator","screenshot"]},"sdk-worker":{runs:"in the browser, next to the page",hops:{v3:[...i.hops.v3],v4:[...i.hops.v4]}},selector:{primitives:["act","observe","extract"],on_page_change:"re-resolves the action instead of failing"},features:{capabilities:["WebMCP","clipboard support","self-healing actions","batched commands","deep locators for nested iframes","OTel support"]}}
1,m={tokens:"token efficiency",api:"familiar apis","sdk-worker":"faster in production",selector:"self-healing",features:"agent features"},h=[...d,...s.featureGridA.cards.map(e=>({id:e.kicker,role:"article",name:m[e.kicker],instruction:`Extract what the ${m[e.kicker]} card gives an agent`,cost:{promptTokens:180+e.body.length,completionTokens:48,inferenceTimeMs:520},result:{feature:e.title,...u[e.kicker]}}))],p=Object.fromEntries(h.map(e=>[e.id,e]));e.s(["targetById",0,p,"targets",0,h],34405);let g=h.flatMap(e=>e.candidate??[]),f=[{level:"INFO",message:"stagehand.init"},{level:"DEBUG",message:"context.active_page"},{level:"DEBUG",message:"page.wait_for_load_state"},{level:"DEBUG",message:"stagehand.observe"},{level:"INFO",message:"Starting observation",payload:{category:"observation",instruction:"What can I do on this page?"}},{level:"DEBUG",message:"Captured accessibility snapshot for observation",payload:{category:"observation"}},{level:"INFO",message:"Observation completed",payload:{category:"observation",promptTokens:1614,completionTokens:88,reasoningTokens:0,cachedInputTokens:0,inferenceTimeMs:1120,resultCount:g.length},result:g},{level:"DEBUG",message:"stagehand.extract"},{level:"INFO",message:"Starting extraction using an accessibility snapshot",payload:{category:"extraction",instruction:"Extract what this project is, how to install it, and what it gives you"}},{level:"INFO",message:"Extraction completed successfully",payload:{category:"extraction",promptTokens:2287,completionTokens:154,inferenceTimeMs:1204},result:{product:`${o.product.name} ${o.product.version}`,tagline:o.headline.h1,install:Object.fromEntries(o.install.map(({id:e,cmd:t})=>[e,t])),languages:o.languages.map(e=>e.label),primitives:["act","observe","extract","agent"],runtime:"browser extension + service worker",repo:"github.com/browserbase/stagehand"}},{level:"INFO",message:"stagehand.close"}],x={open:!1,lines:f,id:0,scope:null},b=(0,r.createContext)(null);e.s(["StageProvider",0,function({children:e}){let[o,s]=(0,r.useState)(x),i=(0,r.useMemo)(()=>({...o,toggle:()=>{let e=!o.open;(0,a.track)("wire_panel_toggled",{open:e}),e&&(0,n.unlock)("extract"),s(t=>e?{open:e,lines:f,id:t.id+1,scope:null}:{...t,open:e})},extract:e=>{(0,a.track)("target_extracted",{target:e.id}),(0,n.unlock)("extract"),s(t=>({open:!0,lines:[{level:"INFO",message:"stagehand.init"},{level:"DEBUG",message:"context.active_page"},{level:"DEBUG",message:"stagehand.extract"},{level:"INFO",message:"Starting extraction using an accessibility snapshot",payload:{category:"extraction",instruction:e.instruction}},{level:"INFO",message:"Extraction completed successfully",payload:{category:"extraction",...e.cost},result:e.result},{level:"INFO",message:"stagehand.close"}],id:t.id+1,scope:`${e.role} "${e.name}"`}))}}),[o]);return(0,t.jsx)(b.Provider,{value:i,children:e})},"useStage",0,function(){let e=(0,r.useContext)(b);if(!e)throw Error("useStage must be called inside <StageProvider>");return e}],23376)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.