@xopcai/xopc 0.0.381 → 0.0.383
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/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/browser-ext/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/browser-ext/dist/assets/{sidepanel-Ccl0eSa1.css → sidepanel-CQeQB5vW.css} +3 -0
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +16690 -3
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/adapters/cli-login.js +3 -3
- package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +2 -2
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +2 -2
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +2 -2
- package/dist/extensions/weixin/src/auth/accounts.js +12 -12
- package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
- package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
- package/dist/gateway/static/root/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/gateway/static/root/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/gateway/static/root/assets/{activity-store-D2oKh5ik.js → activity-store-qv0XyrXk.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BnMiU8HX.js → agent-avatar-dicebear-66HwhyEK.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-Ddv61pUQ.js → agent-defaults-settings-panel-Bewx00VC.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-C7z3r3Z3.js → agent-plugin-dialog-CebTVaRM.js} +1 -1
- package/dist/gateway/static/root/assets/agents-ByJbzt3F.js +77 -0
- package/dist/gateway/static/root/assets/{agents-admin-api-D-DNV0ms.js → agents-admin-api-BGy9IvSr.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-D2boumUX.js → app-management-settings-panel-BKaU6sGT.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-Cwf53Rqo.js → appearance-settings-E5WFcCdZ.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-CwWCU5Ib.js → apps-page-CExfOhRj.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-DivP9LfK.js → archive-plugin-BvhxzyLJ.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DztgYZdC.js → automations-page-CWcNFzvK.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-SVRa19EF.js → automations-workspace-DOJnSOJ7.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-f-JnMRA1.js → binary-plugins-CD0gYKR2.js} +1 -1
- package/dist/gateway/static/root/assets/block-editor-CBVXeGAt.js +160 -0
- package/dist/gateway/static/root/assets/{block-editor-BdOTO0Yo.css → block-editor-Cvy3D_4T.css} +1 -1
- package/dist/gateway/static/root/assets/{browser-automation-inputs-DD-SUHmv.js → browser-automation-inputs-B-Qz_411.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-m-9ETOOE.js → browser-automations-page-DGcGOkIq.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-DN37CRLL.js → browser-settings-page-CHCWHtkG.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-Bf6NYuvT.js → capabilities-CaL5RDm3.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-D1MJHORS.js → capabilities-page-CVaH729t.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-DmwDOIlV.js → capabilities-settings-panel-CIvwbZps.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-BOJYAeEJ.js → capabilities-w2GUuF7V.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-header-actions-DG-feQV0.js → capability-header-actions-DKaZAOWW.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-Bl6g4Dg9.js → channels-D82wgP8A.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-CE3tIjLW.js → chat-terminal-dock-DuqWzcEq.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-UMzIyZN5.js → computer-settings-page-BiM0fCvO.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-P6yEnQ6H.js → connector-service-page-o8kuXjVt.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-DXhBTvqp.js → connectors-page-BpCGV1Gg.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-eg-Uf9Wx.js → date-picker-5tzjG3n1.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-BEn7eZXu.js → dependency-picker-DLcDUyep.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-DPAFil05.js → desktop-pet-D-w8487x.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-DK38Nevi.js → desktop-pet-settings-D-w7uF8Q.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-DaRk9VLg.js → device-pairing-wizard-CEfqb0dk.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-Dm7jp0Y9.js → directory-picker-path-field-B7d2s14w.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-DJ1wFpMs.js → extension-debug-page-sntm2YRN.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-tPkDLwrG.js → extension-page-CPbWA4Oy.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-Dnz8j6Q_.js → extension-provider-CnDGKMN6.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-Vp9FPajP.js → extension-settings-page-PAHKn-Az.js} +1 -1
- package/dist/gateway/static/root/assets/{fallback-models-DirZnl7x.js → fallback-models-BJaSQNiV.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-f-4qw3AG.js → gateway-config-swr-DIhXgHH-.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-BGhPOSfz.js → gateway-realtime-BkgWeVUQ.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-IK77lcix.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-settings-CRbb12ar.js → gateway-settings-CnqeYLJI.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-90pvxKox.js → gateway-startup-retry-DnXc9GNb.js} +1 -1
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-DdDvTjik.js → highlighted-body-KQOG7T2V-Cw_HUlEk.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-BeIZyioN.js → home-page-CKUJdUkK.js} +1 -1
- package/dist/gateway/static/root/assets/{image-generation-api-CtDjTXwX.js → image-generation-api-4dtNAW64.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-KIeykeaL.js → imports-page-DVvyrYUy.js} +1 -1
- package/dist/gateway/static/root/assets/index-B-wZyMBY.js +260 -0
- package/dist/gateway/static/root/assets/index-BvOYtdnP.css +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-5Df9Rng_.js → keyboard-shortcuts-settings-DywXmCvO.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-BSuq_SAr.js → local-app-workbench-page-dBlBepLG.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-D5-69OHu.js → local-apps-page-DdEXqsZw.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-CrD74S6k.js → local-session-drafts-D-_OuGWH.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-pmT2B_By.js → locale-store-BNDrBt2C.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-DHYqPwJ3.js → logs-page-DpSob5Id.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-uIgzZZ_J.js → management-settings-10Vl7gLU.js} +1 -1
- package/dist/gateway/static/root/assets/markdown-view-CZWff4bI.css +1 -0
- package/dist/gateway/static/root/assets/markdown-view-pEV4TIPK.js +324 -0
- package/dist/gateway/static/root/assets/{media-plugins-BtFqN13D.js → media-plugins-DU1Ike3m.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-Bd0DNN_v.js +1 -0
- package/dist/gateway/static/root/assets/messages-CRy8QVkB.js +3 -0
- package/dist/gateway/static/root/assets/models-hub-cache-Lp4PAH-A.js +1 -0
- package/dist/gateway/static/root/assets/{note-detail-panel-sujG9ZmW.js → note-detail-panel-DiJ5O3Ga.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-api-D-VLGhjV.js → notes-api-B_LGV8Lh.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-C_4Ib15d.js → notes-page-BEhxVwpX.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-DErqGBBe.js → page-context-capture-button-DzkU3HrQ.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-CC3W2EZ0.js → personal-page-Dpgj9Y5a.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-B3qxtYyi.js → product-open-page-Dbs3Xtis.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-NOhtxfkq.js → product-preview-content-x-EvUxt7.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-CAM4Q3Kh.js +1 -0
- package/dist/gateway/static/root/assets/{projects-page-qhnc7oNj.js → projects-page-CSahay3I.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-Bi4muyaZ.js → registry-api-DX5EhiBp.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-CS-zmmtV.js → remote-access-hub-B6y0lXZc.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-api-9bk1payF.js → runtime-tools-api-DYeTxrEb.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-B55OozGG.js → runtime-tools-settings-panel-DbuAW7ky.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-BJZqRz8a.js → scenes-page-DVzrw6Q9.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-BND8Hs4C.js → schema-form-Ch-wK0Os.js} +1 -1
- package/dist/gateway/static/root/assets/{send-session-input-BtF5UWGp.js → send-session-input-BKIg9cjN.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-D2J6VacQ.js → session-api-Cf3ACMv7.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-64DD1cxN.js → session-manager-Djtcwo3n.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-U5k3iucx.js → sessions-page-DY0UP_lC.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BLTR6Opb.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-DOMl-bv4.js → settings-page-D-Uz-C5u.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-Dgpd7bk0.js → setup-status-panel-DWAAlzV5.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-BnqkFFBZ.js → share-link-dialog-Cke8qSIS.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-aGjIkYmH.js → share-preview-page-CQjfWJVh.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-cGtd3rjc.js → shares-api-CQapohsa.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-DmFLUeqg.js → shares-settings-DPrpUIj7.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-C9AYuE_b.js → skill-api-v1XR_zqL.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-VT8F0enn.js → skill-reload-api-CPW9mIZH.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-CJIhQfG2.js → skills-page-Cu80KslP.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-Cg0qUX2j.js → system-settings-panel-CbIHO53w.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-C-VbndI4.js → task-detail-page-DvRLEt8e.js} +2 -2
- package/dist/gateway/static/root/assets/{task-expandable-content-UI-0Elqy.js → task-expandable-content-CQ9Y17UE.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-D7m5Eng5.js → theme-store-BNDzgUPq.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-CawYzT24.js → tracing-settings-page-DbbQg2I5.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-B8bvJesa.js → tunnel-api-CQXrU_XI.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-DdA0F-qo.js → usage-page-BdLt6u0c.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-jrZBPSWn.js → use-autosave-CFn9aZYy.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-hTgxke6e.js → use-composer-attachments-DXCEME1D.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-tMUDUWVH.js → use-file-preview-expanded-CEB7pfWq.js} +2 -2
- package/dist/gateway/static/root/assets/{user-model-page-Bs6hUk15.js → user-model-page-BgIW4ITJ.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-Bp8brswu.js → voice-api-key-field-C9s0iBGA.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-415pyWx8.js → voice-config-api-BIm_aTqX.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-CcIDsZWn.js → work-discovery-overlay-C3KsL1Ap.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-YP4TJpWE.js → workflow-run-setup-panel-CEx_jYPu.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-CYqVuquq.js → workflows-page-BYGPnFEF.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-C01xjDt2.js → workspace-api-uZFF1SlQ.js} +2 -2
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Cspd770Z.js → xopc-cloud-account-card-DcPFuTIk.js} +1 -1
- package/dist/gateway/static/root/index.html +28 -28
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/index.js +4 -0
- package/dist/packages/gateway-contract/src/next-turn-suggestions.js +40 -0
- package/dist/packages/gateway-contract/src/specialists.js +48 -0
- package/dist/src/agent/agent-manager.js +20 -19
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/prompts.js +1 -1
- package/dist/src/agent/background-review/run-background-review.js +11 -11
- package/dist/src/agent/child-agent-factory.d.ts +9 -0
- package/dist/src/agent/child-agent-factory.js +83 -46
- package/dist/src/agent/coding/repository-instructions.js +1 -1
- package/dist/src/agent/context/coordinator.js +2 -2
- package/dist/src/agent/context/execution-context.js +4 -4
- package/dist/src/agent/context/execution-scope.js +2 -2
- package/dist/src/agent/context/project-context.js +3 -3
- package/dist/src/agent/data-acquisition/service.js +1 -1
- package/dist/src/agent/embedded/codemode-extension.js +1 -1
- package/dist/src/agent/embedded/index.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +6 -6
- package/dist/src/agent/embedded/run-turn.js +23 -12
- package/dist/src/agent/embedded/session-runner.js +3 -3
- package/dist/src/agent/embedded/session-tool-result-guard.js +3 -3
- package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +3 -3
- package/dist/src/agent/external-tools/endpoint-provider.js +6 -6
- package/dist/src/agent/external-tools/gateway-tools.js +2 -2
- package/dist/src/agent/external-tools/index.js +1 -1
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/image/load-image-media.js +1 -1
- package/dist/src/agent/image/tool-model-config.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +2 -2
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/index.js +3 -3
- package/dist/src/agent/mcp/config.js +1 -1
- package/dist/src/agent/memory/context-budget.js +1 -1
- package/dist/src/agent/memory/context-recovery.js +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/orchestration/agent-turn-policy.d.ts +4 -0
- package/dist/src/agent/orchestration/delegation-budget.d.ts +60 -0
- package/dist/src/agent/orchestration/delegation-budget.js +154 -0
- package/dist/src/agent/prompt/response-language.js +2 -2
- package/dist/src/agent/prompt/sections/tooling.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +3 -3
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +5 -5
- package/dist/src/agent/service/process-direct-streaming.js +6 -6
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +20 -20
- package/dist/src/agent/session/session-config-service.js +2 -2
- package/dist/src/agent/session/session-hydrator.js +1 -1
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/index.js +1 -1
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/source-context/index.js +2 -2
- package/dist/src/agent/starter-agents.d.ts +1 -0
- package/dist/src/agent/starter-agents.js +102 -5
- package/dist/src/agent/tasks/task-judge-service.js +5 -5
- package/dist/src/agent/tools/create-share-tool.js +3 -3
- package/dist/src/agent/tools/dataBatch.js +1 -1
- package/dist/src/agent/tools/delegate-tool.js +20 -6
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.d.ts +1 -0
- package/dist/src/agent/tools/factory.js +38 -20
- package/dist/src/agent/tools/fetch-text.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +3 -3
- package/dist/src/agent/tools/index.js +6 -6
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/personal-attention-tool.js +1 -1
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-tool.js +4 -2
- package/dist/src/agent/tools/personal-task-tool.d.ts +21 -1
- package/dist/src/agent/tools/personal-task-tool.js +179 -64
- package/dist/src/agent/tools/publish-artifacts.js +2 -2
- package/dist/src/agent/tools/read.js +2 -2
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +2 -2
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +2 -2
- package/dist/src/agent/tools/xopc-use-tool.d.ts +2 -0
- package/dist/src/agent/tools/xopc-use-tool.js +8 -7
- package/dist/src/agent/transcript/index.js +2 -2
- package/dist/src/agent/transcript/transcript-hygiene.js +2 -2
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent/workspace-runtime/registry.js +1 -1
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/agent-config/resolver.js +2 -0
- package/dist/src/agent-config/schema.d.ts +28 -2
- package/dist/src/agent-config/schema.js +7 -2
- package/dist/src/agent-matching/delegation-service.d.ts +17 -0
- package/dist/src/agent-matching/delegation-service.js +87 -0
- package/dist/src/agent-matching/schema.d.ts +2 -0
- package/dist/src/agent-matching/schema.js +6 -0
- package/dist/src/agent-matching/selection-repository.d.ts +53 -0
- package/dist/src/agent-matching/selection-repository.js +83 -0
- package/dist/src/agent-matching/service.d.ts +85 -0
- package/dist/src/agent-matching/service.js +192 -0
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/capabilities/write.d.ts +2 -2
- package/dist/src/automations/domain/index.js +2 -2
- package/dist/src/automations/domain/validation.d.ts +4 -4
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/draft/automation-draft-validator.d.ts +1 -1
- package/dist/src/automations/index.js +4 -4
- package/dist/src/automations/service/action-executor.js +1 -1
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/backup/archive.js +1 -1
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/browser/native-messaging-host.js +2 -2
- package/dist/src/browser/providers/browser-ext-install.js +2 -2
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/outbound-sender.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +3 -3
- package/dist/src/chat-commands/builtins/review.js +1 -1
- package/dist/src/chat-commands/builtins/session.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +1 -1
- package/dist/src/chat-commands/builtins/tts.js +1 -1
- package/dist/src/chat-commands/builtins/understanding.js +1 -1
- package/dist/src/chat-commands/builtins/workflow.js +1 -1
- package/dist/src/chat-commands/context.js +4 -4
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +8 -8
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/channel-plugins.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +1 -1
- package/dist/src/cli/commands/doctor/checks/tool-runtimes.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +1 -1
- package/dist/src/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +3 -3
- package/dist/src/cli/commands/extension.js +4 -4
- package/dist/src/cli/commands/gateway/token.js +1 -1
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/mcp.js +1 -1
- package/dist/src/cli/commands/models.js +3 -3
- package/dist/src/cli/commands/onboard/channels/registry.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +2 -2
- package/dist/src/cli/commands/runtime.js +1 -1
- package/dist/src/cli/commands/skills.js +2 -2
- package/dist/src/cli/commands/tunnel.js +4 -4
- package/dist/src/cli/extension-cli-register.js +6 -6
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +2 -2
- package/dist/src/cli/utils/session.js +1 -1
- package/dist/src/computer/runtime.js +2 -2
- package/dist/src/config/agent-model-intents.js +1 -1
- package/dist/src/config/agent-profile.js +2 -2
- package/dist/src/config/index.js +5 -5
- package/dist/src/config/loader.js +2 -2
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.js +5 -5
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/cli/runtime.js +1 -1
- package/dist/src/connectors/composio-sessions.js +1 -1
- package/dist/src/connectors/composio.js +1 -1
- package/dist/src/connectors/connected-source-ingestion.js +4 -4
- package/dist/src/connectors/connected-source-understanding.js +4 -4
- package/dist/src/connectors/connection-recovery-service.js +6 -6
- package/dist/src/connectors/content-enrichment.js +1 -1
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/learning-coordinator.js +2 -2
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/recording.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/endpoint-tools/index.js +1 -1
- package/dist/src/endpoint-tools/runtime.js +2 -2
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/api.js +4 -4
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +3 -3
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
- package/dist/src/gateway/agents-admin.d.ts +4 -0
- package/dist/src/gateway/agents-admin.js +7 -4
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.js +4 -4
- package/dist/src/gateway/hono/routes/agents.js +19 -2
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/browser-install.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +4 -4
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +5 -5
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/context-sources.js +2 -2
- package/dist/src/gateway/hono/routes/endpoint-tools.js +1 -1
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +8 -0
- package/dist/src/gateway/hono/routes/mcp.js +1 -1
- package/dist/src/gateway/hono/routes/media.js +1 -1
- package/dist/src/gateway/hono/routes/memory-learning.js +3 -3
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/next-turn-suggestions.d.ts +3 -0
- package/dist/src/gateway/hono/routes/next-turn-suggestions.js +39 -0
- package/dist/src/gateway/hono/routes/notes.js +3 -3
- package/dist/src/gateway/hono/routes/personal-agent.js +1 -1
- package/dist/src/gateway/hono/routes/projects.js +6 -6
- package/dist/src/gateway/hono/routes/session-command-handler.js +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +5 -5
- package/dist/src/gateway/hono/routes/sessions.js +2 -2
- package/dist/src/gateway/hono/routes/shares.js +3 -3
- package/dist/src/gateway/hono/routes/side-chats.js +1 -1
- package/dist/src/gateway/hono/routes/site-shares.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/user-model.js +7 -7
- package/dist/src/gateway/hono/routes/voice.js +7 -7
- package/dist/src/gateway/hono/routes/workflows.js +2 -2
- package/dist/src/gateway/image-generation-setup.js +2 -2
- package/dist/src/gateway/index.js +1 -1
- package/dist/src/gateway/lock.js +11 -11
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/next-turn-suggestions/generator.d.ts +3 -0
- package/dist/src/gateway/next-turn-suggestions/generator.js +50 -0
- package/dist/src/gateway/next-turn-suggestions/service.d.ts +23 -0
- package/dist/src/gateway/next-turn-suggestions/service.js +125 -0
- package/dist/src/gateway/next-turn-suggestions/snapshot.d.ts +15 -0
- package/dist/src/gateway/next-turn-suggestions/snapshot.js +67 -0
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/run-loop.js +1 -1
- package/dist/src/gateway/scenes/mailContext.js +1 -1
- package/dist/src/gateway/scenes/slackThreadSource.js +1 -1
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.d.ts +2 -0
- package/dist/src/gateway/service/agent-runner.js +15 -3
- package/dist/src/gateway/service/config-coordinator.js +2 -2
- package/dist/src/gateway/service/marketplace-service.js +1 -1
- package/dist/src/gateway/service/run-gateway-agent.js +3 -3
- package/dist/src/gateway/service/session-command-service.js +1 -1
- package/dist/src/gateway/service/session-input-coordinator.js +1 -1
- package/dist/src/gateway/service.js +39 -39
- package/dist/src/gateway/session-context-summary.js +3 -3
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/generator.js +2 -2
- package/dist/src/imports/inventory.js +1 -1
- package/dist/src/infra/gateway-processes.js +2 -2
- package/dist/src/infra/package-runtime-check.d.ts +7 -0
- package/dist/src/infra/package-runtime-check.js +42 -0
- package/dist/src/infra/package-update-steps.js +3 -1
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.d.ts +2 -0
- package/dist/src/infra/update-global.js +12 -10
- package/dist/src/knowledge/connected-knowledge-pipeline.js +2 -2
- package/dist/src/knowledge/index.js +1 -1
- package/dist/src/knowledge-memory/repository.js +1 -1
- package/dist/src/local-apps/service.js +2 -2
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/memory-learning/source-learning.js +5 -5
- package/dist/src/memory-learning/task-receipts.js +1 -1
- package/dist/src/notes/agent-context.js +4 -4
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/store.js +1 -1
- package/dist/src/personal-agent/capability-service.d.ts +2 -0
- package/dist/src/personal-agent/capability-service.js +30 -17
- package/dist/src/personal-agent/proactivity/repository.js +1 -1
- package/dist/src/personal-agent/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +5 -5
- package/dist/src/personal-agent/prompt-context.js +6 -11
- package/dist/src/personal-agent/prompts.js +7 -4
- package/dist/src/personal-agent/reply-composer.js +4 -4
- package/dist/src/personal-agent/request-delivery.js +1 -1
- package/dist/src/personal-agent/request-service.d.ts +1 -0
- package/dist/src/personal-agent/request-service.js +87 -7
- package/dist/src/personal-agent/service.js +2 -2
- package/dist/src/personal-agent/specialist-capabilities.js +6 -0
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/realtime/runtime.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/routing/resolve-route.js +1 -1
- package/dist/src/routing/resolve-tui-session-key.js +1 -1
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +4 -4
- package/dist/src/scenes/taskFollowUp/resources.js +1 -1
- package/dist/src/scenes/taskFollowUp/service.js +5 -5
- package/dist/src/session/index.js +1 -1
- package/dist/src/session/store.js +5 -5
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/share-zip.js +1 -1
- package/dist/src/share/site-proxy.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/storage/sqlite/device-pairing-approval.js +1 -1
- package/dist/src/storage/sqlite/migrations/247_agent_selection_records.sql +32 -0
- package/dist/src/storage/sqlite/migrations/248_next_turn_suggestions.sql +20 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/next-turn-suggestion-repository.d.ts +4 -0
- package/dist/src/storage/sqlite/next-turn-suggestion-repository.js +30 -0
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.d.ts +2 -0
- package/dist/src/tasks/capabilities/write.js +5 -4
- package/dist/src/tasks/execution-context.js +1 -1
- package/dist/src/tasks/home-query-service.js +2 -2
- package/dist/src/tasks/index.js +5 -5
- package/dist/src/tasks/task-application-service.js +3 -3
- package/dist/src/tasks/task-collaboration-delivery.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +2 -2
- package/dist/src/tasks/task-main-update-decision-service.js +2 -2
- package/dist/src/tasks/task-result-delivery-repository.js +1 -1
- package/dist/src/tasks/task-result-delivery-service.js +5 -5
- package/dist/src/tasks/task-run-coordinator.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +12 -12
- package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
- package/dist/src/tui/extension-host/load-extensions.js +2 -2
- package/dist/src/tui/tui-commands.js +6 -6
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +2 -2
- package/dist/src/tui/tui-startup-resources.js +5 -5
- package/dist/src/tui/tui.js +7 -7
- package/dist/src/tunnel/frpc-binary.js +1 -1
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/user-context/access-policy.js +1 -1
- package/dist/src/user-model/bootstrap.js +1 -1
- package/dist/src/user-model/capture/executor.js +1 -1
- package/dist/src/user-model/index.js +2 -2
- package/dist/src/voice/realtime/memory-context.js +6 -6
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/voice/realtime/runtime.js +4 -4
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
- package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +1 -1
- package/dist/src/voice/tts/index.js +3 -3
- package/dist/src/voice/tts/merge-config.js +1 -1
- package/dist/src/voice/tts/payload.js +1 -1
- package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
- package/dist/src/voice/tts/speak-core.js +1 -1
- package/dist/src/work-discovery/index.js +1 -1
- package/dist/src/work-discovery/service.js +7 -7
- package/dist/src/workflows/engine/workflow-engine.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +8 -8
- package/dist/src/workflows/service/workflow-session-bridge.js +2 -2
- package/package.json +13 -8
- package/dist/gateway/static/root/assets/agents-BstMN5nH.js +0 -66
- package/dist/gateway/static/root/assets/block-editor-CEnzVIbk.js +0 -159
- package/dist/gateway/static/root/assets/gateway-realtime-store-BYe-jWB1.js +0 -1
- package/dist/gateway/static/root/assets/index-DxydK_AA.js +0 -255
- package/dist/gateway/static/root/assets/index-_xgO2IDa.css +0 -1
- package/dist/gateway/static/root/assets/markdown-view-ByJbFign.css +0 -1
- package/dist/gateway/static/root/assets/markdown-view-CZlvyzow.js +0 -66
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-DOTWm1iy.js +0 -1
- package/dist/gateway/static/root/assets/messages-Ib6DaUTo.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-cache-3slk24cw.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-7BFqLZj4.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-D8dOvd8T.js +0 -1
|
@@ -8,23 +8,33 @@ import { getSessionMetadata } from "../../storage/sqlite/session-read-repository
|
|
|
8
8
|
import { patchSessionMetadata } from "../../storage/sqlite/session-repository.js";
|
|
9
9
|
import { getSessionTaskPlan, setSessionTaskPlan } from "../../storage/sqlite/session-task-plan-repository.js";
|
|
10
10
|
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
11
|
-
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
12
11
|
import { init_agent_scope, resolveDefaultAgentId } from "../agent-scope.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { markCodemodeCoreRead } from "./codemode-permissions.js";
|
|
16
|
-
import { LOCAL_READ_MAX_CHARS } from "./local-read-budget.js";
|
|
17
|
-
import { PERSONAL_TOOL_DESCRIPTIONS } from "../../personal-agent/policy.js";
|
|
18
|
-
import { PERSONAL_REQUEST_TOOL_IDS, filterExecutionTools, resolveExecutionToolPolicy } from "../embedded/execution-tool-policy.js";
|
|
12
|
+
import { createWorkflowCatalog } from "../workflow/catalog.js";
|
|
13
|
+
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
19
14
|
import "../../../packages/browser-control-contract/src/index.js";
|
|
15
|
+
import { createBrowserDriver } from "../../browser/drivers/create-driver.js";
|
|
16
|
+
import { checkBrowserReadiness } from "../../browser/readiness.js";
|
|
17
|
+
import "../../browser/index.js";
|
|
20
18
|
import { getEmbeddedExecutionRunId, getEmbeddedExecutionSession } from "../embedded/execution-context.js";
|
|
19
|
+
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
20
|
+
import { resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession } from "../../config/agent-profile.js";
|
|
21
|
+
import { ComputerRuntime } from "../../computer/runtime.js";
|
|
22
|
+
import { buildRuntimeEnvironment } from "../../runtime-tools/environment.js";
|
|
23
|
+
import { skillEnvironmentId } from "../skills/installer.js";
|
|
21
24
|
import { wrapToolsWithProtection } from "./executor.js";
|
|
22
25
|
import { EXTERNAL_TOOL_NAMES } from "../external-tools/gateway-tools.js";
|
|
23
26
|
import { createDefaultExternalToolGatewayTools } from "../external-tools/index.js";
|
|
24
|
-
import {
|
|
27
|
+
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
28
|
+
import { getPendingTranscriptUserText } from "../inbound/attachment-pipeline.js";
|
|
25
29
|
import { createDataBatchTool } from "./dataBatch.js";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
30
|
+
import { markCodemodeCoreRead } from "./codemode-permissions.js";
|
|
31
|
+
import { PERSONAL_TOOL_DESCRIPTIONS } from "../../personal-agent/policy.js";
|
|
32
|
+
import { PERSONAL_REQUEST_TOOL_IDS, filterExecutionTools, resolveExecutionToolPolicy } from "../embedded/execution-tool-policy.js";
|
|
33
|
+
import { createDelegateTool } from "./delegate-tool.js";
|
|
34
|
+
import { createDelegationParentPolicy } from "./delegation-parent-policy.js";
|
|
35
|
+
import { createPersonalAttentionTool } from "./personal-attention-tool.js";
|
|
36
|
+
import { LOCAL_READ_MAX_CHARS } from "./local-read-budget.js";
|
|
37
|
+
import { createReadFileTool } from "./read.js";
|
|
28
38
|
import { createWriteFileTool } from "./write.js";
|
|
29
39
|
import { createListDirTool } from "./list-dir.js";
|
|
30
40
|
import { createPublishArtifactsTool } from "./publish-artifacts.js";
|
|
@@ -47,14 +57,7 @@ import { createUpdatePlanTool } from "./update-plan-tool.js";
|
|
|
47
57
|
import { createSessionStatusTool } from "./session-status-tool.js";
|
|
48
58
|
import { createMemoryMaintenanceTool } from "./memory-maintenance-tool.js";
|
|
49
59
|
import { createClarifyTool } from "./clarify-tool.js";
|
|
50
|
-
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
51
|
-
import { createBrowserDriver } from "../../browser/drivers/create-driver.js";
|
|
52
|
-
import { checkBrowserReadiness } from "../../browser/readiness.js";
|
|
53
|
-
import "../../browser/index.js";
|
|
54
|
-
import { getPendingTranscriptUserText } from "../inbound/attachment-pipeline.js";
|
|
55
|
-
import { createDelegateTool } from "./delegate-tool.js";
|
|
56
60
|
import { createWorkflowTool } from "./workflow-tool.js";
|
|
57
|
-
import { createWorkflowCatalog } from "../workflow/catalog.js";
|
|
58
61
|
import { createWorkflowManageTool } from "./workflow-manage-tool.js";
|
|
59
62
|
import { createAutomationTool } from "./automation-tool.js";
|
|
60
63
|
import { createBrowserAutomationTool } from "./browser-automation-tool.js";
|
|
@@ -75,12 +78,9 @@ import { createPersonalRequestTools } from "./personal-request-tool.js";
|
|
|
75
78
|
import { createPersonalRequestConnectionTool, createPersonalRequestResultTool } from "./personal-request-result-tool.js";
|
|
76
79
|
import { createPersonalPreferenceTool } from "./personal-preference-tool.js";
|
|
77
80
|
import { createBrowserUseTool } from "./browser/tool/browser-use-tool.js";
|
|
78
|
-
import { ComputerRuntime } from "../../computer/runtime.js";
|
|
79
81
|
import { createComputerUseTool } from "./computer-use-tool.js";
|
|
80
82
|
import { createReviewWorkspaceTool } from "./review-workspace.js";
|
|
81
83
|
import { createLanguageDiagnosticsTool } from "./language-diagnostics.js";
|
|
82
|
-
import { createDelegationParentPolicy } from "./delegation-parent-policy.js";
|
|
83
|
-
import { mergeTtsConfigFromAppConfig } from "../../voice/tts/merge-config.js";
|
|
84
84
|
import { createTextToSpeechTool } from "./tts-tool.js";
|
|
85
85
|
import { getAgentCapabilityToolNames } from "../capabilities/registry.js";
|
|
86
86
|
import "../capabilities/index.js";
|
|
@@ -296,6 +296,24 @@ var AgentToolsFactory = class AgentToolsFactory {
|
|
|
296
296
|
const grep = createGrepTool(workspace);
|
|
297
297
|
const find = createFindTool(workspace);
|
|
298
298
|
const productToolDeps = {
|
|
299
|
+
getAgentToolAvailability: this.deps.getAgentToolAvailability ?? ((candidateId, name) => {
|
|
300
|
+
const candidate = resolveEffectiveAgentConfigForAgent(candidateId).config;
|
|
301
|
+
const denied = new Set(Object.entries(candidate.tools).filter(([, policy]) => policy.mode === "deny").map(([tool]) => tool));
|
|
302
|
+
const registered = this.createAllTools({
|
|
303
|
+
agentId: candidateId,
|
|
304
|
+
workspace: candidate.workspace,
|
|
305
|
+
conversationId: "",
|
|
306
|
+
disabledTools: denied,
|
|
307
|
+
toolAllowlist: candidate.toolAllowlist
|
|
308
|
+
}).some((tool) => tool.name === name);
|
|
309
|
+
const activatable = this.getLazyCapabilityToolNames().includes(name);
|
|
310
|
+
return {
|
|
311
|
+
condition: `tool:${name}`,
|
|
312
|
+
state: registered || activatable ? "verified" : "blocked",
|
|
313
|
+
reasonCode: registered ? "tool_registered" : activatable ? "tool_activatable" : "tool_not_registered",
|
|
314
|
+
detail: candidate.tools[name]?.mode === "ask" ? "Runtime approval is still required" : "Registration checked; execution environment is checked by the tool"
|
|
315
|
+
};
|
|
316
|
+
}),
|
|
299
317
|
getAgentSkillAvailability: this.deps.getAgentSkillAvailability,
|
|
300
318
|
getWorkspace: () => this.deps.workspace,
|
|
301
319
|
getConfig: () => this.deps.getConfig?.(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { checkUrlSafety, checkWebsiteBlocklist } from "./url-safety.js";
|
|
2
|
-
import { Agent, fetch } from "undici";
|
|
3
2
|
import { lookup } from "node:dns";
|
|
3
|
+
import { Agent, fetch } from "undici";
|
|
4
4
|
//#region src/agent/tools/fetch-text.ts
|
|
5
5
|
/** Validate each redirect and the address actually used for the connection. */
|
|
6
6
|
async function fetchPublicText(input, blocklist, signal) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { getAgentDefaultImageGenerationModelConfig, init_schema } from "../../config/schema.js";
|
|
2
|
-
import { readWorkspaceFile, writeWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
3
2
|
import { imageAssetFromDataUrl, imageFileExtensionForMimeType, mimeTypeFromFileName, parseImageDataUrl, sniffImageMimeType } from "../image/generation/image-assets.js";
|
|
4
|
-
import {
|
|
3
|
+
import { getImageGenerationProvider } from "../image/generation/provider-registry.js";
|
|
5
4
|
import { buildCapabilityPlansForConfig } from "../../capabilities/readiness/from-config.js";
|
|
6
5
|
import "../../capabilities/readiness/index.js";
|
|
7
6
|
import { applyImageGenerationModelConfigDefaults } from "../image/image-helpers.js";
|
|
7
|
+
import { readWorkspaceFile, writeWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
8
|
+
import { persistToolMedia } from "./tool-media.js";
|
|
8
9
|
import { isFailoverError } from "../failover-error.js";
|
|
9
|
-
import { getImageGenerationProvider } from "../image/generation/provider-registry.js";
|
|
10
10
|
import { generateImage, listImageGenerationProvidersSummary } from "../image/generation/runtime.js";
|
|
11
11
|
import path from "node:path";
|
|
12
12
|
import { randomBytes } from "node:crypto";
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { assertBrowserUrlAllowed } from "../../browser/url-policy.js";
|
|
2
|
+
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
3
|
+
import "../../browser/index.js";
|
|
1
4
|
import { DEFAULT_TOOL_METADATA, getToolMetadata } from "./metadata.js";
|
|
2
5
|
import { ToolConcurrencyController, resolveToolLockMode } from "./concurrency.js";
|
|
6
|
+
import { resolveImageModelConfigForTool } from "../image/tool-model-config.js";
|
|
7
|
+
import { createDataBatchTool } from "./dataBatch.js";
|
|
8
|
+
import { DEFAULT_DELEGATE_TOOLS, DELEGATE_BLOCKED_TOOLS, createDelegateTool } from "./delegate-tool.js";
|
|
3
9
|
import { DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, GREP_MAX_LINE_LENGTH, formatSize, truncateHead, truncateLine, truncateTail } from "./truncate.js";
|
|
4
10
|
import { createReadFileTool } from "./read.js";
|
|
5
|
-
import { createDataBatchTool } from "./dataBatch.js";
|
|
6
11
|
import { createWriteFileTool, writeFileTool } from "./write.js";
|
|
7
12
|
import { createListDirTool, listDirTool } from "./list-dir.js";
|
|
8
13
|
import { createPublishArtifactsTool } from "./publish-artifacts.js";
|
|
@@ -26,11 +31,6 @@ import { createUpdatePlanTool } from "./update-plan-tool.js";
|
|
|
26
31
|
import { createSessionStatusTool } from "./session-status-tool.js";
|
|
27
32
|
import { createMemoryMaintenanceTool } from "./memory-maintenance-tool.js";
|
|
28
33
|
import { createClarifyTool } from "./clarify-tool.js";
|
|
29
|
-
import { assertBrowserUrlAllowed } from "../../browser/url-policy.js";
|
|
30
|
-
import { BrowserRuntime } from "../../browser/runtime/browser-runtime.js";
|
|
31
|
-
import "../../browser/index.js";
|
|
32
|
-
import { resolveImageModelConfigForTool } from "../image/tool-model-config.js";
|
|
33
|
-
import { DEFAULT_DELEGATE_TOOLS, DELEGATE_BLOCKED_TOOLS, createDelegateTool } from "./delegate-tool.js";
|
|
34
34
|
import { createWorkflowTool } from "./workflow-tool.js";
|
|
35
35
|
import { createWorkflowManageTool } from "./workflow-manage-tool.js";
|
|
36
36
|
import { createAutomationTool } from "./automation-tool.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { checkedFilePath } from "../sandbox/fileAccess.js";
|
|
2
1
|
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
2
|
+
import { checkedFilePath } from "../sandbox/fileAccess.js";
|
|
3
3
|
import { readdir } from "fs/promises";
|
|
4
4
|
import { Type } from "@sinclair/typebox";
|
|
5
5
|
//#region src/agent/tools/list-dir.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getSqliteDatabase, init_transaction } from "../../storage/sqlite/transaction.js";
|
|
2
2
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../../storage/sqlite/session-instance-repository.js";
|
|
3
|
-
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
4
3
|
import { getPersonalAgentByConversation } from "../../personal-agent/repository.js";
|
|
4
|
+
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
5
5
|
import { parseLocalCheckTime } from "../../personal-agent/proactivity/follow-up-request.js";
|
|
6
6
|
import { applyThreadFeedback, getAttention, getProactivitySettings, listAttention, listInterestCandidates, patchAttention, patchProactivitySettings, rollbackStrategy, saveAttention, strategyState, userText } from "../../personal-agent/proactivity/repository.js";
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LOCAL_READ_MAX_CHARS } from "./local-read-budget.js";
|
|
2
1
|
import { CapabilityDispatcher } from "../../capabilities/runtime/dispatcher.js";
|
|
2
|
+
import { LOCAL_READ_MAX_CHARS } from "./local-read-budget.js";
|
|
3
3
|
import { registerNoteReadCapabilities } from "../../notes/capabilities/read.js";
|
|
4
4
|
import { registerProjectReadCapabilities } from "../../projects/capabilities/read.js";
|
|
5
5
|
import { registerAutomationReadCapabilities } from "../../automations/capabilities/read.js";
|
|
@@ -31,6 +31,7 @@ const RequestSchema = Type.Object({
|
|
|
31
31
|
minLength: 1,
|
|
32
32
|
maxLength: 200
|
|
33
33
|
})),
|
|
34
|
+
selectionReason: Type.Optional(Type.String({ maxLength: 500 })),
|
|
34
35
|
timeRange: Type.Optional(Type.Object({
|
|
35
36
|
from: Type.String(),
|
|
36
37
|
to: Type.String(),
|
|
@@ -55,7 +56,7 @@ function createPersonalRequestTools(deps) {
|
|
|
55
56
|
name: "personal_capability",
|
|
56
57
|
label: "Connected app availability",
|
|
57
58
|
parameters: CapabilitySchema,
|
|
58
|
-
description: "Check connected-app capabilities, account connection state and specialist Agents locally. For Gmail or other supported apps, check here before delegating. ready is a local preflight; the worker still validates live tools. No remote search or authorization is performed.",
|
|
59
|
+
description: "Check connected-app capabilities, account connection state and specialist Agents locally. Compare executorProfiles for declared expertise; account executorAgentIds constrain eligibility. For Gmail or other supported apps, check here before delegating. ready is a local preflight; the worker still validates live tools. No remote search or authorization is performed.",
|
|
59
60
|
async execute(_id, input) {
|
|
60
61
|
return result(personalCapabilities(conversation(), input.query, input.accountId));
|
|
61
62
|
}
|
|
@@ -63,7 +64,7 @@ function createPersonalRequestTools(deps) {
|
|
|
63
64
|
name: "personal_request",
|
|
64
65
|
label: "Connected app request",
|
|
65
66
|
parameters: RequestSchema,
|
|
66
|
-
description: "Submit a read-only connected-app request using exact connectorId and agentId from personal_capability. Preserves the objective, displays connection or account selection in this main chat, and starts a specialist Task automatically once connected. Return quickly after submission. Never claim data was read until the Task result arrives. Resolve absolute query dates and include timeRange. If mail has no user-specified range, the host returns an explicit last-7-days default; mention that range in your confirmation. Use get/list for status, cancel only when the user requests it.",
|
|
67
|
+
description: "Submit a read-only connected-app request using exact connectorId and agentId from personal_capability. Include a short selectionReason explaining the fit. Preserves the objective, displays connection or account selection in this main chat, and starts a specialist Task automatically once connected. Return quickly after submission. Never claim data was read until the Task result arrives. Resolve absolute query dates and include timeRange. If mail has no user-specified range, the host returns an explicit last-7-days default; mention that range in your confirmation. Use get/list for status, cancel only when the user requests it.",
|
|
67
68
|
async execute(toolCallId, input) {
|
|
68
69
|
const conversationId = conversation();
|
|
69
70
|
if (input.command === "list") return result(listPersonalRequests(conversationId).map(personalRequestSnapshot));
|
|
@@ -75,6 +76,7 @@ function createPersonalRequestTools(deps) {
|
|
|
75
76
|
agentId: input.agentId,
|
|
76
77
|
accountId: input.accountId,
|
|
77
78
|
objective: input.objective.trim(),
|
|
79
|
+
selectionReason: input.selectionReason,
|
|
78
80
|
timeRange: input.timeRange,
|
|
79
81
|
idempotencyKey: input.idempotencyKey ?? toolCallId
|
|
80
82
|
});
|
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
import type { AgentTool } from '@earendil-works/pi-agent-core';
|
|
2
|
+
import { type MatchingContext } from '../../agent-matching/service.js';
|
|
2
3
|
export { getAvailablePersonalAgentTools, personalAgentModelAvailability } from '../../personal-agent/specialist-capabilities.js';
|
|
3
4
|
import { type XopcUseToolDeps } from './xopc-use-tool.js';
|
|
4
5
|
declare const PersonalTaskSchema: import("@sinclair/typebox").TObject<{
|
|
5
|
-
command: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"agents">, import("@sinclair/typebox").TLiteral<"create">, import("@sinclair/typebox").TLiteral<"list">, import("@sinclair/typebox").TLiteral<"get">, import("@sinclair/typebox").TLiteral<"instruct">, import("@sinclair/typebox").TLiteral<"answer">]>;
|
|
6
|
+
command: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"agents">, import("@sinclair/typebox").TLiteral<"match">, import("@sinclair/typebox").TLiteral<"selection">, import("@sinclair/typebox").TLiteral<"create">, import("@sinclair/typebox").TLiteral<"list">, import("@sinclair/typebox").TLiteral<"get">, import("@sinclair/typebox").TLiteral<"instruct">, import("@sinclair/typebox").TLiteral<"answer">]>;
|
|
7
|
+
requirements: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
8
|
+
version: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TLiteral<1>>;
|
|
9
|
+
summary: import("@sinclair/typebox").TString;
|
|
10
|
+
domain: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
11
|
+
taskType: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
|
+
inputKinds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
13
|
+
outputKinds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
14
|
+
requiredTools: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
15
|
+
requiredSkills: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
16
|
+
requestedAgentId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
17
|
+
}>>;
|
|
18
|
+
selectionReason: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
|
+
selectionSource: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"snapshot">, import("@sinclair/typebox").TLiteral<"match">, import("@sinclair/typebox").TLiteral<"explicit">]>>;
|
|
20
|
+
previousSelectionId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21
|
+
matchId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
22
|
+
requestId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
23
|
+
cursor: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
+
offset: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
6
25
|
title: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
7
26
|
objective: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
8
27
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -18,6 +37,7 @@ declare const PersonalTaskSchema: import("@sinclair/typebox").TObject<{
|
|
|
18
37
|
idempotencyKey: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
19
38
|
}>;
|
|
20
39
|
export interface PersonalTaskToolDeps extends XopcUseToolDeps {
|
|
40
|
+
getAgentToolAvailability?: MatchingContext['getAgentToolAvailability'];
|
|
21
41
|
getAgentSkillAvailability?: (agentId: string) => {
|
|
22
42
|
skills: Array<{
|
|
23
43
|
name: string;
|
|
@@ -1,26 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { normalizeSpecialistRequirements } from "../../../packages/gateway-contract/src/specialists.js";
|
|
2
|
+
import { getPersonalRequest, init_request_repository } from "../../personal-agent/request-repository.js";
|
|
3
|
+
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
4
|
+
import { init_sqlite } from "../../storage/sqlite/index.js";
|
|
5
|
+
import { AgentSelectionRepository, selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
6
6
|
import { getAvailablePersonalAgentTools, personalAgentModelAvailability } from "../../personal-agent/specialist-capabilities.js";
|
|
7
|
+
import { assessSpecialist, matchSpecialists } from "../../agent-matching/service.js";
|
|
8
|
+
import { assertSpecialistEligible, createSelectedTask } from "../../agent-matching/delegation-service.js";
|
|
9
|
+
import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
10
|
+
import { PERSONAL_WORKER_RESULT_GUIDANCE } from "../../personal-agent/communication.js";
|
|
7
11
|
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
8
12
|
import { createXopcUseTool } from "./xopc-use-tool.js";
|
|
9
|
-
import { PERSONAL_WORKER_RESULT_GUIDANCE } from "../../personal-agent/communication.js";
|
|
10
13
|
import { randomUUID } from "node:crypto";
|
|
11
14
|
import { Type } from "@sinclair/typebox";
|
|
12
15
|
//#region src/agent/tools/personal-task-tool.ts
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
init_sqlite();
|
|
17
|
+
init_request_repository();
|
|
15
18
|
const PersonalTaskSchema = Type.Object({
|
|
16
19
|
command: Type.Union([
|
|
17
20
|
Type.Literal("agents"),
|
|
21
|
+
Type.Literal("match"),
|
|
22
|
+
Type.Literal("selection"),
|
|
18
23
|
Type.Literal("create"),
|
|
19
24
|
Type.Literal("list"),
|
|
20
25
|
Type.Literal("get"),
|
|
21
26
|
Type.Literal("instruct"),
|
|
22
27
|
Type.Literal("answer")
|
|
23
28
|
]),
|
|
29
|
+
requirements: Type.Optional(Type.Object({
|
|
30
|
+
version: Type.Optional(Type.Literal(1)),
|
|
31
|
+
summary: Type.String({ maxLength: 300 }),
|
|
32
|
+
domain: Type.Optional(Type.String()),
|
|
33
|
+
taskType: Type.Optional(Type.String()),
|
|
34
|
+
inputKinds: Type.Optional(Type.Array(Type.String())),
|
|
35
|
+
outputKinds: Type.Optional(Type.Array(Type.String())),
|
|
36
|
+
requiredTools: Type.Optional(Type.Array(Type.String())),
|
|
37
|
+
requiredSkills: Type.Optional(Type.Array(Type.String())),
|
|
38
|
+
requestedAgentId: Type.Optional(Type.String())
|
|
39
|
+
})),
|
|
40
|
+
selectionReason: Type.Optional(Type.String({ maxLength: 500 })),
|
|
41
|
+
selectionSource: Type.Optional(Type.Union([
|
|
42
|
+
Type.Literal("snapshot"),
|
|
43
|
+
Type.Literal("match"),
|
|
44
|
+
Type.Literal("explicit")
|
|
45
|
+
])),
|
|
46
|
+
previousSelectionId: Type.Optional(Type.String()),
|
|
47
|
+
matchId: Type.Optional(Type.String()),
|
|
48
|
+
requestId: Type.Optional(Type.String()),
|
|
49
|
+
cursor: Type.Optional(Type.String()),
|
|
50
|
+
offset: Type.Optional(Type.Integer({ minimum: 0 })),
|
|
24
51
|
title: Type.Optional(Type.String({ description: "Short task title, ideally under 60 characters. Do not put the full instructions here." })),
|
|
25
52
|
objective: Type.Optional(Type.String({ description: "One-sentence outcome for a new delegated Task." })),
|
|
26
53
|
description: Type.Optional(Type.String({ description: "Full task brief in Markdown: background, specific requests, source material, and delivery expectations." })),
|
|
@@ -38,17 +65,6 @@ const PersonalTaskSchema = Type.Object({
|
|
|
38
65
|
requiredTools: Type.Optional(Type.Array(Type.String({ description: "Tool names needed for this Task. Use names returned by agents; omit when matching by role or expertise." }))),
|
|
39
66
|
idempotencyKey: Type.Optional(Type.String())
|
|
40
67
|
});
|
|
41
|
-
var PersonalSkillUnavailableError = class extends Error {};
|
|
42
|
-
function resolveRequiredSkills(deps, agentId, requested) {
|
|
43
|
-
if (requested.length === 0) return [];
|
|
44
|
-
if (!deps.getAgentSkillAvailability) throw new Error("Specialist Skill availability cannot be verified");
|
|
45
|
-
const skills = deps.getAgentSkillAvailability(agentId).skills;
|
|
46
|
-
return [...new Set(requested.map((name) => name.trim().toLowerCase()))].map((name) => {
|
|
47
|
-
const skill = skills.find((item) => item.name.toLowerCase() === name);
|
|
48
|
-
if (!skill?.availableForCurrentAgent) throw new PersonalSkillUnavailableError(`Agent ${agentId} cannot use required Skill ${name}: ${skill?.unavailableReason ?? "not-installed"}. Do not substitute the requested Skill without the user’s direction.`);
|
|
49
|
-
return skill.name;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
68
|
const MAX_PERSONAL_TASK_TITLE = 60;
|
|
53
69
|
function buildPersonalTaskBrief(input) {
|
|
54
70
|
const fullObjective = input.objective.trim();
|
|
@@ -66,10 +82,11 @@ function buildPersonalTaskBrief(input) {
|
|
|
66
82
|
/** A narrow Task surface for the fast personal conversation. */
|
|
67
83
|
function createPersonalTaskTool(deps) {
|
|
68
84
|
const productTool = createXopcUseTool(deps);
|
|
85
|
+
const matches = /* @__PURE__ */ new Map();
|
|
69
86
|
return {
|
|
70
87
|
name: "personal_task",
|
|
71
88
|
label: "Personal Task",
|
|
72
|
-
description: "Find specialist Agents by role, availableTools, and model.available; delegate work, inspect Tasks, send instructions, or answer worker questions. Choose an Agent whose model.available is true. Before saying you cannot do a request, inspect another Agent. If a candidate fails, retry alternatives within the user’s authorization only when the user has not required a particular Agent or Skill. For explicitly requested Skills, use requiredSkills in agents and create; creation validates availability and includes them in the worker brief. agents can filter by requiredTools or requiredSkills; if none match, inspect unfiltered Agents. Return to the user quickly after creation.",
|
|
89
|
+
description: "Use match with structured requirements to compare specialist profiles and eligibility evidence. Profiles declare expertise; they never grant access. When the snapshot suffices, create directly with requirements, selectionReason and selectionSource. selection reads a Task’s allocation history. Preserve idempotencyKey on uncertain retries; link alternatives with previousSelectionId. Find specialist Agents by role, availableTools, and model.available; delegate work, inspect Tasks, send instructions, or answer worker questions. Choose an Agent whose model.available is true. Before saying you cannot do a request, inspect another Agent. If a candidate fails, retry alternatives within the user’s authorization only when the user has not required a particular Agent or Skill. For explicitly requested Skills, use requiredSkills in agents and create; creation validates availability and includes them in the worker brief. agents can filter by requiredTools or requiredSkills; if none match, inspect unfiltered Agents. Return to the user quickly after creation.",
|
|
73
90
|
parameters: PersonalTaskSchema,
|
|
74
91
|
mutatesWorkspace: true,
|
|
75
92
|
mutationScope: "external",
|
|
@@ -79,40 +96,74 @@ function createPersonalTaskTool(deps) {
|
|
|
79
96
|
const conversationId = deps.getCurrentConversationId?.();
|
|
80
97
|
const ownAgentId = deps.getCurrentAgentId?.();
|
|
81
98
|
if (!conversationId || !ownAgentId || !isPersonalConversation(conversationId)) throw new Error("Personal conversation context is unavailable");
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
const requirements = normalizeSpecialistRequirements({
|
|
100
|
+
...input.requirements,
|
|
101
|
+
version: 1,
|
|
102
|
+
summary: input.requirements?.summary ?? (input.objective?.trim() || "Specialist discovery").slice(0, 300),
|
|
103
|
+
requiredTools: [...input.requirements?.requiredTools ?? [], ...input.requiredTools ?? []],
|
|
104
|
+
requiredSkills: [...input.requirements?.requiredSkills ?? [], ...input.requiredSkills ?? []]
|
|
105
|
+
});
|
|
106
|
+
const context = {
|
|
107
|
+
ownAgentId,
|
|
108
|
+
getConfig: deps.getConfig,
|
|
109
|
+
getAgentSkillAvailability: deps.getAgentSkillAvailability,
|
|
110
|
+
getAgentToolAvailability: deps.getAgentToolAvailability,
|
|
111
|
+
legacyToolPolicyOnly: !input.requirements
|
|
112
|
+
};
|
|
113
|
+
if (input.command === "match" || input.command === "agents") {
|
|
114
|
+
if (input.command === "agents" && requirements.requiredSkills?.length && !deps.getAgentSkillAvailability) throw new Error("Specialist Skill availability cannot be verified");
|
|
115
|
+
const result = matchSpecialists(requirements, context, {
|
|
116
|
+
cursor: input.cursor,
|
|
117
|
+
limit: input.command === "agents" ? 50 : 10
|
|
118
|
+
});
|
|
119
|
+
if (input.command === "agents") {
|
|
120
|
+
let cursor = result.nextCursor;
|
|
121
|
+
while (cursor) {
|
|
122
|
+
const page = matchSpecialists(requirements, context, {
|
|
123
|
+
cursor,
|
|
124
|
+
limit: 50
|
|
125
|
+
});
|
|
126
|
+
result.candidates.push(...page.candidates);
|
|
127
|
+
cursor = page.nextCursor;
|
|
98
128
|
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
129
|
+
}
|
|
130
|
+
const matchId = input.command === "match" ? randomUUID() : void 0;
|
|
131
|
+
if (matchId) {
|
|
132
|
+
if (matches.size >= 20) matches.delete(matches.keys().next().value);
|
|
133
|
+
matches.set(matchId, {
|
|
134
|
+
conversationId,
|
|
135
|
+
requirements,
|
|
136
|
+
result
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
const payload = input.command === "agents" ? result.candidates.filter((agent) => !agent.checks.some((check) => check.condition === "identity" && check.state === "blocked") && (requirements.requiredTools ?? []).every((tool) => agent.availableTools.includes(tool)) && (requirements.requiredSkills?.length ?? 0) === agent.verifiedSkills.length) : {
|
|
140
|
+
...result,
|
|
141
|
+
matchId
|
|
142
|
+
};
|
|
143
|
+
return {
|
|
144
|
+
content: [{
|
|
145
|
+
type: "text",
|
|
146
|
+
text: JSON.stringify(payload)
|
|
147
|
+
}],
|
|
148
|
+
details: {}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
if (input.command === "selection") {
|
|
152
|
+
if (!(input.taskId ? new TaskOriginRepository().owns(input.taskId, conversationId) : input.requestId ? getPersonalRequest(input.requestId)?.conversationId === conversationId : true)) throw new Error("Task or Request does not belong to this personal conversation");
|
|
108
153
|
return {
|
|
109
154
|
content: [{
|
|
110
155
|
type: "text",
|
|
111
|
-
text: JSON.stringify(
|
|
156
|
+
text: JSON.stringify(new AgentSelectionRepository().list(conversationId, {
|
|
157
|
+
taskId: input.taskId,
|
|
158
|
+
requestId: input.requestId,
|
|
159
|
+
offset: input.offset
|
|
160
|
+
}))
|
|
112
161
|
}],
|
|
113
162
|
details: {}
|
|
114
163
|
};
|
|
115
164
|
}
|
|
165
|
+
let selectedProductTool = productTool;
|
|
166
|
+
let pendingSelection;
|
|
116
167
|
let command = input.command;
|
|
117
168
|
let args = {};
|
|
118
169
|
if (command === "create") {
|
|
@@ -120,15 +171,67 @@ function createPersonalTaskTool(deps) {
|
|
|
120
171
|
const agentId = input.agentId?.trim();
|
|
121
172
|
if (!objective || !agentId) throw new Error("objective and specialist agentId are required");
|
|
122
173
|
if (agentId === ownAgentId || agentId.startsWith("personal-")) throw new Error("Delegate to a specialist Agent, not a personal Agent");
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
174
|
+
const key = input.idempotencyKey?.trim() || randomUUID();
|
|
175
|
+
const { requiredTools: _tools, requiredSkills: _skills, requirements: _requirements, ...requestInput } = input;
|
|
176
|
+
const requestHash = selectionRequestHash({
|
|
177
|
+
...requestInput,
|
|
178
|
+
idempotencyKey: key,
|
|
179
|
+
requirements
|
|
180
|
+
});
|
|
181
|
+
const previous = new AgentSelectionRepository().find(conversationId, key);
|
|
182
|
+
if (previous && previous.requestHash !== requestHash) throw new Error("Idempotency key was reused with different input");
|
|
183
|
+
if (previous?.status === "rejected") assertSpecialistEligible(previous.assessment);
|
|
184
|
+
const matched = input.matchId ? matches.get(input.matchId) : void 0;
|
|
185
|
+
if (!previous && input.matchId && (!matched || matched.conversationId !== conversationId)) throw new Error("Matching snapshot expired; match again");
|
|
186
|
+
if (!previous && matched && (selectionRequestHash(matched.requirements) !== selectionRequestHash(requirements) || !matched.result.candidates.some((candidate) => candidate.id === agentId))) throw new Error("Selection must preserve matched requirements and select a displayed candidate");
|
|
187
|
+
let assessment = previous?.assessment;
|
|
188
|
+
if (!assessment) {
|
|
189
|
+
assessment = assessSpecialist(agentId, requirements, context);
|
|
190
|
+
if (assessment.eligibility !== "eligible" && getSessionMetadata(conversationId)) new AgentSelectionRepository().create({
|
|
191
|
+
conversationId,
|
|
192
|
+
key,
|
|
193
|
+
requestHash,
|
|
194
|
+
requirements,
|
|
195
|
+
assessment,
|
|
196
|
+
source: input.selectionSource ?? "legacy",
|
|
197
|
+
reason: input.selectionReason,
|
|
198
|
+
previousSelectionId: input.previousSelectionId,
|
|
199
|
+
status: "rejected"
|
|
200
|
+
});
|
|
201
|
+
assertSpecialistEligible(assessment);
|
|
202
|
+
}
|
|
203
|
+
const requiredSkills = assessment.verifiedSkills;
|
|
204
|
+
if (!previous) pendingSelection = {
|
|
205
|
+
conversationId,
|
|
206
|
+
key,
|
|
207
|
+
requestHash,
|
|
208
|
+
requirements,
|
|
209
|
+
assessment,
|
|
210
|
+
source: requirements.requestedAgentId ? "explicit" : matched ? "match" : input.selectionSource === "match" ? "snapshot" : input.selectionSource ?? "legacy",
|
|
211
|
+
reason: input.selectionReason,
|
|
212
|
+
previousSelectionId: input.previousSelectionId,
|
|
213
|
+
status: "start_failed"
|
|
214
|
+
};
|
|
215
|
+
selectedProductTool = createXopcUseTool({
|
|
216
|
+
...deps,
|
|
217
|
+
createTask: (taskInput, actor) => createSelectedTask(taskInput, actor, {
|
|
218
|
+
conversationId,
|
|
219
|
+
requirements,
|
|
220
|
+
context,
|
|
221
|
+
requestHash,
|
|
222
|
+
candidates: matched?.result.candidates.map(({ id, revision, eligibility, checks, matched: tags, missing }) => ({
|
|
223
|
+
id,
|
|
224
|
+
revision,
|
|
225
|
+
eligibility,
|
|
226
|
+
checks,
|
|
227
|
+
matched: tags,
|
|
228
|
+
missing
|
|
229
|
+
})),
|
|
230
|
+
reason: input.selectionReason,
|
|
231
|
+
source: requirements.requestedAgentId ? "explicit" : matched ? "match" : input.selectionSource === "match" ? "snapshot" : input.selectionSource ?? (input.requirements ? "snapshot" : "legacy"),
|
|
232
|
+
previousSelectionId: input.previousSelectionId
|
|
233
|
+
})
|
|
234
|
+
});
|
|
132
235
|
const brief = buildPersonalTaskBrief({
|
|
133
236
|
title: input.title,
|
|
134
237
|
objective,
|
|
@@ -143,7 +246,7 @@ function createPersonalTaskTool(deps) {
|
|
|
143
246
|
expectedOutputs: input.expectedOutputs ?? [],
|
|
144
247
|
acceptanceCriteria: input.acceptanceCriteria ?? [],
|
|
145
248
|
constraints: input.constraints ?? [],
|
|
146
|
-
idempotencyKey:
|
|
249
|
+
idempotencyKey: key
|
|
147
250
|
};
|
|
148
251
|
} else if (command === "list") {
|
|
149
252
|
command = "delegated_tasks";
|
|
@@ -165,14 +268,26 @@ function createPersonalTaskTool(deps) {
|
|
|
165
268
|
};
|
|
166
269
|
} else args = { taskId };
|
|
167
270
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
271
|
+
try {
|
|
272
|
+
return {
|
|
273
|
+
content: (await selectedProductTool.execute(toolCallId, {
|
|
274
|
+
mode: "task",
|
|
275
|
+
command,
|
|
276
|
+
args
|
|
277
|
+
}, signal, void 0)).content,
|
|
278
|
+
details: {}
|
|
279
|
+
};
|
|
280
|
+
} catch (error) {
|
|
281
|
+
if (pendingSelection && !new AgentSelectionRepository().find(conversationId, pendingSelection.key)) {
|
|
282
|
+
const repository = new AgentSelectionRepository();
|
|
283
|
+
const record = repository.create(pendingSelection);
|
|
284
|
+
repository.link(record.id, {
|
|
285
|
+
status: "start_failed",
|
|
286
|
+
reasonCode: "creation_exception"
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
throw error;
|
|
290
|
+
}
|
|
176
291
|
}
|
|
177
292
|
};
|
|
178
293
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { turnOutcomeKindFromFileName, turnOutcomeMimeTypeFromFileName } from "../../../packages/gateway-contract/src/turn-outcome.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
|
+
import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
|
|
4
|
+
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
3
5
|
import { evaluateFilePolicy } from "../sandbox/exec-policy.js";
|
|
4
6
|
import { readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
5
|
-
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
6
|
-
import { fileResourceId, fileSpaceId } from "../../files/file-service.js";
|
|
7
7
|
import { persistToolMedia } from "./tool-media.js";
|
|
8
8
|
import { basename, isAbsolute, relative, sep } from "node:path";
|
|
9
9
|
import { realpath } from "node:fs/promises";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
|
|
1
2
|
import { checkedFilePath, readWorkspaceFileAsync } from "../sandbox/fileAccess.js";
|
|
2
|
-
import { dataScheduler } from "../data-acquisition/scheduler.js";
|
|
3
3
|
import { checkFileSafety } from "../prompt/safety.js";
|
|
4
|
+
import { dataScheduler } from "../data-acquisition/scheduler.js";
|
|
4
5
|
import { formatSize, truncateHead } from "./truncate.js";
|
|
5
|
-
import { isBareProfileMarkdownFileName, resolvePathUnderWorkspace, resolveProfileMarkdownPathIfBareName } from "./tool-paths.js";
|
|
6
6
|
import { stat } from "fs/promises";
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
8
8
|
//#region src/agent/tools/read.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
2
1
|
import { prepareSafeToolEnv } from "../sandbox/sanitize-env-vars.js";
|
|
2
|
+
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
3
3
|
import { evaluateFilePolicy } from "../sandbox/exec-policy.js";
|
|
4
4
|
import { checkedFilePath, readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
5
5
|
import { resolve } from "node:path";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { turnOutcomeKindFromFileName } from "../../../packages/gateway-contract/src/turn-outcome.js";
|
|
2
2
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
3
|
-
import { readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
4
|
-
import { checkFileSafety } from "../prompt/safety.js";
|
|
5
3
|
import { resolvePathUnderWorkspace } from "./tool-paths.js";
|
|
6
4
|
import { MEDIA_MAX_BYTES } from "../../media/store.js";
|
|
5
|
+
import { readWorkspaceFile } from "../sandbox/fileAccess.js";
|
|
6
|
+
import { checkFileSafety } from "../prompt/safety.js";
|
|
7
7
|
import { persistToolMedia } from "./tool-media.js";
|
|
8
8
|
import { basename } from "node:path";
|
|
9
9
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { resolveStateDir } from "../../config/paths-state.js";
|
|
2
2
|
import { init_paths } from "../../config/paths.js";
|
|
3
|
-
import { DEFAULT_MAX_BYTES, formatSize, truncateHead } from "./truncate.js";
|
|
4
3
|
import { createSkillConfigManager, isSkillEnabled, resolveSkillConfig } from "../skills/config.js";
|
|
4
|
+
import { DEFAULT_MAX_BYTES, formatSize, truncateHead } from "./truncate.js";
|
|
5
5
|
import { resolveSkillReadablePath } from "../skills/skill-view-path.js";
|
|
6
6
|
import { readFileSync, statSync } from "fs";
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|