@overkill-dev/run 0.0.62 → 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 +0 -14
- 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 -62
- package/engine/run-result.d.ts.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 +5 -2
- package/reporters/human-reporter-rendering.js +2 -2
- package/reporters/human-reporter-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 +1 -4
- package/run/command-line-command.d.ts.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-reporting.js +6 -188
- package/run/coverage-reporting.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/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-schema.d.ts +0 -4
- package/run/run-config-schema.d.ts.map +1 -1
- package/run/run-config.d.ts +0 -1
- package/run/run-config.d.ts.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 +0 -2
- package/run/run-errors.d.ts.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 +0 -1
- package/run/run-if-main-profile.d.ts.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-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-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 +0 -1
- package/run/run-types.d.ts.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
|
@@ -4,28 +4,9 @@ export type ResourceScenarioSlot<Scenario extends string = string, Timing extend
|
|
|
4
4
|
readonly timing: Timing;
|
|
5
5
|
readonly values: readonly [Scenario, ...(readonly Scenario[])];
|
|
6
6
|
};
|
|
7
|
-
export type ResourceScenarioSlotInput<Scenario extends string = string, Timing extends ScenarioTiming = ScenarioTiming> = {
|
|
8
|
-
readonly default: Scenario;
|
|
9
|
-
readonly timing: Timing;
|
|
10
|
-
readonly values: readonly Scenario[];
|
|
11
|
-
};
|
|
12
|
-
export type ResourceScenarioSlotInputs = Readonly<Record<string, ResourceScenarioSlotInput>>;
|
|
13
|
-
export type ResourceScenarioSlotsFromInputs<Inputs extends ResourceScenarioSlotInputs> = {
|
|
14
|
-
readonly [Slot in keyof Inputs]: ResourceScenarioSlot<Inputs[Slot]['default'] | Inputs[Slot]['values'][number], Inputs[Slot]['timing']>;
|
|
15
|
-
};
|
|
16
7
|
export type ResourceScenarioSlots = Readonly<Record<string, ResourceScenarioSlot>>;
|
|
17
8
|
export type EmptyResourceScenarioSlots = Readonly<Record<PropertyKey, never>>;
|
|
18
|
-
export type ResourceScenarioBindings<Scenarios extends ResourceScenarioSlots> = {
|
|
19
|
-
readonly [Slot in keyof Scenarios]: Scenarios[Slot]['values'][number];
|
|
20
|
-
};
|
|
21
|
-
export type ResourceScenarioBindingsForTiming<Scenarios extends ResourceScenarioSlots, Timing extends ScenarioTiming> = {
|
|
22
|
-
readonly [Slot in keyof Scenarios as Timing extends Scenarios[Slot]['timing'] ? Slot : never]: Scenarios[Slot]['values'][number];
|
|
23
|
-
};
|
|
24
9
|
export type ScenarioBindingInput<Scenarios extends ResourceScenarioSlots, Bindings extends Readonly<Record<string, string>>> = {
|
|
25
10
|
readonly [Slot in keyof Bindings]: Slot extends keyof Scenarios ? Bindings[Slot] extends Scenarios[Slot]['values'][number] ? Bindings[Slot] : never : never;
|
|
26
11
|
};
|
|
27
|
-
export type ResolvedResourceScenarioBindings = Readonly<Record<string, string>>;
|
|
28
|
-
export declare function freezeResourceScenarioSlots(scenarios: unknown): ResourceScenarioSlots;
|
|
29
|
-
export declare function defaultScenarioBindings(scenarios: ResourceScenarioSlots): ResolvedResourceScenarioBindings;
|
|
30
|
-
export declare function scenarioBindingsForTiming(scenarios: ResourceScenarioSlots, bindings: ResolvedResourceScenarioBindings, timing: ScenarioTiming): ResolvedResourceScenarioBindings;
|
|
31
12
|
//# sourceMappingURL=resource-scenario.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-scenario.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-scenario.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,gBAAgB,CAAC;AAE1D,MAAM,MAAM,oBAAoB,CAC5B,QAAQ,SAAS,MAAM,GAAG,MAAM,EAChC,MAAM,SAAS,cAAc,GAAG,cAAc,IAC9C;IACA,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC,SAAS,QAAQ,EAAE,CAAC,CAAC,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"resource-scenario.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-scenario.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,gBAAgB,CAAC;AAE1D,MAAM,MAAM,oBAAoB,CAC5B,QAAQ,SAAS,MAAM,GAAG,MAAM,EAChC,MAAM,SAAS,cAAc,GAAG,cAAc,IAC9C;IACA,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,EAAE,GAAG,CAAC,SAAS,QAAQ,EAAE,CAAC,CAAC,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,wBASA,QAAqC,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAyB,CAAC,CAAC,CAAC;AAC7F,MAAM,MAQM,0BAA0B,GAAG,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AAE9E,MAAM,0BAa0B,CAC5B,SAAS,SAAS,qBAAqB,EACvC,QAAQ,SAAS,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,IACjD;IACA,QAAQ,EAAE,IAAI,IAAI,MAAM,QAAQ,GAAG,IAAI,SAAS,MAAM,SAAS,GACzD,QAAQ,CAAC,IAAI,CAAC,SAAS,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,GAAG,KAAK,GACjF,KAAK;CACd,CAAC"}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { type ResourceNode } from './resource-graph.ts';
|
|
3
|
-
import { type ResourceLifecycleFailure } from './resource-lifecycle-error.ts';
|
|
4
|
-
type ResourceAcquisitionContext = {
|
|
5
|
-
readonly acquisitionFailureMessage: string;
|
|
6
|
-
readonly fallbackResourceName: string;
|
|
7
|
-
};
|
|
8
|
-
export type StartResourcesRequest<Resources extends ResourceDependencies> = {
|
|
9
|
-
readonly resources: Resources;
|
|
10
|
-
readonly signal: AbortSignal;
|
|
11
|
-
};
|
|
1
|
+
import type { ResourceContext, ResourceDependencies } from './resources.ts';
|
|
12
2
|
export type ResourceSessionDisposalContext = {
|
|
13
3
|
readonly signal: AbortSignal;
|
|
14
4
|
};
|
|
@@ -16,14 +6,5 @@ export type ResourceSession<Resources extends ResourceDependencies> = AsyncDispo
|
|
|
16
6
|
readonly context: ResourceContext<Resources>;
|
|
17
7
|
readonly disposeOnce: (context: ResourceSessionDisposalContext) => Promise<void>;
|
|
18
8
|
};
|
|
19
|
-
export declare function disposeResources(order: readonly ResourceNode[], ownerHandles: ReadonlyMap<AnyResourceDefinition, unknown>, resourceHandles: ReadonlyMap<AnyResourceDefinition, unknown>, signal: AbortSignal): Promise<readonly ResourceLifecycleFailure[]>;
|
|
20
|
-
export declare function runtimeAsyncDisposeSymbol(): symbol;
|
|
21
|
-
export declare function acquireResourceGraph<Resources extends ResourceDependencies>(request: StartResourcesRequest<Resources>, context: ResourceAcquisitionContext): Promise<{
|
|
22
|
-
readonly context: ResourceContext<Resources>;
|
|
23
|
-
readonly ownerHandles: ReadonlyMap<AnyResourceDefinition, unknown>;
|
|
24
|
-
readonly order: readonly ResourceNode[];
|
|
25
|
-
readonly resourceHandles: ReadonlyMap<AnyResourceDefinition, unknown>;
|
|
26
|
-
}>;
|
|
27
|
-
export declare function startResources<Resources extends ResourceDependencies>(request: StartResourcesRequest<Resources>): Promise<ResourceSession<Resources>>;
|
|
28
9
|
export {};
|
|
29
10
|
//# sourceMappingURL=resource-session.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-session.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"resource-session.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-session.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAGO,EAEf,oBAAoB,EAGvB,MAAM,gBAAgB,CAAC;MA+ClB,eAKN,qBAA0C,GAAG;IACzC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,SAAS,SAAS,oBAAoB,IAAI,eAAe,GAAG;IACpF,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IAC7C,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,8BAA8B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACpF,CAAC;AAwDF,OAgLW,EAKT,CAUD"}
|
package/resources/resources.d.ts
CHANGED
|
@@ -1,68 +1,19 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type { ResourceScenarioBindings as ResourceScenarioBindingsShape, ResourceScenarioSlot as ResourceScenarioSlotShape, ResourceScenarioSlotInput as ResourceScenarioSlotInputShape, ResourceScenarioSlotInputs as ResourceScenarioSlotInputsShape, ResourceScenarioSlots as ResourceScenarioSlotsShape, ResourceScenarioSlotsFromInputs as ResourceScenarioSlotsFromInputsShape, ScenarioTiming as ScenarioTimingShape } from './resource-scenario.ts';
|
|
7
|
-
import { resolvedResourceScenarioBindings as readResourceScenarioBindings } from './resource-scenario-binding.ts';
|
|
8
|
-
declare const composeRuntimeGraphs: <const Runtimes extends readonly [RuntimeGraphDescriptor, ...RuntimeGraphDescriptor[]]>(...runtimes: Runtimes) => ComposedRuntimeGraphDescriptor<{ readonly [Key in keyof Runtimes]: Runtimes[Key] extends infer T ? T extends Runtimes[Key] ? T extends ComposedRuntimeGraphDescriptor<infer Runtimes_1 extends readonly RuntimeGraphLeafDescriptor[]> ? Runtimes_1[number] : Extract<T, RuntimeGraphLeafDescriptor> : never : never; }>;
|
|
9
|
-
declare const createRuntimeMatrixDefinition: {
|
|
10
|
-
<const Name extends string, const Dimensions extends RuntimeDimensionMap, const Resources extends RuntimeResourceMapShape, const Variants extends Readonly<Record<string, RuntimeDefinitionDescriptor<string, Dimensions, Resources>>>>(definition: RuntimeMatrixDescriptorInput<Name, Variants>): RuntimeMatrixDescriptor<Name, { readonly [VariantId in keyof Variants]: RuntimeMatrixVariantDescriptor<VariantId & string, Extract<Variants[VariantId], RuntimeDefinitionDescriptor> | Extract<Variants[VariantId] extends infer T ? T extends Variants[VariantId] ? T extends (shared: never) => infer Runtime ? Runtime : never : never : never, RuntimeDefinitionDescriptor>>; }>;
|
|
11
|
-
<const Name extends string, Shared, const Dimensions extends RuntimeDimensionMap, const Resources extends RuntimeResourceMapShape, const Variants extends Readonly<Record<string, RuntimeDefinitionDescriptor<string, Dimensions, Resources> | ((shared: Shared) => RuntimeDefinitionDescriptor<string, Dimensions, Resources>)>>>(definition: SharedRuntimeMatrixDescriptorInput<Name, Shared, Variants>): RuntimeMatrixDescriptor<Name, { readonly [VariantId in keyof Variants]: RuntimeMatrixVariantDescriptor<VariantId & string, Extract<Variants[VariantId], RuntimeDefinitionDescriptor> | Extract<Variants[VariantId] extends infer T ? T extends Variants[VariantId] ? T extends (shared: Shared) => infer Runtime ? Runtime : never : never : never, RuntimeDefinitionDescriptor>>; }>;
|
|
12
|
-
};
|
|
13
|
-
export type ProjectedResourceScope = 'per-file' | 'per-run' | 'per-suite';
|
|
14
|
-
export type WithDependencies<Input, Dependencies extends ResourceDependencies> = WithDependenciesShape<Input, Dependencies>;
|
|
15
|
-
export type LocalOnlyResourceDefinitionInput<Name extends string, Handle, Scope extends ResourceScope, Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = Readonly<Record<PropertyKey, never>>> = LocalOnlyResourceDefinitionInputShape<Name, Handle, Scope, Dependencies, Scenarios>;
|
|
16
|
-
export type ProjectedResourceDefinitionInput<Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope, Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = Readonly<Record<PropertyKey, never>>> = ProjectedResourceDefinitionInputShape<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies, Scenarios>;
|
|
17
|
-
export type ScenarioLocalInput<Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>, Dependencies extends ResourceDependencies, ScenarioInputs extends ResourceScenarioSlotInputs> = ScenarioLocalInputShape<Name, Handle, Scope, Dependencies, ScenarioInputs>;
|
|
18
|
-
export type ScenarioProjectedInput<Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope, Dependencies extends ResourceDependencies, ScenarioInputs extends ResourceScenarioSlotInputs> = ScenarioProjectedInputShape<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies, ScenarioInputs>;
|
|
19
|
-
export declare const isDefinedResource: (resource: unknown) => resource is ResourceDefinitionShape, resolvedResourceScenarioBindings: typeof readResourceScenarioBindings, resolvedRuntimeScenarioOwners: typeof readRuntimeScenarioOwners;
|
|
20
|
-
export declare function defineResource<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>, const Dependencies extends ResourceDependencies, const ScenarioInputs extends ResourceScenarioSlotInputs>(definition: WithDependencies<ScenarioLocalInput<Name, Handle, Scope, Dependencies, ScenarioInputs>, Dependencies>): ResourceDefinition<Name, Handle, Dependencies, Handle, ResourceScenarioSlotsFromInputs<ScenarioInputs>>;
|
|
21
|
-
export declare function defineResource<const Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope, const Dependencies extends ResourceDependencies, const ScenarioInputs extends ResourceScenarioSlotInputs>(definition: WithDependencies<ScenarioProjectedInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies, ScenarioInputs>, Dependencies>): ResourceDefinition<Name, OwnerHandle, Dependencies, ConsumerHandle, ResourceScenarioSlotsFromInputs<ScenarioInputs>>;
|
|
22
|
-
export declare function defineResource<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>, const ScenarioInputs extends ResourceScenarioSlotInputs>(definition: Except<ScenarioLocalInput<Name, Handle, Scope, EmptyResourceDependencies, ScenarioInputs>, 'dependencies'>): ResourceDefinition<Name, Handle, EmptyResourceDependencies, Handle, ResourceScenarioSlotsFromInputs<ScenarioInputs>>;
|
|
23
|
-
export declare function defineResource<const Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope, const ScenarioInputs extends ResourceScenarioSlotInputs>(definition: Except<ScenarioProjectedInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope, EmptyResourceDependencies, ScenarioInputs>, 'dependencies'>): ResourceDefinition<Name, OwnerHandle, EmptyResourceDependencies, ConsumerHandle, ResourceScenarioSlotsFromInputs<ScenarioInputs>>;
|
|
24
|
-
export declare function defineResource<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>>(definition: Except<LocalOnlyResourceDefinitionInput<Name, Handle, Scope>, 'scenarios'>): ResourceDefinition<Name, Handle, EmptyResourceDependencies, Handle>;
|
|
25
|
-
export declare function defineResource<const Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope>(definition: Except<ProjectedResourceDefinitionInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope>, 'scenarios'>): ResourceDefinition<Name, OwnerHandle, EmptyResourceDependencies, ConsumerHandle>;
|
|
26
|
-
export declare function defineResource<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>, const Dependencies extends ResourceDependencies>(definition: WithDependencies<Except<LocalOnlyResourceDefinitionInput<Name, Handle, Scope, Dependencies>, 'scenarios'>, Dependencies>): ResourceDefinition<Name, Handle, Dependencies, Handle>;
|
|
27
|
-
export declare function defineResource<const Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope, const Dependencies extends ResourceDependencies>(definition: WithDependencies<Except<ProjectedResourceDefinitionInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies>, 'scenarios'>, Dependencies>): ResourceDefinition<Name, OwnerHandle, Dependencies, ConsumerHandle>;
|
|
28
|
-
export type RuntimeScenarioOwner = RuntimeScenarioOwnerShape;
|
|
29
|
-
export type ResourceScenarioBindings<Scenarios extends ResourceScenarioSlots> = ResourceScenarioBindingsShape<Scenarios>;
|
|
30
|
-
export type ResourceScenarioSlot<Scenario extends string = string> = ResourceScenarioSlotShape<Scenario>;
|
|
31
|
-
export type ResourceScenarioSlotInput<Scenario extends string = string> = ResourceScenarioSlotInputShape<Scenario>;
|
|
32
|
-
export type ResourceScenarioSlotInputs = ResourceScenarioSlotInputsShape;
|
|
1
|
+
import { type RuntimeDefinition as RuntimeDefinitionDescriptor, type RuntimeDimensions as RuntimeDimensionMap } from './runtime-definition.ts';
|
|
2
|
+
import { type ComposedRuntimeGraph as ComposedRuntimeGraphDescriptor, type RuntimeGraph as RuntimeGraphDescriptor, type RuntimeGraphLeaf as RuntimeGraphLeafDescriptor, type RuntimeMatrixDefinition as RuntimeMatrixDescriptor, type RuntimeMatrixVariant as RuntimeMatrixVariantDescriptor } from './runtime-matrix-definition.ts';
|
|
3
|
+
import type { AnyResourceDefinition as AnyResourceDefinitionShape, ResourceDependencies as ResourceDependenciesShape, RuntimeResourceMap as RuntimeResourceMapShape } from './resource-definition-shape.ts';
|
|
4
|
+
import type { ResourceContext as ResourceContextShape, ResourceHandle as ResourceHandleShape } from './resource-definition-types.ts';
|
|
5
|
+
import type { ResourceScenarioSlots as ResourceScenarioSlotsShape } from './resource-scenario.ts';
|
|
33
6
|
export type ResourceScenarioSlots = ResourceScenarioSlotsShape;
|
|
34
|
-
export type ResourceScenarioSlotsFromInputs<Inputs extends ResourceScenarioSlotInputs> = ResourceScenarioSlotsFromInputsShape<Inputs>;
|
|
35
|
-
export type ScenarioTiming = ScenarioTimingShape;
|
|
36
7
|
export type AnyResourceDefinition = AnyResourceDefinitionShape;
|
|
37
|
-
export type Awaitable<Value> = AwaitableShape<Value>;
|
|
38
|
-
export type EmptyResourceDependencies = EmptyResourceDependenciesShape;
|
|
39
|
-
export type ExecutionRequirement = ExecutionRequirementShape;
|
|
40
8
|
export type ResourceDependencies = ResourceDependenciesShape;
|
|
41
|
-
export type ResourceProjectionPayload = ResourceProjectionPayloadShape;
|
|
42
|
-
export type ResourceScope = ResourceScopeShape;
|
|
43
9
|
export type RuntimeResourceMap = RuntimeResourceMapShape;
|
|
44
10
|
export type ResourceContext<Resources extends ResourceDependencies> = ResourceContextShape<Resources>;
|
|
45
|
-
export type ResourceCreationContext<Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = Readonly<Record<PropertyKey, never>>> = ResourceCreationContextShape<Dependencies, Scenarios>;
|
|
46
|
-
export type ResourceDefinition<Name extends string = string, OwnerHandle = unknown, Dependencies extends ResourceDependencies = ResourceDependencies, ConsumerHandle = OwnerHandle, Scenarios extends ResourceScenarioSlots = Readonly<Record<PropertyKey, never>>> = ResourceDefinitionShape<Name, OwnerHandle, Dependencies, ConsumerHandle, Scenarios>;
|
|
47
|
-
export type ResourceDefinitionInput<Name extends string, Handle, Dependencies extends ResourceDependencies = EmptyResourceDependencies, Projection extends ResourceProjectionPayload = ResourceProjectionPayload, ConsumerHandle = Handle> = ResourceDefinitionInputShape<Name, Handle, Dependencies, Projection, ConsumerHandle>;
|
|
48
|
-
export type ResourceDisposalContext<Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = Readonly<Record<PropertyKey, never>>> = ResourceDisposalContextShape<Dependencies, Scenarios>;
|
|
49
11
|
export type ResourceHandle<Resource extends AnyResourceDefinition> = ResourceHandleShape<Resource>;
|
|
50
|
-
export type ResourceProjectionContext<Dependencies extends ResourceDependencies = EmptyResourceDependencies> = ResourceProjectionContextShape<Dependencies>;
|
|
51
|
-
export declare const defineRuntime: typeof createRuntimeDefinition;
|
|
52
|
-
export declare const isDefinedRuntime: typeof isRuntimeDefinition;
|
|
53
|
-
export declare const isDefinedRuntimeMatrix: (runtime: unknown) => runtime is RuntimeMatrixDescriptor;
|
|
54
|
-
export declare const composeRuntimes: <const Runtimes extends readonly [RuntimeGraphDescriptor, ...RuntimeGraphDescriptor[]]>(...runtimes: Runtimes) => ComposedRuntimeGraphDescriptor<{ readonly [Key in keyof Runtimes]: Runtimes[Key] extends infer T ? T extends Runtimes[Key] ? T extends ComposedRuntimeGraphDescriptor<infer Runtimes_1 extends readonly RuntimeGraphLeafDescriptor[]> ? Runtimes_1[number] : Extract<T, RuntimeGraphLeafDescriptor> : never : never; }>;
|
|
55
12
|
export type RuntimeDefinition<Name extends string = string, Dimensions extends RuntimeDimensionMap = RuntimeDimensionMap, Resources extends RuntimeResourceMap = RuntimeResourceMap, Scenarios extends ResourceScenarioSlots = ResourceScenarioSlots> = RuntimeDefinitionDescriptor<Name, Dimensions, Resources, Scenarios>;
|
|
56
|
-
export type RuntimeDefinitionInput<Name extends string, Dimensions extends RuntimeDimensionMap, Resources extends RuntimeResourceMap> = RuntimeDefinitionDescriptorInput<Name, Dimensions, Resources>;
|
|
57
|
-
export type RuntimeDimensions = RuntimeDimensionMap;
|
|
58
|
-
export type RuntimeScenarioBindings = Readonly<Record<string, string>>;
|
|
59
13
|
export type RuntimeGraph = RuntimeGraphDescriptor;
|
|
60
14
|
export type RuntimeGraphLeaf = RuntimeGraphLeafDescriptor;
|
|
61
15
|
export type ComposedRuntimeGraph<Runtimes extends readonly RuntimeGraphLeaf[] = readonly RuntimeGraphLeaf[]> = ComposedRuntimeGraphDescriptor<Runtimes>;
|
|
62
|
-
export type RuntimeId<Name extends string = string, Dimensions extends RuntimeDimensions = RuntimeDimensions> = RuntimeIdentity<Name, Dimensions>;
|
|
63
16
|
export type RuntimeMatrixDefinition<Name extends string = string, Variants extends RuntimeMatrixVariantMap = RuntimeMatrixVariantMap> = RuntimeMatrixDescriptor<Name, Variants>;
|
|
64
|
-
export type RuntimeMatrixDefinitionInput<Name extends string, Variants extends Readonly<Record<string, RuntimeDefinition>>> = RuntimeMatrixDescriptorInput<Name, Variants>;
|
|
65
|
-
export type SharedRuntimeMatrixDefinitionInput<Name extends string, Shared, Variants extends Readonly<Record<string, RuntimeDefinition | ((shared: Shared) => RuntimeDefinition)>>> = SharedRuntimeMatrixDescriptorInput<Name, Shared, Variants>;
|
|
66
17
|
export type RuntimeMatrixVariant<VariantId extends string = string, Runtime extends RuntimeDefinition = RuntimeDefinition> = RuntimeMatrixVariantDescriptor<VariantId, Runtime>;
|
|
67
18
|
export type RuntimeMatrixVariantMap = Readonly<Record<string, RuntimeMatrixVariant>>;
|
|
68
19
|
type UnionToIntersection<Value> = (Value extends unknown ? (value: Value) => void : never) extends (value: infer Intersection) => void ? Intersection : never;
|
|
@@ -82,39 +33,5 @@ export type RuntimeContext<Runtime extends RuntimeGraphLeaf> = {
|
|
|
82
33
|
};
|
|
83
34
|
export type RuntimeGraphContext<Graph extends RuntimeGraph> = Graph extends ComposedRuntimeGraph ? RuntimeScopeContext<Graph> : RuntimeContext<Extract<Graph, RuntimeGraphLeaf>>;
|
|
84
35
|
export type RuntimeScopeContext<Runtime extends RuntimeGraph> = Readonly<Runtime extends ComposedRuntimeGraph<infer Runtimes> ? UnionToIntersection<RuntimeScopeContext<Runtimes[number]>> : Record<RuntimeGraphName<Runtime>, RuntimeContext<Extract<Runtime, RuntimeGraphLeaf>>>>;
|
|
85
|
-
type EmptyRuntimeScopes = Pick<Readonly<Record<string, never>>, never>;
|
|
86
|
-
type RuntimeScopeKey<Runtime extends RuntimeGraph> = RuntimeGraphName<Runtime>;
|
|
87
|
-
type RuntimeScopes<Context> = Context extends {
|
|
88
|
-
readonly runtimes: infer Runtimes extends Readonly<Record<string, unknown>>;
|
|
89
|
-
} ? Runtimes : EmptyRuntimeScopes;
|
|
90
|
-
type RuntimeScopeGuard<Context, Runtime extends RuntimeGraph> = Extract<RuntimeScopeKey<Runtime>, keyof RuntimeScopes<Context>> extends never ? unknown : never;
|
|
91
|
-
type RuntimeScopeBaseContext<Context> = {
|
|
92
|
-
readonly [Key in keyof Context as Key extends 'runtimes' ? never : Key]: Context[Key];
|
|
93
|
-
};
|
|
94
|
-
type ComposedRuntimeScopes<BaseContext, Runtime extends RuntimeGraph> = {
|
|
95
|
-
readonly runtimes: RuntimeScopeContext<Runtime> & RuntimeScopes<BaseContext>;
|
|
96
|
-
};
|
|
97
|
-
export type RuntimeContextComposition<BaseContext, Runtime extends RuntimeGraph> = Readonly<ComposedRuntimeScopes<BaseContext, Runtime> & RuntimeScopeBaseContext<BaseContext>>;
|
|
98
|
-
export type TemporaryDirectoryHandle = {
|
|
99
|
-
readonly path: string;
|
|
100
|
-
};
|
|
101
|
-
export type ResourcesModuleDependencies = {
|
|
102
|
-
readonly createTemporaryDirectory: (pathPrefix: string) => Awaitable<string>;
|
|
103
|
-
readonly removeDirectory: (path: string) => Awaitable<void>;
|
|
104
|
-
readonly temporaryDirectoryPathPrefix: string;
|
|
105
|
-
};
|
|
106
|
-
type CreateTemporaryDirectoryResource = <const Name extends string>(name: Name) => ResourceDefinition<Name, TemporaryDirectoryHandle, EmptyResourceDependencies>;
|
|
107
|
-
export type ResourcesModule = {
|
|
108
|
-
readonly composeRuntimeContext: typeof composeRuntimeContext;
|
|
109
|
-
readonly createTemporaryDirectoryResource: CreateTemporaryDirectoryResource;
|
|
110
|
-
readonly defineResource: DefineResourceShape;
|
|
111
|
-
readonly defineRuntime: typeof defineRuntime;
|
|
112
|
-
readonly defineRuntimeMatrix: typeof createRuntimeMatrixDefinition;
|
|
113
|
-
readonly composeRuntimes: typeof composeRuntimeGraphs;
|
|
114
|
-
};
|
|
115
|
-
declare function composeRuntimeContext<BaseContext extends Readonly<Record<string, unknown>>, Runtime extends RuntimeGraph>(context: BaseContext & RuntimeScopeGuard<BaseContext, Runtime>, runtime: Runtime, resourceHandles: RuntimeGraphContext<Runtime>): RuntimeContextComposition<BaseContext, Runtime>;
|
|
116
|
-
export declare function createResourcesModule(dependencies: ResourcesModuleDependencies): ResourcesModule;
|
|
117
|
-
export declare function isDefinedRuntimeGraph(runtime: unknown): runtime is RuntimeGraph;
|
|
118
|
-
export declare function runtimeGraphLeaves(runtime: RuntimeGraph): readonly RuntimeGraphLeaf[];
|
|
119
36
|
export {};
|
|
120
37
|
//# sourceMappingURL=resources.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../../source/resources/resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EACH,aAAa,IAAI,uBAAuB,EACxC,gBAAgB,IAAI,mBAAmB,EACvC,6BAA6B,IAAI,yBAAyB,EAC1D,KAAK,iBAAiB,IAAI,2BAA2B,EACrD,KAAK,sBAAsB,IAAI,gCAAgC,EAC/D,KAAK,iBAAiB,IAAI,mBAAmB,EAC7C,KAAK,SAAS,IAAI,eAAe,EACjC,KAAK,oBAAoB,IAAI,yBAAyB,EACzD,MAAM,yB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AAgB,IAAI;IACvD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE,iBAAiB,CAAC,CAAC;IACpD,QAAQ,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,OAAO,CAAC,KAAK,EAAE,uBAAuB,CAAC,CAAC,CAAC;CAC5F,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;AACjB,KAAK,qBAAqB,CAAC,OAAO,SAAS,gBAAgB,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,CAAC;AAEzG,MAAM,MAAM,cAAc,CAAC,OAAO,SAAS,gBAAgB,IAAI;IAC3D,QAAQ,EAAE,GAAG,IAAI,MAAM,qBAAqB,CAAC,OAAO,CAAC,GAAG,cAAc,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC;CAC9G,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,YAAY,IAAI,KAAK,SAAS,oBAAoB,GAC1F,mBAAmB,CAAC,KAAK,CAAC,GAC1B,cAAc,CAAC,OAAO,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC;AAEvD,MAAM,MAAM,mBAAmB,CAAC,OAAO,SAAS,YAAY,IAAI,QAAQ,CACpE,OAAO,SAAS,oBAAoB,CAAC,MAAM,QAAQ,CAAC,GAAG,mBAAmB,CAAC,mBAAmB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,GAC3G,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAC9F,CAAC;IAKE,GAQoC,EAEvC,CAAC"}
|
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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iBAAiB,EACxD,SAAS,SAAS,kBAAkB,GAAG,kBAAkB,EACzD,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,IAC/D,sBAAsB,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,CAAC,GAAG;IACtD,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACzC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,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,0BAA0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AAE,IAC1E;IACA,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,0BAA0B,CACzC,wBAAwB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,EAC1C,oBAAoB,CAAC,QAAQ,CAAC,CACjC,CAAC;IACF,QAAQ,CAAC,SAAS,EAAE,wBAAwB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;IAC/D,QAAQ,CAAC,QAAQ,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
|