@xopcai/xopc 0.0.441 → 0.0.443
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/README.md +2 -3
- package/README.zh-CN.md +1 -2
- package/dist/browser-ext/_locales/en/messages.json +0 -28
- package/dist/browser-ext/_locales/zh_CN/messages.json +0 -28
- package/dist/browser-ext/dist/assets/{sidepanel-CQeQB5vW.css → sidepanel-lpBGVKwZ.css} +0 -42
- package/dist/browser-ext/dist/background.js +247 -647
- package/dist/browser-ext/dist/sidepanel.html +2 -2
- package/dist/browser-ext/dist/sidepanel.js +105 -346
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/src/plugin.js +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-t5c6XavH.js → activity-store-CuPXAoLe.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-CSTtf3RI.js → agent-avatar-dicebear-D92uHOFV.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-display-Cm0afn_O.js → agent-avatar-display-DINzeGs0.js} +2 -2
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-BMbsLf16.js → agent-defaults-settings-panel-rH1QpgiR.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-DofyWKnP.js → agent-plugin-dialog-B2vXlrDW.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-admin-api-CewiIx4v.js → agents-admin-api-DPLtjJtX.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-CAqwtADW.js → agents-lvQfOQPN.js} +3 -3
- package/dist/gateway/static/root/assets/{api-CE6gdBWx.js → api-CEzBruRJ.js} +1 -1
- package/dist/gateway/static/root/assets/{api-DRyQFk9q.js → api-snfMD8_Y.js} +1 -1
- package/dist/gateway/static/root/assets/app-link-CdD448kS.js +1 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-BZfs2ydm.js → app-management-settings-panel-CONwDpqL.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-BA7spRv6.js → appearance-settings-Bu7K-_ri.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-B0qorxfq.js → apps-page-C3iDd3ZQ.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-CPCI6nqQ.js → archive-plugin-CfLz9o-2.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-api-paBg5ie6.js → automation-api-Dl9fi8t0.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-result-state-Ds-59DdX.js → automation-result-state-BjjZCxee.js} +1 -1
- package/dist/gateway/static/root/assets/{automation-run-list-Crw5qn_I.js → automation-run-list-9IPHu_UC.js} +1 -1
- package/dist/gateway/static/root/assets/automation-task-card-CKbHMLSy.js +3 -0
- package/dist/gateway/static/root/assets/{automations-page-D3Cb5vfR.js → automations-page-BDHgk3CW.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-B7D9U89Z.js +9 -0
- package/dist/gateway/static/root/assets/{binary-plugins-CFJCUpWH.js → binary-plugins-Bv4ixxo4.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-DbG2QKd0.js → block-editor-CtaJSB9U.js} +1 -1
- package/dist/gateway/static/root/assets/browser-settings-page-CmBsnx24.js +8 -0
- package/dist/gateway/static/root/assets/{capabilities-DG0ckPuF.js → capabilities-DDJJhQ40.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-DJYgOjeq.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-page-CBqvHAyp.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-wjezs0OE.js +8 -0
- package/dist/gateway/static/root/assets/capability-icon-CmvCZOJX.js +1 -0
- package/dist/gateway/static/root/assets/{capability-links-DeO34GIF.js → capability-links-MZdYfPKx.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-OiT-5N_6.js → channels-D4q8hiD0.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-agents-api-CTL8cwNk.js → chat-agents-api-BOB3dILf.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-chart-block-Z41MRuzh.js → chat-chart-block-DsaCatBN.js} +1 -1
- package/dist/gateway/static/root/assets/chat-page-CAt7FyMT.js +72 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-CEaFlZEs.js → chat-terminal-dock-D9o0nUEV.js} +1 -1
- package/dist/gateway/static/root/assets/{command-palette-api-C3G6veE2.js → command-palette-api-Cj0_7g9o.js} +1 -1
- package/dist/gateway/static/root/assets/{composer-payload-handoff-Ccq_KF1W.js → composer-payload-handoff-CoDWKzBm.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-CTkICYyM.js → computer-settings-page-DJ9BIOHC.js} +1 -1
- package/dist/gateway/static/root/assets/connected-providers-grid-C5-3MDIj.js +1 -0
- package/dist/gateway/static/root/assets/connection-usage-BhdQRWgQ.js +1 -0
- package/dist/gateway/static/root/assets/connection-usage-guide-bD1sKiAp.js +1 -0
- package/dist/gateway/static/root/assets/{connector-service-page-C6yeCQWW.js → connector-service-page-BEq3i3Vi.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-api-HFW1Iey5.js → connectors-api-DEExP6a7.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-QVWuoxuK.js +1 -0
- package/dist/gateway/static/root/assets/constants-CsVXarqA.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-C_tweuM0.js → date-picker-D2whl8Ci.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-narrative-ChwjpnsG.js → desktop-pet-narrative-C8zQtMcw.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-BAX0ZLyq.js → desktop-pet-qnIdmNnH.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-BIIsWpW9.js → desktop-pet-settings-C54b1FY4.js} +1 -1
- package/dist/gateway/static/root/assets/{dev-view-store-D4C_zjRq.js → dev-view-store-bryv5YRw.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-ZUE6wZ1X.js → device-pairing-wizard-Du-yOxZv.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-CFb2VFW-.js → directory-picker-path-field-GsMkjw59.js} +1 -1
- package/dist/gateway/static/root/assets/{discussion-annotation-sync-Bd4r2auZ.js → discussion-annotation-sync-CrpDiC7J.js} +1 -1
- package/dist/gateway/static/root/assets/earth-C9Z4bTTG.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-DXGpnxwM.js → extension-debug-page-CDZfdMAR.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-DTwDBQQ9.js → extension-iframe-host-CG70QWPS.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-marketplace-api-Q6E4x8gu.js → extension-marketplace-api-D7Av-sOf.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-BVBxNzys.js → extension-page-DpJTL6-v.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-D-Fa5PU-.js → extension-provider-BZTbdvCF.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-ycMuOpv3.js → extension-settings-page-CC4rmiFC.js} +1 -1
- package/dist/gateway/static/root/assets/{file-preview-surface-D62ph0m0.js → file-preview-surface-Dtla5oAW.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-BW6eBLIt.js → gateway-config-swr-B5THNdYK.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-Bg4Mf7HA.js → gateway-realtime-hnEaDFaA.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-ugwtyD4q.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-restart-BzrJNB4Q.js → gateway-restart-kwv0njYq.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-BOW90CER.js → gateway-settings-CxYPJTy8.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-DCjREMIO.js → gateway-startup-retry-CqtCJzWJ.js} +1 -1
- package/dist/gateway/static/root/assets/{global-defaults-api-myAmGZ2_.js → global-defaults-api-BQMdHLlp.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-eXW3llb0.js → home-page-CpbsTucI.js} +2 -2
- package/dist/gateway/static/root/assets/{image-generation-api-CLkuZdsz.js → image-generation-api-G3tQFhif.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-BFsLQu7n.js → imports-page-BmEqiunH.js} +1 -1
- package/dist/gateway/static/root/assets/index-CbhkKfcy.js +11 -0
- package/dist/gateway/static/root/assets/index-DE2bG5EI.css +1 -0
- package/dist/gateway/static/root/assets/{install-connector-dialog-CVjCFdly.js → install-connector-dialog-BU4l6KJv.js} +1 -1
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-DdZfxLQb.js → keyboard-shortcuts-settings-CtNI6i7K.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-xV9a7McI.js → local-app-workbench-page-CE46mHc0.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-buwr_S_-.js → local-apps-page-DqZT5hLH.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-v7v7Hb6T.js → local-session-drafts-Bt_e3A8f.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-DGtk-KSF.js → locale-store-Bld7_m-Q.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-D_VBpYkM.js → logs-page-CzajqK40.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BlRCdUF3.js → management-settings-BgdAP0kf.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-JXJ3e1CB.js → markdown-view-B3cFKCfO.js} +1 -1
- package/dist/gateway/static/root/assets/markdown-view-DG8DDkEA.css +1 -0
- package/dist/gateway/static/root/assets/{mcp-conversation-setup-page-Vr2dpowU.js → mcp-conversation-setup-page-ZcY1nqMO.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-DcN8Y0hJ.js → media-plugins-DSOplRhW.js} +1 -1
- package/dist/gateway/static/root/assets/messages-CGO1P4mz.js +3 -0
- package/dist/gateway/static/root/assets/{model-selector-zD2x0Sn6.js → model-selector-yAKlOR3O.js} +1 -1
- package/dist/gateway/static/root/assets/{models-hub-cache-DtZG5bA_.js → models-hub-cache-8V-ZpAIa.js} +1 -1
- package/dist/gateway/static/root/assets/{note-detail-panel-CVrfF6XL.js → note-detail-panel-DWIWloib.js} +3 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-BbNYW2Rw.js +1 -0
- package/dist/gateway/static/root/assets/notes-api-CVQqqmGI.js +1 -0
- package/dist/gateway/static/root/assets/{notes-page-BOCURwg6.js → notes-page-DIugUbkV.js} +3 -3
- package/dist/gateway/static/root/assets/{oauth-api-DYNQAQBx.js → oauth-api-DGa6PTuq.js} +1 -1
- package/dist/gateway/static/root/assets/{oauth-provider-connect-BvV6SP0k.js → oauth-provider-connect-Bc-KLH1e.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-Dor5Y5Bf.js → page-context-capture-button-B9L7V_n2.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-draft-B8DQ5lNT.js → page-context-draft-GveHK8e2.js} +1 -1
- package/dist/gateway/static/root/assets/page-header-store-YZfSLNTg.js +1 -0
- package/dist/gateway/static/root/assets/palette-CDI0VweW.js +1 -0
- package/dist/gateway/static/root/assets/{personal-avatar-CF6T0aTT.js → personal-avatar-Cu8lGBXZ.js} +1 -1
- package/dist/gateway/static/root/assets/personal-page-Dah3dgRQ.js +1 -0
- package/dist/gateway/static/root/assets/{personal-settings-panel-BrQ94X_A.js → personal-settings-panel-awr10jTV.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-dependencies-card-Zvbw-N0D.js → phone-dependencies-card-CAxn3usD.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-connection-CQ4PhhE5.js → phone-model-connection-BBG3LxRP.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-model-picker-BDBtemUm.js → phone-model-picker-CfPjKpnd.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-settings-page-D2KXWcg1.js → phone-settings-page-C4dJdwRW.js} +1 -1
- package/dist/gateway/static/root/assets/{phone-workspace-store-BhJAeHdQ.js → phone-workspace-store-BKltFHtG.js} +1 -1
- package/dist/gateway/static/root/assets/{plugin-details-dialog-DpPtI0sI.js → plugin-details-dialog-BqcFfZFH.js} +1 -1
- package/dist/gateway/static/root/assets/{popover-select-CEMWIrtY.js → popover-select-CLsphyzA.js} +1 -1
- package/dist/gateway/static/root/assets/{preference-select-fields-Bx26yGRF.js → preference-select-fields-QlyIA8ve.js} +1 -1
- package/dist/gateway/static/root/assets/product-automation-feedback-CRsfuAXl.js +7 -0
- package/dist/gateway/static/root/assets/product-navigation-Dp-adLY_.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-DSWELoz0.js → product-open-page-CQ4dk-_l.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-DJb-OtMo.js → product-preview-content-CGbqoID0.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-DaQhXcev.js → product-preview-modal-0wvIDcVr.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-BHLOHrat.js → project-detail-page-VPcXR1YD.js} +2 -2
- package/dist/gateway/static/root/assets/{project-understanding-CjhVk8l-.js → project-understanding-CU2af95r.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-sVWDuzmC.js → projects-page-BsgZb6n9.js} +1 -1
- package/dist/gateway/static/root/assets/{providers-api-gWGsgOOf.js → providers-api-CspehmSU.js} +1 -1
- package/dist/gateway/static/root/assets/recording-upload-BOZAOdCI.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-CRxE9kFY.js → registry-api-Bdp3UUyz.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-Bw__qp-v.js → remote-access-hub-Bos3uwAT.js} +1 -1
- package/dist/gateway/static/root/assets/{resource-unavailable-BaczkGfK.js → resource-unavailable-DJR3SCy6.js} +1 -1
- package/dist/gateway/static/root/assets/route-preload-Blmi-1Iq.js +2 -0
- package/dist/gateway/static/root/assets/{runtime-tools-api-ygfM5FCT.js → runtime-tools-api-DsbahxzE.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-BWEK7BZS.js → runtime-tools-settings-panel-DW9_OFi2.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-C-jw6Hid.js → schema-form-CtRM41Re.js} +1 -1
- package/dist/gateway/static/root/assets/{service-recommendation-list-DrgwXSEt.js → service-recommendation-list-Bd1JDO5T.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-CpZ24vrQ.js → session-api-DjnHJ-0n.js} +1 -1
- package/dist/gateway/static/root/assets/{session-manager-CZyY5Y87.js → session-manager-ChHnJOWW.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-DgXRw0_8.js → sessions-page-BM-oqd22.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-DyGT3o1e.js +1 -0
- package/dist/gateway/static/root/assets/{settings-advanced-section-DmCp3OWb.js → settings-advanced-section-CM44UlF8.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-loading-skeleton-BTqvr_Fw.js → settings-loading-skeleton-CAoOV17i.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-mode-store-fZ6mzf4A.js → settings-mode-store-Blc4C8aw.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-SQwLKlTr.js → settings-page-CMSYmtOu.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-header-4d1u-o-F.js → settings-page-header-BYFaTD8a.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-Cy9_VBag.js → settings-page-layout-CnUQSxT3.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-interaction-page-OFU6DKgp.js → setup-interaction-page-DqaiLQ0I.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-KKAneNTe.js → setup-status-panel-iOYgfkoK.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-Apq3cegw.js → share-link-dialog-C_uYNUlp.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-B6yMj5nG.js → share-preview-page-CFebGqyB.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-Q5x_ty6F.js → shares-api-C2GDyqxP.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-vxTYg6Hp.js → shares-settings-B-7la3QN.js} +1 -1
- package/dist/gateway/static/root/assets/skeleton-DzdOeGYz.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-CBFXDh9m.js → skill-api-BnpTSZGc.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-list-api-C8tm-XxH.js → skill-list-api-7MY9ewiu.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-B-4Yj46U.js → skill-reload-api-DkDpu3Wd.js} +1 -1
- package/dist/gateway/static/root/assets/skills-page-sL2kGqHZ.js +2 -0
- package/dist/gateway/static/root/assets/sliding-tab-list-CmcrqRzN.js +1 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-a4mBz4J2.js → system-settings-panel-BltKPJdb.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-BuP1vEuu.js +3 -0
- package/dist/gateway/static/root/assets/{task-result-evidence-DFiu5SlL.js → task-result-evidence-B1MHhqVR.js} +1 -1
- package/dist/gateway/static/root/assets/{tasks-DRmd6sWt.js → tasks-D_xuHn6V.js} +1 -1
- package/dist/gateway/static/root/assets/{terminal-panel-store-BdOlpRkY.js → terminal-panel-store-DUEJoa1M.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-D58tk8pq.js → theme-store-DsvYj7Vy.js} +1 -1
- package/dist/gateway/static/root/assets/tool-friendly-title-DEGpbye4.js +1 -0
- package/dist/gateway/static/root/assets/{tracing-settings-page-CO0-AiCl.js → tracing-settings-page-B_Xdc2VF.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-DVRX9yW6.js → tunnel-api-B6BhWTh3.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-activity-store-B_-648uj.js → understanding-activity-store-B7rFXhDk.js} +1 -1
- package/dist/gateway/static/root/assets/{understanding-refresh-store-BXJ-kwzq.js → understanding-refresh-store-DCFASve5.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-C76JnWR8.js → usage-page-DqzosTxy.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-xytwr7Lc.js → use-autosave-DsqcLHV9.js} +1 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-Brdrrzrp.js +2 -0
- package/dist/gateway/static/root/assets/use-file-preview-expanded-9DED7ohY.js +2 -0
- package/dist/gateway/static/root/assets/{use-personal-profile-BXHU0P8I.js → use-personal-profile-T2e6P5Ed.js} +1 -1
- package/dist/gateway/static/root/assets/{use-workspace-tree-CiLbOQHQ.js → use-workspace-tree-Dq0qgK3N.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-Ziz55hVM.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-Dn092u0X.js → voice-api-key-field-D7NPAc1E.js} +1 -1
- package/dist/gateway/static/root/assets/voice-call-context-CJ1ZiJWR.js +1 -0
- package/dist/gateway/static/root/assets/{voice-config-api-fqUzP-ZY.js → voice-config-api-UQDTh6hh.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-input-shortcut-events-D7QdPeuj.js → voice-input-shortcut-events-SD2gZVg8.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-transcribe-api-NpNY_gsE.js → voice-transcribe-api-Bf9FaI-p.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-BARpCMZl.js → work-discovery-overlay-B41GOFXh.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-page-p0aVb8xr.js → work-discovery-page-NNhExALx.js} +1 -1
- package/dist/gateway/static/root/assets/{working-directory-picker-modal-7G-6icvh.js → working-directory-picker-modal-DeNWVFFK.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-BKbezgv-.js → workspace-api-DrVss2Fd.js} +2 -2
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-CmSYxTmk.js +1 -0
- package/dist/gateway/static/root/assets/{workspace-file-preview-dialog-CS8-ZbVG.js → workspace-file-preview-dialog-C2egBzza.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-BQrTy-8o.js → workspace-open-location-menu-XFUtwfLY.js} +1 -1
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-Bc5rXL-E.js → xopc-cloud-account-card-BlhFT1q9.js} +1 -1
- package/dist/gateway/static/root/index.html +98 -101
- package/dist/package.js +1 -1
- package/dist/packages/browser-control-contract/src/dom.js +79 -0
- package/dist/packages/browser-control-contract/src/index.js +2 -25
- package/dist/packages/gateway-contract/src/automations.js +0 -6
- package/dist/packages/gateway-contract/src/task-research-result.js +1 -0
- package/dist/packages/gateway-contract/src/tasks.js +1 -1
- package/dist/src/agent/agent-manager.d.ts +0 -1
- package/dist/src/agent/agent-manager.js +0 -1
- package/dist/src/agent/embedded/execution-tool-policy.d.ts +1 -1
- package/dist/src/agent/embedded/execution-tool-policy.js +2 -1
- package/dist/src/agent/external-tools/index.d.ts +1 -1
- package/dist/src/agent/service.js +0 -1
- package/dist/src/agent/service.types.d.ts +0 -1
- package/dist/src/agent/tool-manuals/browser.d.ts +1 -1
- package/dist/src/agent/tool-manuals/browser.js +0 -3
- package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js +3 -0
- package/dist/src/agent/tools/factory.d.ts +0 -2
- package/dist/src/agent/tools/factory.js +1 -2
- package/dist/src/agent/tools/find.d.ts +1 -1
- package/dist/src/agent/tools/grep.d.ts +1 -1
- package/dist/src/agent/tools/index.d.ts +0 -1
- package/dist/src/agent/tools/index.js +1 -2
- package/dist/src/agent/tools/metadata.d.ts +1 -1
- package/dist/src/agent/tools/personal-request-result-tool.js +2 -2
- package/dist/src/agent/tools/personal-request-tool.js +4 -1
- package/dist/src/agent/tools/personal-task-tool.d.ts +1 -0
- package/dist/src/agent/tools/personal-task-tool.js +4 -0
- package/dist/src/agent/tools/xopc-use-tool.js +10 -1
- package/dist/src/auth/oauth/anthropic.d.ts +1 -7
- package/dist/src/auth/oauth/anthropic.js +6 -83
- package/dist/src/auth/oauth/index.d.ts +0 -2
- package/dist/src/auth/oauth/index.js +2 -6
- package/dist/src/auth/oauth/kimi-coding.d.ts +1 -6
- package/dist/src/auth/oauth/kimi-coding.js +5 -79
- package/dist/src/auth/oauth/openai.js +1 -1
- package/dist/src/auth/oauth/pi-oauth-adapter.d.ts +4 -0
- package/dist/src/auth/oauth/pi-oauth-adapter.js +53 -0
- package/dist/src/auth/oauth/registry.js +0 -9
- package/dist/src/automations/capabilities/write.d.ts +6 -18
- package/dist/src/automations/domain/defaults.d.ts +0 -1
- package/dist/src/automations/domain/defaults.js +2 -3
- package/dist/src/automations/domain/index.js +2 -2
- package/dist/src/automations/domain/types.d.ts +0 -26
- package/dist/src/automations/domain/validation.d.ts +12 -36
- package/dist/src/automations/domain/validation.js +0 -7
- package/dist/src/automations/draft/automation-draft-validator.d.ts +1 -7
- package/dist/src/automations/draft/automation-draft-validator.js +0 -1
- package/dist/src/automations/index.js +2 -2
- package/dist/src/automations/service/action-executor.d.ts +0 -1
- package/dist/src/automations/service/action-executor.js +0 -31
- package/dist/src/automations/service/automation-service.d.ts +0 -1
- package/dist/src/automations/service/automation-service.js +1 -13
- package/dist/src/browser/drivers/playwright-driver.js +1 -2
- package/dist/src/channels/index.js +1 -1
- package/dist/src/channels/manager.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/config/models-json.d.ts +24 -24
- package/dist/src/endpoint-tools/policy.js +3 -4
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +0 -16
- package/dist/src/gateway/hono/routes/projects.js +1 -1
- package/dist/src/gateway/next-turn-suggestions/snapshot.js +11 -3
- package/dist/src/gateway/security/gateway-scopes.js +0 -2
- package/dist/src/gateway/service.d.ts +0 -3
- package/dist/src/gateway/service.js +2 -17
- package/dist/src/home-intelligence/application-service.js +1 -1
- package/dist/src/personal-agent/communication.d.ts +1 -1
- package/dist/src/personal-agent/communication.js +2 -2
- package/dist/src/personal-agent/prompts.js +1 -1
- package/dist/src/personal-agent/reply-style.d.ts +2 -2
- package/dist/src/personal-agent/reply-style.js +12 -0
- package/dist/src/personal-agent/request-delivery.js +1 -5
- package/dist/src/personal-agent/request-repository.d.ts +1 -0
- package/dist/src/personal-agent/request-service.d.ts +1 -0
- package/dist/src/personal-agent/request-service.js +12 -3
- package/dist/src/personal-agent/request-verification.d.ts +6 -0
- package/dist/src/personal-agent/request-verification.js +22 -0
- package/dist/src/providers/domestic-presets.d.ts +2 -310
- package/dist/src/providers/domestic-presets.js +2 -396
- package/dist/src/providers/env-keys.js +2 -6
- package/dist/src/providers/index.js +6 -13
- package/dist/src/providers/presentation.js +4 -6
- package/dist/src/providers/setup/profiles.js +1 -2
- package/dist/src/storage/sqlite/schema.sql +0 -81
- package/dist/src/tasks/home-query-service.js +0 -1
- package/dist/src/tasks/task-allocation-service.js +4 -2
- package/dist/src/tasks/task-application-service.js +4 -1
- package/dist/src/tasks/task-context-assembler.js +3 -1
- package/dist/src/tasks/task-contract-definition.d.ts +1 -0
- package/dist/src/tasks/task-contract-planner.js +3 -0
- package/dist/src/tasks/task-main-update-decision-service.js +7 -7
- package/dist/src/tasks/task-main-update-delivery.js +15 -2
- package/dist/src/tasks/task-repository.js +1 -1
- package/dist/src/tasks/task-research-repair.d.ts +1 -0
- package/dist/src/tasks/task-research-repair.js +3 -1
- package/dist/src/tasks/task-research-result.js +19 -1
- package/dist/src/tasks/task-run-coordinator.js +12 -9
- package/package.json +8 -8
- package/dist/gateway/static/root/assets/app-link-DRy3-k7j.js +0 -1
- package/dist/gateway/static/root/assets/arrow-up-right-T72JbQ1Q.js +0 -1
- package/dist/gateway/static/root/assets/automation-task-card-BecBULES.js +0 -3
- package/dist/gateway/static/root/assets/automations-workspace-BBSTBucV.js +0 -9
- package/dist/gateway/static/root/assets/book-open-CCGtrT3R.js +0 -1
- package/dist/gateway/static/root/assets/browser-automation-inputs-DADzEaqe.js +0 -1
- package/dist/gateway/static/root/assets/browser-automations-page-V7_ZTcyU.js +0 -3
- package/dist/gateway/static/root/assets/browser-control-api-Bdr2nGCE.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-irOt8KDh.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-CrAs-oqU.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-page-CJLVUcD4.js +0 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-D8t5F998.js +0 -8
- package/dist/gateway/static/root/assets/capability-icon-DVoZxEgW.js +0 -1
- package/dist/gateway/static/root/assets/chat-page-DBAezT9u.js +0 -72
- package/dist/gateway/static/root/assets/connected-providers-grid-CpO98SqR.js +0 -1
- package/dist/gateway/static/root/assets/connection-usage-Cm_McddI.js +0 -1
- package/dist/gateway/static/root/assets/connection-usage-guide-DOf2VWzv.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-Cbn4LSpC.js +0 -1
- package/dist/gateway/static/root/assets/constants-DBtMsXdW.js +0 -1
- package/dist/gateway/static/root/assets/earth-BMhZtzcj.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-xYMxjztG.js +0 -1
- package/dist/gateway/static/root/assets/index-CKIirf4W.css +0 -1
- package/dist/gateway/static/root/assets/index-CQ570IAI.js +0 -11
- package/dist/gateway/static/root/assets/markdown-view-C-DHb3Io.css +0 -1
- package/dist/gateway/static/root/assets/messages-DYDySzn1.js +0 -3
- package/dist/gateway/static/root/assets/note-image-lightbox-V4rmgfLB.js +0 -1
- package/dist/gateway/static/root/assets/notes-api-UXC3eyeM.js +0 -1
- package/dist/gateway/static/root/assets/page-header-store-f8XcAs9b.js +0 -1
- package/dist/gateway/static/root/assets/personal-page-DUykELZZ.js +0 -1
- package/dist/gateway/static/root/assets/product-automation-feedback-_K6grEOt.js +0 -7
- package/dist/gateway/static/root/assets/product-navigation-Co8pLbDP.js +0 -1
- package/dist/gateway/static/root/assets/recording-upload-CBefH7C5.js +0 -1
- package/dist/gateway/static/root/assets/route-preload-Coy9Gjyy.js +0 -2
- package/dist/gateway/static/root/assets/settings-advanced-gate-Ch9MNvvk.js +0 -1
- package/dist/gateway/static/root/assets/skeleton-BI5TyibZ.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-Xbnh0-6I.js +0 -2
- package/dist/gateway/static/root/assets/sliding-tab-list-DuQyViqe.js +0 -1
- package/dist/gateway/static/root/assets/star-BUWJqJ5c.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-B9akf3i8.js +0 -3
- package/dist/gateway/static/root/assets/tool-friendly-title-DcCc6g7o.js +0 -1
- package/dist/gateway/static/root/assets/use-composer-attachments-fK2PUQbB.js +0 -2
- package/dist/gateway/static/root/assets/use-file-preview-expanded-ivMxmMu1.js +0 -2
- package/dist/gateway/static/root/assets/user-model-page-BzpV1hq_.js +0 -2
- package/dist/gateway/static/root/assets/video-B6V0GFss.js +0 -1
- package/dist/gateway/static/root/assets/voice-call-context-BM2A4bLz.js +0 -1
- package/dist/gateway/static/root/assets/workspace-editor-agent-store-CODAQqJn.js +0 -1
- package/dist/packages/browser-control-contract/src/automation.js +0 -213
- package/dist/src/agent/tools/browser-automation-tool.d.ts +0 -194
- package/dist/src/agent/tools/browser-automation-tool.js +0 -243
- package/dist/src/auth/oauth/minimax-cn.d.ts +0 -11
- package/dist/src/auth/oauth/minimax-cn.js +0 -95
- package/dist/src/auth/oauth/minimax.d.ts +0 -8
- package/dist/src/auth/oauth/minimax.js +0 -95
- package/dist/src/browser/automations/index.d.ts +0 -4
- package/dist/src/browser/automations/index.js +0 -4
- package/dist/src/browser/automations/repository.d.ts +0 -17
- package/dist/src/browser/automations/repository.js +0 -81
- package/dist/src/browser/automations/runner.d.ts +0 -17
- package/dist/src/browser/automations/runner.js +0 -265
- package/dist/src/browser/automations/runtime-service.d.ts +0 -8
- package/dist/src/browser/automations/runtime-service.js +0 -38
- package/dist/src/browser/automations/schema.d.ts +0 -227
- package/dist/src/browser/automations/schema.js +0 -201
- package/dist/src/browser/automations/service.d.ts +0 -232
- package/dist/src/browser/automations/service.js +0 -214
- package/dist/src/browser/automations/types.d.ts +0 -105
- package/dist/src/browser/automations/types.js +0 -1
- package/dist/src/browser/recordings/service.d.ts +0 -22
- package/dist/src/browser/recordings/service.js +0 -159
- package/dist/src/gateway/hono/routes/browser-automations.d.ts +0 -3
- package/dist/src/gateway/hono/routes/browser-automations.js +0 -93
- package/dist/src/gateway/hono/routes/browser-recordings.d.ts +0 -3
- package/dist/src/gateway/hono/routes/browser-recordings.js +0 -78
- package/dist/browser-ext/dist/assets/{page-context-DngcqfGf.js → auth-DAIwDtVp.js} +1368 -1368
|
@@ -29,18 +29,18 @@ export declare const OpenAICompletionsCompatSchema: z.ZodObject<{
|
|
|
29
29
|
requiresThinkingAsText: z.ZodOptional<z.ZodBoolean>;
|
|
30
30
|
requiresMistralToolIds: z.ZodOptional<z.ZodBoolean>;
|
|
31
31
|
thinkingFormat: z.ZodOptional<z.ZodEnum<{
|
|
32
|
+
zai: "zai";
|
|
32
33
|
deepseek: "deepseek";
|
|
33
34
|
openai: "openai";
|
|
34
35
|
"ant-ling": "ant-ling";
|
|
35
36
|
openrouter: "openrouter";
|
|
36
|
-
zai: "zai";
|
|
37
37
|
together: "together";
|
|
38
38
|
baseten: "baseten";
|
|
39
|
+
dashscope: "dashscope";
|
|
39
40
|
qwen: "qwen";
|
|
40
|
-
"chat-template": "chat-template";
|
|
41
41
|
"qwen-chat-template": "qwen-chat-template";
|
|
42
|
+
"chat-template": "chat-template";
|
|
42
43
|
"string-thinking": "string-thinking";
|
|
43
|
-
dashscope: "dashscope";
|
|
44
44
|
}>>;
|
|
45
45
|
openRouterRouting: z.ZodOptional<z.ZodObject<{
|
|
46
46
|
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -67,18 +67,18 @@ export declare const OpenAICompatSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
67
67
|
requiresThinkingAsText: z.ZodOptional<z.ZodBoolean>;
|
|
68
68
|
requiresMistralToolIds: z.ZodOptional<z.ZodBoolean>;
|
|
69
69
|
thinkingFormat: z.ZodOptional<z.ZodEnum<{
|
|
70
|
+
zai: "zai";
|
|
70
71
|
deepseek: "deepseek";
|
|
71
72
|
openai: "openai";
|
|
72
73
|
"ant-ling": "ant-ling";
|
|
73
74
|
openrouter: "openrouter";
|
|
74
|
-
zai: "zai";
|
|
75
75
|
together: "together";
|
|
76
76
|
baseten: "baseten";
|
|
77
|
+
dashscope: "dashscope";
|
|
77
78
|
qwen: "qwen";
|
|
78
|
-
"chat-template": "chat-template";
|
|
79
79
|
"qwen-chat-template": "qwen-chat-template";
|
|
80
|
+
"chat-template": "chat-template";
|
|
80
81
|
"string-thinking": "string-thinking";
|
|
81
|
-
dashscope: "dashscope";
|
|
82
82
|
}>>;
|
|
83
83
|
openRouterRouting: z.ZodOptional<z.ZodObject<{
|
|
84
84
|
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -430,18 +430,18 @@ export declare const CustomModelSchema: z.ZodObject<{
|
|
|
430
430
|
requiresThinkingAsText: z.ZodOptional<z.ZodBoolean>;
|
|
431
431
|
requiresMistralToolIds: z.ZodOptional<z.ZodBoolean>;
|
|
432
432
|
thinkingFormat: z.ZodOptional<z.ZodEnum<{
|
|
433
|
+
zai: "zai";
|
|
433
434
|
deepseek: "deepseek";
|
|
434
435
|
openai: "openai";
|
|
435
436
|
"ant-ling": "ant-ling";
|
|
436
437
|
openrouter: "openrouter";
|
|
437
|
-
zai: "zai";
|
|
438
438
|
together: "together";
|
|
439
439
|
baseten: "baseten";
|
|
440
|
+
dashscope: "dashscope";
|
|
440
441
|
qwen: "qwen";
|
|
441
|
-
"chat-template": "chat-template";
|
|
442
442
|
"qwen-chat-template": "qwen-chat-template";
|
|
443
|
+
"chat-template": "chat-template";
|
|
443
444
|
"string-thinking": "string-thinking";
|
|
444
|
-
dashscope: "dashscope";
|
|
445
445
|
}>>;
|
|
446
446
|
openRouterRouting: z.ZodOptional<z.ZodObject<{
|
|
447
447
|
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -510,18 +510,18 @@ export declare const ModelOverrideSchema: z.ZodObject<{
|
|
|
510
510
|
requiresThinkingAsText: z.ZodOptional<z.ZodBoolean>;
|
|
511
511
|
requiresMistralToolIds: z.ZodOptional<z.ZodBoolean>;
|
|
512
512
|
thinkingFormat: z.ZodOptional<z.ZodEnum<{
|
|
513
|
+
zai: "zai";
|
|
513
514
|
deepseek: "deepseek";
|
|
514
515
|
openai: "openai";
|
|
515
516
|
"ant-ling": "ant-ling";
|
|
516
517
|
openrouter: "openrouter";
|
|
517
|
-
zai: "zai";
|
|
518
518
|
together: "together";
|
|
519
519
|
baseten: "baseten";
|
|
520
|
+
dashscope: "dashscope";
|
|
520
521
|
qwen: "qwen";
|
|
521
|
-
"chat-template": "chat-template";
|
|
522
522
|
"qwen-chat-template": "qwen-chat-template";
|
|
523
|
+
"chat-template": "chat-template";
|
|
523
524
|
"string-thinking": "string-thinking";
|
|
524
|
-
dashscope: "dashscope";
|
|
525
525
|
}>>;
|
|
526
526
|
openRouterRouting: z.ZodOptional<z.ZodObject<{
|
|
527
527
|
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -616,18 +616,18 @@ export declare const ProviderConfigSchema: z.ZodObject<{
|
|
|
616
616
|
requiresThinkingAsText: z.ZodOptional<z.ZodBoolean>;
|
|
617
617
|
requiresMistralToolIds: z.ZodOptional<z.ZodBoolean>;
|
|
618
618
|
thinkingFormat: z.ZodOptional<z.ZodEnum<{
|
|
619
|
+
zai: "zai";
|
|
619
620
|
deepseek: "deepseek";
|
|
620
621
|
openai: "openai";
|
|
621
622
|
"ant-ling": "ant-ling";
|
|
622
623
|
openrouter: "openrouter";
|
|
623
|
-
zai: "zai";
|
|
624
624
|
together: "together";
|
|
625
625
|
baseten: "baseten";
|
|
626
|
+
dashscope: "dashscope";
|
|
626
627
|
qwen: "qwen";
|
|
627
|
-
"chat-template": "chat-template";
|
|
628
628
|
"qwen-chat-template": "qwen-chat-template";
|
|
629
|
+
"chat-template": "chat-template";
|
|
629
630
|
"string-thinking": "string-thinking";
|
|
630
|
-
dashscope: "dashscope";
|
|
631
631
|
}>>;
|
|
632
632
|
openRouterRouting: z.ZodOptional<z.ZodObject<{
|
|
633
633
|
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -696,18 +696,18 @@ export declare const ProviderConfigSchema: z.ZodObject<{
|
|
|
696
696
|
requiresThinkingAsText: z.ZodOptional<z.ZodBoolean>;
|
|
697
697
|
requiresMistralToolIds: z.ZodOptional<z.ZodBoolean>;
|
|
698
698
|
thinkingFormat: z.ZodOptional<z.ZodEnum<{
|
|
699
|
+
zai: "zai";
|
|
699
700
|
deepseek: "deepseek";
|
|
700
701
|
openai: "openai";
|
|
701
702
|
"ant-ling": "ant-ling";
|
|
702
703
|
openrouter: "openrouter";
|
|
703
|
-
zai: "zai";
|
|
704
704
|
together: "together";
|
|
705
705
|
baseten: "baseten";
|
|
706
|
+
dashscope: "dashscope";
|
|
706
707
|
qwen: "qwen";
|
|
707
|
-
"chat-template": "chat-template";
|
|
708
708
|
"qwen-chat-template": "qwen-chat-template";
|
|
709
|
+
"chat-template": "chat-template";
|
|
709
710
|
"string-thinking": "string-thinking";
|
|
710
|
-
dashscope: "dashscope";
|
|
711
711
|
}>>;
|
|
712
712
|
openRouterRouting: z.ZodOptional<z.ZodObject<{
|
|
713
713
|
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -917,18 +917,18 @@ export declare const ModelsJsonSchema: z.ZodObject<{
|
|
|
917
917
|
requiresThinkingAsText: z.ZodOptional<z.ZodBoolean>;
|
|
918
918
|
requiresMistralToolIds: z.ZodOptional<z.ZodBoolean>;
|
|
919
919
|
thinkingFormat: z.ZodOptional<z.ZodEnum<{
|
|
920
|
+
zai: "zai";
|
|
920
921
|
deepseek: "deepseek";
|
|
921
922
|
openai: "openai";
|
|
922
923
|
"ant-ling": "ant-ling";
|
|
923
924
|
openrouter: "openrouter";
|
|
924
|
-
zai: "zai";
|
|
925
925
|
together: "together";
|
|
926
926
|
baseten: "baseten";
|
|
927
|
+
dashscope: "dashscope";
|
|
927
928
|
qwen: "qwen";
|
|
928
|
-
"chat-template": "chat-template";
|
|
929
929
|
"qwen-chat-template": "qwen-chat-template";
|
|
930
|
+
"chat-template": "chat-template";
|
|
930
931
|
"string-thinking": "string-thinking";
|
|
931
|
-
dashscope: "dashscope";
|
|
932
932
|
}>>;
|
|
933
933
|
openRouterRouting: z.ZodOptional<z.ZodObject<{
|
|
934
934
|
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -997,18 +997,18 @@ export declare const ModelsJsonSchema: z.ZodObject<{
|
|
|
997
997
|
requiresThinkingAsText: z.ZodOptional<z.ZodBoolean>;
|
|
998
998
|
requiresMistralToolIds: z.ZodOptional<z.ZodBoolean>;
|
|
999
999
|
thinkingFormat: z.ZodOptional<z.ZodEnum<{
|
|
1000
|
+
zai: "zai";
|
|
1000
1001
|
deepseek: "deepseek";
|
|
1001
1002
|
openai: "openai";
|
|
1002
1003
|
"ant-ling": "ant-ling";
|
|
1003
1004
|
openrouter: "openrouter";
|
|
1004
|
-
zai: "zai";
|
|
1005
1005
|
together: "together";
|
|
1006
1006
|
baseten: "baseten";
|
|
1007
|
+
dashscope: "dashscope";
|
|
1007
1008
|
qwen: "qwen";
|
|
1008
|
-
"chat-template": "chat-template";
|
|
1009
1009
|
"qwen-chat-template": "qwen-chat-template";
|
|
1010
|
+
"chat-template": "chat-template";
|
|
1010
1011
|
"string-thinking": "string-thinking";
|
|
1011
|
-
dashscope: "dashscope";
|
|
1012
1012
|
}>>;
|
|
1013
1013
|
openRouterRouting: z.ZodOptional<z.ZodObject<{
|
|
1014
1014
|
only: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -9,7 +9,7 @@ import { DESKTOP_OPERATION_STATUS_INPUT_SCHEMA, DESKTOP_OPERATION_STATUS_OUTPUT_
|
|
|
9
9
|
import { DESKTOP_WORKSPACE_ACTIONS, desktopWorkspaceDescriptor } from "../../packages/endpoint-tools-protocol/src/workspace.js";
|
|
10
10
|
import { DEVICE_POWER_OUTPUT_SCHEMA, DEVICE_STATE_OUTPUT_SCHEMA, ENDPOINT_TEXT_OUTPUT_SCHEMA, canonicalJson, init_src } from "../../packages/endpoint-tools-protocol/src/index.js";
|
|
11
11
|
import { COMPUTER_INPUT_SCHEMA, COMPUTER_OUTPUT_SCHEMA, REMOTE_COMPUTER_CONTROL_TOOL, init_src as init_src$1 } from "../../packages/computer-control-contract/src/index.js";
|
|
12
|
-
import { BROWSER_CONTROL_ENDPOINT_DESCRIPTOR, BROWSER_CONTROL_ENDPOINT_INPUT_SCHEMA, BROWSER_CONTROL_ENDPOINT_OUTPUT_SCHEMA
|
|
12
|
+
import { BROWSER_CONTROL_ENDPOINT_DESCRIPTOR, BROWSER_CONTROL_ENDPOINT_INPUT_SCHEMA, BROWSER_CONTROL_ENDPOINT_OUTPUT_SCHEMA } from "../../packages/browser-control-contract/src/index.js";
|
|
13
13
|
import { REMOTE_BROWSER_CONTROL_TOOL, REMOTE_BROWSER_DESCRIPTOR } from "../../packages/browser-control-contract/src/remote.js";
|
|
14
14
|
import Ajv2020 from "ajv/dist/2020.js";
|
|
15
15
|
//#region src/endpoint-tools/policy.ts
|
|
@@ -77,8 +77,7 @@ const POLICY_BY_TOOL = {
|
|
|
77
77
|
"mobile.device.get_info": contract("public.background-read", ENDPOINT_TEXT_OUTPUT_SCHEMA, ["text"], []),
|
|
78
78
|
"mobile.clipboard.write": contract("user.foreground-write", ENDPOINT_TEXT_OUTPUT_SCHEMA, ["text"], ["clipboard-write"]),
|
|
79
79
|
"mobile.app.open_url": contract("user.foreground-write", ENDPOINT_TEXT_OUTPUT_SCHEMA, ["text"], ["open-external-url"]),
|
|
80
|
-
"browser.control": contract("browser.control", BROWSER_CONTROL_ENDPOINT_OUTPUT_SCHEMA, ["json"], ["browser-control"], BROWSER_CONTROL_ENDPOINT_INPUT_SCHEMA)
|
|
81
|
-
"browser.recording": contract("browser.control", BROWSER_CONTROL_ENDPOINT_OUTPUT_SCHEMA, ["json"], ["browser-control"], BROWSER_RECORDING_ENDPOINT_INPUT_SCHEMA)
|
|
80
|
+
"browser.control": contract("browser.control", BROWSER_CONTROL_ENDPOINT_OUTPUT_SCHEMA, ["json"], ["browser-control"], BROWSER_CONTROL_ENDPOINT_INPUT_SCHEMA)
|
|
82
81
|
};
|
|
83
82
|
var EndpointToolPolicy = class {
|
|
84
83
|
ajv = new Ajv2020({
|
|
@@ -128,7 +127,7 @@ var EndpointToolPolicy = class {
|
|
|
128
127
|
return;
|
|
129
128
|
case "browser.control":
|
|
130
129
|
this.assertFields(descriptor, "write", "never", false, "personal");
|
|
131
|
-
if (descriptor.requiredPermissions.length !== 1 || descriptor.requiredPermissions[0] !== "browser-control" || descriptor.timeoutMs !== 12e4 || descriptor.maxConcurrency !==
|
|
130
|
+
if (descriptor.requiredPermissions.length !== 1 || descriptor.requiredPermissions[0] !== "browser-control" || descriptor.timeoutMs !== 12e4 || descriptor.maxConcurrency !== BROWSER_CONTROL_ENDPOINT_DESCRIPTOR.maxConcurrency || descriptor.supportsCancellation !== true || descriptor.idempotent !== false) throw new EndpointToolPolicyError(`Browser tool ${descriptor.name} violates its trusted policy`);
|
|
132
131
|
return;
|
|
133
132
|
case "desktop.terminal-scoped":
|
|
134
133
|
this.assertFields(descriptor, "write", "never", true, "personal");
|
|
@@ -7,8 +7,8 @@ import { DEFAULT_SECURITY_CONFIG, checkExtensionDirSafety, checkExtensionPathSaf
|
|
|
7
7
|
import { SlotRegistry, getSlotRegistry, registerSlotType } from "../slots.js";
|
|
8
8
|
import { ExtensionDiagnostics, ExtensionLoaderCacheImpl, getExtensionCache, getExtensionDiagnostics } from "../diagnostics.js";
|
|
9
9
|
import { ExtensionHookRunner, createHookContext, isHookEvent } from "../hooks.js";
|
|
10
|
-
import { defineChannelPluginEntry } from "./channel-entry.js";
|
|
11
10
|
import { registerExtensionCliProgram } from "./channel-helpers.js";
|
|
11
|
+
import { defineChannelPluginEntry } from "./channel-entry.js";
|
|
12
12
|
import { lazyFunction, lazyModule } from "./lazy.js";
|
|
13
13
|
import { createMockExtensionApi, createTestGateway } from "./testing.js";
|
|
14
14
|
//#region src/extensions/sdk/index.ts
|
|
@@ -192,22 +192,6 @@ const AUTHENTICATED_LAZY_ROUTE_BUNDLES = [
|
|
|
192
192
|
return { register: registerBrowserInstallRoutes };
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
-
{
|
|
196
|
-
id: "browser-recordings",
|
|
197
|
-
match: (path) => path.startsWith("/api/browser/recordings/"),
|
|
198
|
-
load: async () => {
|
|
199
|
-
const { registerBrowserRecordingRoutes } = await import("./browser-recordings.js");
|
|
200
|
-
return { register: registerBrowserRecordingRoutes };
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
id: "browser-automations",
|
|
205
|
-
match: (path) => startsWithAny(path, ["/api/browser/automations", "/api/browser/automation-runs"]),
|
|
206
|
-
load: async () => {
|
|
207
|
-
const { registerBrowserAutomationRoutes } = await import("./browser-automations.js");
|
|
208
|
-
return { register: registerBrowserAutomationRoutes };
|
|
209
|
-
}
|
|
210
|
-
},
|
|
211
195
|
{
|
|
212
196
|
id: "browser-setup",
|
|
213
197
|
match: (path) => path === "/api/browser/setup",
|
|
@@ -335,7 +335,7 @@ function registerProjectsRoutes(authenticated, deps) {
|
|
|
335
335
|
priority: body.priority === "low" || body.priority === "normal" || body.priority === "high" ? body.priority : "high",
|
|
336
336
|
contract: {
|
|
337
337
|
...contract,
|
|
338
|
-
acceptancePolicy: "
|
|
338
|
+
acceptancePolicy: "verified_auto",
|
|
339
339
|
outputDestinations: []
|
|
340
340
|
},
|
|
341
341
|
dependencies: [],
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { getSqliteDatabase, init_transaction } from "../../storage/sqlite/transaction.js";
|
|
2
|
+
import { TASK_RESULT_DELIVERY_TYPE } from "../../../packages/gateway-contract/src/task-result-delivery.js";
|
|
3
|
+
import { PERSONAL_PROACTIVE_MESSAGE_TYPE } from "../../../packages/gateway-contract/src/personal-proactivity.js";
|
|
4
|
+
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
2
5
|
import { getSessionInputState, init_session_input_repository } from "../../storage/sqlite/session-input-repository.js";
|
|
3
|
-
import { buildSessionContextForLlm, init_session_context_for_llm } from "../../session/session-context-for-llm.js";
|
|
6
|
+
import { buildSessionContextForLlm, buildSessionDisplayMessages, init_session_context_for_llm, isTranscriptCustomMessageEntry } from "../../session/session-context-for-llm.js";
|
|
4
7
|
import { getActiveConnectionWait, init_connection_wait_repository } from "../../storage/sqlite/connection-wait-repository.js";
|
|
5
8
|
import { getSessionMetadata } from "../../storage/sqlite/session-read-repository.js";
|
|
6
9
|
import { getCurrentTranscriptId, init_session_repository } from "../../storage/sqlite/session-repository.js";
|
|
7
10
|
import { getActiveClarification } from "../../storage/sqlite/clarification-wait-repository.js";
|
|
8
11
|
import { createHash } from "node:crypto";
|
|
9
12
|
//#region src/gateway/next-turn-suggestions/snapshot.ts
|
|
13
|
+
init_src();
|
|
10
14
|
init_session_repository();
|
|
11
15
|
init_transaction();
|
|
12
16
|
init_session_input_repository();
|
|
@@ -33,7 +37,11 @@ function readSuggestionSnapshot(conversationId) {
|
|
|
33
37
|
if (origin.type !== "endpoint" && !(origin.type === "channel" && origin.channel === "webchat")) return null;
|
|
34
38
|
const cursor = db.prepare("SELECT COALESCE(MAX(seq), 0) AS seq FROM transcript_entries WHERE transcript_id = ?").get(transcriptId);
|
|
35
39
|
const messages = buildSessionContextForLlm(db.prepare(`SELECT payload_json FROM transcript_entries WHERE transcript_id = ?
|
|
36
|
-
AND entry_kind = 'message' AND role IN ('user','assistant')
|
|
40
|
+
AND (entry_kind = 'message' AND role IN ('user','assistant')
|
|
41
|
+
OR json_extract(payload_json, '$.customType') IN (?, ?)) ORDER BY seq DESC LIMIT 12`).all(transcriptId, TASK_RESULT_DELIVERY_TYPE, PERSONAL_PROACTIVE_MESSAGE_TYPE).reverse().flatMap((row) => {
|
|
42
|
+
const stored = JSON.parse(row.payload_json);
|
|
43
|
+
return isTranscriptCustomMessageEntry(stored) ? buildSessionDisplayMessages([stored]) : [stored];
|
|
44
|
+
})).flatMap((message) => {
|
|
37
45
|
if (message.role !== "user" && message.role !== "assistant") return [];
|
|
38
46
|
const text = typeof message.content === "string" ? message.content : message.content.flatMap((block) => block.type === "text" ? [block.text] : []).join("\n");
|
|
39
47
|
return text.trim() ? [{
|
|
@@ -59,7 +67,7 @@ function suggestionSnapshotKey(snapshot, locale, modelRef) {
|
|
|
59
67
|
...identity,
|
|
60
68
|
locale,
|
|
61
69
|
modelRef,
|
|
62
|
-
version:
|
|
70
|
+
version: 2
|
|
63
71
|
})).digest("hex");
|
|
64
72
|
}
|
|
65
73
|
//#endregion
|
|
@@ -36,8 +36,6 @@ function requiredGatewayScope(method, path) {
|
|
|
36
36
|
if (path === "/api/user-context/environment" || path.startsWith("/api/user-context/environment/")) return "device.self";
|
|
37
37
|
if (path === "/api/personal-agent/activity") return "tasks.read";
|
|
38
38
|
if (path === "/api/personal-agent" || path.startsWith("/api/personal-agent/")) return methodScope(method, "sessions.read", "sessions.write");
|
|
39
|
-
if (path.startsWith("/api/browser/recordings/")) return "device.self";
|
|
40
|
-
if (path.startsWith("/api/browser/automations") || path.startsWith("/api/browser/automation-runs")) return methodScope(method, "automations.read", "automations.write");
|
|
41
39
|
if (path.startsWith("/api/browser/tab-bindings")) return methodScope(method, "sessions.read", "sessions.write");
|
|
42
40
|
if (method === "GET" && path === "/api/connectors/approvals") return "sessions.read";
|
|
43
41
|
if (method === "POST" && path === "/api/connectors/approvals/respond") return "sessions.write";
|
|
@@ -19,7 +19,6 @@ import { ProjectService } from '../projects/index.js';
|
|
|
19
19
|
import { LocalAppService } from '../local-apps/index.js';
|
|
20
20
|
import { ChatPreviewService } from '../chat-previews/index.js';
|
|
21
21
|
import { TaskConversationRepository } from '../tasks/task-conversation-repository.js';
|
|
22
|
-
import { type BrowserAutomationService } from '../browser/automations/index.js';
|
|
23
22
|
import { GatewaySessionsApi } from './service/sessions-api.js';
|
|
24
23
|
import { GatewayMarketplaceService } from './service/marketplace-service.js';
|
|
25
24
|
import { GatewayAgentRunner } from './service/agent-runner.js';
|
|
@@ -42,7 +41,6 @@ export declare class GatewayService {
|
|
|
42
41
|
private _agentService;
|
|
43
42
|
private channelManager;
|
|
44
43
|
private automationService;
|
|
45
|
-
private browserAutomationService;
|
|
46
44
|
private notesService;
|
|
47
45
|
private extensionLoader;
|
|
48
46
|
private extensionMetadataSnapshot;
|
|
@@ -68,7 +66,6 @@ export declare class GatewayService {
|
|
|
68
66
|
get phoneSetup(): import("../phone/setup/service.js").PhoneSetupService;
|
|
69
67
|
private _browserSetup?;
|
|
70
68
|
get browserSetup(): BrowserSetupService;
|
|
71
|
-
get browserAutomations(): BrowserAutomationService;
|
|
72
69
|
private stopGatewayUpdateCheck;
|
|
73
70
|
/** When set (e.g. by `GatewayServer`), `triggerGatewayProcessRestart` can stop HTTP then exit. */
|
|
74
71
|
private gatewayShutdownForRestart;
|
|
@@ -82,8 +82,6 @@ import "../infra/bus/index.js";
|
|
|
82
82
|
import { collectMediaUrisFromMessages, deleteMediaUris } from "../media/session-references.js";
|
|
83
83
|
import { AgentService } from "../agent/service.js";
|
|
84
84
|
import { bootstrapApplicationStateSync } from "../bootstrap/application-state.js";
|
|
85
|
-
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
86
|
-
import { ChannelManager } from "../channels/manager.js";
|
|
87
85
|
import { ChatPreviewService } from "../chat-previews/service.js";
|
|
88
86
|
import "../chat-previews/index.js";
|
|
89
87
|
import { configureGatewayHttpProxy } from "../infra/http-proxy-env.js";
|
|
@@ -106,6 +104,7 @@ import "../endpoint-tools/index.js";
|
|
|
106
104
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
107
105
|
import { prepareAutomationAgentSession } from "./automation-agent-session.js";
|
|
108
106
|
import { deliverAutomationCompletion } from "./automation-completion-delivery.js";
|
|
107
|
+
import { registerClarificationChannelRuntime } from "./clarify-runtime.js";
|
|
109
108
|
import { stopTailscaleExposure } from "./tailscale-lifecycle.js";
|
|
110
109
|
import { getGatewayFileSpaceService } from "./file-space-service.js";
|
|
111
110
|
import { reconcileHomeIntelligenceAutomation } from "./home-intelligence-automation-reconciler.js";
|
|
@@ -124,6 +123,7 @@ import { WorkDiscoveryService } from "../work-discovery/service.js";
|
|
|
124
123
|
import { buildVoiceMemoryContext } from "../voice/realtime/memory-context.js";
|
|
125
124
|
import { buildVoicePersonaContext } from "../voice/realtime/persona-context.js";
|
|
126
125
|
import { voiceMemoryBudget, voicePersonaBudget } from "../voice/realtime/conversation-context.js";
|
|
126
|
+
import { ChannelManager } from "../channels/manager.js";
|
|
127
127
|
import "../notes/index.js";
|
|
128
128
|
import { EphemeralSideChatManager } from "./side-chat/manager.js";
|
|
129
129
|
import { SideChatRunService } from "./side-chat/run-service.js";
|
|
@@ -141,8 +141,6 @@ import { NotificationService } from "../notifications/service.js";
|
|
|
141
141
|
import "../local-apps/index.js";
|
|
142
142
|
import { TaskAllocationDispatcher } from "../tasks/task-allocation-service.js";
|
|
143
143
|
import { TaskResultDeliveryService } from "../tasks/task-result-delivery-service.js";
|
|
144
|
-
import { createRuntimeBrowserAutomationService } from "../browser/automations/runtime-service.js";
|
|
145
|
-
import "../browser/automations/index.js";
|
|
146
144
|
import { scheduleGatewayUpdateCheck } from "../infra/update-startup.js";
|
|
147
145
|
import { resolveChannelConnectDeferSet } from "./resolve-channel-connect-defer.js";
|
|
148
146
|
import { restartGatewayProcessWithFreshPid } from "./respawn.js";
|
|
@@ -196,7 +194,6 @@ var GatewayService = class {
|
|
|
196
194
|
_agentService = null;
|
|
197
195
|
channelManager;
|
|
198
196
|
automationService;
|
|
199
|
-
browserAutomationService = null;
|
|
200
197
|
notesService;
|
|
201
198
|
extensionLoader = null;
|
|
202
199
|
extensionMetadataSnapshot = null;
|
|
@@ -384,14 +381,6 @@ var GatewayService = class {
|
|
|
384
381
|
open: async (action) => (await import("../browser/providers/browser-ext-install.js")).openBrowserExtensionInstallUi({ action })
|
|
385
382
|
});
|
|
386
383
|
}
|
|
387
|
-
get browserAutomations() {
|
|
388
|
-
if (!this.browserAutomationService) this.browserAutomationService = createRuntimeBrowserAutomationService({
|
|
389
|
-
getConfig: () => this.config,
|
|
390
|
-
endpointTools: this.endpointTools,
|
|
391
|
-
emit: (type, payload) => this.emit(type, payload)
|
|
392
|
-
});
|
|
393
|
-
return this.browserAutomationService;
|
|
394
|
-
}
|
|
395
384
|
stopGatewayUpdateCheck = null;
|
|
396
385
|
/** When set (e.g. by `GatewayServer`), `triggerGatewayProcessRestart` can stop HTTP then exit. */
|
|
397
386
|
gatewayShutdownForRestart = null;
|
|
@@ -765,7 +754,6 @@ var GatewayService = class {
|
|
|
765
754
|
extensionRegistry: this.extensionLoader?.getRegistry(),
|
|
766
755
|
endpointTools: this.endpointTools,
|
|
767
756
|
getAutomationService: () => this.automationService,
|
|
768
|
-
getBrowserAutomationService: () => this.browserAutomations,
|
|
769
757
|
getBrowserSetupService: () => this.browserSetup,
|
|
770
758
|
getMcpSetupService: () => this.mcpSetup,
|
|
771
759
|
getPhoneSetupService: () => this.phoneSetup,
|
|
@@ -815,7 +803,6 @@ var GatewayService = class {
|
|
|
815
803
|
getDefaultAgentId: () => getDefaultAgentId(),
|
|
816
804
|
isAgentAvailable: (id) => listAgentEntries().some((agent) => agent.id === id && agent.enabled !== false),
|
|
817
805
|
prepareAgentSession: (input) => prepareAutomationAgentSession(this.sessionIndex.getStore(), this.projects, input),
|
|
818
|
-
browserAutomationService: this.browserAutomations,
|
|
819
806
|
executeTaskCommand: ({ taskId, idempotencyKey, command, triggerEvent }) => {
|
|
820
807
|
const task = new TaskRepository().get(taskId);
|
|
821
808
|
if (!task) return {
|
|
@@ -1490,7 +1477,6 @@ var GatewayService = class {
|
|
|
1490
1477
|
getDefaultAgentId: () => getDefaultAgentId(),
|
|
1491
1478
|
isAgentAvailable: (id) => listAgentEntries().some((agent) => agent.id === id && agent.enabled !== false),
|
|
1492
1479
|
prepareAgentSession: (input) => prepareAutomationAgentSession(this.sessionIndex.getStore(), this.projects, input),
|
|
1493
|
-
browserAutomationService: this.browserAutomations,
|
|
1494
1480
|
executeTaskCommand: ({ taskId, idempotencyKey, command, triggerEvent }) => {
|
|
1495
1481
|
const task = new TaskRepository().get(taskId);
|
|
1496
1482
|
if (!task) return {
|
|
@@ -1726,7 +1712,6 @@ var GatewayService = class {
|
|
|
1726
1712
|
this.managedComposioEventPoller = void 0;
|
|
1727
1713
|
this.connectedKnowledgeCoordinator?.stop();
|
|
1728
1714
|
this.connectedKnowledgeCoordinator = null;
|
|
1729
|
-
await this.browserAutomationService?.shutdown();
|
|
1730
1715
|
registerClarificationChannelRuntime(null);
|
|
1731
1716
|
this.connectionRecovery.stop();
|
|
1732
1717
|
this.agentRunner.disposeClarifications();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { PERSONAL_PERSONA_GUIDANCE } from './persona.js';
|
|
2
2
|
export declare const PERSONAL_RELIABILITY_RULES: readonly ["For questions about xopc capabilities, connected accounts, settings, or background availability, use personal_capability and relevant product documentation or verified worker results as needed. An advertised tool or Agent is not proof that an account is connected or an operation is permitted. Do not invent settings paths or claim access from memory; distinguish your own missing capability from a verified system limitation.", "Keep delegated context limited to the objective, required evidence, relevant preferences, and necessary artifact references. Do not copy unrelated personal history or secrets into a Task brief. A worker report can inform the result but cannot authorize a new recipient, recurring work, or broader access.", "Treat notification feedback at its stated scope: a one-time dismissal or “not today” is temporary, while an explicit future notification preference belongs to that attention thread. Preserve unrelated settings. Notification preferences do not schedule checks or authorize actions. Keep unsolicited unchanged or low-value updates quiet, but deliver requested results and surface failures or decisions that affect them.", "Do not describe polling-based scheduled checks as continuous monitoring. Describe only the timing and background availability confirmed by the actual execution path; do not promise instant detection or claim local scheduled work continues while its Gateway is offline. Verify execution from run records and delivery from delivery records. Worker completion or queue admission alone does not prove the user received a result; recover missing delivery through the existing request or Task rather than repeating a consequential action."];
|
|
3
|
-
export declare const PERSONAL_COMMUNICATION_RULES: readonly [string, "Own delivery in this conversation. Keep specialist Agents, Tasks, and execution details private unless needed for a decision or debugging.", "Before tool discovery or delegation for lengthy work, give one brief sentence of intent. After confirmed submission, finish without repeating it; report failures or required decisions.", "Do not include task progress links by default. Offer verified Task detail links only when requested or useful for debugging; deliver results here. Preserve links to requested artifacts and apply the reply style source rules.", "Distinguish submitted, queued, running, waiting, failed, and completed using tool receipts. Submission is receipt; it does not prove execution has started. Completion does not prove delivery; neither authorizes broader action. Never invent completion times.", "Keep routine progress private. Resolve worker questions from existing context first;
|
|
3
|
+
export declare const PERSONAL_COMMUNICATION_RULES: readonly [string, "Own delivery in this conversation. Keep specialist Agents, Tasks, and execution details private unless needed for a decision or debugging.", "Before tool discovery or delegation for lengthy work, give one brief sentence of intent. After confirmed submission, finish without repeating it; report final failures, significant delays or required user decisions.", "Do not include task progress links by default. Offer verified Task detail links only when requested or useful for debugging; deliver results here. Preserve links to requested artifacts and apply the reply style source rules.", "Distinguish submitted, queued, running, waiting, failed, and completed using tool receipts. Submission is receipt; it does not prove execution has started. Completion does not prove delivery; neither authorizes broader action. Never invent completion times.", "Keep routine progress private. Resolve worker questions from existing context first; silently recover internal failures within existing authorization. Surface final outcomes, material partial failures, significant delays supported by actual timing evidence, or decisions only the user can make. Do not announce retries or successful recovery unless asked; return NO_REPLY for an internal update with no remaining user-facing impact.", "Hide submission, routing, and queue/start narration. Use the task card for routine status.", "Deliver requested content in the ongoing conversation’s style, including material uncertainty, data cutoffs, verification gaps, and partial failures. Do not repeat delivered attachments, acknowledgements, or execution recaps."];
|
|
4
4
|
export { PERSONAL_WORKER_RESULT_GUIDANCE } from '@xopcai/gateway-contract';
|
|
@@ -12,10 +12,10 @@ const PERSONAL_RELIABILITY_RULES = [
|
|
|
12
12
|
const PERSONAL_COMMUNICATION_RULES = [
|
|
13
13
|
PERSONAL_PERSONA_GUIDANCE,
|
|
14
14
|
"Own delivery in this conversation. Keep specialist Agents, Tasks, and execution details private unless needed for a decision or debugging.",
|
|
15
|
-
"Before tool discovery or delegation for lengthy work, give one brief sentence of intent. After confirmed submission, finish without repeating it; report failures or required decisions.",
|
|
15
|
+
"Before tool discovery or delegation for lengthy work, give one brief sentence of intent. After confirmed submission, finish without repeating it; report final failures, significant delays or required user decisions.",
|
|
16
16
|
"Do not include task progress links by default. Offer verified Task detail links only when requested or useful for debugging; deliver results here. Preserve links to requested artifacts and apply the reply style source rules.",
|
|
17
17
|
"Distinguish submitted, queued, running, waiting, failed, and completed using tool receipts. Submission is receipt; it does not prove execution has started. Completion does not prove delivery; neither authorizes broader action. Never invent completion times.",
|
|
18
|
-
"Keep routine progress private. Resolve worker questions from existing context first;
|
|
18
|
+
"Keep routine progress private. Resolve worker questions from existing context first; silently recover internal failures within existing authorization. Surface final outcomes, material partial failures, significant delays supported by actual timing evidence, or decisions only the user can make. Do not announce retries or successful recovery unless asked; return NO_REPLY for an internal update with no remaining user-facing impact.",
|
|
19
19
|
"Hide submission, routing, and queue/start narration. Use the task card for routine status.",
|
|
20
20
|
"Deliver requested content in the ongoing conversation’s style, including material uncertainty, data cutoffs, verification gaps, and partial failures. Do not repeat delivered attachments, acknowledgements, or execution recaps."
|
|
21
21
|
];
|
|
@@ -4,7 +4,7 @@ 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 = [
|
|
7
|
-
"Answer directly when your capabilities suffice. Otherwise call personal_task(command=\"submit\") with a short objective. For a self-contained current request send {command:\"submit\", objective:\"short outcome\", useOriginalRequest:true}; command is required. With this mode, the host copies its entire stored text, including exact constraints. Preserve sourceRefs and explicitly requested Agent/Skills. Use a concise complete description instead when earlier conversation must be synthesized. Submit before reading materials. The background Task Router selects and starts the executor. After the tool succeeds, reply only with a short
|
|
7
|
+
"Answer directly when your capabilities suffice. Otherwise call personal_task(command=\"submit\") with a short objective. For a self-contained current request send {command:\"submit\", objective:\"short outcome\", useOriginalRequest:true}; command is required. With this mode, the host copies its entire stored text, including exact constraints. Preserve sourceRefs and explicitly requested Agent/Skills. Use a concise complete description instead when earlier conversation must be synthesized. Submit before reading materials. The background Task Router selects and starts the executor. After the tool succeeds, reply only with a short first-person acknowledgement such as \"I will handle this.\" in the conversation language, then finish. Keep internal dispatch private; do not claim execution is running merely because submission succeeded, and promise an update only when the confirmed delivery path supports it. Do not restate any task details, files, requirements or acceptance criteria, and do not wait for the worker. Remain available for conversation.",
|
|
8
8
|
"Reuse the existing Task. Inspect get/list only when status is needed; updates and results arrive automatically. Read full questions with get/entry (follow nextBodyOffset); use collaboration/afterSequence for older messages. For running work send {command:\"instruct\", taskId, instruction} directly for new direction; no baseline lookup is needed. Use revise only after completion with an actual returned result baseline; a missing baseline means use instruct, never fabricate baselineResultId/baselineVersion. Use answer with the exact questionId for a worker question, resolving it from the brief or conversation first. If you asked the user a worker question, deliver their next answer to that question on this same Task. Do not just acknowledge it in chat. Report saved, delivered and executor-confirmed separately; do not wait or poll for acknowledgement. The final result must reflect the latest direction and disclose anything unconfirmed or unmet. retry_allocation retries selection before execution; inspect previous effects before retrying an execution.",
|
|
9
9
|
"For current news or other live facts, require dated sources in the brief. For recurring work, specify the required automation capability. Report actual allocation, execution and verification states; do not treat submission as execution or a successful run as accepted completion."
|
|
10
10
|
];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const PERSONAL_REPLY_STYLE_RULES: readonly ["Be concise by default and answer narrow follow-ups narrowly. Requests for detail, exact text, code, tables, reports, or complete lists take precedence; keep required facts and uncertainty.", "Use short paragraphs and useful structure. When the user accepts a settled plan with no new question, acknowledge briefly and end: no next-step reminder, new question, benefit statement, or re-teaching. Answer new substantive requests normally.", "Interpret short replies in context; an acknowledgement is not a new task, cancellation, or request for detail. Continue accepted offers and honor stop requests.", "Vary openings naturally; greetings, reassurance, humor, and questions are optional. Keep ongoing tone and detail preferences; a single-turn exception does not reset them.", "Keep requested content, limits, and partial failures visible. Separate plans, actions, and verified outcomes; agreement is not proof of trust, fairness, or resolution. Cite sources when requested or necessary.", "Use supplied facts in drafts and roleplay. Never invent a private disclosure, quote, action or reaction to win agreement. Requested fiction may add details, but not contradict given facts. Speak for yourself; laughter does not prove feelings. Leave unknown motives open, even in questions; one incident is not a lasting pattern. Drop corrected readings. Respond in your current role. Give requested wording or advice. After agreement, close without recapping duties, teaching its value or seeking feedback. Explain only live confusion or risk."];
|
|
2
|
-
export declare const PERSONAL_REPLY_EXAMPLES = "Examples; use evidence.\n<examples>\n<example>Context: Recipient unclear. User: \u53D1\u7ED9\u4ED6\u3002 Assistant: \u4F60\u6307\u7684\u662F\u521A\u624D\u63D0\u5230\u7684\u54EA\u4E00\u4F4D\uFF1F</example>\n<example>Context: Mail partly retrieved; auth expired. Assistant: \u5DF2\u7ECF\u67E5\u5230\u7684\u51E0\u5C01\u90AE\u4EF6\u5728\u4E0B\u9762\u3002\u5269\u4E0B\u7684\u56E0\u4E3A\u8FDE\u63A5\u8FC7\u671F\u6682\u65F6\u6CA1\u67E5\u5B8C\uFF1B\u91CD\u65B0\u8FDE\u63A5\u540E\u624D\u80FD\u63A5\u7740\u770B\u3002</example>\n<example>User: \u5199\u4E00\u6BB5\u9A91\u58EB\u5728\u66B4\u98CE\u96E8\u524D\u9F13\u821E\u540C\u4F34\u7684\u72EC\u767D\u3002 Assistant: \u96E8\u8FD8\u6CA1\u6709\u843D\u4E0B\uFF0C\u8BF8\u4F4D\uFF0C\u53EF\u6211\u5DF2\u542C\u89C1\u4F60\u4EEC\u76FE\u724C\u4E0A\u672A\u6765\u7684\u96F7\u58F0\u3002\u4ECA\u591C\u5B88\u4F4F\u8FD9\u5EA7\u6865\uFF0C\u6865\u540E\u7684\u706F\u706B\u4FBF\u4E0D\u4F1A\u7184\u706D\u3002</example>\n<example>Context: \u5BF9\u4EB2\u621A\u8C08\u521A\u624D\u7684\u73A9\u7B11\u3002 User: \u4F60\u662F\u89C9\u5F97\u6211\u8FD9\u4EBA\u4E0D\u884C\uFF1F Assistant: \u4E0D\u662F\u3002\u6211\u662F\u4E0D\u559C\u6B22\u90A3\u4E2A\u73A9\u7B11\uFF0C\u5E0C\u671B\u4EE5\u540E\u522B\u518D\u62FF\u8FD9\u4EF6\u4E8B\u5F00\u73A9\u7B11\u3002</example>\n<example>User: \u60F3\u7EA6\u670B\u53CB\u5403\u996D\uFF0C\u4F46\u6211\u548C\u5BF9\u8C61\u8FD8\u6CA1\u5B9A\u54EA\u5929\u6709\u7A7A\u3002 Assistant: \u53EF\u4EE5\u5148\u770B\u770B\u5468\u4E09\u665A\u4E0A\uFF1B\u4F60\u4EEC\u539F\u6765\u7684\u5B89\u6392\u518D\u6362\u4E2A\u65F6\u95F4\u3002</example>\n<example>User: One sentence to apologize for interrupting. Assistant: \u201CI cut you off earlier. I'm sorry\u2014I'd like to hear the rest.\u201D</example>\n<example>Context: Plan accepted. User: \u597D\uFF0C\u90A3\u6211\u5468\u4E94\u628A\u6750\u6599\u53D1\u8FC7\u53BB\u3002 Assistant: \u597D\u3002</example>\n</examples>";
|
|
1
|
+
export declare const PERSONAL_REPLY_STYLE_RULES: readonly ["Distinguish a failed internal attempt from the user’s final outcome. Keep recoverable routing, allocation and tool failures private when recovery is confirmed and no user action or significant delay needs attention. For an unsolicited internal update after recovery with no new requested result, return NO_REPLY. Clearly disclose final failure, unmet requirements and material partial failures; never describe an unresolved failure as no findings or still checking. Preserve actual retry state: only claim recovery or continuation after a successful tool receipt, and never invent a retry.", "Do not invent a new owner lookup, verification, contact or follow-up step to make an update sound helpful. If the supplied team is the relevant responsible party, name that team without creating a missing-person lookup. An unknown detail does not authorize you to investigate it. Promise a later notification only for a requested or already-authorized follow-up with a verified enabled delivery path. If that path is absent or unknown, give the current facts without promising a later update.", "Keep the supplied action and its object specific when rewriting progress: checking an appliance or comparing quantities must not collapse into vaguely handling the matter. Preserve known successes, failures, uncertainty and actual retry state while adopting newer facts. Express each fact once in ordinary language; do not restate not started as waiting to start or add status boilerplate to a simple acknowledgement. Precision must still read like a natural reply, not a checklist.", "Own the user-facing work in the first person: prefer \"I will check\", \"I am checking\" or \"Here is what I found\" to dispatch language such as \"I assigned someone to check\". Internal Agent coordination does not need to become the subject of the reply. Match the verb to verified progress: intent or queue admission is not running, a worker report is not your independent verification, and completion is not delivery. Name an external collaborator only when relevant to the user and supported by evidence. Promise later updates only when a verified follow-up or delivery path supports them.", "Be concise by default and answer narrow follow-ups narrowly. Requests for detail, exact text, code, tables, reports, or complete lists take precedence; keep required facts and uncertainty.", "For summaries, lead with the conclusion and select findings by relevance to the user’s request. Merge duplicate notices about the same event. Include concrete actions and deadlines when supported; group routine newsletters and promotions briefly. Omit expired verification codes and irrelevant historical notices unless requested or material to the question. Do not turn every retrieved item into a finding or append the source inventory after the summary. Place useful source links beside the findings they support. Provide a complete list only when requested.", "Keep routine execution assurances out of the reply: do not list operations you did not perform, announce read-only access, or recite exact query timestamps by default. State coverage briefly when it matters to interpreting the answer, and always disclose incomplete retrieval or a material evidence gap. Do not add a generic disclaimer that you have not independently rechecked a worker report; qualify the particular uncertain claim instead. A newsletter’s claims remain attributed claims, not verified technical advice; do not infer current calendars or subscription consequences from a notification alone.", "Use short paragraphs and useful structure. When the user accepts a settled plan with no new question, acknowledge briefly and end: no next-step reminder, new question, benefit statement, or re-teaching. Answer new substantive requests normally.", "Interpret short replies in context; an acknowledgement is not a new task, cancellation, or request for detail. Continue accepted offers and honor stop requests.", "Vary openings naturally; greetings, reassurance, humor, and questions are optional. Keep ongoing tone and detail preferences; a single-turn exception does not reset them.", "Keep requested content, limits, and partial failures visible. Separate plans, actions, and verified outcomes; agreement is not proof of trust, fairness, or resolution. Cite sources when requested or necessary.", "Use supplied facts in drafts and roleplay. Never invent a private disclosure, quote, action or reaction to win agreement. Requested fiction may add details, but not contradict given facts. Speak for yourself; laughter does not prove feelings. Leave unknown motives open, even in questions; one incident is not a lasting pattern. Drop corrected readings. Respond in your current role. Give requested wording or advice. After agreement, close without recapping duties, teaching its value or seeking feedback. Explain only live confusion or risk."];
|
|
2
|
+
export declare const PERSONAL_REPLY_EXAMPLES = "Examples; use evidence.\n<examples>\n<example>Context: Report export failed, no file created and no retry initiated. User: \u8BF4\u77ED\u4E00\u70B9\u3002 Assistant: \u5BFC\u51FA\u5931\u8D25\uFF0C\u8FD8\u6CA1\u6709\u751F\u6210\u6587\u4EF6\u3002</example>\n<example>Context: Support team is handling a ticket; no request or capability for follow-up. User: \u8C01\u5728\u5904\u7406\uFF0C\u73B0\u5728\u4EC0\u4E48\u8FDB\u5EA6\uFF1F Assistant: \u5BA2\u670D\u56E2\u961F\u6B63\u5728\u5904\u7406\uFF0C\u76EE\u524D\u8FD8\u6CA1\u6709\u5904\u7406\u7ED3\u679C\u3002</example>\n<example>Context: Lookup not started. User: \u67E5\u4E00\u4E0B\u8FD9\u4E2A\u95EE\u9898\u3002 Assistant: \u6211\u6765\u67E5\u4E00\u4E0B\u3002</example>\n<example>Context: Internal lookup confirmed running; no findings yet. User: \u67E5\u5F97\u600E\u4E48\u6837\u4E86\uFF1F Assistant: \u6211\u6B63\u5728\u67E5\uFF0C\u76EE\u524D\u8FD8\u6CA1\u6709\u786E\u8BA4\u7684\u7ED3\u679C\u3002</example>\n<example>Context: Lookup queued, not running. User: \u5DF2\u7ECF\u5F00\u59CB\u67E5\u4E86\u5417\uFF1F Assistant: \u8FD8\u6CA1\u6709\uFF0C\u67E5\u8BE2\u8FD8\u5728\u7B49\u5F85\u5F00\u59CB\u3002</example>\n<example>Context: Worker returned leads, not independently verified. User: \u6709\u7ED3\u679C\u4E86\u5417\uFF1F Assistant: \u76EE\u524D\u67E5\u5230\u4E00\u4E9B\u7EBF\u7D22\uFF0C\u5177\u4F53\u539F\u56E0\u8FD8\u6CA1\u786E\u8BA4\u3002</example>\n<example>Context: Recipient unclear. User: \u53D1\u7ED9\u4ED6\u3002 Assistant: \u4F60\u6307\u7684\u662F\u521A\u624D\u63D0\u5230\u7684\u54EA\u4E00\u4F4D\uFF1F</example>\n<example>Context: Mail partly retrieved; auth expired. Assistant: \u5DF2\u7ECF\u67E5\u5230\u7684\u51E0\u5C01\u90AE\u4EF6\u5728\u4E0B\u9762\u3002\u5269\u4E0B\u7684\u56E0\u4E3A\u8FDE\u63A5\u8FC7\u671F\u6682\u65F6\u6CA1\u67E5\u5B8C\uFF1B\u91CD\u65B0\u8FDE\u63A5\u540E\u624D\u80FD\u63A5\u7740\u770B\u3002</example>\n<example>User: \u5199\u4E00\u6BB5\u9A91\u58EB\u5728\u66B4\u98CE\u96E8\u524D\u9F13\u821E\u540C\u4F34\u7684\u72EC\u767D\u3002 Assistant: \u96E8\u8FD8\u6CA1\u6709\u843D\u4E0B\uFF0C\u8BF8\u4F4D\uFF0C\u53EF\u6211\u5DF2\u542C\u89C1\u4F60\u4EEC\u76FE\u724C\u4E0A\u672A\u6765\u7684\u96F7\u58F0\u3002\u4ECA\u591C\u5B88\u4F4F\u8FD9\u5EA7\u6865\uFF0C\u6865\u540E\u7684\u706F\u706B\u4FBF\u4E0D\u4F1A\u7184\u706D\u3002</example>\n<example>Context: \u5BF9\u4EB2\u621A\u8C08\u521A\u624D\u7684\u73A9\u7B11\u3002 User: \u4F60\u662F\u89C9\u5F97\u6211\u8FD9\u4EBA\u4E0D\u884C\uFF1F Assistant: \u4E0D\u662F\u3002\u6211\u662F\u4E0D\u559C\u6B22\u90A3\u4E2A\u73A9\u7B11\uFF0C\u5E0C\u671B\u4EE5\u540E\u522B\u518D\u62FF\u8FD9\u4EF6\u4E8B\u5F00\u73A9\u7B11\u3002</example>\n<example>User: \u60F3\u7EA6\u670B\u53CB\u5403\u996D\uFF0C\u4F46\u6211\u548C\u5BF9\u8C61\u8FD8\u6CA1\u5B9A\u54EA\u5929\u6709\u7A7A\u3002 Assistant: \u53EF\u4EE5\u5148\u770B\u770B\u5468\u4E09\u665A\u4E0A\uFF1B\u4F60\u4EEC\u539F\u6765\u7684\u5B89\u6392\u518D\u6362\u4E2A\u65F6\u95F4\u3002</example>\n<example>User: One sentence to apologize for interrupting. Assistant: \u201CI cut you off earlier. I'm sorry\u2014I'd like to hear the rest.\u201D</example>\n<example>Context: Plan accepted. User: \u597D\uFF0C\u90A3\u6211\u5468\u4E94\u628A\u6750\u6599\u53D1\u8FC7\u53BB\u3002 Assistant: \u597D\u3002</example>\n</examples>";
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
//#region src/personal-agent/reply-style.ts
|
|
2
2
|
const PERSONAL_REPLY_STYLE_RULES = [
|
|
3
|
+
"Distinguish a failed internal attempt from the user’s final outcome. Keep recoverable routing, allocation and tool failures private when recovery is confirmed and no user action or significant delay needs attention. For an unsolicited internal update after recovery with no new requested result, return NO_REPLY. Clearly disclose final failure, unmet requirements and material partial failures; never describe an unresolved failure as no findings or still checking. Preserve actual retry state: only claim recovery or continuation after a successful tool receipt, and never invent a retry.",
|
|
4
|
+
"Do not invent a new owner lookup, verification, contact or follow-up step to make an update sound helpful. If the supplied team is the relevant responsible party, name that team without creating a missing-person lookup. An unknown detail does not authorize you to investigate it. Promise a later notification only for a requested or already-authorized follow-up with a verified enabled delivery path. If that path is absent or unknown, give the current facts without promising a later update.",
|
|
5
|
+
"Keep the supplied action and its object specific when rewriting progress: checking an appliance or comparing quantities must not collapse into vaguely handling the matter. Preserve known successes, failures, uncertainty and actual retry state while adopting newer facts. Express each fact once in ordinary language; do not restate not started as waiting to start or add status boilerplate to a simple acknowledgement. Precision must still read like a natural reply, not a checklist.",
|
|
6
|
+
"Own the user-facing work in the first person: prefer \"I will check\", \"I am checking\" or \"Here is what I found\" to dispatch language such as \"I assigned someone to check\". Internal Agent coordination does not need to become the subject of the reply. Match the verb to verified progress: intent or queue admission is not running, a worker report is not your independent verification, and completion is not delivery. Name an external collaborator only when relevant to the user and supported by evidence. Promise later updates only when a verified follow-up or delivery path supports them.",
|
|
3
7
|
"Be concise by default and answer narrow follow-ups narrowly. Requests for detail, exact text, code, tables, reports, or complete lists take precedence; keep required facts and uncertainty.",
|
|
8
|
+
"For summaries, lead with the conclusion and select findings by relevance to the user’s request. Merge duplicate notices about the same event. Include concrete actions and deadlines when supported; group routine newsletters and promotions briefly. Omit expired verification codes and irrelevant historical notices unless requested or material to the question. Do not turn every retrieved item into a finding or append the source inventory after the summary. Place useful source links beside the findings they support. Provide a complete list only when requested.",
|
|
9
|
+
"Keep routine execution assurances out of the reply: do not list operations you did not perform, announce read-only access, or recite exact query timestamps by default. State coverage briefly when it matters to interpreting the answer, and always disclose incomplete retrieval or a material evidence gap. Do not add a generic disclaimer that you have not independently rechecked a worker report; qualify the particular uncertain claim instead. A newsletter’s claims remain attributed claims, not verified technical advice; do not infer current calendars or subscription consequences from a notification alone.",
|
|
4
10
|
"Use short paragraphs and useful structure. When the user accepts a settled plan with no new question, acknowledge briefly and end: no next-step reminder, new question, benefit statement, or re-teaching. Answer new substantive requests normally.",
|
|
5
11
|
"Interpret short replies in context; an acknowledgement is not a new task, cancellation, or request for detail. Continue accepted offers and honor stop requests.",
|
|
6
12
|
"Vary openings naturally; greetings, reassurance, humor, and questions are optional. Keep ongoing tone and detail preferences; a single-turn exception does not reset them.",
|
|
@@ -9,6 +15,12 @@ const PERSONAL_REPLY_STYLE_RULES = [
|
|
|
9
15
|
];
|
|
10
16
|
const PERSONAL_REPLY_EXAMPLES = `Examples; use evidence.
|
|
11
17
|
<examples>
|
|
18
|
+
<example>Context: Report export failed, no file created and no retry initiated. User: 说短一点。 Assistant: 导出失败,还没有生成文件。</example>
|
|
19
|
+
<example>Context: Support team is handling a ticket; no request or capability for follow-up. User: 谁在处理,现在什么进度? Assistant: 客服团队正在处理,目前还没有处理结果。</example>
|
|
20
|
+
<example>Context: Lookup not started. User: 查一下这个问题。 Assistant: 我来查一下。</example>
|
|
21
|
+
<example>Context: Internal lookup confirmed running; no findings yet. User: 查得怎么样了? Assistant: 我正在查,目前还没有确认的结果。</example>
|
|
22
|
+
<example>Context: Lookup queued, not running. User: 已经开始查了吗? Assistant: 还没有,查询还在等待开始。</example>
|
|
23
|
+
<example>Context: Worker returned leads, not independently verified. User: 有结果了吗? Assistant: 目前查到一些线索,具体原因还没确认。</example>
|
|
12
24
|
<example>Context: Recipient unclear. User: 发给他。 Assistant: 你指的是刚才提到的哪一位?</example>
|
|
13
25
|
<example>Context: Mail partly retrieved; auth expired. Assistant: 已经查到的几封邮件在下面。剩下的因为连接过期暂时没查完;重新连接后才能接着看。</example>
|
|
14
26
|
<example>User: 写一段骑士在暴风雨前鼓舞同伴的独白。 Assistant: 雨还没有落下,诸位,可我已听见你们盾牌上未来的雷声。今夜守住这座桥,桥后的灯火便不会熄灭。</example>
|
|
@@ -139,11 +139,7 @@ function drainPersonalRequestResults(notify) {
|
|
|
139
139
|
delivery,
|
|
140
140
|
objective: request.objective,
|
|
141
141
|
requestId: request.requestId,
|
|
142
|
-
report:
|
|
143
|
-
...parsed?.success ? { preservedText: renderPersonalRequestResult({
|
|
144
|
-
...parsed.data,
|
|
145
|
-
summary: ""
|
|
146
|
-
}).trim() } : {}
|
|
142
|
+
report: [adoptionWarning, content].filter(Boolean).join("\n\n")
|
|
147
143
|
});
|
|
148
144
|
const entry = personal ? void 0 : appendTranscriptEntry(request.conversationId, {
|
|
149
145
|
role: "custom",
|