@usine/server 0.4.1-next.291.g2bf4be2 → 0.4.1-next.293.gde8dcb8

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 (45) hide show
  1. package/README.md +2 -0
  2. package/dist/http.d.ts.map +1 -1
  3. package/dist/http.js +2 -0
  4. package/dist/http.js.map +1 -1
  5. package/dist/up.js +1 -1
  6. package/dist/up.js.map +1 -1
  7. package/dist/web/assets/{_agent-Bhd0HrYb.js → _agent-BFryjNNb.js} +1 -1
  8. package/dist/web/assets/_label-CtKiaGWz.js +1 -0
  9. package/dist/web/assets/{_loop-CtUiE6FL.js → _loop-DONFu16v.js} +1 -1
  10. package/dist/web/assets/{_name-CXbew0J1.js → _name-C42q_xws.js} +1 -1
  11. package/dist/web/assets/{_name-CZL0wkxq.js → _name-Dfqc_Qea.js} +1 -1
  12. package/dist/web/assets/{_number-By4h1S_S.js → _number-DOYIujsh.js} +1 -1
  13. package/dist/web/assets/{_number-Dr2R11XM.js → _number-Dyt5PXPW.js} +1 -1
  14. package/dist/web/assets/_project-DpvIZdrA.js +1 -0
  15. package/dist/web/assets/{_run-BEVm7k9V.js → _run-B4DFmBFm.js} +1 -1
  16. package/dist/web/assets/{_worker-D_1Qa8KI.js → _worker-BtNHlRPT.js} +1 -1
  17. package/dist/web/assets/{agents-DmMTEEce.js → agents-BEHsLITF.js} +1 -1
  18. package/dist/web/assets/{agents-B88JG2q0.js → agents-DHMF3XEr.js} +1 -1
  19. package/dist/web/assets/{drawer-yjp9B9Ed.js → drawer-HmQLxogt.js} +1 -1
  20. package/dist/web/assets/{history-Z63_hw3L.js → history-BgN7BMZM.js} +1 -1
  21. package/dist/web/assets/{index-BPhLK23-.js → index-DSOKl9hZ.js} +2 -2
  22. package/dist/web/assets/{label-badge-N-5KY9g6.js → label-badge-DlfFeHM2.js} +1 -1
  23. package/dist/web/assets/{labels-DwcmI5hF.js → labels--U1i9KoY.js} +1 -1
  24. package/dist/web/assets/{list-DeCG0M1M.js → list-7qDdKUWr.js} +1 -1
  25. package/dist/web/assets/{loops-CO67AN6J.js → loops-KEH8Xuo_.js} +1 -1
  26. package/dist/web/assets/{members-D6eY25k6.js → members-CBC3IWWZ.js} +1 -1
  27. package/dist/web/assets/{outcome-5sHQcdFl.js → outcome-OMgE9R0d.js} +1 -1
  28. package/dist/web/assets/{repositories-DOa9jauq.js → repositories-BAf0wI3v.js} +1 -1
  29. package/dist/web/assets/route-DkMTJBWm.js +1 -0
  30. package/dist/web/assets/route-Do86j4UK.js +1 -0
  31. package/dist/web/assets/routes-BU0GYe5f.js +65 -0
  32. package/dist/web/assets/{section-D0pZ24Q9.js → section-B9rSL8Bj.js} +1 -1
  33. package/dist/web/assets/{settings-S8Duih5O.js → settings-DQhtSVA1.js} +1 -1
  34. package/dist/web/assets/{sign-in-DjL5kSOj.js → sign-in-DUJybrEP.js} +1 -1
  35. package/dist/web/assets/{tasks-BVCobs32.js → tasks-BuEAwx2n.js} +1 -1
  36. package/dist/web/assets/{tokens-C6JfL-2h.js → tokens-B-7iRBKh.js} +1 -1
  37. package/dist/web/assets/{usage-DL_2QgAQ.js → usage-DG8mHuwO.js} +1 -1
  38. package/dist/web/assets/{workers-COw6mVNF.js → workers-BZ6ZrOma.js} +1 -1
  39. package/dist/web/index.html +1 -1
  40. package/package.json +11 -11
  41. package/dist/web/assets/_label-DAUm1_LF.js +0 -1
  42. package/dist/web/assets/_project-DNs8Oq14.js +0 -1
  43. package/dist/web/assets/route-Dw2CrkLW.js +0 -1
  44. package/dist/web/assets/route-ytl33NeP.js +0 -1
  45. package/dist/web/assets/routes-B5Lyezif.js +0 -65
package/README.md CHANGED
@@ -163,3 +163,5 @@ Run `usine sign-in <instance-origin>`, open the GitHub device page, and enter th
163
163
  **Tokens** lists the signed-in member's browsers and devices, creation times, and last use. Revoke an entry to end access. Device tokens remain valid until revoked; browser sessions expire after 30 days. **Sign out** revokes the current browser session.
164
164
 
165
165
  Browser sessions use an `HttpOnly`, `SameSite=Strict` cookie, with `Secure` except for local HTTP origins. Browser writes require `X-Usine-CSRF`. The bundled UI reads its CSRF cookie and sends that header. Health and sign-in endpoints are public; the separate GitHub webhook listener verifies delivery signatures. Sign-in initiation, link issuance, GitHub exchanges, and invalid challenges have separate instance-wide limits of 60 requests per operation per minute. Invalid challenges do not consume the limits for valid sign-ins. Device polls also honor GitHub's interval.
166
+
167
+ The Overview’s worker utilization uses stored configuration revisions to account for slot changes over the selected window. Revision 1 supplies the slot count before recorded history. Statistics Details also clarifies that repeated successful rebase runs count against first time right.
@@ -1 +1 @@
1
- {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAExE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAqB,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAKzE,OAAO,EAAE,KAAK,mBAAmB,EAAa,MAAM,8BAA8B,CAAC;AAMnF,OAAO,EAAU,KAAK,EAAE,MAAM,EAAsB,MAAM,QAAQ,CAAC;AACnE,OAAO,EAAW,UAAU,EAAyC,MAAM,aAAa,CAAC;AAEzF,OAAO,EAAE,cAAc,EAAqB,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,KAAK,IAAI,EAAe,KAAK,QAAQ,EAAE,MAAM,UAAU,CAAC;AA6UjE;;;GAGG;AACH,eAAO,MAAM,SAAS,WAAY,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,sGAKtD,CAAC;AAEJ,eAAO,MAAM,YAAY,YAAa,MAAM,mNA2C3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,YACb,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,WAC3B,MAAM,QACT,IAAI,UACF,MAAM,CAAC,MAAM,CAAC,QAAQ,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
62
62
  return error.message;
63
63
  case "GitHubRateLimitError":
64
64
  return error.message;
65
+ case "ConfigurationStoreError":
66
+ return `Configuration store error: could not ${error.operation}.`;
65
67
  case "EnginePersistenceError":
66
68
  return `Runtime store error: could not ${error.operation}.`;
67
69
  case "AttemptCancellationError":
package/dist/http.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"http.js","sourceRoot":"","sources":["../src/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAqB,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAqB,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAA4B,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAc,MAAM,QAAQ,CAAC;AACnE,OAAO,EAAE,OAAO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CAAC,IAAI,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAC3B,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAChE,YAAY,CAAC,OAAO,CAAC,EACrB,aAAa,CAAC,MAAM,CACrB,CAAC,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IAClE,OAAO,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAClC,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,CAC/E,CAAC;AACJ,CAAC,CAAC"}
package/dist/up.js CHANGED
@@ -178,6 +178,6 @@ export const up = (command) => Effect.scoped(Effect.gen(function* () {
178
178
  };
179
179
  // Built before the runtime, so the exporter flushes the runtime's last spans when it closes.
180
180
  const tracer = yield* Layer.build(tracingLayer(config.tracing)).pipe(Effect.provide(NodeServices.layer));
181
- return yield* start(directory, instanceId, instances, port, origin, record, database, configurationEditor, auth).pipe(Effect.provideContext(tracer));
181
+ return yield* start(directory, instanceId, instances, port, origin, record, database, configurationEditor, auth).pipe(Effect.provideContext(tracer), Effect.provideContext(configurationContext));
182
182
  })).pipe(Effect.provideService(References.MinimumLogLevel, command.logLevel));
183
183
  //# sourceMappingURL=up.js.map
package/dist/up.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"up.js","sourceRoot":"","sources":["../src/up.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,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AAC,UAAU,CAAC,eAAe,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC"}
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-Wy9s6hX0.js";import{t}from"./useSuspenseQuery-BRPaB8Gf.js";import{n}from"./queries-TKKPRagF.js";import{d as r}from"./index-BPhLK23-.js";import{t as i}from"./agents-B88JG2q0.js";var a=e(),o=()=>{let{agent:e}=r.useParams(),{data:o}=t(n());return(0,a.jsx)(i,{name:e,configuration:o})};export{o as component};
1
+ import{t as e}from"./jsx-runtime-Wy9s6hX0.js";import{t}from"./useSuspenseQuery-BRPaB8Gf.js";import{n}from"./queries-TKKPRagF.js";import{d as r}from"./index-DSOKl9hZ.js";import{t as i}from"./agents-DHMF3XEr.js";var a=e(),o=()=>{let{agent:e}=r.useParams(),{data:o}=t(n());return(0,a.jsx)(i,{name:e,configuration:o})};export{o as component};
@@ -0,0 +1 @@
1
+ import{t as e}from"./jsx-runtime-Wy9s6hX0.js";import{Y as t,t as n}from"./section-B9rSL8Bj.js";import{u as r}from"./index-DSOKl9hZ.js";var i=e(),a=()=>{let{label:e}=r.useParams();return(0,i.jsx)(n,{title:e,entity:t(`label`,e),children:null})};export{a as component};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-Wy9s6hX0.js";import{D as t,E as n,Y as r,a as i,c as a,i as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m,v as h}from"./section-D0pZ24Q9.js";import{t as g}from"./useSuspenseQuery-BRPaB8Gf.js";import{t as _}from"./link-04lHwIZK.js";import{vt as v}from"./api-DMBgrk17.js";import{n as y}from"./strings-Cgrt38_s.js";import{n as b,r as x}from"./list-DeCG0M1M.js";import{t as S}from"./error-alert-C3tCznIk.js";import{n as C}from"./queries-TKKPRagF.js";import{W as w,l as T,lt as E,v as D}from"./index-BPhLK23-.js";import{t as O}from"./file-error-BWxiLF1l.js";var k=e(),A=({repository:e})=>{let{owner:t,name:n}=v(e);return(0,k.jsxs)(_,{to:`/configuration/repositories/$owner/$name`,params:{owner:t,name:n},className:`flex w-fit items-center gap-2 text-primary hover:underline`,children:[(0,k.jsx)(w,{repository:e}),e]})},j=({loop:e,configuration:t})=>{let r=t.agents.find(({name:t})=>t===e.agent);return(0,k.jsxs)(i,{children:[(0,k.jsxs)(o,{label:`Agent`,children:[(0,k.jsx)(_,{to:`/configuration/agents/$agent`,params:{agent:e.agent},className:`text-primary hover:underline`,children:e.agent}),r!==void 0&&(0,k.jsx)(`p`,{className:`mt-0.5 font-mono text-xs text-muted-foreground`,children:y(r)})]}),(0,k.jsx)(o,{label:`Repositories`,children:e.repositories.length===0?(0,k.jsx)(m,{children:`No registered repository matches the selector`}):(0,k.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:e.repositories.map(e=>(0,k.jsx)(`li`,{children:(0,k.jsx)(A,{repository:e})},e))})}),(0,k.jsx)(o,{label:`Approval`,children:h[e.approval]}),(0,k.jsxs)(o,{label:`Max cycles`,children:[(0,k.jsx)(`span`,{className:`tabular-nums`,children:e.maxCycles}),` `,(0,k.jsx)(m,{children:`runs per item before a reset`})]}),(0,k.jsx)(o,{label:`Permissions`,children:n[e.permissions]}),(0,k.jsx)(o,{label:`Priority`,children:e.priority===null?(0,k.jsx)(m,{children:`None; runs wait in lane order`}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`span`,{className:`tabular-nums`,children:e.priority}),` `,(0,k.jsx)(m,{children:`queued ahead of runs in lane order`})]})}),(0,k.jsx)(o,{label:`Step`,children:(0,k.jsx)(`code`,{className:`font-mono text-xs`,children:e.step})})]})},M=e=>[[`on`,e.stream],[`if`,e.condition],...e.cron===null?[]:[[`cron`,e.cron]],...e.timeZone===null?[]:[[`tz`,e.timeZone]]],N=({repos:e,tags:t})=>[...e===null?[]:[[`repos`,e.join(`, `)]],...t===null?[]:[[`tags`,t.join(`, `)]]],P=({loop:e,configuration:n,pause:r})=>{let i=s(e.prompt).length;return(0,k.jsxs)(k.Fragment,{children:[r?.isError===!0&&(0,k.jsx)(S,{message:r.error.message}),(0,k.jsxs)(c,{facts:(0,k.jsx)(j,{loop:e,configuration:n}),children:[(0,k.jsxs)(d,{title:`Trigger`,children:[(0,k.jsx)(l,{entries:M(e)}),e.undeclaredLabels.length>0&&(0,k.jsxs)(`p`,{className:`flex items-start gap-1.5 text-xs text-muted-foreground`,children:[(0,k.jsx)(E,{weight:`fill`,className:`mt-0.5 size-3 shrink-0 text-warning`}),(0,k.jsxs)(`span`,{children:[`Condition uses`,` `,e.undeclaredLabels.length===1?`an undeclared label`:`undeclared labels`,`:`,` `,e.undeclaredLabels.join(`, `),`. usine creates only the labels under`,` `,(0,k.jsx)(`code`,{children:`labels`}),` in `,(0,k.jsx)(`code`,{children:`usine.yaml`}),`.`]})]})]}),(0,k.jsx)(d,{title:`Selector`,children:e.selector===null?(0,k.jsx)(`p`,{className:`text-muted-foreground`,children:`No selector: every registered repository`}):(0,k.jsx)(l,{entries:N(e.selector)})}),(0,k.jsx)(d,{title:`Prompt`,aside:i===0?`Same text for every run`:`${t(i,`outlined expression`)} filled in from each item`,children:(0,k.jsx)(u,{template:e.prompt})})]})]})},F=({name:e,configuration:t,pause:n})=>{let i=t.loops.find(t=>t.name===e);if(i!==void 0)return(0,k.jsx)(p,{entity:r(`loop`,e),title:i.name,marks:(0,k.jsx)(x,{paused:i.paused}),file:i.file,actions:n!==null&&(0,k.jsx)(b,{loop:i,pause:n,variant:`outline`}),children:(0,k.jsx)(P,{loop:i,configuration:t,pause:n})});let o=t.quarantinedLoops.find(t=>t.name===e);return o===void 0?(0,k.jsx)(p,{entity:r(`loop`,e),title:e,children:(0,k.jsxs)(f,{title:`Loop not found`,children:[`The configuration has no file `,(0,k.jsxs)(`code`,{children:[`loops/`,e,`.md`]}),`.`,` `,(0,k.jsx)(_,{to:`/configuration/loops`,className:`text-primary hover:underline`,children:`See all loops`}),`.`]})}):(0,k.jsx)(p,{entity:r(`loop`,e),title:o.name,marks:(0,k.jsx)(a,{}),file:o.file,children:(0,k.jsx)(O,{error:o.error,consequence:`No runs until the file loads.`})})},I=()=>{let{loop:e}=T.useParams(),{data:t}=g(C());return(0,k.jsx)(F,{name:e,configuration:t,pause:D()})};export{I as component};
1
+ import{t as e}from"./jsx-runtime-Wy9s6hX0.js";import{D as t,E as n,Y as r,a as i,c as a,i as o,m as s,n as c,o as l,p as u,r as d,s as f,t as p,u as m,v as h}from"./section-B9rSL8Bj.js";import{t as g}from"./useSuspenseQuery-BRPaB8Gf.js";import{t as _}from"./link-04lHwIZK.js";import{vt as v}from"./api-DMBgrk17.js";import{n as y}from"./strings-Cgrt38_s.js";import{n as b,r as x}from"./list-7qDdKUWr.js";import{t as S}from"./error-alert-C3tCznIk.js";import{n as C}from"./queries-TKKPRagF.js";import{W as w,l as T,lt as E,v as D}from"./index-DSOKl9hZ.js";import{t as O}from"./file-error-BWxiLF1l.js";var k=e(),A=({repository:e})=>{let{owner:t,name:n}=v(e);return(0,k.jsxs)(_,{to:`/configuration/repositories/$owner/$name`,params:{owner:t,name:n},className:`flex w-fit items-center gap-2 text-primary hover:underline`,children:[(0,k.jsx)(w,{repository:e}),e]})},j=({loop:e,configuration:t})=>{let r=t.agents.find(({name:t})=>t===e.agent);return(0,k.jsxs)(i,{children:[(0,k.jsxs)(o,{label:`Agent`,children:[(0,k.jsx)(_,{to:`/configuration/agents/$agent`,params:{agent:e.agent},className:`text-primary hover:underline`,children:e.agent}),r!==void 0&&(0,k.jsx)(`p`,{className:`mt-0.5 font-mono text-xs text-muted-foreground`,children:y(r)})]}),(0,k.jsx)(o,{label:`Repositories`,children:e.repositories.length===0?(0,k.jsx)(m,{children:`No registered repository matches the selector`}):(0,k.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:e.repositories.map(e=>(0,k.jsx)(`li`,{children:(0,k.jsx)(A,{repository:e})},e))})}),(0,k.jsx)(o,{label:`Approval`,children:h[e.approval]}),(0,k.jsxs)(o,{label:`Max cycles`,children:[(0,k.jsx)(`span`,{className:`tabular-nums`,children:e.maxCycles}),` `,(0,k.jsx)(m,{children:`runs per item before a reset`})]}),(0,k.jsx)(o,{label:`Permissions`,children:n[e.permissions]}),(0,k.jsx)(o,{label:`Priority`,children:e.priority===null?(0,k.jsx)(m,{children:`None; runs wait in lane order`}):(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`span`,{className:`tabular-nums`,children:e.priority}),` `,(0,k.jsx)(m,{children:`queued ahead of runs in lane order`})]})}),(0,k.jsx)(o,{label:`Step`,children:(0,k.jsx)(`code`,{className:`font-mono text-xs`,children:e.step})})]})},M=e=>[[`on`,e.stream],[`if`,e.condition],...e.cron===null?[]:[[`cron`,e.cron]],...e.timeZone===null?[]:[[`tz`,e.timeZone]]],N=({repos:e,tags:t})=>[...e===null?[]:[[`repos`,e.join(`, `)]],...t===null?[]:[[`tags`,t.join(`, `)]]],P=({loop:e,configuration:n,pause:r})=>{let i=s(e.prompt).length;return(0,k.jsxs)(k.Fragment,{children:[r?.isError===!0&&(0,k.jsx)(S,{message:r.error.message}),(0,k.jsxs)(c,{facts:(0,k.jsx)(j,{loop:e,configuration:n}),children:[(0,k.jsxs)(d,{title:`Trigger`,children:[(0,k.jsx)(l,{entries:M(e)}),e.undeclaredLabels.length>0&&(0,k.jsxs)(`p`,{className:`flex items-start gap-1.5 text-xs text-muted-foreground`,children:[(0,k.jsx)(E,{weight:`fill`,className:`mt-0.5 size-3 shrink-0 text-warning`}),(0,k.jsxs)(`span`,{children:[`Condition uses`,` `,e.undeclaredLabels.length===1?`an undeclared label`:`undeclared labels`,`:`,` `,e.undeclaredLabels.join(`, `),`. usine creates only the labels under`,` `,(0,k.jsx)(`code`,{children:`labels`}),` in `,(0,k.jsx)(`code`,{children:`usine.yaml`}),`.`]})]})]}),(0,k.jsx)(d,{title:`Selector`,children:e.selector===null?(0,k.jsx)(`p`,{className:`text-muted-foreground`,children:`No selector: every registered repository`}):(0,k.jsx)(l,{entries:N(e.selector)})}),(0,k.jsx)(d,{title:`Prompt`,aside:i===0?`Same text for every run`:`${t(i,`outlined expression`)} filled in from each item`,children:(0,k.jsx)(u,{template:e.prompt})})]})]})},F=({name:e,configuration:t,pause:n})=>{let i=t.loops.find(t=>t.name===e);if(i!==void 0)return(0,k.jsx)(p,{entity:r(`loop`,e),title:i.name,marks:(0,k.jsx)(x,{paused:i.paused}),file:i.file,actions:n!==null&&(0,k.jsx)(b,{loop:i,pause:n,variant:`outline`}),children:(0,k.jsx)(P,{loop:i,configuration:t,pause:n})});let o=t.quarantinedLoops.find(t=>t.name===e);return o===void 0?(0,k.jsx)(p,{entity:r(`loop`,e),title:e,children:(0,k.jsxs)(f,{title:`Loop not found`,children:[`The configuration has no file `,(0,k.jsxs)(`code`,{children:[`loops/`,e,`.md`]}),`.`,` `,(0,k.jsx)(_,{to:`/configuration/loops`,className:`text-primary hover:underline`,children:`See all loops`}),`.`]})}):(0,k.jsx)(p,{entity:r(`loop`,e),title:o.name,marks:(0,k.jsx)(a,{}),file:o.file,children:(0,k.jsx)(O,{error:o.error,consequence:`No runs until the file loads.`})})},I=()=>{let{loop:e}=T.useParams(),{data:t}=g(C());return(0,k.jsx)(F,{name:e,configuration:t,pause:D()})};export{I as component};
@@ -1,2 +1,2 @@
1
- import{a as e,n as t,t as n}from"./jsx-runtime-Wy9s6hX0.js";import{r,t as i}from"./mark-TjVTH0zt.js";import{t as a}from"./useSuspenseQuery-BRPaB8Gf.js";import{a as o,b as s,c,d as l,f as u,h as d,i as f,l as p,m,n as h,o as g,p as _,s as v,u as y,v as b}from"./actions-DCgAlxnS.js";import{t as x}from"./link-04lHwIZK.js";import{lt as S}from"./api-DMBgrk17.js";import{m as C,s as w}from"./strings-Cgrt38_s.js";import{a as T,i as E,n as D,o as ee,r as te,s as ne,t as re}from"./moves-CbOc6hX6.js";import{A as O,W as k,t as A}from"./button-D4_M-wHl.js";import{t as j}from"./error-alert-C3tCznIk.js";import{A as M,E as N,N as ie,i as ae,j as oe,k as P,n as se,r as ce}from"./overview-CyrdJxvZ.js";import{a as le,i as ue}from"./page-5rCn82pX.js";import{B as de,D as F,F as fe,H as pe,I as me,L as he,P as ge,R as _e,V as ve,W as ye,a as be,w as I,z as xe}from"./index-BPhLK23-.js";import{n as L,r as Se,t as Ce}from"./status-badge-CYV7BO8y.js";import{a as we,i as R,n as Te,o as z,r as B,t as Ee}from"./table-kSUccuLf.js";import{a as De,c as Oe,d as V,f as ke,g as Ae,h as je,i as Me,l as Ne,m as H,o as Pe,p as Fe,r as Ie,s as Le,t as Re}from"./sortable.esm-DCopHyTW.js";import{t as U}from"./label-badge-N-5KY9g6.js";import{t as ze}from"./action-CCOQazIB.js";import{f as Be,o as Ve,u as He}from"./model-Ca7RC2YV.js";import{n as W,t as Ue}from"./strings-CD2oxW8w.js";import{t as We}from"./project-not-found-CZLTPMV2.js";var G=e(t(),1),Ge=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,64V168L88,64Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z`}))]]),Ke=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M140,40V216a12,12,0,0,1-24,0V40a12,12,0,0,1,24,0ZM64.49,87.51a12,12,0,0,0-17,17L59,116H16a12,12,0,0,0,0,24H59L47.51,151.51a12,12,0,0,0,17,17l32-32a12,12,0,0,0,0-17ZM240,116H197l11.52-11.51a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17l32,32a12,12,0,0,0,17-17L197,140h43a12,12,0,0,0,0-24Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56V200a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V56A16,16,0,0,1,32,40H224A16,16,0,0,1,240,56Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M136,40V216a8,8,0,0,1-16,0V40a8,8,0,0,1,16,0ZM69.66,90.34a8,8,0,0,0-11.32,11.32L76.69,120H16a8,8,0,0,0,0,16H76.69L58.34,154.34a8,8,0,0,0,11.32,11.32l32-32a8,8,0,0,0,0-11.32ZM240,120H179.31l18.35-18.34a8,8,0,0,0-11.32-11.32l-32,32a8,8,0,0,0,0,11.32l32,32a8,8,0,0,0,11.32-11.32L179.31,136H240a8,8,0,0,0,0-16Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M101.66,122.34a8,8,0,0,1,0,11.32l-32,32A8,8,0,0,1,56,160V136H16a8,8,0,0,1,0-16H56V96a8,8,0,0,1,13.66-5.66ZM240,120H200V96a8,8,0,0,0-13.66-5.66l-32,32a8,8,0,0,0,0,11.32l32,32A8,8,0,0,0,200,160V136h40a8,8,0,0,0,0-16ZM128,32a8,8,0,0,0-8,8V216a8,8,0,0,0,16,0V40A8,8,0,0,0,128,32Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M134,40V216a6,6,0,0,1-12,0V40a6,6,0,0,1,12,0ZM68.24,91.76a6,6,0,0,0-8.48,8.48L81.51,122H16a6,6,0,0,0,0,12H81.51L59.76,155.76a6,6,0,1,0,8.48,8.48l32-32a6,6,0,0,0,0-8.48ZM240,122H174.49l21.75-21.76a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48l32,32a6,6,0,0,0,8.48-8.48L174.49,134H240a6,6,0,0,0,0-12Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M136,40V216a8,8,0,0,1-16,0V40a8,8,0,0,1,16,0ZM69.66,90.34a8,8,0,0,0-11.32,11.32L76.69,120H16a8,8,0,0,0,0,16H76.69L58.34,154.34a8,8,0,0,0,11.32,11.32l32-32a8,8,0,0,0,0-11.32ZM240,120H179.31l18.35-18.34a8,8,0,0,0-11.32-11.32l-32,32a8,8,0,0,0,0,11.32l32,32a8,8,0,0,0,11.32-11.32L179.31,136H240a8,8,0,0,0,0-16Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M132,40V216a4,4,0,0,1-8,0V40a4,4,0,0,1,8,0ZM66.83,93.17a4,4,0,0,0-5.66,5.66L86.34,124H16a4,4,0,0,0,0,8H86.34L61.17,157.17a4,4,0,0,0,5.66,5.66l32-32a4,4,0,0,0,0-5.66ZM240,124H169.66l25.17-25.17a4,4,0,1,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66l32,32a4,4,0,0,0,5.66-5.66L169.66,132H240a4,4,0,0,0,0-8Z`}))]]),K=G.forwardRef((e,t)=>G.createElement(k,{ref:t,...e,weights:Ge}));K.displayName=`ArrowUpRightIcon`;var q=G.forwardRef((e,t)=>G.createElement(k,{ref:t,...e,weights:Ke}));q.displayName=`ArrowsInLineHorizontalIcon`;var qe={above:!1,below:!1},Je=()=>{let[e,t]=(0,G.useState)(qe),n=(0,G.useRef)(null);return[(0,G.useCallback)(e=>{if(n.current?.(),n.current=null,e===null)return;let r=()=>{let n=e.scrollTop>1,r=e.scrollHeight-e.clientHeight-e.scrollTop>1;t(e=>e.above===n&&e.below===r?e:{above:n,below:r})},i=new ResizeObserver(r),a=()=>{i.observe(e);for(let t of e.children)i.observe(t)},o=new MutationObserver(()=>{i.disconnect(),a(),r()});a(),o.observe(e,{childList:!0}),e.addEventListener(`scroll`,r,{passive:!0}),r(),n.current=()=>{e.removeEventListener(`scroll`,r),o.disconnect(),i.disconnect()}},[]),e]},J=n();function Y({className:e,size:t=`default`,...n}){return(0,J.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:O(`group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-lg bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-border [--card-spacing:--spacing(4)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg`,e),...n})}function Ye({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`card-header`,className:O(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,e),...t})}function Xe({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`card-title`,className:O(`text-lg font-semibold`,e),...t})}function Ze({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`card-description`,className:O(`text-sm text-muted-foreground`,e),...t})}function Qe({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`card-content`,className:O(`px-(--card-spacing)`,e),...t})}var $e=(e,t)=>e===`Running`?`Running since ${C(t)}`:e===`Failed`?`Failed at ${C(t)}`:N(t),X=3,et=({labels:e,catalog:t})=>{if(e.length===0)return null;let n=e.slice(X);return(0,J.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[e.slice(0,X).map(e=>(0,J.jsx)(U,{name:e,label:t.get(e)},e)),n.length>0&&(0,J.jsxs)(I,{variant:`outline`,className:`text-muted-foreground tabular-nums`,title:n.join(`, `),"aria-label":`${n.length} more: ${n.join(`, `)}`,children:[`+`,n.length]})]})},tt=`block w-full cursor-pointer text-left outline-none after:absolute after:inset-0 after:rounded-lg`,nt=({item:e})=>(0,J.jsx)(`h3`,{className:`text-sm/snug font-medium text-card-foreground`,title:e.title,children:(0,J.jsx)(x,{to:`/projects/$owner/$name/tasks/$number`,params:{...ae(e.repository),number:He(e)},draggable:!1,className:tt,children:(0,J.jsx)(`span`,{className:`line-clamp-2`,children:e.title})})}),rt=({failure:e,children:t})=>(0,J.jsxs)(`div`,{className:`flex flex-col items-start gap-1.5 rounded-md bg-destructive/8 px-2 py-1.5 text-xs text-destructive`,children:[(0,J.jsx)(`p`,{className:`line-clamp-2 wrap-anywhere`,title:e.message,children:e.message}),t]}),it=({failure:e,action:t})=>t!==null&&e.run.canRetry&&!t.isPending?(0,J.jsx)(A,{variant:`outline`,size:`xs`,className:`relative z-10`,title:P(e.run.agentBrain),onClick:()=>t.mutate({runId:e.run.id,request:{action:`retry`}}),children:M.retry}):null,at=({run:e})=>{let t=F(3e4),n=T(e);return(0,J.jsxs)(`p`,{className:`flex min-w-0 items-center gap-1.5 text-xs whitespace-nowrap text-muted-foreground`,children:[(0,J.jsx)(L,{state:e.state,className:`mr-0.5 ml-0.75`}),(0,J.jsx)(`span`,{className:`truncate text-foreground`,children:e.loop}),(0,J.jsx)(`span`,{className:`shrink-0`,children:e.state}),n!==null&&(0,J.jsx)(`time`,{className:`shrink-0 font-mono tabular-nums`,dateTime:n,title:$e(e.state,n),children:w(n,t)}),(0,J.jsx)(`span`,{className:`ml-auto truncate pl-2`,children:e.agent})]})},ot=({stalled:e,named:t,children:n})=>{let r=F(3e4),i=W(e,r);return(0,J.jsxs)(`div`,{"data-slot":`stall-note`,className:`flex flex-col items-start gap-1.5 text-xs`,children:[(0,J.jsxs)(`p`,{className:`line-clamp-3 text-muted-foreground`,title:`${e.loop}: ${i}`,children:[t&&(0,J.jsxs)(`span`,{className:`font-medium text-foreground`,children:[e.loop,` `]}),i]}),n]})},st=e=>[`run-again`,`board-card`,e],ct=(e,t)=>{let n=st(e),r=o({mutationKey:n,onClaimed:t}),i=s({filters:{mutationKey:n,exact:!0},select:({state:e})=>e}).at(-1);return{isPending:i?.status===`pending`,data:i?.data,error:i?.error??null,send:e=>r.mutate(h(e))}},Z=({item:e,lane:t,catalog:n,stall:r,readOnly:a,action:o,again:s,progress:c})=>{let l=ee(e),u=E(e),d=o?.error?.message??null,f=s?.error?.message??null,p=r!==null&&l!==null&&(r.reason._tag===`RunFailed`||r.reason._tag===`SuppressedForOperator`)&&r.reason.run.id===l.run.id,m=r===null||o===null?null:(0,J.jsx)(ze,{stalled:r,readOnly:a,appearance:`card`}),h=e.needsYou&&!(u?.canApprove||u?.canResolveFailure)&&r===null;return(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5 px-3`,children:[(0,J.jsx)(`p`,{className:`flex flex-wrap items-baseline gap-x-2.5 pr-6`,children:e.items.map(e=>(0,J.jsx)(i,{item:e,className:`relative z-10`},e.itemKey))}),(0,J.jsx)(nt,{item:e}),(0,J.jsx)(et,{labels:te(e,t),catalog:n}),u!==null&&(0,J.jsx)(at,{run:u}),c!==null&&(0,J.jsx)(`p`,{role:`status`,className:`text-xs text-muted-foreground`,children:c}),l!==null&&(0,J.jsx)(rt,{failure:l,children:p&&r?.reason._tag===`SuppressedForOperator`?m:(0,J.jsx)(it,{failure:l,action:o})}),r!==null&&!p&&(0,J.jsx)(ot,{stalled:r,named:(u===null||Ve(r)?.id!==u.id)&&!Ue(r),children:m}),s?.data?._tag===`CycleBlocked`&&(0,J.jsx)(`p`,{role:`status`,className:`text-xs text-needs-you`,children:`No run opened: cycle budget used up. Reset it in Needs attention`}),d!==null&&(0,J.jsx)(`p`,{className:`text-xs text-destructive wrap-anywhere`,children:d}),f!==null&&(0,J.jsx)(`p`,{className:`text-xs text-destructive wrap-anywhere`,children:f}),e.conflicting&&(0,J.jsx)(`p`,{className:`text-xs text-destructive`,children:`Conflicts with base`}),h&&(0,J.jsx)(`p`,{className:`text-xs text-needs-you`,children:`Needs attention`})]})},lt=({runs:e,openRun:t})=>(0,J.jsxs)(u,{children:[(0,J.jsx)(m,{children:`Run history`}),(0,J.jsx)(_,{className:`min-w-48`,children:[...e].reverse().map(e=>(0,J.jsxs)(p,{onClick:()=>t(e.id),children:[(0,J.jsx)(`span`,{className:`truncate`,children:e.loop}),(0,J.jsxs)(`span`,{className:`ml-auto flex shrink-0 items-center gap-2 pl-4 text-xs text-muted-foreground`,children:[(0,J.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(L,{state:e.state}),e.state]}),(0,J.jsx)(`time`,{dateTime:e.openedAt,title:N(e.openedAt),className:`font-mono tabular-nums`,children:w(e.openedAt)})]})]},e.id))})]}),ut=({item:e,run:t,moves:n,openRun:a,action:o,again:s,className:f})=>{let[h,x]=(0,G.useState)(!1),S=r(e),C=e.runs.filter(({id:e})=>e!==t?.id),w=e.run?.canRunAgain===!0?e.run:null,T=[{key:`links`,content:e.items.map(e=>(0,J.jsxs)(y,{href:e.url,target:`_blank`,rel:`noreferrer`,closeOnClick:!0,children:[`Open `,(0,J.jsx)(i,{item:e,linked:!1}),` on GitHub`,(0,J.jsx)(ne,{className:`ml-auto text-muted-foreground`,"aria-hidden":`true`})]},e.itemKey))}];(t!==null||C.length>0)&&T.push({key:`runs`,content:(0,J.jsxs)(J.Fragment,{children:[t!==null&&(0,J.jsx)(p,{onClick:()=>a(t.id),children:`Open run`}),C.length>0&&(0,J.jsx)(lt,{runs:C,openRun:a})]})});let E=o.isPending||s.isPending,D=w!==null||t!==null&&(t.canApprove||t.canRetry||t.canCancel);return!E&&D&&T.push({key:`actions`,content:(0,J.jsxs)(J.Fragment,{children:[t?.canApprove&&(0,J.jsx)(p,{onClick:()=>o.mutate({runId:t.id,request:{action:`approve`}}),children:M.approve}),t?.canRetry&&(0,J.jsx)(p,{title:P(t.agentBrain),onClick:()=>o.mutate({runId:t.id,request:{action:`retry`}}),children:M.retry}),w!==null&&(0,J.jsxs)(p,{onClick:()=>s.send(w),children:[M.runAgain,(0,J.jsx)(`span`,{className:`ml-auto truncate pl-4 text-xs text-muted-foreground`,children:w.loop})]}),t?.canCancel&&(0,J.jsx)(p,{variant:`destructive`,onClick:()=>x(!0),children:M.cancel})]})}),!n.disabled&&n.targets.length>0&&T.push({key:`move`,content:(0,J.jsxs)(u,{children:[(0,J.jsx)(m,{children:`Move to`}),(0,J.jsx)(_,{className:`min-w-40`,children:n.targets.map(t=>(0,J.jsx)(p,{onClick:()=>n.onMove(e,t),children:t.name},t.id))})]})}),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(g,{children:[(0,J.jsx)(d,{render:(0,J.jsx)(A,{variant:`ghost`,size:`icon-sm`,className:O(`text-muted-foreground hover:text-foreground aria-expanded:text-foreground`,f)}),"aria-label":`Actions for ${S}`,children:(0,J.jsx)(b,{weight:`bold`,className:`size-4`,"aria-hidden":`true`})}),(0,J.jsx)(v,{align:`end`,className:`w-auto min-w-48`,children:T.map(({key:e,content:t},n)=>(0,J.jsxs)(G.Fragment,{children:[n>0&&(0,J.jsx)(l,{}),(0,J.jsx)(c,{children:t})]},e))})]}),t!==null&&(0,J.jsx)(fe,{open:h,onOpenChange:x,children:(0,J.jsxs)(_e,{children:[(0,J.jsxs)(ve,{children:[(0,J.jsxs)(pe,{children:[`Cancel `,t.loop,`?`]}),(0,J.jsxs)(xe,{children:[`The run on `,S,` stops, including any attempt in progress.`]})]}),(0,J.jsxs)(de,{children:[(0,J.jsx)(he,{children:M.keepRunning}),(0,J.jsx)(me,{variant:`destructive`,onClick:()=>{x(!1),o.mutate({runId:t.id,request:{action:`cancel`}})},children:M.confirmCancel})]})]})})]})},Q=e=>O(`relative gap-0 py-2.5 transition-[box-shadow] hover:ring-foreground/15 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring/70`,e&&`ring-needs-you/45 hover:ring-needs-you/65`),dt=(e,t,n)=>e.isPending&&e.variables!==void 0?oe[e.variables.request.action]:t.isPending?ie:n===void 0?null:D(n),ft=({item:e,lane:t,catalog:n,draggable:r,phase:i,moves:a,stall:o,readOnly:s,openRun:c})=>{let l=f(),u=ct(e.itemKey,c),{attributes:d,listeners:p,setNodeRef:m,setActivatorNodeRef:h,transform:g,transition:_,isDragging:v}=Me({id:e.itemKey,disabled:{draggable:!r,droppable:t._tag!==`WritableBoardLane`}});return(0,J.jsxs)(`div`,{ref:m,style:{transform:Ae.Translate.toString(g),transition:_},className:O(`group/task relative`,v&&`opacity-40`),children:[(0,J.jsx)(Y,{ref:h,size:`sm`,className:O(Q(e.needsYou),r&&`touch-none focus-visible:ring-2 focus-visible:ring-ring/70`),...r&&d,...r&&p,children:(0,J.jsx)(Z,{item:e,lane:t,catalog:n,stall:o,readOnly:s,action:l,again:u,progress:dt(l,u,i)})}),(0,J.jsx)(ut,{item:e,run:E(e),moves:a,openRun:c,action:l,again:u,className:`absolute top-1.5 right-1.5 transition-opacity [@media(hover:hover)]:opacity-0 [@media(hover:hover)]:group-hover/task:opacity-100 [@media(hover:hover)]:group-focus-within/task:opacity-100 [@media(hover:hover)]:aria-expanded:opacity-100`})]})},pt=new Set([`Waiting`,`Queued`,`Running`]),mt=(e,t)=>new Map(e.flatMap((n,r)=>{let i=e[r+1];if(i===void 0||n._tag!==`WritableBoardLane`||i._tag!==`WritableBoardLane`)return[];let a=new Set(n.items.flatMap(e=>e.loops)),o=n.items.flatMap(({runs:e})=>e.filter(({state:e,loop:t})=>pt.has(e)&&a.has(t))),s={next:i,loops:t.filter(({name:e})=>a.has(e)).map(({name:e,paused:t})=>({name:e,paused:t})),tone:o.some(({state:e})=>e!==`Waiting`)?`active`:o.length>0?`waiting`:`idle`};return[[n.id,s]]})),ht=e=>e.map(({name:e,paused:t})=>t?`${e} (paused)`:e).join(`, `),gt=({flow:e})=>{let t=e.loops.length>0;return(0,J.jsxs)(`p`,{"data-slot":`flow-arrow`,className:O(`-mr-3 ml-auto flex min-w-0 items-center gap-1.5 pl-2 text-xs`,e.tone===`active`?`text-run-active`:e.tone===`waiting`?`text-run-waiting`:`text-muted-foreground`),title:t?`Loops matching this lane: ${ht(e.loops)}. Flows to ${e.next.name}`:void 0,children:[(0,J.jsxs)(`span`,{className:`sr-only`,children:[`Flows to `,e.next.name]}),t&&(0,J.jsx)(`span`,{className:`truncate`,children:e.loops.map(({name:e,paused:t},n)=>(0,J.jsxs)(G.Fragment,{children:[n>0&&`, `,e,t&&(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:` paused`})]},e))}),(0,J.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 22 8`,className:O(`h-2 w-5.5 shrink-0 fill-none stroke-current`,e.tone===`idle`&&`text-faint`),strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,J.jsx)(`path`,{d:`M0.5 4h18M15.5 1l3 3-3 3`})})]})},_t=e=>e.origin===`fallback`||e.sources.length>0&&e.sources.every(e=>`state`in e&&S(e.state)),vt=({sources:e,catalog:t})=>(0,J.jsx)(`ul`,{"aria-label":`Lane sources`,className:`flex flex-wrap gap-1`,children:e.map(e=>(0,J.jsx)(`li`,{className:`flex`,children:`label`in e?(0,J.jsx)(U,{name:e.label,label:t.get(e.label)}):(0,J.jsx)(I,{variant:`outline`,className:`text-muted-foreground`,children:e.state})},`label`in e?`label:${e.label}`:`state:${e.state}`))}),yt=({lane:e,open:t})=>(0,J.jsx)(`section`,{"aria-label":`${e.name} lane`,className:`w-10 shrink-0`,children:(0,J.jsx)(`button`,{type:`button`,"aria-expanded":!1,title:`Open ${e.name}`,onClick:t,className:`flex h-full min-h-40 w-full items-start justify-center rounded-lg bg-card/60 ring-1 ring-border transition-colors outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring/70`,children:(0,J.jsxs)(`span`,{className:`sticky top-0 flex flex-col-reverse items-center gap-2 py-3`,children:[(0,J.jsx)(`span`,{className:`max-h-60 truncate text-sm font-semibold [writing-mode:vertical-rl]`,children:e.name}),` `,(0,J.jsx)(`span`,{className:`text-sm text-muted-foreground tabular-nums`,children:e.items.length})]})})}),bt=({lane:e,lanes:t,flow:n,catalog:r,targeted:i,pending:a,readOnly:o,moves:s,stallOf:c,openRun:l,onMove:u})=>{let d=_t(e),[f,p]=(0,G.useState)(d),m=e._tag===`WritableBoardLane`,{setNodeRef:h}=Fe({id:e.id,disabled:!m||a}),g=t.filter(t=>t._tag===`WritableBoardLane`&&t.id!==e.id),_=e.items.length,[v,y]=Je();return d&&f?(0,J.jsx)(yt,{lane:e,open:()=>p(!1)}):(0,J.jsxs)(`section`,{ref:h,"aria-label":`${e.name} lane`,className:O(`flex w-68 shrink-0 flex-col gap-2 rounded-lg transition-[background-color,box-shadow]`,i&&`bg-muted/40 ring-6 ring-muted/40`),children:[(0,J.jsxs)(`header`,{className:O(`z-20 -mx-0.5 flex shrink-0 flex-col gap-1.5 px-1 pt-1 pb-1`,!i&&`bg-background`),children:[(0,J.jsxs)(`div`,{className:`flex h-6 items-center`,children:[(0,J.jsxs)(`h2`,{className:`flex min-w-0 items-baseline gap-2`,children:[(0,J.jsx)(`span`,{className:`truncate text-sm font-semibold`,children:e.name}),(0,J.jsx)(`span`,{className:`text-sm text-muted-foreground tabular-nums`,children:_})]}),n!==void 0&&(0,J.jsx)(gt,{flow:n}),d&&(0,J.jsx)(A,{variant:`ghost`,size:`icon-xs`,"aria-expanded":!0,"aria-label":`Fold ${e.name}`,title:`Fold ${e.name}`,className:`ml-auto text-muted-foreground hover:text-foreground`,onClick:()=>p(!0),children:(0,J.jsx)(q,{"aria-hidden":`true`})})]}),(0,J.jsx)(`div`,{className:`min-h-5`,children:e.sources.length>0&&(0,J.jsx)(vt,{sources:e.sources,catalog:r})})]}),(0,J.jsx)(`div`,{ref:v,"aria-label":`${e.name} cards`,tabIndex:y.above||y.below?0:void 0,className:O(`-mx-1 flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto overscroll-y-contain px-1 pb-1 outline-none focus-visible:ring-2 focus-visible:ring-ring/70`,y.above&&`mask-t-from-[calc(100%-2.5rem)]`,y.below&&`mask-b-from-[calc(100%-2.5rem)]`),children:(0,J.jsxs)(Re,{items:e.items.map(({itemKey:e})=>e),strategy:De,children:[_===0&&(0,J.jsx)(`p`,{className:`rounded-lg border border-dashed border-input px-3 py-2.5 text-xs text-muted-foreground`,children:`No tasks`}),e.items.map(t=>{let n=s.find(({itemKey:e})=>e===t.itemKey)?.phase,i=a||n!==void 0;return(0,J.jsx)(ft,{item:t,lane:e,catalog:r,draggable:!i&&g.length>0,phase:n,moves:{targets:g,disabled:i,onMove:u},stall:c(t),readOnly:o,openRun:l},t.itemKey)})]})})]})},xt=({item:e,lane:t,catalog:n,stall:r})=>(0,J.jsx)(Y,{size:`sm`,className:O(Q(e.needsYou),`cursor-grabbing shadow-raised`),children:(0,J.jsx)(Z,{item:e,lane:t,catalog:n,stall:r,readOnly:!0,action:null,again:null,progress:null})}),St=({runs:e,openRun:t})=>(0,J.jsxs)(Y,{className:`sticky left-4 w-[min(64rem,calc(100cqw-2rem))] md:left-5 md:w-[min(64rem,calc(100cqw-2.5rem))]`,children:[(0,J.jsxs)(Ye,{children:[(0,J.jsx)(Xe,{children:`Runs without a card`}),(0,J.jsxs)(Ze,{children:[e.length,` run`,e.length===1?``:`s`,` with no card on this board`]})]}),(0,J.jsx)(Qe,{children:(0,J.jsxs)(Ee,{children:[(0,J.jsx)(we,{children:(0,J.jsxs)(z,{children:[(0,J.jsx)(R,{children:`Loop`}),(0,J.jsx)(R,{children:`Agent`}),(0,J.jsx)(R,{children:`Item`}),(0,J.jsx)(R,{children:`State`}),(0,J.jsx)(R,{className:`w-0`})]})}),(0,J.jsx)(Te,{children:e.map(e=>(0,J.jsxs)(z,{className:`cursor-pointer`,onClick:()=>t(e.id),children:[(0,J.jsx)(B,{className:`font-medium`,children:e.loop}),(0,J.jsx)(B,{children:e.agent}),(0,J.jsx)(B,{className:`max-w-64 truncate font-mono text-xs`,children:e.itemKey}),(0,J.jsx)(B,{children:(0,J.jsx)(Se,{state:e.state})}),(0,J.jsx)(B,{className:`text-right`,children:(0,J.jsx)(A,{variant:`ghost`,size:`icon-sm`,"aria-label":`Open run ${e.id}`,onClick:n=>{n.stopPropagation(),t(e.id)},children:(0,J.jsx)(K,{"aria-hidden":`true`})})})]},e.id))})]})})]}),Ct=e=>[...e.filter(({_tag:e})=>e===`WritableBoardLane`),...e.filter(({_tag:e,origin:t})=>e!==`WritableBoardLane`&&t!==`fallback`),...e.filter(({origin:e})=>e===`fallback`)],$=(e,t)=>t.find(t=>t.id===e)??t.find(t=>t.items.some(({itemKey:t})=>t===e)),wt=e=>{let t=V(e);if(t.length>0)return t;if(e.pointerCoordinates===null){let t=V({...e,pointerCoordinates:{x:e.collisionRect.left+1,y:e.collisionRect.top+1}});if(t.length>0)return t}return ke(e)},Tt=e=>(t,n)=>{let r=t.code===`ArrowRight`;if(!r&&t.code!==`ArrowLeft`)return Ie(t,n);t.preventDefault();let{collisionRect:i,droppableRects:a,droppableContainers:o}=n.context;if(i===null)return;let s=new Set(e.map(({id:e})=>e)),[c]=o.getEnabled().flatMap(({id:e})=>{let t=a.get(e);return t!==void 0&&s.has(e)?[t]:[]}).filter(({left:e})=>r?e>i.left:e<i.left).sort((e,t)=>r?e.left-t.left:t.left-e.left);return c===void 0?void 0:{x:c.left,y:c.top}},Et=(e,t)=>{let n=e.flatMap(({items:e})=>e).find(({itemKey:e})=>e===t.itemKey);if(n===void 0)return e;let r=new Set(e.flatMap(e=>e._tag===`WritableBoardLane`?e.labels:[])),i={...n,labels:n.labels.filter(e=>!r.has(e))};return e.map(e=>{let n=e.items.filter(({itemKey:e})=>e!==t.itemKey);return e.id===t.toLane?{...e,items:[i,...n]}:{...e,items:n}})},Dt=e=>{let t=new Set(e.board.lanes.flatMap(({items:e})=>e.flatMap(({items:e})=>e.map(({itemKey:e})=>e))));return e.runs.filter(({itemKey:e})=>!t.has(e))},Ot=({project:e,loops:t,stalled:n,disabled:r,openRun:i})=>{let[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(null),{moves:l,moveItem:u,isPending:d,error:f}=re(e),p=Dt(e),m=l.reduce(Et,Ct(e.board.lanes)),h=je(H(Ne,{activationConstraint:{distance:6}}),H(Oe,{coordinateGetter:Tt(m)})),g=mt(m,t),_=m.reduce((e,t)=>e+t.items.length,0),v=e=>Be(n,e),y=new Map(e.labels.map(e=>[e.name,e])),b=r||d,x=()=>{o(null),c(null)};return(0,J.jsxs)(`div`,{className:`flex min-h-96 flex-1 flex-col gap-4 pt-5`,children:[(0,J.jsx)(ue,{title:e.repository,leading:(0,J.jsx)(ye,{repository:e.repository,size:`title`}),counts:`${m.length} lane${m.length===1?``:`s`}, ${_} item${_===1?``:`s`}`,className:`px-4 md:px-5`,children:e.status===`needs-you`&&(0,J.jsx)(Ce,{})}),e.board.lanes.some(({origin:e})=>e===`proposed`)&&(0,J.jsxs)(`p`,{className:`mx-4 max-w-3xl text-muted-foreground md:mx-5`,children:[`Proposed lanes are read-only. To enable moves, add lanes with labels for this project under `,(0,J.jsx)(`code`,{children:`repos[].lanes`}),` in `,(0,J.jsx)(`code`,{children:`usine.yaml`}),`, then reload the configuration from Configuration > Loops.`]}),e.board.failures.length>0&&(0,J.jsx)(j,{className:`mx-4 max-w-3xl md:mx-5`,title:`${e.board.failures.length} ${e.board.failures.length===1?`item`:`items`} not shown on the board`,message:e.board.failures.map(e=>e.message).join(`
1
+ import{a as e,n as t,t as n}from"./jsx-runtime-Wy9s6hX0.js";import{r,t as i}from"./mark-TjVTH0zt.js";import{t as a}from"./useSuspenseQuery-BRPaB8Gf.js";import{a as o,b as s,c,d as l,f as u,h as d,i as f,l as p,m,n as h,o as g,p as _,s as v,u as y,v as b}from"./actions-DCgAlxnS.js";import{t as x}from"./link-04lHwIZK.js";import{lt as S}from"./api-DMBgrk17.js";import{m as C,s as w}from"./strings-Cgrt38_s.js";import{a as T,i as E,n as D,o as ee,r as te,s as ne,t as re}from"./moves-CbOc6hX6.js";import{A as O,W as k,t as A}from"./button-D4_M-wHl.js";import{t as j}from"./error-alert-C3tCznIk.js";import{A as M,E as N,N as ie,i as ae,j as oe,k as P,n as se,r as ce}from"./overview-CyrdJxvZ.js";import{a as le,i as ue}from"./page-5rCn82pX.js";import{B as de,D as F,F as fe,H as pe,I as me,L as he,P as ge,R as _e,V as ve,W as ye,a as be,w as I,z as xe}from"./index-DSOKl9hZ.js";import{n as L,r as Se,t as Ce}from"./status-badge-CYV7BO8y.js";import{a as we,i as R,n as Te,o as z,r as B,t as Ee}from"./table-kSUccuLf.js";import{a as De,c as Oe,d as V,f as ke,g as Ae,h as je,i as Me,l as Ne,m as H,o as Pe,p as Fe,r as Ie,s as Le,t as Re}from"./sortable.esm-DCopHyTW.js";import{t as U}from"./label-badge-DlfFeHM2.js";import{t as ze}from"./action-CCOQazIB.js";import{f as Be,o as Ve,u as He}from"./model-Ca7RC2YV.js";import{n as W,t as Ue}from"./strings-CD2oxW8w.js";import{t as We}from"./project-not-found-CZLTPMV2.js";var G=e(t(),1),Ge=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M204,64V168a12,12,0,0,1-24,0V93L72.49,200.49a12,12,0,0,1-17-17L163,76H88a12,12,0,0,1,0-24H192A12,12,0,0,1,204,64Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M192,64V168L88,64Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M192,56H88a8,8,0,0,0-5.66,13.66L128.69,116,58.34,186.34a8,8,0,0,0,11.32,11.32L140,127.31l46.34,46.35A8,8,0,0,0,200,168V64A8,8,0,0,0,192,56Zm-8,92.69-38.34-38.34h0L107.31,72H184Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-13.66,5.66L140,127.31,69.66,197.66a8,8,0,0,1-11.32-11.32L128.69,116,82.34,69.66A8,8,0,0,1,88,56H192A8,8,0,0,1,200,64Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M198,64V168a6,6,0,0,1-12,0V78.48L68.24,196.24a6,6,0,0,1-8.48-8.48L177.52,70H88a6,6,0,0,1,0-12H192A6,6,0,0,1,198,64Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M200,64V168a8,8,0,0,1-16,0V83.31L69.66,197.66a8,8,0,0,1-11.32-11.32L172.69,72H88a8,8,0,0,1,0-16H192A8,8,0,0,1,200,64Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M196,64V168a4,4,0,0,1-8,0V73.66L66.83,194.83a4,4,0,0,1-5.66-5.66L182.34,68H88a4,4,0,0,1,0-8H192A4,4,0,0,1,196,64Z`}))]]),Ke=new Map([[`bold`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M140,40V216a12,12,0,0,1-24,0V40a12,12,0,0,1,24,0ZM64.49,87.51a12,12,0,0,0-17,17L59,116H16a12,12,0,0,0,0,24H59L47.51,151.51a12,12,0,0,0,17,17l32-32a12,12,0,0,0,0-17ZM240,116H197l11.52-11.51a12,12,0,0,0-17-17l-32,32a12,12,0,0,0,0,17l32,32a12,12,0,0,0,17-17L197,140h43a12,12,0,0,0,0-24Z`}))],[`duotone`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M240,56V200a16,16,0,0,1-16,16H32a16,16,0,0,1-16-16V56A16,16,0,0,1,32,40H224A16,16,0,0,1,240,56Z`,opacity:`0.2`}),G.createElement(`path`,{d:`M136,40V216a8,8,0,0,1-16,0V40a8,8,0,0,1,16,0ZM69.66,90.34a8,8,0,0,0-11.32,11.32L76.69,120H16a8,8,0,0,0,0,16H76.69L58.34,154.34a8,8,0,0,0,11.32,11.32l32-32a8,8,0,0,0,0-11.32ZM240,120H179.31l18.35-18.34a8,8,0,0,0-11.32-11.32l-32,32a8,8,0,0,0,0,11.32l32,32a8,8,0,0,0,11.32-11.32L179.31,136H240a8,8,0,0,0,0-16Z`}))],[`fill`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M101.66,122.34a8,8,0,0,1,0,11.32l-32,32A8,8,0,0,1,56,160V136H16a8,8,0,0,1,0-16H56V96a8,8,0,0,1,13.66-5.66ZM240,120H200V96a8,8,0,0,0-13.66-5.66l-32,32a8,8,0,0,0,0,11.32l32,32A8,8,0,0,0,200,160V136h40a8,8,0,0,0,0-16ZM128,32a8,8,0,0,0-8,8V216a8,8,0,0,0,16,0V40A8,8,0,0,0,128,32Z`}))],[`light`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M134,40V216a6,6,0,0,1-12,0V40a6,6,0,0,1,12,0ZM68.24,91.76a6,6,0,0,0-8.48,8.48L81.51,122H16a6,6,0,0,0,0,12H81.51L59.76,155.76a6,6,0,1,0,8.48,8.48l32-32a6,6,0,0,0,0-8.48ZM240,122H174.49l21.75-21.76a6,6,0,0,0-8.48-8.48l-32,32a6,6,0,0,0,0,8.48l32,32a6,6,0,0,0,8.48-8.48L174.49,134H240a6,6,0,0,0,0-12Z`}))],[`regular`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M136,40V216a8,8,0,0,1-16,0V40a8,8,0,0,1,16,0ZM69.66,90.34a8,8,0,0,0-11.32,11.32L76.69,120H16a8,8,0,0,0,0,16H76.69L58.34,154.34a8,8,0,0,0,11.32,11.32l32-32a8,8,0,0,0,0-11.32ZM240,120H179.31l18.35-18.34a8,8,0,0,0-11.32-11.32l-32,32a8,8,0,0,0,0,11.32l32,32a8,8,0,0,0,11.32-11.32L179.31,136H240a8,8,0,0,0,0-16Z`}))],[`thin`,G.createElement(G.Fragment,null,G.createElement(`path`,{d:`M132,40V216a4,4,0,0,1-8,0V40a4,4,0,0,1,8,0ZM66.83,93.17a4,4,0,0,0-5.66,5.66L86.34,124H16a4,4,0,0,0,0,8H86.34L61.17,157.17a4,4,0,0,0,5.66,5.66l32-32a4,4,0,0,0,0-5.66ZM240,124H169.66l25.17-25.17a4,4,0,1,0-5.66-5.66l-32,32a4,4,0,0,0,0,5.66l32,32a4,4,0,0,0,5.66-5.66L169.66,132H240a4,4,0,0,0,0-8Z`}))]]),K=G.forwardRef((e,t)=>G.createElement(k,{ref:t,...e,weights:Ge}));K.displayName=`ArrowUpRightIcon`;var q=G.forwardRef((e,t)=>G.createElement(k,{ref:t,...e,weights:Ke}));q.displayName=`ArrowsInLineHorizontalIcon`;var qe={above:!1,below:!1},Je=()=>{let[e,t]=(0,G.useState)(qe),n=(0,G.useRef)(null);return[(0,G.useCallback)(e=>{if(n.current?.(),n.current=null,e===null)return;let r=()=>{let n=e.scrollTop>1,r=e.scrollHeight-e.clientHeight-e.scrollTop>1;t(e=>e.above===n&&e.below===r?e:{above:n,below:r})},i=new ResizeObserver(r),a=()=>{i.observe(e);for(let t of e.children)i.observe(t)},o=new MutationObserver(()=>{i.disconnect(),a(),r()});a(),o.observe(e,{childList:!0}),e.addEventListener(`scroll`,r,{passive:!0}),r(),n.current=()=>{e.removeEventListener(`scroll`,r),o.disconnect(),i.disconnect()}},[]),e]},J=n();function Y({className:e,size:t=`default`,...n}){return(0,J.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:O(`group/card flex flex-col gap-(--card-spacing) overflow-hidden rounded-lg bg-card py-(--card-spacing) text-sm text-card-foreground ring-1 ring-border [--card-spacing:--spacing(4)] has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg`,e),...n})}function Ye({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`card-header`,className:O(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,e),...t})}function Xe({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`card-title`,className:O(`text-lg font-semibold`,e),...t})}function Ze({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`card-description`,className:O(`text-sm text-muted-foreground`,e),...t})}function Qe({className:e,...t}){return(0,J.jsx)(`div`,{"data-slot":`card-content`,className:O(`px-(--card-spacing)`,e),...t})}var $e=(e,t)=>e===`Running`?`Running since ${C(t)}`:e===`Failed`?`Failed at ${C(t)}`:N(t),X=3,et=({labels:e,catalog:t})=>{if(e.length===0)return null;let n=e.slice(X);return(0,J.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[e.slice(0,X).map(e=>(0,J.jsx)(U,{name:e,label:t.get(e)},e)),n.length>0&&(0,J.jsxs)(I,{variant:`outline`,className:`text-muted-foreground tabular-nums`,title:n.join(`, `),"aria-label":`${n.length} more: ${n.join(`, `)}`,children:[`+`,n.length]})]})},tt=`block w-full cursor-pointer text-left outline-none after:absolute after:inset-0 after:rounded-lg`,nt=({item:e})=>(0,J.jsx)(`h3`,{className:`text-sm/snug font-medium text-card-foreground`,title:e.title,children:(0,J.jsx)(x,{to:`/projects/$owner/$name/tasks/$number`,params:{...ae(e.repository),number:He(e)},draggable:!1,className:tt,children:(0,J.jsx)(`span`,{className:`line-clamp-2`,children:e.title})})}),rt=({failure:e,children:t})=>(0,J.jsxs)(`div`,{className:`flex flex-col items-start gap-1.5 rounded-md bg-destructive/8 px-2 py-1.5 text-xs text-destructive`,children:[(0,J.jsx)(`p`,{className:`line-clamp-2 wrap-anywhere`,title:e.message,children:e.message}),t]}),it=({failure:e,action:t})=>t!==null&&e.run.canRetry&&!t.isPending?(0,J.jsx)(A,{variant:`outline`,size:`xs`,className:`relative z-10`,title:P(e.run.agentBrain),onClick:()=>t.mutate({runId:e.run.id,request:{action:`retry`}}),children:M.retry}):null,at=({run:e})=>{let t=F(3e4),n=T(e);return(0,J.jsxs)(`p`,{className:`flex min-w-0 items-center gap-1.5 text-xs whitespace-nowrap text-muted-foreground`,children:[(0,J.jsx)(L,{state:e.state,className:`mr-0.5 ml-0.75`}),(0,J.jsx)(`span`,{className:`truncate text-foreground`,children:e.loop}),(0,J.jsx)(`span`,{className:`shrink-0`,children:e.state}),n!==null&&(0,J.jsx)(`time`,{className:`shrink-0 font-mono tabular-nums`,dateTime:n,title:$e(e.state,n),children:w(n,t)}),(0,J.jsx)(`span`,{className:`ml-auto truncate pl-2`,children:e.agent})]})},ot=({stalled:e,named:t,children:n})=>{let r=F(3e4),i=W(e,r);return(0,J.jsxs)(`div`,{"data-slot":`stall-note`,className:`flex flex-col items-start gap-1.5 text-xs`,children:[(0,J.jsxs)(`p`,{className:`line-clamp-3 text-muted-foreground`,title:`${e.loop}: ${i}`,children:[t&&(0,J.jsxs)(`span`,{className:`font-medium text-foreground`,children:[e.loop,` `]}),i]}),n]})},st=e=>[`run-again`,`board-card`,e],ct=(e,t)=>{let n=st(e),r=o({mutationKey:n,onClaimed:t}),i=s({filters:{mutationKey:n,exact:!0},select:({state:e})=>e}).at(-1);return{isPending:i?.status===`pending`,data:i?.data,error:i?.error??null,send:e=>r.mutate(h(e))}},Z=({item:e,lane:t,catalog:n,stall:r,readOnly:a,action:o,again:s,progress:c})=>{let l=ee(e),u=E(e),d=o?.error?.message??null,f=s?.error?.message??null,p=r!==null&&l!==null&&(r.reason._tag===`RunFailed`||r.reason._tag===`SuppressedForOperator`)&&r.reason.run.id===l.run.id,m=r===null||o===null?null:(0,J.jsx)(ze,{stalled:r,readOnly:a,appearance:`card`}),h=e.needsYou&&!(u?.canApprove||u?.canResolveFailure)&&r===null;return(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1.5 px-3`,children:[(0,J.jsx)(`p`,{className:`flex flex-wrap items-baseline gap-x-2.5 pr-6`,children:e.items.map(e=>(0,J.jsx)(i,{item:e,className:`relative z-10`},e.itemKey))}),(0,J.jsx)(nt,{item:e}),(0,J.jsx)(et,{labels:te(e,t),catalog:n}),u!==null&&(0,J.jsx)(at,{run:u}),c!==null&&(0,J.jsx)(`p`,{role:`status`,className:`text-xs text-muted-foreground`,children:c}),l!==null&&(0,J.jsx)(rt,{failure:l,children:p&&r?.reason._tag===`SuppressedForOperator`?m:(0,J.jsx)(it,{failure:l,action:o})}),r!==null&&!p&&(0,J.jsx)(ot,{stalled:r,named:(u===null||Ve(r)?.id!==u.id)&&!Ue(r),children:m}),s?.data?._tag===`CycleBlocked`&&(0,J.jsx)(`p`,{role:`status`,className:`text-xs text-needs-you`,children:`No run opened: cycle budget used up. Reset it in Needs attention`}),d!==null&&(0,J.jsx)(`p`,{className:`text-xs text-destructive wrap-anywhere`,children:d}),f!==null&&(0,J.jsx)(`p`,{className:`text-xs text-destructive wrap-anywhere`,children:f}),e.conflicting&&(0,J.jsx)(`p`,{className:`text-xs text-destructive`,children:`Conflicts with base`}),h&&(0,J.jsx)(`p`,{className:`text-xs text-needs-you`,children:`Needs attention`})]})},lt=({runs:e,openRun:t})=>(0,J.jsxs)(u,{children:[(0,J.jsx)(m,{children:`Run history`}),(0,J.jsx)(_,{className:`min-w-48`,children:[...e].reverse().map(e=>(0,J.jsxs)(p,{onClick:()=>t(e.id),children:[(0,J.jsx)(`span`,{className:`truncate`,children:e.loop}),(0,J.jsxs)(`span`,{className:`ml-auto flex shrink-0 items-center gap-2 pl-4 text-xs text-muted-foreground`,children:[(0,J.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,J.jsx)(L,{state:e.state}),e.state]}),(0,J.jsx)(`time`,{dateTime:e.openedAt,title:N(e.openedAt),className:`font-mono tabular-nums`,children:w(e.openedAt)})]})]},e.id))})]}),ut=({item:e,run:t,moves:n,openRun:a,action:o,again:s,className:f})=>{let[h,x]=(0,G.useState)(!1),S=r(e),C=e.runs.filter(({id:e})=>e!==t?.id),w=e.run?.canRunAgain===!0?e.run:null,T=[{key:`links`,content:e.items.map(e=>(0,J.jsxs)(y,{href:e.url,target:`_blank`,rel:`noreferrer`,closeOnClick:!0,children:[`Open `,(0,J.jsx)(i,{item:e,linked:!1}),` on GitHub`,(0,J.jsx)(ne,{className:`ml-auto text-muted-foreground`,"aria-hidden":`true`})]},e.itemKey))}];(t!==null||C.length>0)&&T.push({key:`runs`,content:(0,J.jsxs)(J.Fragment,{children:[t!==null&&(0,J.jsx)(p,{onClick:()=>a(t.id),children:`Open run`}),C.length>0&&(0,J.jsx)(lt,{runs:C,openRun:a})]})});let E=o.isPending||s.isPending,D=w!==null||t!==null&&(t.canApprove||t.canRetry||t.canCancel);return!E&&D&&T.push({key:`actions`,content:(0,J.jsxs)(J.Fragment,{children:[t?.canApprove&&(0,J.jsx)(p,{onClick:()=>o.mutate({runId:t.id,request:{action:`approve`}}),children:M.approve}),t?.canRetry&&(0,J.jsx)(p,{title:P(t.agentBrain),onClick:()=>o.mutate({runId:t.id,request:{action:`retry`}}),children:M.retry}),w!==null&&(0,J.jsxs)(p,{onClick:()=>s.send(w),children:[M.runAgain,(0,J.jsx)(`span`,{className:`ml-auto truncate pl-4 text-xs text-muted-foreground`,children:w.loop})]}),t?.canCancel&&(0,J.jsx)(p,{variant:`destructive`,onClick:()=>x(!0),children:M.cancel})]})}),!n.disabled&&n.targets.length>0&&T.push({key:`move`,content:(0,J.jsxs)(u,{children:[(0,J.jsx)(m,{children:`Move to`}),(0,J.jsx)(_,{className:`min-w-40`,children:n.targets.map(t=>(0,J.jsx)(p,{onClick:()=>n.onMove(e,t),children:t.name},t.id))})]})}),(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(g,{children:[(0,J.jsx)(d,{render:(0,J.jsx)(A,{variant:`ghost`,size:`icon-sm`,className:O(`text-muted-foreground hover:text-foreground aria-expanded:text-foreground`,f)}),"aria-label":`Actions for ${S}`,children:(0,J.jsx)(b,{weight:`bold`,className:`size-4`,"aria-hidden":`true`})}),(0,J.jsx)(v,{align:`end`,className:`w-auto min-w-48`,children:T.map(({key:e,content:t},n)=>(0,J.jsxs)(G.Fragment,{children:[n>0&&(0,J.jsx)(l,{}),(0,J.jsx)(c,{children:t})]},e))})]}),t!==null&&(0,J.jsx)(fe,{open:h,onOpenChange:x,children:(0,J.jsxs)(_e,{children:[(0,J.jsxs)(ve,{children:[(0,J.jsxs)(pe,{children:[`Cancel `,t.loop,`?`]}),(0,J.jsxs)(xe,{children:[`The run on `,S,` stops, including any attempt in progress.`]})]}),(0,J.jsxs)(de,{children:[(0,J.jsx)(he,{children:M.keepRunning}),(0,J.jsx)(me,{variant:`destructive`,onClick:()=>{x(!1),o.mutate({runId:t.id,request:{action:`cancel`}})},children:M.confirmCancel})]})]})})]})},Q=e=>O(`relative gap-0 py-2.5 transition-[box-shadow] hover:ring-foreground/15 has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-ring/70`,e&&`ring-needs-you/45 hover:ring-needs-you/65`),dt=(e,t,n)=>e.isPending&&e.variables!==void 0?oe[e.variables.request.action]:t.isPending?ie:n===void 0?null:D(n),ft=({item:e,lane:t,catalog:n,draggable:r,phase:i,moves:a,stall:o,readOnly:s,openRun:c})=>{let l=f(),u=ct(e.itemKey,c),{attributes:d,listeners:p,setNodeRef:m,setActivatorNodeRef:h,transform:g,transition:_,isDragging:v}=Me({id:e.itemKey,disabled:{draggable:!r,droppable:t._tag!==`WritableBoardLane`}});return(0,J.jsxs)(`div`,{ref:m,style:{transform:Ae.Translate.toString(g),transition:_},className:O(`group/task relative`,v&&`opacity-40`),children:[(0,J.jsx)(Y,{ref:h,size:`sm`,className:O(Q(e.needsYou),r&&`touch-none focus-visible:ring-2 focus-visible:ring-ring/70`),...r&&d,...r&&p,children:(0,J.jsx)(Z,{item:e,lane:t,catalog:n,stall:o,readOnly:s,action:l,again:u,progress:dt(l,u,i)})}),(0,J.jsx)(ut,{item:e,run:E(e),moves:a,openRun:c,action:l,again:u,className:`absolute top-1.5 right-1.5 transition-opacity [@media(hover:hover)]:opacity-0 [@media(hover:hover)]:group-hover/task:opacity-100 [@media(hover:hover)]:group-focus-within/task:opacity-100 [@media(hover:hover)]:aria-expanded:opacity-100`})]})},pt=new Set([`Waiting`,`Queued`,`Running`]),mt=(e,t)=>new Map(e.flatMap((n,r)=>{let i=e[r+1];if(i===void 0||n._tag!==`WritableBoardLane`||i._tag!==`WritableBoardLane`)return[];let a=new Set(n.items.flatMap(e=>e.loops)),o=n.items.flatMap(({runs:e})=>e.filter(({state:e,loop:t})=>pt.has(e)&&a.has(t))),s={next:i,loops:t.filter(({name:e})=>a.has(e)).map(({name:e,paused:t})=>({name:e,paused:t})),tone:o.some(({state:e})=>e!==`Waiting`)?`active`:o.length>0?`waiting`:`idle`};return[[n.id,s]]})),ht=e=>e.map(({name:e,paused:t})=>t?`${e} (paused)`:e).join(`, `),gt=({flow:e})=>{let t=e.loops.length>0;return(0,J.jsxs)(`p`,{"data-slot":`flow-arrow`,className:O(`-mr-3 ml-auto flex min-w-0 items-center gap-1.5 pl-2 text-xs`,e.tone===`active`?`text-run-active`:e.tone===`waiting`?`text-run-waiting`:`text-muted-foreground`),title:t?`Loops matching this lane: ${ht(e.loops)}. Flows to ${e.next.name}`:void 0,children:[(0,J.jsxs)(`span`,{className:`sr-only`,children:[`Flows to `,e.next.name]}),t&&(0,J.jsx)(`span`,{className:`truncate`,children:e.loops.map(({name:e,paused:t},n)=>(0,J.jsxs)(G.Fragment,{children:[n>0&&`, `,e,t&&(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:` paused`})]},e))}),(0,J.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 22 8`,className:O(`h-2 w-5.5 shrink-0 fill-none stroke-current`,e.tone===`idle`&&`text-faint`),strokeWidth:`1`,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,J.jsx)(`path`,{d:`M0.5 4h18M15.5 1l3 3-3 3`})})]})},_t=e=>e.origin===`fallback`||e.sources.length>0&&e.sources.every(e=>`state`in e&&S(e.state)),vt=({sources:e,catalog:t})=>(0,J.jsx)(`ul`,{"aria-label":`Lane sources`,className:`flex flex-wrap gap-1`,children:e.map(e=>(0,J.jsx)(`li`,{className:`flex`,children:`label`in e?(0,J.jsx)(U,{name:e.label,label:t.get(e.label)}):(0,J.jsx)(I,{variant:`outline`,className:`text-muted-foreground`,children:e.state})},`label`in e?`label:${e.label}`:`state:${e.state}`))}),yt=({lane:e,open:t})=>(0,J.jsx)(`section`,{"aria-label":`${e.name} lane`,className:`w-10 shrink-0`,children:(0,J.jsx)(`button`,{type:`button`,"aria-expanded":!1,title:`Open ${e.name}`,onClick:t,className:`flex h-full min-h-40 w-full items-start justify-center rounded-lg bg-card/60 ring-1 ring-border transition-colors outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring/70`,children:(0,J.jsxs)(`span`,{className:`sticky top-0 flex flex-col-reverse items-center gap-2 py-3`,children:[(0,J.jsx)(`span`,{className:`max-h-60 truncate text-sm font-semibold [writing-mode:vertical-rl]`,children:e.name}),` `,(0,J.jsx)(`span`,{className:`text-sm text-muted-foreground tabular-nums`,children:e.items.length})]})})}),bt=({lane:e,lanes:t,flow:n,catalog:r,targeted:i,pending:a,readOnly:o,moves:s,stallOf:c,openRun:l,onMove:u})=>{let d=_t(e),[f,p]=(0,G.useState)(d),m=e._tag===`WritableBoardLane`,{setNodeRef:h}=Fe({id:e.id,disabled:!m||a}),g=t.filter(t=>t._tag===`WritableBoardLane`&&t.id!==e.id),_=e.items.length,[v,y]=Je();return d&&f?(0,J.jsx)(yt,{lane:e,open:()=>p(!1)}):(0,J.jsxs)(`section`,{ref:h,"aria-label":`${e.name} lane`,className:O(`flex w-68 shrink-0 flex-col gap-2 rounded-lg transition-[background-color,box-shadow]`,i&&`bg-muted/40 ring-6 ring-muted/40`),children:[(0,J.jsxs)(`header`,{className:O(`z-20 -mx-0.5 flex shrink-0 flex-col gap-1.5 px-1 pt-1 pb-1`,!i&&`bg-background`),children:[(0,J.jsxs)(`div`,{className:`flex h-6 items-center`,children:[(0,J.jsxs)(`h2`,{className:`flex min-w-0 items-baseline gap-2`,children:[(0,J.jsx)(`span`,{className:`truncate text-sm font-semibold`,children:e.name}),(0,J.jsx)(`span`,{className:`text-sm text-muted-foreground tabular-nums`,children:_})]}),n!==void 0&&(0,J.jsx)(gt,{flow:n}),d&&(0,J.jsx)(A,{variant:`ghost`,size:`icon-xs`,"aria-expanded":!0,"aria-label":`Fold ${e.name}`,title:`Fold ${e.name}`,className:`ml-auto text-muted-foreground hover:text-foreground`,onClick:()=>p(!0),children:(0,J.jsx)(q,{"aria-hidden":`true`})})]}),(0,J.jsx)(`div`,{className:`min-h-5`,children:e.sources.length>0&&(0,J.jsx)(vt,{sources:e.sources,catalog:r})})]}),(0,J.jsx)(`div`,{ref:v,"aria-label":`${e.name} cards`,tabIndex:y.above||y.below?0:void 0,className:O(`-mx-1 flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto overscroll-y-contain px-1 pb-1 outline-none focus-visible:ring-2 focus-visible:ring-ring/70`,y.above&&`mask-t-from-[calc(100%-2.5rem)]`,y.below&&`mask-b-from-[calc(100%-2.5rem)]`),children:(0,J.jsxs)(Re,{items:e.items.map(({itemKey:e})=>e),strategy:De,children:[_===0&&(0,J.jsx)(`p`,{className:`rounded-lg border border-dashed border-input px-3 py-2.5 text-xs text-muted-foreground`,children:`No tasks`}),e.items.map(t=>{let n=s.find(({itemKey:e})=>e===t.itemKey)?.phase,i=a||n!==void 0;return(0,J.jsx)(ft,{item:t,lane:e,catalog:r,draggable:!i&&g.length>0,phase:n,moves:{targets:g,disabled:i,onMove:u},stall:c(t),readOnly:o,openRun:l},t.itemKey)})]})})]})},xt=({item:e,lane:t,catalog:n,stall:r})=>(0,J.jsx)(Y,{size:`sm`,className:O(Q(e.needsYou),`cursor-grabbing shadow-raised`),children:(0,J.jsx)(Z,{item:e,lane:t,catalog:n,stall:r,readOnly:!0,action:null,again:null,progress:null})}),St=({runs:e,openRun:t})=>(0,J.jsxs)(Y,{className:`sticky left-4 w-[min(64rem,calc(100cqw-2rem))] md:left-5 md:w-[min(64rem,calc(100cqw-2.5rem))]`,children:[(0,J.jsxs)(Ye,{children:[(0,J.jsx)(Xe,{children:`Runs without a card`}),(0,J.jsxs)(Ze,{children:[e.length,` run`,e.length===1?``:`s`,` with no card on this board`]})]}),(0,J.jsx)(Qe,{children:(0,J.jsxs)(Ee,{children:[(0,J.jsx)(we,{children:(0,J.jsxs)(z,{children:[(0,J.jsx)(R,{children:`Loop`}),(0,J.jsx)(R,{children:`Agent`}),(0,J.jsx)(R,{children:`Item`}),(0,J.jsx)(R,{children:`State`}),(0,J.jsx)(R,{className:`w-0`})]})}),(0,J.jsx)(Te,{children:e.map(e=>(0,J.jsxs)(z,{className:`cursor-pointer`,onClick:()=>t(e.id),children:[(0,J.jsx)(B,{className:`font-medium`,children:e.loop}),(0,J.jsx)(B,{children:e.agent}),(0,J.jsx)(B,{className:`max-w-64 truncate font-mono text-xs`,children:e.itemKey}),(0,J.jsx)(B,{children:(0,J.jsx)(Se,{state:e.state})}),(0,J.jsx)(B,{className:`text-right`,children:(0,J.jsx)(A,{variant:`ghost`,size:`icon-sm`,"aria-label":`Open run ${e.id}`,onClick:n=>{n.stopPropagation(),t(e.id)},children:(0,J.jsx)(K,{"aria-hidden":`true`})})})]},e.id))})]})})]}),Ct=e=>[...e.filter(({_tag:e})=>e===`WritableBoardLane`),...e.filter(({_tag:e,origin:t})=>e!==`WritableBoardLane`&&t!==`fallback`),...e.filter(({origin:e})=>e===`fallback`)],$=(e,t)=>t.find(t=>t.id===e)??t.find(t=>t.items.some(({itemKey:t})=>t===e)),wt=e=>{let t=V(e);if(t.length>0)return t;if(e.pointerCoordinates===null){let t=V({...e,pointerCoordinates:{x:e.collisionRect.left+1,y:e.collisionRect.top+1}});if(t.length>0)return t}return ke(e)},Tt=e=>(t,n)=>{let r=t.code===`ArrowRight`;if(!r&&t.code!==`ArrowLeft`)return Ie(t,n);t.preventDefault();let{collisionRect:i,droppableRects:a,droppableContainers:o}=n.context;if(i===null)return;let s=new Set(e.map(({id:e})=>e)),[c]=o.getEnabled().flatMap(({id:e})=>{let t=a.get(e);return t!==void 0&&s.has(e)?[t]:[]}).filter(({left:e})=>r?e>i.left:e<i.left).sort((e,t)=>r?e.left-t.left:t.left-e.left);return c===void 0?void 0:{x:c.left,y:c.top}},Et=(e,t)=>{let n=e.flatMap(({items:e})=>e).find(({itemKey:e})=>e===t.itemKey);if(n===void 0)return e;let r=new Set(e.flatMap(e=>e._tag===`WritableBoardLane`?e.labels:[])),i={...n,labels:n.labels.filter(e=>!r.has(e))};return e.map(e=>{let n=e.items.filter(({itemKey:e})=>e!==t.itemKey);return e.id===t.toLane?{...e,items:[i,...n]}:{...e,items:n}})},Dt=e=>{let t=new Set(e.board.lanes.flatMap(({items:e})=>e.flatMap(({items:e})=>e.map(({itemKey:e})=>e))));return e.runs.filter(({itemKey:e})=>!t.has(e))},Ot=({project:e,loops:t,stalled:n,disabled:r,openRun:i})=>{let[a,o]=(0,G.useState)(null),[s,c]=(0,G.useState)(null),{moves:l,moveItem:u,isPending:d,error:f}=re(e),p=Dt(e),m=l.reduce(Et,Ct(e.board.lanes)),h=je(H(Ne,{activationConstraint:{distance:6}}),H(Oe,{coordinateGetter:Tt(m)})),g=mt(m,t),_=m.reduce((e,t)=>e+t.items.length,0),v=e=>Be(n,e),y=new Map(e.labels.map(e=>[e.name,e])),b=r||d,x=()=>{o(null),c(null)};return(0,J.jsxs)(`div`,{className:`flex min-h-96 flex-1 flex-col gap-4 pt-5`,children:[(0,J.jsx)(ue,{title:e.repository,leading:(0,J.jsx)(ye,{repository:e.repository,size:`title`}),counts:`${m.length} lane${m.length===1?``:`s`}, ${_} item${_===1?``:`s`}`,className:`px-4 md:px-5`,children:e.status===`needs-you`&&(0,J.jsx)(Ce,{})}),e.board.lanes.some(({origin:e})=>e===`proposed`)&&(0,J.jsxs)(`p`,{className:`mx-4 max-w-3xl text-muted-foreground md:mx-5`,children:[`Proposed lanes are read-only. To enable moves, add lanes with labels for this project under `,(0,J.jsx)(`code`,{children:`repos[].lanes`}),` in `,(0,J.jsx)(`code`,{children:`usine.yaml`}),`, then reload the configuration from Configuration > Loops.`]}),e.board.failures.length>0&&(0,J.jsx)(j,{className:`mx-4 max-w-3xl md:mx-5`,title:`${e.board.failures.length} ${e.board.failures.length===1?`item`:`items`} not shown on the board`,message:e.board.failures.map(e=>e.message).join(`
2
2
  `)}),f!==null&&(0,J.jsx)(j,{className:`mx-4 max-w-3xl md:mx-5`,message:f.message}),(0,J.jsxs)(Pe,{sensors:h,collisionDetection:wt,onDragStart:({active:e})=>{let t=m.find(({items:t})=>t.some(({itemKey:t})=>t===e.id)),n=t?.items.find(({itemKey:t})=>t===e.id);o(t===void 0||n===void 0?null:{item:n,lane:t})},onDragOver:({over:e})=>c(e===null?null:$(e.id,m)?.id??null),onDragEnd:({over:e})=>{if(x(),e===null||a===null)return;let t=$(e.id,m);t!==void 0&&u(a.item,t)},onDragCancel:x,children:[(0,J.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto overscroll-contain [container-type:size]`,"aria-label":`${e.repository} project board`,children:(0,J.jsxs)(`div`,{className:`flex w-max min-w-full flex-col gap-6 px-4 pb-4 md:px-5`,children:[(0,J.jsx)(`div`,{className:`flex h-[calc(100cqh-1rem)] min-h-80 shrink-0 gap-3`,children:m.map(e=>(0,J.jsx)(bt,{lane:e,lanes:m,flow:g.get(e.id),catalog:y,targeted:a!==null&&s===e.id&&e.id!==a.lane.id&&e._tag===`WritableBoardLane`,pending:b,readOnly:r,moves:l,stallOf:v,openRun:i,onMove:u},e.id))}),p.length>0&&(0,J.jsx)(St,{runs:p,openRun:i})]})}),(0,J.jsx)(Le,{children:a!==null&&(0,J.jsx)(xt,{item:a.item,lane:a.lane,catalog:y,stall:v(a.item)})})]})]})},kt=()=>{let{repository:e}=be.useParams(),{data:t}=a(se()),n=a(le()),r=ge(),i=ce(t.projects,e);return i===void 0?(0,J.jsx)(We,{}):(0,J.jsx)(Ot,{project:i,loops:t.loops,stalled:n.data.notMoving,disabled:t._tag===`NeedsSetup`,openRun:r})};export{kt as component};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-Wy9s6hX0.js";import{Y as t,a as n,i as r,n as i,r as a,s as o,t as s,u as c}from"./section-D0pZ24Q9.js";import{t as l}from"./useSuspenseQuery-BRPaB8Gf.js";import{t as u}from"./link-04lHwIZK.js";import{i as d}from"./overview-CyrdJxvZ.js";import{n as f}from"./queries-TKKPRagF.js";import{W as p,o as m,w as h}from"./index-BPhLK23-.js";import{a as g,i as _,n as v,o as y,r as b,t as x}from"./table-kSUccuLf.js";import{t as S}from"./fill-cell-C7QNSxol.js";import{t as C}from"./label-badge-N-5KY9g6.js";import{t as w}from"./repositories-D4wYJfa_.js";var T=e(),E=({label:e})=>e.failure===null?e.onGitHub===!1?(0,T.jsxs)(`span`,{className:`text-destructive`,children:[`Missing on GitHub`,e.declared?`, created at the next poll`:``]}):null:(0,T.jsx)(`span`,{className:`text-destructive`,children:e.failure.message}),D=({source:e})=>e._tag===`Label`?(0,T.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,T.jsx)(C,{name:e.label.name,label:e.label}),(0,T.jsx)(`span`,{className:`text-xs`,children:(0,T.jsx)(E,{label:e.label})})]}):(0,T.jsx)(h,{variant:`outline`,className:`text-muted-foreground`,children:e.state}),O=({repository:e})=>(0,T.jsx)(`div`,{className:`-mx-2`,children:(0,T.jsxs)(x,{children:[(0,T.jsx)(g,{children:(0,T.jsxs)(y,{className:`hover:bg-transparent`,children:[(0,T.jsx)(_,{className:`text-right`,children:`#`}),(0,T.jsx)(_,{children:`Lane`}),(0,T.jsx)(_,{children:`Items with`})]})}),(0,T.jsx)(v,{children:e.lanes.map((e,t)=>(0,T.jsxs)(y,{className:`hover:bg-transparent`,children:[(0,T.jsx)(b,{className:`py-3 text-right align-top font-mono text-xs text-muted-foreground tabular-nums`,children:t+1}),(0,T.jsx)(b,{className:`py-3 align-top font-medium`,children:e.name}),(0,T.jsx)(S,{className:`py-3 whitespace-normal`,children:(0,T.jsx)(`ul`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5`,children:e.sources.map(e=>(0,T.jsx)(`li`,{children:(0,T.jsx)(D,{source:e})},e._tag===`Label`?e.label.name:e.state))})})]},e.name))})]})}),k=({repository:e})=>(0,T.jsxs)(n,{children:[(0,T.jsx)(r,{label:`Board`,children:(0,T.jsx)(u,{to:`/projects/$owner/$name`,params:d(e.name),className:`text-primary hover:underline`,children:`Open the board`})}),(0,T.jsx)(r,{label:`Tags`,children:e.tags.length===0?(0,T.jsx)(c,{children:`None`}):e.tags.join(`, `)}),(0,T.jsx)(r,{label:`Loops`,children:e.loops.length===0?(0,T.jsx)(c,{children:`Not selected by any loop`}):(0,T.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:e.loops.map(e=>(0,T.jsx)(`li`,{children:(0,T.jsx)(u,{to:`/configuration/loops/$loop`,params:{loop:e},className:`text-primary hover:underline`,children:e})},e))})})]}),A=({owner:e,name:n,configuration:r})=>{let l=`${e}/${n}`,d=r.repositories.find(e=>e.name.toLowerCase()===l.toLowerCase());return d===void 0?(0,T.jsx)(s,{entity:t(`repository`,l),title:l,children:(0,T.jsxs)(o,{title:`Repository not registered`,children:[l,` is not under `,(0,T.jsx)(`code`,{children:`repos`}),` in `,(0,T.jsx)(`code`,{children:`usine.yaml`}),`.`,` `,(0,T.jsx)(u,{to:`/configuration/repositories`,className:`text-primary hover:underline`,children:`See all repositories`}),`.`]})}):(0,T.jsx)(s,{entity:t(`repository`,d.name),title:d.name,leading:(0,T.jsx)(p,{repository:d.name,size:`title`}),children:(0,T.jsxs)(i,{facts:(0,T.jsx)(k,{repository:d}),children:[(0,T.jsxs)(a,{title:`Lanes`,aside:d.lanes.length===0?void 0:`In board order, as listed in repos[].lanes`,children:[[...d.declaredLabels,...w(d)].some(({onGitHub:e})=>e===null)&&(0,T.jsx)(`p`,{className:`text-muted-foreground`,children:`Labels not polled yet. Whether each label is on GitHub shows after the first poll.`}),d.lanes.length===0?(0,T.jsxs)(`p`,{className:`max-w-[72ch] text-muted-foreground`,children:[(0,T.jsx)(`code`,{children:`usine.yaml`}),` has no lanes for this repository. The board shows lanes proposed from the repository labels, and cards cannot be moved. To move cards, add lanes under `,(0,T.jsx)(`code`,{children:`repos[].lanes`}),`.`]}):(0,T.jsx)(O,{repository:d})]}),(0,T.jsx)(a,{title:`Labels usine creates`,aside:`From labels in usine.yaml`,children:d.declaredLabels.length===0?(0,T.jsxs)(`p`,{className:`text-muted-foreground`,children:[`No labels under `,(0,T.jsx)(`code`,{children:`labels`}),` in `,(0,T.jsx)(`code`,{children:`usine.yaml`}),`.`]}):(0,T.jsx)(`ul`,{className:`flex flex-col gap-2`,children:d.declaredLabels.map(e=>(0,T.jsxs)(`li`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,T.jsx)(C,{name:e.name,label:e}),(0,T.jsx)(`span`,{className:`text-xs`,children:e.onGitHub===!0&&e.failure===null?(0,T.jsx)(c,{children:`On GitHub`}):(0,T.jsx)(E,{label:e})})]},e.name))})})]})})},j=()=>{let{owner:e,name:t}=m.useParams(),{data:n}=l(f());return(0,T.jsx)(A,{owner:e,name:t,configuration:n})};export{j as component};
1
+ import{t as e}from"./jsx-runtime-Wy9s6hX0.js";import{Y as t,a as n,i as r,n as i,r as a,s as o,t as s,u as c}from"./section-B9rSL8Bj.js";import{t as l}from"./useSuspenseQuery-BRPaB8Gf.js";import{t as u}from"./link-04lHwIZK.js";import{i as d}from"./overview-CyrdJxvZ.js";import{n as f}from"./queries-TKKPRagF.js";import{W as p,o as m,w as h}from"./index-DSOKl9hZ.js";import{a as g,i as _,n as v,o as y,r as b,t as x}from"./table-kSUccuLf.js";import{t as S}from"./fill-cell-C7QNSxol.js";import{t as C}from"./label-badge-DlfFeHM2.js";import{t as w}from"./repositories-D4wYJfa_.js";var T=e(),E=({label:e})=>e.failure===null?e.onGitHub===!1?(0,T.jsxs)(`span`,{className:`text-destructive`,children:[`Missing on GitHub`,e.declared?`, created at the next poll`:``]}):null:(0,T.jsx)(`span`,{className:`text-destructive`,children:e.failure.message}),D=({source:e})=>e._tag===`Label`?(0,T.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,T.jsx)(C,{name:e.label.name,label:e.label}),(0,T.jsx)(`span`,{className:`text-xs`,children:(0,T.jsx)(E,{label:e.label})})]}):(0,T.jsx)(h,{variant:`outline`,className:`text-muted-foreground`,children:e.state}),O=({repository:e})=>(0,T.jsx)(`div`,{className:`-mx-2`,children:(0,T.jsxs)(x,{children:[(0,T.jsx)(g,{children:(0,T.jsxs)(y,{className:`hover:bg-transparent`,children:[(0,T.jsx)(_,{className:`text-right`,children:`#`}),(0,T.jsx)(_,{children:`Lane`}),(0,T.jsx)(_,{children:`Items with`})]})}),(0,T.jsx)(v,{children:e.lanes.map((e,t)=>(0,T.jsxs)(y,{className:`hover:bg-transparent`,children:[(0,T.jsx)(b,{className:`py-3 text-right align-top font-mono text-xs text-muted-foreground tabular-nums`,children:t+1}),(0,T.jsx)(b,{className:`py-3 align-top font-medium`,children:e.name}),(0,T.jsx)(S,{className:`py-3 whitespace-normal`,children:(0,T.jsx)(`ul`,{className:`flex flex-wrap items-center gap-x-3 gap-y-1.5`,children:e.sources.map(e=>(0,T.jsx)(`li`,{children:(0,T.jsx)(D,{source:e})},e._tag===`Label`?e.label.name:e.state))})})]},e.name))})]})}),k=({repository:e})=>(0,T.jsxs)(n,{children:[(0,T.jsx)(r,{label:`Board`,children:(0,T.jsx)(u,{to:`/projects/$owner/$name`,params:d(e.name),className:`text-primary hover:underline`,children:`Open the board`})}),(0,T.jsx)(r,{label:`Tags`,children:e.tags.length===0?(0,T.jsx)(c,{children:`None`}):e.tags.join(`, `)}),(0,T.jsx)(r,{label:`Loops`,children:e.loops.length===0?(0,T.jsx)(c,{children:`Not selected by any loop`}):(0,T.jsx)(`ul`,{className:`flex flex-col gap-0.5`,children:e.loops.map(e=>(0,T.jsx)(`li`,{children:(0,T.jsx)(u,{to:`/configuration/loops/$loop`,params:{loop:e},className:`text-primary hover:underline`,children:e})},e))})})]}),A=({owner:e,name:n,configuration:r})=>{let l=`${e}/${n}`,d=r.repositories.find(e=>e.name.toLowerCase()===l.toLowerCase());return d===void 0?(0,T.jsx)(s,{entity:t(`repository`,l),title:l,children:(0,T.jsxs)(o,{title:`Repository not registered`,children:[l,` is not under `,(0,T.jsx)(`code`,{children:`repos`}),` in `,(0,T.jsx)(`code`,{children:`usine.yaml`}),`.`,` `,(0,T.jsx)(u,{to:`/configuration/repositories`,className:`text-primary hover:underline`,children:`See all repositories`}),`.`]})}):(0,T.jsx)(s,{entity:t(`repository`,d.name),title:d.name,leading:(0,T.jsx)(p,{repository:d.name,size:`title`}),children:(0,T.jsxs)(i,{facts:(0,T.jsx)(k,{repository:d}),children:[(0,T.jsxs)(a,{title:`Lanes`,aside:d.lanes.length===0?void 0:`In board order, as listed in repos[].lanes`,children:[[...d.declaredLabels,...w(d)].some(({onGitHub:e})=>e===null)&&(0,T.jsx)(`p`,{className:`text-muted-foreground`,children:`Labels not polled yet. Whether each label is on GitHub shows after the first poll.`}),d.lanes.length===0?(0,T.jsxs)(`p`,{className:`max-w-[72ch] text-muted-foreground`,children:[(0,T.jsx)(`code`,{children:`usine.yaml`}),` has no lanes for this repository. The board shows lanes proposed from the repository labels, and cards cannot be moved. To move cards, add lanes under `,(0,T.jsx)(`code`,{children:`repos[].lanes`}),`.`]}):(0,T.jsx)(O,{repository:d})]}),(0,T.jsx)(a,{title:`Labels usine creates`,aside:`From labels in usine.yaml`,children:d.declaredLabels.length===0?(0,T.jsxs)(`p`,{className:`text-muted-foreground`,children:[`No labels under `,(0,T.jsx)(`code`,{children:`labels`}),` in `,(0,T.jsx)(`code`,{children:`usine.yaml`}),`.`]}):(0,T.jsx)(`ul`,{className:`flex flex-col gap-2`,children:d.declaredLabels.map(e=>(0,T.jsxs)(`li`,{className:`flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,T.jsx)(C,{name:e.name,label:e}),(0,T.jsx)(`span`,{className:`text-xs`,children:e.onGitHub===!0&&e.failure===null?(0,T.jsx)(c,{children:`On GitHub`}):(0,T.jsx)(E,{label:e})})]},e.name))})})]})})},j=()=>{let{owner:e,name:t}=m.useParams(),{data:n}=l(f());return(0,T.jsx)(A,{owner:e,name:t,configuration:n})};export{j as component};
@@ -1 +1 @@
1
- import{a as e,n as t,t as n}from"./jsx-runtime-Wy9s6hX0.js";import{r,t as i}from"./mark-TjVTH0zt.js";import{t as a}from"./useSuspenseQuery-BRPaB8Gf.js";import{a as o,c as s,h as c,i as l,l as u,n as d,o as f,s as p,v as m}from"./actions-DCgAlxnS.js";import{t as h}from"./useNavigate-I5E4IRt2.js";import{t as g}from"./link-04lHwIZK.js";import{Fn as _,Mn as v,Sn as y,Tn as b,a as x,wn as S}from"./api-DMBgrk17.js";import{a as C,m as w,o as ee}from"./strings-Cgrt38_s.js";import{n as te,r as ne,s as re,t as ie}from"./moves-CbOc6hX6.js";import{i as ae}from"./native-select-Cc4FV9cz.js";import{A as T,t as E}from"./button-D4_M-wHl.js";import{l as oe,s as se}from"./useTriggerFocusGuards-w5WLoQxU.js";import{t as D}from"./error-alert-C3tCznIk.js";import{A as O,M as ce,N as le,T as ue,i as k,j as de,k as A,n as fe,w as j}from"./overview-CyrdJxvZ.js";import{n as pe,r as me}from"./page-5rCn82pX.js";import{B as he,D as ge,F as _e,H as ve,I as M,L as N,O as P,P as F,R as ye,V as be,ft as xe,n as Se,t as I,z as Ce}from"./index-BPhLK23-.js";import{t as we}from"./pull-request-marks-B6oHQmCS.js";import{n as L,t as Te}from"./status-badge-CYV7BO8y.js";import{n as Ee,t as De}from"./edit-and-retry-B4VIXVuU.js";import{a as Oe,i as R,n as z,o as B,r as V,t as H}from"./table-kSUccuLf.js";import{t as U}from"./fill-cell-C7QNSxol.js";import{t as ke}from"./label-badge-N-5KY9g6.js";import{a as Ae,n as je,t as Me}from"./model-Ca7RC2YV.js";import{n as Ne,t as Pe}from"./run-again-Y2Cmr2XI.js";import{t as Fe}from"./not-found-TW_8OQxg.js";import{i as W,n as G,r as K,t as q}from"./section-CZjeg41d.js";var J=n(),Ie=e=>e.postedAt===null?e.attemptEndedAt===null?null:{at:e.attemptEndedAt,title:`Posted during the attempt that ended ${w(e.attemptEndedAt)}`}:{at:e.postedAt,title:`Posted ${w(e.postedAt)}`},Le=({task:e})=>{let t=new Map(e.runs.map(e=>[e.id,e])),n=new Map(e.items.map(e=>[e.itemKey,e]));return(0,J.jsxs)(`section`,{"aria-labelledby":`task-comments`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(G,{id:`task-comments`,title:`Comments and reviews`,count:e.comments.length}),e.comments.length===0?(0,J.jsx)(q,{title:`No comments or reviews`,children:`Comments and reviews an agent posts on the task's items appear here after the attempt ends`}):(0,J.jsx)(`div`,{className:`-mx-2`,children:(0,J.jsx)(H,{"aria-labelledby":`task-comments`,children:(0,J.jsx)(z,{className:`border-t`,children:e.comments.map(e=>{let r=t.get(e.runId),a=r===void 0?void 0:n.get(r.itemKey),o=Ie(e);return(0,J.jsxs)(B,{className:K,children:[(0,J.jsx)(U,{className:`py-3 whitespace-normal`,children:(0,J.jsxs)(`a`,{"data-row-link":!0,href:e.url,target:`_blank`,rel:`noreferrer`,className:`font-medium ${W}`,children:[je(e.kind),a!==void 0&&(0,J.jsxs)(`span`,{className:`ml-2 text-xs font-normal text-muted-foreground`,children:[`on `,(0,J.jsx)(i,{item:a,linked:!1})]})]})}),(0,J.jsx)(V,{className:`py-3`,children:r!==void 0&&(0,J.jsx)(g,{to:`/projects/$owner/$name/runs/$run`,params:{...k(r.repository),run:r.id},className:`relative z-10 rounded-sm text-muted-foreground underline-offset-4 outline-none hover:text-foreground hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring/70 focus-visible:outline-solid`,children:r.loop})}),(0,J.jsx)(V,{className:`py-3 text-right`,children:o!==null&&(0,J.jsx)(`time`,{dateTime:o.at,title:o.title,className:`font-mono text-xs text-muted-foreground tabular-nums`,children:C(o.at)})})]},e.url)})})})})]})},Re=({task:e,project:t,disabled:n})=>{let i=ie(t),[a]=e.items,o=e.items.find(({itemKey:t})=>t===e.current)??a,l=t.board.lanes.flatMap(e=>e.items.map(t=>({lane:e,card:t}))).find(({card:t})=>t.itemKey===e.current),d=l===void 0?void 0:i.moves.find(({itemKey:e})=>e===l.card.itemKey),m=l===void 0?[]:t.board.lanes.filter(e=>e._tag===`WritableBoardLane`&&e.id!==l.lane.id),h=t.board.lanes.find(({id:e})=>e===d?.toLane)?.name??l?.lane.name??e.lane.name,g=new Set(t.board.lanes.flatMap(e=>e._tag===`WritableBoardLane`?e.labels:[])),v=l===void 0?o.labels:ne(l.card,l.lane).filter(e=>d===void 0||!g.has(e)),y=new Map(t.labels.map(e=>[e.name,e])),b=!n&&!i.isPending&&d===void 0&&m.length>0,{origin:x,pullRequests:S}=oe(e.items);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,J.jsx)(me,{actionsBeside:`sm`,heading:(0,J.jsx)(P,{variant:`page`,item:_(x),title:e.title}),facts:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(we,{pullRequests:S}),(0,J.jsx)(pe,{icon:xe,title:`Lane`,children:(0,J.jsx)(`span`,{className:`text-foreground`,children:h})}),d!==void 0&&(0,J.jsx)(`span`,{role:`status`,children:te(d.phase)}),v.length>0&&(0,J.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:v.map(e=>(0,J.jsx)(ke,{name:e,label:y.get(e)},e))}),e.needsYou&&(0,J.jsx)(Te,{})]}),...l!==void 0&&b?{actions:(0,J.jsxs)(f,{children:[(0,J.jsxs)(c,{render:(0,J.jsx)(E,{variant:`outline`}),"aria-label":`Move ${r(o)} to another lane`,children:[`Move to`,(0,J.jsx)(ae,{"data-icon":`inline-end`,"aria-hidden":`true`})]}),(0,J.jsx)(p,{align:`end`,className:`w-auto min-w-40`,children:(0,J.jsx)(s,{children:m.map(e=>(0,J.jsx)(u,{onClick:()=>i.moveItem(l.card,e),children:e.name},e.id))})})]})}:{}}),i.error!==null&&(0,J.jsx)(D,{className:`max-w-3xl`,message:i.error.message})]})},ze=({task:e})=>{let t=e.items.filter(({kind:e})=>e===`pr`);return(0,J.jsxs)(`section`,{"aria-labelledby":`task-pull-requests`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(G,{id:`task-pull-requests`,title:`Pull requests`,count:t.length}),t.length===0?(0,J.jsx)(q,{title:`No pull requests`,children:`Pull requests that close the issue, or that a run on the issue opened, appear here`}):(0,J.jsx)(`div`,{className:`-mx-2`,children:(0,J.jsx)(H,{"aria-labelledby":`task-pull-requests`,children:(0,J.jsx)(z,{className:`border-t`,children:t.map(e=>(0,J.jsxs)(B,{className:K,children:[(0,J.jsx)(V,{className:`w-0 py-3`,children:(0,J.jsx)(i,{item:e,linked:!1})}),(0,J.jsx)(U,{className:`py-3 whitespace-normal`,children:(0,J.jsxs)(`a`,{"data-row-link":!0,href:e.url,target:`_blank`,rel:`noreferrer`,className:`font-medium wrap-anywhere ${W}`,children:[e.title,(0,J.jsx)(re,{className:`ml-1.5 inline size-3.5 text-muted-foreground`,"aria-label":`Opens on GitHub`})]})}),(0,J.jsx)(V,{className:`py-3 text-right`,children:e.conflicting&&(0,J.jsx)(`span`,{className:`text-xs text-destructive`,children:`Conflicts with base`})})]},e.itemKey))})})})]})},Y=e(t(),1),X=({run:e})=>{let t=ge(3e4);return v(Me(e,t),{onNone:()=>null,onSome:e=>(0,J.jsx)(`span`,{className:`font-mono text-xs tabular-nums`,title:`Total attempt time`,children:ee(e)})})},Be=({run:e})=>v(Ae(e),{onNone:()=>null,onSome:e=>(0,J.jsxs)(`p`,{className:`line-clamp-2 text-xs wrap-anywhere`,title:j(e),children:[(0,J.jsx)(`span`,{className:`font-medium text-destructive`,children:ue(e)}),` `,(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:j(e)})]})}),Z=({run:e})=>(0,J.jsx)(`time`,{dateTime:e.openedAt,title:`Opened ${w(e.openedAt)}`,className:`font-mono text-xs whitespace-nowrap tabular-nums`,children:C(e.openedAt)}),Q=({pullRequest:e})=>v(e,{onNone:()=>null,onSome:e=>(0,J.jsx)(i,{item:e,className:`relative z-10`})}),Ve=(e,t)=>`${e} ${t}${e===1?``:`s`}`,$=({run:e,pullRequest:t})=>(0,J.jsxs)(`p`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-0.5 text-xs text-muted-foreground xl:hidden`,children:[(0,J.jsx)(`span`,{className:`font-medium text-foreground sm:hidden`,children:e.state}),(0,J.jsx)(`span`,{children:e.agent}),(0,J.jsx)(`span`,{children:Ve(e.attempts.length,`attempt`)}),(0,J.jsx)(X,{run:e}),(0,J.jsx)(Z,{run:e}),(0,J.jsx)(Q,{pullRequest:t})]}),He=e=>e.canApprove?`approve`:e.canRetry&&e.canResolveFailure?`retry`:null,Ue=({run:e,onEdit:t,openRun:n,status:r})=>{let i=l(),a=o(),[h,g]=(0,Y.useState)(!1);if(i.isPending&&i.variables!==void 0)return(0,J.jsx)(`span`,{role:`status`,className:`text-xs text-muted-foreground`,children:de[i.variables.request.action]});if(a.isPending)return(0,J.jsx)(`span`,{role:`status`,className:`text-xs text-muted-foreground`,children:le});let _=t=>i.mutate({runId:e.id,request:t},{onSuccess:()=>r(null),onError:e=>r((0,J.jsx)(`span`,{className:`text-destructive`,children:e.message}))}),v=()=>a.mutate(d(e),{onSuccess:e=>{e._tag===`Claimed`?(r(null),n(e.runId)):r((0,J.jsx)(`span`,{className:`text-needs-you`,children:ce}))},onError:e=>r((0,J.jsx)(`span`,{className:`text-destructive`,children:e.message}))}),y=e.attempts.at(-1),b=He(e),x=y?.outcome?._tag===`Failed`&&y.outcome.failure._tag===`QuestionFailure`,S=[];return e.canApprove&&b!==`approve`&&S.push({label:O.approve,select:()=>_({action:`approve`})}),e.canRetry&&b!==`retry`&&S.push({label:O.retry,description:A(e.agentBrain),select:()=>_({action:`retry`})}),e.canRetry&&S.push({label:`Edit and retry`,select:()=>t(`retry`)}),e.canRunAgain&&(S.push({label:O.runAgain,select:v}),S.push({label:`Edit and run again`,select:()=>t(`runAgain`)})),e.canResolveFailure&&y!==void 0&&S.push({label:x?`Mark answered`:`Mark resolved`,select:()=>_({action:`resolveFailure`,attemptId:y.id})}),e.canCancel&&S.push({label:O.cancel,destructive:!0,select:()=>g(!0)}),(0,J.jsxs)(`div`,{className:`relative z-10 flex items-center justify-end gap-1`,children:[b!==null&&(0,J.jsx)(E,{variant:`outline`,size:`sm`,title:b===`retry`?A(e.agentBrain):void 0,onClick:()=>_({action:b}),children:O[b]}),S.length>0&&(0,J.jsxs)(f,{children:[(0,J.jsx)(c,{render:(0,J.jsx)(E,{variant:`ghost`,size:`icon-sm`,className:`text-muted-foreground hover:text-foreground aria-expanded:text-foreground`}),"aria-label":`Actions for the ${e.loop} run opened ${C(e.openedAt)}`,children:(0,J.jsx)(m,{weight:`bold`,className:`size-4`,"aria-hidden":`true`})}),(0,J.jsx)(p,{align:`end`,className:`w-auto min-w-44`,children:(0,J.jsx)(s,{children:S.map(({label:e,description:t,destructive:n,select:r})=>(0,J.jsx)(u,{title:t,variant:n===!0?`destructive`:`default`,onClick:r,children:e},e))})})]}),e.canCancel&&(0,J.jsx)(_e,{open:h,onOpenChange:g,children:(0,J.jsxs)(ye,{children:[(0,J.jsxs)(be,{children:[(0,J.jsxs)(ve,{children:[`Cancel `,e.loop,`?`]}),(0,J.jsx)(Ce,{children:`The run stops, including any attempt in progress.`})]}),(0,J.jsxs)(he,{children:[(0,J.jsx)(N,{children:O.keepRunning}),(0,J.jsx)(M,{variant:`destructive`,onClick:()=>{g(!1),_({action:`cancel`})},children:O.confirmCancel})]})]})})]})},We=8,Ge=({run:e,item:t,pullRequest:n,openRun:r})=>{let[a,o]=(0,Y.useState)(null),[s,c]=(0,Y.useState)(null);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(B,{className:T(K,`[&>td]:align-top`),children:[(0,J.jsx)(V,{className:`hidden py-3 sm:table-cell`,children:(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-foreground`,children:[(0,J.jsx)(L,{state:e.state,className:`ml-0.75`}),e.state]})}),(0,J.jsx)(U,{className:`py-3 whitespace-normal`,children:(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,J.jsxs)(`p`,{className:`flex min-w-0 items-baseline gap-2`,children:[(0,J.jsx)(L,{state:e.state,className:`ml-0.75 self-center sm:hidden`}),(0,J.jsx)(g,{"data-row-link":!0,to:`/projects/$owner/$name/runs/$run`,params:{...k(e.repository),run:e.id},className:T(`font-medium wrap-anywhere`,W),children:e.loop}),t!==null&&(0,J.jsx)(i,{item:t,className:`relative z-10 shrink-0`})]}),(0,J.jsx)(Be,{run:e}),e.runAgain!==null&&(0,J.jsx)(Pe,{run:e,source:`link`,className:`text-xs`}),e.approval!==null&&(0,J.jsx)(Ne,{approval:e.approval,className:`text-xs`}),(0,J.jsx)($,{run:e,pullRequest:n}),s!==null&&(0,J.jsx)(`p`,{role:`status`,className:`text-xs`,children:s})]})}),(0,J.jsx)(V,{className:`hidden py-3 xl:table-cell`,children:e.agent}),(0,J.jsx)(V,{className:`hidden py-3 text-right tabular-nums xl:table-cell`,children:e.attempts.length}),(0,J.jsx)(V,{className:`hidden py-3 text-right xl:table-cell`,children:(0,J.jsx)(X,{run:e})}),(0,J.jsx)(V,{className:`hidden py-3 xl:table-cell`,children:(0,J.jsx)(Z,{run:e})}),(0,J.jsx)(V,{className:`hidden py-3 xl:table-cell`,children:(0,J.jsx)(Q,{pullRequest:n})}),(0,J.jsx)(V,{className:`py-2.5`,children:(0,J.jsx)(Ue,{run:e,onEdit:o,openRun:r,status:c})})]}),a!==null&&Ee(e,a)&&(0,J.jsx)(B,{className:`hover:bg-transparent`,children:(0,J.jsx)(V,{colSpan:We,className:`px-2 pt-1 pb-4 whitespace-normal`,children:(0,J.jsx)(De,{run:e,intent:a,close:()=>o(null),openRun:r,className:`max-w-2xl rounded-lg border p-4`},`${e.id}:${a}`)})})]})},Ke=({task:e,openRun:t})=>{let n=new Map(e.items.map(e=>[e.itemKey,e])),r=e.items.length>1;return(0,J.jsxs)(`section`,{"aria-labelledby":`task-runs`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(G,{id:`task-runs`,title:`Runs`,count:e.runs.length}),e.runs.length===0?(0,J.jsx)(q,{title:`No runs yet`,children:`A run opens when a loop's trigger matches one of the task's items`}):(0,J.jsx)(`div`,{className:`-mx-2`,children:(0,J.jsxs)(H,{children:[(0,J.jsx)(Oe,{children:(0,J.jsxs)(B,{className:`hover:bg-transparent`,children:[(0,J.jsx)(R,{className:`hidden sm:table-cell`,children:`State`}),(0,J.jsx)(R,{children:`Run`}),(0,J.jsx)(R,{className:`hidden xl:table-cell`,children:`Agent`}),(0,J.jsx)(R,{className:`hidden text-right xl:table-cell`,children:`Attempts`}),(0,J.jsx)(R,{className:`hidden text-right xl:table-cell`,children:`Duration`}),(0,J.jsx)(R,{className:`hidden xl:table-cell`,children:`Opened`}),(0,J.jsx)(R,{className:`hidden xl:table-cell`,children:`Pull request`}),(0,J.jsx)(R,{children:(0,J.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,J.jsx)(z,{children:e.runs.map(i=>{let a=S(b(i.pullRequestUrl),t=>se(t,e.items)),o=r?n.get(i.itemKey)??null:null;return(0,J.jsx)(Ge,{run:i,item:o===null||y(a,({number:e})=>e===o.number)?null:o,pullRequest:a,openRun:t},i.id)})})]})})]})},qe=({children:e})=>(0,J.jsx)(`main`,{className:`px-4 pt-5 pb-10 md:px-5`,children:(0,J.jsx)(`div`,{className:`flex max-w-5xl flex-col gap-8`,children:e})}),Je=({repository:e,number:t})=>{let{data:n}=a(fe()),r=n.projects.find(t=>t.repository===e),i=F(),o=a(Se(e,t));if(o.error instanceof x&&o.error.error===`BoardItemNotFoundError`)return(0,J.jsx)(Fe,{repository:e,number:String(t)});let s=o.isError&&(0,J.jsx)(D,{className:`max-w-3xl`,title:`Could not refresh the task`,message:o.error.message}),c=o.data;return c.number===t?(0,J.jsxs)(qe,{children:[s,r!==void 0&&(0,J.jsx)(Re,{task:c,project:r,disabled:n._tag===`NeedsSetup`}),(0,J.jsx)(Ke,{task:c,openRun:i}),(0,J.jsx)(ze,{task:c}),(0,J.jsx)(Le,{task:c})]}):(0,J.jsx)(h,{to:`/projects/$owner/$name/tasks/$number`,params:{...k(e),number:String(c.number)},search:e=>e,replace:!0})},Ye=()=>{let{repository:e}=I.useParams(),{number:t}=I.useLoaderData();return(0,J.jsx)(Je,{repository:e,number:t},`${e}#${t}`)};export{Ye as component};
1
+ import{a as e,n as t,t as n}from"./jsx-runtime-Wy9s6hX0.js";import{r,t as i}from"./mark-TjVTH0zt.js";import{t as a}from"./useSuspenseQuery-BRPaB8Gf.js";import{a as o,c as s,h as c,i as l,l as u,n as d,o as f,s as p,v as m}from"./actions-DCgAlxnS.js";import{t as h}from"./useNavigate-I5E4IRt2.js";import{t as g}from"./link-04lHwIZK.js";import{Fn as _,Mn as v,Sn as y,Tn as b,a as x,wn as S}from"./api-DMBgrk17.js";import{a as C,m as w,o as ee}from"./strings-Cgrt38_s.js";import{n as te,r as ne,s as re,t as ie}from"./moves-CbOc6hX6.js";import{i as ae}from"./native-select-Cc4FV9cz.js";import{A as T,t as E}from"./button-D4_M-wHl.js";import{l as oe,s as se}from"./useTriggerFocusGuards-w5WLoQxU.js";import{t as D}from"./error-alert-C3tCznIk.js";import{A as O,M as ce,N as le,T as ue,i as k,j as de,k as A,n as fe,w as j}from"./overview-CyrdJxvZ.js";import{n as pe,r as me}from"./page-5rCn82pX.js";import{B as he,D as ge,F as _e,H as ve,I as M,L as N,O as P,P as F,R as ye,V as be,ft as xe,n as Se,t as I,z as Ce}from"./index-DSOKl9hZ.js";import{t as we}from"./pull-request-marks-B6oHQmCS.js";import{n as L,t as Te}from"./status-badge-CYV7BO8y.js";import{n as Ee,t as De}from"./edit-and-retry-B4VIXVuU.js";import{a as Oe,i as R,n as z,o as B,r as V,t as H}from"./table-kSUccuLf.js";import{t as U}from"./fill-cell-C7QNSxol.js";import{t as ke}from"./label-badge-DlfFeHM2.js";import{a as Ae,n as je,t as Me}from"./model-Ca7RC2YV.js";import{n as Ne,t as Pe}from"./run-again-Y2Cmr2XI.js";import{t as Fe}from"./not-found-TW_8OQxg.js";import{i as W,n as G,r as K,t as q}from"./section-CZjeg41d.js";var J=n(),Ie=e=>e.postedAt===null?e.attemptEndedAt===null?null:{at:e.attemptEndedAt,title:`Posted during the attempt that ended ${w(e.attemptEndedAt)}`}:{at:e.postedAt,title:`Posted ${w(e.postedAt)}`},Le=({task:e})=>{let t=new Map(e.runs.map(e=>[e.id,e])),n=new Map(e.items.map(e=>[e.itemKey,e]));return(0,J.jsxs)(`section`,{"aria-labelledby":`task-comments`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(G,{id:`task-comments`,title:`Comments and reviews`,count:e.comments.length}),e.comments.length===0?(0,J.jsx)(q,{title:`No comments or reviews`,children:`Comments and reviews an agent posts on the task's items appear here after the attempt ends`}):(0,J.jsx)(`div`,{className:`-mx-2`,children:(0,J.jsx)(H,{"aria-labelledby":`task-comments`,children:(0,J.jsx)(z,{className:`border-t`,children:e.comments.map(e=>{let r=t.get(e.runId),a=r===void 0?void 0:n.get(r.itemKey),o=Ie(e);return(0,J.jsxs)(B,{className:K,children:[(0,J.jsx)(U,{className:`py-3 whitespace-normal`,children:(0,J.jsxs)(`a`,{"data-row-link":!0,href:e.url,target:`_blank`,rel:`noreferrer`,className:`font-medium ${W}`,children:[je(e.kind),a!==void 0&&(0,J.jsxs)(`span`,{className:`ml-2 text-xs font-normal text-muted-foreground`,children:[`on `,(0,J.jsx)(i,{item:a,linked:!1})]})]})}),(0,J.jsx)(V,{className:`py-3`,children:r!==void 0&&(0,J.jsx)(g,{to:`/projects/$owner/$name/runs/$run`,params:{...k(r.repository),run:r.id},className:`relative z-10 rounded-sm text-muted-foreground underline-offset-4 outline-none hover:text-foreground hover:underline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring/70 focus-visible:outline-solid`,children:r.loop})}),(0,J.jsx)(V,{className:`py-3 text-right`,children:o!==null&&(0,J.jsx)(`time`,{dateTime:o.at,title:o.title,className:`font-mono text-xs text-muted-foreground tabular-nums`,children:C(o.at)})})]},e.url)})})})})]})},Re=({task:e,project:t,disabled:n})=>{let i=ie(t),[a]=e.items,o=e.items.find(({itemKey:t})=>t===e.current)??a,l=t.board.lanes.flatMap(e=>e.items.map(t=>({lane:e,card:t}))).find(({card:t})=>t.itemKey===e.current),d=l===void 0?void 0:i.moves.find(({itemKey:e})=>e===l.card.itemKey),m=l===void 0?[]:t.board.lanes.filter(e=>e._tag===`WritableBoardLane`&&e.id!==l.lane.id),h=t.board.lanes.find(({id:e})=>e===d?.toLane)?.name??l?.lane.name??e.lane.name,g=new Set(t.board.lanes.flatMap(e=>e._tag===`WritableBoardLane`?e.labels:[])),v=l===void 0?o.labels:ne(l.card,l.lane).filter(e=>d===void 0||!g.has(e)),y=new Map(t.labels.map(e=>[e.name,e])),b=!n&&!i.isPending&&d===void 0&&m.length>0,{origin:x,pullRequests:S}=oe(e.items);return(0,J.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,J.jsx)(me,{actionsBeside:`sm`,heading:(0,J.jsx)(P,{variant:`page`,item:_(x),title:e.title}),facts:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(we,{pullRequests:S}),(0,J.jsx)(pe,{icon:xe,title:`Lane`,children:(0,J.jsx)(`span`,{className:`text-foreground`,children:h})}),d!==void 0&&(0,J.jsx)(`span`,{role:`status`,children:te(d.phase)}),v.length>0&&(0,J.jsx)(`span`,{className:`flex flex-wrap gap-1`,children:v.map(e=>(0,J.jsx)(ke,{name:e,label:y.get(e)},e))}),e.needsYou&&(0,J.jsx)(Te,{})]}),...l!==void 0&&b?{actions:(0,J.jsxs)(f,{children:[(0,J.jsxs)(c,{render:(0,J.jsx)(E,{variant:`outline`}),"aria-label":`Move ${r(o)} to another lane`,children:[`Move to`,(0,J.jsx)(ae,{"data-icon":`inline-end`,"aria-hidden":`true`})]}),(0,J.jsx)(p,{align:`end`,className:`w-auto min-w-40`,children:(0,J.jsx)(s,{children:m.map(e=>(0,J.jsx)(u,{onClick:()=>i.moveItem(l.card,e),children:e.name},e.id))})})]})}:{}}),i.error!==null&&(0,J.jsx)(D,{className:`max-w-3xl`,message:i.error.message})]})},ze=({task:e})=>{let t=e.items.filter(({kind:e})=>e===`pr`);return(0,J.jsxs)(`section`,{"aria-labelledby":`task-pull-requests`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(G,{id:`task-pull-requests`,title:`Pull requests`,count:t.length}),t.length===0?(0,J.jsx)(q,{title:`No pull requests`,children:`Pull requests that close the issue, or that a run on the issue opened, appear here`}):(0,J.jsx)(`div`,{className:`-mx-2`,children:(0,J.jsx)(H,{"aria-labelledby":`task-pull-requests`,children:(0,J.jsx)(z,{className:`border-t`,children:t.map(e=>(0,J.jsxs)(B,{className:K,children:[(0,J.jsx)(V,{className:`w-0 py-3`,children:(0,J.jsx)(i,{item:e,linked:!1})}),(0,J.jsx)(U,{className:`py-3 whitespace-normal`,children:(0,J.jsxs)(`a`,{"data-row-link":!0,href:e.url,target:`_blank`,rel:`noreferrer`,className:`font-medium wrap-anywhere ${W}`,children:[e.title,(0,J.jsx)(re,{className:`ml-1.5 inline size-3.5 text-muted-foreground`,"aria-label":`Opens on GitHub`})]})}),(0,J.jsx)(V,{className:`py-3 text-right`,children:e.conflicting&&(0,J.jsx)(`span`,{className:`text-xs text-destructive`,children:`Conflicts with base`})})]},e.itemKey))})})})]})},Y=e(t(),1),X=({run:e})=>{let t=ge(3e4);return v(Me(e,t),{onNone:()=>null,onSome:e=>(0,J.jsx)(`span`,{className:`font-mono text-xs tabular-nums`,title:`Total attempt time`,children:ee(e)})})},Be=({run:e})=>v(Ae(e),{onNone:()=>null,onSome:e=>(0,J.jsxs)(`p`,{className:`line-clamp-2 text-xs wrap-anywhere`,title:j(e),children:[(0,J.jsx)(`span`,{className:`font-medium text-destructive`,children:ue(e)}),` `,(0,J.jsx)(`span`,{className:`text-muted-foreground`,children:j(e)})]})}),Z=({run:e})=>(0,J.jsx)(`time`,{dateTime:e.openedAt,title:`Opened ${w(e.openedAt)}`,className:`font-mono text-xs whitespace-nowrap tabular-nums`,children:C(e.openedAt)}),Q=({pullRequest:e})=>v(e,{onNone:()=>null,onSome:e=>(0,J.jsx)(i,{item:e,className:`relative z-10`})}),Ve=(e,t)=>`${e} ${t}${e===1?``:`s`}`,$=({run:e,pullRequest:t})=>(0,J.jsxs)(`p`,{className:`flex flex-wrap items-baseline gap-x-3 gap-y-0.5 text-xs text-muted-foreground xl:hidden`,children:[(0,J.jsx)(`span`,{className:`font-medium text-foreground sm:hidden`,children:e.state}),(0,J.jsx)(`span`,{children:e.agent}),(0,J.jsx)(`span`,{children:Ve(e.attempts.length,`attempt`)}),(0,J.jsx)(X,{run:e}),(0,J.jsx)(Z,{run:e}),(0,J.jsx)(Q,{pullRequest:t})]}),He=e=>e.canApprove?`approve`:e.canRetry&&e.canResolveFailure?`retry`:null,Ue=({run:e,onEdit:t,openRun:n,status:r})=>{let i=l(),a=o(),[h,g]=(0,Y.useState)(!1);if(i.isPending&&i.variables!==void 0)return(0,J.jsx)(`span`,{role:`status`,className:`text-xs text-muted-foreground`,children:de[i.variables.request.action]});if(a.isPending)return(0,J.jsx)(`span`,{role:`status`,className:`text-xs text-muted-foreground`,children:le});let _=t=>i.mutate({runId:e.id,request:t},{onSuccess:()=>r(null),onError:e=>r((0,J.jsx)(`span`,{className:`text-destructive`,children:e.message}))}),v=()=>a.mutate(d(e),{onSuccess:e=>{e._tag===`Claimed`?(r(null),n(e.runId)):r((0,J.jsx)(`span`,{className:`text-needs-you`,children:ce}))},onError:e=>r((0,J.jsx)(`span`,{className:`text-destructive`,children:e.message}))}),y=e.attempts.at(-1),b=He(e),x=y?.outcome?._tag===`Failed`&&y.outcome.failure._tag===`QuestionFailure`,S=[];return e.canApprove&&b!==`approve`&&S.push({label:O.approve,select:()=>_({action:`approve`})}),e.canRetry&&b!==`retry`&&S.push({label:O.retry,description:A(e.agentBrain),select:()=>_({action:`retry`})}),e.canRetry&&S.push({label:`Edit and retry`,select:()=>t(`retry`)}),e.canRunAgain&&(S.push({label:O.runAgain,select:v}),S.push({label:`Edit and run again`,select:()=>t(`runAgain`)})),e.canResolveFailure&&y!==void 0&&S.push({label:x?`Mark answered`:`Mark resolved`,select:()=>_({action:`resolveFailure`,attemptId:y.id})}),e.canCancel&&S.push({label:O.cancel,destructive:!0,select:()=>g(!0)}),(0,J.jsxs)(`div`,{className:`relative z-10 flex items-center justify-end gap-1`,children:[b!==null&&(0,J.jsx)(E,{variant:`outline`,size:`sm`,title:b===`retry`?A(e.agentBrain):void 0,onClick:()=>_({action:b}),children:O[b]}),S.length>0&&(0,J.jsxs)(f,{children:[(0,J.jsx)(c,{render:(0,J.jsx)(E,{variant:`ghost`,size:`icon-sm`,className:`text-muted-foreground hover:text-foreground aria-expanded:text-foreground`}),"aria-label":`Actions for the ${e.loop} run opened ${C(e.openedAt)}`,children:(0,J.jsx)(m,{weight:`bold`,className:`size-4`,"aria-hidden":`true`})}),(0,J.jsx)(p,{align:`end`,className:`w-auto min-w-44`,children:(0,J.jsx)(s,{children:S.map(({label:e,description:t,destructive:n,select:r})=>(0,J.jsx)(u,{title:t,variant:n===!0?`destructive`:`default`,onClick:r,children:e},e))})})]}),e.canCancel&&(0,J.jsx)(_e,{open:h,onOpenChange:g,children:(0,J.jsxs)(ye,{children:[(0,J.jsxs)(be,{children:[(0,J.jsxs)(ve,{children:[`Cancel `,e.loop,`?`]}),(0,J.jsx)(Ce,{children:`The run stops, including any attempt in progress.`})]}),(0,J.jsxs)(he,{children:[(0,J.jsx)(N,{children:O.keepRunning}),(0,J.jsx)(M,{variant:`destructive`,onClick:()=>{g(!1),_({action:`cancel`})},children:O.confirmCancel})]})]})})]})},We=8,Ge=({run:e,item:t,pullRequest:n,openRun:r})=>{let[a,o]=(0,Y.useState)(null),[s,c]=(0,Y.useState)(null);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)(B,{className:T(K,`[&>td]:align-top`),children:[(0,J.jsx)(V,{className:`hidden py-3 sm:table-cell`,children:(0,J.jsxs)(`span`,{className:`inline-flex items-center gap-2 text-foreground`,children:[(0,J.jsx)(L,{state:e.state,className:`ml-0.75`}),e.state]})}),(0,J.jsx)(U,{className:`py-3 whitespace-normal`,children:(0,J.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[(0,J.jsxs)(`p`,{className:`flex min-w-0 items-baseline gap-2`,children:[(0,J.jsx)(L,{state:e.state,className:`ml-0.75 self-center sm:hidden`}),(0,J.jsx)(g,{"data-row-link":!0,to:`/projects/$owner/$name/runs/$run`,params:{...k(e.repository),run:e.id},className:T(`font-medium wrap-anywhere`,W),children:e.loop}),t!==null&&(0,J.jsx)(i,{item:t,className:`relative z-10 shrink-0`})]}),(0,J.jsx)(Be,{run:e}),e.runAgain!==null&&(0,J.jsx)(Pe,{run:e,source:`link`,className:`text-xs`}),e.approval!==null&&(0,J.jsx)(Ne,{approval:e.approval,className:`text-xs`}),(0,J.jsx)($,{run:e,pullRequest:n}),s!==null&&(0,J.jsx)(`p`,{role:`status`,className:`text-xs`,children:s})]})}),(0,J.jsx)(V,{className:`hidden py-3 xl:table-cell`,children:e.agent}),(0,J.jsx)(V,{className:`hidden py-3 text-right tabular-nums xl:table-cell`,children:e.attempts.length}),(0,J.jsx)(V,{className:`hidden py-3 text-right xl:table-cell`,children:(0,J.jsx)(X,{run:e})}),(0,J.jsx)(V,{className:`hidden py-3 xl:table-cell`,children:(0,J.jsx)(Z,{run:e})}),(0,J.jsx)(V,{className:`hidden py-3 xl:table-cell`,children:(0,J.jsx)(Q,{pullRequest:n})}),(0,J.jsx)(V,{className:`py-2.5`,children:(0,J.jsx)(Ue,{run:e,onEdit:o,openRun:r,status:c})})]}),a!==null&&Ee(e,a)&&(0,J.jsx)(B,{className:`hover:bg-transparent`,children:(0,J.jsx)(V,{colSpan:We,className:`px-2 pt-1 pb-4 whitespace-normal`,children:(0,J.jsx)(De,{run:e,intent:a,close:()=>o(null),openRun:r,className:`max-w-2xl rounded-lg border p-4`},`${e.id}:${a}`)})})]})},Ke=({task:e,openRun:t})=>{let n=new Map(e.items.map(e=>[e.itemKey,e])),r=e.items.length>1;return(0,J.jsxs)(`section`,{"aria-labelledby":`task-runs`,className:`flex flex-col gap-2`,children:[(0,J.jsx)(G,{id:`task-runs`,title:`Runs`,count:e.runs.length}),e.runs.length===0?(0,J.jsx)(q,{title:`No runs yet`,children:`A run opens when a loop's trigger matches one of the task's items`}):(0,J.jsx)(`div`,{className:`-mx-2`,children:(0,J.jsxs)(H,{children:[(0,J.jsx)(Oe,{children:(0,J.jsxs)(B,{className:`hover:bg-transparent`,children:[(0,J.jsx)(R,{className:`hidden sm:table-cell`,children:`State`}),(0,J.jsx)(R,{children:`Run`}),(0,J.jsx)(R,{className:`hidden xl:table-cell`,children:`Agent`}),(0,J.jsx)(R,{className:`hidden text-right xl:table-cell`,children:`Attempts`}),(0,J.jsx)(R,{className:`hidden text-right xl:table-cell`,children:`Duration`}),(0,J.jsx)(R,{className:`hidden xl:table-cell`,children:`Opened`}),(0,J.jsx)(R,{className:`hidden xl:table-cell`,children:`Pull request`}),(0,J.jsx)(R,{children:(0,J.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,J.jsx)(z,{children:e.runs.map(i=>{let a=S(b(i.pullRequestUrl),t=>se(t,e.items)),o=r?n.get(i.itemKey)??null:null;return(0,J.jsx)(Ge,{run:i,item:o===null||y(a,({number:e})=>e===o.number)?null:o,pullRequest:a,openRun:t},i.id)})})]})})]})},qe=({children:e})=>(0,J.jsx)(`main`,{className:`px-4 pt-5 pb-10 md:px-5`,children:(0,J.jsx)(`div`,{className:`flex max-w-5xl flex-col gap-8`,children:e})}),Je=({repository:e,number:t})=>{let{data:n}=a(fe()),r=n.projects.find(t=>t.repository===e),i=F(),o=a(Se(e,t));if(o.error instanceof x&&o.error.error===`BoardItemNotFoundError`)return(0,J.jsx)(Fe,{repository:e,number:String(t)});let s=o.isError&&(0,J.jsx)(D,{className:`max-w-3xl`,title:`Could not refresh the task`,message:o.error.message}),c=o.data;return c.number===t?(0,J.jsxs)(qe,{children:[s,r!==void 0&&(0,J.jsx)(Re,{task:c,project:r,disabled:n._tag===`NeedsSetup`}),(0,J.jsx)(Ke,{task:c,openRun:i}),(0,J.jsx)(ze,{task:c}),(0,J.jsx)(Le,{task:c})]}):(0,J.jsx)(h,{to:`/projects/$owner/$name/tasks/$number`,params:{...k(e),number:String(c.number)},search:e=>e,replace:!0})},Ye=()=>{let{repository:e}=I.useParams(),{number:t}=I.useLoaderData();return(0,J.jsx)(Je,{repository:e,number:t},`${e}#${t}`)};export{Ye as component};
@@ -1 +1 @@
1
- import{t as e}from"./jsx-runtime-Wy9s6hX0.js";import{t}from"./index-BPhLK23-.js";import{t as n}from"./not-found-TW_8OQxg.js";var r=e(),i=()=>{let{repository:e,number:i}=t.useParams();return(0,r.jsx)(n,{repository:e,number:i})};export{i as notFoundComponent};
1
+ import{t as e}from"./jsx-runtime-Wy9s6hX0.js";import{t}from"./index-DSOKl9hZ.js";import{t as n}from"./not-found-TW_8OQxg.js";var r=e(),i=()=>{let{repository:e,number:i}=t.useParams();return(0,r.jsx)(n,{repository:e,number:i})};export{i as notFoundComponent};
@@ -0,0 +1 @@
1
+ import{t as e}from"./jsx-runtime-Wy9s6hX0.js";import{Y as t,t as n}from"./section-B9rSL8Bj.js";import{c as r}from"./index-DSOKl9hZ.js";var i=e(),a=()=>{let{project:e}=r.useParams();return(0,i.jsx)(n,{title:e,entity:t(`project`,e),children:null})};export{a as component};