@overkill-dev/run 0.0.61 → 0.0.63
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/assertion-protocol/assertion-node.d.ts +0 -15
- package/assertion-protocol/assertion-node.d.ts.map +1 -1
- package/assertion-protocol/assertion-reference.d.ts +0 -21
- package/assertion-protocol/assertion-reference.d.ts.map +1 -1
- package/assertion-protocol/assertion-reference.js +3 -30
- package/assertion-protocol/assertion-reference.js.map +1 -1
- package/assertion-protocol/assertions/boolean.d.ts +0 -7
- package/assertion-protocol/assertions/boolean.d.ts.map +1 -1
- package/assertion-protocol/assertions/collection.d.ts +0 -9
- package/assertion-protocol/assertions/collection.d.ts.map +1 -1
- package/assertion-protocol/assertions/equality.d.ts +0 -11
- package/assertion-protocol/assertions/equality.d.ts.map +1 -1
- package/assertion-protocol/assertions/fail.d.ts +0 -5
- package/assertion-protocol/assertions/fail.d.ts.map +1 -1
- package/assertion-protocol/assertions/numeric.d.ts +0 -13
- package/assertion-protocol/assertions/numeric.d.ts.map +1 -1
- package/assertion-protocol/assertions/partial.d.ts +0 -9
- package/assertion-protocol/assertions/partial.d.ts.map +1 -1
- package/assertion-protocol/assertions/presence.d.ts +0 -11
- package/assertion-protocol/assertions/presence.d.ts.map +1 -1
- package/assertion-protocol/assertions/string.d.ts +0 -13
- package/assertion-protocol/assertions/string.d.ts.map +1 -1
- package/assertion-protocol/assertions/type-shape.d.ts +0 -19
- package/assertion-protocol/assertions/type-shape.d.ts.map +1 -1
- package/assertion-protocol/source-location-forwarding.js +1 -7
- package/assertion-protocol/source-location-forwarding.js.map +1 -1
- package/assertion-protocol/thrown-error-record.d.ts +0 -1
- package/assertion-protocol/thrown-error-record.d.ts.map +1 -1
- package/assertion-protocol/thrown-matcher.d.ts +1 -18
- package/assertion-protocol/thrown-matcher.d.ts.map +1 -1
- package/compare/serialized-value-shape.d.ts +0 -9
- package/compare/serialized-value-shape.d.ts.map +1 -1
- package/compare/serialized-value.d.ts +1 -8
- package/compare/serialized-value.d.ts.map +1 -1
- package/engine/assertion-facade.d.ts +2 -5
- package/engine/assertion-facade.d.ts.map +1 -1
- package/engine/async-control.d.ts +0 -26
- package/engine/async-control.d.ts.map +1 -1
- package/engine/case-execution.d.ts +1 -14
- package/engine/case-execution.d.ts.map +1 -1
- package/engine/coverage-artifact.d.ts +2 -3
- package/engine/coverage-artifact.d.ts.map +1 -1
- package/engine/custom-assertion-recording.js +1 -1
- package/engine/custom-assertion-recording.js.map +1 -1
- package/engine/engine.d.ts +1 -8
- package/engine/engine.d.ts.map +1 -1
- package/engine/execution-global-error-observer.d.ts +0 -3
- package/engine/execution-global-error-observer.d.ts.map +1 -1
- package/engine/execution-global-error-observer.js +1 -31
- package/engine/execution-global-error-observer.js.map +1 -1
- package/engine/execution-options.d.ts +0 -6
- package/engine/execution-options.d.ts.map +1 -1
- package/engine/execution-resource-budget-breach.d.ts +0 -9
- package/engine/execution-resource-budget-breach.d.ts.map +1 -1
- package/engine/execution-supervision.d.ts +0 -16
- package/engine/execution-supervision.d.ts.map +1 -1
- package/engine/execution.d.ts +1 -12
- package/engine/execution.d.ts.map +1 -1
- package/engine/identity.d.ts +0 -6
- package/engine/identity.d.ts.map +1 -1
- package/engine/reporter-dispatcher.d.ts +1 -11
- package/engine/reporter-dispatcher.d.ts.map +1 -1
- package/engine/reporter-output.d.ts +0 -6
- package/engine/reporter-output.d.ts.map +1 -1
- package/engine/reporter.d.ts +0 -16
- package/engine/reporter.d.ts.map +1 -1
- package/engine/reporting-context.d.ts +1 -13
- package/engine/reporting-context.d.ts.map +1 -1
- package/engine/require-assertion-facade.d.ts +2 -5
- package/engine/require-assertion-facade.d.ts.map +1 -1
- package/engine/run-result.d.ts +1 -57
- package/engine/run-result.d.ts.map +1 -1
- package/engine/run-result.js.map +1 -1
- package/engine/run-timings.d.ts +0 -18
- package/engine/run-timings.d.ts.map +1 -1
- package/engine/test-body-resource-attachment.d.ts +0 -12
- package/engine/test-body-resource-attachment.d.ts.map +1 -1
- package/engine/test-body-resource-attachment.js +3 -134
- package/engine/test-body-resource-attachment.js.map +1 -1
- package/engine/test-data.d.ts +0 -6
- package/engine/test-data.d.ts.map +1 -1
- package/engine/test-node.d.ts +0 -21
- package/engine/test-node.d.ts.map +1 -1
- package/engine/test-node.js +1 -20
- package/engine/test-node.js.map +1 -1
- package/engine/test-plan.d.ts +1 -4
- package/engine/test-plan.d.ts.map +1 -1
- package/package.json +6 -2
- package/packages/run/config.entry-point.d.ts +3 -2
- package/packages/run/config.entry-point.d.ts.map +1 -1
- package/packages/run/config.entry-point.js +2 -1
- package/packages/run/config.entry-point.js.map +1 -1
- package/packages/run/run.entry-point.d.ts +2 -2
- package/packages/run/run.entry-point.d.ts.map +1 -1
- package/readme.md +5 -1
- package/reporters/human-reporter-rendering.js +2 -2
- package/reporters/human-reporter-rendering.js.map +1 -1
- package/reporters/line-reporter.js +4 -10
- package/reporters/line-reporter.js.map +1 -1
- package/reporters/run-summary-rendering.js +23 -0
- package/reporters/run-summary-rendering.js.map +1 -1
- package/reporters/tree-reporter.js +2 -103
- package/reporters/tree-reporter.js.map +1 -1
- package/resources/resource-definition-shape.d.ts +0 -2
- package/resources/resource-definition-shape.d.ts.map +1 -1
- package/resources/resource-definition-types.d.ts +1 -96
- package/resources/resource-definition-types.d.ts.map +1 -1
- package/resources/resource-definition.js.map +1 -1
- package/resources/resource-lifecycle-error.d.ts +0 -1
- package/resources/resource-lifecycle-error.d.ts.map +1 -1
- package/resources/resource-lifecycle-error.js +17 -1
- package/resources/resource-lifecycle-error.js.map +1 -1
- package/resources/resource-scenario-binding.js +1 -69
- package/resources/resource-scenario-binding.js.map +1 -1
- package/resources/resource-scenario.d.ts +0 -19
- package/resources/resource-scenario.d.ts.map +1 -1
- package/resources/resource-session.d.ts +1 -20
- package/resources/resource-session.d.ts.map +1 -1
- package/resources/resources.d.ts +5 -88
- package/resources/resources.d.ts.map +1 -1
- package/resources/resources.js +2 -75
- package/resources/resources.js.map +1 -1
- package/resources/runtime-definition.d.ts +0 -7
- package/resources/runtime-definition.d.ts.map +1 -1
- package/resources/runtime-definition.js +2 -57
- package/resources/runtime-definition.js.map +1 -1
- package/resources/runtime-matrix-definition.d.ts +0 -36
- package/resources/runtime-matrix-definition.d.ts.map +1 -1
- package/run/capability-policy-snapshots.d.ts +0 -19
- package/run/capability-policy-snapshots.d.ts.map +1 -1
- package/run/command-line-command-namespace.d.ts +0 -5
- package/run/command-line-command-namespace.d.ts.map +1 -1
- package/run/command-line-command.d.ts +2 -5
- package/run/command-line-command.d.ts.map +1 -1
- package/run/command-line-command.js +1 -2
- package/run/command-line-command.js.map +1 -1
- package/run/command-line-runner.d.ts +0 -2
- package/run/command-line-runner.d.ts.map +1 -1
- package/run/coverage-config-schema.d.ts +50 -0
- package/run/coverage-config-schema.d.ts.map +1 -0
- package/run/coverage-config-schema.js +36 -0
- package/run/coverage-config-schema.js.map +1 -0
- package/run/coverage-paths.js +5 -0
- package/run/coverage-paths.js.map +1 -0
- package/run/coverage-reporting.js +6 -139
- package/run/coverage-reporting.js.map +1 -1
- package/run/coverage-session.js +1 -2
- package/run/coverage-session.js.map +1 -1
- package/run/current-process-run-orchestrator.d.ts +1 -5
- package/run/current-process-run-orchestrator.d.ts.map +1 -1
- package/run/duration-history.d.ts +0 -30
- package/run/duration-history.d.ts.map +1 -1
- package/run/placement-trace.d.ts +0 -18
- package/run/placement-trace.d.ts.map +1 -1
- package/run/profile-config-normalization.js +136 -0
- package/run/profile-config-normalization.js.map +1 -0
- package/run/resource-lifecycle-composition.d.ts +0 -3
- package/run/resource-lifecycle-composition.d.ts.map +1 -1
- package/run/resource-lifecycle-composition.js +1 -14
- package/run/resource-lifecycle-composition.js.map +1 -1
- package/run/resource-lifecycle-state.d.ts +0 -3
- package/run/resource-lifecycle-state.d.ts.map +1 -1
- package/run/run-collection-source.d.ts +1 -5
- package/run/run-collection-source.d.ts.map +1 -1
- package/run/run-config-defaults.js +13 -0
- package/run/run-config-defaults.js.map +1 -1
- package/run/run-config-schema.d.ts +51 -4
- package/run/run-config-schema.d.ts.map +1 -1
- package/run/run-config-schema.js +2 -0
- package/run/run-config-schema.js.map +1 -1
- package/run/run-config.d.ts +6 -5
- package/run/run-config.d.ts.map +1 -1
- package/run/run-config.js +12 -88
- package/run/run-config.js.map +1 -1
- package/run/run-coverage.js +12 -1
- package/run/run-coverage.js.map +1 -1
- package/run/run-discovery-types.d.ts +0 -14
- package/run/run-discovery-types.d.ts.map +1 -1
- package/run/run-engine-primitives.d.ts +10 -0
- package/run/run-engine-primitives.d.ts.map +1 -0
- package/run/run-engine-selection.d.ts +0 -10
- package/run/run-engine-selection.d.ts.map +1 -1
- package/run/run-errors.d.ts +3 -2
- package/run/run-errors.d.ts.map +1 -1
- package/run/run-errors.js +6 -0
- package/run/run-errors.js.map +1 -1
- package/run/run-if-main-options.d.ts +0 -7
- package/run/run-if-main-options.d.ts.map +1 -1
- package/run/run-if-main-profile.d.ts +1 -2
- package/run/run-if-main-profile.d.ts.map +1 -1
- package/run/run-if-main-profile.js +1 -1
- package/run/run-if-main-profile.js.map +1 -1
- package/run/run-if-main.d.ts +0 -1
- package/run/run-if-main.d.ts.map +1 -1
- package/run/run-local-command.js +2 -1
- package/run/run-local-command.js.map +1 -1
- package/run/run-orchestrator-dependencies.d.ts +1 -6
- package/run/run-orchestrator-dependencies.d.ts.map +1 -1
- package/run/run-orchestrator.d.ts +0 -8
- package/run/run-orchestrator.d.ts.map +1 -1
- package/run/run-orchestrator.entry-point.d.ts +1 -1
- package/run/run-orchestrator.entry-point.d.ts.map +1 -1
- package/run/run-selection-filters.d.ts +2 -11
- package/run/run-selection-filters.d.ts.map +1 -1
- package/run/run-supervised-process.js +1 -0
- package/run/run-supervised-process.js.map +1 -1
- package/run/run-support.js +19 -0
- package/run/run-support.js.map +1 -1
- package/run/run-test-modules.d.ts +0 -4
- package/run/run-test-modules.d.ts.map +1 -1
- package/run/run-timing-collection.d.ts +0 -21
- package/run/run-timing-collection.d.ts.map +1 -1
- package/run/run-types.d.ts +21 -1
- package/run/run-types.d.ts.map +1 -1
- package/run/run-types.js.map +1 -1
- package/run/run.d.ts +0 -3
- package/run/run.d.ts.map +1 -1
- package/run/supervised-child-execution.js +38 -0
- package/run/supervised-child-execution.js.map +1 -0
- package/run/supervised-child-process.d.ts +1 -53
- package/run/supervised-child-process.d.ts.map +1 -1
- package/run/supervised-child-process.js +1 -5
- package/run/supervised-child-process.js.map +1 -1
- package/run/supervised-child-test-plan.js.map +1 -1
- package/run/supervised-child.js +4 -36
- package/run/supervised-child.js.map +1 -1
- package/run/supervised-run-runtime.js.map +1 -1
- package/run/worker-pool-output.js +1 -1
- package/run/worker-pool-output.js.map +1 -1
- package/run/worker-pool-run.js +1 -7
- package/run/worker-pool-run.js.map +1 -1
- package/run/worker-pool-warm-lane-affinity.d.ts +0 -11
- package/run/worker-pool-warm-lane-affinity.d.ts.map +1 -1
- package/run/worker-pool-worker-plan.js.map +1 -1
- package/run/worker-pool-worker-resources.js.map +1 -1
- package/run/worker-pool-worker.js +1 -1
- package/run/worker-pool-worker.js.map +1 -1
- package/sbom.cdx.json +5 -5
- package/assertion-protocol/assertion-evaluation.d.ts +0 -13
- package/assertion-protocol/assertion-evaluation.d.ts.map +0 -1
- package/assertion-protocol/evaluation.d.ts +0 -32
- package/assertion-protocol/evaluation.d.ts.map +0 -1
- package/assertion-protocol/source-location-forwarding.d.ts +0 -4
- package/assertion-protocol/source-location-forwarding.d.ts.map +0 -1
- package/assertion-protocol/source-location.d.ts +0 -8
- package/assertion-protocol/source-location.d.ts.map +0 -1
- package/compare/comparison-result.d.ts +0 -25
- package/compare/comparison-result.d.ts.map +0 -1
- package/compare/comparison.d.ts +0 -12
- package/compare/comparison.d.ts.map +0 -1
- package/engine/async-leak-diagnostics.d.ts +0 -27
- package/engine/async-leak-diagnostics.d.ts.map +0 -1
- package/engine/custom-assertion-recording.d.ts +0 -33
- package/engine/custom-assertion-recording.d.ts.map +0 -1
- package/engine/execution-async-leak-policy.d.ts +0 -24
- package/engine/execution-async-leak-policy.d.ts.map +0 -1
- package/engine/execution-supervision-state.d.ts +0 -30
- package/engine/execution-supervision-state.d.ts.map +0 -1
- package/engine/reporter-disposal.d.ts +0 -6
- package/engine/reporter-disposal.d.ts.map +0 -1
- package/packages/engine/assertion-protocol.entry-point.d.ts +0 -10
- package/packages/engine/assertion-protocol.entry-point.d.ts.map +0 -1
- package/packages/engine/assertion-protocol.entry-point.js +0 -5
- package/packages/engine/assertion-protocol.entry-point.js.map +0 -1
- package/packages/engine/engine.entry-point.d.ts +0 -58
- package/packages/engine/engine.entry-point.d.ts.map +0 -1
- package/packages/engine/engine.entry-point.js +0 -75
- package/packages/engine/engine.entry-point.js.map +0 -1
- package/resources/resource-definition-brand.d.ts +0 -2
- package/resources/resource-definition-brand.d.ts.map +0 -1
- package/resources/resource-graph.d.ts +0 -24
- package/resources/resource-graph.d.ts.map +0 -1
- package/resources/resource-scenario-binding.d.ts +0 -37
- package/resources/resource-scenario-binding.d.ts.map +0 -1
- package/run/duration-history-schema.d.ts +0 -251
- package/run/duration-history-schema.d.ts.map +0 -1
- package/run/supervised-run-state.d.ts +0 -44
- package/run/supervised-run-state.d.ts.map +0 -1
package/resources/resources.js
CHANGED
|
@@ -1,93 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { resolvedRuntimeScenarioOwners as readRuntimeScenarioOwners } from "./runtime-definition.js";
|
|
2
2
|
import { runtimeMatrixDefinitionApi } from "./runtime-matrix-definition.js";
|
|
3
3
|
import { resourceDefinitionApi } from "./resource-definition.js";
|
|
4
4
|
import { resolvedResourceScenarioBindings as readResourceScenarioBindings } from "./resource-scenario-binding.js";
|
|
5
5
|
const composeRuntimeGraphs = runtimeMatrixDefinitionApi.composeRuntimes;
|
|
6
6
|
const createRuntimeMatrixDefinition = runtimeMatrixDefinitionApi.defineRuntimeMatrix;
|
|
7
|
-
const { isComposedRuntimeGraph } = runtimeMatrixDefinitionApi;
|
|
8
7
|
const isRuntimeMatrixDefinition = runtimeMatrixDefinitionApi.isDefinedRuntimeMatrix;
|
|
9
8
|
const runtimeGraphLeafDescriptors = runtimeMatrixDefinitionApi.runtimeGraphLeaves;
|
|
10
|
-
const createResourceDescriptor = resourceDefinitionApi.defineResource;
|
|
11
9
|
const isResourceDefinition = resourceDefinitionApi.isDefinedResource;
|
|
12
10
|
export const { isDefinedResource, resolvedResourceScenarioBindings, resolvedRuntimeScenarioOwners } = Object.freeze({
|
|
13
11
|
isDefinedResource: isResourceDefinition,
|
|
14
12
|
resolvedResourceScenarioBindings: readResourceScenarioBindings,
|
|
15
13
|
resolvedRuntimeScenarioOwners: readRuntimeScenarioOwners
|
|
16
14
|
});
|
|
17
|
-
export function defineResource(definition) {
|
|
18
|
-
return Reflect.apply(createResourceDescriptor, undefined, [definition]);
|
|
19
|
-
}
|
|
20
|
-
export const defineRuntime = createRuntimeDefinition;
|
|
21
|
-
export const isDefinedRuntime = isRuntimeDefinition;
|
|
22
15
|
export const isDefinedRuntimeMatrix = isRuntimeMatrixDefinition;
|
|
23
16
|
export const composeRuntimes = composeRuntimeGraphs;
|
|
24
|
-
|
|
25
|
-
if (!isComposedRuntimeGraph(runtime)) {
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
for (const childRuntime of runtime.runtimes) {
|
|
29
|
-
if (!Object.hasOwn(nextRuntimes, childRuntime.name)) {
|
|
30
|
-
throw new TypeError(`Runtime scope "${childRuntime.name}" is missing.`);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
function runtimeContextHandles(runtime, resourceHandles) {
|
|
35
|
-
return isComposedRuntimeGraph(runtime)
|
|
36
|
-
? resourceHandles
|
|
37
|
-
: { [runtime.name]: resourceHandles };
|
|
38
|
-
}
|
|
39
|
-
function createTemporaryDirectoryResource(dependencies, name) {
|
|
40
|
-
return defineResource({
|
|
41
|
-
name,
|
|
42
|
-
scope: 'per-case',
|
|
43
|
-
requirements: [],
|
|
44
|
-
async acquire(context) {
|
|
45
|
-
context.signal.throwIfAborted();
|
|
46
|
-
return Object.freeze({
|
|
47
|
-
path: await dependencies.createTemporaryDirectory(dependencies.temporaryDirectoryPathPrefix)
|
|
48
|
-
});
|
|
49
|
-
},
|
|
50
|
-
async dispose(handle) {
|
|
51
|
-
await dependencies.removeDirectory(handle.path);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function composeRuntimeContext(context, runtime, resourceHandles) {
|
|
56
|
-
const runtimes = Object.hasOwn(context, 'runtimes') ? Reflect.get(context, 'runtimes') : {};
|
|
57
|
-
if (typeof runtimes !== 'object' || runtimes === null || Array.isArray(runtimes)) {
|
|
58
|
-
throw new TypeError('composeRuntimeContext() requires context.runtimes to be an object when present.');
|
|
59
|
-
}
|
|
60
|
-
const nextRuntimes = runtimeContextHandles(runtime, resourceHandles);
|
|
61
|
-
const duplicateRuntimeName = Object.keys(nextRuntimes).find(function runtimeNameExists(runtimeName) {
|
|
62
|
-
return Object.hasOwn(runtimes, runtimeName);
|
|
63
|
-
});
|
|
64
|
-
assertRuntimeContextHandles(runtime, nextRuntimes);
|
|
65
|
-
if (duplicateRuntimeName !== undefined) {
|
|
66
|
-
throw new TypeError(`Runtime scope "${duplicateRuntimeName}" already exists.`);
|
|
67
|
-
}
|
|
68
|
-
return Object.freeze({
|
|
69
|
-
...context,
|
|
70
|
-
runtimes: Object.freeze({
|
|
71
|
-
...runtimes,
|
|
72
|
-
...nextRuntimes
|
|
73
|
-
})
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
export function createResourcesModule(dependencies) {
|
|
77
|
-
return Object.freeze({
|
|
78
|
-
composeRuntimeContext,
|
|
79
|
-
createTemporaryDirectoryResource(name) {
|
|
80
|
-
return createTemporaryDirectoryResource(dependencies, name);
|
|
81
|
-
},
|
|
82
|
-
composeRuntimes,
|
|
83
|
-
defineResource,
|
|
84
|
-
defineRuntime,
|
|
85
|
-
defineRuntimeMatrix: createRuntimeMatrixDefinition
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
export function isDefinedRuntimeGraph(runtime) {
|
|
89
|
-
return isDefinedRuntime(runtime) || isDefinedRuntimeMatrix(runtime) || isComposedRuntimeGraph(runtime);
|
|
90
|
-
}
|
|
17
|
+
|
|
91
18
|
export function runtimeGraphLeaves(runtime) {
|
|
92
19
|
const leaves = runtimeGraphLeafDescriptors(runtime);
|
|
93
20
|
return leaves;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../../source/resources/resources.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../../source/resources/resources.ts"],"names":[],"mappings":"AAAA,OAAO,+BAG0B,IAAI,yBAAyB,EAM7D,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,0BAA0B,EAQ7B,MAAM,gCAAgC,CAAC;AAWxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAoBjE,OAAO,EAAE,gCAAgC,IAAI,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAElH,MAAM,oBAAoB,GAAG,0BAA0B,CAAC,eAAe,CAAC;AACxE,MAAM,6BAA6B,GAAG,0BAA0B,CAAC,mBAAmB,CAAC;AACrF,MAAQ,4BAC0B,0BAA0B,CAAC,sBAAsB,CAAC;AACpF,MAAM,2BAA2B,GAAG,0BAA0B,CAAC,kBAAkB,CAAC;AAClF,MAAM,oBAAoB,GAAG,qBAAqB,CAAC,iBAAiB,CAAC;AAErE,MAAM,CAAC,MAAM,EACT,iBAAiB,EACjB,gCAAgC,EAChC,6BAA6B,EAChC,GAAG,MAAM,CAAC,MAAM,CAAC;IACd,iBAAiB,EAAE,oBAAoB;IACvC,gCAAgC,EAAE,4BAA4B;IAC9D,6BAA6B,EAAE,yBAAyB;CAC3D,CAAC,CAAC;AACH,MAAM,CAAC,aAiDP,CAAa,cAEsB,GAAG,yBAAyB,CAAC;AAChE,MAAM,CAAC,MAAM,eAAe,GAAG,oBAAoB,CAAC;;OA6GpD,SAAS,kBA6GyB,CAAC,OAAqB;IACpD,MAAM,MAAM,GAAG,2BAA2B,CAAC,OAAO,CAAC,CAAC;IAEpD,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ExecutionRequirement, RuntimeResourceMap } from './resource-definition-shape.ts';
|
|
2
|
-
import { type ResourceMapScenarioSlots, type ResourceScenarioOwner } from './resource-scenario-binding.ts';
|
|
3
2
|
import type { ResourceScenarioSlots, ScenarioBindingInput } from './resource-scenario.ts';
|
|
4
3
|
declare const runtimeDefinitionBrand: unique symbol;
|
|
5
4
|
export type RuntimeDimensions = Readonly<Record<string, string>>;
|
|
@@ -16,9 +15,6 @@ export type RuntimeDefinitionInput<Name extends string, Dimensions extends Runti
|
|
|
16
15
|
readonly requirements: readonly ExecutionRequirement[];
|
|
17
16
|
readonly resources: Resources;
|
|
18
17
|
};
|
|
19
|
-
export type RuntimeScenarioOwner = ResourceScenarioOwner & {
|
|
20
|
-
readonly value: string;
|
|
21
|
-
};
|
|
22
18
|
type RuntimeScenarioMethod<Name extends string, Dimensions extends RuntimeDimensions, Resources extends RuntimeResourceMap, Scenarios extends ResourceScenarioSlots> = <const Bindings extends Readonly<Record<string, string>>>(bindings: Bindings & ScenarioBindingInput<Scenarios, Bindings>) => RuntimeDefinition<Name, Dimensions, Resources, Scenarios>;
|
|
23
19
|
export type RuntimeDefinition<Name extends string = string, Dimensions extends RuntimeDimensions = RuntimeDimensions, Resources extends RuntimeResourceMap = RuntimeResourceMap, Scenarios extends ResourceScenarioSlots = ResourceScenarioSlots> = RuntimeDefinitionInput<Name, Dimensions, Resources> & {
|
|
24
20
|
readonly id: RuntimeId<Name, Dimensions>;
|
|
@@ -27,8 +23,5 @@ export type RuntimeDefinition<Name extends string = string, Dimensions extends R
|
|
|
27
23
|
readonly scenarios: Scenarios;
|
|
28
24
|
readonly [runtimeDefinitionBrand]: true;
|
|
29
25
|
};
|
|
30
|
-
export declare function defineRuntime<const Name extends string, const Dimensions extends RuntimeDimensions, const Resources extends RuntimeResourceMap>(definition: RuntimeDefinitionInput<Name, Dimensions, Resources>): RuntimeDefinition<Name, Dimensions, Resources, ResourceMapScenarioSlots<Resources>>;
|
|
31
|
-
export declare function resolvedRuntimeScenarioOwners(runtime: RuntimeDefinition): ReadonlyMap<string, RuntimeScenarioOwner>;
|
|
32
|
-
export declare function isDefinedRuntime(runtime: unknown): runtime is RuntimeDefinition;
|
|
33
26
|
export {};
|
|
34
27
|
//# sourceMappingURL=runtime-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-definition.d.ts","sourceRoot":"","sources":["../../../../source/resources/runtime-definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAC/F,
|
|
1
|
+
{"version":3,"file":"runtime-definition.d.ts","sourceRoot":"","sources":["../../../../source/resources/runtime-definition.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAC/F,OAEI,KAGQ,EACR,qBAAqB,EACrB,oBAAoB,EACvB,MAAM,wBAAwB,CAAC;AAEhC,QAAA,MAAM,sBAAsB,EAAE,OAAO,MAA6C,CAAC;AAEnF,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AACjE,KAAK,uBAAuB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEhE,MAAM,MAAM,SAAS,CACjB,IAAI,SAAS,MAAM,GAAG,MAAM,EAC5B,UAAU,SAAS,iBAAiB,GAAG,iBAAiB,IACxD;IACA,QAAQ,CAAC,IAAI,EAAE,I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AAqB,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IACjF,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,CAAC,sBAAsB,CAAC,EAAE,IAAI,CAAC;CAC3C,CAAC;AA+EF"}
|
|
@@ -1,62 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./resource-scenario-binding.js";
|
|
2
2
|
const runtimeDefinitionBrand = Symbol('overkill.runtimeDefinition');
|
|
3
3
|
const runtimeScenarioOwners = new WeakMap();
|
|
4
|
-
|
|
5
|
-
return Object.freeze(Object.fromEntries(Array.from(owners, function scenarioEntry([name, owner]) {
|
|
6
|
-
return [name, owner.slot];
|
|
7
|
-
})));
|
|
8
|
-
}
|
|
9
|
-
function resolveScenarioOwners(owners, current, overrides) {
|
|
10
|
-
for (const [name, value] of Object.entries(overrides)) {
|
|
11
|
-
const owner = owners.get(name);
|
|
12
|
-
if (owner === undefined) {
|
|
13
|
-
throw new TypeError(`Runtime scenario slot "${name}" is not declared.`);
|
|
14
|
-
}
|
|
15
|
-
if (!owner.slot.values.includes(value)) {
|
|
16
|
-
throw new TypeError(`Runtime scenario slot "${name}" does not declare value "${value}".`);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return new Map(Array.from(owners, function resolvedOwner([name, owner]) {
|
|
20
|
-
return [name, {
|
|
21
|
-
...owner,
|
|
22
|
-
value: overrides[name] ?? current[name] ?? owner.slot.default
|
|
23
|
-
}];
|
|
24
|
-
}));
|
|
25
|
-
}
|
|
26
|
-
function ownerBindings(owners) {
|
|
27
|
-
return Object.freeze(Object.fromEntries(Array.from(owners, function bindingEntry([name, owner]) {
|
|
28
|
-
return [name, owner.value];
|
|
29
|
-
})));
|
|
30
|
-
}
|
|
31
|
-
function createRuntimeDefinition(definition, bindings) {
|
|
32
|
-
const owners = resourceScenarioOwners(definition.resources);
|
|
33
|
-
const slots = scenarioSlots(owners);
|
|
34
|
-
const resolvedOwners = resolveScenarioOwners(owners, {}, bindings);
|
|
35
|
-
const scenario = function bindRuntimeScenario(overrides) {
|
|
36
|
-
return createRuntimeDefinition(definition, {
|
|
37
|
-
...ownerBindings(resolvedOwners),
|
|
38
|
-
...overrides
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
const descriptor = Object.freeze({
|
|
42
|
-
...definition,
|
|
43
|
-
id: Object.freeze({
|
|
44
|
-
name: definition.name,
|
|
45
|
-
dimensions: definition.dimensions,
|
|
46
|
-
scenarios: ownerBindings(resolvedOwners),
|
|
47
|
-
variantId: null
|
|
48
|
-
}),
|
|
49
|
-
kind: 'runtime',
|
|
50
|
-
scenario,
|
|
51
|
-
scenarios: slots,
|
|
52
|
-
[runtimeDefinitionBrand]: true
|
|
53
|
-
});
|
|
54
|
-
runtimeScenarioOwners.set(descriptor, resolvedOwners);
|
|
55
|
-
return descriptor;
|
|
56
|
-
}
|
|
57
|
-
export function defineRuntime(definition) {
|
|
58
|
-
return createRuntimeDefinition(definition, {});
|
|
59
|
-
}
|
|
4
|
+
|
|
60
5
|
export function resolvedRuntimeScenarioOwners(runtime) {
|
|
61
6
|
return runtimeScenarioOwners.get(runtime) ?? new Map();
|
|
62
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-definition.js","sourceRoot":"","sources":["../../../../source/resources/runtime-definition.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"runtime-definition.js","sourceRoot":"","sources":["../../../../source/resources/runtime-definition.ts"],"names":[],"mappings":"AACA,OAIO,gCAAgC,CAAC;AAMxC,MAAM,sBAAsB,GAAkB,MAAM,CAAC,4BAA4B,CAAC,CAAC;AAyDnF,MAAM,qBAAqB,GAAG,IAAI,OAAO,EAAgE,CAAC;;MAoFpG,UAGF,6BAGyC,CAAC,OAA0B;IACpE,OAAO,qBAAqB,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,OAAgB;IAC7C,OAAO,OAAO,OAAO,KAAK,QAAQ;QAC9B,OAAO,KAAK,IAAI;QAChB,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,sBAAsB,CAAC,KAAK,IAAI,CAAC;AAC9D,CAAC"}
|
|
@@ -3,13 +3,6 @@ import type { RuntimeResourceMap } from './resource-definition-shape.ts';
|
|
|
3
3
|
import type { EmptyResourceScenarioSlots, ResourceScenarioSlots, ScenarioBindingInput } from './resource-scenario.ts';
|
|
4
4
|
declare const runtimeMatrixDefinitionBrand: unique symbol;
|
|
5
5
|
declare const composedRuntimeGraphBrand: unique symbol;
|
|
6
|
-
type RuntimeMatrixVariantValue<Shared, Dimensions extends RuntimeDimensions, Resources extends RuntimeResourceMap> = RuntimeMatrixVariantValueOptions<Shared, Dimensions, Resources>[keyof RuntimeMatrixVariantValueOptions<Shared, Dimensions, Resources>];
|
|
7
|
-
type RuntimeMatrixVariantValueOptions<Shared, Dimensions extends RuntimeDimensions, Resources extends RuntimeResourceMap> = {
|
|
8
|
-
readonly factory: (shared: Shared) => RuntimeDefinition<string, Dimensions, Resources>;
|
|
9
|
-
readonly runtime: RuntimeDefinition<string, Dimensions, Resources>;
|
|
10
|
-
};
|
|
11
|
-
type RuntimeVariantFactoryResult<Variant, Shared> = Variant extends (shared: Shared) => infer Runtime ? Runtime : never;
|
|
12
|
-
type ResolvedRuntimeVariant<Variant, Shared> = Extract<RuntimeVariantFactoryResult<Variant, Shared> | Variant, RuntimeDefinition>;
|
|
13
6
|
export type RuntimeMatrixVariant<VariantId extends string = string, Runtime extends RuntimeDefinition = RuntimeDefinition> = {
|
|
14
7
|
readonly id: VariantId;
|
|
15
8
|
readonly runtime: Runtime;
|
|
@@ -22,9 +15,6 @@ type CombinedRuntimeScenarios<Runtime extends RuntimeGraph> = UnionToIntersectio
|
|
|
22
15
|
type RuntimeLeafScenarioSlots<Graph extends RuntimeGraph> = Graph extends RuntimeMatrixDefinition<string, infer Variants> ? RuntimeVariantsScenarios<Variants> : RuntimeDefinitionScenarios<Graph>;
|
|
23
16
|
type RuntimeGraphScenarioSlots<Graph extends RuntimeGraph> = Graph extends ComposedRuntimeGraph<infer Runtimes> ? CombinedRuntimeScenarios<Runtimes[number]> : RuntimeLeafScenarioSlots<Graph>;
|
|
24
17
|
type RuntimeGraphScenarioMethod<Scenarios extends ResourceScenarioSlots, Result> = <const Bindings extends Readonly<Record<string, string>>>(bindings: Bindings & ScenarioBindingInput<Scenarios, Bindings>) => Result;
|
|
25
|
-
type ResolvedRuntimeMatrixVariants<Variants extends Readonly<Record<string, RuntimeMatrixVariantValue<Shared, RuntimeDimensions, RuntimeResourceMap>>>, Shared> = {
|
|
26
|
-
readonly [VariantId in keyof Variants]: RuntimeMatrixVariant<VariantId & string, ResolvedRuntimeVariant<Variants[VariantId], Shared>>;
|
|
27
|
-
};
|
|
28
18
|
export type RuntimeMatrixDefinition<Name extends string = string, Variants extends RuntimeMatrixVariantMap = RuntimeMatrixVariantMap> = {
|
|
29
19
|
readonly kind: 'runtime-matrix';
|
|
30
20
|
readonly name: Name;
|
|
@@ -42,31 +32,5 @@ export type ComposedRuntimeGraph<Runtimes extends readonly RuntimeGraphLeaf[] =
|
|
|
42
32
|
readonly [composedRuntimeGraphBrand]: true;
|
|
43
33
|
};
|
|
44
34
|
export type RuntimeGraph = ComposedRuntimeGraph | RuntimeGraphLeaf;
|
|
45
|
-
type FlattenRuntimeGraph<Graph extends RuntimeGraph> = Graph extends ComposedRuntimeGraph<infer Runtimes> ? Runtimes[number] : Extract<Graph, RuntimeGraphLeaf>;
|
|
46
|
-
type FlattenRuntimeGraphs<Graphs extends readonly RuntimeGraph[]> = {
|
|
47
|
-
readonly [Key in keyof Graphs]: FlattenRuntimeGraph<Graphs[Key]>;
|
|
48
|
-
};
|
|
49
|
-
export type RuntimeMatrixDefinitionInput<Name extends string, Variants extends Readonly<Record<string, RuntimeMatrixVariantValue<never, RuntimeDimensions, RuntimeResourceMap>>>> = {
|
|
50
|
-
readonly name: Name;
|
|
51
|
-
readonly variants: Variants;
|
|
52
|
-
};
|
|
53
|
-
export type SharedRuntimeMatrixDefinitionInput<Name extends string, Shared, Variants extends Readonly<Record<string, RuntimeMatrixVariantValue<Shared, RuntimeDimensions, RuntimeResourceMap>>>> = {
|
|
54
|
-
readonly name: Name;
|
|
55
|
-
readonly shared: Shared;
|
|
56
|
-
readonly variants: Variants;
|
|
57
|
-
};
|
|
58
|
-
declare function defineRuntimeMatrix<const Name extends string, const Dimensions extends RuntimeDimensions, const Resources extends RuntimeResourceMap, const Variants extends Readonly<Record<string, RuntimeDefinition<string, Dimensions, Resources>>>>(definition: RuntimeMatrixDefinitionInput<Name, Variants>): RuntimeMatrixDefinition<Name, ResolvedRuntimeMatrixVariants<Variants, never>>;
|
|
59
|
-
declare function defineRuntimeMatrix<const Name extends string, Shared, const Dimensions extends RuntimeDimensions, const Resources extends RuntimeResourceMap, const Variants extends Readonly<Record<string, RuntimeMatrixVariantValue<Shared, Dimensions, Resources>>>>(definition: SharedRuntimeMatrixDefinitionInput<Name, Shared, Variants>): RuntimeMatrixDefinition<Name, ResolvedRuntimeMatrixVariants<Variants, Shared>>;
|
|
60
|
-
declare function isDefinedRuntimeMatrix(runtime: unknown): runtime is RuntimeMatrixDefinition;
|
|
61
|
-
declare function runtimeGraphLeaves(runtime: RuntimeGraph): readonly RuntimeGraphLeaf[];
|
|
62
|
-
declare function composeRuntimes<const Runtimes extends readonly [RuntimeGraph, ...RuntimeGraph[]]>(...runtimes: Runtimes): ComposedRuntimeGraph<FlattenRuntimeGraphs<Runtimes>>;
|
|
63
|
-
declare function isComposedRuntimeGraph(runtime: unknown): runtime is ComposedRuntimeGraph;
|
|
64
|
-
export declare const runtimeMatrixDefinitionApi: Readonly<{
|
|
65
|
-
composeRuntimes: typeof composeRuntimes;
|
|
66
|
-
defineRuntimeMatrix: typeof defineRuntimeMatrix;
|
|
67
|
-
isComposedRuntimeGraph: typeof isComposedRuntimeGraph;
|
|
68
|
-
isDefinedRuntimeMatrix: typeof isDefinedRuntimeMatrix;
|
|
69
|
-
runtimeGraphLeaves: typeof runtimeGraphLeaves;
|
|
70
|
-
}>;
|
|
71
35
|
export {};
|
|
72
36
|
//# sourceMappingURL=runtime-matrix-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-matrix-definition.d.ts","sourceRoot":"","sources":["../../../../source/resources/runtime-matrix-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EACR,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACvB,MAAM,wBAAwB,CAAC;AAEhC,QAAA,MAAM,4BAA4B,EAAE,OAAO,MAAmD,CAAC;AAC/F,QAAA,MAAM,yBAAyB,EAAE,OAAO,MAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime-matrix-definition.d.ts","sourceRoot":"","sources":["../../../../source/resources/runtime-matrix-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,KAAK,EACR,0BAA0B,EAC1B,qBAAqB,EACrB,oBAAoB,EACvB,MAAM,wBAAwB,CAAC;AAEhC,QAAA,MAAM,4BAA4B,EAAE,OAAO,MAAmD,CAAC;AAC/F,QAAA,MAAM,yBAAyB,EAAE,OAAO,MAAgD,CAAC;OAYzF,KAAK,oBAAgC,UAgBxB,SAAS,MAAM,GAAG,MAAM,EACjC,OAAO,SAAS,iBAAiB,GAAG,iBAAiB,IACrD;IACA,QAAQ,CAAC,EAAE,EAAE,SAAS,CAA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EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,CAAC,yBAAyB,CAAC,EAAE,IAAI,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,oBAAoB,GAAG,gBAAgB,CAAC;MAEsC,CAGrC,EAEnE,CAAC"}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
1
|
export type RuntimeCapabilityPolicyEnvironment = Readonly<Record<string, string | undefined>>;
|
|
2
|
-
type EnvironmentSnapshot = {
|
|
3
|
-
readonly entries: readonly (readonly [string, string])[];
|
|
4
|
-
readonly object: RuntimeCapabilityPolicyEnvironment;
|
|
5
|
-
};
|
|
6
|
-
type StorageSnapshot = {
|
|
7
|
-
readonly entries: readonly (readonly [string, string])[];
|
|
8
|
-
readonly object: WebStorageLike | null;
|
|
9
|
-
};
|
|
10
2
|
export type WebStorageLike = {
|
|
11
3
|
readonly length: number;
|
|
12
4
|
readonly getItem: (key: string) => string | null;
|
|
@@ -18,16 +10,5 @@ export type RuntimeCapabilityPolicyDependencies = {
|
|
|
18
10
|
readonly readEnvironment: () => RuntimeCapabilityPolicyEnvironment;
|
|
19
11
|
readonly readStorage: (name: 'localStorage' | 'sessionStorage') => WebStorageLike | null;
|
|
20
12
|
};
|
|
21
|
-
export type RuntimeSnapshots = {
|
|
22
|
-
readonly environment: EnvironmentSnapshot;
|
|
23
|
-
readonly localStorage: StorageSnapshot;
|
|
24
|
-
readonly sessionStorage: StorageSnapshot;
|
|
25
|
-
};
|
|
26
|
-
export declare function isRuntimeCapabilityPolicyEnvironment(value: unknown): value is RuntimeCapabilityPolicyEnvironment;
|
|
27
|
-
export declare function isWebStorageLike(value: unknown): value is WebStorageLike;
|
|
28
|
-
export declare function environmentChanged(before: RuntimeSnapshots, after: RuntimeSnapshots): boolean;
|
|
29
|
-
export declare function localStorageChanged(before: RuntimeSnapshots, after: RuntimeSnapshots): boolean;
|
|
30
|
-
export declare function sessionStorageChanged(before: RuntimeSnapshots, after: RuntimeSnapshots): boolean;
|
|
31
|
-
export declare function takeSnapshots(dependencies: RuntimeCapabilityPolicyDependencies): RuntimeSnapshots;
|
|
32
13
|
export {};
|
|
33
14
|
//# sourceMappingURL=capability-policy-snapshots.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability-policy-snapshots.d.ts","sourceRoot":"","sources":["../../../../source/run/capability-policy-snapshots.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kCAAkC,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"capability-policy-snapshots.d.ts","sourceRoot":"","sources":["../../../../source/run/capability-policy-snapshots.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kCAAkC,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;MAYxF,MAAM,cAAc,GAAG;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAC9C,QAAQ,CAAC,qBAAqB,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;IAClF,QAAQ,CAAC,kCAAkC,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,KAAK,MAAM,IAAI,CAAC;IAC/F,QAAQ,CAAC,eAAe,EAAE,MAAM,kCAAkC,CAAC;IACnE,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,cAAc,GAAG,gBAAgB,KAAK,cAAc,GAAG,IAAI,CAAC;CAC5F,CAAC;AAEF,MAAM,CAAyB,EAI9B,CAAC"}
|
|
@@ -3,9 +3,4 @@ export type CommandLineCommandLoaders = {
|
|
|
3
3
|
readonly loadBaselineCommands: () => Promise<CommandLineBaselineCommands>;
|
|
4
4
|
readonly loadBenchmarkCommands: () => Promise<CommandLineBenchmarkCommands>;
|
|
5
5
|
};
|
|
6
|
-
export type CommandLineCommandNamespace = {
|
|
7
|
-
readonly baseline: CommandLineBaselineCommands;
|
|
8
|
-
readonly bench: CommandLineBenchmarkCommands;
|
|
9
|
-
};
|
|
10
|
-
export declare function createCommandLineCommandNamespace(loaders: CommandLineCommandLoaders): CommandLineCommandNamespace;
|
|
11
6
|
//# sourceMappingURL=command-line-command-namespace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line-command-namespace.d.ts","sourceRoot":"","sources":["../../../../source/run/command-line-command-namespace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,2BAA2B,EAC3B,4BAA4B,EAE/B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,yBAAyB,GAAG;IACpC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC1E,QAAQ,CAAC,qBAAqB,EAAE,MAAM,OAAO,CAAC,4BAA4B,CAAC,CAAC;CAC/E,CAAC
|
|
1
|
+
{"version":3,"file":"command-line-command-namespace.d.ts","sourceRoot":"","sources":["../../../../source/run/command-line-command-namespace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,2BAA2B,EAC3B,4BAA4B,EAE/B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,yBAAyB,GAAG;IACpC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAC1E,QAAQ,CAAC,qBAAqB,EAAE,MAAM,OAAO,CAAC,4BAA4B,CAAC,CAAC;CAC/E,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { RunResult
|
|
1
|
+
import type { RunResult } from '../engine/run-result.ts';
|
|
2
2
|
import type { RunRequest } from './run-types.ts';
|
|
3
|
-
import {
|
|
3
|
+
import type { RunConfigLoadRequest } from './run-config.ts';
|
|
4
4
|
type CommandLineRunOrder = Exclude<RunRequest['order'], 'plan'>;
|
|
5
5
|
export declare const commandLineExitCodes: Readonly<{
|
|
6
6
|
argumentOrConfig: 3;
|
|
@@ -49,8 +49,5 @@ export type CommandLineBenchmarkCommands = {
|
|
|
49
49
|
readonly listBenchmarks: CommandLineCommand;
|
|
50
50
|
readonly runBenchmarks: CommandLineCommand;
|
|
51
51
|
};
|
|
52
|
-
export declare function formatRunnerErrorDiagnostics(errors: readonly RunnerError[]): readonly string[];
|
|
53
|
-
export declare function readExitCodeFromRunResult(result: RunResult): CommandLineExitCode;
|
|
54
|
-
export declare function createCommandLineErrorResultFromUnknown(error: unknown): CommandLineRunnerResult;
|
|
55
52
|
export {};
|
|
56
53
|
//# sourceMappingURL=command-line-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line-command.d.ts","sourceRoot":"","sources":["../../../../source/run/command-line-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"command-line-command.d.ts","sourceRoot":"","sources":["../../../../source/run/command-line-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAwB,MAAM,yBAAyB,CAAC;AAEtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,KAAK,mBAAmB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;;;;;;EAQ/B,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,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,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,kBAAkB,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACvC,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;IAC/C,QAAQ,CAAC,cAAc,EAAE,kBAAkB,CAAC;IAC5C,QAAQ,CAAC,aAAa,EAAE,kBAAkB,CAAC;CAC9C,CAAC;AAMF"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReporterSinkConflictError } from "../engine/reporter.js";
|
|
2
|
-
import { RunCollectionError, RunResolutionError } from "./run-errors.js";
|
|
3
|
-
import { RunConfigError } from "./run-config.js";
|
|
2
|
+
import { RunCollectionError, RunConfigError, RunResolutionError } from "./run-errors.js";
|
|
4
3
|
export const commandLineExitCodes = Object.freeze({
|
|
5
4
|
argumentOrConfig: 3,
|
|
6
5
|
internalCrash: 70,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line-command.js","sourceRoot":"","sources":["../../../../source/run/command-line-command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,
|
|
1
|
+
{"version":3,"file":"command-line-command.js","sourceRoot":"","sources":["../../../../source/run/command-line-command.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAKzF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC9C,gBAAgB,EAAE,CAAC;IACnB,aAAa,EAAE,EAAE;IACjB,gBAAgB,EAAE,CAAC;IACnB,IA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BAA4B,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,oBAAoB,EAAE,KAAK,CAAC,CAAC;IAC5G,CAAC;IAED,OAAO,4BAA4B,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;AACxG,CAAC;AAED,SAAS,sCAAsC,CAAC,KAAyB;IACrE,OAAO;QACH,QAAQ,EAAE,oBAAoB,CAAC,WAAW;QAC1C,mBAAmB,EAAE,4BAA4B,CAAC,CAAE,KAAK,CAAC,WAAW,EAAE,CAAE,CAAC;QAC1E,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,EAAE;KAClB,CAAC;AACN,CAAC;AAED,MAAM,UAAU,uCAAuC,CAAC,KAAc;IAClE,MAAM,eAAe,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IAE5C,IAAI,eAAe,YAAY,cAAc,EAAE,CAAC;QAC5C,OAAO,4BAA4B,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC7G,CAAC;IAED,IAAI,eAAe,YAAY,yBAAyB,EAAE,CAAC;QACvD,OAAO,4BAA4B,CAAC,oBAAoB,CAAC,gBAAgB,EAAE,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC7G,CAAC;IAED,IAAI,eAAe,YAAY,kBAAkB,EAAE,CAAC;QAChD,OAAO,sCAAsC,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IAC1E,CAAC;IAED,IAAI,eAAe,YAAY,kBAAkB,EAAE,CAAC;QAChD,OAAO,sCAAsC,CAAC,eAAe,CAAC,CAAC;IACnE,CAAC;IAED,OAAO,4BAA4B,CAAC,oBAAoB,CAAC,aAAa,EAAE,gBAAgB,EAAE,KAAK,CAAC,CAAC;AACrG,CAAC"}
|
|
@@ -17,6 +17,4 @@ export type CommandLineRunnerDependencies = CommandLineCommandLoaders & {
|
|
|
17
17
|
readonly loadRunConfig: (request: RunConfigLoadRequest) => Promise<LoadedRunConfig>;
|
|
18
18
|
readonly orchestrator: RunOrchestrator;
|
|
19
19
|
};
|
|
20
|
-
export declare function createCommandLineRunner(dependencies: CommandLineRunnerDependencies): CommandLineRunner;
|
|
21
|
-
export declare function loadDefaultLineReporter(): Promise<DefinedReporter>;
|
|
22
20
|
//# sourceMappingURL=command-line-runner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-line-runner.d.ts","sourceRoot":"","sources":["../../../../source/run/command-line-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,EAAyB,eAAe,EAAoB,MAAM,gBAAgB,CAAC;AAC/F,OAAO,KAAK,EACR,eAAe,EACf,oBAAoB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAIH,KAAK,2BAA2B,EAEhC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,IAAI,4BAA4B,EAC/D,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEH,KAAK,yBAAyB,EACjC,MAAM,qCAAqC,CAAC;AAc7C,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,4BAA4B,CAAC;IAC7C,QAAQ,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,2BAA2B,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC/F,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,aAAa,EAAE,kBAAkB,CAAC;IAC3C,QAAQ,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAChG,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,4BAA4B,CAAC;AAEnE,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,GAAG,4BAA4B,CAAC;AAEnE,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,GAAG;IACpE,QAAQ,CAAC,qBAAqB,EAAE,MAAM,OAAO,CAAC,eAAe,CAAC,CAAC;IAC/D,QAAQ,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;IACpF,QAAQ,CAAC,YAAY,EAAE,eAAe,CAAC;CAC1C,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
declare const coverageOutputSchema: z.ZodEnum<{
|
|
3
|
+
html: "html";
|
|
4
|
+
json: "json";
|
|
5
|
+
lcov: "lcov";
|
|
6
|
+
text: "text";
|
|
7
|
+
v8: "v8";
|
|
8
|
+
}>;
|
|
9
|
+
declare const coverageSourcesSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
10
|
+
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
11
|
+
mode: z.ZodLiteral<"loaded">;
|
|
12
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
13
|
+
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
14
|
+
include: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
15
|
+
mode: z.ZodLiteral<"all">;
|
|
16
|
+
}, z.core.$strict>>], "mode">;
|
|
17
|
+
declare const coverageThresholdsSchema: z.ZodReadonly<z.ZodObject<{
|
|
18
|
+
branches: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
functions: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, z.core.$strict>>;
|
|
22
|
+
export declare const coveragePolicySchema: z.ZodReadonly<z.ZodObject<{
|
|
23
|
+
outputDir: z.ZodOptional<z.ZodString>;
|
|
24
|
+
outputs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
25
|
+
html: "html";
|
|
26
|
+
json: "json";
|
|
27
|
+
lcov: "lcov";
|
|
28
|
+
text: "text";
|
|
29
|
+
v8: "v8";
|
|
30
|
+
}>>>>;
|
|
31
|
+
sources: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
32
|
+
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
33
|
+
mode: z.ZodLiteral<"loaded">;
|
|
34
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
35
|
+
exclude: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
36
|
+
include: z.ZodReadonly<z.ZodTuple<[z.ZodString], z.ZodString>>;
|
|
37
|
+
mode: z.ZodLiteral<"all">;
|
|
38
|
+
}, z.core.$strict>>], "mode">>;
|
|
39
|
+
thresholds: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
40
|
+
branches: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
functions: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
lines: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
}, z.core.$strict>>>;
|
|
44
|
+
}, z.core.$strict>>;
|
|
45
|
+
export type RunProjectCoverageOutput = z.infer<typeof coverageOutputSchema>;
|
|
46
|
+
export type RunProjectCoveragePolicy = z.infer<typeof coveragePolicySchema>;
|
|
47
|
+
export type RunProjectCoverageSources = z.infer<typeof coverageSourcesSchema>;
|
|
48
|
+
export type RunProjectCoverageThresholds = z.infer<typeof coverageThresholdsSchema>;
|
|
49
|
+
export {};
|
|
50
|
+
//# sourceMappingURL=coverage-config-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coverage-config-schema.d.ts","sourceRoot":"","sources":["../../../../source/run/coverage-config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,QAAA,MAAM,oBAAoB;;;;;;EAAmD,CAAC;AAG9E,QAAA,MAAM,qBAAqB;;;;;;;6BAczB,CAAC;AAKH,QAAA,MAAM,wBAAwB;;;;mBAMf,CAAC;AAEhB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;mBAOlB,CAAC;AAEhB,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC5E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC9E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
const coverageOutputSchema = z.enum(['html', 'json', 'lcov', 'text', 'v8']);
|
|
3
|
+
const fileGlobSchema = z.string();
|
|
4
|
+
const coverageSourcesSchema = z.discriminatedUnion('mode', [
|
|
5
|
+
z
|
|
6
|
+
.strictObject({
|
|
7
|
+
exclude: z.optional(z.array(fileGlobSchema).readonly()),
|
|
8
|
+
mode: z.literal('loaded')
|
|
9
|
+
})
|
|
10
|
+
.readonly(),
|
|
11
|
+
z
|
|
12
|
+
.strictObject({
|
|
13
|
+
exclude: z.optional(z.array(fileGlobSchema).readonly()),
|
|
14
|
+
include: z.tuple([fileGlobSchema]).rest(fileGlobSchema).readonly(),
|
|
15
|
+
mode: z.literal('all')
|
|
16
|
+
})
|
|
17
|
+
.readonly()
|
|
18
|
+
]);
|
|
19
|
+
const maximumCoveragePercentage = 100;
|
|
20
|
+
const coveragePercentageSchema = z.number().min(0).max(maximumCoveragePercentage);
|
|
21
|
+
const coverageThresholdsSchema = z
|
|
22
|
+
.strictObject({
|
|
23
|
+
branches: z.optional(coveragePercentageSchema),
|
|
24
|
+
functions: z.optional(coveragePercentageSchema),
|
|
25
|
+
lines: z.optional(coveragePercentageSchema)
|
|
26
|
+
})
|
|
27
|
+
.readonly();
|
|
28
|
+
export const coveragePolicySchema = z
|
|
29
|
+
.strictObject({
|
|
30
|
+
outputDir: z.optional(z.string().min(1)),
|
|
31
|
+
outputs: z.optional(z.array(coverageOutputSchema).readonly()),
|
|
32
|
+
sources: z.optional(coverageSourcesSchema),
|
|
33
|
+
thresholds: z.optional(coverageThresholdsSchema)
|
|
34
|
+
})
|
|
35
|
+
.readonly();
|
|
36
|
+
//# sourceMappingURL=coverage-config-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coverage-config-schema.js","sourceRoot":"","sources":["../../../../source/run/coverage-config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,MAAM,oBAAoB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,CAAE,CAAC,CAAC;AAC9E,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC;AAElC,MAAM,qBAAqB,GAAG,CAAC,CAAC,kBAAkB,CAAC,MAAM,EAAE;IACvD,CAAC;SACI,YAAY,CAAC;QACV,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,CAAC;QACvD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;KAC5B,CAAC;SACD,QAAQ,EAAE;IACf,CAAC;SACI,YAAY,CAAC;QACV,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,CAAC;QACvD,OAAO,EAAE,C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