brass-runtime 1.16.0 → 1.17.0
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/CHANGELOG.md +17 -0
- package/README.md +287 -23
- package/dist/agent/cli/main.cjs +38 -38
- package/dist/agent/cli/main.js +6 -6
- package/dist/agent/cli/main.mjs +6 -6
- package/dist/agent/index.cjs +7 -7
- package/dist/agent/index.d.ts +1 -1
- package/dist/agent/index.js +6 -6
- package/dist/agent/index.mjs +6 -6
- package/dist/chunk-2HQTDLHF.mjs +683 -0
- package/dist/chunk-36I3M4UC.mjs +370 -0
- package/dist/{chunk-QY5FKYEQ.js → chunk-3AYM6WPJ.js} +570 -51
- package/dist/chunk-3LOYJFRR.cjs +300 -0
- package/dist/chunk-3Y2RIUMM.js +300 -0
- package/dist/{chunk-7XOPAB5Q.js → chunk-4P2HHGAX.mjs} +83 -5
- package/dist/{chunk-N6VHMOWB.cjs → chunk-4ROBZFL6.cjs} +128 -128
- package/dist/{chunk-NC5SDRYE.js → chunk-52OB2ROS.js} +4 -4
- package/dist/{chunk-JX3LZQJH.cjs → chunk-52PPNNI4.cjs} +82 -20
- package/dist/{chunk-5YOQOXEQ.cjs → chunk-5EC274J5.cjs} +676 -293
- package/dist/chunk-5QC7LRZ3.js +229 -0
- package/dist/{chunk-7TL2LHQJ.js → chunk-5VRJNBLZ.mjs} +524 -141
- package/dist/chunk-62AZW6UT.cjs +313 -0
- package/dist/chunk-6IXXWIUM.js +683 -0
- package/dist/chunk-6RY2FFN4.mjs +2024 -0
- package/dist/chunk-74ZTY6CP.js +2871 -0
- package/dist/chunk-7CMJS3QE.mjs +2871 -0
- package/dist/{chunk-2WC63LJK.mjs → chunk-7JIJOVCT.js} +20 -10
- package/dist/chunk-7X3K5RMS.js +2024 -0
- package/dist/chunk-7ZPEZ57L.cjs +2024 -0
- package/dist/{chunk-FM4W4QPL.js → chunk-A2OM6NEH.mjs} +5 -4
- package/dist/chunk-AGR5B2BC.cjs +683 -0
- package/dist/chunk-B33ICAKP.js +313 -0
- package/dist/{chunk-J3H54ZRV.mjs → chunk-B5JD23U7.mjs} +1 -1
- package/dist/{chunk-F5EUMJL7.mjs → chunk-BKK77SBA.js} +83 -5
- package/dist/{chunk-U5KWK3PX.mjs → chunk-C3MDXTRZ.js} +11 -0
- package/dist/{chunk-SPUEME2B.cjs → chunk-CZIVE6NT.cjs} +12 -1
- package/dist/{chunk-TDVMADDN.js → chunk-DNFJLJMW.mjs} +11 -0
- package/dist/{chunk-XDZOO4L5.js → chunk-EJ6BPYVR.mjs} +79 -17
- package/dist/chunk-EOC4UHBS.mjs +229 -0
- package/dist/chunk-F6XWZQY4.cjs +777 -0
- package/dist/{chunk-7LVI2GIN.js → chunk-FH2X7BVP.js} +507 -72
- package/dist/{chunk-OOGJ73B6.js → chunk-FHQGHPMO.mjs} +20 -10
- package/dist/{chunk-WQ5QNU5R.cjs → chunk-GLE2WY7Z.cjs} +652 -217
- package/dist/{chunk-G6IQOE4P.mjs → chunk-GYM3LLGS.mjs} +507 -72
- package/dist/{chunk-TVN5I4U6.cjs → chunk-JF5WGYJJ.cjs} +25 -24
- package/dist/{chunk-CY33PGEX.mjs → chunk-KH4SYAOS.mjs} +570 -51
- package/dist/chunk-KN32XNTH.mjs +313 -0
- package/dist/chunk-KQLYONSE.cjs +2871 -0
- package/dist/{chunk-7HUOJA4W.cjs → chunk-KZJQ723N.cjs} +90 -80
- package/dist/{chunk-CCKHV5BT.mjs → chunk-L2SYFEBS.js} +5 -4
- package/dist/{chunk-IJT6RRQ5.cjs → chunk-L6VB5N7Q.cjs} +20 -9
- package/dist/{chunk-ZGLD4TVZ.mjs → chunk-MBEJI5HF.mjs} +4 -4
- package/dist/{chunk-PRWCB3QL.mjs → chunk-MIIYDLGM.js} +524 -141
- package/dist/{chunk-H55LI6WY.js → chunk-MOO4L7F4.mjs} +15 -4
- package/dist/chunk-MVGUEJ5Z.cjs +370 -0
- package/dist/chunk-PD4EJTQC.cjs +229 -0
- package/dist/chunk-PWC3RBQE.mjs +300 -0
- package/dist/{chunk-MWXMNYJS.cjs → chunk-Q2I37RP3.cjs} +643 -124
- package/dist/{chunk-VFIUZG7J.mjs → chunk-RKGKFN2A.js} +79 -17
- package/dist/{chunk-NYL4D7SK.cjs → chunk-SA6HUJVI.cjs} +5 -5
- package/dist/chunk-SK7UZRNI.mjs +777 -0
- package/dist/{chunk-K2T3DV26.mjs → chunk-TRM4JUZQ.js} +15 -4
- package/dist/chunk-UB4B6OFY.js +370 -0
- package/dist/{chunk-G3XGCZDQ.js → chunk-UCUBNWM2.js} +1 -1
- package/dist/chunk-VWIPB6I5.js +777 -0
- package/dist/{chunk-JNFRRJYH.cjs → chunk-WBGRHGBP.cjs} +270 -192
- package/dist/{client-CtFmoDvM.d.ts → client-CZHU674n.d.ts} +211 -36
- package/dist/core/index.cjs +135 -9
- package/dist/core/index.d.ts +238 -33
- package/dist/core/index.js +155 -29
- package/dist/core/index.mjs +155 -29
- package/dist/{effect-CGNl5Rqp.d.ts → effect-DIUHZ9IN.d.ts} +89 -1
- package/dist/effectRunner-CFLC32IK.cjs +8 -0
- package/dist/{effectRunner-A4CHJXJI.js → effectRunner-L4S7IPT3.js} +2 -2
- package/dist/{effectRunner-OPUF6QRN.mjs → effectRunner-NNGG75QA.mjs} +2 -2
- package/dist/http/index.cjs +324 -2986
- package/dist/http/index.d.ts +54 -68
- package/dist/http/index.js +238 -2900
- package/dist/http/index.mjs +238 -2900
- package/dist/http/testing.cjs +14 -12
- package/dist/http/testing.d.ts +5 -4
- package/dist/http/testing.js +10 -8
- package/dist/http/testing.mjs +10 -8
- package/dist/index.cjs +423 -255
- package/dist/index.d.ts +87 -69
- package/dist/index.js +301 -133
- package/dist/index.mjs +301 -133
- package/dist/observability/index.cjs +18 -531
- package/dist/observability/index.d.ts +81 -8
- package/dist/observability/index.js +25 -538
- package/dist/observability/index.mjs +25 -538
- package/dist/perf/cli.cjs +401 -0
- package/dist/perf/cli.d.ts +1 -0
- package/dist/perf/cli.js +401 -0
- package/dist/perf/cli.mjs +401 -0
- package/dist/perf/index.cjs +141 -0
- package/dist/perf/index.d.ts +483 -0
- package/dist/perf/index.js +141 -0
- package/dist/perf/index.mjs +141 -0
- package/dist/schedule-CK3Ml_7p.d.ts +259 -0
- package/dist/schema/index.cjs +6 -2
- package/dist/schema/index.d.ts +3 -1
- package/dist/schema/index.js +5 -1
- package/dist/schema/index.mjs +5 -1
- package/dist/{server-C8hDXA74.d.ts → server-D6JZ15_e.d.ts} +16 -4
- package/dist/{stream-dvSs0QS5.d.ts → stream-B4oK9JFP.d.ts} +1 -1
- package/dist/{tracer-B5tRH9H7.d.ts → tracer-Hwt1cl7h.d.ts} +13 -54
- package/dist/{tracing-Dt9S_6V8.d.ts → tracing-DqbTKGcf.d.ts} +1 -1
- package/docs/ARCHITECTURE.md +292 -0
- package/docs/README.md +65 -0
- package/docs/adr/0001-ai-context-pack.md +32 -0
- package/docs/agent-apply-mode.md +104 -0
- package/docs/agent-approvals.md +110 -0
- package/docs/agent-batch.md +185 -0
- package/docs/agent-boundaries.md +112 -0
- package/docs/agent-chat-sessions.md +160 -0
- package/docs/agent-ci.md +17 -0
- package/docs/agent-cli.md +405 -0
- package/docs/agent-config.md +480 -0
- package/docs/agent-context-discovery.md +159 -0
- package/docs/agent-copilot-like-dx.md +126 -0
- package/docs/agent-declarative-optimized-planning.md +138 -0
- package/docs/agent-dx.md +224 -0
- package/docs/agent-env-files.md +126 -0
- package/docs/agent-follow-up-context.md +43 -0
- package/docs/agent-global-usage.md +180 -0
- package/docs/agent-init.md +109 -0
- package/docs/agent-install-and-configure.md +516 -0
- package/docs/agent-language-workspace-ux.md +99 -0
- package/docs/agent-llm-adapters.md +123 -0
- package/docs/agent-local-install.md +190 -0
- package/docs/agent-local-tests.md +51 -0
- package/docs/agent-observability.md +155 -0
- package/docs/agent-patch-quality-loop.md +162 -0
- package/docs/agent-presets.md +22 -0
- package/docs/agent-project-commands.md +237 -0
- package/docs/agent-project-intelligence.md +156 -0
- package/docs/agent-redaction.md +18 -0
- package/docs/agent-release-readiness.md +76 -0
- package/docs/agent-rollback-safety.md +162 -0
- package/docs/agent-rollback.md +23 -0
- package/docs/agent-run-artifacts.md +16 -0
- package/docs/agent-vscode-auto-discovery.md +137 -0
- package/docs/agent-vscode-batch-runner.md +100 -0
- package/docs/agent-vscode-chat-layout.md +90 -0
- package/docs/agent-vscode-clean-install.md +147 -0
- package/docs/agent-vscode-code-actions.md +70 -0
- package/docs/agent-vscode-diff-preview.md +45 -0
- package/docs/agent-vscode-inline-assist.md +56 -0
- package/docs/agent-vscode-install.md +186 -0
- package/docs/agent-vscode-model-setup.md +97 -0
- package/docs/agent-vscode-patch-preview.md +92 -0
- package/docs/agent-vscode-problems.md +79 -0
- package/docs/agent-vscode-project-dashboard.md +106 -0
- package/docs/agent-vscode-run-history.md +92 -0
- package/docs/agent-vscode-ux.md +73 -0
- package/docs/ai/INVARIANTS.md +84 -0
- package/docs/ai/PROJECT_MAP.md +338 -0
- package/docs/ai/PUBLIC_API.md +339 -0
- package/docs/ai/VALIDATION_MATRIX.md +67 -0
- package/docs/api-polish.md +37 -0
- package/docs/cancellation.md +162 -0
- package/docs/coverage.md +46 -0
- package/docs/framework-integrations.md +38 -0
- package/docs/frameworks/angular.md +153 -0
- package/docs/frameworks/express.md +125 -0
- package/docs/frameworks/fastify.md +124 -0
- package/docs/frameworks/nestjs.md +282 -0
- package/docs/frameworks/nextjs.md +147 -0
- package/docs/frameworks/react.md +139 -0
- package/docs/frameworks/vanilla.md +224 -0
- package/docs/getting-started.md +159 -0
- package/docs/guides/README.md +40 -0
- package/docs/guides/circuit-breaker.md +89 -0
- package/docs/guides/error-handling.md +91 -0
- package/docs/guides/getting-started.md +107 -0
- package/docs/guides/layers.md +189 -0
- package/docs/guides/metrics.md +101 -0
- package/docs/guides/resource-management.md +141 -0
- package/docs/guides/retry.md +215 -0
- package/docs/guides/semaphore.md +66 -0
- package/docs/guides/streams.md +117 -0
- package/docs/guides/supervisors.md +98 -0
- package/docs/guides/testing.md +162 -0
- package/docs/guides/tracing.md +71 -0
- package/docs/http-recipes.md +399 -0
- package/docs/http.md +749 -0
- package/docs/modules.md +285 -0
- package/docs/nestjs.md +6 -0
- package/docs/observability-collector-smoke.md +31 -0
- package/docs/observability-framework-examples.md +110 -0
- package/docs/observability.md +649 -0
- package/docs/otel-collector-smoke.yaml +27 -0
- package/docs/performance-profiler.md +199 -0
- package/docs/production-readiness.md +73 -0
- package/docs/recipes/README.md +12 -0
- package/docs/recipes/http-server.md +45 -0
- package/docs/recipes/layers.md +44 -0
- package/docs/recipes/performance.md +47 -0
- package/docs/recipes/runtime.md +41 -0
- package/docs/recipes/testing.md +41 -0
- package/docs/release.md +53 -0
- package/docs/wasm-bounded-queues.md +44 -0
- package/docs/wasm-engine-observability-benchmarks.md +85 -0
- package/docs/wasm-fiber-engine.md +117 -0
- package/docs/wasm-scheduler-state-machine.md +122 -0
- package/docs/wasm-stream-chunks.md +54 -0
- package/package.json +22 -2
- package/dist/chunk-45F7OKGT.cjs +0 -104
- package/dist/chunk-7V4KY4RL.mjs +0 -104
- package/dist/chunk-DJQ7OMMB.cjs +0 -144
- package/dist/chunk-GOV47PPB.mjs +0 -552
- package/dist/chunk-JF4XXPZ5.cjs +0 -552
- package/dist/chunk-KCPT2D6G.js +0 -552
- package/dist/chunk-NOYZIMUJ.mjs +0 -144
- package/dist/chunk-PNVFW245.js +0 -144
- package/dist/chunk-ROJC3NBJ.js +0 -104
- package/dist/effectRunner-3ZHAD3LE.cjs +0 -8
- package/dist/schedule-Fque9Abz.d.ts +0 -70
|
@@ -1,6 +1,47 @@
|
|
|
1
|
-
import { A as Async } from './effect-
|
|
2
|
-
import { Z as ZStream } from './stream-
|
|
3
|
-
import { S as Schedule } from './schedule-
|
|
1
|
+
import { A as Async } from './effect-DIUHZ9IN.js';
|
|
2
|
+
import { Z as ZStream } from './stream-B4oK9JFP.js';
|
|
3
|
+
import { S as Schedule, a as ScheduleObserver, C as CircuitBreakerError } from './schedule-CK3Ml_7p.js';
|
|
4
|
+
import { SchemaIssue, JsonSchemaLike } from './schema/index.js';
|
|
5
|
+
|
|
6
|
+
type HttpRetryScheduleInput = {
|
|
7
|
+
readonly attempt: number;
|
|
8
|
+
readonly elapsedMs: number;
|
|
9
|
+
readonly request: HttpRequest;
|
|
10
|
+
readonly error?: HttpError;
|
|
11
|
+
readonly status?: number;
|
|
12
|
+
readonly retryAfterMs?: number;
|
|
13
|
+
};
|
|
14
|
+
type HttpRequestRetryOverride = false | {
|
|
15
|
+
readonly maxRetries?: number;
|
|
16
|
+
readonly baseDelayMs?: number;
|
|
17
|
+
readonly maxDelayMs?: number;
|
|
18
|
+
readonly schedule?: Schedule<HttpRetryScheduleInput, unknown>;
|
|
19
|
+
readonly retryOnStatus?: (status: number) => boolean;
|
|
20
|
+
};
|
|
21
|
+
type HttpRequestPolicy = {
|
|
22
|
+
readonly preset?: string;
|
|
23
|
+
readonly lane?: string;
|
|
24
|
+
readonly dedupKey?: string;
|
|
25
|
+
readonly priority?: number;
|
|
26
|
+
readonly retry?: HttpRequestRetryOverride;
|
|
27
|
+
readonly poolKey?: string;
|
|
28
|
+
};
|
|
29
|
+
type HttpRequestPolicyRef = HttpRequestPolicy | string;
|
|
30
|
+
type HttpPolicyPreset = HttpRequestPolicy | ((request: HttpRequest, presetName: string) => HttpRequestPolicy);
|
|
31
|
+
type HttpPolicyPresets = Record<string, HttpPolicyPreset>;
|
|
32
|
+
type ResolveHttpRequestPolicyOptions = {
|
|
33
|
+
readonly presets?: HttpPolicyPresets;
|
|
34
|
+
};
|
|
35
|
+
declare const defineHttpPolicyPresets: <Presets extends HttpPolicyPresets>(presets: Presets) => Presets;
|
|
36
|
+
declare const httpPolicy: Readonly<{
|
|
37
|
+
preset: (preset: string, overrides?: Omit<HttpRequestPolicy, "preset">) => HttpRequestPolicy;
|
|
38
|
+
lane: (lane: string, overrides?: Omit<HttpRequestPolicy, "preset" | "lane">) => HttpRequestPolicy;
|
|
39
|
+
define: <Presets extends HttpPolicyPresets>(presets: Presets) => Presets;
|
|
40
|
+
}>;
|
|
41
|
+
declare const getHttpRequestPolicy: (req: HttpRequest, options?: ResolveHttpRequestPolicyOptions) => HttpRequestPolicy;
|
|
42
|
+
declare const withHttpRequestPolicy: (req: HttpRequest, patch: Partial<HttpRequestPolicy>) => HttpRequest;
|
|
43
|
+
declare const resolveHttpRequestPolicyPresets: (req: HttpRequest, presets: HttpPolicyPresets) => HttpRequest;
|
|
44
|
+
declare const withHttpPolicyPresets: (presets: HttpPolicyPresets) => HttpMiddleware;
|
|
4
45
|
|
|
5
46
|
/**
|
|
6
47
|
* Observable event emitted on each retry attempt via the `onRetry` callback.
|
|
@@ -21,32 +62,22 @@ type RetryEvent = {
|
|
|
21
62
|
/** Timestamp (ms since epoch) when the retry decision was made. */
|
|
22
63
|
timestamp: number;
|
|
23
64
|
};
|
|
24
|
-
type RetryScheduleInput =
|
|
25
|
-
readonly attempt: number;
|
|
26
|
-
readonly elapsedMs: number;
|
|
27
|
-
readonly request: HttpRequest;
|
|
28
|
-
readonly error?: HttpError;
|
|
29
|
-
readonly status?: number;
|
|
30
|
-
readonly retryAfterMs?: number;
|
|
31
|
-
};
|
|
65
|
+
type RetryScheduleInput = HttpRetryScheduleInput;
|
|
32
66
|
/**
|
|
33
|
-
* Per-request retry override.
|
|
67
|
+
* Per-request retry override. Prefer `req.policy.retry`; legacy top-level `req.retry`
|
|
68
|
+
* is still supported.
|
|
34
69
|
* - `false` disables retry entirely for this request.
|
|
35
70
|
* - A partial policy object merges with the middleware-level policy (per-request wins).
|
|
36
71
|
*/
|
|
37
|
-
type PerRequestRetryOverride =
|
|
38
|
-
maxRetries?: number;
|
|
39
|
-
baseDelayMs?: number;
|
|
40
|
-
maxDelayMs?: number;
|
|
41
|
-
schedule?: Schedule<RetryScheduleInput, unknown>;
|
|
42
|
-
retryOnStatus?: (status: number) => boolean;
|
|
43
|
-
};
|
|
72
|
+
type PerRequestRetryOverride = HttpRequestRetryOverride;
|
|
44
73
|
type RetryPolicy = {
|
|
45
74
|
maxRetries: number;
|
|
46
75
|
baseDelayMs: number;
|
|
47
76
|
maxDelayMs: number;
|
|
48
77
|
/** Optional declarative schedule. When present, it provides retry delays. */
|
|
49
78
|
schedule?: Schedule<RetryScheduleInput, unknown>;
|
|
79
|
+
/** Optional observer for declarative schedule decisions. */
|
|
80
|
+
onScheduleDecision?: ScheduleObserver<RetryScheduleInput, unknown>;
|
|
50
81
|
/** Optional total retry budget, including request attempts and sleeps. */
|
|
51
82
|
maxElapsedMs?: number;
|
|
52
83
|
/** Defaults to true. When true, Retry-After is honored but capped by maxDelayMs/budget. */
|
|
@@ -63,20 +94,7 @@ type RetryPolicy = {
|
|
|
63
94
|
};
|
|
64
95
|
declare const defaultRetryableMethods: HttpMethod[];
|
|
65
96
|
declare const defaultRetryOnStatus: (s: number) => s is 408 | 429 | 500 | 502 | 503 | 504;
|
|
66
|
-
declare const defaultRetryOnError: (e: HttpError) =>
|
|
67
|
-
_tag: "FetchError";
|
|
68
|
-
message: string;
|
|
69
|
-
} | {
|
|
70
|
-
_tag: "Timeout";
|
|
71
|
-
timeoutMs: number;
|
|
72
|
-
message: string;
|
|
73
|
-
phase?: "request" | "queue" | "retry";
|
|
74
|
-
} | {
|
|
75
|
-
_tag: "PoolTimeout";
|
|
76
|
-
key: string;
|
|
77
|
-
timeoutMs: number;
|
|
78
|
-
message: string;
|
|
79
|
-
};
|
|
97
|
+
declare const defaultRetryOnError: (e: HttpError) => boolean;
|
|
80
98
|
declare const backoffDelayMs: (attempt: number, base: number, cap: number) => number;
|
|
81
99
|
declare const retryAfterMs: (headers: Record<string, string>) => number | undefined;
|
|
82
100
|
declare const normalizeRetryBudget: (ms: number | undefined) => number | undefined;
|
|
@@ -536,6 +554,142 @@ declare class AdaptiveLimiter {
|
|
|
536
554
|
private stateToKeySnapshot;
|
|
537
555
|
}
|
|
538
556
|
|
|
557
|
+
type ValidationError = {
|
|
558
|
+
readonly _tag: "ValidationError";
|
|
559
|
+
readonly message: string;
|
|
560
|
+
readonly body: string;
|
|
561
|
+
readonly issues: readonly SchemaIssue[];
|
|
562
|
+
readonly phase?: "request" | "response";
|
|
563
|
+
readonly schema?: string;
|
|
564
|
+
};
|
|
565
|
+
type JsonDecodeResult<A> = {
|
|
566
|
+
readonly success: true;
|
|
567
|
+
readonly data: A;
|
|
568
|
+
} | {
|
|
569
|
+
readonly success: false;
|
|
570
|
+
readonly error: ValidationError;
|
|
571
|
+
};
|
|
572
|
+
declare function decodeJsonBody<A = unknown>(bodyText: string, validator?: JsonSchemaLike<A>, options?: {
|
|
573
|
+
readonly schemaName?: string;
|
|
574
|
+
}): JsonDecodeResult<A>;
|
|
575
|
+
declare function encodeJsonBodyEffect(bodyObj: unknown, validator?: JsonSchemaLike<any>, options?: {
|
|
576
|
+
readonly schemaName?: string;
|
|
577
|
+
}): Async<unknown, ValidationError, string>;
|
|
578
|
+
declare function decodeJsonBodyEffect<A = unknown>(bodyText: string, validator?: JsonSchemaLike<A>, options?: {
|
|
579
|
+
readonly schemaName?: string;
|
|
580
|
+
}): Async<unknown, ValidationError, A>;
|
|
581
|
+
declare function validatedJson<A>(client: HttpClientFn, validator: JsonSchemaLike<A>): (req: Parameters<HttpClientFn>[0]) => Async<unknown, HttpError | ValidationError, A>;
|
|
582
|
+
declare function validatedJsonResponse<A>(client: HttpClientFn, validator: JsonSchemaLike<A>): (req: Parameters<HttpClientFn>[0]) => Async<unknown, HttpError | ValidationError, HttpWireResponse & {
|
|
583
|
+
readonly body: A;
|
|
584
|
+
}>;
|
|
585
|
+
|
|
586
|
+
type KnownHttpError = HttpError | ValidationError | CircuitBreakerError;
|
|
587
|
+
type KnownHttpErrorTag = KnownHttpError["_tag"];
|
|
588
|
+
type ToHttpErrorOptions = {
|
|
589
|
+
readonly signal?: AbortSignal;
|
|
590
|
+
readonly timeoutMs?: number;
|
|
591
|
+
readonly phase?: "request" | "queue" | "retry";
|
|
592
|
+
readonly message?: string | ((error: unknown) => string);
|
|
593
|
+
};
|
|
594
|
+
type RetryableHttpErrorOptions = {
|
|
595
|
+
readonly retryOnStatus?: (status: number) => boolean;
|
|
596
|
+
};
|
|
597
|
+
type HttpErrorHandlers<R> = {
|
|
598
|
+
readonly [K in KnownHttpErrorTag]?: (error: Extract<KnownHttpError, {
|
|
599
|
+
readonly _tag: K;
|
|
600
|
+
}>) => R;
|
|
601
|
+
} & {
|
|
602
|
+
readonly default?: (error: unknown) => R;
|
|
603
|
+
};
|
|
604
|
+
declare function isHttpError(error: unknown): error is HttpError;
|
|
605
|
+
declare function isValidationError(error: unknown): error is ValidationError;
|
|
606
|
+
declare function isCircuitBreakerOpen(error: unknown): error is CircuitBreakerError;
|
|
607
|
+
declare function isKnownHttpError(error: unknown): error is KnownHttpError;
|
|
608
|
+
declare function isAbortHttpError(error: unknown): error is Extract<HttpError, {
|
|
609
|
+
readonly _tag: "Abort";
|
|
610
|
+
}>;
|
|
611
|
+
declare function isTimeoutHttpError(error: unknown): error is Extract<HttpError, {
|
|
612
|
+
readonly _tag: "Timeout" | "PoolTimeout";
|
|
613
|
+
}>;
|
|
614
|
+
declare function isFetchHttpError(error: unknown): error is Extract<HttpError, {
|
|
615
|
+
readonly _tag: "FetchError";
|
|
616
|
+
}>;
|
|
617
|
+
declare function httpErrorStatus(error: unknown): number | undefined;
|
|
618
|
+
declare function isRetryableHttpStatus(status: number): boolean;
|
|
619
|
+
declare function isRetryableHttpError(error: unknown, options?: RetryableHttpErrorOptions): boolean;
|
|
620
|
+
declare function isExternalAbortError(error: unknown): boolean;
|
|
621
|
+
declare function isExternalTimeoutError(error: unknown): boolean;
|
|
622
|
+
declare function toHttpError(error: unknown, options?: ToHttpErrorOptions): HttpError;
|
|
623
|
+
declare function matchHttpError<R>(error: unknown, handlers: HttpErrorHandlers<R>): R | undefined;
|
|
624
|
+
declare function formatHttpError(error: unknown): string;
|
|
625
|
+
|
|
626
|
+
type HttpTransportContext = {
|
|
627
|
+
readonly request: HttpRequest;
|
|
628
|
+
readonly url: URL;
|
|
629
|
+
readonly signal: AbortSignal;
|
|
630
|
+
};
|
|
631
|
+
type HttpTransport = (context: HttpTransportContext) => Async<unknown, HttpError, HttpWireResponse>;
|
|
632
|
+
type HttpStreamTransport = (context: HttpTransportContext) => Async<unknown, HttpError, HttpWireResponseStream>;
|
|
633
|
+
type HttpTransportTiming = {
|
|
634
|
+
readonly startedAt: number;
|
|
635
|
+
readonly durationMs: number;
|
|
636
|
+
};
|
|
637
|
+
type PromiseHttpTransportResponse = Omit<HttpWireResponse, "ms"> & {
|
|
638
|
+
readonly ms?: number;
|
|
639
|
+
};
|
|
640
|
+
type PromiseHttpTransportConfig<Response> = {
|
|
641
|
+
readonly request: (context: HttpTransportContext) => Promise<Response>;
|
|
642
|
+
readonly response: (response: Response, context: HttpTransportContext, timing: HttpTransportTiming) => PromiseHttpTransportResponse | Promise<PromiseHttpTransportResponse>;
|
|
643
|
+
readonly error?: (error: unknown, context: HttpTransportContext) => HttpError;
|
|
644
|
+
};
|
|
645
|
+
type PromiseHttpTransportResponseInfo<Meta = unknown> = {
|
|
646
|
+
readonly status?: number;
|
|
647
|
+
readonly statusText?: string;
|
|
648
|
+
readonly headers?: unknown;
|
|
649
|
+
readonly ms?: number;
|
|
650
|
+
readonly transportMeta?: Meta;
|
|
651
|
+
};
|
|
652
|
+
type PromiseHttpTransportResponseInfoMapper<Response, Meta = unknown> = (response: Response, context: HttpTransportContext, timing: HttpTransportTiming) => PromiseHttpTransportResponseInfo<Meta> | Promise<PromiseHttpTransportResponseInfo<Meta>>;
|
|
653
|
+
type PromiseHttpTransportBodySelector<Response, Body = unknown> = (response: Response, context: HttpTransportContext, timing: HttpTransportTiming) => Body | Promise<Body>;
|
|
654
|
+
type PromiseHttpTransportRequestConfigContext = Omit<HttpTransportContext, "signal">;
|
|
655
|
+
type PromiseHttpTransportRequestConfigMapper<Config> = (context: PromiseHttpTransportRequestConfigContext) => Config | Promise<Config>;
|
|
656
|
+
type PromiseHttpTransportConfigWithSignal<Config> = Config extends object ? Config & {
|
|
657
|
+
readonly signal: AbortSignal;
|
|
658
|
+
} : Config;
|
|
659
|
+
type PromiseHttpTransportRequestConfigBuilder<Config> = {
|
|
660
|
+
readonly send: <Response>(send: (config: PromiseHttpTransportConfigWithSignal<Config>) => Promise<Response>) => PromiseHttpTransportBodyBuilder<Response>;
|
|
661
|
+
};
|
|
662
|
+
type PromiseHttpTransportFluentResponseBuilder<Response> = {
|
|
663
|
+
readonly response: (response?: PromiseHttpTransportResponseInfoMapper<Response>) => HttpTransport;
|
|
664
|
+
readonly error: (error: NonNullable<PromiseHttpTransportConfig<Response>["error"]>) => PromiseHttpTransportFluentResponseBuilder<Response>;
|
|
665
|
+
};
|
|
666
|
+
type PromiseHttpTransportBodyBuilder<Response> = {
|
|
667
|
+
readonly response: (response: PromiseHttpTransportConfig<Response>["response"]) => HttpTransport;
|
|
668
|
+
readonly json: <Body = unknown>(body?: PromiseHttpTransportBodySelector<Response, Body>, response?: PromiseHttpTransportResponseInfoMapper<Response>) => HttpTransport;
|
|
669
|
+
readonly text: (body?: PromiseHttpTransportBodySelector<Response, unknown>, response?: PromiseHttpTransportResponseInfoMapper<Response>) => HttpTransport;
|
|
670
|
+
readonly fromJson: <Body = unknown>(body?: PromiseHttpTransportBodySelector<Response, Body>) => PromiseHttpTransportFluentResponseBuilder<Response>;
|
|
671
|
+
readonly fromText: (body?: PromiseHttpTransportBodySelector<Response, unknown>) => PromiseHttpTransportFluentResponseBuilder<Response>;
|
|
672
|
+
readonly error: (error: NonNullable<PromiseHttpTransportConfig<Response>["error"]>) => PromiseHttpTransportBodyBuilder<Response>;
|
|
673
|
+
};
|
|
674
|
+
type PromiseHttpTransportStartBuilder = {
|
|
675
|
+
readonly request: <Response>(request: PromiseHttpTransportConfig<Response>["request"]) => PromiseHttpTransportBodyBuilder<Response>;
|
|
676
|
+
readonly requestConfig: <Config>(request: PromiseHttpTransportRequestConfigMapper<Config>) => PromiseHttpTransportRequestConfigBuilder<Config>;
|
|
677
|
+
};
|
|
678
|
+
declare const isTaggedHttpError: (error: unknown) => error is HttpError;
|
|
679
|
+
declare const isAbortError: (error: unknown) => boolean;
|
|
680
|
+
declare const normalizeHttpError: (error: unknown, options?: ToHttpErrorOptions) => HttpError;
|
|
681
|
+
declare const headersOf: (response: Response) => Record<string, string>;
|
|
682
|
+
declare function normalizeHttpHeaders(headers: unknown): Record<string, string>;
|
|
683
|
+
declare const abortErrorForSignal: (signal: AbortSignal) => HttpError;
|
|
684
|
+
declare const linkAbortSignals: (...signals: readonly (AbortSignal | undefined)[]) => {
|
|
685
|
+
signal: AbortSignal;
|
|
686
|
+
cleanup: () => void;
|
|
687
|
+
};
|
|
688
|
+
declare function makePromiseHttpTransport<Response>(config: PromiseHttpTransportConfig<Response>): HttpTransport;
|
|
689
|
+
declare function promiseHttpTransport(): PromiseHttpTransportStartBuilder;
|
|
690
|
+
declare function makeFetchTransport(): HttpTransport;
|
|
691
|
+
declare function makeFetchStreamTransport(): HttpStreamTransport;
|
|
692
|
+
|
|
539
693
|
type HttpError = {
|
|
540
694
|
_tag: "Abort";
|
|
541
695
|
} | {
|
|
@@ -544,6 +698,11 @@ type HttpError = {
|
|
|
544
698
|
} | {
|
|
545
699
|
_tag: "FetchError";
|
|
546
700
|
message: string;
|
|
701
|
+
code?: string;
|
|
702
|
+
status?: number;
|
|
703
|
+
statusText?: string;
|
|
704
|
+
retryAfterMs?: number;
|
|
705
|
+
cause?: unknown;
|
|
547
706
|
} | {
|
|
548
707
|
_tag: "Timeout";
|
|
549
708
|
timeoutMs: number;
|
|
@@ -579,17 +738,28 @@ type HttpRequest = {
|
|
|
579
738
|
headers?: Record<string, string>;
|
|
580
739
|
body?: HttpBody;
|
|
581
740
|
init?: HttpInit;
|
|
741
|
+
/** Structured per-request execution policy. Legacy top-level fields are still read. */
|
|
742
|
+
policy?: HttpRequestPolicyRef;
|
|
582
743
|
/** Per-request override for `MakeHttpConfig.timeoutMs`. */
|
|
583
744
|
timeoutMs?: number;
|
|
584
745
|
/** Optional stable key for downstream isolation. When omitted, the pool uses origin/host/global config. */
|
|
585
746
|
poolKey?: string;
|
|
747
|
+
/** @deprecated Use `policy.lane`. Kept for middleware interop. */
|
|
748
|
+
lane?: string;
|
|
749
|
+
/** @deprecated Use `policy.dedupKey`. Kept for middleware interop. */
|
|
750
|
+
dedupKey?: string;
|
|
751
|
+
/** @deprecated Use `policy.priority`. Kept for middleware interop. */
|
|
752
|
+
priority?: number;
|
|
753
|
+
/** @deprecated Use `policy.retry`. Kept for middleware interop. */
|
|
754
|
+
retry?: HttpRequestRetryOverride;
|
|
586
755
|
};
|
|
587
|
-
type HttpWireResponse = {
|
|
756
|
+
type HttpWireResponse<Meta = unknown> = {
|
|
588
757
|
status: number;
|
|
589
758
|
statusText: string;
|
|
590
759
|
headers: Record<string, string>;
|
|
591
760
|
bodyText: string;
|
|
592
761
|
ms: number;
|
|
762
|
+
transportMeta?: Meta;
|
|
593
763
|
};
|
|
594
764
|
type HttpClientStats = {
|
|
595
765
|
readonly inFlight: number;
|
|
@@ -609,17 +779,22 @@ type MakeHttpConfig = {
|
|
|
609
779
|
headers?: Record<string, string>;
|
|
610
780
|
/** Request budget covering pool wait + fetch + body read. Disabled when omitted. */
|
|
611
781
|
timeoutMs?: number;
|
|
782
|
+
/** Effect-based transport. Defaults to `fetch`; provide one for axios/undici/test transports. */
|
|
783
|
+
transport?: HttpTransport;
|
|
784
|
+
/** Effect-based streaming transport. Defaults to `fetch` streaming. */
|
|
785
|
+
streamTransport?: HttpStreamTransport;
|
|
612
786
|
/** Downstream pool/concurrency limiter. Disabled by default to preserve existing behavior. */
|
|
613
787
|
pool?: false | HttpPoolConfig;
|
|
614
788
|
/** Adaptive concurrency limiter. Replaces fixed pool when enabled. */
|
|
615
789
|
adaptiveLimiter?: false | AdaptiveLimiterConfig;
|
|
616
790
|
};
|
|
617
|
-
type HttpWireResponseStream = {
|
|
791
|
+
type HttpWireResponseStream<Meta = unknown> = {
|
|
618
792
|
status: number;
|
|
619
793
|
statusText: string;
|
|
620
794
|
headers: Record<string, string>;
|
|
621
795
|
body: ZStream<unknown, HttpError, Uint8Array>;
|
|
622
796
|
ms: number;
|
|
797
|
+
transportMeta?: Meta;
|
|
623
798
|
};
|
|
624
799
|
type HttpClientStreamFn = (req: HttpRequest) => Async<unknown, HttpError, HttpWireResponseStream>;
|
|
625
800
|
type HttpClientStream = HttpClientStreamFn & {
|
|
@@ -642,4 +817,4 @@ declare function makeHttpStream(cfg?: MakeHttpConfig): HttpClientStream;
|
|
|
642
817
|
declare function makeHttp(cfg?: MakeHttpConfig): HttpClient;
|
|
643
818
|
declare const withRetryStream: (p: RetryPolicy) => (next: HttpClientStream) => HttpClientStream;
|
|
644
819
|
|
|
645
|
-
export {
|
|
820
|
+
export { type PromiseHttpTransportBodyBuilder as $, type AdaptiveLimiterStats as A, type AdaptiveQueueStrategy as B, type AdaptiveReleaseInfo as C, type HttpBody as D, type HttpClientStreamFn as E, HttpConcurrencyPool as F, type HttpErrorHandlers as G, type HttpClient as H, type HttpInit as I, type HttpPolicyPreset as J, type HttpPoolKeyResolver as K, type HttpPoolKeyStats as L, type MakeHttpConfig as M, type HttpPoolLease as N, type HttpPoolStats as O, type HttpRequestPolicy as P, type HttpRetryScheduleInput as Q, type RetryPolicy as R, type HttpStreamTransport as S, type HttpTransportContext as T, type HttpTransportTiming as U, type ValidationError as V, type JsonDecodeResult as W, type KnownHttpError as X, type KnownHttpErrorTag as Y, type LimitChangeEvent as Z, type PerRequestRetryOverride as _, type HttpRequest as a, toHttpError as a$, type PromiseHttpTransportBodySelector as a0, type PromiseHttpTransportConfig as a1, type PromiseHttpTransportConfigWithSignal as a2, type PromiseHttpTransportFluentResponseBuilder as a3, type PromiseHttpTransportRequestConfigBuilder as a4, type PromiseHttpTransportRequestConfigContext as a5, type PromiseHttpTransportRequestConfigMapper as a6, type PromiseHttpTransportResponse as a7, type PromiseHttpTransportResponseInfo as a8, type PromiseHttpTransportResponseInfoMapper as a9, isExternalAbortError as aA, isExternalTimeoutError as aB, isFetchHttpError as aC, isHttpError as aD, isKnownHttpError as aE, isRetryableHttpError as aF, isRetryableHttpStatus as aG, isTaggedHttpError as aH, isTimeoutHttpError as aI, isValidationError as aJ, linkAbortSignals as aK, makeAdaptiveLimiterConfig as aL, makeFetchStreamTransport as aM, makeFetchTransport as aN, makeHttp as aO, makeHttpStream as aP, makePromiseHttpTransport as aQ, matchHttpError as aR, normalizeHeadersInit as aS, normalizeHttpError as aT, normalizeHttpHeaders as aU, normalizeRetryBudget as aV, promiseHttpTransport as aW, resolveConfig as aX, resolveHttpPoolKey as aY, resolveHttpRequestPolicyPresets as aZ, retryAfterMs as a_, type PromiseHttpTransportStartBuilder as aa, type ResolveHttpRequestPolicyOptions as ab, type ResolvedConfig as ac, type RetryEvent as ad, type RetryScheduleInput as ae, type RetryableHttpErrorOptions as af, type ToHttpErrorOptions as ag, abortErrorForSignal as ah, adaptiveLimiterPresets as ai, backoffDelayMs as aj, decodeJsonBody as ak, decodeJsonBodyEffect as al, decorate as am, defaultRetryOnError as an, defaultRetryOnStatus as ao, defaultRetryableMethods as ap, defineHttpPolicyPresets as aq, encodeJsonBodyEffect as ar, formatHttpError as as, getHttpRequestPolicy as at, headersOf as au, httpErrorStatus as av, httpPolicy as aw, isAbortError as ax, isAbortHttpError as ay, isCircuitBreakerOpen as az, type HttpWireResponse as b, validateConfig as b0, validatedJson as b1, validatedJsonResponse as b2, withHttpPolicyPresets as b3, withHttpRequestPolicy as b4, withMiddleware as b5, withRetry as b6, withRetryStream as b7, type HttpError as c, type HttpMiddleware as d, type HttpRequestPolicyRef as e, type HttpRequestRetryOverride as f, type HttpWireResponseStream as g, type HttpClientStream as h, type HttpClientStats as i, AdaptiveLimiter as j, type HttpClientFn as k, type AdaptiveLimiterConfig as l, type HttpMethod as m, type HttpPolicyPresets as n, type HttpTransport as o, type AdaptiveLimiterPreset as p, type HttpPoolConfig as q, type AdaptiveAcquireOptions as r, type AdaptiveBaselineStrategy as s, type AdaptiveHeadroomContext as t, type AdaptiveHeadroomMode as u, type AdaptiveHeadroomStrategy as v, type AdaptiveLease as w, type AdaptiveLimiterDiagnostics as x, type AdaptiveLimiterKeySnapshot as y, type AdaptiveQueueLoadShedding as z };
|
package/dist/core/index.cjs
CHANGED
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var _chunkMWXMNYJScjs = require('../chunk-MWXMNYJS.cjs');
|
|
41
40
|
|
|
42
41
|
|
|
43
42
|
|
|
@@ -61,6 +60,7 @@ var _chunkMWXMNYJScjs = require('../chunk-MWXMNYJS.cjs');
|
|
|
61
60
|
|
|
62
61
|
|
|
63
62
|
|
|
63
|
+
var _chunkQ2I37RP3cjs = require('../chunk-Q2I37RP3.cjs');
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
@@ -70,14 +70,13 @@ var _chunkMWXMNYJScjs = require('../chunk-MWXMNYJS.cjs');
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var _chunkJF4XXPZ5cjs = require('../chunk-JF4XXPZ5.cjs');
|
|
74
73
|
|
|
75
74
|
|
|
76
75
|
|
|
77
76
|
|
|
78
77
|
|
|
78
|
+
var _chunk62AZW6UTcjs = require('../chunk-62AZW6UT.cjs');
|
|
79
79
|
|
|
80
|
-
var _chunk45F7OKGTcjs = require('../chunk-45F7OKGT.cjs');
|
|
81
80
|
|
|
82
81
|
|
|
83
82
|
|
|
@@ -85,12 +84,11 @@ var _chunk45F7OKGTcjs = require('../chunk-45F7OKGT.cjs');
|
|
|
85
84
|
|
|
86
85
|
|
|
87
86
|
|
|
88
|
-
var _chunkJX3LZQJHcjs = require('../chunk-JX3LZQJH.cjs');
|
|
89
87
|
|
|
90
88
|
|
|
91
89
|
|
|
92
90
|
|
|
93
|
-
var
|
|
91
|
+
var _chunkPD4EJTQCcjs = require('../chunk-PD4EJTQC.cjs');
|
|
94
92
|
|
|
95
93
|
|
|
96
94
|
|
|
@@ -112,7 +110,6 @@ var _chunkTVN5I4U6cjs = require('../chunk-TVN5I4U6.cjs');
|
|
|
112
110
|
|
|
113
111
|
|
|
114
112
|
|
|
115
|
-
var _chunkWQ5QNU5Rcjs = require('../chunk-WQ5QNU5R.cjs');
|
|
116
113
|
|
|
117
114
|
|
|
118
115
|
|
|
@@ -136,16 +133,83 @@ var _chunkWQ5QNU5Rcjs = require('../chunk-WQ5QNU5R.cjs');
|
|
|
136
133
|
|
|
137
134
|
|
|
138
135
|
|
|
136
|
+
var _chunkAGR5B2BCcjs = require('../chunk-AGR5B2BC.cjs');
|
|
139
137
|
|
|
140
138
|
|
|
141
139
|
|
|
142
140
|
|
|
141
|
+
var _chunkJF5WGYJJcjs = require('../chunk-JF5WGYJJ.cjs');
|
|
143
142
|
|
|
144
143
|
|
|
145
144
|
|
|
146
145
|
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
var _chunk52PPNNI4cjs = require('../chunk-52PPNNI4.cjs');
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
var _chunkGLE2WY7Zcjs = require('../chunk-GLE2WY7Z.cjs');
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
var _chunkMVGUEJ5Zcjs = require('../chunk-MVGUEJ5Z.cjs');
|
|
212
|
+
require('../chunk-CZIVE6NT.cjs');
|
|
149
213
|
require('../chunk-OBGZSXTJ.cjs');
|
|
150
214
|
|
|
151
215
|
|
|
@@ -281,4 +345,66 @@ require('../chunk-OBGZSXTJ.cjs');
|
|
|
281
345
|
|
|
282
346
|
|
|
283
347
|
|
|
284
|
-
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
exports.Async = _chunkMVGUEJ5Zcjs.Async; exports.Cause = _chunkMVGUEJ5Zcjs.Cause; exports.EventBus = _chunk52PPNNI4cjs.EventBus; exports.Exit = _chunkMVGUEJ5Zcjs.Exit; exports.InMemoryTracer = _chunk52PPNNI4cjs.InMemoryTracer; exports.Layer = _chunkQ2I37RP3cjs.Layer; exports.LayerContext = _chunkQ2I37RP3cjs.LayerContext; exports.MissingLayerServiceError = _chunkQ2I37RP3cjs.MissingLayerServiceError; exports.NoopHooks = _chunkGLE2WY7Zcjs.NoopHooks; exports.Resource = _chunk62AZW6UTcjs.Resource; exports.Runtime = _chunkGLE2WY7Zcjs.Runtime; exports.RuntimeFiber = _chunkGLE2WY7Zcjs.RuntimeFiber; exports.RuntimeRegistry = _chunkQ2I37RP3cjs.RuntimeRegistry; exports.Schedule = _chunkAGR5B2BCcjs.Schedule; exports.Scope = _chunkJF5WGYJJcjs.Scope; exports.Supervisor = _chunkQ2I37RP3cjs.Supervisor; exports.TestClock = _chunkQ2I37RP3cjs.TestClock; exports.TestScheduler = _chunkQ2I37RP3cjs.TestScheduler; exports.abortablePromiseStats = _chunkGLE2WY7Zcjs.abortablePromiseStats; exports.acquireRelease = _chunkMVGUEJ5Zcjs.acquireRelease; exports.andThenSchedule = _chunkAGR5B2BCcjs.andThen; exports.assertCompletesWithin = _chunkQ2I37RP3cjs.assertCompletesWithin; exports.assertFails = _chunkQ2I37RP3cjs.assertFails; exports.assertFailsWith = _chunkQ2I37RP3cjs.assertFailsWith; exports.assertSucceeds = _chunkQ2I37RP3cjs.assertSucceeds; exports.async = _chunkMVGUEJ5Zcjs.asyncEffect; exports.asyncCatchAll = _chunkMVGUEJ5Zcjs.asyncCatchAll; exports.asyncFail = _chunkMVGUEJ5Zcjs.asyncFail; exports.asyncFlatMap = _chunkMVGUEJ5Zcjs.asyncFlatMap; exports.asyncFold = _chunkMVGUEJ5Zcjs.asyncFold; exports.asyncInterruptible = _chunkMVGUEJ5Zcjs.asyncInterruptible; exports.asyncMap = _chunkMVGUEJ5Zcjs.asyncMap; exports.asyncMapError = _chunkMVGUEJ5Zcjs.asyncMapError; exports.asyncSucceed = _chunkMVGUEJ5Zcjs.asyncSucceed; exports.asyncSync = _chunkMVGUEJ5Zcjs.asyncSync; exports.asyncTotal = _chunkMVGUEJ5Zcjs.asyncTotal; exports.bracket = _chunk62AZW6UTcjs.bracket; exports.buildLayer = _chunkQ2I37RP3cjs.buildLayer; exports.catchAll = _chunkMVGUEJ5Zcjs.catchAll; exports.catchTag = _chunkQ2I37RP3cjs.catchTag; exports.catchTags = _chunkQ2I37RP3cjs.catchTags; exports.composeLayer = _chunkQ2I37RP3cjs.compose; exports.consoleJsonLogger = _chunkQ2I37RP3cjs.consoleJsonLogger; exports.contramapSchedule = _chunkAGR5B2BCcjs.contramap; exports.ctxExtend = _chunkGLE2WY7Zcjs.ctxExtend; exports.ctxToObject = _chunkGLE2WY7Zcjs.ctxToObject; exports.defaultTracer = _chunkQ2I37RP3cjs.defaultTracer; exports.defineLayer = _chunkQ2I37RP3cjs.defineLayer; exports.defineService = _chunkQ2I37RP3cjs.defineService; exports.delayedEffect = _chunkQ2I37RP3cjs.delayedEffect; exports.derivedRef = _chunkQ2I37RP3cjs.derivedRef; exports.dumpAllFibers = _chunkQ2I37RP3cjs.dumpAllFibers; exports.elapsed = _chunkAGR5B2BCcjs.elapsed; exports.emptyContext = _chunkGLE2WY7Zcjs.emptyContext; exports.end = _chunkMVGUEJ5Zcjs.end; exports.ensuring = _chunk62AZW6UTcjs.ensuring; exports.exponential = _chunkAGR5B2BCcjs.exponential; exports.fail = _chunkMVGUEJ5Zcjs.fail; exports.fiberRefSnapshot = _chunkPD4EJTQCcjs.fiberRefSnapshot; exports.fibonacci = _chunkAGR5B2BCcjs.fibonacci; exports.fixed = _chunkAGR5B2BCcjs.fixed; exports.flakyEffect = _chunkQ2I37RP3cjs.flakyEffect; exports.flatMap = _chunkMVGUEJ5Zcjs.flatMap; exports.forever = _chunkAGR5B2BCcjs.forever; exports.fork = _chunkGLE2WY7Zcjs.fork; exports.formatCause = _chunkMVGUEJ5Zcjs.formatCause; exports.formatLayerError = _chunkQ2I37RP3cjs.formatLayerError; exports.fromPromiseAbortable = _chunkGLE2WY7Zcjs.fromPromiseAbortable; exports.getBenchmarkBudget = _chunkGLE2WY7Zcjs.getBenchmarkBudget; exports.getCurrentFiber = _chunkGLE2WY7Zcjs.getCurrentFiber; exports.getFiberRef = _chunkPD4EJTQCcjs.getFiberRef; exports.getService = _chunkQ2I37RP3cjs.getService; exports.gracefulShutdown = _chunkQ2I37RP3cjs.gracefulShutdown; exports.interruptible = _chunkMVGUEJ5Zcjs.interruptible; exports.intersect = _chunkAGR5B2BCcjs.intersect; exports.isCause = _chunkMVGUEJ5Zcjs.isCause; exports.jitter = _chunkAGR5B2BCcjs.jitter; exports.jittered = _chunkAGR5B2BCcjs.jittered; exports.jitteredSchedule = _chunkAGR5B2BCcjs.jitteredSchedule; exports.joinSupervised = _chunkQ2I37RP3cjs.joinSupervised; exports.layer = _chunkQ2I37RP3cjs.layer; exports.layerEffect = _chunkQ2I37RP3cjs.layerEffect; exports.layerFail = _chunkQ2I37RP3cjs.layerFail; exports.layerFrom = _chunkQ2I37RP3cjs.layerFrom; exports.layerFromContext = _chunkQ2I37RP3cjs.layerFromContext; exports.layerSucceed = _chunkQ2I37RP3cjs.layerSucceed; exports.layerValue = _chunkQ2I37RP3cjs.layerValue; exports.linear = _chunkAGR5B2BCcjs.linear; exports.linkAbortController = _chunkQ2I37RP3cjs.linkAbortController; exports.liveClock = _chunkGLE2WY7Zcjs.liveClock; exports.locallyFiberRef = _chunkPD4EJTQCcjs.locallyFiberRef; exports.locallyFiberRefWith = _chunkPD4EJTQCcjs.locallyFiberRefWith; exports.makeCancelToken = _chunkQ2I37RP3cjs.makeCancelToken; exports.makeCircuitBreaker = _chunk62AZW6UTcjs.makeCircuitBreaker; exports.makeFiberRef = _chunkPD4EJTQCcjs.makeFiberRef; exports.makeLayerScope = _chunkQ2I37RP3cjs.makeLayerScope; exports.makeMetrics = _chunk52PPNNI4cjs.makeMetrics; exports.makeRef = _chunkQ2I37RP3cjs.makeRef; exports.makeResource = _chunk62AZW6UTcjs.makeResource; exports.makeRuntime = _chunkQ2I37RP3cjs.makeRuntime; exports.makeRuntimeEventRecord = _chunk52PPNNI4cjs.makeRuntimeEventRecord; exports.makeRuntimeRecorder = _chunkPD4EJTQCcjs.makeRuntimeRecorder; exports.makeScheduleDriver = _chunkAGR5B2BCcjs.makeScheduleDriver; exports.makeSemaphore = _chunkQ2I37RP3cjs.makeSemaphore; exports.makeServiceTag = _chunkQ2I37RP3cjs.makeServiceTag; exports.makeSupervisor = _chunkQ2I37RP3cjs.makeSupervisor; exports.makeTestRuntime = _chunkQ2I37RP3cjs.makeTestRuntime; exports.makeTracer = _chunkQ2I37RP3cjs.makeTracer; exports.makeWorkerPool = _chunkQ2I37RP3cjs.makeWorkerPool; exports.managed = _chunk62AZW6UTcjs.managed; exports.managedAll = _chunk62AZW6UTcjs.managedAll; exports.map = _chunkMVGUEJ5Zcjs.map; exports.mapAsync = _chunkMVGUEJ5Zcjs.mapAsync; exports.mapError = _chunkMVGUEJ5Zcjs.mapError; exports.mapErrorTyped = _chunkQ2I37RP3cjs.mapError; exports.mapLayer = _chunkQ2I37RP3cjs.mapLayer; exports.mapSchedule = _chunkAGR5B2BCcjs.map; exports.mapTryAsync = _chunkMVGUEJ5Zcjs.mapTryAsync; exports.maxDelay = _chunkAGR5B2BCcjs.maxDelay; exports.maxElapsed = _chunkAGR5B2BCcjs.maxElapsed; exports.mergeLayer = _chunkQ2I37RP3cjs.merge; exports.modifyFiberRef = _chunkPD4EJTQCcjs.modifyFiberRef; exports.namedSchedule = _chunkAGR5B2BCcjs.named; exports.never = _chunkAGR5B2BCcjs.never; exports.neverEffect = _chunkQ2I37RP3cjs.neverEffect; exports.none = _chunkMVGUEJ5Zcjs.none; exports.once = _chunkAGR5B2BCcjs.once; exports.orElse = _chunkQ2I37RP3cjs.orElse; exports.orElseOptional = _chunkMVGUEJ5Zcjs.orElseOptional; exports.pollWithSchedule = _chunkAGR5B2BCcjs.poll; exports.prettyCause = _chunkMVGUEJ5Zcjs.prettyCause; exports.provide = _chunkQ2I37RP3cjs.provide; exports.provideContext = _chunkQ2I37RP3cjs.provideContext; exports.provideLayer = _chunkQ2I37RP3cjs.provideLayer; exports.provideLayerContext = _chunkQ2I37RP3cjs.provideLayerContext; exports.recurs = _chunkAGR5B2BCcjs.recurs; exports.registerShutdownHooks = _chunkQ2I37RP3cjs.registerShutdownHooks; exports.repeatWithSchedule = _chunkAGR5B2BCcjs.repeatWithSchedule; exports.repeatWithScheduleAlias = _chunkAGR5B2BCcjs.repeat; exports.resetAbortablePromiseStats = _chunkGLE2WY7Zcjs.resetAbortablePromiseStats; exports.resource = _chunk62AZW6UTcjs.resource; exports.resourceAll = _chunk62AZW6UTcjs.resourceAll; exports.resourceFromManaged = _chunk62AZW6UTcjs.resourceFromManaged; exports.resourceSucceed = _chunk62AZW6UTcjs.resourceSucceed; exports.retry = _chunkAGR5B2BCcjs.retry; exports.retryN = _chunkAGR5B2BCcjs.retryN; exports.retryWithBackoff = _chunkAGR5B2BCcjs.retryWithBackoff; exports.retryWithSchedule = _chunkAGR5B2BCcjs.retryWithSchedule; exports.retryWithScheduleAlias = _chunkAGR5B2BCcjs.retry2; exports.runEffect = _chunkQ2I37RP3cjs.runEffect; exports.runExit = _chunkQ2I37RP3cjs.runExit; exports.runPromise = _chunkQ2I37RP3cjs.runPromise; exports.runSchedule = _chunkAGR5B2BCcjs.runSchedule; exports.runtimeClockFromEnv = _chunkGLE2WY7Zcjs.runtimeClockFromEnv; exports.runtimeEventRecordContext = _chunk52PPNNI4cjs.runtimeEventRecordContext; exports.runtimeForCaller = _chunkGLE2WY7Zcjs.runtimeForCaller; exports.runtimeHooksToEventHandler = _chunk52PPNNI4cjs.runtimeHooksToEventHandler; exports.scheduleDriver = _chunkAGR5B2BCcjs.scheduleDriver; exports.serviceTag = _chunkQ2I37RP3cjs.serviceTag; exports.setBenchmarkBudget = _chunkGLE2WY7Zcjs.setBenchmarkBudget; exports.setFiberRef = _chunkPD4EJTQCcjs.setFiberRef; exports.sleep = _chunkAGR5B2BCcjs.sleep; exports.some = _chunkMVGUEJ5Zcjs.some; exports.spaced = _chunkAGR5B2BCcjs.spaced; exports.succeed = _chunkMVGUEJ5Zcjs.succeed; exports.supervise = _chunkQ2I37RP3cjs.supervise; exports.sync = _chunkMVGUEJ5Zcjs.sync; exports.tagError = _chunkQ2I37RP3cjs.tagError; exports.takeSchedule = _chunkAGR5B2BCcjs.take; exports.tapDecision = _chunkAGR5B2BCcjs.tapDecision; exports.timeout = _chunkAGR5B2BCcjs.timeout; exports.toPromise = _chunkGLE2WY7Zcjs.toPromise; exports.toPromiseByCaller = _chunkGLE2WY7Zcjs.toPromiseByCaller; exports.uninterruptible = _chunkMVGUEJ5Zcjs.uninterruptible; exports.uninterruptibleMask = _chunkMVGUEJ5Zcjs.uninterruptibleMask; exports.union = _chunkAGR5B2BCcjs.union; exports.unit = _chunkMVGUEJ5Zcjs.unit; exports.unsafeGetCurrentRuntime = _chunkGLE2WY7Zcjs.unsafeGetCurrentRuntime; exports.unsafeGetFiberRef = _chunkPD4EJTQCcjs.unsafeGetFiberRef; exports.unsafeRunAsync = _chunkGLE2WY7Zcjs.unsafeRunAsync; exports.unsafeRunFoldWithEnv = _chunkGLE2WY7Zcjs.unsafeRunFoldWithEnv; exports.unsafeSetFiberRef = _chunkPD4EJTQCcjs.unsafeSetFiberRef; exports.untilInput = _chunkAGR5B2BCcjs.untilInput; exports.untilOutput = _chunkAGR5B2BCcjs.untilOutput; exports.upTo = _chunkAGR5B2BCcjs.upTo; exports.updateFiberRef = _chunkPD4EJTQCcjs.updateFiberRef; exports.useManaged = _chunk62AZW6UTcjs.useManaged; exports.useResource = _chunk62AZW6UTcjs.useResource; exports.whileInput = _chunkAGR5B2BCcjs.whileInput; exports.whileOutput = _chunkAGR5B2BCcjs.whileOutput; exports.windowed = _chunkAGR5B2BCcjs.windowed; exports.withAsyncPromise = _chunkMVGUEJ5Zcjs.withAsyncPromise; exports.withCurrentFiber = _chunkGLE2WY7Zcjs.withCurrentFiber; exports.withScope = _chunkJF5WGYJJcjs.withScope; exports.withScopeAsync = _chunkJF5WGYJJcjs.withScopeAsync;
|