effect 4.0.0-beta.70 → 4.0.0-beta.71

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 (1424) hide show
  1. package/dist/Array.d.ts +1428 -138
  2. package/dist/Array.d.ts.map +1 -1
  3. package/dist/Array.js +595 -126
  4. package/dist/Array.js.map +1 -1
  5. package/dist/BigDecimal.d.ts +594 -8
  6. package/dist/BigDecimal.d.ts.map +1 -1
  7. package/dist/BigDecimal.js +307 -8
  8. package/dist/BigDecimal.js.map +1 -1
  9. package/dist/BigInt.d.ts +457 -3
  10. package/dist/BigInt.d.ts.map +1 -1
  11. package/dist/BigInt.js +279 -3
  12. package/dist/BigInt.js.map +1 -1
  13. package/dist/Boolean.d.ts +229 -7
  14. package/dist/Boolean.d.ts.map +1 -1
  15. package/dist/Boolean.js +155 -5
  16. package/dist/Boolean.js.map +1 -1
  17. package/dist/Brand.d.ts +51 -5
  18. package/dist/Brand.d.ts.map +1 -1
  19. package/dist/Brand.js +80 -8
  20. package/dist/Brand.js.map +1 -1
  21. package/dist/Cache.d.ts +64 -3
  22. package/dist/Cache.d.ts.map +1 -1
  23. package/dist/Cache.js +50 -12
  24. package/dist/Cache.js.map +1 -1
  25. package/dist/Cause.d.ts +475 -183
  26. package/dist/Cause.d.ts.map +1 -1
  27. package/dist/Cause.js +336 -114
  28. package/dist/Cause.js.map +1 -1
  29. package/dist/Channel.d.ts +398 -59
  30. package/dist/Channel.d.ts.map +1 -1
  31. package/dist/Channel.js +166 -47
  32. package/dist/Channel.js.map +1 -1
  33. package/dist/ChannelSchema.d.ts +78 -3
  34. package/dist/ChannelSchema.d.ts.map +1 -1
  35. package/dist/ChannelSchema.js +44 -3
  36. package/dist/ChannelSchema.js.map +1 -1
  37. package/dist/Chunk.d.ts +112 -0
  38. package/dist/Chunk.d.ts.map +1 -1
  39. package/dist/Chunk.js +32 -0
  40. package/dist/Chunk.js.map +1 -1
  41. package/dist/Clock.d.ts +57 -0
  42. package/dist/Clock.d.ts.map +1 -1
  43. package/dist/Clock.js +30 -0
  44. package/dist/Clock.js.map +1 -1
  45. package/dist/Combiner.d.ts +15 -11
  46. package/dist/Combiner.d.ts.map +1 -1
  47. package/dist/Combiner.js +8 -8
  48. package/dist/Combiner.js.map +1 -1
  49. package/dist/Config.d.ts +126 -40
  50. package/dist/Config.d.ts.map +1 -1
  51. package/dist/Config.js +102 -29
  52. package/dist/Config.js.map +1 -1
  53. package/dist/ConfigProvider.d.ts +48 -25
  54. package/dist/ConfigProvider.d.ts.map +1 -1
  55. package/dist/ConfigProvider.js +17 -17
  56. package/dist/ConfigProvider.js.map +1 -1
  57. package/dist/Console.d.ts +22 -1
  58. package/dist/Console.d.ts.map +1 -1
  59. package/dist/Console.js +22 -1
  60. package/dist/Console.js.map +1 -1
  61. package/dist/Context.d.ts +491 -36
  62. package/dist/Context.d.ts.map +1 -1
  63. package/dist/Context.js +185 -11
  64. package/dist/Context.js.map +1 -1
  65. package/dist/Cron.d.ts +110 -1
  66. package/dist/Cron.d.ts.map +1 -1
  67. package/dist/Cron.js +86 -1
  68. package/dist/Cron.js.map +1 -1
  69. package/dist/Crypto.d.ts +29 -0
  70. package/dist/Crypto.d.ts.map +1 -1
  71. package/dist/Crypto.js +29 -0
  72. package/dist/Crypto.js.map +1 -1
  73. package/dist/Data.d.ts +77 -26
  74. package/dist/Data.d.ts.map +1 -1
  75. package/dist/Data.js +10 -7
  76. package/dist/Data.js.map +1 -1
  77. package/dist/DateTime.d.ts +149 -6
  78. package/dist/DateTime.d.ts.map +1 -1
  79. package/dist/DateTime.js +81 -2
  80. package/dist/DateTime.js.map +1 -1
  81. package/dist/Deferred.d.ts +340 -74
  82. package/dist/Deferred.d.ts.map +1 -1
  83. package/dist/Deferred.js +128 -9
  84. package/dist/Deferred.js.map +1 -1
  85. package/dist/Differ.d.ts +5 -0
  86. package/dist/Differ.d.ts.map +1 -1
  87. package/dist/Duration.d.ts +164 -11
  88. package/dist/Duration.d.ts.map +1 -1
  89. package/dist/Duration.js +91 -11
  90. package/dist/Duration.js.map +1 -1
  91. package/dist/Effect.d.ts +1822 -537
  92. package/dist/Effect.d.ts.map +1 -1
  93. package/dist/Effect.js +684 -224
  94. package/dist/Effect.js.map +1 -1
  95. package/dist/Effectable.d.ts +14 -0
  96. package/dist/Effectable.d.ts.map +1 -1
  97. package/dist/Effectable.js +14 -0
  98. package/dist/Effectable.js.map +1 -1
  99. package/dist/Encoding.d.ts +89 -0
  100. package/dist/Encoding.d.ts.map +1 -1
  101. package/dist/Encoding.js +131 -1
  102. package/dist/Encoding.js.map +1 -1
  103. package/dist/Equal.d.ts +7 -7
  104. package/dist/Equal.js +5 -5
  105. package/dist/Equivalence.d.ts +41 -24
  106. package/dist/Equivalence.d.ts.map +1 -1
  107. package/dist/Equivalence.js +38 -21
  108. package/dist/Equivalence.js.map +1 -1
  109. package/dist/ErrorReporter.d.ts +123 -5
  110. package/dist/ErrorReporter.d.ts.map +1 -1
  111. package/dist/ErrorReporter.js +85 -5
  112. package/dist/ErrorReporter.js.map +1 -1
  113. package/dist/ExecutionPlan.d.ts +89 -24
  114. package/dist/ExecutionPlan.d.ts.map +1 -1
  115. package/dist/ExecutionPlan.js +21 -0
  116. package/dist/ExecutionPlan.js.map +1 -1
  117. package/dist/Exit.d.ts +128 -82
  118. package/dist/Exit.d.ts.map +1 -1
  119. package/dist/Exit.js +106 -69
  120. package/dist/Exit.js.map +1 -1
  121. package/dist/Fiber.d.ts +317 -68
  122. package/dist/Fiber.d.ts.map +1 -1
  123. package/dist/Fiber.js +150 -1
  124. package/dist/Fiber.js.map +1 -1
  125. package/dist/FileSystem.d.ts +69 -10
  126. package/dist/FileSystem.d.ts.map +1 -1
  127. package/dist/FileSystem.js +85 -29
  128. package/dist/FileSystem.js.map +1 -1
  129. package/dist/Filter.d.ts +221 -2
  130. package/dist/Filter.d.ts.map +1 -1
  131. package/dist/Filter.js +155 -2
  132. package/dist/Filter.js.map +1 -1
  133. package/dist/Formatter.d.ts +3 -3
  134. package/dist/Formatter.js +2 -2
  135. package/dist/Function.d.ts +152 -6
  136. package/dist/Function.d.ts.map +1 -1
  137. package/dist/Function.js +104 -3
  138. package/dist/Function.js.map +1 -1
  139. package/dist/Graph.d.ts +275 -3
  140. package/dist/Graph.d.ts.map +1 -1
  141. package/dist/Graph.js +63 -0
  142. package/dist/Graph.js.map +1 -1
  143. package/dist/HKT.d.ts +55 -23
  144. package/dist/HKT.d.ts.map +1 -1
  145. package/dist/Hash.d.ts +92 -16
  146. package/dist/Hash.d.ts.map +1 -1
  147. package/dist/Hash.js +116 -14
  148. package/dist/Hash.js.map +1 -1
  149. package/dist/HashMap.d.ts +2 -2
  150. package/dist/HashMap.js +2 -2
  151. package/dist/HashRing.d.ts +203 -0
  152. package/dist/HashRing.d.ts.map +1 -1
  153. package/dist/HashRing.js +92 -0
  154. package/dist/HashRing.js.map +1 -1
  155. package/dist/Inspectable.d.ts +43 -0
  156. package/dist/Inspectable.d.ts.map +1 -1
  157. package/dist/Inspectable.js +70 -13
  158. package/dist/Inspectable.js.map +1 -1
  159. package/dist/Iterable.d.ts +179 -25
  160. package/dist/Iterable.d.ts.map +1 -1
  161. package/dist/Iterable.js +95 -23
  162. package/dist/Iterable.js.map +1 -1
  163. package/dist/JsonPatch.d.ts +33 -18
  164. package/dist/JsonPatch.d.ts.map +1 -1
  165. package/dist/JsonPatch.js +51 -43
  166. package/dist/JsonPatch.js.map +1 -1
  167. package/dist/JsonPointer.d.ts +2 -2
  168. package/dist/JsonPointer.js +2 -2
  169. package/dist/JsonSchema.d.ts +64 -10
  170. package/dist/JsonSchema.d.ts.map +1 -1
  171. package/dist/JsonSchema.js +32 -8
  172. package/dist/JsonSchema.js.map +1 -1
  173. package/dist/Latch.d.ts +156 -11
  174. package/dist/Latch.d.ts.map +1 -1
  175. package/dist/Latch.js +77 -2
  176. package/dist/Latch.js.map +1 -1
  177. package/dist/Layer.d.ts +250 -74
  178. package/dist/Layer.d.ts.map +1 -1
  179. package/dist/Layer.js +71 -21
  180. package/dist/Layer.js.map +1 -1
  181. package/dist/LayerMap.d.ts +8 -0
  182. package/dist/LayerMap.d.ts.map +1 -1
  183. package/dist/LayerMap.js.map +1 -1
  184. package/dist/LogLevel.d.ts +93 -18
  185. package/dist/LogLevel.d.ts.map +1 -1
  186. package/dist/LogLevel.js +65 -6
  187. package/dist/LogLevel.js.map +1 -1
  188. package/dist/Logger.d.ts +19 -5
  189. package/dist/Logger.d.ts.map +1 -1
  190. package/dist/Logger.js +24 -11
  191. package/dist/Logger.js.map +1 -1
  192. package/dist/ManagedRuntime.d.ts +81 -9
  193. package/dist/ManagedRuntime.d.ts.map +1 -1
  194. package/dist/ManagedRuntime.js +32 -1
  195. package/dist/ManagedRuntime.js.map +1 -1
  196. package/dist/Match.d.ts +185 -7
  197. package/dist/Match.d.ts.map +1 -1
  198. package/dist/Match.js +212 -24
  199. package/dist/Match.js.map +1 -1
  200. package/dist/Metric.d.ts +33 -20
  201. package/dist/Metric.d.ts.map +1 -1
  202. package/dist/Metric.js +26 -13
  203. package/dist/Metric.js.map +1 -1
  204. package/dist/MutableHashMap.d.ts +272 -21
  205. package/dist/MutableHashMap.d.ts.map +1 -1
  206. package/dist/MutableHashMap.js +123 -0
  207. package/dist/MutableHashMap.js.map +1 -1
  208. package/dist/MutableHashSet.d.ts +107 -0
  209. package/dist/MutableHashSet.d.ts.map +1 -1
  210. package/dist/MutableHashSet.js +96 -37
  211. package/dist/MutableHashSet.js.map +1 -1
  212. package/dist/MutableList.d.ts +10 -2
  213. package/dist/MutableList.d.ts.map +1 -1
  214. package/dist/MutableList.js +10 -2
  215. package/dist/MutableList.js.map +1 -1
  216. package/dist/MutableRef.d.ts +136 -0
  217. package/dist/MutableRef.d.ts.map +1 -1
  218. package/dist/MutableRef.js +70 -0
  219. package/dist/MutableRef.js.map +1 -1
  220. package/dist/Newtype.d.ts +20 -11
  221. package/dist/Newtype.d.ts.map +1 -1
  222. package/dist/Newtype.js +6 -6
  223. package/dist/Newtype.js.map +1 -1
  224. package/dist/NonEmptyIterable.d.ts +20 -4
  225. package/dist/NonEmptyIterable.d.ts.map +1 -1
  226. package/dist/NonEmptyIterable.js +5 -0
  227. package/dist/NonEmptyIterable.js.map +1 -1
  228. package/dist/Number.d.ts +417 -2
  229. package/dist/Number.d.ts.map +1 -1
  230. package/dist/Number.js +255 -2
  231. package/dist/Number.js.map +1 -1
  232. package/dist/Optic.d.ts +17 -17
  233. package/dist/Optic.js +12 -12
  234. package/dist/Option.d.ts +168 -129
  235. package/dist/Option.d.ts.map +1 -1
  236. package/dist/Option.js +67 -63
  237. package/dist/Option.js.map +1 -1
  238. package/dist/Order.d.ts +82 -82
  239. package/dist/Order.d.ts.map +1 -1
  240. package/dist/Order.js +138 -109
  241. package/dist/Order.js.map +1 -1
  242. package/dist/Ordering.d.ts +32 -0
  243. package/dist/Ordering.d.ts.map +1 -1
  244. package/dist/Ordering.js +19 -0
  245. package/dist/Ordering.js.map +1 -1
  246. package/dist/PartitionedSemaphore.d.ts +238 -11
  247. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  248. package/dist/PartitionedSemaphore.js +107 -5
  249. package/dist/PartitionedSemaphore.js.map +1 -1
  250. package/dist/Path.d.ts +35 -4
  251. package/dist/Path.d.ts.map +1 -1
  252. package/dist/Path.js +21 -4
  253. package/dist/Path.js.map +1 -1
  254. package/dist/Pipeable.d.ts +27 -2
  255. package/dist/Pipeable.d.ts.map +1 -1
  256. package/dist/Pipeable.js +14 -2
  257. package/dist/Pipeable.js.map +1 -1
  258. package/dist/PlatformError.d.ts +53 -4
  259. package/dist/PlatformError.d.ts.map +1 -1
  260. package/dist/PlatformError.js +45 -4
  261. package/dist/PlatformError.js.map +1 -1
  262. package/dist/Pool.d.ts +140 -14
  263. package/dist/Pool.d.ts.map +1 -1
  264. package/dist/Pool.js +63 -8
  265. package/dist/Pool.js.map +1 -1
  266. package/dist/Predicate.d.ts +96 -87
  267. package/dist/Predicate.d.ts.map +1 -1
  268. package/dist/Predicate.js +107 -73
  269. package/dist/Predicate.js.map +1 -1
  270. package/dist/PrimaryKey.d.ts +74 -8
  271. package/dist/PrimaryKey.d.ts.map +1 -1
  272. package/dist/PrimaryKey.js +69 -8
  273. package/dist/PrimaryKey.js.map +1 -1
  274. package/dist/PubSub.d.ts +94 -20
  275. package/dist/PubSub.d.ts.map +1 -1
  276. package/dist/PubSub.js +94 -20
  277. package/dist/PubSub.js.map +1 -1
  278. package/dist/Pull.d.ts +147 -2
  279. package/dist/Pull.d.ts.map +1 -1
  280. package/dist/Pull.js +68 -1
  281. package/dist/Pull.js.map +1 -1
  282. package/dist/Queue.d.ts +127 -35
  283. package/dist/Queue.d.ts.map +1 -1
  284. package/dist/Queue.js +127 -35
  285. package/dist/Queue.js.map +1 -1
  286. package/dist/Random.d.ts +71 -16
  287. package/dist/Random.d.ts.map +1 -1
  288. package/dist/Random.js +35 -0
  289. package/dist/Random.js.map +1 -1
  290. package/dist/RcMap.d.ts +168 -6
  291. package/dist/RcMap.d.ts.map +1 -1
  292. package/dist/RcMap.js +48 -2
  293. package/dist/RcMap.js.map +1 -1
  294. package/dist/RcRef.d.ts +73 -18
  295. package/dist/RcRef.d.ts.map +1 -1
  296. package/dist/RcRef.js +23 -3
  297. package/dist/RcRef.js.map +1 -1
  298. package/dist/Record.d.ts +95 -1
  299. package/dist/Record.d.ts.map +1 -1
  300. package/dist/Record.js +95 -1
  301. package/dist/Record.js.map +1 -1
  302. package/dist/Redactable.d.ts +20 -16
  303. package/dist/Redactable.d.ts.map +1 -1
  304. package/dist/Redactable.js +15 -11
  305. package/dist/Redactable.js.map +1 -1
  306. package/dist/Redacted.d.ts +82 -4
  307. package/dist/Redacted.d.ts.map +1 -1
  308. package/dist/Redacted.js +64 -4
  309. package/dist/Redacted.js.map +1 -1
  310. package/dist/Reducer.d.ts +17 -5
  311. package/dist/Reducer.d.ts.map +1 -1
  312. package/dist/Reducer.js +2 -2
  313. package/dist/Reducer.js.map +1 -1
  314. package/dist/Ref.d.ts +156 -20
  315. package/dist/Ref.d.ts.map +1 -1
  316. package/dist/Ref.js +125 -20
  317. package/dist/Ref.js.map +1 -1
  318. package/dist/References.d.ts +208 -12
  319. package/dist/References.d.ts.map +1 -1
  320. package/dist/References.js +144 -5
  321. package/dist/References.js.map +1 -1
  322. package/dist/RegExp.d.ts +13 -0
  323. package/dist/RegExp.d.ts.map +1 -1
  324. package/dist/RegExp.js +47 -1
  325. package/dist/RegExp.js.map +1 -1
  326. package/dist/Request.d.ts +215 -32
  327. package/dist/Request.d.ts.map +1 -1
  328. package/dist/Request.js +54 -7
  329. package/dist/Request.js.map +1 -1
  330. package/dist/RequestResolver.d.ts +202 -15
  331. package/dist/RequestResolver.d.ts.map +1 -1
  332. package/dist/RequestResolver.js +94 -5
  333. package/dist/RequestResolver.js.map +1 -1
  334. package/dist/Resource.d.ts +62 -3
  335. package/dist/Resource.d.ts.map +1 -1
  336. package/dist/Resource.js +52 -3
  337. package/dist/Resource.js.map +1 -1
  338. package/dist/Result.d.ts +328 -23
  339. package/dist/Result.d.ts.map +1 -1
  340. package/dist/Result.js +132 -12
  341. package/dist/Result.js.map +1 -1
  342. package/dist/Runtime.d.ts +123 -13
  343. package/dist/Runtime.d.ts.map +1 -1
  344. package/dist/Runtime.js +149 -24
  345. package/dist/Runtime.js.map +1 -1
  346. package/dist/Schedule.d.ts +418 -93
  347. package/dist/Schedule.d.ts.map +1 -1
  348. package/dist/Schedule.js +334 -97
  349. package/dist/Schedule.js.map +1 -1
  350. package/dist/Scheduler.d.ts +50 -1
  351. package/dist/Scheduler.d.ts.map +1 -1
  352. package/dist/Scheduler.js +39 -0
  353. package/dist/Scheduler.js.map +1 -1
  354. package/dist/Schema.d.ts +467 -42
  355. package/dist/Schema.d.ts.map +1 -1
  356. package/dist/Schema.js +248 -48
  357. package/dist/Schema.js.map +1 -1
  358. package/dist/SchemaAST.d.ts +205 -2
  359. package/dist/SchemaAST.d.ts.map +1 -1
  360. package/dist/SchemaAST.js +205 -2
  361. package/dist/SchemaAST.js.map +1 -1
  362. package/dist/SchemaGetter.d.ts +123 -123
  363. package/dist/SchemaGetter.js +111 -111
  364. package/dist/SchemaIssue.d.ts +25 -24
  365. package/dist/SchemaIssue.d.ts.map +1 -1
  366. package/dist/SchemaIssue.js +19 -19
  367. package/dist/SchemaIssue.js.map +1 -1
  368. package/dist/SchemaParser.d.ts +238 -3
  369. package/dist/SchemaParser.d.ts.map +1 -1
  370. package/dist/SchemaParser.js +279 -21
  371. package/dist/SchemaParser.js.map +1 -1
  372. package/dist/SchemaRepresentation.d.ts +61 -17
  373. package/dist/SchemaRepresentation.d.ts.map +1 -1
  374. package/dist/SchemaRepresentation.js +58 -14
  375. package/dist/SchemaRepresentation.js.map +1 -1
  376. package/dist/SchemaTransformation.d.ts +76 -38
  377. package/dist/SchemaTransformation.d.ts.map +1 -1
  378. package/dist/SchemaTransformation.js +73 -35
  379. package/dist/SchemaTransformation.js.map +1 -1
  380. package/dist/SchemaUtils.d.ts +9 -0
  381. package/dist/SchemaUtils.d.ts.map +1 -1
  382. package/dist/SchemaUtils.js +38 -11
  383. package/dist/SchemaUtils.js.map +1 -1
  384. package/dist/Scope.d.ts +79 -14
  385. package/dist/Scope.d.ts.map +1 -1
  386. package/dist/Scope.js +63 -14
  387. package/dist/Scope.js.map +1 -1
  388. package/dist/ScopedCache.d.ts +352 -7
  389. package/dist/ScopedCache.d.ts.map +1 -1
  390. package/dist/ScopedCache.js +151 -3
  391. package/dist/ScopedCache.js.map +1 -1
  392. package/dist/ScopedRef.d.ts +67 -5
  393. package/dist/ScopedRef.d.ts.map +1 -1
  394. package/dist/ScopedRef.js +47 -3
  395. package/dist/ScopedRef.js.map +1 -1
  396. package/dist/Semaphore.d.ts +347 -28
  397. package/dist/Semaphore.d.ts.map +1 -1
  398. package/dist/Semaphore.js +102 -7
  399. package/dist/Semaphore.js.map +1 -1
  400. package/dist/Sink.d.ts +307 -4
  401. package/dist/Sink.d.ts.map +1 -1
  402. package/dist/Sink.js +173 -2
  403. package/dist/Sink.js.map +1 -1
  404. package/dist/Stdio.d.ts +69 -15
  405. package/dist/Stdio.d.ts.map +1 -1
  406. package/dist/Stdio.js +60 -15
  407. package/dist/Stdio.js.map +1 -1
  408. package/dist/Stream.d.ts +516 -65
  409. package/dist/Stream.d.ts.map +1 -1
  410. package/dist/Stream.js +234 -33
  411. package/dist/Stream.js.map +1 -1
  412. package/dist/String.d.ts +173 -2
  413. package/dist/String.d.ts.map +1 -1
  414. package/dist/String.js +149 -2
  415. package/dist/String.js.map +1 -1
  416. package/dist/Struct.d.ts +19 -10
  417. package/dist/Struct.d.ts.map +1 -1
  418. package/dist/Struct.js +13 -4
  419. package/dist/Struct.js.map +1 -1
  420. package/dist/SubscriptionRef.d.ts +73 -14
  421. package/dist/SubscriptionRef.d.ts.map +1 -1
  422. package/dist/SubscriptionRef.js +72 -13
  423. package/dist/SubscriptionRef.js.map +1 -1
  424. package/dist/Symbol.d.ts +24 -6
  425. package/dist/Symbol.d.ts.map +1 -1
  426. package/dist/Symbol.js +24 -6
  427. package/dist/Symbol.js.map +1 -1
  428. package/dist/SynchronizedRef.d.ts +502 -2
  429. package/dist/SynchronizedRef.d.ts.map +1 -1
  430. package/dist/SynchronizedRef.js +184 -2
  431. package/dist/SynchronizedRef.js.map +1 -1
  432. package/dist/Take.d.ts +36 -13
  433. package/dist/Take.d.ts.map +1 -1
  434. package/dist/Take.js +5 -0
  435. package/dist/Take.js.map +1 -1
  436. package/dist/Terminal.d.ts +68 -17
  437. package/dist/Terminal.d.ts.map +1 -1
  438. package/dist/Terminal.js +33 -2
  439. package/dist/Terminal.js.map +1 -1
  440. package/dist/Tracer.d.ts +49 -0
  441. package/dist/Tracer.d.ts.map +1 -1
  442. package/dist/Tracer.js +49 -0
  443. package/dist/Tracer.js.map +1 -1
  444. package/dist/Trie.d.ts +48 -9
  445. package/dist/Trie.d.ts.map +1 -1
  446. package/dist/Trie.js.map +1 -1
  447. package/dist/Tuple.d.ts +70 -35
  448. package/dist/Tuple.d.ts.map +1 -1
  449. package/dist/Tuple.js +32 -21
  450. package/dist/Tuple.js.map +1 -1
  451. package/dist/TxChunk.d.ts +40 -7
  452. package/dist/TxChunk.d.ts.map +1 -1
  453. package/dist/TxChunk.js +40 -7
  454. package/dist/TxChunk.js.map +1 -1
  455. package/dist/TxDeferred.d.ts +85 -2
  456. package/dist/TxDeferred.d.ts.map +1 -1
  457. package/dist/TxDeferred.js +56 -2
  458. package/dist/TxDeferred.js.map +1 -1
  459. package/dist/TxPriorityQueue.d.ts +29 -2
  460. package/dist/TxPriorityQueue.d.ts.map +1 -1
  461. package/dist/TxPriorityQueue.js +29 -2
  462. package/dist/TxPriorityQueue.js.map +1 -1
  463. package/dist/TxPubSub.d.ts +94 -4
  464. package/dist/TxPubSub.d.ts.map +1 -1
  465. package/dist/TxPubSub.js +66 -4
  466. package/dist/TxPubSub.js.map +1 -1
  467. package/dist/TxQueue.d.ts +48 -7
  468. package/dist/TxQueue.d.ts.map +1 -1
  469. package/dist/TxQueue.js.map +1 -1
  470. package/dist/TxReentrantLock.d.ts +40 -4
  471. package/dist/TxReentrantLock.d.ts.map +1 -1
  472. package/dist/TxReentrantLock.js +40 -4
  473. package/dist/TxReentrantLock.js.map +1 -1
  474. package/dist/TxRef.d.ts +112 -7
  475. package/dist/TxRef.d.ts.map +1 -1
  476. package/dist/TxRef.js +81 -7
  477. package/dist/TxRef.js.map +1 -1
  478. package/dist/TxSemaphore.d.ts +173 -14
  479. package/dist/TxSemaphore.d.ts.map +1 -1
  480. package/dist/TxSemaphore.js +130 -14
  481. package/dist/TxSemaphore.js.map +1 -1
  482. package/dist/TxSubscriptionRef.d.ts +205 -2
  483. package/dist/TxSubscriptionRef.d.ts.map +1 -1
  484. package/dist/TxSubscriptionRef.js +110 -2
  485. package/dist/TxSubscriptionRef.js.map +1 -1
  486. package/dist/Types.d.ts +60 -6
  487. package/dist/Types.d.ts.map +1 -1
  488. package/dist/UndefinedOr.d.ts +171 -30
  489. package/dist/UndefinedOr.d.ts.map +1 -1
  490. package/dist/UndefinedOr.js +115 -30
  491. package/dist/UndefinedOr.js.map +1 -1
  492. package/dist/Unify.d.ts +120 -12
  493. package/dist/Unify.d.ts.map +1 -1
  494. package/dist/Unify.js +36 -12
  495. package/dist/Unify.js.map +1 -1
  496. package/dist/Utils.d.ts +20 -14
  497. package/dist/Utils.d.ts.map +1 -1
  498. package/dist/Utils.js +13 -4
  499. package/dist/Utils.js.map +1 -1
  500. package/dist/index.d.ts +0 -5205
  501. package/dist/index.d.ts.map +1 -1
  502. package/dist/index.js +0 -5205
  503. package/dist/index.js.map +1 -1
  504. package/dist/internal/effect.js.map +1 -1
  505. package/dist/internal/request.js +3 -1
  506. package/dist/internal/request.js.map +1 -1
  507. package/dist/internal/schema/arbitrary.js +11 -1
  508. package/dist/internal/schema/arbitrary.js.map +1 -1
  509. package/dist/internal/schema/representation.js +21 -12
  510. package/dist/internal/schema/representation.js.map +1 -1
  511. package/dist/testing/TestConsole.d.ts +69 -0
  512. package/dist/testing/TestConsole.d.ts.map +1 -1
  513. package/dist/testing/TestConsole.js +73 -9
  514. package/dist/testing/TestConsole.js.map +1 -1
  515. package/dist/testing/TestSchema.d.ts +81 -24
  516. package/dist/testing/TestSchema.d.ts.map +1 -1
  517. package/dist/testing/TestSchema.js +71 -25
  518. package/dist/testing/TestSchema.js.map +1 -1
  519. package/dist/testing/index.d.ts +0 -107
  520. package/dist/testing/index.d.ts.map +1 -1
  521. package/dist/testing/index.js +0 -107
  522. package/dist/testing/index.js.map +1 -1
  523. package/dist/unstable/ai/AiError.d.ts +24 -1
  524. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  525. package/dist/unstable/ai/AiError.js +24 -1
  526. package/dist/unstable/ai/AiError.js.map +1 -1
  527. package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +9 -0
  528. package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
  529. package/dist/unstable/ai/AnthropicStructuredOutput.js +43 -11
  530. package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
  531. package/dist/unstable/ai/Chat.d.ts +25 -1
  532. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  533. package/dist/unstable/ai/Chat.js +53 -28
  534. package/dist/unstable/ai/Chat.js.map +1 -1
  535. package/dist/unstable/ai/EmbeddingModel.d.ts +100 -5
  536. package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
  537. package/dist/unstable/ai/EmbeddingModel.js +100 -5
  538. package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
  539. package/dist/unstable/ai/IdGenerator.d.ts +1 -1
  540. package/dist/unstable/ai/IdGenerator.js +1 -1
  541. package/dist/unstable/ai/LanguageModel.d.ts +41 -2
  542. package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
  543. package/dist/unstable/ai/LanguageModel.js +40 -1
  544. package/dist/unstable/ai/LanguageModel.js.map +1 -1
  545. package/dist/unstable/ai/McpSchema.d.ts +10 -2
  546. package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
  547. package/dist/unstable/ai/McpSchema.js +10 -2
  548. package/dist/unstable/ai/McpSchema.js.map +1 -1
  549. package/dist/unstable/ai/McpServer.d.ts +59 -1
  550. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  551. package/dist/unstable/ai/McpServer.js +59 -1
  552. package/dist/unstable/ai/McpServer.js.map +1 -1
  553. package/dist/unstable/ai/Model.d.ts +35 -13
  554. package/dist/unstable/ai/Model.d.ts.map +1 -1
  555. package/dist/unstable/ai/Model.js +34 -12
  556. package/dist/unstable/ai/Model.js.map +1 -1
  557. package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
  558. package/dist/unstable/ai/OpenAiStructuredOutput.js +48 -1
  559. package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
  560. package/dist/unstable/ai/Prompt.d.ts +23 -2
  561. package/dist/unstable/ai/Prompt.d.ts.map +1 -1
  562. package/dist/unstable/ai/Prompt.js +22 -1
  563. package/dist/unstable/ai/Prompt.js.map +1 -1
  564. package/dist/unstable/ai/Response.d.ts +71 -13
  565. package/dist/unstable/ai/Response.d.ts.map +1 -1
  566. package/dist/unstable/ai/Response.js +35 -1
  567. package/dist/unstable/ai/Response.js.map +1 -1
  568. package/dist/unstable/ai/ResponseIdTracker.d.ts +34 -12
  569. package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
  570. package/dist/unstable/ai/ResponseIdTracker.js +33 -11
  571. package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
  572. package/dist/unstable/ai/Telemetry.d.ts +40 -27
  573. package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
  574. package/dist/unstable/ai/Telemetry.js +34 -26
  575. package/dist/unstable/ai/Telemetry.js.map +1 -1
  576. package/dist/unstable/ai/Tokenizer.d.ts +34 -23
  577. package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
  578. package/dist/unstable/ai/Tokenizer.js +34 -23
  579. package/dist/unstable/ai/Tokenizer.js.map +1 -1
  580. package/dist/unstable/ai/Tool.d.ts +82 -21
  581. package/dist/unstable/ai/Tool.d.ts.map +1 -1
  582. package/dist/unstable/ai/Tool.js +81 -20
  583. package/dist/unstable/ai/Tool.js.map +1 -1
  584. package/dist/unstable/ai/Toolkit.d.ts +1 -1
  585. package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
  586. package/dist/unstable/ai/Toolkit.js +1 -1
  587. package/dist/unstable/ai/Toolkit.js.map +1 -1
  588. package/dist/unstable/ai/index.d.ts +0 -560
  589. package/dist/unstable/ai/index.d.ts.map +1 -1
  590. package/dist/unstable/ai/index.js +0 -560
  591. package/dist/unstable/ai/index.js.map +1 -1
  592. package/dist/unstable/cli/Argument.js +1 -1
  593. package/dist/unstable/cli/Argument.js.map +1 -1
  594. package/dist/unstable/cli/Command.d.ts +133 -5
  595. package/dist/unstable/cli/Command.d.ts.map +1 -1
  596. package/dist/unstable/cli/Command.js +49 -3
  597. package/dist/unstable/cli/Command.js.map +1 -1
  598. package/dist/unstable/cli/Completions.d.ts +13 -0
  599. package/dist/unstable/cli/Completions.d.ts.map +1 -1
  600. package/dist/unstable/cli/Completions.js +41 -1
  601. package/dist/unstable/cli/Completions.js.map +1 -1
  602. package/dist/unstable/cli/Flag.d.ts +15 -3
  603. package/dist/unstable/cli/Flag.d.ts.map +1 -1
  604. package/dist/unstable/cli/Flag.js +15 -3
  605. package/dist/unstable/cli/Flag.js.map +1 -1
  606. package/dist/unstable/cli/GlobalFlag.d.ts +28 -4
  607. package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
  608. package/dist/unstable/cli/GlobalFlag.js +28 -4
  609. package/dist/unstable/cli/GlobalFlag.js.map +1 -1
  610. package/dist/unstable/cli/Param.d.ts +126 -0
  611. package/dist/unstable/cli/Param.d.ts.map +1 -1
  612. package/dist/unstable/cli/Param.js +57 -5
  613. package/dist/unstable/cli/Param.js.map +1 -1
  614. package/dist/unstable/cli/Primitive.d.ts +2 -2
  615. package/dist/unstable/cli/Primitive.d.ts.map +1 -1
  616. package/dist/unstable/cli/Primitive.js +58 -9
  617. package/dist/unstable/cli/Primitive.js.map +1 -1
  618. package/dist/unstable/cli/Prompt.d.ts +26 -1
  619. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  620. package/dist/unstable/cli/Prompt.js +25 -0
  621. package/dist/unstable/cli/Prompt.js.map +1 -1
  622. package/dist/unstable/cli/index.d.ts +0 -220
  623. package/dist/unstable/cli/index.d.ts.map +1 -1
  624. package/dist/unstable/cli/index.js +0 -220
  625. package/dist/unstable/cli/index.js.map +1 -1
  626. package/dist/unstable/cluster/ClusterCron.d.ts +1 -1
  627. package/dist/unstable/cluster/ClusterError.d.ts +61 -22
  628. package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
  629. package/dist/unstable/cluster/ClusterError.js +61 -22
  630. package/dist/unstable/cluster/ClusterError.js.map +1 -1
  631. package/dist/unstable/cluster/ClusterMetrics.d.ts +53 -0
  632. package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
  633. package/dist/unstable/cluster/ClusterMetrics.js +53 -0
  634. package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
  635. package/dist/unstable/cluster/ClusterSchema.d.ts +76 -24
  636. package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
  637. package/dist/unstable/cluster/ClusterSchema.js +76 -24
  638. package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
  639. package/dist/unstable/cluster/Entity.d.ts +18 -1
  640. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  641. package/dist/unstable/cluster/Entity.js +17 -0
  642. package/dist/unstable/cluster/Entity.js.map +1 -1
  643. package/dist/unstable/cluster/EntityAddress.d.ts +19 -0
  644. package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
  645. package/dist/unstable/cluster/EntityAddress.js +19 -0
  646. package/dist/unstable/cluster/EntityAddress.js.map +1 -1
  647. package/dist/unstable/cluster/EntityId.d.ts +44 -7
  648. package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
  649. package/dist/unstable/cluster/EntityId.js +44 -7
  650. package/dist/unstable/cluster/EntityId.js.map +1 -1
  651. package/dist/unstable/cluster/EntityType.d.ts +19 -0
  652. package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
  653. package/dist/unstable/cluster/EntityType.js +19 -0
  654. package/dist/unstable/cluster/EntityType.js.map +1 -1
  655. package/dist/unstable/cluster/HttpRunner.d.ts +26 -14
  656. package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
  657. package/dist/unstable/cluster/HttpRunner.js +26 -14
  658. package/dist/unstable/cluster/HttpRunner.js.map +1 -1
  659. package/dist/unstable/cluster/K8sHttpClient.d.ts +33 -14
  660. package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
  661. package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
  662. package/dist/unstable/cluster/MachineId.d.ts +35 -9
  663. package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
  664. package/dist/unstable/cluster/MachineId.js +35 -9
  665. package/dist/unstable/cluster/MachineId.js.map +1 -1
  666. package/dist/unstable/cluster/Message.d.ts +1 -1
  667. package/dist/unstable/cluster/Message.js +1 -1
  668. package/dist/unstable/cluster/MessageStorage.d.ts +31 -17
  669. package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
  670. package/dist/unstable/cluster/MessageStorage.js +31 -17
  671. package/dist/unstable/cluster/MessageStorage.js.map +1 -1
  672. package/dist/unstable/cluster/Runner.d.ts +46 -13
  673. package/dist/unstable/cluster/Runner.d.ts.map +1 -1
  674. package/dist/unstable/cluster/Runner.js +46 -13
  675. package/dist/unstable/cluster/Runner.js.map +1 -1
  676. package/dist/unstable/cluster/RunnerAddress.d.ts +45 -9
  677. package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
  678. package/dist/unstable/cluster/RunnerAddress.js +45 -9
  679. package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
  680. package/dist/unstable/cluster/RunnerHealth.d.ts +30 -13
  681. package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
  682. package/dist/unstable/cluster/RunnerHealth.js +30 -13
  683. package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
  684. package/dist/unstable/cluster/RunnerServer.d.ts +15 -1
  685. package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
  686. package/dist/unstable/cluster/RunnerServer.js +15 -1
  687. package/dist/unstable/cluster/RunnerServer.js.map +1 -1
  688. package/dist/unstable/cluster/Runners.d.ts +24 -0
  689. package/dist/unstable/cluster/Runners.d.ts.map +1 -1
  690. package/dist/unstable/cluster/Runners.js +24 -0
  691. package/dist/unstable/cluster/Runners.js.map +1 -1
  692. package/dist/unstable/cluster/ShardId.d.ts +22 -0
  693. package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
  694. package/dist/unstable/cluster/ShardId.js +22 -0
  695. package/dist/unstable/cluster/ShardId.js.map +1 -1
  696. package/dist/unstable/cluster/Sharding.d.ts +19 -0
  697. package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
  698. package/dist/unstable/cluster/Sharding.js +55 -17
  699. package/dist/unstable/cluster/Sharding.js.map +1 -1
  700. package/dist/unstable/cluster/ShardingConfig.d.ts +57 -13
  701. package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
  702. package/dist/unstable/cluster/ShardingConfig.js +58 -14
  703. package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
  704. package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +26 -12
  705. package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
  706. package/dist/unstable/cluster/ShardingRegistrationEvent.js +27 -13
  707. package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
  708. package/dist/unstable/cluster/SingleRunner.d.ts +25 -0
  709. package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
  710. package/dist/unstable/cluster/SingleRunner.js +25 -0
  711. package/dist/unstable/cluster/SingleRunner.js.map +1 -1
  712. package/dist/unstable/cluster/Singleton.d.ts +51 -9
  713. package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
  714. package/dist/unstable/cluster/Singleton.js +51 -9
  715. package/dist/unstable/cluster/Singleton.js.map +1 -1
  716. package/dist/unstable/cluster/SingletonAddress.d.ts +27 -13
  717. package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
  718. package/dist/unstable/cluster/SingletonAddress.js +27 -13
  719. package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
  720. package/dist/unstable/cluster/Snowflake.d.ts +13 -0
  721. package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
  722. package/dist/unstable/cluster/Snowflake.js +13 -0
  723. package/dist/unstable/cluster/Snowflake.js.map +1 -1
  724. package/dist/unstable/cluster/SocketRunner.d.ts +21 -0
  725. package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
  726. package/dist/unstable/cluster/SocketRunner.js +21 -0
  727. package/dist/unstable/cluster/SocketRunner.js.map +1 -1
  728. package/dist/unstable/cluster/SqlMessageStorage.d.ts +38 -0
  729. package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
  730. package/dist/unstable/cluster/SqlMessageStorage.js +73 -13
  731. package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
  732. package/dist/unstable/cluster/SqlRunnerStorage.d.ts +20 -0
  733. package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
  734. package/dist/unstable/cluster/SqlRunnerStorage.js +20 -0
  735. package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
  736. package/dist/unstable/cluster/TestRunner.d.ts +27 -16
  737. package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
  738. package/dist/unstable/cluster/TestRunner.js +27 -16
  739. package/dist/unstable/cluster/TestRunner.js.map +1 -1
  740. package/dist/unstable/cluster/index.d.ts +0 -790
  741. package/dist/unstable/cluster/index.d.ts.map +1 -1
  742. package/dist/unstable/cluster/index.js +0 -790
  743. package/dist/unstable/cluster/index.js.map +1 -1
  744. package/dist/unstable/devtools/DevTools.d.ts +41 -11
  745. package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
  746. package/dist/unstable/devtools/DevTools.js +41 -11
  747. package/dist/unstable/devtools/DevTools.js.map +1 -1
  748. package/dist/unstable/devtools/DevToolsClient.d.ts +38 -0
  749. package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
  750. package/dist/unstable/devtools/DevToolsClient.js +68 -11
  751. package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
  752. package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
  753. package/dist/unstable/devtools/DevToolsSchema.js +24 -16
  754. package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
  755. package/dist/unstable/devtools/DevToolsServer.d.ts +20 -13
  756. package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
  757. package/dist/unstable/devtools/DevToolsServer.js +20 -13
  758. package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
  759. package/dist/unstable/devtools/index.d.ts +0 -58
  760. package/dist/unstable/devtools/index.d.ts.map +1 -1
  761. package/dist/unstable/devtools/index.js +0 -58
  762. package/dist/unstable/devtools/index.js.map +1 -1
  763. package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
  764. package/dist/unstable/encoding/Msgpack.js +30 -15
  765. package/dist/unstable/encoding/Msgpack.js.map +1 -1
  766. package/dist/unstable/encoding/Ndjson.d.ts +28 -14
  767. package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
  768. package/dist/unstable/encoding/Ndjson.js +28 -14
  769. package/dist/unstable/encoding/Ndjson.js.map +1 -1
  770. package/dist/unstable/encoding/Sse.d.ts +35 -14
  771. package/dist/unstable/encoding/Sse.d.ts.map +1 -1
  772. package/dist/unstable/encoding/Sse.js.map +1 -1
  773. package/dist/unstable/encoding/index.d.ts +0 -49
  774. package/dist/unstable/encoding/index.d.ts.map +1 -1
  775. package/dist/unstable/encoding/index.js +0 -49
  776. package/dist/unstable/encoding/index.js.map +1 -1
  777. package/dist/unstable/eventlog/Event.d.ts.map +1 -1
  778. package/dist/unstable/eventlog/Event.js +28 -13
  779. package/dist/unstable/eventlog/Event.js.map +1 -1
  780. package/dist/unstable/eventlog/EventGroup.d.ts +22 -14
  781. package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
  782. package/dist/unstable/eventlog/EventGroup.js +21 -13
  783. package/dist/unstable/eventlog/EventGroup.js.map +1 -1
  784. package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
  785. package/dist/unstable/eventlog/EventJournal.js +31 -14
  786. package/dist/unstable/eventlog/EventJournal.js.map +1 -1
  787. package/dist/unstable/eventlog/EventLog.d.ts +52 -15
  788. package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
  789. package/dist/unstable/eventlog/EventLog.js +52 -15
  790. package/dist/unstable/eventlog/EventLog.js.map +1 -1
  791. package/dist/unstable/eventlog/EventLogMessage.d.ts +21 -12
  792. package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
  793. package/dist/unstable/eventlog/EventLogMessage.js +1 -1
  794. package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
  795. package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
  796. package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
  797. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +17 -0
  798. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
  799. package/dist/unstable/eventlog/EventLogServerEncrypted.js +17 -0
  800. package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
  801. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +45 -0
  802. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
  803. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +82 -15
  804. package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
  805. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
  806. package/dist/unstable/eventlog/EventLogSessionAuth.js +33 -15
  807. package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
  808. package/dist/unstable/eventlog/SqlEventJournal.d.ts +21 -0
  809. package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
  810. package/dist/unstable/eventlog/SqlEventJournal.js +50 -14
  811. package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
  812. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +39 -15
  813. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
  814. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +39 -15
  815. package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
  816. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
  817. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +30 -11
  818. package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
  819. package/dist/unstable/eventlog/index.d.ts +0 -240
  820. package/dist/unstable/eventlog/index.d.ts.map +1 -1
  821. package/dist/unstable/eventlog/index.js +0 -240
  822. package/dist/unstable/eventlog/index.js.map +1 -1
  823. package/dist/unstable/http/Cookies.d.ts +59 -13
  824. package/dist/unstable/http/Cookies.d.ts.map +1 -1
  825. package/dist/unstable/http/Cookies.js +59 -13
  826. package/dist/unstable/http/Cookies.js.map +1 -1
  827. package/dist/unstable/http/Etag.d.ts +43 -13
  828. package/dist/unstable/http/Etag.d.ts.map +1 -1
  829. package/dist/unstable/http/Etag.js +43 -13
  830. package/dist/unstable/http/Etag.js.map +1 -1
  831. package/dist/unstable/http/FetchHttpClient.d.ts +53 -16
  832. package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
  833. package/dist/unstable/http/FetchHttpClient.js +53 -16
  834. package/dist/unstable/http/FetchHttpClient.js.map +1 -1
  835. package/dist/unstable/http/Headers.d.ts +52 -15
  836. package/dist/unstable/http/Headers.d.ts.map +1 -1
  837. package/dist/unstable/http/Headers.js +52 -15
  838. package/dist/unstable/http/Headers.js.map +1 -1
  839. package/dist/unstable/http/HttpBody.d.ts.map +1 -1
  840. package/dist/unstable/http/HttpBody.js +53 -13
  841. package/dist/unstable/http/HttpBody.js.map +1 -1
  842. package/dist/unstable/http/HttpClient.d.ts +37 -21
  843. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  844. package/dist/unstable/http/HttpClient.js +2 -2
  845. package/dist/unstable/http/HttpClient.js.map +1 -1
  846. package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
  847. package/dist/unstable/http/HttpClientError.js +27 -11
  848. package/dist/unstable/http/HttpClientError.js.map +1 -1
  849. package/dist/unstable/http/HttpClientRequest.d.ts +38 -17
  850. package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
  851. package/dist/unstable/http/HttpClientRequest.js +38 -17
  852. package/dist/unstable/http/HttpClientRequest.js.map +1 -1
  853. package/dist/unstable/http/HttpClientResponse.d.ts +35 -16
  854. package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
  855. package/dist/unstable/http/HttpClientResponse.js +33 -14
  856. package/dist/unstable/http/HttpClientResponse.js.map +1 -1
  857. package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
  858. package/dist/unstable/http/HttpEffect.js.map +1 -1
  859. package/dist/unstable/http/HttpMethod.d.ts +30 -15
  860. package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
  861. package/dist/unstable/http/HttpMethod.js +30 -15
  862. package/dist/unstable/http/HttpMethod.js.map +1 -1
  863. package/dist/unstable/http/HttpRouter.d.ts +1 -1
  864. package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
  865. package/dist/unstable/http/HttpRouter.js +40 -17
  866. package/dist/unstable/http/HttpRouter.js.map +1 -1
  867. package/dist/unstable/http/HttpServer.d.ts +30 -17
  868. package/dist/unstable/http/HttpServer.d.ts.map +1 -1
  869. package/dist/unstable/http/HttpServer.js +30 -17
  870. package/dist/unstable/http/HttpServer.js.map +1 -1
  871. package/dist/unstable/http/HttpServerError.d.ts +32 -19
  872. package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
  873. package/dist/unstable/http/HttpServerError.js +32 -19
  874. package/dist/unstable/http/HttpServerError.js.map +1 -1
  875. package/dist/unstable/http/HttpServerRequest.d.ts +33 -16
  876. package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
  877. package/dist/unstable/http/HttpServerRequest.js.map +1 -1
  878. package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
  879. package/dist/unstable/http/HttpServerRespondable.js +28 -14
  880. package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
  881. package/dist/unstable/http/HttpServerResponse.d.ts +49 -27
  882. package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
  883. package/dist/unstable/http/HttpServerResponse.js +43 -21
  884. package/dist/unstable/http/HttpServerResponse.js.map +1 -1
  885. package/dist/unstable/http/HttpStaticServer.d.ts +30 -13
  886. package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
  887. package/dist/unstable/http/HttpStaticServer.js +29 -12
  888. package/dist/unstable/http/HttpStaticServer.js.map +1 -1
  889. package/dist/unstable/http/HttpTraceContext.d.ts +28 -15
  890. package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
  891. package/dist/unstable/http/HttpTraceContext.js +28 -15
  892. package/dist/unstable/http/HttpTraceContext.js.map +1 -1
  893. package/dist/unstable/http/Multipart.d.ts +37 -17
  894. package/dist/unstable/http/Multipart.d.ts.map +1 -1
  895. package/dist/unstable/http/Multipart.js +37 -17
  896. package/dist/unstable/http/Multipart.js.map +1 -1
  897. package/dist/unstable/http/Template.d.ts +27 -14
  898. package/dist/unstable/http/Template.d.ts.map +1 -1
  899. package/dist/unstable/http/Template.js +25 -12
  900. package/dist/unstable/http/Template.js.map +1 -1
  901. package/dist/unstable/http/Url.d.ts +29 -13
  902. package/dist/unstable/http/Url.d.ts.map +1 -1
  903. package/dist/unstable/http/Url.js +29 -13
  904. package/dist/unstable/http/Url.js.map +1 -1
  905. package/dist/unstable/http/UrlParams.d.ts +33 -18
  906. package/dist/unstable/http/UrlParams.d.ts.map +1 -1
  907. package/dist/unstable/http/UrlParams.js +34 -19
  908. package/dist/unstable/http/UrlParams.js.map +1 -1
  909. package/dist/unstable/http/index.d.ts +0 -452
  910. package/dist/unstable/http/index.d.ts.map +1 -1
  911. package/dist/unstable/http/index.js +0 -452
  912. package/dist/unstable/http/index.js.map +1 -1
  913. package/dist/unstable/httpapi/HttpApi.d.ts +48 -24
  914. package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
  915. package/dist/unstable/httpapi/HttpApi.js +1 -1
  916. package/dist/unstable/httpapi/HttpApi.js.map +1 -1
  917. package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
  918. package/dist/unstable/httpapi/HttpApiBuilder.js +37 -23
  919. package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
  920. package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
  921. package/dist/unstable/httpapi/HttpApiClient.js +28 -16
  922. package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
  923. package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
  924. package/dist/unstable/httpapi/HttpApiEndpoint.js +51 -23
  925. package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
  926. package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
  927. package/dist/unstable/httpapi/HttpApiError.js +36 -16
  928. package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
  929. package/dist/unstable/httpapi/HttpApiGroup.d.ts +34 -23
  930. package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
  931. package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
  932. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +49 -25
  933. package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
  934. package/dist/unstable/httpapi/HttpApiMiddleware.js +49 -25
  935. package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
  936. package/dist/unstable/httpapi/HttpApiScalar.d.ts +4 -1
  937. package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
  938. package/dist/unstable/httpapi/HttpApiScalar.js +28 -16
  939. package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
  940. package/dist/unstable/httpapi/HttpApiSchema.d.ts +39 -36
  941. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  942. package/dist/unstable/httpapi/HttpApiSchema.js +39 -36
  943. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  944. package/dist/unstable/httpapi/HttpApiSecurity.d.ts +54 -24
  945. package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
  946. package/dist/unstable/httpapi/HttpApiSecurity.js +54 -24
  947. package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
  948. package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
  949. package/dist/unstable/httpapi/HttpApiSwagger.js +28 -16
  950. package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
  951. package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
  952. package/dist/unstable/httpapi/OpenApi.js +36 -24
  953. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  954. package/dist/unstable/httpapi/index.d.ts +0 -311
  955. package/dist/unstable/httpapi/index.d.ts.map +1 -1
  956. package/dist/unstable/httpapi/index.js +0 -311
  957. package/dist/unstable/httpapi/index.js.map +1 -1
  958. package/dist/unstable/observability/Otlp.d.ts +31 -16
  959. package/dist/unstable/observability/Otlp.d.ts.map +1 -1
  960. package/dist/unstable/observability/Otlp.js.map +1 -1
  961. package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
  962. package/dist/unstable/observability/OtlpLogger.js +30 -14
  963. package/dist/unstable/observability/OtlpLogger.js.map +1 -1
  964. package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
  965. package/dist/unstable/observability/OtlpResource.js +33 -15
  966. package/dist/unstable/observability/OtlpResource.js.map +1 -1
  967. package/dist/unstable/observability/OtlpSerialization.d.ts +27 -16
  968. package/dist/unstable/observability/OtlpSerialization.d.ts.map +1 -1
  969. package/dist/unstable/observability/OtlpSerialization.js +27 -16
  970. package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
  971. package/dist/unstable/observability/PrometheusMetrics.d.ts +1 -1
  972. package/dist/unstable/observability/PrometheusMetrics.js +1 -1
  973. package/dist/unstable/observability/index.d.ts +0 -183
  974. package/dist/unstable/observability/index.d.ts.map +1 -1
  975. package/dist/unstable/observability/index.js +0 -183
  976. package/dist/unstable/observability/index.js.map +1 -1
  977. package/dist/unstable/persistence/KeyValueStore.d.ts +4 -1
  978. package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
  979. package/dist/unstable/persistence/KeyValueStore.js +4 -1
  980. package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
  981. package/dist/unstable/persistence/PersistedCache.d.ts +29 -16
  982. package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
  983. package/dist/unstable/persistence/PersistedCache.js +27 -14
  984. package/dist/unstable/persistence/PersistedCache.js.map +1 -1
  985. package/dist/unstable/persistence/Redis.d.ts.map +1 -1
  986. package/dist/unstable/persistence/Redis.js +33 -15
  987. package/dist/unstable/persistence/Redis.js.map +1 -1
  988. package/dist/unstable/persistence/index.d.ts +0 -147
  989. package/dist/unstable/persistence/index.d.ts.map +1 -1
  990. package/dist/unstable/persistence/index.js +0 -147
  991. package/dist/unstable/persistence/index.js.map +1 -1
  992. package/dist/unstable/process/ChildProcessSpawner.d.ts +15 -3
  993. package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
  994. package/dist/unstable/process/ChildProcessSpawner.js +15 -3
  995. package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
  996. package/dist/unstable/process/index.d.ts +0 -45
  997. package/dist/unstable/process/index.d.ts.map +1 -1
  998. package/dist/unstable/process/index.js +0 -45
  999. package/dist/unstable/process/index.js.map +1 -1
  1000. package/dist/unstable/reactivity/AsyncResult.d.ts +40 -19
  1001. package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
  1002. package/dist/unstable/reactivity/AsyncResult.js +40 -19
  1003. package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
  1004. package/dist/unstable/reactivity/Atom.d.ts +36 -22
  1005. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  1006. package/dist/unstable/reactivity/Atom.js +36 -22
  1007. package/dist/unstable/reactivity/Atom.js.map +1 -1
  1008. package/dist/unstable/reactivity/AtomRef.d.ts +32 -16
  1009. package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
  1010. package/dist/unstable/reactivity/AtomRef.js +52 -25
  1011. package/dist/unstable/reactivity/AtomRef.js.map +1 -1
  1012. package/dist/unstable/reactivity/AtomRegistry.d.ts +74 -18
  1013. package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
  1014. package/dist/unstable/reactivity/AtomRegistry.js +74 -18
  1015. package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
  1016. package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
  1017. package/dist/unstable/reactivity/Hydration.js +29 -14
  1018. package/dist/unstable/reactivity/Hydration.js.map +1 -1
  1019. package/dist/unstable/reactivity/Reactivity.d.ts +38 -20
  1020. package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
  1021. package/dist/unstable/reactivity/Reactivity.js +38 -20
  1022. package/dist/unstable/reactivity/Reactivity.js.map +1 -1
  1023. package/dist/unstable/reactivity/index.d.ts +0 -166
  1024. package/dist/unstable/reactivity/index.d.ts.map +1 -1
  1025. package/dist/unstable/reactivity/index.js +0 -166
  1026. package/dist/unstable/reactivity/index.js.map +1 -1
  1027. package/dist/unstable/rpc/Rpc.d.ts +29 -18
  1028. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  1029. package/dist/unstable/rpc/Rpc.js.map +1 -1
  1030. package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
  1031. package/dist/unstable/rpc/RpcClient.js.map +1 -1
  1032. package/dist/unstable/rpc/RpcClientError.d.ts +29 -15
  1033. package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
  1034. package/dist/unstable/rpc/RpcClientError.js +29 -15
  1035. package/dist/unstable/rpc/RpcClientError.js.map +1 -1
  1036. package/dist/unstable/rpc/RpcGroup.d.ts +29 -18
  1037. package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
  1038. package/dist/unstable/rpc/RpcGroup.js.map +1 -1
  1039. package/dist/unstable/rpc/RpcMessage.d.ts +34 -16
  1040. package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
  1041. package/dist/unstable/rpc/RpcMessage.js.map +1 -1
  1042. package/dist/unstable/rpc/RpcMiddleware.d.ts +31 -21
  1043. package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
  1044. package/dist/unstable/rpc/RpcMiddleware.js +31 -21
  1045. package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
  1046. package/dist/unstable/rpc/RpcSchema.d.ts +29 -19
  1047. package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
  1048. package/dist/unstable/rpc/RpcSchema.js +29 -19
  1049. package/dist/unstable/rpc/RpcSchema.js.map +1 -1
  1050. package/dist/unstable/rpc/RpcSerialization.d.ts +33 -23
  1051. package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
  1052. package/dist/unstable/rpc/RpcSerialization.js +31 -21
  1053. package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
  1054. package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
  1055. package/dist/unstable/rpc/RpcServer.js.map +1 -1
  1056. package/dist/unstable/rpc/RpcTest.d.ts +31 -15
  1057. package/dist/unstable/rpc/RpcTest.d.ts.map +1 -1
  1058. package/dist/unstable/rpc/RpcTest.js +31 -15
  1059. package/dist/unstable/rpc/RpcTest.js.map +1 -1
  1060. package/dist/unstable/rpc/RpcWorker.d.ts +29 -14
  1061. package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
  1062. package/dist/unstable/rpc/RpcWorker.js.map +1 -1
  1063. package/dist/unstable/rpc/index.d.ts +0 -272
  1064. package/dist/unstable/rpc/index.d.ts.map +1 -1
  1065. package/dist/unstable/rpc/index.js +0 -272
  1066. package/dist/unstable/rpc/index.js.map +1 -1
  1067. package/dist/unstable/schema/index.d.ts +0 -37
  1068. package/dist/unstable/schema/index.d.ts.map +1 -1
  1069. package/dist/unstable/schema/index.js +0 -37
  1070. package/dist/unstable/schema/index.js.map +1 -1
  1071. package/dist/unstable/socket/index.d.ts +0 -44
  1072. package/dist/unstable/socket/index.d.ts.map +1 -1
  1073. package/dist/unstable/socket/index.js +0 -44
  1074. package/dist/unstable/socket/index.js.map +1 -1
  1075. package/dist/unstable/sql/Migrator.d.ts.map +1 -1
  1076. package/dist/unstable/sql/Migrator.js +39 -18
  1077. package/dist/unstable/sql/Migrator.js.map +1 -1
  1078. package/dist/unstable/sql/SqlError.d.ts.map +1 -1
  1079. package/dist/unstable/sql/SqlError.js +31 -15
  1080. package/dist/unstable/sql/SqlError.js.map +1 -1
  1081. package/dist/unstable/sql/SqlSchema.d.ts +30 -15
  1082. package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
  1083. package/dist/unstable/sql/SqlSchema.js +30 -15
  1084. package/dist/unstable/sql/SqlSchema.js.map +1 -1
  1085. package/dist/unstable/sql/Statement.d.ts +1 -1
  1086. package/dist/unstable/sql/Statement.d.ts.map +1 -1
  1087. package/dist/unstable/sql/Statement.js +34 -14
  1088. package/dist/unstable/sql/Statement.js.map +1 -1
  1089. package/dist/unstable/sql/index.d.ts +0 -178
  1090. package/dist/unstable/sql/index.d.ts.map +1 -1
  1091. package/dist/unstable/sql/index.js +0 -178
  1092. package/dist/unstable/sql/index.js.map +1 -1
  1093. package/dist/unstable/workers/Transferable.d.ts +29 -15
  1094. package/dist/unstable/workers/Transferable.d.ts.map +1 -1
  1095. package/dist/unstable/workers/Transferable.js +29 -15
  1096. package/dist/unstable/workers/Transferable.js.map +1 -1
  1097. package/dist/unstable/workers/Worker.d.ts +36 -23
  1098. package/dist/unstable/workers/Worker.d.ts.map +1 -1
  1099. package/dist/unstable/workers/Worker.js +34 -21
  1100. package/dist/unstable/workers/Worker.js.map +1 -1
  1101. package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
  1102. package/dist/unstable/workers/WorkerError.js +32 -16
  1103. package/dist/unstable/workers/WorkerError.js.map +1 -1
  1104. package/dist/unstable/workers/WorkerRunner.d.ts +31 -20
  1105. package/dist/unstable/workers/WorkerRunner.d.ts.map +1 -1
  1106. package/dist/unstable/workers/WorkerRunner.js +31 -20
  1107. package/dist/unstable/workers/WorkerRunner.js.map +1 -1
  1108. package/dist/unstable/workers/index.d.ts +0 -80
  1109. package/dist/unstable/workers/index.d.ts.map +1 -1
  1110. package/dist/unstable/workers/index.js +0 -80
  1111. package/dist/unstable/workers/index.js.map +1 -1
  1112. package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
  1113. package/dist/unstable/workflow/DurableClock.js +23 -11
  1114. package/dist/unstable/workflow/DurableClock.js.map +1 -1
  1115. package/dist/unstable/workflow/DurableQueue.d.ts +33 -15
  1116. package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
  1117. package/dist/unstable/workflow/DurableQueue.js +33 -15
  1118. package/dist/unstable/workflow/DurableQueue.js.map +1 -1
  1119. package/dist/unstable/workflow/index.d.ts +0 -160
  1120. package/dist/unstable/workflow/index.d.ts.map +1 -1
  1121. package/dist/unstable/workflow/index.js +0 -160
  1122. package/dist/unstable/workflow/index.js.map +1 -1
  1123. package/package.json +1 -1
  1124. package/src/Array.ts +1504 -211
  1125. package/src/BigDecimal.ts +594 -8
  1126. package/src/BigInt.ts +457 -3
  1127. package/src/Boolean.ts +229 -7
  1128. package/src/Brand.ts +100 -8
  1129. package/src/Cache.ts +87 -15
  1130. package/src/Cause.ts +475 -183
  1131. package/src/Channel.ts +498 -84
  1132. package/src/ChannelSchema.ts +96 -3
  1133. package/src/Chunk.ts +120 -0
  1134. package/src/Clock.ts +57 -0
  1135. package/src/Combiner.ts +15 -11
  1136. package/src/Config.ts +126 -40
  1137. package/src/ConfigProvider.ts +48 -25
  1138. package/src/Console.ts +22 -1
  1139. package/src/Context.ts +503 -37
  1140. package/src/Cron.ts +110 -1
  1141. package/src/Crypto.ts +29 -0
  1142. package/src/Data.ts +77 -26
  1143. package/src/DateTime.ts +149 -6
  1144. package/src/Deferred.ts +340 -74
  1145. package/src/Differ.ts +5 -0
  1146. package/src/Duration.ts +164 -11
  1147. package/src/Effect.ts +1860 -543
  1148. package/src/Effectable.ts +14 -0
  1149. package/src/Encoding.ts +135 -1
  1150. package/src/Equal.ts +7 -7
  1151. package/src/Equivalence.ts +44 -27
  1152. package/src/ErrorReporter.ts +123 -5
  1153. package/src/ExecutionPlan.ts +89 -24
  1154. package/src/Exit.ts +128 -82
  1155. package/src/Fiber.ts +317 -68
  1156. package/src/FileSystem.ts +109 -33
  1157. package/src/Filter.ts +221 -2
  1158. package/src/Formatter.ts +3 -3
  1159. package/src/Function.ts +152 -6
  1160. package/src/Graph.ts +275 -3
  1161. package/src/HKT.ts +55 -23
  1162. package/src/Hash.ts +140 -20
  1163. package/src/HashMap.ts +2 -2
  1164. package/src/HashRing.ts +203 -0
  1165. package/src/Inspectable.ts +82 -13
  1166. package/src/Iterable.ts +179 -25
  1167. package/src/JsonPatch.ts +78 -55
  1168. package/src/JsonPointer.ts +2 -2
  1169. package/src/JsonSchema.ts +64 -10
  1170. package/src/Latch.ts +162 -11
  1171. package/src/Layer.ts +250 -74
  1172. package/src/LayerMap.ts +8 -0
  1173. package/src/LogLevel.ts +93 -18
  1174. package/src/Logger.ts +25 -9
  1175. package/src/ManagedRuntime.ts +81 -9
  1176. package/src/Match.ts +220 -24
  1177. package/src/Metric.ts +33 -20
  1178. package/src/MutableHashMap.ts +360 -21
  1179. package/src/MutableHashSet.ts +141 -37
  1180. package/src/MutableList.ts +10 -2
  1181. package/src/MutableRef.ts +136 -0
  1182. package/src/Newtype.ts +20 -11
  1183. package/src/NonEmptyIterable.ts +20 -4
  1184. package/src/Number.ts +417 -2
  1185. package/src/Optic.ts +17 -17
  1186. package/src/Option.ts +168 -129
  1187. package/src/Order.ts +152 -123
  1188. package/src/Ordering.ts +32 -0
  1189. package/src/PartitionedSemaphore.ts +238 -11
  1190. package/src/Path.ts +35 -4
  1191. package/src/Pipeable.ts +27 -2
  1192. package/src/PlatformError.ts +53 -4
  1193. package/src/Pool.ts +174 -32
  1194. package/src/Predicate.ts +149 -115
  1195. package/src/PrimaryKey.ts +74 -8
  1196. package/src/PubSub.ts +94 -20
  1197. package/src/Pull.ts +147 -2
  1198. package/src/Queue.ts +127 -35
  1199. package/src/Random.ts +71 -16
  1200. package/src/RcMap.ts +168 -6
  1201. package/src/RcRef.ts +73 -18
  1202. package/src/Record.ts +95 -1
  1203. package/src/Redactable.ts +20 -16
  1204. package/src/Redacted.ts +82 -4
  1205. package/src/Reducer.ts +17 -5
  1206. package/src/Ref.ts +300 -22
  1207. package/src/References.ts +208 -12
  1208. package/src/RegExp.ts +47 -1
  1209. package/src/Request.ts +215 -32
  1210. package/src/RequestResolver.ts +257 -22
  1211. package/src/Resource.ts +62 -3
  1212. package/src/Result.ts +328 -23
  1213. package/src/Runtime.ts +171 -31
  1214. package/src/Schedule.ts +484 -111
  1215. package/src/Scheduler.ts +50 -1
  1216. package/src/Schema.ts +508 -67
  1217. package/src/SchemaAST.ts +205 -2
  1218. package/src/SchemaGetter.ts +123 -123
  1219. package/src/SchemaIssue.ts +25 -24
  1220. package/src/SchemaParser.ts +279 -21
  1221. package/src/SchemaRepresentation.ts +61 -17
  1222. package/src/SchemaTransformation.ts +76 -38
  1223. package/src/SchemaUtils.ts +38 -11
  1224. package/src/Scope.ts +79 -14
  1225. package/src/ScopedCache.ts +404 -7
  1226. package/src/ScopedRef.ts +67 -5
  1227. package/src/Semaphore.ts +347 -28
  1228. package/src/Sink.ts +307 -4
  1229. package/src/Stdio.ts +69 -15
  1230. package/src/Stream.ts +611 -72
  1231. package/src/String.ts +173 -2
  1232. package/src/Struct.ts +19 -10
  1233. package/src/SubscriptionRef.ts +73 -14
  1234. package/src/Symbol.ts +24 -6
  1235. package/src/SynchronizedRef.ts +502 -2
  1236. package/src/Take.ts +36 -13
  1237. package/src/Terminal.ts +68 -17
  1238. package/src/Tracer.ts +49 -0
  1239. package/src/Trie.ts +48 -9
  1240. package/src/Tuple.ts +70 -35
  1241. package/src/TxChunk.ts +40 -7
  1242. package/src/TxDeferred.ts +85 -2
  1243. package/src/TxPriorityQueue.ts +29 -2
  1244. package/src/TxPubSub.ts +94 -4
  1245. package/src/TxQueue.ts +48 -7
  1246. package/src/TxReentrantLock.ts +40 -4
  1247. package/src/TxRef.ts +112 -7
  1248. package/src/TxSemaphore.ts +173 -14
  1249. package/src/TxSubscriptionRef.ts +205 -2
  1250. package/src/Types.ts +60 -6
  1251. package/src/UndefinedOr.ts +171 -30
  1252. package/src/Unify.ts +120 -12
  1253. package/src/Utils.ts +20 -14
  1254. package/src/index.ts +0 -5205
  1255. package/src/internal/effect.ts +59 -29
  1256. package/src/internal/request.ts +3 -1
  1257. package/src/internal/schema/arbitrary.ts +14 -1
  1258. package/src/internal/schema/representation.ts +37 -14
  1259. package/src/testing/TestConsole.ts +105 -9
  1260. package/src/testing/TestSchema.ts +83 -25
  1261. package/src/testing/index.ts +0 -107
  1262. package/src/unstable/ai/AiError.ts +24 -1
  1263. package/src/unstable/ai/AnthropicStructuredOutput.ts +43 -11
  1264. package/src/unstable/ai/Chat.ts +62 -28
  1265. package/src/unstable/ai/EmbeddingModel.ts +100 -5
  1266. package/src/unstable/ai/IdGenerator.ts +1 -1
  1267. package/src/unstable/ai/LanguageModel.ts +41 -2
  1268. package/src/unstable/ai/McpSchema.ts +10 -2
  1269. package/src/unstable/ai/McpServer.ts +59 -1
  1270. package/src/unstable/ai/Model.ts +35 -13
  1271. package/src/unstable/ai/OpenAiStructuredOutput.ts +48 -1
  1272. package/src/unstable/ai/Prompt.ts +23 -2
  1273. package/src/unstable/ai/Response.ts +71 -13
  1274. package/src/unstable/ai/ResponseIdTracker.ts +34 -12
  1275. package/src/unstable/ai/Telemetry.ts +40 -27
  1276. package/src/unstable/ai/Tokenizer.ts +34 -23
  1277. package/src/unstable/ai/Tool.ts +82 -21
  1278. package/src/unstable/ai/Toolkit.ts +32 -4
  1279. package/src/unstable/ai/index.ts +0 -560
  1280. package/src/unstable/cli/Argument.ts +1 -1
  1281. package/src/unstable/cli/Command.ts +133 -5
  1282. package/src/unstable/cli/Completions.ts +41 -1
  1283. package/src/unstable/cli/Flag.ts +15 -3
  1284. package/src/unstable/cli/GlobalFlag.ts +28 -4
  1285. package/src/unstable/cli/Param.ts +135 -9
  1286. package/src/unstable/cli/Primitive.ts +58 -9
  1287. package/src/unstable/cli/Prompt.ts +26 -1
  1288. package/src/unstable/cli/index.ts +0 -220
  1289. package/src/unstable/cluster/ClusterCron.ts +1 -1
  1290. package/src/unstable/cluster/ClusterError.ts +61 -22
  1291. package/src/unstable/cluster/ClusterMetrics.ts +53 -0
  1292. package/src/unstable/cluster/ClusterSchema.ts +76 -24
  1293. package/src/unstable/cluster/Entity.ts +18 -1
  1294. package/src/unstable/cluster/EntityAddress.ts +19 -0
  1295. package/src/unstable/cluster/EntityId.ts +44 -7
  1296. package/src/unstable/cluster/EntityType.ts +19 -0
  1297. package/src/unstable/cluster/HttpRunner.ts +26 -14
  1298. package/src/unstable/cluster/K8sHttpClient.ts +32 -13
  1299. package/src/unstable/cluster/MachineId.ts +35 -9
  1300. package/src/unstable/cluster/Message.ts +1 -1
  1301. package/src/unstable/cluster/MessageStorage.ts +31 -17
  1302. package/src/unstable/cluster/Runner.ts +46 -13
  1303. package/src/unstable/cluster/RunnerAddress.ts +45 -9
  1304. package/src/unstable/cluster/RunnerHealth.ts +30 -13
  1305. package/src/unstable/cluster/RunnerServer.ts +15 -1
  1306. package/src/unstable/cluster/Runners.ts +24 -0
  1307. package/src/unstable/cluster/ShardId.ts +22 -0
  1308. package/src/unstable/cluster/Sharding.ts +55 -17
  1309. package/src/unstable/cluster/ShardingConfig.ts +57 -13
  1310. package/src/unstable/cluster/ShardingRegistrationEvent.ts +26 -12
  1311. package/src/unstable/cluster/SingleRunner.ts +25 -0
  1312. package/src/unstable/cluster/Singleton.ts +51 -9
  1313. package/src/unstable/cluster/SingletonAddress.ts +27 -13
  1314. package/src/unstable/cluster/Snowflake.ts +13 -0
  1315. package/src/unstable/cluster/SocketRunner.ts +21 -0
  1316. package/src/unstable/cluster/SqlMessageStorage.ts +73 -13
  1317. package/src/unstable/cluster/SqlRunnerStorage.ts +20 -0
  1318. package/src/unstable/cluster/TestRunner.ts +27 -16
  1319. package/src/unstable/cluster/index.ts +0 -790
  1320. package/src/unstable/devtools/DevTools.ts +41 -11
  1321. package/src/unstable/devtools/DevToolsClient.ts +68 -11
  1322. package/src/unstable/devtools/DevToolsSchema.ts +24 -16
  1323. package/src/unstable/devtools/DevToolsServer.ts +18 -11
  1324. package/src/unstable/devtools/index.ts +0 -58
  1325. package/src/unstable/encoding/Msgpack.ts +30 -15
  1326. package/src/unstable/encoding/Ndjson.ts +28 -14
  1327. package/src/unstable/encoding/Sse.ts +35 -14
  1328. package/src/unstable/encoding/index.ts +0 -49
  1329. package/src/unstable/eventlog/Event.ts +30 -15
  1330. package/src/unstable/eventlog/EventGroup.ts +22 -14
  1331. package/src/unstable/eventlog/EventJournal.ts +31 -14
  1332. package/src/unstable/eventlog/EventLog.ts +52 -15
  1333. package/src/unstable/eventlog/EventLogMessage.ts +21 -12
  1334. package/src/unstable/eventlog/EventLogServer.ts +27 -13
  1335. package/src/unstable/eventlog/EventLogServerEncrypted.ts +17 -0
  1336. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +82 -15
  1337. package/src/unstable/eventlog/EventLogSessionAuth.ts +35 -17
  1338. package/src/unstable/eventlog/SqlEventJournal.ts +50 -14
  1339. package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +39 -15
  1340. package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +30 -11
  1341. package/src/unstable/eventlog/index.ts +0 -240
  1342. package/src/unstable/http/Cookies.ts +59 -13
  1343. package/src/unstable/http/Etag.ts +43 -13
  1344. package/src/unstable/http/FetchHttpClient.ts +53 -16
  1345. package/src/unstable/http/Headers.ts +52 -15
  1346. package/src/unstable/http/HttpBody.ts +53 -13
  1347. package/src/unstable/http/HttpClient.ts +88 -22
  1348. package/src/unstable/http/HttpClientError.ts +26 -10
  1349. package/src/unstable/http/HttpClientRequest.ts +36 -15
  1350. package/src/unstable/http/HttpClientResponse.ts +33 -14
  1351. package/src/unstable/http/HttpEffect.ts +32 -15
  1352. package/src/unstable/http/HttpMethod.ts +30 -15
  1353. package/src/unstable/http/HttpRouter.ts +40 -17
  1354. package/src/unstable/http/HttpServer.ts +30 -17
  1355. package/src/unstable/http/HttpServerError.ts +32 -19
  1356. package/src/unstable/http/HttpServerRequest.ts +31 -14
  1357. package/src/unstable/http/HttpServerRespondable.ts +28 -14
  1358. package/src/unstable/http/HttpServerResponse.ts +51 -29
  1359. package/src/unstable/http/HttpStaticServer.ts +29 -12
  1360. package/src/unstable/http/HttpTraceContext.ts +28 -15
  1361. package/src/unstable/http/Multipart.ts +37 -17
  1362. package/src/unstable/http/Template.ts +25 -12
  1363. package/src/unstable/http/Url.ts +29 -13
  1364. package/src/unstable/http/UrlParams.ts +33 -18
  1365. package/src/unstable/http/index.ts +0 -452
  1366. package/src/unstable/httpapi/HttpApi.ts +46 -22
  1367. package/src/unstable/httpapi/HttpApiBuilder.ts +37 -23
  1368. package/src/unstable/httpapi/HttpApiClient.ts +28 -16
  1369. package/src/unstable/httpapi/HttpApiEndpoint.ts +51 -23
  1370. package/src/unstable/httpapi/HttpApiError.ts +36 -16
  1371. package/src/unstable/httpapi/HttpApiGroup.ts +34 -23
  1372. package/src/unstable/httpapi/HttpApiMiddleware.ts +49 -25
  1373. package/src/unstable/httpapi/HttpApiScalar.ts +32 -17
  1374. package/src/unstable/httpapi/HttpApiSchema.ts +39 -36
  1375. package/src/unstable/httpapi/HttpApiSecurity.ts +54 -24
  1376. package/src/unstable/httpapi/HttpApiSwagger.ts +28 -16
  1377. package/src/unstable/httpapi/OpenApi.ts +38 -26
  1378. package/src/unstable/httpapi/index.ts +0 -311
  1379. package/src/unstable/observability/Otlp.ts +31 -16
  1380. package/src/unstable/observability/OtlpLogger.ts +30 -14
  1381. package/src/unstable/observability/OtlpResource.ts +33 -15
  1382. package/src/unstable/observability/OtlpSerialization.ts +25 -14
  1383. package/src/unstable/observability/PrometheusMetrics.ts +1 -1
  1384. package/src/unstable/observability/index.ts +0 -183
  1385. package/src/unstable/persistence/KeyValueStore.ts +4 -1
  1386. package/src/unstable/persistence/PersistedCache.ts +27 -14
  1387. package/src/unstable/persistence/Redis.ts +33 -15
  1388. package/src/unstable/persistence/index.ts +0 -147
  1389. package/src/unstable/process/ChildProcessSpawner.ts +15 -3
  1390. package/src/unstable/process/index.ts +0 -45
  1391. package/src/unstable/reactivity/AsyncResult.ts +38 -17
  1392. package/src/unstable/reactivity/Atom.ts +36 -22
  1393. package/src/unstable/reactivity/AtomRef.ts +58 -25
  1394. package/src/unstable/reactivity/AtomRegistry.ts +72 -16
  1395. package/src/unstable/reactivity/Hydration.ts +31 -16
  1396. package/src/unstable/reactivity/Reactivity.ts +36 -18
  1397. package/src/unstable/reactivity/index.ts +0 -166
  1398. package/src/unstable/rpc/Rpc.ts +29 -18
  1399. package/src/unstable/rpc/RpcClient.ts +31 -22
  1400. package/src/unstable/rpc/RpcClientError.ts +27 -13
  1401. package/src/unstable/rpc/RpcGroup.ts +28 -17
  1402. package/src/unstable/rpc/RpcMessage.ts +34 -16
  1403. package/src/unstable/rpc/RpcMiddleware.ts +31 -21
  1404. package/src/unstable/rpc/RpcSchema.ts +29 -19
  1405. package/src/unstable/rpc/RpcSerialization.ts +31 -21
  1406. package/src/unstable/rpc/RpcServer.ts +31 -23
  1407. package/src/unstable/rpc/RpcTest.ts +29 -13
  1408. package/src/unstable/rpc/RpcWorker.ts +29 -14
  1409. package/src/unstable/rpc/index.ts +0 -272
  1410. package/src/unstable/schema/index.ts +0 -37
  1411. package/src/unstable/socket/index.ts +0 -44
  1412. package/src/unstable/sql/Migrator.ts +39 -18
  1413. package/src/unstable/sql/SqlError.ts +31 -15
  1414. package/src/unstable/sql/SqlSchema.ts +30 -15
  1415. package/src/unstable/sql/Statement.ts +35 -15
  1416. package/src/unstable/sql/index.ts +0 -178
  1417. package/src/unstable/workers/Transferable.ts +29 -15
  1418. package/src/unstable/workers/Worker.ts +34 -21
  1419. package/src/unstable/workers/WorkerError.ts +34 -18
  1420. package/src/unstable/workers/WorkerRunner.ts +29 -18
  1421. package/src/unstable/workers/index.ts +0 -80
  1422. package/src/unstable/workflow/DurableClock.ts +23 -11
  1423. package/src/unstable/workflow/DurableQueue.ts +31 -13
  1424. package/src/unstable/workflow/index.ts +0 -160
package/dist/Effect.js CHANGED
@@ -14,7 +14,7 @@ import { internalCall } from "./Utils.js";
14
14
  /**
15
15
  * Runtime identifier used to recognize `Effect` values.
16
16
  *
17
- * @category Type identifiers
17
+ * @category type IDs
18
18
  * @since 4.0.0
19
19
  */
20
20
  export const TypeId = core.EffectTypeId;
@@ -38,6 +38,11 @@ export const isEffect = core.isEffect;
38
38
  * Combines an iterable or record of effects into one effect whose success shape
39
39
  * follows the input.
40
40
  *
41
+ * **When to use**
42
+ *
43
+ * Use to run a known collection of effects and collect results in the same
44
+ * tuple, iterable, or record shape.
45
+ *
41
46
  * **Details**
42
47
  *
43
48
  * Tuple and iterable inputs collect results in order. Record inputs collect
@@ -159,7 +164,7 @@ export const isEffect = core.isEffect;
159
164
  * ```
160
165
  *
161
166
  * @see {@link forEach} for iterating over elements and applying an effect.
162
- * @category Collecting
167
+ * @category collecting
163
168
  * @since 2.0.0
164
169
  */
165
170
  export const all = internal.all;
@@ -190,7 +195,7 @@ export const all = internal.all;
190
195
  * // [ ["0 is even", "2 is even"], [1, 3] ]
191
196
  * ```
192
197
  *
193
- * @category Collecting
198
+ * @category collecting
194
199
  * @since 2.0.0
195
200
  */
196
201
  export const partition = internal.partition;
@@ -229,7 +234,7 @@ export const partition = internal.partition;
229
234
  * // }
230
235
  * ```
231
236
  *
232
- * @category Error Accumulation
237
+ * @category error accumulation
233
238
  * @since 2.0.0
234
239
  */
235
240
  export const validate = internal.validate;
@@ -252,25 +257,37 @@ export const validate = internal.validate;
252
257
  * // { _id: 'Option', _tag: 'Some', value: 3 }
253
258
  * ```
254
259
  *
255
- * @category Collecting
260
+ * @category collecting
256
261
  * @since 2.0.0
257
262
  */
258
263
  export const findFirst = internal.findFirst;
259
264
  /**
260
265
  * Returns the first value that passes an effectful `FilterEffect`.
261
266
  *
267
+ * **When to use**
268
+ *
269
+ * Use when you need to find the first element that satisfies an effectful
270
+ * filter returning a `Result`, which also transforms the matching element.
271
+ *
262
272
  * **Details**
263
273
  *
264
274
  * The filter receives the element and index. Evaluation short-circuits on the
265
275
  * first `Result.succeed` and returns the transformed value in `Option.some`.
266
276
  *
267
- * @category Collecting
277
+ * @see {@link findFirst} for the simpler effectful predicate-based variant
278
+ *
279
+ * @category collecting
268
280
  * @since 4.0.0
269
281
  */
270
282
  export const findFirstFilter = internal.findFirstFilter;
271
283
  /**
272
284
  * Executes an effectful operation for each element in an `Iterable`.
273
285
  *
286
+ * **When to use**
287
+ *
288
+ * Use to traverse an iterable with an effectful function while preserving
289
+ * element order in the collected results.
290
+ *
274
291
  * **Details**
275
292
  *
276
293
  * The `forEach` function applies a provided operation to each element in the
@@ -334,7 +351,7 @@ export const findFirstFilter = internal.findFirstFilter;
334
351
  * ```
335
352
  *
336
353
  * @see {@link all} for combining multiple effects into one.
337
- * @category Collecting
354
+ * @category collecting
338
355
  * @since 2.0.0
339
356
  */
340
357
  export const forEach = internal.forEach;
@@ -363,7 +380,7 @@ export const forEach = internal.forEach;
363
380
  * // Current count: 5
364
381
  * ```
365
382
  *
366
- * @category Collecting
383
+ * @category collecting
367
384
  * @since 2.0.0
368
385
  */
369
386
  export const whileLoop = internal.whileLoop;
@@ -376,22 +393,21 @@ export const whileLoop = internal.whileLoop;
376
393
  *
377
394
  * **When to use**
378
395
  *
379
- * Use `promise` when you are sure the operation will not reject.
396
+ * Use to convert a `Promise` into an `Effect` when the async operation is
397
+ * guaranteed to succeed and will not reject.
380
398
  *
381
399
  * **Details**
382
400
  *
383
- * The provided function (`thunk`) returns a `Promise` that should never reject; if it does, the error
384
- * will be treated as a "defect".
401
+ * An optional `AbortSignal` can be provided to allow for interruption of the
402
+ * wrapped `Promise` API.
385
403
  *
386
- * This defect is not a standard error but indicates a flaw in the logic that
387
- * was expected to be error-free. You can think of it similar to an unexpected
388
- * crash in the program, which can be further managed or logged using tools like
389
- * {@link catchDefect}.
404
+ * **Gotchas**
390
405
  *
391
- * Interruptions:
406
+ * The `Promise` must not reject. If it rejects, the rejection is treated as a
407
+ * defect, not as a typed failure. Use `tryPromise` when rejection is expected.
392
408
  *
393
- * An optional `AbortSignal` can be provided to allow for interruption of the
394
- * wrapped `Promise` API.
409
+ * Interruption aborts the provided `AbortSignal`, but the underlying
410
+ * asynchronous operation only stops if it observes that signal.
395
411
  *
396
412
  * **Example** (Wrapping a non-rejecting Promise)
397
413
  *
@@ -414,7 +430,7 @@ export const whileLoop = internal.whileLoop;
414
430
  * ```
415
431
  *
416
432
  * @see {@link tryPromise} for a version that can handle failures.
417
- * @category Creating Effects
433
+ * @category creating effects
418
434
  * @since 2.0.0
419
435
  */
420
436
  export const promise = internal.promise;
@@ -424,7 +440,7 @@ export const promise = internal.promise;
424
440
  *
425
441
  * **When to use**
426
442
  *
427
- * In situations where you need to perform asynchronous operations that might
443
+ * Use when in situations where you need to perform asynchronous operations that might
428
444
  * fail, such as fetching data from an API, you can use the `tryPromise`
429
445
  * constructor. This constructor is designed to handle operations that could
430
446
  * throw exceptions by capturing those exceptions and transforming them into
@@ -482,7 +498,7 @@ export const promise = internal.promise;
482
498
  * ```
483
499
  *
484
500
  * @see {@link promise} if the effectful computation is asynchronous and does not throw errors.
485
- * @category Creating Effects
501
+ * @category creating effects
486
502
  * @since 2.0.0
487
503
  */
488
504
  export const tryPromise = internal.tryPromise;
@@ -491,7 +507,7 @@ export const tryPromise = internal.tryPromise;
491
507
  *
492
508
  * **When to use**
493
509
  *
494
- * Use this function when you need an effect that completes successfully with a
510
+ * Use when you use this function when you need an effect that completes successfully with a
495
511
  * specific value without any errors or external dependencies.
496
512
  *
497
513
  * **Example** (Creating a successful effect)
@@ -507,7 +523,7 @@ export const tryPromise = internal.tryPromise;
507
523
  * ```
508
524
  *
509
525
  * @see {@link fail} to create an effect that represents a failure.
510
- * @category Creating Effects
526
+ * @category creating effects
511
527
  * @since 2.0.0
512
528
  */
513
529
  export const succeed = internal.succeed;
@@ -525,7 +541,7 @@ export const succeed = internal.succeed;
525
541
  * // Output: { _id: 'Option', _tag: 'None' }
526
542
  * ```
527
543
  *
528
- * @category Creating Effects
544
+ * @category creating effects
529
545
  * @since 2.0.0
530
546
  */
531
547
  export const succeedNone = internal.succeedNone;
@@ -543,7 +559,7 @@ export const succeedNone = internal.succeedNone;
543
559
  * // Output: { _id: 'Option', _tag: 'Some', value: 42 }
544
560
  * ```
545
561
  *
546
- * @category Creating Effects
562
+ * @category creating effects
547
563
  * @since 2.0.0
548
564
  */
549
565
  export const succeedSome = internal.succeedSome;
@@ -552,7 +568,7 @@ export const succeedSome = internal.succeedSome;
552
568
  *
553
569
  * **When to use**
554
570
  *
555
- * Use `suspend` when you need to defer the evaluation of an effect until it is required. This is particularly useful for optimizing expensive computations, managing circular dependencies, or resolving type inference issues.
571
+ * Use when you need to defer the evaluation of an effect until it is required. This is particularly useful for optimizing expensive computations, managing circular dependencies, or resolving type inference issues.
556
572
  *
557
573
  * **Details**
558
574
  *
@@ -630,7 +646,7 @@ export const succeedSome = internal.succeedSome;
630
646
  * )
631
647
  * ```
632
648
  *
633
- * @category Creating Effects
649
+ * @category creating effects
634
650
  * @since 2.0.0
635
651
  */
636
652
  export const suspend = internal.suspend;
@@ -639,17 +655,16 @@ export const suspend = internal.suspend;
639
655
  *
640
656
  * **When to use**
641
657
  *
642
- * Use `sync` when you are sure the operation will not fail.
658
+ * Use when you are sure the operation will not fail.
643
659
  *
644
660
  * **Details**
645
661
  *
646
- * The provided function (`thunk`) must not throw errors; if it does, the error
647
- * will be treated as a "defect".
662
+ * The provided function is evaluated lazily when the effect runs.
648
663
  *
649
- * This defect is not a standard error but indicates a flaw in the logic that
650
- * was expected to be error-free. You can think of it similar to an unexpected
651
- * crash in the program, which can be further managed or logged using tools like
652
- * {@link catchDefect}.
664
+ * **Gotchas**
665
+ *
666
+ * The function must not throw. If it throws, the thrown value is treated as a
667
+ * defect, not as a typed failure. Use `try` when throwing is expected.
653
668
  *
654
669
  * **Example** (Capturing synchronous logging in an Effect)
655
670
  *
@@ -667,7 +682,7 @@ export const suspend = internal.suspend;
667
682
  * ```
668
683
  *
669
684
  * @see {@link try_ | try} for a version that can handle failures.
670
- * @category Creating Effects
685
+ * @category creating effects
671
686
  * @since 2.0.0
672
687
  */
673
688
  export const sync = internal.sync;
@@ -676,7 +691,7 @@ export {
676
691
  /**
677
692
  * Returns an effect that succeeds with `void`.
678
693
  *
679
- * @category Creating Effects
694
+ * @category creating effects
680
695
  * @since 2.0.0
681
696
  */
682
697
  void_ as void };
@@ -685,7 +700,7 @@ export {
685
700
  /**
686
701
  * Returns an effect that succeeds with `undefined`.
687
702
  *
688
- * @category Creating Effects
703
+ * @category creating effects
689
704
  * @since 4.0.0
690
705
  */
691
706
  undefined_ as undefined };
@@ -694,7 +709,7 @@ undefined_ as undefined };
694
709
  *
695
710
  * **When to use**
696
711
  *
697
- * Use `Effect.callback` when integrating APIs that complete through callbacks
712
+ * Use when integrating APIs that complete through callbacks
698
713
  * instead of returning a `Promise`.
699
714
  *
700
715
  * **Details**
@@ -721,7 +736,7 @@ undefined_ as undefined };
721
736
  * const program = delay(1000)
722
737
  * ```
723
738
  *
724
- * @category Creating Effects
739
+ * @category creating effects
725
740
  * @since 4.0.0
726
741
  */
727
742
  export const callback = internal.callback;
@@ -744,7 +759,7 @@ export const callback = internal.callback;
744
759
  * const timedProgram = Effect.timeout(program, "1 second")
745
760
  * ```
746
761
  *
747
- * @category Creating Effects
762
+ * @category creating effects
748
763
  * @since 2.0.0
749
764
  */
750
765
  export const never = internal.never;
@@ -765,7 +780,7 @@ export const never = internal.never;
765
780
  * )
766
781
  * ```
767
782
  *
768
- * @category Do notation
783
+ * @category do notation
769
784
  * @since 2.0.0
770
785
  */
771
786
  export const Do = internal.Do;
@@ -773,7 +788,15 @@ export const Do = internal.Do;
773
788
  * Gives a name to the success value of an `Effect`, creating a single-key
774
789
  * record used in do notation pipelines.
775
790
  *
776
- * @category Do notation
791
+ * **When to use**
792
+ *
793
+ * Use to start a do-notation pipeline from an existing `Effect` when its
794
+ * success value should become the first named field in the accumulated record.
795
+ *
796
+ * @see {@link Do} for starting from an empty accumulated record
797
+ * @see {@link bind} for adding fields produced by effects
798
+ *
799
+ * @category do notation
777
800
  * @since 2.0.0
778
801
  */
779
802
  export const bindTo = internal.bindTo;
@@ -782,14 +805,51 @@ export {
782
805
  /**
783
806
  * Adds a computed plain value to the do notation record.
784
807
  *
785
- * @category Do notation
808
+ * **When to use**
809
+ *
810
+ * Use to add a derived, synchronous value to a do-notation pipeline when it
811
+ * depends on fields already accumulated in the record and does not need to run
812
+ * another `Effect`.
813
+ *
814
+ * **Details**
815
+ *
816
+ * The new field is added with object spreading. If the name already exists in
817
+ * the record, the computed value replaces it in the returned type.
818
+ *
819
+ * @see {@link bind} for adding fields produced by effects
820
+ * @see {@link bindTo} for naming an existing success value
821
+ * @see {@link Do} for starting from an empty accumulated record
822
+ * @see {@link gen} for sequencing without accumulating a record
823
+ *
824
+ * @category do notation
786
825
  * @since 2.0.0
787
826
  */
788
827
  let_ as let };
789
828
  /**
790
829
  * Adds an `Effect` value to the do notation record under a given name.
791
830
  *
792
- * @category Do notation
831
+ * **When to use**
832
+ *
833
+ * Use to sequence an effectful step in a do-notation pipeline when that step
834
+ * depends on fields already accumulated in the record and its success value
835
+ * should be stored under a name.
836
+ *
837
+ * **Details**
838
+ *
839
+ * The function receives the current record, runs the returned effect after the
840
+ * input effect succeeds, and inserts its success value under `name`. The
841
+ * resulting effect combines the error and service requirements of both steps.
842
+ *
843
+ * **Gotchas**
844
+ *
845
+ * Binding a name that already exists replaces that field in the resulting
846
+ * record.
847
+ *
848
+ * @see {@link Do} for starting from an empty do-notation record
849
+ * @see {@link bindTo} for naming the success value of an existing effect
850
+ * @see {@link gen} for generator-based sequencing without accumulating a record
851
+ *
852
+ * @category do notation
793
853
  * @since 2.0.0
794
854
  */
795
855
  export const bind = internal.bind;
@@ -799,7 +859,7 @@ export const bind = internal.bind;
799
859
  *
800
860
  * **When to use**
801
861
  *
802
- * `gen` allows you to write code that looks and behaves like synchronous
862
+ * Use when `gen` allows you to write code that looks and behaves like synchronous
803
863
  * code, but it can handle asynchronous tasks, errors, and complex control flow
804
864
  * (like loops and conditions). It helps make asynchronous code more readable
805
865
  * and easier to manage.
@@ -841,7 +901,7 @@ export const bind = internal.bind;
841
901
  * })
842
902
  * ```
843
903
  *
844
- * @category Creating Effects
904
+ * @category creating effects
845
905
  * @since 2.0.0
846
906
  */
847
907
  export const gen = internal.gen;
@@ -850,7 +910,7 @@ export const gen = internal.gen;
850
910
  *
851
911
  * **When to use**
852
912
  *
853
- * Use this function to explicitly signal an error in an `Effect`. The error
913
+ * Use to explicitly signal an error in an `Effect`. The error
854
914
  * will keep propagating unless it is handled. You can handle the error with
855
915
  * functions like {@link catchTag} or {@link catchTags}.
856
916
  *
@@ -869,7 +929,7 @@ export const gen = internal.gen;
869
929
  * ```
870
930
  *
871
931
  * @see {@link succeed} to create an effect that represents a successful value.
872
- * @category Creating Effects
932
+ * @category creating effects
873
933
  * @since 2.0.0
874
934
  */
875
935
  export const fail = internal.fail;
@@ -894,7 +954,7 @@ export const fail = internal.fail;
894
954
  * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
895
955
  * ```
896
956
  *
897
- * @category Creating Effects
957
+ * @category creating effects
898
958
  * @since 2.0.0
899
959
  */
900
960
  export const failSync = internal.failSync;
@@ -919,7 +979,7 @@ export const failSync = internal.failSync;
919
979
  * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
920
980
  * ```
921
981
  *
922
- * @category Creating Effects
982
+ * @category creating effects
923
983
  * @since 2.0.0
924
984
  */
925
985
  export const failCause = internal.failCause;
@@ -944,7 +1004,7 @@ export const failCause = internal.failCause;
944
1004
  * // Output: { _id: 'Exit', _tag: 'Failure', cause: ... }
945
1005
  * ```
946
1006
  *
947
- * @category Creating Effects
1007
+ * @category creating effects
948
1008
  * @since 2.0.0
949
1009
  */
950
1010
  export const failCauseSync = internal.failCauseSync;
@@ -953,7 +1013,7 @@ export const failCauseSync = internal.failCauseSync;
953
1013
  *
954
1014
  * **When to use**
955
1015
  *
956
- * Use `die` when encountering unexpected conditions in your code that should
1016
+ * Use when encountering unexpected conditions in your code that should
957
1017
  * not be handled as regular errors but instead represent unrecoverable defects.
958
1018
  *
959
1019
  * **Details**
@@ -985,8 +1045,7 @@ export const failCauseSync = internal.failCauseSync;
985
1045
  * // ...stack trace...
986
1046
  * ```
987
1047
  *
988
- * @see {@link die} for a variant that dies with an already computed defect.
989
- * @category Creating Effects
1048
+ * @category creating effects
990
1049
  * @since 2.0.0
991
1050
  */
992
1051
  export const die = internal.die;
@@ -998,7 +1057,7 @@ export {
998
1057
  *
999
1058
  * **When to use**
1000
1059
  *
1001
- * In situations where you need to perform synchronous operations that might
1060
+ * Use when in situations where you need to perform synchronous operations that might
1002
1061
  * fail, such as parsing JSON, you can use the `try` constructor. This
1003
1062
  * constructor is designed to handle operations that could throw exceptions by
1004
1063
  * capturing those exceptions and transforming them into manageable errors.
@@ -1053,7 +1112,7 @@ export {
1053
1112
  *
1054
1113
  * @see {@link sync} if the effectful computation is synchronous and does not
1055
1114
  * throw errors.
1056
- * @category Creating Effects
1115
+ * @category creating effects
1057
1116
  * @since 2.0.0
1058
1117
  */
1059
1118
  try_ as try };
@@ -1074,7 +1133,7 @@ try_ as try };
1074
1133
  * Effect.runPromise(program)
1075
1134
  * ```
1076
1135
  *
1077
- * @category Creating Effects
1136
+ * @category creating effects
1078
1137
  * @since 2.0.0
1079
1138
  */
1080
1139
  export const yieldNow = internal.yieldNow;
@@ -1095,7 +1154,7 @@ export const yieldNow = internal.yieldNow;
1095
1154
  * Effect.runPromise(program)
1096
1155
  * ```
1097
1156
  *
1098
- * @category Creating Effects
1157
+ * @category creating effects
1099
1158
  * @since 4.0.0
1100
1159
  */
1101
1160
  export const yieldNowWith = internal.yieldNowWith;
@@ -1115,7 +1174,7 @@ export const yieldNowWith = internal.yieldNowWith;
1115
1174
  * // Output: Fiber ID: 1
1116
1175
  * ```
1117
1176
  *
1118
- * @category Creating Effects
1177
+ * @category creating effects
1119
1178
  * @since 4.0.0
1120
1179
  */
1121
1180
  export const withFiber = core.withFiber;
@@ -1208,7 +1267,7 @@ export const fromNullishOr = internal.fromNullishOr;
1208
1267
  *
1209
1268
  * **When to use**
1210
1269
  *
1211
- * Use `flatMap` when you need to chain multiple effects, ensuring that each
1270
+ * Use when you need to chain multiple effects, ensuring that each
1212
1271
  * step produces a new `Effect` while flattening any nested effects that may
1213
1272
  * occur.
1214
1273
  *
@@ -1296,7 +1355,7 @@ export const flatten = internal.flatten;
1296
1355
  *
1297
1356
  * **When to use**
1298
1357
  *
1299
- * Use `andThen` when one effect must run after another and the second effect
1358
+ * Use when one effect must run after another and the second effect
1300
1359
  * may depend on the first effect's success value.
1301
1360
  *
1302
1361
  * **Details**
@@ -1372,7 +1431,7 @@ export const andThen = internal.andThen;
1372
1431
  *
1373
1432
  * **When to use**
1374
1433
  *
1375
- * Use `tap` when you want to perform a side effect, like logging or tracking,
1434
+ * Use when you want to perform a side effect, like logging or tracking,
1376
1435
  * without modifying the main value. This is useful when you need to observe or
1377
1436
  * record an action but want the original value to be passed to the next step.
1378
1437
  *
@@ -1423,6 +1482,12 @@ export const tap = internal.tap;
1423
1482
  /**
1424
1483
  * Encapsulates both success and failure of an `Effect` into a `Result` type.
1425
1484
  *
1485
+ * **When to use**
1486
+ *
1487
+ * Use when you want to handle typed failures as data while preserving
1488
+ * the original error value. Use `option` when you only care whether the effect
1489
+ * succeeded, and `exit` when you need the full failure cause.
1490
+ *
1426
1491
  * **Details**
1427
1492
  *
1428
1493
  * This function converts an effect that may fail into an effect that always
@@ -1435,14 +1500,15 @@ export const tap = internal.tap;
1435
1500
  * you want to chain effects and manage both success and failure in the same
1436
1501
  * logical flow.
1437
1502
  *
1438
- * It's important to note that unrecoverable errors, often referred to as
1439
- * "defects," are still thrown and not captured within the `Result` type. Only
1440
- * failures that are explicitly represented as recoverable errors in the effect
1441
- * are encapsulated.
1442
- *
1443
1503
  * The resulting effect cannot fail directly because all recoverable failures
1444
1504
  * are represented inside the `Result` type.
1445
1505
  *
1506
+ * **Gotchas**
1507
+ *
1508
+ * `result` only captures typed, recoverable failures. Defects and
1509
+ * interruptions are not captured inside the `Result` and still fail the
1510
+ * effect.
1511
+ *
1446
1512
  * **Example** (Capturing success or failure as Result)
1447
1513
  *
1448
1514
  * ```ts
@@ -1464,18 +1530,33 @@ export const tap = internal.tap;
1464
1530
  * @see {@link option} for a version that uses `Option` instead.
1465
1531
  * @see {@link exit} for a version that encapsulates both recoverable errors and defects in an `Exit`.
1466
1532
  *
1467
- * @category Outcome Encapsulation
1533
+ * @category outcome encapsulation
1468
1534
  * @since 4.0.0
1469
1535
  */
1470
1536
  export const result = internal.result;
1471
1537
  /**
1472
1538
  * Convert success to `Option.some` and failure to `Option.none`.
1473
1539
  *
1540
+ * **When to use**
1541
+ *
1542
+ * Use when the failure value is not important and absence is enough.
1543
+ * Use `result` when you need the original typed failure, and `exit` when you
1544
+ * need the full failure cause.
1545
+ *
1474
1546
  * **Details**
1475
1547
  *
1476
1548
  * Success values become `Option.some`, recoverable failures become
1477
1549
  * `Option.none`, and defects still fail the effect.
1478
1550
  *
1551
+ * **Gotchas**
1552
+ *
1553
+ * `option` only captures typed, recoverable failures as `Option.none`.
1554
+ * Defects and interruptions are not captured inside the `Option` and still
1555
+ * fail the effect.
1556
+ *
1557
+ * `option` also discards typed failure values. Use `result` if the failure
1558
+ * value matters.
1559
+ *
1479
1560
  * **Example** (Capturing success or failure as Option)
1480
1561
  *
1481
1562
  * ```ts
@@ -1497,7 +1578,7 @@ export const result = internal.result;
1497
1578
  * @see {@link result} for a version that uses `Result` instead.
1498
1579
  * @see {@link exit} for a version that encapsulates both recoverable errors and defects in an `Exit`.
1499
1580
  *
1500
- * @category Output Encapsulation
1581
+ * @category outcome encapsulation
1501
1582
  * @since 2.0.0
1502
1583
  */
1503
1584
  export const option = internal.option;
@@ -1505,6 +1586,12 @@ export const option = internal.option;
1505
1586
  * Transforms an effect to encapsulate both failure and success using the `Exit`
1506
1587
  * data type.
1507
1588
  *
1589
+ * **When to use**
1590
+ *
1591
+ * Use when you need to inspect the full outcome, including typed
1592
+ * failures, defects, and interruptions. Use `result` or `option` when you only
1593
+ * need to handle typed failures.
1594
+ *
1508
1595
  * **Details**
1509
1596
  *
1510
1597
  * `exit` wraps an effect's success or failure inside an `Exit` type, allowing
@@ -1535,13 +1622,19 @@ export const option = internal.option;
1535
1622
  * @see {@link option} for a version that uses `Option` instead.
1536
1623
  * @see {@link result} for a version that uses `Result` instead.
1537
1624
  *
1538
- * @category Outcome Encapsulation
1625
+ * @category outcome encapsulation
1539
1626
  * @since 2.0.0
1540
1627
  */
1541
1628
  export const exit = internal.exit;
1542
1629
  /**
1543
1630
  * Transforms the value inside an effect by applying a function to it.
1544
1631
  *
1632
+ * **When to use**
1633
+ *
1634
+ * Use to transform an effect's success value with a function that returns a
1635
+ * plain value, producing a new effect without changing the original effect's
1636
+ * typed error or context requirements.
1637
+ *
1545
1638
  * **Details**
1546
1639
  *
1547
1640
  * `map` takes a function and applies it to the value contained within an
@@ -1592,6 +1685,11 @@ export const map = internal.map;
1592
1685
  /**
1593
1686
  * Replaces the value inside an effect with a constant value.
1594
1687
  *
1688
+ * **When to use**
1689
+ *
1690
+ * Use to replace a successful value with a constant while preserving failures
1691
+ * and requirements.
1692
+ *
1595
1693
  * **Details**
1596
1694
  *
1597
1695
  * `as` allows you to ignore the original value inside an effect and
@@ -1609,6 +1707,9 @@ export const map = internal.map;
1609
1707
  * // Output: "new value"
1610
1708
  * ```
1611
1709
  *
1710
+ * @see {@link map} for deriving the replacement value from the success value
1711
+ * @see {@link asVoid} for replacing the success value with `void`
1712
+ *
1612
1713
  * @category mapping
1613
1714
  * @since 2.0.0
1614
1715
  */
@@ -1689,6 +1790,10 @@ export const flip = internal.flip;
1689
1790
  /**
1690
1791
  * Combines two effects into a single effect, producing a tuple with the results of both effects.
1691
1792
  *
1793
+ * **When to use**
1794
+ *
1795
+ * Use to combine exactly two effects into a tuple.
1796
+ *
1692
1797
  * **Details**
1693
1798
  *
1694
1799
  * The `zip` function executes the first effect (left) and then the second effect (right).
@@ -1751,7 +1856,8 @@ export const flip = internal.flip;
1751
1856
  * ```
1752
1857
  *
1753
1858
  * @see {@link zipWith} for a version that combines the results with a custom function.
1754
- * @see {@link validate} for a version that accumulates errors.
1859
+ * @see {@link all} for collecting a larger structure of effects.
1860
+ *
1755
1861
  * @category zipping
1756
1862
  * @since 2.0.0
1757
1863
  */
@@ -1762,7 +1868,7 @@ export const zip = internal.zip;
1762
1868
  *
1763
1869
  * **When to use**
1764
1870
  *
1765
- * The `zipWith` function is similar to {@link zip}, but instead of returning a
1871
+ * Use when the `zipWith` function is similar to {@link zip}, but instead of returning a
1766
1872
  * tuple of results, it applies a provided function to the results of the two
1767
1873
  * effects, combining them into a single value.
1768
1874
  *
@@ -1835,13 +1941,13 @@ catch_ as catch };
1835
1941
  *
1836
1942
  * **When to use**
1837
1943
  *
1838
- * `catchTag` is useful when your errors are tagged with a readonly `_tag` field
1839
- * that identifies the error type. You can use this function to handle specific
1840
- * error types by matching the `_tag` value. This allows for precise error
1841
- * handling, ensuring that only specific errors are caught and handled.
1944
+ * Use when recovering from one specific tagged error in an effect error
1945
+ * channel.
1842
1946
  *
1843
- * The error type must have a readonly `_tag` field to use `catchTag`. This
1844
- * field is used to identify and match errors.
1947
+ * **Details**
1948
+ *
1949
+ * The error type must have a readonly `_tag` field. `catchTag` matches that
1950
+ * field and only handles errors with the requested tag.
1845
1951
  *
1846
1952
  * **Example** (Handling a tagged error)
1847
1953
  *
@@ -1867,6 +1973,9 @@ catch_ as catch };
1867
1973
  * )
1868
1974
  * ```
1869
1975
  *
1976
+ * @see {@link catchTags} for handling multiple tagged errors in one call
1977
+ * @see {@link catchIf} for recovering from errors that match a predicate
1978
+ *
1870
1979
  * @category error handling
1871
1980
  * @since 2.0.0
1872
1981
  */
@@ -1876,7 +1985,7 @@ export const catchTag = internal.catchTag;
1876
1985
  *
1877
1986
  * **When to use**
1878
1987
  *
1879
- * `catchTags` is a convenient way to handle multiple error types at
1988
+ * Use when `catchTags` is a convenient way to handle multiple error types at
1880
1989
  * once. Instead of using {@link catchTag} multiple times, you can pass an
1881
1990
  * object where each key is an error type's `_tag`, and the value is the handler
1882
1991
  * for that specific error. This allows you to catch and recover from multiple
@@ -1918,6 +2027,11 @@ export const catchTags = internal.catchTags;
1918
2027
  /**
1919
2028
  * Catches a specific reason within a tagged error.
1920
2029
  *
2030
+ * **When to use**
2031
+ *
2032
+ * Use to handle one nested reason inside a tagged error while preserving the
2033
+ * parent error shape for unmatched reasons.
2034
+ *
1921
2035
  * **Details**
1922
2036
  *
1923
2037
  * Use this to handle nested error causes without removing the parent error
@@ -1950,6 +2064,8 @@ export const catchTags = internal.catchTags;
1950
2064
  * )
1951
2065
  * ```
1952
2066
  *
2067
+ * @see {@link catchReasons} for handling several nested reason tags
2068
+ *
1953
2069
  * @category error handling
1954
2070
  * @since 4.0.0
1955
2071
  */
@@ -2028,7 +2144,7 @@ export const unwrapReason = internal.unwrapReason;
2028
2144
  *
2029
2145
  * **When to use**
2030
2146
  *
2031
- * The `catchCause` function allows you to handle all errors, including
2147
+ * Use when the `catchCause` function allows you to handle all errors, including
2032
2148
  * unrecoverable defects, by providing a recovery effect. The recovery logic is
2033
2149
  * based on the `Cause` of the error, which provides detailed information about
2034
2150
  * the failure.
@@ -2069,7 +2185,7 @@ export const catchCause = internal.catchCause;
2069
2185
  *
2070
2186
  * **When to use**
2071
2187
  *
2072
- * Use this sparingly, usually at integration boundaries where defects must be
2188
+ * Use when you use this sparingly, usually at integration boundaries where defects must be
2073
2189
  * reported or translated for an external system.
2074
2190
  *
2075
2191
  * **Details**
@@ -2110,7 +2226,7 @@ export const catchDefect = internal.catchDefect;
2110
2226
  *
2111
2227
  * **When to use**
2112
2228
  *
2113
- * `catchIf` lets you recover from errors that match a condition. Use a
2229
+ * Use when `catchIf` lets you recover from errors that match a condition. Use a
2114
2230
  * `Refinement` for type narrowing or a `Predicate` for simple boolean
2115
2231
  * matching. Non-matching errors re-fail with the original cause. Defects and
2116
2232
  * interrupts are not caught.
@@ -2148,6 +2264,24 @@ export const catchIf = internal.catchIf;
2148
2264
  /**
2149
2265
  * Recovers from specific errors using a `Filter`.
2150
2266
  *
2267
+ * **When to use**
2268
+ *
2269
+ * Use to recover from typed `Effect` errors with a reusable `Filter` when
2270
+ * matching can also narrow or transform the error before choosing the recovery
2271
+ * effect.
2272
+ *
2273
+ * **Details**
2274
+ *
2275
+ * The filter runs on typed failures extracted from the `Cause`. Successful
2276
+ * filter results are passed to `f`; failed filter results are passed to
2277
+ * `orElse` when provided. Without `orElse`, the original failure cause is
2278
+ * preserved.
2279
+ *
2280
+ * @see {@link catchIf} for predicate-based recovery from typed errors
2281
+ * @see {@link catchTag} for recovering from a single tagged error
2282
+ * @see {@link catchTags} for recovering from several tagged errors
2283
+ * @see {@link catchCauseFilter} for filtering full causes instead of typed errors
2284
+ *
2151
2285
  * @category error handling
2152
2286
  * @since 4.0.0
2153
2287
  */
@@ -2155,6 +2289,10 @@ export const catchFilter = internal.catchFilter;
2155
2289
  /**
2156
2290
  * Catches `NoSuchElementError` failures and converts them to `Option.none`.
2157
2291
  *
2292
+ * **When to use**
2293
+ *
2294
+ * Use to convert `NoSuchElementError` failures into `Option.none`.
2295
+ *
2158
2296
  * **Details**
2159
2297
  *
2160
2298
  * Success values become `Option.some`, `NoSuchElementError` becomes
@@ -2172,6 +2310,10 @@ export const catchFilter = internal.catchFilter;
2172
2310
  * Effect.runPromise(none).then(console.log) // { _id: 'Option', _tag: 'None' }
2173
2311
  * ```
2174
2312
  *
2313
+ * @see {@link fromOption} for converting `Option.none` into `NoSuchElementError`
2314
+ * @see {@link fromNullishOr} for converting nullish values into `NoSuchElementError`
2315
+ * @see {@link option} for converting any failure into `Option.none`
2316
+ *
2175
2317
  * @category error handling
2176
2318
  * @since 4.0.0
2177
2319
  */
@@ -2179,6 +2321,10 @@ export const catchNoSuchElement = internal.catchNoSuchElement;
2179
2321
  /**
2180
2322
  * Recovers from specific failures based on a predicate.
2181
2323
  *
2324
+ * **When to use**
2325
+ *
2326
+ * Use to recover from full causes selected by a predicate.
2327
+ *
2182
2328
  * **Details**
2183
2329
  *
2184
2330
  * This function allows you to conditionally catch and recover from failures
@@ -2208,6 +2354,10 @@ export const catchNoSuchElement = internal.catchNoSuchElement;
2208
2354
  * // Then: "Fallback response"
2209
2355
  * ```
2210
2356
  *
2357
+ * @see {@link catchCause} for recovering from every cause
2358
+ * @see {@link catchCauseFilter} for selecting full causes with a `Filter`
2359
+ * @see {@link catchIf} for predicate-based recovery from typed errors
2360
+ *
2211
2361
  * @category error handling
2212
2362
  * @since 4.0.0
2213
2363
  */
@@ -2215,6 +2365,21 @@ export const catchCauseIf = internal.catchCauseIf;
2215
2365
  /**
2216
2366
  * Recovers from specific failures based on a `Filter`.
2217
2367
  *
2368
+ * **When to use**
2369
+ *
2370
+ * Use when you need to recover only from causes selected by a `Filter`, and the
2371
+ * recovery needs both the selected value and the original `Cause`.
2372
+ *
2373
+ * **Details**
2374
+ *
2375
+ * The filter is applied to the full `Cause`. When it succeeds, the handler
2376
+ * receives the selected value and the original cause. When it fails, the effect
2377
+ * re-fails with the residual cause returned by the filter.
2378
+ *
2379
+ * @see {@link catchCauseIf} for predicate-based cause selection
2380
+ * @see {@link catchFilter} for filtering typed error values instead of full causes
2381
+ * @see {@link catchCause} for recovering from every cause without filtering
2382
+ *
2218
2383
  * @category error handling
2219
2384
  * @since 4.0.0
2220
2385
  */
@@ -2223,6 +2388,10 @@ export const catchCauseFilter = internal.catchCauseFilter;
2223
2388
  * The `mapError` function is used to transform or modify the error
2224
2389
  * produced by an effect, without affecting its success value.
2225
2390
  *
2391
+ * **When to use**
2392
+ *
2393
+ * Use to translate typed failures while leaving successful values unchanged.
2394
+ *
2226
2395
  * **Details**
2227
2396
  *
2228
2397
  * This function is helpful when you want to enhance the error with additional
@@ -2251,7 +2420,7 @@ export const catchCauseFilter = internal.catchCauseFilter;
2251
2420
  *
2252
2421
  * @see {@link map} for a version that operates on the success channel.
2253
2422
  * @see {@link mapBoth} for a version that operates on both channels.
2254
- * @see {@link mapError} if you want to replace the error with a new one.
2423
+ *
2255
2424
  * @category error handling
2256
2425
  * @since 2.0.0
2257
2426
  */
@@ -2259,6 +2428,11 @@ export const mapError = internal.mapError;
2259
2428
  /**
2260
2429
  * Applies transformations to both the success and error channels of an effect.
2261
2430
  *
2431
+ * **When to use**
2432
+ *
2433
+ * Use to transform both success and failure values without changing whether the
2434
+ * effect succeeds or fails.
2435
+ *
2262
2436
  * **Details**
2263
2437
  *
2264
2438
  * This function takes two map functions as arguments: one for the error channel
@@ -2298,7 +2472,7 @@ export const mapBoth = internal.mapBoth;
2298
2472
  *
2299
2473
  * **When to use**
2300
2474
  *
2301
- * Use `orDie` when a typed failure represents an unrecoverable bug or invalid
2475
+ * Use when a typed failure represents an unrecoverable bug or invalid
2302
2476
  * state and should not be handled as a recoverable error.
2303
2477
  *
2304
2478
  * **Example** (Converting typed failures into defects)
@@ -2323,8 +2497,7 @@ export const mapBoth = internal.mapBoth;
2323
2497
  * // ...stack trace...
2324
2498
  * ```
2325
2499
  *
2326
- * @see {@link mapError} to transform the error before converting it into a defect with {@link orDie}.
2327
- * @category Converting Failures to Defects
2500
+ * @category converting failures to defects
2328
2501
  * @since 2.0.0
2329
2502
  */
2330
2503
  export const orDie = internal.orDie;
@@ -2465,6 +2638,21 @@ export const tapCauseIf = internal.tapCauseIf;
2465
2638
  /**
2466
2639
  * Conditionally executes a side effect based on the cause of a failed effect.
2467
2640
  *
2641
+ * **When to use**
2642
+ *
2643
+ * Use when you need to observe only failure causes selected by a `Filter`, and
2644
+ * the side effect needs both the selected value and the original `Cause`.
2645
+ *
2646
+ * **Details**
2647
+ *
2648
+ * A successful filter result runs the side effect with the selected value and
2649
+ * original cause. A failed filter result skips the side effect and preserves the
2650
+ * original cause.
2651
+ *
2652
+ * @see {@link tapCauseIf} for selecting causes with a boolean predicate
2653
+ * @see {@link tapCause} for observing every failure cause
2654
+ * @see {@link catchCauseFilter} for recovering from selected causes instead of only observing them
2655
+ *
2468
2656
  * @category sequencing
2469
2657
  * @since 4.0.0
2470
2658
  */
@@ -2550,7 +2738,7 @@ export const tapDefect = internal.tapDefect;
2550
2738
  * // Ready
2551
2739
  * ```
2552
2740
  *
2553
- * @category Repetition / Recursion
2741
+ * @category repetition / recursion
2554
2742
  * @since 2.0.0
2555
2743
  */
2556
2744
  export const eventually = internal.eventually;
@@ -2559,7 +2747,7 @@ export const eventually = internal.eventually;
2559
2747
  *
2560
2748
  * **When to use**
2561
2749
  *
2562
- * Use `retry` when typed failures may be transient, such as network issues or
2750
+ * Use when typed failures may be transient, such as network issues or
2563
2751
  * temporary resource unavailability.
2564
2752
  *
2565
2753
  * **Details**
@@ -2569,7 +2757,13 @@ export const eventually = internal.eventually;
2569
2757
  * succeeds, the returned effect succeeds with that value. If the policy stops
2570
2758
  * while the effect is still failing, the last failure is propagated.
2571
2759
  *
2572
- * Defects and interruptions are not retried as typed failures.
2760
+ * **Gotchas**
2761
+ *
2762
+ * The source effect is always evaluated once before any retry policy is
2763
+ * applied. For example, `Schedule.recurs(3)` allows up to three retries after
2764
+ * the initial attempt.
2765
+ *
2766
+ * Defects and interruptions are not retried.
2573
2767
  *
2574
2768
  * **Example** (Retrying with a schedule)
2575
2769
  *
@@ -2606,8 +2800,8 @@ export const retry = internalSchedule.retry;
2606
2800
  *
2607
2801
  * **When to use**
2608
2802
  *
2609
- * This function is useful when you want to handle failures gracefully by
2610
- * specifying an alternative action after repeated failures.
2803
+ * Use when you want to handle failures gracefully by specifying an alternative
2804
+ * action after repeated failures.
2611
2805
  *
2612
2806
  * **Details**
2613
2807
  *
@@ -2684,8 +2878,6 @@ export const retryOrElse = internalSchedule.retryOrElse;
2684
2878
  * // Output: "Caught cause: Something went wrong"
2685
2879
  * ```
2686
2880
  *
2687
- * @see {@link sandbox} to expose failures as full causes.
2688
- *
2689
2881
  * @category error handling
2690
2882
  * @since 2.0.0
2691
2883
  */
@@ -2695,7 +2887,7 @@ export const sandbox = internal.sandbox;
2695
2887
  *
2696
2888
  * **When to use**
2697
2889
  *
2698
- * `ignore` allows you to run an effect without caring about its result, whether
2890
+ * Use when `ignore` allows you to run an effect without caring about its result, whether
2699
2891
  * it succeeds or fails. This is useful when you only care about the side
2700
2892
  * effects of the effect and do not need to handle or process its outcome.
2701
2893
  *
@@ -2787,7 +2979,7 @@ export const ignoreCause = internal.ignoreCause;
2787
2979
  * const program = Effect.withExecutionPlan(fetchUrl, plan)
2788
2980
  * ```
2789
2981
  *
2790
- * @category Fallback
2982
+ * @category fallback
2791
2983
  * @since 3.16.0
2792
2984
  */
2793
2985
  export const withExecutionPlan = internalExecutionPlan.withExecutionPlan;
@@ -2839,7 +3031,7 @@ export const withErrorReporting = internal.withErrorReporting;
2839
3031
  * // { _id: 'Exit', _tag: 'Success', value: 18 }
2840
3032
  * ```
2841
3033
  *
2842
- * @category Fallback
3034
+ * @category fallback
2843
3035
  * @since 2.0.0
2844
3036
  */
2845
3037
  export const orElseSucceed = internal.orElseSucceed;
@@ -2849,7 +3041,7 @@ export const orElseSucceed = internal.orElseSucceed;
2849
3041
  *
2850
3042
  * **When to use**
2851
3043
  *
2852
- * Use `firstSuccessOf` when you have prioritized fallback strategies, such as
3044
+ * Use when you have prioritized fallback strategies, such as
2853
3045
  * attempting multiple APIs, reading configuration from several sources, or
2854
3046
  * trying alternative resource locations in order.
2855
3047
  *
@@ -2884,7 +3076,7 @@ export const orElseSucceed = internal.orElseSucceed;
2884
3076
  * // Output: "secondary result"
2885
3077
  * ```
2886
3078
  *
2887
- * @category Fallback
3079
+ * @category fallback
2888
3080
  * @since 2.0.0
2889
3081
  */
2890
3082
  export const firstSuccessOf = internal.firstSuccessOf;
@@ -2895,6 +3087,12 @@ export const firstSuccessOf = internal.firstSuccessOf;
2895
3087
  * Adds a time limit to an effect, triggering a timeout if the effect exceeds
2896
3088
  * the duration.
2897
3089
  *
3090
+ * **When to use**
3091
+ *
3092
+ * Use when exceeding the time limit should be represented as a typed
3093
+ * failure. Use `timeoutOption` when a timeout should become `Option.none`, and
3094
+ * `timeoutOrElse` when you want to run a fallback effect.
3095
+ *
2898
3096
  * **Details**
2899
3097
  *
2900
3098
  * The `timeout` function allows you to specify a time limit for an
@@ -2903,6 +3101,10 @@ export const firstSuccessOf = internal.firstSuccessOf;
2903
3101
  * your program waits for a task to finish, ensuring that it doesn't hang
2904
3102
  * indefinitely if the task takes too long.
2905
3103
  *
3104
+ * **Gotchas**
3105
+ *
3106
+ * If the timeout wins, the source effect is interrupted.
3107
+ *
2906
3108
  * **Example** (Failing when work takes too long)
2907
3109
  *
2908
3110
  * ```ts
@@ -2933,8 +3135,10 @@ export const firstSuccessOf = internal.firstSuccessOf;
2933
3135
  * // }
2934
3136
  * ```
2935
3137
  *
3138
+ * @see {@link timeoutOption} for returning `Option.none` on timeout.
2936
3139
  * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
2937
- * @category Delays & Timeouts
3140
+ *
3141
+ * @category delays & timeouts
2938
3142
  * @since 2.0.0
2939
3143
  */
2940
3144
  export const timeout = internal.timeout;
@@ -2942,6 +3146,12 @@ export const timeout = internal.timeout;
2942
3146
  * Runs an effect with a time limit and represents only the timeout case as
2943
3147
  * `Option.none`.
2944
3148
  *
3149
+ * **When to use**
3150
+ *
3151
+ * Use when a timeout should be handled as absence. Use
3152
+ * `timeout` when a timeout should fail the effect, and `timeoutOrElse` when
3153
+ * you want to run a fallback effect.
3154
+ *
2945
3155
  * **Details**
2946
3156
  *
2947
3157
  * If the source effect succeeds before the timeout, the returned effect
@@ -2949,9 +3159,6 @@ export const timeout = internal.timeout;
2949
3159
  * interrupted and the returned effect succeeds with `Option.none`. If the
2950
3160
  * source effect fails before the timeout, that failure is preserved.
2951
3161
  *
2952
- * @see {@link timeout} for a version that raises a `TimeoutException`.
2953
- * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
2954
- *
2955
3162
  * **Example** (Returning None on timeout)
2956
3163
  *
2957
3164
  * ```ts
@@ -2980,18 +3187,32 @@ export const timeout = internal.timeout;
2980
3187
  * // ]
2981
3188
  * ```
2982
3189
  *
2983
- * @category Delays & Timeouts
3190
+ * @see {@link timeout} for a version that raises a `TimeoutException`.
3191
+ * @see {@link timeoutOrElse} for a version that allows specifying both success and timeout handlers.
3192
+ *
3193
+ * @category delays & timeouts
2984
3194
  * @since 3.1.0
2985
3195
  */
2986
3196
  export const timeoutOption = internal.timeoutOption;
2987
3197
  /**
2988
3198
  * Applies a timeout to an effect, with a fallback effect executed if the timeout is reached.
2989
3199
  *
3200
+ * **When to use**
3201
+ *
3202
+ * Use when a timeout should switch to a fallback effect. Use
3203
+ * `timeout` when a timeout should fail the effect, and `timeoutOption` when a
3204
+ * timeout should become `Option.none`.
3205
+ *
2990
3206
  * **Details**
2991
3207
  *
2992
3208
  * This function is useful when you want to set a maximum duration for an operation
2993
3209
  * and provide an alternative action if the timeout is exceeded.
2994
3210
  *
3211
+ * **Gotchas**
3212
+ *
3213
+ * If the timeout wins, the source effect is interrupted before the fallback is
3214
+ * run.
3215
+ *
2995
3216
  * **Example** (Falling back on timeout)
2996
3217
  *
2997
3218
  * ```ts
@@ -3020,7 +3241,10 @@ export const timeoutOption = internal.timeoutOption;
3020
3241
  * // Cached result
3021
3242
  * ```
3022
3243
  *
3023
- * @category Delays & Timeouts
3244
+ * @see {@link timeout} for failing with a `TimeoutException`.
3245
+ * @see {@link timeoutOption} for returning `Option.none` on timeout.
3246
+ *
3247
+ * @category delays & timeouts
3024
3248
  * @since 4.0.0
3025
3249
  */
3026
3250
  export const timeoutOrElse = internal.timeoutOrElse;
@@ -3042,7 +3266,7 @@ export const timeoutOrElse = internal.timeoutOrElse;
3042
3266
  * // Waits 1 second, then prints: "Delayed message"
3043
3267
  * ```
3044
3268
  *
3045
- * @category Delays & Timeouts
3269
+ * @category delays & timeouts
3046
3270
  * @since 2.0.0
3047
3271
  */
3048
3272
  export const delay = internal.delay;
@@ -3066,7 +3290,7 @@ export const delay = internal.delay;
3066
3290
  * // Output: "End" (after 2 seconds)
3067
3291
  * ```
3068
3292
  *
3069
- * @category Delays & Timeouts
3293
+ * @category delays & timeouts
3070
3294
  * @since 2.0.0
3071
3295
  */
3072
3296
  export const sleep = internal.sleep;
@@ -3089,7 +3313,7 @@ export const sleep = internal.sleep;
3089
3313
  * })
3090
3314
  * ```
3091
3315
  *
3092
- * @category Delays & Timeouts
3316
+ * @category delays & timeouts
3093
3317
  * @since 2.0.0
3094
3318
  */
3095
3319
  export const timed = internal.timed;
@@ -3101,7 +3325,7 @@ export const timed = internal.timed;
3101
3325
  *
3102
3326
  * **When to use**
3103
3327
  *
3104
- * Use `raceAll` when early failures should be ignored until a success occurs
3328
+ * Use when early failures should be ignored until a success occurs
3105
3329
  * or all effects fail.
3106
3330
  *
3107
3331
  * **Details**
@@ -3128,7 +3352,7 @@ export const timed = internal.timed;
3128
3352
  * ```
3129
3353
  *
3130
3354
  * @see {@link race} for a version that handles only two effects.
3131
- * @category Racing
3355
+ * @category racing
3132
3356
  * @since 2.0.0
3133
3357
  */
3134
3358
  export const raceAll = internal.raceAll;
@@ -3158,7 +3382,7 @@ export const raceAll = internal.raceAll;
3158
3382
  * // Result: "First" (after ~200ms, even though effect2 completes first but fails)
3159
3383
  * ```
3160
3384
  *
3161
- * @category Racing
3385
+ * @category racing
3162
3386
  * @since 4.0.0
3163
3387
  */
3164
3388
  export const raceAllFirst = internal.raceAllFirst;
@@ -3187,7 +3411,7 @@ export const raceAllFirst = internal.raceAllFirst;
3187
3411
  * // Output: winner: slow-success
3188
3412
  * ```
3189
3413
  *
3190
- * @category Racing
3414
+ * @category racing
3191
3415
  * @since 2.0.0
3192
3416
  */
3193
3417
  export const race = internal.race;
@@ -3219,7 +3443,7 @@ export const race = internal.race;
3219
3443
  * // Output: failed: fast-fail
3220
3444
  * ```
3221
3445
  *
3222
- * @category Racing
3446
+ * @category racing
3223
3447
  * @since 2.0.0
3224
3448
  */
3225
3449
  export const raceFirst = internal.raceFirst;
@@ -3251,6 +3475,19 @@ export const filter = internal.filter;
3251
3475
  /**
3252
3476
  * Filters and maps elements of an iterable with a `Filter`.
3253
3477
  *
3478
+ * **When to use**
3479
+ *
3480
+ * Use to keep only iterable elements accepted by a `Filter` and collect each
3481
+ * filter success value.
3482
+ *
3483
+ * **Details**
3484
+ *
3485
+ * `Result.succeed` values are collected in the returned array, and
3486
+ * `Result.fail` values are skipped.
3487
+ *
3488
+ * @see {@link filter} for keeping original elements with a boolean predicate, refinement, or effectful predicate
3489
+ * @see {@link filterMapEffect} for using an effectful `Filter`
3490
+ *
3254
3491
  * @category filtering
3255
3492
  * @since 2.0.0
3256
3493
  */
@@ -3258,6 +3495,24 @@ export const filterMap = internal.filterMap;
3258
3495
  /**
3259
3496
  * Effectfully filters and maps elements of an iterable with a `FilterEffect`.
3260
3497
  *
3498
+ * **When to use**
3499
+ *
3500
+ * Use when filtering each iterable element requires effects and accepted
3501
+ * elements should be transformed into successful output values.
3502
+ *
3503
+ * **Details**
3504
+ *
3505
+ * `Result.succeed` values are collected in the returned array, and
3506
+ * `Result.fail` values are skipped.
3507
+ *
3508
+ * **Gotchas**
3509
+ *
3510
+ * With concurrent execution, successful values are collected in completion
3511
+ * order, not input order.
3512
+ *
3513
+ * @see {@link filterMap} for using a synchronous `Filter`
3514
+ * @see {@link filter} for keeping original elements with a predicate
3515
+ *
3261
3516
  * @category filtering
3262
3517
  * @since 4.0.0
3263
3518
  */
@@ -3297,6 +3552,20 @@ export const filterOrElse = internal.filterOrElse;
3297
3552
  /**
3298
3553
  * Filters an effect with a `Filter`, providing an alternative effect on failure.
3299
3554
  *
3555
+ * **When to use**
3556
+ *
3557
+ * Use when a successful effect value should be accepted and transformed by a
3558
+ * `Filter`, while rejected values should continue with an alternative effect
3559
+ * built from the filter failure.
3560
+ *
3561
+ * **Details**
3562
+ *
3563
+ * `Result.succeed` becomes the returned success value, and `Result.fail` is
3564
+ * passed to `orElse`.
3565
+ *
3566
+ * @see {@link filterOrElse} for using a predicate and fallback effect
3567
+ * @see {@link filterMapOrFail} for failing the effect when the filter fails
3568
+ *
3300
3569
  * @category filtering
3301
3570
  * @since 4.0.0
3302
3571
  */
@@ -3333,7 +3602,21 @@ export const filterMapOrElse = internal.filterMapOrElse;
3333
3602
  */
3334
3603
  export const filterOrFail = internal.filterOrFail;
3335
3604
  /**
3336
- * Filters an effect with a `Filter`, failing when the filter fails.
3605
+ * Filters and maps an effect with a `Filter`, failing when the filter fails.
3606
+ *
3607
+ * **When to use**
3608
+ *
3609
+ * Use when validating and transforming one effect success with a synchronous
3610
+ * `Filter`, while rejected values should fail the effect.
3611
+ *
3612
+ * **Details**
3613
+ *
3614
+ * `Result.succeed` becomes the returned success value. `Result.fail` is mapped
3615
+ * with `orFailWith` when provided, or fails with `NoSuchElementError`.
3616
+ *
3617
+ * @see {@link filterMapOrElse} for continuing with a fallback effect when the filter fails
3618
+ * @see {@link filterOrFail} for validating with a predicate instead of a `Filter`
3619
+ * @see {@link filterMap} for filtering and mapping iterable elements
3337
3620
  *
3338
3621
  * @category filtering
3339
3622
  * @since 4.0.0
@@ -3348,7 +3631,7 @@ export const filterMapOrFail = internal.filterMapOrFail;
3348
3631
  *
3349
3632
  * **When to use**
3350
3633
  *
3351
- * Use this when an effectful check decides whether to run another effect while
3634
+ * Use when an effectful check decides whether to run another effect while
3352
3635
  * representing the skipped case explicitly.
3353
3636
  *
3354
3637
  * **Details**
@@ -3375,8 +3658,7 @@ export const filterMapOrFail = internal.filterMapOrFail;
3375
3658
  * // { _id: 'Option', _tag: 'Some', value: undefined }
3376
3659
  * ```
3377
3660
  *
3378
- * @see {@link when} for conditional execution with a boolean condition.
3379
- * @category Conditional Operators
3661
+ * @category conditional operators
3380
3662
  * @since 2.0.0
3381
3663
  */
3382
3664
  export const when = internal.when;
@@ -3389,7 +3671,7 @@ export const when = internal.when;
3389
3671
  *
3390
3672
  * **When to use**
3391
3673
  *
3392
- * This is useful for structuring your code to respond differently to success or
3674
+ * Use when this is useful for structuring your code to respond differently to success or
3393
3675
  * failure without triggering side effects.
3394
3676
  *
3395
3677
  * **Details**
@@ -3432,7 +3714,7 @@ export const when = internal.when;
3432
3714
  * ```
3433
3715
  *
3434
3716
  * @see {@link matchEffect} if you need to perform side effects in the handlers.
3435
- * @category Pattern Matching
3717
+ * @category pattern matching
3436
3718
  * @since 2.0.0
3437
3719
  */
3438
3720
  export const match = internal.match;
@@ -3442,7 +3724,7 @@ export const match = internal.match;
3442
3724
  *
3443
3725
  * **When to use**
3444
3726
  *
3445
- * Use this when you need to handle both success and failure cases and want
3727
+ * Use when you need to handle both success and failure cases and want
3446
3728
  * optimal performance for resolved effects. This is particularly useful in
3447
3729
  * scenarios where you frequently work with already computed values.
3448
3730
  *
@@ -3469,7 +3751,7 @@ export const match = internal.match;
3469
3751
  *
3470
3752
  * @see {@link match} for the non-eager version.
3471
3753
  * @see {@link matchEffect} if you need to perform side effects in the handlers.
3472
- * @category Pattern Matching
3754
+ * @category pattern matching
3473
3755
  * @since 4.0.0
3474
3756
  */
3475
3757
  export const matchEager = internal.matchEager;
@@ -3478,7 +3760,7 @@ export const matchEager = internal.matchEager;
3478
3760
  *
3479
3761
  * **When to use**
3480
3762
  *
3481
- * This is useful for differentiating between different types of errors, such as
3763
+ * Use when this is useful for differentiating between different types of errors, such as
3482
3764
  * regular failures, defects, or interruptions. You can provide specific
3483
3765
  * handling logic for each failure type based on the cause.
3484
3766
  *
@@ -3506,7 +3788,7 @@ export const matchEager = internal.matchEager;
3506
3788
  * @see {@link matchCauseEffect} if you need to perform side effects in the
3507
3789
  * handlers.
3508
3790
  * @see {@link match} if you don't need to handle the cause of the failure.
3509
- * @category Pattern Matching
3791
+ * @category pattern matching
3510
3792
  * @since 2.0.0
3511
3793
  */
3512
3794
  export const matchCause = internal.matchCause;
@@ -3515,7 +3797,7 @@ export const matchCause = internal.matchCause;
3515
3797
  *
3516
3798
  * **When to use**
3517
3799
  *
3518
- * This is useful when you have effects that are likely to be already resolved
3800
+ * Use when this is useful when you have effects that are likely to be already resolved
3519
3801
  * and you want to avoid the overhead of the effect pipeline. For pending effects,
3520
3802
  * it automatically falls back to the regular `matchCause` behavior.
3521
3803
  *
@@ -3536,25 +3818,40 @@ export const matchCause = internal.matchCause;
3536
3818
  * })
3537
3819
  * ```
3538
3820
  *
3539
- * @category Pattern Matching
3821
+ * @category pattern matching
3540
3822
  * @since 4.0.0
3541
3823
  */
3542
3824
  export const matchCauseEager = internal.matchCauseEager;
3543
3825
  /**
3544
3826
  * Eagerly handles success or failure with effectful handlers when the effect is already resolved.
3545
3827
  *
3828
+ * **When to use**
3829
+ *
3830
+ * Use when success and cause-aware failure handlers return effects and the
3831
+ * input may already be resolved, so the selected handler can run immediately
3832
+ * while unresolved inputs keep normal effectful matching behavior.
3833
+ *
3546
3834
  * **Details**
3547
3835
  *
3548
3836
  * If the effect is an `Exit`, the matching handler runs immediately; otherwise it behaves like
3549
3837
  * {@link matchCauseEffect}.
3550
3838
  *
3551
- * @category Pattern Matching
3839
+ * @see {@link matchCauseEffect} for the non-eager effectful variant
3840
+ * @see {@link matchCauseEager} for eager cause matching with pure handlers
3841
+ * @see {@link matchEffect} for effectful matching on typed failures instead of full causes
3842
+ *
3843
+ * @category pattern matching
3552
3844
  * @since 4.0.0
3553
3845
  */
3554
3846
  export const matchCauseEffectEager = internal.matchCauseEffectEager;
3555
3847
  /**
3556
3848
  * Handles failures with access to the cause and allows performing side effects.
3557
3849
  *
3850
+ * **When to use**
3851
+ *
3852
+ * Use when both success and failure handling must return effects and the
3853
+ * failure branch needs the full `Cause`.
3854
+ *
3558
3855
  * **Details**
3559
3856
  *
3560
3857
  * The `matchCauseEffect` function works similarly to {@link matchCause}, but it
@@ -3603,7 +3900,7 @@ export const matchCauseEffectEager = internal.matchCauseEffectEager;
3603
3900
  * @see {@link matchCause} if you don't need side effects and only want to handle the result or failure.
3604
3901
  * @see {@link matchEffect} if you don't need to handle the cause of the failure.
3605
3902
  *
3606
- * @category Pattern Matching
3903
+ * @category pattern matching
3607
3904
  * @since 2.0.0
3608
3905
  */
3609
3906
  export const matchCauseEffect = internal.matchCauseEffect;
@@ -3612,7 +3909,7 @@ export const matchCauseEffect = internal.matchCauseEffect;
3612
3909
  *
3613
3910
  * **When to use**
3614
3911
  *
3615
- * Use this when the failure or success branch must run additional effects.
3912
+ * Use when the failure or success branch must run additional effects.
3616
3913
  *
3617
3914
  * **Details**
3618
3915
  *
@@ -3663,7 +3960,7 @@ export const matchCauseEffect = internal.matchCauseEffect;
3663
3960
  *
3664
3961
  * @see {@link match} if you don't need side effects and only want to handle the
3665
3962
  * result or failure.
3666
- * @category Pattern Matching
3963
+ * @category pattern matching
3667
3964
  * @since 2.0.0
3668
3965
  */
3669
3966
  export const matchEffect = internal.matchEffect;
@@ -3691,7 +3988,7 @@ export const matchEffect = internal.matchEffect;
3691
3988
  * // Output: true
3692
3989
  * ```
3693
3990
  *
3694
- * @category Condition Checking
3991
+ * @category condition checking
3695
3992
  * @since 2.0.0
3696
3993
  */
3697
3994
  export const isFailure = internal.isFailure;
@@ -3721,7 +4018,7 @@ export const isFailure = internal.isFailure;
3721
4018
  * // failed: false
3722
4019
  * ```
3723
4020
  *
3724
- * @category Condition Checking
4021
+ * @category condition checking
3725
4022
  * @since 2.0.0
3726
4023
  */
3727
4024
  export const isSuccess = internal.isSuccess;
@@ -3731,6 +4028,10 @@ export const isSuccess = internal.isSuccess;
3731
4028
  /**
3732
4029
  * Returns the complete context.
3733
4030
  *
4031
+ * **When to use**
4032
+ *
4033
+ * Use to read the complete `Context` available to the current effect.
4034
+ *
3734
4035
  * **Details**
3735
4036
  *
3736
4037
  * This function allows you to access all services that are currently available
@@ -3766,13 +4067,20 @@ export const isSuccess = internal.isSuccess;
3766
4067
  * const provided = Effect.provideContext(program, context)
3767
4068
  * ```
3768
4069
  *
3769
- * @category Environment
4070
+ * @see {@link contextWith} for deriving an effect from the complete context
4071
+ * @see {@link service} for reading one service from the context
4072
+ *
4073
+ * @category environment
3770
4074
  * @since 2.0.0
3771
4075
  */
3772
4076
  export const context = internal.context;
3773
4077
  /**
3774
4078
  * Transforms the current context using the provided function.
3775
4079
  *
4080
+ * **When to use**
4081
+ *
4082
+ * Use to derive an effect from the complete `Context`.
4083
+ *
3776
4084
  * **Details**
3777
4085
  *
3778
4086
  * This function allows you to access the complete context and perform
@@ -3814,7 +4122,10 @@ export const context = internal.context;
3814
4122
  * })
3815
4123
  * ```
3816
4124
  *
3817
- * @category Environment
4125
+ * @see {@link context} for reading the complete context as a value
4126
+ * @see {@link service} for reading one service from the context
4127
+ *
4128
+ * @category environment
3818
4129
  * @since 2.0.0
3819
4130
  */
3820
4131
  export const contextWith = internal.contextWith;
@@ -3849,7 +4160,7 @@ export const contextWith = internal.contextWith;
3849
4160
  * // Output: "Result for: SELECT * FROM users"
3850
4161
  * ```
3851
4162
  *
3852
- * @category Environment
4163
+ * @category environment
3853
4164
  * @since 2.0.0
3854
4165
  */
3855
4166
  export const provide = internalLayer.provide;
@@ -3890,7 +4201,7 @@ export const provide = internalLayer.provide;
3890
4201
  * const provided = Effect.provideContext(program, context)
3891
4202
  * ```
3892
4203
  *
3893
- * @category Environment
4204
+ * @category environment
3894
4205
  * @since 4.0.0
3895
4206
  */
3896
4207
  export const provideContext = internal.provideContext;
@@ -3914,7 +4225,7 @@ export const provideContext = internal.provideContext;
3914
4225
  * })
3915
4226
  * ```
3916
4227
  *
3917
- * @category Context
4228
+ * @category context
3918
4229
  * @since 4.0.0
3919
4230
  */
3920
4231
  export const service = internal.service;
@@ -3950,7 +4261,7 @@ export const service = internal.service;
3950
4261
  * })
3951
4262
  * ```
3952
4263
  *
3953
- * @category Context
4264
+ * @category context
3954
4265
  * @since 2.0.0
3955
4266
  */
3956
4267
  export const serviceOption = internal.serviceOption;
@@ -3992,7 +4303,7 @@ export const serviceOption = internal.serviceOption;
3992
4303
  * })
3993
4304
  * ```
3994
4305
  *
3995
- * @category Context
4306
+ * @category context
3996
4307
  * @since 4.0.0
3997
4308
  */
3998
4309
  export const updateContext = internal.updateContext;
@@ -4028,7 +4339,7 @@ export const updateContext = internal.updateContext;
4028
4339
  * // 1
4029
4340
  * ```
4030
4341
  *
4031
- * @category Context
4342
+ * @category context
4032
4343
  * @since 2.0.0
4033
4344
  */
4034
4345
  export const updateService = internal.updateService;
@@ -4036,6 +4347,10 @@ export const updateService = internal.updateService;
4036
4347
  * The `provideService` function is used to provide an actual
4037
4348
  * implementation for a service in the context of an effect.
4038
4349
  *
4350
+ * **When to use**
4351
+ *
4352
+ * Use to satisfy one service requirement with an already-built implementation.
4353
+ *
4039
4354
  * **Details**
4040
4355
  *
4041
4356
  * This function allows you to associate a service with its implementation so
@@ -4076,7 +4391,9 @@ export const updateService = internal.updateService;
4076
4391
  * ```
4077
4392
  *
4078
4393
  * @see {@link provide} for providing multiple layers to an effect.
4079
- * @category Context
4394
+ * @see {@link provideServiceEffect} for acquiring the service implementation effectfully.
4395
+ * @see {@link provideContext} for providing a complete context.
4396
+ * @category context
4080
4397
  * @since 2.0.0
4081
4398
  */
4082
4399
  export const provideService = internal.provideService;
@@ -4130,7 +4447,7 @@ export const provideService = internal.provideService;
4130
4447
  * // Result for: SELECT * FROM users
4131
4448
  * ```
4132
4449
  *
4133
- * @category Context
4450
+ * @category context
4134
4451
  * @since 2.0.0
4135
4452
  */
4136
4453
  export const provideServiceEffect = internal.provideServiceEffect;
@@ -4283,6 +4600,10 @@ export const scopedWith = internal.scopedWith;
4283
4600
  * Constructs a scoped resource from an acquisition effect and a release
4284
4601
  * finalizer.
4285
4602
  *
4603
+ * **When to use**
4604
+ *
4605
+ * Use to acquire a scoped resource with an explicit release finalizer.
4606
+ *
4286
4607
  * **Details**
4287
4608
  *
4288
4609
  * If acquisition succeeds, the release finalizer is added to the current scope
@@ -4330,6 +4651,9 @@ export const scopedWith = internal.scopedWith;
4330
4651
  * )
4331
4652
  * ```
4332
4653
  *
4654
+ * @see {@link acquireDisposable} for resources that implement JavaScript disposal protocols
4655
+ * @see {@link acquireUseRelease} for bracketing acquire, use, and release in one effect
4656
+ *
4333
4657
  * @category resource management
4334
4658
  * @since 2.0.0
4335
4659
  */
@@ -4338,6 +4662,11 @@ export const acquireRelease = internal.acquireRelease;
4338
4662
  * This function constructs a scoped resource from an Effect that acquires a
4339
4663
  * disposable value.
4340
4664
  *
4665
+ * **When to use**
4666
+ *
4667
+ * Use with JavaScript `Disposable` or `AsyncDisposable` resources that should
4668
+ * be closed with the surrounding scope.
4669
+ *
4341
4670
  * **Details**
4342
4671
  *
4343
4672
  * The resource is automatically disposed when the surrounding
@@ -4346,8 +4675,9 @@ export const acquireRelease = internal.acquireRelease;
4346
4675
  * disposables.
4347
4676
  *
4348
4677
  * This is similar to {@link acquireRelease}, but uses the standard
4349
- * JavaScript disposal protocal instead of requiring an explicit release
4350
- * function.
4678
+ * JavaScript disposal protocol instead of requiring an explicit release
4679
+ * function. It works with JavaScript `Disposable` and `AsyncDisposable`
4680
+ * resources.
4351
4681
  *
4352
4682
  * **Example** (Acquiring a disposable resource)
4353
4683
  *
@@ -4369,7 +4699,8 @@ export const acquireRelease = internal.acquireRelease;
4369
4699
  * )
4370
4700
  * ```
4371
4701
  *
4372
- * @see [JavaScript `using` declarations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using)
4702
+ * @see {@link acquireRelease} for resources that need an explicit finalizer
4703
+ *
4373
4704
  * @category resource management
4374
4705
  * @since 4.0.0
4375
4706
  */
@@ -4380,6 +4711,10 @@ export const acquireDisposable = internal.acquireDisposable;
4380
4711
  * etc.) will not be interrupted, and that the resource will always be released
4381
4712
  * when the `Effect` value completes execution.
4382
4713
  *
4714
+ * **When to use**
4715
+ *
4716
+ * Use to bracket acquire, use, and release logic in one effect.
4717
+ *
4383
4718
  * **Details**
4384
4719
  *
4385
4720
  * `acquireUseRelease` does the following:
@@ -4445,6 +4780,8 @@ export const acquireDisposable = internal.acquireDisposable;
4445
4780
  * // Closing connection to db://localhost:5432 (success)
4446
4781
  * ```
4447
4782
  *
4783
+ * @see {@link acquireRelease} for scoped resources whose use happens later
4784
+ *
4448
4785
  * @category resource management
4449
4786
  * @since 2.0.0
4450
4787
  */
@@ -4454,6 +4791,10 @@ export const acquireUseRelease = internal.acquireUseRelease;
4454
4791
  * The finalizer is guaranteed to be run when the scope is closed, and it may
4455
4792
  * depend on the `Exit` value that the scope is closed with.
4456
4793
  *
4794
+ * **When to use**
4795
+ *
4796
+ * Use to register low-level cleanup in the current scope.
4797
+ *
4457
4798
  * **Details**
4458
4799
  *
4459
4800
  * Finalizers are useful for cleanup operations that must run regardless of
@@ -4490,6 +4831,9 @@ export const acquireUseRelease = internal.acquireUseRelease;
4490
4831
  * // operation result
4491
4832
  * ```
4492
4833
  *
4834
+ * @see {@link acquireRelease} for resource acquisition with a release finalizer
4835
+ * @see {@link ensuring} for attaching a finalizer to one effect
4836
+ *
4493
4837
  * @category resource management
4494
4838
  * @since 2.0.0
4495
4839
  */
@@ -4593,6 +4937,16 @@ export const onErrorIf = internal.onErrorIf;
4593
4937
  /**
4594
4938
  * Runs the finalizer only when this effect fails and the cause matches the provided `Filter`.
4595
4939
  *
4940
+ * **When to use**
4941
+ *
4942
+ * Use when cleanup or diagnostics should run only for failures whose full
4943
+ * `Cause` is accepted or transformed by a `Filter`, and the finalizer needs the
4944
+ * filter's pass value plus the original cause.
4945
+ *
4946
+ * @see {@link onError} for cleanup on every failure
4947
+ * @see {@link onErrorIf} for selecting failures with a boolean predicate
4948
+ * @see {@link onExitFilter} for selecting from every exit instead of only failures
4949
+ *
4596
4950
  * @category resource management
4597
4951
  * @since 4.0.0
4598
4952
  */
@@ -4601,11 +4955,19 @@ export const onErrorFilter = internal.onErrorFilter;
4601
4955
  * Runs an optional finalizer with the effect's `Exit` value when the effect
4602
4956
  * completes.
4603
4957
  *
4958
+ * **When to use**
4959
+ *
4960
+ * Use when you are building a low-level `Effect` operator that must inspect the
4961
+ * source effect's `Exit`, may skip finalization by returning `undefined`, or
4962
+ * must choose whether finalization is forced into an uninterruptible region.
4963
+ *
4604
4964
  * **Details**
4605
4965
  *
4606
4966
  * This low-level operator preserves the source effect's result unless the
4607
4967
  * finalizer fails. Prefer `onExit` for normal cleanup logic.
4608
4968
  *
4969
+ * @see {@link onExit} for ordinary exit-aware cleanup whose finalizer always returns an effect
4970
+ *
4609
4971
  * @category resource management
4610
4972
  * @since 4.0.0
4611
4973
  */
@@ -4664,6 +5026,21 @@ export const onExitIf = internal.onExitIf;
4664
5026
  /**
4665
5027
  * Runs the cleanup effect only when the `Exit` matches the provided `Filter`.
4666
5028
  *
5029
+ * **When to use**
5030
+ *
5031
+ * Use when cleanup should run only for `Exit` values selected by a `Filter`,
5032
+ * and the cleanup needs the extracted pass value together with the original
5033
+ * `Exit`.
5034
+ *
5035
+ * **Details**
5036
+ *
5037
+ * `Result.fail` skips cleanup, and `Result.succeed` runs cleanup with the
5038
+ * selected value and the original `Exit`.
5039
+ *
5040
+ * @see {@link onExit} for cleanup on every exit
5041
+ * @see {@link onExitIf} for selecting exits with a boolean predicate
5042
+ * @see {@link onErrorFilter} for selecting only failure causes
5043
+ *
4667
5044
  * @category resource management
4668
5045
  * @since 4.0.0
4669
5046
  */
@@ -4677,7 +5054,7 @@ export const onExitFilter = internal.onExitFilter;
4677
5054
  *
4678
5055
  * **When to use**
4679
5056
  *
4680
- * Use this function when you have an expensive or time-consuming operation that
5057
+ * Use when you use this function when you have an expensive or time-consuming operation that
4681
5058
  * you want to avoid repeating. The first evaluation will compute the result,
4682
5059
  * and all following evaluations will immediately return the cached value,
4683
5060
  * improving performance and reducing unnecessary work.
@@ -4731,7 +5108,7 @@ export const onExitFilter = internal.onExitFilter;
4731
5108
  * time-to-live duration for the cached value.
4732
5109
  * @see {@link cachedInvalidateWithTTL} for a similar function that includes an
4733
5110
  * additional effect for manually invalidating the cached value.
4734
- * @category Caching
5111
+ * @category caching
4735
5112
  * @since 2.0.0
4736
5113
  */
4737
5114
  export const cached = internal.cached;
@@ -4741,7 +5118,7 @@ export const cached = internal.cached;
4741
5118
  *
4742
5119
  * **When to use**
4743
5120
  *
4744
- * Use this function when you have an effect that involves costly operations or
5121
+ * Use when you use this function when you have an effect that involves costly operations or
4745
5122
  * computations, and you want to avoid repeating them within a short time frame.
4746
5123
  *
4747
5124
  * It's ideal for scenarios where the result of an effect doesn't change
@@ -4798,7 +5175,7 @@ export const cached = internal.cached;
4798
5175
  * indefinitely.
4799
5176
  * @see {@link cachedInvalidateWithTTL} for a similar function that includes an
4800
5177
  * additional effect for manually invalidating the cached value.
4801
- * @category Caching
5178
+ * @category caching
4802
5179
  * @since 2.0.0
4803
5180
  */
4804
5181
  export const cachedWithTTL = internal.cachedWithTTL;
@@ -4808,7 +5185,7 @@ export const cachedWithTTL = internal.cachedWithTTL;
4808
5185
  *
4809
5186
  * **When to use**
4810
5187
  *
4811
- * Use this function when you have an effect whose result needs to be cached for
5188
+ * Use when you use this function when you have an effect whose result needs to be cached for
4812
5189
  * a certain period, but you also want the option to refresh the cache manually
4813
5190
  * before the expiration time.
4814
5191
  *
@@ -4868,7 +5245,7 @@ export const cachedWithTTL = internal.cachedWithTTL;
4868
5245
  * indefinitely.
4869
5246
  * @see {@link cachedWithTTL} for a similar function that caches the result for
4870
5247
  * a specified duration but does not include an effect for manual invalidation.
4871
- * @category Caching
5248
+ * @category caching
4872
5249
  * @since 2.0.0
4873
5250
  */
4874
5251
  export const cachedInvalidateWithTTL = internal.cachedInvalidateWithTTL;
@@ -4892,7 +5269,7 @@ export const cachedInvalidateWithTTL = internal.cachedInvalidateWithTTL;
4892
5269
  * // Throws: InterruptedException
4893
5270
  * ```
4894
5271
  *
4895
- * @category Interruption
5272
+ * @category interruption
4896
5273
  * @since 2.0.0
4897
5274
  */
4898
5275
  export const interrupt = internal.interrupt;
@@ -4913,7 +5290,7 @@ export const interrupt = internal.interrupt;
4913
5290
  * // Later: fiber.interrupt()
4914
5291
  * ```
4915
5292
  *
4916
- * @category Interruption
5293
+ * @category interruption
4917
5294
  * @since 2.0.0
4918
5295
  */
4919
5296
  export const interruptible = internal.interruptible;
@@ -4938,7 +5315,7 @@ export const interruptible = internal.interruptible;
4938
5315
  * // Output: Task was interrupted, cleaning up...
4939
5316
  * ```
4940
5317
  *
4941
- * @category Interruption
5318
+ * @category interruption
4942
5319
  * @since 2.0.0
4943
5320
  */
4944
5321
  export const onInterrupt = internal.onInterrupt;
@@ -4963,7 +5340,7 @@ export const onInterrupt = internal.onInterrupt;
4963
5340
  * Effect.runPromise(Fiber.interrupt(fiber))
4964
5341
  * ```
4965
5342
  *
4966
- * @category Interruption
5343
+ * @category interruption
4967
5344
  * @since 2.0.0
4968
5345
  */
4969
5346
  export const uninterruptible = internal.uninterruptible;
@@ -4994,7 +5371,7 @@ export const uninterruptible = internal.uninterruptible;
4994
5371
  * )
4995
5372
  * ```
4996
5373
  *
4997
- * @category Interruption
5374
+ * @category interruption
4998
5375
  * @since 2.0.0
4999
5376
  */
5000
5377
  export const uninterruptibleMask = internal.uninterruptibleMask;
@@ -5026,14 +5403,32 @@ export const uninterruptibleMask = internal.uninterruptibleMask;
5026
5403
  * )
5027
5404
  * ```
5028
5405
  *
5029
- * @category Interruption
5406
+ * @category interruption
5030
5407
  * @since 2.0.0
5031
5408
  */
5032
5409
  export const interruptibleMask = internal.interruptibleMask;
5033
5410
  /**
5034
5411
  * Creates an AbortSignal that is managed by the provided scope.
5035
5412
  *
5036
- * @category Interruption
5413
+ * **When to use**
5414
+ *
5415
+ * Use to obtain a scope-managed `AbortSignal` for APIs that accept cancellation
5416
+ * through a signal.
5417
+ *
5418
+ * **Details**
5419
+ *
5420
+ * Each acquisition creates a fresh `AbortController`. Closing the owning scope
5421
+ * runs a finalizer that aborts the controller and the effect succeeds with the
5422
+ * controller's signal.
5423
+ *
5424
+ * **Gotchas**
5425
+ *
5426
+ * The signal is aborted when its owning scope closes, so avoid keeping it for
5427
+ * work that outlives that scope.
5428
+ *
5429
+ * @see {@link scoped} for binding resource lifetime to a scope
5430
+ *
5431
+ * @category interruption
5037
5432
  * @since 4.0.0
5038
5433
  */
5039
5434
  export const abortSignal = internal.abortSignal;
@@ -5064,13 +5459,17 @@ export const abortSignal = internal.abortSignal;
5064
5459
  * })
5065
5460
  * ```
5066
5461
  *
5067
- * @category Repetition / Recursion
5462
+ * @category repetition / recursion
5068
5463
  * @since 2.0.0
5069
5464
  */
5070
5465
  export const forever = internal.forever;
5071
5466
  /**
5072
5467
  * Repeats an effect based on a specified schedule or until the first failure.
5073
5468
  *
5469
+ * **When to use**
5470
+ *
5471
+ * Use to rerun an effect after successful executions.
5472
+ *
5074
5473
  * **Details**
5075
5474
  *
5076
5475
  * This function executes an effect repeatedly according to the given schedule.
@@ -5090,6 +5489,11 @@ export const forever = internal.forever;
5090
5489
  * delays, limiting recursions, or dynamically adjusting based on the outcome of
5091
5490
  * each execution.
5092
5491
  *
5492
+ * **Gotchas**
5493
+ *
5494
+ * The source effect is always evaluated once before the schedule is stepped.
5495
+ * The schedule controls additional repetitions, not the initial execution.
5496
+ *
5093
5497
  * **Example** (Repeating successful effects with a schedule)
5094
5498
  *
5095
5499
  * ```ts
@@ -5129,7 +5533,10 @@ export const forever = internal.forever;
5129
5533
  * // Effect.runPromiseExit(program).then(console.log)
5130
5534
  * ```
5131
5535
  *
5132
- * @category Repetition / Recursion
5536
+ * @see {@link retry} for failure-based repetition
5537
+ * @see {@link repeatOrElse} for fallback handling when repetition fails
5538
+ *
5539
+ * @category repetition / recursion
5133
5540
  * @since 2.0.0
5134
5541
  */
5135
5542
  export const repeat = internalSchedule.repeat;
@@ -5172,18 +5579,27 @@ export const repeat = internalSchedule.repeat;
5172
5579
  * )
5173
5580
  * ```
5174
5581
  *
5175
- * @category Repetition / Recursion
5582
+ * @category repetition / recursion
5176
5583
  * @since 2.0.0
5177
5584
  */
5178
5585
  export const repeatOrElse = internalSchedule.repeatOrElse;
5179
5586
  /**
5180
5587
  * Returns an array of `n` identical effects.
5181
5588
  *
5589
+ * **When to use**
5590
+ *
5591
+ * Use to create an array containing the same effect multiple times when you
5592
+ * want to pass those effects to another collector or control execution
5593
+ * separately.
5594
+ *
5182
5595
  * **Details**
5183
5596
  *
5184
- * Use with `Effect.all` to run the replicated effects and collect results.
5597
+ * This only creates the array of effects. It does not run or collect them.
5185
5598
  *
5186
- * @category Collecting
5599
+ * @see {@link all} for running the returned effects and collecting results
5600
+ * @see {@link replicateEffect} for repeating an effect and collecting results in one step with concurrency and discard options
5601
+ *
5602
+ * @category collecting
5187
5603
  * @since 2.0.0
5188
5604
  */
5189
5605
  export const replicate = internal.replicate;
@@ -5205,7 +5621,7 @@ export const replicate = internal.replicate;
5205
5621
  * })
5206
5622
  * ```
5207
5623
  *
5208
- * @category Collecting
5624
+ * @category collecting
5209
5625
  * @since 2.0.0
5210
5626
  */
5211
5627
  export const replicateEffect = internal.replicateEffect;
@@ -5213,6 +5629,11 @@ export const replicateEffect = internal.replicateEffect;
5213
5629
  * Runs an effect repeatedly according to a schedule and returns the schedule's
5214
5630
  * final output.
5215
5631
  *
5632
+ * **When to use**
5633
+ *
5634
+ * Use to rerun a successful effect according to a `Schedule` when the schedule
5635
+ * does not need a custom initial input.
5636
+ *
5216
5637
  * **Details**
5217
5638
  *
5218
5639
  * The schedule is first stepped with `undefined`. After each successful
@@ -5248,7 +5669,7 @@ export const replicateEffect = internal.replicateEffect;
5248
5669
  * @see {@link scheduleFrom} for a variant that allows the schedule's decision
5249
5670
  * to depend on the result of this effect.
5250
5671
  *
5251
- * @category Repetition / Recursion
5672
+ * @category repetition / recursion
5252
5673
  * @since 2.0.0
5253
5674
  */
5254
5675
  export const schedule = /*#__PURE__*/dual(2, (self, schedule) => scheduleFrom(self, undefined, schedule));
@@ -5286,7 +5707,7 @@ export const schedule = /*#__PURE__*/dual(2, (self, schedule) => scheduleFrom(se
5286
5707
  * // Returns the schedule count
5287
5708
  * ```
5288
5709
  *
5289
- * @category Repetition / Recursion
5710
+ * @category repetition / recursion
5290
5711
  * @since 2.0.0
5291
5712
  */
5292
5713
  export const scheduleFrom = internalSchedule.scheduleFrom;
@@ -5754,8 +6175,11 @@ export const withParentSpan = internal.withParentSpan;
5754
6175
  /**
5755
6176
  * Executes a request using the provided resolver.
5756
6177
  *
5757
- * @category Requests & Batching
5758
- * @since 2.0.0
6178
+ * **When to use**
6179
+ *
6180
+ * Use to execute a typed `Request` through a `RequestResolver` when you want
6181
+ * concurrent requests made with the same resolver to be collected and completed
6182
+ * by resolver logic.
5759
6183
  *
5760
6184
  * **Example** (Executing a request through a resolver)
5761
6185
  *
@@ -5781,17 +6205,28 @@ export const withParentSpan = internal.withParentSpan;
5781
6205
  * yield* Console.log(name)
5782
6206
  * })
5783
6207
  * ```
6208
+ *
6209
+ * @see {@link requestUnsafe} for the low-level entry point when you already have a `Context` and need to enqueue outside an `Effect`
6210
+ *
6211
+ * @category requests & batching
6212
+ * @since 2.0.0
5784
6213
  */
5785
6214
  export const request = internalRequest.request;
5786
6215
  /**
5787
6216
  * Low-level entry point that registers a request with a resolver and delivers the exit value via `onExit`.
5788
- * Use this when you already have a `Context` and need to enqueue a request outside an `Effect`.
6217
+ *
6218
+ * **When to use**
6219
+ *
6220
+ * Use when you already have a `Context` and need to enqueue a request outside
6221
+ * an `Effect` while receiving completion through `onExit`.
5789
6222
  *
5790
6223
  * **Details**
5791
6224
  *
5792
6225
  * It returns a canceler that removes the pending request entry.
5793
6226
  *
5794
- * @category Requests & Batching
6227
+ * @see {@link request} for the `Effect`-returning API used for normal request execution
6228
+ *
6229
+ * @category requests & batching
5795
6230
  * @since 4.0.0
5796
6231
  */
5797
6232
  export const requestUnsafe = internalRequest.requestUnsafe;
@@ -5844,7 +6279,7 @@ export const requestUnsafe = internalRequest.requestUnsafe;
5844
6279
  * })
5845
6280
  * ```
5846
6281
  *
5847
- * @category Supervision & Fibers
6282
+ * @category supervision & fibers
5848
6283
  * @since 4.0.0
5849
6284
  */
5850
6285
  export const forkChild = internal.forkChild;
@@ -5873,7 +6308,7 @@ export const forkChild = internal.forkChild;
5873
6308
  * )
5874
6309
  * ```
5875
6310
  *
5876
- * @category Supervision & Fibers
6311
+ * @category supervision & fibers
5877
6312
  * @since 2.0.0
5878
6313
  */
5879
6314
  export const forkIn = internal.forkIn;
@@ -5907,7 +6342,7 @@ export const forkIn = internal.forkIn;
5907
6342
  * )
5908
6343
  * ```
5909
6344
  *
5910
- * @category Supervision & Fibers
6345
+ * @category supervision & fibers
5911
6346
  * @since 2.0.0
5912
6347
  */
5913
6348
  export const forkScoped = internal.forkScoped;
@@ -5941,7 +6376,7 @@ export const forkScoped = internal.forkScoped;
5941
6376
  * })
5942
6377
  * ```
5943
6378
  *
5944
- * @category Supervision & Fibers
6379
+ * @category supervision & fibers
5945
6380
  * @since 4.0.0
5946
6381
  */
5947
6382
  export const forkDetach = internal.forkDetach;
@@ -5949,7 +6384,22 @@ export const forkDetach = internal.forkDetach;
5949
6384
  * Waits for all child fibers forked by this effect to complete before this
5950
6385
  * effect completes.
5951
6386
  *
5952
- * @category Supervision & Fibers
6387
+ * **When to use**
6388
+ *
6389
+ * Use to let an effect start child work concurrently while still delaying its
6390
+ * own completion until that child work is done.
6391
+ *
6392
+ * **Gotchas**
6393
+ *
6394
+ * Child fibers that already exist before the wrapped effect starts are not
6395
+ * awaited.
6396
+ *
6397
+ * @see {@link forkChild} for forking child fibers that are awaited by this operator
6398
+ * @see {@link forkDetach} for forking fibers outside the child scope
6399
+ * @see {@link forkIn} for forking into an explicit scope
6400
+ * @see {@link forkScoped} for forking fibers tied to the current scope
6401
+ *
6402
+ * @category supervision & fibers
5953
6403
  * @since 2.0.0
5954
6404
  */
5955
6405
  export const awaitAllChildren = internal.awaitAllChildren;
@@ -5967,7 +6417,7 @@ export const awaitAllChildren = internal.awaitAllChildren;
5967
6417
  * })
5968
6418
  * ```
5969
6419
  *
5970
- * @category Supervision & Fibers
6420
+ * @category supervision & fibers
5971
6421
  * @since 4.0.0
5972
6422
  */
5973
6423
  export const fiber = internal.fiber;
@@ -5990,7 +6440,7 @@ export const fiber = internal.fiber;
5990
6440
  * )
5991
6441
  * ```
5992
6442
  *
5993
- * @category Supervision & Fibers
6443
+ * @category supervision & fibers
5994
6444
  * @since 2.0.0
5995
6445
  */
5996
6446
  export const fiberId = internal.fiberId;
@@ -6000,7 +6450,7 @@ export const fiberId = internal.fiberId;
6000
6450
  *
6001
6451
  * **When to use**
6002
6452
  *
6003
- * `runFork` is used to run an effect in the background by creating a
6453
+ * Use when `runFork` is used to run an effect in the background by creating a
6004
6454
  * fiber. It is the base function for all other run functions. It starts a fiber
6005
6455
  * that can be observed or interrupted.
6006
6456
  *
@@ -6028,7 +6478,7 @@ export const fiberId = internal.fiberId;
6028
6478
  * }, 500)
6029
6479
  * ```
6030
6480
  *
6031
- * @category Running Effects
6481
+ * @category running effects
6032
6482
  * @since 2.0.0
6033
6483
  */
6034
6484
  export const runFork = internal.runFork;
@@ -6059,7 +6509,7 @@ export const runFork = internal.runFork;
6059
6509
  * const fiber = Effect.runForkWith(services)(program)
6060
6510
  * ```
6061
6511
  *
6062
- * @category Running Effects
6512
+ * @category running effects
6063
6513
  * @since 4.0.0
6064
6514
  */
6065
6515
  export const runForkWith = internal.runForkWith;
@@ -6103,7 +6553,7 @@ export const runForkWith = internal.runForkWith;
6103
6553
  * interrupt()
6104
6554
  * ```
6105
6555
  *
6106
- * @category Running Effects
6556
+ * @category running effects
6107
6557
  * @since 4.0.0
6108
6558
  */
6109
6559
  export const runCallbackWith = internal.runCallbackWith;
@@ -6144,7 +6594,7 @@ export const runCallbackWith = internal.runCallbackWith;
6144
6594
  * // interrupt() to cancel the fiber if needed
6145
6595
  * ```
6146
6596
  *
6147
- * @category Running Effects
6597
+ * @category running effects
6148
6598
  * @since 2.0.0
6149
6599
  */
6150
6600
  export const runCallback = internal.runCallback;
@@ -6153,7 +6603,7 @@ export const runCallback = internal.runCallback;
6153
6603
  *
6154
6604
  * **When to use**
6155
6605
  *
6156
- * Use `runPromise` when you need to execute an effect and work with the
6606
+ * Use when you need to execute an effect and work with the
6157
6607
  * result using `Promise` syntax, typically for compatibility with other
6158
6608
  * promise-based code.
6159
6609
  *
@@ -6181,7 +6631,7 @@ export const runCallback = internal.runCallback;
6181
6631
  * ```
6182
6632
  *
6183
6633
  * @see {@link runPromiseExit} for a version that returns an `Exit` type instead of rejecting.
6184
- * @category Running Effects
6634
+ * @category running effects
6185
6635
  * @since 2.0.0
6186
6636
  */
6187
6637
  export const runPromise = internal.runPromise;
@@ -6211,7 +6661,7 @@ export const runPromise = internal.runPromise;
6211
6661
  * Effect.runPromiseWith(context)(program).then(console.log)
6212
6662
  * ```
6213
6663
  *
6214
- * @category Running Effects
6664
+ * @category running effects
6215
6665
  * @since 4.0.0
6216
6666
  */
6217
6667
  export const runPromiseWith = internal.runPromiseWith;
@@ -6221,7 +6671,7 @@ export const runPromiseWith = internal.runPromiseWith;
6221
6671
  *
6222
6672
  * **When to use**
6223
6673
  *
6224
- * Use `runPromiseExit` when you need to determine if an effect succeeded
6674
+ * Use when you need to determine if an effect succeeded
6225
6675
  * or failed, including any defects, and you want to work with a `Promise`.
6226
6676
  *
6227
6677
  * **Details**
@@ -6259,7 +6709,9 @@ export const runPromiseWith = internal.runPromiseWith;
6259
6709
  * // }
6260
6710
  * ```
6261
6711
  *
6262
- * @category Running Effects
6712
+ * @see {@link runPromise} for a version that rejects on failure.
6713
+ *
6714
+ * @category running effects
6263
6715
  * @since 2.0.0
6264
6716
  */
6265
6717
  export const runPromiseExit = internal.runPromiseExit;
@@ -6293,7 +6745,7 @@ export const runPromiseExit = internal.runPromiseExit;
6293
6745
  * })
6294
6746
  * ```
6295
6747
  *
6296
- * @category Running Effects
6748
+ * @category running effects
6297
6749
  * @since 4.0.0
6298
6750
  */
6299
6751
  export const runPromiseExitWith = internal.runPromiseExitWith;
@@ -6302,7 +6754,7 @@ export const runPromiseExitWith = internal.runPromiseExitWith;
6302
6754
  *
6303
6755
  * **When to use**
6304
6756
  *
6305
- * Use `runSync` only for effects that can complete synchronously.
6757
+ * Use when you use `runSync` only for effects that can complete synchronously.
6306
6758
  *
6307
6759
  * **Details**
6308
6760
  *
@@ -6353,7 +6805,7 @@ export const runPromiseExitWith = internal.runPromiseExitWith;
6353
6805
  *
6354
6806
  * @see {@link runSyncExit} for a version that returns an `Exit` type instead of
6355
6807
  * throwing an error.
6356
- * @category Running Effects
6808
+ * @category running effects
6357
6809
  * @since 2.0.0
6358
6810
  */
6359
6811
  export const runSync = internal.runSync;
@@ -6384,7 +6836,7 @@ export const runSync = internal.runSync;
6384
6836
  * console.log(result) // 5
6385
6837
  * ```
6386
6838
  *
6387
- * @category Running Effects
6839
+ * @category running effects
6388
6840
  * @since 4.0.0
6389
6841
  */
6390
6842
  export const runSyncWith = internal.runSyncWith;
@@ -6394,7 +6846,7 @@ export const runSyncWith = internal.runSyncWith;
6394
6846
  *
6395
6847
  * **When to use**
6396
6848
  *
6397
- * Use `runSyncExit` to find out whether an effect succeeded or failed,
6849
+ * Use to find out whether an effect succeeded or failed,
6398
6850
  * including any defects, without dealing with asynchronous operations.
6399
6851
  *
6400
6852
  * **Details**
@@ -6456,7 +6908,9 @@ export const runSyncWith = internal.runSyncWith;
6456
6908
  * // }
6457
6909
  * ```
6458
6910
  *
6459
- * @category Running Effects
6911
+ * @see {@link runSync} for a version that throws on failure.
6912
+ *
6913
+ * @category running effects
6460
6914
  * @since 2.0.0
6461
6915
  */
6462
6916
  export const runSyncExit = internal.runSyncExit;
@@ -6496,7 +6950,7 @@ export const runSyncExit = internal.runSyncExit;
6496
6950
  * // Success: 42
6497
6951
  * ```
6498
6952
  *
6499
- * @category Running Effects
6953
+ * @category running effects
6500
6954
  * @since 4.0.0
6501
6955
  */
6502
6956
  export const runSyncExitWith = internal.runSyncExitWith;
@@ -6520,7 +6974,7 @@ export const runSyncExitWith = internal.runSyncExitWith;
6520
6974
  * Effect.runFork(greet("Ada"))
6521
6975
  * ```
6522
6976
  *
6523
- * @category Function
6977
+ * @category functions
6524
6978
  * @since 3.12.0
6525
6979
  */
6526
6980
  export const fnUntraced = internal.fnUntraced;
@@ -6551,7 +7005,7 @@ export const fnUntraced = internal.fnUntraced;
6551
7005
  * })
6552
7006
  * ```
6553
7007
  *
6554
- * @category Function
7008
+ * @category functions
6555
7009
  * @since 3.11.0
6556
7010
  */
6557
7011
  export const fn = internal.fn;
@@ -6579,7 +7033,7 @@ export const fn = internal.fn;
6579
7033
  * // Current time is: 1735484929744
6580
7034
  * ```
6581
7035
  *
6582
- * @category Clock
7036
+ * @category clock
6583
7037
  * @since 2.0.0
6584
7038
  */
6585
7039
  export const clockWith = internal.clockWith;
@@ -6892,6 +7346,10 @@ export const annotateLogs = /*#__PURE__*/dual(args => isEffect(args[0]), (effect
6892
7346
  /**
6893
7347
  * Adds log annotations to the current scope.
6894
7348
  *
7349
+ * **When to use**
7350
+ *
7351
+ * Use to attach log annotations that last until the current scope closes.
7352
+ *
6895
7353
  * **Details**
6896
7354
  *
6897
7355
  * This differs from `annotateLogs`, which only annotates a specific effect.
@@ -6914,6 +7372,8 @@ export const annotateLogs = /*#__PURE__*/dual(args => isEffect(args[0]), (effect
6914
7372
  * Effect.runPromise(program)
6915
7373
  * ```
6916
7374
  *
7375
+ * @see {@link annotateLogs} for annotating one effect
7376
+ *
6917
7377
  * @category logging
6918
7378
  * @since 3.1.0
6919
7379
  */
@@ -7005,7 +7465,7 @@ export const withLogSpan = /*#__PURE__*/dual(2, (effect, label) => internal.flat
7005
7465
  * )
7006
7466
  * ```
7007
7467
  *
7008
- * @category Tracking
7468
+ * @category tracking
7009
7469
  * @since 4.0.0
7010
7470
  */
7011
7471
  export const track = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, f) => onExit(self, exit => {
@@ -7058,7 +7518,7 @@ export const track = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric,
7058
7518
  * )
7059
7519
  * ```
7060
7520
  *
7061
- * @category Tracking
7521
+ * @category tracking
7062
7522
  * @since 4.0.0
7063
7523
  */
7064
7524
  export const trackSuccesses = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, f) => tap(self, value => {
@@ -7113,7 +7573,7 @@ export const trackSuccesses = /*#__PURE__*/dual(args => isEffect(args[0]), (self
7113
7573
  * )
7114
7574
  * ```
7115
7575
  *
7116
- * @category Tracking
7576
+ * @category tracking
7117
7577
  * @since 4.0.0
7118
7578
  */
7119
7579
  export const trackErrors = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, f) => tapError(self, error => {
@@ -7169,7 +7629,7 @@ export const trackErrors = /*#__PURE__*/dual(args => isEffect(args[0]), (self, m
7169
7629
  * )
7170
7630
  * ```
7171
7631
  *
7172
- * @category Tracking
7632
+ * @category tracking
7173
7633
  * @since 4.0.0
7174
7634
  */
7175
7635
  export const trackDefects = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, f) => tapDefect(self, defect => {
@@ -7221,7 +7681,7 @@ export const trackDefects = /*#__PURE__*/dual(args => isEffect(args[0]), (self,
7221
7681
  * )
7222
7682
  * ```
7223
7683
  *
7224
- * @category Tracking
7684
+ * @category tracking
7225
7685
  * @since 4.0.0
7226
7686
  */
7227
7687
  export const trackDuration = /*#__PURE__*/dual(args => isEffect(args[0]), (self, metric, f) => clockWith(clock => {
@@ -7257,7 +7717,7 @@ export const trackDuration = /*#__PURE__*/dual(args => isEffect(args[0]), (self,
7257
7717
  * })
7258
7718
  * ```
7259
7719
  *
7260
- * @category Transactions
7720
+ * @category transactions
7261
7721
  * @since 4.0.0
7262
7722
  */
7263
7723
  export class Transaction extends /*#__PURE__*/Context.Service()("effect/Effect/Transaction") {}
@@ -7303,7 +7763,7 @@ export class Transaction extends /*#__PURE__*/Context.Service()("effect/Effect/T
7303
7763
  * })
7304
7764
  * ```
7305
7765
  *
7306
- * @category Transactions
7766
+ * @category transactions
7307
7767
  * @since 4.0.0
7308
7768
  */
7309
7769
  export const tx = effect => withFiber(fiber => {
@@ -7418,7 +7878,7 @@ function clearTransaction(state) {
7418
7878
  * Effect.runPromise(program).catch(console.error)
7419
7879
  * ```
7420
7880
  *
7421
- * @category Transactions
7881
+ * @category transactions
7422
7882
  * @since 4.0.0
7423
7883
  */
7424
7884
  export const txRetry = /*#__PURE__*/flatMap(Transaction, state => {
@@ -7470,7 +7930,7 @@ export const txRetry = /*#__PURE__*/flatMap(Transaction, state => {
7470
7930
  * // Output: Exit.failure with custom error message
7471
7931
  * ```
7472
7932
  *
7473
- * @category Effectify
7933
+ * @category effectify
7474
7934
  * @since 4.0.0
7475
7935
  */
7476
7936
  export const effectify = (fn, onError, onSyncError) => (...args) => callback(resume => {
@@ -7494,8 +7954,8 @@ export const effectify = (fn, onError, onSyncError) => (...args) => callback(res
7494
7954
  *
7495
7955
  * **Details**
7496
7956
  *
7497
- * This function provides compile-time type checking to ensure that the success
7498
- * value of an effect conforms to a specific type constraint.
7957
+ * This helper is checked at compile time and does not change the effect's
7958
+ * runtime behavior.
7499
7959
  *
7500
7960
  * **Example** (Constraining the success type)
7501
7961
  *
@@ -7514,7 +7974,7 @@ export const effectify = (fn, onError, onSyncError) => (...args) => callback(res
7514
7974
  * // Type 'string' is not assignable to type 'number'
7515
7975
  * ```
7516
7976
  *
7517
- * @category Type Constraints
7977
+ * @category utility types
7518
7978
  * @since 4.0.0
7519
7979
  */
7520
7980
  export const satisfiesSuccessType = () => effect => effect;
@@ -7523,8 +7983,8 @@ export const satisfiesSuccessType = () => effect => effect;
7523
7983
  *
7524
7984
  * **Details**
7525
7985
  *
7526
- * This function provides compile-time type checking to ensure that the error
7527
- * type of an effect conforms to a specific type constraint.
7986
+ * This helper is checked at compile time and does not change the effect's
7987
+ * runtime behavior.
7528
7988
  *
7529
7989
  * **Example** (Constraining the error type)
7530
7990
  *
@@ -7545,7 +8005,7 @@ export const satisfiesSuccessType = () => effect => effect;
7545
8005
  * // Type 'string' is not assignable to type 'ValidationError'
7546
8006
  * ```
7547
8007
  *
7548
- * @category Type Constraints
8008
+ * @category utility types
7549
8009
  * @since 4.0.0
7550
8010
  */
7551
8011
  export const satisfiesErrorType = () => effect => effect;
@@ -7554,8 +8014,8 @@ export const satisfiesErrorType = () => effect => effect;
7554
8014
  *
7555
8015
  * **Details**
7556
8016
  *
7557
- * This function provides compile-time type checking to ensure that the
7558
- * requirements (context) type of an effect conforms to a specific type constraint.
8017
+ * This helper is checked at compile time and does not change the effect's
8018
+ * runtime behavior.
7559
8019
  *
7560
8020
  * **Example** (Constraining the services type)
7561
8021
  *
@@ -7574,7 +8034,7 @@ export const satisfiesErrorType = () => effect => effect;
7574
8034
  * // const constrainedInvalid = satisfiesStringServices(invalidEffect)
7575
8035
  * ```
7576
8036
  *
7577
- * @category Type Constraints
8037
+ * @category utility types
7578
8038
  * @since 4.0.0
7579
8039
  */
7580
8040
  export const satisfiesServicesType = () => effect => effect;
@@ -7584,7 +8044,7 @@ export const satisfiesServicesType = () => effect => effect;
7584
8044
  *
7585
8045
  * **When to use**
7586
8046
  *
7587
- * `mapEager` provides better performance for effects that are already resolved
8047
+ * Use when `mapEager` provides better performance for effects that are already resolved
7588
8048
  * by applying the transformation immediately instead of deferring it through
7589
8049
  * the effect pipeline.
7590
8050
  *
@@ -7610,7 +8070,7 @@ export const satisfiesServicesType = () => effect => effect;
7610
8070
  * const mappedPending = Effect.mapEager(pending, (n) => n * 2) // Uses regular map
7611
8071
  * ```
7612
8072
  *
7613
- * @category Eager
8073
+ * @category eager
7614
8074
  * @since 4.0.0
7615
8075
  */
7616
8076
  export const mapEager = internal.mapEager;
@@ -7620,7 +8080,7 @@ export const mapEager = internal.mapEager;
7620
8080
  *
7621
8081
  * **When to use**
7622
8082
  *
7623
- * `mapErrorEager` provides better performance for effects that are already resolved
8083
+ * Use when `mapErrorEager` provides better performance for effects that are already resolved
7624
8084
  * by applying the error transformation immediately instead of deferring it through
7625
8085
  * the effect pipeline.
7626
8086
  *
@@ -7649,7 +8109,7 @@ export const mapEager = internal.mapEager;
7649
8109
  * ) // Uses regular mapError
7650
8110
  * ```
7651
8111
  *
7652
- * @category Eager
8112
+ * @category eager
7653
8113
  * @since 4.0.0
7654
8114
  */
7655
8115
  export const mapErrorEager = internal.mapErrorEager;
@@ -7659,7 +8119,7 @@ export const mapErrorEager = internal.mapErrorEager;
7659
8119
  *
7660
8120
  * **When to use**
7661
8121
  *
7662
- * `mapBothEager` provides better performance for effects that are already resolved
8122
+ * Use when `mapBothEager` provides better performance for effects that are already resolved
7663
8123
  * by applying the transformation immediately instead of deferring it through
7664
8124
  * the effect pipeline.
7665
8125
  *
@@ -7690,7 +8150,7 @@ export const mapErrorEager = internal.mapErrorEager;
7690
8150
  * }) // onFailure applied eagerly
7691
8151
  * ```
7692
8152
  *
7693
- * @category Eager
8153
+ * @category eager
7694
8154
  * @since 4.0.0
7695
8155
  */
7696
8156
  export const mapBothEager = internal.mapBothEager;
@@ -7700,7 +8160,7 @@ export const mapBothEager = internal.mapBothEager;
7700
8160
  *
7701
8161
  * **When to use**
7702
8162
  *
7703
- * `flatMapEager` provides better performance for effects that are already resolved
8163
+ * Use when `flatMapEager` provides better performance for effects that are already resolved
7704
8164
  * by applying the transformation immediately instead of deferring it through
7705
8165
  * the effect pipeline.
7706
8166
  *
@@ -7729,7 +8189,7 @@ export const mapBothEager = internal.mapBothEager;
7729
8189
  * ) // Uses regular flatMap
7730
8190
  * ```
7731
8191
  *
7732
- * @category Eager
8192
+ * @category eager
7733
8193
  * @since 4.0.0
7734
8194
  */
7735
8195
  export const flatMapEager = internal.flatMapEager;
@@ -7739,7 +8199,7 @@ export const flatMapEager = internal.flatMapEager;
7739
8199
  *
7740
8200
  * **When to use**
7741
8201
  *
7742
- * `catchEager` provides better performance for effects that are already resolved
8202
+ * Use when `catchEager` provides better performance for effects that are already resolved
7743
8203
  * by applying the error recovery immediately instead of deferring it through
7744
8204
  * the effect pipeline.
7745
8205
  *
@@ -7778,7 +8238,7 @@ export const flatMapEager = internal.flatMapEager;
7778
8238
  * ) // Uses regular catch
7779
8239
  * ```
7780
8240
  *
7781
- * @category Eager
8241
+ * @category eager
7782
8242
  * @since 4.0.0
7783
8243
  */
7784
8244
  export const catchEager = internal.catchEager;
@@ -7804,7 +8264,7 @@ export const catchEager = internal.catchEager;
7804
8264
  * const effect = computation() // Executed immediately if all effects are sync
7805
8265
  * ```
7806
8266
  *
7807
- * @category Eager
8267
+ * @category eager
7808
8268
  * @since 4.0.0
7809
8269
  */
7810
8270
  export const fnUntracedEager = internal.fnUntracedEager;