@xopcai/xopc 0.0.451 → 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-OMq1GnqB.js → activity-store-DYwR1u3f.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CIoE-FJR.js → agent-avatar-dicebear-CsRBprL-.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-kPb6idGG.js → agent-avatar-display-DqFYHXCS.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-vKUDGEU6.js → agent-defaults-settings-panel-DOAJrMLe.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-x7guoCvz.js → agent-plugin-dialog-vqlN3ORH.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-BbwFcl87.js → agents-BgHlOVRV.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-tXB8Aj5K.js → agents-admin-api-CKscfdvA.js} +1 -1
- package/dist/gateway/static/root/assets/api-CHM2c_Ah.js +1 -0
- package/dist/gateway/static/root/assets/{api-ixudT_21.js → api-DPNeNCmR.js} +1 -1
- package/dist/gateway/static/root/assets/{app-link-CdD448kS.js → app-link-DImAfVs5.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-nuDfyfZ5.js → app-management-settings-panel-Bhz6bj1C.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-D4oON26V.js → appearance-settings-BX32aogA.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-BM1BfXzo.js → apps-page-0Yo3jBsQ.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-mKjfC6Sk.js → archive-plugin-Bha8obMe.js} +1 -1
- package/dist/gateway/static/root/assets/arrow-up-right-T72JbQ1Q.js +1 -0
- package/dist/gateway/static/root/assets/{automation-api-C9pjryrT.js → automation-api-mn8ihWJ_.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-uvg7Bi2x.js → automation-result-state-COzakzak.js} +1 -1
- package/dist/gateway/static/root/assets/automation-run-list-BhtaMpTb.js +1 -0
- package/dist/gateway/static/root/assets/{automation-task-card-CXGC8afU.js → automation-task-card-BY_k6iWp.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-CwQg9dfM.js → automations-page-Dt_Z1UTT.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-DhLgFY2T.js → automations-workspace-BhHgruhH.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-BNPDM14i.js → binary-plugins-DUbrJFLU.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-De9UqmMT.js → block-editor-DW--pXAc.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-B0VB5umC.js → browser-settings-page-CDh6nxs9.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-Cp-rmFMM.js → capabilities-DKbXv8Ck.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-BtJB4u5C.js → capabilities-kG175Q-7.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-D1wQ2sPI.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BW5jQz5R.js +8 -0
- package/dist/gateway/static/root/assets/capability-navigation-QtHJxxW2.js +1 -0
- package/dist/gateway/static/root/assets/{channels-ZJORx-he.js → channels-BzZp42yO.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-CtuEaDG8.js → chat-agents-api-UOdNWZ0_.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-ShPQBlNE.js → chat-chart-block-NSy-B0NS.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-dY6aCCRx.js +71 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-CvDRfHAZ.js → chat-terminal-dock-CAaHWS7F.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-NJTvEF2b.js → command-palette-api-Dkn9bbYd.js} +1 -1
- package/dist/gateway/static/root/assets/composer-model-config-control-BrK8-SNz.js +1 -0
- package/dist/gateway/static/root/assets/{composer-notifications-BkezOy9Q.js → composer-notifications-B-kL3qAA.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-CEjJusbJ.js → composer-payload-handoff-DBE1mvOS.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-DG8bcw_s.js → computer-settings-page-C9KdEecx.js} +1 -1
- package/dist/gateway/static/root/assets/{confirm-dialog-D7dQJytv.js → confirm-dialog-DrA5mTQp.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-f55PDAbb.js → connection-usage-guide-CiVpcbds.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-Ca09FIBW.js → connector-service-page-B919cKSm.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-dai-YAdK.js → connectors-api-CgsSm-Av.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-CEpfDCLA.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-C70ICT7u.js → date-picker-dx284jQI.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-Czj5fnsJ.js → date-time-picker-Dj-bhLNP.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-Dq3OLpPg.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-q4mec6zt.js → desktop-pet-settings-CsmrvoxU.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-lXnKsRew.js → dev-view-store-BOxbj1ie.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-CbUX0iit.js → device-pairing-wizard-CAqFIFRC.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BRnwhemd.js → directory-picker-path-field-BxEw5OrT.js} +1 -1
- package/dist/gateway/static/root/assets/{discussion-annotation-sync-BnK6Ua7v.js → discussion-annotation-sync-CyntTwIa.js} +1 -1
- package/dist/gateway/static/root/assets/dist-CY7CS_D3.js +1 -0
- package/dist/gateway/static/root/assets/extension-authoritative-grants-C0ReZguU.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-Bp2BrJbB.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-tk93vJL_.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-CLZtAtqm.js +1 -0
- package/dist/gateway/static/root/assets/extension-provider-CbVokTvd.js +1 -0
- package/dist/gateway/static/root/assets/{extension-settings-page-BGcZIeHP.js → extension-settings-page-BM79cwUy.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-BK2_4mWy.js → file-preview-surface-z7_HV0WN.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-DsXilOaJ.js → gateway-config-swr-OGhON-s6.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-DopPmAMl.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-eozrXTm7.js → gateway-restart-DKAweWmg.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-DddUli-p.js → gateway-settings-Dc7qUbG-.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DMQI0ATo.js → gateway-startup-retry-BaaoKBoB.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-D7hk1zTj.js → global-defaults-api-BIr3ApRj.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-C8oVgxQg.js → home-page-i_PIrDCU.js} +2 -2
- package/dist/gateway/static/root/assets/{image-generation-api-BCbvDDH_.js → image-generation-api-C7D2IetZ.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-B9LF_2fO.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-CZI3VGGW.js +11 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-DT32t-66.js → install-connector-dialog-BsiyYQhx.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-DDwoBK8g.js → keyboard-shortcuts-settings-CIthQ1lp.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-CSCIHvZV.js +1 -0
- package/dist/gateway/static/root/assets/local-apps-DeqzkJiF.js +1 -0
- package/dist/gateway/static/root/assets/{local-apps-page-qzxr3c8Y.js → local-apps-page-EntiM0tz.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-BU3FXj_X.js → local-session-drafts-XurtjR58.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-DTUQ0JiK.js → locale-store-cg9cm2EL.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-rmS9VSem.js +2 -0
- package/dist/gateway/static/root/assets/{management-api-C6mCD0mZ.js → management-api-B6jVuJ6W.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-C4BKD-_b.js → management-settings-DdI9gs51.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-DHjn1-ML.js → markdown-view-D1zBWkfB.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-ClgMvru5.js → mcp-conversation-setup-page-Bn49Ph1n.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-8E2KZQym.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-CJY9LRsl.js → model-selector-CL6WT-jw.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-BTs8jhgq.js → models-hub-cache-s0FMNhq9.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-DiCfpcZd.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-BnaeXy22.js → notes-api-CR75RHd0.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-B_vTBmyx.js → notes-page-BsZmT7Zw.js} +2 -2
- package/dist/gateway/static/root/assets/{oauth-api-BZ67vxsq.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-TpjRHhUt.js → page-context-capture-button-BPtX67hZ.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-BbUpxlgV.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-CZSnrSfc.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-BSCNuRMT.js +1 -0
- package/dist/gateway/static/root/assets/personal-profile-settings-DJRDcK2c.js +1 -0
- package/dist/gateway/static/root/assets/personal-settings-panel-C6p25Noq.js +1 -0
- package/dist/gateway/static/root/assets/phone-DdhTnt6X.js +1 -0
- package/dist/gateway/static/root/assets/{phone-dependencies-card-ChRrViSc.js → phone-dependencies-card-DKkFFpqi.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-DmswEWqx.js → phone-model-connection-CRRHq4PQ.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-CvuOhQpk.js → phone-model-picker-CN_I0-46.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-2hZ68I47.js → phone-settings-page-CkdSOA7D.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-BMvxfZ3g.js → phone-workspace-store-CC61pIuJ.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-qvdi41L2.js → plugin-details-dialog-Bqz4jT53.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-RDatqlhG.js → preference-select-fields-DHeNbAvn.js} +1 -1
- package/dist/gateway/static/root/assets/{product-automation-feedback-Bj9ZsasT.js → product-automation-feedback-BN2HTA9T.js} +1 -1
- package/dist/gateway/static/root/assets/{product-delivery-DRyD9_Xq.js → product-delivery-BFfqdKLe.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-CzXmn2MX.js → product-open-page-B-j4gpLD.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-Beg0t4GW.js → product-preview-content-EqrTk7kU.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-5ulFfVzf.js → product-preview-modal-aurFBFq4.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-8bnYqXLJ.js → project-detail-page-ibZZ_w51.js} +2 -2
- package/dist/gateway/static/root/assets/{project-understanding-CXf7wjwt.js → project-understanding-HNK9lFVy.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-CyA6fCPg.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-BZvpuPZT.js → recording-upload-DIwP541B.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-C_8-f85U.js → registry-api-BTd_OgbD.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-Daxdjqs9.js → remote-access-hub-f5mIfsBF.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-khPb8zb8.js → resource-unavailable-DtQ2rfu_.js} +1 -1
- package/dist/gateway/static/root/assets/route-preload-anuckzRl.js +2 -0
- package/dist/gateway/static/root/assets/runtime-health-zDkHcOZO.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-2YumRxOJ.js → runtime-tools-api-C1iI8EPo.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DH00p-rI.js → runtime-tools-settings-panel-0tdI1z0g.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-wXf_ZlHq.js → service-recommendation-list-DSIe-NRe.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-Dt7vRa-E.js → session-api-CQlEq0MB.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-C7RfUfqI.js +25 -0
- package/dist/gateway/static/root/assets/{sessions-page-CCcpMHIH.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-DRlQdj_w.js → settings-advanced-section-C6dPu5i1.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-BE6t--iO.js → settings-mode-store-BSiiowQa.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-_F2d9-GZ.js → settings-page-DAc5n-mM.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-DG3MQwSF.js → settings-page-header-BSMu5Zq3.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-SuMAUhMb.js → settings-page-layout-B_vMffB1.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-DyDiHKjZ.js → setup-interaction-page-DKXfFdNt.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-CPNFWhrr.js → setup-status-panel-BbAZ9w77.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-wu-minYF.js → share-link-dialog-ztX1WPXG.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-BqbfuQBU.js → share-preview-page-Ds2Ydfg6.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-DwsEzRc6.js → shares-api-CSZqeNL4.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BxutiB6Y.js → shares-settings-CX3TNAmI.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-C7wPB73H.js → skill-api-CGzAQ-MX.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-C4AjzhlY.js → skill-list-api-DfUsku-x.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-CqfS9zlG.js → skill-reload-api-Y9qSMnBd.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-8VYadExR.js → skills-page-DnMN50Ot.js} +1 -1
- package/dist/gateway/static/root/assets/sliding-segmented-CgQ3BFdb.js +1 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-BV4GHnns.js → system-settings-panel-DWNkQmme.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-C9IyuxdS.js → task-detail-page-BJok6V1K.js} +3 -3
- package/dist/gateway/static/root/assets/{task-input-card-NtzzVc0e.js → task-input-card-lCMSy6YY.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-DWdJOGMn.js → terminal-panel-store-D8eZPvql.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-FNf-kdMR.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-BRPJuRpc.js → tracing-settings-page-DM3-7Hlw.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-B7NHNrQJ.js → tunnel-api-DOGAIXRR.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-bgCeO8bb.js → understanding-activity-store-CuPfe0eQ.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-CEhWIvsQ.js → understanding-refresh-store-Ihz2p9Vg.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-35YfpfVW.js → usage-page-BA9Yrvqu.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-D8Qtt_Tn.js → use-autosave-CO0IPCVg.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-H-tD4Db6.js → use-composer-attachments-CLIrD0mm.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-P-0xmST2.js → use-file-preview-expanded-dhNMHf5b.js} +3 -3
- package/dist/gateway/static/root/assets/{use-personal-profile-Bk2rGWSy.js → use-personal-profile-CVqDWBDS.js} +1 -1
- package/dist/gateway/static/root/assets/use-realtime-voice-DDVVlX1R.js +1 -0
- package/dist/gateway/static/root/assets/{use-workspace-tree-D0_812KH.js → use-workspace-tree-CZej8mhf.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-BxHnOljT.js → user-model-page-1eYattnk.js} +1 -1
- package/dist/gateway/static/root/assets/voice-CDlC6XMH.js +1 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-BL56KGeq.js → voice-api-key-field-DpwUDAvu.js} +1 -1
- package/dist/gateway/static/root/assets/voice-call-context-BM2A4bLz.js +1 -0
- package/dist/gateway/static/root/assets/voice-config-api-GIuXoHXw.js +1 -0
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-BK-IvchL.js → voice-input-shortcut-events-Cc30ZcFy.js} +1 -1
- package/dist/gateway/static/root/assets/voice-settings-DA3m5MT0.js +1 -0
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DDXae8Yc.js → work-discovery-overlay-yGUkk1NV.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-CxN0abrd.js → work-discovery-page-RN6iuY-0.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-D3BUBFa0.js → working-directory-picker-modal-CeXl9w6z.js} +1 -1
- package/dist/gateway/static/root/assets/workspace-api-B1Uirhxf.js +2 -0
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-Nos5ebMv.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-BKmtih6_.js → workspace-file-preview-dialog-D0h2yJ3v.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-BdfKT4O4.js → workspace-open-location-menu-DWGNOIE2.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-BS_lsURY.js → xopc-cloud-account-card-x-XT4bKF.js} +1 -1
- package/dist/gateway/static/root/index.html +104 -100
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/extension-capabilities.js +91 -4
- package/dist/packages/gateway-contract/src/index.js +3 -1
- package/dist/packages/gateway-contract/src/local-app-delegation.js +25 -0
- package/dist/packages/gateway-contract/src/local-apps.js +35 -4
- package/dist/packages/realtime-protocol/src/voice.js +5 -0
- package/dist/src/agent/agent-instance-gateway.d.ts +2 -0
- package/dist/src/agent/agent-manager.d.ts +1 -0
- package/dist/src/agent/agent-manager.js +12 -3
- package/dist/src/agent/background-review/prompts.js +2 -0
- package/dist/src/agent/background-review/run-background-review.js +13 -7
- 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/execution-context.js +1 -1
- 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 +17 -6
- package/dist/src/agent/embedded/index.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +66 -9
- package/dist/src/agent/embedded/run-turn.js +109 -15
- package/dist/src/agent/embedded/runs.d.ts +3 -0
- package/dist/src/agent/embedded/runs.js +21 -1
- package/dist/src/agent/embedded/session-runner.js +2 -2
- package/dist/src/agent/embedded/types.d.ts +2 -0
- 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/inbound/turn-dispatcher.d.ts +1 -0
- package/dist/src/agent/inbound/turn-dispatcher.js +1 -0
- 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/prompt/system-prompt.js +7 -6
- package/dist/src/agent/prompt/types.d.ts +2 -1
- package/dist/src/agent/prompt/voice-history.d.ts +9 -0
- package/dist/src/agent/prompt/voice-history.js +35 -0
- package/dist/src/agent/prompt/voice-presentation.d.ts +1 -1
- package/dist/src/agent/prompt/voice-presentation.js +1 -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 +3 -3
- 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/tasks/task-judge-service.js +1 -1
- 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 +2 -2
- package/dist/src/agent/tools/image-generate-tool.js +5 -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/personal-request-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-task-tool.js +3 -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/task-collaboration-tool.js +1 -1
- package/dist/src/agent/tools/task-evidence.js +6 -15
- package/dist/src/agent/tools/task-result-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +9 -8
- package/dist/src/agent-config/schema.d.ts +15 -0
- 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 +12 -0
- package/dist/src/capabilities/runtime/dispatcher.js +22 -6
- package/dist/src/capabilities/runtime/product.d.ts +2 -0
- package/dist/src/capabilities/runtime/product.js +28 -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/computer/evaluation-comparison.d.ts +4 -0
- package/dist/src/computer/evaluation-comparison.js +16 -1
- package/dist/src/computer/keyboard.js +1 -1
- package/dist/src/computer/model-adapter.js +18 -14
- package/dist/src/config/schema.d.ts +37 -3
- package/dist/src/config/schema.js +23 -5
- 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/lib/safe-voice-config.js +4 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +204 -12
- package/dist/src/gateway/hono/routes/lazy-bundles.js +18 -2
- package/dist/src/gateway/hono/routes/local-app-capabilities.js +27 -6
- package/dist/src/gateway/hono/routes/local-app-development.d.ts +3 -0
- package/dist/src/gateway/hono/routes/local-app-development.js +13 -0
- package/dist/src/gateway/hono/routes/local-app-previews.d.ts +3 -0
- package/dist/src/gateway/hono/routes/local-app-previews.js +86 -0
- 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/local-apps.js +3 -2
- package/dist/src/gateway/hono/routes/projects.js +1 -1
- 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 +4 -4
- package/dist/src/gateway/hono/routes/tui.js +308 -0
- package/dist/src/gateway/hono/routes/user-model.js +2 -2
- package/dist/src/gateway/hono/routes/voice.js +4 -3
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +1 -1
- package/dist/src/gateway/security/local-app-delegation-access.d.ts +5 -0
- package/dist/src/gateway/security/local-app-delegation-access.js +22 -0
- package/dist/src/gateway/service/agent-runner.js +1 -1
- package/dist/src/gateway/service/config-coordinator.d.ts +8 -3
- package/dist/src/gateway/service/run-gateway-agent.js +7 -6
- package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -0
- package/dist/src/gateway/service/session-input-coordinator.js +6 -2
- 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 +50 -17
- package/dist/src/gateway/session-reset-service.js +1 -1
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/infra/execution-authority.d.ts +12 -0
- package/dist/src/infra/execution-authority.js +27 -0
- package/dist/src/local-apps/access-audit.d.ts +17 -0
- package/dist/src/local-apps/access-audit.js +42 -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 +25 -0
- package/dist/src/local-apps/capabilities/delegate.d.ts +3 -0
- package/dist/src/local-apps/capabilities/delegate.js +183 -0
- package/dist/src/local-apps/capabilities/projections.d.ts +853 -0
- package/dist/src/local-apps/capabilities/projections.js +186 -0
- package/dist/src/local-apps/capabilities/resource-policy.d.ts +3 -0
- package/dist/src/local-apps/capabilities/resource-policy.js +119 -0
- package/dist/src/local-apps/capabilities/runtime.d.ts +2 -1
- package/dist/src/local-apps/capabilities/runtime.js +109 -39
- 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/fix-guidance.js +4 -1
- 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-fixtures.d.ts +20 -0
- package/dist/src/local-apps/preview-fixtures.js +52 -0
- package/dist/src/local-apps/preview-runtime-bridge.d.ts +1 -1
- package/dist/src/local-apps/preview-runtime-bridge.js +41 -18
- package/dist/src/local-apps/preview-sessions.d.ts +52 -0
- package/dist/src/local-apps/preview-sessions.js +316 -0
- package/dist/src/local-apps/preview-worker.d.ts +1 -0
- package/dist/src/local-apps/preview-worker.js +117 -0
- package/dist/src/local-apps/public-assets.d.ts +2 -0
- package/dist/src/local-apps/public-assets.js +42 -0
- package/dist/src/local-apps/scaffold.js +1 -1
- package/dist/src/local-apps/service.d.ts +128 -5
- package/dist/src/local-apps/service.js +153 -15
- package/dist/src/local-apps/store.d.ts +3 -0
- package/dist/src/local-apps/store.js +42 -16
- package/dist/src/local-apps/types.d.ts +2 -0
- package/dist/src/memory-learning/repository.js +3 -2
- package/dist/src/memory-learning/service.js +4 -13
- package/dist/src/memory-learning/transcript-source.d.ts +9 -0
- package/dist/src/memory-learning/transcript-source.js +31 -0
- package/dist/src/notes/agent-context.js +1 -1
- package/dist/src/notes/capabilities/read.js +11 -2
- package/dist/src/notes/capabilities/write.js +10 -1
- package/dist/src/notes/types.d.ts +2 -0
- package/dist/src/personal-agent/communication.d.ts +2 -1
- package/dist/src/personal-agent/communication.js +3 -1
- package/dist/src/personal-agent/prompt-context.js +15 -23
- package/dist/src/personal-agent/prompts.js +3 -2
- package/dist/src/personal-agent/reply-composer.js +2 -2
- package/dist/src/personal-agent/request-access.js +1 -1
- package/dist/src/personal-agent/request-delivery.js +1 -1
- package/dist/src/personal-agent/request-service.js +2 -2
- package/dist/src/personal-agent/service.js +1 -0
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/phone/contracts.d.ts +1 -1
- package/dist/src/phone/model-adapter.d.ts +1 -1
- package/dist/src/phone/runtime.d.ts +1 -1
- package/dist/src/platform/contracts.d.ts +3 -3
- package/dist/src/process/fork-worker.d.ts +2 -0
- package/dist/src/process/fork-worker.js +7 -0
- 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/realtime/broker.js +1 -1
- package/dist/src/review/review-git.js +14 -1
- package/dist/src/session/client-history.js +12 -1
- package/dist/src/session/session-context-for-llm.js +10 -3
- package/dist/src/session/store.d.ts +1 -0
- package/dist/src/session/store.js +2 -1
- package/dist/src/session/stored-rows-to-file-entries.js +1 -1
- package/dist/src/session/transcript-outline.js +9 -0
- package/dist/src/session/voice-transcript.d.ts +14 -0
- package/dist/src/session/voice-transcript.js +19 -2
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/notes-repository.js +7 -0
- package/dist/src/storage/sqlite/resource-scope.d.ts +10 -0
- package/dist/src/storage/sqlite/resource-scope.js +31 -0
- package/dist/src/storage/sqlite/transcript-repository.d.ts +3 -0
- package/dist/src/storage/sqlite/transcript-repository.js +43 -7
- package/dist/src/tasks/capabilities/management.js +3 -0
- package/dist/src/tasks/capabilities/read.js +21 -3
- package/dist/src/tasks/capabilities/write.js +11 -2
- package/dist/src/tasks/index.js +1 -1
- package/dist/src/tasks/task-allocation-service.js +1 -1
- package/dist/src/tasks/task-application-service.js +3 -3
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-evidence-tools.d.ts +2 -0
- package/dist/src/tasks/task-evidence-tools.js +22 -0
- package/dist/src/tasks/task-main-update-delivery.js +2 -0
- package/dist/src/tasks/task-repository.d.ts +2 -0
- package/dist/src/tasks/task-repository.js +7 -0
- package/dist/src/tasks/task-research-result.js +8 -21
- package/dist/src/tasks/task-result-delivery-repository.d.ts +6 -0
- package/dist/src/tasks/task-result-delivery-repository.js +26 -0
- package/dist/src/tasks/task-result-delivery-service.js +3 -3
- package/dist/src/tasks/task-run-coordinator.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/dist/src/usage/scenario-registry.js +5 -0
- package/dist/src/user-model/index.js +3 -3
- package/dist/src/user-model/profile.d.ts +8 -0
- package/dist/src/user-model/profile.js +19 -1
- package/dist/src/voice/platform-settings.d.ts +5 -0
- package/dist/src/voice/platform-settings.js +15 -2
- package/dist/src/voice/platform-streams.d.ts +7 -3
- package/dist/src/voice/platform-streams.js +90 -18
- package/dist/src/voice/realtime/agentBroker.d.ts +12 -1
- package/dist/src/voice/realtime/agentBroker.js +22 -5
- package/dist/src/voice/realtime/agentEngine.js +104 -12
- package/dist/src/voice/realtime/chat-publication.d.ts +24 -0
- package/dist/src/voice/realtime/chat-publication.js +61 -0
- package/dist/src/voice/realtime/conversation-context.d.ts +7 -1
- package/dist/src/voice/realtime/conversation-context.js +54 -16
- package/dist/src/voice/realtime/engine.d.ts +2 -0
- package/dist/src/voice/realtime/identity-grounding.d.ts +8 -0
- package/dist/src/voice/realtime/identity-grounding.js +34 -0
- package/dist/src/voice/realtime/memory-context.js +48 -14
- package/dist/src/voice/realtime/naturalAgentTools.d.ts +90 -0
- package/dist/src/voice/realtime/naturalAgentTools.js +275 -0
- package/dist/src/voice/realtime/omniEngine.d.ts +8 -0
- package/dist/src/voice/realtime/omniEngine.js +239 -13
- package/dist/src/voice/realtime/omniRoute.d.ts +1 -0
- package/dist/src/voice/realtime/omniRoute.js +23 -4
- package/dist/src/voice/realtime/runtime.d.ts +1 -0
- package/dist/src/voice/realtime/runtime.js +116 -22
- package/dist/src/voice/realtime/runtime.types.d.ts +3 -1
- package/dist/src/voice/realtime/speakable-segmenter.d.ts +2 -1
- package/dist/src/voice/realtime/speakable-segmenter.js +7 -2
- package/dist/src/voice/realtime/turnPolicy.d.ts +1 -2
- package/dist/src/voice/realtime/turnPolicy.js +4 -6
- package/dist/src/voice/realtime/user-context.d.ts +14 -0
- package/dist/src/voice/realtime/user-context.js +63 -0
- package/dist/src/voice/tts/providers/xopc-cloud-speech.js +29 -23
- package/dist/src/voice/tts/speak-core.js +1 -0
- package/dist/src/voice/tts/speech-provider-types.d.ts +2 -0
- package/dist/src/work-discovery/service.js +1 -1
- package/package.json +3 -1
- package/skills/engineering/build-xopc-local-app/SKILL.md +5 -1
- package/skills/engineering/build-xopc-local-app/references/app-contract.md +43 -2
- package/dist/gateway/static/root/assets/api-DIKAjDAK.js +0 -1
- package/dist/gateway/static/root/assets/automation-run-list-J-R4-hVm.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-KRaK8LKT.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-aJy-1o5H.js +0 -8
- package/dist/gateway/static/root/assets/chat-page-QmBfel_Z.js +0 -71
- package/dist/gateway/static/root/assets/clipboard-copy-DuJk5WD6.js +0 -1
- package/dist/gateway/static/root/assets/connected-providers-grid-BWVieU6P.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-C8M01Zxs.js +0 -1
- package/dist/gateway/static/root/assets/dist-BGTk37IG.js +0 -1
- package/dist/gateway/static/root/assets/extension-iframe-host-DjXDDmUd.js +0 -1
- package/dist/gateway/static/root/assets/extension-page-CGgneUDY.js +0 -1
- package/dist/gateway/static/root/assets/extension-provider-BktGTwH_.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-ZxMFPH4n.js +0 -1
- package/dist/gateway/static/root/assets/index-CPXKrqLj.js +0 -11
- package/dist/gateway/static/root/assets/index-Dc-3QQaz.css +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-CnckB-RA.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-Ck6kACsY.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-_nIEwZn4.js +0 -2
- package/dist/gateway/static/root/assets/messages-C7ruaWtK.js +0 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-kccIXJo_.js +0 -1
- package/dist/gateway/static/root/assets/oauth-provider-connect-CZP15znW.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-CFntbsPj.js +0 -1
- package/dist/gateway/static/root/assets/personal-avatar-CVocefDp.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-BjnSgU89.js +0 -1
- package/dist/gateway/static/root/assets/personal-proactivity-DaRnbB1f.js +0 -1
- package/dist/gateway/static/root/assets/personal-settings-panel-CdMHSPCH.js +0 -1
- package/dist/gateway/static/root/assets/providers-api-DE7kdeXc.js +0 -1
- package/dist/gateway/static/root/assets/route-preload-DGMUu3pm.js +0 -2
- package/dist/gateway/static/root/assets/runtime-health-D2TDFLLq.js +0 -1
- package/dist/gateway/static/root/assets/session-manager-5qokJQ6W.js +0 -25
- package/dist/gateway/static/root/assets/settings-advanced-gate-B7-XQiJh.js +0 -1
- package/dist/gateway/static/root/assets/sliding-segmented-D346J92k.js +0 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-YQmN1S2k.js +0 -2
- package/dist/gateway/static/root/assets/use-realtime-voice-BcokfdI0.js +0 -1
- package/dist/gateway/static/root/assets/voice-C607F0pB.js +0 -1
- package/dist/gateway/static/root/assets/voice-call-context-CJ1ZiJWR.js +0 -1
- package/dist/gateway/static/root/assets/voice-config-api-DVFTuHwH.js +0 -1
- package/dist/gateway/static/root/assets/workspace-api-ymncGc6j.js +0 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-BQrMvAkL.js +0 -1
|
@@ -49,6 +49,7 @@ async function* runGatewayAgent(deps, message, channel, chatId, origin, attachme
|
|
|
49
49
|
max: 10
|
|
50
50
|
}, "Attachments capped for webchat");
|
|
51
51
|
const runId = runOptions?.runId ?? crypto.randomUUID();
|
|
52
|
+
const runTopic = `${runOptions?.presentation === "voice" ? "voice-run" : "run"}:${runId}`;
|
|
52
53
|
const { agentService, bus, runAbortControllers, activeWebchatRunBySession, activeExecutionBySession, sessionIndex: sessionIndexFromDeps, emit, publishRealtime, completeRealtimeTopic } = deps;
|
|
53
54
|
const sessionIndex = sessionIndexFromDeps;
|
|
54
55
|
let taskRun;
|
|
@@ -70,7 +71,7 @@ async function* runGatewayAgent(deps, message, channel, chatId, origin, attachme
|
|
|
70
71
|
if (!runAbortControllers.has(runId)) runAbortControllers.set(runId, new AbortController());
|
|
71
72
|
if (runAbortControllers.get(runId).signal.aborted || runOptions?.signal?.aborted || runOptions?.taskRunId && new TaskRunRepository().get(runOptions.taskRunId)?.status === "cancelled") {
|
|
72
73
|
runAbortControllers.delete(runId);
|
|
73
|
-
completeRealtimeTopic(
|
|
74
|
+
completeRealtimeTopic(runTopic);
|
|
74
75
|
return {
|
|
75
76
|
status: "aborted",
|
|
76
77
|
summary: "Interrupted before startup"
|
|
@@ -162,7 +163,7 @@ async function* runGatewayAgent(deps, message, channel, chatId, origin, attachme
|
|
|
162
163
|
});
|
|
163
164
|
}
|
|
164
165
|
if (taskRun) captureTaskEvent(event);
|
|
165
|
-
if (channel === "webchat") publishRealtime(
|
|
166
|
+
if (channel === "webchat") publishRealtime(runTopic, event.type, event);
|
|
166
167
|
yield event;
|
|
167
168
|
}
|
|
168
169
|
};
|
|
@@ -232,7 +233,7 @@ async function* runGatewayAgent(deps, message, channel, chatId, origin, attachme
|
|
|
232
233
|
terminalStatus = endStatus;
|
|
233
234
|
taskRunSummary = endSummary;
|
|
234
235
|
yield* emitAndYield(mapper.end(endStatus, endSummary));
|
|
235
|
-
completeRealtimeTopic(
|
|
236
|
+
completeRealtimeTopic(runTopic);
|
|
236
237
|
runTopicCompleted = true;
|
|
237
238
|
return {
|
|
238
239
|
status: cancelled ? "aborted" : suspended ? "suspended" : streamError ? "error" : "ok",
|
|
@@ -244,7 +245,7 @@ async function* runGatewayAgent(deps, message, channel, chatId, origin, attachme
|
|
|
244
245
|
taskRunStatus = "cancelled";
|
|
245
246
|
taskRunSummary = "Interrupted";
|
|
246
247
|
yield* emitAndYield(mapper.end("cancelled", "Interrupted"));
|
|
247
|
-
completeRealtimeTopic(
|
|
248
|
+
completeRealtimeTopic(runTopic);
|
|
248
249
|
runTopicCompleted = true;
|
|
249
250
|
return {
|
|
250
251
|
status: "aborted",
|
|
@@ -267,7 +268,7 @@ async function* runGatewayAgent(deps, message, channel, chatId, origin, attachme
|
|
|
267
268
|
const errorContent = formatAgentRunErrorForClient(streamError);
|
|
268
269
|
yield* emitAndYield(mapper.error(errorContent));
|
|
269
270
|
yield* emitAndYield(mapper.end("error", streamError));
|
|
270
|
-
completeRealtimeTopic(
|
|
271
|
+
completeRealtimeTopic(runTopic);
|
|
271
272
|
runTopicCompleted = true;
|
|
272
273
|
return {
|
|
273
274
|
status: "error",
|
|
@@ -380,7 +381,7 @@ async function* runGatewayAgent(deps, message, channel, chatId, origin, attachme
|
|
|
380
381
|
if (channel === "webchat" && !runTopicCompleted) {
|
|
381
382
|
yield* emitAndYield(mapper.error(formatAgentRunErrorForClient(em)));
|
|
382
383
|
yield* emitAndYield(mapper.end("error", em));
|
|
383
|
-
completeRealtimeTopic(
|
|
384
|
+
completeRealtimeTopic(runTopic);
|
|
384
385
|
runTopicCompleted = true;
|
|
385
386
|
return {
|
|
386
387
|
status: "error",
|
|
@@ -60,6 +60,7 @@ export declare class SessionInputCoordinator {
|
|
|
60
60
|
steer: (conversationId: string, content: string, runId?: string, options?: {
|
|
61
61
|
attachments?: UserTurnAttachment[];
|
|
62
62
|
sourceContexts?: AgentSourceContext[];
|
|
63
|
+
voiceAgentInstruction?: boolean;
|
|
63
64
|
}) => Promise<boolean>;
|
|
64
65
|
emit: (type: string, payload: unknown) => void;
|
|
65
66
|
});
|
|
@@ -8,6 +8,7 @@ import { SessionInputControlConflict, acceptSessionInputControl, hasSessionInput
|
|
|
8
8
|
import { SessionInstanceChangedError, cancelQueuedSessionInput, claimNextSessionInput, findSessionInput, findSessionInputByRunId, finishSessionInputRun, getSessionInputById, getSessionInputState, init_session_input_repository, insertSessionInput, mutateQueuedSessionInput, recoverSessionInputState, setSessionInputStatus } from "../../storage/sqlite/session-input-repository.js";
|
|
9
9
|
import { init_types, summarizeSourceContext } from "../../agent/source-context/types.js";
|
|
10
10
|
import { init_injector, injectSourceContextsIntoUserMessage } from "../../agent/source-context/injector.js";
|
|
11
|
+
import { init_voice_transcript, isNaturalVoiceDelegation } from "../../session/voice-transcript.js";
|
|
11
12
|
import { TaskRunRepository, init_task_run_repository } from "../../tasks/task-run-repository.js";
|
|
12
13
|
import { cancelConnectionObjective, consumeConnectionResume, getActiveConnectionWait, getConnectionWait, hasPendingConnectionMessages, init_connection_wait_repository, interruptedConnectionMessage, publishConnectionWait, reconcileConnectionWaits } from "../../storage/sqlite/connection-wait-repository.js";
|
|
13
14
|
import { appendTranscriptEntry } from "../../storage/sqlite/transcript-repository.js";
|
|
@@ -28,6 +29,7 @@ init_injector();
|
|
|
28
29
|
init_session_input_repository();
|
|
29
30
|
init_connection_wait_repository();
|
|
30
31
|
init_transaction();
|
|
32
|
+
init_voice_transcript();
|
|
31
33
|
init_session_instance_repository();
|
|
32
34
|
init_types();
|
|
33
35
|
init_logger();
|
|
@@ -503,10 +505,12 @@ var SessionInputCoordinator = class {
|
|
|
503
505
|
}
|
|
504
506
|
steerInput(row, runId) {
|
|
505
507
|
const text = steeringText(row.content, row.contextSnapshots);
|
|
506
|
-
|
|
508
|
+
const voiceAgentInstruction = isNaturalVoiceDelegation(row);
|
|
509
|
+
if (!voiceAgentInstruction && !row.attachments?.length && !row.contextSnapshots?.length) return this.deps.steer(row.conversationId, text, runId);
|
|
507
510
|
return this.deps.steer(row.conversationId, text, runId, {
|
|
508
511
|
attachments: row.attachments,
|
|
509
|
-
sourceContexts: row.contextSnapshots
|
|
512
|
+
sourceContexts: row.contextSnapshots,
|
|
513
|
+
...voiceAgentInstruction ? { voiceAgentInstruction: true } : {}
|
|
510
514
|
});
|
|
511
515
|
}
|
|
512
516
|
async drain(conversationId) {
|
|
@@ -171,7 +171,7 @@ export declare class GatewaySessionsApi {
|
|
|
171
171
|
lastTurnId: string;
|
|
172
172
|
session: NonNullable<Awaited<ReturnType<GatewaySessionsApi['getSession']>>>;
|
|
173
173
|
}>;
|
|
174
|
-
btwQuery(conversationId: string, question: string): Promise<{
|
|
174
|
+
btwQuery(conversationId: string, question: string, options?: import('../../chat-commands/types.js').BtwQueryOptions): Promise<{
|
|
175
175
|
text: string;
|
|
176
176
|
error?: string;
|
|
177
177
|
}>;
|
|
@@ -25,7 +25,7 @@ init_agent_session_key();
|
|
|
25
25
|
function clampWindowSpan(value, fallback) {
|
|
26
26
|
const parsed = Math.trunc(value ?? fallback);
|
|
27
27
|
if (!Number.isFinite(parsed)) return fallback;
|
|
28
|
-
return Math.min(
|
|
28
|
+
return Math.min(2e3, Math.max(0, parsed));
|
|
29
29
|
}
|
|
30
30
|
var GatewaySessionsApi = class {
|
|
31
31
|
opts;
|
|
@@ -283,8 +283,8 @@ var GatewaySessionsApi = class {
|
|
|
283
283
|
session
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
|
-
btwQuery(conversationId, question) {
|
|
287
|
-
return this.opts.getAgentService().sessionInspector.btwQuery(conversationId, question);
|
|
286
|
+
btwQuery(conversationId, question, options) {
|
|
287
|
+
return this.opts.getAgentService().sessionInspector.btwQuery(conversationId, question, options);
|
|
288
288
|
}
|
|
289
289
|
stats() {
|
|
290
290
|
return this.opts.sessionIndex.getStats();
|
|
@@ -12,7 +12,8 @@ import { buckets } from "./rate-limit/buckets.js";
|
|
|
12
12
|
import { resolveEffectiveGatewayPort } from "./host.js";
|
|
13
13
|
import { isGatewayStrictSecurityEnabled } from "./rate-limit/env-flags.js";
|
|
14
14
|
import "./rate-limit/index.js";
|
|
15
|
-
import { bumpSessionInputRevision, findSessionInput, init_session_input_repository, insertSessionInput } from "../storage/sqlite/session-input-repository.js";
|
|
15
|
+
import { bumpSessionInputRevision, findSessionInput, findSessionInputByRunId, init_session_input_repository, insertSessionInput } from "../storage/sqlite/session-input-repository.js";
|
|
16
|
+
import { buildSessionDisplayMessages, init_session_context_for_llm } from "../session/session-context-for-llm.js";
|
|
16
17
|
import { TaskRepository } from "../tasks/task-repository.js";
|
|
17
18
|
import { TaskRunRepository, init_task_run_repository } from "../tasks/task-run-repository.js";
|
|
18
19
|
import { init_changes, notifyUserContextChange } from "../user-context/changes.js";
|
|
@@ -35,17 +36,21 @@ import { init_providers, providers_exports } from "../providers/index.js";
|
|
|
35
36
|
import { AI_USAGE_RETENTION_MS, markStaleAiUsageEventsUnknown, pruneAiUsageEvents } from "../storage/sqlite/ai-usage-repository.js";
|
|
36
37
|
import { flushTracing } from "../observability/runtime.js";
|
|
37
38
|
import { getWorkspacePath } from "../config/workspace-path-helpers.js";
|
|
39
|
+
import { projectForgottenHistoryMessages } from "../memory-learning/forgotten-history.js";
|
|
38
40
|
import { getPersonalAgentByConversation } from "../personal-agent/repository.js";
|
|
39
41
|
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
40
42
|
import { TaskAllocationRepository } from "../tasks/task-allocation-repository.js";
|
|
41
|
-
import { stopPersonalResultPreparations } from "../personal-agent/result-reader.js";
|
|
42
43
|
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
44
|
+
import { onTaskResultQueued } from "../tasks/task-result-delivery-repository.js";
|
|
45
|
+
import { stopPersonalResultPreparations } from "../personal-agent/result-reader.js";
|
|
43
46
|
import { getEmbeddedExecutionSession } from "../agent/embedded/execution-context.js";
|
|
44
47
|
import { buildNoteAgentContext } from "../notes/agent-context.js";
|
|
45
48
|
import { NotesStore } from "../notes/store.js";
|
|
46
49
|
import { DomainOutboxDispatcher } from "../infra/domain-outbox-dispatcher.js";
|
|
47
50
|
import { NotesService } from "../notes/service.js";
|
|
48
|
-
import {
|
|
51
|
+
import { setPairingBroadcastSink } from "../channels/pairing/pairing-events.js";
|
|
52
|
+
import { weixinPrivateIdentity } from "../agent/mcp/weixin-setup-scope.js";
|
|
53
|
+
import { AutomationService } from "../automations/service/automation-service.js";
|
|
49
54
|
import { ProjectService } from "../projects/project-service.js";
|
|
50
55
|
import { resolveProjectAgentId } from "../projects/project-agent.js";
|
|
51
56
|
import { buildResultAgentContext } from "../agent/source-context/result-context.js";
|
|
@@ -53,12 +58,9 @@ import { buildTaskAgentContext } from "../agent/source-context/task-context.js";
|
|
|
53
58
|
import { buildUserAssertionAgentContext } from "../agent/source-context/user-assertion-context.js";
|
|
54
59
|
import "../projects/index.js";
|
|
55
60
|
import { assertTaskHandoffAccess, getTaskHandoff } from "../tasks/task-handoff.js";
|
|
56
|
-
import { onTaskResultQueued } from "../tasks/task-result-delivery-repository.js";
|
|
57
61
|
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
58
|
-
import { setPairingBroadcastSink } from "../channels/pairing/pairing-events.js";
|
|
59
|
-
import { weixinPrivateIdentity } from "../agent/mcp/weixin-setup-scope.js";
|
|
60
|
-
import { AutomationService } from "../automations/service/automation-service.js";
|
|
61
62
|
import { TaskSignalService } from "../tasks/task-signal-service.js";
|
|
63
|
+
import { LocalAppService } from "../local-apps/service.js";
|
|
62
64
|
import { createProductDispatcher } from "../capabilities/runtime/product.js";
|
|
63
65
|
import "../automations/index.js";
|
|
64
66
|
import { assertTaskExecutorReady } from "../tasks/task-execution-capabilities.js";
|
|
@@ -79,6 +81,7 @@ import { buildChannelCatalogForConfig, buildChannelCatalogFromSnapshot } from ".
|
|
|
79
81
|
import { loadConfig, saveConfig } from "../config/loader.js";
|
|
80
82
|
import { MessageBus, MessageBusShutdownError } from "../infra/bus/queue.js";
|
|
81
83
|
import "../infra/bus/index.js";
|
|
84
|
+
import { publishVoiceChatMessage } from "../voice/realtime/chat-publication.js";
|
|
82
85
|
import { collectMediaUrisFromMessages, deleteMediaUris } from "../media/session-references.js";
|
|
83
86
|
import { AgentService } from "../agent/service.js";
|
|
84
87
|
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
@@ -123,7 +126,8 @@ import { buildBrowserTabAgentContext } from "../agent/source-context/browser-tab
|
|
|
123
126
|
import { WorkDiscoveryService } from "../work-discovery/service.js";
|
|
124
127
|
import { buildVoiceMemoryContext } from "../voice/realtime/memory-context.js";
|
|
125
128
|
import { buildVoicePersonaContext } from "../voice/realtime/persona-context.js";
|
|
126
|
-
import {
|
|
129
|
+
import { buildVoiceUserContext } from "../voice/realtime/user-context.js";
|
|
130
|
+
import { buildVoiceHistory, voiceMemoryBudget, voicePersonaBudget } from "../voice/realtime/conversation-context.js";
|
|
127
131
|
import "../notes/index.js";
|
|
128
132
|
import { EphemeralSideChatManager } from "./side-chat/manager.js";
|
|
129
133
|
import { SideChatRunService } from "./side-chat/run-service.js";
|
|
@@ -173,6 +177,7 @@ import crypto from "node:crypto";
|
|
|
173
177
|
init_session_repository();
|
|
174
178
|
init_agent_session_key();
|
|
175
179
|
init_session_input_repository();
|
|
180
|
+
init_session_context_for_llm();
|
|
176
181
|
init_changes();
|
|
177
182
|
init_agent_scope();
|
|
178
183
|
init_schema();
|
|
@@ -221,27 +226,51 @@ var GatewayService = class {
|
|
|
221
226
|
realtime = new RealtimeRuntime(this.endpointTools, this.isRealtimePrincipalActive);
|
|
222
227
|
phoneStreams = new PhoneStreamGateway(this.isRealtimePrincipalActive);
|
|
223
228
|
voiceRealtime = new VoiceRealtimeRuntime({
|
|
229
|
+
publishConversationContent: async (conversationId, transcriptId, publication) => {
|
|
230
|
+
await publishVoiceChatMessage(this.sessionIndex.getStore(), conversationId, transcriptId, publication);
|
|
231
|
+
this.emit("session.transcript_updated", { key: conversationId });
|
|
232
|
+
},
|
|
224
233
|
isPrincipalActive: this.isRealtimePrincipalActive,
|
|
225
|
-
getConversationContext: async (conversationId, expectedTranscriptId, baseInstructions) => {
|
|
234
|
+
getConversationContext: async (conversationId, expectedTranscriptId, baseInstructions, actions = false) => {
|
|
226
235
|
if ((await this.sessionIndex.getSessionMetadata(conversationId))?.transcriptId !== expectedTranscriptId) throw new Error("Conversation changed before voice connection");
|
|
227
|
-
const
|
|
236
|
+
const loadedMessages = await this.sessionIndex.loadMessages(conversationId);
|
|
228
237
|
const after = await this.sessionIndex.getSessionMetadata(conversationId);
|
|
229
238
|
if (after?.transcriptId !== expectedTranscriptId) throw new Error("Conversation changed while loading voice context");
|
|
230
239
|
const profile = resolveEffectiveAgentProfileForSession(conversationId);
|
|
240
|
+
const workspaceId = getSessionConfig(conversationId)?.workingDirectoryOverride ?? profile.resolvedWorkspacePath;
|
|
241
|
+
const sentinel = {
|
|
242
|
+
role: "user",
|
|
243
|
+
content: "",
|
|
244
|
+
timestamp: Date.now()
|
|
245
|
+
};
|
|
246
|
+
const messages = projectForgottenHistoryMessages([...loadedMessages, sentinel], {
|
|
247
|
+
conversationId,
|
|
248
|
+
agentId: profile.agentId,
|
|
249
|
+
workspaceId,
|
|
250
|
+
projectId: after?.projectId
|
|
251
|
+
}).filter((message) => message !== sentinel);
|
|
252
|
+
const user = buildVoiceUserContext({
|
|
253
|
+
getConfig: () => this.config,
|
|
254
|
+
conversationId,
|
|
255
|
+
history: messages
|
|
256
|
+
});
|
|
231
257
|
const persona = buildVoicePersonaContext({
|
|
232
258
|
getConfig: () => this.config,
|
|
233
259
|
conversationId,
|
|
234
|
-
maxChars: voicePersonaBudget(baseInstructions)
|
|
260
|
+
maxChars: voicePersonaBudget(baseInstructions, void 0, actions, user)
|
|
235
261
|
});
|
|
236
262
|
const context = {
|
|
263
|
+
actions,
|
|
264
|
+
user,
|
|
237
265
|
identity: persona.block,
|
|
238
266
|
history: messages,
|
|
239
|
-
|
|
267
|
+
sharedChat: buildVoiceHistory(buildSessionDisplayMessages(await this.sessionIndex.getStore().loadTranscriptRows(conversationId)), 2400),
|
|
268
|
+
isCurrent: () => persona.isCurrent() && user?.isCurrent() !== false
|
|
240
269
|
};
|
|
241
270
|
const memory = buildVoiceMemoryContext({
|
|
242
271
|
getConfig: () => this.config,
|
|
243
272
|
conversationId,
|
|
244
|
-
workspaceId
|
|
273
|
+
workspaceId,
|
|
245
274
|
projectId: after?.projectId,
|
|
246
275
|
history: messages,
|
|
247
276
|
maxChars: voiceMemoryBudget(baseInstructions, context)
|
|
@@ -257,7 +286,7 @@ var GatewayService = class {
|
|
|
257
286
|
expectedTranscriptId,
|
|
258
287
|
customType: "voice_omni_transcript",
|
|
259
288
|
content: entry.text,
|
|
260
|
-
display:
|
|
289
|
+
display: false,
|
|
261
290
|
details: {
|
|
262
291
|
callId,
|
|
263
292
|
itemId: entry.itemId,
|
|
@@ -288,11 +317,13 @@ var GatewayService = class {
|
|
|
288
317
|
submit: (input) => this.agentRunner.submitSessionInput(input),
|
|
289
318
|
find: findSessionInput,
|
|
290
319
|
snapshot: (conversationId) => this.agentRunner.inputs.snapshot(conversationId),
|
|
320
|
+
runTopic: (conversationId, runId) => {
|
|
321
|
+
const origin = findSessionInputByRunId(conversationId, runId)?.origin;
|
|
322
|
+
return `${origin?.type === "channel" && origin.channel === "voice" ? "voice-run" : "run"}:${runId}`;
|
|
323
|
+
},
|
|
291
324
|
currentSequence: (topic) => this.realtime.broker.currentSequence(topic),
|
|
292
325
|
subscribe: (topic, afterSeq, listener) => this.realtime.broker.subscribe(topic, afterSeq, listener),
|
|
293
|
-
cancelRun: async (runId) =>
|
|
294
|
-
await this.agentRunner.abortAgentRun(runId);
|
|
295
|
-
}
|
|
326
|
+
cancelRun: async (runId) => (await this.agentRunner.abortAgentRun(runId)).aborted
|
|
296
327
|
})
|
|
297
328
|
});
|
|
298
329
|
getConfig() {
|
|
@@ -1665,6 +1696,7 @@ var GatewayService = class {
|
|
|
1665
1696
|
}
|
|
1666
1697
|
}
|
|
1667
1698
|
async stop() {
|
|
1699
|
+
await this.localApps.previews.close();
|
|
1668
1700
|
await flushTracing();
|
|
1669
1701
|
if (!this.running) return;
|
|
1670
1702
|
this.stopping = true;
|
|
@@ -2029,6 +2061,7 @@ var GatewayService = class {
|
|
|
2029
2061
|
});
|
|
2030
2062
|
}
|
|
2031
2063
|
emit(type, payload) {
|
|
2064
|
+
if (type === "session.transcript_updated" && payload && typeof payload === "object" && typeof payload.key === "string") this.voiceRealtime.refreshConversation(payload.key);
|
|
2032
2065
|
if (type === "config.reload") notifyUserContextChange({ kind: "policy" });
|
|
2033
2066
|
if (type === "connector.learning.updated" && payload && typeof payload === "object") {
|
|
2034
2067
|
const job = payload;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { isPersonalConversation } from "../personal-agent/repository.js";
|
|
4
|
+
import { abortEmbeddedRun } from "../agent/embedded/runs.js";
|
|
4
5
|
import { cancelPhoneAssistance } from "../phone/assistance.js";
|
|
5
6
|
import { getPhoneRuntime } from "../phone/runtime.js";
|
|
6
|
-
import { abortEmbeddedRun } from "../agent/embedded/runs.js";
|
|
7
7
|
//#region src/gateway/session-reset-service.ts
|
|
8
8
|
init_logger();
|
|
9
9
|
const log = createLogger("SessionReset");
|
|
@@ -7,8 +7,8 @@ import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
|
7
7
|
import { phoneModelProfile } from "../phone/model-policy.js";
|
|
8
8
|
import { init_model_policy, isComputerModel, isDedicatedComputerProfile } from "../computer/model-policy.js";
|
|
9
9
|
import { getModelCatalogStore, init_model_catalog_store } from "../providers/model-catalog-store.js";
|
|
10
|
-
import "../phone/model-adapter.js";
|
|
11
10
|
import { compareCatalogModels } from "../providers/model-catalog-ranking.js";
|
|
11
|
+
import "../phone/model-adapter.js";
|
|
12
12
|
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
13
13
|
import { prepareUpdateGlobalDefaults } from "./global-defaults-admin.js";
|
|
14
14
|
//#region src/gateway/xopc-cloud-capability-setup.ts
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AiUsageModel } from '../usage/types.js';
|
|
2
|
+
export interface ExecutionAuthority {
|
|
3
|
+
revision: string;
|
|
4
|
+
unrestrictedTools: boolean;
|
|
5
|
+
assertCurrent(): void;
|
|
6
|
+
allowsTool(name: string): boolean;
|
|
7
|
+
assertTool?(name: string, args: unknown): void;
|
|
8
|
+
reserveModel(model: AiUsageModel): void;
|
|
9
|
+
}
|
|
10
|
+
export declare const getExecutionAuthority: () => ExecutionAuthority;
|
|
11
|
+
/** Trusted execution entry points may only narrow a parent authority. */
|
|
12
|
+
export declare function withExecutionAuthority<T>(value: ExecutionAuthority, execute: () => T): T;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
2
|
+
//#region src/infra/execution-authority.ts
|
|
3
|
+
const authority = new AsyncLocalStorage();
|
|
4
|
+
const getExecutionAuthority = () => authority.getStore();
|
|
5
|
+
/** Trusted execution entry points may only narrow a parent authority. */
|
|
6
|
+
function withExecutionAuthority(value, execute) {
|
|
7
|
+
const parent = authority.getStore();
|
|
8
|
+
return authority.run(parent ? {
|
|
9
|
+
...value,
|
|
10
|
+
unrestrictedTools: parent.unrestrictedTools && value.unrestrictedTools,
|
|
11
|
+
assertCurrent() {
|
|
12
|
+
parent.assertCurrent();
|
|
13
|
+
value.assertCurrent();
|
|
14
|
+
},
|
|
15
|
+
allowsTool: (name) => parent.allowsTool(name) && value.allowsTool(name),
|
|
16
|
+
assertTool(name, args) {
|
|
17
|
+
parent.assertTool?.(name, args);
|
|
18
|
+
value.assertTool?.(name, args);
|
|
19
|
+
},
|
|
20
|
+
reserveModel(model) {
|
|
21
|
+
parent.reserveModel(model);
|
|
22
|
+
value.reserveModel(model);
|
|
23
|
+
}
|
|
24
|
+
} : value, execute);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { getExecutionAuthority, withExecutionAuthority };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LocalAppAccessEvent {
|
|
2
|
+
id: string;
|
|
3
|
+
createdAt: number;
|
|
4
|
+
principalId: string;
|
|
5
|
+
action: string;
|
|
6
|
+
releaseId?: string;
|
|
7
|
+
grantRevision?: string;
|
|
8
|
+
status: 'succeeded' | 'denied' | 'failed';
|
|
9
|
+
resourceId?: string;
|
|
10
|
+
resourceIds?: string[];
|
|
11
|
+
surface?: string;
|
|
12
|
+
code?: string;
|
|
13
|
+
operationId?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Bounded operational audit; never persist note bodies, search terms, tokens or results. */
|
|
16
|
+
export declare function recordLocalAppAccess(extensionId: string, event: Omit<LocalAppAccessEvent, 'id' | 'createdAt'>): void;
|
|
17
|
+
export declare function listLocalAppAccess(extensionId: string): LocalAppAccessEvent[];
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createLogger } from "../utils/logger/index.js";
|
|
2
|
+
import { init_logger } from "../utils/logger.js";
|
|
3
|
+
import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
4
|
+
import { DurableState } from "../storage/sqlite/durable-state.js";
|
|
5
|
+
import { randomUUID } from "node:crypto";
|
|
6
|
+
//#region src/local-apps/access-audit.ts
|
|
7
|
+
init_transaction();
|
|
8
|
+
init_logger();
|
|
9
|
+
const log = createLogger("LocalApps:Access");
|
|
10
|
+
/** Bounded operational audit; never persist note bodies, search terms, tokens or results. */
|
|
11
|
+
function recordLocalAppAccess(extensionId, event) {
|
|
12
|
+
try {
|
|
13
|
+
runSqliteWriteTransaction((db) => {
|
|
14
|
+
const entry = {
|
|
15
|
+
...event,
|
|
16
|
+
principalId: event.principalId.slice(0, 512),
|
|
17
|
+
action: event.action.slice(0, 200),
|
|
18
|
+
operationId: event.operationId?.slice(0, 128),
|
|
19
|
+
resourceId: event.resourceId?.slice(0, 512),
|
|
20
|
+
resourceIds: event.resourceIds?.slice(0, 200).map((id) => id.slice(0, 512)),
|
|
21
|
+
id: randomUUID(),
|
|
22
|
+
createdAt: Date.now()
|
|
23
|
+
};
|
|
24
|
+
new DurableState("local-app-access-audit", extensionId).set(entry.id, entry);
|
|
25
|
+
db.prepare(`DELETE FROM durable_state WHERE namespace = 'local-app-access-audit' AND scope = ? AND key NOT IN (
|
|
26
|
+
SELECT key FROM durable_state WHERE namespace = 'local-app-access-audit' AND scope = ? ORDER BY rowid DESC LIMIT 1000
|
|
27
|
+
)`).run(extensionId, extensionId);
|
|
28
|
+
});
|
|
29
|
+
} catch (err) {
|
|
30
|
+
log.error({
|
|
31
|
+
err,
|
|
32
|
+
extensionId,
|
|
33
|
+
action: event.action
|
|
34
|
+
}, "Local app access audit could not be saved");
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function listLocalAppAccess(extensionId) {
|
|
38
|
+
return getSqliteDatabase().prepare(`SELECT payload FROM durable_state WHERE namespace = 'local-app-access-audit'
|
|
39
|
+
AND scope = ? ORDER BY rowid DESC LIMIT 100`).all(extensionId).map((row) => JSON.parse(row.payload));
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { listLocalAppAccess, recordLocalAppAccess };
|