better-effect 0.9.2 → 0.9.31

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.
@@ -1,7 +1,96 @@
1
1
  import { A as ProgramFromGenerator, C as EffectError, D as EffectYield, E as EffectSuccess, M as AnyService, S as Effect$1, T as EffectRequirements, f as DisposableResource, h as ScopeOutcome, k as Program$1, p as MaybePromise$1, w as EffectFromGenerator, x as AnyEffect } from "./index-1NLNdkJy.mjs";
2
- import { C as ProvidedEnvironment, _ as Layer, a as RuntimeShutdownDiagnostic, b as CompleteInput, i as RuntimeRunOptions, n as RuntimeDisposeOptions, r as RuntimeOptions, v as CompleteExecution, x as LayerInput, y as CompleteExecutionLayer } from "./index-CYAgpM_5.mjs";
2
+ import { S as LayerInput, _ as Layer, a as RuntimeShutdownDiagnostic, b as CompleteInput, i as RuntimeRunOptions, n as RuntimeDisposeOptions, r as RuntimeOptions, v as CompleteExecution, w as ProvidedEnvironment, y as CompleteExecutionLayer } from "./index-EJlskfAW.mjs";
3
3
  import { n as LayerBackend } from "./map-layer-backend-DMJauecV.mjs";
4
4
  import { Err, Result, UnhandledException } from "better-result";
5
+ //#region src/runtime/types.d.ts
6
+ /**
7
+ * Name a Runtime type from a concrete Layer without repeating its provided
8
+ * branded Service instance union.
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * type AppRuntime = RuntimeFor<typeof AppLive>
13
+ * ```
14
+ */
15
+ type RuntimeFor<L extends LayerInput> = Runtime<Layer.Provided<L>>;
16
+ //#endregion
17
+ //#region src/runtime/runtime.d.ts
18
+ /**
19
+ * Long-lived execution environment backed by a complete Layer.
20
+ *
21
+ * A Runtime owns Layer resources until `dispose()` is called. Each `run()` is
22
+ * isolated in a child Scope, while Layer-scoped resources remain shared.
23
+ *
24
+ * @example
25
+ * ```ts
26
+ * const runtime = await Runtime.make(AppLive)
27
+ * const result = await runtime.run(loadUser('u1'))
28
+ * await runtime.dispose()
29
+ * ```
30
+ *
31
+ * @typeParam Provided The branded Service instances supplied by the Layer.
32
+ */
33
+ declare class Runtime<Provided extends AnyService = any> {
34
+ private readonly handle;
35
+ private constructor();
36
+ /**
37
+ * Create a long-lived Runtime that owns its Layer resources.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const runtime = await Runtime.make(AppLive)
42
+ * const result = await runtime.run(program)
43
+ * await runtime.dispose()
44
+ * ```
45
+ */
46
+ static make<L extends LayerInput>(layer: L & CompleteInput<L>, backend: LayerBackend, options?: RuntimeOptions): Promise<Runtime<ProvidedEnvironment<L>>>;
47
+ static make<L extends LayerInput>(layer: L & CompleteInput<L>, options?: RuntimeOptions): Promise<Runtime<ProvidedEnvironment<L>>>;
48
+ /**
49
+ * Run one program and dispose its Layer resources before resolving.
50
+ *
51
+ * This is convenient for request-style or command-style execution where a
52
+ * Runtime should not outlive the operation.
53
+ */
54
+ static run<A, L extends LayerInput>(layer: L & CompleteInput<L>, backend: LayerBackend, program: CompleteExecution<ProvidedEnvironment<L>, A>, options?: RuntimeOptions): Promise<Awaited<A>>;
55
+ static run<A, L extends LayerInput>(layer: L & CompleteInput<L>, program: CompleteExecution<ProvidedEnvironment<L>, A>, options?: RuntimeOptions): Promise<Awaited<A>>;
56
+ static run<A, L extends LayerInput>(layer: L & CompleteInput<L>, options: RuntimeOptions, program: CompleteExecution<ProvidedEnvironment<L>, A>): Promise<Awaited<A>>;
57
+ /** Run a callback with a managed Runtime and always dispose it afterward. */
58
+ static use<A, L extends LayerInput>(layer: L & CompleteInput<L>, use: (runtime: Runtime<ProvidedEnvironment<L>>) => A | PromiseLike<A>, options?: RuntimeOptions): Promise<Awaited<A>>;
59
+ /** Resolve every Layer provider and dispose the Runtime if warmup fails. */
60
+ warmup(): Promise<void>;
61
+ /** Run one execution in this Runtime's child Scope. */
62
+ run<A>(program: CompleteExecution<Provided, A>, options?: RuntimeRunOptions): Promise<Awaited<A>>;
63
+ /** Run one execution with a Layer owned by that execution's child Scope. */
64
+ runWith<Request extends LayerInput, A>(layer: Request & CompleteExecutionLayer<Provided, Request>, program: CompleteExecution<Provided | ProvidedEnvironment<Request>, A>, options?: RuntimeRunOptions): Promise<Awaited<A>>;
65
+ private runUnchecked;
66
+ /** Stop new executions and release the Runtime's Layer resources. */
67
+ dispose(options?: RuntimeDisposeOptions): Promise<void>;
68
+ /** @deprecated Scope outcomes are kept for internal compatibility. */
69
+ dispose(outcome: ScopeOutcome): Promise<void>;
70
+ /** Release Runtime-owned resources through JavaScript's async disposal protocol. */
71
+ [Symbol.asyncDispose](): Promise<void>;
72
+ private disposeWithOutcome;
73
+ }
74
+ /** Type-level aliases for naming Runtime handles and shutdown options. */
75
+ declare namespace Runtime {
76
+ /** Name a Runtime type from a concrete Layer. */
77
+ type For<L extends LayerInput> = RuntimeFor<L>;
78
+ /** Optional Runtime shutdown configuration. */
79
+ type Options = RuntimeOptions;
80
+ /** Optional signal supplied to one managed Runtime execution. */
81
+ type RunOptions = RuntimeRunOptions;
82
+ /** Cooperative shutdown policy for a managed Runtime. */
83
+ type DisposeOptions = RuntimeDisposeOptions;
84
+ /** Diagnostic reported for aggregated Runtime shutdown cleanup failures. */
85
+ type ShutdownDiagnostic = RuntimeShutdownDiagnostic;
86
+ }
87
+ //#endregion
88
+ //#region src/runtime/signal.d.ts
89
+ /** Yieldable access to the signal of the current Runtime execution. */
90
+ declare const CurrentAbortSignal: {
91
+ readonly [Symbol.iterator]: () => Generator<never, AbortSignal, unknown>;
92
+ };
93
+ //#endregion
5
94
  //#region src/effect/combinators.d.ts
6
95
  type EffectInput<A, E> = Result<A, E> | PromiseLike<Result<A, E>>;
7
96
  type AnyEffectInput = EffectInput<any, any>;
@@ -313,94 +402,5 @@ declare const Resource: {
313
402
  readonly acquireUseRelease: <R, A, AcquireError, UseError>({ name, acquire, use, release, onReleaseFailure }: AcquireUseReleaseOptions<R, A, AcquireError, UseError>) => Promise<Result<A, AcquireError | UseError | UnhandledException | ResourceReleaseFailure>>;
314
403
  };
315
404
  //#endregion
316
- //#region src/runtime/types.d.ts
317
- /**
318
- * Name a Runtime type from a concrete Layer without repeating its provided
319
- * branded Service instance union.
320
- *
321
- * @example
322
- * ```ts
323
- * type AppRuntime = RuntimeFor<typeof AppLive>
324
- * ```
325
- */
326
- type RuntimeFor<L extends LayerInput> = Runtime<Layer.Provided<L>>;
327
- //#endregion
328
- //#region src/runtime/runtime.d.ts
329
- /**
330
- * Long-lived execution environment backed by a complete Layer.
331
- *
332
- * A Runtime owns Layer resources until `dispose()` is called. Each `run()` is
333
- * isolated in a child Scope, while Layer-scoped resources remain shared.
334
- *
335
- * @example
336
- * ```ts
337
- * const runtime = await Runtime.make(AppLive)
338
- * const result = await runtime.run(loadUser('u1'))
339
- * await runtime.dispose()
340
- * ```
341
- *
342
- * @typeParam Provided The branded Service instances supplied by the Layer.
343
- */
344
- declare class Runtime<Provided extends AnyService = any> {
345
- private readonly handle;
346
- private constructor();
347
- /**
348
- * Create a long-lived Runtime that owns its Layer resources.
349
- *
350
- * @example
351
- * ```ts
352
- * const runtime = await Runtime.make(AppLive)
353
- * const result = await runtime.run(program)
354
- * await runtime.dispose()
355
- * ```
356
- */
357
- static make<L extends LayerInput>(layer: L & CompleteInput<L>, backend: LayerBackend, options?: RuntimeOptions): Promise<Runtime<ProvidedEnvironment<L>>>;
358
- static make<L extends LayerInput>(layer: L & CompleteInput<L>, options?: RuntimeOptions): Promise<Runtime<ProvidedEnvironment<L>>>;
359
- /**
360
- * Run one program and dispose its Layer resources before resolving.
361
- *
362
- * This is convenient for request-style or command-style execution where a
363
- * Runtime should not outlive the operation.
364
- */
365
- static run<A, L extends LayerInput>(layer: L & CompleteInput<L>, backend: LayerBackend, program: CompleteExecution<ProvidedEnvironment<L>, A>, options?: RuntimeOptions): Promise<Awaited<A>>;
366
- static run<A, L extends LayerInput>(layer: L & CompleteInput<L>, program: CompleteExecution<ProvidedEnvironment<L>, A>, options?: RuntimeOptions): Promise<Awaited<A>>;
367
- static run<A, L extends LayerInput>(layer: L & CompleteInput<L>, options: RuntimeOptions, program: CompleteExecution<ProvidedEnvironment<L>, A>): Promise<Awaited<A>>;
368
- /** Run a callback with a managed Runtime and always dispose it afterward. */
369
- static use<A, L extends LayerInput>(layer: L & CompleteInput<L>, use: (runtime: Runtime<ProvidedEnvironment<L>>) => A | PromiseLike<A>, options?: RuntimeOptions): Promise<Awaited<A>>;
370
- /** Resolve every Layer provider and dispose the Runtime if warmup fails. */
371
- warmup(): Promise<void>;
372
- /** Run one execution in this Runtime's child Scope. */
373
- run<A>(program: CompleteExecution<Provided, A>, options?: RuntimeRunOptions): Promise<Awaited<A>>;
374
- /** Run one execution with a Layer owned by that execution's child Scope. */
375
- runWith<Request extends LayerInput, A>(layer: Request & CompleteExecutionLayer<Provided, Request>, program: CompleteExecution<Provided | ProvidedEnvironment<Request>, A>, options?: RuntimeRunOptions): Promise<Awaited<A>>;
376
- private runUnchecked;
377
- /** Stop new executions and release the Runtime's Layer resources. */
378
- dispose(options?: RuntimeDisposeOptions): Promise<void>;
379
- /** @deprecated Scope outcomes are kept for internal compatibility. */
380
- dispose(outcome: ScopeOutcome): Promise<void>;
381
- /** Release Runtime-owned resources through JavaScript's async disposal protocol. */
382
- [Symbol.asyncDispose](): Promise<void>;
383
- private disposeWithOutcome;
384
- }
385
- /** Type-level aliases for naming Runtime handles and shutdown options. */
386
- declare namespace Runtime {
387
- /** Name a Runtime type from a concrete Layer. */
388
- type For<L extends LayerInput> = RuntimeFor<L>;
389
- /** Optional Runtime shutdown configuration. */
390
- type Options = RuntimeOptions;
391
- /** Optional signal supplied to one managed Runtime execution. */
392
- type RunOptions = RuntimeRunOptions;
393
- /** Cooperative shutdown policy for a managed Runtime. */
394
- type DisposeOptions = RuntimeDisposeOptions;
395
- /** Diagnostic reported for aggregated Runtime shutdown cleanup failures. */
396
- type ShutdownDiagnostic = RuntimeShutdownDiagnostic;
397
- }
398
- //#endregion
399
- //#region src/runtime/signal.d.ts
400
- /** Yieldable access to the signal of the current Runtime execution. */
401
- declare const CurrentAbortSignal: {
402
- readonly [Symbol.iterator]: () => Generator<never, AbortSignal, unknown>;
403
- };
404
- //#endregion
405
- export { AcquireUseReleaseOptions as a, ReleaseOutcome as c, Effect as d, Program as f, Resource as i, ResourceReleaseFailure as l, Runtime as n, AsyncResult as o, ProgramAllOptions as p, RuntimeFor as r, ReleaseFailureObserver as s, CurrentAbortSignal as t, pipe as u };
406
- //# sourceMappingURL=index-BJFBEsm5.d.mts.map
405
+ export { ReleaseOutcome as a, Effect as c, CurrentAbortSignal as d, Runtime as f, ReleaseFailureObserver as i, Program as l, AcquireUseReleaseOptions as n, ResourceReleaseFailure as o, RuntimeFor as p, AsyncResult as r, pipe as s, Resource as t, ProgramAllOptions as u };
406
+ //# sourceMappingURL=index-BsPr7qHf.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BsPr7qHf.d.mts","names":[],"sources":["../src/runtime/types.ts","../src/runtime/runtime.ts","../src/runtime/signal.ts","../src/effect/combinators.ts","../src/effect/effect.ts","../src/function/pipe.ts","../src/resource/errors.ts","../src/resource/types.ts","../src/resource/resource.ts"],"mappings":";;;;;;;;;;;;;;KAcY,WAAW,UAAU,cAAc,QAAQ,MAAM,SAAS;;;;;;;;;;;;;;;;;;cC2DzD,QAAQ,iBAAiB;mBACC;UAA9B;;;;;;;;;;;SAYA,KAAK,UAAU,YACpB,OAAO,IAAI,cAAc,IACzB,SAAS,cACT,UAAU,iBACT,QAAQ,QAAQ,oBAAoB;SAEhC,KAAK,UAAU,YACpB,OAAO,IAAI,cAAc,IACzB,UAAU,iBACT,QAAQ,QAAQ,oBAAoB;;;;;;;SAwBhC,IAAI,GAAG,UAAU,YACtB,OAAO,IAAI,cAAc,IACzB,SAAS,cACT,SAAS,kBAAkB,oBAAoB,IAAI,IACnD,UAAU,iBACT,QAAQ,QAAQ;SAEZ,IAAI,GAAG,UAAU,YACtB,OAAO,IAAI,cAAc,IACzB,SAAS,kBAAkB,oBAAoB,IAAI,IACnD,UAAU,iBACT,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,YAAQ,MAAA,SAAA,KAAA,SAAA,oBAMpD,yBAAyB,GAAG,GAAG,cAAc,cAAY,QAC1D,OAAW,GAAG,eAAe,WAAW,qBAAqB"}
@@ -0,0 +1,182 @@
1
+ import { H as ServiceToken, I as ServiceIdentity, b as Service, j as ServiceRequirement } from "./index-1NLNdkJy.mjs";
2
+ import { C as LayerResult, T as ProviderEntry } from "./index-EJlskfAW.mjs";
3
+ import "./index-BsPr7qHf.mjs";
4
+ import { Err, StandardSchemaV1, UnhandledException } from "better-result";
5
+ //#region src/standard-services/config.d.ts
6
+ /** Raw string values supplied to a configuration schema. */
7
+ type ConfigSource = Readonly<Record<string, string | undefined>>;
8
+ /** Optional sources used by environment-backed configuration values. */
9
+ type ConfigSourceOptions = {
10
+ readonly dotEnvPath?: string;
11
+ readonly envSource?: ConfigSource;
12
+ };
13
+ /** Options for the one-call schema-bound configuration API. */
14
+ type ConfigFromEnvOptions<Schema extends StandardSchemaV1> = ConfigSourceOptions & {
15
+ readonly schema: Schema;
16
+ };
17
+ /** The decoded value produced by a Standard Schema. */
18
+ type ConfigOutput<Schema extends StandardSchemaV1> = StandardSchemaV1.InferOutput<Schema>;
19
+ /** The raw input type described by a Standard Schema. */
20
+ type ConfigInput<Schema extends StandardSchemaV1> = StandardSchemaV1.InferInput<Schema>;
21
+ /** A safe validation issue exposed by a configuration failure. */
22
+ type ConfigIssue = StandardSchemaV1.Issue;
23
+ declare const ConfigValidationError_base: import("better-result").TaggedErrorClass<"ConfigValidationError">;
24
+ /** A schema validation failure. Raw source values are intentionally omitted. */
25
+ declare class ConfigValidationError extends ConfigValidationError_base<{
26
+ readonly issues: ReadonlyArray<ConfigIssue>;
27
+ readonly message: string;
28
+ }> {}
29
+ declare const ConfigSourceError_base: import("better-result").TaggedErrorClass<"ConfigSourceError">;
30
+ /** A dotenv or host-source loading failure. Raw source values are intentionally omitted. */
31
+ declare class ConfigSourceError extends ConfigSourceError_base<{
32
+ readonly cause: unknown;
33
+ readonly message: string;
34
+ readonly path?: string;
35
+ }> {}
36
+ /** Errors that may be returned while loading or validating configuration. */
37
+ type ConfigError = ConfigValidationError | ConfigSourceError | UnhandledException;
38
+ type ConfigYield<Requirements extends Service.Any, Error> = Err<never, Error> | ServiceRequirement<Requirements>;
39
+ /** A reusable, async-yieldable Standard Schema configuration descriptor. */
40
+ type ConfigValue<Schema extends StandardSchemaV1, Requirements extends Service.Any = never, Error = ConfigError> = {
41
+ [Symbol.asyncIterator](): AsyncGenerator<ConfigYield<Requirements, Error>, ConfigOutput<Schema>, unknown>;
42
+ };
43
+ declare const Config_base: (abstract new () => ServiceIdentity<"Config">) & {
44
+ readonly name: string;
45
+ readonly serviceTag: "Config";
46
+ } & {
47
+ readonly of: Service.FactoryOf<Config, "Config">;
48
+ readonly [Symbol.asyncIterator]: (this: ServiceToken<"Config", Config & ServiceIdentity<"Config">>) => AsyncGenerator<ServiceRequirement<Config>, Config, unknown>;
49
+ };
50
+ /** Host-backed raw configuration source and provider token. */
51
+ declare class Config extends Config_base {
52
+ readonly source: ConfigSource;
53
+ constructor(source: ConfigSource);
54
+ /** Read one raw value from the configured source. */
55
+ get(key: string): string | undefined;
56
+ /** Create a provider from an already-loaded source. */
57
+ static layer(source: ConfigSource): LayerResult<ProviderEntry<Config, never>>;
58
+ /** Create a provider whose source is loaded from dotenv and the host environment. */
59
+ static layerFromEnv(options?: ConfigSourceOptions): LayerResult<ProviderEntry<Config, never>>;
60
+ /** Describe a configuration read from the contextual Config provider. */
61
+ static schema<Schema extends StandardSchemaV1>(schema: Schema): ConfigValue<Schema, Config>;
62
+ /** Describe a reusable configuration loaded from dotenv and the host environment. */
63
+ static fromEnv<Schema extends StandardSchemaV1>(options: ConfigFromEnvOptions<Schema>): ConfigValue<Schema>;
64
+ /** Add an environment source to a provider-backed descriptor for functional `pipe` composition. */
65
+ static withEnv(options: ConfigSourceOptions): <Schema extends StandardSchemaV1, Requirements extends Service.Any, Error = ConfigError>(value: ConfigValue<Schema, Requirements, Error>) => ConfigValue<Schema, Requirements, Error>;
66
+ }
67
+ /** The default lazy host-environment Config provider. */
68
+ declare const ConfigLive: LayerResult<ProviderEntry<Config, never>>;
69
+ //#endregion
70
+ //#region src/standard-services/index.d.ts
71
+ declare const Clock_base: (abstract new () => ServiceIdentity<"Clock">) & {
72
+ readonly name: string;
73
+ readonly serviceTag: "Clock";
74
+ } & {
75
+ readonly of: Service.FactoryOf<Clock, "Clock">;
76
+ readonly [Symbol.asyncIterator]: (this: ServiceToken<"Clock", Clock & ServiceIdentity<"Clock">>) => AsyncGenerator<ServiceRequirement<Clock>, Clock, unknown>;
77
+ };
78
+ /** Host-backed time and waiting service. */
79
+ declare class Clock extends Clock_base {
80
+ now(): Date;
81
+ sleep(milliseconds: number): Promise<void>;
82
+ }
83
+ /** The default host Clock provider. */
84
+ declare const ClockLive: LayerResult<ProviderEntry<Clock, never>>;
85
+ /** Deterministic Clock implementation for tests. */
86
+ declare class ClockTest implements Service.Contract<Clock> {
87
+ private currentTime;
88
+ private readonly waiters;
89
+ constructor(initial?: Date | number);
90
+ now(): Date;
91
+ setTime(value: Date | number): void;
92
+ advance(milliseconds: number): void;
93
+ sleep(milliseconds: number): Promise<void>;
94
+ static layer(initial?: Date | number): LayerResult<ProviderEntry<Clock, never>>;
95
+ private flushWaiters;
96
+ }
97
+ declare const ClockTestLayer: (initial?: Date | number) => LayerResult<ProviderEntry<Clock, never>>;
98
+ declare const Random_base: (abstract new () => ServiceIdentity<"Random">) & {
99
+ readonly name: string;
100
+ readonly serviceTag: "Random";
101
+ } & {
102
+ readonly of: Service.FactoryOf<Random, "Random">;
103
+ readonly [Symbol.asyncIterator]: (this: ServiceToken<"Random", Random & ServiceIdentity<"Random">>) => AsyncGenerator<ServiceRequirement<Random>, Random, unknown>;
104
+ };
105
+ /** Host-backed pseudo-random number service. */
106
+ declare class Random extends Random_base {
107
+ next(): number;
108
+ nextInt(maxExclusive: number): number;
109
+ }
110
+ /** The default host Random provider. */
111
+ declare const RandomLive: LayerResult<ProviderEntry<Random, never>>;
112
+ /** Reproducible pseudo-random implementation with isolated mutable state. */
113
+ declare class RandomSeeded implements Service.Contract<Random> {
114
+ private state;
115
+ constructor(seed: number);
116
+ next(): number;
117
+ nextInt(maxExclusive: number): number;
118
+ static layer(seed: number): LayerResult<ProviderEntry<Random, never>>;
119
+ }
120
+ declare const RandomSeededLayer: (seed: number) => LayerResult<ProviderEntry<Random, never>>;
121
+ type LoggerLevel = 'debug' | 'info' | 'warn' | 'error';
122
+ type LoggerEvent = {
123
+ level: LoggerLevel;
124
+ message: string;
125
+ data?: LoggerData;
126
+ };
127
+ type LoggerData = string | number | boolean | bigint | null | readonly LoggerData[] | {
128
+ readonly [key: string]: LoggerData;
129
+ };
130
+ declare const Logger_base: (abstract new () => ServiceIdentity<"Logger">) & {
131
+ readonly name: string;
132
+ readonly serviceTag: "Logger";
133
+ } & {
134
+ readonly of: Service.FactoryOf<Logger, "Logger">;
135
+ readonly [Symbol.asyncIterator]: (this: ServiceToken<"Logger", Logger & ServiceIdentity<"Logger">>) => AsyncGenerator<ServiceRequirement<Logger>, Logger, unknown>;
136
+ };
137
+ /** Structured host logger bridge. */
138
+ declare class Logger extends Logger_base {
139
+ log(event: LoggerEvent): void;
140
+ log(level: LoggerLevel, message: string, data?: LoggerData): void;
141
+ debug(message: string, data?: LoggerData): void;
142
+ info(message: string, data?: LoggerData): void;
143
+ warn(message: string, data?: LoggerData): void;
144
+ error(message: string, data?: LoggerData): void;
145
+ }
146
+ /** The default host Logger provider. */
147
+ declare const LoggerLive: LayerResult<ProviderEntry<Logger, never>>;
148
+ /** Ordered in-memory Logger implementation for tests. */
149
+ declare class LoggerTest implements Service.Contract<Logger> {
150
+ readonly events: LoggerEvent[];
151
+ log(event: LoggerEvent): void;
152
+ log(level: LoggerLevel, message: string, data?: LoggerData): void;
153
+ debug(message: string, data?: LoggerData): void;
154
+ info(message: string, data?: LoggerData): void;
155
+ warn(message: string, data?: LoggerData): void;
156
+ error(message: string, data?: LoggerData): void;
157
+ clear(): void;
158
+ static make(): {
159
+ logger: LoggerTest;
160
+ layer: LayerResult<ProviderEntry<Logger, never>>;
161
+ };
162
+ static layer(logger?: LoggerTest): LayerResult<ProviderEntry<Logger, never>>;
163
+ }
164
+ declare const LoggerTestLayer: () => LayerResult<ProviderEntry<Logger, never>>;
165
+ declare const CurrentRequest_base: (abstract new () => ServiceIdentity<"CurrentRequest">) & {
166
+ readonly name: string;
167
+ readonly serviceTag: "CurrentRequest";
168
+ } & {
169
+ readonly of: Service.FactoryOf<CurrentRequest, "CurrentRequest">;
170
+ readonly [Symbol.asyncIterator]: (this: ServiceToken<"CurrentRequest", CurrentRequest & ServiceIdentity<"CurrentRequest">>) => AsyncGenerator<ServiceRequirement<CurrentRequest>, CurrentRequest, unknown>;
171
+ };
172
+ /** Execution-local request value carried by a normal Service provider. */
173
+ declare class CurrentRequest extends CurrentRequest_base {
174
+ readonly value: unknown;
175
+ readonly request: unknown;
176
+ constructor(value: unknown);
177
+ static layer(value: unknown): LayerResult<ProviderEntry<CurrentRequest, never>>;
178
+ }
179
+ declare const CurrentRequestLayer: (value: unknown) => LayerResult<ProviderEntry<CurrentRequest, never>>;
180
+ //#endregion
181
+ export { StandardSchemaV1 as A, ConfigLive as C, ConfigSourceOptions as D, ConfigSourceError as E, ConfigValidationError as O, ConfigIssue as S, ConfigSource as T, RandomSeededLayer as _, CurrentRequest as a, ConfigFromEnvOptions as b, LoggerData as c, LoggerLive as d, LoggerTest as f, RandomSeeded as g, RandomLive as h, ClockTestLayer as i, ConfigValue as k, LoggerEvent as l, Random as m, ClockLive as n, CurrentRequestLayer as o, LoggerTestLayer as p, ClockTest as r, Logger as s, Clock as t, LoggerLevel as u, Config as v, ConfigOutput as w, ConfigInput as x, ConfigError as y };
182
+ //# sourceMappingURL=index-CITM15SE.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CITM15SE.d.mts","names":[],"sources":["../src/standard-services/config.ts","../src/standard-services/index.ts"],"m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EAIA,QAAQ;;;cAUG,YAAU,YAAA,cAAA;;cAGV,wBAAwB,QAAQ,SAAS;UAC5C;EAEI,YAAA;EAQZ;EAKA,QAAQ;SAQD,MAAM,eAAY,YAAA,cAAA;;cAKd,oBAAqB,iBAAY,YAAA,cAAA;KAElC;KAEA;EACV,OAAO;EACP;EACA,OAAO;;KAGG,kEAMC;YACG,cAAc;;;;;;;;;;cAqBjB,eAAe;EAC1B,IAAI,OAAO;EACX,IAAI,OAAO,aAAa,iBAAiB,OAAO;EAahD,MAAM,iBAAiB,OAAO;EAI9B,KAAK,iBAAiB,OAAO;EAI7B,KAAK,iBAAiB,OAAO;EAI7B,MAAM,iBAAiB,OAAO;;;cAMnB,YAAU,YAAA,cAAA;;cAGV,sBAAsB,QAAQ,SAAS;WACzC,QAAQ;EAEjB,IAAI,OAAO;EACX,IAAI,OAAO,aAAa,iBAAiB,OAAO;EAOhD,MAAM,iBAAiB,OAAO;EAI9B,KAAK,iBAAiB,OAAO;EAI7B,KAAK,iBAAiB,OAAO;EAI7B,MAAM,iBAAiB,OAAO;EAI9B;SAIO;;;;SAKA,MAAM,SAAQ,aAA6B,YAAA,cAAA;;cAKvC,uBAAe,YAAA,cAAA;;;;;;;;;cAGf,uBAAuB;WAIb;WAHZ;EAGY,YAAA;SAMd,MAAM,iBAAc,YAAA,cAAA;;cAMhB,sBAAuB,mBAAc,YAAA,cAAA"}
@@ -139,6 +139,8 @@ type CompleteInput<L extends LayerInput> = ValidateLayerInput<L> & (LayerInputSt
139
139
  type ExecutionRequirementsMissing<RootProvided extends AnyService, Request extends LayerInput> = MissingServices<Extract<RequiredEnvironment<Request>, AnyService>, Extract<RootProvided, AnyService>>;
140
140
  /** Validate a per-execution Layer against the Runtime root environment. */
141
141
  type CompleteExecutionLayer<RootProvided extends AnyService, Request extends LayerInput> = ValidateLayerInput<Request> & (LayerInputState<Request> extends 'unchecked' ? Request : LayerInputState<Request> extends 'typed' ? [ExecutionRequirementsMissing<RootProvided, Request>] extends [never] ? Request : Request & MissingDependencies<ExecutionRequirementsMissing<RootProvided, Request>> : Request);
142
+ /** Services required by an execution result that are not in its environment. */
143
+ type ExecutionMissing<Provided extends AnyService, ProgramResult> = MissingServices<EffectRequirements<ProgramResult>, Provided>;
142
144
  type ExecutionProgram<A> = () => A | PromiseLike<A>;
143
145
  type CompleteExecutionWithRequirements<Provided extends AnyService, A, Required extends AnyService> = [MissingServices<Required, Provided>] extends [never] ? ExecutionProgram<A> : ExecutionProgram<A> & MissingDependencies<MissingServices<Required, Provided>>;
144
146
  /** Keep execution callbacks unchanged when their Effect requirements are met. */
@@ -319,5 +321,5 @@ type RuntimeDisposeOptions = {
319
321
  readonly abortAfterGracePeriod?: boolean;
320
322
  };
321
323
  //#endregion
322
- export { ProvidedEnvironment as C, LayerResult as S, Layer as _, RuntimeShutdownDiagnostic as a, CompleteInput as b, RuntimeObserver as c, RuntimeServiceResolveEvent as d, DuplicateServiceError as f, ServiceTagCollisionError as g, LayerRegistrationError as h, RuntimeRunOptions as i, RuntimeResourceReleaseEvent as l, LayerGeneratorYieldError as m, RuntimeDisposeOptions as n, RuntimeExecutionEndEvent as o, LayerDisposeError as p, RuntimeOptions as r, RuntimeExecutionStartEvent as s, CleanupFailureObserver as t, RuntimeServiceAcquireEvent as u, CompleteExecution as v, ProviderEntry as w, LayerInput as x, CompleteExecutionLayer as y };
323
- //# sourceMappingURL=index-CYAgpM_5.d.mts.map
324
+ export { LayerResult as C, MissingDependencies as E, LayerInput as S, ProviderEntry as T, Layer as _, RuntimeShutdownDiagnostic as a, CompleteInput as b, RuntimeObserver as c, RuntimeServiceResolveEvent as d, DuplicateServiceError as f, ServiceTagCollisionError as g, LayerRegistrationError as h, RuntimeRunOptions as i, RuntimeResourceReleaseEvent as l, LayerGeneratorYieldError as m, RuntimeDisposeOptions as n, RuntimeExecutionEndEvent as o, LayerDisposeError as p, RuntimeOptions as r, RuntimeExecutionStartEvent as s, CleanupFailureObserver as t, RuntimeServiceAcquireEvent as u, CompleteExecution as v, ProvidedEnvironment as w, ExecutionMissing as x, CompleteExecutionLayer as y };
325
+ //# sourceMappingURL=index-EJlskfAW.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-CYAgpM_5.d.mts","names":[],"sources":["../src/internal/variance.ts","../src/internal/missing-dependencies.ts","../src/layer/metadata.ts","../src/layer/inference.ts","../src/layer/layer.ts","../src/layer/errors.ts","../src/runtime/observer.ts","../src/runtime/outcome.ts"],"mappings":";;;;KACY,UAAU,WAAW;;KAGrB,UAAU,MAAM,OAAO,MAAM;;;KCF7B,oBAAoB,gBAAgB;;WAErC,iBAAiB;;;;;cCCP;UAEJ,kBACX,iBAAiB,gBACjB,oBAAoB;WAEf,UAAU;WACV,UAAU;;UAGJ,qBACX,iBAAiB,gBACjB,uBAAuB;WAElB,UAAU;WACV,gBAAgB;;UAGV,oBACX,gBAAgB,cAAc,YAAY,yBAC1C,eAAe,iBAAiB,YAAY;YAEtC;aACC,SAAS;aACT,QAAQ;;;;;KCfhB,MAAM,mBAAmB;KACzB,QAAQ,MAAM;KAEd,QAAQ,GAAG,YAAY,KAAK,qBAC5B,oBAAoB;;KAMb,aAAa,kBAAkB;;KAG/B,oBAAoB,UAAU,cACxC,UAAU,YAAY,gBAAgB,aAAa;KAEzC,oBAAoB,UAAU,cACxC,UAAU,YAAY,iBAAiB,YAAY;KAEhD,cAAc,YACjB,MAAM,iCAEF,iBAAiB,4BACA,aAAa;KAK/B,eAAe,aAAa,YAAY,cAAc,eACzD,aAAa,gBACJ,aAAa,WACnB,aAAa,iBAAiB,aAAa;KAK3C,oBAAoB,aAAa,YAAY,cAAc,eAC9D,gBAAgB,gBACP,gBAAgB,WACtB,gBAAgB,iBAAiB,gBAAgB;KAKjD,YAAY,aAAa,YAAY,cAAc,cACtD,eAAe,MAAM,sBAAsB,oBAAoB,MAAM;KAQlE,oBACH,oBAAoB,YACpB,iBAAiB,cACf,iBAAiB,aAAa,YAAY,aAAa;KAEtD,mBAAmB,oBAAo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AkB,OAAO,6BAA6B;WACtD,qBAAqB,OAAO,gCAAgC;;;;;KC5B3D;;WAED,SAAS;;WAET,OAAO;;;KAIN,0BACV,YAAY,2BAA2B,8BACpC;;KAGO;;WAED,UAAU;;WAEV;;WAEA,qBAAqB;;WAErB,mBAAmB;;WAEnB,iBAAiB;;WAEjB,SAAS;;;KAIR;WACD,SAAS;;;KAIR;;WAED;;WAEA"}
1
+ {"version":3,"file":"index-EJlskfAW.d.mts","names":[],"sources":["../src/internal/variance.ts","../src/internal/missing-dependencies.ts","../src/layer/metadata.ts","../src/layer/inference.ts","../src/layer/layer.ts","../src/layer/errors.ts","../src/runtime/observer.ts","../src/runtime/outcome.ts"],"mappings":";;;;KACY,UAAU,WAAW;;KAGrB,UAAU,MAAM,OAAO,MAAM;;;KCF7B,oBAAoB,gBAAgB;;WAErC,iBAAiB;;;;;cCCP;UAEJ,kBACX,iBAAiB,gBACjB,oBAAoB;WAEf,UAAU;WACV,UAAU;;UAGJ,qBACX,iBAAiB,gBACjB,uBAAuB;WAElB,UAAU;WACV,gBAAgB;;UAGV,oBACX,gBAAgB,cAAc,YAAY,yBAC1C,eAAe,iBAAiB,YAAY;YAEtC;aACC,SAAS;aACT,QAAQ;;;;;KCfhB,MAAM,mBAAmB;KACzB,QAAQ,MAAM;KAEd,QAAQ,GAAG,YAAY,KAAK,qBAC5B,oBAAoB;;KAMb,aAAa,kBAAkB;;KAG/B,oBAAoB,UAAU,cACxC,UAAU,YAAY,gBAAgB,aAAa;KAEzC,oBAAoB,UAAU,cACxC,UAAU,YAAY,iBAAiB,YAAY;KAEhD,cAAc,YACjB,MAAM,iCAEF,iBAAiB,4BACA,aAAa;KAK/B,eAAe,aAAa,YAAY,cAAc,eACzD,aAAa,gBACJ,aAAa,WACnB,aAAa,iBAAiB,aAAa;KAK3C,oBAAoB,aAAa,YAAY,cAAc,eAC9D,gBAAgB,gBACP,gBAAgB,WACtB,gBAAgB,iBAAiB,gBAAgB;KAKjD,YAAY,aAAa,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WACzB,SAAS;;;KAIR;WACD,OAAO;;;KAIN;WACD,OAAO;WACP,SAAS;;;KAIR;WACD,SAAS;WACT,SAAS;WACT;;;KAIC;WACD,oBAAoB,OAAO,+BAA+B;WAC1D,oBAAoB,OAAO,+BAA+B;WAC1D,oBAAoB,OAAO,+BAA+B;WAC1D,kBAAkB,OAAO,6BAA6B;WACtD,qBAAqB,OAAO,gCAAgC;;;;;KC5B3D;;WAED,SAAS;;WAET,OAAO;;;KAIN,0BACV,YAAY,2BAA2B,8BACpC;;KAGO;;WAED,UAAU;;WAEV;;WAEA,qBAAqB;;WAErB,mBAAmB;;WAEnB,iBAAiB;;WAEjB,SAAS;;;KAIR;WACD,SAAS;;;KAIR;;WAED;;WAEA"}
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { B as ServiceTag, C as EffectError, D as EffectYield, E as EffectSuccess, F as ServiceContract, H as ServiceToken, I as ServiceIdentity, M as AnyService, N as AnyServiceToken, P as ServiceClass, R as ServiceInstance, T as EffectRequirements, U as ServiceTokenOf, _ as ScopeCloseError, a as ServiceResolver, b as Service, c as RuntimeContextStorage, d as CleanupFailureDiagnostic, f as DisposableResource, g as ResourceNotDisposableError, h as ScopeOutcome, i as ServiceRuntimeNotConfiguredError, j as ServiceRequirement, l as CloseableScope, m as ScopeFinalizer, n as ServiceAcquisitionError, o as ServiceRuntime, r as ServiceNotFoundError, s as RuntimeContext, t as CircularDependencyError, u as Scope, v as ScopeClosedError, x as AnyEffect, y as ScopeRuntimeNotConfiguredError, z as ServiceRequirements } from "./index-1NLNdkJy.mjs";
2
- import { _ as Layer, a as RuntimeShutdownDiagnostic, c as RuntimeObserver, d as RuntimeServiceResolveEvent, f as DuplicateServiceError, g as ServiceTagCollisionError, h as LayerRegistrationError, i as RuntimeRunOptions, l as RuntimeResourceReleaseEvent, m as LayerGeneratorYieldError, n as RuntimeDisposeOptions, o as RuntimeExecutionEndEvent, p as LayerDisposeError, r as RuntimeOptions, s as RuntimeExecutionStartEvent, t as CleanupFailureObserver, u as RuntimeServiceAcquireEvent } from "./index-CYAgpM_5.mjs";
2
+ import { _ as Layer, a as RuntimeShutdownDiagnostic, c as RuntimeObserver, d as RuntimeServiceResolveEvent, f as DuplicateServiceError, g as ServiceTagCollisionError, h as LayerRegistrationError, i as RuntimeRunOptions, l as RuntimeResourceReleaseEvent, m as LayerGeneratorYieldError, n as RuntimeDisposeOptions, o as RuntimeExecutionEndEvent, p as LayerDisposeError, r as RuntimeOptions, s as RuntimeExecutionStartEvent, t as CleanupFailureObserver, u as RuntimeServiceAcquireEvent } from "./index-EJlskfAW.mjs";
3
3
  import { a as LayerRegistration, n as LayerBackend, t as MapLayerBackend } from "./map-layer-backend-DMJauecV.mjs";
4
- import { a as AcquireUseReleaseOptions, c as ReleaseOutcome, d as Effect, f as Program, i as Resource, l as ResourceReleaseFailure, n as Runtime, o as AsyncResult, p as ProgramAllOptions, r as RuntimeFor, s as ReleaseFailureObserver, t as CurrentAbortSignal, u as pipe } from "./index-BJFBEsm5.mjs";
4
+ import { a as ReleaseOutcome, c as Effect, d as CurrentAbortSignal, f as Runtime, i as ReleaseFailureObserver, l as Program, n as AcquireUseReleaseOptions, o as ResourceReleaseFailure, p as RuntimeFor, r as AsyncResult, s as pipe, t as Resource, u as ProgramAllOptions } from "./index-BsPr7qHf.mjs";
5
5
  import { t as RuntimeContextNotConfiguredError } from "./errors-BXKc7juX.mjs";
6
6
  export { type AcquireUseReleaseOptions, type AnyEffect, type AnyService, type AnyServiceToken, type AsyncResult, CircularDependencyError, type CleanupFailureDiagnostic, type CleanupFailureObserver, type CloseableScope, CurrentAbortSignal, type DisposableResource, DuplicateServiceError, Effect, type EffectError, type EffectRequirements, type EffectSuccess, type EffectYield, Layer, type LayerBackend, LayerDisposeError, LayerGeneratorYieldError, type LayerRegistration, LayerRegistrationError, MapLayerBackend, Program, type ProgramAllOptions, type ReleaseFailureObserver, type ReleaseOutcome, Resource, ResourceNotDisposableError, ResourceReleaseFailure, Runtime, type RuntimeContext, RuntimeContextNotConfiguredError, type RuntimeContextStorage, type RuntimeDisposeOptions, type RuntimeExecutionEndEvent, type RuntimeExecutionStartEvent, type RuntimeFor, type RuntimeObserver, type RuntimeOptions, type RuntimeResourceReleaseEvent, type RuntimeRunOptions, type RuntimeServiceAcquireEvent, type RuntimeServiceResolveEvent, type RuntimeShutdownDiagnostic, Scope, ScopeCloseError, ScopeClosedError, type ScopeFinalizer, type ScopeOutcome, ScopeRuntimeNotConfiguredError, Service, ServiceAcquisitionError, type ServiceClass, type ServiceContract, type ServiceIdentity, type ServiceInstance, ServiceNotFoundError, type ServiceRequirement, type ServiceRequirements, type ServiceResolver, ServiceRuntime, ServiceRuntimeNotConfiguredError, type ServiceTag, ServiceTagCollisionError, type ServiceToken, type ServiceTokenOf, pipe };