@xopcai/xopc 0.0.425 → 0.0.426

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 (208) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/telegram/xopc.extension.json +1 -1
  3. package/dist/gateway/static/root/assets/{activity-store-CMw8qBuC.js → activity-store-D_DXNHba.js} +1 -1
  4. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-JI0YWOIm.js → agent-avatar-dicebear-CjaQxFQt.js} +1 -1
  5. package/dist/gateway/static/root/assets/{agent-avatar-display-YqmwzOSa.js → agent-avatar-display-6Z4m31Fz.js} +2 -2
  6. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-DlvjxWg6.js → agent-defaults-settings-panel-Dne9A10p.js} +1 -1
  7. package/dist/gateway/static/root/assets/{agent-plugin-dialog-OBueuQSc.js → agent-plugin-dialog-BoHL-b1o.js} +1 -1
  8. package/dist/gateway/static/root/assets/{agents-Cp6_5OOQ.js → agents-CIiIlVBp.js} +3 -3
  9. package/dist/gateway/static/root/assets/{agents-admin-api-DLnmdC1h.js → agents-admin-api-u5c3GREg.js} +1 -1
  10. package/dist/gateway/static/root/assets/{api-Boc-CVh7.js → api-C3Tp9MkF.js} +1 -1
  11. package/dist/gateway/static/root/assets/{api-bL7sxjAF.js → api-CRT9ZyH0.js} +1 -1
  12. package/dist/gateway/static/root/assets/{app-management-settings-panel-jIG5i7KE.js → app-management-settings-panel-C8yc3yHG.js} +1 -1
  13. package/dist/gateway/static/root/assets/{appearance-settings-BnaQW9Xd.js → appearance-settings-BELgtR3O.js} +1 -1
  14. package/dist/gateway/static/root/assets/{apps-page-C2WKUwtN.js → apps-page-vgS1CHDj.js} +1 -1
  15. package/dist/gateway/static/root/assets/{archive-plugin-DjboG3kA.js → archive-plugin-BCQnOkV8.js} +1 -1
  16. package/dist/gateway/static/root/assets/{automation-api-CZqL9l_d.js → automation-api-hRsGx-qe.js} +1 -1
  17. package/dist/gateway/static/root/assets/{automation-result-state-DRd-X_Ai.js → automation-result-state-CMfVTv_i.js} +1 -1
  18. package/dist/gateway/static/root/assets/{automation-task-card-wbnR5i6N.js → automation-task-card-MnzgyTVA.js} +1 -1
  19. package/dist/gateway/static/root/assets/{automations-page-HyBQIfmn.js → automations-page-CdIPdwF0.js} +1 -1
  20. package/dist/gateway/static/root/assets/{automations-workspace-D6cTOKr7.js → automations-workspace-C3xZLafX.js} +2 -2
  21. package/dist/gateway/static/root/assets/{binary-plugins-Bg8ARZUH.js → binary-plugins-CIB5cbvQ.js} +1 -1
  22. package/dist/gateway/static/root/assets/{block-editor-DKohqFAW.js → block-editor-BQtTLe6Q.js} +1 -1
  23. package/dist/gateway/static/root/assets/{browser-automation-inputs-YeibTzw4.js → browser-automation-inputs-DeraGZ1y.js} +1 -1
  24. package/dist/gateway/static/root/assets/{browser-automations-page-BWNcbuz2.js → browser-automations-page-SpPzRNqU.js} +1 -1
  25. package/dist/gateway/static/root/assets/{browser-control-api-CDeuxy2x.js → browser-control-api-CbbPvhHR.js} +1 -1
  26. package/dist/gateway/static/root/assets/{browser-settings-page-L0nBjfhG.js → browser-settings-page-BD1uF_Nb.js} +1 -1
  27. package/dist/gateway/static/root/assets/{capabilities-aT-QjNTl.js → capabilities-BGE6hiUE.js} +1 -1
  28. package/dist/gateway/static/root/assets/{capabilities-BcQa8c9n.js → capabilities-DLMuj21P.js} +1 -1
  29. package/dist/gateway/static/root/assets/{capabilities-page-DlpuHdHi.js → capabilities-page-Bda4mSdf.js} +2 -2
  30. package/dist/gateway/static/root/assets/{capabilities-settings-panel-pvqkN2-2.js → capabilities-settings-panel-B2B7no22.js} +2 -2
  31. package/dist/gateway/static/root/assets/{channels-BUPtawh6.js → channels-NtsjZThx.js} +1 -1
  32. package/dist/gateway/static/root/assets/{chat-agents-api-B8JO6Tcj.js → chat-agents-api-D8YS5amE.js} +1 -1
  33. package/dist/gateway/static/root/assets/{chat-chart-block-DRtuFfF1.js → chat-chart-block-DCzUECct.js} +1 -1
  34. package/dist/gateway/static/root/assets/chat-page-BnOCCAXG.js +72 -0
  35. package/dist/gateway/static/root/assets/{chat-terminal-dock-Dkqq5FSL.js → chat-terminal-dock-Dl-OTkJI.js} +1 -1
  36. package/dist/gateway/static/root/assets/{command-palette-api-qujvNqkK.js → command-palette-api-Dijix7V6.js} +1 -1
  37. package/dist/gateway/static/root/assets/{composer-payload-handoff-CYIhcczq.js → composer-payload-handoff-CQc-VTaL.js} +1 -1
  38. package/dist/gateway/static/root/assets/{computer-settings-page-8q4hRmoo.js → computer-settings-page-B-lGMimW.js} +1 -1
  39. package/dist/gateway/static/root/assets/connected-providers-grid-CcXe9kz5.js +1 -0
  40. package/dist/gateway/static/root/assets/{connector-service-page-DQaTI21R.js → connector-service-page-C8InhrMt.js} +1 -1
  41. package/dist/gateway/static/root/assets/{connectors-api-BjypBp2g.js → connectors-api-DEJU8mgn.js} +1 -1
  42. package/dist/gateway/static/root/assets/{connectors-page-Lf1ZzaVn.js → connectors-page-Ci0L2How.js} +1 -1
  43. package/dist/gateway/static/root/assets/{date-picker-D_PSHGpe.js → date-picker-kqic8j73.js} +1 -1
  44. package/dist/gateway/static/root/assets/{dependency-picker-UqKVJ9dv.js → dependency-picker-cbC6-2Ya.js} +1 -1
  45. package/dist/gateway/static/root/assets/{desktop-pet-1Et9VqkM.js → desktop-pet-DFNehTtd.js} +1 -1
  46. package/dist/gateway/static/root/assets/{desktop-pet-narrative-rADKU0FX.js → desktop-pet-narrative-ChwjpnsG.js} +1 -1
  47. package/dist/gateway/static/root/assets/{desktop-pet-settings-0fCGgaG7.js → desktop-pet-settings-BDS7_tQ_.js} +1 -1
  48. package/dist/gateway/static/root/assets/{dev-view-store-TTj_djD8.js → dev-view-store-CeZZLOc6.js} +1 -1
  49. package/dist/gateway/static/root/assets/{device-pairing-wizard-ByEL5lvM.js → device-pairing-wizard-_3BJFWVQ.js} +1 -1
  50. package/dist/gateway/static/root/assets/{directory-picker-path-field-C07a7wYX.js → directory-picker-path-field-Di0h3ws4.js} +1 -1
  51. package/dist/gateway/static/root/assets/{discussion-annotation-sync-BFqKm9ky.js → discussion-annotation-sync-ClKEyXmN.js} +1 -1
  52. package/dist/gateway/static/root/assets/{extension-debug-page-DFaVlqas.js → extension-debug-page-DwB5KMGk.js} +1 -1
  53. package/dist/gateway/static/root/assets/{extension-iframe-host-BfzPfXBq.js → extension-iframe-host-Cqg1K70e.js} +1 -1
  54. package/dist/gateway/static/root/assets/{extension-marketplace-api-ow0K1Y4_.js → extension-marketplace-api-DRBszrCR.js} +1 -1
  55. package/dist/gateway/static/root/assets/{extension-page-CrDADV5W.js → extension-page-DyrQtG82.js} +1 -1
  56. package/dist/gateway/static/root/assets/{extension-provider-mnRoa63o.js → extension-provider-C_uKqJxP.js} +1 -1
  57. package/dist/gateway/static/root/assets/{extension-settings-page-BLl02GFY.js → extension-settings-page-BAMQHzkX.js} +1 -1
  58. package/dist/gateway/static/root/assets/{file-preview-surface-TGdKqhCf.js → file-preview-surface-DfkXvFnc.js} +1 -1
  59. package/dist/gateway/static/root/assets/{gateway-config-swr-DfPQIHOL.js → gateway-config-swr-BOCt_zOo.js} +1 -1
  60. package/dist/gateway/static/root/assets/{gateway-realtime-67vWg_M2.js → gateway-realtime-BL_Cf0OQ.js} +1 -1
  61. package/dist/gateway/static/root/assets/gateway-realtime-store-BHBOPF_q.js +1 -0
  62. package/dist/gateway/static/root/assets/{gateway-restart-CLtR2wkL.js → gateway-restart-CHf8qY7H.js} +1 -1
  63. package/dist/gateway/static/root/assets/{gateway-settings-COvC3r-l.js → gateway-settings-uAboiElC.js} +1 -1
  64. package/dist/gateway/static/root/assets/{gateway-startup-retry-9YQllbw2.js → gateway-startup-retry-CvkJYurV.js} +1 -1
  65. package/dist/gateway/static/root/assets/{global-defaults-api-DYMRjGvd.js → global-defaults-api-BWMbKu72.js} +1 -1
  66. package/dist/gateway/static/root/assets/{home-page-k9LFXcVa.js → home-page-D6pCBY1V.js} +2 -2
  67. package/dist/gateway/static/root/assets/{image-generation-api-Dzydfvy8.js → image-generation-api-CQxZSTWA.js} +1 -1
  68. package/dist/gateway/static/root/assets/{imports-page-Csd_YZXZ.js → imports-page-C90644id.js} +1 -1
  69. package/dist/gateway/static/root/assets/index-Cc41XQid.css +1 -0
  70. package/dist/gateway/static/root/assets/{index-DKW7BeT_.js → index-CnOYR6jq.js} +5 -5
  71. package/dist/gateway/static/root/assets/{install-connector-dialog-CTQAKTPv.js → install-connector-dialog-BuNXON0P.js} +1 -1
  72. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-B201bMIa.js → keyboard-shortcuts-settings-CbeubKe1.js} +1 -1
  73. package/dist/gateway/static/root/assets/{local-app-workbench-page-CD_8_gd_.js → local-app-workbench-page-CP-BkbB6.js} +1 -1
  74. package/dist/gateway/static/root/assets/{local-apps-page-BOwqNH0L.js → local-apps-page-C6zFgwkr.js} +1 -1
  75. package/dist/gateway/static/root/assets/{local-session-drafts-DjmK-SM9.js → local-session-drafts-BJ1B1dQ7.js} +1 -1
  76. package/dist/gateway/static/root/assets/{locale-store-Bg_XR36n.js → locale-store-Br7IfbXK.js} +1 -1
  77. package/dist/gateway/static/root/assets/{logs-page-gw3E9CMQ.js → logs-page-CpVCvAWE.js} +1 -1
  78. package/dist/gateway/static/root/assets/{management-settings-t_Z2mCyw.js → management-settings-I-pXv4ML.js} +1 -1
  79. package/dist/gateway/static/root/assets/{markdown-view-BUpXJUPv.js → markdown-view-DrVAMlwc.js} +1 -1
  80. package/dist/gateway/static/root/assets/{media-plugins-_shnaEMY.js → media-plugins-Ba6vUE4J.js} +1 -1
  81. package/dist/gateway/static/root/assets/messages-ByFlEbsu.js +3 -0
  82. package/dist/gateway/static/root/assets/{model-selector-a7PIT1Lk.js → model-selector-CXcxc30J.js} +1 -1
  83. package/dist/gateway/static/root/assets/{models-hub-cache-KOJC3z6Q.js → models-hub-cache-Bd-fYUrV.js} +1 -1
  84. package/dist/gateway/static/root/assets/{note-detail-panel-BsHYUFgk.js → note-detail-panel-CbpLXAVh.js} +3 -3
  85. package/dist/gateway/static/root/assets/note-image-lightbox-cLGiF8oU.js +1 -0
  86. package/dist/gateway/static/root/assets/{notes-api-BSmikUKI.js → notes-api-CUlhTRv0.js} +1 -1
  87. package/dist/gateway/static/root/assets/{notes-page-CA0NRL8O.js → notes-page-eoKX85K5.js} +1 -1
  88. package/dist/gateway/static/root/assets/{oauth-api-D2t9HXoC.js → oauth-api-DMMdeaNd.js} +1 -1
  89. package/dist/gateway/static/root/assets/{oauth-provider-connect-DGGGGtcB.js → oauth-provider-connect-C8BXow79.js} +1 -1
  90. package/dist/gateway/static/root/assets/{page-context-capture-button-BH54VO0V.js → page-context-capture-button-CBFK41OS.js} +1 -1
  91. package/dist/gateway/static/root/assets/{page-context-draft-BS5y8Cx9.js → page-context-draft-LF33STHC.js} +1 -1
  92. package/dist/gateway/static/root/assets/page-header-store-Du44NIEJ.js +1 -0
  93. package/dist/gateway/static/root/assets/{personal-avatar-D8DtpDTa.js → personal-avatar-D6CzIIfo.js} +1 -1
  94. package/dist/gateway/static/root/assets/{personal-page-KJezmTKP.js → personal-page-CXR1Gy0x.js} +1 -1
  95. package/dist/gateway/static/root/assets/{personal-settings-panel-9uDaNJy5.js → personal-settings-panel-DnYapLo7.js} +1 -1
  96. package/dist/gateway/static/root/assets/{phone-dependencies-card-DLYrI0C4.js → phone-dependencies-card-DBiKtzwz.js} +1 -1
  97. package/dist/gateway/static/root/assets/{phone-model-picker-BbA2iI-3.js → phone-model-picker-BmSxEr7M.js} +1 -1
  98. package/dist/gateway/static/root/assets/{phone-settings-page-Cg_BPss4.js → phone-settings-page-vg65qilc.js} +1 -1
  99. package/dist/gateway/static/root/assets/{phone-workspace-store-CVDk80Bf.js → phone-workspace-store-SN7hfddU.js} +1 -1
  100. package/dist/gateway/static/root/assets/{plugin-details-dialog-DgibLkc3.js → plugin-details-dialog-B3Hn2cbx.js} +1 -1
  101. package/dist/gateway/static/root/assets/{preference-select-fields-BVoN-lAv.js → preference-select-fields-Cu_ZC9Up.js} +1 -1
  102. package/dist/gateway/static/root/assets/{product-automation-feedback-DCo90zGh.js → product-automation-feedback-Tn2dUJWM.js} +1 -1
  103. package/dist/gateway/static/root/assets/{product-open-page-OWl8IAoY.js → product-open-page-Nf-Oqf1h.js} +1 -1
  104. package/dist/gateway/static/root/assets/{product-preview-content-Cjas7UNe.js → product-preview-content-D6NwUm3A.js} +1 -1
  105. package/dist/gateway/static/root/assets/{product-preview-modal-CPWRvBI9.js → product-preview-modal-BfNcGgXA.js} +2 -2
  106. package/dist/gateway/static/root/assets/{project-detail-page-B_HlZux_.js → project-detail-page-Ch-ZMyTu.js} +1 -1
  107. package/dist/gateway/static/root/assets/{project-understanding-Ba02SFzB.js → project-understanding-B1BK7Ixi.js} +1 -1
  108. package/dist/gateway/static/root/assets/{projects-page-CdfKjp95.js → projects-page-B7cetxao.js} +1 -1
  109. package/dist/gateway/static/root/assets/{providers-api-rwQ4LWzr.js → providers-api-DOnNfkwQ.js} +1 -1
  110. package/dist/gateway/static/root/assets/{recording-upload-BSmvRrZQ.js → recording-upload-RAhaLUcQ.js} +1 -1
  111. package/dist/gateway/static/root/assets/{registry-api-Vy7LfH6E.js → registry-api-DFDvOTg4.js} +1 -1
  112. package/dist/gateway/static/root/assets/{remote-access-hub-UXrnpGev.js → remote-access-hub-DWsOWetc.js} +1 -1
  113. package/dist/gateway/static/root/assets/{resource-unavailable-f9OzSi4W.js → resource-unavailable-TQcRCpAg.js} +1 -1
  114. package/dist/gateway/static/root/assets/{route-preload-BtObM-co.js → route-preload-Zc5Z3fNv.js} +2 -2
  115. package/dist/gateway/static/root/assets/{runtime-tools-api-Bt8t37z5.js → runtime-tools-api-9o3Wfji1.js} +1 -1
  116. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DU4UXnBm.js → runtime-tools-settings-panel-BGiXeHF5.js} +1 -1
  117. package/dist/gateway/static/root/assets/{service-recommendation-list-CuYsRcBB.js → service-recommendation-list-BEnNx0u7.js} +1 -1
  118. package/dist/gateway/static/root/assets/{session-api-DJI9eSgw.js → session-api-Bs3r_d2_.js} +1 -1
  119. package/dist/gateway/static/root/assets/{session-manager-CtKgACGl.js → session-manager-ChUtTAoG.js} +1 -1
  120. package/dist/gateway/static/root/assets/{sessions-page-BAsKzRHt.js → sessions-page-Bt52kBvJ.js} +1 -1
  121. package/dist/gateway/static/root/assets/settings-advanced-gate-BI4DMz4_.js +1 -0
  122. package/dist/gateway/static/root/assets/{settings-advanced-section-BxUuF_yi.js → settings-advanced-section-CURRjsLK.js} +1 -1
  123. package/dist/gateway/static/root/assets/{settings-mode-store-CaoRh2gt.js → settings-mode-store-CiRpsdTJ.js} +1 -1
  124. package/dist/gateway/static/root/assets/{settings-page-qQ8-6dJ_.js → settings-page-GtsbT6as.js} +1 -1
  125. package/dist/gateway/static/root/assets/{settings-page-header-CyUHrn7c.js → settings-page-header-DBL0_u0Z.js} +1 -1
  126. package/dist/gateway/static/root/assets/{settings-page-layout-DGVqXrlp.js → settings-page-layout-IAvpbz4A.js} +1 -1
  127. package/dist/gateway/static/root/assets/{setup-status-panel-BpaPb625.js → setup-status-panel-A6uMpGRy.js} +1 -1
  128. package/dist/gateway/static/root/assets/{share-link-dialog-CQJ6Ykm2.js → share-link-dialog-D1otGSXD.js} +1 -1
  129. package/dist/gateway/static/root/assets/{share-preview-page-Cem96FbB.js → share-preview-page-L9KYu8M7.js} +1 -1
  130. package/dist/gateway/static/root/assets/{shares-api-Dowes16l.js → shares-api-D8Q-m46d.js} +1 -1
  131. package/dist/gateway/static/root/assets/{shares-settings-DZEkZDR0.js → shares-settings-Bmfadz8A.js} +1 -1
  132. package/dist/gateway/static/root/assets/{skill-api-D8ZwFEVe.js → skill-api-uKU4sRiv.js} +1 -1
  133. package/dist/gateway/static/root/assets/{skill-list-api-B4gp00-f.js → skill-list-api-BzKzG-xG.js} +1 -1
  134. package/dist/gateway/static/root/assets/{skill-reload-api-ClmaaDXo.js → skill-reload-api-DkUXekcd.js} +1 -1
  135. package/dist/gateway/static/root/assets/{skills-page-CV0X9rvG.js → skills-page-BZklXTX9.js} +1 -1
  136. package/dist/gateway/static/root/assets/{system-settings-panel-D095uacX.js → system-settings-panel-CsvcFoaJ.js} +1 -1
  137. package/dist/gateway/static/root/assets/task-detail-page-SjZGW1Dx.js +2 -0
  138. package/dist/gateway/static/root/assets/{task-result-evidence-LUrJlUhb.js → task-result-evidence-B8xUiwW3.js} +1 -1
  139. package/dist/gateway/static/root/assets/{terminal-panel-store-BqEDB1Vl.js → terminal-panel-store-DJVC7HqA.js} +1 -1
  140. package/dist/gateway/static/root/assets/{theme-store-gAcojLgP.js → theme-store-Dlnmgryi.js} +1 -1
  141. package/dist/gateway/static/root/assets/tool-friendly-title-DcCc6g7o.js +1 -0
  142. package/dist/gateway/static/root/assets/{tracing-settings-page-B1ZRh-Is.js → tracing-settings-page-MvG4SH64.js} +1 -1
  143. package/dist/gateway/static/root/assets/{tunnel-api-C9u9E3UQ.js → tunnel-api-BB7u79ID.js} +1 -1
  144. package/dist/gateway/static/root/assets/{understanding-activity-store-BTrzsR6_.js → understanding-activity-store-C4bblRnQ.js} +1 -1
  145. package/dist/gateway/static/root/assets/{understanding-refresh-store-5Qava3jh.js → understanding-refresh-store-BvCj9-Ue.js} +1 -1
  146. package/dist/gateway/static/root/assets/{usage-page-DFMLYKAc.js → usage-page-Cv4Je5XJ.js} +1 -1
  147. package/dist/gateway/static/root/assets/{use-autosave-3O-X7x15.js → use-autosave-YHxQ-UZg.js} +1 -1
  148. package/dist/gateway/static/root/assets/{use-composer-attachments-BLc4dBfe.js → use-composer-attachments-vDdxHtUb.js} +1 -1
  149. package/dist/gateway/static/root/assets/{use-file-preview-expanded-BaOmTXsT.js → use-file-preview-expanded-Ce2mgYme.js} +2 -2
  150. package/dist/gateway/static/root/assets/{use-personal-profile-MusPgljM.js → use-personal-profile-D2Un8G1L.js} +1 -1
  151. package/dist/gateway/static/root/assets/{use-workspace-tree-Ck_U2yTw.js → use-workspace-tree-BQEiJzK7.js} +1 -1
  152. package/dist/gateway/static/root/assets/{user-model-page-Den5Lg-k.js → user-model-page-DRSsn4EV.js} +1 -1
  153. package/dist/gateway/static/root/assets/{voice-api-key-field-C5zJApoa.js → voice-api-key-field-DCM69u8Y.js} +1 -1
  154. package/dist/gateway/static/root/assets/{voice-config-api-DC1bYDt1.js → voice-config-api-CrULrSKC.js} +1 -1
  155. package/dist/gateway/static/root/assets/{voice-input-shortcut-events-0SZjJdVV.js → voice-input-shortcut-events-DFMNIyy4.js} +1 -1
  156. package/dist/gateway/static/root/assets/{voice-transcribe-api-CxVeANPX.js → voice-transcribe-api-Bbyj0yGR.js} +1 -1
  157. package/dist/gateway/static/root/assets/{work-discovery-overlay-DAQ8McVe.js → work-discovery-overlay-CVe9UmFl.js} +1 -1
  158. package/dist/gateway/static/root/assets/{work-discovery-page-DUQysEyb.js → work-discovery-page-CtqkRMN5.js} +1 -1
  159. package/dist/gateway/static/root/assets/{working-directory-picker-modal-BO9qdJyZ.js → working-directory-picker-modal-CDZ1xh3o.js} +1 -1
  160. package/dist/gateway/static/root/assets/{workspace-api-ZrN6yUER.js → workspace-api-tbifz2zY.js} +2 -2
  161. package/dist/gateway/static/root/assets/workspace-editor-agent-store-4cZ26iaD.js +1 -0
  162. package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-Yj_kBWSb.js → workspace-file-preview-dialog-BubQwQwU.js} +1 -1
  163. package/dist/gateway/static/root/assets/{workspace-open-location-menu-yxT7wajO.js → workspace-open-location-menu-DZk3MBSa.js} +1 -1
  164. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-IcH9KDzx.js → xopc-cloud-account-card-CIavPUr3.js} +1 -1
  165. package/dist/gateway/static/root/index.html +81 -81
  166. package/dist/package.js +1 -1
  167. package/dist/src/cli/commands/backup.js +1 -1
  168. package/dist/src/config/models-json.d.ts +12 -0
  169. package/dist/src/gateway/global-defaults-admin.js +1 -1
  170. package/dist/src/gateway/hono/routes/phone-setup.js +12 -7
  171. package/dist/src/gateway/hono/routes/phone.js +2 -4
  172. package/dist/src/gateway/service.js +4 -4
  173. package/dist/src/gateway/xopc-cloud-capability-setup.js +9 -1
  174. package/dist/src/home-intelligence/host.js +2 -2
  175. package/dist/src/phone/cloud-adb-connection.js +8 -5
  176. package/dist/src/phone/contracts.d.ts +4 -0
  177. package/dist/src/phone/contracts.js +6 -1
  178. package/dist/src/phone/gui-protocol.d.ts +7 -0
  179. package/dist/src/phone/gui-protocol.js +302 -0
  180. package/dist/src/phone/model-adapter.d.ts +1 -1
  181. package/dist/src/phone/model-adapter.js +7 -4
  182. package/dist/src/phone/runtime.js +8 -2
  183. package/dist/src/phone/ui-dump-binary.d.ts +1 -1
  184. package/dist/src/phone/ui-dump-binary.js +1 -1
  185. package/dist/src/phone/ui-session.d.ts +2 -0
  186. package/dist/src/phone/ui-session.js +23 -4
  187. package/dist/src/providers/env-keys.js +2 -0
  188. package/dist/src/providers/index.js +11 -0
  189. package/dist/src/providers/model-catalog-types.d.ts +1 -1
  190. package/dist/src/providers/model-supplements.d.ts +1 -1
  191. package/dist/src/providers/model-supplements.js +6 -3
  192. package/dist/src/providers/phone-models.d.ts +3 -0
  193. package/dist/src/providers/phone-models.js +33 -0
  194. package/dist/src/providers/presentation.js +0 -1
  195. package/dist/src/tui/tui.js +1 -1
  196. package/dist/src/voice/platform-catalog.d.ts +1 -1
  197. package/package.json +1 -1
  198. package/dist/gateway/static/root/assets/chat-page-BP0huA-W.js +0 -72
  199. package/dist/gateway/static/root/assets/connected-providers-grid-CKZfhHSD.js +0 -1
  200. package/dist/gateway/static/root/assets/gateway-realtime-store-Bkt1z-xo.js +0 -1
  201. package/dist/gateway/static/root/assets/index-CpwPxKQ8.css +0 -1
  202. package/dist/gateway/static/root/assets/messages-DG4HLOER.js +0 -3
  203. package/dist/gateway/static/root/assets/note-image-lightbox-B-bEtjhj.js +0 -1
  204. package/dist/gateway/static/root/assets/page-header-store-BdZnUh-D.js +0 -1
  205. package/dist/gateway/static/root/assets/settings-advanced-gate-CjAFqg2U.js +0 -1
  206. package/dist/gateway/static/root/assets/task-detail-page-CY2C4AM2.js +0 -2
  207. package/dist/gateway/static/root/assets/tool-friendly-title-o6sxGVUu.js +0 -1
  208. package/dist/gateway/static/root/assets/workspace-editor-agent-store-Bo5dwoWP.js +0 -1
@@ -1 +0,0 @@
1
- import"./notes-api-BSmikUKI.js";
@@ -1 +0,0 @@
1
- import{p as e}from"./locale-store-Bg_XR36n.js";var t={startExtra:null,main:null,end:null},n=e(e=>({...t,setPageHeader:t=>e(t),clearPageHeader:()=>e(t)}));export{n as t};
@@ -1 +0,0 @@
1
- import{n as e}from"./settings-mode-store-CaoRh2gt.js";function t(t){let{children:n,fallback:r}=t,i=r===void 0?null:r;return e()?n:i}export{t};
@@ -1,2 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-aKtaBQYM.js";import{a as t,n,t as r}from"./vendor-react-BOUWij0V.js";import{f as i,m as a,t as o,u as s}from"./chunk-KS7C4IRE-CiwuuyV8.js";import{i as c,l,n as u,o as d}from"./locale-store-Bg_XR36n.js";import{G as f,W as p,t as m,w as h}from"./chat-page-BP0huA-W.js";import{t as g}from"./arrow-left-D880xG-P.js";import{t as _}from"./calendar-clock-D-quYVPe.js";import{n as v,r as y}from"./popover-select-DD8fmrxH.js";import{t as b}from"./circle-check-C23XjkUj.js";import{t as x}from"./circle-x-DFsCKeya.js";import{t as S}from"./circle-BoO4YvTx.js";import{t as C}from"./ellipsis-0k4rZLoy.js";import{t as ee}from"./external-link-DjqjBmc3.js";import{t as te}from"./folder-kanban-CpLlFI1o.js";import{t as w}from"./folder-open-CyzJ19I9.js";import{F as ne,N as T,V as E,z as D}from"./markdown-view-BUpXJUPv.js";import{t as O}from"./message-square-fVE7Ghj1.js";import{t as re}from"./pause-DuPxgSxk.js";import{t as ie}from"./play-kxZvpBg8.js";import{t as ae}from"./x-B_N4OPjy.js";import{t as k}from"./cn-0WouolD0.js";import{t as A}from"./button-CnRSIP6m.js";import{t as j}from"./skeleton-BI5TyibZ.js";import{s as oe}from"./file-preview-surface-TGdKqhCf.js";import{i as se,n as ce,o as M,r as le,s as N,t as ue}from"./dist-DfWfZ9iu.js";import{i as de}from"./vendor-swr-CdRzEUwF.js";import{at as fe,ot as pe}from"./session-manager-CtKgACGl.js";import{c as me}from"./api-Boc-CVh7.js";import{d as he,f as ge,h as _e,m as ve,p as ye,s as be}from"./composer-payload-handoff-CYIhcczq.js";import{C as xe,D as Se,T as Ce,d as we,f as Te,k as Ee,m as De,y as Oe}from"./use-composer-attachments-BLc4dBfe.js";import{t as ke}from"./page-header-store-BdZnUh-D.js";import{t as Ae}from"./agent-avatar-display-YqmwzOSa.js";import{t as je}from"./chat-agents-api-B8JO6Tcj.js";import{t as Me}from"./confirm-dialog-XGclfBqe.js";import{l as Ne,m as Pe,o as Fe,r as P,t as Ie,u as Le}from"./dist-D3lWNSe7.js";import{t as Re}from"./date-picker-D_PSHGpe.js";import{t as ze}from"./automation-api-CZqL9l_d.js";import{n as Be}from"./date-formatters-DukWSVwc.js";import{n as Ve,r as F,t as He}from"./task-result-evidence-LUrJlUhb.js";import{t as Ue}from"./page-context-capture-button-BH54VO0V.js";import{t as We}from"./dependency-picker-UqKVJ9dv.js";var I=n(),L=r();function Ge(e){let t=(0,I.c)(33),{changes:n,language:r}=e,i=r===`zh`,a;t[0]===i?a=t[1]:(a=i?{backlog:`待办池`,ready:`就绪`,active:`进行中`,review:`待验收`,closed:`已关闭`}:{backlog:`Backlog`,ready:`Ready`,active:`Active`,review:`Review`,closed:`Closed`},t[0]=i,t[1]=a);let o=a,s;t[2]===i?s=t[3]:(s=i?{board:`看板`,mobile:`移动端`,api:`手动操作`,runtime:`自动流转`,undo:`撤销`}:{board:`Board`,mobile:`Mobile`,api:`Manual update`,runtime:`Automatic`,undo:`Undo`},t[2]=i,t[3]=s);let c=s,l;t[4]===i?l=t[5]:(l=i?{done:`完成`,cancelled:`取消`,duplicate:`重复`,wont_do:`不做`}:{done:`Done`,cancelled:`Cancelled`,duplicate:`Duplicate`,wont_do:`Won’t do`},t[4]=i,t[5]=l);let u=l,d;t[6]===i?d=t[7]:(d=i?{user:`用户`,agent:`Agent`,system:`系统`,integration:`外部服务`}:{user:`User`,agent:`Agent`,system:`System`,integration:`Integration`},t[6]=i,t[7]=d);let f=d,p=i?`变更记录`:`Change log`,m;t[8]!==n.length||t[9]!==p?(m=(0,L.jsxs)(`summary`,{className:`cursor-pointer text-sm font-semibold text-fg`,children:[p,` (`,n.length,`)`]}),t[8]=n.length,t[9]=p,t[10]=m):m=t[10];let h;if(t[11]!==f||t[12]!==n||t[13]!==r||t[14]!==o||t[15]!==u||t[16]!==c){let e;t[18]!==f||t[19]!==r||t[20]!==o||t[21]!==u||t[22]!==c?(e=e=>(0,L.jsxs)(`li`,{className:`text-sm text-fg`,children:[(0,L.jsxs)(`div`,{children:[o[e.fromPhase],e.fromResolution?` · ${u[e.fromResolution]}`:``,` → `,o[e.toPhase],e.toResolution?` · ${u[e.toResolution]}`:``]}),(0,L.jsxs)(`div`,{className:`mt-1 text-xs text-fg-muted`,children:[f[e.actor.kind],e.actor.id?` (${e.actor.id})`:``,` · `,c[e.source],` · `,(0,L.jsx)(`time`,{dateTime:new Date(e.createdAt).toISOString(),children:Be(e.createdAt,r)})]})]},e.id),t[18]=f,t[19]=r,t[20]=o,t[21]=u,t[22]=c,t[23]=e):e=t[23],h=[...n].reverse().map(e),t[11]=f,t[12]=n,t[13]=r,t[14]=o,t[15]=u,t[16]=c,t[17]=h}else h=t[17];let g;t[24]===h?g=t[25]:(g=(0,L.jsx)(`ol`,{className:`mt-3 max-h-80 space-y-3 overflow-y-auto`,children:h}),t[24]=h,t[25]=g);let _;t[26]!==n.length||t[27]!==i?(_=n.length?null:(0,L.jsx)(`p`,{className:`mt-3 text-xs text-fg-muted`,children:i?`暂无阶段变更记录`:`No phase changes yet`}),t[26]=n.length,t[27]=i,t[28]=_):_=t[28];let v;return t[29]!==m||t[30]!==g||t[31]!==_?(v=(0,L.jsxs)(`details`,{className:`rounded-xl border border-edge bg-surface-panel p-4`,children:[m,g,_]}),t[29]=m,t[30]=g,t[31]=_,t[32]=v):v=t[32],v}function Ke(e){let t=(0,I.c)(36),{detail:n,language:r,onUpdated:i}=e,a=r===`zh`,s;t[0]===n.waits?s=t[1]:(s=n.waits.find(Ye),t[0]=n.waits,t[1]=s);let c=s,l,u,d,f,p,m,h;if(t[2]!==n||t[3]!==r||t[4]!==i||t[5]!==c||t[6]!==a){l=n.allowedCommands.includes(`resolve_wait`)&&!c?n.waits.filter(Je):[];let e=l.length>0||n.attention.some(qe),s;t[14]===n?s=t[15]:(s=ge(n),t[14]=n,t[15]=s);let g=s,_=n.runs.some(R);d=c?.reason??n.waits[0]?.reason??(n.task.phase===`closed`?a?`任务已关闭,可查看交付物与执行结果。`:`The task is closed. Review its deliverables and results.`:n.task.phase===`review`?a?`请检查交付物与验收项,通过后确认完成。`:`Review the deliverables and acceptance criteria before completing the task.`:_?a?`Agent 正在执行任务,无需你操作。`:`The agent is working. No action is needed from you.`:g?.summary??(a?`任务尚未开始,可开始执行或设置执行时间。`:`Start the task or set an execution time.`)),u=n.attention.length>0?(0,L.jsx)(`ul`,{className:`mt-3 space-y-3`,children:n.attention.map((e,t)=>{let i=l.some(t=>e.kind===`input_required`&&t.kind===`user_input`||e.kind===`approval_required`&&t.kind===`approval`);return(0,L.jsxs)(`li`,{className:`text-sm leading-6 text-fg-muted`,children:[(0,L.jsx)(F,{content:e.summary,contentKey:`${n.task.id}:attention:${e.kind}:${t}`,language:r,markdown:!1,previewHeight:72}),!i&&(e.kind===`input_required`||e.kind===`approval_required`)?(0,L.jsx)(o,{className:`mt-2 inline-flex min-h-11 items-center rounded-lg bg-accent-soft px-3 font-medium text-accent-fg`,to:T(n.task.id),children:a?e.kind===`approval_required`?`查看并决定`:`补充信息`:e.kind===`approval_required`?`Review decision`:`Provide information`}):null]},`${e.kind}-${t}`)})}):null,f=a?`当前需要处理`:`Current action`,p=`rounded-xl border border-edge bg-surface-panel p-4`;let v=e?a?`需要你处理`:`Your action needed`:a?`当前进展`:`Current progress`,y=l.length>1?` · ${l.length}`:``;t[16]!==v||t[17]!==y?(m=(0,L.jsxs)(`h2`,{className:`text-sm font-semibold text-fg`,children:[v,y]}),t[16]=v,t[17]=y,t[18]=m):m=t[18];let b;t[19]!==n||t[20]!==i||t[21]!==a?(b=e=>(0,L.jsx)(Ve,{wait:e,detail:n,zh:a,onUpdated:i},e.id),t[19]=n,t[20]=i,t[21]=a,t[22]=b):b=t[22],h=l.map(b),t[2]=n,t[3]=r,t[4]=i,t[5]=c,t[6]=a,t[7]=l,t[8]=u,t[9]=d,t[10]=f,t[11]=p,t[12]=m,t[13]=h}else l=t[7],u=t[8],d=t[9],f=t[10],p=t[11],m=t[12],h=t[13];let g;t[23]!==l.length||t[24]!==u||t[25]!==n.task||t[26]!==r||t[27]!==d||t[28]!==a?(g=l.length>0?u?(0,L.jsxs)(`details`,{className:`mt-3`,children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-xs text-fg-muted`,children:a?`等待详情`:`Waiting details`}),u]}):null:u??(0,L.jsx)(F,{content:d,contentKey:`${n.task.id}:current-progress`,language:r,markdown:!1,previewHeight:72,className:`mt-2 text-sm leading-6 text-fg-muted`}),t[23]=l.length,t[24]=u,t[25]=n.task,t[26]=r,t[27]=d,t[28]=a,t[29]=g):g=t[29];let _;return t[30]!==f||t[31]!==p||t[32]!==m||t[33]!==h||t[34]!==g?(_=(0,L.jsxs)(`section`,{"aria-label":f,className:p,children:[m,h,g]}),t[30]=f,t[31]=p,t[32]=m,t[33]=h,t[34]=g,t[35]=_):_=t[35],_}function R(e){return!e.parentRunId&&[`queued`,`running`,`waiting`,`verifying`].includes(e.status)}function qe(e){return e.kind===`input_required`||e.kind===`approval_required`}function Je(e){return(e.kind===`user_input`||e.kind===`approval`&&typeof e.condition.capability==`string`)&&e.condition.type!==`connection`}function Ye(e){return e.kind===`paused`}var z=e(t(),1);function Xe(e){let t=(0,I.c)(17),{children:n,contentKey:r,language:i,className:o}=e,s=(0,z.useId)(),c=z.Children.toArray(n),[l,u]=a(),d;t[0]!==r||t[1]!==l?(d=l.getAll(`taskExpanded`).includes(r),t[0]=r,t[1]=l,t[2]=d):d=t[2];let f=d,p=f?c:c.slice(0,3),m;t[3]!==s||t[4]!==p?(m=(0,L.jsx)(`ul`,{id:s,className:`space-y-1.5`,children:p}),t[3]=s,t[4]=p,t[5]=m):m=t[5];let h;t[6]!==r||t[7]!==f||t[8]!==s||t[9]!==c.length||t[10]!==i||t[11]!==u?(h=c.length>3?(0,L.jsx)(`button`,{type:`button`,"aria-expanded":f,"aria-controls":s,className:`mt-2 min-h-9 rounded-sm text-xs font-medium text-accent hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent/40`,onClick:()=>u(e=>{let t=new URLSearchParams(e),n=t.getAll(`taskExpanded`).filter(e=>e!==r);return t.delete(`taskExpanded`),n.forEach(e=>t.append(`taskExpanded`,e)),f||t.append(`taskExpanded`,r),t},{preventScrollReset:!0}),children:i===`zh`?f?`收起`:`查看全部(${c.length})`:f?`Show less`:`Show all (${c.length})`}):null,t[6]=r,t[7]=f,t[8]=s,t[9]=c.length,t[10]=i,t[11]=u,t[12]=h):h=t[12];let g;return t[13]!==o||t[14]!==m||t[15]!==h?(g=(0,L.jsxs)(`div`,{className:o,children:[m,h]}),t[13]=o,t[14]=m,t[15]=h,t[16]=g):g=t[16],g}function Ze({taskId:e}){let t=l(e=>e.conversationId),n=u(e=>e.language),[r,i]=(0,z.useState)(``),[a,o]=(0,z.useState)(null),[s,f]=(0,z.useState)(!1),[p,m]=(0,z.useState)(!1),[h,g]=(0,z.useState)([]),[_,v]=(0,z.useState)(null),y=c(`/api/tasks/${encodeURIComponent(e)}/collaboration`),{data:b,error:x,mutate:S}=de([`task-collaboration`,e,t],()=>d(`${y}?recent=1`),{revalidateOnFocus:!0}),C=[...new Map([...h,...b?.items??[]].map(e=>[e.id,e])).values()].sort((e,t)=>e.sequence-t.sequence),ee=async()=>{let e=C[0];if(!(!e||p)){m(!0);try{let t=await d(`${y}?recent=1&beforeSequence=${e.sequence}`);g(e=>[...t.items,...e])}catch(e){v(e instanceof Error?e.message:String(e))}finally{m(!1)}}};(0,z.useEffect)(()=>{let t=t=>{let n=t.detail;(!n?.taskId||n.taskId===e)&&S()};return window.addEventListener(`task-collaboration-entry-added`,t),window.addEventListener(`gateway-realtime-connected`,t),()=>{window.removeEventListener(`task-collaboration-entry-added`,t),window.removeEventListener(`gateway-realtime-connected`,t)}},[S,e]);let te=async()=>{if(!(!r.trim()||s)){f(!0),v(null);try{await d(y,{method:`POST`,headers:{"idempotency-key":crypto.randomUUID()},body:JSON.stringify({kind:a?`answer`:`instruction`,body:r.trim(),...a?{causationId:a}:{}})}),i(``),o(null),await S()}catch(e){v(e instanceof Error?e.message:String(e))}finally{f(!1)}}};return(0,L.jsxs)(`section`,{className:`rounded-xl border border-edge bg-surface-panel p-4`,children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:n===`zh`?`任务留言`:`Task updates`}),(0,L.jsxs)(`div`,{className:`mt-3 max-h-64 space-y-2 overflow-y-auto`,children:[!b&&!x?(0,L.jsxs)(`div`,{"aria-busy":`true`,className:`space-y-2`,children:[(0,L.jsx)(j,{className:`h-14 w-full`}),(0,L.jsx)(j,{className:`h-14 w-4/5`})]}):null,x?(0,L.jsx)(`p`,{role:`status`,className:`text-xs text-fg-muted`,children:n===`zh`?`暂时无法读取留言`:`Updates unavailable`}):null,C[0]&&C[0].sequence>1?(0,L.jsx)(`button`,{type:`button`,disabled:p,onClick:()=>void ee(),className:`text-xs text-accent hover:underline disabled:opacity-50`,children:n===`zh`?`查看更早留言`:`Earlier updates`}):null,C.map(t=>(0,L.jsxs)(`div`,{className:`rounded-lg bg-surface-base px-3 py-2 text-sm`,children:[(0,L.jsxs)(`div`,{className:`flex items-center gap-2 text-xs text-fg-subtle`,children:[(0,L.jsx)(`span`,{children:t.authorKind===`worker_agent`?n===`zh`?`执行 Agent`:`Worker`:t.authorKind===`main_agent`?n===`zh`?`主 Agent`:`Main Agent`:t.authorKind===`system`?n===`zh`?`系统`:`System`:n===`zh`?`用户`:`You`}),(0,L.jsxs)(`span`,{children:[`· `,t.kind]}),t.deliveryStatus?(0,L.jsxs)(`span`,{children:[`· `,t.deliveryStatus]}):null]}),(0,L.jsx)(`div`,{className:`mt-1 min-w-0 text-fg`,"data-task-collaboration-body":!0,children:(0,L.jsx)(F,{content:t.body,contentKey:`${e}:update:${t.id}`,language:n,breaks:!0,previewHeight:120})}),t.kind===`question`&&t.authorKind===`worker_agent`?(0,L.jsx)(`button`,{type:`button`,className:`mt-2 text-xs text-accent hover:underline`,onClick:()=>o(t.id),children:n===`zh`?`回复问题`:`Reply`}):null]},t.id)),b&&!C.length?(0,L.jsx)(`p`,{className:`text-xs text-fg-muted`,children:n===`zh`?`暂无进展留言`:`No updates yet`}):null]}),a?(0,L.jsxs)(`p`,{className:`mt-3 text-xs text-accent`,children:[n===`zh`?`正在回复执行 Agent 的问题`:`Replying to the worker`,(0,L.jsx)(`button`,{type:`button`,className:`ml-2 underline`,onClick:()=>o(null),children:n===`zh`?`取消`:`Cancel`})]}):null,(0,L.jsx)(`textarea`,{value:r,onChange:e=>i(e.target.value),rows:2,"aria-label":n===`zh`?`任务留言`:`Task message`,placeholder:n===`zh`?`给执行 Agent 留言`:`Message the worker`,className:`mt-3 w-full resize-y rounded-lg border border-edge bg-surface-base px-3 py-2 text-sm text-fg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`}),_?(0,L.jsx)(`p`,{role:`alert`,className:`mt-1 text-xs text-danger`,children:_}):null,(0,L.jsx)(`button`,{type:`button`,disabled:!r.trim()||s,onClick:()=>void te(),className:`mt-2 rounded-lg bg-accent px-3 py-2 text-xs font-medium text-white disabled:opacity-50`,children:s?n===`zh`?`发送中`:`Sending`:n===`zh`?`发送`:`Send`})]})}function Qe(e,t,n,r){return!!(e&&t!==e.version&&n!==e.value&&r!==n)}function $e(e,t){let n={...e.task};t.title!==void 0&&(n.title=t.title),t.priority!==void 0&&(n.priority=t.priority);for(let e of[`body`,`projectId`,`milestoneId`,`parentTaskId`,`dueAt`,`ownerId`]){let r=t[e];r!==void 0&&(r===null?delete n[e]:Object.assign(n,{[e]:r}))}return n.version+=1,n.updatedAt=Date.now(),{...e,task:n}}function B(e,t){return(t===`zh`?{backlog:`待规划`,ready:`就绪`,active:`进行中`,review:`待验收`,closed:`已关闭`}:{backlog:`Backlog`,ready:`Ready`,active:`Active`,review:`Review`,closed:`Closed`})[e]}function et(){let e=(0,I.c)(1),t;return e[0]===Symbol.for(`react.memo_cache_sentinel`)?(t=(0,L.jsxs)(`div`,{className:`space-y-4`,"aria-busy":!0,children:[(0,L.jsx)(j,{className:`h-32 rounded-2xl`}),(0,L.jsx)(j,{className:`h-52 rounded-2xl`}),(0,L.jsx)(j,{className:`h-40 rounded-2xl`})]}),e[0]=t):t=e[0],t}function tt(e){if(e===void 0)return``;let t=new Date(e);return new Date(t.getTime()-t.getTimezoneOffset()*6e4).toISOString().slice(0,10)}function nt(e){return e?new Date(`${e}T23:59:59.999`).getTime():null}var rt=[`backlog`,`ready`,`active`,`review`,`closed`],it=[`low`,`normal`,`high`,`critical`],at=(0,z.memo)(function(e){let t=(0,I.c)(20),{value:n,disabled:r,canMove:i,canApprove:a,canReopen:o,language:s,label:c,onChange:l}=e,u;t[0]!==a||t[1]!==i||t[2]!==o||t[3]!==n?(u=e=>e!==n&&!i&&!(e===`closed`?a:n===`closed`&&o),t[0]=a,t[1]=i,t[2]=o,t[3]=n,t[4]=u):u=t[4];let d=u,f;t[5]===c?f=t[6]:(f=(0,L.jsx)(`span`,{children:c}),t[5]=c,t[6]=f);let p;t[7]===l?p=t[8]:(p=e=>l(e.target.value),t[7]=l,t[8]=p);let m;t[9]!==s||t[10]!==d?(m=rt.map(e=>(0,L.jsx)(y,{value:e,disabled:d(e),children:B(e,s)},e)),t[9]=s,t[10]=d,t[11]=m):m=t[11];let h;t[12]!==r||t[13]!==p||t[14]!==m||t[15]!==n?(h=(0,L.jsx)(v,{triggerClassName:`border-0 bg-surface-hover shadow-none focus-visible:ring-2 focus-visible:ring-accent/30`,contentClassName:`border-0`,value:n,disabled:r,onChange:p,children:m}),t[12]=r,t[13]=p,t[14]=m,t[15]=n,t[16]=h):h=t[16];let g;return t[17]!==f||t[18]!==h?(g=(0,L.jsxs)(`label`,{className:`grid gap-1.5 text-xs text-fg-muted`,children:[f,h]}),t[17]=f,t[18]=h,t[19]=g):g=t[19],g}),ot=(0,z.memo)(function(e){let t=(0,I.c)(14),{value:n,disabled:r,label:i,labels:a,onChange:o}=e,s;t[0]===i?s=t[1]:(s=(0,L.jsx)(`span`,{children:i}),t[0]=i,t[1]=s);let c;t[2]===o?c=t[3]:(c=e=>o(e.target.value),t[2]=o,t[3]=c);let l;t[4]===a?l=t[5]:(l=it.map(e=>(0,L.jsx)(y,{value:e,children:a[e]},e)),t[4]=a,t[5]=l);let u;t[6]!==r||t[7]!==c||t[8]!==l||t[9]!==n?(u=(0,L.jsx)(v,{triggerClassName:`border-0 bg-surface-hover shadow-none focus-visible:ring-2 focus-visible:ring-accent/30`,contentClassName:`border-0`,value:n,disabled:r,onChange:c,children:l}),t[6]=r,t[7]=c,t[8]=l,t[9]=n,t[10]=u):u=t[10];let d;return t[11]!==s||t[12]!==u?(d=(0,L.jsxs)(`label`,{className:`grid gap-1.5 text-xs text-fg-muted`,children:[s,u]}),t[11]=s,t[12]=u,t[13]=d):d=t[13],d}),st=(0,z.memo)(function(e){let t=(0,I.c)(10),{value:n,disabled:r,label:i,onChange:a}=e,o;t[0]===i?o=t[1]:(o=(0,L.jsx)(`span`,{children:i}),t[0]=i,t[1]=o);let s;t[2]!==r||t[3]!==i||t[4]!==a||t[5]!==n?(s=(0,L.jsx)(Re,{disabled:r,value:n,onChange:a,ariaLabel:i}),t[2]=r,t[3]=i,t[4]=a,t[5]=n,t[6]=s):s=t[6];let c;return t[7]!==o||t[8]!==s?(c=(0,L.jsxs)(`label`,{className:`grid gap-1.5 text-xs text-fg-muted`,children:[o,s]}),t[7]=o,t[8]=s,t[9]=c):c=t[9],c}),ct=(0,z.memo)(function(e){let t=(0,I.c)(17),{value:n,disabled:r,label:i,unassignedLabel:a,agents:o,onChange:s}=e,c;t[0]===i?c=t[1]:(c=(0,L.jsx)(`span`,{children:i}),t[0]=i,t[1]=c);let l;t[2]===s?l=t[3]:(l=e=>s(e.target.value),t[2]=s,t[3]=l);let u;t[4]===a?u=t[5]:(u=(0,L.jsx)(y,{value:``,disabled:!0,children:a}),t[4]=a,t[5]=u);let d;t[6]===o?d=t[7]:(d=o.map(H),t[6]=o,t[7]=d);let f;t[8]!==r||t[9]!==l||t[10]!==u||t[11]!==d||t[12]!==n?(f=(0,L.jsxs)(v,{triggerClassName:`border-0 bg-surface-hover shadow-none focus-visible:ring-2 focus-visible:ring-accent/30`,contentClassName:`border-0`,value:n,disabled:r,onChange:l,children:[u,d]}),t[8]=r,t[9]=l,t[10]=u,t[11]=d,t[12]=n,t[13]=f):f=t[13];let p;return t[14]!==c||t[15]!==f?(p=(0,L.jsxs)(`label`,{className:`grid gap-1.5 text-xs text-fg-muted`,children:[c,f]}),t[14]=c,t[15]=f,t[16]=p):p=t[16],p}),lt=(0,z.memo)(function(e){let t=(0,I.c)(9),{candidates:n,selected:r,disabled:i,labels:a,getTaskHref:o,onChange:s}=e,c;t[0]===r?c=t[1]:(c=r.map(Ct),t[0]=r,t[1]=c);let l;return t[2]!==n||t[3]!==i||t[4]!==o||t[5]!==a||t[6]!==s||t[7]!==c?(l=(0,L.jsx)(We,{borderless:!0,candidates:n,selectedIds:c,disabled:i,getTaskHref:o,onChange:s,labels:a}),t[2]=n,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=c,t[8]=l):l=t[8],l},(e,t)=>e.disabled===t.disabled&&e.labels===t.labels&&e.getTaskHref===t.getTaskHref&&e.onChange===t.onChange&&e.candidates.length===t.candidates.length&&e.candidates.every((e,n)=>e.id===t.candidates[n]?.id&&e.title===t.candidates[n]?.title)&&e.selected.length===t.selected.length&&e.selected.every((e,n)=>e.id===t.selected[n]?.id&&e.title===t.selected[n]?.title)),ut=`xopc.taskDetail.chatPanelPercent`,dt=42;function ft(e,t){let n=Math.max(30,352/Math.max(t,1)*100),r=Math.min(60,(t-480)/Math.max(t,1)*100);return r<n?dt:Math.min(r,Math.max(n,e))}function pt(){try{let e=Number(window.localStorage.getItem(ut));return Number.isFinite(e)&&e>=30&&e<=60?e:dt}catch{return dt}}function mt(e){let t=(0,I.c)(13),{items:n,empty:r,contentKey:i}=e,a=u(gt);if(n.length===0){let e;return t[0]===r?e=t[1]:(e=(0,L.jsx)(`p`,{className:`text-sm leading-6 text-fg-muted`,children:r}),t[0]=r,t[1]=e),e}let o;t[2]===n?o=t[3]:(o=n.join(`
2
- `),t[2]=n,t[3]=o);let s;t[4]===n?s=t[5]:(s=n.map(ht),t[4]=n,t[5]=s);let c;t[6]===s?c=t[7]:(c=(0,L.jsx)(`ul`,{className:`space-y-2`,children:s}),t[6]=s,t[7]=c);let l;return t[8]!==i||t[9]!==a||t[10]!==o||t[11]!==c?(l=(0,L.jsx)(F,{content:o,contentKey:i,language:a,previewHeight:144,children:c}),t[8]=i,t[9]=a,t[10]=o,t[11]=c,t[12]=l):l=t[12],l}function ht(e){return(0,L.jsxs)(`li`,{className:`flex gap-2 text-sm leading-6 text-fg`,children:[(0,L.jsx)(S,{className:`mt-1 size-4 shrink-0 text-fg-subtle`}),(0,L.jsx)(`span`,{className:`min-w-0 whitespace-pre-wrap break-words [overflow-wrap:anywhere]`,children:e})]},e)}function gt(e){return e.language}function _t({taskId:e,presentation:t,backgroundPath:n,onDeleted:r}){let[i]=a(),c=s(),d=u(e=>e.language),v=l(e=>e.conversationId),y=(0,z.useMemo)(()=>he(d),[d]),ae=ke(e=>e.setPageHeader),j=ke(e=>e.clearPageHeader),se=oe(e=>e.panes),ce=h(e=>e.openForSession),{data:M,error:le,mutate:N,lastChange:ue,conversationLoading:be,conversationError:Re}=p(e),{data:Ve}=de(e?`task-detail-automations`:null,()=>ze.list()),[We,I]=(0,z.useState)(null),[R,qe]=(0,z.useState)(()=>new Set),[Je,Ye]=(0,z.useState)([]),[B,rt]=(0,z.useState)(null),[it,ht]=(0,z.useState)([]),[gt,_t]=(0,z.useState)(!1),[vt,yt]=(0,z.useState)(``),[bt,V]=(0,z.useState)(!1),[xt,St]=(0,z.useState)(``),[H,Ct]=(0,z.useState)(pt),[wt,Tt]=(0,z.useState)(!1),Et=(0,z.useRef)(null),Dt=(0,z.useRef)(null),Ot=(0,z.useRef)(null),kt=(0,z.useRef)(!1),At=(0,z.useRef)(!1),jt=(0,z.useRef)(``),Mt=(0,z.useRef)(null),Nt=(0,z.useRef)(null),Pt=(0,z.useRef)(null),U=(0,z.useRef)(M),[Ft,W]=(0,z.useState)(null),[It,Lt]=(0,z.useState)(null),[Rt,zt]=(0,z.useState)(!1),Bt=(0,z.useMemo)(()=>({link:y.linkDependencies,linked:y.linkedDependencies,searchPlaceholder:y.dependencySearchPlaceholder,noMatches:y.noDependencyMatches,noCandidates:y.noDependencyCandidates,remove:y.removeDependency}),[y.dependencySearchPlaceholder,y.linkDependencies,y.linkedDependencies,y.noDependencyCandidates,y.noDependencyMatches,y.removeDependency]),Vt=M?.dependencies.map(e=>`${e.id}:${e.title}`).join(`\0`)??``,Ht=(0,z.useMemo)(()=>D(i.get(`returnTo`),`/`,[`/projects`,`/chat`,`/notes`,`/tasks`]),[i]),Ut=(0,z.useCallback)(e=>t===`modal`&&n?ne(n,e):E(`/tasks/${encodeURIComponent(e)}`,Ht),[n,t,Ht]);U.current=M;let G=(0,z.useCallback)((e,t)=>{qe(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),r})},[]);(0,z.useEffect)(()=>{I(null),W(null),_t(!1),Mt.current=null,V(!1),Lt(null),zt(!1)},[e]),(0,z.useEffect)(()=>{let e=!0;return je().then(t=>{e&&ht(t.items)}).catch(()=>void 0),()=>{e=!1}},[v]),(0,z.useEffect)(()=>{if(!ue||ue.source===`user`)return;Lt(ue);let e=window.setTimeout(()=>Lt(null),3500);return()=>window.clearTimeout(e)},[ue]),(0,z.useEffect)(()=>{let t=M?.task.projectId,n=M?.dependencies??[];if(!t){Pt.current=null,rt(null),Ye(n);return}Pt.current!==t&&(Pt.current=t,rt(null));let r=!0;return me(t).then(t=>{if(!r)return;rt(t.project.name);let i=new Map;for(let r of[...t.tasks,...n])r.id!==e&&i.set(r.id,{id:r.id,title:r.title});Ye([...i.values()])}).catch(()=>{r&&Ye(n)}),()=>{r=!1}},[Vt,M?.task.projectId,e]);let K=(0,z.useCallback)(async(t,n=`command`)=>{let r=U.current;if(r){G(n,!0),I(null);try{await N(await Te(e,t,r.task.version),{revalidate:!1})}catch{I(y.actionFailed)}finally{G(n,!1)}}},[y.actionFailed,N,G,e]),q=(0,z.useCallback)(async(t,n)=>{let r=U.current;if(!r)return!1;n&&G(n,!0),I(null);try{let n=Se(e,t,r.task.version);return await N(n,{optimisticData:$e(r,t),populateCache:!0,revalidate:!1,rollbackOnError:!0}),!0}catch{return I(y.actionFailed),!1}finally{n&&G(n,!1)}},[y.actionFailed,N,G,e]),Wt=()=>{M&&(Mt.current={value:M.task.title,version:M.task.version},W(null),yt(M.task.title),_t(!0))},Gt=()=>{kt.current=!0,yt(U.current?.task.title??``),Mt.current=null,W(null),_t(!1),queueMicrotask(()=>{kt.current=!1})},Kt=async(e=!1)=>{if(kt.current){kt.current=!1;return}let t=U.current;if(!t||R.has(`title`))return;let n=vt.trim();if(!n){Gt();return}let r=Mt.current;if(!e&&Qe(r,t.task.version,t.task.title,n)){W(`title`);return}if(n===t.task.title){Gt();return}await q({title:n},`title`)&&(Mt.current=null,W(null),_t(!1))},qt=async()=>{if(!M)return;if(At.current){At.current=!1;return}let e=xt.trim(),t=Nt.current;if(Qe(t,M.task.version,M.task.body??``,e)){W(`description`);return}if(xt===jt.current||e===(M.task.body??``).trim()){V(!1);return}await q({body:fe(M.task.body??``,e)||null})&&(W(null),V(!1))},Jt=(0,z.useCallback)(async e=>{let t=U.current;!t||e===t.task.phase||await K({type:`move`,phase:e},`phase`)},[K]),Yt=(0,z.useCallback)(e=>{q({priority:e},`priority`)},[q]),Xt=(0,z.useCallback)(e=>{q({dueAt:nt(e)},`dueAt`)},[q]),Zt=(0,z.useCallback)(e=>{Ct(e);try{window.localStorage.setItem(ut,String(e))}catch{}},[]),Qt=(0,z.useCallback)(e=>{if(e.key!==`ArrowLeft`&&e.key!==`ArrowRight`&&e.key!==`Home`)return;e.preventDefault();let t=Ot.current?.clientWidth??0,n=e.key===`Home`?dt:H+(e.key===`ArrowLeft`?2:-2);Zt(ft(n,t))},[H,Zt]),$t=(0,z.useCallback)(e=>{if(!window.matchMedia(`(min-width: 1024px)`).matches)return;let t=Ot.current;if(!t)return;e.preventDefault();let n=e.currentTarget,r=e.pointerId;n.setPointerCapture(r),Tt(!0);let i=H,a=0,o=()=>{a=0,t.style.setProperty(`--task-chat-panel-width`,`${i}%`)},s=e=>{let n=t.getBoundingClientRect();i=ft((n.right-e.clientX)/n.width*100,n.width),a===0&&(a=window.requestAnimationFrame(o))},c=()=>{a!==0&&(window.cancelAnimationFrame(a),o());try{n.releasePointerCapture(r)}catch{}Tt(!1),Zt(i),window.removeEventListener(`pointermove`,s),window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c)};window.addEventListener(`pointermove`,s),window.addEventListener(`pointerup`,c),window.addEventListener(`pointercancel`,c)},[H,Zt]),en=(0,z.useCallback)(async t=>{let n=U.current;if(n){G(`dependencies`,!0),I(null);try{await N(await Ee(e,t,n.task.version),{revalidate:!1})}catch{I(y.dependencyUpdateFailed)}finally{G(`dependencies`,!1)}}},[y.dependencyUpdateFailed,N,G,e]),tn=(0,z.useCallback)(async t=>{let n=U.current;if(!(!n||!t||t===n.conversation.currentExecutorAgentId)){G(`delegateAgentId`,!0),I(null);try{await N(await Oe(e,t,n.task.version),{revalidate:!1})}catch{I(y.actionFailed)}finally{G(`delegateAgentId`,!1)}}},[y.actionFailed,N,G,e]),nn=(0,z.useCallback)(async()=>{G(`delete`,!0),I(null);try{await De(e),r?r():c(Ht,{replace:!0})}catch(e){I(e instanceof Error?e.message:y.actionFailed)}finally{G(`delete`,!1)}},[y.actionFailed,c,r,Ht,G,e]),rn=(0,z.useCallback)(async(t,n)=>{let r=U.current;if(r){G(`acceptance`,!0),I(null);try{await N(await xe(e,t,n,r.task.version,r.task.latestContractVersion),{revalidate:!1})}catch{I(y.actionFailed),await N()}finally{G(`acceptance`,!1)}}},[y.actionFailed,N,G,e]);if((0,z.useLayoutEffect)(()=>{if(t!==`modal`)return ae({startExtra:(0,L.jsx)(o,{to:Ht,className:`flex size-9 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover`,"aria-label":y.backToWork,children:(0,L.jsx)(g,{className:`size-4`})}),main:M?(0,L.jsx)(`p`,{className:`truncate text-sm font-semibold text-fg`,children:B?`${B} / ${y.taskLabel}`:y.taskLabel}):null,end:null}),j},[j,y.backToWork,y.taskLabel,M,t,B,Ht,ae]),le&&!M)return(0,L.jsx)(`div`,{className:t===`modal`?`p-5 text-sm text-danger`:`mx-auto max-w-3xl p-6 text-sm text-danger`,children:y.taskNotFound});if(!M)return(0,L.jsx)(`div`,{className:t===`modal`?`p-5`:`mx-auto max-w-4xl p-4 sm:p-6`,children:(0,L.jsx)(et,{})});let J=M.waits[0],Y=_e(M),an=Y.length>0&&Y.every(e=>e.status===`passed`),on=M.waits.find(e=>e.kind===`paused`),X=ge(M),sn=ye(M),cn=y.detailStatuses[sn],ln=pe(M.task.body?.trim()||M.task.contract?.objective.trim()||``),un=M.allowedCommands.includes(`mark_ready`),dn=M.allowedCommands.includes(`start`),fn=M.allowedCommands.includes(`add_wait`),pn=!J&&an&&M.task.phase===`review`&&M.allowedCommands.includes(`close`),mn=M.allowedCommands.includes(`reopen`),Z=M.conversation.activeConversationId,Q=M.conversation.currentExecutorAgentId??M.task.delegateAgentId??M.task.ownerId,hn=it.find(e=>e.id===Q),gn=!!(Z&&se[Z]?.open),_n=M.context.filter(e=>e.role===`deliverable`),vn=new Set(M.runs.filter(e=>e.contractVersion===M.task.latestContractVersion).map(e=>e.id)),yn=[...new Map(M.receipts.filter(e=>vn.has(e.runId)).flatMap(e=>e.evidence.filter(e=>e.kind===`artifact`)).map(e=>[e.uri??e.title,e])).values()],bn=M.context.filter(e=>e.role!==`deliverable`),xn=Ve?.automations.filter(t=>t.action.kind===`task_command`&&t.action.taskId===e)??[],$=M.sessions.filter((e,t,n)=>n.findIndex(t=>t.conversationId===e.conversationId)===t),Sn=M.task.contract?.expectedOutputs??[],Cn=M.task.contract?.constraints??[],wn=M.task.contract?.approvalRequired??[],Tn=M.task.contract?.assumptions??[],En=M.task.contract?.risks??[],Dn=Cn.length>0||wn.length>0||Tn.length>0||En.length>0,On=(...e)=>!!It?.changedFields.some(t=>e.includes(t)),kn=M.allowedCommands.includes(`move`),An=R.has(`command`),jn=R.has(`delete`),Mn=M.runs.find(e=>!e.parentRunId&&[`queued`,`running`,`waiting`,`verifying`].includes(e.status)),Nn=Mn!==void 0,Pn=`/automations?action=create&taskId=${encodeURIComponent(M.task.id)}${M.task.projectId?`&projectId=${encodeURIComponent(M.task.projectId)}`:``}`,Fn=()=>{let e=Et.current;e&&(e.open=!0,e.scrollIntoView({block:`start`,behavior:`smooth`}),e.focus({preventScroll:!0}))},In=(0,L.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[un&&!dn&&!J&&M.task.phase!==`review`?(0,L.jsxs)(A,{className:`min-h-9 px-3 py-1.5 text-xs`,variant:`primary`,disabled:An,onClick:()=>void K({type:`mark_ready`}),children:[(0,L.jsx)(ie,{className:`size-4`}),y.scheduleTask]}):null,on&&M.allowedCommands.includes(`resolve_wait`)?(0,L.jsxs)(A,{className:`min-h-9 px-3 py-1.5 text-xs`,variant:`primary`,disabled:An,onClick:()=>void K({type:`resolve_wait`,waitId:on.id}),children:[(0,L.jsx)(ie,{className:`size-4`}),y.resumeTask]}):null,!J&&dn&&M.task.phase!==`review`&&Q?(0,L.jsxs)(A,{className:`min-h-9 px-3 py-1.5 text-xs`,variant:`primary`,disabled:An,onClick:()=>void K({type:`start`,executor:{kind:`agent`,agentId:Q}}),children:[(0,L.jsx)(ie,{className:`size-4`}),y.runTask]}):null,pn?(0,L.jsxs)(A,{className:`min-h-9 px-3 py-1.5 text-xs`,variant:`primary`,disabled:An,onClick:()=>void K({type:`close`,resolution:`done`}),children:[(0,L.jsx)(b,{className:`size-4`}),y.approveTask]}):null,mn?(0,L.jsxs)(A,{className:`min-h-9 px-3 py-1.5 text-xs`,variant:`ghost`,disabled:An,onClick:()=>void K({type:`reopen`,phase:`ready`}),children:[(0,L.jsx)(ie,{className:`size-4`}),y.reopenTask]}):null,!on&&fn?(0,L.jsxs)(A,{variant:`ghost`,className:`min-h-9 px-3 py-1.5 text-xs`,disabled:An,onClick:()=>void K({type:`add_wait`,wait:{kind:`paused`,reason:`Paused by user`,condition:{}}}),children:[(0,L.jsx)(re,{className:`size-4`}),y.pauseTask]}):null,M.task.phase===`closed`?(0,L.jsx)(A,{variant:`primary`,className:`min-h-9 px-3 py-1.5 text-xs`,onClick:()=>{Dt.current?.scrollIntoView({block:`start`,behavior:`smooth`}),Dt.current?.focus({preventScroll:!0})},children:d===`zh`?`查看结果`:`View results`}):null,!J&&!Mn&&M.task.phase!==`closed`?(0,L.jsx)(A,{asChild:!0,variant:`ghost`,className:`min-h-9 px-3 py-1.5 text-xs`,children:(0,L.jsxs)(o,{to:Pn,children:[(0,L.jsx)(_,{className:`size-4`}),d===`zh`?`设置执行时间`:`Set execution time`]})}):null,M.task.phase===`review`&&!pn&&!J?(0,L.jsx)(A,{variant:`primary`,className:`min-h-9 px-3 py-1.5 text-xs`,onClick:Fn,children:d===`zh`?`去验收`:`Review results`}):null,(0,L.jsxs)(Ne,{children:[(0,L.jsx)(Pe,{asChild:!0,children:(0,L.jsx)(A,{type:`button`,variant:`ghost`,className:`size-9 p-0`,disabled:An||jn,"aria-label":y.moreActions,children:(0,L.jsx)(C,{className:`size-4`,"aria-hidden":!0})})}),(0,L.jsx)(Fe,{children:(0,L.jsxs)(Ie,{align:`end`,sideOffset:6,className:`z-[100] min-w-44 rounded-lg border border-edge bg-surface-overlay p-1 shadow-popover`,children:[M.task.phase===`review`&&!J&&dn&&Q?(0,L.jsx)(P,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-fg outline-none focus:bg-surface-hover`,onSelect:()=>void K({type:`start`,executor:{kind:`agent`,agentId:Q}}),children:y.runTask}):null,un&&(dn||J||M.task.phase===`review`)?(0,L.jsx)(P,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-fg outline-none focus:bg-surface-hover`,onSelect:()=>void K({type:`mark_ready`}),children:y.scheduleTask}):null,Mn?(0,L.jsx)(P,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-danger outline-none hover:bg-surface-hover focus:bg-surface-hover`,onSelect:()=>{G(`command`,!0),I(null),N(we(e,Mn.id,Mn.version),{revalidate:!1}).catch(()=>I(y.actionFailed)).finally(()=>G(`command`,!1))},children:y.cancelActiveRun}):null,Mn?(0,L.jsx)(Le,{className:`my-1 h-px bg-edge`}):null,M.task.phase===`closed`?null:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(P,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-danger outline-none hover:bg-surface-hover focus:bg-surface-hover`,onSelect:()=>void K({type:`close`,resolution:`cancelled`}),children:y.cancelTask}),(0,L.jsx)(Le,{className:`my-1 h-px bg-edge`})]}),(0,L.jsx)(P,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-danger outline-none hover:bg-surface-hover focus:bg-surface-hover`,onSelect:()=>{if(Nn){I(y.deleteActiveTaskBlocked);return}zt(!0)},children:y.deleteTask})]})})]})]});return(0,L.jsxs)(`div`,{ref:Ot,className:`flex h-full min-h-0 flex-col overflow-hidden ${wt?`lg:cursor-col-resize lg:select-none`:``}`,style:{"--task-chat-panel-width":`${H}%`},children:[(0,L.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col overflow-y-auto lg:flex-row lg:overflow-hidden`,children:[(0,L.jsxs)(`div`,{className:`task-detail-scroll flex min-w-0 shrink-0 flex-col lg:min-h-0 lg:flex-1 lg:shrink lg:overflow-y-auto lg:overscroll-contain`,children:[(0,L.jsxs)(`header`,{className:k(`shrink-0 border-b border-edge-subtle bg-surface-panel px-5 py-4 sm:px-6`,On(`title`)&&`task-detail-live-update`),children:[(0,L.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-x-6 gap-y-3`,children:[(0,L.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,L.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-xs text-fg-muted`,children:[B?(0,L.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,L.jsx)(te,{className:`size-3.5`,"aria-hidden":!0}),B]}):null,B?(0,L.jsx)(`span`,{"aria-hidden":`true`,children:`/`}):null,(0,L.jsx)(`span`,{children:y.taskLabel}),It?(0,L.jsx)(`span`,{className:`rounded-full bg-accent-soft px-2 py-0.5 text-[11px] font-medium text-accent-fg`,role:`status`,children:It.source===`agent`?d===`zh`?`Agent 刚刚更新`:`Updated by Agent`:d===`zh`?`执行结果已同步`:`Execution result synced`}):null]}),gt?(0,L.jsx)(`textarea`,{autoFocus:!0,"data-task-inline-editor":!0,"aria-label":d===`zh`?`任务标题`:`Task title`,rows:2,value:vt,onFocus:e=>{Mt.current?.value===vt&&(e.currentTarget.setSelectionRange(0,0),e.currentTarget.scrollTop=0)},onChange:e=>yt(e.target.value),onBlur:()=>void Kt(),onKeyDown:e=>{e.nativeEvent.isComposing||(e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),Gt()):e.key===`Enter`&&!e.shiftKey&&(e.preventDefault(),e.currentTarget.blur()))},className:`mt-2 block max-h-56 min-h-14 w-full max-w-3xl resize-none overflow-y-auto bg-transparent p-0 text-xl font-semibold leading-7 text-fg outline-none [field-sizing:content]`}):(0,L.jsx)(F,{content:M.task.title,contentKey:`${e}:title`,language:d,previewHeight:56,className:`mt-2 max-w-3xl`,children:(0,L.jsx)(`h1`,{className:`break-words text-xl font-semibold leading-7 text-fg`,children:(0,L.jsx)(`button`,{type:`button`,className:`max-w-full whitespace-pre-wrap break-words [overflow-wrap:anywhere] rounded-sm text-left outline-none hover:bg-surface-hover/60 focus-visible:ring-2 focus-visible:ring-accent/40`,title:M.task.title,onClick:Wt,children:M.task.title})})}),Ft===`title`?(0,L.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-2 text-xs text-warning`,role:`alert`,children:[(0,L.jsx)(`span`,{children:d===`zh`?`Agent 在你编辑期间更新了标题。`:`The Agent updated the title while you were editing.`}),(0,L.jsx)(`button`,{type:`button`,className:`rounded-md bg-surface-hover px-2 py-1 text-fg`,onClick:Gt,children:d===`zh`?`使用 Agent 版本`:`Use Agent version`}),(0,L.jsx)(`button`,{type:`button`,className:`rounded-md bg-accent-soft px-2 py-1 text-accent-fg`,disabled:R.has(`title`),onClick:()=>void Kt(!0),children:d===`zh`?`保留我的修改`:`Keep my changes`})]}):null]}),(0,L.jsx)(`span`,{className:k(`shrink-0 rounded-full px-2.5 py-1 text-xs font-medium`,ve(sn)),children:cn})]}),(0,L.jsxs)(`div`,{className:`mt-3 flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-fg-muted`,children:[(0,L.jsxs)(`span`,{className:`inline-flex min-w-0 items-center gap-2`,children:[Q?(0,L.jsx)(Ae,{agentId:Q,avatar:hn?.avatar,size:20,className:`shrink-0`}):null,(0,L.jsxs)(`span`,{className:`min-w-0 break-words [overflow-wrap:anywhere]`,children:[y.executorLabel,` · `,hn?.name??Q??y.unassigned]})]}),(0,L.jsx)(`span`,{className:`text-fg-subtle`,children:y.updatedAt.replace(`{{date}}`,Be(M.task.updatedAt,d))})]})]}),(0,L.jsxs)(`div`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center justify-between gap-2 border-b border-edge-subtle bg-surface-panel px-4 py-2 sm:px-5`,"aria-label":d===`zh`?`任务操作`:`Task actions`,children:[(0,L.jsxs)(`span`,{className:`min-w-0 flex-1 truncate text-xs text-fg-muted`,children:[M.task.title,` · `,cn]}),In,We?(0,L.jsx)(`p`,{role:`alert`,className:`basis-full text-sm text-danger`,children:We}):null]}),(0,L.jsxs)(`section`,{className:`min-w-0 space-y-4 p-4 sm:p-5`,children:[(0,L.jsx)(Ke,{detail:M,language:d,onUpdated:e=>{N(e,{revalidate:!1})}}),(0,L.jsxs)(`section`,{ref:Dt,tabIndex:-1,"aria-labelledby":`task-results-heading`,className:`scroll-mt-24`,children:[(0,L.jsx)(`h2`,{id:`task-results-heading`,className:`mb-3 text-sm font-semibold text-fg`,children:d===`zh`?`结果与交付`:`Results and deliverables`}),_n.length>0||yn.length>0?(0,L.jsxs)(`section`,{className:`mb-4 rounded-xl border border-edge-subtle bg-surface-panel p-5 shadow-surface`,children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:d===`zh`?`交付物`:`Deliverables`}),_n.length>0||yn.length>0?(0,L.jsxs)(`ul`,{className:`mt-3 space-y-2`,children:[_n.map(t=>(0,L.jsxs)(`li`,{className:`rounded-lg bg-surface-hover p-3 text-sm`,children:[(0,L.jsx)(`span`,{className:`block text-xs text-fg-muted`,children:y.contextKindLabels[t.targetKind]}),t.targetKind===`url`&&/^https?:\/\//.test(t.targetId)?(0,L.jsx)(F,{content:t.title??t.targetId,contentKey:`${e}:deliverable:${t.id}`,language:d,previewHeight:60,className:`mt-1`,children:(0,L.jsx)(`a`,{className:`block break-all text-accent hover:underline`,href:t.targetId,target:`_blank`,rel:`noreferrer`,children:t.title??t.targetId})}):(0,L.jsx)(F,{content:t.title??t.targetId,contentKey:`${e}:deliverable:${t.id}`,language:d,markdown:!1,previewHeight:60,className:`mt-1 text-fg`})]},t.id)),yn.map(t=>(0,L.jsxs)(`li`,{className:`rounded-lg bg-surface-hover p-3 text-sm`,children:[(0,L.jsx)(`span`,{className:`block text-xs text-fg-muted`,children:d===`zh`?`执行产物(待检查)`:`Run artifact (review needed)`}),t.uri&&/^https?:\/\//.test(t.uri)?(0,L.jsx)(F,{content:t.title,contentKey:`${e}:artifact:${t.uri??t.title}`,language:d,previewHeight:60,className:`mt-1`,children:(0,L.jsx)(`a`,{className:`block break-all text-accent hover:underline`,href:t.uri,target:`_blank`,rel:`noreferrer`,children:t.title})}):(0,L.jsx)(F,{content:t.title,contentKey:`${e}:artifact:${t.uri??t.title}`,language:d,markdown:!1,previewHeight:60,className:`mt-1 text-fg`})]},t.uri??t.title))]}):(0,L.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:d===`zh`?`尚未关联交付物`:`No deliverables linked yet`})]}):null,X?(0,L.jsxs)(`section`,{className:k(`mb-4 rounded-xl border border-edge-subtle bg-surface-panel p-5`,On(`runs`,`receipts`)&&`task-detail-live-update`),children:[(0,L.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,L.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:y.latestResult}),(0,L.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:d===`zh`?X.completionVerdict===`achieved`?`本次执行报告目标已达成,请结合下方验证依据验收。`:`这是阶段性结果,尚不能代表任务全部完成。`:X.completionVerdict===`achieved`?`The run reports the goal achieved. Review the evidence below.`:`This is a partial result; the task is not yet fully complete.`})]}),(0,L.jsxs)(`span`,{className:`rounded-full bg-surface-hover px-2.5 py-1 text-xs text-fg-muted`,children:[y.receiptStatuses[X.status],` · `,y.verificationStatuses[X.verification.status]]})]}),(0,L.jsx)(F,{content:X.summary,contentKey:`${e}:result:${X.runId}`,language:d,className:`mt-3`}),X.remainingWork.length>0?(0,L.jsxs)(`div`,{className:`mt-4`,children:[(0,L.jsx)(`h3`,{className:`text-xs font-medium text-fg-muted`,children:y.remainingWork}),(0,L.jsx)(`div`,{className:`mt-2`,children:(0,L.jsx)(mt,{contentKey:`${e}:remaining:${X.runId}`,items:X.remainingWork,empty:y.noRemainingWork})})]}):null,X.nextAction?(0,L.jsxs)(`div`,{className:`mt-4 rounded-lg bg-surface-hover p-3`,children:[(0,L.jsx)(`p`,{className:`text-xs font-medium text-fg-muted`,children:y.nextAction}),(0,L.jsx)(F,{content:X.nextAction,contentKey:`${e}:next:${X.runId}`,language:d,markdown:!1,previewHeight:72,className:`mt-1 text-sm text-fg`})]}):null,(0,L.jsxs)(`div`,{className:`mt-4 flex flex-wrap items-center gap-2`,children:[(0,L.jsx)(A,{className:`border-0 bg-surface-hover px-2 py-1 text-xs shadow-none`,variant:`secondary`,onClick:()=>void Ce(X.runId,`helpful`),children:y.doneWell}),(0,L.jsx)(A,{className:`px-2 py-1 text-xs`,variant:`ghost`,onClick:()=>void Ce(X.runId,`not_helpful`),children:y.needsFix})]}),X.evidence.length>0?(0,L.jsxs)(`details`,{className:`mt-4`,children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-sm font-medium text-fg-muted`,children:d===`zh`?`验证依据与执行产物`:`Evidence and run artifacts`}),(0,L.jsx)(He,{evidence:X.evidence,projectId:M.task.projectId,conversationId:Z??void 0,language:d})]}):null,M.receipts.length>1?(0,L.jsxs)(`details`,{className:`mt-4 border-t border-edge-subtle pt-4`,children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-sm font-medium text-fg-muted hover:text-fg`,children:y.executionHistory.replace(`{{count}}`,String(M.receipts.length-1))}),(0,L.jsx)(`div`,{className:`mt-3 space-y-3`,children:M.receipts.slice(1).map(t=>(0,L.jsx)(`article`,{className:`rounded-lg bg-surface-hover p-3`,children:(0,L.jsxs)(`div`,{className:`flex items-start justify-between gap-3`,children:[(0,L.jsx)(F,{content:t.summary,contentKey:`${e}:result:${t.runId}`,language:d,className:`min-w-0 flex-1`}),(0,L.jsx)(`span`,{className:`shrink-0 text-xs text-fg-subtle`,children:y.receiptStatuses[t.status]})]})},t.runId))})]}):null]}):null,(0,L.jsxs)(`details`,{open:M.task.phase===`review`||!!X,ref:Et,tabIndex:-1,"aria-label":y.successDefinition,className:`scroll-mt-24 mb-4 overflow-hidden rounded-xl border border-edge-subtle bg-surface-panel shadow-surface`,children:[(0,L.jsxs)(`summary`,{className:`cursor-pointer p-4 text-sm font-medium text-fg`,children:[y.successDefinition,` · `,Y.filter(e=>e.status===`passed`).length,`/`,Y.length]}),(0,L.jsx)(`div`,{className:`px-5 pb-5`,children:Y.length>0?(0,L.jsx)(`ul`,{className:`mt-3 space-y-3`,children:Y.map((t,n)=>(0,L.jsxs)(`li`,{className:`flex items-start gap-2.5 text-sm leading-5 text-fg`,children:[(0,L.jsx)(t.status===`passed`?b:t.status===`failed`?x:S,{className:k(`mt-0.5 size-4 shrink-0`,t.status===`passed`?`text-success`:t.status===`failed`?`text-danger`:`text-fg-subtle`),"aria-hidden":!0}),(0,L.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,L.jsx)(F,{content:t.text,contentKey:`${e}:criterion:${n}`,language:d,markdown:!1,previewHeight:60}),t.evidence.length>0?(0,L.jsxs)(`div`,{className:`mt-1 flex flex-wrap gap-x-2 text-xs leading-5 text-fg-muted`,children:[(0,L.jsx)(`span`,{children:d===`zh`?`依据:`:`Evidence:`}),t.evidence.map(e=>e.uri&&/^https?:\/\//.test(e.uri)?(0,L.jsx)(`a`,{className:`text-accent hover:underline`,href:e.uri,target:`_blank`,rel:`noreferrer`,children:e.title},e.title):(0,L.jsx)(`span`,{children:e.title},e.title))]}):null,t.review?(0,L.jsxs)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:[d===`zh`?`人工判定`:`Reviewed by user`,` · `,Be(t.review.reviewedAt,d)]}):null,t.method===`model_reviewed`?(0,L.jsx)(`p`,{className:`mt-1 text-xs text-fg-muted`,children:d===`zh`?`模型审阅:${t.verificationStatus===`passed`?`通过`:t.verificationStatus===`failed`?`未通过`:`未核验`}`:`Model review: ${t.verificationStatus===`passed`?`passed`:t.verificationStatus===`failed`?`failed`:`unverified`}`}):null,t.note?(0,L.jsx)(F,{content:t.note,contentKey:`${e}:criterion-note:${n}`,language:d,markdown:!1,previewHeight:60,className:`mt-1 text-xs text-fg-muted`}):null]}),M.task.phase!==`closed`&&M.task.contract?.acceptancePolicy!==`verified_auto`?(0,L.jsxs)(Ne,{children:[(0,L.jsx)(Pe,{asChild:!0,children:(0,L.jsx)(A,{type:`button`,variant:`ghost`,className:`h-7 shrink-0 px-2 text-xs`,disabled:R.has(`acceptance`),children:d===`zh`?`判定`:`Review`})}),(0,L.jsx)(Fe,{children:(0,L.jsxs)(Ie,{align:`end`,sideOffset:4,className:`z-[100] min-w-32 rounded-lg border border-edge bg-surface-overlay p-1 shadow-popover`,children:[(0,L.jsx)(P,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-fg outline-none hover:bg-surface-hover focus:bg-surface-hover`,onSelect:()=>void rn(n,`passed`),children:d===`zh`?`确认通过`:`Mark passed`}),(0,L.jsx)(P,{className:`cursor-pointer rounded-md px-3 py-2 text-sm text-fg outline-none hover:bg-surface-hover focus:bg-surface-hover`,onSelect:()=>void rn(n,`failed`),children:d===`zh`?`标记未通过`:`Mark failed`})]})})]}):null]},`${n}-${t.text}`))}):(0,L.jsx)(`p`,{className:`mt-3 text-sm text-fg-muted`,children:y.noDefinition})})]}),!X&&_n.length===0&&yn.length===0?(0,L.jsx)(`p`,{className:`mb-3 text-sm text-fg-muted`,children:d===`zh`?`尚无执行结果`:`No execution results yet`}):null,(0,L.jsxs)(`details`,{className:`rounded-xl border border-edge-subtle bg-surface-panel p-4`,children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-sm text-fg-muted`,children:d===`zh`?`执行与交付概览`:`Execution and delivery overview`}),(0,L.jsx)(f,{detail:M,language:d})]})]}),(0,L.jsxs)(`section`,{className:`overflow-hidden rounded-xl border border-edge-subtle bg-surface-panel divide-y divide-edge-subtle`,children:[(0,L.jsxs)(`div`,{className:`border-b border-edge-subtle p-5`,children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:d===`zh`?`任务目标`:`Task goal`}),(0,L.jsx)(F,{content:M.task.contract?.objective||M.task.title,contentKey:`${e}:goal`,language:d,markdown:!1,previewHeight:72,className:`mt-3 text-sm leading-6 text-fg`}),(0,L.jsxs)(A,{variant:`ghost`,className:`mt-2 min-h-9 px-2 text-xs`,onClick:Fn,children:[y.successDefinition,` · `,Y.length]})]}),Sn.length>0?(0,L.jsxs)(`div`,{className:`p-5`,children:[(0,L.jsx)(`h3`,{className:`text-xs font-medium text-fg-muted`,children:y.expectedOutputs}),(0,L.jsx)(`div`,{className:`mt-2`,children:(0,L.jsx)(mt,{contentKey:`${e}:expectedOutputs`,items:Sn,empty:y.noDefinition})})]}):null,(0,L.jsxs)(`details`,{className:k(`p-5`,On(`body`)&&`task-detail-live-update`),children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-sm font-semibold text-fg`,children:y.taskDescription}),bt?(0,L.jsx)(`textarea`,{autoFocus:!0,"data-task-inline-editor":!0,rows:6,value:xt,onChange:e=>St(e.target.value),onBlur:()=>void qt(),onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.stopPropagation(),At.current=!0,St(pe(M.task.body??M.task.contract?.objective??``)),V(!1),queueMicrotask(()=>{At.current=!1}))},className:`mt-3 w-full resize-y rounded-lg bg-surface-hover px-3 py-2 text-sm leading-6 text-fg outline-none ring-2 ring-accent/20 focus:ring-accent/50`}):(0,L.jsxs)(`div`,{className:`mt-2`,children:[ln&&ln!==M.task.title?(0,L.jsx)(F,{content:ln,contentKey:`${e}:description`,language:d}):(0,L.jsx)(`p`,{className:`text-sm leading-6 text-fg-muted`,children:y.noTaskDescription}),(0,L.jsx)(`button`,{type:`button`,className:`mt-2 rounded-md px-2 py-1 text-xs text-accent hover:bg-surface-hover focus-visible:bg-surface-hover`,onClick:()=>{let e=pe(M.task.body??M.task.contract?.objective??``);jt.current=e,Nt.current={value:M.task.body??``,version:M.task.version},W(null),St(e),V(!0)},children:d===`zh`?`编辑说明`:`Edit description`})]}),Ft===`description`?(0,L.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-2 text-xs text-warning`,role:`alert`,children:[(0,L.jsx)(`span`,{children:d===`zh`?`Agent 在你编辑期间更新了描述。`:`The Agent updated the description while you were editing.`}),(0,L.jsx)(`button`,{type:`button`,className:`rounded-md bg-surface-hover px-2 py-1 text-fg`,onClick:()=>{St(pe(M.task.body??``)),W(null),V(!1)},children:d===`zh`?`使用 Agent 版本`:`Use Agent version`}),(0,L.jsx)(`button`,{type:`button`,className:`rounded-md bg-accent-soft px-2 py-1 text-accent-fg`,onClick:()=>void q({body:fe(M.task.body??``,xt.trim())||null}).then(e=>{e&&(W(null),V(!1))}),children:d===`zh`?`保留我的修改`:`Keep my changes`})]}):null]}),Dn?(0,L.jsxs)(`section`,{className:k(`p-5`,On(`contract`)&&`task-detail-live-update`),children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:y.taskDefinition}),(0,L.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-fg-muted`,children:d===`zh`?`执行边界及补充背景`:`Execution boundaries and supporting context`}),Cn.length>0?(0,L.jsxs)(`details`,{className:`mt-4 border-t border-edge-subtle pt-4`,children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-sm font-medium text-fg-muted hover:text-fg`,children:y.constraints}),(0,L.jsx)(`div`,{className:`mt-3`,children:(0,L.jsx)(mt,{contentKey:`${e}:constraints`,items:Cn,empty:y.noDefinition})})]}):null,wn.length>0?(0,L.jsxs)(`details`,{className:`mt-4 border-t border-edge-subtle pt-4`,children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-sm font-medium text-fg-muted hover:text-fg`,children:y.approvalRequired}),(0,L.jsx)(`div`,{className:`mt-3`,children:(0,L.jsx)(mt,{contentKey:`${e}:approvalRequired`,items:wn,empty:y.noDefinition})})]}):null,Tn.length>0?(0,L.jsxs)(`details`,{className:`mt-4 border-t border-edge-subtle pt-4`,children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-sm font-medium text-fg-muted hover:text-fg`,children:y.contextAssumptions}),(0,L.jsx)(`div`,{className:`mt-3`,children:(0,L.jsx)(mt,{contentKey:`${e}:assumptions`,items:Tn,empty:y.noDefinition})})]}):null,En.length>0?(0,L.jsxs)(`details`,{className:`mt-4 border-t border-edge-subtle pt-4`,children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-sm font-medium text-fg-muted hover:text-fg`,children:y.contextRisks}),(0,L.jsx)(`div`,{className:`mt-3`,children:(0,L.jsx)(mt,{contentKey:`${e}:risks`,items:En,empty:y.noDefinition})})]}):null]}):null]}),(0,L.jsxs)(`section`,{"aria-labelledby":`task-management-heading`,children:[(0,L.jsx)(`h2`,{id:`task-management-heading`,className:`mb-3 text-sm font-semibold text-fg`,children:d===`zh`?`任务管理`:`Task management`}),(0,L.jsxs)(`aside`,{className:`min-w-0 overflow-hidden rounded-xl bg-surface-panel shadow-surface divide-y divide-edge-subtle`,children:[(0,L.jsxs)(`section`,{className:k(`p-5`,On(`phase`,`resolution`,`priority`,`dueAt`,`delegateAgentId`)&&`task-detail-live-update`),children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:y.taskProperties}),(0,L.jsxs)(`div`,{className:`mt-4 grid gap-3 sm:grid-cols-2`,children:[(0,L.jsx)(at,{value:M.task.phase,disabled:R.has(`phase`),canMove:kn,canApprove:pn,canReopen:mn,language:d,label:y.taskPhase,onChange:Jt}),(0,L.jsx)(ot,{value:M.task.priority,disabled:R.has(`priority`),label:y.priority,labels:y.priorityLabels,onChange:Yt}),(0,L.jsx)(st,{value:tt(M.task.dueAt),disabled:R.has(`dueAt`),label:y.dueDate,onChange:Xt}),(0,L.jsx)(ct,{value:M.conversation.currentExecutorAgentId??``,disabled:R.has(`delegateAgentId`),label:y.executorLabel,unassignedLabel:y.unassigned,agents:it,onChange:tn})]})]}),(0,L.jsxs)(`details`,{className:k(`p-5`,On(`dependencies`)&&`task-detail-live-update`),children:[(0,L.jsxs)(`summary`,{className:`cursor-pointer text-sm font-semibold text-fg`,children:[y.taskRelations,` · `,M.dependencies.length,` / `,M.dependents.length]}),(0,L.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`p`,{className:`mb-2 text-xs text-fg-muted`,children:y.dependencies}),(0,L.jsx)(lt,{candidates:Je,selected:M.dependencies,disabled:R.has(`dependencies`),labels:Bt,getTaskHref:Ut,onChange:en})]}),(0,L.jsxs)(`div`,{children:[(0,L.jsx)(`p`,{className:`mb-2 text-xs text-fg-muted`,children:y.dependents}),M.dependents.length>0?(0,L.jsx)(`div`,{className:`space-y-1.5`,children:M.dependents.map(t=>(0,L.jsx)(F,{content:t.title,contentKey:`${e}:dependent:${t.id}`,language:d,previewHeight:72,className:`rounded-lg bg-surface-hover p-2.5`,children:(0,L.jsx)(o,{to:Ut(t.id),className:`block break-words [overflow-wrap:anywhere] text-sm text-fg-muted transition-colors hover:text-fg`,children:t.title})},t.id))}):(0,L.jsx)(`p`,{className:`text-sm text-fg-subtle`,children:y.noDependents})]})]})]})]}),M.task.phase===`closed`?null:(0,L.jsx)(A,{asChild:!0,variant:`ghost`,className:`my-3`,children:(0,L.jsxs)(o,{to:Pn,children:[(0,L.jsx)(_,{className:`size-4`}),y.scheduleRecurringTask]})}),(0,L.jsxs)(`details`,{className:`mb-4 rounded-xl border border-edge-subtle bg-surface-panel p-5 shadow-surface`,children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-sm font-semibold text-fg`,children:d===`zh`?`关联内容`:`Related work`}),$.length>0||M.runs.length>0||xn.length>0||M.dependencies.length>0||M.dependents.length>0?(0,L.jsxs)(`div`,{className:`mt-3 grid gap-3 sm:grid-cols-2`,children:[$.length>0?(0,L.jsxs)(`div`,{className:`rounded-lg bg-surface-hover p-3`,children:[(0,L.jsx)(`h3`,{className:`text-xs font-medium text-fg-muted`,children:d===`zh`?`对话 · ${$.length}`:`Conversations · ${$.length}`}),(0,L.jsx)(Xe,{contentKey:`${e}:sessions`,language:d,className:`mt-2`,children:$.map(t=>(0,L.jsx)(`li`,{children:(0,L.jsx)(o,{className:`block break-words [overflow-wrap:anywhere] text-sm text-accent hover:underline`,to:t.conversationId===Z?T(e):`/chat/${encodeURIComponent(t.conversationId)}`,children:t.conversationId===Z?d===`zh`?`当前执行对话`:`Current execution chat`:t.role===`discussion`?d===`zh`?`关联讨论`:`Linked discussion`:d===`zh`?`历史执行对话`:`Earlier execution chat`})},t.id))})]}):null,xn.length>0?(0,L.jsxs)(`div`,{className:`rounded-lg bg-surface-hover p-3`,children:[(0,L.jsx)(`h3`,{className:`text-xs font-medium text-fg-muted`,children:d===`zh`?`自动化 · ${xn.length}`:`Automations · ${xn.length}`}),(0,L.jsx)(Xe,{contentKey:`${e}:automations`,language:d,className:`mt-2`,children:xn.map(e=>(0,L.jsx)(`li`,{children:(0,L.jsx)(o,{className:`block break-words [overflow-wrap:anywhere] text-sm text-accent hover:underline`,to:`/automations?automation=${encodeURIComponent(e.id)}`,children:e.name})},e.id))})]}):null,M.dependencies.length>0||M.dependents.length>0?(0,L.jsxs)(`div`,{className:`rounded-lg bg-surface-hover p-3`,children:[(0,L.jsx)(`h3`,{className:`text-xs font-medium text-fg-muted`,children:y.taskRelations}),(0,L.jsx)(`p`,{className:`mt-2 text-sm text-fg`,children:d===`zh`?`${M.dependencies.length} 个前置任务 · ${M.dependents.length} 个后续任务`:`${M.dependencies.length} prerequisites · ${M.dependents.length} dependents`})]}):null]}):(0,L.jsx)(`p`,{className:`mt-2 text-sm text-fg-muted`,children:d===`zh`?`还没有关联内容`:`No related work yet`}),(0,L.jsx)(`div`,{className:`mt-4 border-t border-edge-subtle pt-3`,children:(0,L.jsx)(Ue,{resource:{kind:`task`,id:M.task.id,revision:String(M.task.version)},disabled:gt||bt||R.size>0})})]}),bn.length>0?(0,L.jsxs)(`section`,{className:k(`p-5`,On(`context`)&&`task-detail-live-update`),children:[(0,L.jsx)(`h2`,{className:`text-sm font-semibold text-fg`,children:y.contextUsed}),(0,L.jsx)(`ul`,{className:`mt-4 grid gap-2 sm:grid-cols-2`,children:bn.map(e=>(0,L.jsxs)(`li`,{className:`min-w-0 rounded-lg bg-surface-hover p-2.5`,children:[(0,L.jsxs)(`span`,{className:`text-[11px] text-fg-subtle`,children:[y.contextRoleLabels[e.role],` · `,y.contextKindLabels[e.targetKind]]}),e.targetKind===`url`&&/^https?:\/\//.test(e.targetId)?(0,L.jsx)(`a`,{className:`mt-1 block break-all text-sm text-accent hover:underline`,href:e.targetId,target:`_blank`,rel:`noreferrer`,children:e.title??e.targetId}):(0,L.jsx)(`p`,{className:`mt-1 break-words text-sm text-fg`,children:e.title??e.targetId})]},e.id))})]}):null]}),(0,L.jsxs)(`details`,{className:`rounded-xl border border-edge-subtle bg-surface-panel p-4`,children:[(0,L.jsx)(`summary`,{className:`cursor-pointer text-sm font-semibold text-fg`,children:d===`zh`?`活动记录与留言`:`Activity and updates`}),(0,L.jsxs)(`div`,{className:`mt-3 space-y-4`,children:[(0,L.jsx)(Ze,{taskId:e},e),(0,L.jsx)(Ge,{changes:M.phaseChanges,language:d})]})]})]})]}),(0,L.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":d===`zh`?`调整任务信息和 Agent 对话的宽度`:`Resize task details and Agent chat`,"aria-valuemin":30,"aria-valuemax":60,"aria-valuenow":Math.round(H),tabIndex:0,onPointerDown:$t,onKeyDown:Qt,onDoubleClick:()=>Zt(dt),className:`group hidden w-2 shrink-0 cursor-col-resize touch-none items-stretch justify-center bg-surface-panel outline-none transition-colors hover:bg-surface-hover focus-visible:bg-surface-hover lg:flex ${wt?`bg-surface-hover`:``}`,children:(0,L.jsx)(`div`,{className:`w-px bg-edge-strong/70 transition-colors group-hover:bg-accent group-focus-visible:bg-accent`})}),(0,L.jsxs)(`aside`,{className:`flex min-h-[34rem] min-w-0 shrink-0 flex-col border-t border-edge-subtle bg-surface-panel lg:min-h-0 lg:w-[var(--task-chat-panel-width)] lg:border-t-0`,children:[(0,L.jsxs)(`div`,{className:`flex shrink-0 items-center justify-between gap-2 border-b border-edge-subtle px-4 py-3`,children:[(0,L.jsx)(`h2`,{className:`text-sm font-medium text-fg-muted`,children:d===`zh`?`执行对话`:`Execution chat`}),(0,L.jsxs)(`div`,{className:`flex items-center gap-1`,children:[$.length>1?(0,L.jsxs)(Ne,{children:[(0,L.jsx)(Pe,{asChild:!0,children:(0,L.jsx)(A,{type:`button`,variant:`ghost`,className:`h-8 px-2 text-xs`,children:d===`zh`?`${$.length} 段对话`:`${$.length} conversations`})}),(0,L.jsx)(Fe,{children:(0,L.jsx)(Ie,{align:`end`,sideOffset:6,className:`z-[100] min-w-52 rounded-lg border border-edge bg-surface-overlay p-1 shadow-popover`,children:$.map(t=>(0,L.jsx)(P,{asChild:!0,children:(0,L.jsx)(o,{className:`block rounded-md px-3 py-2 text-sm text-fg outline-none hover:bg-surface-hover focus:bg-surface-hover`,to:t.conversationId===Z?T(e):`/chat/${encodeURIComponent(t.conversationId)}`,children:t.conversationId===Z?d===`zh`?`当前执行对话`:`Current execution chat`:t.role===`discussion`?d===`zh`?`关联讨论`:`Linked discussion`:d===`zh`?`历史执行对话`:`Earlier execution chat`})},t.id))})})]}):null,Z?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(A,{type:`button`,variant:`ghost`,className:k(`size-8 p-0`,gn&&`bg-surface-hover text-fg`),"aria-label":d===`zh`?`项目文件`:`Project files`,"aria-pressed":gn,onClick:()=>{oe.getState().openFiles(Z),ce(Z)},children:(0,L.jsx)(w,{className:`size-4`,"aria-hidden":!0})}),(0,L.jsx)(A,{asChild:!0,variant:`ghost`,className:`size-8 p-0`,children:(0,L.jsx)(o,{to:T(e),"aria-label":d===`zh`?`全屏打开对话`:`Open chat full screen`,children:(0,L.jsx)(ee,{className:`size-4`,"aria-hidden":!0})})})]}):null]})]}),Z?(0,L.jsx)(`div`,{className:`min-h-0 flex-1`,children:(0,L.jsx)(m,{embedded:!0,conversationId:Z,taskId:e})}):be?(0,L.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center p-8 text-center`,children:(0,L.jsxs)(`div`,{className:`max-w-xs`,children:[(0,L.jsx)(O,{className:`mx-auto size-8 animate-pulse text-fg-subtle`}),(0,L.jsx)(`p`,{className:`mt-3 text-sm font-medium text-fg`,children:d===`zh`?`正在创建任务会话`:`Creating task conversation`})]})}):Re?(0,L.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center p-8 text-center`,children:(0,L.jsxs)(`div`,{className:`max-w-xs`,children:[(0,L.jsx)(O,{className:`mx-auto size-8 text-danger`}),(0,L.jsx)(`p`,{className:`mt-3 text-sm font-medium text-fg`,children:d===`zh`?`任务会话创建失败`:`Could not create task conversation`}),(0,L.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-fg-muted`,children:Re instanceof Error?Re.message:String(Re)})]})}):(0,L.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center p-8 text-center`,children:(0,L.jsxs)(`div`,{className:`max-w-xs`,children:[(0,L.jsx)(O,{className:`mx-auto size-8 text-fg-subtle`}),(0,L.jsx)(`p`,{className:`mt-3 text-sm font-medium text-fg`,children:d===`zh`?`等待任务会话`:`Waiting for a task conversation`}),(0,L.jsx)(`p`,{className:`mt-2 text-xs leading-5 text-fg-muted`,children:d===`zh`?`安排或开始任务后,Agent 的执行过程和持续对话会显示在这里。`:`Schedule or start the task to see the agent run and continue the conversation here.`})]})})]})]}),(0,L.jsx)(Me,{open:Rt,title:y.deleteTaskTitle,description:y.deleteTaskDescription.replace(`{{title}}`,M.task.title),confirmLabel:y.confirmDeleteTask,cancelLabel:y.keepTask,destructive:!0,onConfirm:()=>{zt(!1),nn()},onCancel:()=>zt(!1)})]})}function vt(){let e=(0,I.c)(2),{taskId:t}=i(),n=t===void 0?``:t,r;return e[0]===n?r=e[1]:(r=(0,L.jsx)(_t,{taskId:n,presentation:`page`}),e[0]=n,e[1]=r),r}function yt(e){let t=(0,I.c)(41),{taskId:n,backgroundPath:r,workspacePanelWidth:i,onClose:a}=e,o=i===void 0?0:i,s=u(St),c=be(xt),l=o>0,d;t[0]!==a||t[1]!==c?(d=e=>{e||(c(null),a())},t[0]=a,t[1]=c,t[2]=d):d=t[2];let f=s===`zh`?`关闭任务详情`:`Close task details`,p;t[3]!==a||t[4]!==c?(p=()=>{c(null),a()},t[3]=a,t[4]=c,t[5]=p):p=t[5];let m;t[6]!==f||t[7]!==p?(m=(0,L.jsx)(`button`,{type:`button`,tabIndex:-1,"data-task-modal-backdrop":!0,className:`fixed inset-0 z-[80] bg-black/45`,"aria-label":f,onClick:p}),t[6]=f,t[7]=p,t[8]=m):m=t[8];let h=l?`true`:`false`,g=`${o/2}px`,_=`${o}px`,v;t[9]!==g||t[10]!==_?(v={"--task-detail-workspace-offset":g,"--task-detail-workspace-width":_},t[9]=g,t[10]=_,t[11]=v):v=t[11];let y=v,b=s===`zh`?`任务详情`:`Task details`,x;t[12]===b?x=t[13]:(x=(0,L.jsx)(N,{className:`font-medium text-fg`,children:b}),t[12]=b,t[13]=x);let S=s===`zh`?`查看并操作任务详情`:`View and manage task details`,C;t[14]===S?C=t[15]:(C=(0,L.jsx)(se,{className:`sr-only`,children:S}),t[14]=S,t[15]=C);let ee=s===`zh`?`关闭任务详情`:`Close task details`,te;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(te=(0,L.jsx)(ae,{className:`size-4`,"aria-hidden":!0}),t[16]=te):te=t[16];let w;t[17]===ee?w=t[18]:(w=(0,L.jsx)(`div`,{className:`flex shrink-0 items-center gap-1`,children:(0,L.jsx)(ce,{className:`flex size-8 items-center justify-center rounded-lg text-fg-muted hover:bg-surface-hover hover:text-fg`,"aria-label":ee,children:te})}),t[17]=ee,t[18]=w);let ne;t[19]!==x||t[20]!==C||t[21]!==w?(ne=(0,L.jsxs)(`header`,{className:`flex shrink-0 items-center justify-between gap-3 bg-surface-panel px-5 py-3.5`,children:[x,C,w]}),t[19]=x,t[20]=C,t[21]=w,t[22]=ne):ne=t[22];let T;t[23]!==a||t[24]!==c?(T=()=>{c(null),a()},t[23]=a,t[24]=c,t[25]=T):T=t[25];let E;t[26]!==r||t[27]!==T||t[28]!==n?(E=(0,L.jsx)(`div`,{className:`min-h-0 flex-1 overflow-hidden`,children:(0,L.jsx)(_t,{taskId:n,presentation:`modal`,backgroundPath:r,onDeleted:T})}),t[26]=r,t[27]=T,t[28]=n,t[29]=E):E=t[29];let D;t[30]!==y||t[31]!==ne||t[32]!==E||t[33]!==h?(D=(0,L.jsxs)(le,{className:`xopc-dialog-content task-detail-modal-content fixed top-1/2 z-[90] flex h-[min(54rem,calc(100dvh-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl border border-edge bg-surface-overlay focus:outline-none`,"data-workspace-panel-open":h,style:y,onEscapeKeyDown:V,onInteractOutside:bt,children:[ne,E]}),t[30]=y,t[31]=ne,t[32]=E,t[33]=h,t[34]=D):D=t[34];let O;t[35]!==D||t[36]!==m?(O=(0,L.jsxs)(M,{children:[m,D]}),t[35]=D,t[36]=m,t[37]=O):O=t[37];let re;return t[38]!==d||t[39]!==O?(re=(0,L.jsx)(ue,{modal:!1,open:!0,onOpenChange:d,children:O}),t[38]=d,t[39]=O,t[40]=re):re=t[40],re}function bt(e){let t=e.detail.originalEvent.target;t instanceof Element&&t.closest(`#app-workspace-panel, [data-task-modal-backdrop]`)&&e.preventDefault()}function V(e){let t=e.target;t instanceof HTMLElement&&t.closest(`[data-task-inline-editor]`)&&e.preventDefault()}function xt(e){return e.setPath}function St(e){return e.language}function H(e){return(0,L.jsx)(y,{value:e.id,children:e.name||e.id},e.id)}function Ct(e){return e.id}export{yt as TaskDetailModal,vt as TaskDetailPage};
@@ -1 +0,0 @@
1
- import{t as e}from"./tool-activity-BtJkgjFf.js";function t(e){if(typeof e==`string`)try{return t(JSON.parse(e))}catch{return null}return typeof e==`object`&&e&&!Array.isArray(e)?e:null}function n(e,t){return e.replace(/\{\{(\w+)\}\}/g,(e,n)=>t[n]??``)}function r(e){return e.trim().toLowerCase().replace(/-/g,`_`).split(`__`).at(-1)?.split(`.`).at(-1)??``}var i={automation:`automation`,browser_automation:`browser`,browser_use:`browser`,clarify:`clarification`,codemode:`codeExecution`,tool_search:`toolSearch`,computer_use:`computer`,create_desktop_pet:`desktopPet`,create_share:`share`,delegate_task:`delegation`,image_generate:`imageGeneration`,image:`imageInspection`,language_diagnostics:`diagnostics`,managed_job:`job`,memory_maintenance:`memoryMaintenance`,knowledge_get:`memoryRead`,knowledge_write:`memoryUpdate`,user_context_get:`memoryRead`,user_context_update:`memoryUpdate`,publish_artifacts:`publish`,update_plan:`planning`,read_media:`mediaRead`,review_workspace:`review`,send_media:`mediaSend`,send_message:`message`,session_recall:`sessionRecall`,session_search:`sessionSearch`,session_status:`sessionStatus`,skill_install:`skillInstall`,skill_manage:`skillManage`,skills_marketplace_search:`skillSearch`,skills_list:`skillSearch`,skill_view:`skillView`,text_to_speech:`speech`,structured_output:`structuredOutput`,todo:`todo`,tool_manual:`manual`,web_extract:`webExtract`,xopc_require_connection:`connection`};function a(e){let t=r(e);return t===`xopc_use`||t in i}function o(e,t,n,i,o){if(a(e.name))return x(e.name,r(e.name)===`xopc_use`?e.input:void 0,t,n,i,e.activity);let s=S(e.name,e.activity);return t===`running`?o[s]:s===`other`?n.fallback.completed.replace(/\{\{name\}\}/g,``).trim():C(e.name,i,e.activity)}var s=new Set([`list`,`get`,`get_card`,`history`,`list_milestones`,`list_updates`,`mail_sources`,`preview_edit`,`resolve_workspace`]),c=new Set([`create`,`create_milestone`,`create_update`,`follow_up`,`start`]),l=new Set([`add_context`,`append`,`command`,`remove_context`,`update`,`update_dependencies`,`update_follow_up`,`update_milestone`]),u=new Set([`delete`]),d=new Set([`run`,`resume`]),f=new Set([`cancel`,`pause`]),p=new Set([`check`,`validate`]),m=new Set([`open`]),h=new Set([`continue_card`]);function g(e){return s.has(e)?`inspect`:c.has(e)?`create`:l.has(e)?`update`:u.has(e)?`remove`:d.has(e)?`run`:f.has(e)?`stop`:p.has(e)?`validate`:m.has(e)?`open`:h.has(e)?`continue`:`use`}function _(e,t){return e===`project`&&t.includes(`milestone`)?`milestone`:e===`project`&&t.includes(`update`)?`projectUpdate`:e===`project`?`project`:e===`automation`?`automation`:e===`note`?`note`:e===`task`?`task`:e===`task_run`?`taskRun`:e===`local_app`?`localApp`:e===`settings`?`settings`:e===`context`?`context`:e===`chat_preview`?`chatPreview`:`productItem`}function v(e){return(e.trim().split(`__`).at(-1)?.split(`.`).at(-1)??e.trim()).replace(/[-_]+/g,` `).replace(/\s+/g,` `).trim()||`tool`}var y={list:`inspect`,get:`inspect`,read:`inspect`,fetch:`inspect`,find:`inspect`,search:`inspect`,query:`inspect`,create:`create`,add:`create`,generate:`create`,install:`create`,update:`update`,edit:`update`,write:`update`,append:`update`,set:`update`,delete:`remove`,remove:`remove`,uninstall:`remove`,run:`run`,execute:`run`,start:`run`,trigger:`run`,stop:`stop`,cancel:`stop`,pause:`stop`,validate:`validate`,check:`validate`,test:`validate`,verify:`validate`,analyze:`validate`,review:`validate`,open:`open`,navigate:`open`,continue:`continue`,resume:`continue`};function b(e,t,r){let[i,...a]=v(e).split(` `),o=y[i.toLowerCase()],s=a.join(` `).trim();return!o||!s?null:n(r.actions[o][t],{object:s})}function x(a,o,s,c,l,u){let d=r(a);if(d===`xopc_use`){let e=t(o),r=typeof e?.mode==`string`?e.mode.trim().toLowerCase():``,i=typeof e?.command==`string`?e.command.trim().toLowerCase():``,a=g(i),l=_(r,i);return n(c.actions[a][s],{object:c.objects[l]})}let f=i[d];if(f){let e=c.builtins[f][s],n=t(o),r=f===`skillView`?n?.name:void 0;return typeof r==`string`&&r.trim()?`${e} · ${r.trim().replace(/\s+/g,` `).slice(0,100)}`:e}let p=u??e(a,s===`running`?`running`:`completed`);return p.category!==`other`||p.action!==`use`?C(a,l,p):b(a,s,c)??n(c.fallback[s],{name:v(a)})}function S(t,n){if(t===`user_context_search`||t===`knowledge_search`)return`memorySearch`;let r=n??e(t,`running`);return r.category===`memory`&&r.action===`search`?`memorySearch`:r.category===`web`&&r.action===`search`?`webSearch`:r.category===`code`&&r.action===`search`?`codeSearch`:r.category===`other`&&r.action===`search`?`search`:r.category===`file`&&r.action===`read`?`readFile`:r.category===`file`&&r.action===`list`?`listDir`:r.category===`file`&&r.action===`write`?`writeFile`:r.category===`file`&&r.action===`edit`?`editFile`:r.category===`command`&&r.action===`execute`?`runCommand`:r.category===`navigation`&&r.action===`open`?`openUrl`:r.category===`web`&&r.action===`read`?`fetchUrl`:`other`}function C(t,n,r){let i=r??e(t,`running`);if(i.category===`planning`)return n.updatePlan??n.unknownTool.replace(`{{name}}`,t);let a=S(t,i);return a===`webSearch`?n.searchedWeb:a===`memorySearch`?n.searchedMemory??n.searched??n.searchedWeb:a===`codeSearch`?n.searchedCode??n.searched??n.searchedWeb:a===`search`?n.searched??n.searchedWeb:a===`readFile`?n.readFile:a===`runCommand`?n.runCommand:a===`listDir`?n.listDirectory:a===`writeFile`?n.writeFile:a===`editFile`?n.editFile:a===`openUrl`?n.openUrl:a===`fetchUrl`?n.fetchUrl:n.unknownTool.replace(`{{name}}`,t.trim()||`tool`)}export{C as n,o as r,S as t};
@@ -1 +0,0 @@
1
- import{p as e}from"./locale-store-Bg_XR36n.js";var t=e(e=>({agentId:``,setAgentId:t=>e({agentId:t})}));export{t};