@unlaxer/tramli-plugins 3.6.0 → 3.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/plugin-registry.d.ts +2 -0
- package/dist/cjs/api/plugin-registry.js +8 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/observability/noop-telemetry-sink.d.ts +6 -0
- package/dist/cjs/observability/noop-telemetry-sink.js +9 -0
- package/dist/esm/api/plugin-registry.d.ts +2 -0
- package/dist/esm/api/plugin-registry.js +8 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/observability/noop-telemetry-sink.d.ts +6 -0
- package/dist/esm/observability/noop-telemetry-sink.js +5 -0
- package/package.json +1 -1
|
@@ -12,6 +12,8 @@ export declare class PluginRegistry<S extends string> {
|
|
|
12
12
|
analyzeAll(definition: FlowDefinition<S>): PluginReport;
|
|
13
13
|
/** Build a FlowDefinition and run all analysis plugins. Throws if any ERROR findings. */
|
|
14
14
|
buildAndAnalyze(builder: Builder<S>): FlowDefinition<S>;
|
|
15
|
+
/** Run all analysis plugins and throw if any ERROR findings. For already-built definitions. */
|
|
16
|
+
analyzeAndValidate(definition: FlowDefinition<S>): void;
|
|
15
17
|
/** Apply all store plugins (wrapping in registration order). */
|
|
16
18
|
applyStorePlugins(store: any): any;
|
|
17
19
|
/** Install all engine plugins. */
|
|
@@ -32,6 +32,14 @@ class PluginRegistry {
|
|
|
32
32
|
}
|
|
33
33
|
return def;
|
|
34
34
|
}
|
|
35
|
+
/** Run all analysis plugins and throw if any ERROR findings. For already-built definitions. */
|
|
36
|
+
analyzeAndValidate(definition) {
|
|
37
|
+
const report = this.analyzeAll(definition);
|
|
38
|
+
const errors = report.findings().filter(f => f.severity === 'ERROR');
|
|
39
|
+
if (errors.length > 0) {
|
|
40
|
+
throw new Error(`Analysis errors:\n${errors.map(e => ` [${e.pluginId}] ${e.message}`).join('\n')}`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
35
43
|
/** Apply all store plugins (wrapping in registration order). */
|
|
36
44
|
applyStorePlugins(store) {
|
|
37
45
|
let wrapped = store;
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { ReplayService, ProjectionReplayService } from './eventstore/replay-serv
|
|
|
10
10
|
export { CompensationService } from './eventstore/compensation-service.js';
|
|
11
11
|
export type { VersionedTransitionEvent, CompensationPlan, CompensationResolver, ProjectionReducer, } from './eventstore/types.js';
|
|
12
12
|
export { ObservabilityEnginePlugin, InMemoryTelemetrySink } from './observability/observability-plugin.js';
|
|
13
|
+
export { NoopTelemetrySink } from './observability/noop-telemetry-sink.js';
|
|
13
14
|
export type { TelemetryEvent, TelemetrySink } from './observability/observability-plugin.js';
|
|
14
15
|
export { RichResumeExecutor, RichResumeRuntimePlugin } from './resume/rich-resume.js';
|
|
15
16
|
export type { RichResumeStatus, RichResumeResult } from './resume/rich-resume.js';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GuaranteedSubflowValidator = exports.ScenarioGenerationPlugin = exports.ScenarioTestPlugin = exports.allDefaultPolicies = exports.PolicyLintPlugin = exports.FlowDocumentationPlugin = exports.DocumentationPlugin = exports.DiagramGenerationPlugin = exports.DiagramPlugin = exports.flowSpec = exports.transitionSpec = exports.stateSpec = exports.HierarchyGenerationPlugin = exports.HierarchyCodeGenerator = exports.EntryExitCompiler = exports.IdempotencyRuntimePlugin = exports.IdempotentRichResumeExecutor = exports.InMemoryIdempotencyRegistry = exports.RichResumeRuntimePlugin = exports.RichResumeExecutor = exports.InMemoryTelemetrySink = exports.ObservabilityEnginePlugin = exports.CompensationService = exports.ProjectionReplayService = exports.ReplayService = exports.EventLogStoreDecorator = exports.EventLogStorePlugin = exports.AuditingFlowStore = exports.AuditStorePlugin = exports.PluginRegistry = exports.PluginReport = void 0;
|
|
3
|
+
exports.GuaranteedSubflowValidator = exports.ScenarioGenerationPlugin = exports.ScenarioTestPlugin = exports.allDefaultPolicies = exports.PolicyLintPlugin = exports.FlowDocumentationPlugin = exports.DocumentationPlugin = exports.DiagramGenerationPlugin = exports.DiagramPlugin = exports.flowSpec = exports.transitionSpec = exports.stateSpec = exports.HierarchyGenerationPlugin = exports.HierarchyCodeGenerator = exports.EntryExitCompiler = exports.IdempotencyRuntimePlugin = exports.IdempotentRichResumeExecutor = exports.InMemoryIdempotencyRegistry = exports.RichResumeRuntimePlugin = exports.RichResumeExecutor = exports.NoopTelemetrySink = exports.InMemoryTelemetrySink = exports.ObservabilityEnginePlugin = exports.CompensationService = exports.ProjectionReplayService = exports.ReplayService = exports.EventLogStoreDecorator = exports.EventLogStorePlugin = exports.AuditingFlowStore = exports.AuditStorePlugin = exports.PluginRegistry = exports.PluginReport = void 0;
|
|
4
4
|
// ── API framework ──
|
|
5
5
|
var types_js_1 = require("./api/types.js");
|
|
6
6
|
Object.defineProperty(exports, "PluginReport", { enumerable: true, get: function () { return types_js_1.PluginReport; } });
|
|
@@ -25,6 +25,8 @@ Object.defineProperty(exports, "CompensationService", { enumerable: true, get: f
|
|
|
25
25
|
var observability_plugin_js_1 = require("./observability/observability-plugin.js");
|
|
26
26
|
Object.defineProperty(exports, "ObservabilityEnginePlugin", { enumerable: true, get: function () { return observability_plugin_js_1.ObservabilityEnginePlugin; } });
|
|
27
27
|
Object.defineProperty(exports, "InMemoryTelemetrySink", { enumerable: true, get: function () { return observability_plugin_js_1.InMemoryTelemetrySink; } });
|
|
28
|
+
var noop_telemetry_sink_js_1 = require("./observability/noop-telemetry-sink.js");
|
|
29
|
+
Object.defineProperty(exports, "NoopTelemetrySink", { enumerable: true, get: function () { return noop_telemetry_sink_js_1.NoopTelemetrySink; } });
|
|
28
30
|
// ── Rich Resume ──
|
|
29
31
|
var rich_resume_js_1 = require("./resume/rich-resume.js");
|
|
30
32
|
Object.defineProperty(exports, "RichResumeExecutor", { enumerable: true, get: function () { return rich_resume_js_1.RichResumeExecutor; } });
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TelemetrySink, TelemetryEvent } from './observability-plugin.js';
|
|
2
|
+
/** No-op telemetry sink for benchmarking baseline. */
|
|
3
|
+
export declare class NoopTelemetrySink implements TelemetrySink {
|
|
4
|
+
emit(_event: TelemetryEvent): void;
|
|
5
|
+
events(): readonly TelemetryEvent[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoopTelemetrySink = void 0;
|
|
4
|
+
/** No-op telemetry sink for benchmarking baseline. */
|
|
5
|
+
class NoopTelemetrySink {
|
|
6
|
+
emit(_event) { }
|
|
7
|
+
events() { return []; }
|
|
8
|
+
}
|
|
9
|
+
exports.NoopTelemetrySink = NoopTelemetrySink;
|
|
@@ -12,6 +12,8 @@ export declare class PluginRegistry<S extends string> {
|
|
|
12
12
|
analyzeAll(definition: FlowDefinition<S>): PluginReport;
|
|
13
13
|
/** Build a FlowDefinition and run all analysis plugins. Throws if any ERROR findings. */
|
|
14
14
|
buildAndAnalyze(builder: Builder<S>): FlowDefinition<S>;
|
|
15
|
+
/** Run all analysis plugins and throw if any ERROR findings. For already-built definitions. */
|
|
16
|
+
analyzeAndValidate(definition: FlowDefinition<S>): void;
|
|
15
17
|
/** Apply all store plugins (wrapping in registration order). */
|
|
16
18
|
applyStorePlugins(store: any): any;
|
|
17
19
|
/** Install all engine plugins. */
|
|
@@ -29,6 +29,14 @@ export class PluginRegistry {
|
|
|
29
29
|
}
|
|
30
30
|
return def;
|
|
31
31
|
}
|
|
32
|
+
/** Run all analysis plugins and throw if any ERROR findings. For already-built definitions. */
|
|
33
|
+
analyzeAndValidate(definition) {
|
|
34
|
+
const report = this.analyzeAll(definition);
|
|
35
|
+
const errors = report.findings().filter(f => f.severity === 'ERROR');
|
|
36
|
+
if (errors.length > 0) {
|
|
37
|
+
throw new Error(`Analysis errors:\n${errors.map(e => ` [${e.pluginId}] ${e.message}`).join('\n')}`);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
32
40
|
/** Apply all store plugins (wrapping in registration order). */
|
|
33
41
|
applyStorePlugins(store) {
|
|
34
42
|
let wrapped = store;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export { ReplayService, ProjectionReplayService } from './eventstore/replay-serv
|
|
|
10
10
|
export { CompensationService } from './eventstore/compensation-service.js';
|
|
11
11
|
export type { VersionedTransitionEvent, CompensationPlan, CompensationResolver, ProjectionReducer, } from './eventstore/types.js';
|
|
12
12
|
export { ObservabilityEnginePlugin, InMemoryTelemetrySink } from './observability/observability-plugin.js';
|
|
13
|
+
export { NoopTelemetrySink } from './observability/noop-telemetry-sink.js';
|
|
13
14
|
export type { TelemetryEvent, TelemetrySink } from './observability/observability-plugin.js';
|
|
14
15
|
export { RichResumeExecutor, RichResumeRuntimePlugin } from './resume/rich-resume.js';
|
|
15
16
|
export type { RichResumeStatus, RichResumeResult } from './resume/rich-resume.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -11,6 +11,7 @@ export { ReplayService, ProjectionReplayService } from './eventstore/replay-serv
|
|
|
11
11
|
export { CompensationService } from './eventstore/compensation-service.js';
|
|
12
12
|
// ── Observability ──
|
|
13
13
|
export { ObservabilityEnginePlugin, InMemoryTelemetrySink } from './observability/observability-plugin.js';
|
|
14
|
+
export { NoopTelemetrySink } from './observability/noop-telemetry-sink.js';
|
|
14
15
|
// ── Rich Resume ──
|
|
15
16
|
export { RichResumeExecutor, RichResumeRuntimePlugin } from './resume/rich-resume.js';
|
|
16
17
|
// ── Idempotency ──
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TelemetrySink, TelemetryEvent } from './observability-plugin.js';
|
|
2
|
+
/** No-op telemetry sink for benchmarking baseline. */
|
|
3
|
+
export declare class NoopTelemetrySink implements TelemetrySink {
|
|
4
|
+
emit(_event: TelemetryEvent): void;
|
|
5
|
+
events(): readonly TelemetryEvent[];
|
|
6
|
+
}
|
package/package.json
CHANGED