@xopcai/xopc 0.0.441 → 0.0.442
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/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-Chneosh4.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-CAqwtADW.js → agents-DKfOY5z9.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-CewiIx4v.js → agents-admin-api-DPLtjJtX.js} +1 -1
- package/dist/gateway/static/root/assets/{api-CE6gdBWx.js → api-CEzBruRJ.js} +1 -1
- package/dist/gateway/static/root/assets/{api-DRyQFk9q.js → api-ClZ7BrD4.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-CBLj-m2k.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-DLg-LYCm.js +3 -0
- package/dist/gateway/static/root/assets/{automations-page-D3Cb5vfR.js → automations-page-CYngiwxI.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-zyhyqSdH.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-BpYi2fQO.js +1 -0
- package/dist/gateway/static/root/assets/{capabilities-DG0ckPuF.js → capabilities-oWWLfwf3.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-Dlgwv1dI.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CslXPIs8.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-P-xOLYBz.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-Cen4dGHa.js +72 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-CEaFlZEs.js → chat-terminal-dock-DTQL2DBu.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-B1GFVFK_.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-sULM6YyQ.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-DN9BOiFk.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-D2Dhtu6H.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-iframe-host-DTwDBQQ9.js → extension-iframe-host-Dra7k_6o.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-Dd16lQg-.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-D-Fa5PU-.js → extension-provider-C4WwnCxf.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-ycMuOpv3.js → extension-settings-page-BHwQ2ipj.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-D-gy9LlQ.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-CqQZfWRQ.js +11 -0
- package/dist/gateway/static/root/assets/index-D7Noveui.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-Drbzz4Lm.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-BQdgpm0s.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-IefutMyg.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-DDmLslYG.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-DkrDSJqk.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-COU6H_jO.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-modal-DaQhXcev.js → product-preview-modal-Ct5q4tv6.js} +2 -2
- package/dist/gateway/static/root/assets/{project-detail-page-BHLOHrat.js → project-detail-page-CQj7nm6I.js} +1 -1
- 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-sWxQJrFS.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-CDQtPdgq.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-Czu9GpZX.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-DgXRw0_8.js → sessions-page-CGkbbrz-.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-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/{settings-page-SQwLKlTr.js → settings-page-zGjDXdHY.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-Bs3VjTGj.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-BseSozxm.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/{system-settings-panel-a4mBz4J2.js → system-settings-panel-BltKPJdb.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-B9akf3i8.js → task-detail-page-CwMpmFVS.js} +1 -1
- package/dist/gateway/static/root/assets/{task-result-evidence-DFiu5SlL.js → task-result-evidence-BNhYqUAa.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-CMtFem_g.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-BO2OFCoA.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-DA6SxZPQ.js +2 -0
- package/dist/gateway/static/root/assets/use-file-preview-expanded-g4SwMHbx.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-DG5ZMfaY.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-B5_01fi_.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-Cc92OabY.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-fKmmIslV.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-C_0lUEsm.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-open-location-menu-BQrTy-8o.js → workspace-open-location-menu-BznuSmFZ.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 +95 -98
- 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/src/agent/agent-manager.d.ts +0 -1
- package/dist/src/agent/agent-manager.js +0 -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/tools/factory.d.ts +0 -2
- package/dist/src/agent/tools/factory.js +0 -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/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 +0 -12
- 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 +0 -24
- package/dist/src/automations/domain/validation.js +0 -7
- package/dist/src/automations/draft/automation-draft-validator.d.ts +0 -6
- 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/cli/commands/extension-dev.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +1 -1
- package/dist/src/cli/commands/extension.js +1 -1
- package/dist/src/cli/commands/gateway/lifecycle.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +3 -3
- package/dist/src/cli/commands/tunnel.js +1 -1
- package/dist/src/cli/commands/update.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/gateway/hono/app.js +1 -1
- package/dist/src/gateway/hono/middleware/auth.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -2
- package/dist/src/gateway/hono/routes/desktop-host.js +1 -1
- package/dist/src/gateway/hono/routes/exposure.js +1 -1
- package/dist/src/gateway/hono/routes/files.js +2 -2
- package/dist/src/gateway/hono/routes/imports.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +0 -16
- package/dist/src/gateway/hono/routes/local-apps.js +1 -1
- package/dist/src/gateway/hono/routes/logs.js +1 -1
- package/dist/src/gateway/hono/routes/models.js +5 -5
- package/dist/src/gateway/hono/routes/notes.js +1 -1
- package/dist/src/gateway/hono/routes/personal-agent.js +2 -2
- package/dist/src/gateway/hono/routes/phone-setup.js +1 -1
- package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/hono/routes/shares.js +5 -5
- package/dist/src/gateway/hono/routes/status.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/hono/routes/tunnel.js +2 -2
- package/dist/src/gateway/hono/routes/update.js +2 -2
- package/dist/src/gateway/hono/routes/voice.js +1 -1
- package/dist/src/gateway/index.js +2 -2
- package/dist/src/gateway/provider-model-setup.js +1 -1
- package/dist/src/gateway/run-loop.js +2 -2
- package/dist/src/gateway/security/audit.js +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +0 -2
- package/dist/src/gateway/security/index.js +2 -2
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.js +1 -1
- package/dist/src/gateway/service/run-gateway-agent.js +2 -2
- package/dist/src/gateway/service/sessions-api.js +1 -1
- package/dist/src/gateway/service.d.ts +0 -3
- package/dist/src/gateway/service.js +31 -46
- package/dist/src/gateway/side-chat/run-service.js +1 -1
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/infra/gateway-processes.js +1 -1
- package/dist/src/infra/update-restart.js +1 -1
- package/dist/src/infra/update-runner.js +2 -2
- package/dist/src/infra/update-startup.js +1 -1
- package/dist/src/notifications/service.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 +10 -0
- package/dist/src/phone/stream-gateway.js +1 -1
- 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/providers/setup/voice.js +1 -1
- package/dist/src/realtime/runtime.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/share/site-share-router.js +2 -2
- package/dist/src/storage/sqlite/schema.sql +0 -81
- package/dist/src/tasks/home-query-service.js +0 -1
- package/dist/src/tui/backends/embedded-backend.js +3 -3
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/voice/realtime/runtime.js +1 -1
- package/dist/src/work-discovery/index.js +2 -2
- package/dist/src/work-discovery/investigator.js +1 -1
- package/dist/src/work-discovery/service.js +3 -3
- package/package.json +9 -9
- 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/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/star-BUWJqJ5c.js +0 -1
- 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
|
@@ -2,8 +2,8 @@ import { init_paths_state, resolveStateDir } from "../../../config/paths-state.j
|
|
|
2
2
|
import { RuntimeToolsConfigSchema, init_schema } from "../../../config/schema.js";
|
|
3
3
|
import { normalizeRuntimeVersionRequest } from "../../../runtime-tools/probe.js";
|
|
4
4
|
import { ManagedRuntimeManager } from "../../../runtime-tools/manager.js";
|
|
5
|
-
import { createGatewayRouteLogger } from "../lib/route-logger.js";
|
|
6
5
|
import { pruneRuntimeTools } from "../../../runtime-tools/prune.js";
|
|
6
|
+
import { createGatewayRouteLogger } from "../lib/route-logger.js";
|
|
7
7
|
import { registerPhoneDependencyRoutes } from "./phone-dependencies.js";
|
|
8
8
|
import { streamSSE } from "hono/streaming";
|
|
9
9
|
//#region src/gateway/hono/routes/runtime-tools.ts
|
|
@@ -9,12 +9,12 @@ import { messagesToClientHistory } from "../../../session/client-history.js";
|
|
|
9
9
|
import { evictEmbeddedSessionRunner } from "../../../agent/embedded/session-runner.js";
|
|
10
10
|
import { SessionEnvironmentService } from "../../../execution-environments/session-environment-service.js";
|
|
11
11
|
import { deleteMediaUrisNoLongerReferenced } from "../../../media/session-references.js";
|
|
12
|
+
import { listSidebarTaskGroups } from "../../../tasks/task-sidebar-hierarchy.js";
|
|
12
13
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
13
14
|
import { createGatewayRouteLogger, logRouteError } from "../lib/route-logger.js";
|
|
14
15
|
import { patchChatModelConfig } from "./chat-model-config.js";
|
|
15
16
|
import { getSessionContextSummary } from "../../session-context-summary.js";
|
|
16
17
|
import { respondStartupUnavailable } from "../lib/startup-unavailable.js";
|
|
17
|
-
import { listSidebarTaskGroups } from "../../../tasks/task-sidebar-hierarchy.js";
|
|
18
18
|
import { createHash } from "node:crypto";
|
|
19
19
|
//#region src/gateway/hono/routes/sessions.ts
|
|
20
20
|
init_src();
|
|
@@ -16,15 +16,15 @@ import { HostedStaticSitePublicationBuilder } from "../../../share/hosted-static
|
|
|
16
16
|
import { publishHostedStaticSite } from "../../../share/hosted-static-site-publish.js";
|
|
17
17
|
import { audienceDefaults, cleanupStagedSite, decideShareKind, forgetStagedSite, makeDescription, makeTitle, probeShareTarget, rememberStagedSite, stageSingleHtmlAsSite } from "../../../share/share-auto.js";
|
|
18
18
|
import { deleteThumbnail, placeholderSvg, readThumbnail, scheduleThumbnail, thumbnailContentType, thumbnailExists } from "../../../share/share-thumbnail.js";
|
|
19
|
-
import { getGatewayFileSpaceService } from "../../file-space-service.js";
|
|
20
|
-
import { SHARED_HTML_CSP } from "../../security/csp.js";
|
|
21
|
-
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
22
|
-
import { renderFolderLandingPage, renderShareExpiredPage, renderShareLandingPage, renderSnapshotShareLandingPage } from "../../../share/share-landing.js";
|
|
23
|
-
import { resolveScopedMediaReference } from "../../media-access.js";
|
|
24
19
|
import { NoteShareService } from "../../../share/note-share-service.js";
|
|
25
20
|
import { HostedNotePublicationBuilder, HostedNoteVersionConflictError } from "../../../share/hosted-note-publication.js";
|
|
21
|
+
import { renderFolderLandingPage, renderShareExpiredPage, renderShareLandingPage, renderSnapshotShareLandingPage } from "../../../share/share-landing.js";
|
|
26
22
|
import { consumeSharePublicLimit } from "../../../share/share-rate-limit.js";
|
|
27
23
|
import { createZipStream, planDirectoryFiles } from "../../../share/share-zip.js";
|
|
24
|
+
import { getGatewayFileSpaceService } from "../../file-space-service.js";
|
|
25
|
+
import { SHARED_HTML_CSP } from "../../security/csp.js";
|
|
26
|
+
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
27
|
+
import { resolveScopedMediaReference } from "../../media-access.js";
|
|
28
28
|
import { basename, dirname } from "node:path";
|
|
29
29
|
import { createReadStream } from "node:fs";
|
|
30
30
|
import { createHash } from "node:crypto";
|
|
@@ -2,8 +2,8 @@ import { getDefaultModelSync, init_providers, resolveModel } from "../../../prov
|
|
|
2
2
|
import { isSTTAvailable } from "../../../voice/stt/availability.js";
|
|
3
3
|
import { mergeSttConfigFromAppConfig } from "../../../voice/stt/config.js";
|
|
4
4
|
import "../../../voice/stt/index.js";
|
|
5
|
-
import { getGatewayAgentEffectiveConfig } from "../../agents-admin.js";
|
|
6
5
|
import { resolveDictationRoute } from "../../../voice/dictation.js";
|
|
6
|
+
import { getGatewayAgentEffectiveConfig } from "../../agents-admin.js";
|
|
7
7
|
import { createHash } from "node:crypto";
|
|
8
8
|
//#region src/gateway/hono/routes/status.ts
|
|
9
9
|
init_providers();
|
|
@@ -17,12 +17,12 @@ import { TaskMutationOutputSchema } from "../../../tasks/capabilities/write.js";
|
|
|
17
17
|
import { createProductDispatcher } from "../../../capabilities/runtime/product.js";
|
|
18
18
|
import { ProjectOperatingViewService } from "../../../tasks/project-operating-view-service.js";
|
|
19
19
|
import { TaskHandoffService } from "../../../tasks/task-handoff-service.js";
|
|
20
|
+
import { getTaskOrchestrationMetrics } from "../../../tasks/task-orchestration-metrics.js";
|
|
20
21
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
21
22
|
import { submitSessionInput } from "./session-input-handler.js";
|
|
22
23
|
import { patchChatModelConfig } from "./chat-model-config.js";
|
|
23
24
|
import { capabilityHttpContext, capabilityHttpError } from "../../../capabilities/adapters/http.js";
|
|
24
25
|
import { TaskConversationQueryService } from "../../service/task-conversation-query-service.js";
|
|
25
|
-
import { getTaskOrchestrationMetrics } from "../../../tasks/task-orchestration-metrics.js";
|
|
26
26
|
import { randomUUID } from "node:crypto";
|
|
27
27
|
//#region src/gateway/hono/routes/tasks.ts
|
|
28
28
|
init_src();
|
|
@@ -5,14 +5,14 @@ import { TunnelRecoveryProofRejectedError, TunnelRegistrationKeyRejectedError }
|
|
|
5
5
|
import { TUNNEL_REGISTRATION_SECRET_REQUIRED_CODE, TunnelRegistrationSecretError, getTunnelRegistrationSecretMeta, readTunnelRegistrationSecretFromConfigOnly, resolveTunnelBrokerUrl } from "../../../tunnel/env.js";
|
|
6
6
|
import { logTunnelAudit } from "../../../tunnel/tunnel-audit.js";
|
|
7
7
|
import { getTunnelService, hashGatewayToken } from "../../../tunnel/tunnel-service.js";
|
|
8
|
-
import { requireTunnelGatewayToken } from "../../../tunnel/auth-policy.js";
|
|
9
8
|
import { TUNNEL_CONSENT_REQUIRED_CODE, TunnelConsentError, assertTunnelMayStart, getTunnelConsentState } from "../../../tunnel/consent.js";
|
|
9
|
+
import { requireTunnelGatewayToken } from "../../../tunnel/auth-policy.js";
|
|
10
10
|
import { configureTunnelFromGatewayConfig } from "../../../tunnel/gateway-lifecycle.js";
|
|
11
11
|
import { applyTunnelConsentToConfig, mergeTunnelConfigPatch, setTunnelEnabledInConfig } from "../../../tunnel/tunnel-config.js";
|
|
12
|
-
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
13
12
|
import { consumeTunnelMutationLimit } from "../../../tunnel/tunnel-rate-limit.js";
|
|
14
13
|
import "../../../tunnel/index.js";
|
|
15
14
|
import { TunnelRegistrationProvisionError, provisionTunnelRegistrationKey } from "../../../tunnel/xopc-cloud-registration.js";
|
|
15
|
+
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
16
16
|
//#region src/gateway/hono/routes/tunnel.ts
|
|
17
17
|
init_logger();
|
|
18
18
|
init_public_url();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PACKAGE_VERSION, init_package_version } from "../../../package-version.js";
|
|
2
2
|
import { loadConfig } from "../../../config/loader.js";
|
|
3
3
|
import "../../../config/index.js";
|
|
4
|
-
import { acquireUpdateLock } from "../../../infra/update-lock.js";
|
|
5
4
|
import { normalizeUpdateChannel } from "../../../infra/update-channels.js";
|
|
5
|
+
import { acquireUpdateLock } from "../../../infra/update-lock.js";
|
|
6
|
+
import { formatUpdateApiResult, runGatewayUpdateWithPostSteps } from "../../../infra/update-runner.js";
|
|
6
7
|
import { getUpdateAvailable, runGatewayUpdateCheck } from "../../../infra/update-startup.js";
|
|
7
8
|
import { createGatewayRouteLogger } from "../lib/route-logger.js";
|
|
8
|
-
import { formatUpdateApiResult, runGatewayUpdateWithPostSteps } from "../../../infra/update-runner.js";
|
|
9
9
|
import { streamSSE } from "hono/streaming";
|
|
10
10
|
//#region src/gateway/hono/routes/update.ts
|
|
11
11
|
init_package_version();
|
|
@@ -21,10 +21,10 @@ import { withModelConfigLock } from "../../../session/model-config-lock.js";
|
|
|
21
21
|
import { getSessionPreparation } from "../../../storage/sqlite/session-creation-repository.js";
|
|
22
22
|
import { resolveOmniRoute } from "../../../voice/realtime/omniRoute.js";
|
|
23
23
|
import { VoiceSessionCreationError, resolveStreamingStt, resolveStreamingTts } from "../../../voice/realtime/runtime.js";
|
|
24
|
+
import { selectPlatformVoice, voiceSettingsCatalog } from "../../../voice/platform-settings.js";
|
|
24
25
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
25
26
|
import { createGatewayRouteLogger } from "../lib/route-logger.js";
|
|
26
27
|
import { listTtsProvidersForApi } from "../../../voice/tts/list-providers.js";
|
|
27
|
-
import { selectPlatformVoice, voiceSettingsCatalog } from "../../../voice/platform-settings.js";
|
|
28
28
|
import { z } from "zod";
|
|
29
29
|
//#region src/gateway/hono/routes/voice.ts
|
|
30
30
|
init_model_usage();
|
|
@@ -3,8 +3,9 @@ import { buildDefaultCorsOrigins, isAllInterfacesHost, isLoopbackHost, resolveEf
|
|
|
3
3
|
import { isGatewayStrictSecurityEnabled } from "./rate-limit/env-flags.js";
|
|
4
4
|
import "./rate-limit/index.js";
|
|
5
5
|
import { defaultGatewayBindMode, isContainerEnvironment, resolveGatewayBindHost, resolveGatewayBindHostSync, resolveGatewayBindMode, resolveGatewayEffectiveHost } from "../config/gateway-bind.js";
|
|
6
|
-
import {
|
|
6
|
+
import { checkPortAvailable, forceFreePortAndWait, listPortListeners, parseLsofOutput } from "./ports.js";
|
|
7
7
|
import { resolveGatewayListenHost, resolveGatewayListenPlan } from "./listen.js";
|
|
8
|
+
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
8
9
|
import { assertGatewayRuntimeConfig } from "./runtime-config.js";
|
|
9
10
|
import { restartGatewayProcessWithFreshPid } from "./respawn.js";
|
|
10
11
|
import { GatewayService } from "./service.js";
|
|
@@ -12,7 +13,6 @@ import { createHonoApp } from "./hono/app.js";
|
|
|
12
13
|
import { GatewayServer } from "./server.js";
|
|
13
14
|
import { GatewayLockError, acquireGatewayLock } from "./lock.js";
|
|
14
15
|
import { runGatewayLoop } from "./run-loop.js";
|
|
15
|
-
import { checkPortAvailable, forceFreePortAndWait, listPortListeners, parseLsofOutput } from "./ports.js";
|
|
16
16
|
import { apiError, apiOk } from "./protocol.js";
|
|
17
17
|
import "./hono/index.js";
|
|
18
18
|
import { assertSecureGatewayHttpUrl, assertSecureWebSocketUrl, isInsecurePrivateWsAllowed, isSecureWebSocketUrl } from "./ws-security.js";
|
|
@@ -3,8 +3,8 @@ import { getModelCatalogStore, init_model_catalog_store } from "../providers/mod
|
|
|
3
3
|
import { getAllModels, getAllProviders, getModelsByProvider, getProviderDisplayName, init_providers, isProviderConfigured, isProviderConfiguredSync, providerSupportsOAuth } from "../providers/index.js";
|
|
4
4
|
import { getImageGenerationProvider } from "../agent/image/generation/provider-registry.js";
|
|
5
5
|
import { listSttProvidersForApi } from "../voice/stt/list-providers.js";
|
|
6
|
-
import { listGlobalDefaults } from "./global-defaults-admin.js";
|
|
7
6
|
import { getRecommendedModelsForProvider } from "../providers/presentation.js";
|
|
7
|
+
import { listGlobalDefaults } from "./global-defaults-admin.js";
|
|
8
8
|
import { listTtsProvidersForApi } from "../voice/tts/list-providers.js";
|
|
9
9
|
import { readSetupVoiceState } from "../providers/setup/voice.js";
|
|
10
10
|
//#region src/gateway/provider-model-setup.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { loadConfig } from "../config/loader.js";
|
|
2
2
|
import { isRestartEnabled } from "../config/commands.flags.js";
|
|
3
|
+
import { consumeGatewayRestartIntentSync, consumeGatewaySigusr1RestartAuthorization, isGatewaySigusr1RestartExternallyAllowed, resetGatewayRestartStateForInProcessRestart, scheduleGatewaySigusr1Restart, setGatewaySigusr1RestartPolicy } from "../infra/restart.js";
|
|
4
|
+
import { runBootstrapMigrationsSync } from "../migrations/runner.js";
|
|
3
5
|
import { restartGatewayProcessWithFreshPid } from "./respawn.js";
|
|
4
6
|
import { acquireGatewayLock } from "./lock.js";
|
|
5
|
-
import { runBootstrapMigrationsSync } from "../migrations/runner.js";
|
|
6
|
-
import { consumeGatewayRestartIntentSync, consumeGatewaySigusr1RestartAuthorization, isGatewaySigusr1RestartExternallyAllowed, resetGatewayRestartStateForInProcessRestart, scheduleGatewaySigusr1Restart, setGatewaySigusr1RestartPolicy } from "../infra/restart.js";
|
|
7
7
|
//#region src/gateway/run-loop.ts
|
|
8
8
|
/**
|
|
9
9
|
* Gateway Run Loop - Core run loop for gateway process management
|
|
@@ -2,9 +2,9 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { isAuthRateLimitGloballyDisabled, isGatewayStrictSecurityEnabled } from "../rate-limit/env-flags.js";
|
|
4
4
|
import "../rate-limit/index.js";
|
|
5
|
-
import { assertGatewayAuthConfigured, resolveGatewayAuth } from "../auth.js";
|
|
6
5
|
import { resolveGatewayListenPlan } from "../listen.js";
|
|
7
6
|
import { collectExposureConflicts, isRemoteGatewayInsecure, isTailnetBindUnavailable } from "../../remote-access/exposure-guards.js";
|
|
7
|
+
import { assertGatewayAuthConfigured, resolveGatewayAuth } from "../auth.js";
|
|
8
8
|
import { assertGatewayRuntimeConfig } from "../runtime-config.js";
|
|
9
9
|
//#region src/gateway/security/audit.ts
|
|
10
10
|
init_logger();
|
|
@@ -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";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DEFAULT_MOBILE_SCOPES, GATEWAY_SCOPES, isGatewayScope } from "../../../packages/gateway-contract/src/gateway-scopes.js";
|
|
2
2
|
import { hasGatewayScope, parseGatewayScopes, requiredGatewayScope } from "./gateway-scopes.js";
|
|
3
|
+
import { createPreauthConnectionBudget, getMaxPreauthConnectionsPerIp } from "./preauth-connection-budget.js";
|
|
3
4
|
import { safeEqualSecret } from "./secret-equal.js";
|
|
4
|
-
import { KNOWN_WEAK_GATEWAY_TOKEN_PLACEHOLDERS, assertGatewayAuthNotKnownWeak } from "./known-weak-secrets.js";
|
|
5
5
|
import { auditGatewayConfig, collectGatewayConfigFindings, collectGatewaySecurityFindings, collectGatewayStartupGuardFindings } from "./audit.js";
|
|
6
|
-
import {
|
|
6
|
+
import { KNOWN_WEAK_GATEWAY_TOKEN_PLACEHOLDERS, assertGatewayAuthNotKnownWeak } from "./known-weak-secrets.js";
|
|
7
7
|
import { buildGatewayConsoleCspHeader, computeInlineScriptHashes } from "./csp.js";
|
|
8
8
|
import { checkBrowserOrigin } from "./origin-check.js";
|
|
9
9
|
import { getGatewayPrincipal, setGatewayPrincipal } from "./gateway-principal.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { resolveGatewayBindHost, resolveGatewayListenHosts } from "../config/gateway-bind.js";
|
|
2
2
|
import { ensureXopcCliOnPath } from "../infra/path-env.js";
|
|
3
3
|
import { resolveGatewayListenPlan } from "./listen.js";
|
|
4
|
-
import { GatewayService } from "./service.js";
|
|
5
4
|
import { handleSiteShareUpgrade } from "../share/site-share-router.js";
|
|
5
|
+
import { GatewayService } from "./service.js";
|
|
6
6
|
import { createHonoApp } from "./hono/app.js";
|
|
7
7
|
import { serve } from "@hono/node-server";
|
|
8
8
|
//#region src/gateway/server.ts
|
|
@@ -14,8 +14,8 @@ import { TaskConversationRepository } from "../../tasks/task-conversation-reposi
|
|
|
14
14
|
import { TaskCollaborationRepository } from "../../tasks/task-collaboration-repository.js";
|
|
15
15
|
import { TaskApplicationService } from "../../tasks/task-application-service.js";
|
|
16
16
|
import { reserveEmbeddedRunCancellation } from "../../agent/embedded/runs.js";
|
|
17
|
-
import { EphemeralClarificationWaiter } from "../ephemeral-clarification-waiter.js";
|
|
18
17
|
import { completePhoneAssistanceFromUser, preparePhoneContinuation } from "../../phone/assistance-service.js";
|
|
18
|
+
import { EphemeralClarificationWaiter } from "../ephemeral-clarification-waiter.js";
|
|
19
19
|
import { describeActiveExecution } from "./active-execution.js";
|
|
20
20
|
import { runGatewayAgent } from "./run-gateway-agent.js";
|
|
21
21
|
import { NextTurnSuggestionService } from "../next-turn-suggestions/service.js";
|
|
@@ -20,10 +20,10 @@ import { recordPersonalPerformance } from "../../personal-agent/performance.js";
|
|
|
20
20
|
import { formatAgentRunErrorForClient } from "../../agent/client-error-format.js";
|
|
21
21
|
import "../chat-limits.js";
|
|
22
22
|
import { prependEnvelopeTimestamp } from "../../channels/envelope-timestamp.js";
|
|
23
|
-
import { ChatStreamMapper } from "../chat-stream/mapper.js";
|
|
24
23
|
import { markdownNotificationPreview } from "../../notifications/plain-text.js";
|
|
25
|
-
import {
|
|
24
|
+
import { ChatStreamMapper } from "../chat-stream/mapper.js";
|
|
26
25
|
import { recordExplicitRelationshipFollowUp } from "../../user-context/relationship-continuity.js";
|
|
26
|
+
import { resolveWebchatConversationId } from "../resolve-webchat-session-key.js";
|
|
27
27
|
import { coalesceThinkingDeltas } from "../chat-stream/thinking-delta-coalescer.js";
|
|
28
28
|
import { describeActiveExecution } from "./active-execution.js";
|
|
29
29
|
import crypto from "crypto";
|
|
@@ -3,8 +3,8 @@ import { isPersonalConversation } from "../../personal-agent/repository.js";
|
|
|
3
3
|
import { buildSessionTimeline } from "../../session/transcript-outline.js";
|
|
4
4
|
import { transcriptRowsToClientHistory } from "../../session/client-history.js";
|
|
5
5
|
import { collectMediaUrisFromValues, deleteMediaUris } from "../../media/session-references.js";
|
|
6
|
-
import { withModelConfigLock } from "../../session/model-config-lock.js";
|
|
7
6
|
import { publicExecutionDetail } from "../../session/execution-detail.js";
|
|
7
|
+
import { withModelConfigLock } from "../../session/model-config-lock.js";
|
|
8
8
|
import { getDistinctSessionChatIds } from "./session-chat-ids.js";
|
|
9
9
|
import { performSessionReset } from "../session-reset-service.js";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
@@ -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;
|
|
@@ -103,47 +103,58 @@ import { DiscussionSealer } from "../discussions/sealer.js";
|
|
|
103
103
|
import "../discussions/index.js";
|
|
104
104
|
import { EndpointToolRuntime } from "../endpoint-tools/runtime.js";
|
|
105
105
|
import "../endpoint-tools/index.js";
|
|
106
|
+
import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
|
|
107
|
+
import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
|
|
108
|
+
import { HomeIntelligenceHost } from "../home-intelligence/host.js";
|
|
109
|
+
import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
|
|
110
|
+
import { createBackgroundTask } from "../infra/background-task.js";
|
|
111
|
+
import { scheduleGatewayUpdateCheck } from "../infra/update-startup.js";
|
|
112
|
+
import "../local-apps/index.js";
|
|
113
|
+
import "../notes/index.js";
|
|
114
|
+
import { NotificationService } from "../notifications/service.js";
|
|
115
|
+
import { allowsPersonalTaskNotification, personalReplyNotification, personalRunDelegated } from "../personal-agent/notifications.js";
|
|
116
|
+
import { PhoneStreamGateway } from "../phone/stream-gateway.js";
|
|
117
|
+
import { RealtimeRuntime } from "../realtime/runtime.js";
|
|
118
|
+
import { getXopcCloudCatalogCoordinator } from "../providers/xopc-cloud-catalog-coordinator.js";
|
|
119
|
+
import { ModelCatalogSyncService } from "../providers/model-catalog-sync-service.js";
|
|
120
|
+
import { stopTailscaleExposure } from "./tailscale-lifecycle.js";
|
|
106
121
|
import { assertGatewayAuthConfigured, extractToken, resolveGatewayAuth, validateToken } from "./auth.js";
|
|
122
|
+
import { wireTunnelEventsToGateway } from "../tunnel/gateway-lifecycle.js";
|
|
123
|
+
import { getExposureManager } from "../remote-access/exposure-manager.js";
|
|
124
|
+
import { assertGatewayRuntimeConfig } from "./runtime-config.js";
|
|
125
|
+
import { auditGatewayConfig } from "./security/audit.js";
|
|
126
|
+
import { TaskAllocationDispatcher } from "../tasks/task-allocation-service.js";
|
|
127
|
+
import { TaskCollaborationDelivery } from "../tasks/task-collaboration-delivery.js";
|
|
128
|
+
import { TaskMainUpdateDecisionService } from "../tasks/task-main-update-decision-service.js";
|
|
129
|
+
import { TaskMainUpdateExhaustedError } from "../tasks/task-main-update-retry.js";
|
|
130
|
+
import { TaskMainUpdateDelivery } from "../tasks/task-main-update-delivery.js";
|
|
131
|
+
import { selectTaskMainUpdateAttempt, submitAndConfirmTaskMainUpdate } from "../tasks/task-main-update-input.js";
|
|
132
|
+
import { TaskResultDeliveryService } from "../tasks/task-result-delivery-service.js";
|
|
133
|
+
import { sanitizeTunnelConfig } from "../tunnel/tunnel-config.js";
|
|
134
|
+
import { voiceMemoryBudget, voicePersonaBudget } from "../voice/realtime/conversation-context.js";
|
|
135
|
+
import { VoiceRealtimeRuntime } from "../voice/realtime/runtime.js";
|
|
136
|
+
import { applyAutomaticVoiceLanguage, inferProductLanguageFromEnvironment, initializeVoiceDefaults } from "../voice/language-profile.js";
|
|
137
|
+
import { WorkDiscoveryService } from "../work-discovery/service.js";
|
|
107
138
|
import { prepareAutomationAgentSession } from "./automation-agent-session.js";
|
|
108
139
|
import { deliverAutomationCompletion } from "./automation-completion-delivery.js";
|
|
109
|
-
import { stopTailscaleExposure } from "./tailscale-lifecycle.js";
|
|
110
140
|
import { getGatewayFileSpaceService } from "./file-space-service.js";
|
|
111
141
|
import { reconcileHomeIntelligenceAutomation } from "./home-intelligence-automation-reconciler.js";
|
|
112
142
|
import { createPhoneSetupService } from "./hono/routes/phone-setup.js";
|
|
113
143
|
import { BrowserSetupService } from "../browser/setup/service.js";
|
|
114
144
|
import { McpConversationSetup } from "../agent/mcp/conversation-setup.js";
|
|
115
145
|
import { withGatewayConfigWriteLock } from "./hono/lib/config-write-lock.js";
|
|
116
|
-
import { PhoneStreamGateway } from "../phone/stream-gateway.js";
|
|
117
146
|
import { PersonalProactivityService } from "../personal-agent/proactivity/service.js";
|
|
118
147
|
import { reconcilePersonalProactivityAutomation } from "../personal-agent/proactivity/automation.js";
|
|
119
|
-
import { createBackgroundTask } from "../infra/background-task.js";
|
|
120
148
|
import { buildFileAgentContext } from "../agent/source-context/file-context.js";
|
|
121
149
|
import { buildSessionAgentContext } from "../agent/source-context/session-context.js";
|
|
122
150
|
import { buildBrowserTabAgentContext } from "../agent/source-context/browser-tab.js";
|
|
123
|
-
import { WorkDiscoveryService } from "../work-discovery/service.js";
|
|
124
151
|
import { buildVoiceMemoryContext } from "../voice/realtime/memory-context.js";
|
|
125
152
|
import { buildVoicePersonaContext } from "../voice/realtime/persona-context.js";
|
|
126
|
-
import { voiceMemoryBudget, voicePersonaBudget } from "../voice/realtime/conversation-context.js";
|
|
127
|
-
import "../notes/index.js";
|
|
128
153
|
import { EphemeralSideChatManager } from "./side-chat/manager.js";
|
|
129
154
|
import { SideChatRunService } from "./side-chat/run-service.js";
|
|
130
155
|
import { SideChatPromotionService } from "./side-chat/promotion-service.js";
|
|
131
156
|
import "./side-chat/index.js";
|
|
132
|
-
import { wireTunnelEventsToGateway } from "../tunnel/gateway-lifecycle.js";
|
|
133
|
-
import { getExposureManager } from "../remote-access/exposure-manager.js";
|
|
134
|
-
import { sanitizeTunnelConfig } from "../tunnel/tunnel-config.js";
|
|
135
157
|
import { assertGatewayAuthNotKnownWeak } from "./security/known-weak-secrets.js";
|
|
136
|
-
import { assertGatewayRuntimeConfig } from "./runtime-config.js";
|
|
137
|
-
import { auditGatewayConfig } from "./security/audit.js";
|
|
138
|
-
import { getXopcCloudCatalogCoordinator } from "../providers/xopc-cloud-catalog-coordinator.js";
|
|
139
|
-
import { ModelCatalogSyncService } from "../providers/model-catalog-sync-service.js";
|
|
140
|
-
import { NotificationService } from "../notifications/service.js";
|
|
141
|
-
import "../local-apps/index.js";
|
|
142
|
-
import { TaskAllocationDispatcher } from "../tasks/task-allocation-service.js";
|
|
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
|
-
import { scheduleGatewayUpdateCheck } from "../infra/update-startup.js";
|
|
147
158
|
import { resolveChannelConnectDeferSet } from "./resolve-channel-connect-defer.js";
|
|
148
159
|
import { restartGatewayProcessWithFreshPid } from "./respawn.js";
|
|
149
160
|
import { GatewaySessionsApi } from "./service/sessions-api.js";
|
|
@@ -152,24 +163,11 @@ import { GatewayConfigCoordinator } from "./service/config-coordinator.js";
|
|
|
152
163
|
import { GatewayAgentRunner } from "./service/agent-runner.js";
|
|
153
164
|
import { SessionPreparationWorker } from "./service/session-preparation-worker.js";
|
|
154
165
|
import { isBrowserSessionActive } from "../storage/sqlite/browser-session-repository.js";
|
|
155
|
-
import { RealtimeRuntime } from "../realtime/runtime.js";
|
|
156
|
-
import { VoiceRealtimeRuntime } from "../voice/realtime/runtime.js";
|
|
157
166
|
import { DurableVoiceAgentBroker } from "../voice/realtime/agentBroker.js";
|
|
158
167
|
import { reconcileMemoryMaintenanceAutomations } from "./memory-maintenance-automation-reconciler.js";
|
|
159
168
|
import { GatewayReadiness } from "./startup-readiness.js";
|
|
160
169
|
import { createGatewayStartupTrace } from "./startup-trace.js";
|
|
161
|
-
import { TaskCollaborationDelivery } from "../tasks/task-collaboration-delivery.js";
|
|
162
|
-
import { TaskMainUpdateExhaustedError } from "../tasks/task-main-update-retry.js";
|
|
163
|
-
import { TaskMainUpdateDelivery } from "../tasks/task-main-update-delivery.js";
|
|
164
|
-
import { allowsPersonalTaskNotification, personalReplyNotification, personalRunDelegated } from "../personal-agent/notifications.js";
|
|
165
|
-
import { TaskMainUpdateDecisionService } from "../tasks/task-main-update-decision-service.js";
|
|
166
|
-
import { selectTaskMainUpdateAttempt, submitAndConfirmTaskMainUpdate } from "../tasks/task-main-update-input.js";
|
|
167
170
|
import { checkAppContextAccess, prepareAppContext } from "./service/app-context-access.js";
|
|
168
|
-
import { applyAutomaticVoiceLanguage, inferProductLanguageFromEnvironment, initializeVoiceDefaults } from "../voice/language-profile.js";
|
|
169
|
-
import { HomeAdviceGenerator } from "../home-intelligence/generator.js";
|
|
170
|
-
import { HomeIntelligenceHost } from "../home-intelligence/host.js";
|
|
171
|
-
import { HomeSnapshotBuilder } from "../home-intelligence/snapshot.js";
|
|
172
|
-
import { HomeCapabilityPreflightService } from "../home-intelligence/capability-preflight.js";
|
|
173
171
|
import crypto from "node:crypto";
|
|
174
172
|
//#region src/gateway/service.ts
|
|
175
173
|
init_session_repository();
|
|
@@ -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();
|
|
@@ -3,8 +3,8 @@ import { init_logger } from "../../utils/logger.js";
|
|
|
3
3
|
import { readClarificationPresentation } from "../../../packages/gateway-contract/src/clarifications.js";
|
|
4
4
|
import { init_src } from "../../../packages/gateway-contract/src/index.js";
|
|
5
5
|
import { abortEmbeddedRun } from "../../agent/embedded/runs.js";
|
|
6
|
-
import { SideChatError } from "./manager.js";
|
|
7
6
|
import { ChatStreamMapper } from "../chat-stream/mapper.js";
|
|
7
|
+
import { SideChatError } from "./manager.js";
|
|
8
8
|
import { randomUUID } from "node:crypto";
|
|
9
9
|
//#region src/gateway/side-chat/run-service.ts
|
|
10
10
|
init_src();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
|
|
4
3
|
import { homePatternKey } from "./strategy.js";
|
|
5
|
-
import { HomeAdvicePolicy } from "./policy.js";
|
|
6
4
|
import { HomeIntelligenceRepository } from "./repository.js";
|
|
7
5
|
import { HomeOpportunityApplicationService } from "./application-service.js";
|
|
6
|
+
import { HomeAdvicePolicy } from "./policy.js";
|
|
7
|
+
import { HomeAdviceBudgetExceededError, isHomeProseLocalized } from "./generator.js";
|
|
8
8
|
import { buildHomeOpportunityNotification } from "./notification.js";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
10
10
|
//#region src/home-intelligence/host.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { listPortListeners } from "../gateway/ports.js";
|
|
2
1
|
import { isGatewayArgv, parseProcCmdline } from "./gateway-process-argv.js";
|
|
2
|
+
import { listPortListeners } from "../gateway/ports.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
5
|
//#region src/infra/gateway-processes.ts
|
|
@@ -4,8 +4,8 @@ import { init_paths, resolveConfigPath } from "../config/paths.js";
|
|
|
4
4
|
import { loadConfig } from "../config/loader.js";
|
|
5
5
|
import { isRestartEnabled } from "../config/commands.flags.js";
|
|
6
6
|
import { resolveGatewayService } from "../daemon/service.js";
|
|
7
|
-
import { authorizeGatewaySigusr1Restart, writeGatewayRestartIntentSync } from "./restart.js";
|
|
8
7
|
import { findVerifiedGatewayListenerPidsOnPortSync, signalVerifiedGatewayPidSync } from "./gateway-processes.js";
|
|
8
|
+
import { authorizeGatewaySigusr1Restart, writeGatewayRestartIntentSync } from "./restart.js";
|
|
9
9
|
import { refreshGatewayServiceAfterUpdate } from "./update-service-refresh.js";
|
|
10
10
|
//#region src/infra/update-restart.ts
|
|
11
11
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { PACKAGE_VERSION, init_package_version } from "../package-version.js";
|
|
2
2
|
import { runPostUpdateExtensionSync } from "../extensions/update.js";
|
|
3
|
-
import "./update-channels.js";
|
|
4
|
-
import { compareSemver, resolveNpmChannelTag } from "./update-check.js";
|
|
5
3
|
import { readPackageName, readPackageVersion } from "./package-json.js";
|
|
6
4
|
import { runCommandWithTimeout } from "./run-command.js";
|
|
7
5
|
import { XOPC_PACKAGE_NAME, cleanupGlobalRenameDirs, createGlobalInstallEnv, detectGlobalInstallManagerForRoot, resolveGlobalInstallSpec, resolveGlobalInstallTarget } from "./update-global.js";
|
|
8
6
|
import { runGlobalPackageUpdateSteps } from "./package-update-steps.js";
|
|
9
7
|
import { resolveStableNodePath } from "./stable-node-path.js";
|
|
8
|
+
import "./update-channels.js";
|
|
9
|
+
import { compareSemver, resolveNpmChannelTag } from "./update-check.js";
|
|
10
10
|
import { trimLogTail } from "./update-log.js";
|
|
11
11
|
import { maybeRestartGatewayAfterUpdate, prepareGatewayRestart } from "./update-restart.js";
|
|
12
12
|
import path from "node:path";
|
|
@@ -3,9 +3,9 @@ import { init_paths_state, resolveUpdateCheckStatePath } from "../config/paths-s
|
|
|
3
3
|
import { createLogger } from "../utils/logger/index.js";
|
|
4
4
|
import { init_logger } from "../utils/logger.js";
|
|
5
5
|
import { init_write_file_atomic, writeTextAtomic } from "./write-file-atomic.js";
|
|
6
|
-
import { acquireUpdateLock } from "./update-lock.js";
|
|
7
6
|
import { normalizeUpdateChannel } from "./update-channels.js";
|
|
8
7
|
import { compareSemver, detectInstallKind, resolveNpmChannelTag, resolvePackageRoot } from "./update-check.js";
|
|
8
|
+
import { acquireUpdateLock } from "./update-lock.js";
|
|
9
9
|
import { createHash, randomUUID } from "node:crypto";
|
|
10
10
|
import { readFile } from "node:fs/promises";
|
|
11
11
|
//#region src/infra/update-startup.ts
|
|
@@ -3,11 +3,11 @@ import { init_logger } from "../utils/logger.js";
|
|
|
3
3
|
import { localizeNotification } from "../../packages/gateway-contract/src/notifications.js";
|
|
4
4
|
import { init_src } from "../../packages/gateway-contract/src/index.js";
|
|
5
5
|
import { getOrCreateGatewayIdentity } from "../storage/sqlite/gateway-identity-repository.js";
|
|
6
|
+
import { flushClarificationNotifications, isClarificationNotificationActionable } from "./clarification.js";
|
|
6
7
|
import { getNotificationDevice, listDeliverableNotificationDevices } from "./device-store.js";
|
|
8
|
+
import { sendHarmonyPush } from "./harmony-push.js";
|
|
7
9
|
import { notificationPlanFromGatewayEvent } from "./planner.js";
|
|
8
10
|
import { cancelNotificationDelivery, createNotificationEvent, expireUndeliverableNotificationDeliveries, listDueNotificationDeliveries, markNotificationDeliveryAccepted, markNotificationDeliveryDead, pruneNotificationEvents, rescheduleNotificationDelivery } from "./store.js";
|
|
9
|
-
import { sendHarmonyPush } from "./harmony-push.js";
|
|
10
|
-
import { flushClarificationNotifications, isClarificationNotificationActionable } from "./clarification.js";
|
|
11
11
|
//#region src/notifications/service.ts
|
|
12
12
|
init_src();
|
|
13
13
|
init_logger();
|
|
@@ -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 ["Preserve a failed operation as a failure in every rewrite and summary. Say that it failed or could not be completed; do not soften it into merely no findings, waiting or still checking. Hiding internal dispatch details must never hide the failure. Keep known partial results and whether a retry actually started; do not imply an automatic retry or continuation.", "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.", "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,5 +1,9 @@
|
|
|
1
1
|
//#region src/personal-agent/reply-style.ts
|
|
2
2
|
const PERSONAL_REPLY_STYLE_RULES = [
|
|
3
|
+
"Preserve a failed operation as a failure in every rewrite and summary. Say that it failed or could not be completed; do not soften it into merely no findings, waiting or still checking. Hiding internal dispatch details must never hide the failure. Keep known partial results and whether a retry actually started; do not imply an automatic retry or continuation.",
|
|
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.",
|
|
4
8
|
"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
9
|
"Interpret short replies in context; an acknowledgement is not a new task, cancellation, or request for detail. Continue accepted offers and honor stop requests.",
|
|
@@ -9,6 +13,12 @@ const PERSONAL_REPLY_STYLE_RULES = [
|
|
|
9
13
|
];
|
|
10
14
|
const PERSONAL_REPLY_EXAMPLES = `Examples; use evidence.
|
|
11
15
|
<examples>
|
|
16
|
+
<example>Context: Report export failed, no file created and no retry initiated. User: 说短一点。 Assistant: 导出失败,还没有生成文件。</example>
|
|
17
|
+
<example>Context: Support team is handling a ticket; no request or capability for follow-up. User: 谁在处理,现在什么进度? Assistant: 客服团队正在处理,目前还没有处理结果。</example>
|
|
18
|
+
<example>Context: Lookup not started. User: 查一下这个问题。 Assistant: 我来查一下。</example>
|
|
19
|
+
<example>Context: Internal lookup confirmed running; no findings yet. User: 查得怎么样了? Assistant: 我正在查,目前还没有确认的结果。</example>
|
|
20
|
+
<example>Context: Lookup queued, not running. User: 已经开始查了吗? Assistant: 还没有,查询还在等待开始。</example>
|
|
21
|
+
<example>Context: Worker returned leads, not independently verified. User: 有结果了吗? Assistant: 目前查到一些线索,具体原因还没确认。</example>
|
|
12
22
|
<example>Context: Recipient unclear. User: 发给他。 Assistant: 你指的是刚才提到的哪一位?</example>
|
|
13
23
|
<example>Context: Mail partly retrieved; auth expired. Assistant: 已经查到的几封邮件在下面。剩下的因为连接过期暂时没查完;重新连接后才能接着看。</example>
|
|
14
24
|
<example>User: 写一段骑士在暴风雨前鼓舞同伴的独白。 Assistant: 雨还没有落下,诸位,可我已听见你们盾牌上未来的雷声。今夜守住这座桥,桥后的灯火便不会熄灭。</example>
|