effect 4.0.0-beta.71 → 4.0.0-beta.72

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 (993) hide show
  1. package/dist/Array.d.ts +65 -111
  2. package/dist/Array.d.ts.map +1 -1
  3. package/dist/Array.js +28 -44
  4. package/dist/Array.js.map +1 -1
  5. package/dist/BigDecimal.d.ts +66 -58
  6. package/dist/BigDecimal.d.ts.map +1 -1
  7. package/dist/BigDecimal.js +30 -26
  8. package/dist/BigDecimal.js.map +1 -1
  9. package/dist/BigInt.d.ts +21 -19
  10. package/dist/BigInt.d.ts.map +1 -1
  11. package/dist/BigInt.js +17 -15
  12. package/dist/BigInt.js.map +1 -1
  13. package/dist/Boolean.d.ts +15 -17
  14. package/dist/Boolean.d.ts.map +1 -1
  15. package/dist/Boolean.js +13 -13
  16. package/dist/Boolean.js.map +1 -1
  17. package/dist/Brand.d.ts +2 -3
  18. package/dist/Brand.d.ts.map +1 -1
  19. package/dist/Brand.js +2 -3
  20. package/dist/Brand.js.map +1 -1
  21. package/dist/Cache.d.ts +9 -9
  22. package/dist/Cache.js +3 -3
  23. package/dist/Cause.d.ts +35 -39
  24. package/dist/Cause.d.ts.map +1 -1
  25. package/dist/Cause.js +31 -33
  26. package/dist/Cause.js.map +1 -1
  27. package/dist/Channel.d.ts +141 -99
  28. package/dist/Channel.d.ts.map +1 -1
  29. package/dist/Channel.js +56 -42
  30. package/dist/Channel.js.map +1 -1
  31. package/dist/ChannelSchema.d.ts +3 -3
  32. package/dist/ChannelSchema.js +1 -1
  33. package/dist/Chunk.d.ts +67 -54
  34. package/dist/Chunk.d.ts.map +1 -1
  35. package/dist/Chunk.js +33 -22
  36. package/dist/Chunk.js.map +1 -1
  37. package/dist/Clock.d.ts +3 -3
  38. package/dist/Clock.js +1 -1
  39. package/dist/Combiner.d.ts +6 -10
  40. package/dist/Combiner.d.ts.map +1 -1
  41. package/dist/Combiner.js +6 -10
  42. package/dist/Combiner.js.map +1 -1
  43. package/dist/Config.d.ts +9 -10
  44. package/dist/Config.d.ts.map +1 -1
  45. package/dist/Config.js +7 -8
  46. package/dist/Config.js.map +1 -1
  47. package/dist/ConfigProvider.d.ts +4 -4
  48. package/dist/ConfigProvider.js +4 -4
  49. package/dist/Console.d.ts +11 -7
  50. package/dist/Console.d.ts.map +1 -1
  51. package/dist/Console.js +11 -7
  52. package/dist/Console.js.map +1 -1
  53. package/dist/Context.d.ts +35 -35
  54. package/dist/Context.js +13 -13
  55. package/dist/Cron.d.ts +7 -6
  56. package/dist/Cron.d.ts.map +1 -1
  57. package/dist/Cron.js +7 -6
  58. package/dist/Cron.js.map +1 -1
  59. package/dist/Crypto.d.ts +1 -1
  60. package/dist/Crypto.js +1 -1
  61. package/dist/Data.d.ts +26 -32
  62. package/dist/Data.d.ts.map +1 -1
  63. package/dist/Data.js +9 -8
  64. package/dist/Data.js.map +1 -1
  65. package/dist/DateTime.d.ts +164 -122
  66. package/dist/DateTime.d.ts.map +1 -1
  67. package/dist/DateTime.js +86 -66
  68. package/dist/DateTime.js.map +1 -1
  69. package/dist/Deferred.d.ts +6 -6
  70. package/dist/Deferred.js +4 -4
  71. package/dist/Duration.d.ts +39 -39
  72. package/dist/Duration.js +21 -21
  73. package/dist/Effect.d.ts +220 -309
  74. package/dist/Effect.d.ts.map +1 -1
  75. package/dist/Effect.js +115 -140
  76. package/dist/Effect.js.map +1 -1
  77. package/dist/Effectable.d.ts +2 -2
  78. package/dist/Effectable.js +2 -2
  79. package/dist/Encoding.d.ts +13 -10
  80. package/dist/Encoding.d.ts.map +1 -1
  81. package/dist/Encoding.js +12 -9
  82. package/dist/Encoding.js.map +1 -1
  83. package/dist/Equal.d.ts +3 -4
  84. package/dist/Equal.d.ts.map +1 -1
  85. package/dist/Equal.js +2 -3
  86. package/dist/Equal.js.map +1 -1
  87. package/dist/Equivalence.d.ts +5 -19
  88. package/dist/Equivalence.d.ts.map +1 -1
  89. package/dist/Equivalence.js +5 -14
  90. package/dist/Equivalence.js.map +1 -1
  91. package/dist/ErrorReporter.d.ts +14 -13
  92. package/dist/ErrorReporter.d.ts.map +1 -1
  93. package/dist/ErrorReporter.js +10 -9
  94. package/dist/ErrorReporter.js.map +1 -1
  95. package/dist/ExecutionPlan.d.ts +7 -2
  96. package/dist/ExecutionPlan.d.ts.map +1 -1
  97. package/dist/ExecutionPlan.js +7 -2
  98. package/dist/ExecutionPlan.js.map +1 -1
  99. package/dist/Exit.d.ts +25 -23
  100. package/dist/Exit.d.ts.map +1 -1
  101. package/dist/Exit.js +13 -13
  102. package/dist/Exit.js.map +1 -1
  103. package/dist/Fiber.d.ts +4 -4
  104. package/dist/Fiber.js +2 -2
  105. package/dist/FiberHandle.d.ts +6 -6
  106. package/dist/FiberHandle.js +4 -4
  107. package/dist/FiberMap.d.ts +18 -18
  108. package/dist/FiberMap.js +8 -8
  109. package/dist/FiberSet.d.ts +21 -13
  110. package/dist/FiberSet.d.ts.map +1 -1
  111. package/dist/FiberSet.js +17 -9
  112. package/dist/FiberSet.js.map +1 -1
  113. package/dist/FileSystem.d.ts +13 -9
  114. package/dist/FileSystem.d.ts.map +1 -1
  115. package/dist/FileSystem.js +11 -7
  116. package/dist/FileSystem.js.map +1 -1
  117. package/dist/Filter.d.ts +2 -2
  118. package/dist/Filter.js +2 -2
  119. package/dist/Formatter.d.ts +1 -3
  120. package/dist/Formatter.d.ts.map +1 -1
  121. package/dist/Formatter.js +1 -3
  122. package/dist/Formatter.js.map +1 -1
  123. package/dist/Function.d.ts +12 -12
  124. package/dist/Function.js +12 -12
  125. package/dist/Graph.d.ts +22 -22
  126. package/dist/Graph.js +12 -12
  127. package/dist/HKT.d.ts +5 -4
  128. package/dist/HKT.d.ts.map +1 -1
  129. package/dist/Hash.d.ts +3 -3
  130. package/dist/Hash.js +3 -3
  131. package/dist/HashMap.d.ts +33 -35
  132. package/dist/HashMap.d.ts.map +1 -1
  133. package/dist/HashMap.js +11 -13
  134. package/dist/HashMap.js.map +1 -1
  135. package/dist/HashRing.d.ts +7 -9
  136. package/dist/HashRing.d.ts.map +1 -1
  137. package/dist/HashRing.js +3 -5
  138. package/dist/HashRing.js.map +1 -1
  139. package/dist/HashSet.d.ts +16 -16
  140. package/dist/HashSet.js +6 -6
  141. package/dist/Inspectable.d.ts +4 -4
  142. package/dist/Inspectable.js +4 -4
  143. package/dist/Iterable.d.ts +82 -56
  144. package/dist/Iterable.d.ts.map +1 -1
  145. package/dist/Iterable.js +28 -20
  146. package/dist/Iterable.js.map +1 -1
  147. package/dist/JsonPatch.d.ts +1 -1
  148. package/dist/JsonPatch.js +1 -1
  149. package/dist/JsonPointer.d.ts +3 -3
  150. package/dist/JsonPointer.js +3 -3
  151. package/dist/JsonSchema.d.ts +13 -23
  152. package/dist/JsonSchema.d.ts.map +1 -1
  153. package/dist/JsonSchema.js +13 -23
  154. package/dist/JsonSchema.js.map +1 -1
  155. package/dist/Latch.d.ts +2 -2
  156. package/dist/Latch.js +2 -2
  157. package/dist/Layer.d.ts +47 -27
  158. package/dist/Layer.d.ts.map +1 -1
  159. package/dist/Layer.js +23 -15
  160. package/dist/Layer.js.map +1 -1
  161. package/dist/LayerMap.d.ts +1 -2
  162. package/dist/LayerMap.d.ts.map +1 -1
  163. package/dist/LayerMap.js +1 -2
  164. package/dist/LayerMap.js.map +1 -1
  165. package/dist/LogLevel.d.ts +3 -3
  166. package/dist/LogLevel.js +3 -3
  167. package/dist/Logger.d.ts +2 -2
  168. package/dist/Logger.js +2 -2
  169. package/dist/ManagedRuntime.d.ts +1 -1
  170. package/dist/ManagedRuntime.js +1 -1
  171. package/dist/Match.d.ts +32 -37
  172. package/dist/Match.d.ts.map +1 -1
  173. package/dist/Match.js +32 -37
  174. package/dist/Match.js.map +1 -1
  175. package/dist/Metric.d.ts +35 -21
  176. package/dist/Metric.d.ts.map +1 -1
  177. package/dist/Metric.js +34 -20
  178. package/dist/Metric.js.map +1 -1
  179. package/dist/MutableHashMap.d.ts +13 -19
  180. package/dist/MutableHashMap.d.ts.map +1 -1
  181. package/dist/MutableHashMap.js +5 -7
  182. package/dist/MutableHashMap.js.map +1 -1
  183. package/dist/MutableHashSet.d.ts +4 -4
  184. package/dist/MutableHashSet.js +2 -2
  185. package/dist/MutableList.d.ts +16 -6
  186. package/dist/MutableList.d.ts.map +1 -1
  187. package/dist/MutableList.js +15 -5
  188. package/dist/MutableList.js.map +1 -1
  189. package/dist/MutableRef.d.ts +5 -4
  190. package/dist/MutableRef.d.ts.map +1 -1
  191. package/dist/MutableRef.js +3 -2
  192. package/dist/MutableRef.js.map +1 -1
  193. package/dist/NonEmptyIterable.d.ts +3 -3
  194. package/dist/NonEmptyIterable.js +1 -1
  195. package/dist/Number.d.ts +20 -18
  196. package/dist/Number.d.ts.map +1 -1
  197. package/dist/Number.js +16 -14
  198. package/dist/Number.js.map +1 -1
  199. package/dist/Optic.d.ts +11 -18
  200. package/dist/Optic.d.ts.map +1 -1
  201. package/dist/Optic.js +7 -14
  202. package/dist/Optic.js.map +1 -1
  203. package/dist/Option.d.ts +21 -24
  204. package/dist/Option.d.ts.map +1 -1
  205. package/dist/Option.js +9 -10
  206. package/dist/Option.js.map +1 -1
  207. package/dist/Order.d.ts +11 -38
  208. package/dist/Order.d.ts.map +1 -1
  209. package/dist/Order.js +11 -33
  210. package/dist/Order.js.map +1 -1
  211. package/dist/Ordering.d.ts +5 -5
  212. package/dist/Ordering.js +3 -3
  213. package/dist/PartitionedSemaphore.d.ts +4 -8
  214. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  215. package/dist/PartitionedSemaphore.js +3 -7
  216. package/dist/PartitionedSemaphore.js.map +1 -1
  217. package/dist/Path.d.ts +4 -7
  218. package/dist/Path.d.ts.map +1 -1
  219. package/dist/Path.js +3 -6
  220. package/dist/Path.js.map +1 -1
  221. package/dist/Pipeable.d.ts +2 -2
  222. package/dist/Pipeable.js +2 -2
  223. package/dist/PlatformError.d.ts +1 -1
  224. package/dist/PlatformError.js +1 -1
  225. package/dist/Predicate.d.ts +2 -81
  226. package/dist/Predicate.d.ts.map +1 -1
  227. package/dist/Predicate.js +2 -47
  228. package/dist/Predicate.js.map +1 -1
  229. package/dist/PrimaryKey.d.ts +3 -3
  230. package/dist/PrimaryKey.js +1 -1
  231. package/dist/PubSub.d.ts +147 -46
  232. package/dist/PubSub.d.ts.map +1 -1
  233. package/dist/PubSub.js +93 -32
  234. package/dist/PubSub.js.map +1 -1
  235. package/dist/Pull.d.ts +1 -1
  236. package/dist/Pull.js +1 -1
  237. package/dist/Queue.d.ts +40 -24
  238. package/dist/Queue.d.ts.map +1 -1
  239. package/dist/Queue.js +36 -20
  240. package/dist/Queue.js.map +1 -1
  241. package/dist/RcMap.d.ts +3 -3
  242. package/dist/RcMap.js +1 -1
  243. package/dist/Record.d.ts +79 -52
  244. package/dist/Record.d.ts.map +1 -1
  245. package/dist/Record.js +33 -22
  246. package/dist/Record.js.map +1 -1
  247. package/dist/Redactable.d.ts +7 -7
  248. package/dist/Redactable.js +7 -7
  249. package/dist/Reducer.d.ts +0 -2
  250. package/dist/Reducer.d.ts.map +1 -1
  251. package/dist/Reducer.js +0 -2
  252. package/dist/Reducer.js.map +1 -1
  253. package/dist/Ref.d.ts +12 -12
  254. package/dist/Ref.js +10 -10
  255. package/dist/References.d.ts +20 -20
  256. package/dist/References.js +20 -20
  257. package/dist/RegExp.d.ts +2 -2
  258. package/dist/RegExp.js +2 -2
  259. package/dist/Request.d.ts +3 -3
  260. package/dist/Request.js +3 -3
  261. package/dist/RequestResolver.d.ts +11 -14
  262. package/dist/RequestResolver.d.ts.map +1 -1
  263. package/dist/RequestResolver.js +5 -6
  264. package/dist/RequestResolver.js.map +1 -1
  265. package/dist/Result.d.ts +52 -34
  266. package/dist/Result.d.ts.map +1 -1
  267. package/dist/Result.js +44 -20
  268. package/dist/Result.js.map +1 -1
  269. package/dist/Runtime.d.ts +1 -1
  270. package/dist/Runtime.js +1 -1
  271. package/dist/Schedule.d.ts +20 -24
  272. package/dist/Schedule.d.ts.map +1 -1
  273. package/dist/Schedule.js +12 -12
  274. package/dist/Schedule.js.map +1 -1
  275. package/dist/Scheduler.d.ts +3 -3
  276. package/dist/Scheduler.js +3 -3
  277. package/dist/Schema.d.ts +480 -210
  278. package/dist/Schema.d.ts.map +1 -1
  279. package/dist/Schema.js +410 -172
  280. package/dist/Schema.js.map +1 -1
  281. package/dist/SchemaAST.d.ts +40 -32
  282. package/dist/SchemaAST.d.ts.map +1 -1
  283. package/dist/SchemaAST.js +40 -32
  284. package/dist/SchemaAST.js.map +1 -1
  285. package/dist/SchemaGetter.d.ts +4 -6
  286. package/dist/SchemaGetter.d.ts.map +1 -1
  287. package/dist/SchemaGetter.js +4 -6
  288. package/dist/SchemaGetter.js.map +1 -1
  289. package/dist/SchemaIssue.d.ts +35 -47
  290. package/dist/SchemaIssue.d.ts.map +1 -1
  291. package/dist/SchemaIssue.js +31 -42
  292. package/dist/SchemaIssue.js.map +1 -1
  293. package/dist/SchemaParser.d.ts +16 -12
  294. package/dist/SchemaParser.d.ts.map +1 -1
  295. package/dist/SchemaParser.js +16 -12
  296. package/dist/SchemaParser.js.map +1 -1
  297. package/dist/SchemaRepresentation.d.ts +47 -62
  298. package/dist/SchemaRepresentation.d.ts.map +1 -1
  299. package/dist/SchemaRepresentation.js +44 -58
  300. package/dist/SchemaRepresentation.js.map +1 -1
  301. package/dist/SchemaTransformation.d.ts +16 -18
  302. package/dist/SchemaTransformation.d.ts.map +1 -1
  303. package/dist/SchemaTransformation.js +13 -15
  304. package/dist/SchemaTransformation.js.map +1 -1
  305. package/dist/Scope.d.ts +51 -14
  306. package/dist/Scope.d.ts.map +1 -1
  307. package/dist/Scope.js +29 -8
  308. package/dist/Scope.js.map +1 -1
  309. package/dist/ScopedCache.d.ts +12 -12
  310. package/dist/ScopedCache.js +4 -4
  311. package/dist/ScopedRef.d.ts +2 -2
  312. package/dist/ScopedRef.js +2 -2
  313. package/dist/Semaphore.d.ts +1 -1
  314. package/dist/Semaphore.js +1 -1
  315. package/dist/Sink.d.ts +36 -41
  316. package/dist/Sink.d.ts.map +1 -1
  317. package/dist/Sink.js +21 -24
  318. package/dist/Sink.js.map +1 -1
  319. package/dist/Stdio.d.ts +5 -4
  320. package/dist/Stdio.d.ts.map +1 -1
  321. package/dist/Stdio.js +4 -3
  322. package/dist/Stdio.js.map +1 -1
  323. package/dist/Stream.d.ts +264 -165
  324. package/dist/Stream.d.ts.map +1 -1
  325. package/dist/Stream.js +103 -62
  326. package/dist/Stream.js.map +1 -1
  327. package/dist/String.d.ts +48 -47
  328. package/dist/String.d.ts.map +1 -1
  329. package/dist/String.js +32 -29
  330. package/dist/String.js.map +1 -1
  331. package/dist/Struct.d.ts +35 -100
  332. package/dist/Struct.d.ts.map +1 -1
  333. package/dist/Struct.js +13 -38
  334. package/dist/Struct.js.map +1 -1
  335. package/dist/SubscriptionRef.d.ts +268 -91
  336. package/dist/SubscriptionRef.d.ts.map +1 -1
  337. package/dist/SubscriptionRef.js +90 -31
  338. package/dist/SubscriptionRef.js.map +1 -1
  339. package/dist/Symbol.d.ts +1 -1
  340. package/dist/Symbol.js +1 -1
  341. package/dist/SynchronizedRef.d.ts +27 -27
  342. package/dist/SynchronizedRef.js +9 -9
  343. package/dist/Terminal.d.ts +8 -3
  344. package/dist/Terminal.d.ts.map +1 -1
  345. package/dist/Terminal.js +8 -3
  346. package/dist/Terminal.js.map +1 -1
  347. package/dist/Tracer.d.ts +25 -7
  348. package/dist/Tracer.d.ts.map +1 -1
  349. package/dist/Tracer.js +25 -7
  350. package/dist/Tracer.js.map +1 -1
  351. package/dist/Trie.d.ts +21 -23
  352. package/dist/Trie.d.ts.map +1 -1
  353. package/dist/Trie.js +7 -7
  354. package/dist/Trie.js.map +1 -1
  355. package/dist/Tuple.d.ts +26 -73
  356. package/dist/Tuple.d.ts.map +1 -1
  357. package/dist/Tuple.js +10 -31
  358. package/dist/Tuple.js.map +1 -1
  359. package/dist/TxChunk.d.ts +2 -2
  360. package/dist/TxChunk.js +2 -2
  361. package/dist/TxHashMap.d.ts +20 -20
  362. package/dist/TxHashMap.js +8 -8
  363. package/dist/TxHashSet.d.ts +14 -14
  364. package/dist/TxHashSet.js +6 -6
  365. package/dist/TxPriorityQueue.d.ts +14 -6
  366. package/dist/TxPriorityQueue.d.ts.map +1 -1
  367. package/dist/TxPriorityQueue.js +12 -4
  368. package/dist/TxPriorityQueue.js.map +1 -1
  369. package/dist/TxPubSub.d.ts +4 -4
  370. package/dist/TxPubSub.js +4 -4
  371. package/dist/TxQueue.d.ts +10 -10
  372. package/dist/TxQueue.js +10 -10
  373. package/dist/TxReentrantLock.d.ts +48 -12
  374. package/dist/TxReentrantLock.d.ts.map +1 -1
  375. package/dist/TxReentrantLock.js +38 -10
  376. package/dist/TxReentrantLock.js.map +1 -1
  377. package/dist/TxRef.d.ts +1 -1
  378. package/dist/TxRef.js +1 -1
  379. package/dist/TxSubscriptionRef.d.ts +1 -1
  380. package/dist/TxSubscriptionRef.js +1 -1
  381. package/dist/Types.d.ts +8 -7
  382. package/dist/Types.d.ts.map +1 -1
  383. package/dist/Unify.d.ts +19 -19
  384. package/dist/Utils.d.ts +1 -2
  385. package/dist/Utils.d.ts.map +1 -1
  386. package/dist/Utils.js +1 -2
  387. package/dist/Utils.js.map +1 -1
  388. package/dist/testing/TestSchema.d.ts +3 -11
  389. package/dist/testing/TestSchema.d.ts.map +1 -1
  390. package/dist/testing/TestSchema.js +3 -11
  391. package/dist/testing/TestSchema.js.map +1 -1
  392. package/dist/unstable/ai/AiError.d.ts +10 -5
  393. package/dist/unstable/ai/AiError.d.ts.map +1 -1
  394. package/dist/unstable/ai/AiError.js +10 -5
  395. package/dist/unstable/ai/AiError.js.map +1 -1
  396. package/dist/unstable/ai/Chat.d.ts +20 -5
  397. package/dist/unstable/ai/Chat.d.ts.map +1 -1
  398. package/dist/unstable/ai/Chat.js +20 -5
  399. package/dist/unstable/ai/Chat.js.map +1 -1
  400. package/dist/unstable/ai/EmbeddingModel.d.ts +5 -4
  401. package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
  402. package/dist/unstable/ai/EmbeddingModel.js +4 -3
  403. package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
  404. package/dist/unstable/ai/IdGenerator.d.ts +7 -2
  405. package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
  406. package/dist/unstable/ai/IdGenerator.js +7 -2
  407. package/dist/unstable/ai/IdGenerator.js.map +1 -1
  408. package/dist/unstable/ai/LanguageModel.d.ts +10 -5
  409. package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
  410. package/dist/unstable/ai/LanguageModel.js +10 -5
  411. package/dist/unstable/ai/LanguageModel.js.map +1 -1
  412. package/dist/unstable/ai/McpSchema.d.ts +291 -169
  413. package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
  414. package/dist/unstable/ai/McpSchema.js +270 -147
  415. package/dist/unstable/ai/McpSchema.js.map +1 -1
  416. package/dist/unstable/ai/McpServer.d.ts +49 -13
  417. package/dist/unstable/ai/McpServer.d.ts.map +1 -1
  418. package/dist/unstable/ai/McpServer.js +21 -9
  419. package/dist/unstable/ai/McpServer.js.map +1 -1
  420. package/dist/unstable/ai/Prompt.d.ts +1 -1
  421. package/dist/unstable/ai/Prompt.js +1 -1
  422. package/dist/unstable/ai/Response.d.ts +1 -1
  423. package/dist/unstable/ai/Response.js +1 -1
  424. package/dist/unstable/ai/Tokenizer.d.ts +7 -2
  425. package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
  426. package/dist/unstable/ai/Tokenizer.js +7 -2
  427. package/dist/unstable/ai/Tokenizer.js.map +1 -1
  428. package/dist/unstable/ai/Tool.d.ts +3 -3
  429. package/dist/unstable/ai/Tool.js +3 -3
  430. package/dist/unstable/cli/CliError.d.ts +3 -3
  431. package/dist/unstable/cli/CliError.js +3 -3
  432. package/dist/unstable/cli/CliOutput.d.ts +1 -1
  433. package/dist/unstable/cli/Command.d.ts +3 -3
  434. package/dist/unstable/cli/Command.js +1 -1
  435. package/dist/unstable/cli/Flag.d.ts +9 -9
  436. package/dist/unstable/cli/Flag.js +3 -3
  437. package/dist/unstable/cli/GlobalFlag.d.ts +13 -6
  438. package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
  439. package/dist/unstable/cli/GlobalFlag.js +13 -6
  440. package/dist/unstable/cli/GlobalFlag.js.map +1 -1
  441. package/dist/unstable/cli/Param.d.ts +2 -2
  442. package/dist/unstable/cli/Param.js +2 -2
  443. package/dist/unstable/cli/Primitive.d.ts +1 -1
  444. package/dist/unstable/cli/Primitive.js +1 -1
  445. package/dist/unstable/cli/Prompt.d.ts +11 -6
  446. package/dist/unstable/cli/Prompt.d.ts.map +1 -1
  447. package/dist/unstable/cli/Prompt.js +26 -9
  448. package/dist/unstable/cli/Prompt.js.map +1 -1
  449. package/dist/unstable/cli/internal/parser.js +1 -1
  450. package/dist/unstable/cluster/ClusterMetrics.d.ts +5 -5
  451. package/dist/unstable/cluster/ClusterMetrics.js +5 -5
  452. package/dist/unstable/cluster/ClusterSchema.d.ts +11 -2
  453. package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
  454. package/dist/unstable/cluster/ClusterSchema.js +11 -2
  455. package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
  456. package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  457. package/dist/unstable/cluster/ClusterWorkflowEngine.js +49 -10
  458. package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
  459. package/dist/unstable/cluster/DeliverAt.d.ts +6 -1
  460. package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
  461. package/dist/unstable/cluster/DeliverAt.js +6 -1
  462. package/dist/unstable/cluster/DeliverAt.js.map +1 -1
  463. package/dist/unstable/cluster/Entity.d.ts +15 -5
  464. package/dist/unstable/cluster/Entity.d.ts.map +1 -1
  465. package/dist/unstable/cluster/Entity.js +15 -5
  466. package/dist/unstable/cluster/Entity.js.map +1 -1
  467. package/dist/unstable/cluster/EntityResource.d.ts +5 -6
  468. package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
  469. package/dist/unstable/cluster/EntityResource.js +4 -5
  470. package/dist/unstable/cluster/EntityResource.js.map +1 -1
  471. package/dist/unstable/cluster/Envelope.d.ts +11 -11
  472. package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
  473. package/dist/unstable/cluster/Envelope.js +11 -11
  474. package/dist/unstable/cluster/Envelope.js.map +1 -1
  475. package/dist/unstable/cluster/HttpRunner.d.ts +16 -8
  476. package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
  477. package/dist/unstable/cluster/HttpRunner.js +16 -8
  478. package/dist/unstable/cluster/HttpRunner.js.map +1 -1
  479. package/dist/unstable/cluster/Message.d.ts +10 -10
  480. package/dist/unstable/cluster/Message.js +10 -10
  481. package/dist/unstable/cluster/MessageStorage.d.ts +7 -7
  482. package/dist/unstable/cluster/MessageStorage.js +6 -6
  483. package/dist/unstable/cluster/Reply.d.ts +18 -8
  484. package/dist/unstable/cluster/Reply.d.ts.map +1 -1
  485. package/dist/unstable/cluster/Reply.js +18 -8
  486. package/dist/unstable/cluster/Reply.js.map +1 -1
  487. package/dist/unstable/cluster/Runner.d.ts +1 -1
  488. package/dist/unstable/cluster/Runner.js +1 -1
  489. package/dist/unstable/cluster/RunnerAddress.d.ts +7 -1
  490. package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
  491. package/dist/unstable/cluster/RunnerAddress.js +7 -1
  492. package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
  493. package/dist/unstable/cluster/RunnerHealth.d.ts +4 -4
  494. package/dist/unstable/cluster/RunnerHealth.js +4 -4
  495. package/dist/unstable/cluster/RunnerServer.d.ts +4 -3
  496. package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
  497. package/dist/unstable/cluster/RunnerServer.js +4 -3
  498. package/dist/unstable/cluster/RunnerServer.js.map +1 -1
  499. package/dist/unstable/cluster/Runners.d.ts +1 -1
  500. package/dist/unstable/cluster/ShardId.d.ts +2 -2
  501. package/dist/unstable/cluster/ShardId.js +2 -2
  502. package/dist/unstable/cluster/Sharding.d.ts +8 -3
  503. package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
  504. package/dist/unstable/cluster/Sharding.js +8 -3
  505. package/dist/unstable/cluster/Sharding.js.map +1 -1
  506. package/dist/unstable/cluster/ShardingConfig.d.ts +3 -3
  507. package/dist/unstable/cluster/ShardingConfig.js +3 -3
  508. package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +1 -2
  509. package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
  510. package/dist/unstable/cluster/ShardingRegistrationEvent.js +1 -2
  511. package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
  512. package/dist/unstable/cluster/SingleRunner.d.ts +1 -1
  513. package/dist/unstable/cluster/SingleRunner.js +1 -1
  514. package/dist/unstable/cluster/Snowflake.d.ts +6 -5
  515. package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
  516. package/dist/unstable/cluster/Snowflake.js +6 -5
  517. package/dist/unstable/cluster/Snowflake.js.map +1 -1
  518. package/dist/unstable/cluster/SocketRunner.d.ts +6 -1
  519. package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
  520. package/dist/unstable/cluster/SocketRunner.js +6 -1
  521. package/dist/unstable/cluster/SocketRunner.js.map +1 -1
  522. package/dist/unstable/cluster/TestRunner.d.ts +1 -1
  523. package/dist/unstable/cluster/TestRunner.js +1 -1
  524. package/dist/unstable/encoding/Msgpack.d.ts +2 -1
  525. package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
  526. package/dist/unstable/encoding/Msgpack.js +2 -1
  527. package/dist/unstable/encoding/Msgpack.js.map +1 -1
  528. package/dist/unstable/encoding/Sse.d.ts +3 -3
  529. package/dist/unstable/encoding/Sse.js +3 -3
  530. package/dist/unstable/eventlog/EventGroup.d.ts +1 -1
  531. package/dist/unstable/eventlog/EventGroup.js +1 -1
  532. package/dist/unstable/eventlog/EventJournal.d.ts +7 -7
  533. package/dist/unstable/eventlog/EventJournal.js +5 -5
  534. package/dist/unstable/eventlog/EventLog.d.ts +11 -10
  535. package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
  536. package/dist/unstable/eventlog/EventLog.js +9 -8
  537. package/dist/unstable/eventlog/EventLog.js.map +1 -1
  538. package/dist/unstable/eventlog/EventLogEncryption.d.ts +8 -3
  539. package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
  540. package/dist/unstable/eventlog/EventLogEncryption.js +8 -3
  541. package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
  542. package/dist/unstable/eventlog/EventLogMessage.d.ts +28 -28
  543. package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
  544. package/dist/unstable/eventlog/EventLogMessage.js +27 -27
  545. package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
  546. package/dist/unstable/eventlog/EventLogRemote.d.ts +14 -4
  547. package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
  548. package/dist/unstable/eventlog/EventLogRemote.js +14 -4
  549. package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
  550. package/dist/unstable/eventlog/EventLogServer.d.ts +7 -2
  551. package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
  552. package/dist/unstable/eventlog/EventLogServer.js +7 -2
  553. package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
  554. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +7 -2
  555. package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
  556. package/dist/unstable/eventlog/EventLogServerEncrypted.js +7 -2
  557. package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
  558. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +37 -7
  559. package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
  560. package/dist/unstable/eventlog/EventLogServerUnencrypted.js +37 -7
  561. package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
  562. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +33 -7
  563. package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
  564. package/dist/unstable/eventlog/EventLogSessionAuth.js +33 -7
  565. package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
  566. package/dist/unstable/http/Cookies.d.ts +40 -39
  567. package/dist/unstable/http/Cookies.d.ts.map +1 -1
  568. package/dist/unstable/http/Cookies.js +18 -17
  569. package/dist/unstable/http/Cookies.js.map +1 -1
  570. package/dist/unstable/http/FetchHttpClient.d.ts +6 -1
  571. package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
  572. package/dist/unstable/http/FetchHttpClient.js +6 -1
  573. package/dist/unstable/http/FetchHttpClient.js.map +1 -1
  574. package/dist/unstable/http/Headers.d.ts +8 -7
  575. package/dist/unstable/http/Headers.d.ts.map +1 -1
  576. package/dist/unstable/http/Headers.js +6 -5
  577. package/dist/unstable/http/Headers.js.map +1 -1
  578. package/dist/unstable/http/HttpBody.d.ts +6 -2
  579. package/dist/unstable/http/HttpBody.d.ts.map +1 -1
  580. package/dist/unstable/http/HttpBody.js +6 -2
  581. package/dist/unstable/http/HttpBody.js.map +1 -1
  582. package/dist/unstable/http/HttpClient.d.ts +29 -9
  583. package/dist/unstable/http/HttpClient.d.ts.map +1 -1
  584. package/dist/unstable/http/HttpClient.js +15 -5
  585. package/dist/unstable/http/HttpClient.js.map +1 -1
  586. package/dist/unstable/http/HttpClientError.d.ts +15 -14
  587. package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
  588. package/dist/unstable/http/HttpClientError.js +12 -11
  589. package/dist/unstable/http/HttpClientError.js.map +1 -1
  590. package/dist/unstable/http/HttpClientRequest.d.ts +1 -1
  591. package/dist/unstable/http/HttpClientRequest.js +1 -1
  592. package/dist/unstable/http/HttpEffect.d.ts +3 -3
  593. package/dist/unstable/http/HttpEffect.js +3 -3
  594. package/dist/unstable/http/HttpMethod.d.ts +16 -5
  595. package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
  596. package/dist/unstable/http/HttpMethod.js +16 -5
  597. package/dist/unstable/http/HttpMethod.js.map +1 -1
  598. package/dist/unstable/http/HttpRouter.d.ts +18 -13
  599. package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
  600. package/dist/unstable/http/HttpRouter.js +14 -9
  601. package/dist/unstable/http/HttpRouter.js.map +1 -1
  602. package/dist/unstable/http/HttpServer.d.ts +4 -4
  603. package/dist/unstable/http/HttpServer.js +4 -4
  604. package/dist/unstable/http/HttpServerError.d.ts +9 -9
  605. package/dist/unstable/http/HttpServerError.js +7 -7
  606. package/dist/unstable/http/HttpServerRequest.d.ts +20 -5
  607. package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
  608. package/dist/unstable/http/HttpServerRequest.js +20 -5
  609. package/dist/unstable/http/HttpServerRequest.js.map +1 -1
  610. package/dist/unstable/http/HttpServerResponse.d.ts +24 -24
  611. package/dist/unstable/http/HttpServerResponse.js +8 -8
  612. package/dist/unstable/http/HttpTraceContext.d.ts +4 -4
  613. package/dist/unstable/http/HttpTraceContext.js +4 -4
  614. package/dist/unstable/http/Multipart.d.ts +2 -2
  615. package/dist/unstable/http/Multipart.js +2 -2
  616. package/dist/unstable/http/Url.d.ts +14 -17
  617. package/dist/unstable/http/Url.d.ts.map +1 -1
  618. package/dist/unstable/http/Url.js +5 -6
  619. package/dist/unstable/http/Url.js.map +1 -1
  620. package/dist/unstable/http/UrlParams.d.ts +10 -10
  621. package/dist/unstable/http/UrlParams.js +6 -6
  622. package/dist/unstable/httpapi/HttpApi.d.ts +2 -2
  623. package/dist/unstable/httpapi/HttpApi.js +2 -2
  624. package/dist/unstable/httpapi/HttpApiBuilder.d.ts +3 -3
  625. package/dist/unstable/httpapi/HttpApiBuilder.js +2 -2
  626. package/dist/unstable/httpapi/HttpApiError.d.ts +2 -2
  627. package/dist/unstable/httpapi/HttpApiError.js +1 -1
  628. package/dist/unstable/httpapi/HttpApiSchema.d.ts +4 -7
  629. package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
  630. package/dist/unstable/httpapi/HttpApiSchema.js +3 -6
  631. package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
  632. package/dist/unstable/httpapi/HttpApiTest.d.ts +1 -1
  633. package/dist/unstable/httpapi/HttpApiTest.js +1 -1
  634. package/dist/unstable/httpapi/OpenApi.d.ts +7 -1
  635. package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
  636. package/dist/unstable/httpapi/OpenApi.js +7 -1
  637. package/dist/unstable/httpapi/OpenApi.js.map +1 -1
  638. package/dist/unstable/observability/OtlpLogger.d.ts +1 -1
  639. package/dist/unstable/observability/OtlpLogger.js +1 -1
  640. package/dist/unstable/observability/PrometheusMetrics.d.ts +2 -2
  641. package/dist/unstable/observability/PrometheusMetrics.js +2 -2
  642. package/dist/unstable/persistence/KeyValueStore.d.ts +8 -3
  643. package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
  644. package/dist/unstable/persistence/KeyValueStore.js +6 -1
  645. package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
  646. package/dist/unstable/persistence/Persistable.d.ts +8 -3
  647. package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
  648. package/dist/unstable/persistence/Persistable.js +8 -3
  649. package/dist/unstable/persistence/Persistable.js.map +1 -1
  650. package/dist/unstable/persistence/PersistedQueue.d.ts +10 -5
  651. package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
  652. package/dist/unstable/persistence/PersistedQueue.js +9 -4
  653. package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
  654. package/dist/unstable/persistence/RateLimiter.d.ts +20 -10
  655. package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
  656. package/dist/unstable/persistence/RateLimiter.js +19 -9
  657. package/dist/unstable/persistence/RateLimiter.js.map +1 -1
  658. package/dist/unstable/process/ChildProcess.d.ts +14 -14
  659. package/dist/unstable/process/ChildProcess.js +7 -7
  660. package/dist/unstable/process/ChildProcessSpawner.d.ts +2 -2
  661. package/dist/unstable/process/ChildProcessSpawner.js +2 -2
  662. package/dist/unstable/reactivity/AsyncResult.d.ts +36 -5
  663. package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
  664. package/dist/unstable/reactivity/AsyncResult.js +14 -3
  665. package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
  666. package/dist/unstable/reactivity/Atom.d.ts +45 -13
  667. package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
  668. package/dist/unstable/reactivity/Atom.js +34 -10
  669. package/dist/unstable/reactivity/Atom.js.map +1 -1
  670. package/dist/unstable/reactivity/AtomRegistry.d.ts +7 -2
  671. package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
  672. package/dist/unstable/reactivity/AtomRegistry.js +7 -2
  673. package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
  674. package/dist/unstable/reactivity/Hydration.d.ts +6 -1
  675. package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
  676. package/dist/unstable/reactivity/Hydration.js +6 -1
  677. package/dist/unstable/reactivity/Hydration.js.map +1 -1
  678. package/dist/unstable/reactivity/Reactivity.d.ts +6 -1
  679. package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
  680. package/dist/unstable/reactivity/Reactivity.js +6 -1
  681. package/dist/unstable/reactivity/Reactivity.js.map +1 -1
  682. package/dist/unstable/rpc/Rpc.d.ts +18 -14
  683. package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
  684. package/dist/unstable/rpc/Rpc.js +15 -11
  685. package/dist/unstable/rpc/Rpc.js.map +1 -1
  686. package/dist/unstable/rpc/RpcClient.d.ts +27 -12
  687. package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
  688. package/dist/unstable/rpc/RpcClient.js +27 -12
  689. package/dist/unstable/rpc/RpcClient.js.map +1 -1
  690. package/dist/unstable/rpc/RpcClientError.d.ts +2 -2
  691. package/dist/unstable/rpc/RpcClientError.js +2 -2
  692. package/dist/unstable/rpc/RpcMessage.d.ts +5 -5
  693. package/dist/unstable/rpc/RpcMessage.js +4 -4
  694. package/dist/unstable/rpc/RpcSchema.d.ts +1 -1
  695. package/dist/unstable/rpc/RpcSchema.js +1 -1
  696. package/dist/unstable/rpc/RpcSerialization.d.ts +19 -12
  697. package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
  698. package/dist/unstable/rpc/RpcSerialization.js +19 -12
  699. package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
  700. package/dist/unstable/rpc/RpcServer.d.ts +22 -17
  701. package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
  702. package/dist/unstable/rpc/RpcServer.js +22 -17
  703. package/dist/unstable/rpc/RpcServer.js.map +1 -1
  704. package/dist/unstable/schema/Model.d.ts +32 -33
  705. package/dist/unstable/schema/Model.d.ts.map +1 -1
  706. package/dist/unstable/schema/Model.js +25 -26
  707. package/dist/unstable/schema/Model.js.map +1 -1
  708. package/dist/unstable/schema/VariantSchema.d.ts +1 -1
  709. package/dist/unstable/schema/VariantSchema.js +1 -1
  710. package/dist/unstable/socket/Socket.d.ts +8 -2
  711. package/dist/unstable/socket/Socket.d.ts.map +1 -1
  712. package/dist/unstable/socket/Socket.js +8 -2
  713. package/dist/unstable/socket/Socket.js.map +1 -1
  714. package/dist/unstable/socket/SocketServer.d.ts +2 -2
  715. package/dist/unstable/socket/SocketServer.js +1 -1
  716. package/dist/unstable/sql/SqlClient.d.ts +7 -2
  717. package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
  718. package/dist/unstable/sql/SqlClient.js +7 -2
  719. package/dist/unstable/sql/SqlClient.js.map +1 -1
  720. package/dist/unstable/sql/SqlConnection.d.ts +1 -1
  721. package/dist/unstable/sql/SqlConnection.js +1 -1
  722. package/dist/unstable/sql/SqlError.d.ts +2 -2
  723. package/dist/unstable/sql/SqlError.js +2 -2
  724. package/dist/unstable/sql/SqlResolver.d.ts +3 -3
  725. package/dist/unstable/sql/SqlResolver.js +1 -1
  726. package/dist/unstable/sql/SqlSchema.d.ts +19 -4
  727. package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
  728. package/dist/unstable/sql/SqlSchema.js +19 -4
  729. package/dist/unstable/sql/SqlSchema.js.map +1 -1
  730. package/dist/unstable/workers/Transferable.d.ts +3 -6
  731. package/dist/unstable/workers/Transferable.d.ts.map +1 -1
  732. package/dist/unstable/workers/Transferable.js +3 -6
  733. package/dist/unstable/workers/Transferable.js.map +1 -1
  734. package/dist/unstable/workers/Worker.d.ts +1 -1
  735. package/dist/unstable/workers/Worker.js +1 -1
  736. package/dist/unstable/workers/WorkerError.d.ts +1 -1
  737. package/dist/unstable/workflow/DurableClock.d.ts +2 -2
  738. package/dist/unstable/workflow/DurableClock.js +2 -2
  739. package/dist/unstable/workflow/DurableDeferred.d.ts +12 -12
  740. package/dist/unstable/workflow/DurableDeferred.js +7 -7
  741. package/dist/unstable/workflow/DurableQueue.d.ts +3 -3
  742. package/dist/unstable/workflow/DurableQueue.js +3 -3
  743. package/dist/unstable/workflow/Workflow.d.ts +22 -23
  744. package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
  745. package/dist/unstable/workflow/Workflow.js +17 -18
  746. package/dist/unstable/workflow/Workflow.js.map +1 -1
  747. package/dist/unstable/workflow/WorkflowEngine.d.ts +26 -8
  748. package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
  749. package/dist/unstable/workflow/WorkflowEngine.js +25 -7
  750. package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
  751. package/package.json +1 -1
  752. package/src/Array.ts +65 -113
  753. package/src/BigDecimal.ts +66 -58
  754. package/src/BigInt.ts +21 -19
  755. package/src/Boolean.ts +15 -17
  756. package/src/Brand.ts +2 -3
  757. package/src/Cache.ts +9 -9
  758. package/src/Cause.ts +35 -39
  759. package/src/Channel.ts +149 -107
  760. package/src/ChannelSchema.ts +3 -3
  761. package/src/Chunk.ts +67 -54
  762. package/src/Clock.ts +3 -3
  763. package/src/Combiner.ts +6 -10
  764. package/src/Config.ts +9 -10
  765. package/src/ConfigProvider.ts +4 -4
  766. package/src/Console.ts +11 -7
  767. package/src/Context.ts +36 -36
  768. package/src/Cron.ts +7 -6
  769. package/src/Crypto.ts +1 -1
  770. package/src/Data.ts +26 -32
  771. package/src/DateTime.ts +164 -122
  772. package/src/Deferred.ts +6 -6
  773. package/src/Duration.ts +39 -39
  774. package/src/Effect.ts +220 -309
  775. package/src/Effectable.ts +2 -2
  776. package/src/Encoding.ts +13 -10
  777. package/src/Equal.ts +3 -4
  778. package/src/Equivalence.ts +5 -19
  779. package/src/ErrorReporter.ts +14 -13
  780. package/src/ExecutionPlan.ts +7 -2
  781. package/src/Exit.ts +25 -23
  782. package/src/Fiber.ts +4 -4
  783. package/src/FiberHandle.ts +6 -6
  784. package/src/FiberMap.ts +20 -20
  785. package/src/FiberSet.ts +21 -13
  786. package/src/FileSystem.ts +13 -9
  787. package/src/Filter.ts +2 -2
  788. package/src/Formatter.ts +1 -3
  789. package/src/Function.ts +12 -12
  790. package/src/Graph.ts +22 -22
  791. package/src/HKT.ts +5 -4
  792. package/src/Hash.ts +3 -3
  793. package/src/HashMap.ts +33 -35
  794. package/src/HashRing.ts +7 -9
  795. package/src/HashSet.ts +16 -16
  796. package/src/Inspectable.ts +4 -4
  797. package/src/Iterable.ts +82 -56
  798. package/src/JsonPatch.ts +1 -1
  799. package/src/JsonPointer.ts +3 -3
  800. package/src/JsonSchema.ts +13 -23
  801. package/src/Latch.ts +2 -2
  802. package/src/Layer.ts +47 -27
  803. package/src/LayerMap.ts +1 -2
  804. package/src/LogLevel.ts +3 -3
  805. package/src/Logger.ts +6 -6
  806. package/src/ManagedRuntime.ts +1 -1
  807. package/src/Match.ts +32 -37
  808. package/src/Metric.ts +35 -21
  809. package/src/MutableHashMap.ts +21 -31
  810. package/src/MutableHashSet.ts +4 -4
  811. package/src/MutableList.ts +16 -6
  812. package/src/MutableRef.ts +5 -4
  813. package/src/NonEmptyIterable.ts +3 -3
  814. package/src/Number.ts +20 -18
  815. package/src/Optic.ts +11 -18
  816. package/src/Option.ts +21 -24
  817. package/src/Order.ts +11 -38
  818. package/src/Ordering.ts +5 -5
  819. package/src/PartitionedSemaphore.ts +4 -8
  820. package/src/Path.ts +4 -7
  821. package/src/Pipeable.ts +2 -2
  822. package/src/PlatformError.ts +1 -1
  823. package/src/Predicate.ts +2 -81
  824. package/src/PrimaryKey.ts +3 -3
  825. package/src/PubSub.ts +147 -46
  826. package/src/Pull.ts +1 -1
  827. package/src/Queue.ts +40 -24
  828. package/src/RcMap.ts +3 -3
  829. package/src/Record.ts +79 -52
  830. package/src/Redactable.ts +7 -7
  831. package/src/Reducer.ts +0 -2
  832. package/src/Ref.ts +32 -32
  833. package/src/References.ts +20 -20
  834. package/src/RegExp.ts +2 -2
  835. package/src/Request.ts +3 -3
  836. package/src/RequestResolver.ts +11 -14
  837. package/src/Result.ts +52 -34
  838. package/src/Runtime.ts +1 -1
  839. package/src/Schedule.ts +28 -36
  840. package/src/Scheduler.ts +3 -3
  841. package/src/Schema.ts +480 -210
  842. package/src/SchemaAST.ts +40 -32
  843. package/src/SchemaGetter.ts +4 -6
  844. package/src/SchemaIssue.ts +35 -47
  845. package/src/SchemaParser.ts +16 -12
  846. package/src/SchemaRepresentation.ts +47 -62
  847. package/src/SchemaTransformation.ts +16 -18
  848. package/src/Scope.ts +51 -14
  849. package/src/ScopedCache.ts +14 -14
  850. package/src/ScopedRef.ts +2 -2
  851. package/src/Semaphore.ts +1 -1
  852. package/src/Sink.ts +36 -41
  853. package/src/Stdio.ts +5 -4
  854. package/src/Stream.ts +275 -176
  855. package/src/String.ts +50 -49
  856. package/src/Struct.ts +35 -100
  857. package/src/SubscriptionRef.ts +268 -91
  858. package/src/Symbol.ts +1 -1
  859. package/src/SynchronizedRef.ts +27 -27
  860. package/src/Terminal.ts +8 -3
  861. package/src/Tracer.ts +25 -7
  862. package/src/Trie.ts +21 -23
  863. package/src/Tuple.ts +26 -73
  864. package/src/TxChunk.ts +2 -2
  865. package/src/TxHashMap.ts +22 -22
  866. package/src/TxHashSet.ts +22 -22
  867. package/src/TxPriorityQueue.ts +14 -6
  868. package/src/TxPubSub.ts +4 -4
  869. package/src/TxQueue.ts +10 -10
  870. package/src/TxReentrantLock.ts +48 -12
  871. package/src/TxRef.ts +1 -1
  872. package/src/TxSubscriptionRef.ts +1 -1
  873. package/src/Types.ts +8 -7
  874. package/src/Unify.ts +19 -19
  875. package/src/Utils.ts +1 -2
  876. package/src/testing/TestSchema.ts +3 -11
  877. package/src/unstable/ai/AiError.ts +10 -5
  878. package/src/unstable/ai/Chat.ts +20 -5
  879. package/src/unstable/ai/EmbeddingModel.ts +5 -4
  880. package/src/unstable/ai/IdGenerator.ts +7 -2
  881. package/src/unstable/ai/LanguageModel.ts +10 -5
  882. package/src/unstable/ai/McpSchema.ts +291 -169
  883. package/src/unstable/ai/McpServer.ts +49 -13
  884. package/src/unstable/ai/Prompt.ts +1 -1
  885. package/src/unstable/ai/Response.ts +1 -1
  886. package/src/unstable/ai/Tokenizer.ts +7 -2
  887. package/src/unstable/ai/Tool.ts +3 -3
  888. package/src/unstable/cli/CliError.ts +3 -3
  889. package/src/unstable/cli/CliOutput.ts +1 -1
  890. package/src/unstable/cli/Command.ts +3 -3
  891. package/src/unstable/cli/Flag.ts +9 -9
  892. package/src/unstable/cli/GlobalFlag.ts +13 -6
  893. package/src/unstable/cli/Param.ts +2 -2
  894. package/src/unstable/cli/Primitive.ts +1 -1
  895. package/src/unstable/cli/Prompt.ts +37 -13
  896. package/src/unstable/cli/internal/parser.ts +1 -1
  897. package/src/unstable/cluster/ClusterMetrics.ts +5 -5
  898. package/src/unstable/cluster/ClusterSchema.ts +11 -2
  899. package/src/unstable/cluster/ClusterWorkflowEngine.ts +63 -11
  900. package/src/unstable/cluster/DeliverAt.ts +6 -1
  901. package/src/unstable/cluster/Entity.ts +15 -5
  902. package/src/unstable/cluster/EntityResource.ts +5 -6
  903. package/src/unstable/cluster/Envelope.ts +11 -11
  904. package/src/unstable/cluster/HttpRunner.ts +16 -8
  905. package/src/unstable/cluster/Message.ts +10 -10
  906. package/src/unstable/cluster/MessageStorage.ts +7 -7
  907. package/src/unstable/cluster/Reply.ts +18 -8
  908. package/src/unstable/cluster/Runner.ts +1 -1
  909. package/src/unstable/cluster/RunnerAddress.ts +7 -1
  910. package/src/unstable/cluster/RunnerHealth.ts +4 -4
  911. package/src/unstable/cluster/RunnerServer.ts +4 -3
  912. package/src/unstable/cluster/Runners.ts +1 -1
  913. package/src/unstable/cluster/ShardId.ts +2 -2
  914. package/src/unstable/cluster/Sharding.ts +8 -3
  915. package/src/unstable/cluster/ShardingConfig.ts +3 -3
  916. package/src/unstable/cluster/ShardingRegistrationEvent.ts +1 -2
  917. package/src/unstable/cluster/SingleRunner.ts +1 -1
  918. package/src/unstable/cluster/Snowflake.ts +6 -5
  919. package/src/unstable/cluster/SocketRunner.ts +6 -1
  920. package/src/unstable/cluster/TestRunner.ts +1 -1
  921. package/src/unstable/encoding/Msgpack.ts +2 -1
  922. package/src/unstable/encoding/Sse.ts +3 -3
  923. package/src/unstable/eventlog/EventGroup.ts +1 -1
  924. package/src/unstable/eventlog/EventJournal.ts +7 -7
  925. package/src/unstable/eventlog/EventLog.ts +11 -10
  926. package/src/unstable/eventlog/EventLogEncryption.ts +8 -3
  927. package/src/unstable/eventlog/EventLogMessage.ts +28 -28
  928. package/src/unstable/eventlog/EventLogRemote.ts +14 -4
  929. package/src/unstable/eventlog/EventLogServer.ts +7 -2
  930. package/src/unstable/eventlog/EventLogServerEncrypted.ts +7 -2
  931. package/src/unstable/eventlog/EventLogServerUnencrypted.ts +37 -7
  932. package/src/unstable/eventlog/EventLogSessionAuth.ts +33 -7
  933. package/src/unstable/http/Cookies.ts +40 -39
  934. package/src/unstable/http/FetchHttpClient.ts +6 -1
  935. package/src/unstable/http/Headers.ts +10 -9
  936. package/src/unstable/http/HttpBody.ts +6 -2
  937. package/src/unstable/http/HttpClient.ts +29 -9
  938. package/src/unstable/http/HttpClientError.ts +15 -14
  939. package/src/unstable/http/HttpClientRequest.ts +1 -1
  940. package/src/unstable/http/HttpEffect.ts +3 -3
  941. package/src/unstable/http/HttpMethod.ts +16 -5
  942. package/src/unstable/http/HttpRouter.ts +18 -13
  943. package/src/unstable/http/HttpServer.ts +4 -4
  944. package/src/unstable/http/HttpServerError.ts +9 -9
  945. package/src/unstable/http/HttpServerRequest.ts +20 -5
  946. package/src/unstable/http/HttpServerResponse.ts +24 -24
  947. package/src/unstable/http/HttpTraceContext.ts +4 -4
  948. package/src/unstable/http/Multipart.ts +2 -2
  949. package/src/unstable/http/Url.ts +14 -17
  950. package/src/unstable/http/UrlParams.ts +10 -10
  951. package/src/unstable/httpapi/HttpApi.ts +2 -2
  952. package/src/unstable/httpapi/HttpApiBuilder.ts +3 -3
  953. package/src/unstable/httpapi/HttpApiError.ts +2 -2
  954. package/src/unstable/httpapi/HttpApiSchema.ts +4 -7
  955. package/src/unstable/httpapi/HttpApiTest.ts +1 -1
  956. package/src/unstable/httpapi/OpenApi.ts +7 -1
  957. package/src/unstable/observability/OtlpLogger.ts +1 -1
  958. package/src/unstable/observability/PrometheusMetrics.ts +2 -2
  959. package/src/unstable/persistence/KeyValueStore.ts +8 -3
  960. package/src/unstable/persistence/Persistable.ts +8 -3
  961. package/src/unstable/persistence/PersistedQueue.ts +10 -5
  962. package/src/unstable/persistence/RateLimiter.ts +20 -10
  963. package/src/unstable/process/ChildProcess.ts +14 -14
  964. package/src/unstable/process/ChildProcessSpawner.ts +2 -2
  965. package/src/unstable/reactivity/AsyncResult.ts +58 -7
  966. package/src/unstable/reactivity/Atom.ts +53 -13
  967. package/src/unstable/reactivity/AtomRegistry.ts +7 -2
  968. package/src/unstable/reactivity/Hydration.ts +6 -1
  969. package/src/unstable/reactivity/Reactivity.ts +6 -1
  970. package/src/unstable/rpc/Rpc.ts +18 -14
  971. package/src/unstable/rpc/RpcClient.ts +27 -12
  972. package/src/unstable/rpc/RpcClientError.ts +2 -2
  973. package/src/unstable/rpc/RpcMessage.ts +5 -5
  974. package/src/unstable/rpc/RpcSchema.ts +1 -1
  975. package/src/unstable/rpc/RpcSerialization.ts +19 -12
  976. package/src/unstable/rpc/RpcServer.ts +22 -17
  977. package/src/unstable/schema/Model.ts +32 -33
  978. package/src/unstable/schema/VariantSchema.ts +1 -1
  979. package/src/unstable/socket/Socket.ts +8 -2
  980. package/src/unstable/socket/SocketServer.ts +2 -2
  981. package/src/unstable/sql/SqlClient.ts +7 -2
  982. package/src/unstable/sql/SqlConnection.ts +1 -1
  983. package/src/unstable/sql/SqlError.ts +2 -2
  984. package/src/unstable/sql/SqlResolver.ts +3 -3
  985. package/src/unstable/sql/SqlSchema.ts +19 -4
  986. package/src/unstable/workers/Transferable.ts +3 -6
  987. package/src/unstable/workers/Worker.ts +1 -1
  988. package/src/unstable/workers/WorkerError.ts +1 -1
  989. package/src/unstable/workflow/DurableClock.ts +2 -2
  990. package/src/unstable/workflow/DurableDeferred.ts +12 -12
  991. package/src/unstable/workflow/DurableQueue.ts +3 -3
  992. package/src/unstable/workflow/Workflow.ts +22 -23
  993. package/src/unstable/workflow/WorkflowEngine.ts +26 -8
package/src/Effect.ts CHANGED
@@ -279,7 +279,7 @@ export type Services<T> = T extends Effect<infer _A, infer _E, infer _R> ? _R
279
279
  : never
280
280
 
281
281
  /**
282
- * Tests if a value is an `Effect`.
282
+ * Checks whether a value is an `Effect`.
283
283
  *
284
284
  * **Example** (Checking whether a value is an Effect)
285
285
  *
@@ -1383,11 +1383,9 @@ export const promise: <A>(
1383
1383
  *
1384
1384
  * **When to use**
1385
1385
  *
1386
- * Use when in situations where you need to perform asynchronous operations that might
1387
- * fail, such as fetching data from an API, you can use the `tryPromise`
1388
- * constructor. This constructor is designed to handle operations that could
1389
- * throw exceptions by capturing those exceptions and transforming them into
1390
- * manageable errors.
1386
+ * Use when you need to perform asynchronous operations that might fail, such
1387
+ * as fetching data from an API, and want thrown exceptions or rejected promises
1388
+ * captured as Effect errors.
1391
1389
  *
1392
1390
  * **Details**
1393
1391
  *
@@ -1515,7 +1513,7 @@ export const succeedNone: Effect<Option<never>> = internal.succeedNone
1515
1513
  export const succeedSome: <A>(value: A) => Effect<Option<A>> = internal.succeedSome
1516
1514
 
1517
1515
  /**
1518
- * Delays the creation of an `Effect` until it is actually needed.
1516
+ * Creates an `Effect` lazily, delaying construction until it is needed.
1519
1517
  *
1520
1518
  * **When to use**
1521
1519
  *
@@ -1731,8 +1729,8 @@ export const callback: <A, E = never, R = never>(
1731
1729
  export const never: Effect<never> = internal.never
1732
1730
 
1733
1731
  /**
1734
- * An `Effect` containing an empty record `{}`, used as the starting point for
1735
- * do notation chains.
1732
+ * Effect that succeeds with an empty record `{}`, used as the starting point
1733
+ * for do notation chains.
1736
1734
  *
1737
1735
  * **Example** (Starting do notation)
1738
1736
  *
@@ -2156,10 +2154,13 @@ export const fail: <E>(error: E) => Effect<never, E> = internal.fail
2156
2154
  /**
2157
2155
  * Creates an `Effect` that represents a recoverable error using a lazy evaluation.
2158
2156
  *
2157
+ * **When to use**
2158
+ *
2159
+ * Use to defer computing a recoverable error value until the effect is run.
2160
+ *
2159
2161
  * **Details**
2160
2162
  *
2161
- * This function is useful when you need to create an error effect but want to
2162
- * defer the computation of the error value until the effect is actually run.
2163
+ * The error-producing function is evaluated each time the effect is executed.
2163
2164
  *
2164
2165
  * **Example** (Lazily creating failures)
2165
2166
  *
@@ -2208,10 +2209,13 @@ export const failCause: <E>(cause: Cause.Cause<E>) => Effect<never, E> = interna
2208
2209
  /**
2209
2210
  * Creates an `Effect` that represents a failure with a `Cause` computed lazily.
2210
2211
  *
2212
+ * **When to use**
2213
+ *
2214
+ * Use to defer computing a full `Cause` until the effect is run.
2215
+ *
2211
2216
  * **Details**
2212
2217
  *
2213
- * This function is useful when you need to create a failure effect with a
2214
- * complex cause but want to defer the computation until the effect is run.
2218
+ * The cause-producing function is evaluated each time the effect is executed.
2215
2219
  *
2216
2220
  * **Example** (Lazily creating a Cause)
2217
2221
  *
@@ -3394,7 +3398,7 @@ export const tap: {
3394
3398
  } = internal.tap
3395
3399
 
3396
3400
  /**
3397
- * Encapsulates both success and failure of an `Effect` into a `Result` type.
3401
+ * Converts both success and failure of an `Effect` into a `Result` type.
3398
3402
  *
3399
3403
  * **When to use**
3400
3404
  *
@@ -3450,7 +3454,7 @@ export const tap: {
3450
3454
  export const result: <A, E, R>(self: Effect<A, E, R>) => Effect<Result.Result<A, E>, never, R> = internal.result
3451
3455
 
3452
3456
  /**
3453
- * Convert success to `Option.some` and failure to `Option.none`.
3457
+ * Converts success to `Option.some` and failure to `Option.none`.
3454
3458
  *
3455
3459
  * **When to use**
3456
3460
  *
@@ -3814,9 +3818,7 @@ export const as: {
3814
3818
  } = internal.as
3815
3819
 
3816
3820
  /**
3817
- * This function maps the success value of an `Effect` value to a `Some` value
3818
- * in an `Option` value. If the original `Effect` value fails, the returned
3819
- * `Effect` value will also fail.
3821
+ * Maps the success value of an `Effect` to `Some`, preserving failures.
3820
3822
  *
3821
3823
  * **Example** (Wrapping success in Option.some)
3822
3824
  *
@@ -3835,10 +3837,7 @@ export const as: {
3835
3837
  export const asSome: <A, E, R>(self: Effect<A, E, R>) => Effect<Option<A>, E, R> = internal.asSome
3836
3838
 
3837
3839
  /**
3838
- * This function maps the success value of an `Effect` value to `void`. If the
3839
- * original `Effect` value succeeds, the returned `Effect` value will also
3840
- * succeed. If the original `Effect` value fails, the returned `Effect` value
3841
- * will fail with the same error.
3840
+ * Maps the success value of an `Effect` to `void`, preserving failures.
3842
3841
  *
3843
3842
  * **Example** (Discarding success values)
3844
3843
  *
@@ -3857,15 +3856,16 @@ export const asSome: <A, E, R>(self: Effect<A, E, R>) => Effect<Option<A>, E, R>
3857
3856
  export const asVoid: <A, E, R>(self: Effect<A, E, R>) => Effect<void, E, R> = internal.asVoid
3858
3857
 
3859
3858
  /**
3860
- * The `flip` function swaps the success and error channels of an effect,
3861
- * so that the success becomes the error, and the error becomes the success.
3859
+ * Swaps an effect's success and failure channels.
3860
+ *
3861
+ * **When to use**
3862
+ *
3863
+ * Use to handle the failure value as a success, or to move the success value
3864
+ * into the failure channel.
3862
3865
  *
3863
3866
  * **Details**
3864
3867
  *
3865
- * This function is useful when you need to reverse the flow of an effect,
3866
- * treating the previously successful values as errors and vice versa. This can
3867
- * be helpful in scenarios where you want to handle a success as a failure or
3868
- * treat an error as a valid result.
3868
+ * For an `Effect<A, E, R>`, the returned effect has type `Effect<E, A, R>`.
3869
3869
  *
3870
3870
  * **Example** (Swapping success and failure channels)
3871
3871
  *
@@ -4138,9 +4138,8 @@ export const zip: {
4138
4138
  *
4139
4139
  * **When to use**
4140
4140
  *
4141
- * Use when the `zipWith` function is similar to {@link zip}, but instead of returning a
4142
- * tuple of results, it applies a provided function to the results of the two
4143
- * effects, combining them into a single value.
4141
+ * Use when you need to run two effects sequentially and combine their results
4142
+ * with a function instead of keeping the results as a tuple.
4144
4143
  *
4145
4144
  * **Details**
4146
4145
  *
@@ -4187,9 +4186,8 @@ export const zipWith: {
4187
4186
  *
4188
4187
  * **When to use**
4189
4188
  *
4190
- * Use when the `zipWith` function is similar to {@link zip}, but instead of returning a
4191
- * tuple of results, it applies a provided function to the results of the two
4192
- * effects, combining them into a single value.
4189
+ * Use when you need to run two effects sequentially and combine their results
4190
+ * with a function instead of keeping the results as a tuple.
4193
4191
  *
4194
4192
  * **Details**
4195
4193
  *
@@ -4240,9 +4238,8 @@ export const zipWith: {
4240
4238
  *
4241
4239
  * **When to use**
4242
4240
  *
4243
- * Use when the `zipWith` function is similar to {@link zip}, but instead of returning a
4244
- * tuple of results, it applies a provided function to the results of the two
4245
- * effects, combining them into a single value.
4241
+ * Use when you need to run two effects sequentially and combine their results
4242
+ * with a function instead of keeping the results as a tuple.
4246
4243
  *
4247
4244
  * **Details**
4248
4245
  *
@@ -4515,12 +4512,9 @@ export const catchTag: {
4515
4512
  *
4516
4513
  * **When to use**
4517
4514
  *
4518
- * Use when `catchTags` is a convenient way to handle multiple error types at
4519
- * once. Instead of using {@link catchTag} multiple times, you can pass an
4520
- * object where each key is an error type's `_tag`, and the value is the handler
4521
- * for that specific error. This allows you to catch and recover from multiple
4522
- * error types in a single call. You can also provide a fallback handler for
4523
- * unhandled errors.
4515
+ * Use when one recovery step should handle several tagged error types by
4516
+ * matching their readonly `_tag` fields. Pass a handler table whose keys are
4517
+ * tags, plus an optional fallback for unmatched errors.
4524
4518
  *
4525
4519
  * The error type must have a readonly `_tag` field to use `catchTag`. This
4526
4520
  * field is used to identify and match errors.
@@ -4559,12 +4553,9 @@ export const catchTags: {
4559
4553
  *
4560
4554
  * **When to use**
4561
4555
  *
4562
- * Use when `catchTags` is a convenient way to handle multiple error types at
4563
- * once. Instead of using {@link catchTag} multiple times, you can pass an
4564
- * object where each key is an error type's `_tag`, and the value is the handler
4565
- * for that specific error. This allows you to catch and recover from multiple
4566
- * error types in a single call. You can also provide a fallback handler for
4567
- * unhandled errors.
4556
+ * Use when one recovery step should handle several tagged error types by
4557
+ * matching their readonly `_tag` fields. Pass a handler table whose keys are
4558
+ * tags, plus an optional fallback for unmatched errors.
4568
4559
  *
4569
4560
  * The error type must have a readonly `_tag` field to use `catchTag`. This
4570
4561
  * field is used to identify and match errors.
@@ -4632,12 +4623,9 @@ export const catchTags: {
4632
4623
  *
4633
4624
  * **When to use**
4634
4625
  *
4635
- * Use when `catchTags` is a convenient way to handle multiple error types at
4636
- * once. Instead of using {@link catchTag} multiple times, you can pass an
4637
- * object where each key is an error type's `_tag`, and the value is the handler
4638
- * for that specific error. This allows you to catch and recover from multiple
4639
- * error types in a single call. You can also provide a fallback handler for
4640
- * unhandled errors.
4626
+ * Use when one recovery step should handle several tagged error types by
4627
+ * matching their readonly `_tag` fields. Pass a handler table whose keys are
4628
+ * tags, plus an optional fallback for unmatched errors.
4641
4629
  *
4642
4630
  * The error type must have a readonly `_tag` field to use `catchTag`. This
4643
4631
  * field is used to identify and match errors.
@@ -5223,10 +5211,8 @@ export const unwrapReason: {
5223
5211
  *
5224
5212
  * **When to use**
5225
5213
  *
5226
- * Use when the `catchCause` function allows you to handle all errors, including
5227
- * unrecoverable defects, by providing a recovery effect. The recovery logic is
5228
- * based on the `Cause` of the error, which provides detailed information about
5229
- * the failure.
5214
+ * Use when recovery needs the full `Cause`, including recoverable failures,
5215
+ * defects, and interruptions, instead of only the typed error value.
5230
5216
  *
5231
5217
  * **Details**
5232
5218
  *
@@ -5265,10 +5251,8 @@ export const catchCause: {
5265
5251
  *
5266
5252
  * **When to use**
5267
5253
  *
5268
- * Use when the `catchCause` function allows you to handle all errors, including
5269
- * unrecoverable defects, by providing a recovery effect. The recovery logic is
5270
- * based on the `Cause` of the error, which provides detailed information about
5271
- * the failure.
5254
+ * Use when recovery needs the full `Cause`, including recoverable failures,
5255
+ * defects, and interruptions, instead of only the typed error value.
5272
5256
  *
5273
5257
  * **Details**
5274
5258
  *
@@ -5307,10 +5291,8 @@ export const catchCause: {
5307
5291
  *
5308
5292
  * **When to use**
5309
5293
  *
5310
- * Use when the `catchCause` function allows you to handle all errors, including
5311
- * unrecoverable defects, by providing a recovery effect. The recovery logic is
5312
- * based on the `Cause` of the error, which provides detailed information about
5313
- * the failure.
5294
+ * Use when recovery needs the full `Cause`, including recoverable failures,
5295
+ * defects, and interruptions, instead of only the typed error value.
5314
5296
  *
5315
5297
  * **Details**
5316
5298
  *
@@ -5475,7 +5457,7 @@ export const catchDefect: {
5475
5457
  *
5476
5458
  * **When to use**
5477
5459
  *
5478
- * Use when `catchIf` lets you recover from errors that match a condition. Use a
5460
+ * Use when you need to recover from errors that match a condition. Use a
5479
5461
  * `Refinement` for type narrowing or a `Predicate` for simple boolean
5480
5462
  * matching. Non-matching errors re-fail with the original cause. Defects and
5481
5463
  * interrupts are not caught.
@@ -5515,7 +5497,7 @@ export const catchIf: {
5515
5497
  *
5516
5498
  * **When to use**
5517
5499
  *
5518
- * Use when `catchIf` lets you recover from errors that match a condition. Use a
5500
+ * Use when you need to recover from errors that match a condition. Use a
5519
5501
  * `Refinement` for type narrowing or a `Predicate` for simple boolean
5520
5502
  * matching. Non-matching errors re-fail with the original cause. Defects and
5521
5503
  * interrupts are not caught.
@@ -5561,7 +5543,7 @@ export const catchIf: {
5561
5543
  *
5562
5544
  * **When to use**
5563
5545
  *
5564
- * Use when `catchIf` lets you recover from errors that match a condition. Use a
5546
+ * Use when you need to recover from errors that match a condition. Use a
5565
5547
  * `Refinement` for type narrowing or a `Predicate` for simple boolean
5566
5548
  * matching. Non-matching errors re-fail with the original cause. Defects and
5567
5549
  * interrupts are not caught.
@@ -5607,7 +5589,7 @@ export const catchIf: {
5607
5589
  *
5608
5590
  * **When to use**
5609
5591
  *
5610
- * Use when `catchIf` lets you recover from errors that match a condition. Use a
5592
+ * Use when you need to recover from errors that match a condition. Use a
5611
5593
  * `Refinement` for type narrowing or a `Predicate` for simple boolean
5612
5594
  * matching. Non-matching errors re-fail with the original cause. Defects and
5613
5595
  * interrupts are not caught.
@@ -5652,7 +5634,7 @@ export const catchIf: {
5652
5634
  *
5653
5635
  * **When to use**
5654
5636
  *
5655
- * Use when `catchIf` lets you recover from errors that match a condition. Use a
5637
+ * Use when you need to recover from errors that match a condition. Use a
5656
5638
  * `Refinement` for type narrowing or a `Predicate` for simple boolean
5657
5639
  * matching. Non-matching errors re-fail with the original cause. Defects and
5658
5640
  * interrupts are not caught.
@@ -6034,8 +6016,7 @@ export const catchCauseFilter: {
6034
6016
  } = internal.catchCauseFilter
6035
6017
 
6036
6018
  /**
6037
- * The `mapError` function is used to transform or modify the error
6038
- * produced by an effect, without affecting its success value.
6019
+ * Transforms the failure value of an effect without changing its success value.
6039
6020
  *
6040
6021
  * **When to use**
6041
6022
  *
@@ -6043,10 +6024,8 @@ export const catchCauseFilter: {
6043
6024
  *
6044
6025
  * **Details**
6045
6026
  *
6046
- * This function is helpful when you want to enhance the error with additional
6047
- * information, change the error type, or apply custom error handling while
6048
- * keeping the original behavior of the effect's success values intact. It only
6049
- * operates on the error channel and leaves the success channel unchanged.
6027
+ * Only the failure channel is transformed. The success channel and requirements
6028
+ * are preserved.
6050
6029
  *
6051
6030
  * **Example** (Transforming the error channel)
6052
6031
  *
@@ -6075,8 +6054,7 @@ export const catchCauseFilter: {
6075
6054
  */
6076
6055
  export const mapError: {
6077
6056
  /**
6078
- * The `mapError` function is used to transform or modify the error
6079
- * produced by an effect, without affecting its success value.
6057
+ * Transforms the failure value of an effect without changing its success value.
6080
6058
  *
6081
6059
  * **When to use**
6082
6060
  *
@@ -6084,10 +6062,8 @@ export const mapError: {
6084
6062
  *
6085
6063
  * **Details**
6086
6064
  *
6087
- * This function is helpful when you want to enhance the error with additional
6088
- * information, change the error type, or apply custom error handling while
6089
- * keeping the original behavior of the effect's success values intact. It only
6090
- * operates on the error channel and leaves the success channel unchanged.
6065
+ * Only the failure channel is transformed. The success channel and requirements
6066
+ * are preserved.
6091
6067
  *
6092
6068
  * **Example** (Transforming the error channel)
6093
6069
  *
@@ -6116,8 +6092,7 @@ export const mapError: {
6116
6092
  */
6117
6093
  <E, E2>(f: (e: E) => E2): <A, R>(self: Effect<A, E, R>) => Effect<A, E2, R>
6118
6094
  /**
6119
- * The `mapError` function is used to transform or modify the error
6120
- * produced by an effect, without affecting its success value.
6095
+ * Transforms the failure value of an effect without changing its success value.
6121
6096
  *
6122
6097
  * **When to use**
6123
6098
  *
@@ -6125,10 +6100,8 @@ export const mapError: {
6125
6100
  *
6126
6101
  * **Details**
6127
6102
  *
6128
- * This function is helpful when you want to enhance the error with additional
6129
- * information, change the error type, or apply custom error handling while
6130
- * keeping the original behavior of the effect's success values intact. It only
6131
- * operates on the error channel and leaves the success channel unchanged.
6103
+ * Only the failure channel is transformed. The success channel and requirements
6104
+ * are preserved.
6132
6105
  *
6133
6106
  * **Example** (Transforming the error channel)
6134
6107
  *
@@ -6652,7 +6625,7 @@ export const tapCause: {
6652
6625
  } = internal.tapCause
6653
6626
 
6654
6627
  /**
6655
- * Conditionally executes a side effect based on the cause of a failed effect.
6628
+ * Executes a side effect conditionally when a failed effect's cause matches a predicate.
6656
6629
  *
6657
6630
  * **Details**
6658
6631
  *
@@ -6684,7 +6657,7 @@ export const tapCause: {
6684
6657
  */
6685
6658
  export const tapCauseIf: {
6686
6659
  /**
6687
- * Conditionally executes a side effect based on the cause of a failed effect.
6660
+ * Executes a side effect conditionally when a failed effect's cause matches a predicate.
6688
6661
  *
6689
6662
  * **Details**
6690
6663
  *
@@ -6719,7 +6692,7 @@ export const tapCauseIf: {
6719
6692
  f: (cause: Cause.Cause<E>) => Effect<B, E2, R2>
6720
6693
  ): <A, R>(self: Effect<A, E, R>) => Effect<A, E | E2, R | R2>
6721
6694
  /**
6722
- * Conditionally executes a side effect based on the cause of a failed effect.
6695
+ * Executes a side effect conditionally when a failed effect's cause matches a predicate.
6723
6696
  *
6724
6697
  * **Details**
6725
6698
  *
@@ -6757,7 +6730,7 @@ export const tapCauseIf: {
6757
6730
  } = internal.tapCauseIf
6758
6731
 
6759
6732
  /**
6760
- * Conditionally executes a side effect based on the cause of a failed effect.
6733
+ * Executes a side effect conditionally when a failed effect's cause passes a filter.
6761
6734
  *
6762
6735
  * **When to use**
6763
6736
  *
@@ -6779,7 +6752,7 @@ export const tapCauseIf: {
6779
6752
  */
6780
6753
  export const tapCauseFilter: {
6781
6754
  /**
6782
- * Conditionally executes a side effect based on the cause of a failed effect.
6755
+ * Executes a side effect conditionally when a failed effect's cause passes a filter.
6783
6756
  *
6784
6757
  * **When to use**
6785
6758
  *
@@ -6804,7 +6777,7 @@ export const tapCauseFilter: {
6804
6777
  f: (a: EB, cause: Cause.Cause<E>) => Effect<B, E2, R2>
6805
6778
  ): <A, R>(self: Effect<A, E, R>) => Effect<A, E | E2, R | R2>
6806
6779
  /**
6807
- * Conditionally executes a side effect based on the cause of a failed effect.
6780
+ * Executes a side effect conditionally when a failed effect's cause passes a filter.
6808
6781
  *
6809
6782
  * **When to use**
6810
6783
  *
@@ -7668,9 +7641,8 @@ export const sandbox: <A, E, R>(
7668
7641
  *
7669
7642
  * **When to use**
7670
7643
  *
7671
- * Use when `ignore` allows you to run an effect without caring about its result, whether
7672
- * it succeeds or fails. This is useful when you only care about the side
7673
- * effects of the effect and do not need to handle or process its outcome.
7644
+ * Use when an effect should run for its side effects while both success and
7645
+ * failure values are discarded.
7674
7646
  *
7675
7647
  * Use the `log` option to emit the full {@link Cause} when the effect fails,
7676
7648
  * and `message` to prepend a custom log message.
@@ -7760,7 +7732,7 @@ export const ignoreCause: <
7760
7732
  : <A, E, R>(self: Effect<A, E, R>) => Effect<void, never, R> = internal.ignoreCause
7761
7733
 
7762
7734
  /**
7763
- * Apply an `ExecutionPlan` to an effect, retrying with step-provided resources
7735
+ * Applies an `ExecutionPlan` to an effect, retrying with step-provided resources
7764
7736
  * until it succeeds or the plan is exhausted.
7765
7737
  *
7766
7738
  * **Details**
@@ -7797,7 +7769,7 @@ export const ignoreCause: <
7797
7769
  */
7798
7770
  export const withExecutionPlan: {
7799
7771
  /**
7800
- * Apply an `ExecutionPlan` to an effect, retrying with step-provided resources
7772
+ * Applies an `ExecutionPlan` to an effect, retrying with step-provided resources
7801
7773
  * until it succeeds or the plan is exhausted.
7802
7774
  *
7803
7775
  * **Details**
@@ -7838,7 +7810,7 @@ export const withExecutionPlan: {
7838
7810
  effect: Effect<A, E, R>
7839
7811
  ) => Effect<A, E | PlanE, Exclude<R, Provides> | PlanR>
7840
7812
  /**
7841
- * Apply an `ExecutionPlan` to an effect, retrying with step-provided resources
7813
+ * Applies an `ExecutionPlan` to an effect, retrying with step-provided resources
7842
7814
  * until it succeeds or the plan is exhausted.
7843
7815
  *
7844
7816
  * **Details**
@@ -8433,8 +8405,8 @@ export const timeoutOption: {
8433
8405
  *
8434
8406
  * **Details**
8435
8407
  *
8436
- * This function is useful when you want to set a maximum duration for an operation
8437
- * and provide an alternative action if the timeout is exceeded.
8408
+ * The fallback effect is created lazily by `orElse` and may introduce its own
8409
+ * success, failure, and requirement types.
8438
8410
  *
8439
8411
  * **Gotchas**
8440
8412
  *
@@ -8487,8 +8459,8 @@ export const timeoutOrElse: {
8487
8459
  *
8488
8460
  * **Details**
8489
8461
  *
8490
- * This function is useful when you want to set a maximum duration for an operation
8491
- * and provide an alternative action if the timeout is exceeded.
8462
+ * The fallback effect is created lazily by `orElse` and may introduce its own
8463
+ * success, failure, and requirement types.
8492
8464
  *
8493
8465
  * **Gotchas**
8494
8466
  *
@@ -8546,8 +8518,8 @@ export const timeoutOrElse: {
8546
8518
  *
8547
8519
  * **Details**
8548
8520
  *
8549
- * This function is useful when you want to set a maximum duration for an operation
8550
- * and provide an alternative action if the timeout is exceeded.
8521
+ * The fallback effect is created lazily by `orElse` and may introduce its own
8522
+ * success, failure, and requirement types.
8551
8523
  *
8552
8524
  * **Gotchas**
8553
8525
  *
@@ -8691,7 +8663,7 @@ export const delay: {
8691
8663
  export const sleep: (duration: Duration.Input) => Effect<void> = internal.sleep
8692
8664
 
8693
8665
  /**
8694
- * Measures the runtime of an effect and returns the duration with its result.
8666
+ * Returns the runtime duration of an effect together with its result.
8695
8667
  *
8696
8668
  * **Details**
8697
8669
  *
@@ -9276,7 +9248,7 @@ export const filterMap: {
9276
9248
  } = internal.filterMap
9277
9249
 
9278
9250
  /**
9279
- * Effectfully filters and maps elements of an iterable with a `FilterEffect`.
9251
+ * Filters and maps elements of an iterable effectfully with a `FilterEffect`.
9280
9252
  *
9281
9253
  * **When to use**
9282
9254
  *
@@ -9301,7 +9273,7 @@ export const filterMap: {
9301
9273
  */
9302
9274
  export const filterMapEffect: {
9303
9275
  /**
9304
- * Effectfully filters and maps elements of an iterable with a `FilterEffect`.
9276
+ * Filters and maps elements of an iterable effectfully with a `FilterEffect`.
9305
9277
  *
9306
9278
  * **When to use**
9307
9279
  *
@@ -9329,7 +9301,7 @@ export const filterMapEffect: {
9329
9301
  options?: { readonly concurrency?: Concurrency | undefined }
9330
9302
  ): (elements: Iterable<A>) => Effect<Array<B>, E, R>
9331
9303
  /**
9332
- * Effectfully filters and maps elements of an iterable with a `FilterEffect`.
9304
+ * Filters and maps elements of an iterable effectfully with a `FilterEffect`.
9333
9305
  *
9334
9306
  * **When to use**
9335
9307
  *
@@ -10018,7 +9990,7 @@ export const filterMapOrFail: {
10018
9990
  // -----------------------------------------------------------------------------
10019
9991
 
10020
9992
  /**
10021
- * Conditionally runs an effect based on the result of an effectful boolean
9993
+ * Runs an effect conditionally based on the result of an effectful boolean
10022
9994
  * condition.
10023
9995
  *
10024
9996
  * **When to use**
@@ -10059,7 +10031,7 @@ export const when: {
10059
10031
  // -----------------------------------------------------------------------------
10060
10032
 
10061
10033
  /**
10062
- * Conditionally runs an effect based on the result of an effectful boolean
10034
+ * Runs an effect conditionally based on the result of an effectful boolean
10063
10035
  * condition.
10064
10036
  *
10065
10037
  * **When to use**
@@ -10100,7 +10072,7 @@ export const when: {
10100
10072
  // -----------------------------------------------------------------------------
10101
10073
 
10102
10074
  /**
10103
- * Conditionally runs an effect based on the result of an effectful boolean
10075
+ * Runs an effect conditionally based on the result of an effectful boolean
10104
10076
  * condition.
10105
10077
  *
10106
10078
  * **When to use**
@@ -10674,7 +10646,7 @@ export const matchCauseEager: {
10674
10646
  } = internal.matchCauseEager
10675
10647
 
10676
10648
  /**
10677
- * Eagerly handles success or failure with effectful handlers when the effect is already resolved.
10649
+ * Handles success or failure eagerly with effectful handlers when the effect is already resolved.
10678
10650
  *
10679
10651
  * **When to use**
10680
10652
  *
@@ -10696,7 +10668,7 @@ export const matchCauseEager: {
10696
10668
  */
10697
10669
  export const matchCauseEffectEager: {
10698
10670
  /**
10699
- * Eagerly handles success or failure with effectful handlers when the effect is already resolved.
10671
+ * Handles success or failure eagerly with effectful handlers when the effect is already resolved.
10700
10672
  *
10701
10673
  * **When to use**
10702
10674
  *
@@ -10723,7 +10695,7 @@ export const matchCauseEffectEager: {
10723
10695
  }
10724
10696
  ): <R>(self: Effect<A, E, R>) => Effect<A2 | A3, E2 | E3, R2 | R3 | R>
10725
10697
  /**
10726
- * Eagerly handles success or failure with effectful handlers when the effect is already resolved.
10698
+ * Handles success or failure eagerly with effectful handlers when the effect is already resolved.
10727
10699
  *
10728
10700
  * **When to use**
10729
10701
  *
@@ -11745,6 +11717,11 @@ export const service: <I, S>(service: Context.Key<I, S>) => Effect<S, never, I>
11745
11717
  /**
11746
11718
  * Optionally accesses a service from the environment.
11747
11719
  *
11720
+ * **When to use**
11721
+ *
11722
+ * Use to read an optional dependency from the current context without making
11723
+ * that dependency part of the effect's required environment.
11724
+ *
11748
11725
  * **Details**
11749
11726
  *
11750
11727
  * This function attempts to access a service from the environment. If the
@@ -12021,8 +11998,7 @@ export const updateService: {
12021
11998
  } = internal.updateService
12022
11999
 
12023
12000
  /**
12024
- * The `provideService` function is used to provide an actual
12025
- * implementation for a service in the context of an effect.
12001
+ * Provides one concrete service implementation to an effect.
12026
12002
  *
12027
12003
  * **When to use**
12028
12004
  *
@@ -12030,11 +12006,8 @@ export const updateService: {
12030
12006
  *
12031
12007
  * **Details**
12032
12008
  *
12033
- * This function allows you to associate a service with its implementation so
12034
- * that it can be used in your program. You define the service (e.g., a random
12035
- * number generator), and then you use `provideService` to link that
12036
- * service to its implementation. Once the implementation is provided, the
12037
- * effect can be run successfully without further requirements.
12009
+ * The service requirement identified by the `Context.Key` is removed from the
12010
+ * effect requirements after the implementation is provided.
12038
12011
  *
12039
12012
  * **Example** (Providing a service value)
12040
12013
  *
@@ -12075,8 +12048,7 @@ export const updateService: {
12075
12048
  */
12076
12049
  export const provideService: {
12077
12050
  /**
12078
- * The `provideService` function is used to provide an actual
12079
- * implementation for a service in the context of an effect.
12051
+ * Provides one concrete service implementation to an effect.
12080
12052
  *
12081
12053
  * **When to use**
12082
12054
  *
@@ -12084,11 +12056,8 @@ export const provideService: {
12084
12056
  *
12085
12057
  * **Details**
12086
12058
  *
12087
- * This function allows you to associate a service with its implementation so
12088
- * that it can be used in your program. You define the service (e.g., a random
12089
- * number generator), and then you use `provideService` to link that
12090
- * service to its implementation. Once the implementation is provided, the
12091
- * effect can be run successfully without further requirements.
12059
+ * The service requirement identified by the `Context.Key` is removed from the
12060
+ * effect requirements after the implementation is provided.
12092
12061
  *
12093
12062
  * **Example** (Providing a service value)
12094
12063
  *
@@ -12129,8 +12098,7 @@ export const provideService: {
12129
12098
  */
12130
12099
  <I, S>(service: Context.Key<I, S>): {
12131
12100
  /**
12132
- * The `provideService` function is used to provide an actual
12133
- * implementation for a service in the context of an effect.
12101
+ * Provides one concrete service implementation to an effect.
12134
12102
  *
12135
12103
  * **When to use**
12136
12104
  *
@@ -12138,11 +12106,8 @@ export const provideService: {
12138
12106
  *
12139
12107
  * **Details**
12140
12108
  *
12141
- * This function allows you to associate a service with its implementation so
12142
- * that it can be used in your program. You define the service (e.g., a random
12143
- * number generator), and then you use `provideService` to link that
12144
- * service to its implementation. Once the implementation is provided, the
12145
- * effect can be run successfully without further requirements.
12109
+ * The service requirement identified by the `Context.Key` is removed from the
12110
+ * effect requirements after the implementation is provided.
12146
12111
  *
12147
12112
  * **Example** (Providing a service value)
12148
12113
  *
@@ -12183,8 +12148,7 @@ export const provideService: {
12183
12148
  */
12184
12149
  (implementation: S): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, Exclude<R, I>>
12185
12150
  /**
12186
- * The `provideService` function is used to provide an actual
12187
- * implementation for a service in the context of an effect.
12151
+ * Provides one concrete service implementation to an effect.
12188
12152
  *
12189
12153
  * **When to use**
12190
12154
  *
@@ -12192,11 +12156,8 @@ export const provideService: {
12192
12156
  *
12193
12157
  * **Details**
12194
12158
  *
12195
- * This function allows you to associate a service with its implementation so
12196
- * that it can be used in your program. You define the service (e.g., a random
12197
- * number generator), and then you use `provideService` to link that
12198
- * service to its implementation. Once the implementation is provided, the
12199
- * effect can be run successfully without further requirements.
12159
+ * The service requirement identified by the `Context.Key` is removed from the
12160
+ * effect requirements after the implementation is provided.
12200
12161
  *
12201
12162
  * **Example** (Providing a service value)
12202
12163
  *
@@ -12238,8 +12199,7 @@ export const provideService: {
12238
12199
  <A, E, R>(self: Effect<A, E, R>, implementation: S): Effect<A, E, Exclude<R, I>>
12239
12200
  }
12240
12201
  /**
12241
- * The `provideService` function is used to provide an actual
12242
- * implementation for a service in the context of an effect.
12202
+ * Provides one concrete service implementation to an effect.
12243
12203
  *
12244
12204
  * **When to use**
12245
12205
  *
@@ -12247,11 +12207,8 @@ export const provideService: {
12247
12207
  *
12248
12208
  * **Details**
12249
12209
  *
12250
- * This function allows you to associate a service with its implementation so
12251
- * that it can be used in your program. You define the service (e.g., a random
12252
- * number generator), and then you use `provideService` to link that
12253
- * service to its implementation. Once the implementation is provided, the
12254
- * effect can be run successfully without further requirements.
12210
+ * The service requirement identified by the `Context.Key` is removed from the
12211
+ * effect requirements after the implementation is provided.
12255
12212
  *
12256
12213
  * **Example** (Providing a service value)
12257
12214
  *
@@ -12292,8 +12249,7 @@ export const provideService: {
12292
12249
  */
12293
12250
  <I, S>(service: Context.Key<I, S>, implementation: S): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, Exclude<R, I>>
12294
12251
  /**
12295
- * The `provideService` function is used to provide an actual
12296
- * implementation for a service in the context of an effect.
12252
+ * Provides one concrete service implementation to an effect.
12297
12253
  *
12298
12254
  * **When to use**
12299
12255
  *
@@ -12301,11 +12257,8 @@ export const provideService: {
12301
12257
  *
12302
12258
  * **Details**
12303
12259
  *
12304
- * This function allows you to associate a service with its implementation so
12305
- * that it can be used in your program. You define the service (e.g., a random
12306
- * number generator), and then you use `provideService` to link that
12307
- * service to its implementation. Once the implementation is provided, the
12308
- * effect can be run successfully without further requirements.
12260
+ * The service requirement identified by the `Context.Key` is removed from the
12261
+ * effect requirements after the implementation is provided.
12309
12262
  *
12310
12263
  * **Example** (Providing a service value)
12311
12264
  *
@@ -12667,9 +12620,16 @@ export const withConcurrency: {
12667
12620
  export const scope: Effect<Scope, never, Scope> = internal.scope
12668
12621
 
12669
12622
  /**
12670
- * Scopes all resources used in this workflow to the lifetime of the workflow,
12671
- * ensuring that their finalizers are run as soon as this workflow completes
12672
- * execution, whether by success, failure, or interruption.
12623
+ * Runs an effect with a scope that closes when the effect completes.
12624
+ *
12625
+ * **When to use**
12626
+ *
12627
+ * Use to acquire scoped resources for the duration of a single workflow.
12628
+ *
12629
+ * **Details**
12630
+ *
12631
+ * Finalizers for resources acquired inside the workflow run as soon as the
12632
+ * workflow completes, whether by success, failure, or interruption.
12673
12633
  *
12674
12634
  * **Example** (Running a scoped acquisition)
12675
12635
  *
@@ -12813,8 +12773,7 @@ export const acquireRelease: <A, E, R, R2>(
12813
12773
  ) => Effect<A, E, R | R2 | Scope> = internal.acquireRelease
12814
12774
 
12815
12775
  /**
12816
- * This function constructs a scoped resource from an Effect that acquires a
12817
- * disposable value.
12776
+ * Acquires a scoped resource that implements JavaScript disposal protocols.
12818
12777
  *
12819
12778
  * **When to use**
12820
12779
  *
@@ -12863,10 +12822,7 @@ export const acquireDisposable: <A extends AsyncDisposable | Disposable, E, R>(
12863
12822
  ) => Effect<A, E, R | Scope> = internal.acquireDisposable
12864
12823
 
12865
12824
  /**
12866
- * This function is used to ensure that an `Effect` value that represents the
12867
- * acquisition of a resource (for example, opening a file, launching a thread,
12868
- * etc.) will not be interrupted, and that the resource will always be released
12869
- * when the `Effect` value completes execution.
12825
+ * Runs resource acquisition, usage, and release as one bracketed effect.
12870
12826
  *
12871
12827
  * **When to use**
12872
12828
  *
@@ -12949,9 +12905,7 @@ export const acquireUseRelease: <Resource, E, R, A, E2, R2, E3, R3>(
12949
12905
  ) => Effect<A, E | E2 | E3, R | R2 | R3> = internal.acquireUseRelease
12950
12906
 
12951
12907
  /**
12952
- * This function adds a finalizer to the scope of the calling `Effect` value.
12953
- * The finalizer is guaranteed to be run when the scope is closed, and it may
12954
- * depend on the `Exit` value that the scope is closed with.
12908
+ * Adds a finalizer to the current scope.
12955
12909
  *
12956
12910
  * **When to use**
12957
12911
  *
@@ -12959,9 +12913,8 @@ export const acquireUseRelease: <Resource, E, R, A, E2, R2, E3, R3>(
12959
12913
  *
12960
12914
  * **Details**
12961
12915
  *
12962
- * Finalizers are useful for cleanup operations that must run regardless of
12963
- * whether the effect succeeds or fails. They're commonly used for resource
12964
- * cleanup, logging, or other side effects that should always occur.
12916
+ * The finalizer runs when the surrounding scope is closed and receives the
12917
+ * `Exit` value used to close the scope.
12965
12918
  *
12966
12919
  * **Example** (Registering scope finalizers)
12967
12920
  *
@@ -13394,8 +13347,8 @@ export const onExitPrimitive: <A, E, R, XE = never, XR = never>(
13394
13347
  ) => Effect<A, E | XE, R | XR> = internal.onExitPrimitive
13395
13348
 
13396
13349
  /**
13397
- * Ensures that a cleanup functions runs, whether this effect succeeds, fails,
13398
- * or is interrupted.
13350
+ * Ensures that a cleanup function runs whether this effect succeeds, fails, or
13351
+ * is interrupted.
13399
13352
  *
13400
13353
  * **Example** (Observing every exit)
13401
13354
  *
@@ -13422,8 +13375,8 @@ export const onExitPrimitive: <A, E, R, XE = never, XR = never>(
13422
13375
  */
13423
13376
  export const onExit: {
13424
13377
  /**
13425
- * Ensures that a cleanup functions runs, whether this effect succeeds, fails,
13426
- * or is interrupted.
13378
+ * Ensures that a cleanup function runs whether this effect succeeds, fails, or
13379
+ * is interrupted.
13427
13380
  *
13428
13381
  * **Example** (Observing every exit)
13429
13382
  *
@@ -13450,8 +13403,8 @@ export const onExit: {
13450
13403
  */
13451
13404
  <A, E, XE = never, XR = never>(f: (exit: Exit.Exit<A, E>) => Effect<void, XE, XR>): <R>(self: Effect<A, E, R>) => Effect<A, E | XE, R | XR>
13452
13405
  /**
13453
- * Ensures that a cleanup functions runs, whether this effect succeeds, fails,
13454
- * or is interrupted.
13406
+ * Ensures that a cleanup function runs whether this effect succeeds, fails, or
13407
+ * is interrupted.
13455
13408
  *
13456
13409
  * **Example** (Observing every exit)
13457
13410
  *
@@ -13905,18 +13858,14 @@ export const cachedWithTTL: {
13905
13858
  } = internal.cachedWithTTL
13906
13859
 
13907
13860
  /**
13908
- * Caches an effect's result for a specified duration and allows manual
13861
+ * Creates a cached effect result for a specified duration and allows manual
13909
13862
  * invalidation before expiration.
13910
13863
  *
13911
13864
  * **When to use**
13912
13865
  *
13913
- * Use when you use this function when you have an effect whose result needs to be cached for
13914
- * a certain period, but you also want the option to refresh the cache manually
13915
- * before the expiration time.
13916
- *
13917
- * This is useful when you need to ensure that the cached data remains valid for
13918
- * a certain period but still want to invalidate it if the underlying data
13919
- * changes or if you want to force a recomputation.
13866
+ * Use when an effect result should be cached for a bounded time and callers
13867
+ * also need a manual invalidation effect to force recomputation before
13868
+ * expiration.
13920
13869
  *
13921
13870
  * **Details**
13922
13871
  *
@@ -13975,18 +13924,14 @@ export const cachedWithTTL: {
13975
13924
  */
13976
13925
  export const cachedInvalidateWithTTL: {
13977
13926
  /**
13978
- * Caches an effect's result for a specified duration and allows manual
13927
+ * Creates a cached effect result for a specified duration and allows manual
13979
13928
  * invalidation before expiration.
13980
13929
  *
13981
13930
  * **When to use**
13982
13931
  *
13983
- * Use when you use this function when you have an effect whose result needs to be cached for
13984
- * a certain period, but you also want the option to refresh the cache manually
13985
- * before the expiration time.
13986
- *
13987
- * This is useful when you need to ensure that the cached data remains valid for
13988
- * a certain period but still want to invalidate it if the underlying data
13989
- * changes or if you want to force a recomputation.
13932
+ * Use when an effect result should be cached for a bounded time and callers
13933
+ * also need a manual invalidation effect to force recomputation before
13934
+ * expiration.
13990
13935
  *
13991
13936
  * **Details**
13992
13937
  *
@@ -14045,18 +13990,14 @@ export const cachedInvalidateWithTTL: {
14045
13990
  */
14046
13991
  (timeToLive: Duration.Input): <A, E, R>(self: Effect<A, E, R>) => Effect<[Effect<A, E, R>, Effect<void>]>
14047
13992
  /**
14048
- * Caches an effect's result for a specified duration and allows manual
13993
+ * Creates a cached effect result for a specified duration and allows manual
14049
13994
  * invalidation before expiration.
14050
13995
  *
14051
13996
  * **When to use**
14052
13997
  *
14053
- * Use when you use this function when you have an effect whose result needs to be cached for
14054
- * a certain period, but you also want the option to refresh the cache manually
14055
- * before the expiration time.
14056
- *
14057
- * This is useful when you need to ensure that the cached data remains valid for
14058
- * a certain period but still want to invalidate it if the underlying data
14059
- * changes or if you want to force a recomputation.
13998
+ * Use when an effect result should be cached for a bounded time and callers
13999
+ * also need a manual invalidation effect to force recomputation before
14000
+ * expiration.
14060
14001
  *
14061
14002
  * **Details**
14062
14003
  *
@@ -14311,9 +14252,8 @@ export const uninterruptibleMask: <A, E, R>(
14311
14252
  ) => Effect<A, E, R> = internal.uninterruptibleMask
14312
14253
 
14313
14254
  /**
14314
- * This function behaves like {@link interruptible}, but it also provides a
14315
- * `restore` function. This function can be used to restore the interruptibility
14316
- * of any specific region of code.
14255
+ * Runs an effect in an interruptible region while providing `restore` for
14256
+ * locally restoring the previous interruptibility.
14317
14257
  *
14318
14258
  * **Example** (Controlling interruptibility locally)
14319
14259
  *
@@ -16182,7 +16122,7 @@ export const spanAnnotations: Effect<Readonly<Record<string, unknown>>> = intern
16182
16122
  export const spanLinks: Effect<ReadonlyArray<SpanLink>> = internal.spanLinks
16183
16123
 
16184
16124
  /**
16185
- * For all spans in this effect, add a link with the provided span.
16125
+ * Adds a link with the provided span to all spans in this effect.
16186
16126
  *
16187
16127
  * **Details**
16188
16128
  *
@@ -16237,7 +16177,7 @@ export const spanLinks: Effect<ReadonlyArray<SpanLink>> = internal.spanLinks
16237
16177
  */
16238
16178
  export const linkSpans: {
16239
16179
  /**
16240
- * For all spans in this effect, add a link with the provided span.
16180
+ * Adds a link with the provided span to all spans in this effect.
16241
16181
  *
16242
16182
  * **Details**
16243
16183
  *
@@ -16295,7 +16235,7 @@ export const linkSpans: {
16295
16235
  attributes?: Record<string, unknown>
16296
16236
  ): <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, R>
16297
16237
  /**
16298
- * For all spans in this effect, add a link with the provided span.
16238
+ * Adds a link with the provided span to all spans in this effect.
16299
16239
  *
16300
16240
  * **Details**
16301
16241
  *
@@ -16504,7 +16444,7 @@ export const useSpan: {
16504
16444
  } = internal.useSpan
16505
16445
 
16506
16446
  /**
16507
- * Wraps the effect with a new span for tracing.
16447
+ * Wraps the effect with a child span for tracing.
16508
16448
  *
16509
16449
  * **Example** (Wrapping an effect in a child span)
16510
16450
  *
@@ -16526,7 +16466,7 @@ export const useSpan: {
16526
16466
  */
16527
16467
  export const withSpan: {
16528
16468
  /**
16529
- * Wraps the effect with a new span for tracing.
16469
+ * Wraps the effect with a child span for tracing.
16530
16470
  *
16531
16471
  * **Example** (Wrapping an effect in a child span)
16532
16472
  *
@@ -16555,7 +16495,7 @@ export const withSpan: {
16555
16495
  traceOptions?: TraceOptions | undefined
16556
16496
  ): <A, E, R>(self: Effect<A, E, R>, ...args: Args) => Effect<A, E, Exclude<R, ParentSpan>>
16557
16497
  /**
16558
- * Wraps the effect with a new span for tracing.
16498
+ * Wraps the effect with a child span for tracing.
16559
16499
  *
16560
16500
  * **Example** (Wrapping an effect in a child span)
16561
16501
  *
@@ -16579,7 +16519,7 @@ export const withSpan: {
16579
16519
  } = internal.withSpan
16580
16520
 
16581
16521
  /**
16582
- * Wraps the effect with a new span for tracing.
16522
+ * Wraps the effect with a scoped child span for tracing.
16583
16523
  *
16584
16524
  * **Details**
16585
16525
  *
@@ -16604,7 +16544,7 @@ export const withSpan: {
16604
16544
  */
16605
16545
  export const withSpanScoped: {
16606
16546
  /**
16607
- * Wraps the effect with a new span for tracing.
16547
+ * Wraps the effect with a scoped child span for tracing.
16608
16548
  *
16609
16549
  * **Details**
16610
16550
  *
@@ -16631,7 +16571,7 @@ export const withSpanScoped: {
16631
16571
  self: Effect<A, E, R>
16632
16572
  ) => Effect<A, E, Exclude<R, ParentSpan> | Scope>
16633
16573
  /**
16634
- * Wraps the effect with a new span for tracing.
16574
+ * Wraps the effect with a scoped child span for tracing.
16635
16575
  *
16636
16576
  * **Details**
16637
16577
  *
@@ -16854,7 +16794,7 @@ export const request: {
16854
16794
  } = internalRequest.request
16855
16795
 
16856
16796
  /**
16857
- * Low-level entry point that registers a request with a resolver and delivers the exit value via `onExit`.
16797
+ * Registers a request with a resolver and delivers the exit value via `onExit`.
16858
16798
  *
16859
16799
  * **When to use**
16860
16800
  *
@@ -17176,7 +17116,7 @@ export const forkDetach: <
17176
17116
  export const awaitAllChildren: <A, E, R>(self: Effect<A, E, R>) => Effect<A, E, R> = internal.awaitAllChildren
17177
17117
 
17178
17118
  /**
17179
- * Access the fiber currently executing the effect.
17119
+ * Accesses the fiber currently executing the effect.
17180
17120
  *
17181
17121
  * **Example** (Accessing the current fiber)
17182
17122
  *
@@ -17195,7 +17135,7 @@ export const awaitAllChildren: <A, E, R>(self: Effect<A, E, R>) => Effect<A, E,
17195
17135
  export const fiber: Effect<Fiber<unknown, unknown>> = internal.fiber
17196
17136
 
17197
17137
  /**
17198
- * Access the current fiber id executing the effect.
17138
+ * Accesses the current fiber id executing the effect.
17199
17139
  *
17200
17140
  * **Example** (Accessing the current fiber id)
17201
17141
  *
@@ -17253,17 +17193,14 @@ export interface RunOptions {
17253
17193
  }
17254
17194
 
17255
17195
  /**
17256
- * The foundational function for running effects, returning a "fiber" that can
17196
+ * Runs an effect in the background, returning a fiber that can
17257
17197
  * be observed or interrupted.
17258
17198
  *
17259
17199
  * **When to use**
17260
17200
  *
17261
- * Use when `runFork` is used to run an effect in the background by creating a
17262
- * fiber. It is the base function for all other run functions. It starts a fiber
17263
- * that can be observed or interrupted.
17264
- *
17265
- * Unless you specifically need a `Promise` or synchronous operation,
17266
- * `runFork` is a good default choice.
17201
+ * Use when an effect should start in the background and return a fiber that can
17202
+ * be observed or interrupted. Prefer this when you do not need a `Promise` or
17203
+ * synchronous result.
17267
17204
  *
17268
17205
  * **Example** (Running an effect in the background)
17269
17206
  *
@@ -17592,7 +17529,8 @@ export const runPromiseExitWith: <R>(
17592
17529
  *
17593
17530
  * **When to use**
17594
17531
  *
17595
- * Use when you use `runSync` only for effects that can complete synchronously.
17532
+ * Use when you need to execute an effect that is guaranteed to complete
17533
+ * synchronously.
17596
17534
  *
17597
17535
  * **Details**
17598
17536
  *
@@ -17683,7 +17621,7 @@ export const runSyncWith: <R>(
17683
17621
  ) => <A, E>(effect: Effect<A, E, R>) => A = internal.runSyncWith
17684
17622
 
17685
17623
  /**
17686
- * Runs an effect synchronously and returns the result as an `Exit` type, which
17624
+ * Runs an effect synchronously and captures the outcome safely as an `Exit` type, which
17687
17625
  * represents the outcome (success or failure) of the effect.
17688
17626
  *
17689
17627
  * **When to use**
@@ -17758,7 +17696,7 @@ export const runSyncWith: <R>(
17758
17696
  export const runSyncExit: <A, E>(effect: Effect<A, E>) => Exit.Exit<A, E> = internal.runSyncExit
17759
17697
 
17760
17698
  /**
17761
- * Runs an effect synchronously with provided services, returning an Exit result.
17699
+ * Runs an effect synchronously with provided services, returning an Exit result safely.
17762
17700
  *
17763
17701
  * **Example** (Running synchronously with services as Exit)
17764
17702
  *
@@ -24031,12 +23969,12 @@ export const trackDuration: {
24031
23969
  // -----------------------------------------------------------------------------
24032
23970
 
24033
23971
  /**
24034
- * Service that holds the current transaction state, it includes
23972
+ * Service that holds the current transaction state.
24035
23973
  *
24036
23974
  * **Details**
24037
23975
  *
24038
- * - a journal that stores any non committed change to TxRef values
24039
- * - a retry flag to know if the transaction should be retried
23976
+ * It includes a journal that stores non-committed changes to `TxRef` values and
23977
+ * a retry flag that records whether the transaction should be retried.
24040
23978
  *
24041
23979
  * **Example** (Building transactions)
24042
23980
  *
@@ -24203,7 +24141,7 @@ function clearTransaction(state: Transaction["Service"]) {
24203
24141
  }
24204
24142
 
24205
24143
  /**
24206
- * Signals that the current transaction needs to be retried.
24144
+ * Retries the current transaction by signaling that it must be retried.
24207
24145
  *
24208
24146
  * **Details**
24209
24147
  *
@@ -24811,14 +24749,12 @@ export const satisfiesErrorType = <E>() => <A, E2 extends E, R>(effect: Effect<A
24811
24749
  export const satisfiesServicesType = <R>() => <A, E, R2 extends R>(effect: Effect<A, E, R2>): Effect<A, E, R2> => effect
24812
24750
 
24813
24751
  /**
24814
- * An optimized version of `map` that checks if an effect is already resolved
24815
- * and applies the mapping function eagerly when possible.
24752
+ * Applies `map` eagerly when an effect is already resolved.
24816
24753
  *
24817
24754
  * **When to use**
24818
24755
  *
24819
- * Use when `mapEager` provides better performance for effects that are already resolved
24820
- * by applying the transformation immediately instead of deferring it through
24821
- * the effect pipeline.
24756
+ * Use when an already-resolved effect should apply a success transformation
24757
+ * immediately while pending effects still use regular mapping.
24822
24758
  *
24823
24759
  * **Details**
24824
24760
  *
@@ -24847,14 +24783,12 @@ export const satisfiesServicesType = <R>() => <A, E, R2 extends R>(effect: Effec
24847
24783
  */
24848
24784
  export const mapEager: {
24849
24785
  /**
24850
- * An optimized version of `map` that checks if an effect is already resolved
24851
- * and applies the mapping function eagerly when possible.
24786
+ * Applies `map` eagerly when an effect is already resolved.
24852
24787
  *
24853
24788
  * **When to use**
24854
24789
  *
24855
- * Use when `mapEager` provides better performance for effects that are already resolved
24856
- * by applying the transformation immediately instead of deferring it through
24857
- * the effect pipeline.
24790
+ * Use when an already-resolved effect should apply a success transformation
24791
+ * immediately while pending effects still use regular mapping.
24858
24792
  *
24859
24793
  * **Details**
24860
24794
  *
@@ -24883,14 +24817,12 @@ export const mapEager: {
24883
24817
  */
24884
24818
  <A, B>(f: (a: A) => B): <E, R>(self: Effect<A, E, R>) => Effect<B, E, R>
24885
24819
  /**
24886
- * An optimized version of `map` that checks if an effect is already resolved
24887
- * and applies the mapping function eagerly when possible.
24820
+ * Applies `map` eagerly when an effect is already resolved.
24888
24821
  *
24889
24822
  * **When to use**
24890
24823
  *
24891
- * Use when `mapEager` provides better performance for effects that are already resolved
24892
- * by applying the transformation immediately instead of deferring it through
24893
- * the effect pipeline.
24824
+ * Use when an already-resolved effect should apply a success transformation
24825
+ * immediately while pending effects still use regular mapping.
24894
24826
  *
24895
24827
  * **Details**
24896
24828
  *
@@ -24921,14 +24853,13 @@ export const mapEager: {
24921
24853
  } = internal.mapEager
24922
24854
 
24923
24855
  /**
24924
- * An optimized version of `mapError` that checks if an effect is already resolved
24925
- * and applies the error mapping function eagerly when possible.
24856
+ * Applies `mapError` eagerly when an effect is already resolved.
24926
24857
  *
24927
24858
  * **When to use**
24928
24859
  *
24929
- * Use when `mapErrorEager` provides better performance for effects that are already resolved
24930
- * by applying the error transformation immediately instead of deferring it through
24931
- * the effect pipeline.
24860
+ * Use when an already-resolved failed effect should apply an error
24861
+ * transformation immediately while pending effects still use regular error
24862
+ * mapping.
24932
24863
  *
24933
24864
  * **Details**
24934
24865
  *
@@ -24960,14 +24891,13 @@ export const mapEager: {
24960
24891
  */
24961
24892
  export const mapErrorEager: {
24962
24893
  /**
24963
- * An optimized version of `mapError` that checks if an effect is already resolved
24964
- * and applies the error mapping function eagerly when possible.
24894
+ * Applies `mapError` eagerly when an effect is already resolved.
24965
24895
  *
24966
24896
  * **When to use**
24967
24897
  *
24968
- * Use when `mapErrorEager` provides better performance for effects that are already resolved
24969
- * by applying the error transformation immediately instead of deferring it through
24970
- * the effect pipeline.
24898
+ * Use when an already-resolved failed effect should apply an error
24899
+ * transformation immediately while pending effects still use regular error
24900
+ * mapping.
24971
24901
  *
24972
24902
  * **Details**
24973
24903
  *
@@ -24999,14 +24929,13 @@ export const mapErrorEager: {
24999
24929
  */
25000
24930
  <E, E2>(f: (e: E) => E2): <A, R>(self: Effect<A, E, R>) => Effect<A, E2, R>
25001
24931
  /**
25002
- * An optimized version of `mapError` that checks if an effect is already resolved
25003
- * and applies the error mapping function eagerly when possible.
24932
+ * Applies `mapError` eagerly when an effect is already resolved.
25004
24933
  *
25005
24934
  * **When to use**
25006
24935
  *
25007
- * Use when `mapErrorEager` provides better performance for effects that are already resolved
25008
- * by applying the error transformation immediately instead of deferring it through
25009
- * the effect pipeline.
24936
+ * Use when an already-resolved failed effect should apply an error
24937
+ * transformation immediately while pending effects still use regular error
24938
+ * mapping.
25010
24939
  *
25011
24940
  * **Details**
25012
24941
  *
@@ -25040,14 +24969,12 @@ export const mapErrorEager: {
25040
24969
  } = internal.mapErrorEager
25041
24970
 
25042
24971
  /**
25043
- * An optimized version of `mapBoth` that checks if an effect is already resolved
25044
- * and applies the appropriate mapping function eagerly when possible.
24972
+ * Applies `mapBoth` eagerly when an effect is already resolved.
25045
24973
  *
25046
24974
  * **When to use**
25047
24975
  *
25048
- * Use when `mapBothEager` provides better performance for effects that are already resolved
25049
- * by applying the transformation immediately instead of deferring it through
25050
- * the effect pipeline.
24976
+ * Use when an already-resolved effect should transform either success or
24977
+ * failure immediately while pending effects still use regular channel mapping.
25051
24978
  *
25052
24979
  * **Details**
25053
24980
  *
@@ -25081,14 +25008,12 @@ export const mapErrorEager: {
25081
25008
  */
25082
25009
  export const mapBothEager: {
25083
25010
  /**
25084
- * An optimized version of `mapBoth` that checks if an effect is already resolved
25085
- * and applies the appropriate mapping function eagerly when possible.
25011
+ * Applies `mapBoth` eagerly when an effect is already resolved.
25086
25012
  *
25087
25013
  * **When to use**
25088
25014
  *
25089
- * Use when `mapBothEager` provides better performance for effects that are already resolved
25090
- * by applying the transformation immediately instead of deferring it through
25091
- * the effect pipeline.
25015
+ * Use when an already-resolved effect should transform either success or
25016
+ * failure immediately while pending effects still use regular channel mapping.
25092
25017
  *
25093
25018
  * **Details**
25094
25019
  *
@@ -25124,14 +25049,12 @@ export const mapBothEager: {
25124
25049
  options: { readonly onFailure: (e: E) => E2; readonly onSuccess: (a: A) => A2 }
25125
25050
  ): <R>(self: Effect<A, E, R>) => Effect<A2, E2, R>
25126
25051
  /**
25127
- * An optimized version of `mapBoth` that checks if an effect is already resolved
25128
- * and applies the appropriate mapping function eagerly when possible.
25052
+ * Applies `mapBoth` eagerly when an effect is already resolved.
25129
25053
  *
25130
25054
  * **When to use**
25131
25055
  *
25132
- * Use when `mapBothEager` provides better performance for effects that are already resolved
25133
- * by applying the transformation immediately instead of deferring it through
25134
- * the effect pipeline.
25056
+ * Use when an already-resolved effect should transform either success or
25057
+ * failure immediately while pending effects still use regular channel mapping.
25135
25058
  *
25136
25059
  * **Details**
25137
25060
  *
@@ -25170,14 +25093,12 @@ export const mapBothEager: {
25170
25093
  } = internal.mapBothEager
25171
25094
 
25172
25095
  /**
25173
- * An optimized version of `flatMap` that checks if an effect is already resolved
25174
- * and applies the flatMap function eagerly when possible.
25096
+ * Applies `flatMap` eagerly when an effect is already resolved.
25175
25097
  *
25176
25098
  * **When to use**
25177
25099
  *
25178
- * Use when `flatMapEager` provides better performance for effects that are already resolved
25179
- * by applying the transformation immediately instead of deferring it through
25180
- * the effect pipeline.
25100
+ * Use when an already-resolved successful effect should bind immediately to the
25101
+ * next effect while pending effects still use regular flat mapping.
25181
25102
  *
25182
25103
  * **Details**
25183
25104
  *
@@ -25209,14 +25130,12 @@ export const mapBothEager: {
25209
25130
  */
25210
25131
  export const flatMapEager: {
25211
25132
  /**
25212
- * An optimized version of `flatMap` that checks if an effect is already resolved
25213
- * and applies the flatMap function eagerly when possible.
25133
+ * Applies `flatMap` eagerly when an effect is already resolved.
25214
25134
  *
25215
25135
  * **When to use**
25216
25136
  *
25217
- * Use when `flatMapEager` provides better performance for effects that are already resolved
25218
- * by applying the transformation immediately instead of deferring it through
25219
- * the effect pipeline.
25137
+ * Use when an already-resolved successful effect should bind immediately to the
25138
+ * next effect while pending effects still use regular flat mapping.
25220
25139
  *
25221
25140
  * **Details**
25222
25141
  *
@@ -25248,14 +25167,12 @@ export const flatMapEager: {
25248
25167
  */
25249
25168
  <A, B, E2, R2>(f: (a: A) => Effect<B, E2, R2>): <E, R>(self: Effect<A, E, R>) => Effect<B, E | E2, R | R2>
25250
25169
  /**
25251
- * An optimized version of `flatMap` that checks if an effect is already resolved
25252
- * and applies the flatMap function eagerly when possible.
25170
+ * Applies `flatMap` eagerly when an effect is already resolved.
25253
25171
  *
25254
25172
  * **When to use**
25255
25173
  *
25256
- * Use when `flatMapEager` provides better performance for effects that are already resolved
25257
- * by applying the transformation immediately instead of deferring it through
25258
- * the effect pipeline.
25174
+ * Use when an already-resolved successful effect should bind immediately to the
25175
+ * next effect while pending effects still use regular flat mapping.
25259
25176
  *
25260
25177
  * **Details**
25261
25178
  *
@@ -25289,14 +25206,12 @@ export const flatMapEager: {
25289
25206
  } = internal.flatMapEager
25290
25207
 
25291
25208
  /**
25292
- * An optimized version of `catch` that checks if an effect is already resolved
25293
- * and applies the catch function eagerly when possible.
25209
+ * Applies `catch` eagerly when an effect is already resolved.
25294
25210
  *
25295
25211
  * **When to use**
25296
25212
  *
25297
- * Use when `catchEager` provides better performance for effects that are already resolved
25298
- * by applying the error recovery immediately instead of deferring it through
25299
- * the effect pipeline.
25213
+ * Use when an already-resolved failed effect should recover immediately while
25214
+ * pending effects still use regular error recovery.
25300
25215
  *
25301
25216
  * **Details**
25302
25217
  *
@@ -25338,14 +25253,12 @@ export const flatMapEager: {
25338
25253
  */
25339
25254
  export const catchEager: {
25340
25255
  /**
25341
- * An optimized version of `catch` that checks if an effect is already resolved
25342
- * and applies the catch function eagerly when possible.
25256
+ * Applies `catch` eagerly when an effect is already resolved.
25343
25257
  *
25344
25258
  * **When to use**
25345
25259
  *
25346
- * Use when `catchEager` provides better performance for effects that are already resolved
25347
- * by applying the error recovery immediately instead of deferring it through
25348
- * the effect pipeline.
25260
+ * Use when an already-resolved failed effect should recover immediately while
25261
+ * pending effects still use regular error recovery.
25349
25262
  *
25350
25263
  * **Details**
25351
25264
  *
@@ -25387,14 +25300,12 @@ export const catchEager: {
25387
25300
  */
25388
25301
  <E, B, E2, R2>(f: (e: NoInfer<E>) => Effect<B, E2, R2>): <A, R>(self: Effect<A, E, R>) => Effect<A | B, E2, R | R2>
25389
25302
  /**
25390
- * An optimized version of `catch` that checks if an effect is already resolved
25391
- * and applies the catch function eagerly when possible.
25303
+ * Applies `catch` eagerly when an effect is already resolved.
25392
25304
  *
25393
25305
  * **When to use**
25394
25306
  *
25395
- * Use when `catchEager` provides better performance for effects that are already resolved
25396
- * by applying the error recovery immediately instead of deferring it through
25397
- * the effect pipeline.
25307
+ * Use when an already-resolved failed effect should recover immediately while
25308
+ * pending effects still use regular error recovery.
25398
25309
  *
25399
25310
  * **Details**
25400
25311
  *