@xopcai/xopc 0.0.325 → 0.0.330
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 +4 -3
- package/README.zh-CN.md +4 -3
- 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-CxfXpPWs.js → agent-avatar-dicebear-BDG0hI-J.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-ArM6Sm9S.js +1 -0
- package/dist/gateway/static/root/assets/agent-plugin-dialog-BX_Bhre1.js +1 -0
- package/dist/gateway/static/root/assets/agents-BiQqpMw0.js +70 -0
- package/dist/gateway/static/root/assets/{app-management-settings-panel-p7fZB4dT.js → app-management-settings-panel-DgttzUCG.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-C-clVcfp.js → appearance-settings-CHpyWV8Z.js} +1 -1
- package/dist/gateway/static/root/assets/apps-page-BhfYQcm8.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-Xm6xChUX.js → archive-plugin-B7Q7Oeo7.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-Di8kuG4L.js → attachment-load-BYwqQ8qN.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-GUZgDhKj.js → automations-page-CsvAtTNd.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-DMH_1Ped.js +7 -0
- package/dist/gateway/static/root/assets/{binary-plugins-OCrDjC9O.js → binary-plugins-DdgWCI-M.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-m9tqvu7x.js → block-editor-DyOagNnn.js} +3 -3
- package/dist/gateway/static/root/assets/{browser-automation-inputs-DSWXq9lI.js → browser-automation-inputs-CwF8OQFN.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-DuOaridE.js → browser-automations-page-D_EQjiiu.js} +2 -2
- package/dist/gateway/static/root/assets/browser-settings-page-BE6691Jz.js +3 -0
- package/dist/gateway/static/root/assets/capabilities-page-MweWNrC1.js +2 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-CdSWkh89.js +8 -0
- package/dist/gateway/static/root/assets/capability-header-actions-C5F2GNE9.js +1 -0
- package/dist/gateway/static/root/assets/capability-icon-BYm2-nS-.js +1 -0
- package/dist/gateway/static/root/assets/channels-NGfwR3He.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BfnVh8oo.js → chat-terminal-dock-C6tl9Rfw.js} +2 -2
- package/dist/gateway/static/root/assets/computer-settings-page-C0MsVw4l.js +1 -0
- package/dist/gateway/static/root/assets/connector-service-page-DsF60pPs.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-BE8NdQcR.js +2 -0
- package/dist/gateway/static/root/assets/{date-picker-CtDyij_x.js → date-picker-CELKKqYN.js} +1 -1
- package/dist/gateway/static/root/assets/dependency-picker-BcEwCnI5.js +1 -0
- package/dist/gateway/static/root/assets/{desktop-pet-BsIYCAkG.js → desktop-pet-Ww7Gm8-x.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-D-dbAxGu.js +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-DsYY6szg.js +1 -0
- package/dist/gateway/static/root/assets/directory-picker-path-field-CVmuCRyO.js +1 -0
- package/dist/gateway/static/root/assets/ellipsis-0k4rZLoy.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-Ct9pABNW.js → extension-debug-page-UUHNJj-d.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-BktsR4hj.js → extension-page-BvL452mX.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-BQJc-vXH.js → extension-settings-page-CrNnUSOs.js} +1 -1
- package/dist/gateway/static/root/assets/external-link-DjqjBmc3.js +1 -0
- package/dist/gateway/static/root/assets/eye-CABVeTq0.js +1 -0
- package/dist/gateway/static/root/assets/folder-open-CyzJ19I9.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-CoQVulMd.js → gateway-config-swr-DMm1vU51.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-DrHhtZqv.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-B5GJ-CQV.js → gateway-startup-retry-Ck6tj6yE.js} +1 -1
- package/dist/gateway/static/root/assets/globe-DSSGFWFn.js +1 -0
- package/dist/gateway/static/root/assets/home-page-YgI6jfGA.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-DvWDkbk1.js → image-generation-api-BOh6j0BF.js} +1 -1
- package/dist/gateway/static/root/assets/imports-page-BuqdzA7h.js +1 -0
- package/dist/gateway/static/root/assets/index-DJmO2VAY.css +1 -0
- package/dist/gateway/static/root/assets/index-vCIBfJp7.js +121 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-ctJLm8TP.js → keyboard-shortcuts-settings-D9L7IdUg.js} +1 -1
- package/dist/gateway/static/root/assets/link-2-D_ZKYUW7.js +1 -0
- package/dist/gateway/static/root/assets/loader-circle-CifKLtgG.js +1 -0
- package/dist/gateway/static/root/assets/local-app-workbench-page-DO8uUtos.js +1 -0
- package/dist/gateway/static/root/assets/{local-apps-page-BxC_LTqq.js → local-apps-page-BEvyufm7.js} +1 -1
- package/dist/gateway/static/root/assets/locale-store-DAOwT3Zp.js +1 -0
- package/dist/gateway/static/root/assets/logs-page-Jev1m9sS.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-41i7B1RO.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-view-Dft8ASFD.js → markdown-view-nL4xzvI8.js} +2 -2
- package/dist/gateway/static/root/assets/{media-plugins-ni5zJ4Ok.js → media-plugins-dHbcqMan.js} +1 -1
- package/dist/gateway/static/root/assets/message-square-plus-XP0tGdlV.js +1 -0
- package/dist/gateway/static/root/assets/messages-BZbt9x1y.js +3 -0
- package/dist/gateway/static/root/assets/minimize-2-DtOGrlpo.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-DonP0E6Q.js +5 -0
- package/dist/gateway/static/root/assets/note-image-lightbox-1qg2v-9j.js +1 -0
- package/dist/gateway/static/root/assets/notes-page-CYHMeVKo.js +8 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-BKsMcPOy.js +1 -0
- package/dist/gateway/static/root/assets/pencil-DmIY3Oa-.js +1 -0
- package/dist/gateway/static/root/assets/preview-open-alternatives-Du18QgWc.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-DQctU8z3.js → product-open-page-IY1QL6s0.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-Bpw9mxfV.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-BdYbDNUn.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-DWWO6ajd.js → registry-api-DCFXWBOt.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-CLhbz3TF.js +1 -0
- package/dist/gateway/static/root/assets/rotate-cw-LIg3Am9S.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-xhOSYfiX.js → runtime-tools-settings-panel-CuTFmXyj.js} +2 -2
- package/dist/gateway/static/root/assets/scenes-page-XwK2IEmr.js +2 -0
- package/dist/gateway/static/root/assets/{schema-form-z8IeSdBp.js → schema-form-qWQii8IU.js} +1 -1
- package/dist/gateway/static/root/assets/search-DA7gz22f.js +1 -0
- package/dist/gateway/static/root/assets/sessions-page-4-QoiDES.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BggQVM1y.js +1 -0
- package/dist/gateway/static/root/assets/settings-form-section-B0ZBr0L9.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-Br9no5e4.js → settings-page-DpII4NO3.js} +1 -1
- package/dist/gateway/static/root/assets/settings-page-layout-X1x-2Cp9.js +1 -0
- package/dist/gateway/static/root/assets/setup-status-panel-HPpC7EE0.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-CE0SER59.js → share-preview-page-B2CGYZHc.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-DhVCRYGP.js +1 -0
- package/dist/gateway/static/root/assets/skill-api-_ddww47C.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-XPZkWJJe.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-uF7DkJMC.js +2 -0
- package/dist/gateway/static/root/assets/system-settings-panel-25ABVt7H.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-gepxhO4j.js +1 -0
- package/dist/gateway/static/root/assets/tunnel-api-CwQGBI_4.js +1 -0
- package/dist/gateway/static/root/assets/use-autosave-CL3wytbs.js +1 -0
- package/dist/gateway/static/root/assets/user-model-page-DldQW9Wh.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-By6Lgbse.js → voice-api-key-field-zjAzQrx4.js} +1 -1
- package/dist/gateway/static/root/assets/voice-config-api-DvzQ-128.js +1 -0
- package/dist/gateway/static/root/assets/{work-discovery-overlay-DdhgIlyf.js → work-discovery-overlay-MaPPjWwl.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-BOJYQaxX.js → workflow-run-setup-panel-C3dQN1fE.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-B9lnTU3U.js +6 -0
- package/dist/gateway/static/root/connector-icons/SOURCES.md +1 -0
- package/dist/gateway/static/root/connector-icons/wecom.svg +9 -0
- package/dist/gateway/static/root/index.html +20 -8
- package/dist/package.js +1 -1
- package/dist/src/agent/agent-instance-gateway.d.ts +2 -2
- package/dist/src/agent/agent-manager.d.ts +5 -2
- package/dist/src/agent/agent-manager.js +77 -23
- package/dist/src/agent/background-review/coordinator.d.ts +2 -7
- package/dist/src/agent/background-review/coordinator.js +17 -34
- package/dist/src/agent/background-review/prompts.d.ts +13 -5
- package/dist/src/agent/background-review/prompts.js +17 -12
- package/dist/src/agent/background-review/run-background-review.d.ts +3 -3
- package/dist/src/agent/background-review/run-background-review.js +59 -44
- package/dist/src/agent/bootstrap/filter-bootstrap-files.js +1 -1
- package/dist/src/agent/capabilities/definitions.d.ts +3 -2
- package/dist/src/agent/capabilities/definitions.js +3 -2
- package/dist/src/agent/context/execution-context.js +5 -2
- package/dist/src/agent/external-tools/endpoint-provider.js +2 -2
- package/dist/src/agent/image/tool-model-config.js +1 -1
- package/dist/src/agent/mcp/index.js +1 -1
- package/dist/src/agent/mcp/mcp-transport.js +2 -2
- package/dist/src/agent/mcp/oauth/index.js +1 -1
- package/dist/src/agent/mcp/oauth/mcp-oauth-manager.js +2 -2
- package/dist/src/agent/mcp/oauth/mcp-oauth-provider.js +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/orchestration/llm-turn-retry.js +2 -15
- package/dist/src/agent/prompt/sections/tooling.js +3 -0
- package/dist/src/agent/service/direct-turn-helpers.js +1 -1
- package/dist/src/agent/service.d.ts +1 -0
- package/dist/src/agent/service.js +5 -2
- package/dist/src/agent/skills/marketplace/adapters/store/store-api-client.d.ts +12 -0
- package/dist/src/agent/tasks/task-judge-service.js +1 -1
- package/dist/src/agent/tools/factory.js +3 -2
- package/dist/src/agent/tools/index.d.ts +1 -0
- package/dist/src/agent/tools/index.js +2 -1
- package/dist/src/agent/tools/user-context-tool.js +29 -4
- package/dist/src/agent/tools/workflow-manage-tool.d.ts +2 -0
- package/dist/src/agent/tools/workflow-manage-tool.js +225 -0
- package/dist/src/agent/tools/xopc-use-tool.js +1 -1
- package/dist/src/agent-catalog/capabilities.js +2 -2
- 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/capabilities/drafts.js +1 -1
- package/dist/src/automations/domain/types.d.ts +7 -1
- package/dist/src/automations/draft/automation-draft-service.js +13 -4
- package/dist/src/automations/service/action-executor.d.ts +2 -2
- package/dist/src/automations/service/action-executor.js +36 -13
- package/dist/src/automations/service/automation-service.js +2 -1
- package/dist/src/bootstrap/application-state.js +1 -1
- package/dist/src/browser/automations/index.js +2 -2
- package/dist/src/browser/automations/service.d.ts +11 -2
- package/dist/src/browser/automations/service.js +19 -5
- package/dist/src/capabilities/readiness/from-config.d.ts +0 -1
- package/dist/src/capabilities/readiness/from-config.js +2 -4
- package/dist/src/capabilities/runtime/dispatcher.js +1 -1
- package/dist/src/capabilities/runtime/product.js +1 -1
- package/dist/src/chat-commands/agent-edit.js +1 -1
- package/dist/src/chat-commands/builtins/config.js +1 -1
- package/dist/src/chat-previews/service.js +1 -2
- package/dist/src/cli/commands/agent.js +1 -1
- package/dist/src/cli/commands/agents.js +1 -1
- package/dist/src/cli/commands/auth.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/extension-agent-plugin.js +2 -1
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard/model.js +3 -3
- package/dist/src/cli/commands/providers.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.js +5 -5
- package/dist/src/connectors/china-catalog.js +5 -1
- package/dist/src/connectors/connected-source-ingestion.js +6 -1
- package/dist/src/connectors/connected-source-observations.d.ts +10 -0
- package/dist/src/connectors/connected-source-observations.js +80 -0
- package/dist/src/connectors/connected-source-understanding.js +198 -8
- package/dist/src/connectors/learning-coordinator.js +63 -26
- package/dist/src/connectors/learning-recipes.js +19 -2
- package/dist/src/discussions/audio-repair.d.ts +1 -1
- package/dist/src/discussions/live-worker.js +1 -3
- package/dist/src/discussions/recording.js +2 -2
- package/dist/src/discussions/sealer.js +2 -2
- package/dist/src/extensions/agent-plugins/auth.d.ts +2 -2
- package/dist/src/extensions/agent-plugins/auth.js +6 -35
- package/dist/src/extensions/agent-plugins/credentials.d.ts +2 -0
- package/dist/src/extensions/agent-plugins/credentials.js +37 -0
- package/dist/src/extensions/agent-plugins/plugin-oauth-scope.d.ts +1 -0
- package/dist/src/extensions/agent-plugins/plugin-oauth-scope.js +8 -0
- package/dist/src/extensions/agent-plugins/validation.js +1 -1
- package/dist/src/extensions/bundled-extension-activation.d.ts +3 -1
- package/dist/src/extensions/bundled-extension-activation.js +5 -8
- package/dist/src/extensions/marketplace.d.ts +4 -0
- package/dist/src/extensions/marketplace.js +4 -0
- package/dist/src/gateway/agents-admin.js +2 -2
- package/dist/src/gateway/file-path-classifier.js +1 -1
- package/dist/src/gateway/file-space-service.d.ts +9 -2
- package/dist/src/gateway/gateway-workflow-host.types.d.ts +1 -0
- package/dist/src/gateway/hono/lib/config-payload.js +1 -1
- package/dist/src/gateway/hono/routes/agent-plugins.js +2 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +27 -5
- package/dist/src/gateway/hono/routes/config-patch/misc.js +2 -2
- package/dist/src/gateway/hono/routes/config.js +0 -3
- package/dist/src/gateway/hono/routes/connectors.js +3 -10
- package/dist/src/gateway/hono/routes/context-sources.d.ts +0 -1
- package/dist/src/gateway/hono/routes/context-sources.js +12 -15
- 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-input-handler.js +1 -1
- package/dist/src/gateway/hono/routes/status.js +0 -1
- package/dist/src/gateway/hono/routes/tasks.js +1 -1
- package/dist/src/gateway/hono/routes/user-model.js +21 -3
- package/dist/src/gateway/hono/routes/voice.js +0 -67
- package/dist/src/gateway/hono/routes/workflows.js +1 -23
- package/dist/src/gateway/image-generation-setup.js +2 -2
- package/dist/src/gateway/lock.js +1 -1
- package/dist/src/gateway/service/config-coordinator.d.ts +4 -4
- package/dist/src/gateway/service/config-coordinator.js +6 -6
- package/dist/src/gateway/service/marketplace-service.js +8 -6
- package/dist/src/gateway/service.d.ts +1 -1
- package/dist/src/gateway/service.js +20 -18
- package/dist/src/gateway/xopc-cloud-capability-setup.js +1 -1
- package/dist/src/home-intelligence/generator.js +7 -6
- package/dist/src/home-intelligence/host.js +1 -1
- package/dist/src/local-apps/service.js +1 -1
- package/dist/src/media-understanding/types.d.ts +1 -1
- package/dist/src/memory-maintenance/service.d.ts +1 -0
- package/dist/src/memory-maintenance/service.js +13 -0
- package/dist/src/migrations/retired-local-stt.d.ts +2 -0
- package/dist/src/migrations/retired-local-stt.js +52 -0
- package/dist/src/migrations/runner.js +2 -1
- package/dist/src/providers/model-catalog-persistence.js +1 -1
- package/dist/src/providers/model-response.d.ts +2 -0
- package/dist/src/providers/model-response.js +24 -1
- package/dist/src/session/turn-outcome-projector.js +1 -1
- package/dist/src/storage/sqlite/connection.js +1 -0
- package/dist/src/storage/sqlite/migrations/207_user_model_policy_contract.sql +121 -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/sql-assets.d.ts +1 -0
- package/dist/src/storage/sqlite/sql-assets.js +7 -4
- package/dist/src/tasks/capabilities/read.js +2 -2
- package/dist/src/tasks/index.js +2 -2
- package/dist/src/tasks/task-application-service.d.ts +1 -0
- package/dist/src/tasks/task-application-service.js +4 -2
- package/dist/src/tasks/task-context-assembler.js +10 -1
- package/dist/src/tasks/task-run-dispatcher.d.ts +1 -0
- package/dist/src/tasks/task-run-dispatcher.js +15 -2
- package/dist/src/tui/backends/embedded-backend.js +6 -3
- package/dist/src/tui/tui-commands.js +2 -2
- package/dist/src/tui/tui-startup-resources.js +1 -1
- package/dist/src/tui/tui.js +3 -3
- package/dist/src/user-context/sources/consent-repository.d.ts +7 -0
- package/dist/src/user-context/sources/consent-repository.js +81 -0
- package/dist/src/user-context/sources/index.d.ts +1 -0
- package/dist/src/user-context/sources/index.js +2 -1
- package/dist/src/user-context/sources/repository.js +73 -1
- package/dist/src/user-context/sources/types.d.ts +16 -0
- package/dist/src/user-model/action-rule-suggestions.d.ts +11 -0
- package/dist/src/user-model/action-rule-suggestions.js +29 -0
- package/dist/src/user-model/bootstrap.js +1 -1
- package/dist/src/user-model/capture/executor.js +83 -7
- package/dist/src/user-model/capture/semantic.d.ts +5 -2
- package/dist/src/user-model/capture/semantic.js +27 -11
- package/dist/src/user-model/domain.d.ts +26 -0
- package/dist/src/user-model/domain.js +40 -2
- package/dist/src/user-model/index.d.ts +2 -0
- package/dist/src/user-model/index.js +6 -4
- package/dist/src/user-model/maintenance-policy.d.ts +1 -0
- package/dist/src/user-model/maintenance-policy.js +13 -0
- package/dist/src/user-model/observation-repository.d.ts +48 -0
- package/dist/src/user-model/observation-repository.js +100 -0
- package/dist/src/user-model/repository.d.ts +5 -0
- package/dist/src/user-model/repository.js +121 -10
- package/dist/src/user-model/usage-policy.d.ts +5 -2
- package/dist/src/user-model/usage-policy.js +2 -2
- package/dist/src/voice/audio/normalize.d.ts +1 -1
- package/dist/src/voice/audio/normalize.js +1 -1
- package/dist/src/voice/{local → audio}/wav.js +1 -1
- package/dist/src/voice/language-profile.js +10 -16
- package/dist/src/voice/metadata/builtin.js +0 -46
- package/dist/src/voice/platform-streams.js +15 -7
- package/dist/src/voice/realtime/agentEngine.js +19 -3
- package/dist/src/voice/realtime/pcmFrameBuffer.js +2 -1
- package/dist/src/voice/realtime/persona-context.js +1 -1
- package/dist/src/voice/realtime/playback-echo.js +16 -1
- package/dist/src/voice/stt/providers/index.d.ts +0 -1
- package/dist/src/voice/stt/providers/index.js +1 -2
- package/dist/src/voice/stt/types.js +3 -4
- package/dist/src/voice/tts/merge-config.js +1 -1
- package/dist/src/voice/tts/speech-registry.d.ts +1 -1
- package/dist/src/voice/tts/types.d.ts +1 -1
- package/dist/src/work-discovery/analyzer.js +6 -5
- package/dist/src/work-discovery/service.js +2 -2
- package/dist/src/work-discovery/types.d.ts +1 -1
- package/dist/src/workflows/authoring/index.d.ts +1 -0
- package/dist/src/workflows/authoring/index.js +2 -1
- package/dist/src/workflows/authoring/workflow-draft-defaults.d.ts +3 -0
- package/dist/src/workflows/authoring/workflow-draft-defaults.js +63 -0
- package/dist/src/workflows/context/workflow-context.js +5 -1
- package/dist/src/workflows/domain/index.js +1 -1
- package/dist/src/workflows/engine/workflow-engine.js +1 -1
- package/dist/src/workflows/index.js +4 -4
- package/dist/src/workflows/service/workflow-run-service.d.ts +1 -0
- package/dist/src/workflows/service/workflow-run-service.js +39 -7
- package/dist/src/workflows/service/workflow-session-bridge.js +2 -2
- package/package.json +12 -16
- package/skills/engineering/workflow-authoring/SKILL.md +32 -0
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CDHe8gJf.js +0 -1
- package/dist/gateway/static/root/assets/agent-plugin-dialog-DMv-udoZ.js +0 -1
- package/dist/gateway/static/root/assets/agents-D_xOAXgj.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-Dz2g7eAN.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-BUZhG9aJ.js +0 -7
- package/dist/gateway/static/root/assets/browser-settings-page-D2_PgHep.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-settings-panel-7Y_pJqyt.js +0 -8
- package/dist/gateway/static/root/assets/channels-settings-B-Igy1ro.js +0 -1
- package/dist/gateway/static/root/assets/computer-settings-page-aRG2lU4w.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-B5EhnfJH.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-7HfRt1LW.js +0 -2
- package/dist/gateway/static/root/assets/dependency-picker-z6ouWxmz.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-z-0aQ5ct.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-DlmhQvY5.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-BfDVlvy6.js +0 -1
- package/dist/gateway/static/root/assets/home-page-CI_eQTPL.js +0 -1
- package/dist/gateway/static/root/assets/imports-page-DFpQfHVU.js +0 -1
- package/dist/gateway/static/root/assets/index-19rMUT3d.js +0 -121
- package/dist/gateway/static/root/assets/index-BKL5tg2f.css +0 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-C9kaP3Dy.js +0 -1
- package/dist/gateway/static/root/assets/locale-store-BPZR8x9b.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-Ok5SpG-G.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-aOzRaQHM.js +0 -1
- package/dist/gateway/static/root/assets/messages-kFWhF6_t.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-C9OEltN9.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-Dj9rMgdi.js +0 -8
- package/dist/gateway/static/root/assets/page-context-capture-button-BJA3d8vU.js +0 -1
- package/dist/gateway/static/root/assets/page-tabs-Dyc3wKkl.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-tIOIQbNX.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-Dy-EwZcc.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-JaGKa6rM.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-Cb8-nd60.js +0 -1
- package/dist/gateway/static/root/assets/scenes-page-ClBkFdRY.js +0 -2
- package/dist/gateway/static/root/assets/sessions-page-BYW5l_nY.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CDNwmXuH.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-section-BXTJAser.js +0 -1
- package/dist/gateway/static/root/assets/settings-page-layout-D6745w0p.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-D2N9764S.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-Dk3_QOKQ.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-CPt61fEv.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-Db6PB2C6.js +0 -2
- package/dist/gateway/static/root/assets/skills-page.utils-DrtW5FBy.js +0 -1
- package/dist/gateway/static/root/assets/system-settings-panel-CuY1Zh5s.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-o7RiDUMi.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-PGHDgvWb.js +0 -1
- package/dist/gateway/static/root/assets/use-autosave-B55oBQUt.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-DspelwAa.js +0 -2
- package/dist/gateway/static/root/assets/voice-config-api-BaxITrwZ.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-6ObD0IQZ.js +0 -6
- package/dist/src/voice/local/model-files.d.ts +0 -14
- package/dist/src/voice/local/model-files.js +0 -92
- package/dist/src/voice/local/model-manager.d.ts +0 -18
- package/dist/src/voice/local/model-manager.js +0 -133
- package/dist/src/voice/local/models.d.ts +0 -28
- package/dist/src/voice/local/models.js +0 -99
- package/dist/src/voice/local/provider-switch.d.ts +0 -4
- package/dist/src/voice/local/provider-switch.js +0 -36
- package/dist/src/voice/local/runtime-client.d.ts +0 -28
- package/dist/src/voice/local/runtime-client.js +0 -183
- package/dist/src/voice/local/runtime-worker.d.ts +0 -1
- package/dist/src/voice/local/runtime-worker.js +0 -271
- package/dist/src/voice/stt/providers/local-transcription.d.ts +0 -2
- package/dist/src/voice/stt/providers/local-transcription.js +0 -53
- package/dist/src/workflows/draft/index.d.ts +0 -3
- package/dist/src/workflows/draft/index.js +0 -3
- package/dist/src/workflows/draft/workflow-draft-prompt.d.ts +0 -22
- package/dist/src/workflows/draft/workflow-draft-prompt.js +0 -54
- package/dist/src/workflows/draft/workflow-draft-service.d.ts +0 -12
- package/dist/src/workflows/draft/workflow-draft-service.js +0 -125
- package/dist/src/workflows/draft/workflow-draft-validator.d.ts +0 -4
- package/dist/src/workflows/draft/workflow-draft-validator.js +0 -123
- package/dist/src/workflows/draft/workflow-draft.types.d.ts +0 -44
- package/dist/src/workflows/draft/workflow-draft.types.js +0 -1
- /package/dist/src/voice/{local → audio}/wav.d.ts +0 -0
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { createLogger } from "../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../utils/logger.js";
|
|
3
|
-
import { decodeWavToMonoFloat32 } from "../voice/local/wav.js";
|
|
4
|
-
import { forEachNormalizedAudioSegment } from "../voice/audio/normalize.js";
|
|
5
3
|
import { transcribe } from "../voice/stt/transcribe-core.js";
|
|
6
4
|
import { isSTTAvailable } from "../voice/stt/availability.js";
|
|
7
5
|
import { mergeSttConfigFromAppConfig } from "../voice/stt/config.js";
|
|
@@ -10,6 +8,8 @@ import { getDiscussionCapture, listDiscussionCaptures, listDiscussionTranscriptS
|
|
|
10
8
|
import { assembleDiscussionTranscript } from "./transcript.js";
|
|
11
9
|
import { replaceTranscriptSegments, saveTranscriptRevision } from "./revisions.js";
|
|
12
10
|
import { missingAudioRanges, slicePcmWav } from "./audio-repair.js";
|
|
11
|
+
import { decodeWavToMonoFloat32 } from "../voice/audio/wav.js";
|
|
12
|
+
import { forEachNormalizedAudioSegment } from "../voice/audio/normalize.js";
|
|
13
13
|
import { getRecordingJob } from "./recordingJobs.js";
|
|
14
14
|
import { createHash } from "node:crypto";
|
|
15
15
|
//#region src/discussions/sealer.ts
|
|
@@ -22,6 +22,8 @@ declare const bindingSchema: z.ZodObject<{
|
|
|
22
22
|
}, z.core.$strict>>;
|
|
23
23
|
}, z.core.$strict>;
|
|
24
24
|
export type PluginAuthBinding = z.infer<typeof bindingSchema>;
|
|
25
|
+
export declare const pluginCredentialProviderPrefix: (id: string) => string;
|
|
26
|
+
export declare const parsePluginAuthBinding: (value: unknown) => PluginAuthBinding;
|
|
25
27
|
export declare function pluginEndpointFingerprint(server: PluginServer): string;
|
|
26
28
|
export declare function readPluginAuthBinding(store: AgentPluginStore, id: string, name: string, server: PluginServer): PluginAuthBinding | undefined;
|
|
27
29
|
export declare function savePluginAuthBinding(store: AgentPluginStore, id: string, name: string, input: {
|
|
@@ -34,6 +36,4 @@ export declare function savePluginAuthBinding(store: AgentPluginStore, id: strin
|
|
|
34
36
|
}>;
|
|
35
37
|
}): Promise<void>;
|
|
36
38
|
export declare function applyPluginAuthBinding(raw: Record<string, unknown>, binding: PluginAuthBinding | undefined): Record<string, unknown>;
|
|
37
|
-
export declare function pluginOAuthScope(raw: unknown): string | undefined;
|
|
38
|
-
export declare function removePluginCredentials(store: AgentPluginStore, id: string): Promise<void>;
|
|
39
39
|
export {};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { init_paths_state, resolveStateDir } from "../../config/paths-state.js";
|
|
2
2
|
import { init_write_file_atomic, writeTextAtomic } from "../../infra/write-file-atomic.js";
|
|
3
3
|
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
4
|
-
import { pluginName
|
|
4
|
+
import { pluginName } from "./validation.js";
|
|
5
5
|
import { clearPluginMcpHealth } from "./health.js";
|
|
6
6
|
import { isDangerousHostEnvVarName } from "../../infra/host-env-security.js";
|
|
7
|
-
import { McpOAuthStore } from "../../agent/mcp/oauth/mcp-oauth-store.js";
|
|
8
7
|
import { join } from "node:path";
|
|
9
|
-
import { existsSync, readFileSync
|
|
8
|
+
import { existsSync, readFileSync } from "node:fs";
|
|
10
9
|
import { createHash } from "node:crypto";
|
|
11
10
|
import { z } from "zod";
|
|
12
11
|
import { validateHeaderName } from "node:http";
|
|
@@ -32,7 +31,8 @@ const bindingSchema = z.strictObject({
|
|
|
32
31
|
}))
|
|
33
32
|
});
|
|
34
33
|
const hash = (value) => createHash("sha256").update(value).digest("hex");
|
|
35
|
-
const
|
|
34
|
+
const pluginCredentialProviderPrefix = (id) => `plugin-${hash(id).slice(0, 16)}-`;
|
|
35
|
+
const parsePluginAuthBinding = (value) => bindingSchema.parse(value);
|
|
36
36
|
function pluginEndpointFingerprint(server) {
|
|
37
37
|
return hash(server.type === "stdio" ? JSON.stringify(server) : new URL(server.url).toString());
|
|
38
38
|
}
|
|
@@ -71,7 +71,7 @@ async function savePluginAuthBinding(store, id, name, input) {
|
|
|
71
71
|
const normalizedKey = field.target === "headers" || process.platform === "win32" ? field.key.toLowerCase() : field.key;
|
|
72
72
|
if (seen.has(normalizedKey)) throw new Error("Duplicate credential field");
|
|
73
73
|
seen.add(normalizedKey);
|
|
74
|
-
const provider = `${
|
|
74
|
+
const provider = `${pluginCredentialProviderPrefix(id)}${hash(JSON.stringify([
|
|
75
75
|
"owner",
|
|
76
76
|
id,
|
|
77
77
|
name,
|
|
@@ -123,34 +123,5 @@ function applyPluginAuthBinding(raw, binding) {
|
|
|
123
123
|
result.xopcAuthRevision = hash(JSON.stringify(binding));
|
|
124
124
|
return result;
|
|
125
125
|
}
|
|
126
|
-
function pluginOAuthScope(raw) {
|
|
127
|
-
const plugin = raw?.xopcPlugin;
|
|
128
|
-
return plugin ? `owner:${pluginServerId(plugin.id, plugin.serverName)}` : void 0;
|
|
129
|
-
}
|
|
130
|
-
async function removePluginCredentials(store, id) {
|
|
131
|
-
pluginName.parse(id);
|
|
132
|
-
const plugin = store.get(id);
|
|
133
|
-
const serverNames = new Set(Object.keys(plugin?.servers ?? {}));
|
|
134
|
-
const dir = join(store.stateDir, "plugin-auth", id);
|
|
135
|
-
if (existsSync(dir)) for (const file of readdirSync(dir)) {
|
|
136
|
-
if (!/^[a-f0-9]{64}\.json$/.test(file)) throw new Error("Unexpected plugin auth store entry");
|
|
137
|
-
const binding = bindingSchema.parse(JSON.parse(readFileSync(join(dir, file), "utf8")));
|
|
138
|
-
serverNames.add(binding.serverName);
|
|
139
|
-
}
|
|
140
|
-
const { getMcpOAuthManager } = await import("../../agent/mcp/oauth/mcp-oauth-manager.js");
|
|
141
|
-
for (const name of serverNames) {
|
|
142
|
-
await getMcpOAuthManager({ xopcPlugin: {
|
|
143
|
-
id,
|
|
144
|
-
serverName: name
|
|
145
|
-
} }).cancelPending();
|
|
146
|
-
await new McpOAuthStore(`owner:${pluginServerId(id, name)}`).deleteScope();
|
|
147
|
-
}
|
|
148
|
-
const resolver = new CredentialResolver(store.stateDir === resolveStateDir() ? {} : { stateDir: store.stateDir });
|
|
149
|
-
for (const profile of await resolver.listProfiles()) if (profile.provider.startsWith(providerPrefix(id))) await resolver.deleteProviderCredential(profile.provider);
|
|
150
|
-
if (existsSync(dir)) rmSync(dir, {
|
|
151
|
-
recursive: true,
|
|
152
|
-
force: true
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
126
|
//#endregion
|
|
156
|
-
export { applyPluginAuthBinding,
|
|
127
|
+
export { applyPluginAuthBinding, parsePluginAuthBinding, pluginCredentialProviderPrefix, pluginEndpointFingerprint, readPluginAuthBinding, savePluginAuthBinding };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { init_paths_state, resolveStateDir } from "../../config/paths-state.js";
|
|
2
|
+
import { CredentialResolver, init_credentials } from "../../auth/credentials.js";
|
|
3
|
+
import { pluginName, pluginServerId } from "./validation.js";
|
|
4
|
+
import { parsePluginAuthBinding, pluginCredentialProviderPrefix } from "./auth.js";
|
|
5
|
+
import { McpOAuthStore } from "../../agent/mcp/oauth/mcp-oauth-store.js";
|
|
6
|
+
import { getMcpOAuthManager } from "../../agent/mcp/oauth/mcp-oauth-manager.js";
|
|
7
|
+
import { join } from "node:path";
|
|
8
|
+
import { existsSync, readFileSync, readdirSync, rmSync } from "node:fs";
|
|
9
|
+
//#region src/extensions/agent-plugins/credentials.ts
|
|
10
|
+
init_credentials();
|
|
11
|
+
init_paths_state();
|
|
12
|
+
async function removePluginCredentials(store, id) {
|
|
13
|
+
pluginName.parse(id);
|
|
14
|
+
const plugin = store.get(id);
|
|
15
|
+
const serverNames = new Set(Object.keys(plugin?.servers ?? {}));
|
|
16
|
+
const dir = join(store.stateDir, "plugin-auth", id);
|
|
17
|
+
if (existsSync(dir)) for (const file of readdirSync(dir)) {
|
|
18
|
+
if (!/^[a-f0-9]{64}\.json$/.test(file)) throw new Error("Unexpected plugin auth store entry");
|
|
19
|
+
const binding = parsePluginAuthBinding(JSON.parse(readFileSync(join(dir, file), "utf8")));
|
|
20
|
+
serverNames.add(binding.serverName);
|
|
21
|
+
}
|
|
22
|
+
for (const name of serverNames) {
|
|
23
|
+
await getMcpOAuthManager({ xopcPlugin: {
|
|
24
|
+
id,
|
|
25
|
+
serverName: name
|
|
26
|
+
} }).cancelPending();
|
|
27
|
+
await new McpOAuthStore(`owner:${pluginServerId(id, name)}`).deleteScope();
|
|
28
|
+
}
|
|
29
|
+
const resolver = new CredentialResolver(store.stateDir === resolveStateDir() ? {} : { stateDir: store.stateDir });
|
|
30
|
+
for (const profile of await resolver.listProfiles()) if (profile.provider.startsWith(pluginCredentialProviderPrefix(id))) await resolver.deleteProviderCredential(profile.provider);
|
|
31
|
+
if (existsSync(dir)) rmSync(dir, {
|
|
32
|
+
recursive: true,
|
|
33
|
+
force: true
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { removePluginCredentials };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function pluginOAuthScope(raw: unknown): string | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { pluginServerId } from "./validation.js";
|
|
2
|
+
//#region src/extensions/agent-plugins/plugin-oauth-scope.ts
|
|
3
|
+
function pluginOAuthScope(raw) {
|
|
4
|
+
const plugin = raw?.xopcPlugin;
|
|
5
|
+
return plugin ? `owner:${pluginServerId(plugin.id, plugin.serverName)}` : void 0;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pluginOAuthScope };
|
|
@@ -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";
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
import type { Config as SchemaConfig } from '../config/schema.js';
|
|
6
6
|
import type { ExtensionLoader } from './loader.js';
|
|
7
7
|
export declare function isExtensionActivationEligible(loader: ExtensionLoader, config: SchemaConfig, extensionId: string): boolean;
|
|
8
|
-
export declare function
|
|
8
|
+
export declare function computeExtensionActivationPatch(loader: ExtensionLoader, config: SchemaConfig, extensionId: string, wanted: boolean): {
|
|
9
9
|
ok: true;
|
|
10
10
|
extensions: Record<string, unknown>;
|
|
11
11
|
} | {
|
|
12
12
|
ok: false;
|
|
13
13
|
error: string;
|
|
14
14
|
};
|
|
15
|
+
/** @deprecated Use {@link computeExtensionActivationPatch}. */
|
|
16
|
+
export declare const computeBundledExtensionExtensionsPatch: typeof computeExtensionActivationPatch;
|
|
@@ -26,16 +26,11 @@ function isExtensionActivationEligible(loader, config, extensionId) {
|
|
|
26
26
|
loader.setConfig(surface);
|
|
27
27
|
return new ActivationPlanner(loader.buildManifestRegistry()).getActivatedIds(mergeActivationContext(surface)).includes(extensionId);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
if (!hit) return {
|
|
29
|
+
function computeExtensionActivationPatch(loader, config, extensionId, wanted) {
|
|
30
|
+
if (!loader.discoverExtensions().find((e) => e.id === extensionId)) return {
|
|
32
31
|
ok: false,
|
|
33
32
|
error: "Extension not found"
|
|
34
33
|
};
|
|
35
|
-
if (hit.source !== "bundled") return {
|
|
36
|
-
ok: false,
|
|
37
|
-
error: "Only bundled extensions can be toggled here (workspace or global installs override the same id — use CLI to manage those)."
|
|
38
|
-
};
|
|
39
34
|
const base = config.extensions ?? {};
|
|
40
35
|
let enabled = optionalEnabledIds(base.enabled);
|
|
41
36
|
let disabled = filterStringIds(base.disabled);
|
|
@@ -73,5 +68,7 @@ function computeBundledExtensionExtensionsPatch(loader, config, extensionId, wan
|
|
|
73
68
|
extensions: buildExtensionsRecord(base, enabled, disabled)
|
|
74
69
|
};
|
|
75
70
|
}
|
|
71
|
+
/** @deprecated Use {@link computeExtensionActivationPatch}. */
|
|
72
|
+
const computeBundledExtensionExtensionsPatch = computeExtensionActivationPatch;
|
|
76
73
|
//#endregion
|
|
77
|
-
export { computeBundledExtensionExtensionsPatch, isExtensionActivationEligible };
|
|
74
|
+
export { computeBundledExtensionExtensionsPatch, computeExtensionActivationPatch, isExtensionActivationEligible };
|
|
@@ -67,6 +67,10 @@ async function fetchExtensionCatalogFromStore() {
|
|
|
67
67
|
npmPackage: name,
|
|
68
68
|
version: typeof it.latestVersion === "string" ? it.latestVersion : void 0,
|
|
69
69
|
author,
|
|
70
|
+
...typeof it.branding?.iconUrl === "string" && typeof it.branding.iconSha256 === "string" ? { branding: {
|
|
71
|
+
iconUrl: it.branding.iconUrl,
|
|
72
|
+
iconSha256: it.branding.iconSha256
|
|
73
|
+
} } : {},
|
|
70
74
|
verified: author === "xopcai"
|
|
71
75
|
});
|
|
72
76
|
}
|
|
@@ -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";
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { FileSpaceService } from '../files/file-service.js';
|
|
2
|
-
|
|
2
|
+
type GatewayFileSpaceHost = {
|
|
3
|
+
currentConfig: ConstructorParameters<typeof FileSpaceService>[0] extends () => infer T ? T : never;
|
|
4
|
+
projects: ConstructorParameters<typeof FileSpaceService>[1];
|
|
5
|
+
sessions: {
|
|
6
|
+
getEffectiveWorkspacePath(conversationId: string): Promise<string>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
3
9
|
/** Share the file registry, including session-specific spaces, across gateway routes. */
|
|
4
|
-
export declare function getGatewayFileSpaceService(service:
|
|
10
|
+
export declare function getGatewayFileSpaceService(service: GatewayFileSpaceHost): FileSpaceService;
|
|
11
|
+
export {};
|
|
@@ -4,6 +4,7 @@ import type { MessageBus } from '../infra/bus/index.js';
|
|
|
4
4
|
import type { SessionStore } from '../session/store.js';
|
|
5
5
|
export interface GatewayWorkflowAgentSurface {
|
|
6
6
|
getModelForSession(conversationId: string): string;
|
|
7
|
+
getWorkflowSkillInstructions(agentId: string, names: readonly string[]): string | undefined;
|
|
7
8
|
}
|
|
8
9
|
/** Minimal gateway surface for workflow run + session bridge (breaks circular imports). */
|
|
9
10
|
export interface GatewayWorkflowHost {
|
|
@@ -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";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AgentPluginStore } from "../../../extensions/agent-plugins/store.js";
|
|
2
|
-
import {
|
|
2
|
+
import { savePluginAuthBinding } from "../../../extensions/agent-plugins/auth.js";
|
|
3
3
|
import { disposeAllSessionMcpRuntimes } from "../../../agent/mcp/bundle-mcp-runtime.js";
|
|
4
4
|
import { withAgentPluginSource } from "../../../extensions/agent-plugins/sources.js";
|
|
5
5
|
import { agentPluginInventoryRow } from "../../../extensions/agent-plugins/inventory.js";
|
|
6
|
+
import { removePluginCredentials } from "../../../extensions/agent-plugins/credentials.js";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
//#region src/gateway/hono/routes/agent-plugins.ts
|
|
8
9
|
const sourceBody = z.strictObject({
|
|
@@ -186,10 +186,10 @@ function registerAuthRegistryExtensionsRoutes(authenticated, deps) {
|
|
|
186
186
|
}));
|
|
187
187
|
return c.json({ extensions: [...extensions, ...listAgentPluginInventory()] });
|
|
188
188
|
});
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
*/
|
|
189
|
+
const updateExtensionActivation = async (extensionId, enabled) => {
|
|
190
|
+
return service.setExtensionActivationTarget(extensionId, enabled);
|
|
191
|
+
};
|
|
192
|
+
/** Backward-compatible endpoint used by older gateway consoles. */
|
|
193
193
|
authenticated.post("/api/extensions/bundled/activation", strictRateLimitMiddleware, async (c) => {
|
|
194
194
|
const body = await c.req.json().catch(() => null);
|
|
195
195
|
const extensionId = typeof body?.extensionId === "string" ? body.extensionId.trim() : "";
|
|
@@ -201,7 +201,29 @@ function registerAuthRegistryExtensionsRoutes(authenticated, deps) {
|
|
|
201
201
|
ok: false,
|
|
202
202
|
error: { message: "enabled must be a boolean" }
|
|
203
203
|
}, 400);
|
|
204
|
-
const result = await
|
|
204
|
+
const result = await updateExtensionActivation(extensionId, body.enabled);
|
|
205
|
+
if (!result.ok) return c.json({
|
|
206
|
+
ok: false,
|
|
207
|
+
error: { message: result.error ?? "Request failed" }
|
|
208
|
+
}, 400);
|
|
209
|
+
return c.json({
|
|
210
|
+
ok: true,
|
|
211
|
+
payload: { requiresGatewayRestart: result.requiresGatewayRestart }
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
/** Enable/disable any discovered native extension. */
|
|
215
|
+
authenticated.post("/api/extensions/:id/activation", strictRateLimitMiddleware, async (c) => {
|
|
216
|
+
const body = await c.req.json().catch(() => null);
|
|
217
|
+
const extensionId = c.req.param("id").trim();
|
|
218
|
+
if (!extensionId) return c.json({
|
|
219
|
+
ok: false,
|
|
220
|
+
error: { message: "extensionId is required" }
|
|
221
|
+
}, 400);
|
|
222
|
+
if (typeof body?.enabled !== "boolean") return c.json({
|
|
223
|
+
ok: false,
|
|
224
|
+
error: { message: "enabled must be a boolean" }
|
|
225
|
+
}, 400);
|
|
226
|
+
const result = await updateExtensionActivation(extensionId, body.enabled);
|
|
205
227
|
if (!result.ok) return c.json({
|
|
206
228
|
ok: false,
|
|
207
229
|
error: { message: result.error ?? "Request failed" }
|
|
@@ -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";
|
|
2
|
+
import { BindingsSchema, init_binding_schema } from "../../../../routing/binding-schema.js";
|
|
4
3
|
import { ContextPlanningConfigSchema, 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";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { enumerateLanGatewayCandidates } from "../../host.js";
|
|
2
2
|
import { getTunnelService } from "../../../tunnel/tunnel-service.js";
|
|
3
|
-
import { prepareLocalVoiceModelAfterProviderSwitch } from "../../../voice/local/provider-switch.js";
|
|
4
3
|
import { buildSafeWebConfigPayload } from "../lib/config-payload.js";
|
|
5
4
|
import { applyChannelsPatch } from "./config-patch/channels.js";
|
|
6
5
|
import { applyGatewayPatch } from "./config-patch/gateway.js";
|
|
@@ -37,7 +36,6 @@ function registerConfigRoutes(authenticated, deps) {
|
|
|
37
36
|
authenticated.patch("/api/config", strictRateLimitMiddleware, async (c) => {
|
|
38
37
|
const body = await c.req.json();
|
|
39
38
|
const config = service.currentConfig;
|
|
40
|
-
const previousSttProvider = config.tools?.media?.audio?.provider;
|
|
41
39
|
applyChannelsPatch(config, body);
|
|
42
40
|
const gatewayResult = applyGatewayPatch(config, body);
|
|
43
41
|
if (gatewayResult.ok === false) return c.json({
|
|
@@ -68,7 +66,6 @@ function registerConfigRoutes(authenticated, deps) {
|
|
|
68
66
|
ok: false,
|
|
69
67
|
error: result.error
|
|
70
68
|
}, 500);
|
|
71
|
-
prepareLocalVoiceModelAfterProviderSwitch(previousSttProvider, service.currentConfig);
|
|
72
69
|
const safeConfig = await buildSafeWebConfigPayload(service, { locale: localeFromRequest(c) });
|
|
73
70
|
return c.json({
|
|
74
71
|
ok: true,
|
|
@@ -28,12 +28,11 @@ import { composioLogoResponse } from "../../../connectors/composio-logo.js";
|
|
|
28
28
|
import { inspectManagedComposioStatus } from "../../../connectors/composio-managed-client.js";
|
|
29
29
|
import { appendComposioTriggerEvent, listComposioTriggerEvents } from "../../../connectors/composio-triggers.js";
|
|
30
30
|
import { ingestLocalFolderSource } from "../../../connectors/connected-source-ingestion.js";
|
|
31
|
-
import { previewConnectorDefinition, testConnectorInstance } from "../../../connectors/health.js";
|
|
32
31
|
import { listUnderstandingSourceGrants, revokeUnderstandingSourceGrant } from "../../../user-context/sources/repository.js";
|
|
32
|
+
import { previewConnectorDefinition, testConnectorInstance } from "../../../connectors/health.js";
|
|
33
33
|
import { setConnectorEnabled } from "../../../connectors/lifecycle.js";
|
|
34
34
|
import { projectComposioConnectionStatus } from "../../../connectors/runtime-status.js";
|
|
35
35
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
36
|
-
import { markContextSourceAssertionsForReview } from "./context-sources.js";
|
|
37
36
|
import { registerCliConnectorRoutes } from "./cli-connectors.js";
|
|
38
37
|
//#region src/gateway/hono/routes/connectors.ts
|
|
39
38
|
init_logger();
|
|
@@ -289,10 +288,7 @@ function registerConnectorRoutes(authenticated, deps) {
|
|
|
289
288
|
if (connectionId && !policy.scanEnabled) {
|
|
290
289
|
service.setConnectorLearningPaused(connectionId, true);
|
|
291
290
|
const grant = listUnderstandingSourceGrants().find((item) => item.sourceKey === `connector-account:${account.id}`);
|
|
292
|
-
if (grant)
|
|
293
|
-
markContextSourceAssertionsForReview(grant.id);
|
|
294
|
-
revokeUnderstandingSourceGrant(grant.id);
|
|
295
|
-
}
|
|
291
|
+
if (grant) revokeUnderstandingSourceGrant(grant.id);
|
|
296
292
|
} else if (connectionId && previous?.scanEnabled === false) {
|
|
297
293
|
if (service.setConnectorLearningPaused(connectionId, false) === 0) service.requestConnectorLearning(connectionId, {
|
|
298
294
|
mode: "incremental",
|
|
@@ -381,10 +377,7 @@ function registerConnectorRoutes(authenticated, deps) {
|
|
|
381
377
|
await revokeComposioConnection(connectionId);
|
|
382
378
|
if (connection?.accountId) {
|
|
383
379
|
const grant = listUnderstandingSourceGrants().find((item) => item.sourceKey === `connector-account:${connection.accountId}`);
|
|
384
|
-
if (grant)
|
|
385
|
-
markContextSourceAssertionsForReview(grant.id);
|
|
386
|
-
revokeUnderstandingSourceGrant(grant.id);
|
|
387
|
-
}
|
|
380
|
+
if (grant) revokeUnderstandingSourceGrant(grant.id);
|
|
388
381
|
}
|
|
389
382
|
return c.json({
|
|
390
383
|
ok: true,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { Hono } from 'hono';
|
|
2
2
|
import type { AuthenticatedRouteDeps } from './deps.js';
|
|
3
|
-
export declare function markContextSourceAssertionsForReview(grantId: string): number;
|
|
4
3
|
export declare function registerContextSourceRoutes(authenticated: Hono, deps: AuthenticatedRouteDeps): void;
|
|
@@ -3,10 +3,11 @@ import { getConnectorAccount } from "../../../storage/sqlite/connector-account-r
|
|
|
3
3
|
import { countKnowledgeSourceItems, deleteKnowledgeSourceItems } from "../../../storage/sqlite/knowledge-repository.js";
|
|
4
4
|
import { init_sqlite } from "../../../storage/sqlite/index.js";
|
|
5
5
|
import { init_agent_scope, resolveDefaultAgentId } from "../../../agent/agent-scope.js";
|
|
6
|
-
import {
|
|
6
|
+
import { listUserModelObservations } from "../../../user-model/observation-repository.js";
|
|
7
7
|
import "../../../user-model/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { getActiveUnderstandingConsent } from "../../../user-context/sources/consent-repository.js";
|
|
9
9
|
import { getUnderstandingSourceGrant, listUnderstandingSourceGrants, listUnderstandingSourceRuns, revokeUnderstandingSourceGrant, updateUnderstandingSourceGrantPolicies } from "../../../user-context/sources/repository.js";
|
|
10
|
+
import { listConnectedContentCandidates, readConnectedContent } from "../../../connectors/content-enrichment.js";
|
|
10
11
|
import { listUnderstandingSourceDefinitions } from "../../../user-context/sources/catalog.js";
|
|
11
12
|
//#region src/gateway/hono/routes/context-sources.ts
|
|
12
13
|
init_agent_scope();
|
|
@@ -27,16 +28,6 @@ function assertionIdsForSource(instanceId) {
|
|
|
27
28
|
FROM user_assertion_evidence ae JOIN context_evidence e ON e.evidence_id = ae.evidence_id
|
|
28
29
|
WHERE e.source_instance_id = ?`).all(instanceId).map((row) => row.assertion_id);
|
|
29
30
|
}
|
|
30
|
-
function markContextSourceAssertionsForReview(grantId) {
|
|
31
|
-
const grant = getUnderstandingSourceGrant(grantId);
|
|
32
|
-
const instanceId = grant ? sourceInstanceId(grant) : void 0;
|
|
33
|
-
const ids = instanceId ? assertionIdsForSource(instanceId) : [];
|
|
34
|
-
for (const id of ids) setAssertionStatus(id, "needs_review", {
|
|
35
|
-
actor: "runtime",
|
|
36
|
-
reason: "Its context source was revoked."
|
|
37
|
-
});
|
|
38
|
-
return ids.length;
|
|
39
|
-
}
|
|
40
31
|
function registerContextSourceRoutes(authenticated, deps) {
|
|
41
32
|
const service = deps.service.workDiscovery;
|
|
42
33
|
const limited = deps.strictRateLimitMiddleware;
|
|
@@ -49,6 +40,7 @@ function registerContextSourceRoutes(authenticated, deps) {
|
|
|
49
40
|
const grants = listUnderstandingSourceGrants({ includeRevoked: c.req.query("includeRevoked") === "true" });
|
|
50
41
|
return c.json({
|
|
51
42
|
grants,
|
|
43
|
+
consents: Object.fromEntries(grants.map((grant) => [grant.id, getActiveUnderstandingConsent(grant.id)])),
|
|
52
44
|
latestRuns: Object.fromEntries(grants.flatMap((grant) => {
|
|
53
45
|
const run = listUnderstandingSourceRuns(grant.id, 1)[0];
|
|
54
46
|
return run ? [[grant.id, run]] : [];
|
|
@@ -79,15 +71,20 @@ function registerContextSourceRoutes(authenticated, deps) {
|
|
|
79
71
|
const current = getUnderstandingSourceGrant(c.req.param("grantId"));
|
|
80
72
|
if (!current) return c.json({ error: "Context source not found" }, 404);
|
|
81
73
|
const instanceId = sourceInstanceId(current);
|
|
82
|
-
const affectedAssertions =
|
|
74
|
+
const affectedAssertions = instanceId ? assertionIdsForSource(instanceId).length : 0;
|
|
83
75
|
const rawDeleted = c.req.query("deleteRaw") === "true" && instanceId ? deleteKnowledgeSourceItems(instanceId) : 0;
|
|
76
|
+
const observationsDeleted = listUserModelObservations({
|
|
77
|
+
sourceGrantId: current.id,
|
|
78
|
+
limit: 2e3
|
|
79
|
+
}).length;
|
|
84
80
|
const accountId = typeof current.config.accountId === "string" ? current.config.accountId : void 0;
|
|
85
81
|
const connectionId = accountId ? getConnectorAccount(accountId)?.currentConnectionId : void 0;
|
|
86
82
|
if (connectionId) deps.service.setConnectorLearningPaused(connectionId, true);
|
|
87
83
|
return c.json({
|
|
88
84
|
grant: revokeUnderstandingSourceGrant(current.id),
|
|
89
85
|
affectedAssertions,
|
|
90
|
-
rawDeleted
|
|
86
|
+
rawDeleted,
|
|
87
|
+
observationsDeleted
|
|
91
88
|
});
|
|
92
89
|
});
|
|
93
90
|
authenticated.get("/api/context-sources/content-candidates", (c) => c.json({ candidates: listConnectedContentCandidates({ agentId: resolveDefaultAgentId() }) }));
|
|
@@ -134,4 +131,4 @@ function registerContextSourceRoutes(authenticated, deps) {
|
|
|
134
131
|
});
|
|
135
132
|
}
|
|
136
133
|
//#endregion
|
|
137
|
-
export {
|
|
134
|
+
export { registerContextSourceRoutes };
|
|
@@ -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";
|
|
@@ -4,9 +4,9 @@ import { parseUserTurnDocument, userTurnDocumentRefIds } from "../../../../packa
|
|
|
4
4
|
import { browserPageContextsInputSchema } from "../../../../packages/gateway-contract/src/browser-page-context.js";
|
|
5
5
|
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
6
6
|
import { endpointTurnClaimSchema, init_src as init_src$1 } from "../../../../packages/endpoint-tools-protocol/src/index.js";
|
|
7
|
+
import { init_providers, resolveModel } from "../../../providers/index.js";
|
|
7
8
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
8
9
|
import "../../../capabilities/runtime/dispatcher.js";
|
|
9
|
-
import { init_providers, resolveModel } from "../../../providers/index.js";
|
|
10
10
|
import { validateWebchatAttachments, validateWebchatContent } from "../../chat-limits.js";
|
|
11
11
|
import { isTaskDestructiveCommand } from "../../../session/reset-triggers.js";
|
|
12
12
|
import { parseSlashCommand } from "../../../chat-commands/command-parse.js";
|
|
@@ -82,7 +82,6 @@ function buildStatusPayload(service) {
|
|
|
82
82
|
sttAvailable: sttConfig ? isSTTAvailable(sttConfig) : false,
|
|
83
83
|
sttEnabled: sttConfig?.enabled === true,
|
|
84
84
|
sttProvider: sttConfig?.provider ?? null,
|
|
85
|
-
localModelId: sttConfig?.provider === "xopc-local" && typeof sttConfig.providers?.["xopc-local"]?.model === "string" ? sttConfig.providers["xopc-local"].model : null,
|
|
86
85
|
refineAvailable: isRefineAvailable(config)
|
|
87
86
|
}
|
|
88
87
|
};
|
|
@@ -5,9 +5,9 @@ import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
|
5
5
|
import { enqueueTaskChangedEvent, init_task_change_events } from "../../../tasks/task-change-events.js";
|
|
6
6
|
import { TaskRepository, init_task_repository } from "../../../tasks/task-repository.js";
|
|
7
7
|
import { TaskRunRepository, init_task_run_repository } from "../../../tasks/task-run-repository.js";
|
|
8
|
+
import { TaskConversationRepository } from "../../../tasks/task-conversation-repository.js";
|
|
8
9
|
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
9
10
|
import "../../../capabilities/runtime/dispatcher.js";
|
|
10
|
-
import { TaskConversationRepository } from "../../../tasks/task-conversation-repository.js";
|
|
11
11
|
import { TaskContextMutationOutputSchema } from "../../../tasks/capabilities/relations.js";
|
|
12
12
|
import { TaskDeleteOutputSchema } from "../../../tasks/capabilities/management.js";
|
|
13
13
|
import { TaskMutationOutputSchema } from "../../../tasks/capabilities/write.js";
|