@useorgx/openclaw-plugin 0.7.6 → 0.7.11

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 (127) hide show
  1. package/dashboard/dist/assets/{CnitK1MX.js → AqVoI3SF.js} +1 -1
  2. package/dashboard/dist/assets/AqVoI3SF.js.br +0 -0
  3. package/dashboard/dist/assets/AqVoI3SF.js.gz +0 -0
  4. package/dashboard/dist/assets/BC4WvnHJ.js +1 -0
  5. package/dashboard/dist/assets/BC4WvnHJ.js.br +0 -0
  6. package/dashboard/dist/assets/BC4WvnHJ.js.gz +0 -0
  7. package/dashboard/dist/assets/{DOFL9l8s.js → BG5mwTkg.js} +1 -1
  8. package/dashboard/dist/assets/BG5mwTkg.js.br +0 -0
  9. package/dashboard/dist/assets/BG5mwTkg.js.gz +0 -0
  10. package/dashboard/dist/assets/BNh-XYPV.js +1 -0
  11. package/dashboard/dist/assets/BNh-XYPV.js.br +0 -0
  12. package/dashboard/dist/assets/BNh-XYPV.js.gz +0 -0
  13. package/dashboard/dist/assets/{CFwPph5U.js → BepW_590.js} +1 -1
  14. package/dashboard/dist/assets/BepW_590.js.br +0 -0
  15. package/dashboard/dist/assets/BepW_590.js.gz +0 -0
  16. package/dashboard/dist/assets/BerAfzjq.js +1 -0
  17. package/dashboard/dist/assets/BerAfzjq.js.br +0 -0
  18. package/dashboard/dist/assets/BerAfzjq.js.gz +0 -0
  19. package/dashboard/dist/assets/Bp3N-QL5.js +212 -0
  20. package/dashboard/dist/assets/Bp3N-QL5.js.br +0 -0
  21. package/dashboard/dist/assets/Bp3N-QL5.js.gz +0 -0
  22. package/dashboard/dist/assets/C3dZRz9P.css +1 -0
  23. package/dashboard/dist/assets/C3dZRz9P.css.br +0 -0
  24. package/dashboard/dist/assets/C3dZRz9P.css.gz +0 -0
  25. package/dashboard/dist/assets/CD-q5mdP.js +1 -0
  26. package/dashboard/dist/assets/CD-q5mdP.js.br +0 -0
  27. package/dashboard/dist/assets/CD-q5mdP.js.gz +0 -0
  28. package/dashboard/dist/assets/{BgcAY5rE.js → CdvjC9G9.js} +1 -1
  29. package/dashboard/dist/assets/CdvjC9G9.js.br +0 -0
  30. package/dashboard/dist/assets/CdvjC9G9.js.gz +0 -0
  31. package/dashboard/dist/assets/Ck2agw-s.js +1 -0
  32. package/dashboard/dist/assets/Ck2agw-s.js.br +0 -0
  33. package/dashboard/dist/assets/Ck2agw-s.js.gz +0 -0
  34. package/dashboard/dist/assets/{D7DHFX0D.js → D2CH1H6k.js} +1 -1
  35. package/dashboard/dist/assets/D2CH1H6k.js.br +0 -0
  36. package/dashboard/dist/assets/D2CH1H6k.js.gz +0 -0
  37. package/dashboard/dist/assets/D9esz7jd.js +1 -0
  38. package/dashboard/dist/assets/D9esz7jd.js.br +0 -0
  39. package/dashboard/dist/assets/D9esz7jd.js.gz +0 -0
  40. package/dashboard/dist/assets/{77gGFBt6.js → DCP-C7fn.js} +1 -1
  41. package/dashboard/dist/assets/DCP-C7fn.js.br +0 -0
  42. package/dashboard/dist/assets/DCP-C7fn.js.gz +0 -0
  43. package/dashboard/dist/assets/{CSr2ZnTV.js → DJASCd69.js} +1 -1
  44. package/dashboard/dist/assets/DJASCd69.js.br +0 -0
  45. package/dashboard/dist/assets/DJASCd69.js.gz +0 -0
  46. package/dashboard/dist/assets/Dm9AybAp.js +1 -0
  47. package/dashboard/dist/assets/Dm9AybAp.js.br +0 -0
  48. package/dashboard/dist/assets/Dm9AybAp.js.gz +0 -0
  49. package/dashboard/dist/assets/{DxKG5zy8.js → Du1wfrXa.js} +1 -1
  50. package/dashboard/dist/assets/Du1wfrXa.js.br +0 -0
  51. package/dashboard/dist/assets/Du1wfrXa.js.gz +0 -0
  52. package/dashboard/dist/assets/{DpuQm1oF.js → beHYBbh6.js} +1 -1
  53. package/dashboard/dist/assets/beHYBbh6.js.br +0 -0
  54. package/dashboard/dist/assets/beHYBbh6.js.gz +0 -0
  55. package/dashboard/dist/index.html +2 -2
  56. package/dashboard/dist/index.html.br +0 -0
  57. package/dashboard/dist/index.html.gz +0 -0
  58. package/dist/hash-utils.js +2 -1
  59. package/dist/http/helpers/auto-continue-engine.d.ts +36 -0
  60. package/dist/http/helpers/auto-continue-engine.js +83 -17
  61. package/dist/http/helpers/autopilot-runtime.d.ts +1 -0
  62. package/dist/http/helpers/autopilot-runtime.js +31 -3
  63. package/dist/http/helpers/autopilot-slice-utils.d.ts +10 -0
  64. package/dist/http/helpers/autopilot-slice-utils.js +58 -0
  65. package/dist/http/helpers/humanize-slice-failure.d.ts +35 -0
  66. package/dist/http/helpers/humanize-slice-failure.js +137 -0
  67. package/dist/http/helpers/mission-control.d.ts +1 -0
  68. package/dist/http/helpers/mission-control.js +72 -5
  69. package/dist/http/index.js +65 -3
  70. package/dist/http/routes/live-misc.js +12 -4
  71. package/dist/http/routes/live-snapshot.js +10 -4
  72. package/dist/http/routes/mission-control-actions.js +5 -0
  73. package/dist/http/routes/mission-control-read.d.ts +1 -0
  74. package/dist/http/routes/mission-control-read.js +65 -4
  75. package/dist/index.d.ts +8 -1
  76. package/dist/index.js +21 -1
  77. package/dist/mcp-http-handler.js +6 -0
  78. package/dist/openclaw.plugin.json +1 -1
  79. package/dist/tools/core-tools.d.ts +27 -0
  80. package/dist/tools/core-tools.js +89 -0
  81. package/openclaw.plugin.json +1 -1
  82. package/package.json +1 -1
  83. package/dashboard/dist/assets/77gGFBt6.js.br +0 -0
  84. package/dashboard/dist/assets/77gGFBt6.js.gz +0 -0
  85. package/dashboard/dist/assets/BBpTN_SR.js +0 -1
  86. package/dashboard/dist/assets/BBpTN_SR.js.br +0 -0
  87. package/dashboard/dist/assets/BBpTN_SR.js.gz +0 -0
  88. package/dashboard/dist/assets/BVShoyjA.js +0 -1
  89. package/dashboard/dist/assets/BVShoyjA.js.br +0 -0
  90. package/dashboard/dist/assets/BVShoyjA.js.gz +0 -0
  91. package/dashboard/dist/assets/BgcAY5rE.js.br +0 -0
  92. package/dashboard/dist/assets/BgcAY5rE.js.gz +0 -0
  93. package/dashboard/dist/assets/C-PAoJF-.js +0 -1
  94. package/dashboard/dist/assets/C-PAoJF-.js.br +0 -0
  95. package/dashboard/dist/assets/C-PAoJF-.js.gz +0 -0
  96. package/dashboard/dist/assets/C0nA-iUG.js +0 -1
  97. package/dashboard/dist/assets/C0nA-iUG.js.br +0 -0
  98. package/dashboard/dist/assets/C0nA-iUG.js.gz +0 -0
  99. package/dashboard/dist/assets/C6GO-FKy.js +0 -1
  100. package/dashboard/dist/assets/C6GO-FKy.js.br +0 -0
  101. package/dashboard/dist/assets/C6GO-FKy.js.gz +0 -0
  102. package/dashboard/dist/assets/CFwPph5U.js.br +0 -0
  103. package/dashboard/dist/assets/CFwPph5U.js.gz +0 -0
  104. package/dashboard/dist/assets/CPjsbbgZ.js +0 -212
  105. package/dashboard/dist/assets/CPjsbbgZ.js.br +0 -0
  106. package/dashboard/dist/assets/CPjsbbgZ.js.gz +0 -0
  107. package/dashboard/dist/assets/CSr2ZnTV.js.br +0 -0
  108. package/dashboard/dist/assets/CSr2ZnTV.js.gz +0 -0
  109. package/dashboard/dist/assets/CgQDT6yL.js +0 -1
  110. package/dashboard/dist/assets/CgQDT6yL.js.br +0 -0
  111. package/dashboard/dist/assets/CgQDT6yL.js.gz +0 -0
  112. package/dashboard/dist/assets/CnitK1MX.js.br +0 -0
  113. package/dashboard/dist/assets/CnitK1MX.js.gz +0 -0
  114. package/dashboard/dist/assets/D7DHFX0D.js.br +0 -0
  115. package/dashboard/dist/assets/D7DHFX0D.js.gz +0 -0
  116. package/dashboard/dist/assets/DEip7uko.js +0 -1
  117. package/dashboard/dist/assets/DEip7uko.js.br +0 -0
  118. package/dashboard/dist/assets/DEip7uko.js.gz +0 -0
  119. package/dashboard/dist/assets/DHUSLc01.css +0 -1
  120. package/dashboard/dist/assets/DHUSLc01.css.br +0 -0
  121. package/dashboard/dist/assets/DHUSLc01.css.gz +0 -0
  122. package/dashboard/dist/assets/DOFL9l8s.js.br +0 -0
  123. package/dashboard/dist/assets/DOFL9l8s.js.gz +0 -0
  124. package/dashboard/dist/assets/DpuQm1oF.js.br +0 -0
  125. package/dashboard/dist/assets/DpuQm1oF.js.gz +0 -0
  126. package/dashboard/dist/assets/DxKG5zy8.js.br +0 -0
  127. package/dashboard/dist/assets/DxKG5zy8.js.gz +0 -0
@@ -1 +0,0 @@
1
- import{j as e,r as p}from"./cNrhgGc1.js";import{E as V,a1 as ce,d as l,K as de,a2 as ue,w as xe,A as me,m as pe,z as I,a3 as he,a4 as be,_ as fe,o as B,a0 as ge}from"./CPjsbbgZ.js";import{E as ke}from"./CgQDT6yL.js";import{m,A as je}from"./CxQ08qFN.js";import{M as ve}from"./tcEHYcbW.js";import"./C-KIc3Wc.js";import"./BJgZIVUQ.js";function ye({breadcrumbs:s,typeBadge:n,onClose:d,footer:h,children:k}){return e.jsxs("div",{className:"flex h-full w-full min-h-0 flex-col",children:[e.jsxs("div",{className:"flex items-center justify-between gap-3 border-b border-subtle px-5 py-3 sm:px-6",children:[e.jsxs("div",{className:"flex items-center gap-1.5 min-w-0 text-body text-secondary",children:[s.map((u,j)=>e.jsxs("span",{className:"flex items-center gap-1.5 min-w-0",children:[j>0&&e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"flex-shrink-0 text-faint",children:e.jsx("path",{d:"m9 18 6-6-6-6"})}),u.onClick?e.jsx("button",{type:"button",onClick:u.onClick,className:`truncate transition-colors hover:text-primary ${j===s.length-1?"text-primary font-medium":""}`,children:u.label}):e.jsx("span",{className:`truncate ${j===s.length-1?"text-primary font-medium":""}`,children:u.label})]},j)),n&&e.jsxs("span",{className:"ml-1 inline-flex items-center gap-1 rounded-full border border-white/[0.1] bg-white/[0.04] px-2 py-0.5 text-micro uppercase tracking-[0.06em] text-secondary",children:[n.icon&&e.jsx(V,{type:n.icon,size:11,className:"opacity-90"}),n.label]})]}),e.jsx("button",{type:"button",onClick:d,"aria-label":"Close detail",className:"inline-flex h-9 w-9 flex-shrink-0 items-center justify-center rounded-full border border-strong bg-white/[0.03] text-primary transition-colors hover:bg-white/[0.08] hover:text-white",children:e.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M18 6L6 18"}),e.jsx("path",{d:"M6 6l12 12"})]})})]}),e.jsx("div",{className:"flex-1 min-h-0 overflow-y-auto",children:k}),h&&e.jsx("div",{className:"flex-shrink-0 border-t border-subtle px-5 py-3 sm:px-6",children:h})]})}function we(s){if(!s)return{label:"artifact",color:"rgba(255,255,255,0.4)"};const n=s.toLowerCase();return n.includes("code")||n.includes("pr")?{label:"code",color:l.lime}:n.includes("doc")||n.includes("spec")?{label:"doc",color:l.teal}:n.includes("design")?{label:"design",color:l.iris}:n.includes("test")?{label:"test",color:l.cyan}:{label:s.slice(0,12),color:"rgba(255,255,255,0.5)"}}function Ne({artifacts:s,onOpenArtifact:n,className:d}){return s.length===0?null:e.jsxs("div",{className:d,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("span",{className:"section-kicker font-semibold",children:"Artifacts"}),e.jsx("span",{className:"chip text-micro",children:s.length})]}),e.jsx(m.div,{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",initial:"hidden",animate:"visible",variants:{visible:{transition:{staggerChildren:.04}}},children:s.map((h,k)=>{const u=we(h.type);return e.jsxs(m.button,{type:"button",onClick:()=>n==null?void 0:n(h),className:"subsection-shell rounded-xl px-3.5 py-3 text-left hover-lift",variants:ce,custom:k,children:[e.jsx("div",{className:"flex items-center gap-2",children:e.jsx("span",{className:"rounded-full px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-widest",style:{color:u.color,backgroundColor:`${u.color}18`,border:`1px solid ${u.color}30`},children:u.label})}),e.jsx("p",{className:"mt-1.5 text-body font-medium text-white truncate",children:h.title})]},h.id??`artifact-${k}`)})})]})}function Ie(s){switch(s){case"running":return{background:`linear-gradient(to right, ${l.lime}, ${l.teal})`};case"blocked":return{background:`linear-gradient(to right, ${l.red}, ${l.amber})`};case"idle":return{background:`linear-gradient(to right, ${l.iris}99, transparent)`};default:return{background:`linear-gradient(to right, ${l.lime}B3, ${l.teal}66)`}}}function Y(s){switch(s){case"running":return l.lime;case"blocked":return l.red;case"idle":return l.iris;case"queued":return l.teal;default:return l.amber}}function Q(s,n){return n?"Scope Under Review":s==="completed"?"Completed Scope":s==="running"?"Current Work":s==="blocked"?"Blocked Work":"Next Work"}function R(s){return s===0?l.red:s===1?l.amber:s===2?l.iris:"rgba(255,255,255,0.5)"}function M(s){return s===0?"P0":s===1?"P1":s===2?"P2":s===3?"P3":""}function Ce(s){switch(s){case"high":return{filled:5,color:l.lime};case"medium":return{filled:3,color:l.amber};case"low":return{filled:1,color:l.red};default:return{filled:0,color:l.iris}}}async function Te(s){const n={};if(s.runId&&(n.runId=s.runId),s.sliceRunId&&(n.sliceRunId=s.sliceRunId),s.sessionId&&(n.sessionId=s.sessionId),Object.keys(n).length===0)throw new Error("No run identifier available for terminal open.");const d=await fetch("/orgx/api/live/terminal/open",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!d.ok){const h=await d.json().catch(()=>({}));throw new Error(h.error??`Terminal open failed (${d.status})`)}}const Fe={hidden:{opacity:0,y:-4},visible:s=>({opacity:1,y:0,transition:{duration:.28,delay:s*.04,ease:[.16,1,.3,1]}}),exit:{opacity:0,transition:{duration:.18}}},y={hidden:{opacity:0,y:8},visible:s=>({opacity:1,y:0,transition:{duration:.22,delay:s*.04,ease:pe.easingStandard}}),exit:{opacity:0,transition:{duration:.18}}};function ee(s){var h,k,u,j,C,T,F,S;if(s.source==="queue"){const{item:a,linkedSliceRun:o}=s;return{initiativeId:a.initiativeId,initiativeTitle:I(a.initiativeTitle),initiativeStatus:a.initiativeStatus,workstreamId:a.workstreamId,workstreamTitle:I(a.workstreamTitle),workstreamStatus:a.workstreamStatus,nextTaskTitle:a.nextTaskTitle?I(a.nextTaskTitle):null,nextTaskPriority:a.nextTaskPriority,nextTaskDueAt:a.nextTaskDueAt,agentId:a.runnerAgentId,agentName:a.runnerAgentName,agentSource:a.runnerSource,queueState:a.queueState,blockReason:a.blockReason?I(a.blockReason):null,sliceScope:a.sliceScope??null,sliceTaskCount:typeof a.sliceTaskCount=="number"&&Number.isFinite(a.sliceTaskCount)?Math.max(0,Math.floor(a.sliceTaskCount)):((h=a.sliceTaskIds)==null?void 0:h.length)??null,autoContinue:a.autoContinue,sliceRun:o,sessionId:null,runId:(o==null?void 0:o.runId)??null}}if(s.source==="in_progress"){const{row:a,sliceRun:o}=s;return{initiativeId:a.initiativeId,initiativeTitle:a.initiativeTitle?I(a.initiativeTitle):null,initiativeStatus:null,workstreamId:a.workstreamId,workstreamTitle:a.workstreamTitle?I(a.workstreamTitle):a.title,workstreamStatus:a.status,nextTaskTitle:null,nextTaskPriority:null,nextTaskDueAt:null,agentId:((k=a.session)==null?void 0:k.agentId)??null,agentName:((u=a.session)==null?void 0:u.agentName)??"OrgX",agentSource:null,queueState:a.status==="running"?"running":"queued",blockReason:null,sliceScope:(o==null?void 0:o.scope)??null,sliceTaskCount:typeof((j=o==null?void 0:o.scopeProgress)==null?void 0:j.totalTasks)=="number"?Math.max(0,Math.floor(o.scopeProgress.totalTasks-o.scopeProgress.completedTasks)):((C=o==null?void 0:o.taskIds)==null?void 0:C.length)??null,autoContinue:null,sliceRun:o,sessionId:((T=a.session)==null?void 0:T.id)??null,runId:a.runId}}const{sliceRun:n}=s,d=n.sourceClient?n.sourceClient.charAt(0).toUpperCase()+n.sourceClient.slice(1):"OrgX";return{initiativeId:n.initiativeId,initiativeTitle:null,initiativeStatus:null,workstreamId:n.workstreamId,workstreamTitle:n.workstreamTitle?I(n.workstreamTitle):"Work slice",workstreamStatus:n.status,nextTaskTitle:null,nextTaskPriority:null,nextTaskDueAt:null,agentId:null,agentName:d,agentSource:n.sourceClient,queueState:n.status==="needs_review"?"completed":"blocked",blockReason:n.status==="failed"&&n.statusExplainer||null,sliceScope:n.scope??null,sliceTaskCount:typeof((F=n.scopeProgress)==null?void 0:F.totalTasks)=="number"?Math.max(0,Math.floor(n.scopeProgress.totalTasks-n.scopeProgress.completedTasks)):((S=n.taskIds)==null?void 0:S.length)??null,autoContinue:null,sliceRun:n,sessionId:null,runId:n.runId}}function N(){return e.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-white/[0.06] to-transparent"})}function qe({target:s,onClose:n,onPlayWorkstream:d,onStartAutoContinue:h,onMoveWorkstream:k,onRemoveFromQueue:u,onOpenSession:j,onFocusRunId:C,onOpenInitiative:T,onReviewActivity:F,onOpenDecisions:S,onAcceptSlice:a,onRejectSlice:o}){var Z,G;const $=s!==null,[te,L]=p.useState(!1),[Se,z]=p.useState(null),[x,A]=p.useState(null),[E,P]=p.useState(""),[q,w]=p.useState(null),W=p.useRef(null),K=p.useCallback(r=>{if(s&&(r.metaKey||r.ctrlKey)&&r.key==="Enter"){r.preventDefault();const c=ee(s);c.initiativeId&&c.workstreamId&&(d==null||d(c.initiativeId,c.workstreamId,c.agentId??void 0))}},[s,d]);if(p.useEffect(()=>{if($)return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[$,K]),p.useEffect(()=>{$||(z(null),L(!1),A(null),P(""),w(null))},[$]),p.useEffect(()=>{x&&requestAnimationFrame(()=>{var r;(r=W.current)==null||r.focus()})},[x]),!s)return null;const i=ee(s),t=i.sliceRun,b=de({sessionStatus:i.queueState,sessionPhase:i.workstreamStatus,sliceStatus:(t==null?void 0:t.status)??i.workstreamStatus,activityStatus:(t==null?void 0:t.runtimeState)??i.workstreamStatus??i.queueState,stopReason:i.queueState==="blocked"?"blocked":null,decisionRequired:((t==null?void 0:t.blockingDecisionCount)??0)>0,blockingDecisionCount:(t==null?void 0:t.blockingDecisionCount)??0,nonBlockingDecisionCount:Math.max(0,((t==null?void 0:t.decisionCount)??0)-((t==null?void 0:t.blockingDecisionCount)??0)),blockerCount:i.blockReason?1:0,blockerReason:i.blockReason}),ie=b.status==="completed"?"text-lime border-lime/30 bg-lime/[0.12]":b.status==="failed"?"text-red-200 border-red-400/30 bg-red-500/[0.12]":b.status==="needs_attention"?"text-amber-200 border-amber-400/30 bg-amber-500/[0.12]":b.status==="in_progress"?"text-teal-200 border-teal-400/30 bg-teal-500/[0.12]":"text-secondary border-white/[0.14] bg-white/[0.04]",se=b.tone==="critical"?"border-red-400/24 bg-red-500/[0.08]":b.tone==="warning"?"border-amber-400/24 bg-amber-500/[0.08]":b.tone==="positive"?"border-lime/24 bg-lime/[0.08]":"border-subtle bg-white/[0.02]",ne=[...i.initiativeTitle?[{label:i.initiativeTitle,onClick:i.initiativeId?()=>T==null?void 0:T(i.initiativeId):void 0}]:[],{label:i.workstreamTitle}],J=b.status==="in_progress",ae=!!(i.initiativeId&&i.workstreamId&&!J),X=b.nextAction??(s.source==="needs_input"&&t?t.primaryAction==="resolve_decision"?"Resolve decision":t.primaryAction==="open_artifact"?"Open result":"Review activity":null),re=p.useCallback(async r=>{try{z(null),L(!0),await Te(r)}catch(c){z(c instanceof Error?c.message:"Unable to open terminal")}finally{L(!1)}},[]),H=p.useMemo(()=>i.sessionId?{sessionId:i.sessionId,runId:i.runId,sliceRunId:(t==null?void 0:t.sliceRunId)??null}:t!=null&&t.runId||t!=null&&t.sliceRunId?{runId:t.runId??null,sliceRunId:t.sliceRunId??null}:i.runId?{runId:i.runId,sliceRunId:(t==null?void 0:t.sliceRunId)??null}:null,[i.sessionId,i.runId,t]),le=H!==null,O=p.useMemo(()=>ue({initiativeId:i.initiativeId,initiativeTitle:i.initiativeTitle,workstreamId:i.workstreamId,workstreamTitle:i.workstreamTitle,taskIds:t==null?void 0:t.taskIds,milestoneIds:t==null?void 0:t.milestoneIds,scopeProgress:(t==null?void 0:t.scopeProgress)??null,status:(t==null?void 0:t.status)??i.queueState,agentName:i.agentName,agentId:i.agentId}),[i.initiativeId,i.initiativeTitle,i.workstreamId,i.workstreamTitle,t,i.queueState,i.agentName,i.agentId]),_=s.source==="needs_input"&&(t==null?void 0:t.status)==="needs_review",U=p.useCallback(async()=>{if(!t||!x)return;const r=E.trim(),c=t.runId??t.sliceRunId;if(x==="accept")try{w("Accepting…");const f=r?`Accepted: ${r}`:"Accepted from dashboard",g=await fetch(`/orgx/api/runs/${encodeURIComponent(c)}/actions/complete`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reason:f})});if(!g.ok){const D=await g.json().catch(()=>null);w(`Error: ${(D==null?void 0:D.error)??(D==null?void 0:D.message)??g.status}`);return}w("Accepted!");try{a==null||a(t,r||void 0)}catch{}setTimeout(()=>n(),600)}catch(f){w(`Failed: ${f instanceof Error?f.message:"network error"}`)}else if(x==="reject"&&r)try{w("Sending feedback…");const f=await fetch(`/orgx/api/entities/run/${encodeURIComponent(c)}/comments`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({body:r,commentType:"review_feedback",severity:"warn",tags:["changes_requested"]})});if(!f.ok){const g=await f.json().catch(()=>null);w(`Error: ${(g==null?void 0:g.error)??(g==null?void 0:g.message)??f.status}`);return}w("Feedback sent!");try{o==null||o(t,r)}catch{}A(null),P("")}catch(f){w(`Failed: ${f instanceof Error?f.message:"network error"}`)}},[t,x,E,a,o,n]),oe=e.jsxs("div",{className:"space-y-2",children:[q&&e.jsx("div",{className:`flex items-center gap-1.5 rounded-lg px-3 py-1.5 text-[11px] font-medium ${q.startsWith("Error")||q.startsWith("Failed")?"bg-[#FF6B88]/10 text-[#FF6B88]":q.includes("…")?"bg-white/[0.04] text-white/60 animate-pulse":"bg-[#BFFF00]/10 text-[#BFFF00]"}`,children:q}),e.jsx(je,{children:x&&e.jsx(m.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.15},className:"overflow-hidden",children:e.jsxs("div",{className:"pb-2",children:[e.jsx("textarea",{ref:W,value:E,onChange:r=>P(r.target.value),onKeyDown:r=>{(r.metaKey||r.ctrlKey)&&r.key==="Enter"&&(r.preventDefault(),U()),r.key==="Escape"&&(r.preventDefault(),A(null),P(""))},placeholder:x==="accept"?"Optional note...":"What needs to change?",className:"w-full resize-none rounded-lg border border-white/[0.08] bg-white/[0.03] px-3 py-2 text-[13px] text-white/80 outline-none placeholder:text-white/25 focus:border-white/15 transition-colors",rows:2}),e.jsxs("div",{className:"mt-1.5 flex items-center justify-between",children:[e.jsx("button",{type:"button",onClick:()=>{A(null),P("")},className:"text-[11px] text-white/30 transition-colors hover:text-white/50",children:"Cancel"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-[10px] text-white/20",children:x==="reject"&&!E.trim()?"Note required":"⌘Enter to confirm"}),e.jsx("button",{type:"button",onClick:U,disabled:x==="reject"&&!E.trim(),className:`inline-flex h-7 items-center gap-1 rounded-md px-3 text-[11px] font-semibold transition-colors disabled:opacity-30 ${x==="accept"?"bg-[#BFFF00]/12 text-[#BFFF00] hover:bg-[#BFFF00]/20":"bg-[#FF6B88]/12 text-[#FF6B88] hover:bg-[#FF6B88]/20"}`,children:x==="accept"?"Confirm accept":"Request changes"})]})]})]})})}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"flex items-center gap-1",children:[s.source==="queue"&&i.initiativeId&&i.workstreamId&&e.jsxs(e.Fragment,{children:[e.jsx("button",{type:"button",onClick:()=>{u==null||u(i.initiativeId,i.workstreamId),n()},className:"rounded-md px-2.5 py-1.5 text-[12px] font-medium text-[#FF6B88]/70 transition-colors hover:bg-[#FF6B88]/[0.08] hover:text-[#FF6B88]",children:"Remove"}),e.jsx("button",{type:"button",onClick:()=>k==null?void 0:k(i.initiativeId,i.workstreamId,"top"),className:"rounded-md px-2.5 py-1.5 text-[12px] font-medium text-white/35 transition-colors hover:bg-white/[0.04] hover:text-white/60",children:"Move top"})]}),s.source==="in_progress"&&i.sessionId&&e.jsx("button",{type:"button",onClick:()=>{j==null||j(i.sessionId),n()},className:"rounded-md px-2.5 py-1.5 text-[12px] font-medium text-white/35 transition-colors hover:bg-white/[0.04] hover:text-white/60",children:"Open session"}),s.source==="needs_input"&&t&&t.primaryAction==="resolve_decision"&&e.jsx("button",{type:"button",onClick:()=>{S==null||S(),n()},className:"rounded-md px-2.5 py-1.5 text-[12px] font-medium text-[#0AD4C4]/70 transition-colors hover:bg-[#0AD4C4]/[0.08] hover:text-[#0AD4C4]",children:"Resolve decision"}),s.source==="needs_input"&&t&&e.jsx("button",{type:"button",onClick:()=>{F==null||F(t),n()},className:"rounded-md px-2.5 py-1.5 text-[12px] font-medium text-white/35 transition-colors hover:bg-white/[0.04] hover:text-white/60",children:"Review"}),i.runId&&e.jsx("button",{type:"button",onClick:()=>{C==null||C(i.runId),n()},className:"rounded-md px-2.5 py-1.5 text-[12px] font-medium text-white/35 transition-colors hover:bg-white/[0.04] hover:text-white/60",children:"Timeline"})]}),e.jsx("div",{className:"flex-1"}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[_&&o&&e.jsx("button",{type:"button",onClick:()=>A(x==="reject"?null:"reject"),className:`rounded-md px-2.5 py-1.5 text-[12px] font-medium transition-colors ${x==="reject"?"bg-[#FF6B88]/12 text-[#FF6B88]":"text-white/35 hover:bg-white/[0.04] hover:text-white/60"}`,children:"Request changes"}),_&&a&&e.jsxs("button",{type:"button",onClick:()=>{x==="accept"?U():A("accept")},className:"inline-flex h-8 items-center gap-1.5 rounded-lg bg-[#BFFF00]/12 px-4 text-[12px] font-semibold text-[#BFFF00] transition-colors hover:bg-[#BFFF00]/20",children:[e.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Accept"]}),ae&&e.jsxs("button",{type:"button","data-modal-autofocus":"true",onClick:()=>{d==null||d(i.initiativeId,i.workstreamId,i.agentId??void 0),n()},className:"inline-flex h-8 items-center gap-1.5 rounded-lg border border-[#BFFF00]/25 bg-[#BFFF00]/10 px-4 text-[12px] font-semibold text-[#E1FFB2] transition-colors hover:bg-[#BFFF00]/20",title:"Start (⌘ Enter)",children:[e.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,className:"h-3.5 w-3.5",children:e.jsx("path",{d:"M7 5.4v9.2c0 .7.75 1.15 1.38.83l7.6-4.6a.95.95 0 0 0 0-1.62l-7.6-4.64A.95.95 0 0 0 7 5.4Z",fill:"currentColor"})}),b.status==="completed"?"Restart":b.status==="needs_attention"?"Retry":"Start"]}),le&&e.jsx("button",{type:"button",onClick:()=>void re(H),disabled:te,className:"inline-flex h-7 w-7 items-center justify-center rounded-md text-white/30 transition-colors hover:bg-white/[0.04] hover:text-white/50 disabled:opacity-40",title:"Open in terminal",children:e.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polyline",{points:"4 17 10 11 4 5"}),e.jsx("line",{x1:"12",y1:"19",x2:"20",y2:"19"})]})})]})]})]});let v=0;return e.jsx(xe,{open:$,onClose:n,maxWidth:"max-w-xl",children:e.jsxs("div",{className:"relative flex h-full min-h-0 flex-col",children:[e.jsx("div",{className:"h-[2px] flex-shrink-0 rounded-t-2xl",style:Ie(i.queueState),"aria-hidden":!0}),e.jsx(ye,{breadcrumbs:ne,onClose:n,footer:oe,children:e.jsxs("div",{className:"px-6 py-5 space-y-5",children:[e.jsxs(m.div,{variants:Fe,initial:"hidden",animate:"visible",exit:"exit",custom:v++,className:"flex items-start gap-3",children:[e.jsx(me,{name:i.agentName??"OrgX",hint:i.agentSource??i.agentId,size:"md"}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsx("h3",{className:"text-[28px] font-medium leading-none text-white truncate",children:i.workstreamTitle}),i.initiativeTitle&&e.jsx("p",{className:"mt-1 text-[10px] uppercase tracking-[0.1em] text-muted",children:i.initiativeTitle}),e.jsxs("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[e.jsxs("span",{className:`inline-flex items-center rounded-full border px-2 py-[1px] text-micro font-semibold uppercase tracking-widest ${ie}`,children:[e.jsxs("span",{className:"relative mr-1.5 inline-block h-1.5 w-1.5",children:[e.jsx("span",{className:"absolute inset-0 rounded-full",style:{backgroundColor:Y(i.queueState)}}),J&&e.jsx(m.span,{className:"absolute inset-0 rounded-full",style:{backgroundColor:Y(i.queueState)},animate:{opacity:[1,.3,1],scale:[1,1.6,1]},transition:{duration:2,repeat:1/0,ease:"easeInOut"}})]}),b.label]}),(t==null?void 0:t.confidence)&&e.jsx("span",{className:`chip text-[9px] font-semibold ${t.confidence==="high"?"border-[#BFFF00]/30 bg-[#BFFF00]/[0.12] text-[#d8ffa1]":t.confidence==="medium"?"border-[#F5B700]/30 bg-[#F5B700]/[0.12] text-[#FFE7A8]":"border-white/[0.12] bg-white/[0.05] text-white/60"}`,children:t.confidence})]}),(t==null?void 0:t.statusExplainer)&&e.jsx("p",{className:"mt-2 text-body text-secondary",children:t.statusExplainer})]})]}),t&&e.jsx(ve,{metrics:[...t.startedAt?[{label:"Duration",value:(()=>{const r=t.completedAt??t.failedAt??t.updatedAt??new Date().toISOString(),c=Date.parse(r)-Date.parse(t.startedAt);return c<6e4?`${Math.round(c/1e3)}s`:c<36e5?`${Math.round(c/6e4)}m`:`${(c/36e5).toFixed(1)}h`})()}]:[],{label:"Artifacts",value:t.artifactCount,color:l.teal},{label:"Decisions",value:t.decisionCount,color:l.amber}],className:"pb-4 border-b border-white/[0.04]"}),t&&t.artifacts.length>0&&e.jsx(Ne,{artifacts:t.artifacts}),e.jsx(N,{}),s.source==="needs_input"&&t?e.jsxs(e.Fragment,{children:[e.jsxs(m.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",custom:v++,className:`rounded-xl border px-4 py-3 ${se}`,children:[e.jsx("p",{className:"section-kicker",children:"What to do now"}),e.jsx("p",{className:"mt-1 text-body text-primary",children:b.sentence}),t.artifactCount>0?e.jsxs("p",{className:"mt-1 text-caption text-secondary",children:[t.artifactCount," artifact",t.artifactCount===1?"":"s"," ready for review."]}):null,t.blockingDecisionCount>0?e.jsxs("p",{className:"mt-1 text-caption text-secondary",children:[t.blockingDecisionCount," blocking decision",t.blockingDecisionCount===1?"":"s"," waiting."]}):null,X?e.jsxs("p",{className:"mt-1 text-caption text-secondary",children:["Recommended action: ",X]}):null]}),t.statusExplainer&&t.statusExplainer!==i.blockReason&&e.jsxs(m.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",custom:v++,children:[e.jsx("p",{className:"section-kicker",children:"What happened"}),e.jsx("p",{className:"mt-1 text-body text-secondary leading-relaxed",children:I(t.statusExplainer)})]}),t.lastEventSummary&&e.jsxs(m.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",custom:v++,children:[e.jsx("p",{className:"section-kicker",children:"Last activity"}),e.jsx("p",{className:"mt-1 text-caption text-white/50 leading-relaxed",children:I(t.lastEventSummary)})]}),e.jsx(N,{})]}):null,(i.blockReason||i.autoContinue||i.agentSource&&i.agentSource!=="assigned")&&e.jsxs(m.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",custom:v++,className:"space-y-2",children:[i.blockReason&&e.jsxs("div",{className:"rounded-lg border border-red-400/24 bg-red-500/[0.08] px-2.5 py-1.5 text-caption text-red-100/85",children:[e.jsx("p",{className:"mb-0.5 text-micro font-semibold uppercase tracking-[0.08em] text-red-200/70",children:"Why blocked"}),i.blockReason]}),i.autoContinue&&e.jsxs("div",{className:"flex items-center gap-2 text-caption text-secondary",children:[e.jsx("svg",{viewBox:"0 0 20 20",fill:"none","aria-hidden":!0,className:"h-3.5 w-3.5 flex-shrink-0 text-[#0AD4C4]",children:e.jsx("path",{d:"M6.1 13.25C4.25 13.25 2.8 11.8 2.8 10s1.45-3.25 3.3-3.25c3.15 0 4.35 6.5 8.05 6.5 1.85 0 3.3-1.45 3.3-3.25s-1.45-3.25-3.3-3.25c-3.7 0-4.9 6.5-8.05 6.5Z",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),e.jsxs("span",{children:["Auto-continue: ",e.jsx("span",{className:"text-primary capitalize",children:i.autoContinue.status}),i.autoContinue.laneState&&e.jsxs("span",{className:"text-muted",children:[" · ",he(i.autoContinue.laneState)]})]})]}),((Z=i.autoContinue)==null?void 0:Z.laneBlockedReason)&&e.jsx("p",{className:"text-micro text-red-100/75",children:i.autoContinue.laneBlockedReason}),((G=i.autoContinue)==null?void 0:G.stopReason)&&e.jsx("p",{className:"text-micro text-amber-100/75",children:be(i.autoContinue.stopReason)})]}),O.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(N,{}),e.jsxs(m.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",custom:v++,className:"space-y-2",children:[e.jsx("p",{className:"section-kicker",children:Q(i.queueState,_)}),e.jsx(fe,{nodes:O,activeId:i.workstreamId}),e.jsxs("div",{className:"flex items-center gap-2",children:[i.nextTaskPriority!==null&&M(i.nextTaskPriority)&&e.jsx("span",{className:"inline-flex rounded-full border px-2 py-[1px] text-micro font-semibold",style:{color:R(i.nextTaskPriority),borderColor:`${R(i.nextTaskPriority)}33`,backgroundColor:`${R(i.nextTaskPriority)}14`},children:M(i.nextTaskPriority)}),i.nextTaskDueAt&&e.jsxs("span",{className:"text-micro text-secondary",children:["Due ",B(i.nextTaskDueAt)]})]})]})]}),O.length===0&&(i.nextTaskTitle||i.sliceTaskCount!==null||i.sliceScope)&&e.jsxs(e.Fragment,{children:[e.jsx(N,{}),e.jsxs(m.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",custom:v++,className:"space-y-2",children:[e.jsx("p",{className:"section-kicker",children:Q(i.queueState,_)}),i.nextTaskTitle&&e.jsxs("div",{className:"flex items-start gap-2",children:[e.jsx(V,{type:"task",size:14,className:"mt-[2px] flex-shrink-0 opacity-80"}),e.jsx("p",{className:"text-body font-semibold leading-snug text-white",children:i.nextTaskTitle})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[i.sliceScope?e.jsxs("span",{className:"inline-flex rounded-full border border-strong bg-white/[0.03] px-2 py-[1px] text-micro uppercase tracking-[0.08em] text-secondary",children:[i.sliceScope," slice"]}):null,typeof i.sliceTaskCount=="number"?e.jsxs("span",{className:"inline-flex rounded-full border border-strong bg-white/[0.03] px-2 py-[1px] text-micro text-secondary",children:[i.sliceTaskCount," ",i.sliceTaskCount===1?"task":"tasks"," in scope"]}):null,i.nextTaskPriority!==null&&M(i.nextTaskPriority)&&e.jsx("span",{className:"inline-flex rounded-full border px-2 py-[1px] text-micro font-semibold",style:{color:R(i.nextTaskPriority),borderColor:`${R(i.nextTaskPriority)}33`,backgroundColor:`${R(i.nextTaskPriority)}14`},children:M(i.nextTaskPriority)}),i.nextTaskDueAt&&e.jsxs("span",{className:"text-micro text-secondary",children:["Due ",B(i.nextTaskDueAt)]})]})]})]}),t&&(t.startedAt||t.updatedAt||t.completedAt||t.failedAt)&&e.jsxs(e.Fragment,{children:[e.jsx(N,{}),e.jsxs(m.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",custom:v++,className:"space-y-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"section-kicker",children:"Timeline"}),t.scope&&t.scope!=="task"&&e.jsx(ge,{tone:t.scope==="milestone"?"cyan":"lime",children:t.scope}),t.confidence&&e.jsx("div",{className:"flex items-center gap-1 ml-auto",title:`Confidence: ${t.confidence}`,children:Array.from({length:5},(r,c)=>{const{filled:f,color:g}=Ce(t.confidence);return e.jsx("span",{className:"inline-block h-1.5 w-1.5 rounded-full",style:{backgroundColor:c<f?g:"rgba(255,255,255,0.1)"}},c)})})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[t.startedAt&&e.jsxs("div",{children:[e.jsx("p",{className:"text-micro uppercase tracking-[0.08em] text-muted",children:"Started"}),e.jsx("p",{className:"mt-0.5 text-caption text-primary",children:B(t.startedAt)})]}),t.completedAt?e.jsxs("div",{children:[e.jsx("p",{className:"text-micro uppercase tracking-[0.08em] text-muted",children:"Completed"}),e.jsx("p",{className:"mt-0.5 text-caption text-primary",children:B(t.completedAt)})]}):t.failedAt?e.jsxs("div",{children:[e.jsx("p",{className:"text-micro uppercase tracking-[0.08em] text-muted",children:"Failed"}),e.jsx("p",{className:"mt-0.5 text-caption text-red-100",children:B(t.failedAt)})]}):t.updatedAt&&t.updatedAt!==t.startedAt?e.jsxs("div",{children:[e.jsx("p",{className:"text-micro uppercase tracking-[0.08em] text-muted",children:"Updated"}),e.jsx("p",{className:"mt-0.5 text-caption text-primary",children:B(t.updatedAt)})]}):null]})]})]}),t&&t.artifactCount>0&&t.artifacts.length>0&&e.jsxs(e.Fragment,{children:[e.jsx(N,{}),e.jsxs(m.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",custom:v++,className:"space-y-2",children:[e.jsxs("p",{className:"section-kicker",children:["Artifacts ",e.jsx("span",{className:"text-muted tabular-nums",children:t.artifactCount})]}),e.jsx("div",{className:"space-y-1",children:t.artifacts.map((r,c)=>e.jsxs("div",{className:"flex items-center gap-2 rounded-lg px-2 py-1.5 transition-colors hover:bg-white/[0.04]",children:[e.jsx(V,{type:r.type==="pull_request"?"session":"workstream",size:13,className:"flex-shrink-0 opacity-75"}),e.jsx("span",{className:"min-w-0 flex-1 truncate text-caption text-primary",children:r.title}),r.url&&e.jsx("a",{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"flex-shrink-0 text-micro text-secondary transition-colors hover:text-white",title:"Open artifact",children:e.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),e.jsx("polyline",{points:"15 3 21 3 21 9"}),e.jsx("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]})})]},r.id??c))})]})]}),t&&t.decisionCount>0&&e.jsxs(e.Fragment,{children:[e.jsx(N,{}),e.jsxs(m.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",custom:v++,className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("p",{className:"section-kicker",children:["Decisions ",e.jsx("span",{className:"text-muted tabular-nums",children:t.decisionCount})]}),t.blockingDecisionCount>0&&e.jsxs("span",{className:"inline-flex rounded-full border px-1.5 py-[0.5px] text-micro font-semibold tabular-nums",style:{color:l.red,borderColor:`${l.red}33`,backgroundColor:`${l.red}14`},children:[t.blockingDecisionCount," blocking"]})]}),t.decisionOptions.length>0&&e.jsx("div",{className:"space-y-1.5",children:t.decisionOptions.slice(0,4).map(r=>e.jsxs("div",{className:"rounded-lg border border-white/[0.06] bg-white/[0.02] px-3 py-2",children:[e.jsx("p",{className:"text-caption font-semibold text-primary",children:r.label}),r.description&&e.jsx("p",{className:"mt-0.5 text-micro leading-snug text-secondary",children:r.description})]},r.id))})]})]}),t&&(t.sliceRunId||t.runId)&&e.jsxs(e.Fragment,{children:[e.jsx(N,{}),e.jsxs(m.div,{variants:y,initial:"hidden",animate:"visible",exit:"exit",custom:v++,children:[e.jsx("p",{className:"section-kicker mb-2",children:"Notes"}),e.jsx(ke,{entityType:"run",entityId:t.runId??t.sliceRunId,variant:"inline"})]})]}),t&&(t.sourceClient||t.runtimeState||t.correlationId||t.runId)&&e.jsxs(e.Fragment,{children:[e.jsx(N,{}),e.jsxs("details",{className:"group",children:[e.jsxs("summary",{className:"flex cursor-pointer select-none items-center gap-1.5 py-1 text-micro uppercase tracking-[0.08em] text-muted transition-colors hover:text-secondary",children:[e.jsx("svg",{width:"10",height:"10",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",className:"transition-transform group-open:rotate-90",children:e.jsx("path",{d:"m9 18 6-6-6-6"})}),"Technical details"]}),e.jsxs("div",{className:"mt-2 grid grid-cols-2 gap-x-4 gap-y-2",children:[t.sourceClient&&e.jsxs("div",{children:[e.jsx("p",{className:"text-micro uppercase tracking-[0.08em] text-muted",children:"Source"}),e.jsx("p",{className:"mt-0.5 font-mono text-caption text-primary",children:t.sourceClient})]}),t.runtimeState&&e.jsxs("div",{children:[e.jsx("p",{className:"text-micro uppercase tracking-[0.08em] text-muted",children:"Runtime State"}),e.jsx("p",{className:"mt-0.5 font-mono text-caption text-primary",children:t.runtimeState})]}),t.runId&&e.jsxs("div",{className:"col-span-2",children:[e.jsx("p",{className:"text-micro uppercase tracking-[0.08em] text-muted",children:"Run ID"}),e.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(t.runId)},className:"mt-0.5 font-mono text-caption text-primary transition-colors hover:text-white",title:"Click to copy",children:t.runId})]}),t.correlationId&&t.correlationId!==t.runId&&e.jsxs("div",{className:"col-span-2",children:[e.jsx("p",{className:"text-micro uppercase tracking-[0.08em] text-muted",children:"Correlation ID"}),e.jsx("button",{type:"button",onClick:()=>{navigator.clipboard.writeText(t.correlationId)},className:"mt-0.5 font-mono text-caption text-primary transition-colors hover:text-white",title:"Click to copy",children:t.correlationId})]})]})]})]})]})})]})})}export{qe as SliceDetailModal};