@wrongstack/webui 1.0.16 → 1.0.17

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 (106) hide show
  1. package/dist/assets/{AgentRosterView-DMxOg0xX.js → AgentRosterView-CV9MW-4M.js} +4 -4
  2. package/dist/assets/AnalyticsDashboard-30brLbuz.js +1 -0
  3. package/dist/assets/{AudienceMemoryPanel-CyfpggCK.js → AudienceMemoryPanel-bKVydKg8.js} +1 -1
  4. package/dist/assets/ChangesView-Cv6svx-V.js +1 -0
  5. package/dist/assets/{ChimeraReviewsView-DencEMIY.js → ChimeraReviewsView-DLTrEJDS.js} +1 -1
  6. package/dist/assets/{ChronicleDashboard-CvDPqZKE.js → ChronicleDashboard-DhgWbaXj.js} +1 -1
  7. package/dist/assets/{CodeEditor-s0lHP0DZ.js → CodeEditor-JlvMbECd.js} +2 -2
  8. package/dist/assets/CodeMap-4swT3FIw.js +1 -0
  9. package/dist/assets/{CronJobsPanel-LoDmuRHl.js → CronJobsPanel-LSpFBceD.js} +1 -1
  10. package/dist/assets/{DeadCodeScanPanel-ByhAW_bl.js → DeadCodeScanPanel-ZRNNV02b.js} +1 -1
  11. package/dist/assets/{DebugDashboard-BP1Mia-L.js → DebugDashboard-DlH0QNPX.js} +1 -1
  12. package/dist/assets/{DesignGalleryView-taDxRN63.js → DesignGalleryView-yZgVVEg9.js} +1 -1
  13. package/dist/assets/{GoalView-CcLxMYXe.js → GoalView-D1gxZre2.js} +1 -1
  14. package/dist/assets/{KanbanView-C-K6OBw8.js → KanbanView-Bh0T3p3J.js} +1 -1
  15. package/dist/assets/MailboxDetailView-C4lEW3f8.js +1 -0
  16. package/dist/assets/{MemoryDrawer-CuFQypU-.js → MemoryDrawer-arujfDSW.js} +1 -1
  17. package/dist/assets/MemoryManager-BmQYIRhD.js +1 -0
  18. package/dist/assets/ProcessMonitor-ByW-VKsX.js +1 -0
  19. package/dist/assets/{PromptJournalView-CdC4ldrv.js → PromptJournalView-0cHPeYXa.js} +1 -1
  20. package/dist/assets/{ProviderTestView-Dy7EQEI9.js → ProviderTestView-CQlwC6HG.js} +1 -1
  21. package/dist/assets/{QueuePanel-DE9ySxkR.js → QueuePanel-DJeK7xCh.js} +1 -1
  22. package/dist/assets/{RefreshDebugView-Dbq_bHwj.js → RefreshDebugView-BfOjHodq.js} +1 -1
  23. package/dist/assets/RepositoryHistoryView-BYPPu5uv.js +2 -0
  24. package/dist/assets/RequirementIntakeView-CEwUB7VD.js +1 -0
  25. package/dist/assets/{SageTabs-Dwbux3im.js → SageTabs-Bt2kzPNB.js} +2 -2
  26. package/dist/assets/{SddFlowGraph-BZkvlaQ1.js → SddFlowGraph-CZSwcAtS.js} +1 -1
  27. package/dist/assets/SddHub-Cc79Ob7A.js +2 -0
  28. package/dist/assets/{SessionInspectView-Bak1hK82.js → SessionInspectView-BasxJ_5x.js} +1 -1
  29. package/dist/assets/{SessionList-xXaygO5X.js → SessionList-C9MRSj_-.js} +1 -1
  30. package/dist/assets/{SessionsDashboard-CaSXukNy.js → SessionsDashboard-BK95Zp6f.js} +1 -1
  31. package/dist/assets/{SetupScreen-BSEF1air.js → SetupScreen-rPKsBa9Z.js} +1 -1
  32. package/dist/assets/{SkillDetailView-OdtAJM43.js → SkillDetailView-LkJyIBPb.js} +1 -1
  33. package/dist/assets/{TechStackView-BUIbnU2F.js → TechStackView-xVR5dsSn.js} +1 -1
  34. package/dist/assets/{TerminalPanel-CfoKklMj.js → TerminalPanel-CBEZTuvV.js} +1 -1
  35. package/dist/assets/{activity-Bk7N_ZW5.js → activity-CDHIWIPJ.js} +4 -4
  36. package/dist/assets/{activity-BazcMhZZ.js → activity-CInOo57V.js} +4 -4
  37. package/dist/assets/{activity-VTOCX_jm.js → activity-D6XfckyA.js} +4 -4
  38. package/dist/assets/{activity-BWPWyp3o.js → activity-DapbBEf6.js} +4 -4
  39. package/dist/assets/{activity-DBsMiPsa.js → activity-E8vCWdG2.js} +4 -4
  40. package/dist/assets/{activity-Cmq0z33p.js → activity-e8OIpNGJ.js} +4 -4
  41. package/dist/assets/{activity-B-GYDVn2.js → activity-oTJsNfZu.js} +4 -4
  42. package/dist/assets/button-BbeB5Qm8.js +1 -0
  43. package/dist/assets/{chat-store-DNRce6sE.js → chat-store-BDVZSmod.js} +1 -1
  44. package/dist/assets/common-BXosnbIt.js +1 -0
  45. package/dist/assets/common-CzfPgMjC.js +1 -0
  46. package/dist/assets/common-DDDPz7Dv.js +1 -0
  47. package/dist/assets/common-DYx9oSoC.js +1 -0
  48. package/dist/assets/common-DZ-05t4z.js +1 -0
  49. package/dist/assets/common-MjX8fcng.js +1 -0
  50. package/dist/assets/common-ipsuLC3n.js +1 -0
  51. package/dist/assets/{config-store-BAUadwHd.js → config-store-mWuYCild.js} +1 -1
  52. package/dist/assets/dialog-b-Ai37sa.js +1 -0
  53. package/dist/assets/empty-state-pfuS5znr.js +1 -0
  54. package/dist/assets/{i18n-CbyUyl6G.js → i18n-CvJB4U4z.js} +3 -3
  55. package/dist/assets/{index-3TGBKeBP.js → index-DLjaZSCH.js} +80 -80
  56. package/dist/assets/index-DiX5j910.css +1 -0
  57. package/dist/assets/input-BA6D2L3K.js +1 -0
  58. package/dist/assets/mailbox-store-ZQO_Rv6E.js +1 -0
  59. package/dist/assets/{roster-ws-z8DKquaN.js → roster-ws-BRANim2Y.js} +1 -1
  60. package/dist/assets/stores-D5loyGLL.js +7 -0
  61. package/dist/assets/{vector-memory-panel-DZFEwwGM.js → vector-memory-panel-YWv6xcza.js} +1 -1
  62. package/dist/assets/view-navigation-DTs4cSQ6.js +1 -0
  63. package/dist/components/CodeMap.d.ts +1 -1
  64. package/dist/components/CodeMapCanvasSurface.d.ts +2 -1
  65. package/dist/components/ConfirmModal.d.ts +10 -0
  66. package/dist/components/FileExplorer/FileExplorerModals.d.ts +4 -5
  67. package/dist/components/MainViewSlot.d.ts +1 -1
  68. package/dist/components/MemoryManager/useMemoryManagerState.d.ts +2 -2
  69. package/dist/components/PanelSuspense.d.ts +0 -4
  70. package/dist/components/RepositoryHistoryView.d.ts +1 -1
  71. package/dist/components/RequirementIntakeView.d.ts +22 -1
  72. package/dist/components/SddHub.d.ts +3 -3
  73. package/dist/components/ui/dialog.d.ts +1 -1
  74. package/dist/components/ui/dropdown-menu.d.ts +1 -1
  75. package/dist/components/ui/empty-state.d.ts +1 -1
  76. package/dist/components/ui/tabs.d.ts +1 -1
  77. package/dist/index.html +12 -12
  78. package/dist/index.js +1989 -1473
  79. package/dist/lib/view-navigation.d.ts +2 -2
  80. package/dist/stores/index.d.ts +1 -1
  81. package/dist/stores/sdd-wizard-store.d.ts +7 -0
  82. package/package.json +9 -9
  83. package/dist/assets/AnalyticsDashboard-DGQk1vSi.js +0 -1
  84. package/dist/assets/ChangesView-C8x8tmpi.js +0 -1
  85. package/dist/assets/CodeMap-6mmDO9gJ.js +0 -1
  86. package/dist/assets/MailboxDetailView-N00dLbpr.js +0 -1
  87. package/dist/assets/MemoryManager-Bmz62aEV.js +0 -1
  88. package/dist/assets/ProcessMonitor-CkAtUjrR.js +0 -1
  89. package/dist/assets/RepositoryHistoryView-D0ynYRgu.js +0 -2
  90. package/dist/assets/RequirementIntakeView-CPRtncuJ.js +0 -1
  91. package/dist/assets/SddHub-CoRKeq7Q.js +0 -2
  92. package/dist/assets/button-9ewV4TF3.js +0 -1
  93. package/dist/assets/common-5rSj2oHt.js +0 -1
  94. package/dist/assets/common-B5Uslzr2.js +0 -1
  95. package/dist/assets/common-BnhmJl6b.js +0 -1
  96. package/dist/assets/common-CmkkiJUR.js +0 -1
  97. package/dist/assets/common-CpZ-DoXd.js +0 -1
  98. package/dist/assets/common-Ct-Iodid.js +0 -1
  99. package/dist/assets/common-D9w3BalB.js +0 -1
  100. package/dist/assets/dialog-C7EIBM_2.js +0 -1
  101. package/dist/assets/empty-state-5YP1rmE6.js +0 -1
  102. package/dist/assets/index-NBVZNAcU.css +0 -1
  103. package/dist/assets/input-ag1CrUiS.js +0 -1
  104. package/dist/assets/mailbox-store-C49LeBj8.js +0 -1
  105. package/dist/assets/stores-RkHrTaRO.js +0 -7
  106. package/dist/assets/view-navigation-DHtNFXIl.js +0 -1
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,t as n}from"./react-core-wiHys0m2.js";import{xo as r}from"./vendor-V3ydTHqN.js";import"./i18n-CbyUyl6G.js";import{t as i}from"./utils-CKsqCaP8.js";import{t as a}from"./button-9ewV4TF3.js";import{t as o}from"./input-ag1CrUiS.js";import{_ as s}from"./index-3TGBKeBP.js";var c=e(t(),1),l=n(),u=[`feature`,`bug_fix`,`refactor`,`performance`,`security`,`ui_change`,`api_change`,`infrastructure`,`migration`,`testing`,`documentation`,`maintenance`,`other`,`unspecified`],d=[`unspecified`,`low`,`medium`,`high`,`critical`],f={draft:`bg-muted text-muted-foreground`,collecting_information:`bg-warning/15 text-warning`,submitted:`bg-success/15 text-success`,cancelled:`bg-destructive/15 text-destructive`,archived:`bg-muted text-muted-foreground`};function p(e){let t=Date.now()-e;if(t<6e4)return`just now`;let n=Math.floor(t/6e4);if(n<60)return`${n}m ago`;let r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function m(){let{t:e}=r(),[t,n]=(0,c.useState)(null),[m,h]=(0,c.useState)([]),[g,_]=(0,c.useState)(!0),[v,y]=(0,c.useState)(null),[b,x]=(0,c.useState)(``),[S,C]=(0,c.useState)(``),[w,T]=(0,c.useState)(`unspecified`),[E,D]=(0,c.useState)(`unspecified`),[O,k]=(0,c.useState)(!1),[A,j]=(0,c.useState)(null),[M,N]=(0,c.useState)(null),P=(0,c.useCallback)(async()=>{_(!0),y(null);try{let e=await fetch(`/api/requirement-intakes`);if(!e.ok){let t=await e.json().catch(()=>null);throw Error(t?.error?.message??`List failed (HTTP ${e.status})`)}let t=await e.json();n(t.projectId),h(t.intakes)}catch(e){y(e instanceof Error?e.message:String(e))}finally{_(!1)}},[]);(0,c.useEffect)(()=>{P()},[P]);let F=(0,c.useCallback)(async()=>{let e=b.trim();if(!e){j(`Describe the request first — it is preserved verbatim.`);return}if(!t){j(`No project identity available yet.`);return}k(!0),j(null),N(null);try{let n=await fetch(`/api/projects/${encodeURIComponent(t)}/requirement-intakes`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({projectId:t,requestedBy:`webui`,originalRequest:e,...S.trim()?{title:S.trim()}:{},...w===`unspecified`?{}:{requestType:w},...E===`unspecified`?{}:{priority:E}})}),r=await n.json().catch(()=>null);if(!n.ok||!r?.record)throw Error(r?.error?.message??`Create failed (HTTP ${n.status})`);let i=await fetch(`/api/requirement-intakes/${r.record.id}/submit`,{method:`POST`,headers:{"Content-Type":`application/json`},body:`{}`});if(!i.ok){let e=await i.json().catch(()=>null);throw Error(e?.error?.message??`Submit failed (HTTP ${i.status})`)}N(`Intake recorded and submitted (${r.record.id}).`),x(``),C(``),T(`unspecified`),D(`unspecified`),await P()}catch(e){j(e instanceof Error?e.message:String(e))}finally{k(!1)}},[b,S,w,E,t,P]);return(0,l.jsxs)(`div`,{className:`flex h-full flex-col overflow-hidden`,children:[(0,l.jsxs)(`header`,{className:`border-b border-border/70 px-5 py-3`,children:[(0,l.jsx)(`div`,{className:`text-sm font-semibold text-foreground`,children:e(`activity:reqIntake.requirementsIntake`)}),(0,l.jsx)(`div`,{className:`mt-0.5 text-[11px] text-muted-foreground`,children:e(`activity:reqIntake.collectAndPreserveSoftwareDevelopmentRequests`)})]}),(0,l.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-contain p-5`,children:[v?(0,l.jsxs)(`div`,{role:`alert`,className:`mb-4 rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive`,children:[v,(0,l.jsx)(`button`,{type:`button`,className:`ml-2 underline underline-offset-2`,onClick:()=>void P(),children:e(`activity:reqIntake.retry`)})]}):null,(0,l.jsxs)(`section`,{"aria-label":e(`activity:reqIntake.fileANewIntake`),className:`mb-6 rounded-lg border border-border/70 bg-card/60 p-4`,children:[(0,l.jsx)(`div`,{className:`mb-3 text-xs font-semibold uppercase tracking-wider text-muted-foreground`,children:e(`activity:reqIntake.fileANewRequest`)}),(0,l.jsxs)(`div`,{className:`space-y-3`,children:[(0,l.jsxs)(`div`,{children:[(0,l.jsxs)(`label`,{htmlFor:`intake-request`,className:`mb-1 block text-xs text-foreground`,children:[e(`activity:reqIntake.requestText`),` `,(0,l.jsx)(`span`,{className:`text-destructive`,children:`*`})]}),(0,l.jsx)(`textarea`,{id:`intake-request`,value:b,onChange:e=>x(e.target.value),placeholder:e(`activity:reqIntake.describeTheFeatureBugFixRefactorOrChange`),rows:4,className:i(`w-full resize-y rounded-md border border-border/70 bg-background px-3 py-2`,`text-sm text-foreground placeholder:text-muted-foreground/70`,`focus:outline-none focus:ring-2 focus:ring-ring`)}),/\[VIBE\]/i.test(b)?(0,l.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-1.5 rounded bg-primary/10 px-2 py-1 text-[11px] font-medium text-primary`,children:[(0,l.jsx)(`span`,{children:`🌊`}),(0,l.jsxs)(`span`,{children:[(0,l.jsx)(`strong`,{children:`VIBE Protocol Detected:`}),` Three-Stage Verification (Spec-Synthesizer → Coder → Auditor) is active.`]})]}):null,(0,l.jsx)(`p`,{className:`mt-1 text-[11px] text-muted-foreground`,children:e(`activity:reqIntake.storedVerbatimAsTheRecordApos`)})]}),(0,l.jsxs)(`div`,{className:`grid grid-cols-1 gap-3 sm:grid-cols-3`,children:[(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`label`,{htmlFor:`intake-title`,className:`mb-1 block text-xs text-foreground`,children:e(`activity:reqIntake.titleOptional`)}),(0,l.jsx)(o,{id:`intake-title`,value:S,onChange:e=>C(e.target.value),placeholder:e(`activity:reqIntake.shortDisplayTitle`)})]}),(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`label`,{htmlFor:`intake-type`,className:`mb-1 block text-xs text-foreground`,children:e(`activity:reqIntake.type`)}),(0,l.jsx)(`select`,{id:`intake-type`,value:w,onChange:e=>T(e.target.value),className:i(`w-full rounded-md border border-border/70 bg-background px-2 py-2`,`text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring`),children:u.map(e=>(0,l.jsx)(`option`,{value:e,children:e},e))})]}),(0,l.jsxs)(`div`,{children:[(0,l.jsx)(`label`,{htmlFor:`intake-priority`,className:`mb-1 block text-xs text-foreground`,children:e(`activity:reqIntake.priority`)}),(0,l.jsx)(`select`,{id:`intake-priority`,value:E,onChange:e=>D(e.target.value),className:i(`w-full rounded-md border border-border/70 bg-background px-2 py-2`,`text-sm text-foreground focus:outline-none focus:ring-2 focus:ring-ring`),children:d.map(e=>(0,l.jsx)(`option`,{value:e,children:e},e))})]})]}),A?(0,l.jsx)(`div`,{role:`alert`,className:`rounded-md border border-destructive/40 bg-destructive/10 px-3 py-2 text-xs text-destructive`,children:A}):null,M?(0,l.jsx)(`div`,{role:`status`,className:`rounded-md border border-success/30 bg-success/10 px-3 py-2 text-xs text-success`,children:M}):null,(0,l.jsxs)(`div`,{className:`flex items-center justify-end gap-2`,children:[(0,l.jsx)(a,{variant:`secondary`,size:`sm`,disabled:O,onClick:()=>{x(``),j(null),N(null)},children:e(`activity:reqIntake.clear`)}),(0,l.jsx)(a,{size:`sm`,disabled:O||!b.trim(),onClick:()=>void F(),children:O?`Filing…`:`File + submit`})]})]})]}),(0,l.jsxs)(`section`,{"aria-label":e(`activity:reqIntake.intakeRecords`),className:`space-y-2`,children:[(0,l.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,l.jsx)(`div`,{className:`text-xs font-semibold uppercase tracking-wider text-muted-foreground`,children:e(`activity:reqIntake.records`)}),(0,l.jsxs)(`div`,{className:`text-[11px] text-muted-foreground`,children:[m.length,` total`]})]}),g?(0,l.jsx)(`div`,{className:`py-8 text-center text-xs text-muted-foreground`,children:e(`activity:reqIntake.loading`)}):m.length===0?(0,l.jsx)(`div`,{className:`rounded-md border border-dashed border-border/70 py-10 text-center text-xs text-muted-foreground`,children:e(`activity:reqIntake.noIntakeRecordsYetFileThe`)}):(0,l.jsx)(`ul`,{className:`space-y-2`,children:m.map(e=>(0,l.jsxs)(`li`,{className:`rounded-md border border-border/70 bg-card/60 p-3`,children:[(0,l.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,l.jsxs)(`div`,{className:`min-w-0`,children:[(0,l.jsx)(`div`,{className:`truncate text-sm font-medium text-foreground`,title:e.title,children:e.title}),(0,l.jsx)(`div`,{className:`mt-0.5 font-mono text-[10px] text-muted-foreground`,children:e.id})]}),(0,l.jsxs)(`div`,{className:`flex shrink-0 flex-wrap items-center gap-1.5`,children:[e.isVibeMode?(0,l.jsx)(s,{variant:`outline`,className:`border-primary/40 bg-primary/10 text-[10px] text-primary`,children:`🌊 VIBE`}):null,(0,l.jsx)(s,{variant:`secondary`,className:`text-[10px]`,children:e.requestType}),(0,l.jsx)(s,{className:i(`text-[10px]`,f[e.status]??`bg-muted text-muted-foreground`),children:e.status})]})]}),(0,l.jsxs)(`div`,{className:`mt-1.5 text-[11px] text-muted-foreground`,children:[e.priority,` · updated `,p(e.updatedAt)]})]},e.id))})]})]})]})}export{m as RequirementIntakeView};
@@ -1,2 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,t as n}from"./react-core-wiHys0m2.js";import{$a as r,$n as i,Br as a,En as o,Fa as s,Hr as c,Ht as l,In as u,Jn as d,Ka as f,Mr as p,Mt as m,Na as h,Pa as g,Qi as _,Qt as v,Rn as y,Ta as b,Ti as x,Ui as S,Wt as ee,Yt as te,ci as C,cn as ne,dn as w,ea as T,fn as E,ga as D,gr as re,ha as O,ho as k,ja as A,jr as j,jt as M,nn as ie,pn as N,qt as ae,so as oe,tn as P,ua as F,ur as se,wo as I,wr as L,xo as R}from"./vendor-V3ydTHqN.js";import"./i18n-CbyUyl6G.js";import{t as z}from"./utils-CKsqCaP8.js";import{o as B,r as V}from"./view-navigation-DHtNFXIl.js";import{n as H}from"./ui-store-DC3mkswy.js";import{a as U,h as W,o as G,r as K}from"./stores-RkHrTaRO.js";import{a as q,i as J,n as ce,o as le,r as ue,t as de}from"./dialog-C7EIBM_2.js";import{t as Y}from"./button-9ewV4TF3.js";import{L as fe,g as pe,h as me,v as he,y as ge}from"./index-3TGBKeBP.js";import{a as _e,c as ve,i as ye,l as be,n as xe,o as Se,r as Ce,s as we,t as Te,u as Ee}from"./SddFlowGraph-BZkvlaQ1.js";var X=e(t(),1),Z=n();function De({feed:e,now:t}){let{t:n}=R();return(0,Z.jsxs)(`div`,{className:`flex h-full min-h-0 min-w-0 flex-col`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-1.5 border-b border-border px-3 py-2 text-xs font-semibold text-foreground`,children:[(0,Z.jsx)(k,{className:`h-3.5 w-3.5 text-warning`}),n(`activity:sdd.activityHeading`)]}),(0,Z.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 space-y-1 overflow-auto overscroll-contain p-2`,children:e.length===0?(0,Z.jsx)(`p`,{className:`px-1 pt-4 text-center text-[11px] text-muted-foreground`,children:n(`activity:sdd.feedEmpty`)}):e.map((e,n)=>{let r=Ce[e.kind]??Ce.started,i=r.icon;return(0,Z.jsxs)(`div`,{className:z(`sdd-rise flex items-start gap-2 rounded-md px-2 py-1.5 text-[11px]`,n===0?`bg-muted`:`hover:bg-muted`),children:[(0,Z.jsx)(i,{className:z(`mt-0.5 h-3.5 w-3.5 shrink-0`,r.color)}),(0,Z.jsx)(`span`,{className:`flex-1 leading-snug text-foreground`,children:e.text}),(0,Z.jsx)(`span`,{className:`shrink-0 tabular-nums text-[10px] text-muted-foreground`,children:Se(e.ts,t)})]},`${e.ts}-${n}`)})})]})}function Oe({open:e,onOpenChange:t,snapshot:n,busy:r,onConfirm:i}){let{t:a}=R(),o=n?.mergedCommits?.length??0,s=n?.baseBranch,[c,l]=(0,X.useState)(!1);(0,X.useEffect)(()=>{e&&l(!1)},[e]);let u=n?.status===`running`||n?.status===`paused`,d=(0,X.useMemo)(()=>{let e=new Set;for(let t of n?.tasks??[])t.worktreeBranch&&e.add(t.worktreeBranch);return e.size},[n?.tasks]),f=(0,X.useMemo)(()=>{let e=new Set;for(let t of n?.tasks??[])t.displayStatus===`in_progress`&&t.agentName&&e.add(t.agentName);return e.size},[n?.tasks]);return(0,Z.jsx)(de,{open:e,onOpenChange:e=>!r&&t(e),children:(0,Z.jsxs)(ce,{className:`sm:max-w-lg border-destructive/50`,children:[(0,Z.jsxs)(q,{children:[(0,Z.jsxs)(le,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(v,{className:`h-5 w-5 text-destructive`}),a(`activity:sdd.destroyTitle`)]}),(0,Z.jsx)(ue,{children:a(`activity:sdd.destroyDesc`)})]}),(0,Z.jsxs)(`ul`,{className:`space-y-1.5 py-1 text-sm`,children:[u&&(0,Z.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,Z.jsx)(`span`,{className:`mt-0.5 text-destructive`,children:`■`}),(0,Z.jsx)(`span`,{children:f>0?a(`activity:sdd.stopRunAgents`,{count:f}):a(`activity:sdd.stopRun`)})]}),(0,Z.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,Z.jsx)(`span`,{className:`mt-0.5 text-destructive`,children:`■`}),(0,Z.jsx)(`span`,{children:d>0?a(`activity:sdd.removeWorktreesCount`,{count:d}):a(`activity:sdd.removeWorktreesAll`)})]}),(0,Z.jsxs)(`li`,{className:`flex items-start gap-2`,children:[(0,Z.jsx)(`span`,{className:`mt-0.5 text-destructive`,children:`■`}),(0,Z.jsx)(`span`,{children:a(`activity:sdd.deleteArtifacts`)})]})]}),o>0&&(0,Z.jsxs)(`label`,{className:`flex cursor-pointer items-start gap-2 rounded-md border border-warning/30 bg-warning/5 p-2.5 text-sm`,children:[(0,Z.jsx)(`input`,{type:`checkbox`,checked:c,onChange:e=>l(e.target.checked),className:`mt-0.5 h-4 w-4 accent-warning`}),(0,Z.jsxs)(`span`,{children:[(0,Z.jsx)(`span`,{className:`font-medium`,children:a(`activity:sdd.revertMerged`,{count:o})}),` `,`on`,` `,(0,Z.jsx)(`code`,{className:`text-xs`,children:s??a(`activity:sdd.baseBranchFallback`)}),(0,Z.jsx)(`span`,{className:`block text-xs text-muted-foreground`,children:a(`activity:sdd.revertHint`)})]})]}),(0,Z.jsxs)(`div`,{className:`flex items-start gap-2 rounded-md bg-muted/50 p-2 text-xs text-muted-foreground`,children:[(0,Z.jsx)(te,{className:`mt-0.5 h-3.5 w-3.5 shrink-0 text-warning`}),a(o>0&&!c?`activity:sdd.noteLeaveMerged`:`activity:sdd.noteAbandon`)]}),(0,Z.jsxs)(J,{className:`gap-2 sm:gap-2`,children:[(0,Z.jsx)(Y,{variant:`outline`,size:`sm`,disabled:r,onClick:()=>t(!1),children:a(`common:action.cancel`)}),(0,Z.jsx)(Y,{size:`sm`,disabled:r,onClick:()=>i(c),className:`bg-destructive text-destructive-foreground hover:bg-destructive/90`,children:r?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(p,{className:`mr-1 h-3.5 w-3.5 animate-spin`}),` `,a(`activity:sdd.destroying`)]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(v,{className:`mr-1 h-3.5 w-3.5`}),` `,a(`activity:sdd.destroyAll`)]})})]})]})})}var ke=[{key:`pending`,labelKey:`kanbanBacklog`,accent:`border-border/70`,head:`text-muted-foreground`},{key:`queued`,labelKey:`kanbanReady`,accent:`border-primary/35`,head:`text-primary`},{key:`in_progress`,labelKey:`kanbanRunning`,accent:`border-warning/45`,head:`text-warning`},{key:`review`,labelKey:`kanbanReview`,accent:`border-primary/35`,head:`text-primary`},{key:`failed`,labelKey:`kanbanFailed`,accent:`border-destructive/35`,head:`text-destructive`},{key:`completed`,labelKey:`kanbanDone`,accent:`border-success/35`,head:`text-success`}];function Q({tasks:e,selectedId:t,onTaskClick:n}){let{t:r}=R(),i=(0,X.useMemo)(()=>{let t=new Map;for(let e of ke)t.set(e.key,[]);for(let n of e){let e=n.displayStatus===`blocked`?`pending`:n.displayStatus===`cancelled`?`failed`:n.displayStatus;(t.get(e)??t.get(`pending`))?.push(n)}return t},[e]);return(0,Z.jsx)(`div`,{className:`flex h-full min-h-0 min-w-0 gap-3 overflow-x-auto p-4`,children:ke.map(e=>{let a=i.get(e.key)??[];return(0,Z.jsxs)(`div`,{className:`flex min-h-0 w-64 shrink-0 flex-col`,children:[(0,Z.jsxs)(`div`,{className:z(`mb-2 flex items-center gap-2 border-b-2 pb-1.5`,e.accent),children:[(0,Z.jsx)(`span`,{className:z(`text-xs font-bold uppercase tracking-wide`,e.head),children:r(`activity:sdd.${e.labelKey}`)}),(0,Z.jsx)(`span`,{className:`rounded-full bg-muted px-1.5 text-[10px] text-muted-foreground`,children:a.length})]}),(0,Z.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-2 overflow-y-auto overscroll-contain pr-1`,children:[a.map(e=>(0,Z.jsx)(Ae,{task:e,selected:e.id===t,onClick:()=>n(e.id)},e.id)),a.length===0&&(0,Z.jsx)(`div`,{className:`rounded-md border border-dashed border-border py-6 text-center text-[10px] text-muted-foreground`,children:r(`activity:sdd.kanbanEmpty`)})]})]},e.key)})})}function Ae({task:e,selected:t,onClick:n}){let r=e.displayStatus===`in_progress`;return(0,Z.jsxs)(`button`,{type:`button`,onClick:n,className:z(`sdd-node-enter w-full rounded-lg border bg-card/85 p-2 text-left shadow-sm transition hover:border-primary/35 hover:bg-accent/35`,t?`border-primary/55 ring-1 ring-primary/35`:`border-border/70`,r&&`sdd-node-running`,e.displayStatus===`completed`&&`sdd-node-complete`,e.displayStatus===`failed`&&`sdd-node-failed`),children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[r&&(0,Z.jsx)(p,{className:`h-3 w-3 animate-spin text-warning`}),e.displayStatus===`completed`&&(0,Z.jsx)(g,{className:`h-3 w-3 text-success`}),e.displayStatus===`failed`&&(0,Z.jsx)(m,{className:`h-3 w-3 text-destructive`}),(0,Z.jsx)(`span`,{className:`font-mono text-[10px] text-muted-foreground`,children:e.shortId}),(0,Z.jsx)(`span`,{className:z(`ml-auto rounded px-1.5 text-[9px] font-bold uppercase`,ve(e.priority).chip),children:e.priority})]}),(0,Z.jsx)(`p`,{className:`mt-1 line-clamp-2 text-[11px] leading-snug text-foreground`,children:e.title}),(e.agentName||e.worktreeBranch||e.retries)&&(0,Z.jsxs)(`div`,{className:`mt-1.5 flex items-center gap-1.5`,children:[e.agentName&&(0,Z.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,Z.jsx)(`span`,{className:z(`flex h-4 w-4 items-center justify-center rounded-full text-[8px] font-bold text-white`,r?`bg-warning sdd-agent-live`:`bg-muted-foreground`),children:_e(e.agentName)}),(0,Z.jsx)(`span`,{className:`max-w-[80px] truncate text-[10px] text-muted-foreground`,children:e.agentName})]}),e.retries?(0,Z.jsxs)(`span`,{className:`flex items-center gap-0.5 text-[9px] text-destructive`,children:[(0,Z.jsx)(u,{className:`h-2.5 w-2.5`}),e.retries]}):null,e.worktreeBranch&&(0,Z.jsx)(C,{className:`ml-auto h-2.5 w-2.5 text-muted-foreground`})]})]})}function je({task:e,allTasks:t,feed:n,now:r,expanded:i,modelCandidates:a,defaultModel:o,onClose:s,onToggleExpanded:c,onRetry:l,onReassign:d,onSetModel:f,onSetVerification:p,onCancel:h,onDelete:_,onSplit:y,onSelectTask:b}){let{t:x}=R(),S=be(e.displayStatus),te=S.icon,T=e.displayStatus===`in_progress`,E=e.displayStatus===`pending`||e.displayStatus===`blocked`||e.displayStatus===`queued`,[D,O]=(0,X.useState)(!1),[k,A]=(0,X.useState)(``),[j,M]=(0,X.useState)(null),[ie,N]=(0,X.useState)(!1),[ae,P]=(0,X.useState)(``),[se,I]=(0,X.useState)(!1),[B,V]=(0,X.useState)(e.verificationCommand??``),H=()=>{k.trim()&&(d(e.id,k.trim()),O(!1),A(``))},U=()=>{let t=ae.split(`
2
- `).map(e=>e.trim()).filter(Boolean).map(e=>{let[t,...n]=e.split(`::`),r=(t??``).trim();return{title:r,description:n.join(`::`).trim()||r}}).filter(e=>e.title);t.length&&(y(e.id,t),N(!1),P(``))},W=(0,X.useMemo)(()=>new Map(t.map(e=>[e.shortId,e])),[t]),G=(0,X.useMemo)(()=>t.filter(t=>t.deps.includes(e.shortId)),[t,e.shortId]),K=(0,X.useMemo)(()=>n.filter(t=>t.taskId===e.id||t.taskShortId===e.shortId),[n,e.id,e.shortId]),q=e.startedAt&&!e.completedAt?we(r-e.startedAt):e.startedAt&&e.completedAt?we(e.completedAt-e.startedAt):null;return(0,Z.jsxs)(`div`,{className:`sdd-rise flex h-full min-h-0 min-w-0 flex-col`,children:[(0,Z.jsxs)(`div`,{className:z(`flex items-center gap-2 border-b border-border/70 bg-card/70 px-3 py-2`,i&&`px-5 py-3`),children:[(0,Z.jsx)(`button`,{type:`button`,onClick:s,className:`text-muted-foreground hover:text-foreground`,title:x(`activity:sddTask.backTitle`),children:(0,Z.jsx)(oe,{className:`h-4 w-4`})}),(0,Z.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground`,children:e.shortId}),c&&(0,Z.jsx)(`button`,{type:`button`,onClick:c,className:`ml-1 inline-flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground transition hover:bg-muted hover:text-foreground`,title:x(i?`activity:sddTask.collapseTitle`:`activity:sddTask.expandTitle`),"aria-label":x(i?`activity:sddTask.collapseTitle`:`activity:sddTask.expandTitle`),"aria-pressed":i,children:i?(0,Z.jsx)(re,{className:`h-4 w-4`}):(0,Z.jsx)(L,{className:`h-4 w-4`})}),(0,Z.jsxs)(`span`,{className:z(`ml-auto flex items-center gap-1 rounded-full border px-2 py-0.5 text-[11px]`,S.ring,S.text),children:[(0,Z.jsx)(te,{className:z(`h-3 w-3`,T&&`animate-spin`)}),S.label]})]}),(0,Z.jsxs)(`div`,{className:z(`min-h-0 min-w-0 flex-1 overflow-auto overscroll-contain`,i?`grid grid-cols-2 content-start gap-4 p-5`:`space-y-3 p-3`),children:[(0,Z.jsx)(`h3`,{className:z(`text-sm font-semibold leading-snug text-foreground`,i&&`col-span-2 text-lg`),children:e.title}),e.agentName&&(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 rounded-lg border border-border/70 bg-muted/45 p-2`,children:[(0,Z.jsx)(`span`,{className:z(`flex h-7 w-7 items-center justify-center rounded-full text-[10px] font-bold text-white`,T?`bg-warning sdd-agent-live`:`bg-muted-foreground`),children:_e(e.agentName)}),(0,Z.jsxs)(`div`,{className:`leading-tight`,children:[(0,Z.jsx)(`div`,{className:`text-xs font-medium text-foreground`,children:e.agentName}),(0,Z.jsx)(`div`,{className:`text-[10px] text-muted-foreground`,children:x(T?`activity:sddTask.workingOn`:`activity:sddTask.assigned`)})]})]}),(0,Z.jsxs)(`div`,{className:`grid grid-cols-2 gap-1.5 text-[11px]`,children:[(0,Z.jsx)($,{label:x(`activity:sddTask.metaPriority`),children:(0,Z.jsx)(`span`,{className:z(`font-medium uppercase`,ve(e.priority).text),children:e.priority})}),(0,Z.jsx)($,{label:x(`activity:sddTask.metaType`),children:e.type}),q&&(0,Z.jsx)($,{label:e.completedAt?x(`activity:sddTask.metaDuration`):x(`activity:sddTask.metaElapsed`),children:(0,Z.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,Z.jsx)(F,{className:`h-3 w-3 text-muted-foreground`}),q]})}),e.retries?(0,Z.jsx)($,{label:x(`activity:sddTask.metaRetries`),children:(0,Z.jsxs)(`span`,{className:`flex items-center gap-1 text-destructive`,children:[(0,Z.jsx)(u,{className:`h-3 w-3`}),e.retries]})}):null,e.worktreeBranch&&(0,Z.jsx)($,{label:x(`activity:sddTask.metaWorktree`),full:!0,children:(0,Z.jsxs)(`span`,{className:`flex items-center gap-1 font-mono text-foreground`,title:e.worktreeBranch,children:[(0,Z.jsx)(C,{className:`h-3 w-3 text-muted-foreground`}),(0,Z.jsx)(`span`,{className:`truncate`,children:e.worktreeBranch})]})})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsxs)(`div`,{className:`mb-1 flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground`,children:[x(`activity:sddTask.workerModel`),!e.model&&o&&(0,Z.jsxs)(`span`,{className:`font-normal normal-case text-muted-foreground`,children:[`· `,x(`activity:sddTask.runDefault`,{model:o})]})]}),(0,Z.jsx)(pe,{value:e.model,provider:e.provider,candidates:a,placeholder:o?x(`activity:sddTask.runDefaultPlaceholderModel`,{model:o}):x(`activity:sddTask.runDefaultPlaceholder`),onPick:(t,n)=>f(e.id,t,n),onReset:e.model?()=>f(e.id,void 0,void 0):void 0}),e.fallbackModels&&e.fallbackModels.length>0&&(0,Z.jsx)(`div`,{className:`mt-1 flex flex-wrap gap-1`,children:e.fallbackModels.map(e=>(0,Z.jsxs)(`span`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono text-[9px] text-muted-foreground`,children:[`↳ `,e]},e))})]}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsxs)(`div`,{className:`mb-1 flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground`,children:[x(`activity:sddTask.verificationCmd`),(0,Z.jsxs)(`span`,{className:`font-normal normal-case text-muted-foreground`,children:[`· `,x(`activity:sddTask.gatesCompletion`)]})]}),se?(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,Z.jsx)(`input`,{value:B,onChange:e=>V(e.target.value),onKeyDown:t=>{t.key===`Enter`?(p(e.id,B.trim()||void 0),I(!1)):t.key===`Escape`&&(V(e.verificationCommand??``),I(!1))},placeholder:x(`activity:sddTask.verifyPlaceholder`),className:`w-full rounded border border-border bg-background px-2 py-1 font-mono text-[11px] text-foreground`}),(0,Z.jsxs)(`div`,{className:`flex gap-1`,children:[(0,Z.jsx)(`button`,{type:`button`,onClick:()=>{p(e.id,B.trim()||void 0),I(!1)},className:`rounded bg-primary px-2 py-0.5 text-[10px] text-primary-foreground hover:opacity-90`,children:x(`common:action.save`)}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>{V(e.verificationCommand??``),I(!1)},className:`rounded bg-muted px-2 py-0.5 text-[10px] text-muted-foreground hover:bg-muted/80`,children:x(`common:action.cancel`)})]})]}):e.verificationCommand?(0,Z.jsxs)(`div`,{className:`flex items-center gap-1`,children:[e.verificationState&&(0,Z.jsx)(`span`,{title:e.verificationDetail,className:e.verificationState===`passed`?`rounded bg-success/10 px-1.5 py-0.5 text-[10px] text-success`:`rounded bg-destructive/10 px-1.5 py-0.5 text-[10px] text-destructive`,children:e.verificationState===`passed`?`✓ verified`:`✗ failed`}),(0,Z.jsx)(`code`,{className:`flex-1 truncate rounded bg-muted px-1.5 py-0.5 font-mono text-[10px] text-foreground`,children:e.verificationCommand}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>I(!0),className:`rounded bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground hover:bg-muted/80`,children:x(`common:action.edit`)}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>p(e.id,void 0),className:`rounded bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground hover:bg-muted/80`,children:x(`common:action.clear`)})]}):(0,Z.jsx)(`button`,{type:`button`,onClick:()=>I(!0),className:`rounded border border-dashed border-border px-2 py-1 text-[10px] text-muted-foreground hover:bg-muted`,children:x(`activity:sddTask.addVerify`)})]}),e.description&&(0,Z.jsxs)(`div`,{className:z(i&&`col-span-2`),children:[(0,Z.jsx)(`div`,{className:`mb-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground`,children:x(`activity:sddTask.description`)}),(0,Z.jsx)(`p`,{className:`whitespace-pre-wrap rounded-md bg-muted p-2 text-[11px] leading-relaxed text-foreground`,children:e.description})]}),(0,Z.jsx)(Me,{events:K,expanded:i}),e.deps.length>0&&(0,Z.jsx)(Ne,{title:x(`activity:sddTask.dependsOn`),shortIds:e.deps,byShort:W,onSelectTask:b}),G.length>0&&(0,Z.jsx)(Ne,{title:x(`activity:sddTask.blocks`),shortIds:G.map(e=>e.shortId),byShort:W,onSelectTask:b})]}),(0,Z.jsxs)(`div`,{className:z(`border-t border-border p-2`,i&&`px-5 py-3`),children:[D?(0,Z.jsxs)(`div`,{className:`sdd-rise flex items-center gap-1.5`,children:[(0,Z.jsx)(`input`,{value:k,onChange:e=>A(e.target.value),onKeyDown:e=>{e.key===`Enter`&&H(),e.key===`Escape`&&O(!1)},placeholder:x(`activity:sddTask.newWorkerPlaceholder`),className:`min-w-0 flex-1 rounded-md border border-border/70 bg-background px-2 py-1.5 text-xs outline-none focus:border-primary/60`}),(0,Z.jsx)(`button`,{type:`button`,onClick:H,disabled:!k.trim(),className:`rounded-md bg-primary/10 px-2 py-1.5 text-xs font-medium text-primary hover:bg-primary/15 disabled:opacity-40`,children:(0,Z.jsx)(g,{className:`h-3.5 w-3.5`})}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>O(!1),className:`rounded-md bg-muted px-2 py-1.5 text-xs text-muted-foreground hover:bg-muted`,children:(0,Z.jsx)(m,{className:`h-3.5 w-3.5`})})]}):j?(0,Z.jsxs)(`div`,{className:`sdd-rise flex items-center gap-2`,children:[(0,Z.jsx)(`span`,{className:`flex-1 text-xs text-foreground`,children:x(j===`stop`?`activity:sddTask.confirmStop`:`activity:sddTask.confirmDelete`)}),(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>{j===`stop`?h(e.id):_(e.id),M(null)},className:`inline-flex items-center gap-1 rounded-md bg-destructive/10 px-2.5 py-1.5 text-xs font-medium text-destructive hover:bg-destructive/15`,children:[(0,Z.jsx)(g,{className:`h-3.5 w-3.5`}),` `,x(j===`stop`?`common:action.stop`:`common:action.delete`)]}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>M(null),className:`rounded-md bg-muted px-2 py-1.5 text-xs text-muted-foreground hover:bg-muted`,children:(0,Z.jsx)(m,{className:`h-3.5 w-3.5`})})]}):(0,Z.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>l(e.id),title:x(`activity:sddTask.retryTitle`),className:`inline-flex flex-1 items-center justify-center gap-1 rounded-md bg-warning/12 py-1.5 text-xs font-medium text-warning hover:bg-warning/18`,children:[(0,Z.jsx)(u,{className:`h-3.5 w-3.5`}),` `,x(`common:action.retry`)]}),(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>O(!0),className:`inline-flex flex-1 items-center justify-center gap-1 rounded-md bg-primary/10 py-1.5 text-xs font-medium text-primary hover:bg-primary/15`,children:[(0,Z.jsx)(ee,{className:`h-3.5 w-3.5`}),` `,x(`activity:sddTask.reassign`)]}),T&&(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>M(`stop`),title:x(`activity:sddTask.stopTitle`),className:`inline-flex flex-1 items-center justify-center gap-1 rounded-md bg-destructive/10 py-1.5 text-xs font-medium text-destructive hover:bg-destructive/15`,children:[(0,Z.jsx)(ne,{className:`h-3.5 w-3.5`}),` `,x(`common:action.stop`)]}),!T&&(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>N(!0),title:x(`activity:sddTask.splitTitle`),className:`inline-flex flex-1 items-center justify-center gap-1 rounded-md bg-primary/10 py-1.5 text-xs font-medium text-primary hover:bg-primary/15`,children:[(0,Z.jsx)(w,{className:`h-3.5 w-3.5`}),` `,x(`activity:sddTask.split`)]}),E&&(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>M(`delete`),title:x(`activity:sddTask.deleteTitle`),className:`inline-flex flex-1 items-center justify-center gap-1 rounded-md bg-destructive/10 py-1.5 text-xs font-medium text-destructive hover:bg-destructive/15`,children:[(0,Z.jsx)(v,{className:`h-3.5 w-3.5`}),` `,x(`common:action.delete`)]})]}),ie&&(0,Z.jsxs)(`div`,{className:`mt-2 flex flex-col gap-2`,children:[(0,Z.jsx)(`label`,{className:`text-[11px] text-muted-foreground`,htmlFor:`sdd-split-input`,children:x(`activity:sddTask.splitHint`)}),(0,Z.jsx)(`textarea`,{id:`sdd-split-input`,rows:3,value:ae,onChange:e=>P(e.target.value),placeholder:x(`activity:sddTask.splitPlaceholder`),className:`w-full resize-y rounded-md border border-border/70 bg-background px-2 py-1.5 text-xs text-foreground focus:outline-none focus:ring-1 focus:ring-ring`}),(0,Z.jsxs)(`div`,{className:`flex gap-2`,children:[(0,Z.jsxs)(`button`,{type:`button`,onClick:U,className:`inline-flex flex-1 items-center justify-center gap-1 rounded-md bg-primary/10 py-1.5 text-xs font-medium text-primary hover:bg-primary/15`,children:[(0,Z.jsx)(w,{className:`h-3.5 w-3.5`}),` `,x(`activity:sddTask.splitInto`)]}),(0,Z.jsx)(`button`,{type:`button`,onClick:()=>{N(!1),P(``)},className:`rounded-md bg-muted px-2 py-1.5 text-xs text-muted-foreground hover:bg-muted`,children:(0,Z.jsx)(m,{className:`h-3.5 w-3.5`})})]})]})]})]})}function Me({events:e,expanded:t}){let{t:n}=R();return(0,Z.jsxs)(`section`,{className:z(`rounded-lg border border-border/70 bg-background/45`,t&&`col-span-2`),children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2 border-b border-border/60 px-3 py-2.5`,children:[(0,Z.jsx)(k,{className:`h-4 w-4 text-primary`}),(0,Z.jsx)(`h4`,{className:`text-xs font-semibold text-foreground`,children:n(`activity:sddTask.eventLog`)}),(0,Z.jsx)(`span`,{className:`rounded-full bg-muted px-2 py-0.5 text-[10px] text-muted-foreground`,children:e.length}),(0,Z.jsx)(`span`,{className:`ml-auto text-[10px] text-muted-foreground`,children:n(`activity:sddTask.newestFirst`)})]}),e.length===0?(0,Z.jsx)(`p`,{className:`px-3 py-5 text-center text-[11px] text-muted-foreground`,children:n(`activity:sddTask.noEvents`)}):(0,Z.jsx)(`div`,{className:z(`divide-y divide-border/45 overflow-auto`,t?`max-h-[32rem]`:`max-h-72`),children:e.map((e,t)=>{let n=e.kind===`file`,r=e.kind===`tool`,i=e.ok===!1||e.kind===`failed`||e.kind===`verification_failed`,a=n?x:r?P:k;return(0,Z.jsxs)(`div`,{className:z(`grid grid-cols-[4.75rem_1rem_minmax(0,1fr)] gap-2 px-3 py-2.5 text-[11px]`,i&&`bg-destructive/[0.035]`),children:[(0,Z.jsx)(`time`,{dateTime:new Date(e.ts).toISOString(),className:`font-mono text-[10px] text-muted-foreground`,title:new Date(e.ts).toLocaleString(),children:new Date(e.ts).toLocaleTimeString([],{hour:`2-digit`,minute:`2-digit`,second:`2-digit`})}),(0,Z.jsx)(a,{className:z(`mt-0.5 h-3.5 w-3.5`,i?`text-destructive`:n?`text-info`:r?`text-warning`:`text-primary`)}),(0,Z.jsxs)(`div`,{className:`min-w-0`,children:[(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[e.action&&(0,Z.jsx)(`span`,{className:`rounded bg-muted px-1.5 py-0.5 font-mono text-[10px] font-medium text-foreground`,children:e.action}),e.agentName&&(0,Z.jsx)(`span`,{className:`text-[10px] text-muted-foreground`,children:e.agentName}),e.durationMs!==void 0&&(0,Z.jsx)(`span`,{className:`text-[10px] text-muted-foreground`,children:e.durationMs<1e3?`${Math.round(e.durationMs)}ms`:`${(e.durationMs/1e3).toFixed(1)}s`})]}),e.filePath?(0,Z.jsx)(`code`,{className:`mt-1 block break-all font-mono text-[10px] leading-relaxed text-foreground`,children:e.filePath}):e.detail?(0,Z.jsx)(`code`,{className:`mt-1 block break-words font-mono text-[10px] leading-relaxed text-muted-foreground`,children:e.detail}):(0,Z.jsx)(`p`,{className:`mt-1 break-words leading-relaxed text-foreground`,children:e.text})]})]},`${e.ts}-${e.kind}-${t}`)})})]})}function $({label:e,children:t,full:n}){return(0,Z.jsxs)(`div`,{className:z(`rounded-md border border-border bg-muted/50 px-2 py-1`,n&&`col-span-2`),children:[(0,Z.jsx)(`div`,{className:`text-[9px] uppercase tracking-wide text-muted-foreground`,children:e}),(0,Z.jsx)(`div`,{className:`text-foreground`,children:t})]})}function Ne({title:e,shortIds:t,byShort:n,onSelectTask:r}){return(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`div`,{className:`mb-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground`,children:e}),(0,Z.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:t.map(e=>{let t=n.get(e);return(0,Z.jsxs)(`button`,{type:`button`,disabled:!t,onClick:()=>t&&r(t.id),className:`flex items-center gap-1 rounded-full border border-border bg-muted px-2 py-0.5 text-[10px] text-foreground hover:bg-muted disabled:opacity-50`,title:t?.title,children:[(0,Z.jsx)(`span`,{className:z(`h-1.5 w-1.5 rounded-full`,be(t?.displayStatus??`pending`).dot)}),(0,Z.jsx)(`span`,{className:`font-mono`,children:e})]},e)})})]})}function Pe({onClose:e}){let{t}=R(),{client:n}=fe(),r=G(e=>e.snapshot),a=G(e=>e.lifecycleResult),o=G(e=>e.destroying),s=G(e=>e.setDestroying),c=G(e=>e.setLifecycleResult),[l,f]=(0,X.useState)(()=>Date.now()),[p,h]=(0,X.useState)(null),[g,y]=(0,X.useState)(!1),[b,x]=(0,X.useState)(`graph`),[ee,C]=(0,X.useState)(!1);(0,X.useEffect)(()=>{n?.send?.({type:`sdd.board.get`})},[n]);let w=r&&(r.status===`running`||r.status===`paused`);(0,X.useEffect)(()=>{if(!w)return;let e=setInterval(()=>f(Date.now()),1e3);return f(Date.now()),()=>clearInterval(e)},[w]);let T=(0,X.useCallback)(e=>n?.send?.(e),[n]),E=(0,X.useRef)(null),D=(0,X.useCallback)(e=>{E.current=null,T({type:`sdd.board.destroy`,payload:{revertMerged:e}})},[T]),re=(0,X.useCallback)(e=>{C(!1),c(null),s(!0),w?(T({type:`sdd.board.stop`,payload:{}}),E.current={revertMerged:e,deadline:Date.now()+5e3}):D(e)},[w,T,D,s,c]);(0,X.useEffect)(()=>{let e=E.current;if(!e)return;if(!w||Date.now()>=e.deadline){D(e.revertMerged);return}let t=setTimeout(()=>{let e=E.current;e&&D(e.revertMerged)},Math.max(0,e.deadline-Date.now()));return()=>clearTimeout(t)},[w,r,D]);let O=(0,X.useCallback)(()=>{c(null),T({type:`sdd.board.cleanup_worktrees`,payload:{}})},[T,c]),A=(0,X.useCallback)(()=>{c(null),T({type:`sdd.board.rollback`,payload:{}})},[T,c]),j=(0,X.useMemo)(()=>(r?.tasks??[]).map(e=>({id:e.id,shortId:e.shortId,title:e.title,displayStatus:e.displayStatus,priority:e.priority,deps:e.deps,agentName:e.agentName,worktreeBranch:e.worktreeBranch})),[r?.tasks]),ie=(0,X.useMemo)(()=>{let e=new Map;for(let t of r?.tasks??[])t.displayStatus===`in_progress`&&t.agentName&&e.set(t.agentName,{name:t.agentName,task:t.title});return[...e.values()]},[r?.tasks]),N=(0,X.useCallback)(e=>h(e),[]),oe=(0,X.useCallback)(()=>{h(null),y(!1)},[]),P=(0,X.useCallback)(e=>T({type:`sdd.board.retry`,payload:{taskId:e}}),[T]),F=(0,X.useCallback)(()=>T({type:`sdd.board.retry_all_failed`,payload:{}}),[T]),se=(0,X.useCallback)((e,t)=>{let n=t.trim();n&&T({type:`sdd.board.reassign`,payload:{taskId:e,agentName:n}})},[T]),I=(0,X.useCallback)((e,t,n)=>T({type:`sdd.board.set_task_model`,payload:{taskId:e,model:t,provider:n}}),[T]),L=(0,X.useCallback)((e,t)=>T({type:`sdd.board.set_task_verification`,payload:{taskId:e,verificationCommand:t}}),[T]),B=(0,X.useCallback)(e=>T({type:`sdd.board.cancel_task`,payload:{taskId:e}}),[T]),V=(0,X.useCallback)(e=>{T({type:`sdd.board.delete_task`,payload:{taskId:e}}),h(null),y(!1)},[T]),U=(0,X.useCallback)((e,t)=>{T({type:`sdd.board.split_task`,payload:{taskId:e,subtasks:t}}),h(null),y(!1)},[T]),K=he(p!==null),q=(0,X.useMemo)(()=>r?.tasks.find(e=>e.id===p)??null,[r?.tasks,p]),J=r?.progress,ce=r?.diagnostics?.deadlockChains??[];return(0,Z.jsxs)(`div`,{className:`flex h-full min-h-0 min-w-0 flex-col bg-background`,children:[(0,Z.jsxs)(`header`,{className:`sdd-sheen shrink-0 border-b border-border px-4 pb-3 pt-2.5`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(k,{className:`h-5 w-5 text-warning`}),(0,Z.jsx)(`h1`,{className:`text-lg font-semibold text-foreground`,children:r?.title??t(`activity:sddBoard.titleFallback`)}),r&&(0,Z.jsx)(`span`,{className:z(`rounded-full border px-2 py-0.5 text-[11px] font-medium capitalize`,ye[r.status]??ye.idle),children:r.status}),r?.defaultModel&&(0,Z.jsxs)(`span`,{className:`flex items-center gap-1 rounded-full border border-border bg-muted px-2 py-0.5 text-[10px] text-muted-foreground`,title:t(`activity:sddBoard.defaultModelTitle`),children:[(0,Z.jsx)(_,{className:`h-3 w-3 text-primary`}),r.defaultModel]})]}),(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[r&&(0,Z.jsxs)(`button`,{type:`button`,title:t(`activity:sddBoardView.openTheMirroredKanbanBoardSForThisRunOnePerDependencyWave`),onClick:()=>{let e=`run:${r.runId}`,t=W.getState().boards.filter(t=>t.tags?.includes(e)),i=t.find(e=>e.tags?.includes(`phase:wave-0`))??t[0];i&&(W.getState().setActiveBoardId(i.id),n?.send?.({type:`kanban.get`,payload:{boardId:i.id}})),H.getState().setCurrentView(`kanban`)},className:`inline-flex items-center gap-1 rounded-md border border-border px-2.5 py-1 text-xs font-medium text-muted-foreground hover:bg-muted`,children:[(0,Z.jsx)(k,{className:`h-3.5 w-3.5`}),` Kanban`]}),r&&(0,Z.jsx)(`div`,{className:`flex items-center rounded-md border border-border bg-muted p-0.5 text-[11px]`,children:[`graph`,`kanban`].map(e=>(0,Z.jsx)(`button`,{type:`button`,onClick:()=>x(e),className:z(`rounded px-2 py-0.5 capitalize transition`,b===e?`bg-primary/12 text-primary`:`text-muted-foreground hover:text-foreground`),children:t(e===`graph`?`activity:sddBoard.graphLabel`:`activity:sddBoard.kanbanLabel`)},e))}),w&&(J?.failed??0)>0&&(0,Z.jsxs)(`button`,{type:`button`,onClick:F,title:t(`activity:sddBoard.retryAllTitle`),className:`inline-flex items-center gap-1 rounded-md bg-warning/15 px-2.5 py-1 text-xs font-medium text-warning hover:bg-warning/25`,children:[(0,Z.jsx)(u,{className:`h-3.5 w-3.5`}),` `,t(`activity:sddBoard.retryFailed`,{count:J?.failed??0})]}),w&&(0,Z.jsxs)(Z.Fragment,{children:[r?.status===`paused`?(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>T({type:`sdd.board.resume`,payload:{}}),className:`inline-flex items-center gap-1 rounded-md bg-success/15 px-2.5 py-1 text-xs font-medium text-success hover:bg-success/25`,children:[(0,Z.jsx)(d,{className:`h-3.5 w-3.5`}),` `,t(`activity:sddBoard.resume`)]}):(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>T({type:`sdd.board.pause`,payload:{}}),className:`inline-flex items-center gap-1 rounded-md bg-warning/15 px-2.5 py-1 text-xs font-medium text-warning hover:bg-warning/25`,children:[(0,Z.jsx)(i,{className:`h-3.5 w-3.5`}),` `,t(`activity:sddBoard.pause`)]}),(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>T({type:`sdd.board.stop`,payload:{}}),className:`inline-flex items-center gap-1 rounded-md bg-destructive/15 px-2.5 py-1 text-xs font-medium text-destructive hover:bg-destructive/25`,children:[(0,Z.jsx)(ne,{className:`h-3.5 w-3.5`}),` `,t(`activity:sddBoard.stop`)]})]}),r&&!w&&(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)(`button`,{type:`button`,onClick:O,title:t(`activity:sddBoard.cleanTitle`),className:`inline-flex items-center gap-1 rounded-md bg-muted px-2.5 py-1 text-xs font-medium text-muted-foreground hover:bg-muted/80`,children:[(0,Z.jsx)(S,{className:`h-3.5 w-3.5`}),` `,t(`activity:sddBoard.cleanWorktrees`)]}),(r.mergedCommits?.length??0)>0&&(0,Z.jsxs)(`button`,{type:`button`,onClick:A,title:t(`activity:sddBoard.rollbackTitle`,{count:r.mergedCommits?.length??0,base:r.baseBranch??t(`activity:sdd.baseBranchFallback`)}),className:`inline-flex items-center gap-1 rounded-md bg-warning/15 px-2.5 py-1 text-xs font-medium text-warning hover:bg-warning/25`,children:[(0,Z.jsx)(ae,{className:`h-3.5 w-3.5`}),` `,t(`activity:sddBoard.rollback`,{count:r.mergedCommits?.length??0})]})]}),r&&(o?(0,Z.jsxs)(`span`,{className:`inline-flex items-center gap-1 rounded-md bg-destructive/15 px-2.5 py-1 text-xs font-medium text-destructive`,children:[(0,Z.jsx)(u,{className:`h-3.5 w-3.5 animate-spin`}),` `,t(w?`activity:sddBoard.stopping`:`activity:sddBoard.destroying`)]}):(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>C(!0),title:t(`activity:sddBoard.destroyTitle`),className:`inline-flex items-center gap-1 rounded-md bg-destructive px-2.5 py-1 text-xs font-medium text-destructive-foreground hover:bg-destructive/90`,children:[(0,Z.jsx)(v,{className:`h-3.5 w-3.5`}),` `,t(`activity:sddBoard.destroy`)]})),(0,Z.jsx)(Y,{variant:`ghost`,size:`icon`,onClick:e,children:(0,Z.jsx)(m,{className:`h-4 w-4`})})]})]}),r&&J&&(0,Z.jsxs)(`div`,{className:`mt-2.5 flex items-center gap-5`,children:[(0,Z.jsx)(Ee,{pct:J.percentComplete}),(0,Z.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-3 text-xs`,children:[(0,Z.jsx)(Le,{label:t(`activity:sddBoard.statDone`),value:`${J.completed}/${J.total}`,color:`text-success`}),J.inProgress>0&&(0,Z.jsx)(Le,{label:t(`activity:sddBoard.statRunning`),value:J.inProgress,color:`text-warning`}),J.failed>0&&(0,Z.jsx)(Le,{label:t(`activity:sddBoard.statFailed`),value:J.failed,color:`text-destructive`}),(0,Z.jsx)(Le,{label:t(`activity:sddBoard.statWave`),value:r.wave+1,color:`text-primary`}),w&&r.startedAt>0&&(0,Z.jsx)(Le,{label:t(`activity:sddBoard.statElapsed`),value:we(l-r.startedAt),color:`text-foreground`})]}),(0,Z.jsx)(`div`,{className:`flex min-h-[24px] items-center gap-1.5`,children:ie.length===0?(0,Z.jsx)(`span`,{className:`text-[11px] text-muted-foreground`,children:t(`activity:sddBoard.noActiveWorkers`)}):ie.map((e,t)=>(0,Z.jsxs)(`span`,{title:`${e.name} → ${e.task}`,className:`flex items-center gap-1 rounded-full bg-muted py-0.5 pl-0.5 pr-2`,children:[(0,Z.jsx)(`span`,{className:z(`sdd-agent-live flex h-5 w-5 items-center justify-center rounded-full text-[9px] font-bold text-white`,xe[t%xe.length]),children:_e(e.name)}),(0,Z.jsx)(`span`,{className:`max-w-[90px] truncate text-[11px] text-foreground`,children:e.name})]},e.name))})]})]})]}),a&&(0,Z.jsx)(Ie,{result:a,onDismiss:()=>c(null)}),ce.length>0&&(0,Z.jsxs)(`div`,{className:`flex items-start gap-2 border-b border-destructive/30 bg-destructive/5 px-4 py-2 text-xs text-destructive`,children:[(0,Z.jsx)(te,{className:`mt-0.5 h-4 w-4 shrink-0`}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`div`,{className:`font-semibold`,children:t(`activity:sddBoard.deadlock`)}),ce.map(e=>(0,Z.jsxs)(`div`,{className:`font-mono`,children:[e.blocked,` ← `,e.blockedBy.join(`, `)]},e.blocked))]})]}),(0,Z.jsxs)(`div`,{className:`flex min-h-0 min-w-0 flex-1`,children:[(0,Z.jsx)(`div`,{className:`relative min-h-0 min-w-0 flex-1 overflow-hidden`,children:r?b===`graph`?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(Te,{tasks:j,columns:r.columns,onTaskClick:N}),(0,Z.jsx)(`div`,{className:`pointer-events-none absolute bottom-2 left-1/2 -translate-x-1/2 rounded-full bg-black/40 px-2 py-0.5 text-[10px] text-muted-foreground backdrop-blur`,children:t(`activity:sddBoard.clickTaskHint`)})]}):(0,Z.jsx)(Q,{tasks:r.tasks,selectedId:p,onTaskClick:N}):(0,Z.jsxs)(`div`,{className:`flex h-full flex-col items-center justify-center gap-3 text-sm text-muted-foreground`,children:[(0,Z.jsx)(M,{className:`h-10 w-10 text-primary/40`}),(0,Z.jsx)(`p`,{className:`text-foreground`,children:t(`activity:sddBoard.noRunTitle`)}),(0,Z.jsx)(`p`,{className:`max-w-sm text-center text-xs text-muted-foreground`,children:t(`activity:sddBoard.noRunBody`)})]})}),r&&(0,Z.jsx)(`aside`,{"data-testid":`sdd-task-panel`,"data-expanded":g&&q?`true`:`false`,className:z(`shrink-0 border-l border-border bg-card transition-[width] duration-200 ease-out`,g&&q?`w-[min(72rem,72vw)]`:`w-80`),children:q?(0,Z.jsx)(je,{task:q,allTasks:r.tasks,feed:r.taskEvents?.[q.id]??r.feed??[],now:l,expanded:g,modelCandidates:K,defaultModel:r.defaultModel,onClose:oe,onToggleExpanded:()=>y(e=>!e),onRetry:P,onReassign:se,onSetModel:I,onSetVerification:L,onCancel:B,onDelete:V,onSplit:U,onSelectTask:h},q.id):(0,Z.jsx)(De,{feed:r.feed??[],now:l})})]}),(0,Z.jsx)(Oe,{open:ee,onOpenChange:C,snapshot:r,busy:o,onConfirm:re})]})}function Fe(e){let t=e.op===`cleanup_worktrees`?`lcClean`:e.op===`rollback`?`lcRollback`:`lcDestroy`,n=I.t(`activity:sddBoard.${t}`);if(!e.ok)return I.t(`activity:sddBoard.lcFailed`,{op:n,reason:e.reason??I.t(`activity:sddBoard.lcUnknownError`)});let r=[];typeof e.removed==`number`&&r.push(I.t(`activity:sddBoard.lcWorktrees`,{count:e.removed})),typeof e.reverted==`number`&&e.reverted>0&&r.push(I.t(`activity:sddBoard.lcCommits`,{count:e.reverted})),e.deleted?.length&&r.push(I.t(`activity:sddBoard.lcDeleted`,{items:e.deleted.join(`, `)}));let i=r.length?r.join(` · `):I.t(`activity:sddBoard.lcNothing`);return e.reason?I.t(`activity:sddBoard.lcNote`,{op:n,body:i,reason:e.reason}):I.t(`activity:sddBoard.lcOk`,{op:n,body:i})}function Ie({result:e,onDismiss:t}){let n=!e.ok||!!e.reason;return(0,Z.jsxs)(`div`,{className:z(`flex items-start gap-2 border-b px-4 py-2 text-xs`,n?`border-warning/30 bg-warning/5 text-warning`:`border-success/30 bg-success/5 text-success`),children:[n?(0,Z.jsx)(D,{className:`mt-0.5 h-4 w-4 shrink-0`}):(0,Z.jsx)(b,{className:`mt-0.5 h-4 w-4 shrink-0`}),(0,Z.jsx)(`span`,{className:`flex-1`,children:Fe(e)}),(0,Z.jsx)(`button`,{type:`button`,onClick:t,className:`shrink-0 opacity-60 hover:opacity-100`,children:(0,Z.jsx)(m,{className:`h-3.5 w-3.5`})})]})}function Le({label:e,value:t,color:n}){return(0,Z.jsxs)(`span`,{className:`flex items-baseline gap-1`,children:[(0,Z.jsx)(`span`,{className:z(`font-semibold tabular-nums`,n),children:t}),(0,Z.jsx)(`span`,{className:`text-[10px] uppercase tracking-wide text-muted-foreground`,children:e})]})}var Re={idle:`phaseStart`,questioning:`phaseInterview`,spec_review:`phaseSpecReview`,implementation:`phasePlanning`,task_review:`phaseTaskReview`,executing:`phaseRunning`,done:`phaseDone`},ze=[`questioning`,`spec_review`,`implementation`,`task_review`,`executing`];function Be({onClose:e,onRunStarted:t}){let{t:n}=R(),{client:r}=fe(),i=U(e=>e.snapshot),s=U(e=>e.agentText),c=U(e=>e.error),l=U(e=>e.startedRunId),d=U(e=>e.setStartedRunId),[f,_]=(0,X.useState)(``),[v,b]=(0,X.useState)(``),[x,S]=(0,X.useState)(!1),[ee,te]=(0,X.useState)(!0),[C,ne]=(0,X.useState)(!0),[w,T]=(0,X.useState)(!1),[D,re]=(0,X.useState)(void 0),[O,k]=(0,X.useState)(void 0),[j,ae]=(0,X.useState)([]),[oe,P]=(0,X.useState)(4),[F,I]=(0,X.useState)(!0),[L,B]=(0,X.useState)(!1),V=he(w),H=(0,X.useCallback)(e=>r?.send?.(e),[r]),W=(0,X.useRef)(null);(0,X.useEffect)(()=>{H({type:`sdd.spec.get`})},[H]);let G=i?.answers.length??0;(0,X.useEffect)(()=>{W.current?.scrollIntoView({behavior:`smooth`,block:`end`})},[G,s]),(0,X.useEffect)(()=>{l&&(d(null),t?.())},[t,d,l]);let K=i?.busy??!1,q=i?.phase??`idle`,J=!!i?.sessionId,ce=!!i?.resumed,le=i?.lastRunId;(0,X.useEffect)(()=>{J&&S(!1)},[J]);let ue=i?.answers[i.answers.length-1]?.question??``,de=!!i&&(i.taskCount>0||!!i.graphId||q===`task_review`||q===`executing`),_e=()=>{let e=f.trim();!e||K||x||(S(!0),H({type:`sdd.spec.start`,payload:{goal:e}}))},ye=()=>{let e=v.trim();e&&!K&&(H({type:`sdd.spec.message`,payload:{text:e}}),b(``))},be=e=>{!K&&e.trim()&&(H({type:`sdd.spec.message`,payload:{text:e.trim()}}),b(``))},xe=()=>!K&&H({type:`sdd.spec.approve`,payload:{}}),Se=e=>!K&&H({type:`sdd.spec.rewind`,payload:e?{targetPhase:e}:{}}),Ce=()=>{H({type:`sdd.run.start`,payload:{parallelSlots:oe,worktrees:F,planDecompose:L,...D?{model:D,provider:O}:{},...j.length?{fallbackModels:j}:{}}}),T(!1)},we=()=>{K||H({type:`sdd.spec.discard`,payload:{}})},Ee=(0,X.useMemo)(()=>(i?.board?.tasks??[]).map(e=>({id:e.id,shortId:e.shortId,title:e.title,displayStatus:e.displayStatus,priority:e.priority,deps:e.deps,agentName:e.agentName,worktreeBranch:e.worktreeBranch,retries:e.retries})),[i?.board]),De=Ee.length>0,Oe=s&&q===`questioning`?s:ue??``,ke=(0,X.useMemo)(()=>He(Oe),[Oe]),Q=i?.answers.length??0,Ae=i?.minQuestions??2,je=i?.maxQuestions??5,Me=Q>=Ae,$=Math.min(100,Math.round(Q/Math.max(1,je)*100));return(0,Z.jsxs)(`div`,{className:`flex h-full min-h-0 min-w-0 flex-col bg-background`,children:[(0,Z.jsxs)(`header`,{className:`sdd-sheen flex shrink-0 items-center justify-between border-b border-border px-4 py-2`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(E,{className:`h-5 w-5 text-primary`}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`h1`,{className:`text-lg font-semibold`,children:i?.title||n(`activity:sddWizard.titleFallback`)}),J&&(0,Z.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[n(`activity:sddWizard.${Re[q]??`phaseStart`}`),q===`questioning`&&` · ${n(`activity:sddWizard.questionsSuffix`,{cur:i?.questionCount??0,max:i?.maxQuestions??0})}`,i&&i.taskCount>0?` · ${n(`activity:sddWizard.tasksSuffix`,{count:i.taskCount})}`:``]})]}),K&&(0,Z.jsx)(p,{className:`h-4 w-4 animate-spin text-muted-foreground`})]}),(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[le&&(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>t?.(),className:`inline-flex items-center gap-1 rounded-md border border-border px-2 py-1 text-xs font-medium text-muted-foreground hover:bg-muted`,children:[(0,Z.jsx)(y,{className:`h-3.5 w-3.5`}),` `,n(`activity:sddWizard.openLiveBoard`)]}),J&&(0,Z.jsx)(`button`,{type:`button`,onClick:we,disabled:K,title:n(`activity:sddWizard.discardTitle`),className:`inline-flex items-center gap-1 rounded-md border border-border px-2 py-1 text-xs font-medium text-muted-foreground hover:bg-destructive/10 hover:text-destructive disabled:opacity-50`,children:n(`activity:sddWizard.discardInterview`)}),de&&(0,Z.jsxs)(`div`,{className:`relative flex items-center gap-1.5`,children:[(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>T(e=>!e),title:n(`activity:sddWizard.runCfgTitle`),className:z(`inline-flex items-center gap-1 rounded-md border px-2 py-1 text-xs font-medium`,D||j.length||L?`border-primary/40 bg-primary/10 text-primary`:`border-border bg-muted text-muted-foreground hover:text-foreground`),children:[(0,Z.jsx)(N,{className:`h-3.5 w-3.5`}),D||n(`activity:sddWizard.modelsLabel`)]}),(0,Z.jsxs)(`button`,{type:`button`,onClick:Ce,className:`inline-flex items-center gap-1 rounded-md bg-success/15 px-2.5 py-1 text-xs font-medium text-success hover:bg-success/25`,children:[(0,Z.jsx)(y,{className:`h-3.5 w-3.5`}),` `,n(`activity:sddWizard.startRun`)]}),w&&(0,Z.jsxs)(`div`,{className:`sdd-rise absolute right-0 top-9 z-50 w-72 rounded-lg border border-border bg-popover p-3 shadow-xl`,children:[(0,Z.jsx)(`div`,{className:`mb-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground`,children:n(`activity:sddWizard.defaultWorkerModel`)}),(0,Z.jsx)(pe,{value:D,provider:O,candidates:V,placeholder:n(`activity:sddWizard.leaderDefaultPlaceholder`),resetLabel:n(`activity:sddWizard.useSessionDefault`),onPick:(e,t)=>{re(e),k(t)},onReset:D?()=>{re(void 0),k(void 0)}:void 0}),(0,Z.jsx)(`div`,{className:`mb-1 mt-3 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground`,children:n(`activity:sddWizard.fallbackChain`)}),(0,Z.jsx)(me,{value:j,candidates:V,onChange:ae}),(0,Z.jsx)(`p`,{className:`mt-2 text-[10px] text-muted-foreground`,children:n(`activity:sddWizard.appliesToAll`)}),(0,Z.jsxs)(`div`,{className:`mt-3 flex items-center justify-between gap-2`,children:[(0,Z.jsx)(`label`,{htmlFor:`sdd-slots`,className:`text-[10px] font-semibold uppercase tracking-wide text-muted-foreground`,children:n(`activity:sddWizard.parallelAgents`)}),(0,Z.jsx)(`input`,{id:`sdd-slots`,type:`number`,min:1,max:16,value:oe,onChange:e=>{let t=Number.parseInt(e.target.value,10);P(Number.isFinite(t)?Math.min(16,Math.max(1,t)):1)},className:`w-16 rounded-md border border-border bg-background px-2 py-1 text-right text-xs outline-none focus:border-primary`})]}),(0,Z.jsxs)(`label`,{className:`mt-2 flex cursor-pointer items-center justify-between gap-2`,children:[(0,Z.jsx)(`span`,{className:`text-[10px] font-semibold uppercase tracking-wide text-muted-foreground`,children:n(`activity:sddWizard.isolateWorktrees`)}),(0,Z.jsx)(`input`,{type:`checkbox`,checked:F,onChange:e=>I(e.target.checked),className:`h-3.5 w-3.5 accent-primary`})]}),(0,Z.jsx)(`p`,{className:`mt-1 text-[10px] text-muted-foreground`,children:n(F?`activity:sddWizard.worktreeOn`:`activity:sddWizard.worktreeOff`)}),(0,Z.jsxs)(`label`,{className:`mt-2 flex cursor-pointer items-center justify-between gap-2`,children:[(0,Z.jsx)(`span`,{className:`text-[10px] font-semibold uppercase tracking-wide text-muted-foreground`,children:n(`activity:sddWizard.planDecompose`)}),(0,Z.jsx)(`input`,{type:`checkbox`,checked:L,onChange:e=>B(e.target.checked),className:`h-3.5 w-3.5 accent-primary`})]}),(0,Z.jsx)(`p`,{className:`mt-1 text-[10px] text-muted-foreground`,children:n(L?`activity:sddWizard.planDecomposeOn`:`activity:sddWizard.planDecomposeOff`)})]})]}),(0,Z.jsx)(Y,{variant:`ghost`,size:`icon`,onClick:e,children:(0,Z.jsx)(m,{className:`h-4 w-4`})})]})]}),J&&(0,Z.jsx)(`div`,{className:`flex shrink-0 items-center gap-1 border-b bg-card/50 px-4 py-1.5 text-[11px]`,children:ze.map((e,t)=>{let r=e===q,i=ze.indexOf(q)>t;return(0,Z.jsxs)(`span`,{className:`flex items-center gap-1`,children:[i&&!K&&q!==`executing`&&q!==`done`?(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>Se(e),title:n(`activity:sddWizard.rewindToPhaseTitle`,`Return to this phase to revise`),className:`inline-flex items-center rounded-full px-2 py-0.5 text-success transition hover:bg-success/10 hover:underline`,children:[(0,Z.jsx)(g,{className:`mr-0.5 inline h-3 w-3`}),n(`activity:sddWizard.${Re[e]}`)]}):(0,Z.jsxs)(`span`,{className:z(`rounded-full px-2 py-0.5`,r?`bg-primary/15 text-primary font-medium`:i?`text-success`:`text-muted-foreground`),children:[i&&(0,Z.jsx)(g,{className:`mr-0.5 inline h-3 w-3`}),n(`activity:sddWizard.${Re[e]}`)]}),t<ze.length-1&&(0,Z.jsx)(`span`,{className:`text-muted-foreground/65`,children:`→`})]},e)})}),(0,Z.jsxs)(`div`,{ref:ge(`sdd-wizard`),className:`min-h-0 flex-1 overflow-auto overscroll-contain p-4`,children:[c&&(0,Z.jsx)(`div`,{className:`mb-3 rounded-md border border-destructive/40 bg-destructive/5 p-2 text-xs text-destructive`,children:c}),ce&&J&&(0,Z.jsx)(`div`,{className:`mb-3 rounded-md border border-primary/30 bg-primary/5 px-3 py-2 text-xs text-primary`,children:n(`activity:sddWizard.resumeBanner`)}),J?(0,Z.jsxs)(`div`,{className:`space-y-4`,children:[q===`questioning`&&(0,Z.jsxs)(`div`,{className:`rounded-md border border-border/80 bg-card/60 p-2.5 shadow-sm`,children:[(0,Z.jsxs)(`div`,{className:`mb-1.5 flex items-center justify-between text-xs`,children:[(0,Z.jsxs)(`span`,{className:`flex items-center gap-1.5 font-medium text-foreground`,children:[(0,Z.jsx)(E,{className:`h-3.5 w-3.5 text-primary`}),n(`activity:sddWizard.interviewProgress`,`Interview Progress`)]}),(0,Z.jsxs)(`span`,{className:`text-[11px] text-muted-foreground`,children:[n(`activity:sddWizard.questionOf`,{current:Q+1,max:je}),` · `,Me?(0,Z.jsx)(`span`,{className:`font-medium text-success`,children:n(`activity:sddWizard.minRequiredMet`,`Min met ✓`)}):(0,Z.jsx)(`span`,{children:n(`activity:sddWizard.minRequiredRemaining`,{count:Ae-Q})})]})]}),(0,Z.jsx)(`div`,{className:`h-1.5 w-full overflow-hidden rounded-full bg-muted`,children:(0,Z.jsx)(`div`,{className:z(`h-full transition-all duration-500`,Me?`bg-success`:`bg-primary`),style:{width:`${Math.max(12,$)}%`}})})]}),De&&(0,Z.jsxs)(`div`,{className:`sdd-rise overflow-hidden rounded-lg border border-primary/20 bg-[hsl(var(--surface-2)/0.85)]`,children:[(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>te(e=>!e),className:`flex w-full items-center gap-1.5 border-b border-border/60 px-3 py-1.5 text-[11px] font-medium text-primary hover:bg-muted/40`,children:[ee?(0,Z.jsx)(h,{className:`h-3.5 w-3.5`}):(0,Z.jsx)(A,{className:`h-3.5 w-3.5`}),(0,Z.jsx)(se,{className:`h-3.5 w-3.5`}),n(`activity:sddWizard.taskGraphSummary`,{count:i?.taskCount??0}),(0,Z.jsx)(`span`,{className:`ml-auto text-muted-foreground`,children:n(ee?`activity:sddWizard.dragToExplore`:`activity:sddWizard.show`)})]}),ee&&(0,Z.jsx)(`div`,{className:`h-[32dvh] min-h-[200px]`,children:(0,Z.jsx)(Te,{tasks:Ee,columns:i?.board?.columns??[]})})]}),i?.goal&&(0,Z.jsxs)(`div`,{className:`rounded-md border border-border bg-muted/30 px-3 py-2`,children:[(0,Z.jsxs)(`div`,{className:`mb-1 flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground`,children:[(0,Z.jsx)(ie,{className:`h-3 w-3`}),` `,n(`activity:sddWizard.goalLabel`)]}),(0,Z.jsx)(`p`,{className:`whitespace-pre-wrap text-sm leading-relaxed text-foreground/90`,children:i.goal})]}),i?.answers.length||s&&q===`questioning`||K?(0,Z.jsxs)(`div`,{className:`space-y-2.5`,children:[i?.answers.map((e,t)=>(0,Z.jsxs)(`div`,{className:`space-y-2.5`,children:[(0,Z.jsx)(We,{speaker:`assistant`,text:e.question,questionIndex:t+1}),(0,Z.jsx)(We,{speaker:`user`,text:e.answer})]},`${t}-${e.question.slice(0,32)}`)),s&&q===`questioning`&&s!==ue&&(0,Z.jsx)(We,{speaker:`assistant`,text:s,live:!0,questionIndex:Q+1}),K&&(0,Z.jsx)(We,{speaker:`assistant`,text:``,thinking:!0})]}):null,i?.spec&&(0,Z.jsxs)(`div`,{className:`sdd-rise rounded-md border border-border bg-card p-3`,children:[(0,Z.jsxs)(`div`,{className:`mb-1 flex items-center gap-1.5 text-sm font-semibold`,children:[(0,Z.jsx)(E,{className:`h-3.5 w-3.5 text-primary`}),i.spec.title]}),(0,Z.jsx)(`p`,{className:`mb-2 text-xs text-muted-foreground`,children:i.spec.overview}),(0,Z.jsx)(`ul`,{className:`space-y-0.5 text-xs`,children:i.spec.requirements.map((e,t)=>(0,Z.jsxs)(`li`,{className:`flex gap-1.5`,children:[(0,Z.jsx)(`span`,{className:z(`shrink-0 font-mono uppercase`,ve(e.priority).text),children:e.priority[0]}),(0,Z.jsx)(`span`,{children:e.description})]},`${e.priority}-${t}-${e.description.slice(0,24)}`))})]}),s&&(q===`implementation`||q===`task_review`)&&(0,Z.jsxs)(`div`,{className:`sdd-rise rounded-md border border-border bg-card`,children:[(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>ne(e=>!e),className:`flex w-full items-center gap-1.5 border-b border-border/60 px-3 py-2 text-sm font-semibold hover:bg-muted/40`,children:[C?(0,Z.jsx)(h,{className:`h-3.5 w-3.5`}):(0,Z.jsx)(A,{className:`h-3.5 w-3.5`}),(0,Z.jsx)(E,{className:`h-3.5 w-3.5 text-primary`}),` `,n(`activity:sddWizard.implementationPlan`)]}),C&&(0,Z.jsx)(`div`,{className:`max-h-[40dvh] overflow-auto px-3 py-2`,children:(0,Z.jsx)(`p`,{className:`whitespace-pre-wrap text-sm leading-relaxed text-foreground/90`,children:Ve(s)})})]}),s&&q!==`questioning`&&q!==`implementation`&&q!==`task_review`&&!i?.spec&&(0,Z.jsx)(We,{speaker:`assistant`,text:s}),(q===`spec_review`||q===`implementation`||q===`task_review`)&&(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 pt-1`,children:[q===`task_review`?(0,Z.jsxs)(Y,{className:`bg-success/15 text-success hover:bg-success/25`,onClick:Ce,disabled:K,children:[(0,Z.jsx)(y,{className:`mr-1.5 h-4 w-4`}),n(`activity:sddWizard.startRun`,`Start Run`)]}):(0,Z.jsxs)(Y,{variant:`secondary`,onClick:xe,disabled:K,children:[(0,Z.jsx)(g,{className:`mr-1.5 h-4 w-4`}),n(q===`spec_review`?`activity:sddWizard.approveSpec`:`activity:sddWizard.approvePlan`)]}),(0,Z.jsxs)(Y,{variant:`outline`,onClick:()=>Se(),disabled:K,className:`text-xs text-muted-foreground hover:text-foreground`,title:q===`spec_review`?n(`activity:sddWizard.backToQuestionsTitle`,`Reject spec and return to questioning`):n(`activity:sddWizard.backToSpecTitle`,`Reject plan and return to spec review`),children:[(0,Z.jsx)(u,{className:`mr-1.5 h-3.5 w-3.5`}),q===`spec_review`?n(`activity:sddWizard.backToQuestions`,`Back to Questions`):n(`activity:sddWizard.backToSpec`,`Back to Spec`)]})]}),(0,Z.jsx)(`div`,{ref:W})]}):(0,Z.jsxs)(`div`,{className:`mx-auto mt-8 max-w-xl`,children:[(0,Z.jsx)(`label`,{className:`mb-2 block text-sm font-medium`,htmlFor:`sdd-goal`,children:n(`activity:sddWizard.goalPrompt`)}),(0,Z.jsx)(`textarea`,{id:`sdd-goal`,value:f,onChange:e=>_(e.target.value),onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&_e()},rows:4,placeholder:n(`activity:sddWizard.goalPlaceholder`),className:`w-full resize-none rounded-md border border-border bg-card px-3 py-2 text-sm outline-none focus:border-primary`}),(0,Z.jsx)(Y,{className:`mt-3`,onClick:_e,disabled:!f.trim()||x,children:x?(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(p,{className:`mr-1.5 h-4 w-4 animate-spin`}),` `,n(`activity:sddWizard.startingInterview`)]}):(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(E,{className:`mr-1.5 h-4 w-4`}),` `,n(`activity:sddWizard.startInterview`)]})}),(0,Z.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:n(`activity:sddWizard.introBody`)})]})]}),J&&q!==`executing`&&q!==`done`&&(0,Z.jsxs)(`div`,{className:`border-t bg-card`,children:[q===`questioning`&&!K&&(0,Z.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5 px-4 pt-2`,children:[ke.map(e=>(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>b(e),className:`inline-flex items-center rounded-full border border-primary/25 bg-primary/5 px-2.5 py-1 text-xs text-primary transition hover:bg-primary/15 hover:border-primary/40 active:scale-95`,children:[(0,Z.jsx)(`span`,{className:`mr-1 opacity-70`,children:`👉`}),e]},e)),(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>be(n(`activity:sddWizard.quickBestPracticeDirective`,`Use standard industry best practices for this.`)),className:`inline-flex items-center rounded-full border border-warning/30 bg-warning/10 px-2.5 py-1 text-xs text-warning transition hover:bg-warning/20 active:scale-95`,title:`Answer using standard industry best practice`,children:[(0,Z.jsx)(a,{className:`mr-1 h-3 w-3`}),n(`activity:sddWizard.quickBestPractice`,`Use Best Practice`)]}),Me&&(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>be(`We have covered the necessary requirements. Please generate the complete specification JSON now.`),className:`inline-flex items-center rounded-full border border-success/30 bg-success/15 px-2.5 py-1 text-xs font-medium text-success transition hover:bg-success/25 active:scale-95`,title:n(`activity:sddWizard.generateSpecNowTitle`,`Generate the specification now with gathered requirements`),children:[(0,Z.jsx)(M,{className:`mr-1 h-3 w-3`}),n(`activity:sddWizard.generateSpecNow`,`Generate Spec Now`)]})]}),(0,Z.jsxs)(`div`,{className:`flex shrink-0 items-end gap-2 px-4 py-2`,children:[(0,Z.jsx)(`textarea`,{value:v,onChange:e=>b(e.target.value),onKeyDown:e=>{e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),ye())},rows:1,placeholder:n(q===`questioning`?`activity:sddWizard.answerPlaceholder`:`activity:sddWizard.changePlaceholder`),disabled:K,className:`max-h-32 flex-1 resize-none rounded-md border border-border bg-background px-3 py-2 text-sm outline-none focus:border-primary disabled:opacity-50`}),(0,Z.jsx)(Y,{size:`icon`,onClick:ye,disabled:K||!v.trim(),children:(0,Z.jsx)(o,{className:`h-4 w-4`})})]})]})]})}function Ve(e){let t=e.replace(/```json[\s\S]*?```/gi,``).trim();return t.length>0?t:e.trim()}function He(e){if(!e)return[];let t=[],n=e.matchAll(/(?:^|\n)\s*(?:[0-9]+[.)]|[A-D][.)]|[-*]\s+\*\*|[-*]\s+\[)\s*([^:\n\r]+)/gi);for(let e of n){let n=(e[1]??``).trim().replace(/^[`"']|[`"']$/g,``);n&&n.length>2&&n.length<50&&!t.includes(n)&&t.push(n)}if(t.length===0){let n=e.match(/(?:Options|Choices|Öneriler|Seçenekler):\s*([^\n\r]+)/i);if(n?.[1]){let e=n[1].split(/[,|/]/).map(e=>e.trim()).filter(e=>e.length>2&&e.length<45);t.push(...e.slice(0,4))}}return t.slice(0,4)}function Ue(e){let t=e.toLowerCase();return/security|auth|jwt|oauth|token|permission|role|rbac|şifre|güvenlik/i.test(t)?{label:`Security & Auth`,color:`bg-destructive/10 text-destructive border-destructive/20`}:/database|sql|postgres|sqlite|redis|mongodb|schema|tablo|veritabanı/i.test(t)?{label:`Data & Storage`,color:`bg-info/10 text-info border-info/20`}:/api|endpoint|rest|graphql|grpc|route|http/i.test(t)?{label:`API & Routing`,color:`bg-success/10 text-success border-success/20`}:/test|vitest|jest|e2e|playwright|coverage|mock/i.test(t)?{label:`Testing & QA`,color:`bg-warning/10 text-warning border-warning/20`}:/ui|css|component|frontend|react|tailwind|button|view|görsel|arayüz/i.test(t)?{label:`UI & Layout`,color:`bg-primary/10 text-primary border-primary/20`}:/architecture|microservice|queue|worker|scale|mimari/i.test(t)?{label:`Architecture`,color:`bg-accent/30 text-accent-foreground border-border`}:null}function We({speaker:e,text:t,live:n,thinking:r,questionIndex:i}){let a=e===`user`,[o,c]=(0,X.useState)(!1),u=!a&&t?Ue(t):null;return(0,Z.jsxs)(`div`,{className:z(`group sdd-rise flex items-start gap-2`,a&&`flex-row-reverse`),children:[(0,Z.jsx)(`span`,{className:z(`mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs`,a?`bg-info/15 text-info`:`bg-primary/15 text-primary`,(n||r)&&`sdd-agent-live`),children:a?(0,Z.jsx)(l,{className:`h-3.5 w-3.5`}):(0,Z.jsx)(f,{className:`h-3.5 w-3.5`})}),(0,Z.jsxs)(`div`,{className:z(`relative max-w-[85%] rounded-2xl px-3.5 py-2.5 text-sm leading-relaxed text-foreground shadow-sm transition-all`,a?`rounded-tr-sm bg-info/10 border border-info/20`:`rounded-tl-sm bg-muted/80 border border-border/70`),children:[!a&&!r&&(0,Z.jsxs)(`div`,{className:`mb-1.5 flex items-center gap-1.5 text-[10px]`,children:[i!==void 0&&(0,Z.jsxs)(`span`,{className:`rounded bg-primary/15 px-1.5 py-0.2 font-mono font-semibold text-primary`,children:[`Q`,i]}),u&&(0,Z.jsx)(`span`,{className:z(`rounded border px-1.5 py-0.2 font-medium`,u.color),children:u.label})]}),r?(0,Z.jsxs)(`span`,{className:`flex items-center gap-1 py-1`,children:[(0,Z.jsx)(`span`,{className:`h-1.5 w-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-200ms]`}),(0,Z.jsx)(`span`,{className:`h-1.5 w-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-100ms]`}),(0,Z.jsx)(`span`,{className:`h-1.5 w-1.5 animate-bounce rounded-full bg-muted-foreground`})]}):(0,Z.jsx)(`p`,{className:`whitespace-pre-wrap`,children:t}),!r&&t&&(0,Z.jsx)(`button`,{type:`button`,onClick:()=>{t&&(navigator.clipboard.writeText(t),c(!0),setTimeout(()=>c(!1),1500))},title:o?`Copied`:`Copy`,className:`absolute -bottom-2 right-2 hidden rounded bg-background/90 p-1 text-[10px] text-muted-foreground shadow border group-hover:flex items-center gap-1 hover:text-foreground`,children:o?(0,Z.jsx)(s,{className:`h-3 w-3 text-success`}):(0,Z.jsx)(T,{className:`h-3 w-3`})})]})]})}var Ge={completed:{icon:(0,Z.jsx)(b,{className:`h-3.5 w-3.5`}),text:`text-success`,ring:`border-success/35`},in_progress:{icon:(0,Z.jsx)(p,{className:`h-3.5 w-3.5 animate-spin`}),text:`text-primary`,ring:`border-primary/45`},queued:{icon:(0,Z.jsx)(F,{className:`h-3.5 w-3.5`}),text:`text-warning`,ring:`border-warning/35`},blocked:{icon:(0,Z.jsx)(j,{className:`h-3.5 w-3.5`}),text:`text-destructive`,ring:`border-destructive/30`},pending:{icon:(0,Z.jsx)(O,{className:`h-3.5 w-3.5`}),text:`text-muted-foreground`,ring:`border-border/70`},review:{icon:(0,Z.jsx)(u,{className:`h-3.5 w-3.5`}),text:`text-primary`,ring:`border-primary/35`},failed:{icon:(0,Z.jsx)(D,{className:`h-3.5 w-3.5`}),text:`text-destructive`,ring:`border-destructive/45`},cancelled:{icon:(0,Z.jsx)(r,{className:`h-3.5 w-3.5`}),text:`text-muted-foreground`,ring:`border-border/70`}},Ke=[`completed`,`in_progress`,`queued`,`blocked`,`pending`,`failed`],qe={critical:{labelKey:`activity:depGraph.prioCrit`,cls:`bg-destructive/10 text-destructive`},high:{labelKey:`activity:depGraph.prioHigh`,cls:`bg-destructive/10 text-destructive`},medium:{labelKey:`activity:depGraph.prioMed`,cls:`bg-warning/12 text-warning`},low:{labelKey:`activity:depGraph.prioLow`,cls:`bg-success/12 text-success`}};function Je({columns:e,onTaskClick:t}){let{t:n}=R();return e.length===0?(0,Z.jsx)(`div`,{className:`flex h-40 items-center justify-center text-sm text-muted-foreground`,children:n(`activity:board.emptySpec`)}):(0,Z.jsxs)(`div`,{className:`rounded-xl border border-border/70 bg-card/75 p-4 shadow-sm`,children:[(0,Z.jsx)(`h3`,{className:`mb-3 text-sm font-semibold text-foreground`,children:n(`activity:board.depGraphHeading`)}),(0,Z.jsx)(`div`,{className:`mb-4 flex flex-wrap items-center gap-x-4 gap-y-1 text-xs`,children:Ke.map(e=>(0,Z.jsxs)(`span`,{className:z(`inline-flex items-center gap-1.5`,Ge[e].text),children:[Ge[e].icon,(0,Z.jsx)(`span`,{className:`text-muted-foreground`,children:n(`activity:board.status.${e}`)})]},e))}),(0,Z.jsx)(`div`,{className:`flex gap-3 overflow-x-auto pb-2`,children:e.map((n,r)=>(0,Z.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,Z.jsxs)(`div`,{className:`w-60 shrink-0`,children:[(0,Z.jsx)(`div`,{className:`mb-2 border-b border-border/60 pb-1 text-center text-xs font-medium uppercase text-muted-foreground`,children:n.label}),(0,Z.jsx)(`div`,{className:`space-y-2`,children:n.tasks.map(e=>(0,Z.jsx)(Ye,{task:e,onClick:t},e.id))})]}),r<e.length-1&&(0,Z.jsx)(`div`,{className:`flex h-full items-center pt-8 text-muted-foreground/75`,children:(0,Z.jsx)(A,{className:`h-5 w-5`})})]},n.label))})]})}function Ye({task:e,onClick:t}){let n=Ge[e.displayStatus],r=qe[e.priority],{t:i}=R();return(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>t?.(e.id),className:z(`w-full rounded-lg border bg-background/55 p-2.5 text-left shadow-sm transition-colors hover:border-primary/35 hover:bg-accent/35`,n.ring),children:[(0,Z.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,Z.jsxs)(`span`,{className:z(`inline-flex items-center gap-1.5 text-xs font-medium`,n.text),children:[n.icon,(0,Z.jsx)(`span`,{className:`font-mono text-foreground`,children:e.shortId})]}),(0,Z.jsx)(`span`,{className:z(`rounded px-1.5 py-0.5 text-[10px] font-medium`,r.cls),children:i(r.labelKey)})]}),(0,Z.jsx)(`p`,{className:`mt-1.5 text-xs text-foreground`,children:e.title}),e.deps.length>0&&(0,Z.jsxs)(`p`,{className:`mt-1 font-mono text-[10px] text-muted-foreground`,children:[`← `,e.deps.join(`, `)]}),e.agentName&&(0,Z.jsxs)(`div`,{className:z(`mt-1.5 inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 text-[10px]`,e.displayStatus===`in_progress`?`bg-primary/10 text-primary`:`bg-muted text-muted-foreground`),title:e.worktreeBranch?i(`activity:board.worktreePrefix`,{branch:e.worktreeBranch}):void 0,children:[e.displayStatus===`in_progress`&&(0,Z.jsx)(p,{className:`h-3 w-3 animate-spin`}),(0,Z.jsx)(`span`,{children:e.agentName})]})]})}function Xe(e){return e.columns.map(e=>({name:e.label,description:``,priority:`medium`,estimateHours:e.tasks.length,parallelizable:!1,taskTemplates:e.tasks.map(e=>({title:e.title,description:e.description,type:e.type,priority:e.priority,estimateHours:1}))}))}function Ze({onClose:e,onRunStarted:t}){let{client:n}=fe(),{t:r}=R(),i=K(e=>e.specs),a=K(e=>e.detail),o=K(e=>e.expandedSpecId),s=K(e=>e.setExpanded),[l,u]=(0,X.useState)(`graph`),f=(0,X.useCallback)(e=>{a&&a.specId===e.id&&(n?.send?.({type:`goal.start`,payload:{title:e.title,phases:Xe(a),autonomous:!0}}),V(`goal`))},[a,n]),p=(0,X.useCallback)(e=>{let r=e.graphId??(a?.specId===e.id?a.graphId:void 0);r?n?.send?.({type:`sdd.run.from_graph`,payload:{graphId:r,worktrees:!0}}):n?.send?.({type:`sdd.run.from_spec`,payload:{specId:e.id,worktrees:!0}}),t?.(),V(`sddhub`)},[a,n,t]);(0,X.useEffect)(()=>{n?.send?.({type:`specs.list`})},[n]);let g=(0,X.useCallback)(e=>{o===e.id?s(null):(s(e.id),n?.send?.({type:`specs.get`,payload:{specId:e.id}}))},[o,s,n]),_=a?.columns.flatMap(e=>e.tasks)??[],v={done:_.filter(e=>e.status===`completed`).length,running:_.filter(e=>e.status===`in_progress`).length,pending:_.filter(e=>e.status===`pending`||e.displayStatus===`queued`).length};return(0,Z.jsxs)(`div`,{className:`flex h-full min-h-0 min-w-0 flex-col bg-background`,children:[(0,Z.jsxs)(`header`,{className:`flex shrink-0 items-center justify-between border-b bg-card px-4 py-2`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(x,{className:`h-5 w-5 text-warning`}),(0,Z.jsxs)(`div`,{children:[(0,Z.jsx)(`h1`,{className:`text-lg font-semibold`,children:r(`activity:specs.heading`)}),(0,Z.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:r(`activity:specs.subtitle`)})]})]}),(0,Z.jsx)(Y,{variant:`ghost`,size:`icon`,onClick:e,children:(0,Z.jsx)(m,{className:`h-4 w-4`})})]}),(0,Z.jsx)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-contain p-4`,children:i.length===0?(0,Z.jsx)(`div`,{className:`flex h-40 items-center justify-center text-sm text-muted-foreground`,children:r(`activity:specs.empty`,{command:`/sdd`})}):(0,Z.jsx)(`div`,{className:`space-y-3`,children:i.map(e=>{let t=o===e.id,n=e.total>0?Math.round(e.completed/e.total*100):0;return(0,Z.jsxs)(`div`,{className:`rounded-lg border border-border bg-card/60`,children:[(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>g(e),className:`flex w-full items-start gap-3 p-4 text-left`,children:[(0,Z.jsx)(`span`,{className:`mt-1 text-muted-foreground`,children:t?(0,Z.jsx)(h,{className:`h-4 w-4`}):(0,Z.jsx)(A,{className:`h-4 w-4`})}),(0,Z.jsx)(x,{className:`mt-0.5 h-4 w-4 text-muted-foreground`}),(0,Z.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground`,children:e.displayId}),(0,Z.jsx)(`span`,{className:`rounded bg-muted px-1.5 py-0.5 text-[10px] capitalize text-muted-foreground`,children:e.status})]}),(0,Z.jsx)(`h2`,{className:`mt-1 text-base font-semibold`,children:e.title}),(0,Z.jsxs)(`div`,{className:`mt-2 flex items-center gap-2`,children:[(0,Z.jsx)(`div`,{className:`h-2 flex-1 overflow-hidden rounded-full bg-muted`,children:(0,Z.jsx)(`div`,{className:`h-full rounded-full bg-success transition-all`,style:{width:`${n}%`}})}),(0,Z.jsxs)(`span`,{className:`shrink-0 font-mono text-xs text-muted-foreground`,children:[e.completed,`/`,e.total]})]})]})]}),t&&(0,Z.jsxs)(`div`,{className:`border-t border-border p-4`,children:[(0,Z.jsxs)(`div`,{className:`mb-3 flex items-center justify-between`,children:[(0,Z.jsxs)(`div`,{className:`text-sm font-medium`,children:[r(`activity:specs.tasks`,{count:a?.total??e.total}),a&&(0,Z.jsxs)(`span`,{className:`ml-3 text-xs font-normal text-muted-foreground`,children:[(0,Z.jsx)(`span`,{className:`text-success`,children:r(`activity:specs.doneCount`,{count:v.done})}),` `,(0,Z.jsx)(`span`,{className:`text-primary`,children:r(`activity:specs.runningCount`,{count:v.running})}),` `,(0,Z.jsx)(`span`,{children:r(`activity:specs.pendingCount`,{count:v.pending})})]})]}),(0,Z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>p(e),title:r(`activity:specs.runAsSddTitle`),className:`inline-flex items-center gap-1 rounded-md bg-success/15 px-2.5 py-1 text-xs font-medium text-success transition-colors hover:bg-success/25`,children:[(0,Z.jsx)(d,{className:`h-3.5 w-3.5`}),` `,r(`activity:specs.runAsSdd`)]}),(0,Z.jsxs)(`button`,{type:`button`,disabled:!a||a.specId!==e.id,onClick:()=>f(e),title:r(`activity:specs.runAsGoalTitle`),className:`inline-flex items-center gap-1 rounded-md bg-warning/15 px-2.5 py-1 text-xs font-medium text-warning transition-colors hover:bg-warning/25 disabled:opacity-40`,children:[(0,Z.jsx)(d,{className:`h-3.5 w-3.5`}),` `,r(`activity:specs.runAsGoal`)]}),(0,Z.jsxs)(`div`,{className:`flex items-center gap-1 rounded-md border border-border p-0.5`,children:[(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>u(`list`),className:z(`inline-flex items-center gap-1 rounded px-2 py-1 text-xs`,l===`list`?`bg-primary/15 text-primary`:`text-muted-foreground`),children:[(0,Z.jsx)(c,{className:`h-3.5 w-3.5`}),` `,r(`activity:specs.list`)]}),(0,Z.jsxs)(`button`,{type:`button`,onClick:()=>u(`graph`),className:z(`inline-flex items-center gap-1 rounded px-2 py-1 text-xs`,l===`graph`?`bg-primary/15 text-primary`:`text-muted-foreground`),children:[(0,Z.jsx)(se,{className:`h-3.5 w-3.5`}),` `,r(`activity:specs.graph`)]})]})]})]}),!a||a.specId!==e.id?(0,Z.jsx)(`div`,{className:`flex h-24 items-center justify-center text-sm text-muted-foreground`,children:r(`activity:specs.loadingTasks`)}):l===`graph`?(0,Z.jsx)(Je,{columns:a.columns}):(0,Z.jsx)(`div`,{className:`space-y-1.5`,children:_.map(e=>(0,Z.jsxs)(`div`,{className:`flex items-center gap-3 rounded-md border border-border bg-card px-3 py-2`,children:[(0,Z.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground`,children:e.shortId}),(0,Z.jsx)(`span`,{className:`flex-1 text-sm`,children:e.title}),(0,Z.jsx)(`span`,{className:`text-xs capitalize text-muted-foreground`,children:e.displayStatus.replace(`_`,` `)})]},e.id))})]})]},e.id)})})})]})}var Qe=[{id:`project`,labelKey:`activity:sddhub.tabProject`},{id:`board`,labelKey:`activity:sddhub.tabBoard`},{id:`specs`,labelKey:`activity:sddhub.tabSpecs`}];function $e(){let{t:e}=R(),[t,n]=(0,X.useState)(`project`),r=U(e=>e.startedRunId),i=U(e=>e.setStartedRunId),a=()=>B(`chat`),o=(0,X.useCallback)(()=>n(`board`),[]);(0,X.useEffect)(()=>{r&&(n(`board`),i(null))},[r,i]);let s=(e,t)=>{let r;if(e.key===`ArrowLeft`&&(r=(t-1+Qe.length)%Qe.length),e.key===`ArrowRight`&&(r=(t+1)%Qe.length),e.key===`Home`&&(r=0),e.key===`End`&&(r=Qe.length-1),r===void 0)return;e.preventDefault();let i=Qe[r];i&&(n(i.id),e.currentTarget.parentElement?.querySelectorAll(`[role="tab"]`)[r]?.focus())};return(0,Z.jsxs)(`div`,{className:`flex h-full min-h-0 min-w-0 flex-col bg-background`,children:[(0,Z.jsx)(`div`,{role:`tablist`,"aria-orientation":`horizontal`,className:`flex shrink-0 items-end border-b border-border/70 bg-card px-4`,children:Qe.map((r,i)=>{let a=t===r.id;return(0,Z.jsxs)(`button`,{id:`sdd-hub-tab-${r.id}`,type:`button`,role:`tab`,"aria-selected":a,"aria-controls":`sdd-hub-panel-${r.id}`,tabIndex:a?0:-1,onClick:()=>n(r.id),onKeyDown:e=>s(e,i),className:z(`relative px-4 py-2.5 text-sm font-medium transition-colors`,a?`text-foreground`:`text-muted-foreground hover:text-foreground`),children:[e(r.labelKey),a&&(0,Z.jsx)(`span`,{"aria-hidden":`true`,className:`absolute bottom-0 left-0 right-0 h-0.5 bg-primary`})]},r.id)})}),(0,Z.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:[(0,Z.jsx)(`div`,{id:`sdd-hub-panel-project`,role:`tabpanel`,"aria-labelledby":`sdd-hub-tab-project`,hidden:t!==`project`,className:`h-full overflow-y-auto overscroll-contain`,children:(0,Z.jsx)(Be,{onClose:a,onRunStarted:o})}),(0,Z.jsx)(`div`,{id:`sdd-hub-panel-board`,role:`tabpanel`,"aria-labelledby":`sdd-hub-tab-board`,hidden:t!==`board`,className:`h-full overflow-y-auto overscroll-contain`,children:(0,Z.jsx)(Pe,{onClose:a})}),(0,Z.jsx)(`div`,{id:`sdd-hub-panel-specs`,role:`tabpanel`,"aria-labelledby":`sdd-hub-tab-specs`,hidden:t!==`specs`,className:`h-full overflow-y-auto overscroll-contain`,children:(0,Z.jsx)(Ze,{onClose:a,onRunStarted:o})})]})]})}export{$e as SddHub};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,t as n}from"./react-core-wiHys0m2.js";import{Ot as r,ct as i}from"./vendor-V3ydTHqN.js";import{t as a}from"./utils-CKsqCaP8.js";var o=e(t(),1),s=n(),c=i(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-[background-color,border-color,color,box-shadow,transform] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 active:translate-y-px`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-sm shadow-primary/15 hover:bg-primary/90 hover:shadow-md hover:shadow-primary/20`,destructive:`bg-destructive text-destructive-foreground shadow-sm shadow-destructive/15 hover:bg-destructive/90`,outline:`border border-input bg-card/70 shadow-sm hover:border-primary/35 hover:bg-accent/70 hover:text-accent-foreground`,secondary:`border border-border/60 bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent/70 hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-10 px-4 py-2`,sm:`h-9 rounded-md px-3`,lg:`h-11 rounded-md px-8`,icon:`h-10 w-10`}},defaultVariants:{variant:`default`,size:`default`}}),l=o.forwardRef(({className:e,variant:t,size:n,asChild:i=!1,...o},l)=>(0,s.jsx)(i?r:`button`,{className:a(c({variant:t,size:n,className:e})),ref:l,...o}));l.displayName=`Button`;export{l as t};
@@ -1 +0,0 @@
1
- var e={ok:`Tamam`,cancel:`İptal`,create:`Oluştur`,save:`Kaydet`,saved:`Kaydedildi`,dismiss:`Dismiss`,close:`Kapat`,yes:`Evet`,no:`Hayır`,delete:`Sil`,remove:`Kaldır`,add:`Ekle`,edit:`Düzenle`,rename:`Yeniden adlandır`,retry:`Yeniden dene`,reset:`Sıfırla`,apply:`Uygula`,confirm:`Onayla`,back:`Geri`,next:`İleri`,done:`Bitti`,refresh:`Yenile`,copy:`Kopyala`,copied:`Kopyalandı`,copyFailed:`Kopyalanamadı — pano erişimi engellendi.`,open:`Aç`,start:`Başlat`,stop:`Durdur`,pause:`Duraklat`,resume:`Sürdür`,continue:`Devam et`,clear:`Temizle`,search:`Ara`,loading:`Yükleniyor…`,saving:`Kaydediliyor…`,searchPlaceholder:`Ara…`,always:`Her zaman`,deny:`Reddet`,undo:`Geri al`,all:`Tümü`},t={title:`Onay gerekli: {{tool}}`,descriptionEdit:`Vekil bir dosyayı değiştirmek istiyor. Aşağıdaki isteği inceleyin ve devam edip etmeyeceğinize karar verin.`,descriptionTool:`Vekil bu aracı çalıştırmak istiyor. Aşağıdaki isteği inceleyin ve devam edip etmeyeceğinize karar verin.`,fileModification:`Dosya değişikliği`,toolExecution:`Araç çalıştırma`,riskSuffix:`{{risk}} risk`,command:`Komut`,inputLabel:`Girdi:`,trustSuggestionTitle:`Güven kalıbı önerisi`,trustSuggestionHint:`Her Zaman'ı seçmek, bu proje için eşleşen çağrıları beyaz listeye alır.`,yoloDestructiveNote:`YOLO açık. Bu onay yine de gösteriliyor çünkü istek yıkıcı olarak sınıflandırıldı.`,brainCountdown:`Onayın bekleniyor · Brain {{time}} sonra devralacak`,brainDeciding:`Süre doldu · Brain karar veriyor…`,skipApprovalsTitle:`Sonraki onayları atla`,skipApprovalsHint:`YOLO modunu etkinleştir; vekil izin istemeden çalışır. Yıkıcı işlemler yine de onay ister.`,enableYoloTitle:`YOLO modunu etkinleştir (bu ve gelecekteki yıkıcı olmayan çağrıları otomatik onayla)`,enableYoloBtn:`YOLO'yu etkinleştir`,denyAlways:`Her zaman reddet`,denyAlwaysTitle:`Bu ve kalıpla eşleşen tüm gelecek çağrıları reddet (d)`,noTitle:`Bu tek çağrıyı reddet (Esc / n)`,alwaysTitle:`Onayla ve kalıbı proje için hatırla (a)`,yesTitle:`Bu tek çağrıyı onayla (y)`},n={connected:`Bağlı`,disconnected:`Bağlı değil`,notConnectedRetry:`Sunucuya bağlı değil — bağlantı kurulunca tekrar deneyin.`,connecting:`Bağlanıyor…`,reconnecting:`Yeniden bağlanıyor…`,ready:`Hazır`,error:`Hata`,offline:`Çevrimdışı`,online:`Çevrimiçi`,live:`Canlı`,budgetWarning:`bütçe uyarısı`,running:`Çalışıyor`,inProgress:`Devam ediyor`,working:`çalışıyor`},r={justNow:`az önce`,secondsAgo_one:`{{count}} saniye önce`,secondsAgo_other:`{{count}} saniye önce`,minutesAgo_one:`{{count}} dakika önce`,minutesAgo_other:`{{count}} dakika önce`,hoursAgo_one:`{{count}} saat önce`,hoursAgo_other:`{{count}} saat önce`,daysAgo_one:`{{count}} gün önce`,daysAgo_other:`{{count}} gün önce`,compactSecondsAgo:`{{count}} sn önce`,compactMinutesAgo:`{{count}} dk önce`,compactHoursAgo:`{{count}} sa önce`},i={title:`Bir şeyler ters gitti`,body:`Bir oluşturma hatası oluştu. Oturumunuz sunucuda hâlâ etkin — yeniden yüklemek kaldığınız yerden devam eder.`,reload:`Sayfayı yeniden yükle`,tryAgain:`Tekrar dene`,panelTitle:`{{name}} bir hatayla karşılaştı`},a={noActivity:`Etkinlik yok`,noActivityYet:`Henüz etkinlik yok`,activityMax:`Etkinlik sparkline: en fazla {{count}} olay`,activityPeak:`Etkinlik sparkline — tepe {{count}} olay/kova`},o=`{{name}} yükleniyor…`,s={action:e,confirm:t,status:n,time:r,error:i,sparkline:a,loadingNamed:o};export{e as action,t as confirm,s as default,i as error,o as loadingNamed,a as sparkline,n as status,r as time};
@@ -1 +0,0 @@
1
- var e={ok:`OK`,cancel:`Cancelar`,create:`Crear`,save:`Guardar`,saved:`Guardado`,dismiss:`Dismiss`,close:`Cerrar`,yes:`Sí`,no:`No`,delete:`Eliminar`,remove:`Quitar`,add:`Añadir`,edit:`Editar`,rename:`Renombrar`,retry:`Reintentar`,reset:`Restablecer`,apply:`Aplicar`,confirm:`Confirmar`,back:`Atrás`,next:`Siguiente`,done:`Hecho`,refresh:`Actualizar`,copy:`Copiar`,copied:`Copiado`,copyFailed:`Error al copiar: acceso al portapapeles bloqueado.`,open:`Abrir`,start:`Iniciar`,stop:`Detener`,pause:`Pausar`,resume:`Reanudar`,continue:`Continuar`,clear:`Limpiar`,search:`Buscar`,loading:`Cargando…`,saving:`Guardando…`,searchPlaceholder:`Buscar…`,always:`Siempre`,deny:`Denegar`,undo:`Deshacer`,all:`Todos`},t={title:`Aprobación requerida: {{tool}}`,descriptionEdit:`El agente quiere modificar un archivo. Revisa la solicitud a continuación y decide si deseas continuar.`,descriptionTool:`El agente quiere ejecutar esta herramienta. Revisa la solicitud a continuación y decide si deseas continuar.`,fileModification:`Modificación de archivo`,toolExecution:`Ejecución de herramienta`,riskSuffix:`riesgo {{risk}}`,command:`Comando`,inputLabel:`Entrada:`,trustSuggestionTitle:`Sugerencia de patrón de confianza`,trustSuggestionHint:`Elegir Siempre añadirá a la lista de permitidas las llamadas coincidentes para este proyecto.`,yoloDestructiveNote:`YOLO está activado. Este aviso se sigue mostrando porque la solicitud se clasificó como destructiva.`,brainCountdown:`Esperando tu aprobación · Brain tomará el control en {{time}}`,brainDeciding:`Tiempo agotado · Brain está decidiendo…`,skipApprovalsTitle:`Omitir aprobaciones futuras`,skipApprovalsHint:`Activa el modo YOLO y el agente ejecuta sin preguntar. Las operaciones destructivas siguen solicitando confirmación.`,enableYoloTitle:`Activar modo YOLO (aprobar automáticamente esta y futuras llamadas no destructivas)`,enableYoloBtn:`Activar YOLO`,denyAlways:`Denegar siempre`,denyAlwaysTitle:`Rechazar esta y todas las futuras llamadas que coincidan con el patrón (d)`,noTitle:`Rechazar solo esta llamada (Esc / n)`,alwaysTitle:`Aprobar y recordar el patrón para el proyecto (a)`,yesTitle:`Aprobar solo esta llamada (y)`},n={connected:`Conectado`,disconnected:`Desconectado`,notConnectedRetry:`Sin conexión con el servidor: inténtalo de nuevo al reconectar.`,connecting:`Conectando…`,reconnecting:`Reconectando…`,ready:`Listo`,error:`Error`,offline:`Sin conexión`,online:`En línea`,live:`En vivo`,budgetWarning:`alerta de presupuesto`,running:`En ejecución`,inProgress:`En progreso`,working:`trabajando`},r={justNow:`justo ahora`,secondsAgo_one:`hace {{count}} segundo`,secondsAgo_other:`hace {{count}} segundos`,minutesAgo_one:`hace {{count}} minuto`,minutesAgo_other:`hace {{count}} minutos`,hoursAgo_one:`hace {{count}} hora`,hoursAgo_other:`hace {{count}} horas`,daysAgo_one:`hace {{count}} día`,daysAgo_other:`hace {{count}} días`,compactSecondsAgo:`hace {{count}} s`,compactMinutesAgo:`hace {{count}} min`,compactHoursAgo:`hace {{count}} h`},i={title:`Algo salió mal`,body:`Ocurrió un error de renderizado. Tu sesión sigue activa en el servidor — recargar continuará donde lo dejaste.`,reload:`Recargar página`,tryAgain:`Reintentar`,panelTitle:`{{name}} encontró un error`},a={noActivity:`Sin actividad`,noActivityYet:`Aún sin actividad`,activityMax:`Sparkline de actividad: máx {{count}} eventos`,activityPeak:`Sparkline de actividad — pico {{count}} eventos/intervalo`},o=`Cargando {{name}}…`,s={action:e,confirm:t,status:n,time:r,error:i,sparkline:a,loadingNamed:o};export{e as action,t as confirm,s as default,i as error,o as loadingNamed,a as sparkline,n as status,r as time};
@@ -1 +0,0 @@
1
- var e={ok:`OK`,cancel:`Annulla`,create:`Crea`,save:`Salva`,saved:`Salvato`,dismiss:`Dismiss`,close:`Chiudi`,yes:`Sì`,no:`No`,delete:`Elimina`,remove:`Rimuovi`,add:`Aggiungi`,edit:`Modifica`,rename:`Rinomina`,retry:`Riprova`,reset:`Ripristina`,apply:`Applica`,confirm:`Conferma`,back:`Indietro`,next:`Avanti`,done:`Fatto`,refresh:`Aggiorna`,copy:`Copia`,copied:`Copiato`,copyFailed:`Copia non riuscita — accesso agli appunti bloccato.`,open:`Apri`,start:`Avvia`,stop:`Ferma`,pause:`Sospendi`,resume:`Riprendi`,continue:`Continua`,clear:`Cancella`,search:`Cerca`,loading:`Caricamento…`,saving:`Salvataggio…`,searchPlaceholder:`Cerca…`,always:`Sempre`,deny:`Nega`,undo:`Annulla`,all:`Tutti`},t={title:`Approvazione richiesta: {{tool}}`,descriptionEdit:`L'agente vuole modificare un file. Rivedi la richiesta qui sotto e decidi se procedere.`,descriptionTool:`L'agente vuole eseguire questo strumento. Rivedi la richiesta qui sotto e decidi se procedere.`,fileModification:`Modifica file`,toolExecution:`Esecuzione strumento`,riskSuffix:`Rischio {{risk}}`,command:`Comando`,inputLabel:`Input:`,trustSuggestionTitle:`Suggerimento pattern attendibile`,trustSuggestionHint:`Scegliendo Sempre le chiamate corrispondenti verranno aggiunte all'allowlist per questo progetto.`,yoloDestructiveNote:`YOLO è attivo. Questo prompt viene comunque mostrato perché la richiesta è stata classificata come distruttiva.`,brainCountdown:`In attesa della tua approvazione · Brain subentrerà tra {{time}}`,brainDeciding:`Tempo scaduto · Brain sta decidendo…`,skipApprovalsTitle:`Salta le approvazioni future`,skipApprovalsHint:`Abilita la modalità YOLO e l'agente procede senza chiedere. Le operazioni distruttive richiedono comunque conferma.`,enableYoloTitle:`Abilita la modalità YOLO (approva automaticamente questa e le future chiamate non distruttive)`,enableYoloBtn:`Abilita YOLO`,denyAlways:`Nega sempre`,denyAlwaysTitle:`Rifiuta questa e tutte le future chiamate corrispondenti al pattern (d)`,noTitle:`Rifiuta questa singola chiamata (Esc / n)`,alwaysTitle:`Approva e ricorda il pattern per il progetto (a)`,yesTitle:`Approva questa singola chiamata (y)`},n={connected:`Connesso`,disconnected:`Disconnesso`,notConnectedRetry:`Non connesso al server — riprova dopo la riconnessione.`,connecting:`Connessione…`,reconnecting:`Riconnessione…`,ready:`Pronto`,error:`Errore`,offline:`Offline`,online:`Online`,live:`Live`,budgetWarning:`avviso budget`,running:`In corso`,inProgress:`In corso`,working:`lavora`},r={justNow:`adesso`,secondsAgo_one:`{{count}} secondo fa`,secondsAgo_other:`{{count}} secondi fa`,minutesAgo_one:`{{count}} minuto fa`,minutesAgo_other:`{{count}} minuti fa`,hoursAgo_one:`{{count}} ora fa`,hoursAgo_other:`{{count}} ore fa`,daysAgo_one:`{{count}} giorno fa`,daysAgo_other:`{{count}} giorni fa`,compactSecondsAgo:`{{count}} s fa`,compactMinutesAgo:`{{count}} min fa`,compactHoursAgo:`{{count}} h fa`},i={title:`Qualcosa è andato storto`,body:`Si è verificato un errore di rendering. La tua sessione è ancora attiva sul server — ricaricare riprenderà da dove eri rimasto.`,reload:`Ricarica pagina`,tryAgain:`Riprova`,panelTitle:`{{name}} ha riscontrato un errore`},a={noActivity:`Nessuna attività`,noActivityYet:`Nessuna attività ancora`,activityMax:`Sparkline attività: max {{count}} eventi`,activityPeak:`Sparkline attività — picco {{count}} eventi/intervallo`},o=`Caricamento di {{name}}…`,s={action:e,confirm:t,status:n,time:r,error:i,sparkline:a,loadingNamed:o};export{e as action,t as confirm,s as default,i as error,o as loadingNamed,a as sparkline,n as status,r as time};
@@ -1 +0,0 @@
1
- import{n as e}from"./rolldown-runtime-hePW80VL.js";var t=e({action:()=>n,confirm:()=>r,default:()=>l,error:()=>o,loadingNamed:()=>c,sparkline:()=>s,status:()=>i,time:()=>a}),n={ok:`OK`,cancel:`Cancel`,create:`Create`,save:`Save`,saved:`Saved`,close:`Close`,dismiss:`Dismiss`,yes:`Yes`,no:`No`,delete:`Delete`,remove:`Remove`,add:`Add`,edit:`Edit`,rename:`Rename`,retry:`Retry`,reset:`Reset`,apply:`Apply`,confirm:`Confirm`,back:`Back`,next:`Next`,done:`Done`,refresh:`Refresh`,copy:`Copy`,copied:`Copied`,copyFailed:`Copy failed — clipboard access was blocked.`,open:`Open`,start:`Start`,stop:`Stop`,pause:`Pause`,resume:`Resume`,continue:`Continue`,clear:`Clear`,search:`Search`,loading:`Loading…`,saving:`Saving…`,searchPlaceholder:`Search…`,always:`Always`,deny:`Deny`,undo:`Undo`,all:`All`},r={title:`Approval required: {{tool}}`,descriptionEdit:`The agent wants to modify a file. Review the request below and decide whether to proceed.`,descriptionTool:`The agent wants to run this tool. Review the request below and decide whether to proceed.`,fileModification:`File modification`,toolExecution:`Tool execution`,riskSuffix:`{{risk}} risk`,command:`Command`,inputLabel:`Input:`,trustSuggestionTitle:`Trust pattern suggestion`,trustSuggestionHint:`Picking Always will whitelist matching calls for this project.`,yoloDestructiveNote:`YOLO is on. This prompt is still shown because the request was classified as destructive.`,brainCountdown:`Waiting for your approval · Brain takes over in {{time}}`,brainDeciding:`Time expired · Brain is deciding…`,skipApprovalsTitle:`Skip future approvals`,skipApprovalsHint:`Enable YOLO mode and the agent runs without asking. Destructive operations still ask for confirmation.`,enableYoloTitle:`Enable YOLO mode (auto-approve this and future non-destructive calls)`,enableYoloBtn:`Enable YOLO`,denyAlways:`Deny always`,denyAlwaysTitle:`Reject this and all future calls matching the pattern (d)`,noTitle:`Reject this single call (Esc / n)`,alwaysTitle:`Approve and remember the pattern for the project (a)`,yesTitle:`Approve this single call (y)`},i={connected:`Connected`,disconnected:`Disconnected`,notConnectedRetry:`Not connected to the server — try again once reconnected.`,connecting:`Connecting…`,reconnecting:`Reconnecting…`,ready:`Ready`,error:`Error`,offline:`Offline`,online:`Online`,live:`Live`,budgetWarning:`budget warning`,running:`Running`,inProgress:`In Progress`,working:`working`},a={justNow:`just now`,secondsAgo_one:`{{count}} second ago`,secondsAgo_other:`{{count}} seconds ago`,minutesAgo_one:`{{count}} minute ago`,minutesAgo_other:`{{count}} minutes ago`,hoursAgo_one:`{{count}} hour ago`,hoursAgo_other:`{{count}} hours ago`,daysAgo_one:`{{count}} day ago`,daysAgo_other:`{{count}} days ago`,compactSecondsAgo:`{{count}}s ago`,compactMinutesAgo:`{{count}}m ago`,compactHoursAgo:`{{count}}h ago`},o={title:`Something went wrong`,body:`A rendering error occurred. Your session is still active on the server — reloading will pick up where you left off.`,reload:`Reload page`,tryAgain:`Try again`,panelTitle:`{{name}} hit an error`},s={noActivity:`No activity`,noActivityYet:`No activity yet`,activityMax:`Activity sparkline: max {{count}} events`,activityPeak:`Activity sparkline — peak {{count}} events/bucket`},c=`Loading {{name}}…`,l={action:n,confirm:r,status:i,time:a,error:o,sparkline:s,loadingNamed:c};export{t as n,l as t};
@@ -1 +0,0 @@
1
- var e={ok:`OK`,cancel:`Abbrechen`,create:`Erstellen`,save:`Speichern`,saved:`Gespeichert`,dismiss:`Dismiss`,close:`Schließen`,yes:`Ja`,no:`Nein`,delete:`Löschen`,remove:`Entfernen`,add:`Hinzufügen`,edit:`Bearbeiten`,rename:`Umbenennen`,retry:`Erneut versuchen`,reset:`Zurücksetzen`,apply:`Anwenden`,confirm:`Bestätigen`,back:`Zurück`,next:`Weiter`,done:`Fertig`,refresh:`Aktualisieren`,copy:`Kopieren`,copied:`Kopiert`,copyFailed:`Kopieren fehlgeschlagen — Zugriff auf die Zwischenablage blockiert.`,open:`Öffnen`,start:`Starten`,stop:`Stopp`,pause:`Pausieren`,resume:`Fortsetzen`,continue:`Weiter`,clear:`Leeren`,search:`Suchen`,loading:`Lädt…`,saving:`Wird gespeichert…`,searchPlaceholder:`Suchen…`,always:`Immer`,deny:`Ablehnen`,undo:`Rückgängig`,all:`Alle`},t={title:`Freigabe erforderlich: {{tool}}`,descriptionEdit:`Der Agent möchte eine Datei ändern. Überprüfe die Anfrage unten und entscheide, ob du fortfahren möchtest.`,descriptionTool:`Der Agent möchte dieses Tool ausführen. Überprüfe die Anfrage unten und entscheide, ob du fortfahren möchtest.`,fileModification:`Dateiänderung`,toolExecution:`Tool-Ausführung`,riskSuffix:`{{risk}} Risiko`,command:`Befehl`,inputLabel:`Eingabe:`,trustSuggestionTitle:`Vorschlag für Vertrauensmuster`,trustSuggestionHint:`Wenn du Immer wählst, werden übereinstimmende Aufrufe für dieses Projekt auf die Whitelist gesetzt.`,yoloDestructiveNote:`YOLO ist aktiv. Diese Abfrage wird trotzdem angezeigt, da die Anfrage als destruktiv eingestuft wurde.`,brainCountdown:`Warte auf deine Bestätigung · Brain übernimmt in {{time}}`,brainDeciding:`Zeit abgelaufen · Brain entscheidet…`,skipApprovalsTitle:`Zukünftige Freigaben überspringen`,skipApprovalsHint:`Aktiviere den YOLO-Modus und der Agent läuft ohne Nachfrage. Destruktive Vorgänge fragen weiterhin nach.`,enableYoloTitle:`YOLO-Modus aktivieren (diesen und zukünftige nicht-destruktive Aufrufe automatisch freigeben)`,enableYoloBtn:`YOLO aktivieren`,denyAlways:`Immer ablehnen`,denyAlwaysTitle:`Diesen und alle zukünftigen, zum Muster passenden Aufrufe ablehnen (d)`,noTitle:`Diesen einzelnen Aufruf ablehnen (Esc / n)`,alwaysTitle:`Freigeben und das Muster für das Projekt speichern (a)`,yesTitle:`Diesen einzelnen Aufruf freigeben (y)`},n={connected:`Verbunden`,disconnected:`Getrennt`,notConnectedRetry:`Keine Verbindung zum Server — nach dem Wiederverbinden erneut versuchen.`,connecting:`Verbindung wird hergestellt…`,reconnecting:`Verbindung wird wiederhergestellt…`,ready:`Bereit`,error:`Fehler`,offline:`Offline`,online:`Online`,live:`Live`,budgetWarning:`Budget-Warnung`,running:`Läuft`,inProgress:`In Arbeit`,working:`arbeitet`},r={justNow:`gerade eben`,secondsAgo_one:`vor {{count}} Sekunde`,secondsAgo_other:`vor {{count}} Sekunden`,minutesAgo_one:`vor {{count}} Minute`,minutesAgo_other:`vor {{count}} Minuten`,hoursAgo_one:`vor {{count}} Stunde`,hoursAgo_other:`vor {{count}} Stunden`,daysAgo_one:`vor {{count}} Tag`,daysAgo_other:`vor {{count}} Tagen`,compactSecondsAgo:`vor {{count}} s`,compactMinutesAgo:`vor {{count}} min`,compactHoursAgo:`vor {{count}} Std.`},i={title:`Etwas ist schiefgelaufen`,body:`Ein Render-Fehler ist aufgetreten. Deine Sitzung ist auf dem Server noch aktiv — Neuladen setzt dort fort, wo du aufgehört hast.`,reload:`Seite neu laden`,tryAgain:`Erneut versuchen`,panelTitle:`{{name}} ist auf einen Fehler gestoßen`},a={noActivity:`Keine Aktivität`,noActivityYet:`Noch keine Aktivität`,activityMax:`Aktivitäts-Sparkline: max. {{count}} Ereignisse`,activityPeak:`Aktivitäts-Sparkline — Spitze {{count}} Ereignisse/Intervall`},o=`{{name}} wird geladen…`,s={action:e,confirm:t,status:n,time:r,error:i,sparkline:a,loadingNamed:o};export{e as action,t as confirm,s as default,i as error,o as loadingNamed,a as sparkline,n as status,r as time};
@@ -1 +0,0 @@
1
- var e={ok:`OK`,cancel:`Annuler`,create:`Créer`,save:`Enregistrer`,saved:`Enregistré`,dismiss:`Dismiss`,close:`Fermer`,yes:`Oui`,no:`Non`,delete:`Supprimer`,remove:`Retirer`,add:`Ajouter`,edit:`Modifier`,rename:`Renommer`,retry:`Réessayer`,reset:`Réinitialiser`,apply:`Appliquer`,confirm:`Confirmer`,back:`Retour`,next:`Suivant`,done:`Terminé`,refresh:`Actualiser`,copy:`Copier`,copied:`Copié`,copyFailed:`Échec de la copie — accès au presse-papiers bloqué.`,open:`Ouvrir`,start:`Démarrer`,stop:`Arrêter`,pause:`Pause`,resume:`Reprendre`,continue:`Continuer`,clear:`Effacer`,search:`Rechercher`,loading:`Chargement…`,saving:`Enregistrement…`,searchPlaceholder:`Rechercher…`,always:`Toujours`,deny:`Refuser`,undo:`Annuler`,all:`Tous`},t={title:`Approbation requise : {{tool}}`,descriptionEdit:`L'agent souhaite modifier un fichier. Examinez la demande ci-dessous et décidez s'il faut poursuivre.`,descriptionTool:`L'agent souhaite exécuter cet outil. Examinez la demande ci-dessous et décidez s'il faut poursuivre.`,fileModification:`Modification de fichier`,toolExecution:`Exécution d'outil`,riskSuffix:`Risque {{risk}}`,command:`Commande`,inputLabel:`Entrée :`,trustSuggestionTitle:`Suggestion de motif de confiance`,trustSuggestionHint:`Choisir Toujours ajoutera les appels correspondants à la liste blanche pour ce projet.`,yoloDestructiveNote:`YOLO est activé. Cette confirmation s'affiche encore car la requête a été classée comme destructrice.`,brainCountdown:`En attente de votre approbation · Brain prend le relais dans {{time}}`,brainDeciding:`Délai écoulé · Brain décide…`,skipApprovalsTitle:`Ignorer les futures approbations`,skipApprovalsHint:`Activez le mode YOLO et l'agent agit sans demander. Les opérations destructrices continuent de demander confirmation.`,enableYoloTitle:`Activer le mode YOLO (auto-approuver cet appel et les futurs appels non destructeurs)`,enableYoloBtn:`Activer YOLO`,denyAlways:`Toujours refuser`,denyAlwaysTitle:`Refuser cet appel et tous les futurs appels correspondant au motif (d)`,noTitle:`Refuser cet appel unique (Échap / n)`,alwaysTitle:`Approuver et mémoriser le motif pour le projet (a)`,yesTitle:`Approuver cet appel unique (y)`},n={connected:`Connecté`,disconnected:`Déconnecté`,notConnectedRetry:`Non connecté au serveur — réessayez après la reconnexion.`,connecting:`Connexion…`,reconnecting:`Reconnexion…`,ready:`Prêt`,error:`Erreur`,offline:`Hors ligne`,online:`En ligne`,live:`En direct`,budgetWarning:`alerte budget`,running:`En cours`,inProgress:`En cours`,working:`travaille`},r={justNow:`à l'instant`,secondsAgo_one:`il y a {{count}} seconde`,secondsAgo_other:`il y a {{count}} secondes`,minutesAgo_one:`il y a {{count}} minute`,minutesAgo_other:`il y a {{count}} minutes`,hoursAgo_one:`il y a {{count}} heure`,hoursAgo_other:`il y a {{count}} heures`,daysAgo_one:`il y a {{count}} jour`,daysAgo_other:`il y a {{count}} jours`,compactSecondsAgo:`il y a {{count}} s`,compactMinutesAgo:`il y a {{count}} min`,compactHoursAgo:`il y a {{count}} h`},i={title:`Une erreur est survenue`,body:`Une erreur de rendu s'est produite. Votre session est toujours active sur le serveur — recharger reprendra là où vous étiez.`,reload:`Recharger la page`,tryAgain:`Réessayer`,panelTitle:`{{name}} a rencontré une erreur`},a={noActivity:`Aucune activité`,noActivityYet:`Pas encore d'activité`,activityMax:`Sparkline d'activité : max {{count}} événements`,activityPeak:`Sparkline d'activité — pic {{count}} événements/intervalle`},o=`Chargement de {{name}}…`,s={action:e,confirm:t,status:n,time:r,error:i,sparkline:a,loadingNamed:o};export{e as action,t as confirm,s as default,i as error,o as loadingNamed,a as sparkline,n as status,r as time};
@@ -1 +0,0 @@
1
- var e={ok:`OK`,cancel:`Cancelar`,create:`Criar`,save:`Salvar`,saved:`Salvo`,dismiss:`Dismiss`,close:`Fechar`,yes:`Sim`,no:`Não`,delete:`Excluir`,remove:`Remover`,add:`Adicionar`,edit:`Editar`,rename:`Renomear`,retry:`Tentar novamente`,reset:`Redefinir`,apply:`Aplicar`,confirm:`Confirmar`,back:`Voltar`,next:`Avançar`,done:`Concluído`,refresh:`Atualizar`,copy:`Copiar`,copied:`Copiado`,copyFailed:`Falha ao copiar — acesso à área de transferência bloqueado.`,open:`Abrir`,start:`Iniciar`,stop:`Parar`,pause:`Pausar`,resume:`Retomar`,continue:`Continuar`,clear:`Limpar`,search:`Buscar`,loading:`Carregando…`,saving:`Salvando…`,searchPlaceholder:`Buscar…`,always:`Sempre`,deny:`Negar`,undo:`Desfazer`,all:`Todos`},t={title:`Aprovação necessária: {{tool}}`,descriptionEdit:`O agente deseja modificar um arquivo. Revise a solicitação abaixo e decida se deseja prosseguir.`,descriptionTool:`O agente deseja executar esta ferramenta. Revise a solicitação abaixo e decida se deseja prosseguir.`,fileModification:`Modificação de arquivo`,toolExecution:`Execução de ferramenta`,riskSuffix:`risco {{risk}}`,command:`Comando`,inputLabel:`Entrada:`,trustSuggestionTitle:`Sugestão de padrão de confiança`,trustSuggestionHint:`Escolher Sempre vai permitir chamadas correspondentes para este projeto.`,yoloDestructiveNote:`YOLO está ativado. Esta confirmação ainda é exibida porque a solicitação foi classificada como destrutiva.`,brainCountdown:`Aguardando sua aprovação · Brain assume em {{time}}`,brainDeciding:`Tempo esgotado · Brain está decidindo…`,skipApprovalsTitle:`Pular aprovações futuras`,skipApprovalsHint:`Ative o modo YOLO e o agente executará sem perguntar. Operações destrutivas ainda exigem confirmação.`,enableYoloTitle:`Ativar modo YOLO (aprovar automaticamente esta e futuras chamadas não destrutivas)`,enableYoloBtn:`Ativar YOLO`,denyAlways:`Negar sempre`,denyAlwaysTitle:`Rejeitar esta e todas as futuras chamadas correspondentes ao padrão (d)`,noTitle:`Rejeitar esta única chamada (Esc / n)`,alwaysTitle:`Aprovar e lembrar o padrão para o projeto (a)`,yesTitle:`Aprovar esta única chamada (y)`},n={connected:`Conectado`,disconnected:`Desconectado`,notConnectedRetry:`Sem conexão com o servidor — tente novamente após reconectar.`,connecting:`Conectando…`,reconnecting:`Reconectando…`,ready:`Pronto`,error:`Erro`,offline:`Offline`,online:`Online`,live:`Ao vivo`,budgetWarning:`alerta de orçamento`,running:`Em execução`,inProgress:`Em progresso`,working:`trabalhando`},r={justNow:`agora mesmo`,secondsAgo_one:`há {{count}} segundo`,secondsAgo_other:`há {{count}} segundos`,minutesAgo_one:`há {{count}} minuto`,minutesAgo_other:`há {{count}} minutos`,hoursAgo_one:`há {{count}} hora`,hoursAgo_other:`há {{count}} horas`,daysAgo_one:`há {{count}} dia`,daysAgo_other:`há {{count}} dias`,compactSecondsAgo:`há {{count}} s`,compactMinutesAgo:`há {{count}} min`,compactHoursAgo:`há {{count}} h`},i={title:`Algo deu errado`,body:`Ocorreu um erro de renderização. Sua sessão ainda está ativa no servidor — recarregar continuará de onde você parou.`,reload:`Recarregar página`,tryAgain:`Tentar novamente`,panelTitle:`{{name}} encontrou um erro`},a={noActivity:`Sem atividade`,noActivityYet:`Sem atividade ainda`,activityMax:`Sparkline de atividade: máx {{count}} eventos`,activityPeak:`Sparkline de atividade — pico {{count}} eventos/intervalo`},o=`Carregando {{name}}…`,s={action:e,confirm:t,status:n,time:r,error:i,sparkline:a,loadingNamed:o};export{e as action,t as confirm,s as default,i as error,o as loadingNamed,a as sparkline,n as status,r as time};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{i as t,t as n}from"./react-core-wiHys0m2.js";import{Mt as r,dt as i,ft as a,ht as o,lt as s,mt as c,pt as l,ut as u}from"./vendor-V3ydTHqN.js";import{t as d}from"./utils-CKsqCaP8.js";var f=e(t(),1),p=n(),m=s,h=c,g=f.forwardRef(({className:e,...t},n)=>(0,p.jsx)(l,{ref:n,className:d(`fixed inset-0 z-50 bg-black/65 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));g.displayName=l.displayName;var _=f.forwardRef(({className:e,children:t,showCloseButton:n=!0,...a},o)=>(0,p.jsxs)(h,{children:[(0,p.jsx)(g,{}),(0,p.jsxs)(i,{ref:o,className:d(`fixed left-[50%] top-[50%] z-50 grid max-h-[calc(100dvh-2rem)] w-[calc(100vw-1.5rem)] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-border/70 bg-card p-5 shadow-2xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:p-6`,e),...a,children:[t,n&&(0,p.jsxs)(u,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,children:[(0,p.jsx)(r,{className:`h-4 w-4`}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));_.displayName=i.displayName;var v=({className:e,...t})=>(0,p.jsx)(`div`,{className:d(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});v.displayName=`DialogHeader`;var y=({className:e,...t})=>(0,p.jsx)(`div`,{className:d(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});y.displayName=`DialogFooter`;var b=f.forwardRef(({className:e,...t},n)=>(0,p.jsx)(o,{ref:n,className:d(`text-lg font-semibold leading-none`,e),...t}));b.displayName=o.displayName;var x=f.forwardRef(({className:e,...t},n)=>(0,p.jsx)(a,{ref:n,className:d(`text-sm text-muted-foreground`,e),...t}));x.displayName=a.displayName;export{v as a,y as i,_ as n,b as o,x as r,m as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./react-core-wiHys0m2.js";import{t}from"./utils-CKsqCaP8.js";var n=e();function r({icon:e,title:r,description:i,action:a,className:o,panel:s=!0}){return(0,n.jsx)(`div`,{className:t(`flex min-h-0 min-w-0 flex-1 items-center justify-center p-4`,s&&`bg-[hsl(var(--surface-2)/0.45)]`,o),children:(0,n.jsxs)(`div`,{className:`ws-surface flex max-w-md flex-col items-center gap-3 rounded-xl p-6 text-center text-muted-foreground`,children:[e&&(0,n.jsx)(`span`,{className:`flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10 text-primary`,children:e}),(0,n.jsxs)(`div`,{children:[(0,n.jsx)(`p`,{className:`text-base font-semibold text-foreground`,children:r}),i&&(0,n.jsx)(`p`,{className:`mt-1 text-sm`,children:i})]}),a&&(0,n.jsx)(`button`,{type:`button`,onClick:a.onClick,className:`mt-1 rounded-md border border-border/70 bg-card/70 px-4 py-2 text-sm text-foreground shadow-sm transition-colors hover:bg-accent`,children:a.label})]})})}export{r as t};