1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="8dfb2a4e-d456-4786-95d5-1a2a13dd757b",e._sentryDebugIdIdentifier="sentry-dbid-8dfb2a4e-d456-4786-95d5-1a2a13dd757b")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9926],{13633:(e,t,r)=>{r.d(t,{A:()=>a});let a={src:"/_next/static/media/codex.9e59b850.svg",height:16,width:16,blurWidth:0,blurHeight:0}},38553:(e,t,r)=>{r.d(t,{t:()=>a});function a(e){return"authors"in e?e.authors:[e.author]}},39760:(e,t,r)=>{r.d(t,{HX:()=>V,ao:()=>T,xd:()=>P,bV:()=>R,F:()=>D,Rv:()=>W,gR:()=>_,Oo:()=>I,zF:()=>k,S5:()=>C,Pk:()=>F,mI:()=>E});var a=r(23798),s=r(97393),n=r(53037),i=r(38453),o=r(3852),l=r(28270),c=r(1243),d=r(63120),m=r(81557),x=r(15205),h=r(13408),p=r(47375),g=r(10907),b=r(54650),u=r(65313),y=r.n(u),f=r(49476),j=r.n(f),N=r(21462),v=r(58643),w=r(13633),A=r(99796);function I(e){return(0,a.jsx)(j(),{className:(0,s.A)("font-semibold transition-colors","text-indigo-600","text-sm border px-3 py-1.5 rounded-lg bg-indigo-50","hover:underline underline-offset-2","decoration-2 decoration-indigo-600/20","hover:decoration-indigo-600/80"),href:e.url,children:"Learn more"})}function _(e){return(0,a.jsxs)("div",{className:(0,s.A)("relative my-8 border-l-2 border-gray-200 pl-6","[&>h2]:mt-0 [&>h2]:scroll-mt-24",e.className),children:[(0,a.jsx)("span",{className:"not-prose absolute -left-px top-2.5 h-2.5 w-2.5 -translate-x-1/2 rounded-full bg-gray-300 ring-4 ring-white"}),e.children]})}function C(e){return(0,a.jsx)("div",{className:(0,s.A)("not-prose my-6 flex flex-col gap-6 border-l-2 border-gray-200 pl-6",e.className),children:e.children})}function k(e){return(0,a.jsxs)("div",{className:"group relative",children:[(0,a.jsx)("span",{className:"absolute -left-[calc(1.5rem+1px)] top-[0.4rem] h-2 w-2 -translate-x-1/2 rounded-full border-2 border-gray-300 bg-white"}),(0,a.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,a.jsx)("span",{className:"text-[.9rem] font-semibold text-gray-900 sm:text-base",children:e.title}),e.url&&(0,a.jsx)(j(),{href:e.url,className:"shrink-0 text-sm font-medium text-indigo-600 transition-colors hover:text-indigo-700 hover:underline underline-offset-2",children:"Learn more â"})]}),(0,a.jsx)("div",{className:"mt-1 text-[.9rem] leading-relaxed text-gray-500 sm:text-base [&_code]:rounded [&_code]:bg-gray-100 [&_code]:px-1 [&_code]:py-0.5 [&_code]:text-[0.85em] [&_code]:text-gray-700 [&>p]:m-0",children:e.children})]})}function T(e){let[t,r]=N.useState(!1),n=async()=>{try{await navigator.clipboard.writeText(e.prompt),r(!0),setTimeout(()=>r(!1),2e3)}catch(e){console.error("Failed to copy text: ",e)}};return(0,a.jsxs)("div",{className:(0,s.A)("not-prose relative group rounded-lg border border-gray-200 bg-white overflow-hidden",e.className),children:[(0,a.jsxs)("div",{className:"h-8 bg-white border-b border-gray-200 flex items-center justify-between pl-3 pr-1.5",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-mono text-gray-500 truncate",children:[(0,a.jsx)(l.A,{className:"w-3.5 h-3.5 shrink-0"}),"Agent Prompt"]}),(0,a.jsx)(o.Bc,{children:(0,a.jsxs)(o.m_,{children:[(0,a.jsx)(o.k$,{asChild:!0,children:(0,a.jsx)("button",{type:"button",onClick:n,className:"p-1.5 rounded-md text-gray-500 hover:bg-gray-100 hover:text-gray-700 transition-colors duration-200",children:t?(0,a.jsx)(c.A,{className:"w-4 h-4"}):(0,a.jsx)(d.A,{className:"w-4 h-4"})})}),(0,a.jsx)(o.ZI,{className:"bg-brand-primary-0 text-white p-1",children:(0,a.jsx)("p",{className:"text-xs",children:t?"Copied!":"Copy"})})]})})]}),(0,a.jsx)("div",{className:"p-4 text-sm font-mono whitespace-pre-wrap break-words",children:e.prompt})]})}function E(e){let[t,r]=N.useState(!1),n=async()=>{try{await navigator.clipboard.writeText(e.output),r(!0),setTimeout(()=>r(!1),2e3)}catch(e){console.error("Failed to copy text: ",e)}};return(0,a.jsxs)("div",{className:(0,s.A)("not-prose relative group rounded-lg border border-gray-200 bg-white overflow-hidden",e.className),children:[(0,a.jsxs)("div",{className:"h-8 bg-white border-b border-gray-200 flex items-center justify-between pl-3 pr-1.5",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-mono text-gray-500 truncate",children:[(0,a.jsx)(m.A,{className:"w-3.5 h-3.5 shrink-0"}),"Output"]}),(0,a.jsx)(o.Bc,{children:(0,a.jsxs)(o.m_,{children:[(0,a.jsx)(o.k$,{asChild:!0,children:(0,a.jsx)("button",{type:"button",onClick:n,className:"p-1.5 rounded-md text-gray-500 hover:bg-gray-100 hover:text-gray-700 transition-colors duration-200",children:t?(0,a.jsx)(c.A,{className:"w-4 h-4"}):(0,a.jsx)(d.A,{className:"w-4 h-4"})})}),(0,a.jsx)(o.ZI,{className:"bg-brand-primary-0 text-white p-1",children:(0,a.jsx)("p",{className:"text-xs",children:t?"Copied!":"Copy"})})]})})]}),(0,a.jsx)("div",{className:"p-4 overflow-x-auto text-sm flex flex-col [&_pre]:!bg-transparent [&_pre]:!p-0",children:e.output.split("\n").map((e,t)=>""===e.trim()?(0,a.jsx)("div",{className:"h-[1em]"}
1,t):(0,a.jsx)(i.N,{code:e,lang:"bash"},t))})]})}function S(e){let{command:t}=e,r=t.split("\n");return(0,a.jsx)("div",{className:"flex flex-col [&_pre]:!bg-transparent [&_pre]:!p-0",children:r.map((e,t)=>{if(""===e.trim())return(0,a.jsx)("div",{className:"h-[1em]"},t);if(e.startsWith("#"))return(0,a.jsx)("div",{className:"text-gray-500 font-mono select-none",children:e},t);let r=/^\s/.test(e);return(0,a.jsxs)("div",{className:"flex",children:[!r&&(0,a.jsx)("span",{className:"text-brand-primary-0 select-none mr-2 font-mono",children:"$"}),(0,a.jsx)(i.N,{code:e,lang:"bash"})]},t)})})}function D(e){let[t,r]=N.useState(!1),n=async()=>{try{await navigator.clipboard.writeText(e.command),r(!0),setTimeout(()=>r(!1),2e3)}catch(e){console.error("Failed to copy text: ",e)}};return(0,a.jsxs)("div",{className:(0,s.A)("not-prose relative group rounded-lg border border-gray-200 bg-white overflow-hidden",e.className),children:[(0,a.jsxs)("div",{className:"h-8 bg-white border-b border-gray-200 flex items-center justify-between pl-3 pr-1.5",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-mono text-gray-500 truncate",children:[(0,a.jsx)(x.A,{className:"w-3.5 h-3.5"}),"Command Line"]}),(0,a.jsx)(o.Bc,{children:(0,a.jsxs)(o.m_,{children:[(0,a.jsx)(o.k$,{asChild:!0,children:(0,a.jsx)("button",{type:"button",onClick:n,className:"p-1.5 rounded-md text-gray-500 hover:bg-gray-100 hover:text-gray-700 transition-colors duration-200",children:t?(0,a.jsx)(c.A,{className:"w-4 h-4"}):(0,a.jsx)(d.A,{className:"w-4 h-4"})})}),(0,a.jsx)(o.ZI,{className:"bg-brand-primary-0 text-white p-1",children:(0,a.jsx)("p",{className:"text-xs",children:t?"Copied!":"Copy"})})]})})]}),(0,a.jsxs)("div",{className:"p-4 overflow-x-auto text-sm bg-white",children:[e.comment&&(0,a.jsxs)("div",{className:"text-gray-500 font-mono select-none mb-1",children:["# ",e.comment]}),(0,a.jsx)(S,{command:e.command})]})]})}let U=[{id:"claude-code",label:"Claude Code",description:"Anthropic",iconImage:v.A,envVar:"ANTHROPIC_API_KEY",secretId:"anthropic-api-key",command:"claude"},{id:"amp",label:"Amp",description:"Sourcegraph",icon:h.A,envVar:"AMP_API_KEY",secretId:"amp-api-key",command:"amp"},{id:"codex",label:"Codex",description:"OpenAI",iconImage:w.A,envVar:"OPENAI_API_KEY",secretId:"openai-api-key",command:"codex"},{id:"antigravity",label:"Antigravity",description:"Google",iconImage:{src:"/_next/static/media/antigravity.da058702.png",height:540,width:540,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAANlBMVEVNmNBHq7dPjvzfUV82h/45i/8wiPgzifw0i/3fhDZ1xGcwhf+NfMUxk/BXivOAsIM1nvC5dX9rnKMxAAAADnRSTlMBldFIcRZ0Z5iOShWS0OFuf9kAAAAJcEhZcwAAITgAACE4AUWWMWAAAAAwSURBVAiZTYu3EQAgEIAwvjnsv6ynFkoDDfAR43Xq05xQo5UTVURvS4AggM/g7FsXG5IAwMs17CwAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},envVar:"GEMINI_API_KEY",secretId:"gemini-api-key",command:"antigravity"},{id:"cursor",label:"Cursor",description:"Cursor",iconImage:A.A,envVar:"CURSOR_API_KEY",secretId:"cursor-api-key",command:"cursor-agent"},{id:"copilot",label:"Copilot",description:"Github",iconImage:{src:"/_next/static/media/copilot.7526086d.svg",height:96,width:96,blurWidth:0,blurHeight:0},envVar:"GH_TOKEN",secretId:"github-token",command:"gh copilot chat"}];function V(e){let[t,r]=N.useState(0),i=U[t];return(0,a.jsxs)("div",{className:(0,s.A)("not-prose my-6 grid grid-cols-1 md:grid-cols-[14rem_minmax(0,1fr)] gap-4",e.className),children:[(0,a.jsxs)("div",{className:"relative md:hidden",children:[(0,a.jsx)("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 flex h-6 w-6 items-center justify-center",children:i.iconImage?(0,a.jsx)(y(),{src:i.iconImage,alt:"",width:20,height:20,className:"h-5 w-5 object-contain m-0"}):i.icon?(0,a.jsx)(i.icon,{className:"h-5 w-5 text-gray-600"}):null}),(0,a.jsx)("select",{"aria-label":"Coding agent",value:i.id,onChange:e=>{let t=U.findIndex(t=>t.id===e.target.value);t>=0&&r(t)},className:"w-full appearance-none rounded-lg border border-gray-200 bg-white pl-11 pr-9 py-2.5 text-sm font-semibold text-gray-900 focus:outline-none focus:ring-2 focus:ring-brand-primary-0/30 focus:border-brand-primary-0",children:U.map(e=>(0,a.jsx)("option",{value:e.id,children:e.label},e.id))}),(0,a.jsx)(p.A,{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-500"})]}),(0,a.jsx)("div",{role:"tablist","aria-label":"Coding agent",className:"hidden md:flex flex-col gap-1.5",children:U.map((e,n)=>{let i=e.icon,o=n===t;return(0,a.jsxs)("button",{type:"button",role:"tab",id:"agent-tab-".concat(e.id),"aria-selected":o,"aria-controls":"agent-panel-".concat(e.id),onClick:()=>r(n),className:(0,s.A)("group relative flex items-center gap-3 rounded-lg border px-3 py-2.5 text-left transition-all",o?"border-brand-primary-0 bg-brand-primary-0/5 shadow-sm":"border-gray-200 bg-white hover:border-gray-300 hover:bg-gray-50"),children:[(0,a.jsx)("span",{className:(0,s.A)("flex h-8 w-8 shrink-0 items-center justify-center rounded-md border transition-colors",o?"border-brand-primary-0 bg-white text-brand-primary-0":"border-gray-200 bg-white text-gray-600 group-hover:border-gray-300"),children:e.iconImage?(0,a.jsx)(y(),{src:e.iconImage,alt:"".concat(e.label," logo"),width:16,height:16,className:"h-4 w-4 object-contain m-0"}):i?(0,a.jsx)(i,{className:"h-4 w-4"}):null}),(0,a.jsxs)("span",{className:"flex flex-col",children:[(0,a.jsx)("span",{className:(0,s.A)("text-sm font-semibold leading-tight",o?"text-brand-primary-0":"text-gray-900"),children:e.label}),(0,a.jsx)("span",{className:"text-xs text-gray-500 leading-tight mt-0.5",children:e.description})]})]},e.id)})}),U.map((e,r)=>(0,a.jsxs)("div",{role:"tabpanel",id:"agent-panel-".concat(e.id),"aria-labelledby":"agent-tab-".concat(e.id),hidden:r!==t,className:"min-w-0",children:[(0,a.jsxs)("h3",{className:"sr-only",children:["Run ",e.label," (",e.description,") in a Namespace Devbox"]}),(0,a.jsxs)(n.gj,{className:"mb-0",children:[(0,a.jsx)("h3",{children:"Define your spec"}),(0,a.jsx)(R,{name:"devbox.yaml",lang:"yaml",code:"name: my-devbox\nimage: builtin:agents\nsize: m\nrepository: github.com/your-org/your-repo\nenv:\n - name: ".concat(e.envVar,"\n from_secret_id: ").concat(e.secretId,"\nsessions:\n - name: ").concat(e.id,"\n command: ").concat(e.command)}),(0,a.jsx)("h3",{children:"Create from your spec"}),(0,a.jsx)(D,{command:"devbox create --from devbox.yaml"}),(0,a.jsxs)("h3",{children:["Connect to the ",e.label," session"]}),(0,a.jsx)(D,{command:"devbox session connect my-devbox --session ".concat(e.id)})]})]},e.id))]})}function R(e){var t;let[r,n]=N.useState(!1),l=async()=>{try{await navigator.clipboard.writeText(e.code),n(!0),setTimeout(()=>n(!1),2e3)}catch(e){console.error("Failed to copy text: ",e)}};return(0,a.jsxs)("div",{className:(0,s.A)("not-prose relative group rounded-lg border border-gray-200 bg-white overflow-hidden",e.className),children:[(0,a.jsxs)("div",{className:"h-8 bg-white border-b border-gray-200 flex items-center justify-between pl-3 pr-1.5",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-mono text-gray-500 truncate",children:[(0,a.jsx)(g.A,{className:"w-3.5 h-3.5"}),null!=(t=e.name)?t:"Code"]}),(0,a.jsx)(o.Bc,{children:(0,a.jsxs)(o.m_,{children:[(0,a.jsx)(o.k$,{asChild:!0,children:(0,a.jsx)("button",{type:"button",onClick:l,className:"p-1.5 rounded-md text-gray-500 hover:bg-gray-100 hover:text-gray-700 transition-colors duration-200",children:r?(0,a.jsx)(c.A,{className:"w-4 h-4"}):(0,a.jsx)(d.A,{className:"w-4 h-4"})})}),(0,a.jsx)(o.ZI,{className:"bg-brand-primary-0 text-white p-1",children:(0,a.jsx)("p",{className:"text-xs",children:r?"Copied!":"Copy"})})]})})]}),e.lang?(0,a.jsx)("div",{className:"[&_pre]:p-4 [&_pre]:overflow-x-auto [&_pre]:text-sm [&_pre]:!bg-white",children:(0,a.jsx)(i.N,{co
1de:e.code,lang:e.lang})}):(0,a.jsx)("pre",{className:"p-4 overflow-x-auto text-sm bg-white",children:(0,a.jsx)("code",{className:"text-sm",children:e.code})})]})}function P(e){var t;let[r,n]=N.useState(!1),i=e.diff.replace(/\n$/,"").split("\n").map(e=>e.startsWith("+")?{type:"add",content:e.slice(1)}:e.startsWith("-")?{type:"remove",content:e.slice(1)}:e.startsWith(" ")?{type:"context",content:e.slice(1)}:{type:"context",content:e}),l=async()=>{let e=i.filter(e=>"remove"!==e.type).map(e=>e.content).join("\n");try{await navigator.clipboard.writeText(e),n(!0),setTimeout(()=>n(!1),2e3)}catch(e){console.error("Failed to copy text: ",e)}};return(0,a.jsxs)("div",{className:(0,s.A)("not-prose relative group rounded-lg border border-gray-200 bg-white overflow-hidden",e.className),children:[(0,a.jsxs)("div",{className:"h-8 bg-white border-b border-gray-200 flex items-center justify-between pl-3 pr-1.5",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5 text-xs font-mono text-gray-500 truncate",children:[(0,a.jsx)(b.A,{className:"w-3.5 h-3.5 shrink-0"}),null!=(t=e.name)?t:"Diff"]}),(0,a.jsx)(o.Bc,{children:(0,a.jsxs)(o.m_,{children:[(0,a.jsx)(o.k$,{asChild:!0,children:(0,a.jsx)("button",{type:"button",onClick:l,className:"p-1.5 rounded-md text-gray-500 hover:bg-gray-100 hover:text-gray-700 transition-colors duration-200",children:r?(0,a.jsx)(c.A,{className:"w-4 h-4"}):(0,a.jsx)(d.A,{className:"w-4 h-4"})})}),(0,a.jsx)(o.ZI,{className:"bg-brand-primary-0 text-white p-1",children:(0,a.jsx)("p",{className:"text-xs",children:r?"Copied!":"Copy"})})]})})]}),(0,a.jsx)("div",{className:"overflow-x-auto text-sm font-mono leading-relaxed",children:(0,a.jsx)("pre",{className:"!m-0 !bg-white !p-0",children:(0,a.jsx)("code",{className:"grid",children:i.map((e,t)=>(0,a.jsxs)("span",{className:(0,s.A)("flex","add"===e.type&&"bg-diff-green","remove"===e.type&&"bg-diff-red"),children:[(0,a.jsx)("span",{className:(0,s.A)("w-6 shrink-0 select-none text-center","add"===e.type&&"text-green-700","remove"===e.type&&"text-red-700","context"===e.type&&"text-gray-300"),children:"add"===e.type?"+":"remove"===e.type?"-":" "}),(0,a.jsx)("span",{className:"flex-1 whitespace-pre pr-4",children:e.content||" "})]},t))})})})]})}function W(e){let{title:t,dynamicPoints:r,list:n=!1}=e;return(0,a.jsxs)("div",{className:"absolute inset-0 @container",children:[(0,a.jsx)("div",{className:"absolute inset-0 flex items-start p-4",children:(0,a.jsx)("span",{className:"font-mono font-normal uppercase tracking-[-0.01em] text-revamp-brand-accent text-[16px]",children:t})}),(0,a.jsx)("div",{className:(0,s.A)("absolute inset-0 flex flex-col items-end justify-end p-4 gap-2",n?"mb-6":""),children:r.map(e=>(0,a.jsxs)("span",{className:"font-mono font-normal text-white uppercase text-[16px] leading-[18px] tracking-[-0.02em] text-right",children:[">"," ",e]},e))})]})}function F(e){return(0,a.jsx)("figure",{className:"not-prose my-10",children:(0,a.jsxs)("div",{className:"bg-gray-50 border-l-4 border-gray-300 p-6 sm:p-8 rounded-r-lg",children:[(0,a.jsxs)("blockquote",{className:"text-xl sm:text-2xl font-medium text-gray-900 mb-6 italic leading-relaxed",children:["â",e.quote,"â"]}),(0,a.jsxs)("figcaption",{className:"flex items-center gap-3",children:[(0,a.jsx)(y(),{src:e.author.profileUrl,alt:e.author.name,className:"h-10 w-10 flex-shrink-0 rounded-full object-cover"}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)(j(),{href:"https://x.com/".concat(e.author.twitterProfile),target:"_blank",className:"font-semibold text-gray-900 hover:underline underline-offset-2",children:e.author.name}),(0,a.jsx)("span",{className:"text-sm text-gray-600",children:e.title})]})]})]})})}},58643:(e,t,r)=>{r.d(t,{A:()=>a});let a={src:"/_next/static/media/claudecode.fbd8580b.svg",height:16,width:16,blurWidth:0,blurHeight:0}},65703:(e,t,r)=>{r.d(t,{Y:()=>s});let a=new Intl.DateTimeFormat("en-US",{day:"numeric",month:"long",timeZone:"UTC",year:"numeric"});function s(e){return a.format(new Date("".concat(e,"T00:00:00Z")))}},99796:(e,t,r)=>{r.d(t,{A:()=>a});let a={src:"/_next/static/media/cursor.dd122dc4.svg",height:532,width:467,blurWidth:0,blurHeight:0}}}]);
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.