@xopcai/xopc 0.0.462 → 0.0.464
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/_locales/en/messages.json +1 -0
- package/dist/browser-ext/_locales/zh_CN/messages.json +1 -0
- package/dist/browser-ext/dist/assets/{auth-CQmxIyWw.js → auth-YPMDpWOW.js} +32 -1
- package/dist/browser-ext/dist/background.js +24 -19
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +12 -7
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-CQHh48Zf.js → activity-store-B9heFbtJ.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CAz-Ke6Q.js → agent-avatar-dicebear-nzhB7Xjk.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-loBdGw_i.js → agent-avatar-display-DBzgoHMD.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-By2Q-6JS.js → agent-defaults-settings-panel-BJrNV93g.js} +1 -1
- package/dist/gateway/static/root/assets/agent-plugin-dialog-DLbTHALG.js +1 -0
- package/dist/gateway/static/root/assets/agents-C2xG8f56.js +77 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-D0N09mqJ.js → agents-admin-api-CqQbYIiY.js} +1 -1
- package/dist/gateway/static/root/assets/{api-B1J5ajiP.js → api-8tNOT72p.js} +1 -1
- package/dist/gateway/static/root/assets/{api-B4FJ51EC.js → api-BGodd--L.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-BHlUDZOG.js → app-management-settings-panel-Q7apF7KE.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-Du5JLyV1.js → appearance-settings-ClVZeUmo.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-QLOYw2QR.js → apps-page-BsJJwpKj.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-BAvglLfu.js → archive-plugin-Bl_M0WJp.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-DxBmyzp0.js → automation-api-BOnIc_vw.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-CAsqgMNR.js → automation-result-state-BwDSJs05.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-BmYeWB_N.js → automation-run-list-CqlIq4BG.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-CJbIHRxN.js → automation-task-card-D3WXVKRs.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DpKnqajR.js → automations-page-Bimqx5Pc.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-2SOvmw-f.js +9 -0
- package/dist/gateway/static/root/assets/{binary-plugins-D2bFqG6K.js → binary-plugins-DDNKe1Io.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-DrZyRQQ0.js → block-editor-BQ3amsRP.js} +5 -5
- package/dist/gateway/static/root/assets/{browser-settings-page-CGcgZOWh.js → browser-settings-page-CHf1_RVl.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-hSb-qEgL.js → capabilities-C5oWMC-Z.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-Dr-vvMez.js → capabilities-Cj8vl1ZY.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-rTjkjo71.js +2 -0
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-B08mjrGB.js → capabilities-settings-panel-k5CcwhXN.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-B--IHNs4.js → channels-DvB2fwPI.js} +1 -1
- package/dist/gateway/static/root/assets/chat-agents-api-C3JChTsh.js +1 -0
- package/dist/gateway/static/root/assets/{chat-chart-block-ClCZyIi0.js → chat-chart-block-DrtmYOIo.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-qnsMsF_s.js +71 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-eneTvxV3.js → chat-terminal-dock-B0D220I-.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-CP0F6sIm.js → command-palette-api-CkJ6_Yf3.js} +1 -1
- package/dist/gateway/static/root/assets/composer-handoff-params-GKGdXjMZ.js +1 -0
- package/dist/gateway/static/root/assets/{composer-model-config-control-DAagrRx_.js → composer-model-config-control-DQCOWHzJ.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-notifications-CqV6Xj-H.js → composer-notifications-D__OU_xx.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-Dc43dgSg.js → composer-payload-handoff-BBTbJ1bO.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-f-vcEpeF.js → computer-settings-page-DGRUCkOt.js} +1 -1
- package/dist/gateway/static/root/assets/{connected-providers-grid-CZ-FXxaW.js → connected-providers-grid-BoDipD2g.js} +1 -1
- package/dist/gateway/static/root/assets/{connection-usage-guide-Cibh2lrV.js → connection-usage-guide-B1VUqibv.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-Btz68iy8.js → connector-service-page-bwQ1PekA.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-CTuVWwBf.js → connectors-api-BvYGL65q.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-Bs29RvXz.js → connectors-page-BX6Jt6w5.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-XnE3iFhG.js → date-picker-ClRDaNBJ.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-VGKm0HVn.js → date-time-picker-CA6H47M6.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-CBm3DySQ.js → desktop-pet-Bi8Hgf-x.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-6O77QXGo.js → desktop-pet-settings-CQ6qE8lf.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-B8fGILny.js → dev-view-store-UCqQeWa2.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-qtUvtdDT.js → device-pairing-wizard-gC-XZxt2.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-ByDqf5fE.js → directory-picker-path-field-Y8snl5Xl.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-authoritative-grants-BfL8dMBf.js → extension-authoritative-grants-D2abOXTl.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-Bn_5xu_M.js → extension-debug-page-OOlRCInL.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-Vs6USa0c.js → extension-iframe-host-D_WXBf6a.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-marketplace-api-BIzkukYp.js → extension-marketplace-api-Bmtm6-L1.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-message-router-GIekDj_w.js → extension-message-router-xqjjSxcp.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-C_3bIjSB.js → extension-page-bpQnyNz-.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-D-LolObs.js → extension-provider-l7SvHEK1.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-BV51dk16.js → extension-settings-page-DKAJE4h9.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-i5UOFnQF.js → file-preview-surface-B-r2ZnCV.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-1Rk0LeEM.js → gateway-config-swr-DOwezeL2.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-DIs1pjkQ.js → gateway-realtime-Br7dErHY.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-OaEqjNTb.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-DTmlcJps.js → gateway-restart-B3Xro3qd.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-ClcCloqQ.js → gateway-settings-DCnP-HPj.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-D6WPS0RW.js → gateway-startup-retry-vteSIhYI.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-BpDMnJe7.js → global-defaults-api-Bpje9rVk.js} +1 -1
- package/dist/gateway/static/root/assets/grip-horizontal-CqVA8V1e.js +1 -0
- package/dist/gateway/static/root/assets/home-page-CNEgNWEQ.js +8 -0
- package/dist/gateway/static/root/assets/{image-generation-api-sbtx4NiC.js → image-generation-api-BvpAa3Lj.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-CBlaxUhl.js → imports-page-Dx5T5pqw.js} +1 -1
- package/dist/gateway/static/root/assets/index-BGA-G-Bp.css +1 -0
- package/dist/gateway/static/root/assets/index-pmlYYCCU.js +11 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-DxSv1wS2.js → install-connector-dialog-Cb4ufypG.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-CnAV96nr.js → keyboard-shortcuts-settings-BEuXrnv0.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-CfnixDO3.js → local-app-workbench-page-CPFIbEbv.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-BI3Be5qo.js → local-apps-page-DxHcRSxc.js} +1 -1
- package/dist/gateway/static/root/assets/local-session-drafts-Cmc-GCVa.js +4 -0
- package/dist/gateway/static/root/assets/{locale-store-Dy1EByeG.js → locale-store-tI9VX7dp.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-CMW34T31.js → logs-page-BcibwftP.js} +1 -1
- package/dist/gateway/static/root/assets/{management-api-B5w5DdXH.js → management-api-C9tFjLcE.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-DfcMIqbQ.js → management-settings-DbnAlXoB.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-CNJaAdNN.js → markdown-view-CSpQhSka.js} +1 -1
- package/dist/gateway/static/root/assets/mcp-conversation-setup-page-DedbjJbF.js +1 -0
- package/dist/gateway/static/root/assets/{media-plugins-DGhWjPIU.js → media-plugins-BYnP_orq.js} +1 -1
- package/dist/gateway/static/root/assets/{messages-BAnhwALN.js → messages-e5MhDONm.js} +2 -2
- package/dist/gateway/static/root/assets/{model-selector-C-CqPBao.js → model-selector-B4oTiJI6.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-Bgh3Gfgl.js → models-hub-cache-DpEClnsE.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-D_l5jkV9.js → note-detail-panel-D8asMfBm.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-DcDw5kp4.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-BOIM9Q_D.js → notes-api-pVC1amyp.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-R4uJroeD.js → notes-page-CG1_6PLz.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-api-B560CHeD.js → oauth-api-BsVPwufr.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-D63M8Iv7.js → oauth-provider-connect-Bu20kmPq.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-B_Vdo2Ai.js → page-context-capture-button-CDsnNXjS.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-Cr5GqS2D.js → page-context-draft-D6tu8c_9.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-DeaRqZgV.js +1 -0
- package/dist/gateway/static/root/assets/panels-top-left-BKvp2Dag.js +1 -0
- package/dist/gateway/static/root/assets/{personal-avatar-BMRVyTrE.js → personal-avatar-BboNc6e2.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-BsONyPfQ.js → personal-page-gMRmLCWG.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-profile-settings-C4CxmQLQ.js → personal-profile-settings-Cd4QyseL.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-settings-panel-CnxI2TL0.js → personal-settings-panel-CtBY_Uk1.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-flTci8mm.js → phone-dependencies-card-BgH1LluB.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-Vi_Swyv6.js → phone-model-connection-DkdKU5Kv.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-BOv3mb_F.js → phone-model-picker-0g1z4RPL.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-vD0bTcHj.js → phone-settings-page-DlIUajBY.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-Ltrevdsx.js → phone-workspace-store-DW2sZtkh.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-nSDw8sfo.js → plugin-details-dialog-9KUkZk_t.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-D1pZekPs.js → preference-select-fields-DH5QZhIc.js} +1 -1
- package/dist/gateway/static/root/assets/{product-automation-feedback-CGso8wGv.js → product-automation-feedback-a1thJ0M9.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-BO8lUvw3.js → product-open-page-DCzQh7tr.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-Dgtb4LF7.js → product-preview-content-C5TLcagj.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-C35EWUps.js → product-preview-modal-D9f-7kcI.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-xNSy6SAv.js → project-detail-page-C4Z2HTRZ.js} +2 -2
- package/dist/gateway/static/root/assets/{project-understanding-Cg8WbBNB.js → project-understanding-CoPBvlqf.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-C6Pt6OdT.js → projects-page-k1v8Fry8.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-Nytkkop9.js → providers-api-BSJZyO8n.js} +1 -1
- package/dist/gateway/static/root/assets/{recording-upload-CFX7CANT.js → recording-upload-CExCePtr.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-DuDIthjL.js → registry-api-CqcJj60w.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-DePwafOK.js → remote-access-hub-BLFkNl1y.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-BRKhKJA0.js → resource-unavailable-B_BXTQa7.js} +1 -1
- package/dist/gateway/static/root/assets/{right-workspace-store-HPw7Gw0n.js → right-workspace-store-OceFhUjM.js} +1 -1
- package/dist/gateway/static/root/assets/route-preload-5iwjWERk.js +2 -0
- package/dist/gateway/static/root/assets/{routine-panel-KH1VaEdC.js → routine-panel-BsE9o9uu.js} +2 -2
- package/dist/gateway/static/root/assets/{runtime-tools-api-Dd8a07eo.js → runtime-tools-api-aAZChVm4.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-CvHQoqHu.js → runtime-tools-settings-panel-Bn9HTrK5.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-DDlMyPvC.js → service-recommendation-list-BNIVRGDf.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-BFiIYodK.js → session-api-DdW7Wix2.js} +1 -1
- package/dist/gateway/static/root/assets/session-channel-icon-DUJbB-Km.js +1 -0
- package/dist/gateway/static/root/assets/{session-identity-label-D5SAi0Uh.js → session-identity-label-DjhlQ6LU.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-XgtApqIh.js +25 -0
- package/dist/gateway/static/root/assets/sessions-page-CfhKeUkZ.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BBG8dTIY.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-B-H1gYOs.js → settings-advanced-section-BOoJfJuB.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-YH60sibB.js → settings-mode-store-BMh_BQ9a.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-8MiJzbbl.js → settings-page-DNiRlM5x.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-DEZZ8D0S.js → settings-page-header-Bfu4cuQd.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-De2j64Lo.js → settings-page-layout-BnZa1qHH.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-Dh6BPwv0.js → setup-interaction-page-CVlrVNrm.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-DGAAczL-.js → setup-status-panel-FFyDODEx.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-C1t_HB6f.js → share-link-dialog-Cv-eDEw_.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-Cqy-7-rd.js → share-preview-page-BctH6eFs.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-Dm07CnXw.js → shares-api-cLTEcQLE.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-DcetAN8K.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-BV8oFqeE.js → skill-api-CgEZJoy9.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-1o_YRCu9.js → skill-list-api-BWVr2PL5.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-fGsO9Y86.js → skill-reload-api-BLhHNvaK.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-DReUQ4Ug.js → skills-page-DIjcAvA0.js} +1 -1
- package/dist/gateway/static/root/assets/sliding-segmented-DagP0myu.js +1 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-CUI6QHEP.js → system-settings-panel-C7LAPaN_.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-DxKXoBbE.js → task-detail-page-DmNEMg-l.js} +1 -1
- package/dist/gateway/static/root/assets/{task-result-evidence-CW_tN93T.js → task-result-evidence-BsBn3n_l.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-Du53Upr2.js → terminal-panel-store-DJbLuUku.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-BaWep_o7.js → theme-store-QGcjV6pN.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-CnciBMVH.js → tracing-settings-page-BKCiPwYL.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-Iz7JCBt3.js → tunnel-api-S7J5Lpzt.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-BFc8PamJ.js → understanding-activity-store-BNVhtJkn.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-CdEfR40A.js → understanding-refresh-store-Cf0DUO_C.js} +1 -1
- package/dist/gateway/static/root/assets/undo-2-6IMTwK4M.js +1 -0
- package/dist/gateway/static/root/assets/{unlink-BEuthaaq.js → unlink-NsCMuCT1.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-DL2fmeOh.js → usage-page-D-AqzjIx.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-N_SjHXTw.js → use-autosave-CqZbhhCc.js} +1 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-BfLhIb2_.js +2 -0
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-D0IBFhM9.js → use-file-preview-expanded-DufxDues.js} +3 -3
- package/dist/gateway/static/root/assets/{use-personal-profile-C1vqD9yV.js → use-personal-profile-RnjxZnLa.js} +1 -1
- package/dist/gateway/static/root/assets/{use-realtime-voice-B5IsKrRW.js → use-realtime-voice-w3aHR2dr.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-7X2ydgS8.js → use-workspace-tree-2Ck-ql5c.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-D2FHjLi7.js → user-model-page-CdB9qH57.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-B_GApUQP.js → voice-api-key-field-C4rhpgco.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-DhJ3l8fk.js → voice-config-api-7AHN-ns6.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-CEeFBhp3.js → voice-input-shortcut-events-BbRrj833.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-settings-57pwZeKD.js → voice-settings-wamtp0lg.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-UvWbDUXi.js → work-discovery-overlay-fVofN7aP.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-BM1HsYz6.js → work-discovery-page-DcQG5GWy.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-BGZduAXV.js → working-directory-picker-modal-D8Stwszr.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-Dd_UDfeo.js → workspace-api-D3iuTdNK.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-C-J7vr2o.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-Clj9hMj5.js → workspace-file-preview-dialog-BXbL5Y1h.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-CvZxU9de.js → workspace-open-location-menu-1gFO_BdL.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-preview-store-imhtuEIP.js → workspace-preview-store-adwmi4nx.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Q_jezTUy.js → xopc-cloud-account-card-DhGh4rm7.js} +1 -1
- package/dist/gateway/static/root/index.html +97 -93
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/session-input-command.js +5 -0
- package/dist/src/agent/embedded/session-runner.js +2 -2
- package/dist/src/agent/external-tools/gateway-tools.js +8 -1
- package/dist/src/agent/mcp/connection-setup.js +46 -42
- package/dist/src/agent/mcp/conversation-setup.js +13 -8
- package/dist/src/agent/mcp/discovery.d.ts +22 -1
- package/dist/src/agent/mcp/discovery.js +19 -3
- package/dist/src/agent/mcp/managed-discovery.d.ts +8 -0
- package/dist/src/agent/mcp/managed-discovery.js +77 -0
- package/dist/src/agent/mcp/tool-catalog.js +1 -1
- package/dist/src/agent/prompt/conversational-configuration-guide.js +1 -1
- package/dist/src/agent/prompt/response-language.js +9 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +3 -0
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.d.ts +6 -2
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +10 -7
- package/dist/src/agent/tool-manuals/xopc-configuration.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-configuration.js +12 -4
- package/dist/src/cli/commands/extension-agent-plugin.js +1 -1
- package/dist/src/config/schema.d.ts +1 -1
- package/dist/src/connectors/connection-recovery-service.js +38 -5
- package/dist/src/connectors/excluded-connectors.d.ts +1 -0
- package/dist/src/connectors/excluded-connectors.js +5 -1
- package/dist/src/connectors/plugin-connection.d.ts +10 -0
- package/dist/src/connectors/plugin-connection.js +105 -0
- package/dist/src/extensions/agent-plugins/setup.js +1 -1
- package/dist/src/extensions/agent-plugins/skill-catalog.js +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -1
- package/dist/src/gateway/hono/routes/agent-plugins.js +2 -2
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +1 -0
- package/dist/src/gateway/service/config-coordinator.d.ts +1 -1
- package/dist/src/i18n/response-language.d.ts +1 -1
- package/dist/src/storage/sqlite/session-creation-repository.js +6 -1
- package/dist/src/tui/tui-management.js +2 -2
- package/dist/src/user-context/config.d.ts +1 -1
- package/package.json +2 -2
- package/dist/extensions/demo-memory/src/index.d.ts +0 -6
- package/dist/extensions/demo-memory/src/index.js +0 -146
- package/dist/extensions/demo-memory/xopc.extension.json +0 -15
- package/dist/gateway/static/root/assets/agent-plugin-dialog-CikzCYAG.js +0 -1
- package/dist/gateway/static/root/assets/agents-DC0lHtl5.js +0 -77
- package/dist/gateway/static/root/assets/automations-workspace-BXT_EDON.js +0 -9
- package/dist/gateway/static/root/assets/capabilities-page-CnU0htlO.js +0 -2
- package/dist/gateway/static/root/assets/chat-agents-api-CjlzCSmC.js +0 -1
- package/dist/gateway/static/root/assets/chat-page-U2a7d6wP.js +0 -71
- package/dist/gateway/static/root/assets/gateway-realtime-store-sx7B8kdC.js +0 -1
- package/dist/gateway/static/root/assets/home-page-DefKShSW.js +0 -8
- package/dist/gateway/static/root/assets/index-CChzK_5b.css +0 -1
- package/dist/gateway/static/root/assets/index-CEBDMkde.js +0 -11
- package/dist/gateway/static/root/assets/local-session-drafts-BIBHRkpM.js +0 -4
- package/dist/gateway/static/root/assets/mcp-conversation-setup-page-CsTSmjmX.js +0 -1
- package/dist/gateway/static/root/assets/note-image-lightbox-D6mvMSKr.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-Bm8oxpFR.js +0 -1
- package/dist/gateway/static/root/assets/route-preload-Dwb_N8L-.js +0 -2
- package/dist/gateway/static/root/assets/session-channel-icon-BzkFo-Ci.js +0 -1
- package/dist/gateway/static/root/assets/session-manager-63NaXb1s.js +0 -25
- package/dist/gateway/static/root/assets/sessions-page-DQEq_VJS.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Cvx7DnU8.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-BDr50uTV.js +0 -1
- package/dist/gateway/static/root/assets/sliding-segmented-CgQ3BFdb.js +0 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-Xn6eUus2.js +0 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-DVPJcbuE.js +0 -1
|
@@ -18,6 +18,7 @@ import { getInstalledConnectorDefinition, listConnectorInstances } from "./insta
|
|
|
18
18
|
import { describeCliAction, verifyCliConnection } from "./cli/runtime.js";
|
|
19
19
|
import { capabilityActions, isToolInputSchema, missingConnectionCapabilities } from "./connection-capabilities.js";
|
|
20
20
|
import { installConnector } from "./install.js";
|
|
21
|
+
import { readPluginConnection } from "./plugin-connection.js";
|
|
21
22
|
import { resolveConnectionCandidate } from "./connection-candidates.js";
|
|
22
23
|
import { cancelPersonalRequest, resolvePersonalRequestConnection } from "../personal-agent/request-service.js";
|
|
23
24
|
import { persistConfigMutation } from "../config/config-mutation.js";
|
|
@@ -79,6 +80,10 @@ var ConnectionRecoveryService = class {
|
|
|
79
80
|
for (const conversationId of reconcileConnectionWaits()) this.deps.drain(conversationId);
|
|
80
81
|
for (const wait of listConnectionWaitsToCheck()) {
|
|
81
82
|
if (this.busy.has(wait.conversationId) || interruptedConnectionMessage(wait)) continue;
|
|
83
|
+
if (wait.needs.some((need) => need.target.type === "plugin" && !readPluginConnection({
|
|
84
|
+
...need,
|
|
85
|
+
target: need.target
|
|
86
|
+
}, wait.agentId).verified)) continue;
|
|
82
87
|
await this.act(wait.conversationId, {
|
|
83
88
|
waitId: wait.id,
|
|
84
89
|
expectedTranscriptId: wait.transcriptId,
|
|
@@ -188,6 +193,10 @@ var ConnectionRecoveryService = class {
|
|
|
188
193
|
}
|
|
189
194
|
view(wait, verifiedIds) {
|
|
190
195
|
const needs = wait.needs.map((need) => {
|
|
196
|
+
if (need.target.type === "plugin") return readPluginConnection({
|
|
197
|
+
...need,
|
|
198
|
+
target: need.target
|
|
199
|
+
}, wait.agentId).view;
|
|
191
200
|
if (need.target.type === "store-connector") {
|
|
192
201
|
const target = need.target;
|
|
193
202
|
const instance = listConnectorInstances(this.deps.getConfig()).find((item) => item.connectorId === target.connectorId);
|
|
@@ -316,7 +325,7 @@ var ConnectionRecoveryService = class {
|
|
|
316
325
|
}))
|
|
317
326
|
}, verified).needs;
|
|
318
327
|
return Promise.all(wait.needs.map(async (need) => {
|
|
319
|
-
if (need.target.type
|
|
328
|
+
if (need.target.type !== "connector") return need;
|
|
320
329
|
if (views.find((view) => view.key === need.key)?.phase !== "ready") return {
|
|
321
330
|
...need,
|
|
322
331
|
capabilityError: void 0
|
|
@@ -405,10 +414,10 @@ var ConnectionRecoveryService = class {
|
|
|
405
414
|
if (getConnectionWait(wait.id)?.version !== wait.version) return false;
|
|
406
415
|
wait = this.markChecking(wait, "tools");
|
|
407
416
|
const verified = new Set(fresh.filter((item) => item.status === "active").map((item) => item.id));
|
|
408
|
-
wait.needs = wait.needs.map((need) => ({
|
|
417
|
+
wait.needs = wait.needs.map((need) => isConnectorNeed(need) ? {
|
|
409
418
|
...need,
|
|
410
419
|
unavailable: !fresh.some((item) => item.id === need.connectionId && item.status === "active")
|
|
411
|
-
})
|
|
420
|
+
} : need);
|
|
412
421
|
wait.needs = await this.boundedCheck(wait.id, () => this.checkCapabilities(wait, verified));
|
|
413
422
|
const ready = this.view(wait, verified).needs.every((need) => need.phase === "ready");
|
|
414
423
|
if (getConnectionWait(wait.id)?.version !== wait.version) return false;
|
|
@@ -551,6 +560,30 @@ var ConnectionRecoveryService = class {
|
|
|
551
560
|
} else if (action.action === "connect") {
|
|
552
561
|
const need = wait.needs.find((need) => need.key === action.needKey);
|
|
553
562
|
if (!need) throw new Error("Unknown connection requirement.");
|
|
563
|
+
if (need.target.type === "plugin") {
|
|
564
|
+
const plugin = readPluginConnection({
|
|
565
|
+
...need,
|
|
566
|
+
target: need.target
|
|
567
|
+
}, wait.agentId);
|
|
568
|
+
if (plugin.view.phase === "blocked") throw new Error("This plugin cannot be connected from the current objective.");
|
|
569
|
+
updateConnectionWait({
|
|
570
|
+
...wait,
|
|
571
|
+
needs: wait.needs.map((item) => item.key === need.key ? {
|
|
572
|
+
...item,
|
|
573
|
+
attempt: {
|
|
574
|
+
id: action.idempotencyKey,
|
|
575
|
+
connectionId: plugin.revision,
|
|
576
|
+
expiresAt: Date.now() + INTENT_TTL
|
|
577
|
+
}
|
|
578
|
+
} : item),
|
|
579
|
+
intent: {
|
|
580
|
+
objectiveRevision: wait.objectiveRevision,
|
|
581
|
+
validUntil: Date.now() + INTENT_TTL
|
|
582
|
+
}
|
|
583
|
+
}, wait.version);
|
|
584
|
+
publishConnectionWait(conversationId);
|
|
585
|
+
return { snapshot: this.snapshot(conversationId) };
|
|
586
|
+
}
|
|
554
587
|
if (this.view(wait).needs.find((item) => item.key === need.key)?.phase === "blocked") throw new Error("Connector policy blocks this connection.");
|
|
555
588
|
const id = need.target.connectorId;
|
|
556
589
|
const instance = listConnectorInstances(this.deps.getConfig()).find((item) => item.connectorId === id);
|
|
@@ -650,11 +683,11 @@ var ConnectionRecoveryService = class {
|
|
|
650
683
|
if (!latest || latest.version !== wait.version || latest.status !== "open") throw new Error("WAIT_CHANGED");
|
|
651
684
|
const currentNeeds = this.view(wait).needs;
|
|
652
685
|
let needs = wait.needs.map((need) => {
|
|
653
|
-
if (need.target.type === "store-connector") {
|
|
686
|
+
if (need.target.type === "plugin" || need.target.type === "store-connector") {
|
|
654
687
|
const selected = currentNeeds.find((item) => item.key === need.key);
|
|
655
688
|
return selected?.phase === "ready" ? {
|
|
656
689
|
...need,
|
|
657
|
-
connectionId: selected.connectionId,
|
|
690
|
+
connectionId: selected.pluginId ?? selected.connectionId,
|
|
658
691
|
unavailable: false,
|
|
659
692
|
capabilityError: void 0
|
|
660
693
|
} : need;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare function preferredStorePlugin(serviceName: string): string | undefined;
|
|
1
2
|
export declare function isExcludedComposioToolkit(toolkit: string): boolean;
|
|
2
3
|
export declare function assertComposioToolkitAvailable(toolkit: string): void;
|
|
3
4
|
export declare function isExcludedStoreConnector(packageName: string): boolean;
|
|
@@ -7,6 +7,10 @@ const STORE_CONNECTOR_REPLACEMENTS = {
|
|
|
7
7
|
notion: "Store plugin \"notion-office\"",
|
|
8
8
|
"todoist-mcp": "Store plugin \"todoist\""
|
|
9
9
|
};
|
|
10
|
+
function preferredStorePlugin(serviceName) {
|
|
11
|
+
const slug = serviceName.trim().toLowerCase();
|
|
12
|
+
return Object.hasOwn(COMPOSIO_PLUGIN_REPLACEMENTS, slug) ? COMPOSIO_PLUGIN_REPLACEMENTS[slug] : void 0;
|
|
13
|
+
}
|
|
10
14
|
function isExcludedComposioToolkit(toolkit) {
|
|
11
15
|
return Object.hasOwn(COMPOSIO_PLUGIN_REPLACEMENTS, toolkit.trim().toLowerCase());
|
|
12
16
|
}
|
|
@@ -21,4 +25,4 @@ function assertStoreConnectorAvailable(packageName) {
|
|
|
21
25
|
if (isExcludedStoreConnector(packageName)) throw new Error(`Use ${STORE_CONNECTOR_REPLACEMENTS[packageName]} instead of the duplicate Store connector.`);
|
|
22
26
|
}
|
|
23
27
|
//#endregion
|
|
24
|
-
export { assertComposioToolkitAvailable, assertStoreConnectorAvailable, isExcludedComposioToolkit, isExcludedStoreConnector };
|
|
28
|
+
export { assertComposioToolkitAvailable, assertStoreConnectorAvailable, isExcludedComposioToolkit, isExcludedStoreConnector, preferredStorePlugin };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ConnectionNeed, ConnectionNeedView, PluginConnectionTarget } from '@xopcai/gateway-contract';
|
|
2
|
+
import type { Config } from '../config/schema.js';
|
|
3
|
+
export declare function resolvePluginConnectionCandidate(ref: string, config?: Config): Promise<ConnectionNeed | undefined>;
|
|
4
|
+
export declare function readPluginConnection(need: ConnectionNeed & {
|
|
5
|
+
target: PluginConnectionTarget;
|
|
6
|
+
}, agentId: string): {
|
|
7
|
+
view: ConnectionNeedView;
|
|
8
|
+
revision?: string;
|
|
9
|
+
verified: boolean;
|
|
10
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { init_agent_scope, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
|
|
2
|
+
import { resolvePluginCapabilityAccess } from "../extensions/agent-plugins/capability-access.js";
|
|
3
|
+
import { AgentPluginStore } from "../extensions/agent-plugins/store.js";
|
|
4
|
+
import { fetchMarketplacePackageDetail, resolveExtensionsStoreBaseUrl } from "../agent/skills/marketplace/adapters/store/store-api-client.js";
|
|
5
|
+
import { agentPluginInventoryRow } from "../extensions/agent-plugins/inventory.js";
|
|
6
|
+
import { PluginSetupService } from "../extensions/agent-plugins/setup.js";
|
|
7
|
+
import { resolve } from "node:path";
|
|
8
|
+
import { existsSync, realpathSync } from "node:fs";
|
|
9
|
+
//#region src/connectors/plugin-connection.ts
|
|
10
|
+
init_agent_scope();
|
|
11
|
+
async function resolvePluginConnectionCandidate(ref, config) {
|
|
12
|
+
const installed = /^agent-plugin:([a-z0-9.-]+)$/.exec(ref)?.[1];
|
|
13
|
+
if (installed) {
|
|
14
|
+
const plugin = new AgentPluginStore().get(installed);
|
|
15
|
+
if (!plugin) throw new Error("The requested plugin is no longer installed.");
|
|
16
|
+
return {
|
|
17
|
+
key: ref,
|
|
18
|
+
label: plugin.manifest.name,
|
|
19
|
+
capabilities: ["tools"],
|
|
20
|
+
target: {
|
|
21
|
+
type: "plugin",
|
|
22
|
+
pluginId: installed,
|
|
23
|
+
revision: plugin.receipt.revision
|
|
24
|
+
},
|
|
25
|
+
unavailable: true
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
const packageName = /^store-plugin:([a-z0-9.-]+)$/.exec(ref)?.[1];
|
|
29
|
+
if (!packageName) return void 0;
|
|
30
|
+
if (!config) throw new Error("The Store is unavailable in this session.");
|
|
31
|
+
const detail = await fetchMarketplacePackageDetail(resolveExtensionsStoreBaseUrl(config), packageName, AbortSignal.timeout(6e3));
|
|
32
|
+
if (detail.type !== "plugin" || !detail.latestVersion?.version) throw new Error("No matching plugin is available in the Store.");
|
|
33
|
+
return {
|
|
34
|
+
key: ref,
|
|
35
|
+
label: detail.localizations?.en?.displayName ?? packageName,
|
|
36
|
+
capabilities: ["tools"],
|
|
37
|
+
target: {
|
|
38
|
+
type: "plugin",
|
|
39
|
+
packageName,
|
|
40
|
+
version: detail.latestVersion.version
|
|
41
|
+
},
|
|
42
|
+
unavailable: true
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function readPluginConnection(need, agentId) {
|
|
46
|
+
const { target } = need;
|
|
47
|
+
const base = {
|
|
48
|
+
...need,
|
|
49
|
+
authorizationMode: "desktop",
|
|
50
|
+
accounts: []
|
|
51
|
+
};
|
|
52
|
+
const blocked = (reason) => ({
|
|
53
|
+
view: {
|
|
54
|
+
...base,
|
|
55
|
+
phase: "blocked",
|
|
56
|
+
reason
|
|
57
|
+
},
|
|
58
|
+
verified: false
|
|
59
|
+
});
|
|
60
|
+
try {
|
|
61
|
+
const store = new AgentPluginStore();
|
|
62
|
+
const plugin = "pluginId" in target ? store.get(target.pluginId) : store.list().find((item) => item.receipt.provenance?.packageName === target.packageName);
|
|
63
|
+
if (!plugin) return "packageName" in target ? {
|
|
64
|
+
view: {
|
|
65
|
+
...base,
|
|
66
|
+
phase: "install"
|
|
67
|
+
},
|
|
68
|
+
verified: false
|
|
69
|
+
} : blocked("The plugin is no longer installed.");
|
|
70
|
+
if (!("pluginId" in target ? plugin.receipt.revision === target.revision : plugin.receipt.provenance?.version === target.version) || plugin.readiness === "blocked" || store.pending(plugin.id)) return blocked("The plugin has changed or is unavailable. Review it in the plugin manager.");
|
|
71
|
+
const workspace = resolveAgentWorkspaceDir(agentId);
|
|
72
|
+
const scope = plugin.receipt.workspacePaths;
|
|
73
|
+
if (scope && !scope.includes(existsSync(workspace) ? realpathSync(workspace) : resolve(workspace))) return blocked("The plugin is unavailable in this workspace. Review its workspace access in the plugin manager.");
|
|
74
|
+
const inventory = agentPluginInventoryRow(plugin, store);
|
|
75
|
+
const job = new PluginSetupService(store).get(plugin.id, "gateway-owner");
|
|
76
|
+
const setup = job?.packageRevision === plugin.receipt.revision ? job : void 0;
|
|
77
|
+
const revision = JSON.stringify([
|
|
78
|
+
plugin.receipt.revision,
|
|
79
|
+
plugin.receipt.enabled,
|
|
80
|
+
setup?.id,
|
|
81
|
+
setup?.revision
|
|
82
|
+
]);
|
|
83
|
+
const active = store.active(agentId, workspace).some((item) => item.id === plugin.id && item.receipt.revision === plugin.receipt.revision);
|
|
84
|
+
const access = resolvePluginCapabilityAccess(plugin, store);
|
|
85
|
+
const usable = plugin.skills.some((skill) => access.skill(skill.name)) || Object.keys(plugin.servers).some((name) => access.server(name) && (!setup || setup.connections.some((item) => item.name === name && (item.toolCount ?? 0) > 0)));
|
|
86
|
+
const finished = !setup || !setup.deferred && (setup.state === "completed" || Boolean(need.connectionId) && setup.installed && setup.resources === "ready" && setup.state === "action_required");
|
|
87
|
+
const setupVerified = active && usable && inventory.authorizationStatus !== "required" && finished;
|
|
88
|
+
const freshSetup = need.attempt && (!setup || need.attempt.connectionId !== revision);
|
|
89
|
+
const verified = setupVerified && (!need.unavailable || Boolean(freshSetup));
|
|
90
|
+
const phase = verified ? "ready" : setup?.state === "running" ? "authorizing" : plugin.receipt.enabled && (need.unavailable || inventory.authorizationStatus === "required") ? "reconnect" : "connect";
|
|
91
|
+
return {
|
|
92
|
+
revision,
|
|
93
|
+
verified,
|
|
94
|
+
view: {
|
|
95
|
+
...base,
|
|
96
|
+
pluginId: plugin.id,
|
|
97
|
+
phase
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
} catch {
|
|
101
|
+
return blocked("The plugin setup state is unavailable. Review it in the plugin manager.");
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//#endregion
|
|
105
|
+
export { readPluginConnection, resolvePluginConnectionCandidate };
|
|
@@ -7,12 +7,12 @@ import { pluginName, pluginServerId } from "./validation.js";
|
|
|
7
7
|
import { AgentPluginStore } from "./store.js";
|
|
8
8
|
import { readPluginAuthBinding, savePluginAuthBinding, savePluginOAuthReference } from "./auth.js";
|
|
9
9
|
import { pluginConfigMissing, readPluginUserConfig, savePluginUserConfig } from "./user-config.js";
|
|
10
|
+
import { cancelPluginCliAuthorizations, getPluginCliAuthorization, inspectPluginCliAuthorization, startPluginCliAuthorization } from "./cli-authorization.js";
|
|
10
11
|
import { materializePluginServers } from "./mcp-adapter.js";
|
|
11
12
|
import { connectionFingerprint, matchingReusableConnection } from "./connection-reuse.js";
|
|
12
13
|
import { createNativeMcpCredentials } from "../../agent/mcp/credential-store.js";
|
|
13
14
|
import { getNativePiAgentDir } from "../../agent/mcp/native-mcp.js";
|
|
14
15
|
import { cancelMcpAuthorization, getMcpAuthorization, probeMcpConnection, startMcpAuthorization, submitMcpRedirect } from "../../agent/mcp/connection-setup.js";
|
|
15
|
-
import { cancelPluginCliAuthorizations, getPluginCliAuthorization, inspectPluginCliAuthorization, startPluginCliAuthorization } from "./cli-authorization.js";
|
|
16
16
|
import { join } from "node:path";
|
|
17
17
|
import { existsSync, readFileSync } from "node:fs";
|
|
18
18
|
import { randomUUID } from "node:crypto";
|
|
@@ -2,10 +2,10 @@ import { containedPath } from "./contained-path.js";
|
|
|
2
2
|
import "./validation.js";
|
|
3
3
|
import { AgentPluginStore } from "./store.js";
|
|
4
4
|
import { parseFrontmatter } from "../../markdown/frontmatter.js";
|
|
5
|
+
import { agentPluginInventoryRow } from "./inventory.js";
|
|
5
6
|
import { createSkillConfigManager } from "../../agent/skills/config.js";
|
|
6
7
|
import { parseSkillLocalizations } from "../../agent/skills/parse-skill-metadata.js";
|
|
7
8
|
import { buildSkillMarkdownPreviewFromRaw } from "../../agent/skills/skill-markdown-preview-from-raw.js";
|
|
8
|
-
import { agentPluginInventoryRow } from "./inventory.js";
|
|
9
9
|
import { basename, dirname } from "node:path";
|
|
10
10
|
import { readFileSync } from "node:fs";
|
|
11
11
|
//#region src/extensions/agent-plugins/skill-catalog.ts
|
|
@@ -227,7 +227,7 @@ export declare function buildSafeWebConfigPayload(service: GatewayService, optio
|
|
|
227
227
|
};
|
|
228
228
|
userContext: {
|
|
229
229
|
preferences: {
|
|
230
|
-
responseLanguage: "en" | "
|
|
230
|
+
responseLanguage: "en" | "zh-CN" | "auto";
|
|
231
231
|
};
|
|
232
232
|
userModel: {
|
|
233
233
|
enabled: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PluginSelectionRequired } from "../../../extensions/agent-plugins/source-catalog.js";
|
|
2
2
|
import { AgentPluginStore } from "../../../extensions/agent-plugins/store.js";
|
|
3
3
|
import { getWorkspacePath } from "../../../config/workspace-path-helpers.js";
|
|
4
|
+
import { agentPluginInventoryRow } from "../../../extensions/agent-plugins/inventory.js";
|
|
4
5
|
import { savePluginAuthBinding } from "../../../extensions/agent-plugins/auth.js";
|
|
5
|
-
import { evictAllEmbeddedSessionRunners } from "../../../agent/embedded/session-runner.js";
|
|
6
6
|
import { cancelPluginCliAuthorizations } from "../../../extensions/agent-plugins/cli-authorization.js";
|
|
7
7
|
import { PluginSetupService, setupActionSchema } from "../../../extensions/agent-plugins/setup.js";
|
|
8
|
-
import {
|
|
8
|
+
import { evictAllEmbeddedSessionRunners } from "../../../agent/embedded/session-runner.js";
|
|
9
9
|
import { withAgentPluginSource } from "../../../extensions/agent-plugins/sources.js";
|
|
10
10
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
11
11
|
import { removePluginCredentials } from "../../../extensions/agent-plugins/credentials.js";
|
|
@@ -5,6 +5,7 @@ import { getAllModels, getAvailableModels, init_providers } from "../../../provi
|
|
|
5
5
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
6
6
|
import { listAutomations } from "../../../automations/storage/automation-repository.js";
|
|
7
7
|
import "../../../automations/storage/index.js";
|
|
8
|
+
import { listAgentPluginInventory } from "../../../extensions/agent-plugins/inventory.js";
|
|
8
9
|
import { automationConfigurationDigest } from "../../../local-apps/capabilities/automation-policy.js";
|
|
9
10
|
import { assertProposalCurrent, automationProposalReview, readAutomationProposal, resolveAutomationProposal } from "../../../local-apps/automation-proposals.js";
|
|
10
11
|
import { assertResourceRequest, localAppConnectorOptions, readAppResourceRequest, resolveAppResourceRequest } from "../../../local-apps/p1-services.js";
|
|
@@ -15,7 +16,6 @@ import { mergeActivationContext } from "../../../extensions/activation-context.j
|
|
|
15
16
|
import { validateExtensionConfig } from "../../../extensions/config-validation.js";
|
|
16
17
|
import { fetchRegistry, listExtensions, searchExtensions } from "../../../extensions/marketplace.js";
|
|
17
18
|
import { getGatewayFileSpaceService } from "../../file-space-service.js";
|
|
18
|
-
import { listAgentPluginInventory } from "../../../extensions/agent-plugins/inventory.js";
|
|
19
19
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
20
20
|
import { createOAuthAsyncHandler } from "../oauth-async.js";
|
|
21
21
|
import { createOAuthHandler } from "../oauth.js";
|
|
@@ -54,6 +54,7 @@ function requiredGatewayScope(method, path) {
|
|
|
54
54
|
if (path.startsWith("/api/automations") || path.startsWith("/api/automation-runs")) return methodScope(method, "automations.read", "automations.write");
|
|
55
55
|
if (path === "/api/voice/selection" || path === "/api/voice/catalog/refresh" || path === "/api/voice/boson" || path === "/api/voice/boson/reveal-api-key") return "voice.configure";
|
|
56
56
|
if (path.startsWith("/api/voice") || path.startsWith("/api/media") || path.startsWith("/api/clarifications")) return "sessions.write";
|
|
57
|
+
if (method === "GET" && path === "/api/chat/skills") return "agents.read";
|
|
57
58
|
if (path.startsWith("/api/commands") || path.startsWith("/api/skills")) return methodScope(method, "agents.read", "gateway.admin");
|
|
58
59
|
if (path === "/api/user-model/refresh" || path.startsWith("/api/user-model/refresh/")) return "gateway.admin";
|
|
59
60
|
if (path === "/api/user-model" || path.startsWith("/api/user-model/")) return methodScope(method, "workspace.read", "workspace.write");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const ResponseLanguageSchema: z.ZodEnum<{
|
|
3
3
|
en: "en";
|
|
4
|
-
auto: "auto";
|
|
5
4
|
"zh-CN": "zh-CN";
|
|
5
|
+
auto: "auto";
|
|
6
6
|
}>;
|
|
7
7
|
export type ResponseLanguage = z.infer<typeof ResponseLanguageSchema>;
|
|
8
8
|
export declare function resolveResponseLanguage(userPreference: ResponseLanguage, sessionPreference?: ResponseLanguage): ResponseLanguage;
|
|
@@ -77,6 +77,7 @@ function acceptSessionCommand(input) {
|
|
|
77
77
|
sourceChatId: conversationId,
|
|
78
78
|
sessionType: "chat",
|
|
79
79
|
hiddenFromSessionList: !input.preparedInput,
|
|
80
|
+
...creation.agentSetup ? { customData: { agentSetup: true } } : {},
|
|
80
81
|
routing: {
|
|
81
82
|
agentId: creation.agentId,
|
|
82
83
|
source: input.sourceChannel ?? "webchat",
|
|
@@ -85,12 +86,16 @@ function acceptSessionCommand(input) {
|
|
|
85
86
|
peerId: conversationId
|
|
86
87
|
}
|
|
87
88
|
}, "", conversationId);
|
|
88
|
-
|
|
89
|
+
const config = input.config ?? {
|
|
89
90
|
modelOverride: creation.model,
|
|
90
91
|
fixedModel: true,
|
|
91
92
|
thinkingLevel: creation.thinkingLevel,
|
|
92
93
|
userContextMode: creation.temporary ? "temporary" : "enabled",
|
|
93
94
|
...creation.workingDirectory ? { workingDirectoryOverride: creation.workingDirectory } : {}
|
|
95
|
+
};
|
|
96
|
+
setSessionConfig(conversationId, {
|
|
97
|
+
...config,
|
|
98
|
+
...creation.agentSetup && creation.agentSetupLanguage && !config.responseLanguage ? { responseLanguage: creation.agentSetupLanguage } : {}
|
|
94
99
|
}, "");
|
|
95
100
|
if (creation.projectId) {
|
|
96
101
|
if (!input.attachProject) throw new Error("Project attachment is required");
|
|
@@ -6,17 +6,17 @@ import { isEmbeddedRunActive } from "../agent/embedded/runs.js";
|
|
|
6
6
|
import { commandRegistry } from "../agent/commands/command-registry.js";
|
|
7
7
|
import { listChildRuns } from "../agent/orchestration/child-run-monitor.js";
|
|
8
8
|
import { getSessionInteractionPolicy } from "../agent/session/interaction-policy.js";
|
|
9
|
+
import { agentPluginInventoryRow } from "../extensions/agent-plugins/inventory.js";
|
|
9
10
|
import { resolveMcpSetupConfig } from "../agent/mcp/effective-server.js";
|
|
10
11
|
import { createNativeMcpCredentials } from "../agent/mcp/credential-store.js";
|
|
11
12
|
import { prepareNativeMcpConfig } from "../agent/mcp/native-mcp.js";
|
|
12
13
|
import { discoverMcpTools } from "../agent/mcp/tool-catalog.js";
|
|
13
14
|
import { cancelMcpAuthorization, getMcpAuthorization, probeMcpConnection, startMcpAuthorization, submitMcpRedirect } from "../agent/mcp/connection-setup.js";
|
|
15
|
+
import { PluginSetupService, setupActionSchema } from "../extensions/agent-plugins/setup.js";
|
|
14
16
|
import { evictAllEmbeddedSessionRunners } from "../agent/embedded/session-runner.js";
|
|
15
17
|
import { LocalWorktreeManager } from "../execution-environments/local-worktree-manager.js";
|
|
16
18
|
import { SessionEnvironmentService } from "../execution-environments/session-environment-service.js";
|
|
17
|
-
import { PluginSetupService, setupActionSchema } from "../extensions/agent-plugins/setup.js";
|
|
18
19
|
import { fetchRegistry } from "../extensions/marketplace.js";
|
|
19
|
-
import { agentPluginInventoryRow } from "../extensions/agent-plugins/inventory.js";
|
|
20
20
|
import { withAgentPluginSource } from "../extensions/agent-plugins/sources.js";
|
|
21
21
|
import { removePluginCredentials } from "../extensions/agent-plugins/credentials.js";
|
|
22
22
|
import { z } from "zod";
|
|
@@ -208,8 +208,8 @@ export declare const UserContextConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
208
208
|
preferences: z.ZodDefault<z.ZodObject<{
|
|
209
209
|
responseLanguage: z.ZodDefault<z.ZodEnum<{
|
|
210
210
|
en: "en";
|
|
211
|
-
auto: "auto";
|
|
212
211
|
"zh-CN": "zh-CN";
|
|
212
|
+
auto: "auto";
|
|
213
213
|
}>>;
|
|
214
214
|
}, z.core.$strict>>;
|
|
215
215
|
userModel: z.ZodDefault<z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xopcai/xopc",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.464",
|
|
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",
|
|
@@ -171,8 +171,8 @@
|
|
|
171
171
|
"vue": "^3.5.44",
|
|
172
172
|
"xlsx": "file:web/vendor/xlsx-0.20.3.tgz",
|
|
173
173
|
"@xopcai/browser-control-contract": "0.1.0",
|
|
174
|
-
"@xopcai/computer-control-contract": "0.1.0",
|
|
175
174
|
"@xopcai/endpoint-tools-client": "0.0.0",
|
|
175
|
+
"@xopcai/computer-control-contract": "0.1.0",
|
|
176
176
|
"@xopcai/endpoint-tools-protocol": "0.0.0",
|
|
177
177
|
"@xopcai/gateway-contract": "0.0.0",
|
|
178
178
|
"@xopcai/image-providers": "0.1.0",
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { MemoryProvider } from '../../../src/agent/memory/provider.js';
|
|
2
|
-
import type { MemoryProviderManifest } from '../../../src/agent/memory/types.js';
|
|
3
|
-
export declare const manifest: MemoryProviderManifest;
|
|
4
|
-
export declare const description = "In-memory provider used to verify extension-backed memory providers.";
|
|
5
|
-
export declare function isAvailable(): boolean;
|
|
6
|
-
export declare function createMemoryProvider(): MemoryProvider;
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
//#region extensions/demo-memory/src/index.ts
|
|
2
|
-
const manifest = {
|
|
3
|
-
type: "memory-provider",
|
|
4
|
-
id: "demo-memory",
|
|
5
|
-
displayName: "Demo Memory Provider",
|
|
6
|
-
entry: "./src/index.js",
|
|
7
|
-
capabilities: {
|
|
8
|
-
search: true,
|
|
9
|
-
read: true,
|
|
10
|
-
write: true,
|
|
11
|
-
update: false,
|
|
12
|
-
delete: false,
|
|
13
|
-
keywordSearch: true,
|
|
14
|
-
citations: true,
|
|
15
|
-
sync: true
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
const description = "In-memory provider used to verify extension-backed memory providers.";
|
|
19
|
-
function isAvailable() {
|
|
20
|
-
return process.env.XOPC_DEMO_MEMORY_DISABLED !== "1";
|
|
21
|
-
}
|
|
22
|
-
function createMemoryProvider() {
|
|
23
|
-
return new DemoMemoryProvider();
|
|
24
|
-
}
|
|
25
|
-
var DemoMemoryProvider = class {
|
|
26
|
-
id = manifest.id;
|
|
27
|
-
displayName = manifest.displayName;
|
|
28
|
-
manifest = manifest;
|
|
29
|
-
capabilities = {
|
|
30
|
-
search: true,
|
|
31
|
-
read: true,
|
|
32
|
-
write: true,
|
|
33
|
-
update: false,
|
|
34
|
-
delete: false,
|
|
35
|
-
keywordSearch: true,
|
|
36
|
-
semanticSearch: false,
|
|
37
|
-
hybridSearch: false,
|
|
38
|
-
citations: true,
|
|
39
|
-
sync: true
|
|
40
|
-
};
|
|
41
|
-
records = /* @__PURE__ */ new Map();
|
|
42
|
-
sequence = 0;
|
|
43
|
-
scope = { userId: "local-owner" };
|
|
44
|
-
sourceAgentId = "main";
|
|
45
|
-
isAvailable() {
|
|
46
|
-
return isAvailable();
|
|
47
|
-
}
|
|
48
|
-
initialize(_sessionId, options) {
|
|
49
|
-
this.sourceAgentId = typeof options?.config?.agentId === "string" ? options.config.agentId : "main";
|
|
50
|
-
const workspaceId = typeof options?.workspace === "string" ? options.workspace : void 0;
|
|
51
|
-
this.scope = workspaceId ? {
|
|
52
|
-
userId: "local-owner",
|
|
53
|
-
workspaceId
|
|
54
|
-
} : { userId: "local-owner" };
|
|
55
|
-
}
|
|
56
|
-
async write(request) {
|
|
57
|
-
const record = this.createRecord(request);
|
|
58
|
-
return {
|
|
59
|
-
success: true,
|
|
60
|
-
record,
|
|
61
|
-
message: `Demo memory stored ${record.id}`
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
async search(request) {
|
|
65
|
-
const query = request.query.trim().toLocaleLowerCase();
|
|
66
|
-
const kinds = request.kinds ? new Set(request.kinds) : null;
|
|
67
|
-
const maxResults = request.maxResults ?? 5;
|
|
68
|
-
return [...this.records.values()].filter((record) => !kinds || kinds.has(record.kind)).filter((record) => !query || record.content.toLocaleLowerCase().includes(query)).map((record) => ({
|
|
69
|
-
record,
|
|
70
|
-
score: scoreRecord(record, query),
|
|
71
|
-
snippet: record.content,
|
|
72
|
-
citation: {
|
|
73
|
-
providerId: this.id,
|
|
74
|
-
recordId: record.id,
|
|
75
|
-
title: this.displayName,
|
|
76
|
-
createdAt: record.createdAt
|
|
77
|
-
}
|
|
78
|
-
})).sort((a, b) => b.score - a.score).slice(0, maxResults);
|
|
79
|
-
}
|
|
80
|
-
async read(request) {
|
|
81
|
-
if (!request.id) return null;
|
|
82
|
-
const record = this.records.get(request.id);
|
|
83
|
-
return record ? { record } : null;
|
|
84
|
-
}
|
|
85
|
-
async get(id) {
|
|
86
|
-
return this.records.get(id) ?? null;
|
|
87
|
-
}
|
|
88
|
-
async list(request) {
|
|
89
|
-
return [...this.records.values()].filter((record) => !request.kind || record.kind === request.kind);
|
|
90
|
-
}
|
|
91
|
-
sync(event) {
|
|
92
|
-
if (event.type !== "signal" || !event.signal.content) return;
|
|
93
|
-
this.createRecord({
|
|
94
|
-
kind: "derived_insight",
|
|
95
|
-
content: event.signal.content,
|
|
96
|
-
source: { provider: event.signal.source },
|
|
97
|
-
tags: ["signal", event.signal.source]
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
shutdown() {
|
|
101
|
-
this.records.clear();
|
|
102
|
-
}
|
|
103
|
-
createRecord(request) {
|
|
104
|
-
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
105
|
-
const id = `demo-memory-${++this.sequence}`;
|
|
106
|
-
const record = {
|
|
107
|
-
id,
|
|
108
|
-
providerId: this.id,
|
|
109
|
-
kind: request.kind,
|
|
110
|
-
scope: {
|
|
111
|
-
...this.scope,
|
|
112
|
-
...request.scope
|
|
113
|
-
},
|
|
114
|
-
provenance: {
|
|
115
|
-
sourceAgentId: this.sourceAgentId,
|
|
116
|
-
originClass: request.provenance?.originClass ?? "untrusted",
|
|
117
|
-
sessionKind: request.provenance?.sessionKind ?? "unknown",
|
|
118
|
-
observedAt: request.provenance?.observedAt ?? now,
|
|
119
|
-
...request.provenance?.sourceSessionId ? { sourceSessionId: request.provenance.sourceSessionId } : {},
|
|
120
|
-
...request.provenance?.sourceTurnId ? { sourceTurnId: request.provenance.sourceTurnId } : {},
|
|
121
|
-
...request.provenance?.supersedesKey ? { supersedesKey: request.provenance.supersedesKey } : {},
|
|
122
|
-
derivedFromRecalledContext: request.provenance?.derivedFromRecalledContext ?? false
|
|
123
|
-
},
|
|
124
|
-
content: request.content,
|
|
125
|
-
source: request.source ?? { provider: this.id },
|
|
126
|
-
explicitness: request.explicitness ?? "inferred",
|
|
127
|
-
durability: request.durability ?? "durable",
|
|
128
|
-
importance: request.importance ?? .5,
|
|
129
|
-
disclosurePolicy: request.disclosurePolicy ?? "referenceable",
|
|
130
|
-
createdAt: now,
|
|
131
|
-
updatedAt: now,
|
|
132
|
-
...request.tags ? { tags: request.tags } : {}
|
|
133
|
-
};
|
|
134
|
-
this.records.set(id, record);
|
|
135
|
-
return record;
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
function scoreRecord(record, query) {
|
|
139
|
-
if (!query) return .5;
|
|
140
|
-
const text = record.content.toLocaleLowerCase();
|
|
141
|
-
if (text === query) return 1;
|
|
142
|
-
if (text.includes(query)) return .8;
|
|
143
|
-
return .1;
|
|
144
|
-
}
|
|
145
|
-
//#endregion
|
|
146
|
-
export { createMemoryProvider, description, isAvailable, manifest };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "demo-memory",
|
|
3
|
-
"name": "Demo Memory Provider",
|
|
4
|
-
"description": "In-memory memory provider used to validate the extension memory provider pipeline.",
|
|
5
|
-
"version": "1.0.0",
|
|
6
|
-
"kind": "memory",
|
|
7
|
-
"main": "src/index.js",
|
|
8
|
-
"enabledByDefault": true,
|
|
9
|
-
"contracts": {
|
|
10
|
-
"memoryProviders": ["demo-memory"]
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"xopc": ">=0.0.116 <1.0.0"
|
|
14
|
-
}
|
|
15
|
-
}
|