@xopcai/xopc 0.0.480 → 0.0.481

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 (543) hide show
  1. package/dist/browser-ext/manifest.json +1 -1
  2. package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
  3. package/dist/extensions/feishu/src/transport/client/install-sdk.js +1 -1
  4. package/dist/extensions/telegram/xopc.extension.json +1 -1
  5. package/dist/extensions/weixin/src/api/api.js +2 -2
  6. package/dist/extensions/weixin/src/auth/accounts.js +1 -1
  7. package/dist/extensions/weixin/src/cdn/upload.js +1 -1
  8. package/dist/extensions/weixin/src/media/data-url.js +1 -1
  9. package/dist/extensions/weixin/src/messaging/debug-mode.js +1 -1
  10. package/dist/extensions/weixin/src/messaging/inbound.js +1 -1
  11. package/dist/extensions/weixin/src/messaging/process-message.js +1 -1
  12. package/dist/gateway/server/chunks.bin +583 -583
  13. package/dist/gateway/server/chunks.json +1 -1
  14. package/dist/gateway/static/root/assets/{activity-store-9wMoZ4Ok.js → activity-store-zMwJQbPV.js} +1 -1
  15. package/dist/gateway/static/root/assets/{agent-avatar-dicebear-TrALdAg_.js → agent-avatar-dicebear-VUJHrVXo.js} +1 -1
  16. package/dist/gateway/static/root/assets/{agent-avatar-display-BiHRFRo2.js → agent-avatar-display-umdw-BQZ.js} +2 -2
  17. package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-DLopBKfN.js → agent-defaults-settings-panel-2JEkjXQB.js} +1 -1
  18. package/dist/gateway/static/root/assets/{agent-plugin-dialog-wisFd2cR.js → agent-plugin-dialog-Cz08StU4.js} +1 -1
  19. package/dist/gateway/static/root/assets/{agents-CzgZX_E9.js → agents-BXVjWw0p.js} +3 -3
  20. package/dist/gateway/static/root/assets/{agents-admin-api-Crvl6IB4.js → agents-admin-api-C1Ab97Mn.js} +1 -1
  21. package/dist/gateway/static/root/assets/{api-CJvZsRen.js → api-5GGJYrzC.js} +1 -1
  22. package/dist/gateway/static/root/assets/{api-DQVcF1zq.js → api-B2QJSgN6.js} +1 -1
  23. package/dist/gateway/static/root/assets/{app-management-settings-panel-CYwY9a8P.js → app-management-settings-panel-IaAONzFg.js} +1 -1
  24. package/dist/gateway/static/root/assets/{appearance-settings-8clf9SDY.js → appearance-settings-BFo0Yk57.js} +1 -1
  25. package/dist/gateway/static/root/assets/{apps-page-B2qv9gWd.js → apps-page-aVZLDS59.js} +1 -1
  26. package/dist/gateway/static/root/assets/{archive-plugin-Bu1nF6Lg.js → archive-plugin-BgX_1X6q.js} +1 -1
  27. package/dist/gateway/static/root/assets/{automation-api-HQmKv0Sm.js → automation-api-DtFbVh6a.js} +1 -1
  28. package/dist/gateway/static/root/assets/{automation-result-state-CMjfyY6p.js → automation-result-state-CBfGJb7v.js} +1 -1
  29. package/dist/gateway/static/root/assets/{automation-run-list-wlGMBYYv.js → automation-run-list-C-nOpY2_.js} +1 -1
  30. package/dist/gateway/static/root/assets/{automation-task-card-2EsZ1jBs.js → automation-task-card-BgS9JQeL.js} +1 -1
  31. package/dist/gateway/static/root/assets/{automations-page-BUtoiUiH.js → automations-page-C6dw7Nqb.js} +1 -1
  32. package/dist/gateway/static/root/assets/{automations-workspace-CW_8-0Cb.js → automations-workspace-CKCsL5wQ.js} +2 -2
  33. package/dist/gateway/static/root/assets/{binary-plugins-Dz62GXI_.js → binary-plugins-DX9lDAWC.js} +1 -1
  34. package/dist/gateway/static/root/assets/{block-editor-CA66tdm3.js → block-editor-DRNtaARK.js} +1 -1
  35. package/dist/gateway/static/root/assets/{browser-settings-page-hAttQ9qS.js → browser-settings-page-Btf2a-_0.js} +1 -1
  36. package/dist/gateway/static/root/assets/{capabilities-BNmDs-Ca.js → capabilities-C5MLP2Rx.js} +1 -1
  37. package/dist/gateway/static/root/assets/{capabilities-BcgSEYc5.js → capabilities-SIty9Vcz.js} +1 -1
  38. package/dist/gateway/static/root/assets/{capabilities-page-CT6qMkqA.js → capabilities-page-BnTgeZB3.js} +2 -2
  39. package/dist/gateway/static/root/assets/capabilities-settings-panel-7MsgsVvQ.js +8 -0
  40. package/dist/gateway/static/root/assets/capability-presentation-DlJQUUlM.js +1 -0
  41. package/dist/gateway/static/root/assets/{channels-CFmGXibE.js → channels-CLpOmzO5.js} +1 -1
  42. package/dist/gateway/static/root/assets/{chat-agents-api-LVSL686y.js → chat-agents-api-JoSvbwve.js} +1 -1
  43. package/dist/gateway/static/root/assets/{chat-chart-block-Drmp5p0m.js → chat-chart-block-D1XpCNA5.js} +1 -1
  44. package/dist/gateway/static/root/assets/{chat-page-qrdWReZ2.js → chat-page-sPNbEboB.js} +31 -31
  45. package/dist/gateway/static/root/assets/{chat-terminal-dock-twWNRsuW.js → chat-terminal-dock-BDHq9kj3.js} +1 -1
  46. package/dist/gateway/static/root/assets/{command-palette-api-B27c_GTI.js → command-palette-api-C2IaBEe4.js} +1 -1
  47. package/dist/gateway/static/root/assets/{composer-model-config-control-DdxZ-1U4.js → composer-model-config-control-C5hjuJQc.js} +1 -1
  48. package/dist/gateway/static/root/assets/{composer-notifications-Dd64p5ZI.js → composer-notifications-BSboNnS6.js} +1 -1
  49. package/dist/gateway/static/root/assets/{composer-payload-handoff-Cbkv-F26.js → composer-payload-handoff-D5CvsQWj.js} +1 -1
  50. package/dist/gateway/static/root/assets/{computer-settings-page-B8UkO-mU.js → computer-settings-page-CwB7HgUb.js} +1 -1
  51. package/dist/gateway/static/root/assets/connected-providers-grid-DPJ_E0_Y.js +1 -0
  52. package/dist/gateway/static/root/assets/{connection-usage-guide-CNB9P9jg.js → connection-usage-guide-DWj6jcFA.js} +1 -1
  53. package/dist/gateway/static/root/assets/{connector-service-page-DkifsBTl.js → connector-service-page-DEnQE7bH.js} +1 -1
  54. package/dist/gateway/static/root/assets/{connectors-api-DjIpuBCy.js → connectors-api-BRGeDfyP.js} +1 -1
  55. package/dist/gateway/static/root/assets/{connectors-page-oGveGlkI.js → connectors-page--3zYHSCM.js} +1 -1
  56. package/dist/gateway/static/root/assets/{date-picker-_G6tIiGk.js → date-picker-jqmqOuOL.js} +1 -1
  57. package/dist/gateway/static/root/assets/{date-time-picker-B3lS-ZGW.js → date-time-picker-B3n_gScw.js} +1 -1
  58. package/dist/gateway/static/root/assets/{desktop-pet-BAKyq-sn.js → desktop-pet-D8Tz4lEu.js} +1 -1
  59. package/dist/gateway/static/root/assets/{desktop-pet-settings-DGpu4hH_.js → desktop-pet-settings-24N6UYdz.js} +1 -1
  60. package/dist/gateway/static/root/assets/{dev-view-store-DqYjZFu1.js → dev-view-store-DMaKk2H5.js} +1 -1
  61. package/dist/gateway/static/root/assets/{device-pairing-wizard-CIvmpDvo.js → device-pairing-wizard-CUMh0ui_.js} +1 -1
  62. package/dist/gateway/static/root/assets/{directory-picker-path-field-BAsEQvG4.js → directory-picker-path-field-DqknuyWo.js} +1 -1
  63. package/dist/gateway/static/root/assets/{extension-authoritative-grants-BmlRcbhA.js → extension-authoritative-grants-Choc5BaY.js} +1 -1
  64. package/dist/gateway/static/root/assets/{extension-debug-page--EU_kb8E.js → extension-debug-page-8tHOJM-0.js} +1 -1
  65. package/dist/gateway/static/root/assets/{extension-iframe-host-CcspWP4N.js → extension-iframe-host-crHrHgry.js} +1 -1
  66. package/dist/gateway/static/root/assets/{extension-marketplace-api-BQIfGFSy.js → extension-marketplace-api-3vDR-EC4.js} +1 -1
  67. package/dist/gateway/static/root/assets/{extension-message-router-f7v82b69.js → extension-message-router-CBdW5Mi0.js} +1 -1
  68. package/dist/gateway/static/root/assets/{extension-page-CJxtbXQj.js → extension-page-ouZIIOwR.js} +1 -1
  69. package/dist/gateway/static/root/assets/{extension-provider-htRLPCBf.js → extension-provider-CJJRG7Gq.js} +1 -1
  70. package/dist/gateway/static/root/assets/{extension-settings-page-CKui11ZQ.js → extension-settings-page-BO8VsTJF.js} +1 -1
  71. package/dist/gateway/static/root/assets/{file-preview-surface-Cwy9Cgaq.js → file-preview-surface-zEJDQWOT.js} +1 -1
  72. package/dist/gateway/static/root/assets/{gateway-config-swr-abWJ0Q_y.js → gateway-config-swr-CNzw8MWj.js} +1 -1
  73. package/dist/gateway/static/root/assets/{gateway-realtime-PYDAppcy.js → gateway-realtime-BCghEC3U.js} +1 -1
  74. package/dist/gateway/static/root/assets/gateway-realtime-store-CQygYU9S.js +1 -0
  75. package/dist/gateway/static/root/assets/{gateway-restart-BtAJNIO-.js → gateway-restart-DaKNDKV9.js} +1 -1
  76. package/dist/gateway/static/root/assets/{gateway-settings-BvD8fcB2.js → gateway-settings-BxBJ1zGZ.js} +1 -1
  77. package/dist/gateway/static/root/assets/{gateway-startup-retry-Cza1BaL8.js → gateway-startup-retry-CSY11ude.js} +1 -1
  78. package/dist/gateway/static/root/assets/{global-defaults-api-BIa73mvy.js → global-defaults-api-C0qPO4zT.js} +1 -1
  79. package/dist/gateway/static/root/assets/home-page-DzSLTEJf.js +8 -0
  80. package/dist/gateway/static/root/assets/{image-generation-api-BCU7Uxyy.js → image-generation-api-CD1tNChr.js} +1 -1
  81. package/dist/gateway/static/root/assets/{imports-page-Clh0polM.js → imports-page-DHWKf1n3.js} +1 -1
  82. package/dist/gateway/static/root/assets/index-B9_yImuQ.css +1 -0
  83. package/dist/gateway/static/root/assets/index-BrXVoLVe.js +11 -0
  84. package/dist/gateway/static/root/assets/{install-connector-dialog-DSkXYsng.js → install-connector-dialog-B3A7BKlp.js} +1 -1
  85. package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Crf76ecq.js → keyboard-shortcuts-settings-BZaTvMnH.js} +1 -1
  86. package/dist/gateway/static/root/assets/{local-app-workbench-page-WudNXl41.js → local-app-workbench-page-DH1zWMav.js} +1 -1
  87. package/dist/gateway/static/root/assets/{local-apps-page-Br9ZO7Ad.js → local-apps-page-CSnxRVm2.js} +1 -1
  88. package/dist/gateway/static/root/assets/{local-session-drafts-BHrHLZJJ.js → local-session-drafts-CfgBHtlt.js} +1 -1
  89. package/dist/gateway/static/root/assets/{locale-store-5DzxIIeq.js → locale-store-CeEXxDaP.js} +1 -1
  90. package/dist/gateway/static/root/assets/{logs-page-BqUeqzPB.js → logs-page-fF3rKMVM.js} +1 -1
  91. package/dist/gateway/static/root/assets/{management-api-DHCpR1ma.js → management-api-iUbR1cSS.js} +1 -1
  92. package/dist/gateway/static/root/assets/{management-settings-BccKy8tW.js → management-settings-BWJ-4D2j.js} +1 -1
  93. package/dist/gateway/static/root/assets/{markdown-view-BwbjZnQ6.js → markdown-view-BQw7H2MV.js} +1 -1
  94. package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-DxZ-KH6B.js → mcp-conversation-setup-page-CJdg6fgZ.js} +1 -1
  95. package/dist/gateway/static/root/assets/{media-plugins-DissTT0S.js → media-plugins-B_0Q_dY0.js} +1 -1
  96. package/dist/gateway/static/root/assets/{messages-CGGOcV9B.js → messages-L7tv_OPK.js} +2 -2
  97. package/dist/gateway/static/root/assets/{model-selector-DsCLjn_X.js → model-selector-CMsLur91.js} +1 -1
  98. package/dist/gateway/static/root/assets/{models-hub-cache-B0Y9Frop.js → models-hub-cache-DI9vvuFx.js} +1 -1
  99. package/dist/gateway/static/root/assets/{note-detail-panel-DEz8I-eN.js → note-detail-panel-BhJM-EYy.js} +3 -3
  100. package/dist/gateway/static/root/assets/note-image-lightbox-y9OBo4Kv.js +1 -0
  101. package/dist/gateway/static/root/assets/{notes-api-CdC4jVPP.js → notes-api-Ck4Yvy_j.js} +1 -1
  102. package/dist/gateway/static/root/assets/{notes-page-CC5-BWmA.js → notes-page-qellAl3o.js} +1 -1
  103. package/dist/gateway/static/root/assets/{oauth-api-CAPuqZdT.js → oauth-api-3nGo5FdC.js} +1 -1
  104. package/dist/gateway/static/root/assets/{oauth-provider-connect-7i3NoKo4.js → oauth-provider-connect-wtw_Oup3.js} +1 -1
  105. package/dist/gateway/static/root/assets/{page-context-capture-button-BcSfcOme.js → page-context-capture-button-Bm8TI2e0.js} +1 -1
  106. package/dist/gateway/static/root/assets/{page-context-draft-BJ2cY1Us.js → page-context-draft-D7Wh_S2e.js} +1 -1
  107. package/dist/gateway/static/root/assets/{page-header-store-xgXJVGDC.js → page-header-store-hCKJckdJ.js} +1 -1
  108. package/dist/gateway/static/root/assets/{personal-avatar-CidTaDAv.js → personal-avatar-CW6MOp9q.js} +1 -1
  109. package/dist/gateway/static/root/assets/{personal-page-BlxApjBh.js → personal-page-YTJfXUqr.js} +1 -1
  110. package/dist/gateway/static/root/assets/{personal-profile-settings-D1TpPIVg.js → personal-profile-settings-Qn6MR0gu.js} +1 -1
  111. package/dist/gateway/static/root/assets/{personal-settings-panel-BXKSkUoc.js → personal-settings-panel-DgGTnduT.js} +1 -1
  112. package/dist/gateway/static/root/assets/{phone-dependencies-card-_7leySaj.js → phone-dependencies-card-CiLziQ8R.js} +1 -1
  113. package/dist/gateway/static/root/assets/{phone-model-connection-CVI6GGMF.js → phone-model-connection-DjQJIS33.js} +1 -1
  114. package/dist/gateway/static/root/assets/{phone-model-picker-qP1Sh-eA.js → phone-model-picker-BaHl_-yf.js} +1 -1
  115. package/dist/gateway/static/root/assets/{phone-settings-page-BAKOJllx.js → phone-settings-page-DEvyfoAt.js} +1 -1
  116. package/dist/gateway/static/root/assets/{phone-workspace-store-CDtfKAUX.js → phone-workspace-store-9hDVXN9z.js} +1 -1
  117. package/dist/gateway/static/root/assets/{plugin-details-dialog-BpPMZLLz.js → plugin-details-dialog-BI--oe7J.js} +1 -1
  118. package/dist/gateway/static/root/assets/{preference-select-fields-BS-XMhb4.js → preference-select-fields-DAhA9Z56.js} +1 -1
  119. package/dist/gateway/static/root/assets/{preview-runtime-D8kxmrLV.js → preview-runtime-DNxSgx2a.js} +3 -3
  120. package/dist/gateway/static/root/assets/{product-automation-feedback-CDjJlwol.js → product-automation-feedback-ChMWhk-X.js} +1 -1
  121. package/dist/gateway/static/root/assets/{product-open-page-BUqA67HG.js → product-open-page-KyiYh48g.js} +1 -1
  122. package/dist/gateway/static/root/assets/{product-preview-content-CowHxHNk.js → product-preview-content-BSj9eoc8.js} +1 -1
  123. package/dist/gateway/static/root/assets/{product-preview-modal-BJDwL7x3.js → product-preview-modal-DhONFWvj.js} +2 -2
  124. package/dist/gateway/static/root/assets/{project-detail-page-CJQuslC9.js → project-detail-page-DA11E8Iz.js} +1 -1
  125. package/dist/gateway/static/root/assets/{project-understanding-eH4uN6k8.js → project-understanding-DjOdtNHh.js} +1 -1
  126. package/dist/gateway/static/root/assets/{projects-page-DFo_ESE9.js → projects-page-3Y7Bj3vP.js} +1 -1
  127. package/dist/gateway/static/root/assets/{providers-api-Df4w723e.js → providers-api-BKDzcCQr.js} +1 -1
  128. package/dist/gateway/static/root/assets/{recording-upload-DnRi2KQ5.js → recording-upload-Bg_HBFTj.js} +1 -1
  129. package/dist/gateway/static/root/assets/{registry-api-Dw8Ou9VV.js → registry-api-C91pIb6J.js} +1 -1
  130. package/dist/gateway/static/root/assets/{remote-access-hub-B7jGK_WY.js → remote-access-hub-DZjxntjM.js} +1 -1
  131. package/dist/gateway/static/root/assets/{resource-unavailable-CZV8cItD.js → resource-unavailable-D8FrMGjx.js} +1 -1
  132. package/dist/gateway/static/root/assets/{right-workspace-store-DOyKalyG.js → right-workspace-store-D3nQJkDG.js} +1 -1
  133. package/dist/gateway/static/root/assets/route-preload-B_CMsS70.js +2 -0
  134. package/dist/gateway/static/root/assets/routine-panel-BTuii051.js +2 -0
  135. package/dist/gateway/static/root/assets/{runtime-tools-api-2sksjMtE.js → runtime-tools-api-CbVocuF5.js} +1 -1
  136. package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DPX5htrV.js → runtime-tools-settings-panel-BVcSYWWj.js} +1 -1
  137. package/dist/gateway/static/root/assets/{service-recommendation-list-BnJcjQuF.js → service-recommendation-list-DEIaJSOU.js} +1 -1
  138. package/dist/gateway/static/root/assets/{session-api-CUkWJyfm.js → session-api-M4P3knYu.js} +1 -1
  139. package/dist/gateway/static/root/assets/{session-manager-BRzFtnn4.js → session-manager-DQ0fiEo9.js} +2 -2
  140. package/dist/gateway/static/root/assets/{sessions-page-PjTnKj7l.js → sessions-page-UTEjz3V0.js} +1 -1
  141. package/dist/gateway/static/root/assets/settings-advanced-gate-Cnkvm_q6.js +1 -0
  142. package/dist/gateway/static/root/assets/{settings-advanced-section-Bponzv_k.js → settings-advanced-section-BRNFkPxE.js} +1 -1
  143. package/dist/gateway/static/root/assets/{settings-mode-store-BtgmaA-P.js → settings-mode-store-va_oX_Q8.js} +1 -1
  144. package/dist/gateway/static/root/assets/{settings-page-C1USPFgf.js → settings-page-BVFv8SOp.js} +1 -1
  145. package/dist/gateway/static/root/assets/{settings-page-header-B8nLRdnY.js → settings-page-header-Wx54i9EL.js} +1 -1
  146. package/dist/gateway/static/root/assets/{settings-page-layout-DhOLVJYv.js → settings-page-layout-DDTKMXIb.js} +1 -1
  147. package/dist/gateway/static/root/assets/{setup-interaction-page-CyEO6jAM.js → setup-interaction-page-CaHdjPKk.js} +1 -1
  148. package/dist/gateway/static/root/assets/{setup-status-panel-CNpRqxnq.js → setup-status-panel-D1XJedVC.js} +1 -1
  149. package/dist/gateway/static/root/assets/{share-link-dialog-kZSUpbBN.js → share-link-dialog-C8bVavnr.js} +1 -1
  150. package/dist/gateway/static/root/assets/{share-preview-page-9-aTa7_a.js → share-preview-page-3QEwX9TP.js} +1 -1
  151. package/dist/gateway/static/root/assets/{shares-api-BxQqmxkq.js → shares-api-Dp6g-bfj.js} +1 -1
  152. package/dist/gateway/static/root/assets/{shares-settings-DoMMw8Ud.js → shares-settings-BbxnfBhc.js} +1 -1
  153. package/dist/gateway/static/root/assets/{skill-api-V3Y6pTog.js → skill-api-BTiymSB8.js} +1 -1
  154. package/dist/gateway/static/root/assets/{skill-list-api-BSHfM0qb.js → skill-list-api-BM8u0Bs_.js} +1 -1
  155. package/dist/gateway/static/root/assets/{skill-reload-api-Dq3F9pqP.js → skill-reload-api-BP2ecrz2.js} +1 -1
  156. package/dist/gateway/static/root/assets/{skills-page-DGWy1Jns.js → skills-page-DTrONo3c.js} +1 -1
  157. package/dist/gateway/static/root/assets/{space-api-BkXqM2MT.js → space-api-Ix7mfZDi.js} +1 -1
  158. package/dist/gateway/static/root/assets/space-page-Dpy0BPbT.js +2 -0
  159. package/dist/gateway/static/root/assets/{space-workbook-7S_FfalA.js → space-workbook-CxV64kNP.js} +1 -1
  160. package/dist/gateway/static/root/assets/{system-settings-panel-DSmwwU8o.js → system-settings-panel-C2BWOeNW.js} +1 -1
  161. package/dist/gateway/static/root/assets/task-detail-page-DqgGOX0M.js +3 -0
  162. package/dist/gateway/static/root/assets/{task-header-title-DAwu5vni.js → task-header-title-Di5TvRaj.js} +1 -1
  163. package/dist/gateway/static/root/assets/task-run-issue-notice-FMMn1lE6.js +1 -0
  164. package/dist/gateway/static/root/assets/{terminal-panel-store-IpKmyQVN.js → terminal-panel-store-mDqqa0EW.js} +1 -1
  165. package/dist/gateway/static/root/assets/{theme-store-B75oCec7.js → theme-store-kQ-dt8qP.js} +1 -1
  166. package/dist/gateway/static/root/assets/{tracing-settings-page-CVj7aLAl.js → tracing-settings-page-BYAYhuS8.js} +1 -1
  167. package/dist/gateway/static/root/assets/{tunnel-api-TWW8dGwO.js → tunnel-api-XScou7Y8.js} +1 -1
  168. package/dist/gateway/static/root/assets/{understanding-activity-store-NgjWPD55.js → understanding-activity-store-NVT8M3Rv.js} +1 -1
  169. package/dist/gateway/static/root/assets/{understanding-refresh-store-CN-7T5G5.js → understanding-refresh-store-D5pgGLiW.js} +1 -1
  170. package/dist/gateway/static/root/assets/{usage-page-D6mzQviK.js → usage-page-CWMg8m0Q.js} +1 -1
  171. package/dist/gateway/static/root/assets/{use-autosave-BYtW_pgF.js → use-autosave-Iy9pO3fa.js} +1 -1
  172. package/dist/gateway/static/root/assets/{use-composer-attachments-Dn6X6xAP.js → use-composer-attachments-DfSh4D1i.js} +1 -1
  173. package/dist/gateway/static/root/assets/{use-file-preview-expanded-BT0pss9g.js → use-file-preview-expanded-BFw8CA51.js} +1 -1
  174. package/dist/gateway/static/root/assets/{use-generated-media-CuhMqXFp.js → use-generated-media-MuDDqdB3.js} +1 -1
  175. package/dist/gateway/static/root/assets/{use-personal-profile-DxE21oPS.js → use-personal-profile-Csm85ZFS.js} +1 -1
  176. package/dist/gateway/static/root/assets/{use-personal-work-j8AH0g9w.js → use-personal-work-CVmHKsJn.js} +1 -1
  177. package/dist/gateway/static/root/assets/{use-realtime-voice-CNG2yeaO.js → use-realtime-voice-D1zQbDnk.js} +1 -1
  178. package/dist/gateway/static/root/assets/{use-workspace-tree-BohZkOOW.js → use-workspace-tree-B_do34-j.js} +1 -1
  179. package/dist/gateway/static/root/assets/{user-model-page-Dlm-Mmo4.js → user-model-page-BlBvDtwt.js} +1 -1
  180. package/dist/gateway/static/root/assets/{voice-api-key-field-D_o-xx9v.js → voice-api-key-field-DRlguUPt.js} +1 -1
  181. package/dist/gateway/static/root/assets/{voice-config-api-BX2Q9Cgb.js → voice-config-api-B2AO_uL_.js} +1 -1
  182. package/dist/gateway/static/root/assets/{voice-input-shortcut-events-qbqLMfW_.js → voice-input-shortcut-events-jLnl_86X.js} +1 -1
  183. package/dist/gateway/static/root/assets/{voice-player-store-z-upb7lD.js → voice-player-store-C8BTMBVX.js} +1 -1
  184. package/dist/gateway/static/root/assets/{voice-settings-BEhihzNq.js → voice-settings-D8Snr-5R.js} +1 -1
  185. package/dist/gateway/static/root/assets/{work-discovery-overlay-ClPiLw1F.js → work-discovery-overlay-C0oaToAM.js} +1 -1
  186. package/dist/gateway/static/root/assets/{work-discovery-page-BohjMx1A.js → work-discovery-page-IEKvSp0W.js} +1 -1
  187. package/dist/gateway/static/root/assets/{working-directory-picker-modal-CcD0smT0.js → working-directory-picker-modal-ppDpY-AP.js} +1 -1
  188. package/dist/gateway/static/root/assets/{workspace-api-Bpq_rBZM.js → workspace-api-C85sEgvX.js} +2 -2
  189. package/dist/gateway/static/root/assets/workspace-editor-agent-store-CNPlB8xY.js +1 -0
  190. package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-BjJEOajj.js → workspace-file-preview-dialog-DGsFnZh-.js} +1 -1
  191. package/dist/gateway/static/root/assets/{workspace-open-location-menu-Bc8qK8WA.js → workspace-open-location-menu-CGe_tu1_.js} +1 -1
  192. package/dist/gateway/static/root/assets/{workspace-preview-store-QUX-jyAL.js → workspace-preview-store-D8eGmciG.js} +1 -1
  193. package/dist/gateway/static/root/assets/{xopc-cloud-account-card-BWdmU4iy.js → xopc-cloud-account-card-L-HD-Zf7.js} +1 -1
  194. package/dist/gateway/static/root/index.html +95 -94
  195. package/dist/package.js +1 -1
  196. package/dist/src/activity/emitter.js +1 -1
  197. package/dist/src/activity/index.js +1 -1
  198. package/dist/src/agent/agent-manager.js +6 -6
  199. package/dist/src/agent/agent-scope.js +1 -1
  200. package/dist/src/agent/background-review/run-background-review.js +1 -1
  201. package/dist/src/agent/bootstrap/load-bootstrap-files.js +1 -1
  202. package/dist/src/agent/coding/repository-instructions.js +1 -1
  203. package/dist/src/agent/coding/workspace-revision.js +2 -2
  204. package/dist/src/agent/commands/command-registry.js +3 -3
  205. package/dist/src/agent/commands/commandMounts.js +1 -1
  206. package/dist/src/agent/context/workspace-seed.js +2 -2
  207. package/dist/src/agent/context/workspace-state.js +1 -1
  208. package/dist/src/agent/data-acquisition/service.js +1 -1
  209. package/dist/src/agent/embedded/codemode-output.js +4 -4
  210. package/dist/src/agent/embedded/run-for-session.js +2 -2
  211. package/dist/src/agent/embedded/run-turn.js +1 -1
  212. package/dist/src/agent/embedded/session-runner.js +1 -1
  213. package/dist/src/agent/external-tools/cliProvider.js +2 -2
  214. package/dist/src/agent/external-tools/composio-provider.js +1 -1
  215. package/dist/src/agent/image/load-image-media.js +2 -2
  216. package/dist/src/agent/mcp/connection-drafts.d.ts +1 -1
  217. package/dist/src/agent/mcp/connection-drafts.js +15 -2
  218. package/dist/src/agent/mcp/native-mcp.js +1 -1
  219. package/dist/src/agent/memory/compaction.js +1 -1
  220. package/dist/src/agent/memory/plugin-discovery.js +1 -1
  221. package/dist/src/agent/prompt/response-language.js +1 -1
  222. package/dist/src/agent/reply/post-compaction-context.js +1 -1
  223. package/dist/src/agent/reply/workspace-boundary-read.js +1 -1
  224. package/dist/src/agent/sandbox/fileAccess.js +1 -1
  225. package/dist/src/agent/sandbox/native-command.js +1 -1
  226. package/dist/src/agent/sandbox/path-policy.js +2 -2
  227. package/dist/src/agent/service/process-direct-streaming.js +2 -2
  228. package/dist/src/agent/service.js +1 -1
  229. package/dist/src/agent/skills/config.js +1 -1
  230. package/dist/src/agent/skills/hub-hash.js +2 -2
  231. package/dist/src/agent/skills/hub-pull.js +4 -4
  232. package/dist/src/agent/skills/managed-store.js +1 -1
  233. package/dist/src/agent/skills/skill-sources.js +2 -2
  234. package/dist/src/agent/starter-agents.js +1 -1
  235. package/dist/src/agent/tasks/task-judge-service.js +1 -1
  236. package/dist/src/agent/tools/create-share-tool.js +1 -1
  237. package/dist/src/agent/tools/factory.js +1 -1
  238. package/dist/src/agent/tools/image-generate-tool.js +1 -1
  239. package/dist/src/agent/tools/personal-memory-tool.js +1 -1
  240. package/dist/src/agent/tools/review-workspace.js +1 -1
  241. package/dist/src/agent/tools/scoped-workspace-tools.js +2 -2
  242. package/dist/src/agent/tools/task-collaboration-tool.js +1 -1
  243. package/dist/src/agent/tools/tool-media.js +1 -1
  244. package/dist/src/agent/tools/xopc-use-tool.js +3 -3
  245. package/dist/src/agent-catalog/repository.js +1 -1
  246. package/dist/src/agent-catalog/service.js +1 -1
  247. package/dist/src/auth/credentials.js +1 -1
  248. package/dist/src/auth/oauth/openai.js +1 -1
  249. package/dist/src/auth/oauth/xopc-cloud.js +1 -1
  250. package/dist/src/auth/oauth-provider-lock.js +2 -2
  251. package/dist/src/auth/profiles/store.js +1 -1
  252. package/dist/src/automations/service/action-executor.js +1 -1
  253. package/dist/src/automations/service/automation-service.js +1 -1
  254. package/dist/src/backup/archive.js +5 -5
  255. package/dist/src/browser/cache-dir-policy.js +1 -1
  256. package/dist/src/browser/native-messaging-host.js +1 -1
  257. package/dist/src/browser/providers/browser-ext-install.js +7 -7
  258. package/dist/src/browser/providers/playwright-doctor.js +2 -2
  259. package/dist/src/browser/runtime/browser-runtime.js +1 -1
  260. package/dist/src/capabilities/capability-catalog.js +1 -1
  261. package/dist/src/channels/catalog/channel-catalog-service.js +1 -1
  262. package/dist/src/channels/pairing/allow-from-file.js +1 -1
  263. package/dist/src/channels/pairing/pairing-store.js +2 -2
  264. package/dist/src/cli/commands/doctor/checks/config-health.js +1 -1
  265. package/dist/src/cli/commands/doctor/checks/database-schema.js +2 -2
  266. package/dist/src/cli/commands/doctor/checks/state-integrity.js +1 -1
  267. package/dist/src/cli/commands/doctor/checks/workspace-status.js +1 -1
  268. package/dist/src/cli/commands/extension-agent-plugin.js +1 -1
  269. package/dist/src/cli/commands/extension-create.js +1 -1
  270. package/dist/src/cli/commands/extension-dev.js +1 -1
  271. package/dist/src/cli/commands/extension-marketplace.js +2 -2
  272. package/dist/src/cli/commands/extension-pack.js +3 -3
  273. package/dist/src/cli/commands/extension.js +1 -1
  274. package/dist/src/cli/commands/gateway/logs.js +1 -1
  275. package/dist/src/cli/commands/gateway/shared.js +1 -1
  276. package/dist/src/cli/commands/mcp.js +1 -1
  277. package/dist/src/cli/utils/init-workspace-core.js +2 -2
  278. package/dist/src/config/config-file.js +1 -1
  279. package/dist/src/config/loader.js +1 -1
  280. package/dist/src/config/models-json.js +1 -1
  281. package/dist/src/config/paths-state.js +1 -1
  282. package/dist/src/config/workspace-path.js +1 -1
  283. package/dist/src/connectors/cli/assets.js +1 -1
  284. package/dist/src/connectors/cli/installer.js +3 -3
  285. package/dist/src/connectors/connected-source-ingestion.js +1 -1
  286. package/dist/src/connectors/content-enrichment.js +2 -2
  287. package/dist/src/connectors/plugin-connection.js +1 -1
  288. package/dist/src/daemon/constants.js +1 -1
  289. package/dist/src/daemon/install-plan.js +2 -2
  290. package/dist/src/daemon/launchd.js +3 -3
  291. package/dist/src/daemon/schtasks.js +2 -2
  292. package/dist/src/daemon/systemd.js +3 -3
  293. package/dist/src/discussions/action-tasks.js +1 -1
  294. package/dist/src/discussions/live-worker.js +1 -1
  295. package/dist/src/discussions/recording.js +3 -3
  296. package/dist/src/discussions/repository.js +1 -1
  297. package/dist/src/discussions/sealer.js +2 -2
  298. package/dist/src/discussions/service.js +1 -1
  299. package/dist/src/endpoint-tools/bridge-host.js +1 -1
  300. package/dist/src/endpoint-tools/delegation.js +1 -1
  301. package/dist/src/endpoint-tools/provider-operation-journal.js +1 -1
  302. package/dist/src/endpoint-tools/runtime.js +1 -1
  303. package/dist/src/endpoint-tools/upload-service.js +2 -2
  304. package/dist/src/execution-environments/local-worktree-manager.js +3 -3
  305. package/dist/src/execution-environments/store.js +1 -1
  306. package/dist/src/execution-environments/worktree-safety.js +1 -1
  307. package/dist/src/extensions/agent-plugins/auth.js +2 -2
  308. package/dist/src/extensions/agent-plugins/branding.js +2 -2
  309. package/dist/src/extensions/agent-plugins/capability-access.js +1 -1
  310. package/dist/src/extensions/agent-plugins/cli-authorization.js +3 -3
  311. package/dist/src/extensions/agent-plugins/contained-path.js +1 -1
  312. package/dist/src/extensions/agent-plugins/credentials.js +1 -1
  313. package/dist/src/extensions/agent-plugins/formats.js +1 -1
  314. package/dist/src/extensions/agent-plugins/inventory.js +1 -1
  315. package/dist/src/extensions/agent-plugins/mcp-adapter.js +3 -3
  316. package/dist/src/extensions/agent-plugins/resources.js +2 -2
  317. package/dist/src/extensions/agent-plugins/setup.js +4 -4
  318. package/dist/src/extensions/agent-plugins/skill-catalog.js +1 -1
  319. package/dist/src/extensions/agent-plugins/source-catalog.js +3 -3
  320. package/dist/src/extensions/agent-plugins/sources.js +2 -2
  321. package/dist/src/extensions/agent-plugins/store.js +5 -5
  322. package/dist/src/extensions/agent-plugins/user-config.js +2 -2
  323. package/dist/src/extensions/agent-plugins/validation.js +2 -2
  324. package/dist/src/extensions/connector-dependencies.js +1 -1
  325. package/dist/src/extensions/install-transaction.js +1 -1
  326. package/dist/src/extensions/install.js +1 -1
  327. package/dist/src/extensions/loader.js +1 -1
  328. package/dist/src/extensions/lockfile.js +1 -1
  329. package/dist/src/extensions/update.js +2 -2
  330. package/dist/src/files/file-service.js +4 -4
  331. package/dist/src/files/file-versions.js +1 -1
  332. package/dist/src/gateway/file-path-classifier.js +1 -1
  333. package/dist/src/gateway/hono/lib/static-ui.js +2 -2
  334. package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
  335. package/dist/src/gateway/hono/routes/browser.js +1 -1
  336. package/dist/src/gateway/hono/routes/connectors.js +1 -1
  337. package/dist/src/gateway/hono/routes/extension-ui-assets.js +1 -1
  338. package/dist/src/gateway/hono/routes/host-fs.js +1 -1
  339. package/dist/src/gateway/hono/routes/local-apps.js +2 -2
  340. package/dist/src/gateway/hono/routes/location-sharing.js +1 -1
  341. package/dist/src/gateway/hono/routes/memory-learning.js +1 -1
  342. package/dist/src/gateway/hono/routes/mobile-capability-panels.d.ts +3 -1
  343. package/dist/src/gateway/hono/routes/mobile-capability-panels.js +121 -44
  344. package/dist/src/gateway/hono/routes/notes.js +1 -1
  345. package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
  346. package/dist/src/gateway/hono/routes/phone-setup.js +1 -1
  347. package/dist/src/gateway/hono/routes/phone.js +1 -1
  348. package/dist/src/gateway/hono/routes/projects.js +2 -2
  349. package/dist/src/gateway/hono/routes/provider-setup.js +1 -1
  350. package/dist/src/gateway/hono/routes/sessions.js +1 -1
  351. package/dist/src/gateway/hono/routes/shares.js +2 -2
  352. package/dist/src/gateway/hono/routes/tasks.js +1 -1
  353. package/dist/src/gateway/hono/routes/video-generation.js +1 -1
  354. package/dist/src/gateway/lock.js +2 -2
  355. package/dist/src/gateway/next-turn-suggestions/snapshot.js +1 -1
  356. package/dist/src/gateway/security/device-request-proof.js +1 -1
  357. package/dist/src/gateway/security/phone-access.js +1 -1
  358. package/dist/src/gateway/service/agent-runner.js +1 -1
  359. package/dist/src/gateway/service/session-input-coordinator.js +1 -1
  360. package/dist/src/gateway/service.js +4 -4
  361. package/dist/src/gateway/session-context-summary.js +1 -1
  362. package/dist/src/gateway/workspace-editor-path.js +1 -1
  363. package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
  364. package/dist/src/home-intelligence/follow-ups.js +1 -1
  365. package/dist/src/home-intelligence/host.js +1 -1
  366. package/dist/src/home-intelligence/repository.js +1 -1
  367. package/dist/src/home-intelligence/routines.js +1 -1
  368. package/dist/src/imports/files.js +3 -3
  369. package/dist/src/imports/importService.js +3 -3
  370. package/dist/src/imports/inventory.js +2 -2
  371. package/dist/src/imports/planner.js +2 -2
  372. package/dist/src/imports/productImport.js +1 -1
  373. package/dist/src/imports/scanner.js +2 -2
  374. package/dist/src/imports/sources.js +2 -2
  375. package/dist/src/infra/brew.js +1 -1
  376. package/dist/src/infra/package-runtime-check.js +2 -2
  377. package/dist/src/infra/path-env.js +2 -2
  378. package/dist/src/infra/process-diagnostics.js +1 -1
  379. package/dist/src/infra/restart.js +1 -1
  380. package/dist/src/infra/update-check.js +1 -1
  381. package/dist/src/infra/update-global.js +1 -1
  382. package/dist/src/infra/update-lock.js +1 -1
  383. package/dist/src/infra/update-startup.js +1 -1
  384. package/dist/src/infra/write-file-atomic.js +2 -2
  385. package/dist/src/knowledge/local-folder-adapter.js +1 -1
  386. package/dist/src/local-apps/acceptance.js +1 -1
  387. package/dist/src/local-apps/artifact-files.js +2 -2
  388. package/dist/src/local-apps/execution-authority.js +1 -1
  389. package/dist/src/local-apps/p1-services.js +3 -3
  390. package/dist/src/local-apps/preview-fixtures.js +1 -1
  391. package/dist/src/local-apps/preview-sessions.js +2 -2
  392. package/dist/src/local-apps/preview-worker.js +2 -2
  393. package/dist/src/local-apps/public-assets.js +2 -2
  394. package/dist/src/local-apps/scaffold.js +1 -1
  395. package/dist/src/local-apps/service.js +5 -5
  396. package/dist/src/local-apps/snapshot-store.js +1 -1
  397. package/dist/src/local-apps/store.js +1 -1
  398. package/dist/src/media/session-references.js +1 -1
  399. package/dist/src/media/store.js +1 -1
  400. package/dist/src/memory-learning/source-learning.js +1 -1
  401. package/dist/src/memory-learning/task-receipts.js +1 -1
  402. package/dist/src/migrations/runner.js +1 -1
  403. package/dist/src/music-generation/artifact.js +2 -2
  404. package/dist/src/notes/capabilities/write.js +1 -1
  405. package/dist/src/notes/service.js +2 -2
  406. package/dist/src/notes/store.js +2 -2
  407. package/dist/src/notifications/harmony-push.js +1 -1
  408. package/dist/src/notifications/store.js +1 -1
  409. package/dist/src/observability/store.js +1 -1
  410. package/dist/src/personal-agent/proactivity/repository.js +1 -1
  411. package/dist/src/personal-agent/proactivity/service.js +2 -2
  412. package/dist/src/personal-agent/reply-composer.js +3 -3
  413. package/dist/src/personal-agent/request-delivery.js +1 -1
  414. package/dist/src/personal-agent/request-service.js +1 -1
  415. package/dist/src/personal-agent/result-reader.js +3 -3
  416. package/dist/src/personal-agent/unread.js +1 -1
  417. package/dist/src/pets/factory.js +1 -1
  418. package/dist/src/pets/validator.js +1 -1
  419. package/dist/src/phone/adb-driver.js +3 -3
  420. package/dist/src/phone/assistance-service.js +1 -1
  421. package/dist/src/phone/assistance.js +1 -1
  422. package/dist/src/phone/cloud-adb-connection.js +1 -1
  423. package/dist/src/phone/execution-trace.js +1 -1
  424. package/dist/src/phone/hdc-driver.js +3 -3
  425. package/dist/src/phone/hdc-video-tools.js +2 -2
  426. package/dist/src/phone/location-baseline-store.js +1 -1
  427. package/dist/src/phone/location-environment.js +1 -1
  428. package/dist/src/phone/repository.js +1 -1
  429. package/dist/src/phone/ui-session.js +2 -2
  430. package/dist/src/project-trust/trust-store.js +2 -2
  431. package/dist/src/projects/project-kind.js +1 -1
  432. package/dist/src/projects/project-service.js +1 -1
  433. package/dist/src/projects/project-skill-service.js +1 -1
  434. package/dist/src/projects/workspace-project.js +2 -2
  435. package/dist/src/providers/auth-runtime/auth-profile-store.js +1 -1
  436. package/dist/src/providers/model-catalog-persistence.js +1 -1
  437. package/dist/src/providers/xopc-cloud-credit-budget.js +1 -1
  438. package/dist/src/runtime-tools/archive.js +2 -2
  439. package/dist/src/runtime-tools/downloader.js +2 -2
  440. package/dist/src/runtime-tools/harmony-dependencies.js +1 -1
  441. package/dist/src/runtime-tools/manager.js +1 -1
  442. package/dist/src/runtime-tools/manifest-store.js +1 -1
  443. package/dist/src/runtime-tools/phone-dependencies.js +1 -1
  444. package/dist/src/session/init-session-turn.js +1 -1
  445. package/dist/src/session/resolve-session.js +1 -1
  446. package/dist/src/share/hosted-note-publication.js +1 -1
  447. package/dist/src/share/hosted-session-share.js +2 -2
  448. package/dist/src/share/hosted-static-site-publication.js +2 -2
  449. package/dist/src/share/note-share-service.js +1 -1
  450. package/dist/src/share/session-share-service.js +2 -2
  451. package/dist/src/share/share-auto.js +2 -2
  452. package/dist/src/share/share-store.js +2 -2
  453. package/dist/src/share/share-zip.js +1 -1
  454. package/dist/src/share/site-share-store.js +1 -1
  455. package/dist/src/share/site-static-serve.js +1 -1
  456. package/dist/src/space/budget-workbook.js +1 -1
  457. package/dist/src/space/ingest.js +1 -1
  458. package/dist/src/space/repository.js +3 -3
  459. package/dist/src/space/workbook-turn.js +1 -1
  460. package/dist/src/space/worker.js +1 -1
  461. package/dist/src/storage/sqlite/ai-usage-repository.js +1 -1
  462. package/dist/src/storage/sqlite/clarification-wait-repository.js +2 -2
  463. package/dist/src/storage/sqlite/connection.js +3 -3
  464. package/dist/src/storage/sqlite/conversation-repository.js +2 -2
  465. package/dist/src/storage/sqlite/desktop-execution-repository.js +1 -1
  466. package/dist/src/storage/sqlite/desktop-execution-stop-repository.js +1 -1
  467. package/dist/src/storage/sqlite/device-access-repository.js +1 -1
  468. package/dist/src/storage/sqlite/device-pairing-approval.js +1 -1
  469. package/dist/src/storage/sqlite/index.js +1 -1
  470. package/dist/src/storage/sqlite/offline-access.js +1 -1
  471. package/dist/src/storage/sqlite/schema-upgrade.js +3 -3
  472. package/dist/src/storage/sqlite/session-creation-repository.js +1 -1
  473. package/dist/src/storage/sqlite/session-input-control-repository.js +1 -1
  474. package/dist/src/storage/sqlite/session-repository.js +1 -1
  475. package/dist/src/storage/sqlite/sql-assets.js +1 -1
  476. package/dist/src/storage/sqlite/windows-database-owners.js +1 -1
  477. package/dist/src/tasks/capabilities/management.js +1 -1
  478. package/dist/src/tasks/capabilities/relations.js +1 -1
  479. package/dist/src/tasks/task-allocation-service.js +2 -2
  480. package/dist/src/tasks/task-application-service.js +1 -1
  481. package/dist/src/tasks/task-context-assembler.js +2 -2
  482. package/dist/src/tasks/task-criterion-review-repository.js +1 -1
  483. package/dist/src/tasks/task-deliverables.js +1 -1
  484. package/dist/src/tasks/task-handoff-service.js +1 -1
  485. package/dist/src/tasks/task-handoff.js +8 -8
  486. package/dist/src/tasks/task-json-acceptance.js +2 -2
  487. package/dist/src/tasks/task-research-repair.js +2 -2
  488. package/dist/src/tasks/task-research-result.js +2 -2
  489. package/dist/src/tasks/task-result-delivery-repository.js +1 -1
  490. package/dist/src/tasks/task-result-delivery-service.js +2 -2
  491. package/dist/src/tasks/task-run-coordinator.js +2 -2
  492. package/dist/src/tasks/task-run-repository.js +1 -1
  493. package/dist/src/tasks/task-signal-service.js +1 -1
  494. package/dist/src/tasks/task-workspace-verification.js +3 -3
  495. package/dist/src/tui/backends/embedded-backend.js +5 -5
  496. package/dist/src/tui/backends/embedded-drafts.js +2 -2
  497. package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
  498. package/dist/src/tui/clipboard-image.js +3 -3
  499. package/dist/src/tui/theme-manager.js +1 -1
  500. package/dist/src/tui/tui-command-formatters.js +1 -1
  501. package/dist/src/tui/tui-commands.js +1 -1
  502. package/dist/src/tui/tui-keybindings-file.js +1 -1
  503. package/dist/src/tui/tui-scoped-models.js +1 -1
  504. package/dist/src/tui/tui-settings.js +1 -1
  505. package/dist/src/tui/tui.js +3 -3
  506. package/dist/src/tunnel/frpc-binary.js +2 -2
  507. package/dist/src/tunnel/frpc-config.js +1 -1
  508. package/dist/src/tunnel/frpc-extract.js +2 -2
  509. package/dist/src/tunnel/tunnel-state.js +1 -1
  510. package/dist/src/user-context/access-policy.js +1 -1
  511. package/dist/src/user-context/changes.d.ts +1 -1
  512. package/dist/src/user-model/repository.js +1 -1
  513. package/dist/src/utils/index.js +1 -1
  514. package/dist/src/utils/logger/index.js +1 -1
  515. package/dist/src/utils/logger.js +1 -1
  516. package/dist/src/video-generation/artifact.js +2 -2
  517. package/dist/src/video-generation/repository.js +1 -1
  518. package/dist/src/voice/audio/normalize.js +2 -2
  519. package/dist/src/voice/realtime/memory-context.d.ts +1 -1
  520. package/dist/src/voice/realtime/memory-context.js +12 -10
  521. package/dist/src/voice/realtime/omniEngine.js +32 -12
  522. package/dist/src/voice/realtime/omniRoute.js +1 -1
  523. package/dist/src/voice/realtime/persona-context.js +1 -1
  524. package/dist/src/voice/realtime/runtime.js +16 -12
  525. package/dist/src/voice/tts/providers/edge-speech.js +2 -2
  526. package/dist/src/work-discovery/candidate-discovery.js +3 -3
  527. package/dist/src/work-discovery/probe.js +4 -4
  528. package/dist/src/work-discovery/service.js +2 -2
  529. package/package.json +2 -2
  530. package/dist/gateway/static/root/assets/capabilities-settings-panel-9lLzGQ-F.js +0 -8
  531. package/dist/gateway/static/root/assets/connected-providers-grid-ds0J-7Qc.js +0 -1
  532. package/dist/gateway/static/root/assets/gateway-realtime-store-DTcS5Hqk.js +0 -1
  533. package/dist/gateway/static/root/assets/home-page-CwUc6499.js +0 -8
  534. package/dist/gateway/static/root/assets/index-BWJ0tePz.js +0 -11
  535. package/dist/gateway/static/root/assets/index-C-4H3NhI.css +0 -1
  536. package/dist/gateway/static/root/assets/note-image-lightbox-D-7a_BCN.js +0 -1
  537. package/dist/gateway/static/root/assets/route-preload-N7Ieq1wB.js +0 -2
  538. package/dist/gateway/static/root/assets/routine-panel-BvBR3khG.js +0 -2
  539. package/dist/gateway/static/root/assets/settings-advanced-gate-JrndQtAT.js +0 -1
  540. package/dist/gateway/static/root/assets/space-page-BAp28k1I.js +0 -2
  541. package/dist/gateway/static/root/assets/task-detail-page-15Qm8kNq.js +0 -3
  542. package/dist/gateway/static/root/assets/task-result-evidence-BqAt23uk.js +0 -1
  543. package/dist/gateway/static/root/assets/workspace-editor-agent-store-BkCt8mdN.js +0 -1
@@ -1 +1 @@
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,h as a}from"./chunk-KS7C4IRE-DIIvxCDx.js";import{i as o,n as s,o as c}from"./locale-store-5DzxIIeq.js";import{t as l}from"./messages-CGGOcV9B.js";import{a as u,i as d,o as f,r as ee,s as p,t as m}from"./dist-DlirbHVs.js";import{t as h}from"./check-DUBLcKHA.js";import{t as g}from"./secret-input-DsjfQmDn.js";import{t as _}from"./key-round-DWbpyU2U.js";import{t as v}from"./link-2-D_ZKYUW7.js";import{t as y}from"./loader-circle-CifKLtgG.js";import{t as b}from"./lock-keyhole-DEK5kH0u.js";import{t as x}from"./x-B_N4OPjy.js";import{t as S}from"./skeleton-DzdOeGYz.js";import{i as te}from"./vendor-swr-CdRzEUwF.js";import{t as C}from"./button-C5tRaJxt.js";var w=n(),T=e(t(),1),E=r(),D={zh:{title:`连接服务`,secret:`访问密钥`,hint:`仅保存到凭据服务,不进入聊天或模型。`,tokenPortal:`去服务方获取 MCP Token`,tokenReady:`连接已准备好。获取 Token 后粘贴到下方。`,tokenRecipient:`提交后将连接到`,sourceUnverified:`来源归属尚未独立核实。`,invalidToken:`密钥未被接受,请核对后重新输入。`,submit:`保存并连接`,login:`继续登录`,waiting:`在服务页面完成授权,这里会自动继续。`,check:`重新检查`,checking:`正在验证连接`,cancel:`取消连接`,back:`返回对话`,close:`暂时关闭`,later:`稍后继续`,done:`完成`,failed:`暂时无法连接,请检查服务地址或权限后重试。`,expired:`请求已过期,请回到对话重新发起。`,cancelled:`此连接请求已取消。`,reload:`配置已保存。重启 Gateway 后,连接才能生效。`,details:`连接详情`,approve:`允许这次连接`,approval:`确认连接到这个服务`,shared:`连接将供此网关的助手使用,不会授予微信用户管理权限。`,identity:`来自微信私聊`,endpoint:`服务地址`,purpose:`要完成的事`,tokenDescription:`输入服务提供的访问密钥,即可继续原来的任务。`,accessDeniedToken:`服务拒绝了当前访问。若此服务需要 Token,请在这里输入;账号或服务权限也可能需要检查。`,connected:`已连接`,continuing:`正在原微信对话中继续处理,无需发送“继续”。`,delivered:`结果已发送到原微信对话。`,returnWeixin:`现在可以关闭此页,返回微信。`,closed:`返回微信即可继续对话`,reopen:`继续配置`,deliveryFailed:`连接已完成,结果暂未发送到微信。重发不会重新执行任务。`,retryDelivery:`重试发送结果`,secure:`安全连接`,loading:`正在准备连接`,checkingDescription:`正在检查服务和所需权限。`},en:{title:`Connect service`,secret:`Access key`,hint:`Saved to credential storage, never chat or the model.`,tokenPortal:`Get an MCP Token from the provider`,tokenReady:`Connection is prepared. Get your Token and paste it below.`,tokenRecipient:`Submitting connects to`,sourceUnverified:`Publisher ownership has not been independently verified.`,invalidToken:`This key was rejected. Check it and try again.`,submit:`Save and connect`,login:`Continue sign-in`,waiting:`Finish authorizing on the service page. This will continue automatically.`,check:`Check again`,checking:`Verifying connection`,cancel:`Cancel connection`,back:`Return to chat`,close:`Close for now`,later:`Continue later`,done:`Done`,failed:`Unable to connect. Check the service address or permissions and try again.`,expired:`This request expired. Return to chat to start again.`,cancelled:`This connection request was cancelled.`,reload:`Configuration is saved. Restart the Gateway to activate the connection.`,details:`Connection details`,approve:`Approve this connection`,approval:`Confirm this service connection`,shared:`The connection is shared with this Gateway’s assistants. It grants no administration rights to Weixin users.`,identity:`From a Weixin chat`,endpoint:`Service address`,purpose:`Your request`,tokenDescription:`Enter the access key from your service to continue your task.`,accessDeniedToken:`The service refused access. If it requires a Token, enter it here. Account or service permissions may also need attention.`,connected:`Connected`,continuing:`Continuing in the original Weixin chat. No follow-up message needed.`,delivered:`The result was sent to your original Weixin chat.`,returnWeixin:`You can close this page and return to Weixin.`,closed:`Return to Weixin to continue chatting`,reopen:`Continue setup`,deliveryFailed:`Connected, but the result could not be sent to Weixin. Resending will not run the task again.`,retryDelivery:`Retry result delivery`,secure:`Secure connection`,loading:`Preparing connection`,checkingDescription:`Checking the service and required permissions.`}};function O({setupId:e,onClose:t}){let n=s(e=>e.language),r=D[n],i=`/api/mcp/setup/${encodeURIComponent(e)}`,{data:a,error:v,mutate:w}=te(i,async e=>(await c(o(e))).payload,{refreshInterval:e=>e&&(e.returnChannel===`weixin`&&e.phase===`ready`&&![`delivered`,`failed`].includes(e.replyDelivery??``)||![`ready`,`cancelled`].includes(e.phase))?1e3:0}),[O,k]=(0,T.useState)(``),[A,j]=(0,T.useState)({}),[M,N]=(0,T.useState)(!1),[P,F]=(0,T.useState)(!1),I=(0,T.useRef)(``),L=(0,T.useRef)(null),R=async(e,t)=>{if(!(!a||M)){N(!0),F(!1);try{await c(o(i),{method:`POST`,body:JSON.stringify({action:e,expectedVersion:a.version,...t?{value:t}:{}})}),await w()}catch{F(!0),await w()}finally{N(!1)}}};(0,T.useEffect)(()=>{if(!a||M||a.expired||a.phase===`cancelled`)return;if(a.phase===`ready`&&!a.reloadRequired&&a.returnChannel!==`weixin`){t(a);return}if(P)return;let n=a.requiresRecheck||a.phase===`planned`||[`connected`,`error`,`cancelled`].includes(a.authState??``)?`advance`:a.phase===`oauth_required`?`authorize`:void 0,r=`${e}:${a.version}:${n}`;n&&I.current!==r&&(I.current=r,R(n))},[a,M,P,t,e]);let z=!!(a?.expired||a?.phase===`cancelled`),B=!!(a?.approveWithToken||a?.documentedTokenPortal&&a.canReplaceToken&&!a.returnChannel),V=a?.secretFields?.length?a.secretFields:[{id:`token`,label:r.secret}],H=!!(O||Object.values(A).some(Boolean)),U=!!(a?.nextRetryAt&&a.nextRetryAt>Date.now()),ne=V.every(e=>(e.id===`token`?O:A[e.id]??``).trim()),W=a?.phase===`ready`&&!a.reloadRequired&&!z,G=a?.phase===`approval_required`&&!z?a.approval:void 0,K=a?.phase===`approval_required`&&!z?a.planApproval:void 0,q=!!(G||K&&!a?.approveWithToken),J=a&&(a.approveWithToken||a.phase===`token_required`||a.phase===`auth_unknown`&&a.canProvideToken||a.phase===`blocked`&&(a.canReplaceToken||a.canProvideToken))&&!a.requiresRecheck&&!z&&!a.reloadRequired,Y=a?.phase===`authorizing`&&!z&&!a.reloadRequired,X=W&&a?.returnChannel===`weixin`&&a.replyDelivery===`failed`,Z=(a?.phase===`blocked`||a?.phase===`auth_unknown`)&&!J&&!z,re=a?.expired?r.expired:a?.phase===`cancelled`?r.cancelled:a?.reloadRequired?r.reload:W?X?r.deliveryFailed:a?.replyDelivery===`delivered`?r.delivered:a?.returnChannel===`weixin`&&a.continuationQueued?r.continuing:r.connected:q?r.approval:U?n===`zh`?`服务要求等待,将在 ${new Date(a.nextRetryAt).toLocaleTimeString()} 后有限重试。`:`Waiting until ${new Date(a.nextRetryAt).toLocaleTimeString()} before a bounded retry.`:M?r.checkingDescription:a?.phase===`auth_unknown`&&!a.canProvideToken?n===`zh`?`无法确认服务的认证方式。请核对官方接入文档和服务地址后重新检查。`:`Could not verify the authentication method. Check the official setup guide and service address, then recheck.`:a?.phase===`auth_unknown`?n===`zh`?`认证方式尚未确定。若服务提供 Token,可在此输入;如需 OAuth,请核实接入资料后重新检查。`:`Authentication is not yet determined. Enter a Token only if your service provides one; for OAuth, verify the integration guide and recheck.`:J?a.errorCode===`credential_rejected`?r.invalidToken:B?r.tokenReady:a.canProvideToken?r.accessDeniedToken:r.tokenDescription:Y?r.waiting:v||Z||P?r.failed:r.checkingDescription,Q=()=>{M||(k(``),j({}),t(a))},$=`min-h-12 w-full rounded-xl text-[15px]`,ie=W?h:J?_:b;return(0,E.jsx)(m,{open:!0,onOpenChange:e=>{e||Q()},children:(0,E.jsxs)(f,{children:[(0,E.jsx)(u,{className:`fixed inset-0 z-[70] bg-scrim backdrop-blur-sm`}),(0,E.jsxs)(ee,{onOpenAutoFocus:e=>{e.preventDefault(),L.current?.focus()},onPointerDownOutside:e=>{(M||H)&&e.preventDefault()},onEscapeKeyDown:e=>{M&&e.preventDefault()},className:`fixed inset-x-0 bottom-0 z-[70] flex h-[min(36rem,calc(100dvh-1rem))] flex-col overflow-hidden rounded-t-3xl border border-edge bg-surface-overlay text-fg shadow-elevated sm:inset-x-auto sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:h-[min(36rem,calc(100dvh-3rem))] sm:w-[28rem] sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-3xl`,children:[(0,E.jsxs)(`header`,{className:`relative shrink-0 px-6 pb-5 pt-8 text-center sm:px-8`,children:[(0,E.jsx)(C,{variant:`ghost`,className:`absolute right-2 top-2 size-11 rounded-full p-0`,"aria-label":r.close,disabled:M,onClick:Q,children:(0,E.jsx)(x,{className:`size-4`,"aria-hidden":!0})}),(0,E.jsx)(`div`,{className:`mx-auto mb-4 flex size-12 items-center justify-center rounded-2xl bg-surface-hover`,children:(0,E.jsx)(ie,{className:`size-6 text-accent-fg`,strokeWidth:1.6,"aria-hidden":!0})}),(0,E.jsx)(p,{ref:L,tabIndex:-1,className:`break-words text-xl font-semibold tracking-tight focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:W?r.connected:a?.displayName||r.title}),a&&!B?(0,E.jsx)(`p`,{className:`mt-1 truncate text-[13px] text-fg-muted`,title:a.endpointOrigin,children:a.endpointOrigin}):null,a?.purpose&&!B&&!q&&!W?(0,E.jsx)(`p`,{className:`mt-2 break-words text-sm text-fg`,children:a.purpose}):null,(0,E.jsx)(d,{role:a?.errorCode===`credential_rejected`||!J&&(v||P||Z||a?.expired||a?.reloadRequired)?`alert`:void 0,className:`mt-3 text-sm leading-relaxed text-fg-muted`,children:re})]}),(0,E.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 pb-4 sm:px-8`,"aria-busy":M,children:[!a&&!v?(0,E.jsxs)(`div`,{role:`status`,"aria-label":r.loading,className:`space-y-3`,children:[(0,E.jsx)(S,{className:`h-12 w-full rounded-xl`}),(0,E.jsx)(S,{className:`h-4 w-3/4`})]}):null,G?(0,E.jsxs)(`section`,{className:`space-y-3`,children:[(0,E.jsxs)(`dl`,{className:`space-y-3 rounded-2xl bg-surface-base p-4 text-sm`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`dt`,{className:`mb-1 text-xs text-fg-muted`,children:r.identity}),(0,E.jsxs)(`dd`,{className:`break-all`,children:[G.accountId,` / `,G.peerId]})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`dt`,{className:`mb-1 text-xs text-fg-muted`,children:r.endpoint}),(0,E.jsx)(`dd`,{className:`break-all`,children:G.endpoint})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`dt`,{className:`mb-1 text-xs text-fg-muted`,children:r.purpose}),(0,E.jsx)(`dd`,{className:`break-words leading-relaxed`,children:G.purpose})]})]}),(0,E.jsx)(`p`,{className:`text-xs leading-relaxed text-fg-muted`,children:r.shared}),K?(0,E.jsxs)(`div`,{className:`space-y-2 rounded-xl bg-surface-base p-3 text-xs`,children:[(0,E.jsx)(`p`,{children:n===`zh`?`同时审阅本次来源与执行计划:`:`Also review this source and execution plan:`}),(0,E.jsx)(`pre`,{className:`whitespace-pre-wrap break-all`,children:JSON.stringify(K,null,2)})]}):null]}):K&&q?(0,E.jsxs)(`section`,{className:`space-y-3 text-sm`,children:[(0,E.jsxs)(`dl`,{className:`space-y-3 rounded-xl bg-surface-base p-4`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`dt`,{className:`text-xs text-fg-muted`,children:r.purpose}),(0,E.jsx)(`dd`,{className:`break-words`,children:K.purpose})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`dt`,{className:`text-xs text-fg-muted`,children:r.endpoint}),(0,E.jsx)(`dd`,{className:`break-all`,children:K.endpoint})]})]}),K.execution?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`p`,{children:n===`zh`?`将在 Gateway 主机运行以下程序,可能下载指定依赖,并按该主机的进程权限访问文件和网络。`:`This program runs on the Gateway host, may download the specified dependency and can access files and network with that process’s permissions.`}),(0,E.jsx)(`pre`,{className:`whitespace-pre-wrap break-all rounded-xl bg-surface-base p-3 text-xs`,children:JSON.stringify(K.execution,null,2)})]}):(0,E.jsx)(`p`,{children:n===`zh`?`来源归属尚未独立核实。请确认服务和以下资料来源后连接。`:`Publisher ownership has not been independently verified. Review the service and sources before connecting.`}),K.sources.length?(0,E.jsx)(`ul`,{className:`space-y-1`,children:K.sources.map(e=>(0,E.jsx)(`li`,{children:(0,E.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex min-h-11 items-center break-all text-accent-fg`,children:e.url})},e.url))}):null]}):J?(0,E.jsxs)(`form`,{id:`mcp-setup-secret-form`,className:`space-y-3`,onSubmit:e=>{e.preventDefault();let t=a.secretFields?.length?Object.fromEntries(V.map(e=>[e.id,e.id===`token`?O:A[e.id]??``])):O;k(``),j({}),R(`token`,t)},children:[B&&a.helpUrl?(0,E.jsxs)(`a`,{href:a.helpUrl,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex min-h-11 flex-wrap items-center gap-x-2 text-sm font-medium text-accent-fg hover:underline`,children:[r.tokenPortal,` `,(0,E.jsxs)(`span`,{className:`break-all text-xs font-normal text-fg-muted`,children:[new URL(a.helpUrl).hostname,` ↗`]})]}):null,V.map(e=>(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`label`,{htmlFor:`mcp-setup-${e.id}`,className:`block text-sm font-medium`,children:B?`MCP Token`:e.label}),(0,E.jsx)(g,{id:`mcp-setup-${e.id}`,value:e.id===`token`?O:A[e.id]??``,onChange:t=>{e.id===`token`?k(t):j(n=>({...n,[e.id]:t})),F(!1)},disabled:M||U,autoComplete:`off`,hideCopy:!0,className:`[&_button]:size-11 [&_button]:p-3`,ariaDescribedBy:`mcp-secret-hint`,ariaInvalid:a.errorCode===`credential_rejected`||P,inputClassName:`min-h-12 rounded-xl pr-14 text-base`,labels:l(n).connectorsSettings.secretInputLabels})]},e.id)),!B&&a.helpUrl?(0,E.jsx)(`a`,{href:a.helpUrl,target:`_blank`,rel:`noopener noreferrer`,className:`text-sm text-accent-fg`,children:n===`zh`?`获取访问密钥`:`Get an access key`}):null,(0,E.jsxs)(`p`,{id:`mcp-secret-hint`,className:`flex items-start gap-1.5 text-xs leading-relaxed text-fg-muted`,children:[(0,E.jsx)(b,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":!0}),(0,E.jsxs)(`span`,{children:[B?(0,E.jsxs)(E.Fragment,{children:[r.tokenRecipient,` `,(0,E.jsx)(`span`,{className:`break-all`,children:a.planApproval?.endpoint??a.endpointOrigin}),(0,E.jsx)(`br`,{})]}):null,r.hint]})]}),P||a.phase===`blocked`&&!a.canProvideToken?(0,E.jsx)(`p`,{role:`alert`,className:`text-sm text-danger`,children:r.failed}):null]}):W&&a?.returnChannel===`weixin`?(0,E.jsx)(`p`,{role:`status`,className:`py-5 text-center text-sm text-fg-muted`,children:r.returnWeixin}):v||P||Z||a?.expired||a?.reloadRequired?null:!z&&!Y?(0,E.jsxs)(`div`,{role:`status`,"aria-label":r.checking,className:`space-y-3`,children:[(0,E.jsx)(S,{className:`h-12 w-full rounded-xl`}),(0,E.jsx)(S,{className:`h-4 w-2/3`})]}):null,a&&!z&&!W?(0,E.jsxs)(`details`,{className:`mt-5 text-sm text-fg-muted`,children:[(0,E.jsx)(`summary`,{className:`min-h-11 cursor-pointer py-3 text-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:r.details}),(0,E.jsxs)(`div`,{className:`space-y-2 pb-2`,children:[!G&&!B?(0,E.jsx)(`p`,{className:`break-all text-xs`,children:a.endpointOrigin}):null,B&&a.planApproval?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`p`,{className:`text-xs`,children:r.sourceUnverified}),a.planApproval.sources.map(e=>(0,E.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`flex min-h-11 items-center break-all text-xs text-accent-fg hover:underline`,children:e.url},e.url))]}):null,a.phase!==`approval_required`&&!B?(0,E.jsx)(C,{variant:`ghost`,className:`min-h-11 w-full justify-start text-xs`,disabled:M||U,onClick:()=>{I.current=``,R(`advance`)},children:r.check}):null,(0,E.jsx)(C,{variant:`ghost`,className:`min-h-11 w-full justify-start text-xs`,disabled:M,onClick:()=>void R(`cancel`),children:r.cancel})]})]}):null]}),(0,E.jsxs)(`footer`,{className:`shrink-0 space-y-2 border-t border-edge/60 px-6 pt-4 pb-[max(1.25rem,env(safe-area-inset-bottom))] sm:px-8`,children:[q?(0,E.jsxs)(C,{variant:`primary`,className:$,disabled:M,onClick:()=>void R(`approve`),children:[M?(0,E.jsx)(y,{className:`size-4 animate-spin motion-reduce:animate-none`,"aria-hidden":!0}):null,r.approve]}):J?(0,E.jsxs)(C,{variant:`primary`,className:$,form:`mcp-setup-secret-form`,type:`submit`,disabled:M||!ne,children:[M?(0,E.jsx)(y,{className:`size-4 animate-spin motion-reduce:animate-none`,"aria-hidden":!0}):null,M?r.checking:r.submit]}):Y&&a?.authorizationUrl?(0,E.jsx)(C,{asChild:!0,variant:`primary`,className:$,children:(0,E.jsx)(`a`,{href:a.authorizationUrl,target:`_blank`,rel:`noopener noreferrer`,children:r.login})}):X?(0,E.jsx)(C,{variant:`primary`,className:$,disabled:M,onClick:()=>void R(`retry_delivery`),children:r.retryDelivery}):Z||a?.reloadRequired||v?(0,E.jsx)(C,{variant:`primary`,className:$,disabled:M||U,onClick:()=>{I.current=``,a?R(`advance`):w()},children:r.check}):W||z?(0,E.jsx)(C,{variant:`primary`,className:$,onClick:Q,children:a?.returnChannel===`weixin`?r.done:r.back}):null,!W&&!z?(0,E.jsx)(C,{variant:`ghost`,className:`min-h-11 w-full rounded-xl text-sm`,disabled:M,onClick:Q,children:r.later}):null]})]})]})})}function k(){let e=(0,w.c)(8),{setupId:t}=a(),n=t===void 0?``:t,r=i(),o=s(A),[c,l]=(0,T.useState)(!1),u;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>l(!1),e[0]=u):u=e[0];let d;e[1]===n?d=e[2]:(d=[n],e[1]=n,e[2]=d),(0,T.useEffect)(u,d);let f;return e[3]!==c||e[4]!==o||e[5]!==r||e[6]!==n?(f=(0,E.jsx)(`main`,{className:`flex h-full min-h-0 items-center justify-center bg-surface-base p-6`,children:c?(0,E.jsxs)(`section`,{className:`max-w-xs space-y-4 text-center`,children:[(0,E.jsx)(v,{className:`mx-auto size-6 text-fg-muted`,"aria-hidden":!0}),(0,E.jsx)(`h1`,{className:`text-lg font-medium text-fg`,children:D[o].closed}),(0,E.jsx)(C,{onClick:()=>l(!1),children:D[o].reopen})]}):(0,E.jsx)(O,{setupId:n,onClose:e=>{e?.returnChannel===`weixin`?l(!0):r(e?`/chat/${e.conversationId}`:`/chat`,{replace:!0})}})}),e[3]=c,e[4]=o,e[5]=r,e[6]=n,e[7]=f):f=e[7],f}function A(e){return e.language}export{O as McpConversationSetupDialog,k as McpConversationSetupPage};
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,h as a}from"./chunk-KS7C4IRE-DIIvxCDx.js";import{i as o,n as s,o as c}from"./locale-store-CeEXxDaP.js";import{t as l}from"./messages-L7tv_OPK.js";import{a as u,i as d,o as f,r as ee,s as p,t as m}from"./dist-DlirbHVs.js";import{t as h}from"./check-DUBLcKHA.js";import{t as g}from"./secret-input-DsjfQmDn.js";import{t as _}from"./key-round-DWbpyU2U.js";import{t as v}from"./link-2-D_ZKYUW7.js";import{t as y}from"./loader-circle-CifKLtgG.js";import{t as b}from"./lock-keyhole-DEK5kH0u.js";import{t as x}from"./x-B_N4OPjy.js";import{t as S}from"./skeleton-DzdOeGYz.js";import{i as te}from"./vendor-swr-CdRzEUwF.js";import{t as C}from"./button-C5tRaJxt.js";var w=n(),T=e(t(),1),E=r(),D={zh:{title:`连接服务`,secret:`访问密钥`,hint:`仅保存到凭据服务,不进入聊天或模型。`,tokenPortal:`去服务方获取 MCP Token`,tokenReady:`连接已准备好。获取 Token 后粘贴到下方。`,tokenRecipient:`提交后将连接到`,sourceUnverified:`来源归属尚未独立核实。`,invalidToken:`密钥未被接受,请核对后重新输入。`,submit:`保存并连接`,login:`继续登录`,waiting:`在服务页面完成授权,这里会自动继续。`,check:`重新检查`,checking:`正在验证连接`,cancel:`取消连接`,back:`返回对话`,close:`暂时关闭`,later:`稍后继续`,done:`完成`,failed:`暂时无法连接,请检查服务地址或权限后重试。`,expired:`请求已过期,请回到对话重新发起。`,cancelled:`此连接请求已取消。`,reload:`配置已保存。重启 Gateway 后,连接才能生效。`,details:`连接详情`,approve:`允许这次连接`,approval:`确认连接到这个服务`,shared:`连接将供此网关的助手使用,不会授予微信用户管理权限。`,identity:`来自微信私聊`,endpoint:`服务地址`,purpose:`要完成的事`,tokenDescription:`输入服务提供的访问密钥,即可继续原来的任务。`,accessDeniedToken:`服务拒绝了当前访问。若此服务需要 Token,请在这里输入;账号或服务权限也可能需要检查。`,connected:`已连接`,continuing:`正在原微信对话中继续处理,无需发送“继续”。`,delivered:`结果已发送到原微信对话。`,returnWeixin:`现在可以关闭此页,返回微信。`,closed:`返回微信即可继续对话`,reopen:`继续配置`,deliveryFailed:`连接已完成,结果暂未发送到微信。重发不会重新执行任务。`,retryDelivery:`重试发送结果`,secure:`安全连接`,loading:`正在准备连接`,checkingDescription:`正在检查服务和所需权限。`},en:{title:`Connect service`,secret:`Access key`,hint:`Saved to credential storage, never chat or the model.`,tokenPortal:`Get an MCP Token from the provider`,tokenReady:`Connection is prepared. Get your Token and paste it below.`,tokenRecipient:`Submitting connects to`,sourceUnverified:`Publisher ownership has not been independently verified.`,invalidToken:`This key was rejected. Check it and try again.`,submit:`Save and connect`,login:`Continue sign-in`,waiting:`Finish authorizing on the service page. This will continue automatically.`,check:`Check again`,checking:`Verifying connection`,cancel:`Cancel connection`,back:`Return to chat`,close:`Close for now`,later:`Continue later`,done:`Done`,failed:`Unable to connect. Check the service address or permissions and try again.`,expired:`This request expired. Return to chat to start again.`,cancelled:`This connection request was cancelled.`,reload:`Configuration is saved. Restart the Gateway to activate the connection.`,details:`Connection details`,approve:`Approve this connection`,approval:`Confirm this service connection`,shared:`The connection is shared with this Gateway’s assistants. It grants no administration rights to Weixin users.`,identity:`From a Weixin chat`,endpoint:`Service address`,purpose:`Your request`,tokenDescription:`Enter the access key from your service to continue your task.`,accessDeniedToken:`The service refused access. If it requires a Token, enter it here. Account or service permissions may also need attention.`,connected:`Connected`,continuing:`Continuing in the original Weixin chat. No follow-up message needed.`,delivered:`The result was sent to your original Weixin chat.`,returnWeixin:`You can close this page and return to Weixin.`,closed:`Return to Weixin to continue chatting`,reopen:`Continue setup`,deliveryFailed:`Connected, but the result could not be sent to Weixin. Resending will not run the task again.`,retryDelivery:`Retry result delivery`,secure:`Secure connection`,loading:`Preparing connection`,checkingDescription:`Checking the service and required permissions.`}};function O({setupId:e,onClose:t}){let n=s(e=>e.language),r=D[n],i=`/api/mcp/setup/${encodeURIComponent(e)}`,{data:a,error:v,mutate:w}=te(i,async e=>(await c(o(e))).payload,{refreshInterval:e=>e&&(e.returnChannel===`weixin`&&e.phase===`ready`&&![`delivered`,`failed`].includes(e.replyDelivery??``)||![`ready`,`cancelled`].includes(e.phase))?1e3:0}),[O,k]=(0,T.useState)(``),[A,j]=(0,T.useState)({}),[M,N]=(0,T.useState)(!1),[P,F]=(0,T.useState)(!1),I=(0,T.useRef)(``),L=(0,T.useRef)(null),R=async(e,t)=>{if(!(!a||M)){N(!0),F(!1);try{await c(o(i),{method:`POST`,body:JSON.stringify({action:e,expectedVersion:a.version,...t?{value:t}:{}})}),await w()}catch{F(!0),await w()}finally{N(!1)}}};(0,T.useEffect)(()=>{if(!a||M||a.expired||a.phase===`cancelled`)return;if(a.phase===`ready`&&!a.reloadRequired&&a.returnChannel!==`weixin`){t(a);return}if(P)return;let n=a.requiresRecheck||a.phase===`planned`||[`connected`,`error`,`cancelled`].includes(a.authState??``)?`advance`:a.phase===`oauth_required`?`authorize`:void 0,r=`${e}:${a.version}:${n}`;n&&I.current!==r&&(I.current=r,R(n))},[a,M,P,t,e]);let z=!!(a?.expired||a?.phase===`cancelled`),B=!!(a?.approveWithToken||a?.documentedTokenPortal&&a.canReplaceToken&&!a.returnChannel),V=a?.secretFields?.length?a.secretFields:[{id:`token`,label:r.secret}],H=!!(O||Object.values(A).some(Boolean)),U=!!(a?.nextRetryAt&&a.nextRetryAt>Date.now()),ne=V.every(e=>(e.id===`token`?O:A[e.id]??``).trim()),W=a?.phase===`ready`&&!a.reloadRequired&&!z,G=a?.phase===`approval_required`&&!z?a.approval:void 0,K=a?.phase===`approval_required`&&!z?a.planApproval:void 0,q=!!(G||K&&!a?.approveWithToken),J=a&&(a.approveWithToken||a.phase===`token_required`||a.phase===`auth_unknown`&&a.canProvideToken||a.phase===`blocked`&&(a.canReplaceToken||a.canProvideToken))&&!a.requiresRecheck&&!z&&!a.reloadRequired,Y=a?.phase===`authorizing`&&!z&&!a.reloadRequired,X=W&&a?.returnChannel===`weixin`&&a.replyDelivery===`failed`,Z=(a?.phase===`blocked`||a?.phase===`auth_unknown`)&&!J&&!z,re=a?.expired?r.expired:a?.phase===`cancelled`?r.cancelled:a?.reloadRequired?r.reload:W?X?r.deliveryFailed:a?.replyDelivery===`delivered`?r.delivered:a?.returnChannel===`weixin`&&a.continuationQueued?r.continuing:r.connected:q?r.approval:U?n===`zh`?`服务要求等待,将在 ${new Date(a.nextRetryAt).toLocaleTimeString()} 后有限重试。`:`Waiting until ${new Date(a.nextRetryAt).toLocaleTimeString()} before a bounded retry.`:M?r.checkingDescription:a?.phase===`auth_unknown`&&!a.canProvideToken?n===`zh`?`无法确认服务的认证方式。请核对官方接入文档和服务地址后重新检查。`:`Could not verify the authentication method. Check the official setup guide and service address, then recheck.`:a?.phase===`auth_unknown`?n===`zh`?`认证方式尚未确定。若服务提供 Token,可在此输入;如需 OAuth,请核实接入资料后重新检查。`:`Authentication is not yet determined. Enter a Token only if your service provides one; for OAuth, verify the integration guide and recheck.`:J?a.errorCode===`credential_rejected`?r.invalidToken:B?r.tokenReady:a.canProvideToken?r.accessDeniedToken:r.tokenDescription:Y?r.waiting:v||Z||P?r.failed:r.checkingDescription,Q=()=>{M||(k(``),j({}),t(a))},$=`min-h-12 w-full rounded-xl text-[15px]`,ie=W?h:J?_:b;return(0,E.jsx)(m,{open:!0,onOpenChange:e=>{e||Q()},children:(0,E.jsxs)(f,{children:[(0,E.jsx)(u,{className:`fixed inset-0 z-[70] bg-scrim backdrop-blur-sm`}),(0,E.jsxs)(ee,{onOpenAutoFocus:e=>{e.preventDefault(),L.current?.focus()},onPointerDownOutside:e=>{(M||H)&&e.preventDefault()},onEscapeKeyDown:e=>{M&&e.preventDefault()},className:`fixed inset-x-0 bottom-0 z-[70] flex h-[min(36rem,calc(100dvh-1rem))] flex-col overflow-hidden rounded-t-3xl border border-edge bg-surface-overlay text-fg shadow-elevated sm:inset-x-auto sm:bottom-auto sm:left-1/2 sm:top-1/2 sm:h-[min(36rem,calc(100dvh-3rem))] sm:w-[28rem] sm:-translate-x-1/2 sm:-translate-y-1/2 sm:rounded-3xl`,children:[(0,E.jsxs)(`header`,{className:`relative shrink-0 px-6 pb-5 pt-8 text-center sm:px-8`,children:[(0,E.jsx)(C,{variant:`ghost`,className:`absolute right-2 top-2 size-11 rounded-full p-0`,"aria-label":r.close,disabled:M,onClick:Q,children:(0,E.jsx)(x,{className:`size-4`,"aria-hidden":!0})}),(0,E.jsx)(`div`,{className:`mx-auto mb-4 flex size-12 items-center justify-center rounded-2xl bg-surface-hover`,children:(0,E.jsx)(ie,{className:`size-6 text-accent-fg`,strokeWidth:1.6,"aria-hidden":!0})}),(0,E.jsx)(p,{ref:L,tabIndex:-1,className:`break-words text-xl font-semibold tracking-tight focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:W?r.connected:a?.displayName||r.title}),a&&!B?(0,E.jsx)(`p`,{className:`mt-1 truncate text-[13px] text-fg-muted`,title:a.endpointOrigin,children:a.endpointOrigin}):null,a?.purpose&&!B&&!q&&!W?(0,E.jsx)(`p`,{className:`mt-2 break-words text-sm text-fg`,children:a.purpose}):null,(0,E.jsx)(d,{role:a?.errorCode===`credential_rejected`||!J&&(v||P||Z||a?.expired||a?.reloadRequired)?`alert`:void 0,className:`mt-3 text-sm leading-relaxed text-fg-muted`,children:re})]}),(0,E.jsxs)(`div`,{className:`min-h-0 flex-1 overflow-y-auto overscroll-contain px-6 pb-4 sm:px-8`,"aria-busy":M,children:[!a&&!v?(0,E.jsxs)(`div`,{role:`status`,"aria-label":r.loading,className:`space-y-3`,children:[(0,E.jsx)(S,{className:`h-12 w-full rounded-xl`}),(0,E.jsx)(S,{className:`h-4 w-3/4`})]}):null,G?(0,E.jsxs)(`section`,{className:`space-y-3`,children:[(0,E.jsxs)(`dl`,{className:`space-y-3 rounded-2xl bg-surface-base p-4 text-sm`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`dt`,{className:`mb-1 text-xs text-fg-muted`,children:r.identity}),(0,E.jsxs)(`dd`,{className:`break-all`,children:[G.accountId,` / `,G.peerId]})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`dt`,{className:`mb-1 text-xs text-fg-muted`,children:r.endpoint}),(0,E.jsx)(`dd`,{className:`break-all`,children:G.endpoint})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`dt`,{className:`mb-1 text-xs text-fg-muted`,children:r.purpose}),(0,E.jsx)(`dd`,{className:`break-words leading-relaxed`,children:G.purpose})]})]}),(0,E.jsx)(`p`,{className:`text-xs leading-relaxed text-fg-muted`,children:r.shared}),K?(0,E.jsxs)(`div`,{className:`space-y-2 rounded-xl bg-surface-base p-3 text-xs`,children:[(0,E.jsx)(`p`,{children:n===`zh`?`同时审阅本次来源与执行计划:`:`Also review this source and execution plan:`}),(0,E.jsx)(`pre`,{className:`whitespace-pre-wrap break-all`,children:JSON.stringify(K,null,2)})]}):null]}):K&&q?(0,E.jsxs)(`section`,{className:`space-y-3 text-sm`,children:[(0,E.jsxs)(`dl`,{className:`space-y-3 rounded-xl bg-surface-base p-4`,children:[(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`dt`,{className:`text-xs text-fg-muted`,children:r.purpose}),(0,E.jsx)(`dd`,{className:`break-words`,children:K.purpose})]}),(0,E.jsxs)(`div`,{children:[(0,E.jsx)(`dt`,{className:`text-xs text-fg-muted`,children:r.endpoint}),(0,E.jsx)(`dd`,{className:`break-all`,children:K.endpoint})]})]}),K.execution?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`p`,{children:n===`zh`?`将在 Gateway 主机运行以下程序,可能下载指定依赖,并按该主机的进程权限访问文件和网络。`:`This program runs on the Gateway host, may download the specified dependency and can access files and network with that process’s permissions.`}),(0,E.jsx)(`pre`,{className:`whitespace-pre-wrap break-all rounded-xl bg-surface-base p-3 text-xs`,children:JSON.stringify(K.execution,null,2)})]}):(0,E.jsx)(`p`,{children:n===`zh`?`来源归属尚未独立核实。请确认服务和以下资料来源后连接。`:`Publisher ownership has not been independently verified. Review the service and sources before connecting.`}),K.sources.length?(0,E.jsx)(`ul`,{className:`space-y-1`,children:K.sources.map(e=>(0,E.jsx)(`li`,{children:(0,E.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex min-h-11 items-center break-all text-accent-fg`,children:e.url})},e.url))}):null]}):J?(0,E.jsxs)(`form`,{id:`mcp-setup-secret-form`,className:`space-y-3`,onSubmit:e=>{e.preventDefault();let t=a.secretFields?.length?Object.fromEntries(V.map(e=>[e.id,e.id===`token`?O:A[e.id]??``])):O;k(``),j({}),R(`token`,t)},children:[B&&a.helpUrl?(0,E.jsxs)(`a`,{href:a.helpUrl,target:`_blank`,rel:`noopener noreferrer`,className:`inline-flex min-h-11 flex-wrap items-center gap-x-2 text-sm font-medium text-accent-fg hover:underline`,children:[r.tokenPortal,` `,(0,E.jsxs)(`span`,{className:`break-all text-xs font-normal text-fg-muted`,children:[new URL(a.helpUrl).hostname,` ↗`]})]}):null,V.map(e=>(0,E.jsxs)(`div`,{className:`space-y-2`,children:[(0,E.jsx)(`label`,{htmlFor:`mcp-setup-${e.id}`,className:`block text-sm font-medium`,children:B?`MCP Token`:e.label}),(0,E.jsx)(g,{id:`mcp-setup-${e.id}`,value:e.id===`token`?O:A[e.id]??``,onChange:t=>{e.id===`token`?k(t):j(n=>({...n,[e.id]:t})),F(!1)},disabled:M||U,autoComplete:`off`,hideCopy:!0,className:`[&_button]:size-11 [&_button]:p-3`,ariaDescribedBy:`mcp-secret-hint`,ariaInvalid:a.errorCode===`credential_rejected`||P,inputClassName:`min-h-12 rounded-xl pr-14 text-base`,labels:l(n).connectorsSettings.secretInputLabels})]},e.id)),!B&&a.helpUrl?(0,E.jsx)(`a`,{href:a.helpUrl,target:`_blank`,rel:`noopener noreferrer`,className:`text-sm text-accent-fg`,children:n===`zh`?`获取访问密钥`:`Get an access key`}):null,(0,E.jsxs)(`p`,{id:`mcp-secret-hint`,className:`flex items-start gap-1.5 text-xs leading-relaxed text-fg-muted`,children:[(0,E.jsx)(b,{className:`mt-0.5 size-3.5 shrink-0`,"aria-hidden":!0}),(0,E.jsxs)(`span`,{children:[B?(0,E.jsxs)(E.Fragment,{children:[r.tokenRecipient,` `,(0,E.jsx)(`span`,{className:`break-all`,children:a.planApproval?.endpoint??a.endpointOrigin}),(0,E.jsx)(`br`,{})]}):null,r.hint]})]}),P||a.phase===`blocked`&&!a.canProvideToken?(0,E.jsx)(`p`,{role:`alert`,className:`text-sm text-danger`,children:r.failed}):null]}):W&&a?.returnChannel===`weixin`?(0,E.jsx)(`p`,{role:`status`,className:`py-5 text-center text-sm text-fg-muted`,children:r.returnWeixin}):v||P||Z||a?.expired||a?.reloadRequired?null:!z&&!Y?(0,E.jsxs)(`div`,{role:`status`,"aria-label":r.checking,className:`space-y-3`,children:[(0,E.jsx)(S,{className:`h-12 w-full rounded-xl`}),(0,E.jsx)(S,{className:`h-4 w-2/3`})]}):null,a&&!z&&!W?(0,E.jsxs)(`details`,{className:`mt-5 text-sm text-fg-muted`,children:[(0,E.jsx)(`summary`,{className:`min-h-11 cursor-pointer py-3 text-xs focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:r.details}),(0,E.jsxs)(`div`,{className:`space-y-2 pb-2`,children:[!G&&!B?(0,E.jsx)(`p`,{className:`break-all text-xs`,children:a.endpointOrigin}):null,B&&a.planApproval?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(`p`,{className:`text-xs`,children:r.sourceUnverified}),a.planApproval.sources.map(e=>(0,E.jsx)(`a`,{href:e.url,target:`_blank`,rel:`noopener noreferrer`,className:`flex min-h-11 items-center break-all text-xs text-accent-fg hover:underline`,children:e.url},e.url))]}):null,a.phase!==`approval_required`&&!B?(0,E.jsx)(C,{variant:`ghost`,className:`min-h-11 w-full justify-start text-xs`,disabled:M||U,onClick:()=>{I.current=``,R(`advance`)},children:r.check}):null,(0,E.jsx)(C,{variant:`ghost`,className:`min-h-11 w-full justify-start text-xs`,disabled:M,onClick:()=>void R(`cancel`),children:r.cancel})]})]}):null]}),(0,E.jsxs)(`footer`,{className:`shrink-0 space-y-2 border-t border-edge/60 px-6 pt-4 pb-[max(1.25rem,env(safe-area-inset-bottom))] sm:px-8`,children:[q?(0,E.jsxs)(C,{variant:`primary`,className:$,disabled:M,onClick:()=>void R(`approve`),children:[M?(0,E.jsx)(y,{className:`size-4 animate-spin motion-reduce:animate-none`,"aria-hidden":!0}):null,r.approve]}):J?(0,E.jsxs)(C,{variant:`primary`,className:$,form:`mcp-setup-secret-form`,type:`submit`,disabled:M||!ne,children:[M?(0,E.jsx)(y,{className:`size-4 animate-spin motion-reduce:animate-none`,"aria-hidden":!0}):null,M?r.checking:r.submit]}):Y&&a?.authorizationUrl?(0,E.jsx)(C,{asChild:!0,variant:`primary`,className:$,children:(0,E.jsx)(`a`,{href:a.authorizationUrl,target:`_blank`,rel:`noopener noreferrer`,children:r.login})}):X?(0,E.jsx)(C,{variant:`primary`,className:$,disabled:M,onClick:()=>void R(`retry_delivery`),children:r.retryDelivery}):Z||a?.reloadRequired||v?(0,E.jsx)(C,{variant:`primary`,className:$,disabled:M||U,onClick:()=>{I.current=``,a?R(`advance`):w()},children:r.check}):W||z?(0,E.jsx)(C,{variant:`primary`,className:$,onClick:Q,children:a?.returnChannel===`weixin`?r.done:r.back}):null,!W&&!z?(0,E.jsx)(C,{variant:`ghost`,className:`min-h-11 w-full rounded-xl text-sm`,disabled:M,onClick:Q,children:r.later}):null]})]})]})})}function k(){let e=(0,w.c)(8),{setupId:t}=a(),n=t===void 0?``:t,r=i(),o=s(A),[c,l]=(0,T.useState)(!1),u;e[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>l(!1),e[0]=u):u=e[0];let d;e[1]===n?d=e[2]:(d=[n],e[1]=n,e[2]=d),(0,T.useEffect)(u,d);let f;return e[3]!==c||e[4]!==o||e[5]!==r||e[6]!==n?(f=(0,E.jsx)(`main`,{className:`flex h-full min-h-0 items-center justify-center bg-surface-base p-6`,children:c?(0,E.jsxs)(`section`,{className:`max-w-xs space-y-4 text-center`,children:[(0,E.jsx)(v,{className:`mx-auto size-6 text-fg-muted`,"aria-hidden":!0}),(0,E.jsx)(`h1`,{className:`text-lg font-medium text-fg`,children:D[o].closed}),(0,E.jsx)(C,{onClick:()=>l(!1),children:D[o].reopen})]}):(0,E.jsx)(O,{setupId:n,onClose:e=>{e?.returnChannel===`weixin`?l(!0):r(e?`/chat/${e.conversationId}`:`/chat`,{replace:!0})}})}),e[3]=c,e[4]=o,e[5]=r,e[6]=n,e[7]=f):f=e[7],f}function A(e){return e.language}export{O as McpConversationSetupDialog,k as McpConversationSetupPage};
@@ -1 +1 @@
1
- import"./rolldown-runtime-aKtaBQYM.js";import{a as e,n as t,t as n}from"./vendor-react-BOUWij0V.js";import{t as r}from"./messages-CGGOcV9B.js";import{o as i}from"./attachment-utils-core-BPYdUI6y.js";import{t as a}from"./preview-open-alternatives-CY_hjK4b.js";import{t as o}from"./use-blob-object-url-D4BFuzZB.js";var s=t();e();var c=n();function l(e){let t=(0,s.c)(2),n;return t[0]===e?n=t[1]:(n=(0,c.jsx)(d,{props:e,kind:`audio`}),t[0]=e,t[1]=n),n}function u(e){let t=(0,s.c)(2),n;return t[0]===e?n=t[1]:(n=(0,c.jsx)(d,{props:e,kind:`video`}),t[0]=e,t[1]=n),n}function d(e){let t=(0,s.c)(8),{props:n,kind:r}=e,a;bb0:{if(!n.binaryBuffer){a=null;break bb0}let e;if(t[0]!==r||t[1]!==n.binaryBuffer||t[2]!==n.descriptor.fileName||t[3]!==n.descriptor.mimeType){let a=i(n.descriptor.fileName)??n.descriptor.mimeType;e=new Blob([n.binaryBuffer],{type:a||`${r}/*`}),t[0]=r,t[1]=n.binaryBuffer,t[2]=n.descriptor.fileName,t[3]=n.descriptor.mimeType,t[4]=e}else e=t[4];a=e}let l=o(a);if(!l)return null;let u;return t[5]!==r||t[6]!==l?(u=(0,c.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center overflow-auto bg-surface-base p-4 dark:bg-surface-hover/20`,children:r===`audio`?(0,c.jsx)(`audio`,{src:l,controls:!0,className:`w-full max-w-2xl`}):(0,c.jsx)(`video`,{src:l,controls:!0,playsInline:!0,className:`max-h-full max-w-full rounded-md bg-black`})}),t[5]=r,t[6]=l,t[7]=u):u=t[7],u}function f(e){let t=(0,s.c)(12),n;t[0]===e.language?n=t[1]:(n=r(e.language),t[0]=e.language,t[1]=n);let i=n,o=e.descriptor.context===`workspace`,l=o?`${i.workspace.cannotPreviewType} ${i.workspace.openElsewhereHint}`:i.chat.attachmentPreviewOpenElsewhereHint,u=o?i.workspace.openSystemApp:void 0,d=o?i.workspace.chooseApp:void 0,f;return t[2]!==i.chat.attachmentPreviewDownloadFull||t[3]!==e.actions.canChooseOpenWithApp||t[4]!==e.actions.canOpenWithSystemApp||t[5]!==e.actions.onChooseOpenWithApp||t[6]!==e.actions.onDownload||t[7]!==e.actions.onOpenWithSystemApp||t[8]!==l||t[9]!==u||t[10]!==d?(f=(0,c.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-4`,children:(0,c.jsx)(a,{message:l,downloadLabel:i.chat.attachmentPreviewDownloadFull,onDownload:e.actions.onDownload,openSystemLabel:u,onOpenWithSystemApp:e.actions.onOpenWithSystemApp,canOpenWithSystemApp:e.actions.canOpenWithSystemApp,chooseAppLabel:d,onChooseOpenWithApp:e.actions.onChooseOpenWithApp,canChooseOpenWithApp:e.actions.canChooseOpenWithApp})}),t[2]=i.chat.attachmentPreviewDownloadFull,t[3]=e.actions.canChooseOpenWithApp,t[4]=e.actions.canOpenWithSystemApp,t[5]=e.actions.onChooseOpenWithApp,t[6]=e.actions.onDownload,t[7]=e.actions.onOpenWithSystemApp,t[8]=l,t[9]=u,t[10]=d,t[11]=f):f=t[11],f}export{l as AudioPreviewPluginView,f as UnsupportedPreviewPluginView,u as VideoPreviewPluginView};
1
+ import"./rolldown-runtime-aKtaBQYM.js";import{a as e,n as t,t as n}from"./vendor-react-BOUWij0V.js";import{t as r}from"./messages-L7tv_OPK.js";import{o as i}from"./attachment-utils-core-BPYdUI6y.js";import{t as a}from"./preview-open-alternatives-CY_hjK4b.js";import{t as o}from"./use-blob-object-url-D4BFuzZB.js";var s=t();e();var c=n();function l(e){let t=(0,s.c)(2),n;return t[0]===e?n=t[1]:(n=(0,c.jsx)(d,{props:e,kind:`audio`}),t[0]=e,t[1]=n),n}function u(e){let t=(0,s.c)(2),n;return t[0]===e?n=t[1]:(n=(0,c.jsx)(d,{props:e,kind:`video`}),t[0]=e,t[1]=n),n}function d(e){let t=(0,s.c)(8),{props:n,kind:r}=e,a;bb0:{if(!n.binaryBuffer){a=null;break bb0}let e;if(t[0]!==r||t[1]!==n.binaryBuffer||t[2]!==n.descriptor.fileName||t[3]!==n.descriptor.mimeType){let a=i(n.descriptor.fileName)??n.descriptor.mimeType;e=new Blob([n.binaryBuffer],{type:a||`${r}/*`}),t[0]=r,t[1]=n.binaryBuffer,t[2]=n.descriptor.fileName,t[3]=n.descriptor.mimeType,t[4]=e}else e=t[4];a=e}let l=o(a);if(!l)return null;let u;return t[5]!==r||t[6]!==l?(u=(0,c.jsx)(`div`,{className:`flex min-h-0 flex-1 items-center justify-center overflow-auto bg-surface-base p-4 dark:bg-surface-hover/20`,children:r===`audio`?(0,c.jsx)(`audio`,{src:l,controls:!0,className:`w-full max-w-2xl`}):(0,c.jsx)(`video`,{src:l,controls:!0,playsInline:!0,className:`max-h-full max-w-full rounded-md bg-black`})}),t[5]=r,t[6]=l,t[7]=u):u=t[7],u}function f(e){let t=(0,s.c)(12),n;t[0]===e.language?n=t[1]:(n=r(e.language),t[0]=e.language,t[1]=n);let i=n,o=e.descriptor.context===`workspace`,l=o?`${i.workspace.cannotPreviewType} ${i.workspace.openElsewhereHint}`:i.chat.attachmentPreviewOpenElsewhereHint,u=o?i.workspace.openSystemApp:void 0,d=o?i.workspace.chooseApp:void 0,f;return t[2]!==i.chat.attachmentPreviewDownloadFull||t[3]!==e.actions.canChooseOpenWithApp||t[4]!==e.actions.canOpenWithSystemApp||t[5]!==e.actions.onChooseOpenWithApp||t[6]!==e.actions.onDownload||t[7]!==e.actions.onOpenWithSystemApp||t[8]!==l||t[9]!==u||t[10]!==d?(f=(0,c.jsx)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-4`,children:(0,c.jsx)(a,{message:l,downloadLabel:i.chat.attachmentPreviewDownloadFull,onDownload:e.actions.onDownload,openSystemLabel:u,onOpenWithSystemApp:e.actions.onOpenWithSystemApp,canOpenWithSystemApp:e.actions.canOpenWithSystemApp,chooseAppLabel:d,onChooseOpenWithApp:e.actions.onChooseOpenWithApp,canChooseOpenWithApp:e.actions.canChooseOpenWithApp})}),t[2]=i.chat.attachmentPreviewDownloadFull,t[3]=e.actions.canChooseOpenWithApp,t[4]=e.actions.canOpenWithSystemApp,t[5]=e.actions.onChooseOpenWithApp,t[6]=e.actions.onDownload,t[7]=e.actions.onOpenWithSystemApp,t[8]=l,t[9]=u,t[10]=d,t[11]=f):f=t[11],f}export{l as AudioPreviewPluginView,f as UnsupportedPreviewPluginView,u as VideoPreviewPluginView};