@mmmnt/cli 0.7.0 → 0.7.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/moment.mjs +15 -5
- package/dist/moment.mjs.map +2 -2
- package/package.json +9 -9
package/dist/moment.mjs
CHANGED
|
@@ -68392,7 +68392,12 @@ function buildPayloads(ir, includeAll) {
|
|
|
68392
68392
|
const flowSlug = kebab2(flow.name);
|
|
68393
68393
|
const topoKey = `topology-${flowSlug}.json`;
|
|
68394
68394
|
topologies[topoKey] = topoEmitter.emit(ir, flow);
|
|
68395
|
-
const flowScenarios = includeAll ? [
|
|
68395
|
+
const flowScenarios = includeAll ? [
|
|
68396
|
+
...generateAllScenarios(ir, flow),
|
|
68397
|
+
...deriveNegativeScenarios(ir, flow),
|
|
68398
|
+
// Saga-timeout scenarios, as `moment simulate --all` writes them.
|
|
68399
|
+
...deriveTimeoutScenarios(ir, flow)
|
|
68400
|
+
] : [generateSimulationScenario(ir, flow)];
|
|
68396
68401
|
for (const s of flowScenarios) {
|
|
68397
68402
|
scenarios[`${s.scenarioId}.json`] = s;
|
|
68398
68403
|
}
|
|
@@ -68410,7 +68415,8 @@ function buildPayloads(ir, includeAll) {
|
|
|
68410
68415
|
artifacts: {
|
|
68411
68416
|
eventCatalog: "event-catalog.json",
|
|
68412
68417
|
impactAnalysis: "impact-analysis.json",
|
|
68413
|
-
sagaStateMachines: "saga-state-machines.json"
|
|
68418
|
+
sagaStateMachines: "saga-state-machines.json",
|
|
68419
|
+
policyDefinitions: "policy-definitions.json"
|
|
68414
68420
|
}
|
|
68415
68421
|
},
|
|
68416
68422
|
topologies,
|
|
@@ -68418,7 +68424,9 @@ function buildPayloads(ir, includeAll) {
|
|
|
68418
68424
|
artifacts: {
|
|
68419
68425
|
eventCatalog: generateEventCatalog(ir),
|
|
68420
68426
|
impactAnalysis: generateImpactAnalysis(ir),
|
|
68421
|
-
sagaStateMachines: generateSagaStateMachines(ir)
|
|
68427
|
+
sagaStateMachines: generateSagaStateMachines(ir),
|
|
68428
|
+
// The generator `simulate --out-dir` writes policy-definitions.json with.
|
|
68429
|
+
policyDefinitions: generatePolicyDefinitions(ir)
|
|
68422
68430
|
}
|
|
68423
68431
|
};
|
|
68424
68432
|
}
|
|
@@ -68500,7 +68508,8 @@ function normalizeArtifactFilenames(raw) {
|
|
|
68500
68508
|
return {
|
|
68501
68509
|
eventCatalog: raw.eventCatalog ?? "event-catalog.json",
|
|
68502
68510
|
impactAnalysis: raw.impactAnalysis ?? "impact-analysis.json",
|
|
68503
|
-
sagaStateMachines: raw.sagaStateMachines ?? "saga-state-machines.json"
|
|
68511
|
+
sagaStateMachines: raw.sagaStateMachines ?? "saga-state-machines.json",
|
|
68512
|
+
policyDefinitions: raw.policyDefinitions ?? "policy-definitions.json"
|
|
68504
68513
|
};
|
|
68505
68514
|
}
|
|
68506
68515
|
function loadFlowAssets(dir, flow, includeAll, topologies, scenarios) {
|
|
@@ -68549,7 +68558,8 @@ function runFacetDirPipeline(dir, includeAll) {
|
|
|
68549
68558
|
artifacts: {
|
|
68550
68559
|
eventCatalog: loadArtifact(dir, artifactNames.eventCatalog),
|
|
68551
68560
|
impactAnalysis: loadArtifact(dir, artifactNames.impactAnalysis),
|
|
68552
|
-
sagaStateMachines: loadArtifact(dir, artifactNames.sagaStateMachines)
|
|
68561
|
+
sagaStateMachines: loadArtifact(dir, artifactNames.sagaStateMachines),
|
|
68562
|
+
policyDefinitions: loadArtifact(dir, artifactNames.policyDefinitions)
|
|
68553
68563
|
}
|
|
68554
68564
|
};
|
|
68555
68565
|
}
|