@tickernelz/wardmote-ui 2026.1114.3 → 2026.1115.1

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 (830) hide show
  1. package/dist/assets/AccessSelectIdentity-BDYx1ZfF.js +1 -0
  2. package/dist/assets/AdapterManager-wzqGJRau.js +1 -0
  3. package/dist/assets/AdvancedToolsRoute-PuaX68-e.js +39 -0
  4. package/dist/assets/AgentActionButtons-PBLi7cme.js +1 -0
  5. package/dist/assets/AgentAvatar-CHxCQtX1.js +1 -0
  6. package/dist/assets/AgentBubbleActionRow-DDep61nY.js +1 -0
  7. package/dist/assets/AgentCharacter-DpdNYKTX.js +2 -0
  8. package/dist/assets/AgentChat-DCmfVJKS.js +1 -0
  9. package/dist/assets/AgentChats-B3tb98pI.js +1 -0
  10. package/dist/assets/AgentDefaults-DPZMbFMG.js +1 -0
  11. package/dist/assets/AgentDetail-DG3M9Hl0.js +38 -0
  12. package/dist/assets/AgentIconPicker-CDdlpWlV.js +1 -0
  13. package/dist/assets/AgentIdentity-C6wmi_qi.js +1 -0
  14. package/dist/assets/AgentMailCredentialField-DTevbVmi.js +1 -0
  15. package/dist/assets/AgentMultiSelect-isF4VAOe.js +1 -0
  16. package/dist/assets/AgentRoleEditor-DALs_S3f.js +1 -0
  17. package/dist/assets/AgentSetupPrompt-mJfq45rR.js +30 -0
  18. package/dist/assets/AgentTodoCard-Bdwa3xkJ.js +1 -0
  19. package/dist/assets/Agents-DmnvlGTF.js +3 -0
  20. package/dist/assets/AppDetail-BHyqsUiX.js +5 -0
  21. package/dist/assets/AppLogo-Da6J2kSR.js +1 -0
  22. package/dist/assets/AppNotConnected-2W-pW9mY.js +1 -0
  23. package/dist/assets/ApprovalCard-DVmCeyfI.js +1 -0
  24. package/dist/assets/ApprovalDetail-AANbOmCK.js +1 -0
  25. package/dist/assets/ApprovalPayload-BLeeYKBB.js +1 -0
  26. package/dist/assets/Approvals-DqksHo7L.js +1 -0
  27. package/dist/assets/AppsConnect-BV3-Loxz.js +1 -0
  28. package/dist/assets/AppsReview-BvGpVan3.js +1 -0
  29. package/dist/assets/ArtifactCard-HCFqmdxE.js +1 -0
  30. package/dist/assets/Artifacts-DZKuJ6T1.js +1 -0
  31. package/dist/assets/AssistantConnection-DPEgCb4L.js +1 -0
  32. package/dist/assets/AttentionInteractionResolver-D8mOBpPL.js +1 -0
  33. package/dist/assets/AuditHub-dY1zJeme.js +1 -0
  34. package/dist/assets/Auth-BB7VP3fC.js +3 -0
  35. package/dist/assets/BoardChat-BMgdy5Af.js +18 -0
  36. package/dist/assets/BoardClaim-Cy6RXIcK.js +1 -0
  37. package/dist/assets/BootstrapSetupUxLab-DAwV29G6.js +1 -0
  38. package/dist/assets/BreadcrumbContext-BKgeE2st.js +1 -0
  39. package/dist/assets/Browse-4kfyuiwY.js +1 -0
  40. package/dist/assets/BudgetPolicyCard-B1KYzony.js +1 -0
  41. package/dist/assets/CaseDetail-DVMTJkme.js +2 -0
  42. package/dist/assets/CaseIdentifierKey-Bxj5DIwm.js +1 -0
  43. package/dist/assets/Cases-DGFrwQeb.js +2 -0
  44. package/dist/assets/ChatEndpointDetail-Buc9fXlC.js +5 -0
  45. package/dist/assets/ChatEndpointSetup-BKCz5kC0.js +1 -0
  46. package/dist/assets/ChatIdentityConfirm-BzwwLyfO.js +1 -0
  47. package/dist/assets/ChoiceControls-Dt4s8r5z.js +1 -0
  48. package/dist/assets/CliAuth-CyZ8-Woi.js +1 -0
  49. package/dist/assets/CommentAttributionChip-CojGGiYj.js +1 -0
  50. package/dist/assets/Companies-kjgJWZ-C.js +1 -0
  51. package/dist/assets/CompanyAccess-DAyw_Okf.js +1 -0
  52. package/dist/assets/CompanyActivity-DLMXKDtI.js +1 -0
  53. package/dist/assets/CompanyConnections-Brfso-2s.js +1 -0
  54. package/dist/assets/CompanyContext-dsHNbwL5.js +1 -0
  55. package/dist/assets/CompanyEnvironments-DnC7KgK-.js +3 -0
  56. package/dist/assets/CompanyExport-fesuaqwz.js +4 -0
  57. package/dist/assets/CompanyImport-BtPGkRin.js +1 -0
  58. package/dist/assets/CompanySettings-DXisl4LW.js +1 -0
  59. package/dist/assets/CompanySettingsPluginPage-BrCEVu33.js +1 -0
  60. package/dist/assets/CompanySkills-BpjivjfV.js +10 -0
  61. package/dist/assets/ComposerAddMenu-DE7U8fwA.js +3 -0
  62. package/dist/assets/ConfigureBuiltInAgentModal-DrV8wUIP.js +1 -0
  63. package/dist/assets/ConnectionSetupFlow-CVuuI_IB.js +40 -0
  64. package/dist/assets/CopyText-_f1fNkU9.js +1 -0
  65. package/dist/assets/CopyableGatewayUrl-DgNPT51w.js +1 -0
  66. package/dist/assets/CrossIssueCollaborationUxLab-tDhS-jq4.js +1 -0
  67. package/dist/assets/Dashboard-Dlkelv3J.js +2 -0
  68. package/dist/assets/DecisionDateChips-CxmRovA6.js +1 -0
  69. package/dist/assets/DecisionModelSettings-CRU_tFiW.js +1 -0
  70. package/dist/assets/DecisionQueuePage-Bz2aBIyE.js +1 -0
  71. package/dist/assets/DesignGuide-BJdn9IGM.js +23 -0
  72. package/dist/assets/DocumentFrameHeader-DJxQSrVU.js +1 -0
  73. package/dist/assets/EmailConnectionAccess-Bmzjruyw.js +1 -0
  74. package/dist/assets/EmailEndpointSetup-CjSTm-rN.js +1 -0
  75. package/dist/assets/EnforcementBanner-CvSlJnT3.js +1 -0
  76. package/dist/assets/EntityRow-B_hi0SpF.js +1 -0
  77. package/dist/assets/ExecutionWorkspaceDetail-BUkTxgOZ.js +19 -0
  78. package/dist/assets/FilterBar-B0Ky4IKW.js +1 -0
  79. package/dist/assets/FoldCurtain-DpaCBMQq.js +1 -0
  80. package/dist/assets/FolderControls-Bnct9FlN.js +1 -0
  81. package/dist/assets/GatewayDetail-D_0OpEQW.js +2 -0
  82. package/dist/assets/GatewaysList-Yc-06mzp.js +1 -0
  83. package/dist/assets/GoalDetail-C4avgns2.js +1 -0
  84. package/dist/assets/GoalTree-Bh06Dww2.js +1 -0
  85. package/dist/assets/Goals-BJY0PTyv.js +1 -0
  86. package/dist/assets/Identity-D6-4ufCa.js +1 -0
  87. package/dist/assets/ImageGalleryModal-ed5kLgZ-.js +1 -0
  88. package/dist/assets/Inbox-BgVGo-aW.js +2 -0
  89. package/dist/assets/InlineBanner-BxYdCuGP.js +1 -0
  90. package/dist/assets/InlineEditor-CDKgapVj.js +1 -0
  91. package/dist/assets/InlineEntitySelector-DcWijm3s.js +1 -0
  92. package/dist/assets/InstanceAccess-DGzXC0Xl.js +1 -0
  93. package/dist/assets/InstanceAdvanced-BAta7c7N.js +1 -0
  94. package/dist/assets/InstanceFeatures-Dh9AJ16M.js +1 -0
  95. package/dist/assets/InviteLanding-Bvpq3qG3.js +1 -0
  96. package/dist/assets/IssueChatLongThreadPerf-CUlzyq91.js +2 -0
  97. package/dist/assets/IssueChatThread-CpGgJcpJ.js +40 -0
  98. package/dist/assets/IssueDetail-5bLe_S1N.js +9 -0
  99. package/dist/assets/IssueDocumentAnnotations-BusZRPJz.js +2 -0
  100. package/dist/assets/IssueOutputSection-BhowelZn.js +1 -0
  101. package/dist/assets/IssueRecoveryActionCard-CgqB8CEL.js +1 -0
  102. package/dist/assets/IssueReferencePill-Dib8WE_1.js +1 -0
  103. package/dist/assets/IssueThreadInteractionCard-CYdJ8gRL.js +9 -0
  104. package/dist/assets/IssueWriteDenialNotice-BSocbA8i.js +1 -0
  105. package/dist/assets/Issues-CDQAOtjN.js +5 -0
  106. package/dist/assets/JoinRequestQueue-m5g8CeX_.js +1 -0
  107. package/dist/assets/JsonSchemaForm-DcMqKoRk.js +1 -0
  108. package/dist/assets/LiveNowTodoLine-CGUJ_cXu.js +1 -0
  109. package/dist/assets/ManagedAiConnectionDetails-0uz-hKFh.js +1 -0
  110. package/dist/assets/MarkdownBody-DneqWO_F.js +16 -0
  111. package/dist/assets/MarkdownEditor-Dop0pvpQ.js +85 -0
  112. package/dist/assets/McpConnect-DbpwCSYX.js +1 -0
  113. package/dist/assets/MembershipAction-Ba4rOQp4.js +1 -0
  114. package/dist/assets/MetricCard-C65n44vu.js +1 -0
  115. package/dist/assets/MissingPluginTabPlaceholder-DzxTVHCm.js +1 -0
  116. package/dist/assets/ModelsAndProviders-0la8_eZ7.js +1 -0
  117. package/dist/assets/MootMark-Cw1oipfs.js +1 -0
  118. package/dist/assets/NewAgent-Cs_Mh-sB.js +1 -0
  119. package/dist/assets/OmpAllSettings-Ca-YbQz3.js +1 -0
  120. package/dist/assets/OpenwaGatewayManager-CR2JaccN.js +2 -0
  121. package/dist/assets/PathInstructionsModal-BJj8D16I.js +1 -0
  122. package/dist/assets/PipelineSettings-BrlthSyW.js +2 -0
  123. package/dist/assets/Pipelines-bHO4S8E1.js +1 -0
  124. package/dist/assets/PixelsOffice-CdF9QIST.js +2 -0
  125. package/dist/assets/PluginManager-CCLKIrQH.js +1 -0
  126. package/dist/assets/PluginPage-5itjua7b.js +1 -0
  127. package/dist/assets/PluginSettings-Bg5yLz_X.js +1 -0
  128. package/dist/assets/ProfileDetailRoute-BSUVMtfC.js +1 -0
  129. package/dist/assets/ProfileSettings-DinmdJuV.js +1 -0
  130. package/dist/assets/ProfileWizardRoute-DPs2iR-q.js +1 -0
  131. package/dist/assets/ProjectDetail-CvPXTzwl.js +1 -0
  132. package/dist/assets/ProjectWorkspaceDetail-ZfeiCJpp.js +29 -0
  133. package/dist/assets/ProjectWorkspacesContent-BTUqmlYC.js +1 -0
  134. package/dist/assets/Projects-DVgqdO8I.js +1 -0
  135. package/dist/assets/PublicIssueSharePage-X92-b84c.js +1 -0
  136. package/dist/assets/QuestionForm-CichUYOX.js +7 -0
  137. package/dist/assets/QuotaBar-BGCW-X3-.js +1 -0
  138. package/dist/assets/RepositoryEditor-DjowAt7s.js +1 -0
  139. package/dist/assets/ResponsibleUserDenialNotice-Bln16DNY.js +1 -0
  140. package/dist/assets/ResponsibleUserDenialUxLab-D7OT10CT.js +1 -0
  141. package/dist/assets/ReviewQueueCard-msKNf5Du.js +1 -0
  142. package/dist/assets/RichWorkProductCard-JTRtbXzl.js +1 -0
  143. package/dist/assets/RoutineActivityRow-FRpZgdY9.js +1 -0
  144. package/dist/assets/RoutineDetail-CdxRdnyK.js +2 -0
  145. package/dist/assets/RoutineRunVariablesDialog-D9IK3BBQ.js +1 -0
  146. package/dist/assets/RoutineVariablesEditor-Donmo-Ha.js +1 -0
  147. package/dist/assets/Routines-B3W3ssFy.js +1 -0
  148. package/dist/assets/ScrollToBottom-Dc5farUa.js +1 -0
  149. package/dist/assets/Search-8RHc8IuK.js +1 -0
  150. package/dist/assets/SearchableSelect-Dt_6_dds.js +1 -0
  151. package/dist/assets/Secrets-DfFMdsTS.js +4 -0
  152. package/dist/assets/SetupWizard-Bywkpo--.js +1 -0
  153. package/dist/assets/SidebarContext-B3wVOcP3.js +1 -0
  154. package/dist/assets/SidebarNavItem-DKoBWUYG.js +1 -0
  155. package/dist/assets/SkillBinaryFile-StCRWUUR.js +1 -0
  156. package/dist/assets/SkillCardIcon-DV49-Rqj.js +2 -0
  157. package/dist/assets/SkillSourceTree-DVuWlLvA.js +2 -0
  158. package/dist/assets/SkillSources-D_lELqEL.js +2 -0
  159. package/dist/assets/SkillStudio-C8V0XI-Z.js +9 -0
  160. package/dist/assets/SourceTrustBadge-B3O7Zxke.js +1 -0
  161. package/dist/assets/StatusCards-tuer3vrV.js +1 -0
  162. package/dist/assets/StatusIcon-DQw2SvHx.js +1 -0
  163. package/dist/assets/SummarySlotCard-DsQxd3b1.js +1 -0
  164. package/dist/assets/TaskChatComposerTakeoverContext-CDZizi4n.js +1 -0
  165. package/dist/assets/TaskChatLab-_8AHevO6.js +11 -0
  166. package/dist/assets/TaskChatMarker-BRjLDtZQ.js +2 -0
  167. package/dist/assets/TaskChatProtocolCard-SH4wNqXW.js +1 -0
  168. package/dist/assets/TaskChatThreadView-CuDYP7f8.js +4 -0
  169. package/dist/assets/TaskTreeControls-DtRGFlNB.js +3 -0
  170. package/dist/assets/Terminal-D7wTqLHp.js +1 -0
  171. package/dist/assets/TerminalView-f84aIuhu.js +58 -0
  172. package/dist/assets/ThemeContext-VwmgZV3v.js +1 -0
  173. package/dist/assets/ThemeToggle-zSm7ZVJQ.js +1 -0
  174. package/dist/assets/ToastContext-Brs-4k-1.js +1 -0
  175. package/dist/assets/ToolsAdminGate-r7j5MzHI.js +1 -0
  176. package/dist/assets/TrustPresetSection-6ync8Gzj.js +1 -0
  177. package/dist/assets/UserProfile-B2agyhEt.js +1 -0
  178. package/dist/assets/WebhookUrlWarning-DL5kWPiZ.js +1 -0
  179. package/dist/assets/WhatNeedsMe-BVn0nYYp.js +1 -0
  180. package/dist/assets/WorkspaceRuntimeControls-C-Iz5m02.js +1 -0
  181. package/dist/assets/Workspaces-COTcGbTG.js +1 -0
  182. package/dist/assets/access-GBXLU9Vk.js +1 -0
  183. package/dist/assets/activity-CYcMbzsk.js +1 -0
  184. package/dist/assets/activity-fmxP7mpr.js +1 -0
  185. package/dist/assets/activity-format-DoAsbE0g.js +1 -0
  186. package/dist/assets/adapter-display-registry-C6GXIVXZ.js +1 -0
  187. package/dist/assets/adapters-CFK_eCPY.js +1 -0
  188. package/dist/assets/agent-avatar-url-D2n1Ozed.js +1 -0
  189. package/dist/assets/agent-config-primitives-Cs7txZkg.js +1 -0
  190. package/dist/assets/agentChats-B6eLnzJT.js +1 -0
  191. package/dist/assets/agents-B46GLJqX.js +1 -0
  192. package/dist/assets/alert-dialog-BvLBb6EL.js +1 -0
  193. package/dist/assets/app-connect-policy-BuNz5ikd.js +1 -0
  194. package/dist/assets/archive-CJfzKyJd.js +1 -0
  195. package/dist/assets/archive-restore-Bu12jvK6.js +1 -0
  196. package/dist/assets/arrow-down-Ci2NVHDm.js +1 -0
  197. package/dist/assets/arrow-down-left-Dk2oXKyh.js +1 -0
  198. package/dist/assets/arrow-left-C6eRcImQ.js +1 -0
  199. package/dist/assets/arrow-right-rIiVMAiv.js +1 -0
  200. package/dist/assets/arrow-up-Dnv0YU10.js +1 -0
  201. package/dist/assets/arrow-up-down-DYp2VJib.js +1 -0
  202. package/dist/assets/arrow-up-right-BWJhDk_Y.js +1 -0
  203. package/dist/assets/artifacts-BwKfWH9Y.js +1 -0
  204. package/dist/assets/assets-CcTyp_pK.js +1 -0
  205. package/dist/assets/attachment-icon-CABmZCE-.js +1 -0
  206. package/dist/assets/avatar-DWrtTUFj.js +1 -0
  207. package/dist/assets/badge-Bw9Yv7_W.js +1 -0
  208. package/dist/assets/badge-check-C3SQez1U.js +1 -0
  209. package/dist/assets/book-open-amuA6uFy.js +1 -0
  210. package/dist/assets/bot-DRofiPdb.js +1 -0
  211. package/dist/assets/boxes-5gvA2uo8.js +1 -0
  212. package/dist/assets/braces-C5ZUDIxe.js +1 -0
  213. package/dist/assets/browser-use-BILV_BYD.js +1 -0
  214. package/dist/assets/budgets-DZOWP4Hh.js +1 -0
  215. package/dist/assets/button-bS07vQAg.js +1 -0
  216. package/dist/assets/calendar-clock-BYIHtGGP.js +1 -0
  217. package/dist/assets/card-BdxT61BL.js +1 -0
  218. package/dist/assets/cases-CZE-FTip.js +1 -0
  219. package/dist/assets/chatEndpoints-91qyAU1E.js +1 -0
  220. package/dist/assets/check-Cn0uuQ_e.js +1 -0
  221. package/dist/assets/checkbox-tTcdQ3wz.js +1 -0
  222. package/dist/assets/chevron-down-DA6rxxgD.js +1 -0
  223. package/dist/assets/chevron-left-zJln1v3t.js +1 -0
  224. package/dist/assets/chevron-right-dRlTJLmW.js +1 -0
  225. package/dist/assets/chevron-up-OGjfRrmd.js +1 -0
  226. package/dist/assets/chip-C1sAQ_om.js +1 -0
  227. package/dist/assets/circle-D37l2gIX.js +1 -0
  228. package/dist/assets/circle-alert-Da1ne2k3.js +1 -0
  229. package/dist/assets/circle-dot-BflVdAjA.js +1 -0
  230. package/dist/assets/circle-question-mark-D9QciJpU.js +1 -0
  231. package/dist/assets/circle-slash-C-AiIJx8.js +1 -0
  232. package/dist/assets/circle-x-CSlDT5zP.js +1 -0
  233. package/dist/assets/clipboard-paste-CDNv7EUP.js +1 -0
  234. package/dist/assets/clock-CzJ0Y1V8.js +1 -0
  235. package/dist/assets/cloud-DFiLk-Nc.js +1 -0
  236. package/dist/assets/code-xml-BdOLy6gM.js +1 -0
  237. package/dist/assets/coins-DxyWOmEZ.js +1 -0
  238. package/dist/assets/collapsible-9d0h08gJ.js +1 -0
  239. package/dist/assets/columns-3-Bd3qBbsG.js +1 -0
  240. package/dist/assets/command-DibaV-of.js +5 -0
  241. package/dist/assets/companies-query-lyTYPUyy.js +1 -0
  242. package/dist/assets/connection-identity-CymhAKo1.js +1 -0
  243. package/dist/assets/connection-owner-DLe7opwb.js +1 -0
  244. package/dist/assets/copy-B9wRjKte.js +1 -0
  245. package/dist/assets/createLucideIcon-Dp_BESPI.js +94 -0
  246. package/dist/assets/decision-models-BtPQZgAS.js +1 -0
  247. package/dist/assets/dialog-BbBEA9p-.js +1 -0
  248. package/dist/assets/dist-B4RM_iwm.js +1 -0
  249. package/dist/assets/dist-BUubItNY.js +1 -0
  250. package/dist/assets/dist-Bfnp-w05.js +1 -0
  251. package/dist/assets/dist-Br1hXe2P.js +1 -0
  252. package/dist/assets/dist-Bt8JSjoR.js +1 -0
  253. package/dist/assets/dist-ByLqhYXa.js +1 -0
  254. package/dist/assets/dist-CYtosku9.js +1 -0
  255. package/dist/assets/dist-CaA23w-w.js +1 -0
  256. package/dist/assets/dist-CgTn_tfa.js +1 -0
  257. package/dist/assets/dist-DZG7nTA7.js +1 -0
  258. package/dist/assets/dist-DqqULahA.js +1 -0
  259. package/dist/assets/dist-DrKAhw8j.js +1 -0
  260. package/dist/assets/dist-Dy96Oxtm.js +1 -0
  261. package/dist/assets/dropdown-menu-CR4r_wCy.js +1 -0
  262. package/dist/assets/ellipsis-D-B_YyXO.js +1 -0
  263. package/dist/assets/ellipsis-vertical-Cvwuft46.js +1 -0
  264. package/dist/assets/email-B4M0T3qh.js +1 -0
  265. package/dist/assets/environment-variables-editor-CMuDqyG3.js +1 -0
  266. package/dist/assets/environments-DXsydWIO.js +1 -0
  267. package/dist/assets/es2015-C36Uu4St.js +41 -0
  268. package/dist/assets/external-link-dcZMvrBY.js +1 -0
  269. package/dist/assets/eye-FIf8kCfJ.js +1 -0
  270. package/dist/assets/eye-off-DyiqgKoU.js +1 -0
  271. package/dist/assets/fast-responses-BRhTUKUm.js +1 -0
  272. package/dist/assets/file-BTR-cl5V.js +1 -0
  273. package/dist/assets/file-code-corner-D56_khbN.js +1 -0
  274. package/dist/assets/file-question-mark-DKgQ4Qx0.js +1 -0
  275. package/dist/assets/file-search-qrHVliUu.js +1 -0
  276. package/dist/assets/file-text-C3HKnY1t.js +1 -0
  277. package/dist/assets/flag-DtP1qZ9D.js +1 -0
  278. package/dist/assets/flask-conical-CEy_2iN6.js +1 -0
  279. package/dist/assets/folder-git-2-sTNuDiCh.js +1 -0
  280. package/dist/assets/folder-open-BjdwrLu4.js +1 -0
  281. package/dist/assets/folder-search-C2QnQ02g.js +1 -0
  282. package/dist/assets/funnel-B6zSgvNd.js +1 -0
  283. package/dist/assets/git-pull-request-BVLQZnFj.js +1 -0
  284. package/dist/assets/github-icon-BvWUh1KT.js +1 -0
  285. package/dist/assets/health-CcqADKZw.js +1 -0
  286. package/dist/assets/heartbeats-Do5AjDtr.js +1 -0
  287. package/dist/assets/inbox-Dob9VqgU.js +1 -0
  288. package/dist/assets/inboxArchiveCache-DyAJQXXz.js +1 -0
  289. package/dist/assets/index-Bz_e1N10.css +2 -0
  290. package/dist/assets/index-CTvFhj4O.js +67 -0
  291. package/dist/assets/info-Tk1lW8gi.js +1 -0
  292. package/dist/assets/input-Cq0iBDAN.js +1 -0
  293. package/dist/assets/instanceSettings-kW2DXfL4.js +1 -0
  294. package/dist/assets/interaction-audience-eGPW7epJ.js +1 -0
  295. package/dist/assets/interaction-card-visibility-CMe0W5FM.js +1 -0
  296. package/dist/assets/issue-blockers-B3cNlMTc.js +1 -0
  297. package/dist/assets/issue-filters-Ce8v1l6U.js +1 -0
  298. package/dist/assets/issue-output-DJVhoabR.js +1 -0
  299. package/dist/assets/issue-properties-CpHUNwqE.js +4 -0
  300. package/dist/assets/issue-share-Csd88Ksi.js +1 -0
  301. package/dist/assets/issue-workspace-selection-B39y05Qr.js +1 -0
  302. package/dist/assets/key-round-DnZyJChv.js +1 -0
  303. package/dist/assets/label-C8OzDIYT.js +1 -0
  304. package/dist/assets/layout-dashboard-BKS8iwhq.js +1 -0
  305. package/dist/assets/link-2-Cl0gUYUT.js +1 -0
  306. package/dist/assets/link-DJXsSlVf.js +1 -0
  307. package/dist/assets/list-filter-WC4U6eSH.js +1 -0
  308. package/dist/assets/list-todo-CQxIFFFt.js +1 -0
  309. package/dist/assets/log-in-CqSMhQnh.js +1 -0
  310. package/dist/assets/maximize-2-amZRvyCt.js +1 -0
  311. package/dist/assets/mention-chips-CE46mpoH.js +17 -0
  312. package/dist/assets/message-square-plus-C_l_rEfF.js +1 -0
  313. package/dist/assets/minus-Buu9ydDk.js +1 -0
  314. package/dist/assets/model-fallback-DLgR8yUB.js +1 -0
  315. package/dist/assets/model-picker-fields-B9Syk1Po.js +1 -0
  316. package/dist/assets/network-CwJcZzzO.js +1 -0
  317. package/dist/assets/octagon-alert-Brf0_Mjx.js +1 -0
  318. package/dist/assets/octagon-x-Buu9jyYv.js +1 -0
  319. package/dist/assets/omp-settings-model-tJ2dGg2i.js +1 -0
  320. package/dist/assets/package-Cear_jmz.js +1 -0
  321. package/dist/assets/pause-BUOF24wZ.js +1 -0
  322. package/dist/assets/pen-line-BzM9aj3c.js +1 -0
  323. package/dist/assets/pipeline-stage-presentation-Bv9izQJh.js +2 -0
  324. package/dist/assets/pipelines-CNnZNrdV.js +1 -0
  325. package/dist/assets/play-BbPL3U2Z.js +1 -0
  326. package/dist/assets/plug-8Lp1g1l2.js +1 -0
  327. package/dist/assets/plugins-DkSvCKMQ.js +1 -0
  328. package/dist/assets/plus--_-YgodI.js +1 -0
  329. package/dist/assets/popover-CgIDA573.js +1 -0
  330. package/dist/assets/power-CApeDdsJ.js +1 -0
  331. package/dist/assets/presentation-mode-CA39Cukj.js +1 -0
  332. package/dist/assets/profile-summary-Djbqv9qM.js +1 -0
  333. package/dist/assets/projects-oY9VYW38.js +1 -0
  334. package/dist/assets/proposal-review-Duwdz6By.js +1 -0
  335. package/dist/assets/queryClient-DexRZQAq.js +1 -0
  336. package/dist/assets/queryKeys-Sk0U6x0H.js +1 -0
  337. package/dist/assets/radio-Cqg3txrz.js +1 -0
  338. package/dist/assets/radio-card-Dt1-FCvF.js +1 -0
  339. package/dist/assets/recent-agent-chats-d0l_Yj1L.js +1 -0
  340. package/dist/assets/refresh-cw-DCZxsFMf.js +1 -0
  341. package/dist/assets/repeat-CC7VfEiF.js +1 -0
  342. package/dist/assets/resizable-panels-ByTtx3M4.js +1 -0
  343. package/dist/assets/review-policy-Dxd8aZiE.js +1 -0
  344. package/dist/assets/rotate-ccw-C_1vZuhL.js +1 -0
  345. package/dist/assets/rotate-cw-I3e1Xw1W.js +1 -0
  346. package/dist/assets/router-qrDA_fDm.js +1 -0
  347. package/dist/assets/routines-CJdlnuen.js +1 -0
  348. package/dist/assets/runRetryState-dV9X1tL7.js +1 -0
  349. package/dist/assets/save-DqST8D4G.js +1 -0
  350. package/dist/assets/schema-config-fields-DWL2SGAV.js +1 -0
  351. package/dist/assets/scroll-area-CpCJXkWU.js +1 -0
  352. package/dist/assets/scroll-text-BJJb9Pmr.js +1 -0
  353. package/dist/assets/search-ibIk5iio.js +1 -0
  354. package/dist/assets/secrets-Bm2e103f.js +1 -0
  355. package/dist/assets/select-DHbqeY8-.js +1 -0
  356. package/dist/assets/send-C41Z1Xid.js +1 -0
  357. package/dist/assets/separator-BidXiA6w.js +1 -0
  358. package/dist/assets/server-CMSWA2Ot.js +1 -0
  359. package/dist/assets/server-cog-BD1bLG6y.js +1 -0
  360. package/dist/assets/settings-C9BE0rWf.js +1 -0
  361. package/dist/assets/shared-B3v_Oowm.js +1 -0
  362. package/dist/assets/sheet-CBSmXpkT.js +1 -0
  363. package/dist/assets/shield-alert-YwTMOIDC.js +1 -0
  364. package/dist/assets/shield-check-wN-_3-kE.js +1 -0
  365. package/dist/assets/shield-fs-95RH0.js +1 -0
  366. package/dist/assets/shield-question-mark-BMirO5nk.js +1 -0
  367. package/dist/assets/shield-x-D-Cey5j5.js +1 -0
  368. package/dist/assets/sidebarPreferences-DrwUhshr.js +1 -0
  369. package/dist/assets/skeleton-BGHeLb8T.js +1 -0
  370. package/dist/assets/slots-CoW6zbG2.js +49 -0
  371. package/dist/assets/smoke-lab-matrix-Bd93k2qI.js +1 -0
  372. package/dist/assets/square-CxemVvLC.js +1 -0
  373. package/dist/assets/star-CpH09lE0.js +15 -0
  374. package/dist/assets/sun-BmLLKuXZ.js +1 -0
  375. package/dist/assets/system-notice-comment-C59ifr3s.js +1 -0
  376. package/dist/assets/tabs-BeNCSQfH.js +1 -0
  377. package/dist/assets/task-chat-attachments-fAxgAmq-.js +10 -0
  378. package/dist/assets/terminal-BHpyJMSm.js +1 -0
  379. package/dist/assets/textarea-BCpiepe1.js +1 -0
  380. package/dist/assets/thumbs-down-DZc6J8BY.js +1 -0
  381. package/dist/assets/thumbs-up-BSrfRAoM.js +1 -0
  382. package/dist/assets/toggle-switch-4ZdUl1cb.js +1 -0
  383. package/dist/assets/tools-CtHWMX0r.js +1 -0
  384. package/dist/assets/tooltip-BeXkeOXn.js +1 -0
  385. package/dist/assets/transcript-adapter-CSvVMe6r.js +5 -0
  386. package/dist/assets/trash-DR-HYzK4.js +1 -0
  387. package/dist/assets/triangle-alert-2xDDaXgc.js +1 -0
  388. package/dist/assets/use-adapter-capabilities-Doio2Kd7.js +1 -0
  389. package/dist/assets/use-copy-action-BwdiNLQ4.js +1 -0
  390. package/dist/assets/useAgentChatEnabled-DAjgbjFc.js +1 -0
  391. package/dist/assets/useAutosaveIndicator-SeuXAwa6.js +1 -0
  392. package/dist/assets/useHiddenSettings-su4lPXtZ.js +1 -0
  393. package/dist/assets/useInfiniteQuery-DpkS2abG.js +1 -0
  394. package/dist/assets/useInstanceFeatureSettings-Jo6rkq0M.js +1 -0
  395. package/dist/assets/useManagedSandboxOnly-mYadyWYh.js +1 -0
  396. package/dist/assets/useMobileEntityPickerViewportStyle-Dndq48zX.js +1 -0
  397. package/dist/assets/usePrefersReducedMotion-CtREi7r-.js +1 -0
  398. package/dist/assets/useProfilesData-yVfX1sRo.js +1 -0
  399. package/dist/assets/useQueries-SZ8rhHDB.js +1 -0
  400. package/dist/assets/useSecondTick-D3ecvH8m.js +1 -0
  401. package/dist/assets/useSharedPolling-SqFIqyK_.js +1 -0
  402. package/dist/assets/useSummaryDraftStream-D0yoE8Rp.js +3 -0
  403. package/dist/assets/user-BVhnWxYc.js +1 -0
  404. package/dist/assets/user-check-BUwzmc0Y.js +1 -0
  405. package/dist/assets/user-minus-DUnrN5mR.js +1 -0
  406. package/dist/assets/user-round-DlEVjh6C.js +1 -0
  407. package/dist/assets/user-x-3uNljA-y.js +1 -0
  408. package/dist/assets/users-CycOHqnK.js +1 -0
  409. package/dist/assets/wand-sparkles-DpBlMupu.js +1 -0
  410. package/dist/assets/webhook-DmWTKMCs.js +1 -0
  411. package/dist/assets/x-C-YdLCiV.js +1 -0
  412. package/dist/index.html +192 -191
  413. package/dist/sw.js +1 -1
  414. package/package.json +1 -1
  415. package/dist/assets/AccessSelectIdentity-Dp--1kWe.js +0 -1
  416. package/dist/assets/ActiveAgentsPanel-CF0fwsze.js +0 -1
  417. package/dist/assets/AdapterManager-DUXWwNxv.js +0 -1
  418. package/dist/assets/AdvancedToolsRoute-BamlkE3p.js +0 -39
  419. package/dist/assets/AgentActionButtons-CPIhsP04.js +0 -1
  420. package/dist/assets/AgentAvatar-DgGEobSY.js +0 -1
  421. package/dist/assets/AgentBubbleActionRow-BUAUmJKa.js +0 -1
  422. package/dist/assets/AgentCharacter-BTEn5MBu.js +0 -2
  423. package/dist/assets/AgentChat-BAn_ghsu.js +0 -1
  424. package/dist/assets/AgentChats-f73hodzr.js +0 -1
  425. package/dist/assets/AgentDefaults-BL1XYvEo.js +0 -1
  426. package/dist/assets/AgentDetail-DthxFfuB.js +0 -38
  427. package/dist/assets/AgentIconPicker-D87bSkxE.js +0 -1
  428. package/dist/assets/AgentIdentity-I_kB4rMX.js +0 -1
  429. package/dist/assets/AgentMailCredentialField-L4T0REEW.js +0 -1
  430. package/dist/assets/AgentMultiSelect-DsJfZtR2.js +0 -1
  431. package/dist/assets/AgentRoleEditor-DTKNKZXs.js +0 -1
  432. package/dist/assets/AgentSetupPrompt-DYBB5Med.js +0 -30
  433. package/dist/assets/AgentTodoCard-BvgkWD0T.js +0 -1
  434. package/dist/assets/Agents-D5qI6yZZ.js +0 -3
  435. package/dist/assets/AppDetail-B6PtMl8J.js +0 -5
  436. package/dist/assets/AppLogo-CZr1Y48O.js +0 -1
  437. package/dist/assets/AppNotConnected-C_tGn786.js +0 -1
  438. package/dist/assets/ApprovalCard-DrfZAdGQ.js +0 -1
  439. package/dist/assets/ApprovalDetail-sfPpfdXc.js +0 -1
  440. package/dist/assets/ApprovalPayload-C4F3ItGH.js +0 -1
  441. package/dist/assets/Approvals-DZoMl7_m.js +0 -1
  442. package/dist/assets/AppsConnect-D8Gu187f.js +0 -1
  443. package/dist/assets/AppsReview-DokFETm0.js +0 -1
  444. package/dist/assets/ArtifactCard-BTf2-JIV.js +0 -1
  445. package/dist/assets/Artifacts-CK8FaygC.js +0 -1
  446. package/dist/assets/AssistantConnection-BlKC7jk0.js +0 -1
  447. package/dist/assets/AttentionInteractionResolver-C2iz6oqT.js +0 -1
  448. package/dist/assets/AuditHub-DMhunMn8.js +0 -1
  449. package/dist/assets/Auth-_P9t1YSS.js +0 -3
  450. package/dist/assets/BoardChat-C4W8JLKB.js +0 -18
  451. package/dist/assets/BoardClaim-CsomHmd6.js +0 -1
  452. package/dist/assets/BootstrapSetupUxLab-D58OwniR.js +0 -1
  453. package/dist/assets/BreadcrumbContext-BVZDZoC0.js +0 -1
  454. package/dist/assets/Browse-BDjohBak.js +0 -1
  455. package/dist/assets/BudgetPolicyCard-DfAAgk9Z.js +0 -1
  456. package/dist/assets/CaseDetail-CL0FC5sG.js +0 -2
  457. package/dist/assets/CaseIdentifierKey-D8Xi16PS.js +0 -1
  458. package/dist/assets/Cases-C-7dXrEt.js +0 -2
  459. package/dist/assets/ChatEndpointDetail-C-IYAYG8.js +0 -5
  460. package/dist/assets/ChatEndpointSetup-CM3QixMj.js +0 -1
  461. package/dist/assets/ChatIdentityConfirm-DCI5BnWo.js +0 -1
  462. package/dist/assets/ChoiceControls-3Qpci4yE.js +0 -1
  463. package/dist/assets/CliAuth-CRG0c0EH.js +0 -1
  464. package/dist/assets/CommentAttributionChip-fz5Mn0RW.js +0 -1
  465. package/dist/assets/Companies-97toQ8Cw.js +0 -1
  466. package/dist/assets/CompanyAccess-CKhS1BaS.js +0 -1
  467. package/dist/assets/CompanyActivity-DzNrAyAb.js +0 -1
  468. package/dist/assets/CompanyConnections-ORCH4i3U.js +0 -1
  469. package/dist/assets/CompanyContext-CSrVsSze.js +0 -1
  470. package/dist/assets/CompanyEnvironments-DphURbtb.js +0 -3
  471. package/dist/assets/CompanyExport-XeVCUcK3.js +0 -4
  472. package/dist/assets/CompanyImport-DPKpUaRa.js +0 -1
  473. package/dist/assets/CompanySettings-4JQpzuS1.js +0 -1
  474. package/dist/assets/CompanySettingsPluginPage-cVvXh0_G.js +0 -1
  475. package/dist/assets/CompanySkills-BA_9Ztwj.js +0 -10
  476. package/dist/assets/ComposerAddMenu-DNp4ecG8.js +0 -3
  477. package/dist/assets/ConfigureBuiltInAgentModal-CQCHDkl4.js +0 -1
  478. package/dist/assets/ConnectionSetupFlow-BaarToKu.js +0 -40
  479. package/dist/assets/CopyText-Cr673_Kx.js +0 -1
  480. package/dist/assets/CopyableGatewayUrl-DxQsV7Hr.js +0 -1
  481. package/dist/assets/CrossIssueCollaborationUxLab-CEh5B2iJ.js +0 -1
  482. package/dist/assets/Dashboard--iaPJqJp.js +0 -2
  483. package/dist/assets/DashboardLive-4rGeotay.js +0 -1
  484. package/dist/assets/DecisionDateChips-CJOLtNrJ.js +0 -1
  485. package/dist/assets/DecisionModelSettings-D-OxKIGP.js +0 -1
  486. package/dist/assets/DecisionQueuePage-D-kNFav_.js +0 -1
  487. package/dist/assets/DesignGuide-D7486q4b.js +0 -23
  488. package/dist/assets/DocumentFrameHeader-B61HhahB.js +0 -1
  489. package/dist/assets/EmailConnectionAccess-DAFMofYX.js +0 -1
  490. package/dist/assets/EmailEndpointSetup-6OHb9B4q.js +0 -1
  491. package/dist/assets/EnforcementBanner-DWPluRU0.js +0 -1
  492. package/dist/assets/EntityRow-BIfupmlZ.js +0 -1
  493. package/dist/assets/ExecutionWorkspaceDetail-BGV-9D5Y.js +0 -19
  494. package/dist/assets/FilterBar-5ta25FCb.js +0 -1
  495. package/dist/assets/FoldCurtain-DUAOdtCt.js +0 -1
  496. package/dist/assets/FolderControls-L2RzbfdQ.js +0 -1
  497. package/dist/assets/GatewayDetail-CdXNQ9gD.js +0 -2
  498. package/dist/assets/GatewaysList-B0Jq1IRC.js +0 -1
  499. package/dist/assets/GoalDetail-D2VhPtvw.js +0 -1
  500. package/dist/assets/GoalTree-kFpgH4dA.js +0 -1
  501. package/dist/assets/Goals-B-_gq_Qu.js +0 -1
  502. package/dist/assets/Identity-Cv_2a9qJ.js +0 -1
  503. package/dist/assets/ImageGalleryModal-DzKBMOnu.js +0 -1
  504. package/dist/assets/Inbox-zllmqRcB.js +0 -2
  505. package/dist/assets/InlineBanner-VQ5mstsR.js +0 -1
  506. package/dist/assets/InlineEditor-BKBqNA21.js +0 -1
  507. package/dist/assets/InlineEntitySelector-v2Q4C8oT.js +0 -1
  508. package/dist/assets/InstanceAccess-Ns2rAmva.js +0 -1
  509. package/dist/assets/InstanceAdvanced-B7tDfjwG.js +0 -1
  510. package/dist/assets/InstanceFeatures-DUQnBkxy.js +0 -1
  511. package/dist/assets/InviteLanding-brwa_8NC.js +0 -1
  512. package/dist/assets/IssueChatLongThreadPerf-D0HJe6IV.js +0 -2
  513. package/dist/assets/IssueChatThread-CMXzuvrF.js +0 -40
  514. package/dist/assets/IssueDetail-DGdg-mB8.js +0 -9
  515. package/dist/assets/IssueDocumentAnnotations-BK-LgExc.js +0 -2
  516. package/dist/assets/IssueOutputSection-aSyiE1pg.js +0 -1
  517. package/dist/assets/IssueRecoveryActionCard-vAuL_OEC.js +0 -1
  518. package/dist/assets/IssueReferenceActivitySummary-CbpSjmdV.js +0 -1
  519. package/dist/assets/IssueReferencePill-DAEplgLd.js +0 -1
  520. package/dist/assets/IssueThreadInteractionCard-wFidFTIh.js +0 -9
  521. package/dist/assets/IssueWriteDenialNotice-BCJ74Czu.js +0 -1
  522. package/dist/assets/Issues-CsmM33z_.js +0 -3
  523. package/dist/assets/JoinRequestQueue-ZZq3jWW-.js +0 -1
  524. package/dist/assets/JsonSchemaForm-ixDd6e-N.js +0 -1
  525. package/dist/assets/LiveNowTodoLine-CP32NNp_.js +0 -1
  526. package/dist/assets/ManagedAiConnectionDetails-Ba0awZ-O.js +0 -1
  527. package/dist/assets/MarkdownBody-BTjuUgFa.js +0 -16
  528. package/dist/assets/MarkdownEditor-DXD-Cu3u.js +0 -85
  529. package/dist/assets/McpConnect-CYLP1yLX.js +0 -1
  530. package/dist/assets/MembershipAction-CKs7Ua9x.js +0 -1
  531. package/dist/assets/MetricCard-DaAh5x_N.js +0 -1
  532. package/dist/assets/MissingPluginTabPlaceholder-DT47WyQq.js +0 -1
  533. package/dist/assets/ModelsAndProviders-gaR7HDQm.js +0 -1
  534. package/dist/assets/MootMark-DZAfkwdv.js +0 -1
  535. package/dist/assets/NewAgent-DBQzvxIr.js +0 -1
  536. package/dist/assets/OmpAllSettings-B_Knr51Z.js +0 -1
  537. package/dist/assets/OpenwaGatewayManager-DH3bF7fa.js +0 -2
  538. package/dist/assets/PathInstructionsModal-D4GUYKIT.js +0 -1
  539. package/dist/assets/PipelineSettings-Dl-94FB5.js +0 -2
  540. package/dist/assets/Pipelines-CY9hGe0h.js +0 -1
  541. package/dist/assets/PixelsOffice-BgyGZsiV.js +0 -2
  542. package/dist/assets/PluginManager-4rrrAOLG.js +0 -1
  543. package/dist/assets/PluginPage-CMA4Ei50.js +0 -1
  544. package/dist/assets/PluginSettings-Cm4H1JRT.js +0 -1
  545. package/dist/assets/ProfileDetailRoute-BEBctbC6.js +0 -1
  546. package/dist/assets/ProfileSettings-Djo7BLIj.js +0 -1
  547. package/dist/assets/ProfileWizardRoute-DxLujEtD.js +0 -1
  548. package/dist/assets/ProjectDetail-CmmdvUHn.js +0 -1
  549. package/dist/assets/ProjectWorkspaceDetail-BsA0hJ-k.js +0 -29
  550. package/dist/assets/ProjectWorkspacesContent-BNNI_WAk.js +0 -1
  551. package/dist/assets/Projects-BTAauZr0.js +0 -1
  552. package/dist/assets/PublicIssueSharePage-DdPjfmD9.js +0 -1
  553. package/dist/assets/QuestionForm-B8-PWz3B.js +0 -7
  554. package/dist/assets/QuotaBar-_ok6Pek4.js +0 -1
  555. package/dist/assets/RepositoryEditor-CFt-HPgf.js +0 -1
  556. package/dist/assets/ResponsibleUserDenialNotice-DKNk1-BK.js +0 -1
  557. package/dist/assets/ResponsibleUserDenialUxLab-Bt9vnHJz.js +0 -1
  558. package/dist/assets/ReviewQueueCard-BC6VY8Bc.js +0 -1
  559. package/dist/assets/RichWorkProductCard-ClpMt_Bh.js +0 -1
  560. package/dist/assets/RoutineActivityRow-B69N6Hcy.js +0 -1
  561. package/dist/assets/RoutineDetail-BT6_GKnC.js +0 -2
  562. package/dist/assets/RoutineRunVariablesDialog-D_Mls1sV.js +0 -1
  563. package/dist/assets/RoutineVariablesEditor-0dQ10yPY.js +0 -1
  564. package/dist/assets/Routines-4LevOfvV.js +0 -1
  565. package/dist/assets/ScrollToBottom-jItsgDR8.js +0 -1
  566. package/dist/assets/Search-bmcm0_m_.js +0 -1
  567. package/dist/assets/SearchableSelect-CIJ5K8ih.js +0 -1
  568. package/dist/assets/Secrets-DfR1fBAZ.js +0 -4
  569. package/dist/assets/SetupWizard-C8qzkJn1.js +0 -1
  570. package/dist/assets/SidebarContext-CF3RWLxh.js +0 -1
  571. package/dist/assets/SidebarNavItem-DV9nmC7O.js +0 -1
  572. package/dist/assets/SkillBinaryFile-DNe-MmCv.js +0 -1
  573. package/dist/assets/SkillCardIcon-BTCafp8l.js +0 -2
  574. package/dist/assets/SkillSourceTree--FWKWyF3.js +0 -2
  575. package/dist/assets/SkillSources-jUDjqy5i.js +0 -2
  576. package/dist/assets/SkillStudio-BsqtUnzF.js +0 -9
  577. package/dist/assets/SourceTrustBadge-CfBrvKL3.js +0 -1
  578. package/dist/assets/StatusCards-Dt3zorUZ.js +0 -1
  579. package/dist/assets/StatusIcon-0GcYXDdN.js +0 -1
  580. package/dist/assets/SummarySlotCard-D1C0qH2L.js +0 -1
  581. package/dist/assets/TaskChatComposerTakeoverContext-BJAHPHve.js +0 -1
  582. package/dist/assets/TaskChatLab-B0coUvdp.js +0 -11
  583. package/dist/assets/TaskChatMarker-C40twVjh.js +0 -2
  584. package/dist/assets/TaskChatProtocolCard--bi_tc6i.js +0 -1
  585. package/dist/assets/TaskChatThreadView-DkzFDrLW.js +0 -4
  586. package/dist/assets/TaskDetailRelationsPanel-DZGkinoJ.js +0 -1
  587. package/dist/assets/TaskTreeControls-DznugVpi.js +0 -3
  588. package/dist/assets/Terminal-NjEb5-2b.js +0 -1
  589. package/dist/assets/TerminalView-DZxK2Ei5.js +0 -58
  590. package/dist/assets/ThemeContext-DYRUK81c.js +0 -1
  591. package/dist/assets/ThemeToggle-BWFlFnSX.js +0 -1
  592. package/dist/assets/ToastContext-DMdt9oTd.js +0 -1
  593. package/dist/assets/ToolsAdminGate-BI5-WYC3.js +0 -1
  594. package/dist/assets/TrustPresetSection-CjNwNBo3.js +0 -1
  595. package/dist/assets/UserProfile-Dujv3qdz.js +0 -1
  596. package/dist/assets/WebhookUrlWarning-D0GLAS0A.js +0 -1
  597. package/dist/assets/WhatNeedsMe-C9P2EsqQ.js +0 -1
  598. package/dist/assets/WorkspaceRuntimeControls-T4YUoZvK.js +0 -1
  599. package/dist/assets/Workspaces-BTgSx9nA.js +0 -1
  600. package/dist/assets/access-GAosX22P.js +0 -1
  601. package/dist/assets/activity-BVYJmFzR.js +0 -1
  602. package/dist/assets/activity-CB9AQzZO.js +0 -1
  603. package/dist/assets/activity-format-zP89NM00.js +0 -1
  604. package/dist/assets/adapter-display-registry-Bk0KWAHT.js +0 -1
  605. package/dist/assets/adapters-Dp0USyWg.js +0 -1
  606. package/dist/assets/agent-avatar-url-C-slYk2A.js +0 -1
  607. package/dist/assets/agent-config-primitives-BsZUnbf2.js +0 -1
  608. package/dist/assets/agentChats-CjHr739f.js +0 -1
  609. package/dist/assets/agents-DmlgUVso.js +0 -1
  610. package/dist/assets/alert-dialog-Blls2GnU.js +0 -1
  611. package/dist/assets/app-connect-policy-CUzbEnhU.js +0 -1
  612. package/dist/assets/archive-CTfe4zq5.js +0 -1
  613. package/dist/assets/archive-restore-DeLPtKS0.js +0 -1
  614. package/dist/assets/arrow-down-Dg4PKbmt.js +0 -1
  615. package/dist/assets/arrow-down-left-C8jhGqM0.js +0 -1
  616. package/dist/assets/arrow-left-Ce_LIut0.js +0 -1
  617. package/dist/assets/arrow-right-BL5kYtCZ.js +0 -1
  618. package/dist/assets/arrow-up-D_YoSnQD.js +0 -1
  619. package/dist/assets/arrow-up-down-Bpe9xqCo.js +0 -1
  620. package/dist/assets/arrow-up-right-BLYWl-we.js +0 -1
  621. package/dist/assets/artifacts-9HWeqVeB.js +0 -1
  622. package/dist/assets/assets-TRDkBfss.js +0 -1
  623. package/dist/assets/attachment-icon-4xDiQblX.js +0 -1
  624. package/dist/assets/avatar-UO226cef.js +0 -1
  625. package/dist/assets/badge-DuA2EgZC.js +0 -1
  626. package/dist/assets/badge-check-Bd7IYIB2.js +0 -1
  627. package/dist/assets/bot-C9arfJWx.js +0 -1
  628. package/dist/assets/boxes-fV98p9-r.js +0 -1
  629. package/dist/assets/braces-BEVhwPeU.js +0 -1
  630. package/dist/assets/browser-use-D2HTf8rD.js +0 -1
  631. package/dist/assets/budgets-DvML2uxG.js +0 -1
  632. package/dist/assets/button-CMwV3L1P.js +0 -1
  633. package/dist/assets/calendar-clock-BVFltraz.js +0 -1
  634. package/dist/assets/card-Bru3x_SJ.js +0 -1
  635. package/dist/assets/cases-m9RZ5Cym.js +0 -1
  636. package/dist/assets/chatEndpoints-BKsIHowE.js +0 -1
  637. package/dist/assets/check-Ctsrlfa-.js +0 -1
  638. package/dist/assets/checkbox-BHQhs41k.js +0 -1
  639. package/dist/assets/chevron-down-BCvxsWfI.js +0 -1
  640. package/dist/assets/chevron-left-DP4zwC0G.js +0 -1
  641. package/dist/assets/chevron-right-s7L6hXXq.js +0 -1
  642. package/dist/assets/chevron-up-rFDQGA-7.js +0 -1
  643. package/dist/assets/chip-DsDe6yck.js +0 -1
  644. package/dist/assets/circle-IAHLDvLO.js +0 -1
  645. package/dist/assets/circle-alert-C-L4OsHh.js +0 -1
  646. package/dist/assets/circle-dot-zr8GONq2.js +0 -1
  647. package/dist/assets/circle-question-mark-B1jR2is9.js +0 -1
  648. package/dist/assets/circle-slash-Bx5HrFMb.js +0 -1
  649. package/dist/assets/circle-x-CFlSbYzD.js +0 -1
  650. package/dist/assets/clipboard-paste-D9rNPVFj.js +0 -1
  651. package/dist/assets/clock-CzrJT_cP.js +0 -1
  652. package/dist/assets/cloud-BktKFMPI.js +0 -1
  653. package/dist/assets/code-xml-BWc3OvMt.js +0 -1
  654. package/dist/assets/coins-C6QoCoLN.js +0 -1
  655. package/dist/assets/collapsible-CqjPlqOa.js +0 -1
  656. package/dist/assets/columns-3-CqC5nP-p.js +0 -1
  657. package/dist/assets/command-Ca3v36Mu.js +0 -5
  658. package/dist/assets/companies-query-D9PxIiMT.js +0 -1
  659. package/dist/assets/connection-identity-YKZfppDS.js +0 -1
  660. package/dist/assets/connection-owner-DL4yKhSt.js +0 -1
  661. package/dist/assets/copy-_wvZOjTe.js +0 -1
  662. package/dist/assets/createLucideIcon-DJi9suAC.js +0 -94
  663. package/dist/assets/decision-models-CD2AFC2a.js +0 -1
  664. package/dist/assets/dialog-CKUblzlR.js +0 -1
  665. package/dist/assets/dist-BNOqBr2U.js +0 -1
  666. package/dist/assets/dist-Bm2igrAN.js +0 -1
  667. package/dist/assets/dist-BuHnL0GV.js +0 -1
  668. package/dist/assets/dist-CClcSLHe.js +0 -1
  669. package/dist/assets/dist-CtvMIwRC.js +0 -1
  670. package/dist/assets/dist-CvHBQVAC.js +0 -1
  671. package/dist/assets/dist-DC4EOH0g.js +0 -1
  672. package/dist/assets/dist-DMg_vOQs.js +0 -1
  673. package/dist/assets/dist-DOIzg2vq.js +0 -1
  674. package/dist/assets/dist-DTFX_1D6.js +0 -1
  675. package/dist/assets/dist-DcOFbG-W.js +0 -1
  676. package/dist/assets/dist-SzpVz8Pd.js +0 -1
  677. package/dist/assets/dist-ypeTPGg_.js +0 -1
  678. package/dist/assets/dropdown-menu-DEO3mF_E.js +0 -1
  679. package/dist/assets/ellipsis-BTiLRUn4.js +0 -1
  680. package/dist/assets/ellipsis-vertical-DWXPf6Ow.js +0 -1
  681. package/dist/assets/email-BNu4jmOH.js +0 -1
  682. package/dist/assets/environment-variables-editor-0qgSPgNN.js +0 -1
  683. package/dist/assets/environments-BLQs1ScE.js +0 -1
  684. package/dist/assets/es2015-C3hhXnTu.js +0 -41
  685. package/dist/assets/external-link-nl1b263c.js +0 -1
  686. package/dist/assets/eye-DRS7RbEp.js +0 -1
  687. package/dist/assets/eye-off-CVVA-EWh.js +0 -1
  688. package/dist/assets/fast-responses-DZodQpLv.js +0 -1
  689. package/dist/assets/file-N19tC0jj.js +0 -1
  690. package/dist/assets/file-code-corner-CmZ_RihF.js +0 -1
  691. package/dist/assets/file-pen-line-DX6PZQXR.js +0 -1
  692. package/dist/assets/file-question-mark-CTomlKBX.js +0 -1
  693. package/dist/assets/file-search-DZpRLS-j.js +0 -1
  694. package/dist/assets/file-text-Cw7ntqRx.js +0 -1
  695. package/dist/assets/flag-R0AVTKGk.js +0 -1
  696. package/dist/assets/flask-conical-CEYKkO5k.js +0 -1
  697. package/dist/assets/folder-git-2-D2Hz-CeQ.js +0 -1
  698. package/dist/assets/folder-open-8WDYv4mw.js +0 -1
  699. package/dist/assets/folder-search-D0WkVTZt.js +0 -1
  700. package/dist/assets/funnel-DWwD2WCu.js +0 -1
  701. package/dist/assets/git-pull-request-CdCSG7CL.js +0 -1
  702. package/dist/assets/github-icon-Bbgf67tg.js +0 -1
  703. package/dist/assets/health-DF7yrggW.js +0 -1
  704. package/dist/assets/heartbeats-DOyojsaN.js +0 -1
  705. package/dist/assets/inbox-C08arfF_.js +0 -1
  706. package/dist/assets/inboxArchiveCache-D8QGdg49.js +0 -1
  707. package/dist/assets/index-3AxqhPET.js +0 -67
  708. package/dist/assets/index-B5bd7Tk6.css +0 -2
  709. package/dist/assets/info-DXpx_HA2.js +0 -1
  710. package/dist/assets/input-DobnTAyB.js +0 -1
  711. package/dist/assets/instanceSettings-D8g_QlS-.js +0 -1
  712. package/dist/assets/interaction-audience-BRS_4X7S.js +0 -1
  713. package/dist/assets/interaction-card-visibility-DcyO470L.js +0 -1
  714. package/dist/assets/issue-blockers-DLfa24KC.js +0 -1
  715. package/dist/assets/issue-filters-BO9xiK0c.js +0 -1
  716. package/dist/assets/issue-output-CU3gasZ1.js +0 -1
  717. package/dist/assets/issue-properties-B1cYnBDU.js +0 -4
  718. package/dist/assets/issue-share-j9E_vLuf.js +0 -1
  719. package/dist/assets/issue-workspace-selection-S8UgGgK1.js +0 -1
  720. package/dist/assets/key-round-0RqEOB_C.js +0 -1
  721. package/dist/assets/label-BPz3pg9_.js +0 -1
  722. package/dist/assets/layout-dashboard-DClZjSaR.js +0 -1
  723. package/dist/assets/link-2-CND-9QZ2.js +0 -1
  724. package/dist/assets/link-BITB8yRp.js +0 -1
  725. package/dist/assets/list-filter-h7_mdWEH.js +0 -1
  726. package/dist/assets/list-todo-BmObdeVq.js +0 -1
  727. package/dist/assets/log-in-nSyhNjrD.js +0 -1
  728. package/dist/assets/maximize-2-DgliXYEr.js +0 -1
  729. package/dist/assets/mention-chips-D8856Q0_.js +0 -17
  730. package/dist/assets/message-square-plus-yRlSBxPl.js +0 -1
  731. package/dist/assets/minus-WOgDAWiC.js +0 -1
  732. package/dist/assets/model-fallback-X_YvC3rj.js +0 -1
  733. package/dist/assets/model-picker-fields-235ien8Z.js +0 -1
  734. package/dist/assets/network-RCsafDTP.js +0 -1
  735. package/dist/assets/octagon-alert-CeNhknXC.js +0 -1
  736. package/dist/assets/octagon-x-CBcXy1zJ.js +0 -1
  737. package/dist/assets/omp-settings-model-uqWvMNr2.js +0 -1
  738. package/dist/assets/package-CYC5MDhY.js +0 -1
  739. package/dist/assets/pause-CJSwJvLv.js +0 -1
  740. package/dist/assets/pen-line-CxWwoiP_.js +0 -1
  741. package/dist/assets/pipeline-stage-presentation-5UBw7nsb.js +0 -2
  742. package/dist/assets/pipelines-vN196fc4.js +0 -1
  743. package/dist/assets/play-CJNuUj69.js +0 -1
  744. package/dist/assets/plug-VjpaJcMq.js +0 -1
  745. package/dist/assets/plugins-CF2QITJB.js +0 -1
  746. package/dist/assets/plus-C6fnr28l.js +0 -1
  747. package/dist/assets/popover-BhYHYj7q.js +0 -1
  748. package/dist/assets/power-B3xsPeS4.js +0 -1
  749. package/dist/assets/presentation-mode-Bk6TnKr9.js +0 -1
  750. package/dist/assets/profile-summary-unutni_7.js +0 -1
  751. package/dist/assets/projects-mixWrT5q.js +0 -1
  752. package/dist/assets/proposal-review-kucrRJgS.js +0 -1
  753. package/dist/assets/queryClient-BOli2vjj.js +0 -1
  754. package/dist/assets/queryKeys-DYV5MhM_.js +0 -1
  755. package/dist/assets/radio-DnDOdgWd.js +0 -1
  756. package/dist/assets/radio-card-DVZaXlw0.js +0 -1
  757. package/dist/assets/recent-agent-chats-DIU_z_qg.js +0 -1
  758. package/dist/assets/refresh-cw-B_Oki9wZ.js +0 -1
  759. package/dist/assets/repeat-DGPKlc5I.js +0 -1
  760. package/dist/assets/resizable-panels-Qjbo0P05.js +0 -1
  761. package/dist/assets/review-policy-BL48kYvb.js +0 -1
  762. package/dist/assets/rotate-ccw-CQEJ4ewP.js +0 -1
  763. package/dist/assets/rotate-cw-DnCrcS38.js +0 -1
  764. package/dist/assets/router-2UfGeejU.js +0 -1
  765. package/dist/assets/routines-KPtwxuS7.js +0 -1
  766. package/dist/assets/runRetryState-BdjK4QQj.js +0 -1
  767. package/dist/assets/save-CJ1Iqyew.js +0 -1
  768. package/dist/assets/schema-config-fields-DggSrP5S.js +0 -1
  769. package/dist/assets/scroll-area-P1KpIQWe.js +0 -1
  770. package/dist/assets/scroll-text-BpkOrME3.js +0 -1
  771. package/dist/assets/search-04O7m-IF.js +0 -1
  772. package/dist/assets/secrets-CZifgF0J.js +0 -1
  773. package/dist/assets/select-V0Hm_q4f.js +0 -1
  774. package/dist/assets/send-mNwfi_F1.js +0 -1
  775. package/dist/assets/separator-B2LFqBpM.js +0 -1
  776. package/dist/assets/server-DIhG4RDC.js +0 -1
  777. package/dist/assets/server-cog-DV4ua9lY.js +0 -1
  778. package/dist/assets/settings-DuZndeX2.js +0 -1
  779. package/dist/assets/shared-4LF6wQ38.js +0 -1
  780. package/dist/assets/sheet-jd7y5x4-.js +0 -1
  781. package/dist/assets/shield-BhaVQdWV.js +0 -1
  782. package/dist/assets/shield-alert-Be9GuMrS.js +0 -1
  783. package/dist/assets/shield-check-B0HVjzM_.js +0 -1
  784. package/dist/assets/shield-question-mark-D1_en6pn.js +0 -1
  785. package/dist/assets/shield-x-D-Ice3nf.js +0 -1
  786. package/dist/assets/sidebarPreferences-vEHBC54I.js +0 -1
  787. package/dist/assets/skeleton-Bv_lQagE.js +0 -1
  788. package/dist/assets/slots-Dw517dxP.js +0 -49
  789. package/dist/assets/smoke-lab-matrix-0BhnGQeo.js +0 -1
  790. package/dist/assets/square-B2aH51tE.js +0 -1
  791. package/dist/assets/star-BZgQbzhV.js +0 -15
  792. package/dist/assets/sun-_NIddwh7.js +0 -1
  793. package/dist/assets/system-notice-comment-CL_SWj_f.js +0 -1
  794. package/dist/assets/tabs-B2Os_leL.js +0 -1
  795. package/dist/assets/task-chat-attachments-jZNCAKd4.js +0 -10
  796. package/dist/assets/terminal-C0CKe_Zz.js +0 -1
  797. package/dist/assets/textarea-BRPEfJ-g.js +0 -1
  798. package/dist/assets/thumbs-down-C2BkjZOy.js +0 -1
  799. package/dist/assets/thumbs-up-OW2IsTL7.js +0 -1
  800. package/dist/assets/toggle-switch-BHxNtSq9.js +0 -1
  801. package/dist/assets/tool-taxonomy-B5zpbkHA.js +0 -1
  802. package/dist/assets/tools-B-L_sU_9.js +0 -1
  803. package/dist/assets/tooltip-B5WQ3lq5.js +0 -1
  804. package/dist/assets/transcript-adapter-C29ZJiU2.js +0 -5
  805. package/dist/assets/trash-D7zTaHTj.js +0 -1
  806. package/dist/assets/triangle-alert-CBVKiaXB.js +0 -1
  807. package/dist/assets/use-adapter-capabilities-Bu8XkVZ9.js +0 -1
  808. package/dist/assets/use-copy-action-D5dEzo6L.js +0 -1
  809. package/dist/assets/useAgentChatEnabled-Chi_JXJj.js +0 -1
  810. package/dist/assets/useAutosaveIndicator-DttGFwx7.js +0 -1
  811. package/dist/assets/useHiddenSettings-CcaZfHLD.js +0 -1
  812. package/dist/assets/useInfiniteQuery-B28xptxn.js +0 -1
  813. package/dist/assets/useInstanceFeatureSettings-CEK6Xn3o.js +0 -1
  814. package/dist/assets/useManagedSandboxOnly-CO01cDK4.js +0 -1
  815. package/dist/assets/useMobileEntityPickerViewportStyle-C3R37KtS.js +0 -1
  816. package/dist/assets/usePrefersReducedMotion-Dw81-akd.js +0 -1
  817. package/dist/assets/useProfilesData-2L3_71Ql.js +0 -1
  818. package/dist/assets/useQueries-BIJ7zVTy.js +0 -1
  819. package/dist/assets/useSecondTick-Gige2l0t.js +0 -1
  820. package/dist/assets/useSharedPolling-D4Xn8mY2.js +0 -1
  821. package/dist/assets/useSummaryDraftStream-R2Y2bAUU.js +0 -3
  822. package/dist/assets/user-Ccom_Ph0.js +0 -1
  823. package/dist/assets/user-check-BoBa1Xs_.js +0 -1
  824. package/dist/assets/user-minus-B4F-9ccK.js +0 -1
  825. package/dist/assets/user-round-CGxsJ0K8.js +0 -1
  826. package/dist/assets/user-x-CRO9YVVi.js +0 -1
  827. package/dist/assets/users-DyKzwIh4.js +0 -1
  828. package/dist/assets/wand-sparkles-BqnbLKl3.js +0 -1
  829. package/dist/assets/webhook-BVBCKjlU.js +0 -1
  830. package/dist/assets/x-DRDFdlYE.js +0 -1
@@ -0,0 +1 @@
1
+ import{t as a}from"./createLucideIcon-Dp_BESPI.js";var e={name:"info",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]};e.node;var t=a(e);export{t};
@@ -0,0 +1 @@
1
+ var a=Object.defineProperty;var r=(e,i)=>a(e,"name",{value:i,configurable:!0});import{i as t}from"./rolldown-runtime-ZpX3ckPj.js";import{l as o,na as s,ta as l}from"./createLucideIcon-Dp_BESPI.js";var f=t(s(),1),d=t(l(),1);function m({className:e,type:i,...n}){return(0,d.jsx)("input",{type:i,"data-slot":"input",className:o("file:text-ink placeholder:text-ink-3 selection:bg-accent selection:text-accent-ink dark:bg-line-strong/30 border-line-strong h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-(--tp-color-box-shadow) outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-focus focus-visible:ring-focus/50 focus-visible:ring-(length:--rad-3)","aria-invalid:ring-bad/20 dark:aria-invalid:ring-bad/40 aria-invalid:border-bad",e),...n})}r(m,"Input");export{m as t};
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var t=(e,s)=>c(e,"name",{value:s,configurable:!0});import{r as n}from"./queryKeys-Sk0U6x0H.js";var o={get:t(()=>n.get("/instance/settings"),"get"),update:t(e=>n.patch("/instance/settings",e),"update"),getGeneral:t(()=>n.get("/instance/settings/general"),"getGeneral"),updateGeneral:t(e=>n.patch("/instance/settings/general",e),"updateGeneral"),getLocalRunLimits:t(()=>n.get("/instance/settings/local-run-limits"),"getLocalRunLimits"),getExperimental:t(()=>n.get("/instance/settings/experimental"),"getExperimental"),updateExperimental:t(e=>n.patch("/instance/settings/experimental",e),"updateExperimental"),getAttachmentRetention:t(()=>n.get("/instance/attachment-retention",{cache:"no-store"}),"getAttachmentRetention"),previewAttachmentRetention:t(e=>n.post("/instance/attachment-retention/preview",e?{settings:e}:{}),"previewAttachmentRetention"),listSpeechToTextModels:t(e=>n.post("/instance/settings/general/speech-to-text/models",e),"listSpeechToTextModels"),getSpeechToTextCredentials:t(()=>n.get("/instance/settings/general/speech-to-text/credentials",{cache:"no-store"}),"getSpeechToTextCredentials"),saveSpeechToTextKey:t((e,s)=>n.put("/instance/settings/general/speech-to-text/keys/"+e,{apiKey:s}),"saveSpeechToTextKey"),removeSpeechToTextKey:t(e=>n.delete("/instance/settings/general/speech-to-text/keys/"+e),"removeSpeechToTextKey"),testSpeechToText:t((e,s,i="")=>{const a=new FormData;return a.append("settings",JSON.stringify(e)),i&&a.append("apiKey",i),a.append("file",s),n.postForm("/instance/settings/general/speech-to-text/test",a)},"testSpeechToText"),runAttachmentRetention:t(()=>n.post("/instance/attachment-retention/run",{}),"runAttachmentRetention")};export{o as t};
@@ -0,0 +1 @@
1
+ var R=Object.defineProperty;var a=(e,n)=>R(e,"name",{value:n,configurable:!0});import{Ii as g,qi as m}from"./createLucideIcon-Dp_BESPI.js";var O="anyone",t={anyone:"Anyone",not_creator:"Anyone except creator",human_only:"Human only",chat_endpoint_owner:"Channel owners"},E={anyone:"Anyone in the organization can respond — the board or any agent, including the one that asked.",not_creator:"Anyone in the organization except the agent that created the card, and its run. Use this when the answer has to come from someone else.",human_only:"Only a person on the board can respond. Agents are turned away.",chat_endpoint_owner:"Only people linked as current owners of the chat channel can respond. Agents are turned away."};function S(e){return t[m(e)]}a(S,"resolverPolicyLabel");var b=g.map(e=>({value:e,label:t[e],effect:E[e],isDefault:e===O}));function L({interaction:e,creatorLabel:n,addresseeLabel:i}){return _({facts:{effectiveResolverPolicy:e.effectiveResolverPolicy,requestedResolverPolicy:e.requestedResolverPolicy,effectiveResolverPolicySource:e.effectiveResolverPolicySource,resolverPolicyProvenance:e.resolverPolicyProvenance,hasAddressee:!!(e.addresseeAgentId||e.addresseeUserId),isUserAddressee:!!e.addresseeUserId},creatorLabel:n,addresseeLabel:i})}a(L,"describeInteractionAudience");function _({facts:e,creatorLabel:n,addresseeLabel:i}){const o=e.effectiveResolverPolicy,l=e.requestedResolverPolicy,r=e.hasAddressee,c=e.isUserAddressee===!0,y=a(v=>v==="You"?"you":v,"midSentence"),s=y(i?.trim()||(c?"the addressed user":"the addressed agent")),h=y(n?.trim()||"the agent that created it"),p=o==="chat_endpoint_owner"?"Only a current owner of the chat channel can respond — agents cannot resolve this card.":c?`Only ${s} can respond.`:o==="human_only"?`${r?`Assigned to ${s}. `:""}Only a person on the board can respond — agents cannot resolve this card.`:r?`Only ${s} or a person on the board can respond.`:o==="not_creator"?`Anyone in the organization except ${h} can respond.`:"Anyone in the organization can respond — the board or any agent, including the one that asked.",A=o==="chat_endpoint_owner"?"Only channel owners can respond":c?`Only ${s} can respond`:o==="human_only"?r?`Assigned to ${s} · board only`:"Only the board can respond":r?`Only ${s} or the board can respond`:o==="not_creator"?`Anyone except ${h} can respond`:"Anyone can respond",d=e.effectiveResolverPolicySource,u=e.resolverPolicyProvenance,f=d==="governed_action"?"This card runs a governed action, so it stays human-only whatever audience was requested.":d==="company_cap"?`Organization interaction governance narrowed this from ${t[l]} to ${t[o]}.`:u==="legacy_inherited_restriction"?"Created before Anyone became the default, so it stays restricted. A new card would be open.":null,P=d==="governed_action"?"governed_action":d==="company_cap"?"company_cap":u==="legacy_inherited_restriction"?"legacy_restriction":o!=="anyone"?"requested":r?"addressee":null;return{policy:o,requestedPolicy:l,label:(o!=="human_only"||c)&&r?"Addressed":t[o],summary:p,shortSummary:A,isOpen:o==="anyone"&&!r,narrowedBy:P,narrowedNote:f}}a(_,"describeResolverAudience");function U(e){if(e.sourceKind!=="issue_thread_interaction")return null;const n=e.resolverAudience;return n?_({facts:{effectiveResolverPolicy:n.effectiveResolverPolicy,requestedResolverPolicy:n.requestedResolverPolicy,effectiveResolverPolicySource:n.effectiveResolverPolicySource,resolverPolicyProvenance:n.resolverPolicyProvenance,hasAddressee:!!(n.addresseeAgentId||n.addresseeUserId),isUserAddressee:!!n.addresseeUserId},creatorLabel:n.createdByAgentName,addresseeLabel:n.addresseeName}):null}a(U,"describeAttentionResolverAudience");export{L as n,S as r,U as t};
@@ -0,0 +1 @@
1
+ var u=Object.defineProperty;var n=(e,t)=>u(e,"name",{value:t,configurable:!0});import{i as f}from"./rolldown-runtime-ZpX3ckPj.js";import{na as m}from"./createLucideIcon-Dp_BESPI.js";var l=f(m(),1);function S(e,t){return`wardmote.interaction-card-hidden.${e}:${t}`}n(S,"storageKey");function c(e){if(!e)return!1;try{return sessionStorage.getItem(e)==="1"}catch{return!1}}n(c,"readHidden");function g(e,t){try{t?sessionStorage.setItem(e,"1"):sessionStorage.removeItem(e)}catch{return}}n(g,"writeHidden");function I(e,t){const r=t?S(e,t):null,[o,a]=(0,l.useState)(()=>({key:r,hidden:c(r)}));let i=o;o.key!==r&&(i={key:r,hidden:c(r)},a(i));function d(s){r&&g(r,s),a({key:r,hidden:s})}return n(d,"setHidden"),[i.hidden,d]}n(I,"useInteractionCardHidden");export{I as t};
@@ -0,0 +1 @@
1
+ var O=Object.defineProperty;var o=(e,t)=>O(e,"name",{value:t,configurable:!0});import{i as L}from"./rolldown-runtime-ZpX3ckPj.js";import{na as P}from"./createLucideIcon-Dp_BESPI.js";import{t as Z}from"./eye-FIf8kCfJ.js";import{t as Y}from"./octagon-alert-Brf0_Mjx.js";import{t as B}from"./refresh-cw-DCZxsFMf.js";import{t as U}from"./triangle-alert-2xDDaXgc.js";var C=L(P(),1),R=1e3,h=60*R,v=60*h,D=24*v,F=h;function c(e){const t=new Date(e).getTime();if(Number.isNaN(t))throw new RangeError("Invalid monitor date");return t}o(c,"toTimestamp");function E(e){if(e<h)return`${Math.max(1,Math.ceil(e/R))}s`;if(e<v)return`${Math.floor(e/h)}m`;if(e<D){const n=Math.floor(e/v),a=Math.floor(e%v/h);return a>0?`${n}h ${a}m`:`${n}h`}const t=Math.floor(e/D),r=Math.floor(e%D/v);return r>0?`${t}d ${r}h`:`${t}d`}o(E,"formatDuration");function T(e,t=new Date){const r=c(e)-c(t);return r>0?`in ${E(r)}`:r>-6e4?"due now":`overdue by ${E(Math.abs(r))}`}o(T,"formatMonitorEta");function ce(e,t=new Date){const r=T(e,t);return`${r.charAt(0).toUpperCase()}${r.slice(1)}`}o(ce,"formatMonitorEtaLabel");function I(e,t,r){const n=new Intl.DateTimeFormat(t,{year:"numeric",month:"numeric",day:"numeric",timeZone:r}).formatToParts(e),a=o(u=>n.find(s=>s.type===u)?.value??"","pick");return{year:a("year"),month:a("month"),day:a("day")}}o(I,"zonedYmd");function me(e,t={},r=new Date){const n=new Date(c(e)),a=new Date(c(r)),u=I(n,t.locale,t.timeZone),s=I(a,t.locale,t.timeZone),f=new Intl.DateTimeFormat(t.locale,{hour:"numeric",minute:"2-digit",timeZone:t.timeZone}).format(n);return u.year===s.year&&u.month===s.month&&u.day===s.day?`Today, ${f}`:`${new Intl.DateTimeFormat(t.locale,{weekday:"short",timeZone:t.timeZone}).format(n)} ${new Intl.DateTimeFormat(t.locale,{month:"short",day:"numeric",year:u.year===s.year?void 0:"numeric",timeZone:t.timeZone}).format(n)}, ${f}`}o(me,"formatMonitorAbsolute");function de(e,t={}){const r=new Date(c(e));return`${new Intl.DateTimeFormat(t.locale,{weekday:"long",year:"numeric",month:"long",day:"numeric",timeZone:t.timeZone}).format(r)}, ${new Intl.DateTimeFormat(t.locale,{hour:"numeric",minute:"2-digit",second:"2-digit",timeZoneName:"short",timeZone:t.timeZone}).format(r)}`}o(de,"formatMonitorAbsoluteFull");function fe(e,t=new Date){if(e.status==="done"||e.status==="cancelled")return{state:"none",source:"none",nextCheckAt:null,attemptCount:0,serviceName:null};const r=e.executionState?.monitor??null,n=e.executionPolicy?.monitor??null,a=e.scheduledRetry??null,u=a?.status==="scheduled_retry",s=r?.nextCheckAt??e.monitorNextCheckAt??n?.nextCheckAt??(u?a?.scheduledRetryAt:null)??null,f=r!==null||n!==null||e.monitorNextCheckAt!=null,m=f?"monitor":u?"scheduled-retry":"none",i=r?.attemptCount??(f?e.monitorAttemptCount:null)??(u?a?.scheduledRetryAttempt:null)??0,l=r?.serviceName??n?.serviceName??null;if(r?.status==="cleared")return{state:"cleared",source:m,nextCheckAt:s,attemptCount:i,serviceName:l};if(!f&&!u)return{state:"none",source:m,nextCheckAt:null,attemptCount:0,serviceName:null};if(!s)return{state:u||i>1?"retrying":"scheduled",source:m,nextCheckAt:s,attemptCount:i,serviceName:l};const d=c(s)-c(t);return d<=-6e4?{state:"overdue",source:m,nextCheckAt:s,attemptCount:i,serviceName:l}:d<=0?{state:"due-now",source:m,nextCheckAt:s,attemptCount:i,serviceName:l}:{state:u||i>1?"retrying":"scheduled",source:m,nextCheckAt:s,attemptCount:i,serviceName:l}}o(fe,"deriveMonitorState");function W(e){const t=c(e)-Date.now();return t>-6e4&&t<F?R:30*R}o(W,"countdownCadence");function ye(e){const[t,r]=(0,C.useState)(()=>new Date(Date.now())),n=e==null?null:c(e);return(0,C.useEffect)(()=>{if(r(new Date(Date.now())),n===null)return;let a=null,u=!1;const s=o(()=>{a=setTimeout(()=>{u||(r(new Date(Date.now())),s())},W(new Date(n)))},"scheduleNextTick");return s(),()=>{u=!0,a!==null&&clearTimeout(a)}},[n]),t}o(ye,"useMonitorCountdown");function q(e){const t=new Date(Date.now()),r=c(e)-t.getTime();if(Math.round(Math.abs(r)/h)===0)return"now";const n=T(e,t);return n==="due now"?"now":n.startsWith("overdue by ")?`${n.slice(11)} ago`:n}o(q,"formatMonitorOffset");var K="bounded_owner_disposition_repair",V="bounded_recovery_owner",G="board_escalation",H="resume_native_run",j=new Set(["queued","running"]),z=3e4;function N(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:null}o(N,"asRecord");function p(e){if(typeof e!="string")return null;const t=e.trim();return t.length>0?t:null}o(p,"asNonEmptyString");function y(e){if(typeof e!="number"||!Number.isFinite(e))return null;const t=Math.floor(e);return t>=0?t:null}o(y,"asCount");function b(e){if(!e||!(e instanceof Date)&&typeof e!="string")return null;const t=e instanceof Date?e:new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}o(b,"asIsoDate");function k(e,t){if(!t)return null;const r=p(t.runId),n=p(t.status);return!r||!n||!j.has(n)||e!==null&&e!==r?null:r}o(k,"resolveLiveRunId");function X(e,t){const r=N(e.wakePolicy);if(!r)return null;const n=p(r.type),a=r.kind===H,u=r.preservesSourceAssignee===!0,s=N(e.evidence)??{},f=y(s.sourceAttemptCount),m=y(s.sourceMaxAttempts);let i;if(a)i="native_run";else if(n===K)i="source_owner";else if(n===V)i="recovery_owner";else if(n===G&&(u||m!==null))i="board";else return null;const l=y(r.attempt)??y(e.attemptCount)??0,d=y(r.maxAttempts)??y(e.maxAttempts),A=p(a?r.runId:r.scheduledRunId);if(a&&A===null)return null;const $=a?b(r.notBefore):b(r.retryAt)??b(e.timeoutAt),_=i==="board"||d!==null&&l>=d,w=_?null:$,g=a?k(A,e.nativeRunActivity):k(A,t?.scheduledRetry),x=!_&&g===null&&w!==null&&Date.parse(w)+z<(t?.now??Date.now());return{lane:i,attempt:l,maxAttempts:d,attemptsRemaining:d===null?null:Math.max(0,d-l),exhausted:_,nextRetryAt:w,retryExpired:x,scheduledRunId:A,liveRunId:g,retryAgentId:p(r.retryAgentId)??p(r.ownerAgentId),preservesSourceAssignee:u||i==="source_owner"||a,sourceAttempt:a?null:i==="source_owner"?l:f,sourceMaxAttempts:a?null:i==="source_owner"?d:m,hasDurablePath:a&&g!==null||!_&&(g!==null||w!==null&&!x)}}o(X,"readRecoveryRetryLineage");function J(e){return e.maxAttempts===null?null:`Attempt ${Math.min(e.attempt,e.maxAttempts)} of ${e.maxAttempts}`}o(J,"formatRecoveryAttemptLabel");function Q(e){if(!e.nextRetryAt)return null;try{return q(e.nextRetryAt)}catch{return null}}o(Q,"formatRecoveryRetryOffset");function pe(e){const t=[],r=J(e);r&&t.push(r);const n=Q(e);return e.liveRunId?t.push("attempt running now"):e.retryExpired?t.push(n?`retry missed ${n}`:"retry missed"):n?t.push(n==="now"?"next try now":`next try ${n}`):e.exhausted&&t.push("retries used up"),t.length>0?t.join(" · "):null}o(pe,"formatRecoveryLineageSummary");var ee={needed:{className:"border-amber-500/60 bg-amber-500/15 text-amber-700 dark:text-amber-300",icon:U,label:"Recovery needed"},in_progress:{className:"border-sky-500/60 bg-sky-500/15 text-sky-700 dark:text-sky-300",icon:B,label:"Recovery in progress"},observe_only:{className:"border-line bg-bg-3 text-ink-3",icon:Z,label:"Observing active run"},escalated:{className:"border-red-500/60 bg-red-500/15 text-red-700 dark:text-red-300",icon:Y,label:"Recovery escalated"}};function te(e,t){if(e.status==="resolved"||e.status==="cancelled")return"resolved";const r=X({wakePolicy:e.wakePolicy??null,evidence:e.evidence,attemptCount:e.attemptCount,maxAttempts:e.maxAttempts,timeoutAt:e.timeoutAt,nativeRunActivity:e.nativeRunActivity},t);return r?.lane==="native_run"&&r.liveRunId?"in_progress":e.status==="escalated"?"escalated":e.kind==="active_run_watchdog"?e.ownerType==="board"?"needed":r?r.hasDurablePath?"in_progress":"needed":e.cause?.startsWith("native_")?"needed":"observe_only":r&&r.lane!=="board"&&r.hasDurablePath||e.outcome==="delegated"?"in_progress":"needed"}o(te,"deriveRecoveryDisplayState");function he(e,t){if(e.cause==="native_workspace_sync_out_unsafe_archive")return null;const r=te(e,t);return r==="resolved"?null:r}o(he,"deriveActiveRecoveryDisplayState");function ve(e,t,r){return t==="workspace_validation"&&e==="needed"?"Workspace recovery needed":e==="in_progress"&&r&&r.maxAttempts!==null&&r.attempt>0?`Recovery in progress · ${Math.min(r.attempt,r.maxAttempts)}/${r.maxAttempts}`:ee[e].label}o(ve,"recoveryChipLabel");function re(e,t){return e.status==="done"||e.status==="cancelled"?"done":t.has(e.id)?"running":"queued"}o(re,"classifyWaitingBlocker");var M={done:0,running:1,queued:2};function Ae(e,t){return e.map(r=>({blocker:r,status:re(r,t)})).sort((r,n)=>{const a=M[r.status]-M[n.status];if(a!==0)return a;const u=r.blocker.identifier??r.blocker.id,s=n.blocker.identifier??n.blocker.id;return u.localeCompare(s,void 0,{numeric:!0})})}o(Ae,"orderWaitingBlockers");function S(e){return e.status==="backlog"&&!!e.assigneeAgentId}o(S,"isAssignedBacklogBlocker");function _e(e){return!e||e.length===0?!1:e.some(t=>!!(S(t)||t.terminalBlockers?.some(S)))}o(_e,"hasAssignedBacklogBlocker");export{q as _,he as a,J as c,X as d,fe as f,ce as g,T as h,ee as i,pe as l,de as m,S as n,te as o,me as p,Ae as r,ve as s,_e as t,Q as u,ye as v};
@@ -0,0 +1 @@
1
+ var p=Object.defineProperty;var a=(e,r)=>p(e,"name",{value:r,configurable:!0});var h={statuses:[],priorities:[],assignees:[],creators:[],labels:[],projects:[],workspaces:[],liveOnly:!1,externalObjectStatuses:[],hideRoutineExecutions:!1,showHiddenTasks:!1},O=["failed","waiting","running","auth_required","unreachable","stale","none"],b={failed:"Any failed",waiting:"Any waiting",running:"Any running",auth_required:"Auth required",unreachable:"Unreachable",stale:"Stale",none:"No external objects"};function x(e){return b[e]??I(e)}a(x,"externalObjectFilterLabel");var w=["in_progress","todo","backlog","in_review","blocked","done","cancelled"],S=["critical","high","medium","low"],_=[{label:"All",statuses:[]},{label:"Active",statuses:["todo","in_progress","in_review","blocked"]},{label:"Backlog",statuses:["backlog"]},{label:"Done",statuses:["done","cancelled"]}];function I(e){return e.replace(/_/g," ").replace(/\b\w/g,r=>r.toUpperCase())}a(I,"issueFilterLabel");function W(e,r){if(e.length!==r.length)return!1;const i=[...e].sort(),n=[...r].sort();return i.every((o,d)=>o===n[d])}a(W,"issueFilterArraysEqual");function u(e){return Array.isArray(e)?e.filter(r=>typeof r=="string"):[]}a(u,"normalizeIssueFilterValueArray");function A(e){if(!e||typeof e!="object")return{...h};const r=e;return{statuses:u(r.statuses),priorities:u(r.priorities),assignees:u(r.assignees),creators:u(r.creators),labels:u(r.labels),projects:u(r.projects),workspaces:u(r.workspaces),liveOnly:r.liveOnly===!0,externalObjectStatuses:u(r.externalObjectStatuses),hideRoutineExecutions:r.hideRoutineExecutions===!0,showHiddenTasks:r.showHiddenTasks===!0}}a(A,"normalizeIssueFilterState");function F(e,r){return e.includes(r)?e.filter(i=>i!==r):[...e,r]}a(F,"toggleIssueFilterValue");function L(e,r,i){const n=r.trim().toLocaleLowerCase();return n?(e??[]).filter(o=>i(o).toLocaleLowerCase().includes(n)):[...e??[]]}a(L,"searchIssueFilterOptions");function j(e,r={}){const i=e.projectId?r.defaultProjectWorkspaceIdByProjectId?.get(e.projectId)??null:null;if(e.executionWorkspaceId){const n=r.executionWorkspaceById?.get(e.executionWorkspaceId)??null,o=n?.projectWorkspaceId??e.projectWorkspaceId??null;return n?.mode==="shared_workspace"&&o!=null&&o===i?null:e.executionWorkspaceId}return e.projectWorkspaceId?e.projectWorkspaceId===i?null:e.projectWorkspaceId:null}a(j,"resolveIssueFilterWorkspaceId");function v(e,r){return r.has(e.id)?!1:!(e.mode==="shared_workspace"&&e.projectWorkspaceId!=null&&r.has(e.projectWorkspaceId))}a(v,"shouldIncludeIssueFilterWorkspaceOption");function c(e,r){return e?.[r]??0}a(c,"summaryRecordCount");function k(e,r){const i=e?.total??0;switch(r){case"failed":return c(e?.byStatusCategory,"failed")>0||c(e?.byStatusCategory,"blocked")>0;case"waiting":return c(e?.byStatusCategory,"waiting")>0;case"running":return c(e?.byStatusCategory,"running")>0;case"auth_required":return(e?.authRequiredCount??0)>0||c(e?.byLiveness,"auth_required")>0;case"unreachable":return(e?.unreachableCount??0)>0||c(e?.byLiveness,"unreachable")>0;case"stale":return(e?.staleCount??0)>0||c(e?.byLiveness,"stale")>0;case"none":return i===0;default:return!1}}a(k,"issueMatchesExternalObjectStatusFilter");function E(e,r,i,n=!1,o,d={}){let s=e;if(r.liveOnly&&(s=s.filter(t=>o?.has(t.id)===!0)),n&&r.hideRoutineExecutions&&(s=s.filter(t=>t.originKind!=="routine_execution")),r.statuses.length>0&&(s=s.filter(t=>r.statuses.includes(t.status))),r.priorities.length>0&&(s=s.filter(t=>r.priorities.includes(t.priority))),r.assignees.length>0&&(s=s.filter(t=>{for(const l of r.assignees)if(l==="__unassigned"&&!t.assigneeAgentId&&!t.assigneeUserId||l==="__me"&&i&&t.assigneeUserId===i||t.assigneeAgentId===l)return!0;return!1})),r.creators.length>0&&(s=s.filter(t=>{for(const l of r.creators)if(l.startsWith("agent:")&&t.createdByAgentId===l.slice(6)||l.startsWith("user:")&&t.createdByUserId===l.slice(5))return!0;return!1})),r.labels.length>0&&(s=s.filter(t=>(t.labelIds??[]).some(l=>r.labels.includes(l)))),r.projects.length>0&&(s=s.filter(t=>t.projectId!=null&&r.projects.includes(t.projectId))),r.workspaces.length>0&&(s=s.filter(t=>{const l=j(t,d);return l!=null&&r.workspaces.includes(l)})),r.externalObjectStatuses.length>0){const t=d.externalObjectSummaryByIssueId;if(!t||d.externalObjectSummariesReady!==!0)return[];s=s.filter(l=>{const f=t.get(l.id)??null;return r.externalObjectStatuses.some(g=>k(f,g))})}return s}a(E,"applyIssueFilters");function C(e,r=!1,i=!1){let n=0;return e.statuses.length>0&&(n+=1),e.priorities.length>0&&(n+=1),e.assignees.length>0&&(n+=1),e.creators.length>0&&(n+=1),e.labels.length>0&&(n+=1),e.projects.length>0&&(n+=1),e.workspaces.length>0&&(n+=1),e.liveOnly&&(n+=1),e.externalObjectStatuses.length>0&&(n+=1),r&&e.hideRoutineExecutions&&(n+=1),i&&e.showHiddenTasks&&(n+=1),n}a(C,"countActiveIssueFilters");export{O as a,S as c,A as d,j as f,F as h,x as i,_ as l,v as m,C as n,W as o,L as p,h as r,I as s,E as t,w as u};
@@ -0,0 +1 @@
1
+ var c=Object.defineProperty;var n=(i,t)=>c(i,"name",{value:t,configurable:!0});import{yi as m}from"./createLucideIcon-Dp_BESPI.js";function S(i){if(!Number.isFinite(i)||i<0)return"0 B";if(i<1024)return`${Math.round(i)} B`;const t=["KB","MB","GB","TB"];let e=i/1024,a=0;for(;e>=1024&&a<t.length-1;)e/=1024,a+=1;const r=e.toFixed(1);return`${r.endsWith(".0")?r.slice(0,-2):r} ${t[a]}`}n(S,"formatBytes");var o=new Set(["application/octet-stream","binary/octet-stream","application/x-binary"]),f=[".mp4",".m4v",".webm",".mov",".qt",".quicktime"],d=[".png",".jpg",".jpeg",".gif",".webp",".avif",".bmp",".ico"],h=new Set(["application/wasm"]),x=new Set(["application/zip","application/x-zip","application/x-zip-compressed"]),p=new Set(["text/markdown","text/x-markdown","application/markdown","application/x-markdown"]),E=new Set(["application/csv","application/ecmascript","application/graphql","application/html","application/javascript","application/json","application/ld+json","application/sql","application/toml","application/x-httpd-php","application/x-javascript","application/x-python","application/x-sh","application/x-yaml","application/xhtml+xml","application/xml","application/yaml"]),N=[".csv",".css",".graphql",".htm",".html",".js",".json",".jsx",".log",".markdown",".md",".mdx",".php",".py",".sh",".sql",".toml",".ts",".tsx",".txt",".xml",".yaml",".yml"];function s(i){return(i??"").toLowerCase().split(";")[0]?.trim()??""}n(s,"normalizeOutputContentType");function I(i){const t=(i??"").trim().toLowerCase();return t?N.some(e=>t.endsWith(e)):!1}n(I,"hasDocumentLikeFilename");function u(i){return x.has(i)||i.endsWith("+zip")}n(u,"isZipContentType");function v(i){return i?!!(i.startsWith("text/")||p.has(i)||E.has(i)||i.startsWith("application/")&&(i.endsWith("+json")||i.endsWith("+xml"))):!1}n(v,"isDocumentLikeOutputContentType");function g(i,t){const e=s(i);return!e||v(e)||o.has(e)&&I(t)?!1:e.startsWith("video/")||e.startsWith("image/")||e==="application/pdf"||h.has(e)||u(e)||o.has(e)}n(g,"isOutputEligibleContentType");function y(i){const t=s(i);if(t.startsWith("video/")){const e=t.slice(6);return e==="quicktime"?{label:"MOV",tone:"video"}:{label:(e||"vid").toUpperCase().slice(0,4),tone:"video"}}return t==="application/pdf"?{label:"PDF",tone:"pdf"}:u(t)?{label:"ZIP",tone:"zip"}:t.startsWith("image/")?{label:"IMG",tone:"image"}:p.has(t)?{label:"MD",tone:"bin"}:t==="text/plain"?{label:"TXT",tone:"bin"}:t==="text/csv"||t==="application/csv"?{label:"CSV",tone:"bin"}:t==="text/html"||t==="application/html"||t==="application/xhtml+xml"?{label:"HTML",tone:"bin"}:t==="application/json"||t.endsWith("+json")?{label:"JSON",tone:"bin"}:t==="application/xml"||t==="text/xml"||t.endsWith("+xml")?{label:"XML",tone:"bin"}:t==="application/wasm"?{label:"WASM",tone:"bin"}:{label:"BIN",tone:"bin"}}n(y,"getOutputFileGlyph");function W(i,t){const e=s(i);if(e.startsWith("video/"))return!0;if(!o.has(e))return!1;const a=(t??"").trim().toLowerCase();return f.some(r=>a.endsWith(r))}n(W,"isVideoLikeOutput");function b(i){const t=s(i);return t.startsWith("image/")&&t!=="image/svg+xml"}n(b,"isImageContentType");function _(i,t){const e=s(i);if(b(e))return!0;if(e&&!o.has(e))return!1;const a=(t??"").trim().toLowerCase();return d.some(r=>a.endsWith(r))}n(_,"isImageLikeOutput");function l(i){const t=new Date(i).getTime();return Number.isNaN(t)?0:t}n(l,"toTime");function T(i){const t=(i??[]).filter(e=>e.type==="artifact"&&e.provider==="wardmote").flatMap(e=>{const a=m.safeParse(e.metadata);return a.success&&!g(a.data.contentType,a.data.originalFilename)?[]:[{id:e.id,title:e.title,status:typeof e.status=="string"?e.status:"active",isPrimary:!!e.isPrimary,createdAt:e.createdAt,metadata:a.success?a.data:null,degraded:!a.success,workProduct:e}]});return t.sort((e,a)=>e.isPrimary!==a.isPrimary?e.isPrimary?-1:1:l(a.createdAt)-l(e.createdAt)),{items:t,primary:t[0]??null,rest:t.slice(1),count:t.length}}n(T,"getIssueOutputs");function C(i){return i.metadata?.originalFilename||i.title||"output"}n(C,"outputFilename");function A(i){return new Set(T(i).items.flatMap(t=>{const e=t.metadata?.attachmentId;return e?[e]:[]}))}n(A,"getPromotedOutputAttachmentIds");export{b as a,C as c,A as i,T as n,_ as o,y as r,W as s,S as t};
@@ -0,0 +1,4 @@
1
+ var Ol=Object.defineProperty;var a=(t,n)=>Ol(t,"name",{value:n,configurable:!0});import{i as Is}from"./rolldown-runtime-ZpX3ckPj.js";import{O as ks,_i as va,gi as El,h as M,hi as Na,l as g,m as Wl,mi as $l,na as _l,pi as Ml,t as Ca,ta as Ll,w as Fl}from"./createLucideIcon-Dp_BESPI.js";import{l as Bl}from"./dist-CYtosku9.js";import{a as As,h as Ss}from"./star-CpH09lE0.js";import{X as Ia,_ as Ce,n as Aa,t as j,v as A}from"./queryKeys-Sk0U6x0H.js";import{o as ql}from"./companies-query-lyTYPUyy.js";import{t as Dl}from"./issue-attribution-DfN_3u2W.js";import{n as Ps,t as Rs}from"./IssueDocumentAnnotations-BusZRPJz.js";import{n as zl,r as Ul}from"./WorkspaceRuntimeControls-C-Iz5m02.js";import{n as Kl}from"./CompanyContext-dsHNbwL5.js";import{A as sa,P as Vl,a as Ql,at as Hl,on as jt,ot as It,t as V,v as na,zt as E}from"./router-qrDA_fDm.js";import{i as Gl,p as Xl,r as Zl,t as Yl}from"./dropdown-menu-CR4r_wCy.js";import{i as Jl,n as qe,r as ei,t as ti}from"./tabs-BeNCSQfH.js";import{o as aa,r as ra,t as la}from"./popover-CgIDA573.js";import{t as si}from"./archive-restore-Bu12jvK6.js";import{t as ni}from"./arrow-right-rIiVMAiv.js";import{t as yt}from"./arrow-up-right-BWJhDk_Y.js";import{t as ne}from"./check-Cn0uuQ_e.js";import{t as ws}from"./chevron-down-DA6rxxgD.js";import{t as ai}from"./chevron-left-zJln1v3t.js";import{t as ri}from"./chevron-right-dRlTJLmW.js";import{t as li}from"./circle-question-mark-D9QciJpU.js";import{t as Sa}from"./clock-CzJ0Y1V8.js";import{A as ii,E as Pa,I as oi,M as ia,N as ci,S as di,T as ui,j as xi,k as mi,n as Ra,t as Ts,x as hi}from"./MarkdownBody-DneqWO_F.js";import{t as Ta}from"./external-link-dcZMvrBY.js";import{t as Os}from"./file-text-C3HKnY1t.js";import{t as pi}from"./file-BTR-cl5V.js";import{a as fi,i as gi,n as bi,t as ji}from"./RichWorkProductCard-JTRtbXzl.js";import{t as yi}from"./folder-open-BjdwrLu4.js";import{t as ki}from"./git-pull-request-BVLQZnFj.js";import{r as Oa,t as W}from"./button-bS07vQAg.js";import{t as vs}from"./plus--_-YgodI.js";import{t as wi}from"./repeat-CC7VfEiF.js";import{t as oa}from"./rotate-ccw-C_1vZuhL.js";import{t as vi}from"./triangle-alert-2xDDaXgc.js";import{t as De}from"./user-BVhnWxYc.js";import{t as Ni}from"./x-C-YdLCiV.js";import{i as Ci,n as Ii,r as Ai,t as Si}from"./tooltip-BeXkeOXn.js";import{t as se}from"./badge-Bw9Yv7_W.js";import{t as Pi}from"./Identity-D6-4ufCa.js";import{t as ve}from"./AgentAvatar-CHxCQtX1.js";import{t as Ea}from"./agents-B46GLJqX.js";import{t as Wa}from"./instanceSettings-kW2DXfL4.js";import{u as Ri}from"./inboxArchiveCache-DyAJQXXz.js";import{t as Ti}from"./projects-oY9VYW38.js";import{a as Oi,c as Ei,n as Wi,r as $i,s as _i,t as Mi}from"./dialog-BbBEA9p-.js";import{t as Li}from"./access-GBXLU9Vk.js";import{i as Fi,r as Bi}from"./assignees-DkQNbPzi.js";import{t as qi}from"./activity-CYcMbzsk.js";import{t as ca}from"./AgentIdentity-C6wmi_qi.js";import{t as Di}from"./textarea-BCpiepe1.js";import{t as zi}from"./recent-selections-BnN_nb6Y.js";import{a as Ui,i as Ki,r as Vi,t as Qi}from"./recent-assignees-DmalYaLf.js";import{t as Hi}from"./InlineEntitySelector-DcWijm3s.js";import{t as Gi}from"./clipboard-CTLKYvRL.js";import{t as kt}from"./StatusIcon-DQw2SvHx.js";import{_ as Xi,g as Zi,h as Yi,m as da,p as Ji,v as eo}from"./issue-blockers-B3cNlMTc.js";import{$n as to,Dn as so,Ja as $a,Kn as no,Qn as ua,Un as ao,Wn as ro,Xn as xa,Za as lo,Zn as io,ar as oo,eo as co,gn as uo,gr as xo,hr as ma,kr as mo,lr as ha,or as ho,sr as po,tr as fo}from"./index-CTvFhj4O.js";import{d as _a,i as go,n as Ma,s as bo,t as jo}from"./ImageGalleryModal-ed5kLgZ-.js";import{i as yo,r as ko,t as wt}from"./IssueReferencePill-Dib8WE_1.js";import{t as wo}from"./query-placeholder-data-Bg4z2kcq.js";import{i as vo,o as No,p as Co,r as Io,u as Ao}from"./SourceTrustBadge-B3O7Zxke.js";import{n as So}from"./runRetryState-dV9X1tL7.js";import{o as Po,s as Ro}from"./issue-output-DJVhoabR.js";import{n as To}from"./review-policy-Dxd8aZiE.js";import{t as Oo}from"./separator-BidXiA6w.js";import{n as Eo,t as Wo}from"./issue-workspace-selection-B39y05Qr.js";import{o as $o}from"./cases-CZE-FTip.js";var La={name:"hard-drive",size:24,node:[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]]};La.node;var _o=Ca(La),Fa={name:"table-2",size:24,node:[["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]]};Fa.node;var Mo=Ca(Fa),e=Is(Ll(),1),d=Is(_l(),1);function Ba(t){const n=A({queryKey:j.issues.workProducts(t??"__none__"),queryFn:a(({signal:x})=>E.listWorkProducts(t,{signal:x,fresh:!0}),"queryFn"),enabled:!!t,refetchOnMount:"always",placeholderData:wo(t??"__none__")}),r=n.data?.filter(x=>x.type==="pull_request")??[],l=!!t&&r.length>0,c=A({queryKey:[...j.issues.workProductPullRequestRefresh(t??"__none__"),r],queryFn:a(({signal:x})=>E.listWorkProducts(t,{refreshPullRequests:!0,signal:x,fresh:!0}),"queryFn"),enabled:l,refetchOnMount:"always"}),o=(0,d.useMemo)(()=>{const x=new Map(c.data?.map(u=>[u.id,u]));return n.data?.map(u=>{const h=x.get(u.id);return u.type!=="pull_request"||!h||new Date(h.updatedAt).getTime()!==new Date(u.updatedAt).getTime()?u:{...u,metadata:h.metadata}})},[n.data,c.data]);return{...n,data:o,isFetching:n.isFetching||c.isFetching,isError:n.isError||c.isError,error:n.error??c.error,refetch:a(async()=>{await Promise.all([n.refetch(),...l?[c.refetch()]:[]])},"refetch")}}a(Ba,"useIssueWorkProducts");var pa=Is(Bl(),1);function qa(t){return A({queryKey:[...j.issues.documents(t??""),"plan"],enabled:!!t&&!t?.startsWith("chat:"),queryFn:a(async()=>{try{return await E.getDocument(t,"plan")}catch(n){if(n instanceof Aa&&n.status===404)return null;throw n}},"queryFn")})}a(qa,"useIssuePlanDocument");function Lo(t){return t.createdByAgentId?!0:!t.createdByUserId&&!t.issueCommentId}a(Lo,"isAgentAttachment");function Fo(t){const n=new Set;for(const r of t??[]){const l=Na(r);l&&n.add(l.attachmentId)}return n}a(Fo,"getAttachmentBackedWorkProductAttachmentIds");function Da(t,n){const r=Fo(n);return(t??[]).filter(l=>Lo(l)&&!r.has(l.id))}a(Da,"selectAgentArtifactAttachments");function za(t){if(t.url)return t.url;const n=t.metadata;if(!n)return null;for(const r of["openPath","url"]){const l=n[r];if(typeof l=="string"&&l.trim().length>0)return l}return null}a(za,"workProductHref");function Bo(t){if(t.title?.trim())return t.title;const n=t.key.replace(/[-_]+/g," ").trim();return n.charAt(0).toUpperCase()+n.slice(1)}a(Bo,"documentDisplayTitle");var vt=new Set(["merged","closed","archived"]);function Nt(t){return vt.has(t.status)?t.status:typeof t.metadata?.state=="string"?t.metadata.state:t.status}a(Nt,"pullRequestState");function Ns(t){const n=Nt(t);return!vt.has(n)&&n!=="changes_requested"&&t.reviewState==="needs_board_review"}a(Ns,"pullRequestNeedsReview");function At(t){const n=za(t);if(!n)return null;try{const r=new URL(n);return!["http:","https:"].includes(r.protocol)||r.username||r.password?null:r.href}catch{return null}}a(At,"pullRequestHref");function qo(t){const n=At(t);if(n){const r=new URL(n),l=r.pathname.match(/^\/([^/]+)\/([^/]+)\/pull\/(\d+)\/?$/);if(r.hostname==="github.com"&&l)return`${l[1]}/${l[2]}#${l[3]}`}return t.title}a(qo,"pullRequestLabel");function Ue(t){if(!t)return null;try{const n=new URL(t);if(!["http:","https:"].includes(n.protocol)||n.username||n.password)return null;const r=n.pathname.match(/^\/([^/]+)\/([^/]+)\/pull\/(\d+)(?:\/|$)/);return n.hostname==="github.com"&&!n.port&&r?`github.com/${r[1].toLowerCase()}/${r[2].toLowerCase()}/pull/${Number(r[3])}`:n.href}catch{return null}}a(Ue,"pullRequestIdentity");function Do(t){const n=(t??[]).filter(l=>l.type==="pull_request").sort((l,c)=>new Date(c.updatedAt).getTime()-new Date(l.updatedAt).getTime()||Number(vt.has(Nt(c)))-Number(vt.has(Nt(l)))),r=new Set;return n.filter(l=>{const c=Ue(At(l))??l.id;return r.has(c)?!1:(r.add(c),!0)}).sort((l,c)=>Number(Ns(c))-Number(Ns(l))||Number(c.isPrimary)-Number(l.isPrimary))}a(Do,"getIssuePullRequests");function zo({products:t,externalObjects:n=[]}){return(0,e.jsx)("ul",{className:"flex min-w-0 flex-col gap-2",children:t.map(r=>{const l=At(r),c=qo(r),o=Nt(r),x=Ue(l),u=x?n.find(w=>Ue(w.url)===x):void 0,h=u?Pa(u):null,b=u?.liveness==="fresh"&&(u.statusIconKey==="git-merge"||["merged","closed"].includes(h?.toLowerCase()??""));return(0,e.jsxs)("li",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[l?(0,e.jsx)("a",{href:l,target:"_blank",rel:"noopener noreferrer",title:r.title,className:"break-words text-sm text-accent underline-offset-2 hover:underline",children:c}):(0,e.jsxs)("span",{className:"break-words text-sm",children:[c," · No PR link provided"]}),u?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs text-ink-3","data-external-status":u.statusCategory,"data-external-liveness":u.liveness,children:[(0,e.jsx)(Ra,{category:u.statusCategory,liveness:u.liveness,statusIconKey:u.statusIconKey,label:h}),(0,e.jsxs)("span",{children:[h,["fresh","unknown"].includes(u.liveness)?"":` (${ii(u.liveness)})`]})]}):null,Ns(r)&&!b?(0,e.jsx)(se,{variant:"outline",children:"Review requested"}):["merged","closed","archived","draft","changes_requested"].includes(o)&&h?.toLowerCase()!==o?(0,e.jsxs)("span",{className:"text-xs text-ink-3",children:[u?"Saved: ":"",o.replaceAll("_"," ")]}):null]},r.id)})})}a(zo,"IssuePullRequestLinks");function Ua(t){return A({queryKey:[...j.issues.documents(t??""),"list"],enabled:!!t&&!t?.startsWith("chat:"),queryFn:a(()=>E.listDocuments(t),"queryFn")})}a(Ua,"useIssueDocuments");function Uo(t){const n=(0,d.useMemo)(()=>io(t),[t]),r=(0,d.useRef)(!1);return(0,d.useEffect)(()=>{if(n.success||r.current)return;r.current=!0;const l=n.error.issues[0]?.path[0];uo(new Error(`Invalid task execution policy (${l==="stages"?"stages":l==="monitor"?"monitor":l==="authorizationPolicy"?"authorization":l==="reviewPreset"?"review_preset":"policy"})`))},[n]),n}a(Uo,"useExecutionPolicy");function Ko({status:t}){return t==="completed"?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-sm border border-emerald-500/50 bg-emerald-500/10 px-2 py-0.5 text-(length:--text-micro) font-medium text-emerald-900 dark:text-emerald-100",children:[(0,e.jsx)(As,{className:"h-3 w-3"}),"Completed"]}):(0,e.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-sm border border-amber-500/50 bg-amber-500/10 px-2 py-0.5 text-(length:--text-micro) font-medium text-amber-900 dark:text-amber-100",children:[(0,e.jsx)(Oa,{className:"h-3 w-3 animate-spin"}),"In flight"]})}a(Ko,"StatusBadge");function Vo({issueId:t,issueIdentifier:n,agentMap:r}){const{data:l}=A({queryKey:j.issues.acceptedPlanDecompositions(t),queryFn:a(()=>E.listAcceptedPlanDecompositions(t),"queryFn")}),c=(0,d.useMemo)(()=>l??[],[l]);return c.length===0?null:(0,e.jsxs)("div",{className:"space-y-3",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,e.jsx)("h3",{className:"text-sm font-medium text-ink-3",children:"Plan decomposition"}),(0,e.jsx)("span",{className:"text-(length:--text-micro) text-ink-3/80",children:c.length===1?"1 accepted plan revision":`${c.length} accepted plan revisions`})]}),(0,e.jsx)("ul",{className:"space-y-3",children:c.map(o=>{const x=o.requestedChildCount??0,u=o.childIssueIds?.length??0,h=o.ownerAgentId?r?.get(o.ownerAgentId)?.name??"agent":null,b=o.acceptedPlanRevisionNumber!=null?`revision ${o.acceptedPlanRevisionNumber}`:`revision ${o.acceptedPlanRevisionId.slice(0,8)}`,w=o.completedAt&&typeof o.completedAt=="string"?o.completedAt:o.completedAt instanceof Date?o.completedAt.toISOString():null,k=typeof o.updatedAt=="string"?o.updatedAt:o.updatedAt instanceof Date?o.updatedAt.toISOString():null,$=typeof o.createdAt=="string"?o.createdAt:o.createdAt instanceof Date?o.createdAt.toISOString():null;return(0,e.jsxs)("li",{className:"rounded-md border border-line bg-bg-2/50 p-3 text-sm",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,e.jsx)(Ko,{status:o.status}),(0,e.jsxs)("span",{className:"text-xs text-ink-3",children:["Plan ",b]}),(0,e.jsx)("span",{className:"text-xs text-ink-3/70",children:"·"}),(0,e.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs text-ink",children:[(0,e.jsx)(It,{className:"h-3 w-3 text-ink-3"}),u," of ",x," child ",x===1?"task":"tasks"," created"]}),o.status==="completed"&&x>0?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1 rounded-sm border border-sky-500/40 bg-sky-500/10 px-1.5 py-0.5 text-(length:--text-nano) font-medium text-sky-900 dark:text-sky-100",title:"Repeat attempts with this fingerprint reuse this record instead of creating new children",children:[(0,e.jsx)(wi,{className:"h-3 w-3"}),"Idempotent claim"]}):null]}),(0,e.jsxs)("div",{className:"mt-1 flex flex-wrap gap-x-3 gap-y-0.5 text-(length:--text-micro) text-ink-3",children:[h?(0,e.jsxs)("span",{children:["Owner: ",h]}):null,$?(0,e.jsxs)("span",{title:M($),children:["Started ",ks($)]}):null,w?(0,e.jsxs)("span",{title:M(w),children:["Completed ",ks(w)]}):k?(0,e.jsxs)("span",{title:M(k),children:["Updated ",ks(k)]}):null,n?(0,e.jsx)(V,{to:`/issues/${n}#document-plan`,className:"underline-offset-2 hover:underline",children:"Plan document"}):null]}),o.childIssues&&o.childIssues.length>0?(0,e.jsx)("ul",{className:"mt-2 flex flex-wrap gap-1.5",children:o.childIssues.map(v=>(0,e.jsx)("li",{children:(0,e.jsxs)(V,{to:`/issues/${v.identifier??v.id}`,className:g("inline-flex max-w-full items-center gap-1 rounded-sm border border-line bg-bg px-2 py-0.5 text-(length:--text-micro) text-ink transition-colors hover:bg-bg-3/40"),title:v.title,children:[(0,e.jsx)("span",{className:"font-medium",children:v.identifier??v.id.slice(0,8)}),(0,e.jsx)("span",{className:"truncate max-w-(--sz-24ch) text-ink-3",children:v.title}),(0,e.jsx)(ri,{className:"h-3 w-3 text-ink-3"})]})},v.id))}):null]},o.id)})})]})}a(Vo,"IssuePlanDecompositionsSection");function Qo(t){return(t??[]).some(n=>n.kind==="request_confirmation"&&n.status==="pending"&&n.payload.target?.type==="issue_document"&&n.payload.target.key==="plan")}a(Qo,"hasPendingPlanConfirmation");function Ho({issue:t}){const{data:n,isLoading:r}=qa(t.id),l=Ss(),[c,o]=(0,d.useState)(!1),{data:x}=A({queryKey:j.issues.acceptedPlanDecompositions(t.id),queryFn:a(()=>E.listAcceptedPlanDecompositions(t.id),"queryFn")}),{data:u}=A({queryKey:j.issues.interactions(t.id),queryFn:a(()=>E.listInteractions(t.id),"queryFn")}),h=(x?.length??0)>0,b=Qo(u);return!n&&!h?(0,e.jsx)("div",{className:"px-1 py-6 text-sm text-ink-3",children:r?"Loading plan…":t.workMode==="planning"?(0,e.jsxs)("div",{className:"space-y-2",children:[(0,e.jsx)("p",{children:"This task is in plan mode but no plan document has been written yet."}),b?(0,e.jsx)("p",{className:"text-amber-foreground",children:"A plan confirmation is pending, but the plan document it should confirm is missing."}):null]}):"No plan yet. The plan document, accepted plans, and their revisions will appear here."}):(0,e.jsxs)("div",{className:"space-y-4 py-2",children:[n?(0,e.jsxs)("section",{"data-testid":"issue-plan-document",className:"space-y-2",children:[(0,e.jsxs)("div",{className:"flex items-center gap-1 text-xs text-ink-3",children:[`Revision ${n.latestRevisionNumber??1} · updated ${new Date(n.updatedAt).toLocaleString([],{month:"short",day:"numeric",hour:"numeric",minute:"2-digit"})}`,(0,e.jsx)(Rs,{issueId:t.id,docKey:"plan",panelOpen:c,onToggle:a(()=>o(w=>!w),"onToggle")})]}),(0,e.jsx)(Ps,{issueId:t.id,doc:{key:"plan",latestRevisionId:n.latestRevisionId,latestRevisionNumber:n.latestRevisionNumber},bodyMarkdown:n.body,draftDirty:!1,draftConflicted:!1,historicalPreview:!1,locationHash:l.hash,panelOpen:c,onPanelOpenChange:o,panelPlacement:"popover",children:(0,e.jsx)(Ts,{children:n.body})})]}):null,h?(0,e.jsx)(Vo,{issueId:t.id,issueIdentifier:t.identifier}):null]})}a(Ho,"IssuePropertiesPlansTab");function T(t,...n){for(const r of n){const l=t?.[r];if(typeof l=="string"&&l.trim())return l.trim()}return""}a(T,"artifactText");function ue(t,...n){for(const r of n){const l=t?.[r];if(typeof l=="number"&&Number.isFinite(l)&&l>=0)return l}return null}a(ue,"artifactNumber");function ae(t){if(!t||/[\u0000-\u0020\\]/.test(t))return"";if(t.startsWith("/")&&!t.startsWith("//"))return t;try{const n=new URL(t);return["https:","http:"].includes(n.protocol)?t:""}catch{return""}}a(ae,"artifactUrl");function Ct(t){return/^\/api\/attachments\/[a-zA-Z0-9-]+\/content$/.test(t)?t:""}a(Ct,"artifactPreviewUrl");function Go(t){return t===null?"":t<1024?`${t} B`:t<1048576?`${(t/1024).toFixed(1)} KB`:`${(t/1048576).toFixed(1)} MB`}a(Go,"artifactFileSize");var Xo=50;function Zo(t){if(new TextEncoder().encode(t).length>1048576)throw new Error("CSV is too large to preview. Download the file to view it.");const n=[];let r=[],l="",c=!1,o=!1;const x=a(()=>{if(r.push(l),r.length>Xo)throw new Error("CSV has too many columns to preview. Download the file to view it.");l="",o=!1},"endField"),u=t.replace(/^\uFEFF/,"");for(let h=0;h<u.length;h++){const b=u[h];if(c)b==='"'&&u[h+1]==='"'?(l+='"',h++):b==='"'?(c=!1,o=!0):l+=b;else if(b===",")x();else if(b===`
2
+ `||b==="\r"){if(x(),n.push(r),r=[],b==="\r"&&u[h+1]===`
3
+ `&&h++,n.length>201)break}else if(b==='"'&&!l&&!o)c=!0;else{if(o||b==='"')throw new Error("CSV could not be previewed. Download the file to view it.");l+=b}}if(c)throw new Error("CSV could not be previewed. Download the file to view it.");return(l||r.length||o)&&(x(),n.push(r)),{columns:n[0]??[],rows:n.slice(1,201),truncated:n.length>201}}a(Zo,"parseArtifactCsv");async function Yo(t,n){if(!/^\/api\/attachments\/[a-zA-Z0-9-]+\/content$/.test(t))throw new Error("CSV preview is unavailable. Download the file to view it.");const r=await fetch(t,{credentials:"same-origin",redirect:"error",signal:n});if(!r.ok)throw new Error("CSV could not be loaded. Try again or download the file.");if(Number(r.headers.get("content-length"))>1048576)throw await r.body?.cancel(),new Error("CSV is too large to preview. Download the file to view it.");const l=r.body?.getReader();if(!l)throw new Error("CSV could not be loaded. Try again or download the file.");const c=new TextDecoder;let o="",x=0;try{for(;;){const{value:u,done:h}=await l.read();if(h)break;if(x+=u.byteLength,x>1048576)throw await l.cancel(),new Error("CSV is too large to preview. Download the file to view it.");o+=c.decode(u,{stream:!0})}o+=c.decode()}finally{l.releaseLock()}return Zo(o)}a(Yo,"loadArtifactCsv");function re({title:t,summary:n}){return(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("h2",{className:"break-words text-lg font-semibold leading-snug",children:t}),n&&(0,e.jsx)("p",{className:"whitespace-pre-wrap text-sm leading-relaxed text-ink-3",children:n})]})}a(re,"Identity");function le({author:t,updatedAt:n,action:r,statusBadge:l}){return(0,e.jsxs)("footer",{className:"flex flex-wrap items-center justify-between gap-3 border-t border-line px-5 py-3",children:[(0,e.jsx)("span",{className:"text-xs text-ink-3",children:[t,n].filter(Boolean).join(" · ")}),l,r]})}a(le,"Footer");function ie({children:t}){return(0,e.jsx)("article",{className:"w-full overflow-hidden rounded-lg border border-line bg-bg-2 text-ink",children:t})}a(ie,"Card");function Ke({url:t,children:n}){return t?(0,e.jsx)(W,{variant:"secondary",size:"sm",asChild:!0,children:(0,e.jsxs)("a",{href:t,target:"_blank",rel:"noreferrer",children:[n,(0,e.jsx)(Ta,{className:"size-3"})]})}):(0,e.jsx)(W,{variant:"secondary",size:"sm",disabled:!0,children:n})}a(Ke,"SourceLink");function Es({title:t,description:n,action:r,children:l}){return(0,e.jsxs)(Mi,{children:[(0,e.jsx)(Ei,{asChild:!0,children:(0,e.jsx)(W,{size:"sm",variant:"secondary",children:r})}),(0,e.jsxs)(Wi,{className:"max-h-dvh overflow-y-auto sm:max-w-2xl",children:[(0,e.jsxs)(Oi,{children:[(0,e.jsx)(_i,{className:"pr-6",children:t}),(0,e.jsx)($i,{children:n})]}),l]})]})}a(Es,"Viewer");function Ka({additions:t,deletions:n,filesChanged:r}){return(0,e.jsxs)("div",{className:"flex flex-wrap gap-2 font-mono text-xs",children:[t!=null&&(0,e.jsxs)("span",{className:"text-(--status-task-icon-done)",children:["+",t.toLocaleString("en-US")]}),n!=null&&(0,e.jsxs)("span",{className:"text-(--status-task-icon-blocked)",children:["−",n.toLocaleString("en-US")]}),r!=null&&(0,e.jsxs)("span",{className:"text-ink-3",children:[r," ",r===1?"file":"files"]})]})}a(Ka,"Diff");var Jo={passed:"Checks passed",pending:"Checks pending",failed:"Checks failed",unknown:"Checks not available"},ec={open:"Open",draft:"Draft",merged:"Merged",closed:"Closed",unknown:"State unknown"};function tc(t){const{number:n,repository:r,sourceBranch:l,targetBranch:c,state:o,checks:x,evidenceSource:u,reviewSummary:h,url:b}=t,w={passed:As,pending:Sa,failed:vi,unknown:li}[x],k={passed:"text-(--status-task-icon-done)",pending:"text-ink-3",failed:"text-(--status-task-icon-blocked)",unknown:"text-ink-3"}[x];return(0,e.jsxs)(ie,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-4 p-5",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2 text-xs text-ink-3",children:[(0,e.jsx)(ki,{className:"size-4"})," Pull request"," ",n!=null&&(0,e.jsxs)("span",{className:"font-mono",children:["#",n]})]}),(0,e.jsxs)(se,{variant:"outline",className:o==="merged"?"text-(--status-task-icon-done)":"text-ink-3",children:[o==="merged"&&(0,e.jsx)(oi,{className:"size-3"}),ec[o]]})]}),(0,e.jsx)(re,{...t}),(0,e.jsxs)("div",{className:"flex flex-col gap-2 text-xs text-ink-3",children:[(0,e.jsx)("span",{children:r}),(l||c)&&(0,e.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[(0,e.jsx)(It,{className:"size-3.5 shrink-0"}),(0,e.jsx)("code",{className:"min-w-0 truncate",title:l,children:l}),l&&c&&(0,e.jsx)(ni,{className:"size-3.5 shrink-0"}),(0,e.jsx)("code",{className:"min-w-0 truncate",title:c,children:c})]})]}),(0,e.jsx)(Ka,{...t})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2 border-t border-line px-5 py-4",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2 text-xs",children:[(0,e.jsx)(w,{className:`size-4 ${k}`}),Jo[x]]}),h&&(0,e.jsx)("p",{className:"text-xs leading-relaxed",children:h}),u&&(0,e.jsxs)("p",{className:"text-xs text-ink-3",children:["Source: ",u]})]}),(0,e.jsx)(le,{...t,action:(0,e.jsx)(Ke,{url:b,children:"Open pull request"})})]})}a(tc,"PullRequestCard");function sc(t){return(0,e.jsxs)(ie,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-4 p-5",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2 text-xs text-ink-3",children:[(0,e.jsx)(lo,{className:"size-4"})," Commit"," ",(0,e.jsx)("code",{title:t.sha,children:t.sha.slice(0,8)})]}),(0,e.jsx)(re,{...t}),(0,e.jsx)("span",{className:"break-words text-xs text-ink-3",children:t.repository}),t.branch&&(0,e.jsxs)("span",{className:"flex items-center gap-2 text-xs text-ink-3",children:[(0,e.jsx)(It,{className:"size-3.5"}),(0,e.jsx)("code",{className:"min-w-0 truncate",children:t.branch})]}),(0,e.jsx)(Ka,{...t})]}),(0,e.jsx)(le,{...t,action:(0,e.jsx)(Ke,{url:t.url,children:"View commit"})})]})}a(sc,"CommitCard");function fa({body:t}){return(0,e.jsx)("div",{className:"flex flex-col gap-3 text-sm leading-relaxed",children:(0,e.jsx)(di,{components:{h1:a(({children:n})=>(0,e.jsx)("h3",{className:"text-lg font-semibold",children:n}),"h1"),h2:a(({children:n})=>(0,e.jsx)("h3",{className:"text-base font-semibold",children:n}),"h2"),h3:a(({children:n})=>(0,e.jsx)("h4",{className:"text-sm font-semibold",children:n}),"h3"),ul:a(({children:n})=>(0,e.jsx)("ul",{className:"list-disc space-y-1 pl-5",children:n}),"ul"),ol:a(({children:n})=>(0,e.jsx)("ol",{className:"list-decimal space-y-1 pl-5",children:n}),"ol"),img:a(({src:n,alt:r})=>{const l=Ct(typeof n=="string"?n:"");if(l)return(0,e.jsx)("img",{src:l,alt:r??"",loading:"lazy",className:"h-auto max-w-full"});const c=ae(typeof n=="string"?n:"");return c?(0,e.jsx)("a",{href:c,target:"_blank",rel:"noreferrer",className:"underline underline-offset-4",children:r||"Open image"}):(0,e.jsx)("span",{children:r})},"img"),a:a(({children:n,href:r})=>(0,e.jsx)("a",{href:r,target:"_blank",rel:"noreferrer",className:"underline underline-offset-4",children:n}),"a")},children:t})})}a(fa,"Markdown");function Va(t){return(0,e.jsxs)(ie,{children:[t.body&&(0,e.jsx)("div",{className:"max-h-52 overflow-hidden border-b border-line bg-bg-3/20 p-5",inert:!0,children:(0,e.jsx)(fa,{body:t.body.slice(0,4e3)})}),(0,e.jsxs)("div",{className:"flex flex-col gap-3 p-5",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2 text-xs text-ink-3",children:[(0,e.jsx)(Os,{className:"size-4"})," Markdown",t.revision!=null&&` · revision ${t.revision}`]}),(0,e.jsx)(re,{...t}),(0,e.jsx)("span",{className:"break-all font-mono text-xs text-ink-3",children:t.filename})]}),(0,e.jsx)(le,{...t,action:(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[t.actions,t.onOpen?(0,e.jsx)(W,{size:"sm",variant:"secondary","aria-expanded":t.expanded,onClick:t.onOpen,children:t.expanded?"Close document":"Read document"}):(0,e.jsx)(Es,{title:t.title,description:t.filename,action:"Read document",children:(0,e.jsx)(fa,{body:t.body})})]})})]})}a(Va,"DocumentCard");function ga({columns:t,rows:n}){return(0,e.jsxs)("div",{className:"overflow-x-auto",children:[(0,e.jsxs)("table",{className:"w-full text-left text-xs",children:[(0,e.jsx)("thead",{children:(0,e.jsx)("tr",{children:t.map((r,l)=>(0,e.jsx)("th",{className:"border-b border-line px-3 py-3 font-medium text-ink-3",children:r},l))})}),(0,e.jsx)("tbody",{children:n.map((r,l)=>(0,e.jsx)("tr",{children:t.map((c,o)=>(0,e.jsx)("td",{className:"border-b border-line/50 px-3 py-3",children:r[o]??""},o))},l))})]}),n.length===0&&(0,e.jsx)("p",{className:"p-4 text-xs text-ink-3",children:"No rows"})]})}a(ga,"DataTable");function nc(t){const n=[t.columns,...t.rows].map(r=>r.map(l=>`"${String(l).replaceAll('"','""')}"`).join(",")).join(`
4
+ `);return(0,e.jsxs)(ie,{children:[(0,e.jsx)("div",{className:"border-b border-line bg-bg-3/20 px-2",children:(0,e.jsx)(ga,{columns:t.columns,rows:t.rows.slice(0,3)})}),(0,e.jsxs)("div",{className:"flex flex-col gap-3 p-5",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2 text-xs text-ink-3",children:[(0,e.jsx)(Mo,{className:"size-4"})," CSV · ",t.truncated?"First ":"",t.rows.length," ",t.rows.length===1?"row":"rows"," ·"," ",t.columns.length," ",t.columns.length===1?"column":"columns"]}),(0,e.jsx)(re,{...t}),(0,e.jsx)("span",{className:"break-all font-mono text-xs text-ink-3",children:t.filename})]}),(0,e.jsx)(le,{...t,action:(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[t.actions,(0,e.jsxs)(Es,{title:t.title,description:t.filename,action:"View data",children:[(0,e.jsx)(ga,{...t}),(0,e.jsx)(W,{asChild:!0,variant:"secondary",size:"sm",className:"w-fit",children:(0,e.jsx)("a",{download:t.filename,href:t.downloadUrl||`data:text/csv;charset=utf-8,${encodeURIComponent(n)}`,children:"Download CSV"})})]})]})})]})}a(nc,"DataCard");function Cs({src:t,alt:n}){const[r,l]=(0,d.useState)(null);return t&&r!==t?(0,e.jsx)("img",{src:t,alt:n,onError:a(()=>l(t),"onError"),loading:"lazy",className:"aspect-video w-full object-contain"}):(0,e.jsxs)("div",{className:"flex aspect-video flex-col items-center justify-center gap-3 text-ink-3",children:[(0,e.jsx)($a,{className:"size-8"}),(0,e.jsx)("span",{className:"text-xs",children:"No preview available"})]})}a(Cs,"ImageContent");function ac(t){return(0,e.jsxs)(ie,{children:[(0,e.jsx)("div",{className:"border-b border-line bg-bg-3/20",children:(0,e.jsx)(Cs,{src:t.imageUrl,alt:t.alt})}),(0,e.jsxs)("div",{className:"flex flex-col gap-3 p-5",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2 text-xs text-ink-3",children:[(0,e.jsx)($a,{className:"size-4"})," Image",t.width&&t.height?` · ${t.width} × ${t.height}`:""]}),(0,e.jsx)(re,{...t}),(0,e.jsx)("span",{className:"break-all font-mono text-xs text-ink-3",children:t.filename})]}),(0,e.jsx)(le,{...t,action:t.onOpen?(0,e.jsx)(W,{size:"sm",variant:"secondary","aria-label":`View image: ${t.title}`,onClick:t.onOpen,children:"View image"}):(0,e.jsx)(Es,{title:t.title,description:t.filename,action:"View image",children:(0,e.jsx)(Cs,{src:t.imageUrl,alt:t.alt})})})]})}a(ac,"ImageCard");function rc(t){return(0,e.jsxs)(ie,{children:[(0,e.jsx)("video",{src:t.videoUrl||void 0,poster:t.posterUrl||void 0,controls:!0,preload:"metadata","aria-label":t.title,className:"aspect-video w-full border-b border-line bg-bg-3"},t.videoUrl),(0,e.jsxs)("div",{className:"flex flex-col gap-3 p-5",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2 text-xs text-ink-3",children:[(0,e.jsx)(fi,{className:"size-4"})," Video",t.duration&&` · ${t.duration}`]}),(0,e.jsx)(re,{...t}),(0,e.jsx)("span",{className:"break-all font-mono text-xs text-ink-3",children:t.filename})]}),(0,e.jsx)(le,{...t,action:t.onOpen?(0,e.jsx)(W,{size:"sm",variant:"secondary","aria-label":`Open video: ${t.title}`,onClick:t.onOpen,children:"Open video"}):(0,e.jsx)(Ke,{url:t.videoUrl,children:"Open video"})})]})}a(rc,"VideoCard");function lc(t){return(0,e.jsxs)(ie,{children:[t.imageUrl&&(0,e.jsx)("div",{className:"border-b border-line bg-bg-3/20",children:(0,e.jsx)(Cs,{src:t.imageUrl,alt:t.imageAlt})}),(0,e.jsxs)("div",{className:"flex flex-col gap-4 p-5",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2 text-xs text-ink-3",children:[(0,e.jsx)(Hl,{className:"size-4"})," Link preview"]}),(0,e.jsx)(re,{...t}),(0,e.jsx)("span",{className:"break-all font-mono text-xs text-ink-3",children:t.url})]}),(0,e.jsx)(le,{...t,action:(0,e.jsx)(Ke,{url:t.url,children:"Open link"})})]})}a(lc,"LinkPreviewCard");function ic(t){return(0,e.jsxs)(ie,{children:[(0,e.jsxs)("div",{className:"flex flex-col gap-4 p-5",children:[(0,e.jsxs)("span",{className:"flex items-center gap-2 text-xs text-ink-3",children:[(0,e.jsx)(pi,{className:"size-4"})," File",t.fileSize&&` · ${t.fileSize}`]}),(0,e.jsx)(re,{...t}),(0,e.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,e.jsx)("span",{className:"break-all font-mono text-xs",children:t.filename}),(0,e.jsx)("span",{className:"break-all text-xs text-ink-3",children:t.contentType})]}),t.entries.length>0&&(0,e.jsx)("ul",{className:"flex flex-col gap-2 border-t border-line pt-4",children:t.entries.map((n,r)=>(0,e.jsxs)("li",{className:"flex items-center gap-2 font-mono text-xs text-ink-3",children:[(0,e.jsx)(Os,{className:"size-3.5 shrink-0"}),n]},r))})]}),(0,e.jsx)(le,{...t,action:(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[t.actions,t.openUrl&&(0,e.jsx)(Ke,{url:t.openUrl,children:"Open file"}),t.downloadUrl?(0,e.jsx)(W,{asChild:!0,size:"sm",variant:"secondary",children:(0,e.jsx)("a",{href:t.downloadUrl,download:t.filename,children:"Download file"})}):(0,e.jsx)(W,{size:"sm",variant:"secondary",disabled:!0,children:"Download unavailable"})]})})]})}a(ic,"FileCard");function Qa(t){const{metadata:n=null,attachmentId:r}=t,l=(0,d.useContext)(gi),c=(0,d.useContext)(_a),o=c&&r&&bo({contentType:t.contentType,originalFilename:t.filename})?(0,e.jsx)(W,{variant:"secondary",size:"sm","aria-label":`Open in tab: ${t.title}`,onClick:a(()=>c(r,t.filename),"onClick"),children:"Open in tab"}):null,[x,u]=(0,d.useState)(!1),[h,b]=(0,d.useState)(!1),w=Po(t.contentType,t.filename),k=Ro(t.contentType,t.filename),$=t.contentType.split(";")[0]==="text/csv"||/\.csv$/i.test(t.filename),v=t.byteSize!==null&&t.byteSize>1048576,Q=$&&/^\/api\/attachments\/[a-zA-Z0-9-]+\/content$/.test(t.contentPath),R=A({queryKey:["artifact-csv",t.id,t.contentPath,t.updatedAt],queryFn:a(({signal:P})=>Yo(t.contentPath,P),"queryFn"),enabled:Q&&!v&&h,retry:!1,staleTime:1/0}),S=ae(t.contentPath),N=ae(t.downloadPath),X=a(()=>{l?.(S)||u(!0)},"onOpen");return(w||k)&&S?(0,e.jsxs)(e.Fragment,{children:[k?(0,e.jsx)(rc,{...t,videoUrl:S,posterUrl:Ct(T(n,"posterUrl")),duration:T(n,"durationLabel"),onOpen:X}):(0,e.jsx)(ac,{...t,imageUrl:S,alt:T(n,"alt")||t.title,width:ue(n,"width"),height:ue(n,"height"),onOpen:X}),x&&(0,e.jsx)(jo,{items:[{id:t.id,contentPath:S,contentType:t.contentType,originalFilename:t.filename,downloadPath:N}],initialIndex:0,open:!0,onOpenChange:u})]}):Q&&!v&&R.data?(0,e.jsx)(nc,{...t,...R.data,downloadUrl:N,actions:(0,e.jsxs)(e.Fragment,{children:[o,N?(0,e.jsx)(W,{asChild:!0,size:"sm",variant:"secondary",children:(0,e.jsx)("a",{href:N,download:t.filename,children:"Download file"})}):null]})}):(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)(ic,{...t,fileSize:Go(t.byteSize),entries:[],downloadUrl:N,openUrl:ae(t.openPath)||S,actions:(0,e.jsxs)(e.Fragment,{children:[o,Q&&!v&&!R.isError?(0,e.jsx)(W,{variant:"secondary",size:"sm",disabled:R.isFetching,onClick:a(()=>b(!0),"onClick"),children:R.isFetching?"Loading preview…":"Preview data"}):null]})}),$&&(v||R.isError||!Q)&&(0,e.jsxs)("div",{className:"px-2 text-xs text-ink-3",role:"status",children:[v?"CSV is too large to preview. Download the file to view it.":R.isError?R.error.message:"CSV preview is unavailable. Download the file to view it.",R.isError&&(0,e.jsx)(W,{variant:"ghost",size:"sm",onClick:a(()=>{R.refetch()},"onClick"),children:"Retry preview"})]})]})}a(Qa,"IssueArtifactFile");function oc({workProduct:t,author:n}){const r=t.metadata,l=ae(za(t)),c=bi(t.type,t.status,t.reviewState),o={title:t.title,summary:t.summary??"",author:n,updatedAt:M(t.updatedAt),statusBadge:t.healthStatus==="unhealthy"?(0,e.jsx)(se,{variant:"destructive",children:"Unhealthy"}):c?(0,e.jsx)(se,{variant:"outline",children:c.label}):void 0},x={additions:ue(r,"additions"),deletions:ue(r,"deletions"),filesChanged:ue(r,"changedFiles","files")};if(t.type==="pull_request"){const u=T(r,"state")||(t.status==="active"?"open":t.status),h=T(r,"checks");return(0,e.jsx)(tc,{...o,...x,number:ue(r,"number","pullRequestNumber"),repository:T(r,"repo","repository","repositoryName"),sourceBranch:T(r,"headRef","head","headBranch","branch"),targetBranch:T(r,"baseRef","base","baseBranch"),state:u==="open"||u==="draft"||u==="merged"||u==="closed"?u:"unknown",checks:h==="passed"||h==="failed"||h==="pending"?h:"unknown",evidenceSource:T(r,"evidenceSource"),reviewSummary:T(r,"reviewSummary"),url:l,statusBadge:t.reviewState==="changes_requested"||t.reviewState==="needs_board_review"||t.status==="ready_for_review"||t.status==="changes_requested"||t.status==="failed"||t.healthStatus==="unhealthy"?o.statusBadge:void 0})}if(t.type==="commit")return(0,e.jsx)(sc,{...o,...x,sha:T(r,"sha","shortSha")||t.externalId||"",repository:T(r,"repo","repository","repositoryName"),branch:T(r,"branch","branchName"),url:l});if(t.type==="preview_url")return(0,e.jsx)(lc,{...o,url:l,imageUrl:Ct(T(r,"imageUrl")),imageAlt:T(r,"imageAlt")||t.title});if(t.type==="artifact"){const u=Na(t),h=ae(u?.contentPath||T(r,"contentPath")||l);return(0,e.jsx)(Qa,{...o,id:t.id,attachmentId:u?.attachmentId,filename:T(r,"originalFilename")||t.title,contentType:T(r,"contentType"),contentPath:h,openPath:ae(T(r,"openPath"))||l||h,downloadPath:ae(T(r,"downloadPath"))||(Ct(h)?Ma({contentPath:h}):l||h),byteSize:ue(r,"byteSize","size"),metadata:r})}return(0,e.jsx)(ji,{workProduct:t,href:l||null})}a(oc,"IssueWorkProductArtifactCard");function cc(t){switch(t){case"active":case"draft":return{label:"In progress",cssVar:"--status-task-in_progress"};case"ready_for_review":return{label:"For review",cssVar:"--status-task-in_review"};case"approved":case"merged":return{label:"Done",cssVar:"--status-task-done"};case"changes_requested":return{label:"Changes requested",cssVar:"--status-task-todo"};case"failed":return{label:"Failed",cssVar:"--status-task-blocked"};default:return null}}a(cc,"workProductStatusBadge");function dc({issueId:t,workProduct:n,metadata:r,reviewDoc:l,author:c,openRequestId:o}){const x=(0,d.useContext)(_a),[u,h]=(0,d.useState)(!1),[b,w]=(0,d.useState)(!1),k=(0,d.useRef)(null),$=Ss(),v=Ia(),Q=cc(n.status),R=r.byteSize>Ml,S=Ce({mutationFn:a(()=>E.ensureWorkProductReviewDocument(t,n.id),"mutationFn"),onSuccess:a(async()=>{await v.invalidateQueries({queryKey:j.issues.documents(t)})},"onSuccess")}),N=a(()=>{l||R||S.isPending||S.isSuccess||S.isError||S.mutate()},"requestPreview"),X=a(()=>{h(H=>(H||N(),!H))},"handleToggle");(0,d.useEffect)(()=>{o!==void 0&&h(!0)},[o]),(0,d.useEffect)(()=>{o===void 0||!u||k.current?.scrollIntoView({behavior:"smooth",block:"center"})},[u,o]),(0,d.useEffect)(()=>{o!==void 0&&N()},[o,l]);const P=S.error instanceof Aa&&[413,415,422].includes(S.error.status);let p;return R?p=(0,e.jsx)("p",{className:"text-sm text-ink-3",children:"This Markdown file is too large to preview. Use Raw or Download instead."}):l?p=l.body.trim().length>0?(0,e.jsx)(Ps,{issueId:t,doc:l,bodyMarkdown:l.body,draftDirty:!1,draftConflicted:!1,historicalPreview:!1,locationHash:$.hash,panelOpen:b,onPanelOpenChange:w,panelPlacement:"popover",children:(0,e.jsx)(Ts,{children:l.body})}):(0,e.jsx)("p",{className:"text-sm text-ink-3",children:"Document is empty."}):S.isError?p=(0,e.jsxs)("div",{className:"flex flex-col items-start gap-1.5",children:[(0,e.jsx)("p",{className:"text-sm text-ink-3",children:P?"This file can't be previewed as Markdown. Use Raw or Download instead.":"Preview failed to load."}),P?null:(0,e.jsx)("button",{type:"button",className:"rounded-md border border-line px-2 py-0.5 text-(length:--text-micro) text-ink-3 hover:bg-bg-3/50",onClick:a(()=>{S.reset(),S.mutate()},"onClick"),children:"Retry"})]}):p=(0,e.jsx)("p",{className:"text-sm text-ink-3",children:"Preparing preview…"}),(0,e.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,e.jsx)("div",{ref:k,children:(0,e.jsx)(Va,{title:n.title,summary:n.summary??"",author:c,updatedAt:M(n.updatedAt),filename:r.originalFilename??n.title,revision:l?.latestRevisionNumber,body:l?.body??"",onOpen:X,expanded:u,statusBadge:Q?(0,e.jsx)("span",{className:"text-xs text-ink-3",children:Q.label}):void 0,actions:(0,e.jsxs)(e.Fragment,{children:[l?(0,e.jsx)(Rs,{issueId:t,docKey:l.key,panelOpen:b,onToggle:a(()=>{h(!0),w(H=>!H)},"onToggle")}):null,x?(0,e.jsx)("button",{type:"button",onClick:a(()=>x(r.attachmentId,r.originalFilename??n.title),"onClick"),"aria-label":`Open in tab: ${n.title}`,title:"Open in tab",className:"shrink-0 px-1.5 py-1.5 text-ink-3 hover:text-ink",children:(0,e.jsx)(Os,{className:"h-3 w-3"})}):null,(0,e.jsx)("a",{href:r.openPath,target:"_blank",rel:"noreferrer","aria-label":`Open raw ${n.title}`,title:"Open raw",className:"shrink-0 px-1.5 py-1.5 text-ink-3 hover:text-ink",children:(0,e.jsx)(Ta,{className:"h-3 w-3"})}),(0,e.jsx)("a",{href:r.downloadPath,"aria-label":`Download ${n.title}`,title:"Download",className:"shrink-0 py-1.5 pr-2 pl-0.5 text-ink-3 hover:text-ink",children:(0,e.jsx)(co,{className:"h-3 w-3"})})]})})}),u?(0,e.jsx)("div",{className:"border-t border-line px-2.5 py-2",children:p}):null]})}a(dc,"MarkdownWorkProductRow");function uc({issueId:t,doc:n,author:r,openRequestId:l,onOpen:c}){const[o,x]=(0,d.useState)(!1),[u,h]=(0,d.useState)(!1),b=(0,d.useRef)(null),w=Ss();return(0,d.useEffect)(()=>{c||l===void 0||x(!0)},[c,l]),(0,d.useEffect)(()=>{c||l===void 0||!o||b.current?.scrollIntoView({behavior:"smooth",block:"center"})},[o,c,l]),(0,e.jsxs)("div",{ref:b,children:[(0,e.jsx)(Va,{title:Bo(n),summary:"",author:r,updatedAt:M(n.updatedAt),filename:`${n.key}.md`,revision:n.latestRevisionNumber,body:n.body,onOpen:c??(()=>x(k=>!k)),expanded:c?void 0:o,actions:c?void 0:(0,e.jsx)(Rs,{issueId:t,docKey:n.key,panelOpen:u,onToggle:a(()=>{x(!0),h(k=>!k)},"onToggle")})}),o?(0,e.jsx)("div",{className:"border-t border-line px-2.5 py-2",children:n.body.trim().length>0?(0,e.jsx)(Ps,{issueId:t,doc:n,bodyMarkdown:n.body,draftDirty:!1,draftConflicted:!1,historicalPreview:!1,locationHash:w.hash,panelOpen:u,onPanelOpenChange:h,panelPlacement:"popover",children:(0,e.jsx)(Ts,{children:n.body})}):(0,e.jsx)("p",{className:"text-sm text-ink-3",children:"Document is empty."})}):null]})}a(uc,"DocumentRow");function xc({issue:t,documentDeepLink:n,onOpenDocument:r}){const{data:l,isPending:c,isError:o,refetch:x}=A({queryKey:j.issues.attachments(t.id),queryFn:a(()=>E.listAttachments(t.id),"queryFn")}),{data:u,isPending:h,isError:b,refetch:w}=Ba(t.id),{data:k,isPending:$,isError:v,refetch:Q}=Ua(t.id),{data:R}=A({queryKey:j.issues.runs(t.id),queryFn:a(()=>qi.runsForIssue(t.id),"queryFn")}),{data:S}=A({queryKey:j.agents.list(t.companyId),queryFn:a(()=>Ea.list(t.companyId),"queryFn")}),N=u??[],X=(k??[]).filter(f=>!va(f.key)),P=new Map((k??[]).map(f=>[f.key,f])),p=Da(l,u),H=(0,d.useMemo)(()=>new Map((R??[]).map(f=>[f.runId,f])),[R]),Ie=(0,d.useMemo)(()=>new Map((S??[]).map(f=>[f.id,f])),[S]),Y=[...(0,d.useMemo)(()=>[...N.map(f=>({kind:"work_product",id:f.id,runId:f.createdByRunId,date:new Date(f.createdAt),value:f})),...X.map(f=>({kind:"document",id:f.id,runId:null,date:new Date(f.createdAt),value:f})),...p.map(f=>({kind:"attachment",id:f.id,runId:null,date:new Date(f.createdAt),value:f}))],[X,p,N]).reduce((f,z)=>{const Z=z.runId??"other",O=f.get(Z)??[];return O.push(z),f.set(Z,O),f},new Map)].map(([f,z])=>({runId:f,rows:z.sort((Z,O)=>O.date.getTime()-Z.date.getTime()),date:f==="other"?z[0]?.date??new Date(0):new Date(H.get(f)?.startedAt??z[0]?.date??0)})).sort((f,z)=>z.date.getTime()-f.date.getTime()),xe=o||b||v?(0,e.jsxs)("div",{role:"alert",className:"px-1 py-3 text-sm text-ink-3",children:["Some artifacts could not be loaded.",(0,e.jsx)("button",{className:"ml-2 underline",onClick:a(()=>{x(),w(),Q()},"onClick"),children:"Retry"})]}):c||h||$?(0,e.jsx)("p",{role:"status",className:"px-1 py-3 text-sm text-ink-3",children:"Loading artifacts…"}):null;return N.length===0&&X.length===0&&p.length===0?xe||(0,e.jsx)("div",{className:"px-1 py-6 text-sm text-ink-3",children:"No artifacts yet. Work products, documents, and agent-produced files will appear here."}):(0,e.jsxs)("div",{className:"@container flex flex-col gap-3 py-2",children:[xe,Y.map(f=>{const z=f.runId==="other"?null:H.get(f.runId),Z=z?Ie.get(z.agentId):null;return(0,e.jsxs)("section",{className:"flex flex-col gap-1.5",children:[f.runId!=="other"?(0,e.jsxs)("header",{className:"flex items-baseline justify-between gap-2 px-1",children:[(0,e.jsx)("h3",{className:"truncate text-xs font-medium text-ink",children:Z?.name??`Run ${f.runId.slice(0,8)}`}),(0,e.jsx)("time",{className:"shrink-0 text-(length:--text-micro) text-ink-3",dateTime:f.date.toISOString(),children:M(f.date)})]}):null,(0,e.jsx)("ul",{className:"grid grid-cols-1 gap-3",children:f.rows.map(O=>{if(O.kind==="work_product"){const L=O.value,Qe=El(L);if(Qe){const He=$l(L.id);return(0,e.jsx)("li",{className:"col-span-full min-w-0",children:(0,e.jsx)(dc,{issueId:t.id,workProduct:L,author:Z?.name??"",metadata:Qe,reviewDoc:P.get(He),openRequestId:n?.documentKey===He?n.requestId:void 0})},O.id)}return(0,e.jsx)("li",{className:"col-span-full min-w-0",children:(0,e.jsx)(oc,{workProduct:L,author:Z?.name??""})},O.id)}if(O.kind==="document"){const L=O.value;return(0,e.jsx)("li",{className:"col-span-full min-w-0",children:(0,e.jsx)(uc,{issueId:t.id,doc:L,author:Ie.get(L.updatedByAgentId??L.createdByAgentId??"")?.name??"",onOpen:r?()=>r(L):void 0,openRequestId:n?.documentKey===L.key?n.requestId:void 0})},O.id)}const B=O.value,Ve=B.originalFilename??B.objectKey;return(0,e.jsx)("li",{className:"col-span-full min-w-0",children:(0,e.jsx)(Qa,{id:B.id,attachmentId:B.id,title:Ve,summary:"",author:Ie.get(B.createdByAgentId??"")?.name??"",updatedAt:M(B.updatedAt),filename:Ve,contentType:B.contentType,contentPath:B.contentPath,openPath:go(B),downloadPath:Ma(B),byteSize:B.byteSize})},O.id)})})]},f.runId)})]})}a(xc,"IssuePropertiesArtifactsTab");function ze({children:t,className:n,title:r,first:l,streamlined:c}){return(0,e.jsxs)("div",{className:n,"data-property-section":"true",children:[r?(0,e.jsx)("div",{className:g(c?"pb-1 font-mono text-(length:--text-nano) font-normal uppercase tracking-wide text-ink-3/70":"text-xs font-semibold uppercase tracking-wide text-ink-3 pb-1",l?"pt-0":"pt-3"),children:r}):null,(0,e.jsx)("div",{className:"space-y-0.5",children:t})]})}a(ze,"PropertySection");function I({label:t,children:n,wrap:r}){return(0,e.jsxs)("div",{className:g("flex w-full min-w-0 gap-3 py-1",r?"items-start":"items-center"),"data-property-row":"true",children:[(0,e.jsx)("span",{className:g("text-xs text-ink-3 shrink-0 w-24 truncate",r&&"mt-0.5"),"data-property-label":typeof t=="string"?t:void 0,title:typeof t=="string"?t:void 0,children:t}),(0,e.jsx)("div",{className:g("flex min-w-0 flex-1 items-center gap-1.5",r&&"flex-col items-start"),"data-property-value":"true",children:n})]})}a(I,"PropertyRow");function ba({children:t,className:n,style:r,title:l}){return(0,e.jsx)(se,{variant:"outline",className:g("max-w-full min-w-0 justify-start truncate font-normal",n),style:r,title:l??(typeof t=="string"?t:void 0),children:t})}a(ba,"PropertyChip");function Ha({hiddenCount:t,expanded:n,onClick:r}){return!n&&t<=0?null:(0,e.jsx)("button",{type:"button",className:"inline-flex items-center gap-1 rounded-full border border-line px-2 py-0.5 text-xs text-ink-3 transition-colors hover:bg-bg-3/50 hover:text-ink",onClick:r,"aria-label":n?"Show fewer items":`Show ${t} more items`,children:n?"Show less":`Show ${t} more`})}a(Ha,"ExpandRelationListButton");var mc=5;function hc(t){return[...t].sort((n,r)=>{const l=ia(n.group.object?.statusTone);return ia(r.group.object?.statusTone)-l})}a(hc,"sortExternalObjectGroups");function Ga(t){const{pill:n}=t,r=n.displayKey?.trim();if(r)return r;if(n.providerKey==="github"){if(n.objectType==="pull_request")return"Github PR";if(n.objectType==="issue")return"Github Issue"}return ui(n.providerKey,n.objectType)}a(Ga,"externalObjectRowDisplayKey");function pc(t){const{pill:n}=t,r=Ga(t),l=mi(n.iconKey);return(0,e.jsxs)("span",{className:"inline-flex min-w-0 items-start gap-1",title:r,children:[l?(0,e.jsx)(l,{"aria-hidden":"true",className:"h-3.5 w-3.5 shrink-0 mt-0.5"}):null,(0,e.jsx)("span",{className:"truncate",children:r})]})}a(pc,"externalObjectRowLabel");function fc(t){if(!t)return null;try{const n=new URL(t);if(n.hostname!=="github.com")return null;const[,r,l,c,o]=n.pathname.split("/");return!r||!l||!o?null:c==="pull"?`PR ${o}`:c==="issues"?`Issue ${o}`:null}catch{return null}}a(fc,"githubObjectPropertyValue");function Ws(t){return Pa(t.pill)}a(Ws,"externalObjectPropertyStatusLabel");function Xa(t){const{pill:n}=t,r=Ws(t),l=(n.providerKey==="github"?fc(n.url):null)??n.displayTitle?.trim()??Ga(t);return r?`${l} - ${r}`:l}a(Xa,"externalObjectPropertyValue");function Za(t){const n=Ws(t);return t.pill.statusIconKey==="git-merge"||n.toLowerCase()==="merged"}a(Za,"isMergedExternalObject");function gc(t){return(Za(t)?sa.merged:sa[t.pill.statusCategory]??"text-ink-3 border-ink-3").split(" ").filter(n=>n.startsWith("text-")).join(" ")}a(gc,"externalObjectPropertyTone");function bc(t){return Za(t)?t.pill.statusIconKey??"git-merge":t.pill.statusIconKey}a(bc,"externalObjectPropertyStatusIconKey");function ja(t){const{pill:n,sourceLabels:r}=t,l=n.displayTitle??Xa(t);return r.length>0?`${l} - ${r.join(", ")}`:l}a(ja,"externalObjectPropertyTitle");function jc({group:t}){const{pill:n}=t,r=Ws(t),l=xi(n.providerKey),c=ci(n.objectType),o=Xa(t),x=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ra,{category:n.statusCategory,liveness:n.liveness,statusIconKey:bc(t),sizeClassName:"h-3.5 w-3.5",label:`${l}: ${r}`}),(0,e.jsx)("span",{className:"min-w-0 truncate",children:o})]}),u=g("inline-flex min-w-0 max-w-full items-center gap-1.5 text-sm no-underline pointer-coarse:min-h-6",gc(t),n.url?"hover:underline focus-visible:outline-none focus-visible:ring-(length:--rad-3) focus-visible:ring-focus":"");return n.url?(0,e.jsx)("a",{href:n.url,target:"_blank",rel:"noopener noreferrer","data-mention-kind":"external-object","data-external-status":n.statusCategory,"data-external-liveness":n.liveness,className:u,title:ja(t),"aria-label":`${l} ${c} - ${r}: ${n.displayTitle??o}`,children:x}):(0,e.jsx)("span",{"data-mention-kind":"external-object","data-external-status":n.statusCategory,"data-external-liveness":n.liveness,className:u,title:ja(t),"aria-label":`${l} ${c} - ${r}: ${n.displayTitle??o}`,children:x})}a(jc,"ExternalObjectPropertyValue");function yc({externalObjects:t,externalObjectsLoading:n,externalObjectsError:r,onRetryExternalObjects:l}){const[c,o]=(0,d.useState)(!1);if((0,d.useEffect)(()=>{o(!1)},[t]),r)return(0,e.jsx)(I,{label:"External objects",children:(0,e.jsxs)("span",{className:"text-xs text-ink-3",children:["Couldn't load external objects.",l?(0,e.jsxs)(e.Fragment,{children:[" ",(0,e.jsx)("button",{type:"button",className:"text-accent underline-offset-2 hover:underline",onClick:l,children:"Retry"})]}):null]})});if(n)return(0,e.jsx)(I,{label:"External objects",children:(0,e.jsx)("span",{className:"h-4 w-24 animate-pulse rounded bg-bg-3/40"})});if(!t||t.length===0)return null;const x=hc(t),u=c?x:x.slice(0,mc),h=x.length-u.length;return(0,e.jsxs)(e.Fragment,{children:[u.map(b=>{const{pill:w,group:k}=b;return(0,e.jsx)(I,{label:pc(b),children:(0,e.jsx)(jc,{group:b})},k.object?.id??`${w.providerKey}:${w.objectType}:${w.url??"anon"}`)}),c||h>0?(0,e.jsx)(I,{label:"References",children:(0,e.jsx)(Ha,{hiddenCount:h,expanded:c,onClick:a(()=>o(b=>!b),"onClick")})}):null]})}a(yc,"ExternalObjectRows");function kc(t){return t?t.executionWorkspacePolicy?.defaultProjectWorkspaceId??t.workspaces?.find(n=>n.isPrimary)?.id??t.workspaces?.[0]?.id??null:null}a(kc,"defaultProjectWorkspaceIdForProject");function wc(t){const n=t?.executionWorkspacePolicy?.enabled?t.executionWorkspacePolicy.defaultMode:null;return n==="isolated_workspace"||n==="operator_branch"?n:n==="adapter_default"?"agent_default":"shared_workspace"}a(wc,"defaultExecutionWorkspaceModeForProject");function vc(t){return t?.primaryWorkspace?.id??t?.workspaces.find(n=>n.isPrimary)?.id??t?.workspaces[0]?.id??null}a(vc,"primaryWorkspaceIdForProject");function Nc(t){const n=t.issue.currentExecutionWorkspace??null,r=vc(t.project),l=n?.projectWorkspaceId??t.issue.projectWorkspaceId??null;return n?n.mode!=="shared_workspace"?!1:!l||!r?!0:n.mode==="shared_workspace"&&l===r:!l||!r?!0:l===r}a(Nc,"isMainIssueWorkspace");function ya(t){if(!t)return"";const n=new Date(t);if(Number.isNaN(n.getTime()))return"";const r=n.getTimezoneOffset()*6e4;return new Date(n.getTime()-r).toISOString().slice(0,16)}a(ya,"toDateTimeLocalValue");function Cc(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)?t:{}}a(Cc,"asRecord");function K({inline:t,label:n,open:r,onOpenChange:l,triggerContent:c,triggerClassName:o,popoverClassName:x,popoverAlign:u="end",extra:h,stacked:b=!1,separateTrigger:w=!1,children:k}){const $=g("inline-flex min-h-5 items-center gap-1.5 cursor-pointer hover:bg-bg-3/50 rounded px-1 -mx-1 py-0.5 transition-colors min-w-0 max-w-full text-left","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus",o);if(w){const v=(0,e.jsx)("button",{type:"button",className:g($,"shrink-0"),"aria-label":`Edit ${n.toLowerCase()}`,"aria-expanded":r,onClick:t?()=>l(!r):void 0,children:(0,e.jsx)(ws,{className:g("h-3 w-3 text-ink-3",r&&"rotate-180"),"aria-hidden":!0})});return(0,e.jsxs)("div",{children:[(0,e.jsxs)(I,{label:n,wrap:b,children:[(0,e.jsxs)("div",{className:"flex min-w-0 max-w-full items-start gap-1.5",children:[c,t?v:(0,e.jsxs)(la,{open:r,onOpenChange:l,children:[(0,e.jsx)(aa,{asChild:!0,children:v}),(0,e.jsx)(ra,{className:g("p-1",x),align:u,collisionPadding:16,children:k})]})]}),h]}),t&&r?(0,e.jsx)("div",{className:g("rounded-md border border-line bg-bg-2 p-1 mb-2",x),children:k}):null]})}return t?(0,e.jsxs)("div",{children:[(0,e.jsxs)(I,{label:n,wrap:b,children:[(0,e.jsxs)("button",{className:g($,b&&"items-start"),onClick:a(()=>l(!r),"onClick"),"aria-expanded":r,children:[c,(0,e.jsx)(ws,{className:g("ml-auto h-3 w-3 shrink-0 text-ink-3 transition-transform",r&&"rotate-180"),"aria-hidden":!0})]}),h]}),r&&(0,e.jsx)("div",{className:g("rounded-md border border-line bg-bg-2 p-1 mb-2",x),children:k})]}):(0,e.jsxs)(I,{label:n,wrap:b,children:[(0,e.jsxs)(la,{open:r,onOpenChange:l,children:[(0,e.jsx)(aa,{asChild:!0,children:(0,e.jsxs)("button",{className:g($,b&&"items-start"),"aria-expanded":r,children:[c,(0,e.jsx)(ws,{className:g("ml-auto h-3 w-3 shrink-0 text-ink-3 transition-transform",r&&"rotate-180"),"aria-hidden":!0})]})}),(0,e.jsx)(ra,{className:g("p-1",x),align:u,collisionPadding:16,children:k})]}),h]})}a(K,"PropertyPicker");var Ic={origin:"origin",work:"work",reference:"reference"};function Ac({issueId:t}){const n=Ql(),{data:r}=A({queryKey:j.instance.experimentalSettings,queryFn:a(()=>Wa.getExperimental(),"queryFn")}),l=r?.enableCases===!0,c=A({queryKey:j.cases.forIssue(t),queryFn:a(()=>$o.listForIssue(t),"queryFn"),enabled:l&&!!t});if(!l)return null;const o=c.data??[];return c.isError?(0,e.jsxs)("section",{className:"space-y-2",children:[(0,e.jsx)("h3",{className:"text-xs font-semibold uppercase tracking-wide text-ink-3",children:"Cases"}),(0,e.jsx)("p",{className:"text-sm text-bad",children:"Could not load linked cases."})]}):o.length===0?null:(0,e.jsxs)("section",{className:"space-y-2",children:[(0,e.jsx)("h3",{className:"text-xs font-semibold uppercase tracking-wide text-ink-3",children:"Cases"}),(0,e.jsx)("div",{className:"space-y-1",children:o.map(x=>(0,e.jsxs)(V,{to:n(x.case.identifier),className:"flex items-center gap-2 rounded-md border border-line px-2.5 py-1.5 text-sm transition-colors hover:bg-bg-3/50",children:[(0,e.jsx)("span",{className:"font-mono text-xs text-ink-3 shrink-0",children:x.case.identifier}),(0,e.jsx)("span",{className:"min-w-0 flex-1 truncate",title:x.case.title,children:x.case.title}),(0,e.jsx)(se,{variant:"secondary",className:"shrink-0",children:Ic[x.role]}),(0,e.jsx)(so,{status:x.case.status})]},x.id))})]})}a(Ac,"IssueCasesPanel");function Sc(t){const n=Math.max(t.lastIndexOf("/"),t.lastIndexOf("\\"));return n<=0||n>=t.length-1?null:{prefix:t.slice(0,n+1),suffix:t.slice(n+1)}}a(Sc,"splitMiddleTruncation");function ka({value:t,icon:n}){const[r,l]=(0,d.useState)(!1),c=(0,d.useRef)(void 0);(0,d.useEffect)(()=>()=>clearTimeout(c.current),[]);const o=(0,d.useCallback)(async()=>{try{await Gi(t),l(!0),clearTimeout(c.current),c.current=setTimeout(()=>l(!1),1500)}catch{}},[t]),x=Sc(t);return(0,e.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0 flex-1",title:t,children:[(0,e.jsx)(n,{className:"h-3.5 w-3.5 text-ink-3 shrink-0"}),(0,e.jsx)("button",{type:"button",className:g("cursor-pointer text-left font-mono text-sm transition-colors hover:text-ink","min-w-0 flex-1"),onClick:o,title:t,"aria-label":`Copy ${t} to clipboard`,children:x?(0,e.jsxs)("span",{className:"flex min-w-0","data-middle-truncate":"true",children:[(0,e.jsx)("span",{className:"min-w-0 truncate",children:x.prefix}),(0,e.jsx)("span",{className:"max-w-1/2 shrink-0 truncate",children:x.suffix})]}):(0,e.jsx)("span",{className:"block truncate",children:t})}),r&&(0,e.jsxs)("span",{className:g("inline-flex items-center gap-1 text-xs shrink-0",Vl.done),role:"status",children:[(0,e.jsx)(ne,{className:"h-3 w-3 shrink-0"}),"Copied"]})]})}a(ka,"TruncatedCopyable");var Ne=50,Pc=5,wa="task-detail-pane-tab h-7 rounded-md text-sm font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus";function Qd({issue:t,childIssues:n=[],issueLinkState:r,onAddSubIssue:l,onUpdate:c,inline:o,hasActiveRun:x=!1,externalObjects:u,externalObjectsLoading:h,externalObjectsError:b,onRetryExternalObjects:w,onCheckMonitorNow:k,checkingMonitorNow:$=!1,documentDeepLink:v,sidePanelContentOnly:Q=!1}){const R=Uo(t.executionPolicy),S=R.success,N=R.success?R.data:null,{selectedCompanyId:X}=Kl(),P=Ia(),p=t.companyId??X,{data:H}=A({queryKey:j.instance.experimentalSettings,queryFn:a(()=>Wa.getExperimental(),"queryFn")}),Ie=H===void 0||H.enableManagedSandboxOnly===!0,[Y,xe]=(0,d.useState)(null);(0,d.useEffect)(()=>{if(o){xe(null);return}xe(document.getElementById(mo))},[o]);const{data:f}=qa(t.id),{data:z}=A({queryKey:j.issues.acceptedPlanDecompositions(t.id),queryFn:a(()=>E.listAcceptedPlanDecompositions(t.id),"queryFn"),enabled:!0}),{data:Z}=A({queryKey:j.issues.attachments(t.id),queryFn:a(()=>E.listAttachments(t.id),"queryFn"),enabled:!0}),{data:O,isError:B,refetch:Ve}=Ba(t.id),L=(0,d.useMemo)(()=>Do(O),[O]),Qe=(0,d.useMemo)(()=>{const s=new Set(L.map(i=>Ue(At(i))).filter(Boolean));return u?.filter(i=>!s.has(Ue(i.pill.url)))},[u,L]),{data:He}=Ua(t.id),$s=(He??[]).filter(s=>!va(s.key)),me=!!f||(z?.length??0)>0||$s.length>0,Ge=(O?.length??0)>0||$s.length>0||Da(Z,O).length>0,[he,Ae]=(0,d.useState)("properties"),[St,Xe]=(0,d.useState)(()=>new Set),Se=(0,d.useRef)(!1),Ya=(0,d.useCallback)(s=>{Se.current=!0,Ae(s)},[]);(0,d.useEffect)(()=>{Xe(new Set)},[t.id]),(0,d.useEffect)(()=>{me&&!Se.current&&Ae("plans")},[me]),(0,d.useEffect)(()=>{if(!v)return;const s=v.tab;s!=="document"&&(Se.current=!0,Ae(s),Xe(i=>{if(!i.has(s))return i;const m=new Set(i);return m.delete(s),m}))},[v]);const[_s,Ms]=(0,d.useState)(!1),[Pt,Rt]=(0,d.useState)(""),[pe,Ze]=(0,d.useState)(null),[Ls,Fs]=(0,d.useState)(!1),[Tt,Bs]=(0,d.useState)(""),[qs,Ds]=(0,d.useState)(!1),[Ja,Ye]=(0,d.useState)("mode"),[Ot,Et]=(0,d.useState)(""),[Je,et]=(0,d.useState)(!1),[zs,tt]=(0,d.useState)(""),[Us,Ks]=(0,d.useState)(!1),[er,st]=(0,d.useState)(!1),[nt,Wt]=(0,d.useState)(!1),[Vs,Qs]=(0,d.useState)(""),[tr,sr]=(0,d.useState)(!1),[nr,Hs]=(0,d.useState)(""),[ar,rr]=(0,d.useState)(!1),[lr,Gs]=(0,d.useState)(""),[ir,at]=(0,d.useState)(!1),[or,Pe]=(0,d.useState)(!1),[cr,dr]=(0,d.useState)(!1),[ur,xr]=(0,d.useState)(!1),[mr,hr]=(0,d.useState)(!1),[$t,Xs]=(0,d.useState)(""),[_t,Zs]=(0,d.useState)(""),[Ys,pr]=(0,d.useState)("#6366f1"),[rt,Js]=(0,d.useState)(()=>ya(N?.monitor?.nextCheckAt)),[en,tn]=(0,d.useState)(N?.monitor?.notes??""),[sn,nn]=(0,d.useState)(N?.monitor?.serviceName??""),[an,rn]=(0,d.useState)(null),[ln,on]=(0,d.useState)(null),[cn,Mt]=(0,d.useState)(null),[Lt,lt]=(0,d.useState)(!1),[Re,Ft]=(0,d.useState)(t.watchdog?.watchdogAgentId??""),[dn,Bt]=(0,d.useState)(t.watchdog?.instructions??""),fe=zs.trim(),Te=Vs.trim();(0,d.useEffect)(()=>{Ks(!1)},[t.id]);const{data:un}=A({queryKey:j.auth.session,queryFn:a(()=>ql.getSession(),"queryFn")}),q=un?.user?.id??un?.session?.userId,{data:D}=A({queryKey:j.agents.list(p),queryFn:a(()=>Ea.list(p),"queryFn"),enabled:!!p}),{data:ge}=A({queryKey:j.access.companyUserDirectory(p),queryFn:a(()=>Li.listUserDirectory(p),"queryFn"),enabled:!!p}),{data:qt}=A({queryKey:j.projects.list(p,{includeArchived:!0}),queryFn:a(()=>Ti.list(p,{includeArchived:!0}),"queryFn"),enabled:!!p}),fr=(0,d.useMemo)(()=>(qt??[]).filter(s=>!s.archivedAt||s.id===t.projectId),[qt,t.projectId]),{orderedProjects:Dt}=fo({projects:fr,companyId:p,userId:q}),{data:zt}=A({queryKey:j.issues.labels(p),queryFn:a(()=>E.listLabels(p),"queryFn"),enabled:!!p}),{data:oe,isFetching:xn}=A({queryKey:j.issues.list(p),queryFn:a(()=>E.list(p),"queryFn"),enabled:!!p&&(nt||Je&&fe.length===0)}),{data:gr,isFetching:br}=A({queryKey:p?j.issues.search(p,fe,void 0,Ne):["issues","blocker-search",fe,Ne],queryFn:a(()=>E.list(p,{q:fe,limit:Ne}),"queryFn"),enabled:!!p&&Je&&fe.length>0}),{data:jr,isFetching:yr}=A({queryKey:p?j.issues.search(p,Te,void 0,Ne):["issues","blocker-search",Te,Ne],queryFn:a(()=>E.list(p,{q:Te,limit:Ne}),"queryFn"),enabled:!!p&&nt&&Te.length>0}),Ut=Ce({mutationFn:a(s=>E.createLabel(p,s),"mutationFn"),onSuccess:a(async s=>{P.setQueryData(j.issues.labels(p),i=>i?i.some(m=>m.id===s.id)?i:[...i,s]:[s]),c({labelIds:[...t.labelIds??[],s.id]}),P.invalidateQueries({queryKey:j.issues.labels(p)}),Zs("")},"onSuccess")}),Kt=Ce({mutationFn:a(()=>E.unarchiveFromInbox(t.id),"mutationFn"),onMutate:a(()=>{Mt(null)},"onMutate"),onSuccess:a(()=>{Mt(null),P.setQueryData(j.issues.detail(t.id),s=>s&&{...s,archivedAt:null,archivedByActorType:null,archivedByAgentId:null,archivedByRunId:null}),P.invalidateQueries({queryKey:j.issues.detail(t.id)}),p&&Ri(P,p)},"onSuccess"),onError:a(s=>{Mt(s instanceof Error&&s.message.trim().length>0?s.message:"Failed to unarchive this issue. Please try again.")},"onError")}),kr=a(s=>{const i=t.labelIds??[];c({labelIds:i.includes(s)?i.filter(m=>m!==s):[...i,s]})},"toggleLabel"),be=a(s=>!s||!D?null:D.find(i=>i.id===s)?.name??s.slice(0,8),"agentName"),mn=a(s=>s?Dt.find(i=>i.id===s)?.name??s.slice(0,8):s?.slice(0,8)??"None","projectName"),wr=t.projectId?Dt.find(s=>s.id===t.projectId)??null:null,je=t.project??wr,{visible:Vt}=xo(),Qt=Vt&&H?.enableIsolatedWorkspaces===!0&&!!je?.executionWorkspacePolicy?.enabled,{data:Ht,isLoading:vr,isError:Nr}=A({queryKey:j.executionWorkspaces.list(p,{projectId:t.projectId??void 0,projectWorkspaceId:t.projectWorkspaceId??void 0,reuseEligible:!0}),queryFn:a(()=>ma.list(p,{projectId:t.projectId??void 0,projectWorkspaceId:t.projectWorkspaceId??void 0,reuseEligible:!0}),"queryFn"),enabled:!!p&&!!t.projectId&&Qt&&qs}),hn=Eo(t,je),Cr=t.executionWorkspacePreference!=null||t.executionWorkspaceSettings!=null,ye=hn==="reuse_existing"?"reuse":Cr&&hn==="isolated_workspace"?"isolated":"default",pn=(0,d.useMemo)(()=>ao(ro(Ht??[])).map(s=>({...s,options:s.options.filter(i=>no(i,Ot))})).filter(s=>s.options.length>0),[Ht,Ot]),fn=(Ht??[]).find(s=>s.id===t.executionWorkspaceId)??t.currentExecutionWorkspace??null,Ir=ye==="isolated"?"New isolated workspace":ye==="reuse"?fn?.name??"Reuse existing workspace":"Default",Ar=ye==="reuse"?fn?.branchName??void 0:void 0,Sr=a(()=>{Ds(!1),Ye("mode"),Et("")},"closeWorkspacePicker"),Gt=a((s,i)=>{const m=Wo(s,i?.id,i?.mode);m&&(c(m),Sr())},"saveWorkspaceSelection"),Xt=(0,d.useMemo)(()=>Nc({issue:t,project:je}),[t,je]),Pr=!!t.executionWorkspaceId&&!Xt,Zt=Xt?null:t.currentExecutionWorkspace?.config?.workspaceRuntime??null,gn=t.currentExecutionWorkspace?.runtimeServices??[],Yt=!!t.currentExecutionWorkspace?.cwd,bn=!!Zt&&Yt,Jt=(0,d.useMemo)(()=>Ul({runtimeConfig:Zt,runtimeServices:gn,canStartServices:bn,canRunJobs:Yt}),[Yt,bn,Zt,gn]),jn=!Xt&&(Jt.services.length>0||Jt.otherServices.length>0),it=Ce({mutationFn:a(s=>{const i=t.currentExecutionWorkspace?.id??t.executionWorkspaceId;if(!i)throw new Error("This task is not attached to a workspace.");return ma.controlRuntimeCommands(i,s.action,s)},"mutationFn"),onSuccess:a((s,i)=>{P.setQueryData(j.executionWorkspaces.detail(s.workspace.id),s.workspace),P.invalidateQueries({queryKey:j.issues.detail(t.id)}),P.invalidateQueries({queryKey:j.projects.detail(s.workspace.projectId)}),P.invalidateQueries({queryKey:j.executionWorkspaces.overview(s.workspace.companyId)}),P.invalidateQueries({queryKey:j.executionWorkspaces.workspaceOperations(s.workspace.id)}),p&&(P.invalidateQueries({queryKey:j.issues.list(p)}),P.invalidateQueries({queryKey:j.executionWorkspaces.list(p)})),on(null),rn(i.action==="run"?"Workspace job completed.":i.action==="stop"?"Workspace service stopped.":i.action==="restart"?"Workspace service restarted.":"Workspace service started.")},"onSuccess"),onError:a(s=>{rn(null),on(s instanceof Error?s.message:"Failed to control workspace commands.")},"onError")}),Rr=it.isPending?it.variables??null:null,yn=t.referencedIssueIdentifiers??[],kn=(0,d.useMemo)(()=>{const s=t.relatedWork?.outbound.map(({issue:i})=>({id:i.id,identifier:i.identifier,title:i.title,status:i.status}))??[];return s.length>0?s:yn.map(i=>({id:i,identifier:i,title:i}))},[t.relatedWork?.outbound,yn]),wn=(0,d.useMemo)(()=>t.relatedWork?.inbound.map(({issue:s})=>({id:s.id,identifier:s.identifier,title:s.title,status:s.status}))??[],[t.relatedWork?.inbound]),Tr=a(s=>{if(!s)return null;const i=qt?.find(m=>m.id===s)??null;return i?Fl(i):`/projects/${s}`},"projectLink"),vn=(0,d.useMemo)(()=>Qi(),[_s]),Nn=(0,d.useMemo)(()=>Vi((D??[]).filter(ha),vn),[D,vn]),Or=(0,d.useMemo)(()=>to(),[Ls]),es=(0,d.useMemo)(()=>ho(ge?.users),[ge?.users]),Er=(0,d.useMemo)(()=>po(ge?.users),[ge?.users]),Cn=(0,d.useMemo)(()=>oo(ge?.users,{excludeUserIds:[q,t.createdByUserId]}),[ge?.users,q,t.createdByUserId]),Oe=t.assigneeAgentId?D?.find(s=>s.id===t.assigneeAgentId):null,ts=t.assigneeAdapterOverrides??null,Wr=ts!==null,ss=Cc(ts?.adapterConfig),$r=typeof ss.model=="string"?ss.model:"",_r=String(ss.effort??""),Mr=a(s=>{c({assigneeAdapterOverrides:s})},"updateAssigneeAdapterOverrides"),Lr=(()=>{if(ts?.adapterConfig){const s=[$r,_r].filter(Boolean),i=s.length>0?`Override · ${s.join(" · ")}`:"Override · adapter options";return(0,e.jsx)("span",{className:"min-w-0 truncate text-sm",title:`Task-level model override — replaces the agent's primary model for this issue.${s.length>0?` (${s.join(" · ")})`:""}`,children:i})}return(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"Primary model"})})(),Fr=(0,e.jsxs)("div",{className:"w-full space-y-2 p-2",children:[(0,e.jsx)("p",{className:"text-xs text-ink-3",children:Oe?"This assignee's adapter does not expose editable task overrides.":"Select a compatible assignee agent to edit these overrides."}),(0,e.jsx)("button",{type:"button",className:"inline-flex items-center rounded-full border border-line px-2 py-0.5 text-xs text-ink-3 transition-colors hover:bg-bg-3/50 hover:text-ink",onClick:a(()=>Mr(null),"onClick"),children:"Clear adapter options"})]}),J=ua(t.executionPolicy,"review"),ee=ua(t.executionPolicy,"approval"),Ee=a(s=>Bi(s,q,es),"userLabel"),In=a(s=>Fi(s,es),"actualUserLabel"),ns=Ee(t.assigneeUserId),We=In(t.createdByUserId),U=Dl(t),An=U?.kind==="user"?Er.get(U.id):null,Sn=U?.kind==="user"&&U.viaAgentId?be(U.viaAgentId)??U.viaAgentId.slice(0,8):null,as=t.assigneeAgentId?`agent:${t.assigneeAgentId}`:t.assigneeUserId?`user:${t.assigneeUserId}`:"",Br=(0,d.useMemo)(()=>({agentMap:new Map((D??[]).map(s=>[s.id,s])),resolveUserLabel:a(s=>Ee(s),"resolveUserLabel")}),[D,es,q]),Pn=(0,d.useMemo)(()=>Co({runningAgentName:Oe?.name??null}),[Oe?.name]),Rn=a(()=>{Ms(!1),Rt(""),Ze(null)},"closeAssigneePicker"),Tn=a((s,i)=>{i?.(),c(s),Rn()},"applyAssignee"),rs=a((s,i,m)=>{if((s.assigneeAgentId?`agent:${s.assigneeAgentId}`:s.assigneeUserId?`user:${s.assigneeUserId}`:"")===as){Rn();return}if(x){Ze({...s,label:i,track:m});return}Tn(s,m)},"selectAssignee"),ls=a((s,i)=>{S&&c({executionPolicy:xa({existingPolicy:t.executionPolicy??null,reviewerValues:s,approverValues:i})})},"updateExecutionPolicy"),ot=a((s,i)=>{const m=s==="review"?J:ee,y=m.includes(i)?m.filter(te=>te!==i):[...m,i];ls(s==="review"?y:J,s==="approval"?y:ee)},"toggleExecutionParticipant"),On=a(s=>s.startsWith("agent:")?be(s.slice(6))??s.slice(6,14):s.startsWith("user:")?Ee(s.slice(5))??"User":s,"executionParticipantLabel"),En=J.map(s=>On(s)).join(", "),Wn=ee.map(s=>On(s)).join(", "),qr=J.length>0?(0,e.jsx)("span",{className:"text-sm truncate min-w-0",title:En,children:En}):(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"None"}),Dr=ee.length>0?(0,e.jsx)("span",{className:"text-sm truncate min-w-0",title:Wn,children:Wn}):(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"None"}),ct=To(t.reviewPolicy),$n=t.executionState?.status==="changes_requested"&&t.executionState.currentStageType?t.executionState.currentStageType:t.executionState?null:J.length>0?"review":ee.length>0?"approval":null,_n=a(s=>(0,e.jsx)(I,{label:"",children:(0,e.jsx)("button",{type:"button",className:"inline-flex items-center rounded-full border border-line px-2 py-0.5 text-xs text-ink-3 transition-colors hover:bg-bg-3/50 hover:text-ink",onClick:a(()=>c({status:"in_review"}),"onClick"),children:s==="review"?"Run review now":"Run approval now"})}),"runExecutionButton"),is=(()=>{if(!t.executionState?.currentStageType)return null;const s=t.executionState.currentStageType==="review"?"Review":"Approval",i=t.executionState.currentParticipant,m=i?i.type==="agent"?be(i.agentId??null):Ee(i.userId??null):null;return t.executionState.status==="changes_requested"?`${s} requested changes${m?` by ${m}`:""}`:`${s} pending${m?` with ${m}`:""}`})();(0,d.useEffect)(()=>{Js(ya(N?.monitor?.nextCheckAt)),tn(N?.monitor?.notes??""),nn(N?.monitor?.serviceName??"")},[N?.monitor?.nextCheckAt,N?.monitor?.notes,N?.monitor?.serviceName]),(0,d.useEffect)(()=>{Lt||(Ft(t.watchdog?.watchdogAgentId??""),Bt(t.watchdog?.instructions??""))},[t.watchdog?.watchdogAgentId,t.watchdog?.instructions,Lt]);const zr=(0,d.useMemo)(()=>(D??[]).filter(ha).map(s=>({id:s.id,label:s.name,searchText:`${s.name} ${s.role} ${s.title??""}`})),[D]),$e=Ce({mutationFn:a(s=>E.upsertWatchdog(t.id,s),"mutationFn"),onSuccess:a(s=>{P.setQueryData(j.issues.detail(t.id),i=>i&&{...i,watchdog:s}),P.invalidateQueries({queryKey:j.issues.detail(t.id)}),lt(!1)},"onSuccess")}),_e=Ce({mutationFn:a(()=>E.deleteWatchdog(t.id),"mutationFn"),onSuccess:a(()=>{P.setQueryData(j.issues.detail(t.id),s=>s&&{...s,watchdog:null}),P.invalidateQueries({queryKey:j.issues.detail(t.id)}),lt(!1)},"onSuccess")}),Ur=a(()=>{Re&&$e.mutate({agentId:Re,instructions:dn.trim()||null})},"saveWatchdog"),Kr=a(()=>{t.watchdog?_e.mutate():lt(!1),Ft(""),Bt("")},"removeWatchdog"),Mn=$e.error instanceof Error?$e.error.message:_e.error instanceof Error?_e.error.message:null,Me=(n??[]).find(s=>s.id===t.watchdog?.watchdogIssueId),Vr=t.watchdog?(0,e.jsxs)("span",{className:"inline-flex min-w-0 max-w-full items-center gap-1.5 text-sm",title:t.watchdog.instructions?.trim()||void 0,children:[(()=>{const s=(D??[]).find(i=>i.id===t.watchdog?.watchdogAgentId);return s?(0,e.jsx)(ve,{agent:s,size:16,className:"h-3.5 w-3.5 shrink-0 text-ink-3"}):null})(),(0,e.jsx)("span",{className:"shrink-0 max-w-40 truncate",children:be(t.watchdog.watchdogAgentId)}),t.watchdog.instructions?.trim()?(0,e.jsxs)("span",{className:"min-w-0 flex-1 truncate text-ink-3",children:["· ",t.watchdog.instructions.trim()]}):null,t.watchdog.status==="disabled"?(0,e.jsx)("span",{className:"shrink-0 text-xs text-ink-3",children:"(disabled)"}):null]}):(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"None"}),Qr=void 0,Hr=(0,e.jsxs)("div",{className:"space-y-3 p-2",children:[(0,e.jsxs)("div",{className:"space-y-1.5",children:[(0,e.jsx)("div",{className:"text-xs font-medium text-ink",children:"Watchdog agent"}),(0,e.jsx)(Hi,{value:Re,options:zr,placeholder:"Select agent",noneLabel:"No watchdog agent",searchPlaceholder:"Search agents...",emptyMessage:"No agents found.",onChange:Ft,renderTriggerValue:a(s=>{if(!s)return(0,e.jsx)("span",{className:"text-ink-3",children:"Select agent"});const i=(D??[]).find(m=>m.id===s.id);return(0,e.jsxs)(e.Fragment,{children:[i?(0,e.jsx)(ve,{agent:i,size:16,className:"h-3 w-3 shrink-0 text-ink-3"}):null,(0,e.jsx)("span",{className:"truncate",children:s.label})]})},"renderTriggerValue"),renderOption:a(s=>{const i=(D??[]).find(m=>m.id===s.id);return(0,e.jsxs)(e.Fragment,{children:[i?(0,e.jsx)(ve,{agent:i,size:16,className:"h-3 w-3 shrink-0 text-ink-3"}):null,(0,e.jsx)("span",{className:"truncate",children:s.label})]})},"renderOption")})]}),(0,e.jsxs)("div",{className:"space-y-1.5",children:[(0,e.jsxs)("div",{className:"text-xs font-medium text-ink",children:["Instructions ",(0,e.jsx)("span",{className:"font-normal text-ink-3",children:"(optional)"})]}),(0,e.jsx)(Di,{value:dn,onChange:a(s=>Bt(s.target.value),"onChange"),placeholder:"What should the watchdog watch for and how should it keep work moving?",rows:4,className:"text-xs"})]}),Me?(0,e.jsxs)("div",{className:"text-xs text-ink-3",children:["Watchdog task:"," ",(0,e.jsx)(V,{to:`/issues/${Me.id}`,className:"text-accent hover:underline",children:Me.identifier??"View task"})]}):null,Mn?(0,e.jsx)("div",{className:"rounded border border-bad/40 bg-bad/10 px-2 py-1 text-xs text-bad",children:Mn}):null,(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsx)("button",{type:"button",className:"text-xs text-ink-3 hover:text-bad transition-colors disabled:opacity-50",disabled:_e.isPending||!t.watchdog&&!Re,onClick:Kr,children:_e.isPending?"Removing…":"Remove"}),(0,e.jsx)(W,{type:"button",size:"sm",className:"h-7 text-xs",disabled:!Re||$e.isPending,onClick:Ur,children:$e.isPending?"Saving…":t.watchdog?"Update":"Set watchdog"})]})]}),Ln=a(s=>{if(!S)return;const i=xa({existingPolicy:t.executionPolicy??null,reviewerValues:J,approverValues:ee});if(!i&&!s){c({executionPolicy:null});return}const{monitor:m,...y}=i??{};c({executionPolicy:{...y,mode:i?.mode??t.executionPolicy?.mode??"normal",commentRequired:!0,stages:i?.stages??[],...s?{monitor:s}:{}}})},"updateMonitor"),Gr=a(()=>{if(!rt)return;const s=new Date(rt);if(Number.isNaN(s.getTime()))return;const i=sn.trim()||null;Ln({nextCheckAt:s.toISOString(),notes:en.trim()||null,scheduledBy:"board",kind:i?"external_service":null,serviceName:i,externalRef:null}),at(!1)},"saveMonitor"),Fn=a(()=>{Ln(null),at(!1)},"clearMonitor"),ce=t.executionState?.monitor??null,G=ce?.nextCheckAt??t.monitorNextCheckAt??N?.monitor?.nextCheckAt??null,ke=t.monitorAttemptCount??ce?.attemptCount??0,dt=t.monitorLastTriggeredAt??ce?.lastTriggeredAt??null,Xr=N?.monitor?.serviceName??ce?.serviceName??null,Zr=N?.monitor?.notes??ce?.notes??null,os=eo(G),cs=G?Yi(G,os):null,Yr=cs==="due now",Jr=!!cs?.startsWith("overdue by "),el=G?Zi(G,os):ce?.status==="cleared"?"Cleared":"None",Bn=G?Yr?"checking momentarily…":`${Ji(G,{},os)}${Jr?" · fires on next tick":ke>0?` · Attempt ${ke}`:""}`:ce?.status==="cleared"?[dt?`last checked ${jt(dt)}`:null,ke>0?`after attempt ${ke}`:null].filter(Boolean).join(" · "):null,tl=(0,e.jsx)(Ai,{children:(0,e.jsxs)(Si,{open:or,onOpenChange:Pe,children:[(0,e.jsx)(Ci,{asChild:!0,children:(0,e.jsxs)("span",{className:"inline-flex min-w-0 items-start gap-1.5","data-testid":"monitor-row-trigger",onClick:a(()=>Pe(!1),"onClick"),children:[G?(0,e.jsx)(Sa,{className:"mt-0.5 h-3.5 w-3.5 shrink-0 text-ink-3","aria-hidden":"true"}):null,(0,e.jsxs)("span",{className:"flex min-w-0 flex-col items-start",children:[(0,e.jsx)("span",{className:g("text-sm",G?"font-semibold text-ink":"text-ink-3"),children:el}),Bn?(0,e.jsx)("span",{className:"text-xs text-ink-3",children:Bn}):null]})]})}),G?(0,e.jsxs)(Ii,{side:"left",className:"w-80 border border-line bg-bg-2 p-0 text-ink shadow-md",onPointerDown:a(s=>s.stopPropagation(),"onPointerDown"),children:[(0,e.jsxs)("div",{className:"flex items-center justify-between border-b border-line px-4 py-3",children:[(0,e.jsx)("span",{className:"text-sm font-semibold",children:"Monitor"}),ke>0?(0,e.jsxs)("span",{className:"text-xs text-ink-3",children:["Attempt ",ke]}):null]}),(0,e.jsxs)("div",{className:"space-y-3 px-4 py-3 text-left",children:[(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-xs text-ink-3",children:"Next check"}),(0,e.jsx)("div",{className:"text-sm",children:da(G)}),(0,e.jsx)("div",{className:"text-xs text-ink-3",children:cs})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-xs text-ink-3",children:"Watching"}),(0,e.jsx)("div",{className:"text-sm",children:Xr??"—"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-xs text-ink-3",children:"Notes"}),(0,e.jsx)("div",{className:"whitespace-normal text-sm",children:Zr??"—"})]}),(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{className:"text-xs text-ink-3",children:"Last triggered"}),(0,e.jsx)("div",{className:"text-sm",children:dt?da(dt):"— not yet triggered"})]})]}),(0,e.jsxs)("div",{className:"flex gap-2 border-t border-line px-4 py-3",children:[k?(0,e.jsx)(W,{type:"button",size:"sm",variant:"secondary",disabled:$,onClick:a(()=>{Pe(!1),k()},"onClick"),children:$?"Checking…":"Check now"}):null,(0,e.jsx)(W,{type:"button",size:"sm",variant:"secondary",onClick:a(()=>{Pe(!1),at(!0)},"onClick"),children:"Edit"}),(0,e.jsx)(W,{type:"button",size:"sm",variant:"secondary",onClick:a(()=>{Pe(!1),Fn()},"onClick"),children:"Clear"})]})]}):null]})}),C=t.scheduledRetry??null,F=vo(t.id),qn=C&&C.status==="scheduled_retry",Dn=C?.scheduledRetryAt?new Date(C.scheduledRetryAt).toISOString():null,Le=Dn?Xi(Dn):null,ut=C?.scheduledRetryAt?M(C.scheduledRetryAt):null,zn=C?.scheduledRetryAt?Wl(new Date(C.scheduledRetryAt)):null,Un=So(C?.scheduledRetryReason),xt=typeof C?.scheduledRetryAttempt=="number"&&Number.isFinite(C.scheduledRetryAttempt)&&C.scheduledRetryAttempt>0?C.scheduledRetryAttempt:null,ds=C?.scheduledRetryReason==="max_turns_continuation",sl=(()=>{if(!Le)return"Pending schedule";const s=ds?"Continuation":"Retry";return Le==="now"?`${s} due now`:`${s} ${Le}`})(),us=F.isSuccess&&(F.data?.outcome==="promoted"||F.data?.outcome==="already_promoted"),nl=xt!==null?(0,e.jsxs)("span",{className:"whitespace-nowrap shrink-0 text-xs text-ink-3",children:["Attempt ",xt]}):null,al=(0,e.jsxs)("span",{className:"inline-flex min-w-0 items-center gap-1.5",children:[(0,e.jsx)(oa,{className:"h-3.5 w-3.5 shrink-0 text-ink-3","aria-hidden":"true"}),(0,e.jsx)("span",{className:"min-w-0 truncate text-sm text-ink",title:ut??void 0,children:sl}),zn?(0,e.jsx)("span",{className:"shrink-0 text-xs text-ink-3",title:ut??void 0,children:zn}):null]}),Kn=C?(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2 p-2 text-xs",children:[(0,e.jsxs)("div",{className:"flex items-center justify-between",children:[(0,e.jsx)("span",{className:"text-sm font-medium text-ink",children:ds?"Scheduled continuation":"Scheduled retry"}),xt!==null?(0,e.jsxs)("span",{className:"text-xs text-ink-3",children:["Attempt ",xt]}):null]}),(0,e.jsxs)("dl",{className:"grid grid-cols-(--gtc-15) gap-y-1",children:[Un?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("dt",{className:"text-ink-3",children:"Reason"}),(0,e.jsx)("dd",{className:"text-ink",children:Un})]}):null,ut?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("dt",{className:"text-ink-3",children:"Next attempt"}),(0,e.jsxs)("dd",{className:"text-ink",children:[ut,Le?(0,e.jsxs)("span",{className:"ml-1 text-ink-3",children:["· ",Le]}):null]})]}):null,C.retryOfRunId?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("dt",{className:"text-ink-3",children:"Replaces run"}),(0,e.jsx)("dd",{className:"text-ink",children:(0,e.jsx)(V,{to:`/agents/${C.agentId}/runs/${C.retryOfRunId}`,className:"font-mono text-ink hover:underline",children:C.retryOfRunId.slice(0,8)})})]}):null,C.agentName?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("dt",{className:"text-ink-3",children:"Agent"}),(0,e.jsx)("dd",{className:"text-ink",children:(0,e.jsx)(V,{to:`/agents/${C.agentId}`,className:"text-ink hover:underline",children:C.agentName})})]}):null,C.error?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("dt",{className:"text-ink-3",children:"Last error"}),(0,e.jsx)("dd",{className:"text-ink break-words",children:C.error})]}):null]}),(0,e.jsx)(Io,{error:F.lastError,onRetry:a(()=>{F.reset(),F.mutate()},"onRetry")}),(0,e.jsx)(Oo,{className:"my-1"}),(0,e.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,e.jsx)(W,{type:"button",size:"sm",variant:"primary",onClick:a(()=>F.mutate(),"onClick"),disabled:F.isPending||us,"data-testid":"issue-scheduled-retry-properties-retry-now",children:F.isPending?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,e.jsx)(Oa,{className:"h-3.5 w-3.5 animate-spin","aria-hidden":"true"}),"Retrying…"]}):us?(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,e.jsx)(As,{className:"h-3.5 w-3.5","aria-hidden":"true"}),F.data?.outcome==="already_promoted"?"Already promoted":"Promoted"]}):(0,e.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,e.jsx)(oa,{className:"h-3.5 w-3.5","aria-hidden":"true"}),"Retry now"]})}),(0,e.jsx)("span",{className:"text-right text-xs text-ink-3",children:F.isPending?"Promoting scheduled retry":us?F.data?.outcome==="already_promoted"?"Already promoted — run starting":"Promoted — run starting":F.data?.outcome==="waiting"&&F.data.scheduledRetry?.runId===C.runId?F.data.message:ds?"Pulls continuation forward immediately":"Pulls retry forward immediately"})]})]}):null,rl=(0,e.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,e.jsxs)("div",{className:"flex flex-col gap-2 md:flex-row",children:[(0,e.jsx)("input",{type:"datetime-local",className:"rounded-md border border-line bg-transparent px-2 py-1 text-xs",value:rt,onChange:a(s=>Js(s.target.value),"onChange")}),(0,e.jsx)("input",{type:"text",className:"min-w-0 flex-1 rounded-md border border-line bg-transparent px-2 py-1 text-xs",placeholder:"What should the agent re-check?",value:en,onChange:a(s=>tn(s.target.value),"onChange")})]}),(0,e.jsxs)("div",{className:"flex flex-col gap-2 md:flex-row",children:[(0,e.jsx)("input",{type:"text",className:"min-w-0 flex-1 rounded-md border border-line bg-transparent px-2 py-1 text-xs",placeholder:"External service",value:sn,onChange:a(s=>nn(s.target.value),"onChange")}),(0,e.jsxs)("div",{className:"flex items-center gap-2",children:[(0,e.jsx)("button",{type:"button",className:"inline-flex items-center rounded-full border border-line px-2 py-0.5 text-xs text-ink-3 transition-colors hover:bg-bg-3/50 hover:text-ink disabled:opacity-50",disabled:!rt,onClick:Gr,children:"Schedule"}),N?.monitor?(0,e.jsx)("button",{type:"button",className:"inline-flex items-center rounded-full border border-line px-2 py-0.5 text-xs text-ink-3 transition-colors hover:bg-bg-3/50 hover:text-ink",onClick:Fn,children:"Clear"}):null]})]})]}),mt=(0,d.useMemo)(()=>{const s=t.labelIds??[];if(s.length===0)return t.labels??[];const i=new Map;for(const m of zt??[])i.set(m.id,m);for(const m of t.labels??[])i.set(m.id,m);return s.map(m=>i.get(m)).filter(m=>!!m)},[t.labelIds,t.labels,zt]),ll=mt.length>0?(0,e.jsxs)("div",{className:"flex min-w-0 flex-col items-start gap-1",children:[mt.slice(0,3).map(s=>(0,e.jsx)(ba,{className:"border-0",style:{backgroundColor:`${s.color}22`,color:s.color},children:s.name},s.id)),mt.length>3&&(0,e.jsxs)(se,{variant:"outline",className:"border-line text-ink-3",children:["+",mt.length-3," more"]})]}):(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"None"}),il=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("input",{className:"w-full px-2 py-1.5 text-xs bg-transparent outline-none border-b border-line mb-1 placeholder:text-ink-3/50",placeholder:"Search labels...",value:$t,onChange:a(s=>Xs(s.target.value),"onChange"),autoFocus:!o}),(0,e.jsx)("div",{className:"max-h-44 overflow-y-auto overscroll-contain space-y-0.5",children:(zt??[]).filter(s=>$t.trim()?s.name.toLowerCase().includes($t.toLowerCase()):!0).map(s=>{const i=(t.labelIds??[]).includes(s.id);return(0,e.jsxs)("button",{className:g("flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50 text-left",i&&"bg-bg-3"),onClick:a(()=>kr(s.id),"onClick"),children:[(0,e.jsx)("span",{className:"h-2.5 w-2.5 rounded-full shrink-0",style:{backgroundColor:s.color}}),(0,e.jsx)("span",{className:"truncate flex-1",children:s.name}),i&&(0,e.jsx)(ne,{className:"h-3.5 w-3.5 shrink-0 text-ink","aria-hidden":"true"})]},s.id)})}),(0,e.jsxs)("div",{className:"mt-2 border-t border-line pt-2 space-y-1",children:[(0,e.jsxs)("div",{className:"flex items-center gap-1",children:[(0,e.jsx)("input",{className:"h-7 w-7 p-0 rounded bg-transparent",type:"color",value:Ys,onChange:a(s=>pr(s.target.value),"onChange")}),(0,e.jsx)("input",{className:"flex-1 px-2 py-1.5 text-xs bg-transparent outline-none rounded placeholder:text-ink-3/50",placeholder:"New label",value:_t,onChange:a(s=>Zs(s.target.value),"onChange")})]}),(0,e.jsxs)("button",{className:"flex items-center justify-center gap-1.5 w-full px-2 py-1.5 text-xs rounded border border-line hover:bg-bg-3/50 disabled:opacity-50",disabled:!_t.trim()||Ut.isPending,onClick:a(()=>Ut.mutate({name:_t.trim(),color:Ys}),"onClick"),children:[(0,e.jsx)(vs,{className:"h-3 w-3"}),Ut.isPending?"Creating…":"Create label"]})]})]}),ol=Oe?(0,e.jsx)(ca,{agent:Oe,size:"sm"}):ns?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(De,{className:"h-3.5 w-3.5 shrink-0 text-ink-3"}),(0,e.jsx)("span",{className:"min-w-0 truncate text-sm",title:ns,children:ns})]}):(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"Unassigned"}),cl=[...q?[{kind:"user",value:`user:${q}`,userId:q,label:"Assign to me",searchText:Ee(q)??""}]:[],...t.createdByUserId&&t.createdByUserId!==q?[{kind:"user",value:`user:${t.createdByUserId}`,userId:t.createdByUserId,label:We?`Assign to ${We}`:"Assign to requester",searchText:We??"requester"}]:[],...Cn.map(s=>({kind:"user",value:s.id,userId:s.id.slice(5),label:s.label,searchText:s.searchText??""}))],dl=Nn.map(s=>({kind:"agent",value:`agent:${s.id}`,agent:s,label:s.name,searchText:`${s.name} ${s.role} ${s.title??""}`})),xs=a((s,i)=>Pt.trim()?`${s} ${i}`.toLowerCase().includes(Pt.toLowerCase()):!0,"matchesAssigneeSearch"),ms=a(s=>(0,e.jsxs)("button",{className:g("flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50 text-left",s.value===as&&"bg-bg-3"),onClick:a(()=>{s.kind==="agent"?rs({assigneeAgentId:s.agent.id,assigneeUserId:null},s.label,()=>Ki(s.agent.id,p??void 0)):s.kind==="user"?rs({assigneeAgentId:null,assigneeUserId:s.userId},s.label,()=>Ui(s.userId,p??void 0)):rs({assigneeAgentId:null,assigneeUserId:null},s.label)},"onClick"),children:[s.kind==="agent"?(0,e.jsx)(ve,{agent:s.agent,size:16,className:"shrink-0 h-3 w-3 text-ink-3"}):s.kind==="user"?(0,e.jsx)(De,{className:"h-3 w-3 shrink-0 text-ink-3"}):null,(0,e.jsx)("span",{className:"min-w-0 flex-1 truncate",children:s.label}),s.value===as?(0,e.jsx)(ne,{className:"ml-auto h-3.5 w-3.5 shrink-0 text-ink","aria-hidden":"true"}):null]},s.value||"__none__"),"renderAssigneeOption"),hs=cl.filter(s=>xs(s.label,s.searchText)),ps=dl.filter(s=>xs(s.label,s.searchText)),Vn=xs("No assignee",""),Qn=a(s=>(0,e.jsx)("div",{className:"px-2 pb-0.5 pt-1.5 text-xs font-semibold uppercase tracking-wide text-ink-3",children:s}),"sectionHeader"),ul=pe?(0,e.jsx)("div",{className:"space-y-2 p-1",children:(0,e.jsx)(Ao,{copy:Pn,to:{agentId:pe.assigneeAgentId,userId:pe.assigneeUserId},resolvers:Br,onConfirm:a(()=>Tn({assigneeAgentId:pe.assigneeAgentId,assigneeUserId:pe.assigneeUserId},pe.track),"onConfirm"),onCancel:a(()=>Ze(null),"onCancel")})}):(0,e.jsxs)(e.Fragment,{children:[x?(0,e.jsx)("div",{className:"px-1 pt-1",children:(0,e.jsx)(No,{copy:Pn})}):null,(0,e.jsx)("input",{className:"w-full px-2 py-1.5 text-xs bg-transparent outline-none border-b border-line mb-1 placeholder:text-ink-3/50",placeholder:"Search assignees...",value:Pt,onChange:a(s=>Rt(s.target.value),"onChange"),autoFocus:!o}),(0,e.jsxs)("div",{className:"max-h-56 overflow-y-auto overscroll-contain",children:[Vn?ms({kind:"none",value:"",label:"No assignee",searchText:""}):null,ps.length>0?(0,e.jsxs)(e.Fragment,{children:[Qn("Agents"),ps.map(s=>ms(s))]}):null,hs.length>0?(0,e.jsxs)(e.Fragment,{children:[Qn("Board users"),hs.map(s=>ms(s))]}):null,!Vn&&ps.length===0&&hs.length===0?(0,e.jsx)("div",{className:"px-2 py-2 text-xs text-ink-3",children:"No matches."}):null]})]}),Hn=a((s,i,m,y,te)=>(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("input",{className:"w-full px-2 py-1.5 text-xs bg-transparent outline-none border-b border-line mb-1 placeholder:text-ink-3/50",placeholder:`Search ${s==="review"?"reviewers":"approvers"}...`,value:m,onChange:a(_=>y(_.target.value),"onChange"),autoFocus:!o}),(0,e.jsxs)("div",{className:"max-h-48 overflow-y-auto overscroll-contain",children:[(0,e.jsxs)("button",{className:g("flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50",i.length===0&&"bg-bg-3"),onClick:te,children:["No ",s==="review"?"reviewers":"approvers"]}),q&&(0,e.jsxs)("button",{className:g("flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50",i.includes(`user:${q}`)&&"bg-bg-3"),onClick:a(()=>ot(s,`user:${q}`),"onClick"),children:[(0,e.jsx)(De,{className:"h-3 w-3 shrink-0 text-ink-3"}),"Assign to me"]}),t.createdByUserId&&t.createdByUserId!==q&&(0,e.jsxs)("button",{className:g("flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50",i.includes(`user:${t.createdByUserId}`)&&"bg-bg-3"),onClick:a(()=>ot(s,`user:${t.createdByUserId}`),"onClick"),children:[(0,e.jsx)(De,{className:"h-3 w-3 shrink-0 text-ink-3"}),We||"Requester"]}),Cn.filter(_=>m.trim()?`${_.label} ${_.searchText??""}`.toLowerCase().includes(m.toLowerCase()):!0).map(_=>(0,e.jsxs)("button",{className:g("flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50",i.includes(_.id)&&"bg-bg-3"),onClick:a(()=>ot(s,_.id),"onClick"),children:[(0,e.jsx)(De,{className:"h-3 w-3 shrink-0 text-ink-3"}),_.label]},`${s}:${_.id}`)),Nn.filter(_=>m.trim()?_.name.toLowerCase().includes(m.toLowerCase()):!0).map(_=>{const ta=`agent:${_.id}`;return(0,e.jsxs)("button",{className:g("flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50",i.includes(ta)&&"bg-bg-3"),onClick:a(()=>ot(s,ta),"onClick"),children:[(0,e.jsx)(ve,{agent:_,size:16,className:"shrink-0 h-3 w-3 text-ink-3"}),_.name]},`${s}:${_.id}`)})]})]}),"executionParticipantsContent"),xl=t.projectId?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(na,{color:je?.color??null,icon:je?.icon??null,size:"sm"}),(0,e.jsx)("span",{className:"text-sm truncate min-w-0",title:mn(t.projectId),children:mn(t.projectId)})]}):(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"None"}),ml=zi([{id:"",kind:"none",name:"No project",color:null},...Dt.map(s=>({id:s.id,kind:"project",project:s,name:s.name,color:s.color??null}))],t.projectId??"",Or),hl=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("input",{className:"w-full px-2 py-1.5 text-xs bg-transparent outline-none border-b border-line mb-1 placeholder:text-ink-3/50",placeholder:"Search projects...",value:Tt,onChange:a(s=>Bs(s.target.value),"onChange"),autoFocus:!o}),(0,e.jsx)("div",{className:"max-h-48 overflow-y-auto overscroll-contain",children:ml.filter(s=>{if(!Tt.trim())return!0;const i=Tt.toLowerCase();return s.name.toLowerCase().includes(i)}).map(s=>(0,e.jsxs)("button",{className:g("flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50 whitespace-nowrap",s.id===(t.projectId??"")&&"bg-bg-3"),onClick:a(()=>{if(s.kind==="project"){const i=wc(s.project);c({projectId:s.project.id,projectWorkspaceId:kc(s.project),executionWorkspaceId:null,executionWorkspacePreference:Vt?i:null,executionWorkspaceSettings:Vt&&s.project.executionWorkspacePolicy?.enabled?{mode:i}:null})}else c({projectId:null,projectWorkspaceId:null,executionWorkspaceId:null,executionWorkspacePreference:null,executionWorkspaceSettings:null});Fs(!1)},"onClick"),children:[s.kind==="project"?(0,e.jsx)(na,{color:s.project.color??null,icon:s.project.icon??null,size:"xs"}):null,s.name]},s.id||"__none__"))})]}),we=t.blockedBy?.map(s=>s.id)??[],Fe=t.blockedBy??[],ht=t.blocks??[],Gn=Us?ht:ht.slice(0,Pc),pl=ht.length-Gn.length,fl=Fe.length>0?(0,e.jsxs)("div",{className:"flex min-w-0 flex-col items-start gap-1",children:[Fe.slice(0,2).map(s=>(0,e.jsx)(wt,{issue:s,onRemove:a(i=>c({blockedByIssueIds:we.filter(m=>m!==i)}),"onRemove")},s.id)),Fe.length>2?(0,e.jsx)(se,{asChild:!0,variant:"outline",className:"border-line text-ink-3 hover:bg-bg-3/50",children:(0,e.jsxs)("button",{type:"button",onClick:a(()=>et(!0),"onClick"),children:["+",Fe.length-2," more"]})}):null]}):(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"None"}),gl=n.length>0?(0,e.jsxs)("div",{className:"flex min-w-0 flex-col items-start gap-1",children:[n.slice(0,2).map(s=>(0,e.jsx)(wt,{variant:"property",issue:s,className:"min-w-0 max-w-full"},s.id)),n.length>2?(0,e.jsx)(se,{asChild:!0,variant:"outline",className:"border-line text-ink-3 hover:bg-bg-3/50",children:(0,e.jsxs)("button",{type:"button",onClick:a(()=>st(!0),"onClick"),children:["+",n.length-2," more"]})}):null]}):(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"None"}),bl=(0,d.useMemo)(()=>{if(!oe?.length)return new Set;const s=new Map;for(const y of oe){if(!y.parentId)continue;const te=s.get(y.parentId)??[];te.push(y.id),s.set(y.parentId,te)}const i=new Set,m=[...s.get(t.id)??[]];for(;m.length>0;){const y=m.pop();!y||i.has(y)||(i.add(y),m.push(...s.get(y)??[]))}return i},[oe,t.id]),fs=(0,d.useMemo)(()=>t.parentId?oe?.find(s=>s.id===t.parentId)??null:null,[oe,t.parentId]),Be=t.ancestors?.find(s=>s.id===t.parentId),jl=Be?.identifier??fs?.identifier,yl=Be?.title??fs?.title??t.parentId?.slice(0,8),kl=t.parentId?(0,e.jsx)(wt,{variant:"property",issue:hi(Be)?Be:{id:t.parentId,identifier:jl??t.parentId,title:yl??"Parent task",status:Be?.status??fs?.status},className:"min-w-0 max-w-full"}):(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"None"}),Xn=Te.length>0,Zn=((Xn?jr:oe)??[]).filter(s=>s.id!==t.id).filter(s=>!bl.has(s.id)).sort((s,i)=>{const m=`${s.identifier??""} ${s.title}`.trim(),y=`${i.identifier??""} ${i.title}`.trim();return m.localeCompare(y)}),wl=nt&&(Xn?yr:xn),vl=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("input",{className:"w-full px-2 py-1.5 text-xs bg-transparent outline-none border-b border-line mb-1 placeholder:text-ink-3/50",placeholder:"Search tasks...",value:Vs,onChange:a(s=>Qs(s.target.value),"onChange"),autoFocus:!o}),(0,e.jsxs)("div",{className:"max-h-48 overflow-y-auto overscroll-contain",children:[(0,e.jsx)("button",{className:g("flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50",!t.parentId&&"bg-bg-3"),onClick:a(()=>{c({parentId:null}),Wt(!1)},"onClick"),children:"No parent"}),Zn.map(s=>(0,e.jsxs)("button",{className:g("flex w-full items-center gap-2 px-2 py-1.5 text-left text-xs rounded hover:bg-bg-3/50",s.id===t.parentId&&"bg-bg-3"),onClick:a(()=>{c({parentId:s.id}),Wt(!1)},"onClick"),children:[(0,e.jsx)(kt,{status:s.status,className:"h-3 w-3"}),(0,e.jsxs)("span",{className:"truncate",children:[s.identifier?`${s.identifier} `:"",s.title]})]},s.id)),wl?(0,e.jsx)("div",{className:"px-2 py-2 text-xs text-ink-3",children:"Searching tasks..."}):Zn.length===0?(0,e.jsx)("div",{className:"px-2 py-2 text-xs text-ink-3",children:"No matching tasks."}):null]})]}),gs=fe.length>0,Nl=gs?gr:[...t.blockedBy??[],...oe??[]],bs=Array.from(new Map((Nl??[]).filter(s=>s.id!==t.id).map(s=>[s.id,s])).values());gs||bs.sort((s,i)=>{const m=`${s.identifier??""} ${s.title}`.trim(),y=`${i.identifier??""} ${i.title}`.trim();return m.localeCompare(y)});const Cl=Je&&(gs?br:xn),Il=a(s=>{c({blockedByIssueIds:we.includes(s)?we.filter(i=>i!==s):[...we,s]}),et(!1),tt("")},"toggleBlockedBy"),Al=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("input",{className:"w-full px-2 py-1.5 text-xs bg-transparent outline-none border-b border-line mb-1 placeholder:text-ink-3/50",placeholder:"Search tasks...",value:zs,onChange:a(s=>tt(s.target.value),"onChange"),autoFocus:!o,"aria-label":"Search tasks to add as blockers"}),(0,e.jsxs)("div",{className:"max-h-48 overflow-y-auto overscroll-contain",children:[(0,e.jsx)("button",{className:g("flex items-center gap-2 w-full px-2 py-1.5 text-xs rounded hover:bg-bg-3/50",we.length===0&&"bg-bg-3"),onClick:a(()=>{c({blockedByIssueIds:[]}),et(!1),tt("")},"onClick"),children:"No blockers"}),bs.map(s=>{const i=we.includes(s.id);return(0,e.jsxs)("button",{className:g("flex w-full items-center gap-2 px-2 py-1.5 text-left text-xs rounded hover:bg-bg-3/50",i&&"bg-bg-3"),onClick:a(()=>Il(s.id),"onClick"),children:[(0,e.jsx)(kt,{status:s.status,className:"h-3 w-3"}),(0,e.jsxs)("span",{className:"truncate",children:[s.identifier?`${s.identifier} `:"",s.title]}),i&&(0,e.jsx)(ne,{className:"ml-auto h-3.5 w-3.5 shrink-0 text-ink","aria-hidden":"true"})]},s.id)}),Cl?(0,e.jsx)("div",{className:"px-2 py-2 text-xs text-ink-3",children:"Searching tasks..."}):bs.length===0?(0,e.jsx)("div",{className:"px-2 py-2 text-xs text-ink-3",children:"No matching tasks."}):null]})]}),Sl=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)("div",{className:"max-h-48 overflow-y-auto overscroll-contain",children:n.length>0?n.map(s=>(0,e.jsxs)(V,{to:`/issues/${s.identifier??s.id}`,state:r,className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left text-xs hover:bg-bg-3/50",onClick:a(()=>st(!1),"onClick"),children:[(0,e.jsx)(kt,{status:s.status,className:"h-3 w-3"}),(0,e.jsxs)("span",{className:"min-w-0 truncate",children:[s.identifier?`${s.identifier} `:"",s.title]})]},s.id)):(0,e.jsx)("div",{className:"px-2 py-2 text-xs text-ink-3",children:"No subtasks yet."})}),l?(0,e.jsx)("div",{className:"mt-2 border-t border-line pt-2",children:(0,e.jsxs)("button",{type:"button",className:"flex w-full items-center justify-center gap-1.5 rounded border border-line px-2 py-1.5 text-xs hover:bg-bg-3/50",onClick:a(()=>{st(!1),l()},"onClick"),children:[(0,e.jsx)(vs,{className:"h-3 w-3"}),"Add subtask"]})}):null]}),js=(0,e.jsxs)("div",{className:g("task-detail-properties pl-4"),children:[(0,e.jsxs)(ze,{title:"Work",first:!0,streamlined:!0,children:[(0,e.jsx)(I,{label:"Status",children:(0,e.jsx)(kt,{status:t.status,externalConversationState:t.externalConversationState,glyphContainerClassName:"inline-flex size-6 shrink-0 items-center justify-center",blockerAttention:t.blockerAttention,onChange:a(s=>c({status:s}),"onChange"),showLabel:!0})}),!1,(0,e.jsx)(K,{inline:o,label:"Assignee",open:_s,onOpenChange:a(s=>{Ms(s),s||(Rt(""),Ze(null))},"onOpenChange"),triggerContent:ol,popoverClassName:"w-52",extra:t.assigneeAgentId?(0,e.jsx)(V,{to:`/agents/${t.assigneeAgentId}`,className:"inline-flex items-center justify-center h-5 w-5 rounded hover:bg-bg-3/50 transition-colors text-ink-3 hover:text-ink",onClick:a(s=>s.stopPropagation(),"onClick"),children:(0,e.jsx)(yt,{className:"h-3 w-3"})}):void 0,children:ul}),Wr?(0,e.jsx)(K,{inline:o,label:"Model",open:mr,onOpenChange:hr,triggerContent:Lr,triggerClassName:"min-w-0 max-w-full",popoverClassName:g("max-w-full",o?"w-full":"w-72"),children:Fr}):null,(0,e.jsx)(K,{inline:o,label:"Project",open:Ls,onOpenChange:a(s=>{Fs(s),s||Bs("")},"onOpenChange"),triggerContent:xl,triggerClassName:"min-w-0 max-w-full",popoverClassName:"w-fit min-w-(--sz-11rem)",extra:t.projectId?(0,e.jsx)(V,{to:Tr(t.projectId),className:"inline-flex items-center justify-center h-5 w-5 rounded hover:bg-bg-3/50 transition-colors text-ink-3 hover:text-ink",onClick:a(s=>s.stopPropagation(),"onClick"),children:(0,e.jsx)(yt,{className:"h-3 w-3"})}):void 0,children:hl}),(0,e.jsx)(K,{inline:o,label:"Labels",open:ur,onOpenChange:a(s=>{xr(s),s||Xs("")},"onOpenChange"),triggerContent:ll,triggerClassName:"min-w-0 max-w-full",popoverClassName:"w-64",extra:Qr,stacked:!0,children:il})]}),(0,e.jsxs)(ze,{title:"Relationships",streamlined:!0,children:[(0,e.jsx)(K,{inline:o,label:"Parent",open:nt,onOpenChange:a(s=>{Wt(s),s||Qs("")},"onOpenChange"),triggerContent:kl,triggerClassName:"min-w-0 max-w-full",popoverClassName:"w-72",separateTrigger:!!t.parentId,children:vl}),(0,e.jsx)(K,{inline:o,label:"Blocked by",open:Je,onOpenChange:a(s=>{et(s),s||tt("")},"onOpenChange"),separateTrigger:Fe.length>0,triggerContent:fl,triggerClassName:"min-w-0 max-w-full",popoverClassName:"w-72",stacked:!0,children:Al}),(0,e.jsx)(I,{label:"Blocking",wrap:!0,children:ht.length>0?(0,e.jsxs)("div",{className:"flex flex-col items-start gap-1.5",children:[Gn.map(s=>(0,e.jsx)(wt,{variant:"property",issue:s},s.id)),(0,e.jsx)(Ha,{hiddenCount:pl,expanded:Us,onClick:a(()=>Ks(s=>!s),"onClick")})]}):(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"None"})}),(0,e.jsx)(K,{inline:o,label:"Subtasks",open:er,onOpenChange:st,separateTrigger:n.length>0,triggerContent:gl,triggerClassName:"min-w-0 max-w-full",popoverClassName:"w-72",stacked:!0,children:Sl}),L.length>0||B?(0,e.jsx)(I,{label:"Pull requests",wrap:!0,children:(0,e.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",children:[(0,e.jsx)(zo,{products:L,externalObjects:u?.map(s=>s.pill)}),B?(0,e.jsxs)("span",{className:"text-xs text-ink-3",children:["Couldn’t load pull requests. ",(0,e.jsx)("button",{type:"button",className:"text-accent hover:underline",onClick:a(()=>{Ve()},"onClick"),children:"Retry"})]}):null]})}):null,(0,e.jsx)(yc,{externalObjects:Qe,externalObjectsLoading:h,externalObjectsError:b,onRetryExternalObjects:w})]}),(0,e.jsxs)(ze,{title:"Execution",streamlined:!0,children:[ct?(0,e.jsx)(I,{label:"Approvals",children:(0,e.jsxs)(ba,{title:ct.description,children:[(0,e.jsx)(ct.Icon,{className:"shrink-0 text-ink-3","aria-hidden":!0}),(0,e.jsx)("span",{className:"min-w-0 truncate",children:ct.label})]})}):null,S?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(K,{inline:o,label:"Reviewers",open:tr,onOpenChange:a(s=>{sr(s),s||Hs("")},"onOpenChange"),triggerContent:qr,triggerClassName:"min-w-0 max-w-full",popoverClassName:"w-56",children:Hn("review",J,nr,Hs,()=>ls([],ee))}),$n==="review"&&J.length>0?_n("review"):null,(0,e.jsx)(K,{inline:o,label:"Approvers",open:ar,onOpenChange:a(s=>{rr(s),s||Gs("")},"onOpenChange"),triggerContent:Dr,triggerClassName:"min-w-0 max-w-full",popoverClassName:"w-56",children:Hn("approval",ee,lr,Gs,()=>ls(J,[]))}),$n==="approval"&&ee.length>0?_n("approval"):null]}):(0,e.jsx)(I,{label:"Execution policy",wrap:!0,children:(0,e.jsx)("span",{role:"status",className:"text-sm text-ink-3",children:"Execution policy unavailable. Refresh to try again."})}),is&&(0,e.jsx)(I,{label:"Execution",children:(0,e.jsx)("span",{className:"text-sm truncate min-w-0",title:is,children:is})}),qn&&C?.scheduledRetryReason==="workspace_busy"?(0,e.jsx)(I,{label:"Workspace",children:(0,e.jsx)("span",{className:"text-sm text-ink-3",children:"Waiting for workspace"})}):qn&&Kn?(0,e.jsx)(K,{inline:o,label:"Scheduled retry",open:cr,onOpenChange:dr,triggerContent:al,triggerClassName:"min-w-0 max-w-full",popoverClassName:g("max-w-full",o?"w-full":"w-80 sm:w-(--sz-32rem)"),extra:nl,children:Kn}):null,S?(0,e.jsx)(K,{inline:o,label:"Monitor",open:ir,onOpenChange:at,triggerContent:tl,triggerClassName:"min-w-0 max-w-full",popoverClassName:g("max-w-full",o?"w-full":"w-80 sm:w-(--sz-32rem)"),children:rl}):null,(0,e.jsx)(K,{inline:o,label:"Watchdog",open:Lt,onOpenChange:lt,triggerContent:Vr,triggerClassName:"min-w-0 max-w-full",popoverClassName:g("max-w-full",o?"w-full":"w-80 sm:w-96"),extra:Me?(0,e.jsx)(V,{to:`/issues/${Me.id}`,className:"inline-flex items-center justify-center h-5 w-5 rounded hover:bg-bg-3/50 transition-colors text-ink-3 hover:text-ink",title:"Open watchdog task","aria-label":"Open watchdog task",onClick:a(s=>s.stopPropagation(),"onClick"),children:(0,e.jsx)(yt,{className:"h-3 w-3"})}):void 0,children:Hr})]}),Qt||jn||t.currentExecutionWorkspace?.branchName||t.currentExecutionWorkspace?.cwd||t.executionWorkspaceId?(0,e.jsxs)(ze,{title:"Workspace",streamlined:!0,children:[Qt?(0,e.jsx)(K,{inline:o,label:"Execution",open:qs,onOpenChange:a(s=>{Ds(s),s||(Ye("mode"),Et(""))},"onOpenChange"),triggerContent:(0,e.jsx)("span",{className:"truncate",title:Ar,children:Ir}),triggerClassName:"min-w-0 max-w-full",popoverClassName:g("max-w-full",o?"w-full":"w-72"),children:Ja==="mode"?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"space-y-0.5",children:[(0,e.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left hover:bg-bg-3/50",onClick:a(()=>Gt(null),"onClick"),children:[(0,e.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,e.jsx)("span",{className:"block text-sm",children:"Default"}),(0,e.jsx)("span",{className:"block text-xs text-ink-3",children:"Use the project workspace policy"})]}),ye==="default"?(0,e.jsx)(ne,{className:"h-3.5 w-3.5 shrink-0"}):null]}),(0,e.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left hover:bg-bg-3/50",onClick:a(()=>Gt("isolated_workspace"),"onClick"),children:[(0,e.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,e.jsx)("span",{className:"block text-sm",children:"New isolated workspace"}),(0,e.jsx)("span",{className:"block text-xs text-ink-3",children:"Create a fresh workspace on the next run"})]}),ye==="isolated"?(0,e.jsx)(ne,{className:"h-3.5 w-3.5 shrink-0"}):null]}),(0,e.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left hover:bg-bg-3/50",onClick:a(()=>Ye("reuse"),"onClick"),children:[(0,e.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,e.jsx)("span",{className:"block text-sm",children:"Reuse existing workspace…"}),(0,e.jsx)("span",{className:"block text-xs text-ink-3",children:"Pick a workspace to reuse"})]}),ye==="reuse"?(0,e.jsx)(ne,{className:"h-3.5 w-3.5 shrink-0"}):null]})]}),(0,e.jsx)("div",{className:"mt-1 border-t border-line px-2 py-1.5 text-xs text-ink-3",children:t.executionWorkspaceId?"Current workspace stays active. Applies on the next run.":"Applies on the next run."})]}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{className:"border-b border-line pb-1",children:[(0,e.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 rounded px-1 py-1 text-xs text-ink-3 hover:bg-bg-3/50 hover:text-ink",onClick:a(()=>Ye("mode"),"onClick"),"aria-label":"Back to workspace options",children:[(0,e.jsx)(ai,{className:"h-3.5 w-3.5"}),"Workspace mode"]}),(0,e.jsx)("input",{className:"block w-full bg-transparent px-2 py-1.5 text-xs outline-none placeholder:text-ink-3/50",placeholder:"Search workspaces...",value:Ot,onChange:a(s=>Et(s.target.value),"onChange"),autoFocus:!o,"aria-label":"Search reusable workspaces"})]}),(0,e.jsx)("div",{className:"max-h-48 overflow-y-auto overscroll-contain py-1",children:vr?(0,e.jsx)("div",{className:"px-2 py-2 text-xs text-ink-3",children:"Loading workspaces..."}):Nr?(0,e.jsx)("div",{className:"px-2 py-2 text-xs text-bad",children:"Failed to load workspaces."}):pn.length===0?(0,e.jsx)("div",{className:"px-2 py-2 text-xs text-ink-3",children:"No matching workspaces."}):pn.map(s=>(0,e.jsxs)("div",{className:"py-1",children:[(0,e.jsx)("div",{className:"px-2 pb-1 text-xs font-medium text-ink-3",children:s.label}),s.options.map(i=>(0,e.jsxs)("button",{type:"button",className:"flex w-full items-center gap-2 rounded px-2 py-1.5 text-left hover:bg-bg-3/50",onClick:a(()=>Gt("reuse_existing",i.workspace),"onClick"),children:[(0,e.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,e.jsx)("span",{className:"block truncate text-sm",children:i.label}),(0,e.jsx)("span",{className:"block truncate text-xs text-ink-3",children:i.description})]}),t.executionWorkspaceId===i.workspaceId?(0,e.jsx)(ne,{className:"h-3.5 w-3.5 shrink-0"}):null]},i.key))]},s.id))}),(0,e.jsx)("div",{className:"border-t border-line px-2 py-1.5 text-xs text-ink-3",children:t.executionWorkspaceId?"Current workspace stays active. Applies on the next run.":"Applies on the next run."})]})}):null,Pr&&t.executionWorkspaceId&&(0,e.jsx)(I,{label:"Workspace",children:(0,e.jsxs)(V,{to:`/execution-workspaces/${t.executionWorkspaceId}`,className:"text-sm text-accent hover:underline inline-flex min-w-0 items-center gap-1.5",children:[(0,e.jsx)(_o,{className:"h-3.5 w-3.5 shrink-0 text-ink-3"}),"View workspace",(0,e.jsx)(yt,{className:"h-3 w-3 shrink-0"})]})}),jn&&(0,e.jsx)(I,{label:"Service",children:(0,e.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1.5",children:[(0,e.jsx)(zl,{sections:Jt,isPending:it.isPending,pendingRequest:Rr,onAction:a(s=>it.mutate(s),"onAction"),square:!0,align:"start",iconOnly:!0}),an?(0,e.jsx)("span",{className:"text-xs text-ink-3",role:"status",children:an}):null,ln?(0,e.jsx)("span",{className:"text-xs text-bad",role:"alert",children:ln}):null]})}),t.currentExecutionWorkspace?.branchName&&(0,e.jsx)(I,{label:"Branch",children:(0,e.jsx)(ka,{value:t.currentExecutionWorkspace.branchName,icon:It})}),t.currentExecutionWorkspace?.cwd&&!Ie&&(0,e.jsx)(I,{label:"Folder",children:(0,e.jsx)(ka,{value:t.currentExecutionWorkspace.cwd,icon:yi})})]}):null,(0,e.jsxs)(ze,{title:"About",streamlined:!0,children:[U?(0,e.jsx)(I,{label:"Originating",children:U.kind==="agent"?(0,e.jsx)(V,{to:`/agents/${U.id}`,className:"hover:underline",children:(0,e.jsx)(ca,{agent:D?.find(s=>s.id===U.id)??{id:U.id,name:be(U.id)??"Agent"},size:"sm"})}):(0,e.jsxs)("span",{className:"flex min-w-0 items-center gap-1.5",children:[(0,e.jsx)(Pi,{name:In(U.id)??An?.label??"User",avatarUrl:An?.image??null,size:"sm"}),Sn?(0,e.jsxs)("span",{className:"shrink-0 truncate text-xs text-ink-3",children:["via ",Sn]}):null]})}):null,t.startedAt&&(0,e.jsx)(I,{label:"Started",children:(0,e.jsx)("span",{className:"min-w-0 truncate whitespace-nowrap text-sm",title:M(t.startedAt),children:M(t.startedAt)})}),t.completedAt&&(0,e.jsx)(I,{label:"Completed",children:(0,e.jsx)("span",{className:"min-w-0 truncate whitespace-nowrap text-sm",title:M(t.completedAt),children:M(t.completedAt)})}),(0,e.jsx)(I,{label:"Created",children:(0,e.jsx)("span",{className:"min-w-0 truncate whitespace-nowrap text-sm",title:M(t.createdAt),children:M(t.createdAt)})}),(0,e.jsx)(I,{label:"Updated",children:(0,e.jsx)("span",{className:"min-w-0 truncate whitespace-nowrap text-sm",title:jt(t.updatedAt),children:jt(t.updatedAt)})}),t.archivedAt&&t.archivedByActorType==="agent"&&t.archivedByAgentId?(()=>{const s=(D??[]).find(m=>m.id===t.archivedByAgentId),i=be(t.archivedByAgentId);return(0,e.jsx)(I,{label:"Archived",children:(0,e.jsxs)("div",{className:"flex min-w-0 max-w-full flex-col items-start gap-1",children:[(0,e.jsxs)("span",{className:"flex min-w-0 max-w-full items-center gap-1.5 text-sm",title:`Archived by ${i} · ${M(t.archivedAt)}`,children:[s?(0,e.jsx)(ve,{agent:s,size:16,className:"h-3.5 w-3.5 shrink-0 text-ink-3"}):null,(0,e.jsx)("span",{className:"min-w-0 truncate",children:i})]}),(0,e.jsxs)("div",{className:"flex min-w-0 max-w-full items-center gap-2",children:[(0,e.jsx)("span",{className:"shrink-0 text-xs text-ink-3",children:jt(t.archivedAt)}),(0,e.jsxs)("button",{type:"button",className:"inline-flex items-center gap-1 rounded-full border border-line px-2 py-0.5 text-xs text-ink-3 transition-colors hover:bg-bg-3/50 hover:text-ink disabled:opacity-50",onClick:a(()=>Kt.mutate(),"onClick"),disabled:Kt.isPending,children:[(0,e.jsx)(si,{className:"h-3 w-3"}),Kt.isPending?"Unarchiving…":"Unarchive"]})]}),cn?(0,e.jsx)("p",{className:"text-xs text-bad",role:"alert",children:cn}):null]})})})():null,t.requestDepth>0&&(0,e.jsx)(I,{label:"Depth",children:(0,e.jsx)("span",{className:"text-sm font-mono",children:t.requestDepth})})]}),(0,e.jsx)("div",{className:"pt-3",children:(0,e.jsx)(Ac,{issueId:t.id})})]});if(Q)return js;const pt=n.length>0,ft=kn.length>0||wn.length>0,gt=[{value:"properties",label:"Properties",closable:!1},...pt?[{value:"subtasks",label:"Subtasks",count:n.length,closable:!0}]:[],...ft?[{value:"references",label:"References",closable:!0}]:[],...me?[{value:"plans",label:"Plan",closable:!0}]:[],...Ge?[{value:"artifacts",label:"Artifacts",closable:!0}]:[]],bt=gt.filter(s=>s.value==="properties"||!St.has(s.value)),ys=gt.filter(s=>St.has(s.value));if(!pt&&!ft&&!me&&!Ge)return(0,e.jsxs)(e.Fragment,{children:[Y?(0,pa.createPortal)((0,e.jsx)("div",{className:"flex items-center",role:"tablist","aria-label":"Properties panel sections",children:(0,e.jsx)("button",{type:"button",role:"tab","aria-selected":"true",className:g(wa,"inline-flex flex-none items-center bg-bg-3 px-3"),children:"Properties"})}),Y):null,js]});const Yn=he==="plans"&&!me||he==="artifacts"&&!Ge||he==="subtasks"&&!pt||he==="references"&&!ft||St.has(he)?"properties":he,Pl=a(s=>{if(s==="properties"||(Se.current=!0,Xe(y=>{const te=new Set(y);return te.add(s),te}),Yn!==s))return;const i=bt.findIndex(y=>y.value===s),m=bt[i-1]??bt[i+1]??gt[0];Ae(m.value)},"closePaneTab"),Rl=a(s=>{Se.current=!0,Xe(i=>{if(!i.has(s))return i;const m=new Set(i);return m.delete(s),m}),Ae(s)},"reopenPaneTab"),de=!!Y,Tl=Y?g(wa,"min-w-0 flex-1 justify-start overflow-hidden after:hidden"):void 0,Jn=(0,e.jsx)(ei,{variant:"line",className:Y?"min-w-0 flex-1 items-center justify-start gap-0 overflow-hidden p-0 group-data-[orientation=horizontal]/tabs:h-full":"w-full justify-start gap-1",children:(de?bt:gt).map((s,i)=>{const m=(0,e.jsxs)(Jl,{value:s.value,className:g(Tl,de&&"mx-1.5 hover:bg-bg-3/50 group-focus-within/pane-tab:bg-bg-3/50",de&&"px-3"),children:[(0,e.jsx)("span",{className:g(de&&"task-detail-pane-tab-label min-w-0 flex-1 overflow-hidden whitespace-nowrap"),title:s.label,children:s.label}),s.count?(0,e.jsx)("span",{className:"shrink-0 font-mono text-(length:--text-nano) text-ink-3 transition-opacity group-hover/pane-tab:opacity-0 group-focus-within/pane-tab:opacity-0",children:s.count}):null]},de?void 0:s.value);return de?(0,e.jsxs)("div",{"data-slot":"task-detail-pane-tab",className:"group/pane-tab relative flex min-w-0 flex-1 basis-0 items-center",children:[i>0?(0,e.jsx)("span",{"data-slot":"task-detail-pane-tab-divider","aria-hidden":"true",className:"absolute left-0 top-1/2 h-4 w-px -translate-y-1/2 bg-line"}):null,m,s.closable?(0,e.jsx)("button",{type:"button",className:"absolute right-2.5 top-1/2 z-20 inline-flex size-5 -translate-y-1/2 items-center justify-center rounded-sm text-ink-3 opacity-0 transition-opacity hover:bg-bg-3 hover:text-ink focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-(length:--rad-3) focus-visible:ring-focus group-hover/pane-tab:opacity-100 group-focus-within/pane-tab:opacity-100","aria-label":`Close ${s.label} tab`,onPointerDown:a(y=>{y.preventDefault(),y.stopPropagation()},"onPointerDown"),onClick:a(y=>{y.preventDefault(),y.stopPropagation(),Pl(s.value)},"onClick"),children:(0,e.jsx)(Ni,{className:"size-3.5","aria-hidden":!0})}):null]},s.value):m})}),ea=de?(0,e.jsxs)("div",{className:"flex h-full min-w-0 flex-1 items-center",children:[Jn,(0,e.jsxs)(Yl,{children:[(0,e.jsx)(Xl,{asChild:!0,children:(0,e.jsx)(W,{variant:"ghost",size:"icon-xs",className:"size-6 shrink-0",disabled:ys.length===0,"aria-label":"Open closed sidebar tab",title:ys.length===0?"All sidebar tabs are open":"Open closed sidebar tab",children:(0,e.jsx)(vs,{className:"size-3.5","aria-hidden":!0})})}),(0,e.jsx)(Zl,{align:"start",className:"min-w-(--sz-8rem)",children:ys.map(s=>(0,e.jsx)(Gl,{onClick:a(()=>Rl(s.value),"onClick"),children:s.label},s.value))})]})]}):Jn;return(0,e.jsxs)(ti,{value:Yn,onValueChange:Ya,className:"flex min-h-0 flex-col gap-3",children:[Y?(0,pa.createPortal)((0,e.jsx)("div",{className:"group/tabs contents","data-orientation":"horizontal",children:ea}),Y):ea,(0,e.jsx)(qe,{value:"properties",children:js}),pt?(0,e.jsx)(qe,{value:"subtasks",children:(0,e.jsx)(yo,{items:n,onAddSubtask:l,issueLinkState:r})}):null,ft?(0,e.jsx)(qe,{value:"references",children:(0,e.jsx)(ko,{referenced:kn,mentionedIn:wn,issueLinkState:r})}):null,me?(0,e.jsx)(qe,{value:"plans",children:(0,e.jsx)(Ho,{issue:t,inline:o})}):null,Ge?(0,e.jsx)(qe,{value:"artifacts",children:(0,e.jsx)(xc,{issue:t,documentDeepLink:v?.tab==="artifacts"?v:null})}):null]})}a(Qd,"IssueProperties");export{xc as a,zo as c,Bo as d,Lo as f,Ba as g,qa as h,ze as i,Do as l,za as m,ba as n,Ho as o,Da as p,I as r,Ua as s,Qd as t,Ns as u};
@@ -0,0 +1 @@
1
+ var n=Object.defineProperty;var t=(e,s)=>n(e,"name",{value:s,configurable:!0});import{l as o,n as c,r}from"./queryKeys-Sk0U6x0H.js";var u="/api/public/share";async function i(e){const s=await fetch(`${u}/${e}`,{method:"GET",credentials:"omit",headers:{Accept:"application/json"}});if(s.status===404)return null;const a=await o(s);if(!s.ok)throw new c(a?.error??`Request failed: ${s.status}`,s.status,a);return a}t(i,"getPublicShareView");var l={getShareLink:t(e=>r.get(`/issues/${e}/share-link`),"getShareLink"),createShareLink:t(e=>r.post(`/issues/${e}/share-link`,{}),"createShareLink"),revokeShareLink:t(e=>r.delete(`/issues/${e}/share-link`),"revokeShareLink"),setCommentPublicShare:t((e,s,a)=>r.patch(`/issues/${e}/comments/${s}/public-share`,{visible:a}),"setCommentPublicShare"),getPublicShare:t(e=>i(encodeURIComponent(e)),"getPublicShare"),getPublicShareIssue:t((e,s)=>i(`${encodeURIComponent(e)}/issues/${encodeURIComponent(s)}`),"getPublicShareIssue")};export{l as t};
@@ -0,0 +1 @@
1
+ var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});import{ir as c,nr as i}from"./index-CTvFhj4O.js";function s(e,r){const n=e.currentExecutionWorkspace?.mode??e.executionWorkspaceSettings?.mode??e.executionWorkspacePreference;return e.executionWorkspaceId&&(n==="isolated_workspace"||n==="operator_branch")?"reuse_existing":e.executionWorkspacePreference??e.executionWorkspaceSettings?.mode??i(r)}o(s,"currentWorkspaceSelection");function p(e,r,n){return e==="reuse_existing"&&!r?null:e===null?{executionWorkspacePreference:null,executionWorkspaceId:null,executionWorkspaceSettings:null}:{executionWorkspacePreference:e,executionWorkspaceId:e==="reuse_existing"?r:null,executionWorkspaceSettings:{mode:e==="reuse_existing"?c(n):e,environmentId:null}}}o(p,"buildWorkspaceSelectionUpdate");export{s as n,p as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-Dp_BESPI.js";var a={name:"key-round",size:24,node:[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]};a.node;var o=e(a);export{o as t};
@@ -0,0 +1 @@
1
+ var s=Object.defineProperty;var a=(r,e)=>s(r,"name",{value:e,configurable:!0});import{i as o}from"./rolldown-runtime-ZpX3ckPj.js";import{l,na as u,ta as d}from"./createLucideIcon-Dp_BESPI.js";import{s as m}from"./dist-CYtosku9.js";var f=o(u(),1),i=o(d(),1),p=Object.defineProperty,c=a((r,e)=>p(r,"name",{value:e,configurable:!0}),"__name"),b=f.forwardRef(c(a(function(e,n){return(0,i.jsx)(m.label,{...e,ref:n,onMouseDown:a(t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())},"onMouseDown")})},"Label2"),"Label")),_=b;function w({className:r,...e}){return(0,i.jsx)(_,{"data-slot":"label",className:l("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",r),...e})}a(w,"Label");export{w as t};
@@ -0,0 +1 @@
1
+ import{t}from"./createLucideIcon-Dp_BESPI.js";var e={name:"layout-dashboard",size:24,node:[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]};e.node;var h=t(e);export{h as t};
@@ -0,0 +1 @@
1
+ import{t as a}from"./createLucideIcon-Dp_BESPI.js";var e={name:"link-2",size:24,node:[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]};e.node;var t=a(e);export{t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-Dp_BESPI.js";var a={name:"link",size:24,node:[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]};a.node;var t=e(a);export{t};
@@ -0,0 +1 @@
1
+ import{t}from"./createLucideIcon-Dp_BESPI.js";var e={name:"list-filter",size:24,node:[["path",{d:"M2 5h20",key:"1fs1ex"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}]]};e.node;var i=t(e);export{i as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-Dp_BESPI.js";var t={name:"list-todo",size:24,node:[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]]};t.node;var h=e(t);export{h as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-Dp_BESPI.js";var a={name:"log-in",size:24,node:[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]};a.node;var t=e(a);export{t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-Dp_BESPI.js";var a={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]};a.node;var i=e(a);export{i as t};