@xopcai/xopc 0.0.446 → 0.0.447
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.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/src/draft-stream-lifecycle.d.ts +2 -3
- package/dist/extensions/telegram/src/plugin.d.ts +0 -1
- package/dist/extensions/telegram/src/plugin.js +0 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-Ddf-02Rf.js → activity-store-D_KDDoA1.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-Dcu4ggpV.js → agent-avatar-dicebear-CGHzO0HR.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-CarpM_qc.js → agent-avatar-display-Dm1YHaAt.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-B4GynTfH.js → agent-defaults-settings-panel-BGTfRvG5.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-BWQ_Diyv.js → agent-plugin-dialog-D0AQB-2O.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-DKaImiga.js → agents-Ckr-T2KU.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-BwoePPTG.js → agents-admin-api-D0qHxAok.js} +1 -1
- package/dist/gateway/static/root/assets/{api-Cc72Y3ct.js → api-pQXrYBTk.js} +1 -1
- package/dist/gateway/static/root/assets/{api-MJxs2HLk.js → api-uriioEZx.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-Cy6szt9g.js → app-management-settings-panel-CQbKhrjd.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-Dy75gAe7.js → appearance-settings-Dm0GM368.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-DlwW9ClN.js → apps-page-DCeINCy-.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-_5jgYMZC.js → archive-plugin-Cd4FOTEH.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-DrxC4rCG.js → automation-api-B3df53ms.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-Ba_q8_Jj.js → automation-result-state-CpgaWu2r.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-DuyMQwtf.js → automation-run-list-DrJfwJN_.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-D4Ojt-Q4.js → automation-task-card-C2mxNw5Q.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-D-Sl7Dhr.js → automations-page-B5bnb-N8.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-ND9J7xtt.js → automations-workspace-7R4mL3M-.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-BYHCUreq.js → binary-plugins-C0QOjfJV.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-DI_JHx-P.js → block-editor-BY1Mb-WW.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-DXBM5lpK.js → browser-settings-page-DUsk02LK.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-C_mZ4wUq.js → capabilities-Bt1fAcDI.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-CUHCbQ5N.js → capabilities-Bu7efUpH.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-RJnyR_V9.js → capabilities-page-DFv5-mPY.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-CxSrK6bJ.js → capabilities-settings-panel-BtRMZjAx.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-CBXmRfVR.js → channels-CByFQQ_H.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-D6sJpLeT.js → chat-agents-api-SruH_oEQ.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-B2U7epTQ.js → chat-chart-block-BBchFbUa.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-C3ttsYGZ.js +71 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-XNPvQhNw.js → chat-terminal-dock-DCNAz0CB.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-DbL0oPXq.js → command-palette-api-r8U5soT7.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-CaxZicbL.js → composer-payload-handoff-RaEQXTjj.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-Velpw46s.js → computer-settings-page-C7cj9Zyx.js} +1 -1
- package/dist/gateway/static/root/assets/{connected-providers-grid-Y79g354a.js → connected-providers-grid-DgJ7I1do.js} +1 -1
- package/dist/gateway/static/root/assets/{connection-usage-guide-BaDoesqn.js → connection-usage-guide-De6QJt8B.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-C5mVM3zg.js → connector-service-page-qSYlFATU.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-Cgiy3Dyn.js → connectors-api-CqyteNnT.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-DDSTfe3M.js → connectors-page-BB3V-zJS.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-BCxU-AEv.js → date-picker-CB6IVCiq.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-narrative-C8zQtMcw.js → desktop-pet-narrative-B7I1II0Z.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-CVs5timB.js → desktop-pet-settings-Cm1O5CEG.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-D1buh7JC.js → desktop-pet-wqyOn6xs.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-rdp0Stsh.js → dev-view-store-BxPWx1Gi.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-ZX1oup6S.js → device-pairing-wizard-CqgjknYy.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BN57kiUt.js → directory-picker-path-field-BCOUShCs.js} +1 -1
- package/dist/gateway/static/root/assets/{discussion-annotation-sync-BG-sbtYu.js → discussion-annotation-sync-uvwyXFX3.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-DuuOhNRp.js → extension-debug-page-C7ZJumIY.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-DzzKhhvD.js → extension-iframe-host-B0rM3Ohp.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-marketplace-api-5BBPFsmU.js → extension-marketplace-api-DIGw487r.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DDmRVcIm.js → extension-page-C5LnL_Dy.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-CFzHYMV0.js → extension-provider-D5L3t0e3.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DGAD52bm.js → extension-settings-page-DnXoNNDa.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-DgG6OJyj.js → file-preview-surface-Bfqc0ZKv.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-D0yocd87.js → gateway-config-swr-Db2fE-gT.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-DpNC3Y7U.js → gateway-realtime-nI6k8qP8.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-CjYSSi_l.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-C_8Z4DRU.js → gateway-restart-CyhN9Fk3.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-CGlpz-Ft.js → gateway-settings-Nr0Bzbsy.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-BPSM56sw.js → gateway-startup-retry-Du7l0oxt.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-BFsm77dC.js → global-defaults-api-qGBKLt28.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-UXS36f7M.js → home-page-h6D4Pqqc.js} +2 -2
- package/dist/gateway/static/root/assets/{image-generation-api-wJi7zpES.js → image-generation-api-DeolJQxY.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-iddP3PVx.js → imports-page-B3kUV_dq.js} +1 -1
- package/dist/gateway/static/root/assets/{index-D0p4v0SG.js → index-Bj6IrJGJ.js} +5 -5
- package/dist/gateway/static/root/assets/index-D3YWUSNe.css +1 -0
- package/dist/gateway/static/root/assets/install-connector-dialog-Brl22l1N.js +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-Cxdd0r3Z.js → keyboard-shortcuts-settings-CFrEEDZu.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-jfkZZHHd.js → local-app-workbench-page-CbHgQzs4.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-BwWuY0x2.js → local-apps-page-Cdeawk2X.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-cTAkoNSf.js → local-session-drafts-oWhYPECv.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-DJYUYPdV.js → locale-store-BY-fRY-q.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-CuxC8O1E.js → logs-page-3dWLrUy0.js} +1 -1
- package/dist/gateway/static/root/assets/{management-api-CmBUdfsn.js → management-api-BzdYxqsC.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-CYn1EOVo.js → management-settings-yWWgFlzF.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-DrcA6Cfr.js → markdown-view-ClNfoiYC.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-C5D5oueS.js → mcp-conversation-setup-page-C0M7yW4O.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-CQZ0Jh_x.js → media-plugins-DmVG3TQ5.js} +1 -1
- package/dist/gateway/static/root/assets/messages-DFCLetQl.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-CbKl8YPf.js → model-selector-DkytsBae.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-CwxnL3rY.js → models-hub-cache-CESzQ_tk.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-uQO4kymH.js → note-detail-panel-CQIrUO6h.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-Cw-TaViX.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-DoCb3QlH.js → notes-api-32qiHxz2.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-DOl7cqLg.js → notes-page-gl59x-7l.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-api-3b_QtYeo.js → oauth-api-CMpfoRed.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-D1JQ4FBf.js → oauth-provider-connect-XzlLkqnK.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-CVIVl1MQ.js → page-context-capture-button-CdMxGZaM.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-Ky5J09qv.js → page-context-draft-CrgFs0h3.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-BNjlQHqU.js +1 -0
- package/dist/gateway/static/root/assets/{personal-avatar-Dh4qjZYy.js → personal-avatar-BHMRbUIc.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-edoGNvVa.js → personal-page-DUuJe2P9.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-settings-panel-BtTwDaw0.js → personal-settings-panel-CZjvI9rl.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-B6rA2lO_.js → phone-dependencies-card-BCEI4PGp.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-xqaXDOVF.js → phone-model-connection-BqOzyoRr.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-yuGXKCM9.js → phone-model-picker-BGAAMeo6.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-DhjuPpF4.js → phone-settings-page-BdoFCa2J.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-2xQhZsJr.js → phone-workspace-store-D1BS7otl.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-CIS3SUKM.js → plugin-details-dialog-BP-ZS2g2.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-BAZSKhoi.js → preference-select-fields-RITbo_ES.js} +1 -1
- package/dist/gateway/static/root/assets/{product-automation-feedback-Bh37tBpR.js → product-automation-feedback-CQvcSORB.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-BXcS7lCW.js → product-open-page-CJfYOVkw.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-BNultFGN.js → product-preview-content-B0-rh4uS.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-BTlUoG48.js → product-preview-modal-CSFxc7oy.js} +2 -2
- package/dist/gateway/static/root/assets/project-detail-page-CgU7vGyT.js +7 -0
- package/dist/gateway/static/root/assets/{project-understanding-CrYVzB8i.js → project-understanding-szQw-qin.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-nEhOaONB.js → projects-page-BFZsIyzp.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-MimHCxo_.js → providers-api-j511FMYv.js} +1 -1
- package/dist/gateway/static/root/assets/{recording-upload-BUe8jmx8.js → recording-upload-jq70ER5Y.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-CkrGCW-C.js → registry-api-BnEoY6_B.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-QqFEiO0m.js → remote-access-hub-B8AHjzC5.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-CSc5SeHy.js → resource-unavailable-AT-LkLIB.js} +1 -1
- package/dist/gateway/static/root/assets/{route-preload-BTPpGwjV.js → route-preload-ByDpGuZp.js} +2 -2
- package/dist/gateway/static/root/assets/{runtime-tools-api-BzLDrYX8.js → runtime-tools-api-BDjAwlQF.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DST1lBFY.js → runtime-tools-settings-panel-kvbXN_HV.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-DezuXPLs.js → service-recommendation-list-DquxQCKH.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-QnBTnXGH.js → session-api-CgTDekPG.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-b2zxVzZI.js → session-manager-V8cj3NVD.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-uarYA2Xw.js → sessions-page-KFescmNm.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-JCPJyeK-.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-Crhl0mQp.js → settings-advanced-section-Daxv3VGf.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-CrM7SFWJ.js → settings-mode-store-LUeLxacj.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-BrogpvEd.js → settings-page-Bi6rvZGw.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-DPKy790x.js → settings-page-header-Dmw3nYJ1.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-8kCWtU5m.js → settings-page-layout-YJXlkr_Z.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-BVnMLwC-.js → setup-interaction-page-Dd3Ovfgm.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel--Fb7FwVG.js → setup-status-panel-BZZXpXiB.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-C45dGG9y.js → share-link-dialog-B1g7Xero.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-ConV6wRP.js → share-preview-page-1GlB7603.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-BsDhQwd3.js → shares-api-DXOD--vt.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-DJz0p2PL.js → shares-settings-Bj-HKS3s.js} +1 -1
- package/dist/gateway/static/root/assets/skill-api-HQEXke4-.js +1 -0
- package/dist/gateway/static/root/assets/{skill-list-api-DWCkzC6W.js → skill-list-api-CJBrtxil.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-C2jfZi01.js → skill-reload-api-CO6jhwui.js} +1 -1
- package/dist/gateway/static/root/assets/skills-page-DAxov1a8.js +2 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-BiswiIqg.js → system-settings-panel-By3gokfs.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-R0_AM-IE.js → task-detail-page-Cf58C6gC.js} +1 -1
- package/dist/gateway/static/root/assets/{task-result-evidence-C1AEUu9S.js → task-result-evidence-DWfp9UIc.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-qS6f2G-H.js → terminal-panel-store-DBC-pqGy.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-Docer0tD.js → theme-store-C57ZxHqm.js} +1 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-YQmN1S2k.js +2 -0
- package/dist/gateway/static/root/assets/{tracing-settings-page-DiXHv8C3.js → tracing-settings-page-BQ7regHS.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-UYBm3Hqd.js → tunnel-api-BOJVQPqI.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-CK6cQ0iJ.js → understanding-activity-store-YrDh1XvR.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-DVNqbtHk.js → understanding-refresh-store-D6gM1s8M.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-DmA7kQI2.js → usage-page-DpC6gP1I.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-D1tFBLQO.js → use-autosave-NOpNkLFw.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-CwJslPRU.js → use-composer-attachments-R6kKpDgc.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-CK1OJENF.js → use-file-preview-expanded-M7LSoDLc.js} +3 -3
- package/dist/gateway/static/root/assets/{use-personal-profile-CpsJdlEs.js → use-personal-profile-JPLBYzew.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-CW9hcMwg.js → use-workspace-tree-jzKVAl3N.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-BlYKXzCa.js → user-model-page-CPZgl93P.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-DD9V94Y7.js → voice-api-key-field-R_KAYzHp.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-Cr6IkfV2.js → voice-config-api-D6ueBjfw.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-hsEdKDO6.js → voice-input-shortcut-events-04u9YoRg.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-transcribe-api-DKain9tL.js → voice-transcribe-api-B2NVJYnu.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-yYdAqtrO.js → work-discovery-overlay-BHaemIrQ.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-8hTykUqr.js → work-discovery-page-Bt_j5iQ5.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-CXPSsy2J.js → working-directory-picker-modal-5EsBeKBO.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-DNSoGsW8.js → workspace-api-BmUCKePi.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-Sy1CLe2K.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-BVYsAXwp.js → workspace-file-preview-dialog-hYGX2hWZ.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-DN7E_-eH.js → workspace-open-location-menu-DqLui4B1.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-CGs77iKb.js → xopc-cloud-account-card-CVq7U7Ft.js} +1 -1
- package/dist/gateway/static/root/index.html +84 -84
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-manager.d.ts +0 -1
- package/dist/src/agent/agent-manager.js +0 -3
- package/dist/src/agent/embedded/run-for-session.js +3 -6
- package/dist/src/agent/embedded/session-runner.js +1 -1
- package/dist/src/agent/mcp/native-mcp.d.ts +2 -0
- package/dist/src/agent/mcp/native-mcp.js +5 -0
- package/dist/src/agent/mcp/transport.d.ts +2 -1
- package/dist/src/agent/mcp/transport.js +21 -6
- package/dist/src/agent/skills/marketplace/adapters/clawhub/adapter.d.ts +1 -0
- package/dist/src/agent/skills/marketplace/adapters/clawhub/adapter.js +56 -30
- package/dist/src/agent/skills/marketplace/search.js +2 -2
- package/dist/src/channels/pairing/paths.d.ts +1 -1
- package/dist/src/channels/pairing/paths.js +1 -1
- package/dist/src/config/paths.d.ts +1 -1
- package/dist/src/config/paths.js +1 -1
- package/dist/src/extensions/agent-plugins/refresh-runtime-access.d.ts +7 -2
- package/dist/src/extensions/agent-plugins/refresh-runtime-access.js +36 -25
- package/dist/src/extensions/agent-plugins/setup.d.ts +1 -1
- package/dist/src/extensions/agent-plugins/setup.js +2 -2
- package/dist/src/extensions/loader.d.ts +0 -1
- package/dist/src/extensions/loader.js +3 -38
- package/dist/src/extensions/typed-event-bus.d.ts +0 -1
- package/dist/src/extensions/typed-event-bus.js +0 -1
- package/dist/src/gateway/service.js +4 -4
- package/dist/src/home-intelligence/host.js +2 -2
- package/package.json +3 -4
- package/dist/extensions/feishu/src/auth/paths.d.ts +0 -2
- package/dist/extensions/feishu/src/auth/paths.js +0 -16
- package/dist/extensions/feishu/src/state/thread-bindings.d.ts +0 -19
- package/dist/extensions/feishu/src/state/thread-bindings.js +0 -44
- package/dist/extensions/feishu/src/subagent-hooks.d.ts +0 -12
- package/dist/extensions/feishu/src/subagent-hooks.js +0 -50
- package/dist/extensions/feishu/src/tools/docx/docx-batch-insert.d.ts +0 -11
- package/dist/extensions/feishu/src/tools/docx/docx-batch-insert.js +0 -93
- package/dist/extensions/feishu/src/tools/docx/docx-color-text.d.ts +0 -15
- package/dist/extensions/feishu/src/tools/docx/docx-color-text.js +0 -73
- package/dist/extensions/feishu/src/tools/docx/docx-table-ops.d.ts +0 -20
- package/dist/extensions/feishu/src/tools/docx/docx-table-ops.js +0 -171
- package/dist/extensions/feishu/src/tools/docx/docx-types.d.ts +0 -34
- package/dist/extensions/feishu/src/tools/docx/docx-types.js +0 -1
- package/dist/gateway/static/root/assets/chat-page-U5hc4rIa.js +0 -72
- package/dist/gateway/static/root/assets/gateway-realtime-store-BQELP9Or.js +0 -1
- package/dist/gateway/static/root/assets/index-Uxz0OdzD.css +0 -1
- package/dist/gateway/static/root/assets/install-connector-dialog-DSIVSJRz.js +0 -1
- package/dist/gateway/static/root/assets/messages-DziUGfxF.js +0 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-CaO_VuWl.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-Jt0XBQxm.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-DNvQzRnU.js +0 -7
- package/dist/gateway/static/root/assets/settings-advanced-gate-Bq6eQ3It.js +0 -1
- package/dist/gateway/static/root/assets/skill-api-BrM5Ctxg.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-DbAc1Y4C.js +0 -2
- package/dist/gateway/static/root/assets/tool-friendly-title-DEGpbye4.js +0 -1
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-ENv6zDBq.js +0 -1
|
@@ -1 +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{t as i}from"./chunk-KS7C4IRE-CiwuuyV8.js";import{a,i as o,n as s,o as c}from"./locale-store-DJYUYPdV.js";import{a as l,i as u,n as d,o as f,r as p,s as m,t as h}from"./dist-BGTk37IG.js";import{t as g}from"./createLucideIcon-DPHK1VkS.js";import{n as ee,r as _}from"./popover-select-CLsphyzA.js";import{t as te}from"./circle-check-C23XjkUj.js";import{t as v}from"./external-link-DjqjBmc3.js";import{t as y}from"./secret-input-Dryrns2s.js";import{t as b}from"./loader-circle-CifKLtgG.js";import{t as x}from"./x-B_N4OPjy.js";import{t as S}from"./cn-0WouolD0.js";import{t as C}from"./skeleton-DzdOeGYz.js";import{t as w}from"./button-Cc4hUNTt.js";import{n as T}from"./interaction-BdhHBbYa.js";import{A as E,N as D,f as O,g as k,h as ne,j as A,k as j,p as M,w as N,z as P}from"./connectors-api-Cgiy3Dyn.js";import{s as F}from"./form-field-width-DJw_jULe.js";import{n as I}from"./electron-env-DHOGevH3.js";import{t as L}from"./oauth-provider-connect-D1JQ4FBf.js";import{t as re}from"./connection-usage-guide-BaDoesqn.js";var R=g(`package-plus`,[[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`path`,{d:`M16 17h6`,key:`1ook5g`}],[`path`,{d:`M19 14v6`,key:`1ckrd5`}],[`path`,{d:`M21 10.535V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.729l7 4a2 2 0 0 0 2 .001l1.675-.955`,key:`28k6lz`}],[`path`,{d:`M3.29 7 12 12l8.71-5`,key:`19ckod`}],[`path`,{d:`m7.5 4.27 8.997 5.148`,key:`9yrvtv`}]]);function z(e,t){let n={};for(let t of e.setup.secrets??[])n[t.key]=``;let r={};for(let t of e.setup.config??[])r[t.key]=t.defaultValue===void 0?``:typeof t.defaultValue==`string`?t.defaultValue:JSON.stringify(t.defaultValue,null,2);return{connector:e,secrets:n,config:r,installing:!1,error:null,result:null,health:null,...t?{store:t}:{}}}var B=n(),V=e(t(),1),H=r();async function U(e,t){let n=await c(o(e),t);if(!n.ok)throw Error(n.error??`Connection request failed.`);return n.payload}function W({definition:e,instance:t,onClose:n,onChanged:r}){let i=s(e=>e.language)===`zh`,[c,d]=(0,V.useState)(t),[g,te]=(0,V.useState)(),[v,y]=(0,V.useState)(),[S,T]=(0,V.useState)(),[E,O]=(0,V.useState)(),[k,A]=(0,V.useState)(!1),[M,P]=(0,V.useState)(),F=c?.instanceId??e.id,I=(0,V.useCallback)(async()=>{let e=await U(`/api/connectors/${encodeURIComponent(F)}/accounts`);te(e),e.authorization&&y(e.authorization)},[F]);(0,V.useEffect)(()=>{c&&I().catch(e=>P(String(e)))},[c,I]);let L=v&&[`preparing`,`awaiting_user`,`verifying`].includes(v.status);(0,V.useEffect)(()=>{if(!L||!v)return;let e=!1,t=!1,n=async()=>{if(!t){t=!0;try{let t=await U(`/api/connectors/authorizations/${v.id}`);if(e)return;y(t.authorization),t.authorization.status===`succeeded`&&(await I(),c&&await r(c))}catch(t){e||P(String(t))}finally{t=!1}}},i=()=>{n()},a=()=>{document.visibilityState===`visible`&&i()};i();let o=setInterval(i,1500);return window.addEventListener(`focus`,i),document.addEventListener(`visibilitychange`,a),()=>{e=!0,clearInterval(o),window.removeEventListener(`focus`,i),document.removeEventListener(`visibilitychange`,a)}},[L,v?.id,c,r,I]);let R=v?.challenge?.type===`qr_code`?v.challenge.artifactId:void 0;(0,V.useEffect)(()=>{if(!R){T(void 0);return}let e=!1,t;return a(o(`/api/connectors/authorizations/${R}/artifact`)).then(async n=>{if(!n.ok)throw Error(`QR code unavailable.`);let r=await n.blob();e||(t=URL.createObjectURL(r),T(t))}).catch(t=>{e||P(String(t))}),()=>{e=!0,t&&URL.revokeObjectURL(t)}},[R]);let z=async t=>{A(!0),P(void 0);try{let n=c??await ne(e.id,{});d(n);let r=await U(`/api/connectors/${encodeURIComponent(n.instanceId)}/authorizations`,{method:`POST`,body:JSON.stringify({accountId:t})});y(r.authorization)}catch(e){P(e instanceof Error?e.message:String(e))}finally{A(!1)}},B=async e=>{A(!0),P(void 0);try{await U(`/api/connectors/${encodeURIComponent(F)}/policy`,{method:`PATCH`,body:JSON.stringify({maxScope:e})}),await I()}catch(e){P(String(e))}finally{A(!1)}},W=async e=>{A(!0),P(void 0);try{await U(`/api/connectors/accounts/${encodeURIComponent(e)}`,{method:`DELETE`}),await I()}catch(e){P(String(e))}finally{A(!1)}},G=async e=>{if(c){A(!0),P(void 0);try{if(e===`remove`)await N(F),await r(c),n();else if(e===`toggle`){let e=await j(F,!c.enabled);d(e),await r(e)}else{let e=await D(F);O(e.ok?i?`验证通过,可用操作:${e.toolCount}`:`Verified: ${e.toolCount} actions`:e.error??e.action??e.status)}}catch(e){P(String(e))}finally{A(!1)}}},K=()=>{c&&r(c),n()};return(0,H.jsx)(h,{open:!0,onOpenChange:e=>{e||K()},children:(0,H.jsxs)(f,{children:[(0,H.jsx)(l,{className:`fixed inset-0 z-50 bg-black/40`}),(0,H.jsxs)(p,{className:`fixed left-1/2 top-1/2 z-50 flex h-[min(38rem,calc(100dvh-2rem))] w-[min(36rem,calc(100vw-2rem))] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-xl border border-edge bg-surface-overlay text-fg`,children:[(0,H.jsxs)(`div`,{className:`flex items-center justify-between border-b border-edge p-5`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(m,{className:`font-semibold`,children:e.displayName}),(0,H.jsx)(u,{className:`mt-1 text-sm text-fg-muted`,children:i?`连接账号并设置允许的操作。`:`Connect an account and choose allowed actions.`})]}),(0,H.jsx)(w,{variant:`ghost`,onClick:K,"aria-label":i?`关闭`:`Close`,children:(0,H.jsx)(x,{className:`size-4`})})]}),(0,H.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-5 overflow-y-auto p-5`,children:[M?(0,H.jsx)(`p`,{role:`alert`,className:`text-sm text-red-600`,children:M}):null,c&&!g?(0,H.jsx)(C,{className:`h-24 w-full`}):null,c?(0,H.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,H.jsx)(w,{disabled:k||!!L,onClick:()=>void G(`toggle`),children:c.enabled?i?`停用`:`Disable`:i?`启用`:`Enable`}),(0,H.jsx)(w,{disabled:k||!!L||!c.enabled,onClick:()=>void G(`test`),children:i?`检查连接`:`Check connection`}),(0,H.jsx)(w,{variant:`ghost`,disabled:k||!!L,onClick:()=>void G(`remove`),children:i?`移除连接`:`Remove connection`})]}):null,c?.enabled&&g?.accounts.some(e=>e.enabled&&e.status===`active`)?(0,H.jsx)(re,{target:{kind:`connector`,id:e.id,name:e.displayName},onStart:n}):null,E?(0,H.jsx)(`p`,{className:`text-sm text-fg-muted`,children:E}):null,g?.accounts.map(e=>(0,H.jsxs)(`div`,{className:`space-y-2 rounded-lg border border-edge p-3`,children:[(0,H.jsx)(`p`,{className:`text-sm font-medium`,children:e.label??e.id}),(0,H.jsx)(`p`,{className:`break-all text-xs text-fg-muted`,children:String(e.identity.openId??e.identity.botId??e.identity.userId??e.id)}),(0,H.jsx)(`p`,{className:`text-xs text-fg-muted`,children:e.enabled&&e.status===`active`?i?`已连接`:`Connected`:i?`已断开`:`Disconnected`}),(0,H.jsxs)(`div`,{className:`flex gap-2`,children:[(0,H.jsx)(w,{variant:`secondary`,disabled:k||!!L||c?.enabled===!1,onClick:()=>void z(e.id),children:i?`重新连接`:`Reconnect`}),(0,H.jsx)(w,{variant:`ghost`,disabled:k||!!L||!e.enabled,onClick:()=>void W(e.id),children:i?`断开本地连接`:`Disconnect locally`})]})]},e.id)),g?.policy?(0,H.jsxs)(`div`,{className:`space-y-2`,children:[(0,H.jsx)(`p`,{className:`text-sm`,children:i?`允许的操作`:`Allowed actions`}),(0,H.jsxs)(ee,{value:g.policy.maxScope,onChange:e=>void B(e.target.value),disabled:k,children:[(0,H.jsx)(_,{value:`read`,children:i?`仅查看`:`Read only`}),(0,H.jsx)(_,{value:`write`,children:i?`查看并执行操作`:`Read and write`})]}),(0,H.jsx)(`p`,{className:`text-xs text-fg-muted`,children:i?`写入操作需要确认。断开本地连接不会撤销第三方授权。`:`Writes require confirmation. Local disconnection does not revoke provider authorization.`})]}):null,v?(0,H.jsxs)(`div`,{className:`space-y-3 rounded-lg border border-edge p-4`,"aria-live":`polite`,children:[(0,H.jsx)(`p`,{className:`text-sm`,children:v.status===`succeeded`?i?`账号验证成功`:`Account verified`:v.status===`preparing`?i?`正在准备授权…`:`Preparing authorization…`:v.status===`verifying`?i?`授权已完成,正在验证账号…`:`Authorization complete. Verifying account…`:L?i?`请完成当前步骤,返回后会自动检查结果。`:`Complete this step. We will check the result when you return.`:v.error??(i?`授权已结束,请重新连接。`:`Authorization ended. Connect again.`)}),L&&v.challenge&&v.challenge.totalSteps>1?(0,H.jsxs)(`p`,{className:`text-sm font-medium`,children:[i?`第 ${v.challenge.step} / ${v.challenge.totalSteps} 步`:`Step ${v.challenge.step} of ${v.challenge.totalSteps}`,v.challenge.step>1?i?`:上一步已完成,请打开新的授权页面继续。`:`: Previous step complete. Open the new authorization page to continue.`:i?`:完成后还需要继续授权账号。`:`: Account authorization follows this step.`]}):null,L&&v.challenge?.type===`open_url`?(0,H.jsx)(`a`,{href:v.challenge.url,target:`_blank`,rel:`noopener noreferrer`,className:`text-sm text-accent underline`,children:i?`打开授权页面`:`Open authorization page`},v.challenge.url):null,L&&R?S?(0,H.jsx)(`img`,{src:S,alt:i?`授权二维码`:`Authorization QR code`,className:`mx-auto size-56 bg-white object-contain`}):(0,H.jsx)(C,{className:`mx-auto size-56`}):null,L?(0,H.jsx)(w,{variant:`secondary`,onClick:()=>{U(`/api/connectors/authorizations/${v.id}/cancel`,{method:`POST`}).then(()=>y({...v,status:`cancelled`,challenge:void 0})).catch(e=>P(String(e)))},children:i?`取消授权`:`Cancel authorization`}):null]}):null]}),(0,H.jsxs)(`div`,{className:`flex justify-end gap-2 border-t border-edge p-4`,children:[(0,H.jsx)(w,{variant:`secondary`,onClick:K,children:i?`关闭`:`Close`}),(0,H.jsxs)(w,{disabled:k||!!L||c?.enabled===!1,onClick:()=>void z(),children:[k?(0,H.jsx)(b,{className:`mr-2 size-4 animate-spin`}):null,i?`连接账号`:`Connect account`]})]})]})]})})}function G(e,t){return Object.entries(t).reduce((e,[t,n])=>e.replaceAll(`{{${t}}}`,n),e)}function K(e,t){return e.runtime.type===`composio`?t.connectorDescriptions[e.runtime.toolkit.toLowerCase()]??e.description:e.description}function q(e){return e instanceof Error?e.message:String(e)}function ie(e,t){let n=q(e);return/APIKey_InsufficientPermissions/i.test(n)||/["\\]?code["\\]?\s*:\s*812\b/i.test(n)||/session_management/i.test(n)&&/write access|write permission|at least ["\\]?write/i.test(n)?t.composioSessionWritePermissionRequired:n}var J={sm:{frame:`size-9 rounded-lg`,image:`size-7`,fallback:`size-4`},md:{frame:`size-10 rounded-xl`,image:`size-8`,fallback:`size-5`},lg:{frame:`size-12 rounded-xl`,image:`size-10`,fallback:`size-5`}};function ae(e){let t=(0,B.c)(15),{connector:n,size:r,className:i}=e,a=r===void 0?`md`:r,o=n?.branding?.logoUrl,[s,c]=(0,V.useState)(!1),l=J[a],u;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(u=()=>{c(!1)},t[0]=u):u=t[0];let d;t[1]===o?d=t[2]:(d=[o],t[1]=o,t[2]=d),(0,V.useEffect)(u,d);let f;t[3]!==i||t[4]!==l.frame?(f=S(`flex shrink-0 items-center justify-center overflow-hidden border border-edge bg-white`,l.frame,i),t[3]=i,t[4]=l.frame,t[5]=f):f=t[5];let p=n?.displayName,m;t[6]!==l.fallback||t[7]!==l.image||t[8]!==s||t[9]!==o?(m=o&&!s?(0,H.jsx)(`img`,{src:o,alt:``,loading:`lazy`,draggable:!1,className:S(`object-contain`,l.image),onError:()=>c(!0)}):(0,H.jsx)(R,{className:S(`text-fg-muted`,l.fallback),"aria-hidden":!0}),t[6]=l.fallback,t[7]=l.image,t[8]=s,t[9]=o,t[10]=m):m=t[10];let h;return t[11]!==f||t[12]!==p||t[13]!==m?(h=(0,H.jsx)(`span`,{className:f,title:p,children:m}),t[11]=f,t[12]=p,t[13]=m,t[14]=h):h=t[14],h}var Y=S(`w-full rounded-lg border border-edge bg-surface-panel px-3 py-2 text-sm text-fg`,`placeholder:text-fg-subtle`,F),oe=S(Y,`min-h-28 font-mono`);function se(e,t){return e?t.healthStatusLabels[e]??e:t.healthStatusPending}function ce(e,t){let n=t.trim();return e===`json`?n?JSON.parse(n):void 0:e===`number`?n?Number(n):void 0:e===`boolean`?n===`true`:n||void 0}function X({draft:e,onChange:t,onClose:n,onInstalled:r,t:a}){let{connector:o}=e,s=K(o,a),c=o.runtime.type===`composio`&&o.runtime.role===`toolkit`,g=o.runtime.type===`composio`&&o.runtime.role===`toolkit`?o.runtime.toolkit:null,j=o.understanding!=null,[N,F]=(0,V.useState)(!c),[z,B]=(0,V.useState)(null),[U,W]=(0,V.useState)(c),[q,J]=(0,V.useState)(null),[X,le]=(0,V.useState)(null),[Z,ue]=(0,V.useState)(!1),[Q,de]=(0,V.useState)(!1);(0,V.useEffect)(()=>{if(!c)return;let e=!1;return O().then(t=>{e||(B(t),F(t.configured))}).catch(t=>{e||J(t instanceof Error?t.message:String(t))}).finally(()=>{e||W(!1)}),()=>{e=!0}},[o.id,c]),(0,V.useEffect)(()=>{if(!g||!N)return;let e=!1;return ue(!0),M(g).then(t=>{e||le(t)}).catch(t=>{e||J(t instanceof Error?t.message:String(t))}).finally(()=>{e||ue(!1)}),()=>{e=!0}},[N,g]);let fe=(0,V.useCallback)(async()=>{let n=I(),i=c&&!n?window.open(``,`_blank`):null;i&&(i.opener=null),J(null),t({...e,installing:!0,error:null,result:null,health:null});try{if(c&&!N)throw Error(a.composioSetupSignInRequired);let s=c&&g?X??await M(g):null,l=e.config.authConfigId?.trim();if(s?.requiresCustomAuthConfig&&!l)throw Error(a.composioAuthConfigRequired);if(l){let e=s?.authConfigs.find(e=>e.id===l);if(!e||e.status!==`ENABLED`||!e.isEnabledForToolRouter)throw Error(a.composioAuthConfigUnavailable)}let u={};for(let t of o.setup.config??[]){let n=ce(t.type,e.config[t.key]??``);n!==void 0&&(u[t.key]=n)}l&&(u.authConfigId=l);let d=e.store?await k(e.store.packageName,{secrets:e.secrets,config:u},e.store.version,e.store.reviewHash):await ne(o.id,{secrets:e.secrets,config:u,definition:o.source===`registry`?o:void 0}),f=null;try{if(c){let e=await A(o.id);if(!e.authorizationUrl)throw Error(`The connection service did not return an authorization URL.`);if(n){let t=await window.electronAPI?.shell?.openExternalUrl(e.authorizationUrl);if(!t?.ok)throw Error(t?.error??`Could not open the system browser.`)}else i?i.location.href=e.authorizationUrl:window.open(e.authorizationUrl,`_blank`,`noopener,noreferrer`);let t=await P(g,e.connectionId,12e4,e.attemptId);if(i?.close(),j&&Q){if(!t.accountId)throw Error(`Connector account is unavailable.`);await E(t.accountId)}}}catch(n){i?.close(),t({...e,installing:!1,result:null,health:null,error:c?ie(n,a):n instanceof Error?n.message:String(n)}),await r(d);return}if(d.materialized.type===`cli`||d.materialized.type===`mcp`)try{f=await D(d.instanceId)}catch{f=null}t({...e,installing:!1,result:d,health:f}),await r(d)}catch(n){i?.close(),t({...e,installing:!1,error:n instanceof Error?n.message:String(n)})}},[j,X,N,g,o,e,c,Q,t,r,a.composioAuthConfigRequired,a.composioAuthConfigUnavailable,a.composioSetupSignInRequired]),pe=X?.authConfigs.filter(e=>e.status===`ENABLED`&&e.isEnabledForToolRouter)??[],$=X?.requiresCustomAuthConfig===!0,me=N&&$&&!e.config.authConfigId?.trim();return(0,H.jsx)(h,{open:!0,onOpenChange:e=>{e||n()},children:(0,H.jsxs)(f,{children:[(0,H.jsx)(l,{className:`xopc-dialog-overlay fixed inset-0 z-[60] bg-scrim`}),(0,H.jsxs)(p,{className:S(`xopc-dialog-content fixed left-1/2 top-1/2 z-[60] flex -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden`,c?`max-h-[calc(100dvh-2rem)] w-[min(100%-2rem,32rem)]`:`h-[min(100dvh-2rem,36rem)] w-[min(100%-2rem,42rem)]`,`rounded-2xl border border-edge bg-surface-overlay shadow-float dark:border-edge`),children:[(0,H.jsxs)(`div`,{className:`flex shrink-0 items-start justify-between gap-3 border-b border-edge-subtle px-6 py-5`,children:[(0,H.jsxs)(`div`,{className:`flex min-w-0 items-start gap-3`,children:[(0,H.jsx)(ae,{connector:o,size:`lg`}),(0,H.jsxs)(`div`,{className:`min-w-0`,children:[(0,H.jsx)(m,{className:`text-base font-semibold text-fg`,children:G(a.connectDialogTitle,{name:o.displayName})}),(0,H.jsx)(u,{className:`mt-1 line-clamp-3 text-sm text-fg-muted`,children:s})]})]}),(0,H.jsx)(d,{asChild:!0,children:(0,H.jsxs)(`button`,{type:`button`,className:S(`rounded-lg p-1.5 text-fg-muted hover:bg-surface-hover hover:text-fg`,T.focusRingPanel),"aria-label":a.modalClose,children:[(0,H.jsx)(x,{className:`size-5`,strokeWidth:1.75,"aria-hidden":!0}),(0,H.jsx)(`span`,{className:`sr-only`,children:a.modalClose})]})})]}),(0,H.jsx)(`div`,{className:S(`min-h-0 overflow-y-auto px-6 py-5`,!c&&`flex-1`),children:(0,H.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[c&&U?(0,H.jsxs)(`section`,{className:`rounded-2xl border border-edge bg-surface-base p-4`,"aria-busy":`true`,"aria-label":a.composioSetupTitle,children:[(0,H.jsx)(C,{className:`h-4 w-40`}),(0,H.jsx)(C,{className:`mt-2 h-3 w-72 max-w-full`}),(0,H.jsx)(C,{className:`mt-3 h-16 w-full rounded-xl`})]}):c&&!N?(0,H.jsxs)(`section`,{className:`rounded-2xl border border-accent/25 bg-accent-soft/50 p-4`,children:[(0,H.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:a.composioSetupTitle}),(0,H.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:a.composioSetupHint}),(0,H.jsx)(`div`,{className:`mt-3`,children:(0,H.jsx)(L,{providerId:`xopc-cloud`,displayName:`XOPC Cloud`,connected:!1,onConnected:()=>{O().then(e=>{B(e),F(e.configured)})}})}),(0,H.jsx)(i,{to:`/settings/connector-service`,onClick:n,className:`mt-3 block text-xs text-accent-fg`,children:a.composioSetupByok})]}):null,c&&j?(0,H.jsxs)(`label`,{className:`flex items-start gap-3 rounded-2xl border border-edge bg-surface-base p-4`,children:[(0,H.jsx)(`input`,{type:`checkbox`,className:`mt-0.5 size-4 accent-accent`,checked:Q,onChange:e=>de(e.currentTarget.checked)}),(0,H.jsxs)(`span`,{children:[(0,H.jsx)(`span`,{className:`block text-sm font-medium text-fg`,children:a.learnAfterConnect}),(0,H.jsx)(`span`,{className:`mt-1 block text-xs leading-5 text-fg-muted`,children:a.learnAfterConnectHint})]})]}):null,c&&N&&z?.mode===`managed`?(0,H.jsx)(`p`,{className:`text-xs text-fg-subtle`,children:$?a.composioCloudAuthUnavailable:a.composioSetupManaged}):null,c&&N&&z?.mode===`byok`?(0,H.jsxs)(`details`,{open:$,className:`rounded-xl border border-edge bg-surface-base p-3`,children:[(0,H.jsx)(`summary`,{className:`cursor-pointer text-xs font-medium text-fg-muted`,children:a.composioAdvancedSettings}),(0,H.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,H.jsxs)(`div`,{children:[(0,H.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:a.composioAuthConfigTitle}),(0,H.jsx)(`p`,{className:`mt-1 text-xs leading-5 text-fg-muted`,children:$?a.composioAuthConfigRequiredHint:a.composioAuthConfigManaged})]}),z?.mode===`byok`?(0,H.jsxs)(`a`,{className:`inline-flex items-center gap-1 text-xs font-medium text-accent-fg hover:underline`,href:`https://app.composio.dev`,target:`_blank`,rel:`noreferrer`,children:[a.composioAuthConfigManage,(0,H.jsx)(v,{className:`size-3.5`,"aria-hidden":!0})]}):(0,H.jsx)(`span`,{className:`rounded-full bg-accent-soft px-2.5 py-1 text-xs font-medium text-accent-fg`,children:a.composioSetupManaged})]}),Z?(0,H.jsx)(C,{className:`mt-3 h-10 w-full`}):(0,H.jsxs)(ee,{className:S(Y,`mt-3`),value:e.config.authConfigId??``,onChange:n=>t({...e,config:{...e.config,authConfigId:n.currentTarget.value},error:null}),children:[$?null:(0,H.jsx)(_,{value:``,children:a.composioAuthConfigManaged}),$&&!e.config.authConfigId?(0,H.jsx)(_,{value:``,disabled:!0,children:a.composioAuthConfigSelect}):null,pe.map(e=>(0,H.jsxs)(_,{value:e.id,children:[e.name,` · `,e.authScheme??`OAuth`,` · `,e.id]},e.id))]}),!Z&&$&&pe.length===0?(0,H.jsx)(`p`,{className:`mt-2 text-xs text-amber-700 dark:text-amber-300`,children:a.composioAuthConfigEmpty}):null]}):null,c&&N&&z?.mode===`byok`?(0,H.jsx)(`p`,{className:`text-xs leading-5 text-fg-subtle`,children:a.composioSessionWritePermissionHint}):null,e.store?(0,H.jsxs)(`section`,{className:`rounded-2xl border border-edge bg-surface-base p-4`,children:[(0,H.jsx)(`h3`,{className:`text-sm font-semibold text-fg`,children:a.detailPermissions}),(0,H.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-1.5`,children:[(e.store.permissions.data??[]).map(e=>(0,H.jsx)(`span`,{className:`rounded-md border border-edge bg-surface-panel px-2 py-1 text-xs text-fg-muted`,children:e},e)),(e.store.permissions.networkDomains??[]).map(e=>(0,H.jsx)(`span`,{className:`rounded-md border border-edge bg-surface-panel px-2 py-1 text-xs text-fg-muted`,children:e},e)),(0,H.jsx)(`span`,{className:`rounded-md border border-emerald-500/30 bg-emerald-500/10 px-2 py-1 text-xs text-emerald-700 dark:text-emerald-300`,children:a.storeLocalExecDenied})]})]}):null,(o.setup.links??[]).length>0?(0,H.jsx)(`div`,{className:`flex flex-wrap gap-2 rounded-xl border border-edge bg-surface-base p-3`,children:(o.setup.links??[]).map(e=>{let t=e.external!==!1&&/^https:\/\//i.test(e.href);return(0,H.jsxs)(`a`,{href:t?e.href:`#${e.href}`,target:t?`_blank`:void 0,rel:t?`noopener noreferrer`:void 0,className:`inline-flex items-center gap-1.5 text-sm font-medium text-accent-fg hover:underline`,children:[e.label,t?(0,H.jsx)(v,{className:`size-3.5`,"aria-hidden":!0}):null]},`${e.label}:${e.href}`)})}):null,(o.setup.secrets??[]).map(n=>(0,H.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,H.jsx)(`span`,{className:`text-sm font-medium text-fg`,children:n.label}),n.description?(0,H.jsx)(`span`,{className:`text-xs text-fg-subtle`,children:n.description}):null,(0,H.jsx)(y,{value:e.secrets[n.key]??``,onChange:r=>t({...e,secrets:{...e.secrets,[n.key]:r},error:null}),labels:a.secretInputLabels,placeholder:n.required?a.requiredPlaceholder:a.optionalPlaceholder})]},n.key)),(o.setup.config??[]).map(n=>(0,H.jsxs)(`label`,{className:`flex flex-col gap-1.5`,children:[(0,H.jsx)(`span`,{className:`text-sm font-medium text-fg`,children:n.label}),n.type===`json`?(0,H.jsx)(`textarea`,{className:oe,value:e.config[n.key]??``,placeholder:n.placeholder,onChange:r=>t({...e,config:{...e.config,[n.key]:r.currentTarget.value},error:null})}):(0,H.jsx)(`input`,{className:Y,value:e.config[n.key]??``,placeholder:n.placeholder,onChange:r=>t({...e,config:{...e.config,[n.key]:r.currentTarget.value},error:null})})]},n.key)),e.installing?(0,H.jsxs)(`div`,{className:`rounded-2xl border border-edge bg-surface-base p-4 text-sm text-fg-muted`,children:[(0,H.jsxs)(`div`,{className:`flex items-center gap-2 font-medium text-fg`,children:[(0,H.jsx)(b,{className:`size-4 animate-spin text-accent`,"aria-hidden":!0}),a.connectingTitle]}),(0,H.jsx)(`p`,{className:`mt-1 text-xs text-fg-subtle`,children:a.connectingHint})]}):null,e.error?(0,H.jsx)(`p`,{className:`min-w-0 max-w-full break-words rounded-xl bg-red-500/10 px-3 py-2 text-sm text-red-600 [overflow-wrap:anywhere]`,children:e.error}):null,q?(0,H.jsx)(`p`,{className:`min-w-0 max-w-full break-words rounded-xl bg-red-500/10 px-3 py-2 text-sm text-red-600 [overflow-wrap:anywhere]`,children:q}):null,e.result&&e.health?.ok?(0,H.jsx)(re,{target:{kind:`connector`,id:o.id,name:o.displayName},onStart:n}):null,e.result?(0,H.jsxs)(`div`,{className:`rounded-2xl border border-edge bg-surface-base p-4 text-sm text-fg-muted`,children:[(0,H.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-3`,children:[(0,H.jsx)(`div`,{children:(0,H.jsx)(`p`,{className:`font-medium text-fg`,children:a.connectedBadge})}),(0,H.jsx)(`span`,{className:S(`rounded-full px-2 py-0.5 text-xs font-medium`,e.health?.ok?`bg-emerald-500/10 text-emerald-700 dark:text-emerald-300`:e.health?`bg-amber-500/10 text-amber-700 dark:text-amber-300`:`bg-surface-hover text-fg-muted`),children:e.health?.ok?a.healthStatusHealthy:se(e.health?.status,a)})]}),(0,H.jsx)(`p`,{className:`mt-3`,children:e.health?.ok?a.connectionReady:e.health?a.connectionNeedsSetup:a.installedWithoutHealth}),e.health?.action?(0,H.jsx)(`p`,{className:`mt-3 text-xs text-fg-subtle`,children:e.health.action}):null]}):null]})}),(0,H.jsx)(`div`,{className:`flex shrink-0 justify-end gap-2 border-t border-edge-subtle px-6 py-4`,children:(0,H.jsxs)(w,{variant:`primary`,disabled:!!e.result||e.installing||U||Z||me||c&&!N,onClick:()=>void fe(),children:[e.installing?(0,H.jsx)(b,{className:`size-4 animate-spin`}):e.result?(0,H.jsx)(te,{className:`size-4`}):(0,H.jsx)(R,{className:`size-4`}),e.result?a.connectedBadge:a.connect]})})]})]})})}function le(e){let t=(0,B.c)(2),n;return t[0]===e?n=t[1]:(n=e.draft.connector.runtime.type===`cli`?(0,H.jsx)(W,{definition:e.draft.connector,onClose:e.onClose,onChanged:e.onInstalled}):(0,H.jsx)(X,{...e}),t[0]=e,t[1]=n),n}export{G as a,R as c,K as i,ae as n,W as o,ie as r,z as s,le as t};
|