@xopcai/xopc 0.0.388 → 0.0.389
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/_locales/en/messages.json +6 -1
- package/dist/browser-ext/_locales/zh_CN/messages.json +6 -1
- package/dist/browser-ext/dist/assets/{page-context-BeworyNB.js → page-context-A5RCibM_.js} +1 -1
- package/dist/browser-ext/dist/background.js +1 -1
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +98 -53
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/adapters/cli-login.js +3 -3
- package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +2 -2
- package/dist/extensions/telegram/src/outbound-sender.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +7 -5
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/extensions/weixin/src/api/api.js +2 -2
- package/dist/extensions/weixin/src/auth/accounts.js +12 -12
- package/dist/extensions/weixin/src/messaging/debug-mode.js +5 -5
- package/dist/extensions/weixin/src/messaging/inbound.js +11 -11
- package/dist/gateway/static/root/assets/{activity-store-CB2X4Gmu.js → activity-store-dvik6t7Z.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-44LqtGte.js → agent-avatar-dicebear-bWMd5TDC.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-2VA4eKPf.js → agent-defaults-settings-panel-Ds0Ue2FB.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-DRhTOw_O.js → agent-plugin-dialog-UunIxc1q.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-BemUH_Yf.js → agents-BLRM4o-U.js} +3 -3
- package/dist/gateway/static/root/assets/{agents-admin-api-BkULgC6Q.js → agents-admin-api-BlNGyXpm.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-CR_cc7rj.js → app-management-settings-panel-Dmy828Pe.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-CYofu-su.js → appearance-settings-CUAdx44v.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-CHjWvDjk.js → apps-page-D5zDB6gp.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-De0ND0oA.js → archive-plugin-Du6dJNcl.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BIF0skon.js → automations-page-BO8Ig5Z4.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-DOwtT4sS.js → automations-workspace-UcCneEs3.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-Do535ZGW.js → binary-plugins-D7VJjwnr.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-C_RD603p.js → block-editor-CaJlWTAn.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automation-inputs-B9M1RYTm.js → browser-automation-inputs-iyMBJmQX.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-B-Ezk_8l.js → browser-automations-page-BjvQnYfO.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-BSmmTBn4.js → browser-settings-page-D5ZghI28.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-BX1rCiVm.js → capabilities-CEH1AnXc.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-CW389yo6.js → capabilities-MCKRMZDK.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-page-xZgTYYDn.js → capabilities-page-MC8qIrXo.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-oqkuOjcR.js → capabilities-settings-panel-Blz3hEzp.js} +1 -1
- package/dist/gateway/static/root/assets/{capability-header-actions-Chuhscdb.js → capability-header-actions-BIA0Lwt5.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-Dq2C2k9M.js → channels-DSg_iCVC.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-srB_M-aQ.js → chat-terminal-dock-C97SJEwd.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-Af00Kjc0.js → computer-settings-page-DvY3zgyY.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-3W0_7-4L.js → connector-service-page-St2-Fj3y.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-DXk-GAsd.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-DBgZBmik.js → date-picker-C0-D80ny.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-BDJ406kH.js → dependency-picker-CNd7mwMU.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-Do1XPn6U.js → desktop-pet-C-2wDANn.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-LKeVh6OH.js → desktop-pet-settings-DyhxLrdJ.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-CvZpnSVw.js → device-pairing-wizard-BeSuq__I.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BMLHoL6g.js → directory-picker-path-field-CNivVIPT.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-B0wTBCx4.js → extension-debug-page-CGYO3JPw.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-vR2r4uUB.js → extension-page-Dc51ALAg.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-CJZ5EVpQ.js → extension-provider-BXPILdlw.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-1tbWe5xQ.js → extension-settings-page-jYu6qpY2.js} +1 -1
- package/dist/gateway/static/root/assets/{fallback-models-CW6a1-GK.js → fallback-models-CoyzvDo7.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-D0tBjSgj.js → gateway-config-swr-Bc2MytsF.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-realtime-BnHraJ3O.js → gateway-realtime-BFK-vlME.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-C3vH-Iup.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-settings-vQWTUx2c.js → gateway-settings-JlT1dlSj.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-C1DQsIH3.js → gateway-startup-retry-BDPMttPx.js} +1 -1
- package/dist/gateway/static/root/assets/{highlighted-body-KQOG7T2V-BM__yiMn.js → highlighted-body-KQOG7T2V-DAlRGMge.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-hfWuVtcG.js → home-page-DOVl8s-1.js} +1 -1
- package/dist/gateway/static/root/assets/{image-generation-api-DodU6GNC.js → image-generation-api-BZBiYDmV.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-CuR6RSUM.js → imports-page-DgdBTp_0.js} +1 -1
- package/dist/gateway/static/root/assets/{index-CNH8vwcY.js → index-CmC8JkSM.js} +108 -108
- package/dist/gateway/static/root/assets/index-Dgzc0oBu.css +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-DpyqH2cP.js → keyboard-shortcuts-settings-BYYC9Qmw.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-B4hIoxV8.js → local-app-workbench-page-BKZfn-MS.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-S7lUpENM.js → local-apps-page-BU8pUsVM.js} +1 -1
- package/dist/gateway/static/root/assets/{local-session-drafts-Be4BGM4Z.js → local-session-drafts-kFc_MAA9.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-uRu_DsWm.js → locale-store-Dr43FCty.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-CSlZT1-L.js → logs-page-BSepiACn.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-BYCL5CwV.js → management-settings-dE_ykPNY.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-CBjl-XEc.js → markdown-view-CdKlPjJM.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-BombFqsX.js → media-plugins-DE9zt88i.js} +1 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-65SE6j-_.js +1 -0
- package/dist/gateway/static/root/assets/messages-DlTNQI92.js +3 -0
- package/dist/gateway/static/root/assets/models-hub-cache-C7FAsEe_.js +1 -0
- package/dist/gateway/static/root/assets/{note-detail-panel-CJ5Earr_.js → note-detail-panel-D9oqhdyk.js} +3 -3
- package/dist/gateway/static/root/assets/{notes-api-BlGP533W.js → notes-api-BHouNL6-.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-page-CPGk8-n1.js → notes-page-Bd4_7ph8.js} +1 -1
- package/dist/gateway/static/root/assets/{page-context-capture-button-C2bSXVbz.js → page-context-capture-button-TQr8NnSc.js} +1 -1
- package/dist/gateway/static/root/assets/{personal-page-BjTt5R3s.js → personal-page-BvWzq4Wp.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-Cn16lm5l.js → product-open-page-BEl6syFp.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-CowgeuoG.js → product-preview-content-BxSHnbqz.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-CyKx4PyN.js → project-detail-page-D-qkIXVT.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page--_hXxUMC.js → projects-page-BQtw1Dfn.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-CYqA7bfl.js → registry-api-BD5IgDOA.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-Bq_eqQYf.js → remote-access-hub-CYFNz0Jc.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-api-zzoxjSuR.js → runtime-tools-api-CjTRoQWT.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-BgCATci5.js → runtime-tools-settings-panel-Qq_NyYx_.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-DxE3jRPR.js → scenes-page-hGr-ppYk.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-I6pzJJzg.js → schema-form-ByG-R6N2.js} +1 -1
- package/dist/gateway/static/root/assets/{send-session-input-C293-Hbx.js → send-session-input-UAVStisp.js} +1 -1
- package/dist/gateway/static/root/assets/{session-api-CzVTrG8n.js → session-api-DvgEiNRS.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-BOb1tC_Z.js +16 -0
- package/dist/gateway/static/root/assets/{sessions-page-CQkGFnJM.js → sessions-page-CpX1Rluw.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-D2s_MlxR.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-Dy5oQDbx.js → settings-page-C1e9m23j.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-CrAazq4r.js → setup-status-panel-BiHRYDHq.js} +1 -1
- package/dist/gateway/static/root/assets/{share-link-dialog-BKGI8Kr0.js → share-link-dialog-kE_6v5Dp.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-BF2WaO43.js → share-preview-page-BT-_yR1h.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-api-B0HlMAzi.js → shares-api-Dg_SqHQE.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-BNMhs-Vd.js → shares-settings-DfcAu08T.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-api-RIjxQs-Y.js → skill-api-BslUYMnX.js} +1 -1
- package/dist/gateway/static/root/assets/{skill-reload-api-CEJx5rPd.js → skill-reload-api-BQ2rTOP1.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page-XVOxILQn.js → skills-page-CvKc5nBN.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-C8aLy8T_.js → system-settings-panel-GpbPfWwo.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-o1O2IDVP.js → task-detail-page-5B5ZVAu0.js} +1 -1
- package/dist/gateway/static/root/assets/{task-expandable-content-C9ohICpw.js → task-expandable-content-DJrrEBB4.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-BUfzeDvL.js → theme-store-BKpYnggg.js} +1 -1
- package/dist/gateway/static/root/assets/{tracing-settings-page-C2q5B3Kp.js → tracing-settings-page-D71w7dwV.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-JkDu1wiC.js → tunnel-api-BV46CvS8.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-B8K6Y4ro.js → usage-page-rMuwNpJi.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-DgbCgsao.js → use-autosave-CzyqRffr.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-rgW7h4sD.js → use-composer-attachments-Dviq-1f6.js} +1 -1
- package/dist/gateway/static/root/assets/{use-file-preview-expanded-DSKIxfz9.js → use-file-preview-expanded-D5Kk7Hon.js} +2 -2
- package/dist/gateway/static/root/assets/{user-model-page-C1QX47VR.js → user-model-page-Dhqw3v_u.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-4AIkbm9R.js → voice-api-key-field-DWtbmacd.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-Kw1pYlLN.js → voice-config-api-DnIjZm_9.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-BshsEDRO.js → work-discovery-overlay-ChEG71hz.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-CRG3paWy.js → workflow-run-setup-panel-pdiRKLxP.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-c-AoSVzm.js → workflows-page-D9LMxINt.js} +1 -1
- package/dist/gateway/static/root/assets/{workspace-api-JWHOFos6.js → workspace-api-CZDvu7uA.js} +2 -2
- package/dist/gateway/static/root/assets/{xopc-cloud-account-card-PDSIicr1.js → xopc-cloud-account-card-CbUgg1SK.js} +1 -1
- package/dist/gateway/static/root/index.html +27 -27
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/clarifications.js +79 -2
- package/dist/packages/realtime-protocol/src/voice.js +13 -2
- package/dist/src/agent/agent-manager.js +25 -21
- package/dist/src/agent/agent-scope.js +2 -2
- package/dist/src/agent/background-review/prompts.js +5 -1
- package/dist/src/agent/background-review/run-background-review.js +50 -12
- package/dist/src/agent/child-agent-factory.js +1 -1
- package/dist/src/agent/coding/repository-instructions.js +1 -1
- package/dist/src/agent/context/coordinator.js +2 -2
- package/dist/src/agent/context/execution-context.js +4 -4
- package/dist/src/agent/context/execution-scope.js +1 -1
- package/dist/src/agent/context/project-context.js +3 -3
- package/dist/src/agent/data-acquisition/service.js +1 -1
- package/dist/src/agent/embedded/codemode-extension.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +5 -5
- package/dist/src/agent/embedded/run-turn.js +14 -14
- package/dist/src/agent/embedded/session-runner.d.ts +4 -3
- package/dist/src/agent/embedded/session-runner.js +9 -4
- package/dist/src/agent/embedded/session-tool-result-guard.js +2 -2
- package/dist/src/agent/embedded/tool-result-truncation.js +1 -1
- package/dist/src/agent/embedded/xopc-tools-bridge.js +1 -1
- package/dist/src/agent/external-tools/cliProvider.js +3 -3
- package/dist/src/agent/external-tools/composio-provider.js +2 -2
- package/dist/src/agent/external-tools/endpoint-provider.js +4 -4
- package/dist/src/agent/external-tools/gateway-tools.js +2 -2
- package/dist/src/agent/image/generation/openai-images-provider.js +1 -1
- package/dist/src/agent/image/generation/runtime.js +1 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/image/load-image-media.js +1 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +3 -3
- package/dist/src/agent/inbound/inbound-loop.js +2 -2
- package/dist/src/agent/index.js +3 -3
- package/dist/src/agent/mcp/connection-drafts.d.ts +50 -0
- package/dist/src/agent/mcp/connection-drafts.js +278 -0
- package/dist/src/agent/mcp/connection-setup.d.ts +5 -2
- package/dist/src/agent/mcp/connection-setup.js +7 -5
- package/dist/src/agent/mcp/credential-store.d.ts +6 -0
- package/dist/src/agent/mcp/credential-store.js +24 -0
- package/dist/src/agent/mcp/native-mcp.d.ts +6 -1
- package/dist/src/agent/mcp/native-mcp.js +6 -0
- package/dist/src/agent/mcp/tool-catalog.d.ts +7 -2
- package/dist/src/agent/mcp/tool-catalog.js +25 -15
- package/dist/src/agent/memory/context-budget.js +1 -1
- package/dist/src/agent/memory/context-recovery.js +1 -1
- package/dist/src/agent/memory/index.js +1 -1
- package/dist/src/agent/orchestration/llm-turn-retry.js +1 -1
- package/dist/src/agent/prompt/response-language.js +1 -1
- package/dist/src/agent/prompt/service-prompt-builder.js +3 -3
- package/dist/src/agent/sandbox/exec-policy.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +4 -4
- package/dist/src/agent/service/process-direct-streaming.js +6 -6
- package/dist/src/agent/service/webchat-tts.js +2 -2
- package/dist/src/agent/service.js +21 -21
- package/dist/src/agent/session/session-config-service.js +3 -3
- package/dist/src/agent/session/session-hydrator.js +1 -1
- package/dist/src/agent/session/session-inspector.js +1 -1
- package/dist/src/agent/skills/filesystem-watcher.js +1 -1
- package/dist/src/agent/skills/hub-pull.js +2 -2
- package/dist/src/agent/skills/marketplace/adapters/store/adapter.js +1 -1
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.js +1 -1
- package/dist/src/agent/source-context/index.js +1 -1
- package/dist/src/agent/tasks/task-judge-service.js +7 -7
- package/dist/src/agent/tools/clarify-tool.d.ts +2 -3
- package/dist/src/agent/tools/clarify-tool.js +15 -9
- package/dist/src/agent/tools/cli-clarify.d.ts +0 -3
- package/dist/src/agent/tools/cli-clarify.js +18 -32
- package/dist/src/agent/tools/create-share-tool.js +3 -3
- package/dist/src/agent/tools/dataBatch.js +1 -1
- package/dist/src/agent/tools/delegate-tool.js +3 -3
- package/dist/src/agent/tools/executor.js +1 -1
- package/dist/src/agent/tools/factory.js +19 -19
- package/dist/src/agent/tools/image-generate-tool.js +3 -3
- package/dist/src/agent/tools/index.js +6 -6
- package/dist/src/agent/tools/list-dir.js +1 -1
- package/dist/src/agent/tools/personal-attention-tool.js +2 -2
- package/dist/src/agent/tools/personal-request-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-request-tool.js +4 -4
- package/dist/src/agent/tools/personal-result-tool.js +1 -1
- package/dist/src/agent/tools/personal-task-tool.d.ts +4 -4
- package/dist/src/agent/tools/personal-task-tool.js +6 -6
- package/dist/src/agent/tools/publish-artifacts.js +2 -2
- package/dist/src/agent/tools/read.js +2 -2
- package/dist/src/agent/tools/review-workspace.js +1 -1
- package/dist/src/agent/tools/send-media.js +1 -1
- package/dist/src/agent/tools/skills-tools.js +1 -1
- package/dist/src/agent/tools/task-collaboration-tool.js +3 -3
- package/dist/src/agent/tools/tts-tool.js +1 -1
- package/dist/src/agent/tools/user-context-tool.js +1 -1
- package/dist/src/agent/tools/write.js +2 -2
- package/dist/src/agent/tools/xopc-use-tool.js +4 -4
- package/dist/src/agent/transcript/index.js +2 -2
- package/dist/src/agent/transcript/transcript-hygiene.js +2 -2
- package/dist/src/agent/workflow/subagent-runner.js +1 -1
- package/dist/src/agent-matching/delegation-service.js +1 -1
- package/dist/src/ai-assist/text-assist.js +1 -1
- package/dist/src/auth/oauth/xopc-cloud.js +2 -2
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/capabilities/write.d.ts +2 -2
- package/dist/src/automations/domain/index.js +1 -1
- package/dist/src/automations/domain/validation.d.ts +6 -6
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/automations/draft/automation-draft-validator.d.ts +2 -2
- package/dist/src/automations/index.js +2 -2
- package/dist/src/browser/native-messaging-host.js +1 -1
- package/dist/src/capabilities/store-connector.js +2 -2
- package/dist/src/channels/attachments/voice-stt-webchat.js +2 -2
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/outbound-sender.js +1 -1
- package/dist/src/channels/pairing/allow-from-file.js +9 -9
- package/dist/src/channels/pairing/pairing-store.js +6 -6
- package/dist/src/chat-commands/builtins/config.js +4 -4
- package/dist/src/chat-commands/builtins/session.js +1 -1
- package/dist/src/chat-commands/builtins/thinking.js +1 -1
- package/dist/src/chat-commands/builtins/tts.js +1 -1
- package/dist/src/chat-commands/context.js +2 -2
- package/dist/src/chat-commands/index.js +3 -3
- package/dist/src/cli/commands/agent.js +7 -7
- package/dist/src/cli/commands/config.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/channel-plugins.js +1 -1
- package/dist/src/cli/commands/doctor/checks/gateway-health.js +1 -1
- 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 +2 -2
- package/dist/src/cli/commands/image.js +1 -1
- package/dist/src/cli/commands/init.js +1 -1
- package/dist/src/cli/commands/mcp.js +1 -1
- package/dist/src/cli/commands/models.js +2 -2
- package/dist/src/cli/commands/onboard/channels/registry.js +1 -1
- package/dist/src/cli/commands/onboard/model.d.ts +1 -1
- package/dist/src/cli/commands/onboard/model.js +21 -2
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +1 -1
- package/dist/src/cli/commands/skills.js +2 -2
- package/dist/src/cli/commands/tunnel.js +4 -4
- package/dist/src/cli/extension-cli-register.js +6 -6
- package/dist/src/cli/utils/gateway-client.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/cli/utils/session.js +1 -1
- package/dist/src/computer/runtime.js +1 -1
- package/dist/src/config/index.js +5 -5
- package/dist/src/config/loader.js +2 -2
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.d.ts +7 -1
- package/dist/src/config/schema.js +7 -5
- package/dist/src/connectors/cli/authorization.js +1 -1
- package/dist/src/connectors/cli/runtime.js +1 -1
- package/dist/src/connectors/composio-sessions.js +1 -1
- package/dist/src/connectors/composio.js +1 -1
- package/dist/src/connectors/connected-source-ingestion.js +4 -4
- package/dist/src/connectors/connected-source-understanding.js +4 -4
- package/dist/src/connectors/connection-recovery-service.js +4 -4
- package/dist/src/connectors/content-enrichment.js +1 -1
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/learning-coordinator.js +1 -1
- package/dist/src/discussions/live-worker.js +1 -1
- package/dist/src/discussions/sealer.js +1 -1
- package/dist/src/endpoint-tools/index.js +1 -1
- package/dist/src/endpoint-tools/runtime.js +2 -2
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/agent-plugins/auth.js +1 -1
- package/dist/src/extensions/agent-plugins/credentials.js +1 -1
- package/dist/src/extensions/agent-plugins/source-http-fetch.js +1 -1
- package/dist/src/extensions/api.js +4 -4
- package/dist/src/extensions/bundled-extension-activation.js +1 -1
- package/dist/src/extensions/index.js +3 -3
- package/dist/src/extensions/install.js +1 -1
- package/dist/src/extensions/loader.js +2 -2
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agents-admin.js +1 -1
- package/dist/src/gateway/chat-stream/mapper.js +2 -2
- package/dist/src/gateway/chat-stream/protocol.d.ts +2 -3
- package/dist/src/gateway/clarify-runtime.d.ts +2 -0
- package/dist/src/gateway/clarify-runtime.js +4 -1
- package/dist/src/gateway/device-routes.js +2 -2
- package/dist/src/gateway/ephemeral-clarification-waiter.d.ts +2 -1
- package/dist/src/gateway/ephemeral-clarification-waiter.js +19 -6
- package/dist/src/gateway/file-path-classifier.js +2 -2
- package/dist/src/gateway/global-defaults-admin.js +1 -1
- package/dist/src/gateway/hono/app.js +3 -3
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -1
- package/dist/src/gateway/hono/lib/config-payload.js +4 -4
- package/dist/src/gateway/hono/lib/config-write-lock.d.ts +2 -0
- package/dist/src/gateway/hono/lib/config-write-lock.js +14 -0
- package/dist/src/gateway/hono/routes/agent-stream.js +4 -9
- package/dist/src/gateway/hono/routes/agents.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/commands-skills.js +4 -4
- package/dist/src/gateway/hono/routes/config-patch/gateway.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +4 -4
- package/dist/src/gateway/hono/routes/config.js +7 -5
- package/dist/src/gateway/hono/routes/connectors.js +1 -1
- package/dist/src/gateway/hono/routes/context-sources.js +2 -2
- package/dist/src/gateway/hono/routes/endpoint-tools.js +1 -1
- package/dist/src/gateway/hono/routes/home.js +1 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +74 -7
- package/dist/src/gateway/hono/routes/memory-learning.js +3 -3
- 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 +1 -1
- package/dist/src/gateway/hono/routes/projects.js +3 -3
- package/dist/src/gateway/hono/routes/runtime-tools.js +1 -1
- package/dist/src/gateway/hono/routes/session-command-handler.js +2 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +5 -5
- package/dist/src/gateway/hono/routes/sessions.js +3 -3
- package/dist/src/gateway/hono/routes/shares.js +2 -2
- package/dist/src/gateway/hono/routes/side-chats.js +5 -4
- package/dist/src/gateway/hono/routes/site-shares.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +7 -7
- package/dist/src/gateway/hono/routes/voice.js +7 -7
- package/dist/src/gateway/hono/routes/workflows.js +1 -1
- package/dist/src/gateway/index.js +1 -1
- package/dist/src/gateway/lock.js +11 -11
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/ports.js +6 -6
- package/dist/src/gateway/run-loop.js +1 -1
- package/dist/src/gateway/scenes/mailContext.js +1 -1
- package/dist/src/gateway/scenes/slackThreadSource.js +1 -1
- package/dist/src/gateway/server.js +1 -1
- package/dist/src/gateway/service/agent-runner.d.ts +5 -4
- package/dist/src/gateway/service/agent-runner.js +35 -19
- package/dist/src/gateway/service/config-coordinator.d.ts +619 -1
- package/dist/src/gateway/service/config-coordinator.js +38 -26
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.js +4 -4
- package/dist/src/gateway/service/session-command-service.js +2 -2
- package/dist/src/gateway/service.d.ts +6 -3
- package/dist/src/gateway/service.js +45 -44
- package/dist/src/gateway/session-context-summary.js +4 -4
- package/dist/src/gateway/side-chat/run-service.d.ts +2 -1
- package/dist/src/gateway/side-chat/run-service.js +6 -3
- package/dist/src/gateway/side-chat/types.d.ts +3 -3
- package/dist/src/gateway/workspace-editor-path.js +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.d.ts +2 -2
- package/dist/src/gateway/xopc-cloud-capability-setup.js +7 -4
- package/dist/src/home-intelligence/generator.js +2 -2
- package/dist/src/imports/compatibility.js +1 -1
- package/dist/src/imports/inventory.js +3 -3
- package/dist/src/imports/productImport.js +2 -2
- package/dist/src/imports/runtime.js +1 -1
- package/dist/src/infra/gateway-processes.js +2 -2
- package/dist/src/infra/path-env.js +3 -3
- package/dist/src/infra/update-global.js +9 -9
- package/dist/src/knowledge/connected-knowledge-pipeline.js +2 -2
- package/dist/src/knowledge/index.js +1 -1
- package/dist/src/knowledge-memory/repository.js +1 -1
- package/dist/src/local-apps/service.js +2 -2
- package/dist/src/mcp/gateway-http-client.js +1 -1
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/memory-learning/service.js +3 -2
- package/dist/src/memory-learning/source-learning.js +4 -4
- package/dist/src/memory-learning/task-receipts.js +1 -1
- package/dist/src/notes/agent-context.js +4 -4
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.js +3 -3
- package/dist/src/personal-agent/capability-service.js +2 -2
- package/dist/src/personal-agent/proactivity/routes.js +1 -1
- package/dist/src/personal-agent/proactivity/service.js +7 -7
- package/dist/src/personal-agent/prompt-context.js +7 -7
- package/dist/src/personal-agent/prompts.js +1 -1
- package/dist/src/personal-agent/reply-composer.js +9 -9
- package/dist/src/personal-agent/request-delivery.js +2 -2
- package/dist/src/personal-agent/request-service.js +6 -6
- package/dist/src/personal-agent/result-reader.js +1 -1
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/personal-agent/task-cancel.js +1 -1
- package/dist/src/platform/index.js +1 -1
- package/dist/src/projects/index.js +1 -1
- package/dist/src/projects/project-agent-suggestion.js +1 -1
- package/dist/src/projects/project-service.js +1 -1
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/projects/workspace.js +1 -1
- package/dist/src/providers/model-reference-auditor.js +1 -1
- package/dist/src/providers/model-registry.js +1 -1
- package/dist/src/realtime/runtime.js +1 -1
- package/dist/src/remote-access/exposure-manager.js +1 -1
- package/dist/src/routing/agent-session-key.js +1 -1
- package/dist/src/scenes/execution.d.ts +1 -1
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +4 -4
- package/dist/src/scenes/taskFollowUp/contracts.d.ts +2 -2
- package/dist/src/scenes/taskFollowUp/resources.js +2 -2
- package/dist/src/scenes/taskFollowUp/service.d.ts +5 -5
- package/dist/src/scenes/taskFollowUp/service.js +6 -6
- package/dist/src/scenes/templates.d.ts +2 -2
- package/dist/src/session/index.js +2 -2
- package/dist/src/session/init-session-turn.js +1 -1
- package/dist/src/session/resolve-session.js +1 -1
- package/dist/src/session/store.js +5 -5
- package/dist/src/session/thinking-resolve.js +1 -1
- package/dist/src/share/hosted-session-share.js +2 -2
- package/dist/src/share/session-share-service.js +1 -1
- package/dist/src/share/share-store.js +1 -1
- package/dist/src/share/share-thumbnail.js +1 -1
- package/dist/src/share/site-share-store.js +1 -1
- package/dist/src/storage/sqlite/clarification-wait-repository.d.ts +3 -5
- package/dist/src/storage/sqlite/clarification-wait-repository.js +48 -28
- package/dist/src/storage/sqlite/connection.js +9 -9
- package/dist/src/tasks/capabilities/management.d.ts +2 -2
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/relations.d.ts +6 -6
- package/dist/src/tasks/capabilities/write.d.ts +6 -6
- package/dist/src/tasks/capabilities/write.js +1 -1
- package/dist/src/tasks/home-query-service.js +2 -2
- package/dist/src/tasks/index.js +4 -4
- package/dist/src/tasks/task-allocation-service.js +5 -5
- package/dist/src/tasks/task-application-service.js +6 -6
- package/dist/src/tasks/task-collaboration-delivery.js +1 -1
- package/dist/src/tasks/task-context-assembler.js +2 -2
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-handoff.js +5 -5
- package/dist/src/tasks/task-main-update-decision-service.js +3 -3
- package/dist/src/tasks/task-model-call.js +1 -1
- package/dist/src/tasks/task-research-result.js +4 -4
- package/dist/src/tasks/task-result-delivery-repository.js +1 -1
- package/dist/src/tasks/task-result-delivery-service.js +2 -2
- package/dist/src/tasks/task-run-coordinator.js +4 -4
- package/dist/src/tasks/task-run-dispatcher.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +13 -13
- package/dist/src/tui/backends/gateway-realtime-backend.js +2 -2
- package/dist/src/tui/extension-host/load-extensions.js +2 -2
- package/dist/src/tui/tui-agent-events.js +1 -1
- package/dist/src/tui/tui-commands.js +5 -5
- package/dist/src/tui/tui-picker-overlay.js +1 -1
- package/dist/src/tui/tui-skills-autocomplete.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +4 -4
- package/dist/src/tui/tui.js +6 -6
- package/dist/src/tunnel/gateway-lifecycle.js +1 -1
- package/dist/src/user-context/access-policy.js +2 -2
- package/dist/src/user-context/config.d.ts +2 -2
- package/dist/src/user-model/bootstrap.js +1 -1
- package/dist/src/user-model/capture/executor.js +1 -1
- package/dist/src/user-model/capture/semantic.d.ts +8 -1
- package/dist/src/user-model/capture/semantic.js +26 -5
- package/dist/src/user-model/index.js +2 -2
- package/dist/src/voice/realtime/agentEngine.js +4 -2
- package/dist/src/voice/realtime/memory-context.js +7 -7
- package/dist/src/voice/realtime/omniEngine.js +2 -2
- package/dist/src/voice/realtime/runtime.js +4 -4
- package/dist/src/voice/stt/index.js +2 -2
- package/dist/src/voice/stt/preflight.js +1 -1
- package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
- package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
- package/dist/src/voice/stt/transcribe-core.js +1 -1
- package/dist/src/voice/tts/index.js +3 -3
- package/dist/src/voice/tts/merge-config.js +1 -1
- package/dist/src/voice/tts/payload.js +1 -1
- package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
- package/dist/src/voice/tts/speak-core.js +1 -1
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/service.js +7 -7
- package/dist/src/workflows/context/workflow-context.js +1 -1
- package/dist/src/workflows/engine/workflow-engine.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +7 -7
- package/dist/src/workflows/service/workflow-session-bridge.js +2 -2
- package/package.json +3 -3
- package/dist/gateway/static/root/assets/connectors-page-BZk-Gou5.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-BVriF6Zj.js +0 -1
- package/dist/gateway/static/root/assets/index-DBRwvWzm.css +0 -1
- package/dist/gateway/static/root/assets/mermaid-MCJ5UELQ-i9N5shss.js +0 -1
- package/dist/gateway/static/root/assets/messages-DTqbfje6.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-cache-Ct6X5zmB.js +0 -1
- package/dist/gateway/static/root/assets/session-manager-COd9RECl.js +0 -16
- package/dist/gateway/static/root/assets/settings-advanced-gate-Dtlsvsci.js +0 -1
|
@@ -26,6 +26,7 @@ export declare class GatewayConfigCoordinator {
|
|
|
26
26
|
private configReloader;
|
|
27
27
|
private channelReloadFlushPromise;
|
|
28
28
|
private channelReloadPending;
|
|
29
|
+
private configWrite;
|
|
29
30
|
constructor(opts: GatewayConfigCoordinatorOptions);
|
|
30
31
|
/** Start the fs.watch-based reloader (idempotent — only starts once). */
|
|
31
32
|
startHotReloader(): void;
|
|
@@ -34,10 +35,627 @@ export declare class GatewayConfigCoordinator {
|
|
|
34
35
|
reloaded: boolean;
|
|
35
36
|
error?: string;
|
|
36
37
|
}>;
|
|
37
|
-
saveConfig(config: Config
|
|
38
|
+
saveConfig(config: Config, expectedConfig?: {
|
|
39
|
+
userContext: {
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
preferences: {
|
|
42
|
+
responseLanguage: "en" | "auto" | "zh-CN";
|
|
43
|
+
};
|
|
44
|
+
userModel: {
|
|
45
|
+
enabled: boolean;
|
|
46
|
+
writePolicy: "allow" | "deny";
|
|
47
|
+
sensitiveWritePolicy: "allow" | "deny" | "confirm";
|
|
48
|
+
showMemoryReferences: boolean;
|
|
49
|
+
processingPolicy: "local_only" | "remote_allowed";
|
|
50
|
+
extraction: {
|
|
51
|
+
reviewIntervalTurns: number;
|
|
52
|
+
maxHistoryMessages: number;
|
|
53
|
+
maxDurationMs: number;
|
|
54
|
+
};
|
|
55
|
+
maintenance: {
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
temporalSweepMinutes: number;
|
|
58
|
+
dailyTime: string;
|
|
59
|
+
weeklyDay: "sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat";
|
|
60
|
+
weeklyTime: string;
|
|
61
|
+
evidenceThreshold: number;
|
|
62
|
+
limit: number;
|
|
63
|
+
staleRetentionDays: number;
|
|
64
|
+
timezone?: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
knowledgeMemory: {
|
|
68
|
+
enabled: boolean;
|
|
69
|
+
writePolicy: "allow" | "deny";
|
|
70
|
+
readScopes: ("project" | "session" | "agent" | "workspace" | "global")[];
|
|
71
|
+
contentSources: ("memory" | "connector" | "local_import")[];
|
|
72
|
+
searchStrategy: "local-first" | "external-first" | "fanout" | "local-only" | "external-only";
|
|
73
|
+
searchTimeoutMs: number;
|
|
74
|
+
writeStrategy: "local-first" | "external-first" | "local-only" | "external-only" | "write-through";
|
|
75
|
+
allowExternalWrites: boolean;
|
|
76
|
+
learning?: {
|
|
77
|
+
idleFlushMs: number;
|
|
78
|
+
maxBatchChars: number;
|
|
79
|
+
maxDailyBatches: number;
|
|
80
|
+
};
|
|
81
|
+
allowedProviderIds?: string[];
|
|
82
|
+
autoWriteKinds?: string[];
|
|
83
|
+
};
|
|
84
|
+
contextPlanning: {
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
maxAssertions: number;
|
|
87
|
+
maxKnowledge: number;
|
|
88
|
+
maxChars: number;
|
|
89
|
+
compaction: {
|
|
90
|
+
personalIdle: {
|
|
91
|
+
enabled: boolean;
|
|
92
|
+
idleMs: number;
|
|
93
|
+
triggerThreshold: number;
|
|
94
|
+
cooldownMs: number;
|
|
95
|
+
timeoutMs: number;
|
|
96
|
+
keepRecentTokens: number;
|
|
97
|
+
summaryMaxTokens: number;
|
|
98
|
+
model?: string;
|
|
99
|
+
};
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
triggerThreshold: number;
|
|
102
|
+
reserveTokens: number;
|
|
103
|
+
minMessagesBeforeCompact: number;
|
|
104
|
+
keepRecentTokens: number;
|
|
105
|
+
recentTurnsPreserve: number;
|
|
106
|
+
summaryMaxTokens: number;
|
|
107
|
+
summaryChunkTokens: number;
|
|
108
|
+
summaryTimeoutMs: number;
|
|
109
|
+
summaryRetries: number;
|
|
110
|
+
reasoningLevel: "low" | "off";
|
|
111
|
+
qualityGuard: boolean;
|
|
112
|
+
gapAudit: boolean;
|
|
113
|
+
minToolResultKeepChars: number;
|
|
114
|
+
maxActiveTranscriptBytes: number;
|
|
115
|
+
postCompactionSections: string[];
|
|
116
|
+
model?: string;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
homeIntelligence: {
|
|
120
|
+
enabled: boolean;
|
|
121
|
+
refreshOnContextChange: boolean;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
session: {
|
|
125
|
+
scope: "global" | "per-sender";
|
|
126
|
+
mainKey: string;
|
|
127
|
+
dmScope: "main" | "per-peer" | "per-channel-peer" | "per-account-channel-peer";
|
|
128
|
+
identityLinks?: Record<string, string[]>;
|
|
129
|
+
resetTriggers?: string[];
|
|
130
|
+
reset?: {
|
|
131
|
+
mode?: "idle" | "daily";
|
|
132
|
+
atHour?: number;
|
|
133
|
+
idleMinutes?: number;
|
|
134
|
+
};
|
|
135
|
+
resetByType?: {
|
|
136
|
+
direct?: {
|
|
137
|
+
mode?: "idle" | "daily";
|
|
138
|
+
atHour?: number;
|
|
139
|
+
idleMinutes?: number;
|
|
140
|
+
};
|
|
141
|
+
group?: {
|
|
142
|
+
mode?: "idle" | "daily";
|
|
143
|
+
atHour?: number;
|
|
144
|
+
idleMinutes?: number;
|
|
145
|
+
};
|
|
146
|
+
thread?: {
|
|
147
|
+
mode?: "idle" | "daily";
|
|
148
|
+
atHour?: number;
|
|
149
|
+
idleMinutes?: number;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
resetByChannel?: Record<string, {
|
|
153
|
+
mode?: "idle" | "daily";
|
|
154
|
+
atHour?: number;
|
|
155
|
+
idleMinutes?: number;
|
|
156
|
+
}>;
|
|
157
|
+
storage?: {
|
|
158
|
+
pruneAfterMs?: number;
|
|
159
|
+
maxEntries?: number;
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
channels: Record<string, unknown>;
|
|
163
|
+
gateway: {
|
|
164
|
+
bind?: "custom" | "auto" | "loopback" | "lan" | "tailnet";
|
|
165
|
+
customBindHost?: string;
|
|
166
|
+
port?: number;
|
|
167
|
+
mode?: "local" | "remote";
|
|
168
|
+
remote?: {
|
|
169
|
+
url: string;
|
|
170
|
+
transport: "direct" | "ssh";
|
|
171
|
+
token?: string;
|
|
172
|
+
password?: string;
|
|
173
|
+
sshTarget?: string;
|
|
174
|
+
sshIdentity?: string;
|
|
175
|
+
tlsFingerprint?: string;
|
|
176
|
+
};
|
|
177
|
+
tailscale?: {
|
|
178
|
+
mode: "off" | "serve" | "funnel";
|
|
179
|
+
resetOnExit: boolean;
|
|
180
|
+
consent?: {
|
|
181
|
+
version: string;
|
|
182
|
+
acceptedAt: string;
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
tls?: {
|
|
186
|
+
enabled: boolean;
|
|
187
|
+
autoGenerate: boolean;
|
|
188
|
+
certPath?: string;
|
|
189
|
+
keyPath?: string;
|
|
190
|
+
};
|
|
191
|
+
auth?: {
|
|
192
|
+
mode: "token" | "password" | "none" | "trusted-proxy";
|
|
193
|
+
token?: string;
|
|
194
|
+
password?: string;
|
|
195
|
+
allowTailscale?: boolean;
|
|
196
|
+
rateLimit?: {
|
|
197
|
+
enabled: boolean;
|
|
198
|
+
maxAttempts: number;
|
|
199
|
+
windowMs: number;
|
|
200
|
+
blockDurationMs: number;
|
|
201
|
+
exemptLoopback: boolean;
|
|
202
|
+
burstCoalesceMs: number;
|
|
203
|
+
lockoutMs?: number;
|
|
204
|
+
};
|
|
205
|
+
trustedProxy?: {
|
|
206
|
+
userHeader: string;
|
|
207
|
+
requiredHeaders?: string[];
|
|
208
|
+
allowUsers?: string[];
|
|
209
|
+
allowLoopback?: boolean;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
webchat?: {
|
|
213
|
+
activityDetailDefault: "stream" | "on" | "off";
|
|
214
|
+
};
|
|
215
|
+
scenes?: {
|
|
216
|
+
enabled: boolean;
|
|
217
|
+
};
|
|
218
|
+
corsOrigins?: string[];
|
|
219
|
+
publicUrl?: string;
|
|
220
|
+
dangerouslyAllowHostHeaderOriginFallback?: boolean;
|
|
221
|
+
trustedProxies?: string[];
|
|
222
|
+
allowRealIpFallback?: boolean;
|
|
223
|
+
security?: {
|
|
224
|
+
strict?: boolean;
|
|
225
|
+
};
|
|
226
|
+
channelConnectDeferMode?: "explicit" | "off" | "auto";
|
|
227
|
+
channelConnectDeferIds?: string[];
|
|
228
|
+
channelConnectDeferSkipIds?: string[];
|
|
229
|
+
skillsMarketplaceProvider?: string;
|
|
230
|
+
skillsStoreBaseUrl?: string;
|
|
231
|
+
share?: {
|
|
232
|
+
enabled: boolean;
|
|
233
|
+
defaultTtlMs: number;
|
|
234
|
+
maxTtlMs: number;
|
|
235
|
+
maxActiveShares: number;
|
|
236
|
+
maxFileSize: number;
|
|
237
|
+
inlinePreviewMimes: string[];
|
|
238
|
+
directory: {
|
|
239
|
+
enabled: boolean;
|
|
240
|
+
maxFolderSize: number;
|
|
241
|
+
maxFileCount: number;
|
|
242
|
+
maxDepth: number;
|
|
243
|
+
listingCacheMs: number;
|
|
244
|
+
zipConcurrency: number;
|
|
245
|
+
};
|
|
246
|
+
note: {
|
|
247
|
+
enabled: boolean;
|
|
248
|
+
maxMarkdownBytes: number;
|
|
249
|
+
maxAttachmentCount: number;
|
|
250
|
+
maxAttachmentSize: number;
|
|
251
|
+
maxTotalSize: number;
|
|
252
|
+
assetTicketTtlMs: number;
|
|
253
|
+
revokeOnSourceDelete: boolean;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
siteShare?: {
|
|
257
|
+
enabled: boolean;
|
|
258
|
+
publicHostSuffix: string;
|
|
259
|
+
defaultTtlMs: number;
|
|
260
|
+
maxTtlMs: number;
|
|
261
|
+
maxActiveSites: number;
|
|
262
|
+
static: {
|
|
263
|
+
enabled: boolean;
|
|
264
|
+
maxRootDirSize: number;
|
|
265
|
+
maxFileCount: number;
|
|
266
|
+
rewriteEnabledByDefault: boolean;
|
|
267
|
+
};
|
|
268
|
+
proxy: {
|
|
269
|
+
enabled: boolean;
|
|
270
|
+
allowedUpstreamHosts: string[];
|
|
271
|
+
allowedUpstreamPorts: number[];
|
|
272
|
+
forwardWebSocket: boolean;
|
|
273
|
+
bodySizeLimit: number;
|
|
274
|
+
requestTimeoutMs: number;
|
|
275
|
+
wsIdleTimeoutMs: number;
|
|
276
|
+
rewriteSetCookiePath: boolean;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
browser: {
|
|
281
|
+
enabled: boolean;
|
|
282
|
+
driver: {
|
|
283
|
+
kind: "extension";
|
|
284
|
+
} | {
|
|
285
|
+
kind: "playwright";
|
|
286
|
+
headless: boolean;
|
|
287
|
+
executablePath?: string;
|
|
288
|
+
} | {
|
|
289
|
+
kind: "cdp";
|
|
290
|
+
endpoint: string;
|
|
291
|
+
} | {
|
|
292
|
+
kind: "remote";
|
|
293
|
+
provider: "browserbase" | "browser-use";
|
|
294
|
+
apiKey?: string;
|
|
295
|
+
projectId?: string;
|
|
296
|
+
region?: string;
|
|
297
|
+
};
|
|
298
|
+
observation: {
|
|
299
|
+
maxNodes: number;
|
|
300
|
+
maxCharacters: number;
|
|
301
|
+
visualFallback: boolean;
|
|
302
|
+
};
|
|
303
|
+
limits: {
|
|
304
|
+
actionTimeoutMs: number;
|
|
305
|
+
sessionTimeoutMs: number;
|
|
306
|
+
maxSequenceLength: number;
|
|
307
|
+
};
|
|
308
|
+
security: {
|
|
309
|
+
privateNetworks: "deny";
|
|
310
|
+
allowedPrivateHosts: string[];
|
|
311
|
+
crossDomainNavigation?: "allow" | "deny";
|
|
312
|
+
uploads?: "allow" | "deny";
|
|
313
|
+
consequentialActions?: "allow" | "deny";
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
computer: {
|
|
317
|
+
enabled: boolean;
|
|
318
|
+
maxActionsPerSession: number;
|
|
319
|
+
maxModelRequests: number;
|
|
320
|
+
maxSessionDurationMs: number;
|
|
321
|
+
idleGrantTtlMs: number;
|
|
322
|
+
};
|
|
323
|
+
tools: {
|
|
324
|
+
web?: {
|
|
325
|
+
region?: "global" | "cn";
|
|
326
|
+
search?: {
|
|
327
|
+
maxResults: number;
|
|
328
|
+
providers: {
|
|
329
|
+
type: "brave" | "tavily" | "bing" | "searxng";
|
|
330
|
+
apiKey?: string;
|
|
331
|
+
url?: string;
|
|
332
|
+
disabled?: boolean;
|
|
333
|
+
}[];
|
|
334
|
+
};
|
|
335
|
+
blocklist?: {
|
|
336
|
+
enabled: boolean;
|
|
337
|
+
domains: string[];
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
media?: {
|
|
341
|
+
models?: {
|
|
342
|
+
[x: string]: string | number | boolean | Record<string, unknown> | unknown[];
|
|
343
|
+
provider?: string;
|
|
344
|
+
model?: string;
|
|
345
|
+
capabilities?: ("image" | "video" | "audio")[];
|
|
346
|
+
type?: "cli" | "provider";
|
|
347
|
+
command?: string;
|
|
348
|
+
baseUrl?: string;
|
|
349
|
+
headers?: Record<string, string>;
|
|
350
|
+
apiKey?: string;
|
|
351
|
+
language?: string;
|
|
352
|
+
prompt?: string;
|
|
353
|
+
}[];
|
|
354
|
+
audio?: {
|
|
355
|
+
enabled: boolean;
|
|
356
|
+
provider: string;
|
|
357
|
+
fallback: {
|
|
358
|
+
enabled: boolean;
|
|
359
|
+
order: string[];
|
|
360
|
+
};
|
|
361
|
+
timeoutMs?: number;
|
|
362
|
+
models?: {
|
|
363
|
+
[x: string]: string | number | boolean | Record<string, unknown> | unknown[];
|
|
364
|
+
provider?: string;
|
|
365
|
+
model?: string;
|
|
366
|
+
capabilities?: ("image" | "video" | "audio")[];
|
|
367
|
+
type?: "cli" | "provider";
|
|
368
|
+
command?: string;
|
|
369
|
+
baseUrl?: string;
|
|
370
|
+
headers?: Record<string, string>;
|
|
371
|
+
apiKey?: string;
|
|
372
|
+
language?: string;
|
|
373
|
+
prompt?: string;
|
|
374
|
+
}[];
|
|
375
|
+
providers?: Record<string, {
|
|
376
|
+
[x: string]: string | number | boolean | Record<string, unknown> | unknown[];
|
|
377
|
+
apiKey?: string;
|
|
378
|
+
model?: string;
|
|
379
|
+
baseUrl?: string;
|
|
380
|
+
headers?: Record<string, string>;
|
|
381
|
+
language?: string;
|
|
382
|
+
prompt?: string;
|
|
383
|
+
}>;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
runtimeTools: {
|
|
388
|
+
enabled: boolean;
|
|
389
|
+
node: {
|
|
390
|
+
enabled: boolean;
|
|
391
|
+
preference: "managed-only" | "managed-first" | "system-first" | "system-only";
|
|
392
|
+
provision: "disabled" | "eager" | "on-demand";
|
|
393
|
+
version?: string;
|
|
394
|
+
};
|
|
395
|
+
python: {
|
|
396
|
+
enabled: boolean;
|
|
397
|
+
preference: "managed-only" | "managed-first" | "system-first" | "system-only";
|
|
398
|
+
provision: "disabled" | "eager" | "on-demand";
|
|
399
|
+
version?: string;
|
|
400
|
+
};
|
|
401
|
+
uv: {
|
|
402
|
+
enabled: boolean;
|
|
403
|
+
version?: string;
|
|
404
|
+
};
|
|
405
|
+
download: {
|
|
406
|
+
source: "auto" | "website-only" | "direct-only";
|
|
407
|
+
gatewayBaseUrl: string;
|
|
408
|
+
timeoutMs: number;
|
|
409
|
+
bundleDir?: string;
|
|
410
|
+
proxy?: string;
|
|
411
|
+
};
|
|
412
|
+
retention: {
|
|
413
|
+
keepVersions: number;
|
|
414
|
+
maxCacheBytes?: number;
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
experimental: {
|
|
418
|
+
workDiscoveryOnboarding: boolean;
|
|
419
|
+
};
|
|
420
|
+
platform: {
|
|
421
|
+
mode: "standalone";
|
|
422
|
+
} | {
|
|
423
|
+
mode: "connected";
|
|
424
|
+
url: string;
|
|
425
|
+
discovery: {
|
|
426
|
+
schemaVersion: "1";
|
|
427
|
+
platformId: string;
|
|
428
|
+
displayName: string;
|
|
429
|
+
deploymentMode: "development" | "private" | "cloud";
|
|
430
|
+
region: string;
|
|
431
|
+
endpoints: {
|
|
432
|
+
authorizationServer: string;
|
|
433
|
+
controlApi: string;
|
|
434
|
+
modelApi?: string;
|
|
435
|
+
storeApi?: string;
|
|
436
|
+
tunnelApi?: string;
|
|
437
|
+
shareApi?: string;
|
|
438
|
+
agentApi?: string;
|
|
439
|
+
a2aApi?: string;
|
|
440
|
+
realtime?: string;
|
|
441
|
+
};
|
|
442
|
+
capabilities: Record<"shares" | "models" | "connectors" | "tunnels" | "managedRuntime" | "runtimeFleet" | "traceUpload" | "a2a", boolean>;
|
|
443
|
+
protocols: {
|
|
444
|
+
xopc: {
|
|
445
|
+
min: string;
|
|
446
|
+
max: string;
|
|
447
|
+
};
|
|
448
|
+
mcp: string[];
|
|
449
|
+
a2a: string[];
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
workspaceId?: string;
|
|
453
|
+
};
|
|
454
|
+
extensions: Record<string, unknown>;
|
|
455
|
+
modelsDev: {
|
|
456
|
+
enabled: boolean;
|
|
457
|
+
};
|
|
458
|
+
modelCatalog: {
|
|
459
|
+
enabled: boolean;
|
|
460
|
+
refreshOnStartup: boolean;
|
|
461
|
+
intervalHours: number;
|
|
462
|
+
};
|
|
463
|
+
observability?: {
|
|
464
|
+
tracing: {
|
|
465
|
+
enabled: boolean;
|
|
466
|
+
capture: "metadata" | "redacted" | "detailed";
|
|
467
|
+
local: {
|
|
468
|
+
retentionDays: number;
|
|
469
|
+
maxStoreMiB: number;
|
|
470
|
+
maxTraces: number;
|
|
471
|
+
maxSpans: number;
|
|
472
|
+
maxTraceKiB: number;
|
|
473
|
+
maxWriteMiBPerMinute: number;
|
|
474
|
+
};
|
|
475
|
+
langfuse: {
|
|
476
|
+
enabled: boolean;
|
|
477
|
+
baseUrl: string;
|
|
478
|
+
};
|
|
479
|
+
detailedUntil?: number;
|
|
480
|
+
};
|
|
481
|
+
};
|
|
482
|
+
tunnel?: {
|
|
483
|
+
enabled: boolean;
|
|
484
|
+
brokerUrl: string;
|
|
485
|
+
autoStart: boolean;
|
|
486
|
+
registrationSecret?: string;
|
|
487
|
+
subdomain?: string;
|
|
488
|
+
consent?: {
|
|
489
|
+
version: string;
|
|
490
|
+
acceptedAt: string;
|
|
491
|
+
};
|
|
492
|
+
};
|
|
493
|
+
workspace?: {
|
|
494
|
+
import?: {
|
|
495
|
+
targetDir: string;
|
|
496
|
+
maxBytes: number;
|
|
497
|
+
allowOverwrite: boolean;
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
mcp?: {
|
|
501
|
+
servers?: Record<string, {
|
|
502
|
+
[x: string]: unknown;
|
|
503
|
+
displayName?: string;
|
|
504
|
+
xopcOAuthCredentialId?: string;
|
|
505
|
+
type?: "http" | "stdio" | "streamable-http";
|
|
506
|
+
command?: string;
|
|
507
|
+
args?: string[];
|
|
508
|
+
env?: Record<string, string | {
|
|
509
|
+
xopcSecretRef: {
|
|
510
|
+
provider: string;
|
|
511
|
+
fieldKey: string;
|
|
512
|
+
prefix?: string;
|
|
513
|
+
suffix?: string;
|
|
514
|
+
};
|
|
515
|
+
}>;
|
|
516
|
+
cwd?: string;
|
|
517
|
+
url?: string;
|
|
518
|
+
headers?: Record<string, string | {
|
|
519
|
+
xopcSecretRef: {
|
|
520
|
+
provider: string;
|
|
521
|
+
fieldKey: string;
|
|
522
|
+
prefix?: string;
|
|
523
|
+
suffix?: string;
|
|
524
|
+
};
|
|
525
|
+
}>;
|
|
526
|
+
oauth?: {
|
|
527
|
+
clientId?: string;
|
|
528
|
+
clientSecret?: string;
|
|
529
|
+
callbackPort?: number;
|
|
530
|
+
callbackUrl?: string;
|
|
531
|
+
scope?: string;
|
|
532
|
+
clientName?: string;
|
|
533
|
+
clientRegistration?: "dcr" | "cimd";
|
|
534
|
+
authServerMetadataUrl?: string;
|
|
535
|
+
};
|
|
536
|
+
auth?: {
|
|
537
|
+
provider: string;
|
|
538
|
+
};
|
|
539
|
+
timeout?: number;
|
|
540
|
+
enabled?: boolean;
|
|
541
|
+
exposure?: "direct" | "codemode" | "deferred" | "hidden";
|
|
542
|
+
toolExposure?: Record<string, "direct" | "codemode" | "deferred" | "hidden">;
|
|
543
|
+
description?: string;
|
|
544
|
+
transport?: never;
|
|
545
|
+
workingDirectory?: never;
|
|
546
|
+
connectionTimeoutMs?: never;
|
|
547
|
+
requestTimeoutMs?: never;
|
|
548
|
+
}>;
|
|
549
|
+
};
|
|
550
|
+
connectors?: {
|
|
551
|
+
instances?: Record<string, Record<string, unknown>>;
|
|
552
|
+
};
|
|
553
|
+
providers?: Record<string, {
|
|
554
|
+
baseUrl?: string;
|
|
555
|
+
region?: "cn" | "intl";
|
|
556
|
+
request?: {
|
|
557
|
+
timeoutMs?: number;
|
|
558
|
+
headers?: Record<string, string>;
|
|
559
|
+
};
|
|
560
|
+
azure?: {
|
|
561
|
+
resource?: string;
|
|
562
|
+
deployment?: string;
|
|
563
|
+
apiVersion?: string;
|
|
564
|
+
};
|
|
565
|
+
}>;
|
|
566
|
+
messages?: {
|
|
567
|
+
tts?: {
|
|
568
|
+
enabled: boolean;
|
|
569
|
+
provider: string;
|
|
570
|
+
trigger: "off" | "always" | "inbound" | "tagged";
|
|
571
|
+
maxTextLength: number;
|
|
572
|
+
timeoutMs: number;
|
|
573
|
+
fallback?: {
|
|
574
|
+
enabled: boolean;
|
|
575
|
+
order: string[];
|
|
576
|
+
};
|
|
577
|
+
summarization?: {
|
|
578
|
+
enabled?: boolean;
|
|
579
|
+
targetLength?: number;
|
|
580
|
+
threshold?: number;
|
|
581
|
+
model?: string;
|
|
582
|
+
};
|
|
583
|
+
modelOverrides?: {
|
|
584
|
+
enabled: boolean;
|
|
585
|
+
allowText: boolean;
|
|
586
|
+
allowProvider: boolean;
|
|
587
|
+
allowVoice: boolean;
|
|
588
|
+
allowModelId: boolean;
|
|
589
|
+
allowVoiceSettings: boolean;
|
|
590
|
+
allowNormalization: boolean;
|
|
591
|
+
allowSeed: boolean;
|
|
592
|
+
};
|
|
593
|
+
providers?: Record<string, {
|
|
594
|
+
[x: string]: string | number | boolean | Record<string, unknown> | unknown[];
|
|
595
|
+
apiKey?: string;
|
|
596
|
+
model?: string;
|
|
597
|
+
voice?: string;
|
|
598
|
+
}>;
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
voice?: {
|
|
602
|
+
realtime: {
|
|
603
|
+
enabled: boolean;
|
|
604
|
+
defaultEngine: "agent" | "omni";
|
|
605
|
+
silenceDurationMs: number;
|
|
606
|
+
idleTimeoutMs: number;
|
|
607
|
+
maxDictationMs: number;
|
|
608
|
+
maxConversationMs: number;
|
|
609
|
+
bargeIn: boolean;
|
|
610
|
+
stt?: {
|
|
611
|
+
provider: "xopc-cloud";
|
|
612
|
+
model: string;
|
|
613
|
+
};
|
|
614
|
+
tts?: {
|
|
615
|
+
provider: "alibaba" | "xopc-cloud";
|
|
616
|
+
model?: string;
|
|
617
|
+
voice?: string;
|
|
618
|
+
};
|
|
619
|
+
omni?: {
|
|
620
|
+
provider: "alibaba" | "xopc-cloud";
|
|
621
|
+
model: string;
|
|
622
|
+
voice: string;
|
|
623
|
+
instructions: string;
|
|
624
|
+
baseUrl?: string;
|
|
625
|
+
apiKey?: string;
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
languageMode?: "manual" | "auto";
|
|
629
|
+
language?: "en" | "zh";
|
|
630
|
+
input?: {
|
|
631
|
+
refinement?: {
|
|
632
|
+
mode: "off" | "custom" | "punctuation" | "light";
|
|
633
|
+
model?: string;
|
|
634
|
+
customInstruction?: string;
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
update?: {
|
|
639
|
+
checkOnStart: boolean;
|
|
640
|
+
channel: "stable" | "beta" | "dev";
|
|
641
|
+
auto?: {
|
|
642
|
+
enabled: boolean;
|
|
643
|
+
stableDelayHours: number;
|
|
644
|
+
stableJitterHours: number;
|
|
645
|
+
betaCheckIntervalHours: number;
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
commands?: {
|
|
649
|
+
restart?: boolean;
|
|
650
|
+
};
|
|
651
|
+
}): Promise<{
|
|
38
652
|
saved: boolean;
|
|
39
653
|
error?: string;
|
|
654
|
+
persisted?: boolean;
|
|
655
|
+
conflict?: boolean;
|
|
40
656
|
}>;
|
|
657
|
+
private queueConfigWrite;
|
|
658
|
+
private persistConfig;
|
|
41
659
|
/** Merge partial updates into `currentConfig` and persist. */
|
|
42
660
|
updateConfig(updates: Partial<Config>): Promise<{
|
|
43
661
|
updated: boolean;
|