@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
|
@@ -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 { ExportFormat } from '../../session/types.js';
|
|
2
9
|
import type { SessionTimelineItem } from '../../session/transcript-outline.js';
|
|
3
10
|
import type { ChatSendOptions, HistoryMessage, TuiBackend, TuiCompactionResult, TuiChatInputState, TuiComposerHistoryItem, TuiEvent, TuiModelChoice, TuiShareRequest, TuiShareResult, TuiSessionStats, TuiSessionItem, TuiStartupResources, TuiTranscriptTreeEntry, TuiAgentInfo, TuiWorkspaceFileSearchEntry, TuiStartupProjectResult } from '../tui-backend.js';
|
|
@@ -121,7 +128,39 @@ export declare class GatewayRealtimeBackend implements TuiBackend {
|
|
|
121
128
|
loadTranscriptTree(conversationId: string): Promise<TuiTranscriptTreeEntry[]>;
|
|
122
129
|
loadTimeline(conversationId: string): Promise<SessionTimelineItem[]>;
|
|
123
130
|
getSessionStats(conversationId: string): Promise<TuiSessionStats>;
|
|
124
|
-
|
|
131
|
+
getClarification(conversationId: string): Promise<TuiClarification | null>;
|
|
132
|
+
submitClarification(_conversationId: string, requestId: string, command: ClarificationResponseCommand): Promise<void>;
|
|
133
|
+
private controlRequest;
|
|
134
|
+
manageCapability(conversationId: string, command: TuiManagementCommand): Promise<unknown>;
|
|
135
|
+
listCapabilities(conversationId: string, kind: TuiCapabilityKind): Promise<TuiCapability[]>;
|
|
136
|
+
listSubagents(conversationId: string): Promise<ChildRunView[]>;
|
|
137
|
+
getSubagent(conversationId: string, id: string): Promise<ChildRunView>;
|
|
138
|
+
steerSubagent(conversationId: string, id: string, text: string): Promise<void>;
|
|
139
|
+
resumeSubagent(conversationId: string, id: string, text: string): Promise<void>;
|
|
140
|
+
getSubagentTranscript(conversationId: string, id: string): Promise<string>;
|
|
141
|
+
stopSubagent(conversationId: string, id: string): Promise<void>;
|
|
142
|
+
getInteractionPolicy(conversationId: string): Promise<{
|
|
143
|
+
mode: "default" | "plan";
|
|
144
|
+
access: "read-only" | "configured";
|
|
145
|
+
sandbox?: "workspace-write" | "unrestricted";
|
|
146
|
+
network?: boolean;
|
|
147
|
+
}>;
|
|
148
|
+
setInteractionPolicy(conversationId: string, policy: SessionInteractionPolicy): Promise<{
|
|
149
|
+
mode: "default" | "plan";
|
|
150
|
+
access: "read-only" | "configured";
|
|
151
|
+
sandbox?: "workspace-write" | "unrestricted";
|
|
152
|
+
network?: boolean;
|
|
153
|
+
}>;
|
|
154
|
+
getWorkspaceDiff(conversationId: string): Promise<string>;
|
|
155
|
+
searchHistory(conversationId: string, query: string): Promise<TuiHistoryMatch[]>;
|
|
156
|
+
listJobs(conversationId: string): Promise<TuiJob[]>;
|
|
157
|
+
getJob(conversationId: string, id: string): Promise<TuiJob>;
|
|
158
|
+
resizeJob(conversationId: string, id: string, cols: number, rows: number): Promise<void>;
|
|
159
|
+
stopJob(conversationId: string, id: string): Promise<void>;
|
|
160
|
+
writeJob(conversationId: string, id: string, text: string): Promise<void>;
|
|
161
|
+
listSessions(options?: {
|
|
162
|
+
archived?: boolean;
|
|
163
|
+
}): Promise<TuiSessionItem[]>;
|
|
125
164
|
listAgents(): Promise<TuiAgentInfo[]>;
|
|
126
165
|
setTuiDefaultAgent(agentId: string): Promise<{
|
|
127
166
|
agentId: string;
|
|
@@ -142,7 +181,10 @@ export declare class GatewayRealtimeBackend implements TuiBackend {
|
|
|
142
181
|
createShare(conversationId: string, request: TuiShareRequest, options?: {
|
|
143
182
|
agentId?: string;
|
|
144
183
|
}): Promise<TuiShareResult>;
|
|
145
|
-
|
|
184
|
+
sideQuery(conversationId: string, question: string, options?: {
|
|
185
|
+
signal?: AbortSignal;
|
|
186
|
+
onDelta?: (text: string) => void;
|
|
187
|
+
}): Promise<{
|
|
146
188
|
text: string;
|
|
147
189
|
error?: string;
|
|
148
190
|
}>;
|
|
@@ -183,6 +225,8 @@ export declare class GatewayRealtimeBackend implements TuiBackend {
|
|
|
183
225
|
renameSession(conversationId: string, name: string): Promise<{
|
|
184
226
|
ok: boolean;
|
|
185
227
|
}>;
|
|
228
|
+
restoreSession(conversationId: string): Promise<void>;
|
|
229
|
+
archiveSession(conversationId: string): Promise<void>;
|
|
186
230
|
deleteSession(conversationId: string): Promise<{
|
|
187
231
|
ok: boolean;
|
|
188
232
|
}>;
|
|
@@ -5,7 +5,6 @@ import { sessionInputCommandSchema } from "../../../packages/gateway-contract/sr
|
|
|
5
5
|
import { isSessionCommandRejected } from "../../../packages/gateway-contract/src/session-command-rejection.js";
|
|
6
6
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
7
7
|
import { init_paths } from "../../config/paths.js";
|
|
8
|
-
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
9
8
|
import { parseModelRef } from "../../agent/models/selection.js";
|
|
10
9
|
import { RealtimeClient } from "../../../packages/realtime-client/src/index.js";
|
|
11
10
|
import { gatewayCredentialAuthorization } from "../../gateway/credential.js";
|
|
@@ -16,8 +15,8 @@ import { join } from "node:path";
|
|
|
16
15
|
import crypto from "node:crypto";
|
|
17
16
|
import { mkdir, readFile, readdir, rename, unlink, writeFile } from "node:fs/promises";
|
|
18
17
|
//#region src/tui/backends/gateway-realtime-backend.ts
|
|
19
|
-
init_paths();
|
|
20
18
|
init_src();
|
|
19
|
+
init_paths();
|
|
21
20
|
init_logger();
|
|
22
21
|
const log = createLogger("TUI:GatewayRealtime");
|
|
23
22
|
const { WebSocket } = createRequire(import.meta.url)("ws");
|
|
@@ -30,18 +29,28 @@ function normalizeGatewayModelChoice(model) {
|
|
|
30
29
|
};
|
|
31
30
|
}
|
|
32
31
|
/** Fetch wrapper that adds auth headers. */
|
|
33
|
-
async function gatewayFetch(baseUrl, path, credential, init) {
|
|
32
|
+
async function gatewayFetch(baseUrl, path, credential, init, timeoutMs = 3e4) {
|
|
34
33
|
const authorization = gatewayCredentialAuthorization(credential);
|
|
35
34
|
const headers = {
|
|
36
35
|
"Content-Type": "application/json",
|
|
37
36
|
...authorization ? { Authorization: authorization } : {},
|
|
38
37
|
...init?.headers
|
|
39
38
|
};
|
|
39
|
+
const timeout = AbortSignal.timeout(timeoutMs);
|
|
40
|
+
const signal = init?.signal ? AbortSignal.any([init.signal, timeout]) : timeout;
|
|
40
41
|
return fetch(`${baseUrl}${path}`, {
|
|
41
42
|
...init,
|
|
42
|
-
headers
|
|
43
|
+
headers,
|
|
44
|
+
signal
|
|
43
45
|
});
|
|
44
46
|
}
|
|
47
|
+
async function requireGatewayResponse(response, operation) {
|
|
48
|
+
if (response.ok) return;
|
|
49
|
+
const body = await response.json().catch(() => null);
|
|
50
|
+
const message = typeof body?.error === "string" ? body.error : body?.error?.message;
|
|
51
|
+
const reason = response.status === 401 || response.status === 403 ? "Gateway authentication or permission denied" : operation;
|
|
52
|
+
throw new Error(`${reason} (${response.status})${message ? `: ${message}` : ""}`);
|
|
53
|
+
}
|
|
45
54
|
/**
|
|
46
55
|
* TUI backend that communicates with a running xopc gateway via REST + realtime WebSocket.
|
|
47
56
|
*
|
|
@@ -311,17 +320,17 @@ var GatewayRealtimeBackend = class {
|
|
|
311
320
|
return { ok: true };
|
|
312
321
|
}
|
|
313
322
|
async abortChat(opts) {
|
|
323
|
+
const res = await gatewayFetch(this.baseUrl, "/api/agent/abort", this.credential, {
|
|
324
|
+
method: "POST",
|
|
325
|
+
body: JSON.stringify({ runId: opts.runId })
|
|
326
|
+
});
|
|
327
|
+
await requireGatewayResponse(res, "Stop request failed");
|
|
328
|
+
const json = await res.json();
|
|
329
|
+
if (json.ok !== true || !json.payload?.aborted && !json.payload?.idle) return { ok: false };
|
|
314
330
|
this.chatAbort?.abort();
|
|
315
331
|
this.chatAbort = null;
|
|
316
332
|
this.unsubscribeActiveRun();
|
|
317
|
-
|
|
318
|
-
return { ok: (await (await gatewayFetch(this.baseUrl, "/api/agent/abort", this.credential, {
|
|
319
|
-
method: "POST",
|
|
320
|
-
body: JSON.stringify({ runId: opts.runId })
|
|
321
|
-
})).json()).ok ?? false };
|
|
322
|
-
} catch {
|
|
323
|
-
return { ok: false };
|
|
324
|
-
}
|
|
333
|
+
return { ok: true };
|
|
325
334
|
}
|
|
326
335
|
async submitChatInput(opts) {
|
|
327
336
|
this.observedConversationId = opts.conversationId;
|
|
@@ -409,19 +418,13 @@ var GatewayRealtimeBackend = class {
|
|
|
409
418
|
async loadHistory(opts) {
|
|
410
419
|
await this.reconcileInput(opts.conversationId);
|
|
411
420
|
if (this.drafts.has(opts.conversationId)) return { messages: [] };
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
log.warn({
|
|
420
|
-
err: error,
|
|
421
|
-
errorMessage
|
|
422
|
-
}, `Failed to load history: ${errorMessage}`);
|
|
423
|
-
return { messages: [] };
|
|
424
|
-
}
|
|
421
|
+
const limit = Math.min(2e3, Math.max(1, Math.trunc(opts.limit ?? 200)));
|
|
422
|
+
return { messages: (await this.loadHistoryWindow({
|
|
423
|
+
conversationId: opts.conversationId,
|
|
424
|
+
rowNumber: Number.MAX_SAFE_INTEGER,
|
|
425
|
+
before: limit - 1,
|
|
426
|
+
after: 0
|
|
427
|
+
})).messages };
|
|
425
428
|
}
|
|
426
429
|
async loadHistoryWindow(opts) {
|
|
427
430
|
const params = new URLSearchParams({
|
|
@@ -431,12 +434,7 @@ var GatewayRealtimeBackend = class {
|
|
|
431
434
|
});
|
|
432
435
|
try {
|
|
433
436
|
const res = await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(opts.conversationId)}/transcript/window?${params.toString()}`, this.credential);
|
|
434
|
-
|
|
435
|
-
messages: [],
|
|
436
|
-
startRowNumber: 0,
|
|
437
|
-
endRowNumber: 0,
|
|
438
|
-
totalRows: 0
|
|
439
|
-
};
|
|
437
|
+
await requireGatewayResponse(res, "History window load failed");
|
|
440
438
|
const payload = (await res.json()).payload ?? {};
|
|
441
439
|
return {
|
|
442
440
|
messages: Array.isArray(payload.messages) ? payload.messages : [],
|
|
@@ -452,18 +450,13 @@ var GatewayRealtimeBackend = class {
|
|
|
452
450
|
rowNumber: opts.rowNumber,
|
|
453
451
|
errorMessage
|
|
454
452
|
}, `Failed to load history window: ${errorMessage}`);
|
|
455
|
-
|
|
456
|
-
messages: [],
|
|
457
|
-
startRowNumber: 0,
|
|
458
|
-
endRowNumber: 0,
|
|
459
|
-
totalRows: 0
|
|
460
|
-
};
|
|
453
|
+
throw error;
|
|
461
454
|
}
|
|
462
455
|
}
|
|
463
456
|
async loadTranscriptTree(conversationId) {
|
|
464
457
|
try {
|
|
465
458
|
const res = await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(conversationId)}?include=transcriptRows`, this.credential);
|
|
466
|
-
|
|
459
|
+
await requireGatewayResponse(res, "Transcript tree load failed");
|
|
467
460
|
const json = await res.json();
|
|
468
461
|
return buildTuiTranscriptTree(Array.isArray(json.session?.transcriptRows) ? json.session.transcriptRows : []);
|
|
469
462
|
} catch (error) {
|
|
@@ -473,13 +466,13 @@ var GatewayRealtimeBackend = class {
|
|
|
473
466
|
conversationId,
|
|
474
467
|
errorMessage
|
|
475
468
|
}, `Failed to load transcript tree: ${errorMessage}`);
|
|
476
|
-
|
|
469
|
+
throw error;
|
|
477
470
|
}
|
|
478
471
|
}
|
|
479
472
|
async loadTimeline(conversationId) {
|
|
480
473
|
try {
|
|
481
474
|
const res = await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(conversationId)}/timeline`, this.credential);
|
|
482
|
-
|
|
475
|
+
await requireGatewayResponse(res, "Timeline load failed");
|
|
483
476
|
const json = await res.json();
|
|
484
477
|
return Array.isArray(json.items) ? json.items : [];
|
|
485
478
|
} catch (error) {
|
|
@@ -489,13 +482,13 @@ var GatewayRealtimeBackend = class {
|
|
|
489
482
|
conversationId,
|
|
490
483
|
errorMessage
|
|
491
484
|
}, `Failed to load timeline: ${errorMessage}`);
|
|
492
|
-
|
|
485
|
+
throw error;
|
|
493
486
|
}
|
|
494
487
|
}
|
|
495
488
|
async getSessionStats(conversationId) {
|
|
496
489
|
try {
|
|
497
490
|
const res = await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(conversationId)}?include=transcriptRows`, this.credential);
|
|
498
|
-
|
|
491
|
+
await requireGatewayResponse(res, "Session statistics load failed");
|
|
499
492
|
const json = await res.json();
|
|
500
493
|
return computeTuiSessionStats(Array.isArray(json.session?.transcriptRows) ? json.session.transcriptRows : []);
|
|
501
494
|
} catch (error) {
|
|
@@ -505,13 +498,113 @@ var GatewayRealtimeBackend = class {
|
|
|
505
498
|
conversationId,
|
|
506
499
|
errorMessage
|
|
507
500
|
}, `Failed to load session stats: ${errorMessage}`);
|
|
508
|
-
|
|
501
|
+
throw error;
|
|
509
502
|
}
|
|
510
503
|
}
|
|
511
|
-
async
|
|
504
|
+
async getClarification(conversationId) {
|
|
505
|
+
if (this.drafts.has(conversationId)) return null;
|
|
506
|
+
const res = await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(conversationId)}/clarification`, this.credential);
|
|
507
|
+
await requireGatewayResponse(res, "Question recovery failed");
|
|
508
|
+
const { payload } = await res.json();
|
|
509
|
+
const wait = payload.clarification;
|
|
510
|
+
return wait?.status === "open" ? wait : null;
|
|
511
|
+
}
|
|
512
|
+
async submitClarification(_conversationId, requestId, command) {
|
|
513
|
+
await requireGatewayResponse(await gatewayFetch(this.baseUrl, `/api/clarifications/${encodeURIComponent(requestId)}/responses`, this.credential, {
|
|
514
|
+
method: "POST",
|
|
515
|
+
body: JSON.stringify(command)
|
|
516
|
+
}), "Question response failed");
|
|
517
|
+
}
|
|
518
|
+
async controlRequest(conversationId, action, body) {
|
|
519
|
+
const res = await gatewayFetch(this.baseUrl, `/api/tui/sessions/${encodeURIComponent(conversationId)}/${action}`, this.credential, body === void 0 ? void 0 : {
|
|
520
|
+
method: "POST",
|
|
521
|
+
body: JSON.stringify(body)
|
|
522
|
+
});
|
|
523
|
+
await requireGatewayResponse(res, "Session control failed");
|
|
524
|
+
return (await res.json()).payload;
|
|
525
|
+
}
|
|
526
|
+
async manageCapability(conversationId, command) {
|
|
527
|
+
const draft = this.drafts.get(conversationId);
|
|
528
|
+
const params = new URLSearchParams(draft ? {
|
|
529
|
+
agentId: draft.agentId,
|
|
530
|
+
...draft.projectId ? { projectId: draft.projectId } : {}
|
|
531
|
+
} : { conversationId });
|
|
532
|
+
const res = await gatewayFetch(this.baseUrl, `/api/tui/manage?${params}`, this.credential, {
|
|
533
|
+
method: "POST",
|
|
534
|
+
body: JSON.stringify(command)
|
|
535
|
+
});
|
|
536
|
+
await requireGatewayResponse(res, "Capability action failed");
|
|
537
|
+
return (await res.json()).payload;
|
|
538
|
+
}
|
|
539
|
+
async listCapabilities(conversationId, kind) {
|
|
540
|
+
const draft = this.drafts.get(conversationId);
|
|
541
|
+
const params = new URLSearchParams(draft ? {
|
|
542
|
+
agentId: draft.agentId,
|
|
543
|
+
...draft.projectId ? { projectId: draft.projectId } : {}
|
|
544
|
+
} : { conversationId });
|
|
545
|
+
const res = await gatewayFetch(this.baseUrl, `/api/tui/capabilities/${kind}?${params}`, this.credential);
|
|
546
|
+
await requireGatewayResponse(res, "Capability inventory failed");
|
|
547
|
+
return (await res.json()).payload;
|
|
548
|
+
}
|
|
549
|
+
async listSubagents(conversationId) {
|
|
550
|
+
return this.controlRequest(conversationId, "subagents");
|
|
551
|
+
}
|
|
552
|
+
async getSubagent(conversationId, id) {
|
|
553
|
+
return this.controlRequest(conversationId, `subagents/${encodeURIComponent(id)}`);
|
|
554
|
+
}
|
|
555
|
+
async steerSubagent(conversationId, id, text) {
|
|
556
|
+
await this.controlRequest(conversationId, `subagents/${encodeURIComponent(id)}/steer`, { text });
|
|
557
|
+
}
|
|
558
|
+
async resumeSubagent(conversationId, id, text) {
|
|
559
|
+
await this.controlRequest(conversationId, `subagents/${encodeURIComponent(id)}/resume`, { text });
|
|
560
|
+
}
|
|
561
|
+
async getSubagentTranscript(conversationId, id) {
|
|
562
|
+
return this.controlRequest(conversationId, `subagents/${encodeURIComponent(id)}/transcript`);
|
|
563
|
+
}
|
|
564
|
+
async stopSubagent(conversationId, id) {
|
|
565
|
+
await this.controlRequest(conversationId, `subagents/${encodeURIComponent(id)}/stop`, {});
|
|
566
|
+
}
|
|
567
|
+
async getInteractionPolicy(conversationId) {
|
|
568
|
+
return this.controlRequest(conversationId, "policy");
|
|
569
|
+
}
|
|
570
|
+
async setInteractionPolicy(conversationId, policy) {
|
|
571
|
+
return this.controlRequest(conversationId, "policy", policy);
|
|
572
|
+
}
|
|
573
|
+
async getWorkspaceDiff(conversationId) {
|
|
574
|
+
const draft = this.drafts.get(conversationId);
|
|
575
|
+
const params = new URLSearchParams(draft ? {
|
|
576
|
+
agentId: draft.agentId,
|
|
577
|
+
...draft.projectId ? { projectId: draft.projectId } : {}
|
|
578
|
+
} : { conversationId });
|
|
579
|
+
const res = await gatewayFetch(this.baseUrl, `/api/tui/diff?${params}`, this.credential);
|
|
580
|
+
await requireGatewayResponse(res, "Workspace diff failed");
|
|
581
|
+
return (await res.json()).payload;
|
|
582
|
+
}
|
|
583
|
+
async searchHistory(conversationId, query) {
|
|
584
|
+
return this.controlRequest(conversationId, "search", { query });
|
|
585
|
+
}
|
|
586
|
+
async listJobs(conversationId) {
|
|
587
|
+
return this.controlRequest(conversationId, "jobs");
|
|
588
|
+
}
|
|
589
|
+
async getJob(conversationId, id) {
|
|
590
|
+
return this.controlRequest(conversationId, `jobs/${encodeURIComponent(id)}`);
|
|
591
|
+
}
|
|
592
|
+
async resizeJob(conversationId, id, cols, rows) {
|
|
593
|
+
await this.controlRequest(conversationId, `jobs/${encodeURIComponent(id)}/resize`, {
|
|
594
|
+
cols,
|
|
595
|
+
rows
|
|
596
|
+
});
|
|
597
|
+
}
|
|
598
|
+
async stopJob(conversationId, id) {
|
|
599
|
+
await this.controlRequest(conversationId, `jobs/${encodeURIComponent(id)}/stop`, {});
|
|
600
|
+
}
|
|
601
|
+
async writeJob(conversationId, id, text) {
|
|
602
|
+
await this.controlRequest(conversationId, `jobs/${encodeURIComponent(id)}/stdin`, { text });
|
|
603
|
+
}
|
|
604
|
+
async listSessions(options) {
|
|
512
605
|
try {
|
|
513
|
-
const res = await gatewayFetch(this.baseUrl, "/api/sessions", this.credential);
|
|
514
|
-
|
|
606
|
+
const res = await gatewayFetch(this.baseUrl, options?.archived ? "/api/sessions?status=archived" : "/api/sessions?excludeArchived=true", this.credential);
|
|
607
|
+
await requireGatewayResponse(res, "Session list load failed");
|
|
515
608
|
return ((await res.json()).items ?? []).map((s) => ({
|
|
516
609
|
key: s.key,
|
|
517
610
|
agentId: s.agentId,
|
|
@@ -524,8 +617,8 @@ var GatewayRealtimeBackend = class {
|
|
|
524
617
|
forkedFromConversationId: typeof s.customData?.forkedFromConversationId === "string" ? s.customData.forkedFromConversationId : void 0,
|
|
525
618
|
cwd: typeof s.cwd === "string" ? s.cwd : void 0
|
|
526
619
|
}));
|
|
527
|
-
} catch {
|
|
528
|
-
|
|
620
|
+
} catch (error) {
|
|
621
|
+
throw error;
|
|
529
622
|
}
|
|
530
623
|
}
|
|
531
624
|
async listAgents() {
|
|
@@ -593,6 +686,8 @@ var GatewayRealtimeBackend = class {
|
|
|
593
686
|
try {
|
|
594
687
|
const sessionPath = `/api/sessions/${encodeURIComponent(conversationId)}`;
|
|
595
688
|
const [sessionRes, agentCfgRes] = await Promise.all([gatewayFetch(this.baseUrl, sessionPath, this.credential), gatewayFetch(this.baseUrl, `${sessionPath}/agent-config`, this.credential)]);
|
|
689
|
+
await requireGatewayResponse(sessionRes, "Session information load failed");
|
|
690
|
+
await requireGatewayResponse(agentCfgRes, "Session configuration load failed");
|
|
596
691
|
let session;
|
|
597
692
|
if (sessionRes.ok) {
|
|
598
693
|
session = (await sessionRes.json()).session;
|
|
@@ -636,21 +731,21 @@ var GatewayRealtimeBackend = class {
|
|
|
636
731
|
out.contextUsagePercent = contextWindow > 0 ? Math.min(100, Math.round(out.totalTokens / contextWindow * 100)) : null;
|
|
637
732
|
}
|
|
638
733
|
return out;
|
|
639
|
-
} catch {
|
|
640
|
-
|
|
734
|
+
} catch (error) {
|
|
735
|
+
throw error;
|
|
641
736
|
}
|
|
642
737
|
}
|
|
643
738
|
async listModels() {
|
|
644
739
|
try {
|
|
645
740
|
const res = await gatewayFetch(this.baseUrl, "/api/models", this.credential);
|
|
646
|
-
|
|
741
|
+
await requireGatewayResponse(res, "Model list load failed");
|
|
647
742
|
return ((await res.json()).payload?.models ?? []).map(normalizeGatewayModelChoice);
|
|
648
|
-
} catch {
|
|
649
|
-
|
|
743
|
+
} catch (error) {
|
|
744
|
+
throw error;
|
|
650
745
|
}
|
|
651
746
|
}
|
|
652
747
|
async resetSession(conversationId) {
|
|
653
|
-
await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(conversationId)}/reset`, this.credential, { method: "POST" })
|
|
748
|
+
await requireGatewayResponse(await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(conversationId)}/reset`, this.credential, { method: "POST" }), "Session reset failed");
|
|
654
749
|
}
|
|
655
750
|
async compactSession(conversationId, options) {
|
|
656
751
|
try {
|
|
@@ -685,6 +780,8 @@ var GatewayRealtimeBackend = class {
|
|
|
685
780
|
}
|
|
686
781
|
}
|
|
687
782
|
async exportSession(conversationId, format) {
|
|
783
|
+
await this.reconcileInput(conversationId);
|
|
784
|
+
if (this.drafts.has(conversationId)) throw new Error("This conversation is an unsent draft; there is no persisted transcript yet.");
|
|
688
785
|
const params = new URLSearchParams({ format });
|
|
689
786
|
const res = await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(conversationId)}/export?${params.toString()}`, this.credential);
|
|
690
787
|
if (!res.ok) throw new Error(`Export failed (${res.status})`);
|
|
@@ -735,16 +832,48 @@ var GatewayRealtimeBackend = class {
|
|
|
735
832
|
routingHint: json.payload.routing?.hint
|
|
736
833
|
};
|
|
737
834
|
}
|
|
738
|
-
async
|
|
739
|
-
const
|
|
835
|
+
async sideQuery(conversationId, question, options) {
|
|
836
|
+
const draft = this.drafts.get(conversationId);
|
|
837
|
+
const res = await gatewayFetch(this.baseUrl, "/api/tui/side", this.credential, {
|
|
740
838
|
method: "POST",
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
839
|
+
signal: options?.signal,
|
|
840
|
+
body: JSON.stringify({
|
|
841
|
+
conversationId,
|
|
842
|
+
question,
|
|
843
|
+
...draft ? { agentId: draft.agentId } : {}
|
|
844
|
+
})
|
|
845
|
+
}, 95e3);
|
|
846
|
+
await requireGatewayResponse(res, "Side chat failed");
|
|
847
|
+
const reader = res.body?.getReader();
|
|
848
|
+
if (!reader) throw new Error("Side chat stream is unavailable");
|
|
849
|
+
const decoder = new TextDecoder();
|
|
850
|
+
let pending = "", result;
|
|
851
|
+
const consume = (line) => {
|
|
852
|
+
if (!line.trim()) return;
|
|
853
|
+
const event = JSON.parse(line);
|
|
854
|
+
if (typeof event.delta === "string") options?.onDelta?.(event.delta);
|
|
855
|
+
if (event.result) result = event.result;
|
|
746
856
|
};
|
|
747
|
-
|
|
857
|
+
try {
|
|
858
|
+
for (;;) {
|
|
859
|
+
const chunk = await reader.read();
|
|
860
|
+
if (chunk.done) break;
|
|
861
|
+
pending += decoder.decode(chunk.value, { stream: true });
|
|
862
|
+
if (pending.length > 2e6) throw new Error("Side stream record exceeds the size limit");
|
|
863
|
+
let newline;
|
|
864
|
+
while ((newline = pending.indexOf("\n")) >= 0) {
|
|
865
|
+
consume(pending.slice(0, newline));
|
|
866
|
+
pending = pending.slice(newline + 1);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
pending += decoder.decode();
|
|
870
|
+
if (pending.trim()) consume(pending);
|
|
871
|
+
} finally {
|
|
872
|
+
await reader.cancel().catch(() => {});
|
|
873
|
+
reader.releaseLock();
|
|
874
|
+
}
|
|
875
|
+
if (!result) throw new Error("Side chat connection ended before completion");
|
|
876
|
+
return result;
|
|
748
877
|
}
|
|
749
878
|
async forkSession(sourceConversationId, targetConversationId) {
|
|
750
879
|
const res = await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(sourceConversationId)}/fork`, this.credential, {
|
|
@@ -879,6 +1008,20 @@ var GatewayRealtimeBackend = class {
|
|
|
879
1008
|
return { ok: false };
|
|
880
1009
|
}
|
|
881
1010
|
}
|
|
1011
|
+
async restoreSession(conversationId) {
|
|
1012
|
+
const response = await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(conversationId)}/unarchive`, this.credential, {
|
|
1013
|
+
method: "POST",
|
|
1014
|
+
body: "{}"
|
|
1015
|
+
});
|
|
1016
|
+
await requireGatewayResponse(response, "Restore failed");
|
|
1017
|
+
if (!(await response.json()).unarchived) throw new Error("Restore was not confirmed");
|
|
1018
|
+
}
|
|
1019
|
+
async archiveSession(conversationId) {
|
|
1020
|
+
if (this.drafts.has(conversationId)) throw new Error("Only saved conversations can be archived.");
|
|
1021
|
+
const res = await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(conversationId)}/archive`, this.credential, { method: "POST" });
|
|
1022
|
+
await requireGatewayResponse(res, "Archive failed");
|
|
1023
|
+
if (!(await res.json()).archived) throw new Error("Archive was not confirmed.");
|
|
1024
|
+
}
|
|
882
1025
|
async deleteSession(conversationId) {
|
|
883
1026
|
try {
|
|
884
1027
|
const res = await gatewayFetch(this.baseUrl, `/api/sessions/${encodeURIComponent(conversationId)}`, this.credential, { method: "DELETE" });
|
|
@@ -43,6 +43,7 @@ var ChatLog = class extends Container {
|
|
|
43
43
|
lastStatusEntry = null;
|
|
44
44
|
lastStatusText = null;
|
|
45
45
|
entryRecords = [];
|
|
46
|
+
entryByComponent = /* @__PURE__ */ new Map();
|
|
46
47
|
viewportRowsProvider;
|
|
47
48
|
historyViewDisplayIndex = null;
|
|
48
49
|
renderMode = "compact";
|
|
@@ -56,10 +57,14 @@ var ChatLog = class extends Container {
|
|
|
56
57
|
append(component, meta, lifecycle = "committed") {
|
|
57
58
|
this.addChild(component);
|
|
58
59
|
(lifecycle === "active" ? this.activeCells : this.committedCells).add(component);
|
|
59
|
-
if (meta)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
if (meta) {
|
|
61
|
+
const record = {
|
|
62
|
+
component,
|
|
63
|
+
...meta
|
|
64
|
+
};
|
|
65
|
+
this.entryRecords.push(record);
|
|
66
|
+
this.entryByComponent.set(component, record);
|
|
67
|
+
}
|
|
63
68
|
this.applyRenderMode(component);
|
|
64
69
|
}
|
|
65
70
|
clearAll() {
|
|
@@ -79,6 +84,7 @@ var ChatLog = class extends Container {
|
|
|
79
84
|
this.lastStatusEntry = null;
|
|
80
85
|
this.lastStatusText = null;
|
|
81
86
|
this.entryRecords = [];
|
|
87
|
+
this.entryByComponent.clear();
|
|
82
88
|
this.historyViewDisplayIndex = null;
|
|
83
89
|
this.activeCells.clear();
|
|
84
90
|
this.committedCells.clear();
|
|
@@ -336,7 +342,7 @@ var ChatLog = class extends Container {
|
|
|
336
342
|
const start = allLines.length;
|
|
337
343
|
const childLines = child.render(width);
|
|
338
344
|
allLines.push(...childLines);
|
|
339
|
-
const record = this.
|
|
345
|
+
const record = this.entryByComponent.get(child);
|
|
340
346
|
if (record) ranges.push({
|
|
341
347
|
record,
|
|
342
348
|
start,
|
|
@@ -59,7 +59,7 @@ var ScopedModelsSelector = class {
|
|
|
59
59
|
return `Space toggle · ${provider} provider · ${all} all · ${clear} clear · ${up}/${down} reorder · ${formatKeyIds(this.keybindings, "tui.select.confirm", { capitalize: true })}/${save} save · ${formatKeyIds(this.keybindings, "tui.select.cancel", { capitalize: true })} cancel`;
|
|
60
60
|
}
|
|
61
61
|
matchesAction(keyData, action, aliases = []) {
|
|
62
|
-
if (this.keybindings
|
|
62
|
+
if (this.keybindings) return this.keybindings.matches(keyData, action);
|
|
63
63
|
return aliases.some((key) => keyData === key || matchesKey(keyData, key));
|
|
64
64
|
}
|
|
65
65
|
refreshItems() {
|
|
@@ -177,7 +177,7 @@ var SessionSelector = class {
|
|
|
177
177
|
this.footer.setText(theme.dim(`Enter resume · Tab scope (${scope}) · Ctrl+R rename · Ctrl+D delete · Ctrl+S sort (${sort}) · Ctrl+N filter (${nameFilter}) · Ctrl+P path (${keyState}) · Esc cancel`));
|
|
178
178
|
}
|
|
179
179
|
matchesAction(keyData, action, aliases = []) {
|
|
180
|
-
if (this.keybindings
|
|
180
|
+
if (this.keybindings) return this.keybindings.matches(keyData, action);
|
|
181
181
|
return aliases.some((key) => keyData === key || matchesKey(keyData, key));
|
|
182
182
|
}
|
|
183
183
|
renameConfirmKeyHint() {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type Component, type Focusable, type KeybindingsManager } from '@earendil-works/pi-tui';
|
|
2
|
+
/** Bounded, keyboard-scrollable output; content never becomes a model prompt. */
|
|
3
|
+
export declare class TextViewer implements Component, Focusable {
|
|
4
|
+
private readonly title;
|
|
5
|
+
private readonly options;
|
|
6
|
+
focused: boolean;
|
|
7
|
+
private offset;
|
|
8
|
+
private readonly text;
|
|
9
|
+
private timer?;
|
|
10
|
+
private loading;
|
|
11
|
+
private disposed;
|
|
12
|
+
private prompt;
|
|
13
|
+
private input;
|
|
14
|
+
private query;
|
|
15
|
+
private rendered;
|
|
16
|
+
constructor(title: string, content: string, options: {
|
|
17
|
+
rows: () => number;
|
|
18
|
+
close: () => void;
|
|
19
|
+
render: () => void;
|
|
20
|
+
keybindings: KeybindingsManager;
|
|
21
|
+
load?: () => Promise<string>;
|
|
22
|
+
reply?: () => void;
|
|
23
|
+
onDispose?: () => void;
|
|
24
|
+
intervalMs?: number;
|
|
25
|
+
});
|
|
26
|
+
private preview;
|
|
27
|
+
private reload;
|
|
28
|
+
dispose(): void;
|
|
29
|
+
invalidate(): void;
|
|
30
|
+
render(width: number): string[];
|
|
31
|
+
handleInput(data: string): void;
|
|
32
|
+
}
|