1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,18566,(e,t,i)=>{t.exports=e.r(76562)},22521,e=>{"use strict";let t=[{id:"langgraph",title:"LangGraph",description:"LangChain/LangGraph adapter for Angular UI",group:"adapter",tagline:"Talk to LangGraph directly",sections:[{title:"Getting Started",id:"getting-started",color:"blue",pages:[{title:"Introduction",slug:"introduction",section:"getting-started"},{title:"Quick Start",slug:"quickstart",section:"getting-started"},{title:"Installation",slug:"installation",section:"getting-started"}]},{title:"Guides",id:"guides",color:"blue",pages:[{title:"Streaming",slug:"streaming",section:"guides"},{title:"Persistence",slug:"persistence",section:"guides"},{title:"Durable Execution",slug:"durable-execution",section:"guides"},{title:"Interrupts",slug:"interrupts",section:"guides"},{title:"Memory",slug:"memory",section:"guides"},{title:"Time Travel",slug:"time-travel",section:"guides"},{title:"Subgraphs",slug:"subgraphs",section:"guides"},{title:"Testing",slug:"testing",section:"guides"},{title:"Deployment",slug:"deployment",section:"guides"},{title:"Lifecycle Signals",slug:"lifecycle",section:"guides"}]},{title:"Concepts",id:"concepts",color:"red",pages:[{title:"Agent Contract",slug:"agent-contract",section:"concepts"},{title:"Angular Signals",slug:"angular-signals",section:"concepts"},{title:"LangGraph Basics",slug:"langgraph-basics",section:"concepts"},{title:"Agent Architecture",slug:"agent-architecture",section:"concepts"},{title:"State Management",slug:"state-management",section:"concepts"}]},{title:"API Reference",id:"api",color:"blue",pages:[{title:"injectAgent()",slug:"inject-agent",section:"api"},{title:"provideAgent()",slug:"provide-agent",section:"api"},{title:"FetchStreamTransport",slug:"fetch-stream-transport",section:"api"},{title:"MockAgentTransport",slug:"mock-stream-transport",section:"api"},{title:"LangGraphThreadsAdapter",slug:"langgraph-threads-adapter",section:"api"}]}]},{id:"render",title:"json-render",description:"Declarative UI rendering from JSON specifications",group:"library",sections:[{title:"Getting Started",id:"getting-started",color:"blue",pages:[{title:"Introduction",slug:"introduction",section:"getting-started"},{title:"Quick Start",slug:"quickstart",section:"getting-started"},{title:"Installation",slug:"installation",section:"getting-started"}]},{title:"Guides",id:"guides",color:"blue",pages:[{title:"Component Registry",slug:"registry",section:"guides"},{title:"State Store",slug:"state-store",section:"guides"},{title:"Specs & Elements",slug:"specs",section:"guides"},{title:"Repeat Loops",slug:"repeat-loops",section:"guides"},{title:"Events & Handlers",slug:"events",section:"guides"},{title:"Lifecycle Signals",slug:"lifecycle",section:"guides"}]},{title:"Concepts",id:"concepts",color:"red",pages:[{title:"JSON Render vs A2UI",slug:"json-render-vs-a2ui",section:"concepts"}]},{title:"API Reference",id:"api",color:"blue",pages:[{title:"RenderSpecComponent",slug:"render-spec-component",section:"api"},{title:"defineAngularRegistry()",slug:"define-angular-registry",section:"api"},{title:"views()",slug:"views",section:"api"},{title:"signalStateStore()",slug:"signal-state-store",section:"api"},{title:"provideRender()",slug:"provide-render",section:"api"}]}]},{id:"chat",title:"Chat",description:"Pre-built chat UI components for agent interfaces",group:"library",sections:[{title:"Getting Started",id:"getting-started",color:"blue",pages:[{title:"Introduction",slug:"introduction",section:"getting-started"},{title:"Quick Start",slug:"quickstart",section:"getting-started"},{title:"Try without a backend",slug:"try-without-a-backend",section:"getting-started"},{title:"Coding agents",slug:"coding-agents",section:"getting-started"},{title:"Installation",slug:"installation",section:"getting-started"},{title:"Changelog",slug:"changelog",section:"getting-started"}]},{title:"Guides",id:"guides",color:"blue",pages:[{title:"Layout Modes",slug:"layout-modes",section:"guides"},{title:"Theming",slug:"theming",section:"guides"},{title:"Markdown Rendering",slug:"markdown",section:"guides"},{title:"Generative UI",slug:"generative-ui",section:"guides"},{title:"Client Tools",slug:"client-tools",section:"guides"},{title:"Custom A2UI Catalogs",slug:"custom-catalogs",section:"guides"},{title:"Streaming",slug:"streaming",section:"guides"},{title:"Error Handling",slug:"error-handling",section:"guides"},{title:"Writing an Adapter",slug:"writing-an-adapter",section:"guides"},{title:"Thread Routing",slug:"thread-routing",section:"guides"},{title:"Lifecycle Signals",slug:"lifecycle",section:"guides"}]},{title:"Concepts",id:"concepts",color:"red",pages:[{title:"Primitives vs Compositions",slug:"primitives-vs-compositions",section:"concepts"},{title:"Message Model",slug:"message-model",section:"concepts"}]},{title:"Components",id:"components",color:"red",pages:[{title:"ChatComponent",slug:"chat",section:"components"},{title:"ChatPopup",slug:"chat-popup",section:"components"},{title:"ChatSidebar",slug:"chat-sidebar",section:"components"},{title:"ChatSidenav",slug:"chat-sidenav",section:"components"},{title:"ChatMessageList",slug:"chat-message-list",section:"components"},{title:"ChatTrace",slug:"chat-trace",section:"components"},{title:"ChatInput",slug:"chat-input",section:"components"},{title:"ChatReasoning",slug:"chat-reasoning",section:"components"},{title:"ChatInterruptPanel",slug:"chat-interrupt-panel",section:"components"},{title:"ChatToolCalls",slug:"chat-tool-calls",section:"components"},{title:"chatToolCallTemplate",slug:"chat-tool-call-template",section:"components"},{title:"ChatToolCallCard",slug:"chat-tool-call-card",section:"components"},{title:"ChatSubagentCard",slug:"chat-subagent-card",section:"components"},{title:"ChatDebug",slug:"chat-debug",section:"components"},{title:"ChatSelect",slug:"chat-select",section:"components"}]},{title:"A2UI",id:"a2ui",color:"red",pages:[{title:"Overview",slug:"overview",section:"a2ui"},{title:"A2uiSurfaceComponent",slug:"surface-component",section:"a2ui"},{title:"createA2uiSurfaceStore()",slug:"surface-store",section:"a2ui"},{title:"Component Catalog",slug:"catalog",section:"a2ui"}]},{title:"API Reference",id:"api",color:"blue",pages:[{title:"mockAgent()",slug:"mock-agent",section:"api"},{title:"createContentClassifier()",slug:"content-classifier",section:"api"}
1,{title:"createParseTreeStore()",slug:"parse-tree-store",section:"api"}]}]},{id:"ag-ui",title:"AG-UI",description:"Adapter for AG-UI-compatible backends including CrewAI, Mastra, Microsoft AF, AG2, Pydantic AI, and AWS Strands",group:"adapter",tagline:"Any AG-UI backend",demoUrl:"https://ag-ui.threadplane.ai",sections:[{title:"Getting Started",id:"getting-started",color:"blue",pages:[{title:"Introduction",slug:"introduction",section:"getting-started"},{title:"Quick Start",slug:"quickstart",section:"getting-started"},{title:"Installation",slug:"installation",section:"getting-started"}]},{title:"Concepts",id:"concepts",color:"red",pages:[{title:"Architecture",slug:"architecture",section:"concepts"}]},{title:"Guides",id:"guides",color:"blue",pages:[{title:"Fake Agent",slug:"fake-agent",section:"guides"},{title:"Citations",slug:"citations",section:"guides"},{title:"Custom Events",slug:"custom-events",section:"guides"},{title:"Interrupts",slug:"interrupts",section:"guides"},{title:"Client Tools",slug:"client-tools",section:"guides"},{title:"Tool Views",slug:"tool-views",section:"guides"},{title:"Generative UI",slug:"json-render",section:"guides"},{title:"Subagents",slug:"subagents",section:"guides"},{title:"Testing",slug:"testing",section:"guides"},{title:"Deployment",slug:"deployment",section:"guides"},{title:"Troubleshooting",slug:"troubleshooting",section:"guides"}]},{title:"Reference",id:"reference",color:"blue",pages:[{title:"Event Mapping",slug:"event-mapping",section:"reference"}]},{title:"API Reference",id:"api",color:"blue",pages:[{title:"provideAgent()",slug:"provide-agent",section:"api"},{title:"injectAgent()",slug:"inject-agent",section:"api"},{title:"toAgent()",slug:"to-agent",section:"api"},{title:"FakeAgent",slug:"fake-agent",section:"api"}]}]},{id:"a2ui",title:"A2UI",description:"Protocol types and helpers for agent-driven UI surfaces",group:"library",sections:[{title:"Getting Started",id:"getting-started",color:"blue",pages:[{title:"Introduction",slug:"introduction",section:"getting-started"},{title:"Quick Start",slug:"quickstart",section:"getting-started"}]},{title:"Guides",id:"guides",color:"blue",pages:[{title:"Message Protocol",slug:"message-protocol",section:"guides"},{title:"Data Model",slug:"data-model",section:"guides"},{title:"Validating & Adapting",slug:"adapters-and-validation",section:"guides"}]},{title:"Reference",id:"reference",color:"blue",pages:[{title:"Schema",slug:"schema",section:"reference"},{title:"Parser, Resolver, and Guards",slug:"parser-resolver-guards",section:"reference"}]}]},{id:"middleware",title:"Middleware",description:"Backend helpers for browser-executed client tools",group:"library",sections:[{title:"Getting Started",id:"getting-started",color:"blue",pages:[{title:"Introduction",slug:"introduction",section:"getting-started"},{title:"Quick Start",slug:"quickstart",section:"getting-started"}]},{title:"Guides",id:"guides",color:"blue",pages:[{title:"LangGraph.js Client Tools",slug:"langgraph-client-tools",section:"guides"},{title:"Python LangGraph Middleware",slug:"python-langgraph",section:"guides"}]},{title:"API Reference",id:"api",color:"blue",pages:[{title:"LangGraph.js Helpers",slug:"client-tool-helpers",section:"api",apiEntries:["bindClientTools","clientToolsChannel","clientToolsRouter","clientToolSpecs","clientToolNames","hasClientToolCall","hasServerToolCall","routeAfterAgent","lastMessage"]}]}]},{id:"runtimes",title:"Runtimes",description:"Measured AG-UI runtime integrations behind @threadplane/ag-ui",group:"library",sections:[{title:"Getting Started",id:"getting-started",color:"blue",pages:[{title:"Introduction",slug:"introduction",section:"getting-started"}]},{title:"AWS Strands",id:"aws-strands",color:"blue",pages:[{title:"Overview",slug:"overview",section:"aws-strands"},{title:"Quickstart",slug:"quickstart",section:"aws-strands"},{title:"How It Connects",slug:"how-it-connects",section:"aws-strands"}]},{title:"Microsoft Agent Framework",id:"microsoft-agent-framework",color:"red",pages:[{title:"Overview",slug:"overview",section:"microsoft-agent-framework"},{title:"Quickstart",slug:"quickstart",section:"microsoft-agent-framework"},{title:"How It Connects",slug:"how-it-connects",section:"microsoft-agent-framework"}]},{title:"Mastra",id:"mastra",color:"blue",pages:[{title:"Overview",slug:"overview",section:"mastra"},{title:"Quickstart",slug:"quickstart",section:"mastra"},{title:"How It Connects",slug:"how-it-connects",section:"mastra"}]}]},{id:"deep-agents",title:"Deep Agents",description:"Rendering the Deep Agents middleware capabilities â planning, filesystem, subagents, memory, and skills â in an Angular UI",group:"library",sections:[{title:"Getting Started",id:"getting-started",color:"blue",pages:[{title:"Introduction",slug:"introduction",section:"getting-started"}]},{title:"Capabilities",id:"capabilities",color:"blue",pages:[{title:"Planning",slug:"planning",section:"capabilities"},{title:"Filesystem",slug:"filesystem",section:"capabilities"},{title:"Subagents",slug:"subagents",section:"capabilities"},{title:"Memory",slug:"memory",section:"capabilities"},{title:"Skills",slug:"skills",section:"capabilities"}]}]}];t.flatMap(e=>e.sections.flatMap(e=>e.pages)),e.s(["docsConfig",0,t,"getLibraryConfig",0,function(e){return t.find(t=>
1t.id===e)},"libraryIntroPath",0,function(e){return`/docs/${e}/getting-started/introduction`},"specialDocsPages",0,[{path:"/docs/choosing-an-adapter",contentPath:"choosing-an-adapter/index.mdx",title:"Choosing an adapter",description:"Decide between @threadplane/langgraph and @threadplane/ag-ui for your Angular agent UI."}]])},56420,e=>{"use strict";var t=e.i(71645);let i=(...e)=>e.filter((e,t,i)=>!!e&&""!==e.trim()&&i.indexOf(e)===t).join(" ").trim(),n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,i)=>i?i.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,t.createContext)({}),l=(0,t.forwardRef)(({color:e,size:n,strokeWidth:l,absoluteStrokeWidth:r,className:o="",children:c,iconNode:d,...u},g)=>{let{size:p=24,strokeWidth:h=2,absoluteStrokeWidth:m=!1,color:b="currentColor",className:v=""}=(0,t.useContext)(s)??{},k=r??m?24*Number(l??h)/Number(n??p):l??h;return(0,t.createElement)("svg",{ref:g,...a,width:n??p??a.width,height:n??p??a.height,stroke:e??b,strokeWidth:k,className:i("lucide",v,o),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(u)&&{"aria-hidden":"true"},...u},[...d.map(([e,i])=>(0,t.createElement)(e,i)),...Array.isArray(c)?c:[c]])});e.s(["default",0,(e,a)=>{let s=(0,t.forwardRef)(({className:s,...r},o)=>(0,t.createElement)(l,{ref:o,iconNode:a,className:i(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...r}));return s.displayName=n(e),s}],56420)},16327,e=>{"use strict";let t=(0,e.i(56420).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],16327)},61337,e=>{"use strict";var t=e.i(43476);let i={langgraph:{kind:"logo",src:"/logos/langgraph.svg"},"ag-ui":{kind:"logo",src:"/logos/ag-ui.svg"},a2ui:{kind:"logo",src:"/logos/providers/google.svg"},render:{kind:"logo",src:"/logos/surface/vercel.svg"},chat:{kind:"glyph",glyph:"chat"},middleware:{kind:"glyph",glyph:"middleware"},runtimes:{kind:"glyph",glyph:"layers"},"deep-agents":{kind:"glyph",glyph:"branch"}},n={chat:function({s:e}){return(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 5h16v11H8l-4 4V5Z"})})},middleware:function({s:e}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M4 7h16M4 17h16"}),(0,t.jsx)("path",{d:"M7 4v6M17 14v6"})]})},pulse:function({s:e}){return(0,t.jsx)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M3 13h4l3-8 4 16 3-8h4"})})},layers:function({s:e}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("path",{d:"M12 3 3 8l9 5 9-5-9-5Z"}),(0,t.jsx)("path",{d:"m3 16 9 5 9-5"}),(0,t.jsx)("path",{d:"m3 12 9 5 9-5"})]})},branch:function({s:e}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,t.jsx)("circle",{cx:"12",cy:"5",r:"2"}),(0,t.jsx)("circle",{cx:"5",cy:"19",r:"2"}),(0,t.jsx)("circle",{cx:"19",cy:"19",r:"2"}),(0,t.jsx)("path",{d:"M12 7v4M5 17v-2a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v2"})]})}};e.s(["LibraryMark",0,function({library:e,size:a=24}){let s=i[e],l={"--size":`${a}px`};if("logo"===s.kind){let e=Math.round(.6*a);return(0,t.jsx)("span",{className:"docs-library-mark","data-kind":"logo",style:l,children:(0,t.jsx)("img",{src:s.src,alt:"","aria-hidden":"true",loading:"lazy",decoding:"async",className:"docs-library-mark-img",style:{"--inner-size":`${e}px`}})})}let r=n[s.glyph];return(0,t.jsx)("span",{className:"docs-library-mark","data-kind":"glyph",style:l,children:(0,t.jsx)(r,{s:Math.round(.55*a)})})}])},56423,59888,e=>{"use strict";var t=e.i(56420);let i=(0,t.default)("book-open",[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]]);e.s(["BookOpen",0,i],56423);let n=(0,t.default)("braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);e.s(["Braces",0,n],59888)},12010,e=>{"use strict";let t=(0,e.i(56420).default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);e.s(["Lightbulb",0,t],12010)},19830,e=>{"use strict";let t=(0,e.i(56420).default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]);e.s(["Play",0,t],19830)},94371,e=>{"use strict";let t=(0,e.i(56420).default)("rocket",[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]]);e.s(["Rocket",0,t],94371)},67927,e=>{"use strict";let t=(0,e.i(56420).default)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["ChevronRight",0,t],67927)},52330,e=>{"use strict";let t=(0,e.i(56420).default)("code-xml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);e.s(["Code2",0,t],52330)},82022,e=>{"use strict";let t=(0,e.i(56420).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],82022)},66595,e=>{"use strict";let t=(0,e.i(56420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],66595)},69299,63676,e=>{"use strict";var t=e.i(43476),i=e.i(71645),n=e.i(67927);let a=(0,e.i(56420).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,a],63676);let s={position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",border:0};e.s(["ControlPlaneActionBar",0,function({label:e,children:n,className:a}){let s=(0,i.useRef)(null),l=!1,r=i.Children.map(n,e=>{if(!(0,i.isValidElement)(e))return e;let t=!e.props.disabled,n=t&&!l?0:-1;return t&&(l=!0),(0,i.cloneElement)(e,{tabIndex:n})});return(0,t.jsx)("div",{ref:s,role:"toolbar","aria-label":e,className:a,"data-control-plane-action-bar":!0,onKeyDown:e=>{if(!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;let t=Array.from(s.current?.querySelectorAll('[data-control-plane-action]:not(:disabled):not([aria-disabled="true"])')??[]);if(0===t.length)return;let i=Math.max(0,t.indexOf(document.activeElement)),n="Home"===e.key?0:"End"===e.key?t.length-1:"ArrowRight"===e.key?(i+1)%t.length:(i-1+t.length)%t.length;e.preventDefault(),t.forEach((e,t)=>{e.tabIndex=t===n?0:-1}),t[n]?.focus()},children:r})},"ControlPlaneIconButton",0,function({label:e,icon:n,onClick:a,href:s,disabled:l=!1,tabIndex:r,className:o,target:c,rel:d}){let u=(0,i.useId)(),g=(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsx)("span",{id:u,role:"tooltip","data-control-plane-tooltip":!0,children:e})]}),p={"aria-label":e,"aria-describedby":u,className:o,tabIndex:r,"data-control-plane-action":!0};return s?(0,t.jsx)("a",{...p,href:s,target:c,rel:d,"aria-disabled":l||void 0,onClick:e=>{l?e.preventDefault():a?.()},children:g}):(0,t.jsx)("button",{...p,type:"button",disabled:l,onClick:a,children:g})},"ControlPlanePane",0,function({label:e,children:i,className:n}){return(0,t.jsx)("aside",{"aria-label":e,className:n,"data-control-plane-pane":!0,children:i})},"ControlPlaneRail",0,function({label:e,primaryLabel:n,primary:a,utilities:s,className:l}){let r=(0,i.useId)();return(0,t.jsxs)("nav",{"aria-label":e,className:l,"data-control-plane-rail":!0,children:[(0,t.jsxs)("div",{"data-control-plane-rail-group":"primary",role:n?"group":void 0,"aria-labelledby":n?r:void 0,children:[n?(0,t.jsx)("span",{id:r,"data-control-plane-rail-group-label":!0,children:n}):null,a]}),s?(0,t.jsx)("div",{"data-control-plane-rail-group":"utilities",children:s}):null]})},"ControlPlaneRailItem",0,function({label:e,icon:n,active:a=!1,disabled:l=!1,disabledReason:r,href:o,onSelect:c,iconOnly:d=!1,className:u,target:g,rel:p,status:h}){let m=(0,i.useId)(),b=(0,i.useId)(),v=h?`${e}, ${h.label}`:e,k=d||!!h,f=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"data-control-plane-rail-icon":!0,children:n}),d?null:(0,t.jsx)("span",{"data-control-plane-rail-label":!0,children:e}),h?(0,t.jsx)("span",{"data-control-plane-rail-status":h.kind,"aria-hidden":"true"}):null,h&&!d?(0,t.jsx)("span",{style:s,children:h.label}):null,d?(0,t.jsx)("span",{id:m,role:"tooltip","data-control-plane-tooltip":!0,children:v}):null]}),y=l&&r?(0,t.jsx)("span",{id:b,style:s,children:r}):null,x={className:u,"data-control-plane-rail-item":!0,"data-control-plane-active":a||void 0,"data-control-plane-disabled":l||void 0,"aria-label":k?v:void 0,"aria-describedby":[d?m:null,l&&r?b:null].filter(Boolean).join(" ")||void 0};return o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("a",{...x,href:o,target:g,rel:p,"aria-current":a?"page":void 0,"aria-disabled":l||void 0,onClick:e=>{l?e.preventDefault():c?.()},children:f}),y]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{...x,type:"button","aria-pressed":a,"aria-disabled":l||void 0,onClick:()=>{l||c?.()},children:f}),y]})},"ControlPlaneSection",0,function({title:e,icon:a,summary:l,description:r,open:o=!0,onOpenChange:c,children:d,className:u,collapsible:g=!0}){let p=(0,i.useId)(),h=(0,i.useId)();return(0,t.jsxs)("section",{className:u,"data-control-plane-section":!0,children:[g?(0,t.jsxs)("button",{type:"button","aria-expanded":o,"aria-controls":p,"aria-describedby":r?h:void 0,onClick:()=>c?.(!o),"data-control-plane-section-trigger":!0,children:[(0,t.jsxs)("span",{"data-control-plane-section-title":!0,children:[a?(0,t.jsx)("span",{"data-control-plane-section-icon":!0,children:a}):null,e]}
1),(0,t.jsxs)("span",{"data-control-plane-section-end":!0,children:[l?(0,t.jsx)("span",{"data-control-plane-section-summary":!0,"aria-hidden":"true",children:l}):null,(0,t.jsx)(n.ChevronRight,{size:16,strokeWidth:2,"aria-hidden":"true","data-control-plane-chevron":!0,"data-control-plane-section-chevron":!0})]})]}):(0,t.jsxs)("h2",{"data-control-plane-section-heading":!0,children:[a?(0,t.jsx)("span",{"data-control-plane-section-icon":!0,children:a}):null,e]}),g&&r?(0,t.jsx)("span",{id:h,style:s,"data-control-plane-section-description":!0,children:r}):null,o?(0,t.jsx)("div",{id:p,"data-control-plane-section-content":!0,children:d}):null]})},"ControlPlaneUtilityPanel",0,function({title:e,onClose:n,children:s,className:l}){let r=(0,i.useId)(),o=(0,i.useRef)(null);return(0,i.useEffect)(()=>{o.current?.focus()},[]),(0,t.jsxs)("section",{"aria-labelledby":r,className:l,"data-control-plane-utility-panel":!0,onKeyDown:e=>{"Escape"===e.key&&(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),n())},children:[(0,t.jsxs)("header",{"data-control-plane-utility-header":!0,children:[(0,t.jsx)("h2",{ref:o,id:r,tabIndex:-1,children:e}),(0,t.jsx)("button",{type:"button","aria-label":`Close ${e}`,onClick:n,children:(0,t.jsx)(a,{size:18,strokeWidth:2,"aria-hidden":"true"})})]}),(0,t.jsx)("div",{"data-control-plane-utility-content":!0,children:s})]})}],69299)},19844,e=>{"use strict";var t=e.i(71645);let i="threadplane:control-plane:v1",n={Learn:!0,Environment:!1},a={Capability:!0,Environment:!0},s=["Docs","Run","Code","API"],l=()=>({version:1,docs:{expanded:{...n}},cockpit:{expanded:{...a}}}),r=()=>{try{return window.localStorage}catch{return null}},o=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),c=(e,t)=>{let i={...t};if(!o(e))return i;for(let[t,n]of Object.entries(e))"boolean"==typeof n&&(i[t]=n);return i},d=e=>{let t=l();try{let n=e.getItem(i);if(!n)return t;let a=JSON.parse(n);if(!o(a)||1!==a.version)return t;let s=o(a.docs)?a.docs:{},l=o(a.cockpit)?a.cockpit:{};return{version:1,docs:{expanded:c(s.expanded,t.docs.expanded)},cockpit:{expanded:c(l.expanded,t.cockpit.expanded)}}}catch{return t}};e.s(["parseControlPlaneMode",0,e=>{if(!e)return null;let t=e.toLowerCase();return s.find(e=>e.toLowerCase()===t)??null},"useControlPlanePreferences",0,function(e){let[n,a]=(0,t.useState)(l),[s,o]=(0,t.useState)(!1);(0,t.useEffect)(()=>{let e=r();a(e?d(e):l()),o(!0)},[]);let c=(0,t.useCallback)(e=>{a(t=>{let n=r(),a=e(s&&n?d(n):t);return s&&n&&((e,t)=>{try{e.setItem(i,JSON.stringify(t))}catch{}})(n,a),a})},[s]),u=(0,t.useCallback)((t,i)=>{c(n=>"docs"===e?{...n,docs:{...n.docs,expanded:{...n.docs.expanded,[t]:i}}}:{...n,cockpit:{...n.cockpit,expanded:{...n.cockpit.expanded,[t]:i}}})},[e,c]);return{hydrated:s,expanded:n[e].expanded,setExpanded:u}}])},42693,92150,e=>{"use strict";var t=e.i(56420);let i=(0,t.default)("blocks",[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2",key:"1ah6g2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1",key:"88lufb"}]]);e.s(["Blocks",0,i],42693);let n=(0,t.default)("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);e.s(["Boxes",0,n],92150)},64346,e=>{"use strict";let t=(0,e.i(56420).default)("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",0,t],64346)},34322,e=>{"use strict";let t=(0,e.i(56420).default)("file-code-corner",[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]]);e.s(["FileCode2",0,t],34322)},15753,e=>{"use strict";var t=e.i(43476),i=e.i(56423),n=e.i(59888),a=e.i(52330),s=e.i(82022),l=e.i(19830),r=e.i(66595),o=e.i(69299),c=e.i(19844),d=e.i(22521),u=e.i(71645),g=e.i(22016),p=e.i(18566),h=e.i(42693),m=e.i(92150),b=e.i(16327),v=e.i(64346),k=e.i(34322),f=e.i(12010),y=e.i(94371),x=e.i(61337);let C='[role="menuitemradio"]',j=[{id:"adapter",label:"Adapters"},{id:"library",label:"Libraries"}];function w({activeLibrary:e,onNavigate:i,resolveHref:n=e=>e}){let[a,s]=(0,u.useState)(!1),l=(0,u.useRef)(null),r=(0,u.useRef)(null),o=(0,u.useRef)(null),c=(0,u.useRef)(0),p=(0,u.useId)();(0,u.useEffect)(()=>{let e=e=>{l.current&&!l.current.contains(e.target)&&s(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),(0,u.useEffect)(()=>
1{if(!a)return;let e=o.current?.querySelectorAll(C);e?.[c.current]?.focus()},[a]),(0,u.useEffect)(()=>{if(!a)return;let e=()=>{let e=r.current,t=o.current;if(!e||!t)return;let i=window.innerHeight-e.getBoundingClientRect().bottom-16;t.style.maxHeight=`${Math.max(180,i)}px`};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[a]);let h=e=>{c.current=e,s(!0)},m=(e=!1)=>{s(!1),e&&r.current?.focus()},v=e?(0,d.getLibraryConfig)(e):void 0;return(0,t.jsxs)("div",{ref:l,className:"docs-sidebar-library",children:[(0,t.jsxs)("button",{ref:r,type:"button",onClick:()=>{a?m(!0):h(0)},onKeyDown:e=>{("ArrowDown"===e.key||"ArrowUp"===e.key)&&(e.preventDefault(),h("ArrowDown"===e.key?0:d.docsConfig.length-1))},"aria-haspopup":"menu","aria-expanded":a,"aria-controls":p,className:"docs-sidebar-lib-trigger",children:[(0,t.jsxs)("span",{className:"docs-sidebar-lib-trigger-inner",children:[e?(0,t.jsx)(x.LibraryMark,{library:e,size:20}):null,(0,t.jsx)("span",{className:"docs-sidebar-lib-trigger-label","data-placeholder":e?void 0:"",children:v?.title??"Choose a library"})]}),(0,t.jsx)(b.ChevronDown,{size:16,strokeWidth:2,"aria-hidden":"true","data-open":a||void 0})]}),a?(0,t.jsx)("div",{ref:o,id:p,role:"menu",className:"docs-sidebar-lib-menu",onKeyDown:e=>{let t=Array.from(o.current?.querySelectorAll(C)??[]),i=Math.max(0,t.indexOf(document.activeElement)),n="Home"===e.key?0:"End"===e.key?t.length-1:"ArrowDown"===e.key?(i+1)%t.length:"ArrowUp"===e.key?(i-1+t.length)%t.length:-1;n>=0?(e.preventDefault(),t[n]?.focus()):"Escape"===e.key?(e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),m(!0)):"Tab"===e.key&&m()},children:j.map((a,s)=>(0,t.jsxs)("div",{role:"group","aria-label":a.label,children:[s>0?(0,t.jsx)("span",{className:"docs-sidebar-lib-divider","aria-hidden":"true"}):null,(0,t.jsx)("span",{className:"docs-sidebar-lib-group","aria-hidden":"true",children:a.label}),d.docsConfig.filter(e=>e.group===a.id).map(a=>{let s=a.id===e;return(0,t.jsxs)(g.default,{role:"menuitemradio","aria-checked":s,tabIndex:-1,href:n((0,d.libraryIntroPath)(a.id)),"data-workspace-navigation-link":!0,onClick:()=>{m(),i?.()},className:"docs-sidebar-lib-item","data-active":s||void 0,children:[(0,t.jsx)("span",{className:"docs-sidebar-lib-item-icon",children:(0,t.jsx)(x.LibraryMark,{library:a.id,size:20})}),(0,t.jsxs)("span",{className:"docs-sidebar-lib-item-text",children:[(0,t.jsx)("span",{className:"docs-sidebar-lib-item-title","data-active":s||void 0,children:a.title}),a.tagline?(0,t.jsx)("span",{className:"docs-sidebar-lib-item-desc",children:a.tagline}):null]})]},a.id)})]},a.id))}):null]})}let A={"getting-started":y.Rocket,guides:i.BookOpen,concepts:f.Lightbulb,components:m.Boxes,a2ui:h.Blocks,api:n.Braces,reference:k.FileCode2};function S({section:e,activeLibrary:i,activeSection:n,activeSlug:a,open:s,onOpenChange:l,onNavigate:r,resolveHref:o=e=>e}){let c=A[e.id]??v.Circle,d=(0,u.useId)();return(0,t.jsxs)("div",{className:"docs-sidebar-section",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>l(!s),"aria-expanded":s,"aria-controls":d,className:"docs-sidebar-section-toggle",children:[(0,t.jsxs)("span",{className:"docs-sidebar-section-labelrow",children:[(0,t.jsx)(c,{size:16,"aria-hidden":!0}),(0,t.jsx)("span",{className:"docs-sidebar-section-label",children:e.title})]}),(0,t.jsx)(b.ChevronDown,{size:16,strokeWidth:2,"aria-hidden":"true",className:"docs-sidebar-section-caret","data-open":s||void 0})]}),s?(0,t.jsx)("nav",{id:d,"aria-label":`${e.title} pages`,className:"docs-sidebar-section-links",children:e.pages.map(e=>{let s=e.section===n&&e.slug===a;return(0,t.jsx)(g.default,{href:o(`/docs/${i}/${e.section}/${e.slug}`),onClick:r,"data-docs-navlink":!0,"data-workspace-navigation-link":!0,"data-active":s||void 0,"aria-current":s?"page":void 0,className:"docs-sidebar-section-link",children:e.title},`${e.section}/${e.slug}`)})}):null]})}function I({activeLibrary:e,activeSection:i,activeSlug:n,expanded:a={},onExpandedChange:s,onNavigate:l,resolveHref:r=e=>e}){let o=e?(0,d.getLibraryConfig)(e):void 0,c=(0,p.usePathname)();return(0,t.jsxs)("div",{"data-docs-navigation":!0,children:[(0,t.jsx)("nav",{"aria-label":"Featured documentation",className:"docs-sidebar-top-links",children:d.specialDocsPages.map(e=>(0,t.jsx)(g.default,{href:r(e.path),onClick:l,"data-docs-navlink":!0,"data-workspace-navigation-link":!0,"data-active":c===e.path||void 0,"aria-current":c===e.path?"page":void 0,className:"docs-sidebar-top-link",children:e.title},e.path))}),(0,t.jsx)(w,{activeLibrary:e,onNavigate:l,resolveHref:r}),e&&o?o.sections.map(o=>{let c=`Learn:${e}:${o.id}`;return(0,t.jsx)(S,{section:o,activeLibrary:e,activeSection:i,activeSlug:n,open:a[c]??!0,onOpenChange:e=>s?.(c,e),onNavigate:l,resolveHref:r},o.id)}):null]})}let M=()=>document.dispatchEvent(new KeyboardEvent("keydown",{key:"k",metaKey:!0}));function L({activeLibrary:e,activeSection:i,activeSlug:n,mobile:a=!1,onNavigate:l,onSearchHandoff:u,resolveHref:g}){let p=(0,c.useControlPlanePreferences)("docs"),h=e?(0,d.getLibraryConfig)(e):void 0;return(0,t.jsxs)("div",{"data-docs-control-plane-context":!0,"data-mobile":a||void 0,children:[(0,t.jsxs)("button",{type:"button",className:"docs-control-plane-search-trigger",onClick:()=>{a?u?u():(l?.(),window.requestAnimationFrame(M)):M()},children:[(0,t.jsxs)("span",{className:"docs-control-plane-search-inner",children:[(0,t.jsx)(r.Search,{size:14,"aria-hidden":"true"}),(0,t.jsx)("span",{className:"docs-control-plane-search-label",children:"Search docs"})]}),(0,t.jsx)("kbd",{className:"docs-control-plane-search-kbd","aria-hidden":"true",children:"âK"})]}),(0,t.jsx)(o.ControlPlaneSection,{title:"Learn",open:p.expanded.Learn??!0,onOpenChange:e=>p.setExpanded("Learn",e),children:(0,t.jsx)(I,{activeLibrary:e,activeSection:i,activeSlug:n,expanded:p.expanded,onExpandedChange:p.setExpanded,onNavigate:l,resolveHref:g})}),h?.demoUrl?(0,t.jsx)(o.ControlPlaneSection,{title:"Actions",collapsible:!1,
1children:(0,t.jsx)(o.ControlPlaneActionBar,{label:"Docs actions",children:(0,t.jsx)(o.ControlPlaneIconButton,{label:h.demoLabel??"Open live demo",icon:(0,t.jsx)(s.ExternalLink,{size:16,"aria-hidden":"true"}),href:h.demoUrl,target:"_blank",rel:"noopener noreferrer"})})}):null]})}e.s(["DocsContextContent",0,L,"DocsControlPlane",0,function(e){let s=e.activeLibrary?`/docs/${e.activeLibrary}/${e.activeSection}/${e.activeSlug}`:"/docs",r=e=>`${e} is unavailable because this page has no workspace capability.`;return(0,t.jsxs)("div",{className:"docs-control-plane","data-docs-control-plane":!0,children:[(0,t.jsx)(o.ControlPlaneRail,{label:"Docs modes",primary:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(o.ControlPlaneRailItem,{label:"Docs",icon:(0,t.jsx)(i.BookOpen,{size:18,"aria-hidden":"true"}),href:s,active:!0}),(0,t.jsx)(o.ControlPlaneRailItem,{label:"Run",icon:(0,t.jsx)(l.Play,{size:18,"aria-hidden":"true"}),href:e.runHref,disabled:!e.runHref,disabledReason:r("Run")}),(0,t.jsx)(o.ControlPlaneRailItem,{label:"Code",icon:(0,t.jsx)(a.Code2,{size:18,"aria-hidden":"true"}),disabled:!0,disabledReason:r("Code")}),(0,t.jsx)(o.ControlPlaneRailItem,{label:"API",icon:(0,t.jsx)(n.Braces,{size:18,"aria-hidden":"true"}),disabled:!0,disabledReason:r("API")})]})}),(0,t.jsx)(o.ControlPlanePane,{label:"Docs context",children:(0,t.jsx)(L,{...e})})]})}],15753)}]);
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.