@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,364 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LangChain Tools for BlockNote Y.js Editing
|
|
3
|
+
*/
|
|
4
|
+
import * as z from 'zod';
|
|
5
|
+
import type { MatrixClient } from 'matrix-js-sdk';
|
|
6
|
+
import { type AppConfig } from './provider.js';
|
|
7
|
+
/** Matrix admin credentials the blocknote tools use to read/write Y.Docs. */
|
|
8
|
+
export interface BlocknoteToolsMatrixConfig {
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
accessToken: string;
|
|
11
|
+
userId: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Build the default `BLOCKNOTE_TOOLS_CONFIG` from a runtime config bag. The
|
|
15
|
+
* editor plugin builds this once at boot from its declared env vars and
|
|
16
|
+
* threads it through every tool factory, replacing the legacy module-level
|
|
17
|
+
* `getConfig()` call.
|
|
18
|
+
*/
|
|
19
|
+
export declare function buildBlocknoteToolsConfig(matrix: BlocknoteToolsMatrixConfig): {
|
|
20
|
+
matrix: {
|
|
21
|
+
baseUrl: string;
|
|
22
|
+
accessToken: string;
|
|
23
|
+
userId: string;
|
|
24
|
+
initialSyncTimeoutMs: number;
|
|
25
|
+
};
|
|
26
|
+
provider: {
|
|
27
|
+
docName: string;
|
|
28
|
+
enableAwareness: boolean;
|
|
29
|
+
retryAttempts: number;
|
|
30
|
+
retryDelayMs: number;
|
|
31
|
+
};
|
|
32
|
+
blocknote: {
|
|
33
|
+
defaultBlockId: undefined;
|
|
34
|
+
blockNamespace: undefined;
|
|
35
|
+
mutableAttributeKeys: string[];
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The blocknote tools' config, optionally augmented with a host-provided
|
|
40
|
+
* `MatrixClient`. When `matrixClient` is set, `resolveEditorMatrixClient`
|
|
41
|
+
* uses it directly; when absent, the editor falls back to constructing
|
|
42
|
+
* its internal singleton from the matrix credentials.
|
|
43
|
+
*/
|
|
44
|
+
export type BlocknoteToolsConfig = ReturnType<typeof buildBlocknoteToolsConfig> & {
|
|
45
|
+
matrixClient?: MatrixClient;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Creates BlockNote tools that use a shared Matrix client
|
|
49
|
+
*
|
|
50
|
+
* @param matrixClient - The singleton Matrix client (already synced)
|
|
51
|
+
* @param config - Configuration for the provider and room
|
|
52
|
+
* @param readOnly - If true, only returns read-only tools (list_blocks). Write tools are disabled but code is preserved.
|
|
53
|
+
*/
|
|
54
|
+
export declare const createBlocknoteTools: (matrixClient: MatrixClient, config: AppConfig, readOnly?: boolean) => Promise<{
|
|
55
|
+
listBlocksTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
56
|
+
includeText: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
57
|
+
blockType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
58
|
+
start: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
59
|
+
end: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
60
|
+
}, z.core.$strip>, {
|
|
61
|
+
includeText: boolean;
|
|
62
|
+
start: number;
|
|
63
|
+
end: number;
|
|
64
|
+
blockType?: string | null | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
includeText?: boolean | undefined;
|
|
67
|
+
blockType?: string | null | undefined;
|
|
68
|
+
start?: number | undefined;
|
|
69
|
+
end?: number | undefined;
|
|
70
|
+
}, string, unknown, "list_blocks">;
|
|
71
|
+
readBlockByIdTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
72
|
+
blockId: z.ZodString;
|
|
73
|
+
evaluateConditions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
74
|
+
resolveReferences: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
75
|
+
}, z.core.$strip>, {
|
|
76
|
+
blockId: string;
|
|
77
|
+
evaluateConditions: boolean;
|
|
78
|
+
resolveReferences: boolean;
|
|
79
|
+
}, {
|
|
80
|
+
blockId: string;
|
|
81
|
+
evaluateConditions?: boolean | undefined;
|
|
82
|
+
resolveReferences?: boolean | undefined;
|
|
83
|
+
}, string, unknown, "read_block_by_id">;
|
|
84
|
+
searchBlocksTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
85
|
+
blockType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
86
|
+
propKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
87
|
+
propValue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
88
|
+
textContains: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
89
|
+
}, z.core.$strip>, {
|
|
90
|
+
blockType?: string | null | undefined;
|
|
91
|
+
propKey?: string | null | undefined;
|
|
92
|
+
propValue?: string | null | undefined;
|
|
93
|
+
textContains?: string | null | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
blockType?: string | null | undefined;
|
|
96
|
+
propKey?: string | null | undefined;
|
|
97
|
+
propValue?: string | null | undefined;
|
|
98
|
+
textContains?: string | null | undefined;
|
|
99
|
+
}, string, unknown, "search_blocks">;
|
|
100
|
+
readFlowContextTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{}, z.core.$strip>, Record<string, never>, Record<string, never>, string, unknown, "read_flow_context">;
|
|
101
|
+
readFlowStatusTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
102
|
+
nodeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
103
|
+
}, z.core.$strip>, {
|
|
104
|
+
nodeId?: string | null | undefined;
|
|
105
|
+
}, {
|
|
106
|
+
nodeId?: string | null | undefined;
|
|
107
|
+
}, string, unknown, "read_flow_status">;
|
|
108
|
+
readBlockHistoryTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
109
|
+
blockId: z.ZodString;
|
|
110
|
+
}, z.core.$strip>, {
|
|
111
|
+
blockId: string;
|
|
112
|
+
}, {
|
|
113
|
+
blockId: string;
|
|
114
|
+
}, string, unknown, "read_block_history">;
|
|
115
|
+
readPermissionsTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
116
|
+
audienceDid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
117
|
+
capability: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
118
|
+
}, z.core.$strip>, {
|
|
119
|
+
audienceDid?: string | null | undefined;
|
|
120
|
+
capability?: string | null | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
audienceDid?: string | null | undefined;
|
|
123
|
+
capability?: string | null | undefined;
|
|
124
|
+
}, string, unknown, "read_permissions">;
|
|
125
|
+
readSurveyTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
126
|
+
blockId: z.ZodString;
|
|
127
|
+
}, z.core.$strip>, {
|
|
128
|
+
blockId: string;
|
|
129
|
+
}, {
|
|
130
|
+
blockId: string;
|
|
131
|
+
}, string, unknown, "read_survey">;
|
|
132
|
+
validateSurveyAnswersTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
133
|
+
blockId: z.ZodString;
|
|
134
|
+
}, z.core.$strip>, {
|
|
135
|
+
blockId: string;
|
|
136
|
+
}, {
|
|
137
|
+
blockId: string;
|
|
138
|
+
}, string, unknown, "validate_survey_answers">;
|
|
139
|
+
editBlockTool?: undefined;
|
|
140
|
+
createBlockTool?: undefined;
|
|
141
|
+
deleteBlockTool?: undefined;
|
|
142
|
+
fillSurveyAnswersTool?: undefined;
|
|
143
|
+
executeActionTool?: undefined;
|
|
144
|
+
findAndReplaceTool?: undefined;
|
|
145
|
+
moveBlockTool?: undefined;
|
|
146
|
+
bulkEditBlocksTool?: undefined;
|
|
147
|
+
} | {
|
|
148
|
+
listBlocksTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
149
|
+
includeText: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
150
|
+
blockType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
151
|
+
start: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
152
|
+
end: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
153
|
+
}, z.core.$strip>, {
|
|
154
|
+
includeText: boolean;
|
|
155
|
+
start: number;
|
|
156
|
+
end: number;
|
|
157
|
+
blockType?: string | null | undefined;
|
|
158
|
+
}, {
|
|
159
|
+
includeText?: boolean | undefined;
|
|
160
|
+
blockType?: string | null | undefined;
|
|
161
|
+
start?: number | undefined;
|
|
162
|
+
end?: number | undefined;
|
|
163
|
+
}, string, unknown, "list_blocks">;
|
|
164
|
+
editBlockTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
165
|
+
blockId: z.ZodString;
|
|
166
|
+
updates: z.ZodRecord<z.ZodAny, z.ZodAny>;
|
|
167
|
+
removeAttributes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
168
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
169
|
+
runtimeUpdates: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
170
|
+
}, z.core.$strip>, {
|
|
171
|
+
blockId: string;
|
|
172
|
+
updates: Record<any, any>;
|
|
173
|
+
removeAttributes: string[];
|
|
174
|
+
text?: string | null | undefined;
|
|
175
|
+
runtimeUpdates?: Record<any, any> | undefined;
|
|
176
|
+
}, {
|
|
177
|
+
blockId: string;
|
|
178
|
+
updates: Record<any, any>;
|
|
179
|
+
removeAttributes?: string[] | undefined;
|
|
180
|
+
text?: string | null | undefined;
|
|
181
|
+
runtimeUpdates?: Record<any, any> | undefined;
|
|
182
|
+
}, string, unknown, "edit_block">;
|
|
183
|
+
createBlockTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
184
|
+
blockType: z.ZodString;
|
|
185
|
+
text: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
186
|
+
attributes: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>>;
|
|
187
|
+
blockId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
188
|
+
referenceBlockId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
189
|
+
placement: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
190
|
+
before: "before";
|
|
191
|
+
after: "after";
|
|
192
|
+
}>>>;
|
|
193
|
+
}, z.core.$strip>, {
|
|
194
|
+
blockType: string;
|
|
195
|
+
text: string;
|
|
196
|
+
attributes: Record<any, any>;
|
|
197
|
+
blockId?: string | null | undefined;
|
|
198
|
+
referenceBlockId?: string | null | undefined;
|
|
199
|
+
placement?: "before" | "after" | null | undefined;
|
|
200
|
+
}, {
|
|
201
|
+
blockType: string;
|
|
202
|
+
text?: string | undefined;
|
|
203
|
+
attributes?: Record<any, any> | undefined;
|
|
204
|
+
blockId?: string | null | undefined;
|
|
205
|
+
referenceBlockId?: string | null | undefined;
|
|
206
|
+
placement?: "before" | "after" | null | undefined;
|
|
207
|
+
}, string, unknown, "create_block">;
|
|
208
|
+
deleteBlockTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
209
|
+
blockId: z.ZodString;
|
|
210
|
+
confirm: z.ZodBoolean;
|
|
211
|
+
}, z.core.$strip>, {
|
|
212
|
+
blockId: string;
|
|
213
|
+
confirm: boolean;
|
|
214
|
+
}, {
|
|
215
|
+
blockId: string;
|
|
216
|
+
confirm: boolean;
|
|
217
|
+
}, string, unknown, "delete_block">;
|
|
218
|
+
readBlockByIdTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
219
|
+
blockId: z.ZodString;
|
|
220
|
+
evaluateConditions: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
221
|
+
resolveReferences: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
222
|
+
}, z.core.$strip>, {
|
|
223
|
+
blockId: string;
|
|
224
|
+
evaluateConditions: boolean;
|
|
225
|
+
resolveReferences: boolean;
|
|
226
|
+
}, {
|
|
227
|
+
blockId: string;
|
|
228
|
+
evaluateConditions?: boolean | undefined;
|
|
229
|
+
resolveReferences?: boolean | undefined;
|
|
230
|
+
}, string, unknown, "read_block_by_id">;
|
|
231
|
+
searchBlocksTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
232
|
+
blockType: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
233
|
+
propKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
234
|
+
propValue: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
235
|
+
textContains: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
236
|
+
}, z.core.$strip>, {
|
|
237
|
+
blockType?: string | null | undefined;
|
|
238
|
+
propKey?: string | null | undefined;
|
|
239
|
+
propValue?: string | null | undefined;
|
|
240
|
+
textContains?: string | null | undefined;
|
|
241
|
+
}, {
|
|
242
|
+
blockType?: string | null | undefined;
|
|
243
|
+
propKey?: string | null | undefined;
|
|
244
|
+
propValue?: string | null | undefined;
|
|
245
|
+
textContains?: string | null | undefined;
|
|
246
|
+
}, string, unknown, "search_blocks">;
|
|
247
|
+
readFlowContextTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{}, z.core.$strip>, Record<string, never>, Record<string, never>, string, unknown, "read_flow_context">;
|
|
248
|
+
readFlowStatusTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
249
|
+
nodeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
250
|
+
}, z.core.$strip>, {
|
|
251
|
+
nodeId?: string | null | undefined;
|
|
252
|
+
}, {
|
|
253
|
+
nodeId?: string | null | undefined;
|
|
254
|
+
}, string, unknown, "read_flow_status">;
|
|
255
|
+
readBlockHistoryTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
256
|
+
blockId: z.ZodString;
|
|
257
|
+
}, z.core.$strip>, {
|
|
258
|
+
blockId: string;
|
|
259
|
+
}, {
|
|
260
|
+
blockId: string;
|
|
261
|
+
}, string, unknown, "read_block_history">;
|
|
262
|
+
readPermissionsTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
263
|
+
audienceDid: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
264
|
+
capability: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
265
|
+
}, z.core.$strip>, {
|
|
266
|
+
audienceDid?: string | null | undefined;
|
|
267
|
+
capability?: string | null | undefined;
|
|
268
|
+
}, {
|
|
269
|
+
audienceDid?: string | null | undefined;
|
|
270
|
+
capability?: string | null | undefined;
|
|
271
|
+
}, string, unknown, "read_permissions">;
|
|
272
|
+
readSurveyTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
273
|
+
blockId: z.ZodString;
|
|
274
|
+
}, z.core.$strip>, {
|
|
275
|
+
blockId: string;
|
|
276
|
+
}, {
|
|
277
|
+
blockId: string;
|
|
278
|
+
}, string, unknown, "read_survey">;
|
|
279
|
+
fillSurveyAnswersTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
280
|
+
blockId: z.ZodString;
|
|
281
|
+
answers: z.ZodRecord<z.ZodAny, z.ZodAny>;
|
|
282
|
+
merge: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
283
|
+
}, z.core.$strip>, {
|
|
284
|
+
blockId: string;
|
|
285
|
+
answers: Record<any, any>;
|
|
286
|
+
merge: boolean;
|
|
287
|
+
}, {
|
|
288
|
+
blockId: string;
|
|
289
|
+
answers: Record<any, any>;
|
|
290
|
+
merge?: boolean | undefined;
|
|
291
|
+
}, string, unknown, "fill_survey_answers">;
|
|
292
|
+
validateSurveyAnswersTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
293
|
+
blockId: z.ZodString;
|
|
294
|
+
}, z.core.$strip>, {
|
|
295
|
+
blockId: string;
|
|
296
|
+
}, {
|
|
297
|
+
blockId: string;
|
|
298
|
+
}, string, unknown, "validate_survey_answers">;
|
|
299
|
+
executeActionTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
300
|
+
blockId: z.ZodString;
|
|
301
|
+
inputOverrides: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>>;
|
|
302
|
+
}, z.core.$strip>, {
|
|
303
|
+
blockId: string;
|
|
304
|
+
inputOverrides: Record<any, any>;
|
|
305
|
+
}, {
|
|
306
|
+
blockId: string;
|
|
307
|
+
inputOverrides?: Record<any, any> | undefined;
|
|
308
|
+
}, string, unknown, "execute_action">;
|
|
309
|
+
findAndReplaceTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
310
|
+
searchText: z.ZodString;
|
|
311
|
+
replaceText: z.ZodString;
|
|
312
|
+
caseSensitive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
313
|
+
replaceAll: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
314
|
+
}, z.core.$strip>, {
|
|
315
|
+
searchText: string;
|
|
316
|
+
replaceText: string;
|
|
317
|
+
caseSensitive: boolean;
|
|
318
|
+
replaceAll: boolean;
|
|
319
|
+
}, {
|
|
320
|
+
searchText: string;
|
|
321
|
+
replaceText: string;
|
|
322
|
+
caseSensitive?: boolean | undefined;
|
|
323
|
+
replaceAll?: boolean | undefined;
|
|
324
|
+
}, string, unknown, "find_and_replace">;
|
|
325
|
+
moveBlockTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
326
|
+
blockId: z.ZodString;
|
|
327
|
+
referenceBlockId: z.ZodString;
|
|
328
|
+
placement: z.ZodEnum<{
|
|
329
|
+
before: "before";
|
|
330
|
+
after: "after";
|
|
331
|
+
}>;
|
|
332
|
+
}, z.core.$strip>, {
|
|
333
|
+
blockId: string;
|
|
334
|
+
referenceBlockId: string;
|
|
335
|
+
placement: "before" | "after";
|
|
336
|
+
}, {
|
|
337
|
+
blockId: string;
|
|
338
|
+
referenceBlockId: string;
|
|
339
|
+
placement: "before" | "after";
|
|
340
|
+
}, string, unknown, "move_block">;
|
|
341
|
+
bulkEditBlocksTool: import("@langchain/core/tools").DynamicStructuredTool<z.ZodObject<{
|
|
342
|
+
edits: z.ZodArray<z.ZodObject<{
|
|
343
|
+
blockId: z.ZodString;
|
|
344
|
+
updates: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
345
|
+
text: z.ZodOptional<z.ZodString>;
|
|
346
|
+
runtimeUpdates: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
|
|
347
|
+
}, z.core.$strip>>;
|
|
348
|
+
}, z.core.$strip>, {
|
|
349
|
+
edits: {
|
|
350
|
+
blockId: string;
|
|
351
|
+
updates?: Record<any, any> | undefined;
|
|
352
|
+
text?: string | undefined;
|
|
353
|
+
runtimeUpdates?: Record<any, any> | undefined;
|
|
354
|
+
}[];
|
|
355
|
+
}, {
|
|
356
|
+
edits: {
|
|
357
|
+
blockId: string;
|
|
358
|
+
updates?: Record<any, any> | undefined;
|
|
359
|
+
text?: string | undefined;
|
|
360
|
+
runtimeUpdates?: Record<any, any> | undefined;
|
|
361
|
+
}[];
|
|
362
|
+
}, string, unknown, "bulk_edit_blocks">;
|
|
363
|
+
}>;
|
|
364
|
+
//# sourceMappingURL=blocknote-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blocknote-tools.d.ts","sourceRoot":"","sources":["../../../src/plugins/editor/blocknote-tools.ts"],"names":[],"mappings":"AACA;;GAEG;AAGH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AA8BlD,OAAO,EAAE,KAAK,SAAS,EAAyB,MAAM,eAAe,CAAC;AAkBtE,6EAA6E;AAC7E,MAAM,WAAW,0BAA0B;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,0BAA0B;;;;;;;;;;;;;;;;8BAiB1C,MAAM,EAAE;;EAGzC;AAED;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAC3C,OAAO,yBAAyB,CACjC,GAAG;IACF,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B,CAAC;AAgIF;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB,GAC/B,cAAc,YAAY,EAC1B,QAAQ,SAAS,EACjB,WAAU,OAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAo4E1B,CAAC"}
|