@xopcai/xopc 0.0.312 → 0.0.314
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/dist/assets/{auth-C3yV1y_l.js → auth-DKo-NMUY.js} +18 -1
- package/dist/browser-ext/dist/background.js +68 -2
- package/dist/browser-ext/dist/sidepanel.html +1 -1
- package/dist/browser-ext/dist/sidepanel.js +1 -1
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/feishu/src/outbound/media-load.js +1 -1
- package/dist/extensions/telegram/src/inbound-processor.js +1 -1
- package/dist/extensions/telegram/src/plugin.js +2 -2
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BVIJMP8w.js → agent-avatar-dicebear-BFkjfurL.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-BdOZ6q8Z.js +1 -0
- package/dist/gateway/static/root/assets/{agents-D6g_SeWI.js → agents-CCcavsHq.js} +1 -1
- package/dist/gateway/static/root/assets/{api-_aHQA8bd.js → api-BYhRsTAc.js} +1 -1
- package/dist/gateway/static/root/assets/{app-link-CKueEVbT.js → app-link-nL8iPwEr.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-CLg_aXYG.js → app-management-settings-panel-B4kihr-A.js} +1 -1
- package/dist/gateway/static/root/assets/appearance-settings-N9sYmNOx.js +1 -0
- package/dist/gateway/static/root/assets/apps-page-BMcy10_s.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-CHO3heHX.js → archive-plugin-k_SuYWyV.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-BsmsBCI2.js → attachment-load-DRv5QWUK.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-CftigJlf.js → automations-page-CkJV3DN0.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-BEa2doeR.js +7 -0
- package/dist/gateway/static/root/assets/{binary-plugins-CRCLWBo2.js → binary-plugins-Dg3h3TA7.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-D0LDiOTT.js → block-editor-DVhdHntT.js} +29 -29
- package/dist/gateway/static/root/assets/{browser-automation-inputs-C611KRBx.js → browser-automation-inputs-BMRYUW8_.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-automations-page-Djyv3vy-.js → browser-automations-page-Byv6-FY2.js} +2 -2
- package/dist/gateway/static/root/assets/browser-settings-page-DRCHGFpO.js +3 -0
- package/dist/gateway/static/root/assets/capabilities-D0S3DuAD.js +1 -0
- package/dist/gateway/static/root/assets/capabilities-settings-panel-mxRP0gl0.js +8 -0
- package/dist/gateway/static/root/assets/channels-settings-DBt_6GsB.js +1 -0
- package/dist/gateway/static/root/assets/{chat-terminal-dock-CIsKqdET.js → chat-terminal-dock-D4AHa51o.js} +2 -2
- package/dist/gateway/static/root/assets/{computer-settings-page-C0YL9J7m.js → computer-settings-page-eXPe500D.js} +1 -1
- package/dist/gateway/static/root/assets/connector-service-page-BQTFlq_k.js +1 -0
- package/dist/gateway/static/root/assets/connectors-page-BKeBWwcI.js +2 -0
- package/dist/gateway/static/root/assets/conversation-identity-Cw0n9uzK.js +1 -0
- package/dist/gateway/static/root/assets/{date-picker-CDsfv8R0.js → date-picker-7MtovynY.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-DvhPj3CZ.js → dependency-picker-Bj_xkXID.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-Cyg8XMpL.js → desktop-pet-CTmba9zH.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-DNM_BlWN.js +1 -0
- package/dist/gateway/static/root/assets/device-pairing-wizard-C2XE0QhT.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-D-AVJU3q.js → extension-debug-page-J_olaL7e.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DrFoQ9xt.js → extension-page-pK5RvqN8.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DxWjESC1.js → extension-settings-page-BwroEN08.js} +1 -1
- package/dist/gateway/static/root/assets/files-BK6enEvD.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-DUDX42qY.js → gateway-config-swr-FuJTIg_a.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-CLLDp23J.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-Cf8OxlvY.js → gateway-startup-retry-CKg_gu8_.js} +1 -1
- package/dist/gateway/static/root/assets/home-page-B5Epb1PH.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-D2YorS--.js → image-generation-api-Bo6NZ7zb.js} +1 -1
- package/dist/gateway/static/root/assets/{imports-page-BKucJlXI.js → imports-page-C8-hX8gS.js} +1 -1
- package/dist/gateway/static/root/assets/index-14F1yGJI.js +89 -0
- package/dist/gateway/static/root/assets/index-cB7rWIDY.css +1 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BxLXD-yU.js → keyboard-shortcuts-settings-BkBEjUZD.js} +1 -1
- package/dist/gateway/static/root/assets/local-app-workbench-page-6jC3vQpY.js +2 -0
- package/dist/gateway/static/root/assets/{local-apps-page-BAsQJQKJ.js → local-apps-page-CrbKIixo.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-DA0Z5jM_.js → locale-store-CvGwNbml.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-DBHlZts9.js +2 -0
- package/dist/gateway/static/root/assets/management-settings-DsUWLu5m.js +1 -0
- package/dist/gateway/static/root/assets/{markdown-view-DYGPxPee.js → markdown-view-nXo5nrsv.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-CQtQzLyg.js → media-plugins-upxXJ-4l.js} +1 -1
- package/dist/gateway/static/root/assets/messages-B_AwRroN.js +3 -0
- package/dist/gateway/static/root/assets/note-detail-panel-0Q9TOtJG.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-D0NmcwNw.js +8 -0
- package/dist/gateway/static/root/assets/page-context-capture-button-DUyA-K4L.js +1 -0
- package/dist/gateway/static/root/assets/{page-tabs-B6DjkyMM.js → page-tabs-Cl-NFPNr.js} +1 -1
- package/dist/gateway/static/root/assets/{preview-open-alternatives-Dn57uLhr.js → preview-open-alternatives-DX81PwJ3.js} +1 -1
- package/dist/gateway/static/root/assets/product-delivery-chCjIpvu.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-H2YMk8TY.js → product-open-page-CrfIGwm8.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-BVfVrYmn.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-nM9a9XNS.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-C0DCx3wv.js → registry-api-CHxgohY0.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-C8b_k88G.js +1 -0
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-D3dLOW04.js +5 -0
- package/dist/gateway/static/root/assets/scenes-page-DEowreZV.js +2 -0
- package/dist/gateway/static/root/assets/{schema-form-CblI9WUA.js → schema-form-ZxuIvD2_.js} +1 -1
- package/dist/gateway/static/root/assets/schemas-88fK3zzl.js +64 -0
- package/dist/gateway/static/root/assets/sessions-page-B_nPhera.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-BqhIOuus.js +1 -0
- package/dist/gateway/static/root/assets/{settings-form-section-BAaVyxJH.js → settings-form-section-TZRfg4yo.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-CKNPbm5q.js → settings-page-a8qcJpdZ.js} +1 -1
- package/dist/gateway/static/root/assets/{settings-page-layout-DqNCGKxQ.js → settings-page-layout-BfvlRT9q.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-CRj5Ruqn.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-BzMfp_HM.js → share-preview-page-DCt1pTWB.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-BNbXPk--.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-CNMCLbav.js +1 -0
- package/dist/gateway/static/root/assets/{skills-page-DIht92q6.js → skills-page-BIOcg44X.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page.utils-DLYRiEn3.js → skills-page.utils-CgZdzT4I.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-yYs4YgYk.js → system-settings-panel-_YaRncA6.js} +1 -1
- package/dist/gateway/static/root/assets/task-detail-page-CAcfAG-c.js +1 -0
- package/dist/gateway/static/root/assets/tasks-CDR_RVbQ.js +1 -0
- package/dist/gateway/static/root/assets/{tunnel-api-BasDYxvx.js → tunnel-api-uOupJOoS.js} +1 -1
- package/dist/gateway/static/root/assets/turn-outcome-D0SnyZ3Z.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-CWAUHhcb.js → use-autosave-BezzHBLE.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-BFFeneDq.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-Kc4UlxZs.js → voice-api-key-field-BmYifdwL.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-DTyMdGOR.js → voice-config-api-D_5Q2_A3.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-BPC_c9dO.js → work-discovery-overlay-4DmyEckJ.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-DBTciOrq.js → workflow-run-setup-panel-DeZe8bTZ.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-Sv4hEc6W.js +6 -0
- package/dist/gateway/static/root/index.html +16 -16
- package/dist/package.js +1 -1
- package/dist/packages/computer-control-contract/src/index.js +10 -1
- package/dist/packages/gateway-contract/src/app-context.js +55 -0
- package/dist/packages/gateway-contract/src/automations.js +16 -17
- package/dist/packages/gateway-contract/src/capabilities.js +1078 -0
- package/dist/packages/gateway-contract/src/extension-capabilities.js +26 -0
- package/dist/packages/gateway-contract/src/home.js +3 -3
- package/dist/packages/gateway-contract/src/index.js +8 -0
- package/dist/packages/gateway-contract/src/product-delivery.js +19 -4
- package/dist/packages/gateway-contract/src/scenes.js +199 -0
- package/dist/packages/gateway-contract/src/task-runs.js +8 -4
- package/dist/packages/gateway-contract/src/tasks.js +5 -4
- package/dist/packages/realtime-client/src/index.js +17 -4
- package/dist/src/agent/agent-manager.d.ts +1 -0
- package/dist/src/agent/agent-manager.js +1 -0
- package/dist/src/agent/child-agent-factory.d.ts +2 -0
- package/dist/src/agent/child-agent-factory.js +5 -0
- package/dist/src/agent/commands/approved-verification.d.ts +14 -0
- package/dist/src/agent/commands/approved-verification.js +48 -0
- package/dist/src/agent/context/execution-scope.js +2 -1
- package/dist/src/agent/context/project-context.js +2 -1
- package/dist/src/agent/external-tools/cliProvider.js +123 -75
- package/dist/src/agent/external-tools/composio-provider.d.ts +1 -1
- package/dist/src/agent/external-tools/composio-provider.js +70 -12
- package/dist/src/agent/external-tools/endpoint-provider.js +14 -1
- package/dist/src/agent/inbound/turn-dispatcher.d.ts +2 -0
- package/dist/src/agent/inbound/turn-dispatcher.js +2 -1
- package/dist/src/agent/memory/compaction-chunks.d.ts +6 -1
- package/dist/src/agent/memory/compaction-chunks.js +16 -3
- package/dist/src/agent/memory/compaction-ledger.d.ts +3 -1
- package/dist/src/agent/memory/compaction-ledger.js +31 -18
- package/dist/src/agent/memory/compaction-request.d.ts +2 -0
- package/dist/src/agent/memory/compaction-request.js +6 -1
- package/dist/src/agent/memory/compaction.d.ts +19 -1
- package/dist/src/agent/memory/compaction.js +112 -30
- package/dist/src/agent/service/process-direct-streaming.d.ts +3 -0
- package/dist/src/agent/service/process-direct-streaming.js +19 -10
- package/dist/src/agent/service.js +1 -0
- package/dist/src/agent/service.types.d.ts +1 -0
- package/dist/src/agent/skills/config.js +2 -0
- package/dist/src/agent/skills/format-skills-prompt.js +14 -1
- package/dist/src/agent/skills/index.js +16 -8
- package/dist/src/agent/skills/types.d.ts +1 -1
- package/dist/src/agent/source-context/app-context.d.ts +4 -0
- package/dist/src/agent/source-context/app-context.js +36 -0
- package/dist/src/agent/source-context/injector.js +1 -0
- package/dist/src/agent/source-context/types.d.ts +5 -1
- package/dist/src/agent/tasks/task-judge-service.js +2 -1
- package/dist/src/agent/tool-manuals/computer.d.ts +1 -1
- package/dist/src/agent/tool-manuals/computer.js +1 -1
- package/dist/src/agent/tools/automation-tool.d.ts +12 -1
- package/dist/src/agent/tools/automation-tool.js +106 -32
- package/dist/src/agent/tools/factory.d.ts +1 -0
- package/dist/src/agent/tools/factory.js +6 -1
- package/dist/src/agent/tools/scoped-workspace-tools.d.ts +8 -0
- package/dist/src/agent/tools/scoped-workspace-tools.js +81 -0
- package/dist/src/agent/tools/xopc-use-tool.d.ts +6 -3
- package/dist/src/agent/tools/xopc-use-tool.js +997 -908
- package/dist/src/agent/workflow/subagent-runner.js +1 -0
- package/dist/src/agent-config/index.js +2 -2
- package/dist/src/agent-config/schema.d.ts +5 -0
- package/dist/src/agent-config/schema.js +14 -10
- package/dist/src/automations/api/routes.js +244 -164
- package/dist/src/automations/capabilities/drafts.d.ts +4 -0
- package/dist/src/automations/capabilities/drafts.js +95 -0
- package/dist/src/automations/capabilities/read.d.ts +4 -0
- package/dist/src/automations/capabilities/read.js +119 -0
- package/dist/src/automations/capabilities/write.d.ts +349 -0
- package/dist/src/automations/capabilities/write.js +172 -0
- package/dist/src/automations/domain/index.js +2 -2
- package/dist/src/automations/domain/validation.d.ts +77 -77
- package/dist/src/automations/domain/validation.js +9 -6
- package/dist/src/automations/draft/automation-draft-validator.d.ts +2 -2
- package/dist/src/automations/index.js +6 -6
- package/dist/src/automations/service/automation-service.d.ts +31 -0
- package/dist/src/automations/service/automation-service.js +213 -75
- package/dist/src/automations/service/index.js +2 -2
- package/dist/src/automations/storage/automation-repository.d.ts +2 -0
- package/dist/src/automations/storage/automation-repository.js +9 -1
- package/dist/src/automations/storage/automation-run-repository.d.ts +4 -1
- package/dist/src/automations/storage/automation-run-repository.js +16 -3
- package/dist/src/automations/storage/index.js +3 -3
- package/dist/src/browser/automations/schema.d.ts +1 -1
- package/dist/src/browser/automations/service.d.ts +1 -1
- package/dist/src/browser/observation/format.js +4 -0
- package/dist/src/capabilities/adapters/http.d.ts +4 -0
- package/dist/src/capabilities/adapters/http.js +44 -0
- package/dist/src/capabilities/readiness/from-config.js +11 -7
- package/dist/src/capabilities/runtime/app-context.d.ts +3 -0
- package/dist/src/capabilities/runtime/app-context.js +72 -0
- package/dist/src/capabilities/runtime/atomic-operations.d.ts +11 -0
- package/dist/src/capabilities/runtime/atomic-operations.js +34 -0
- package/dist/src/capabilities/runtime/dispatcher.d.ts +67 -0
- package/dist/src/capabilities/runtime/dispatcher.js +170 -0
- package/dist/src/capabilities/runtime/errors.d.ts +6 -0
- package/dist/src/capabilities/runtime/errors.js +11 -0
- package/dist/src/capabilities/runtime/external-operations.d.ts +16 -0
- package/dist/src/capabilities/runtime/external-operations.js +92 -0
- package/dist/src/capabilities/runtime/product.d.ts +12 -0
- package/dist/src/capabilities/runtime/product.js +69 -0
- package/dist/src/capabilities/runtime/settings.d.ts +3 -0
- package/dist/src/capabilities/runtime/settings.js +27 -0
- package/dist/src/channels/index.js +2 -2
- package/dist/src/channels/manager.js +1 -1
- package/dist/src/cli/cli-log-level-preset.d.ts +2 -0
- package/dist/src/cli/cli-log-level-preset.js +4 -0
- package/dist/src/cli/command-catalog.js +4 -0
- package/dist/src/cli/command-loaders.js +1 -0
- package/dist/src/cli/command-manifest.js +4 -0
- package/dist/src/cli/commands/channels.js +1 -1
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +1 -1
- package/dist/src/cli/commands/mcp.d.ts +1 -0
- package/dist/src/cli/commands/mcp.js +51 -0
- package/dist/src/cli/commands/models.js +1 -1
- package/dist/src/cli/commands/onboard.js +1 -1
- package/dist/src/cli/commands/project.js +1 -1
- package/dist/src/computer/broker.d.ts +0 -1
- package/dist/src/computer/broker.js +4 -6
- package/dist/src/computer/evaluation-harness.d.ts +45 -0
- package/dist/src/computer/evaluation-harness.js +108 -0
- package/dist/src/computer/model-adapter.d.ts +37 -2
- package/dist/src/computer/model-adapter.js +333 -42
- package/dist/src/computer/model-policy.d.ts +4 -1
- package/dist/src/computer/model-policy.js +11 -3
- package/dist/src/computer/release-gate.d.ts +22 -0
- package/dist/src/computer/release-gate.js +19 -0
- package/dist/src/computer/runtime.js +14 -10
- package/dist/src/computer/task-state.d.ts +1 -0
- package/dist/src/computer/task-state.js +1 -0
- package/dist/src/config/models-json.d.ts +14 -8
- package/dist/src/config/models-json.js +1 -1
- package/dist/src/config/schema.d.ts +4 -0
- package/dist/src/config/schema.js +3 -9
- package/dist/src/connectors/composio-sessions.d.ts +4 -2
- package/dist/src/connectors/composio-sessions.js +10 -9
- package/dist/src/connectors/composio.js +10 -8
- package/dist/src/discussions/action-tasks.js +2 -1
- package/dist/src/discussions/recording.js +1 -1
- package/dist/src/execution-environments/local-worktree-manager.d.ts +1 -0
- package/dist/src/execution-environments/local-worktree-manager.js +13 -2
- package/dist/src/extensions/activation-context.js +3 -3
- package/dist/src/extensions/api.js +1 -1
- package/dist/src/extensions/normalize-manifest.js +6 -1
- package/dist/src/extensions/sdk/index.js +1 -1
- package/dist/src/extensions/sdk/media.js +1 -1
- package/dist/src/extensions/types/manifest.d.ts +3 -0
- package/dist/src/gateway/agent-builtin-tools.d.ts +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +1 -0
- package/dist/src/gateway/hono/middleware/scopes.js +1 -1
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +5 -2
- package/dist/src/gateway/hono/routes/capability-operations.d.ts +3 -0
- package/dist/src/gateway/hono/routes/capability-operations.js +52 -0
- package/dist/src/gateway/hono/routes/lazy-bundles.js +16 -0
- package/dist/src/gateway/hono/routes/local-app-capabilities.d.ts +4 -0
- package/dist/src/gateway/hono/routes/local-app-capabilities.js +41 -0
- package/dist/src/gateway/hono/routes/local-apps.js +41 -9
- package/dist/src/gateway/hono/routes/models.js +2 -2
- package/dist/src/gateway/hono/routes/notes.js +215 -146
- package/dist/src/gateway/hono/routes/projects.js +217 -374
- package/dist/src/gateway/hono/routes/scenes.js +188 -75
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +60 -16
- package/dist/src/gateway/hono/routes/session-input-handler.js +43 -1
- package/dist/src/gateway/hono/routes/sessions.js +17 -0
- package/dist/src/gateway/hono/routes/status.js +1 -1
- package/dist/src/gateway/hono/routes/tasks.js +182 -326
- package/dist/src/gateway/hono/routes/user-model-refresh.js +1 -1
- package/dist/src/gateway/hono/routes/voice.js +4 -4
- package/dist/src/gateway/hono/routes/workflows.js +1 -1
- package/dist/src/gateway/media-access.js +2 -1
- package/dist/src/gateway/mobile-privacy.js +2 -2
- package/dist/src/gateway/scenes/host.js +14 -3
- package/dist/src/gateway/scenes/mailContext.js +1 -1
- package/dist/src/gateway/scenes/slackThreadSource.d.ts +41 -0
- package/dist/src/gateway/scenes/slackThreadSource.js +168 -0
- package/dist/src/gateway/security/gateway-scopes.d.ts +1 -1
- package/dist/src/gateway/security/gateway-scopes.js +5 -0
- package/dist/src/gateway/service/app-context-access.d.ts +11 -0
- package/dist/src/gateway/service/app-context-access.js +70 -0
- package/dist/src/gateway/service/run-gateway-agent.js +11 -2
- package/dist/src/gateway/service/session-input-coordinator.js +54 -15
- package/dist/src/gateway/service/sessions-api.d.ts +1 -0
- package/dist/src/gateway/service/sessions-api.js +3 -0
- package/dist/src/gateway/service/task-conversation-query-service.d.ts +3 -1
- package/dist/src/gateway/service/task-conversation-query-service.js +32 -3
- package/dist/src/gateway/service.d.ts +3 -0
- package/dist/src/gateway/service.js +69 -15
- package/dist/src/gateway/session-context-summary.js +2 -1
- package/dist/src/{tasks/task-outbox-dispatcher.d.ts → infra/domain-outbox-dispatcher.d.ts} +2 -2
- package/dist/src/{tasks/task-outbox-dispatcher.js → infra/domain-outbox-dispatcher.js} +10 -9
- package/dist/src/infra/operation-context.d.ts +2 -0
- package/dist/src/infra/operation-context.js +16 -0
- package/dist/src/local-apps/capabilities/contracts.d.ts +2 -0
- package/dist/src/local-apps/capabilities/contracts.js +32 -0
- package/dist/src/local-apps/capabilities/read.d.ts +3 -0
- package/dist/src/local-apps/capabilities/read.js +48 -0
- package/dist/src/local-apps/capabilities/runtime.d.ts +16 -0
- package/dist/src/local-apps/capabilities/runtime.js +66 -0
- package/dist/src/local-apps/capabilities/write.d.ts +3 -0
- package/dist/src/local-apps/capabilities/write.js +35 -0
- package/dist/src/local-apps/release-lock.d.ts +2 -0
- package/dist/src/local-apps/release-lock.js +20 -0
- package/dist/src/local-apps/runtime-entry.d.ts +0 -2
- package/dist/src/local-apps/runtime-entry.js +1 -14
- package/dist/src/local-apps/scaffold.js +4 -1
- package/dist/src/local-apps/service.d.ts +24 -1
- package/dist/src/local-apps/service.js +186 -43
- package/dist/src/local-apps/store.js +0 -2
- package/dist/src/mcp/capability-server.d.ts +4 -0
- package/dist/src/mcp/capability-server.js +96 -0
- package/dist/src/mcp/channel-bridge.js +1 -1
- package/dist/src/mcp/gateway-http-client.d.ts +7 -0
- package/dist/src/mcp/gateway-http-client.js +27 -5
- package/dist/src/media-understanding/openai-compatible-audio.js +1 -1
- package/dist/src/notes/agent-context.js +1 -1
- package/dist/src/notes/capabilities/read.d.ts +3 -0
- package/dist/src/notes/capabilities/read.js +96 -0
- package/dist/src/notes/capabilities/write.d.ts +7 -0
- package/dist/src/notes/capabilities/write.js +152 -0
- package/dist/src/notes/index.js +1 -1
- package/dist/src/notes/service.d.ts +12 -4
- package/dist/src/notes/service.js +188 -175
- package/dist/src/notes/store.d.ts +14 -9
- package/dist/src/notes/store.js +81 -21
- package/dist/src/notifications/service.d.ts +1 -0
- package/dist/src/notifications/service.js +5 -0
- package/dist/src/platform/client.d.ts +1 -1
- package/dist/src/platform/contracts.d.ts +1 -1
- package/dist/src/projects/capabilities/read.d.ts +3 -0
- package/dist/src/projects/capabilities/read.js +81 -0
- package/dist/src/projects/capabilities/write.d.ts +9 -0
- package/dist/src/projects/capabilities/write.js +260 -0
- package/dist/src/projects/index.js +2 -2
- package/dist/src/projects/project-change-events.d.ts +2 -0
- package/dist/src/projects/project-change-events.js +18 -0
- package/dist/src/projects/project-service.d.ts +11 -0
- package/dist/src/projects/project-service.js +121 -42
- package/dist/src/projects/project-store.js +12 -2
- package/dist/src/projects/project-workspace-creation.d.ts +3 -0
- package/dist/src/projects/project-workspace-creation.js +45 -0
- package/dist/src/projects/workspace-project.js +6 -0
- package/dist/src/providers/model-catalog-types.d.ts +2 -1
- package/dist/src/providers/model-reference-auditor.js +4 -4
- package/dist/src/providers/model-supplements.js +13 -3
- package/dist/src/providers/presentation.js +3 -3
- package/dist/src/providers/xopc-cloud-model-source.js +4 -2
- package/dist/src/realtime/runtime.js +4 -0
- package/dist/src/scenes/capabilities/read.d.ts +3 -0
- package/dist/src/scenes/capabilities/read.js +187 -0
- package/dist/src/scenes/capabilities/write.d.ts +3 -0
- package/dist/src/scenes/capabilities/write.js +151 -0
- package/dist/src/scenes/contracts.d.ts +2 -105
- package/dist/src/scenes/contracts.js +3 -88
- package/dist/src/scenes/execution.d.ts +1 -1
- package/dist/src/scenes/httpServices.d.ts +2 -0
- package/dist/src/scenes/inbox.d.ts +1 -0
- package/dist/src/scenes/inbox.js +7 -7
- package/dist/src/scenes/preferences.d.ts +3 -24
- package/dist/src/scenes/preferences.js +8 -30
- package/dist/src/scenes/repository.d.ts +1 -0
- package/dist/src/scenes/repository.js +7 -3
- package/dist/src/scenes/resultNotifications.js +2 -2
- package/dist/src/scenes/schedule.d.ts +1 -8
- package/dist/src/scenes/schedule.js +3 -15
- package/dist/src/scenes/service.d.ts +6 -0
- package/dist/src/scenes/service.js +29 -25
- package/dist/src/scenes/taskFollowUp/agentExecutor.d.ts +36 -0
- package/dist/src/scenes/taskFollowUp/agentExecutor.js +149 -0
- package/dist/src/scenes/taskFollowUp/branchInventory.d.ts +38 -0
- package/dist/src/scenes/taskFollowUp/branchInventory.js +70 -0
- package/dist/src/scenes/taskFollowUp/contracts.d.ts +91 -0
- package/dist/src/scenes/taskFollowUp/contracts.js +100 -0
- package/dist/src/scenes/taskFollowUp/resources.d.ts +19 -0
- package/dist/src/scenes/taskFollowUp/resources.js +97 -0
- package/dist/src/scenes/taskFollowUp/service.d.ts +810 -0
- package/dist/src/scenes/taskFollowUp/service.js +710 -0
- package/dist/src/scenes/taskFollowUp/workspaceFingerprint.d.ts +2 -0
- package/dist/src/scenes/taskFollowUp/workspaceFingerprint.js +46 -0
- package/dist/src/scenes/templates.d.ts +2 -2
- package/dist/src/scenes/templates.js +1 -1
- package/dist/src/session/session-find.d.ts +17 -0
- package/dist/src/session/session-find.js +56 -0
- package/dist/src/session/store.d.ts +4 -0
- package/dist/src/session/store.js +43 -7
- package/dist/src/share/note-share-revocation.d.ts +3 -0
- package/dist/src/share/note-share-revocation.js +26 -0
- package/dist/src/storage/sqlite/migrations/190_scene_development.sql +37 -0
- package/dist/src/storage/sqlite/migrations/191_scene_task_follow_up.sql +27 -0
- package/dist/src/storage/sqlite/migrations/192_capability_operations.sql +20 -0
- package/dist/src/storage/sqlite/migrations/193_note_file_cleanup.sql +8 -0
- package/dist/src/storage/sqlite/migrations/194_capability_external_outcomes.sql +11 -0
- package/dist/src/storage/sqlite/migrations/195_automation_deleted_revisions.sql +4 -0
- package/dist/src/storage/sqlite/migrations/196_automation_run_requests.sql +23 -0
- package/dist/src/storage/sqlite/migrations/197_note_deletion_cleanup.sql +8 -0
- package/dist/src/storage/sqlite/migrations/198_project_workspace_creation.sql +7 -0
- package/dist/src/storage/sqlite/migrations/199_scene_resource_events.sql +488 -0
- package/dist/src/storage/sqlite/migrations/runner.d.ts +1 -1
- package/dist/src/storage/sqlite/migrations/runner.js +6 -3
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/transaction.d.ts +5 -0
- package/dist/src/storage/sqlite/transaction.js +34 -3
- package/dist/src/tasks/capabilities/management.d.ts +195 -0
- package/dist/src/tasks/capabilities/management.js +111 -0
- package/dist/src/tasks/capabilities/read.d.ts +2 -0
- package/dist/src/tasks/capabilities/read.js +141 -0
- package/dist/src/tasks/capabilities/relations.d.ts +204 -0
- package/dist/src/tasks/capabilities/relations.js +140 -0
- package/dist/src/tasks/capabilities/runs.d.ts +2 -0
- package/dist/src/tasks/capabilities/runs.js +89 -0
- package/dist/src/tasks/capabilities/write.d.ts +207 -0
- package/dist/src/tasks/capabilities/write.js +107 -0
- package/dist/src/tasks/home-query-service.js +3 -2
- package/dist/src/tasks/index.d.ts +0 -1
- package/dist/src/tasks/index.js +9 -9
- package/dist/src/tasks/project-operating-view-service.js +2 -1
- package/dist/src/tasks/task-application-service.d.ts +1 -0
- package/dist/src/tasks/task-application-service.js +3 -2
- package/dist/src/tasks/task-change-events.js +5 -3
- package/dist/src/tasks/task-context-assembler.js +2 -1
- package/dist/src/tasks/task-deletion-service.js +2 -1
- package/dist/src/tasks/task-dependency-service.js +2 -1
- package/dist/src/tasks/task-handoff-service.js +2 -1
- package/dist/src/tasks/task-read-model-projector.js +2 -1
- package/dist/src/tasks/task-repository.d.ts +12 -7
- package/dist/src/tasks/task-repository.js +175 -154
- package/dist/src/tasks/task-run-coordinator.js +2 -1
- package/dist/src/tasks/task-run-dispatcher.js +2 -1
- package/dist/src/tasks/task-run-repository.d.ts +1 -0
- package/dist/src/tasks/task-run-repository.js +29 -14
- package/dist/src/tasks/task-signal-service.js +2 -1
- package/dist/src/tui/backends/embedded-backend.js +1 -1
- package/dist/src/tui/backends/gateway-realtime-backend.js +1 -1
- package/dist/src/tui/tui-commands.js +1 -1
- package/dist/src/user-context/config.d.ts +13 -0
- package/dist/src/user-context/config.js +2 -0
- package/dist/src/voice/platform-catalog.d.ts +1 -1
- package/dist/src/voice/realtime/runtime.js +3 -3
- package/dist/src/voice/stt/providers/alibaba-transcription.js +1 -1
- package/dist/src/voice/stt/providers/xopc-cloud-transcription.js +1 -1
- package/dist/src/voice/tts/providers/xopc-cloud-speech.js +1 -1
- package/dist/src/work-discovery/incremental-repository.js +1 -1
- package/dist/src/work-discovery/index.js +1 -1
- package/dist/src/work-discovery/repository.d.ts +1 -1
- package/dist/src/work-discovery/repository.js +3 -2
- package/dist/src/work-discovery/service.d.ts +4 -0
- package/dist/src/work-discovery/service.js +36 -11
- package/dist/src/workflows/context/workflow-context.js +3 -2
- package/dist/src/workflows/service/workflow-run-service.js +2 -1
- package/package.json +6 -2
- package/skills/THIRD_PARTY_NOTICES.md +2 -2
- package/skills/documents/xlsx/SKILL.md +5 -0
- package/skills/engineering/build-xopc-local-app/SKILL.md +2 -0
- package/skills/tools/find-skills/SKILL.md +3 -0
- package/dist/gateway/static/root/assets/activity-store-DVUTs1fk.js +0 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-K3hTmu9d.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-CU52MfIT.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-ZpA1-6ad.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-IEAxKRME.js +0 -7
- package/dist/gateway/static/root/assets/browser-settings-page-CU4VWsmX.js +0 -3
- package/dist/gateway/static/root/assets/capabilities-settings-panel-C9XQk3HL.js +0 -8
- package/dist/gateway/static/root/assets/channels-settings-Bqlhjooi.js +0 -1
- package/dist/gateway/static/root/assets/connector-service-page-BmH17JnO.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-zkx8Q-e6.js +0 -2
- package/dist/gateway/static/root/assets/desktop-pet-settings-CE4GOlMM.js +0 -1
- package/dist/gateway/static/root/assets/device-pairing-wizard-CdKJqnnw.js +0 -1
- package/dist/gateway/static/root/assets/files-Be5viEFY.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-CGOW0-b4.js +0 -1
- package/dist/gateway/static/root/assets/gateway-realtime-store-D4um_sV7.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CgXp2zq4.js +0 -1
- package/dist/gateway/static/root/assets/home-page-D6Idk732.js +0 -1
- package/dist/gateway/static/root/assets/index-1wIKA-kM.css +0 -1
- package/dist/gateway/static/root/assets/index-PFQHPGgi.js +0 -79
- package/dist/gateway/static/root/assets/local-app-workbench-page-BmAqTRb4.js +0 -2
- package/dist/gateway/static/root/assets/logs-page-ZjVYXXyM.js +0 -2
- package/dist/gateway/static/root/assets/management-settings-CSTkYVOZ.js +0 -1
- package/dist/gateway/static/root/assets/messages-4BtQKYlM.js +0 -3
- package/dist/gateway/static/root/assets/note-detail-panel-DuXCt-MM.js +0 -5
- package/dist/gateway/static/root/assets/notes-page-BjOgBVq5.js +0 -8
- package/dist/gateway/static/root/assets/product-delivery-CrAI8ZEa.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-0zi4-i9X.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-B18OxmJj.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-z-DxbuaE.js +0 -1
- package/dist/gateway/static/root/assets/runtime-tools-settings-panel-DGsBTbo6.js +0 -5
- package/dist/gateway/static/root/assets/scenes-page-Bgba03B_.js +0 -1
- package/dist/gateway/static/root/assets/schemas-BaskVM5g.js +0 -64
- package/dist/gateway/static/root/assets/sessions-page-B1t3bMsm.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-CBX0Ezhf.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-Bw71C2X3.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-BoVDQolc.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DtTptpAt.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-vgkiGo-D.js +0 -1
- package/dist/gateway/static/root/assets/theme-store-CegIlB8d.js +0 -1
- package/dist/gateway/static/root/assets/user-model-page-CAGafNfP.js +0 -2
- package/dist/gateway/static/root/assets/workflows-page-CSxHVs1p.js +0 -6
- package/skills/creative/algorithmic-art/SKILL.md +0 -44
- package/skills/creative/algorithmic-art/templates/generator-template.js +0 -27
- package/skills/creative/algorithmic-art/templates/viewer.html +0 -27
|
@@ -1,21 +1,31 @@
|
|
|
1
1
|
import { createLogger } from "../../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../../utils/logger.js";
|
|
3
|
+
import { ProductReadContracts } from "../../../../packages/gateway-contract/src/capabilities.js";
|
|
4
|
+
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
5
|
+
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
6
|
+
import "../../../capabilities/runtime/dispatcher.js";
|
|
3
7
|
import { SceneConflictError, SceneInputError, SceneNotFoundError } from "../../../scenes/repository.js";
|
|
4
8
|
import { SceneSetupError } from "../../../scenes/service.js";
|
|
9
|
+
import { createProductDispatcher } from "../../../capabilities/runtime/product.js";
|
|
5
10
|
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
11
|
+
import { capabilityHttpContext, capabilityHttpError } from "../../../capabilities/adapters/http.js";
|
|
12
|
+
import { randomUUID } from "node:crypto";
|
|
6
13
|
import { z } from "zod";
|
|
7
14
|
import { Hono } from "hono";
|
|
8
15
|
//#region src/gateway/hono/routes/scenes.ts
|
|
16
|
+
init_src();
|
|
9
17
|
init_logger();
|
|
10
18
|
const log = createLogger("Hono:Scenes");
|
|
11
19
|
const requestIdentity = z.string().trim().min(1).max(200);
|
|
12
|
-
const pageSchema = z.strictObject({
|
|
13
|
-
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
14
|
-
afterId: z.string().max(200).default("")
|
|
15
|
-
});
|
|
16
20
|
function registerSceneRoutes(authenticated, deps) {
|
|
17
21
|
const app = new Hono();
|
|
18
22
|
app.onError((error, c) => {
|
|
23
|
+
if (error instanceof CapabilityError && error.cause instanceof SceneSetupError) return c.json({
|
|
24
|
+
error: "scene_needs_setup",
|
|
25
|
+
message: error.cause.message,
|
|
26
|
+
missing: error.cause.missing
|
|
27
|
+
}, 422);
|
|
28
|
+
if (error instanceof CapabilityError) return capabilityHttpError(c, error);
|
|
19
29
|
if (error instanceof SceneNotFoundError) return c.json({ error: "scene_not_found" }, 404);
|
|
20
30
|
if (error instanceof SceneConflictError) return c.json({
|
|
21
31
|
error: "scene_changed",
|
|
@@ -41,99 +51,202 @@ function registerSceneRoutes(authenticated, deps) {
|
|
|
41
51
|
ownerId: getGatewayPrincipal(c).scopes.includes("gateway.admin") ? "local-owner" : getGatewayPrincipal(c).principalId,
|
|
42
52
|
workspaceId: deps.service.currentWorkspacePath
|
|
43
53
|
});
|
|
54
|
+
const capabilities = createProductDispatcher(void 0, { getSceneAccess: () => deps.scenes ? {
|
|
55
|
+
services: deps.scenes,
|
|
56
|
+
principal: {
|
|
57
|
+
ownerId: "local-owner",
|
|
58
|
+
workspaceId: deps.service.currentWorkspacePath
|
|
59
|
+
}
|
|
60
|
+
} : void 0 });
|
|
61
|
+
const read = async (c, operation, input) => ProductReadContracts[operation].output.parse(await capabilities.call(operation, input, capabilityHttpContext(c)));
|
|
62
|
+
const write = (c, operation, input) => {
|
|
63
|
+
const context = capabilityHttpContext(c);
|
|
64
|
+
return capabilities.call(operation, input, context, {
|
|
65
|
+
...capabilities.describe(operation, context),
|
|
66
|
+
idempotencyKey: c.req.header("Idempotency-Key") ?? randomUUID()
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
app.get("/source-providers", (c) => c.json({ providers: deps.scenes.followUps?.sources.list() ?? [] }));
|
|
70
|
+
app.get("/source-providers/:provider/accounts", (c) => c.json({ accounts: deps.scenes.followUps?.sources.get(c.req.param("provider")).listAccounts?.(principal(c)) ?? [] }));
|
|
71
|
+
app.post("/source-providers/:provider/resolve-link", deps.strictRateLimitMiddleware, async (c) => {
|
|
72
|
+
const input = z.strictObject({
|
|
73
|
+
accountId: z.string().min(1).max(200),
|
|
74
|
+
url: z.string().url().max(2e3)
|
|
75
|
+
}).parse(await c.req.json());
|
|
76
|
+
const source = deps.scenes.followUps?.sources.get(c.req.param("provider"));
|
|
77
|
+
if (!source?.resolveLink) return c.json({ error: "source_resolution_unavailable" }, 422);
|
|
78
|
+
const reference = await source.resolveLink(principal(c), input.accountId, input.url, AbortSignal.any([c.req.raw.signal, AbortSignal.timeout(3e4)]));
|
|
79
|
+
return c.json({ source: {
|
|
80
|
+
provider: source.id,
|
|
81
|
+
reference
|
|
82
|
+
} });
|
|
83
|
+
});
|
|
84
|
+
app.get("/task-follow-ups", (c) => c.json({ items: deps.scenes.followUps?.list(principal(c)) ?? [] }));
|
|
85
|
+
app.get("/task-follow-ups/projects/:projectId/branches", async (c) => {
|
|
86
|
+
if (!deps.scenes.followUps) return c.json({ error: "task_follow_up_unavailable" }, 503);
|
|
87
|
+
return c.json(await deps.scenes.followUps.branches.list(principal(c), c.req.param("projectId")));
|
|
88
|
+
});
|
|
89
|
+
app.post("/task-follow-ups/branch-links", deps.strictRateLimitMiddleware, async (c) => {
|
|
90
|
+
const input = z.strictObject({
|
|
91
|
+
projectId: z.string().min(1).max(200),
|
|
92
|
+
taskId: z.string().uuid(),
|
|
93
|
+
branchRef: z.string().startsWith("refs/heads/").max(300),
|
|
94
|
+
expectedSha: z.string().regex(/^[a-f0-9]{40,64}$/)
|
|
95
|
+
}).parse(await c.req.json());
|
|
96
|
+
if (!deps.scenes.followUps) return c.json({ error: "task_follow_up_unavailable" }, 503);
|
|
97
|
+
return c.json(await deps.scenes.followUps.branches.associate(principal(c), input));
|
|
98
|
+
});
|
|
99
|
+
app.post("/task-follow-ups/preflight", deps.strictRateLimitMiddleware, async (c) => {
|
|
100
|
+
if (!deps.scenes.followUps) return c.json({ error: "task_follow_up_unavailable" }, 503);
|
|
101
|
+
return c.json(await deps.scenes.followUps.preflight(principal(c), await c.req.json()));
|
|
102
|
+
});
|
|
103
|
+
app.post("/task-follow-ups", deps.strictRateLimitMiddleware, async (c) => {
|
|
104
|
+
if (!deps.scenes.followUps) return c.json({ error: "task_follow_up_unavailable" }, 503);
|
|
105
|
+
return c.json(await deps.scenes.followUps.create(principal(c), await c.req.json()), 201);
|
|
106
|
+
});
|
|
107
|
+
app.get("/task-follow-ups/:id", (c) => {
|
|
108
|
+
if (!deps.scenes.followUps) return c.json({ error: "task_follow_up_unavailable" }, 503);
|
|
109
|
+
return c.json(deps.scenes.followUps.get(principal(c), c.req.param("id")));
|
|
110
|
+
});
|
|
111
|
+
app.patch("/task-follow-ups/:id", deps.strictRateLimitMiddleware, async (c) => {
|
|
112
|
+
const input = z.union([z.strictObject({
|
|
113
|
+
expectedRevision: z.number().int().positive(),
|
|
114
|
+
status: z.enum([
|
|
115
|
+
"active",
|
|
116
|
+
"paused",
|
|
117
|
+
"archived"
|
|
118
|
+
])
|
|
119
|
+
}), z.strictObject({
|
|
120
|
+
expectedRevision: z.number().int().positive(),
|
|
121
|
+
configuration: z.unknown()
|
|
122
|
+
})]).parse(await c.req.json());
|
|
123
|
+
if (!deps.scenes.followUps) return c.json({ error: "task_follow_up_unavailable" }, 503);
|
|
124
|
+
if ("configuration" in input) return c.json(await deps.scenes.followUps.configure(principal(c), c.req.param("id"), input.expectedRevision, input.configuration));
|
|
125
|
+
return c.json(await deps.scenes.followUps.transition(principal(c), c.req.param("id"), input.expectedRevision, input.status));
|
|
126
|
+
});
|
|
44
127
|
app.post("/browser/prepare", deps.strictRateLimitMiddleware, (c) => c.json(deps.scenes.browser.prepare()));
|
|
45
128
|
app.post("/browser/subscriptions", deps.strictRateLimitMiddleware, async (c) => c.json(deps.scenes.browser.register(principal(c), await c.req.json()), 201));
|
|
46
129
|
app.delete("/browser/subscriptions/:id", deps.strictRateLimitMiddleware, (c) => {
|
|
47
130
|
deps.scenes.browser.remove(principal(c), c.req.param("id"));
|
|
48
131
|
return c.json({ ok: true });
|
|
49
132
|
});
|
|
50
|
-
app.get("/preferences", (c) => c.json(
|
|
51
|
-
app.patch("/preferences", deps.strictRateLimitMiddleware, async (c) => c.json(
|
|
133
|
+
app.get("/preferences", async (c) => c.json(await read(c, "xopc.scenes.get_preferences", {})));
|
|
134
|
+
app.patch("/preferences", deps.strictRateLimitMiddleware, async (c) => c.json(await write(c, "xopc.scenes.set_preferences", await c.req.json())));
|
|
52
135
|
app.post("/presence", deps.strictRateLimitMiddleware, async (c) => {
|
|
53
136
|
deps.scenes.preferences.recordPresence(principal(c), await c.req.json());
|
|
54
137
|
return c.json({ ok: true });
|
|
55
138
|
});
|
|
56
|
-
app.get("/templates", (c) => c.json(
|
|
57
|
-
app.get("/diagnostics", (c) => c.json(
|
|
58
|
-
app.get("/metrics", (c) => {
|
|
59
|
-
|
|
60
|
-
|
|
139
|
+
app.get("/templates", async (c) => c.json(await read(c, "xopc.scenes.templates", {})));
|
|
140
|
+
app.get("/diagnostics", async (c) => c.json(await read(c, "xopc.scenes.diagnostics", {})));
|
|
141
|
+
app.get("/metrics", async (c) => {
|
|
142
|
+
return c.json(await read(c, "xopc.scenes.metrics", {
|
|
143
|
+
...c.req.query(),
|
|
144
|
+
...c.req.query("days") === void 0 ? {} : { days: Number(c.req.query("days")) }
|
|
145
|
+
}));
|
|
61
146
|
});
|
|
62
|
-
app.get("/sources/mail/accounts", (c) => c.json(
|
|
147
|
+
app.get("/sources/mail/accounts", async (c) => c.json(await read(c, "xopc.scenes.mail_accounts", {})));
|
|
63
148
|
app.post("/sources/mail/search", deps.strictRateLimitMiddleware, async (c) => {
|
|
64
149
|
if (!deps.scenes.mailDiscovery) return c.json({ error: "mail_search_unavailable" }, 503);
|
|
65
150
|
const signal = AbortSignal.any([c.req.raw.signal, AbortSignal.timeout(15e3)]);
|
|
66
151
|
return c.json({ sources: await deps.scenes.mailDiscovery.searchSources(principal(c), await c.req.json(), signal) });
|
|
67
152
|
});
|
|
68
|
-
app.get("/sources/mail", (c) => {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
app.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
});
|
|
153
|
+
app.get("/sources/mail", async (c) => {
|
|
154
|
+
return c.json(await read(c, "xopc.scenes.mail_sources", {
|
|
155
|
+
...c.req.query(),
|
|
156
|
+
...c.req.query("limit") === void 0 ? {} : { limit: Number(c.req.query("limit")) }
|
|
157
|
+
}));
|
|
158
|
+
});
|
|
159
|
+
app.get("/templates/:key/versions/:version", async (c) => c.json(await read(c, "xopc.scenes.get_template", {
|
|
160
|
+
key: c.req.param("key"),
|
|
161
|
+
version: c.req.param("version")
|
|
162
|
+
})));
|
|
163
|
+
app.post("/preflight", deps.strictRateLimitMiddleware, async (c) => c.json(await read(c, "xopc.scenes.preflight", await c.req.json())));
|
|
164
|
+
app.get("/activations", async (c) => {
|
|
165
|
+
return c.json(await read(c, "xopc.scenes.list", {
|
|
166
|
+
...c.req.query(),
|
|
167
|
+
...c.req.query("limit") === void 0 ? {} : { limit: Number(c.req.query("limit")) }
|
|
168
|
+
}));
|
|
85
169
|
});
|
|
86
170
|
app.post("/activations", deps.strictRateLimitMiddleware, async (c) => {
|
|
87
|
-
|
|
88
|
-
return c.json(
|
|
171
|
+
requestIdentity.parse(c.req.header("Idempotency-Key"));
|
|
172
|
+
return c.json(await write(c, "xopc.scenes.start", await c.req.json()), 201);
|
|
89
173
|
});
|
|
90
|
-
app.get("/activations/:id", (c) =>
|
|
91
|
-
|
|
92
|
-
const body = await c.req.json();
|
|
93
|
-
const activation = typeof body === "object" && body !== null && Object.hasOwn(body, "status") ? await deps.scenes.application.transition(principal(c), c.req.param("id"), body) : deps.scenes.application.configure(principal(c), c.req.param("id"), body);
|
|
174
|
+
app.get("/activations/:id", async (c) => {
|
|
175
|
+
const { activation } = ProductReadContracts["xopc.scenes.get"].output.parse(await read(c, "xopc.scenes.get", { id: c.req.param("id") }));
|
|
94
176
|
return c.json({ activation });
|
|
95
177
|
});
|
|
96
|
-
app.
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
app.
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
app.patch("/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
178
|
+
app.patch("/activations/:id", deps.strictRateLimitMiddleware, async (c) => {
|
|
179
|
+
const body = await c.req.json();
|
|
180
|
+
if (!(typeof body === "object" && body !== null && Object.hasOwn(body, "status"))) return c.json(await write(c, "xopc.scenes.configure", {
|
|
181
|
+
...body,
|
|
182
|
+
id: c.req.param("id")
|
|
183
|
+
}));
|
|
184
|
+
return c.json(await write(c, "xopc.scenes.transition", {
|
|
185
|
+
...body,
|
|
186
|
+
id: c.req.param("id")
|
|
187
|
+
}));
|
|
188
|
+
});
|
|
189
|
+
app.post("/activations/:id/checks", deps.strictRateLimitMiddleware, async (c) => {
|
|
190
|
+
requestIdentity.parse(c.req.header("Idempotency-Key"));
|
|
191
|
+
return c.json(await write(c, "xopc.scenes.check", { id: c.req.param("id") }), 202);
|
|
192
|
+
});
|
|
193
|
+
app.get("/activations/:id/runs", async (c) => {
|
|
194
|
+
return c.json(await read(c, "xopc.scenes.list_runs", {
|
|
195
|
+
...c.req.query(),
|
|
196
|
+
id: c.req.param("id"),
|
|
197
|
+
...c.req.query("limit") === void 0 ? {} : { limit: Number(c.req.query("limit")) }
|
|
198
|
+
}));
|
|
199
|
+
});
|
|
200
|
+
app.patch("/activations/:id/notes", deps.strictRateLimitMiddleware, async (c) => c.json(await write(c, "xopc.scenes.notes", {
|
|
201
|
+
...await c.req.json(),
|
|
202
|
+
id: c.req.param("id")
|
|
203
|
+
})));
|
|
204
|
+
app.get("/activations/:id/notes", async (c) => c.json(await read(c, "xopc.scenes.read_notes", { id: c.req.param("id") })));
|
|
205
|
+
app.get("/activations/:id/work-items", async (c) => {
|
|
206
|
+
return c.json(await read(c, "xopc.scenes.list_work_items", {
|
|
207
|
+
...c.req.query(),
|
|
208
|
+
id: c.req.param("id"),
|
|
209
|
+
...c.req.query("limit") === void 0 ? {} : { limit: Number(c.req.query("limit")) }
|
|
210
|
+
}));
|
|
211
|
+
});
|
|
212
|
+
app.post("/activations/:id/work-items", deps.strictRateLimitMiddleware, async (c) => c.json(await write(c, "xopc.scenes.work_item", {
|
|
213
|
+
...await c.req.json(),
|
|
214
|
+
id: c.req.param("id")
|
|
215
|
+
}), 201));
|
|
216
|
+
app.get("/activations/:id/schedules", async (c) => c.json(await read(c, "xopc.scenes.list_schedules", { id: c.req.param("id") })));
|
|
217
|
+
app.patch("/activations/:id/schedules/:triggerKey", deps.strictRateLimitMiddleware, async (c) => c.json(await write(c, "xopc.scenes.schedule", {
|
|
218
|
+
...await c.req.json(),
|
|
219
|
+
id: c.req.param("id"),
|
|
220
|
+
triggerKey: c.req.param("triggerKey")
|
|
221
|
+
})));
|
|
222
|
+
app.patch("/work-items/:id", deps.strictRateLimitMiddleware, async (c) => c.json(await write(c, "xopc.scenes.update_work_item", {
|
|
223
|
+
...await c.req.json(),
|
|
224
|
+
id: c.req.param("id")
|
|
225
|
+
})));
|
|
226
|
+
app.get("/outcomes", async (c) => {
|
|
227
|
+
return c.json(await read(c, "xopc.scenes.results", {
|
|
228
|
+
...c.req.query(),
|
|
229
|
+
...c.req.query("limit") === void 0 ? {} : { limit: Number(c.req.query("limit")) }
|
|
230
|
+
}));
|
|
231
|
+
});
|
|
232
|
+
app.get("/digests/:id", async (c) => {
|
|
233
|
+
return c.json(await read(c, "xopc.scenes.digest_results", {
|
|
234
|
+
...c.req.query(),
|
|
235
|
+
id: c.req.param("id"),
|
|
236
|
+
...c.req.query("limit") === void 0 ? {} : { limit: Number(c.req.query("limit")) }
|
|
237
|
+
}));
|
|
238
|
+
});
|
|
239
|
+
app.get("/presentations/:id/feedback", async (c) => c.json(await read(c, "xopc.scenes.get_feedback", { id: c.req.param("id") })));
|
|
240
|
+
app.get("/presentations/:id", async (c) => c.json(await read(c, "xopc.scenes.get_presentation", { id: c.req.param("id") })));
|
|
241
|
+
app.post("/presentations/:id/feedback", deps.strictRateLimitMiddleware, async (c) => c.json(await write(c, "xopc.scenes.feedback", {
|
|
242
|
+
...await c.req.json(),
|
|
243
|
+
id: c.req.param("id")
|
|
244
|
+
})));
|
|
134
245
|
app.patch("/presentations/:id", deps.strictRateLimitMiddleware, async (c) => {
|
|
135
|
-
|
|
136
|
-
|
|
246
|
+
await write(c, "xopc.scenes.mark_read", {
|
|
247
|
+
...await c.req.json(),
|
|
248
|
+
id: c.req.param("id")
|
|
249
|
+
});
|
|
137
250
|
return c.json({ ok: true });
|
|
138
251
|
});
|
|
139
252
|
authenticated.route("/api/scenes", app);
|
|
@@ -8,31 +8,19 @@ export declare function submitSessionInput(c: Context, deps: AuthenticatedRouteD
|
|
|
8
8
|
code: string;
|
|
9
9
|
message: string;
|
|
10
10
|
};
|
|
11
|
-
}, 400, "json">) | (Response & import("hono").TypedResponse<{
|
|
12
|
-
ok: false;
|
|
13
|
-
error: {
|
|
14
|
-
code: string;
|
|
15
|
-
message: string;
|
|
16
|
-
};
|
|
17
11
|
}, 401, "json">) | (Response & import("hono").TypedResponse<{
|
|
18
12
|
ok: false;
|
|
19
13
|
error: {
|
|
20
14
|
code: string;
|
|
21
15
|
message: string;
|
|
22
16
|
};
|
|
23
|
-
},
|
|
17
|
+
}, 503, "json">) | (Response & import("hono").TypedResponse<{
|
|
24
18
|
ok: false;
|
|
25
19
|
error: {
|
|
26
20
|
code: string;
|
|
27
21
|
message: string;
|
|
28
22
|
};
|
|
29
|
-
}, 409, "json">) | (Response & import("hono").TypedResponse<{
|
|
30
|
-
ok: false;
|
|
31
|
-
error: {
|
|
32
|
-
code: "SESSION_CHANGED" | "BAD_REQUEST" | "QUEUE_FULL" | "CONTEXT_UNAVAILABLE";
|
|
33
|
-
message: string;
|
|
34
|
-
};
|
|
35
|
-
}, 400 | 409, "json">) | (Response & import("hono").TypedResponse<{
|
|
23
|
+
}, 403 | 400 | 409, "json">) | (Response & import("hono").TypedResponse<{
|
|
36
24
|
ok: true;
|
|
37
25
|
payload: {
|
|
38
26
|
conversationId: string;
|
|
@@ -76,7 +64,7 @@ export declare function submitSessionInput(c: Context, deps: AuthenticatedRouteD
|
|
|
76
64
|
documentId?: string;
|
|
77
65
|
}[];
|
|
78
66
|
contextSnapshots?: {
|
|
79
|
-
kind: import("../../../agent/source-context/types.js").SessionSourceBinding["kind"] | "task" | "browser_page";
|
|
67
|
+
kind: import("../../../agent/source-context/types.js").SessionSourceBinding["kind"] | "task" | "browser_page" | "app_context";
|
|
80
68
|
sourceId: string;
|
|
81
69
|
version: string;
|
|
82
70
|
title: string;
|
|
@@ -91,6 +79,34 @@ export declare function submitSessionInput(c: Context, deps: AuthenticatedRouteD
|
|
|
91
79
|
url?: string;
|
|
92
80
|
capturedAt?: number;
|
|
93
81
|
documentId?: string;
|
|
82
|
+
appContext?: {
|
|
83
|
+
version: 1;
|
|
84
|
+
clientInstanceId: string;
|
|
85
|
+
tabId: string;
|
|
86
|
+
sequence: number;
|
|
87
|
+
surface: "electron" | "web" | "mobile";
|
|
88
|
+
resourceRefs: {
|
|
89
|
+
kind: "project" | "note" | "task" | "scene" | "local_app";
|
|
90
|
+
id: string;
|
|
91
|
+
revision: string;
|
|
92
|
+
}[];
|
|
93
|
+
capturedAt: number;
|
|
94
|
+
selection?: {
|
|
95
|
+
text: string;
|
|
96
|
+
draft: boolean;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
appContextGrant?: {
|
|
100
|
+
principal: {
|
|
101
|
+
kind: "owner" | "device" | "trusted-proxy";
|
|
102
|
+
principalId: string;
|
|
103
|
+
deviceId?: string;
|
|
104
|
+
accessSessionId?: string;
|
|
105
|
+
browserSessionId?: string;
|
|
106
|
+
scopes: readonly import("@xopcai/gateway-contract").GatewayScope[];
|
|
107
|
+
};
|
|
108
|
+
authRevision: string;
|
|
109
|
+
};
|
|
94
110
|
}[];
|
|
95
111
|
thinking?: string;
|
|
96
112
|
origin: {
|
|
@@ -182,7 +198,7 @@ export declare function replaceLatestSessionTurn(c: Context, deps: Authenticated
|
|
|
182
198
|
documentId?: string;
|
|
183
199
|
}[];
|
|
184
200
|
contextSnapshots?: {
|
|
185
|
-
kind: import("../../../agent/source-context/types.js").SessionSourceBinding["kind"] | "task" | "browser_page";
|
|
201
|
+
kind: import("../../../agent/source-context/types.js").SessionSourceBinding["kind"] | "task" | "browser_page" | "app_context";
|
|
186
202
|
sourceId: string;
|
|
187
203
|
version: string;
|
|
188
204
|
title: string;
|
|
@@ -197,6 +213,34 @@ export declare function replaceLatestSessionTurn(c: Context, deps: Authenticated
|
|
|
197
213
|
url?: string;
|
|
198
214
|
capturedAt?: number;
|
|
199
215
|
documentId?: string;
|
|
216
|
+
appContext?: {
|
|
217
|
+
version: 1;
|
|
218
|
+
clientInstanceId: string;
|
|
219
|
+
tabId: string;
|
|
220
|
+
sequence: number;
|
|
221
|
+
surface: "electron" | "web" | "mobile";
|
|
222
|
+
resourceRefs: {
|
|
223
|
+
kind: "project" | "note" | "task" | "scene" | "local_app";
|
|
224
|
+
id: string;
|
|
225
|
+
revision: string;
|
|
226
|
+
}[];
|
|
227
|
+
capturedAt: number;
|
|
228
|
+
selection?: {
|
|
229
|
+
text: string;
|
|
230
|
+
draft: boolean;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
appContextGrant?: {
|
|
234
|
+
principal: {
|
|
235
|
+
kind: "owner" | "device" | "trusted-proxy";
|
|
236
|
+
principalId: string;
|
|
237
|
+
deviceId?: string;
|
|
238
|
+
accessSessionId?: string;
|
|
239
|
+
browserSessionId?: string;
|
|
240
|
+
scopes: readonly import("@xopcai/gateway-contract").GatewayScope[];
|
|
241
|
+
};
|
|
242
|
+
authRevision: string;
|
|
243
|
+
};
|
|
200
244
|
}[];
|
|
201
245
|
thinking?: string;
|
|
202
246
|
origin: {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
import { createLogger } from "../../../utils/logger/index.js";
|
|
2
|
+
import { init_logger } from "../../../utils/logger.js";
|
|
1
3
|
import { browserPageContextsInputSchema } from "../../../../packages/gateway-contract/src/browser-page-context.js";
|
|
2
4
|
import { init_src } from "../../../../packages/gateway-contract/src/index.js";
|
|
3
5
|
import { endpointTurnClaimSchema, init_src as init_src$1 } from "../../../../packages/endpoint-tools-protocol/src/index.js";
|
|
4
6
|
import { init_providers, resolveModel } from "../../../providers/index.js";
|
|
7
|
+
import { CapabilityError } from "../../../capabilities/runtime/errors.js";
|
|
8
|
+
import "../../../capabilities/runtime/dispatcher.js";
|
|
5
9
|
import { validateWebchatAttachments, validateWebchatContent } from "../../chat-limits.js";
|
|
6
10
|
import { isTaskDestructiveCommand } from "../../../session/reset-triggers.js";
|
|
7
11
|
import { parseSlashCommand } from "../../../chat-commands/command-parse.js";
|
|
@@ -11,12 +15,15 @@ import { isVoiceLikeAttachment } from "../../../channels/attachments/voice-stt-w
|
|
|
11
15
|
import { parseTurnContextRefs } from "../../../agent/source-context/types.js";
|
|
12
16
|
import { getModelThinking } from "../../../providers/model-thinking.js";
|
|
13
17
|
import { withModelConfigLock } from "../../../session/model-config-lock.js";
|
|
18
|
+
import { getGatewayPrincipal } from "../../security/gateway-principal.js";
|
|
14
19
|
import { browserPageContextToAgentContext } from "../../../agent/source-context/browser-page.js";
|
|
15
20
|
//#region src/gateway/hono/routes/session-input-handler.ts
|
|
16
21
|
init_src();
|
|
17
22
|
init_src$1();
|
|
18
23
|
init_providers();
|
|
24
|
+
init_logger();
|
|
19
25
|
const MAX_TURN_CONTEXTS = 5;
|
|
26
|
+
const log = createLogger("Gateway:SessionInput");
|
|
20
27
|
async function submitSessionInput(c, deps, conversationId, options) {
|
|
21
28
|
const body = await c.req.json().catch(() => null);
|
|
22
29
|
if (!body || !conversationId) return c.json({
|
|
@@ -147,6 +154,34 @@ async function submitSessionInput(c, deps, conversationId, options) {
|
|
|
147
154
|
}, 409);
|
|
148
155
|
}
|
|
149
156
|
}
|
|
157
|
+
const sourceContexts = browserContexts.data.map(browserPageContextToAgentContext);
|
|
158
|
+
if (body.appContext !== void 0) try {
|
|
159
|
+
sourceContexts.push(await deps.service.prepareSessionAppContext(body.appContext, getGatewayPrincipal(c), conversationId, typeof body.clientMessageId === "string" ? body.clientMessageId.trim() : ""));
|
|
160
|
+
} catch (error) {
|
|
161
|
+
if (!(error instanceof CapabilityError) || ["INTERNAL", "UNAVAILABLE"].includes(error.code)) {
|
|
162
|
+
log.warn({
|
|
163
|
+
err: error,
|
|
164
|
+
conversationId,
|
|
165
|
+
phase: "prepare_app_context"
|
|
166
|
+
}, "Application context preparation failed");
|
|
167
|
+
return c.json({
|
|
168
|
+
ok: false,
|
|
169
|
+
error: {
|
|
170
|
+
code: "UNAVAILABLE",
|
|
171
|
+
message: "Application context preparation failed. Retry the same input."
|
|
172
|
+
}
|
|
173
|
+
}, 503);
|
|
174
|
+
}
|
|
175
|
+
const forbidden = error instanceof CapabilityError && error.code === "FORBIDDEN";
|
|
176
|
+
const invalid = error.code === "INVALID_INPUT";
|
|
177
|
+
return c.json({
|
|
178
|
+
ok: false,
|
|
179
|
+
error: {
|
|
180
|
+
code: forbidden ? "FORBIDDEN" : invalid ? "BAD_REQUEST" : "CONTEXT_UNAVAILABLE",
|
|
181
|
+
message: "Application context is invalid, changed, or no longer accessible. Capture it again."
|
|
182
|
+
}
|
|
183
|
+
}, forbidden ? 403 : invalid ? 400 : 409);
|
|
184
|
+
}
|
|
150
185
|
const result = await deps.service.submitSessionInput({
|
|
151
186
|
expectedTranscriptId: body.expectedTranscriptId,
|
|
152
187
|
conversationId,
|
|
@@ -155,7 +190,7 @@ async function submitSessionInput(c, deps, conversationId, options) {
|
|
|
155
190
|
content,
|
|
156
191
|
attachments,
|
|
157
192
|
contextRefs,
|
|
158
|
-
sourceContexts
|
|
193
|
+
sourceContexts,
|
|
159
194
|
thinking: selection?.thinkingLevel ?? (typeof body.thinking === "string" ? body.thinking : void 0),
|
|
160
195
|
origin: {
|
|
161
196
|
type: "endpoint",
|
|
@@ -187,6 +222,13 @@ async function replaceLatestSessionTurn(c, deps, conversationId, targetTurnId) {
|
|
|
187
222
|
message: "Invalid request"
|
|
188
223
|
}
|
|
189
224
|
}, 400);
|
|
225
|
+
if (body.appContext !== void 0) return c.json({
|
|
226
|
+
ok: false,
|
|
227
|
+
error: {
|
|
228
|
+
code: "BAD_REQUEST",
|
|
229
|
+
message: "Send application context in a new input; turn replacement does not support it."
|
|
230
|
+
}
|
|
231
|
+
}, 400);
|
|
190
232
|
const attachments = Array.isArray(body.attachments) ? body.attachments : void 0;
|
|
191
233
|
const contextRefs = parseTurnContextRefs(body.contextRefs, MAX_TURN_CONTEXTS);
|
|
192
234
|
if (contextRefs === null) return c.json({
|
|
@@ -578,6 +578,23 @@ function registerSessionsRoutes(authenticated, deps) {
|
|
|
578
578
|
items
|
|
579
579
|
});
|
|
580
580
|
});
|
|
581
|
+
authenticated.get("/api/sessions/:key/find", async (c) => {
|
|
582
|
+
const blocked = ensureGatewayReadyForSessions(c, service, "sessions.history");
|
|
583
|
+
if (blocked) return blocked;
|
|
584
|
+
const query = c.req.query("q")?.trim() ?? "";
|
|
585
|
+
if (!query || query.length > 256) return c.json({
|
|
586
|
+
ok: false,
|
|
587
|
+
error: "q must contain 1 to 256 characters"
|
|
588
|
+
}, 400);
|
|
589
|
+
const result = await service.sessions.findMessages(c.req.param("key"), query, parsePositiveInt(c.req.query("limit"), 1e3, 1e3));
|
|
590
|
+
return result ? c.json({
|
|
591
|
+
ok: true,
|
|
592
|
+
...result
|
|
593
|
+
}) : c.json({
|
|
594
|
+
ok: false,
|
|
595
|
+
error: "Session not found"
|
|
596
|
+
}, 404);
|
|
597
|
+
});
|
|
581
598
|
authenticated.get("/api/sessions/:key/transcript/window", async (c) => {
|
|
582
599
|
const blocked = ensureGatewayReadyForSessions(c, service, "sessions.history");
|
|
583
600
|
if (blocked) return blocked;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getDefaultModelSync, init_providers, resolveModel } from "../../../providers/index.js";
|
|
2
|
-
import { getGatewayAgentEffectiveConfig } from "../../agents-admin.js";
|
|
3
2
|
import { isSTTAvailable } from "../../../voice/stt/availability.js";
|
|
4
3
|
import { mergeSttConfigFromAppConfig } from "../../../voice/stt/config.js";
|
|
5
4
|
import "../../../voice/stt/index.js";
|
|
5
|
+
import { getGatewayAgentEffectiveConfig } from "../../agents-admin.js";
|
|
6
6
|
import { createHash } from "node:crypto";
|
|
7
7
|
//#region src/gateway/hono/routes/status.ts
|
|
8
8
|
init_providers();
|