@xopcai/xopc 0.0.450 → 0.0.454
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-BKH-qNPt.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BX5HhrTI.js → agent-avatar-dicebear-DY6IWy0_.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-C7Dx9nt1.js → agent-avatar-display-tnAtQOAZ.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-AAJsxEjB.js → agent-defaults-settings-panel-BLQ2N_dY.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-BhtzU8qr.js → agent-plugin-dialog-Bfsm4GOs.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-CbGYb9WI.js → agents-CDNiLv0W.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-CShyoj9I.js → agents-admin-api-DGZsm8U4.js} +1 -1
- package/dist/gateway/static/root/assets/{api-BET9vZ1l.js → api-Bbj5k-7e.js} +1 -1
- package/dist/gateway/static/root/assets/api-BhipC15e.js +1 -0
- package/dist/gateway/static/root/assets/{app-link-CdD448kS.js → app-link-CCZ-LmVT.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-BxOShFPO.js → app-management-settings-panel-fwhXHKxt.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-L450QlMW.js → appearance-settings-BHkl-vFO.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-Bz6_fyMs.js → apps-page-DtCWwdsK.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-BCXEOal7.js → archive-plugin-B9xaxa7V.js} +1 -1
- package/dist/gateway/static/root/assets/arrow-up-right-T72JbQ1Q.js +1 -0
- package/dist/gateway/static/root/assets/{automation-api-B3Jnoa2G.js → automation-api-BHMjSwcy.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-BHAKc5QI.js → automation-result-state-BgAjEoNV.js} +1 -1
- package/dist/gateway/static/root/assets/automation-run-list-D3Eon5C0.js +1 -0
- package/dist/gateway/static/root/assets/{automation-task-card-Clf0fe_n.js → automation-task-card-DJRg72t-.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BEG5xLew.js → automations-page-DdAzXb7s.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-Cfq1C6XB.js → automations-workspace-D0nNat6N.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-B7tuUWzS.js → binary-plugins-CgsjdprR.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-D-YHASZr.js → block-editor-r6vj6dZO.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-DdMMia7Y.js → browser-settings-page-APCGT8Yr.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-YfkMBZCb.js → capabilities-0gYkjdax.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-Cxh3nYa6.js → capabilities-BgBwcqvY.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-B1x3TwdV.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CZ78ckHR.js +8 -0
- package/dist/gateway/static/root/assets/capability-navigation-QtHJxxW2.js +1 -0
- package/dist/gateway/static/root/assets/{channels-DdSEH-R2.js → channels-8Y08v4Q2.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-CgasFAm4.js → chat-agents-api-BRQDNNI5.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-Cgks7rH3.js → chat-chart-block-qMGhfeQZ.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-CSTyfO9c.js +71 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-aCu4X5Jo.js → chat-terminal-dock-0PJ9dURQ.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-Bku_h283.js → command-palette-api-C4U_-rDo.js} +1 -1
- package/dist/gateway/static/root/assets/composer-model-config-control-B9Q40ptH.js +1 -0
- package/dist/gateway/static/root/assets/composer-notifications-ByuA8h5Z.js +1 -0
- package/dist/gateway/static/root/assets/composer-payload-handoff-zr1JDn3p.js +1 -0
- package/dist/gateway/static/root/assets/{computer-settings-page-zvWUPPAr.js → computer-settings-page-D2F1quZR.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-CgULhOBZ.js +1 -0
- package/dist/gateway/static/root/assets/{connection-usage-guide-DL2T6cSN.js → connection-usage-guide-DkDsHm_l.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-a0gQC-nc.js → connector-service-page-1AcvESmp.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-DNVUmf9M.js → connectors-api-C1OML7OO.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-CMIY0Zj_.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-E0cqnNlR.js → date-picker-D1eFhoMI.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-CrC_VKpw.js → date-time-picker-CqplKVk6.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-D1MkNl5F.js → desktop-pet-UmrjWSq-.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-BA6u5Md-.js → desktop-pet-settings-DRRDJMu6.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-DnqJb6NS.js → dev-view-store-CtKJMK52.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-Ba3d606o.js → device-pairing-wizard-C4aSCbqo.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-lcps-hsZ.js → directory-picker-path-field-D9U9yfnb.js} +1 -1
- package/dist/gateway/static/root/assets/{discussion-annotation-sync-BmvCn1Xn.js → discussion-annotation-sync-D-eGt1_L.js} +1 -1
- package/dist/gateway/static/root/assets/dist-CY7CS_D3.js +1 -0
- package/dist/gateway/static/root/assets/extension-authoritative-grants-8ONVOjPW.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-BOJbNj9D.js → extension-debug-page-BTLcC8-r.js} +1 -1
- package/dist/gateway/static/root/assets/extension-iframe-host-D0-OvFV2.js +1 -0
- package/dist/gateway/static/root/assets/{extension-marketplace-api-BrLsjJLA.js → extension-marketplace-api-DLRCNlej.js} +1 -1
- package/dist/gateway/static/root/assets/extension-message-router-DboLTCVp.js +1 -0
- package/dist/gateway/static/root/assets/extension-page-CdpI-Plq.js +1 -0
- package/dist/gateway/static/root/assets/extension-provider-DUDaMvQg.js +1 -0
- package/dist/gateway/static/root/assets/{extension-settings-page-BuV-Vuvb.js → extension-settings-page-biWCnMGr.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-B3nLuoQO.js → file-preview-surface-CnBRiQo8.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-CtZy1Qw0.js → gateway-config-swr-BV5fpBSK.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-CG65gHUY.js → gateway-realtime-CIqLQXlm.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-B6T1Xzag.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-Cr5xtfZU.js → gateway-restart-DBkfCzT5.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-BwMwdwXh.js → gateway-settings-DTzXUm9f.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DztAHGru.js → gateway-startup-retry-B49N_Ngm.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-yHc-ZfjU.js → global-defaults-api-DVpxe45P.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-DvaxBrjG.js +3 -0
- package/dist/gateway/static/root/assets/{image-generation-api-D5eo_stq.js → image-generation-api-CAKYslID.js} +1 -1
- package/dist/gateway/static/root/assets/imports-page-C2KmQJ2H.js +1 -0
- package/dist/gateway/static/root/assets/index-B49yIcMR.css +1 -0
- package/dist/gateway/static/root/assets/index-BpzvsoS1.js +11 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-B-v1FT3P.js → install-connector-dialog-CmNvZt8M.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BLBASsCP.js → keyboard-shortcuts-settings-syG2KRr2.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-DGA4EHGm.js +1 -0
- package/dist/gateway/static/root/assets/local-apps-CB-MZAaL.js +1 -0
- package/dist/gateway/static/root/assets/{local-apps-page-Db93n4Zy.js → local-apps-page-I0O2ybpp.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-C6oPrCYY.js → local-session-drafts-DsPDloiq.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-CQcW9_qA.js → locale-store-D3c8DIm-.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-u9FTZaTh.js +2 -0
- package/dist/gateway/static/root/assets/{management-api-Dh2r5GrQ.js → management-api-uxRxRX-6.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-Fj25fafb.js → management-settings-BCbDfM7f.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-CkihBz06.js → markdown-view-ohhExTMC.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-jh3dwNfg.js → mcp-conversation-setup-page-382BGqQC.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-BUapXtQZ.js → media-plugins-B5wtLz3Z.js} +1 -1
- package/dist/gateway/static/root/assets/messages-DPLud9GK.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-DYxgKUju.js → model-selector-CoKcq0AZ.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-D2cdb8nZ.js → models-hub-cache-CtooMAQW.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-BMtKrv-J.js → note-detail-panel-DiGQtSD0.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-Ds4M9fJJ.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-BhRyWe3S.js → notes-api-Cvet94d8.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-DcmRJJbt.js → notes-page-DwlmKweX.js} +2 -2
- package/dist/gateway/static/root/assets/{oauth-api-D5iBtOid.js → oauth-api-BHp5dVNh.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-CmHsHynu.js → oauth-provider-connect-cvxtmf3C.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-BwsK2uDe.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-aApa5ApP.js → page-context-draft-ieK9IN3R.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-Xe8CP_4a.js +1 -0
- package/dist/gateway/static/root/assets/personal-avatar-BZSC0BLP.js +1 -0
- package/dist/gateway/static/root/assets/personal-page-CbiD8Wn7.js +1 -0
- package/dist/gateway/static/root/assets/personal-profile-settings-KvdNnaNv.js +1 -0
- package/dist/gateway/static/root/assets/personal-settings-panel-_cxSzWsN.js +1 -0
- package/dist/gateway/static/root/assets/phone-DdhTnt6X.js +1 -0
- package/dist/gateway/static/root/assets/{phone-dependencies-card-BBk6k0t0.js → phone-dependencies-card-C2OWtG2B.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-QJt8SAb7.js → phone-model-connection-CqmafRhr.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-CRxUxJNZ.js → phone-model-picker-BwYQtl_5.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-Df64khPY.js → phone-settings-page-CPteZZWu.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-DAuPd2ie.js → phone-workspace-store-ReUEjG9m.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-Bcer4RC3.js → plugin-details-dialog-BlNVtbEU.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-DdV7q9Bd.js → preference-select-fields-BbA-g7Zq.js} +1 -1
- package/dist/gateway/static/root/assets/{product-automation-feedback-uKndNxpU.js → product-automation-feedback-DcPY76PG.js} +1 -1
- package/dist/gateway/static/root/assets/{product-delivery-DRyD9_Xq.js → product-delivery-2Ks17_OH.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-A7lyoXVv.js → product-open-page-BBJ7glAm.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-BrdvkWOg.js → product-preview-content-UTOSc_ii.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-BxHKejcX.js → product-preview-modal-Q1RZqeMo.js} +2 -2
- package/dist/gateway/static/root/assets/project-detail-page-BlrtsEZK.js +7 -0
- package/dist/gateway/static/root/assets/{project-understanding-BVhSoQHu.js → project-understanding-B35f5MkG.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-DSPoyFda.js → projects-page-CBH-sHOU.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-B47s6_9Q.js → providers-api-BSmKlQ8K.js} +1 -1
- package/dist/gateway/static/root/assets/{recording-upload-B-IHTsVC.js → recording-upload-P1WcsdEY.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-Bo8YiUE0.js → registry-api-DnVlwJ6M.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-BRf9znLV.js → remote-access-hub-CVEj3p0J.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-CAljzZx8.js → resource-unavailable-B_S1dFze.js} +1 -1
- package/dist/gateway/static/root/assets/route-preload-DGmrxJSb.js +2 -0
- package/dist/gateway/static/root/assets/runtime-health-zDkHcOZO.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-C28pB9__.js → runtime-tools-api-970sp5zI.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-XYeadnhL.js → runtime-tools-settings-panel-au6vZ0sL.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-XeRFtJ-Z.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-D7FWdG43.js → session-api-CuT7EPI0.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-CyZHiuWY.js +25 -0
- package/dist/gateway/static/root/assets/{sessions-page-CyYkCsfy.js → sessions-page-BIxDwAIX.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Cy7xeKmH.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-3HwfHbqz.js → settings-advanced-section-nbkGHQ_4.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-BVvIXZlg.js → settings-mode-store-EQHfksdV.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-C6ypo-jn.js → settings-page-D6RNHRHq.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-CheboxIM.js → settings-page-header-19GJ_a45.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-CPFMZaLF.js → settings-page-layout-B2WCzSel.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-BbCzYq9S.js → setup-interaction-page-C5i7y_pM.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-DUNgVqtz.js → setup-status-panel-Cwp8YKdT.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-0P9ghttc.js → share-link-dialog-DDsVTMZ-.js} +1 -1
- package/dist/gateway/static/root/assets/share-preview-page-C1S_gWGf.js +2 -0
- package/dist/gateway/static/root/assets/{shares-api-iiw4F-ra.js → shares-api-CepTFl1f.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BQ1qXAJn.js → shares-settings-Cv-tdcAN.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-CLtIjE8K.js → skill-api-CsT-iHnl.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-DY0rRlUk.js → skill-list-api-CMJTjvSo.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-DJC8uWLu.js → skill-reload-api-S6B7P9ur.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-CQYf7s9f.js → skills-page-BKcsJtYx.js} +1 -1
- package/dist/gateway/static/root/assets/sliding-segmented-CgQ3BFdb.js +1 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-DdBmyc93.js → system-settings-panel-DhHPM5qU.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-Bb1R4QsJ.js → task-detail-page-BHH2_Z9_.js} +3 -3
- package/dist/gateway/static/root/assets/{task-input-card-Xl4xFjCn.js → task-input-card-D_2rNF31.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-B1EVdx4L.js → terminal-panel-store-CcUWpqvC.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-BTkYFJOE.js → theme-store-D9pquJiM.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-h-gbBAtl.js → tracing-settings-page-CjNrKILr.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-BDoegsWD.js → tunnel-api-GtLO40pc.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-DyFJDqHy.js → understanding-activity-store-BhB5wAbq.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-C0SRcgyd.js → understanding-refresh-store-BxtpXRfV.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-CbJsT3zT.js → usage-page-CZa_a6_7.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-CB2B4NMO.js → use-autosave-BtOp6W9H.js} +1 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-BTQZx8Nj.js +2 -0
- package/dist/gateway/static/root/assets/use-file-preview-expanded-B7nscYS4.js +15 -0
- package/dist/gateway/static/root/assets/{use-personal-profile-r0OuOlBJ.js → use-personal-profile-Cj7WGOfv.js} +1 -1
- package/dist/gateway/static/root/assets/use-realtime-voice-BS1rygyV.js +1 -0
- package/dist/gateway/static/root/assets/{use-workspace-tree-B9Bmg8LV.js → use-workspace-tree-DYosm4Gz.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-BudrJ73l.js → user-model-page-DmmJODQ4.js} +1 -1
- package/dist/gateway/static/root/assets/voice-CDlC6XMH.js +1 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-C8wd8ijq.js → voice-api-key-field-8voN8dQG.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-CrZd2aqw.js +1 -0
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-TAmJNcsN.js → voice-input-shortcut-events-DcFp_fy4.js} +1 -1
- package/dist/gateway/static/root/assets/voice-settings-AckvhNnP.js +1 -0
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DsyYo1p0.js → work-discovery-overlay-DAIk5csp.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-BJ9VN5Zd.js → work-discovery-page-CJeixeWQ.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-CFj-ZOJE.js → working-directory-picker-modal-BW76VaD5.js} +1 -1
- package/dist/gateway/static/root/assets/workspace-api-Cu2gzmVn.js +2 -0
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-pVOYuH7u.js +1 -0
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-DyqI793w.js +1 -0
- package/dist/gateway/static/root/assets/workspace-open-location-menu-DTYkApy8.js +1 -0
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-DN4DdOWZ.js → xopc-cloud-account-card-Rytp_NWV.js} +1 -1
- package/dist/gateway/static/root/index.html +106 -99
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/extension-capabilities.js +26 -4
- package/dist/packages/gateway-contract/src/index.js +3 -1
- package/dist/packages/gateway-contract/src/local-app-delegation.js +22 -0
- package/dist/packages/gateway-contract/src/local-apps.js +35 -4
- package/dist/packages/realtime-protocol/src/voice.js +37 -3
- 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 +11 -2
- 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/context/execution-context.js +1 -1
- package/dist/src/agent/embedded/execution-tool-policy.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +66 -9
- package/dist/src/agent/embedded/run-turn.js +35 -1
- package/dist/src/agent/embedded/runs.d.ts +1 -0
- package/dist/src/agent/embedded/runs.js +13 -0
- package/dist/src/agent/embedded/types.d.ts +2 -0
- 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/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/service.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +1 -1
- package/dist/src/agent/tools/factory.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +5 -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/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/xopc-use-tool.js +6 -5
- package/dist/src/agent-config/schema.d.ts +45 -0
- package/dist/src/agent-config/schema.js +3 -1
- package/dist/src/capabilities/runtime/dispatcher.d.ts +11 -0
- package/dist/src/capabilities/runtime/dispatcher.js +22 -6
- package/dist/src/capabilities/runtime/product.js +2 -0
- package/dist/src/cli/commands/gateway/lifecycle.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 +52 -2
- package/dist/src/config/schema.js +29 -5
- package/dist/src/gateway/hono/lib/safe-voice-config.d.ts +1 -0
- package/dist/src/gateway/hono/lib/safe-voice-config.js +10 -2
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +107 -12
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/imports.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +16 -0
- package/dist/src/gateway/hono/routes/local-app-capabilities.js +16 -5
- 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-apps.js +3 -2
- 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/projects.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/user-model.js +2 -2
- package/dist/src/gateway/hono/routes/voice.js +108 -14
- 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/config-coordinator.d.ts +11 -2
- 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.js +52 -19
- package/dist/src/gateway/xopc-cloud-capability-setup.js +2 -2
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/imports/inventory.js +11 -3
- package/dist/src/infra/update-restart.js +1 -1
- 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/capabilities/contracts.js +2 -0
- package/dist/src/local-apps/capabilities/delegate.d.ts +3 -0
- package/dist/src/local-apps/capabilities/delegate.js +166 -0
- package/dist/src/local-apps/capabilities/projections.d.ts +265 -0
- package/dist/src/local-apps/capabilities/projections.js +53 -0
- package/dist/src/local-apps/capabilities/resource-policy.d.ts +3 -0
- package/dist/src/local-apps/capabilities/resource-policy.js +43 -0
- package/dist/src/local-apps/capabilities/runtime.d.ts +2 -1
- package/dist/src/local-apps/capabilities/runtime.js +108 -39
- package/dist/src/local-apps/fix-guidance.js +4 -1
- 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 +108 -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 +48 -5
- package/dist/src/local-apps/service.js +136 -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/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/repository.d.ts +2 -3
- 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 +1 -1
- package/dist/src/personal-agent/service.d.ts +3 -6
- package/dist/src/personal-agent/service.js +12 -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/process/fork-worker.d.ts +2 -0
- package/dist/src/process/fork-worker.js +7 -0
- 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/realtime/broker.js +1 -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/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/read.js +21 -3
- 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/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 +16 -3
- 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 +9 -0
- package/dist/src/voice/realtime/omniEngine.js +425 -54
- package/dist/src/voice/realtime/omniRoute.d.ts +6 -2
- package/dist/src/voice/realtime/omniRoute.js +50 -5
- package/dist/src/voice/realtime/runtime.d.ts +1 -0
- package/dist/src/voice/realtime/runtime.js +155 -50
- 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 +2 -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-B3M6ifoo.js +0 -1
- package/dist/gateway/static/root/assets/automation-run-list-De7gini_.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-CSBeVda0.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-C56aelvp.js +0 -8
- package/dist/gateway/static/root/assets/chat-page-BKLyj4IP.js +0 -71
- package/dist/gateway/static/root/assets/clipboard-copy-DuJk5WD6.js +0 -1
- package/dist/gateway/static/root/assets/composer-payload-handoff-D1xUYD5M.js +0 -1
- package/dist/gateway/static/root/assets/connected-providers-grid-w3htbAyh.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-D1VzTxON.js +0 -1
- package/dist/gateway/static/root/assets/dist-BGTk37IG.js +0 -1
- package/dist/gateway/static/root/assets/extension-iframe-host-pbU7DAfE.js +0 -1
- package/dist/gateway/static/root/assets/extension-page-BrX4Hy9P.js +0 -1
- package/dist/gateway/static/root/assets/extension-provider-DUzhV5_a.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/local-app-workbench-page-3J9ABnCu.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-Ck6kACsY.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-Dtoheh2t.js +0 -2
- package/dist/gateway/static/root/assets/messages-orB1BMgI.js +0 -3
- 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-avatar-Dp5LHjk3.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-CpKBzGIk.js +0 -1
- package/dist/gateway/static/root/assets/personal-proactivity-DaRnbB1f.js +0 -1
- package/dist/gateway/static/root/assets/personal-settings-panel-CtJL6qIN.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/runtime-health-D2TDFLLq.js +0 -1
- 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/session-manager-C1T7WiP7.js +0 -25
- 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-call-context-CJ1ZiJWR.js +0 -1
- 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-api-DYFy9__S.js +0 -2
- 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
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { estimateMessageTokens, estimateTextTokens } from "../memory/context-budget.js";
|
|
2
|
+
//#region src/agent/prompt/voice-history.ts
|
|
3
|
+
/** Ephemeral request projection; complete user turns and current tool execution stay intact. */
|
|
4
|
+
function projectVoiceHistory(messages, historyTokens, currentUserTimestamp) {
|
|
5
|
+
const userIndexes = messages.flatMap((message, index) => message.role === "user" ? [index] : []);
|
|
6
|
+
if (!userIndexes.length) return {
|
|
7
|
+
messages: [...messages],
|
|
8
|
+
omittedMessages: 0
|
|
9
|
+
};
|
|
10
|
+
const protectedFrom = (currentUserTimestamp === void 0 ? void 0 : userIndexes.find((index) => messages[index].timestamp === currentUserTimestamp)) ?? userIndexes.at(-1);
|
|
11
|
+
let start = protectedFrom;
|
|
12
|
+
const cost = (message) => message.role === "system" ? 0 : message.role === "compactionSummary" || message.role === "branchSummary" ? estimateTextTokens(JSON.stringify(message)) + 12 : estimateMessageTokens(message);
|
|
13
|
+
let used = messages.slice(start).reduce((sum, message) => sum + cost(message), 0);
|
|
14
|
+
for (let i = userIndexes.indexOf(protectedFrom) - 1; i >= 0; i--) {
|
|
15
|
+
const candidate = userIndexes[i];
|
|
16
|
+
const tokens = messages.slice(candidate, start).reduce((sum, message) => sum + cost(message), 0);
|
|
17
|
+
if (used + tokens > historyTokens) break;
|
|
18
|
+
start = candidate;
|
|
19
|
+
used += tokens;
|
|
20
|
+
}
|
|
21
|
+
if (used + messages.slice(0, start).reduce((sum, message) => sum + cost(message), 0) <= historyTokens) return {
|
|
22
|
+
messages: [...messages],
|
|
23
|
+
omittedMessages: 0
|
|
24
|
+
};
|
|
25
|
+
const summary = messages.slice(0, start).findLast((message) => message.role === "compactionSummary" || message.role === "branchSummary");
|
|
26
|
+
const retainSummary = summary && used + cost(summary) <= historyTokens;
|
|
27
|
+
const projected = messages.filter((message, index) => index >= start || message.role === "system" || retainSummary && message === summary);
|
|
28
|
+
return {
|
|
29
|
+
messages: projected,
|
|
30
|
+
omittedMessages: messages.length - projected.length
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const voiceHistoryNotice = "This live voice request includes recent complete turns and the entire current execution. Earlier conversation is still stored, but is not all in this request. Use the available conversation recall/search tools for missing past details. Do not guess earlier facts or treat omitted history as deleted.";
|
|
34
|
+
//#endregion
|
|
35
|
+
export { projectVoiceHistory, voiceHistoryNotice };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Per-turn presentation only; never persisted as a user message or Agent identity. */
|
|
2
|
-
export declare const voicePresentationPrompt = "This turn is a live voice conversation in the same Chat.\nLead with the useful answer. Prefer one to three natural spoken sentences unless the user asks for detail.\nAllow silence. Do not repeatedly greet, recap unrelated old tasks, or end every reply with a question.\nFor work, briefly say what you are doing, use the available tools, then report the actual result.\nKeep code, long URLs, tables and detailed reference material in Chat; introduce them with a short spoken explanation.\nDo not imply a task continues in the background unless an existing task actually started it.\nAsk ordinary follow-up questions directly in speech, then let the user answer in the next turn; do not use a blocking clarification form. Keep formal action approvals in the existing approval mechanism. A background sound or ambiguous interjection is not permission for an action.\nStopping speech does not undo a completed tool action. State consequential results accurately.";
|
|
2
|
+
export declare const voicePresentationPrompt = "This turn is a live voice conversation in the same Chat.\nLead with the useful answer. Prefer one to three natural spoken sentences unless the user asks for detail.\nMake the first clause short and meaningful, with an early natural pause. Start with the answer or the specific action, not a generic acknowledgement. Do not expose hidden reasoning in speech.\nAllow silence. Do not repeatedly greet, recap unrelated old tasks, or end every reply with a question.\nFor work, briefly say what you are doing, use the available tools, then report the actual result.\nKeep code, long URLs, tables and detailed reference material in Chat; introduce them with a short spoken explanation.\nDo not imply a task continues in the background unless an existing task actually started it.\nAsk ordinary follow-up questions directly in speech, then let the user answer in the next turn; do not use a blocking clarification form. Keep formal action approvals in the existing approval mechanism. A background sound or ambiguous interjection is not permission for an action.\nStopping speech does not undo a completed tool action. State consequential results accurately.";
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
/** Per-turn presentation only; never persisted as a user message or Agent identity. */
|
|
3
3
|
const voicePresentationPrompt = `This turn is a live voice conversation in the same Chat.
|
|
4
4
|
Lead with the useful answer. Prefer one to three natural spoken sentences unless the user asks for detail.
|
|
5
|
+
Make the first clause short and meaningful, with an early natural pause. Start with the answer or the specific action, not a generic acknowledgement. Do not expose hidden reasoning in speech.
|
|
5
6
|
Allow silence. Do not repeatedly greet, recap unrelated old tasks, or end every reply with a question.
|
|
6
7
|
For work, briefly say what you are doing, use the available tools, then report the actual result.
|
|
7
8
|
Keep code, long URLs, tables and detailed reference material in Chat; introduce them with a short spoken explanation.
|
|
@@ -13,11 +13,11 @@ import { resolveAgentTurnTimeoutMs } from "./orchestration/run-agent-turn-with-t
|
|
|
13
13
|
import { applyConfigOverrides } from "../config/runtime-overrides.js";
|
|
14
14
|
import { effectiveWorkspacePathForSession } from "../session/session-workspace.js";
|
|
15
15
|
import { getProjectForSession } from "../projects/workspace.js";
|
|
16
|
-
import "../user-model/index.js";
|
|
17
16
|
import { onSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
18
17
|
import { runWithEmbeddedExecutionSession } from "./embedded/execution-context.js";
|
|
19
18
|
import { removeSkillsLockEntry } from "./skills/hub-lock.js";
|
|
20
19
|
import { installSkillFromZip } from "./skills/managed-store.js";
|
|
20
|
+
import "../user-model/index.js";
|
|
21
21
|
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "./skills/workspace-skills-dir.js";
|
|
22
22
|
import { pullSkillFromSource } from "./skills/hub-pull.js";
|
|
23
23
|
import { resolveResponseLanguageForSession } from "./prompt/response-language.js";
|
|
@@ -10,8 +10,8 @@ import { extractAssistantText, getAssistantMessageErrorReason, isTransientProvid
|
|
|
10
10
|
import { canResumeAfterModelFailure } from "../orchestration/turn-recovery.js";
|
|
11
11
|
import { resolveTaskLocale } from "../../tasks/task-language.js";
|
|
12
12
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
13
|
-
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
14
13
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
14
|
+
import { readWorkspaceRevision } from "../coding/workspace-revision.js";
|
|
15
15
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
16
16
|
import { resolveResponseLanguageForSession } from "../prompt/response-language.js";
|
|
17
17
|
import { currentTaskResearchResult } from "../../tasks/task-research-result.js";
|
|
@@ -13,8 +13,8 @@ import { getConversationRouting } from "../../storage/sqlite/conversation-reposi
|
|
|
13
13
|
import { init_session_key } from "../../routing/session-key.js";
|
|
14
14
|
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
15
15
|
import { resolveEffectiveAgentConfigForAgent } from "../../config/agent-profile.js";
|
|
16
|
-
import { PERSONAL_TOOL_DESCRIPTIONS } from "../../personal-agent/policy.js";
|
|
17
16
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
17
|
+
import { PERSONAL_TOOL_DESCRIPTIONS } from "../../personal-agent/policy.js";
|
|
18
18
|
import { PERSONAL_REQUEST_TOOL_IDS, TASK_EXECUTION_TOOL_IDS, filterExecutionTools, resolveExecutionToolPolicy } from "../embedded/execution-tool-policy.js";
|
|
19
19
|
import { getPhoneRuntime, phoneExecutionContext } from "../../phone/runtime.js";
|
|
20
20
|
import { getEmbeddedExecutionRunId, getEmbeddedExecutionSession } from "../embedded/execution-context.js";
|
|
@@ -291,7 +291,11 @@ function createImageGenerateTool(options) {
|
|
|
291
291
|
return {
|
|
292
292
|
content: [{
|
|
293
293
|
type: "text",
|
|
294
|
-
text: [
|
|
294
|
+
text: [
|
|
295
|
+
`Generated and published ${paths.length} image(s) with ${result.provider}/${result.model}.`,
|
|
296
|
+
"In a Task, select the returned artifact IDs in publish_task_result.finalArtifactIds for final delivery. Publication alone does not confirm delivery to the originating chat.",
|
|
297
|
+
...paths.map((p) => `Saved: ${p}`)
|
|
298
|
+
].join("\n")
|
|
295
299
|
}],
|
|
296
300
|
details: {
|
|
297
301
|
provider: result.provider,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../../storage/sqlite/transaction.js";
|
|
2
2
|
import { TaskRunRepository, init_task_run_repository } from "../../tasks/task-run-repository.js";
|
|
3
3
|
import { init_request_repository, personalRequestForExecution } from "../../personal-agent/request-repository.js";
|
|
4
|
-
import { assertPersonalRequestAccountAccess } from "../../personal-agent/request-access.js";
|
|
5
4
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
5
|
+
import { assertPersonalRequestAccountAccess } from "../../personal-agent/request-access.js";
|
|
6
6
|
import { PersonalRequestResultSchema } from "../../personal-agent/request-result.js";
|
|
7
7
|
import { selectionRequestHash } from "../../agent-matching/selection-repository.js";
|
|
8
8
|
import { Type } from "@sinclair/typebox";
|
|
@@ -11,9 +11,10 @@ import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
|
11
11
|
import { TaskAllocationRepository } from "../../tasks/task-allocation-repository.js";
|
|
12
12
|
import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
|
|
13
13
|
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
14
|
+
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
15
|
+
import { TaskResultDeliveryRepository } from "../../tasks/task-result-delivery-repository.js";
|
|
14
16
|
import { boundedPersonalResult } from "./personal-result-budget.js";
|
|
15
17
|
import { parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
|
|
16
|
-
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
17
18
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
18
19
|
import "../../personal-agent/communication.js";
|
|
19
20
|
import { getAvailablePersonalAgentTools, personalAgentModelAvailability } from "../../personal-agent/specialist-capabilities.js";
|
|
@@ -669,6 +670,7 @@ function createPersonalTaskTool(deps) {
|
|
|
669
670
|
[input.section]: payload[input.section]
|
|
670
671
|
} : { ...payload };
|
|
671
672
|
read.revisionBaseline = new TaskReadModelProjector().get(input.taskId)?.revisionBaseline;
|
|
673
|
+
read.fileDelivery = new TaskResultDeliveryRepository().fileDeliveryState(input.taskId, conversationId);
|
|
672
674
|
const pagination = {};
|
|
673
675
|
for (const key of [
|
|
674
676
|
"waits",
|
|
@@ -7,9 +7,9 @@ import { getSessionMetadata } from "../../storage/sqlite/session-read-repository
|
|
|
7
7
|
import { init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
8
8
|
import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
|
|
9
9
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
10
|
+
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
10
11
|
import { getEmbeddedExecutionSession } from "../embedded/execution-context.js";
|
|
11
12
|
import { assertTaskHandoffAccess, assertTaskHandoffExecutorAccess, getTaskHandoff, materializeTaskHandoffFile, readTaskHandoffSource } from "../../tasks/task-handoff.js";
|
|
12
|
-
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
13
13
|
import { taskResearchEvidence } from "../../tasks/task-research-result.js";
|
|
14
14
|
import { createXopcUseTool } from "./xopc-use-tool.js";
|
|
15
15
|
import { Type } from "@sinclair/typebox";
|
|
@@ -1,26 +1,15 @@
|
|
|
1
1
|
import { suggestedEvidenceRanges } from "../../tasks/task-evidence-ranges.js";
|
|
2
|
+
import { isTaskEvidenceTool } from "../../tasks/task-evidence-tools.js";
|
|
2
3
|
//#region src/agent/tools/task-evidence.ts
|
|
3
4
|
/** Tool-call IDs are protocol metadata and may be invisible to the model; expose the host ID in Task reads. */
|
|
4
5
|
function withTaskEvidenceIdentity(tool) {
|
|
5
|
-
if (!
|
|
6
|
-
"read_file",
|
|
7
|
-
"read_media",
|
|
8
|
-
"web_fetch",
|
|
9
|
-
"web_search",
|
|
10
|
-
"web_extract",
|
|
11
|
-
"exec_command",
|
|
12
|
-
"managed_job",
|
|
13
|
-
"xopc_tool_execute",
|
|
14
|
-
"publish_artifacts",
|
|
15
|
-
"session_status",
|
|
16
|
-
"task_collaboration"
|
|
17
|
-
]).has(tool.name)) return tool;
|
|
6
|
+
if (!isTaskEvidenceTool(tool.name)) return tool;
|
|
18
7
|
return {
|
|
19
8
|
...tool,
|
|
20
9
|
execute: async (...args) => {
|
|
21
10
|
const result = await tool.execute(args[0], args[1], args[2], args[3]);
|
|
22
11
|
if (tool.name === "task_collaboration" && !result.details?.taskSourceRead) return result;
|
|
23
|
-
const artifacts =
|
|
12
|
+
const artifacts = result.details?.artifacts;
|
|
24
13
|
const receipt = artifacts ? [{
|
|
25
14
|
type: "text",
|
|
26
15
|
text: JSON.stringify({
|
|
@@ -34,9 +23,11 @@ function withTaskEvidenceIdentity(tool) {
|
|
|
34
23
|
}] : [];
|
|
35
24
|
const execution = result.details;
|
|
36
25
|
const body = result.content.filter((part) => part.type === "text").map((part) => part.text).join("\n");
|
|
37
|
-
const ranges = !result.isError && ![
|
|
26
|
+
const ranges = !result.isError && !execution?.error && ![
|
|
38
27
|
"failed",
|
|
39
28
|
"blocked",
|
|
29
|
+
"error",
|
|
30
|
+
"queued",
|
|
40
31
|
"running",
|
|
41
32
|
"timed_out",
|
|
42
33
|
"cancelled"
|
|
@@ -67,7 +67,7 @@ function createTaskResultTool(getConversationId) {
|
|
|
67
67
|
name: "publish_task_result",
|
|
68
68
|
label: "Publish research conclusions",
|
|
69
69
|
parameters: schema,
|
|
70
|
-
description: "For sources prefer toolCallId plus excerptRange {start,end} copied from evidence receipts, and OMIT excerpt. Ranges use Unicode character offsets, at most 1000 characters; the host extracts the original successful read exactly so code escapes and commands cannot corrupt quotes. Supply exactly one of excerptRange or a short exact excerpt. Never include the input command as output. When this execution published files, finalArtifactIds is required: explicitly select the exact artifact IDs from publication receipts for the final delivery. Exclude intermediate, failed, obsolete and unrelated files. [] explicitly selects a text-only final result. New submissions replace this final selection; no historical union. Submit Task research evidence for per-criterion review; publish required files first. Initial submission creates the ledger; subsequent submissions default to amend so earlier evidence is retained. Use explicit replace only for a complete replacement ledger. During repair retain stable source/claim IDs, update targeted claims and retire obsolete/wrong claim IDs with retireClaimIds. All retained claims are reviewed again. Reviewer support/note/checks fields are read-only; never send them back in sources or claims. Never drop valid calculation/input evidence merely to fix a file. Negative assertions such as \"never reran a script\" need an observable, scoped execution record; do not invent proof of absence or add an unnecessary absolute negative claim. Keep prohibitions as constraints, and retire unsupported optional claims while retaining required verified findings. Sources require short contiguous exact excerpts from successful read_file/read_media/web/exec/session_status results or publication receipts in this TaskRun. Never concatenate passages, invent call IDs, or cite an earlier review as factual evidence. Use task_collaboration get section evidence to list/read original toolCallIds. Use finalText to submit the exact chat deliverable for content checks. It is not a source for external factual claims. On source_quote_mismatch follow the recovery instruction; never repeat unchanged sources. Prefer original inputs; the host reads published reports/scripts. URL is optional; actual web metadata is preserved. Claims reference source IDs and distinguish fact/inference/recommendation. Publication receipts prove availability, not prices. This binds provenance and runs model review, not independent fact certification. Resubmit changed evidence or adopted directions; do not endlessly repeat unchanged data when review is unavailable. Do not use outside a Task.",
|
|
70
|
+
description: "For sources prefer toolCallId plus excerptRange {start,end} copied from evidence receipts, and OMIT excerpt. Ranges use Unicode character offsets, at most 1000 characters; the host extracts the original successful read exactly so code escapes and commands cannot corrupt quotes. Supply exactly one of excerptRange or a short exact excerpt. Never include the input command as output. When this execution published files, finalArtifactIds is required: explicitly select the exact artifact IDs from publication receipts for the final delivery. Exclude intermediate, failed, obsolete and unrelated files. [] explicitly selects a text-only final result. New submissions replace this final selection; no historical union. Submit Task research evidence for per-criterion review; publish required files first. Initial submission creates the ledger; subsequent submissions default to amend so earlier evidence is retained. Use explicit replace only for a complete replacement ledger. During repair retain stable source/claim IDs, update targeted claims and retire obsolete/wrong claim IDs with retireClaimIds. All retained claims are reviewed again. Reviewer support/note/checks fields are read-only; never send them back in sources or claims. Never drop valid calculation/input evidence merely to fix a file. Negative assertions such as \"never reran a script\" need an observable, scoped execution record; do not invent proof of absence or add an unnecessary absolute negative claim. Keep prohibitions as constraints, and retire unsupported optional claims while retaining required verified findings. Sources require short contiguous exact excerpts from successful read_file/read_media/image/web/exec/session_status results or publication receipts (including image_generate) in this TaskRun. Use image observations for visual criteria; generation/publication alone does not verify appearance or confirm delivery to the originating chat. Never concatenate passages, invent call IDs, or cite an earlier review as factual evidence. Use task_collaboration get section evidence to list/read original toolCallIds. Use finalText to submit the exact chat deliverable for content checks. It is not a source for external factual claims. On source_quote_mismatch follow the recovery instruction; never repeat unchanged sources. Prefer original inputs; the host reads published reports/scripts. URL is optional; actual web metadata is preserved. Claims reference source IDs and distinguish fact/inference/recommendation. Publication receipts prove availability, not prices. This binds provenance and runs model review, not independent fact certification. Resubmit changed evidence or adopted directions; do not endlessly repeat unchanged data when review is unavailable. Do not use outside a Task.",
|
|
71
71
|
supportsParallel: false,
|
|
72
72
|
mutationScope: "none",
|
|
73
73
|
idempotent: false,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { projectForgottenEvidence } from "../../memory-learning/forgotten-history.js";
|
|
2
2
|
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, listUserAssertionSources, listUserAssertions, reconcileAssertion, setAssertionStatus } from "../../user-model/repository.js";
|
|
3
3
|
import { canUseAssertion } from "../../user-model/usage-policy.js";
|
|
4
|
-
import "../../user-model/index.js";
|
|
5
4
|
import "./local-read-budget.js";
|
|
5
|
+
import "../../user-model/index.js";
|
|
6
6
|
import { retrievalLexicalSimilarity } from "../../retrieval/textFeatures.js";
|
|
7
7
|
import { Type } from "@sinclair/typebox";
|
|
8
8
|
//#region src/agent/tools/user-context-tool.ts
|
|
@@ -16,23 +16,23 @@ import { hasUnlocalizedTaskText, resolveTaskLocale } from "../../tasks/task-lang
|
|
|
16
16
|
import { TaskReadModelProjector } from "../../tasks/task-read-model-projector.js";
|
|
17
17
|
import { TaskOriginRepository } from "../../tasks/task-origin-repository.js";
|
|
18
18
|
import { TaskConversationRepository } from "../../tasks/task-conversation-repository.js";
|
|
19
|
+
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
19
20
|
import { CapabilityError } from "../../capabilities/runtime/errors.js";
|
|
20
21
|
import { getAutomationSetup } from "../../automations/configuration-conversation.js";
|
|
21
22
|
import { getEmbeddedExecutionRunId } from "../embedded/execution-context.js";
|
|
22
23
|
import "../../capabilities/runtime/dispatcher.js";
|
|
23
24
|
import { AutomationMcpSourceInput, prepareAutomationMcpSource } from "../../automations/mcp-source.js";
|
|
25
|
+
import { localAppCapabilities } from "../../local-apps/capabilities/runtime.js";
|
|
24
26
|
import { resolveProjectAgentId } from "../../projects/project-agent.js";
|
|
25
27
|
import { TaskDeletionService } from "../../tasks/task-deletion-service.js";
|
|
26
28
|
import { TaskDeleteOutputSchema } from "../../tasks/capabilities/management.js";
|
|
27
29
|
import "../../projects/index.js";
|
|
28
30
|
import { parseTaskHandoffReferences } from "../../tasks/task-handoff.js";
|
|
29
|
-
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
30
31
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
31
32
|
import { AutomationCreateCapabilityInputSchema, AutomationUpdatePatchSchema } from "../../automations/capabilities/write.js";
|
|
32
33
|
import { resolveResponseLanguageForSession } from "../prompt/response-language.js";
|
|
33
34
|
import { TaskMutationOutputSchema } from "../../tasks/capabilities/write.js";
|
|
34
35
|
import { createProductDispatcher } from "../../capabilities/runtime/product.js";
|
|
35
|
-
import { localAppCapabilities } from "../../local-apps/capabilities/runtime.js";
|
|
36
36
|
import { getDelegationScope } from "../orchestration/delegation-scope.js";
|
|
37
37
|
import { defineTaskContract } from "../../tasks/task-contract-definition.js";
|
|
38
38
|
import "../../tasks/index.js";
|
|
@@ -1854,7 +1854,7 @@ async function handleLocalApp(command, args, deps, dryRun) {
|
|
|
1854
1854
|
};
|
|
1855
1855
|
return {
|
|
1856
1856
|
ok: true,
|
|
1857
|
-
app: localApps.create(input)
|
|
1857
|
+
app: localApps.create(input, deps.getCurrentConversationId?.())
|
|
1858
1858
|
};
|
|
1859
1859
|
}
|
|
1860
1860
|
return {
|
|
@@ -1932,7 +1932,7 @@ function createXopcUseTool(deps) {
|
|
|
1932
1932
|
return {
|
|
1933
1933
|
name: "xopc_use",
|
|
1934
1934
|
label: "XOPC Use",
|
|
1935
|
-
description: "Use mode browser_setup for inspect/preview/start/get/advance/recheck/request_interaction/begin_verification/verification_report/cancel of local Chrome setup. Load configure-xopc for guided setup; writes require product-owner approval. Operate first-class xopc objects through one safe entry point. To delegate work for immediate execution: mode task, command create, args {title:\"Short task name\", objective:\"One-sentence outcome\", body:\"Full Markdown task brief\", createMode:\"start\", agentId:\"researcher\"}; omitting createMode creates a backlog task only. To start an existing Task: mode task, command command, args {taskId, type:\"start\", expectedVersion, commandArgs:{executor:{kind:\"agent\",agentId:\"main\"}}}. Inspect an existing Task and its run before creating another Task for the same objective. For delegated work, task delegated_tasks lists this conversation's tasks; task collaboration reads the shared board; task collaboration_post writes {taskId, kind, body, causationId?, idempotencyKey?}. Workers report progress or questions; the main Agent writes instructions and answers. Use chat_preview for lightweight UI mockups in the current conversation; do not create a Local App unless the user asks for a durable app. Local App capabilities takes extensionId and discovers already granted bindings. Local App invoke requires extensionId, the discovered manifestDigest, capabilityId and a pinned call {majorVersion, descriptorDigest, input, idempotencyKey for writes}. Never manufacture grants or change a retry key after an uncertain write. Use for Agents, projects, automations, notes, tasks, TaskRuns, chat previews, local apps, and exact settings jump targets instead of editing storage files directly. For non-trivial object changes, load the built-in manual first with tool_manual({ tool: \"xopc_use\" }).",
|
|
1935
|
+
description: "Use mode browser_setup for inspect/preview/start/get/advance/recheck/request_interaction/begin_verification/verification_report/cancel of local Chrome setup. Load configure-xopc for guided setup; writes require product-owner approval. Operate first-class xopc objects through one safe entry point. To delegate work for immediate execution: mode task, command create, args {title:\"Short task name\", objective:\"One-sentence outcome\", body:\"Full Markdown task brief\", createMode:\"start\", agentId:\"researcher\"}; omitting createMode creates a backlog task only. To start an existing Task: mode task, command command, args {taskId, type:\"start\", expectedVersion, commandArgs:{executor:{kind:\"agent\",agentId:\"main\"}}}. Inspect an existing Task and its run before creating another Task for the same objective. For delegated work, task delegated_tasks lists this conversation's tasks; task collaboration reads the shared board; task collaboration_post writes {taskId, kind, body, causationId?, idempotencyKey?}. Workers report progress or questions; the main Agent writes instructions and answers. Use chat_preview for lightweight UI mockups in the current conversation; do not create a Local App unless the user asks for a durable app. Local App capabilities takes extensionId and discovers already granted bindings. Local App invoke requires extensionId, the discovered manifestDigest and grantRevision, capabilityId and a pinned call {majorVersion, descriptorDigest, input, idempotencyKey for writes}. Never manufacture grants or change a retry key after an uncertain write. Use for Agents, projects, automations, notes, tasks, TaskRuns, chat previews, local apps, and exact settings jump targets instead of editing storage files directly. For non-trivial object changes, load the built-in manual first with tool_manual({ tool: \"xopc_use\" }).",
|
|
1936
1936
|
parameters: XopcUseToolSchema,
|
|
1937
1937
|
mutatesWorkspace: true,
|
|
1938
1938
|
mutationScope: "external",
|
|
@@ -2059,6 +2059,7 @@ function createXopcUseTool(deps) {
|
|
|
2059
2059
|
if (typeof args.extensionId !== "string") return errorText("extensionId is required", details);
|
|
2060
2060
|
const manifestDigest = command === "capabilities" ? apps.getUiGrant(args.extensionId).manifestDigest : args.manifestDigest;
|
|
2061
2061
|
if (typeof manifestDigest !== "string") return errorText("A discovered manifestDigest is required", details);
|
|
2062
|
+
if (command === "invoke" && typeof args.grantRevision !== "string") return errorText("A discovered grantRevision is required", details);
|
|
2062
2063
|
const caller = {
|
|
2063
2064
|
principalId: `agent:${deps.getCurrentAgentId?.() ?? "main"}`,
|
|
2064
2065
|
surface: "agent",
|
|
@@ -2066,7 +2067,7 @@ function createXopcUseTool(deps) {
|
|
|
2066
2067
|
authorize: deps.authorizeCapability ?? (() => true),
|
|
2067
2068
|
signal
|
|
2068
2069
|
};
|
|
2069
|
-
const runtime = localAppCapabilities(apps, capabilities, args.extensionId, manifestDigest, caller);
|
|
2070
|
+
const runtime = localAppCapabilities(apps, capabilities, args.extensionId, manifestDigest, caller, command === "invoke" ? args.grantRevision : void 0);
|
|
2070
2071
|
if (command === "capabilities") return okText({
|
|
2071
2072
|
...details,
|
|
2072
2073
|
result: runtime.list()
|
|
@@ -310,6 +310,21 @@ export declare const AgentProfileSchema: z.ZodObject<{
|
|
|
310
310
|
}, z.core.$strict>>;
|
|
311
311
|
voiceCallPreferences: z.ZodOptional<z.ZodObject<{
|
|
312
312
|
openingGreetingEnabled: z.ZodBoolean;
|
|
313
|
+
enginePreference: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
auto: "auto";
|
|
315
|
+
natural: "natural";
|
|
316
|
+
assistant: "assistant";
|
|
317
|
+
}>>;
|
|
318
|
+
defaultMode: z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
natural: "natural";
|
|
320
|
+
assistant: "assistant";
|
|
321
|
+
}>>;
|
|
322
|
+
naturalModel: z.ZodOptional<z.ZodString>;
|
|
323
|
+
higgsVoice: z.ZodOptional<z.ZodEnum<{
|
|
324
|
+
default: "default";
|
|
325
|
+
chloe: "chloe";
|
|
326
|
+
oliver: "oliver";
|
|
327
|
+
}>>;
|
|
313
328
|
}, z.core.$strict>>;
|
|
314
329
|
instructions: z.ZodOptional<z.ZodString>;
|
|
315
330
|
}, z.core.$strict>;
|
|
@@ -332,6 +347,21 @@ export declare const AgentEntrySchema: z.ZodObject<{
|
|
|
332
347
|
}, z.core.$strict>>;
|
|
333
348
|
voiceCallPreferences: z.ZodOptional<z.ZodObject<{
|
|
334
349
|
openingGreetingEnabled: z.ZodBoolean;
|
|
350
|
+
enginePreference: z.ZodOptional<z.ZodEnum<{
|
|
351
|
+
auto: "auto";
|
|
352
|
+
natural: "natural";
|
|
353
|
+
assistant: "assistant";
|
|
354
|
+
}>>;
|
|
355
|
+
defaultMode: z.ZodOptional<z.ZodEnum<{
|
|
356
|
+
natural: "natural";
|
|
357
|
+
assistant: "assistant";
|
|
358
|
+
}>>;
|
|
359
|
+
naturalModel: z.ZodOptional<z.ZodString>;
|
|
360
|
+
higgsVoice: z.ZodOptional<z.ZodEnum<{
|
|
361
|
+
default: "default";
|
|
362
|
+
chloe: "chloe";
|
|
363
|
+
oliver: "oliver";
|
|
364
|
+
}>>;
|
|
335
365
|
}, z.core.$strict>>;
|
|
336
366
|
instructions: z.ZodOptional<z.ZodString>;
|
|
337
367
|
}, z.core.$strict>>;
|
|
@@ -473,6 +503,21 @@ export declare const EffectiveAgentConfigSchema: z.ZodObject<{
|
|
|
473
503
|
}, z.core.$strict>>;
|
|
474
504
|
voiceCallPreferences: z.ZodOptional<z.ZodObject<{
|
|
475
505
|
openingGreetingEnabled: z.ZodBoolean;
|
|
506
|
+
enginePreference: z.ZodOptional<z.ZodEnum<{
|
|
507
|
+
auto: "auto";
|
|
508
|
+
natural: "natural";
|
|
509
|
+
assistant: "assistant";
|
|
510
|
+
}>>;
|
|
511
|
+
defaultMode: z.ZodOptional<z.ZodEnum<{
|
|
512
|
+
natural: "natural";
|
|
513
|
+
assistant: "assistant";
|
|
514
|
+
}>>;
|
|
515
|
+
naturalModel: z.ZodOptional<z.ZodString>;
|
|
516
|
+
higgsVoice: z.ZodOptional<z.ZodEnum<{
|
|
517
|
+
default: "default";
|
|
518
|
+
chloe: "chloe";
|
|
519
|
+
oliver: "oliver";
|
|
520
|
+
}>>;
|
|
476
521
|
}, z.core.$strict>>;
|
|
477
522
|
instructions: z.ZodOptional<z.ZodString>;
|
|
478
523
|
}, z.core.$strict>>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { SpecialistProfileSchema } from "../../packages/gateway-contract/src/specialists.js";
|
|
3
3
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
4
|
+
import { init_voice, voiceCallPreferencesSchema } from "../../packages/realtime-protocol/src/voice.js";
|
|
4
5
|
import { z } from "zod";
|
|
5
6
|
//#region src/agent-config/schema.ts
|
|
6
7
|
var DEFAULT_AGENT_MODEL_REF, DEFAULT_CORE_SKILLS, DEFAULT_SKILL_POLICY, AgentIdSchema, ModelRefSchema, ModelRouteSchema, ImageGenerationRouteSchema, ComputerModelRouteSchema, PhoneModelRouteSchema, ModelIntentSchema, ModelIntentRoutesSchema, ModelIntentOverridesSchema, AgentModelsDefaultsSchema, AgentModelsOverrideSchema, ToolModeSchema, ToolPolicySchema, ToolPoliciesSchema, SkillDefaultsSchema, SkillOverrideSchema, RuntimePolicySchema, AgentDefaultsSchema, AgentProfileSchema, AgentEntrySchema, EffectiveAgentConfigSchema;
|
|
7
8
|
var init_schema = __esmMin((() => {
|
|
8
9
|
init_src();
|
|
10
|
+
init_voice();
|
|
9
11
|
DEFAULT_AGENT_MODEL_REF = "xopc-cloud/auto";
|
|
10
12
|
DEFAULT_CORE_SKILLS = [
|
|
11
13
|
"doc-coauthoring",
|
|
@@ -146,7 +148,7 @@ var init_schema = __esmMin((() => {
|
|
|
146
148
|
model: z.string().trim().min(1).max(200),
|
|
147
149
|
voice: z.string().trim().min(1).max(200)
|
|
148
150
|
}).strict().optional(),
|
|
149
|
-
voiceCallPreferences:
|
|
151
|
+
voiceCallPreferences: voiceCallPreferencesSchema.optional(),
|
|
150
152
|
instructions: z.string().trim().min(1).optional()
|
|
151
153
|
}).strict();
|
|
152
154
|
AgentEntrySchema = z.object({
|
|
@@ -3,6 +3,14 @@ import type { ActorRef, CapabilityDescriptor, CapabilitySurface, GatewayScope }
|
|
|
3
3
|
export { CapabilityError } from './errors.js';
|
|
4
4
|
/** Constructed by a trusted entry point, never parsed from tool or HTTP input. */
|
|
5
5
|
export interface CapabilityContext {
|
|
6
|
+
/** Host-owned Local App identity and data policy, shared by UI and Agent invocation. */
|
|
7
|
+
localApp?: {
|
|
8
|
+
extensionId: string;
|
|
9
|
+
resourceScopes: import('@xopcai/gateway-contract').LocalAppResourceScopes;
|
|
10
|
+
bindings?: import('@xopcai/gateway-contract').ExtensionCapabilityBinding[];
|
|
11
|
+
releaseId?: string;
|
|
12
|
+
grantRevision?: string;
|
|
13
|
+
};
|
|
6
14
|
principalId: string;
|
|
7
15
|
surface: CapabilitySurface;
|
|
8
16
|
scopes: readonly GatewayScope[];
|
|
@@ -24,6 +32,9 @@ export interface ReadCapability<I extends z.ZodType = z.ZodType, O extends z.Zod
|
|
|
24
32
|
scopes: readonly GatewayScope[];
|
|
25
33
|
input: I;
|
|
26
34
|
output: O;
|
|
35
|
+
/** A narrower public contract for untrusted embedded applications. */
|
|
36
|
+
extensionOutput?: z.ZodType;
|
|
37
|
+
extensionExecute?: (input: z.output<I>, context: CapabilityContext) => unknown | Promise<unknown>;
|
|
27
38
|
execute: (input: z.output<I>, context: CapabilityContext) => z.input<O> | Promise<z.input<O>>;
|
|
28
39
|
}
|
|
29
40
|
export declare function defineReadCapability<I extends z.ZodType, O extends z.ZodType>(definition: ReadCapability<I, O>): ReadCapability<I, O>;
|
|
@@ -44,6 +44,10 @@ var CapabilityDispatcher = class {
|
|
|
44
44
|
scopes: definition.scopes,
|
|
45
45
|
...definition.effect === "external-write" ? { recovery: definition.recovery } : {}
|
|
46
46
|
})).digest("hex");
|
|
47
|
+
const extensionDescriptor = definition.extensionOutput ? {
|
|
48
|
+
...descriptor,
|
|
49
|
+
outputSchema: z.toJSONSchema(definition.extensionOutput, { io: "output" })
|
|
50
|
+
} : void 0;
|
|
47
51
|
this.entries.set(definition.id, {
|
|
48
52
|
definition: {
|
|
49
53
|
...definition,
|
|
@@ -53,19 +57,27 @@ var CapabilityDispatcher = class {
|
|
|
53
57
|
descriptor: {
|
|
54
58
|
...descriptor,
|
|
55
59
|
descriptorDigest
|
|
56
|
-
}
|
|
60
|
+
},
|
|
61
|
+
extensionDescriptor: extensionDescriptor ? {
|
|
62
|
+
...extensionDescriptor,
|
|
63
|
+
descriptorDigest: createHash("sha256").update(canonicalCapabilityJson({
|
|
64
|
+
...extensionDescriptor,
|
|
65
|
+
scopes: definition.scopes,
|
|
66
|
+
...definition.effect === "external-write" ? { recovery: definition.recovery } : {}
|
|
67
|
+
})).digest("hex")
|
|
68
|
+
} : void 0
|
|
57
69
|
});
|
|
58
70
|
}
|
|
59
71
|
visible(definition, context) {
|
|
60
72
|
return Boolean(context.principalId) && definition.surfaces.includes(context.surface) && (!context.allowedCapabilities || context.allowedCapabilities.includes(definition.id)) && definition.scopes.every((scope) => context.scopes.includes("gateway.admin") || context.scopes.includes(scope));
|
|
61
73
|
}
|
|
62
74
|
list(context) {
|
|
63
|
-
return [...this.entries.values()].filter((entry) => this.visible(entry.definition, context)).map((entry) => structuredClone(entry.descriptor));
|
|
75
|
+
return [...this.entries.values()].filter((entry) => this.visible(entry.definition, context)).map((entry) => structuredClone(context.surface === "extension" && entry.extensionDescriptor ? entry.extensionDescriptor : entry.descriptor));
|
|
64
76
|
}
|
|
65
77
|
describe(id, context) {
|
|
66
78
|
const entry = this.entries.get(id);
|
|
67
79
|
if (!entry || !this.visible(entry.definition, context)) throw new CapabilityError("NOT_FOUND", "Capability not available");
|
|
68
|
-
return structuredClone(entry.descriptor);
|
|
80
|
+
return structuredClone(context.surface === "extension" && entry.extensionDescriptor ? entry.extensionDescriptor : entry.descriptor);
|
|
69
81
|
}
|
|
70
82
|
async validateInput(id, input, context) {
|
|
71
83
|
this.describe(id, context);
|
|
@@ -82,6 +94,10 @@ var CapabilityDispatcher = class {
|
|
|
82
94
|
if (expected && (expected.majorVersion !== descriptor.majorVersion || expected.descriptorDigest !== descriptor.descriptorDigest)) throw new CapabilityError("CONTRACT_CHANGED", "Capability contract changed; describe it again");
|
|
83
95
|
const { definition } = this.entries.get(id);
|
|
84
96
|
const parsed = { data: await this.validateInput(id, input, context) };
|
|
97
|
+
const validateResult = (result) => this.validateResult(context.surface === "extension" && definition.extensionOutput ? {
|
|
98
|
+
...definition,
|
|
99
|
+
output: definition.extensionOutput
|
|
100
|
+
} : definition, result);
|
|
85
101
|
if (definition.effect === "external-write") {
|
|
86
102
|
const key = expected?.idempotencyKey;
|
|
87
103
|
if (!key?.trim() || key.length > 200) throw new CapabilityError("INVALID_INPUT", "A stable idempotencyKey is required");
|
|
@@ -102,7 +118,7 @@ var CapabilityDispatcher = class {
|
|
|
102
118
|
...context,
|
|
103
119
|
operationId,
|
|
104
120
|
idempotencyKey: key
|
|
105
|
-
}),
|
|
121
|
+
}), validateResult);
|
|
106
122
|
}
|
|
107
123
|
if (definition.effect === "local-write") {
|
|
108
124
|
const key = expected?.idempotencyKey;
|
|
@@ -133,7 +149,7 @@ var CapabilityDispatcher = class {
|
|
|
133
149
|
idempotencyKey: key
|
|
134
150
|
});
|
|
135
151
|
if (output && typeof output.then === "function") throw new Error("Atomic capability handlers must be synchronous");
|
|
136
|
-
return
|
|
152
|
+
return validateResult(output);
|
|
137
153
|
});
|
|
138
154
|
};
|
|
139
155
|
let result;
|
|
@@ -160,7 +176,7 @@ var CapabilityDispatcher = class {
|
|
|
160
176
|
throw error;
|
|
161
177
|
}
|
|
162
178
|
}
|
|
163
|
-
return
|
|
179
|
+
return validateResult(await (context.surface === "extension" && definition.extensionExecute ? definition.extensionExecute(parsed.data, context) : definition.execute(parsed.data, context)));
|
|
164
180
|
}
|
|
165
181
|
validateResult(definition, result) {
|
|
166
182
|
const validated = definition.output.safeParse(result);
|
|
@@ -4,6 +4,7 @@ import { registerLocalAppReadCapabilities } from "../../local-apps/capabilities/
|
|
|
4
4
|
import { registerNoteReadCapabilities } from "../../notes/capabilities/read.js";
|
|
5
5
|
import { registerNoteWriteCapabilities } from "../../notes/capabilities/write.js";
|
|
6
6
|
import { registerTaskReadCapabilities } from "../../tasks/capabilities/read.js";
|
|
7
|
+
import { registerLocalAppDelegation } from "../../local-apps/capabilities/delegate.js";
|
|
7
8
|
import { registerLocalAppWriteCapabilities } from "../../local-apps/capabilities/write.js";
|
|
8
9
|
import { registerProjectReadCapabilities } from "../../projects/capabilities/read.js";
|
|
9
10
|
import { registerProjectWriteCapabilities } from "../../projects/capabilities/write.js";
|
|
@@ -23,6 +24,7 @@ function createProductDispatcher(getNotes, taskWrites) {
|
|
|
23
24
|
registerSettingsCapability(dispatcher);
|
|
24
25
|
registerAppContextCapability(dispatcher);
|
|
25
26
|
registerAgentCapabilities(dispatcher);
|
|
27
|
+
registerLocalAppDelegation(dispatcher);
|
|
26
28
|
const localApps = taskWrites?.getLocalApps?.();
|
|
27
29
|
if (localApps) {
|
|
28
30
|
registerLocalAppReadCapabilities(dispatcher, localApps);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { init_paths, resolveConfigPath } from "../../../config/paths.js";
|
|
2
2
|
import { loadConfig } from "../../../config/loader.js";
|
|
3
3
|
import "../../../config/index.js";
|
|
4
|
-
import { resolveGatewayService } from "../../../daemon/service.js";
|
|
5
4
|
import { isRestartEnabled } from "../../../config/commands.flags.js";
|
|
5
|
+
import { resolveGatewayService } from "../../../daemon/service.js";
|
|
6
6
|
import { authorizeGatewaySigusr1Restart, writeGatewayRestartIntentSync } from "../../../infra/restart.js";
|
|
7
7
|
import { findVerifiedGatewayListenerPidsOnPortSync, formatGatewayPidList, signalVerifiedGatewayPidSync } from "../../../infra/gateway-processes.js";
|
|
8
8
|
import { runServiceRestart, runServiceStop } from "./lifecycle-core.js";
|
|
@@ -72,6 +72,10 @@ export declare function compareComputerEvaluations(rawBaseline: unknown, rawCand
|
|
|
72
72
|
losses: number;
|
|
73
73
|
ties: number;
|
|
74
74
|
pairedSuccessRateDelta: number;
|
|
75
|
+
regressionGate: {
|
|
76
|
+
passed: boolean;
|
|
77
|
+
reasons: string[];
|
|
78
|
+
};
|
|
75
79
|
metrics: {
|
|
76
80
|
durationMs: {
|
|
77
81
|
pairedMeasurements: number;
|
|
@@ -3,7 +3,8 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/computer/evaluation-comparison.ts
|
|
4
4
|
const ReportSchema = z.object({
|
|
5
5
|
plan: ComputerEvaluationPlanSchema,
|
|
6
|
-
runs: z.array(ComputerEvaluationRunSchema)
|
|
6
|
+
runs: z.array(ComputerEvaluationRunSchema),
|
|
7
|
+
interrupted: z.boolean().optional()
|
|
7
8
|
});
|
|
8
9
|
/** Pair the same tasks and repetitions; never compare different environments or evidence classes. */
|
|
9
10
|
function compareComputerEvaluations(rawBaseline, rawCandidate) {
|
|
@@ -38,6 +39,16 @@ function compareComputerEvaluations(rawBaseline, rawCandidate) {
|
|
|
38
39
|
deltaMean: candidateMean - baselineMean
|
|
39
40
|
};
|
|
40
41
|
};
|
|
42
|
+
const regressionReasons = [
|
|
43
|
+
...baseline.interrupted || candidate.interrupted ? ["interrupted_run"] : [],
|
|
44
|
+
...pairs.length === baselineSummary.expectedRuns ? [] : ["incomplete_pairs"],
|
|
45
|
+
...losses ? ["task_regressions"] : [],
|
|
46
|
+
...candidateSummary.falseSuccesses ? ["false_successes"] : [],
|
|
47
|
+
...candidateSummary.incidents ? ["input_incidents"] : [],
|
|
48
|
+
...candidateSummary.unmeasuredSafetyRuns ? ["unmeasured_safety"] : [],
|
|
49
|
+
...candidateSummary.unknown ? ["unknown_outcomes"] : [],
|
|
50
|
+
...candidate.runs.some((run) => run.failure?.dispatch === "unknown" || run.failure?.dispatch === "started") ? ["uncertain_dispatch"] : []
|
|
51
|
+
];
|
|
41
52
|
return {
|
|
42
53
|
baseline: baselineSummary,
|
|
43
54
|
candidate: candidateSummary,
|
|
@@ -49,6 +60,10 @@ function compareComputerEvaluations(rawBaseline, rawCandidate) {
|
|
|
49
60
|
losses,
|
|
50
61
|
ties,
|
|
51
62
|
pairedSuccessRateDelta: pairs.length ? (wins - losses) / pairs.length : null,
|
|
63
|
+
regressionGate: {
|
|
64
|
+
passed: regressionReasons.length === 0,
|
|
65
|
+
reasons: regressionReasons
|
|
66
|
+
},
|
|
52
67
|
metrics: {
|
|
53
68
|
durationMs: metric("durationMs"),
|
|
54
69
|
modelRequests: metric("modelRequests"),
|
|
@@ -18,7 +18,7 @@ function normalizeComputerKeys(input, platform = "darwin") {
|
|
|
18
18
|
"⌥": "alt"
|
|
19
19
|
};
|
|
20
20
|
const keys = input.map((key) => aliases[key.toLowerCase()] ?? key.toLowerCase());
|
|
21
|
-
if (platform === "win32") {
|
|
21
|
+
if (platform === "win32" || platform === "linux") {
|
|
22
22
|
if (keys.includes("cmd") || keys.some((key) => [
|
|
23
23
|
"win",
|
|
24
24
|
"windows",
|