@madarco/agentbox 0.22.1 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/{_cloud-attach-YH2SU75S.js → _cloud-attach-Y5WZ7F53.js} +5 -5
  3. package/dist/{chunk-KBVD2UUQ.js → chunk-3KAWXDQ4.js} +3 -3
  4. package/dist/{chunk-YZXXBHWG.js → chunk-5DZTXHLQ.js} +3 -3
  5. package/dist/{chunk-O2NDZQHN.js → chunk-7HAGPF4X.js} +2 -2
  6. package/dist/{chunk-O67ZESNL.js → chunk-AYNGC4Z5.js} +4 -4
  7. package/dist/{chunk-GGWVTWJM.js → chunk-BMCT3LBE.js} +16 -13
  8. package/dist/chunk-BMCT3LBE.js.map +1 -0
  9. package/dist/{chunk-ALEYDWAO.js → chunk-ES2DDCAC.js} +303 -87
  10. package/dist/chunk-ES2DDCAC.js.map +1 -0
  11. package/dist/{chunk-VBSRJG53.js → chunk-QT3SHMLY.js} +9 -1
  12. package/dist/chunk-QT3SHMLY.js.map +1 -0
  13. package/dist/{chunk-CDEJ2GQK.js → chunk-S4OWE3UD.js} +4 -4
  14. package/dist/{chunk-W2FLHB54.js → chunk-V2NCCC2B.js} +2 -2
  15. package/dist/{dist-QBXEP4VY.js → dist-2BTJQUJS.js} +2 -2
  16. package/dist/{dist-LJHS4PTC.js → dist-AN5NUXA5.js} +6 -6
  17. package/dist/{dist-EJXUKIR7.js → dist-FNAGMTUI.js} +4 -4
  18. package/dist/{dist-YECTRVGD.js → dist-K5GASNBV.js} +6 -6
  19. package/dist/{dist-UR2DB2HT.js → dist-SJRMFVRV.js} +6 -6
  20. package/dist/{dist-QNV4H6NN.js → dist-VOVN64Y2.js} +6 -6
  21. package/dist/index.js +1108 -727
  22. package/dist/index.js.map +1 -1
  23. package/dist/{prepared-state-5FIGV4BE-BMUK63FD.js → prepared-state-5FIGV4BE-WPHOEDA6.js} +2 -2
  24. package/package.json +5 -5
  25. package/runtime/_shared/ctl.cjs +10 -0
  26. package/runtime/docker/packages/ctl/dist/bin.cjs +10 -0
  27. package/runtime/e2b/ctl.cjs +10 -0
  28. package/runtime/hetzner/ctl.cjs +10 -0
  29. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  30. package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +1 -0
  31. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  32. package/runtime/hub/apps/hub/.next/routes-manifest.json +8 -0
  33. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route/app-paths-manifest.json +3 -0
  34. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route/build-manifest.json +9 -0
  35. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route/server-reference-manifest.json +4 -0
  36. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js +9 -0
  37. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.map +5 -0
  38. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -0
  39. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route_client-reference-manifest.js +3 -0
  40. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  41. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +12 -0
  42. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  43. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -0
  44. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  45. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +12 -0
  46. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
  47. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  48. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  49. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  50. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  51. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  52. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  53. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  54. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  55. package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +1 -0
  56. package/runtime/hub/apps/hub/.next/server/chunks/0m4a_kysely_dist_095p8vu._.js +1 -1
  57. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_rename_route_actions_0mf3a9p.js +3 -0
  58. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +1 -1
  59. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +1 -1
  60. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0szd4sh._.js +3 -0
  61. package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.js +14 -14
  62. package/runtime/hub/apps/hub/.next/server/chunks/_0lgs9kd._.js +3 -0
  63. package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +1 -1
  64. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_09gdzmo._.js +1 -1
  65. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +1 -1
  66. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ro6vh6._.js +1 -1
  67. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0tgpglr._.js +1 -1
  68. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1laion6._.js +1 -1
  69. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +1 -1
  70. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +1 -1
  71. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_components_1z1p98f._.js +1 -1
  72. package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +1 -0
  73. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  74. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  75. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -1
  76. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +24 -0
  77. package/runtime/hub/apps/hub/.next/static/chunks/2xc1sm79a6tsb.js +1 -0
  78. package/runtime/hub/apps/hub/.next/static/chunks/332lo0ac7l2wv.js +1 -0
  79. package/runtime/hub/apps/hub/.next/static/chunks/3gdqmzzl34ilu.js +1 -0
  80. package/runtime/hub/apps/hub/.next/static/chunks/44exu5uemf-ev.js +1 -0
  81. package/runtime/hub/apps/hub/{auth-YBXDRLHG.js → auth-675P3LQS.js} +2 -2
  82. package/runtime/hub/apps/hub/{auth-config-LJGI76HI.js → auth-config-AOBEKRZQ.js} +2 -2
  83. package/runtime/hub/apps/hub/{chunk-OBKLTPIR.js → chunk-56YQBVN2.js} +1 -1
  84. package/runtime/hub/apps/hub/{chunk-LJG4CEGS.js → chunk-5XQ3T3W2.js} +274 -84
  85. package/runtime/hub/apps/hub/{chunk-JDA7BPPN.js → chunk-673QOHSR.js} +3 -3
  86. package/runtime/hub/apps/hub/{chunk-V5KGFHCF.js → chunk-7J6ZFTT4.js} +2 -2
  87. package/runtime/hub/apps/hub/{chunk-AKLBSCSZ.js → chunk-EXQCBM5Q.js} +8 -0
  88. package/runtime/hub/apps/hub/{dist-GGM4BUKM.js → dist-EI54M5DP.js} +4 -4
  89. package/runtime/hub/apps/hub/{dist-ELOY2IUE.js → dist-GCALYJN7.js} +3 -3
  90. package/runtime/hub/apps/hub/{dist-FDBOJ74K.js → dist-K7WHNDZB.js} +4 -4
  91. package/runtime/hub/apps/hub/{dist-CM4YAQLI.js → dist-LYTWBTUL.js} +4 -4
  92. package/runtime/hub/apps/hub/{dist-BF54UNHK.js → dist-MOCUH2OC.js} +4 -4
  93. package/runtime/hub/apps/hub/{dist-IENF7YOD.js → dist-STQK5XM6.js} +1 -1
  94. package/runtime/hub/apps/hub/{hub-token-EW32VDIU.js → hub-token-2BZFBBW3.js} +2 -2
  95. package/runtime/hub/apps/hub/{prepared-state-5FIGV4BE-FIXKBF5A.js → prepared-state-5FIGV4BE-D2HJEY2L.js} +1 -1
  96. package/runtime/hub/apps/hub/server.js +57 -16
  97. package/runtime/relay/bin.cjs +10 -0
  98. package/runtime/vercel/ctl.cjs +10 -0
  99. package/dist/chunk-ALEYDWAO.js.map +0 -1
  100. package/dist/chunk-GGWVTWJM.js.map +0 -1
  101. package/dist/chunk-VBSRJG53.js.map +0 -1
  102. package/runtime/hub/apps/hub/.next/static/chunks/0lq354ziiwxxl.js +0 -1
  103. package/runtime/hub/apps/hub/.next/static/chunks/11vmjdy3390ik.js +0 -1
  104. package/runtime/hub/apps/hub/.next/static/chunks/1svigjdfotduh.js +0 -1
  105. package/runtime/hub/apps/hub/.next/static/chunks/2d5e6t-5j4etp.js +0 -1
  106. /package/dist/{_cloud-attach-YH2SU75S.js.map → _cloud-attach-Y5WZ7F53.js.map} +0 -0
  107. /package/dist/{chunk-KBVD2UUQ.js.map → chunk-3KAWXDQ4.js.map} +0 -0
  108. /package/dist/{chunk-YZXXBHWG.js.map → chunk-5DZTXHLQ.js.map} +0 -0
  109. /package/dist/{chunk-O2NDZQHN.js.map → chunk-7HAGPF4X.js.map} +0 -0
  110. /package/dist/{chunk-O67ZESNL.js.map → chunk-AYNGC4Z5.js.map} +0 -0
  111. /package/dist/{chunk-CDEJ2GQK.js.map → chunk-S4OWE3UD.js.map} +0 -0
  112. /package/dist/{chunk-W2FLHB54.js.map → chunk-V2NCCC2B.js.map} +0 -0
  113. /package/dist/{dist-EJXUKIR7.js.map → dist-2BTJQUJS.js.map} +0 -0
  114. /package/dist/{dist-LJHS4PTC.js.map → dist-AN5NUXA5.js.map} +0 -0
  115. /package/dist/{dist-QBXEP4VY.js.map → dist-FNAGMTUI.js.map} +0 -0
  116. /package/dist/{dist-QNV4H6NN.js.map → dist-K5GASNBV.js.map} +0 -0
  117. /package/dist/{dist-UR2DB2HT.js.map → dist-SJRMFVRV.js.map} +0 -0
  118. /package/dist/{dist-YECTRVGD.js.map → dist-VOVN64Y2.js.map} +0 -0
  119. /package/dist/{prepared-state-5FIGV4BE-BMUK63FD.js.map → prepared-state-5FIGV4BE-WPHOEDA6.js.map} +0 -0
  120. /package/runtime/hub/apps/hub/.next/static/{TpPTWVdZDxqrPlONtJcR5 → zT1paOSXMJpAPsZ1dFK2V}/_buildManifest.js +0 -0
  121. /package/runtime/hub/apps/hub/.next/static/{TpPTWVdZDxqrPlONtJcR5 → zT1paOSXMJpAPsZ1dFK2V}/_clientMiddlewareManifest.js +0 -0
  122. /package/runtime/hub/apps/hub/.next/static/{TpPTWVdZDxqrPlONtJcR5 → zT1paOSXMJpAPsZ1dFK2V}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[17607,3015,a=>{"use strict";var b=a.i(33552),c=a.i(50253);a.s(["Ago",0,function({ms:a}){let[d,e]=(0,c.useState)(!1);return(0,c.useEffect)(()=>e(!0),[]),(0,b.jsx)("span",{suppressHydrationWarning:!0,children:d?function(a){let b=Math.floor((Date.now()-a)/1e3);if(b<60)return b+"s ago";let c=Math.floor(b/60);if(c<60)return c+"m ago";let d=Math.floor(c/60);return d<24?d+"h ago":Math.floor(d/24)+"d ago"}(a):new Date(a).toLocaleDateString()})}],17607),a.s(["SectionLabel",0,function({children:a,right:c}){return(0,b.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[a,(0,b.jsx)("span",{className:"h-px flex-1 bg-border"}),c??null]})}],3015)},96664,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(6451),g=a.r(74786),h=a.r(50495)},12019,a=>{"use strict";var b=a.i(33552),c=a.i(97187);a.s(["EmptyBox",0,function({children:a}){return(0,b.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,b.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,b.jsx)(c.Icons.box,{className:"size-5"})}),a]})}])},24985,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("table",{className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{className:(0,c.cn)("px-4 py-3 align-middle",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{className:(0,c.cn)("h-9 px-4 text-left align-middle font-mono text-[10.5px] font-normal uppercase tracking-[.08em] text-muted-foreground/90",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{className:(0,c.cn)("bg-background [&_tr]:border-b [&_tr]:border-border",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{className:(0,c.cn)("border-b border-border/60 transition-colors hover:bg-[#fcfcfb] data-[state=selected]:bg-accent",a),...d})}])},87883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("rounded-xl border border-border bg-card text-card-foreground",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("p-5 pt-0",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[12.5px] text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1 p-5",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[15px] font-semibold leading-none tracking-tight",a),...d})}])},85883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Input",0,function({className:a,...d}){return(0,b.jsx)("input",{className:(0,c.cn)("flex h-10 w-full rounded-lg border border-input bg-card px-3 py-1 text-sm shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",a),...d})}])},94290,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(18071),e=a.i(85883);function f({jobId:a,login:g}){let[h,i]=(0,c.useState)(""),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(null),n="exchanging"===g.phase,o=async()=>{let b=h.trim();if(b&&!j){k(!0),m(null);try{let c=await fetch(`/api/v1/jobs/${encodeURIComponent(a)}/login-code`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:b})});if(!c.ok){let a=await c.json().catch(()=>null);m(a?.error?.message??`request failed (${c.status})`);return}i("")}catch(a){m(a instanceof Error?a.message:String(a))}finally{k(!1)}}};return(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-amber-500/40 bg-amber-500/10 p-3",children:[(0,b.jsx)("div",{className:"text-sm font-semibold text-amber-200",children:"Claude login required"}),(0,b.jsx)("p",{className:"text-xs text-amber-100/80",children:"Your saved Claude login is expired. Open the sign-in page, approve access, then paste the code Claude shows you."}),g.url?(0,b.jsx)("a",{href:g.url,target:"_blank",rel:"noreferrer",className:"w-fit rounded-md bg-amber-500/20 px-2.5 py-1 text-xs font-medium text-amber-100 underline decoration-amber-400/50 underline-offset-2 hover:bg-amber-500/30",children:"Open Claude sign-in ↗"}):(0,b.jsx)("span",{className:"text-xs text-amber-100/60",children:"waiting for the sign-in link…"}),(0,b.jsxs)("div",{className:"mt-1 flex gap-2",children:[(0,b.jsx)(e.Input,{value:h,onChange:a=>i(a.target.value),onKeyDown:a=>{"Enter"===a.key&&o()},placeholder:"Paste approval code",disabled:n,className:"flex-1 font-mono text-xs"}),(0,b.jsx)(d.Button,{type:"button",onClick:()=>void o(),disabled:!h.trim()||j||n,children:n?"Verifying…":j?"Submitting…":"Submit"})]}),g.lastError?(0,b.jsx)("p",{className:"text-xs text-amber-300",children:g.lastError}):null,"error"===g.phase&&g.error?(0,b.jsx)("p",{className:"text-xs text-red-400",children:g.error}):null,l?(0,b.jsx)("p",{className:"text-xs text-red-400",children:l}):null]})}a.s(["JobLogStream",0,function({jobId:a,endpoint:d,onDone:e,onStatus:g,onLogin:h}){let[i,j]=(0,c.useState)([]),[k,l]=(0,c.useState)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(e);n.current=e;let o=(0,c.useRef)(g);o.current=g;let p=(0,c.useRef)(h);return p.current=h,(0,c.useEffect)(()=>{o.current?.("streaming");let b=new EventSource(d??`/api/jobs/${encodeURIComponent(a)}/logs`);return b.addEventListener("log",a=>{let b=JSON.parse(a.data);j(a=>[...a,b])}),b.addEventListener("login",a=>{let b=JSON.parse(a.data);l(b),p.current?.(b)}),b.addEventListener("end",a=>{let c=JSON.parse(a.data);o.current?.(c.status),n.current?.(c.status),b.close()}),()=>b.close()},[a,d]),(0,c.useEffect)(()=>{let a=m.current;a&&(a.scrollTop=a.scrollHeight)},[i]),(0,b.jsxs)("div",{className:"flex flex-col gap-3",children:[k&&"done"!==k.phase?(0,b.jsx)(f,{jobId:a,login:k}):null,(0,b.jsx)("pre",{ref:m,className:"max-h-[440px] min-h-[220px] overflow-auto whitespace-pre rounded-lg bg-[#16181c] p-3 font-mono text-[11.5px] leading-relaxed text-[#d6d9de]",children:0===i.length?"starting…":i.join("\n")})]})}])},71152,17236,a=>{"use strict";var b=a.i(33552),c=a.i(54473);let d={running:{label:"running",badgeClass:"badge-run"},paused:{label:"paused",badgeClass:"badge-pause"},stopped:{label:"stopped",badgeClass:"badge-stop"},creating:{label:"creating",badgeClass:"badge-create"},error:{label:"error",badgeClass:"badge-err"}};a.s(["StatusBadge",0,function({status:a}){let e=d[a]??d.stopped;return(0,b.jsxs)(c.Badge,{className:e.badgeClass,children:[(0,b.jsx)("span",{className:"badge-dot"}),e.label]})}],71152);var e=a.i(74455),f=a.i(50253),g=a.i(86834),h=a.i(18071),i=a.i(97187),j=a.i(96664);let k=(0,j.createServerReference)("40f10bede8a5e7505d5875574f7e6fc4a06e8e2cb7",j.callServer,void 0,j.findSourceMapURL,"destroyBoxAction"),l=(0,j.createServerReference)("40ea16199b5abb2d3c1d4cecdd25aac1e3c41f074c",j.callServer,void 0,j.findSourceMapURL,"pauseBoxAction"),m=(0,j.createServerReference)("4071308a0e1675de302803bb969800c52d79f11e13",j.callServer,void 0,j.findSourceMapURL,"resumeBoxAction"),n=(0,j.createServerReference)("40e545c7dd69b4a1d410deb9c94101099961d3af7a",j.callServer,void 0,j.findSourceMapURL,"stopBoxAction");a.s(["BoxActions",0,function({box:a,size:c}){let d=(0,e.useRouter)(),[j,o]=(0,f.useTransition)(),p="running"===a.status,q="paused"===a.status,r="stopped"===a.status,s="lg"===c,t=s?"sm":"icon-sm",u=(b,c,e)=>{b.stopPropagation(),(!e||window.confirm(e))&&o(async()=>{let b=await c(a.id);b.ok||window.alert(`Action failed: ${b.error}`),d.refresh()})};return(0,b.jsxs)("div",{className:(0,g.cn)("flex gap-1.5",s?"":"justify-end"),children:[q?(0,b.jsxs)(h.Button,{variant:s?"default":"outline",size:t,title:"Resume",disabled:j,className:s?"":"hover:border-[var(--green)] hover:bg-accent hover:text-[var(--green-ink)]",onClick:a=>u(a,m),children:[(0,b.jsx)(i.Icons.play,{}),s?"Resume":null]}):(0,b.jsxs)(h.Button,{variant:"outline",size:t,disabled:j||!p,title:"Pause",className:s?"":"hover:border-[var(--amber)] hover:bg-[var(--amber-soft)] hover:text-[var(--amber)]",onClick:a=>u(a,l),children:[(0,b.jsx)(i.Icons.pause,{}),s?"Pause":null]}),(0,b.jsxs)(h.Button,{variant:"outline",size:t,disabled:j||r,title:"Stop",onClick:a=>u(a,n),children:[(0,b.jsx)(i.Icons.stop,{}),s?"Stop":null]}),(0,b.jsxs)(h.Button,{variant:"destructive",size:t,title:"Destroy",disabled:j,onClick:b=>u(b,k,`Destroy box ${a.id}? Its workspace volume is discarded. This cannot be undone.`),children:[(0,b.jsx)(i.Icons.trash,{}),s?"Destroy":null]})]})}],17236)},45515,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(86834),e=a.i(97187);a.s(["Dialog",0,function({onClose:a,className:f,children:g}){return(0,c.useEffect)(()=>{let b=b=>{"Escape"===b.key&&a()};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]),(0,b.jsx)("div",{className:"anim-fade fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-[rgba(20,24,30,.42)] p-6 backdrop-blur-[2px]",onClick:a,children:(0,b.jsxs)("div",{role:"dialog","aria-modal":"true",className:(0,d.cn)("anim-pop relative m-auto w-full max-w-[500px] rounded-2xl border border-border bg-card shadow-[0_40px_80px_-30px_rgba(20,24,30,.5)]",f),onClick:a=>a.stopPropagation(),children:[g,(0,b.jsx)("button",{className:"absolute right-4 top-4 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-[#a4a9b0] transition-colors hover:bg-secondary hover:text-foreground",onClick:a,"aria-label":"Close",children:(0,b.jsx)(e.Icons.x,{style:{width:15,height:15}})})]})})},"DialogBody",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("px-5 py-4",a),...c})},"DialogDescription",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("mt-1 font-mono text-xs text-muted-foreground",a),...c})},"DialogFooter",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex justify-end gap-2.5 rounded-b-2xl border-t border-border/70 bg-background px-5 py-3.5",a),...c})},"DialogHeader",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex items-start gap-3 border-b border-border/70 px-5 pb-4 pt-5",a),...c})},"DialogIcon",0,function({children:a}){return(0,b.jsx)("span",{className:"grid h-9 w-9 flex-none place-items-center rounded-lg border border-[var(--green-line)] bg-accent text-primary [&_svg]:size-[17px]",children:a})},"DialogTitle",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("text-base font-semibold leading-tight tracking-tight",a),...c})}])},53596,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Select",0,function({wrapperClassName:a,className:d,children:e,...f}){return(0,b.jsxs)("span",{className:(0,c.cn)("relative inline-flex",a),children:[(0,b.jsx)("select",{className:(0,c.cn)("h-9 w-full cursor-pointer appearance-none rounded-lg border border-input bg-card py-1 pl-3 pr-9 text-[13px] shadow-sm focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",d),...f,children:e}),(0,b.jsx)("svg",{className:"pointer-events-none absolute right-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:(0,b.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}])},24288,82337,a=>{"use strict";var b=a.i(33552),c=a.i(51363),d=a.i(97187);a.s(["BackLink",0,function({to:a,children:e}){return(0,b.jsxs)(c.default,{className:"mb-3.5 inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-mono text-xs text-muted-foreground hover:text-primary",href:a,children:[(0,b.jsx)(d.Icons.arrowL,{className:"size-[13px]"}),e]})}],24288);var e=a.i(86834),f=a.i(87883);a.s(["Stat",0,function({k:a,v:c,mono:d,icon:f}){return(0,b.jsxs)("div",{className:"px-4.5 p-4",children:[(0,b.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:a}),(0,b.jsxs)("div",{className:(0,e.cn)("flex items-center gap-2 font-semibold tracking-[-0.01em]",d?"font-mono text-sm font-medium":"text-base"),children:[f?(0,b.jsx)(f,{className:"size-[15px] text-muted-foreground"}):null,c]})]})},"StatGrid",0,function({children:a}){return(0,b.jsx)(f.Card,{className:"grid grid-cols-[repeat(auto-fit,minmax(140px,1fr))] divide-x divide-border/60 overflow-hidden",children:a})}],82337)},3385,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(17607),e=a.i(97187),f=a.i(80007),g=a.i(24288),h=a.i(61688),i=a.i(10511),j=a.i(47685),k=a.i(12019),l=a.i(3015),m=a.i(82337);a.s(["default",0,function(){let{id:a}=(0,c.useParams)(),{project:n,boxesFor:o}=(0,f.useStore)(),p=n(a);if(!p)return(0,b.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8",children:[(0,b.jsx)(g.BackLink,{to:"/",children:"Dashboard"}),(0,b.jsx)(k.EmptyBox,{children:"Project not found."})]});let q=o(a),r=q.filter(a=>"running"===a.status).length;return(0,b.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,b.jsx)(g.BackLink,{to:"/",children:"All projects"}),(0,b.jsxs)("div",{className:"flex items-start gap-4 max-md:flex-col",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)("h1",{className:"flex items-center gap-3 text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:[(0,b.jsx)("span",{className:"grid h-[26px] w-[26px] flex-none place-items-center rounded-md border border-[var(--green-line)] bg-accent text-primary",children:(0,b.jsx)(e.Icons.folder,{className:"size-[15px]"})}),p.name]}),(0,b.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:[(0,b.jsx)("span",{className:"font-mono text-secondary-foreground",children:p.repo})," · ",p.provider]})]}),(0,b.jsxs)("div",{className:"ml-auto flex flex-none gap-2 max-md:ml-0",children:[(0,b.jsx)(i.CreateBoxButton,{project:p}),0===q.length?(0,b.jsx)(j.DeleteProjectButton,{project:p,redirectHome:!0}):null]})]}),(0,b.jsx)("div",{className:"mt-5",children:(0,b.jsxs)(m.StatGrid,{children:[(0,b.jsx)(m.Stat,{k:"Boxes",v:q.length,icon:e.Icons.box}),(0,b.jsx)(m.Stat,{k:"Running",v:r,icon:e.Icons.activity}),(0,b.jsx)(m.Stat,{k:"Provider",v:p.provider,mono:!0}),(0,b.jsx)(m.Stat,{k:"Created",v:(0,b.jsx)(d.Ago,{ms:p.createdAt}),mono:!0})]})}),(0,b.jsx)(l.SectionLabel,{children:"Boxes"}),q.length?(0,b.jsx)(h.BoxTable,{boxes:q}):(0,b.jsx)(k.EmptyBox,{children:(0,b.jsx)("div",{children:"No boxes yet."})})]})}])}];
1
+ module.exports=[17607,3015,a=>{"use strict";var b=a.i(33552),c=a.i(50253);a.s(["Ago",0,function({ms:a}){let[d,e]=(0,c.useState)(!1);return(0,c.useEffect)(()=>e(!0),[]),(0,b.jsx)("span",{suppressHydrationWarning:!0,children:d?function(a){let b=Math.floor((Date.now()-a)/1e3);if(b<60)return b+"s ago";let c=Math.floor(b/60);if(c<60)return c+"m ago";let d=Math.floor(c/60);return d<24?d+"h ago":Math.floor(d/24)+"d ago"}(a):new Date(a).toLocaleDateString()})}],17607),a.s(["SectionLabel",0,function({children:a,right:c}){return(0,b.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[a,(0,b.jsx)("span",{className:"h-px flex-1 bg-border"}),c??null]})}],3015)},96664,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(6451),g=a.r(74786),h=a.r(50495)},12019,a=>{"use strict";var b=a.i(33552),c=a.i(97187);a.s(["EmptyBox",0,function({children:a}){return(0,b.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,b.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,b.jsx)(c.Icons.box,{className:"size-5"})}),a]})}])},24985,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("table",{className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{className:(0,c.cn)("px-4 py-3 align-middle",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{className:(0,c.cn)("h-9 px-4 text-left align-middle font-mono text-[10.5px] font-normal uppercase tracking-[.08em] text-muted-foreground/90",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{className:(0,c.cn)("bg-background [&_tr]:border-b [&_tr]:border-border",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{className:(0,c.cn)("border-b border-border/60 transition-colors hover:bg-[#fcfcfb] data-[state=selected]:bg-accent",a),...d})}])},87883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("rounded-xl border border-border bg-card text-card-foreground",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("p-5 pt-0",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[12.5px] text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1 p-5",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[15px] font-semibold leading-none tracking-tight",a),...d})}])},85883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Input",0,function({className:a,...d}){return(0,b.jsx)("input",{className:(0,c.cn)("flex h-10 w-full rounded-lg border border-input bg-card px-3 py-1 text-sm shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",a),...d})}])},94290,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(18071),e=a.i(85883);function f({jobId:a,login:g}){let[h,i]=(0,c.useState)(""),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(null),n="exchanging"===g.phase,o=async()=>{let b=h.trim();if(b&&!j){k(!0),m(null);try{let c=await fetch(`/api/v1/jobs/${encodeURIComponent(a)}/login-code`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:b})});if(!c.ok){let a=await c.json().catch(()=>null);m(a?.error?.message??`request failed (${c.status})`);return}i("")}catch(a){m(a instanceof Error?a.message:String(a))}finally{k(!1)}}};return(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-amber-500/40 bg-amber-500/10 p-3",children:[(0,b.jsx)("div",{className:"text-sm font-semibold text-amber-200",children:"Claude login required"}),(0,b.jsx)("p",{className:"text-xs text-amber-100/80",children:"Your saved Claude login is expired. Open the sign-in page, approve access, then paste the code Claude shows you."}),g.url?(0,b.jsx)("a",{href:g.url,target:"_blank",rel:"noreferrer",className:"w-fit rounded-md bg-amber-500/20 px-2.5 py-1 text-xs font-medium text-amber-100 underline decoration-amber-400/50 underline-offset-2 hover:bg-amber-500/30",children:"Open Claude sign-in ↗"}):(0,b.jsx)("span",{className:"text-xs text-amber-100/60",children:"waiting for the sign-in link…"}),(0,b.jsxs)("div",{className:"mt-1 flex gap-2",children:[(0,b.jsx)(e.Input,{value:h,onChange:a=>i(a.target.value),onKeyDown:a=>{"Enter"===a.key&&o()},placeholder:"Paste approval code",disabled:n,className:"flex-1 font-mono text-xs"}),(0,b.jsx)(d.Button,{type:"button",onClick:()=>void o(),disabled:!h.trim()||j||n,children:n?"Verifying…":j?"Submitting…":"Submit"})]}),g.lastError?(0,b.jsx)("p",{className:"text-xs text-amber-300",children:g.lastError}):null,"error"===g.phase&&g.error?(0,b.jsx)("p",{className:"text-xs text-red-400",children:g.error}):null,l?(0,b.jsx)("p",{className:"text-xs text-red-400",children:l}):null]})}a.s(["JobLogStream",0,function({jobId:a,endpoint:d,onDone:e,onStatus:g,onLogin:h}){let[i,j]=(0,c.useState)([]),[k,l]=(0,c.useState)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(e);n.current=e;let o=(0,c.useRef)(g);o.current=g;let p=(0,c.useRef)(h);return p.current=h,(0,c.useEffect)(()=>{o.current?.("streaming");let b=new EventSource(d??`/api/jobs/${encodeURIComponent(a)}/logs`);return b.addEventListener("log",a=>{let b=JSON.parse(a.data);j(a=>[...a,b])}),b.addEventListener("login",a=>{let b=JSON.parse(a.data);l(b),p.current?.(b)}),b.addEventListener("end",a=>{let c=JSON.parse(a.data);o.current?.(c.status),n.current?.(c.status),b.close()}),()=>b.close()},[a,d]),(0,c.useEffect)(()=>{let a=m.current;a&&(a.scrollTop=a.scrollHeight)},[i]),(0,b.jsxs)("div",{className:"flex flex-col gap-3",children:[k&&"done"!==k.phase?(0,b.jsx)(f,{jobId:a,login:k}):null,(0,b.jsx)("pre",{ref:m,className:"max-h-[440px] min-h-[220px] overflow-auto whitespace-pre rounded-lg bg-[#16181c] p-3 font-mono text-[11.5px] leading-relaxed text-[#d6d9de]",children:0===i.length?"starting…":i.join("\n")})]})}])},71152,17236,a=>{"use strict";var b=a.i(33552),c=a.i(54473);let d={running:{label:"running",badgeClass:"badge-run"},paused:{label:"paused",badgeClass:"badge-pause"},stopped:{label:"stopped",badgeClass:"badge-stop"},creating:{label:"creating",badgeClass:"badge-create"},error:{label:"error",badgeClass:"badge-err"}};a.s(["StatusBadge",0,function({status:a}){let e=d[a]??d.stopped;return(0,b.jsxs)(c.Badge,{className:e.badgeClass,children:[(0,b.jsx)("span",{className:"badge-dot"}),e.label]})}],71152);var e=a.i(74455),f=a.i(50253),g=a.i(86834),h=a.i(18071),i=a.i(97187),j=a.i(96664);let k=(0,j.createServerReference)("40f10bede8a5e7505d5875574f7e6fc4a06e8e2cb7",j.callServer,void 0,j.findSourceMapURL,"destroyBoxAction"),l=(0,j.createServerReference)("40ea16199b5abb2d3c1d4cecdd25aac1e3c41f074c",j.callServer,void 0,j.findSourceMapURL,"pauseBoxAction"),m=(0,j.createServerReference)("6096bb2a65e369cd77e8b1dc6cd900a5f1e67287bb",j.callServer,void 0,j.findSourceMapURL,"renameBoxAction"),n=(0,j.createServerReference)("4071308a0e1675de302803bb969800c52d79f11e13",j.callServer,void 0,j.findSourceMapURL,"resumeBoxAction"),o=(0,j.createServerReference)("40e545c7dd69b4a1d410deb9c94101099961d3af7a",j.callServer,void 0,j.findSourceMapURL,"stopBoxAction");a.s(["BoxActions",0,function({box:a,size:c}){let d=(0,e.useRouter)(),[j,p]=(0,f.useTransition)(),q="running"===a.status,r="paused"===a.status,s="stopped"===a.status,t="lg"===c,u=t?"sm":"icon-sm",v=(b,c,e)=>{b.stopPropagation(),(!e||window.confirm(e))&&p(async()=>{let b=await c(a.id);b.ok||window.alert(`Action failed: ${b.error}`),d.refresh()})};return(0,b.jsxs)("div",{className:(0,g.cn)("flex gap-1.5",t?"":"justify-end"),children:[r?(0,b.jsxs)(h.Button,{variant:t?"default":"outline",size:u,title:"Resume",disabled:j,className:t?"":"hover:border-[var(--green)] hover:bg-accent hover:text-[var(--green-ink)]",onClick:a=>v(a,n),children:[(0,b.jsx)(i.Icons.play,{}),t?"Resume":null]}):(0,b.jsxs)(h.Button,{variant:"outline",size:u,disabled:j||!q,title:"Pause",className:t?"":"hover:border-[var(--amber)] hover:bg-[var(--amber-soft)] hover:text-[var(--amber)]",onClick:a=>v(a,l),children:[(0,b.jsx)(i.Icons.pause,{}),t?"Pause":null]}),(0,b.jsxs)(h.Button,{variant:"outline",size:u,disabled:j||s,title:"Stop",onClick:a=>v(a,o),children:[(0,b.jsx)(i.Icons.stop,{}),t?"Stop":null]}),(0,b.jsxs)(h.Button,{variant:"outline",size:u,disabled:j,title:"Rename",onClick:b=>{b.stopPropagation();let c=window.prompt("Rename box (label only — leave blank to reset)",a.displayName??a.task);null!==c&&p(async()=>{let b=await m(a.id,c.trim());b.ok||window.alert(`Rename failed: ${b.error}`),d.refresh()})},children:[(0,b.jsx)(i.Icons.pencil,{}),t?"Rename":null]}),(0,b.jsxs)(h.Button,{variant:"destructive",size:u,title:"Destroy",disabled:j,onClick:b=>v(b,k,`Destroy box ${a.id}? Its workspace volume is discarded. This cannot be undone.`),children:[(0,b.jsx)(i.Icons.trash,{}),t?"Destroy":null]})]})}],17236)},45515,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(86834),e=a.i(97187);a.s(["Dialog",0,function({onClose:a,className:f,children:g}){return(0,c.useEffect)(()=>{let b=b=>{"Escape"===b.key&&a()};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]),(0,b.jsx)("div",{className:"anim-fade fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-[rgba(20,24,30,.42)] p-6 backdrop-blur-[2px]",onClick:a,children:(0,b.jsxs)("div",{role:"dialog","aria-modal":"true",className:(0,d.cn)("anim-pop relative m-auto w-full max-w-[500px] rounded-2xl border border-border bg-card shadow-[0_40px_80px_-30px_rgba(20,24,30,.5)]",f),onClick:a=>a.stopPropagation(),children:[g,(0,b.jsx)("button",{className:"absolute right-4 top-4 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-[#a4a9b0] transition-colors hover:bg-secondary hover:text-foreground",onClick:a,"aria-label":"Close",children:(0,b.jsx)(e.Icons.x,{style:{width:15,height:15}})})]})})},"DialogBody",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("px-5 py-4",a),...c})},"DialogDescription",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("mt-1 font-mono text-xs text-muted-foreground",a),...c})},"DialogFooter",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex justify-end gap-2.5 rounded-b-2xl border-t border-border/70 bg-background px-5 py-3.5",a),...c})},"DialogHeader",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex items-start gap-3 border-b border-border/70 px-5 pb-4 pt-5",a),...c})},"DialogIcon",0,function({children:a}){return(0,b.jsx)("span",{className:"grid h-9 w-9 flex-none place-items-center rounded-lg border border-[var(--green-line)] bg-accent text-primary [&_svg]:size-[17px]",children:a})},"DialogTitle",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("text-base font-semibold leading-tight tracking-tight",a),...c})}])},53596,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Select",0,function({wrapperClassName:a,className:d,children:e,...f}){return(0,b.jsxs)("span",{className:(0,c.cn)("relative inline-flex",a),children:[(0,b.jsx)("select",{className:(0,c.cn)("h-9 w-full cursor-pointer appearance-none rounded-lg border border-input bg-card py-1 pl-3 pr-9 text-[13px] shadow-sm focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",d),...f,children:e}),(0,b.jsx)("svg",{className:"pointer-events-none absolute right-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:(0,b.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}])},24288,82337,a=>{"use strict";var b=a.i(33552),c=a.i(51363),d=a.i(97187);a.s(["BackLink",0,function({to:a,children:e}){return(0,b.jsxs)(c.default,{className:"mb-3.5 inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-mono text-xs text-muted-foreground hover:text-primary",href:a,children:[(0,b.jsx)(d.Icons.arrowL,{className:"size-[13px]"}),e]})}],24288);var e=a.i(86834),f=a.i(87883);a.s(["Stat",0,function({k:a,v:c,mono:d,icon:f}){return(0,b.jsxs)("div",{className:"px-4.5 p-4",children:[(0,b.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:a}),(0,b.jsxs)("div",{className:(0,e.cn)("flex items-center gap-2 font-semibold tracking-[-0.01em]",d?"font-mono text-sm font-medium":"text-base"),children:[f?(0,b.jsx)(f,{className:"size-[15px] text-muted-foreground"}):null,c]})]})},"StatGrid",0,function({children:a}){return(0,b.jsx)(f.Card,{className:"grid grid-cols-[repeat(auto-fit,minmax(140px,1fr))] divide-x divide-border/60 overflow-hidden",children:a})}],82337)},3385,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(17607),e=a.i(97187),f=a.i(80007),g=a.i(24288),h=a.i(61688),i=a.i(10511),j=a.i(47685),k=a.i(12019),l=a.i(3015),m=a.i(82337);a.s(["default",0,function(){let{id:a}=(0,c.useParams)(),{project:n,boxesFor:o}=(0,f.useStore)(),p=n(a);if(!p)return(0,b.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8",children:[(0,b.jsx)(g.BackLink,{to:"/",children:"Dashboard"}),(0,b.jsx)(k.EmptyBox,{children:"Project not found."})]});let q=o(a),r=q.filter(a=>"running"===a.status).length;return(0,b.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,b.jsx)(g.BackLink,{to:"/",children:"All projects"}),(0,b.jsxs)("div",{className:"flex items-start gap-4 max-md:flex-col",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)("h1",{className:"flex items-center gap-3 text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:[(0,b.jsx)("span",{className:"grid h-[26px] w-[26px] flex-none place-items-center rounded-md border border-[var(--green-line)] bg-accent text-primary",children:(0,b.jsx)(e.Icons.folder,{className:"size-[15px]"})}),p.name]}),(0,b.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:[(0,b.jsx)("span",{className:"font-mono text-secondary-foreground",children:p.repo})," · ",p.provider]})]}),(0,b.jsxs)("div",{className:"ml-auto flex flex-none gap-2 max-md:ml-0",children:[(0,b.jsx)(i.CreateBoxButton,{project:p}),0===q.length?(0,b.jsx)(j.DeleteProjectButton,{project:p,redirectHome:!0}):null]})]}),(0,b.jsx)("div",{className:"mt-5",children:(0,b.jsxs)(m.StatGrid,{children:[(0,b.jsx)(m.Stat,{k:"Boxes",v:q.length,icon:e.Icons.box}),(0,b.jsx)(m.Stat,{k:"Running",v:r,icon:e.Icons.activity}),(0,b.jsx)(m.Stat,{k:"Provider",v:p.provider,mono:!0}),(0,b.jsx)(m.Stat,{k:"Created",v:(0,b.jsx)(d.Ago,{ms:p.createdAt}),mono:!0})]})}),(0,b.jsx)(l.SectionLabel,{children:"Boxes"}),q.length?(0,b.jsx)(h.BoxTable,{boxes:q}):(0,b.jsx)(k.EmptyBox,{children:(0,b.jsx)("div",{children:"No boxes yet."})})]})}])}];
2
2
 
3
3
  //# sourceMappingURL=_0tgpglr._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[60401,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(50253),e=a.i(97187),f=a.i(18071),g=a.i(96664);let h=(0,g.createServerReference)("60ff5520393ac26282f15f58e0b073a0c45b3ba7e5",g.callServer,void 0,g.findSourceMapURL,"answerApprovalAction");a.s(["ApprovalActions",0,function({id:a}){let g=(0,c.useRouter)(),[i,j]=(0,d.useTransition)(),k=b=>{j(async()=>{let c=await h(a,b);c.ok||window.alert(`Failed: ${c.error}`),g.refresh()})};return(0,b.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,b.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:i,className:"hover:border-[var(--red-line)] hover:bg-[var(--red-soft)] hover:text-[var(--red)]",onClick:()=>k("n"),children:[(0,b.jsx)(e.Icons.x,{}),"Deny"]}),(0,b.jsxs)(f.Button,{size:"sm",disabled:i,onClick:()=>k("y"),children:[(0,b.jsx)(e.Icons.check,{}),"Approve"]})]})}],60401)},17607,3015,a=>{"use strict";var b=a.i(33552),c=a.i(50253);a.s(["Ago",0,function({ms:a}){let[d,e]=(0,c.useState)(!1);return(0,c.useEffect)(()=>e(!0),[]),(0,b.jsx)("span",{suppressHydrationWarning:!0,children:d?function(a){let b=Math.floor((Date.now()-a)/1e3);if(b<60)return b+"s ago";let c=Math.floor(b/60);if(c<60)return c+"m ago";let d=Math.floor(c/60);return d<24?d+"h ago":Math.floor(d/24)+"d ago"}(a):new Date(a).toLocaleDateString()})}],17607),a.s(["SectionLabel",0,function({children:a,right:c}){return(0,b.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[a,(0,b.jsx)("span",{className:"h-px flex-1 bg-border"}),c??null]})}],3015)},96664,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(6451),g=a.r(74786),h=a.r(50495)},12019,a=>{"use strict";var b=a.i(33552),c=a.i(97187);a.s(["EmptyBox",0,function({children:a}){return(0,b.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,b.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,b.jsx)(c.Icons.box,{className:"size-5"})}),a]})}])},24985,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("table",{className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{className:(0,c.cn)("px-4 py-3 align-middle",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{className:(0,c.cn)("h-9 px-4 text-left align-middle font-mono text-[10.5px] font-normal uppercase tracking-[.08em] text-muted-foreground/90",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{className:(0,c.cn)("bg-background [&_tr]:border-b [&_tr]:border-border",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{className:(0,c.cn)("border-b border-border/60 transition-colors hover:bg-[#fcfcfb] data-[state=selected]:bg-accent",a),...d})}])},87883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("rounded-xl border border-border bg-card text-card-foreground",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("p-5 pt-0",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[12.5px] text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1 p-5",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[15px] font-semibold leading-none tracking-tight",a),...d})}])},85883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Input",0,function({className:a,...d}){return(0,b.jsx)("input",{className:(0,c.cn)("flex h-10 w-full rounded-lg border border-input bg-card px-3 py-1 text-sm shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",a),...d})}])},94290,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(18071),e=a.i(85883);function f({jobId:a,login:g}){let[h,i]=(0,c.useState)(""),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(null),n="exchanging"===g.phase,o=async()=>{let b=h.trim();if(b&&!j){k(!0),m(null);try{let c=await fetch(`/api/v1/jobs/${encodeURIComponent(a)}/login-code`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:b})});if(!c.ok){let a=await c.json().catch(()=>null);m(a?.error?.message??`request failed (${c.status})`);return}i("")}catch(a){m(a instanceof Error?a.message:String(a))}finally{k(!1)}}};return(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-amber-500/40 bg-amber-500/10 p-3",children:[(0,b.jsx)("div",{className:"text-sm font-semibold text-amber-200",children:"Claude login required"}),(0,b.jsx)("p",{className:"text-xs text-amber-100/80",children:"Your saved Claude login is expired. Open the sign-in page, approve access, then paste the code Claude shows you."}),g.url?(0,b.jsx)("a",{href:g.url,target:"_blank",rel:"noreferrer",className:"w-fit rounded-md bg-amber-500/20 px-2.5 py-1 text-xs font-medium text-amber-100 underline decoration-amber-400/50 underline-offset-2 hover:bg-amber-500/30",children:"Open Claude sign-in ↗"}):(0,b.jsx)("span",{className:"text-xs text-amber-100/60",children:"waiting for the sign-in link…"}),(0,b.jsxs)("div",{className:"mt-1 flex gap-2",children:[(0,b.jsx)(e.Input,{value:h,onChange:a=>i(a.target.value),onKeyDown:a=>{"Enter"===a.key&&o()},placeholder:"Paste approval code",disabled:n,className:"flex-1 font-mono text-xs"}),(0,b.jsx)(d.Button,{type:"button",onClick:()=>void o(),disabled:!h.trim()||j||n,children:n?"Verifying…":j?"Submitting…":"Submit"})]}),g.lastError?(0,b.jsx)("p",{className:"text-xs text-amber-300",children:g.lastError}):null,"error"===g.phase&&g.error?(0,b.jsx)("p",{className:"text-xs text-red-400",children:g.error}):null,l?(0,b.jsx)("p",{className:"text-xs text-red-400",children:l}):null]})}a.s(["JobLogStream",0,function({jobId:a,endpoint:d,onDone:e,onStatus:g,onLogin:h}){let[i,j]=(0,c.useState)([]),[k,l]=(0,c.useState)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(e);n.current=e;let o=(0,c.useRef)(g);o.current=g;let p=(0,c.useRef)(h);return p.current=h,(0,c.useEffect)(()=>{o.current?.("streaming");let b=new EventSource(d??`/api/jobs/${encodeURIComponent(a)}/logs`);return b.addEventListener("log",a=>{let b=JSON.parse(a.data);j(a=>[...a,b])}),b.addEventListener("login",a=>{let b=JSON.parse(a.data);l(b),p.current?.(b)}),b.addEventListener("end",a=>{let c=JSON.parse(a.data);o.current?.(c.status),n.current?.(c.status),b.close()}),()=>b.close()},[a,d]),(0,c.useEffect)(()=>{let a=m.current;a&&(a.scrollTop=a.scrollHeight)},[i]),(0,b.jsxs)("div",{className:"flex flex-col gap-3",children:[k&&"done"!==k.phase?(0,b.jsx)(f,{jobId:a,login:k}):null,(0,b.jsx)("pre",{ref:m,className:"max-h-[440px] min-h-[220px] overflow-auto whitespace-pre rounded-lg bg-[#16181c] p-3 font-mono text-[11.5px] leading-relaxed text-[#d6d9de]",children:0===i.length?"starting…":i.join("\n")})]})}])},45515,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(86834),e=a.i(97187);a.s(["Dialog",0,function({onClose:a,className:f,children:g}){return(0,c.useEffect)(()=>{let b=b=>{"Escape"===b.key&&a()};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]),(0,b.jsx)("div",{className:"anim-fade fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-[rgba(20,24,30,.42)] p-6 backdrop-blur-[2px]",onClick:a,children:(0,b.jsxs)("div",{role:"dialog","aria-modal":"true",className:(0,d.cn)("anim-pop relative m-auto w-full max-w-[500px] rounded-2xl border border-border bg-card shadow-[0_40px_80px_-30px_rgba(20,24,30,.5)]",f),onClick:a=>a.stopPropagation(),children:[g,(0,b.jsx)("button",{className:"absolute right-4 top-4 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-[#a4a9b0] transition-colors hover:bg-secondary hover:text-foreground",onClick:a,"aria-label":"Close",children:(0,b.jsx)(e.Icons.x,{style:{width:15,height:15}})})]})})},"DialogBody",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("px-5 py-4",a),...c})},"DialogDescription",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("mt-1 font-mono text-xs text-muted-foreground",a),...c})},"DialogFooter",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex justify-end gap-2.5 rounded-b-2xl border-t border-border/70 bg-background px-5 py-3.5",a),...c})},"DialogHeader",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex items-start gap-3 border-b border-border/70 px-5 pb-4 pt-5",a),...c})},"DialogIcon",0,function({children:a}){return(0,b.jsx)("span",{className:"grid h-9 w-9 flex-none place-items-center rounded-lg border border-[var(--green-line)] bg-accent text-primary [&_svg]:size-[17px]",children:a})},"DialogTitle",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("text-base font-semibold leading-tight tracking-tight",a),...c})}])},71152,17236,a=>{"use strict";var b=a.i(33552),c=a.i(54473);let d={running:{label:"running",badgeClass:"badge-run"},paused:{label:"paused",badgeClass:"badge-pause"},stopped:{label:"stopped",badgeClass:"badge-stop"},creating:{label:"creating",badgeClass:"badge-create"},error:{label:"error",badgeClass:"badge-err"}};a.s(["StatusBadge",0,function({status:a}){let e=d[a]??d.stopped;return(0,b.jsxs)(c.Badge,{className:e.badgeClass,children:[(0,b.jsx)("span",{className:"badge-dot"}),e.label]})}],71152);var e=a.i(74455),f=a.i(50253),g=a.i(86834),h=a.i(18071),i=a.i(97187),j=a.i(96664);let k=(0,j.createServerReference)("40f10bede8a5e7505d5875574f7e6fc4a06e8e2cb7",j.callServer,void 0,j.findSourceMapURL,"destroyBoxAction"),l=(0,j.createServerReference)("40ea16199b5abb2d3c1d4cecdd25aac1e3c41f074c",j.callServer,void 0,j.findSourceMapURL,"pauseBoxAction"),m=(0,j.createServerReference)("4071308a0e1675de302803bb969800c52d79f11e13",j.callServer,void 0,j.findSourceMapURL,"resumeBoxAction"),n=(0,j.createServerReference)("40e545c7dd69b4a1d410deb9c94101099961d3af7a",j.callServer,void 0,j.findSourceMapURL,"stopBoxAction");a.s(["BoxActions",0,function({box:a,size:c}){let d=(0,e.useRouter)(),[j,o]=(0,f.useTransition)(),p="running"===a.status,q="paused"===a.status,r="stopped"===a.status,s="lg"===c,t=s?"sm":"icon-sm",u=(b,c,e)=>{b.stopPropagation(),(!e||window.confirm(e))&&o(async()=>{let b=await c(a.id);b.ok||window.alert(`Action failed: ${b.error}`),d.refresh()})};return(0,b.jsxs)("div",{className:(0,g.cn)("flex gap-1.5",s?"":"justify-end"),children:[q?(0,b.jsxs)(h.Button,{variant:s?"default":"outline",size:t,title:"Resume",disabled:j,className:s?"":"hover:border-[var(--green)] hover:bg-accent hover:text-[var(--green-ink)]",onClick:a=>u(a,m),children:[(0,b.jsx)(i.Icons.play,{}),s?"Resume":null]}):(0,b.jsxs)(h.Button,{variant:"outline",size:t,disabled:j||!p,title:"Pause",className:s?"":"hover:border-[var(--amber)] hover:bg-[var(--amber-soft)] hover:text-[var(--amber)]",onClick:a=>u(a,l),children:[(0,b.jsx)(i.Icons.pause,{}),s?"Pause":null]}),(0,b.jsxs)(h.Button,{variant:"outline",size:t,disabled:j||r,title:"Stop",onClick:a=>u(a,n),children:[(0,b.jsx)(i.Icons.stop,{}),s?"Stop":null]}),(0,b.jsxs)(h.Button,{variant:"destructive",size:t,title:"Destroy",disabled:j,onClick:b=>u(b,k,`Destroy box ${a.id}? Its workspace volume is discarded. This cannot be undone.`),children:[(0,b.jsx)(i.Icons.trash,{}),s?"Destroy":null]})]})}],17236)},53596,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Select",0,function({wrapperClassName:a,className:d,children:e,...f}){return(0,b.jsxs)("span",{className:(0,c.cn)("relative inline-flex",a),children:[(0,b.jsx)("select",{className:(0,c.cn)("h-9 w-full cursor-pointer appearance-none rounded-lg border border-input bg-card py-1 pl-3 pr-9 text-[13px] shadow-sm focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",d),...f,children:e}),(0,b.jsx)("svg",{className:"pointer-events-none absolute right-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:(0,b.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}])},26638,a=>{"use strict";var b=a.i(33552),c=a.i(51363),d=a.i(97187),e=a.i(80007),f=a.i(60401);function g(){let{state:a,box:g}=(0,e.useStore)();if(0===a.approvals.length)return null;let h=[...a.approvals].sort((a,b)=>a.createdAt-b.createdAt),i=h[0],j=g(i.boxId);return(0,b.jsxs)("div",{className:"mb-6 flex items-start gap-3 rounded-xl border border-[var(--amber-line)] bg-[var(--amber-soft)] p-4",children:[(0,b.jsx)(d.Icons.shield,{className:"mt-0.5 size-4 flex-none text-[var(--amber)]"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[j?(0,b.jsx)(c.default,{className:"text-[13.5px] font-semibold hover:text-[var(--green-ink)]",href:"/boxes/"+j.id,children:j.task}):(0,b.jsx)("span",{className:"text-[13.5px] font-semibold",children:i.boxId}),(0,b.jsx)("span",{className:"truncate font-mono text-[12.5px] text-secondary-foreground",children:i.command??i.message})]}),i.detail?(0,b.jsx)("div",{className:"mt-0.5 truncate text-[11.5px] text-muted-foreground",children:i.detail}):null,i.cwd?(0,b.jsx)("div",{className:"mt-0.5 truncate font-mono text-[11px] text-[#a4a9b0]",children:i.cwd}):null]}),(0,b.jsxs)("div",{className:"flex flex-none items-center gap-3",children:[h.length>1?(0,b.jsxs)("div",{className:"hidden items-center gap-2 sm:flex",children:[(0,b.jsxs)("span",{className:"font-mono text-[11.5px] text-[var(--amber)]",children:[h.length," pending"]}),(0,b.jsx)(c.default,{className:"font-mono text-[11.5px] text-muted-foreground hover:text-[var(--green-ink)]",href:"/approvals",children:"View all"})]}):null,(0,b.jsx)(f.ApprovalActions,{id:i.id})]})]})}var h=a.i(74455),i=a.i(50253),j=a.i(18071),k=a.i(45515),l=a.i(85883),m=a.i(96664);let n=(0,m.createServerReference)("4087bb6da1f4834ca146bcc8cb7c69295dbeda0bdc",m.callServer,void 0,m.findSourceMapURL,"addProjectAction"),o=(0,m.createServerReference)("40942714d29a270a6816a39cd419b4f09f50fc19b1",m.callServer,void 0,m.findSourceMapURL,"browseDirAction");function p(){let[a,c]=(0,i.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(j.Button,{onClick:()=>c(!0),children:[(0,b.jsx)(d.Icons.plus,{}),"New project"]}),a?(0,b.jsx)(q,{onClose:()=>c(!1)}):null]})}function q({onClose:a}){let c=(0,h.useRouter)(),[e,f]=(0,i.useTransition)(),[g,m]=(0,i.useState)(""),[p,r]=(0,i.useState)(null),[s,t]=(0,i.useState)([]),[u,v]=(0,i.useState)(!0),[w,x]=(0,i.useState)(null),y=(0,i.useCallback)(async a=>{v(!0),x(null);let b=await o(a);if(!b.ok){x(b.error),v(!1);return}m(b.path),r(b.parent),t(b.entries),v(!1)},[]);return(0,i.useEffect)(()=>{y()},[y]),(0,b.jsxs)(k.Dialog,{onClose:a,children:[(0,b.jsxs)(k.DialogHeader,{children:[(0,b.jsx)(k.DialogIcon,{children:(0,b.jsx)(d.Icons.folder,{})}),(0,b.jsxs)("div",{children:[(0,b.jsx)(k.DialogTitle,{children:"Add project"}),(0,b.jsx)(k.DialogDescription,{children:"Pick a folder on this machine"})]})]}),(0,b.jsxs)(k.DialogBody,{className:"flex flex-col gap-2.5",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(j.Button,{variant:"outline",className:"flex-none px-2.5",onClick:()=>void y(p??void 0),disabled:!p||u,title:"Up one level","aria-label":"Up one level",children:(0,b.jsx)(d.Icons.arrowUp,{})}),(0,b.jsx)(l.Input,{value:g,onChange:a=>m(a.target.value),placeholder:"/Users/you/Projects/my-app",className:"font-mono text-xs",onKeyDown:a=>{"Enter"===a.key&&y(g)}})]}),(0,b.jsx)("div",{className:"h-56 overflow-y-auto rounded-lg border border-border bg-background",children:u?(0,b.jsx)("div",{className:"px-3 py-2.5 font-mono text-xs text-muted-foreground",children:"Loading…"}):0===s.length?(0,b.jsx)("div",{className:"px-3 py-2.5 font-mono text-xs text-muted-foreground",children:"No subfolders here"}):s.map(a=>(0,b.jsxs)("button",{type:"button",onClick:()=>void y(a.path),className:"flex w-full cursor-pointer items-center gap-2 border-0 border-b border-border/60 bg-transparent px-3 py-2 text-left text-[13px] transition-colors last:border-b-0 hover:bg-secondary",children:[(0,b.jsx)(d.Icons.folder,{className:"size-4 flex-none text-muted-foreground"}),(0,b.jsx)("span",{className:"truncate",children:a.name}),a.isProject?(0,b.jsx)("span",{className:"ml-auto flex-none rounded border border-[var(--green-line)] bg-accent px-1.5 py-px font-mono text-[10px] uppercase tracking-wide text-primary",children:"project"}):(0,b.jsx)(d.Icons.chevR,{className:"ml-auto size-3.5 flex-none text-[#a4a9b0]"})]},a.path))}),w?(0,b.jsx)("div",{className:"font-mono text-xs text-destructive",children:w}):null]}),(0,b.jsxs)(k.DialogFooter,{children:[(0,b.jsx)(j.Button,{variant:"outline",onClick:a,disabled:e,children:"Cancel"}),(0,b.jsx)(j.Button,{onClick:()=>{x(null);let b=g.trim();b?f(async()=>{let d=await n(b);d.ok?(c.refresh(),a()):x(d.error)}):x("choose a folder")},disabled:e||u,children:e?"Adding…":"Add this folder"})]})]})}var r=a.i(61688),s=a.i(10511),t=a.i(47685),u=a.i(12019),v=a.i(3015);a.s(["default",0,function(){let{state:a,boxesFor:f}=(0,e.useStore)(),h=a.projects.map(a=>({p:a,boxes:f(a.id)})).sort((a,b)=>(a.boxes.length>0?0:1)-(b.boxes.length>0?0:1)),i=a.boxes.filter(a=>"running"===a.status).length;return(0,b.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,b.jsx)(g,{}),(0,b.jsxs)("div",{className:"flex items-start gap-4",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("h1",{className:"text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:"Boxes"}),(0,b.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:[(0,b.jsx)("span",{className:"font-mono text-secondary-foreground",children:i})," running across"," ",(0,b.jsx)("span",{className:"font-mono text-secondary-foreground",children:a.projects.length})," ","project",1===a.projects.length?"":"s"," on this machine."]})]}),(0,b.jsx)("div",{className:"ml-auto flex flex-none gap-2",children:(0,b.jsx)(p,{})})]}),(0,b.jsx)(v.SectionLabel,{children:"Projects"}),0===h.length?(0,b.jsxs)(u.EmptyBox,{children:[(0,b.jsx)("div",{children:"No projects on this machine yet."}),(0,b.jsx)("div",{className:"mt-1.5 font-mono text-xs text-muted-foreground",children:"Add one with “New project”, or run `agentbox create` in a folder."})]}):null,h.map(({p:a,boxes:e})=>(0,b.jsxs)("div",{className:"mb-7",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 px-1 pb-3",children:[(0,b.jsxs)(c.default,{className:"flex cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-[15px] font-semibold tracking-[-0.01em] text-foreground hover:text-[var(--green-ink)]",href:"/projects/"+a.id,children:[(0,b.jsx)("span",{className:"grid h-[22px] w-[22px] flex-none place-items-center rounded-md border border-[var(--green-line)] bg-accent text-primary",children:(0,b.jsx)(d.Icons.folder,{className:"size-[13px]"})}),a.name]}),(0,b.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:a.repo}),(0,b.jsx)("span",{className:"flex-1"}),(0,b.jsxs)("span",{className:"font-mono text-[11.5px] text-[#a4a9b0]",children:[e.length," box",1===e.length?"":"es"]}),(0,b.jsx)(s.CreateBoxButton,{project:a,variant:"outline",size:"sm",className:"font-mono text-xs"}),0===e.length?(0,b.jsx)(t.DeleteProjectButton,{project:a,size:"sm",className:"font-mono text-xs"}):null]}),e.length?(0,b.jsx)(r.BoxTable,{boxes:e}):(0,b.jsx)(u.EmptyBox,{children:(0,b.jsxs)("div",{children:["No boxes in ",(0,b.jsx)("b",{className:"font-semibold text-secondary-foreground",children:a.name})," yet."]})})]},a.id))]})}],26638)}];
1
+ module.exports=[60401,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(50253),e=a.i(97187),f=a.i(18071),g=a.i(96664);let h=(0,g.createServerReference)("60ff5520393ac26282f15f58e0b073a0c45b3ba7e5",g.callServer,void 0,g.findSourceMapURL,"answerApprovalAction");a.s(["ApprovalActions",0,function({id:a}){let g=(0,c.useRouter)(),[i,j]=(0,d.useTransition)(),k=b=>{j(async()=>{let c=await h(a,b);c.ok||window.alert(`Failed: ${c.error}`),g.refresh()})};return(0,b.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,b.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:i,className:"hover:border-[var(--red-line)] hover:bg-[var(--red-soft)] hover:text-[var(--red)]",onClick:()=>k("n"),children:[(0,b.jsx)(e.Icons.x,{}),"Deny"]}),(0,b.jsxs)(f.Button,{size:"sm",disabled:i,onClick:()=>k("y"),children:[(0,b.jsx)(e.Icons.check,{}),"Approve"]})]})}],60401)},17607,3015,a=>{"use strict";var b=a.i(33552),c=a.i(50253);a.s(["Ago",0,function({ms:a}){let[d,e]=(0,c.useState)(!1);return(0,c.useEffect)(()=>e(!0),[]),(0,b.jsx)("span",{suppressHydrationWarning:!0,children:d?function(a){let b=Math.floor((Date.now()-a)/1e3);if(b<60)return b+"s ago";let c=Math.floor(b/60);if(c<60)return c+"m ago";let d=Math.floor(c/60);return d<24?d+"h ago":Math.floor(d/24)+"d ago"}(a):new Date(a).toLocaleDateString()})}],17607),a.s(["SectionLabel",0,function({children:a,right:c}){return(0,b.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[a,(0,b.jsx)("span",{className:"h-px flex-1 bg-border"}),c??null]})}],3015)},96664,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(6451),g=a.r(74786),h=a.r(50495)},12019,a=>{"use strict";var b=a.i(33552),c=a.i(97187);a.s(["EmptyBox",0,function({children:a}){return(0,b.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,b.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,b.jsx)(c.Icons.box,{className:"size-5"})}),a]})}])},24985,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("table",{className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{className:(0,c.cn)("px-4 py-3 align-middle",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{className:(0,c.cn)("h-9 px-4 text-left align-middle font-mono text-[10.5px] font-normal uppercase tracking-[.08em] text-muted-foreground/90",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{className:(0,c.cn)("bg-background [&_tr]:border-b [&_tr]:border-border",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{className:(0,c.cn)("border-b border-border/60 transition-colors hover:bg-[#fcfcfb] data-[state=selected]:bg-accent",a),...d})}])},87883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("rounded-xl border border-border bg-card text-card-foreground",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("p-5 pt-0",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[12.5px] text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1 p-5",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[15px] font-semibold leading-none tracking-tight",a),...d})}])},85883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Input",0,function({className:a,...d}){return(0,b.jsx)("input",{className:(0,c.cn)("flex h-10 w-full rounded-lg border border-input bg-card px-3 py-1 text-sm shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",a),...d})}])},94290,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(18071),e=a.i(85883);function f({jobId:a,login:g}){let[h,i]=(0,c.useState)(""),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(null),n="exchanging"===g.phase,o=async()=>{let b=h.trim();if(b&&!j){k(!0),m(null);try{let c=await fetch(`/api/v1/jobs/${encodeURIComponent(a)}/login-code`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:b})});if(!c.ok){let a=await c.json().catch(()=>null);m(a?.error?.message??`request failed (${c.status})`);return}i("")}catch(a){m(a instanceof Error?a.message:String(a))}finally{k(!1)}}};return(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-amber-500/40 bg-amber-500/10 p-3",children:[(0,b.jsx)("div",{className:"text-sm font-semibold text-amber-200",children:"Claude login required"}),(0,b.jsx)("p",{className:"text-xs text-amber-100/80",children:"Your saved Claude login is expired. Open the sign-in page, approve access, then paste the code Claude shows you."}),g.url?(0,b.jsx)("a",{href:g.url,target:"_blank",rel:"noreferrer",className:"w-fit rounded-md bg-amber-500/20 px-2.5 py-1 text-xs font-medium text-amber-100 underline decoration-amber-400/50 underline-offset-2 hover:bg-amber-500/30",children:"Open Claude sign-in ↗"}):(0,b.jsx)("span",{className:"text-xs text-amber-100/60",children:"waiting for the sign-in link…"}),(0,b.jsxs)("div",{className:"mt-1 flex gap-2",children:[(0,b.jsx)(e.Input,{value:h,onChange:a=>i(a.target.value),onKeyDown:a=>{"Enter"===a.key&&o()},placeholder:"Paste approval code",disabled:n,className:"flex-1 font-mono text-xs"}),(0,b.jsx)(d.Button,{type:"button",onClick:()=>void o(),disabled:!h.trim()||j||n,children:n?"Verifying…":j?"Submitting…":"Submit"})]}),g.lastError?(0,b.jsx)("p",{className:"text-xs text-amber-300",children:g.lastError}):null,"error"===g.phase&&g.error?(0,b.jsx)("p",{className:"text-xs text-red-400",children:g.error}):null,l?(0,b.jsx)("p",{className:"text-xs text-red-400",children:l}):null]})}a.s(["JobLogStream",0,function({jobId:a,endpoint:d,onDone:e,onStatus:g,onLogin:h}){let[i,j]=(0,c.useState)([]),[k,l]=(0,c.useState)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(e);n.current=e;let o=(0,c.useRef)(g);o.current=g;let p=(0,c.useRef)(h);return p.current=h,(0,c.useEffect)(()=>{o.current?.("streaming");let b=new EventSource(d??`/api/jobs/${encodeURIComponent(a)}/logs`);return b.addEventListener("log",a=>{let b=JSON.parse(a.data);j(a=>[...a,b])}),b.addEventListener("login",a=>{let b=JSON.parse(a.data);l(b),p.current?.(b)}),b.addEventListener("end",a=>{let c=JSON.parse(a.data);o.current?.(c.status),n.current?.(c.status),b.close()}),()=>b.close()},[a,d]),(0,c.useEffect)(()=>{let a=m.current;a&&(a.scrollTop=a.scrollHeight)},[i]),(0,b.jsxs)("div",{className:"flex flex-col gap-3",children:[k&&"done"!==k.phase?(0,b.jsx)(f,{jobId:a,login:k}):null,(0,b.jsx)("pre",{ref:m,className:"max-h-[440px] min-h-[220px] overflow-auto whitespace-pre rounded-lg bg-[#16181c] p-3 font-mono text-[11.5px] leading-relaxed text-[#d6d9de]",children:0===i.length?"starting…":i.join("\n")})]})}])},45515,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(86834),e=a.i(97187);a.s(["Dialog",0,function({onClose:a,className:f,children:g}){return(0,c.useEffect)(()=>{let b=b=>{"Escape"===b.key&&a()};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]),(0,b.jsx)("div",{className:"anim-fade fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-[rgba(20,24,30,.42)] p-6 backdrop-blur-[2px]",onClick:a,children:(0,b.jsxs)("div",{role:"dialog","aria-modal":"true",className:(0,d.cn)("anim-pop relative m-auto w-full max-w-[500px] rounded-2xl border border-border bg-card shadow-[0_40px_80px_-30px_rgba(20,24,30,.5)]",f),onClick:a=>a.stopPropagation(),children:[g,(0,b.jsx)("button",{className:"absolute right-4 top-4 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-[#a4a9b0] transition-colors hover:bg-secondary hover:text-foreground",onClick:a,"aria-label":"Close",children:(0,b.jsx)(e.Icons.x,{style:{width:15,height:15}})})]})})},"DialogBody",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("px-5 py-4",a),...c})},"DialogDescription",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("mt-1 font-mono text-xs text-muted-foreground",a),...c})},"DialogFooter",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex justify-end gap-2.5 rounded-b-2xl border-t border-border/70 bg-background px-5 py-3.5",a),...c})},"DialogHeader",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex items-start gap-3 border-b border-border/70 px-5 pb-4 pt-5",a),...c})},"DialogIcon",0,function({children:a}){return(0,b.jsx)("span",{className:"grid h-9 w-9 flex-none place-items-center rounded-lg border border-[var(--green-line)] bg-accent text-primary [&_svg]:size-[17px]",children:a})},"DialogTitle",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("text-base font-semibold leading-tight tracking-tight",a),...c})}])},71152,17236,a=>{"use strict";var b=a.i(33552),c=a.i(54473);let d={running:{label:"running",badgeClass:"badge-run"},paused:{label:"paused",badgeClass:"badge-pause"},stopped:{label:"stopped",badgeClass:"badge-stop"},creating:{label:"creating",badgeClass:"badge-create"},error:{label:"error",badgeClass:"badge-err"}};a.s(["StatusBadge",0,function({status:a}){let e=d[a]??d.stopped;return(0,b.jsxs)(c.Badge,{className:e.badgeClass,children:[(0,b.jsx)("span",{className:"badge-dot"}),e.label]})}],71152);var e=a.i(74455),f=a.i(50253),g=a.i(86834),h=a.i(18071),i=a.i(97187),j=a.i(96664);let k=(0,j.createServerReference)("40f10bede8a5e7505d5875574f7e6fc4a06e8e2cb7",j.callServer,void 0,j.findSourceMapURL,"destroyBoxAction"),l=(0,j.createServerReference)("40ea16199b5abb2d3c1d4cecdd25aac1e3c41f074c",j.callServer,void 0,j.findSourceMapURL,"pauseBoxAction"),m=(0,j.createServerReference)("6096bb2a65e369cd77e8b1dc6cd900a5f1e67287bb",j.callServer,void 0,j.findSourceMapURL,"renameBoxAction"),n=(0,j.createServerReference)("4071308a0e1675de302803bb969800c52d79f11e13",j.callServer,void 0,j.findSourceMapURL,"resumeBoxAction"),o=(0,j.createServerReference)("40e545c7dd69b4a1d410deb9c94101099961d3af7a",j.callServer,void 0,j.findSourceMapURL,"stopBoxAction");a.s(["BoxActions",0,function({box:a,size:c}){let d=(0,e.useRouter)(),[j,p]=(0,f.useTransition)(),q="running"===a.status,r="paused"===a.status,s="stopped"===a.status,t="lg"===c,u=t?"sm":"icon-sm",v=(b,c,e)=>{b.stopPropagation(),(!e||window.confirm(e))&&p(async()=>{let b=await c(a.id);b.ok||window.alert(`Action failed: ${b.error}`),d.refresh()})};return(0,b.jsxs)("div",{className:(0,g.cn)("flex gap-1.5",t?"":"justify-end"),children:[r?(0,b.jsxs)(h.Button,{variant:t?"default":"outline",size:u,title:"Resume",disabled:j,className:t?"":"hover:border-[var(--green)] hover:bg-accent hover:text-[var(--green-ink)]",onClick:a=>v(a,n),children:[(0,b.jsx)(i.Icons.play,{}),t?"Resume":null]}):(0,b.jsxs)(h.Button,{variant:"outline",size:u,disabled:j||!q,title:"Pause",className:t?"":"hover:border-[var(--amber)] hover:bg-[var(--amber-soft)] hover:text-[var(--amber)]",onClick:a=>v(a,l),children:[(0,b.jsx)(i.Icons.pause,{}),t?"Pause":null]}),(0,b.jsxs)(h.Button,{variant:"outline",size:u,disabled:j||s,title:"Stop",onClick:a=>v(a,o),children:[(0,b.jsx)(i.Icons.stop,{}),t?"Stop":null]}),(0,b.jsxs)(h.Button,{variant:"outline",size:u,disabled:j,title:"Rename",onClick:b=>{b.stopPropagation();let c=window.prompt("Rename box (label only — leave blank to reset)",a.displayName??a.task);null!==c&&p(async()=>{let b=await m(a.id,c.trim());b.ok||window.alert(`Rename failed: ${b.error}`),d.refresh()})},children:[(0,b.jsx)(i.Icons.pencil,{}),t?"Rename":null]}),(0,b.jsxs)(h.Button,{variant:"destructive",size:u,title:"Destroy",disabled:j,onClick:b=>v(b,k,`Destroy box ${a.id}? Its workspace volume is discarded. This cannot be undone.`),children:[(0,b.jsx)(i.Icons.trash,{}),t?"Destroy":null]})]})}],17236)},53596,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Select",0,function({wrapperClassName:a,className:d,children:e,...f}){return(0,b.jsxs)("span",{className:(0,c.cn)("relative inline-flex",a),children:[(0,b.jsx)("select",{className:(0,c.cn)("h-9 w-full cursor-pointer appearance-none rounded-lg border border-input bg-card py-1 pl-3 pr-9 text-[13px] shadow-sm focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",d),...f,children:e}),(0,b.jsx)("svg",{className:"pointer-events-none absolute right-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:(0,b.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}])},26638,a=>{"use strict";var b=a.i(33552),c=a.i(51363),d=a.i(97187),e=a.i(80007),f=a.i(60401);function g(){let{state:a,box:g}=(0,e.useStore)();if(0===a.approvals.length)return null;let h=[...a.approvals].sort((a,b)=>a.createdAt-b.createdAt),i=h[0],j=g(i.boxId);return(0,b.jsxs)("div",{className:"mb-6 flex items-start gap-3 rounded-xl border border-[var(--amber-line)] bg-[var(--amber-soft)] p-4",children:[(0,b.jsx)(d.Icons.shield,{className:"mt-0.5 size-4 flex-none text-[var(--amber)]"}),(0,b.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,b.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[j?(0,b.jsx)(c.default,{className:"text-[13.5px] font-semibold hover:text-[var(--green-ink)]",href:"/boxes/"+j.id,children:j.task}):(0,b.jsx)("span",{className:"text-[13.5px] font-semibold",children:i.boxId}),(0,b.jsx)("span",{className:"truncate font-mono text-[12.5px] text-secondary-foreground",children:i.command??i.message})]}),i.detail?(0,b.jsx)("div",{className:"mt-0.5 truncate text-[11.5px] text-muted-foreground",children:i.detail}):null,i.cwd?(0,b.jsx)("div",{className:"mt-0.5 truncate font-mono text-[11px] text-[#a4a9b0]",children:i.cwd}):null]}),(0,b.jsxs)("div",{className:"flex flex-none items-center gap-3",children:[h.length>1?(0,b.jsxs)("div",{className:"hidden items-center gap-2 sm:flex",children:[(0,b.jsxs)("span",{className:"font-mono text-[11.5px] text-[var(--amber)]",children:[h.length," pending"]}),(0,b.jsx)(c.default,{className:"font-mono text-[11.5px] text-muted-foreground hover:text-[var(--green-ink)]",href:"/approvals",children:"View all"})]}):null,(0,b.jsx)(f.ApprovalActions,{id:i.id})]})]})}var h=a.i(74455),i=a.i(50253),j=a.i(18071),k=a.i(45515),l=a.i(85883),m=a.i(96664);let n=(0,m.createServerReference)("4087bb6da1f4834ca146bcc8cb7c69295dbeda0bdc",m.callServer,void 0,m.findSourceMapURL,"addProjectAction"),o=(0,m.createServerReference)("40942714d29a270a6816a39cd419b4f09f50fc19b1",m.callServer,void 0,m.findSourceMapURL,"browseDirAction");function p(){let[a,c]=(0,i.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(j.Button,{onClick:()=>c(!0),children:[(0,b.jsx)(d.Icons.plus,{}),"New project"]}),a?(0,b.jsx)(q,{onClose:()=>c(!1)}):null]})}function q({onClose:a}){let c=(0,h.useRouter)(),[e,f]=(0,i.useTransition)(),[g,m]=(0,i.useState)(""),[p,r]=(0,i.useState)(null),[s,t]=(0,i.useState)([]),[u,v]=(0,i.useState)(!0),[w,x]=(0,i.useState)(null),y=(0,i.useCallback)(async a=>{v(!0),x(null);let b=await o(a);if(!b.ok){x(b.error),v(!1);return}m(b.path),r(b.parent),t(b.entries),v(!1)},[]);return(0,i.useEffect)(()=>{y()},[y]),(0,b.jsxs)(k.Dialog,{onClose:a,children:[(0,b.jsxs)(k.DialogHeader,{children:[(0,b.jsx)(k.DialogIcon,{children:(0,b.jsx)(d.Icons.folder,{})}),(0,b.jsxs)("div",{children:[(0,b.jsx)(k.DialogTitle,{children:"Add project"}),(0,b.jsx)(k.DialogDescription,{children:"Pick a folder on this machine"})]})]}),(0,b.jsxs)(k.DialogBody,{className:"flex flex-col gap-2.5",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2",children:[(0,b.jsx)(j.Button,{variant:"outline",className:"flex-none px-2.5",onClick:()=>void y(p??void 0),disabled:!p||u,title:"Up one level","aria-label":"Up one level",children:(0,b.jsx)(d.Icons.arrowUp,{})}),(0,b.jsx)(l.Input,{value:g,onChange:a=>m(a.target.value),placeholder:"/Users/you/Projects/my-app",className:"font-mono text-xs",onKeyDown:a=>{"Enter"===a.key&&y(g)}})]}),(0,b.jsx)("div",{className:"h-56 overflow-y-auto rounded-lg border border-border bg-background",children:u?(0,b.jsx)("div",{className:"px-3 py-2.5 font-mono text-xs text-muted-foreground",children:"Loading…"}):0===s.length?(0,b.jsx)("div",{className:"px-3 py-2.5 font-mono text-xs text-muted-foreground",children:"No subfolders here"}):s.map(a=>(0,b.jsxs)("button",{type:"button",onClick:()=>void y(a.path),className:"flex w-full cursor-pointer items-center gap-2 border-0 border-b border-border/60 bg-transparent px-3 py-2 text-left text-[13px] transition-colors last:border-b-0 hover:bg-secondary",children:[(0,b.jsx)(d.Icons.folder,{className:"size-4 flex-none text-muted-foreground"}),(0,b.jsx)("span",{className:"truncate",children:a.name}),a.isProject?(0,b.jsx)("span",{className:"ml-auto flex-none rounded border border-[var(--green-line)] bg-accent px-1.5 py-px font-mono text-[10px] uppercase tracking-wide text-primary",children:"project"}):(0,b.jsx)(d.Icons.chevR,{className:"ml-auto size-3.5 flex-none text-[#a4a9b0]"})]},a.path))}),w?(0,b.jsx)("div",{className:"font-mono text-xs text-destructive",children:w}):null]}),(0,b.jsxs)(k.DialogFooter,{children:[(0,b.jsx)(j.Button,{variant:"outline",onClick:a,disabled:e,children:"Cancel"}),(0,b.jsx)(j.Button,{onClick:()=>{x(null);let b=g.trim();b?f(async()=>{let d=await n(b);d.ok?(c.refresh(),a()):x(d.error)}):x("choose a folder")},disabled:e||u,children:e?"Adding…":"Add this folder"})]})]})}var r=a.i(61688),s=a.i(10511),t=a.i(47685),u=a.i(12019),v=a.i(3015);a.s(["default",0,function(){let{state:a,boxesFor:f}=(0,e.useStore)(),h=a.projects.map(a=>({p:a,boxes:f(a.id)})).sort((a,b)=>(a.boxes.length>0?0:1)-(b.boxes.length>0?0:1)),i=a.boxes.filter(a=>"running"===a.status).length;return(0,b.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,b.jsx)(g,{}),(0,b.jsxs)("div",{className:"flex items-start gap-4",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsx)("h1",{className:"text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:"Boxes"}),(0,b.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:[(0,b.jsx)("span",{className:"font-mono text-secondary-foreground",children:i})," running across"," ",(0,b.jsx)("span",{className:"font-mono text-secondary-foreground",children:a.projects.length})," ","project",1===a.projects.length?"":"s"," on this machine."]})]}),(0,b.jsx)("div",{className:"ml-auto flex flex-none gap-2",children:(0,b.jsx)(p,{})})]}),(0,b.jsx)(v.SectionLabel,{children:"Projects"}),0===h.length?(0,b.jsxs)(u.EmptyBox,{children:[(0,b.jsx)("div",{children:"No projects on this machine yet."}),(0,b.jsx)("div",{className:"mt-1.5 font-mono text-xs text-muted-foreground",children:"Add one with “New project”, or run `agentbox create` in a folder."})]}):null,h.map(({p:a,boxes:e})=>(0,b.jsxs)("div",{className:"mb-7",children:[(0,b.jsxs)("div",{className:"flex items-center gap-3 px-1 pb-3",children:[(0,b.jsxs)(c.default,{className:"flex cursor-pointer items-center gap-2 border-0 bg-transparent p-0 text-[15px] font-semibold tracking-[-0.01em] text-foreground hover:text-[var(--green-ink)]",href:"/projects/"+a.id,children:[(0,b.jsx)("span",{className:"grid h-[22px] w-[22px] flex-none place-items-center rounded-md border border-[var(--green-line)] bg-accent text-primary",children:(0,b.jsx)(d.Icons.folder,{className:"size-[13px]"})}),a.name]}),(0,b.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:a.repo}),(0,b.jsx)("span",{className:"flex-1"}),(0,b.jsxs)("span",{className:"font-mono text-[11.5px] text-[#a4a9b0]",children:[e.length," box",1===e.length?"":"es"]}),(0,b.jsx)(s.CreateBoxButton,{project:a,variant:"outline",size:"sm",className:"font-mono text-xs"}),0===e.length?(0,b.jsx)(t.DeleteProjectButton,{project:a,size:"sm",className:"font-mono text-xs"}):null]}),e.length?(0,b.jsx)(r.BoxTable,{boxes:e}):(0,b.jsx)(u.EmptyBox,{children:(0,b.jsxs)("div",{children:["No boxes in ",(0,b.jsx)("b",{className:"font-semibold text-secondary-foreground",children:a.name})," yet."]})})]},a.id))]})}],26638)}];
2
2
 
3
3
  //# sourceMappingURL=_1laion6._.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[73968,a=>{"use strict";var b=a.i(56539);a.s([],39249),a.i(39249),a.s(["4071308a0e1675de302803bb969800c52d79f11e13",()=>b.resumeBoxAction,"40e545c7dd69b4a1d410deb9c94101099961d3af7a",()=>b.stopBoxAction,"40ea16199b5abb2d3c1d4cecdd25aac1e3c41f074c",()=>b.pauseBoxAction,"40f10bede8a5e7505d5875574f7e6fc4a06e8e2cb7",()=>b.destroyBoxAction,"600e7ece96e4038f118842cef0ebcf51dadf743c9b",()=>b.gitCheckoutAction,"605f4904ee0814a4a51c0445aa18e7dfbde590c7e5",()=>b.gitPullAction,"60675b1179af1a57b7c4bb6e4d893805dd8f7b0b66",()=>b.gitPushAction,"607692631dd5973ad6071d94f3fee9c7da56a766db",()=>b.gitPushHostAction,"6096ff4dd5616157cf1da6a977c271641a3ddce491",()=>b.restartServiceAction,"60ff5520393ac26282f15f58e0b073a0c45b3ba7e5",()=>b.answerApprovalAction,"70fd109611adee18e2a11d04af4332c29e796848e9",()=>b.gitBranchAction],73968)}];
1
+ module.exports=[73968,a=>{"use strict";var b=a.i(56539);a.s([],39249),a.i(39249),a.s(["4071308a0e1675de302803bb969800c52d79f11e13",()=>b.resumeBoxAction,"40e545c7dd69b4a1d410deb9c94101099961d3af7a",()=>b.stopBoxAction,"40ea16199b5abb2d3c1d4cecdd25aac1e3c41f074c",()=>b.pauseBoxAction,"40f10bede8a5e7505d5875574f7e6fc4a06e8e2cb7",()=>b.destroyBoxAction,"600e7ece96e4038f118842cef0ebcf51dadf743c9b",()=>b.gitCheckoutAction,"605f4904ee0814a4a51c0445aa18e7dfbde590c7e5",()=>b.gitPullAction,"60675b1179af1a57b7c4bb6e4d893805dd8f7b0b66",()=>b.gitPushAction,"607692631dd5973ad6071d94f3fee9c7da56a766db",()=>b.gitPushHostAction,"6096bb2a65e369cd77e8b1dc6cd900a5f1e67287bb",()=>b.renameBoxAction,"6096ff4dd5616157cf1da6a977c271641a3ddce491",()=>b.restartServiceAction,"60ff5520393ac26282f15f58e0b073a0c45b3ba7e5",()=>b.answerApprovalAction,"70fd109611adee18e2a11d04af4332c29e796848e9",()=>b.gitBranchAction],73968)}];
2
2
 
3
3
  //# sourceMappingURL=apps_hub__next-internal_server_app_%28dashboard%29_boxes_%5Bid%5D_page_actions_0k7kgn2.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[12901,a=>{"use strict";var b=a.i(56539);a.s([],77267),a.i(77267),a.s(["40386bdce4d894a318a969412fa1299d2704ccdfb3",()=>b.listBranchesAction,"4070192706087364b8c7d220576a6f3e4d3e5c532b",()=>b.createBoxAction,"4071308a0e1675de302803bb969800c52d79f11e13",()=>b.resumeBoxAction,"4087bb6da1f4834ca146bcc8cb7c69295dbeda0bdc",()=>b.addProjectAction,"40942714d29a270a6816a39cd419b4f09f50fc19b1",()=>b.browseDirAction,"40c7856bd78dddab224344045df78d51620e411335",()=>b.removeProjectAction,"40e545c7dd69b4a1d410deb9c94101099961d3af7a",()=>b.stopBoxAction,"40ea16199b5abb2d3c1d4cecdd25aac1e3c41f074c",()=>b.pauseBoxAction,"40f10bede8a5e7505d5875574f7e6fc4a06e8e2cb7",()=>b.destroyBoxAction,"60ff5520393ac26282f15f58e0b073a0c45b3ba7e5",()=>b.answerApprovalAction],12901)}];
1
+ module.exports=[12901,a=>{"use strict";var b=a.i(56539);a.s([],77267),a.i(77267),a.s(["40386bdce4d894a318a969412fa1299d2704ccdfb3",()=>b.listBranchesAction,"4070192706087364b8c7d220576a6f3e4d3e5c532b",()=>b.createBoxAction,"4071308a0e1675de302803bb969800c52d79f11e13",()=>b.resumeBoxAction,"4087bb6da1f4834ca146bcc8cb7c69295dbeda0bdc",()=>b.addProjectAction,"40942714d29a270a6816a39cd419b4f09f50fc19b1",()=>b.browseDirAction,"40c7856bd78dddab224344045df78d51620e411335",()=>b.removeProjectAction,"40e545c7dd69b4a1d410deb9c94101099961d3af7a",()=>b.stopBoxAction,"40ea16199b5abb2d3c1d4cecdd25aac1e3c41f074c",()=>b.pauseBoxAction,"40f10bede8a5e7505d5875574f7e6fc4a06e8e2cb7",()=>b.destroyBoxAction,"6096bb2a65e369cd77e8b1dc6cd900a5f1e67287bb",()=>b.renameBoxAction,"60ff5520393ac26282f15f58e0b073a0c45b3ba7e5",()=>b.answerApprovalAction],12901)}];
2
2
 
3
3
  //# sourceMappingURL=apps_hub__next-internal_server_app_%28dashboard%29_page_actions_1t3u0xy.js.map
@@ -1,3 +1,3 @@
1
- module.exports=[97187,80007,a=>{"use strict";var b=a.i(33552);let c=(a,c)=>d=>(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:c?"currentColor":"none",stroke:c?"none":"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",...d,children:a.map((a,c)=>(0,b.jsx)("path",{d:a},c))}),d={grid:c(["M4 4h7v7H4zM13 4h7v7h-7zM13 13h7v7h-7zM4 13h7v7H4z"]),box:c(["M12 20.5 5 17V7l7-3.5L19 7v10Z","m5 7 7 3.5L19 7M12 10.5V20"]),folder:c(["M4 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"]),settings:c(["M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M19.4 15a1.6 1.6 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.6 1.6 0 0 0-2.7 1.1V21a2 2 0 1 1-4 0v-.1A1.6 1.6 0 0 0 7.5 19.4a1.6 1.6 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.6 1.6 0 0 0-1.1-2.7H1a2 2 0 1 1 0-4h.1A1.6 1.6 0 0 0 2.6 7.5a1.6 1.6 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.6 1.6 0 0 0 2.7-1.1V1a2 2 0 1 1 4 0v.1a1.6 1.6 0 0 0 2.7 1.1 1.6 1.6 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.6 1.6 0 0 0 1.1 2.7H21a2 2 0 1 1 0 4h-.1a1.6 1.6 0 0 0-1.5 1Z"]),book:c(["M4 19.5A2.5 2.5 0 0 1 6.5 17H20","M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z"]),branch:c(["M6 3v12","M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M18 9a9 9 0 0 1-9 9"]),plus:c(["M12 5v14M5 12h14"]),pause:c(["M9 4H6v16h3zM18 4h-3v16h3z"]),play:c(["M6 4l14 8-14 8Z"]),refresh:c(["M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8","M3 3v5h5","M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16","M21 21v-5h-5"]),stop:c(["M7 7h10v10H7z"]),trash:c(["M3 6h18","M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2","M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"]),chevR:c(["m9 6 6 6-6 6"]),arrowL:c(["M19 12H5","m12 19-7-7 7-7"]),arrowUp:c(["M12 19V5","m5 12 7-7 7 7"]),ext:c(["M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6","M15 3h6v6","M10 14 21 3"]),copy:c(["M9 9h11a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2Z","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"]),x:c(["M18 6 6 18M6 6l12 12"]),check:c(["M20 6 9 17l-5-5"]),clock:c(["M12 7v5l3 2","M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z"]),server:c(["M3 4h18v6H3zM3 14h18v6H3z","M7 7h.01M7 17h.01"]),host:c(["M5 4h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z","M5 14h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2Z","M7 7h.01M7 17h.01"]),repo:c(["M4 19.5A2.5 2.5 0 0 1 6.5 17H20","M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z"]),search:c(["M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z","m20 20-3.5-3.5"]),menu:c(["M4 7h16M4 12h16M4 17h16"]),terminal:c(["m6 9 3 3-3 3","M13 15h5","M4 4h16v16H4z"]),warn:c(["M10.3 4.3 2.5 18a1.8 1.8 0 0 0 1.6 2.7h15.8A1.8 1.8 0 0 0 21.5 18L13.7 4.3a1.8 1.8 0 0 0-3.1 0Z","M12 9v4M12 17h.01"]),activity:c(["M22 12h-4l-3 9L9 3l-3 9H2"]),commit:c(["M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M3 12h6M15 12h6"]),file:c(["M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z","M14 2v6h6"]),shield:c(["M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"]),claude:c(["M12 3v18M3 12h18M5.5 5.5l13 13M18.5 5.5l-13 13"]),codex:a=>(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",...a,children:(0,b.jsx)("path",{d:"M12 2.6 3.2 7v10l8.8 4.4L20.8 17V7L12 2.6Zm0 3.1a6.3 6.3 0 1 1 0 12.6 6.3 6.3 0 0 1 0-12.6Zm0 2.4a3.9 3.9 0 1 0 0 7.8 3.9 3.9 0 0 0 0-7.8Z"})}),opencode:c(["M9 8l-4 4 4 4","M15 8l4 4-4 4","M13 6l-2 12"]),github:a=>(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",...a,children:(0,b.jsx)("path",{d:"M12 1.5A10.5 10.5 0 0 0 8.7 22c.5.1.7-.2.7-.5v-1.8c-2.9.6-3.5-1.4-3.5-1.4-.5-1.2-1.2-1.5-1.2-1.5-.9-.6.1-.6.1-.6 1 .1 1.6 1 1.6 1 .9 1.6 2.4 1.1 3 .9.1-.7.4-1.1.6-1.4-2.3-.3-4.7-1.2-4.7-5.1 0-1.1.4-2 1-2.7-.1-.3-.5-1.4.1-2.8 0 0 .9-.3 2.8 1a9.6 9.6 0 0 1 5 0c1.9-1.3 2.8-1 2.8-1 .6 1.4.2 2.5.1 2.8.7.7 1 1.6 1 2.7 0 3.9-2.4 4.8-4.6 5 .4.3.7.9.7 1.9v2.8c0 .3.2.6.7.5A10.5 10.5 0 0 0 12 1.5Z"})})},e={TypeScript:"#3178c6",Go:"#00add8",Astro:"#ff5d01",MDX:"#f9a03c",JavaScript:"#f1e05a",Python:"#3572a5"};d.claude,d.codex,d.opencode,d.terminal,a.s(["Icons",0,d,"LangDot",0,function({lang:a}){return(0,b.jsx)("span",{className:"inline-block h-2 w-2 flex-none rounded-full",style:{background:e[a]??"#9aa0a6"}})}],97187);var f=a.i(50253);let g=(0,f.createContext)(null);a.s(["HubProvider",0,function({data:a,children:c}){let d=(0,f.useMemo)(()=>({state:a,project:b=>a.projects.find(a=>a.id===b),box:b=>a.boxes.find(a=>a.id===b),boxesFor:b=>a.boxes.filter(a=>a.projectId===b),repo:b=>a.github.repos.find(a=>a.full===b)}),[a]);return(0,b.jsx)(g.Provider,{value:d,children:c})},"useStore",0,function(){let a=(0,f.useContext)(g);if(!a)throw Error("useStore must be used within HubProvider");return a}],80007)},54473,a=>{"use strict";var b=a.i(33552),c=a.i(86834);let d={default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",outline:"text-muted-foreground border-border"};a.s(["Badge",0,function({className:a,variant:e="outline",...f}){return(0,b.jsx)("span",{className:(0,c.cn)("inline-flex items-center gap-1.5 rounded-full border px-2.5 py-[2px] font-mono text-[11px] font-medium tracking-[.01em]",d[e],a),...f})}])},49240,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(50253),e=a.i(51363),f=a.i(86834),g=a.i(97187);function h({className:a,fallback:c,...d}){return(0,b.jsx)("span",{className:(0,f.cn)("grid h-7 w-7 flex-none place-items-center rounded-full bg-primary font-mono text-xs font-semibold text-primary-foreground",a),...d,children:c})}var i=a.i(54473),j=a.i(80007);function k({active:a,to:c,href:d,icon:h,label:j,count:l,ext:m}){let n=(0,f.cn)("flex w-full cursor-pointer items-center gap-2.5 rounded-lg border-0 bg-transparent px-2 py-[7px] text-left text-[13.5px] transition-colors",a?"bg-accent font-medium text-accent-foreground":"text-secondary-foreground hover:bg-secondary hover:text-foreground"),o=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h,{className:(0,f.cn)("size-4 flex-none",a?"text-primary":"text-muted-foreground")}),j,void 0!==l?(0,b.jsx)(i.Badge,{className:(0,f.cn)("ml-auto border-transparent px-2 py-0 text-[11px]",a?"bg-card text-primary":"bg-secondary text-[#a4a9b0]"),children:l}):null,m?(0,b.jsx)(g.Icons.ext,{className:"ml-auto size-[13px] text-[#a4a9b0]"}):null]});return d?(0,b.jsx)("a",{className:n,href:d,target:"_blank",rel:"noopener",children:o}):(0,b.jsx)(e.default,{className:n,href:c??"#",children:o})}function l({children:a}){return(0,b.jsx)("div",{className:"px-2 pb-1.5 pt-4 font-mono text-[10.5px] uppercase tracking-[.1em] text-[#a4a9b0]",children:a})}function m(){let{state:a,boxesFor:d}=(0,j.useStore)(),e=(0,c.usePathname)(),f="/"===e||e.startsWith("/boxes");return(0,b.jsxs)("aside",{className:"shad-side sticky top-0 z-50 flex h-screen flex-col self-start overflow-y-auto border-r border-border bg-background px-3.5 pb-4 pt-4 max-md:w-64",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2.5 px-2 pb-4 font-mono text-sm font-semibold",children:[(0,b.jsx)("img",{src:"/logo.svg",alt:"",width:20,height:20,className:"h-5 w-5"}),"agentbox",(0,b.jsx)("span",{className:"font-normal text-[#a4a9b0]",children:"/ hub"})]}),(0,b.jsx)(l,{children:"Workspace"}),(0,b.jsxs)("nav",{className:"flex flex-col gap-px",children:[(0,b.jsx)(k,{active:f,to:"/",icon:g.Icons.grid,label:"Dashboard",count:a.boxes.length}),(0,b.jsx)(k,{active:e.startsWith("/approvals"),to:"/approvals",icon:g.Icons.shield,label:"Approvals",count:a.approvals.length}),(0,b.jsx)(k,{active:e.startsWith("/settings"),to:"/settings",icon:g.Icons.settings,label:"Settings"}),(0,b.jsx)(k,{href:"https://agent-box.sh/docs",icon:g.Icons.book,label:"Docs",ext:!0}),(0,b.jsx)(k,{href:"/api/v1/docs",icon:g.Icons.terminal,label:"API",ext:!0})]}),(0,b.jsx)(l,{children:"Projects"}),(0,b.jsx)("nav",{className:"flex flex-col gap-px",children:a.projects.map(a=>(0,b.jsx)(k,{active:e==="/projects/"+a.id,to:"/projects/"+a.id,icon:g.Icons.folder,label:a.name,count:d(a.id).length},a.id))}),(0,b.jsx)("div",{className:"mt-auto border-t border-border pt-2.5",children:(0,b.jsxs)("div",{className:"flex items-center gap-2.5 px-1.5 pt-1.5",children:[(0,b.jsx)(h,{fallback:"M"}),(0,b.jsxs)("div",{className:"text-[12.5px] leading-tight",children:[a.user.name,(0,b.jsxs)("span",{className:"block font-mono text-[11px] text-muted-foreground",children:["@",a.user.login]})]})]})})]})}function n(){let a=(0,c.useRouter)();return(0,d.useEffect)(()=>{let b=null,c=()=>{document.hidden||b||(b=setTimeout(()=>{b=null,a.refresh()},250))},d=new EventSource("/api/events");return d.addEventListener("change",c),d.addEventListener("ping",c),()=>{b&&clearTimeout(b),d.close()}},[a]),null}var o=a.i(18071),p=a.i(54250);function q({to:a,children:c,current:d}){return d?(0,b.jsx)("b",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-medium text-secondary-foreground",children:c}):(0,b.jsx)(e.default,{className:"cursor-pointer hover:text-primary",href:a??"#",children:c})}function r(){return(0,b.jsx)("span",{className:"text-border",children:"/"})}function s(){let a=(0,c.usePathname)(),{project:d,box:e}=(0,j.useStore)(),f=[(0,b.jsx)(q,{to:"/",children:"hub"},"h")],g=a.split("/").filter(Boolean);if("projects"===g[0]&&g[1]){let a=d(g[1]);f.push((0,b.jsx)(r,{},"s1"),(0,b.jsx)(q,{current:!0,children:a?a.name:"project"},"p"))}else if("boxes"===g[0]&&g[1]){let a=e(g[1]),c=a?d(a.projectId):void 0;c&&f.push((0,b.jsx)(r,{},"s1"),(0,b.jsx)(q,{to:"/projects/"+c.id,children:c.name},"p")),f.push((0,b.jsx)(r,{},"s2"),(0,b.jsx)(q,{current:!0,children:a?a.id:"box"},"b"))}else"settings"===g[0]?f.push((0,b.jsx)(r,{},"s1"),(0,b.jsx)(q,{current:!0,children:"settings"},"se")):f.push((0,b.jsx)(r,{},"s1"),(0,b.jsx)(q,{current:!0,children:"dashboard"},"d"));return(0,b.jsx)("div",{className:"flex min-w-0 items-center gap-2 font-mono text-[12.5px] text-[#a4a9b0]",children:f})}function t(){let a=(0,c.useRouter)(),{state:d}=(0,j.useStore)();return(0,b.jsxs)("div",{className:"sticky top-0 z-30 flex h-[54px] items-center gap-3 border-b border-border bg-[rgba(246,246,243,.86)] px-6 backdrop-blur-md",children:[(0,b.jsx)(o.Button,{variant:"outline",size:"icon-sm",className:"hidden max-md:inline-flex","aria-label":"Menu",onClick:()=>document.body.classList.toggle("nav-open"),children:(0,b.jsx)(g.Icons.menu,{})}),(0,b.jsx)(s,{}),(0,b.jsx)("span",{className:"flex-1"}),(0,b.jsxs)(o.Button,{variant:"ghost",size:"sm",href:"https://agent-box.sh/docs",target:"_blank",rel:"noopener",children:[(0,b.jsx)(g.Icons.book,{}),"Docs"]}),(0,b.jsxs)(o.Button,{variant:"ghost",size:"sm",href:"/api/v1/docs",target:"_blank",rel:"noopener",children:[(0,b.jsx)(g.Icons.terminal,{}),"API"]}),"password"===d.authMode?(0,b.jsx)(o.Button,{variant:"ghost",size:"sm",onClick:()=>{(0,p.signOut)().then(()=>{a.push("/signin"),a.refresh()})},children:"Sign out"}):null]})}function u({children:a}){let e=(0,c.usePathname)();return(0,d.useEffect)(()=>{document.body.classList.remove("nav-open")},[e]),(0,b.jsxs)("div",{className:"grid min-h-screen grid-cols-[232px_minmax(0,1fr)] max-md:grid-cols-1",children:[(0,b.jsx)("div",{className:"pointer-events-none fixed inset-0 z-40 bg-[rgba(20,24,30,.4)] opacity-0 transition-opacity [body.nav-open_&]:pointer-events-auto [body.nav-open_&]:opacity-100",onClick:()=>document.body.classList.remove("nav-open")}),(0,b.jsx)(m,{}),(0,b.jsxs)("main",{className:"flex min-w-0 flex-col",children:[(0,b.jsx)(t,{}),a]})]})}a.s(["HubShell",0,function({data:a,children:c}){return(0,b.jsxs)(j.HubProvider,{data:a,children:[(0,b.jsx)(n,{}),(0,b.jsx)(u,{children:c})]})}],49240)}];
1
+ module.exports=[97187,80007,a=>{"use strict";var b=a.i(33552);let c=(a,c)=>d=>(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:c?"currentColor":"none",stroke:c?"none":"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",...d,children:a.map((a,c)=>(0,b.jsx)("path",{d:a},c))}),d={grid:c(["M4 4h7v7H4zM13 4h7v7h-7zM13 13h7v7h-7zM4 13h7v7H4z"]),box:c(["M12 20.5 5 17V7l7-3.5L19 7v10Z","m5 7 7 3.5L19 7M12 10.5V20"]),folder:c(["M4 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"]),settings:c(["M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M19.4 15a1.6 1.6 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.6 1.6 0 0 0-2.7 1.1V21a2 2 0 1 1-4 0v-.1A1.6 1.6 0 0 0 7.5 19.4a1.6 1.6 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.6 1.6 0 0 0-1.1-2.7H1a2 2 0 1 1 0-4h.1A1.6 1.6 0 0 0 2.6 7.5a1.6 1.6 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.6 1.6 0 0 0 2.7-1.1V1a2 2 0 1 1 4 0v.1a1.6 1.6 0 0 0 2.7 1.1 1.6 1.6 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.6 1.6 0 0 0 1.1 2.7H21a2 2 0 1 1 0 4h-.1a1.6 1.6 0 0 0-1.5 1Z"]),book:c(["M4 19.5A2.5 2.5 0 0 1 6.5 17H20","M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z"]),branch:c(["M6 3v12","M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M18 9a9 9 0 0 1-9 9"]),plus:c(["M12 5v14M5 12h14"]),pencil:c(["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"]),pause:c(["M9 4H6v16h3zM18 4h-3v16h3z"]),play:c(["M6 4l14 8-14 8Z"]),refresh:c(["M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8","M3 3v5h5","M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16","M21 21v-5h-5"]),stop:c(["M7 7h10v10H7z"]),trash:c(["M3 6h18","M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2","M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"]),chevR:c(["m9 6 6 6-6 6"]),arrowL:c(["M19 12H5","m12 19-7-7 7-7"]),arrowUp:c(["M12 19V5","m5 12 7-7 7 7"]),ext:c(["M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6","M15 3h6v6","M10 14 21 3"]),copy:c(["M9 9h11a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2Z","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"]),x:c(["M18 6 6 18M6 6l12 12"]),check:c(["M20 6 9 17l-5-5"]),clock:c(["M12 7v5l3 2","M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z"]),server:c(["M3 4h18v6H3zM3 14h18v6H3z","M7 7h.01M7 17h.01"]),host:c(["M5 4h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z","M5 14h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2Z","M7 7h.01M7 17h.01"]),repo:c(["M4 19.5A2.5 2.5 0 0 1 6.5 17H20","M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z"]),search:c(["M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z","m20 20-3.5-3.5"]),menu:c(["M4 7h16M4 12h16M4 17h16"]),terminal:c(["m6 9 3 3-3 3","M13 15h5","M4 4h16v16H4z"]),warn:c(["M10.3 4.3 2.5 18a1.8 1.8 0 0 0 1.6 2.7h15.8A1.8 1.8 0 0 0 21.5 18L13.7 4.3a1.8 1.8 0 0 0-3.1 0Z","M12 9v4M12 17h.01"]),activity:c(["M22 12h-4l-3 9L9 3l-3 9H2"]),commit:c(["M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M3 12h6M15 12h6"]),file:c(["M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z","M14 2v6h6"]),shield:c(["M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"]),claude:c(["M12 3v18M3 12h18M5.5 5.5l13 13M18.5 5.5l-13 13"]),codex:a=>(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",...a,children:(0,b.jsx)("path",{d:"M12 2.6 3.2 7v10l8.8 4.4L20.8 17V7L12 2.6Zm0 3.1a6.3 6.3 0 1 1 0 12.6 6.3 6.3 0 0 1 0-12.6Zm0 2.4a3.9 3.9 0 1 0 0 7.8 3.9 3.9 0 0 0 0-7.8Z"})}),opencode:c(["M9 8l-4 4 4 4","M15 8l4 4-4 4","M13 6l-2 12"]),github:a=>(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",...a,children:(0,b.jsx)("path",{d:"M12 1.5A10.5 10.5 0 0 0 8.7 22c.5.1.7-.2.7-.5v-1.8c-2.9.6-3.5-1.4-3.5-1.4-.5-1.2-1.2-1.5-1.2-1.5-.9-.6.1-.6.1-.6 1 .1 1.6 1 1.6 1 .9 1.6 2.4 1.1 3 .9.1-.7.4-1.1.6-1.4-2.3-.3-4.7-1.2-4.7-5.1 0-1.1.4-2 1-2.7-.1-.3-.5-1.4.1-2.8 0 0 .9-.3 2.8 1a9.6 9.6 0 0 1 5 0c1.9-1.3 2.8-1 2.8-1 .6 1.4.2 2.5.1 2.8.7.7 1 1.6 1 2.7 0 3.9-2.4 4.8-4.6 5 .4.3.7.9.7 1.9v2.8c0 .3.2.6.7.5A10.5 10.5 0 0 0 12 1.5Z"})})},e={TypeScript:"#3178c6",Go:"#00add8",Astro:"#ff5d01",MDX:"#f9a03c",JavaScript:"#f1e05a",Python:"#3572a5"};d.claude,d.codex,d.opencode,d.terminal,a.s(["Icons",0,d,"LangDot",0,function({lang:a}){return(0,b.jsx)("span",{className:"inline-block h-2 w-2 flex-none rounded-full",style:{background:e[a]??"#9aa0a6"}})}],97187);var f=a.i(50253);let g=(0,f.createContext)(null);a.s(["HubProvider",0,function({data:a,children:c}){let d=(0,f.useMemo)(()=>({state:a,project:b=>a.projects.find(a=>a.id===b),box:b=>a.boxes.find(a=>a.id===b),boxesFor:b=>a.boxes.filter(a=>a.projectId===b),repo:b=>a.github.repos.find(a=>a.full===b)}),[a]);return(0,b.jsx)(g.Provider,{value:d,children:c})},"useStore",0,function(){let a=(0,f.useContext)(g);if(!a)throw Error("useStore must be used within HubProvider");return a}],80007)},54473,a=>{"use strict";var b=a.i(33552),c=a.i(86834);let d={default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",outline:"text-muted-foreground border-border"};a.s(["Badge",0,function({className:a,variant:e="outline",...f}){return(0,b.jsx)("span",{className:(0,c.cn)("inline-flex items-center gap-1.5 rounded-full border px-2.5 py-[2px] font-mono text-[11px] font-medium tracking-[.01em]",d[e],a),...f})}])},49240,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(50253),e=a.i(51363),f=a.i(86834),g=a.i(97187);function h({className:a,fallback:c,...d}){return(0,b.jsx)("span",{className:(0,f.cn)("grid h-7 w-7 flex-none place-items-center rounded-full bg-primary font-mono text-xs font-semibold text-primary-foreground",a),...d,children:c})}var i=a.i(54473),j=a.i(80007);function k({active:a,to:c,href:d,icon:h,label:j,count:l,ext:m}){let n=(0,f.cn)("flex w-full cursor-pointer items-center gap-2.5 rounded-lg border-0 bg-transparent px-2 py-[7px] text-left text-[13.5px] transition-colors",a?"bg-accent font-medium text-accent-foreground":"text-secondary-foreground hover:bg-secondary hover:text-foreground"),o=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h,{className:(0,f.cn)("size-4 flex-none",a?"text-primary":"text-muted-foreground")}),j,void 0!==l?(0,b.jsx)(i.Badge,{className:(0,f.cn)("ml-auto border-transparent px-2 py-0 text-[11px]",a?"bg-card text-primary":"bg-secondary text-[#a4a9b0]"),children:l}):null,m?(0,b.jsx)(g.Icons.ext,{className:"ml-auto size-[13px] text-[#a4a9b0]"}):null]});return d?(0,b.jsx)("a",{className:n,href:d,target:"_blank",rel:"noopener",children:o}):(0,b.jsx)(e.default,{className:n,href:c??"#",children:o})}function l({children:a}){return(0,b.jsx)("div",{className:"px-2 pb-1.5 pt-4 font-mono text-[10.5px] uppercase tracking-[.1em] text-[#a4a9b0]",children:a})}function m(){let{state:a,boxesFor:d}=(0,j.useStore)(),e=(0,c.usePathname)(),f="/"===e||e.startsWith("/boxes");return(0,b.jsxs)("aside",{className:"shad-side sticky top-0 z-50 flex h-screen flex-col self-start overflow-y-auto border-r border-border bg-background px-3.5 pb-4 pt-4 max-md:w-64",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2.5 px-2 pb-4 font-mono text-sm font-semibold",children:[(0,b.jsx)("img",{src:"/logo.svg",alt:"",width:20,height:20,className:"h-5 w-5"}),"agentbox",(0,b.jsx)("span",{className:"font-normal text-[#a4a9b0]",children:"/ hub"})]}),(0,b.jsx)(l,{children:"Workspace"}),(0,b.jsxs)("nav",{className:"flex flex-col gap-px",children:[(0,b.jsx)(k,{active:f,to:"/",icon:g.Icons.grid,label:"Dashboard",count:a.boxes.length}),(0,b.jsx)(k,{active:e.startsWith("/approvals"),to:"/approvals",icon:g.Icons.shield,label:"Approvals",count:a.approvals.length}),(0,b.jsx)(k,{active:e.startsWith("/settings"),to:"/settings",icon:g.Icons.settings,label:"Settings"}),(0,b.jsx)(k,{href:"https://agent-box.sh/docs",icon:g.Icons.book,label:"Docs",ext:!0}),(0,b.jsx)(k,{href:"/api/v1/docs",icon:g.Icons.terminal,label:"API",ext:!0})]}),(0,b.jsx)(l,{children:"Projects"}),(0,b.jsx)("nav",{className:"flex flex-col gap-px",children:a.projects.map(a=>(0,b.jsx)(k,{active:e==="/projects/"+a.id,to:"/projects/"+a.id,icon:g.Icons.folder,label:a.name,count:d(a.id).length},a.id))}),(0,b.jsx)("div",{className:"mt-auto border-t border-border pt-2.5",children:(0,b.jsxs)("div",{className:"flex items-center gap-2.5 px-1.5 pt-1.5",children:[(0,b.jsx)(h,{fallback:"M"}),(0,b.jsxs)("div",{className:"text-[12.5px] leading-tight",children:[a.user.name,(0,b.jsxs)("span",{className:"block font-mono text-[11px] text-muted-foreground",children:["@",a.user.login]})]})]})})]})}function n(){let a=(0,c.useRouter)();return(0,d.useEffect)(()=>{let b=null,c=()=>{document.hidden||b||(b=setTimeout(()=>{b=null,a.refresh()},250))},d=new EventSource("/api/events");return d.addEventListener("change",c),d.addEventListener("ping",c),()=>{b&&clearTimeout(b),d.close()}},[a]),null}var o=a.i(18071),p=a.i(54250);function q({to:a,children:c,current:d}){return d?(0,b.jsx)("b",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-medium text-secondary-foreground",children:c}):(0,b.jsx)(e.default,{className:"cursor-pointer hover:text-primary",href:a??"#",children:c})}function r(){return(0,b.jsx)("span",{className:"text-border",children:"/"})}function s(){let a=(0,c.usePathname)(),{project:d,box:e}=(0,j.useStore)(),f=[(0,b.jsx)(q,{to:"/",children:"hub"},"h")],g=a.split("/").filter(Boolean);if("projects"===g[0]&&g[1]){let a=d(g[1]);f.push((0,b.jsx)(r,{},"s1"),(0,b.jsx)(q,{current:!0,children:a?a.name:"project"},"p"))}else if("boxes"===g[0]&&g[1]){let a=e(g[1]),c=a?d(a.projectId):void 0;c&&f.push((0,b.jsx)(r,{},"s1"),(0,b.jsx)(q,{to:"/projects/"+c.id,children:c.name},"p")),f.push((0,b.jsx)(r,{},"s2"),(0,b.jsx)(q,{current:!0,children:a?a.id:"box"},"b"))}else"settings"===g[0]?f.push((0,b.jsx)(r,{},"s1"),(0,b.jsx)(q,{current:!0,children:"settings"},"se")):f.push((0,b.jsx)(r,{},"s1"),(0,b.jsx)(q,{current:!0,children:"dashboard"},"d"));return(0,b.jsx)("div",{className:"flex min-w-0 items-center gap-2 font-mono text-[12.5px] text-[#a4a9b0]",children:f})}function t(){let a=(0,c.useRouter)(),{state:d}=(0,j.useStore)();return(0,b.jsxs)("div",{className:"sticky top-0 z-30 flex h-[54px] items-center gap-3 border-b border-border bg-[rgba(246,246,243,.86)] px-6 backdrop-blur-md",children:[(0,b.jsx)(o.Button,{variant:"outline",size:"icon-sm",className:"hidden max-md:inline-flex","aria-label":"Menu",onClick:()=>document.body.classList.toggle("nav-open"),children:(0,b.jsx)(g.Icons.menu,{})}),(0,b.jsx)(s,{}),(0,b.jsx)("span",{className:"flex-1"}),(0,b.jsxs)(o.Button,{variant:"ghost",size:"sm",href:"https://agent-box.sh/docs",target:"_blank",rel:"noopener",children:[(0,b.jsx)(g.Icons.book,{}),"Docs"]}),(0,b.jsxs)(o.Button,{variant:"ghost",size:"sm",href:"/api/v1/docs",target:"_blank",rel:"noopener",children:[(0,b.jsx)(g.Icons.terminal,{}),"API"]}),"password"===d.authMode?(0,b.jsx)(o.Button,{variant:"ghost",size:"sm",onClick:()=>{(0,p.signOut)().then(()=>{a.push("/signin"),a.refresh()})},children:"Sign out"}):null]})}function u({children:a}){let e=(0,c.usePathname)();return(0,d.useEffect)(()=>{document.body.classList.remove("nav-open")},[e]),(0,b.jsxs)("div",{className:"grid min-h-screen grid-cols-[232px_minmax(0,1fr)] max-md:grid-cols-1",children:[(0,b.jsx)("div",{className:"pointer-events-none fixed inset-0 z-40 bg-[rgba(20,24,30,.4)] opacity-0 transition-opacity [body.nav-open_&]:pointer-events-auto [body.nav-open_&]:opacity-100",onClick:()=>document.body.classList.remove("nav-open")}),(0,b.jsx)(m,{}),(0,b.jsxs)("main",{className:"flex min-w-0 flex-col",children:[(0,b.jsx)(t,{}),a]})]})}a.s(["HubShell",0,function({data:a,children:c}){return(0,b.jsxs)(j.HubProvider,{data:a,children:[(0,b.jsx)(n,{}),(0,b.jsx)(u,{children:c})]})}],49240)}];
2
2
 
3
3
  //# sourceMappingURL=apps_hub_components_1z1p98f._.js.map
@@ -22,6 +22,7 @@
22
22
  "/api/v1/boxes/[id]/branches": {},
23
23
  "/api/v1/boxes/[id]/git": {},
24
24
  "/api/v1/boxes/[id]/git/[op]": {},
25
+ "/api/v1/boxes/[id]/rename": {},
25
26
  "/api/v1/boxes/[id]/services": {},
26
27
  "/api/v1/boxes/[id]/services/restart": {},
27
28
  "/api/v1/docs": {},
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
7
7
  "static/chunks/0cz1d0mv5g_q7.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/TpPTWVdZDxqrPlONtJcR5/_buildManifest.js",
11
- "static/TpPTWVdZDxqrPlONtJcR5/_ssgManifest.js",
12
- "static/TpPTWVdZDxqrPlONtJcR5/_clientMiddlewareManifest.js"
10
+ "static/zT1paOSXMJpAPsZ1dFK2V/_buildManifest.js",
11
+ "static/zT1paOSXMJpAPsZ1dFK2V/_ssgManifest.js",
12
+ "static/zT1paOSXMJpAPsZ1dFK2V/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/1y49eldffr2-_.js",
@@ -1 +1 @@
1
- <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1y49eldffr2-_.js"/><script src="/_next/static/chunks/2w65a9zig6ya7.js" async=""></script><script src="/_next/static/chunks/3x8k7so-uoat8.js" async=""></script><script src="/_next/static/chunks/0ptag81psa0nj.js" async=""></script><script src="/_next/static/chunks/turbopack-2x4_cva4cco3h.js" async=""></script><script src="/_next/static/chunks/2x7nfpuaaba_a.js" async=""></script><script src="/_next/static/chunks/3c49t4evjq8hf.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/1y49eldffr2-_.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[20699,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\"]\n3:I[92242,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\"]\n4:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"ViewportBoundary\"]\na:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"MetadataBoundary\"]\nc:I[17506,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"TpPTWVdZDxqrPlONtJcR5\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[]\n"])</script></body></html>
1
+ <!DOCTYPE html><html id="__next_error__"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/1y49eldffr2-_.js"/><script src="/_next/static/chunks/2w65a9zig6ya7.js" async=""></script><script src="/_next/static/chunks/3x8k7so-uoat8.js" async=""></script><script src="/_next/static/chunks/0ptag81psa0nj.js" async=""></script><script src="/_next/static/chunks/turbopack-2x4_cva4cco3h.js" async=""></script><script src="/_next/static/chunks/2x7nfpuaaba_a.js" async=""></script><script src="/_next/static/chunks/3c49t4evjq8hf.js" async=""></script><meta name="next-size-adjust" content=""/><title>500: This page couldn’t load</title><style>:root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }</style><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body><div hidden=""><!--$--><!--/$--></div><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;display:flex;align-items:center;justify-content:center"><div style="margin-top:-32px;max-width:325px;padding:32px 28px;text-align:left"><svg width="32" height="32" viewBox="-0.2 -1.5 32 32" fill="none" style="margin-bottom:24px"><path d="M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z" fill="var(--next-error-title)"></path></svg><h1 style="font-size:24px;font-weight:500;letter-spacing:-0.02em;line-height:32px;margin:0 0 12px 0;color:var(--next-error-title)">This page couldn’t load</h1><p style="font-size:14px;font-weight:400;line-height:21px;margin:0 0 20px 0;color:var(--next-error-message)">A server error occurred. Reload to try again.</p><form style="margin:0"><button type="submit" style="display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;font-size:14px;font-weight:500;line-height:20px;border-radius:6px;cursor:pointer;color:var(--next-error-btn-text);background:var(--next-error-btn-bg);border:var(--next-error-btn-border)">Reload</button></form></div></div><!--$--><!--/$--><script src="/_next/static/chunks/1y49eldffr2-_.js" id="_R_" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:I[20699,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\"]\n3:I[92242,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\"]\n4:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"OutletBoundary\"]\n5:\"$Sreact.suspense\"\n8:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"ViewportBoundary\"]\na:I[43645,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"MetadataBoundary\"]\nc:I[17506,[\"/_next/static/chunks/2x7nfpuaaba_a.js\",\"/_next/static/chunks/3c49t4evjq8hf.js\"],\"default\",1]\n"])</script><script>self.__next_f.push([1,"0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"f\":[[[\"\",{\"children\":[\"__PAGE__\",{}]}],[[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L2\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L3\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],{\"children\":[[\"$\",\"$1\",\"c\",{\"children\":[[\"$\",\"html\",null,{\"id\":\"__next_error__\",\"children\":[[\"$\",\"head\",null,{\"children\":[[\"$\",\"title\",null,{\"children\":\"500: This page couldn’t load\"}],[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\":root {--next-error-bg: #fff;--next-error-text: #171717;--next-error-title: #171717;--next-error-message: #171717;--next-error-digest: #666666;--next-error-btn-text: #fff;--next-error-btn-bg: #171717;--next-error-btn-border: none;--next-error-btn-secondary-text: #171717;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08);}@media (prefers-color-scheme: dark) {:root {--next-error-bg: #0a0a0a;--next-error-text: #ededed;--next-error-title: #ededed;--next-error-message: #ededed;--next-error-digest: #a0a0a0;--next-error-btn-text: #0a0a0a;--next-error-btn-bg: #ededed;--next-error-btn-border: none;--next-error-btn-secondary-text: #ededed;--next-error-btn-secondary-bg: transparent;--next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14);}}body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); }\"}}]]}],[\"$\",\"body\",null,{\"children\":[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"display\":\"flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"style\":{\"marginTop\":\"-32px\",\"maxWidth\":\"325px\",\"padding\":\"32px 28px\",\"textAlign\":\"left\"},\"children\":[[\"$\",\"svg\",null,{\"width\":\"32\",\"height\":\"32\",\"viewBox\":\"-0.2 -1.5 32 32\",\"fill\":\"none\",\"style\":{\"marginBottom\":\"24px\"},\"children\":[\"$\",\"path\",null,{\"d\":\"M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z\",\"fill\":\"var(--next-error-title)\"}]}],[\"$\",\"h1\",null,{\"style\":{\"fontSize\":\"24px\",\"fontWeight\":500,\"letterSpacing\":\"-0.02em\",\"lineHeight\":\"32px\",\"margin\":\"0 0 12px 0\",\"color\":\"var(--next-error-title)\"},\"children\":\"This page couldn’t load\"}],[\"$\",\"p\",null,{\"style\":{\"fontSize\":\"14px\",\"fontWeight\":400,\"lineHeight\":\"21px\",\"margin\":\"0 0 20px 0\",\"color\":\"var(--next-error-message)\"},\"children\":\"A server error occurred. Reload to try again.\"}],[\"$\",\"form\",null,{\"style\":{\"margin\":0},\"children\":[\"$\",\"button\",null,{\"type\":\"submit\",\"style\":{\"display\":\"inline-flex\",\"alignItems\":\"center\",\"justifyContent\":\"center\",\"height\":\"32px\",\"padding\":\"0 12px\",\"fontSize\":\"14px\",\"fontWeight\":500,\"lineHeight\":\"20px\",\"borderRadius\":\"6px\",\"cursor\":\"pointer\",\"color\":\"var(--next-error-btn-text)\",\"background\":\"var(--next-error-btn-bg)\",\"border\":\"var(--next-error-btn-border)\"},\"children\":\"Reload\"}]}]]}]}]}]]}],null,[\"$\",\"$L4\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@6\"}]}]]}],{},null,false,null]},null,false,\"$@7\"],[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$L8\",null,{\"children\":\"$L9\"}],[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$La\",null,{\"children\":[\"$\",\"$5\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lb\"}]}]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],false]],\"m\":\"$undefined\",\"G\":[\"$c\",[]],\"S\":true,\"h\":null,\"s\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"zT1paOSXMJpAPsZ1dFK2V\"}\n"])</script><script>self.__next_f.push([1,"d:[]\n7:\"$Wd\"\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n"])</script><script>self.__next_f.push([1,"6:null\nb:[]\n"])</script></body></html>
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {\n \"60ff5520393ac26282f15f58e0b073a0c45b3ba7e5\": {\n \"workers\": {\n \"app/(dashboard)/approvals/page\": {\n \"moduleId\": 1720,\n \"async\": false,\n \"exportedName\": \"answerApprovalAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"answerApprovalAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"answerApprovalAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"answerApprovalAction\"\n },\n \"4087bb6da1f4834ca146bcc8cb7c69295dbeda0bdc\": {\n \"workers\": {\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"addProjectAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"addProjectAction\"\n },\n \"40942714d29a270a6816a39cd419b4f09f50fc19b1\": {\n \"workers\": {\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"browseDirAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"browseDirAction\"\n },\n \"40f10bede8a5e7505d5875574f7e6fc4a06e8e2cb7\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"destroyBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"destroyBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"destroyBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"destroyBoxAction\"\n },\n \"40ea16199b5abb2d3c1d4cecdd25aac1e3c41f074c\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"pauseBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"pauseBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"pauseBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"pauseBoxAction\"\n },\n \"4071308a0e1675de302803bb969800c52d79f11e13\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"resumeBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"resumeBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"resumeBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"resumeBoxAction\"\n },\n \"40e545c7dd69b4a1d410deb9c94101099961d3af7a\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"stopBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"stopBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"stopBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"stopBoxAction\"\n },\n \"4070192706087364b8c7d220576a6f3e4d3e5c532b\": {\n \"workers\": {\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"createBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"createBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"createBoxAction\"\n },\n \"40386bdce4d894a318a969412fa1299d2704ccdfb3\": {\n \"workers\": {\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"listBranchesAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"listBranchesAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"listBranchesAction\"\n },\n \"40c7856bd78dddab224344045df78d51620e411335\": {\n \"workers\": {\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"removeProjectAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"removeProjectAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"removeProjectAction\"\n },\n \"70fd109611adee18e2a11d04af4332c29e796848e9\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"gitBranchAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"gitBranchAction\"\n },\n \"600e7ece96e4038f118842cef0ebcf51dadf743c9b\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"gitCheckoutAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"gitCheckoutAction\"\n },\n \"605f4904ee0814a4a51c0445aa18e7dfbde590c7e5\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"gitPullAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"gitPullAction\"\n },\n \"60675b1179af1a57b7c4bb6e4d893805dd8f7b0b66\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"gitPushAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"gitPushAction\"\n },\n \"607692631dd5973ad6071d94f3fee9c7da56a766db\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"gitPushHostAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"gitPushHostAction\"\n },\n \"6096ff4dd5616157cf1da6a977c271641a3ddce491\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"restartServiceAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"restartServiceAction\"\n }\n },\n \"edge\": {},\n \"encryptionKey\": \"l/jVp5ofrn54w5VblHtNOWoHvpxpGPH7zAJomYO9pQ0=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {\n \"60ff5520393ac26282f15f58e0b073a0c45b3ba7e5\": {\n \"workers\": {\n \"app/(dashboard)/approvals/page\": {\n \"moduleId\": 1720,\n \"async\": false,\n \"exportedName\": \"answerApprovalAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"answerApprovalAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"answerApprovalAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"answerApprovalAction\"\n },\n \"4087bb6da1f4834ca146bcc8cb7c69295dbeda0bdc\": {\n \"workers\": {\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"addProjectAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"addProjectAction\"\n },\n \"40942714d29a270a6816a39cd419b4f09f50fc19b1\": {\n \"workers\": {\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"browseDirAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"browseDirAction\"\n },\n \"40f10bede8a5e7505d5875574f7e6fc4a06e8e2cb7\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"destroyBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"destroyBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"destroyBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"destroyBoxAction\"\n },\n \"40ea16199b5abb2d3c1d4cecdd25aac1e3c41f074c\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"pauseBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"pauseBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"pauseBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"pauseBoxAction\"\n },\n \"6096bb2a65e369cd77e8b1dc6cd900a5f1e67287bb\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"renameBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"renameBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"renameBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"renameBoxAction\"\n },\n \"4071308a0e1675de302803bb969800c52d79f11e13\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"resumeBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"resumeBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"resumeBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"resumeBoxAction\"\n },\n \"40e545c7dd69b4a1d410deb9c94101099961d3af7a\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"stopBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"stopBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"stopBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"stopBoxAction\"\n },\n \"4070192706087364b8c7d220576a6f3e4d3e5c532b\": {\n \"workers\": {\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"createBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"createBoxAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"createBoxAction\"\n },\n \"40386bdce4d894a318a969412fa1299d2704ccdfb3\": {\n \"workers\": {\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"listBranchesAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"listBranchesAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"listBranchesAction\"\n },\n \"40c7856bd78dddab224344045df78d51620e411335\": {\n \"workers\": {\n \"app/(dashboard)/page\": {\n \"moduleId\": 12901,\n \"async\": false,\n \"exportedName\": \"removeProjectAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n },\n \"app/(dashboard)/projects/[id]/page\": {\n \"moduleId\": 93786,\n \"async\": false,\n \"exportedName\": \"removeProjectAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"removeProjectAction\"\n },\n \"70fd109611adee18e2a11d04af4332c29e796848e9\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"gitBranchAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"gitBranchAction\"\n },\n \"600e7ece96e4038f118842cef0ebcf51dadf743c9b\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"gitCheckoutAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"gitCheckoutAction\"\n },\n \"605f4904ee0814a4a51c0445aa18e7dfbde590c7e5\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"gitPullAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"gitPullAction\"\n },\n \"60675b1179af1a57b7c4bb6e4d893805dd8f7b0b66\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"gitPushAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"gitPushAction\"\n },\n \"607692631dd5973ad6071d94f3fee9c7da56a766db\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"gitPushHostAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"gitPushHostAction\"\n },\n \"6096ff4dd5616157cf1da6a977c271641a3ddce491\": {\n \"workers\": {\n \"app/(dashboard)/boxes/[id]/page\": {\n \"moduleId\": 73968,\n \"async\": false,\n \"exportedName\": \"restartServiceAction\",\n \"filename\": \"apps/hub/lib/boxes/actions.ts\"\n }\n },\n \"filename\": \"apps/hub/lib/boxes/actions.ts\",\n \"exportedName\": \"restartServiceAction\"\n }\n },\n \"edge\": {},\n \"encryptionKey\": \"l/jVp5ofrn54w5VblHtNOWoHvpxpGPH7zAJomYO9pQ0=\"\n}"
@@ -96,6 +96,30 @@
96
96
  "filename": "apps/hub/lib/boxes/actions.ts",
97
97
  "exportedName": "pauseBoxAction"
98
98
  },
99
+ "6096bb2a65e369cd77e8b1dc6cd900a5f1e67287bb": {
100
+ "workers": {
101
+ "app/(dashboard)/boxes/[id]/page": {
102
+ "moduleId": 73968,
103
+ "async": false,
104
+ "exportedName": "renameBoxAction",
105
+ "filename": "apps/hub/lib/boxes/actions.ts"
106
+ },
107
+ "app/(dashboard)/page": {
108
+ "moduleId": 12901,
109
+ "async": false,
110
+ "exportedName": "renameBoxAction",
111
+ "filename": "apps/hub/lib/boxes/actions.ts"
112
+ },
113
+ "app/(dashboard)/projects/[id]/page": {
114
+ "moduleId": 93786,
115
+ "async": false,
116
+ "exportedName": "renameBoxAction",
117
+ "filename": "apps/hub/lib/boxes/actions.ts"
118
+ }
119
+ },
120
+ "filename": "apps/hub/lib/boxes/actions.ts",
121
+ "exportedName": "renameBoxAction"
122
+ },
99
123
  "4071308a0e1675de302803bb969800c52d79f11e13": {
100
124
  "workers": {
101
125
  "app/(dashboard)/boxes/[id]/page": {
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,44344,96621,e=>{"use strict";var t=e.i(1262);let r=(e,r)=>n=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:r?"currentColor":"none",stroke:r?"none":"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",...n,children:e.map((e,r)=>(0,t.jsx)("path",{d:e},r))}),n={grid:r(["M4 4h7v7H4zM13 4h7v7h-7zM13 13h7v7h-7zM4 13h7v7H4z"]),box:r(["M12 20.5 5 17V7l7-3.5L19 7v10Z","m5 7 7 3.5L19 7M12 10.5V20"]),folder:r(["M4 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"]),settings:r(["M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M19.4 15a1.6 1.6 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.6 1.6 0 0 0-2.7 1.1V21a2 2 0 1 1-4 0v-.1A1.6 1.6 0 0 0 7.5 19.4a1.6 1.6 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.6 1.6 0 0 0-1.1-2.7H1a2 2 0 1 1 0-4h.1A1.6 1.6 0 0 0 2.6 7.5a1.6 1.6 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.6 1.6 0 0 0 2.7-1.1V1a2 2 0 1 1 4 0v.1a1.6 1.6 0 0 0 2.7 1.1 1.6 1.6 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.6 1.6 0 0 0 1.1 2.7H21a2 2 0 1 1 0 4h-.1a1.6 1.6 0 0 0-1.5 1Z"]),book:r(["M4 19.5A2.5 2.5 0 0 1 6.5 17H20","M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z"]),branch:r(["M6 3v12","M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M18 9a9 9 0 0 1-9 9"]),plus:r(["M12 5v14M5 12h14"]),pencil:r(["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"]),pause:r(["M9 4H6v16h3zM18 4h-3v16h3z"]),play:r(["M6 4l14 8-14 8Z"]),refresh:r(["M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8","M3 3v5h5","M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16","M21 21v-5h-5"]),stop:r(["M7 7h10v10H7z"]),trash:r(["M3 6h18","M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2","M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"]),chevR:r(["m9 6 6 6-6 6"]),arrowL:r(["M19 12H5","m12 19-7-7 7-7"]),arrowUp:r(["M12 19V5","m5 12 7-7 7 7"]),ext:r(["M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6","M15 3h6v6","M10 14 21 3"]),copy:r(["M9 9h11a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2Z","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"]),x:r(["M18 6 6 18M6 6l12 12"]),check:r(["M20 6 9 17l-5-5"]),clock:r(["M12 7v5l3 2","M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z"]),server:r(["M3 4h18v6H3zM3 14h18v6H3z","M7 7h.01M7 17h.01"]),host:r(["M5 4h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z","M5 14h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2Z","M7 7h.01M7 17h.01"]),repo:r(["M4 19.5A2.5 2.5 0 0 1 6.5 17H20","M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z"]),search:r(["M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z","m20 20-3.5-3.5"]),menu:r(["M4 7h16M4 12h16M4 17h16"]),terminal:r(["m6 9 3 3-3 3","M13 15h5","M4 4h16v16H4z"]),warn:r(["M10.3 4.3 2.5 18a1.8 1.8 0 0 0 1.6 2.7h15.8A1.8 1.8 0 0 0 21.5 18L13.7 4.3a1.8 1.8 0 0 0-3.1 0Z","M12 9v4M12 17h.01"]),activity:r(["M22 12h-4l-3 9L9 3l-3 9H2"]),commit:r(["M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M3 12h6M15 12h6"]),file:r(["M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z","M14 2v6h6"]),shield:r(["M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"]),claude:r(["M12 3v18M3 12h18M5.5 5.5l13 13M18.5 5.5l-13 13"]),codex:e=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("path",{d:"M12 2.6 3.2 7v10l8.8 4.4L20.8 17V7L12 2.6Zm0 3.1a6.3 6.3 0 1 1 0 12.6 6.3 6.3 0 0 1 0-12.6Zm0 2.4a3.9 3.9 0 1 0 0 7.8 3.9 3.9 0 0 0 0-7.8Z"})}),opencode:r(["M9 8l-4 4 4 4","M15 8l4 4-4 4","M13 6l-2 12"]),github:e=>(0,t.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,t.jsx)("path",{d:"M12 1.5A10.5 10.5 0 0 0 8.7 22c.5.1.7-.2.7-.5v-1.8c-2.9.6-3.5-1.4-3.5-1.4-.5-1.2-1.2-1.5-1.2-1.5-.9-.6.1-.6.1-.6 1 .1 1.6 1 1.6 1 .9 1.6 2.4 1.1 3 .9.1-.7.4-1.1.6-1.4-2.3-.3-4.7-1.2-4.7-5.1 0-1.1.4-2 1-2.7-.1-.3-.5-1.4.1-2.8 0 0 .9-.3 2.8 1a9.6 9.6 0 0 1 5 0c1.9-1.3 2.8-1 2.8-1 .6 1.4.2 2.5.1 2.8.7.7 1 1.6 1 2.7 0 3.9-2.4 4.8-4.6 5 .4.3.7.9.7 1.9v2.8c0 .3.2.6.7.5A10.5 10.5 0 0 0 12 1.5Z"})})},o={TypeScript:"#3178c6",Go:"#00add8",Astro:"#ff5d01",MDX:"#f9a03c",JavaScript:"#f1e05a",Python:"#3572a5"};n.claude,n.codex,n.opencode,n.terminal,e.s(["Icons",0,n,"LangDot",0,function({lang:e}){return(0,t.jsx)("span",{className:"inline-block h-2 w-2 flex-none rounded-full",style:{background:o[e]??"#9aa0a6"}})}],44344);var a=e.i(54129);let s=(0,a.createContext)(null);e.s(["HubProvider",0,function({data:e,children:r}){let n=(0,a.useMemo)(()=>({state:e,project:t=>e.projects.find(e=>e.id===t),box:t=>e.boxes.find(e=>e.id===t),boxesFor:t=>e.boxes.filter(e=>e.projectId===t),repo:t=>e.github.repos.find(e=>e.full===t)}),[e]);return(0,t.jsx)(s.Provider,{value:n,children:r})},"useStore",0,function(){let e=(0,a.useContext)(s);if(!e)throw Error("useStore must be used within HubProvider");return e}],96621)},64595,e=>{"use strict";var t=e.i(1262),r=e.i(65232);let n={default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",outline:"text-muted-foreground border-border"};e.s(["Badge",0,function({className:e,variant:o="outline",...a}){return(0,t.jsx)("span",{className:(0,r.cn)("inline-flex items-center gap-1.5 rounded-full border px-2.5 py-[2px] font-mono text-[11px] font-medium tracking-[.01em]",n[o],e),...a})}])},80314,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return i}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(44066)._(e.r(39394)),s=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",o=e.pathname||"",l=e.hash||"",i=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),i&&"object"==typeof i&&(i=String(a.urlQueryToSearchParams(i)));let u=e.search||i&&`?${i}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==c?(c="//"+(c||""),o&&"/"!==o[0]&&(o="/"+o)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),o=o.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${o}${u}${l}`}let i=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},82024,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return o}});let n=e.r(54129);function o(e,t){let r=(0,n.useRef)(null),o=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=o.current;t&&(o.current=null,t())}else e&&(r.current=a(e,n)),t&&(o.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},15275,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(84842),o=e.r(1857);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,o.hasBasePath)(r.pathname)}catch(e){return!1}}},31196,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},51096,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return g}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let a=e.r(44066),s=e.r(1262),l=a._(e.r(54129)),i=e.r(80314),c=e.r(69106),u=e.r(82024),d=e.r(84842),h=e.r(12625);e.r(14587);let p=e.r(68705),f=e.r(73316),x=e.r(15275),m=e.r(15874);function v(t){var r,n;let o,a,v,[g,j]=(0,l.useOptimistic)(f.IDLE_LINK_STATUS),M=(0,l.useRef)(null),{href:y,as:k,children:N,prefetch:P=null,passHref:_,replace:L,shallow:S,scroll:w,onClick:C,onMouseEnter:H,onTouchStart:A,legacyBehavior:I=!1,onNavigate:O,transitionTypes:T,ref:Z,unstable_dynamicOnHover:R,...z}=t;o=N,I&&("string"==typeof o||"number"==typeof o)&&(o=(0,s.jsx)("a",{children:o}));let E=l.default.useContext(c.AppRouterContext),B=!1!==P,U=!1!==P?null===(n=P)||"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,V="string"==typeof(r=k||y)?r:(0,i.formatUrl)(r);if(I){if(o?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=l.default.Children.only(o)}let D=I?a&&"object"==typeof a&&a.ref:Z,K=l.default.useCallback(e=>(null!==E&&(M.current=(0,f.mountLinkInstance)(e,V,E,U,B,j)),()=>{M.current&&((0,f.unmountLinkForCurrentNavigation)(M.current),M.current=null),(0,f.unmountPrefetchableInstance)(e)}),[B,V,E,U,j]),$={ref:(0,u.useMergedRef)(K,D),onClick(t){I||"function"!=typeof C||C(t),I&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!E||t.defaultPrevented||function(t,r,n,o,a,s,i){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,x.isLocalURL)(r)){o&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),s){let e=!1;if(s({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(8898);l.default.startTransition(()=>{d(r,o?"replace":"push",!1===a?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,i)})}}(t,V,M,L,w,O,T)},onMouseEnter(e){I||"function"!=typeof H||H(e),I&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),E&&B&&(0,f.onNavigationIntent)(e.currentTarget,!0===R)},onTouchStart:function(e){I||"function"!=typeof A||A(e),I&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),E&&B&&(0,f.onNavigationIntent)(e.currentTarget,!0===R)}};return(0,d.isAbsoluteUrl)(V)?$.href=V:I&&!_&&("a"!==a.type||"href"in a.props)||($.href=(0,h.addBasePath)(V)),v=I?l.default.cloneElement(a,$):(0,s.jsx)("a",{...z,...$,children:o}),(0,s.jsx)(b.Provider,{value:g,children:v})}e.r(31196);let b=(0,l.createContext)(f.IDLE_LINK_STATUS),g=()=>(0,l.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},31876,e=>{"use strict";var t=e.i(1262),r=e.i(45971),n=e.i(54129),o=e.i(51096),a=e.i(65232),s=e.i(44344);function l({className:e,fallback:r,...n}){return(0,t.jsx)("span",{className:(0,a.cn)("grid h-7 w-7 flex-none place-items-center rounded-full bg-primary font-mono text-xs font-semibold text-primary-foreground",e),...n,children:r})}var i=e.i(64595),c=e.i(96621);function u({active:e,to:r,href:n,icon:l,label:c,count:d,ext:h}){let p=(0,a.cn)("flex w-full cursor-pointer items-center gap-2.5 rounded-lg border-0 bg-transparent px-2 py-[7px] text-left text-[13.5px] transition-colors",e?"bg-accent font-medium text-accent-foreground":"text-secondary-foreground hover:bg-secondary hover:text-foreground"),f=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l,{className:(0,a.cn)("size-4 flex-none",e?"text-primary":"text-muted-foreground")}),c,void 0!==d?(0,t.jsx)(i.Badge,{className:(0,a.cn)("ml-auto border-transparent px-2 py-0 text-[11px]",e?"bg-card text-primary":"bg-secondary text-[#a4a9b0]"),children:d}):null,h?(0,t.jsx)(s.Icons.ext,{className:"ml-auto size-[13px] text-[#a4a9b0]"}):null]});return n?(0,t.jsx)("a",{className:p,href:n,target:"_blank",rel:"noopener",children:f}):(0,t.jsx)(o.default,{className:p,href:r??"#",children:f})}function d({children:e}){return(0,t.jsx)("div",{className:"px-2 pb-1.5 pt-4 font-mono text-[10.5px] uppercase tracking-[.1em] text-[#a4a9b0]",children:e})}function h(){let{state:e,boxesFor:n}=(0,c.useStore)(),o=(0,r.usePathname)(),a="/"===o||o.startsWith("/boxes");return(0,t.jsxs)("aside",{className:"shad-side sticky top-0 z-50 flex h-screen flex-col self-start overflow-y-auto border-r border-border bg-background px-3.5 pb-4 pt-4 max-md:w-64",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5 px-2 pb-4 font-mono text-sm font-semibold",children:[(0,t.jsx)("img",{src:"/logo.svg",alt:"",width:20,height:20,className:"h-5 w-5"}),"agentbox",(0,t.jsx)("span",{className:"font-normal text-[#a4a9b0]",children:"/ hub"})]}),(0,t.jsx)(d,{children:"Workspace"}),(0,t.jsxs)("nav",{className:"flex flex-col gap-px",children:[(0,t.jsx)(u,{active:a,to:"/",icon:s.Icons.grid,label:"Dashboard",count:e.boxes.length}),(0,t.jsx)(u,{active:o.startsWith("/approvals"),to:"/approvals",icon:s.Icons.shield,label:"Approvals",count:e.approvals.length}),(0,t.jsx)(u,{active:o.startsWith("/settings"),to:"/settings",icon:s.Icons.settings,label:"Settings"}),(0,t.jsx)(u,{href:"https://agent-box.sh/docs",icon:s.Icons.book,label:"Docs",ext:!0}),(0,t.jsx)(u,{href:"/api/v1/docs",icon:s.Icons.terminal,label:"API",ext:!0})]}),(0,t.jsx)(d,{children:"Projects"}),(0,t.jsx)("nav",{className:"flex flex-col gap-px",children:e.projects.map(e=>(0,t.jsx)(u,{active:o==="/projects/"+e.id,to:"/projects/"+e.id,icon:s.Icons.folder,label:e.name,count:n(e.id).length},e.id))}),(0,t.jsx)("div",{className:"mt-auto border-t border-border pt-2.5",children:(0,t.jsxs)("div",{className:"flex items-center gap-2.5 px-1.5 pt-1.5",children:[(0,t.jsx)(l,{fallback:"M"}),(0,t.jsxs)("div",{className:"text-[12.5px] leading-tight",children:[e.user.name,(0,t.jsxs)("span",{className:"block font-mono text-[11px] text-muted-foreground",children:["@",e.user.login]})]})]})})]})}function p(){let e=(0,r.useRouter)();return(0,n.useEffect)(()=>{let t=null,r=()=>{document.hidden||t||(t=setTimeout(()=>{t=null,e.refresh()},250))},n=new EventSource("/api/events");return n.addEventListener("change",r),n.addEventListener("ping",r),()=>{t&&clearTimeout(t),n.close()}},[e]),null}var f=e.i(69377),x=e.i(68223);function m({to:e,children:r,current:n}){return n?(0,t.jsx)("b",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-medium text-secondary-foreground",children:r}):(0,t.jsx)(o.default,{className:"cursor-pointer hover:text-primary",href:e??"#",children:r})}function v(){return(0,t.jsx)("span",{className:"text-border",children:"/"})}function b(){let e=(0,r.usePathname)(),{project:n,box:o}=(0,c.useStore)(),a=[(0,t.jsx)(m,{to:"/",children:"hub"},"h")],s=e.split("/").filter(Boolean);if("projects"===s[0]&&s[1]){let e=n(s[1]);a.push((0,t.jsx)(v,{},"s1"),(0,t.jsx)(m,{current:!0,children:e?e.name:"project"},"p"))}else if("boxes"===s[0]&&s[1]){let e=o(s[1]),r=e?n(e.projectId):void 0;r&&a.push((0,t.jsx)(v,{},"s1"),(0,t.jsx)(m,{to:"/projects/"+r.id,children:r.name},"p")),a.push((0,t.jsx)(v,{},"s2"),(0,t.jsx)(m,{current:!0,children:e?e.id:"box"},"b"))}else"settings"===s[0]?a.push((0,t.jsx)(v,{},"s1"),(0,t.jsx)(m,{current:!0,children:"settings"},"se")):a.push((0,t.jsx)(v,{},"s1"),(0,t.jsx)(m,{current:!0,children:"dashboard"},"d"));return(0,t.jsx)("div",{className:"flex min-w-0 items-center gap-2 font-mono text-[12.5px] text-[#a4a9b0]",children:a})}function g(){let e=(0,r.useRouter)(),{state:n}=(0,c.useStore)();return(0,t.jsxs)("div",{className:"sticky top-0 z-30 flex h-[54px] items-center gap-3 border-b border-border bg-[rgba(246,246,243,.86)] px-6 backdrop-blur-md",children:[(0,t.jsx)(f.Button,{variant:"outline",size:"icon-sm",className:"hidden max-md:inline-flex","aria-label":"Menu",onClick:()=>document.body.classList.toggle("nav-open"),children:(0,t.jsx)(s.Icons.menu,{})}),(0,t.jsx)(b,{}),(0,t.jsx)("span",{className:"flex-1"}),(0,t.jsxs)(f.Button,{variant:"ghost",size:"sm",href:"https://agent-box.sh/docs",target:"_blank",rel:"noopener",children:[(0,t.jsx)(s.Icons.book,{}),"Docs"]}),(0,t.jsxs)(f.Button,{variant:"ghost",size:"sm",href:"/api/v1/docs",target:"_blank",rel:"noopener",children:[(0,t.jsx)(s.Icons.terminal,{}),"API"]}),"password"===n.authMode?(0,t.jsx)(f.Button,{variant:"ghost",size:"sm",onClick:()=>{(0,x.signOut)().then(()=>{e.push("/signin"),e.refresh()})},children:"Sign out"}):null]})}function j({children:e}){let o=(0,r.usePathname)();return(0,n.useEffect)(()=>{document.body.classList.remove("nav-open")},[o]),(0,t.jsxs)("div",{className:"grid min-h-screen grid-cols-[232px_minmax(0,1fr)] max-md:grid-cols-1",children:[(0,t.jsx)("div",{className:"pointer-events-none fixed inset-0 z-40 bg-[rgba(20,24,30,.4)] opacity-0 transition-opacity [body.nav-open_&]:pointer-events-auto [body.nav-open_&]:opacity-100",onClick:()=>document.body.classList.remove("nav-open")}),(0,t.jsx)(h,{}),(0,t.jsxs)("main",{className:"flex min-w-0 flex-col",children:[(0,t.jsx)(g,{}),e]})]})}e.s(["HubShell",0,function({data:e,children:r}){return(0,t.jsxs)(c.HubProvider,{data:e,children:[(0,t.jsx)(p,{}),(0,t.jsx)(j,{children:r})]})}],31876)}]);