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.
Files changed (219) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +287 -23
  3. package/dist/agent/cli/main.cjs +38 -38
  4. package/dist/agent/cli/main.js +6 -6
  5. package/dist/agent/cli/main.mjs +6 -6
  6. package/dist/agent/index.cjs +7 -7
  7. package/dist/agent/index.d.ts +1 -1
  8. package/dist/agent/index.js +6 -6
  9. package/dist/agent/index.mjs +6 -6
  10. package/dist/chunk-2HQTDLHF.mjs +683 -0
  11. package/dist/chunk-36I3M4UC.mjs +370 -0
  12. package/dist/{chunk-QY5FKYEQ.js → chunk-3AYM6WPJ.js} +570 -51
  13. package/dist/chunk-3LOYJFRR.cjs +300 -0
  14. package/dist/chunk-3Y2RIUMM.js +300 -0
  15. package/dist/{chunk-7XOPAB5Q.js → chunk-4P2HHGAX.mjs} +83 -5
  16. package/dist/{chunk-N6VHMOWB.cjs → chunk-4ROBZFL6.cjs} +128 -128
  17. package/dist/{chunk-NC5SDRYE.js → chunk-52OB2ROS.js} +4 -4
  18. package/dist/{chunk-JX3LZQJH.cjs → chunk-52PPNNI4.cjs} +82 -20
  19. package/dist/{chunk-5YOQOXEQ.cjs → chunk-5EC274J5.cjs} +676 -293
  20. package/dist/chunk-5QC7LRZ3.js +229 -0
  21. package/dist/{chunk-7TL2LHQJ.js → chunk-5VRJNBLZ.mjs} +524 -141
  22. package/dist/chunk-62AZW6UT.cjs +313 -0
  23. package/dist/chunk-6IXXWIUM.js +683 -0
  24. package/dist/chunk-6RY2FFN4.mjs +2024 -0
  25. package/dist/chunk-74ZTY6CP.js +2871 -0
  26. package/dist/chunk-7CMJS3QE.mjs +2871 -0
  27. package/dist/{chunk-2WC63LJK.mjs → chunk-7JIJOVCT.js} +20 -10
  28. package/dist/chunk-7X3K5RMS.js +2024 -0
  29. package/dist/chunk-7ZPEZ57L.cjs +2024 -0
  30. package/dist/{chunk-FM4W4QPL.js → chunk-A2OM6NEH.mjs} +5 -4
  31. package/dist/chunk-AGR5B2BC.cjs +683 -0
  32. package/dist/chunk-B33ICAKP.js +313 -0
  33. package/dist/{chunk-J3H54ZRV.mjs → chunk-B5JD23U7.mjs} +1 -1
  34. package/dist/{chunk-F5EUMJL7.mjs → chunk-BKK77SBA.js} +83 -5
  35. package/dist/{chunk-U5KWK3PX.mjs → chunk-C3MDXTRZ.js} +11 -0
  36. package/dist/{chunk-SPUEME2B.cjs → chunk-CZIVE6NT.cjs} +12 -1
  37. package/dist/{chunk-TDVMADDN.js → chunk-DNFJLJMW.mjs} +11 -0
  38. package/dist/{chunk-XDZOO4L5.js → chunk-EJ6BPYVR.mjs} +79 -17
  39. package/dist/chunk-EOC4UHBS.mjs +229 -0
  40. package/dist/chunk-F6XWZQY4.cjs +777 -0
  41. package/dist/{chunk-7LVI2GIN.js → chunk-FH2X7BVP.js} +507 -72
  42. package/dist/{chunk-OOGJ73B6.js → chunk-FHQGHPMO.mjs} +20 -10
  43. package/dist/{chunk-WQ5QNU5R.cjs → chunk-GLE2WY7Z.cjs} +652 -217
  44. package/dist/{chunk-G6IQOE4P.mjs → chunk-GYM3LLGS.mjs} +507 -72
  45. package/dist/{chunk-TVN5I4U6.cjs → chunk-JF5WGYJJ.cjs} +25 -24
  46. package/dist/{chunk-CY33PGEX.mjs → chunk-KH4SYAOS.mjs} +570 -51
  47. package/dist/chunk-KN32XNTH.mjs +313 -0
  48. package/dist/chunk-KQLYONSE.cjs +2871 -0
  49. package/dist/{chunk-7HUOJA4W.cjs → chunk-KZJQ723N.cjs} +90 -80
  50. package/dist/{chunk-CCKHV5BT.mjs → chunk-L2SYFEBS.js} +5 -4
  51. package/dist/{chunk-IJT6RRQ5.cjs → chunk-L6VB5N7Q.cjs} +20 -9
  52. package/dist/{chunk-ZGLD4TVZ.mjs → chunk-MBEJI5HF.mjs} +4 -4
  53. package/dist/{chunk-PRWCB3QL.mjs → chunk-MIIYDLGM.js} +524 -141
  54. package/dist/{chunk-H55LI6WY.js → chunk-MOO4L7F4.mjs} +15 -4
  55. package/dist/chunk-MVGUEJ5Z.cjs +370 -0
  56. package/dist/chunk-PD4EJTQC.cjs +229 -0
  57. package/dist/chunk-PWC3RBQE.mjs +300 -0
  58. package/dist/{chunk-MWXMNYJS.cjs → chunk-Q2I37RP3.cjs} +643 -124
  59. package/dist/{chunk-VFIUZG7J.mjs → chunk-RKGKFN2A.js} +79 -17
  60. package/dist/{chunk-NYL4D7SK.cjs → chunk-SA6HUJVI.cjs} +5 -5
  61. package/dist/chunk-SK7UZRNI.mjs +777 -0
  62. package/dist/{chunk-K2T3DV26.mjs → chunk-TRM4JUZQ.js} +15 -4
  63. package/dist/chunk-UB4B6OFY.js +370 -0
  64. package/dist/{chunk-G3XGCZDQ.js → chunk-UCUBNWM2.js} +1 -1
  65. package/dist/chunk-VWIPB6I5.js +777 -0
  66. package/dist/{chunk-JNFRRJYH.cjs → chunk-WBGRHGBP.cjs} +270 -192
  67. package/dist/{client-CtFmoDvM.d.ts → client-CZHU674n.d.ts} +211 -36
  68. package/dist/core/index.cjs +135 -9
  69. package/dist/core/index.d.ts +238 -33
  70. package/dist/core/index.js +155 -29
  71. package/dist/core/index.mjs +155 -29
  72. package/dist/{effect-CGNl5Rqp.d.ts → effect-DIUHZ9IN.d.ts} +89 -1
  73. package/dist/effectRunner-CFLC32IK.cjs +8 -0
  74. package/dist/{effectRunner-A4CHJXJI.js → effectRunner-L4S7IPT3.js} +2 -2
  75. package/dist/{effectRunner-OPUF6QRN.mjs → effectRunner-NNGG75QA.mjs} +2 -2
  76. package/dist/http/index.cjs +324 -2986
  77. package/dist/http/index.d.ts +54 -68
  78. package/dist/http/index.js +238 -2900
  79. package/dist/http/index.mjs +238 -2900
  80. package/dist/http/testing.cjs +14 -12
  81. package/dist/http/testing.d.ts +5 -4
  82. package/dist/http/testing.js +10 -8
  83. package/dist/http/testing.mjs +10 -8
  84. package/dist/index.cjs +423 -255
  85. package/dist/index.d.ts +87 -69
  86. package/dist/index.js +301 -133
  87. package/dist/index.mjs +301 -133
  88. package/dist/observability/index.cjs +18 -531
  89. package/dist/observability/index.d.ts +81 -8
  90. package/dist/observability/index.js +25 -538
  91. package/dist/observability/index.mjs +25 -538
  92. package/dist/perf/cli.cjs +401 -0
  93. package/dist/perf/cli.d.ts +1 -0
  94. package/dist/perf/cli.js +401 -0
  95. package/dist/perf/cli.mjs +401 -0
  96. package/dist/perf/index.cjs +141 -0
  97. package/dist/perf/index.d.ts +483 -0
  98. package/dist/perf/index.js +141 -0
  99. package/dist/perf/index.mjs +141 -0
  100. package/dist/schedule-CK3Ml_7p.d.ts +259 -0
  101. package/dist/schema/index.cjs +6 -2
  102. package/dist/schema/index.d.ts +3 -1
  103. package/dist/schema/index.js +5 -1
  104. package/dist/schema/index.mjs +5 -1
  105. package/dist/{server-C8hDXA74.d.ts → server-D6JZ15_e.d.ts} +16 -4
  106. package/dist/{stream-dvSs0QS5.d.ts → stream-B4oK9JFP.d.ts} +1 -1
  107. package/dist/{tracer-B5tRH9H7.d.ts → tracer-Hwt1cl7h.d.ts} +13 -54
  108. package/dist/{tracing-Dt9S_6V8.d.ts → tracing-DqbTKGcf.d.ts} +1 -1
  109. package/docs/ARCHITECTURE.md +292 -0
  110. package/docs/README.md +65 -0
  111. package/docs/adr/0001-ai-context-pack.md +32 -0
  112. package/docs/agent-apply-mode.md +104 -0
  113. package/docs/agent-approvals.md +110 -0
  114. package/docs/agent-batch.md +185 -0
  115. package/docs/agent-boundaries.md +112 -0
  116. package/docs/agent-chat-sessions.md +160 -0
  117. package/docs/agent-ci.md +17 -0
  118. package/docs/agent-cli.md +405 -0
  119. package/docs/agent-config.md +480 -0
  120. package/docs/agent-context-discovery.md +159 -0
  121. package/docs/agent-copilot-like-dx.md +126 -0
  122. package/docs/agent-declarative-optimized-planning.md +138 -0
  123. package/docs/agent-dx.md +224 -0
  124. package/docs/agent-env-files.md +126 -0
  125. package/docs/agent-follow-up-context.md +43 -0
  126. package/docs/agent-global-usage.md +180 -0
  127. package/docs/agent-init.md +109 -0
  128. package/docs/agent-install-and-configure.md +516 -0
  129. package/docs/agent-language-workspace-ux.md +99 -0
  130. package/docs/agent-llm-adapters.md +123 -0
  131. package/docs/agent-local-install.md +190 -0
  132. package/docs/agent-local-tests.md +51 -0
  133. package/docs/agent-observability.md +155 -0
  134. package/docs/agent-patch-quality-loop.md +162 -0
  135. package/docs/agent-presets.md +22 -0
  136. package/docs/agent-project-commands.md +237 -0
  137. package/docs/agent-project-intelligence.md +156 -0
  138. package/docs/agent-redaction.md +18 -0
  139. package/docs/agent-release-readiness.md +76 -0
  140. package/docs/agent-rollback-safety.md +162 -0
  141. package/docs/agent-rollback.md +23 -0
  142. package/docs/agent-run-artifacts.md +16 -0
  143. package/docs/agent-vscode-auto-discovery.md +137 -0
  144. package/docs/agent-vscode-batch-runner.md +100 -0
  145. package/docs/agent-vscode-chat-layout.md +90 -0
  146. package/docs/agent-vscode-clean-install.md +147 -0
  147. package/docs/agent-vscode-code-actions.md +70 -0
  148. package/docs/agent-vscode-diff-preview.md +45 -0
  149. package/docs/agent-vscode-inline-assist.md +56 -0
  150. package/docs/agent-vscode-install.md +186 -0
  151. package/docs/agent-vscode-model-setup.md +97 -0
  152. package/docs/agent-vscode-patch-preview.md +92 -0
  153. package/docs/agent-vscode-problems.md +79 -0
  154. package/docs/agent-vscode-project-dashboard.md +106 -0
  155. package/docs/agent-vscode-run-history.md +92 -0
  156. package/docs/agent-vscode-ux.md +73 -0
  157. package/docs/ai/INVARIANTS.md +84 -0
  158. package/docs/ai/PROJECT_MAP.md +338 -0
  159. package/docs/ai/PUBLIC_API.md +339 -0
  160. package/docs/ai/VALIDATION_MATRIX.md +67 -0
  161. package/docs/api-polish.md +37 -0
  162. package/docs/cancellation.md +162 -0
  163. package/docs/coverage.md +46 -0
  164. package/docs/framework-integrations.md +38 -0
  165. package/docs/frameworks/angular.md +153 -0
  166. package/docs/frameworks/express.md +125 -0
  167. package/docs/frameworks/fastify.md +124 -0
  168. package/docs/frameworks/nestjs.md +282 -0
  169. package/docs/frameworks/nextjs.md +147 -0
  170. package/docs/frameworks/react.md +139 -0
  171. package/docs/frameworks/vanilla.md +224 -0
  172. package/docs/getting-started.md +159 -0
  173. package/docs/guides/README.md +40 -0
  174. package/docs/guides/circuit-breaker.md +89 -0
  175. package/docs/guides/error-handling.md +91 -0
  176. package/docs/guides/getting-started.md +107 -0
  177. package/docs/guides/layers.md +189 -0
  178. package/docs/guides/metrics.md +101 -0
  179. package/docs/guides/resource-management.md +141 -0
  180. package/docs/guides/retry.md +215 -0
  181. package/docs/guides/semaphore.md +66 -0
  182. package/docs/guides/streams.md +117 -0
  183. package/docs/guides/supervisors.md +98 -0
  184. package/docs/guides/testing.md +162 -0
  185. package/docs/guides/tracing.md +71 -0
  186. package/docs/http-recipes.md +399 -0
  187. package/docs/http.md +749 -0
  188. package/docs/modules.md +285 -0
  189. package/docs/nestjs.md +6 -0
  190. package/docs/observability-collector-smoke.md +31 -0
  191. package/docs/observability-framework-examples.md +110 -0
  192. package/docs/observability.md +649 -0
  193. package/docs/otel-collector-smoke.yaml +27 -0
  194. package/docs/performance-profiler.md +199 -0
  195. package/docs/production-readiness.md +73 -0
  196. package/docs/recipes/README.md +12 -0
  197. package/docs/recipes/http-server.md +45 -0
  198. package/docs/recipes/layers.md +44 -0
  199. package/docs/recipes/performance.md +47 -0
  200. package/docs/recipes/runtime.md +41 -0
  201. package/docs/recipes/testing.md +41 -0
  202. package/docs/release.md +53 -0
  203. package/docs/wasm-bounded-queues.md +44 -0
  204. package/docs/wasm-engine-observability-benchmarks.md +85 -0
  205. package/docs/wasm-fiber-engine.md +117 -0
  206. package/docs/wasm-scheduler-state-machine.md +122 -0
  207. package/docs/wasm-stream-chunks.md +54 -0
  208. package/package.json +22 -2
  209. package/dist/chunk-45F7OKGT.cjs +0 -104
  210. package/dist/chunk-7V4KY4RL.mjs +0 -104
  211. package/dist/chunk-DJQ7OMMB.cjs +0 -144
  212. package/dist/chunk-GOV47PPB.mjs +0 -552
  213. package/dist/chunk-JF4XXPZ5.cjs +0 -552
  214. package/dist/chunk-KCPT2D6G.js +0 -552
  215. package/dist/chunk-NOYZIMUJ.mjs +0 -144
  216. package/dist/chunk-PNVFW245.js +0 -144
  217. package/dist/chunk-ROJC3NBJ.js +0 -104
  218. package/dist/effectRunner-3ZHAD3LE.cjs +0 -8
  219. package/dist/schedule-Fque9Abz.d.ts +0 -70
@@ -1,6 +1,47 @@
1
- import { A as Async } from './effect-CGNl5Rqp.js';
2
- import { Z as ZStream } from './stream-dvSs0QS5.js';
3
- import { S as Schedule } from './schedule-Fque9Abz.js';
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. Attached as `(req as any).retry`.
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 = false | {
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) => e is {
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 { resolveHttpPoolKey as $, type AdaptiveLimiterStats as A, HttpConcurrencyPool as B, type HttpInit as C, type HttpPoolKeyResolver as D, type HttpPoolKeyStats as E, type HttpPoolLease as F, type HttpPoolStats as G, type HttpClient as H, type ResolvedConfig as I, type RetryEvent as J, type RetryScheduleInput as K, type LimitChangeEvent as L, type MakeHttpConfig as M, adaptiveLimiterPresets as N, backoffDelayMs as O, type PerRequestRetryOverride as P, decorate as Q, type RetryPolicy as R, defaultRetryOnError as S, defaultRetryOnStatus as T, defaultRetryableMethods as U, makeAdaptiveLimiterConfig as V, makeHttp as W, makeHttpStream as X, normalizeHeadersInit as Y, normalizeRetryBudget as Z, resolveConfig as _, type HttpRequest as a, retryAfterMs as a0, validateConfig as a1, withMiddleware as a2, withRetry as a3, withRetryStream as a4, type HttpWireResponse as b, type HttpError as c, type HttpMiddleware as d, type HttpClientFn as e, type HttpWireResponseStream as f, type HttpClientStream as g, type HttpClientStats as h, AdaptiveLimiter as i, type AdaptiveLimiterConfig as j, type HttpMethod as k, type AdaptiveLimiterPreset as l, type HttpPoolConfig as m, type AdaptiveAcquireOptions as n, type AdaptiveBaselineStrategy as o, type AdaptiveHeadroomContext as p, type AdaptiveHeadroomMode as q, type AdaptiveHeadroomStrategy as r, type AdaptiveLease as s, type AdaptiveLimiterDiagnostics as t, type AdaptiveLimiterKeySnapshot as u, type AdaptiveQueueLoadShedding as v, type AdaptiveQueueStrategy as w, type AdaptiveReleaseInfo as x, type HttpBody as y, type HttpClientStreamFn as z };
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 };
@@ -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 _chunkTVN5I4U6cjs = require('../chunk-TVN5I4U6.cjs');
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
- var _chunkDJQ7OMMBcjs = require('../chunk-DJQ7OMMB.cjs');
148
- require('../chunk-SPUEME2B.cjs');
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
- exports.Async = _chunkDJQ7OMMBcjs.Async; exports.Cause = _chunkDJQ7OMMBcjs.Cause; exports.EventBus = _chunkJX3LZQJHcjs.EventBus; exports.Exit = _chunkDJQ7OMMBcjs.Exit; exports.InMemoryTracer = _chunkJX3LZQJHcjs.InMemoryTracer; exports.NoopHooks = _chunkWQ5QNU5Rcjs.NoopHooks; exports.Resource = _chunkJF4XXPZ5cjs.Resource; exports.Runtime = _chunkWQ5QNU5Rcjs.Runtime; exports.RuntimeFiber = _chunkWQ5QNU5Rcjs.RuntimeFiber; exports.RuntimeRegistry = _chunkMWXMNYJScjs.RuntimeRegistry; exports.Scope = _chunkTVN5I4U6cjs.Scope; exports.Supervisor = _chunkMWXMNYJScjs.Supervisor; exports.abortablePromiseStats = _chunkWQ5QNU5Rcjs.abortablePromiseStats; exports.acquireRelease = _chunkDJQ7OMMBcjs.acquireRelease; exports.andThenSchedule = _chunkJF4XXPZ5cjs.andThen; exports.assertCompletesWithin = _chunkMWXMNYJScjs.assertCompletesWithin; exports.assertFails = _chunkMWXMNYJScjs.assertFails; exports.assertFailsWith = _chunkMWXMNYJScjs.assertFailsWith; exports.assertSucceeds = _chunkMWXMNYJScjs.assertSucceeds; exports.async = _chunkDJQ7OMMBcjs.asyncEffect; exports.asyncCatchAll = _chunkDJQ7OMMBcjs.asyncCatchAll; exports.asyncFail = _chunkDJQ7OMMBcjs.asyncFail; exports.asyncFlatMap = _chunkDJQ7OMMBcjs.asyncFlatMap; exports.asyncFold = _chunkDJQ7OMMBcjs.asyncFold; exports.asyncInterruptible = _chunkDJQ7OMMBcjs.asyncInterruptible; exports.asyncMap = _chunkDJQ7OMMBcjs.asyncMap; exports.asyncMapError = _chunkDJQ7OMMBcjs.asyncMapError; exports.asyncSucceed = _chunkDJQ7OMMBcjs.asyncSucceed; exports.asyncSync = _chunkDJQ7OMMBcjs.asyncSync; exports.asyncTotal = _chunkDJQ7OMMBcjs.asyncTotal; exports.bracket = _chunkJF4XXPZ5cjs.bracket; exports.catchAll = _chunkDJQ7OMMBcjs.catchAll; exports.catchTag = _chunkMWXMNYJScjs.catchTag; exports.catchTags = _chunkMWXMNYJScjs.catchTags; exports.composeLayer = _chunkMWXMNYJScjs.compose; exports.consoleJsonLogger = _chunkMWXMNYJScjs.consoleJsonLogger; exports.contramapSchedule = _chunkJF4XXPZ5cjs.contramap; exports.ctxExtend = _chunkWQ5QNU5Rcjs.ctxExtend; exports.ctxToObject = _chunkWQ5QNU5Rcjs.ctxToObject; exports.defaultTracer = _chunkMWXMNYJScjs.defaultTracer; exports.delayedEffect = _chunkMWXMNYJScjs.delayedEffect; exports.derivedRef = _chunkMWXMNYJScjs.derivedRef; exports.dumpAllFibers = _chunkMWXMNYJScjs.dumpAllFibers; exports.elapsed = _chunkJF4XXPZ5cjs.elapsed; exports.emptyContext = _chunkWQ5QNU5Rcjs.emptyContext; exports.end = _chunkDJQ7OMMBcjs.end; exports.ensuring = _chunkJF4XXPZ5cjs.ensuring; exports.exponential = _chunkJF4XXPZ5cjs.exponential; exports.fail = _chunkDJQ7OMMBcjs.fail; exports.fibonacci = _chunkJF4XXPZ5cjs.fibonacci; exports.fixed = _chunkJF4XXPZ5cjs.fixed; exports.flakyEffect = _chunkMWXMNYJScjs.flakyEffect; exports.flatMap = _chunkDJQ7OMMBcjs.flatMap; exports.fork = _chunkWQ5QNU5Rcjs.fork; exports.fromPromiseAbortable = _chunkWQ5QNU5Rcjs.fromPromiseAbortable; exports.getBenchmarkBudget = _chunkWQ5QNU5Rcjs.getBenchmarkBudget; exports.getCurrentFiber = _chunkWQ5QNU5Rcjs.getCurrentFiber; exports.gracefulShutdown = _chunkMWXMNYJScjs.gracefulShutdown; exports.intersect = _chunkJF4XXPZ5cjs.intersect; exports.jitter = _chunkJF4XXPZ5cjs.jitter; exports.jittered = _chunkJF4XXPZ5cjs.jittered; exports.jitteredSchedule = _chunkJF4XXPZ5cjs.jitteredSchedule; exports.joinSupervised = _chunkMWXMNYJScjs.joinSupervised; exports.layer = _chunkMWXMNYJScjs.layer; exports.layerFail = _chunkMWXMNYJScjs.layerFail; exports.layerFrom = _chunkMWXMNYJScjs.layerFrom; exports.layerSucceed = _chunkMWXMNYJScjs.layerSucceed; exports.linkAbortController = _chunkMWXMNYJScjs.linkAbortController; exports.makeCancelToken = _chunkMWXMNYJScjs.makeCancelToken; exports.makeCircuitBreaker = _chunkJF4XXPZ5cjs.makeCircuitBreaker; exports.makeMetrics = _chunkJX3LZQJHcjs.makeMetrics; exports.makeRef = _chunkMWXMNYJScjs.makeRef; exports.makeResource = _chunkJF4XXPZ5cjs.makeResource; exports.makeRuntimeEventRecord = _chunkJX3LZQJHcjs.makeRuntimeEventRecord; exports.makeSemaphore = _chunkMWXMNYJScjs.makeSemaphore; exports.makeSupervisor = _chunkMWXMNYJScjs.makeSupervisor; exports.makeTestRuntime = _chunkMWXMNYJScjs.makeTestRuntime; exports.makeTracer = _chunkMWXMNYJScjs.makeTracer; exports.makeWorkerPool = _chunkMWXMNYJScjs.makeWorkerPool; exports.managed = _chunkJF4XXPZ5cjs.managed; exports.managedAll = _chunkJF4XXPZ5cjs.managedAll; exports.map = _chunkDJQ7OMMBcjs.map; exports.mapAsync = _chunkDJQ7OMMBcjs.mapAsync; exports.mapError = _chunkDJQ7OMMBcjs.mapError; exports.mapErrorTyped = _chunkMWXMNYJScjs.mapError; exports.mapLayer = _chunkMWXMNYJScjs.mapLayer; exports.mapSchedule = _chunkJF4XXPZ5cjs.map; exports.mapTryAsync = _chunkDJQ7OMMBcjs.mapTryAsync; exports.mergeLayer = _chunkMWXMNYJScjs.merge; exports.neverEffect = _chunkMWXMNYJScjs.neverEffect; exports.none = _chunkDJQ7OMMBcjs.none; exports.orElse = _chunkMWXMNYJScjs.orElse; exports.orElseOptional = _chunkDJQ7OMMBcjs.orElseOptional; exports.provideLayer = _chunkMWXMNYJScjs.provideLayer; exports.recurs = _chunkJF4XXPZ5cjs.recurs; exports.registerShutdownHooks = _chunkMWXMNYJScjs.registerShutdownHooks; exports.repeatWithSchedule = _chunkJF4XXPZ5cjs.repeatWithSchedule; exports.resetAbortablePromiseStats = _chunkWQ5QNU5Rcjs.resetAbortablePromiseStats; exports.resource = _chunkJF4XXPZ5cjs.resource; exports.resourceAll = _chunkJF4XXPZ5cjs.resourceAll; exports.resourceFromManaged = _chunkJF4XXPZ5cjs.resourceFromManaged; exports.resourceSucceed = _chunkJF4XXPZ5cjs.resourceSucceed; exports.retry = _chunk45F7OKGTcjs.retry; exports.retryN = _chunk45F7OKGTcjs.retryN; exports.retryWithBackoff = _chunk45F7OKGTcjs.retryWithBackoff; exports.retryWithSchedule = _chunkJF4XXPZ5cjs.retryWithSchedule; exports.runtimeEventRecordContext = _chunkJX3LZQJHcjs.runtimeEventRecordContext; exports.runtimeForCaller = _chunkWQ5QNU5Rcjs.runtimeForCaller; exports.runtimeHooksToEventHandler = _chunkJX3LZQJHcjs.runtimeHooksToEventHandler; exports.setBenchmarkBudget = _chunkWQ5QNU5Rcjs.setBenchmarkBudget; exports.sleep = _chunk45F7OKGTcjs.sleep; exports.some = _chunkDJQ7OMMBcjs.some; exports.succeed = _chunkDJQ7OMMBcjs.succeed; exports.supervise = _chunkMWXMNYJScjs.supervise; exports.sync = _chunkDJQ7OMMBcjs.sync; exports.tagError = _chunkMWXMNYJScjs.tagError; exports.takeSchedule = _chunkJF4XXPZ5cjs.take; exports.timeout = _chunk45F7OKGTcjs.timeout; exports.toPromise = _chunkWQ5QNU5Rcjs.toPromise; exports.toPromiseByCaller = _chunkWQ5QNU5Rcjs.toPromiseByCaller; exports.union = _chunkJF4XXPZ5cjs.union; exports.unit = _chunkDJQ7OMMBcjs.unit; exports.unsafeGetCurrentRuntime = _chunkWQ5QNU5Rcjs.unsafeGetCurrentRuntime; exports.unsafeRunAsync = _chunkWQ5QNU5Rcjs.unsafeRunAsync; exports.unsafeRunFoldWithEnv = _chunkWQ5QNU5Rcjs.unsafeRunFoldWithEnv; exports.useManaged = _chunkJF4XXPZ5cjs.useManaged; exports.useResource = _chunkJF4XXPZ5cjs.useResource; exports.whileInput = _chunkJF4XXPZ5cjs.whileInput; exports.windowed = _chunkJF4XXPZ5cjs.windowed; exports.withAsyncPromise = _chunkDJQ7OMMBcjs.withAsyncPromise; exports.withCurrentFiber = _chunkWQ5QNU5Rcjs.withCurrentFiber; exports.withScope = _chunkTVN5I4U6cjs.withScope; exports.withScopeAsync = _chunkTVN5I4U6cjs.withScopeAsync;
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;