@tickernelz/wardmote-ui 2026.1117.2 → 2026.1117.3

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 (827) hide show
  1. package/dist/assets/AccessSelectIdentity-C-iVX_EX.js +1 -0
  2. package/dist/assets/AdapterManager-C59AKY0f.js +1 -0
  3. package/dist/assets/AdvancedToolsRoute-Bg4KowJU.js +39 -0
  4. package/dist/assets/AgentActionButtons-BBhJXLbY.js +1 -0
  5. package/dist/assets/AgentAvatar-BZiiDlCN.js +1 -0
  6. package/dist/assets/AgentBubbleActionRow-Dqrx638X.js +1 -0
  7. package/dist/assets/AgentCharacter-DAAMv7-c.js +2 -0
  8. package/dist/assets/AgentChat--rcr73Ls.js +1 -0
  9. package/dist/assets/AgentChats-56CMlXmb.js +1 -0
  10. package/dist/assets/AgentDefaults-C0WFwQky.js +1 -0
  11. package/dist/assets/AgentDetail-NfA1gamX.js +38 -0
  12. package/dist/assets/AgentIconPicker-BJerBmcL.js +1 -0
  13. package/dist/assets/AgentIdentity-DBHRFgMM.js +1 -0
  14. package/dist/assets/AgentMailCredentialField-DNclWIul.js +1 -0
  15. package/dist/assets/AgentMultiSelect-BlUaNdZZ.js +1 -0
  16. package/dist/assets/AgentRoleEditor-DnibPmmw.js +1 -0
  17. package/dist/assets/AgentSetupPrompt-CaafK5_w.js +30 -0
  18. package/dist/assets/AgentTodoCard-CGUyYht3.js +1 -0
  19. package/dist/assets/Agents-BjPLaL-p.js +3 -0
  20. package/dist/assets/AppDetail-CwyYWsvw.js +8 -0
  21. package/dist/assets/AppLogo-BLq8BpKi.js +1 -0
  22. package/dist/assets/AppNotConnected-DzDZR0-8.js +1 -0
  23. package/dist/assets/ApprovalCard-DyxP9tMM.js +1 -0
  24. package/dist/assets/ApprovalDetail-Cxhx_U0d.js +1 -0
  25. package/dist/assets/ApprovalPayload-C7jnoOLa.js +1 -0
  26. package/dist/assets/Approvals-CF4K0bD1.js +1 -0
  27. package/dist/assets/AppsConnect-D7l2xnv-.js +1 -0
  28. package/dist/assets/AppsReview-Chv6Jms5.js +1 -0
  29. package/dist/assets/ArtifactCard-CAlD_gkp.js +1 -0
  30. package/dist/assets/Artifacts-47GmGXVx.js +1 -0
  31. package/dist/assets/AssistantConnection-BCrEgmJR.js +1 -0
  32. package/dist/assets/AttentionInteractionResolver-DUg8FwhJ.js +1 -0
  33. package/dist/assets/AuditHub-DNmGrEzV.js +1 -0
  34. package/dist/assets/Auth-D0lGuVnd.js +3 -0
  35. package/dist/assets/BoardChat-BenJSqr6.js +18 -0
  36. package/dist/assets/BoardClaim-CbYY66Qd.js +1 -0
  37. package/dist/assets/BootstrapSetupUxLab-DO03bmwI.js +1 -0
  38. package/dist/assets/BreadcrumbContext-DNbB7zWn.js +1 -0
  39. package/dist/assets/Browse-gMVDtSCz.js +1 -0
  40. package/dist/assets/BudgetPolicyCard-CbkwslmQ.js +1 -0
  41. package/dist/assets/CaseDetail-k79_F25A.js +2 -0
  42. package/dist/assets/CaseIdentifierKey-CIGzqAfo.js +1 -0
  43. package/dist/assets/Cases-C5IE_YuB.js +2 -0
  44. package/dist/assets/ChatEndpointDetail-DPiCCvto.js +5 -0
  45. package/dist/assets/ChatEndpointSetup-CTntfzjg.js +1 -0
  46. package/dist/assets/ChatIdentityConfirm-Dc4AnYX8.js +1 -0
  47. package/dist/assets/ChoiceControls-CzMMk2Iy.js +1 -0
  48. package/dist/assets/CliAuth-CatEsBxW.js +1 -0
  49. package/dist/assets/CommentAttributionChip-BdllZVtJ.js +1 -0
  50. package/dist/assets/Companies-Cr0mZy2B.js +1 -0
  51. package/dist/assets/CompanyAccess-BQZD0MZf.js +1 -0
  52. package/dist/assets/CompanyActivity-BhNtXl8c.js +1 -0
  53. package/dist/assets/CompanyConnections-BwCkXXZK.js +1 -0
  54. package/dist/assets/CompanyContext-fQCNWI_f.js +1 -0
  55. package/dist/assets/CompanyEnvironments-CyrghjsN.js +3 -0
  56. package/dist/assets/CompanyExport-BlQuIvDU.js +4 -0
  57. package/dist/assets/CompanyImport-5M7yWHR-.js +1 -0
  58. package/dist/assets/CompanySettings-C6FNik3j.js +1 -0
  59. package/dist/assets/CompanySettingsPluginPage-DPHNF4sp.js +1 -0
  60. package/dist/assets/CompanySkills-DsgjKlp7.js +10 -0
  61. package/dist/assets/ComposerAddMenu-BPPkbm0o.js +3 -0
  62. package/dist/assets/ConfigureBuiltInAgentModal-reyr1Tds.js +1 -0
  63. package/dist/assets/ConnectionSetupFlow-g6asOGFg.js +40 -0
  64. package/dist/assets/CopyText-BbOm2I6t.js +1 -0
  65. package/dist/assets/CopyableGatewayUrl-B4EYBk9t.js +1 -0
  66. package/dist/assets/CrossIssueCollaborationUxLab-D2bB9GTl.js +1 -0
  67. package/dist/assets/Dashboard-B0JjQSAg.js +2 -0
  68. package/dist/assets/DecisionDateChips-BaRZkOU2.js +1 -0
  69. package/dist/assets/DecisionModelSettings-HEZJ0E6n.js +1 -0
  70. package/dist/assets/DecisionQueuePage-DtzH_oQI.js +1 -0
  71. package/dist/assets/DesignGuide-CXHLyL_C.js +23 -0
  72. package/dist/assets/DocumentFrameHeader-B8A6eaJb.js +1 -0
  73. package/dist/assets/EmailConnectionAccess-BcI7_br0.js +1 -0
  74. package/dist/assets/EmailEndpointSetup-hb_Hewoa.js +1 -0
  75. package/dist/assets/EnforcementBanner-qtVCLyJo.js +1 -0
  76. package/dist/assets/EntityRow-B24YmFE7.js +1 -0
  77. package/dist/assets/ExecutionWorkspaceDetail-BxA_kWKs.js +19 -0
  78. package/dist/assets/FilterBar-CIPYvHzR.js +1 -0
  79. package/dist/assets/FoldCurtain-H4DNjYLl.js +1 -0
  80. package/dist/assets/FolderControls-DI7QVvPv.js +1 -0
  81. package/dist/assets/GatewayDetail-CUcpw4Hj.js +2 -0
  82. package/dist/assets/GatewaysList-Ad1dZuwC.js +1 -0
  83. package/dist/assets/GoalDetail-C-uH9eNu.js +1 -0
  84. package/dist/assets/GoalTree-BZUt4xZ3.js +1 -0
  85. package/dist/assets/Goals-UrfBAjOT.js +1 -0
  86. package/dist/assets/Identity-8eG_HXAH.js +1 -0
  87. package/dist/assets/ImageGalleryModal-D3SH_FYj.js +1 -0
  88. package/dist/assets/Inbox-BzkFmAxU.js +2 -0
  89. package/dist/assets/InlineBanner-DYx7A02D.js +1 -0
  90. package/dist/assets/InlineEditor-BJTE1pyF.js +1 -0
  91. package/dist/assets/InlineEntitySelector-BboofK18.js +1 -0
  92. package/dist/assets/InstanceAccess-D4ZbGCeK.js +1 -0
  93. package/dist/assets/InstanceAdvanced-DYZ50o97.js +1 -0
  94. package/dist/assets/InstanceFeatures-C1eqcxDI.js +1 -0
  95. package/dist/assets/InviteLanding-Bqp1ulQV.js +1 -0
  96. package/dist/assets/IssueChatLongThreadPerf-BJ_Hr2PT.js +2 -0
  97. package/dist/assets/IssueChatThread-qDc-9yA9.js +40 -0
  98. package/dist/assets/IssueDetail-C0hCFL-i.js +9 -0
  99. package/dist/assets/IssueDocumentAnnotations-DjcRXcEw.js +2 -0
  100. package/dist/assets/IssueOutputSection-D7QbMiqq.js +1 -0
  101. package/dist/assets/IssueRecoveryActionCard-DeJbfGm1.js +1 -0
  102. package/dist/assets/IssueReferencePill-BTH42QmE.js +1 -0
  103. package/dist/assets/IssueThreadInteractionCard-D9QAYhuJ.js +9 -0
  104. package/dist/assets/IssueWriteDenialNotice-Bf0ZFSBV.js +1 -0
  105. package/dist/assets/Issues-DtYFX9i_.js +5 -0
  106. package/dist/assets/JoinRequestQueue-DyPP4DL2.js +1 -0
  107. package/dist/assets/JsonSchemaForm-Dkh3zdL9.js +1 -0
  108. package/dist/assets/LiveNowTodoLine-IsmhMx5O.js +1 -0
  109. package/dist/assets/ManagedAiConnectionDetails-BrX9Q9t2.js +1 -0
  110. package/dist/assets/MarkdownBody-D7qCQaU_.js +16 -0
  111. package/dist/assets/MarkdownEditor-ubJimjUH.js +85 -0
  112. package/dist/assets/McpConnect-BYYMfbhs.js +1 -0
  113. package/dist/assets/MembershipAction-Esk0pndF.js +1 -0
  114. package/dist/assets/MetricCard-DlcBTKQs.js +1 -0
  115. package/dist/assets/MissingPluginTabPlaceholder-l1R-Q4nh.js +1 -0
  116. package/dist/assets/ModelsAndProviders-C7VZHvPR.js +1 -0
  117. package/dist/assets/MootMark-BZOhYsK8.js +1 -0
  118. package/dist/assets/NewAgent-BzZI-FBE.js +1 -0
  119. package/dist/assets/OmpAllSettings-DTJLATQL.js +1 -0
  120. package/dist/assets/OpenwaGatewayManager-BQpxxJOa.js +2 -0
  121. package/dist/assets/PathInstructionsModal-BJAqF7vQ.js +1 -0
  122. package/dist/assets/PipelineSettings-BgfMR73P.js +2 -0
  123. package/dist/assets/Pipelines-DAuqtVqc.js +1 -0
  124. package/dist/assets/PixelsOffice-CaQYQilp.js +2 -0
  125. package/dist/assets/PluginManager-DkADWuR8.js +1 -0
  126. package/dist/assets/PluginPage-C-W3lTd9.js +1 -0
  127. package/dist/assets/PluginSettings-D365WG22.js +1 -0
  128. package/dist/assets/ProfileDetailRoute-YzeVN0Ko.js +1 -0
  129. package/dist/assets/ProfileSettings-BLh9EdSK.js +1 -0
  130. package/dist/assets/ProfileWizardRoute-DvOWuvrG.js +1 -0
  131. package/dist/assets/ProjectDetail-OirlXEA4.js +1 -0
  132. package/dist/assets/ProjectWorkspaceDetail-C9_liq4q.js +29 -0
  133. package/dist/assets/ProjectWorkspacesContent-DRAIVofy.js +1 -0
  134. package/dist/assets/Projects-B6UgAQ3Z.js +1 -0
  135. package/dist/assets/PublicIssueSharePage-Cg0GqSVM.js +1 -0
  136. package/dist/assets/QuestionForm-DF6R7lYE.js +7 -0
  137. package/dist/assets/QuotaBar-Ch_rM0X1.js +1 -0
  138. package/dist/assets/RepositoryEditor-BuV4JRgV.js +1 -0
  139. package/dist/assets/ResponsibleUserDenialNotice-dXyOLtYP.js +1 -0
  140. package/dist/assets/ResponsibleUserDenialUxLab-DGWo-GoD.js +1 -0
  141. package/dist/assets/ReviewQueueCard-MNEVuxSA.js +1 -0
  142. package/dist/assets/RichWorkProductCard-D4Qq1gRh.js +1 -0
  143. package/dist/assets/RoutineActivityRow-D16b-qFh.js +1 -0
  144. package/dist/assets/RoutineDetail-DPzql29w.js +2 -0
  145. package/dist/assets/RoutineRunVariablesDialog-C8OHcazq.js +1 -0
  146. package/dist/assets/RoutineVariablesEditor-CHogduM9.js +1 -0
  147. package/dist/assets/Routines-pnhQk9RN.js +1 -0
  148. package/dist/assets/ScrollToBottom-C_k4p-hC.js +1 -0
  149. package/dist/assets/Search-DjpKZIsB.js +1 -0
  150. package/dist/assets/SearchableSelect-BbuRtdzg.js +1 -0
  151. package/dist/assets/Secrets-BOZydXaY.js +4 -0
  152. package/dist/assets/SetupWizard-92wVRG6Y.js +1 -0
  153. package/dist/assets/SidebarContext-bEtg0ItG.js +1 -0
  154. package/dist/assets/SidebarNavItem-afEXEFeo.js +1 -0
  155. package/dist/assets/SkillBinaryFile-N7sK2ZTh.js +1 -0
  156. package/dist/assets/SkillCardIcon-Byzb3JuD.js +2 -0
  157. package/dist/assets/SkillSourceTree-Cuv3EWpo.js +2 -0
  158. package/dist/assets/SkillSources-CYYp9Mds.js +2 -0
  159. package/dist/assets/SkillStudio-Dl28fokd.js +9 -0
  160. package/dist/assets/SourceTrustBadge-BYpC1Kw9.js +1 -0
  161. package/dist/assets/StatusCards-Bqkb18QJ.js +1 -0
  162. package/dist/assets/StatusIcon-Bx4H7RuA.js +1 -0
  163. package/dist/assets/SummarySlotCard-DlwG6iRT.js +1 -0
  164. package/dist/assets/TaskChatComposerTakeoverContext-C68QVO36.js +1 -0
  165. package/dist/assets/TaskChatLab-vnFP7gcJ.js +11 -0
  166. package/dist/assets/TaskChatMarker-KUR-n-7D.js +2 -0
  167. package/dist/assets/TaskChatProtocolCard-CuyApwWM.js +1 -0
  168. package/dist/assets/TaskChatThreadView-B2LR9geW.js +4 -0
  169. package/dist/assets/TaskTreeControls-CRzAjVlt.js +3 -0
  170. package/dist/assets/Terminal-YAhWrMv9.js +1 -0
  171. package/dist/assets/TerminalView-7diHxQOx.js +58 -0
  172. package/dist/assets/ThemeContext-Ca30E6O4.js +1 -0
  173. package/dist/assets/ThemeToggle-BzQNYD1J.js +1 -0
  174. package/dist/assets/ToastContext-DyVJ6bCh.js +1 -0
  175. package/dist/assets/ToolsAdminGate-C5dQpL4C.js +1 -0
  176. package/dist/assets/TrustPresetSection-DCiCKRh0.js +1 -0
  177. package/dist/assets/UserProfile-CEpSKMzS.js +1 -0
  178. package/dist/assets/WebhookUrlWarning-CbkWHsPb.js +1 -0
  179. package/dist/assets/WhatNeedsMe-D0yh5L5H.js +1 -0
  180. package/dist/assets/WorkspaceRuntimeControls-Cp5E1FME.js +1 -0
  181. package/dist/assets/Workspaces-uDkUYVN3.js +1 -0
  182. package/dist/assets/access-DhB95qNC.js +1 -0
  183. package/dist/assets/activity-BwGRpduS.js +1 -0
  184. package/dist/assets/activity-CudcEDwO.js +1 -0
  185. package/dist/assets/activity-format-CYYHRbLo.js +1 -0
  186. package/dist/assets/adapter-display-registry-9qBBJi9B.js +1 -0
  187. package/dist/assets/adapters-D3NHXckp.js +1 -0
  188. package/dist/assets/agent-avatar-url-BSxCmIBZ.js +1 -0
  189. package/dist/assets/agent-config-primitives-BJlDiwaH.js +1 -0
  190. package/dist/assets/agentChats-C8o51WiF.js +1 -0
  191. package/dist/assets/agents-B8n-p0aX.js +1 -0
  192. package/dist/assets/alert-dialog-DNbnZgRz.js +1 -0
  193. package/dist/assets/app-connect-policy-DqQf5knn.js +1 -0
  194. package/dist/assets/archive-CvT6i844.js +1 -0
  195. package/dist/assets/archive-restore-tP0pyaei.js +1 -0
  196. package/dist/assets/arrow-down-C_oYEUXL.js +1 -0
  197. package/dist/assets/arrow-down-left-B8lHKNrs.js +1 -0
  198. package/dist/assets/arrow-left-CnGEiANj.js +1 -0
  199. package/dist/assets/arrow-right-W0iJ_-Zs.js +1 -0
  200. package/dist/assets/arrow-up-BMN1ZnS1.js +1 -0
  201. package/dist/assets/arrow-up-down-Ci6AcwB0.js +1 -0
  202. package/dist/assets/arrow-up-right-CFNgVoQj.js +1 -0
  203. package/dist/assets/artifacts-4t_LL-lA.js +1 -0
  204. package/dist/assets/assets-BOhIBphq.js +1 -0
  205. package/dist/assets/attachment-icon-_1iz_saB.js +1 -0
  206. package/dist/assets/avatar-qO_h93F8.js +1 -0
  207. package/dist/assets/badge-check-BNLpGDnd.js +1 -0
  208. package/dist/assets/badge-jeXr866I.js +1 -0
  209. package/dist/assets/book-open-i_DxEUXC.js +1 -0
  210. package/dist/assets/bot-kSfD9MPZ.js +1 -0
  211. package/dist/assets/boxes-DVB7wdRh.js +1 -0
  212. package/dist/assets/braces-CpXTT0w9.js +1 -0
  213. package/dist/assets/browser-use-BwBUHG71.js +1 -0
  214. package/dist/assets/budgets-C2LtVWph.js +1 -0
  215. package/dist/assets/button-DI4w5WP7.js +1 -0
  216. package/dist/assets/calendar-clock-CXtB0BA2.js +1 -0
  217. package/dist/assets/card-BVZvs7aX.js +1 -0
  218. package/dist/assets/cases-lkyebfpY.js +1 -0
  219. package/dist/assets/chatEndpoints-Bj-keCuw.js +1 -0
  220. package/dist/assets/check-Bis3vECb.js +1 -0
  221. package/dist/assets/checkbox-Cf2_HXDG.js +1 -0
  222. package/dist/assets/chevron-down-nRcQ7bok.js +1 -0
  223. package/dist/assets/chevron-left-DnUVccc_.js +1 -0
  224. package/dist/assets/chevron-right-BP8JjEC_.js +1 -0
  225. package/dist/assets/chevron-up-C1TOE3pP.js +1 -0
  226. package/dist/assets/chip-yHjfSD46.js +1 -0
  227. package/dist/assets/circle-DCDVf2v0.js +1 -0
  228. package/dist/assets/circle-alert-C7T1cdKm.js +1 -0
  229. package/dist/assets/circle-dot-EfQ00xK3.js +1 -0
  230. package/dist/assets/circle-question-mark-CasEGiDp.js +1 -0
  231. package/dist/assets/circle-slash-DP3-64k6.js +1 -0
  232. package/dist/assets/circle-x-oLE71NY3.js +1 -0
  233. package/dist/assets/clipboard-paste-B7AvxL_k.js +1 -0
  234. package/dist/assets/clock-D2UFngg7.js +1 -0
  235. package/dist/assets/cloud-DX1fkQ6i.js +1 -0
  236. package/dist/assets/code-xml-CZhhm_-P.js +1 -0
  237. package/dist/assets/coins-DeD2KB8A.js +1 -0
  238. package/dist/assets/collapsible-D_rwONtV.js +1 -0
  239. package/dist/assets/columns-3-CsveFAYd.js +1 -0
  240. package/dist/assets/command-BnJHDVFJ.js +5 -0
  241. package/dist/assets/companies-query-BEdFiAhG.js +1 -0
  242. package/dist/assets/connection-identity-ch7QDvun.js +1 -0
  243. package/dist/assets/connection-owner-rjoh3jce.js +1 -0
  244. package/dist/assets/copy-C1cfcpxY.js +1 -0
  245. package/dist/assets/createLucideIcon-CgrPXnTY.js +94 -0
  246. package/dist/assets/decision-models-DBtkxtYF.js +1 -0
  247. package/dist/assets/dialog-CeH7rDcv.js +1 -0
  248. package/dist/assets/dist--9cFpXne.js +1 -0
  249. package/dist/assets/dist-9zjsMxaY.js +1 -0
  250. package/dist/assets/dist-BJ09fDjD.js +1 -0
  251. package/dist/assets/dist-BdDa0b16.js +1 -0
  252. package/dist/assets/dist-Bn32UOVm.js +1 -0
  253. package/dist/assets/dist-C48HB-LT.js +1 -0
  254. package/dist/assets/dist-CEXsZ2vP.js +1 -0
  255. package/dist/assets/dist-Cfwg8Fpq.js +1 -0
  256. package/dist/assets/dist-DMGv3m4L.js +1 -0
  257. package/dist/assets/dist-DW0z82oc.js +1 -0
  258. package/dist/assets/dist-DYoIyA63.js +1 -0
  259. package/dist/assets/dist-JmBbJxI1.js +1 -0
  260. package/dist/assets/dist-Kk1Xaco5.js +1 -0
  261. package/dist/assets/dropdown-menu-rUbU8QKw.js +1 -0
  262. package/dist/assets/ellipsis-DyXbAp4P.js +1 -0
  263. package/dist/assets/ellipsis-vertical-DzWImTnI.js +1 -0
  264. package/dist/assets/email-hX48MODm.js +1 -0
  265. package/dist/assets/environment-variables-editor-D6Ylcd74.js +1 -0
  266. package/dist/assets/environments-xuhuvnTt.js +1 -0
  267. package/dist/assets/es2015-I559Yimy.js +41 -0
  268. package/dist/assets/external-link-BIcMNNSN.js +1 -0
  269. package/dist/assets/eye-D8HiVtuU.js +1 -0
  270. package/dist/assets/eye-off-DTXvEIMp.js +1 -0
  271. package/dist/assets/fast-responses-B5vx8axv.js +1 -0
  272. package/dist/assets/file-CcVMTQhg.js +1 -0
  273. package/dist/assets/file-code-corner-CwcL9g2p.js +1 -0
  274. package/dist/assets/file-question-mark-BCVjQ2mM.js +1 -0
  275. package/dist/assets/file-search-Ccb88q3t.js +1 -0
  276. package/dist/assets/file-text-CsPKrMTp.js +1 -0
  277. package/dist/assets/flag-i_D610oD.js +1 -0
  278. package/dist/assets/flask-conical-BxspRG7d.js +1 -0
  279. package/dist/assets/folder-git-2-igHQBSOf.js +1 -0
  280. package/dist/assets/folder-open-Dkshp3J4.js +1 -0
  281. package/dist/assets/folder-search-B_Hz17IO.js +1 -0
  282. package/dist/assets/funnel-BoiZeTWw.js +1 -0
  283. package/dist/assets/git-pull-request-DXoACxvx.js +1 -0
  284. package/dist/assets/github-icon-Cf0axVvi.js +1 -0
  285. package/dist/assets/health-Cn-5LIwb.js +1 -0
  286. package/dist/assets/heartbeats-D96c9g2n.js +1 -0
  287. package/dist/assets/inbox-BbL3s2C7.js +1 -0
  288. package/dist/assets/inboxArchiveCache-CxaLM1R8.js +1 -0
  289. package/dist/assets/index-BcwxLap4.js +67 -0
  290. package/dist/assets/index-BrXf-544.css +2 -0
  291. package/dist/assets/info-Clx4FKz9.js +1 -0
  292. package/dist/assets/input-BBNGmECW.js +1 -0
  293. package/dist/assets/instanceSettings-D1nNVWU0.js +1 -0
  294. package/dist/assets/interaction-audience-B74UGNaN.js +1 -0
  295. package/dist/assets/interaction-card-visibility-CUHRz7le.js +1 -0
  296. package/dist/assets/issue-blockers-t3wlvg4M.js +1 -0
  297. package/dist/assets/issue-output-BM-lLts2.js +1 -0
  298. package/dist/assets/issue-properties-D64PIhST.js +4 -0
  299. package/dist/assets/issue-share-W3K_cYZY.js +1 -0
  300. package/dist/assets/issue-workspace-selection-BY0sBaN6.js +1 -0
  301. package/dist/assets/key-round-CGxQxRtN.js +1 -0
  302. package/dist/assets/label-B707hSFt.js +1 -0
  303. package/dist/assets/layout-dashboard-CGcwI_3-.js +1 -0
  304. package/dist/assets/link-0uKX-OmT.js +1 -0
  305. package/dist/assets/link-2-Cn4f4xsG.js +1 -0
  306. package/dist/assets/list-filter-BjVYqW16.js +1 -0
  307. package/dist/assets/list-todo-DfkI9JDS.js +1 -0
  308. package/dist/assets/log-in-C4giPkVk.js +1 -0
  309. package/dist/assets/maximize-2-c8H5WcEB.js +1 -0
  310. package/dist/assets/mention-chips-COg-185l.js +17 -0
  311. package/dist/assets/message-square-plus-BQNp2QTu.js +1 -0
  312. package/dist/assets/minus-BttANimQ.js +1 -0
  313. package/dist/assets/model-fallback-CwykjJWn.js +1 -0
  314. package/dist/assets/model-picker-fields-D_I_l2UI.js +1 -0
  315. package/dist/assets/network-D_6qRf8m.js +1 -0
  316. package/dist/assets/octagon-alert-BGGMATMK.js +1 -0
  317. package/dist/assets/octagon-x-ZKE_ZOe_.js +1 -0
  318. package/dist/assets/omp-settings-model-B06pdqQR.js +1 -0
  319. package/dist/assets/package-G5arH6JJ.js +1 -0
  320. package/dist/assets/pause-B6AkvDer.js +1 -0
  321. package/dist/assets/pen-line-CKsWWDy2.js +1 -0
  322. package/dist/assets/pipeline-stage-presentation-DDdch-G7.js +2 -0
  323. package/dist/assets/pipelines-0Lb8D7gt.js +1 -0
  324. package/dist/assets/play-Czm7OCYh.js +1 -0
  325. package/dist/assets/plug-UFf0xCI3.js +1 -0
  326. package/dist/assets/plugins-C7Akvi81.js +1 -0
  327. package/dist/assets/plus-CwNlqadt.js +1 -0
  328. package/dist/assets/popover-CWlBonqy.js +1 -0
  329. package/dist/assets/power-CJfOYd7k.js +1 -0
  330. package/dist/assets/presentation-mode-ZjtUUsSS.js +1 -0
  331. package/dist/assets/profile-summary-BwdvqPGE.js +1 -0
  332. package/dist/assets/projects-l3kQxnTp.js +1 -0
  333. package/dist/assets/proposal-review-D9ye_2Px.js +1 -0
  334. package/dist/assets/queryClient-CojHFSot.js +1 -0
  335. package/dist/assets/queryKeys-BzT8CD34.js +1 -0
  336. package/dist/assets/radio-BqjASC1E.js +1 -0
  337. package/dist/assets/radio-card-DCobJXTD.js +1 -0
  338. package/dist/assets/recent-agent-chats-BUso0Smv.js +1 -0
  339. package/dist/assets/refresh-cw-CfzWP9se.js +1 -0
  340. package/dist/assets/repeat-DzPORJjX.js +1 -0
  341. package/dist/assets/resizable-panels-DkafPiQi.js +1 -0
  342. package/dist/assets/review-policy-B1PowuVV.js +1 -0
  343. package/dist/assets/rotate-ccw-DpzLJhXT.js +1 -0
  344. package/dist/assets/rotate-cw-D1cKBtZK.js +1 -0
  345. package/dist/assets/router-BKzUF9uf.js +1 -0
  346. package/dist/assets/routines-DteAuK7S.js +1 -0
  347. package/dist/assets/runRetryState-p_i4Mh7u.js +1 -0
  348. package/dist/assets/save-Blub8a14.js +1 -0
  349. package/dist/assets/schema-config-fields-B8ha5h4A.js +1 -0
  350. package/dist/assets/scroll-area-Ci3PubY2.js +1 -0
  351. package/dist/assets/scroll-text-DfBz82Kz.js +1 -0
  352. package/dist/assets/search-CgZSuGC8.js +1 -0
  353. package/dist/assets/secrets-D17QEm13.js +1 -0
  354. package/dist/assets/segmented-tuNVx49H.js +1 -0
  355. package/dist/assets/select-DNiRU1d9.js +1 -0
  356. package/dist/assets/send-DfQbMfo9.js +1 -0
  357. package/dist/assets/separator-6cvFqhvW.js +1 -0
  358. package/dist/assets/server-NjSlblAR.js +1 -0
  359. package/dist/assets/server-cog-cefxr54v.js +1 -0
  360. package/dist/assets/settings-DuRZr7gk.js +1 -0
  361. package/dist/assets/shared-BjSrBoPt.js +1 -0
  362. package/dist/assets/sheet-D5sUsyfT.js +1 -0
  363. package/dist/assets/shield-DC6LuDUy.js +1 -0
  364. package/dist/assets/shield-alert-BAXWoBTh.js +1 -0
  365. package/dist/assets/shield-check-RPyaLAc-.js +1 -0
  366. package/dist/assets/shield-question-mark-Dl8dxzUU.js +1 -0
  367. package/dist/assets/shield-x-DaFG-JUd.js +1 -0
  368. package/dist/assets/sidebarPreferences-CIMvMX-W.js +1 -0
  369. package/dist/assets/skeleton-BAAoD7cz.js +1 -0
  370. package/dist/assets/slots-DZ1hj5sG.js +49 -0
  371. package/dist/assets/smoke-lab-matrix-Cjauo09x.js +1 -0
  372. package/dist/assets/square-CDo6rOf8.js +1 -0
  373. package/dist/assets/star-eem0qj3E.js +15 -0
  374. package/dist/assets/sun-2LJX7Tad.js +1 -0
  375. package/dist/assets/system-notice-comment-DPCHQ4-Y.js +1 -0
  376. package/dist/assets/tabs-CjHzZxtD.js +1 -0
  377. package/dist/assets/task-chat-attachments-DNPQ-jOG.js +10 -0
  378. package/dist/assets/terminal-i6UlT3R6.js +1 -0
  379. package/dist/assets/textarea-CTx68BDs.js +1 -0
  380. package/dist/assets/thumbs-down-BVZskfHA.js +1 -0
  381. package/dist/assets/thumbs-up-Cqj30fzj.js +1 -0
  382. package/dist/assets/toggle-switch-Dj5GORxn.js +1 -0
  383. package/dist/assets/tools-MhVvhrz_.js +1 -0
  384. package/dist/assets/tooltip-CW50mEoC.js +1 -0
  385. package/dist/assets/transcript-adapter-C1RGcJFu.js +5 -0
  386. package/dist/assets/trash-QxFF084e.js +1 -0
  387. package/dist/assets/triangle-alert-CnHMpmva.js +1 -0
  388. package/dist/assets/upload-Dk7oXJof.js +1 -0
  389. package/dist/assets/use-adapter-capabilities-BNfGiTEP.js +1 -0
  390. package/dist/assets/use-copy-action-DFzauB4H.js +1 -0
  391. package/dist/assets/useAgentChatEnabled-DMbd4JDE.js +1 -0
  392. package/dist/assets/useAutosaveIndicator-D3owckCV.js +1 -0
  393. package/dist/assets/useHiddenSettings-D0HL2tkE.js +1 -0
  394. package/dist/assets/useInfiniteQuery-DTEIZ1gz.js +1 -0
  395. package/dist/assets/useInstanceFeatureSettings-1h06E3Mh.js +1 -0
  396. package/dist/assets/useManagedSandboxOnly-KE5BJrr7.js +1 -0
  397. package/dist/assets/useMobileEntityPickerViewportStyle-BG2vZMIz.js +1 -0
  398. package/dist/assets/usePrefersReducedMotion-BLkUT2m6.js +1 -0
  399. package/dist/assets/useProfilesData-Bs6IpD6I.js +1 -0
  400. package/dist/assets/useQueries-K6OPYBvC.js +1 -0
  401. package/dist/assets/useSecondTick-BRYNTPNI.js +1 -0
  402. package/dist/assets/useSharedPolling-CFeiZe2t.js +1 -0
  403. package/dist/assets/useSummaryDraftStream-DOcsGLEm.js +3 -0
  404. package/dist/assets/user-D5V640s5.js +1 -0
  405. package/dist/assets/user-check-DcbSRa0r.js +1 -0
  406. package/dist/assets/user-minus-DSZK8_9n.js +1 -0
  407. package/dist/assets/user-round-B87hENhM.js +1 -0
  408. package/dist/assets/user-x-CZ1ImNac.js +1 -0
  409. package/dist/assets/users-CEZ1U5q9.js +1 -0
  410. package/dist/assets/wand-sparkles-CONrztQy.js +1 -0
  411. package/dist/assets/webhook-nurKUWEn.js +1 -0
  412. package/dist/assets/x-6E1yeU3Q.js +1 -0
  413. package/dist/index.html +193 -193
  414. package/dist/sw.js +1 -1
  415. package/package.json +1 -1
  416. package/dist/assets/AccessSelectIdentity-DT_buzXu.js +0 -1
  417. package/dist/assets/AdapterManager-D60L5cdo.js +0 -1
  418. package/dist/assets/AdvancedToolsRoute-CTTIaGDV.js +0 -39
  419. package/dist/assets/AgentActionButtons-CSDLZSMZ.js +0 -1
  420. package/dist/assets/AgentAvatar-Dui4nRtK.js +0 -1
  421. package/dist/assets/AgentBubbleActionRow-DSmdb3Li.js +0 -1
  422. package/dist/assets/AgentCharacter-D8CErloh.js +0 -2
  423. package/dist/assets/AgentChat-D3dO5D25.js +0 -1
  424. package/dist/assets/AgentChats-BlMX0riv.js +0 -1
  425. package/dist/assets/AgentDefaults-BRMPOQ-f.js +0 -1
  426. package/dist/assets/AgentDetail-CWdw5kRB.js +0 -38
  427. package/dist/assets/AgentIconPicker-Dub7R1_d.js +0 -1
  428. package/dist/assets/AgentIdentity-DoJBo59l.js +0 -1
  429. package/dist/assets/AgentMailCredentialField-qDnOhzgT.js +0 -1
  430. package/dist/assets/AgentMultiSelect-CEZ1NuIU.js +0 -1
  431. package/dist/assets/AgentRoleEditor-yyBT_XYK.js +0 -1
  432. package/dist/assets/AgentSetupPrompt-B44EEYgo.js +0 -30
  433. package/dist/assets/AgentTodoCard-BHWOqSEn.js +0 -1
  434. package/dist/assets/Agents-0yi6xFaj.js +0 -3
  435. package/dist/assets/AppDetail-CqWalFA3.js +0 -8
  436. package/dist/assets/AppLogo-C6tetlB_.js +0 -1
  437. package/dist/assets/AppNotConnected-CzQcETOO.js +0 -1
  438. package/dist/assets/ApprovalCard-BIquGj06.js +0 -1
  439. package/dist/assets/ApprovalDetail-hUlU9KPS.js +0 -1
  440. package/dist/assets/ApprovalPayload-CZTySb8R.js +0 -1
  441. package/dist/assets/Approvals-DSt7iLh6.js +0 -1
  442. package/dist/assets/AppsConnect-C1ilHYgy.js +0 -1
  443. package/dist/assets/AppsReview-CdjVNMBY.js +0 -1
  444. package/dist/assets/ArtifactCard-CheT3r1Y.js +0 -1
  445. package/dist/assets/Artifacts-Cp_CLB8P.js +0 -1
  446. package/dist/assets/AssistantConnection-D7MGE_yN.js +0 -1
  447. package/dist/assets/AttentionInteractionResolver-BUB3AfZH.js +0 -1
  448. package/dist/assets/AuditHub-DiWa6PDF.js +0 -1
  449. package/dist/assets/Auth-7ZwKR47T.js +0 -3
  450. package/dist/assets/BoardChat-BtB-0sW_.js +0 -18
  451. package/dist/assets/BoardClaim-Dj03nG8V.js +0 -1
  452. package/dist/assets/BootstrapSetupUxLab-ARs-PdM-.js +0 -1
  453. package/dist/assets/BreadcrumbContext-B9JUzLr5.js +0 -1
  454. package/dist/assets/Browse-B5mbrNri.js +0 -1
  455. package/dist/assets/BudgetPolicyCard-D31Qlv4T.js +0 -1
  456. package/dist/assets/CaseDetail-kLu_fI6z.js +0 -2
  457. package/dist/assets/CaseIdentifierKey-BFHk8T39.js +0 -1
  458. package/dist/assets/Cases-B-LfED0v.js +0 -2
  459. package/dist/assets/ChatEndpointDetail-DMGq_bkC.js +0 -5
  460. package/dist/assets/ChatEndpointSetup-BIxcZyIt.js +0 -1
  461. package/dist/assets/ChatIdentityConfirm-vsNMn_wj.js +0 -1
  462. package/dist/assets/ChoiceControls-CLtKmk2I.js +0 -1
  463. package/dist/assets/CliAuth-BrGRdrjs.js +0 -1
  464. package/dist/assets/CommentAttributionChip-CnhotPjn.js +0 -1
  465. package/dist/assets/Companies-BMVhOFzV.js +0 -1
  466. package/dist/assets/CompanyAccess-BlUM6hbW.js +0 -1
  467. package/dist/assets/CompanyActivity-5OGh6LZ6.js +0 -1
  468. package/dist/assets/CompanyConnections-Q1zAAePy.js +0 -1
  469. package/dist/assets/CompanyContext-Cx4B566r.js +0 -1
  470. package/dist/assets/CompanyEnvironments-BW9JgMNj.js +0 -3
  471. package/dist/assets/CompanyExport-CDSYD5mi.js +0 -4
  472. package/dist/assets/CompanyImport-B7Y99lni.js +0 -1
  473. package/dist/assets/CompanySettings-EcYnaTrR.js +0 -1
  474. package/dist/assets/CompanySettingsPluginPage-D3Vts52M.js +0 -1
  475. package/dist/assets/CompanySkills-CJp4nZix.js +0 -10
  476. package/dist/assets/ComposerAddMenu-lqbjcizN.js +0 -3
  477. package/dist/assets/ConfigureBuiltInAgentModal-C5RpKaFX.js +0 -1
  478. package/dist/assets/ConnectionSetupFlow-BFexB8UB.js +0 -40
  479. package/dist/assets/CopyText-Z_7ZP24v.js +0 -1
  480. package/dist/assets/CopyableGatewayUrl-BAIPUo7r.js +0 -1
  481. package/dist/assets/CrossIssueCollaborationUxLab-BbToOV2g.js +0 -1
  482. package/dist/assets/Dashboard-B_807CNK.js +0 -2
  483. package/dist/assets/DecisionDateChips-CM9496e0.js +0 -1
  484. package/dist/assets/DecisionModelSettings-DyZC9rU1.js +0 -1
  485. package/dist/assets/DecisionQueuePage-BRbIttBU.js +0 -1
  486. package/dist/assets/DesignGuide-bh4XX4nv.js +0 -23
  487. package/dist/assets/DocumentFrameHeader-lPIe9r6i.js +0 -1
  488. package/dist/assets/EmailConnectionAccess-BfEW3sUV.js +0 -1
  489. package/dist/assets/EmailEndpointSetup-BOhC9uiR.js +0 -1
  490. package/dist/assets/EnforcementBanner-CvthijpR.js +0 -1
  491. package/dist/assets/EntityRow-DbXjGhVW.js +0 -1
  492. package/dist/assets/ExecutionWorkspaceDetail-D4v1WZZf.js +0 -19
  493. package/dist/assets/FilterBar-CDIOkdDy.js +0 -1
  494. package/dist/assets/FoldCurtain-SSKlbSjO.js +0 -1
  495. package/dist/assets/FolderControls-Bhry3Vd2.js +0 -1
  496. package/dist/assets/GatewayDetail-BzSIBC84.js +0 -2
  497. package/dist/assets/GatewaysList-CZP6UIqo.js +0 -1
  498. package/dist/assets/GoalDetail-Ct08uwQw.js +0 -1
  499. package/dist/assets/GoalTree-DxU1Hv7E.js +0 -1
  500. package/dist/assets/Goals-BT9hCHnP.js +0 -1
  501. package/dist/assets/Identity-Jt9hiBbb.js +0 -1
  502. package/dist/assets/ImageGalleryModal-tTRmXGM4.js +0 -1
  503. package/dist/assets/Inbox-6vKVEJVu.js +0 -2
  504. package/dist/assets/InlineBanner-BWitMSzj.js +0 -1
  505. package/dist/assets/InlineEditor-DJB_QvGc.js +0 -1
  506. package/dist/assets/InlineEntitySelector-h-mVM8ny.js +0 -1
  507. package/dist/assets/InstanceAccess-CWtKVMDd.js +0 -1
  508. package/dist/assets/InstanceAdvanced-Bb4mtcMA.js +0 -1
  509. package/dist/assets/InstanceFeatures-CkqItnLP.js +0 -1
  510. package/dist/assets/InviteLanding-BnL6CX0t.js +0 -1
  511. package/dist/assets/IssueChatLongThreadPerf-VX9bG-bM.js +0 -2
  512. package/dist/assets/IssueChatThread-RwT_ZjCz.js +0 -40
  513. package/dist/assets/IssueDetail-DuaqjKFa.js +0 -9
  514. package/dist/assets/IssueDocumentAnnotations-CwAOcRXe.js +0 -2
  515. package/dist/assets/IssueOutputSection-CWIabX5_.js +0 -1
  516. package/dist/assets/IssueRecoveryActionCard-BH_n5kJ0.js +0 -1
  517. package/dist/assets/IssueReferencePill-Bx19xBTT.js +0 -1
  518. package/dist/assets/IssueThreadInteractionCard-CwQx5QmL.js +0 -9
  519. package/dist/assets/IssueWriteDenialNotice-DntH-qXu.js +0 -1
  520. package/dist/assets/Issues-Cn7D_2T3.js +0 -5
  521. package/dist/assets/JoinRequestQueue-DDbAcL7h.js +0 -1
  522. package/dist/assets/JsonSchemaForm-CukFZxO5.js +0 -1
  523. package/dist/assets/LiveNowTodoLine-CeGqy3iK.js +0 -1
  524. package/dist/assets/ManagedAiConnectionDetails-GCRA__HT.js +0 -1
  525. package/dist/assets/MarkdownBody-Dtjq3Ln7.js +0 -16
  526. package/dist/assets/MarkdownEditor-GCKumUHH.js +0 -85
  527. package/dist/assets/McpConnect-Cv3wvage.js +0 -1
  528. package/dist/assets/MembershipAction-B1Rkn6Ya.js +0 -1
  529. package/dist/assets/MetricCard-CWsDw6PQ.js +0 -1
  530. package/dist/assets/MissingPluginTabPlaceholder-BBTNbYkG.js +0 -1
  531. package/dist/assets/ModelsAndProviders-DhjeUdj-.js +0 -1
  532. package/dist/assets/MootMark-Djv4Cqoj.js +0 -1
  533. package/dist/assets/NewAgent-BTrIjdLI.js +0 -1
  534. package/dist/assets/OmpAllSettings-D7HFc1wr.js +0 -1
  535. package/dist/assets/OpenwaGatewayManager-CZ-1AWGM.js +0 -2
  536. package/dist/assets/PathInstructionsModal-Ch_Y_h-W.js +0 -1
  537. package/dist/assets/PipelineSettings-CEOXJLey.js +0 -2
  538. package/dist/assets/Pipelines-Dqr4RIMe.js +0 -1
  539. package/dist/assets/PixelsOffice-Dc-hTwL6.js +0 -2
  540. package/dist/assets/PluginManager-BHDvd2Kk.js +0 -1
  541. package/dist/assets/PluginPage-DGJsTGb4.js +0 -1
  542. package/dist/assets/PluginSettings-DSb7ReBz.js +0 -1
  543. package/dist/assets/ProfileDetailRoute-DWOiwLnB.js +0 -1
  544. package/dist/assets/ProfileSettings-BDPwbFPA.js +0 -1
  545. package/dist/assets/ProfileWizardRoute-CyY9cBXn.js +0 -1
  546. package/dist/assets/ProjectDetail-tbNc2eqO.js +0 -1
  547. package/dist/assets/ProjectWorkspaceDetail-CE3uadEz.js +0 -29
  548. package/dist/assets/ProjectWorkspacesContent-C-UY0h-1.js +0 -1
  549. package/dist/assets/Projects-IJU6fKzh.js +0 -1
  550. package/dist/assets/PublicIssueSharePage-D2-mjx5c.js +0 -1
  551. package/dist/assets/QuestionForm-CNI1aaPv.js +0 -7
  552. package/dist/assets/QuotaBar-BHpsGZ_M.js +0 -1
  553. package/dist/assets/RepositoryEditor-sn0h55E-.js +0 -1
  554. package/dist/assets/ResponsibleUserDenialNotice-O-ehIhIk.js +0 -1
  555. package/dist/assets/ResponsibleUserDenialUxLab-CwOtm-H_.js +0 -1
  556. package/dist/assets/ReviewQueueCard-DK0sDiGs.js +0 -1
  557. package/dist/assets/RichWorkProductCard-ButSFwSp.js +0 -1
  558. package/dist/assets/RoutineActivityRow-C0vIpaP_.js +0 -1
  559. package/dist/assets/RoutineDetail-CWWdWsrO.js +0 -2
  560. package/dist/assets/RoutineRunVariablesDialog-CRGon2Hg.js +0 -1
  561. package/dist/assets/RoutineVariablesEditor-C_rNpv3C.js +0 -1
  562. package/dist/assets/Routines-GiNr76nw.js +0 -1
  563. package/dist/assets/ScrollToBottom-BYgXnYon.js +0 -1
  564. package/dist/assets/Search-SUbPfqq4.js +0 -1
  565. package/dist/assets/SearchableSelect-Dl3Lshyy.js +0 -1
  566. package/dist/assets/Secrets--ch95iPv.js +0 -4
  567. package/dist/assets/SetupWizard-BhEuzmUv.js +0 -1
  568. package/dist/assets/SidebarContext-BHJMHrvt.js +0 -1
  569. package/dist/assets/SidebarNavItem-Dr2h0yiK.js +0 -1
  570. package/dist/assets/SkillBinaryFile-Datjq2Oi.js +0 -1
  571. package/dist/assets/SkillCardIcon-C430BaPr.js +0 -2
  572. package/dist/assets/SkillSourceTree-CR0E52D2.js +0 -2
  573. package/dist/assets/SkillSources-DeBOYCiw.js +0 -2
  574. package/dist/assets/SkillStudio-C3XaNFS3.js +0 -9
  575. package/dist/assets/SourceTrustBadge-D9HGGRtv.js +0 -1
  576. package/dist/assets/StatusCards-D2X-8hFz.js +0 -1
  577. package/dist/assets/StatusIcon-Byea8cPq.js +0 -1
  578. package/dist/assets/SummarySlotCard-CxnwG1r2.js +0 -1
  579. package/dist/assets/TaskChatComposerTakeoverContext-DCrczoPx.js +0 -1
  580. package/dist/assets/TaskChatLab-BvlnYRNe.js +0 -11
  581. package/dist/assets/TaskChatMarker-2V0Oo3xV.js +0 -2
  582. package/dist/assets/TaskChatProtocolCard-CgwNmmaw.js +0 -1
  583. package/dist/assets/TaskChatThreadView-BSU2dzE7.js +0 -4
  584. package/dist/assets/TaskTreeControls-DaAFj1E9.js +0 -3
  585. package/dist/assets/Terminal-Byg7O1p2.js +0 -1
  586. package/dist/assets/TerminalView-CsrRCoNX.js +0 -58
  587. package/dist/assets/ThemeContext-Bj-WoVL8.js +0 -1
  588. package/dist/assets/ThemeToggle-_Eipcr9P.js +0 -1
  589. package/dist/assets/ToastContext-BCfjPRi1.js +0 -1
  590. package/dist/assets/ToolsAdminGate-B6k3SrGU.js +0 -1
  591. package/dist/assets/TrustPresetSection-DSCmQxlJ.js +0 -1
  592. package/dist/assets/UserProfile-BYBUYHyM.js +0 -1
  593. package/dist/assets/WebhookUrlWarning-DeNhQ5SI.js +0 -1
  594. package/dist/assets/WhatNeedsMe-I9wfO12c.js +0 -1
  595. package/dist/assets/WorkspaceRuntimeControls-ByOvZ2To.js +0 -1
  596. package/dist/assets/Workspaces-Db99D3YB.js +0 -1
  597. package/dist/assets/access-BqSI2EWX.js +0 -1
  598. package/dist/assets/activity-CV1ib_N4.js +0 -1
  599. package/dist/assets/activity-DjXPM70-.js +0 -1
  600. package/dist/assets/activity-format-z4x2U1UL.js +0 -1
  601. package/dist/assets/adapter-display-registry-BwL8TUEJ.js +0 -1
  602. package/dist/assets/adapters-BDzUkPiY.js +0 -1
  603. package/dist/assets/agent-avatar-url-D6FtNk3V.js +0 -1
  604. package/dist/assets/agent-config-primitives-BpUNyayv.js +0 -1
  605. package/dist/assets/agentChats-B3DxYJ0s.js +0 -1
  606. package/dist/assets/agents-PFXnjEjH.js +0 -1
  607. package/dist/assets/alert-dialog-Bu032Tf4.js +0 -1
  608. package/dist/assets/app-connect-policy-C0ySFS-g.js +0 -1
  609. package/dist/assets/archive-BHg7Yq0H.js +0 -1
  610. package/dist/assets/archive-restore-BtX-2MA_.js +0 -1
  611. package/dist/assets/arrow-down-CDBD_UhE.js +0 -1
  612. package/dist/assets/arrow-down-left-tUS9EGQ5.js +0 -1
  613. package/dist/assets/arrow-left-CRfeAefI.js +0 -1
  614. package/dist/assets/arrow-right-898_TY3T.js +0 -1
  615. package/dist/assets/arrow-up-down-CIDQ-7ap.js +0 -1
  616. package/dist/assets/arrow-up-lSEksryM.js +0 -1
  617. package/dist/assets/arrow-up-right-CiL52_C-.js +0 -1
  618. package/dist/assets/artifacts-BmsoVCdJ.js +0 -1
  619. package/dist/assets/assets-lhKNSpON.js +0 -1
  620. package/dist/assets/attachment-icon-g4YAkuZ8.js +0 -1
  621. package/dist/assets/avatar-C4Ssxg9Y.js +0 -1
  622. package/dist/assets/badge-Dvh7HNMN.js +0 -1
  623. package/dist/assets/badge-check-B-GkuMC-.js +0 -1
  624. package/dist/assets/book-open-Ccq-Ea-W.js +0 -1
  625. package/dist/assets/bot-CPZa9Nhm.js +0 -1
  626. package/dist/assets/boxes-PkWx_5hs.js +0 -1
  627. package/dist/assets/braces-DovVxLjW.js +0 -1
  628. package/dist/assets/browser-use-DzHGNDA8.js +0 -1
  629. package/dist/assets/budgets-BieJJ3WD.js +0 -1
  630. package/dist/assets/button-CB8r2Tmh.js +0 -1
  631. package/dist/assets/calendar-clock-CeIy5aD9.js +0 -1
  632. package/dist/assets/card-DANCDyBy.js +0 -1
  633. package/dist/assets/cases-DiL3ys5G.js +0 -1
  634. package/dist/assets/chatEndpoints-BR_dsxeU.js +0 -1
  635. package/dist/assets/check-ByoSzjU8.js +0 -1
  636. package/dist/assets/checkbox-D9x1Kpmi.js +0 -1
  637. package/dist/assets/chevron-down-BY8r8lEv.js +0 -1
  638. package/dist/assets/chevron-left-Bh6cfiU3.js +0 -1
  639. package/dist/assets/chevron-right-B9tyGqmZ.js +0 -1
  640. package/dist/assets/chevron-up-Y_THiwqt.js +0 -1
  641. package/dist/assets/chip-CPztosQ8.js +0 -1
  642. package/dist/assets/circle-Dov4MVoe.js +0 -1
  643. package/dist/assets/circle-alert-Dw0yL22E.js +0 -1
  644. package/dist/assets/circle-dot-W_Fv5sI-.js +0 -1
  645. package/dist/assets/circle-question-mark-Bs7m2809.js +0 -1
  646. package/dist/assets/circle-slash-BrrkGL_C.js +0 -1
  647. package/dist/assets/circle-x-haVgjs_m.js +0 -1
  648. package/dist/assets/clipboard-paste-CbrlOJuv.js +0 -1
  649. package/dist/assets/clock-DynbfDi4.js +0 -1
  650. package/dist/assets/cloud-BL3mJ3Zk.js +0 -1
  651. package/dist/assets/code-xml-DnMtzyzg.js +0 -1
  652. package/dist/assets/coins-op-yocyK.js +0 -1
  653. package/dist/assets/collapsible-CK4bkaKD.js +0 -1
  654. package/dist/assets/columns-3-h7a-cGgB.js +0 -1
  655. package/dist/assets/command-DnT_Dqx6.js +0 -5
  656. package/dist/assets/companies-query-CEvXdXle.js +0 -1
  657. package/dist/assets/connection-identity-BFnwnJ1m.js +0 -1
  658. package/dist/assets/connection-owner-a9FWzn0p.js +0 -1
  659. package/dist/assets/copy-BzAUsLd3.js +0 -1
  660. package/dist/assets/createLucideIcon-DpXjCQRS.js +0 -94
  661. package/dist/assets/decision-models-BJo87qdY.js +0 -1
  662. package/dist/assets/dialog-Bj8Y6BBR.js +0 -1
  663. package/dist/assets/dist-3Dez14jq.js +0 -1
  664. package/dist/assets/dist-B0zvydXD.js +0 -1
  665. package/dist/assets/dist-BHjJYMl9.js +0 -1
  666. package/dist/assets/dist-BdR2FnFe.js +0 -1
  667. package/dist/assets/dist-BmMF5JdA.js +0 -1
  668. package/dist/assets/dist-BvZdGtYE.js +0 -1
  669. package/dist/assets/dist-CL5YXBl1.js +0 -1
  670. package/dist/assets/dist-C_1hhiPG.js +0 -1
  671. package/dist/assets/dist-CvnnLM1v.js +0 -1
  672. package/dist/assets/dist-DGPm9z2w.js +0 -1
  673. package/dist/assets/dist-DIKPg1Zq.js +0 -1
  674. package/dist/assets/dist-hTXDV8BS.js +0 -1
  675. package/dist/assets/dist-qP8xhvXd.js +0 -1
  676. package/dist/assets/dropdown-menu-COuwCVD4.js +0 -1
  677. package/dist/assets/ellipsis-ClhaIBYZ.js +0 -1
  678. package/dist/assets/ellipsis-vertical-BLqWWVnI.js +0 -1
  679. package/dist/assets/email-X-ZvOMfe.js +0 -1
  680. package/dist/assets/environment-variables-editor-DuAdYQbc.js +0 -1
  681. package/dist/assets/environments-C7Tx6OHp.js +0 -1
  682. package/dist/assets/es2015-D1VPo3R2.js +0 -41
  683. package/dist/assets/external-link--KkXYRPz.js +0 -1
  684. package/dist/assets/eye-kZn_xPie.js +0 -1
  685. package/dist/assets/eye-off-CIggBtC5.js +0 -1
  686. package/dist/assets/fast-responses-BxWwvpML.js +0 -1
  687. package/dist/assets/file-DpimbHnE.js +0 -1
  688. package/dist/assets/file-code-corner-CTt6xXKc.js +0 -1
  689. package/dist/assets/file-question-mark-BdUx7roP.js +0 -1
  690. package/dist/assets/file-search-DKDwHcZ2.js +0 -1
  691. package/dist/assets/file-text-Dpnp6o-I.js +0 -1
  692. package/dist/assets/flag-DL-0fBPJ.js +0 -1
  693. package/dist/assets/flask-conical-qqfS8te7.js +0 -1
  694. package/dist/assets/folder-git-2-D8yyJVTc.js +0 -1
  695. package/dist/assets/folder-open-fbJID1cC.js +0 -1
  696. package/dist/assets/folder-search-D89U3Z-T.js +0 -1
  697. package/dist/assets/funnel-B2ism2sD.js +0 -1
  698. package/dist/assets/git-pull-request-DQkSlyfL.js +0 -1
  699. package/dist/assets/github-icon-CbU9rpKT.js +0 -1
  700. package/dist/assets/health-CHjyy9Zt.js +0 -1
  701. package/dist/assets/heartbeats-Cy4hqsrt.js +0 -1
  702. package/dist/assets/inbox-WZDW93BL.js +0 -1
  703. package/dist/assets/inboxArchiveCache-CoY_V35O.js +0 -1
  704. package/dist/assets/index-B6ALXjXD.js +0 -67
  705. package/dist/assets/index-gXKvahZk.css +0 -2
  706. package/dist/assets/info-BqXpbzV2.js +0 -1
  707. package/dist/assets/input-tD3qR9Gq.js +0 -1
  708. package/dist/assets/instanceSettings-DIXpSGRh.js +0 -1
  709. package/dist/assets/interaction-audience-CXUDNI1a.js +0 -1
  710. package/dist/assets/interaction-card-visibility-DTtQkm6u.js +0 -1
  711. package/dist/assets/issue-blockers-KTmO2cng.js +0 -1
  712. package/dist/assets/issue-output-BzlPk1Fq.js +0 -1
  713. package/dist/assets/issue-properties-CmEBhjZa.js +0 -4
  714. package/dist/assets/issue-share-0nHxp5nx.js +0 -1
  715. package/dist/assets/issue-workspace-selection-DxIMVIPY.js +0 -1
  716. package/dist/assets/key-round-Bzc86YKh.js +0 -1
  717. package/dist/assets/label-CUFCL9Te.js +0 -1
  718. package/dist/assets/layout-dashboard-CQUo0zqq.js +0 -1
  719. package/dist/assets/link-2-DdeL2ffb.js +0 -1
  720. package/dist/assets/link-BTk9LQnG.js +0 -1
  721. package/dist/assets/list-filter-BIvVZUS2.js +0 -1
  722. package/dist/assets/list-todo-ByybdFTG.js +0 -1
  723. package/dist/assets/log-in-C5qjuUlB.js +0 -1
  724. package/dist/assets/maximize-2-pkU0hBkw.js +0 -1
  725. package/dist/assets/mention-chips-D3m3O_ko.js +0 -17
  726. package/dist/assets/message-square-plus-DaOHWEpG.js +0 -1
  727. package/dist/assets/minus-ymsuVafu.js +0 -1
  728. package/dist/assets/model-fallback-5DsUzAM5.js +0 -1
  729. package/dist/assets/model-picker-fields-jLfT-wsr.js +0 -1
  730. package/dist/assets/network-DtO4s1Xo.js +0 -1
  731. package/dist/assets/octagon-alert-Do2mnwTI.js +0 -1
  732. package/dist/assets/octagon-x-7Om5soqi.js +0 -1
  733. package/dist/assets/omp-settings-model-BVsTwU6j.js +0 -1
  734. package/dist/assets/package-Cvq1waTm.js +0 -1
  735. package/dist/assets/pause-BNtKkOA6.js +0 -1
  736. package/dist/assets/pen-line-DJnffu7P.js +0 -1
  737. package/dist/assets/pipeline-stage-presentation-DvjVVsAD.js +0 -2
  738. package/dist/assets/pipelines-B_5RdgB1.js +0 -1
  739. package/dist/assets/play-BEkcNe5A.js +0 -1
  740. package/dist/assets/plug-vBXQGAOC.js +0 -1
  741. package/dist/assets/plugins-CaoL00gm.js +0 -1
  742. package/dist/assets/plus-Ci4fWNMH.js +0 -1
  743. package/dist/assets/popover-C9GvGhqf.js +0 -1
  744. package/dist/assets/power-czY3YlJl.js +0 -1
  745. package/dist/assets/presentation-mode-3-5_ozCU.js +0 -1
  746. package/dist/assets/profile-summary-Bhu05QwC.js +0 -1
  747. package/dist/assets/projects-C-sNYR8y.js +0 -1
  748. package/dist/assets/proposal-review-Cww0NzU2.js +0 -1
  749. package/dist/assets/queryClient-CLuei5YE.js +0 -1
  750. package/dist/assets/queryKeys-Bwpi9du8.js +0 -1
  751. package/dist/assets/radio-Bbj2qILX.js +0 -1
  752. package/dist/assets/radio-card-CEpISzBw.js +0 -1
  753. package/dist/assets/recent-agent-chats-xm5DHAP2.js +0 -1
  754. package/dist/assets/refresh-cw-BoKHCT9Q.js +0 -1
  755. package/dist/assets/repeat-CxiYIeqH.js +0 -1
  756. package/dist/assets/resizable-panels-CAJWzqPj.js +0 -1
  757. package/dist/assets/review-policy-BroUuOnH.js +0 -1
  758. package/dist/assets/rotate-ccw-DP1fSRXE.js +0 -1
  759. package/dist/assets/rotate-cw-BIJjXmtM.js +0 -1
  760. package/dist/assets/router-DvYg2TPj.js +0 -1
  761. package/dist/assets/routines-DRJ8glz2.js +0 -1
  762. package/dist/assets/runRetryState-BQtnYsCT.js +0 -1
  763. package/dist/assets/save-TS82wH4U.js +0 -1
  764. package/dist/assets/schema-config-fields-CKfJ_1Bc.js +0 -1
  765. package/dist/assets/scroll-area-CSkajMX4.js +0 -1
  766. package/dist/assets/scroll-text-BtyjTPat.js +0 -1
  767. package/dist/assets/search-C7RvqPDh.js +0 -1
  768. package/dist/assets/secrets-Bow-lhgm.js +0 -1
  769. package/dist/assets/segmented-B9WQFRdU.js +0 -1
  770. package/dist/assets/select-BILzRqwR.js +0 -1
  771. package/dist/assets/send-Cq6oLC65.js +0 -1
  772. package/dist/assets/separator-Cc_zxQfG.js +0 -1
  773. package/dist/assets/server-D14pf6xr.js +0 -1
  774. package/dist/assets/server-cog-Dd0WwTxo.js +0 -1
  775. package/dist/assets/settings-_MxMwkB3.js +0 -1
  776. package/dist/assets/shared-C9rdRvrI.js +0 -1
  777. package/dist/assets/sheet-CXi-joPR.js +0 -1
  778. package/dist/assets/shield-B35HbBPD.js +0 -1
  779. package/dist/assets/shield-alert-DoI68Irt.js +0 -1
  780. package/dist/assets/shield-check-BkZhOxSV.js +0 -1
  781. package/dist/assets/shield-question-mark-DJ1-iT-R.js +0 -1
  782. package/dist/assets/shield-x-IA54_BG9.js +0 -1
  783. package/dist/assets/sidebarPreferences-RlJwFW7E.js +0 -1
  784. package/dist/assets/skeleton-D5GfoYPy.js +0 -1
  785. package/dist/assets/slots-B-bF0j6o.js +0 -49
  786. package/dist/assets/smoke-lab-matrix-ChxKoFnA.js +0 -1
  787. package/dist/assets/square-BSbamBKn.js +0 -1
  788. package/dist/assets/star-vweB_JDI.js +0 -15
  789. package/dist/assets/sun-t5pkwxql.js +0 -1
  790. package/dist/assets/system-notice-comment-BzIsx8nv.js +0 -1
  791. package/dist/assets/tabs-BruQLBag.js +0 -1
  792. package/dist/assets/task-chat-attachments-COZdrQRo.js +0 -10
  793. package/dist/assets/terminal-BSPCPTKd.js +0 -1
  794. package/dist/assets/textarea-BQh3frGz.js +0 -1
  795. package/dist/assets/thumbs-down-Db03Y3rC.js +0 -1
  796. package/dist/assets/thumbs-up-hfQ2kjmZ.js +0 -1
  797. package/dist/assets/toggle-switch-CCZLW1ZV.js +0 -1
  798. package/dist/assets/tools-VxBq3Bni.js +0 -1
  799. package/dist/assets/tooltip-DhA8eGCr.js +0 -1
  800. package/dist/assets/transcript-adapter-CEuUrDAp.js +0 -5
  801. package/dist/assets/trash-Blp_H70m.js +0 -1
  802. package/dist/assets/triangle-alert-BbGTCcEH.js +0 -1
  803. package/dist/assets/upload-D1pDAAji.js +0 -1
  804. package/dist/assets/use-adapter-capabilities-DVcxB6B0.js +0 -1
  805. package/dist/assets/use-copy-action-DOl9yp4g.js +0 -1
  806. package/dist/assets/useAgentChatEnabled-BIG72pQN.js +0 -1
  807. package/dist/assets/useAutosaveIndicator-Bb6JV7mP.js +0 -1
  808. package/dist/assets/useHiddenSettings-C5OX_C_M.js +0 -1
  809. package/dist/assets/useInfiniteQuery-aicMPSfT.js +0 -1
  810. package/dist/assets/useInstanceFeatureSettings-1CM1woTZ.js +0 -1
  811. package/dist/assets/useManagedSandboxOnly-DENpzhcY.js +0 -1
  812. package/dist/assets/useMobileEntityPickerViewportStyle-l3SLJAQb.js +0 -1
  813. package/dist/assets/usePrefersReducedMotion-z1zTAoVk.js +0 -1
  814. package/dist/assets/useProfilesData-D_CamlCc.js +0 -1
  815. package/dist/assets/useQueries-DVLf9RKa.js +0 -1
  816. package/dist/assets/useSecondTick-CQantaP_.js +0 -1
  817. package/dist/assets/useSharedPolling-CfP23_kt.js +0 -1
  818. package/dist/assets/useSummaryDraftStream-Cce3cGNj.js +0 -3
  819. package/dist/assets/user-RgiS0rQH.js +0 -1
  820. package/dist/assets/user-check-NQX3Jxil.js +0 -1
  821. package/dist/assets/user-minus-DFmQKqPK.js +0 -1
  822. package/dist/assets/user-round-cSiRkcc8.js +0 -1
  823. package/dist/assets/user-x-BydVKgYM.js +0 -1
  824. package/dist/assets/users-CjaVMVjO.js +0 -1
  825. package/dist/assets/wand-sparkles-wj238ghx.js +0 -1
  826. package/dist/assets/webhook-CrpXuiI8.js +0 -1
  827. package/dist/assets/x-B9UP51U4.js +0 -1
@@ -1 +0,0 @@
1
- import{t as a}from"./createLucideIcon-DpXjCQRS.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};
@@ -1 +0,0 @@
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,la as s,ua as l}from"./createLucideIcon-DpXjCQRS.js";var f=t(l(),1),d=t(s(),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};
@@ -1 +0,0 @@
1
- var c=Object.defineProperty;var t=(e,s)=>c(e,"name",{value:s,configurable:!0});import{r as n}from"./queryKeys-Bwpi9du8.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};
@@ -1 +0,0 @@
1
- var R=Object.defineProperty;var a=(e,n)=>R(e,"name",{value:n,configurable:!0});import{Wi as g,ta as m}from"./createLucideIcon-DpXjCQRS.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};
@@ -1 +0,0 @@
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{ua as m}from"./createLucideIcon-DpXjCQRS.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};
@@ -1 +0,0 @@
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{ua as P}from"./createLucideIcon-DpXjCQRS.js";import{t as Z}from"./eye-kZn_xPie.js";import{t as Y}from"./octagon-alert-Do2mnwTI.js";import{t as B}from"./refresh-cw-BoKHCT9Q.js";import{t as U}from"./triangle-alert-BbGTCcEH.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(s=>n.find(u=>u.type===s)?.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)),s=I(n,t.locale,t.timeZone),u=I(a,t.locale,t.timeZone),f=new Intl.DateTimeFormat(t.locale,{hour:"numeric",minute:"2-digit",timeZone:t.timeZone}).format(n);return s.year===u.year&&s.month===u.month&&s.day===u.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:s.year===u.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,s=a?.status==="scheduled_retry",u=r?.nextCheckAt??e.monitorNextCheckAt??n?.nextCheckAt??(s?a?.scheduledRetryAt:null)??null,f=r!==null||n!==null||e.monitorNextCheckAt!=null,m=f?"monitor":s?"scheduled-retry":"none",i=r?.attemptCount??(f?e.monitorAttemptCount:null)??(s?a?.scheduledRetryAttempt:null)??0,l=r?.serviceName??n?.serviceName??null;if(r?.status==="cleared")return{state:"cleared",source:m,nextCheckAt:u,attemptCount:i,serviceName:l};if(!f&&!s)return{state:"none",source:m,nextCheckAt:null,attemptCount:0,serviceName:null};if(!u)return{state:s||i>1?"retrying":"scheduled",source:m,nextCheckAt:u,attemptCount:i,serviceName:l};const d=c(u)-c(t);return d<=-6e4?{state:"overdue",source:m,nextCheckAt:u,attemptCount:i,serviceName:l}:d<=0?{state:"due-now",source:m,nextCheckAt:u,attemptCount:i,serviceName:l}:{state:s||i>1?"retrying":"scheduled",source:m,nextCheckAt:u,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,s=!1;const u=o(()=>{a=setTimeout(()=>{s||(r(new Date(Date.now())),u())},W(new Date(n)))},"scheduleNextTick");return u(),()=>{s=!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,s=r.preservesSourceAssignee===!0,u=N(e.evidence)??{},f=y(u.sourceAttemptCount),m=y(u.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&&(s||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:s||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 s=r.blocker.identifier??r.blocker.id,u=n.blocker.identifier??n.blocker.id;return s.localeCompare(u,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};
@@ -1 +0,0 @@
1
- var c=Object.defineProperty;var n=(i,t)=>c(i,"name",{value:t,configurable:!0});import{Di as m}from"./createLucideIcon-DpXjCQRS.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 W(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(W,"getOutputFileGlyph");function _(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(_,"isVideoLikeOutput");function b(i){const t=s(i);return t.startsWith("image/")&&t!=="image/svg+xml"}n(b,"isImageContentType");function y(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(y,"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,y as o,W as r,_ as s,S as t};
@@ -1,4 +0,0 @@
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{Ci as va,O as ks,Si as El,Ti as Na,h as M,l as g,la as Wl,m as $l,t as Ca,ua as _l,w as Ml,wi as Ll,xi as Fl}from"./createLucideIcon-DpXjCQRS.js";import{l as Bl}from"./dist-hTXDV8BS.js";import{a as As,h as Ss}from"./star-vweB_JDI.js";import{X as Ia,_ as Ce,n as Aa,t as j,v as A}from"./queryKeys-Bwpi9du8.js";import{o as ql}from"./companies-query-CEvXdXle.js";import{t as Dl}from"./issue-attribution-DfN_3u2W.js";import{n as Ps,t as Rs}from"./IssueDocumentAnnotations-CwAOcRXe.js";import{n as zl,r as Ul}from"./WorkspaceRuntimeControls-ByOvZ2To.js";import{n as Kl}from"./CompanyContext-Cx4B566r.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-DvYg2TPj.js";import{i as Gl,p as Xl,r as Yl,t as Zl}from"./dropdown-menu-COuwCVD4.js";import{i as Jl,n as qe,r as ei,t as ti}from"./tabs-BruQLBag.js";import{o as aa,r as ra,t as la}from"./popover-C9GvGhqf.js";import{t as si}from"./archive-restore-BtX-2MA_.js";import{t as ni}from"./arrow-right-898_TY3T.js";import{t as yt}from"./arrow-up-right-CiL52_C-.js";import{t as ne}from"./check-ByoSzjU8.js";import{t as ws}from"./chevron-down-BY8r8lEv.js";import{t as ai}from"./chevron-left-Bh6cfiU3.js";import{t as ri}from"./chevron-right-B9tyGqmZ.js";import{t as li}from"./circle-question-mark-Bs7m2809.js";import{t as Sa}from"./clock-DynbfDi4.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-Dtjq3Ln7.js";import{t as Ta}from"./external-link--KkXYRPz.js";import{t as Os}from"./file-text-Dpnp6o-I.js";import{t as pi}from"./file-DpimbHnE.js";import{a as fi,i as gi,n as bi,t as ji}from"./RichWorkProductCard-ButSFwSp.js";import{t as yi}from"./folder-open-fbJID1cC.js";import{t as ki}from"./git-pull-request-DQkSlyfL.js";import{r as Oa,t as W}from"./button-CB8r2Tmh.js";import{t as vs}from"./plus-Ci4fWNMH.js";import{t as wi}from"./repeat-CxiYIeqH.js";import{t as oa}from"./rotate-ccw-DP1fSRXE.js";import{t as vi}from"./triangle-alert-BbGTCcEH.js";import{t as De}from"./user-RgiS0rQH.js";import{t as Ni}from"./x-B9UP51U4.js";import{i as Ci,n as Ii,r as Ai,t as Si}from"./tooltip-DhA8eGCr.js";import{t as se}from"./badge-Dvh7HNMN.js";import{t as Pi}from"./Identity-Jt9hiBbb.js";import{t as ve}from"./AgentAvatar-Dui4nRtK.js";import{t as Ea}from"./agents-PFXnjEjH.js";import{t as Wa}from"./instanceSettings-DIXpSGRh.js";import{u as Ri}from"./inboxArchiveCache-CoY_V35O.js";import{t as Ti}from"./projects-C-sNYR8y.js";import{a as Oi,c as Ei,n as Wi,r as $i,s as _i,t as Mi}from"./dialog-Bj8Y6BBR.js";import{t as Li}from"./access-BqSI2EWX.js";import{i as Fi,r as Bi}from"./assignees-DkQNbPzi.js";import{t as qi}from"./activity-CV1ib_N4.js";import{t as ca}from"./AgentIdentity-DoJBo59l.js";import{t as Di}from"./textarea-BQh3frGz.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-h-mVM8ny.js";import{t as Gi}from"./clipboard-CTLKYvRL.js";import{t as kt}from"./StatusIcon-Byea8cPq.js";import{_ as Xi,g as Yi,h as Zi,m as da,p as Ji,v as eo}from"./issue-blockers-KTmO2cng.js";import{$n as to,Dr as so,Ga as $a,Hn as no,Ja as ao,Jn as ua,Tn as ro,Vn as lo,Wn as io,Xn as xa,Yn as oo,Za as co,Zn as uo,ar as xo,ir as mo,mn as ho,mr as po,pr as ma,rr as fo,sr as ha}from"./index-B6ALXjXD.js";import{d as _a,i as go,n as Ma,s as bo,t as jo}from"./ImageGalleryModal-tTRmXGM4.js";import{i as yo,r as ko,t as wt}from"./IssueReferencePill-Bx19xBTT.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-D9HGGRtv.js";import{n as So}from"./runRetryState-BQtnYsCT.js";import{o as Po,s as Ro}from"./issue-output-BzlPk1Fq.js";import{n as To}from"./review-policy-BroUuOnH.js";import{t as Oo}from"./separator-Cc_zxQfG.js";import{n as Eo,t as Wo}from"./issue-workspace-selection-DxIMVIPY.js";import{o as $o}from"./cases-DiL3ys5G.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(Wl(),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=va(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)(()=>oo(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];ho(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 Yo(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(Yo,"parseArtifactCsv");async function Zo(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 Yo(o)}a(Zo,"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)(ao,{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})=>Zo(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=va(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>Fl,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=>!Na(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]),Z=[...(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 Y=z.runId??"other",O=f.get(Y)??[];return O.push(z),f.set(Y,O),f},new Map)].map(([f,z])=>({runId:f,rows:z.sort((Y,O)=>O.date.getTime()-Y.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,Z.map(f=>{const z=f.runId==="other"?null:H.get(f.runId),Y=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:Y?.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=Ll(L);if(Qe){const He=El(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:Y?.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:Y?.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 Ya(t){const n=Ws(t);return t.pill.statusIconKey==="git-merge"||n.toLowerCase()==="merged"}a(Ya,"isMergedExternalObject");function gc(t){return(Ya(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 Ya(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)(ro,{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,[Z,xe]=(0,d.useState)(null);(0,d.useEffect)(()=>{if(o){xe(null);return}xe(document.getElementById(so))},[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:Y}=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=>!Na(s.key)),me=!!f||(z?.length??0)>0||$s.length>0,Ge=(O?.length??0)>0||$s.length>0||Da(Y,O).length>0,[he,Ae]=(0,d.useState)("properties"),[St,Xe]=(0,d.useState)(()=>new Set),Se=(0,d.useRef)(!1),Za=(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,Ye]=(0,d.useState)(null),[Ls,Fs]=(0,d.useState)(!1),[Tt,Bs]=(0,d.useState)(""),[qs,Ds]=(0,d.useState)(!1),[Ja,Ze]=(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,Ys]=(0,d.useState)(""),[Zs,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}=to({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)}),Ys("")},"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}=po(),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)(()=>lo(no(Ht??[])).map(s=>({...s,options:s.options.filter(i=>io(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),Ze("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,Yt=Xt?null:t.currentExecutionWorkspace?.config?.workspaceRuntime??null,gn=t.currentExecutionWorkspace?.runtimeServices??[],Zt=!!t.currentExecutionWorkspace?.cwd,bn=!!Yt&&Zt,Jt=(0,d.useMemo)(()=>Ul({runtimeConfig:Yt,runtimeServices:gn,canStartServices:bn,canRunJobs:Zt}),[Zt,bn,Yt,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?Ml(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)(()=>uo(),[Ls]),es=(0,d.useMemo)(()=>mo(ge?.users),[ge?.users]),Er=(0,d.useMemo)(()=>xo(ge?.users),[ge?.users]),Cn=(0,d.useMemo)(()=>fo(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=xa(t.executionPolicy,"review"),ee=xa(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(""),Ye(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){Ye({...s,label:i,track:m});return}Tn(s,m)},"selectAssignee"),ls=a((s,i)=>{S&&c({executionPolicy:ua({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=ua({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,Yr=N?.monitor?.notes??ce?.notes??null,os=eo(G),cs=G?Zi(G,os):null,Zr=cs==="due now",Jr=!!cs?.startsWith("overdue by "),el=G?Yi(G,os):ce?.status==="cleared"?"Cleared":"None",Bn=G?Zr?"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:Yr??"—"})]}),(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?$l(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:Zs,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=>Ys(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:Zs}),"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(()=>Ye(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,Yn=((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"}),Yn.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..."}):Yn.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(""),Ye(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||(Ze("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(()=>Ze("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(()=>Ze("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:[Z?(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"})}),Z):null,js]});const Zn=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}),Zn!==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=!!Z,Tl=Z?g(wa,"min-w-0 flex-1 justify-start overflow-hidden after:hidden"):void 0,Jn=(0,e.jsx)(ei,{variant:"line",className:Z?"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)(Zl,{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)(Yl,{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:Zn,onValueChange:Za,className:"flex min-h-0 flex-col gap-3",children:[Z?(0,pa.createPortal)((0,e.jsx)("div",{className:"group/tabs contents","data-orientation":"horizontal",children:ea}),Z):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};
@@ -1 +0,0 @@
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-Bwpi9du8.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};
@@ -1 +0,0 @@
1
- var t=Object.defineProperty;var o=(e,r)=>t(e,"name",{value:r,configurable:!0});import{er as c,nr as u}from"./index-B6ALXjXD.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??c(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"?u(n):e,environmentId:null}}}o(p,"buildWorkspaceSelectionUpdate");export{s as n,p as t};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-DpXjCQRS.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};
@@ -1 +0,0 @@
1
- var l=Object.defineProperty;var t=(r,e)=>l(r,"name",{value:e,configurable:!0});import{i as o}from"./rolldown-runtime-ZpX3ckPj.js";import{l as s,la as u,ua as d}from"./createLucideIcon-DpXjCQRS.js";import{s as m}from"./dist-hTXDV8BS.js";var f=o(d(),1),i=o(u(),1),p=Object.defineProperty,c=t((r,e)=>p(r,"name",{value:e,configurable:!0}),"__name"),b=f.forwardRef(c(t(function(e,n){return(0,i.jsx)(m.label,{...e,ref:n,onMouseDown:t(a=>{a.target.closest("button, input, select, textarea")||(e.onMouseDown?.(a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())},"onMouseDown")})},"Label2"),"Label")),_=b;function w({className:r,...e}){return(0,i.jsx)(_,{"data-slot":"label",className:s("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})}t(w,"Label");export{w as t};
@@ -1 +0,0 @@
1
- import{t}from"./createLucideIcon-DpXjCQRS.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};
@@ -1 +0,0 @@
1
- import{t as a}from"./createLucideIcon-DpXjCQRS.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};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-DpXjCQRS.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};
@@ -1 +0,0 @@
1
- import{t}from"./createLucideIcon-DpXjCQRS.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};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-DpXjCQRS.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};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-DpXjCQRS.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};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-DpXjCQRS.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};