@xopcai/xopc 0.0.450 → 0.0.451
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-Tn5McYcg.js → activity-store-OMq1GnqB.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BX5HhrTI.js → agent-avatar-dicebear-CIoE-FJR.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-C7Dx9nt1.js → agent-avatar-display-kPb6idGG.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-AAJsxEjB.js → agent-defaults-settings-panel-vKUDGEU6.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-BhtzU8qr.js → agent-plugin-dialog-x7guoCvz.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-CbGYb9WI.js → agents-BbwFcl87.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-CShyoj9I.js → agents-admin-api-tXB8Aj5K.js} +1 -1
- package/dist/gateway/static/root/assets/{api-B3M6ifoo.js → api-DIKAjDAK.js} +1 -1
- package/dist/gateway/static/root/assets/{api-BET9vZ1l.js → api-ixudT_21.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-BxOShFPO.js → app-management-settings-panel-nuDfyfZ5.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-L450QlMW.js → appearance-settings-D4oON26V.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-Bz6_fyMs.js → apps-page-BM1BfXzo.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-BCXEOal7.js → archive-plugin-mKjfC6Sk.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-B3Jnoa2G.js → automation-api-C9pjryrT.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-BHAKc5QI.js → automation-result-state-uvg7Bi2x.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-De7gini_.js → automation-run-list-J-R4-hVm.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-Clf0fe_n.js → automation-task-card-CXGC8afU.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BEG5xLew.js → automations-page-CwQg9dfM.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-Cfq1C6XB.js → automations-workspace-DhLgFY2T.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-B7tuUWzS.js → binary-plugins-BNPDM14i.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-D-YHASZr.js → block-editor-De9UqmMT.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-DdMMia7Y.js → browser-settings-page-B0VB5umC.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-Cxh3nYa6.js → capabilities-BtJB4u5C.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-YfkMBZCb.js → capabilities-Cp-rmFMM.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-CSBeVda0.js → capabilities-page-KRaK8LKT.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-aJy-1o5H.js +8 -0
- package/dist/gateway/static/root/assets/{channels-DdSEH-R2.js → channels-ZJORx-he.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-CgasFAm4.js → chat-agents-api-CtuEaDG8.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-Cgks7rH3.js → chat-chart-block-ShPQBlNE.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-page-BKLyj4IP.js → chat-page-QmBfel_Z.js} +22 -22
- package/dist/gateway/static/root/assets/{chat-terminal-dock-aCu4X5Jo.js → chat-terminal-dock-CvDRfHAZ.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-Bku_h283.js → command-palette-api-NJTvEF2b.js} +1 -1
- package/dist/gateway/static/root/assets/composer-notifications-BkezOy9Q.js +1 -0
- package/dist/gateway/static/root/assets/composer-payload-handoff-CEjJusbJ.js +1 -0
- package/dist/gateway/static/root/assets/{computer-settings-page-zvWUPPAr.js → computer-settings-page-DG8bcw_s.js} +1 -1
- package/dist/gateway/static/root/assets/{connected-providers-grid-w3htbAyh.js → connected-providers-grid-BWVieU6P.js} +1 -1
- package/dist/gateway/static/root/assets/{connection-usage-guide-DL2T6cSN.js → connection-usage-guide-f55PDAbb.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-a0gQC-nc.js → connector-service-page-Ca09FIBW.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-DNVUmf9M.js → connectors-api-dai-YAdK.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-D1VzTxON.js → connectors-page-C8M01Zxs.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-E0cqnNlR.js → date-picker-C70ICT7u.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-CrC_VKpw.js → date-time-picker-Czj5fnsJ.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-D1MkNl5F.js → desktop-pet-Dq3OLpPg.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-BA6u5Md-.js → desktop-pet-settings-q4mec6zt.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-DnqJb6NS.js → dev-view-store-lXnKsRew.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-Ba3d606o.js → device-pairing-wizard-CbUX0iit.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-lcps-hsZ.js → directory-picker-path-field-BRnwhemd.js} +1 -1
- package/dist/gateway/static/root/assets/{discussion-annotation-sync-BmvCn1Xn.js → discussion-annotation-sync-BnK6Ua7v.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-BOJbNj9D.js → extension-debug-page-Bp2BrJbB.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-pbU7DAfE.js → extension-iframe-host-DjXDDmUd.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-marketplace-api-BrLsjJLA.js → extension-marketplace-api-tk93vJL_.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-BrX4Hy9P.js → extension-page-CGgneUDY.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-DUzhV5_a.js → extension-provider-BktGTwH_.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-BuV-Vuvb.js → extension-settings-page-BGcZIeHP.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-B3nLuoQO.js → file-preview-surface-BK2_4mWy.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-CtZy1Qw0.js → gateway-config-swr-DsXilOaJ.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-CG65gHUY.js → gateway-realtime-DopPmAMl.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-ZxMFPH4n.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-Cr5xtfZU.js → gateway-restart-eozrXTm7.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-BwMwdwXh.js → gateway-settings-DddUli-p.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DztAHGru.js → gateway-startup-retry-DMQI0ATo.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-yHc-ZfjU.js → global-defaults-api-D7hk1zTj.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-C8oVgxQg.js +3 -0
- package/dist/gateway/static/root/assets/{image-generation-api-D5eo_stq.js → image-generation-api-BCbvDDH_.js} +1 -1
- package/dist/gateway/static/root/assets/imports-page-B9LF_2fO.js +1 -0
- package/dist/gateway/static/root/assets/index-CPXKrqLj.js +11 -0
- package/dist/gateway/static/root/assets/index-Dc-3QQaz.css +1 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-B-v1FT3P.js → install-connector-dialog-DT32t-66.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BLBASsCP.js → keyboard-shortcuts-settings-DDwoBK8g.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-3J9ABnCu.js → local-app-workbench-page-CnckB-RA.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-Db93n4Zy.js → local-apps-page-qzxr3c8Y.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-C6oPrCYY.js → local-session-drafts-BU3FXj_X.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-CQcW9_qA.js → locale-store-DTUQ0JiK.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-_nIEwZn4.js +2 -0
- package/dist/gateway/static/root/assets/{management-api-Dh2r5GrQ.js → management-api-C6mCD0mZ.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-Fj25fafb.js → management-settings-C4BKD-_b.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-CkihBz06.js → markdown-view-DHjn1-ML.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-jh3dwNfg.js → mcp-conversation-setup-page-ClgMvru5.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-BUapXtQZ.js → media-plugins-8E2KZQym.js} +1 -1
- package/dist/gateway/static/root/assets/{messages-orB1BMgI.js → messages-C7ruaWtK.js} +3 -3
- package/dist/gateway/static/root/assets/{model-selector-DYxgKUju.js → model-selector-CJY9LRsl.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-D2cdb8nZ.js → models-hub-cache-BTs8jhgq.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-BMtKrv-J.js → note-detail-panel-DiCfpcZd.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-kccIXJo_.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-BhRyWe3S.js → notes-api-BnaeXy22.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-DcmRJJbt.js → notes-page-B_vTBmyx.js} +2 -2
- package/dist/gateway/static/root/assets/{oauth-api-D5iBtOid.js → oauth-api-BZ67vxsq.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-CmHsHynu.js → oauth-provider-connect-CZP15znW.js} +1 -1
- package/dist/gateway/static/root/assets/{open-capability-settings-Cvb65hQB.js → open-capability-settings-DQsmJxI7.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-CTHQWfG6.js → page-context-capture-button-TpjRHhUt.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-aApa5ApP.js → page-context-draft-BbUpxlgV.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-CFntbsPj.js +1 -0
- package/dist/gateway/static/root/assets/{personal-avatar-Dp5LHjk3.js → personal-avatar-CVocefDp.js} +1 -1
- package/dist/gateway/static/root/assets/personal-page-BjnSgU89.js +1 -0
- package/dist/gateway/static/root/assets/{personal-settings-panel-CtJL6qIN.js → personal-settings-panel-CdMHSPCH.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-BBk6k0t0.js → phone-dependencies-card-ChRrViSc.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-QJt8SAb7.js → phone-model-connection-DmswEWqx.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-CRxUxJNZ.js → phone-model-picker-CvuOhQpk.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-Df64khPY.js → phone-settings-page-2hZ68I47.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-DAuPd2ie.js → phone-workspace-store-BMvxfZ3g.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-Bcer4RC3.js → plugin-details-dialog-qvdi41L2.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-DdV7q9Bd.js → preference-select-fields-RDatqlhG.js} +1 -1
- package/dist/gateway/static/root/assets/{product-automation-feedback-uKndNxpU.js → product-automation-feedback-Bj9ZsasT.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-A7lyoXVv.js → product-open-page-CzXmn2MX.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-BrdvkWOg.js → product-preview-content-Beg0t4GW.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-BxHKejcX.js → product-preview-modal-5ulFfVzf.js} +2 -2
- package/dist/gateway/static/root/assets/project-detail-page-8bnYqXLJ.js +7 -0
- package/dist/gateway/static/root/assets/{project-understanding-BVhSoQHu.js → project-understanding-CXf7wjwt.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-DSPoyFda.js → projects-page-CyA6fCPg.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-B47s6_9Q.js → providers-api-DE7kdeXc.js} +1 -1
- package/dist/gateway/static/root/assets/{recording-upload-B-IHTsVC.js → recording-upload-BZvpuPZT.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-Bo8YiUE0.js → registry-api-C_8-f85U.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-BRf9znLV.js → remote-access-hub-Daxdjqs9.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-CAljzZx8.js → resource-unavailable-khPb8zb8.js} +1 -1
- package/dist/gateway/static/root/assets/route-preload-DGMUu3pm.js +2 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-C28pB9__.js → runtime-tools-api-2YumRxOJ.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-XYeadnhL.js → runtime-tools-settings-panel-DH00p-rI.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-CtRM41Re.js → schema-form-C9TYGa0_.js} +1 -1
- package/dist/gateway/static/root/assets/secret-input-DsjfQmDn.js +1 -0
- package/dist/gateway/static/root/assets/{service-recommendation-list-C6ydoBSU.js → service-recommendation-list-wXf_ZlHq.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-D7FWdG43.js → session-api-Dt7vRa-E.js} +1 -1
- package/dist/gateway/static/root/assets/session-channel-icon-BzkFo-Ci.js +1 -0
- package/dist/gateway/static/root/assets/{session-identity-label-BP7OIYth.js → session-identity-label-D5SAi0Uh.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-C1T7WiP7.js → session-manager-5qokJQ6W.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-CyYkCsfy.js → sessions-page-CCcpMHIH.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-B7-XQiJh.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-3HwfHbqz.js → settings-advanced-section-DRlQdj_w.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-BVvIXZlg.js → settings-mode-store-BE6t--iO.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-C6ypo-jn.js → settings-page-_F2d9-GZ.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-CheboxIM.js → settings-page-header-DG3MQwSF.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-CPFMZaLF.js → settings-page-layout-SuMAUhMb.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-BbCzYq9S.js → setup-interaction-page-DyDiHKjZ.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-DUNgVqtz.js → setup-status-panel-CPNFWhrr.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-0P9ghttc.js → share-link-dialog-wu-minYF.js} +1 -1
- package/dist/gateway/static/root/assets/share-preview-page-BqbfuQBU.js +2 -0
- package/dist/gateway/static/root/assets/{shares-api-iiw4F-ra.js → shares-api-DwsEzRc6.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BQ1qXAJn.js → shares-settings-BxutiB6Y.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-CLtIjE8K.js → skill-api-C7wPB73H.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-DY0rRlUk.js → skill-list-api-C4AjzhlY.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-DJC8uWLu.js → skill-reload-api-CqfS9zlG.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-CQYf7s9f.js → skills-page-8VYadExR.js} +1 -1
- package/dist/gateway/static/root/assets/sliding-segmented-D346J92k.js +1 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-DdBmyc93.js → system-settings-panel-BV4GHnns.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-Bb1R4QsJ.js → task-detail-page-C9IyuxdS.js} +3 -3
- package/dist/gateway/static/root/assets/{task-input-card-Xl4xFjCn.js → task-input-card-NtzzVc0e.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-B1EVdx4L.js → terminal-panel-store-DWdJOGMn.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-BTkYFJOE.js → theme-store-FNf-kdMR.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-h-gbBAtl.js → tracing-settings-page-BRPJuRpc.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-BDoegsWD.js → tunnel-api-B7NHNrQJ.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-DyFJDqHy.js → understanding-activity-store-bgCeO8bb.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-C0SRcgyd.js → understanding-refresh-store-CEhWIvsQ.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-CbJsT3zT.js → usage-page-35YfpfVW.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-CB2B4NMO.js → use-autosave-D8Qtt_Tn.js} +1 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-H-tD4Db6.js +2 -0
- package/dist/gateway/static/root/assets/use-file-preview-expanded-P-0xmST2.js +15 -0
- package/dist/gateway/static/root/assets/{use-personal-profile-r0OuOlBJ.js → use-personal-profile-Bk2rGWSy.js} +1 -1
- package/dist/gateway/static/root/assets/use-realtime-voice-BcokfdI0.js +1 -0
- package/dist/gateway/static/root/assets/{use-workspace-tree-B9Bmg8LV.js → use-workspace-tree-D0_812KH.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-BudrJ73l.js → user-model-page-BxHnOljT.js} +1 -1
- package/dist/gateway/static/root/assets/voice-C607F0pB.js +1 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-C8wd8ijq.js → voice-api-key-field-BL56KGeq.js} +1 -1
- package/dist/gateway/static/root/assets/voice-config-api-DVFTuHwH.js +1 -0
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-TAmJNcsN.js → voice-input-shortcut-events-BK-IvchL.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DsyYo1p0.js → work-discovery-overlay-DDXae8Yc.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-BJ9VN5Zd.js → work-discovery-page-CxN0abrd.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-CFj-ZOJE.js → working-directory-picker-modal-D3BUBFa0.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-DYFy9__S.js → workspace-api-ymncGc6j.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-BQrMvAkL.js +1 -0
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-BKmtih6_.js +1 -0
- package/dist/gateway/static/root/assets/workspace-open-location-menu-BdfKT4O4.js +1 -0
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-DN4DdOWZ.js → xopc-cloud-account-card-BS_lsURY.js} +1 -1
- package/dist/gateway/static/root/index.html +91 -88
- package/dist/package.js +1 -1
- package/dist/packages/realtime-protocol/src/voice.js +32 -3
- package/dist/src/agent-config/schema.d.ts +30 -0
- package/dist/src/agent-config/schema.js +3 -1
- package/dist/src/cli/commands/gateway/lifecycle.js +1 -1
- package/dist/src/config/schema.d.ts +16 -0
- package/dist/src/config/schema.js +6 -0
- package/dist/src/gateway/hono/lib/safe-voice-config.d.ts +1 -0
- package/dist/src/gateway/hono/lib/safe-voice-config.js +7 -2
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +4 -0
- package/dist/src/gateway/hono/routes/personal-agent.js +9 -1
- package/dist/src/gateway/hono/routes/voice.js +105 -12
- package/dist/src/gateway/security/gateway-scopes.js +1 -1
- package/dist/src/gateway/service/config-coordinator.d.ts +4 -0
- package/dist/src/gateway/service.js +4 -4
- package/dist/src/gateway/xopc-cloud-capability-setup.js +2 -2
- package/dist/src/imports/inventory.js +11 -3
- package/dist/src/infra/update-restart.js +1 -1
- package/dist/src/personal-agent/repository.d.ts +2 -3
- package/dist/src/personal-agent/service.d.ts +3 -6
- package/dist/src/personal-agent/service.js +11 -1
- package/dist/src/providers/model-catalog-persistence.js +2 -2
- package/dist/src/providers/setup/voice.js +9 -4
- package/dist/src/providers/xopc-cloud-model-source.js +2 -2
- package/dist/src/voice/platform-settings.js +1 -1
- package/dist/src/voice/realtime/omniEngine.d.ts +1 -0
- package/dist/src/voice/realtime/omniEngine.js +188 -43
- package/dist/src/voice/realtime/omniRoute.d.ts +5 -2
- package/dist/src/voice/realtime/omniRoute.js +29 -3
- package/dist/src/voice/realtime/runtime.js +46 -35
- package/dist/src/voice/realtime/runtime.types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/capabilities-settings-panel-C56aelvp.js +0 -8
- package/dist/gateway/static/root/assets/composer-payload-handoff-D1xUYD5M.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-Vl3uKAHV.js +0 -1
- package/dist/gateway/static/root/assets/home-page-DYkEc3Qb.js +0 -3
- package/dist/gateway/static/root/assets/imports-page-CLbpRE5i.js +0 -1
- package/dist/gateway/static/root/assets/index-CIeY0yyg.js +0 -11
- package/dist/gateway/static/root/assets/index-D1EDrkUo.css +0 -1
- package/dist/gateway/static/root/assets/logs-page-Dtoheh2t.js +0 -2
- package/dist/gateway/static/root/assets/note-image-lightbox-C6aTUp-c.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-B2Ahfm0W.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-CpKBzGIk.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-CobfHZo0.js +0 -7
- package/dist/gateway/static/root/assets/route-preload-C0oV8og1.js +0 -2
- package/dist/gateway/static/root/assets/secret-input-Dryrns2s.js +0 -1
- package/dist/gateway/static/root/assets/session-channel-icon-D1ktvt1P.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-B3rOBkm_.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-BoLq3kSO.js +0 -2
- package/dist/gateway/static/root/assets/use-composer-attachments-BPMn8eY_.js +0 -2
- package/dist/gateway/static/root/assets/use-file-preview-expanded-4SKLb9Fh.js +0 -15
- package/dist/gateway/static/root/assets/voice-config-api-yBcUSvvn.js +0 -1
- package/dist/gateway/static/root/assets/voice-transcribe-api-D4eyeSdG.js +0 -1
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-2Lt7rQfw.js +0 -1
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-DhqlVzSI.js +0 -1
- package/dist/gateway/static/root/assets/workspace-open-location-menu-C-ItyXwL.js +0 -1
|
@@ -821,6 +821,10 @@ function registerModelsRoutes(authenticated, deps) {
|
|
|
821
821
|
error: { message: "Missing providerId" }
|
|
822
822
|
}, 400);
|
|
823
823
|
const providerId = rawId.toLowerCase();
|
|
824
|
+
if (providerId === "boson") return c.json({
|
|
825
|
+
ok: false,
|
|
826
|
+
error: { message: "Manage Boson credentials in voice settings" }
|
|
827
|
+
}, 403);
|
|
824
828
|
const stored = await new CredentialResolver().revealGatewayStoredApiKey(providerId);
|
|
825
829
|
if (stored) return c.json({
|
|
826
830
|
ok: true,
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { getDevice } from "../../../storage/sqlite/device-access-repository.js";
|
|
2
2
|
import { getPersonalRequest, init_request_repository, listPersonalRequests } from "../../../personal-agent/request-repository.js";
|
|
3
|
+
import { init_voice, voiceCallPreferencesPatchSchema } from "../../../../packages/realtime-protocol/src/voice.js";
|
|
3
4
|
import { getPersonalAgent } from "../../../personal-agent/repository.js";
|
|
4
5
|
import { TaskOriginRepository } from "../../../tasks/task-origin-repository.js";
|
|
5
6
|
import { cancelPersonalRequest, personalRequestSnapshot, publishPersonalRequest } from "../../../personal-agent/request-service.js";
|
|
6
7
|
import { writeAgentAvatarFromBase64 } from "../../agents-admin.js";
|
|
8
|
+
import { legacyNaturalModel } from "../../../voice/realtime/omniRoute.js";
|
|
7
9
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
8
10
|
import { PersonalOnboardingDraftSchema, PersonalOnboardingStepSchema, finishPersonalWelcome, getPersonalOnboarding, savePersonalOnboarding } from "../../../personal-agent/onboarding.js";
|
|
9
11
|
import { PersonalAppearanceSchema, createOrResumePersonalAgent, ensurePersonalConversationVisibility, listPersonalModels, patchPersonalProfile, refreshPersonalDelegationGuidance } from "../../../personal-agent/service.js";
|
|
@@ -11,6 +13,7 @@ import { markPersonalRead, personalUnreadSnapshot } from "../../../personal-agen
|
|
|
11
13
|
import { registerProactivityRoutes } from "../../../personal-agent/proactivity/routes.js";
|
|
12
14
|
import { z } from "zod";
|
|
13
15
|
//#region src/gateway/hono/routes/personal-agent.ts
|
|
16
|
+
init_voice();
|
|
14
17
|
init_request_repository();
|
|
15
18
|
const AvatarSchema = z.object({
|
|
16
19
|
base64: z.string().min(1).max(7e5),
|
|
@@ -39,7 +42,7 @@ const OnboardingSchema = z.object({
|
|
|
39
42
|
draft: PersonalOnboardingDraftSchema
|
|
40
43
|
}).strict();
|
|
41
44
|
const ProfileSchema = z.object({
|
|
42
|
-
voiceCallPreferences:
|
|
45
|
+
voiceCallPreferences: voiceCallPreferencesPatchSchema.optional(),
|
|
43
46
|
revision: z.number().int().positive(),
|
|
44
47
|
displayName: z.string().trim().min(1).max(60),
|
|
45
48
|
appearance: PersonalAppearanceSchema,
|
|
@@ -349,6 +352,11 @@ function registerPersonalAgentRoutes(authenticated, deps) {
|
|
|
349
352
|
error: "Invalid profile"
|
|
350
353
|
}, 400);
|
|
351
354
|
const { revision, displayName, appearance, voicePreference, voiceCallPreferences } = parsed.data;
|
|
355
|
+
const naturalModel = voiceCallPreferences?.naturalModel;
|
|
356
|
+
if (naturalModel && naturalModel !== "boson/higgs-realtime" && naturalModel !== legacyNaturalModel(deps.service.currentConfig) && naturalModel !== getPersonalAgent(ownerId)?.voiceCallPreferences.naturalModel) return c.json({
|
|
357
|
+
ok: false,
|
|
358
|
+
error: "Selected natural voice model is unavailable"
|
|
359
|
+
}, 400);
|
|
352
360
|
if (voicePreference) {
|
|
353
361
|
const { resolveStreamingTts } = await import("../../../voice/realtime/runtime.js");
|
|
354
362
|
const route = resolveStreamingTts(deps.service.currentConfig);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { init_model_usage, withModelUsageOrigin } from "../../../providers/model-usage.js";
|
|
2
1
|
import { voiceSelectionSchema } from "../../../../packages/realtime-protocol/src/voice-catalog.js";
|
|
3
|
-
import { VOICE_TIMING_METRICS, createVoiceSessionRequestSchema, init_voice } from "../../../../packages/realtime-protocol/src/voice.js";
|
|
2
|
+
import { VOICE_TIMING_METRICS, createVoiceSessionRequestSchema, higgsVoiceSchema, init_voice } from "../../../../packages/realtime-protocol/src/voice.js";
|
|
3
|
+
import { init_model_usage, withModelUsageOrigin } from "../../../providers/model-usage.js";
|
|
4
|
+
import { getModelCatalogStore, init_model_catalog_store } from "../../../providers/model-catalog-store.js";
|
|
5
|
+
import { getCredentialResolver, init_credentials } from "../../../auth/credentials.js";
|
|
4
6
|
import { getDefaultModelSync, init_providers, resolveModel } from "../../../providers/index.js";
|
|
5
7
|
import { completeWithResolvedCredentials } from "../../../providers/model-call.js";
|
|
6
|
-
import { isPersonalConversation } from "../../../personal-agent/repository.js";
|
|
7
8
|
import { PlatformVoiceError } from "../../../voice/platform-streams.js";
|
|
8
9
|
import { resolveSttProviderConfigSlice } from "../../../voice/stt/config-slice.js";
|
|
9
10
|
import { resolveSTTProviderChain } from "../../../voice/stt/factory.js";
|
|
@@ -17,9 +18,10 @@ import { speak, speakStream } from "../../../voice/tts/speak-core.js";
|
|
|
17
18
|
import { mergeTtsConfigFromAppConfig } from "../../../voice/tts/merge-config.js";
|
|
18
19
|
import { listSttProvidersForApi } from "../../../voice/stt/list-providers.js";
|
|
19
20
|
import "../../../voice/tts/index.js";
|
|
21
|
+
import { withGatewayConfigWriteLock } from "../lib/config-write-lock.js";
|
|
20
22
|
import { withModelConfigLock } from "../../../session/model-config-lock.js";
|
|
21
23
|
import { getSessionPreparation } from "../../../storage/sqlite/session-creation-repository.js";
|
|
22
|
-
import { resolveOmniRoute } from "../../../voice/realtime/omniRoute.js";
|
|
24
|
+
import { legacyNaturalModel, resolveOmniRoute, selectedNaturalModel } from "../../../voice/realtime/omniRoute.js";
|
|
23
25
|
import { VoiceSessionCreationError, resolveStreamingStt, resolveStreamingTts } from "../../../voice/realtime/runtime.js";
|
|
24
26
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
25
27
|
import { createGatewayRouteLogger } from "../lib/route-logger.js";
|
|
@@ -29,6 +31,8 @@ import { z } from "zod";
|
|
|
29
31
|
//#region src/gateway/hono/routes/voice.ts
|
|
30
32
|
init_model_usage();
|
|
31
33
|
init_voice();
|
|
34
|
+
init_model_catalog_store();
|
|
35
|
+
init_credentials();
|
|
32
36
|
init_providers();
|
|
33
37
|
const log = createGatewayRouteLogger("Voice");
|
|
34
38
|
function readVoiceApiKeyFromConfigFileOnly(cfg, kind, providerId) {
|
|
@@ -126,6 +130,95 @@ async function refineTranscript(raw, config, signal) {
|
|
|
126
130
|
}
|
|
127
131
|
function registerVoiceRoutes(authenticated, deps) {
|
|
128
132
|
const { service, strictRateLimitMiddleware } = deps;
|
|
133
|
+
const bosonSettings = async () => {
|
|
134
|
+
const config = service.currentConfig;
|
|
135
|
+
const settings = config.voice?.realtime?.boson;
|
|
136
|
+
const current = config.voice?.realtime?.omni;
|
|
137
|
+
const legacyModelLabel = current?.provider === "xopc-cloud" ? getModelCatalogStore().getSource(current.provider)?.models.find((model) => model.id === current.model)?.name : void 0;
|
|
138
|
+
return {
|
|
139
|
+
credentialSource: await getCredentialResolver().resolveApiKeySource("boson"),
|
|
140
|
+
defaultForNatural: settings?.defaultForNatural ?? false,
|
|
141
|
+
voice: settings?.voice ?? "default",
|
|
142
|
+
legacyModel: legacyNaturalModel(config) ?? null,
|
|
143
|
+
legacyModelLabel
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
authenticated.get("/api/voice/boson", async (c) => {
|
|
147
|
+
if (getGatewayPrincipal(c).kind !== "owner") return c.json({
|
|
148
|
+
ok: false,
|
|
149
|
+
error: { message: "Owner access is required" }
|
|
150
|
+
}, 403);
|
|
151
|
+
return c.json({
|
|
152
|
+
ok: true,
|
|
153
|
+
payload: await bosonSettings()
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
authenticated.post("/api/voice/boson/reveal-api-key", strictRateLimitMiddleware, async (c) => {
|
|
157
|
+
c.header("Cache-Control", "no-store");
|
|
158
|
+
if (getGatewayPrincipal(c).kind !== "owner") return c.json({
|
|
159
|
+
ok: false,
|
|
160
|
+
error: { message: "Owner access is required" }
|
|
161
|
+
}, 403);
|
|
162
|
+
const apiKey = await getCredentialResolver().revealGatewayStoredApiKey("boson");
|
|
163
|
+
return c.json({
|
|
164
|
+
ok: true,
|
|
165
|
+
payload: {
|
|
166
|
+
apiKey,
|
|
167
|
+
source: apiKey ? "credential" : "none"
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
authenticated.put("/api/voice/boson", strictRateLimitMiddleware, async (c) => {
|
|
172
|
+
if (getGatewayPrincipal(c).kind !== "owner") return c.json({
|
|
173
|
+
ok: false,
|
|
174
|
+
error: { message: "Owner access is required" }
|
|
175
|
+
}, 403);
|
|
176
|
+
const parsed = z.union([z.strictObject({ apiKey: z.string().trim().min(1).max(512).regex(/^[!-~]+$/).nullable() }), z.strictObject({
|
|
177
|
+
defaultForNatural: z.boolean().optional(),
|
|
178
|
+
voice: higgsVoiceSchema.optional()
|
|
179
|
+
}).refine((settings) => settings.defaultForNatural !== void 0 || settings.voice !== void 0)]).safeParse(await c.req.json().catch(() => null));
|
|
180
|
+
if (!parsed.success) return c.json({
|
|
181
|
+
ok: false,
|
|
182
|
+
error: { message: "Invalid Boson settings" }
|
|
183
|
+
}, 400);
|
|
184
|
+
const input = parsed.data;
|
|
185
|
+
return withModelConfigLock("__voice_settings__", async () => {
|
|
186
|
+
try {
|
|
187
|
+
const credentials = getCredentialResolver();
|
|
188
|
+
if ("apiKey" in input) if (input.apiKey) await credentials.saveApiKey("boson", input.apiKey);
|
|
189
|
+
else await credentials.deleteProfile("boson:default");
|
|
190
|
+
else if ("defaultForNatural" in input || "voice" in input) {
|
|
191
|
+
if (input.defaultForNatural && !await credentials.hasCredentials("boson")) return c.json({
|
|
192
|
+
ok: false,
|
|
193
|
+
error: { message: "Connect Boson before selecting Higgs as the default" }
|
|
194
|
+
}, 409);
|
|
195
|
+
const saved = await withGatewayConfigWriteLock(service, async () => {
|
|
196
|
+
const previous = structuredClone(service.currentConfig);
|
|
197
|
+
const next = structuredClone(previous);
|
|
198
|
+
const current = previous.voice.realtime.boson;
|
|
199
|
+
next.voice.realtime.boson = {
|
|
200
|
+
defaultForNatural: input.defaultForNatural ?? current?.defaultForNatural ?? false,
|
|
201
|
+
voice: input.voice ?? current?.voice ?? "default"
|
|
202
|
+
};
|
|
203
|
+
return service.saveConfig(next, previous);
|
|
204
|
+
});
|
|
205
|
+
if (!saved.saved) return c.json({
|
|
206
|
+
ok: false,
|
|
207
|
+
error: { message: "Could not save Boson settings" }
|
|
208
|
+
}, saved.conflict ? 409 : 500);
|
|
209
|
+
}
|
|
210
|
+
return c.json({
|
|
211
|
+
ok: true,
|
|
212
|
+
payload: await bosonSettings()
|
|
213
|
+
});
|
|
214
|
+
} catch {
|
|
215
|
+
return c.json({
|
|
216
|
+
ok: false,
|
|
217
|
+
error: { message: "Could not save Boson settings" }
|
|
218
|
+
}, 500);
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
});
|
|
129
222
|
authenticated.get("/api/voice/catalog", (c) => c.json({
|
|
130
223
|
ok: true,
|
|
131
224
|
payload: voiceSettingsCatalog(service.currentConfig)
|
|
@@ -195,7 +288,10 @@ function registerVoiceRoutes(authenticated, deps) {
|
|
|
195
288
|
capabilities: {
|
|
196
289
|
dictation: availability(Boolean(stt)),
|
|
197
290
|
assistant: availability(Boolean(stt && tts)),
|
|
198
|
-
natural:
|
|
291
|
+
natural: selectedNaturalModel(config) === "boson/higgs-realtime" ? omni ? { available: true } : {
|
|
292
|
+
available: false,
|
|
293
|
+
reasonCode: "PROVIDER_UNAVAILABLE"
|
|
294
|
+
} : availability(Boolean(omni)),
|
|
199
295
|
languages: ["zh", "en"],
|
|
200
296
|
bargeIn: config.voice?.realtime?.bargeIn ?? true,
|
|
201
297
|
mediaTransports: ["websocket-pcm"]
|
|
@@ -309,14 +405,11 @@ function registerVoiceRoutes(authenticated, deps) {
|
|
|
309
405
|
message: "Invalid realtime voice session request"
|
|
310
406
|
}
|
|
311
407
|
}, 400);
|
|
312
|
-
if (parsed.data.conversationId && isPersonalConversation(parsed.data.conversationId) && parsed.data.mode !== "assistant") return c.json({
|
|
313
|
-
ok: false,
|
|
314
|
-
error: {
|
|
315
|
-
code: "INVALID_REQUEST",
|
|
316
|
-
message: "Personal AI voice requires assistant mode"
|
|
317
|
-
}
|
|
318
|
-
}, 400);
|
|
319
408
|
try {
|
|
409
|
+
if (parsed.data.testHiggsVoice && getGatewayPrincipal(c).kind !== "owner") return c.json({
|
|
410
|
+
ok: false,
|
|
411
|
+
error: { message: "Owner access is required" }
|
|
412
|
+
}, 403);
|
|
320
413
|
const preparation = parsed.data.conversationId ? getSessionPreparation(parsed.data.conversationId) : void 0;
|
|
321
414
|
if (preparation && preparation.state !== "ready") return c.json({
|
|
322
415
|
ok: false,
|
|
@@ -51,7 +51,7 @@ function requiredGatewayScope(method, path) {
|
|
|
51
51
|
if (method === "POST" && path === "/api/automations/simulate") return "automations.read";
|
|
52
52
|
if (method === "POST" && /^\/api\/notes\/[^/]+\/ai\/edit$/.test(path)) return "workspace.read";
|
|
53
53
|
if (path.startsWith("/api/automations") || path.startsWith("/api/automation-runs")) return methodScope(method, "automations.read", "automations.write");
|
|
54
|
-
if (path === "/api/voice/selection" || path === "/api/voice/catalog/refresh") return "voice.configure";
|
|
54
|
+
if (path === "/api/voice/selection" || path === "/api/voice/catalog/refresh" || path === "/api/voice/boson" || path === "/api/voice/boson/reveal-api-key") return "voice.configure";
|
|
55
55
|
if (path.startsWith("/api/voice") || path.startsWith("/api/media") || path.startsWith("/api/clarifications")) return "sessions.write";
|
|
56
56
|
if (path.startsWith("/api/commands") || path.startsWith("/api/skills")) return methodScope(method, "agents.read", "gateway.admin");
|
|
57
57
|
if (path === "/api/user-model/refresh" || path.startsWith("/api/user-model/refresh/")) return "gateway.admin";
|
|
@@ -658,6 +658,10 @@ export declare class GatewayConfigCoordinator {
|
|
|
658
658
|
maxDictationMs: number;
|
|
659
659
|
maxConversationMs: number;
|
|
660
660
|
bargeIn: boolean;
|
|
661
|
+
boson?: {
|
|
662
|
+
defaultForNatural: boolean;
|
|
663
|
+
voice: "default" | "chloe" | "oliver";
|
|
664
|
+
};
|
|
661
665
|
stt?: {
|
|
662
666
|
provider: "xopc-cloud";
|
|
663
667
|
model: string;
|
|
@@ -81,11 +81,11 @@ import { MessageBus, MessageBusShutdownError } from "../infra/bus/queue.js";
|
|
|
81
81
|
import "../infra/bus/index.js";
|
|
82
82
|
import { collectMediaUrisFromMessages, deleteMediaUris } from "../media/session-references.js";
|
|
83
83
|
import { AgentService } from "../agent/service.js";
|
|
84
|
+
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
84
85
|
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
85
86
|
import { ChannelManager } from "../channels/manager.js";
|
|
86
87
|
import { ChatPreviewService } from "../chat-previews/service.js";
|
|
87
88
|
import "../chat-previews/index.js";
|
|
88
|
-
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
89
89
|
import { configureGatewayHttpProxy } from "../infra/http-proxy-env.js";
|
|
90
90
|
import "../config/index.js";
|
|
91
91
|
import { ManagedComposioEventPoller } from "../connectors/composio-managed-events.js";
|
|
@@ -222,7 +222,7 @@ var GatewayService = class {
|
|
|
222
222
|
phoneStreams = new PhoneStreamGateway(this.isRealtimePrincipalActive);
|
|
223
223
|
voiceRealtime = new VoiceRealtimeRuntime({
|
|
224
224
|
isPrincipalActive: this.isRealtimePrincipalActive,
|
|
225
|
-
getConversationContext: async (conversationId, expectedTranscriptId) => {
|
|
225
|
+
getConversationContext: async (conversationId, expectedTranscriptId, baseInstructions) => {
|
|
226
226
|
if ((await this.sessionIndex.getSessionMetadata(conversationId))?.transcriptId !== expectedTranscriptId) throw new Error("Conversation changed before voice connection");
|
|
227
227
|
const messages = await this.sessionIndex.loadMessages(conversationId);
|
|
228
228
|
const after = await this.sessionIndex.getSessionMetadata(conversationId);
|
|
@@ -231,7 +231,7 @@ var GatewayService = class {
|
|
|
231
231
|
const persona = buildVoicePersonaContext({
|
|
232
232
|
getConfig: () => this.config,
|
|
233
233
|
conversationId,
|
|
234
|
-
maxChars: voicePersonaBudget(
|
|
234
|
+
maxChars: voicePersonaBudget(baseInstructions)
|
|
235
235
|
});
|
|
236
236
|
const context = {
|
|
237
237
|
identity: persona.block,
|
|
@@ -244,7 +244,7 @@ var GatewayService = class {
|
|
|
244
244
|
workspaceId: getSessionConfig(conversationId)?.workingDirectoryOverride ?? profile.resolvedWorkspacePath,
|
|
245
245
|
projectId: after?.projectId,
|
|
246
246
|
history: messages,
|
|
247
|
-
maxChars: voiceMemoryBudget(
|
|
247
|
+
maxChars: voiceMemoryBudget(baseInstructions, context)
|
|
248
248
|
});
|
|
249
249
|
return {
|
|
250
250
|
...context,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import { voiceSupportsMode } from "../../packages/realtime-protocol/src/voice-catalog.js";
|
|
2
|
+
import { init_voice } from "../../packages/realtime-protocol/src/voice.js";
|
|
1
3
|
import "../agent-config/schema.js";
|
|
2
4
|
import { init_agent_config } from "../agent-config/index.js";
|
|
3
5
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
4
6
|
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
5
7
|
import { phoneModelProfile } from "../phone/model-policy.js";
|
|
6
8
|
import { init_model_policy, isComputerModel, isDedicatedComputerProfile } from "../computer/model-policy.js";
|
|
7
|
-
import { voiceSupportsMode } from "../../packages/realtime-protocol/src/voice-catalog.js";
|
|
8
|
-
import { init_voice } from "../../packages/realtime-protocol/src/voice.js";
|
|
9
9
|
import { getModelCatalogStore, init_model_catalog_store } from "../providers/model-catalog-store.js";
|
|
10
10
|
import "../phone/model-adapter.js";
|
|
11
11
|
import { compareCatalogModels } from "../providers/model-catalog-ranking.js";
|
|
@@ -193,9 +193,17 @@ async function scanProduct(service, source, owner = "gateway-owner") {
|
|
|
193
193
|
inventory.notices.push(`${path}: some contents could not be scanned; only listed items can be imported.`);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
const roots = inventory.candidates.filter((c) => c.kind === "project").sort((a, b) =>
|
|
198
|
-
|
|
196
|
+
const importableProjects = new Set(inventory.candidates.flatMap((item) => item.parentId && (item.kind === "skill" || item.kind === "context") && (item.status === "ready" || item.status === "conflict") ? [item.parentId] : []));
|
|
197
|
+
const roots = inventory.candidates.filter((c) => c.kind === "project" && importableProjects.has(c.id)).sort((a, b) => a.name.localeCompare(b.name) || a.location.localeCompare(b.location));
|
|
198
|
+
const standaloneConnections = inventory.candidates.filter((c) => c.kind === "connection" && c.parentId && !importableProjects.has(c.parentId)).map((c) => ({
|
|
199
|
+
...c,
|
|
200
|
+
parentId: void 0
|
|
201
|
+
}));
|
|
202
|
+
inventory.candidates = [
|
|
203
|
+
...inventory.candidates.filter((c) => c.scope === "user"),
|
|
204
|
+
...roots.flatMap((p) => [p, ...inventory.candidates.filter((c) => c.parentId === p.id)]),
|
|
205
|
+
...standaloneConnections
|
|
206
|
+
];
|
|
199
207
|
new ImportSelectionRepository(owner).save("inventory", inventory);
|
|
200
208
|
return publicInventory(inventory);
|
|
201
209
|
}
|
|
@@ -2,8 +2,8 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { init_paths, resolveConfigPath } from "../config/paths.js";
|
|
4
4
|
import { loadConfig } from "../config/loader.js";
|
|
5
|
-
import { resolveGatewayService } from "../daemon/service.js";
|
|
6
5
|
import { isRestartEnabled } from "../config/commands.flags.js";
|
|
6
|
+
import { resolveGatewayService } from "../daemon/service.js";
|
|
7
7
|
import { authorizeGatewaySigusr1Restart, writeGatewayRestartIntentSync } from "./restart.js";
|
|
8
8
|
import { findVerifiedGatewayListenerPidsOnPortSync, signalVerifiedGatewayPidSync } from "./gateway-processes.js";
|
|
9
9
|
import { refreshGatewayServiceAfterUpdate } from "./update-service-refresh.js";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { VoiceCallPreferences } from '@xopcai/realtime-protocol/voice';
|
|
1
2
|
export type PersonalAgentState = 'provisioning' | 'ready' | 'error';
|
|
2
3
|
export type PersonalAppearance = 'loopi' | 'loopi-curious' | 'loopi-care' | 'custom';
|
|
3
4
|
export interface PersonalAgentRecord {
|
|
@@ -13,9 +14,7 @@ export interface PersonalAgentRecord {
|
|
|
13
14
|
model: string;
|
|
14
15
|
voice: string;
|
|
15
16
|
} | null;
|
|
16
|
-
voiceCallPreferences:
|
|
17
|
-
openingGreetingEnabled: boolean;
|
|
18
|
-
};
|
|
17
|
+
voiceCallPreferences: VoiceCallPreferences;
|
|
19
18
|
revision: number;
|
|
20
19
|
errorMessage: string | null;
|
|
21
20
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { VoiceCallPreferencesPatch } from '@xopcai/realtime-protocol/voice';
|
|
2
3
|
import { type PersonalAgentRecord } from './repository.js';
|
|
3
4
|
export { personalInstructions } from './prompts.js';
|
|
4
5
|
export declare const PersonalAppearanceSchema: z.ZodEnum<{
|
|
@@ -33,13 +34,9 @@ export declare function patchPersonalProfile(service: PersonalAgentHost, ownerId
|
|
|
33
34
|
provider: string;
|
|
34
35
|
model: string;
|
|
35
36
|
voice: string;
|
|
36
|
-
} | null, voiceCallPreferences?:
|
|
37
|
-
openingGreetingEnabled: boolean;
|
|
38
|
-
}): Promise<PersonalAgentRecord | null>;
|
|
37
|
+
} | null, voiceCallPreferences?: VoiceCallPreferencesPatch): Promise<PersonalAgentRecord | null>;
|
|
39
38
|
export declare function updatePersonalProfileRecord(ownerId: string, revision: number, displayName: string, appearance: PersonalAppearance, voicePreference?: {
|
|
40
39
|
provider: string;
|
|
41
40
|
model: string;
|
|
42
41
|
voice: string;
|
|
43
|
-
} | null, voiceCallPreferences?:
|
|
44
|
-
openingGreetingEnabled: boolean;
|
|
45
|
-
}): Promise<PersonalAgentRecord | null>;
|
|
42
|
+
} | null, voiceCallPreferences?: VoiceCallPreferencesPatch): Promise<PersonalAgentRecord | null>;
|
|
@@ -153,13 +153,23 @@ async function patchPersonalProfile(service, ownerId, revision, displayName, app
|
|
|
153
153
|
async function updatePersonalProfileRecord(ownerId, revision, displayName, appearance, voicePreference, voiceCallPreferences) {
|
|
154
154
|
const current = new AgentCatalogRepository().get(personalAgentId(ownerId));
|
|
155
155
|
if (!current || current.provisioningState !== "ready" || current.revision !== revision || getPersonalAgent(ownerId)?.state !== "ready") return null;
|
|
156
|
+
const callPreferences = {
|
|
157
|
+
openingGreetingEnabled: true,
|
|
158
|
+
...current.profile?.voiceCallPreferences,
|
|
159
|
+
...voiceCallPreferences
|
|
160
|
+
};
|
|
156
161
|
const profile = {
|
|
157
162
|
...current.profile,
|
|
158
163
|
name: displayName,
|
|
159
164
|
emoji: appearanceEmoji(appearance),
|
|
160
165
|
avatar: appearanceAvatar(appearance),
|
|
161
166
|
...voicePreference !== void 0 ? { voicePreference: voicePreference ?? void 0 } : {},
|
|
162
|
-
...voiceCallPreferences ? { voiceCallPreferences
|
|
167
|
+
...voiceCallPreferences ? { voiceCallPreferences: {
|
|
168
|
+
openingGreetingEnabled: callPreferences.openingGreetingEnabled,
|
|
169
|
+
defaultMode: callPreferences.defaultMode,
|
|
170
|
+
naturalModel: callPreferences.naturalModel ?? void 0,
|
|
171
|
+
higgsVoice: callPreferences.higgsVoice ?? void 0
|
|
172
|
+
} } : {},
|
|
163
173
|
instructions: personalInstructions()
|
|
164
174
|
};
|
|
165
175
|
try {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { init_paths_state, resolveXopcCloudCatalogCachePath } from "../config/paths-state.js";
|
|
3
3
|
import { init_write_file_atomic, writeTextAtomic } from "../infra/write-file-atomic.js";
|
|
4
|
+
import { voiceManifestSchema } from "../../packages/realtime-protocol/src/voice-catalog.js";
|
|
5
|
+
import { init_voice } from "../../packages/realtime-protocol/src/voice.js";
|
|
4
6
|
import { PhoneModelMetadataSchema, init_contracts } from "../phone/contracts.js";
|
|
5
7
|
import { ComputerProfileSchema, init_src } from "../../packages/computer-control-contract/src/index.js";
|
|
6
8
|
import { ImageGenerationCapabilitiesSchema, init_models_json } from "../config/models-json.js";
|
|
7
|
-
import { voiceManifestSchema } from "../../packages/realtime-protocol/src/voice-catalog.js";
|
|
8
|
-
import { init_voice } from "../../packages/realtime-protocol/src/voice.js";
|
|
9
9
|
import { readFileSync, rmSync } from "node:fs";
|
|
10
10
|
import { z } from "zod";
|
|
11
11
|
import { rm } from "node:fs/promises";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
2
1
|
import { voiceSupportsMode } from "../../../packages/realtime-protocol/src/voice-catalog.js";
|
|
3
|
-
import { init_voice } from "../../../packages/realtime-protocol/src/voice.js";
|
|
2
|
+
import { HIGGS_REALTIME_REF, init_voice } from "../../../packages/realtime-protocol/src/voice.js";
|
|
3
|
+
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
4
4
|
import { getModelCatalogStore, init_model_catalog_store } from "../model-catalog-store.js";
|
|
5
5
|
import { compareCatalogModels } from "../model-catalog-ranking.js";
|
|
6
6
|
import { BAILIAN_PLAN_HOST, BAILIAN_PLAN_OMNI_MODEL, BAILIAN_PLAN_OMNI_VOICE, BAILIAN_PLAN_PROVIDER, BAILIAN_PLAN_STT_MODEL, BAILIAN_PLAN_TTS_MODEL, BAILIAN_PLAN_TTS_VOICE } from "../../voice/token-plan.js";
|
|
@@ -102,7 +102,8 @@ function readSetupVoiceState(provider, config) {
|
|
|
102
102
|
const current = {};
|
|
103
103
|
if (tts?.provider) current.speech = `${tts.provider}/${tts.providers?.[tts.provider]?.model ?? "default"}`;
|
|
104
104
|
if (stt?.provider) current.transcription = `${stt.provider}/${stt.providers?.[stt.provider]?.model ?? "default"}`;
|
|
105
|
-
if (
|
|
105
|
+
if (config.voice?.realtime.boson?.defaultForNatural) current.conversation = HIGGS_REALTIME_REF;
|
|
106
|
+
else if (omni) current.conversation = `${omni.provider}/${omni.model}`;
|
|
106
107
|
return {
|
|
107
108
|
current,
|
|
108
109
|
choices,
|
|
@@ -233,7 +234,11 @@ function applySetupVoice(config, assignments) {
|
|
|
233
234
|
enabled: false,
|
|
234
235
|
order: []
|
|
235
236
|
};
|
|
236
|
-
if (use === "conversation" && next.voice)
|
|
237
|
+
if (use === "conversation" && next.voice) {
|
|
238
|
+
const realtime = next.voice.realtime;
|
|
239
|
+
if (realtime.boson?.defaultForNatural) realtime.boson.defaultForNatural = false;
|
|
240
|
+
else realtime.defaultEngine = "omni";
|
|
241
|
+
}
|
|
237
242
|
if (use === "transcription" && next.tools.media?.audio) {
|
|
238
243
|
next.tools.media.audio.fallback = {
|
|
239
244
|
enabled: false,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { voiceManifestSchema } from "../../packages/realtime-protocol/src/voice-catalog.js";
|
|
2
|
+
import { init_voice } from "../../packages/realtime-protocol/src/voice.js";
|
|
1
3
|
import { PhoneModelMetadataSchema, init_contracts } from "../phone/contracts.js";
|
|
2
4
|
import { init_model_policy, isDedicatedComputerProfile } from "../computer/model-policy.js";
|
|
3
5
|
import { ImageGenerationCapabilitiesSchema, init_models_json } from "../config/models-json.js";
|
|
4
|
-
import { voiceManifestSchema } from "../../packages/realtime-protocol/src/voice-catalog.js";
|
|
5
|
-
import { init_voice } from "../../packages/realtime-protocol/src/voice.js";
|
|
6
6
|
import { init_xopc_cloud_config, resolveXopcModelRouterUrl } from "./xopc-cloud-config.js";
|
|
7
7
|
import { getProviderAuthService, init_provider_auth_service } from "./provider-auth-service.js";
|
|
8
8
|
//#region src/providers/xopc-cloud-model-source.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
2
1
|
import { voiceSupportsMode } from "../../packages/realtime-protocol/src/voice-catalog.js";
|
|
3
2
|
import { init_voice } from "../../packages/realtime-protocol/src/voice.js";
|
|
3
|
+
import { ConfigSchema, init_schema } from "../config/schema.js";
|
|
4
4
|
import { getModelCatalogStore, init_model_catalog_store } from "../providers/model-catalog-store.js";
|
|
5
5
|
import { requirePlatformVoiceModel } from "./platform-catalog.js";
|
|
6
6
|
import { createHash } from "node:crypto";
|