@overkill-dev/resources 0.0.2 → 0.0.3
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/package.json +4 -1
- package/packages/resources/resources.entry-point.d.ts +4 -0
- package/packages/resources/resources.entry-point.d.ts.map +1 -1
- package/packages/resources/resources.entry-point.js +2 -0
- package/packages/resources/resources.entry-point.js.map +1 -1
- package/readme.md +12 -0
- package/resources/local-service-resource.d.ts +55 -0
- package/resources/local-service-resource.d.ts.map +1 -0
- package/resources/local-service-resource.js +66 -0
- package/resources/local-service-resource.js.map +1 -0
- package/resources/simulated-http-server-resource.d.ts +14 -0
- package/resources/simulated-http-server-resource.d.ts.map +1 -0
- package/resources/simulated-http-server-resource.js +26 -0
- package/resources/simulated-http-server-resource.js.map +1 -0
- package/sbom.cdx.json +25 -5
package/package.json
CHANGED
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
],
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"name": "@overkill-dev/resources",
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"@overkill-dev/simulation": "0.0.2"
|
|
26
|
+
},
|
|
24
27
|
"repository": {
|
|
25
28
|
"type": "git",
|
|
26
29
|
"url": "git+https://github.com/enormora/overkill.git"
|
|
@@ -29,5 +32,5 @@
|
|
|
29
32
|
"./packages/resources/resources.entry-point.js"
|
|
30
33
|
],
|
|
31
34
|
"type": "module",
|
|
32
|
-
"version": "0.0.
|
|
35
|
+
"version": "0.0.3"
|
|
33
36
|
}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { type ResourcesModule } from '../../resources/resources.ts';
|
|
2
|
+
export { defineLocalServiceResource } from '../../resources/local-service-resource.ts';
|
|
2
3
|
export declare const composeRuntimeContext: ResourcesModule['composeRuntimeContext'];
|
|
3
4
|
export declare const composeRuntimes: ResourcesModule['composeRuntimes'];
|
|
4
5
|
export declare const createTemporaryDirectoryResource: ResourcesModule['createTemporaryDirectoryResource'];
|
|
5
6
|
export declare const defineResource: ResourcesModule['defineResource'];
|
|
6
7
|
export declare const defineRuntime: ResourcesModule['defineRuntime'];
|
|
7
8
|
export declare const defineRuntimeMatrix: ResourcesModule['defineRuntimeMatrix'];
|
|
9
|
+
export { createSimulatedHttpServerResource } from '../../resources/simulated-http-server-resource.ts';
|
|
8
10
|
export { isDefinedResource, isDefinedRuntime, isDefinedRuntimeGraph, isDefinedRuntimeMatrix, runtimeGraphLeaves } from '../../resources/resources.ts';
|
|
9
11
|
export { assertPerCaseResourceGraph, assertResourceDependencyScopes } from '../../resources/resource-graph.ts';
|
|
10
12
|
export { startResources } from '../../resources/resource-session.ts';
|
|
11
13
|
export { ResourceLifecycleError } from '../../resources/resource-lifecycle-error.ts';
|
|
12
14
|
export { startRuntime } from '../../resources/runtime-lifecycle.ts';
|
|
13
15
|
export type { AnyResourceDefinition, ComposedRuntimeGraph, ExecutionRequirement, ResourceContext, ResourceCreationContext, ResourceDependencies, ResourceDefinition, ResourceDefinitionInput, ResourceDisposalContext, ResourceHandle, ResourceProjectionContext, ResourceProjectionPayload, ResourceScope, RuntimeContext, RuntimeContextComposition, RuntimeDefinition, RuntimeDefinitionInput, RuntimeDimensions, RuntimeGraph, RuntimeGraphLeaf, RuntimeGraphContext, RuntimeId, RuntimeMatrixDefinition, RuntimeMatrixDefinitionInput, RuntimeMatrixVariant, RuntimeMatrixVariantMap, RuntimeResourceMap, RuntimeScopeContext, SharedRuntimeMatrixDefinitionInput, TemporaryDirectoryHandle } from '../../resources/resources.ts';
|
|
16
|
+
export type { LocalServiceAddress, LocalServiceCreationContext, LocalServiceResourceDefinitionInput } from '../../resources/local-service-resource.ts';
|
|
17
|
+
export type { SimulatedHttpServerResource, SimulatedHttpServerResourceOptions } from '../../resources/simulated-http-server-resource.ts';
|
|
14
18
|
export type { RuntimeDefinition as Runtime, RuntimeResourceMap as ResourceMap } from '../../resources/resources.ts';
|
|
15
19
|
export type { ResourceLifecycleFailure, ResourceLifecyclePhase } from '../../resources/resource-lifecycle-error.ts';
|
|
16
20
|
export type { ResourceSession, ResourceSessionDisposalContext, StartResourcesRequest } from '../../resources/resource-session.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/resources/resources.entry-point.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"resources.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/resources/resources.entry-point.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAYvF,eAAO,MAAM,qBAAqB,EAAE,eAAe,CAAC,uBAAuB,CAAyC,CAAC;AACrH,eAAO,MAAM,eAAe,EAAE,eAAe,CAAC,iBAAiB,CAAmC,CAAC;AACnG,eAAO,MAAM,gCAAgC,EAAE,eAAe,CAAC,kCAAkC,CAC7C,CAAC;AACrD,eAAO,MAAM,cAAc,EAAE,eAAe,CAAC,gBAAgB,CAAkC,CAAC;AAChG,eAAO,MAAM,aAAa,EAAE,eAAe,CAAC,eAAe,CAAiC,CAAC;AAC7F,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,qBAAqB,CAAuC,CAAC;AAE/G,OAAO,EACH,iCAAiC,EACpC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACH,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACH,0BAA0B,EAC1B,8BAA8B,EACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,cAAc,EACjB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACH,sBAAsB,EACzB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACH,YAAY,EACf,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EACR,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,uBAAuB,EACvB,cAAc,EACd,yBAAyB,EACzB,yBAAyB,EACzB,aAAa,EACb,cAAc,EACd,yBAAyB,EACzB,iBAAiB,EACjB,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,EACT,uBAAuB,EACvB,4BAA4B,EAC5B,oBAAoB,EACpB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,kCAAkC,EAClC,wBAAwB,EAC3B,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACR,mBAAmB,EACnB,2BAA2B,EAC3B,mCAAmC,EACtC,MAAM,2CAA2C,CAAC;AACnD,YAAY,EACR,2BAA2B,EAC3B,kCAAkC,EACrC,MAAM,mDAAmD,CAAC;AAC3D,YAAY,EACR,iBAAiB,IAAI,OAAO,EAC5B,kBAAkB,IAAI,WAAW,EACpC,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACR,wBAAwB,EACxB,sBAAsB,EACzB,MAAM,6CAA6C,CAAC;AACrD,YAAY,EACR,eAAe,EACf,8BAA8B,EAC9B,qBAAqB,EACxB,MAAM,qCAAqC,CAAC;AAC7C,YAAY,EACR,cAAc,EACd,6BAA6B,EAC7B,mBAAmB,EACtB,MAAM,sCAAsC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { mkdtemp, rm } from 'node:fs/promises';
|
|
|
2
2
|
import { tmpdir } from 'node:os';
|
|
3
3
|
import { join } from 'node:path';
|
|
4
4
|
import { createResourcesModule } from "../../resources/resources.js";
|
|
5
|
+
export { defineLocalServiceResource } from "../../resources/local-service-resource.js";
|
|
5
6
|
const resourcesModule = createResourcesModule({
|
|
6
7
|
temporaryDirectoryPathPrefix: join(tmpdir(), 'overkill-temporary-directory-'),
|
|
7
8
|
async createTemporaryDirectory(pathPrefix) {
|
|
@@ -17,6 +18,7 @@ export const createTemporaryDirectoryResource = resourcesModule.createTemporaryD
|
|
|
17
18
|
export const defineResource = resourcesModule.defineResource;
|
|
18
19
|
export const defineRuntime = resourcesModule.defineRuntime;
|
|
19
20
|
export const defineRuntimeMatrix = resourcesModule.defineRuntimeMatrix;
|
|
21
|
+
export { createSimulatedHttpServerResource } from "../../resources/simulated-http-server-resource.js";
|
|
20
22
|
export { isDefinedResource, isDefinedRuntime, isDefinedRuntimeGraph, isDefinedRuntimeMatrix, runtimeGraphLeaves } from "../../resources/resources.js";
|
|
21
23
|
export { assertPerCaseResourceGraph, assertResourceDependencyScopes } from "../../resources/resource-graph.js";
|
|
22
24
|
export { startResources } from "../../resources/resource-session.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resources.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/resources/resources.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAwB,MAAM,8BAA8B,CAAC;AAE3F,MAAM,eAAe,GAAG,qBAAqB,CAAC;IAC1C,4BAA4B,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,+BAA+B,CAAC;IAC7E,KAAK,CAAC,wBAAwB,CAAC,UAAU;QACrC,OAAO,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IACD,KAAK,CAAC,eAAe,CAAC,IAAI;QACtB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAA6C,eAAe,CAAC,qBAAqB,CAAC;AACrH,MAAM,CAAC,MAAM,eAAe,GAAuC,eAAe,CAAC,eAAe,CAAC;AACnG,MAAM,CAAC,MAAM,gCAAgC,GACzC,eAAe,CAAC,gCAAgC,CAAC;AACrD,MAAM,CAAC,MAAM,cAAc,GAAsC,eAAe,CAAC,cAAc,CAAC;AAChG,MAAM,CAAC,MAAM,aAAa,GAAqC,eAAe,CAAC,aAAa,CAAC;AAC7F,MAAM,CAAC,MAAM,mBAAmB,GAA2C,eAAe,CAAC,mBAAmB,CAAC;AAE/G,OAAO,EACH,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACH,0BAA0B,EAC1B,8BAA8B,EACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,cAAc,EACjB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACH,sBAAsB,EACzB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACH,YAAY,EACf,MAAM,sCAAsC,CAAC"}
|
|
1
|
+
{"version":3,"file":"resources.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/resources/resources.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAwB,MAAM,8BAA8B,CAAC;AAE3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAEvF,MAAM,eAAe,GAAG,qBAAqB,CAAC;IAC1C,4BAA4B,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,+BAA+B,CAAC;IAC7E,KAAK,CAAC,wBAAwB,CAAC,UAAU;QACrC,OAAO,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IACD,KAAK,CAAC,eAAe,CAAC,IAAI;QACtB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACrD,CAAC;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qBAAqB,GAA6C,eAAe,CAAC,qBAAqB,CAAC;AACrH,MAAM,CAAC,MAAM,eAAe,GAAuC,eAAe,CAAC,eAAe,CAAC;AACnG,MAAM,CAAC,MAAM,gCAAgC,GACzC,eAAe,CAAC,gCAAgC,CAAC;AACrD,MAAM,CAAC,MAAM,cAAc,GAAsC,eAAe,CAAC,cAAc,CAAC;AAChG,MAAM,CAAC,MAAM,aAAa,GAAqC,eAAe,CAAC,aAAa,CAAC;AAC7F,MAAM,CAAC,MAAM,mBAAmB,GAA2C,eAAe,CAAC,mBAAmB,CAAC;AAE/G,OAAO,EACH,iCAAiC,EACpC,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACH,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACH,0BAA0B,EAC1B,8BAA8B,EACjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,cAAc,EACjB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACH,sBAAsB,EACzB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EACH,YAAY,EACf,MAAM,sCAAsC,CAAC"}
|
package/readme.md
CHANGED
|
@@ -104,6 +104,18 @@ Omitting `dependencies` is accepted for compatibility and produces
|
|
|
104
104
|
whose handle is `{ readonly path: string }`. Each acquisition creates a unique
|
|
105
105
|
directory with an Overkill prefix. Disposal removes that directory recursively.
|
|
106
106
|
|
|
107
|
+
`defineLocalServiceResource(...)` wraps `defineResource(...)` for owned local
|
|
108
|
+
services. Callers declare scope, requirements, startup, and disposal. Startup
|
|
109
|
+
receives an address request with default `host: '127.0.0.1'` and `port: 0`.
|
|
110
|
+
Credentials, connection strings, and protocol-specific data stay in the typed
|
|
111
|
+
service handle. Projected scopes use the same serialize and deserialize rules
|
|
112
|
+
as ordinary resources.
|
|
113
|
+
|
|
114
|
+
`createSimulatedHttpServerResource({ simulation })` starts a simulated HTTP
|
|
115
|
+
server from `@overkill-dev/simulation` as a per-case resource. The acquired
|
|
116
|
+
handle exposes `baseUrl` for the `default` scenario and `scenarioUrl(...)` for
|
|
117
|
+
URL-selected scenarios.
|
|
118
|
+
|
|
107
119
|
`startRuntime(...)` acquires dependencies before dependents, shares one handle
|
|
108
120
|
per descriptor inside the session, and disposes acquired resources once in
|
|
109
121
|
reverse dependency order. Independent ready resources may acquire concurrently.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { type Awaitable, type EmptyResourceDependencies, type ExecutionRequirement, type ResourceContext, type ResourceDefinition, type ResourceDependencies, type ResourceDisposalContext, type ResourceProjectionContext, type ResourceProjectionPayload, type ResourceScope } from './resources.ts';
|
|
2
|
+
import type { ValueOf } from './resource-definition-shape.ts';
|
|
3
|
+
export type LocalServiceAddress = {
|
|
4
|
+
readonly host: string;
|
|
5
|
+
readonly port: number;
|
|
6
|
+
};
|
|
7
|
+
export type LocalServiceCreationContext<Dependencies extends ResourceDependencies = EmptyResourceDependencies> = {
|
|
8
|
+
readonly address: LocalServiceAddress;
|
|
9
|
+
readonly dependencies: ResourceContext<Dependencies>;
|
|
10
|
+
readonly signal: AbortSignal;
|
|
11
|
+
};
|
|
12
|
+
type ProjectedLocalServiceScope = 'per-file' | 'per-run' | 'per-suite';
|
|
13
|
+
type ProjectedBase<Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedLocalServiceScope, Dependencies extends ResourceDependencies> = ProjectedLocalServiceResourceDefinitionInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies>;
|
|
14
|
+
type ProjectedServiceWithDependencies<Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedLocalServiceScope, Dependencies extends ResourceDependencies> = {
|
|
15
|
+
readonly dependencies: Dependencies;
|
|
16
|
+
readonly deserializeHandle: ProjectedBase<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies>['deserializeHandle'];
|
|
17
|
+
readonly dispose: ProjectedBase<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies>['dispose'];
|
|
18
|
+
readonly host?: string;
|
|
19
|
+
readonly name: Name;
|
|
20
|
+
readonly port?: number;
|
|
21
|
+
readonly requirements: readonly ExecutionRequirement[];
|
|
22
|
+
readonly scope: Scope;
|
|
23
|
+
readonly serializeHandle: ProjectedBase<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies>['serializeHandle'];
|
|
24
|
+
readonly start: ProjectedBase<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies>['start'];
|
|
25
|
+
};
|
|
26
|
+
type LocalServiceResourceDefinitionBaseInput<Name extends string, Handle, Scope extends ResourceScope, Dependencies extends ResourceDependencies = EmptyResourceDependencies> = {
|
|
27
|
+
readonly dependencies?: Dependencies;
|
|
28
|
+
readonly dispose: (handle: Handle, context: ResourceDisposalContext<Dependencies>) => Awaitable<void>;
|
|
29
|
+
readonly host?: string;
|
|
30
|
+
readonly name: Name;
|
|
31
|
+
readonly port?: number;
|
|
32
|
+
readonly requirements: readonly ExecutionRequirement[];
|
|
33
|
+
readonly scope: Scope;
|
|
34
|
+
readonly start: (context: LocalServiceCreationContext<Dependencies>) => Awaitable<Handle>;
|
|
35
|
+
};
|
|
36
|
+
type LocalOnlyLocalServiceResourceDefinitionInput<Name extends string, Handle, Scope extends ResourceScope, Dependencies extends ResourceDependencies = EmptyResourceDependencies> = LocalServiceResourceDefinitionBaseInput<Name, Handle, Scope, Dependencies> & {
|
|
37
|
+
readonly deserializeHandle?: never;
|
|
38
|
+
readonly serializeHandle?: never;
|
|
39
|
+
};
|
|
40
|
+
type ProjectedLocalServiceResourceDefinitionInput<Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedLocalServiceScope, Dependencies extends ResourceDependencies = EmptyResourceDependencies> = LocalServiceResourceDefinitionBaseInput<Name, OwnerHandle, Scope, Dependencies> & {
|
|
41
|
+
readonly deserializeHandle: (payload: Projection, context: ResourceProjectionContext<Dependencies>) => ConsumerHandle;
|
|
42
|
+
readonly serializeHandle: (handle: OwnerHandle, context: ResourceProjectionContext<Dependencies>) => Projection;
|
|
43
|
+
};
|
|
44
|
+
export type LocalServiceResourceDefinitionInput<Name extends string, Handle, Dependencies extends ResourceDependencies = EmptyResourceDependencies, Projection extends ResourceProjectionPayload = ResourceProjectionPayload, ConsumerHandle = Handle> = ValueOf<{
|
|
45
|
+
readonly local: LocalOnlyLocalServiceResourceDefinitionInput<Name, Handle, Exclude<ResourceScope, 'per-run'>, Dependencies>;
|
|
46
|
+
readonly projected: ProjectedLocalServiceResourceDefinitionInput<Name, Handle, Projection, ConsumerHandle, ProjectedLocalServiceScope, Dependencies>;
|
|
47
|
+
}>;
|
|
48
|
+
export declare function defineLocalServiceResource<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>>(definition: LocalOnlyLocalServiceResourceDefinitionInput<Name, Handle, Scope>): ResourceDefinition<Name, Handle, EmptyResourceDependencies>;
|
|
49
|
+
export declare function defineLocalServiceResource<const Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedLocalServiceScope>(definition: ProjectedLocalServiceResourceDefinitionInput<Name, OwnerHandle, Projection, ConsumerHandle, Scope>): ResourceDefinition<Name, OwnerHandle, EmptyResourceDependencies, ConsumerHandle>;
|
|
50
|
+
export declare function defineLocalServiceResource<const Name extends string, Handle, Scope extends Exclude<ResourceScope, 'per-run'>, const Dependencies extends ResourceDependencies>(definition: LocalOnlyLocalServiceResourceDefinitionInput<Name, Handle, Scope, Dependencies> & {
|
|
51
|
+
readonly dependencies: Dependencies;
|
|
52
|
+
}): ResourceDefinition<Name, Handle, Dependencies>;
|
|
53
|
+
export declare function defineLocalServiceResource<const Name extends string, OwnerHandle, Projection extends ResourceProjectionPayload, ConsumerHandle, Scope extends ProjectedLocalServiceScope, const Dependencies extends ResourceDependencies>(definition: ProjectedServiceWithDependencies<Name, OwnerHandle, Projection, ConsumerHandle, Scope, Dependencies>): ResourceDefinition<Name, OwnerHandle, Dependencies, ConsumerHandle>;
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=local-service-resource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-service-resource.d.ts","sourceRoot":"","sources":["../../../../source/resources/local-service-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,SAAS,EACd,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,EAEzB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE9D,MAAM,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,2BAA2B,CAAC,YAAY,SAAS,oBAAoB,GAAG,yBAAyB,IAAI;IAC7G,QAAQ,CAAC,OAAO,EAAE,mBAAmB,CAAC;IACtC,QAAQ,CAAC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAC,CAAC;IACrD,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;CAChC,CAAC;AAQF,KAAK,0BAA0B,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;AACvE,KAAK,aAAa,CACd,IAA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E,cAAc,CAAC,CAAC;AACpF,wBAAgB,0BAA0B,CACtC,KAAK,CAAC,IAAI,SAAS,MAAM,EACzB,MAAM,EACN,KAAK,SAAS,OAAO,CAAC,aAAa,EAAE,SAAS,CAAC,EAC/C,KAAK,CAAC,YAAY,SAAS,oBAAoB,EAE/C,UAAU,EAAE,4CAA4C,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,CAAC,GAAG;IAC1F,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;CACvC,GACF,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;AAClD,wBAAgB,0BAA0B,CACtC,KAAK,CAAC,IAAI,SAAS,MAAM,EACzB,WAAW,EACX,UAAU,SAAS,yBAAyB,EAC5C,cAAc,EACd,KAAK,SAAS,0BAA0B,EACxC,KAAK,CAAC,YAAY,SAAS,oBAAoB,EAE/C,UAAU,EAAE,gCAAgC,CACxC,IAAI,EACJ,WAAW,EACX,UAAU,EACV,cAAc,EACd,KAAK,EACL,YAAY,CACf,GACF,kBAAkB,CAAC,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { defineResource } from "./resources.js";
|
|
2
|
+
function localServiceAddress(host, port) {
|
|
3
|
+
return Object.freeze({
|
|
4
|
+
host: host ?? '127.0.0.1',
|
|
5
|
+
port: port ?? 0
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
function localServiceAcquire(definition, address) {
|
|
9
|
+
return async function startLocalService(context) {
|
|
10
|
+
return definition.start(Object.freeze({
|
|
11
|
+
...context,
|
|
12
|
+
address
|
|
13
|
+
}));
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function hasDependencies(definition) {
|
|
17
|
+
return definition.dependencies !== undefined;
|
|
18
|
+
}
|
|
19
|
+
function isProjectedLocalService(definition) {
|
|
20
|
+
return Object.hasOwn(definition, 'serializeHandle') && Object.hasOwn(definition, 'deserializeHandle');
|
|
21
|
+
}
|
|
22
|
+
export function defineLocalServiceResource(definition) {
|
|
23
|
+
const address = localServiceAddress(definition.host, definition.port);
|
|
24
|
+
const acquire = localServiceAcquire(definition, address);
|
|
25
|
+
if (isProjectedLocalService(definition)) {
|
|
26
|
+
if (hasDependencies(definition)) {
|
|
27
|
+
return defineResource({
|
|
28
|
+
name: definition.name,
|
|
29
|
+
scope: definition.scope,
|
|
30
|
+
requirements: definition.requirements,
|
|
31
|
+
acquire,
|
|
32
|
+
dispose: definition.dispose,
|
|
33
|
+
dependencies: definition.dependencies,
|
|
34
|
+
serializeHandle: definition.serializeHandle,
|
|
35
|
+
deserializeHandle: definition.deserializeHandle
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
return defineResource({
|
|
39
|
+
name: definition.name,
|
|
40
|
+
scope: definition.scope,
|
|
41
|
+
requirements: definition.requirements,
|
|
42
|
+
acquire,
|
|
43
|
+
dispose: definition.dispose,
|
|
44
|
+
serializeHandle: definition.serializeHandle,
|
|
45
|
+
deserializeHandle: definition.deserializeHandle
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (hasDependencies(definition)) {
|
|
49
|
+
return defineResource({
|
|
50
|
+
name: definition.name,
|
|
51
|
+
scope: definition.scope,
|
|
52
|
+
requirements: definition.requirements,
|
|
53
|
+
acquire,
|
|
54
|
+
dispose: definition.dispose,
|
|
55
|
+
dependencies: definition.dependencies
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
return defineResource({
|
|
59
|
+
name: definition.name,
|
|
60
|
+
scope: definition.scope,
|
|
61
|
+
requirements: definition.requirements,
|
|
62
|
+
acquire,
|
|
63
|
+
dispose: definition.dispose
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=local-service-resource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-service-resource.js","sourceRoot":"","sources":["../../../../source/resources/local-service-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UAAU,CAAC,OAAO;gBAC3B,YAAY,EAAE,UAAU,CAAC,YAAY;gBACrC,eAAe,EAAE,UAAU,CAAC,eAAe;gBAC3C,iBAAiB,EAAE,UAAU,CAAC,iBAAiB;aAClD,CAAC,CAAC;QACP,CAAC;QAED,OAAO,cAAc,CAAC;YAClB,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,YAAY,EAAE,UAAU,CAAC,YAAY;YACrC,OAAO;YACP,OAAO,EAAE,UAAU,CAAC,OAAO;YAC3B,eAAe,EAAE,UAAU,CAAC,eAAe;YAC3C,iBAAiB,EAAE,UAAU,CAAC,iBAAiB;SAClD,CAAC,CAAC;IACP,CAAC;IAED,IAAI,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9B,OAAO,cAAc,CAAC;YAClB,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,YAAY,EAAE,UAAU,CAAC,YAAY;YACrC,OAAO;YACP,OAAO,EAAE,UAAU,CAAC,OAAO;YAC3B,YAAY,EAAE,UAAU,CAAC,YAAY;SACxC,CAAC,CAAC;IACP,CAAC;IAED,OAAO,cAAc,CAAC;QAClB,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,KAAK,EAAE,UAAU,CAAC,KAAK;QACvB,YAAY,EAAE,UAAU,CAAC,YAAY;QACrC,OAAO;QACP,OAAO,EAAE,UAAU,CAAC,OAAO;KAC9B,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type SimulatedHttpServerHandle } from '@overkill-dev/simulation/http';
|
|
2
|
+
import type { SimulatedHttpServerDefinition, SimulationScenarioCatalog } from '@overkill-dev/simulation';
|
|
3
|
+
import type { EmptyResourceDependencies, ResourceDefinition } from './resources.ts';
|
|
4
|
+
export type SimulatedHttpServerResourceOptions<Name extends string, Scenarios extends SimulationScenarioCatalog> = {
|
|
5
|
+
readonly host?: string;
|
|
6
|
+
readonly port?: number;
|
|
7
|
+
readonly simulation: SimulatedHttpServerDefinition<Name, Scenarios>;
|
|
8
|
+
};
|
|
9
|
+
export type SimulatedHttpServerResource<Simulation extends {
|
|
10
|
+
readonly name: string;
|
|
11
|
+
readonly scenarios: SimulationScenarioCatalog;
|
|
12
|
+
}> = ResourceDefinition<Simulation['name'], SimulatedHttpServerHandle<Simulation>, EmptyResourceDependencies>;
|
|
13
|
+
export declare function createSimulatedHttpServerResource<const Name extends string, const Scenarios extends SimulationScenarioCatalog>(options: SimulatedHttpServerResourceOptions<Name, Scenarios>): SimulatedHttpServerResource<SimulatedHttpServerDefinition<Name, Scenarios>>;
|
|
14
|
+
//# sourceMappingURL=simulated-http-server-resource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulated-http-server-resource.d.ts","sourceRoot":"","sources":["../../../../source/resources/simulated-http-server-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,yBAAyB,EACjC,MAAM,+BAAwC,CAAC;AAChD,OAAO,KAAK,EACR,6BAA6B,EAC7B,yBAAyB,EAC5B,MAAM,0BAA6B,CAAC;AACrC,OAAO,KAAK,EACR,yBAAyB,EACzB,kBAAkB,EACrB,MAAM,gBAAgB,CAAC;AAGxB,MAAM,MAAM,kCAAkC,CAC1C,IAAI,SAAS,MAAM,EACnB,SAAS,SAAS,yBAAyB,IAC3C;IACA,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,6BAA6B,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;CACvE,CAAC;AAEF,MAAM,MAAM,2BAA2B,CACnC,UAAU,SAAS;IACf,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,SAAS,EAAE,yBAAyB,CAAC;CACjD,IACD,kBAAkB,CAClB,UAAU,CAAC,MAAM,CAAC,EAClB,yBAAyB,CAAC,UAAU,CAAC,EACrC,yBAAyB,CAC5B,CAAC;AAEF,wBAAgB,iCAAiC,CAC7C,KAAK,CAAC,IAAI,SAAS,MAAM,EACzB,KAAK,CAAC,SAAS,SAAS,yBAAyB,EAEjD,OAAO,EAAE,kCAAkC,CAAC,IAAI,EAAE,SAAS,CAAC,GAC7D,2BAA2B,CAAC,6BAA6B,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAwB7E"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { startSimulatedHttpServer } from "@overkill-dev/simulation/http";
|
|
2
|
+
import { defineLocalServiceResource } from "./local-service-resource.js";
|
|
3
|
+
export function createSimulatedHttpServerResource(options) {
|
|
4
|
+
const addressOptions = {
|
|
5
|
+
...options.host === undefined ? {} : { host: options.host },
|
|
6
|
+
...options.port === undefined ? {} : { port: options.port }
|
|
7
|
+
};
|
|
8
|
+
return defineLocalServiceResource({
|
|
9
|
+
name: options.simulation.name,
|
|
10
|
+
scope: 'per-case',
|
|
11
|
+
requirements: [],
|
|
12
|
+
...addressOptions,
|
|
13
|
+
async start(context) {
|
|
14
|
+
context.signal.throwIfAborted();
|
|
15
|
+
return await startSimulatedHttpServer({
|
|
16
|
+
simulation: options.simulation,
|
|
17
|
+
host: context.address.host,
|
|
18
|
+
port: context.address.port
|
|
19
|
+
});
|
|
20
|
+
},
|
|
21
|
+
async dispose(handle) {
|
|
22
|
+
await handle.dispose();
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=simulated-http-server-resource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulated-http-server-resource.js","sourceRoot":"","sources":["../../../../source/resources/simulated-http-server-resource.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,wBAAwB,EAE3B,MAAM,+BAAwC,CAAC;AAShD,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AAsBzE,MAAM,UAAU,iCAAiC,CAI7C,OAA4D;IAE5D,MAAM,cAAc,GAAG;QACnB,GAAG,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE;QAC3D,GAAG,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE;KAC9D,CAAC;IAEF,OAAO,0BAA0B,CAAC;QAC9B,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,IAAI;QAC7B,KAAK,EAAE,UAAU;QACjB,YAAY,EAAE,EAAE;QAChB,GAAG,cAAc;QACjB,KAAK,CAAC,KAAK,CAAC,OAAO;YACf,OAAO,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;YAEhC,OAAO,MAAM,wBAAwB,CAAC;gBAClC,UAAU,EAAE,OAAO,CAAC,UAAU;gBAC9B,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI;gBAC1B,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI;aAC7B,CAAC,CAAC;QACP,CAAC;QACD,KAAK,CAAC,OAAO,CAAC,MAAM;YAChB,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;KACJ,CAAC,CAAC;AACP,CAAC"}
|
package/sbom.cdx.json
CHANGED
|
@@ -16,15 +16,35 @@
|
|
|
16
16
|
"component": {
|
|
17
17
|
"type": "library",
|
|
18
18
|
"name": "@overkill-dev/resources",
|
|
19
|
-
"version": "0.0.
|
|
20
|
-
"bom-ref": "pkg:npm/@overkill-dev/resources@0.0.
|
|
21
|
-
"purl": "pkg:npm/@overkill-dev/resources@0.0.
|
|
19
|
+
"version": "0.0.3",
|
|
20
|
+
"bom-ref": "pkg:npm/@overkill-dev/resources@0.0.3",
|
|
21
|
+
"purl": "pkg:npm/@overkill-dev/resources@0.0.3"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
"components": [
|
|
24
|
+
"components": [
|
|
25
|
+
{
|
|
26
|
+
"type": "library",
|
|
27
|
+
"name": "@overkill-dev/simulation",
|
|
28
|
+
"version": "0.0.2",
|
|
29
|
+
"bom-ref": "pkg:npm/@overkill-dev/simulation@0.0.2",
|
|
30
|
+
"scope": "optional",
|
|
31
|
+
"licenses": [
|
|
32
|
+
{
|
|
33
|
+
"expression": "MIT"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"purl": "pkg:npm/@overkill-dev/simulation@0.0.2"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
25
39
|
"dependencies": [
|
|
26
40
|
{
|
|
27
|
-
"ref": "pkg:npm/@overkill-dev/resources@0.0.
|
|
41
|
+
"ref": "pkg:npm/@overkill-dev/resources@0.0.3",
|
|
42
|
+
"dependsOn": [
|
|
43
|
+
"pkg:npm/@overkill-dev/simulation@0.0.2"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"ref": "pkg:npm/@overkill-dev/simulation@0.0.2"
|
|
28
48
|
}
|
|
29
49
|
]
|
|
30
50
|
}
|