@blue-labs/language 1.20.0
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/LICENSE +21 -0
- package/README.md +133 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.mjs +4476 -0
- package/dist/lib/Blue.d.ts +99 -0
- package/dist/lib/Blue.d.ts.map +1 -0
- package/dist/lib/NodeProvider.d.ts +26 -0
- package/dist/lib/NodeProvider.d.ts.map +1 -0
- package/dist/lib/index.d.ts +9 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/mapping/AnyConverter.d.ts +6 -0
- package/dist/lib/mapping/AnyConverter.d.ts.map +1 -0
- package/dist/lib/mapping/ArrayConverter.d.ts +10 -0
- package/dist/lib/mapping/ArrayConverter.d.ts.map +1 -0
- package/dist/lib/mapping/ComplexObjectConverter.d.ts +15 -0
- package/dist/lib/mapping/ComplexObjectConverter.d.ts.map +1 -0
- package/dist/lib/mapping/Converter.d.ts +6 -0
- package/dist/lib/mapping/Converter.d.ts.map +1 -0
- package/dist/lib/mapping/ConverterFactory.d.ts +14 -0
- package/dist/lib/mapping/ConverterFactory.d.ts.map +1 -0
- package/dist/lib/mapping/MapConverter.d.ts +14 -0
- package/dist/lib/mapping/MapConverter.d.ts.map +1 -0
- package/dist/lib/mapping/NodeToObjectConverter.d.ts +13 -0
- package/dist/lib/mapping/NodeToObjectConverter.d.ts.map +1 -0
- package/dist/lib/mapping/NullConverter.d.ts +5 -0
- package/dist/lib/mapping/NullConverter.d.ts.map +1 -0
- package/dist/lib/mapping/PrimitiveConverter.d.ts +7 -0
- package/dist/lib/mapping/PrimitiveConverter.d.ts.map +1 -0
- package/dist/lib/mapping/SetConverter.d.ts +10 -0
- package/dist/lib/mapping/SetConverter.d.ts.map +1 -0
- package/dist/lib/mapping/TupleConverter.d.ts +13 -0
- package/dist/lib/mapping/TupleConverter.d.ts.map +1 -0
- package/dist/lib/mapping/UnknownConverter.d.ts +6 -0
- package/dist/lib/mapping/UnknownConverter.d.ts.map +1 -0
- package/dist/lib/mapping/ValueConverter.d.ts +12 -0
- package/dist/lib/mapping/ValueConverter.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/contract.d.ts +364 -0
- package/dist/lib/mapping/__tests__/schema/contract.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/doctor.d.ts +19 -0
- package/dist/lib/mapping/__tests__/schema/doctor.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/index.d.ts +3389 -0
- package/dist/lib/mapping/__tests__/schema/index.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/nurse.d.ts +19 -0
- package/dist/lib/mapping/__tests__/schema/nurse.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/person.d.ts +15 -0
- package/dist/lib/mapping/__tests__/schema/person.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/personDictionaryExample.d.ts +75 -0
- package/dist/lib/mapping/__tests__/schema/personDictionaryExample.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/personListExample.d.ts +61 -0
- package/dist/lib/mapping/__tests__/schema/personListExample.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/personObjectExample.d.ts +61 -0
- package/dist/lib/mapping/__tests__/schema/personObjectExample.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/personValueExample.d.ts +25 -0
- package/dist/lib/mapping/__tests__/schema/personValueExample.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x.d.ts +67 -0
- package/dist/lib/mapping/__tests__/schema/x.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x1.d.ts +73 -0
- package/dist/lib/mapping/__tests__/schema/x1.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x11.d.ts +80 -0
- package/dist/lib/mapping/__tests__/schema/x11.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x12.d.ts +80 -0
- package/dist/lib/mapping/__tests__/schema/x12.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x2.d.ts +67 -0
- package/dist/lib/mapping/__tests__/schema/x2.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x3.d.ts +77 -0
- package/dist/lib/mapping/__tests__/schema/x3.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/xSubscription.d.ts +10 -0
- package/dist/lib/mapping/__tests__/schema/xSubscription.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/y.d.ts +990 -0
- package/dist/lib/mapping/__tests__/schema/y.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/y1.d.ts +1381 -0
- package/dist/lib/mapping/__tests__/schema/y1.d.ts.map +1 -0
- package/dist/lib/mapping/index.d.ts +4 -0
- package/dist/lib/mapping/index.d.ts.map +1 -0
- package/dist/lib/mapping/serializeBlueAnnotated.d.ts +3 -0
- package/dist/lib/mapping/serializeBlueAnnotated.d.ts.map +1 -0
- package/dist/lib/model/BigDecimalNumber.d.ts +9 -0
- package/dist/lib/model/BigDecimalNumber.d.ts.map +1 -0
- package/dist/lib/model/BigIntegerNumber.d.ts +9 -0
- package/dist/lib/model/BigIntegerNumber.d.ts.map +1 -0
- package/dist/lib/model/Node.d.ts +53 -0
- package/dist/lib/model/Node.d.ts.map +1 -0
- package/dist/lib/model/NodeDeserializer.d.ts +8 -0
- package/dist/lib/model/NodeDeserializer.d.ts.map +1 -0
- package/dist/lib/model/index.d.ts +5 -0
- package/dist/lib/model/index.d.ts.map +1 -0
- package/dist/lib/preprocess/BlueDirectivePreprocessor.d.ts +85 -0
- package/dist/lib/preprocess/BlueDirectivePreprocessor.d.ts.map +1 -0
- package/dist/lib/preprocess/Preprocessor.d.ts +68 -0
- package/dist/lib/preprocess/Preprocessor.d.ts.map +1 -0
- package/dist/lib/preprocess/index.d.ts +5 -0
- package/dist/lib/preprocess/index.d.ts.map +1 -0
- package/dist/lib/preprocess/interfaces.d.ts +24 -0
- package/dist/lib/preprocess/interfaces.d.ts.map +1 -0
- package/dist/lib/preprocess/processor/InferBasicTypesForUntypedValues.d.ts +20 -0
- package/dist/lib/preprocess/processor/InferBasicTypesForUntypedValues.d.ts.map +1 -0
- package/dist/lib/preprocess/processor/ReplaceInlineValuesForTypeAttributesWithImports.d.ts +23 -0
- package/dist/lib/preprocess/processor/ReplaceInlineValuesForTypeAttributesWithImports.d.ts.map +1 -0
- package/dist/lib/preprocess/processor/index.d.ts +3 -0
- package/dist/lib/preprocess/processor/index.d.ts.map +1 -0
- package/dist/lib/preprocess/utils/BlueIdsMappingGenerator.d.ts +53 -0
- package/dist/lib/preprocess/utils/BlueIdsMappingGenerator.d.ts.map +1 -0
- package/dist/lib/processor/BlueDocumentProcessor.d.ts +54 -0
- package/dist/lib/processor/BlueDocumentProcessor.d.ts.map +1 -0
- package/dist/lib/processor/context.d.ts +21 -0
- package/dist/lib/processor/context.d.ts.map +1 -0
- package/dist/lib/processor/processors/BaseChannelProcessor.d.ts +27 -0
- package/dist/lib/processor/processors/BaseChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/ChannelEventCheckpointProcessor.d.ts +13 -0
- package/dist/lib/processor/processors/ChannelEventCheckpointProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/CompositeTimelineChannelProcessor.d.ts +9 -0
- package/dist/lib/processor/processors/CompositeTimelineChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/DocumentUpdateChannelProcessor.d.ts +9 -0
- package/dist/lib/processor/processors/DocumentUpdateChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/EmbeddedNodeChannelProcessor.d.ts +9 -0
- package/dist/lib/processor/processors/EmbeddedNodeChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/MyOSAgentChannelProcessor.d.ts +60 -0
- package/dist/lib/processor/processors/MyOSAgentChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/MyOSTimelineChannelProcessor.d.ts +9 -0
- package/dist/lib/processor/processors/MyOSTimelineChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/OperationProcessor.d.ts +11 -0
- package/dist/lib/processor/processors/OperationProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/ProcessEmbeddedProcessor.d.ts +10 -0
- package/dist/lib/processor/processors/ProcessEmbeddedProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowOperationProcessor.d.ts +12 -0
- package/dist/lib/processor/processors/SequentialWorkflowOperationProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts +15 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/index.d.ts +2 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/index.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts +8 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts +8 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts +12 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/types.d.ts +7 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/types.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts +12 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts +59 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts.map +1 -0
- package/dist/lib/processor/processors/TimelineChannelProcessor.d.ts +9 -0
- package/dist/lib/processor/processors/TimelineChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/index.d.ts +12 -0
- package/dist/lib/processor/processors/index.d.ts.map +1 -0
- package/dist/lib/processor/queue/TaskKey.d.ts +22 -0
- package/dist/lib/processor/queue/TaskKey.d.ts.map +1 -0
- package/dist/lib/processor/queue/TaskQueue.d.ts +31 -0
- package/dist/lib/processor/queue/TaskQueue.d.ts.map +1 -0
- package/dist/lib/processor/registry/ContractRegistry.d.ts +47 -0
- package/dist/lib/processor/registry/ContractRegistry.d.ts.map +1 -0
- package/dist/lib/processor/routing/EventRouter.d.ts +51 -0
- package/dist/lib/processor/routing/EventRouter.d.ts.map +1 -0
- package/dist/lib/processor/types.d.ts +112 -0
- package/dist/lib/processor/types.d.ts.map +1 -0
- package/dist/lib/processor/utils/CheckpointCache.d.ts +9 -0
- package/dist/lib/processor/utils/CheckpointCache.d.ts.map +1 -0
- package/dist/lib/processor/utils/EventTraceManager.d.ts +46 -0
- package/dist/lib/processor/utils/EventTraceManager.d.ts.map +1 -0
- package/dist/lib/processor/utils/checkpoint.d.ts +3 -0
- package/dist/lib/processor/utils/checkpoint.d.ts.map +1 -0
- package/dist/lib/processor/utils/document.d.ts +19 -0
- package/dist/lib/processor/utils/document.d.ts.map +1 -0
- package/dist/lib/processor/utils/exceptions.d.ts +28 -0
- package/dist/lib/processor/utils/exceptions.d.ts.map +1 -0
- package/dist/lib/processor/utils/fetchText.d.ts +2 -0
- package/dist/lib/processor/utils/fetchText.d.ts.map +1 -0
- package/dist/lib/processor/utils/logPatchError.d.ts +3 -0
- package/dist/lib/processor/utils/logPatchError.d.ts.map +1 -0
- package/dist/lib/processor/utils/path.d.ts +2 -0
- package/dist/lib/processor/utils/path.d.ts.map +1 -0
- package/dist/lib/processor/utils/typeGuard.d.ts +5 -0
- package/dist/lib/processor/utils/typeGuard.d.ts.map +1 -0
- package/dist/lib/provider/BaseContentNodeProvider.d.ts +9 -0
- package/dist/lib/provider/BaseContentNodeProvider.d.ts.map +1 -0
- package/dist/lib/provider/BootstrapProvider.d.ts +13 -0
- package/dist/lib/provider/BootstrapProvider.d.ts.map +1 -0
- package/dist/lib/provider/InMemoryNodeProvider.d.ts +13 -0
- package/dist/lib/provider/InMemoryNodeProvider.d.ts.map +1 -0
- package/dist/lib/provider/SequentialNodeProvider.d.ts +14 -0
- package/dist/lib/provider/SequentialNodeProvider.d.ts.map +1 -0
- package/dist/lib/provider/UrlContentFetcher.d.ts +65 -0
- package/dist/lib/provider/UrlContentFetcher.d.ts.map +1 -0
- package/dist/lib/provider/index.d.ts +6 -0
- package/dist/lib/provider/index.d.ts.map +1 -0
- package/dist/lib/utils/Base58Sha256Provider.d.ts +11 -0
- package/dist/lib/utils/Base58Sha256Provider.d.ts.map +1 -0
- package/dist/lib/utils/BlueIdCalculator.d.ts +22 -0
- package/dist/lib/utils/BlueIdCalculator.d.ts.map +1 -0
- package/dist/lib/utils/BlueIdResolver.d.ts +9 -0
- package/dist/lib/utils/BlueIdResolver.d.ts.map +1 -0
- package/dist/lib/utils/BlueIdToCid.d.ts +4 -0
- package/dist/lib/utils/BlueIdToCid.d.ts.map +1 -0
- package/dist/lib/utils/BlueIds.d.ts +7 -0
- package/dist/lib/utils/BlueIds.d.ts.map +1 -0
- package/dist/lib/utils/CidToBlueId.d.ts +4 -0
- package/dist/lib/utils/CidToBlueId.d.ts.map +1 -0
- package/dist/lib/utils/CryptoEnvironment.d.ts +13 -0
- package/dist/lib/utils/CryptoEnvironment.d.ts.map +1 -0
- package/dist/lib/utils/JsonCanonicalizer.d.ts +4 -0
- package/dist/lib/utils/JsonCanonicalizer.d.ts.map +1 -0
- package/dist/lib/utils/NodeExtender.d.ts +31 -0
- package/dist/lib/utils/NodeExtender.d.ts.map +1 -0
- package/dist/lib/utils/NodePatch/NodePatch.d.ts +28 -0
- package/dist/lib/utils/NodePatch/NodePatch.d.ts.map +1 -0
- package/dist/lib/utils/NodePatch/index.d.ts +2 -0
- package/dist/lib/utils/NodePatch/index.d.ts.map +1 -0
- package/dist/lib/utils/NodePatch/patch-operations.d.ts +8 -0
- package/dist/lib/utils/NodePatch/patch-operations.d.ts.map +1 -0
- package/dist/lib/utils/NodePatch/patch-utils.d.ts +34 -0
- package/dist/lib/utils/NodePatch/patch-utils.d.ts.map +1 -0
- package/dist/lib/utils/NodePathAccessor.d.ts +8 -0
- package/dist/lib/utils/NodePathAccessor.d.ts.map +1 -0
- package/dist/lib/utils/NodeProviderWrapper.d.ts +13 -0
- package/dist/lib/utils/NodeProviderWrapper.d.ts.map +1 -0
- package/dist/lib/utils/NodeToMapListOrValue.d.ts +24 -0
- package/dist/lib/utils/NodeToMapListOrValue.d.ts.map +1 -0
- package/dist/lib/utils/NodeTransformer.d.ts +14 -0
- package/dist/lib/utils/NodeTransformer.d.ts.map +1 -0
- package/dist/lib/utils/Properties.d.ts +31 -0
- package/dist/lib/utils/Properties.d.ts.map +1 -0
- package/dist/lib/utils/TinyQueue.d.ts +12 -0
- package/dist/lib/utils/TinyQueue.d.ts.map +1 -0
- package/dist/lib/utils/TypeSchema.d.ts +6 -0
- package/dist/lib/utils/TypeSchema.d.ts.map +1 -0
- package/dist/lib/utils/TypeSchemaResolver.d.ts +11 -0
- package/dist/lib/utils/TypeSchemaResolver.d.ts.map +1 -0
- package/dist/lib/utils/__tests__/calculateCID.d.ts +3 -0
- package/dist/lib/utils/__tests__/calculateCID.d.ts.map +1 -0
- package/dist/lib/utils/index.d.ts +10 -0
- package/dist/lib/utils/index.d.ts.map +1 -0
- package/dist/lib/utils/limits/Limits.d.ts +31 -0
- package/dist/lib/utils/limits/Limits.d.ts.map +1 -0
- package/dist/lib/utils/limits/NoLimits.d.ts +25 -0
- package/dist/lib/utils/limits/NoLimits.d.ts.map +1 -0
- package/dist/lib/utils/limits/PathLimits.d.ts +100 -0
- package/dist/lib/utils/limits/PathLimits.d.ts.map +1 -0
- package/dist/lib/utils/limits/index.d.ts +9 -0
- package/dist/lib/utils/limits/index.d.ts.map +1 -0
- package/dist/repo/core/blue-ids/index.d.ts +21 -0
- package/dist/repo/core/blue-ids/index.d.ts.map +1 -0
- package/dist/repo/core/index.d.ts +191 -0
- package/dist/repo/core/index.d.ts.map +1 -0
- package/dist/repo/core/schema/Channel.d.ts +13 -0
- package/dist/repo/core/schema/Channel.d.ts.map +1 -0
- package/dist/repo/core/schema/CompositeTimelineChannel.d.ts +17 -0
- package/dist/repo/core/schema/CompositeTimelineChannel.d.ts.map +1 -0
- package/dist/repo/core/schema/DocumentUpdateChannel.d.ts +17 -0
- package/dist/repo/core/schema/DocumentUpdateChannel.d.ts.map +1 -0
- package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts +17 -0
- package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts.map +1 -0
- package/dist/repo/core/schema/JavaScriptCode.d.ts +10 -0
- package/dist/repo/core/schema/JavaScriptCode.d.ts.map +1 -0
- package/dist/repo/core/schema/JsonPatchEntry.d.ts +22 -0
- package/dist/repo/core/schema/JsonPatchEntry.d.ts.map +1 -0
- package/dist/repo/core/schema/Operation.d.ts +16 -0
- package/dist/repo/core/schema/Operation.d.ts.map +1 -0
- package/dist/repo/core/schema/OperationRequest.d.ts +29 -0
- package/dist/repo/core/schema/OperationRequest.d.ts.map +1 -0
- package/dist/repo/core/schema/ProcessEmbedded.d.ts +10 -0
- package/dist/repo/core/schema/ProcessEmbedded.d.ts.map +1 -0
- package/dist/repo/core/schema/SequentialWorkflow.d.ts +13 -0
- package/dist/repo/core/schema/SequentialWorkflow.d.ts.map +1 -0
- package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts +15 -0
- package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts.map +1 -0
- package/dist/repo/core/schema/SequentialWorkflowStep.d.ts +13 -0
- package/dist/repo/core/schema/SequentialWorkflowStep.d.ts.map +1 -0
- package/dist/repo/core/schema/TimelineChannel.d.ts +17 -0
- package/dist/repo/core/schema/TimelineChannel.d.ts.map +1 -0
- package/dist/repo/core/schema/TimelineEntry.d.ts +25 -0
- package/dist/repo/core/schema/TimelineEntry.d.ts.map +1 -0
- package/dist/repo/core/schema/TriggerEvent.d.ts +10 -0
- package/dist/repo/core/schema/TriggerEvent.d.ts.map +1 -0
- package/dist/repo/core/schema/UpdateDocument.d.ts +40 -0
- package/dist/repo/core/schema/UpdateDocument.d.ts.map +1 -0
- package/dist/repo/core/schema/index.d.ts +14 -0
- package/dist/repo/core/schema/index.d.ts.map +1 -0
- package/dist/repo/myos/blue-ids/index.d.ts +8 -0
- package/dist/repo/myos/blue-ids/index.d.ts.map +1 -0
- package/dist/repo/myos/index.d.ts +99 -0
- package/dist/repo/myos/index.d.ts.map +1 -0
- package/dist/repo/myos/schema/MyOSAgent.d.ts +10 -0
- package/dist/repo/myos/schema/MyOSAgent.d.ts.map +1 -0
- package/dist/repo/myos/schema/MyOSAgentChannel.d.ts +30 -0
- package/dist/repo/myos/schema/MyOSAgentChannel.d.ts.map +1 -0
- package/dist/repo/myos/schema/MyOSAgentEvent.d.ts +19 -0
- package/dist/repo/myos/schema/MyOSAgentEvent.d.ts.map +1 -0
- package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts +24 -0
- package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts.map +1 -0
- package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts +32 -0
- package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts.map +1 -0
- package/dist/repo/myos/schema/index.d.ts +6 -0
- package/dist/repo/myos/schema/index.d.ts.map +1 -0
- package/dist/schema/annotations/annotations.d.ts +10 -0
- package/dist/schema/annotations/annotations.d.ts.map +1 -0
- package/dist/schema/annotations/blueDescription.d.ts +5 -0
- package/dist/schema/annotations/blueDescription.d.ts.map +1 -0
- package/dist/schema/annotations/blueId.d.ts +5 -0
- package/dist/schema/annotations/blueId.d.ts.map +1 -0
- package/dist/schema/annotations/blueName.d.ts +5 -0
- package/dist/schema/annotations/blueName.d.ts.map +1 -0
- package/dist/schema/annotations/blueNode.d.ts +7 -0
- package/dist/schema/annotations/blueNode.d.ts.map +1 -0
- package/dist/schema/annotations/extends.d.ts +8 -0
- package/dist/schema/annotations/extends.d.ts.map +1 -0
- package/dist/schema/annotations/index.d.ts +7 -0
- package/dist/schema/annotations/index.d.ts.map +1 -0
- package/dist/schema/annotations/typeBlueId/index.d.ts +2 -0
- package/dist/schema/annotations/typeBlueId/index.d.ts.map +1 -0
- package/dist/schema/annotations/typeBlueId/proxySchema.d.ts +3 -0
- package/dist/schema/annotations/typeBlueId/proxySchema.d.ts.map +1 -0
- package/dist/schema/annotations/typeBlueId/typeBlueId.d.ts +19 -0
- package/dist/schema/annotations/typeBlueId/typeBlueId.d.ts.map +1 -0
- package/dist/schema/blueId.d.ts +4 -0
- package/dist/schema/blueId.d.ts.map +1 -0
- package/dist/schema/blueObjectPredicates.d.ts +11 -0
- package/dist/schema/blueObjectPredicates.d.ts.map +1 -0
- package/dist/schema/generated/blueObject.d.ts +37 -0
- package/dist/schema/generated/blueObject.d.ts.map +1 -0
- package/dist/schema/generated/blueObject.zod.d.ts +100 -0
- package/dist/schema/generated/blueObject.zod.d.ts.map +1 -0
- package/dist/schema/generated/index.d.ts +3 -0
- package/dist/schema/generated/index.d.ts.map +1 -0
- package/dist/schema/index.d.ts +5 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/jsonBlue.d.ts +18 -0
- package/dist/schema/jsonBlue.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/zod.d.ts +5 -0
- package/dist/types/zod.d.ts.map +1 -0
- package/dist/utils/blueId/calculateBlueId.d.ts +15 -0
- package/dist/utils/blueId/calculateBlueId.d.ts.map +1 -0
- package/dist/utils/blueId/index.d.ts +2 -0
- package/dist/utils/blueId/index.d.ts.map +1 -0
- package/dist/utils/blueObject/enrichWithBlueId.d.ts +11 -0
- package/dist/utils/blueObject/enrichWithBlueId.d.ts.map +1 -0
- package/dist/utils/blueObject/getBlueObjectProperties.d.ts +6 -0
- package/dist/utils/blueObject/getBlueObjectProperties.d.ts.map +1 -0
- package/dist/utils/blueObject/getBlueObjectTypeLabel.d.ts +6 -0
- package/dist/utils/blueObject/getBlueObjectTypeLabel.d.ts.map +1 -0
- package/dist/utils/blueObject/getters.d.ts +7 -0
- package/dist/utils/blueObject/getters.d.ts.map +1 -0
- package/dist/utils/blueObject/index.d.ts +8 -0
- package/dist/utils/blueObject/index.d.ts.map +1 -0
- package/dist/utils/blueObject/isBlueObjectResolved.d.ts +3 -0
- package/dist/utils/blueObject/isBlueObjectResolved.d.ts.map +1 -0
- package/dist/utils/blueObject/normalizeToBlueObject.d.ts +10 -0
- package/dist/utils/blueObject/normalizeToBlueObject.d.ts.map +1 -0
- package/dist/utils/blueObject/resolveBlueObjectItems.d.ts +24 -0
- package/dist/utils/blueObject/resolveBlueObjectItems.d.ts.map +1 -0
- package/dist/utils/bs58/bs58.d.ts +3 -0
- package/dist/utils/bs58/bs58.d.ts.map +1 -0
- package/dist/utils/bs58/index.d.ts +2 -0
- package/dist/utils/bs58/index.d.ts.map +1 -0
- package/dist/utils/deepFreeze.d.ts +8 -0
- package/dist/utils/deepFreeze.d.ts.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/typeGuards/index.d.ts +2 -0
- package/dist/utils/typeGuards/index.d.ts.map +1 -0
- package/dist/utils/typeGuards/isBigNumber.d.ts +6 -0
- package/dist/utils/typeGuards/isBigNumber.d.ts.map +1 -0
- package/dist/utils/url.d.ts +7 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/dist/utils/yamlBlue/dump.d.ts +5 -0
- package/dist/utils/yamlBlue/dump.d.ts.map +1 -0
- package/dist/utils/yamlBlue/index.d.ts +3 -0
- package/dist/utils/yamlBlue/index.d.ts.map +1 -0
- package/dist/utils/yamlBlue/parse.d.ts +9 -0
- package/dist/utils/yamlBlue/parse.d.ts.map +1 -0
- package/dist/utils/yamlBlue/schema.d.ts +3 -0
- package/dist/utils/yamlBlue/schema.d.ts.map +1 -0
- package/dist/utils/yamlBlue/type/float.d.ts +3 -0
- package/dist/utils/yamlBlue/type/float.d.ts.map +1 -0
- package/dist/utils/yamlBlue/type/int.d.ts +3 -0
- package/dist/utils/yamlBlue/type/int.d.ts.map +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentUpdateChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/DocumentUpdateChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAM9D,qBAAa,8BAA+B,SAAQ,oBAAoB;IACtE,QAAQ,CAAC,YAAY,6BAA6B;IAClD,QAAQ,CAAC,cAAc,gDAAsC;IAE7D,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,GACnB,OAAO;IAmBV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,YAAY,EAC1B,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,GACnB,IAAI;CAUR"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventNode, DocumentNode, ProcessingContext } from '../types';
|
|
2
|
+
import { BaseChannelProcessor } from './BaseChannelProcessor';
|
|
3
|
+
export declare class EmbeddedNodeChannelProcessor extends BaseChannelProcessor {
|
|
4
|
+
readonly contractType = "Embedded Node Channel";
|
|
5
|
+
readonly contractBlueId: "MkKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2";
|
|
6
|
+
supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
|
|
7
|
+
handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, path: string): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=EmbeddedNodeChannelProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmbeddedNodeChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/EmbeddedNodeChannelProcessor.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,qBAAa,4BAA6B,SAAQ,oBAAoB;IACpE,QAAQ,CAAC,YAAY,2BAA2B;IAChD,QAAQ,CAAC,cAAc,gDAAoC;IAE3D,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAaV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CAkBR"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { EventNode, DocumentNode, ProcessingContext } from '../types';
|
|
2
|
+
import { BaseChannelProcessor } from './BaseChannelProcessor';
|
|
3
|
+
/**
|
|
4
|
+
* Processes MyOS Agent Events by matching them against MyOS Agent Channel configurations.
|
|
5
|
+
*
|
|
6
|
+
* This processor:
|
|
7
|
+
* - Filters events by agent ID matching
|
|
8
|
+
* - Optionally filters by event pattern using deep containment matching
|
|
9
|
+
* - Emits matched events as channel events
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```typescript
|
|
13
|
+
* // Channel configuration
|
|
14
|
+
* {
|
|
15
|
+
* type: 'MyOS Agent Channel',
|
|
16
|
+
* agent: { agentId: 'agent-123' },
|
|
17
|
+
* event: { type: 'UserAction', payload: { action: 'click' } }
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* // Matching event
|
|
21
|
+
* {
|
|
22
|
+
* type: 'MyOS Agent Event',
|
|
23
|
+
* agentId: 'agent-123',
|
|
24
|
+
* event: { type: 'UserAction', payload: { action: 'click', target: 'button' } }
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare class MyOSAgentChannelProcessor extends BaseChannelProcessor {
|
|
29
|
+
readonly contractType = "MyOS Agent Channel";
|
|
30
|
+
readonly contractBlueId: "AgentCh4nn3lBlu3Id7dr6Eo2MkKoutP5qxkh3uxQCS1V";
|
|
31
|
+
supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
|
|
32
|
+
handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, path: string): void;
|
|
33
|
+
/**
|
|
34
|
+
* Parses and validates the event payload and channel configuration
|
|
35
|
+
* @throws {Error} If schema validation fails
|
|
36
|
+
*/
|
|
37
|
+
private parseEventAndChannel;
|
|
38
|
+
/**
|
|
39
|
+
* Checks if the agent IDs match between event and channel
|
|
40
|
+
* @param myosAgentEvent - The parsed agent event
|
|
41
|
+
* @param myosAgentChannel - The parsed agent channel configuration
|
|
42
|
+
* @returns true if both have valid agent IDs and they match
|
|
43
|
+
*/
|
|
44
|
+
private isAgentMatch;
|
|
45
|
+
/**
|
|
46
|
+
* Checks if the event pattern matches the channel's event filter
|
|
47
|
+
*
|
|
48
|
+
* @param myosAgentEvent - The parsed agent event
|
|
49
|
+
* @param myosAgentChannel - The parsed agent channel configuration
|
|
50
|
+
* @param ctx - Processing context for Blue instance access
|
|
51
|
+
* @returns true if the event matches the channel's filter criteria
|
|
52
|
+
*
|
|
53
|
+
* **Matching Logic:**
|
|
54
|
+
* - If no event pattern is specified in channel → matches all events
|
|
55
|
+
* - If channel has event pattern but incoming event has no event data → no match
|
|
56
|
+
* - Otherwise → uses deep containment matching (event must contain all channel pattern fields)
|
|
57
|
+
*/
|
|
58
|
+
private isEventPatternMatch;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=MyOSAgentChannelProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MyOSAgentChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/MyOSAgentChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAa9D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAAa,yBAA0B,SAAQ,oBAAoB;IACjE,QAAQ,CAAC,YAAY,wBAAwB;IAC7C,QAAQ,CAAC,cAAc,kDAAiC;IAExD,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAqBV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;IAQP;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IAqB5B;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAcpB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,mBAAmB;CA8B5B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventNode, DocumentNode, ProcessingContext } from '../types';
|
|
2
|
+
import { BaseChannelProcessor } from './BaseChannelProcessor';
|
|
3
|
+
export declare class MyOSTimelineChannelProcessor extends BaseChannelProcessor {
|
|
4
|
+
readonly contractType = "MyOS Timeline Channel";
|
|
5
|
+
readonly contractBlueId: "MkKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2R";
|
|
6
|
+
supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
|
|
7
|
+
handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, path: string): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=MyOSTimelineChannelProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MyOSTimelineChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/MyOSTimelineChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAkB9D,qBAAa,4BAA6B,SAAQ,oBAAoB;IACpE,QAAQ,CAAC,YAAY,2BAA2B;IAChD,QAAQ,CAAC,cAAc,iDAAoC;IAE3D,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAiCV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CASR"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ContractProcessor, DocumentNode, EventNode, ProcessingContext } from '../types';
|
|
2
|
+
export declare class OperationProcessor implements ContractProcessor {
|
|
3
|
+
readonly contractType = "Operation";
|
|
4
|
+
readonly contractBlueId: "OpKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2R";
|
|
5
|
+
readonly role = "adapter";
|
|
6
|
+
supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext, contractName: string): boolean;
|
|
7
|
+
handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, contractName?: string): Promise<void>;
|
|
8
|
+
init(): EventNode[];
|
|
9
|
+
private parseEventPayload;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=OperationProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/OperationProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAUlB,qBAAa,kBAAmB,YAAW,iBAAiB;IAC1D,QAAQ,CAAC,YAAY,eAAe;IACpC,QAAQ,CAAC,cAAc,iDAAwB;IAC/C,QAAQ,CAAC,IAAI,aAAa;IAE1B,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,GACnB,OAAO;IAgBJ,MAAM,CACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC;IAQhB,IAAI,IAAI,SAAS,EAAE;IAInB,OAAO,CAAC,iBAAiB;CAmB1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ContractProcessor, DocumentNode, EventNode, ProcessingContext } from '../types';
|
|
2
|
+
export declare class ProcessEmbeddedProcessor implements ContractProcessor {
|
|
3
|
+
readonly contractType = "Process Embedded";
|
|
4
|
+
readonly role = "adapter";
|
|
5
|
+
readonly contractBlueId: "DxZ7dr6EoMkKoutP5qxkh3u27B7fuxQCS1VAptiCPc2R";
|
|
6
|
+
supports(evt: EventNode): boolean;
|
|
7
|
+
handle(evt: EventNode, node: DocumentNode, ctx: ProcessingContext): void;
|
|
8
|
+
init(): never[];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ProcessEmbeddedProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProcessEmbeddedProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/ProcessEmbeddedProcessor.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,qBAAa,wBAAyB,YAAW,iBAAiB;IAChE,QAAQ,CAAC,YAAY,sBAAsB;IAC3C,QAAQ,CAAC,IAAI,aAAa;IAC1B,QAAQ,CAAC,cAAc,iDAA+B;IAEtD,QAAQ,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO;IAIjC,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,iBAAiB,GAAG,IAAI;IAaxE,IAAI;CAGL"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EventNode, DocumentNode, ProcessingContext } from '../types';
|
|
2
|
+
import { SequentialWorkflowProcessor } from './SequentialWorkflowProcessor';
|
|
3
|
+
export declare class SequentialWorkflowOperationProcessor {
|
|
4
|
+
readonly contractType = "Sequential Workflow Operation";
|
|
5
|
+
readonly contractBlueId: "SeqOpKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiC";
|
|
6
|
+
readonly role = "handler";
|
|
7
|
+
private sequentialWorkflowProcessor;
|
|
8
|
+
constructor(sequentialWorkflowProcessor?: SequentialWorkflowProcessor);
|
|
9
|
+
supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
|
|
10
|
+
handle(event: EventNode, node: DocumentNode, context: ProcessingContext, path: string): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=SequentialWorkflowOperationProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SequentialWorkflowOperationProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/SequentialWorkflowOperationProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAK5E,qBAAa,oCAAoC;IAC/C,QAAQ,CAAC,YAAY,mCAAmC;IACxD,QAAQ,CAAC,cAAc,gDAA4C;IACnE,QAAQ,CAAC,IAAI,aAAa;IAE1B,OAAO,CAAC,2BAA2B,CAA8B;gBAErD,2BAA2B,CAAC,EAAE,2BAA2B;IAKrE,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAiBJ,MAAM,CACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;CAWjB"}
|
package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ContractProcessor, EventNode, DocumentNode, ProcessingContext } from '../../types';
|
|
2
|
+
import { WorkflowStepExecutor } from './types';
|
|
3
|
+
export declare class SequentialWorkflowProcessor implements ContractProcessor {
|
|
4
|
+
readonly contractType = "Sequential Workflow";
|
|
5
|
+
readonly contractBlueId: "h3uDxZ7dr6Eo27B7fuxMkKoutP5qxkQCS1VAptiCPc2R";
|
|
6
|
+
readonly role = "handler";
|
|
7
|
+
private executors;
|
|
8
|
+
constructor(executors?: WorkflowStepExecutor[]);
|
|
9
|
+
/** allow registering custom step executors */
|
|
10
|
+
registerExecutor(ex: WorkflowStepExecutor): void;
|
|
11
|
+
supports(event: EventNode, node: DocumentNode, context: ProcessingContext): boolean;
|
|
12
|
+
handle(event: EventNode, node: DocumentNode, context: ProcessingContext, path: string): Promise<void>;
|
|
13
|
+
init(): EventNode[];
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=SequentialWorkflowProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SequentialWorkflowProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAa/C,qBAAa,2BAA4B,YAAW,iBAAiB;IACnE,QAAQ,CAAC,YAAY,yBAAyB;IAC9C,QAAQ,CAAC,cAAc,iDAAkC;IACzD,QAAQ,CAAC,IAAI,aAAa;IAE1B,OAAO,CAAC,SAAS,CAA8B;gBAEnC,SAAS,GAAE,oBAAoB,EAAqB;IAIhE,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,EAAE,oBAAoB;IAIzC,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,iBAAiB,GACzB,OAAO;IAWJ,MAAM,CACV,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,IAAI,CAAC;IAiChB,IAAI,IAAI,SAAS,EAAE;CAGpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DocumentNode, EventNode, ProcessingContext } from '../../../types';
|
|
2
|
+
import { WorkflowStepExecutor } from '../types';
|
|
3
|
+
export declare class JavaScriptCodeExecutor implements WorkflowStepExecutor {
|
|
4
|
+
readonly stepType = "JavaScript Code";
|
|
5
|
+
supports(node: DocumentNode): boolean;
|
|
6
|
+
execute(step: DocumentNode, evt: EventNode, ctx: ProcessingContext, documentPath: string, stepResults: Record<string, unknown>): Promise<unknown>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=JavaScriptCodeExecutor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JavaScriptCodeExecutor.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,SAAS,EAET,iBAAiB,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAUhD,qBAAa,sBAAuB,YAAW,oBAAoB;IACjE,QAAQ,CAAC,QAAQ,qBAAqB;IAEtC,QAAQ,CAAC,IAAI,EAAE,YAAY;IAIrB,OAAO,CACX,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,OAAO,CAAC;CAsCpB"}
|
package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EventNode, ProcessingContext, DocumentNode } from '../../../types';
|
|
2
|
+
import { WorkflowStepExecutor } from '../types';
|
|
3
|
+
export declare class TriggerEventExecutor implements WorkflowStepExecutor {
|
|
4
|
+
readonly stepType = "Trigger Event";
|
|
5
|
+
supports(node: DocumentNode): boolean;
|
|
6
|
+
execute(step: DocumentNode, event: EventNode, ctx: ProcessingContext): Promise<void>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=TriggerEventExecutor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TriggerEventExecutor.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAIhD,qBAAa,oBAAqB,YAAW,oBAAoB;IAC/D,QAAQ,CAAC,QAAQ,mBAAmB;IAEpC,QAAQ,CAAC,IAAI,EAAE,YAAY;IAIrB,OAAO,CACX,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,iBAAiB,GACrB,OAAO,CAAC,IAAI,CAAC;CAmBjB"}
|
package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DocumentNode, EventNode, ProcessingContext } from '../../../types';
|
|
2
|
+
import { WorkflowStepExecutor } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Executor for "Update Document" workflow steps
|
|
5
|
+
*/
|
|
6
|
+
export declare class UpdateDocumentExecutor implements WorkflowStepExecutor {
|
|
7
|
+
readonly stepType = "Update Document";
|
|
8
|
+
supports(node: DocumentNode): boolean;
|
|
9
|
+
private evaluateChangeValue;
|
|
10
|
+
execute(step: DocumentNode, event: EventNode, ctx: ProcessingContext, documentPath: string, stepResults: Record<string, unknown>): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=UpdateDocumentExecutor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateDocumentExecutor.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAOhD;;GAEG;AACH,qBAAa,sBAAuB,YAAW,oBAAoB;IACjE,QAAQ,CAAC,QAAQ,qBAAqB;IAEtC,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO;YAIvB,mBAAmB;IA6B3B,OAAO,CACX,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,OAAO,CAAC,IAAI,CAAC;CA8CjB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DocumentNode, EventNode, ProcessingContext } from '../../types';
|
|
2
|
+
export interface WorkflowStepExecutor {
|
|
3
|
+
readonly stepType: string;
|
|
4
|
+
supports(step: DocumentNode): boolean;
|
|
5
|
+
execute(step: DocumentNode, event: EventNode, ctx: ProcessingContext, documentPath: string, steps?: Record<string, unknown>): Promise<unknown>;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEzE,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC;IACtC,OAAO,CACL,IAAI,EAAE,YAAY,EAClB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,iBAAiB,EACtB,YAAY,EAAE,MAAM,EACpB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,OAAO,CAAC,CAAC;CACrB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProcessingContext, EventNode } from '../../../types';
|
|
2
|
+
import { VMBindings } from './ExpressionEvaluator';
|
|
3
|
+
/**
|
|
4
|
+
* Factory for creating standardized bindings for ExpressionEvaluator.evaluate
|
|
5
|
+
*/
|
|
6
|
+
export declare class BindingsFactory {
|
|
7
|
+
/**
|
|
8
|
+
* Creates standard bindings for workflow step execution
|
|
9
|
+
*/
|
|
10
|
+
static createStandardBindings(ctx: ProcessingContext, event: EventNode, stepResults: Record<string, unknown>): VMBindings;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=BindingsFactory.d.ts.map
|
package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BindingsFactory.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAInD;;GAEG;AACH,qBAAa,eAAe;IAC1B;;OAEG;IACH,MAAM,CAAC,sBAAsB,CAC3B,GAAG,EAAE,iBAAiB,EACtB,KAAK,EAAE,SAAS,EAChB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACnC,UAAU;CAkBd"}
|
package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ProcessingContext } from '../../../types';
|
|
2
|
+
/**
|
|
3
|
+
* Bindings that will be available inside the VM
|
|
4
|
+
*/
|
|
5
|
+
export interface VMBindings {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
document?: (path: string) => unknown;
|
|
8
|
+
event?: unknown;
|
|
9
|
+
steps?: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* ExpressionEvaluator - Evaluates JavaScript code and expressions securely
|
|
13
|
+
*
|
|
14
|
+
* Features:
|
|
15
|
+
* - Plain expressions and code blocks evaluation
|
|
16
|
+
* - Support for ES modules with static import/export
|
|
17
|
+
* - Support for "blue:<blueId>" module specifiers
|
|
18
|
+
* - Support for HTTP/HTTPS URLs for external modules
|
|
19
|
+
*/
|
|
20
|
+
export declare class ExpressionEvaluator {
|
|
21
|
+
/**
|
|
22
|
+
* Main evaluation method - chooses between secure and simple evaluation strategies
|
|
23
|
+
*/
|
|
24
|
+
static evaluate({ code, ctx, bindings, options, }: {
|
|
25
|
+
code: string;
|
|
26
|
+
ctx: ProcessingContext;
|
|
27
|
+
bindings?: VMBindings;
|
|
28
|
+
options?: {
|
|
29
|
+
isCodeBlock?: boolean;
|
|
30
|
+
timeout?: number;
|
|
31
|
+
};
|
|
32
|
+
}): Promise<unknown>;
|
|
33
|
+
/**
|
|
34
|
+
* Fallback evaluation using Node's Function constructor
|
|
35
|
+
* Used when isolated-vm is not available
|
|
36
|
+
*/
|
|
37
|
+
private static evaluateSimple;
|
|
38
|
+
/**
|
|
39
|
+
* Secure evaluation using isolated-vm with support for ES modules
|
|
40
|
+
*/
|
|
41
|
+
private static evaluateSecure;
|
|
42
|
+
/**
|
|
43
|
+
* Setup the isolated VM environment with necessary host functions and data
|
|
44
|
+
*/
|
|
45
|
+
private static setupIsolateEnvironment;
|
|
46
|
+
/**
|
|
47
|
+
* Create module resolver function for handling imports
|
|
48
|
+
*/
|
|
49
|
+
private static createModuleResolver;
|
|
50
|
+
/**
|
|
51
|
+
* Evaluate code as a simple script (no imports/exports)
|
|
52
|
+
*/
|
|
53
|
+
private static evaluateSimpleScript;
|
|
54
|
+
/**
|
|
55
|
+
* Evaluate code as an ES module with import/export support
|
|
56
|
+
*/
|
|
57
|
+
private static evaluateESModule;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=ExpressionEvaluator.d.ts.map
|
package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpressionEvaluator.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AASnD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACrC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAuBD;;;;;;;;GAQG;AACH,qBAAa,mBAAmB;IAC9B;;OAEG;WACU,QAAQ,CAAC,EACpB,IAAI,EACJ,GAAG,EACH,QAAa,EACb,OAAY,GACb,EAAE;QACD,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,iBAAiB,CAAC;QACvB,QAAQ,CAAC,EAAE,UAAU,CAAC;QACtB,OAAO,CAAC,EAAE;YAAE,WAAW,CAAC,EAAE,OAAO,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACvD,GAAG,OAAO,CAAC,OAAO,CAAC;IAOpB;;;OAGG;mBACkB,cAAc;IAqCnC;;OAEG;mBACkB,cAAc;IAqDnC;;OAEG;mBACkB,uBAAuB;IAuB5C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAqDnC;;OAEG;mBACkB,oBAAoB;IAwBzC;;OAEG;mBACkB,gBAAgB;CA0CtC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EventNode, DocumentNode, ProcessingContext } from '../types';
|
|
2
|
+
import { BaseChannelProcessor } from './BaseChannelProcessor';
|
|
3
|
+
export declare class TimelineChannelProcessor extends BaseChannelProcessor {
|
|
4
|
+
readonly contractType = "Timeline Channel";
|
|
5
|
+
readonly contractBlueId: "RMkKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2";
|
|
6
|
+
supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
|
|
7
|
+
handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, path: string): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=TimelineChannelProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TimelineChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/TimelineChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAEtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAgB9D,qBAAa,wBAAyB,SAAQ,oBAAoB;IAChE,QAAQ,CAAC,YAAY,sBAAsB;IAC3C,QAAQ,CAAC,cAAc,iDAA+B;IAEtD,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAuBV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CASR"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './ChannelEventCheckpointProcessor';
|
|
2
|
+
export * from './CompositeTimelineChannelProcessor';
|
|
3
|
+
export * from './DocumentUpdateChannelProcessor';
|
|
4
|
+
export * from './EmbeddedNodeChannelProcessor';
|
|
5
|
+
export * from './MyOSTimelineChannelProcessor';
|
|
6
|
+
export * from './MyOSAgentChannelProcessor';
|
|
7
|
+
export * from './OperationProcessor';
|
|
8
|
+
export * from './ProcessEmbeddedProcessor';
|
|
9
|
+
export * from './SequentialWorkflowOperationProcessor';
|
|
10
|
+
export * from './TimelineChannelProcessor';
|
|
11
|
+
export * from './SequentialWorkflowProcessor';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Task } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a task key for prioritization in the queue
|
|
4
|
+
*
|
|
5
|
+
* @param depth - Node depth in document (negated for priority)
|
|
6
|
+
* @param eventSeq - Event sequence number for causal ordering
|
|
7
|
+
* @param contractTypePriority - Priority based on contract type
|
|
8
|
+
* @param contractOrder - Priority specified on the contract
|
|
9
|
+
* @param contractName - Contract name for deterministic sorting
|
|
10
|
+
* @param taskId - Sequence number for preserving insertion order
|
|
11
|
+
* @returns Task key tuple for sorting
|
|
12
|
+
*/
|
|
13
|
+
export declare const makeTaskKey: (depth: number, eventSeq: number, contractTypePriority: number, contractOrder: number, contractName: string, taskId: number) => Task["key"];
|
|
14
|
+
/**
|
|
15
|
+
* Compares two tasks for sorting
|
|
16
|
+
*
|
|
17
|
+
* @param a - First task
|
|
18
|
+
* @param b - Second task
|
|
19
|
+
* @returns Negative if a < b, positive if a > b, 0 if equal
|
|
20
|
+
*/
|
|
21
|
+
export declare const compareTasks: (a: Task, b: Task) => number;
|
|
22
|
+
//# sourceMappingURL=TaskKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskKey.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/queue/TaskKey.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAEhC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,UACf,MAAM,YACH,MAAM,wBACM,MAAM,iBACb,MAAM,gBACP,MAAM,UACZ,MAAM,KACb,IAAI,CAAC,KAAK,CAOZ,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,MAAO,IAAI,KAAK,IAAI,KAAG,MAe/C,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Task } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Priority queue for tasks with deterministic ordering
|
|
4
|
+
*
|
|
5
|
+
* Wraps TinyQueue to provide a consistent interface for
|
|
6
|
+
* managing prioritized tasks in the document processor.
|
|
7
|
+
*/
|
|
8
|
+
export declare class TaskQueue {
|
|
9
|
+
private readonly queue;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a new task queue with the task key comparator
|
|
12
|
+
*/
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Adds a task to the queue
|
|
16
|
+
*
|
|
17
|
+
* @param task - The task to add
|
|
18
|
+
*/
|
|
19
|
+
push(task: Task): void;
|
|
20
|
+
/**
|
|
21
|
+
* Removes and returns the highest priority task
|
|
22
|
+
*
|
|
23
|
+
* @returns The highest priority task or undefined if queue is empty
|
|
24
|
+
*/
|
|
25
|
+
pop(): Task | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Gets the number of tasks in the queue
|
|
28
|
+
*/
|
|
29
|
+
get length(): number;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=TaskQueue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskQueue.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/queue/TaskQueue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGhC;;;;;GAKG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAkB;IAExC;;OAEG;;IAKH;;;;OAIG;IACH,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;IAItB;;;;OAIG;IACH,GAAG,IAAI,IAAI,GAAG,SAAS;IAIvB;;OAEG;IACH,IAAI,MAAM,IAAI,MAAM,CAEnB;CACF"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { BlueNode } from '../../model/Node';
|
|
2
|
+
import { ContractProcessor } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Registry for contract processors with type ordering
|
|
5
|
+
*
|
|
6
|
+
* Manages the registration and lookup of contract processors
|
|
7
|
+
* while preserving order information for execution priority.
|
|
8
|
+
*/
|
|
9
|
+
export declare class ContractRegistry {
|
|
10
|
+
private readonly processors;
|
|
11
|
+
private readonly typeOrder;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new contract registry
|
|
14
|
+
*
|
|
15
|
+
* @param list - Initial list of processors to register
|
|
16
|
+
*/
|
|
17
|
+
constructor(list?: ContractProcessor[]);
|
|
18
|
+
/**
|
|
19
|
+
* Registers a new contract processor
|
|
20
|
+
*
|
|
21
|
+
* @param proc - The processor to register
|
|
22
|
+
* @param orderHint - Optional priority value for execution order
|
|
23
|
+
* @throws Error if a processor for the same contract type is already registered
|
|
24
|
+
*/
|
|
25
|
+
register(proc: ContractProcessor, orderHint?: number): void;
|
|
26
|
+
/**
|
|
27
|
+
* Gets a processor by contract type node
|
|
28
|
+
*
|
|
29
|
+
* @param typeNode - The contract type node
|
|
30
|
+
* @returns The associated processor or undefined
|
|
31
|
+
*/
|
|
32
|
+
get(typeNode?: BlueNode): ContractProcessor | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Gets the order priority for a contract type node
|
|
35
|
+
*
|
|
36
|
+
* @param typeNode - The contract type node
|
|
37
|
+
* @returns The priority value (0 if not found)
|
|
38
|
+
*/
|
|
39
|
+
orderOf(typeNode?: BlueNode): number;
|
|
40
|
+
/**
|
|
41
|
+
* Gets all registered processors
|
|
42
|
+
*
|
|
43
|
+
* @returns Iterator of all registered processors
|
|
44
|
+
*/
|
|
45
|
+
values(): IterableIterator<ContractProcessor>;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=ContractRegistry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContractRegistry.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/registry/ContractRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C;;;;;GAKG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAwC;IACnE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6B;IAEvD;;;;OAIG;gBACS,IAAI,GAAE,iBAAiB,EAAO;IAI1C;;;;;;OAMG;IACH,QAAQ,CAAC,IAAI,EAAE,iBAAiB,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;IAU3D;;;;;OAKG;IACH,GAAG,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,iBAAiB,GAAG,SAAS;IAOvD;;;;;OAKG;IACH,OAAO,CAAC,QAAQ,CAAC,EAAE,QAAQ,GAAG,MAAM;IAOpC;;;;OAIG;IACH,MAAM,IAAI,gBAAgB,CAAC,iBAAiB,CAAC;CAG9C"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { DocumentNode, EventNode } from '../types';
|
|
2
|
+
import { TaskQueue } from '../queue/TaskQueue';
|
|
3
|
+
import { ContractRegistry } from '../registry/ContractRegistry';
|
|
4
|
+
import { Blue } from '../../Blue';
|
|
5
|
+
/**
|
|
6
|
+
* Routes events to matching contracts in the document tree
|
|
7
|
+
*/
|
|
8
|
+
export declare class EventRouter {
|
|
9
|
+
private readonly blue;
|
|
10
|
+
private readonly registry;
|
|
11
|
+
private readonly queue;
|
|
12
|
+
private readonly getNextTaskId;
|
|
13
|
+
private readonly getNextEventSeq;
|
|
14
|
+
private readonly traceManager;
|
|
15
|
+
/**
|
|
16
|
+
* Creates a new event router
|
|
17
|
+
*
|
|
18
|
+
* @param registry - Contract registry for looking up processors
|
|
19
|
+
* @param queue - Task queue for scheduling handlers
|
|
20
|
+
* @param getNextTaskId - Function to get the next task ID
|
|
21
|
+
* @param getNextEventSeq - Function to get the next event sequence number
|
|
22
|
+
*/
|
|
23
|
+
constructor(blue: Blue, registry: ContractRegistry, queue: TaskQueue, getNextTaskId: () => number, getNextEventSeq: () => number);
|
|
24
|
+
/**
|
|
25
|
+
* Routes an event to matching contracts in the document
|
|
26
|
+
*
|
|
27
|
+
* @param doc - The document to route events in
|
|
28
|
+
* @param pathSegments - Path segments to the current node
|
|
29
|
+
* @param event - The event to route
|
|
30
|
+
* @param afterTaskId - Minimum task ID to use
|
|
31
|
+
* @param inlineDepth - Current adapter recursion depth
|
|
32
|
+
*/
|
|
33
|
+
route(doc: DocumentNode, pathSegments: string[], event: EventNode, afterTaskId: number, inlineDepth?: number): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* Traverses contracts at the current node and routes to matching ones
|
|
36
|
+
*/
|
|
37
|
+
private traverseContracts;
|
|
38
|
+
/**
|
|
39
|
+
* Processes an adapter contract and routes any emitted events
|
|
40
|
+
*/
|
|
41
|
+
private processAdapter;
|
|
42
|
+
/**
|
|
43
|
+
* Schedules a handler contract for future execution
|
|
44
|
+
*/
|
|
45
|
+
private scheduleHandler;
|
|
46
|
+
/**
|
|
47
|
+
* Checks if an event should be skipped because it came from another channel node
|
|
48
|
+
*/
|
|
49
|
+
private shouldSkipForChannel;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=EventRouter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventRouter.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/routing/EventRouter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EACZ,SAAS,EAEV,MAAM,UAAU,CAAC;AAKlB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAMvC;;GAEG;AACH,qBAAa,WAAW;IAYpB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,eAAe;IAflC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAoB;IAEjD;;;;;;;OAOG;gBAEgB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,gBAAgB,EAC1B,KAAK,EAAE,SAAS,EAChB,aAAa,EAAE,MAAM,MAAM,EAC3B,eAAe,EAAE,MAAM,MAAM;IAKhD;;;;;;;;OAQG;IACG,KAAK,CACT,GAAG,EAAE,YAAY,EACjB,YAAY,EAAE,MAAM,EAAE,EACtB,KAAK,EAAE,SAAS,EAChB,WAAW,EAAE,MAAM,EACnB,WAAW,SAAI,GACd,OAAO,CAAC,IAAI,CAAC;IAsChB;;OAEG;YACW,iBAAiB;IA0E/B;;OAEG;YACW,cAAc;IAkD5B;;OAEG;IACH,OAAO,CAAC,eAAe;IA4CvB;;OAEG;IACH,OAAO,CAAC,oBAAoB;CAO7B"}
|