beadscope 0.6.3 → 0.6.4

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 (70) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +3 -3
  3. package/.next/fallback-build-manifest.json +3 -3
  4. package/.next/prerender-manifest.json +3 -3
  5. package/.next/required-server-files.js +3 -3
  6. package/.next/required-server-files.json +3 -3
  7. package/.next/server/app/_global-error.html +1 -1
  8. package/.next/server/app/_global-error.rsc +1 -1
  9. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  10. package/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  11. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  12. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  13. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  14. package/.next/server/app/_not-found.html +2 -2
  15. package/.next/server/app/_not-found.rsc +2 -2
  16. package/.next/server/app/_not-found.segments/_full.segment.rsc +2 -2
  17. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  18. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  19. package/.next/server/app/agent-queue/page.js.nft.json +1 -1
  20. package/.next/server/app/agent-queue/page_client-reference-manifest.js +1 -1
  21. package/.next/server/app/agent-queue.html +2 -2
  22. package/.next/server/app/agent-queue.rsc +4 -4
  23. package/.next/server/app/agent-queue.segments/_full.segment.rsc +4 -4
  24. package/.next/server/app/agent-queue.segments/_tree.segment.rsc +2 -2
  25. package/.next/server/app/agent-queue.segments/agent-queue/__PAGE__.segment.rsc +4 -4
  26. package/.next/server/app/api/p/[projectId]/beads/[id]/assist/route.js.nft.json +1 -1
  27. package/.next/server/app/api/p/[projectId]/publish/route.js.nft.json +1 -1
  28. package/.next/server/app/api/telemetry/route.js.nft.json +1 -1
  29. package/.next/server/app/api/update/check/route.js.nft.json +1 -1
  30. package/.next/server/app/api/update/run/route.js.nft.json +1 -1
  31. package/.next/server/app/index.html +2 -2
  32. package/.next/server/app/index.rsc +2 -2
  33. package/.next/server/app/index.segments/__PAGE__.segment.rsc +2 -2
  34. package/.next/server/app/index.segments/_full.segment.rsc +2 -2
  35. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  36. package/.next/server/app/needs-you/page.js.nft.json +1 -1
  37. package/.next/server/app/needs-you/page_client-reference-manifest.js +1 -1
  38. package/.next/server/app/needs-you.html +2 -2
  39. package/.next/server/app/needs-you.rsc +4 -4
  40. package/.next/server/app/needs-you.segments/_full.segment.rsc +4 -4
  41. package/.next/server/app/needs-you.segments/_tree.segment.rsc +2 -2
  42. package/.next/server/app/needs-you.segments/needs-you/__PAGE__.segment.rsc +4 -4
  43. package/.next/server/app/p/[projectId]/page.js.nft.json +1 -1
  44. package/.next/server/app/p/[projectId]/page_client-reference-manifest.js +1 -1
  45. package/.next/server/app/page.js.nft.json +1 -1
  46. package/.next/server/app/page_client-reference-manifest.js +1 -1
  47. package/.next/server/chunks/[root-of-the-server]__1-f7qk3-8a266._.js +1 -1
  48. package/.next/server/chunks/[root-of-the-server]__1zrubp2jc8bi0._.js +1 -1
  49. package/.next/server/chunks/ssr/_1a0tisnm12bqj._.js +2 -2
  50. package/.next/server/chunks/ssr/components_all-agent-queue-view_tsx_1fb44xxj7zaah._.js +1 -1
  51. package/.next/server/chunks/ssr/components_all-agent-queue-view_tsx_1fb44xxj7zaah._.js.map +1 -1
  52. package/.next/server/chunks/ssr/components_all-needs-you-view_tsx_0145u7lt1nwij._.js +1 -1
  53. package/.next/server/chunks/ssr/components_all-needs-you-view_tsx_0145u7lt1nwij._.js.map +1 -1
  54. package/.next/server/middleware-build-manifest.js +3 -3
  55. package/.next/server/pages/404.html +2 -2
  56. package/.next/server/pages/500.html +1 -1
  57. package/.next/server/preview-props.json +3 -3
  58. package/.next/server/server-reference-manifest.js +1 -1
  59. package/.next/server/server-reference-manifest.json +1 -1
  60. package/.next/static/chunks/1-vrmbidlz_vz.js +1 -0
  61. package/.next/static/chunks/{1berhnnvlwj-a.js → 18fyji-y2iccg.js} +2 -2
  62. package/.next/static/chunks/1oe0mygeinwa9.css +3 -0
  63. package/.next/static/chunks/2y995jcf2hly9.js +1 -0
  64. package/package.json +1 -1
  65. package/.next/static/chunks/0hsm618tqhuj4.css +0 -3
  66. package/.next/static/chunks/2n-h9vhwpg0y6.js +0 -1
  67. package/.next/static/chunks/3ktcpxv_2x-7x.js +0 -1
  68. /package/.next/static/{dmCQuxy1F19EnJNtsX7Eq → c4l-MFP3SkVkDfScgaKBz}/_buildManifest.js +0 -0
  69. /package/.next/static/{dmCQuxy1F19EnJNtsX7Eq → c4l-MFP3SkVkDfScgaKBz}/_clientMiddlewareManifest.js +0 -0
  70. /package/.next/static/{dmCQuxy1F19EnJNtsX7Eq → c4l-MFP3SkVkDfScgaKBz}/_ssgManifest.js +0 -0
@@ -1,3 +1,3 @@
1
- module.exports=[59191,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(49651),f=a.i(19107),g=a.i(71749),h=a.i(43013),i=a.i(71537),j=a.i(76983),k=a.i(69937),l=a.i(41865),m=a.i(44925),n=a.i(48414),o=a.i(52025),p=a.i(41662),q=a.i(47481),r=a.i(23764),s=a.i(18167),t=a.i(6113),u=a.i(97618),v=a.i(34799),w=a.i(71630),x=a.i(98038),y=a.i(82451);let z=["open","in_progress","hooked","blocked"],A=(a,b)=>"in_progress"===a.status||"hooked"===a.status?0:b?1:2;function B({project:a,items:c,done:e,agents:f,showHeading:g,onOpen:h}){let{page:i}=(0,q.f)();return(0,b.jsxs)("section",{"data-repo-section":a.id,"aria-label":a.name,className:"flex flex-col gap-3",children:[g&&(0,b.jsxs)("h2",{className:"flex items-baseline gap-2 text-body font-semibold text-[var(--text)]",children:[(0,b.jsx)(d.default,{href:(0,r.l)(a.id,i),className:"hover:underline",children:a.name}),(0,b.jsxs)("span",{className:"text-meta font-normal text-[var(--text-3)]",children:[c.length," queued",e.length>0?` \xb7 ${e.length} completed`:""]})]}),c.map(c=>(0,b.jsx)(C,{projectId:a.id,item:c,agents:f,onOpen:h},c.bead.id)),e.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(j.g,{level:g?3:2}),e.map(c=>(0,b.jsx)(C,{projectId:a.id,item:{bead:c,blocked:!1,blockers:[]},agents:f,onOpen:h,completed:!0},c.id))]})]})}function C({projectId:a,item:c,agents:d,onOpen:e,completed:f=!1}){let{bead:j,blocked:k,blockers:l}=c,m=(0,x.O)(d,j.assignee),n=()=>e(a,j.id);return(0,b.jsxs)("article",{role:"button",tabIndex:0,"aria-label":j.title,"data-keyboard-bead-id":j.id,"data-agent":m?.id,"data-completed-card":f?"":void 0,onKeyDown:a=>{a.target===a.currentTarget&&("Enter"===a.key||" "===a.key)&&(a.preventDefault(),n())},onClick:n,className:"cursor-pointer rounded-[11px] border border-border bg-[var(--surface)] p-[10px_12px] shadow-[var(--shadow)] hover:border-[var(--border-strong)] hover:shadow-[var(--shadow-lg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--brand)]/30",children:[(0,b.jsxs)("div",{className:"mb-[5px] flex items-center gap-[7px]",children:[(0,b.jsx)("span",{className:"font-mono text-meta text-[var(--text-3)]",children:j.id}),(0,b.jsx)(i.u,{status:k&&"open"===j.status?"blocked":j.status}),(0,b.jsx)("span",{className:"flex-1"}),(0,b.jsx)(h.o,{p:j.priority})]}),(0,b.jsx)("div",{className:"text-label font-medium leading-[1.35] text-[var(--text)] [text-wrap:pretty]",children:j.title}),(0,b.jsxs)("div",{className:"mt-[6px] flex flex-wrap items-center gap-x-[8px] gap-y-1 text-meta text-[var(--text-3)]",children:[m&&(0,b.jsxs)("span",{className:"inline-flex items-center gap-[5px]",children:[(0,b.jsx)(g.f,{agent:m,size:14}),m.name]}),(0,b.jsxs)("span",{children:[f?"closed ":"",(0,y.N)(f?j.closed_at??j.updated_at:j.updated_at)]}),l.length>0&&(0,b.jsxs)("span",{className:"truncate font-mono",title:`blocked by ${l.join(", ")}`,children:["⛔ ",l.join(", ")]})]})]})}a.s(["AllAgentQueueView",0,function(){let{data:a,isLoading:g}=(0,t.f)(),h=c.useMemo(()=>(a?.projects??[]).filter(a=>a.hasBeads),[a]),i=(0,e.f)({queries:h.map(a=>({queryKey:(0,p.q)(a.id),queryFn:()=>w.k.list(a.id),retry:1,refetchInterval:a=>a.state.data?.meta.pollIntervalMs??5e3}))}),{searchParams:q,updateUrl:r}=(0,u.f)(),C=(0,n.X)(),D=(0,v.f)(),E=D.data?.readOnly??!0,F=c.useCallback(a=>i[h.findIndex(b=>b.id===a)]?.data,[i,h]),G=c.useMemo(()=>i.find(a=>a.data?.meta.agents)?.data?.meta.agents??[],[i]),H=G.filter(a=>a.enabled),I=q.get("repo")??"",J=q.get("agent")??"",K=h.some(a=>a.id===I)?I:"",L=H.find(a=>a.id===J)??null,M=(a,b)=>r(c=>{""===b?c.delete(a):c.set(a,b)}),N="1"===q.get(j.Q),O=(0,s.f)(),P=h.map((a,b)=>{let c=i[b],d=c.data?.beads??[],e=(0,y.Z)(d),f=d.filter(a=>z.includes(a.status)&&!(a.labels??[]).includes("archived")&&(0,x.O)(G,a.assignee)).map(a=>({bead:a,blocked:(0,y.V)(a,e),blockers:(0,y.U)(a,e)})),g=f.filter(a=>!L||(0,x.O)([L],a.bead.assignee)?.id===L.id).sort((a,b)=>A(a.bead,a.blocked)-A(b.bead,b.blocked)||a.bead.priority-b.bead.priority||a.bead.id.localeCompare(b.bead.id));return{project:a,query:c,queued:f,items:g,done:N?d.filter(a=>(0,y.v)(a,O)&&(0,x.O)(G,a.assignee)&&(!L||(0,x.O)([L],a.assignee)?.id===L.id)).sort(y.d):[]}}),Q=P.filter(({project:a})=>""===K||a.id===K),R=!g&&Q.every(({query:a})=>!a.isLoading),S=Q.filter(({query:a})=>a.isError),T=Q.reduce((a,b)=>a+b.items.length,0),U=Q.reduce((a,b)=>a+b.done.length,0),V=Q.filter(a=>a.items.length+a.done.length>0),W=a=>P.find(b=>b.project.id===a)?.items.length??0,X=a=>Q.reduce((b,c)=>b+c.queued.filter(b=>(0,x.O)([a],b.bead.assignee)?.id===a.id).length,0);return(0,b.jsxs)("div",{className:"flex h-full flex-col overflow-hidden bg-background text-foreground text-body",children:[(0,b.jsx)(m.e,{}),(0,b.jsx)(l.f,{title:"Agent Queue",standalone:!0,subtitle:R?(0===T?"nothing queued":`${T} queued for agents`)+(N?` \xb7 ${U} completed`:"")+(0===T?"":` \xb7 ${""===K?"all repos":"1 repo"}`):"Loading…",controls:(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(d.default,{href:"/",className:"tap-target inline-flex items-center justify-center gap-1.5 text-label text-[var(--text-3)] hover:text-[var(--text)] max-md:-ml-2 max-md:px-2",children:[(0,b.jsx)(f.f,{size:14,"aria-hidden":"true",className:"max-md:size-5"}),(0,b.jsx)("span",{className:"sr-only",children:"Projects"})]})}),center:(0,b.jsxs)("div",{className:"flex min-w-0 items-center justify-center gap-2 max-md:w-full md:gap-3",children:[(0,b.jsxs)(k.$,{size:"sm",className:"min-w-0 max-w-full max-md:flex-1 max-md:basis-0 md:max-w-[10.5rem] lg:max-w-[16rem]","aria-label":"Filter by repo",value:K,onChange:a=>M("repo",a.target.value),children:[(0,b.jsx)("option",{value:"",children:"All repos"}),h.map(a=>(0,b.jsxs)("option",{value:a.id,children:[a.name,W(a.id)>0?` (${W(a.id)})`:""]},a.id))]}),(0,b.jsxs)(k.$,{size:"sm",className:"min-w-0 max-w-full max-md:flex-1 max-md:basis-0 md:max-w-[10.5rem] lg:max-w-[16rem]","aria-label":"Filter by agent",value:L?.id??"",onChange:a=>M("agent",a.target.value),children:[(0,b.jsx)("option",{value:"",children:"All agents"}),H.map(a=>(0,b.jsxs)("option",{value:a.id,children:[a.name,X(a)>0?` (${X(a)})`:""]},a.id))]})]}),extra:(0,b.jsx)(j.w,{on:N,onChange:a=>r(b=>{a?b.set(j.Q,"1"):b.delete(j.Q)})}),actions:(0,b.jsx)(o.f,{})}),(0,b.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-3",children:R?(0,b.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col gap-6",children:[S.map(({project:a})=>(0,b.jsxs)("p",{role:"status",className:"rounded-[10px] border border-border bg-[var(--surface)] p-3 text-label text-[var(--text-2)]",children:["Couldn’t read ",a.name,", so anything queued there is not listed."]},a.id)),0===T&&0===U?(0,b.jsxs)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:[S.length>0?"Nothing queued in the repos that could be read":"Nothing is queued for an agent",S.length>0?"":""===K?" in any repo":" in this repo",L?` for ${L.name}`:"",". Assign a bead to an agent (Settings → Agents lists the names) and it shows up here."]}):V.map(({project:a,items:c,done:d})=>(0,b.jsx)(B,{project:a,items:c,done:d,agents:G,showHeading:""===K,onOpen:C.openBead},a.id))]}):(0,b.jsx)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:"Loading…"})}),(0,b.jsx)(n.m,{drawer:C,dataFor:F,readOnly:E})]})}])}];
1
+ module.exports=[59191,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(49651),f=a.i(19107),g=a.i(71749),h=a.i(43013),i=a.i(71537),j=a.i(76983),k=a.i(69937),l=a.i(41865),m=a.i(44925),n=a.i(48414),o=a.i(52025),p=a.i(41662),q=a.i(47481),r=a.i(23764),s=a.i(18167),t=a.i(6113),u=a.i(97618),v=a.i(34799),w=a.i(71630),x=a.i(98038),y=a.i(82451);let z=["open","in_progress","hooked","blocked"],A=(a,b)=>"in_progress"===a.status||"hooked"===a.status?0:b?1:2;function B({project:a,items:c,done:e,agents:f,showHeading:g,onOpen:h}){let{page:i}=(0,q.f)();return(0,b.jsxs)("section",{"data-repo-section":a.id,"aria-label":a.name,className:"flex flex-col gap-3",children:[g&&(0,b.jsxs)("h2",{className:"flex items-baseline gap-2 text-body font-semibold text-[var(--text)]",children:[(0,b.jsx)(d.default,{href:(0,r.l)(a.id,i),className:"hover:underline",children:a.name}),(0,b.jsxs)("span",{className:"text-meta font-normal text-[var(--text-3)]",children:[c.length," queued",e.length>0?` \xb7 ${e.length} completed`:""]})]}),c.map(c=>(0,b.jsx)(C,{projectId:a.id,item:c,agents:f,onOpen:h},c.bead.id)),e.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(j.g,{level:g?3:2}),e.map(c=>(0,b.jsx)(C,{projectId:a.id,item:{bead:c,blocked:!1,blockers:[]},agents:f,onOpen:h,completed:!0},c.id))]})]})}function C({projectId:a,item:c,agents:d,onOpen:e,completed:f=!1}){let{bead:j,blocked:k,blockers:l}=c,m=(0,x.O)(d,j.assignee),n=()=>e(a,j.id);return(0,b.jsxs)("article",{role:"button",tabIndex:0,"aria-label":j.title,"data-keyboard-bead-id":j.id,"data-agent":m?.id,"data-completed-card":f?"":void 0,onKeyDown:a=>{a.target===a.currentTarget&&("Enter"===a.key||" "===a.key)&&(a.preventDefault(),n())},onClick:n,className:"cursor-pointer rounded-[11px] border border-border bg-[var(--surface)] p-[10px_12px] shadow-[var(--shadow)] hover:border-[var(--border-strong)] hover:shadow-[var(--shadow-lg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--brand)]/30",children:[(0,b.jsxs)("div",{className:"mb-[5px] flex items-center gap-[7px]",children:[(0,b.jsx)("span",{className:"font-mono text-meta text-[var(--text-3)]",children:j.id}),(0,b.jsx)(i.u,{status:k&&"open"===j.status?"blocked":j.status}),(0,b.jsx)("span",{className:"flex-1"}),(0,b.jsx)(h.o,{p:j.priority})]}),(0,b.jsx)("div",{className:"text-label font-medium leading-[1.35] text-[var(--text)] [text-wrap:pretty]",children:j.title}),(0,b.jsxs)("div",{className:"mt-[6px] flex flex-wrap items-center gap-x-[8px] gap-y-1 text-meta text-[var(--text-3)]",children:[m&&(0,b.jsxs)("span",{className:"inline-flex items-center gap-[5px]",children:[(0,b.jsx)(g.f,{agent:m,size:14}),m.name]}),(0,b.jsxs)("span",{children:[f?"closed ":"",(0,y.N)(f?j.closed_at??j.updated_at:j.updated_at)]}),l.length>0&&(0,b.jsxs)("span",{className:"truncate font-mono",title:`blocked by ${l.join(", ")}`,children:["⛔ ",l.join(", ")]})]})]})}a.s(["AllAgentQueueView",0,function(){let{data:a,isLoading:g}=(0,t.f)(),h=c.useMemo(()=>(a?.projects??[]).filter(a=>a.hasBeads),[a]),i=(0,e.f)({queries:h.map(a=>({queryKey:(0,p.q)(a.id),queryFn:()=>w.k.list(a.id),retry:1,refetchInterval:a=>a.state.data?.meta.pollIntervalMs??5e3}))}),{searchParams:q,updateUrl:r}=(0,u.f)(),C=(0,n.X)(),D=(0,v.f)(),E=D.data?.readOnly??!0,F=c.useCallback(a=>i[h.findIndex(b=>b.id===a)]?.data,[i,h]),G=c.useMemo(()=>i.find(a=>a.data?.meta.agents)?.data?.meta.agents??[],[i]),H=G.filter(a=>a.enabled),I=q.get("repo")??"",J=q.get("agent")??"",K=h.some(a=>a.id===I)?I:"",L=H.find(a=>a.id===J)??null,M=(a,b)=>r(c=>{""===b?c.delete(a):c.set(a,b)}),N="1"===q.get(j.Q),O=(0,s.f)(),P=h.map((a,b)=>{let c=i[b],d=c.data?.beads??[],e=(0,y.Z)(d),f=d.filter(a=>z.includes(a.status)&&!(a.labels??[]).includes("archived")&&(0,x.O)(G,a.assignee)).map(a=>({bead:a,blocked:(0,y.V)(a,e),blockers:(0,y.U)(a,e)})),g=f.filter(a=>!L||(0,x.O)([L],a.bead.assignee)?.id===L.id).sort((a,b)=>A(a.bead,a.blocked)-A(b.bead,b.blocked)||a.bead.priority-b.bead.priority||a.bead.id.localeCompare(b.bead.id));return{project:a,query:c,queued:f,items:g,done:N?d.filter(a=>(0,y.v)(a,O)&&(0,x.O)(G,a.assignee)&&(!L||(0,x.O)([L],a.assignee)?.id===L.id)).sort(y.d):[]}}),Q=P.filter(({project:a})=>""===K||a.id===K),R=!g&&Q.every(({query:a})=>!a.isLoading),S=Q.filter(({query:a})=>a.isError),T=Q.reduce((a,b)=>a+b.items.length,0),U=Q.reduce((a,b)=>a+b.done.length,0),V=Q.filter(a=>a.items.length+a.done.length>0),W=a=>P.find(b=>b.project.id===a)?.items.length??0,X=a=>Q.reduce((b,c)=>b+c.queued.filter(b=>(0,x.O)([a],b.bead.assignee)?.id===a.id).length,0);return(0,b.jsxs)("div",{className:"flex h-full flex-col overflow-hidden bg-background text-foreground text-body",children:[(0,b.jsx)(m.e,{}),(0,b.jsx)(l.f,{title:"Agent Queue",standalone:!0,subtitle:R?(0===T?"nothing queued":`${T} queued for agents`)+(N?` \xb7 ${U} completed`:"")+(0===T?"":` \xb7 ${""===K?"all repos":"1 repo"}`):"Loading…",controls:(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(d.default,{href:"/",className:"tap-target inline-flex items-center justify-center gap-1.5 text-label text-[var(--text-3)] hover:text-[var(--text)] max-md:-ml-2 max-md:px-2",children:[(0,b.jsx)(f.f,{size:14,"aria-hidden":"true",className:"max-md:size-5"}),(0,b.jsx)("span",{className:"sr-only",children:"Projects"})]})}),center:(0,b.jsxs)("div",{className:"flex min-w-0 items-center justify-center gap-2 max-md:w-full md:gap-3",children:[(0,b.jsxs)(k.$,{size:"sm",className:"min-w-0 max-w-full max-md:flex-1 max-md:basis-0 md:max-w-[10.5rem] lg:max-w-[16rem]","aria-label":"Filter by repo",value:K,onChange:a=>M("repo",a.target.value),children:[(0,b.jsx)("option",{value:"",children:"All repos"}),h.map(a=>(0,b.jsxs)("option",{value:a.id,children:[a.name,W(a.id)>0?` (${W(a.id)})`:""]},a.id))]}),(0,b.jsxs)(k.$,{size:"sm",className:"min-w-0 max-w-full max-md:flex-1 max-md:basis-0 md:max-w-[10.5rem] lg:max-w-[16rem]","aria-label":"Filter by agent",value:L?.id??"",onChange:a=>M("agent",a.target.value),children:[(0,b.jsx)("option",{value:"",children:"All agents"}),H.map(a=>(0,b.jsxs)("option",{value:a.id,children:[a.name,X(a)>0?` (${X(a)})`:""]},a.id))]})]}),extra:(0,b.jsx)(j.w,{on:N,onChange:a=>r(b=>{a?b.set(j.Q,"1"):b.delete(j.Q)})}),actions:(0,b.jsx)("div",{className:"max-md:hidden",children:(0,b.jsx)(o.f,{})})}),(0,b.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-3",children:[R?(0,b.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col gap-6",children:[S.map(({project:a})=>(0,b.jsxs)("p",{role:"status",className:"rounded-[10px] border border-border bg-[var(--surface)] p-3 text-label text-[var(--text-2)]",children:["Couldn’t read ",a.name,", so anything queued there is not listed."]},a.id)),0===T&&0===U?(0,b.jsxs)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:[S.length>0?"Nothing queued in the repos that could be read":"Nothing is queued for an agent",S.length>0?"":""===K?" in any repo":" in this repo",L?` for ${L.name}`:"",". Assign a bead to an agent (Settings → Agents lists the names) and it shows up here."]}):V.map(({project:a,items:c,done:d})=>(0,b.jsx)(B,{project:a,items:c,done:d,agents:G,showHeading:""===K,onOpen:C.openBead},a.id))]}):(0,b.jsx)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:"Loading…"}),(0,b.jsx)("div",{className:"mx-auto mt-8 flex max-w-3xl justify-end border-t border-border pt-3 md:hidden",children:(0,b.jsx)(o.f,{})})]}),(0,b.jsx)(n.m,{drawer:C,dataFor:F,readOnly:E})]})}])}];
2
2
 
3
3
  //# sourceMappingURL=components_all-agent-queue-view_tsx_1fb44xxj7zaah._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../components/all-agent-queue-view.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport Link from \"next/link\";\nimport { useQueries } from \"@tanstack/react-query\";\nimport { ArrowLeft } from \"lucide-react\";\nimport { AgentIcon } from \"@/components/agent-icon\";\nimport { PriorityChip } from \"@/components/board/bead-card\";\nimport { StatusChip } from \"@/components/chip\";\nimport { CompletedHeading, CompletedToggle, DONE_PARAM } from \"@/components/completed-toggle\";\nimport { SelectField } from \"@/components/controls\";\nimport { PageHeader } from \"@/components/page-header\";\nimport { ReadOnlyBanner } from \"@/components/read-only-banner\";\nimport { RepoBeadDrawer, useRepoDrawer } from \"@/components/repo-bead-drawer\";\nimport { ThemeToggle } from \"@/components/theme-toggle\";\nimport { beadsKey } from \"@/hooks/use-beads\";\nimport { useDefaultPage } from \"@/hooks/use-default-view\";\nimport { projectHref } from \"@/lib/default-page\";\nimport { useNow } from \"@/hooks/use-now\";\nimport { useProjects } from \"@/hooks/use-projects\";\nimport { useUrlState } from \"@/hooks/use-url-state\";\nimport { useViewerMode } from \"@/hooks/use-viewer-mode\";\nimport { api, type BeadsResponse, type ProjectInfo } from \"@/lib/api-client\";\nimport { agentByName, type AgentIdentity } from \"@/lib/agents\";\nimport { blockingDeps, byClosedAtDesc, completedRecently, isBlocked, makeIndex, relTime } from \"@/lib/beads-view\";\nimport type { Bead } from \"@/lib/schema\";\n\n/** `?repo=` / `?agent=` value meaning \"everything\" (the param is simply absent). */\nconst ALL = \"\";\n/** Work still to do, as Focus counts it: closed beads are history, deferred and pinned ones are parked, archived ones are put away. */\nconst QUEUED_STATUSES = [\"open\", \"in_progress\", \"hooked\", \"blocked\"];\nconst isQueued = (b: Bead) => QUEUED_STATUSES.includes(b.status) && !(b.labels ?? []).includes(\"archived\");\n/** In flight first, then blocked, then ready. */\nconst rank = (b: Bead, blocked: boolean) => (b.status === \"in_progress\" || b.status === \"hooked\" ? 0 : blocked ? 1 : 2);\n\ntype Item = { bead: Bead; blocked: boolean; blockers: string[] };\n\n/**\n * The Agent Queue across every registered repo: each open bead assigned to an agent identity\n * (Settings → Agents), gathered from all projects, with a repo filter and an agent filter. It is the\n * all-repos form of the Agent filter on a project's Focus view. Opening a bead shows its drawer over the page.\n */\nexport function AllAgentQueueView() {\n const { data: projectData, isLoading: loadingProjects } = useProjects();\n // A folder that lost its .beads cannot be read; the launcher already flags it, so it is left out here.\n const projects = React.useMemo(() => (projectData?.projects ?? []).filter((p) => p.hasBeads), [projectData]);\n const results = useQueries({\n queries: projects.map((p) => ({\n queryKey: beadsKey(p.id),\n queryFn: () => api.list(p.id),\n retry: 1,\n refetchInterval: (q: { state: { data?: BeadsResponse } }) => q.state.data?.meta.pollIntervalMs ?? 5000,\n })),\n });\n const { searchParams, updateUrl } = useUrlState();\n // Opening a bead shows its drawer over this page, as the Epics page does.\n const drawer = useRepoDrawer();\n const viewerMode = useViewerMode();\n const readOnly = viewerMode.data?.readOnly ?? true;\n const dataFor = React.useCallback(\n (id: string) => results[projects.findIndex((p) => p.id === id)]?.data,\n [results, projects],\n );\n\n // Agent identities are one app-wide setting, so any repo's response carries them.\n const identities: AgentIdentity[] = React.useMemo(\n () => results.find((r) => r.data?.meta.agents)?.data?.meta.agents ?? [],\n [results],\n );\n // The filter offers the enabled identities; a switched-off agent's beads still show under All.\n const enabledAgents = identities.filter((a) => a.enabled);\n\n const requestedRepo = searchParams.get(\"repo\") ?? ALL;\n const requestedAgent = searchParams.get(\"agent\") ?? ALL;\n // An unknown repo or agent (a stale link, a removed project, a switched-off identity) falls back to\n // All rather than an empty page.\n const repo = projects.some((p) => p.id === requestedRepo) ? requestedRepo : ALL;\n const agent = enabledAgents.find((a) => a.id === requestedAgent) ?? null;\n const setParam = (key: \"repo\" | \"agent\", next: string) =>\n updateUrl((params) => {\n if (next === ALL) params.delete(key);\n else params.set(key, next);\n });\n\n // The toggle at the top: also list what agents completed in the last few days (off by default).\n const showDone = searchParams.get(DONE_PARAM) === \"1\";\n const setShowDone = (next: boolean) =>\n updateUrl((params) => {\n if (next) params.set(DONE_PARAM, \"1\");\n else params.delete(DONE_PARAM);\n });\n const now = useNow();\n\n const sections = projects.map((project, i) => {\n const query = results[i];\n const beads = query.data?.beads ?? [];\n const index = makeIndex(beads);\n // This repo's beads that belong to an agent (any identity, so old work keeps its icon).\n const queued: Item[] = beads\n .filter((b) => isQueued(b) && agentByName(identities, b.assignee))\n .map((bead) => ({ bead, blocked: isBlocked(bead, index), blockers: blockingDeps(bead, index) }));\n const items = queued\n .filter((q) => !agent || agentByName([agent], q.bead.assignee)?.id === agent.id)\n .sort(\n (a, b) =>\n rank(a.bead, a.blocked) - rank(b.bead, b.blocked) ||\n a.bead.priority - b.bead.priority ||\n a.bead.id.localeCompare(b.bead.id),\n );\n // Closed in the last few days by (assigned to) an agent, newest first; empty while the toggle is off.\n const done: Bead[] = showDone\n ? beads\n .filter(\n (b) =>\n completedRecently(b, now) &&\n agentByName(identities, b.assignee) &&\n (!agent || agentByName([agent], b.assignee)?.id === agent.id),\n )\n .sort(byClosedAtDesc)\n : [];\n return { project, query, queued, items, done };\n });\n const shown = sections.filter(({ project }) => repo === ALL || project.id === repo);\n const settled = !loadingProjects && shown.every(({ query }) => !query.isLoading);\n const failed = shown.filter(({ query }) => query.isError);\n const total = shown.reduce((sum, s) => sum + s.items.length, 0);\n const doneTotal = shown.reduce((sum, s) => sum + s.done.length, 0);\n const withItems = shown.filter((s) => s.items.length + s.done.length > 0);\n // Counts in the filter labels: per repo for the chosen agent, per agent for the chosen repo.\n const repoCount = (id: string) => sections.find((s) => s.project.id === id)?.items.length ?? 0;\n const agentCount = (a: AgentIdentity) =>\n shown.reduce((sum, s) => sum + s.queued.filter((q) => agentByName([a], q.bead.assignee)?.id === a.id).length, 0);\n\n return (\n <div className=\"flex h-full flex-col overflow-hidden bg-background text-foreground text-body\">\n <ReadOnlyBanner />\n <PageHeader\n title=\"Agent Queue\"\n standalone\n subtitle={\n !settled\n ? \"Loading…\"\n : (total === 0 ? \"nothing queued\" : `${total} queued for agents`) +\n (showDone ? ` · ${doneTotal} completed` : \"\") +\n (total === 0 ? \"\" : ` · ${repo === ALL ? \"all repos\" : \"1 repo\"}`)\n }\n controls={\n <>\n <Link\n href=\"/\"\n className=\"tap-target inline-flex items-center justify-center gap-1.5 text-label text-[var(--text-3)] hover:text-[var(--text)] max-md:-ml-2 max-md:px-2\"\n >\n <ArrowLeft size={14} aria-hidden=\"true\" className=\"max-md:size-5\" />\n {/* The arrow stands alone (a 44px target on phones); the name stays for screen readers. */}\n <span className=\"sr-only\">Projects</span>\n </Link>\n </>\n }\n center={\n // Both dropdowns sit together, the pair centred in the bar. On phones they share the row, each taking half; on desktop their width is capped so a long repo name cannot squeeze the Completed and theme buttons at the right.\n <div className=\"flex min-w-0 items-center justify-center gap-2 max-md:w-full md:gap-3\">\n {/* No visible labels: the first options (\"All repos\", \"All agents\") say what the dropdowns are, and a label would push the pair off the centre. */}\n <SelectField\n size=\"sm\"\n className=\"min-w-0 max-w-full max-md:flex-1 max-md:basis-0 md:max-w-[10.5rem] lg:max-w-[16rem]\"\n aria-label=\"Filter by repo\"\n value={repo}\n onChange={(e) => setParam(\"repo\", e.target.value)}\n >\n <option value={ALL}>All repos</option>\n {projects.map((p) => (\n <option key={p.id} value={p.id}>\n {p.name}\n {repoCount(p.id) > 0 ? ` (${repoCount(p.id)})` : \"\"}\n </option>\n ))}\n </SelectField>\n <SelectField\n size=\"sm\"\n className=\"min-w-0 max-w-full max-md:flex-1 max-md:basis-0 md:max-w-[10.5rem] lg:max-w-[16rem]\"\n aria-label=\"Filter by agent\"\n value={agent?.id ?? ALL}\n onChange={(e) => setParam(\"agent\", e.target.value)}\n >\n <option value={ALL}>All agents</option>\n {enabledAgents.map((a) => (\n <option key={a.id} value={a.id}>\n {a.name}\n {agentCount(a) > 0 ? ` (${agentCount(a)})` : \"\"}\n </option>\n ))}\n </SelectField>\n </div>\n }\n extra={<CompletedToggle on={showDone} onChange={setShowDone} />}\n actions={<ThemeToggle />}\n />\n <div className=\"min-h-0 flex-1 overflow-y-auto px-4 py-3\">\n {!settled ? (\n <div className=\"p-10 text-center text-body text-[var(--text-3)]\">Loading…</div>\n ) : (\n <div className=\"mx-auto flex max-w-3xl flex-col gap-6\">\n {failed.map(({ project }) => (\n <p\n key={project.id}\n role=\"status\"\n className=\"rounded-[10px] border border-border bg-[var(--surface)] p-3 text-label text-[var(--text-2)]\"\n >\n Couldn’t read {project.name}, so anything queued there is not listed.\n </p>\n ))}\n {total === 0 && doneTotal === 0 ? (\n <div className=\"p-10 text-center text-body text-[var(--text-3)]\">\n {failed.length > 0 ? \"Nothing queued in the repos that could be read\" : \"Nothing is queued for an agent\"}\n {failed.length > 0 ? \"\" : repo === ALL ? \" in any repo\" : \" in this repo\"}\n {agent ? ` for ${agent.name}` : \"\"}. Assign a bead to an agent (Settings → Agents lists the names) and it\n shows up here.\n </div>\n ) : (\n withItems.map(({ project, items, done }) => (\n <RepoSection\n key={project.id}\n project={project}\n items={items}\n done={done}\n agents={identities}\n showHeading={repo === ALL}\n onOpen={drawer.openBead}\n />\n ))\n )}\n </div>\n )}\n </div>\n <RepoBeadDrawer drawer={drawer} dataFor={dataFor} readOnly={readOnly} />\n </div>\n );\n}\n\n/** One repo's queued beads. */\nfunction RepoSection({\n project,\n items,\n done,\n agents,\n showHeading,\n onOpen,\n}: {\n project: ProjectInfo;\n items: Item[];\n /** Beads completed in the last few days; empty unless the page's toggle is on. */\n done: Bead[];\n agents: AgentIdentity[];\n showHeading: boolean;\n onOpen: (projectId: string, id: string) => void;\n}) {\n const { page } = useDefaultPage();\n return (\n <section data-repo-section={project.id} aria-label={project.name} className=\"flex flex-col gap-3\">\n {showHeading && (\n <h2 className=\"flex items-baseline gap-2 text-body font-semibold text-[var(--text)]\">\n <Link href={projectHref(project.id, page)} className=\"hover:underline\">\n {project.name}\n </Link>\n <span className=\"text-meta font-normal text-[var(--text-3)]\">\n {items.length} queued\n {done.length > 0 ? ` · ${done.length} completed` : \"\"}\n </span>\n </h2>\n )}\n {items.map((item) => (\n <QueueCard key={item.bead.id} projectId={project.id} item={item} agents={agents} onOpen={onOpen} />\n ))}\n {done.length > 0 && (\n <>\n <CompletedHeading level={showHeading ? 3 : 2} />\n {done.map((bead) => (\n <QueueCard\n key={bead.id}\n projectId={project.id}\n item={{ bead, blocked: false, blockers: [] }}\n agents={agents}\n onOpen={onOpen}\n completed\n />\n ))}\n </>\n )}\n </section>\n );\n}\n\nfunction QueueCard({\n projectId,\n item,\n agents,\n onOpen,\n completed = false,\n}: {\n projectId: string;\n item: Item;\n agents: AgentIdentity[];\n onOpen: (projectId: string, id: string) => void;\n /** A bead closed in the last few days: says when it was closed rather than when it was last touched. */\n completed?: boolean;\n}) {\n const { bead, blocked, blockers } = item;\n const agent = agentByName(agents, bead.assignee);\n const open = () => onOpen(projectId, bead.id);\n return (\n <article\n role=\"button\"\n tabIndex={0}\n aria-label={bead.title}\n data-keyboard-bead-id={bead.id}\n data-agent={agent?.id}\n data-completed-card={completed ? \"\" : undefined}\n onKeyDown={(event) => {\n if (event.target !== event.currentTarget) return;\n if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n open();\n }\n }}\n onClick={open}\n className=\"cursor-pointer rounded-[11px] border border-border bg-[var(--surface)] p-[10px_12px] shadow-[var(--shadow)] hover:border-[var(--border-strong)] hover:shadow-[var(--shadow-lg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--brand)]/30\"\n >\n <div className=\"mb-[5px] flex items-center gap-[7px]\">\n <span className=\"font-mono text-meta text-[var(--text-3)]\">{bead.id}</span>\n <StatusChip status={blocked && bead.status === \"open\" ? \"blocked\" : bead.status} />\n <span className=\"flex-1\" />\n <PriorityChip p={bead.priority} />\n </div>\n <div className=\"text-label font-medium leading-[1.35] text-[var(--text)] [text-wrap:pretty]\">{bead.title}</div>\n <div className=\"mt-[6px] flex flex-wrap items-center gap-x-[8px] gap-y-1 text-meta text-[var(--text-3)]\">\n {agent && (\n <span className=\"inline-flex items-center gap-[5px]\">\n <AgentIcon agent={agent} size={14} />\n {agent.name}\n </span>\n )}\n <span>\n {completed ? \"closed \" : \"\"}\n {relTime(completed ? (bead.closed_at ?? bead.updated_at) : bead.updated_at)}\n </span>\n {blockers.length > 0 && (\n <span className=\"truncate font-mono\" title={`blocked by ${blockers.join(\", \")}`}>\n ⛔ {blockers.join(\", \")}\n </span>\n )}\n </div>\n </article>\n );\n}\n"],"names":["ALL","QUEUED_STATUSES","isQueued","b","includes","status","labels","rank","blocked","AllAgentQueueView","data","projectData","isLoading","loadingProjects","projects","filter","p","hasBeads","results","queries","map","queryKey","id","queryFn","list","retry","refetchInterval","q","state","meta","pollIntervalMs","searchParams","updateUrl","drawer","viewerMode","readOnly","dataFor","findIndex","identities","find","r","agents","enabledAgents","a","enabled","requestedRepo","get","requestedAgent","repo","some","agent","setParam","key","next","params","delete","set","showDone","setShowDone","now","sections","project","i","query","beads","index","queued","assignee","bead","blockers","items","sort","priority","localeCompare","done","shown","settled","every","failed","isError","total","reduce","sum","s","length","doneTotal","withItems","repoCount","agentCount","className","title","standalone","subtitle","controls","href","size","center","value","onChange","e","target","name","extra","on","actions","role","RepoSection","showHeading","onOpen","openBead","page","item","QueueCard","projectId","level","completed","open","tabIndex","undefined","onKeyDown","event","currentTarget","preventDefault","onClick","closed_at","updated_at","join"],"mappings":"wDACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,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,IAAA,EAAC,MAAA,CAAII,UAAU,4DACZX,EAAOM,MAAM,CAAG,EAAI,iDAAmD,iCACvEN,EAAOM,MAAM,CAAG,EAAI,QAAKpC,EAAe,OAANhD,QAAuB,gBACzDkD,EAAQ,CAAC,KAAK,EAAEA,EAAMmD,IAAI,CAAA,CAAE,CAAG,GAAG,2FAIrCf,EAAUlE,GAAG,CAAC,CAAC,SAAEyC,CAAO,OAAES,CAAK,MAAEI,CAAI,CAAE,GACrC,CAAA,EAAA,EAAA,GAAA,EAACgC,EAAAA,CAEC7C,QAASA,EACTS,MAAOA,EACPI,KAAMA,EACNjC,OAAQH,EACRqE,YAtMN,KAsMmB3D,EACb4D,OADsB5G,AACdiC,EAAO4E,QAAQ,EANlBhD,EAAQvC,EAAE,MAtBvB,CAAA,EAAA,EAAA,GAAA,EAAC,MAAA,CAAImE,UAAU,2DAAkD,eAmCrE,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAc,CAAA,CAACxD,OAAQA,EAAQG,QAASA,EAASD,SAAUA,MAGlE"}
1
+ {"version":3,"sources":["../../../../components/all-agent-queue-view.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport Link from \"next/link\";\nimport { useQueries } from \"@tanstack/react-query\";\nimport { ArrowLeft } from \"lucide-react\";\nimport { AgentIcon } from \"@/components/agent-icon\";\nimport { PriorityChip } from \"@/components/board/bead-card\";\nimport { StatusChip } from \"@/components/chip\";\nimport { CompletedHeading, CompletedToggle, DONE_PARAM } from \"@/components/completed-toggle\";\nimport { SelectField } from \"@/components/controls\";\nimport { PageHeader } from \"@/components/page-header\";\nimport { ReadOnlyBanner } from \"@/components/read-only-banner\";\nimport { RepoBeadDrawer, useRepoDrawer } from \"@/components/repo-bead-drawer\";\nimport { ThemeToggle } from \"@/components/theme-toggle\";\nimport { beadsKey } from \"@/hooks/use-beads\";\nimport { useDefaultPage } from \"@/hooks/use-default-view\";\nimport { projectHref } from \"@/lib/default-page\";\nimport { useNow } from \"@/hooks/use-now\";\nimport { useProjects } from \"@/hooks/use-projects\";\nimport { useUrlState } from \"@/hooks/use-url-state\";\nimport { useViewerMode } from \"@/hooks/use-viewer-mode\";\nimport { api, type BeadsResponse, type ProjectInfo } from \"@/lib/api-client\";\nimport { agentByName, type AgentIdentity } from \"@/lib/agents\";\nimport { blockingDeps, byClosedAtDesc, completedRecently, isBlocked, makeIndex, relTime } from \"@/lib/beads-view\";\nimport type { Bead } from \"@/lib/schema\";\n\n/** `?repo=` / `?agent=` value meaning \"everything\" (the param is simply absent). */\nconst ALL = \"\";\n/** Work still to do, as Focus counts it: closed beads are history, deferred and pinned ones are parked, archived ones are put away. */\nconst QUEUED_STATUSES = [\"open\", \"in_progress\", \"hooked\", \"blocked\"];\nconst isQueued = (b: Bead) => QUEUED_STATUSES.includes(b.status) && !(b.labels ?? []).includes(\"archived\");\n/** In flight first, then blocked, then ready. */\nconst rank = (b: Bead, blocked: boolean) => (b.status === \"in_progress\" || b.status === \"hooked\" ? 0 : blocked ? 1 : 2);\n\ntype Item = { bead: Bead; blocked: boolean; blockers: string[] };\n\n/**\n * The Agent Queue across every registered repo: each open bead assigned to an agent identity\n * (Settings → Agents), gathered from all projects, with a repo filter and an agent filter. It is the\n * all-repos form of the Agent filter on a project's Focus view. Opening a bead shows its drawer over the page.\n */\nexport function AllAgentQueueView() {\n const { data: projectData, isLoading: loadingProjects } = useProjects();\n // A folder that lost its .beads cannot be read; the launcher already flags it, so it is left out here.\n const projects = React.useMemo(() => (projectData?.projects ?? []).filter((p) => p.hasBeads), [projectData]);\n const results = useQueries({\n queries: projects.map((p) => ({\n queryKey: beadsKey(p.id),\n queryFn: () => api.list(p.id),\n retry: 1,\n refetchInterval: (q: { state: { data?: BeadsResponse } }) => q.state.data?.meta.pollIntervalMs ?? 5000,\n })),\n });\n const { searchParams, updateUrl } = useUrlState();\n // Opening a bead shows its drawer over this page, as the Epics page does.\n const drawer = useRepoDrawer();\n const viewerMode = useViewerMode();\n const readOnly = viewerMode.data?.readOnly ?? true;\n const dataFor = React.useCallback(\n (id: string) => results[projects.findIndex((p) => p.id === id)]?.data,\n [results, projects],\n );\n\n // Agent identities are one app-wide setting, so any repo's response carries them.\n const identities: AgentIdentity[] = React.useMemo(\n () => results.find((r) => r.data?.meta.agents)?.data?.meta.agents ?? [],\n [results],\n );\n // The filter offers the enabled identities; a switched-off agent's beads still show under All.\n const enabledAgents = identities.filter((a) => a.enabled);\n\n const requestedRepo = searchParams.get(\"repo\") ?? ALL;\n const requestedAgent = searchParams.get(\"agent\") ?? ALL;\n // An unknown repo or agent (a stale link, a removed project, a switched-off identity) falls back to\n // All rather than an empty page.\n const repo = projects.some((p) => p.id === requestedRepo) ? requestedRepo : ALL;\n const agent = enabledAgents.find((a) => a.id === requestedAgent) ?? null;\n const setParam = (key: \"repo\" | \"agent\", next: string) =>\n updateUrl((params) => {\n if (next === ALL) params.delete(key);\n else params.set(key, next);\n });\n\n // The toggle at the top: also list what agents completed in the last few days (off by default).\n const showDone = searchParams.get(DONE_PARAM) === \"1\";\n const setShowDone = (next: boolean) =>\n updateUrl((params) => {\n if (next) params.set(DONE_PARAM, \"1\");\n else params.delete(DONE_PARAM);\n });\n const now = useNow();\n\n const sections = projects.map((project, i) => {\n const query = results[i];\n const beads = query.data?.beads ?? [];\n const index = makeIndex(beads);\n // This repo's beads that belong to an agent (any identity, so old work keeps its icon).\n const queued: Item[] = beads\n .filter((b) => isQueued(b) && agentByName(identities, b.assignee))\n .map((bead) => ({ bead, blocked: isBlocked(bead, index), blockers: blockingDeps(bead, index) }));\n const items = queued\n .filter((q) => !agent || agentByName([agent], q.bead.assignee)?.id === agent.id)\n .sort(\n (a, b) =>\n rank(a.bead, a.blocked) - rank(b.bead, b.blocked) ||\n a.bead.priority - b.bead.priority ||\n a.bead.id.localeCompare(b.bead.id),\n );\n // Closed in the last few days by (assigned to) an agent, newest first; empty while the toggle is off.\n const done: Bead[] = showDone\n ? beads\n .filter(\n (b) =>\n completedRecently(b, now) &&\n agentByName(identities, b.assignee) &&\n (!agent || agentByName([agent], b.assignee)?.id === agent.id),\n )\n .sort(byClosedAtDesc)\n : [];\n return { project, query, queued, items, done };\n });\n const shown = sections.filter(({ project }) => repo === ALL || project.id === repo);\n const settled = !loadingProjects && shown.every(({ query }) => !query.isLoading);\n const failed = shown.filter(({ query }) => query.isError);\n const total = shown.reduce((sum, s) => sum + s.items.length, 0);\n const doneTotal = shown.reduce((sum, s) => sum + s.done.length, 0);\n const withItems = shown.filter((s) => s.items.length + s.done.length > 0);\n // Counts in the filter labels: per repo for the chosen agent, per agent for the chosen repo.\n const repoCount = (id: string) => sections.find((s) => s.project.id === id)?.items.length ?? 0;\n const agentCount = (a: AgentIdentity) =>\n shown.reduce((sum, s) => sum + s.queued.filter((q) => agentByName([a], q.bead.assignee)?.id === a.id).length, 0);\n\n return (\n <div className=\"flex h-full flex-col overflow-hidden bg-background text-foreground text-body\">\n <ReadOnlyBanner />\n <PageHeader\n title=\"Agent Queue\"\n standalone\n subtitle={\n !settled\n ? \"Loading…\"\n : (total === 0 ? \"nothing queued\" : `${total} queued for agents`) +\n (showDone ? ` · ${doneTotal} completed` : \"\") +\n (total === 0 ? \"\" : ` · ${repo === ALL ? \"all repos\" : \"1 repo\"}`)\n }\n controls={\n <>\n <Link\n href=\"/\"\n className=\"tap-target inline-flex items-center justify-center gap-1.5 text-label text-[var(--text-3)] hover:text-[var(--text)] max-md:-ml-2 max-md:px-2\"\n >\n <ArrowLeft size={14} aria-hidden=\"true\" className=\"max-md:size-5\" />\n {/* The arrow stands alone (a 44px target on phones); the name stays for screen readers. */}\n <span className=\"sr-only\">Projects</span>\n </Link>\n </>\n }\n center={\n // Both dropdowns sit together, the pair centred in the bar. On phones they share the row, each taking half; on desktop their width is capped so a long repo name cannot squeeze the Completed and theme buttons at the right.\n <div className=\"flex min-w-0 items-center justify-center gap-2 max-md:w-full md:gap-3\">\n {/* No visible labels: the first options (\"All repos\", \"All agents\") say what the dropdowns are, and a label would push the pair off the centre. */}\n <SelectField\n size=\"sm\"\n className=\"min-w-0 max-w-full max-md:flex-1 max-md:basis-0 md:max-w-[10.5rem] lg:max-w-[16rem]\"\n aria-label=\"Filter by repo\"\n value={repo}\n onChange={(e) => setParam(\"repo\", e.target.value)}\n >\n <option value={ALL}>All repos</option>\n {projects.map((p) => (\n <option key={p.id} value={p.id}>\n {p.name}\n {repoCount(p.id) > 0 ? ` (${repoCount(p.id)})` : \"\"}\n </option>\n ))}\n </SelectField>\n <SelectField\n size=\"sm\"\n className=\"min-w-0 max-w-full max-md:flex-1 max-md:basis-0 md:max-w-[10.5rem] lg:max-w-[16rem]\"\n aria-label=\"Filter by agent\"\n value={agent?.id ?? ALL}\n onChange={(e) => setParam(\"agent\", e.target.value)}\n >\n <option value={ALL}>All agents</option>\n {enabledAgents.map((a) => (\n <option key={a.id} value={a.id}>\n {a.name}\n {agentCount(a) > 0 ? ` (${agentCount(a)})` : \"\"}\n </option>\n ))}\n </SelectField>\n </div>\n }\n extra={<CompletedToggle on={showDone} onChange={setShowDone} />}\n actions={<div className=\"max-md:hidden\"><ThemeToggle /></div>}\n />\n <div className=\"min-h-0 flex-1 overflow-y-auto px-4 py-3\">\n {!settled ? (\n <div className=\"p-10 text-center text-body text-[var(--text-3)]\">Loading…</div>\n ) : (\n <div className=\"mx-auto flex max-w-3xl flex-col gap-6\">\n {failed.map(({ project }) => (\n <p\n key={project.id}\n role=\"status\"\n className=\"rounded-[10px] border border-border bg-[var(--surface)] p-3 text-label text-[var(--text-2)]\"\n >\n Couldn’t read {project.name}, so anything queued there is not listed.\n </p>\n ))}\n {total === 0 && doneTotal === 0 ? (\n <div className=\"p-10 text-center text-body text-[var(--text-3)]\">\n {failed.length > 0 ? \"Nothing queued in the repos that could be read\" : \"Nothing is queued for an agent\"}\n {failed.length > 0 ? \"\" : repo === ALL ? \" in any repo\" : \" in this repo\"}\n {agent ? ` for ${agent.name}` : \"\"}. Assign a bead to an agent (Settings → Agents lists the names) and it\n shows up here.\n </div>\n ) : (\n withItems.map(({ project, items, done }) => (\n <RepoSection\n key={project.id}\n project={project}\n items={items}\n done={done}\n agents={identities}\n showHeading={repo === ALL}\n onOpen={drawer.openBead}\n />\n ))\n )}\n </div>\n )}\n <div className=\"mx-auto mt-8 flex max-w-3xl justify-end border-t border-border pt-3 md:hidden\">\n <ThemeToggle />\n </div>\n </div>\n <RepoBeadDrawer drawer={drawer} dataFor={dataFor} readOnly={readOnly} />\n </div>\n );\n}\n\n/** One repo's queued beads. */\nfunction RepoSection({\n project,\n items,\n done,\n agents,\n showHeading,\n onOpen,\n}: {\n project: ProjectInfo;\n items: Item[];\n /** Beads completed in the last few days; empty unless the page's toggle is on. */\n done: Bead[];\n agents: AgentIdentity[];\n showHeading: boolean;\n onOpen: (projectId: string, id: string) => void;\n}) {\n const { page } = useDefaultPage();\n return (\n <section data-repo-section={project.id} aria-label={project.name} className=\"flex flex-col gap-3\">\n {showHeading && (\n <h2 className=\"flex items-baseline gap-2 text-body font-semibold text-[var(--text)]\">\n <Link href={projectHref(project.id, page)} className=\"hover:underline\">\n {project.name}\n </Link>\n <span className=\"text-meta font-normal text-[var(--text-3)]\">\n {items.length} queued\n {done.length > 0 ? ` · ${done.length} completed` : \"\"}\n </span>\n </h2>\n )}\n {items.map((item) => (\n <QueueCard key={item.bead.id} projectId={project.id} item={item} agents={agents} onOpen={onOpen} />\n ))}\n {done.length > 0 && (\n <>\n <CompletedHeading level={showHeading ? 3 : 2} />\n {done.map((bead) => (\n <QueueCard\n key={bead.id}\n projectId={project.id}\n item={{ bead, blocked: false, blockers: [] }}\n agents={agents}\n onOpen={onOpen}\n completed\n />\n ))}\n </>\n )}\n </section>\n );\n}\n\nfunction QueueCard({\n projectId,\n item,\n agents,\n onOpen,\n completed = false,\n}: {\n projectId: string;\n item: Item;\n agents: AgentIdentity[];\n onOpen: (projectId: string, id: string) => void;\n /** A bead closed in the last few days: says when it was closed rather than when it was last touched. */\n completed?: boolean;\n}) {\n const { bead, blocked, blockers } = item;\n const agent = agentByName(agents, bead.assignee);\n const open = () => onOpen(projectId, bead.id);\n return (\n <article\n role=\"button\"\n tabIndex={0}\n aria-label={bead.title}\n data-keyboard-bead-id={bead.id}\n data-agent={agent?.id}\n data-completed-card={completed ? \"\" : undefined}\n onKeyDown={(event) => {\n if (event.target !== event.currentTarget) return;\n if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n open();\n }\n }}\n onClick={open}\n className=\"cursor-pointer rounded-[11px] border border-border bg-[var(--surface)] p-[10px_12px] shadow-[var(--shadow)] hover:border-[var(--border-strong)] hover:shadow-[var(--shadow-lg)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--brand)]/30\"\n >\n <div className=\"mb-[5px] flex items-center gap-[7px]\">\n <span className=\"font-mono text-meta text-[var(--text-3)]\">{bead.id}</span>\n <StatusChip status={blocked && bead.status === \"open\" ? \"blocked\" : bead.status} />\n <span className=\"flex-1\" />\n <PriorityChip p={bead.priority} />\n </div>\n <div className=\"text-label font-medium leading-[1.35] text-[var(--text)] [text-wrap:pretty]\">{bead.title}</div>\n <div className=\"mt-[6px] flex flex-wrap items-center gap-x-[8px] gap-y-1 text-meta text-[var(--text-3)]\">\n {agent && (\n <span className=\"inline-flex items-center gap-[5px]\">\n <AgentIcon agent={agent} size={14} />\n {agent.name}\n </span>\n )}\n <span>\n {completed ? \"closed \" : \"\"}\n {relTime(completed ? (bead.closed_at ?? bead.updated_at) : bead.updated_at)}\n </span>\n {blockers.length > 0 && (\n <span className=\"truncate font-mono\" title={`blocked by ${blockers.join(\", \")}`}>\n ⛔ {blockers.join(\", \")}\n </span>\n )}\n </div>\n </article>\n );\n}\n"],"names":["ALL","QUEUED_STATUSES","isQueued","b","includes","status","labels","rank","blocked","AllAgentQueueView","data","projectData","isLoading","loadingProjects","projects","filter","p","hasBeads","results","queries","map","queryKey","id","queryFn","list","retry","refetchInterval","q","state","meta","pollIntervalMs","searchParams","updateUrl","drawer","viewerMode","readOnly","dataFor","findIndex","identities","find","r","agents","enabledAgents","a","enabled","requestedRepo","get","requestedAgent","repo","some","agent","setParam","key","next","params","delete","set","showDone","setShowDone","now","sections","project","i","query","beads","index","queued","assignee","bead","blockers","items","sort","priority","localeCompare","done","shown","settled","every","failed","isError","total","reduce","sum","s","length","doneTotal","withItems","repoCount","agentCount","className","title","standalone","subtitle","controls","href","size","center","value","onChange","e","target","name","extra","on","actions","role","RepoSection","showHeading","onOpen","openBead","page","item","QueueCard","projectId","level","completed","open","tabIndex","undefined","onKeyDown","event","currentTarget","preventDefault","onClick","closed_at","updated_at","join"],"mappings":"wDACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAMA,IAAMC,EAAkB,CAAC,OAAQ,cAAe,SAAU,UAAU,CAG9DM,EAAO,CAACJ,EAASK,IAAmC,gBAAbL,EAAEE,MAAM,EAAmC,WAAbF,EAAEE,MAAM,CAAgB,EAAIG,EAAU,EAAI,EAkNrH,SAASkG,EAAY,SACnB7C,CAAO,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,gBACzDkD,EAAQ,CAAC,KAAK,EAAEA,EAAMmD,IAAI,CAAA,CAAE,CAAG,GAAG,2FAIrCf,EAAUlE,GAAG,CAAC,CAAC,SAAEyC,CAAO,CAAES,OAAK,MAAEI,CAAI,CAAE,GACrC,CAAA,EAAA,EAAA,GAAA,EAACgC,EAAAA,CAEC7C,QAASA,EACTS,MAAOA,EACPI,KAAMA,EACNjC,OAAQH,EACRqE,YAtMN,KAsMmB3D,EACb4D,OADsB5G,AACdiC,EAAO4E,QAAQ,EANlBhD,EAAQvC,EAAE,MAtBvB,CAAA,EAAA,EAAA,GAAA,EAAC,MAAA,CAAImE,UAAU,2DAAkD,aAkCnE,CAAA,EAAA,EAAA,GAAA,EAAC,MAAA,CAAIA,UAAU,yFACb,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAW,CAAA,CAAA,QAGhB,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAc,CAAA,CAACxD,OAAQA,EAAQG,QAASA,EAASD,SAAUA,MAGlE"}
@@ -1,3 +1,3 @@
1
- module.exports=[74485,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(19107),f=a.i(85274),g=a.i(48414),h=a.i(76983),i=a.i(69937),j=a.i(95321),k=a.i(41865),l=a.i(44925),m=a.i(52025),n=a.i(8725),o=a.i(81817),p=a.i(47481),q=a.i(23764),r=a.i(97618),s=a.i(18167),t=a.i(34799),u=a.i(82451);function v({project:a,data:e,completed:g,readOnly:i,showHeading:k,selectedBeadId:l,onSelect:m,onOpen:n}){let{page:o}=(0,p.f)(),r=c.useMemo(()=>e?.beads??[],[e]),s=c.useMemo(()=>(0,u.Z)(r),[r]),t=c.useMemo(()=>r.filter(a=>(0,u.G)(a,s)),[r,s]),w=c.useMemo(()=>r.filter(u.w),[r]),x=e?.meta?.humanActor,y=c.useMemo(()=>r.filter(a=>(0,u.F)(a,x)),[r,x]),z=a.id,A=c.useCallback(a=>m(a?{projectId:z,beadId:a}:null),[m,z]),B=c.useCallback(a=>n(z,a),[n,z]),C=c.useCallback(()=>{},[]);return(0,b.jsx)(f.l,{value:{projectId:z,beads:r,index:s,meta:e?.meta,humanAllowlist:e?.meta?.humanAllowlist??[],readOnly:i,loading:!1,selectedBeadId:l,selectBead:A,openDetail:B,pushDetail:B,openCreate:C,openEpic:C},children:(0,b.jsxs)("section",{"data-repo-section":z,"aria-label":a.name,className:"flex flex-col gap-3",children:[k&&(0,b.jsxs)("h2",{className:"flex items-baseline gap-2 text-body font-semibold text-[var(--text)]",children:[(0,b.jsx)(d.default,{href:(0,q.l)(z,o),className:"hover:underline",children:a.name}),(0,b.jsxs)("span",{className:"text-meta font-normal text-[var(--text-3)]",children:[t.length+w.length+y.length," waiting",g.length>0?` \xb7 ${g.length} completed`:""]})]}),t.map(a=>(0,b.jsx)(j.U,{gate:a},a.id)),w.map(a=>(0,b.jsx)(j.p,{bead:a},a.id)),y.map(a=>(0,b.jsx)(j.g,{bead:a},a.id)),g.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.g,{level:k?3:2}),g.map(a=>(0,b.jsx)(j.g,{bead:a,completed:!0},a.id))]})]})})}a.s(["AllNeedsYouView",0,function(){let{projects:a,results:f,loadingProjects:j}=(0,n.p)(),p=(0,t.f)(),q=p.data?.readOnly??!0,{searchParams:w,updateUrl:x}=(0,r.f)(),y=w.get("repo")??"",z=a.some(a=>a.id===y)?y:"",A="1"===w.get(h.Q),B=a.map((a,b)=>({project:a,query:f[b]})),C=B.filter(({project:a})=>""===z||a.id===z),D=!j&&C.every(({query:a})=>!a.isLoading),E=C.filter(({query:a})=>a.isError);(0,o.x)(C.map(({project:a})=>a.id));let[F,G]=c.useState(null),H=(0,g.X)(),I=H.openBead,J=c.useCallback(b=>f[a.findIndex(a=>a.id===b)]?.data,[f,a]),K=c.useCallback((a,b)=>G(b?{projectId:a,beadId:b}:null),[]),L=c.useCallback((a,b)=>{K(a,b),I(a,b)},[K,I]),M=new Map;for(let{project:a,query:b}of B)M.set(a.id,(0,u.e)(b.data?.beads??[],b.data?.meta?.humanActor));let N=C.reduce((a,{project:b})=>a+(M.get(b.id)??0),0),O=(0,s.f)(),P=new Map;if(A)for(let{project:a,query:b}of B){let c=b.data?.meta?.humanActor;P.set(a.id,(b.data?.beads??[]).filter(a=>(0,u.M)(a,c,O)).sort(u.d))}let Q=a=>P.get(a)?.length??0,R=C.reduce((a,{project:b})=>a+Q(b.id),0),S=C.filter(({project:a})=>(M.get(a.id)??0)+Q(a.id)>0);return(0,b.jsxs)("div",{className:"flex h-full flex-col overflow-hidden bg-background text-foreground text-body",children:[(0,b.jsx)(l.e,{}),(0,b.jsx)(k.f,{title:"Needs You",standalone:!0,subtitle:D?(0===N?"nothing waiting":`${N} waiting on you`)+(A?` \xb7 ${R} completed`:"")+(0===N?"":` \xb7 ${""===z?"all repos":"1 repo"}`):"Loading…",controls:(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(d.default,{href:"/",className:"tap-target inline-flex items-center justify-center gap-1.5 text-label text-[var(--text-3)] hover:text-[var(--text)] max-md:-ml-2 max-md:px-2",children:[(0,b.jsx)(e.f,{size:14,"aria-hidden":"true",className:"max-md:size-5"}),(0,b.jsx)("span",{className:"sr-only",children:"Projects"})]})}),center:(0,b.jsxs)(i.$,{size:"sm",className:"min-w-0 max-w-full md:max-w-[20rem]","aria-label":"Filter by repo",value:z,onChange:a=>{let b;return b=a.target.value,x(a=>{""===b?a.delete("repo"):a.set("repo",b)})},children:[(0,b.jsx)("option",{value:"",children:"All repos"}),a.map(a=>(0,b.jsxs)("option",{value:a.id,children:[a.name,(M.get(a.id)??0)>0?` (${M.get(a.id)})`:""]},a.id))]}),extra:(0,b.jsx)(h.w,{on:A,onChange:a=>x(b=>{a?b.set(h.Q,"1"):b.delete(h.Q)})}),actions:(0,b.jsx)(m.f,{})}),(0,b.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-3",children:D?(0,b.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col gap-6",children:[E.map(({project:a})=>(0,b.jsxs)("p",{role:"status",className:"rounded-[10px] border border-border bg-[var(--surface)] p-3 text-label text-[var(--text-2)]",children:["Couldn’t read ",a.name,", so anything waiting there is not listed."]},a.id)),0===N&&0===R?(0,b.jsxs)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:[E.length>0?"Nothing waiting in the repos that could be read":"🎉 Nothing needs you right now",E.length>0?"":""===z?" in any repo":" in this repo",". Agents flag beads here with"," ",(0,b.jsx)("span",{className:"font-mono",children:"bd human"}),", human-approval gates (",(0,b.jsx)("span",{className:"font-mono",children:"bd gate create --type human"}),") show up once their blockers clear, and beads assigned to you are listed too."]}):S.map(({project:a,query:c})=>(0,b.jsx)(v,{project:a,data:c.data,completed:P.get(a.id)??[],readOnly:q,showHeading:""===z,selectedBeadId:F?.projectId===a.id?F.beadId:null,onSelect:G,onOpen:L},a.id))]}):(0,b.jsx)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:"Loading…"})}),(0,b.jsx)(g.m,{drawer:H,dataFor:J,readOnly:q,onSelect:K})]})}])}];
1
+ module.exports=[74485,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(38246),e=a.i(19107),f=a.i(85274),g=a.i(48414),h=a.i(76983),i=a.i(69937),j=a.i(95321),k=a.i(41865),l=a.i(44925),m=a.i(52025),n=a.i(8725),o=a.i(81817),p=a.i(47481),q=a.i(23764),r=a.i(97618),s=a.i(18167),t=a.i(34799),u=a.i(82451);function v({project:a,data:e,completed:g,readOnly:i,showHeading:k,selectedBeadId:l,onSelect:m,onOpen:n}){let{page:o}=(0,p.f)(),r=c.useMemo(()=>e?.beads??[],[e]),s=c.useMemo(()=>(0,u.Z)(r),[r]),t=c.useMemo(()=>r.filter(a=>(0,u.G)(a,s)),[r,s]),w=c.useMemo(()=>r.filter(u.w),[r]),x=e?.meta?.humanActor,y=c.useMemo(()=>r.filter(a=>(0,u.F)(a,x)),[r,x]),z=a.id,A=c.useCallback(a=>m(a?{projectId:z,beadId:a}:null),[m,z]),B=c.useCallback(a=>n(z,a),[n,z]),C=c.useCallback(()=>{},[]);return(0,b.jsx)(f.l,{value:{projectId:z,beads:r,index:s,meta:e?.meta,humanAllowlist:e?.meta?.humanAllowlist??[],readOnly:i,loading:!1,selectedBeadId:l,selectBead:A,openDetail:B,pushDetail:B,openCreate:C,openEpic:C},children:(0,b.jsxs)("section",{"data-repo-section":z,"aria-label":a.name,className:"flex flex-col gap-3",children:[k&&(0,b.jsxs)("h2",{className:"flex items-baseline gap-2 text-body font-semibold text-[var(--text)]",children:[(0,b.jsx)(d.default,{href:(0,q.l)(z,o),className:"hover:underline",children:a.name}),(0,b.jsxs)("span",{className:"text-meta font-normal text-[var(--text-3)]",children:[t.length+w.length+y.length," waiting",g.length>0?` \xb7 ${g.length} completed`:""]})]}),t.map(a=>(0,b.jsx)(j.U,{gate:a},a.id)),w.map(a=>(0,b.jsx)(j.p,{bead:a},a.id)),y.map(a=>(0,b.jsx)(j.g,{bead:a},a.id)),g.length>0&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h.g,{level:k?3:2}),g.map(a=>(0,b.jsx)(j.g,{bead:a,completed:!0},a.id))]})]})})}a.s(["AllNeedsYouView",0,function(){let{projects:a,results:f,loadingProjects:j}=(0,n.p)(),p=(0,t.f)(),q=p.data?.readOnly??!0,{searchParams:w,updateUrl:x}=(0,r.f)(),y=w.get("repo")??"",z=a.some(a=>a.id===y)?y:"",A="1"===w.get(h.Q),B=a.map((a,b)=>({project:a,query:f[b]})),C=B.filter(({project:a})=>""===z||a.id===z),D=!j&&C.every(({query:a})=>!a.isLoading),E=C.filter(({query:a})=>a.isError);(0,o.x)(C.map(({project:a})=>a.id));let[F,G]=c.useState(null),H=(0,g.X)(),I=H.openBead,J=c.useCallback(b=>f[a.findIndex(a=>a.id===b)]?.data,[f,a]),K=c.useCallback((a,b)=>G(b?{projectId:a,beadId:b}:null),[]),L=c.useCallback((a,b)=>{K(a,b),I(a,b)},[K,I]),M=new Map;for(let{project:a,query:b}of B)M.set(a.id,(0,u.e)(b.data?.beads??[],b.data?.meta?.humanActor));let N=C.reduce((a,{project:b})=>a+(M.get(b.id)??0),0),O=(0,s.f)(),P=new Map;if(A)for(let{project:a,query:b}of B){let c=b.data?.meta?.humanActor;P.set(a.id,(b.data?.beads??[]).filter(a=>(0,u.M)(a,c,O)).sort(u.d))}let Q=a=>P.get(a)?.length??0,R=C.reduce((a,{project:b})=>a+Q(b.id),0),S=C.filter(({project:a})=>(M.get(a.id)??0)+Q(a.id)>0);return(0,b.jsxs)("div",{className:"flex h-full flex-col overflow-hidden bg-background text-foreground text-body",children:[(0,b.jsx)(l.e,{}),(0,b.jsx)(k.f,{title:"Needs You",standalone:!0,subtitle:D?(0===N?"nothing waiting":`${N} waiting on you`)+(A?` \xb7 ${R} completed`:"")+(0===N?"":` \xb7 ${""===z?"all repos":"1 repo"}`):"Loading…",controls:(0,b.jsx)(b.Fragment,{children:(0,b.jsxs)(d.default,{href:"/",className:"tap-target inline-flex items-center justify-center gap-1.5 text-label text-[var(--text-3)] hover:text-[var(--text)] max-md:-ml-2 max-md:px-2",children:[(0,b.jsx)(e.f,{size:14,"aria-hidden":"true",className:"max-md:size-5"}),(0,b.jsx)("span",{className:"sr-only",children:"Projects"})]})}),center:(0,b.jsxs)(i.$,{size:"sm",className:"min-w-0 max-w-full md:max-w-[20rem]","aria-label":"Filter by repo",value:z,onChange:a=>{let b;return b=a.target.value,x(a=>{""===b?a.delete("repo"):a.set("repo",b)})},children:[(0,b.jsx)("option",{value:"",children:"All repos"}),a.map(a=>(0,b.jsxs)("option",{value:a.id,children:[a.name,(M.get(a.id)??0)>0?` (${M.get(a.id)})`:""]},a.id))]}),extra:(0,b.jsx)(h.w,{on:A,onChange:a=>x(b=>{a?b.set(h.Q,"1"):b.delete(h.Q)})}),actions:(0,b.jsx)("div",{className:"max-md:hidden",children:(0,b.jsx)(m.f,{})})}),(0,b.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-3",children:[D?(0,b.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col gap-6",children:[E.map(({project:a})=>(0,b.jsxs)("p",{role:"status",className:"rounded-[10px] border border-border bg-[var(--surface)] p-3 text-label text-[var(--text-2)]",children:["Couldn’t read ",a.name,", so anything waiting there is not listed."]},a.id)),0===N&&0===R?(0,b.jsxs)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:[E.length>0?"Nothing waiting in the repos that could be read":"🎉 Nothing needs you right now",E.length>0?"":""===z?" in any repo":" in this repo",". Agents flag beads here with"," ",(0,b.jsx)("span",{className:"font-mono",children:"bd human"}),", human-approval gates (",(0,b.jsx)("span",{className:"font-mono",children:"bd gate create --type human"}),") show up once their blockers clear, and beads assigned to you are listed too."]}):S.map(({project:a,query:c})=>(0,b.jsx)(v,{project:a,data:c.data,completed:P.get(a.id)??[],readOnly:q,showHeading:""===z,selectedBeadId:F?.projectId===a.id?F.beadId:null,onSelect:G,onOpen:L},a.id))]}):(0,b.jsx)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:"Loading…"}),(0,b.jsx)("div",{className:"mx-auto mt-8 flex max-w-3xl justify-end border-t border-border pt-3 md:hidden",children:(0,b.jsx)(m.f,{})})]}),(0,b.jsx)(g.m,{drawer:H,dataFor:J,readOnly:q,onSelect:K})]})}])}];
2
2
 
3
3
  //# sourceMappingURL=components_all-needs-you-view_tsx_0145u7lt1nwij._.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../components/all-needs-you-view.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport Link from \"next/link\";\nimport { ArrowLeft } from \"lucide-react\";\nimport { AppProvider } from \"@/components/app-context\";\nimport { RepoBeadDrawer, useRepoDrawer } from \"@/components/repo-bead-drawer\";\nimport { CompletedHeading, CompletedToggle, DONE_PARAM } from \"@/components/completed-toggle\";\nimport { SelectField } from \"@/components/controls\";\nimport { AssignedCard, GateCard, NeedsYouCard } from \"@/components/needs-you-view\";\nimport { PageHeader } from \"@/components/page-header\";\nimport { ReadOnlyBanner } from \"@/components/read-only-banner\";\nimport { ThemeToggle } from \"@/components/theme-toggle\";\nimport { useAllRepoBeads } from \"@/hooks/use-all-repo-beads\";\nimport { useBeadsStreams } from \"@/hooks/use-beads-stream\";\nimport { useDefaultPage } from \"@/hooks/use-default-view\";\nimport { projectHref } from \"@/lib/default-page\";\nimport { useUrlState } from \"@/hooks/use-url-state\";\nimport { useNow } from \"@/hooks/use-now\";\nimport { useViewerMode } from \"@/hooks/use-viewer-mode\";\nimport type { BeadsResponse, ProjectInfo } from \"@/lib/api-client\";\nimport type { Bead } from \"@/lib/schema\";\nimport {\n assignedToYou,\n byClosedAtDesc,\n completedForYou,\n countNeedsYou,\n makeIndex,\n needsHuman,\n readyHumanGate,\n} from \"@/lib/beads-view\";\n\n/** `?repo=` value meaning \"every repo\" (the param is simply absent). */\nconst ALL = \"\";\n\n/** The one selected card on the page: a bead id is only unique within its repo. */\ntype Selection = { projectId: string; beadId: string };\n\n/**\n * \"Needs You\" across every registered repo: the same inbox as the per-project view (beads an agent\n * flagged with `bd human`, human-approval gates that are ready to approve, and beads assigned to\n * you), gathered from all projects, with a repo filter. Each repo's cards render inside that repo's own app scope, so\n * Respond, Dismiss and Approve act on the right project exactly as they do in the project view.\n */\nexport function AllNeedsYouView() {\n // A folder that lost its .beads cannot be read; the launcher already flags it, so it is left out here.\n const { projects, results, loadingProjects } = useAllRepoBeads();\n const viewerMode = useViewerMode();\n const readOnly = viewerMode.data?.readOnly ?? true;\n const { searchParams, updateUrl } = useUrlState();\n const requested = searchParams.get(\"repo\") ?? ALL;\n // An unknown repo (a stale link, a removed project) falls back to All rather than an empty page.\n const repo = projects.some((p) => p.id === requested) ? requested : ALL;\n const setRepo = (next: string) =>\n updateUrl((params) => {\n if (next === ALL) params.delete(\"repo\");\n else params.set(\"repo\", next);\n });\n\n // The toggle at the top: also list what was completed in the last few days (off by default).\n const showDone = searchParams.get(DONE_PARAM) === \"1\";\n const setShowDone = (next: boolean) =>\n updateUrl((params) => {\n if (next) params.set(DONE_PARAM, \"1\");\n else params.delete(DONE_PARAM);\n });\n\n const sections = projects.map((project, i) => ({ project, query: results[i] }));\n const shown = sections.filter(({ project }) => repo === ALL || project.id === repo);\n const settled = !loadingProjects && shown.every(({ query }) => !query.isLoading);\n const failed = shown.filter(({ query }) => query.isError);\n // New flags land as soon as a repo's .beads changes, as in the project view; the poll is the fallback.\n useBeadsStreams(shown.map(({ project }) => project.id));\n // One selection for the whole page, so only one card carries the ring whichever repo it is in.\n const [selected, setSelected] = React.useState<Selection | null>(null);\n // Opening a bead shows its drawer over this page, as the Epics page does.\n const drawer = useRepoDrawer();\n const openBead = drawer.openBead;\n const dataFor = React.useCallback(\n (id: string) => results[projects.findIndex((p) => p.id === id)]?.data,\n [results, projects],\n );\n const selectIn = React.useCallback(\n (projectId: string, id: string | null) => setSelected(id ? { projectId, beadId: id } : null),\n [],\n );\n const openIn = React.useCallback(\n (projectId: string, id: string) => {\n selectIn(projectId, id);\n openBead(projectId, id);\n },\n [selectIn, openBead],\n );\n\n // Counts per repo are always the whole picture, so the filter labels stay honest.\n const counts = new Map<string, number>();\n for (const { project, query } of sections) {\n counts.set(project.id, countNeedsYou(query.data?.beads ?? [], query.data?.meta?.humanActor));\n }\n const total = shown.reduce((sum, { project }) => sum + (counts.get(project.id) ?? 0), 0);\n // Recently completed beads, per repo, newest first; empty while the toggle is off.\n const now = useNow();\n const completed = new Map<string, Bead[]>();\n if (showDone) {\n for (const { project, query } of sections) {\n const actor = query.data?.meta?.humanActor;\n completed.set(project.id, (query.data?.beads ?? []).filter((b) => completedForYou(b, actor, now)).sort(byClosedAtDesc));\n }\n }\n const doneCount = (id: string) => completed.get(id)?.length ?? 0;\n const doneTotal = shown.reduce((sum, { project }) => sum + doneCount(project.id), 0);\n const withItems = shown.filter(({ project }) => (counts.get(project.id) ?? 0) + doneCount(project.id) > 0);\n\n return (\n <div className=\"flex h-full flex-col overflow-hidden bg-background text-foreground text-body\">\n <ReadOnlyBanner />\n <PageHeader\n title=\"Needs You\"\n standalone\n subtitle={\n !settled\n ? \"Loading…\"\n : (total === 0 ? \"nothing waiting\" : `${total} waiting on you`) +\n (showDone ? ` · ${doneTotal} completed` : \"\") +\n (total === 0 ? \"\" : ` · ${repo === ALL ? \"all repos\" : \"1 repo\"}`)\n }\n controls={\n <>\n <Link\n href=\"/\"\n className=\"tap-target inline-flex items-center justify-center gap-1.5 text-label text-[var(--text-3)] hover:text-[var(--text)] max-md:-ml-2 max-md:px-2\"\n >\n <ArrowLeft size={14} aria-hidden=\"true\" className=\"max-md:size-5\" />\n {/* The arrow stands alone (a 44px target on phones); the name stays for screen readers. */}\n <span className=\"sr-only\">Projects</span>\n </Link>\n </>\n }\n center={\n // No visible \"Repo\" label: it would push the dropdown off the centre, and the first option (\"All repos\") says what it is.\n <SelectField\n size=\"sm\"\n className=\"min-w-0 max-w-full md:max-w-[20rem]\"\n aria-label=\"Filter by repo\"\n value={repo}\n onChange={(e) => setRepo(e.target.value)}\n >\n <option value={ALL}>All repos</option>\n {projects.map((p) => (\n <option key={p.id} value={p.id}>\n {p.name}\n {(counts.get(p.id) ?? 0) > 0 ? ` (${counts.get(p.id)})` : \"\"}\n </option>\n ))}\n </SelectField>\n }\n extra={<CompletedToggle on={showDone} onChange={setShowDone} />}\n actions={<ThemeToggle />}\n />\n <div className=\"min-h-0 flex-1 overflow-y-auto px-4 py-3\">\n {!settled ? (\n <div className=\"p-10 text-center text-body text-[var(--text-3)]\">Loading…</div>\n ) : (\n <div className=\"mx-auto flex max-w-3xl flex-col gap-6\">\n {failed.map(({ project }) => (\n <p\n key={project.id}\n role=\"status\"\n className=\"rounded-[10px] border border-border bg-[var(--surface)] p-3 text-label text-[var(--text-2)]\"\n >\n Couldn’t read {project.name}, so anything waiting there is not listed.\n </p>\n ))}\n {total === 0 && doneTotal === 0 ? (\n <div className=\"p-10 text-center text-body text-[var(--text-3)]\">\n {failed.length > 0 ? \"Nothing waiting in the repos that could be read\" : \"🎉 Nothing needs you right now\"}\n {failed.length > 0 ? \"\" : repo === ALL ? \" in any repo\" : \" in this repo\"}. Agents flag beads here with{\" \"}\n <span className=\"font-mono\">bd human</span>, human-approval gates (\n <span className=\"font-mono\">bd gate create --type human</span>) show up once their\n blockers clear, and beads assigned to you are listed too.\n </div>\n ) : (\n withItems.map(({ project, query }) => (\n <RepoSection\n key={project.id}\n project={project}\n data={query.data}\n completed={completed.get(project.id) ?? []}\n readOnly={readOnly}\n showHeading={repo === ALL}\n selectedBeadId={selected?.projectId === project.id ? selected.beadId : null}\n onSelect={setSelected}\n onOpen={openIn}\n />\n ))\n )}\n </div>\n )}\n </div>\n <RepoBeadDrawer drawer={drawer} dataFor={dataFor} readOnly={readOnly} onSelect={selectIn} />\n </div>\n );\n}\n\n/** One repo's cards, inside that repo's own app scope. */\nfunction RepoSection({\n project,\n data,\n completed,\n readOnly,\n showHeading,\n selectedBeadId,\n onSelect,\n onOpen,\n}: {\n project: ProjectInfo;\n data: BeadsResponse | undefined;\n /** Beads completed in the last few days; empty unless the page's toggle is on. */\n completed: Bead[];\n readOnly: boolean;\n showHeading: boolean;\n selectedBeadId: string | null;\n onSelect: (selection: Selection | null) => void;\n onOpen: (projectId: string, id: string) => void;\n}) {\n const { page } = useDefaultPage();\n const beads = React.useMemo(() => data?.beads ?? [], [data]);\n const index = React.useMemo(() => makeIndex(beads), [beads]);\n const gates = React.useMemo(() => beads.filter((b) => readyHumanGate(b, index)), [beads, index]);\n const inbox = React.useMemo(() => beads.filter(needsHuman), [beads]);\n const actor = data?.meta?.humanActor;\n const mine = React.useMemo(() => beads.filter((b) => assignedToYou(b, actor)), [beads, actor]);\n const projectId = project.id;\n const selectBead = React.useCallback(\n (id: string | null) => onSelect(id ? { projectId, beadId: id } : null),\n [onSelect, projectId],\n );\n const openDetail = React.useCallback((id: string) => onOpen(projectId, id), [onOpen, projectId]);\n const noop = React.useCallback(() => {}, []);\n\n return (\n <AppProvider\n value={{\n projectId,\n beads,\n index,\n meta: data?.meta,\n humanAllowlist: data?.meta?.humanAllowlist ?? [],\n readOnly,\n loading: false,\n selectedBeadId,\n selectBead,\n openDetail,\n pushDetail: openDetail,\n openCreate: noop,\n openEpic: noop,\n }}\n >\n <section data-repo-section={projectId} aria-label={project.name} className=\"flex flex-col gap-3\">\n {showHeading && (\n <h2 className=\"flex items-baseline gap-2 text-body font-semibold text-[var(--text)]\">\n <Link href={projectHref(projectId, page)} className=\"hover:underline\">\n {project.name}\n </Link>\n <span className=\"text-meta font-normal text-[var(--text-3)]\">\n {gates.length + inbox.length + mine.length} waiting\n {completed.length > 0 ? ` · ${completed.length} completed` : \"\"}\n </span>\n </h2>\n )}\n {gates.map((g) => (\n <GateCard key={g.id} gate={g} />\n ))}\n {inbox.map((b) => (\n <NeedsYouCard key={b.id} bead={b} />\n ))}\n {mine.map((b) => (\n <AssignedCard key={b.id} bead={b} />\n ))}\n {completed.length > 0 && (\n <>\n <CompletedHeading level={showHeading ? 3 : 2} />\n {completed.map((b) => (\n <AssignedCard key={b.id} bead={b} completed />\n ))}\n </>\n )}\n </section>\n </AppProvider>\n );\n}\n"],"names":["ALL","AllNeedsYouView","projects","results","loadingProjects","viewerMode","readOnly","data","searchParams","updateUrl","requested","get","repo","some","p","id","setRepo","next","params","delete","set","showDone","setShowDone","sections","map","project","i","query","shown","filter","settled","every","isLoading","failed","isError","selected","setSelected","drawer","openBead","dataFor","findIndex","selectIn","projectId","beadId","openIn","counts","Map","beads","meta","humanActor","total","reduce","sum","now","completed","actor","b","sort","doneCount","length","doneTotal","withItems","className","title","standalone","subtitle","controls","href","size","center","value","onChange","e","target","name","extra","on","actions","role","RepoSection","showHeading","selectedBeadId","onSelect","onOpen","page","index","gates","inbox","mine","selectBead","openDetail","noop","humanAllowlist","loading","pushDetail","openCreate","openEpic","g","gate","bead","level"],"mappings":"wDACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,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D,eAsCrE,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAc,CAAA,CAACzB,OAAQA,EAAQE,QAASA,EAASjC,SAAUA,EAAU4E,SAAUzC,MAGtF"}
1
+ {"version":3,"sources":["../../../../components/all-needs-you-view.tsx"],"sourcesContent":["\"use client\";\nimport * as React from \"react\";\nimport Link from \"next/link\";\nimport { ArrowLeft } from \"lucide-react\";\nimport { AppProvider } from \"@/components/app-context\";\nimport { RepoBeadDrawer, useRepoDrawer } from \"@/components/repo-bead-drawer\";\nimport { CompletedHeading, CompletedToggle, DONE_PARAM } from \"@/components/completed-toggle\";\nimport { SelectField } from \"@/components/controls\";\nimport { AssignedCard, GateCard, NeedsYouCard } from \"@/components/needs-you-view\";\nimport { PageHeader } from \"@/components/page-header\";\nimport { ReadOnlyBanner } from \"@/components/read-only-banner\";\nimport { ThemeToggle } from \"@/components/theme-toggle\";\nimport { useAllRepoBeads } from \"@/hooks/use-all-repo-beads\";\nimport { useBeadsStreams } from \"@/hooks/use-beads-stream\";\nimport { useDefaultPage } from \"@/hooks/use-default-view\";\nimport { projectHref } from \"@/lib/default-page\";\nimport { useUrlState } from \"@/hooks/use-url-state\";\nimport { useNow } from \"@/hooks/use-now\";\nimport { useViewerMode } from \"@/hooks/use-viewer-mode\";\nimport type { BeadsResponse, ProjectInfo } from \"@/lib/api-client\";\nimport type { Bead } from \"@/lib/schema\";\nimport {\n assignedToYou,\n byClosedAtDesc,\n completedForYou,\n countNeedsYou,\n makeIndex,\n needsHuman,\n readyHumanGate,\n} from \"@/lib/beads-view\";\n\n/** `?repo=` value meaning \"every repo\" (the param is simply absent). */\nconst ALL = \"\";\n\n/** The one selected card on the page: a bead id is only unique within its repo. */\ntype Selection = { projectId: string; beadId: string };\n\n/**\n * \"Needs You\" across every registered repo: the same inbox as the per-project view (beads an agent\n * flagged with `bd human`, human-approval gates that are ready to approve, and beads assigned to\n * you), gathered from all projects, with a repo filter. Each repo's cards render inside that repo's own app scope, so\n * Respond, Dismiss and Approve act on the right project exactly as they do in the project view.\n */\nexport function AllNeedsYouView() {\n // A folder that lost its .beads cannot be read; the launcher already flags it, so it is left out here.\n const { projects, results, loadingProjects } = useAllRepoBeads();\n const viewerMode = useViewerMode();\n const readOnly = viewerMode.data?.readOnly ?? true;\n const { searchParams, updateUrl } = useUrlState();\n const requested = searchParams.get(\"repo\") ?? ALL;\n // An unknown repo (a stale link, a removed project) falls back to All rather than an empty page.\n const repo = projects.some((p) => p.id === requested) ? requested : ALL;\n const setRepo = (next: string) =>\n updateUrl((params) => {\n if (next === ALL) params.delete(\"repo\");\n else params.set(\"repo\", next);\n });\n\n // The toggle at the top: also list what was completed in the last few days (off by default).\n const showDone = searchParams.get(DONE_PARAM) === \"1\";\n const setShowDone = (next: boolean) =>\n updateUrl((params) => {\n if (next) params.set(DONE_PARAM, \"1\");\n else params.delete(DONE_PARAM);\n });\n\n const sections = projects.map((project, i) => ({ project, query: results[i] }));\n const shown = sections.filter(({ project }) => repo === ALL || project.id === repo);\n const settled = !loadingProjects && shown.every(({ query }) => !query.isLoading);\n const failed = shown.filter(({ query }) => query.isError);\n // New flags land as soon as a repo's .beads changes, as in the project view; the poll is the fallback.\n useBeadsStreams(shown.map(({ project }) => project.id));\n // One selection for the whole page, so only one card carries the ring whichever repo it is in.\n const [selected, setSelected] = React.useState<Selection | null>(null);\n // Opening a bead shows its drawer over this page, as the Epics page does.\n const drawer = useRepoDrawer();\n const openBead = drawer.openBead;\n const dataFor = React.useCallback(\n (id: string) => results[projects.findIndex((p) => p.id === id)]?.data,\n [results, projects],\n );\n const selectIn = React.useCallback(\n (projectId: string, id: string | null) => setSelected(id ? { projectId, beadId: id } : null),\n [],\n );\n const openIn = React.useCallback(\n (projectId: string, id: string) => {\n selectIn(projectId, id);\n openBead(projectId, id);\n },\n [selectIn, openBead],\n );\n\n // Counts per repo are always the whole picture, so the filter labels stay honest.\n const counts = new Map<string, number>();\n for (const { project, query } of sections) {\n counts.set(project.id, countNeedsYou(query.data?.beads ?? [], query.data?.meta?.humanActor));\n }\n const total = shown.reduce((sum, { project }) => sum + (counts.get(project.id) ?? 0), 0);\n // Recently completed beads, per repo, newest first; empty while the toggle is off.\n const now = useNow();\n const completed = new Map<string, Bead[]>();\n if (showDone) {\n for (const { project, query } of sections) {\n const actor = query.data?.meta?.humanActor;\n completed.set(project.id, (query.data?.beads ?? []).filter((b) => completedForYou(b, actor, now)).sort(byClosedAtDesc));\n }\n }\n const doneCount = (id: string) => completed.get(id)?.length ?? 0;\n const doneTotal = shown.reduce((sum, { project }) => sum + doneCount(project.id), 0);\n const withItems = shown.filter(({ project }) => (counts.get(project.id) ?? 0) + doneCount(project.id) > 0);\n\n return (\n <div className=\"flex h-full flex-col overflow-hidden bg-background text-foreground text-body\">\n <ReadOnlyBanner />\n <PageHeader\n title=\"Needs You\"\n standalone\n subtitle={\n !settled\n ? \"Loading…\"\n : (total === 0 ? \"nothing waiting\" : `${total} waiting on you`) +\n (showDone ? ` · ${doneTotal} completed` : \"\") +\n (total === 0 ? \"\" : ` · ${repo === ALL ? \"all repos\" : \"1 repo\"}`)\n }\n controls={\n <>\n <Link\n href=\"/\"\n className=\"tap-target inline-flex items-center justify-center gap-1.5 text-label text-[var(--text-3)] hover:text-[var(--text)] max-md:-ml-2 max-md:px-2\"\n >\n <ArrowLeft size={14} aria-hidden=\"true\" className=\"max-md:size-5\" />\n {/* The arrow stands alone (a 44px target on phones); the name stays for screen readers. */}\n <span className=\"sr-only\">Projects</span>\n </Link>\n </>\n }\n center={\n // No visible \"Repo\" label: it would push the dropdown off the centre, and the first option (\"All repos\") says what it is.\n <SelectField\n size=\"sm\"\n className=\"min-w-0 max-w-full md:max-w-[20rem]\"\n aria-label=\"Filter by repo\"\n value={repo}\n onChange={(e) => setRepo(e.target.value)}\n >\n <option value={ALL}>All repos</option>\n {projects.map((p) => (\n <option key={p.id} value={p.id}>\n {p.name}\n {(counts.get(p.id) ?? 0) > 0 ? ` (${counts.get(p.id)})` : \"\"}\n </option>\n ))}\n </SelectField>\n }\n extra={<CompletedToggle on={showDone} onChange={setShowDone} />}\n actions={<div className=\"max-md:hidden\"><ThemeToggle /></div>}\n />\n <div className=\"min-h-0 flex-1 overflow-y-auto px-4 py-3\">\n {!settled ? (\n <div className=\"p-10 text-center text-body text-[var(--text-3)]\">Loading…</div>\n ) : (\n <div className=\"mx-auto flex max-w-3xl flex-col gap-6\">\n {failed.map(({ project }) => (\n <p\n key={project.id}\n role=\"status\"\n className=\"rounded-[10px] border border-border bg-[var(--surface)] p-3 text-label text-[var(--text-2)]\"\n >\n Couldn’t read {project.name}, so anything waiting there is not listed.\n </p>\n ))}\n {total === 0 && doneTotal === 0 ? (\n <div className=\"p-10 text-center text-body text-[var(--text-3)]\">\n {failed.length > 0 ? \"Nothing waiting in the repos that could be read\" : \"🎉 Nothing needs you right now\"}\n {failed.length > 0 ? \"\" : repo === ALL ? \" in any repo\" : \" in this repo\"}. Agents flag beads here with{\" \"}\n <span className=\"font-mono\">bd human</span>, human-approval gates (\n <span className=\"font-mono\">bd gate create --type human</span>) show up once their\n blockers clear, and beads assigned to you are listed too.\n </div>\n ) : (\n withItems.map(({ project, query }) => (\n <RepoSection\n key={project.id}\n project={project}\n data={query.data}\n completed={completed.get(project.id) ?? []}\n readOnly={readOnly}\n showHeading={repo === ALL}\n selectedBeadId={selected?.projectId === project.id ? selected.beadId : null}\n onSelect={setSelected}\n onOpen={openIn}\n />\n ))\n )}\n </div>\n )}\n <div className=\"mx-auto mt-8 flex max-w-3xl justify-end border-t border-border pt-3 md:hidden\">\n <ThemeToggle />\n </div>\n </div>\n <RepoBeadDrawer drawer={drawer} dataFor={dataFor} readOnly={readOnly} onSelect={selectIn} />\n </div>\n );\n}\n\n/** One repo's cards, inside that repo's own app scope. */\nfunction RepoSection({\n project,\n data,\n completed,\n readOnly,\n showHeading,\n selectedBeadId,\n onSelect,\n onOpen,\n}: {\n project: ProjectInfo;\n data: BeadsResponse | undefined;\n /** Beads completed in the last few days; empty unless the page's toggle is on. */\n completed: Bead[];\n readOnly: boolean;\n showHeading: boolean;\n selectedBeadId: string | null;\n onSelect: (selection: Selection | null) => void;\n onOpen: (projectId: string, id: string) => void;\n}) {\n const { page } = useDefaultPage();\n const beads = React.useMemo(() => data?.beads ?? [], [data]);\n const index = React.useMemo(() => makeIndex(beads), [beads]);\n const gates = React.useMemo(() => beads.filter((b) => readyHumanGate(b, index)), [beads, index]);\n const inbox = React.useMemo(() => beads.filter(needsHuman), [beads]);\n const actor = data?.meta?.humanActor;\n const mine = React.useMemo(() => beads.filter((b) => assignedToYou(b, actor)), [beads, actor]);\n const projectId = project.id;\n const selectBead = React.useCallback(\n (id: string | null) => onSelect(id ? { projectId, beadId: id } : null),\n [onSelect, projectId],\n );\n const openDetail = React.useCallback((id: string) => onOpen(projectId, id), [onOpen, projectId]);\n const noop = React.useCallback(() => {}, []);\n\n return (\n <AppProvider\n value={{\n projectId,\n beads,\n index,\n meta: data?.meta,\n humanAllowlist: data?.meta?.humanAllowlist ?? [],\n readOnly,\n loading: false,\n selectedBeadId,\n selectBead,\n openDetail,\n pushDetail: openDetail,\n openCreate: noop,\n openEpic: noop,\n }}\n >\n <section data-repo-section={projectId} aria-label={project.name} className=\"flex flex-col gap-3\">\n {showHeading && (\n <h2 className=\"flex items-baseline gap-2 text-body font-semibold text-[var(--text)]\">\n <Link href={projectHref(projectId, page)} className=\"hover:underline\">\n {project.name}\n </Link>\n <span className=\"text-meta font-normal text-[var(--text-3)]\">\n {gates.length + inbox.length + mine.length} waiting\n {completed.length > 0 ? ` · ${completed.length} completed` : \"\"}\n </span>\n </h2>\n )}\n {gates.map((g) => (\n <GateCard key={g.id} gate={g} />\n ))}\n {inbox.map((b) => (\n <NeedsYouCard key={b.id} bead={b} />\n ))}\n {mine.map((b) => (\n <AssignedCard key={b.id} bead={b} />\n ))}\n {completed.length > 0 && (\n <>\n <CompletedHeading level={showHeading ? 3 : 2} />\n {completed.map((b) => (\n <AssignedCard key={b.id} bead={b} completed />\n ))}\n </>\n )}\n </section>\n </AppProvider>\n );\n}\n"],"names":["ALL","AllNeedsYouView","projects","results","loadingProjects","viewerMode","readOnly","data","searchParams","updateUrl","requested","get","repo","some","p","id","setRepo","next","params","delete","set","showDone","setShowDone","sections","map","project","i","query","shown","filter","settled","every","isLoading","failed","isError","selected","setSelected","drawer","openBead","dataFor","findIndex","selectIn","projectId","beadId","openIn","counts","Map","beads","meta","humanActor","total","reduce","sum","now","completed","actor","b","sort","doneCount","length","doneTotal","withItems","className","title","standalone","subtitle","controls","href","size","center","value","onChange","e","target","name","extra","on","actions","role","RepoSection","showHeading","selectedBeadId","onSelect","onOpen","page","index","gates","inbox","mine","selectBead","openDetail","noop","humanAllowlist","loading","pushDetail","openCreate","openEpic","g","gate","bead","level"],"mappings":"wDACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,MACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OACA,EAAA,EAAA,CAAA,CAAA,OAGA,EAAA,EAAA,CAAA,CAAA,OA0LA,SAAS+E,EAAY,SACnBtD,CAAO,MACPlB,CAAI,WACJ+C,CAAS,UACThD,CAAQ,aACR0E,CAAW,gBACXC,CAAc,UACdC,CAAQ,QACRC,CAAM,CAWP,EACC,GAAM,MAAEC,CAAI,CAAE,CAAG,CAAA,EAAA,EAAA,CAAc,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,CAAA,EAAA,EAAA,GAAA,EAAC,OAAA,CAAK8D,UAAU,qBAAY,aAAe,2BAC3C,CAAA,EAAA,EAAA,GAAA,EAAC,OAAA,CAAKA,UAAU,qBAAY,gCAAkC,oFAIhED,EAAUrC,GAAG,CAAC,CAAC,SAAEC,CAAO,OAAEE,CAAK,CAAE,GAC/B,CAAA,EAAA,EAAA,GAAA,EAACoD,EAAAA,CAECtD,QAASA,EACTlB,KAAMoB,EAAMpB,IAAI,CAChB+C,UAAWA,EAAU3C,GAAG,CAACc,EAAQV,EAAE,GAAK,EAAE,CAC1CT,SAAUA,EACV0E,YA5JN,KA4JmBpE,EACbqE,OADsBjF,QACNmC,GAAUO,YAAcjB,EAAQV,EAAE,CAAGoB,EAASQ,MAAM,CAAG,KACvEuC,SAAU9C,EACV+C,OAAQvC,GARHnB,EAAQV,EAAE,MAvBvB,CAAA,EAAA,EAAA,GAAA,EAAC,MAAA,CAAI+C,UAAU,2DAAkD,aAqCnE,CAAA,EAAA,EAAA,GAAA,EAAC,MAAA,CAAIA,UAAU,yFACb,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAW,CAAA,CAAA,QAGhB,CAAA,EAAA,EAAA,GAAA,EAAC,EAAA,CAAc,CAAA,CAACzB,OAAQA,EAAQE,QAASA,EAASjC,SAAUA,EAAU4E,SAAUzC,MAGtF"}
@@ -7,9 +7,9 @@ globalThis.__BUILD_MANIFEST = {
7
7
  "static/chunks/0cz1d0mv5g_q7.js"
8
8
  ],
9
9
  "lowPriorityFiles": [
10
- "static/dmCQuxy1F19EnJNtsX7Eq/_buildManifest.js",
11
- "static/dmCQuxy1F19EnJNtsX7Eq/_ssgManifest.js",
12
- "static/dmCQuxy1F19EnJNtsX7Eq/_clientMiddlewareManifest.js"
10
+ "static/c4l-MFP3SkVkDfScgaKBz/_buildManifest.js",
11
+ "static/c4l-MFP3SkVkDfScgaKBz/_ssgManifest.js",
12
+ "static/c4l-MFP3SkVkDfScgaKBz/_clientMiddlewareManifest.js"
13
13
  ],
14
14
  "rootMainFiles": [
15
15
  "static/chunks/2x0qc_flzv-la.js",
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html><html lang="en" class="T19VSG_variable _8Li5zG_variable h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/0hsm618tqhuj4.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/2x0qc_flzv-la.js"/><script src="/_next/static/chunks/1oizlhl9fdqt_.js" async=""></script><script src="/_next/static/chunks/3-53rbq2namxd.js" async=""></script><script src="/_next/static/chunks/04lvtbsumb9l-.js" async=""></script><script src="/_next/static/chunks/turbopack-3-ry682tkyiqk.js" async=""></script><script src="/_next/static/chunks/15m6pkeh-tntg.js" async=""></script><script src="/_next/static/chunks/2ca16cvfmb3l3.js" async=""></script><script src="/_next/static/chunks/2r2ur0z_2nzy9.js" async=""></script><script src="/_next/static/chunks/1edn83cddp6lu.js" async=""></script><meta name="robots" content="noindex"/><title>Beadscope</title><meta name="description" content="A local web UI for the beads (bd) issue tracker"/><link rel="icon" href="/favicon.ico?favicon.2zdrk8nf2w92v.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="/icon.svg?icon.20nhmzpyywyzw.svg" sizes="any" type="image/svg+xml"/><link rel="apple-touch-icon" href="/apple-icon.png?apple-icon.3wegq_e2im0r7.png" sizes="180x180" type="image/png"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><script>(function(){try{
1
+ <!DOCTYPE html><html lang="en" class="T19VSG_variable _8Li5zG_variable h-full antialiased"><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="/_next/static/chunks/1oe0mygeinwa9.css" data-precedence="next"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/2x0qc_flzv-la.js"/><script src="/_next/static/chunks/1oizlhl9fdqt_.js" async=""></script><script src="/_next/static/chunks/3-53rbq2namxd.js" async=""></script><script src="/_next/static/chunks/04lvtbsumb9l-.js" async=""></script><script src="/_next/static/chunks/turbopack-3-ry682tkyiqk.js" async=""></script><script src="/_next/static/chunks/15m6pkeh-tntg.js" async=""></script><script src="/_next/static/chunks/2ca16cvfmb3l3.js" async=""></script><script src="/_next/static/chunks/2r2ur0z_2nzy9.js" async=""></script><script src="/_next/static/chunks/1edn83cddp6lu.js" async=""></script><meta name="robots" content="noindex"/><title>Beadscope</title><meta name="description" content="A local web UI for the beads (bd) issue tracker"/><link rel="icon" href="/favicon.ico?favicon.2zdrk8nf2w92v.ico" sizes="48x48" type="image/x-icon"/><link rel="icon" href="/icon.svg?icon.20nhmzpyywyzw.svg" sizes="any" type="image/svg+xml"/><link rel="apple-touch-icon" href="/apple-icon.png?apple-icon.3wegq_e2im0r7.png" sizes="180x180" type="image/png"/><meta name="next-size-adjust" content=""/><title>404: This page could not be found.</title><script>(function(){try{
2
2
  var P={"light":"light","dark":"dark","dracula":"dark","nord":"dark","solarized-dark":"dark","gruvbox-dark":"dark","tokyo-night":"dark","catppuccin-mocha":"dark","rose-pine":"dark"};
3
3
  var m=location.pathname.match(/^\/p\/([^/]+)/);
4
4
  var s=localStorage,k=m?"beadscope.theme."+decodeURIComponent(m[1]):"beadscope.theme";
@@ -9,4 +9,4 @@ if(c==="system")id=matchMedia("(prefers-color-scheme: dark)").matches?"dark":"li
9
9
  var d=document.documentElement;
10
10
  d.dataset.theme=id;
11
11
  d.classList.toggle("dark",P[id]==="dark");
12
- }catch(e){}})();</script><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="h-full"><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;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/2x0qc_flzv-la.js","static/chunks/1oizlhl9fdqt_.js","static/chunks/3-53rbq2namxd.js","static/chunks/04lvtbsumb9l-.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/2x0qc_flzv-la.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/15m6pkeh-tntg.js\"\n3:\"/_next/static/chunks/2ca16cvfmb3l3.js\"\n4:\"/_next/static/chunks/2r2ur0z_2nzy9.js\"\n5:\"/_next/static/chunks/1edn83cddp6lu.js\"\n6:I[28739,[\"$2\",\"$3\",\"$4\",\"$5\"],\"Providers\"]\n7:I[39756,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\n8:I[37457,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\nc:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"OutletBoundary\"]\nd:\"$Sreact.suspense\"\nf:\"ViewportBoundary\"\n10:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$f\"]\n12:\"MetadataBoundary\"\n13:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$12\"]\n15:I[68027,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\",1]\n:HL[\"/_next/static/chunks/0hsm618tqhuj4.css\",\"style\"]\na:X\nb:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:t:t:d:r:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@e\"}]}]]}],\"p\":false,\"v\":null}}]]\n9:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$a\"},\"c\":\"$Qb\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0hsm618tqhuj4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/15m6pkeh-tntg.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/2ca16cvfmb3l3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/2r2ur0z_2nzy9.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/1edn83cddp6lu.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"className\":\"T19VSG_variable _8Li5zG_variable h-full antialiased\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{\\nvar P={\\\"light\\\":\\\"light\\\",\\\"dark\\\":\\\"dark\\\",\\\"dracula\\\":\\\"dark\\\",\\\"nord\\\":\\\"dark\\\",\\\"solarized-dark\\\":\\\"dark\\\",\\\"gruvbox-dark\\\":\\\"dark\\\",\\\"tokyo-night\\\":\\\"dark\\\",\\\"catppuccin-mocha\\\":\\\"dark\\\",\\\"rose-pine\\\":\\\"dark\\\"};\\nvar m=location.pathname.match(/^\\\\/p\\\\/([^/]+)/);\\nvar s=localStorage,k=m?\\\"beadscope.theme.\\\"+decodeURIComponent(m[1]):\\\"beadscope.theme\\\";\\nvar c=s.getItem(k);\\nif(c!==\\\"system\\\"\u0026\u0026!(c in P))c=\\\"system\\\";\\nvar id=c;\\nif(c===\\\"system\\\")id=matchMedia(\\\"(prefers-color-scheme: dark)\\\").matches?\\\"dark\\\":\\\"light\\\";\\nvar d=document.documentElement;\\nd.dataset.theme=id;\\nd.classList.toggle(\\\"dark\\\",P[id]===\\\"dark\\\");\\n}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"className\":\"h-full\",\"children\":[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q9\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L10\",null,{\"children\":\"$L11\"}],[\"$\",\"$L13\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L14\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$15\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/0hsm618tqhuj4.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"dmCQuxy1F19EnJNtsX7Eq\"}\na:C\n11:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n16:I[27201,[\"$2\",\"$3\",\"$4\",\"$5\"],\"IconMark\"]\ne:null\n14:[[\"$\",\"title\",\"0\",{\"children\":\"Beadscope\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A local web UI for the beads (bd) issue tracker\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2zdrk8nf2w92v.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/icon.svg?icon.20nhmzpyywyzw.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"}],[\"$\",\"link\",\"4\",{\"rel\":\"apple-touch-icon\",\"href\":\"/apple-icon.png?apple-icon.3wegq_e2im0r7.png\",\"sizes\":\"180x180\",\"type\":\"image/png\"}],[\"$\",\"$L16\",\"5\",{}]]\n"])</script></body></html>
12
+ }catch(e){}})();</script><script src="/_next/static/chunks/0cz1d0mv5g_q7.js" noModule=""></script></head><body class="h-full"><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;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><!--$--><!--/$--><section aria-label="Notifications alt+T" tabindex="-1" aria-live="polite" aria-relevant="additions text" aria-atomic="false"></section><script id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/2x0qc_flzv-la.js","static/chunks/1oizlhl9fdqt_.js","static/chunks/3-53rbq2namxd.js","static/chunks/04lvtbsumb9l-.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/2x0qc_flzv-la.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/15m6pkeh-tntg.js\"\n3:\"/_next/static/chunks/2ca16cvfmb3l3.js\"\n4:\"/_next/static/chunks/2r2ur0z_2nzy9.js\"\n5:\"/_next/static/chunks/1edn83cddp6lu.js\"\n6:I[28739,[\"$2\",\"$3\",\"$4\",\"$5\"],\"Providers\"]\n7:I[39756,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\n8:I[37457,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\"]\nc:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"OutletBoundary\"]\nd:\"$Sreact.suspense\"\nf:\"ViewportBoundary\"\n10:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$f\"]\n12:\"MetadataBoundary\"\n13:I[97367,[\"$2\",\"$3\",\"$4\",\"$5\"],\"$12\"]\n15:I[68027,[\"$2\",\"$3\",\"$4\",\"$5\"],\"default\",1]\n:HL[\"/_next/static/chunks/1oe0mygeinwa9.css\",\"style\"]\na:X\nb:[[\"children\",{\"s\":\"__PAGE__\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:style\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$0:t:t:d:r:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:1:props:style\",\"children\":404}],[\"$\",\"div\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:style\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$0:t:t:d:r:props:children:1:props:children:1:props:children:props:children:props:notFound:0:1:props:children:props:children:2:props:children:props:style\",\"children\":\"This page could not be found.\"}]}]]}]}]],null,[\"$\",\"$Lc\",null,{\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@e\"}]}]]}],\"p\":false,\"v\":null}}]]\n9:[[\"children\",{\"s\":\"/_not-found\",\"h\":512,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$a\"},\"c\":\"$Qb\"}]]\n0:{\"P\":null,\"c\":[\"\",\"_not-found\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/1oe0mygeinwa9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-0\",{\"src\":\"/_next/static/chunks/15m6pkeh-tntg.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-1\",{\"src\":\"/_next/static/chunks/2ca16cvfmb3l3.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-2\",{\"src\":\"/_next/static/chunks/2r2ur0z_2nzy9.js\",\"async\":true,\"nonce\":\"$undefined\"}],[\"$\",\"script\",\"script-3\",{\"src\":\"/_next/static/chunks/1edn83cddp6lu.js\",\"async\":true,\"nonce\":\"$undefined\"}]],[\"$\",\"html\",null,{\"lang\":\"en\",\"suppressHydrationWarning\":true,\"className\":\"T19VSG_variable _8Li5zG_variable h-full antialiased\",\"children\":[[\"$\",\"head\",null,{\"children\":[\"$\",\"script\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"(function(){try{\\nvar P={\\\"light\\\":\\\"light\\\",\\\"dark\\\":\\\"dark\\\",\\\"dracula\\\":\\\"dark\\\",\\\"nord\\\":\\\"dark\\\",\\\"solarized-dark\\\":\\\"dark\\\",\\\"gruvbox-dark\\\":\\\"dark\\\",\\\"tokyo-night\\\":\\\"dark\\\",\\\"catppuccin-mocha\\\":\\\"dark\\\",\\\"rose-pine\\\":\\\"dark\\\"};\\nvar m=location.pathname.match(/^\\\\/p\\\\/([^/]+)/);\\nvar s=localStorage,k=m?\\\"beadscope.theme.\\\"+decodeURIComponent(m[1]):\\\"beadscope.theme\\\";\\nvar c=s.getItem(k);\\nif(c!==\\\"system\\\"\u0026\u0026!(c in P))c=\\\"system\\\";\\nvar id=c;\\nif(c===\\\"system\\\")id=matchMedia(\\\"(prefers-color-scheme: dark)\\\").matches?\\\"dark\\\":\\\"light\\\";\\nvar d=document.documentElement;\\nd.dataset.theme=id;\\nd.classList.toggle(\\\"dark\\\",P[id]===\\\"dark\\\");\\n}catch(e){}})();\"}}]}],[\"$\",\"body\",null,{\"className\":\"h-full\",\"children\":[\"$\",\"$L6\",null,{\"children\":[\"$\",\"$L7\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L8\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":404}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]],[]],\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]}]}]]}]]}],\"p\":false,\"v\":null},\"c\":\"$Q9\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],[\"$\",\"$L10\",null,{\"children\":\"$L11\"}],[\"$\",\"$L13\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$d\",null,{\"name\":\"Next.Metadata\",\"children\":\"$L14\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$15\",[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/_next/static/chunks/1oe0mygeinwa9.css\",\"precedence\":\"next\",\"crossOrigin\":\"$undefined\",\"nonce\":\"$undefined\"}]]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"c4l-MFP3SkVkDfScgaKBz\"}\na:C\n11:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n16:I[27201,[\"$2\",\"$3\",\"$4\",\"$5\"],\"IconMark\"]\ne:null\n14:[[\"$\",\"title\",\"0\",{\"children\":\"Beadscope\"}],[\"$\",\"meta\",\"1\",{\"name\":\"description\",\"content\":\"A local web UI for the beads (bd) issue tracker\"}],[\"$\",\"link\",\"2\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2zdrk8nf2w92v.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"link\",\"3\",{\"rel\":\"icon\",\"href\":\"/icon.svg?icon.20nhmzpyywyzw.svg\",\"sizes\":\"any\",\"type\":\"image/svg+xml\"}],[\"$\",\"link\",\"4\",{\"rel\":\"apple-touch-icon\",\"href\":\"/apple-icon.png?apple-icon.3wegq_e2im0r7.png\",\"sizes\":\"180x180\",\"type\":\"image/png\"}],[\"$\",\"$L16\",\"5\",{}]]\n"])</script></body></html>
@@ -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/2x0qc_flzv-la.js"/><script src="/_next/static/chunks/1oizlhl9fdqt_.js" async=""></script><script src="/_next/static/chunks/3-53rbq2namxd.js" async=""></script><script src="/_next/static/chunks/04lvtbsumb9l-.js" async=""></script><script src="/_next/static/chunks/turbopack-3-ry682tkyiqk.js" async=""></script><script src="/_next/static/chunks/2k0ht_txv9ool.js" async=""></script><link rel="icon" href="/favicon.ico?favicon.2zdrk8nf2w92v.ico" sizes="48x48" type="image/x-icon"/><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 id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/2x0qc_flzv-la.js","static/chunks/1oizlhl9fdqt_.js","static/chunks/3-53rbq2namxd.js","static/chunks/04lvtbsumb9l-.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/2x0qc_flzv-la.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/2k0ht_txv9ool.js\"\n3:I[39756,[\"$2\"],\"default\"]\n4:I[37457,[\"$2\"],\"default\"]\n7:I[97367,[\"$2\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[97367,[\"$2\"],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[97367,[\"$2\"],\"$d\"]\n10:I[68027,[\"$2\"],\"default\",1]\n5:X\n6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$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,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"dmCQuxy1F19EnJNtsX7Eq\"}\n5:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n11:I[27201,[\"$2\"],\"IconMark\"]\n9:null\nf:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2zdrk8nf2w92v.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"$L11\",\"1\",{}]]\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/2x0qc_flzv-la.js"/><script src="/_next/static/chunks/1oizlhl9fdqt_.js" async=""></script><script src="/_next/static/chunks/3-53rbq2namxd.js" async=""></script><script src="/_next/static/chunks/04lvtbsumb9l-.js" async=""></script><script src="/_next/static/chunks/turbopack-3-ry682tkyiqk.js" async=""></script><script src="/_next/static/chunks/2k0ht_txv9ool.js" async=""></script><link rel="icon" href="/favicon.ico?favicon.2zdrk8nf2w92v.ico" sizes="48x48" type="image/x-icon"/><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 id="_R_">(globalThis["TURBOPACK"] || (globalThis["TURBOPACK"] = [])).push({"otherChunks":["static/chunks/2x0qc_flzv-la.js","static/chunks/1oizlhl9fdqt_.js","static/chunks/3-53rbq2namxd.js","static/chunks/04lvtbsumb9l-.js"],"runtimeModuleIds":[94553]});</script><script src="/_next/static/chunks/2x0qc_flzv-la.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:\"$Sreact.fragment\"\n2:\"/_next/static/chunks/2k0ht_txv9ool.js\"\n3:I[39756,[\"$2\"],\"default\"]\n4:I[37457,[\"$2\"],\"default\"]\n7:I[97367,[\"$2\"],\"OutletBoundary\"]\n8:\"$Sreact.suspense\"\na:\"ViewportBoundary\"\nb:I[97367,[\"$2\"],\"$a\"]\nd:\"MetadataBoundary\"\ne:I[97367,[\"$2\"],\"$d\"]\n10:I[68027,[\"$2\"],\"default\",1]\n5:X\n6:[[\"children\",{\"s\":\"__PAGE__\",\"h\":528,\"d\":{\"r\":[\"$\",\"$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,[\"$\",\"$L7\",null,{\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.MetadataOutlet\",\"children\":\"$@9\"}]}]]}],\"p\":false,\"v\":null}}]]\n0:{\"P\":null,\"c\":[\"\",\"_global-error\"],\"q\":\"\",\"i\":false,\"t\":{\"t\":{\"s\":\"\",\"h\":528,\"d\":{\"r\":[\"$\",\"$1\",\"c\",{\"children\":[null,[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"forbidden\":\"$undefined\",\"unauthorized\":\"$undefined\"}]]}],\"p\":false,\"v\":\"$5\"},\"c\":\"$Q6\"},\"h\":{\"r\":[\"$\",\"$1\",\"h\",{\"children\":[null,[\"$\",\"$Lb\",null,{\"children\":\"$Lc\"}],[\"$\",\"$Le\",null,{\"children\":[[\"$\",\"div\",null,{\"hidden\":true,\"children\":[\"$\",\"$8\",null,{\"name\":\"Next.Metadata\",\"children\":\"$Lf\"}]}],null]}],[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\",\"content\":\"\"}]]}],\"p\":false,\"v\":null}},\"m\":\"$undefined\",\"G\":[\"$10\",[]],\"S\":true,\"r\":\"$undefined\",\"s\":\"$undefined\",\"a\":\"$undefined\",\"l\":\"$undefined\",\"p\":\"$undefined\",\"d\":\"$undefined\",\"b\":\"c4l-MFP3SkVkDfScgaKBz\"}\n5:C\nc:[[\"$\",\"meta\",\"0\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"1\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}]]\n11:I[27201,[\"$2\"],\"IconMark\"]\n9:null\nf:[[\"$\",\"link\",\"0\",{\"rel\":\"icon\",\"href\":\"/favicon.ico?favicon.2zdrk8nf2w92v.ico\",\"sizes\":\"48x48\",\"type\":\"image/x-icon\"}],[\"$\",\"$L11\",\"1\",{}]]\n"])</script></body></html>
@@ -1,5 +1,5 @@
1
1
  {
2
- "previewModeId": "7d5930d8c5af3157d53d03e8f39356ab",
3
- "previewModeSigningKey": "9aad7c462ae515cddc9fc869528604a174eb6c1124f2d9534080e1ce51192d14",
4
- "previewModeEncryptionKey": "543e572c6664f24466c40ca241e2ec406b76bd055648747fd2402b55311412a8"
2
+ "previewModeId": "3607237b20de366d51bb6158f2c1058c",
3
+ "previewModeSigningKey": "14a06e24ba67bcb5e69126d809061afea5db33bda28ab4388f4506d20c17698f",
4
+ "previewModeEncryptionKey": "26b33567824ff7c322feee7a0d279920ffbf4642f565a81fa7fca03439095588"
5
5
  }
@@ -1 +1 @@
1
- self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"+5qs5i5eNR3kp62Iv/AUfYLfrkxH8JCFcgbox5OX0Kc=\"\n}"
1
+ self.__RSC_SERVER_MANIFEST="{\n \"node\": {},\n \"edge\": {},\n \"encryptionKey\": \"ymMl5CcJpZv7d6+s5om2+jkkak/uj4L7gKvua/rceNA=\"\n}"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "node": {},
3
3
  "edge": {},
4
- "encryptionKey": "+5qs5i5eNR3kp62Iv/AUfYLfrkxH8JCFcgbox5OX0Kc="
4
+ "encryptionKey": "ymMl5CcJpZv7d6+s5om2+jkkak/uj4L7gKvua/rceNA="
5
5
  }
@@ -0,0 +1 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,30274,e=>{var t=e.i(18050),a=e.i(71645),s=e.i(22016),n=e.i(11241),i=e.i(61727),l=e.i(9527),d=e.i(55051),r=e.i(67539),o=e.i(95979),c=e.i(61309),m=e.i(70656),x=e.i(93539),u=e.i(87372),p=e.i(56896),h=e.i(55033),b=e.i(45604),g=e.i(7681),f=e.i(23782),j=e.i(15041),v=e.i(37678);function N({project:e,data:n,completed:l,readOnly:r,showHeading:c,selectedBeadId:m,onSelect:x,onOpen:u}){let{page:p}=(0,h.f)(),g=a.useMemo(()=>n?.beads??[],[n]),f=a.useMemo(()=>(0,v.Z)(g),[g]),j=a.useMemo(()=>g.filter(e=>(0,v.G)(e,f)),[g,f]),y=a.useMemo(()=>g.filter(v.w),[g]),k=n?.meta?.humanActor,w=a.useMemo(()=>g.filter(e=>(0,v.F)(e,k)),[g,k]),C=e.id,A=a.useCallback(e=>x(e?{projectId:C,beadId:e}:null),[x,C]),I=a.useCallback(e=>u(C,e),[u,C]),M=a.useCallback(()=>{},[]);return(0,t.jsx)(i.l,{value:{projectId:C,beads:g,index:f,meta:n?.meta,humanAllowlist:n?.meta?.humanAllowlist??[],readOnly:r,loading:!1,selectedBeadId:m,selectBead:A,openDetail:I,pushDetail:I,openCreate:M,openEpic:M},children:(0,t.jsxs)("section",{"data-repo-section":C,"aria-label":e.name,className:"flex flex-col gap-3",children:[c&&(0,t.jsxs)("h2",{className:"flex items-baseline gap-2 text-body font-semibold text-[var(--text)]",children:[(0,t.jsx)(s.default,{href:(0,b.l)(C,p),className:"hover:underline",children:e.name}),(0,t.jsxs)("span",{className:"text-meta font-normal text-[var(--text-3)]",children:[j.length+y.length+w.length," waiting",l.length>0?` \xb7 ${l.length} completed`:""]})]}),j.map(e=>(0,t.jsx)(o.U,{gate:e},e.id)),y.map(e=>(0,t.jsx)(o.p,{bead:e},e.id)),w.map(e=>(0,t.jsx)(o.g,{bead:e},e.id)),l.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.g,{level:c?3:2}),l.map(e=>(0,t.jsx)(o.g,{bead:e,completed:!0},e.id))]})]})})}e.s(["AllNeedsYouView",0,function(){let{projects:e,results:i,loadingProjects:o}=(0,u.p)(),h=(0,j.f)(),b=h.data?.readOnly??!0,{searchParams:y,updateUrl:k}=(0,g.f)(),w=y.get("repo")??"",C=e.some(e=>e.id===w)?w:"",A="1"===y.get(d.Q),I=e.map((e,t)=>({project:e,query:i[t]})),M=I.filter(({project:e})=>""===C||e.id===C),F=!o&&M.every(({query:e})=>!e.isLoading),$=M.filter(({query:e})=>e.isError);(0,p.x)(M.map(({project:e})=>e.id));let[q,E]=a.useState(null),K=(0,l.X)(),L=K.openBead,O=a.useCallback(t=>i[e.findIndex(e=>e.id===t)]?.data,[i,e]),_=a.useCallback((e,t)=>E(t?{projectId:e,beadId:t}:null),[]),z=a.useCallback((e,t)=>{_(e,t),L(e,t)},[_,L]),R=new Map;for(let{project:e,query:t}of I)R.set(e.id,(0,v.e)(t.data?.beads??[],t.data?.meta?.humanActor));let S=M.reduce((e,{project:t})=>e+(R.get(t.id)??0),0),W=(0,f.f)(),B=new Map;if(A)for(let{project:e,query:t}of I){let a=t.data?.meta?.humanActor;B.set(e.id,(t.data?.beads??[]).filter(e=>(0,v.M)(e,a,W)).sort(v.d))}let D=e=>B.get(e)?.length??0,Q=M.reduce((e,{project:t})=>e+D(t.id),0),T=M.filter(({project:e})=>(R.get(e.id)??0)+D(e.id)>0);return(0,t.jsxs)("div",{className:"flex h-full flex-col overflow-hidden bg-background text-foreground text-body",children:[(0,t.jsx)(m.e,{}),(0,t.jsx)(c.f,{title:"Needs You",standalone:!0,subtitle:F?(0===S?"nothing waiting":`${S} waiting on you`)+(A?` \xb7 ${Q} completed`:"")+(0===S?"":` \xb7 ${""===C?"all repos":"1 repo"}`):"Loading…",controls:(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(s.default,{href:"/",className:"tap-target inline-flex items-center justify-center gap-1.5 text-label text-[var(--text-3)] hover:text-[var(--text)] max-md:-ml-2 max-md:px-2",children:[(0,t.jsx)(n.f,{size:14,"aria-hidden":"true",className:"max-md:size-5"}),(0,t.jsx)("span",{className:"sr-only",children:"Projects"})]})}),center:(0,t.jsxs)(r.$,{size:"sm",className:"min-w-0 max-w-full md:max-w-[20rem]","aria-label":"Filter by repo",value:C,onChange:e=>{let t;return t=e.target.value,k(e=>{""===t?e.delete("repo"):e.set("repo",t)})},children:[(0,t.jsx)("option",{value:"",children:"All repos"}),e.map(e=>(0,t.jsxs)("option",{value:e.id,children:[e.name,(R.get(e.id)??0)>0?` (${R.get(e.id)})`:""]},e.id))]}),extra:(0,t.jsx)(d.w,{on:A,onChange:e=>k(t=>{e?t.set(d.Q,"1"):t.delete(d.Q)})}),actions:(0,t.jsx)("div",{className:"max-md:hidden",children:(0,t.jsx)(x.f,{})})}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-3",children:[F?(0,t.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col gap-6",children:[$.map(({project:e})=>(0,t.jsxs)("p",{role:"status",className:"rounded-[10px] border border-border bg-[var(--surface)] p-3 text-label text-[var(--text-2)]",children:["Couldn’t read ",e.name,", so anything waiting there is not listed."]},e.id)),0===S&&0===Q?(0,t.jsxs)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:[$.length>0?"Nothing waiting in the repos that could be read":"🎉 Nothing needs you right now",$.length>0?"":""===C?" in any repo":" in this repo",". Agents flag beads here with"," ",(0,t.jsx)("span",{className:"font-mono",children:"bd human"}),", human-approval gates (",(0,t.jsx)("span",{className:"font-mono",children:"bd gate create --type human"}),") show up once their blockers clear, and beads assigned to you are listed too."]}):T.map(({project:e,query:a})=>(0,t.jsx)(N,{project:e,data:a.data,completed:B.get(e.id)??[],readOnly:b,showHeading:""===C,selectedBeadId:q?.projectId===e.id?q.beadId:null,onSelect:E,onOpen:z},e.id))]}):(0,t.jsx)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:"Loading…"}),(0,t.jsx)("div",{className:"mx-auto mt-8 flex max-w-3xl justify-end border-t border-border pt-3 md:hidden",children:(0,t.jsx)(x.f,{})})]}),(0,t.jsx)(l.m,{drawer:K,dataFor:O,readOnly:b,onSelect:_})]})}])},95979,e=>{var t=e.i(18050),a=e.i(71645),s=e.i(89541),n=e.i(80527),i=e.i(55051),l=e.i(67539),d=e.i(61309),r=e.i(40576),o=e.i(61727),c=e.i(20138),m=e.i(23782),x=e.i(7681),u=e.i(57675),p=e.i(29503),h=e.i(65012),b=e.i(37678),g=e.i(258),f=e.i(54616),j=e.i(6744),v=e.i(31750);function N({bead:e}){let{projectId:a}=(0,o.m)();return e.description?(0,t.jsx)(f.D,{text:e.description,projectId:a,className:"mb-3 text-label leading-[1.5] text-[var(--text-2)]"}):null}function y({bead:e}){let a=(0,g.f)(e);return a.length?(0,t.jsxs)("div",{className:"mb-3",children:[(0,t.jsx)("div",{className:"mb-1 text-meta font-semibold text-[var(--text-3)]",children:"Links & attachments"}),(0,t.jsx)(j.f,{links:a})]}):(0,t.jsx)("p",{className:"mb-3 text-label text-[var(--text-3)]",children:"No supporting links found. Review the bead details before deciding."})}function k({gate:e}){let{beads:s,openDetail:i,selectedBeadId:d,selectBead:c}=(0,o.m)(),m=a.useMemo(()=>(0,b.D)(e.id,s),[e.id,s]);return(0,t.jsxs)("div",{role:"button",tabIndex:0,"data-keyboard-bead-id":e.id,"aria-current":d===e.id?"true":void 0,onFocus:()=>c(e.id),className:`rounded-[12px] border bg-[var(--surface)] p-4 focus-visible:outline-none ${d===e.id?"border-[var(--brand)] ring-2 ring-[var(--brand)]/30":"border-border"}`,children:[(0,t.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,t.jsx)(u.W,{name:"gate",size:15,style:{color:"var(--brand)"}}),(0,t.jsx)(l.W,{mono:!0,className:"text-meta",onClick:()=>i(e.id),children:e.id}),(0,t.jsx)(n.p,{tone:"strong",className:"font-semibold uppercase tracking-wide",children:"Approval gate"}),(0,t.jsx)("span",{className:"flex-1"}),(0,t.jsx)("span",{title:(0,b.I)(e.updated_at),className:"text-meta text-[var(--text-3)]",children:(0,b.N)(e.updated_at)})]}),(0,t.jsx)(l.W,{tone:"text",className:"mb-2 block text-section font-semibold leading-snug",onClick:()=>i(e.id),children:e.title}),(0,t.jsx)(N,{bead:e}),(0,t.jsx)(y,{bead:e}),m.length>0&&(0,t.jsxs)("p",{className:"mb-3 text-label leading-[1.5] text-[var(--text-2)]",children:["Approving unblocks"," ",m.map((e,s)=>(0,t.jsxs)(a.Fragment,{children:[s>0&&", ",(0,t.jsx)(l.W,{mono:!0,tone:"text",onClick:()=>i(e.id),children:e.id})]},e.id)),"."]}),(0,t.jsx)("div",{className:"flex items-center justify-end gap-2",children:(0,t.jsx)(r.f,{id:e.id})})]})}function w({bead:e}){let{humanAllowlist:n,openDetail:i,readOnly:d,selectedBeadId:r,selectBead:m}=(0,o.m)(),x=(0,c.A)(),g=(0,c.z)(),[f,j]=a.useState(""),k=(0,h.u)(e,n),C=x.isPending||g.isPending,A=!d&&!C&&!!f.trim(),I=()=>x.mutate({id:e.id,text:f.trim()});return(0,t.jsxs)("div",{role:"button",tabIndex:0,"data-keyboard-bead-id":e.id,"aria-current":r===e.id?"true":void 0,onFocus:()=>m(e.id),className:`rounded-[12px] border bg-[var(--surface)] p-4 focus-visible:outline-none ${r===e.id?"border-[var(--brand)] ring-2 ring-[var(--brand)]/30":"border-border"}`,children:[(0,t.jsxs)("div",{className:"mb-1 flex items-center gap-2",children:[(0,t.jsx)(u.W,{name:(0,u.F)(e.issue_type),size:14,style:{color:(0,b.K)(e.issue_type)}}),(0,t.jsx)(l.W,{mono:!0,className:"text-meta",onClick:()=>i(e.id),children:e.id}),(0,t.jsx)(p.N,{origin:k,title:"human"===k?"Human":"Agent"}),(0,t.jsx)("span",{className:"flex-1"}),(0,t.jsx)("span",{title:(0,b.I)(e.updated_at),className:"text-meta text-[var(--text-3)]",children:(0,b.N)(e.updated_at)})]}),(0,t.jsx)(l.W,{tone:"text",className:"mb-2 block text-section font-semibold leading-snug",onClick:()=>i(e.id),children:e.title}),(0,t.jsx)(N,{bead:e}),(0,t.jsx)(y,{bead:e}),(0,t.jsx)(l.p,{disabled:d,value:f,onChange:e=>j(e.target.value),onKeyDown:e=>{(0,v.y)(e)&&(e.preventDefault(),A&&I())},rows:2,placeholder:"Answer the agent's question… (posts a comment; the bead stays open)",className:"mb-2"}),(0,t.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,t.jsx)(l.K,{size:"sm",disabled:d||C,onClick:()=>g.mutate({id:e.id}),children:"Dismiss"}),(0,t.jsx)(s.f,{size:"sm",icon:"check",disabled:!A,onClick:I,children:"Respond"})]})]})}function C({bead:e,completed:a=!1}){let{openDetail:s,selectedBeadId:i,selectBead:d}=(0,o.m)(),r=a?e.closed_at??e.updated_at:e.updated_at;return(0,t.jsxs)("div",{role:"button",tabIndex:0,"data-keyboard-bead-id":e.id,"data-assigned-card":!0,"data-completed-card":a?"":void 0,"aria-current":i===e.id?"true":void 0,onFocus:()=>d(e.id),className:`rounded-[12px] border bg-[var(--surface)] p-4 focus-visible:outline-none ${i===e.id?"border-[var(--brand)] ring-2 ring-[var(--brand)]/30":"border-border"}`,children:[(0,t.jsxs)("div",{className:"mb-1 flex flex-wrap items-center gap-2",children:[(0,t.jsx)(u.W,{name:(0,u.F)(e.issue_type),size:14,style:{color:(0,b.K)(e.issue_type)}}),(0,t.jsx)(l.W,{mono:!0,className:"text-meta",onClick:()=>s(e.id),children:e.id}),(0,t.jsx)(n.u,{status:e.status}),(0,t.jsx)(p.o,{p:e.priority}),(0,t.jsx)("span",{className:"flex-1"}),(0,t.jsxs)("span",{title:(0,b.I)(r),className:"text-meta text-[var(--text-3)]",children:[a?"closed ":"",(0,b.N)(r)]})]}),(0,t.jsx)(l.W,{tone:"text",className:"block text-section font-semibold leading-snug",onClick:()=>s(e.id),children:e.title})]})}e.s(["g",0,C,"U",0,k,"p",0,w,"T",0,function(){let{beads:e,index:s,loading:n,meta:l}=(0,o.m)(),r=n&&0===e.length,c=a.useMemo(()=>e.filter(b.w),[e]),u=a.useMemo(()=>e.filter(e=>(0,b.G)(e,s)),[e,s]),p=l?.humanActor,h=a.useMemo(()=>e.filter(e=>(0,b.F)(e,p)),[e,p]),g=c.length+u.length+h.length,{searchParams:f,updateUrl:j}=(0,x.f)(),v="1"===f.get(i.R),N=(0,m.f)(),y=a.useMemo(()=>v?e.filter(e=>(0,b.M)(e,p,N)).sort(b.d):[],[v,e,p,N]);return(0,t.jsxs)("div",{className:"flex h-full flex-col",children:[(0,t.jsx)(d.f,{title:"Needs You",subtitle:r?"Loading…":(0===g?"nothing waiting":`${g} waiting on you`)+(v?` \xb7 ${y.length} completed`:""),controls:(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"flex-1 max-md:hidden"}),(0,t.jsx)(i.w,{on:v,onChange:e=>j(t=>{e?t.set(i.R,"1"):t.delete(i.R)})})]})}),(0,t.jsx)("div",{className:"min-h-0 flex-1 overflow-y-auto px-4 py-3",children:r?(0,t.jsx)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:"Loading…"}):0===g&&0===y.length?(0,t.jsxs)("div",{className:"p-10 text-center text-body text-[var(--text-3)]",children:["🎉 Nothing needs you right now. Agents flag beads here with"," ",(0,t.jsx)("span",{className:"font-mono",children:"bd human"}),", human-approval gates (",(0,t.jsx)("span",{className:"font-mono",children:"bd gate create --type human"}),") show up once their blockers clear, and beads assigned to you are listed too."]}):(0,t.jsxs)("div",{className:"mx-auto flex max-w-3xl flex-col gap-3",children:[u.map(e=>(0,t.jsx)(k,{gate:e},e.id)),c.map(e=>(0,t.jsx)(w,{bead:e},e.id)),h.map(e=>(0,t.jsx)(C,{bead:e},e.id)),y.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(i.g,{level:2}),y.map(e=>(0,t.jsx)(C,{bead:e,completed:!0},e.id))]})]})})]})}])},87372,e=>{var t=e.i(71645),a=e.i(86448),s=e.i(20138),n=e.i(89258),i=e.i(44215),l=e.i(37678);function d(){let{data:e,isLoading:l}=(0,n.f)(),d=t.useMemo(()=>{let t=e?.projects??[],a=t.filter(e=>e.hasBeads);return t.some(e=>"demo"!==e.id)?a.filter(e=>"demo"!==e.id):a},[e]),r=(0,a.f)({queries:d.map(e=>({queryKey:(0,s.q)(e.id),queryFn:()=>i.k.list(e.id),retry:1,refetchInterval:e=>"error"===e.state.status?6e4:e.state.data?.meta.pollIntervalMs??5e3}))});return{projects:d,results:r,loadingProjects:l}}e.s(["p",0,d,"C",0,function(){let{projects:e,results:t}=d();return t.reduce((t,a,s)=>t+(a.data&&"demo"!==e[s].id?(0,l.e)(a.data.beads,a.data.meta?.humanActor):0),0)}])},56896,e=>{var t=e.i(71645),a=e.i(12598),s=e.i(20138);e.s(["$",0,function(e){let n=(0,a.d)(),[i,l]=t.useState(!1);return t.useEffect(()=>{if("demo"===e)return;let t=new EventSource(`/api/p/${encodeURIComponent(e)}/beads/stream`);return t.addEventListener("open",()=>l(!0)),t.addEventListener("error",()=>l(!1)),t.addEventListener("change",()=>{n.invalidateQueries({queryKey:(0,s.q)(e)}),n.invalidateQueries({queryKey:(0,s.m)(e)})}),()=>{l(!1),t.close()}},[e,n]),{live:i}},"x",0,function(e,n=4){let i=(0,a.d)(),l=e.filter(e=>"demo"!==e).slice(0,n).join("\n");t.useEffect(()=>{if(!l)return;let e=l.split("\n").map(e=>{let t=new EventSource(`/api/p/${encodeURIComponent(e)}/beads/stream`);return t.addEventListener("change",()=>{i.invalidateQueries({queryKey:(0,s.q)(e)}),i.invalidateQueries({queryKey:(0,s.m)(e)})}),t});return()=>e.forEach(e=>e.close())},[l,i])}])},11241,9527,e=>{let t=(0,e.i(56420).f)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["f",0,t],11241);var a=e.i(18050),s=e.i(71645),n=e.i(61727),i=e.i(40372),l=e.i(13823),d=e.i(37678);e.s(["m",0,function({drawer:e,dataFor:t,readOnly:r,onSelect:o}){let{open:c,push:m,close:x,setOpen:u}=e,p=c?.projectId??"",h=c?t(p):void 0,b=s.useMemo(()=>h?.beads??[],[h]),g=s.useMemo(()=>(0,d.Z)(b),[b]),f=s.useCallback(()=>{},[]),j=c?.stack??[],v=j.length?j[j.length-1]:null,N=v&&g.has(v)?v:null,[y,k]=s.useState({open:!1,parent:""}),w=s.useCallback((e={})=>{r||k({open:!0,parent:e.parent??"",cloneOf:e.cloneOf})},[r]),C=s.useCallback(()=>{o?.(p,null),u(e=>{if(!e)return e;let t=e.stack.slice(0,-1);for(;t.length&&!g.has(t[t.length-1]);)t.pop();return t.length?{...e,stack:t,nonce:e.nonce}:null})},[u,g,o,p]),A=s.useCallback(e=>{m(e),o?.(p,e)},[m,o,p]),I=s.useCallback(()=>{x()},[x]);return(0,a.jsxs)(n.l,{value:{projectId:p,beads:b,index:g,meta:h?.meta,humanAllowlist:h?.meta?.humanAllowlist??[],readOnly:r,loading:!1,selectedBeadId:N,selectBead:f,openDetail:e=>A(e),pushDetail:A,openCreate:w,openEpic:f},children:[(0,a.jsx)(i.f,{openId:N,initialAction:"view",actionNonce:c?.nonce??0,canGoBack:j.length>1,backTo:j.length>1?j[j.length-2]:null,onBack:C,onClose:I}),(0,a.jsx)(l.f,{open:y.open&&!r,parent:y.parent,cloneOf:y.cloneOf,onOpenChange:e=>k(t=>({...t,open:e}))})]})},"X",0,function(){let[e,t]=s.useState(null),a=s.useRef(0),n=s.useCallback((e,s)=>{t({projectId:e,stack:[s],nonce:a.current+=1})},[]);return{open:e,openBead:n,push:s.useCallback(e=>{t(t=>{if(!t||t.stack[t.stack.length-1]===e)return t;let s=[...t.stack,e];return{...t,stack:s.length>25?s.slice(s.length-25):s,nonce:a.current+=1}})},[]),close:s.useCallback(()=>t(null),[]),setOpen:t}}],9527)}])})();