@principal-ai/subsystems-core 0.29.0 → 0.31.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/README.md +15 -110
- package/dist/index.d.ts +7 -75
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -205
- package/dist/index.js.map +1 -1
- package/dist/node.d.ts +5 -61
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +9 -131
- package/dist/node.js.map +1 -1
- package/dist/types/index.d.ts +3 -348
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -19
- package/dist/types/index.js.map +1 -1
- package/dist/types/subsystem-model.d.ts +34 -3
- package/dist/types/subsystem-model.d.ts.map +1 -1
- package/dist/types/subsystem-model.js.map +1 -1
- package/package.json +7 -24
- package/schemas/subsystem-model.schema.json +52 -1
- package/src/index.ts +7 -580
- package/src/node.ts +21 -262
- package/src/types/index.ts +3 -456
- package/src/types/subsystem-model.ts +39 -3
- package/dist/ConfigurationLoader.d.ts +0 -76
- package/dist/ConfigurationLoader.d.ts.map +0 -1
- package/dist/ConfigurationLoader.js +0 -148
- package/dist/ConfigurationLoader.js.map +0 -1
- package/dist/ConfigurationValidator.d.ts +0 -31
- package/dist/ConfigurationValidator.d.ts.map +0 -1
- package/dist/ConfigurationValidator.js +0 -239
- package/dist/ConfigurationValidator.js.map +0 -1
- package/dist/EventProcessor.d.ts +0 -49
- package/dist/EventProcessor.d.ts.map +0 -1
- package/dist/EventProcessor.js +0 -220
- package/dist/EventProcessor.js.map +0 -1
- package/dist/EventRecorderService.d.ts +0 -305
- package/dist/EventRecorderService.d.ts.map +0 -1
- package/dist/EventRecorderService.js +0 -467
- package/dist/EventRecorderService.js.map +0 -1
- package/dist/LibraryLoader.d.ts +0 -65
- package/dist/LibraryLoader.d.ts.map +0 -1
- package/dist/LibraryLoader.js +0 -197
- package/dist/LibraryLoader.js.map +0 -1
- package/dist/PathBasedEventProcessor.d.ts +0 -77
- package/dist/PathBasedEventProcessor.d.ts.map +0 -1
- package/dist/PathBasedEventProcessor.js +0 -136
- package/dist/PathBasedEventProcessor.js.map +0 -1
- package/dist/SessionManager.d.ts +0 -194
- package/dist/SessionManager.d.ts.map +0 -1
- package/dist/SessionManager.js +0 -302
- package/dist/SessionManager.js.map +0 -1
- package/dist/ValidationEngine.d.ts +0 -31
- package/dist/ValidationEngine.d.ts.map +0 -1
- package/dist/ValidationEngine.js +0 -162
- package/dist/ValidationEngine.js.map +0 -1
- package/dist/auxiliary/AuxiliaryManifestValidator.d.ts +0 -41
- package/dist/auxiliary/AuxiliaryManifestValidator.d.ts.map +0 -1
- package/dist/auxiliary/AuxiliaryManifestValidator.js +0 -100
- package/dist/auxiliary/AuxiliaryManifestValidator.js.map +0 -1
- package/dist/auxiliary/index.d.ts +0 -9
- package/dist/auxiliary/index.d.ts.map +0 -1
- package/dist/auxiliary/index.js +0 -14
- package/dist/auxiliary/index.js.map +0 -1
- package/dist/auxiliary/validateAreaScopeDisjoint.d.ts +0 -24
- package/dist/auxiliary/validateAreaScopeDisjoint.d.ts.map +0 -1
- package/dist/auxiliary/validateAreaScopeDisjoint.js +0 -61
- package/dist/auxiliary/validateAreaScopeDisjoint.js.map +0 -1
- package/dist/cli/codegen.d.ts +0 -41
- package/dist/cli/codegen.d.ts.map +0 -1
- package/dist/cli/codegen.js +0 -257
- package/dist/cli/codegen.js.map +0 -1
- package/dist/codegen/type-generator.d.ts +0 -123
- package/dist/codegen/type-generator.d.ts.map +0 -1
- package/dist/codegen/type-generator.js +0 -433
- package/dist/codegen/type-generator.js.map +0 -1
- package/dist/codegen/usage-example.d.ts +0 -103
- package/dist/codegen/usage-example.d.ts.map +0 -1
- package/dist/codegen/usage-example.js +0 -258
- package/dist/codegen/usage-example.js.map +0 -1
- package/dist/dashboard/DashboardValidator.d.ts +0 -85
- package/dist/dashboard/DashboardValidator.d.ts.map +0 -1
- package/dist/dashboard/DashboardValidator.js +0 -775
- package/dist/dashboard/DashboardValidator.js.map +0 -1
- package/dist/dashboard/index.d.ts +0 -6
- package/dist/dashboard/index.d.ts.map +0 -1
- package/dist/dashboard/index.js +0 -10
- package/dist/dashboard/index.js.map +0 -1
- package/dist/discovery/CanvasDiscovery.d.ts +0 -160
- package/dist/discovery/CanvasDiscovery.d.ts.map +0 -1
- package/dist/discovery/CanvasDiscovery.js +0 -865
- package/dist/discovery/CanvasDiscovery.js.map +0 -1
- package/dist/discovery/CanvasFileManifest.d.ts +0 -86
- package/dist/discovery/CanvasFileManifest.d.ts.map +0 -1
- package/dist/discovery/CanvasFileManifest.js +0 -338
- package/dist/discovery/CanvasFileManifest.js.map +0 -1
- package/dist/discovery/LibraryDiscovery.d.ts +0 -108
- package/dist/discovery/LibraryDiscovery.d.ts.map +0 -1
- package/dist/discovery/LibraryDiscovery.js +0 -263
- package/dist/discovery/LibraryDiscovery.js.map +0 -1
- package/dist/discovery/types.d.ts +0 -403
- package/dist/discovery/types.d.ts.map +0 -1
- package/dist/discovery/types.js +0 -6
- package/dist/discovery/types.js.map +0 -1
- package/dist/events/EventsCanvasValidator.d.ts +0 -139
- package/dist/events/EventsCanvasValidator.d.ts.map +0 -1
- package/dist/events/EventsCanvasValidator.js +0 -281
- package/dist/events/EventsCanvasValidator.js.map +0 -1
- package/dist/events/NamespacePathIndex.d.ts +0 -61
- package/dist/events/NamespacePathIndex.d.ts.map +0 -1
- package/dist/events/NamespacePathIndex.js +0 -74
- package/dist/events/NamespacePathIndex.js.map +0 -1
- package/dist/events/OtelEventPathsValidator.d.ts +0 -75
- package/dist/events/OtelEventPathsValidator.d.ts.map +0 -1
- package/dist/events/OtelEventPathsValidator.js +0 -126
- package/dist/events/OtelEventPathsValidator.js.map +0 -1
- package/dist/events/ScopeEventsValidator.d.ts +0 -68
- package/dist/events/ScopeEventsValidator.d.ts.map +0 -1
- package/dist/events/ScopeEventsValidator.js +0 -91
- package/dist/events/ScopeEventsValidator.js.map +0 -1
- package/dist/events/index.d.ts +0 -9
- package/dist/events/index.d.ts.map +0 -1
- package/dist/events/index.js +0 -12
- package/dist/events/index.js.map +0 -1
- package/dist/events/path-helpers.d.ts +0 -33
- package/dist/events/path-helpers.d.ts.map +0 -1
- package/dist/events/path-helpers.js +0 -59
- package/dist/events/path-helpers.js.map +0 -1
- package/dist/execution/ExecutionLoader.d.ts +0 -135
- package/dist/execution/ExecutionLoader.d.ts.map +0 -1
- package/dist/execution/ExecutionLoader.js +0 -266
- package/dist/execution/ExecutionLoader.js.map +0 -1
- package/dist/execution/ExecutionValidator.d.ts +0 -94
- package/dist/execution/ExecutionValidator.d.ts.map +0 -1
- package/dist/execution/ExecutionValidator.js +0 -503
- package/dist/execution/ExecutionValidator.js.map +0 -1
- package/dist/generated/graph-converter-execution.types.d.ts +0 -177
- package/dist/generated/graph-converter-execution.types.d.ts.map +0 -1
- package/dist/generated/graph-converter-execution.types.js +0 -12
- package/dist/generated/graph-converter-execution.types.js.map +0 -1
- package/dist/helpers/GraphInstrumentationHelper.d.ts +0 -93
- package/dist/helpers/GraphInstrumentationHelper.d.ts.map +0 -1
- package/dist/helpers/GraphInstrumentationHelper.js +0 -252
- package/dist/helpers/GraphInstrumentationHelper.js.map +0 -1
- package/dist/matchers/SpanMatcher.d.ts +0 -107
- package/dist/matchers/SpanMatcher.d.ts.map +0 -1
- package/dist/matchers/SpanMatcher.js +0 -274
- package/dist/matchers/SpanMatcher.js.map +0 -1
- package/dist/orchestration/TraceOrchestrator.d.ts +0 -71
- package/dist/orchestration/TraceOrchestrator.d.ts.map +0 -1
- package/dist/orchestration/TraceOrchestrator.js +0 -416
- package/dist/orchestration/TraceOrchestrator.js.map +0 -1
- package/dist/parsers/OtlpTraceParser.d.ts +0 -131
- package/dist/parsers/OtlpTraceParser.d.ts.map +0 -1
- package/dist/parsers/OtlpTraceParser.js +0 -310
- package/dist/parsers/OtlpTraceParser.js.map +0 -1
- package/dist/registry/CompositeRegistry.d.ts +0 -71
- package/dist/registry/CompositeRegistry.d.ts.map +0 -1
- package/dist/registry/CompositeRegistry.js +0 -113
- package/dist/registry/CompositeRegistry.js.map +0 -1
- package/dist/registry/EventRegistry.d.ts +0 -79
- package/dist/registry/EventRegistry.d.ts.map +0 -1
- package/dist/registry/EventRegistry.js +0 -165
- package/dist/registry/EventRegistry.js.map +0 -1
- package/dist/registry/LocalRegistry.d.ts +0 -111
- package/dist/registry/LocalRegistry.d.ts.map +0 -1
- package/dist/registry/LocalRegistry.js +0 -335
- package/dist/registry/LocalRegistry.js.map +0 -1
- package/dist/registry/RemoteRegistry.d.ts +0 -122
- package/dist/registry/RemoteRegistry.d.ts.map +0 -1
- package/dist/registry/RemoteRegistry.js +0 -399
- package/dist/registry/RemoteRegistry.js.map +0 -1
- package/dist/registry/VersionRegistry.d.ts +0 -51
- package/dist/registry/VersionRegistry.d.ts.map +0 -1
- package/dist/registry/VersionRegistry.js +0 -105
- package/dist/registry/VersionRegistry.js.map +0 -1
- package/dist/rules/config.d.ts +0 -57
- package/dist/rules/config.d.ts.map +0 -1
- package/dist/rules/config.js +0 -382
- package/dist/rules/config.js.map +0 -1
- package/dist/rules/engine.d.ts +0 -70
- package/dist/rules/engine.d.ts.map +0 -1
- package/dist/rules/engine.js +0 -373
- package/dist/rules/engine.js.map +0 -1
- package/dist/rules/implementations/connection-type-references.d.ts +0 -7
- package/dist/rules/implementations/connection-type-references.d.ts.map +0 -1
- package/dist/rules/implementations/connection-type-references.js +0 -107
- package/dist/rules/implementations/connection-type-references.js.map +0 -1
- package/dist/rules/implementations/dead-end-states.d.ts +0 -17
- package/dist/rules/implementations/dead-end-states.d.ts.map +0 -1
- package/dist/rules/implementations/dead-end-states.js +0 -75
- package/dist/rules/implementations/dead-end-states.js.map +0 -1
- package/dist/rules/implementations/index.d.ts +0 -23
- package/dist/rules/implementations/index.d.ts.map +0 -1
- package/dist/rules/implementations/index.js +0 -73
- package/dist/rules/implementations/index.js.map +0 -1
- package/dist/rules/implementations/minimum-node-sources.d.ts +0 -24
- package/dist/rules/implementations/minimum-node-sources.d.ts.map +0 -1
- package/dist/rules/implementations/minimum-node-sources.js +0 -59
- package/dist/rules/implementations/minimum-node-sources.js.map +0 -1
- package/dist/rules/implementations/no-unknown-fields.d.ts +0 -7
- package/dist/rules/implementations/no-unknown-fields.d.ts.map +0 -1
- package/dist/rules/implementations/no-unknown-fields.js +0 -216
- package/dist/rules/implementations/no-unknown-fields.js.map +0 -1
- package/dist/rules/implementations/orphaned-edge-types.d.ts +0 -7
- package/dist/rules/implementations/orphaned-edge-types.d.ts.map +0 -1
- package/dist/rules/implementations/orphaned-edge-types.js +0 -50
- package/dist/rules/implementations/orphaned-edge-types.js.map +0 -1
- package/dist/rules/implementations/orphaned-node-types.d.ts +0 -7
- package/dist/rules/implementations/orphaned-node-types.d.ts.map +0 -1
- package/dist/rules/implementations/orphaned-node-types.js +0 -53
- package/dist/rules/implementations/orphaned-node-types.js.map +0 -1
- package/dist/rules/implementations/required-metadata.d.ts +0 -7
- package/dist/rules/implementations/required-metadata.d.ts.map +0 -1
- package/dist/rules/implementations/required-metadata.js +0 -48
- package/dist/rules/implementations/required-metadata.js.map +0 -1
- package/dist/rules/implementations/state-transition-references.d.ts +0 -7
- package/dist/rules/implementations/state-transition-references.d.ts.map +0 -1
- package/dist/rules/implementations/state-transition-references.js +0 -138
- package/dist/rules/implementations/state-transition-references.js.map +0 -1
- package/dist/rules/implementations/unreachable-states.d.ts +0 -7
- package/dist/rules/implementations/unreachable-states.d.ts.map +0 -1
- package/dist/rules/implementations/unreachable-states.js +0 -83
- package/dist/rules/implementations/unreachable-states.js.map +0 -1
- package/dist/rules/implementations/valid-action-patterns.d.ts +0 -17
- package/dist/rules/implementations/valid-action-patterns.d.ts.map +0 -1
- package/dist/rules/implementations/valid-action-patterns.js +0 -112
- package/dist/rules/implementations/valid-action-patterns.js.map +0 -1
- package/dist/rules/implementations/valid-color-format.d.ts +0 -7
- package/dist/rules/implementations/valid-color-format.d.ts.map +0 -1
- package/dist/rules/implementations/valid-color-format.js +0 -94
- package/dist/rules/implementations/valid-color-format.js.map +0 -1
- package/dist/rules/implementations/valid-edge-types.d.ts +0 -7
- package/dist/rules/implementations/valid-edge-types.d.ts.map +0 -1
- package/dist/rules/implementations/valid-edge-types.js +0 -248
- package/dist/rules/implementations/valid-edge-types.js.map +0 -1
- package/dist/rules/implementations/valid-node-types.d.ts +0 -7
- package/dist/rules/implementations/valid-node-types.d.ts.map +0 -1
- package/dist/rules/implementations/valid-node-types.js +0 -187
- package/dist/rules/implementations/valid-node-types.js.map +0 -1
- package/dist/rules/index.d.ts +0 -28
- package/dist/rules/index.d.ts.map +0 -1
- package/dist/rules/index.js +0 -70
- package/dist/rules/index.js.map +0 -1
- package/dist/rules/types.d.ts +0 -309
- package/dist/rules/types.d.ts.map +0 -1
- package/dist/rules/types.js +0 -40
- package/dist/rules/types.js.map +0 -1
- package/dist/scopes/ScopePathIndex.d.ts +0 -56
- package/dist/scopes/ScopePathIndex.d.ts.map +0 -1
- package/dist/scopes/ScopePathIndex.js +0 -67
- package/dist/scopes/ScopePathIndex.js.map +0 -1
- package/dist/scopes/ScopesCanvasValidator.d.ts +0 -76
- package/dist/scopes/ScopesCanvasValidator.d.ts.map +0 -1
- package/dist/scopes/ScopesCanvasValidator.js +0 -221
- package/dist/scopes/ScopesCanvasValidator.js.map +0 -1
- package/dist/scopes/index.d.ts +0 -12
- package/dist/scopes/index.d.ts.map +0 -1
- package/dist/scopes/index.js +0 -30
- package/dist/scopes/index.js.map +0 -1
- package/dist/scopes/utils.d.ts +0 -85
- package/dist/scopes/utils.d.ts.map +0 -1
- package/dist/scopes/utils.js +0 -143
- package/dist/scopes/utils.js.map +0 -1
- package/dist/scopes/validateScopeNamespaceNesting.d.ts +0 -38
- package/dist/scopes/validateScopeNamespaceNesting.d.ts.map +0 -1
- package/dist/scopes/validateScopeNamespaceNesting.js +0 -69
- package/dist/scopes/validateScopeNamespaceNesting.js.map +0 -1
- package/dist/spans/index.d.ts +0 -12
- package/dist/spans/index.d.ts.map +0 -1
- package/dist/spans/index.js +0 -25
- package/dist/spans/index.js.map +0 -1
- package/dist/spans/utils.d.ts +0 -70
- package/dist/spans/utils.d.ts.map +0 -1
- package/dist/spans/utils.js +0 -205
- package/dist/spans/utils.js.map +0 -1
- package/dist/storyboard/builder.d.ts +0 -135
- package/dist/storyboard/builder.d.ts.map +0 -1
- package/dist/storyboard/builder.js +0 -235
- package/dist/storyboard/builder.js.map +0 -1
- package/dist/storyboard/index.d.ts +0 -9
- package/dist/storyboard/index.d.ts.map +0 -1
- package/dist/storyboard/index.js +0 -18
- package/dist/storyboard/index.js.map +0 -1
- package/dist/storyboard/types.d.ts +0 -101
- package/dist/storyboard/types.d.ts.map +0 -1
- package/dist/storyboard/types.js +0 -10
- package/dist/storyboard/types.js.map +0 -1
- package/dist/telemetry/coverage.d.ts +0 -92
- package/dist/telemetry/coverage.d.ts.map +0 -1
- package/dist/telemetry/coverage.js +0 -335
- package/dist/telemetry/coverage.js.map +0 -1
- package/dist/telemetry/event-validator.d.ts +0 -86
- package/dist/telemetry/event-validator.d.ts.map +0 -1
- package/dist/telemetry/event-validator.js +0 -257
- package/dist/telemetry/event-validator.js.map +0 -1
- package/dist/types/audit.d.ts +0 -236
- package/dist/types/audit.d.ts.map +0 -1
- package/dist/types/audit.js +0 -53
- package/dist/types/audit.js.map +0 -1
- package/dist/types/auxiliary.d.ts +0 -54
- package/dist/types/auxiliary.d.ts.map +0 -1
- package/dist/types/auxiliary.js +0 -27
- package/dist/types/auxiliary.js.map +0 -1
- package/dist/types/canvas-scope.d.ts +0 -156
- package/dist/types/canvas-scope.d.ts.map +0 -1
- package/dist/types/canvas-scope.js +0 -62
- package/dist/types/canvas-scope.js.map +0 -1
- package/dist/types/canvas.d.ts +0 -1138
- package/dist/types/canvas.d.ts.map +0 -1
- package/dist/types/canvas.js +0 -178
- package/dist/types/canvas.js.map +0 -1
- package/dist/types/dashboard.d.ts +0 -170
- package/dist/types/dashboard.d.ts.map +0 -1
- package/dist/types/dashboard.js +0 -14
- package/dist/types/dashboard.js.map +0 -1
- package/dist/types/library.d.ts +0 -227
- package/dist/types/library.d.ts.map +0 -1
- package/dist/types/library.js +0 -16
- package/dist/types/library.js.map +0 -1
- package/dist/types/otel.d.ts +0 -465
- package/dist/types/otel.d.ts.map +0 -1
- package/dist/types/otel.js +0 -163
- package/dist/types/otel.js.map +0 -1
- package/dist/types/path-based-config.d.ts +0 -235
- package/dist/types/path-based-config.d.ts.map +0 -1
- package/dist/types/path-based-config.js +0 -11
- package/dist/types/path-based-config.js.map +0 -1
- package/dist/types/registered-trace.d.ts +0 -337
- package/dist/types/registered-trace.d.ts.map +0 -1
- package/dist/types/registered-trace.js +0 -16
- package/dist/types/registered-trace.js.map +0 -1
- package/dist/types/resource-match.d.ts +0 -207
- package/dist/types/resource-match.d.ts.map +0 -1
- package/dist/types/resource-match.js +0 -74
- package/dist/types/resource-match.js.map +0 -1
- package/dist/types/version-registry.d.ts +0 -137
- package/dist/types/version-registry.d.ts.map +0 -1
- package/dist/types/version-registry.js +0 -10
- package/dist/types/version-registry.js.map +0 -1
- package/dist/utils/CanvasConverter.d.ts +0 -148
- package/dist/utils/CanvasConverter.d.ts.map +0 -1
- package/dist/utils/CanvasConverter.js +0 -530
- package/dist/utils/CanvasConverter.js.map +0 -1
- package/dist/utils/GraphConverter.d.ts +0 -18
- package/dist/utils/GraphConverter.d.ts.map +0 -1
- package/dist/utils/GraphConverter.js +0 -80
- package/dist/utils/GraphConverter.js.map +0 -1
- package/dist/utils/PathMatcher.d.ts +0 -55
- package/dist/utils/PathMatcher.d.ts.map +0 -1
- package/dist/utils/PathMatcher.js +0 -178
- package/dist/utils/PathMatcher.js.map +0 -1
- package/dist/utils/TraceToCanvas.d.ts +0 -83
- package/dist/utils/TraceToCanvas.d.ts.map +0 -1
- package/dist/utils/TraceToCanvas.js +0 -336
- package/dist/utils/TraceToCanvas.js.map +0 -1
- package/dist/utils/YamlParser.d.ts +0 -36
- package/dist/utils/YamlParser.d.ts.map +0 -1
- package/dist/utils/YamlParser.js +0 -92
- package/dist/utils/YamlParser.js.map +0 -1
- package/dist/utils/registeredTraceHelpers.d.ts +0 -76
- package/dist/utils/registeredTraceHelpers.d.ts.map +0 -1
- package/dist/utils/registeredTraceHelpers.js +0 -203
- package/dist/utils/registeredTraceHelpers.js.map +0 -1
- package/dist/utils/traceAggregation.d.ts +0 -25
- package/dist/utils/traceAggregation.d.ts.map +0 -1
- package/dist/utils/traceAggregation.js +0 -140
- package/dist/utils/traceAggregation.js.map +0 -1
- package/dist/validation/OtelCanvasValidator.d.ts +0 -40
- package/dist/validation/OtelCanvasValidator.d.ts.map +0 -1
- package/dist/validation/OtelCanvasValidator.js +0 -59
- package/dist/validation/OtelCanvasValidator.js.map +0 -1
- package/dist/validation/index.d.ts +0 -8
- package/dist/validation/index.d.ts.map +0 -1
- package/dist/validation/index.js +0 -13
- package/dist/validation/index.js.map +0 -1
- package/dist/validation/libraryValidation.d.ts +0 -53
- package/dist/validation/libraryValidation.d.ts.map +0 -1
- package/dist/validation/libraryValidation.js +0 -115
- package/dist/validation/libraryValidation.js.map +0 -1
- package/dist/workflow/edge-derivation.d.ts +0 -111
- package/dist/workflow/edge-derivation.d.ts.map +0 -1
- package/dist/workflow/edge-derivation.js +0 -174
- package/dist/workflow/edge-derivation.js.map +0 -1
- package/dist/workflow/edge-validation.d.ts +0 -170
- package/dist/workflow/edge-validation.d.ts.map +0 -1
- package/dist/workflow/edge-validation.js +0 -332
- package/dist/workflow/edge-validation.js.map +0 -1
- package/dist/workflow/example.d.ts +0 -11
- package/dist/workflow/example.d.ts.map +0 -1
- package/dist/workflow/example.js +0 -310
- package/dist/workflow/example.js.map +0 -1
- package/dist/workflow/index.d.ts +0 -20
- package/dist/workflow/index.d.ts.map +0 -1
- package/dist/workflow/index.js +0 -49
- package/dist/workflow/index.js.map +0 -1
- package/dist/workflow/scenario-matcher.d.ts +0 -63
- package/dist/workflow/scenario-matcher.d.ts.map +0 -1
- package/dist/workflow/scenario-matcher.js +0 -215
- package/dist/workflow/scenario-matcher.js.map +0 -1
- package/dist/workflow/template-parser.d.ts +0 -73
- package/dist/workflow/template-parser.d.ts.map +0 -1
- package/dist/workflow/template-parser.js +0 -280
- package/dist/workflow/template-parser.js.map +0 -1
- package/dist/workflow/template-renderer.d.ts +0 -45
- package/dist/workflow/template-renderer.d.ts.map +0 -1
- package/dist/workflow/template-renderer.js +0 -401
- package/dist/workflow/template-renderer.js.map +0 -1
- package/dist/workflow/types.d.ts +0 -393
- package/dist/workflow/types.d.ts.map +0 -1
- package/dist/workflow/types.js +0 -40
- package/dist/workflow/types.js.map +0 -1
- package/dist/workflow/validator.d.ts +0 -363
- package/dist/workflow/validator.d.ts.map +0 -1
- package/dist/workflow/validator.js +0 -2283
- package/dist/workflow/validator.js.map +0 -1
- package/schemas/auxiliary.manifest.schema.json +0 -56
- package/src/ConfigurationLoader.test.ts +0 -466
- package/src/ConfigurationLoader.ts +0 -184
- package/src/ConfigurationValidator.test.ts +0 -200
- package/src/ConfigurationValidator.ts +0 -273
- package/src/EventProcessor.test.ts +0 -405
- package/src/EventProcessor.ts +0 -256
- package/src/EventRecorderService.test.ts +0 -543
- package/src/EventRecorderService.ts +0 -741
- package/src/LibraryLoader.ts +0 -194
- package/src/PathBasedEventProcessor.test.ts +0 -336
- package/src/PathBasedEventProcessor.ts +0 -196
- package/src/SessionManager.test.ts +0 -424
- package/src/SessionManager.ts +0 -471
- package/src/ValidationEngine.test.ts +0 -520
- package/src/ValidationEngine.ts +0 -200
- package/src/auxiliary/AuxiliaryManifestValidator.test.ts +0 -93
- package/src/auxiliary/AuxiliaryManifestValidator.ts +0 -132
- package/src/auxiliary/index.ts +0 -18
- package/src/auxiliary/validateAreaScopeDisjoint.test.ts +0 -85
- package/src/auxiliary/validateAreaScopeDisjoint.ts +0 -72
- package/src/cli/codegen.ts +0 -286
- package/src/codegen/type-generator.test.ts +0 -219
- package/src/codegen/type-generator.ts +0 -560
- package/src/codegen/usage-example.ts +0 -357
- package/src/dashboard/DashboardValidator.ts +0 -904
- package/src/dashboard/index.ts +0 -14
- package/src/discovery/CanvasDiscovery.test.ts +0 -691
- package/src/discovery/CanvasDiscovery.ts +0 -1114
- package/src/discovery/CanvasFileManifest.test.ts +0 -521
- package/src/discovery/CanvasFileManifest.ts +0 -419
- package/src/discovery/LibraryDiscovery.test.ts +0 -329
- package/src/discovery/LibraryDiscovery.ts +0 -386
- package/src/discovery/types.ts +0 -453
- package/src/events/EventsCanvasValidator.test.ts +0 -191
- package/src/events/EventsCanvasValidator.ts +0 -428
- package/src/events/NamespacePathIndex.test.ts +0 -97
- package/src/events/NamespacePathIndex.ts +0 -100
- package/src/events/OtelEventPathsValidator.test.ts +0 -243
- package/src/events/OtelEventPathsValidator.ts +0 -191
- package/src/events/ScopeEventsValidator.test.ts +0 -173
- package/src/events/ScopeEventsValidator.ts +0 -158
- package/src/events/index.ts +0 -27
- package/src/events/path-helpers.ts +0 -53
- package/src/execution/ExecutionLoader.test.ts +0 -378
- package/src/execution/ExecutionLoader.ts +0 -331
- package/src/execution/ExecutionValidator.test.ts +0 -503
- package/src/execution/ExecutionValidator.ts +0 -617
- package/src/generated/graph-converter-execution.types.ts +0 -193
- package/src/helpers/GraphInstrumentationHelper.test.ts +0 -364
- package/src/helpers/GraphInstrumentationHelper.ts +0 -323
- package/src/matchers/SpanMatcher.test.ts +0 -1105
- package/src/matchers/SpanMatcher.ts +0 -381
- package/src/orchestration/TraceOrchestrator.ts +0 -560
- package/src/orchestration/__tests__/TraceOrchestrator.test.ts +0 -1098
- package/src/parsers/OtlpTraceParser.ts +0 -401
- package/src/parsers/__tests__/OtlpTraceParser.test.ts +0 -197
- package/src/registry/CompositeRegistry.ts +0 -140
- package/src/registry/EventRegistry.test.ts +0 -387
- package/src/registry/EventRegistry.ts +0 -191
- package/src/registry/LocalRegistry.ts +0 -416
- package/src/registry/RemoteRegistry.ts +0 -499
- package/src/registry/VersionRegistry.test.ts +0 -223
- package/src/registry/VersionRegistry.ts +0 -121
- package/src/rules/config.test.ts +0 -277
- package/src/rules/config.ts +0 -450
- package/src/rules/engine.test.ts +0 -331
- package/src/rules/engine.ts +0 -448
- package/src/rules/implementations/connection-type-references.ts +0 -117
- package/src/rules/implementations/dead-end-states.ts +0 -101
- package/src/rules/implementations/index.ts +0 -66
- package/src/rules/implementations/minimum-node-sources.ts +0 -84
- package/src/rules/implementations/no-unknown-fields.ts +0 -372
- package/src/rules/implementations/orphaned-edge-types.ts +0 -55
- package/src/rules/implementations/orphaned-node-types.ts +0 -58
- package/src/rules/implementations/required-metadata.ts +0 -52
- package/src/rules/implementations/state-transition-references.ts +0 -155
- package/src/rules/implementations/unreachable-states.ts +0 -94
- package/src/rules/implementations/valid-action-patterns.ts +0 -140
- package/src/rules/implementations/valid-color-format.ts +0 -152
- package/src/rules/implementations/valid-edge-types.ts +0 -273
- package/src/rules/implementations/valid-node-types.ts +0 -200
- package/src/rules/index.ts +0 -92
- package/src/rules/types.ts +0 -426
- package/src/scopes/ScopePathIndex.test.ts +0 -94
- package/src/scopes/ScopePathIndex.ts +0 -89
- package/src/scopes/ScopesCanvasValidator.test.ts +0 -127
- package/src/scopes/ScopesCanvasValidator.ts +0 -305
- package/src/scopes/__tests__/utils.test.ts +0 -383
- package/src/scopes/index.ts +0 -42
- package/src/scopes/utils.ts +0 -182
- package/src/scopes/validateScopeNamespaceNesting.test.ts +0 -127
- package/src/scopes/validateScopeNamespaceNesting.ts +0 -88
- package/src/spans/index.ts +0 -24
- package/src/spans/utils.ts +0 -249
- package/src/storyboard/builder.ts +0 -308
- package/src/storyboard/index.ts +0 -26
- package/src/storyboard/types.ts +0 -117
- package/src/telemetry/coverage.ts +0 -480
- package/src/telemetry/event-validator.ts +0 -312
- package/src/types/audit.ts +0 -314
- package/src/types/auxiliary.ts +0 -63
- package/src/types/canvas-scope.ts +0 -190
- package/src/types/canvas.test.ts +0 -199
- package/src/types/canvas.ts +0 -1395
- package/src/types/dashboard.ts +0 -257
- package/src/types/library.ts +0 -283
- package/src/types/otel.test.ts +0 -219
- package/src/types/otel.ts +0 -620
- package/src/types/path-based-config.ts +0 -285
- package/src/types/registered-trace.ts +0 -432
- package/src/types/resource-match.ts +0 -263
- package/src/types/version-registry.ts +0 -150
- package/src/utils/CanvasConverter.ts +0 -670
- package/src/utils/GraphConverter.test.ts +0 -322
- package/src/utils/GraphConverter.ts +0 -84
- package/src/utils/PathMatcher.test.ts +0 -139
- package/src/utils/PathMatcher.ts +0 -185
- package/src/utils/TraceToCanvas.test.ts +0 -310
- package/src/utils/TraceToCanvas.ts +0 -510
- package/src/utils/YamlParser.ts +0 -77
- package/src/utils/registeredTraceHelpers.ts +0 -251
- package/src/utils/traceAggregation.test.ts +0 -385
- package/src/utils/traceAggregation.ts +0 -173
- package/src/validation/OtelCanvasValidator.ts +0 -86
- package/src/validation/index.ts +0 -17
- package/src/validation/libraryValidation.ts +0 -206
- package/src/workflow/README.md +0 -408
- package/src/workflow/__tests__/edge-derivation.test.ts +0 -449
- package/src/workflow/__tests__/edge-validation.test.ts +0 -417
- package/src/workflow/__tests__/scenario-matcher.test.ts +0 -225
- package/src/workflow/__tests__/template-parser.test.ts +0 -276
- package/src/workflow/__tests__/template-renderer.test.ts +0 -509
- package/src/workflow/__tests__/types.test.ts +0 -187
- package/src/workflow/__tests__/validator.test.ts +0 -3225
- package/src/workflow/edge-derivation.ts +0 -265
- package/src/workflow/edge-validation.ts +0 -503
- package/src/workflow/example.ts +0 -330
- package/src/workflow/index.ts +0 -86
- package/src/workflow/scenario-matcher.ts +0 -253
- package/src/workflow/template-parser.ts +0 -350
- package/src/workflow/template-renderer.ts +0 -453
- package/src/workflow/types.ts +0 -511
- package/src/workflow/validator.ts +0 -2737
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Rule: valid-edge-types
|
|
4
|
-
* Ensures edgeTypes have required fields and valid values
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.validEdgeTypes = void 0;
|
|
8
|
-
/**
|
|
9
|
-
* Valid style values for edges
|
|
10
|
-
*/
|
|
11
|
-
const VALID_STYLES = ['solid', 'dashed', 'dotted', 'animated'];
|
|
12
|
-
/**
|
|
13
|
-
* Valid animation types
|
|
14
|
-
*/
|
|
15
|
-
const VALID_ANIMATION_TYPES = ['flow', 'pulse', 'particle', 'glow'];
|
|
16
|
-
/**
|
|
17
|
-
* Valid label positions
|
|
18
|
-
*/
|
|
19
|
-
const VALID_LABEL_POSITIONS = ['start', 'middle', 'end'];
|
|
20
|
-
/**
|
|
21
|
-
* Valid data schema field types
|
|
22
|
-
*/
|
|
23
|
-
const VALID_DATA_TYPES = ['string', 'number', 'boolean', 'object', 'array'];
|
|
24
|
-
exports.validEdgeTypes = {
|
|
25
|
-
id: 'valid-edge-types',
|
|
26
|
-
name: 'Valid Edge Types',
|
|
27
|
-
description: 'edgeTypes must have required fields and valid values',
|
|
28
|
-
impact: 'Invalid edge types will cause rendering errors or unexpected behavior',
|
|
29
|
-
severity: 'error',
|
|
30
|
-
category: 'schema',
|
|
31
|
-
enabled: true,
|
|
32
|
-
fixable: false,
|
|
33
|
-
async check(context) {
|
|
34
|
-
const violations = [];
|
|
35
|
-
const { configuration, configPath } = context;
|
|
36
|
-
if (!configuration.edgeTypes) {
|
|
37
|
-
violations.push({
|
|
38
|
-
ruleId: 'valid-edge-types',
|
|
39
|
-
severity: 'error',
|
|
40
|
-
file: configPath,
|
|
41
|
-
path: 'edgeTypes',
|
|
42
|
-
message: 'Configuration is missing edgeTypes section',
|
|
43
|
-
impact: 'No edges can be defined without edgeTypes',
|
|
44
|
-
suggestion: 'Add an edgeTypes section with at least one edge type definition',
|
|
45
|
-
fixable: false,
|
|
46
|
-
});
|
|
47
|
-
return violations;
|
|
48
|
-
}
|
|
49
|
-
if (Object.keys(configuration.edgeTypes).length === 0) {
|
|
50
|
-
violations.push({
|
|
51
|
-
ruleId: 'valid-edge-types',
|
|
52
|
-
severity: 'error',
|
|
53
|
-
file: configPath,
|
|
54
|
-
path: 'edgeTypes',
|
|
55
|
-
message: 'edgeTypes section is empty',
|
|
56
|
-
impact: 'No edges can be defined without at least one edge type',
|
|
57
|
-
suggestion: 'Add at least one edge type definition',
|
|
58
|
-
fixable: false,
|
|
59
|
-
});
|
|
60
|
-
return violations;
|
|
61
|
-
}
|
|
62
|
-
for (const [typeId, edgeType] of Object.entries(configuration.edgeTypes)) {
|
|
63
|
-
const basePath = `edgeTypes.${typeId}`;
|
|
64
|
-
// Check required style field
|
|
65
|
-
if (!edgeType.style) {
|
|
66
|
-
violations.push({
|
|
67
|
-
ruleId: 'valid-edge-types',
|
|
68
|
-
severity: 'error',
|
|
69
|
-
file: configPath,
|
|
70
|
-
path: `${basePath}.style`,
|
|
71
|
-
message: `Edge type "${typeId}" is missing required "style" field`,
|
|
72
|
-
impact: 'Edge cannot be rendered without a style',
|
|
73
|
-
suggestion: `Add a style field. Valid values: ${VALID_STYLES.join(', ')}`,
|
|
74
|
-
fixable: false,
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
else if (!VALID_STYLES.includes(edgeType.style)) {
|
|
78
|
-
violations.push({
|
|
79
|
-
ruleId: 'valid-edge-types',
|
|
80
|
-
severity: 'error',
|
|
81
|
-
file: configPath,
|
|
82
|
-
path: `${basePath}.style`,
|
|
83
|
-
message: `Edge type "${typeId}" has invalid style "${edgeType.style}"`,
|
|
84
|
-
impact: 'Edge may not render correctly',
|
|
85
|
-
suggestion: `Valid styles: ${VALID_STYLES.join(', ')}`,
|
|
86
|
-
fixable: false,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
// Check width is a number if provided
|
|
90
|
-
if (edgeType.width !== undefined && typeof edgeType.width !== 'number') {
|
|
91
|
-
violations.push({
|
|
92
|
-
ruleId: 'valid-edge-types',
|
|
93
|
-
severity: 'error',
|
|
94
|
-
file: configPath,
|
|
95
|
-
path: `${basePath}.width`,
|
|
96
|
-
message: `Edge type "${typeId}" width must be a number`,
|
|
97
|
-
impact: 'Edge width may not render correctly',
|
|
98
|
-
suggestion: 'Provide width as a number (e.g., 2)',
|
|
99
|
-
fixable: false,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
// Check directed is a boolean if provided
|
|
103
|
-
if (edgeType.directed !== undefined && typeof edgeType.directed !== 'boolean') {
|
|
104
|
-
violations.push({
|
|
105
|
-
ruleId: 'valid-edge-types',
|
|
106
|
-
severity: 'error',
|
|
107
|
-
file: configPath,
|
|
108
|
-
path: `${basePath}.directed`,
|
|
109
|
-
message: `Edge type "${typeId}" directed must be a boolean`,
|
|
110
|
-
impact: 'Edge direction may not work correctly',
|
|
111
|
-
suggestion: 'Provide directed as true or false',
|
|
112
|
-
fixable: false,
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
// Check animated is a boolean if provided
|
|
116
|
-
if (edgeType.animated !== undefined && typeof edgeType.animated !== 'boolean') {
|
|
117
|
-
violations.push({
|
|
118
|
-
ruleId: 'valid-edge-types',
|
|
119
|
-
severity: 'error',
|
|
120
|
-
file: configPath,
|
|
121
|
-
path: `${basePath}.animated`,
|
|
122
|
-
message: `Edge type "${typeId}" animated must be a boolean`,
|
|
123
|
-
impact: 'Edge animation may not work correctly',
|
|
124
|
-
suggestion: 'Provide animated as true or false',
|
|
125
|
-
fixable: false,
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
// Check label configuration
|
|
129
|
-
if (edgeType.label) {
|
|
130
|
-
if (typeof edgeType.label !== 'object' || edgeType.label === null) {
|
|
131
|
-
violations.push({
|
|
132
|
-
ruleId: 'valid-edge-types',
|
|
133
|
-
severity: 'error',
|
|
134
|
-
file: configPath,
|
|
135
|
-
path: `${basePath}.label`,
|
|
136
|
-
message: `Edge type "${typeId}" label must be an object`,
|
|
137
|
-
impact: 'Edge label configuration is invalid',
|
|
138
|
-
suggestion: 'Provide label as { field?: string, position?: "start" | "middle" | "end" }',
|
|
139
|
-
fixable: false,
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
if (edgeType.label.position !== undefined) {
|
|
144
|
-
if (!VALID_LABEL_POSITIONS.includes(edgeType.label.position)) {
|
|
145
|
-
violations.push({
|
|
146
|
-
ruleId: 'valid-edge-types',
|
|
147
|
-
severity: 'error',
|
|
148
|
-
file: configPath,
|
|
149
|
-
path: `${basePath}.label.position`,
|
|
150
|
-
message: `Edge type "${typeId}" has invalid label position "${edgeType.label.position}"`,
|
|
151
|
-
impact: 'Label may not appear in expected position',
|
|
152
|
-
suggestion: `Valid positions: ${VALID_LABEL_POSITIONS.join(', ')}`,
|
|
153
|
-
fixable: false,
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
// Check animation configuration
|
|
160
|
-
if (edgeType.animation) {
|
|
161
|
-
if (typeof edgeType.animation !== 'object' || edgeType.animation === null) {
|
|
162
|
-
violations.push({
|
|
163
|
-
ruleId: 'valid-edge-types',
|
|
164
|
-
severity: 'error',
|
|
165
|
-
file: configPath,
|
|
166
|
-
path: `${basePath}.animation`,
|
|
167
|
-
message: `Edge type "${typeId}" animation must be an object`,
|
|
168
|
-
impact: 'Edge animation configuration is invalid',
|
|
169
|
-
suggestion: 'Provide animation as { type: "flow" | "pulse" | "particle" | "glow", duration?: number }',
|
|
170
|
-
fixable: false,
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
// Check animation type
|
|
175
|
-
if (!edgeType.animation.type) {
|
|
176
|
-
violations.push({
|
|
177
|
-
ruleId: 'valid-edge-types',
|
|
178
|
-
severity: 'error',
|
|
179
|
-
file: configPath,
|
|
180
|
-
path: `${basePath}.animation.type`,
|
|
181
|
-
message: `Edge type "${typeId}" animation is missing required "type" field`,
|
|
182
|
-
impact: 'Animation cannot run without a type',
|
|
183
|
-
suggestion: `Add a type field. Valid values: ${VALID_ANIMATION_TYPES.join(', ')}`,
|
|
184
|
-
fixable: false,
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
else if (!VALID_ANIMATION_TYPES.includes(edgeType.animation.type)) {
|
|
188
|
-
violations.push({
|
|
189
|
-
ruleId: 'valid-edge-types',
|
|
190
|
-
severity: 'error',
|
|
191
|
-
file: configPath,
|
|
192
|
-
path: `${basePath}.animation.type`,
|
|
193
|
-
message: `Edge type "${typeId}" has invalid animation type "${edgeType.animation.type}"`,
|
|
194
|
-
impact: 'Animation may not work correctly',
|
|
195
|
-
suggestion: `Valid animation types: ${VALID_ANIMATION_TYPES.join(', ')}`,
|
|
196
|
-
fixable: false,
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
// Check animation duration
|
|
200
|
-
if (edgeType.animation.duration !== undefined &&
|
|
201
|
-
typeof edgeType.animation.duration !== 'number') {
|
|
202
|
-
violations.push({
|
|
203
|
-
ruleId: 'valid-edge-types',
|
|
204
|
-
severity: 'error',
|
|
205
|
-
file: configPath,
|
|
206
|
-
path: `${basePath}.animation.duration`,
|
|
207
|
-
message: `Edge type "${typeId}" animation duration must be a number`,
|
|
208
|
-
impact: 'Animation timing may not work correctly',
|
|
209
|
-
suggestion: 'Provide duration as a number in milliseconds',
|
|
210
|
-
fixable: false,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
// Check dataSchema field types
|
|
216
|
-
if (edgeType.dataSchema) {
|
|
217
|
-
for (const [fieldName, fieldDef] of Object.entries(edgeType.dataSchema)) {
|
|
218
|
-
if (!fieldDef.type) {
|
|
219
|
-
violations.push({
|
|
220
|
-
ruleId: 'valid-edge-types',
|
|
221
|
-
severity: 'error',
|
|
222
|
-
file: configPath,
|
|
223
|
-
path: `${basePath}.dataSchema.${fieldName}.type`,
|
|
224
|
-
message: `Data schema field "${fieldName}" in edge type "${typeId}" is missing "type"`,
|
|
225
|
-
impact: 'Data validation will not work for this field',
|
|
226
|
-
suggestion: `Add a type field. Valid values: ${VALID_DATA_TYPES.join(', ')}`,
|
|
227
|
-
fixable: false,
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
else if (!VALID_DATA_TYPES.includes(fieldDef.type)) {
|
|
231
|
-
violations.push({
|
|
232
|
-
ruleId: 'valid-edge-types',
|
|
233
|
-
severity: 'error',
|
|
234
|
-
file: configPath,
|
|
235
|
-
path: `${basePath}.dataSchema.${fieldName}.type`,
|
|
236
|
-
message: `Invalid data type "${fieldDef.type}" for field "${fieldName}" in edge type "${typeId}"`,
|
|
237
|
-
impact: 'Data validation may fail',
|
|
238
|
-
suggestion: `Valid types: ${VALID_DATA_TYPES.join(', ')}`,
|
|
239
|
-
fixable: false,
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
return violations;
|
|
246
|
-
},
|
|
247
|
-
};
|
|
248
|
-
//# sourceMappingURL=valid-edge-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"valid-edge-types.js","sourceRoot":"","sources":["../../../src/rules/implementations/valid-edge-types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;GAEG;AACH,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAU,CAAC;AAExE;;GAEG;AACH,MAAM,qBAAqB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,CAAU,CAAC;AAE7E;;GAEG;AACH,MAAM,qBAAqB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAU,CAAC;AAElE;;GAEG;AACH,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAExE,QAAA,cAAc,GAAc;IACvC,EAAE,EAAE,kBAAkB;IACtB,IAAI,EAAE,kBAAkB;IACxB,WAAW,E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,CAAC,QAAQ,CAAC,IAAI,EAAE;wBAClB,UAAU,CAAC,IAAI,CAAC;4BACd,MAAM,EAAE,kBAAkB;4BAC1B,QAAQ,EAAE,OAAO;4BACjB,IAAI,EAAE,UAAU;4BAChB,IAAI,EAAE,GAAG,QAAQ,eAAe,SAAS,OAAO;4BAChD,OAAO,EAAE,sBAAsB,SAAS,mBAAmB,MAAM,qBAAqB;4BACtF,MAAM,EAAE,8CAA8C;4BACtD,UAAU,EAAE,mCAAmC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;4BAC5E,OAAO,EAAE,KAAK;yBACf,CAAC,CAAC;qBACJ;yBAAM,IACL,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAyC,CAAC,EAC9E;wBACA,UAAU,CAAC,IAAI,CAAC;4BACd,MAAM,EAAE,kBAAkB;4BAC1B,QAAQ,EAAE,OAAO;4BACjB,IAAI,EAAE,UAAU;4BAChB,IAAI,EAAE,GAAG,QAAQ,eAAe,SAAS,OAAO;4BAChD,OAAO,EAAE,sBAAsB,QAAQ,CAAC,IAAI,gBAAgB,SAAS,mBAAmB,MAAM,GAAG;4BACjG,MAAM,EAAE,0BAA0B;4BAClC,UAAU,EAAE,gBAAgB,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;4BACzD,OAAO,EAAE,KAAK;yBACf,CAAC,CAAC;qBACJ;iBACF;aACF;SACF;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"valid-node-types.d.ts","sourceRoot":"","sources":["../../../src/rules/implementations/valid-node-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAwC,MAAM,UAAU,CAAC;AAYhF,eAAO,MAAM,cAAc,EAAE,SAsL5B,CAAC"}
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Rule: valid-node-types
|
|
4
|
-
* Ensures nodeTypes have required fields and valid values
|
|
5
|
-
*/
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.validNodeTypes = void 0;
|
|
8
|
-
/**
|
|
9
|
-
* Valid shape values for nodes
|
|
10
|
-
*/
|
|
11
|
-
const VALID_SHAPES = ['circle', 'rectangle', 'hexagon', 'diamond', 'custom'];
|
|
12
|
-
/**
|
|
13
|
-
* Valid data schema field types
|
|
14
|
-
*/
|
|
15
|
-
const VALID_DATA_TYPES = ['string', 'number', 'boolean', 'object', 'array'];
|
|
16
|
-
exports.validNodeTypes = {
|
|
17
|
-
id: 'valid-node-types',
|
|
18
|
-
name: 'Valid Node Types',
|
|
19
|
-
description: 'nodeTypes must have required fields and valid values',
|
|
20
|
-
impact: 'Invalid node types will cause rendering errors or unexpected behavior',
|
|
21
|
-
severity: 'error',
|
|
22
|
-
category: 'schema',
|
|
23
|
-
enabled: true,
|
|
24
|
-
fixable: false,
|
|
25
|
-
async check(context) {
|
|
26
|
-
const violations = [];
|
|
27
|
-
const { configuration, configPath } = context;
|
|
28
|
-
if (!configuration.nodeTypes) {
|
|
29
|
-
violations.push({
|
|
30
|
-
ruleId: 'valid-node-types',
|
|
31
|
-
severity: 'error',
|
|
32
|
-
file: configPath,
|
|
33
|
-
path: 'nodeTypes',
|
|
34
|
-
message: 'Configuration is missing nodeTypes section',
|
|
35
|
-
impact: 'No nodes can be defined without nodeTypes',
|
|
36
|
-
suggestion: 'Add a nodeTypes section with at least one node type definition',
|
|
37
|
-
fixable: false,
|
|
38
|
-
});
|
|
39
|
-
return violations;
|
|
40
|
-
}
|
|
41
|
-
if (Object.keys(configuration.nodeTypes).length === 0) {
|
|
42
|
-
violations.push({
|
|
43
|
-
ruleId: 'valid-node-types',
|
|
44
|
-
severity: 'error',
|
|
45
|
-
file: configPath,
|
|
46
|
-
path: 'nodeTypes',
|
|
47
|
-
message: 'nodeTypes section is empty',
|
|
48
|
-
impact: 'No nodes can be defined without at least one node type',
|
|
49
|
-
suggestion: 'Add at least one node type definition',
|
|
50
|
-
fixable: false,
|
|
51
|
-
});
|
|
52
|
-
return violations;
|
|
53
|
-
}
|
|
54
|
-
for (const [typeId, nodeType] of Object.entries(configuration.nodeTypes)) {
|
|
55
|
-
const basePath = `nodeTypes.${typeId}`;
|
|
56
|
-
// Check required description field
|
|
57
|
-
if (!nodeType.description) {
|
|
58
|
-
violations.push({
|
|
59
|
-
ruleId: 'valid-node-types',
|
|
60
|
-
severity: 'error',
|
|
61
|
-
file: configPath,
|
|
62
|
-
path: `${basePath}.description`,
|
|
63
|
-
message: `Node type "${typeId}" is missing required "description" field`,
|
|
64
|
-
impact: 'Node type must have a description explaining its purpose',
|
|
65
|
-
suggestion: 'Add a description field explaining what this node type represents',
|
|
66
|
-
fixable: false,
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
// Check required shape field
|
|
70
|
-
if (!nodeType.shape) {
|
|
71
|
-
violations.push({
|
|
72
|
-
ruleId: 'valid-node-types',
|
|
73
|
-
severity: 'error',
|
|
74
|
-
file: configPath,
|
|
75
|
-
path: `${basePath}.shape`,
|
|
76
|
-
message: `Node type "${typeId}" is missing required "shape" field`,
|
|
77
|
-
impact: 'Node cannot be rendered without a shape',
|
|
78
|
-
suggestion: `Add a shape field. Valid values: ${VALID_SHAPES.join(', ')}`,
|
|
79
|
-
fixable: false,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
else if (!VALID_SHAPES.includes(nodeType.shape)) {
|
|
83
|
-
violations.push({
|
|
84
|
-
ruleId: 'valid-node-types',
|
|
85
|
-
severity: 'error',
|
|
86
|
-
file: configPath,
|
|
87
|
-
path: `${basePath}.shape`,
|
|
88
|
-
message: `Node type "${typeId}" has invalid shape "${nodeType.shape}"`,
|
|
89
|
-
impact: 'Node may not render correctly',
|
|
90
|
-
suggestion: `Valid shapes: ${VALID_SHAPES.join(', ')}`,
|
|
91
|
-
fixable: false,
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
// Check dataSchema field types
|
|
95
|
-
if (nodeType.dataSchema) {
|
|
96
|
-
for (const [fieldName, fieldDef] of Object.entries(nodeType.dataSchema)) {
|
|
97
|
-
if (!fieldDef.type) {
|
|
98
|
-
violations.push({
|
|
99
|
-
ruleId: 'valid-node-types',
|
|
100
|
-
severity: 'error',
|
|
101
|
-
file: configPath,
|
|
102
|
-
path: `${basePath}.dataSchema.${fieldName}.type`,
|
|
103
|
-
message: `Data schema field "${fieldName}" in node type "${typeId}" is missing "type"`,
|
|
104
|
-
impact: 'Data validation will not work for this field',
|
|
105
|
-
suggestion: `Add a type field. Valid values: ${VALID_DATA_TYPES.join(', ')}`,
|
|
106
|
-
fixable: false,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
else if (!VALID_DATA_TYPES.includes(fieldDef.type)) {
|
|
110
|
-
violations.push({
|
|
111
|
-
ruleId: 'valid-node-types',
|
|
112
|
-
severity: 'error',
|
|
113
|
-
file: configPath,
|
|
114
|
-
path: `${basePath}.dataSchema.${fieldName}.type`,
|
|
115
|
-
message: `Invalid data type "${fieldDef.type}" for field "${fieldName}" in node type "${typeId}"`,
|
|
116
|
-
impact: 'Data validation may fail',
|
|
117
|
-
suggestion: `Valid types: ${VALID_DATA_TYPES.join(', ')}`,
|
|
118
|
-
fixable: false,
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
// Check states have valid structure
|
|
124
|
-
if (nodeType.states) {
|
|
125
|
-
for (const [stateName, stateDef] of Object.entries(nodeType.states)) {
|
|
126
|
-
// States should be objects (even if empty)
|
|
127
|
-
if (typeof stateDef !== 'object' || stateDef === null) {
|
|
128
|
-
violations.push({
|
|
129
|
-
ruleId: 'valid-node-types',
|
|
130
|
-
severity: 'error',
|
|
131
|
-
file: configPath,
|
|
132
|
-
path: `${basePath}.states.${stateName}`,
|
|
133
|
-
message: `State "${stateName}" in node type "${typeId}" must be an object`,
|
|
134
|
-
impact: 'State definition is invalid',
|
|
135
|
-
suggestion: 'State should be an object with optional color, icon, and label fields',
|
|
136
|
-
fixable: false,
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
// Check size has valid structure
|
|
142
|
-
if (nodeType.size) {
|
|
143
|
-
if (typeof nodeType.size.width !== 'number' || typeof nodeType.size.height !== 'number') {
|
|
144
|
-
violations.push({
|
|
145
|
-
ruleId: 'valid-node-types',
|
|
146
|
-
severity: 'error',
|
|
147
|
-
file: configPath,
|
|
148
|
-
path: `${basePath}.size`,
|
|
149
|
-
message: `Node type "${typeId}" size must have numeric width and height`,
|
|
150
|
-
impact: 'Node size may not render correctly',
|
|
151
|
-
suggestion: 'Provide size as { width: number, height: number }',
|
|
152
|
-
fixable: false,
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
// Check layout has valid structure
|
|
157
|
-
if (nodeType.layout) {
|
|
158
|
-
if (nodeType.layout.layer !== undefined && typeof nodeType.layout.layer !== 'number') {
|
|
159
|
-
violations.push({
|
|
160
|
-
ruleId: 'valid-node-types',
|
|
161
|
-
severity: 'error',
|
|
162
|
-
file: configPath,
|
|
163
|
-
path: `${basePath}.layout.layer`,
|
|
164
|
-
message: `Node type "${typeId}" layout.layer must be a number`,
|
|
165
|
-
impact: 'Layout layering may not work correctly',
|
|
166
|
-
suggestion: 'Provide layer as a number',
|
|
167
|
-
fixable: false,
|
|
168
|
-
});
|
|
169
|
-
}
|
|
170
|
-
if (nodeType.layout.cluster !== undefined && typeof nodeType.layout.cluster !== 'string') {
|
|
171
|
-
violations.push({
|
|
172
|
-
ruleId: 'valid-node-types',
|
|
173
|
-
severity: 'error',
|
|
174
|
-
file: configPath,
|
|
175
|
-
path: `${basePath}.layout.cluster`,
|
|
176
|
-
message: `Node type "${typeId}" layout.cluster must be a string`,
|
|
177
|
-
impact: 'Cluster grouping may not work correctly',
|
|
178
|
-
suggestion: 'Provide cluster as a string identifier',
|
|
179
|
-
fixable: false,
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
return violations;
|
|
185
|
-
},
|
|
186
|
-
};
|
|
187
|
-
//# sourceMappingURL=valid-node-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"valid-node-types.js","sourceRoot":"","sources":["../../../src/rules/implementations/valid-node-types.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH;;GAEG;AACH,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAU,CAAC;AAEtF;;GAEG;AACH,MAAM,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAExE,QAAA,cAAc,GAAc;IACvC,EAAE,EAAE,kBAAkB;IACtB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,sDAAsD;IACnE,MAAM,EAAE,uEAAuE;IAC/E,QAAQ,EAAE,OAAO;IACjB,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,IAAI;IACb,OAAO,EAAE,KAAK;IAEd,KAAK,CAAC,KAAK,CAAC,OAAyB;QACnC,MAAM,UAAU,GAAyB,EAAE,CAAC;QAC5C,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;QAE9C,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE;YAC5B,UAAU,CAAC,IAAI,CAAC;gBACd,MAAM,EAAE,kBAAkB;gBAC1B,QAAQ,EAAE,OAAO;gBACjB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,4CAA4C;gBACrD,MAAM,EAAE,2CAA2C;gBACnD,UAAU,EAAE,gEAAgE;gBAC5E,OAAO,EAAE,KAAK;aACf,CAAC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
|
|
3
|
-
*
|
|
4
|
-
* @example
|
|
5
|
-
* ```typescript
|
|
6
|
-
* import { createRulesEngine, builtinRules } from '@principal-ai/subsystems-core/rules';
|
|
7
|
-
*
|
|
8
|
-
* const engine = createRulesEngine(builtinRules);
|
|
9
|
-
* const result = await engine.lint(configuration);
|
|
10
|
-
*
|
|
11
|
-
* if (result.errorCount > 0) {
|
|
12
|
-
* console.error(`Found ${result.errorCount} errors`);
|
|
13
|
-
* for (const violation of result.violations) {
|
|
14
|
-
* console.error(` ${violation.path}: ${violation.message}`);
|
|
15
|
-
* }
|
|
16
|
-
* }
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export { GraphRulesEngine, createRulesEngine } from './engine';
|
|
20
|
-
export type { GraphRule, GraphRuleContext, GraphRuleViolation, GraphLintResult, LintOptions, RuleOptions, RuleSeverity, NormalizedSeverity, RuleCategory, RuleConfig, PrivuConfig, FixResult, } from './types';
|
|
21
|
-
export { normalizeSeverity, isRuleDisabled } from './types';
|
|
22
|
-
export { validatePrivuConfig, getDefaultConfig, mergeConfigs, formatConfigErrors, CONFIG_FILE_NAMES, DEFAULT_INCLUDE_PATTERNS, DEFAULT_EXCLUDE_PATTERNS, VALID_RULE_IDS, VALID_SEVERITIES, type ConfigValidationError, type ConfigValidationResult, type ValidRuleId, } from './config';
|
|
23
|
-
export { builtinRules, requiredMetadata, validNodeTypes, validEdgeTypes, validColorFormat, noUnknownFields, connectionTypeReferences, stateTransitionReferences, minimumNodeSources, orphanedNodeTypes, orphanedEdgeTypes, unreachableStates, deadEndStates, validActionPatterns, type MinimumNodeSourcesOptions, type DeadEndStatesOptions, type ValidActionPatternsOptions, } from './implementations';
|
|
24
|
-
/**
|
|
25
|
-
* Create a rules engine pre-configured with all built-in rules
|
|
26
|
-
*/
|
|
27
|
-
export declare function createDefaultRulesEngine(): import("./engine").GraphRulesEngine;
|
|
28
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAGH,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAG/D,YAAY,EACV,SAAS,EACT,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,YAAY,EACZ,UAAU,EACV,WAAW,EACX,SAAS,GACV,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG5D,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,kBAAkB,EAClB,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,EACxB,cAAc,EACd,gBAAgB,EAChB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,WAAW,GACjB,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,YAAY,EAEZ,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,eAAe,EAEf,wBAAwB,EACxB,yBAAyB,EAEzB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EAEb,mBAAmB,EAEnB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,GAChC,MAAM,mBAAmB,CAAC;AAM3B;;GAEG;AACH,wBAAgB,wBAAwB,wCAEvC"}
|
package/dist/rules/index.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Rules Engine - Configuration validation for Visual Validation Framework
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* import { createRulesEngine, builtinRules } from '@principal-ai/subsystems-core/rules';
|
|
8
|
-
*
|
|
9
|
-
* const engine = createRulesEngine(builtinRules);
|
|
10
|
-
* const result = await engine.lint(configuration);
|
|
11
|
-
*
|
|
12
|
-
* if (result.errorCount > 0) {
|
|
13
|
-
* console.error(`Found ${result.errorCount} errors`);
|
|
14
|
-
* for (const violation of result.violations) {
|
|
15
|
-
* console.error(` ${violation.path}: ${violation.message}`);
|
|
16
|
-
* }
|
|
17
|
-
* }
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.createDefaultRulesEngine = exports.validActionPatterns = exports.deadEndStates = exports.unreachableStates = exports.orphanedEdgeTypes = exports.orphanedNodeTypes = exports.minimumNodeSources = exports.stateTransitionReferences = exports.connectionTypeReferences = exports.noUnknownFields = exports.validColorFormat = exports.validEdgeTypes = exports.validNodeTypes = exports.requiredMetadata = exports.builtinRules = exports.VALID_SEVERITIES = exports.VALID_RULE_IDS = exports.DEFAULT_EXCLUDE_PATTERNS = exports.DEFAULT_INCLUDE_PATTERNS = exports.CONFIG_FILE_NAMES = exports.formatConfigErrors = exports.mergeConfigs = exports.getDefaultConfig = exports.validatePrivuConfig = exports.isRuleDisabled = exports.normalizeSeverity = exports.createRulesEngine = exports.GraphRulesEngine = void 0;
|
|
22
|
-
// Core engine
|
|
23
|
-
var engine_1 = require("./engine");
|
|
24
|
-
Object.defineProperty(exports, "GraphRulesEngine", { enumerable: true, get: function () { return engine_1.GraphRulesEngine; } });
|
|
25
|
-
Object.defineProperty(exports, "createRulesEngine", { enumerable: true, get: function () { return engine_1.createRulesEngine; } });
|
|
26
|
-
var types_1 = require("./types");
|
|
27
|
-
Object.defineProperty(exports, "normalizeSeverity", { enumerable: true, get: function () { return types_1.normalizeSeverity; } });
|
|
28
|
-
Object.defineProperty(exports, "isRuleDisabled", { enumerable: true, get: function () { return types_1.isRuleDisabled; } });
|
|
29
|
-
// Config validation
|
|
30
|
-
var config_1 = require("./config");
|
|
31
|
-
Object.defineProperty(exports, "validatePrivuConfig", { enumerable: true, get: function () { return config_1.validatePrivuConfig; } });
|
|
32
|
-
Object.defineProperty(exports, "getDefaultConfig", { enumerable: true, get: function () { return config_1.getDefaultConfig; } });
|
|
33
|
-
Object.defineProperty(exports, "mergeConfigs", { enumerable: true, get: function () { return config_1.mergeConfigs; } });
|
|
34
|
-
Object.defineProperty(exports, "formatConfigErrors", { enumerable: true, get: function () { return config_1.formatConfigErrors; } });
|
|
35
|
-
Object.defineProperty(exports, "CONFIG_FILE_NAMES", { enumerable: true, get: function () { return config_1.CONFIG_FILE_NAMES; } });
|
|
36
|
-
Object.defineProperty(exports, "DEFAULT_INCLUDE_PATTERNS", { enumerable: true, get: function () { return config_1.DEFAULT_INCLUDE_PATTERNS; } });
|
|
37
|
-
Object.defineProperty(exports, "DEFAULT_EXCLUDE_PATTERNS", { enumerable: true, get: function () { return config_1.DEFAULT_EXCLUDE_PATTERNS; } });
|
|
38
|
-
Object.defineProperty(exports, "VALID_RULE_IDS", { enumerable: true, get: function () { return config_1.VALID_RULE_IDS; } });
|
|
39
|
-
Object.defineProperty(exports, "VALID_SEVERITIES", { enumerable: true, get: function () { return config_1.VALID_SEVERITIES; } });
|
|
40
|
-
// Built-in rules
|
|
41
|
-
var implementations_1 = require("./implementations");
|
|
42
|
-
Object.defineProperty(exports, "builtinRules", { enumerable: true, get: function () { return implementations_1.builtinRules; } });
|
|
43
|
-
// Schema rules
|
|
44
|
-
Object.defineProperty(exports, "requiredMetadata", { enumerable: true, get: function () { return implementations_1.requiredMetadata; } });
|
|
45
|
-
Object.defineProperty(exports, "validNodeTypes", { enumerable: true, get: function () { return implementations_1.validNodeTypes; } });
|
|
46
|
-
Object.defineProperty(exports, "validEdgeTypes", { enumerable: true, get: function () { return implementations_1.validEdgeTypes; } });
|
|
47
|
-
Object.defineProperty(exports, "validColorFormat", { enumerable: true, get: function () { return implementations_1.validColorFormat; } });
|
|
48
|
-
Object.defineProperty(exports, "noUnknownFields", { enumerable: true, get: function () { return implementations_1.noUnknownFields; } });
|
|
49
|
-
// Reference rules
|
|
50
|
-
Object.defineProperty(exports, "connectionTypeReferences", { enumerable: true, get: function () { return implementations_1.connectionTypeReferences; } });
|
|
51
|
-
Object.defineProperty(exports, "stateTransitionReferences", { enumerable: true, get: function () { return implementations_1.stateTransitionReferences; } });
|
|
52
|
-
// Structure rules
|
|
53
|
-
Object.defineProperty(exports, "minimumNodeSources", { enumerable: true, get: function () { return implementations_1.minimumNodeSources; } });
|
|
54
|
-
Object.defineProperty(exports, "orphanedNodeTypes", { enumerable: true, get: function () { return implementations_1.orphanedNodeTypes; } });
|
|
55
|
-
Object.defineProperty(exports, "orphanedEdgeTypes", { enumerable: true, get: function () { return implementations_1.orphanedEdgeTypes; } });
|
|
56
|
-
Object.defineProperty(exports, "unreachableStates", { enumerable: true, get: function () { return implementations_1.unreachableStates; } });
|
|
57
|
-
Object.defineProperty(exports, "deadEndStates", { enumerable: true, get: function () { return implementations_1.deadEndStates; } });
|
|
58
|
-
// Pattern rules
|
|
59
|
-
Object.defineProperty(exports, "validActionPatterns", { enumerable: true, get: function () { return implementations_1.validActionPatterns; } });
|
|
60
|
-
// Convenience factory that creates an engine with all built-in rules
|
|
61
|
-
const engine_2 = require("./engine");
|
|
62
|
-
const implementations_2 = require("./implementations");
|
|
63
|
-
/**
|
|
64
|
-
* Create a rules engine pre-configured with all built-in rules
|
|
65
|
-
*/
|
|
66
|
-
function createDefaultRulesEngine() {
|
|
67
|
-
return (0, engine_2.createRulesEngine)(implementations_2.builtinRules);
|
|
68
|
-
}
|
|
69
|
-
exports.createDefaultRulesEngine = createDefaultRulesEngine;
|
|
70
|
-
//# sourceMappingURL=index.js.map
|
package/dist/rules/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rules/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,cAAc;AACd,mCAA+D;AAAtD,0GAAA,gBAAgB,OAAA;AAAE,2GAAA,iBAAiB,OAAA;AAkB5C,iCAA4D;AAAnD,0GAAA,iBAAiB,OAAA;AAAE,uGAAA,cAAc,OAAA;AAE1C,oBAAoB;AACpB,mCAakB;AAZhB,6GAAA,mBAAmB,OAAA;AACnB,0GAAA,gBAAgB,OAAA;AAChB,sGAAA,YAAY,OAAA;AACZ,4GAAA,kBAAkB,OAAA;AAClB,2GAAA,iBAAiB,OAAA;AACjB,kHAAA,wBAAwB,OAAA;AACxB,kHAAA,wBAAwB,OAAA;AACxB,wGAAA,cAAc,OAAA;AACd,0GAAA,gBAAgB,OAAA;AAMlB,iBAAiB;AACjB,qDAuB2B;AAtBzB,+GAAA,YAAY,OAAA;AACZ,eAAe;AACf,mHAAA,gBAAgB,OAAA;AAChB,iHAAA,cAAc,OAAA;AACd,iHAAA,cAAc,OAAA;AACd,mHAAA,gBAAgB,OAAA;AAChB,kHAAA,eAAe,OAAA;AACf,kBAAkB;AAClB,2HAAA,wBAAwB,OAAA;AACxB,4HAAA,yBAAyB,OAAA;AACzB,kBAAkB;AAClB,qHAAA,kBAAkB,OAAA;AAClB,oHAAA,iBAAiB,OAAA;AACjB,oHAAA,iBAAiB,OAAA;AACjB,oHAAA,iBAAiB,OAAA;AACjB,gHAAA,aAAa,OAAA;AACb,gBAAgB;AAChB,sHAAA,mBAAmB,OAAA;AAOrB,qEAAqE;AACrE,qCAA6C;AAC7C,uDAAiD;AAEjD;;GAEG;AACH,SAAgB,wBAAwB;IACtC,OAAO,IAAA,0BAAiB,EAAC,8BAAY,CAAC,CAAC;AACzC,CAAC;AAFD,4DAEC"}
|