@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
|
@@ -1,104 +1,9 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AnyResourceDefinition, Awaitable, EmptyResourceDependencies, ExecutionRequirement, ResourceDependencies, ResourceProjectionPayload, ResourceScope, ValueOf } from './resource-definition-shape.ts';
|
|
3
|
-
import type { resourceDefinitionBrand } from './resource-definition-brand.ts';
|
|
4
|
-
import type { EmptyResourceScenarioSlots, ResourceScenarioBindingsForTiming, ResourceScenarioSlotInputs, ResourceScenarioSlotsFromInputs, ResourceScenarioSlots } from './resource-scenario.ts';
|
|
5
|
-
type ProjectedResourceScope = 'per-file' | 'per-run' | 'per-suite';
|
|
6
|
-
export type WithDependencies<Input, Dependencies extends ResourceDependencies> = Merge<Input, {
|
|
7
|
-
readonly dependencies: Dependencies;
|
|
8
|
-
}>;
|
|
9
|
-
type WithScenarios<Input extends {
|
|
10
|
-
readonly scenarios: unknown;
|
|
11
|
-
}, ScenarioInputs extends ResourceScenarioSlotInputs> = Merge<Except<Input, 'scenarios'>, {
|
|
12
|
-
readonly scenarios: ScenarioInputs;
|
|
13
|
-
}>;
|
|
14
|
-
export type ResourceProjectionContext<Dependencies extends ResourceDependencies = EmptyResourceDependencies> = {
|
|
15
|
-
readonly dependencies: ResourceContext<Dependencies>;
|
|
16
|
-
};
|
|
17
|
-
export type ResourceHandleExposureContext<Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = {
|
|
18
|
-
readonly scenarios: ResourceScenarioBindingsForTiming<Scenarios, 'request-routed'>;
|
|
19
|
-
};
|
|
1
|
+
import type { AnyResourceDefinition, ResourceDependencies } from './resource-definition-shape.ts';
|
|
20
2
|
export type ResourceHandle<Resource extends AnyResourceDefinition> = Resource extends {
|
|
21
3
|
readonly deserializeHandle?: ((payload: never, context: never) => infer ConsumerHandle) | undefined;
|
|
22
4
|
} ? ConsumerHandle : Awaited<ReturnType<Resource['acquire']>>;
|
|
23
5
|
export type ResourceContext<Resources extends ResourceDependencies> = {
|
|
24
6
|
readonly [Key in keyof Resources]: ResourceHandle<Resources[Key]>;
|
|
25
7
|
};
|
|
26
|
-
export type ResourceCreationContext<Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = {
|
|
27
|
-
readonly dependencies: ResourceContext<Dependencies>;
|
|
28
|
-
readonly scenarios: ResourceScenarioBindingsForTiming<Scenarios, 'acquire'>;
|
|
29
|
-
readonly signal: AbortSignal;
|
|
30
|
-
};
|
|
31
|
-
export type ResourceDisposalContext<Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = {
|
|
32
|
-
readonly dependencies: ResourceContext<Dependencies>;
|
|
33
|
-
readonly scenarios: ResourceScenarioBindingsForTiming<Scenarios, 'acquire'>;
|
|
34
|
-
readonly signal: AbortSignal;
|
|
35
|
-
};
|
|
36
|
-
type RequestRoutedScenarioNames<Scenarios extends ResourceScenarioSlots> = keyof {
|
|
37
|
-
readonly [Slot in keyof Scenarios as 'request-routed' extends Scenarios[Slot]['timing'] ? Slot : never]: true;
|
|
38
|
-
};
|
|
39
|
-
type ResourceHandleExposureInput<Handle, Scenarios extends ResourceScenarioSlots> = {
|
|
40
|
-
readonly exposeHandle?: (handle: Handle, context: ResourceHandleExposureContext<Scenarios>) => Handle;
|
|
41
|
-
};
|
|
42
|
-
type ResourceHandleExposureDefinition<Handle, Scenarios extends ResourceScenarioSlots> = RequestRoutedScenarioNames<Scenarios> extends never ? {
|
|
43
|
-
readonly exposeHandle: null;
|
|
44
|
-
} : {
|
|
45
|
-
readonly exposeHandle: (handle: Handle, context: ResourceHandleExposureContext<Scenarios>) => Handle;
|
|
46
|
-
};
|
|
47
|
-
type ResourceDisposal<Handle, Dependencies extends ResourceDependencies, Scenarios extends ResourceScenarioSlots> = ((handle: Handle, context: ResourceDisposalContext<Dependencies, Scenarios>) => Awaitable<void>) | null;
|
|
48
|
-
type ResourceDefinitionBaseInput<Name extends string, Handle, Scope extends ResourceScope, Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = {
|
|
49
|
-
readonly acquire: (context: ResourceCreationContext<Dependencies, Scenarios>) => Awaitable<Handle>;
|
|
50
|
-
readonly dependencies?: Dependencies;
|
|
51
|
-
readonly dispose: ResourceDisposal<Handle, Dependencies, Scenarios>;
|
|
52
|
-
readonly name: Name;
|
|
53
|
-
readonly requirements: readonly ExecutionRequirement[];
|
|
54
|
-
readonly scope: Scope;
|
|
55
|
-
};
|
|
56
|
-
export type LocalOnlyResourceDefinitionInput<Name extends string, Handle, Scope extends ResourceScope, Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = Merge<ResourceDefinitionBaseInput<Name, Handle, Scope, Dependencies, Scenarios>, ResourceHandleExposureInput<Handle, NoInfer<Scenarios>> & {
|
|
57
|
-
readonly deserializeHandle?: never;
|
|
58
|
-
readonly scenarios: Scenarios;
|
|
59
|
-
readonly serializeHandle?: never;
|
|
60
|
-
}>;
|
|
61
|
-
export type ProjectedResourceDefinitionInput<Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends 'per-file' | 'per-run' | 'per-suite', Dependencies extends ResourceDependencies = EmptyResourceDependencies, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = Merge<ResourceDefinitionBaseInput<Name, OwnerHandle, Scope, Dependencies, Scenarios>, ResourceHandleExposureInput<ConsumerHandle, NoInfer<Scenarios>> & {
|
|
62
|
-
readonly deserializeHandle: (payload: Projection, context: ResourceProjectionContext<Dependencies>) => ConsumerHandle;
|
|
63
|
-
readonly scenarios: Scenarios;
|
|
64
|
-
readonly serializeHandle: (handle: OwnerHandle, context: ResourceProjectionContext<Dependencies>) => Projection;
|
|
65
|
-
}>;
|
|
66
|
-
export type ScenarioLocalInput<Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>, Dependencies extends ResourceDependencies, ScenarioInputs extends ResourceScenarioSlotInputs> = WithScenarios<LocalOnlyResourceDefinitionInput<Name, Handle, Scope, Dependencies, ResourceScenarioSlotsFromInputs<ScenarioInputs>>, ScenarioInputs>;
|
|
67
|
-
export type ScenarioProjectedInput<Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedResourceScope, Dependencies extends ResourceDependencies, ScenarioInputs extends ResourceScenarioSlotInputs> = WithScenarios<ProjectedResourceDefinitionInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies, ResourceScenarioSlotsFromInputs<ScenarioInputs>>, ScenarioInputs>;
|
|
68
|
-
export type DefineResource = {
|
|
69
|
-
<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>>;
|
|
70
|
-
<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>>;
|
|
71
|
-
<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>>;
|
|
72
|
-
<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>>;
|
|
73
|
-
<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>>(definition: Except<LocalOnlyResourceDefinitionInput<Name, Handle, Scope>, 'scenarios'>): ResourceDefinition<Name, Handle, EmptyResourceDependencies, Handle>;
|
|
74
|
-
<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>;
|
|
75
|
-
<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>;
|
|
76
|
-
<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>;
|
|
77
|
-
};
|
|
78
|
-
export type ResourceDefinitionInput<Name extends string, Handle, Dependencies extends ResourceDependencies = EmptyResourceDependencies, Projection extends ResourceProjectionPayload = ResourceProjectionPayload, ConsumerHandle = Handle> = Except<ValueOf<ResourceDefinitionInputOptions<Name, Handle, Dependencies, Projection, ConsumerHandle>>, 'scenarios'>;
|
|
79
|
-
type ResourceDefinitionInputOptions<Name extends string, Handle, Dependencies extends ResourceDependencies, Projection extends ResourceProjectionPayload, ConsumerHandle> = {
|
|
80
|
-
readonly local: LocalResourceDefinitionInput<Name, Handle, Dependencies>;
|
|
81
|
-
readonly projected: ProjectedResourceInput<Name, Handle, Projection, ConsumerHandle, Dependencies>;
|
|
82
|
-
};
|
|
83
|
-
type LocalResourceDefinitionInput<Name extends string, Handle, Dependencies extends ResourceDependencies> = LocalCaseResourceInput<Name, Handle, Dependencies> | LocalFileResourceInput<Name, Handle, Dependencies>;
|
|
84
|
-
type LocalCaseResourceInput<Name extends string, Handle, Dependencies extends ResourceDependencies> = LocalOnlyResourceDefinitionInput<Name, Handle, 'per-case' | 'shared-per-worker', Dependencies>;
|
|
85
|
-
type LocalFileResourceInput<Name extends string, Handle, Dependencies extends ResourceDependencies> = LocalOnlyResourceDefinitionInput<Name, Handle, 'per-file' | 'per-suite', Dependencies>;
|
|
86
|
-
type ProjectedResourceInput<Name extends string, Handle, Projection extends ResourceProjectionPayload, ConsumerHandle, Dependencies extends ResourceDependencies> = ValueOf<ProjectedResourceInputOptions<Name, Handle, Projection, ConsumerHandle, Dependencies>>;
|
|
87
|
-
type ProjectedResourceInputOptions<Name extends string, Handle, Projection extends ResourceProjectionPayload, ConsumerHandle, Dependencies extends ResourceDependencies> = {
|
|
88
|
-
readonly file: ProjectedResourceDefinitionInput<Name, Handle, Projection, ConsumerHandle, 'per-file' | 'per-suite', Dependencies>;
|
|
89
|
-
readonly run: ProjectedResourceDefinitionInput<Name, Handle, Projection, ConsumerHandle, 'per-run', Dependencies>;
|
|
90
|
-
};
|
|
91
|
-
export type ResourceDefinition<Name extends string = string, OwnerHandle = unknown, Dependencies extends ResourceDependencies = ResourceDependencies, ConsumerHandle = OwnerHandle, Scenarios extends ResourceScenarioSlots = EmptyResourceScenarioSlots> = ResourceHandleExposureDefinition<ConsumerHandle, Scenarios> & {
|
|
92
|
-
readonly acquire: (context: ResourceCreationContext<Dependencies, Scenarios>) => Awaitable<OwnerHandle>;
|
|
93
|
-
readonly dependencies: Dependencies;
|
|
94
|
-
readonly deserializeHandle?: (payload: ResourceProjectionPayload, context: ResourceProjectionContext<Dependencies>) => ConsumerHandle;
|
|
95
|
-
readonly dispose: ResourceDisposal<OwnerHandle, Dependencies, Scenarios>;
|
|
96
|
-
readonly name: Name;
|
|
97
|
-
readonly requirements: readonly ExecutionRequirement[];
|
|
98
|
-
readonly scenarios: Scenarios;
|
|
99
|
-
readonly scope: ResourceScope;
|
|
100
|
-
readonly serializeHandle?: (handle: OwnerHandle, context: ResourceProjectionContext<Dependencies>) => ResourceProjectionPayload;
|
|
101
|
-
readonly [resourceDefinitionBrand]: true;
|
|
102
|
-
};
|
|
103
8
|
export {};
|
|
104
9
|
//# sourceMappingURL=resource-definition-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-definition-types.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-definition-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"resource-definition-types.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-definition-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAER,qBAAqB,wBAQxB,MAAM,gCAAgC,CAAC;MAYlC,MAAmD,cAiBhB,CACnB,QAAqB,QAKR,CAAS,qBAAqB,IAAI,QAAQ,SAAS;IAClF,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,KAAK,MAAM,cAAc,CAAC,GAAG,SAAS,CAAC;CACvG,GAAG,cAAc,GACZ,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAE/C,MAAM,MAAM,eAAe,CAAC,SAAS,SAAS,oBAAoB,IAAI;IAClE,QAAQ,EAAE,GAAG,IAAI,MAAM,SAAS,GAAG,cAAc,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CACpE,CAAC;AAEF,MAAM,CAGF,EAIH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-definition.js","sourceRoot":"","sources":["../../../../source/resources/resource-definition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resource-definition.js","sourceRoot":"","sources":["../../../../source/resources/resource-definition.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACH,2BAA2B,EAI9B,MAAM,wBAAwB,CAAC;AAIhC,SAAS,QAAQ,CAAC,KAAc;IAC5B,OAA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AAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,4BAA4B,CAAC,CAAC;IAC1G,CAAC;IAED,OAAO,oBAAoB,CAAC;AAChC,CAAC;AA+HD,SAAS,cAAc,CAAC,UAA6C;IACjE,MAAM,SAAS,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAC;IAEhD,OAAO,MAAM,CAAC,MAAM,CAAC;QACjB,GAAG,UAAU;QACb,YAAY,EAAE,oBAAoB,CAAC,UAAU,CAAC;QAC9C,YAAY,EAAE,sBAAsB,CAAC,UAAU,EAAE,SAAS,CAAC;QAC3D,SAAS;QACT,CAAC,uBAAuB,CAAC,EAAE,IAAa;KAC3C,CAAC,CAAC;AACP,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAiB;IACxC,OAAO,OAAO,QAAQ,KAAK,QAAQ;QAC/B,QAAQ,KAAK,IAAI;QACjB,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,uBAAuB,CAAC,KAAK,IAAI,CAAC;AAChE,CAAC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,MAAM,CAAC;IAC/C,cAAc;IACd,iBAAiB;CACpB,CAAC,CAAC"}
|
|
@@ -13,7 +13,6 @@ export declare class ResourceLifecycleError extends Error {
|
|
|
13
13
|
constructor(message: string, options: ResourceLifecycleErrorOptions);
|
|
14
14
|
failures(): readonly ResourceLifecycleFailure[];
|
|
15
15
|
}
|
|
16
|
-
export declare function resourceLifecycleError(message: string, failures: readonly ResourceLifecycleFailure[], cause: unknown): ResourceLifecycleError;
|
|
17
16
|
export declare function lifecycleFailures(results: readonly PromiseSettledResult<unknown>[], fallbackResourceName: string): readonly ResourceLifecycleFailure[];
|
|
18
17
|
export {};
|
|
19
18
|
//# sourceMappingURL=resource-lifecycle-error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-lifecycle-error.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-lifecycle-error.ts"],"names":[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S,wBAAwB,EAAE;CAGzD;AAED,0BAEI,eAc6B,CAC7B,OAAO,EAAE,SAAS,oBAAoB,CAAC,OAAO,CAAC,EAAE,EACjD,oBAAoB,EAAE,MAAM,GAC7B,SAAS,wBAAwB,EAAE,CAYrC"}
|
|
@@ -12,5 +12,21 @@ export class ResourceLifecycleError extends Error {
|
|
|
12
12
|
export function resourceLifecycleError(message, failures, cause) {
|
|
13
13
|
return new ResourceLifecycleError(message, { cause, failures });
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
function lifecycleFailuresFrom(reason, fallbackResourceName) {
|
|
16
|
+
if (reason instanceof ResourceLifecycleError) {
|
|
17
|
+
return reason.failures();
|
|
18
|
+
}
|
|
19
|
+
return [{ cause: reason, phase: 'acquire', resourceName: fallbackResourceName }];
|
|
20
|
+
}
|
|
21
|
+
export function lifecycleFailures(results, fallbackResourceName) {
|
|
22
|
+
const failures = new Set();
|
|
23
|
+
for (const result of results) {
|
|
24
|
+
if (result.status === 'rejected') {
|
|
25
|
+
for (const failure of lifecycleFailuresFrom(result.reason, fallbackResourceName)) {
|
|
26
|
+
failures.add(failure);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return Array.from(failures);
|
|
31
|
+
}
|
|
16
32
|
//# sourceMappingURL=resource-lifecycle-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-lifecycle-error.js","sourceRoot":"","sources":["../../../../source/resources/resource-lifecycle-error.ts"],"names":[],"mappings":"AAaA,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAC5B,iBAAiB,CAAsC;IAExE,YACI,OAAe,EACf,OAAsC;QAEtC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;QACrC,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAC9C,CAAC;IAEM,QAAQ;QACX,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;CACJ;AAED,MAAM,UAAU,sBAAsB,CAClC,OAAe,EACf,QAA6C,EAC7C,KAAc;IAEd,OAAO,IAAI,sBAAsB,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AACpE,CAAC"}
|
|
1
|
+
{"version":3,"file":"resource-lifecycle-error.js","sourceRoot":"","sources":["../../../../source/resources/resource-lifecycle-error.ts"],"names":[],"mappings":"AAaA,MAAM,OAAO,sBAAuB,SAAQ,KAAK;IAC5B,iBAAiB,CAAsC;IAExE,YACI,OAAe,EACf,OAAsC;QAEtC,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC;QACrC,IAAI,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAC9C,CAAC;IAEM,QAAQ;QACX,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;CACJ;AAED,MAAM,UAAU,sBAAsB,CAClC,OAAe,EACf,QAA6C,EAC7C,KAAc;IAEd,OAAO,IAAI,sBAAsB,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AACpE,CAAC;AAED,SAAS,qBAAqB,CAAC,MAAe,EAAE,oBAA4B;IACxE,IAAI,MAAM,YAAY,sBAAsB,EAAE,CAAC;QAC3C,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAED,OAAO,CAAE,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,oBAAoB,EAAE,CAAE,CAAC;AACvF,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC7B,OAAiD,EACjD,oBAA4B;IAE5B,MAAM,QAAQ,GAAG,IAAI,GAAG,EAA4B,CAAC;IAErD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC3B,IAAI,MAAM,CAAC,MAAM,KAAK,UAAU,EAAE,CAAC;YAC/B,KAAK,MAAM,OAAO,IAAI,qBAAqB,CAAC,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC,EAAE,CAAC;gBAC/E,QAAQ,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YAC1B,CAAC;QACL,CAAC;IACL,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -1,75 +1,7 @@
|
|
|
1
1
|
import { defaultScenarioBindings, scenarioBindingsForTiming } from "./resource-scenario.js";
|
|
2
2
|
const boundResourceScenarios = new WeakMap();
|
|
3
3
|
const sourceResourceDefinitions = new WeakMap();
|
|
4
|
-
|
|
5
|
-
return value === 'acquire' || value === 'request-routed';
|
|
6
|
-
}
|
|
7
|
-
function isScenarioValues(value) {
|
|
8
|
-
return Array.isArray(value) && value.length > 0 && value.every(function valueIsString(item) {
|
|
9
|
-
return typeof item === 'string';
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function isResourceScenarioSlot(value) {
|
|
13
|
-
if (typeof value !== 'object' || value === null) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
const defaultValue = Reflect.get(value, 'default');
|
|
17
|
-
const timing = Reflect.get(value, 'timing');
|
|
18
|
-
const values = Reflect.get(value, 'values');
|
|
19
|
-
return typeof defaultValue === 'string' && isScenarioTiming(timing) && isScenarioValues(values);
|
|
20
|
-
}
|
|
21
|
-
function isResourceDefinition(value) {
|
|
22
|
-
return typeof value === 'object' && value !== null &&
|
|
23
|
-
typeof Reflect.get(value, 'name') === 'string' &&
|
|
24
|
-
typeof Reflect.get(value, 'dependencies') === 'object' &&
|
|
25
|
-
typeof Reflect.get(value, 'scenarios') === 'object';
|
|
26
|
-
}
|
|
27
|
-
export function resourceScenarioOwners(resources) {
|
|
28
|
-
const owners = new Map();
|
|
29
|
-
const visited = new Set();
|
|
30
|
-
function recordScenario(resource, path, name, slot) {
|
|
31
|
-
const existing = owners.get(name);
|
|
32
|
-
if (existing !== undefined && existing.resource !== resource) {
|
|
33
|
-
throw new TypeError(`Scenario slot "${name}" is declared by multiple resources.`);
|
|
34
|
-
}
|
|
35
|
-
owners.set(name, { path, resource, slot });
|
|
36
|
-
}
|
|
37
|
-
function recordOwnedScenarios(resource, path) {
|
|
38
|
-
const scenarios = Reflect.get(resource, 'scenarios');
|
|
39
|
-
if (typeof scenarios !== 'object' || scenarios === null) {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
for (const [name, slot] of Object.entries(scenarios)) {
|
|
43
|
-
if (isResourceScenarioSlot(slot)) {
|
|
44
|
-
recordScenario(resource, path, name, slot);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function visitDependencies(resource, path, visitDependency) {
|
|
49
|
-
const dependencies = Reflect.get(resource, 'dependencies');
|
|
50
|
-
if (typeof dependencies !== 'object' || dependencies === null) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
for (const key of Object.keys(dependencies)) {
|
|
54
|
-
const property = Object.getOwnPropertyDescriptor(dependencies, key);
|
|
55
|
-
const dependency = property?.value;
|
|
56
|
-
if (isResourceDefinition(dependency)) {
|
|
57
|
-
visitDependency(dependency, [...path, key]);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function visit(resource, path) {
|
|
62
|
-
if (!visited.has(resource)) {
|
|
63
|
-
visited.add(resource);
|
|
64
|
-
recordOwnedScenarios(resource, path);
|
|
65
|
-
visitDependencies(resource, path, visit);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
for (const [key, resource] of Object.entries(resources)) {
|
|
69
|
-
visit(resource, [key]);
|
|
70
|
-
}
|
|
71
|
-
return owners;
|
|
72
|
-
}
|
|
4
|
+
|
|
73
5
|
export function sourceResourceDefinition(resource) {
|
|
74
6
|
return sourceResourceDefinitions.get(resource) ?? resource;
|
|
75
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-scenario-binding.js","sourceRoot":"","sources":["../../../../source/resources/resource-scenario-binding.ts"],"names":[],"mappings":"AACA,OAAO,EACH,uBAAuB,EACvB,yBAAyB,EAI5B,MAAM,wBAAwB,CAAC;AAuDhC,MAAM,sBAAsB,GAAG,IAAI,OAAO,EAA2D,CAAC;AACtG,MAAM,yBAAyB,GAAG,IAAI,OAAO,EAAgD,CAAC
|
|
1
|
+
{"version":3,"file":"resource-scenario-binding.js","sourceRoot":"","sources":["../../../../source/resources/resource-scenario-binding.ts"],"names":[],"mappings":"AACA,OAAO,EACH,uBAAuB,EACvB,yBAAyB,EAI5B,MAAM,wBAAwB,CAAC;AAuDhC,MAAM,sBAAsB,GAAG,IAAI,OAAO,EAA2D,CAAC;AACtG,MAAM,yBAAyB,GAAG,IAAI,OAAO,EAAgD,CAAC;;MA+BxF,gBAsB6B,kBAwBE,SAIU,EAAG,CAAC;IAMhC,gCAgBiB,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,qBAAqB,CACjC,QAA+B,EAC/B,QAA0C;IAE1C,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC;IAE7C,sBAAsB,CAAC,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC5C,yBAAyB,CAAC,GAAG,CAAC,KAAK,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEzE,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC5C,QAA+B;IAE/B,OAAO,sBAAsB,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,uBAAuB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;AAC/F,CAAC;AAED,MAAM,UAAU,mCAAmC,CAC/C,QAA+B;IAE/B,OAAO,yBAAyB,CAAC,QAAQ,CAAC,SAAS,EAAE,gCAAgC,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,CAAC;AAChH,CAAC;AAED,SAAS,qCAAqC,CAC1C,QAA+B;IAE/B,OAAO,yBAAyB,CAAC,QAAQ,CAAC,SAAS,EAAE,gCAAgC,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CAAC,CAAC;AACvH,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,QAA+B,EAAE,MAAe;IACjF,IAAI,QAAQ,CAAC,YAAY,KAAK,IAAI,EAAE,CAAC;QACjC,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,OAAO,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS,EAAE,CAAE,MAAM,EAAE;YAC7D,SAAS,EAAE,qCAAqC,CAAC,QAAQ,CAAC;SAC7D,CAAE,CAAC,CAAC;AACT,CAAC"}
|
|
@@ -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,yBAAyB,CAAC;AACjC,OAAO,EAEH,KAAK,oBAAoB,IAAI,8BAA8B,EAC3D,KAAK,YAAY,IAAI,sBAAsB,EAC3C,KAAK,gBAAgB,IAAI,0BAA0B,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,oBAAoB,IAAI,8BAA8B,EAC9D,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EACR,qBAAqB,IAAI,0BAA0B,EACnD,SAAS,IAAI,c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