@xopcai/xopc 0.0.454 → 0.0.455
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/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/eventEmitter2.js +40 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/index.js +56 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/shared/conout.js +16 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/terminal.js +190 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/unixTerminal.js +287 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/utils.js +49 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/windowsConoutConnection.js +190 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/windowsPtyAgent.js +265 -0
- package/dist/.pnpm/node-pty@1.1.0/node_modules/node-pty/lib/windowsTerminal.js +178 -0
- package/dist/_virtual/_rolldown/runtime.js +10 -2
- 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-BKH-qNPt.js → activity-store-DYwR1u3f.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-DY6IWy0_.js → agent-avatar-dicebear-CsRBprL-.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-tnAtQOAZ.js → agent-avatar-display-DqFYHXCS.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-BLQ2N_dY.js → agent-defaults-settings-panel-DOAJrMLe.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-Bfsm4GOs.js → agent-plugin-dialog-vqlN3ORH.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-CDNiLv0W.js → agents-BgHlOVRV.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-DGZsm8U4.js → agents-admin-api-CKscfdvA.js} +1 -1
- package/dist/gateway/static/root/assets/{api-BhipC15e.js → api-CHM2c_Ah.js} +1 -1
- package/dist/gateway/static/root/assets/{api-Bbj5k-7e.js → api-DPNeNCmR.js} +1 -1
- package/dist/gateway/static/root/assets/{app-link-CCZ-LmVT.js → app-link-DImAfVs5.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-fwhXHKxt.js → app-management-settings-panel-Bhz6bj1C.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-BHkl-vFO.js → appearance-settings-BX32aogA.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-DtCWwdsK.js → apps-page-0Yo3jBsQ.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-B9xaxa7V.js → archive-plugin-Bha8obMe.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-BHMjSwcy.js → automation-api-mn8ihWJ_.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-BgAjEoNV.js → automation-result-state-COzakzak.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-D3Eon5C0.js → automation-run-list-BhtaMpTb.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-DJRg72t-.js → automation-task-card-BY_k6iWp.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-DdAzXb7s.js → automations-page-Dt_Z1UTT.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-D0nNat6N.js → automations-workspace-BhHgruhH.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-CgsjdprR.js → binary-plugins-DUbrJFLU.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-r6vj6dZO.js → block-editor-DW--pXAc.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-APCGT8Yr.js → browser-settings-page-CDh6nxs9.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-0gYkjdax.js → capabilities-DKbXv8Ck.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-BgBwcqvY.js → capabilities-kG175Q-7.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-B1x3TwdV.js → capabilities-page-D1wQ2sPI.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BW5jQz5R.js +8 -0
- package/dist/gateway/static/root/assets/{channels-8Y08v4Q2.js → channels-BzZp42yO.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-BRQDNNI5.js → chat-agents-api-UOdNWZ0_.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-qMGhfeQZ.js → chat-chart-block-NSy-B0NS.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-page-CSTyfO9c.js → chat-page-dY6aCCRx.js} +4 -4
- package/dist/gateway/static/root/assets/{chat-terminal-dock-0PJ9dURQ.js → chat-terminal-dock-CAaHWS7F.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-C4U_-rDo.js → command-palette-api-Dkn9bbYd.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-model-config-control-B9Q40ptH.js → composer-model-config-control-BrK8-SNz.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-notifications-ByuA8h5Z.js → composer-notifications-B-kL3qAA.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-zr1JDn3p.js → composer-payload-handoff-DBE1mvOS.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-D2F1quZR.js → computer-settings-page-C9KdEecx.js} +1 -1
- package/dist/gateway/static/root/assets/connected-providers-grid-D_8v6Qex.js +1 -0
- package/dist/gateway/static/root/assets/{connection-usage-guide-DkDsHm_l.js → connection-usage-guide-CiVpcbds.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-1AcvESmp.js → connector-service-page-B919cKSm.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-C1OML7OO.js → connectors-api-CgsSm-Av.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-CMIY0Zj_.js → connectors-page-CEpfDCLA.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-D1eFhoMI.js → date-picker-dx284jQI.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-CqplKVk6.js → date-time-picker-Dj-bhLNP.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-UmrjWSq-.js → desktop-pet-DlTuGzZ2.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-narrative-B7I1II0Z.js → desktop-pet-narrative-cBFIPXzR.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-DRRDJMu6.js → desktop-pet-settings-CsmrvoxU.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-CtKJMK52.js → dev-view-store-BOxbj1ie.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-C4aSCbqo.js → device-pairing-wizard-CAqFIFRC.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-D9U9yfnb.js → directory-picker-path-field-BxEw5OrT.js} +1 -1
- package/dist/gateway/static/root/assets/{discussion-annotation-sync-D-eGt1_L.js → discussion-annotation-sync-CyntTwIa.js} +1 -1
- package/dist/gateway/static/root/assets/extension-authoritative-grants-C0ReZguU.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-BTLcC8-r.js → extension-debug-page-Cd3HMUbi.js} +1 -1
- package/dist/gateway/static/root/assets/extension-iframe-host-DiIqM2JO.js +1 -0
- package/dist/gateway/static/root/assets/{extension-marketplace-api-DLRCNlej.js → extension-marketplace-api-CK5CMKTs.js} +1 -1
- package/dist/gateway/static/root/assets/extension-message-router-Dn8JzOdR.js +8 -0
- package/dist/gateway/static/root/assets/{extension-page-CdpI-Plq.js → extension-page-CLZtAtqm.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-DUDaMvQg.js → extension-provider-CbVokTvd.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-biWCnMGr.js → extension-settings-page-BM79cwUy.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-CnBRiQo8.js → file-preview-surface-z7_HV0WN.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-BV5fpBSK.js → gateway-config-swr-OGhON-s6.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-CIqLQXlm.js → gateway-realtime-B9u4uSXW.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-xB7Bq4Zs.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-DBkfCzT5.js → gateway-restart-DKAweWmg.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-DTzXUm9f.js → gateway-settings-Dc7qUbG-.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-B49N_Ngm.js → gateway-startup-retry-BaaoKBoB.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-DVpxe45P.js → global-defaults-api-BIr3ApRj.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-DvaxBrjG.js → home-page-i_PIrDCU.js} +2 -2
- package/dist/gateway/static/root/assets/{image-generation-api-CAKYslID.js → image-generation-api-C7D2IetZ.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-C2KmQJ2H.js → imports-page-BjEdZJxZ.js} +1 -1
- package/dist/gateway/static/root/assets/index-Bj5exyow.css +1 -0
- package/dist/gateway/static/root/assets/{index-BpzvsoS1.js → index-CZI3VGGW.js} +5 -5
- package/dist/gateway/static/root/assets/{install-connector-dialog-CmNvZt8M.js → install-connector-dialog-BsiyYQhx.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-syG2KRr2.js → keyboard-shortcuts-settings-CIthQ1lp.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-DGA4EHGm.js → local-app-workbench-page-CSCIHvZV.js} +1 -1
- package/dist/gateway/static/root/assets/local-apps-DeqzkJiF.js +1 -0
- package/dist/gateway/static/root/assets/{local-apps-page-I0O2ybpp.js → local-apps-page-EntiM0tz.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-DsPDloiq.js → local-session-drafts-XurtjR58.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-D3c8DIm-.js → locale-store-cg9cm2EL.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-u9FTZaTh.js → logs-page-rmS9VSem.js} +1 -1
- package/dist/gateway/static/root/assets/{management-api-uxRxRX-6.js → management-api-B6jVuJ6W.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BCbDfM7f.js → management-settings-DdI9gs51.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-ohhExTMC.js → markdown-view-D1zBWkfB.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-382BGqQC.js → mcp-conversation-setup-page-Bn49Ph1n.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-B5wtLz3Z.js → media-plugins-Cd6hAGDp.js} +1 -1
- package/dist/gateway/static/root/assets/messages-eQ2CYlpG.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-CoKcq0AZ.js → model-selector-CL6WT-jw.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-CtooMAQW.js → models-hub-cache-s0FMNhq9.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-DiGQtSD0.js → note-detail-panel-anM38aV6.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-DfK2KSgu.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-Cvet94d8.js → notes-api-CR75RHd0.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-DwlmKweX.js → notes-page-BsZmT7Zw.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-api-BHp5dVNh.js → oauth-api-CvPnQTlH.js} +1 -1
- package/dist/gateway/static/root/assets/oauth-provider-connect-Dk1NeeqD.js +1 -0
- package/dist/gateway/static/root/assets/{page-context-capture-button-BwsK2uDe.js → page-context-capture-button-BPtX67hZ.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-ieK9IN3R.js → page-context-draft-Ckb8baxj.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-DU4NnGap.js +1 -0
- package/dist/gateway/static/root/assets/{personal-avatar-BZSC0BLP.js → personal-avatar-CZSnrSfc.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-CbiD8Wn7.js → personal-page-BSCNuRMT.js} +1 -1
- package/dist/gateway/static/root/assets/personal-profile-settings-DJRDcK2c.js +1 -0
- package/dist/gateway/static/root/assets/{personal-settings-panel-_cxSzWsN.js → personal-settings-panel-C6p25Noq.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-C2OWtG2B.js → phone-dependencies-card-DKkFFpqi.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-CqmafRhr.js → phone-model-connection-CRRHq4PQ.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-BwYQtl_5.js → phone-model-picker-CN_I0-46.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-CPteZZWu.js → phone-settings-page-CkdSOA7D.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-ReUEjG9m.js → phone-workspace-store-CC61pIuJ.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-BlNVtbEU.js → plugin-details-dialog-Bqz4jT53.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-BbA-g7Zq.js → preference-select-fields-DHeNbAvn.js} +1 -1
- package/dist/gateway/static/root/assets/{product-automation-feedback-DcPY76PG.js → product-automation-feedback-BN2HTA9T.js} +1 -1
- package/dist/gateway/static/root/assets/{product-delivery-2Ks17_OH.js → product-delivery-BFfqdKLe.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-BBJ7glAm.js → product-open-page-B-j4gpLD.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-UTOSc_ii.js → product-preview-content-EqrTk7kU.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-Q1RZqeMo.js → product-preview-modal-aurFBFq4.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-BlrtsEZK.js → project-detail-page-ibZZ_w51.js} +1 -1
- package/dist/gateway/static/root/assets/{project-understanding-B35f5MkG.js → project-understanding-HNK9lFVy.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-CBH-sHOU.js → projects-page-CugSyKl5.js} +1 -1
- package/dist/gateway/static/root/assets/providers-api-DUntOOqr.js +1 -0
- package/dist/gateway/static/root/assets/{recording-upload-P1WcsdEY.js → recording-upload-DIwP541B.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-DnVlwJ6M.js → registry-api-BTd_OgbD.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-CVEj3p0J.js → remote-access-hub-f5mIfsBF.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-B_S1dFze.js → resource-unavailable-DtQ2rfu_.js} +1 -1
- package/dist/gateway/static/root/assets/{route-preload-DGmrxJSb.js → route-preload-anuckzRl.js} +2 -2
- package/dist/gateway/static/root/assets/{runtime-tools-api-970sp5zI.js → runtime-tools-api-C1iI8EPo.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-au6vZ0sL.js → runtime-tools-settings-panel-0tdI1z0g.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-XeRFtJ-Z.js → service-recommendation-list-DSIe-NRe.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-CuT7EPI0.js → session-api-CQlEq0MB.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-CyZHiuWY.js → session-manager-C7RfUfqI.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-BIxDwAIX.js → sessions-page-DdS8U0RV.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-DnfH22f_.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-nbkGHQ_4.js → settings-advanced-section-C6dPu5i1.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-EQHfksdV.js → settings-mode-store-BSiiowQa.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-D6RNHRHq.js → settings-page-DAc5n-mM.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-19GJ_a45.js → settings-page-header-BSMu5Zq3.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-B2WCzSel.js → settings-page-layout-B_vMffB1.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-C5i7y_pM.js → setup-interaction-page-DKXfFdNt.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-Cwp8YKdT.js → setup-status-panel-BbAZ9w77.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-DDsVTMZ-.js → share-link-dialog-ztX1WPXG.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-C1S_gWGf.js → share-preview-page-Ds2Ydfg6.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-CepTFl1f.js → shares-api-CSZqeNL4.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-Cv-tdcAN.js → shares-settings-CX3TNAmI.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-CsT-iHnl.js → skill-api-CGzAQ-MX.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-CMJTjvSo.js → skill-list-api-DfUsku-x.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-S6B7P9ur.js → skill-reload-api-Y9qSMnBd.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-BKcsJtYx.js → skills-page-DnMN50Ot.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-DhHPM5qU.js → system-settings-panel-DWNkQmme.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-BHH2_Z9_.js → task-detail-page-BJok6V1K.js} +1 -1
- package/dist/gateway/static/root/assets/{task-input-card-D_2rNF31.js → task-input-card-lCMSy6YY.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-CcUWpqvC.js → terminal-panel-store-D8eZPvql.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-D9pquJiM.js → theme-store-GZQ3pTgy.js} +1 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-DC8_9-Lo.js +2 -0
- package/dist/gateway/static/root/assets/{tracing-settings-page-CjNrKILr.js → tracing-settings-page-DM3-7Hlw.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-GtLO40pc.js → tunnel-api-DOGAIXRR.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-BhB5wAbq.js → understanding-activity-store-CuPfe0eQ.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-BxtpXRfV.js → understanding-refresh-store-Ihz2p9Vg.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-CZa_a6_7.js → usage-page-BA9Yrvqu.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-BtOp6W9H.js → use-autosave-CO0IPCVg.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-BTQZx8Nj.js → use-composer-attachments-CLIrD0mm.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-B7nscYS4.js → use-file-preview-expanded-dhNMHf5b.js} +3 -3
- package/dist/gateway/static/root/assets/{use-personal-profile-Cj7WGOfv.js → use-personal-profile-CVqDWBDS.js} +1 -1
- package/dist/gateway/static/root/assets/{use-realtime-voice-BS1rygyV.js → use-realtime-voice-DDVVlX1R.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-DYosm4Gz.js → use-workspace-tree-CZej8mhf.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-DmmJODQ4.js → user-model-page-1eYattnk.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-8voN8dQG.js → voice-api-key-field-DpwUDAvu.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-CrZd2aqw.js → voice-config-api-GIuXoHXw.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-DcFp_fy4.js → voice-input-shortcut-events-Cc30ZcFy.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-settings-AckvhNnP.js → voice-settings-DA3m5MT0.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DAIk5csp.js → work-discovery-overlay-yGUkk1NV.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-CJeixeWQ.js → work-discovery-page-RN6iuY-0.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-BW76VaD5.js → working-directory-picker-modal-CeXl9w6z.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-Cu2gzmVn.js → workspace-api-B1Uirhxf.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-Nos5ebMv.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-DyqI793w.js → workspace-file-preview-dialog-D0h2yJ3v.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-DTYkApy8.js → workspace-open-location-menu-DWGNOIE2.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Rytp_NWV.js → xopc-cloud-account-card-x-XT4bKF.js} +1 -1
- package/dist/gateway/static/root/index.html +91 -91
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/extension-capabilities.js +69 -4
- package/dist/packages/gateway-contract/src/local-app-delegation.js +4 -1
- package/dist/src/agent/agent-manager.js +1 -1
- package/dist/src/agent/child-agent-factory.js +24 -1
- package/dist/src/agent/commands/command-registry.d.ts +10 -0
- package/dist/src/agent/commands/command-registry.js +37 -16
- package/dist/src/agent/commands/command-transport.d.ts +19 -0
- package/dist/src/agent/commands/command-transport.js +92 -0
- package/dist/src/agent/context/project-context.js +1 -1
- package/dist/src/agent/embedded/execution-tool-policy.d.ts +1 -0
- package/dist/src/agent/embedded/execution-tool-policy.js +16 -5
- package/dist/src/agent/embedded/index.js +1 -1
- package/dist/src/agent/embedded/run-turn.js +74 -14
- package/dist/src/agent/embedded/runs.d.ts +2 -0
- package/dist/src/agent/embedded/runs.js +8 -1
- package/dist/src/agent/embedded/session-runner.js +2 -2
- package/dist/src/agent/external-tools/endpoint-provider.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/orchestration/child-run-monitor.d.ts +35 -0
- package/dist/src/agent/orchestration/child-run-monitor.js +104 -0
- package/dist/src/agent/orchestration/child-run-resume.d.ts +3 -0
- package/dist/src/agent/orchestration/child-run-resume.js +67 -0
- package/dist/src/agent/sandbox/native-command.d.ts +15 -0
- package/dist/src/agent/sandbox/native-command.js +65 -0
- package/dist/src/agent/service/btw-query.d.ts +1 -0
- package/dist/src/agent/service/btw-query.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +2 -2
- package/dist/src/agent/service/process-direct-streaming.js +2 -2
- package/dist/src/agent/service.js +2 -2
- package/dist/src/agent/session/interaction-policy.d.ts +21 -0
- package/dist/src/agent/session/interaction-policy.js +58 -0
- package/dist/src/agent/session/session-inspector.js +3 -2
- package/dist/src/agent/tools/create-share-tool.js +1 -1
- package/dist/src/agent/tools/exec-command.js +5 -0
- package/dist/src/agent/tools/factory.js +1 -1
- package/dist/src/agent/tools/index.js +1 -1
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/managed-job-tool.js +16 -1
- package/dist/src/agent/tools/personal-read-tool.js +1 -1
- package/dist/src/agent/tools/publish-artifacts.js +1 -1
- package/dist/src/agent/tools/read.js +1 -1
- package/dist/src/agent/tools/send-media.js +1 -1
- package/dist/src/agent/tools/write.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +4 -4
- package/dist/src/automations/capabilities/drafts.js +5 -1
- package/dist/src/automations/capabilities/read.js +58 -8
- package/dist/src/automations/capabilities/write.js +53 -0
- package/dist/src/automations/delivery/delivery-router.js +3 -1
- package/dist/src/automations/run-changes.d.ts +2 -0
- package/dist/src/automations/run-changes.js +18 -0
- package/dist/src/automations/service/automation-service.d.ts +2 -9
- package/dist/src/automations/service/automation-service.js +3 -2
- package/dist/src/automations/storage/automation-run-repository.d.ts +5 -0
- package/dist/src/automations/storage/automation-run-repository.js +15 -1
- package/dist/src/capabilities/runtime/dispatcher.d.ts +1 -0
- package/dist/src/capabilities/runtime/product.d.ts +2 -0
- package/dist/src/capabilities/runtime/product.js +26 -6
- package/dist/src/channels/attachments/voice-stt-webchat.js +1 -1
- package/dist/src/chat-commands/types.d.ts +2 -0
- package/dist/src/cli/commands/tui-runner.d.ts +1 -1
- package/dist/src/cli/commands/tui-runner.js +1 -0
- package/dist/src/cli/commands/tui.js +1 -1
- package/dist/src/config/schema.d.ts +1 -1
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
- package/dist/src/gateway/agents-admin.js +1 -1
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +107 -10
- package/dist/src/gateway/hono/routes/imports.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +2 -2
- package/dist/src/gateway/hono/routes/local-app-capabilities.js +12 -2
- package/dist/src/gateway/hono/routes/local-app-run-streams.d.ts +4 -0
- package/dist/src/gateway/hono/routes/local-app-run-streams.js +105 -0
- package/dist/src/gateway/hono/routes/sessions.js +2 -2
- package/dist/src/gateway/hono/routes/shares.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/tui.js +308 -0
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +1 -1
- package/dist/src/gateway/service/config-coordinator.d.ts +1 -1
- package/dist/src/gateway/service/sessions-api.d.ts +1 -1
- package/dist/src/gateway/service/sessions-api.js +3 -3
- package/dist/src/gateway/service.js +8 -8
- package/dist/src/gateway/session-reset-service.js +1 -1
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/infra/execution-authority.d.ts +12 -0
- package/dist/src/infra/execution-authority.js +27 -0
- package/dist/src/local-apps/automation-proposals.d.ts +754 -0
- package/dist/src/local-apps/automation-proposals.js +185 -0
- package/dist/src/local-apps/capabilities/automation-policy.d.ts +7 -0
- package/dist/src/local-apps/capabilities/automation-policy.js +46 -0
- package/dist/src/local-apps/capabilities/contracts.js +23 -0
- package/dist/src/local-apps/capabilities/delegate.js +21 -4
- package/dist/src/local-apps/capabilities/projections.d.ts +588 -0
- package/dist/src/local-apps/capabilities/projections.js +135 -2
- package/dist/src/local-apps/capabilities/resource-policy.js +76 -0
- package/dist/src/local-apps/capabilities/runtime.js +2 -1
- package/dist/src/local-apps/execution-authority.d.ts +13 -0
- package/dist/src/local-apps/execution-authority.js +104 -0
- package/dist/src/local-apps/p1-services.d.ts +189 -0
- package/dist/src/local-apps/p1-services.js +620 -0
- package/dist/src/local-apps/preview-sessions.d.ts +1 -1
- package/dist/src/local-apps/preview-sessions.js +2 -2
- package/dist/src/local-apps/preview-worker.js +11 -2
- package/dist/src/local-apps/service.d.ts +81 -1
- package/dist/src/local-apps/service.js +18 -1
- package/dist/src/local-apps/store.js +1 -1
- package/dist/src/notes/agent-context.js +1 -1
- package/dist/src/personal-agent/request-service.js +1 -1
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/platform/contracts.d.ts +3 -3
- package/dist/src/projects/capabilities/read.js +43 -2
- package/dist/src/projects/capabilities/write.js +25 -0
- package/dist/src/projects/project-store.js +12 -1
- package/dist/src/projects/types.d.ts +1 -0
- package/dist/src/review/review-git.js +14 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/resource-scope.js +2 -2
- package/dist/src/tasks/capabilities/management.js +3 -0
- package/dist/src/tasks/capabilities/write.js +11 -2
- package/dist/src/tasks/index.js +1 -1
- package/dist/src/tui/backend-services.d.ts +14 -0
- package/dist/src/tui/backend-services.js +67 -0
- package/dist/src/tui/backends/embedded-backend.d.ts +48 -4
- package/dist/src/tui/backends/embedded-backend.js +248 -42
- package/dist/src/tui/backends/gateway-realtime-backend.d.ts +46 -2
- package/dist/src/tui/backends/gateway-realtime-backend.js +205 -62
- package/dist/src/tui/components/chat-log.d.ts +1 -0
- package/dist/src/tui/components/chat-log.js +11 -5
- package/dist/src/tui/components/scoped-models-selector.js +1 -1
- package/dist/src/tui/components/session-selector.js +1 -1
- package/dist/src/tui/components/text-viewer.d.ts +32 -0
- package/dist/src/tui/components/text-viewer.js +132 -0
- package/dist/src/tui/components/tui-bottom-bar.js +3 -0
- package/dist/src/tui/extension-host/autocomplete.js +9 -1
- package/dist/src/tui/extension-host/runtime.d.ts +1 -0
- package/dist/src/tui/extension-host/runtime.js +1 -0
- package/dist/src/tui/tui-backend.d.ts +36 -3
- package/dist/src/tui/tui-capabilities.d.ts +15 -0
- package/dist/src/tui/tui-capabilities.js +46 -0
- package/dist/src/tui/tui-capability-controls.d.ts +9 -0
- package/dist/src/tui/tui-capability-controls.js +250 -0
- package/dist/src/tui/tui-clarification.d.ts +15 -0
- package/dist/src/tui/tui-clarification.js +91 -0
- package/dist/src/tui/tui-command-formatters.d.ts +0 -4
- package/dist/src/tui/tui-command-formatters.js +3 -43
- package/dist/src/tui/tui-commands.d.ts +4 -4
- package/dist/src/tui/tui-commands.js +219 -127
- package/dist/src/tui/tui-control-commands.d.ts +12 -0
- package/dist/src/tui/tui-control-commands.js +127 -0
- package/dist/src/tui/tui-image-files.d.ts +2 -0
- package/dist/src/tui/tui-image-files.js +47 -0
- package/dist/src/tui/tui-local-shell.d.ts +6 -0
- package/dist/src/tui/tui-local-shell.js +36 -2
- package/dist/src/tui/tui-management.d.ts +114 -0
- package/dist/src/tui/tui-management.js +233 -0
- package/dist/src/tui/tui-picker-overlay.d.ts +1 -6
- package/dist/src/tui/tui-picker-overlay.js +1 -62
- package/dist/src/tui/tui-session-actions.d.ts +1 -0
- package/dist/src/tui/tui-session-actions.js +97 -29
- package/dist/src/tui/tui-settings.js +1 -1
- package/dist/src/tui/tui-side-chat.d.ts +10 -0
- package/dist/src/tui/tui-side-chat.js +56 -0
- package/dist/src/tui/tui-terminal.d.ts +3 -0
- package/dist/src/tui/tui-terminal.js +52 -0
- package/dist/src/tui/tui-types.d.ts +4 -1
- package/dist/src/tui/tui.js +422 -211
- package/dist/src/tui/xopc-tui-keybindings.d.ts +29 -9
- package/dist/src/tui/xopc-tui-keybindings.js +27 -7
- package/dist/src/usage/recorder.js +2 -0
- package/package.json +2 -1
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CZ78ckHR.js +0 -8
- package/dist/gateway/static/root/assets/connected-providers-grid-CgULhOBZ.js +0 -1
- package/dist/gateway/static/root/assets/extension-authoritative-grants-8ONVOjPW.js +0 -1
- package/dist/gateway/static/root/assets/extension-iframe-host-D0-OvFV2.js +0 -1
- package/dist/gateway/static/root/assets/extension-message-router-DboLTCVp.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-B6T1Xzag.js +0 -1
- package/dist/gateway/static/root/assets/index-B49yIcMR.css +0 -1
- package/dist/gateway/static/root/assets/local-apps-CB-MZAaL.js +0 -1
- package/dist/gateway/static/root/assets/messages-DPLud9GK.js +0 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-Ds4M9fJJ.js +0 -1
- package/dist/gateway/static/root/assets/oauth-provider-connect-cvxtmf3C.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-Xe8CP_4a.js +0 -1
- package/dist/gateway/static/root/assets/personal-profile-settings-KvdNnaNv.js +0 -1
- package/dist/gateway/static/root/assets/providers-api-BSmKlQ8K.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Cy7xeKmH.js +0 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-YQmN1S2k.js +0 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-pVOYuH7u.js +0 -1
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { theme } from "../theme.js";
|
|
2
|
+
import { stripVTControlCharacters } from "node:util";
|
|
3
|
+
import { Text, truncateToWidth } from "@earendil-works/pi-tui";
|
|
4
|
+
//#region src/tui/components/text-viewer.ts
|
|
5
|
+
/** Bounded, keyboard-scrollable output; content never becomes a model prompt. */
|
|
6
|
+
var TextViewer = class {
|
|
7
|
+
focused = false;
|
|
8
|
+
offset = 0;
|
|
9
|
+
text;
|
|
10
|
+
timer;
|
|
11
|
+
loading = false;
|
|
12
|
+
disposed = false;
|
|
13
|
+
prompt;
|
|
14
|
+
input = "";
|
|
15
|
+
query = "";
|
|
16
|
+
rendered = [];
|
|
17
|
+
constructor(title, content, options) {
|
|
18
|
+
this.title = title;
|
|
19
|
+
this.options = options;
|
|
20
|
+
this.text = new Text(this.preview(content), 0, 0);
|
|
21
|
+
if (options.load) {
|
|
22
|
+
this.timer = setInterval(() => {
|
|
23
|
+
this.reload();
|
|
24
|
+
}, options.intervalMs ?? 1e3);
|
|
25
|
+
this.timer.unref();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
preview(content) {
|
|
29
|
+
return stripVTControlCharacters(content.length > 1e6 ? `${content.slice(0, 1e6)}\n[Preview truncated at 1,000,000 characters. Export the transcript for the full content.]` : content);
|
|
30
|
+
}
|
|
31
|
+
async reload() {
|
|
32
|
+
if (this.loading || this.disposed || !this.options.load) return;
|
|
33
|
+
this.loading = true;
|
|
34
|
+
try {
|
|
35
|
+
const content = await this.options.load();
|
|
36
|
+
if (this.disposed) return;
|
|
37
|
+
this.text.setText(this.preview(content));
|
|
38
|
+
} catch (error) {
|
|
39
|
+
if (!this.disposed) this.text.setText(`Live output unavailable: ${error instanceof Error ? error.message : String(error)}`);
|
|
40
|
+
} finally {
|
|
41
|
+
this.loading = false;
|
|
42
|
+
if (!this.disposed) this.options.render();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
dispose() {
|
|
46
|
+
if (this.disposed) return;
|
|
47
|
+
this.disposed = true;
|
|
48
|
+
this.options.onDispose?.();
|
|
49
|
+
clearInterval(this.timer);
|
|
50
|
+
}
|
|
51
|
+
invalidate() {
|
|
52
|
+
this.text.invalidate();
|
|
53
|
+
}
|
|
54
|
+
render(width) {
|
|
55
|
+
const lines = this.text.render(width);
|
|
56
|
+
this.rendered = lines;
|
|
57
|
+
const rows = Math.max(3, this.options.rows() - 5);
|
|
58
|
+
this.offset = Math.min(this.offset, Math.max(0, lines.length - rows));
|
|
59
|
+
return [
|
|
60
|
+
truncateToWidth(theme.bold(theme.accent(this.title)), width),
|
|
61
|
+
...lines.slice(this.offset, this.offset + rows),
|
|
62
|
+
...this.prompt ? [truncateToWidth(theme.accent(`${this.prompt === "search" ? "/" : "Go to line: "}${this.input}`), width)] : [],
|
|
63
|
+
truncateToWidth(theme.dim(`↑/↓ scroll · PgUp/PgDn page · / search · n/N next/previous · g line · [/] diff file · Home/End · ${this.options.reply ? "Enter follow-up · " : ""}Esc close · ${this.offset + 1}/${lines.length}`), width)
|
|
64
|
+
];
|
|
65
|
+
}
|
|
66
|
+
handleInput(data) {
|
|
67
|
+
const keys = this.options.keybindings;
|
|
68
|
+
const clean = () => this.rendered.map((line) => stripVTControlCharacters(line));
|
|
69
|
+
const find = (direction) => {
|
|
70
|
+
const lines = clean();
|
|
71
|
+
for (let step = 1; step <= lines.length; step++) {
|
|
72
|
+
const index = (this.offset + direction * step + lines.length) % lines.length;
|
|
73
|
+
if (lines[index]?.toLowerCase().includes(this.query.toLowerCase())) {
|
|
74
|
+
this.offset = index;
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
if (this.prompt) {
|
|
80
|
+
if (keys.matches(data, "tui.select.cancel")) this.prompt = void 0;
|
|
81
|
+
else if (keys.matches(data, "tui.select.confirm")) {
|
|
82
|
+
if (this.prompt === "search") {
|
|
83
|
+
this.query = this.input;
|
|
84
|
+
if (this.query) find(1);
|
|
85
|
+
} else if (/^\d+$/.test(this.input)) this.offset = Math.max(0, Number(this.input) - 1);
|
|
86
|
+
this.prompt = void 0;
|
|
87
|
+
} else if (data === "" || data === "\b") this.input = [...this.input].slice(0, -1).join("");
|
|
88
|
+
else if (!/[\x00-\x1f\x7f]/.test(data) && this.input.length < 1e3) this.input += data;
|
|
89
|
+
this.options.render();
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (data === "/" || data === "g") {
|
|
93
|
+
this.prompt = data === "/" ? "search" : "line";
|
|
94
|
+
this.input = "";
|
|
95
|
+
this.options.render();
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if ((data === "n" || data === "N") && this.query) {
|
|
99
|
+
find(data === "n" ? 1 : -1);
|
|
100
|
+
this.options.render();
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
if (data === "[" || data === "]") {
|
|
104
|
+
const lines = clean(), direction = data === "]" ? 1 : -1;
|
|
105
|
+
for (let index = this.offset + direction; index >= 0 && index < lines.length; index += direction) if (lines[index]?.startsWith("diff --git ")) {
|
|
106
|
+
this.offset = index;
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
this.options.render();
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const page = Math.max(3, this.options.rows() - 5);
|
|
113
|
+
if (keys.matches(data, "tui.select.confirm") && this.options.reply) {
|
|
114
|
+
this.options.close();
|
|
115
|
+
this.options.reply();
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
if (keys.matches(data, "tui.select.cancel") || data === "q") {
|
|
119
|
+
this.options.close();
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
if (keys.matches(data, "tui.select.up")) this.offset = Math.max(0, this.offset - 1);
|
|
123
|
+
if (keys.matches(data, "tui.select.down")) this.offset++;
|
|
124
|
+
if (data === "\x1B[5~") this.offset = Math.max(0, this.offset - page);
|
|
125
|
+
if (data === "\x1B[6~") this.offset += page;
|
|
126
|
+
if (data === "\x1B[H" || data === "\x1B[1~") this.offset = 0;
|
|
127
|
+
if (data === "\x1B[F" || data === "\x1B[4~") this.offset = Number.MAX_SAFE_INTEGER;
|
|
128
|
+
this.options.render();
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
//#endregion
|
|
132
|
+
export { TextViewer };
|
|
@@ -78,9 +78,12 @@ var TuiBottomBar = class {
|
|
|
78
78
|
render(width) {
|
|
79
79
|
if (this.customComponent) return this.customComponent.render(width).map((line) => truncateToWidth(line, width, theme.dim("…")));
|
|
80
80
|
const state = this.getState();
|
|
81
|
+
const policy = state.sessionInfo.interactionPolicy;
|
|
82
|
+
const policyLabel = policy?.mode === "plan" ? "Plan · read only" : policy?.access === "read-only" ? "Read only" : policy?.sandbox === "workspace-write" ? `Workspace sandbox · network ${policy.network ? "on" : "off"}` : "";
|
|
81
83
|
const cwdRaw = state.sessionInfo.effectiveWorkspacePath;
|
|
82
84
|
const cwdWithBranch = cwdRaw ? (() => {
|
|
83
85
|
const cwd = shortenPath(cwdRaw);
|
|
86
|
+
if (policyLabel) return `${cwd} · ${policyLabel}`;
|
|
84
87
|
const branch = getGitBranchCached(cwdRaw);
|
|
85
88
|
return branch ? `${cwd} (${branch})` : cwd;
|
|
86
89
|
})() : "workspace loading";
|
|
@@ -18,9 +18,17 @@ var ChainedAutocompleteProvider = class {
|
|
|
18
18
|
this.additionalSlashCommands = additionalSlashCommands;
|
|
19
19
|
}
|
|
20
20
|
async getSuggestions(lines, cursorLine, cursorCol, options) {
|
|
21
|
-
|
|
21
|
+
let primary = await this.primary.getSuggestions(lines, cursorLine, cursorCol, options);
|
|
22
22
|
const beforeCursor = (lines[cursorLine] ?? "").slice(0, cursorCol);
|
|
23
23
|
const slashMatch = beforeCursor.match(/^\/([\w:-]*)$/);
|
|
24
|
+
if (slashMatch && primary) {
|
|
25
|
+
const query = (slashMatch[1] ?? "").toLowerCase();
|
|
26
|
+
const items = primary.items.filter((item) => item.value.replace(/^\//, "").toLowerCase().startsWith(query));
|
|
27
|
+
primary = items.length ? {
|
|
28
|
+
...primary,
|
|
29
|
+
items
|
|
30
|
+
} : null;
|
|
31
|
+
}
|
|
24
32
|
const slashCommands = [...this.additionalSlashCommands, ...this.extensionSlashCommands];
|
|
25
33
|
if (slashMatch && slashCommands.length > 0) {
|
|
26
34
|
const query = (slashMatch[1] ?? "").toLowerCase();
|
|
@@ -25,6 +25,7 @@ export interface TuiExtensionRuntime {
|
|
|
25
25
|
shortcuts: TuiExtensionShortcut[];
|
|
26
26
|
autocompleteProvider: AutocompleteProvider;
|
|
27
27
|
handleShortcut(data: string): boolean;
|
|
28
|
+
createContext(extensionId: string): TuiSlashCommandContext;
|
|
28
29
|
activate(): Promise<void>;
|
|
29
30
|
dispose(): void;
|
|
30
31
|
}
|
|
@@ -577,6 +577,7 @@ function createTuiExtensionRuntime(opts) {
|
|
|
577
577
|
slashCommands,
|
|
578
578
|
shortcuts,
|
|
579
579
|
autocompleteProvider,
|
|
580
|
+
createContext: createActionContext,
|
|
580
581
|
handleShortcut(data) {
|
|
581
582
|
for (const shortcut of shortcuts) {
|
|
582
583
|
if (data !== shortcut.key && !matchesKey(data, shortcut.key)) continue;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import type { ClarificationResponseCommand } from '@xopcai/gateway-contract';
|
|
2
|
+
import type { TuiManagementCommand } from './tui-management.js';
|
|
3
|
+
import type { TuiCapability, TuiCapabilityKind } from './tui-capabilities.js';
|
|
4
|
+
import type { ChildRunView } from '../agent/orchestration/child-run-monitor.js';
|
|
5
|
+
import type { TuiClarification } from './tui-clarification.js';
|
|
6
|
+
import type { SessionInteractionPolicy } from '../agent/session/interaction-policy.js';
|
|
7
|
+
import type { TuiJob, TuiHistoryMatch } from './backend-services.js';
|
|
1
8
|
import type { ClientHistoryMessage } from '../session/client-history.js';
|
|
2
9
|
import type { SessionTimelineItem } from '../session/transcript-outline.js';
|
|
3
10
|
import type { ExportFormat } from '../session/types.js';
|
|
@@ -175,7 +182,7 @@ export interface TuiBackend {
|
|
|
175
182
|
/** Start the backend connection or embedded agent service. */
|
|
176
183
|
start(): void;
|
|
177
184
|
/** Stop the backend. */
|
|
178
|
-
stop(): void
|
|
185
|
+
stop(): void | Promise<void>;
|
|
179
186
|
/** Current active chat abort signal, if a run is in progress. */
|
|
180
187
|
getActiveSignal?(): AbortSignal | undefined;
|
|
181
188
|
/** Composer history for one conversation, shared across its clients. */
|
|
@@ -267,8 +274,29 @@ export interface TuiBackend {
|
|
|
267
274
|
loadTimeline(conversationId: string): Promise<SessionTimelineItem[]>;
|
|
268
275
|
/** Compute transcript message/token statistics. */
|
|
269
276
|
getSessionStats(conversationId: string): Promise<TuiSessionStats>;
|
|
277
|
+
getClarification(conversationId: string): Promise<TuiClarification | null>;
|
|
278
|
+
submitClarification(conversationId: string, requestId: string, command: ClarificationResponseCommand): Promise<void>;
|
|
279
|
+
manageCapability(conversationId: string, command: TuiManagementCommand): Promise<unknown>;
|
|
280
|
+
listCapabilities(conversationId: string, kind: TuiCapabilityKind): Promise<TuiCapability[]>;
|
|
281
|
+
listSubagents(conversationId: string): Promise<ChildRunView[]>;
|
|
282
|
+
getSubagent(conversationId: string, id: string): Promise<ChildRunView>;
|
|
283
|
+
steerSubagent(conversationId: string, id: string, text: string): Promise<void>;
|
|
284
|
+
resumeSubagent(conversationId: string, id: string, text: string): Promise<void>;
|
|
285
|
+
getSubagentTranscript(conversationId: string, id: string): Promise<string>;
|
|
286
|
+
stopSubagent(conversationId: string, id: string): Promise<void>;
|
|
287
|
+
getInteractionPolicy(conversationId: string): Promise<SessionInteractionPolicy>;
|
|
288
|
+
setInteractionPolicy(conversationId: string, policy: SessionInteractionPolicy): Promise<SessionInteractionPolicy>;
|
|
289
|
+
getWorkspaceDiff(conversationId: string): Promise<string>;
|
|
290
|
+
searchHistory(conversationId: string, query: string): Promise<TuiHistoryMatch[]>;
|
|
291
|
+
listJobs(conversationId: string): Promise<TuiJob[]>;
|
|
292
|
+
getJob(conversationId: string, id: string): Promise<TuiJob>;
|
|
293
|
+
resizeJob(conversationId: string, id: string, cols: number, rows: number): Promise<void>;
|
|
294
|
+
stopJob(conversationId: string, id: string): Promise<void>;
|
|
295
|
+
writeJob(conversationId: string, id: string, text: string): Promise<void>;
|
|
270
296
|
/** List sessions. */
|
|
271
|
-
listSessions(
|
|
297
|
+
listSessions(options?: {
|
|
298
|
+
archived?: boolean;
|
|
299
|
+
}): Promise<TuiSessionItem[]>;
|
|
272
300
|
/** List agents available for TUI agent switching. */
|
|
273
301
|
listAgents(): Promise<TuiAgentInfo[]>;
|
|
274
302
|
/** Persist the default agent for fresh TUI sessions. */
|
|
@@ -288,6 +316,8 @@ export interface TuiBackend {
|
|
|
288
316
|
renameSession(conversationId: string, name: string): Promise<{
|
|
289
317
|
ok: boolean;
|
|
290
318
|
}>;
|
|
319
|
+
restoreSession(conversationId: string): Promise<void>;
|
|
320
|
+
archiveSession(conversationId: string): Promise<void>;
|
|
291
321
|
/** Delete session and transcript. */
|
|
292
322
|
deleteSession(conversationId: string): Promise<{
|
|
293
323
|
ok: boolean;
|
|
@@ -311,7 +341,10 @@ export interface TuiBackend {
|
|
|
311
341
|
agentId?: string;
|
|
312
342
|
}): Promise<TuiShareResult>;
|
|
313
343
|
/** Ask an ephemeral side question using this session as read-only background. */
|
|
314
|
-
|
|
344
|
+
sideQuery(conversationId: string, question: string, options?: {
|
|
345
|
+
signal?: AbortSignal;
|
|
346
|
+
onDelta?: (text: string) => void;
|
|
347
|
+
}): Promise<{
|
|
315
348
|
text: string;
|
|
316
349
|
error?: string;
|
|
317
350
|
}>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Config } from '../config/schema.js';
|
|
2
|
+
export type TuiCapabilityKind = 'skills' | 'mcp' | 'plugins';
|
|
3
|
+
export interface TuiCapability {
|
|
4
|
+
id: string;
|
|
5
|
+
description: string;
|
|
6
|
+
state: string;
|
|
7
|
+
}
|
|
8
|
+
/** Only project non-secret inventory fields into terminal menus. */
|
|
9
|
+
export declare function listTuiCapabilities(input: {
|
|
10
|
+
config: Config;
|
|
11
|
+
workspace: string;
|
|
12
|
+
agentId?: string;
|
|
13
|
+
kind: TuiCapabilityKind;
|
|
14
|
+
trusted?: boolean;
|
|
15
|
+
}): TuiCapability[];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { resolveStateDir } from "../config/paths-state.js";
|
|
2
|
+
import { init_paths, resolveBundledSkillsDir } from "../config/paths.js";
|
|
3
|
+
import { AgentPluginStore } from "../extensions/agent-plugins/store.js";
|
|
4
|
+
import { getDefaultAgentId, init_resolve_route } from "../routing/resolve-route.js";
|
|
5
|
+
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
6
|
+
import { loadMergedMcpConfig } from "../agent/mcp/config.js";
|
|
7
|
+
import { createSkillConfigManager, isSkillEnabled } from "../agent/skills/config.js";
|
|
8
|
+
import { loadSkills } from "../agent/skills/index.js";
|
|
9
|
+
//#region src/tui/tui-capabilities.ts
|
|
10
|
+
init_paths();
|
|
11
|
+
init_resolve_route();
|
|
12
|
+
/** Only project non-secret inventory fields into terminal menus. */
|
|
13
|
+
function listTuiCapabilities(input) {
|
|
14
|
+
if (input.kind === "plugins") return new AgentPluginStore().list().map((plugin) => ({
|
|
15
|
+
id: plugin.id,
|
|
16
|
+
description: plugin.manifest.description ?? "",
|
|
17
|
+
state: plugin.receipt.enabled ? plugin.readiness : "disabled"
|
|
18
|
+
}));
|
|
19
|
+
if (input.kind === "mcp") {
|
|
20
|
+
const merged = loadMergedMcpConfig({
|
|
21
|
+
cfg: input.config,
|
|
22
|
+
workspaceDir: input.workspace,
|
|
23
|
+
agentId: input.agentId
|
|
24
|
+
});
|
|
25
|
+
return Object.entries(merged.config.mcpServers).map(([id, server]) => ({
|
|
26
|
+
id,
|
|
27
|
+
description: typeof server.description === "string" ? server.description : "",
|
|
28
|
+
state: server.enabled === false ? "disabled" : "configured (connection not probed)"
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
const config = createSkillConfigManager(resolveStateDir()).load();
|
|
32
|
+
const profile = resolveEffectiveAgentProfile(input.agentId ?? getDefaultAgentId());
|
|
33
|
+
const allowed = profile.skillsAllowlist && new Set(profile.skillsAllowlist.map((name) => name.toLowerCase()));
|
|
34
|
+
const denied = new Set(profile.skillsDenylist.map((name) => name.toLowerCase()));
|
|
35
|
+
return loadSkills({
|
|
36
|
+
workspaceDir: input.workspace,
|
|
37
|
+
builtinDir: resolveBundledSkillsDir() ?? void 0,
|
|
38
|
+
workspaceTrust: input.trusted ? "trusted" : "untrusted"
|
|
39
|
+
}).skills.filter((skill) => (!allowed || allowed.has(skill.name.toLowerCase())) && !denied.has(skill.name.toLowerCase())).map((skill) => ({
|
|
40
|
+
id: skill.name,
|
|
41
|
+
description: skill.description ?? "",
|
|
42
|
+
state: isSkillEnabled(skill, config) ? "enabled" : "disabled"
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { listTuiCapabilities };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TuiBackend } from './tui-backend.js';
|
|
2
|
+
export declare function createCapabilityControls(context: {
|
|
3
|
+
client: TuiBackend;
|
|
4
|
+
conversationId: () => string;
|
|
5
|
+
sessionVersion: () => number;
|
|
6
|
+
choose: (title: string, choices: string[]) => Promise<string | undefined>;
|
|
7
|
+
input: (title: string) => Promise<string | undefined>;
|
|
8
|
+
show: (title: string, content: string) => void;
|
|
9
|
+
}): (kind: "mcp" | "plugins", args: string) => Promise<void>;
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { randomUUID } from "node:crypto";
|
|
2
|
+
import { readFile, stat } from "node:fs/promises";
|
|
3
|
+
//#region src/tui/tui-capability-controls.ts
|
|
4
|
+
function createCapabilityControls(context) {
|
|
5
|
+
return async (kind, args) => {
|
|
6
|
+
const conversationId = context.conversationId(), version = context.sessionVersion();
|
|
7
|
+
const current = () => version === context.sessionVersion();
|
|
8
|
+
const run = (command) => context.client.manageCapability(conversationId, command);
|
|
9
|
+
const view = (title, data) => {
|
|
10
|
+
if (current()) context.show(title, typeof data === "string" ? data : JSON.stringify(data, null, 2));
|
|
11
|
+
};
|
|
12
|
+
const confirm = async (title) => current() && await context.choose(title, ["Cancel", "Confirm"]) === "Confirm" && current();
|
|
13
|
+
const auth = async (initial) => {
|
|
14
|
+
let attempt = initial;
|
|
15
|
+
try {
|
|
16
|
+
while (current() && attempt && ["starting", "authorizing"].includes(attempt.state)) {
|
|
17
|
+
const choice = await context.choose(`MCP sign-in [${attempt.state}]${attempt.authorizationUrl ? `\nOpen in your browser:\n${attempt.authorizationUrl}` : ""}`, [
|
|
18
|
+
"Refresh status",
|
|
19
|
+
...attempt.acceptsRedirect ? ["Paste callback URL"] : [],
|
|
20
|
+
"Cancel sign-in"
|
|
21
|
+
]);
|
|
22
|
+
if (!choice || choice === "Cancel sign-in" || !current()) {
|
|
23
|
+
await run({
|
|
24
|
+
action: "mcp.cancel",
|
|
25
|
+
id: initial.id
|
|
26
|
+
});
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (choice === "Paste callback URL") {
|
|
30
|
+
const url = await context.input("Paste the callback URL from your browser");
|
|
31
|
+
if (url && current()) await run({
|
|
32
|
+
action: "mcp.redirect",
|
|
33
|
+
id: initial.id,
|
|
34
|
+
url
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
attempt = await run({
|
|
38
|
+
action: "mcp.auth",
|
|
39
|
+
id: initial.id
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
view("MCP sign-in", attempt);
|
|
43
|
+
} finally {
|
|
44
|
+
if (!current()) await run({
|
|
45
|
+
action: "mcp.cancel",
|
|
46
|
+
id: initial.id
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
let [action, ...remaining] = args.trim().split(/\s+/);
|
|
51
|
+
let id = remaining.join(" ");
|
|
52
|
+
if (!args.trim()) {
|
|
53
|
+
const items = await context.client.listCapabilities(conversationId, kind);
|
|
54
|
+
if (!current()) return;
|
|
55
|
+
if (!items.length && kind === "mcp") {
|
|
56
|
+
view("MCP connections", "No configured MCP servers.");
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const choices = items.map((item) => `${item.id} [${item.state}] ${item.description}`);
|
|
60
|
+
const choice = await context.choose(kind === "mcp" ? "MCP connections" : "Plugins", [...choices, ...kind === "plugins" ? ["Browse marketplace", "Install from source"] : []]);
|
|
61
|
+
if (!choice || !current()) return;
|
|
62
|
+
if (choice === "Browse marketplace") {
|
|
63
|
+
const query = await context.input("Search plugin marketplace (empty lists all)");
|
|
64
|
+
if (!current()) return;
|
|
65
|
+
const catalog = await run({
|
|
66
|
+
action: "plugin.catalog",
|
|
67
|
+
query: query ?? ""
|
|
68
|
+
});
|
|
69
|
+
const labels = catalog.map((plugin) => `${plugin.name} · ${plugin.description ?? ""}`);
|
|
70
|
+
const selected = await context.choose("Plugin marketplace", labels);
|
|
71
|
+
const plugin = catalog[labels.indexOf(selected ?? "")];
|
|
72
|
+
if (!plugin || !current()) return;
|
|
73
|
+
action = "install";
|
|
74
|
+
id = `store:${plugin.id}`;
|
|
75
|
+
} else if (choice === "Install from source") {
|
|
76
|
+
action = "install";
|
|
77
|
+
id = await context.input("Plugin directory, Git URL or marketplace source") ?? "";
|
|
78
|
+
} else {
|
|
79
|
+
id = items[choices.indexOf(choice)].id;
|
|
80
|
+
action = await context.choose(id, kind === "mcp" ? [
|
|
81
|
+
"probe",
|
|
82
|
+
"tools",
|
|
83
|
+
"login",
|
|
84
|
+
"logout"
|
|
85
|
+
] : [
|
|
86
|
+
"details",
|
|
87
|
+
"setup",
|
|
88
|
+
"enable",
|
|
89
|
+
"disable",
|
|
90
|
+
"update",
|
|
91
|
+
"rollback",
|
|
92
|
+
"remove"
|
|
93
|
+
]) ?? "";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
if (!action || !id || !current()) return;
|
|
97
|
+
if (kind === "mcp") {
|
|
98
|
+
if (action === "probe" || action === "tools") view(`MCP ${action}: ${id}`, await run({
|
|
99
|
+
action: `mcp.${action}`,
|
|
100
|
+
id
|
|
101
|
+
}));
|
|
102
|
+
else if (action === "login") await auth(await run({
|
|
103
|
+
action: "mcp.login",
|
|
104
|
+
id
|
|
105
|
+
}));
|
|
106
|
+
else if (action === "logout") {
|
|
107
|
+
if (await confirm(`Remove the saved MCP authorization for ${id}?`)) await run({
|
|
108
|
+
action: "mcp.logout",
|
|
109
|
+
id
|
|
110
|
+
});
|
|
111
|
+
} else throw new Error("Usage: /mcp [probe|tools|login|logout] <server-id>");
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
id = id.replace(/^plugin:/, "");
|
|
115
|
+
if (action === "install" || action === "update") {
|
|
116
|
+
const source = action === "install" ? remaining.length ? remaining.join(" ") : id : await context.input(`Update ${id}: plugin source`);
|
|
117
|
+
if (!source || !current()) return;
|
|
118
|
+
const inspection = await run({
|
|
119
|
+
action: "plugin.inspect",
|
|
120
|
+
source
|
|
121
|
+
});
|
|
122
|
+
if (!await confirm(`Install ${inspection.manifest.name} ${inspection.manifest.version ?? ""}?\nCapabilities:\n${JSON.stringify(inspection.capabilities)}\nAdded:\n${JSON.stringify(inspection.addedCapabilities)}\nDiagnostics:\n${JSON.stringify(inspection.diagnostics)}`)) return;
|
|
123
|
+
view("Plugin installation", await run({
|
|
124
|
+
action: "plugin.install",
|
|
125
|
+
source,
|
|
126
|
+
reviewHash: inspection.reviewHash,
|
|
127
|
+
...action === "update" ? { replaceId: id } : {}
|
|
128
|
+
}));
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
if (action === "details") {
|
|
132
|
+
view(id, await run({
|
|
133
|
+
action: "plugin.get",
|
|
134
|
+
id
|
|
135
|
+
}));
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
if (action === "enable" || action === "disable") {
|
|
139
|
+
if (await confirm(`${action} plugin ${id}?`)) view(id, await run({
|
|
140
|
+
action: "plugin.enable",
|
|
141
|
+
id,
|
|
142
|
+
enabled: action === "enable"
|
|
143
|
+
}));
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if (action === "rollback") {
|
|
147
|
+
if (await confirm(`Roll back plugin ${id} to its previous version?`)) view(id, await run({
|
|
148
|
+
action: "plugin.rollback",
|
|
149
|
+
id
|
|
150
|
+
}));
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
if (action === "remove") {
|
|
154
|
+
if (await confirm(`Remove plugin ${id}? Installed data and credentials are retained.`)) await run({
|
|
155
|
+
action: "plugin.remove",
|
|
156
|
+
id,
|
|
157
|
+
credentials: false
|
|
158
|
+
});
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
if (action !== "setup") throw new Error("Usage: /plugins [details|setup|enable|disable|update|rollback|remove] <id>, or /plugins install <source>");
|
|
162
|
+
let job = await run({
|
|
163
|
+
action: "plugin.setup.get",
|
|
164
|
+
id
|
|
165
|
+
});
|
|
166
|
+
if (!job) job = await run({
|
|
167
|
+
action: "plugin.setup",
|
|
168
|
+
id
|
|
169
|
+
});
|
|
170
|
+
while (current() && job && job.state !== "completed") {
|
|
171
|
+
const choice = await context.choose(`Plugin ${id} [${job.state}]\n${JSON.stringify(job.connections)}\nMissing configuration: ${JSON.stringify(job.missingConfig)}`, [
|
|
172
|
+
"Refresh",
|
|
173
|
+
"Prepare",
|
|
174
|
+
"Configure from local JSON file",
|
|
175
|
+
"Authorize connection",
|
|
176
|
+
"Complete",
|
|
177
|
+
"Authorize later",
|
|
178
|
+
"Cancel setup",
|
|
179
|
+
"Close"
|
|
180
|
+
]);
|
|
181
|
+
if (!choice || choice === "Close" || !current()) return;
|
|
182
|
+
if (choice === "Refresh") {
|
|
183
|
+
job = await run({
|
|
184
|
+
action: "plugin.setup.get",
|
|
185
|
+
id
|
|
186
|
+
});
|
|
187
|
+
continue;
|
|
188
|
+
}
|
|
189
|
+
const base = {
|
|
190
|
+
expectedRevision: job.revision,
|
|
191
|
+
idempotencyKey: randomUUID()
|
|
192
|
+
};
|
|
193
|
+
if (choice === "Configure from local JSON file") {
|
|
194
|
+
const path = await context.input("Local JSON file containing plugin configuration (values will not be displayed)");
|
|
195
|
+
if (!path || !current()) continue;
|
|
196
|
+
if ((await stat(path)).size > 65536) throw new Error("Configuration file exceeds 64 KiB.");
|
|
197
|
+
const values = JSON.parse(await readFile(path, "utf8"));
|
|
198
|
+
if (!values || Array.isArray(values) || typeof values !== "object") throw new Error("Expected a JSON object.");
|
|
199
|
+
job = await run({
|
|
200
|
+
action: "plugin.setup",
|
|
201
|
+
id,
|
|
202
|
+
command: {
|
|
203
|
+
action: "configure",
|
|
204
|
+
...base,
|
|
205
|
+
values
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
} else if (choice === "Authorize connection") {
|
|
209
|
+
const server = await context.choose("Connection", job.connections.map((connection) => connection.name));
|
|
210
|
+
if (!server || !current()) continue;
|
|
211
|
+
job = await run({
|
|
212
|
+
action: "plugin.setup",
|
|
213
|
+
id,
|
|
214
|
+
command: {
|
|
215
|
+
action: "authorize",
|
|
216
|
+
...base,
|
|
217
|
+
server
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
const connection = job.connections.find((connection) => connection.name === server);
|
|
221
|
+
if (connection?.authorizationId) {
|
|
222
|
+
const attempt = await run({
|
|
223
|
+
action: "mcp.auth",
|
|
224
|
+
id: connection.authorizationId
|
|
225
|
+
});
|
|
226
|
+
if (attempt) await auth(attempt);
|
|
227
|
+
}
|
|
228
|
+
} else {
|
|
229
|
+
const action = choice === "Prepare" ? "prepare" : choice === "Complete" ? "complete" : choice === "Authorize later" ? "defer" : "cancel";
|
|
230
|
+
if ((action === "complete" || action === "defer") && !await confirm(`Apply ${action} for plugin ${id}?`)) continue;
|
|
231
|
+
job = await run({
|
|
232
|
+
action: "plugin.setup",
|
|
233
|
+
id,
|
|
234
|
+
command: action === "complete" ? {
|
|
235
|
+
action,
|
|
236
|
+
...base,
|
|
237
|
+
allowPartial: false
|
|
238
|
+
} : {
|
|
239
|
+
action,
|
|
240
|
+
...base
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
if (action === "cancel" || action === "defer") break;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
view("Plugin setup", job);
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
//#endregion
|
|
250
|
+
export { createCapabilityControls };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ClarificationPresentation, type ClarificationResponseCommand } from '@xopcai/gateway-contract';
|
|
2
|
+
export type TuiClarification = ClarificationPresentation & {
|
|
3
|
+
id: string;
|
|
4
|
+
conversationId: string;
|
|
5
|
+
version: number;
|
|
6
|
+
kind: 'input' | 'approval';
|
|
7
|
+
question: string;
|
|
8
|
+
expiresAt?: number;
|
|
9
|
+
};
|
|
10
|
+
export interface TuiClarificationDialogs {
|
|
11
|
+
choose(title: string, options: string[]): Promise<string | undefined>;
|
|
12
|
+
input(title: string): Promise<string | undefined>;
|
|
13
|
+
}
|
|
14
|
+
/** Collect structured answers; plain chat and steering never grant approval. */
|
|
15
|
+
export declare function collectTuiClarification(request: TuiClarification, dialogs: TuiClarificationDialogs): Promise<ClarificationResponseCommand>;
|