@xopcai/xopc 0.0.467 → 0.0.469
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/dist/sidepanel.js +5 -0
- 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-CdEua6PR.js → activity-store-DKP2sWTJ.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-l8GQ4I9J.js → agent-avatar-dicebear-BR85bT1W.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-BO1bqKlR.js → agent-avatar-display-CIsejg_E.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-Dj_H2kDD.js → agent-defaults-settings-panel-CxLUEl0V.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-BQA2brAU.js → agent-plugin-dialog-Cvj04Ckm.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-C5C5l13A.js → agents-DZftplJc.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-DZ1lLnrj.js → agents-admin-api-BL8lN8gP.js} +1 -1
- package/dist/gateway/static/root/assets/{api-DDWYNF7I.js → api-BnS9d0p6.js} +1 -1
- package/dist/gateway/static/root/assets/{api-DVXcGKP-.js → api-V4P8zfkJ.js} +1 -1
- package/dist/gateway/static/root/assets/{app-link-BkEO3eBe.js → app-link-CauYDM-y.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-B5-7E03Z.js → app-management-settings-panel-CAEry5Vu.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-E_BcjEDM.js → appearance-settings-CphsmJgM.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-BjB_mjXu.js → apps-page-CXKTWj1s.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-MvSiDvxK.js → archive-plugin-DS6JWBPZ.js} +1 -1
- package/dist/gateway/static/root/assets/arrow-down-to-line-C5D8Vt-L.js +1 -0
- package/dist/gateway/static/root/assets/{attachment-load-DrVGNxJm.js → attachment-load-C9iZLUHv.js} +1 -1
- package/dist/gateway/static/root/assets/attachment-preview-renderer-_6GhoCYk.js +12 -0
- package/dist/gateway/static/root/assets/attachment-utils-core-BPYdUI6y.js +1 -0
- package/dist/gateway/static/root/assets/{automation-api-24NjW7qG.js → automation-api-GcRQ9wM4.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-C94Q3OEL.js → automation-result-state-Dcp0JX0w.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-BShRirWV.js → automation-run-list-BLejrWpG.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-task-card-Bgq5Plux.js → automation-task-card-BNT3n0qu.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-3WGWLdiW.js → automations-page-DqrAOReO.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-BYmFhO8E.js +9 -0
- package/dist/gateway/static/root/assets/binary-plugins-CnFVuJtL.js +2 -0
- package/dist/gateway/static/root/assets/{block-editor-DAWXPErA.js → block-editor-jy5CCmhH.js} +9 -9
- package/dist/gateway/static/root/assets/{browser-settings-page-DI2PYAPC.js → browser-settings-page-Dd2eTtvL.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-Dyw8xW90.js → capabilities-CaJjMTli.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-YmBD7oK8.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-XgIRdqCb.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DfyND0IO.js +8 -0
- package/dist/gateway/static/root/assets/channels-DwUmMnA1.js +1 -0
- package/dist/gateway/static/root/assets/{chat-agents-api-BksS0CNy.js → chat-agents-api-Bim8--J9.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-aZIklMNN.js → chat-chart-block-B_c5sy7q.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-DfFXhDRv.js +72 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-B4HoRIzf.js → chat-terminal-dock-Dn7Cm1O4.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-VhBEUFmw.js → command-palette-api-DPtCt8Je.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-model-config-control-BhRAbdPW.js → composer-model-config-control-BF9PPSiu.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-notifications-nT-U6jcc.js → composer-notifications-B0IZsy8x.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-xEFHDnLo.js → composer-payload-handoff-CRCz17sd.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-DXlH96m6.js → computer-settings-page-CtfitoMZ.js} +1 -1
- package/dist/gateway/static/root/assets/{connected-providers-grid-D8vBFsbY.js → connected-providers-grid-DUHMZjyV.js} +1 -1
- package/dist/gateway/static/root/assets/{connection-usage-guide-C8jPm7QO.js → connection-usage-guide-CM5qgMcK.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-B42yWHxS.js → connector-service-page-DLbBblN2.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-so2a7xrD.js → connectors-api-BUdH4tZQ.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-yhOZIiUZ.js → connectors-page-HHGB3r3Q.js} +1 -1
- package/dist/gateway/static/root/assets/constants-D5Z-mUto.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-UEh3JM7r.js → date-picker-DRSq2kDz.js} +1 -1
- package/dist/gateway/static/root/assets/{date-time-picker-Dci0LfAU.js → date-time-picker--LGC1D3b.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-BAU_GuBe.js → desktop-pet-1oXlQvjH.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-CYE2eTTf.js → desktop-pet-settings-GdOjz7W9.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-C7v4CIlF.js → dev-view-store-DnQ2nBtV.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-7NDkYmiZ.js → device-pairing-wizard-eWeHH6Ru.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-DmRZY8kg.js → directory-picker-path-field-DBe_paLy.js} +1 -1
- package/dist/gateway/static/root/assets/extension-authoritative-grants-BqtUnmq-.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-D8TAJgZ_.js → extension-debug-page-DIAyDA-a.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-CjfRKtQ4.js → extension-iframe-host-CCe4R7L7.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-marketplace-api-V1oFBxVi.js → extension-marketplace-api-baFXdV56.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-message-router-DZahH1Hd.js → extension-message-router-BD0ZamBV.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DMuHBIHa.js → extension-page-C09dlV3J.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-lqJ1zIkA.js → extension-provider-BhluafoX.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-D5IfKVff.js → extension-settings-page-CB8KLYoG.js} +1 -1
- package/dist/gateway/static/root/assets/file-CStvVK2S.js +1 -0
- package/dist/gateway/static/root/assets/{file-BqMS_3DT.js → file-code-corner-byQA1VfD.js} +1 -1
- package/dist/gateway/static/root/assets/file-icon-N6WjUhq_.js +1 -0
- package/dist/gateway/static/root/assets/{file-preview-surface-B7B9qXm9.js → file-preview-surface-CeFFZo3a.js} +1 -1
- package/dist/gateway/static/root/assets/file-tree-CYUkQR1t.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-Dk3FtNv1.js → gateway-config-swr-DVXDJNCI.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-DMvo4pAc.js → gateway-realtime-BnwNxbyc.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-BpnGXAhi.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-C2h5R1eP.js → gateway-restart-Bws2Shaz.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-DGPaikv5.js → gateway-settings-BU5Cp4Bw.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-yZn7ShiP.js → gateway-startup-retry-2jU7zCyx.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-gsAa0Kj9.js → global-defaults-api-CNyJ0dGb.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-BBTtXpDD.js → home-page-8KwhWlYt.js} +3 -3
- package/dist/gateway/static/root/assets/{image-generation-api-DPn1SBMH.js → image-generation-api-CiqQSx5j.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-Cc48Uq20.js → imports-page-B9JMNXwt.js} +1 -1
- package/dist/gateway/static/root/assets/index-CZUfwwLp.css +1 -0
- package/dist/gateway/static/root/assets/index-D5hovYIw.js +11 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-QkJMw_uW.js → install-connector-dialog-BZjodnUC.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BZXqXuI4.js → keyboard-shortcuts-settings-A37hYJtR.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-DmzgjJNj.js +1 -0
- package/dist/gateway/static/root/assets/{local-apps-page-D-bRvlZY.js → local-apps-page-Ct8z2B7R.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-CZ19DRRK.js → local-session-drafts-CgAuYyKi.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-DIBIYLnI.js → locale-store-Cit_aHqC.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-CH9amuGc.js +2 -0
- package/dist/gateway/static/root/assets/{management-api-EG5duPec.js → management-api-DG-yZnHK.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-B7RWHrwo.js → management-settings-CUQd0FJ3.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-C30KvTaE.js → markdown-view-Dm01GIXv.js} +1 -1
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-BZ1PDTYY.js → mcp-conversation-setup-page-YvPXchDz.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-CW5UoTx6.js → media-plugins-jsWNdARw.js} +1 -1
- package/dist/gateway/static/root/assets/messages-DQveK9sk.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-COGICRIG.js → model-selector-Cg2kTsE7.js} +1 -1
- package/dist/gateway/static/root/assets/models-hub-cache-B2QcrY4n.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-DeFb2HEC.js +7 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-DUzoWZEe.js +1 -0
- package/dist/gateway/static/root/assets/notes-api-BMSPkAm8.js +1 -0
- package/dist/gateway/static/root/assets/notes-page-nvqpOeHp.js +8 -0
- package/dist/gateway/static/root/assets/{oauth-api-enDU_32p.js → oauth-api-Bz_PU9R_.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-C2pfvPOI.js → oauth-provider-connect-BexlZuZ4.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-BaSooYGv.js → page-context-capture-button-Cn4zi3Mt.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-4-3RtO0q.js → page-context-draft-BjbX5zd7.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-1-lflHAx.js +1 -0
- package/dist/gateway/static/root/assets/personal-avatar-CM3vUGhL.js +1 -0
- package/dist/gateway/static/root/assets/personal-avatar-DsEp8QJ7.css +1 -0
- package/dist/gateway/static/root/assets/personal-page-HFjWZacf.js +1 -0
- package/dist/gateway/static/root/assets/{personal-profile-settings-DwMdjQ6H.js → personal-profile-settings-CNI5Eor6.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-settings-panel-DiNpP_g3.js → personal-settings-panel-BcrpYRn9.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-DUT-qRLZ.js → phone-dependencies-card-CJ3ovsW1.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-pvOciDNo.js → phone-model-connection-DKvOEjWH.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-CD97E6C5.js → phone-model-picker-CNTcpY1A.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-BUZ1dh7s.js → phone-settings-page-DvX6okzz.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-BwilERgv.js → phone-workspace-store-CKOW55gy.js} +1 -1
- package/dist/gateway/static/root/assets/playback-coordinator-CWHIf0wr.js +1 -0
- package/dist/gateway/static/root/assets/{plugin-details-dialog-C_uOVmJv.js → plugin-details-dialog-BDoSffLO.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-BSUgcO7-.js → preference-select-fields-BKmzpfHq.js} +1 -1
- package/dist/gateway/static/root/assets/presentation-D-Ui_vVA.js +1 -0
- package/dist/gateway/static/root/assets/preview-runtime-RnBDP-Lq.js +15 -0
- package/dist/gateway/static/root/assets/product-automation-feedback-xAcXeJM2.js +7 -0
- package/dist/gateway/static/root/assets/product-delivery-4gEqUIsK.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-Dy6D5exJ.js → product-open-page-DXwOPgRP.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-DEUPAilo.js → product-preview-content-DiQbeaCK.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-C4TV9RUd.js → product-preview-modal-BU7Qojpq.js} +2 -2
- package/dist/gateway/static/root/assets/project-detail-page-Dr5_WPRB.js +7 -0
- package/dist/gateway/static/root/assets/{project-understanding-lOJ5Tz2V.js → project-understanding-Dv26vu9S.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-B3aGdPHy.js → projects-page-DGATZB23.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-C26HgxZY.js → providers-api-BXa2Aheb.js} +1 -1
- package/dist/gateway/static/root/assets/recording-upload-CQdhrRq3.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-pQ0eInzG.js → registry-api-BEnvt9-6.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-CjWrYzjf.js → remote-access-hub-_7tmWand.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-Y9WRHOnz.js → resource-unavailable-fk26VrOL.js} +1 -1
- package/dist/gateway/static/root/assets/right-workspace-store-NXMrEuwH.js +1 -0
- package/dist/gateway/static/root/assets/route-preload-D-pdVwIK.js +2 -0
- package/dist/gateway/static/root/assets/routine-panel-rjq-8nZ8.js +2 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-BoJQ3u5o.js → runtime-tools-api-CL6CG-qq.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DB7cfLrX.js → runtime-tools-settings-panel-CdvQRxCR.js} +1 -1
- package/dist/gateway/static/root/assets/scan-search-CSIGkseh.js +1 -0
- package/dist/gateway/static/root/assets/{service-recommendation-list-_rFmwIwY.js → service-recommendation-list-2UOjV0Mx.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-a6wb0_Gf.js → session-api-CkOliupg.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-BVS3zxRZ.js +22 -0
- package/dist/gateway/static/root/assets/{sessions-page-dEupc-3A.js → sessions-page-CN9ESZdY.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BYrXsPjK.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-CnGJr2xp.js → settings-advanced-section-Zex2dJo7.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-DWRhupcY.js → settings-mode-store-Dk0bZQgo.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-D9A2DdJ_.js → settings-page-bCW4rave.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-wL2jvs-y.js → settings-page-header-B9Y_eGcH.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-BkUQVmyY.js → settings-page-layout-D1MgJ5zP.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-D238tuw-.js → setup-interaction-page-BYXDX0F2.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-DXvYjIu3.js → setup-status-panel-Bhda3jS2.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-DFDJyl3N.js → share-link-dialog-BxFk4-4u.js} +1 -1
- package/dist/gateway/static/root/assets/share-preview-page-nzWjWhqF.js +2 -0
- package/dist/gateway/static/root/assets/{shares-api-CfFiW03g.js → shares-api-ChBHTPKN.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-LB3SYKFS.js +1 -0
- package/dist/gateway/static/root/assets/sheet-C2H8iR8Y.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-CWRhFSkA.js → skill-api-TQAyWHGS.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-CmPp2czp.js → skill-list-api-D4eokPXx.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-BGsSq3dj.js → skill-reload-api-Bm-8vhsQ.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-DqD0FPeH.js → skills-page-CfhEcU8L.js} +1 -1
- package/dist/gateway/static/root/assets/space-api-DaKpHc_7.js +1 -0
- package/dist/gateway/static/root/assets/space-page-BXyQdUvp.js +2 -0
- package/dist/gateway/static/root/assets/star-BuMAkjC9.js +1 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-aw9C86I8.js → system-settings-panel-CvL5G2w1.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-gffrDRvW.js +3 -0
- package/dist/gateway/static/root/assets/task-header-title-DwtjUOBg.js +1 -0
- package/dist/gateway/static/root/assets/{task-result-evidence-C-zIBpzi.js → task-result-evidence-Bmgta9z9.js} +1 -1
- package/dist/gateway/static/root/assets/tasks-BIehlq7k.js +1 -0
- package/dist/gateway/static/root/assets/{terminal-panel-store-CgPqgrm7.js → terminal-panel-store-B1bAD5Xf.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-DxF7S6I2.js → theme-store-C1MxmBg7.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-Dvlunx28.js → tracing-settings-page-CvXDgIJQ.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-CIte6n0U.js → tunnel-api-BkhCBt38.js} +1 -1
- package/dist/gateway/static/root/assets/turn-outcome-BSbEJx8h.js +1 -0
- package/dist/gateway/static/root/assets/{understanding-activity-store-C2RHmRo8.js → understanding-activity-store-BYGCmCVb.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-CPeQIXS_.js → understanding-refresh-store-DaLVsdYS.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-DPUjEj39.js → usage-page-C-NM6vtY.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-xX2KrbXw.js → use-autosave-CvjQMyY8.js} +1 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-sszsCdh5.js +2 -0
- package/dist/gateway/static/root/assets/use-file-preview-expanded-D4b4fDeu.js +1 -0
- package/dist/gateway/static/root/assets/use-personal-profile-CNPszzzT.js +1 -0
- package/dist/gateway/static/root/assets/use-personal-work-C-rw8XVO.js +1 -0
- package/dist/gateway/static/root/assets/{use-realtime-voice-RQW5KnIN.js → use-realtime-voice-cugjs8cK.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-B6QFV5gR.js → use-workspace-tree-Crfx5ctU.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-hKnsTcMk.js → user-model-page-BvnLbTYx.js} +1 -1
- package/dist/gateway/static/root/assets/video-generation-Cec49Jwg.js +1 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-BeEF7Thh.js → voice-api-key-field-M7KB_Gl1.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-vbBoKnqd.js → voice-config-api-BLGbUq3v.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-CKn6X3qL.js → voice-input-shortcut-events-CxH3RDXi.js} +1 -1
- package/dist/gateway/static/root/assets/voice-player-store-DZGlzjva.js +1 -0
- package/dist/gateway/static/root/assets/voice-settings-BzfNK5Jm.js +1 -0
- package/dist/gateway/static/root/assets/{work-discovery-overlay-Ddvqu02U.js → work-discovery-overlay-DpEYgcG2.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-BdBpri6P.js → work-discovery-page-DappIHQq.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-DStgfCzQ.js → working-directory-picker-modal-W2QiUVjN.js} +1 -1
- package/dist/gateway/static/root/assets/workspace-api-g-wCKoQU.js +2 -0
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-DwpWKogz.js +1 -0
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-DxaxVC3q.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-CBHFZ2iQ.js → workspace-open-location-menu-Dh0TvTkH.js} +1 -1
- package/dist/gateway/static/root/assets/workspace-preview-store-DoIjn_2j.js +1 -0
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Cm0Saa8B.js → xopc-cloud-account-card-DGAGXbGI.js} +1 -1
- package/dist/gateway/static/root/index.html +136 -123
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/automations.js +7 -0
- package/dist/packages/gateway-contract/src/capabilities.js +1 -1
- package/dist/packages/gateway-contract/src/clarifications.js +20 -2
- package/dist/packages/gateway-contract/src/index.js +6 -4
- package/dist/packages/gateway-contract/src/music-generation.js +5 -2
- package/dist/packages/gateway-contract/src/space.js +23 -0
- package/dist/packages/gateway-contract/src/task-lifecycle.js +1 -0
- package/dist/packages/gateway-contract/src/task-result-delivery.js +1 -0
- package/dist/packages/gateway-contract/src/task-runs.js +1 -0
- package/dist/packages/gateway-contract/src/tasks.js +118 -6
- package/dist/packages/gateway-contract/src/turn-outcome.js +16 -2
- package/dist/packages/gateway-contract/src/video-generation.js +29 -4
- package/dist/src/agent/agent-manager.js +2 -2
- package/dist/src/agent/background-review/prompts.js +5 -1
- package/dist/src/agent/embedded/agent-profile-context.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/orchestration/delegation-budget.d.ts +2 -2
- package/dist/src/agent/orchestration/turn-recovery.d.ts +12 -3
- package/dist/src/agent/orchestration/turn-recovery.js +25 -6
- package/dist/src/agent/service/process-direct-streaming.js +1 -1
- package/dist/src/agent/service/webchat-tts.js +1 -1
- package/dist/src/agent/service.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +1 -1
- package/dist/src/agent/tools/apply-patch.js +1 -1
- package/dist/src/agent/tools/factory.js +1 -1
- package/dist/src/agent/tools/image-generate-tool.js +1 -0
- package/dist/src/agent/tools/language-diagnostics.js +1 -1
- package/dist/src/agent/tools/personal-memory-tool.js +12 -10
- package/dist/src/agent/tools/personal-task-tool.d.ts +1 -0
- package/dist/src/agent/tools/personal-task-tool.js +12 -7
- package/dist/src/agent/tools/publish-artifacts.js +2 -1
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +1 -0
- package/dist/src/agent/tools/tool-media.d.ts +3 -1
- package/dist/src/agent/tools/tool-media.js +2 -0
- package/dist/src/agent/tools/video-draft-tool.d.ts +1 -0
- package/dist/src/agent/tools/video-draft-tool.js +5 -1
- package/dist/src/agent/tools/xopc-use-tool.js +21 -4
- package/dist/src/agent-catalog/test-support.js +1 -1
- package/dist/src/agent-matching/delegation-service.js +1 -1
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/capabilities/write.d.ts +30 -6
- package/dist/src/automations/capabilities/write.js +2 -2
- package/dist/src/automations/configuration-conversation.js +1 -1
- package/dist/src/automations/domain/types.d.ts +6 -0
- package/dist/src/automations/domain/validation.d.ts +60 -12
- package/dist/src/automations/domain/validation.js +7 -0
- package/dist/src/automations/draft/automation-draft-validator.d.ts +12 -3
- package/dist/src/automations/draft/automation-draft-validator.js +1 -0
- package/dist/src/automations/service/action-executor.js +14 -2
- package/dist/src/automations/service/automation-service.js +2 -2
- package/dist/src/browser/providers/browser-ext-install.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/computer/diagnostics.d.ts +9 -9
- package/dist/src/computer/errors.d.ts +2 -2
- package/dist/src/computer/evaluation.d.ts +7 -7
- package/dist/src/computer/runtime.d.ts +4 -4
- package/dist/src/config/schema.d.ts +2 -2
- package/dist/src/discussions/action-tasks.d.ts +2 -2
- package/dist/src/execution-environments/local-worktree-manager.js +1 -1
- package/dist/src/extensions/agent-plugins/inventory.d.ts +2 -2
- package/dist/src/extensions/agent-plugins/setup.d.ts +3 -3
- package/dist/src/gateway/hono/routes/commands-skills.js +1 -1
- package/dist/src/gateway/hono/routes/connectors.js +2 -2
- package/dist/src/gateway/hono/routes/context-sources.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +8 -0
- package/dist/src/gateway/hono/routes/memory-learning.js +19 -3
- package/dist/src/gateway/hono/routes/models.js +7 -0
- package/dist/src/gateway/hono/routes/music-generation.js +26 -3
- package/dist/src/gateway/hono/routes/personal-agent.js +214 -5
- package/dist/src/gateway/hono/routes/phone-setup.js +1 -1
- package/dist/src/gateway/hono/routes/space.d.ts +3 -0
- package/dist/src/gateway/hono/routes/space.js +105 -0
- package/dist/src/gateway/hono/routes/tasks.js +27 -28
- package/dist/src/gateway/hono/routes/video-generation.js +9 -6
- package/dist/src/gateway/html-preview-shell.d.ts +1 -1
- package/dist/src/gateway/html-preview-shell.js +3 -0
- package/dist/src/gateway/media-access.js +2 -2
- package/dist/src/gateway/security/gateway-scopes.js +2 -0
- package/dist/src/gateway/service/config-coordinator.d.ts +1 -1
- package/dist/src/gateway/service.d.ts +1 -0
- package/dist/src/gateway/service.js +10 -3
- package/dist/src/gateway/session-context-summary.js +1 -1
- package/dist/src/gateway/xopc-cloud-capability-setup.d.ts +2 -0
- package/dist/src/gateway/xopc-cloud-capability-setup.js +18 -1
- package/dist/src/home-intelligence/follow-ups.js +2 -1
- package/dist/src/home-intelligence/routines.js +1 -1
- package/dist/src/local-apps/automation-proposals.d.ts +54 -12
- package/dist/src/local-apps/capabilities/projections.d.ts +7 -7
- package/dist/src/local-apps/preview-fixtures.d.ts +1 -1
- package/dist/src/media/session-references.d.ts +4 -1
- package/dist/src/media/session-references.js +40 -8
- package/dist/src/memory-learning/work-capture.js +2 -1
- package/dist/src/memory-learning/work-review.d.ts +2 -0
- package/dist/src/memory-learning/work-review.js +25 -2
- package/dist/src/music-generation/artifact.js +3 -1
- package/dist/src/music-generation/mureka.js +1 -1
- package/dist/src/music-generation/provider.d.ts +4 -1
- package/dist/src/music-generation/provider.js +6 -1
- package/dist/src/music-generation/providers.d.ts +3 -1
- package/dist/src/music-generation/providers.js +39 -16
- package/dist/src/music-generation/repository.d.ts +3 -1
- package/dist/src/music-generation/repository.js +12 -3
- package/dist/src/music-generation/tencent-mps.d.ts +11 -0
- package/dist/src/music-generation/tencent-mps.js +151 -0
- package/dist/src/music-generation/worker.js +16 -5
- package/dist/src/music-generation/xopc-cloud.d.ts +2 -0
- package/dist/src/music-generation/xopc-cloud.js +38 -0
- package/dist/src/personal-agent/capability-service.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +1 -1
- package/dist/src/personal-agent/prompt-context.js +1 -1
- package/dist/src/personal-agent/prompts.js +2 -2
- package/dist/src/personal-agent/reply-composer.js +16 -7
- package/dist/src/personal-agent/repository.js +1 -1
- package/dist/src/personal-agent/request-delivery.js +17 -7
- package/dist/src/personal-agent/request-service.js +6 -10
- package/dist/src/personal-agent/result-extraction.js +13 -13
- package/dist/src/personal-agent/schedules.d.ts +9 -0
- package/dist/src/personal-agent/schedules.js +44 -0
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/providers/model-catalog-persistence.js +6 -1
- package/dist/src/providers/model-catalog-store.js +1 -0
- package/dist/src/providers/model-catalog-types.d.ts +2 -0
- package/dist/src/providers/xopc-cloud-media-manifest.d.ts +24 -0
- package/dist/src/providers/xopc-cloud-media-manifest.js +28 -0
- package/dist/src/providers/xopc-cloud-media.d.ts +28 -0
- package/dist/src/providers/xopc-cloud-media.js +67 -0
- package/dist/src/providers/xopc-cloud-model-source.js +4 -0
- package/dist/src/runtime-tools/archive.js +1 -1
- package/dist/src/runtime-tools/manager.js +1 -1
- package/dist/src/runtime-tools/phone-dependencies.js +1 -1
- package/dist/src/session/client-history.d.ts +4 -1
- package/dist/src/session/client-history.js +18 -0
- package/dist/src/session/compact-history.js +30 -1
- package/dist/src/session/store.js +2 -1
- package/dist/src/session/turn-outcome-projector.js +1 -1
- package/dist/src/space/ingest.d.ts +36 -0
- package/dist/src/space/ingest.js +149 -0
- package/dist/src/space/repository.d.ts +39 -0
- package/dist/src/space/repository.js +325 -0
- package/dist/src/space/worker.d.ts +14 -0
- package/dist/src/space/worker.js +199 -0
- package/dist/src/storage/sqlite/clarification-wait-repository.js +7 -4
- package/dist/src/storage/sqlite/row-mappers.d.ts +1 -0
- package/dist/src/storage/sqlite/row-mappers.js +9 -2
- package/dist/src/storage/sqlite/schema.d.ts +2 -2
- package/dist/src/storage/sqlite/schema.js +8 -7
- package/dist/src/storage/sqlite/schema.sql +104 -0
- package/dist/src/storage/sqlite/transcript-repository.js +8 -0
- package/dist/src/storage/sqlite/upgrades/278_music_job_error_code.sql +6 -0
- package/dist/src/storage/sqlite/upgrades/279_task_model_cutover.sql +288 -0
- package/dist/src/storage/sqlite/upgrades/280_space.sql +61 -0
- package/dist/src/tasks/capabilities/management.d.ts +15 -2
- package/dist/src/tasks/capabilities/management.js +8 -2
- package/dist/src/tasks/capabilities/read.js +14 -2
- package/dist/src/tasks/capabilities/relations.d.ts +13 -7
- package/dist/src/tasks/capabilities/write.d.ts +118 -2
- package/dist/src/tasks/capabilities/write.js +2 -0
- package/dist/src/tasks/home-query-service.js +7 -9
- package/dist/src/tasks/task-allocation-service.js +2 -2
- package/dist/src/tasks/task-application-service.d.ts +8 -2
- package/dist/src/tasks/task-application-service.js +94 -27
- package/dist/src/tasks/task-collaboration-repository.js +12 -1
- package/dist/src/tasks/task-context-assembler.js +9 -3
- package/dist/src/tasks/task-contract-planner.js +1 -3
- package/dist/src/tasks/task-conversation-summary.d.ts +33 -2
- package/dist/src/tasks/task-conversation-summary.js +3 -1
- package/dist/src/tasks/task-criterion-review-repository.d.ts +31 -2
- package/dist/src/tasks/task-criterion-review-repository.js +70 -23
- package/dist/src/tasks/task-deliverables.d.ts +7 -0
- package/dist/src/tasks/task-deliverables.js +112 -0
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-instruction-sequence.js +10 -3
- package/dist/src/tasks/task-json-acceptance.js +3 -5
- package/dist/src/tasks/task-origin-repository.d.ts +99 -1
- package/dist/src/tasks/task-origin-repository.js +67 -5
- package/dist/src/tasks/task-read-model-projector.d.ts +4 -1
- package/dist/src/tasks/task-read-model-projector.js +123 -9
- package/dist/src/tasks/task-repository.d.ts +4 -1
- package/dist/src/tasks/task-repository.js +34 -11
- package/dist/src/tasks/task-research-repair.d.ts +2 -2
- package/dist/src/tasks/task-research-result.d.ts +1 -0
- package/dist/src/tasks/task-research-result.js +13 -3
- package/dist/src/tasks/task-result-delivery-repository.d.ts +4 -3
- package/dist/src/tasks/task-result-delivery-repository.js +35 -17
- package/dist/src/tasks/task-result-delivery-service.js +22 -7
- package/dist/src/tasks/task-result-versions.d.ts +11 -0
- package/dist/src/tasks/task-result-versions.js +34 -0
- package/dist/src/tasks/task-run-coordinator.js +28 -15
- package/dist/src/tasks/task-run-dispatcher.js +29 -4
- package/dist/src/tasks/task-run-repository.d.ts +2 -0
- package/dist/src/tasks/task-run-repository.js +62 -19
- package/dist/src/tasks/task-workspace-verification.d.ts +16 -0
- package/dist/src/tasks/task-workspace-verification.js +95 -0
- package/dist/src/tui/backends/embedded-backend.js +2 -2
- package/dist/src/user-model/action-rule-suggestions.js +4 -3
- package/dist/src/user-model/capture/evidence-policy.d.ts +7 -1
- package/dist/src/user-model/capture/evidence-policy.js +68 -2
- package/dist/src/user-model/capture/executor.js +62 -14
- package/dist/src/video-generation/artifact.js +3 -1
- package/dist/src/video-generation/drafts.d.ts +1 -0
- package/dist/src/video-generation/drafts.js +6 -0
- package/dist/src/video-generation/providers.d.ts +1 -0
- package/dist/src/video-generation/providers.js +37 -5
- package/dist/src/video-generation/repository.d.ts +5 -3
- package/dist/src/video-generation/repository.js +30 -8
- package/dist/src/video-generation/settings.d.ts +1 -0
- package/dist/src/video-generation/settings.js +10 -4
- package/dist/src/voice/realtime/runtime.js +1 -1
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/attachment-preview-renderer-DdOEgexg.js +0 -12
- package/dist/gateway/static/root/assets/attachment-utils-core-BIOUBrpT.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-CH9gYqIK.js +0 -9
- package/dist/gateway/static/root/assets/binary-plugins-MFVtTdvy.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-CFWTer_v.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-C2RB9fzC.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BjaLTd6i.js +0 -8
- package/dist/gateway/static/root/assets/channels-DiDfjON8.js +0 -1
- package/dist/gateway/static/root/assets/chat-page-BtMkdtxJ.js +0 -71
- package/dist/gateway/static/root/assets/constants-Bg1wM2nv.js +0 -1
- package/dist/gateway/static/root/assets/extension-authoritative-grants-DIeg1mg8.js +0 -1
- package/dist/gateway/static/root/assets/file-tree-CFlZnV3Y.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-CJf-qaHZ.js +0 -1
- package/dist/gateway/static/root/assets/index-BJj-uZNl.js +0 -11
- package/dist/gateway/static/root/assets/index-DiWUK4sJ.css +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-wekatwet.js +0 -1
- package/dist/gateway/static/root/assets/local-apps-DeqzkJiF.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-CukseY3k.js +0 -2
- package/dist/gateway/static/root/assets/messages-BDBGlBKh.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-cache-aRYHi2dh.js +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-D5BtgBxy.js +0 -7
- package/dist/gateway/static/root/assets/note-image-lightbox-CxXu_Tkh.js +0 -1
- package/dist/gateway/static/root/assets/notes-api-BXevQivV.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-DyM-3O_9.js +0 -8
- package/dist/gateway/static/root/assets/page-header-store-C2ydtnXa.js +0 -1
- package/dist/gateway/static/root/assets/personal-avatar-BPQpvC34.js +0 -1
- package/dist/gateway/static/root/assets/personal-avatar-BUCb7OiW.css +0 -1
- package/dist/gateway/static/root/assets/personal-page-BB4Sv68K.js +0 -1
- package/dist/gateway/static/root/assets/phone-DdhTnt6X.js +0 -1
- package/dist/gateway/static/root/assets/product-automation-feedback-BlwtlUY7.js +0 -7
- package/dist/gateway/static/root/assets/product-delivery-CnvCn9L-.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-BG2nDt98.js +0 -7
- package/dist/gateway/static/root/assets/recording-upload-BJkXktA-.js +0 -1
- package/dist/gateway/static/root/assets/right-workspace-store-DHHyicqQ.js +0 -1
- package/dist/gateway/static/root/assets/route-preload-BYqg1BYz.js +0 -2
- package/dist/gateway/static/root/assets/routine-panel-Coh2B0j7.js +0 -2
- package/dist/gateway/static/root/assets/session-manager-D5g6LOU-.js +0 -25
- package/dist/gateway/static/root/assets/settings-advanced-gate-DjyibJZ1.js +0 -1
- package/dist/gateway/static/root/assets/share-preview-page-CyCv69rh.js +0 -2
- package/dist/gateway/static/root/assets/shares-settings-B85XIDFv.js +0 -1
- package/dist/gateway/static/root/assets/star-CnYNmpLd.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-DgsLOz6h.js +0 -3
- package/dist/gateway/static/root/assets/tasks-BTLabOMp.js +0 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-C9GpCJQR.js +0 -2
- package/dist/gateway/static/root/assets/use-file-preview-expanded-Daf-LmiF.js +0 -15
- package/dist/gateway/static/root/assets/use-personal-profile-BJgaheR4.js +0 -1
- package/dist/gateway/static/root/assets/video-generation-D08uZbsu.js +0 -1
- package/dist/gateway/static/root/assets/voice-settings-BUrk4mwV.js +0 -1
- package/dist/gateway/static/root/assets/with-selector-xonYxPoM.js +0 -1
- package/dist/gateway/static/root/assets/workspace-api-CscTRODe.js +0 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-CyPjTDSx.js +0 -1
- package/dist/gateway/static/root/assets/workspace-file-preview-dialog-JSGIA79T.js +0 -1
- package/dist/gateway/static/root/assets/workspace-preview-store-DNLnuHlf.js +0 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
2
|
+
import { archiveSpaceGeneratedMedia } from "../space/ingest.js";
|
|
2
3
|
import { configuredMusicModel } from "./providers.js";
|
|
3
4
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
5
|
//#region src/music-generation/repository.ts
|
|
@@ -17,6 +18,7 @@ function publicMusicJob(row) {
|
|
|
17
18
|
state: row.state,
|
|
18
19
|
durationMs: row.duration_ms,
|
|
19
20
|
error: row.error,
|
|
21
|
+
errorCode: row.error_code,
|
|
20
22
|
createdAt: row.created_at
|
|
21
23
|
};
|
|
22
24
|
}
|
|
@@ -80,7 +82,8 @@ async function enqueueMusicJob(conversationId, transcriptId, toolCallId, request
|
|
|
80
82
|
function claimMusicJob() {
|
|
81
83
|
return runSqliteWriteTransaction((db) => {
|
|
82
84
|
const now = Date.now();
|
|
83
|
-
db.prepare(`UPDATE music_generation_jobs SET state = 'submission_unknown',
|
|
85
|
+
db.prepare(`UPDATE music_generation_jobs SET state = 'submission_unknown', error = NULL, error_code = NULL,
|
|
86
|
+
lease_token = NULL, lease_until = NULL
|
|
84
87
|
WHERE state = 'submitting' AND lease_until <= ?`).run(now);
|
|
85
88
|
const row = db.prepare(`SELECT * FROM music_generation_jobs WHERE state IN ('queued', 'submitted', 'running', 'saving')
|
|
86
89
|
AND next_attempt_at <= ? AND (lease_until IS NULL OR lease_until <= ?) ORDER BY next_attempt_at, rowid LIMIT 1`).get(now, now);
|
|
@@ -95,10 +98,16 @@ function claimMusicJob() {
|
|
|
95
98
|
}
|
|
96
99
|
function updateMusicJob(id, token, state, options = {}) {
|
|
97
100
|
const now = Date.now();
|
|
98
|
-
|
|
101
|
+
const update = (db) => db.prepare(`UPDATE music_generation_jobs SET state = ?, error = ?, error_code = ?,
|
|
99
102
|
provider_task_id = COALESCE(?, provider_task_id), duration_ms = COALESCE(?, duration_ms), next_attempt_at = ?,
|
|
100
103
|
lease_token = CASE WHEN ? THEN lease_token END, lease_until = CASE WHEN ? THEN lease_until END
|
|
101
|
-
WHERE id = ? AND lease_token = ? AND lease_until > ?`).run(state, options.error ?? null, options.taskId ?? null, options.durationMs ?? null, now + (options.delayMs ?? 0), Number(options.keepLease ?? false), Number(options.keepLease ?? false), id, token, now).changes === 1;
|
|
104
|
+
WHERE id = ? AND lease_token = ? AND lease_until > ?`).run(state, options.error ?? null, options.errorCode ?? null, options.taskId ?? null, options.durationMs ?? null, now + (options.delayMs ?? 0), Number(options.keepLease ?? false), Number(options.keepLease ?? false), id, token, now).changes === 1;
|
|
105
|
+
if (state !== "completed") return update(getSqliteDatabase());
|
|
106
|
+
return runSqliteWriteTransaction((db) => {
|
|
107
|
+
const updated = update(db);
|
|
108
|
+
if (updated) archiveSpaceGeneratedMedia(db, "music", id);
|
|
109
|
+
return updated;
|
|
110
|
+
});
|
|
102
111
|
}
|
|
103
112
|
//#endregion
|
|
104
113
|
export { claimMusicJob, enqueueMusicJob, getMusicJob, listMusicJobIds, listMusicJobs, publicMusicJob, updateMusicJob };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { type MusicProvider } from './provider.js';
|
|
3
|
+
export declare const tencentMpsCredentialsSchema: z.ZodObject<{
|
|
4
|
+
secretId: z.ZodString;
|
|
5
|
+
secretKey: z.ZodString;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export declare function parseTencentMpsCredentials(stored: string | null): {
|
|
8
|
+
secretId: string;
|
|
9
|
+
secretKey: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const tencentMpsProvider: MusicProvider;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { TENCENT_MPS_MUSIC_PROVIDER } from "../../packages/gateway-contract/src/music-generation.js";
|
|
2
|
+
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
3
|
+
import { MusicRequestRejected } from "./provider.js";
|
|
4
|
+
import { createHash, createHmac } from "node:crypto";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
//#region src/music-generation/tencent-mps.ts
|
|
7
|
+
init_src();
|
|
8
|
+
const host = "mps.tencentcloudapi.com";
|
|
9
|
+
const contentType = "application/json; charset=utf-8";
|
|
10
|
+
const algorithm = "TC3-HMAC-SHA256";
|
|
11
|
+
const signedHeaders = "content-type;host;x-tc-action";
|
|
12
|
+
const actionSchema = z.object({ Response: z.object({
|
|
13
|
+
Error: z.object({ Code: z.string() }).optional(),
|
|
14
|
+
TaskId: z.string().min(1).max(200).optional(),
|
|
15
|
+
Status: z.string().optional(),
|
|
16
|
+
AudioInfos: z.array(z.object({
|
|
17
|
+
Url: z.string().optional(),
|
|
18
|
+
Duration: z.number().nullish()
|
|
19
|
+
})).nullish()
|
|
20
|
+
}) });
|
|
21
|
+
const tencentMpsCredentialsSchema = z.strictObject({
|
|
22
|
+
secretId: z.string().trim().min(1).max(256).regex(/^[a-zA-Z0-9_-]+$/),
|
|
23
|
+
secretKey: z.string().trim().min(1).max(256).regex(/^[a-zA-Z0-9_+/=-]+$/)
|
|
24
|
+
});
|
|
25
|
+
function parseTencentMpsCredentials(stored) {
|
|
26
|
+
if (!stored) return void 0;
|
|
27
|
+
try {
|
|
28
|
+
return tencentMpsCredentialsSchema.safeParse(JSON.parse(stored)).data;
|
|
29
|
+
} catch {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function sha256(value) {
|
|
34
|
+
return createHash("sha256").update(value).digest("hex");
|
|
35
|
+
}
|
|
36
|
+
function hmac(key, value) {
|
|
37
|
+
return createHmac("sha256", key).update(value).digest();
|
|
38
|
+
}
|
|
39
|
+
async function callMps(key, action, input) {
|
|
40
|
+
const credentials = parseTencentMpsCredentials(key);
|
|
41
|
+
if (!credentials) throw new MusicRequestRejected("Tencent Cloud MPS credentials are invalid.", "provider_rejected");
|
|
42
|
+
const body = JSON.stringify(input);
|
|
43
|
+
const timestamp = Math.floor(Date.now() / 1e3);
|
|
44
|
+
const date = (/* @__PURE__ */ new Date(timestamp * 1e3)).toISOString().slice(0, 10);
|
|
45
|
+
const scope = `${date}/mps/tc3_request`;
|
|
46
|
+
const toSign = [
|
|
47
|
+
algorithm,
|
|
48
|
+
timestamp,
|
|
49
|
+
scope,
|
|
50
|
+
sha256([
|
|
51
|
+
"POST",
|
|
52
|
+
"/",
|
|
53
|
+
"",
|
|
54
|
+
`content-type:${contentType}\nhost:${host}\nx-tc-action:${action.toLowerCase()}\n`,
|
|
55
|
+
signedHeaders,
|
|
56
|
+
sha256(body)
|
|
57
|
+
].join("\n"))
|
|
58
|
+
].join("\n");
|
|
59
|
+
const signature = hmac(hmac(hmac(hmac(`TC3${credentials.secretKey}`, date), "mps"), "tc3_request"), toSign).toString("hex");
|
|
60
|
+
const response = await fetch(`https://${host}/`, {
|
|
61
|
+
method: "POST",
|
|
62
|
+
headers: {
|
|
63
|
+
Authorization: `${algorithm} Credential=${credentials.secretId}/${scope}, SignedHeaders=${signedHeaders}, Signature=${signature}`,
|
|
64
|
+
"Content-Type": contentType,
|
|
65
|
+
"X-TC-Action": action,
|
|
66
|
+
"X-TC-Timestamp": String(timestamp),
|
|
67
|
+
"X-TC-Version": "2019-06-12"
|
|
68
|
+
},
|
|
69
|
+
body,
|
|
70
|
+
redirect: "error",
|
|
71
|
+
signal: AbortSignal.timeout(25e3)
|
|
72
|
+
});
|
|
73
|
+
const isSubmission = action === "CreateAigcAudioTask";
|
|
74
|
+
if (!response.ok) {
|
|
75
|
+
await response.body?.cancel().catch(() => void 0);
|
|
76
|
+
const message = `Tencent Cloud MPS returned HTTP ${response.status}.`;
|
|
77
|
+
if (isSubmission && [
|
|
78
|
+
400,
|
|
79
|
+
401,
|
|
80
|
+
402,
|
|
81
|
+
403,
|
|
82
|
+
404,
|
|
83
|
+
422,
|
|
84
|
+
429
|
|
85
|
+
].includes(response.status)) throw new MusicRequestRejected(message, response.status === 429 ? "provider_rate_limited" : "provider_rejected");
|
|
86
|
+
throw new Error(message);
|
|
87
|
+
}
|
|
88
|
+
const result = actionSchema.parse(await response.json()).Response;
|
|
89
|
+
if (result.Error) {
|
|
90
|
+
const code = result.Error.Code.split(".")[0];
|
|
91
|
+
if (isSubmission && (code === "RequestLimitExceeded" || code === "LimitExceeded")) throw new MusicRequestRejected(`Tencent Cloud MPS rejected the request (${code}).`, "provider_rate_limited");
|
|
92
|
+
if (isSubmission && /^(AuthFailure|UnauthorizedOperation|InvalidParameter(?:Value)?|MissingParameter|UnsupportedOperation|OperationDenied|ResourceUnavailable|AccountError|NoSuchVersion|InvalidAction)$/.test(code)) throw new MusicRequestRejected(`Tencent Cloud MPS rejected the request (${code}).`, "provider_rejected");
|
|
93
|
+
throw new Error("Tencent Cloud MPS did not return a task result.");
|
|
94
|
+
}
|
|
95
|
+
return result;
|
|
96
|
+
}
|
|
97
|
+
const tencentMpsProvider = {
|
|
98
|
+
id: TENCENT_MPS_MUSIC_PROVIDER,
|
|
99
|
+
name: "Tencent Cloud MPS",
|
|
100
|
+
models: { "minimax-music-3.0": {
|
|
101
|
+
name: "MiniMax Music 3.0",
|
|
102
|
+
modes: ["song", "instrumental"],
|
|
103
|
+
maxPromptCharacters: 2e3,
|
|
104
|
+
maxLyricsCharacters: 3500
|
|
105
|
+
} },
|
|
106
|
+
environmentKey() {
|
|
107
|
+
const credentials = tencentMpsCredentialsSchema.safeParse({
|
|
108
|
+
secretId: process.env.TENCENTCLOUD_SECRET_ID,
|
|
109
|
+
secretKey: process.env.TENCENTCLOUD_SECRET_KEY
|
|
110
|
+
});
|
|
111
|
+
return credentials.success ? JSON.stringify(credentials.data) : void 0;
|
|
112
|
+
},
|
|
113
|
+
allowsAudioHost: (hostname) => hostname.endsWith(".myqcloud.com") || hostname.endsWith(".vod-qcloud.com"),
|
|
114
|
+
async submit(key, _model, { mode, prompt, lyrics }) {
|
|
115
|
+
const result = await callMps(key, "CreateAigcAudioTask", {
|
|
116
|
+
ModelName: "MiniMaxMusic",
|
|
117
|
+
ModelVersion: "3.0",
|
|
118
|
+
SceneType: "music",
|
|
119
|
+
Prompt: prompt,
|
|
120
|
+
ExtraParameters: { OutputAudioFormat: "mp3" },
|
|
121
|
+
AdditionalParameters: JSON.stringify(mode === "song" ? { lyrics } : { is_instrumental: true })
|
|
122
|
+
});
|
|
123
|
+
if (!result.TaskId) throw new Error("Tencent Cloud MPS did not return a task ID.");
|
|
124
|
+
return result.TaskId;
|
|
125
|
+
},
|
|
126
|
+
async query(key, _mode, taskId) {
|
|
127
|
+
const result = await callMps(key, "DescribeAigcAudioTask", { TaskId: taskId });
|
|
128
|
+
switch (result.Status) {
|
|
129
|
+
case "WAIT": return { state: "submitted" };
|
|
130
|
+
case "RUN": return { state: "running" };
|
|
131
|
+
case "FAIL": return {
|
|
132
|
+
state: "failed",
|
|
133
|
+
reason: "Tencent Cloud MPS reported that music generation failed."
|
|
134
|
+
};
|
|
135
|
+
case "DONE": {
|
|
136
|
+
const audio = result.AudioInfos?.find((item) => item.Url);
|
|
137
|
+
if (!audio?.Url) break;
|
|
138
|
+
const duration = audio.Duration;
|
|
139
|
+
const durationMs = duration && duration > 0 ? Math.round(duration * 1e3) : null;
|
|
140
|
+
return {
|
|
141
|
+
state: "completed",
|
|
142
|
+
url: audio.Url,
|
|
143
|
+
durationMs
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
throw new Error("Tencent Cloud MPS returned an incomplete or unrecognized task status.");
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
//#endregion
|
|
151
|
+
export { parseTencentMpsCredentials, tencentMpsCredentialsSchema, tencentMpsProvider };
|
|
@@ -40,7 +40,10 @@ var MusicGenerationWorker = class {
|
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
if (Date.now() - row.created_at >= lifetimeMs) {
|
|
43
|
-
updateMusicJob(id, token, "failed", {
|
|
43
|
+
updateMusicJob(id, token, "failed", {
|
|
44
|
+
error: "The music task or its download is no longer available.",
|
|
45
|
+
errorCode: "expired"
|
|
46
|
+
});
|
|
44
47
|
return;
|
|
45
48
|
}
|
|
46
49
|
const route = resolveMusicModel(row.model_ref);
|
|
@@ -48,7 +51,8 @@ var MusicGenerationWorker = class {
|
|
|
48
51
|
if (!route || !key) {
|
|
49
52
|
updateMusicJob(id, token, row.state, {
|
|
50
53
|
delayMs: retryMs,
|
|
51
|
-
error: "Restore the original music model credentials to resume."
|
|
54
|
+
error: "Restore the original music model credentials to resume.",
|
|
55
|
+
errorCode: "credentials_missing"
|
|
52
56
|
});
|
|
53
57
|
return;
|
|
54
58
|
}
|
|
@@ -66,7 +70,10 @@ var MusicGenerationWorker = class {
|
|
|
66
70
|
});
|
|
67
71
|
} catch (err) {
|
|
68
72
|
if (err instanceof MusicRequestRejected) {
|
|
69
|
-
updateMusicJob(id, token, "failed", {
|
|
73
|
+
updateMusicJob(id, token, "failed", {
|
|
74
|
+
error: err.message,
|
|
75
|
+
errorCode: err.code
|
|
76
|
+
});
|
|
70
77
|
log.warn({
|
|
71
78
|
jobId: id,
|
|
72
79
|
modelRef: row.model_ref
|
|
@@ -91,7 +98,10 @@ var MusicGenerationWorker = class {
|
|
|
91
98
|
updateMusicJob(id, token, result.state, { delayMs: pollMs });
|
|
92
99
|
return;
|
|
93
100
|
case "failed":
|
|
94
|
-
updateMusicJob(id, token, "failed", {
|
|
101
|
+
updateMusicJob(id, token, "failed", {
|
|
102
|
+
error: result.reason,
|
|
103
|
+
errorCode: "provider_failed"
|
|
104
|
+
});
|
|
95
105
|
return;
|
|
96
106
|
case "completed":
|
|
97
107
|
if (!updateMusicJob(id, token, "saving", {
|
|
@@ -106,7 +116,8 @@ var MusicGenerationWorker = class {
|
|
|
106
116
|
} catch {
|
|
107
117
|
updateMusicJob(id, token, saving ? "saving" : row.state, {
|
|
108
118
|
delayMs: retryMs,
|
|
109
|
-
error: saving ? "Audio download failed. Retrying the same result." : "Status check failed. Retrying."
|
|
119
|
+
error: saving ? "Audio download failed. Retrying the same result." : "Status check failed. Retrying.",
|
|
120
|
+
errorCode: saving ? "audio_retrying" : "status_retrying"
|
|
110
121
|
});
|
|
111
122
|
}
|
|
112
123
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { CLOUD_MEDIA_PROVIDER, CloudMediaError, queryCloudMedia, submitCloudMedia } from "../providers/xopc-cloud-media.js";
|
|
2
|
+
import { MusicRequestRejected } from "./provider.js";
|
|
3
|
+
import { murekaGlobalProvider, murekaProvider } from "./mureka.js";
|
|
4
|
+
import { tencentMpsProvider } from "./tencent-mps.js";
|
|
5
|
+
const cloudMusicProvider = {
|
|
6
|
+
id: CLOUD_MEDIA_PROVIDER,
|
|
7
|
+
name: "XOPC Cloud",
|
|
8
|
+
models: {
|
|
9
|
+
music: murekaProvider.models["mureka-9.5"],
|
|
10
|
+
"music-mureka-global": {
|
|
11
|
+
...murekaGlobalProvider.models["mureka-9.5"],
|
|
12
|
+
name: "mureka-9.5 (Global)"
|
|
13
|
+
},
|
|
14
|
+
"music-minimax": tencentMpsProvider.models["minimax-music-3.0"]
|
|
15
|
+
},
|
|
16
|
+
environmentKey: () => void 0,
|
|
17
|
+
allowsAudioHost: (host) => murekaProvider.allowsAudioHost(host) || tencentMpsProvider.allowsAudioHost(host),
|
|
18
|
+
async submit(token, model, input) {
|
|
19
|
+
try {
|
|
20
|
+
return await submitCloudMedia("music", token, {
|
|
21
|
+
model,
|
|
22
|
+
...input
|
|
23
|
+
});
|
|
24
|
+
} catch (error) {
|
|
25
|
+
if (error instanceof CloudMediaError && error.status >= 400 && error.status < 500 && error.status !== 408) throw new MusicRequestRejected(error.message, error.status === 429 ? "provider_rate_limited" : "provider_rejected");
|
|
26
|
+
throw error;
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
async query(token, _mode, taskId) {
|
|
30
|
+
const status = await queryCloudMedia("music", token, taskId);
|
|
31
|
+
return status.state === "completed" ? {
|
|
32
|
+
...status,
|
|
33
|
+
durationMs: status.durationMs ?? null
|
|
34
|
+
} : status;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
export { cloudMusicProvider };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getConnectorInstallation, init_connector_repository, listConnectorConnections } from "../storage/sqlite/connector-repository.js";
|
|
2
1
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
2
|
+
import { getConnectorInstallation, init_connector_repository, listConnectorConnections } from "../storage/sqlite/connector-repository.js";
|
|
3
3
|
import { isPersonalConversation } from "./repository.js";
|
|
4
4
|
import { canAccessConnectorAccount, currentAccountConnections } from "../connectors/account-access.js";
|
|
5
5
|
import { connectorPrincipalForSession } from "../connectors/principal.js";
|
|
@@ -5,8 +5,8 @@ import { PersonalProactiveMessageSchema } from "../../../packages/gateway-contra
|
|
|
5
5
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
6
6
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../../storage/sqlite/session-instance-repository.js";
|
|
7
7
|
import { DurableState } from "../../storage/sqlite/durable-state.js";
|
|
8
|
-
import { appendTranscriptEntry } from "../../storage/sqlite/transcript-repository.js";
|
|
9
8
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
9
|
+
import { appendTranscriptEntry } from "../../storage/sqlite/transcript-repository.js";
|
|
10
10
|
import { resolveUserContextSessionAccess } from "../../user-context/access-policy.js";
|
|
11
11
|
import { init_providers, resolveModel } from "../../providers/index.js";
|
|
12
12
|
import { completeWithResolvedCredentials } from "../../providers/model-call.js";
|
|
@@ -7,8 +7,8 @@ import "../knowledge-memory/index.js";
|
|
|
7
7
|
import { USER_PROFILE_IDENTITY_RULE, getUserProfileContext } from "../user-model/profile.js";
|
|
8
8
|
import { getProjectForSession } from "../projects/workspace.js";
|
|
9
9
|
import { isPersonalConversation } from "./repository.js";
|
|
10
|
-
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
11
10
|
import { TaskResultDeliveryRepository } from "../tasks/task-result-delivery-repository.js";
|
|
11
|
+
import { TaskOriginRepository } from "../tasks/task-origin-repository.js";
|
|
12
12
|
import { listPersonalResults } from "./result-reader.js";
|
|
13
13
|
//#region src/personal-agent/prompt-context.ts
|
|
14
14
|
const clip = (value, limit) => value && (value.length > limit ? `${value.slice(0, limit - 1)}…` : value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { PERSONAL_DEFAULT_STYLE_RULES } from "./default-style.js";
|
|
1
2
|
import { PERSONAL_EMOTIONAL_STYLE_RULE, PERSONAL_IDENTITY_CONTINUITY_RULE } from "./persona.js";
|
|
2
3
|
import { PERSONAL_COMMUNICATION_RULES, PERSONAL_FILE_DELIVERY_RULE, PERSONAL_RELIABILITY_RULES } from "./communication.js";
|
|
3
|
-
import { PERSONAL_DEFAULT_STYLE_RULES } from "./default-style.js";
|
|
4
4
|
import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
|
|
5
5
|
//#region src/personal-agent/prompts.ts
|
|
6
6
|
const DELEGATION_RULES = [
|
|
@@ -104,7 +104,7 @@ function projectPersonalInstructions(instructions, toolNames) {
|
|
|
104
104
|
if (tools.has("video_draft")) projected += "\nFor video generation in this chat, use video_draft directly to prepare or revise the draft and let the user confirm it in chat.";
|
|
105
105
|
return projected;
|
|
106
106
|
}
|
|
107
|
-
const PERSONAL_MEMORY_RULE = "A self-description or preference without a request to persist it is handled by background learning; adapt to it in the current reply, do not call personal_memory or claim it has already been saved. For an explicit request to remember, correct, forget, or limit saved memory, use personal_memory directly instead of delegating or promising background learning. Quote the current owner request in userEvidence. User identity
|
|
107
|
+
const PERSONAL_MEMORY_RULE = "A self-description or preference without a request to persist it is handled by background learning; adapt to it in the current reply, do not call personal_memory or claim it has already been saved. For an explicit request to remember, correct, forget, or limit saved memory, use personal_memory directly instead of delegating or promising background learning. Quote the current owner request in userEvidence. User identity, preferences and standing collaboration instructions (including tool choice) use target=user; project facts, decisions and lessons use target=knowledge. A clearly general long-term personal preference can be global even in a project chat. Keep tool instructions scoped to the current project when their cross-project applicability is unclear. \"All Slack reads\" defines the operation; \"in all projects\" defines the scope. Preserve the operation and any account limits in the preference text. Before changing an existing item read its id and version using the matching read tool. Resolve scope from what the user asks: global, current agent, workspace, project or session. Never broaden a local request. Missing current project is an error, not permission to fall back globally. Only say saved after status=saved with usable=true; pending means saved for review but not in use. A receipt records a past commit; available/usable describe current state on retries. Forgotten means future automatic recall stops, while originals and already running prompts may retain content. Keep acknowledgements short, name the actual scope, and offer correction only when useful. Memory cannot authorize external actions.";
|
|
108
108
|
const PERSONAL_ATTENTION_RULE = "Use personal_attention to save explicit requests to check again later and proactively tell the user about useful developments, including requests phrased without the word follow-up. The running Gateway checks saved attention automatically while the user is away and can post in this chat; do not ask the user to return or create a separate scheduler. Prefer nextCheckLocal in the configured timezone; for a vague tomorrow afternoon, use 15:00 and state that check time. A check is not a guaranteed notification or action authorization. Only claim follow-up saved after a successful tool result, and only claim memory written after a successful write; user_context_read is read-only. If a tool fails, explain the actual failure without inventing missing product capabilities. When there is no useful development, stay silent rather than posting no progress. Do not duplicate an existing scheduled automation or create attention from your own suggestions. For feedback, respect the smallest stated scope; silence is not rejection.";
|
|
109
109
|
const PERSONAL_ATTENTION_VERIFICATION_RULE = "For follow-up capability, use current system rules and tool descriptions, never prior assistant claims. When asked whether a follow-up is arranged or still active, query personal_attention(command=\"list\"); query command=\"settings\" when proactive settings are needed. Base status answers on current tool results. Do not substitute memory or notes for saved attention.";
|
|
110
110
|
const PERSONAL_GROWTH_RULE = "Topic feedback such as prepare fully next time changes only that attention thread: query personal_attention(list) to identify it, then feedback, never a global style change. If the topic is ambiguous, clarify. Use rollback only on an explicit undo request and the latest version ID. interests returns inferred, silent candidates with user evidence; do not treat confidence as confirmation or activate them without explicit follow-up. Keep growth state in the durable store, not personality files.";
|
|
@@ -4,27 +4,28 @@ import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "
|
|
|
4
4
|
import { TASK_RESULT_DELIVERY_TYPE, TaskResultDeliverySchema } from "../../packages/gateway-contract/src/task-result-delivery.js";
|
|
5
5
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
6
6
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../storage/sqlite/session-instance-repository.js";
|
|
7
|
+
import { archiveSpaceTaskDelivery } from "../space/ingest.js";
|
|
7
8
|
import { TaskRepository, init_task_repository } from "../tasks/task-repository.js";
|
|
9
|
+
import { taskInstructionSequence } from "../tasks/task-instruction-sequence.js";
|
|
10
|
+
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
11
|
+
import { init_agent_scope, resolveAgentProfileDir } from "../agent/agent-scope.js";
|
|
8
12
|
import { TaskRunRepository, init_task_run_repository } from "../tasks/task-run-repository.js";
|
|
9
13
|
import { appendTranscriptEntry, loadLlmMessagesForSession } from "../storage/sqlite/transcript-repository.js";
|
|
10
14
|
import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
11
|
-
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
12
|
-
import { init_agent_scope, resolveAgentProfileDir } from "../agent/agent-scope.js";
|
|
13
15
|
import { init_providers, resolveModel } from "../providers/index.js";
|
|
14
16
|
import { completeWithResolvedCredentials } from "../providers/model-call.js";
|
|
15
17
|
import { extractAssistantText, getAssistantMessageErrorReason } from "../providers/model-response.js";
|
|
16
18
|
import { getPersonalAgentByConversation } from "./repository.js";
|
|
17
19
|
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
20
|
+
import { TaskCriterionReviewRepository } from "../tasks/task-criterion-review-repository.js";
|
|
18
21
|
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
19
22
|
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
20
23
|
import { hasPersonalResultFileLinks, sanitizePersonalResultFileLinks } from "./result-file-links.js";
|
|
21
|
-
import { taskInstructionSequence } from "../tasks/task-instruction-sequence.js";
|
|
22
24
|
import { loadProfileBootstrapFiles } from "../agent/bootstrap/load-bootstrap-files.js";
|
|
23
|
-
import { TaskCriterionReviewRepository } from "../tasks/task-criterion-review-repository.js";
|
|
24
|
-
import { PERSONAL_PERSONA_GUIDANCE } from "./persona.js";
|
|
25
25
|
import "../tasks/task-research-result.js";
|
|
26
26
|
import { recordPersonalPerformance } from "./performance.js";
|
|
27
27
|
import { PERSONAL_DEFAULT_STYLE_RULES } from "./default-style.js";
|
|
28
|
+
import { PERSONAL_PERSONA_GUIDANCE } from "./persona.js";
|
|
28
29
|
import { PERSONAL_REPLY_EXAMPLES, PERSONAL_REPLY_STYLE_RULES } from "./reply-style.js";
|
|
29
30
|
import { personalConversationState } from "./conversation-state.js";
|
|
30
31
|
import { taskConversationSummary } from "../tasks/task-conversation-summary.js";
|
|
@@ -84,9 +85,9 @@ function valid(packet) {
|
|
|
84
85
|
if (!readCurrentTranscriptId(db, d.conversationId)) return false;
|
|
85
86
|
const run = new TaskRunRepository().get(d.taskRunId);
|
|
86
87
|
const state = new TaskConversationRepository().getState(d.taskId);
|
|
87
|
-
const task = db.prepare("SELECT version, resolution FROM tasks WHERE task_id = ?").get(d.taskId);
|
|
88
|
+
const task = db.prepare("SELECT version, resolution, latest_contract_version FROM tasks WHERE task_id = ?").get(d.taskId);
|
|
88
89
|
if (d.instructionSequence !== void 0 && d.instructionSequence !== taskInstructionSequence(d.taskId)) return false;
|
|
89
|
-
if (!task || task.version !== packet.taskVersion || task.resolution && task.resolution !== "done" || !run || !["succeeded", "failed"].includes(run.status) || new TaskRunRepository().getLatestRoot(d.taskId)?.id !== run.id || state?.assignmentEpoch !== d.assignmentEpoch || state.activeConversationId !== run.conversationId) return false;
|
|
90
|
+
if (!task || task.version !== packet.taskVersion || task.resolution && task.resolution !== "done" || d.contractVersion !== void 0 && d.contractVersion !== task.latest_contract_version || !run || !["succeeded", "failed"].includes(run.status) || new TaskRunRepository().getLatestRoot(d.taskId)?.id !== run.id || state?.assignmentEpoch !== d.assignmentEpoch || state.activeConversationId !== run.conversationId) return false;
|
|
90
91
|
if (packet.requestId) {
|
|
91
92
|
const request = db.prepare("SELECT state, transcript_id FROM personal_requests WHERE request_id = ?").get(packet.requestId);
|
|
92
93
|
if (!request || request.state === "cancelled" || request.transcript_id !== readCurrentTranscriptId(db, d.conversationId)) return false;
|
|
@@ -292,6 +293,10 @@ var PersonalReplyComposer = class {
|
|
|
292
293
|
});
|
|
293
294
|
db.prepare(`UPDATE task_result_deliveries SET reply_status = 'delivered', reply_message_entry_id = ?, reply_text = ?,
|
|
294
295
|
reply_lease_token = NULL, reply_lease_until = 0 WHERE delivery_id = ?`).run(entry.entry_id, text, row.delivery_id);
|
|
296
|
+
archiveSpaceTaskDelivery(db, {
|
|
297
|
+
...packet.delivery,
|
|
298
|
+
text: packet.delivery.text ?? text
|
|
299
|
+
}, entry.entry_id);
|
|
295
300
|
if (packet.requestId) db.prepare("UPDATE personal_requests SET delivery_entry_id = ? WHERE request_id = ?").run(entry.entry_id, packet.requestId);
|
|
296
301
|
recordPersonalPerformance({
|
|
297
302
|
phase: "busy_fallback",
|
|
@@ -442,6 +447,10 @@ var PersonalReplyComposer = class {
|
|
|
442
447
|
timestamp: Date.now()
|
|
443
448
|
});
|
|
444
449
|
db.prepare("UPDATE task_result_deliveries SET reply_status = 'delivered', reply_message_entry_id = ? WHERE delivery_id = ?").run(entry.entry_id, row.delivery_id);
|
|
450
|
+
archiveSpaceTaskDelivery(db, {
|
|
451
|
+
...packet.delivery,
|
|
452
|
+
text: packet.delivery.text ?? text
|
|
453
|
+
}, entry.entry_id);
|
|
445
454
|
if (packet.requestId) db.prepare("UPDATE personal_requests SET delivery_entry_id = ? WHERE request_id = ?").run(entry.entry_id, packet.requestId);
|
|
446
455
|
return true;
|
|
447
456
|
})) return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { init_connection, isXopcDatabaseOpen } from "../storage/sqlite/connection.js";
|
|
2
2
|
import { getSqliteDatabase, init_transaction } from "../storage/sqlite/transaction.js";
|
|
3
|
-
import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
4
3
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
4
|
+
import { getSessionConfig } from "../storage/sqlite/config-repository.js";
|
|
5
5
|
import { getUserProfileSnapshot } from "../user-model/profile.js";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
7
7
|
//#region src/personal-agent/repository.ts
|
|
@@ -4,13 +4,14 @@ import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "
|
|
|
4
4
|
import { TASK_RESULT_DELIVERY_TYPE, TaskResultDeliverySchema } from "../../packages/gateway-contract/src/task-result-delivery.js";
|
|
5
5
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
6
6
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../storage/sqlite/session-instance-repository.js";
|
|
7
|
+
import { init_task_instruction_sequence, taskInstructionSequence } from "../tasks/task-instruction-sequence.js";
|
|
8
|
+
import { finalizedTaskResultId, init_task_result_versions } from "../tasks/task-result-versions.js";
|
|
7
9
|
import { TaskRunRepository, init_task_run_repository } from "../tasks/task-run-repository.js";
|
|
8
10
|
import { getPersonalRequest, init_request_repository, updatePersonalRequest } from "./request-repository.js";
|
|
9
11
|
import { appendTranscriptEntry, loadLlmMessagesForSession } from "../storage/sqlite/transcript-repository.js";
|
|
10
12
|
import { getPersonalAgentByConversation } from "./repository.js";
|
|
11
13
|
import { emitSessionTranscriptUpdate } from "../session/transcript-events.js";
|
|
12
14
|
import { TaskConversationRepository } from "../tasks/task-conversation-repository.js";
|
|
13
|
-
import { TaskCollaborationRepository } from "../tasks/task-collaboration-repository.js";
|
|
14
15
|
import { warmPersonalResult } from "./result-reader.js";
|
|
15
16
|
import { PersonalRequestResultSchema, renderPersonalRequestResult } from "./request-result.js";
|
|
16
17
|
import { enqueuePersonalReply } from "./reply-composer.js";
|
|
@@ -18,6 +19,8 @@ import { enqueuePersonalReply } from "./reply-composer.js";
|
|
|
18
19
|
init_src();
|
|
19
20
|
init_transaction();
|
|
20
21
|
init_session_instance_repository();
|
|
22
|
+
init_task_instruction_sequence();
|
|
23
|
+
init_task_result_versions();
|
|
21
24
|
init_task_run_repository();
|
|
22
25
|
init_logger();
|
|
23
26
|
init_request_repository();
|
|
@@ -99,33 +102,40 @@ function drainPersonalRequestResults(notify) {
|
|
|
99
102
|
return;
|
|
100
103
|
}
|
|
101
104
|
if (state?.activeConversationId !== run.conversationId) throw new Error("Task execution changed");
|
|
102
|
-
const
|
|
105
|
+
const latestDirection = taskInstructionSequence(run.taskId);
|
|
106
|
+
const outdated = latestDirection > (db.prepare(`SELECT sequence FROM task_collaboration_entries
|
|
103
107
|
WHERE task_id = ? AND task_run_id = ? AND author_kind = 'worker_agent' AND kind = 'result'
|
|
104
108
|
AND idempotency_key LIKE ? ORDER BY sequence DESC LIMIT 1`).get(request.taskId, run.id, `personal-request-result:${request.requestId}:${run.id}:%`)?.sequence ?? 0);
|
|
109
|
+
const unverifiedDirections = latestDirection > 0 && !db.prepare(`SELECT 1 FROM task_results
|
|
110
|
+
WHERE run_id = ? AND assignment_epoch = ? AND instruction_sequence = ? AND finalized_at IS NOT NULL`).get(run.id, state?.assignmentEpoch ?? 0, latestDirection);
|
|
105
111
|
const parsed = !outdated && stored.result_json && stored.result_run_id === run.id ? PersonalRequestResultSchema.safeParse(JSON.parse(stored.result_json)) : void 0;
|
|
106
112
|
const assistant = (run.conversationId ? loadLlmMessagesForSession(run.conversationId) : []).filter((message) => message.role === "assistant").at(-1);
|
|
107
113
|
const fallback = assistant?.role === "assistant" ? assistant.content.filter((part) => part.type === "text").map((part) => part.text).join("\n").trim() : "";
|
|
108
|
-
const
|
|
114
|
+
const adoptionWarning = outdated ? "Supplemental requirements arrived after the saved connected-app result. Their completion is unverified." : unverifiedDirections ? "Adoption of supplemental requirements in this connected-app result is unverified." : "";
|
|
115
|
+
const content = outdated ? adoptionWarning : parsed?.success ? renderPersonalRequestResult(parsed.data) : fallback && fallback !== "NO_REPLY" ? fallback : receipt?.summary?.trim() || "Request finished without a readable result.";
|
|
109
116
|
const failed = run.status !== "succeeded";
|
|
110
|
-
const
|
|
111
|
-
const display = failed ? `查询未完成。\n\n${
|
|
117
|
+
const report = [outdated ? "" : adoptionWarning, content].filter(Boolean).join("\n\n");
|
|
118
|
+
const display = failed ? `查询未完成。\n\n${report}` : report;
|
|
112
119
|
const now = Date.now();
|
|
113
120
|
const delivery = TaskResultDeliverySchema.parse({
|
|
114
121
|
version: 1,
|
|
115
122
|
deliveryId: `personal-request:${request.requestId}`,
|
|
116
123
|
taskId: request.taskId,
|
|
117
124
|
taskRunId: run.id,
|
|
125
|
+
taskResultId: !outdated && !unverifiedDirections ? finalizedTaskResultId(run.id) : void 0,
|
|
118
126
|
taskTitle: request.objective.slice(0, 300),
|
|
119
127
|
conversationId: request.conversationId,
|
|
120
128
|
originTranscriptId: request.transcriptId,
|
|
121
129
|
requestInputId: request.inputId,
|
|
122
130
|
assignmentEpoch: state?.assignmentEpoch ?? 0,
|
|
131
|
+
contractVersion: run.contractVersion,
|
|
132
|
+
instructionSequence: latestDirection,
|
|
123
133
|
outcome: {
|
|
124
134
|
version: 1,
|
|
125
135
|
outcomeId: `personal-request:${request.requestId}`,
|
|
126
136
|
runId: run.id,
|
|
127
137
|
turnId: `personal-request:${request.requestId}`,
|
|
128
|
-
status: failed ? "failed" : outdated || parsed?.success && parsed.data.coverage?.partial ? "partial" : "succeeded",
|
|
138
|
+
status: failed ? "failed" : outdated || unverifiedDirections || parsed?.success && parsed.data.coverage?.partial ? "partial" : "succeeded",
|
|
129
139
|
summary: content.slice(0, 2e3),
|
|
130
140
|
deliverables: [],
|
|
131
141
|
evidence: [],
|
|
@@ -139,7 +149,7 @@ function drainPersonalRequestResults(notify) {
|
|
|
139
149
|
delivery,
|
|
140
150
|
objective: request.objective,
|
|
141
151
|
requestId: request.requestId,
|
|
142
|
-
report
|
|
152
|
+
report
|
|
143
153
|
});
|
|
144
154
|
const entry = personal ? void 0 : appendTranscriptEntry(request.conversationId, {
|
|
145
155
|
role: "custom",
|
|
@@ -2,7 +2,6 @@ import { createLogger } from "../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { getSqliteDatabase, init_transaction, runSqliteWriteTransaction } from "../storage/sqlite/transaction.js";
|
|
4
4
|
import { TaskCreateRequestSchema } from "../../packages/gateway-contract/src/tasks.js";
|
|
5
|
-
import { PERSONAL_WORKER_RESULT_GUIDANCE } from "../../packages/gateway-contract/src/task-display.js";
|
|
6
5
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
7
6
|
import { init_session_instance_repository, readCurrentTranscriptId } from "../storage/sqlite/session-instance-repository.js";
|
|
8
7
|
import { getSessionInputById, getSessionInputState, init_session_input_repository } from "../storage/sqlite/session-input-repository.js";
|
|
@@ -23,7 +22,6 @@ import { resolveConnectionCandidate } from "../connectors/connection-candidates.
|
|
|
23
22
|
import { TaskApplicationService } from "../tasks/task-application-service.js";
|
|
24
23
|
import { resolveResponseLanguageForSession } from "../agent/prompt/response-language.js";
|
|
25
24
|
import { defineTaskContract } from "../tasks/task-contract-definition.js";
|
|
26
|
-
import "./communication.js";
|
|
27
25
|
import { assessSpecialist } from "../agent-matching/service.js";
|
|
28
26
|
import { personalCapabilities } from "./capability-service.js";
|
|
29
27
|
import { AgentSelectionRepository, selectionRequestHash } from "../agent-matching/selection-repository.js";
|
|
@@ -213,9 +211,7 @@ function startPersonalRequest(request, accountId) {
|
|
|
213
211
|
request.objective,
|
|
214
212
|
brief,
|
|
215
213
|
...contract.constraints,
|
|
216
|
-
`Preserved query parameters: ${JSON.stringify(queryParameters)}
|
|
217
|
-
PERSONAL_WORKER_RESULT_GUIDANCE,
|
|
218
|
-
"Before finishing, call personal_request_result with the verified summary and, for mail, message items and coverage."
|
|
214
|
+
`Preserved query parameters: ${JSON.stringify(queryParameters)}.`
|
|
219
215
|
].join("\n\n");
|
|
220
216
|
const result = new TaskApplicationService().create(TaskCreateRequestSchema.parse({
|
|
221
217
|
idempotencyKey: `personal-request:${request.requestId}`,
|
|
@@ -245,7 +241,7 @@ function startPersonalRequest(request, accountId) {
|
|
|
245
241
|
}
|
|
246
242
|
}
|
|
247
243
|
}
|
|
248
|
-
}), { kind: "system" });
|
|
244
|
+
}), { kind: "system" }, { resultPolicy: "connected" });
|
|
249
245
|
if (!result.ok) throw new Error("Task could not be persisted");
|
|
250
246
|
getSqliteDatabase().prepare("UPDATE task_origin_links SET origin_transcript_id = ?, request_input_id = ? WHERE task_id = ?").run(request.transcriptId, request.inputId, result.model.task.id);
|
|
251
247
|
return updatePersonalRequest(request, {
|
|
@@ -277,17 +273,17 @@ function startPersonalRequest(request, accountId) {
|
|
|
277
273
|
contract.constraints = constraints;
|
|
278
274
|
contract.acceptanceCriteria = connectedRequestCriteria(request, locale);
|
|
279
275
|
contract.expectedOutputs = [locale === "zh" ? "简明摘要包含来源链接、重要性说明和建议行动,并披露查询范围、覆盖情况和部分失败。" : "A concise summary with source links, importance reasons and suggested actions; disclose query range, coverage and partial failures."];
|
|
280
|
-
const
|
|
276
|
+
const body = [
|
|
281
277
|
request.objective,
|
|
282
278
|
brief,
|
|
283
279
|
`Selected connector: ${request.connectorId}; xopcAccountId: ${accountId}.`,
|
|
284
280
|
`Preserved query parameters: ${JSON.stringify(queryParameters)}.`,
|
|
285
281
|
"Search and describe the external tools before executing read-only operations. Deliver results to the originating chat through the Task result. Do not claim no important mail if the query was incomplete."
|
|
286
|
-
].join("\n\n")
|
|
282
|
+
].join("\n\n");
|
|
287
283
|
const result = new TaskApplicationService().create(TaskCreateRequestSchema.parse({
|
|
288
284
|
idempotencyKey: `personal-request:${request.requestId}`,
|
|
289
285
|
title: request.objective.slice(0, 60),
|
|
290
|
-
body
|
|
286
|
+
body,
|
|
291
287
|
originConversationId: request.conversationId,
|
|
292
288
|
delegateAgentId: request.executorAgentId,
|
|
293
289
|
dueAt: request.parameters.dueAt,
|
|
@@ -304,7 +300,7 @@ function startPersonalRequest(request, accountId) {
|
|
|
304
300
|
agentId: request.executorAgentId
|
|
305
301
|
}
|
|
306
302
|
}
|
|
307
|
-
}), { kind: "system" });
|
|
303
|
+
}), { kind: "system" }, { resultPolicy: "connected" });
|
|
308
304
|
selections.link(record.id, {
|
|
309
305
|
taskId: result.model?.task.id,
|
|
310
306
|
runId: result.ok ? result.runId : void 0,
|