@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,95 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { OraclePlugin } from '../../plugin-api/oracle-plugin.js';
|
|
3
|
+
import { ClaimProcessingModule } from './claim-processing.module.js';
|
|
4
|
+
import { createCreditsMiddleware } from './credits-middleware.js';
|
|
5
|
+
import { FileProcessingSinkModule } from './file-processing-sink.module.js';
|
|
6
|
+
import { SubscriptionSinkModule } from './subscription-sink.module.js';
|
|
7
|
+
import { TokenLimiter, } from './token-limiter.js';
|
|
8
|
+
const CreditsConfigSchema = z.object({
|
|
9
|
+
SUBSCRIPTION_URL: z.url().optional(),
|
|
10
|
+
SUBSCRIPTION_ORACLE_MCP_URL: z.url().optional(),
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* Owns the full credit lifecycle:
|
|
14
|
+
* - **Enforcement**: per-request middleware that aborts model calls when
|
|
15
|
+
* the user is out of credits (`createCreditsMiddleware` + `TokenLimiter`).
|
|
16
|
+
* - **Settlement**: background cron that converts held credits into
|
|
17
|
+
* on-chain claims, shipped via `ClaimProcessingModule` (returned from
|
|
18
|
+
* `getNestModules()` when Redis is configured).
|
|
19
|
+
*
|
|
20
|
+
* Silent (no agent-visible tools). Stays loaded by default and only opts
|
|
21
|
+
* out when `DISABLE_CREDITS=true`. When loaded, this plugin also activates
|
|
22
|
+
* the runtime's Tier-0 `SubscriptionMiddleware`, which gates the HTTP
|
|
23
|
+
* request before the graph even runs.
|
|
24
|
+
*/
|
|
25
|
+
export class CreditsPlugin extends OraclePlugin {
|
|
26
|
+
static NAME = 'credits';
|
|
27
|
+
name = CreditsPlugin.NAME;
|
|
28
|
+
version = '1.0.0';
|
|
29
|
+
manifest = {
|
|
30
|
+
title: 'Credits',
|
|
31
|
+
summary: 'Enforces per-user credit budgets and settles held credits to the chain on a cron.',
|
|
32
|
+
whenToUse: [],
|
|
33
|
+
visibility: 'silent',
|
|
34
|
+
stability: 'stable',
|
|
35
|
+
category: 'core',
|
|
36
|
+
};
|
|
37
|
+
configSchema = CreditsConfigSchema;
|
|
38
|
+
autoDetectHint = 'DISABLE_CREDITS!=true';
|
|
39
|
+
redis;
|
|
40
|
+
network;
|
|
41
|
+
modelPricingLookup;
|
|
42
|
+
constructor(options = {}) {
|
|
43
|
+
super();
|
|
44
|
+
this.redis = options.redis ?? null;
|
|
45
|
+
this.network = options.network;
|
|
46
|
+
this.modelPricingLookup = options.modelPricingLookup;
|
|
47
|
+
}
|
|
48
|
+
autoDetect(env) {
|
|
49
|
+
return env.DISABLE_CREDITS !== 'true';
|
|
50
|
+
}
|
|
51
|
+
getMiddlewares(ctx) {
|
|
52
|
+
const config = ctx.config;
|
|
53
|
+
const redis = this.redis;
|
|
54
|
+
if (!redis) {
|
|
55
|
+
ctx.logger.warn?.('[CreditsPlugin] No Redis client available — credit limiting disabled at runtime.');
|
|
56
|
+
return [createCreditsMiddleware({ limiter: null, logger: ctx.logger })];
|
|
57
|
+
}
|
|
58
|
+
const limiter = new TokenLimiter({
|
|
59
|
+
redis,
|
|
60
|
+
network: config.NETWORK ?? 'devnet',
|
|
61
|
+
disableCredits: config.DISABLE_CREDITS ?? false,
|
|
62
|
+
modelPricingLookup: this.modelPricingLookup,
|
|
63
|
+
logger: ctx.logger,
|
|
64
|
+
});
|
|
65
|
+
return [createCreditsMiddleware({ limiter, logger: ctx.logger })];
|
|
66
|
+
}
|
|
67
|
+
getNestModules() {
|
|
68
|
+
// All three modules require Redis + a known network. Host opt-in is
|
|
69
|
+
// explicit: pass both to the plugin's constructor.
|
|
70
|
+
//
|
|
71
|
+
// 1. ClaimProcessingModule — cron that settles held credits on chain.
|
|
72
|
+
// 2. FileProcessingSinkModule — `FILE_PROCESSING_CREDIT_SINK` so
|
|
73
|
+
// pre-flight file-processing LLM usage bills the per-user budget.
|
|
74
|
+
// 3. SubscriptionSinkModule — `SUBSCRIPTION_CREDIT_SINK` so the
|
|
75
|
+
// subscription middleware mirrors per-DID subscription payload +
|
|
76
|
+
// balance into Redis on every authenticated request, keeping the
|
|
77
|
+
// LLM-hot-path credits middleware in sync with the chain.
|
|
78
|
+
if (!this.redis || !this.network)
|
|
79
|
+
return [];
|
|
80
|
+
return [
|
|
81
|
+
ClaimProcessingModule.register({
|
|
82
|
+
redis: this.redis,
|
|
83
|
+
network: this.network,
|
|
84
|
+
}),
|
|
85
|
+
FileProcessingSinkModule.register({
|
|
86
|
+
redis: this.redis,
|
|
87
|
+
network: this.network,
|
|
88
|
+
}),
|
|
89
|
+
SubscriptionSinkModule.register({
|
|
90
|
+
redis: this.redis,
|
|
91
|
+
network: this.network,
|
|
92
|
+
}),
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type DynamicModule } from '@nestjs/common';
|
|
2
|
+
import type { Redis } from 'ioredis';
|
|
3
|
+
import { type CreditsNetwork } from './token-limiter.js';
|
|
4
|
+
export interface FileProcessingSinkModuleOptions {
|
|
5
|
+
redis: Redis;
|
|
6
|
+
network: CreditsNetwork;
|
|
7
|
+
disableCredits?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Wires `FILE_PROCESSING_CREDIT_SINK` for `FileProcessingService`. The
|
|
11
|
+
* adapter delegates to a fresh `TokenLimiter` instance — TokenLimiter is
|
|
12
|
+
* stateless (state lives in Redis), so multiple instances pointing at the
|
|
13
|
+
* same Redis are equivalent.
|
|
14
|
+
*/
|
|
15
|
+
export declare class FileProcessingSinkModule {
|
|
16
|
+
static register(opts: FileProcessingSinkModuleOptions): DynamicModule;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=file-processing-sink.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-processing-sink.module.d.ts","sourceRoot":"","sources":["../../../src/plugins/credits/file-processing-sink.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAMrC,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,cAAc,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAID;;;;;GAKG;AACH,qBACa,wBAAwB;IACnC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,+BAA+B,GAAG,aAAa;CA2CtE"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 FileProcessingSinkModule_1;
|
|
8
|
+
import { Logger, Module, } from '@nestjs/common';
|
|
9
|
+
import { FILE_PROCESSING_CREDIT_SINK, } from '../../modules/messages/file-processing-credit-sink.port.js';
|
|
10
|
+
import { TokenLimiter } from './token-limiter.js';
|
|
11
|
+
const SINK_LOGGER = new Logger('FileProcessingCreditSink');
|
|
12
|
+
/**
|
|
13
|
+
* Wires `FILE_PROCESSING_CREDIT_SINK` for `FileProcessingService`. The
|
|
14
|
+
* adapter delegates to a fresh `TokenLimiter` instance — TokenLimiter is
|
|
15
|
+
* stateless (state lives in Redis), so multiple instances pointing at the
|
|
16
|
+
* same Redis are equivalent.
|
|
17
|
+
*/
|
|
18
|
+
let FileProcessingSinkModule = FileProcessingSinkModule_1 = class FileProcessingSinkModule {
|
|
19
|
+
static register(opts) {
|
|
20
|
+
const limiter = new TokenLimiter({
|
|
21
|
+
redis: opts.redis,
|
|
22
|
+
network: opts.network,
|
|
23
|
+
disableCredits: opts.disableCredits ?? false,
|
|
24
|
+
logger: {
|
|
25
|
+
log: (msg) => SINK_LOGGER.log(msg),
|
|
26
|
+
warn: (msg) => SINK_LOGGER.warn(msg),
|
|
27
|
+
error: (msg) => SINK_LOGGER.error(msg),
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
const sink = {
|
|
31
|
+
async deductForFileProcessing(userDid, usage) {
|
|
32
|
+
const credits = usage.cost > 0
|
|
33
|
+
? limiter.usdCostToCredits(usage.cost)
|
|
34
|
+
: limiter.llmTokenToCredits(usage.promptTokens + usage.completionTokens);
|
|
35
|
+
if (credits <= 0)
|
|
36
|
+
return;
|
|
37
|
+
await limiter.limit(userDid, credits);
|
|
38
|
+
SINK_LOGGER.log(`Deducted ${credits} credits for file processing (did=${userDid}, cost=$${usage.cost})`);
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const provider = {
|
|
42
|
+
provide: FILE_PROCESSING_CREDIT_SINK,
|
|
43
|
+
useValue: sink,
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
module: FileProcessingSinkModule_1,
|
|
47
|
+
providers: [provider],
|
|
48
|
+
exports: [provider],
|
|
49
|
+
global: true,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
FileProcessingSinkModule = FileProcessingSinkModule_1 = __decorate([
|
|
54
|
+
Module({})
|
|
55
|
+
], FileProcessingSinkModule);
|
|
56
|
+
export { FileProcessingSinkModule };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { CreditsPlugin, type CreditsPluginOptions } from './credits.plugin.js';
|
|
2
|
+
export { createCreditsMiddleware, type CreditsMiddlewareOptions, } from './credits-middleware.js';
|
|
3
|
+
export { TokenLimiter, TokenLimiterError, type CreditsNetwork, type ModelPricing, type ModelPricingLookup, type TokenLimiterOptions, } from './token-limiter.js';
|
|
4
|
+
export { ClaimProcessingModule, type ClaimProcessingModuleOptions, } from './claim-processing.module.js';
|
|
5
|
+
export { FileProcessingSinkModule, type FileProcessingSinkModuleOptions, } from './file-processing-sink.module.js';
|
|
6
|
+
export { SubscriptionSinkModule, type SubscriptionSinkModuleOptions, } from './subscription-sink.module.js';
|
|
7
|
+
export { ClaimProcessingService, CLAIM_PROCESSING_TOKEN_LIMITER, submitClaimToSubscriptionApi, type UsageClaim, } from './claim-processing.service.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/credits/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EACL,uBAAuB,EACvB,KAAK,wBAAwB,GAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,qBAAqB,EACrB,KAAK,4BAA4B,GAClC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,wBAAwB,EACxB,KAAK,+BAA+B,GACrC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,sBAAsB,EACtB,KAAK,6BAA6B,GACnC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,4BAA4B,EAC5B,KAAK,UAAU,GAChB,MAAM,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { CreditsPlugin } from './credits.plugin.js';
|
|
2
|
+
export { createCreditsMiddleware, } from './credits-middleware.js';
|
|
3
|
+
export { TokenLimiter, TokenLimiterError, } from './token-limiter.js';
|
|
4
|
+
export { ClaimProcessingModule, } from './claim-processing.module.js';
|
|
5
|
+
export { FileProcessingSinkModule, } from './file-processing-sink.module.js';
|
|
6
|
+
export { SubscriptionSinkModule, } from './subscription-sink.module.js';
|
|
7
|
+
export { ClaimProcessingService, CLAIM_PROCESSING_TOKEN_LIMITER, submitClaimToSubscriptionApi, } from './claim-processing.service.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type DynamicModule } from '@nestjs/common';
|
|
2
|
+
import type { Redis } from 'ioredis';
|
|
3
|
+
import { type CreditsNetwork } from './token-limiter.js';
|
|
4
|
+
export interface SubscriptionSinkModuleOptions {
|
|
5
|
+
redis: Redis;
|
|
6
|
+
network: CreditsNetwork;
|
|
7
|
+
disableCredits?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Wires `SUBSCRIPTION_CREDIT_SINK` for `SubscriptionMiddleware`. The
|
|
11
|
+
* adapter mirrors the per-DID subscription payload + balance into Redis
|
|
12
|
+
* via a `TokenLimiter` instance, so the credits middleware on the LLM
|
|
13
|
+
* hot path reads up-to-date budgets without re-hitting the subscription
|
|
14
|
+
* API.
|
|
15
|
+
*
|
|
16
|
+
* TokenLimiter is stateless (state lives in Redis); the instance here
|
|
17
|
+
* is independent of the one used in `getMiddlewares` or
|
|
18
|
+
* `ClaimProcessingModule` — they share Redis so the data is consistent.
|
|
19
|
+
*/
|
|
20
|
+
export declare class SubscriptionSinkModule {
|
|
21
|
+
static register(opts: SubscriptionSinkModuleOptions): DynamicModule;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=subscription-sink.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-sink.module.d.ts","sourceRoot":"","sources":["../../../src/plugins/credits/subscription-sink.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAInB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKrC,OAAO,EAAgB,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEvE,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,cAAc,CAAC;IACxB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAID;;;;;;;;;;GAUG;AACH,qBACa,sBAAsB;IACjC,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,6BAA6B,GAAG,aAAa;CA6BpE"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 SubscriptionSinkModule_1;
|
|
8
|
+
import { Logger, Module, } from '@nestjs/common';
|
|
9
|
+
import { SUBSCRIPTION_CREDIT_SINK, } from '../../modules/subscription/subscription.middleware.js';
|
|
10
|
+
import { TokenLimiter } from './token-limiter.js';
|
|
11
|
+
const SINK_LOGGER = new Logger('SubscriptionCreditSink');
|
|
12
|
+
/**
|
|
13
|
+
* Wires `SUBSCRIPTION_CREDIT_SINK` for `SubscriptionMiddleware`. The
|
|
14
|
+
* adapter mirrors the per-DID subscription payload + balance into Redis
|
|
15
|
+
* via a `TokenLimiter` instance, so the credits middleware on the LLM
|
|
16
|
+
* hot path reads up-to-date budgets without re-hitting the subscription
|
|
17
|
+
* API.
|
|
18
|
+
*
|
|
19
|
+
* TokenLimiter is stateless (state lives in Redis); the instance here
|
|
20
|
+
* is independent of the one used in `getMiddlewares` or
|
|
21
|
+
* `ClaimProcessingModule` — they share Redis so the data is consistent.
|
|
22
|
+
*/
|
|
23
|
+
let SubscriptionSinkModule = SubscriptionSinkModule_1 = class SubscriptionSinkModule {
|
|
24
|
+
static register(opts) {
|
|
25
|
+
const limiter = new TokenLimiter({
|
|
26
|
+
redis: opts.redis,
|
|
27
|
+
network: opts.network,
|
|
28
|
+
disableCredits: opts.disableCredits ?? false,
|
|
29
|
+
logger: {
|
|
30
|
+
log: (msg) => SINK_LOGGER.log(msg),
|
|
31
|
+
warn: (msg) => SINK_LOGGER.warn(msg),
|
|
32
|
+
error: (msg) => SINK_LOGGER.error(msg),
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
const sink = {
|
|
36
|
+
setSubscriptionPayload: limiter.setSubscriptionPayload.bind(limiter),
|
|
37
|
+
overrideUserBalance: limiter.overrideUserBalance.bind(limiter),
|
|
38
|
+
};
|
|
39
|
+
const provider = {
|
|
40
|
+
provide: SUBSCRIPTION_CREDIT_SINK,
|
|
41
|
+
useValue: sink,
|
|
42
|
+
};
|
|
43
|
+
return {
|
|
44
|
+
module: SubscriptionSinkModule_1,
|
|
45
|
+
providers: [provider],
|
|
46
|
+
exports: [provider],
|
|
47
|
+
global: true,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
SubscriptionSinkModule = SubscriptionSinkModule_1 = __decorate([
|
|
52
|
+
Module({})
|
|
53
|
+
], SubscriptionSinkModule);
|
|
54
|
+
export { SubscriptionSinkModule };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { type GetMySubscriptionsResponseDto } from '@ixo/common';
|
|
2
|
+
import type { Redis } from 'ioredis';
|
|
3
|
+
import type { Logger } from '../../plugin-api/types.js';
|
|
4
|
+
/** Network tier — drives the credits-per-USD multiplier. */
|
|
5
|
+
export type CreditsNetwork = 'mainnet' | 'testnet' | 'devnet';
|
|
6
|
+
/** Look up per-model pricing. Returns `null` to fall through to flat-rate. */
|
|
7
|
+
export interface ModelPricing {
|
|
8
|
+
inputPricePerMillionTokens: number;
|
|
9
|
+
outputPricePerMillionTokens: number;
|
|
10
|
+
}
|
|
11
|
+
export type ModelPricingLookup = (modelId: string) => ModelPricing | null;
|
|
12
|
+
/** Constructor options for `TokenLimiter`. */
|
|
13
|
+
export interface TokenLimiterOptions {
|
|
14
|
+
redis: Redis;
|
|
15
|
+
network: CreditsNetwork;
|
|
16
|
+
/** Whether `DISABLE_CREDITS` is set — relaxes the overdraft guard. */
|
|
17
|
+
disableCredits?: boolean;
|
|
18
|
+
/** Optional per-model pricing lookup; defaults to flat-rate fallback. */
|
|
19
|
+
modelPricingLookup?: ModelPricingLookup;
|
|
20
|
+
/** Optional logger; defaults to a no-op. */
|
|
21
|
+
logger?: Logger;
|
|
22
|
+
}
|
|
23
|
+
/** Insufficient-balance error raised by `limit()`. */
|
|
24
|
+
export declare class TokenLimiterError extends Error {
|
|
25
|
+
readonly type: 'token' | 'request';
|
|
26
|
+
readonly limit?: number;
|
|
27
|
+
readonly currentBalance?: number;
|
|
28
|
+
readonly reset?: number;
|
|
29
|
+
constructor(message: string, type: 'token' | 'request', limit?: number, reset?: number, currentBalance?: number);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Per-user credit budget enforced against Redis. The runtime instantiates
|
|
33
|
+
* one `TokenLimiter` per oracle and shares it between the middleware (live
|
|
34
|
+
* deduction on the LLM hot path) and the subscription middleware (which
|
|
35
|
+
* mirrors the chain-side balance into Redis on every authenticated request).
|
|
36
|
+
*
|
|
37
|
+
* Costs are computed in three priority tiers:
|
|
38
|
+
* 1. provider-supplied USD cost (e.g. OpenRouter `usage.cost`)
|
|
39
|
+
* 2. cached per-model pricing × tokens
|
|
40
|
+
* 3. flat-rate `$0.75 / 1M tokens` fallback
|
|
41
|
+
*/
|
|
42
|
+
export declare class TokenLimiter {
|
|
43
|
+
private readonly redis;
|
|
44
|
+
private readonly network;
|
|
45
|
+
private readonly disableCredits;
|
|
46
|
+
private readonly lookupModelPricing;
|
|
47
|
+
private readonly logger;
|
|
48
|
+
static getSubscriptionPayloadKey(userDid: string): string;
|
|
49
|
+
static getUserBalanceKey(userDid: string): string;
|
|
50
|
+
static getPendingClaimKey(userDid: string): string;
|
|
51
|
+
static getHeldAmountsKey(): string;
|
|
52
|
+
/**
|
|
53
|
+
* Deterministic claim ID derived from `userDid + batchStartTime`. Retries
|
|
54
|
+
* for the same batch resolve to the same ID, preventing duplicate claims.
|
|
55
|
+
*/
|
|
56
|
+
static generateClaimId(userDid: string, batchStartTime: number): string;
|
|
57
|
+
constructor(options: TokenLimiterOptions);
|
|
58
|
+
/**
|
|
59
|
+
* Convert raw USD cost (e.g. OpenRouter `response_metadata.usage.cost`)
|
|
60
|
+
* into credits. On mainnet 1 USD = 1000 credits; devnet uses a 10x
|
|
61
|
+
* multiplier so micro-costs are visible during testing.
|
|
62
|
+
*/
|
|
63
|
+
usdCostToCredits(usdCost: number): number;
|
|
64
|
+
/**
|
|
65
|
+
* Cost in USD (post-markup) using the same 3-priority fallback as
|
|
66
|
+
* `creditsForUsage`. Exposed for callers that bill outside the agent
|
|
67
|
+
* graph (e.g. file-processing pre-flight charges).
|
|
68
|
+
*/
|
|
69
|
+
calculateCostUsdWithMarkup(params: {
|
|
70
|
+
providerCost?: number;
|
|
71
|
+
inputTokens: number;
|
|
72
|
+
outputTokens: number;
|
|
73
|
+
totalTokens: number;
|
|
74
|
+
model?: string;
|
|
75
|
+
}): number;
|
|
76
|
+
/** Flat-rate fallback: $0.75 per 1M tokens × network markup. */
|
|
77
|
+
llmTokenToCredits(tokenCount: number): number;
|
|
78
|
+
/**
|
|
79
|
+
* Credits using per-model pricing (separate input/output rates). Falls
|
|
80
|
+
* through to the flat-rate fallback when pricing is `null`.
|
|
81
|
+
*/
|
|
82
|
+
llmTokenToCreditsWithPricing(inputTokens: number, outputTokens: number, pricing: ModelPricing | null): number;
|
|
83
|
+
/**
|
|
84
|
+
* Compute credit cost for a single completion using the standard 3-priority
|
|
85
|
+
* fallback. The middleware's `afterModel` hook calls this on every LLM
|
|
86
|
+
* response.
|
|
87
|
+
*/
|
|
88
|
+
creditsForUsage(params: {
|
|
89
|
+
providerCost?: number;
|
|
90
|
+
inputTokens: number;
|
|
91
|
+
outputTokens: number;
|
|
92
|
+
totalTokens: number;
|
|
93
|
+
model?: string;
|
|
94
|
+
}): number;
|
|
95
|
+
setSubscriptionPayload(userDid: string, payload: Pick<GetMySubscriptionsResponseDto, 'adminAddress' | 'claimCollections' | 'totalCredits'>): Promise<void>;
|
|
96
|
+
getSubscriptionPayload(userDid: string): Promise<Pick<GetMySubscriptionsResponseDto, 'adminAddress' | 'claimCollections' | 'totalCredits'> | null>;
|
|
97
|
+
getUserHeldAmount(userDid: string): Promise<number>;
|
|
98
|
+
incrementUserHeldAmount(userDid: string, amount: number): Promise<void>;
|
|
99
|
+
deleteUserHeldAmount(userDid: string): Promise<void>;
|
|
100
|
+
/**
|
|
101
|
+
* List users whose held amount is at or above `amount`. Result rows are
|
|
102
|
+
* `[did, heldAmount]` tuples.
|
|
103
|
+
*/
|
|
104
|
+
listUsersWithHeldAmount(amount: number): Promise<[string, number][]>;
|
|
105
|
+
/**
|
|
106
|
+
* Reconcile the Redis balance with the chain-side subscription balance.
|
|
107
|
+
* Subtracts any pending held amount to surface the user's actual usable
|
|
108
|
+
* balance. Throws when the held amount exceeds the chain balance (a
|
|
109
|
+
* sync error) unless credits are disabled.
|
|
110
|
+
*/
|
|
111
|
+
overrideUserBalance(userDid: string, balance: number): Promise<string>;
|
|
112
|
+
getUserBalance(userDid: string): Promise<number>;
|
|
113
|
+
getRemaining(userDid: string): Promise<number>;
|
|
114
|
+
/**
|
|
115
|
+
* Decrement the user's balance by `credits` and add the same amount to
|
|
116
|
+
* their held-amount sorted-set entry, atomically via a Lua script.
|
|
117
|
+
* Throws `TokenLimiterError` when the balance would go negative.
|
|
118
|
+
*/
|
|
119
|
+
limit(userDid: string, credits: number): Promise<{
|
|
120
|
+
success: boolean;
|
|
121
|
+
remaining: number;
|
|
122
|
+
}>;
|
|
123
|
+
setPendingClaim(userDid: string, claimId: string, amount: number, batchStartTime?: number): Promise<void>;
|
|
124
|
+
getPendingClaim(userDid: string): Promise<{
|
|
125
|
+
claimId: string;
|
|
126
|
+
amount: number;
|
|
127
|
+
timestamp: number;
|
|
128
|
+
batchStartTime: number;
|
|
129
|
+
} | null>;
|
|
130
|
+
clearPendingClaim(userDid: string): Promise<void>;
|
|
131
|
+
updatePendingClaimAmount(userDid: string, newAmount: number): Promise<void>;
|
|
132
|
+
/**
|
|
133
|
+
* Return the existing pending-claim ID for `userDid`, refreshing the
|
|
134
|
+
* amount if the held amount changed; otherwise create a new claim entry
|
|
135
|
+
* with a deterministic ID.
|
|
136
|
+
*/
|
|
137
|
+
getOrCreatePendingClaim(userDid: string, currentHeldAmount: number): Promise<string>;
|
|
138
|
+
}
|
|
139
|
+
//# sourceMappingURL=token-limiter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token-limiter.d.ts","sourceRoot":"","sources":["../../../src/plugins/credits/token-limiter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,6BAA6B,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAExD,4DAA4D;AAC5D,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE9D,8EAA8E;AAC9E,MAAM,WAAW,YAAY;IAC3B,0BAA0B,EAAE,MAAM,CAAC;IACnC,2BAA2B,EAAE,MAAM,CAAC;CACrC;AACD,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,YAAY,GAAG,IAAI,CAAC;AAE1E,8CAA8C;AAC9C,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,cAAc,CAAC;IACxB,sEAAsE;IACtE,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,yEAAyE;IACzE,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,sDAAsD;AACtD,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,QAAQ,CAAC,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;gBAGtB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,OAAO,GAAG,SAAS,EACzB,KAAK,CAAC,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,MAAM,EACd,cAAc,CAAC,EAAE,MAAM;CAQ1B;AAiCD;;;;;;;;;;GAUG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAQ;IAC9B,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAiB;IACzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAU;IACzC,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAqB;IACxD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAEhC,MAAM,CAAC,yBAAyB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAIzD,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAIjD,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAIlD,MAAM,CAAC,iBAAiB,IAAI,MAAM;IAIlC;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,MAAM;gBAQ3D,OAAO,EAAE,mBAAmB;IASxC;;;;OAIG;IACH,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM;IAOzC;;;;OAIG;IACH,0BAA0B,CAAC,MAAM,EAAE;QACjC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,MAAM;IAmBV,gEAAgE;IAChE,iBAAiB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;IAO7C;;;OAGG;IACH,4BAA4B,CAC1B,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,YAAY,GAAG,IAAI,GAC3B,MAAM;IAiBT;;;;OAIG;IACH,eAAe,CAAC,MAAM,EAAE;QACtB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;QACrB,WAAW,EAAE,MAAM,CAAC;QACpB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,GAAG,MAAM;IA2BJ,sBAAsB,CAC1B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,IAAI,CACX,6BAA6B,EAC7B,cAAc,GAAG,kBAAkB,GAAG,cAAc,CACrD,GACA,OAAO,CAAC,IAAI,CAAC;IAWV,sBAAsB,CAC1B,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,IAAI,CACb,6BAA6B,EAC7B,cAAc,GAAG,kBAAkB,GAAG,cAAc,CACrD,GAAG,IAAI,CAAC;IAYH,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAKnD,uBAAuB,CAC3B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;IAIV,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D;;;OAGG;IACG,uBAAuB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,CAAC;IAc1E;;;;;OAKG;IACG,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAmCtE,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAOhD,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAIpD;;;;OAIG;IACG,KAAK,CACT,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC;IA+C7C,eAAe,CACnB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,IAAI,CAAC;IAiBV,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAC9C,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,EAAE,MAAM,CAAC;QAClB,cAAc,EAAE,MAAM,CAAC;KACxB,GAAG,IAAI,CAAC;IAYH,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjD,wBAAwB,CAC5B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC;IAqBhB;;;;OAIG;IACG,uBAAuB,CAC3B,OAAO,EAAE,MAAM,EACf,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,MAAM,CAAC;CA6BnB"}
|