@xopcai/xopc 0.0.248 → 0.0.249
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-etpmyV7S.js → activity-store-B759R_qf.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-BmKxSM1k.js → agent-avatar-dicebear-BUu7EnwM.js} +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-C1rXNUAG.js +1 -0
- package/dist/gateway/static/root/assets/agents-DK9HjHO0.js +1 -0
- package/dist/gateway/static/root/assets/{api-B0-hLuZ1.js → api-Cg0v7Lpn.js} +1 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-C9DkCW_d.js +1 -0
- package/dist/gateway/static/root/assets/appearance-settings-CFggS95Y.js +1 -0
- package/dist/gateway/static/root/assets/apps-page-jOvT-fzU.js +1 -0
- package/dist/gateway/static/root/assets/{archive-plugin-BnMSgZvR.js → archive-plugin-BQrilVVv.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-CejsQMev.js → attachment-load-BG0BliqV.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-RC8EyoAf.js → automations-page-Bo4RiTkh.js} +1 -1
- package/dist/gateway/static/root/assets/automations-workspace-BKjKTlW8.js +6 -0
- package/dist/gateway/static/root/assets/{binary-plugins-DGjppLSG.js → binary-plugins-BCnyNU0C.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-CWdP4bUc.js → block-editor-Db8DlVvg.js} +50 -50
- package/dist/gateway/static/root/assets/browser-settings-page-Dzq18pO1.js +8 -0
- package/dist/gateway/static/root/assets/{browser-workflow-inputs-BQ1Ilw_o.js → browser-workflow-inputs-C71vfl0b.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-workflows-page-CJh4NyxT.js → browser-workflows-page-vvmSYKsO.js} +2 -2
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DW4SBQf4.js +7 -0
- package/dist/gateway/static/root/assets/channels-settings-57OGuewD.js +1 -0
- package/dist/gateway/static/root/assets/{channels-status-swr-Ohhee4vm.js → channels-status-swr-CKyV3jY5.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-BOtoKTK3.js → chat-terminal-dock-B1Xd6OFB.js} +2 -2
- package/dist/gateway/static/root/assets/connectors-page-CT_I3kbR.js +2 -0
- package/dist/gateway/static/root/assets/{cron-expression-DTj1V3Sw.js → cron-expression-D-F9vjtE.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-Yr6OCvGL.js → date-picker-B2OoYvic.js} +1 -1
- package/dist/gateway/static/root/assets/dependency-picker-BiGx9Sbj.js +1 -0
- package/dist/gateway/static/root/assets/{desktop-pet-DbGzggPF.js → desktop-pet-BNMRqipe.js} +1 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-DeYbIV7A.js +1 -0
- package/dist/gateway/static/root/assets/{extension-debug-page-DgTtk4KC.js → extension-debug-page-COyn05ub.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-DtQeiP6f.js → extension-page-oH43chS2.js} +1 -1
- package/dist/gateway/static/root/assets/extension-settings-page-BMO59994.js +1 -0
- package/dist/gateway/static/root/assets/gateway-config-api-cimpViGk.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-config-swr-DXuXtU1w.js → gateway-config-swr-BGdHwT4e.js} +1 -1
- package/dist/gateway/static/root/assets/gateway-settings-BHJtnSic.js +1 -0
- package/dist/gateway/static/root/assets/{gateway-startup-retry-CzBzglzQ.js → gateway-startup-retry-CuaM3b4c.js} +1 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-DNhrZHqx.js +1 -0
- package/dist/gateway/static/root/assets/home-page-BiHwiBnQ.js +1 -0
- package/dist/gateway/static/root/assets/{image-generation-api-TIgsn04n.js → image-generation-api-D7duj7Uj.js} +1 -1
- package/dist/gateway/static/root/assets/index-DGeGmj4k.css +2 -0
- package/dist/gateway/static/root/assets/index-aBs0EfQB.js +72 -0
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-wsWuoa8p.js → keyboard-shortcuts-settings-D8Zw_lYd.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page-CpyvYyrb.js → local-app-workbench-page-eBFVWmtH.js} +2 -2
- package/dist/gateway/static/root/assets/{local-apps-page-CXrbrGo8.js → local-apps-page-CvPDPRwb.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-BJFLQY8O.js → locale-store-zEL8bkwx.js} +1 -1
- package/dist/gateway/static/root/assets/logs-page-ClvcWlL6.js +2 -0
- package/dist/gateway/static/root/assets/{management-settings-BdJZFR7U.js → management-settings-D8moh99U.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-split-NK3ACVG2.js → markdown-split-D7V3j0vE.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-DTF9v1gg.js → markdown-view-DGRN-8wP.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-F0jcUxyl.js → media-plugins-BLaE5b1Y.js} +1 -1
- package/dist/gateway/static/root/assets/messages-W5P19VTF.js +11 -0
- package/dist/gateway/static/root/assets/mobile-pairing-wizard-DiVDuCxl.js +1 -0
- package/dist/gateway/static/root/assets/note-detail-panel-CEEvR-fV.js +5 -0
- package/dist/gateway/static/root/assets/notes-page-BLqgXNCx.js +8 -0
- package/dist/gateway/static/root/assets/page-tabs-BFMGjA60.js +1 -0
- package/dist/gateway/static/root/assets/preview-open-alternatives-DNEWZN7H.js +1 -0
- package/dist/gateway/static/root/assets/{product-open-page-CxGGlWA8.js → product-open-page-Co5u7asH.js} +1 -1
- package/dist/gateway/static/root/assets/project-detail-page-CIiFJ5tk.js +1 -0
- package/dist/gateway/static/root/assets/projects-page-B3UF-Pfm.js +1 -0
- package/dist/gateway/static/root/assets/{registry-api-CIsNlSBi.js → registry-api-Cg92zSod.js} +1 -1
- package/dist/gateway/static/root/assets/remote-access-hub-BUtpkJPG.js +1 -0
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-YkjhiQfA.js → runtime-tools-settings-panel-C0ByNmlV.js} +2 -2
- package/dist/gateway/static/root/assets/{schema-form-oFGf3G3s.js → schema-form-Dq_VQpuY.js} +1 -1
- package/dist/gateway/static/root/assets/sessions-page-UgJmG-V4.js +1 -0
- package/dist/gateway/static/root/assets/settings-advanced-gate-DDCzpdkl.js +1 -0
- package/dist/gateway/static/root/assets/settings-form-section-CZu6FX4k.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-C7VWs0IT.js → settings-page-S8ekeUZd.js} +1 -1
- package/dist/gateway/static/root/assets/setup-status-panel-BdVmwXMv.js +1 -0
- package/dist/gateway/static/root/assets/{share-preview-page-t5oz18rh.js → share-preview-page-D2fEidbn.js} +1 -1
- package/dist/gateway/static/root/assets/shares-settings-BdsqnCYj.js +1 -0
- package/dist/gateway/static/root/assets/skill-reload-api-ghzAQKna.js +1 -0
- package/dist/gateway/static/root/assets/skills-page-AYiPlgZE.js +2 -0
- package/dist/gateway/static/root/assets/{skills-page.utils-DEDTYs2W.js → skills-page.utils-DGzl-ib-.js} +1 -1
- package/dist/gateway/static/root/assets/system-settings-panel-5Xd5mIiR.js +1 -0
- package/dist/gateway/static/root/assets/task-detail-page-BQAUaCDD.js +1 -0
- package/dist/gateway/static/root/assets/{theme-store-O597U8q_.js → theme-store-ZVClZKQ0.js} +1 -1
- package/dist/gateway/static/root/assets/tunnel-api-CdZN1Jin.js +1 -0
- package/dist/gateway/static/root/assets/{use-autosave-B5eUJ6Zq.js → use-autosave-czRI0NBc.js} +1 -1
- package/dist/gateway/static/root/assets/user-model-page-W3GTm6nA.js +2 -0
- package/dist/gateway/static/root/assets/{voice-api-key-field-CMKSwz4C.js → voice-api-key-field-8YEvA3cU.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-q7B6fOFB.js → voice-config-api-CopF64lY.js} +1 -1
- package/dist/gateway/static/root/assets/work-discovery-overlay-keLtqYYJ.js +1 -0
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-DZmvLZjb.js → workflow-run-setup-panel-Dy5WgYMO.js} +2 -2
- package/dist/gateway/static/root/assets/workflows-page-BbAV3h7n.js +5 -0
- package/dist/gateway/static/root/index.html +10 -26
- 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 +4 -4
- package/dist/src/agent/agent-manager.js +31 -15
- package/dist/src/agent/background-review/coordinator.d.ts +2 -4
- package/dist/src/agent/background-review/coordinator.js +5 -30
- package/dist/src/agent/background-review/prompts.d.ts +4 -2
- package/dist/src/agent/background-review/prompts.js +24 -19
- package/dist/src/agent/background-review/run-background-review.d.ts +6 -7
- package/dist/src/agent/background-review/run-background-review.js +47 -41
- package/dist/src/agent/background-review/settings.d.ts +0 -1
- package/dist/src/agent/background-review/settings.js +6 -7
- package/dist/src/agent/context/audit.d.ts +36 -0
- package/dist/src/agent/context/audit.js +97 -0
- package/dist/src/agent/context/coordinator.d.ts +26 -0
- package/dist/src/agent/context/coordinator.js +72 -0
- package/dist/src/agent/context/execution-context.d.ts +54 -0
- package/dist/src/agent/context/execution-context.js +147 -0
- package/dist/src/agent/context/execution-scope.js +1 -1
- package/dist/src/agent/context/prepend.d.ts +2 -0
- package/dist/src/agent/context/prepend.js +28 -0
- package/dist/src/agent/context/project-context.d.ts +3 -3
- package/dist/src/agent/context/project-context.js +26 -23
- package/dist/src/agent/embedded/index.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +1 -0
- package/dist/src/agent/embedded/run-turn.js +22 -2
- package/dist/src/agent/embedded/types.d.ts +1 -25
- package/dist/src/agent/external-tools/composio-provider.js +87 -92
- package/dist/src/agent/external-tools/gateway-tools.d.ts +4 -1
- package/dist/src/agent/external-tools/gateway-tools.js +153 -41
- package/dist/src/agent/external-tools/index.js +1 -1
- package/dist/src/agent/external-tools/search-error.d.ts +12 -0
- package/dist/src/agent/external-tools/search-error.js +29 -0
- package/dist/src/agent/external-tools/service.d.ts +4 -0
- package/dist/src/agent/external-tools/service.js +22 -2
- package/dist/src/agent/memory/compaction-policy.js +1 -1
- package/dist/src/agent/memory/compaction-promotion.js +45 -77
- package/dist/src/agent/memory/create-memory-manager.js +1 -3
- package/dist/src/agent/memory/index.d.ts +0 -5
- package/dist/src/agent/memory/index.js +2 -5
- package/dist/src/agent/memory/manager.d.ts +0 -16
- package/dist/src/agent/memory/manager.js +11 -40
- package/dist/src/agent/memory/memory-config.js +1 -1
- package/dist/src/agent/memory/runtime.d.ts +2 -2
- package/dist/src/agent/memory/runtime.js +9 -19
- package/dist/src/agent/memory/types.d.ts +1 -1
- package/dist/src/agent/orchestration/agent-orchestrator.js +13 -21
- package/dist/src/agent/prompt/sections/memory-skills.js +25 -36
- package/dist/src/agent/prompt/sections/tooling.js +10 -4
- package/dist/src/agent/prompt/service-prompt-builder.js +4 -3
- package/dist/src/agent/service/direct-turn-helpers.js +6 -23
- package/dist/src/agent/service/process-direct-streaming.js +5 -3
- package/dist/src/agent/service.js +4 -3
- package/dist/src/agent/tasks/task-judge-service.js +1 -1
- package/dist/src/agent/tools/clarify-tool.d.ts +1 -0
- package/dist/src/agent/tools/delegate-tool.js +5 -2
- package/dist/src/agent/tools/factory.js +36 -19
- package/dist/src/agent/tools/index.d.ts +3 -2
- package/dist/src/agent/tools/index.js +4 -3
- package/dist/src/agent/tools/knowledge-memory-tool.d.ts +9 -0
- package/dist/src/agent/tools/knowledge-memory-tool.js +129 -0
- package/dist/src/agent/tools/{dreaming-tool.d.ts → memory-maintenance-tool.d.ts} +2 -2
- package/dist/src/agent/tools/memory-maintenance-tool.js +31 -0
- package/dist/src/agent/tools/user-context-tool.d.ts +8 -0
- package/dist/src/agent/tools/user-context-tool.js +81 -0
- package/dist/src/agent/tools/xopc-use-tool.js +2 -2
- package/dist/src/chat-commands/builtins/understanding.js +24 -6
- package/dist/src/cli/commands/connectors.js +1 -1
- package/dist/src/cli/commands/doctor/checks/database-schema.js +1 -1
- package/dist/src/config/schema.d.ts +68 -75
- package/dist/src/config/schema.js +29 -18
- package/dist/src/config/web-patch.d.ts +1 -1
- package/dist/src/connectors/auth-provider-registry.js +1 -1
- package/dist/src/connectors/composio-managed-client.js +6 -2
- package/dist/src/connectors/connected-source-ingestion.js +1 -1
- package/dist/src/connectors/connected-source-understanding.d.ts +1 -3
- package/dist/src/connectors/connected-source-understanding.js +86 -99
- package/dist/src/connectors/connection-candidates.d.ts +11 -0
- package/dist/src/connectors/connection-candidates.js +58 -0
- package/dist/src/connectors/connection-capabilities.d.ts +4 -0
- package/dist/src/connectors/connection-capabilities.js +37 -0
- package/dist/src/connectors/connection-recovery-service.d.ts +42 -0
- package/dist/src/connectors/connection-recovery-service.js +396 -0
- package/dist/src/connectors/health.js +1 -1
- package/dist/src/connectors/learning-coordinator.d.ts +0 -2
- package/dist/src/connectors/learning-coordinator.js +6 -7
- package/dist/src/connectors/principal.d.ts +5 -0
- package/dist/src/connectors/principal.js +18 -0
- package/dist/src/gateway/agent-builtin-tools.d.ts +28 -10
- package/dist/src/gateway/agent-builtin-tools.js +30 -9
- package/dist/src/gateway/chat-stream/mapper.js +1 -28
- package/dist/src/gateway/chat-stream/protocol.d.ts +2 -24
- package/dist/src/gateway/clarify-bridge.d.ts +4 -0
- package/dist/src/gateway/clarify-bridge.js +9 -4
- package/dist/src/gateway/heartbeat/service.js +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +52 -30
- package/dist/src/gateway/hono/lib/config-payload.js +4 -4
- package/dist/src/gateway/hono/middleware/auth.js +1 -2
- package/dist/src/gateway/hono/routes/capabilities.js +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.d.ts +1 -1
- package/dist/src/gateway/hono/routes/config-patch/misc.js +72 -28
- package/dist/src/gateway/hono/routes/connection-waits.d.ts +3 -0
- package/dist/src/gateway/hono/routes/connection-waits.js +58 -0
- package/dist/src/gateway/hono/routes/connectors.js +7 -15
- package/dist/src/gateway/hono/routes/context-sources.d.ts +4 -0
- package/dist/src/gateway/hono/routes/context-sources.js +159 -0
- package/dist/src/gateway/hono/routes/index.js +4 -2
- package/dist/src/gateway/hono/routes/lazy-bundles.js +9 -4
- package/dist/src/gateway/hono/routes/mcp.js +1 -1
- package/dist/src/gateway/hono/routes/notes.js +22 -7
- package/dist/src/gateway/hono/routes/projects.js +36 -44
- package/dist/src/gateway/hono/routes/session-input-handler.d.ts +15 -1
- package/dist/src/gateway/hono/routes/side-chats.js +13 -2
- package/dist/src/gateway/hono/routes/tasks.js +2 -2
- package/dist/src/gateway/hono/routes/user-model.d.ts +3 -0
- package/dist/src/gateway/hono/routes/user-model.js +480 -0
- package/dist/src/gateway/memory-maintenance-automation-reconciler.d.ts +11 -0
- package/dist/src/gateway/memory-maintenance-automation-reconciler.js +72 -0
- package/dist/src/gateway/service/agent-runner.d.ts +9 -1
- package/dist/src/gateway/service/agent-runner.js +25 -1
- package/dist/src/gateway/service/config-coordinator.d.ts +2 -2
- package/dist/src/gateway/service/config-coordinator.js +4 -4
- package/dist/src/gateway/service/run-gateway-agent.d.ts +1 -0
- package/dist/src/gateway/service/run-gateway-agent.js +18 -14
- package/dist/src/gateway/service/session-input-coordinator.d.ts +3 -0
- package/dist/src/gateway/service/session-input-coordinator.js +12 -2
- package/dist/src/gateway/service.d.ts +3 -1
- package/dist/src/gateway/service.js +45 -14
- package/dist/src/gateway/side-chat/manager.d.ts +16 -3
- package/dist/src/gateway/side-chat/manager.js +117 -28
- package/dist/src/gateway/side-chat/run-service.d.ts +2 -0
- package/dist/src/gateway/side-chat/run-service.js +28 -5
- package/dist/src/gateway/side-chat/types.d.ts +9 -1
- package/dist/src/heartbeat/index.js +1 -1
- package/dist/src/knowledge/connected-knowledge-pipeline.d.ts +0 -2
- package/dist/src/knowledge/connected-knowledge-pipeline.js +46 -217
- package/dist/src/knowledge-memory/domain.d.ts +35 -0
- package/dist/src/knowledge-memory/index.d.ts +2 -0
- package/dist/src/knowledge-memory/index.js +2 -0
- package/dist/src/knowledge-memory/repository.d.ts +45 -0
- package/dist/src/knowledge-memory/repository.js +154 -0
- package/dist/src/memory-maintenance/index.d.ts +2 -0
- package/dist/src/memory-maintenance/index.js +3 -0
- package/dist/src/memory-maintenance/schedule.d.ts +13 -0
- package/dist/src/memory-maintenance/schedule.js +51 -0
- package/dist/src/memory-maintenance/service.d.ts +28 -0
- package/dist/src/memory-maintenance/service.js +216 -0
- package/dist/src/notes/service.d.ts +1 -0
- package/dist/src/notes/service.js +7 -1
- package/dist/src/notes/types.d.ts +16 -0
- package/dist/src/proactive/execution/context.d.ts +2 -2
- package/dist/src/proactive/execution/context.js +16 -11
- package/dist/src/proactive/index.d.ts +1 -1
- package/dist/src/proactive/index.js +2 -2
- package/dist/src/projects/index.d.ts +1 -1
- package/dist/src/projects/index.js +2 -2
- package/dist/src/projects/knowledge-bind.d.ts +1 -0
- package/dist/src/projects/knowledge-bind.js +15 -0
- package/dist/src/projects/project-loop.d.ts +3 -3
- package/dist/src/projects/project-loop.js +4 -4
- package/dist/src/projects/project-store.js +2 -1
- package/dist/src/realtime/runtime.js +1 -0
- package/dist/src/runtime-tools/manager.js +1 -1
- package/dist/src/storage/sqlite/collaboration-rule-repository.d.ts +17 -0
- package/dist/src/storage/sqlite/collaboration-rule-repository.js +54 -0
- package/dist/src/storage/sqlite/connection-wait-repository.d.ts +30 -0
- package/dist/src/storage/sqlite/connection-wait-repository.js +338 -0
- package/dist/src/storage/sqlite/connector-account-repository.js +1 -1
- package/dist/src/storage/sqlite/context-evidence-repository.d.ts +24 -0
- package/dist/src/storage/sqlite/context-evidence-repository.js +52 -0
- package/dist/src/storage/sqlite/index.d.ts +3 -5
- package/dist/src/storage/sqlite/index.js +4 -6
- package/dist/src/storage/sqlite/knowledge-repository.d.ts +0 -19
- package/dist/src/storage/sqlite/knowledge-repository.js +1 -90
- package/dist/src/storage/sqlite/migrations/148_user_model_foundation.sql +554 -0
- package/dist/src/storage/sqlite/migrations/149_separate_source_index_from_memory.sql +18 -0
- package/dist/src/storage/sqlite/migrations/150_session_connection_waits.sql +47 -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/migrations/runner.ts +1 -1
- package/dist/src/storage/sqlite/notes-repository.d.ts +2 -1
- package/dist/src/storage/sqlite/notes-repository.js +37 -3
- package/dist/src/storage/sqlite/schema.js +1 -1
- package/dist/src/storage/sqlite/session-input-repository.d.ts +14 -2
- package/dist/src/storage/sqlite/session-input-repository.js +16 -13
- package/dist/src/storage/sqlite/session-repository.js +4 -1
- package/dist/src/storage/sqlite/transcript-repository.js +1 -1
- package/dist/src/tasks/index.js +2 -2
- package/dist/src/tasks/project-operating-view-service.js +1 -1
- package/dist/src/tasks/task-application-service.js +6 -1
- package/dist/src/tasks/task-context-assembler.js +1 -1
- package/dist/src/tasks/task-context-repository.d.ts +0 -1
- package/dist/src/tasks/task-context-repository.js +1 -1
- package/dist/src/tasks/task-deletion-service.js +1 -1
- package/dist/src/tasks/task-handoff-service.js +1 -1
- package/dist/src/tasks/task-read-model-projector.js +1 -1
- package/dist/src/tasks/task-run-coordinator.js +1 -1
- package/dist/src/tasks/task-run-dispatcher.js +1 -1
- package/dist/src/tasks/task-run-repository.js +1 -0
- package/dist/src/tasks/task-signal-service.js +1 -1
- package/dist/src/tui/tool-summary.js +2 -1
- package/dist/src/tui/tui-startup-resources.js +1 -1
- package/dist/src/user-context/changes.d.ts +1 -1
- package/dist/src/user-context/config.d.ts +135 -153
- package/dist/src/user-context/config.js +94 -99
- package/dist/src/user-context/relationship-continuity.d.ts +2 -2
- package/dist/src/user-context/relationship-continuity.js +34 -24
- package/dist/src/user-context/sources/activity-clustering.d.ts +9 -3
- package/dist/src/user-context/sources/index.js +2 -2
- package/dist/src/user-context/sources/repository.d.ts +1 -21
- package/dist/src/user-context/sources/repository.js +1 -183
- package/dist/src/user-context/sources/types.d.ts +0 -23
- package/dist/src/user-model/capture/executor.d.ts +40 -0
- package/dist/src/user-model/capture/executor.js +134 -0
- package/dist/src/user-model/capture/index.d.ts +2 -0
- package/dist/src/user-model/capture/index.js +3 -0
- package/dist/src/user-model/capture/semantic.d.ts +21 -0
- package/dist/src/user-model/capture/semantic.js +197 -0
- package/dist/src/user-model/domain.d.ts +93 -0
- package/dist/src/user-model/domain.js +33 -0
- package/dist/src/user-model/goals.d.ts +58 -0
- package/dist/src/user-model/goals.js +89 -0
- package/dist/src/user-model/importance.d.ts +11 -0
- package/dist/src/user-model/importance.js +17 -0
- package/dist/src/user-model/index.d.ts +5 -0
- package/dist/src/user-model/index.js +6 -0
- package/dist/src/user-model/repository.d.ts +23 -0
- package/dist/src/user-model/repository.js +268 -0
- package/dist/src/user-model/temporal.d.ts +10 -0
- package/dist/src/user-model/temporal.js +44 -0
- package/dist/src/voice/realtime/memory-context.d.ts +7 -2
- package/dist/src/voice/realtime/memory-context.js +39 -51
- package/dist/src/work-discovery/service.d.ts +3 -14
- package/dist/src/work-discovery/service.js +138 -99
- package/dist/src/work-discovery/types.d.ts +3 -3
- package/dist/src/workflows/service/workflow-run-service.js +1 -1
- package/dist/src/workflows/service/workflow-session-bridge.js +12 -20
- package/package.json +1 -1
- package/dist/gateway/static/root/assets/agent-defaults-settings-panel-CUXApfcE.js +0 -1
- package/dist/gateway/static/root/assets/agents-DNq_GKuc.js +0 -1
- package/dist/gateway/static/root/assets/app-management-settings-panel-qfwAgyhQ.js +0 -1
- package/dist/gateway/static/root/assets/appearance-settings-DqQVUpCC.js +0 -1
- package/dist/gateway/static/root/assets/apps-page-dwIqYmXk.js +0 -1
- package/dist/gateway/static/root/assets/automations-workspace-SkdcSZ0i.js +0 -6
- package/dist/gateway/static/root/assets/browser-settings-page-CKCa6TvG.js +0 -8
- package/dist/gateway/static/root/assets/capabilities-settings-panel-DSp--zIZ.js +0 -7
- package/dist/gateway/static/root/assets/channels-settings-CMd2dDrI.js +0 -1
- package/dist/gateway/static/root/assets/cloud-C4-yfnnk.js +0 -1
- package/dist/gateway/static/root/assets/connectors-page-udWs5Kdm.js +0 -2
- package/dist/gateway/static/root/assets/dependency-picker-DpN3XZg9.js +0 -1
- package/dist/gateway/static/root/assets/desktop-pet-settings-DinCToZh.js +0 -1
- package/dist/gateway/static/root/assets/ellipsis-0k4rZLoy.js +0 -1
- package/dist/gateway/static/root/assets/extension-settings-page-DcguCgsH.js +0 -1
- package/dist/gateway/static/root/assets/eye-CABVeTq0.js +0 -1
- package/dist/gateway/static/root/assets/eye-off-DEAzt3g1.js +0 -1
- package/dist/gateway/static/root/assets/folder-open-CyzJ19I9.js +0 -1
- package/dist/gateway/static/root/assets/form-field-width-DJw_jULe.js +0 -1
- package/dist/gateway/static/root/assets/gateway-config-api-Br7lSf6H.js +0 -1
- package/dist/gateway/static/root/assets/gateway-settings-CdPoDMuj.js +0 -1
- package/dist/gateway/static/root/assets/heartbeat-settings-DHk1hawP.js +0 -1
- package/dist/gateway/static/root/assets/home-page-YGipe_W6.js +0 -1
- package/dist/gateway/static/root/assets/index-D5TQQpeb.js +0 -71
- package/dist/gateway/static/root/assets/index-DReBaaTX.css +0 -2
- package/dist/gateway/static/root/assets/interaction-BmQogeqz.js +0 -1
- package/dist/gateway/static/root/assets/is-masked-secret-DOkL5b_X.js +0 -1
- package/dist/gateway/static/root/assets/link-2-D_ZKYUW7.js +0 -1
- package/dist/gateway/static/root/assets/local-context-graph-BjUf7fQ9.js +0 -1
- package/dist/gateway/static/root/assets/logs-page-CXKy6E_l.js +0 -2
- package/dist/gateway/static/root/assets/message-square-plus-XP0tGdlV.js +0 -1
- package/dist/gateway/static/root/assets/messages-CHNYp8EQ.js +0 -3
- package/dist/gateway/static/root/assets/minimize-2-DtOGrlpo.js +0 -1
- package/dist/gateway/static/root/assets/mobile-pairing-wizard-3NKCniSp.js +0 -1
- package/dist/gateway/static/root/assets/models-hub-cache-nCfkBN8M.js +0 -1
- package/dist/gateway/static/root/assets/notes-page-DuqLahi6.js +0 -1
- package/dist/gateway/static/root/assets/notes-workbench-C7j9EdQk.js +0 -5
- package/dist/gateway/static/root/assets/oauth-api-8lP_qJpq.js +0 -1
- package/dist/gateway/static/root/assets/oauth-authorization-window-Cdolr2wE.js +0 -1
- package/dist/gateway/static/root/assets/page-tabs-BaEQMYm_.js +0 -1
- package/dist/gateway/static/root/assets/pencil-DmIY3Oa-.js +0 -1
- package/dist/gateway/static/root/assets/preview-open-alternatives-CsNVTKC0.js +0 -1
- package/dist/gateway/static/root/assets/project-detail-page-CfebYVX0.js +0 -1
- package/dist/gateway/static/root/assets/projects-page-48GvzSVa.js +0 -1
- package/dist/gateway/static/root/assets/remote-access-hub-64xj_s2m.js +0 -1
- package/dist/gateway/static/root/assets/rotate-cw-LIg3Am9S.js +0 -1
- package/dist/gateway/static/root/assets/search-DA7gz22f.js +0 -1
- package/dist/gateway/static/root/assets/sessions-page-CcwcdRN8.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BaN84CyW.js +0 -1
- package/dist/gateway/static/root/assets/settings-form-section-DjWzRk4z.js +0 -1
- package/dist/gateway/static/root/assets/setup-status-panel-DVVOCNbr.js +0 -1
- package/dist/gateway/static/root/assets/shares-settings-DUYbYLi7.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-BGyD0gB9.js +0 -1
- package/dist/gateway/static/root/assets/skills-page-CjF8DTsN.js +0 -2
- package/dist/gateway/static/root/assets/system-settings-panel-BSYuRgFI.js +0 -1
- package/dist/gateway/static/root/assets/task-detail-page-YZYSTJH7.js +0 -1
- package/dist/gateway/static/root/assets/tunnel-api-FKUi9wDL.js +0 -1
- package/dist/gateway/static/root/assets/user-context-page-BCyiduKd.js +0 -2
- package/dist/gateway/static/root/assets/work-discovery-overlay-jhT2EzeH.js +0 -1
- package/dist/gateway/static/root/assets/workflows-page-DQC0TpMa.js +0 -5
- package/dist/src/agent/memory/builtin-provider.d.ts +0 -37
- package/dist/src/agent/memory/builtin-provider.js +0 -225
- package/dist/src/agent/memory/context/types.d.ts +0 -40
- package/dist/src/agent/memory/understanding/quality.d.ts +0 -8
- package/dist/src/agent/memory/understanding/quality.js +0 -18
- package/dist/src/agent/memory/understanding/service.d.ts +0 -19
- package/dist/src/agent/memory/understanding/service.js +0 -209
- package/dist/src/agent/memory/understanding/types.d.ts +0 -34
- package/dist/src/agent/memory/understanding/types.js +0 -1
- package/dist/src/agent/memory/user-context-coordinator.d.ts +0 -23
- package/dist/src/agent/memory/user-context-coordinator.js +0 -113
- package/dist/src/agent/tools/dreaming-tool.js +0 -37
- package/dist/src/agent/tools/memory-tool.d.ts +0 -9
- package/dist/src/agent/tools/memory-tool.js +0 -119
- package/dist/src/gateway/dreaming-automation-reconciler.d.ts +0 -11
- package/dist/src/gateway/dreaming-automation-reconciler.js +0 -63
- package/dist/src/gateway/hono/routes/understanding-sources.d.ts +0 -21
- package/dist/src/gateway/hono/routes/understanding-sources.js +0 -387
- package/dist/src/gateway/hono/routes/you.d.ts +0 -3
- package/dist/src/gateway/hono/routes/you.js +0 -457
- package/dist/src/projects/memory-bind.d.ts +0 -1
- package/dist/src/projects/memory-bind.js +0 -14
- package/dist/src/storage/sqlite/context-consolidation-repository.d.ts +0 -37
- package/dist/src/storage/sqlite/context-consolidation-repository.js +0 -64
- package/dist/src/storage/sqlite/memory-records-repository.d.ts +0 -217
- package/dist/src/storage/sqlite/memory-records-repository.js +0 -715
- package/dist/src/storage/sqlite/remote-context-repository.d.ts +0 -3
- package/dist/src/storage/sqlite/remote-context-repository.js +0 -40
- package/dist/src/storage/sqlite/understanding-focus-exclusions.d.ts +0 -2
- package/dist/src/storage/sqlite/understanding-focus-exclusions.js +0 -24
- package/dist/src/storage/sqlite/user-context-quality-repository.d.ts +0 -49
- package/dist/src/storage/sqlite/user-context-quality-repository.js +0 -118
- package/dist/src/storage/sqlite/user-context-repository.d.ts +0 -85
- package/dist/src/storage/sqlite/user-context-repository.js +0 -535
- package/dist/src/user-context/automatic-context.d.ts +0 -17
- package/dist/src/user-context/automatic-context.js +0 -85
- package/dist/src/user-context/consolidation.d.ts +0 -27
- package/dist/src/user-context/consolidation.js +0 -187
- package/dist/src/user-context/context-objects.d.ts +0 -17
- package/dist/src/user-context/context-objects.js +0 -99
- package/dist/src/user-context/evaluation/harness.d.ts +0 -13
- package/dist/src/user-context/evaluation/harness.js +0 -31
- package/dist/src/user-context/extraction/executor.d.ts +0 -22
- package/dist/src/user-context/extraction/executor.js +0 -142
- package/dist/src/user-context/extraction/repair.d.ts +0 -19
- package/dist/src/user-context/extraction/repair.js +0 -71
- package/dist/src/user-context/extraction/semantic.d.ts +0 -18
- package/dist/src/user-context/extraction/semantic.js +0 -148
- package/dist/src/user-context/focus-lifecycle.d.ts +0 -2
- package/dist/src/user-context/focus-lifecycle.js +0 -26
- package/dist/src/user-context/manual-understanding.d.ts +0 -12
- package/dist/src/user-context/manual-understanding.js +0 -37
- package/dist/src/user-context/planner.d.ts +0 -17
- package/dist/src/user-context/planner.js +0 -465
- package/dist/src/user-context/relationships/indexer.d.ts +0 -13
- package/dist/src/user-context/relationships/indexer.js +0 -185
- package/dist/src/user-context/relationships/service.d.ts +0 -22
- package/dist/src/user-context/relationships/service.js +0 -50
- package/dist/src/user-context/retriever.d.ts +0 -15
- package/dist/src/user-context/retriever.js +0 -124
- package/dist/src/user-context/scope.d.ts +0 -7
- package/dist/src/user-context/scope.js +0 -9
- package/dist/src/user-context/selection-policy.d.ts +0 -20
- package/dist/src/user-context/selection-policy.js +0 -33
- package/dist/src/user-context/understanding.d.ts +0 -15
- package/dist/src/user-context/understanding.js +0 -24
- package/dist/src/user-context/understandingQuality.d.ts +0 -5
- package/dist/src/user-context/understandingQuality.js +0 -48
- /package/dist/src/{agent/memory/context/types.js → knowledge-memory/domain.js} +0 -0
|
@@ -67,10 +67,10 @@ const GATEWAY_BUILTIN_TOOLS = [
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
id: "
|
|
70
|
+
id: "memory_maintenance",
|
|
71
71
|
description: {
|
|
72
|
-
en: "
|
|
73
|
-
zh: "
|
|
72
|
+
en: "Inspect deterministic memory maintenance.",
|
|
73
|
+
zh: "查看确定性的记忆整理任务。"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
{
|
|
@@ -186,17 +186,38 @@ const GATEWAY_BUILTIN_TOOLS = [
|
|
|
186
186
|
}
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
|
-
id: "
|
|
189
|
+
id: "user_context_search",
|
|
190
190
|
description: {
|
|
191
|
-
en: "Search
|
|
192
|
-
zh: "
|
|
191
|
+
en: "Search typed user facts and preferences.",
|
|
192
|
+
zh: "搜索结构化的用户事实与偏好。"
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
|
-
id: "
|
|
196
|
+
id: "user_context_get",
|
|
197
197
|
description: {
|
|
198
|
-
en: "Read a
|
|
199
|
-
zh: "
|
|
198
|
+
en: "Read a typed user assertion.",
|
|
199
|
+
zh: "读取一条结构化用户事实。"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
id: "knowledge_search",
|
|
204
|
+
description: {
|
|
205
|
+
en: "Search scoped project and workspace knowledge.",
|
|
206
|
+
zh: "搜索有作用域的项目与工作区知识。"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
id: "knowledge_get",
|
|
211
|
+
description: {
|
|
212
|
+
en: "Read a scoped knowledge item.",
|
|
213
|
+
zh: "读取一条有作用域的知识。"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
id: "knowledge_write",
|
|
218
|
+
description: {
|
|
219
|
+
en: "Store a reviewable knowledge candidate.",
|
|
220
|
+
zh: "保存一条可审查的知识候选。"
|
|
200
221
|
}
|
|
201
222
|
},
|
|
202
223
|
{
|
|
@@ -100,33 +100,6 @@ var ChatStreamMapper = class {
|
|
|
100
100
|
default: typeof event.default === "string" ? event.default : void 0,
|
|
101
101
|
petFeedback: createPetFeedback("clarify")
|
|
102
102
|
})];
|
|
103
|
-
case "memory_consent_required": return [this.make("memory_consent_required", { requests: Array.isArray(event.requests) ? event.requests.flatMap((raw) => {
|
|
104
|
-
if (!raw || typeof raw !== "object") return [];
|
|
105
|
-
const request = raw;
|
|
106
|
-
const id = typeof request.id === "string" ? request.id : "";
|
|
107
|
-
const recordId = typeof request.recordId === "string" ? request.recordId : "";
|
|
108
|
-
const statement = typeof request.statement === "string" ? request.statement : "";
|
|
109
|
-
const purpose = typeof request.purpose === "string" ? request.purpose : "";
|
|
110
|
-
return id && recordId && statement ? [{
|
|
111
|
-
id,
|
|
112
|
-
recordId,
|
|
113
|
-
statement,
|
|
114
|
-
purpose
|
|
115
|
-
}] : [];
|
|
116
|
-
}) : [] })];
|
|
117
|
-
case "memory_captured":
|
|
118
|
-
case "memory_candidate": return [this.make(event.type, { records: Array.isArray(event.records) ? event.records.flatMap((raw) => {
|
|
119
|
-
if (!raw || typeof raw !== "object") return [];
|
|
120
|
-
const record = raw;
|
|
121
|
-
const id = typeof record.id === "string" ? record.id : "";
|
|
122
|
-
const content = typeof record.content === "string" ? record.content : "";
|
|
123
|
-
const kind = typeof record.kind === "string" ? record.kind : "";
|
|
124
|
-
return id && content ? [{
|
|
125
|
-
id,
|
|
126
|
-
content,
|
|
127
|
-
kind
|
|
128
|
-
}] : [];
|
|
129
|
-
}) : [] })];
|
|
130
103
|
case "turn_outcome": {
|
|
131
104
|
const outcome = parseTurnOutcome(event.outcome);
|
|
132
105
|
return outcome ? [this.make("turn_outcome", outcome)] : [];
|
|
@@ -150,7 +123,7 @@ var ChatStreamMapper = class {
|
|
|
150
123
|
return [this.make("run_end", {
|
|
151
124
|
status,
|
|
152
125
|
summary,
|
|
153
|
-
petFeedback: createPetFeedback(status === "success" ? "success" : "error", { recoverable: status !== "error" })
|
|
126
|
+
petFeedback: createPetFeedback(status === "suspended" ? "clarify" : status === "success" ? "success" : "error", { recoverable: status !== "error" })
|
|
154
127
|
})];
|
|
155
128
|
}
|
|
156
129
|
error(message, code = "AGENT_RUN_ERROR") {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ToolActivity, TurnOutcome } from '@xopcai/gateway-contract';
|
|
2
|
-
export type ChatStreamStatus = 'success' | 'error' | 'cancelled';
|
|
2
|
+
export type ChatStreamStatus = 'success' | 'error' | 'cancelled' | 'suspended';
|
|
3
3
|
export type PetFeedbackTaskState = 'working' | 'waiting' | 'success' | 'error';
|
|
4
4
|
export type PetFeedbackSensitivity = 'public' | 'private';
|
|
5
5
|
export type PetFeedbackReassurance = 'making_progress' | 'waiting_safely' | 'completed' | 'work_preserved' | 'details_available';
|
|
@@ -205,28 +205,6 @@ export type ClarifyRequestEvent = ChatStreamEnvelope<'clarify_request', {
|
|
|
205
205
|
default?: string;
|
|
206
206
|
petFeedback: PetFeedback;
|
|
207
207
|
}>;
|
|
208
|
-
export type MemoryConsentRequiredEvent = ChatStreamEnvelope<'memory_consent_required', {
|
|
209
|
-
requests: Array<{
|
|
210
|
-
id: string;
|
|
211
|
-
recordId: string;
|
|
212
|
-
statement: string;
|
|
213
|
-
purpose: string;
|
|
214
|
-
}>;
|
|
215
|
-
}>;
|
|
216
|
-
export type MemoryCapturedEvent = ChatStreamEnvelope<'memory_captured', {
|
|
217
|
-
records: Array<{
|
|
218
|
-
id: string;
|
|
219
|
-
content: string;
|
|
220
|
-
kind: string;
|
|
221
|
-
}>;
|
|
222
|
-
}>;
|
|
223
|
-
export type MemoryCandidateEvent = ChatStreamEnvelope<'memory_candidate', {
|
|
224
|
-
records: Array<{
|
|
225
|
-
id: string;
|
|
226
|
-
content: string;
|
|
227
|
-
kind: string;
|
|
228
|
-
}>;
|
|
229
|
-
}>;
|
|
230
208
|
export type RunEndEvent = ChatStreamEnvelope<'run_end', {
|
|
231
209
|
status: ChatStreamStatus;
|
|
232
210
|
summary?: string;
|
|
@@ -238,4 +216,4 @@ export type StreamErrorEvent = ChatStreamEnvelope<'error', {
|
|
|
238
216
|
recoverable?: boolean;
|
|
239
217
|
petFeedback: PetFeedback;
|
|
240
218
|
}>;
|
|
241
|
-
export type ChatStreamEvent = RunStartEvent | UserMessageEvent | UserTranscriptEvent | AssistantMessageStartEvent | AssistantDeltaEvent | ThinkingDeltaEvent | ThinkingEndEvent | ToolStartEvent | ToolUpdateEvent | ToolEndEvent | CommandStartedEvent | CommandOutputDeltaEvent | CommandCompletedEvent | PatchAppliedEvent | TurnPlanUpdatedEvent | TaskPlanUpdatedEvent | TurnDiffEvent | TurnOutcomeEvent | ReviewStartEvent | ReviewDeltaEvent | ReviewEndEvent | ReviewEvent | AssistantMessageEndEvent | ProgressEvent | CompactionEvent | TtsAudioEvent | ClarifyRequestEvent |
|
|
219
|
+
export type ChatStreamEvent = RunStartEvent | UserMessageEvent | UserTranscriptEvent | AssistantMessageStartEvent | AssistantDeltaEvent | ThinkingDeltaEvent | ThinkingEndEvent | ToolStartEvent | ToolUpdateEvent | ToolEndEvent | CommandStartedEvent | CommandOutputDeltaEvent | CommandCompletedEvent | PatchAppliedEvent | TurnPlanUpdatedEvent | TaskPlanUpdatedEvent | TurnDiffEvent | TurnOutcomeEvent | ReviewStartEvent | ReviewDeltaEvent | ReviewEndEvent | ReviewEvent | AssistantMessageEndEvent | ProgressEvent | CompactionEvent | TtsAudioEvent | ClarifyRequestEvent | RunEndEvent | StreamErrorEvent;
|
|
@@ -4,11 +4,15 @@ export type ClarifyStreamEvent = {
|
|
|
4
4
|
/** User inactivity window before pending clarification is rejected (web/Telegram, etc.). */
|
|
5
5
|
export declare const CLARIFY_USER_RESPONSE_TIMEOUT_MS: number;
|
|
6
6
|
export interface ClarifyBridgeRequest {
|
|
7
|
+
kind?: 'approval';
|
|
7
8
|
question: string;
|
|
8
9
|
choices?: string[];
|
|
9
10
|
default?: string;
|
|
10
11
|
}
|
|
11
12
|
export interface StartClarifyRequestOptions {
|
|
13
|
+
/** null delegates the deadline to the owning ephemeral session. */
|
|
14
|
+
timeoutMs?: number | null;
|
|
15
|
+
beforeResponse?: () => boolean;
|
|
12
16
|
sessionKey: string;
|
|
13
17
|
/** Present for in-flight webchat runs. */
|
|
14
18
|
runId?: string;
|
|
@@ -23,21 +23,24 @@ var ClarifyBridge = class {
|
|
|
23
23
|
const e = this.deletePending(requestId);
|
|
24
24
|
if (e) e.reject(err instanceof Error ? err : new Error(String(err)));
|
|
25
25
|
};
|
|
26
|
-
const
|
|
26
|
+
const timeoutMs = opts.timeoutMs === void 0 ? CLARIFY_USER_RESPONSE_TIMEOUT_MS : opts.timeoutMs;
|
|
27
|
+
const timeout = timeoutMs === null ? void 0 : setTimeout(() => {
|
|
27
28
|
const entry = this.deletePending(requestId);
|
|
28
|
-
if (entry) entry.reject(/* @__PURE__ */ new Error(
|
|
29
|
-
},
|
|
29
|
+
if (entry) entry.reject(/* @__PURE__ */ new Error(`Clarification timeout: user did not respond within ${timeoutMs / 6e4} minutes`));
|
|
30
|
+
}, timeoutMs);
|
|
30
31
|
this.pending.set(requestId, {
|
|
31
32
|
runId: runId ?? "",
|
|
32
33
|
sessionKey,
|
|
33
34
|
choices: hasChoices ? request.choices : void 0,
|
|
34
35
|
resolve,
|
|
35
36
|
reject,
|
|
36
|
-
timeout
|
|
37
|
+
timeout,
|
|
38
|
+
beforeResponse: opts.beforeResponse
|
|
37
39
|
});
|
|
38
40
|
if (needsFreeText) this.pendingFreeTextBySession.set(sessionKey, requestId);
|
|
39
41
|
const payload = {
|
|
40
42
|
type: "clarify_request",
|
|
43
|
+
kind: request.kind,
|
|
41
44
|
requestId,
|
|
42
45
|
question: request.question,
|
|
43
46
|
choices: request.choices,
|
|
@@ -84,6 +87,8 @@ var ClarifyBridge = class {
|
|
|
84
87
|
return this.handleResponse(requestId, entry.choices[choiceIndex]);
|
|
85
88
|
}
|
|
86
89
|
handleResponse(requestId, answer) {
|
|
90
|
+
const pending = this.pending.get(requestId);
|
|
91
|
+
if (!pending || pending.beforeResponse?.() === false) return false;
|
|
87
92
|
const entry = this.deletePending(requestId);
|
|
88
93
|
if (!entry) return false;
|
|
89
94
|
entry.resolve(answer.trim());
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { createLogger } from "../../utils/logger/index.js";
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { shouldSilence, stripHeartbeatToken } from "../../heartbeat/tokens.js";
|
|
4
|
+
import { appendCronEventLines } from "../../heartbeat/event-prompt.js";
|
|
4
5
|
import { isWithinActiveHours } from "../../heartbeat/active-hours.js";
|
|
5
6
|
import { isHeartbeatContentEmpty } from "../../heartbeat/content-check.js";
|
|
6
|
-
import { appendCronEventLines } from "../../heartbeat/event-prompt.js";
|
|
7
7
|
import { createHeartbeatWake } from "../../heartbeat/wake.js";
|
|
8
8
|
import { resolveHeartbeatMdPath } from "../workspace-heartbeat-path.js";
|
|
9
9
|
import { readFile } from "fs/promises";
|
|
@@ -218,38 +218,60 @@ export declare function buildSafeWebConfigPayload(service: GatewayService, optio
|
|
|
218
218
|
preferences: {
|
|
219
219
|
responseLanguage: "en" | "auto" | "zh-CN";
|
|
220
220
|
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
221
|
+
userModel: {
|
|
222
|
+
enabled: boolean;
|
|
223
|
+
writePolicy: "allow" | "confirm" | "deny";
|
|
224
|
+
sensitiveWritePolicy: "allow" | "confirm" | "deny";
|
|
225
|
+
processingPolicy: "local_only" | "remote_allowed";
|
|
226
|
+
extraction: {
|
|
227
|
+
reviewIntervalTurns: number;
|
|
228
|
+
maxHistoryMessages: number;
|
|
229
|
+
maxDurationMs: number;
|
|
230
|
+
};
|
|
231
|
+
maintenance: {
|
|
232
|
+
enabled: boolean;
|
|
233
|
+
temporalSweepMinutes: number;
|
|
234
|
+
dailyTime: string;
|
|
235
|
+
weeklyDay: "sun" | "mon" | "tue" | "wed" | "thu" | "fri" | "sat";
|
|
236
|
+
weeklyTime: string;
|
|
237
|
+
evidenceThreshold: number;
|
|
238
|
+
limit: number;
|
|
239
|
+
staleRetentionDays: number;
|
|
240
|
+
timezone?: string;
|
|
225
241
|
};
|
|
226
|
-
minEvidenceSources: number;
|
|
227
|
-
limit: number;
|
|
228
|
-
timezone?: string;
|
|
229
242
|
};
|
|
230
|
-
|
|
231
|
-
|
|
243
|
+
knowledgeMemory: {
|
|
244
|
+
enabled: boolean;
|
|
245
|
+
writePolicy: "allow" | "confirm" | "deny";
|
|
246
|
+
sources: ("project" | "session" | "workspace" | "connector")[];
|
|
247
|
+
searchStrategy: "local-first" | "external-first" | "fanout" | "local-only" | "external-only";
|
|
248
|
+
writeStrategy: "local-first" | "external-first" | "local-only" | "external-only" | "write-through";
|
|
249
|
+
allowExternalWrites: boolean;
|
|
250
|
+
allowedProviderIds?: string[];
|
|
251
|
+
autoWriteKinds?: string[];
|
|
232
252
|
};
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
+
contextPlanning: {
|
|
254
|
+
enabled: boolean;
|
|
255
|
+
maxAssertions: number;
|
|
256
|
+
maxKnowledge: number;
|
|
257
|
+
maxChars: number;
|
|
258
|
+
compaction: {
|
|
259
|
+
enabled: boolean;
|
|
260
|
+
triggerThreshold: number;
|
|
261
|
+
reserveTokens: number;
|
|
262
|
+
minMessagesBeforeCompact: number;
|
|
263
|
+
keepRecentTokens: number;
|
|
264
|
+
recentTurnsPreserve: number;
|
|
265
|
+
summaryMaxTokens: number;
|
|
266
|
+
summaryChunkTokens: number;
|
|
267
|
+
summaryTimeoutMs: number;
|
|
268
|
+
summaryRetries: number;
|
|
269
|
+
qualityGuard: boolean;
|
|
270
|
+
gapAudit: boolean;
|
|
271
|
+
minToolResultKeepChars: number;
|
|
272
|
+
maxActiveTranscriptBytes: number;
|
|
273
|
+
postCompactionSections: string[];
|
|
274
|
+
model?: string;
|
|
253
275
|
};
|
|
254
276
|
};
|
|
255
277
|
};
|
|
@@ -271,7 +293,7 @@ export declare function buildSafeWebConfigPayload(service: GatewayService, optio
|
|
|
271
293
|
};
|
|
272
294
|
update: {
|
|
273
295
|
checkOnStart: boolean;
|
|
274
|
-
channel: "
|
|
296
|
+
channel: "stable" | "beta" | "dev";
|
|
275
297
|
auto: {
|
|
276
298
|
enabled: boolean;
|
|
277
299
|
stableDelayHours: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContextPlanningConfigSchema, KnowledgeMemoryConfigSchema, UserModelConfigSchema, init_config } from "../../../user-context/config.js";
|
|
2
2
|
import { init_agent_scope, listAgentEntries, normalizeAgentId, resolveDefaultAgentId } from "../../../agent/agent-scope.js";
|
|
3
3
|
import { resolveModelsJsonPath } from "../../../config/paths.js";
|
|
4
4
|
import { buildChannelCatalogForConfig, buildChannelCatalogFromSnapshot, getChannelSetupStatus, init_channel_catalog_service } from "../../../channels/catalog/channel-catalog-service.js";
|
|
@@ -176,9 +176,9 @@ async function buildSafeWebConfigPayload(service, options = {}) {
|
|
|
176
176
|
session: resolveSessionConfigForWeb(config),
|
|
177
177
|
userContext: {
|
|
178
178
|
preferences: config.userContext?.preferences ?? { responseLanguage: "auto" },
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
179
|
+
userModel: UserModelConfigSchema.parse(config.userContext?.userModel),
|
|
180
|
+
knowledgeMemory: KnowledgeMemoryConfigSchema.parse(config.userContext?.knowledgeMemory),
|
|
181
|
+
contextPlanning: ContextPlanningConfigSchema.parse(config.userContext?.contextPlanning)
|
|
182
182
|
},
|
|
183
183
|
tui: { defaultAgent: config.tui?.defaultAgent ?? "coder" },
|
|
184
184
|
tunnel: {
|
|
@@ -39,10 +39,9 @@ function extractTokenFromQuery(url) {
|
|
|
39
39
|
return new URL(url).searchParams.get("token");
|
|
40
40
|
}
|
|
41
41
|
const AGENT_AVATAR_GET_PATH = /^\/api\/agents\/[^/]+\/avatar$/;
|
|
42
|
-
const USER_AVATAR_GET_PATH = "/api/you/avatar";
|
|
43
42
|
/** Exported for gateway security tests. */
|
|
44
43
|
function isQueryTokenAllowedPath(path, method) {
|
|
45
|
-
if (method === "GET" &&
|
|
44
|
+
if (method === "GET" && AGENT_AVATAR_GET_PATH.test(path)) return true;
|
|
46
45
|
return false;
|
|
47
46
|
}
|
|
48
47
|
function resolveRemoteAddress(c) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConfigPersistenceError, persistConfigMutation } from "../../../config/config-mutation.js";
|
|
2
1
|
import { getStoreConnectorInstallPlan, installStoreConnector, listStoreConnectors } from "../../../capabilities/store-connector.js";
|
|
2
|
+
import { ConfigPersistenceError, persistConfigMutation } from "../../../config/config-mutation.js";
|
|
3
3
|
//#region src/gateway/hono/routes/capabilities.ts
|
|
4
4
|
function errorMessage(error) {
|
|
5
5
|
return error instanceof Error ? error.message : String(error);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* `PATCH /api/config` — tail sections that are each <50 lines:
|
|
3
3
|
* update / session / gateway.{skillsMarketplaceProvider,
|
|
4
4
|
* skillsStoreBaseUrl} / providers / providersConfig / stt / tts / tools /
|
|
5
|
-
* userContext
|
|
5
|
+
* userContext / tunnel / bindings / mcp.
|
|
6
6
|
*
|
|
7
7
|
* Most of these delegate to a `mergeXxxConfigPatch(config, body) → { ok,
|
|
8
8
|
* message? }` helper that lives next to the schema, so this file is mostly
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContextPlanningConfigSchema, KnowledgeMemoryConfigSchema, UserContextConfigSchema, UserModelConfigSchema, init_config } from "../../../../user-context/config.js";
|
|
2
2
|
import { BindingsConfigSchema, BrowserConfigSchema, McpConfigSchema, VoiceConfigSchema, init_schema } from "../../../../config/schema.js";
|
|
3
3
|
import { CredentialResolver, init_credentials } from "../../../../auth/credentials.js";
|
|
4
4
|
import { canonicalizeConfiguredMcpServer } from "../../../../config/mcp-config-normalize.js";
|
|
@@ -28,44 +28,88 @@ async function applyMiscPatch(config, body) {
|
|
|
28
28
|
if (body.userContext !== void 0) {
|
|
29
29
|
if (typeof body.userContext !== "object" || body.userContext === null || Array.isArray(body.userContext)) return patchError("userContext must be an object");
|
|
30
30
|
const userContextPatch = body.userContext;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
const unknownKeys = Object.keys(userContextPatch).filter((key) => ![
|
|
32
|
+
"enabled",
|
|
33
|
+
"preferences",
|
|
34
|
+
"userModel",
|
|
35
|
+
"knowledgeMemory",
|
|
36
|
+
"contextPlanning"
|
|
37
|
+
].includes(key));
|
|
38
|
+
if (unknownKeys.length) return patchError(`Unknown userContext settings: ${unknownKeys.join(", ")}`);
|
|
39
|
+
if (userContextPatch.enabled !== void 0) {
|
|
40
|
+
if (typeof userContextPatch.enabled !== "boolean") return patchError("userContext.enabled must be a boolean");
|
|
41
|
+
config.userContext = {
|
|
42
|
+
...config.userContext,
|
|
43
|
+
enabled: userContextPatch.enabled
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
if (userContextPatch.preferences !== void 0) {
|
|
47
|
+
const preferences = userContextPatch.preferences;
|
|
48
|
+
if (!preferences || typeof preferences !== "object" || Array.isArray(preferences)) return patchError("userContext.preferences must be an object");
|
|
49
|
+
config.userContext = {
|
|
50
|
+
...config.userContext,
|
|
51
|
+
preferences: {
|
|
52
|
+
...config.userContext.preferences,
|
|
53
|
+
...preferences
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
if (userContextPatch.userModel !== void 0) {
|
|
58
|
+
const patch = userContextPatch.userModel;
|
|
59
|
+
if (typeof patch !== "object" || patch === null || Array.isArray(patch)) return patchError("userContext.userModel must be an object");
|
|
60
|
+
const raw = patch;
|
|
61
|
+
const parsed = UserModelConfigSchema.safeParse({
|
|
62
|
+
...config.userContext.userModel,
|
|
63
|
+
...raw,
|
|
64
|
+
...raw.extraction && typeof raw.extraction === "object" ? { extraction: {
|
|
65
|
+
...config.userContext.userModel.extraction,
|
|
66
|
+
...raw.extraction
|
|
67
|
+
} } : {},
|
|
68
|
+
...raw.maintenance && typeof raw.maintenance === "object" ? { maintenance: {
|
|
69
|
+
...config.userContext.userModel.maintenance,
|
|
70
|
+
...raw.maintenance
|
|
71
|
+
} } : {}
|
|
72
|
+
});
|
|
33
73
|
if (!parsed.success) return patchError(parsed.error.issues.map((issue) => issue.message).join("; "));
|
|
34
74
|
config.userContext = {
|
|
35
75
|
...config.userContext,
|
|
36
|
-
|
|
76
|
+
userModel: parsed.data
|
|
37
77
|
};
|
|
38
78
|
}
|
|
39
|
-
if (userContextPatch.
|
|
40
|
-
const
|
|
79
|
+
if (userContextPatch.knowledgeMemory !== void 0) {
|
|
80
|
+
const patch = userContextPatch.knowledgeMemory;
|
|
81
|
+
if (typeof patch !== "object" || patch === null || Array.isArray(patch)) return patchError("userContext.knowledgeMemory must be an object");
|
|
82
|
+
const parsed = KnowledgeMemoryConfigSchema.safeParse({
|
|
83
|
+
...config.userContext.knowledgeMemory,
|
|
84
|
+
...patch
|
|
85
|
+
});
|
|
41
86
|
if (!parsed.success) return patchError(parsed.error.issues.map((issue) => issue.message).join("; "));
|
|
42
87
|
config.userContext = {
|
|
43
88
|
...config.userContext,
|
|
44
|
-
|
|
89
|
+
knowledgeMemory: parsed.data
|
|
45
90
|
};
|
|
46
91
|
}
|
|
47
|
-
if (userContextPatch.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}
|
|
92
|
+
if (userContextPatch.contextPlanning !== void 0) {
|
|
93
|
+
const patch = userContextPatch.contextPlanning;
|
|
94
|
+
if (typeof patch !== "object" || patch === null || Array.isArray(patch)) return patchError("userContext.contextPlanning must be an object");
|
|
95
|
+
const raw = patch;
|
|
96
|
+
const parsed = ContextPlanningConfigSchema.safeParse({
|
|
97
|
+
...config.userContext.contextPlanning,
|
|
98
|
+
...raw,
|
|
99
|
+
...raw.compaction && typeof raw.compaction === "object" ? { compaction: {
|
|
100
|
+
...config.userContext.contextPlanning.compaction,
|
|
101
|
+
...raw.compaction
|
|
102
|
+
} } : {}
|
|
103
|
+
});
|
|
104
|
+
if (!parsed.success) return patchError(parsed.error.issues.map((issue) => issue.message).join("; "));
|
|
105
|
+
config.userContext = {
|
|
106
|
+
...config.userContext,
|
|
107
|
+
contextPlanning: parsed.data
|
|
108
|
+
};
|
|
68
109
|
}
|
|
110
|
+
const parsedUserContext = UserContextConfigSchema.safeParse(config.userContext);
|
|
111
|
+
if (!parsedUserContext.success) return patchError(parsedUserContext.error.issues.map((issue) => issue.message).join("; "));
|
|
112
|
+
config.userContext = parsedUserContext.data;
|
|
69
113
|
}
|
|
70
114
|
if (body.tui !== void 0) {
|
|
71
115
|
if (typeof body.tui !== "object" || body.tui === null || Array.isArray(body.tui)) return patchError("tui must be an object");
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
//#region src/gateway/hono/routes/connection-waits.ts
|
|
3
|
+
const actionSchema = z.object({
|
|
4
|
+
waitId: z.string().min(1),
|
|
5
|
+
expectedSessionId: z.string().min(1),
|
|
6
|
+
expectedVersion: z.number().int().positive(),
|
|
7
|
+
idempotencyKey: z.string().min(1).max(200),
|
|
8
|
+
action: z.enum([
|
|
9
|
+
"connect",
|
|
10
|
+
"check",
|
|
11
|
+
"continue",
|
|
12
|
+
"skip",
|
|
13
|
+
"cancel",
|
|
14
|
+
"select_account",
|
|
15
|
+
"confirm_scope",
|
|
16
|
+
"replace_source"
|
|
17
|
+
]),
|
|
18
|
+
candidateRef: z.string().optional(),
|
|
19
|
+
needKey: z.string().optional(),
|
|
20
|
+
accountId: z.string().optional()
|
|
21
|
+
}).strict();
|
|
22
|
+
function registerConnectionWaitRoutes(app, { service, strictRateLimitMiddleware }) {
|
|
23
|
+
app.get("/api/sessions/:sessionKey/connection-wait", (c) => {
|
|
24
|
+
try {
|
|
25
|
+
return c.json({
|
|
26
|
+
ok: true,
|
|
27
|
+
payload: service.connectionRecovery.snapshot(c.req.param("sessionKey"))
|
|
28
|
+
});
|
|
29
|
+
} catch {
|
|
30
|
+
return c.json({
|
|
31
|
+
ok: false,
|
|
32
|
+
error: "Session unavailable"
|
|
33
|
+
}, 404);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
app.post("/api/sessions/:sessionKey/connection-wait/actions", strictRateLimitMiddleware, async (c) => {
|
|
37
|
+
const parsed = actionSchema.safeParse(await c.req.json().catch(() => null));
|
|
38
|
+
if (!parsed.success) return c.json({
|
|
39
|
+
ok: false,
|
|
40
|
+
error: "Invalid connection action"
|
|
41
|
+
}, 400);
|
|
42
|
+
try {
|
|
43
|
+
const payload = await service.connectionRecovery.act(c.req.param("sessionKey"), parsed.data);
|
|
44
|
+
return c.json({
|
|
45
|
+
ok: true,
|
|
46
|
+
payload
|
|
47
|
+
});
|
|
48
|
+
} catch (error) {
|
|
49
|
+
const message = error instanceof Error ? error.message : "Connection check failed";
|
|
50
|
+
return c.json({
|
|
51
|
+
ok: false,
|
|
52
|
+
error: message
|
|
53
|
+
}, ["SESSION_CHANGED", "WAIT_CHANGED"].includes(message) ? 409 : 400);
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
export { registerConnectionWaitRoutes };
|
|
@@ -11,21 +11,21 @@ import { createConnectorSetupSecretRequest, submitConnectorSetupSecret } from ".
|
|
|
11
11
|
import { configureComposioApiKey, executeComposioTool, getComposioInstallationPolicy, getComposioToolkitAuthState, getComposioToolkitScope, inspectComposioConnectorHealth, listComposioConnections, listComposioTools, refreshComposioConnection, revokeComposioConnection, setComposioToolkitScope, updateComposioConnection, updateComposioInstallationPolicy } from "../../../connectors/composio.js";
|
|
12
12
|
import { listConnectorProviders } from "../../../connectors/providers.js";
|
|
13
13
|
import { getConnectorDefinition, listConnectorCatalog } from "../../../connectors/catalog.js";
|
|
14
|
-
import { listUnderstandingSourceGrants, revokeUnderstandingSourceGrant } from "../../../user-context/sources/repository.js";
|
|
15
|
-
import { ConfigPersistenceError, persistConfigMutation } from "../../../config/config-mutation.js";
|
|
16
|
-
import { getMcpOAuthManager } from "../../../agent/mcp/oauth/mcp-oauth-manager.js";
|
|
17
14
|
import { recordConnectorHealthUsage } from "../../../connectors/usage.js";
|
|
18
15
|
import { getConnectorInstance, getInstalledConnectorDefinition, listConnectorInstances } from "../../../connectors/instances.js";
|
|
16
|
+
import { installConnector, installConnectorDefinition, uninstallConnector, updateConnectorConfig } from "../../../connectors/install.js";
|
|
17
|
+
import { ConfigPersistenceError, persistConfigMutation } from "../../../config/config-mutation.js";
|
|
18
|
+
import { getMcpOAuthManager } from "../../../agent/mcp/oauth/mcp-oauth-manager.js";
|
|
19
19
|
import { startConnectorAuthorization } from "../../../connectors/auth-provider-registry.js";
|
|
20
20
|
import { composioLogoResponse } from "../../../connectors/composio-logo.js";
|
|
21
21
|
import { inspectManagedComposioStatus } from "../../../connectors/composio-managed-client.js";
|
|
22
22
|
import { appendComposioTriggerEvent, listComposioTriggerEvents } from "../../../connectors/composio-triggers.js";
|
|
23
23
|
import { ingestLocalFolderSource } from "../../../connectors/connected-source-ingestion.js";
|
|
24
24
|
import { previewConnectorDefinition, testConnectorInstance } from "../../../connectors/health.js";
|
|
25
|
-
import {
|
|
25
|
+
import { listUnderstandingSourceGrants, revokeUnderstandingSourceGrant } from "../../../user-context/sources/repository.js";
|
|
26
26
|
import { setConnectorEnabled } from "../../../connectors/lifecycle.js";
|
|
27
27
|
import { projectComposioConnectionStatus } from "../../../connectors/runtime-status.js";
|
|
28
|
-
import {
|
|
28
|
+
import { markContextSourceAssertionsForReview } from "./context-sources.js";
|
|
29
29
|
//#region src/gateway/hono/routes/connectors.ts
|
|
30
30
|
init_agent_scope();
|
|
31
31
|
function errorMessage(error) {
|
|
@@ -196,12 +196,8 @@ function registerConnectorRoutes(authenticated, deps) {
|
|
|
196
196
|
service.setConnectorLearningPaused(connectionId, true);
|
|
197
197
|
const grant = listUnderstandingSourceGrants().find((item) => item.sourceKey === `connector-account:${account.id}`);
|
|
198
198
|
if (grant) {
|
|
199
|
-
|
|
199
|
+
markContextSourceAssertionsForReview(grant.id);
|
|
200
200
|
revokeUnderstandingSourceGrant(grant.id);
|
|
201
|
-
if (impact) applySourceRevocationChoices(impact, {
|
|
202
|
-
derived: "retain",
|
|
203
|
-
raw: "retain"
|
|
204
|
-
});
|
|
205
201
|
}
|
|
206
202
|
} else if (connectionId && previous?.scanEnabled === false) {
|
|
207
203
|
if (service.setConnectorLearningPaused(connectionId, false) === 0) service.requestConnectorLearning(connectionId, {
|
|
@@ -295,12 +291,8 @@ function registerConnectorRoutes(authenticated, deps) {
|
|
|
295
291
|
if (connection?.accountId) {
|
|
296
292
|
const grant = listUnderstandingSourceGrants().find((item) => item.sourceKey === `connector-account:${connection.accountId}`);
|
|
297
293
|
if (grant) {
|
|
298
|
-
|
|
294
|
+
markContextSourceAssertionsForReview(grant.id);
|
|
299
295
|
revokeUnderstandingSourceGrant(grant.id);
|
|
300
|
-
if (impact) applySourceRevocationChoices(impact, {
|
|
301
|
-
derived: "retain",
|
|
302
|
-
raw: "retain"
|
|
303
|
-
});
|
|
304
296
|
}
|
|
305
297
|
}
|
|
306
298
|
return c.json({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Hono } from 'hono';
|
|
2
|
+
import type { AuthenticatedRouteDeps } from './deps.js';
|
|
3
|
+
export declare function markContextSourceAssertionsForReview(grantId: string): number;
|
|
4
|
+
export declare function registerContextSourceRoutes(authenticated: Hono, deps: AuthenticatedRouteDeps): void;
|