@ixo/oracle-runtime 0.0.1
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/bootstrap/ambient-factory.d.ts +32 -0
- package/dist/bootstrap/ambient-factory.d.ts.map +1 -0
- package/dist/bootstrap/ambient-factory.js +128 -0
- package/dist/bootstrap/create-oracle-app.d.ts +112 -0
- package/dist/bootstrap/create-oracle-app.d.ts.map +1 -0
- package/dist/bootstrap/create-oracle-app.js +530 -0
- package/dist/bootstrap/graceful-shutdown.d.ts +20 -0
- package/dist/bootstrap/graceful-shutdown.d.ts.map +1 -0
- package/dist/bootstrap/graceful-shutdown.js +61 -0
- package/dist/bootstrap/index.d.ts +13 -0
- package/dist/bootstrap/index.d.ts.map +1 -0
- package/dist/bootstrap/index.js +6 -0
- package/dist/bootstrap/inspect.d.ts +74 -0
- package/dist/bootstrap/inspect.d.ts.map +1 -0
- package/dist/bootstrap/inspect.js +111 -0
- package/dist/bootstrap/plugin-loader.d.ts +50 -0
- package/dist/bootstrap/plugin-loader.d.ts.map +1 -0
- package/dist/bootstrap/plugin-loader.js +119 -0
- package/dist/bootstrap/runtime-app-module.d.ts +38 -0
- package/dist/bootstrap/runtime-app-module.d.ts.map +1 -0
- package/dist/bootstrap/runtime-app-module.js +114 -0
- package/dist/bootstrap/schema-composer.d.ts +46 -0
- package/dist/bootstrap/schema-composer.d.ts.map +1 -0
- package/dist/bootstrap/schema-composer.js +65 -0
- package/dist/config/base-env-config.d.ts +31 -0
- package/dist/config/base-env-config.d.ts.map +1 -0
- package/dist/config/base-env-config.js +70 -0
- package/dist/config/base-env-schema.d.ts +77 -0
- package/dist/config/base-env-schema.d.ts.map +1 -0
- package/dist/config/base-env-schema.js +102 -0
- package/dist/events/scoped-emitter.d.ts +33 -0
- package/dist/events/scoped-emitter.d.ts.map +1 -0
- package/dist/events/scoped-emitter.js +32 -0
- package/dist/graph/index.d.ts +8 -0
- package/dist/graph/index.d.ts.map +1 -0
- package/dist/graph/index.js +6 -0
- package/dist/graph/main-agent-types.d.ts +88 -0
- package/dist/graph/main-agent-types.d.ts.map +1 -0
- package/dist/graph/main-agent-types.js +20 -0
- package/dist/graph/main-agent.d.ts +16 -0
- package/dist/graph/main-agent.d.ts.map +1 -0
- package/dist/graph/main-agent.js +251 -0
- package/dist/graph/middlewares/capability-gate-middleware.d.ts +35 -0
- package/dist/graph/middlewares/capability-gate-middleware.d.ts.map +1 -0
- package/dist/graph/middlewares/capability-gate-middleware.js +54 -0
- package/dist/graph/middlewares/index.d.ts +7 -0
- package/dist/graph/middlewares/index.d.ts.map +1 -0
- package/dist/graph/middlewares/index.js +6 -0
- package/dist/graph/middlewares/page-context-middleware.d.ts +23 -0
- package/dist/graph/middlewares/page-context-middleware.d.ts.map +1 -0
- package/dist/graph/middlewares/page-context-middleware.js +68 -0
- package/dist/graph/middlewares/safety-guardrail-middleware.d.ts +26 -0
- package/dist/graph/middlewares/safety-guardrail-middleware.d.ts.map +1 -0
- package/dist/graph/middlewares/safety-guardrail-middleware.js +88 -0
- package/dist/graph/middlewares/summarization-middleware.d.ts +17 -0
- package/dist/graph/middlewares/summarization-middleware.d.ts.map +1 -0
- package/dist/graph/middlewares/summarization-middleware.js +62 -0
- package/dist/graph/middlewares/tool-repetition-guard-middleware.d.ts +24 -0
- package/dist/graph/middlewares/tool-repetition-guard-middleware.d.ts.map +1 -0
- package/dist/graph/middlewares/tool-repetition-guard-middleware.js +112 -0
- package/dist/graph/middlewares/tool-validation-middleware.d.ts +24 -0
- package/dist/graph/middlewares/tool-validation-middleware.d.ts.map +1 -0
- package/dist/graph/middlewares/tool-validation-middleware.js +61 -0
- package/dist/graph/prompt-composer.d.ts +69 -0
- package/dist/graph/prompt-composer.d.ts.map +1 -0
- package/dist/graph/prompt-composer.js +315 -0
- package/dist/graph/state.d.ts +65 -0
- package/dist/graph/state.d.ts.map +1 -0
- package/dist/graph/state.js +60 -0
- package/dist/graph/sub-agent-fallback.d.ts +56 -0
- package/dist/graph/sub-agent-fallback.d.ts.map +1 -0
- package/dist/graph/sub-agent-fallback.js +79 -0
- package/dist/graph/subagent-as-tool.d.ts +77 -0
- package/dist/graph/subagent-as-tool.d.ts.map +1 -0
- package/dist/graph/subagent-as-tool.js +197 -0
- package/dist/graph/wrap-plugin-tool.d.ts +28 -0
- package/dist/graph/wrap-plugin-tool.d.ts.map +1 -0
- package/dist/graph/wrap-plugin-tool.js +30 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/llm/index.d.ts +2 -0
- package/dist/llm/index.d.ts.map +1 -0
- package/dist/llm/index.js +1 -0
- package/dist/llm/llm-provider.d.ts +41 -0
- package/dist/llm/llm-provider.d.ts.map +1 -0
- package/dist/llm/llm-provider.js +130 -0
- package/dist/manifest/index.d.ts +6 -0
- package/dist/manifest/index.d.ts.map +1 -0
- package/dist/manifest/index.js +3 -0
- package/dist/manifest/schema.d.ts +31 -0
- package/dist/manifest/schema.d.ts.map +1 -0
- package/dist/manifest/schema.js +44 -0
- package/dist/manifest/tier1-renderer.d.ts +31 -0
- package/dist/manifest/tier1-renderer.d.ts.map +1 -0
- package/dist/manifest/tier1-renderer.js +68 -0
- package/dist/manifest/validator.d.ts +34 -0
- package/dist/manifest/validator.d.ts.map +1 -0
- package/dist/manifest/validator.js +111 -0
- package/dist/matrix/checkpointer/matrix-upload-utils.d.ts +66 -0
- package/dist/matrix/checkpointer/matrix-upload-utils.d.ts.map +1 -0
- package/dist/matrix/checkpointer/matrix-upload-utils.js +228 -0
- package/dist/matrix/checkpointer/type.d.ts +4 -0
- package/dist/matrix/checkpointer/type.d.ts.map +1 -0
- package/dist/matrix/checkpointer/type.js +1 -0
- package/dist/matrix/checkpointer/user-matrix-sqlite-sync-service.module.d.ts +3 -0
- package/dist/matrix/checkpointer/user-matrix-sqlite-sync-service.module.d.ts.map +1 -0
- package/dist/matrix/checkpointer/user-matrix-sqlite-sync-service.module.js +22 -0
- package/dist/matrix/checkpointer/user-matrix-sqlite-sync-service.service.d.ts +93 -0
- package/dist/matrix/checkpointer/user-matrix-sqlite-sync-service.service.d.ts.map +1 -0
- package/dist/matrix/checkpointer/user-matrix-sqlite-sync-service.service.js +856 -0
- package/dist/matrix/room-membership.d.ts +11 -0
- package/dist/matrix/room-membership.d.ts.map +1 -0
- package/dist/matrix/room-membership.js +33 -0
- package/dist/meta-tools/index.d.ts +28 -0
- package/dist/meta-tools/index.d.ts.map +1 -0
- package/dist/meta-tools/index.js +24 -0
- package/dist/meta-tools/list-capabilities.d.ts +12 -0
- package/dist/meta-tools/list-capabilities.d.ts.map +1 -0
- package/dist/meta-tools/list-capabilities.js +55 -0
- package/dist/meta-tools/load-capability.d.ts +24 -0
- package/dist/meta-tools/load-capability.d.ts.map +1 -0
- package/dist/meta-tools/load-capability.js +82 -0
- package/dist/modules/auth/auth-header.middleware.d.ts +37 -0
- package/dist/modules/auth/auth-header.middleware.d.ts.map +1 -0
- package/dist/modules/auth/auth-header.middleware.js +115 -0
- package/dist/modules/auth/auth.module.d.ts +9 -0
- package/dist/modules/auth/auth.module.d.ts.map +1 -0
- package/dist/modules/auth/auth.module.js +27 -0
- package/dist/modules/auth/index.d.ts +3 -0
- package/dist/modules/auth/index.d.ts.map +1 -0
- package/dist/modules/auth/index.js +2 -0
- package/dist/modules/auth/validate-ucan-delegation.d.ts +31 -0
- package/dist/modules/auth/validate-ucan-delegation.d.ts.map +1 -0
- package/dist/modules/auth/validate-ucan-delegation.js +36 -0
- package/dist/modules/blob-store/blob-store.module.d.ts +10 -0
- package/dist/modules/blob-store/blob-store.module.d.ts.map +1 -0
- package/dist/modules/blob-store/blob-store.module.js +25 -0
- package/dist/modules/blob-store/blob-store.service.d.ts +66 -0
- package/dist/modules/blob-store/blob-store.service.d.ts.map +1 -0
- package/dist/modules/blob-store/blob-store.service.js +108 -0
- package/dist/modules/blob-store/index.d.ts +3 -0
- package/dist/modules/blob-store/index.d.ts.map +1 -0
- package/dist/modules/blob-store/index.js +2 -0
- package/dist/modules/health/health.controller.d.ts +18 -0
- package/dist/modules/health/health.controller.d.ts.map +1 -0
- package/dist/modules/health/health.controller.js +48 -0
- package/dist/modules/health/health.module.d.ts +8 -0
- package/dist/modules/health/health.module.d.ts.map +1 -0
- package/dist/modules/health/health.module.js +21 -0
- package/dist/modules/index.d.ts +8 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +6 -0
- package/dist/modules/messages/__test-fixtures__/deps.d.ts +41 -0
- package/dist/modules/messages/__test-fixtures__/deps.d.ts.map +1 -0
- package/dist/modules/messages/__test-fixtures__/deps.js +73 -0
- package/dist/modules/messages/__test-fixtures__/fake-agent.d.ts +27 -0
- package/dist/modules/messages/__test-fixtures__/fake-agent.d.ts.map +1 -0
- package/dist/modules/messages/__test-fixtures__/fake-agent.js +41 -0
- package/dist/modules/messages/__test-fixtures__/fake-response.d.ts +29 -0
- package/dist/modules/messages/__test-fixtures__/fake-response.d.ts.map +1 -0
- package/dist/modules/messages/__test-fixtures__/fake-response.js +55 -0
- package/dist/modules/messages/agent-builder.d.ts +64 -0
- package/dist/modules/messages/agent-builder.d.ts.map +1 -0
- package/dist/modules/messages/agent-builder.js +219 -0
- package/dist/modules/messages/batch-invoker.d.ts +36 -0
- package/dist/modules/messages/batch-invoker.d.ts.map +1 -0
- package/dist/modules/messages/batch-invoker.js +58 -0
- package/dist/modules/messages/dto/list-messages.dto.d.ts +4 -0
- package/dist/modules/messages/dto/list-messages.dto.d.ts.map +1 -0
- package/dist/modules/messages/dto/list-messages.dto.js +17 -0
- package/dist/modules/messages/dto/send-message.dto.d.ts +73 -0
- package/dist/modules/messages/dto/send-message.dto.d.ts.map +1 -0
- package/dist/modules/messages/dto/send-message.dto.js +318 -0
- package/dist/modules/messages/file-processing-credit-sink.port.d.ts +20 -0
- package/dist/modules/messages/file-processing-credit-sink.port.d.ts.map +1 -0
- package/dist/modules/messages/file-processing-credit-sink.port.js +1 -0
- package/dist/modules/messages/file-processing.service.d.ts +195 -0
- package/dist/modules/messages/file-processing.service.d.ts.map +1 -0
- package/dist/modules/messages/file-processing.service.js +1278 -0
- package/dist/modules/messages/homeserver-cache.d.ts +11 -0
- package/dist/modules/messages/homeserver-cache.d.ts.map +1 -0
- package/dist/modules/messages/homeserver-cache.js +31 -0
- package/dist/modules/messages/matrix-listener-bridge.d.ts +63 -0
- package/dist/modules/messages/matrix-listener-bridge.d.ts.map +1 -0
- package/dist/modules/messages/matrix-listener-bridge.js +280 -0
- package/dist/modules/messages/messages.controller.d.ts +13 -0
- package/dist/modules/messages/messages.controller.d.ts.map +1 -0
- package/dist/modules/messages/messages.controller.js +95 -0
- package/dist/modules/messages/messages.module.d.ts +3 -0
- package/dist/modules/messages/messages.module.d.ts.map +1 -0
- package/dist/modules/messages/messages.module.js +75 -0
- package/dist/modules/messages/messages.service.d.ts +112 -0
- package/dist/modules/messages/messages.service.d.ts.map +1 -0
- package/dist/modules/messages/messages.service.js +279 -0
- package/dist/modules/messages/oracle-runtime-bundle.d.ts +38 -0
- package/dist/modules/messages/oracle-runtime-bundle.d.ts.map +1 -0
- package/dist/modules/messages/oracle-runtime-bundle.js +40 -0
- package/dist/modules/messages/post-message-syncer.d.ts +30 -0
- package/dist/modules/messages/post-message-syncer.d.ts.map +1 -0
- package/dist/modules/messages/post-message-syncer.js +73 -0
- package/dist/modules/messages/request-preparer.d.ts +53 -0
- package/dist/modules/messages/request-preparer.d.ts.map +1 -0
- package/dist/modules/messages/request-preparer.js +139 -0
- package/dist/modules/messages/sse-stream-runner.d.ts +73 -0
- package/dist/modules/messages/sse-stream-runner.d.ts.map +1 -0
- package/dist/modules/messages/sse-stream-runner.js +352 -0
- package/dist/modules/messages/sse.utils.d.ts +29 -0
- package/dist/modules/messages/sse.utils.d.ts.map +1 -0
- package/dist/modules/messages/sse.utils.js +77 -0
- package/dist/modules/messages/user-context-fetcher.d.ts +41 -0
- package/dist/modules/messages/user-context-fetcher.d.ts.map +1 -0
- package/dist/modules/messages/user-context-fetcher.js +117 -0
- package/dist/modules/secrets/index.d.ts +2 -0
- package/dist/modules/secrets/index.d.ts.map +1 -0
- package/dist/modules/secrets/index.js +1 -0
- package/dist/modules/secrets/secrets.service.d.ts +29 -0
- package/dist/modules/secrets/secrets.service.d.ts.map +1 -0
- package/dist/modules/secrets/secrets.service.js +107 -0
- package/dist/modules/sessions/dto/create-session.dto.d.ts +6 -0
- package/dist/modules/sessions/dto/create-session.dto.d.ts.map +1 -0
- package/dist/modules/sessions/dto/create-session.dto.js +5 -0
- package/dist/modules/sessions/dto/delete-session.dto.d.ts +6 -0
- package/dist/modules/sessions/dto/delete-session.dto.d.ts.map +1 -0
- package/dist/modules/sessions/dto/delete-session.dto.js +5 -0
- package/dist/modules/sessions/dto/list-sessions.dto.d.ts +7 -0
- package/dist/modules/sessions/dto/list-sessions.dto.d.ts.map +1 -0
- package/dist/modules/sessions/dto/list-sessions.dto.js +6 -0
- package/dist/modules/sessions/session-history-processor.service.d.ts +48 -0
- package/dist/modules/sessions/session-history-processor.service.d.ts.map +1 -0
- package/dist/modules/sessions/session-history-processor.service.js +254 -0
- package/dist/modules/sessions/sessions.controller.d.ts +13 -0
- package/dist/modules/sessions/sessions.controller.d.ts.map +1 -0
- package/dist/modules/sessions/sessions.controller.js +113 -0
- package/dist/modules/sessions/sessions.module.d.ts +3 -0
- package/dist/modules/sessions/sessions.module.d.ts.map +1 -0
- package/dist/modules/sessions/sessions.module.js +49 -0
- package/dist/modules/sessions/sessions.service.d.ts +23 -0
- package/dist/modules/sessions/sessions.service.d.ts.map +1 -0
- package/dist/modules/sessions/sessions.service.js +168 -0
- package/dist/modules/subscription/subscription.middleware.d.ts +37 -0
- package/dist/modules/subscription/subscription.middleware.d.ts.map +1 -0
- package/dist/modules/subscription/subscription.middleware.js +141 -0
- package/dist/modules/subscription/subscription.module.d.ts +12 -0
- package/dist/modules/subscription/subscription.module.d.ts.map +1 -0
- package/dist/modules/subscription/subscription.module.js +26 -0
- package/dist/modules/throttler/throttler.module.d.ts +11 -0
- package/dist/modules/throttler/throttler.module.d.ts.map +1 -0
- package/dist/modules/throttler/throttler.module.js +32 -0
- package/dist/modules/ucan/index.d.ts +7 -0
- package/dist/modules/ucan/index.d.ts.map +1 -0
- package/dist/modules/ucan/index.js +6 -0
- package/dist/modules/ucan/ucan.config.d.ts +87 -0
- package/dist/modules/ucan/ucan.config.d.ts.map +1 -0
- package/dist/modules/ucan/ucan.config.js +114 -0
- package/dist/modules/ucan/ucan.module.d.ts +29 -0
- package/dist/modules/ucan/ucan.module.d.ts.map +1 -0
- package/dist/modules/ucan/ucan.module.js +46 -0
- package/dist/modules/ucan/ucan.service.d.ts +129 -0
- package/dist/modules/ucan/ucan.service.d.ts.map +1 -0
- package/dist/modules/ucan/ucan.service.js +582 -0
- package/dist/modules/ws/emitter.d.ts +12 -0
- package/dist/modules/ws/emitter.d.ts.map +1 -0
- package/dist/modules/ws/emitter.js +12 -0
- package/dist/modules/ws/ws.gateway.d.ts +34 -0
- package/dist/modules/ws/ws.gateway.d.ts.map +1 -0
- package/dist/modules/ws/ws.gateway.js +241 -0
- package/dist/modules/ws/ws.module.d.ts +3 -0
- package/dist/modules/ws/ws.module.d.ts.map +1 -0
- package/dist/modules/ws/ws.module.js +21 -0
- package/dist/modules/ws/ws.service.d.ts +25 -0
- package/dist/modules/ws/ws.service.d.ts.map +1 -0
- package/dist/modules/ws/ws.service.js +113 -0
- package/dist/plugin-api/define-plugin.d.ts +19 -0
- package/dist/plugin-api/define-plugin.d.ts.map +1 -0
- package/dist/plugin-api/define-plugin.js +25 -0
- package/dist/plugin-api/oracle-plugin.d.ts +92 -0
- package/dist/plugin-api/oracle-plugin.d.ts.map +1 -0
- package/dist/plugin-api/oracle-plugin.js +15 -0
- package/dist/plugin-api/tool-helper.d.ts +33 -0
- package/dist/plugin-api/tool-helper.d.ts.map +1 -0
- package/dist/plugin-api/tool-helper.js +40 -0
- package/dist/plugin-api/types.d.ts +378 -0
- package/dist/plugin-api/types.d.ts.map +1 -0
- package/dist/plugin-api/types.js +1 -0
- package/dist/plugins/agui/agui-agent.d.ts +10 -0
- package/dist/plugins/agui/agui-agent.d.ts.map +1 -0
- package/dist/plugins/agui/agui-agent.js +110 -0
- package/dist/plugins/agui/agui.plugin.d.ts +16 -0
- package/dist/plugins/agui/agui.plugin.d.ts.map +1 -0
- package/dist/plugins/agui/agui.plugin.js +117 -0
- package/dist/plugins/agui/index.d.ts +3 -0
- package/dist/plugins/agui/index.d.ts.map +1 -0
- package/dist/plugins/agui/index.js +2 -0
- package/dist/plugins/composio/composio-tools.d.ts +59 -0
- package/dist/plugins/composio/composio-tools.d.ts.map +1 -0
- package/dist/plugins/composio/composio-tools.js +88 -0
- package/dist/plugins/composio/composio-ucan.d.ts +14 -0
- package/dist/plugins/composio/composio-ucan.d.ts.map +1 -0
- package/dist/plugins/composio/composio-ucan.js +32 -0
- package/dist/plugins/composio/composio.plugin.d.ts +45 -0
- package/dist/plugins/composio/composio.plugin.d.ts.map +1 -0
- package/dist/plugins/composio/composio.plugin.js +116 -0
- package/dist/plugins/composio/index.d.ts +4 -0
- package/dist/plugins/composio/index.d.ts.map +1 -0
- package/dist/plugins/composio/index.js +3 -0
- package/dist/plugins/credits/claim-processing.module.d.ts +28 -0
- package/dist/plugins/credits/claim-processing.module.d.ts.map +1 -0
- package/dist/plugins/credits/claim-processing.module.js +37 -0
- package/dist/plugins/credits/claim-processing.service.d.ts +92 -0
- package/dist/plugins/credits/claim-processing.service.d.ts.map +1 -0
- package/dist/plugins/credits/claim-processing.service.js +406 -0
- package/dist/plugins/credits/credits-middleware.d.ts +23 -0
- package/dist/plugins/credits/credits-middleware.d.ts.map +1 -0
- package/dist/plugins/credits/credits-middleware.js +154 -0
- package/dist/plugins/credits/credits.plugin.d.ts +55 -0
- package/dist/plugins/credits/credits.plugin.d.ts.map +1 -0
- package/dist/plugins/credits/credits.plugin.js +95 -0
- package/dist/plugins/credits/file-processing-sink.module.d.ts +18 -0
- package/dist/plugins/credits/file-processing-sink.module.d.ts.map +1 -0
- package/dist/plugins/credits/file-processing-sink.module.js +56 -0
- package/dist/plugins/credits/index.d.ts +8 -0
- package/dist/plugins/credits/index.d.ts.map +1 -0
- package/dist/plugins/credits/index.js +7 -0
- package/dist/plugins/credits/subscription-sink.module.d.ts +23 -0
- package/dist/plugins/credits/subscription-sink.module.d.ts.map +1 -0
- package/dist/plugins/credits/subscription-sink.module.js +54 -0
- package/dist/plugins/credits/token-limiter.d.ts +139 -0
- package/dist/plugins/credits/token-limiter.d.ts.map +1 -0
- package/dist/plugins/credits/token-limiter.js +302 -0
- package/dist/plugins/domain-indexer/domain-indexer-agent.d.ts +7 -0
- package/dist/plugins/domain-indexer/domain-indexer-agent.d.ts.map +1 -0
- package/dist/plugins/domain-indexer/domain-indexer-agent.js +48 -0
- package/dist/plugins/domain-indexer/domain-indexer-tools.d.ts +8 -0
- package/dist/plugins/domain-indexer/domain-indexer-tools.d.ts.map +1 -0
- package/dist/plugins/domain-indexer/domain-indexer-tools.js +194 -0
- package/dist/plugins/domain-indexer/domain-indexer.plugin.d.ts +20 -0
- package/dist/plugins/domain-indexer/domain-indexer.plugin.d.ts.map +1 -0
- package/dist/plugins/domain-indexer/domain-indexer.plugin.js +78 -0
- package/dist/plugins/domain-indexer/index.d.ts +2 -0
- package/dist/plugins/domain-indexer/index.d.ts.map +1 -0
- package/dist/plugins/domain-indexer/index.js +1 -0
- package/dist/plugins/editor/apply-sandbox-output.d.ts +33 -0
- package/dist/plugins/editor/apply-sandbox-output.d.ts.map +1 -0
- package/dist/plugins/editor/apply-sandbox-output.js +302 -0
- package/dist/plugins/editor/block-actions.d.ts +84 -0
- package/dist/plugins/editor/block-actions.d.ts.map +1 -0
- package/dist/plugins/editor/block-actions.js +471 -0
- package/dist/plugins/editor/blocknote-helper.d.ts +147 -0
- package/dist/plugins/editor/blocknote-helper.d.ts.map +1 -0
- package/dist/plugins/editor/blocknote-helper.js +542 -0
- package/dist/plugins/editor/blocknote-tools.d.ts +364 -0
- package/dist/plugins/editor/blocknote-tools.d.ts.map +1 -0
- package/dist/plugins/editor/blocknote-tools.js +2123 -0
- package/dist/plugins/editor/editor-agent.d.ts +47 -0
- package/dist/plugins/editor/editor-agent.d.ts.map +1 -0
- package/dist/plugins/editor/editor-agent.js +158 -0
- package/dist/plugins/editor/editor-mx.d.ts +56 -0
- package/dist/plugins/editor/editor-mx.d.ts.map +1 -0
- package/dist/plugins/editor/editor-mx.js +100 -0
- package/dist/plugins/editor/editor.plugin.d.ts +32 -0
- package/dist/plugins/editor/editor.plugin.d.ts.map +1 -0
- package/dist/plugins/editor/editor.plugin.js +189 -0
- package/dist/plugins/editor/index.d.ts +6 -0
- package/dist/plugins/editor/index.d.ts.map +1 -0
- package/dist/plugins/editor/index.js +5 -0
- package/dist/plugins/editor/mint-invocation-tool.d.ts +72 -0
- package/dist/plugins/editor/mint-invocation-tool.d.ts.map +1 -0
- package/dist/plugins/editor/mint-invocation-tool.js +173 -0
- package/dist/plugins/editor/page-functions.d.ts +100 -0
- package/dist/plugins/editor/page-functions.d.ts.map +1 -0
- package/dist/plugins/editor/page-functions.js +317 -0
- package/dist/plugins/editor/page-tools.d.ts +75 -0
- package/dist/plugins/editor/page-tools.d.ts.map +1 -0
- package/dist/plugins/editor/page-tools.js +238 -0
- package/dist/plugins/editor/prompts.d.ts +22 -0
- package/dist/plugins/editor/prompts.d.ts.map +1 -0
- package/dist/plugins/editor/prompts.js +451 -0
- package/dist/plugins/editor/provider.d.ts +101 -0
- package/dist/plugins/editor/provider.d.ts.map +1 -0
- package/dist/plugins/editor/provider.js +249 -0
- package/dist/plugins/editor/standalone-editor-tool.d.ts +17 -0
- package/dist/plugins/editor/standalone-editor-tool.d.ts.map +1 -0
- package/dist/plugins/editor/standalone-editor-tool.js +136 -0
- package/dist/plugins/editor/survey-helpers.d.ts +112 -0
- package/dist/plugins/editor/survey-helpers.d.ts.map +1 -0
- package/dist/plugins/editor/survey-helpers.js +358 -0
- package/dist/plugins/firecrawl/firecrawl-agent.d.ts +7 -0
- package/dist/plugins/firecrawl/firecrawl-agent.d.ts.map +1 -0
- package/dist/plugins/firecrawl/firecrawl-agent.js +84 -0
- package/dist/plugins/firecrawl/firecrawl-tools.d.ts +37 -0
- package/dist/plugins/firecrawl/firecrawl-tools.d.ts.map +1 -0
- package/dist/plugins/firecrawl/firecrawl-tools.js +129 -0
- package/dist/plugins/firecrawl/firecrawl.plugin.d.ts +32 -0
- package/dist/plugins/firecrawl/firecrawl.plugin.d.ts.map +1 -0
- package/dist/plugins/firecrawl/firecrawl.plugin.js +69 -0
- package/dist/plugins/firecrawl/index.d.ts +3 -0
- package/dist/plugins/firecrawl/index.d.ts.map +1 -0
- package/dist/plugins/firecrawl/index.js +2 -0
- package/dist/plugins/index.d.ts +47 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +69 -0
- package/dist/plugins/matrix-group-chats/channel-memory.module.d.ts +7 -0
- package/dist/plugins/matrix-group-chats/channel-memory.module.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/channel-memory.module.js +22 -0
- package/dist/plugins/matrix-group-chats/channel-memory.repo.d.ts +62 -0
- package/dist/plugins/matrix-group-chats/channel-memory.repo.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/channel-memory.repo.js +311 -0
- package/dist/plugins/matrix-group-chats/channel-memory.service.d.ts +89 -0
- package/dist/plugins/matrix-group-chats/channel-memory.service.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/channel-memory.service.js +565 -0
- package/dist/plugins/matrix-group-chats/channel-memory.summarizer.d.ts +18 -0
- package/dist/plugins/matrix-group-chats/channel-memory.summarizer.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/channel-memory.summarizer.js +128 -0
- package/dist/plugins/matrix-group-chats/channel-memory.types.d.ts +50 -0
- package/dist/plugins/matrix-group-chats/channel-memory.types.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/channel-memory.types.js +2 -0
- package/dist/plugins/matrix-group-chats/guard.d.ts +83 -0
- package/dist/plugins/matrix-group-chats/guard.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/guard.js +138 -0
- package/dist/plugins/matrix-group-chats/index.d.ts +59 -0
- package/dist/plugins/matrix-group-chats/index.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/index.js +140 -0
- package/dist/plugins/matrix-group-chats/middleware.d.ts +31 -0
- package/dist/plugins/matrix-group-chats/middleware.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/middleware.js +186 -0
- package/dist/plugins/matrix-group-chats/power-levels.d.ts +15 -0
- package/dist/plugins/matrix-group-chats/power-levels.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/power-levels.js +36 -0
- package/dist/plugins/matrix-group-chats/room-info.d.ts +23 -0
- package/dist/plugins/matrix-group-chats/room-info.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/room-info.js +34 -0
- package/dist/plugins/matrix-group-chats/tools.d.ts +8 -0
- package/dist/plugins/matrix-group-chats/tools.d.ts.map +1 -0
- package/dist/plugins/matrix-group-chats/tools.js +154 -0
- package/dist/plugins/memory/index.d.ts +5 -0
- package/dist/plugins/memory/index.d.ts.map +1 -0
- package/dist/plugins/memory/index.js +3 -0
- package/dist/plugins/memory/memory-tools.d.ts +52 -0
- package/dist/plugins/memory/memory-tools.d.ts.map +1 -0
- package/dist/plugins/memory/memory-tools.js +88 -0
- package/dist/plugins/memory/memory-ucan.d.ts +17 -0
- package/dist/plugins/memory/memory-ucan.d.ts.map +1 -0
- package/dist/plugins/memory/memory-ucan.js +43 -0
- package/dist/plugins/memory/memory.plugin.d.ts +51 -0
- package/dist/plugins/memory/memory.plugin.d.ts.map +1 -0
- package/dist/plugins/memory/memory.plugin.js +76 -0
- package/dist/plugins/memory/types.d.ts +75 -0
- package/dist/plugins/memory/types.d.ts.map +1 -0
- package/dist/plugins/memory/types.js +2 -0
- package/dist/plugins/portal/index.d.ts +3 -0
- package/dist/plugins/portal/index.d.ts.map +1 -0
- package/dist/plugins/portal/index.js +2 -0
- package/dist/plugins/portal/portal-agent.d.ts +9 -0
- package/dist/plugins/portal/portal-agent.d.ts.map +1 -0
- package/dist/plugins/portal/portal-agent.js +70 -0
- package/dist/plugins/portal/portal.plugin.d.ts +16 -0
- package/dist/plugins/portal/portal.plugin.d.ts.map +1 -0
- package/dist/plugins/portal/portal.plugin.js +115 -0
- package/dist/plugins/sandbox/index.d.ts +3 -0
- package/dist/plugins/sandbox/index.d.ts.map +1 -0
- package/dist/plugins/sandbox/index.js +2 -0
- package/dist/plugins/sandbox/sandbox-mcp.d.ts +46 -0
- package/dist/plugins/sandbox/sandbox-mcp.d.ts.map +1 -0
- package/dist/plugins/sandbox/sandbox-mcp.js +80 -0
- package/dist/plugins/sandbox/sandbox-write-blob.d.ts +22 -0
- package/dist/plugins/sandbox/sandbox-write-blob.d.ts.map +1 -0
- package/dist/plugins/sandbox/sandbox-write-blob.js +80 -0
- package/dist/plugins/sandbox/sandbox.plugin.d.ts +80 -0
- package/dist/plugins/sandbox/sandbox.plugin.d.ts.map +1 -0
- package/dist/plugins/sandbox/sandbox.plugin.js +204 -0
- package/dist/plugins/skills/index.d.ts +3 -0
- package/dist/plugins/skills/index.d.ts.map +1 -0
- package/dist/plugins/skills/index.js +2 -0
- package/dist/plugins/skills/skills-tools.d.ts +20 -0
- package/dist/plugins/skills/skills-tools.d.ts.map +1 -0
- package/dist/plugins/skills/skills-tools.js +204 -0
- package/dist/plugins/skills/skills-ucan.d.ts +24 -0
- package/dist/plugins/skills/skills-ucan.d.ts.map +1 -0
- package/dist/plugins/skills/skills-ucan.js +28 -0
- package/dist/plugins/skills/skills.plugin.d.ts +37 -0
- package/dist/plugins/skills/skills.plugin.d.ts.map +1 -0
- package/dist/plugins/skills/skills.plugin.js +82 -0
- package/dist/plugins/slack/index.d.ts +4 -0
- package/dist/plugins/slack/index.d.ts.map +1 -0
- package/dist/plugins/slack/index.js +3 -0
- package/dist/plugins/slack/slack.module.d.ts +9 -0
- package/dist/plugins/slack/slack.module.d.ts.map +1 -0
- package/dist/plugins/slack/slack.module.js +27 -0
- package/dist/plugins/slack/slack.plugin.d.ts +30 -0
- package/dist/plugins/slack/slack.plugin.d.ts.map +1 -0
- package/dist/plugins/slack/slack.plugin.js +40 -0
- package/dist/plugins/slack/slack.service.d.ts +32 -0
- package/dist/plugins/slack/slack.service.d.ts.map +1 -0
- package/dist/plugins/slack/slack.service.js +157 -0
- package/dist/plugins/user-preferences/index.d.ts +4 -0
- package/dist/plugins/user-preferences/index.d.ts.map +1 -0
- package/dist/plugins/user-preferences/index.js +3 -0
- package/dist/plugins/user-preferences/service/user-preferences.service.d.ts +61 -0
- package/dist/plugins/user-preferences/service/user-preferences.service.d.ts.map +1 -0
- package/dist/plugins/user-preferences/service/user-preferences.service.js +105 -0
- package/dist/plugins/user-preferences/user-preferences-http.module.d.ts +10 -0
- package/dist/plugins/user-preferences/user-preferences-http.module.d.ts.map +1 -0
- package/dist/plugins/user-preferences/user-preferences-http.module.js +23 -0
- package/dist/plugins/user-preferences/user-preferences-tool.d.ts +22 -0
- package/dist/plugins/user-preferences/user-preferences-tool.d.ts.map +1 -0
- package/dist/plugins/user-preferences/user-preferences-tool.js +103 -0
- package/dist/plugins/user-preferences/user-preferences.controller.d.ts +18 -0
- package/dist/plugins/user-preferences/user-preferences.controller.d.ts.map +1 -0
- package/dist/plugins/user-preferences/user-preferences.controller.js +72 -0
- package/dist/plugins/user-preferences/user-preferences.plugin.d.ts +27 -0
- package/dist/plugins/user-preferences/user-preferences.plugin.d.ts.map +1 -0
- package/dist/plugins/user-preferences/user-preferences.plugin.js +66 -0
- package/dist/registries/config-schema-registry.d.ts +24 -0
- package/dist/registries/config-schema-registry.d.ts.map +1 -0
- package/dist/registries/config-schema-registry.js +27 -0
- package/dist/registries/index.d.ts +13 -0
- package/dist/registries/index.d.ts.map +1 -0
- package/dist/registries/index.js +6 -0
- package/dist/registries/manifest-registry.d.ts +49 -0
- package/dist/registries/manifest-registry.d.ts.map +1 -0
- package/dist/registries/manifest-registry.js +53 -0
- package/dist/registries/middleware-registry.d.ts +41 -0
- package/dist/registries/middleware-registry.d.ts.map +1 -0
- package/dist/registries/middleware-registry.js +52 -0
- package/dist/registries/shared-state-registry.d.ts +41 -0
- package/dist/registries/shared-state-registry.d.ts.map +1 -0
- package/dist/registries/shared-state-registry.js +65 -0
- package/dist/registries/subagent-registry.d.ts +55 -0
- package/dist/registries/subagent-registry.d.ts.map +1 -0
- package/dist/registries/subagent-registry.js +106 -0
- package/dist/registries/test-fixtures.d.ts +47 -0
- package/dist/registries/test-fixtures.d.ts.map +1 -0
- package/dist/registries/test-fixtures.js +168 -0
- package/dist/registries/tool-registry.d.ts +74 -0
- package/dist/registries/tool-registry.d.ts.map +1 -0
- package/dist/registries/tool-registry.js +130 -0
- package/dist/runtime-context/ambient.d.ts +118 -0
- package/dist/runtime-context/ambient.d.ts.map +1 -0
- package/dist/runtime-context/ambient.js +1 -0
- package/dist/runtime-context/build-plugin.d.ts +20 -0
- package/dist/runtime-context/build-plugin.d.ts.map +1 -0
- package/dist/runtime-context/build-plugin.js +16 -0
- package/dist/runtime-context/build-runtime.d.ts +60 -0
- package/dist/runtime-context/build-runtime.d.ts.map +1 -0
- package/dist/runtime-context/build-runtime.js +81 -0
- package/dist/testing/create-test-runtime.d.ts +95 -0
- package/dist/testing/create-test-runtime.d.ts.map +1 -0
- package/dist/testing/create-test-runtime.js +302 -0
- package/dist/testing/index.d.ts +5 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +5 -0
- package/dist/testing/integration/chat-client.d.ts +143 -0
- package/dist/testing/integration/chat-client.d.ts.map +1 -0
- package/dist/testing/integration/chat-client.js +238 -0
- package/dist/testing/integration/harness.d.ts +189 -0
- package/dist/testing/integration/harness.d.ts.map +1 -0
- package/dist/testing/integration/harness.js +461 -0
- package/dist/testing/integration/index.d.ts +14 -0
- package/dist/testing/integration/index.d.ts.map +1 -0
- package/dist/testing/integration/index.js +18 -0
- package/dist/testing/integration/setup.d.ts +2 -0
- package/dist/testing/integration/setup.d.ts.map +1 -0
- package/dist/testing/integration/setup.js +41 -0
- package/dist/testing/integration/sse-parser.d.ts +99 -0
- package/dist/testing/integration/sse-parser.d.ts.map +1 -0
- package/dist/testing/integration/sse-parser.js +125 -0
- package/dist/testing/integration/ucan.d.ts +74 -0
- package/dist/testing/integration/ucan.d.ts.map +1 -0
- package/dist/testing/integration/ucan.js +95 -0
- package/dist/testing/integration/wait-for-matrix-loaded.d.ts +19 -0
- package/dist/testing/integration/wait-for-matrix-loaded.d.ts.map +1 -0
- package/dist/testing/integration/wait-for-matrix-loaded.js +31 -0
- package/dist/testing/mocks.d.ts +64 -0
- package/dist/testing/mocks.d.ts.map +1 -0
- package/dist/testing/mocks.js +141 -0
- package/dist/testing/nest-doubles.d.ts +10 -0
- package/dist/testing/nest-doubles.d.ts.map +1 -0
- package/dist/testing/nest-doubles.js +19 -0
- package/dist/utils/emoji.d.ts +3 -0
- package/dist/utils/emoji.d.ts.map +1 -0
- package/dist/utils/emoji.js +36 -0
- package/package.json +102 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type BaseMessage } from 'langchain';
|
|
2
|
+
import type { CompiledMainAgent } from '../../graph/main-agent-types.js';
|
|
3
|
+
import type { TMainAgentGraphState } from '../../graph/state.js';
|
|
4
|
+
import type { SendMessageRequest } from './messages.service.js';
|
|
5
|
+
import { OracleRuntimeBundleHolder } from './oracle-runtime-bundle.js';
|
|
6
|
+
import { type PreparedRequest } from './request-preparer.js';
|
|
7
|
+
import { UserContextFetcher } from './user-context-fetcher.js';
|
|
8
|
+
export interface BuildAgentArgs {
|
|
9
|
+
payload: SendMessageRequest;
|
|
10
|
+
prepared: PreparedRequest;
|
|
11
|
+
inputMessages: BaseMessage[];
|
|
12
|
+
}
|
|
13
|
+
export interface BuiltAgent {
|
|
14
|
+
agent: CompiledMainAgent;
|
|
15
|
+
stateInput: Partial<TMainAgentGraphState>;
|
|
16
|
+
/**
|
|
17
|
+
* Config passed as the 2nd argument to `agent.streamEvents` /
|
|
18
|
+
* `agent.invoke`. `version: 'v2'` is REQUIRED for streaming — without it
|
|
19
|
+
* langchain defaults to v1 (or emits nothing) and the SSE connection
|
|
20
|
+
* hangs with no events on the wire. `streamMode` + `recursionLimit`
|
|
21
|
+
* match the apps/app reference values.
|
|
22
|
+
*
|
|
23
|
+
* Typed loosely (`Record<string, unknown>`) because langchain's
|
|
24
|
+
* `streamEvents` config union doesn't perfectly intersect with the
|
|
25
|
+
* langgraph-specific options we pass.
|
|
26
|
+
*/
|
|
27
|
+
langGraphConfig: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Bridges a prepared HTTP request into a compiled `ReactAgent` ready to
|
|
31
|
+
* stream or invoke.
|
|
32
|
+
*
|
|
33
|
+
* The checkpointer is supplied by the bundle's hooks — populated by
|
|
34
|
+
* `createOracleApp` and NOT overridden here. Forks that pass a custom
|
|
35
|
+
* `hooks.checkpointerForUser` to `createOracleApp` keep their override;
|
|
36
|
+
* the runtime's per-user SQLite saver is the default fallback.
|
|
37
|
+
*
|
|
38
|
+
* `userContext` (Memory Engine batch) and `userPreferences` (Matrix room
|
|
39
|
+
* state) are fetched HERE — before `createMainAgent` — and merged into the
|
|
40
|
+
* build-time state so the system prompt includes them on turn 1.
|
|
41
|
+
* `UserContextFetcher` caches per room for 3 minutes; `UserPreferencesService`
|
|
42
|
+
* caches internally too. Both fall through to `priorState` if the fetch
|
|
43
|
+
* fails or the upstream is unconfigured.
|
|
44
|
+
*
|
|
45
|
+
* Reads the prior checkpoint for OTHER build-time decisions: which
|
|
46
|
+
* on-demand plugins are loaded (`state.loadedPlugins`) and the remembered
|
|
47
|
+
* `currentEntityDid`. Without this preload, the first turn after restart
|
|
48
|
+
* would expose no on-demand plugins.
|
|
49
|
+
*
|
|
50
|
+
* Per-request overrides from the payload (`metadata.editorRoomId`,
|
|
51
|
+
* `metadata.spaceId`, `metadata.currentEntityDid`, `tools`, `agActions`)
|
|
52
|
+
* win over the checkpointed values — both in the build-time state used by
|
|
53
|
+
* `createMainAgent` and in the `stateInput` fed to `invoke` /
|
|
54
|
+
* `streamEvents`. The annotation-state reducers persist the new values
|
|
55
|
+
* on the next checkpoint.
|
|
56
|
+
*/
|
|
57
|
+
export declare class AgentBuilder {
|
|
58
|
+
private readonly bundleHolder;
|
|
59
|
+
private readonly userContextFetcher;
|
|
60
|
+
private readonly logger;
|
|
61
|
+
constructor(bundleHolder: OracleRuntimeBundleHolder, userContextFetcher: UserContextFetcher);
|
|
62
|
+
build(args: BuildAgentArgs, abortController?: AbortController): Promise<BuiltAgent>;
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=agent-builder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-builder.d.ts","sourceRoot":"","sources":["../../../src/modules/messages/agent-builder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAGjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,kBAAkB,CAAC;IAC5B,QAAQ,EAAE,eAAe,CAAC;IAC1B,aAAa,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,iBAAiB,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAC1C;;;;;;;;;;OAUG;IACH,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC1C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBACa,YAAY;IAIrB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IAJrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAiC;gBAGrC,YAAY,EAAE,yBAAyB,EACvC,kBAAkB,EAAE,kBAAkB;IAGnD,KAAK,CACT,IAAI,EAAE,cAAc,EACpB,eAAe,CAAC,EAAE,eAAe,GAChC,OAAO,CAAC,UAAU,CAAC;CA6LvB"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
var AgentBuilder_1;
|
|
11
|
+
import { Injectable, Logger } from '@nestjs/common';
|
|
12
|
+
import { createMainAgent } from '../../graph/main-agent.js';
|
|
13
|
+
import { UserPreferencesService } from '../../plugins/user-preferences/service/user-preferences.service.js';
|
|
14
|
+
import { OracleRuntimeBundleHolder } from './oracle-runtime-bundle.js';
|
|
15
|
+
import { UserContextFetcher } from './user-context-fetcher.js';
|
|
16
|
+
/**
|
|
17
|
+
* Bridges a prepared HTTP request into a compiled `ReactAgent` ready to
|
|
18
|
+
* stream or invoke.
|
|
19
|
+
*
|
|
20
|
+
* The checkpointer is supplied by the bundle's hooks — populated by
|
|
21
|
+
* `createOracleApp` and NOT overridden here. Forks that pass a custom
|
|
22
|
+
* `hooks.checkpointerForUser` to `createOracleApp` keep their override;
|
|
23
|
+
* the runtime's per-user SQLite saver is the default fallback.
|
|
24
|
+
*
|
|
25
|
+
* `userContext` (Memory Engine batch) and `userPreferences` (Matrix room
|
|
26
|
+
* state) are fetched HERE — before `createMainAgent` — and merged into the
|
|
27
|
+
* build-time state so the system prompt includes them on turn 1.
|
|
28
|
+
* `UserContextFetcher` caches per room for 3 minutes; `UserPreferencesService`
|
|
29
|
+
* caches internally too. Both fall through to `priorState` if the fetch
|
|
30
|
+
* fails or the upstream is unconfigured.
|
|
31
|
+
*
|
|
32
|
+
* Reads the prior checkpoint for OTHER build-time decisions: which
|
|
33
|
+
* on-demand plugins are loaded (`state.loadedPlugins`) and the remembered
|
|
34
|
+
* `currentEntityDid`. Without this preload, the first turn after restart
|
|
35
|
+
* would expose no on-demand plugins.
|
|
36
|
+
*
|
|
37
|
+
* Per-request overrides from the payload (`metadata.editorRoomId`,
|
|
38
|
+
* `metadata.spaceId`, `metadata.currentEntityDid`, `tools`, `agActions`)
|
|
39
|
+
* win over the checkpointed values — both in the build-time state used by
|
|
40
|
+
* `createMainAgent` and in the `stateInput` fed to `invoke` /
|
|
41
|
+
* `streamEvents`. The annotation-state reducers persist the new values
|
|
42
|
+
* on the next checkpoint.
|
|
43
|
+
*/
|
|
44
|
+
let AgentBuilder = AgentBuilder_1 = class AgentBuilder {
|
|
45
|
+
bundleHolder;
|
|
46
|
+
userContextFetcher;
|
|
47
|
+
logger = new Logger(AgentBuilder_1.name);
|
|
48
|
+
constructor(bundleHolder, userContextFetcher) {
|
|
49
|
+
this.bundleHolder = bundleHolder;
|
|
50
|
+
this.userContextFetcher = userContextFetcher;
|
|
51
|
+
}
|
|
52
|
+
async build(args, abortController) {
|
|
53
|
+
const { payload, prepared, inputMessages } = args;
|
|
54
|
+
const bundle = this.bundleHolder.get();
|
|
55
|
+
const hooks = bundle.hooks ?? {};
|
|
56
|
+
// ────────────────────────────────────────────────────────────────────
|
|
57
|
+
// Prior state from the checkpoint — used for build-time decisions that
|
|
58
|
+
// must survive restarts: `loadedPlugins` (so on-demand capabilities
|
|
59
|
+
// don't need to be re-loaded each session) and `currentEntityDid`.
|
|
60
|
+
// We read via `checkpointer.getTuple(config)` — the same call
|
|
61
|
+
// LangGraph itself makes inside `agent.getState()`. Between invokes
|
|
62
|
+
// there are no pending writes so the tuple's `channel_values` matches
|
|
63
|
+
// what `getState().values` would return; reading directly skips a
|
|
64
|
+
// redundant agent rebuild + state-snapshot materialization.
|
|
65
|
+
// ────────────────────────────────────────────────────────────────────
|
|
66
|
+
let checkpointer;
|
|
67
|
+
if (hooks.checkpointerForUser) {
|
|
68
|
+
checkpointer = await hooks.checkpointerForUser(payload.did);
|
|
69
|
+
}
|
|
70
|
+
let priorState = {};
|
|
71
|
+
if (checkpointer) {
|
|
72
|
+
try {
|
|
73
|
+
const tuple = await checkpointer.getTuple({
|
|
74
|
+
configurable: { thread_id: prepared.langchainThreadId },
|
|
75
|
+
});
|
|
76
|
+
const channelValues = tuple?.checkpoint?.channel_values;
|
|
77
|
+
if (channelValues)
|
|
78
|
+
priorState = channelValues;
|
|
79
|
+
}
|
|
80
|
+
catch {
|
|
81
|
+
// First message in a thread — no prior tuple. Continue with empty state.
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// ────────────────────────────────────────────────────────────────────
|
|
85
|
+
// Fetch userContext + userPreferences BEFORE building the agent so the
|
|
86
|
+
// system prompt sees both on turn 1. The previous middleware approach
|
|
87
|
+
// wrote them mid-run, by which point the prompt was already locked.
|
|
88
|
+
// Both are best-effort: failures fall through to checkpointed values
|
|
89
|
+
// and the agent still works without enrichment.
|
|
90
|
+
// ────────────────────────────────────────────────────────────────────
|
|
91
|
+
this.logger.log(`[AgentBuilder] resolving prompt enrichments — roomId=${prepared.roomId}, did=${payload.did}`);
|
|
92
|
+
const userPrefsService = UserPreferencesService.getInstance();
|
|
93
|
+
const [freshUserContext, freshUserPreferences] = await Promise.all([
|
|
94
|
+
this.userContextFetcher
|
|
95
|
+
.fetch({
|
|
96
|
+
roomId: prepared.roomId,
|
|
97
|
+
userDid: payload.did,
|
|
98
|
+
sessionId: prepared.sessionId,
|
|
99
|
+
})
|
|
100
|
+
.catch((err) => {
|
|
101
|
+
this.logger.warn(`[AgentBuilder] userContext fetch failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
102
|
+
return undefined;
|
|
103
|
+
}),
|
|
104
|
+
userPrefsService.get(prepared.roomId).catch((err) => {
|
|
105
|
+
this.logger.warn(`[AgentBuilder] userPreferences fetch failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
106
|
+
return undefined;
|
|
107
|
+
}),
|
|
108
|
+
]);
|
|
109
|
+
const userContext = freshUserContext ?? priorState.userContext;
|
|
110
|
+
const userPreferences = freshUserPreferences ?? priorState.userPreferences;
|
|
111
|
+
this.logger.log(`[AgentBuilder] prompt enrichments resolved — userContext: ${freshUserContext
|
|
112
|
+
? `fresh (${Object.keys(freshUserContext).length} keys)`
|
|
113
|
+
: priorState.userContext
|
|
114
|
+
? `checkpoint (${Object.keys(priorState.userContext).length} keys)`
|
|
115
|
+
: 'none'}, userPreferences: ${freshUserPreferences
|
|
116
|
+
? 'fresh'
|
|
117
|
+
: priorState.userPreferences
|
|
118
|
+
? 'checkpoint'
|
|
119
|
+
: 'none'}`);
|
|
120
|
+
const clientType = payload.clientType ?? 'portal';
|
|
121
|
+
const ucanDelegation = payload.ucanDelegation
|
|
122
|
+
? {
|
|
123
|
+
raw: payload.ucanDelegation.raw,
|
|
124
|
+
issuer: payload.ucanDelegation.issuer,
|
|
125
|
+
audience: payload.ucanDelegation.audience,
|
|
126
|
+
// Translate UCAN spec naming (`can`/`with`) to the plugin-API
|
|
127
|
+
// naming (`action`/`resource`). `nb` (caveats) is dropped here
|
|
128
|
+
// — plugins that need caveats can read `raw` and re-parse.
|
|
129
|
+
capabilities: payload.ucanDelegation.capabilities
|
|
130
|
+
.map((c) => c)
|
|
131
|
+
.map((c) => ({
|
|
132
|
+
action: c.can ?? '',
|
|
133
|
+
resource: c.with ?? '',
|
|
134
|
+
})),
|
|
135
|
+
}
|
|
136
|
+
: {
|
|
137
|
+
// Matrix listener path has no per-user UCAN — the bot acts as
|
|
138
|
+
// the oracle, not as a user. Plugins that need a delegation
|
|
139
|
+
// should branch on `raw.length === 0` and skip the mint.
|
|
140
|
+
raw: '',
|
|
141
|
+
};
|
|
142
|
+
const requestCtx = {
|
|
143
|
+
user: {
|
|
144
|
+
did: payload.did,
|
|
145
|
+
matrixUserId: `@did-${payload.did.replace(/:/g, '-')}:${prepared.homeServerName}`,
|
|
146
|
+
ucanDelegation,
|
|
147
|
+
timezone: prepared.timezone,
|
|
148
|
+
currentTime: prepared.currentTime,
|
|
149
|
+
},
|
|
150
|
+
session: {
|
|
151
|
+
id: prepared.sessionId,
|
|
152
|
+
client: clientType,
|
|
153
|
+
requestId: prepared.requestId,
|
|
154
|
+
roomId: prepared.roomId,
|
|
155
|
+
},
|
|
156
|
+
history: { userContext },
|
|
157
|
+
};
|
|
158
|
+
const buildTimeState = {
|
|
159
|
+
...priorState,
|
|
160
|
+
userContext,
|
|
161
|
+
userPreferences,
|
|
162
|
+
editorRoomId: payload.metadata?.editorRoomId ?? priorState.editorRoomId,
|
|
163
|
+
spaceId: payload.metadata?.spaceId ?? priorState.spaceId,
|
|
164
|
+
currentEntityDid: payload.metadata?.currentEntityDid ?? priorState.currentEntityDid,
|
|
165
|
+
browserTools: payload.tools ?? priorState.browserTools,
|
|
166
|
+
agActions: payload.agActions ?? priorState.agActions,
|
|
167
|
+
};
|
|
168
|
+
const agent = await createMainAgent({
|
|
169
|
+
registries: bundle.registries,
|
|
170
|
+
identity: bundle.identity,
|
|
171
|
+
config: bundle.config,
|
|
172
|
+
availablePlugins: bundle.availablePlugins,
|
|
173
|
+
hooks,
|
|
174
|
+
ambient: bundle.ambient,
|
|
175
|
+
requestCtx,
|
|
176
|
+
state: buildTimeState,
|
|
177
|
+
});
|
|
178
|
+
const stateInput = {
|
|
179
|
+
messages: inputMessages,
|
|
180
|
+
config: { did: payload.did },
|
|
181
|
+
client: clientType,
|
|
182
|
+
...(userContext !== undefined && { userContext }),
|
|
183
|
+
...(userPreferences !== undefined && { userPreferences }),
|
|
184
|
+
...(payload.metadata?.editorRoomId !== undefined && {
|
|
185
|
+
editorRoomId: payload.metadata.editorRoomId,
|
|
186
|
+
}),
|
|
187
|
+
...(payload.metadata?.spaceId !== undefined && {
|
|
188
|
+
spaceId: payload.metadata.spaceId,
|
|
189
|
+
}),
|
|
190
|
+
...(payload.metadata?.currentEntityDid !== undefined && {
|
|
191
|
+
currentEntityDid: payload.metadata.currentEntityDid,
|
|
192
|
+
}),
|
|
193
|
+
...(payload.tools !== undefined && { browserTools: payload.tools }),
|
|
194
|
+
...(payload.agActions !== undefined && { agActions: payload.agActions }),
|
|
195
|
+
};
|
|
196
|
+
// `version: 'v2'` is REQUIRED for `agent.streamEvents` to emit the
|
|
197
|
+
// `{event, data, tags}` envelope the SSE loop expects. Without it,
|
|
198
|
+
// langchain defaults to v1 (or emits nothing) and the FE sees a
|
|
199
|
+
// hanging connection with no events. `streamMode` + `recursionLimit`
|
|
200
|
+
// mirror the apps/app reference. Typed `Record<string, unknown>`
|
|
201
|
+
// because the langchain streamEvents config union doesn't perfectly
|
|
202
|
+
// intersect with the langgraph-specific options here.
|
|
203
|
+
const langGraphConfig = {
|
|
204
|
+
version: 'v2',
|
|
205
|
+
streamMode: ['updates', 'messages'],
|
|
206
|
+
recursionLimit: 150,
|
|
207
|
+
configurable: prepared.runnableConfig.configurable,
|
|
208
|
+
context: requestCtx,
|
|
209
|
+
...(abortController && { signal: abortController.signal }),
|
|
210
|
+
};
|
|
211
|
+
return { agent, stateInput, langGraphConfig };
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
AgentBuilder = AgentBuilder_1 = __decorate([
|
|
215
|
+
Injectable(),
|
|
216
|
+
__metadata("design:paramtypes", [OracleRuntimeBundleHolder,
|
|
217
|
+
UserContextFetcher])
|
|
218
|
+
], AgentBuilder);
|
|
219
|
+
export { AgentBuilder };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ListOracleMessagesResponse } from '@ixo/common';
|
|
2
|
+
import { type BaseMessage } from 'langchain';
|
|
3
|
+
import { AgentBuilder } from './agent-builder.js';
|
|
4
|
+
import { type SendMessagePayload } from './dto/send-message.dto.js';
|
|
5
|
+
import { type PreparedRequest } from './request-preparer.js';
|
|
6
|
+
export interface BatchInvokeInput {
|
|
7
|
+
payload: SendMessagePayload & {
|
|
8
|
+
msgFromMatrixRoom?: boolean;
|
|
9
|
+
clientType?: 'matrix' | 'slack' | 'portal';
|
|
10
|
+
};
|
|
11
|
+
prepared: PreparedRequest;
|
|
12
|
+
inputMessages: BaseMessage[];
|
|
13
|
+
}
|
|
14
|
+
export interface BatchInvokeResult {
|
|
15
|
+
message: {
|
|
16
|
+
type: string;
|
|
17
|
+
content: string;
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
sessionId: string;
|
|
21
|
+
messages?: ListOracleMessagesResponse['messages'];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Non-streaming chat path: builds the agent, invokes it once, returns the
|
|
25
|
+
* last assistant message.
|
|
26
|
+
*
|
|
27
|
+
* Mirrors the streaming runner's agent-build contract so adding state
|
|
28
|
+
* fields (browser tools, AG-UI actions, editor room, etc.) automatically
|
|
29
|
+
* applies to both paths — same AgentBuilder, same per-request state shape.
|
|
30
|
+
*/
|
|
31
|
+
export declare class BatchInvoker {
|
|
32
|
+
private readonly agentBuilder;
|
|
33
|
+
constructor(agentBuilder: AgentBuilder);
|
|
34
|
+
invoke(input: BatchInvokeInput): Promise<BatchInvokeResult>;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=batch-invoker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"batch-invoker.d.ts","sourceRoot":"","sources":["../../../src/modules/messages/batch-invoker.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,0BAA0B,EAChC,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAE7C,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,kBAAkB,GAAG;QAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,UAAU,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;KAC5C,CAAC;IACF,QAAQ,EAAE,eAAe,CAAC;IAC1B,aAAa,EAAE,WAAW,EAAE,CAAC;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,0BAA0B,CAAC,UAAU,CAAC,CAAC;CACnD;AAED;;;;;;;GAOG;AACH,qBACa,YAAY;IACX,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAEjD,MAAM,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAmClE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { transformGraphStateMessageToListMessageResponse, } from '@ixo/common';
|
|
11
|
+
import { BadRequestException, Injectable } from '@nestjs/common';
|
|
12
|
+
import { AgentBuilder } from './agent-builder.js';
|
|
13
|
+
/**
|
|
14
|
+
* Non-streaming chat path: builds the agent, invokes it once, returns the
|
|
15
|
+
* last assistant message.
|
|
16
|
+
*
|
|
17
|
+
* Mirrors the streaming runner's agent-build contract so adding state
|
|
18
|
+
* fields (browser tools, AG-UI actions, editor room, etc.) automatically
|
|
19
|
+
* applies to both paths — same AgentBuilder, same per-request state shape.
|
|
20
|
+
*/
|
|
21
|
+
let BatchInvoker = class BatchInvoker {
|
|
22
|
+
agentBuilder;
|
|
23
|
+
constructor(agentBuilder) {
|
|
24
|
+
this.agentBuilder = agentBuilder;
|
|
25
|
+
}
|
|
26
|
+
async invoke(input) {
|
|
27
|
+
const { payload, prepared, inputMessages } = input;
|
|
28
|
+
const { agent, stateInput, langGraphConfig } = await this.agentBuilder.build({ payload, prepared, inputMessages });
|
|
29
|
+
// The shared config from AgentBuilder is tuned for `streamEvents`
|
|
30
|
+
// (`version: 'v2'`, `streamMode: ['updates','messages']`). Passing a
|
|
31
|
+
// non-'values' streamMode to `.invoke()` makes LangGraph return the
|
|
32
|
+
// accumulated stream chunks (Array<[mode, data]>) instead of the final
|
|
33
|
+
// state — strip those keys here so invoke returns TMainAgentGraphState.
|
|
34
|
+
const { streamMode: _sm, version: _v, ...invokeConfig } = langGraphConfig;
|
|
35
|
+
const result = await agent.invoke(stateInput, invokeConfig);
|
|
36
|
+
const messages = result.messages;
|
|
37
|
+
const lastMessage = messages?.at(-1);
|
|
38
|
+
if (!lastMessage) {
|
|
39
|
+
throw new BadRequestException('No message returned from the oracle');
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
message: {
|
|
43
|
+
type: lastMessage.type,
|
|
44
|
+
content: String(lastMessage.content),
|
|
45
|
+
id: lastMessage.id ?? '',
|
|
46
|
+
},
|
|
47
|
+
sessionId: prepared.sessionId,
|
|
48
|
+
...(payload.returnAllMessages && {
|
|
49
|
+
messages: transformGraphStateMessageToListMessageResponse(messages).messages,
|
|
50
|
+
}),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
BatchInvoker = __decorate([
|
|
55
|
+
Injectable(),
|
|
56
|
+
__metadata("design:paramtypes", [AgentBuilder])
|
|
57
|
+
], BatchInvoker);
|
|
58
|
+
export { BatchInvoker };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-messages.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/messages/dto/list-messages.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,eAAe;IAE1B,SAAS,EAAG,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { ApiProperty } from '@nestjs/swagger';
|
|
11
|
+
export class ListMessagesDto {
|
|
12
|
+
sessionId;
|
|
13
|
+
}
|
|
14
|
+
__decorate([
|
|
15
|
+
ApiProperty(),
|
|
16
|
+
__metadata("design:type", String)
|
|
17
|
+
], ListMessagesDto.prototype, "sessionId", void 0);
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type ListOracleMessagesResponse } from '@ixo/common';
|
|
2
|
+
export declare class BrowserToolCallDto {
|
|
3
|
+
name: string;
|
|
4
|
+
schema: Record<string, unknown>;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class AgActionDto {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
schema: Record<string, unknown>;
|
|
11
|
+
hasRender?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class AttachmentDto {
|
|
14
|
+
mxcUri?: string;
|
|
15
|
+
eventId?: string;
|
|
16
|
+
filename: string;
|
|
17
|
+
mimetype: string;
|
|
18
|
+
size?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare class SendMessageDto {
|
|
21
|
+
stream?: boolean;
|
|
22
|
+
returnAllMessages?: boolean;
|
|
23
|
+
message: string;
|
|
24
|
+
tools?: BrowserToolCallDto[];
|
|
25
|
+
agActions?: AgActionDto[];
|
|
26
|
+
metadata?: Record<string, unknown> & {
|
|
27
|
+
editorRoomId?: string;
|
|
28
|
+
spaceId?: string;
|
|
29
|
+
};
|
|
30
|
+
timezone?: string;
|
|
31
|
+
homeServer?: string;
|
|
32
|
+
mcpInvocations?: Record<string, string>;
|
|
33
|
+
attachments?: AttachmentDto[];
|
|
34
|
+
}
|
|
35
|
+
export declare class SendMessagePayload {
|
|
36
|
+
stream?: boolean;
|
|
37
|
+
returnAllMessages?: boolean;
|
|
38
|
+
message: string;
|
|
39
|
+
sessionId: string;
|
|
40
|
+
did: string;
|
|
41
|
+
tools?: BrowserToolCallDto[];
|
|
42
|
+
agActions?: AgActionDto[];
|
|
43
|
+
timezone?: string;
|
|
44
|
+
homeServer?: string;
|
|
45
|
+
metadata?: {
|
|
46
|
+
editorRoomId?: string;
|
|
47
|
+
currentEntityDid?: string;
|
|
48
|
+
spaceId?: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* UCAN invocations for protected MCP tools.
|
|
52
|
+
* Map of tool names (e.g., "postgres__query") to base64-encoded CAR invocations.
|
|
53
|
+
*/
|
|
54
|
+
mcpInvocations?: Record<string, string>;
|
|
55
|
+
attachments?: AttachmentDto[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Shape returned by `POST /messages/:sessionId` when `stream` is false.
|
|
59
|
+
* `messages` is only present when the request set `returnAllMessages: true`.
|
|
60
|
+
*/
|
|
61
|
+
export interface SendMessageResponse {
|
|
62
|
+
message: {
|
|
63
|
+
type: string;
|
|
64
|
+
content: string;
|
|
65
|
+
id: string;
|
|
66
|
+
};
|
|
67
|
+
sessionId: string;
|
|
68
|
+
messages?: ListOracleMessagesResponse['messages'];
|
|
69
|
+
}
|
|
70
|
+
export declare class AbortRequestDto {
|
|
71
|
+
sessionId: string;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=send-message.dto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-message.dto.d.ts","sourceRoot":"","sources":["../../../../src/modules/messages/dto/send-message.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAkB9D,qBAAa,kBAAkB;IAQ7B,IAAI,EAAG,MAAM,CAAC;IASd,MAAM,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IASjC,WAAW,EAAG,MAAM,CAAC;CACtB;AAED,qBAAa,WAAW;IAQtB,IAAI,EAAG,MAAM,CAAC;IASd,WAAW,EAAG,MAAM,CAAC;IASrB,MAAM,EAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IASjC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,qBAAa,aAAa;IAcxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAahB,OAAO,CAAC,EAAE,MAAM,CAAC;IAWjB,QAAQ,EAAG,MAAM,CAAC;IAUlB,QAAQ,EAAG,MAAM,CAAC;IASlB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,qBAAa,cAAc;IASzB,MAAM,CAAC,EAAE,OAAO,CAAC;IAWjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAU5B,OAAO,EAAG,MAAM,CAAC;IAWjB,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAW7B,SAAS,CAAC,EAAE,WAAW,EAAE,CAAC;IAS1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG;QACnC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAUF,QAAQ,CAAC,EAAE,MAAM,CAAC;IASlB,UAAU,CAAC,EAAE,MAAM,CAAC;IAcpB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAYxC,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAG,MAAM,CAAC;IACjB,SAAS,EAAG,MAAM,CAAC;IACnB,GAAG,EAAG,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC7B,SAAS,CAAC,EAAE,WAAW,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,QAAQ,CAAC,EAAE;QACT,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IAEF;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAExC,WAAW,CAAC,EAAE,aAAa,EAAE,CAAC;CAC/B;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,0BAA0B,CAAC,UAAU,CAAC,CAAC;CACnD;AAED,qBAAa,eAAe;IAQ1B,SAAS,EAAG,MAAM,CAAC;CACpB"}
|