@xopcai/xopc 0.0.331 → 0.0.333
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-B0BtF24E.js → agent-avatar-dicebear-DiI2O7lC.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CVp3J969.js +1 -0
- package/dist/gateway/static/root/assets/{agent-plugin-dialog-DbvLXQO2.js → agent-plugin-dialog-CacyndrS.js} +1 -1
- package/dist/gateway/static/root/assets/agents-DXYZSuUV.js +70 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-fwzTRJfP.js → app-management-settings-panel-BcszTlqr.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-v_GGe8UZ.js → appearance-settings-B1XPe8qz.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-C9ZMEuuA.js → apps-page-ZqANbUZv.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-B6EgADeH.js → archive-plugin-MjUsJcNb.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-B4H_IFeX.js → attachment-load-DHa-BI9a.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-UlVCvg4r.js → automations-page-Dsjivdxs.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-B37vs5tk.js +7 -0
- package/dist/gateway/static/root/assets/{binary-plugins-BxTSx30f.js → binary-plugins-DQYcuBHP.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CVzdrpjl.js → block-editor-Bx0uXbJP.js} +3 -3
- package/dist/gateway/static/root/assets/{browser-automation-inputs-C5s1yHOu.js → browser-automation-inputs-1ZIPGDeq.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-CBVD8k6O.js → browser-automations-page-CCjYipHc.js} +2 -2
- package/dist/gateway/static/root/assets/browser-settings-page-CSv4rvmx.js +3 -0
- package/dist/gateway/static/root/assets/capabilities-BnO9LV7U.js +1 -0
- package/dist/gateway/static/root/assets/{capabilities-page-BAT7Vvb8.js → capabilities-page-BfvDvIY1.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CoW7-ESq.js +8 -0
- package/dist/gateway/static/root/assets/{capability-header-actions-EETjXmkG.js → capability-header-actions-D_hbWRRF.js} +1 -1
- package/dist/gateway/static/root/assets/channels-BhMaRh1x.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-DCqm9j9W.js → chat-terminal-dock-Fnum_IEm.js} +1 -1
- package/dist/gateway/static/root/assets/{computer-settings-page-CxFWdovV.js → computer-settings-page-DI1zfCTA.js} +1 -1
- package/dist/gateway/static/root/assets/{connector-service-page-wxsEhmlU.js → connector-service-page-CiGDAubm.js} +1 -1
- package/dist/gateway/static/root/assets/connectors-page-Ono0Pha1.js +2 -0
- package/dist/gateway/static/root/assets/{date-picker-h_OS6uBR.js → date-picker-D-JhzZyW.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-DNgSSH3z.js → dependency-picker-DpD3xaEB.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-CflvPnB-.js → desktop-pet-CCoDxKqh.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-CXy0X5Js.js → desktop-pet-settings-GxndKfCx.js} +1 -1
- package/dist/gateway/static/root/assets/{device-pairing-wizard-BDMiJcsK.js → device-pairing-wizard-B71w3ptm.js} +1 -1
- package/dist/gateway/static/root/assets/{directory-picker-path-field-BqkOh13m.js → directory-picker-path-field-CUzjJvjs.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-VT4s-9pK.js → extension-debug-page-BtDY8ntX.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-CBSeGhGA.js → extension-page-D9_XF-XC.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DRB6uOo8.js → extension-settings-page-CjhUFAaC.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-cR-tz7-Q.js → gateway-config-swr-CgIjCxM8.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-lF-FpnZy.js → gateway-settings-BWaCnwT1.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-6jLRcQsu.js → gateway-startup-retry-i-1lTrwY.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-BTjGLngn.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-CSSkwsyC.js → image-generation-api-gilc-u7M.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-DGkOijwE.js → imports-page-BEtq5BRU.js} +1 -1
- package/dist/gateway/static/root/assets/index-DHL16aYZ.js +121 -0
- package/dist/gateway/static/root/assets/index-N1e6PDwx.css +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-iU6c2zg1.js → keyboard-shortcuts-settings-JUYY_18v.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-uI7mtoVz.js +1 -0
- package/dist/gateway/static/root/assets/{local-apps-page-C0BWC8D2.js → local-apps-page-BlYESNqz.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-wNXWkWu5.js → locale-store-BY30D6tg.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-Dpoi-r-_.js → logs-page-BbLQreeN.js} +2 -2
- package/dist/gateway/static/root/assets/management-settings-c4krhYU7.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-view-DlT9KqwF.js → markdown-view-BEeXMfDw.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-C8E_F2F_.js → media-plugins-DEFN1I73.js} +1 -1
- package/dist/gateway/static/root/assets/messages-_6IXbP2u.js +3 -0
- package/dist/gateway/static/root/assets/note-detail-panel--09xGxyE.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-DsxcVBXF.js +8 -0
- package/dist/gateway/static/root/assets/{page-context-capture-button-qqWG_gs_.js → page-context-capture-button-D43aVpCj.js} +1 -1
- package/dist/gateway/static/root/assets/{page-tabs-b3lheKy4.js → page-tabs-BhYBCqls.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-0Q4rTfGX.js → preview-open-alternatives-CP8agNlc.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-jnJZCrKQ.js → product-open-page-CU7fRhfT.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-U-EdDfAW.js +1 -0
- package/dist/gateway/static/root/assets/{projects-page-r96k_2wB.js → projects-page-DUOKZLt7.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-BIpltJ47.js → registry-api-BvVx0G1o.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-B1d8pB_y.js → remote-access-hub-fVPQe5YS.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-Do_iF13W.js → runtime-tools-settings-panel-Czvzsuj_.js} +2 -2
- package/dist/gateway/static/root/assets/scenes-page-C0-WHOY3.js +2 -0
- package/dist/gateway/static/root/assets/{schema-form-Cfft26Je.js → schema-form-B9Ni5O93.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-DdXvW09N.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BtF83fBY.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-iI0MTyuU.js → settings-form-section-jquf1P7n.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-C2Ka9oJm.js → settings-page-DPomsvba.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-nnmS_p5h.js → setup-status-panel-BvVlqpHf.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-D0Knvtlp.js → share-preview-page-b9DI0N1J.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-R_qwc4DN.js +1 -0
- package/dist/gateway/static/root/assets/{skill-api-BuZKcy9b.js → skill-api-Bu7-3w-L.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-CNJAQ_e-.js +1 -0
- package/dist/gateway/static/root/assets/{skills-page-DcxWxIrR.js → skills-page-D7XPEQu_.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-CMG0ZAsd.js → system-settings-panel-BwFR0Uci.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-PFjGW2g1.js +1 -0
- package/dist/gateway/static/root/assets/{tunnel-api-DGYA6GyO.js → tunnel-api-PfucxMP3.js} +1 -1
- package/dist/gateway/static/root/assets/usage-page-t_zdQHcy.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-CDemMoSX.js → use-autosave-DLyy2wHz.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-OyfPVfB9.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-CXArY4t5.js → voice-api-key-field-CQDY5EBK.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-ujEySjyc.js → voice-config-api-Bwy3Al3J.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-Dk5KsKOm.js → work-discovery-overlay-CJzqJ47I.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-DNpdaI-2.js → workflow-run-setup-panel-sCOk-esV.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-DYBGjN7C.js +6 -0
- package/dist/gateway/static/root/index.html +9 -9
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/automations.js +59 -14
- package/dist/packages/gateway-contract/src/capabilities.js +106 -8
- package/dist/packages/gateway-contract/src/index.js +2 -0
- package/dist/packages/gateway-contract/src/scenes.js +7 -6
- package/dist/packages/gateway-contract/src/sessions.js +2 -1
- package/dist/packages/gateway-contract/src/usage.js +6 -0
- package/dist/src/agent/agent-manager.js +13 -7
- package/dist/src/agent/background-review/run-background-review.js +7 -2
- package/dist/src/agent/bootstrap/filter-bootstrap-files.js +1 -1
- package/dist/src/agent/embedded/run-turn.js +7 -1
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/external-tools/gateway-tools.d.ts +2 -1
- package/dist/src/agent/external-tools/gateway-tools.js +44 -11
- package/dist/src/agent/external-tools/index.js +1 -1
- package/dist/src/agent/image/tool-model-config.js +1 -1
- package/dist/src/agent/image/understanding/pi-ai-provider.js +1 -1
- package/dist/src/agent/memory/compaction.js +4 -0
- package/dist/src/agent/orchestration/agent-orchestrator.js +0 -21
- package/dist/src/agent/service/btw-query.js +8 -2
- package/dist/src/agent/service.js +3 -3
- 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/tasks/task-judge-service.js +4 -0
- package/dist/src/agent/tool-manuals/xopc-use.d.ts +1 -1
- package/dist/src/agent/tool-manuals/xopc-use.js +5 -4
- package/dist/src/agent/tools/automation-tool.d.ts +4 -1
- package/dist/src/agent/tools/automation-tool.js +42 -4
- package/dist/src/agent/tools/session-search-tool.js +1 -1
- package/dist/src/agent/tools/web-extract.js +1 -1
- package/dist/src/agent/tools/xopc-use-tool.js +50 -9
- package/dist/src/agent-catalog/capabilities.js +2 -2
- package/dist/src/ai-assist/text-assist.js +5 -1
- package/dist/src/auth/credentials.js +1 -1
- package/dist/src/auth/oauth-provider-lock.js +1 -1
- package/dist/src/auth/sync-provider-auth.js +1 -1
- package/dist/src/automations/api/routes.js +65 -0
- package/dist/src/automations/capabilities/drafts.js +1 -1
- package/dist/src/automations/capabilities/read.js +24 -0
- package/dist/src/automations/capabilities/write.d.ts +69 -14
- package/dist/src/automations/capabilities/write.js +78 -5
- package/dist/src/automations/delivery/delivery-router.d.ts +50 -0
- package/dist/src/automations/delivery/delivery-router.js +318 -0
- package/dist/src/automations/delivery/index.d.ts +1 -0
- package/dist/src/automations/delivery/index.js +2 -0
- package/dist/src/automations/domain/defaults.d.ts +0 -1
- package/dist/src/automations/domain/defaults.js +2 -2
- package/dist/src/automations/domain/index.js +2 -2
- package/dist/src/automations/domain/types.d.ts +180 -7
- package/dist/src/automations/domain/validation.d.ts +172 -22
- package/dist/src/automations/domain/validation.js +82 -13
- package/dist/src/automations/draft/automation-draft-prompt.js +3 -4
- package/dist/src/automations/draft/automation-draft-service.js +6 -0
- package/dist/src/automations/draft/automation-draft-validator.d.ts +31 -3
- package/dist/src/automations/draft/automation-draft-validator.js +5 -4
- package/dist/src/automations/events/event-catalog.d.ts +14 -0
- package/dist/src/automations/events/event-catalog.js +117 -0
- package/dist/src/automations/events/event-dispatcher.d.ts +27 -0
- package/dist/src/automations/events/event-dispatcher.js +140 -0
- package/dist/src/automations/events/event-repository.d.ts +59 -0
- package/dist/src/automations/events/event-repository.js +361 -0
- package/dist/src/automations/events/index.d.ts +3 -0
- package/dist/src/automations/events/index.js +4 -0
- package/dist/src/automations/index.d.ts +3 -1
- package/dist/src/automations/index.js +9 -3
- package/dist/src/automations/service/action-executor.d.ts +20 -1
- package/dist/src/automations/service/action-executor.js +80 -24
- package/dist/src/automations/service/automation-service.d.ts +21 -4
- package/dist/src/automations/service/automation-service.js +150 -100
- package/dist/src/automations/storage/automation-repository.js +7 -7
- package/dist/src/automations/storage/automation-run-repository.d.ts +1 -0
- package/dist/src/automations/storage/automation-run-repository.js +26 -1
- package/dist/src/automations/storage/index.js +2 -2
- package/dist/src/automations/webhook-secrets.d.ts +1 -0
- package/dist/src/automations/webhook-secrets.js +16 -0
- 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/capabilities/store-connector.d.ts +17 -1
- package/dist/src/capabilities/store-connector.js +69 -3
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +1 -1
- package/dist/src/cli/commands/agent.js +1 -1
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/connectors.js +4 -3
- package/dist/src/cli/commands/doctor/checks/automation-integrity.d.ts +2 -0
- package/dist/src/cli/commands/doctor/checks/automation-integrity.js +55 -0
- package/dist/src/cli/commands/doctor/checks/database-relations.d.ts +2 -0
- package/dist/src/cli/commands/doctor/checks/database-relations.js +81 -0
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/doctor/flow.js +5 -1
- package/dist/src/cli/commands/extension-marketplace.js +1 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +2 -2
- package/dist/src/cli/commands/skills.js +1 -1
- package/dist/src/cli/utils/init-workspace-core.js +1 -1
- package/dist/src/config/index.js +4 -4
- package/dist/src/config/loader.js +2 -2
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.d.ts +4 -0
- package/dist/src/config/schema.js +5 -1
- package/dist/src/connectors/approval-resume.js +1 -1
- package/dist/src/connectors/cli/store.js +1 -1
- package/dist/src/connectors/composio-backends.js +14 -4
- package/dist/src/connectors/composio-managed-events.d.ts +5 -2
- package/dist/src/connectors/composio-managed-events.js +4 -1
- package/dist/src/connectors/connection-recovery-service.d.ts +2 -1
- package/dist/src/connectors/connection-recovery-service.js +89 -4
- package/dist/src/discussions/analyzer.js +4 -4
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/home-intelligence-automation-reconciler.d.ts +3 -0
- package/dist/src/gateway/home-intelligence-automation-reconciler.js +52 -0
- package/dist/src/gateway/hono/lib/config-payload.js +1 -1
- package/dist/src/gateway/hono/routes/capabilities.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +18 -4
- package/dist/src/gateway/hono/routes/connection-waits.js +3 -2
- package/dist/src/gateway/hono/routes/home.js +0 -1
- package/dist/src/gateway/hono/routes/lazy-bundles.js +14 -1
- 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/public-gateway.js +93 -3
- package/dist/src/gateway/hono/routes/scenes.js +57 -41
- package/dist/src/gateway/hono/routes/session-input-handler.js +1 -1
- package/dist/src/gateway/hono/routes/sessions.js +15 -0
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/hono/routes/update.js +6 -1
- package/dist/src/gateway/hono/routes/usage.d.ts +3 -0
- package/dist/src/gateway/hono/routes/usage.js +61 -0
- package/dist/src/gateway/hono/routes/voice.js +1 -1
- package/dist/src/gateway/image-generation-setup.js +2 -2
- package/dist/src/gateway/lock.js +1 -1
- package/dist/src/gateway/memory-maintenance-automation-reconciler.js +21 -15
- package/dist/src/gateway/scenes/host.js +27 -14
- package/dist/src/gateway/scenes/slackThreadSource.d.ts +2 -2
- package/dist/src/gateway/security/gateway-scopes.js +1 -0
- package/dist/src/gateway/service/active-execution.d.ts +19 -0
- package/dist/src/gateway/service/active-execution.js +16 -0
- package/dist/src/gateway/service/agent-runner.d.ts +4 -0
- package/dist/src/gateway/service/agent-runner.js +19 -1
- package/dist/src/gateway/service/marketplace-service.js +2 -2
- package/dist/src/gateway/service/run-gateway-agent.d.ts +2 -0
- package/dist/src/gateway/service/run-gateway-agent.js +9 -1
- package/dist/src/gateway/service/sessions-api.d.ts +13 -0
- package/dist/src/gateway/service/sessions-api.js +23 -0
- package/dist/src/gateway/service.d.ts +7 -3
- package/dist/src/gateway/service.js +108 -89
- package/dist/src/gateway/side-chat/run-service.js +10 -7
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/generator.js +4 -1
- package/dist/src/home-intelligence/host.d.ts +1 -1
- package/dist/src/home-intelligence/host.js +2 -10
- package/dist/src/home-intelligence/notification.js +1 -1
- package/dist/src/home-intelligence/repository.d.ts +1 -1
- package/dist/src/infra/domain-outbox-dispatcher.d.ts +0 -3
- package/dist/src/infra/domain-outbox-dispatcher.js +15 -7
- package/dist/src/infra/update-check.d.ts +8 -4
- package/dist/src/infra/update-check.js +43 -41
- package/dist/src/infra/update-startup.d.ts +7 -1
- package/dist/src/infra/update-startup.js +15 -6
- package/dist/src/local-apps/service.js +2 -2
- package/dist/src/memory-maintenance/index.js +2 -2
- package/dist/src/memory-maintenance/schedule.d.ts +0 -3
- package/dist/src/memory-maintenance/schedule.js +1 -8
- package/dist/src/notes/service.js +2 -3
- package/dist/src/projects/project-service.js +1 -2
- package/dist/src/projects/project-skill-service.js +2 -2
- package/dist/src/providers/model-call.d.ts +3 -2
- package/dist/src/providers/model-call.js +30 -5
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/scenes/activationAdapter.d.ts +19 -0
- package/dist/src/scenes/activationAdapter.js +1 -0
- package/dist/src/scenes/agentExecutor.js +3 -10
- package/dist/src/scenes/contracts.d.ts +3 -9
- package/dist/src/scenes/contracts.js +1 -0
- package/dist/src/scenes/execution.d.ts +9 -3
- package/dist/src/scenes/execution.js +12 -11
- package/dist/src/scenes/httpServices.d.ts +5 -2
- package/dist/src/scenes/mailContext.d.ts +4 -0
- package/dist/src/scenes/mailContext.js +9 -0
- package/dist/src/scenes/maintenance.js +1 -5
- package/dist/src/scenes/metrics.d.ts +0 -6
- package/dist/src/scenes/metrics.js +0 -11
- package/dist/src/scenes/registry.d.ts +11 -0
- package/dist/src/scenes/registry.js +28 -0
- package/dist/src/scenes/repository.d.ts +6 -3
- package/dist/src/scenes/repository.js +43 -5
- package/dist/src/scenes/service.d.ts +2 -1
- package/dist/src/scenes/service.js +9 -7
- package/dist/src/scenes/taskFollowUp/contracts.d.ts +37 -7
- package/dist/src/scenes/taskFollowUp/contracts.js +36 -17
- package/dist/src/scenes/taskFollowUp/service.d.ts +35 -7
- package/dist/src/scenes/taskFollowUp/service.js +86 -28
- package/dist/src/scenes/templates.d.ts +2 -2
- package/dist/src/scenes/userNotes.d.ts +3 -0
- package/dist/src/scenes/userNotes.js +6 -0
- package/dist/src/session/client-history.d.ts +3 -0
- package/dist/src/session/client-history.js +10 -5
- package/dist/src/session/manager.d.ts +1 -0
- package/dist/src/session/resolve-session.js +4 -3
- package/dist/src/session/session-title.js +1 -1
- package/dist/src/session/store.d.ts +1 -0
- package/dist/src/session/store.js +3 -2
- package/dist/src/storage/sqlite/ai-usage-repository.d.ts +137 -0
- package/dist/src/storage/sqlite/ai-usage-repository.js +175 -0
- package/dist/src/storage/sqlite/connector-account-repository.js +7 -5
- package/dist/src/storage/sqlite/connector-repository.js +36 -34
- package/dist/src/storage/sqlite/index.d.ts +2 -2
- package/dist/src/storage/sqlite/index.js +3 -3
- package/dist/src/storage/sqlite/migrations/208_automation_management.sql +2 -0
- package/dist/src/storage/sqlite/migrations/209_automation_event_hub.sql +48 -0
- package/dist/src/storage/sqlite/migrations/210_remove_legacy_automation_timeout.sql +14 -0
- package/dist/src/storage/sqlite/migrations/211_automation_result_deliveries.sql +16 -0
- package/dist/src/storage/sqlite/migrations/212_automation_delivery_policy.sql +30 -0
- package/dist/src/storage/sqlite/migrations/213_automation_reliability_contract.sql +188 -0
- package/dist/src/storage/sqlite/migrations/214_ai_usage_ledger.sql +41 -0
- package/dist/src/storage/sqlite/migrations/215_scene_execution_adapters.sql +6 -0
- package/dist/src/storage/sqlite/migrations/216_remove_scene_model_usage.sql +1 -0
- package/dist/src/storage/sqlite/migrations/217_remove_legacy_memory_tables.sql +4 -0
- package/dist/src/storage/sqlite/migrations/218_core_relation_indexes.sql +26 -0
- package/dist/src/storage/sqlite/migrations/219_json_contracts.sql +123 -0
- package/dist/src/storage/sqlite/migrations/220_normalize_timestamps.sql +339 -0
- package/dist/src/storage/sqlite/migrations/221_ai_usage_retention_index.sql +2 -0
- package/dist/src/storage/sqlite/migrations/222_session_config_authority.sql +13 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +4 -4
- package/dist/src/storage/sqlite/row-mappers.d.ts +3 -7
- package/dist/src/storage/sqlite/row-mappers.js +6 -6
- package/dist/src/storage/sqlite/scenes-schema.d.ts +1 -1
- package/dist/src/storage/sqlite/scenes-schema.js +0 -1
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/schema.sql +0 -52
- package/dist/src/storage/sqlite/schemas/scenes.sql +0 -7
- package/dist/src/storage/sqlite/session-input-repository.d.ts +8 -0
- package/dist/src/storage/sqlite/session-input-repository.js +18 -1
- package/dist/src/storage/sqlite/session-read-repository.d.ts +1 -1
- package/dist/src/storage/sqlite/session-read-repository.js +0 -1
- package/dist/src/storage/sqlite/session-repository.d.ts +0 -4
- package/dist/src/storage/sqlite/session-repository.js +8 -18
- package/dist/src/storage/sqlite/timestamps.d.ts +4 -0
- package/dist/src/storage/sqlite/timestamps.js +20 -0
- package/dist/src/storage/sqlite/transcript-repository.d.ts +1 -0
- package/dist/src/storage/sqlite/transcript-repository.js +23 -15
- package/dist/src/storage/sqlite/user-trust-repository.js +4 -2
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/capabilities/write.d.ts +1 -1
- package/dist/src/tasks/home-query-service.js +4 -3
- package/dist/src/tasks/task-contract-planner.js +1 -1
- package/dist/src/tui/backends/embedded-backend.js +2 -2
- package/dist/src/tui/tui-commands.js +1 -1
- package/dist/src/tui/tui-startup-resources.js +1 -1
- package/dist/src/tui/tui.js +1 -1
- package/dist/src/usage/cost.d.ts +4 -0
- package/dist/src/usage/cost.js +28 -0
- package/dist/src/usage/recorder.d.ts +13 -0
- package/dist/src/usage/recorder.js +117 -0
- package/dist/src/usage/scenario-registry.d.ts +8 -0
- package/dist/src/usage/scenario-registry.js +117 -0
- package/dist/src/usage/types.d.ts +55 -0
- package/dist/src/usage/types.js +1 -0
- package/dist/src/user-context/config.d.ts +9 -0
- package/dist/src/user-context/config.js +13 -4
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/voice/tts/summarize.js +1 -1
- package/dist/src/work-discovery/analyzer.js +2 -2
- package/dist/src/work-discovery/investigator.js +1 -1
- package/dist/src/workflows/service/workflow-run-service.js +15 -2
- package/package.json +6 -6
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-DgP5DEJF.js +0 -1
- package/dist/gateway/static/root/assets/agents-Bh4XNLyk.js +0 -70
- package/dist/gateway/static/root/assets/automations-workspace-C7VS-yb7.js +0 -7
- package/dist/gateway/static/root/assets/browser-settings-page-CC43CC43.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-sAZT4brT.js +0 -1
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DPETQOfF.js +0 -8
- package/dist/gateway/static/root/assets/channels-CwA619os.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-l7goF6QS.js +0 -2
- package/dist/gateway/static/root/assets/home-page-DSaXXoLm.js +0 -1
- package/dist/gateway/static/root/assets/index-BEw0xrde.css +0 -1
- package/dist/gateway/static/root/assets/index-D99vN3es.js +0 -121
- package/dist/gateway/static/root/assets/local-app-workbench-page-rH33N8I9.js +0 -1
- package/dist/gateway/static/root/assets/management-settings-RFDLaquR.js +0 -1
- package/dist/gateway/static/root/assets/messages-fmf0dnr4.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-DI7CIjmM.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-BkqnU-Jh.js +0 -8
- package/dist/gateway/static/root/assets/project-detail-page-BvvcTH2F.js +0 -1
- package/dist/gateway/static/root/assets/scenes-page-DK316w9a.js +0 -2
- package/dist/gateway/static/root/assets/sessions-page-EIk8iJTK.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-DcOsdz78.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-BcaxGQLC.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-Cb_CUL-U.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-Cvr1qUTW.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-VXfz3rE7.js +0 -2
- package/dist/gateway/static/root/assets/workflows-page-DDNDLdId.js +0 -6
- package/dist/src/automations/product-events.d.ts +0 -5
- package/dist/src/automations/product-events.js +0 -19
|
@@ -16,8 +16,8 @@ import { getInstalledConnectorDefinition, listConnectorInstances } from "./insta
|
|
|
16
16
|
import { describeCliAction, verifyCliConnection } from "./cli/runtime.js";
|
|
17
17
|
import { connectorPrincipalForSession } from "./principal.js";
|
|
18
18
|
import { capabilityActions, isToolInputSchema, missingConnectionCapabilities } from "./connection-capabilities.js";
|
|
19
|
-
import { resolveConnectionCandidate } from "./connection-candidates.js";
|
|
20
19
|
import { installConnector } from "./install.js";
|
|
20
|
+
import { resolveConnectionCandidate } from "./connection-candidates.js";
|
|
21
21
|
import { persistConfigMutation } from "../config/config-mutation.js";
|
|
22
22
|
import { HostPluginMcpRecovery } from "./plugin-mcp-recovery.js";
|
|
23
23
|
import { randomUUID } from "node:crypto";
|
|
@@ -108,6 +108,32 @@ var ConnectionRecoveryService = class {
|
|
|
108
108
|
...availability.reason || need.capabilityError ? { reason: availability.reason ?? need.capabilityError } : {}
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
+
if (need.target.type === "store-connector") {
|
|
112
|
+
const target = need.target;
|
|
113
|
+
const instance = listConnectorInstances(this.deps.getConfig()).find((item) => item.connectorId === target.connectorId);
|
|
114
|
+
const definition = instance ? getInstalledConnectorDefinition(this.deps.getConfig(), instance.instanceId) : void 0;
|
|
115
|
+
const digestMatches = definition?.provenance?.packageName === target.packageName && definition.provenance.sha256 === target.sha256 && definition.version === target.version;
|
|
116
|
+
const unhealthy = instance && (!instance.enabled || [
|
|
117
|
+
"failed",
|
|
118
|
+
"disabled",
|
|
119
|
+
"not_configured",
|
|
120
|
+
"unauthorized",
|
|
121
|
+
"degraded"
|
|
122
|
+
].includes(instance.status) || [
|
|
123
|
+
"missing",
|
|
124
|
+
"expired",
|
|
125
|
+
"unauthorized"
|
|
126
|
+
].includes(instance.authStatus ?? ""));
|
|
127
|
+
const phase = !instance ? "install" : !digestMatches || unhealthy ? "blocked" : "ready";
|
|
128
|
+
return {
|
|
129
|
+
...need,
|
|
130
|
+
...instance ? { connectionId: instance.instanceId } : {},
|
|
131
|
+
phase,
|
|
132
|
+
accounts: [],
|
|
133
|
+
alternatives: [],
|
|
134
|
+
...phase === "blocked" ? { reason: !digestMatches ? "The installed Connector does not match the reviewed Store package." : "Connector setup is incomplete. Review its settings and try again." } : {}
|
|
135
|
+
};
|
|
136
|
+
}
|
|
111
137
|
const id = need.target.connectorId;
|
|
112
138
|
const instance = listConnectorInstances(this.deps.getConfig()).find((instance) => instance.connectorId === id);
|
|
113
139
|
const installation = getConnectorInstallation(`${id}-${wait.principalId}`);
|
|
@@ -193,7 +219,7 @@ var ConnectionRecoveryService = class {
|
|
|
193
219
|
}))
|
|
194
220
|
}, verified).needs;
|
|
195
221
|
return Promise.all(wait.needs.map(async (need) => {
|
|
196
|
-
if (need.target.type === "plugin-mcp") return need;
|
|
222
|
+
if (need.target.type === "plugin-mcp" || need.target.type === "store-connector") return need;
|
|
197
223
|
if (views.find((view) => view.key === need.key)?.phase !== "ready") return {
|
|
198
224
|
...need,
|
|
199
225
|
capabilityError: void 0
|
|
@@ -370,6 +396,50 @@ var ConnectionRecoveryService = class {
|
|
|
370
396
|
intent: void 0
|
|
371
397
|
}, "skipped");
|
|
372
398
|
this.deps.drain(conversationId);
|
|
399
|
+
} else if (action.action === "install_complete") {
|
|
400
|
+
const need = wait.needs.find((need) => need.key === action.needKey);
|
|
401
|
+
if (!need || need.target.type !== "store-connector" || !action.instanceId) throw new Error("Unknown Store Connector installation.");
|
|
402
|
+
const instance = listConnectorInstances(this.deps.getConfig()).find((item) => item.instanceId === action.instanceId);
|
|
403
|
+
const definition = instance ? getInstalledConnectorDefinition(this.deps.getConfig(), instance.instanceId) : void 0;
|
|
404
|
+
if (!instance || instance.connectorId !== need.target.connectorId || !instance.enabled || definition?.provenance?.packageName !== need.target.packageName || definition.provenance.sha256 !== need.target.sha256 || definition.version !== need.target.version) throw new Error("The installed Connector does not match the reviewed package.");
|
|
405
|
+
if ([
|
|
406
|
+
"failed",
|
|
407
|
+
"disabled",
|
|
408
|
+
"not_configured",
|
|
409
|
+
"unauthorized",
|
|
410
|
+
"degraded"
|
|
411
|
+
].includes(instance.status) || [
|
|
412
|
+
"missing",
|
|
413
|
+
"expired",
|
|
414
|
+
"unauthorized"
|
|
415
|
+
].includes(instance.authStatus ?? "")) throw new Error("Connector setup is incomplete. Finish setup before continuing.");
|
|
416
|
+
wait = updateConnectionWait({
|
|
417
|
+
...wait,
|
|
418
|
+
needs: wait.needs.map((item) => item.key === need.key ? {
|
|
419
|
+
...item,
|
|
420
|
+
connectionId: instance.instanceId,
|
|
421
|
+
unavailable: false,
|
|
422
|
+
capabilityError: void 0
|
|
423
|
+
} : item),
|
|
424
|
+
intent: {
|
|
425
|
+
objectiveRevision: wait.objectiveRevision,
|
|
426
|
+
validUntil: Date.now() + INTENT_TTL
|
|
427
|
+
}
|
|
428
|
+
}, wait.version);
|
|
429
|
+
const view = this.view(wait);
|
|
430
|
+
if (view.phase === "ready") {
|
|
431
|
+
queueConnectionResolution({
|
|
432
|
+
...wait,
|
|
433
|
+
needs: view.needs.map(({ phase: _phase, accounts: _accounts, reason: _reason, alternatives: _alternatives, ...item }) => item)
|
|
434
|
+
}, "continued");
|
|
435
|
+
log.info({
|
|
436
|
+
conversationId,
|
|
437
|
+
waitId: wait.id,
|
|
438
|
+
objectiveRevision: wait.objectiveRevision,
|
|
439
|
+
phase: "resume_queued"
|
|
440
|
+
}, "Connector installation continuation queued");
|
|
441
|
+
this.deps.drain(conversationId);
|
|
442
|
+
}
|
|
373
443
|
} else if (action.action === "connect") {
|
|
374
444
|
const need = wait.needs.find((need) => need.key === action.needKey);
|
|
375
445
|
if (!need) throw new Error("Unknown connection requirement.");
|
|
@@ -498,6 +568,18 @@ var ConnectionRecoveryService = class {
|
|
|
498
568
|
if (!latest || latest.version !== wait.version || latest.status !== "open") throw new Error("WAIT_CHANGED");
|
|
499
569
|
let needs = wait.needs.map((need) => {
|
|
500
570
|
if (need.target.type === "plugin-mcp") return need;
|
|
571
|
+
if (need.target.type === "store-connector") {
|
|
572
|
+
const selected = this.view({
|
|
573
|
+
...wait,
|
|
574
|
+
needs
|
|
575
|
+
}).needs.find((item) => item.key === need.key);
|
|
576
|
+
return selected?.phase === "ready" ? {
|
|
577
|
+
...need,
|
|
578
|
+
connectionId: selected.connectionId,
|
|
579
|
+
unavailable: false,
|
|
580
|
+
capabilityError: void 0
|
|
581
|
+
} : need;
|
|
582
|
+
}
|
|
501
583
|
const id = need.target.connectorId;
|
|
502
584
|
const authorized = fresh.find((item) => item.providerConnectionId === need.attempt?.connectionId && item.status === "active" && item.connectorId === id && (!need.accountId || item.accountId === need.accountId));
|
|
503
585
|
return authorized ? {
|
|
@@ -540,7 +622,10 @@ var ConnectionRecoveryService = class {
|
|
|
540
622
|
needs
|
|
541
623
|
}, verified);
|
|
542
624
|
if (getConnectionWait(wait.id)?.version !== wait.version) throw new Error("WAIT_CHANGED");
|
|
543
|
-
const
|
|
625
|
+
const readyWithoutReview = this.view({
|
|
626
|
+
...wait,
|
|
627
|
+
needs
|
|
628
|
+
}, verified).phase === "ready";
|
|
544
629
|
wait = updateConnectionWait({
|
|
545
630
|
...wait,
|
|
546
631
|
needs,
|
|
@@ -548,7 +633,7 @@ var ConnectionRecoveryService = class {
|
|
|
548
633
|
scopeConfirmedAt: Date.now(),
|
|
549
634
|
reviewRequired: false
|
|
550
635
|
} : {},
|
|
551
|
-
...needs.some((need) => need.capabilityError) ? { intent: void 0 } :
|
|
636
|
+
...needs.some((need) => need.capabilityError) ? { intent: void 0 } : readyWithoutReview || action.action === "confirm_scope" ? { intent: {
|
|
552
637
|
objectiveRevision: wait.objectiveRevision,
|
|
553
638
|
validUntil: Date.now() + INTENT_TTL
|
|
554
639
|
} } : {}
|
|
@@ -188,7 +188,7 @@ async function analyzeDiscussion(input) {
|
|
|
188
188
|
maxTokens: 8e3,
|
|
189
189
|
temperature: .1,
|
|
190
190
|
signal: input.signal
|
|
191
|
-
})).content)));
|
|
191
|
+
}, void 0, { operation: "discussion.analyze" })).content)));
|
|
192
192
|
validateDiscussionEvidence(organization, new Set(batch.map((segment) => segment.sequence)));
|
|
193
193
|
organization.chapters = [{
|
|
194
194
|
title: organization.title,
|
|
@@ -234,7 +234,7 @@ async function analyzeDiscussion(input) {
|
|
|
234
234
|
maxTokens: 2e3,
|
|
235
235
|
temperature: 0,
|
|
236
236
|
signal: input.signal
|
|
237
|
-
});
|
|
237
|
+
}, void 0, { operation: "discussion.analyze" });
|
|
238
238
|
const parsed = MeetingChangesSchema.parse(parseJsonObject(extractText(response.content)));
|
|
239
239
|
if (parsed.changes.some((change) => change.fromId === change.toId || !earlier.some((item) => item.id === change.fromId) || !later.some((item) => item.id === change.toId))) throw new Error("Invalid meeting change evidence");
|
|
240
240
|
getSqliteDatabase().prepare("INSERT OR REPLACE INTO discussion_analysis_chunks (discussion_id,input_hash,result_json) VALUES (?,?,?)").run(input.discussionId, cacheKey, JSON.stringify(parsed));
|
|
@@ -260,7 +260,7 @@ async function analyzeDiscussion(input) {
|
|
|
260
260
|
maxTokens: 2e3,
|
|
261
261
|
temperature: .1,
|
|
262
262
|
signal: input.signal
|
|
263
|
-
});
|
|
263
|
+
}, void 0, { operation: "discussion.analyze" });
|
|
264
264
|
return z.object({
|
|
265
265
|
title: z.string().min(1).max(200),
|
|
266
266
|
summary: z.string().min(1).max(2e3)
|
|
@@ -295,7 +295,7 @@ async function enrichLiveDiscussion(input) {
|
|
|
295
295
|
maxTokens: 400,
|
|
296
296
|
temperature: .1,
|
|
297
297
|
signal: input.signal
|
|
298
|
-
});
|
|
298
|
+
}, void 0, { operation: "discussion.analyze" });
|
|
299
299
|
return {
|
|
300
300
|
modelRef,
|
|
301
301
|
...LiveEnrichmentSchema.parse(parseJsonObject(extractText(response.content)))
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
2
2
|
import { existsSync, lstatSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import yaml from "js-yaml";
|
|
5
4
|
import { validateHeaderName, validateHeaderValue } from "node:http";
|
|
5
|
+
import yaml from "js-yaml";
|
|
6
6
|
//#region src/extensions/agent-plugins/validation.ts
|
|
7
7
|
const PLUGIN_SCHEMA = "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json";
|
|
8
8
|
const MCP_SCHEMA = "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
3
|
import { init_paths, resolveBundledExtensionsDir, resolveExtensionsDir } from "../config/paths.js";
|
|
4
|
-
import { computeExtensionDirectoryIntegrity, getExtensionLockfileManager } from "./lockfile.js";
|
|
5
4
|
import { downloadExtensionStoreZipBuffer, resolveExtensionZipDownloadUrl, resolveExtensionsStoreBaseUrl, verifyStoreArtifactSha256 } from "../agent/skills/marketplace/adapters/store/store-api-client.js";
|
|
5
|
+
import { computeExtensionDirectoryIntegrity, getExtensionLockfileManager } from "./lockfile.js";
|
|
6
6
|
import { loadConfig } from "../config/loader.js";
|
|
7
7
|
import { commitStagedExtensionInstall, finalizeStagedExtensionInstall, rollbackStagedExtensionInstall, stageExtensionNpm, stageExtensionStoreZip } from "./install-transaction.js";
|
|
8
8
|
import { findExtension } from "./marketplace.js";
|
|
@@ -277,4 +277,4 @@ export declare const GATEWAY_BUILTIN_TOOLS: readonly [{
|
|
|
277
277
|
readonly zh: "使用已验证的参数执行选定的外部工具。";
|
|
278
278
|
};
|
|
279
279
|
}];
|
|
280
|
-
export declare const GATEWAY_BUILTIN_TOOL_IDS: ("automation" | "workflow" | "find" | "image" | "knowledge_search" | "knowledge_get" | "knowledge_write" | "user_context_search" | "user_context_get" | "user_context_update" | "web_search" | "web_fetch" | "browser_use" | "grep" | "session_search" | "read_file" | "list_dir" | "write_file" | "apply_patch" | "exec_command" | "update_plan" | "todo" | "clarify" | "xopc_tool_execute" | "
|
|
280
|
+
export declare const GATEWAY_BUILTIN_TOOL_IDS: ("automation" | "workflow" | "find" | "image" | "knowledge_search" | "knowledge_get" | "knowledge_write" | "user_context_search" | "user_context_get" | "user_context_update" | "web_search" | "web_fetch" | "browser_use" | "grep" | "session_search" | "read_file" | "list_dir" | "write_file" | "apply_patch" | "exec_command" | "update_plan" | "todo" | "clarify" | "xopc_tool_execute" | "web_extract" | "image_generate" | "skills_list" | "skill_view" | "skill_manage" | "skills_marketplace_search" | "xopc_tool_search" | "xopc_tool_describe" | "send_message" | "send_media" | "read_media" | "create_share" | "session_status" | "memory_maintenance" | "computer_use" | "tool_manual" | "delegate_task" | "skill_install" | "text_to_speech" | "execute_code" | "create_desktop_pet")[];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { normalizeAgentId, validateAgentIdForNewAgent } from "../agent-catalog/id.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../agent-catalog/repository.js";
|
|
3
3
|
import { init_agent_scope, listAgentEntries, resolveAgentProfileDir, resolveAgentWorkspaceDir, resolveDefaultAgentId, resolveUserPath } from "../agent/agent-scope.js";
|
|
4
|
+
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
4
5
|
import { WORKSPACE_FILES, init_paths } from "../config/paths.js";
|
|
5
6
|
import { AGENT_PROFILE_MARKDOWN_SYSTEM_FILES, REQUIRED_AGENT_PROFILE_MARKDOWN_FILE_SET } from "../agent/context/workspace.js";
|
|
6
|
-
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
7
|
-
import { resolveEffectiveAgentProfile } from "../config/agent-profile.js";
|
|
8
7
|
import { isPathUnderWorkspace, resolveWorkspaceSafePath } from "./workspace-editor-path.js";
|
|
8
|
+
import { AgentCatalogService } from "../agent-catalog/service.js";
|
|
9
9
|
import { GATEWAY_BUILTIN_TOOL_IDS } from "./agent-builtin-tools.js";
|
|
10
10
|
import { join, resolve } from "node:path";
|
|
11
11
|
import { mkdir, readFile, realpath, stat, unlink, writeFile } from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { init_paths_state, resolveStateDir } from "../config/paths-state.js";
|
|
2
2
|
import { init_agent_scope, resolveAgentProfileDir } from "../agent/agent-scope.js";
|
|
3
|
-
import { init_paths, resolveConfigPath, resolveSkillsDir } from "../config/paths.js";
|
|
4
3
|
import { extractProfileAgentId } from "../config/agent-profile.js";
|
|
4
|
+
import { init_paths, resolveConfigPath, resolveSkillsDir } from "../config/paths.js";
|
|
5
5
|
import { isBareProfileMarkdownFileName, resolveProfileMarkdownPathIfBareName } from "../agent/tools/tool-paths.js";
|
|
6
6
|
import { isPathUnderWorkspace, resolveWorkspaceSafePath } from "./workspace-editor-path.js";
|
|
7
7
|
import { basename, isAbsolute, resolve } from "node:path";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { AutomationService } from '../automations/index.js';
|
|
2
|
+
export declare const HOME_ADVISOR_REFRESH_AUTOMATION_ID = "system-home-advisor-refresh";
|
|
3
|
+
export declare function reconcileHomeIntelligenceAutomation(automationService: AutomationService): Promise<'created' | 'updated' | 'unchanged'>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/gateway/home-intelligence-automation-reconciler.ts
|
|
2
|
+
const HOME_ADVISOR_REFRESH_AUTOMATION_ID = "system-home-advisor-refresh";
|
|
3
|
+
async function reconcileHomeIntelligenceAutomation(automationService) {
|
|
4
|
+
const current = await automationService.get(HOME_ADVISOR_REFRESH_AUTOMATION_ID);
|
|
5
|
+
const managed = {
|
|
6
|
+
name: "Refresh Home AI suggestions",
|
|
7
|
+
description: "Re-evaluate Home suggestions from current workspace context.",
|
|
8
|
+
action: {
|
|
9
|
+
kind: "system",
|
|
10
|
+
capability: "home.advisor.refresh"
|
|
11
|
+
},
|
|
12
|
+
safety: { mode: "auto_apply" },
|
|
13
|
+
conversationMode: "new_session",
|
|
14
|
+
delivery: {
|
|
15
|
+
notificationPolicy: "none",
|
|
16
|
+
destinations: []
|
|
17
|
+
},
|
|
18
|
+
reliability: { disableAfterConsecutiveFailures: 3 },
|
|
19
|
+
management: {
|
|
20
|
+
owner: "home-intelligence",
|
|
21
|
+
editable: ["enabled", "trigger"],
|
|
22
|
+
runnable: true,
|
|
23
|
+
deletable: false
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
if (!current) {
|
|
27
|
+
await automationService.create({
|
|
28
|
+
id: HOME_ADVISOR_REFRESH_AUTOMATION_ID,
|
|
29
|
+
enabled: false,
|
|
30
|
+
trigger: {
|
|
31
|
+
kind: "schedule",
|
|
32
|
+
schedule: {
|
|
33
|
+
kind: "interval",
|
|
34
|
+
everyMs: 30 * 6e4,
|
|
35
|
+
anchorMs: Date.now()
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
...managed
|
|
39
|
+
});
|
|
40
|
+
return "created";
|
|
41
|
+
}
|
|
42
|
+
const patch = {
|
|
43
|
+
...managed,
|
|
44
|
+
enabled: current.enabled,
|
|
45
|
+
trigger: current.trigger
|
|
46
|
+
};
|
|
47
|
+
if (!Object.entries(patch).some(([key, value]) => JSON.stringify(current[key]) !== JSON.stringify(value))) return "unchanged";
|
|
48
|
+
await automationService.update(HOME_ADVISOR_REFRESH_AUTOMATION_ID, patch);
|
|
49
|
+
return "updated";
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { HOME_ADVISOR_REFRESH_AUTOMATION_ID, reconcileHomeIntelligenceAutomation };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { normalizeAgentId } from "../../../agent-catalog/id.js";
|
|
2
2
|
import { AgentCatalogRepository, init_repository } from "../../../agent-catalog/repository.js";
|
|
3
|
+
import { ContextPlanningConfigSchema, KnowledgeMemoryConfigSchema, UserModelConfigSchema, init_config } from "../../../user-context/config.js";
|
|
3
4
|
import { init_agent_scope, listAgentEntries, resolveDefaultAgentId } from "../../../agent/agent-scope.js";
|
|
4
5
|
import { resolveModelsJsonPath } from "../../../config/paths.js";
|
|
5
|
-
import { ContextPlanningConfigSchema, KnowledgeMemoryConfigSchema, UserModelConfigSchema, init_config } from "../../../user-context/config.js";
|
|
6
6
|
import { init_models_json, loadModelsJson } from "../../../config/models-json.js";
|
|
7
7
|
import { CredentialResolver, init_credentials } from "../../../auth/credentials.js";
|
|
8
8
|
import { getProviderRegistry, init_plugin_registry } from "../../../providers/plugin-registry.js";
|
|
@@ -55,7 +55,7 @@ function registerCapabilityRoutes(authenticated, deps) {
|
|
|
55
55
|
try {
|
|
56
56
|
const { instance, plan } = await persistConfigMutation({
|
|
57
57
|
config,
|
|
58
|
-
mutate: () => installStoreConnector(config, c.req.param("name"), input, optionalVersion(body)),
|
|
58
|
+
mutate: () => installStoreConnector(config, c.req.param("name"), input, optionalVersion(body), typeof body.reviewHash === "string" ? body.reviewHash : void 0),
|
|
59
59
|
save: () => service.saveConfig(config)
|
|
60
60
|
});
|
|
61
61
|
return c.json({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BindingsSchema, init_binding_schema } from "../../../../routing/binding-schema.js";
|
|
2
|
-
import { AgentCatalogService } from "../../../../agent-catalog/service.js";
|
|
3
1
|
import { ComputerConfigSchema, init_config } from "../../../../computer/config.js";
|
|
4
|
-
import {
|
|
2
|
+
import { BindingsSchema, init_binding_schema } from "../../../../routing/binding-schema.js";
|
|
3
|
+
import { ContextPlanningConfigSchema, HomeIntelligenceConfigSchema, KnowledgeMemoryConfigSchema, UserContextConfigSchema, UserModelConfigSchema, init_config as init_config$1 } from "../../../../user-context/config.js";
|
|
5
4
|
import { BrowserConfigSchema, McpConfigSchema, VoiceConfigSchema, init_schema } from "../../../../config/schema.js";
|
|
6
5
|
import { CredentialResolver, init_credentials } from "../../../../auth/credentials.js";
|
|
7
6
|
import { canonicalizeConfiguredMcpServer } from "../../../../config/mcp-config-normalize.js";
|
|
7
|
+
import { AgentCatalogService } from "../../../../agent-catalog/service.js";
|
|
8
8
|
import { mergeGatewaySkillsMarketplacePatch, mergeSessionConfigPatch, mergeUpdateConfigPatch } from "../../../../config/web-patch.js";
|
|
9
9
|
import { assertGatewayAuthConfigured, resolveGatewayAuth } from "../../../auth.js";
|
|
10
10
|
import { isMaskedSecretPatchValue } from "../../lib/mask-secret-length.js";
|
|
@@ -37,7 +37,8 @@ async function applyMiscPatch(config, body) {
|
|
|
37
37
|
"preferences",
|
|
38
38
|
"userModel",
|
|
39
39
|
"knowledgeMemory",
|
|
40
|
-
"contextPlanning"
|
|
40
|
+
"contextPlanning",
|
|
41
|
+
"homeIntelligence"
|
|
41
42
|
].includes(key));
|
|
42
43
|
if (unknownKeys.length) return patchError(`Unknown userContext settings: ${unknownKeys.join(", ")}`);
|
|
43
44
|
if (userContextPatch.enabled !== void 0) {
|
|
@@ -111,6 +112,19 @@ async function applyMiscPatch(config, body) {
|
|
|
111
112
|
contextPlanning: parsed.data
|
|
112
113
|
};
|
|
113
114
|
}
|
|
115
|
+
if (userContextPatch.homeIntelligence !== void 0) {
|
|
116
|
+
const patch = userContextPatch.homeIntelligence;
|
|
117
|
+
if (typeof patch !== "object" || patch === null || Array.isArray(patch)) return patchError("userContext.homeIntelligence must be an object");
|
|
118
|
+
const parsed = HomeIntelligenceConfigSchema.safeParse({
|
|
119
|
+
...config.userContext.homeIntelligence,
|
|
120
|
+
...patch
|
|
121
|
+
});
|
|
122
|
+
if (!parsed.success) return patchError(parsed.error.issues.map((issue) => issue.message).join("; "));
|
|
123
|
+
config.userContext = {
|
|
124
|
+
...config.userContext,
|
|
125
|
+
homeIntelligence: parsed.data
|
|
126
|
+
};
|
|
127
|
+
}
|
|
114
128
|
const parsedUserContext = UserContextConfigSchema.safeParse(config.userContext);
|
|
115
129
|
if (!parsedUserContext.success) return patchError(parsedUserContext.error.issues.map((issue) => issue.message).join("; "));
|
|
116
130
|
config.userContext = parsedUserContext.data;
|
|
@@ -6,9 +6,9 @@ const actionSchema = z.object({
|
|
|
6
6
|
expectedVersion: z.number().int().positive(),
|
|
7
7
|
idempotencyKey: z.string().min(1).max(200),
|
|
8
8
|
action: z.enum([
|
|
9
|
+
"install_complete",
|
|
9
10
|
"connect",
|
|
10
11
|
"check",
|
|
11
|
-
"continue",
|
|
12
12
|
"skip",
|
|
13
13
|
"cancel",
|
|
14
14
|
"select_account",
|
|
@@ -19,7 +19,8 @@ const actionSchema = z.object({
|
|
|
19
19
|
candidateRef: z.string().optional(),
|
|
20
20
|
needKey: z.string().optional(),
|
|
21
21
|
accountId: z.string().optional(),
|
|
22
|
-
callbackUrl: z.string().max(16384).optional()
|
|
22
|
+
callbackUrl: z.string().max(16384).optional(),
|
|
23
|
+
instanceId: z.string().optional()
|
|
23
24
|
}).strict();
|
|
24
25
|
function registerConnectionWaitRoutes(app, { service, strictRateLimitMiddleware }) {
|
|
25
26
|
app.get("/api/sessions/:conversationId/connection-wait", (c) => {
|
|
@@ -16,7 +16,6 @@ function registerHomeRoutes(authenticated, deps) {
|
|
|
16
16
|
const home = new HomeQueryService(service, () => service.homeIntelligence.getAdvisor());
|
|
17
17
|
authenticated.get("/api/home", async (c) => {
|
|
18
18
|
const locale = c.req.query("locale");
|
|
19
|
-
service.homeIntelligence.requestRefresh("home_opened", void 0, locale);
|
|
20
19
|
return c.json(await home.getSnapshot(locale));
|
|
21
20
|
});
|
|
22
21
|
authenticated.get("/api/home/advisor/metrics", (c) => {
|
|
@@ -238,7 +238,12 @@ const AUTHENTICATED_LAZY_ROUTE_BUNDLES = [
|
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
240
|
id: "automations",
|
|
241
|
-
match: (path) => startsWithAny(path, [
|
|
241
|
+
match: (path) => startsWithAny(path, [
|
|
242
|
+
"/api/automations",
|
|
243
|
+
"/api/automation-runs",
|
|
244
|
+
"/api/automation-events",
|
|
245
|
+
"/api/automation-deliveries"
|
|
246
|
+
]),
|
|
242
247
|
load: async () => {
|
|
243
248
|
const { registerAutomationRoutes } = await import("../../../automations/api/routes.js");
|
|
244
249
|
return { register: registerAutomationRoutes };
|
|
@@ -284,6 +289,14 @@ const AUTHENTICATED_LAZY_ROUTE_BUNDLES = [
|
|
|
284
289
|
return { register: registerLogsRoutes };
|
|
285
290
|
}
|
|
286
291
|
},
|
|
292
|
+
{
|
|
293
|
+
id: "usage",
|
|
294
|
+
match: (path) => startsWithAny(path, ["/api/usage"]),
|
|
295
|
+
load: async () => {
|
|
296
|
+
const { registerUsageRoutes } = await import("./usage.js");
|
|
297
|
+
return { register: registerUsageRoutes };
|
|
298
|
+
}
|
|
299
|
+
},
|
|
287
300
|
{
|
|
288
301
|
id: "shares",
|
|
289
302
|
match: (path) => startsWithAny(path, ["/api/shares", "/api/hosted-publications"]) || /^\/api\/notes\/[^/]+\/hosted-publications(?:\/.*)?$/.test(path) || /^\/api\/sessions\/[^/]+\/(?:share-preview|shares|hosted-shares)(?:\/.*)?$/.test(path),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { NoteDeleteOutputSchema, NoteGetOutputSchema, ProductReadContracts } from "../../../../packages/gateway-contract/src/capabilities.js";
|
|
2
2
|
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
3
|
-
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
4
|
-
import "../../../capabilities/runtime/dispatcher.js";
|
|
5
3
|
import { init_session_key, resolveConversationId } from "../../../routing/session-key.js";
|
|
6
4
|
import { agentExists, getDefaultAgentId, init_resolve_route } from "../../../routing/resolve-route.js";
|
|
5
|
+
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
6
|
+
import "../../../capabilities/runtime/dispatcher.js";
|
|
7
7
|
import { resolveGatewayEffectiveHost } from "../../../config/gateway-bind.js";
|
|
8
8
|
import { getShareStore } from "../../../share/share-store.js";
|
|
9
9
|
import { resolveShareUrl } from "../../../share/share-url.js";
|
|
@@ -7,12 +7,12 @@ import { loadTranscriptRowsForSession } from "../../../storage/sqlite/transcript
|
|
|
7
7
|
import { init_sqlite } from "../../../storage/sqlite/index.js";
|
|
8
8
|
import { ActivityService } from "../../../activity/service.js";
|
|
9
9
|
import "../../../activity/index.js";
|
|
10
|
-
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
11
|
-
import "../../../capabilities/runtime/dispatcher.js";
|
|
12
10
|
import { resolveEffectiveAgentProfile } from "../../../config/agent-profile.js";
|
|
13
11
|
import { TaskReadModelProjector } from "../../../tasks/task-read-model-projector.js";
|
|
14
12
|
import { listKnowledgeItems, writeKnowledgeItem } from "../../../knowledge-memory/repository.js";
|
|
15
13
|
import "../../../knowledge-memory/index.js";
|
|
14
|
+
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
15
|
+
import "../../../capabilities/runtime/dispatcher.js";
|
|
16
16
|
import { ProjectWorkspaceConflictError, ProjectWorkspaceMissingError } from "../../../projects/workspace-project.js";
|
|
17
17
|
import { inferProjectExecutionMode, inferProjectKind } from "../../../projects/project-kind.js";
|
|
18
18
|
import { ProjectDeletionBlockedError, ProjectWorkspaceInUseError } from "../../../projects/project-service.js";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PACKAGE_VERSION, init_package_version } from "../../../package-version.js";
|
|
2
2
|
import { claimConnectorWebhookDelivery, completeConnectorWebhookDelivery, releaseConnectorWebhookDelivery } from "../../../storage/sqlite/connector-repository.js";
|
|
3
3
|
import { init_sqlite } from "../../../storage/sqlite/index.js";
|
|
4
|
+
import { resolveAutomationWebhookSecret } from "../../../automations/webhook-secrets.js";
|
|
4
5
|
import { composioLogoResponse } from "../../../connectors/composio-logo.js";
|
|
5
6
|
import { appendComposioTriggerEvent, applyComposioConnectionLifecycleEvent, normalizeComposioTriggerPayload, verifyComposioWebhook } from "../../../connectors/composio-triggers.js";
|
|
6
7
|
import { serveStaticFile } from "../lib/static-ui.js";
|
|
7
|
-
import { createHash } from "node:crypto";
|
|
8
|
+
import { createHash, timingSafeEqual } from "node:crypto";
|
|
8
9
|
//#region src/gateway/hono/routes/public-gateway.ts
|
|
9
10
|
init_package_version();
|
|
10
11
|
init_sqlite();
|
|
@@ -19,6 +20,9 @@ const PUBLIC_UI_ROOT_ASSETS = [
|
|
|
19
20
|
"pwa-512x512.png",
|
|
20
21
|
"site.webmanifest"
|
|
21
22
|
];
|
|
23
|
+
function secretsEqual(actual, expected) {
|
|
24
|
+
return timingSafeEqual(createHash("sha256").update(actual).digest(), createHash("sha256").update(expected).digest());
|
|
25
|
+
}
|
|
22
26
|
function registerPublicGatewayRoutes(app, service) {
|
|
23
27
|
app.get("/health", (c) => {
|
|
24
28
|
return c.json(service.getHealth());
|
|
@@ -84,9 +88,16 @@ function registerPublicGatewayRoutes(app, service) {
|
|
|
84
88
|
if (inactiveConnectionId) service.setConnectorLearningPaused(inactiveConnectionId, true);
|
|
85
89
|
const event = await appendComposioTriggerEvent(service.currentConfig, archivedPayload);
|
|
86
90
|
if (normalized.toolkit) service.requestConnectorLearningForToolkit(normalized.toolkit);
|
|
87
|
-
const
|
|
91
|
+
const ingested = service.ingestAutomationEvent({
|
|
92
|
+
id: `connector:composio:${webhookId}`,
|
|
88
93
|
type: `connector.${normalized.trigger ?? normalized.type}`,
|
|
89
94
|
source: normalized.toolkit ? `composio:${normalized.toolkit}` : "composio",
|
|
95
|
+
subject: {
|
|
96
|
+
kind: "connector_event",
|
|
97
|
+
id: webhookId
|
|
98
|
+
},
|
|
99
|
+
dedupeKey: webhookId,
|
|
100
|
+
trust: "connector",
|
|
90
101
|
payload: {
|
|
91
102
|
...normalized.data,
|
|
92
103
|
connectorId: normalized.toolkit ? `composio-${normalized.toolkit}` : "composio",
|
|
@@ -98,7 +109,7 @@ function registerPublicGatewayRoutes(app, service) {
|
|
|
98
109
|
ok: true,
|
|
99
110
|
payload: {
|
|
100
111
|
eventId: event.id,
|
|
101
|
-
|
|
112
|
+
automationDeliveries: ingested.deliveryCount
|
|
102
113
|
}
|
|
103
114
|
});
|
|
104
115
|
} catch (error) {
|
|
@@ -109,6 +120,85 @@ function registerPublicGatewayRoutes(app, service) {
|
|
|
109
120
|
}, 500);
|
|
110
121
|
}
|
|
111
122
|
});
|
|
123
|
+
app.post("/api/automation-hooks/:automationId", async (c) => {
|
|
124
|
+
const automationId = c.req.param("automationId");
|
|
125
|
+
const automation = await service.automationServiceInstance.get(automationId);
|
|
126
|
+
if (!automation || !automation.enabled || automation.trigger.kind !== "webhook") return c.json({
|
|
127
|
+
ok: false,
|
|
128
|
+
error: "Automation webhook not found."
|
|
129
|
+
}, 404);
|
|
130
|
+
const secretId = automation.trigger.secretId?.trim();
|
|
131
|
+
let expectedSecret;
|
|
132
|
+
try {
|
|
133
|
+
expectedSecret = secretId ? resolveAutomationWebhookSecret(secretId) : void 0;
|
|
134
|
+
} catch {
|
|
135
|
+
return c.json({
|
|
136
|
+
ok: false,
|
|
137
|
+
error: "Automation webhook secrets are misconfigured."
|
|
138
|
+
}, 503);
|
|
139
|
+
}
|
|
140
|
+
if (!expectedSecret) return c.json({
|
|
141
|
+
ok: false,
|
|
142
|
+
error: "Automation webhook secret is not configured."
|
|
143
|
+
}, 503);
|
|
144
|
+
const authorization = c.req.header("authorization")?.trim() ?? "";
|
|
145
|
+
const suppliedSecret = authorization.startsWith("Bearer ") ? authorization.slice(7).trim() : c.req.header("x-xopc-webhook-secret")?.trim() ?? "";
|
|
146
|
+
if (!suppliedSecret || !secretsEqual(suppliedSecret, expectedSecret)) return c.json({
|
|
147
|
+
ok: false,
|
|
148
|
+
error: "Invalid automation webhook secret."
|
|
149
|
+
}, 401);
|
|
150
|
+
const idempotencyKey = c.req.header("idempotency-key")?.trim();
|
|
151
|
+
if (!idempotencyKey || idempotencyKey.length > 200) return c.json({
|
|
152
|
+
ok: false,
|
|
153
|
+
error: "A valid Idempotency-Key header is required."
|
|
154
|
+
}, 400);
|
|
155
|
+
const declaredSize = Number(c.req.header("content-length") ?? 0);
|
|
156
|
+
if (Number.isFinite(declaredSize) && declaredSize > 256 * 1024) return c.json({
|
|
157
|
+
ok: false,
|
|
158
|
+
error: "Webhook payload is too large."
|
|
159
|
+
}, 413);
|
|
160
|
+
const rawBody = await c.req.text();
|
|
161
|
+
if (Buffer.byteLength(rawBody) > 256 * 1024) return c.json({
|
|
162
|
+
ok: false,
|
|
163
|
+
error: "Webhook payload is too large."
|
|
164
|
+
}, 413);
|
|
165
|
+
let payload;
|
|
166
|
+
try {
|
|
167
|
+
const parsed = rawBody ? JSON.parse(rawBody) : {};
|
|
168
|
+
if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) throw new Error("invalid payload");
|
|
169
|
+
payload = parsed;
|
|
170
|
+
} catch {
|
|
171
|
+
return c.json({
|
|
172
|
+
ok: false,
|
|
173
|
+
error: "Webhook payload must be a JSON object."
|
|
174
|
+
}, 400);
|
|
175
|
+
}
|
|
176
|
+
try {
|
|
177
|
+
const result = service.ingestAutomationEvent({
|
|
178
|
+
id: `webhook:${automationId}:${idempotencyKey}`,
|
|
179
|
+
type: "automation.webhook.received",
|
|
180
|
+
source: `webhook:${automationId}`,
|
|
181
|
+
subject: {
|
|
182
|
+
kind: "automation",
|
|
183
|
+
id: automationId
|
|
184
|
+
},
|
|
185
|
+
correlationId: c.req.header("x-correlation-id")?.trim() || void 0,
|
|
186
|
+
dedupeKey: idempotencyKey,
|
|
187
|
+
trust: "untrusted_webhook",
|
|
188
|
+
payload
|
|
189
|
+
}, { targetAutomationIds: [automationId] });
|
|
190
|
+
return c.json({
|
|
191
|
+
ok: true,
|
|
192
|
+
eventId: result.event.id,
|
|
193
|
+
duplicate: !result.created
|
|
194
|
+
}, result.created ? 202 : 200);
|
|
195
|
+
} catch {
|
|
196
|
+
return c.json({
|
|
197
|
+
ok: false,
|
|
198
|
+
error: "Automation webhook ingestion failed."
|
|
199
|
+
}, 500);
|
|
200
|
+
}
|
|
201
|
+
});
|
|
112
202
|
app.get("/api", (c) => {
|
|
113
203
|
return c.json({
|
|
114
204
|
service: "xopc-gateway",
|