@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
|
@@ -57,23 +57,41 @@ async function searchClawHubSkills(query, limit) {
|
|
|
57
57
|
async function searchClawHubFederatedSkills(query, limit) {
|
|
58
58
|
return cachedSearchClawHubSkills(query, limit);
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
60
|
+
function parseClawHubReference(reference) {
|
|
61
|
+
const parts = reference.trim().replace(/^@/, "").split("/");
|
|
62
|
+
const slug = parts.at(-1) ?? "";
|
|
63
|
+
const ownerHandle = parts.length === 2 ? parts[0] : void 0;
|
|
64
|
+
if (parts.length > 2 || !isValidSkillId(slug) || ownerHandle !== void 0 && !isValidSkillId(ownerHandle)) throw new Error(`Invalid ClawHub skill reference: ${reference}`);
|
|
65
|
+
return {
|
|
66
|
+
slug,
|
|
67
|
+
ownerHandle
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function clawHubReference(slug, ownerHandle) {
|
|
71
|
+
return ownerHandle ? `${ownerHandle}/${slug}` : slug;
|
|
72
|
+
}
|
|
73
|
+
function clawHubSkillPath(reference, suffix = "", params = new URLSearchParams()) {
|
|
74
|
+
const { slug, ownerHandle } = parseClawHubReference(reference);
|
|
75
|
+
if (ownerHandle) params.set("ownerHandle", ownerHandle);
|
|
76
|
+
return `/api/v1/skills/${encodeURIComponent(slug)}${suffix}${params.size ? `?${params}` : ""}`;
|
|
77
|
+
}
|
|
78
|
+
async function getClawHubSkillDetail(reference) {
|
|
79
|
+
const res = await clawHubFetch(clawHubSkillPath(reference));
|
|
80
|
+
if (res.status === 409) throw new Error(`Ambiguous ClawHub skill "${reference}". Select a publisher or use owner/slug.`);
|
|
81
|
+
assertOk(res, `skill detail [${reference}]`);
|
|
63
82
|
return await res.json();
|
|
64
83
|
}
|
|
65
|
-
async function getClawHubVersionDetail(
|
|
66
|
-
const res = await clawHubFetch(`/
|
|
67
|
-
assertOk(res, `version detail [${
|
|
84
|
+
async function getClawHubVersionDetail(reference, version) {
|
|
85
|
+
const res = await clawHubFetch(clawHubSkillPath(reference, `/versions/${encodeURIComponent(version.trim())}`));
|
|
86
|
+
assertOk(res, `version detail [${reference}@${version}]`);
|
|
68
87
|
return await res.json();
|
|
69
88
|
}
|
|
70
|
-
async function getClawHubSkillFileText(
|
|
71
|
-
const enc = encodeURIComponent(slug.trim());
|
|
89
|
+
async function getClawHubSkillFileText(reference, filePath, version) {
|
|
72
90
|
const sp = new URLSearchParams({ path: filePath });
|
|
73
91
|
if (version?.trim()) sp.set("version", version.trim());
|
|
74
|
-
const url = `${resolveClawHubBaseUrl()}
|
|
92
|
+
const url = `${resolveClawHubBaseUrl()}${clawHubSkillPath(reference, "/file", sp)}`;
|
|
75
93
|
const res = await fetch(url, { headers: { Accept: "text/markdown,text/plain,*/*" } });
|
|
76
|
-
if (!res.ok) throw new Error(`ClawHub file fetch [${
|
|
94
|
+
if (!res.ok) throw new Error(`ClawHub file fetch [${reference}/${filePath}] failed (${res.status})`);
|
|
77
95
|
const text = await res.text();
|
|
78
96
|
return text.length > MAX_CLAWHUB_FILE_BYTES ? text.slice(0, MAX_CLAWHUB_FILE_BYTES) : text;
|
|
79
97
|
}
|
|
@@ -84,10 +102,7 @@ function versionFromDownloadDisposition(value, slug) {
|
|
|
84
102
|
return filename.slice(prefix.length, -4).trim() || void 0;
|
|
85
103
|
}
|
|
86
104
|
async function downloadClawHubSkillZip(reference, version) {
|
|
87
|
-
const
|
|
88
|
-
const ownerHandle = parts.length === 2 ? parts[0] : void 0;
|
|
89
|
-
const slug = parts.length === 2 ? parts[1] : parts.length === 1 ? parts[0] : "";
|
|
90
|
-
if (!isValidSkillId(slug) || ownerHandle && !isValidSkillId(ownerHandle)) throw new Error(`Invalid ClawHub install reference: ${reference}`);
|
|
105
|
+
const { slug, ownerHandle } = parseClawHubReference(reference);
|
|
91
106
|
const sp = new URLSearchParams({ slug });
|
|
92
107
|
if (ownerHandle) sp.set("ownerHandle", ownerHandle);
|
|
93
108
|
if (version?.trim()) sp.set("version", version.trim());
|
|
@@ -95,12 +110,12 @@ async function downloadClawHubSkillZip(reference, version) {
|
|
|
95
110
|
const res = await fetch(url, { redirect: "follow" });
|
|
96
111
|
if (!res.ok) {
|
|
97
112
|
const body = await res.text().catch(() => "");
|
|
98
|
-
throw new Error(`ClawHub download [${
|
|
113
|
+
throw new Error(`ClawHub download [${reference}] failed (${res.status}): ${body.slice(0, 200)}`);
|
|
99
114
|
}
|
|
100
115
|
const contentType = res.headers.get("content-type") ?? "";
|
|
101
|
-
if (!contentType.includes("zip") && !contentType.includes("octet-stream")) throw new Error(`ClawHub download [${
|
|
116
|
+
if (!contentType.includes("zip") && !contentType.includes("octet-stream")) throw new Error(`ClawHub download [${reference}] unexpected content-type: ${contentType}`);
|
|
102
117
|
const arrayBuf = await res.arrayBuffer();
|
|
103
|
-
if (arrayBuf.byteLength > MAX_SKILL_ZIP_BYTES) throw new Error(`ClawHub download [${
|
|
118
|
+
if (arrayBuf.byteLength > MAX_SKILL_ZIP_BYTES) throw new Error(`ClawHub download [${reference}] exceeds size limit (${arrayBuf.byteLength} > ${MAX_SKILL_ZIP_BYTES})`);
|
|
104
119
|
const resolvedVersion = version?.trim() || versionFromDownloadDisposition(res.headers.get("content-disposition"), slug) || "latest";
|
|
105
120
|
return {
|
|
106
121
|
buffer: Buffer.from(arrayBuf),
|
|
@@ -191,13 +206,13 @@ async function cachedGetClawHubSkillDetail(slug) {
|
|
|
191
206
|
}
|
|
192
207
|
function convertListItemToPackageItem(item) {
|
|
193
208
|
return {
|
|
194
|
-
id: item.slug,
|
|
209
|
+
id: clawHubReference(item.slug, item.ownerHandle),
|
|
195
210
|
name: item.displayName || item.slug,
|
|
196
211
|
type: "skill",
|
|
197
212
|
description: item.summary || "",
|
|
198
213
|
downloads: item.stats.downloads,
|
|
199
214
|
author: {
|
|
200
|
-
username: "clawhub",
|
|
215
|
+
username: item.ownerHandle || "clawhub",
|
|
201
216
|
avatarUrl: null
|
|
202
217
|
},
|
|
203
218
|
latestVersion: item.latestVersion?.version ?? item.tags.latest ?? "1.0.0",
|
|
@@ -207,15 +222,24 @@ function convertListItemToPackageItem(item) {
|
|
|
207
222
|
sourceLabel: "ClawHub"
|
|
208
223
|
};
|
|
209
224
|
}
|
|
225
|
+
function clawHubSearchOwner(item) {
|
|
226
|
+
return item.ownerHandle || item.publisher?.handle || item.owner?.handle || void 0;
|
|
227
|
+
}
|
|
228
|
+
function clawHubSearchReference(item) {
|
|
229
|
+
const [owner, slug, ...rest] = (item.install?.reference?.trim().replace(/^@/, ""))?.split("/") ?? [];
|
|
230
|
+
if (slug === item.slug && rest.length === 0 && owner && isValidSkillId(owner)) return clawHubReference(slug, owner);
|
|
231
|
+
return clawHubReference(item.slug, clawHubSearchOwner(item));
|
|
232
|
+
}
|
|
210
233
|
function convertSearchResultToPackageItem(item, enrichment) {
|
|
234
|
+
const reference = clawHubSearchReference(item);
|
|
211
235
|
return {
|
|
212
|
-
id:
|
|
236
|
+
id: reference,
|
|
213
237
|
name: item.displayName || item.slug,
|
|
214
238
|
type: "skill",
|
|
215
239
|
description: item.summary || "",
|
|
216
240
|
downloads: item.downloads ?? item.native?.skill?.stats?.downloads ?? enrichment?.stats.downloads ?? 0,
|
|
217
241
|
author: {
|
|
218
|
-
username:
|
|
242
|
+
username: reference === item.slug ? "clawhub" : reference.slice(0, reference.indexOf("/")),
|
|
219
243
|
avatarUrl: item.publisher?.avatarUrl ?? item.owner?.image ?? null
|
|
220
244
|
},
|
|
221
245
|
latestVersion: item.version ?? enrichment?.latestVersion?.version ?? "1.0.0",
|
|
@@ -263,9 +287,9 @@ const clawHubMarketplaceAdapter = {
|
|
|
263
287
|
if (params.q?.trim()) {
|
|
264
288
|
const [searchResponse, listSettled] = await Promise.allSettled([cachedSearchClawHubSkills(params.q.trim(), LIST_BATCH_SIZE), cachedListClawHubSkills({ limit: LIST_BATCH_SIZE })]);
|
|
265
289
|
if (searchResponse.status === "rejected") throw searchResponse.reason;
|
|
266
|
-
const
|
|
267
|
-
if (listSettled.status === "fulfilled") for (const
|
|
268
|
-
let rows = searchResponse.value.results.filter((r) => !r.source || r.source === "clawhub").map((r) => convertSearchResultToPackageItem(r,
|
|
290
|
+
const enrichmentByReference = /* @__PURE__ */ new Map();
|
|
291
|
+
if (listSettled.status === "fulfilled") for (const item of listSettled.value.items) enrichmentByReference.set(clawHubReference(item.slug, item.ownerHandle), item);
|
|
292
|
+
let rows = searchResponse.value.results.filter((r) => !r.source || r.source === "clawhub").map((r) => convertSearchResultToPackageItem(r, enrichmentByReference.get(clawHubSearchReference(r))));
|
|
269
293
|
rows = sortClawHubSearchRows(rows, params.sort);
|
|
270
294
|
const total = rows.length;
|
|
271
295
|
const start = (page - 1) * pageSize;
|
|
@@ -300,12 +324,14 @@ const clawHubMarketplaceAdapter = {
|
|
|
300
324
|
async getPackageDetail(_config, packageName) {
|
|
301
325
|
const detail = await cachedGetClawHubSkillDetail(packageName);
|
|
302
326
|
const slug = detail.skill.slug;
|
|
327
|
+
const ownerHandle = parseClawHubReference(packageName).ownerHandle || detail.owner?.handle;
|
|
328
|
+
const reference = clawHubReference(slug, ownerHandle);
|
|
303
329
|
const version = detail.latestVersion.version;
|
|
304
330
|
let readme = null;
|
|
305
331
|
try {
|
|
306
|
-
const docPath = pickClawHubDocFilePath((await getClawHubVersionDetail(
|
|
332
|
+
const docPath = pickClawHubDocFilePath((await getClawHubVersionDetail(reference, version)).version.files);
|
|
307
333
|
if (docPath) {
|
|
308
|
-
const trimmed = (await getClawHubSkillFileText(
|
|
334
|
+
const trimmed = (await getClawHubSkillFileText(reference, docPath, version)).trim();
|
|
309
335
|
if (trimmed) readme = trimmed;
|
|
310
336
|
}
|
|
311
337
|
} catch {}
|
|
@@ -318,7 +344,7 @@ const clawHubMarketplaceAdapter = {
|
|
|
318
344
|
description
|
|
319
345
|
});
|
|
320
346
|
return {
|
|
321
|
-
id:
|
|
347
|
+
id: reference,
|
|
322
348
|
name: slug,
|
|
323
349
|
type: "skill",
|
|
324
350
|
description,
|
|
@@ -326,8 +352,8 @@ const clawHubMarketplaceAdapter = {
|
|
|
326
352
|
skillDocPreview,
|
|
327
353
|
downloads: detail.skill.stats.downloads,
|
|
328
354
|
author: {
|
|
329
|
-
username:
|
|
330
|
-
avatarUrl: detail.owner
|
|
355
|
+
username: ownerHandle ?? "clawhub",
|
|
356
|
+
avatarUrl: detail.owner?.image ?? null
|
|
331
357
|
},
|
|
332
358
|
latestVersion: {
|
|
333
359
|
version: detail.latestVersion.version,
|
|
@@ -351,4 +377,4 @@ registerMarketplaceAdapter({
|
|
|
351
377
|
displayName: "ClawHub"
|
|
352
378
|
});
|
|
353
379
|
//#endregion
|
|
354
|
-
export { clawHubMarketplaceAdapter, searchClawHubFederatedSkills };
|
|
380
|
+
export { clawHubMarketplaceAdapter, clawHubSearchReference, searchClawHubFederatedSkills };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { searchClawHubFederatedSkills } from "./adapters/clawhub/adapter.js";
|
|
1
|
+
import { clawHubSearchReference, searchClawHubFederatedSkills } from "./adapters/clawhub/adapter.js";
|
|
2
2
|
import { listMarketplacePackages } from "../skills-marketplace.js";
|
|
3
3
|
//#region src/agent/skills/marketplace/search.ts
|
|
4
4
|
const SKILL_MARKETPLACE_SEARCH_SOURCES = [
|
|
@@ -74,7 +74,7 @@ function valueScore(query, result) {
|
|
|
74
74
|
function fromClawHub(item) {
|
|
75
75
|
const source = item.source === "skills-sh" ? "skills-sh" : "clawhub";
|
|
76
76
|
const owner = item.publisher?.handle ?? item.sourceIdentity?.owner ?? item.owner?.handle ?? item.ownerHandle ?? source;
|
|
77
|
-
const reference =
|
|
77
|
+
const reference = source === "clawhub" ? clawHubSearchReference(item) : item.install?.reference ?? item.slug;
|
|
78
78
|
return {
|
|
79
79
|
id: item.id ?? `${source}:${reference}`,
|
|
80
80
|
provider: "clawhub",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { StandardPairingChannel } from './pairing-channel.js';
|
|
2
2
|
export declare function resolveDefaultCredentialsDir(env?: NodeJS.ProcessEnv): string;
|
|
3
|
-
/**
|
|
3
|
+
/** Resolve the persisted allowlist path for a channel account. */
|
|
4
4
|
export declare function resolveStandardAllowFromPath(channel: StandardPairingChannel, accountId: string, env?: NodeJS.ProcessEnv): string;
|
|
5
5
|
export declare function resolveStandardPairingPath(channel: StandardPairingChannel, accountId: string, env?: NodeJS.ProcessEnv): string;
|
|
6
6
|
/** Weixin stores under `~/.xopc/weixin/credentials/` (matches `extensions/weixin` accounts helper). */
|
|
@@ -10,7 +10,7 @@ function resolveDefaultCredentialsDir(env = process.env) {
|
|
|
10
10
|
function safeAccountKey(accountId) {
|
|
11
11
|
return accountId.trim().toLowerCase().replace(/[\\/:*?"<>|]/g, "_").replace(/\.\./g, "_");
|
|
12
12
|
}
|
|
13
|
-
/**
|
|
13
|
+
/** Resolve the persisted allowlist path for a channel account. */
|
|
14
14
|
function resolveStandardAllowFromPath(channel, accountId, env = process.env) {
|
|
15
15
|
const base = `xopc-${channel}`.replace(/[\\/:*?"<>|]/g, "_");
|
|
16
16
|
const safe = safeAccountKey(accountId);
|
|
@@ -182,7 +182,7 @@ export declare function resolveBundledExtensionsDir(): string | null;
|
|
|
182
182
|
*/
|
|
183
183
|
export declare function resolveBundledSkillsDir(): string | null;
|
|
184
184
|
/**
|
|
185
|
-
*
|
|
185
|
+
* Resolve the extension SDK source entry path.
|
|
186
186
|
*/
|
|
187
187
|
export declare function resolveExtensionSdkPath(): string;
|
|
188
188
|
export { existsSync };
|
package/dist/src/config/paths.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import type { Config } from '../../config/schema.js';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export type PluginMcpOrigin = {
|
|
3
|
+
id: string;
|
|
4
|
+
revision: string;
|
|
5
|
+
serverName: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function schedulePluginRuntimeAccessRefresh(config: Config, workspace: string, agentId?: string): void;
|
|
8
|
+
export declare function assertPluginMcpCallAccess(config: Config, workspace: string, origin: PluginMcpOrigin): Promise<void>;
|
|
@@ -7,30 +7,41 @@ import { PluginSetupService } from "./setup.js";
|
|
|
7
7
|
//#region src/extensions/agent-plugins/refresh-runtime-access.ts
|
|
8
8
|
init_logger();
|
|
9
9
|
const log = createLogger("PluginRuntimeAccess");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
10
|
+
const refreshIntervalMs = 6e4;
|
|
11
|
+
const refreshes = /* @__PURE__ */ new Map();
|
|
12
|
+
function refreshPlugin(config, store, plugin, workspace) {
|
|
13
|
+
if (!pluginAuthorizations(plugin.manifest).length && !Object.values(plugin.layout?.userConfig ?? {}).some((field) => field.sensitive) && Object.values(plugin.servers).every((server) => server.type === "stdio" || server.connectionAuth?.mode === "none")) return Promise.resolve();
|
|
14
|
+
const key = JSON.stringify([plugin.id, plugin.receipt.revision]);
|
|
15
|
+
const current = refreshes.get(key);
|
|
16
|
+
if (current) return current;
|
|
17
|
+
const refresh = new PluginSetupService(store).refreshRuntime(plugin.id, config, workspace).finally(() => {
|
|
18
|
+
setTimeout(() => refreshes.delete(key), refreshIntervalMs).unref();
|
|
19
|
+
});
|
|
20
|
+
refreshes.set(key, refresh);
|
|
21
|
+
return refresh;
|
|
22
|
+
}
|
|
23
|
+
function schedulePluginRuntimeAccessRefresh(config, workspace, agentId) {
|
|
24
|
+
setImmediate(() => {
|
|
25
|
+
const store = new AgentPluginStore();
|
|
26
|
+
Promise.resolve().then(() => Promise.all(store.active(agentId, workspace).map(async (plugin) => {
|
|
27
|
+
try {
|
|
28
|
+
await refreshPlugin(config, store, plugin, workspace);
|
|
29
|
+
} catch (err) {
|
|
30
|
+
log.warn({
|
|
31
|
+
err,
|
|
32
|
+
pluginId: plugin.id
|
|
33
|
+
}, "Could not refresh plugin authorization state");
|
|
34
|
+
}
|
|
35
|
+
}))).catch((err) => log.warn({ err }, "Could not list plugins for authorization refresh"));
|
|
36
|
+
}).unref();
|
|
37
|
+
}
|
|
38
|
+
async function assertPluginMcpCallAccess(config, workspace, origin) {
|
|
39
|
+
const store = new AgentPluginStore();
|
|
40
|
+
const allowedPlugin = () => store.active(void 0, workspace).find((plugin) => plugin.id === origin.id && plugin.receipt.revision === origin.revision && resolvePluginCapabilityAccess(plugin, store).server(origin.serverName));
|
|
41
|
+
const plugin = allowedPlugin();
|
|
42
|
+
if (!plugin) throw new Error("Plugin tool authorization is unavailable. Check the plugin connection.");
|
|
43
|
+
await refreshPlugin(config, store, plugin, workspace);
|
|
44
|
+
if (!allowedPlugin()) throw new Error("Plugin tool authorization changed. Check the plugin connection.");
|
|
34
45
|
}
|
|
35
46
|
//#endregion
|
|
36
|
-
export {
|
|
47
|
+
export { assertPluginMcpCallAccess, schedulePluginRuntimeAccessRefresh };
|
|
@@ -119,7 +119,7 @@ export declare class PluginSetupService {
|
|
|
119
119
|
id: string;
|
|
120
120
|
name: string;
|
|
121
121
|
}>>>;
|
|
122
|
-
authorization(id: string, owner: string, server: string, config: Config): Promise<import("
|
|
122
|
+
authorization(id: string, owner: string, server: string, config: Config): Promise<import("./cli-authorization.js").PluginCliAuthorization | import("../../agent/mcp/connection-setup.js").McpAuthorization>;
|
|
123
123
|
redirect(id: string, owner: string, server: string, url: string, config: Config): boolean;
|
|
124
124
|
private config;
|
|
125
125
|
startPrepare(id: string, owner: string, revision: number, config: Config, workspace: string, idempotencyKey?: string): PluginSetupJob;
|
|
@@ -443,7 +443,7 @@ var PluginSetupService = class {
|
|
|
443
443
|
job.state = "running";
|
|
444
444
|
job.resources = "running";
|
|
445
445
|
delete job.error;
|
|
446
|
-
this.write(job);
|
|
446
|
+
if (!refreshOnly) this.write(job);
|
|
447
447
|
try {
|
|
448
448
|
if (!refreshOnly) await preparePluginResources(this.store, plugin, controller.signal);
|
|
449
449
|
job.resources = "ready";
|
|
@@ -488,7 +488,7 @@ var PluginSetupService = class {
|
|
|
488
488
|
const persisted = this.get(id, owner);
|
|
489
489
|
if (!persisted || persisted.id !== job.id || persisted.revision !== job.revision || persisted.state === "cancelled" || !this.store.receipt(id)) throw new Error("Setup changed");
|
|
490
490
|
this.config(id, job.packageRevision, config);
|
|
491
|
-
this.write(job);
|
|
491
|
+
if (!refreshOnly) this.write(job);
|
|
492
492
|
}
|
|
493
493
|
for (const target of job.authorizations) {
|
|
494
494
|
const declaration = declarations.find((value) => value.id === target.id);
|
|
@@ -2,7 +2,7 @@ import { PACKAGE_VERSION, init_package_version } from "../package-version.js";
|
|
|
2
2
|
import { createLogger, createServiceLogger } from "../utils/logger/index.js";
|
|
3
3
|
import { init_logger } from "../utils/logger.js";
|
|
4
4
|
import { init_agent_scope, resolveAgentWorkspaceDir, resolveDefaultAgentId } from "../agent/agent-scope.js";
|
|
5
|
-
import { init_paths, resolveBundledExtensionsDir,
|
|
5
|
+
import { init_paths, resolveBundledExtensionsDir, resolveExtensionsDir, resolveWorkspaceExtensionsDir } from "../config/paths.js";
|
|
6
6
|
import { getProviderRegistry, init_plugin_registry } from "../providers/plugin-registry.js";
|
|
7
7
|
import { normalizeExtensionManifest } from "./normalize-manifest.js";
|
|
8
8
|
import { areExtensionsGloballyDisabled, discoverExtensionsFromDisk } from "./discover-extensions.js";
|
|
@@ -19,10 +19,9 @@ import { EXTENSION_API_VERSION, EXTENSION_UI_API_VERSION, checkExtensionApiCompa
|
|
|
19
19
|
import { DEFAULT_SECURITY_CONFIG, checkExtensionDirSafety, checkExtensionPathSafety, isExtensionAllowed, logSecurityIssue, provenanceTracker } from "./security.js";
|
|
20
20
|
import { getSlotRegistry } from "./slots.js";
|
|
21
21
|
import { getExtensionCache, getExtensionDiagnostics } from "./diagnostics.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
22
|
+
import { pathToFileURL } from "node:url";
|
|
23
|
+
import { isAbsolute, join } from "path";
|
|
24
24
|
import { existsSync, readFileSync } from "fs";
|
|
25
|
-
import { createJiti } from "jiti";
|
|
26
25
|
//#region src/extensions/loader.ts
|
|
27
26
|
/**
|
|
28
27
|
* Extension Loader and Registry
|
|
@@ -57,7 +56,6 @@ var ExtensionLoader = class {
|
|
|
57
56
|
options;
|
|
58
57
|
extensionInstances = /* @__PURE__ */ new Map();
|
|
59
58
|
startedServiceIds = /* @__PURE__ */ new Set();
|
|
60
|
-
jiti;
|
|
61
59
|
_appConfig;
|
|
62
60
|
_runtimeContext;
|
|
63
61
|
securityConfig;
|
|
@@ -83,39 +81,6 @@ var ExtensionLoader = class {
|
|
|
83
81
|
this.slotRegistry = getSlotRegistry();
|
|
84
82
|
this.cache = getExtensionCache();
|
|
85
83
|
this.diagnostics = getExtensionDiagnostics();
|
|
86
|
-
const alias = {};
|
|
87
|
-
const sdkPath = resolveExtensionSdkPath();
|
|
88
|
-
if (sdkPath) {
|
|
89
|
-
const sdkDir = dirname(sdkPath);
|
|
90
|
-
const sdkSubpaths = [
|
|
91
|
-
"core",
|
|
92
|
-
"lazy",
|
|
93
|
-
"provider",
|
|
94
|
-
"channel",
|
|
95
|
-
"hooks",
|
|
96
|
-
"tools",
|
|
97
|
-
"testing",
|
|
98
|
-
"speech",
|
|
99
|
-
"media"
|
|
100
|
-
];
|
|
101
|
-
const prefix = "@xopcai/xopc/extension-sdk";
|
|
102
|
-
alias[prefix] = sdkPath;
|
|
103
|
-
for (const subpath of sdkSubpaths) alias[`${prefix}/${subpath}`] = join(sdkDir, `${subpath}.ts`);
|
|
104
|
-
}
|
|
105
|
-
this.jiti = createJiti(fileURLToPath(import.meta.url), {
|
|
106
|
-
interopDefault: true,
|
|
107
|
-
extensions: [
|
|
108
|
-
".ts",
|
|
109
|
-
".tsx",
|
|
110
|
-
".mts",
|
|
111
|
-
".cts",
|
|
112
|
-
".js",
|
|
113
|
-
".mjs",
|
|
114
|
-
".cjs",
|
|
115
|
-
".json"
|
|
116
|
-
],
|
|
117
|
-
alias
|
|
118
|
-
});
|
|
119
84
|
}
|
|
120
85
|
/**
|
|
121
86
|
* Reuse a pre-built metadata snapshot (avoids duplicate filesystem discovery).
|
|
@@ -53,7 +53,6 @@ export declare class TypedEventBus<TEvents extends EventMap = EventMap, TRequest
|
|
|
53
53
|
private requestHandlers;
|
|
54
54
|
private pendingRequests;
|
|
55
55
|
private options;
|
|
56
|
-
private requestIdCounter;
|
|
57
56
|
constructor(options?: TypedEventBusOptions);
|
|
58
57
|
/**
|
|
59
58
|
* Subscribe to an event
|
|
@@ -103,6 +103,10 @@ import { DiscussionSealer } from "../discussions/sealer.js";
|
|
|
103
103
|
import "../discussions/index.js";
|
|
104
104
|
import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
|
|
105
105
|
import "../endpoint-tools/index.js";
|
|
106
|
+
import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
|
|
107
|
+
import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
|
|
108
|
+
import { HomeIntelligenceHost } from "../home-intelligence/host.js";
|
|
109
|
+
import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
|
|
106
110
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
107
111
|
import { prepareAutomationAgentSession } from "./automation-agent-session.js";
|
|
108
112
|
import { deliverAutomationCompletion } from "./automation-completion-delivery.js";
|
|
@@ -164,10 +168,6 @@ import { TaskMainUpdateDecisionService } from "../tasks/task-main-update-decisio
|
|
|
164
168
|
import { selectTaskMainUpdateAttempt, submitAndConfirmTaskMainUpdate } from "../tasks/task-main-update-input.js";
|
|
165
169
|
import { checkAppContextAccess, prepareAppContext } from "./service/app-context-access.js";
|
|
166
170
|
import { applyAutomaticVoiceLanguage, inferProductLanguageFromEnvironment, initializeVoiceDefaults } from "../voice/language-profile.js";
|
|
167
|
-
import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
|
|
168
|
-
import { HomeIntelligenceHost } from "../home-intelligence/host.js";
|
|
169
|
-
import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
|
|
170
|
-
import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
|
|
171
171
|
import crypto from "node:crypto";
|
|
172
172
|
//#region src/gateway/service.ts
|
|
173
173
|
init_session_repository();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
|
|
4
3
|
import { homePatternKey } from "./strategy.js";
|
|
5
|
-
import { HomeAdvicePolicy } from "./policy.js";
|
|
6
4
|
import { HomeIntelligenceRepository } from "./repository.js";
|
|
7
5
|
import { HomeOpportunityApplicationService } from "./application-service.js";
|
|
6
|
+
import { HomeAdvicePolicy } from "./policy.js";
|
|
7
|
+
import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
|
|
8
8
|
import { buildHomeOpportunityNotification } from "./notification.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
//#region src/home-intelligence/host.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xopcai/xopc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.447",
|
|
4
4
|
"description": "An open-source AI assistant for work and everyday life. Remembers context and helps you get things done. Local-first, on a computer you choose.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -101,7 +101,6 @@
|
|
|
101
101
|
"glob": "^13.0.6",
|
|
102
102
|
"grammy": "^1.43.0",
|
|
103
103
|
"hono": "^4.12.25",
|
|
104
|
-
"jiti": "^2.7.0",
|
|
105
104
|
"js-yaml": "^4.3.2",
|
|
106
105
|
"linkedom": "0.18.13",
|
|
107
106
|
"luxon": "3.7.2",
|
|
@@ -171,8 +170,8 @@
|
|
|
171
170
|
"vue": "^3.5.44",
|
|
172
171
|
"xlsx": "file:web/vendor/xlsx-0.20.3.tgz",
|
|
173
172
|
"@xopcai/browser-control-contract": "0.1.0",
|
|
174
|
-
"@xopcai/computer-control-contract": "0.1.0",
|
|
175
173
|
"@xopcai/endpoint-tools-client": "0.0.0",
|
|
174
|
+
"@xopcai/computer-control-contract": "0.1.0",
|
|
176
175
|
"@xopcai/endpoint-tools-protocol": "0.0.0",
|
|
177
176
|
"@xopcai/gateway-contract": "0.0.0",
|
|
178
177
|
"@xopcai/image-providers": "0.1.0",
|
|
@@ -209,7 +208,7 @@
|
|
|
209
208
|
"mobile:ios:build": "pnpm run mobile:ios:generate && cd apps/mobile-ios && xcodebuild -project XopcMobile.xcodeproj -scheme XopcMobile -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO build",
|
|
210
209
|
"mobile:ios:test": "pnpm run mobile:ios:generate && cd apps/mobile-ios && xcodebuild -project XopcMobile.xcodeproj -scheme XopcMobile -destination 'platform=iOS Simulator,name=iPhone 17 Pro' -only-testing:XopcMobileTests CODE_SIGNING_ALLOWED=NO test",
|
|
211
210
|
"mobile:test": "pnpm run mobile:android:test && pnpm run mobile:ios:test",
|
|
212
|
-
"mobile:test:stream": "pnpm --
|
|
211
|
+
"mobile:test:stream": "pnpm exec vitest run --project packages packages/realtime-protocol/src/index.test.ts packages/gateway-contract/src/session-input-reliability.test.ts packages/gateway-contract/src/tool-activity.test.ts packages/gateway-contract/src/turn-outcome.test.ts",
|
|
213
212
|
"harmony:verify": "tsx apps/mobile-harmony/scripts/verify.mts",
|
|
214
213
|
"harmony:test:server": "tsx apps/mobile-harmony/scripts/native-test-server.mts",
|
|
215
214
|
"mobile:release:patch": "bash scripts/apps/mobile-native/release-patch.sh",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ENV_VARS, init_paths_state, resolveStateDir } from "../../../../src/config/paths-state.js";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
//#region extensions/feishu/src/auth/paths.ts
|
|
4
|
-
init_paths_state();
|
|
5
|
-
function resolveFeishuCredentialsDir() {
|
|
6
|
-
const explicit = process.env[ENV_VARS.CREDENTIALS_DIR]?.trim();
|
|
7
|
-
if (explicit) return explicit;
|
|
8
|
-
return path.join(resolveStateDir(), "credentials");
|
|
9
|
-
}
|
|
10
|
-
function resolveFeishuFrameworkAllowFromPath(accountId) {
|
|
11
|
-
const base = "xopc-feishu".replace(/[\\/:*?"<>|]/g, "_");
|
|
12
|
-
const safeAccount = accountId.trim().toLowerCase().replace(/[\\/:*?"<>|]/g, "_").replace(/\.\./g, "_");
|
|
13
|
-
return path.join(resolveFeishuCredentialsDir(), `${base}-${safeAccount}-allowFrom.json`);
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { resolveFeishuCredentialsDir, resolveFeishuFrameworkAllowFromPath };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
type BindingRecord = {
|
|
2
|
-
accountId: string;
|
|
3
|
-
conversationId: string;
|
|
4
|
-
parentConversationId?: string;
|
|
5
|
-
targetConversationId: string;
|
|
6
|
-
boundAt: number;
|
|
7
|
-
lastActivityAt: number;
|
|
8
|
-
metadata?: Record<string, unknown>;
|
|
9
|
-
};
|
|
10
|
-
export declare function bindFeishuConversation(params: {
|
|
11
|
-
accountId: string;
|
|
12
|
-
conversationId: string;
|
|
13
|
-
parentConversationId?: string;
|
|
14
|
-
targetConversationId: string;
|
|
15
|
-
metadata?: Record<string, unknown>;
|
|
16
|
-
}): BindingRecord;
|
|
17
|
-
export declare function listBindingsByConversationId(accountId: string, targetConversationId: string): BindingRecord[];
|
|
18
|
-
export declare function unbindByConversationId(accountId: string, targetConversationId: string): BindingRecord[];
|
|
19
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
//#region extensions/feishu/src/state/thread-bindings.ts
|
|
2
|
-
const STATE_KEY = Symbol.for("xopc.feishuThreadBindingsState");
|
|
3
|
-
function getState() {
|
|
4
|
-
const store = globalThis;
|
|
5
|
-
let st = store[STATE_KEY];
|
|
6
|
-
if (!st) {
|
|
7
|
-
st = { byAccountConversation: /* @__PURE__ */ new Map() };
|
|
8
|
-
store[STATE_KEY] = st;
|
|
9
|
-
}
|
|
10
|
-
return st;
|
|
11
|
-
}
|
|
12
|
-
function key(accountId, conversationId) {
|
|
13
|
-
return `${accountId}:${conversationId}`;
|
|
14
|
-
}
|
|
15
|
-
function bindFeishuConversation(params) {
|
|
16
|
-
const now = Date.now();
|
|
17
|
-
const rec = {
|
|
18
|
-
accountId: params.accountId,
|
|
19
|
-
conversationId: params.conversationId,
|
|
20
|
-
parentConversationId: params.parentConversationId,
|
|
21
|
-
targetConversationId: params.targetConversationId,
|
|
22
|
-
boundAt: now,
|
|
23
|
-
lastActivityAt: now,
|
|
24
|
-
metadata: params.metadata
|
|
25
|
-
};
|
|
26
|
-
getState().byAccountConversation.set(key(rec.accountId, rec.conversationId), rec);
|
|
27
|
-
return rec;
|
|
28
|
-
}
|
|
29
|
-
function listBindingsByConversationId(accountId, targetConversationId) {
|
|
30
|
-
const out = [];
|
|
31
|
-
for (const rec of getState().byAccountConversation.values()) if (rec.accountId === accountId && rec.targetConversationId === targetConversationId) out.push(rec);
|
|
32
|
-
return out;
|
|
33
|
-
}
|
|
34
|
-
function unbindByConversationId(accountId, targetConversationId) {
|
|
35
|
-
const removed = [];
|
|
36
|
-
for (const rec of getState().byAccountConversation.values()) {
|
|
37
|
-
if (rec.accountId !== accountId || rec.targetConversationId !== targetConversationId) continue;
|
|
38
|
-
getState().byAccountConversation.delete(key(rec.accountId, rec.conversationId));
|
|
39
|
-
removed.push(rec);
|
|
40
|
-
}
|
|
41
|
-
return removed;
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
export { bindFeishuConversation, listBindingsByConversationId, unbindByConversationId };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare function handleFeishuSubagentSpawning(event: any, ctx?: {
|
|
2
|
-
requesterConversationId?: string;
|
|
3
|
-
}): Promise<{
|
|
4
|
-
status: "error";
|
|
5
|
-
error: string;
|
|
6
|
-
threadBindingReady?: undefined;
|
|
7
|
-
} | {
|
|
8
|
-
status: "ok";
|
|
9
|
-
threadBindingReady: boolean;
|
|
10
|
-
error?: undefined;
|
|
11
|
-
}>;
|
|
12
|
-
export declare function handleFeishuSubagentEnded(event: any): void;
|