@xopcai/xopc 0.0.369 → 0.0.371
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 +59 -174
- package/README.zh-CN.md +59 -174
- package/dist/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js +131 -0
- package/dist/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js +30 -0
- package/dist/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/sha2.js +252 -0
- package/dist/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js +16 -0
- package/dist/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js +66 -0
- package/dist/browser-ext/dist/sidepanel.js +21 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-Stj17S9u.js → agent-avatar-dicebear-C8MqXy6W.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-BLaL4law.js +1 -0
- package/dist/gateway/static/root/assets/agent-plugin-dialog-BrysdA6F.js +1 -0
- package/dist/gateway/static/root/assets/agents-BJRyMNx2.js +66 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-pJFe6M6c.js → app-management-settings-panel-Bi02swpZ.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-BrxSpBWa.js → appearance-settings-rr0qirDm.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-DegSl5Lh.js → apps-page-Sz3wl3lV.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-BZQ_VHjp.js → automations-page-DqdbP0hD.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-CxgKlA5d.js +6 -0
- package/dist/gateway/static/root/assets/{block-editor-3XjFv3kK.js → block-editor-CfVR1zGa.js} +3 -3
- package/dist/gateway/static/root/assets/browser-automations-page-DeYnh3mY.js +3 -0
- package/dist/gateway/static/root/assets/{browser-settings-page-ch2_bQF0.js → browser-settings-page-DDZvlGCD.js} +2 -2
- package/dist/gateway/static/root/assets/{capabilities-DO-vfNKI.js → capabilities-CY4SiHcP.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-B48r0DDa.js → capabilities-gjQtMhKu.js} +1 -1
- package/dist/gateway/static/root/assets/capabilities-page-Bl6PZqx3.js +2 -0
- package/dist/gateway/static/root/assets/{capabilities-settings-panel-NckMsJ5N.js → capabilities-settings-panel-B-MM4LJA.js} +4 -4
- package/dist/gateway/static/root/assets/{capability-header-actions-CY8KCO9j.js → capability-header-actions-CAiY7HK1.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-CHOS2CGa.js → channels-D1_fDkhu.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-Bwknnb4c.js → chat-terminal-dock-D6slpF2a.js} +2 -2
- package/dist/gateway/static/root/assets/{computer-settings-page-B2xeFCSt.js → computer-settings-page-D1n_uQHN.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-C83DnAqK.js → connector-service-page-FvSCyJzn.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-DroD-gQn.js +1 -0
- package/dist/gateway/static/root/assets/copy-text-row-C1gaJwlZ.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-Bq9GR-DU.js → date-picker-Bl-HqvGU.js} +1 -1
- package/dist/gateway/static/root/assets/dependency-picker-DY4nU-HL.js +1 -0
- package/dist/gateway/static/root/assets/{desktop-pet-BwsbQw8V.js → desktop-pet-_A89B2xw.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-sL9i44pP.js → desktop-pet-settings-BJWkGynu.js} +1 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-DJ_ITvkI.js +1 -0
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BFlDmsS5.js → directory-picker-path-field-Bj2Cpmxs.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-7Z1Tp7-w.js → extension-debug-page-BfAtjhoK.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-uGqvb8QX.js → extension-page-BFjc1zDp.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-provider-xlSyz4Z6.js → extension-provider-Br6LXyIj.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-CKHgrjOs.js → extension-settings-page-oAwllsMb.js} +1 -1
- package/dist/gateway/static/root/assets/{fallback-models-BwQg0G1D.js → fallback-models-KHd6tw_t.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-realtime-F6D4A7N5.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-settings-BAQnSEMJ.js → gateway-settings-BIyhyiOq.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-CEjaIUTF.js +2 -0
- package/dist/gateway/static/root/assets/{imports-page-re1_Nh64.js → imports-page-ClFqRiGQ.js} +1 -1
- package/dist/gateway/static/root/assets/index-BGBkIIzM.css +1 -0
- package/dist/gateway/static/root/assets/index-GBFmI8im.js +106 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-B_xja9LN.js → keyboard-shortcuts-settings-Ca9_GJSQ.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-CErdCrPX.js → local-app-workbench-page-BaK9zX1-.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-BPL2RXdK.js → local-apps-page-1CjSftZ3.js} +1 -1
- package/dist/gateway/static/root/assets/local-session-drafts-pox8evDV.js +1 -0
- package/dist/gateway/static/root/assets/logs-page-6joZBbcx.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-Cnubkklb.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-B6DHbMzT.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-CGZkIKdi.js +8 -0
- package/dist/gateway/static/root/assets/{page-context-capture-button-tf77xIz3.js → page-context-capture-button-y3QmhTu2.js} +1 -1
- package/dist/gateway/static/root/assets/personal-page-C_roXCJB.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-Dc3Y-Y7J.js → product-open-page-CSRYWt0f.js} +1 -1
- package/dist/gateway/static/root/assets/{product-preview-content-MG_hmVA3.js → product-preview-content-DuOML6gs.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-v7xtnvha.js +1 -0
- package/dist/gateway/static/root/assets/{projects-page-MllfNLGA.js → projects-page-BuJCBT6n.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-Bs-C70el.js → remote-access-hub-DpHnyBnG.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-DpJ5jNzR.js → runtime-tools-settings-panel-DTMTL0hy.js} +1 -1
- package/dist/gateway/static/root/assets/{scenes-page-Dpxamkw6.js → scenes-page-B0JqO_fM.js} +2 -2
- package/dist/gateway/static/root/assets/{schema-form-DUeyQ1zh.js → schema-form-g4z7GH4W.js} +1 -1
- package/dist/gateway/static/root/assets/{send-session-input-Dgn4BRk_.js → send-session-input-BW40VHiL.js} +1 -1
- package/dist/gateway/static/root/assets/session-manager-BqlvrjPE.js +16 -0
- package/dist/gateway/static/root/assets/sessions-page-CftImbH7.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BkvbSieZ.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-DouHuBXt.js → settings-page-YD-U8BVw.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-q_X3kxw2.js +1 -0
- package/dist/gateway/static/root/assets/{share-link-dialog-DJTabLAM.js → share-link-dialog-HCHM8qnf.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-jw7h4t_B.js → share-preview-page-Ce6FNWt1.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-KHRg_-03.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-CfyX_0zN.js → skill-api-BpqDMkNB.js} +1 -1
- package/dist/gateway/static/root/assets/skills-page-Bnfn51ks.js +2 -0
- package/dist/gateway/static/root/assets/{system-settings-panel-DWf256TE.js → system-settings-panel-CncvC2CI.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-DE6N1ZQe.js → task-detail-page-BVJKdnMC.js} +2 -2
- package/dist/gateway/static/root/assets/{tunnel-api-BBm9esrY.js → tunnel-api-g7etuoaT.js} +1 -1
- package/dist/gateway/static/root/assets/{usage-page-C93x89uW.js → usage-page-Dao1I-5F.js} +1 -1
- package/dist/gateway/static/root/assets/{use-composer-attachments-C7Gaaai1.js → use-composer-attachments-DJya1hIL.js} +1 -1
- package/dist/gateway/static/root/assets/use-file-preview-expanded-C5ONO7sF.js +2 -0
- package/dist/gateway/static/root/assets/user-model-page-jr986ucl.js +2 -0
- package/dist/gateway/static/root/assets/{work-discovery-overlay-Bs2MKiTv.js → work-discovery-overlay-CC3mr7tX.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-BR_U_snV.js → workflow-run-setup-panel-CqpXZJxs.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-DOk6tBbK.js +6 -0
- package/dist/gateway/static/root/assets/{workspace-api-Si2o3inw.js → workspace-api-WhbMvdBE.js} +2 -2
- package/dist/gateway/static/root/index.html +18 -20
- package/dist/package.js +1 -1
- package/dist/packages/endpoint-tools-client/src/index.js +189 -0
- package/dist/packages/endpoint-tools-protocol/src/bridge.js +105 -0
- package/dist/packages/endpoint-tools-protocol/src/index.js +95 -2
- package/dist/packages/endpoint-tools-protocol/src/location.js +109 -0
- package/dist/packages/endpoint-tools-protocol/src/personal.js +149 -0
- package/dist/packages/gateway-contract/src/session-input-command.js +30 -5
- package/dist/src/agent/agent-manager.js +23 -27
- package/dist/src/agent/background-review/run-background-review.js +1 -1
- package/dist/src/agent/embedded/codemode-extension.d.ts +7 -0
- package/dist/src/agent/embedded/codemode-extension.js +232 -0
- package/dist/src/agent/embedded/codemode-output.d.ts +2 -0
- package/dist/src/agent/embedded/codemode-output.js +34 -0
- package/dist/src/agent/embedded/external-tool-discovery.d.ts +6 -0
- package/dist/src/agent/embedded/external-tool-discovery.js +60 -0
- package/dist/src/agent/embedded/model-runtime.js +5 -2
- package/dist/src/agent/embedded/run-for-session.js +10 -1
- package/dist/src/agent/embedded/run-turn.js +10 -3
- package/dist/src/agent/embedded/session-runner.d.ts +9 -1
- package/dist/src/agent/embedded/session-runner.js +111 -23
- package/dist/src/agent/embedded/session-tool-result-guard.d.ts +2 -0
- package/dist/src/agent/embedded/session-tool-result-guard.js +17 -0
- package/dist/src/agent/embedded/subscribe-session.js +14 -4
- package/dist/src/agent/embedded/tool-metadata.d.ts +15 -0
- package/dist/src/agent/embedded/tool-metadata.js +38 -0
- package/dist/src/agent/embedded/tool-search-extension.d.ts +5 -0
- package/dist/src/agent/embedded/tool-search-extension.js +31 -0
- package/dist/src/agent/embedded/types.d.ts +7 -0
- package/dist/src/agent/embedded/xopc-tools-bridge.js +6 -0
- package/dist/src/agent/external-tools/endpoint-provider.d.ts +1 -1
- package/dist/src/agent/external-tools/endpoint-provider.js +174 -53
- package/dist/src/agent/external-tools/extension-provider.js +8 -1
- package/dist/src/agent/external-tools/gateway-tools.d.ts +1 -1
- package/dist/src/agent/external-tools/gateway-tools.js +45 -22
- package/dist/src/agent/external-tools/index.js +46 -14
- package/dist/src/agent/external-tools/memory-provider.js +8 -1
- package/dist/src/agent/external-tools/read-policy.js +2 -1
- package/dist/src/agent/external-tools/service.d.ts +2 -0
- package/dist/src/agent/external-tools/service.js +25 -3
- package/dist/src/agent/external-tools/tool-registry.d.ts +14 -0
- package/dist/src/agent/external-tools/tool-registry.js +14 -0
- package/dist/src/agent/external-tools/types.d.ts +8 -1
- package/dist/src/agent/external-tools/types.js +0 -1
- package/dist/src/agent/inbound/attachment-pipeline.js +1 -1
- package/dist/src/agent/mcp/config.d.ts +18 -0
- package/dist/src/agent/mcp/{bundle-mcp-config.js → config.js} +8 -25
- package/dist/src/agent/mcp/native-mcp.d.ts +6 -0
- package/dist/src/agent/mcp/native-mcp.js +73 -0
- package/dist/src/agent/service.js +3 -6
- package/dist/src/agent/skills/index.js +1 -1
- package/dist/src/agent/skills/installer.js +1 -1
- package/dist/src/agent/skills/managed-store.js +1 -1
- package/dist/src/agent/skills/skill-manage-ops.js +1 -1
- package/dist/src/agent/skills/skill-manager.js +1 -1
- package/dist/src/agent/skills/skill-sources.js +1 -1
- package/dist/src/agent/source-context/index.d.ts +0 -1
- package/dist/src/agent/source-context/index.js +1 -2
- package/dist/src/agent/source-context/injector.js +1 -0
- package/dist/src/agent/source-context/types.d.ts +2 -2
- package/dist/src/agent/source-context/types.js +1 -1
- package/dist/src/agent/tools/cli-clarify.js +1 -1
- package/dist/src/agent/tools/codemode-permissions.d.ts +4 -0
- package/dist/src/agent/tools/codemode-permissions.js +23 -0
- package/dist/src/agent/tools/dataBatch.js +3 -1
- package/dist/src/agent/tools/delegation-parent-policy.js +1 -4
- package/dist/src/agent/tools/factory.js +4 -3
- package/dist/src/agent/tools/xopc-use-tool.js +2 -2
- package/dist/src/agent/transcript/provider-capabilities.js +0 -1
- package/dist/src/agent/transcript/transcript-policy.js +1 -2
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/agent-catalog/migrations/legacy-config-cutover.js +1 -1
- package/dist/src/agent-catalog/repository.js +1 -1
- package/dist/src/agent-config/schema.d.ts +28 -0
- package/dist/src/agent-config/schema.js +7 -0
- package/dist/src/auth/credentials.js +7 -20
- package/dist/src/auth/model-credential-store.js +11 -4
- package/dist/src/auth/oauth/index.d.ts +1 -1
- package/dist/src/auth/oauth/index.js +3 -3
- package/dist/src/auth/oauth/openai.d.ts +2 -0
- package/dist/src/auth/oauth/openai.js +90 -0
- package/dist/src/auth/oauth/registry.js +3 -3
- package/dist/src/auth/oauth/types.d.ts +1 -0
- package/dist/src/auth/oauth/xopc-cloud.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +5 -0
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/chat-commands/builtins/model.js +2 -2
- package/dist/src/cli/command-manifest.js +1 -1
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/doctor/checks/provider-auth.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +0 -19
- package/dist/src/cli/commands/mcp.js +36 -2
- package/dist/src/cli/commands/models.js +2 -2
- package/dist/src/cli/commands/onboard/model.js +2 -2
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/cli/utils/oauth-login.js +2 -2
- package/dist/src/config/agent-profile.js +1 -1
- package/dist/src/config/index.js +3 -3
- package/dist/src/config/mcp-config-normalize.d.ts +0 -3
- package/dist/src/config/mcp-config-normalize.js +2 -22
- package/dist/src/config/models-json.d.ts +0 -5
- package/dist/src/config/models-json.js +13 -4
- package/dist/src/config/paths.d.ts +0 -1
- package/dist/src/config/paths.js +1 -4
- package/dist/src/config/schema.d.ts +130 -36
- package/dist/src/config/schema.js +52 -35
- package/dist/src/connectors/auth-provider-registry.d.ts +1 -1
- package/dist/src/connectors/auth-provider-registry.js +1 -21
- package/dist/src/connectors/china-catalog.js +5 -5
- package/dist/src/connectors/connection-recovery-service.d.ts +1 -6
- package/dist/src/connectors/connection-recovery-service.js +3 -105
- package/dist/src/connectors/health.d.ts +1 -2
- package/dist/src/connectors/health.js +2 -101
- package/dist/src/connectors/types.d.ts +1 -1
- package/dist/src/endpoint-tools/binding-service.d.ts +2 -0
- package/dist/src/endpoint-tools/binding-service.js +14 -2
- package/dist/src/endpoint-tools/bridge-host.d.ts +15 -0
- package/dist/src/endpoint-tools/bridge-host.js +166 -0
- package/dist/src/endpoint-tools/bridge.d.ts +27 -0
- package/dist/src/endpoint-tools/bridge.js +88 -0
- package/dist/src/endpoint-tools/capability-catalog.d.ts +2 -0
- package/dist/src/endpoint-tools/capability-catalog.js +8 -0
- package/dist/src/endpoint-tools/grant-service.d.ts +69 -0
- package/dist/src/endpoint-tools/grant-service.js +113 -0
- package/dist/src/endpoint-tools/index.js +1 -1
- package/dist/src/endpoint-tools/invocation-service.js +21 -4
- package/dist/src/endpoint-tools/location-task.d.ts +22 -0
- package/dist/src/endpoint-tools/location-task.js +114 -0
- package/dist/src/endpoint-tools/policy.js +21 -1
- package/dist/src/endpoint-tools/registry.d.ts +2 -0
- package/dist/src/endpoint-tools/registry.js +9 -0
- package/dist/src/endpoint-tools/result-projector.d.ts +15 -0
- package/dist/src/endpoint-tools/result-projector.js +31 -0
- package/dist/src/endpoint-tools/runtime.d.ts +2 -0
- package/dist/src/endpoint-tools/runtime.js +15 -2
- package/dist/src/endpoint-tools/target-resolver.d.ts +12 -0
- package/dist/src/endpoint-tools/target-resolver.js +27 -0
- package/dist/src/endpoint-tools/turn-context.d.ts +6 -0
- package/dist/src/endpoint-tools/turn-context.js +29 -0
- package/dist/src/endpoint-tools/upload-service.d.ts +4 -2
- package/dist/src/endpoint-tools/upload-service.js +29 -4
- package/dist/src/extensions/agent-plugins/auth.d.ts +0 -2
- package/dist/src/extensions/agent-plugins/auth.js +2 -19
- package/dist/src/extensions/agent-plugins/credentials.js +3 -19
- package/dist/src/extensions/agent-plugins/inventory.d.ts +2 -2
- package/dist/src/extensions/agent-plugins/mcp-adapter.js +1 -5
- package/dist/src/extensions/agent-plugins/source-http-fetch.d.ts +2 -0
- package/dist/src/{agent/mcp/plugin-http-fetch.js → extensions/agent-plugins/source-http-fetch.js} +7 -7
- package/dist/src/extensions/agent-plugins/sources.js +2 -2
- package/dist/src/extensions/agent-plugins/store.js +1 -3
- package/dist/src/extensions/agent-plugins/validation.d.ts +0 -4
- package/dist/src/extensions/agent-plugins/validation.js +14 -21
- package/dist/src/gateway/agents-admin.d.ts +5 -0
- package/dist/src/gateway/agents-admin.js +58 -3
- package/dist/src/gateway/chat-stream/mapper.js +9 -0
- package/dist/src/gateway/chat-stream/protocol.d.ts +4 -4
- package/dist/src/gateway/hono/lib/config-payload.d.ts +9 -4
- package/dist/src/gateway/hono/lib/config-payload.js +2 -5
- package/dist/src/gateway/hono/oauth-async.js +9 -2
- package/dist/src/gateway/hono/routes/agent-plugins.js +4 -9
- package/dist/src/gateway/hono/routes/agents.js +5 -4
- package/dist/src/gateway/hono/routes/config-patch/misc.js +1 -1
- package/dist/src/gateway/hono/routes/connection-waits.js +2 -5
- package/dist/src/gateway/hono/routes/connectors.js +5 -60
- package/dist/src/gateway/hono/routes/device-authorizations.d.ts +3 -0
- package/dist/src/gateway/hono/routes/device-authorizations.js +74 -0
- package/dist/src/gateway/hono/routes/endpoint-compatibility.js +8 -0
- package/dist/src/gateway/hono/routes/endpoint-tools.d.ts +1 -0
- package/dist/src/gateway/hono/routes/endpoint-tools.js +70 -3
- package/dist/src/gateway/hono/routes/lazy-bundles.js +17 -1
- package/dist/src/gateway/hono/routes/mcp.d.ts +1 -1
- package/dist/src/gateway/hono/routes/mcp.js +11 -237
- package/dist/src/gateway/hono/routes/notes.js +2 -2
- package/dist/src/gateway/hono/routes/projects.js +2 -2
- package/dist/src/gateway/hono/routes/session-command-handler.js +11 -1
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +8 -2
- package/dist/src/gateway/hono/routes/session-input-handler.js +26 -2
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/image-generation-setup.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +2 -5
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.js +13 -5
- package/dist/src/gateway/service/session-input-coordinator.d.ts +1 -1
- package/dist/src/gateway/service/session-input-coordinator.js +29 -9
- package/dist/src/gateway/service/sessions-api.js +0 -6
- package/dist/src/gateway/service.js +7 -16
- package/dist/src/gateway/session-reset-service.js +0 -6
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/host.js +2 -2
- package/dist/src/imports/compatibility.js +12 -10
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/mcp/channel-bridge.js +1 -1
- package/dist/src/notes/agent-context.js +1 -1
- package/dist/src/personal-agent/service.js +1 -1
- package/dist/src/providers/env-keys.js +1 -1
- package/dist/src/providers/index.js +26 -24
- package/dist/src/providers/model-call.d.ts +0 -2
- package/dist/src/providers/model-call.js +2 -6
- package/dist/src/providers/model-registry.js +4 -2
- package/dist/src/providers/model-supplements.d.ts +3 -3
- package/dist/src/providers/model-supplements.js +6 -27
- package/dist/src/providers/presentation.js +3 -8
- package/dist/src/providers/prompt-cache-plan.js +1 -1
- package/dist/src/providers/provider-auth-service.d.ts +1 -1
- package/dist/src/providers/provider-auth-service.js +7 -2
- package/dist/src/providers/provider-policy.d.ts +3 -0
- package/dist/src/providers/provider-policy.js +14 -0
- package/dist/src/providers/register-runtime-providers.js +6 -1
- package/dist/src/realtime/runtime.js +1 -1
- package/dist/src/session/store.js +7 -1
- package/dist/src/session/transcript-events.d.ts +5 -0
- package/dist/src/session/transcript-events.js +1 -0
- package/dist/src/session/types.d.ts +2 -0
- package/dist/src/storage/sqlite/device-grant-audit-repository.d.ts +11 -0
- package/dist/src/storage/sqlite/device-grant-audit-repository.js +10 -0
- package/dist/src/storage/sqlite/endpoint-device-settings-repository.d.ts +7 -0
- package/dist/src/storage/sqlite/endpoint-device-settings-repository.js +17 -0
- package/dist/src/storage/sqlite/migrations/240_device_settings.sql +5 -0
- package/dist/src/storage/sqlite/migrations/241_device_grant_audit.sql +13 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +3 -3
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/session-input-repository.d.ts +1 -0
- package/dist/src/storage/sqlite/session-input-repository.js +5 -1
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tui/backends/embedded-backend.js +1 -1
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
- package/dist/src/tui/xopc-tui-keybindings.d.ts +4 -4
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/package.json +20 -9
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CCRfvuov.js +0 -1
- package/dist/gateway/static/root/assets/agent-plugin-dialog-CRlzd8El.js +0 -1
- package/dist/gateway/static/root/assets/agents-_ug2LCQb.js +0 -66
- package/dist/gateway/static/root/assets/automations-workspace-BQywN6nG.js +0 -6
- package/dist/gateway/static/root/assets/browser-automations-page-yiEuG1v7.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-page-BEnFt_dj.js +0 -2
- package/dist/gateway/static/root/assets/connectors-page-D6wTmWA6.js +0 -2
- package/dist/gateway/static/root/assets/copy-text-row-BHDs3cBa.js +0 -1
- package/dist/gateway/static/root/assets/dependency-picker-BTERkA9X.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-DI2bqaKO.js +0 -1
- package/dist/gateway/static/root/assets/dist-Che_jiQF.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-DDWymi-o.js +0 -1
- package/dist/gateway/static/root/assets/home-page-BZDjvwet.js +0 -2
- package/dist/gateway/static/root/assets/index-BB1z8QxA.js +0 -106
- package/dist/gateway/static/root/assets/index-D9R6tU7r.css +0 -1
- package/dist/gateway/static/root/assets/link-2-D_ZKYUW7.js +0 -1
- package/dist/gateway/static/root/assets/local-session-drafts-DRPsDCj1.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-DL-BM0xq.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-BOVRHhXk.js +0 -1
- package/dist/gateway/static/root/assets/note-detail-panel-DJJK2yL4.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-oCxO7ZTv.js +0 -8
- package/dist/gateway/static/root/assets/personal-page-DOk9gUK5.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-3uAzbW4T.js +0 -1
- package/dist/gateway/static/root/assets/session-manager-LInoZ_Yi.js +0 -16
- package/dist/gateway/static/root/assets/sessions-page-BCVlNHtq.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-Bz-ue9fZ.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-B5BoZ-1y.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-BlnlzGjH.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-DjdTeYzm.js +0 -2
- package/dist/gateway/static/root/assets/use-file-preview-expanded-Db2VYg1b.js +0 -2
- package/dist/gateway/static/root/assets/user-model-page-B74LkVbp.js +0 -2
- package/dist/gateway/static/root/assets/workflows-page-Crk4SxtC.js +0 -6
- package/dist/src/agent/embedded/system-prompt-override.d.ts +0 -2
- package/dist/src/agent/embedded/system-prompt-override.js +0 -21
- package/dist/src/agent/external-tools/mcp-provider.d.ts +0 -32
- package/dist/src/agent/external-tools/mcp-provider.js +0 -208
- package/dist/src/agent/mcp/bundle-mcp-config.d.ts +0 -20
- package/dist/src/agent/mcp/bundle-mcp-gateway.d.ts +0 -79
- package/dist/src/agent/mcp/bundle-mcp-gateway.js +0 -93
- package/dist/src/agent/mcp/bundle-mcp-names.d.ts +0 -1
- package/dist/src/agent/mcp/bundle-mcp-names.js +0 -25
- package/dist/src/agent/mcp/bundle-mcp-policy.d.ts +0 -1
- package/dist/src/agent/mcp/bundle-mcp-policy.js +0 -6
- package/dist/src/agent/mcp/bundle-mcp-runtime.d.ts +0 -46
- package/dist/src/agent/mcp/bundle-mcp-runtime.js +0 -571
- package/dist/src/agent/mcp/bundle-mcp-tools.d.ts +0 -2
- package/dist/src/agent/mcp/bundle-mcp-tools.js +0 -2
- package/dist/src/agent/mcp/bundle-mcp-types.d.ts +0 -76
- package/dist/src/agent/mcp/bundle-mcp-types.js +0 -1
- package/dist/src/agent/mcp/embedded-mcp.d.ts +0 -10
- package/dist/src/agent/mcp/embedded-mcp.js +0 -14
- package/dist/src/agent/mcp/index.d.ts +0 -5
- package/dist/src/agent/mcp/index.js +0 -12
- package/dist/src/agent/mcp/mcp-config-shared.d.ts +0 -8
- package/dist/src/agent/mcp/mcp-config-shared.js +0 -39
- package/dist/src/agent/mcp/mcp-http.d.ts +0 -23
- package/dist/src/agent/mcp/mcp-http.js +0 -67
- package/dist/src/agent/mcp/mcp-resource-id.d.ts +0 -6
- package/dist/src/agent/mcp/mcp-resource-id.js +0 -19
- package/dist/src/agent/mcp/mcp-stdio-transport.d.ts +0 -26
- package/dist/src/agent/mcp/mcp-stdio-transport.js +0 -120
- package/dist/src/agent/mcp/mcp-stdio.d.ts +0 -18
- package/dist/src/agent/mcp/mcp-stdio.js +0 -35
- package/dist/src/agent/mcp/mcp-transport-config.d.ts +0 -28
- package/dist/src/agent/mcp/mcp-transport-config.js +0 -91
- package/dist/src/agent/mcp/mcp-transport.d.ts +0 -17
- package/dist/src/agent/mcp/mcp-transport.js +0 -141
- package/dist/src/agent/mcp/oauth/index.d.ts +0 -6
- package/dist/src/agent/mcp/oauth/index.js +0 -6
- package/dist/src/agent/mcp/oauth/mcp-oauth-errors.d.ts +0 -5
- package/dist/src/agent/mcp/oauth/mcp-oauth-errors.js +0 -14
- package/dist/src/agent/mcp/oauth/mcp-oauth-manager.d.ts +0 -30
- package/dist/src/agent/mcp/oauth/mcp-oauth-manager.js +0 -276
- package/dist/src/agent/mcp/oauth/mcp-oauth-provider.d.ts +0 -33
- package/dist/src/agent/mcp/oauth/mcp-oauth-provider.js +0 -103
- package/dist/src/agent/mcp/oauth/mcp-oauth-session.d.ts +0 -31
- package/dist/src/agent/mcp/oauth/mcp-oauth-session.js +0 -181
- package/dist/src/agent/mcp/oauth/mcp-oauth-store.d.ts +0 -12
- package/dist/src/agent/mcp/oauth/mcp-oauth-store.js +0 -91
- package/dist/src/agent/mcp/oauth/mcp-oauth-types.d.ts +0 -22
- package/dist/src/agent/mcp/oauth/mcp-oauth-types.js +0 -1
- package/dist/src/agent/mcp/plugin-http-fetch.d.ts +0 -2
- package/dist/src/agent/source-context/mcp-resource-context.d.ts +0 -8
- package/dist/src/agent/source-context/mcp-resource-context.js +0 -30
- package/dist/src/auth/oauth/openai-codex.d.ts +0 -9
- package/dist/src/auth/oauth/openai-codex.js +0 -414
- package/dist/src/connectors/plugin-mcp-recovery.d.ts +0 -28
- package/dist/src/connectors/plugin-mcp-recovery.js +0 -90
- package/dist/src/extensions/agent-plugins/connection.d.ts +0 -8
- package/dist/src/extensions/agent-plugins/connection.js +0 -41
- package/dist/src/extensions/agent-plugins/health.d.ts +0 -4
- package/dist/src/extensions/agent-plugins/health.js +0 -48
- package/dist/src/extensions/agent-plugins/plugin-oauth-scope.d.ts +0 -1
- package/dist/src/extensions/agent-plugins/plugin-oauth-scope.js +0 -8
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { getApiKeyFromEnv } from "../../../providers/env-keys.js";
|
|
2
1
|
import { AgentCatalogRepository, init_repository } from "../../../agent-catalog/repository.js";
|
|
2
|
+
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
3
|
+
import { getApiKeyFromEnv } from "../../../providers/env-keys.js";
|
|
3
4
|
import { resolveModelsJsonPath } from "../../../config/paths.js";
|
|
4
5
|
import { CredentialResolver, init_credentials } from "../../../auth/credentials.js";
|
|
5
6
|
import { getAgentDefaultModelRef, init_schema } from "../../../config/schema.js";
|
|
6
7
|
import { init_models_json, loadModelsJson, saveModelsJson } from "../../../config/models-json.js";
|
|
7
8
|
import { getModelRegistry } from "../../../providers/model-registry.js";
|
|
8
9
|
import { getAllProviders, getModelsByProvider, getProviderDisplayName, init_providers, providerSupportsApiKey, providerSupportsOAuth } from "../../../providers/index.js";
|
|
9
|
-
import { AgentCatalogService } from "../../../agent-catalog/service.js";
|
|
10
10
|
import { prepareUpdateGlobalDefaults } from "../../../gateway/global-defaults-admin.js";
|
|
11
11
|
import { discoverProviderModels, isProviderApiDiscoverable } from "../../../providers/model-discovery.js";
|
|
12
12
|
import { getXopcCloudCatalogCoordinator } from "../../../providers/xopc-cloud-catalog-coordinator.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentCatalogRepository, init_repository } from "../../agent-catalog/repository.js";
|
|
2
|
-
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
3
2
|
import { AgentCatalogService } from "../../agent-catalog/service.js";
|
|
3
|
+
import { ConfigSchema, init_schema } from "../../config/schema.js";
|
|
4
4
|
import { assertConfigRewriteSafeForRunningGateway, saveConfig } from "../../config/loader.js";
|
|
5
5
|
import { ensureStarterAgentsInitialized } from "../../agent/starter-agents.js";
|
|
6
6
|
import { bootstrapApplicationStateSync } from "../../bootstrap/application-state.js";
|
|
@@ -51,8 +51,8 @@ function buildCliOAuthCallbacks(params) {
|
|
|
51
51
|
onPrompt: async (prompt) => input({
|
|
52
52
|
message: prompt.message,
|
|
53
53
|
validate: prompt.allowEmpty ? void 0 : (value) => value.trim().length > 0 || "Required"
|
|
54
|
-
}),
|
|
55
|
-
onManualCodeInput: params.provider.usesCallbackServer && params.provider.id !== "openai
|
|
54
|
+
}, { signal: prompt.signal }),
|
|
55
|
+
onManualCodeInput: params.provider.usesCallbackServer && params.provider.id !== "openai" ? promptForManualCode : void 0,
|
|
56
56
|
onProgress: (message) => {
|
|
57
57
|
params.onProgress?.(message);
|
|
58
58
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
2
1
|
import { resolveEffectiveAgentConfig } from "../agent-config/resolver.js";
|
|
3
2
|
import { init_agent_config } from "../agent-config/index.js";
|
|
3
|
+
import { normalizeAgentId } from "../agent-catalog/id.js";
|
|
4
4
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
5
5
|
import { init_agent_scope, resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
|
|
6
6
|
import { getConversationRouting } from "../storage/sqlite/conversation-repository.js";
|
package/dist/src/config/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ENV_VARS, XOPC_DB_FILENAME, resolveHomeDir, resolveStateDir, resolveXop
|
|
|
2
2
|
import { expandWorkspacePathString, init_workspace_path, normalizeWorkspaceDir, resolveWorkspaceRoot } from "./workspace-path.js";
|
|
3
3
|
import { resolveDefaultAgentWorkspaceDir } from "./workspace-defaults.js";
|
|
4
4
|
import { resolveAgentWorkspaceDir } from "../agent/agent-scope.js";
|
|
5
|
-
import { FILENAMES, WORKSPACE_FILES, existsSync, hasBundledExtensionManifest, init_paths, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveCredentialsDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir,
|
|
5
|
+
import { FILENAMES, WORKSPACE_FILES, existsSync, hasBundledExtensionManifest, init_paths, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveCredentialsDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath } from "./paths.js";
|
|
6
6
|
import { TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema } from "../../extensions/telegram/src/config-schema.js";
|
|
7
7
|
import { WeixinAccountConfigSchema, WeixinConfigSchema } from "../../extensions/weixin/src/config-schema.js";
|
|
8
8
|
import { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigSchema, ConnectorsConfigSchema, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewayScenesConfigSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelsDevConfigSchema, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, init_schema, parseModelRef } from "./schema.js";
|
|
@@ -10,7 +10,7 @@ import { applyConfigOverrides, getConfigOverrides, resetConfigOverrides, setConf
|
|
|
10
10
|
import { extractProfileAgentId, resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession } from "./agent-profile.js";
|
|
11
11
|
import { clearConfigValueCache, getAllowedCommands, getCacheStats, init_resolve_config_value, resolveConfigValue, resolveHeaders, testApiKeyResolution } from "./resolve-config-value.js";
|
|
12
12
|
import { CustomModelSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, ModelOverrideSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProviderConfigSchema, VercelGatewayRoutingSchema, getDefaultModelValues, init_models_json, loadModelsJson, modelsJsonExists, saveModelsJson, validateModelsConfig } from "./models-json.js";
|
|
13
|
-
import { canonicalizeConfiguredMcpServer,
|
|
13
|
+
import { canonicalizeConfiguredMcpServer, normalizeConfiguredMcpServers } from "./mcp-config-normalize.js";
|
|
14
14
|
import { formatThinkingLevels, listThinkingLevels, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, thinkLevelToNumber } from "../agent/transcript/thinking-types.js";
|
|
15
15
|
import { assertConfigRewriteSafeForRunningGateway, loadConfig, saveConfig } from "./loader.js";
|
|
16
16
|
import { getWorkspacePath } from "./workspace-path-helpers.js";
|
|
@@ -26,4 +26,4 @@ init_workspace_path();
|
|
|
26
26
|
init_models_json();
|
|
27
27
|
init_resolve_config_value();
|
|
28
28
|
//#endregion
|
|
29
|
-
export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BASE_RELOAD_RULES, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigHotReloader, ConfigSchema, ConnectorsConfigSchema, CustomModelSchema, ENV_VARS, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, FILENAMES, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewayScenesConfigSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelOverrideSchema, ModelsDevConfigSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProfileManager, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VercelGatewayRoutingSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WORKSPACE_FILES, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, XOPC_DB_FILENAME, applyConfigOverrides, assertConfigRewriteSafeForRunningGateway, buildReloadPlan, canonicalizeConfiguredMcpServer, clearConfigValueCache, createProfile, deleteProfile, diffConfigPaths, existsSync, expandWorkspacePathString, extractProfileAgentId, formatThinkingLevels, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, getAllowedCommands, getCacheStats, getConfigOverrides, getCurrentProfile, getDefaultModelValues, resolveModelsJsonPath as getModelsJsonPath, getProfileManager, getProfileNameFromDir, getSwitchCommand, getWorkspacePath, hasBundledExtensionManifest,
|
|
29
|
+
export { AgentImageGenerationModelSchema, AgentModelRefSchema, AgentModelsSchema, BASE_RELOAD_RULES, BrowserConfigSchema, ChannelsConfigSchema, CommandsConfigSchema, ConfigHotReloader, ConfigSchema, ConnectorsConfigSchema, CustomModelSchema, ENV_VARS, ExperimentalConfigSchema, ExtensionSecurityConfigSchema, ExtensionSlotsConfigSchema, ExtensionsConfigSchema, FILENAMES, GatewayAuthRateLimitSchema, GatewayAuthSchema, GatewayBindModeSchema, GatewayChannelConnectDeferModeSchema, GatewayConfigSchema, GatewayModeSchema, GatewayRemoteSchema, GatewayScenesConfigSchema, GatewaySecuritySchema, GatewayTailscaleConsentSchema, GatewayTailscaleSchema, GatewayTlsSchema, GatewayTrustedProxySchema, GatewayWebchatConfigSchema, ImageGenerationCapabilitiesSchema, ImageGenerationModelSchema, ImageGenerationProviderSchema, McpConfigSchema, McpOAuthConfigSchema, McpServerSchema, MediaUnderstandingCapabilitiesSchema, MediaUnderstandingModelSchema, MessagesConfigSchema, ModelCatalogConfigSchema, ModelOverrideSchema, ModelsDevConfigSchema, ModelsJsonSchema, OpenAICompatSchema, OpenAICompletionsCompatSchema, OpenAIResponsesCompatSchema, OpenRouterRoutingSchema, ProfileManager, ProviderAuthConfigSchema, ProviderAzureConfigSchema, ProviderConfigSchema, ProviderRequestOverridesSchema, ProvidersConfigSchema, RuntimeToolsConfigSchema, STTConfigSchema, STTFallbackConfigSchema, STTProviderConfigSchema, SearchProviderEntrySchema, SessionConfigSchema, SessionDmScopeSchema, SessionResetByTypeSchema, SessionResetConfigSchema, SessionResetModeSchema, SessionScopeSchema, SessionStorageConfigSchema, TTSConfigSchema, TTSEdgeConfigSchema, TTSFallbackConfigSchema, TTSModelOverridesConfigSchema, TTSProviderConfigSchema, TTSSummarizationConfigSchema, TelegramAccountConfigSchema, TelegramConfigSchema, TelegramGroupConfigSchema, TelegramTopicConfigSchema, ToolsConfigSchema, ToolsMediaAudioConfigSchema, ToolsMediaConfigSchema, TunnelConfigSchema, TunnelConsentSchema, UpdateAutoConfigSchema, UpdateConfigSchema, VercelGatewayRoutingSchema, VoiceConfigSchema, VoiceRefinementConfigSchema, WORKSPACE_FILES, WebSearchConfigSchema, WebToolsConfigSchema, WebsiteBlocklistSchema, WeixinAccountConfigSchema, WeixinConfigSchema, WorkspaceConfigSchema, WorkspaceImportConfigSchema, XOPC_DB_FILENAME, applyConfigOverrides, assertConfigRewriteSafeForRunningGateway, buildReloadPlan, canonicalizeConfiguredMcpServer, clearConfigValueCache, createProfile, deleteProfile, diffConfigPaths, existsSync, expandWorkspacePathString, extractProfileAgentId, formatThinkingLevels, getAgentDefaultImageGenerationModelConfig, getAgentDefaultImageModelConfig, getAgentDefaultModelRef, getAllowedCommands, getCacheStats, getConfigOverrides, getCurrentProfile, getDefaultModelValues, resolveModelsJsonPath as getModelsJsonPath, getProfileManager, getProfileNameFromDir, getSwitchCommand, getWorkspacePath, hasBundledExtensionManifest, listAgentProfileMarkdownDirs, listAgentWorkspaceDirs, listProfiles, listThinkingLevels, loadConfig, loadModelsJson, matchReloadRule, modelsJsonExists, normalizeConfiguredMcpServers, normalizeElevatedMode, normalizeReasoningLevel, normalizeThinkLevel, normalizeVerboseLevel, normalizeWorkspaceDir, parseModelRef, resetConfigOverrides, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveConfigValue, resolveCredentialsDir, resolveDefaultAgentWorkspaceDir, resolveEffectiveAgentConfigForAgent, resolveEffectiveAgentConfigForSession, resolveEffectiveAgentProfile, resolveEffectiveAgentProfileForSession, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHeaders, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveProfileStateDir, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceRoot, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcCloudCatalogCachePath, resolveXopcDatabasePath, saveConfig, saveModelsJson, setConfigOverride, testApiKeyResolution, thinkLevelToNumber, unsetConfigOverride, validateModelsConfig };
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
export type ConfigMcpServers = Record<string, Record<string, unknown>>;
|
|
2
|
-
export type XopcMcpHttpTransport = 'sse' | 'streamable-http';
|
|
3
|
-
export declare function resolveXopcMcpTransportAlias(value: unknown): XopcMcpHttpTransport | undefined;
|
|
4
|
-
export declare function isKnownCliMcpTypeAlias(value: unknown): boolean;
|
|
5
2
|
export declare function canonicalizeConfiguredMcpServer(server: Record<string, unknown>): Record<string, unknown>;
|
|
6
3
|
export declare function normalizeConfiguredMcpServers(value: unknown): ConfigMcpServers;
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
import { isRecord } from "../utils/is-record.js";
|
|
2
2
|
//#region src/config/mcp-config-normalize.ts
|
|
3
|
-
const CLI_MCP_TYPE_TO_XOPC_TRANSPORT = {
|
|
4
|
-
http: "streamable-http",
|
|
5
|
-
"streamable-http": "streamable-http",
|
|
6
|
-
sse: "sse",
|
|
7
|
-
stdio: "stdio"
|
|
8
|
-
};
|
|
9
|
-
function normalizeMcpString(value) {
|
|
10
|
-
return typeof value === "string" ? value.trim().toLowerCase() : "";
|
|
11
|
-
}
|
|
12
|
-
function resolveXopcMcpTransportAlias(value) {
|
|
13
|
-
const mapped = CLI_MCP_TYPE_TO_XOPC_TRANSPORT[normalizeMcpString(value)];
|
|
14
|
-
return mapped === "sse" || mapped === "streamable-http" ? mapped : void 0;
|
|
15
|
-
}
|
|
16
|
-
function isKnownCliMcpTypeAlias(value) {
|
|
17
|
-
return Object.hasOwn(CLI_MCP_TYPE_TO_XOPC_TRANSPORT, normalizeMcpString(value));
|
|
18
|
-
}
|
|
19
3
|
function canonicalizeConfiguredMcpServer(server) {
|
|
20
|
-
|
|
21
|
-
const transportAlias = resolveXopcMcpTransportAlias(next.type);
|
|
22
|
-
if (typeof next.transport !== "string" && transportAlias) next.transport = transportAlias;
|
|
23
|
-
if (isKnownCliMcpTypeAlias(next.type)) delete next.type;
|
|
24
|
-
return next;
|
|
4
|
+
return { ...server };
|
|
25
5
|
}
|
|
26
6
|
function normalizeConfiguredMcpServers(value) {
|
|
27
7
|
if (!isRecord(value)) return {};
|
|
28
8
|
return Object.fromEntries(Object.entries(value).filter(([, server]) => isRecord(server)).map(([name, server]) => [name, { ...server }]));
|
|
29
9
|
}
|
|
30
10
|
//#endregion
|
|
31
|
-
export { canonicalizeConfiguredMcpServer,
|
|
11
|
+
export { canonicalizeConfiguredMcpServer, normalizeConfiguredMcpServers };
|
|
@@ -377,7 +377,6 @@ export declare const CustomModelSchema: z.ZodObject<{
|
|
|
377
377
|
"openai-completions": "openai-completions";
|
|
378
378
|
"openai-responses": "openai-responses";
|
|
379
379
|
"azure-openai-responses": "azure-openai-responses";
|
|
380
|
-
"openai-codex-responses": "openai-codex-responses";
|
|
381
380
|
"anthropic-messages": "anthropic-messages";
|
|
382
381
|
"bedrock-converse-stream": "bedrock-converse-stream";
|
|
383
382
|
"google-generative-ai": "google-generative-ai";
|
|
@@ -522,7 +521,6 @@ export declare const ProviderConfigSchema: z.ZodObject<{
|
|
|
522
521
|
"openai-completions": "openai-completions";
|
|
523
522
|
"openai-responses": "openai-responses";
|
|
524
523
|
"azure-openai-responses": "azure-openai-responses";
|
|
525
|
-
"openai-codex-responses": "openai-codex-responses";
|
|
526
524
|
"anthropic-messages": "anthropic-messages";
|
|
527
525
|
"bedrock-converse-stream": "bedrock-converse-stream";
|
|
528
526
|
"google-generative-ai": "google-generative-ai";
|
|
@@ -545,7 +543,6 @@ export declare const ProviderConfigSchema: z.ZodObject<{
|
|
|
545
543
|
"openai-completions": "openai-completions";
|
|
546
544
|
"openai-responses": "openai-responses";
|
|
547
545
|
"azure-openai-responses": "azure-openai-responses";
|
|
548
|
-
"openai-codex-responses": "openai-codex-responses";
|
|
549
546
|
"anthropic-messages": "anthropic-messages";
|
|
550
547
|
"bedrock-converse-stream": "bedrock-converse-stream";
|
|
551
548
|
"google-generative-ai": "google-generative-ai";
|
|
@@ -805,7 +802,6 @@ export declare const ModelsJsonSchema: z.ZodObject<{
|
|
|
805
802
|
"openai-completions": "openai-completions";
|
|
806
803
|
"openai-responses": "openai-responses";
|
|
807
804
|
"azure-openai-responses": "azure-openai-responses";
|
|
808
|
-
"openai-codex-responses": "openai-codex-responses";
|
|
809
805
|
"anthropic-messages": "anthropic-messages";
|
|
810
806
|
"bedrock-converse-stream": "bedrock-converse-stream";
|
|
811
807
|
"google-generative-ai": "google-generative-ai";
|
|
@@ -828,7 +824,6 @@ export declare const ModelsJsonSchema: z.ZodObject<{
|
|
|
828
824
|
"openai-completions": "openai-completions";
|
|
829
825
|
"openai-responses": "openai-responses";
|
|
830
826
|
"azure-openai-responses": "azure-openai-responses";
|
|
831
|
-
"openai-codex-responses": "openai-codex-responses";
|
|
832
827
|
"anthropic-messages": "anthropic-messages";
|
|
833
828
|
"bedrock-converse-stream": "bedrock-converse-stream";
|
|
834
829
|
"google-generative-ai": "google-generative-ai";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __esmMin } from "../../_virtual/_rolldown/runtime.js";
|
|
2
2
|
import { init_write_file_atomic, writeTextAtomicSync } from "../infra/write-file-atomic.js";
|
|
3
3
|
import { init_paths, resolveModelsJsonPath } from "./paths.js";
|
|
4
|
+
import { assertCurrentModelProvider, init_provider_policy } from "../providers/provider-policy.js";
|
|
4
5
|
import { ComputerProfileSchema, init_src } from "../../packages/computer-control-contract/src/index.js";
|
|
5
6
|
import { init_model_policy, isComputerModel } from "../computer/model-policy.js";
|
|
6
7
|
import { existsSync, readFileSync } from "fs";
|
|
@@ -29,6 +30,16 @@ function validateModelsConfig(config) {
|
|
|
29
30
|
}
|
|
30
31
|
const data = result.data;
|
|
31
32
|
for (const [providerName, providerConfig] of Object.entries(data.providers)) {
|
|
33
|
+
try {
|
|
34
|
+
assertCurrentModelProvider(providerName);
|
|
35
|
+
} catch (error) {
|
|
36
|
+
errors.push({
|
|
37
|
+
path: `providers.${providerName}`,
|
|
38
|
+
message: error.message,
|
|
39
|
+
severity: "error"
|
|
40
|
+
});
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
32
43
|
if (providerName === "xopc-cloud") {
|
|
33
44
|
errors.push({
|
|
34
45
|
path: "providers.xopc-cloud",
|
|
@@ -230,6 +241,7 @@ var init_models_json = __esmMin((() => {
|
|
|
230
241
|
init_write_file_atomic();
|
|
231
242
|
init_paths();
|
|
232
243
|
init_model_policy();
|
|
244
|
+
init_provider_policy();
|
|
233
245
|
OpenRouterRoutingSchema = z.object({
|
|
234
246
|
only: z.array(z.string()).optional(),
|
|
235
247
|
order: z.array(z.string()).optional()
|
|
@@ -370,7 +382,6 @@ var init_models_json = __esmMin((() => {
|
|
|
370
382
|
"google-generative-ai",
|
|
371
383
|
"azure-openai-responses",
|
|
372
384
|
"bedrock-converse-stream",
|
|
373
|
-
"openai-codex-responses",
|
|
374
385
|
"google-gemini-cli",
|
|
375
386
|
"google-vertex"
|
|
376
387
|
]).optional(),
|
|
@@ -431,7 +442,6 @@ var init_models_json = __esmMin((() => {
|
|
|
431
442
|
"google-generative-ai",
|
|
432
443
|
"azure-openai-responses",
|
|
433
444
|
"bedrock-converse-stream",
|
|
434
|
-
"openai-codex-responses",
|
|
435
445
|
"google-gemini-cli",
|
|
436
446
|
"google-vertex"
|
|
437
447
|
]).optional(),
|
|
@@ -447,7 +457,7 @@ var init_models_json = __esmMin((() => {
|
|
|
447
457
|
RESERVED_PROVIDER_IDS = new Set([
|
|
448
458
|
"amazon-bedrock",
|
|
449
459
|
"anthropic",
|
|
450
|
-
"azure
|
|
460
|
+
"azure",
|
|
451
461
|
"cerebras",
|
|
452
462
|
"cloudflare-ai-gateway",
|
|
453
463
|
"cloudflare-workers-ai",
|
|
@@ -469,7 +479,6 @@ var init_models_json = __esmMin((() => {
|
|
|
469
479
|
"moonshotai",
|
|
470
480
|
"moonshotai-cn",
|
|
471
481
|
"openai",
|
|
472
|
-
"openai-codex",
|
|
473
482
|
"opencode",
|
|
474
483
|
"opencode-go",
|
|
475
484
|
"openrouter",
|
|
@@ -39,7 +39,6 @@ export declare function resolveAuthProfilesPath(): string;
|
|
|
39
39
|
*/
|
|
40
40
|
export declare function resolveOAuthPath(provider: string): string;
|
|
41
41
|
/** Resolve the credential record for one canonical remote MCP endpoint. */
|
|
42
|
-
export declare function resolveMcpOAuthPath(serverKey: string): string;
|
|
43
42
|
/**
|
|
44
43
|
* Internal agent state dir: `stateDir/agents/<id>/agent/`
|
|
45
44
|
* (credentials, inbox IPC, pid, agent.json — not the Markdown workspace).
|
package/dist/src/config/paths.js
CHANGED
|
@@ -31,9 +31,6 @@ function resolveOAuthPath(provider) {
|
|
|
31
31
|
return join(resolveCredentialsDir(), "oauth", `${provider}.json`);
|
|
32
32
|
}
|
|
33
33
|
/** Resolve the credential record for one canonical remote MCP endpoint. */
|
|
34
|
-
function resolveMcpOAuthPath(serverKey) {
|
|
35
|
-
return join(resolveCredentialsDir(), "mcp", `${serverKey}.json`);
|
|
36
|
-
}
|
|
37
34
|
/**
|
|
38
35
|
* Internal agent state dir: `stateDir/agents/<id>/agent/`
|
|
39
36
|
* (credentials, inbox IPC, pid, agent.json — not the Markdown workspace).
|
|
@@ -322,4 +319,4 @@ var init_paths = __esmMin((() => {
|
|
|
322
319
|
}));
|
|
323
320
|
//#endregion
|
|
324
321
|
init_paths();
|
|
325
|
-
export { ENV_VARS, FILENAMES, WORKSPACE_FILES, XOPC_DB_FILENAME, existsSync, hasBundledExtensionManifest, init_paths, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveCredentialsDir, resolveDefaultAgentWorkspaceDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir,
|
|
322
|
+
export { ENV_VARS, FILENAMES, WORKSPACE_FILES, XOPC_DB_FILENAME, existsSync, hasBundledExtensionManifest, init_paths, resolveAgentAuthProfilesPath, resolveAgentDir, resolveAgentHomeDir, resolveAgentProfileDir, resolveAgentProfileMarkdownPath, resolveAgentWorkspaceDir, resolveAuthProfilesPath, resolveBinDir, resolveBundledExtensionsDir, resolveBundledSkillsDir, resolveConfigPath, resolveCredentialsDir, resolveDefaultAgentWorkspaceDir, resolveExtensionSdkPath, resolveExtensionsDir, resolveExtensionsLockPath, resolveHomeDir, resolveInboxDir, resolveInboxMessagePath, resolveInboxPendingDir, resolveInboxProcessedDir, resolveLogPath, resolveLogsDir, resolveModelsJsonPath, resolveNodeBinDir, resolveNodeBinPath, resolveNodeToolsDir, resolveNpmBinPath, resolveOAuthPath, resolvePidPath, resolveSkillPath, resolveSkillsCachePath, resolveSkillsDir, resolveSkillsLockPath, resolveSocketPath, resolveStateDir, resolveStatusPath, resolveToolsDir, resolveWorkspaceExtensionsDir, resolveWorkspaceFile, resolveWorkspaceStateDir, resolveWorkspaceStatePath, resolveXopcBinPath, resolveXopcCloudCatalogCachePath, resolveXopcDatabasePath };
|
|
@@ -1132,13 +1132,27 @@ export declare const CommandsConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
1132
1132
|
}, z.core.$strict>>;
|
|
1133
1133
|
export type CommandsConfig = z.infer<typeof CommandsConfigSchema>;
|
|
1134
1134
|
export declare const McpOAuthConfigSchema: z.ZodObject<{
|
|
1135
|
-
type: z.ZodLiteral<"oauth">;
|
|
1136
1135
|
clientId: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
1137
|
+
callbackPort: z.ZodOptional<z.ZodNumber>;
|
|
1138
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1139
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1140
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
1141
|
+
clientRegistration: z.ZodOptional<z.ZodEnum<{
|
|
1142
|
+
dcr: "dcr";
|
|
1143
|
+
cimd: "cimd";
|
|
1144
|
+
}>>;
|
|
1145
|
+
authServerMetadataUrl: z.ZodOptional<z.ZodString>;
|
|
1137
1146
|
}, z.core.$strict>;
|
|
1138
1147
|
export declare const McpServerSchema: z.ZodObject<{
|
|
1148
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1149
|
+
http: "http";
|
|
1150
|
+
stdio: "stdio";
|
|
1151
|
+
"streamable-http": "streamable-http";
|
|
1152
|
+
}>>;
|
|
1139
1153
|
command: z.ZodOptional<z.ZodString>;
|
|
1140
1154
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1141
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.
|
|
1155
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1142
1156
|
xopcSecretRef: z.ZodObject<{
|
|
1143
1157
|
provider: z.ZodString;
|
|
1144
1158
|
fieldKey: z.ZodString;
|
|
@@ -1147,13 +1161,8 @@ export declare const McpServerSchema: z.ZodObject<{
|
|
|
1147
1161
|
}, z.core.$strip>;
|
|
1148
1162
|
}, z.core.$strip>]>>>;
|
|
1149
1163
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1150
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
1151
1164
|
url: z.ZodOptional<z.ZodString>;
|
|
1152
|
-
|
|
1153
|
-
sse: "sse";
|
|
1154
|
-
"streamable-http": "streamable-http";
|
|
1155
|
-
}>>;
|
|
1156
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
1165
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1157
1166
|
xopcSecretRef: z.ZodObject<{
|
|
1158
1167
|
provider: z.ZodString;
|
|
1159
1168
|
fieldKey: z.ZodString;
|
|
@@ -1161,18 +1170,52 @@ export declare const McpServerSchema: z.ZodObject<{
|
|
|
1161
1170
|
suffix: z.ZodOptional<z.ZodString>;
|
|
1162
1171
|
}, z.core.$strip>;
|
|
1163
1172
|
}, z.core.$strip>]>>>;
|
|
1164
|
-
|
|
1165
|
-
type: z.ZodLiteral<"oauth">;
|
|
1173
|
+
oauth: z.ZodOptional<z.ZodObject<{
|
|
1166
1174
|
clientId: z.ZodOptional<z.ZodString>;
|
|
1175
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
1176
|
+
callbackPort: z.ZodOptional<z.ZodNumber>;
|
|
1177
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1179
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
1180
|
+
clientRegistration: z.ZodOptional<z.ZodEnum<{
|
|
1181
|
+
dcr: "dcr";
|
|
1182
|
+
cimd: "cimd";
|
|
1183
|
+
}>>;
|
|
1184
|
+
authServerMetadataUrl: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
}, z.core.$strict>>;
|
|
1186
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
1187
|
+
provider: z.ZodString;
|
|
1167
1188
|
}, z.core.$strict>>;
|
|
1168
|
-
|
|
1169
|
-
|
|
1189
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1190
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1191
|
+
exposure: z.ZodOptional<z.ZodEnum<{
|
|
1192
|
+
direct: "direct";
|
|
1193
|
+
hidden: "hidden";
|
|
1194
|
+
deferred: "deferred";
|
|
1195
|
+
codemode: "codemode";
|
|
1196
|
+
}>>;
|
|
1197
|
+
toolExposure: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1198
|
+
direct: "direct";
|
|
1199
|
+
hidden: "hidden";
|
|
1200
|
+
deferred: "deferred";
|
|
1201
|
+
codemode: "codemode";
|
|
1202
|
+
}>>>;
|
|
1203
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1204
|
+
transport: z.ZodOptional<z.ZodNever>;
|
|
1205
|
+
workingDirectory: z.ZodOptional<z.ZodNever>;
|
|
1206
|
+
connectionTimeoutMs: z.ZodOptional<z.ZodNever>;
|
|
1207
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNever>;
|
|
1170
1208
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
1171
1209
|
export declare const McpConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
1172
1210
|
servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1211
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1212
|
+
http: "http";
|
|
1213
|
+
stdio: "stdio";
|
|
1214
|
+
"streamable-http": "streamable-http";
|
|
1215
|
+
}>>;
|
|
1173
1216
|
command: z.ZodOptional<z.ZodString>;
|
|
1174
1217
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1175
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.
|
|
1218
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1176
1219
|
xopcSecretRef: z.ZodObject<{
|
|
1177
1220
|
provider: z.ZodString;
|
|
1178
1221
|
fieldKey: z.ZodString;
|
|
@@ -1181,13 +1224,8 @@ export declare const McpConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
1181
1224
|
}, z.core.$strip>;
|
|
1182
1225
|
}, z.core.$strip>]>>>;
|
|
1183
1226
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1184
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
1185
1227
|
url: z.ZodOptional<z.ZodString>;
|
|
1186
|
-
|
|
1187
|
-
sse: "sse";
|
|
1188
|
-
"streamable-http": "streamable-http";
|
|
1189
|
-
}>>;
|
|
1190
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
1228
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1191
1229
|
xopcSecretRef: z.ZodObject<{
|
|
1192
1230
|
provider: z.ZodString;
|
|
1193
1231
|
fieldKey: z.ZodString;
|
|
@@ -1195,14 +1233,42 @@ export declare const McpConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
1195
1233
|
suffix: z.ZodOptional<z.ZodString>;
|
|
1196
1234
|
}, z.core.$strip>;
|
|
1197
1235
|
}, z.core.$strip>]>>>;
|
|
1198
|
-
|
|
1199
|
-
type: z.ZodLiteral<"oauth">;
|
|
1236
|
+
oauth: z.ZodOptional<z.ZodObject<{
|
|
1200
1237
|
clientId: z.ZodOptional<z.ZodString>;
|
|
1238
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
1239
|
+
callbackPort: z.ZodOptional<z.ZodNumber>;
|
|
1240
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1241
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1242
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
1243
|
+
clientRegistration: z.ZodOptional<z.ZodEnum<{
|
|
1244
|
+
dcr: "dcr";
|
|
1245
|
+
cimd: "cimd";
|
|
1246
|
+
}>>;
|
|
1247
|
+
authServerMetadataUrl: z.ZodOptional<z.ZodString>;
|
|
1248
|
+
}, z.core.$strict>>;
|
|
1249
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
1250
|
+
provider: z.ZodString;
|
|
1201
1251
|
}, z.core.$strict>>;
|
|
1202
|
-
|
|
1203
|
-
|
|
1252
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1253
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1254
|
+
exposure: z.ZodOptional<z.ZodEnum<{
|
|
1255
|
+
direct: "direct";
|
|
1256
|
+
hidden: "hidden";
|
|
1257
|
+
deferred: "deferred";
|
|
1258
|
+
codemode: "codemode";
|
|
1259
|
+
}>>;
|
|
1260
|
+
toolExposure: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1261
|
+
direct: "direct";
|
|
1262
|
+
hidden: "hidden";
|
|
1263
|
+
deferred: "deferred";
|
|
1264
|
+
codemode: "codemode";
|
|
1265
|
+
}>>>;
|
|
1266
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1267
|
+
transport: z.ZodOptional<z.ZodNever>;
|
|
1268
|
+
workingDirectory: z.ZodOptional<z.ZodNever>;
|
|
1269
|
+
connectionTimeoutMs: z.ZodOptional<z.ZodNever>;
|
|
1270
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNever>;
|
|
1204
1271
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
1205
|
-
sessionIdleTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
1206
1272
|
}, z.core.$strict>>;
|
|
1207
1273
|
export type McpServerConfig = z.infer<typeof McpServerSchema>;
|
|
1208
1274
|
export type McpOAuthConfig = z.infer<typeof McpOAuthConfigSchema>;
|
|
@@ -1784,9 +1850,14 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
1784
1850
|
}, z.core.$strip>>;
|
|
1785
1851
|
mcp: z.ZodOptional<z.ZodObject<{
|
|
1786
1852
|
servers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1853
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1854
|
+
http: "http";
|
|
1855
|
+
stdio: "stdio";
|
|
1856
|
+
"streamable-http": "streamable-http";
|
|
1857
|
+
}>>;
|
|
1787
1858
|
command: z.ZodOptional<z.ZodString>;
|
|
1788
1859
|
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1789
|
-
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.
|
|
1860
|
+
env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1790
1861
|
xopcSecretRef: z.ZodObject<{
|
|
1791
1862
|
provider: z.ZodString;
|
|
1792
1863
|
fieldKey: z.ZodString;
|
|
@@ -1795,13 +1866,8 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
1795
1866
|
}, z.core.$strip>;
|
|
1796
1867
|
}, z.core.$strip>]>>>;
|
|
1797
1868
|
cwd: z.ZodOptional<z.ZodString>;
|
|
1798
|
-
workingDirectory: z.ZodOptional<z.ZodString>;
|
|
1799
1869
|
url: z.ZodOptional<z.ZodString>;
|
|
1800
|
-
|
|
1801
|
-
sse: "sse";
|
|
1802
|
-
"streamable-http": "streamable-http";
|
|
1803
|
-
}>>;
|
|
1804
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodObject<{
|
|
1870
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1805
1871
|
xopcSecretRef: z.ZodObject<{
|
|
1806
1872
|
provider: z.ZodString;
|
|
1807
1873
|
fieldKey: z.ZodString;
|
|
@@ -1809,14 +1875,42 @@ export declare const ConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
|
1809
1875
|
suffix: z.ZodOptional<z.ZodString>;
|
|
1810
1876
|
}, z.core.$strip>;
|
|
1811
1877
|
}, z.core.$strip>]>>>;
|
|
1812
|
-
|
|
1813
|
-
type: z.ZodLiteral<"oauth">;
|
|
1878
|
+
oauth: z.ZodOptional<z.ZodObject<{
|
|
1814
1879
|
clientId: z.ZodOptional<z.ZodString>;
|
|
1880
|
+
clientSecret: z.ZodOptional<z.ZodString>;
|
|
1881
|
+
callbackPort: z.ZodOptional<z.ZodNumber>;
|
|
1882
|
+
callbackUrl: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
1884
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
1885
|
+
clientRegistration: z.ZodOptional<z.ZodEnum<{
|
|
1886
|
+
dcr: "dcr";
|
|
1887
|
+
cimd: "cimd";
|
|
1888
|
+
}>>;
|
|
1889
|
+
authServerMetadataUrl: z.ZodOptional<z.ZodString>;
|
|
1890
|
+
}, z.core.$strict>>;
|
|
1891
|
+
auth: z.ZodOptional<z.ZodObject<{
|
|
1892
|
+
provider: z.ZodString;
|
|
1815
1893
|
}, z.core.$strict>>;
|
|
1816
|
-
|
|
1817
|
-
|
|
1894
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
1895
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1896
|
+
exposure: z.ZodOptional<z.ZodEnum<{
|
|
1897
|
+
direct: "direct";
|
|
1898
|
+
hidden: "hidden";
|
|
1899
|
+
deferred: "deferred";
|
|
1900
|
+
codemode: "codemode";
|
|
1901
|
+
}>>;
|
|
1902
|
+
toolExposure: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
|
|
1903
|
+
direct: "direct";
|
|
1904
|
+
hidden: "hidden";
|
|
1905
|
+
deferred: "deferred";
|
|
1906
|
+
codemode: "codemode";
|
|
1907
|
+
}>>>;
|
|
1908
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1909
|
+
transport: z.ZodOptional<z.ZodNever>;
|
|
1910
|
+
workingDirectory: z.ZodOptional<z.ZodNever>;
|
|
1911
|
+
connectionTimeoutMs: z.ZodOptional<z.ZodNever>;
|
|
1912
|
+
requestTimeoutMs: z.ZodOptional<z.ZodNever>;
|
|
1818
1913
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
1819
|
-
sessionIdleTtlMs: z.ZodOptional<z.ZodNumber>;
|
|
1820
1914
|
}, z.core.$strict>>;
|
|
1821
1915
|
connectors: z.ZodOptional<z.ZodObject<{
|
|
1822
1916
|
instances: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|