@xopcai/xopc 0.0.467 → 0.0.468
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-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-CIV2R_El.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-Cl08_xtM.js} +1 -1
- package/dist/gateway/static/root/assets/{api-DVXcGKP-.js → api-V4P8zfkJ.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-CncU5JvR.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/{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-sR61FFLn.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-3WGWLdiW.js → automations-page-BNzj3R7A.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-CH9gYqIK.js → automations-workspace-BWpA-X_S.js} +2 -2
- package/dist/gateway/static/root/assets/{binary-plugins-MFVtTdvy.js → binary-plugins-BjEE5sVq.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-DAWXPErA.js → block-editor-B4Yqbxab.js} +1 -1
- 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-CBSMm_jo.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-CFWTer_v.js → capabilities-EmBa4Blq.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-C2RB9fzC.js → capabilities-page-BQf7oyqc.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-hlByP8SE.js +8 -0
- package/dist/gateway/static/root/assets/{channels-DiDfjON8.js → channels-oyMymJDx.js} +1 -1
- 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-CS-cORJt.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-hcsqrv-7.js +71 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-B4HoRIzf.js → chat-terminal-dock-D6LH3W5H.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-CxeXJKxg.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-Bsec3-eZ.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-C0ZCUtxF.js} +1 -1
- 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-diuSsk-H.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-DIeg1mg8.js → extension-authoritative-grants-CVQ7q0DU.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-D8TAJgZ_.js → extension-debug-page-DrpE2lQ3.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-CjfRKtQ4.js → extension-iframe-host-hr60GwXQ.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-aoF3x4-X.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DMuHBIHa.js → extension-page-BfM8zli6.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-lqJ1zIkA.js → extension-provider-BcSgVeKW.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-D5IfKVff.js → extension-settings-page-Db5t2Mz0.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-B7B9qXm9.js → file-preview-surface-CeFFZo3a.js} +1 -1
- 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-DsS2UT08.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-BJj-uZNl.js → index-DFa0pZhC.js} +5 -5
- package/dist/gateway/static/root/assets/index-DHPaL7Ku.css +1 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-QkJMw_uW.js → install-connector-dialog-0_PeJJqO.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-wekatwet.js → local-app-workbench-page-OSinc6m6.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-D-bRvlZY.js → local-apps-page-yBqRl5Bi.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-CukseY3k.js → logs-page-BJxQ_Jd5.js} +1 -1
- 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-D9HGIYXx.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-C30KvTaE.js → markdown-view-CiGdWuN3.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-C2lp7UmI.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-aRYHi2dh.js → models-hub-cache-CmdULYFt.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-D5BtgBxy.js → note-detail-panel-CVEG1JdF.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-WA8FiHsm.js +1 -0
- package/dist/gateway/static/root/assets/{notes-api-BXevQivV.js → notes-api-BQXOYFQ5.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-DyM-3O_9.js → notes-page-Cc-c1Yhg.js} +1 -1
- 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-BW7zcXfb.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-BaSooYGv.js → page-context-capture-button-Cw58-5P3.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-DwFwq_lI.js +1 -0
- package/dist/gateway/static/root/assets/{personal-avatar-BPQpvC34.js → personal-avatar-B-Oes3ef.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-BB4Sv68K.js → personal-page-DWPu-iwK.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-profile-settings-DwMdjQ6H.js → personal-profile-settings-CDrzvI35.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-settings-panel-DiNpP_g3.js → personal-settings-panel-CoZ3qWSr.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-UHVwbC3H.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-fS2IT-dK.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/{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/{product-automation-feedback-BlwtlUY7.js → product-automation-feedback-DrBclzH1.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-Dy6D5exJ.js → product-open-page-BMJ2x5m3.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-DEUPAilo.js → product-preview-content-lkkZPvMa.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-C4TV9RUd.js → product-preview-modal-DtUBJGs5.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-BG2nDt98.js → project-detail-page-DGFUj6jS.js} +1 -1
- 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-Dua6taaG.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-C26HgxZY.js → providers-api-B6eZLEnh.js} +1 -1
- package/dist/gateway/static/root/assets/{recording-upload-BJkXktA-.js → recording-upload-DXxD6grq.js} +1 -1
- 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-Dy3-oGK1.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-DHHyicqQ.js → right-workspace-store-BzXnZDK5.js} +1 -1
- package/dist/gateway/static/root/assets/{route-preload-BYqg1BYz.js → route-preload-8KCgPcjp.js} +2 -2
- package/dist/gateway/static/root/assets/{routine-panel-Coh2B0j7.js → routine-panel-BALhliq6.js} +2 -2
- 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/{service-recommendation-list-_rFmwIwY.js → service-recommendation-list-CsU74h1b.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-Cby6Nkib.js +25 -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-ByFNIBfp.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-Bsn4Wa4p.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-DXvYjIu3.js → setup-status-panel-CstjOb7g.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-CyCv69rh.js → share-preview-page-9pOnypJv.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-CfFiW03g.js → shares-api-ChBHTPKN.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-B85XIDFv.js → shares-settings-CJdVDQqf.js} +1 -1
- 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-CkkHufmv.js} +1 -1
- 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-DgsLOz6h.js → task-detail-page-BjBkKeIf.js} +1 -1
- package/dist/gateway/static/root/assets/{task-result-evidence-C-zIBpzi.js → task-result-evidence-dtN1sSjU.js} +1 -1
- 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/{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-C9GpCJQR.js → use-composer-attachments-BEYkb8cs.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-Daf-LmiF.js → use-file-preview-expanded-CQeo2Ztn.js} +3 -3
- package/dist/gateway/static/root/assets/{use-personal-profile-BJgaheR4.js → use-personal-profile-CKm5FaTl.js} +1 -1
- package/dist/gateway/static/root/assets/{use-realtime-voice-RQW5KnIN.js → use-realtime-voice-lRHVixh4.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-B6QFV5gR.js → use-workspace-tree-DrWnW1aA.js} +1 -1
- package/dist/gateway/static/root/assets/{user-model-page-hKnsTcMk.js → user-model-page-Bw1_PGdD.js} +1 -1
- 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-settings-BUrk4mwV.js → voice-settings-CssuMBjt.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-Ddvqu02U.js → work-discovery-overlay-DcZS4OMj.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-BdBpri6P.js → work-discovery-page-CZF9iWPT.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-CscTRODe.js → workspace-api-BfApIXLw.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-DwpWKogz.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-JSGIA79T.js → workspace-file-preview-dialog-BRhsCs1S.js} +1 -1
- 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-DNLnuHlf.js → workspace-preview-store-BrofEVle.js} +1 -1
- 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 +87 -87
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/music-generation.js +5 -2
- package/dist/src/agent/background-review/prompts.js +5 -1
- package/dist/src/agent/tools/personal-memory-tool.js +12 -10
- 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/cli/commands/doctor/checks/database-schema.js +1 -1
- 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 +24 -3
- package/dist/src/gateway/hono/routes/video-generation.js +1 -1
- 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/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 +16 -4
- package/dist/src/music-generation/repository.d.ts +3 -1
- package/dist/src/music-generation/repository.js +5 -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/personal-agent/prompts.js +1 -1
- package/dist/src/session/store.js +2 -1
- package/dist/src/storage/sqlite/schema.d.ts +2 -2
- package/dist/src/storage/sqlite/schema.js +7 -7
- package/dist/src/storage/sqlite/schema.sql +1 -0
- package/dist/src/storage/sqlite/upgrades/278_music_job_error_code.sql +6 -0
- 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/drafts.d.ts +1 -0
- package/dist/src/video-generation/drafts.js +2 -0
- package/dist/src/video-generation/repository.d.ts +5 -3
- package/dist/src/video-generation/repository.js +22 -7
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/capabilities-settings-panel-BjaLTd6i.js +0 -8
- package/dist/gateway/static/root/assets/chat-page-BtMkdtxJ.js +0 -71
- package/dist/gateway/static/root/assets/gateway-realtime-store-CJf-qaHZ.js +0 -1
- package/dist/gateway/static/root/assets/index-DiWUK4sJ.css +0 -1
- package/dist/gateway/static/root/assets/messages-BDBGlBKh.js +0 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-CxXu_Tkh.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-C2ydtnXa.js +0 -1
- 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/workspace-editor-agent-store-CyPjTDSx.js +0 -1
package/dist/package.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { __esmMin } from "../../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
//#region packages/gateway-contract/src/music-generation.ts
|
|
3
|
-
var
|
|
3
|
+
var TENCENT_MPS_MUSIC_PROVIDER;
|
|
4
|
+
var init_music_generation = __esmMin((() => {
|
|
5
|
+
TENCENT_MPS_MUSIC_PROVIDER = "tencent-mps";
|
|
6
|
+
}));
|
|
4
7
|
//#endregion
|
|
5
8
|
init_music_generation();
|
|
6
|
-
export { init_music_generation };
|
|
9
|
+
export { TENCENT_MPS_MUSIC_PROVIDER, init_music_generation };
|
|
@@ -23,6 +23,7 @@ Goal shape:
|
|
|
23
23
|
|
|
24
24
|
Collaboration rule shape:
|
|
25
25
|
{"intent":"user_assertion","category":"communication","priority":10,"scope":{"type":"global"},"conditions":{"enforcementLevel":"prompt"},"statement":"Keep status updates concise.","evidence":[{"ref":"entry-id","quote":"exact quote"}],"selfContained":true,"unresolvedReferences":[]}
|
|
26
|
+
Rule categories: communication, execution, boundary, routine, initiative. Use execution for tool selection. If the evidence says "remember" or "请记住", use intent="remember" for that grounded assertion and rule, even when the top-level intent differs.
|
|
26
27
|
|
|
27
28
|
Work knowledge shape (independent of user intent):
|
|
28
29
|
{"kind":"decision","topicKey":"atlas-storage","predicate":"storage.choice","statement":"Atlas uses SQLite because deployment must stay local.","scope":"${options.scopeContext?.projectId ? "project" : "workspace"}","confidence":0.8,"importance":0.8,"evidence":[{"ref":"entry-id","quote":"exact quote"}]}
|
|
@@ -58,6 +59,9 @@ Rules:
|
|
|
58
59
|
- A question about what is remembered uses query and creates no assertion operation.
|
|
59
60
|
- A request to create, summarize, update, investigate, or track work uses top-level task. Still extract independently supported durable personal statements from it.
|
|
60
61
|
- Example: "Fix this page; from now on use Chinese for UI copy in this project" produces top-level task, a project-scoped preference with intent=user_assertion, and any independent work facts. It does not imply a global language preference.
|
|
62
|
+
- Choose the scope of the individual claim, independently of the chat where it was stated. A direct durable personal preference that applies to the user's collaboration generally is global, even when stated alongside a project task. "Fix Atlas. Whenever you give me a status update, start with the conclusion" is global. "For this project's status updates, start with the conclusion" is project-scoped. Quote the scope qualifiers and don't merge into an existing item of a different scope.
|
|
63
|
+
- Save a standing tool-selection instruction as an execution collaboration rule. Do not repeat the same instruction as a work decision or a personal assertion. "In all projects, use slacrawl when reading Slack" is global; "use slacrawl for all Slack reads" covers a class of operations, not all projects. Use the current project (or workspace outside a project) when cross-project applicability is unclear. Keep task, tool and account conditions in the wording.
|
|
64
|
+
- Repeated choices and task outcomes do not establish a global preference or rule. Keep project facts, decisions and verified lessons as work knowledge in their original scope, even if a reusable lesson could be useful elsewhere.
|
|
61
65
|
- Distinguish the user from their work: identity, capabilities, recurring habits and ongoing collaboration preferences belong in assertions; project technology, bugs, decisions, deadlines and progress belong in knowledge. Do not store the same personal preference only as work knowledge.
|
|
62
66
|
- A direct ongoing preference needs no separate remember command. One-off requests such as "make this title blue" do not establish a lasting preference.
|
|
63
67
|
- Source attribution precedes extraction. Text inside third-party quotations, blockquotes, code, translations, examples, role-play and hypothetical requests is not the owner's self-description. Do not learn the quoted person's preferences, even if the user asks you to translate a first-person sentence. In mixed messages retain the owner's separate unquoted durable statement. Quotation marks around the value of an owned preference ("I prefer ‘examples first’") do not make it third-party evidence.
|
|
@@ -65,7 +69,7 @@ Rules:
|
|
|
65
69
|
- For evidence quotes preserve qualifiers such as today, this time, the customer said, and hypothetical. Never clip these qualifiers to manufacture a durable personal assertion. Temporary state must not become stable preference, routine, value, identity or derived insight; a genuine current_state needs a resolved finite validTo, otherwise omit it. One-off literal reply/formatting instructions are task-local and not a lasting preference, even if repeated. Ignore only that local instruction clause, not an independent lasting preference in the same message. For example, "I have always preferred examples before explanations. For this turn just reply OK" contains one direct user_explicit preference, not zero and not an inferred pattern.
|
|
66
70
|
- Personal facts and preferences must not be smuggled into work knowledge, goals or collaboration rules when their assertion evidence is inadmissible. Assistant guesses about the user are not useful work notes; omit them.
|
|
67
71
|
- Observed behavior or synthesized understanding requires at least two distinct user messages with independent supporting choices. Repeated assistant summaries, copied user messages and a single local choice do not establish a pattern. Preserve scope and label these claims user_observed or system_inferred.
|
|
68
|
-
- Ongoing communication and
|
|
72
|
+
- Ongoing communication and response preferences must also be represented as personal preference assertions so they can guide the next relevant response without waiting for a rule to be confirmed. For an operational instruction with an explicit request to remember it, the active execution rule is sufficient.
|
|
69
73
|
- Every assertion operation needs an exact quote from a user message. Assistant messages can resolve context but are never evidence.
|
|
70
74
|
- Extract zero to eight independent assertion operations. Each operation represents one stable predicate and one value.
|
|
71
75
|
- Extract a goal only when the user explicitly describes a durable desired outcome, not a one-off task request.
|
|
@@ -9,6 +9,7 @@ import { inferMemorySensitivity } from "../memory/sensitivity.js";
|
|
|
9
9
|
import { canUseKnowledge, knowledgeContentSources } from "../../knowledge-memory/usage-policy.js";
|
|
10
10
|
import { deleteKnowledgeItem, getKnowledgeItem, reviewKnowledgeItem, setKnowledgeScope, writeKnowledgeItem } from "../../knowledge-memory/repository.js";
|
|
11
11
|
import "../../knowledge-memory/index.js";
|
|
12
|
+
import { ownerExcludesGlobalScope, ownerMemoryScope, standingToolScope } from "../../user-model/capture/evidence-policy.js";
|
|
12
13
|
import { isUnquotedOwnerEvidence } from "../../memory-learning/owner-directive.js";
|
|
13
14
|
import { deleteUserAssertion, getAssertionSlot, getUserAssertion, reconcileAssertion, setAssertionStatus, setUserAssertionScope } from "../../user-model/repository.js";
|
|
14
15
|
import { canUseAssertion } from "../../user-model/usage-policy.js";
|
|
@@ -91,7 +92,7 @@ function explicitRequest(text, quote, command) {
|
|
|
91
92
|
const author = text.replace(/```[\s\S]*?```|~~~[\s\S]*?~~~|^\s*>.*$/gmu, "").replace(/“[^”]*”|「[^」]*」|『[^』]*』|"[^"\n]*"/gu, (span) => /记住|保存|纠正|修改|remember|save|correct|scope/iu.test(span) ? "" : span);
|
|
92
93
|
if (!quote.trim() || !author.includes(quote.trim())) return false;
|
|
93
94
|
if (command === "remember") return !/不要.*(?:记住|保存)|别.*(?:记住|保存)|(?:don't|do not|never)\s+(?:remember|save|store)/iu.test(author) && /记住|保存|记下|记着|\b(?:remember|save|store)\b/iu.test(quote);
|
|
94
|
-
return /纠正|修正|改成|改为|修改|更正|不是|仅|只(?:在|用|对)
|
|
95
|
+
return /纠正|修正|改成|改为|修改|更正|不是|仅|只(?:在|用|对)|范围|所有|全局|跨项目|\b(?:correct|change|update|instead|only|scope|global|globally|all|across)\b/iu.test(quote) && !/(?:不要|别|不必)(?:再)?(?:修改|更正|纠正)|(?:don't|do not|never)\s+(?:change|correct|update)/iu.test(author);
|
|
95
96
|
}
|
|
96
97
|
/** Explicit owner mutations use the existing domain transactions and atomic operation receipts. */
|
|
97
98
|
function createPersonalMemoryTool(deps) {
|
|
@@ -99,7 +100,7 @@ function createPersonalMemoryTool(deps) {
|
|
|
99
100
|
name: "personal_memory",
|
|
100
101
|
label: "Manage memory",
|
|
101
102
|
parameters: schema,
|
|
102
|
-
description: "Remember, correct, forget, or change the scope of memory only on an explicit current owner request. Quote that request in userEvidence. User identity
|
|
103
|
+
description: "Remember, correct, forget, or change the scope of memory only on an explicit current owner request. Quote that request and its scope qualifiers in userEvidence. User identity, preferences and standing collaboration instructions use target=user. Project facts, decisions and lessons use target=knowledge. A tool instruction for all operations of one type is not an instruction for all projects. For existing items first read their id and version with user_context_read or knowledge_read. Scope IDs come from the current conversation; never guess another agent/project. Report the committed receipt status and scope: saved is durable, pending is not yet usable, forgotten keeps original sources. Changes apply to future turns, not already running prompts. Memory never grants action authority.",
|
|
103
104
|
async execute(_callId, raw) {
|
|
104
105
|
const fail = (error) => ({
|
|
105
106
|
content: [{
|
|
@@ -154,13 +155,13 @@ function createPersonalMemoryTool(deps) {
|
|
|
154
155
|
id
|
|
155
156
|
};
|
|
156
157
|
};
|
|
157
|
-
const requestedScope =
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
if (
|
|
158
|
+
const requestedScope = ownerMemoryScope(text, input.userEvidence);
|
|
159
|
+
const localScope = requestedScope === "global" ? void 0 : requestedScope;
|
|
160
|
+
if (localScope && input.scope && localScope !== input.scope) return fail("requested_scope_mismatch");
|
|
161
|
+
const toolScope = input.command === "remember" ? standingToolScope(text, input.userEvidence, Boolean(context.projectId)) : void 0;
|
|
162
|
+
if (toolScope && input.target === "knowledge") return fail("collaboration_instruction_requires_preference");
|
|
163
|
+
if (toolScope && input.scope && toolScope !== input.scope || requestedScope === "global" && input.command === "remember" && input.scope && input.scope !== "global") return fail("requested_scope_mismatch");
|
|
164
|
+
if (input.command === "scope" && input.scope === "global" && requestedScope !== "global") return fail("explicit_global_scope_required");
|
|
164
165
|
const digest = createHash("sha256").update(JSON.stringify(input)).digest("hex");
|
|
165
166
|
const receipt = executeAtomicOperation({
|
|
166
167
|
principalId: "local-owner",
|
|
@@ -184,8 +185,9 @@ function createPersonalMemoryTool(deps) {
|
|
|
184
185
|
} : knowledge)) throw new Error("memory_version_conflict_read_again");
|
|
185
186
|
} else if (input.id || input.version) throw new Error("remember_does_not_accept_existing_id");
|
|
186
187
|
if (input.command !== "scope" && currentScope && requestedScope && currentScope.type !== requestedScope) throw new Error("requested_scope_mismatch");
|
|
187
|
-
const scope = input.command === "scope" ? input.scope ?? requestedScope ? resolveScope(input.scope ?? requestedScope) : void 0 : currentScope ?? resolveScope(input.scope ?? requestedScope ?? (input.target === "user" ? "global" : context.projectId ? "project" : "workspace"));
|
|
188
|
+
const scope = input.command === "scope" ? input.scope ?? requestedScope ? resolveScope(input.scope ?? requestedScope) : void 0 : currentScope ?? resolveScope(input.scope ?? requestedScope ?? toolScope ?? (input.target === "user" && !ownerExcludesGlobalScope(text, input.userEvidence) ? "global" : context.projectId ? "project" : "workspace"));
|
|
188
189
|
if (!scope) throw new Error("scope_required");
|
|
190
|
+
if (scope.type === "global" && ownerExcludesGlobalScope(text, input.userEvidence)) throw new Error("requested_scope_mismatch");
|
|
189
191
|
if (input.target === "knowledge" && input.command !== "forget" && (!access.knowledgePolicy.scopes.includes(scope.type) || !access.knowledgePolicy.contentSources.includes("memory"))) throw new Error("memory_scope_denied");
|
|
190
192
|
if (input.command !== "scope" && input.command !== "remember" && input.scope) {
|
|
191
193
|
const suppliedScope = resolveScope(input.scope);
|
|
@@ -2,6 +2,7 @@ import type { AgentTool } from '@earendil-works/pi-agent-core';
|
|
|
2
2
|
declare const schema: import("@sinclair/typebox").TObject<{
|
|
3
3
|
action: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"create">, import("@sinclair/typebox").TLiteral<"update">, import("@sinclair/typebox").TLiteral<"revise">, import("@sinclair/typebox").TLiteral<"inspect">]>;
|
|
4
4
|
prompt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
|
+
summary: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
6
|
duration: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
6
7
|
ratio: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"16:9">, import("@sinclair/typebox").TLiteral<"9:16">, import("@sinclair/typebox").TLiteral<"adaptive">]>>;
|
|
7
8
|
resolution: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"480P">, import("@sinclair/typebox").TLiteral<"720P">, import("@sinclair/typebox").TLiteral<"1080P">]>>;
|
|
@@ -13,6 +13,10 @@ const schema = Type.Object({
|
|
|
13
13
|
Type.Literal("inspect")
|
|
14
14
|
]),
|
|
15
15
|
prompt: Type.Optional(Type.String({ maxLength: 1e3 })),
|
|
16
|
+
summary: Type.Optional(Type.String({
|
|
17
|
+
maxLength: 180,
|
|
18
|
+
description: "A short description of the visible scene in the user’s language. Keep it in sync whenever the prompt changes."
|
|
19
|
+
})),
|
|
16
20
|
duration: Type.Optional(Type.Integer()),
|
|
17
21
|
ratio: Type.Optional(Type.Union([
|
|
18
22
|
Type.Literal("16:9"),
|
|
@@ -31,7 +35,7 @@ function createVideoDraftTool(getConversationId) {
|
|
|
31
35
|
return {
|
|
32
36
|
name: "video_draft",
|
|
33
37
|
label: "Prepare video draft",
|
|
34
|
-
description: "Prepare a video when the user asks to generate one in Web chat. Create a draft, update the pending draft, or revise the last submitted video as a new version. For a new draft, a single image in the current user message is used by default. An update or revision keeps its reference image unless the user requests another one; use image=current to switch to a new attachment. Use inspect to list recent images and the previous draft. Ask which image to use when the reference is ambiguous. Use video settings for any unspecified options. The draft appears as a card.
|
|
38
|
+
description: "Prepare a video when the user asks to generate one in Web chat. Create a draft, update the pending draft, or revise the last submitted video as a new version. For a new draft, a single image in the current user message is used by default. An update or revision keeps its reference image unless the user requests another one; use image=current to switch to a new attachment. Use inspect to list recent images and the previous draft. Ask which image to use when the reference is ambiguous. Use video settings for any unspecified options. Provide a short scene summary alongside the full prompt. The draft appears as a card. When first presenting it, briefly tell the user they can click Confirm generation or reply “confirm video generation” / “就按这个生成”. This tool cannot start generation.",
|
|
35
39
|
parameters: schema,
|
|
36
40
|
async execute(_id, args) {
|
|
37
41
|
if (!Value.Check(schema, args)) throw new Error("Invalid video draft parameters.");
|
|
@@ -31,7 +31,7 @@ async function checkDatabaseSchema(ctx) {
|
|
|
31
31
|
id: "database-schema",
|
|
32
32
|
label: "Database schema",
|
|
33
33
|
status: "pass",
|
|
34
|
-
message: `SQLite schema v${readSchemaVersion(getSqliteDatabase())} (current release
|
|
34
|
+
message: `SQLite schema v${readSchemaVersion(getSqliteDatabase())} (current release v278).`,
|
|
35
35
|
hints: []
|
|
36
36
|
};
|
|
37
37
|
}
|
|
@@ -9,6 +9,7 @@ import { canUseKnowledge, knowledgeExclusion } from "../../../knowledge-memory/u
|
|
|
9
9
|
import { getKnowledgeItem } from "../../../knowledge-memory/repository.js";
|
|
10
10
|
import "../../../knowledge-memory/index.js";
|
|
11
11
|
import { resolveEffectiveAgentProfileForSession } from "../../../config/agent-profile.js";
|
|
12
|
+
import { suggestWorkMemoryReview } from "../../../memory-learning/work-review.js";
|
|
12
13
|
//#region src/gateway/hono/routes/memory-learning.ts
|
|
13
14
|
init_transaction();
|
|
14
15
|
init_session_repository();
|
|
@@ -61,14 +62,29 @@ function registerMemoryLearningRoutes(app, deps) {
|
|
|
61
62
|
conversationId: c.req.query("conversationId") ?? item?.sourceConversationId ?? "",
|
|
62
63
|
projectId: c.req.query("projectId") ?? (item?.scope.type === "project" ? item.scope.id : void 0)
|
|
63
64
|
};
|
|
64
|
-
if (!item
|
|
65
|
+
if (!item) return c.json({
|
|
65
66
|
error: "Knowledge evidence not available",
|
|
66
|
-
reason:
|
|
67
|
+
reason: "not_found"
|
|
67
68
|
}, 404);
|
|
69
|
+
const policy = resolveKnowledgeReadPolicy(deps.service.currentConfig.userContext.knowledgeMemory);
|
|
70
|
+
const reviewSuggestion = suggestWorkMemoryReview(item, context, policy);
|
|
71
|
+
if (!canUseKnowledge(item, context, policy)) {
|
|
72
|
+
if (reviewSuggestion) return c.json({
|
|
73
|
+
evidence: [],
|
|
74
|
+
reviewSuggestion
|
|
75
|
+
});
|
|
76
|
+
return c.json({
|
|
77
|
+
error: "Knowledge evidence not available",
|
|
78
|
+
reason: knowledgeExclusion(item, context, policy)
|
|
79
|
+
}, 404);
|
|
80
|
+
}
|
|
68
81
|
const evidence = getSqliteDatabase().prepare(`SELECT e.source_type AS sourceType, e.source_ref AS sourceRef,
|
|
69
82
|
e.observed_at AS observedAt, e.redacted_excerpt AS excerpt FROM knowledge_evidence_links l
|
|
70
83
|
JOIN context_evidence e ON e.evidence_id = l.evidence_id WHERE l.knowledge_id = ?`).all(item.id);
|
|
71
|
-
return c.json({
|
|
84
|
+
return c.json({
|
|
85
|
+
evidence,
|
|
86
|
+
reviewSuggestion
|
|
87
|
+
});
|
|
72
88
|
});
|
|
73
89
|
}
|
|
74
90
|
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "../../../../packages/gateway-contract/src/music-generation.js";
|
|
2
|
+
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
1
3
|
import { resolveModelsJsonPath } from "../../../config/paths.js";
|
|
2
4
|
import { getProviderSetupProfile, init_profiles } from "../../../providers/setup/profiles.js";
|
|
3
5
|
import { init_model_usage, withModelUsageOrigin } from "../../../providers/model-usage.js";
|
|
@@ -29,6 +31,7 @@ import { dismissXopcCloudOnboarding, getXopcCloudOnboardingStatus } from "../../
|
|
|
29
31
|
import { auditModelReferences } from "../../../providers/model-reference-auditor.js";
|
|
30
32
|
import { registerProviderSetupRoutes } from "./provider-setup.js";
|
|
31
33
|
//#region src/gateway/hono/routes/models.ts
|
|
34
|
+
init_src();
|
|
32
35
|
init_model_policy();
|
|
33
36
|
init_model_usage();
|
|
34
37
|
init_profiles();
|
|
@@ -825,6 +828,10 @@ function registerModelsRoutes(authenticated, deps) {
|
|
|
825
828
|
ok: false,
|
|
826
829
|
error: { message: "Manage Boson credentials in voice settings" }
|
|
827
830
|
}, 403);
|
|
831
|
+
if (providerId === "tencent-mps") return c.json({
|
|
832
|
+
ok: false,
|
|
833
|
+
error: { message: "Manage Tencent Cloud MPS credentials in music settings" }
|
|
834
|
+
}, 403);
|
|
828
835
|
const stored = await new CredentialResolver().revealGatewayStoredApiKey(providerId);
|
|
829
836
|
if (stored) return c.json({
|
|
830
837
|
ok: true,
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
+
import "../../../../packages/gateway-contract/src/music-generation.js";
|
|
2
|
+
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
1
3
|
import { musicCredentials, saveMusicDefaults, saveMusicModel } from "../../../music-generation/settings.js";
|
|
4
|
+
import { parseTencentMpsCredentials, tencentMpsCredentialsSchema } from "../../../music-generation/tencent-mps.js";
|
|
2
5
|
import { configuredMusicModel, hasMusicProvider, readMusicModelSettings, resolveMusicModel } from "../../../music-generation/providers.js";
|
|
3
6
|
import { getMusicJob, listMusicJobs } from "../../../music-generation/repository.js";
|
|
4
7
|
import { readMusicArtifact } from "../../../music-generation/artifact.js";
|
|
5
8
|
import { z } from "zod";
|
|
6
9
|
//#region src/gateway/hono/routes/music-generation.ts
|
|
10
|
+
init_src();
|
|
7
11
|
function registerMusicGenerationRoutes(app, deps) {
|
|
8
12
|
const settings = "/api/music-generation/settings";
|
|
9
13
|
const path = "/api/music-generation/sessions/:conversationId/jobs";
|
|
@@ -27,11 +31,28 @@ function registerMusicGenerationRoutes(app, deps) {
|
|
|
27
31
|
});
|
|
28
32
|
app.put(`${settings}/credentials/:providerId`, deps.strictRateLimitMiddleware, async (c) => {
|
|
29
33
|
const providerId = c.req.param("providerId");
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
if (!hasMusicProvider(providerId)) return c.json({ error: "Unknown music provider" }, 400);
|
|
35
|
+
const body = await c.req.json().catch(() => null);
|
|
36
|
+
if (providerId === "tencent-mps") {
|
|
37
|
+
const input = tencentMpsCredentialsSchema.safeParse(body);
|
|
38
|
+
if (!input.success) return c.json({ error: "Enter a valid Tencent Cloud SecretId and SecretKey" }, 400);
|
|
39
|
+
await musicCredentials().saveApiKey(providerId, JSON.stringify(input.data));
|
|
40
|
+
} else {
|
|
41
|
+
const input = z.object({ apiKey: z.string().trim().min(1).max(4096).regex(/^[!-~]+$/) }).safeParse(body);
|
|
42
|
+
if (!input.success) return c.json({ error: "Invalid music API key" }, 400);
|
|
43
|
+
await musicCredentials().saveApiKey(providerId, input.data.apiKey);
|
|
44
|
+
}
|
|
33
45
|
return c.json(await readMusicModelSettings());
|
|
34
46
|
});
|
|
47
|
+
app.post(`${settings}/credentials/:providerId`, deps.strictRateLimitMiddleware, async (c) => {
|
|
48
|
+
const providerId = c.req.param("providerId");
|
|
49
|
+
if (providerId !== "tencent-mps") return c.json({ error: "Unknown music provider" }, 404);
|
|
50
|
+
const input = z.object({ field: z.enum(["secretId", "secretKey"]) }).safeParse(await c.req.json().catch(() => null));
|
|
51
|
+
if (!input.success) return c.json({ error: "Unknown credential field" }, 400);
|
|
52
|
+
const stored = parseTencentMpsCredentials(await musicCredentials().revealGatewayStoredApiKey(providerId));
|
|
53
|
+
c.header("Cache-Control", "no-store");
|
|
54
|
+
return c.json({ value: stored?.[input.data.field] ?? null });
|
|
55
|
+
});
|
|
35
56
|
app.delete(`${settings}/credentials/:providerId`, deps.strictRateLimitMiddleware, async (c) => {
|
|
36
57
|
const providerId = c.req.param("providerId");
|
|
37
58
|
if (!hasMusicProvider(providerId)) return c.json({ error: "Unknown music provider" }, 400);
|
|
@@ -172,7 +172,7 @@ function registerVideoGenerationRoutes(app, deps) {
|
|
|
172
172
|
}, requestHash, bytes && mime ? {
|
|
173
173
|
bytes,
|
|
174
174
|
mime
|
|
175
|
-
} : void 0);
|
|
175
|
+
} : void 0, draft);
|
|
176
176
|
});
|
|
177
177
|
if (result.error === "draft_changed") return c.json({ error: "The video draft changed. Review the current version before generating." }, 409);
|
|
178
178
|
if (result.error === "budget_exhausted") return c.json({ error: "The Gateway video generation budget for today has been reached." }, 429);
|
|
@@ -5,7 +5,7 @@ import { inferMemorySensitivity } from "../agent/memory/sensitivity.js";
|
|
|
5
5
|
import { listKnowledgeItems, writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
6
6
|
import "../knowledge-memory/index.js";
|
|
7
7
|
import { projectUnadmittedForgottenFields } from "./forgotten-history.js";
|
|
8
|
-
import { isFullyOwnerAuthoredSpan, isOwnerAuthoredSpan } from "../user-model/capture/evidence-policy.js";
|
|
8
|
+
import { isFullyOwnerAuthoredSpan, isOwnerAuthoredSpan, isStandingToolInstruction } from "../user-model/capture/evidence-policy.js";
|
|
9
9
|
import { WorkCandidateSchema } from "./work-candidate.js";
|
|
10
10
|
import { createHash } from "node:crypto";
|
|
11
11
|
//#region src/memory-learning/work-capture.ts
|
|
@@ -39,6 +39,7 @@ function applyWorkCandidates(input) {
|
|
|
39
39
|
if (candidate.evidence.some((claim) => !input.evidence.some((entry) => entry.ref === claim.ref))) return reject("evidence_ref_missing");
|
|
40
40
|
const sources = candidate.evidence.map((claim) => input.evidence.find((entry) => entry.ref === claim.ref && entry.text.normalize("NFKC").includes(claim.quote.normalize("NFKC"))));
|
|
41
41
|
if (sources.some((source) => !source)) return reject("evidence_quote_mismatch");
|
|
42
|
+
if (!input.source && sources.every((source, index) => source?.role === "user" && isStandingToolInstruction(source.text, candidate.evidence[index].quote))) return reject("collaboration_instruction_requires_preference");
|
|
42
43
|
if (!input.source && sources.some((source, index) => source?.role === "user" && (!isOwnerAuthoredSpan(source.text, candidate.evidence[index].quote) || /(?:翻译|润色|改写|引文|引用|\b(?:translate|rewrite|quotation|quoted)\b)/iu.test(source.text) && !isFullyOwnerAuthoredSpan(source.text, candidate.evidence[index].quote)))) return reject("work_quote_not_owned");
|
|
43
44
|
if (candidate.lesson) {
|
|
44
45
|
if (input.source) return reject("lesson_runtime_verification_required");
|
|
@@ -32,6 +32,8 @@ export interface WorkReviewPlan {
|
|
|
32
32
|
}
|
|
33
33
|
/** Cheap event selection; recalled or quoted instructions do not trigger a review. */
|
|
34
34
|
export declare function workReviewTrigger(evidence: CaptureEvidence[]): string;
|
|
35
|
+
/** Management only. Re-read the original before suggesting any scope change. */
|
|
36
|
+
export declare function suggestWorkMemoryReview(item: KnowledgeItem, context: KnowledgeVisibilityContext, policy: KnowledgeReadPolicy): 'collaboration_rule' | 'global_collaboration_rule' | undefined;
|
|
35
37
|
export declare function prepareWorkReview(input: Omit<WorkReviewPlan, 'targets'> & {
|
|
36
38
|
evidence: CaptureEvidence[];
|
|
37
39
|
}): WorkReviewPlan;
|
|
@@ -6,7 +6,7 @@ import { canUseKnowledge } from "../knowledge-memory/usage-policy.js";
|
|
|
6
6
|
import { getKnowledgeItem, listKnowledgeItems, transitionKnowledgeStatus, writeKnowledgeItem } from "../knowledge-memory/repository.js";
|
|
7
7
|
import "../knowledge-memory/index.js";
|
|
8
8
|
import { forgottenHistoryEntries, projectUnadmittedForgottenFields } from "./forgotten-history.js";
|
|
9
|
-
import { isFullyOwnerAuthoredSpan } from "../user-model/capture/evidence-policy.js";
|
|
9
|
+
import { assessOwnerSupport, isFullyOwnerAuthoredSpan, ownerMemoryScope, standingToolScope } from "../user-model/capture/evidence-policy.js";
|
|
10
10
|
import { isPersonalWorkClaim } from "./work-capture.js";
|
|
11
11
|
import { retrievalLexicalSimilarity } from "../retrieval/textFeatures.js";
|
|
12
12
|
import { stripRuntimeContextFromUserMessage } from "../session/user-message-display.js";
|
|
@@ -70,6 +70,29 @@ function originalsFor(item, context, processingPolicy) {
|
|
|
70
70
|
}
|
|
71
71
|
return result;
|
|
72
72
|
}
|
|
73
|
+
/** Management only. Re-read the original before suggesting any scope change. */
|
|
74
|
+
function suggestWorkMemoryReview(item, context, policy) {
|
|
75
|
+
if (item.recordClass !== "memory" || item.originClass !== "agent" || item.sensitivity !== "normal" || !["decision", "note"].includes(item.kind) || item.scope.type === "global" || !item.sourceConversationId || item.sourceConversationId !== context.conversationId || ![
|
|
76
|
+
"active",
|
|
77
|
+
"candidate",
|
|
78
|
+
"needs_review"
|
|
79
|
+
].includes(item.status) || item.verification === "conflicted" || !canUseKnowledge({
|
|
80
|
+
...item,
|
|
81
|
+
status: "active",
|
|
82
|
+
verification: "supported"
|
|
83
|
+
}, context, policy)) return void 0;
|
|
84
|
+
const originals = originalsFor(item, context, "local_only");
|
|
85
|
+
const [source] = originals;
|
|
86
|
+
if (originals.length !== 1 || source.role !== "user") return void 0;
|
|
87
|
+
const quote = source.text.trim();
|
|
88
|
+
const support = assessOwnerSupport({
|
|
89
|
+
text: source.text,
|
|
90
|
+
quote,
|
|
91
|
+
kind: "preference"
|
|
92
|
+
});
|
|
93
|
+
if (!support.allowed || !support.direct || !standingToolScope(source.text, quote, Boolean(context.projectId))) return void 0;
|
|
94
|
+
return ownerMemoryScope(source.text, quote) === "global" ? "global_collaboration_rule" : "collaboration_rule";
|
|
95
|
+
}
|
|
73
96
|
function eligible(item, plan) {
|
|
74
97
|
return item.originClass === "agent" && item.source.extractor === "work-synthesis" && item.sourceConversationId === plan.context.conversationId && item.sourceAgentId === plan.context.agentId && item.recordClass === "memory" && canUseKnowledge(item, plan.context, plan.policy);
|
|
75
98
|
}
|
|
@@ -206,4 +229,4 @@ function applyWorkReviews(plan, operations, fresh, runId) {
|
|
|
206
229
|
});
|
|
207
230
|
}
|
|
208
231
|
//#endregion
|
|
209
|
-
export { WorkReviewSchema, applyWorkReviews, prepareWorkReview, workReviewPrompt, workReviewTrigger };
|
|
232
|
+
export { WorkReviewSchema, applyWorkReviews, prepareWorkReview, suggestWorkMemoryReview, workReviewPrompt, workReviewTrigger };
|
|
@@ -31,7 +31,7 @@ async function request(apiOrigin, key, path, input) {
|
|
|
31
31
|
404,
|
|
32
32
|
422,
|
|
33
33
|
429
|
|
34
|
-
].includes(response.status)) throw new MusicRequestRejected(message);
|
|
34
|
+
].includes(response.status)) throw new MusicRequestRejected(message, response.status === 429 ? "provider_rate_limited" : "provider_rejected");
|
|
35
35
|
throw new Error(message);
|
|
36
36
|
}
|
|
37
37
|
return response.json();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MusicMode } from '@xopcai/gateway-contract';
|
|
1
|
+
import type { MusicJobErrorCode, MusicMode } from '@xopcai/gateway-contract';
|
|
2
2
|
export interface MusicInput {
|
|
3
3
|
mode: MusicMode;
|
|
4
4
|
prompt: string;
|
|
@@ -18,6 +18,7 @@ export interface MusicProvider {
|
|
|
18
18
|
id: string;
|
|
19
19
|
name: string;
|
|
20
20
|
models: Readonly<Record<string, {
|
|
21
|
+
name?: string;
|
|
21
22
|
modes: readonly MusicMode[];
|
|
22
23
|
maxPromptCharacters: number;
|
|
23
24
|
maxLyricsCharacters: number;
|
|
@@ -28,4 +29,6 @@ export interface MusicProvider {
|
|
|
28
29
|
allowsAudioHost(host: string): boolean;
|
|
29
30
|
}
|
|
30
31
|
export declare class MusicRequestRejected extends Error {
|
|
32
|
+
readonly code: Extract<MusicJobErrorCode, 'provider_rate_limited' | 'provider_rejected'>;
|
|
33
|
+
constructor(message: string, code: Extract<MusicJobErrorCode, 'provider_rate_limited' | 'provider_rejected'>);
|
|
31
34
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
//#region src/music-generation/provider.ts
|
|
2
|
-
var MusicRequestRejected = class extends Error {
|
|
2
|
+
var MusicRequestRejected = class extends Error {
|
|
3
|
+
constructor(message, code) {
|
|
4
|
+
super(message);
|
|
5
|
+
this.code = code;
|
|
6
|
+
}
|
|
7
|
+
};
|
|
3
8
|
//#endregion
|
|
4
9
|
export { MusicRequestRejected };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type MusicModelSettings } from '@xopcai/gateway-contract';
|
|
2
2
|
import type { MusicProvider } from './provider.js';
|
|
3
3
|
export declare const DEFAULT_MUSIC_MODEL = "mureka-cn/mureka-9.5";
|
|
4
4
|
export declare function resolveMusicModel(ref: string): {
|
|
5
5
|
provider: MusicProvider;
|
|
6
6
|
model: string;
|
|
7
7
|
capabilities: {
|
|
8
|
+
name?: string;
|
|
8
9
|
modes: readonly import("@xopcai/gateway-contract").MusicMode[];
|
|
9
10
|
maxPromptCharacters: number;
|
|
10
11
|
maxLyricsCharacters: number;
|
|
@@ -18,6 +19,7 @@ export declare function configuredMusicModel(): Promise<{
|
|
|
18
19
|
provider: MusicProvider;
|
|
19
20
|
model: string;
|
|
20
21
|
capabilities: {
|
|
22
|
+
name?: string;
|
|
21
23
|
modes: readonly import("@xopcai/gateway-contract").MusicMode[];
|
|
22
24
|
maxPromptCharacters: number;
|
|
23
25
|
maxLyricsCharacters: number;
|
|
@@ -1,7 +1,15 @@
|
|
|
1
|
+
import "../../packages/gateway-contract/src/music-generation.js";
|
|
2
|
+
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
1
3
|
import { murekaGlobalProvider, murekaProvider } from "./mureka.js";
|
|
2
4
|
import { getMusicDefaults, musicCredentials, storedMusicModel } from "./settings.js";
|
|
5
|
+
import { parseTencentMpsCredentials, tencentMpsProvider } from "./tencent-mps.js";
|
|
3
6
|
//#region src/music-generation/providers.ts
|
|
4
|
-
|
|
7
|
+
init_src();
|
|
8
|
+
const providers = new Map([
|
|
9
|
+
murekaProvider,
|
|
10
|
+
murekaGlobalProvider,
|
|
11
|
+
tencentMpsProvider
|
|
12
|
+
].map((provider) => [provider.id, provider]));
|
|
5
13
|
const DEFAULT_MUSIC_MODEL = "mureka-cn/mureka-9.5";
|
|
6
14
|
function resolveMusicModel(ref) {
|
|
7
15
|
const [providerId, model, extra] = ref.split("/");
|
|
@@ -21,7 +29,11 @@ function hasMusicProvider(id) {
|
|
|
21
29
|
return providers.has(id);
|
|
22
30
|
}
|
|
23
31
|
async function resolveMusicKey(provider) {
|
|
24
|
-
return await
|
|
32
|
+
return await readSavedMusicKey(provider.id) ?? provider.environmentKey();
|
|
33
|
+
}
|
|
34
|
+
async function readSavedMusicKey(providerId) {
|
|
35
|
+
const saved = await musicCredentials().revealGatewayStoredApiKey(providerId);
|
|
36
|
+
return providerId === "tencent-mps" && !parseTencentMpsCredentials(saved) ? null : saved;
|
|
25
37
|
}
|
|
26
38
|
async function configuredMusicModel() {
|
|
27
39
|
const ref = selectedMusicModel();
|
|
@@ -36,12 +48,12 @@ async function configuredMusicModel() {
|
|
|
36
48
|
async function readMusicModelSettings() {
|
|
37
49
|
const models = [...providers.values()].flatMap((provider) => Object.entries(provider.models).map(([name, definition]) => ({
|
|
38
50
|
ref: `${provider.id}/${name}`,
|
|
39
|
-
name,
|
|
51
|
+
name: definition.name ?? name,
|
|
40
52
|
providerId: provider.id,
|
|
41
53
|
modes: definition.modes
|
|
42
54
|
})));
|
|
43
55
|
const credentials = Object.fromEntries(await Promise.all([...providers.values()].map(async (provider) => {
|
|
44
|
-
const saved = await
|
|
56
|
+
const saved = await readSavedMusicKey(provider.id);
|
|
45
57
|
return [provider.id, saved ? "saved" : provider.environmentKey() ? "environment" : "missing"];
|
|
46
58
|
})));
|
|
47
59
|
const modelRef = selectedMusicModel();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MusicGenerationJob, MusicJobState, MusicMode } from '@xopcai/gateway-contract';
|
|
1
|
+
import type { MusicGenerationJob, MusicJobErrorCode, MusicJobState, MusicMode } from '@xopcai/gateway-contract';
|
|
2
2
|
export interface MusicJobRow {
|
|
3
3
|
id: string;
|
|
4
4
|
conversation_id: string;
|
|
@@ -16,6 +16,7 @@ export interface MusicJobRow {
|
|
|
16
16
|
provider_task_id: string | null;
|
|
17
17
|
duration_ms: number | null;
|
|
18
18
|
error: string | null;
|
|
19
|
+
error_code: MusicJobErrorCode | null;
|
|
19
20
|
created_at: number;
|
|
20
21
|
}
|
|
21
22
|
export declare function publicMusicJob(row: MusicJobRow): MusicGenerationJob;
|
|
@@ -44,6 +45,7 @@ export declare function updateMusicJob(id: string, token: string, state: MusicJo
|
|
|
44
45
|
taskId?: string;
|
|
45
46
|
durationMs?: number | null;
|
|
46
47
|
error?: string;
|
|
48
|
+
errorCode?: MusicJobErrorCode;
|
|
47
49
|
delayMs?: number;
|
|
48
50
|
keepLease?: boolean;
|
|
49
51
|
}): boolean;
|
|
@@ -17,6 +17,7 @@ function publicMusicJob(row) {
|
|
|
17
17
|
state: row.state,
|
|
18
18
|
durationMs: row.duration_ms,
|
|
19
19
|
error: row.error,
|
|
20
|
+
errorCode: row.error_code,
|
|
20
21
|
createdAt: row.created_at
|
|
21
22
|
};
|
|
22
23
|
}
|
|
@@ -80,7 +81,8 @@ async function enqueueMusicJob(conversationId, transcriptId, toolCallId, request
|
|
|
80
81
|
function claimMusicJob() {
|
|
81
82
|
return runSqliteWriteTransaction((db) => {
|
|
82
83
|
const now = Date.now();
|
|
83
|
-
db.prepare(`UPDATE music_generation_jobs SET state = 'submission_unknown',
|
|
84
|
+
db.prepare(`UPDATE music_generation_jobs SET state = 'submission_unknown', error = NULL, error_code = NULL,
|
|
85
|
+
lease_token = NULL, lease_until = NULL
|
|
84
86
|
WHERE state = 'submitting' AND lease_until <= ?`).run(now);
|
|
85
87
|
const row = db.prepare(`SELECT * FROM music_generation_jobs WHERE state IN ('queued', 'submitted', 'running', 'saving')
|
|
86
88
|
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 +97,10 @@ function claimMusicJob() {
|
|
|
95
97
|
}
|
|
96
98
|
function updateMusicJob(id, token, state, options = {}) {
|
|
97
99
|
const now = Date.now();
|
|
98
|
-
return getSqliteDatabase().prepare(`UPDATE music_generation_jobs SET state = ?, error = ?,
|
|
100
|
+
return getSqliteDatabase().prepare(`UPDATE music_generation_jobs SET state = ?, error = ?, error_code = ?,
|
|
99
101
|
provider_task_id = COALESCE(?, provider_task_id), duration_ms = COALESCE(?, duration_ms), next_attempt_at = ?,
|
|
100
102
|
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;
|
|
103
|
+
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;
|
|
102
104
|
}
|
|
103
105
|
//#endregion
|
|
104
106
|
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;
|