effect 4.0.0 → 4.0.2

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 (1001) hide show
  1. package/ai-docs/package.json +2 -2
  2. package/ai-docs/tsconfig.json +2 -1
  3. package/dist/Array.d.ts +339 -0
  4. package/dist/Array.d.ts.map +1 -1
  5. package/dist/Array.js +143 -3
  6. package/dist/Array.js.map +1 -1
  7. package/dist/BigDecimal.d.ts +88 -0
  8. package/dist/BigDecimal.d.ts.map +1 -1
  9. package/dist/BigDecimal.js +44 -0
  10. package/dist/BigDecimal.js.map +1 -1
  11. package/dist/BigInt.d.ts +68 -0
  12. package/dist/BigInt.d.ts.map +1 -1
  13. package/dist/BigInt.js +36 -0
  14. package/dist/BigInt.js.map +1 -1
  15. package/dist/Boolean.d.ts +34 -0
  16. package/dist/Boolean.d.ts.map +1 -1
  17. package/dist/Boolean.js +18 -0
  18. package/dist/Boolean.js.map +1 -1
  19. package/dist/Brand.d.ts +9 -0
  20. package/dist/Brand.d.ts.map +1 -1
  21. package/dist/Brand.js +6 -0
  22. package/dist/Brand.js.map +1 -1
  23. package/dist/ByteSize.d.ts +86 -0
  24. package/dist/ByteSize.d.ts.map +1 -1
  25. package/dist/ByteSize.js +51 -0
  26. package/dist/ByteSize.js.map +1 -1
  27. package/dist/Cache.d.ts +38 -1
  28. package/dist/Cache.d.ts.map +1 -1
  29. package/dist/Cache.js +47 -23
  30. package/dist/Cache.js.map +1 -1
  31. package/dist/Cause.d.ts +82 -0
  32. package/dist/Cause.d.ts.map +1 -1
  33. package/dist/Cause.js +61 -1
  34. package/dist/Cause.js.map +1 -1
  35. package/dist/Channel.d.ts +327 -4
  36. package/dist/Channel.d.ts.map +1 -1
  37. package/dist/Channel.js +168 -8
  38. package/dist/Channel.js.map +1 -1
  39. package/dist/ChannelSchema.d.ts +11 -0
  40. package/dist/ChannelSchema.d.ts.map +1 -1
  41. package/dist/ChannelSchema.js +6 -0
  42. package/dist/ChannelSchema.js.map +1 -1
  43. package/dist/Chunk.d.ts +192 -0
  44. package/dist/Chunk.d.ts.map +1 -1
  45. package/dist/Chunk.js +78 -0
  46. package/dist/Chunk.js.map +1 -1
  47. package/dist/Clock.d.ts +7 -0
  48. package/dist/Clock.d.ts.map +1 -1
  49. package/dist/Clock.js +5 -0
  50. package/dist/Clock.js.map +1 -1
  51. package/dist/Combiner.d.ts +10 -0
  52. package/dist/Combiner.d.ts.map +1 -1
  53. package/dist/Combiner.js +8 -0
  54. package/dist/Combiner.js.map +1 -1
  55. package/dist/Config.d.ts +52 -12
  56. package/dist/Config.d.ts.map +1 -1
  57. package/dist/Config.js +55 -5
  58. package/dist/Config.js.map +1 -1
  59. package/dist/ConfigProvider.d.ts +28 -0
  60. package/dist/ConfigProvider.d.ts.map +1 -1
  61. package/dist/ConfigProvider.js +19 -0
  62. package/dist/ConfigProvider.js.map +1 -1
  63. package/dist/Console.d.ts +22 -0
  64. package/dist/Console.d.ts.map +1 -1
  65. package/dist/Console.js +20 -0
  66. package/dist/Console.js.map +1 -1
  67. package/dist/Context.d.ts +50 -0
  68. package/dist/Context.d.ts.map +1 -1
  69. package/dist/Context.js +21 -0
  70. package/dist/Context.js.map +1 -1
  71. package/dist/Cron.d.ts +16 -0
  72. package/dist/Cron.d.ts.map +1 -1
  73. package/dist/Cron.js +26 -1
  74. package/dist/Cron.js.map +1 -1
  75. package/dist/Crypto.d.ts +5 -0
  76. package/dist/Crypto.d.ts.map +1 -1
  77. package/dist/Crypto.js +3 -0
  78. package/dist/Crypto.js.map +1 -1
  79. package/dist/Data.d.ts +13 -0
  80. package/dist/Data.d.ts.map +1 -1
  81. package/dist/Data.js +5 -0
  82. package/dist/Data.js.map +1 -1
  83. package/dist/DateTime.d.ts +171 -0
  84. package/dist/DateTime.d.ts.map +1 -1
  85. package/dist/DateTime.js +89 -0
  86. package/dist/DateTime.js.map +1 -1
  87. package/dist/Deferred.d.ts +51 -0
  88. package/dist/Deferred.d.ts.map +1 -1
  89. package/dist/Deferred.js +22 -0
  90. package/dist/Deferred.js.map +1 -1
  91. package/dist/Differ.d.ts +2 -0
  92. package/dist/Differ.d.ts.map +1 -1
  93. package/dist/Differ.js +1 -0
  94. package/dist/Duration.d.ts +90 -0
  95. package/dist/Duration.d.ts.map +1 -1
  96. package/dist/Duration.js +53 -0
  97. package/dist/Duration.js.map +1 -1
  98. package/dist/Effect.d.ts +677 -22
  99. package/dist/Effect.d.ts.map +1 -1
  100. package/dist/Effect.js +251 -10
  101. package/dist/Effect.js.map +1 -1
  102. package/dist/Effectable.d.ts +4 -0
  103. package/dist/Effectable.d.ts.map +1 -1
  104. package/dist/Effectable.js +3 -0
  105. package/dist/Effectable.js.map +1 -1
  106. package/dist/Equal.d.ts +8 -0
  107. package/dist/Equal.d.ts.map +1 -1
  108. package/dist/Equal.js +9 -1
  109. package/dist/Equal.js.map +1 -1
  110. package/dist/Equivalence.d.ts +21 -0
  111. package/dist/Equivalence.d.ts.map +1 -1
  112. package/dist/Equivalence.js +16 -0
  113. package/dist/Equivalence.js.map +1 -1
  114. package/dist/ErrorReporter.d.ts +36 -0
  115. package/dist/ErrorReporter.d.ts.map +1 -1
  116. package/dist/ErrorReporter.js +11 -0
  117. package/dist/ErrorReporter.js.map +1 -1
  118. package/dist/ExecutionPlan.d.ts +49 -8
  119. package/dist/ExecutionPlan.d.ts.map +1 -1
  120. package/dist/ExecutionPlan.js +7 -0
  121. package/dist/ExecutionPlan.js.map +1 -1
  122. package/dist/Exit.d.ts +40 -0
  123. package/dist/Exit.d.ts.map +1 -1
  124. package/dist/Exit.js +27 -0
  125. package/dist/Exit.js.map +1 -1
  126. package/dist/Fiber.d.ts +20 -0
  127. package/dist/Fiber.d.ts.map +1 -1
  128. package/dist/Fiber.js +11 -0
  129. package/dist/Fiber.js.map +1 -1
  130. package/dist/FiberHandle.d.ts +21 -0
  131. package/dist/FiberHandle.d.ts.map +1 -1
  132. package/dist/FiberHandle.js +21 -4
  133. package/dist/FiberHandle.js.map +1 -1
  134. package/dist/FiberMap.d.ts +35 -0
  135. package/dist/FiberMap.d.ts.map +1 -1
  136. package/dist/FiberMap.js +19 -0
  137. package/dist/FiberMap.js.map +1 -1
  138. package/dist/FiberSet.d.ts +20 -0
  139. package/dist/FiberSet.d.ts.map +1 -1
  140. package/dist/FiberSet.js +14 -0
  141. package/dist/FiberSet.js.map +1 -1
  142. package/dist/FileSystem.d.ts +15 -0
  143. package/dist/FileSystem.d.ts.map +1 -1
  144. package/dist/FileSystem.js +8 -0
  145. package/dist/FileSystem.js.map +1 -1
  146. package/dist/Filter.d.ts +55 -0
  147. package/dist/Filter.d.ts.map +1 -1
  148. package/dist/Filter.js +28 -0
  149. package/dist/Filter.js.map +1 -1
  150. package/dist/Formatter.d.ts +3 -0
  151. package/dist/Formatter.d.ts.map +1 -1
  152. package/dist/Formatter.js +39 -1
  153. package/dist/Formatter.js.map +1 -1
  154. package/dist/Function.d.ts +30 -0
  155. package/dist/Function.d.ts.map +1 -1
  156. package/dist/Function.js +20 -0
  157. package/dist/Function.js.map +1 -1
  158. package/dist/Graph.d.ts +247 -12
  159. package/dist/Graph.d.ts.map +1 -1
  160. package/dist/Graph.js +149 -28
  161. package/dist/Graph.js.map +1 -1
  162. package/dist/HKT.d.ts +5 -0
  163. package/dist/HKT.d.ts.map +1 -1
  164. package/dist/Hash.d.ts +14 -0
  165. package/dist/Hash.d.ts.map +1 -1
  166. package/dist/Hash.js +12 -0
  167. package/dist/Hash.js.map +1 -1
  168. package/dist/HashMap.d.ts +91 -0
  169. package/dist/HashMap.d.ts.map +1 -1
  170. package/dist/HashMap.js +39 -0
  171. package/dist/HashMap.js.map +1 -1
  172. package/dist/HashRing.d.ts +17 -0
  173. package/dist/HashRing.d.ts.map +1 -1
  174. package/dist/HashRing.js +22 -5
  175. package/dist/HashRing.js.map +1 -1
  176. package/dist/HashSet.d.ts +49 -0
  177. package/dist/HashSet.d.ts.map +1 -1
  178. package/dist/HashSet.js +19 -0
  179. package/dist/HashSet.js.map +1 -1
  180. package/dist/Inspectable.d.ts +7 -0
  181. package/dist/Inspectable.d.ts.map +1 -1
  182. package/dist/Inspectable.js +6 -0
  183. package/dist/Inspectable.js.map +1 -1
  184. package/dist/Iterable.d.ts +127 -0
  185. package/dist/Iterable.d.ts.map +1 -1
  186. package/dist/Iterable.js +51 -0
  187. package/dist/Iterable.js.map +1 -1
  188. package/dist/JsonPatch.d.ts +4 -0
  189. package/dist/JsonPatch.d.ts.map +1 -1
  190. package/dist/JsonPatch.js +3 -0
  191. package/dist/JsonPatch.js.map +1 -1
  192. package/dist/JsonPointer.d.ts +5 -0
  193. package/dist/JsonPointer.d.ts.map +1 -1
  194. package/dist/JsonPointer.js +5 -0
  195. package/dist/JsonPointer.js.map +1 -1
  196. package/dist/JsonSchema.d.ts +16 -0
  197. package/dist/JsonSchema.d.ts.map +1 -1
  198. package/dist/JsonSchema.js +11 -0
  199. package/dist/JsonSchema.js.map +1 -1
  200. package/dist/Latch.d.ts +14 -0
  201. package/dist/Latch.d.ts.map +1 -1
  202. package/dist/Latch.js +10 -0
  203. package/dist/Latch.js.map +1 -1
  204. package/dist/Layer.d.ts +100 -0
  205. package/dist/Layer.d.ts.map +1 -1
  206. package/dist/Layer.js +45 -1
  207. package/dist/Layer.js.map +1 -1
  208. package/dist/LayerMap.d.ts +7 -0
  209. package/dist/LayerMap.d.ts.map +1 -1
  210. package/dist/LayerMap.js +4 -0
  211. package/dist/LayerMap.js.map +1 -1
  212. package/dist/LayerRef.d.ts +5 -0
  213. package/dist/LayerRef.d.ts.map +1 -1
  214. package/dist/LayerRef.js +3 -0
  215. package/dist/LayerRef.js.map +1 -1
  216. package/dist/LogLevel.d.ts +20 -0
  217. package/dist/LogLevel.d.ts.map +1 -1
  218. package/dist/LogLevel.js +9 -0
  219. package/dist/LogLevel.js.map +1 -1
  220. package/dist/Logger.d.ts +25 -0
  221. package/dist/Logger.d.ts.map +1 -1
  222. package/dist/Logger.js +30 -4
  223. package/dist/Logger.js.map +1 -1
  224. package/dist/ManagedRuntime.d.ts +5 -0
  225. package/dist/ManagedRuntime.d.ts.map +1 -1
  226. package/dist/ManagedRuntime.js +9 -1
  227. package/dist/ManagedRuntime.js.map +1 -1
  228. package/dist/Match.d.ts +51 -0
  229. package/dist/Match.d.ts.map +1 -1
  230. package/dist/Match.js +39 -0
  231. package/dist/Match.js.map +1 -1
  232. package/dist/Metric.d.ts +59 -0
  233. package/dist/Metric.d.ts.map +1 -1
  234. package/dist/Metric.js +31 -0
  235. package/dist/Metric.js.map +1 -1
  236. package/dist/MutableHashMap.d.ts +32 -0
  237. package/dist/MutableHashMap.d.ts.map +1 -1
  238. package/dist/MutableHashMap.js +16 -0
  239. package/dist/MutableHashMap.js.map +1 -1
  240. package/dist/MutableHashSet.d.ts +16 -0
  241. package/dist/MutableHashSet.d.ts.map +1 -1
  242. package/dist/MutableHashSet.js +10 -0
  243. package/dist/MutableHashSet.js.map +1 -1
  244. package/dist/MutableList.d.ts +20 -0
  245. package/dist/MutableList.d.ts.map +1 -1
  246. package/dist/MutableList.js +18 -0
  247. package/dist/MutableList.js.map +1 -1
  248. package/dist/MutableRef.d.ts +31 -0
  249. package/dist/MutableRef.d.ts.map +1 -1
  250. package/dist/MutableRef.js +17 -0
  251. package/dist/MutableRef.js.map +1 -1
  252. package/dist/Newtype.d.ts +9 -0
  253. package/dist/Newtype.d.ts.map +1 -1
  254. package/dist/Newtype.js +6 -0
  255. package/dist/Newtype.js.map +1 -1
  256. package/dist/NonEmptyIterable.d.ts +4 -0
  257. package/dist/NonEmptyIterable.d.ts.map +1 -1
  258. package/dist/NonEmptyIterable.js +2 -0
  259. package/dist/NonEmptyIterable.js.map +1 -1
  260. package/dist/Number.d.ts +61 -0
  261. package/dist/Number.d.ts.map +1 -1
  262. package/dist/Number.js +31 -0
  263. package/dist/Number.js.map +1 -1
  264. package/dist/Optic.d.ts +41 -0
  265. package/dist/Optic.d.ts.map +1 -1
  266. package/dist/Optic.js +20 -0
  267. package/dist/Optic.js.map +1 -1
  268. package/dist/Option.d.ts +134 -0
  269. package/dist/Option.d.ts.map +1 -1
  270. package/dist/Option.js +61 -0
  271. package/dist/Option.js.map +1 -1
  272. package/dist/Order.d.ts +29 -0
  273. package/dist/Order.d.ts.map +1 -1
  274. package/dist/Order.js +24 -0
  275. package/dist/Order.js.map +1 -1
  276. package/dist/Ordering.d.ts +7 -0
  277. package/dist/Ordering.d.ts.map +1 -1
  278. package/dist/Ordering.js +3 -0
  279. package/dist/Ordering.js.map +1 -1
  280. package/dist/PartitionedSemaphore.d.ts +24 -0
  281. package/dist/PartitionedSemaphore.d.ts.map +1 -1
  282. package/dist/PartitionedSemaphore.js +47 -21
  283. package/dist/PartitionedSemaphore.js.map +1 -1
  284. package/dist/Path.d.ts +6 -0
  285. package/dist/Path.d.ts.map +1 -1
  286. package/dist/Path.js +4 -0
  287. package/dist/Path.js.map +1 -1
  288. package/dist/Pipeable.d.ts +7 -0
  289. package/dist/Pipeable.d.ts.map +1 -1
  290. package/dist/Pipeable.js +5 -0
  291. package/dist/Pipeable.js.map +1 -1
  292. package/dist/PlatformError.d.ts +8 -0
  293. package/dist/PlatformError.d.ts.map +1 -1
  294. package/dist/PlatformError.js +7 -0
  295. package/dist/PlatformError.js.map +1 -1
  296. package/dist/Pool.d.ts +28 -5
  297. package/dist/Pool.d.ts.map +1 -1
  298. package/dist/Pool.js +42 -42
  299. package/dist/Pool.js.map +1 -1
  300. package/dist/Predicate.d.ts +84 -0
  301. package/dist/Predicate.d.ts.map +1 -1
  302. package/dist/Predicate.js +48 -0
  303. package/dist/Predicate.js.map +1 -1
  304. package/dist/PrimaryKey.d.ts +5 -0
  305. package/dist/PrimaryKey.d.ts.map +1 -1
  306. package/dist/PrimaryKey.js +4 -0
  307. package/dist/PrimaryKey.js.map +1 -1
  308. package/dist/PubSub.d.ts +67 -5
  309. package/dist/PubSub.d.ts.map +1 -1
  310. package/dist/PubSub.js +60 -8
  311. package/dist/PubSub.js.map +1 -1
  312. package/dist/Pull.d.ts +20 -0
  313. package/dist/Pull.d.ts.map +1 -1
  314. package/dist/Pull.js +10 -0
  315. package/dist/Pull.js.map +1 -1
  316. package/dist/Queue.d.ts +60 -0
  317. package/dist/Queue.d.ts.map +1 -1
  318. package/dist/Queue.js +58 -8
  319. package/dist/Queue.js.map +1 -1
  320. package/dist/Random.d.ts +13 -0
  321. package/dist/Random.d.ts.map +1 -1
  322. package/dist/Random.js +9 -0
  323. package/dist/Random.js.map +1 -1
  324. package/dist/RcMap.d.ts +23 -0
  325. package/dist/RcMap.d.ts.map +1 -1
  326. package/dist/RcMap.js +24 -1
  327. package/dist/RcMap.js.map +1 -1
  328. package/dist/RcRef.d.ts +6 -0
  329. package/dist/RcRef.d.ts.map +1 -1
  330. package/dist/RcRef.js +3 -0
  331. package/dist/RcRef.js.map +1 -1
  332. package/dist/Record.d.ts +100 -0
  333. package/dist/Record.d.ts.map +1 -1
  334. package/dist/Record.js +43 -0
  335. package/dist/Record.js.map +1 -1
  336. package/dist/Redactable.d.ts +6 -0
  337. package/dist/Redactable.d.ts.map +1 -1
  338. package/dist/Redactable.js +4 -0
  339. package/dist/Redactable.js.map +1 -1
  340. package/dist/Redacted.d.ts +8 -0
  341. package/dist/Redacted.d.ts.map +1 -1
  342. package/dist/Redacted.js +6 -0
  343. package/dist/Redacted.js.map +1 -1
  344. package/dist/Reducer.d.ts +4 -0
  345. package/dist/Reducer.d.ts.map +1 -1
  346. package/dist/Reducer.js +3 -0
  347. package/dist/Reducer.js.map +1 -1
  348. package/dist/Ref.d.ts +20 -0
  349. package/dist/Ref.d.ts.map +1 -1
  350. package/dist/Ref.js +16 -0
  351. package/dist/Ref.js.map +1 -1
  352. package/dist/References.d.ts +21 -0
  353. package/dist/References.d.ts.map +1 -1
  354. package/dist/References.js +19 -0
  355. package/dist/References.js.map +1 -1
  356. package/dist/RegExp.d.ts +3 -0
  357. package/dist/RegExp.d.ts.map +1 -1
  358. package/dist/RegExp.js +4 -0
  359. package/dist/RegExp.js.map +1 -1
  360. package/dist/Request.d.ts +32 -0
  361. package/dist/Request.d.ts.map +1 -1
  362. package/dist/Request.js +12 -0
  363. package/dist/Request.js.map +1 -1
  364. package/dist/RequestResolver.d.ts +42 -0
  365. package/dist/RequestResolver.d.ts.map +1 -1
  366. package/dist/RequestResolver.js +27 -6
  367. package/dist/RequestResolver.js.map +1 -1
  368. package/dist/Resource.d.ts +6 -0
  369. package/dist/Resource.d.ts.map +1 -1
  370. package/dist/Resource.js +6 -0
  371. package/dist/Resource.js.map +1 -1
  372. package/dist/Result.d.ts +91 -0
  373. package/dist/Result.d.ts.map +1 -1
  374. package/dist/Result.js +41 -0
  375. package/dist/Result.js.map +1 -1
  376. package/dist/Runtime.d.ts +9 -0
  377. package/dist/Runtime.d.ts.map +1 -1
  378. package/dist/Runtime.js +7 -0
  379. package/dist/Runtime.js.map +1 -1
  380. package/dist/Schedule.d.ts +57 -0
  381. package/dist/Schedule.d.ts.map +1 -1
  382. package/dist/Schedule.js +32 -0
  383. package/dist/Schedule.js.map +1 -1
  384. package/dist/Scheduler.d.ts +7 -0
  385. package/dist/Scheduler.d.ts.map +1 -1
  386. package/dist/Scheduler.js +5 -0
  387. package/dist/Scheduler.js.map +1 -1
  388. package/dist/Schema.d.ts +496 -1
  389. package/dist/Schema.d.ts.map +1 -1
  390. package/dist/Schema.js +280 -1
  391. package/dist/Schema.js.map +1 -1
  392. package/dist/SchemaAST.d.ts +107 -0
  393. package/dist/SchemaAST.d.ts.map +1 -1
  394. package/dist/SchemaAST.js +81 -1
  395. package/dist/SchemaAST.js.map +1 -1
  396. package/dist/SchemaGetter.d.ts +69 -2
  397. package/dist/SchemaGetter.d.ts.map +1 -1
  398. package/dist/SchemaGetter.js +63 -4
  399. package/dist/SchemaGetter.js.map +1 -1
  400. package/dist/SchemaIssue.d.ts +33 -0
  401. package/dist/SchemaIssue.d.ts.map +1 -1
  402. package/dist/SchemaIssue.js +18 -0
  403. package/dist/SchemaIssue.js.map +1 -1
  404. package/dist/SchemaParser.d.ts +25 -0
  405. package/dist/SchemaParser.d.ts.map +1 -1
  406. package/dist/SchemaParser.js +26 -0
  407. package/dist/SchemaParser.js.map +1 -1
  408. package/dist/SchemaRepresentation.d.ts +147 -0
  409. package/dist/SchemaRepresentation.d.ts.map +1 -1
  410. package/dist/SchemaRepresentation.js +99 -0
  411. package/dist/SchemaRepresentation.js.map +1 -1
  412. package/dist/SchemaTransformation.d.ts +53 -0
  413. package/dist/SchemaTransformation.d.ts.map +1 -1
  414. package/dist/SchemaTransformation.js +46 -0
  415. package/dist/SchemaTransformation.js.map +1 -1
  416. package/dist/Scope.d.ts +19 -0
  417. package/dist/Scope.d.ts.map +1 -1
  418. package/dist/Scope.js +12 -0
  419. package/dist/Scope.js.map +1 -1
  420. package/dist/ScopedCache.d.ts +34 -0
  421. package/dist/ScopedCache.d.ts.map +1 -1
  422. package/dist/ScopedCache.js +50 -19
  423. package/dist/ScopedCache.js.map +1 -1
  424. package/dist/ScopedRef.d.ts +9 -0
  425. package/dist/ScopedRef.d.ts.map +1 -1
  426. package/dist/ScopedRef.js +6 -0
  427. package/dist/ScopedRef.js.map +1 -1
  428. package/dist/Semaphore.d.ts +26 -0
  429. package/dist/Semaphore.d.ts.map +1 -1
  430. package/dist/Semaphore.js +10 -0
  431. package/dist/Semaphore.js.map +1 -1
  432. package/dist/Sink.d.ts +125 -1
  433. package/dist/Sink.d.ts.map +1 -1
  434. package/dist/Sink.js +75 -1
  435. package/dist/Sink.js.map +1 -1
  436. package/dist/StandardSchema.d.ts +1 -0
  437. package/dist/StandardSchema.d.ts.map +1 -1
  438. package/dist/StandardSchema.js +1 -0
  439. package/dist/Stdio.d.ts +7 -0
  440. package/dist/Stdio.d.ts.map +1 -1
  441. package/dist/Stdio.js +5 -0
  442. package/dist/Stdio.js.map +1 -1
  443. package/dist/Stream.d.ts +603 -6
  444. package/dist/Stream.d.ts.map +1 -1
  445. package/dist/Stream.js +316 -57
  446. package/dist/Stream.js.map +1 -1
  447. package/dist/String.d.ts +87 -0
  448. package/dist/String.d.ts.map +1 -1
  449. package/dist/String.js +61 -0
  450. package/dist/String.js.map +1 -1
  451. package/dist/Struct.d.ts +46 -0
  452. package/dist/Struct.d.ts.map +1 -1
  453. package/dist/Struct.js +19 -0
  454. package/dist/Struct.js.map +1 -1
  455. package/dist/SubscriptionRef.d.ts +65 -0
  456. package/dist/SubscriptionRef.d.ts.map +1 -1
  457. package/dist/SubscriptionRef.js +25 -0
  458. package/dist/SubscriptionRef.js.map +1 -1
  459. package/dist/Symbol.d.ts +2 -0
  460. package/dist/Symbol.d.ts.map +1 -1
  461. package/dist/Symbol.js +2 -0
  462. package/dist/Symbol.js.map +1 -1
  463. package/dist/SynchronizedRef.d.ts +63 -0
  464. package/dist/SynchronizedRef.d.ts.map +1 -1
  465. package/dist/SynchronizedRef.js +24 -0
  466. package/dist/SynchronizedRef.js.map +1 -1
  467. package/dist/Take.d.ts +3 -0
  468. package/dist/Take.d.ts.map +1 -1
  469. package/dist/Take.js +1 -0
  470. package/dist/Take.js.map +1 -1
  471. package/dist/Terminal.d.ts +8 -0
  472. package/dist/Terminal.d.ts.map +1 -1
  473. package/dist/Terminal.js +4 -0
  474. package/dist/Terminal.js.map +1 -1
  475. package/dist/Tracer.d.ts +23 -0
  476. package/dist/Tracer.d.ts.map +1 -1
  477. package/dist/Tracer.js +12 -0
  478. package/dist/Tracer.js.map +1 -1
  479. package/dist/Trie.d.ts +68 -0
  480. package/dist/Trie.d.ts.map +1 -1
  481. package/dist/Trie.js +28 -0
  482. package/dist/Trie.js.map +1 -1
  483. package/dist/Tuple.d.ts +38 -0
  484. package/dist/Tuple.d.ts.map +1 -1
  485. package/dist/Tuple.js +18 -0
  486. package/dist/Tuple.js.map +1 -1
  487. package/dist/TxChunk.d.ts +52 -0
  488. package/dist/TxChunk.d.ts.map +1 -1
  489. package/dist/TxChunk.js +23 -0
  490. package/dist/TxChunk.js.map +1 -1
  491. package/dist/TxDeferred.d.ts +15 -0
  492. package/dist/TxDeferred.d.ts.map +1 -1
  493. package/dist/TxDeferred.js +8 -0
  494. package/dist/TxDeferred.js.map +1 -1
  495. package/dist/TxHashMap.d.ts +83 -0
  496. package/dist/TxHashMap.d.ts.map +1 -1
  497. package/dist/TxHashMap.js +52 -7
  498. package/dist/TxHashMap.js.map +1 -1
  499. package/dist/TxHashSet.d.ts +51 -0
  500. package/dist/TxHashSet.d.ts.map +1 -1
  501. package/dist/TxHashSet.js +29 -4
  502. package/dist/TxHashSet.js.map +1 -1
  503. package/dist/TxPriorityQueue.d.ts +30 -0
  504. package/dist/TxPriorityQueue.d.ts.map +1 -1
  505. package/dist/TxPriorityQueue.js +22 -1
  506. package/dist/TxPriorityQueue.js.map +1 -1
  507. package/dist/TxPubSub.d.ts +25 -0
  508. package/dist/TxPubSub.d.ts.map +1 -1
  509. package/dist/TxPubSub.js +19 -0
  510. package/dist/TxPubSub.js.map +1 -1
  511. package/dist/TxQueue.d.ts +51 -0
  512. package/dist/TxQueue.d.ts.map +1 -1
  513. package/dist/TxQueue.js +30 -0
  514. package/dist/TxQueue.js.map +1 -1
  515. package/dist/TxReentrantLock.d.ts +24 -0
  516. package/dist/TxReentrantLock.d.ts.map +1 -1
  517. package/dist/TxReentrantLock.js +32 -18
  518. package/dist/TxReentrantLock.js.map +1 -1
  519. package/dist/TxRef.d.ts +14 -0
  520. package/dist/TxRef.d.ts.map +1 -1
  521. package/dist/TxRef.js +7 -0
  522. package/dist/TxRef.js.map +1 -1
  523. package/dist/TxSemaphore.d.ts +25 -0
  524. package/dist/TxSemaphore.d.ts.map +1 -1
  525. package/dist/TxSemaphore.js +29 -13
  526. package/dist/TxSemaphore.js.map +1 -1
  527. package/dist/TxSubscriptionRef.d.ts +25 -0
  528. package/dist/TxSubscriptionRef.d.ts.map +1 -1
  529. package/dist/TxSubscriptionRef.js +12 -0
  530. package/dist/TxSubscriptionRef.js.map +1 -1
  531. package/dist/Types.d.ts +36 -0
  532. package/dist/Types.d.ts.map +1 -1
  533. package/dist/Types.js +1 -0
  534. package/dist/UndefinedOr.d.ts +15 -0
  535. package/dist/UndefinedOr.d.ts.map +1 -1
  536. package/dist/UndefinedOr.js +9 -0
  537. package/dist/UndefinedOr.js.map +1 -1
  538. package/dist/Unify.d.ts +15 -0
  539. package/dist/Unify.d.ts.map +1 -1
  540. package/dist/Unify.js +2 -0
  541. package/dist/Unify.js.map +1 -1
  542. package/dist/Utils.d.ts +4 -0
  543. package/dist/Utils.d.ts.map +1 -1
  544. package/dist/Utils.js +1 -0
  545. package/dist/Utils.js.map +1 -1
  546. package/dist/Version.d.ts +26 -0
  547. package/dist/Version.d.ts.map +1 -0
  548. package/dist/Version.js +36 -0
  549. package/dist/Version.js.map +1 -0
  550. package/dist/ai/Chat.js +1 -1
  551. package/dist/ai/Chat.js.map +1 -1
  552. package/dist/ai/DecisionModel.d.ts +22 -0
  553. package/dist/ai/DecisionModel.d.ts.map +1 -1
  554. package/dist/ai/DecisionModel.js +22 -4
  555. package/dist/ai/DecisionModel.js.map +1 -1
  556. package/dist/ai/LanguageModel.d.ts +8 -0
  557. package/dist/ai/LanguageModel.d.ts.map +1 -1
  558. package/dist/ai/LanguageModel.js +27 -15
  559. package/dist/ai/LanguageModel.js.map +1 -1
  560. package/dist/ai/McpSchema.d.ts +508 -508
  561. package/dist/ai/McpSchema.d.ts.map +1 -1
  562. package/dist/ai/McpSchema.js +1 -1
  563. package/dist/ai/McpSchema.js.map +1 -1
  564. package/dist/ai/McpServer.d.ts +32 -11
  565. package/dist/ai/McpServer.d.ts.map +1 -1
  566. package/dist/ai/McpServer.js +224 -172
  567. package/dist/ai/McpServer.js.map +1 -1
  568. package/dist/ai/Response.d.ts.map +1 -1
  569. package/dist/ai/Response.js +22 -12
  570. package/dist/ai/Response.js.map +1 -1
  571. package/dist/ai/Telemetry.d.ts +49 -41
  572. package/dist/ai/Telemetry.d.ts.map +1 -1
  573. package/dist/ai/Telemetry.js +6 -8
  574. package/dist/ai/Telemetry.js.map +1 -1
  575. package/dist/ai/internal/mcpProtocol/v2024_11_05.js +1 -0
  576. package/dist/ai/internal/mcpProtocol/v2024_11_05.js.map +1 -1
  577. package/dist/ai/internal/mcpProtocol/v2025_03_26.js +1 -0
  578. package/dist/ai/internal/mcpProtocol/v2025_03_26.js.map +1 -1
  579. package/dist/ai/internal/mcpProtocol/v2025_06_18.js +1 -0
  580. package/dist/ai/internal/mcpProtocol/v2025_06_18.js.map +1 -1
  581. package/dist/ai/internal/mcpProtocol/v2025_11_25.js +1 -0
  582. package/dist/ai/internal/mcpProtocol/v2025_11_25.js.map +1 -1
  583. package/dist/ai/internal/mcpRuntime.js +79 -46
  584. package/dist/ai/internal/mcpRuntime.js.map +1 -1
  585. package/dist/ai/internal/mcpSchema/v2024_11_05.js +3 -1
  586. package/dist/ai/internal/mcpSchema/v2024_11_05.js.map +1 -1
  587. package/dist/ai/internal/mcpStatefulRuntime.js +1 -0
  588. package/dist/ai/internal/mcpStatefulRuntime.js.map +1 -1
  589. package/dist/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  590. package/dist/cluster/ClusterWorkflowEngine.js +11 -2
  591. package/dist/cluster/ClusterWorkflowEngine.js.map +1 -1
  592. package/dist/cluster/K8sHttpClient.d.ts.map +1 -1
  593. package/dist/cluster/K8sHttpClient.js +5 -2
  594. package/dist/cluster/K8sHttpClient.js.map +1 -1
  595. package/dist/cluster/Sharding.d.ts.map +1 -1
  596. package/dist/cluster/Sharding.js +14 -7
  597. package/dist/cluster/Sharding.js.map +1 -1
  598. package/dist/cluster/SqlMessageStorage.d.ts.map +1 -1
  599. package/dist/cluster/SqlMessageStorage.js +21 -12
  600. package/dist/cluster/SqlMessageStorage.js.map +1 -1
  601. package/dist/cluster/SqlRunnerStorage.d.ts.map +1 -1
  602. package/dist/cluster/SqlRunnerStorage.js +30 -44
  603. package/dist/cluster/SqlRunnerStorage.js.map +1 -1
  604. package/dist/cluster/internal/entityManager.js +63 -62
  605. package/dist/cluster/internal/entityManager.js.map +1 -1
  606. package/dist/cluster/internal/interruptors.js +8 -0
  607. package/dist/cluster/internal/interruptors.js.map +1 -1
  608. package/dist/cluster/internal/resourceMap.js +39 -14
  609. package/dist/cluster/internal/resourceMap.js.map +1 -1
  610. package/dist/cluster/internal/resourceRef.js +168 -87
  611. package/dist/cluster/internal/resourceRef.js.map +1 -1
  612. package/dist/encoding/Base64.d.ts +4 -0
  613. package/dist/encoding/Base64.d.ts.map +1 -1
  614. package/dist/encoding/Base64.js +4 -0
  615. package/dist/encoding/Base64.js.map +1 -1
  616. package/dist/encoding/Base64Url.d.ts +4 -0
  617. package/dist/encoding/Base64Url.d.ts.map +1 -1
  618. package/dist/encoding/Base64Url.js +4 -0
  619. package/dist/encoding/Base64Url.js.map +1 -1
  620. package/dist/encoding/EncodingError.d.ts +4 -0
  621. package/dist/encoding/EncodingError.d.ts.map +1 -1
  622. package/dist/encoding/EncodingError.js +4 -0
  623. package/dist/encoding/EncodingError.js.map +1 -1
  624. package/dist/encoding/Hex.d.ts +5 -0
  625. package/dist/encoding/Hex.d.ts.map +1 -1
  626. package/dist/encoding/Hex.js +5 -0
  627. package/dist/encoding/Hex.js.map +1 -1
  628. package/dist/encoding/Toml.js +2 -2
  629. package/dist/encoding/Toml.js.map +1 -1
  630. package/dist/encoding/Yaml.d.ts.map +1 -1
  631. package/dist/encoding/Yaml.js +6 -4
  632. package/dist/encoding/Yaml.js.map +1 -1
  633. package/dist/encoding/index.d.ts +4 -0
  634. package/dist/encoding/index.d.ts.map +1 -1
  635. package/dist/encoding/index.js +4 -0
  636. package/dist/encoding/index.js.map +1 -1
  637. package/dist/eventlog/SqlEventJournal.js +8 -4
  638. package/dist/eventlog/SqlEventJournal.js.map +1 -1
  639. package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts +27 -10
  640. package/dist/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
  641. package/dist/eventlog/SqlEventLogServerUnencrypted.js +49 -7
  642. package/dist/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
  643. package/dist/http/Headers.d.ts +3 -1
  644. package/dist/http/Headers.d.ts.map +1 -1
  645. package/dist/http/Headers.js +4 -2
  646. package/dist/http/Headers.js.map +1 -1
  647. package/dist/http/HttpClient.d.ts +9 -0
  648. package/dist/http/HttpClient.d.ts.map +1 -1
  649. package/dist/http/HttpClient.js +40 -21
  650. package/dist/http/HttpClient.js.map +1 -1
  651. package/dist/http/HttpClientResponse.js +3 -1
  652. package/dist/http/HttpClientResponse.js.map +1 -1
  653. package/dist/http/HttpEffect.d.ts +3 -0
  654. package/dist/http/HttpEffect.d.ts.map +1 -1
  655. package/dist/http/HttpEffect.js +5 -2
  656. package/dist/http/HttpEffect.js.map +1 -1
  657. package/dist/http/HttpMiddleware.d.ts +17 -0
  658. package/dist/http/HttpMiddleware.d.ts.map +1 -1
  659. package/dist/http/HttpMiddleware.js +58 -40
  660. package/dist/http/HttpMiddleware.js.map +1 -1
  661. package/dist/http/HttpServer.d.ts +1 -1
  662. package/dist/http/HttpServer.d.ts.map +1 -1
  663. package/dist/http/HttpStaticServer.d.ts.map +1 -1
  664. package/dist/http/HttpStaticServer.js +14 -0
  665. package/dist/http/HttpStaticServer.js.map +1 -1
  666. package/dist/http/HttpTraceContext.d.ts +1 -1
  667. package/dist/http/HttpTraceContext.d.ts.map +1 -1
  668. package/dist/http/HttpTraceContext.js +4 -4
  669. package/dist/http/HttpTraceContext.js.map +1 -1
  670. package/dist/http/internal/tracing.d.ts +2 -0
  671. package/dist/http/internal/tracing.d.ts.map +1 -0
  672. package/dist/http/internal/tracing.js +37 -0
  673. package/dist/http/internal/tracing.js.map +1 -0
  674. package/dist/http-api/HttpApiBuilder.js +2 -1
  675. package/dist/http-api/HttpApiBuilder.js.map +1 -1
  676. package/dist/http-api/HttpApiClient.d.ts +12 -3
  677. package/dist/http-api/HttpApiClient.d.ts.map +1 -1
  678. package/dist/http-api/HttpApiClient.js.map +1 -1
  679. package/dist/http-api/HttpApiError.d.ts +4 -2
  680. package/dist/http-api/HttpApiError.d.ts.map +1 -1
  681. package/dist/http-api/HttpApiError.js +7 -3
  682. package/dist/http-api/HttpApiError.js.map +1 -1
  683. package/dist/http-api/HttpApiSecurity.d.ts +8 -8
  684. package/dist/http-api/HttpApiSecurity.js +8 -8
  685. package/dist/index.d.ts +155 -0
  686. package/dist/index.d.ts.map +1 -1
  687. package/dist/index.js +155 -0
  688. package/dist/index.js.map +1 -1
  689. package/dist/internal/arbitrary/array.js +3 -3
  690. package/dist/internal/arbitrary/array.js.map +1 -1
  691. package/dist/internal/arbitrary/model.js +26 -11
  692. package/dist/internal/arbitrary/model.js.map +1 -1
  693. package/dist/internal/arbitrary/runner.js +8 -8
  694. package/dist/internal/arbitrary/runner.js.map +1 -1
  695. package/dist/internal/arbitrary/schema.js +4 -5
  696. package/dist/internal/arbitrary/schema.js.map +1 -1
  697. package/dist/internal/core.js +43 -2
  698. package/dist/internal/core.js.map +1 -1
  699. package/dist/internal/dateTime.js +1 -1
  700. package/dist/internal/dateTime.js.map +1 -1
  701. package/dist/internal/effect.js +104 -120
  702. package/dist/internal/effect.js.map +1 -1
  703. package/dist/internal/rcRef.js +59 -23
  704. package/dist/internal/rcRef.js.map +1 -1
  705. package/dist/internal/schedule.js +7 -5
  706. package/dist/internal/schedule.js.map +1 -1
  707. package/dist/internal/schema/fromJsonSchemaDocument.js +11 -8
  708. package/dist/internal/schema/fromJsonSchemaDocument.js.map +1 -1
  709. package/dist/internal/schema/standardSchema.js +2 -2
  710. package/dist/internal/schema/standardSchema.js.map +1 -1
  711. package/dist/internal/version.d.ts +2 -0
  712. package/dist/internal/version.d.ts.map +1 -0
  713. package/dist/internal/version.js +3 -0
  714. package/dist/internal/version.js.map +1 -0
  715. package/dist/observability/OtlpExporter.d.ts.map +1 -1
  716. package/dist/observability/OtlpExporter.js +5 -6
  717. package/dist/observability/OtlpExporter.js.map +1 -1
  718. package/dist/observability/OtlpLogger.d.ts.map +1 -1
  719. package/dist/observability/OtlpLogger.js +23 -27
  720. package/dist/observability/OtlpLogger.js.map +1 -1
  721. package/dist/observability/OtlpMetrics.d.ts +5 -3
  722. package/dist/observability/OtlpMetrics.d.ts.map +1 -1
  723. package/dist/observability/OtlpMetrics.js +21 -94
  724. package/dist/observability/OtlpMetrics.js.map +1 -1
  725. package/dist/observability/OtlpResource.d.ts +4 -3
  726. package/dist/observability/OtlpResource.d.ts.map +1 -1
  727. package/dist/observability/OtlpResource.js +20 -23
  728. package/dist/observability/OtlpResource.js.map +1 -1
  729. package/dist/observability/OtlpTracer.d.ts +1 -0
  730. package/dist/observability/OtlpTracer.d.ts.map +1 -1
  731. package/dist/observability/OtlpTracer.js +32 -36
  732. package/dist/observability/OtlpTracer.js.map +1 -1
  733. package/dist/observability/internal/otlpProtobuf.js +32 -1
  734. package/dist/observability/internal/otlpProtobuf.js.map +1 -1
  735. package/dist/reactivity/AsyncResult.d.ts +1 -1
  736. package/dist/reactivity/Atom.d.ts +5 -5
  737. package/dist/reactivity/Atom.d.ts.map +1 -1
  738. package/dist/reactivity/Atom.js +9 -5
  739. package/dist/reactivity/Atom.js.map +1 -1
  740. package/dist/reactivity/AtomHttpApi.d.ts +2 -2
  741. package/dist/reactivity/AtomHttpApi.d.ts.map +1 -1
  742. package/dist/reactivity/AtomRegistry.d.ts +8 -0
  743. package/dist/reactivity/AtomRegistry.d.ts.map +1 -1
  744. package/dist/reactivity/AtomRegistry.js.map +1 -1
  745. package/dist/rpc/RpcClient.d.ts +21 -3
  746. package/dist/rpc/RpcClient.d.ts.map +1 -1
  747. package/dist/rpc/RpcClient.js +58 -34
  748. package/dist/rpc/RpcClient.js.map +1 -1
  749. package/dist/rpc/RpcServer.d.ts.map +1 -1
  750. package/dist/rpc/RpcServer.js +20 -23
  751. package/dist/rpc/RpcServer.js.map +1 -1
  752. package/dist/rpc/Utils.d.ts +2 -3
  753. package/dist/rpc/Utils.d.ts.map +1 -1
  754. package/dist/rpc/Utils.js +3 -4
  755. package/dist/rpc/Utils.js.map +1 -1
  756. package/dist/rpc/internal/tracing.d.ts +2 -0
  757. package/dist/rpc/internal/tracing.d.ts.map +1 -0
  758. package/dist/rpc/internal/tracing.js +18 -0
  759. package/dist/rpc/internal/tracing.js.map +1 -0
  760. package/dist/schema/SchemaCompiler/runtime.js +9 -1
  761. package/dist/schema/SchemaCompiler/runtime.js.map +1 -1
  762. package/dist/sql/SqlClient.js +4 -4
  763. package/dist/sql/SqlClient.js.map +1 -1
  764. package/dist/sql/Statement.d.ts +21 -1
  765. package/dist/sql/Statement.d.ts.map +1 -1
  766. package/dist/sql/Statement.js +55 -7
  767. package/dist/sql/Statement.js.map +1 -1
  768. package/dist/testing/TestClock.d.ts +8 -0
  769. package/dist/testing/TestClock.d.ts.map +1 -1
  770. package/dist/testing/TestClock.js +7 -0
  771. package/dist/testing/TestClock.js.map +1 -1
  772. package/dist/testing/TestConsole.d.ts +7 -0
  773. package/dist/testing/TestConsole.d.ts.map +1 -1
  774. package/dist/testing/TestConsole.js +6 -0
  775. package/dist/testing/TestConsole.js.map +1 -1
  776. package/dist/testing/index.d.ts +3 -0
  777. package/dist/testing/index.d.ts.map +1 -1
  778. package/dist/testing/index.js +3 -0
  779. package/dist/testing/index.js.map +1 -1
  780. package/dist/workflow/WorkflowEngine.d.ts +2 -0
  781. package/dist/workflow/WorkflowEngine.d.ts.map +1 -1
  782. package/dist/workflow/WorkflowEngine.js +1 -0
  783. package/dist/workflow/WorkflowEngine.js.map +1 -1
  784. package/package.json +3 -3
  785. package/src/Array.ts +351 -3
  786. package/src/BigDecimal.ts +88 -0
  787. package/src/BigInt.ts +68 -0
  788. package/src/Boolean.ts +34 -0
  789. package/src/Brand.ts +10 -0
  790. package/src/ByteSize.ts +87 -0
  791. package/src/Cache.ts +72 -24
  792. package/src/Cause.ts +83 -1
  793. package/src/Channel.ts +368 -18
  794. package/src/ChannelSchema.ts +13 -0
  795. package/src/Chunk.ts +193 -0
  796. package/src/Clock.ts +7 -0
  797. package/src/Combiner.ts +10 -0
  798. package/src/Config.ts +82 -8
  799. package/src/ConfigProvider.ts +28 -0
  800. package/src/Console.ts +26 -0
  801. package/src/Context.ts +50 -0
  802. package/src/Cron.ts +32 -1
  803. package/src/Crypto.ts +5 -0
  804. package/src/Data.ts +13 -0
  805. package/src/DateTime.ts +171 -0
  806. package/src/Deferred.ts +51 -0
  807. package/src/Differ.ts +2 -0
  808. package/src/Duration.ts +90 -0
  809. package/src/Effect.ts +692 -27
  810. package/src/Effectable.ts +4 -0
  811. package/src/Equal.ts +12 -1
  812. package/src/Equivalence.ts +22 -0
  813. package/src/ErrorReporter.ts +36 -0
  814. package/src/ExecutionPlan.ts +58 -14
  815. package/src/Exit.ts +40 -0
  816. package/src/Fiber.ts +20 -0
  817. package/src/FiberHandle.ts +29 -4
  818. package/src/FiberMap.ts +38 -0
  819. package/src/FiberSet.ts +21 -0
  820. package/src/FileSystem.ts +16 -0
  821. package/src/Filter.ts +55 -0
  822. package/src/Formatter.ts +42 -1
  823. package/src/Function.ts +30 -0
  824. package/src/Graph.ts +317 -36
  825. package/src/HKT.ts +5 -0
  826. package/src/Hash.ts +15 -0
  827. package/src/HashMap.ts +91 -0
  828. package/src/HashRing.ts +32 -5
  829. package/src/HashSet.ts +53 -0
  830. package/src/Inspectable.ts +8 -0
  831. package/src/Iterable.ts +127 -0
  832. package/src/JsonPatch.ts +5 -0
  833. package/src/JsonPointer.ts +5 -0
  834. package/src/JsonSchema.ts +17 -0
  835. package/src/Latch.ts +14 -0
  836. package/src/Layer.ts +101 -1
  837. package/src/LayerMap.ts +7 -0
  838. package/src/LayerRef.ts +5 -0
  839. package/src/LogLevel.ts +20 -0
  840. package/src/Logger.ts +41 -5
  841. package/src/ManagedRuntime.ts +12 -1
  842. package/src/Match.ts +52 -0
  843. package/src/Metric.ts +69 -0
  844. package/src/MutableHashMap.ts +44 -0
  845. package/src/MutableHashSet.ts +17 -0
  846. package/src/MutableList.ts +21 -0
  847. package/src/MutableRef.ts +32 -0
  848. package/src/Newtype.ts +9 -0
  849. package/src/NonEmptyIterable.ts +4 -0
  850. package/src/Number.ts +61 -0
  851. package/src/Optic.ts +57 -0
  852. package/src/Option.ts +134 -0
  853. package/src/Order.ts +30 -0
  854. package/src/Ordering.ts +7 -0
  855. package/src/PartitionedSemaphore.ts +61 -22
  856. package/src/Path.ts +6 -0
  857. package/src/Pipeable.ts +7 -0
  858. package/src/PlatformError.ts +8 -0
  859. package/src/Pool.ts +48 -37
  860. package/src/Predicate.ts +85 -0
  861. package/src/PrimaryKey.ts +5 -0
  862. package/src/PubSub.ts +90 -9
  863. package/src/Pull.ts +20 -0
  864. package/src/Queue.ts +80 -10
  865. package/src/Random.ts +13 -0
  866. package/src/RcMap.ts +49 -2
  867. package/src/RcRef.ts +6 -0
  868. package/src/Record.ts +100 -0
  869. package/src/Redactable.ts +6 -0
  870. package/src/Redacted.ts +8 -0
  871. package/src/Reducer.ts +4 -0
  872. package/src/Ref.ts +42 -0
  873. package/src/References.ts +21 -0
  874. package/src/RegExp.ts +4 -0
  875. package/src/Request.ts +32 -0
  876. package/src/RequestResolver.ts +59 -10
  877. package/src/Resource.ts +7 -0
  878. package/src/Result.ts +93 -0
  879. package/src/Runtime.ts +10 -0
  880. package/src/Schedule.ts +61 -0
  881. package/src/Scheduler.ts +7 -0
  882. package/src/Schema.ts +499 -4
  883. package/src/SchemaAST.ts +115 -1
  884. package/src/SchemaGetter.ts +80 -4
  885. package/src/SchemaIssue.ts +34 -0
  886. package/src/SchemaParser.ts +26 -0
  887. package/src/SchemaRepresentation.ts +148 -0
  888. package/src/SchemaTransformation.ts +53 -0
  889. package/src/Scope.ts +19 -0
  890. package/src/ScopedCache.ts +82 -19
  891. package/src/ScopedRef.ts +9 -0
  892. package/src/Semaphore.ts +26 -0
  893. package/src/Sink.ts +126 -2
  894. package/src/StandardSchema.ts +1 -0
  895. package/src/Stdio.ts +7 -0
  896. package/src/Stream.ts +780 -103
  897. package/src/String.ts +87 -0
  898. package/src/Struct.ts +46 -0
  899. package/src/SubscriptionRef.ts +65 -0
  900. package/src/Symbol.ts +2 -0
  901. package/src/SynchronizedRef.ts +63 -0
  902. package/src/Take.ts +3 -0
  903. package/src/Terminal.ts +8 -0
  904. package/src/Tracer.ts +23 -0
  905. package/src/Trie.ts +68 -0
  906. package/src/Tuple.ts +38 -0
  907. package/src/TxChunk.ts +52 -0
  908. package/src/TxDeferred.ts +15 -0
  909. package/src/TxHashMap.ts +97 -6
  910. package/src/TxHashSet.ts +83 -3
  911. package/src/TxPriorityQueue.ts +34 -2
  912. package/src/TxPubSub.ts +26 -0
  913. package/src/TxQueue.ts +51 -0
  914. package/src/TxReentrantLock.ts +53 -36
  915. package/src/TxRef.ts +14 -0
  916. package/src/TxSemaphore.ts +47 -31
  917. package/src/TxSubscriptionRef.ts +25 -0
  918. package/src/Types.ts +36 -0
  919. package/src/UndefinedOr.ts +15 -0
  920. package/src/Unify.ts +15 -0
  921. package/src/Utils.ts +4 -0
  922. package/src/Version.ts +38 -0
  923. package/src/ai/Chat.ts +1 -1
  924. package/src/ai/DecisionModel.ts +42 -1
  925. package/src/ai/LanguageModel.ts +43 -21
  926. package/src/ai/McpSchema.ts +3 -3
  927. package/src/ai/McpServer.ts +119 -39
  928. package/src/ai/Response.ts +27 -12
  929. package/src/ai/Telemetry.ts +62 -58
  930. package/src/ai/internal/mcpProtocol/v2024_11_05.ts +1 -0
  931. package/src/ai/internal/mcpProtocol/v2025_03_26.ts +1 -0
  932. package/src/ai/internal/mcpProtocol/v2025_06_18.ts +1 -0
  933. package/src/ai/internal/mcpProtocol/v2025_11_25.ts +1 -0
  934. package/src/ai/internal/mcpRuntime.ts +84 -43
  935. package/src/ai/internal/mcpSchema/v2024_11_05.ts +4 -2
  936. package/src/ai/internal/mcpStatefulRuntime.ts +2 -0
  937. package/src/cluster/ClusterWorkflowEngine.ts +18 -4
  938. package/src/cluster/K8sHttpClient.ts +12 -2
  939. package/src/cluster/Sharding.ts +24 -24
  940. package/src/cluster/SqlMessageStorage.ts +26 -13
  941. package/src/cluster/SqlRunnerStorage.ts +85 -113
  942. package/src/cluster/internal/entityManager.ts +68 -80
  943. package/src/cluster/internal/interruptors.ts +13 -0
  944. package/src/cluster/internal/resourceMap.ts +55 -17
  945. package/src/cluster/internal/resourceRef.ts +189 -96
  946. package/src/encoding/Base64.ts +4 -0
  947. package/src/encoding/Base64Url.ts +4 -0
  948. package/src/encoding/EncodingError.ts +5 -0
  949. package/src/encoding/Hex.ts +5 -0
  950. package/src/encoding/Toml.ts +2 -2
  951. package/src/encoding/Yaml.ts +8 -4
  952. package/src/encoding/index.ts +4 -0
  953. package/src/eventlog/SqlEventJournal.ts +18 -4
  954. package/src/eventlog/SqlEventLogServerUnencrypted.ts +282 -235
  955. package/src/http/Headers.ts +8 -2
  956. package/src/http/HttpClient.ts +44 -27
  957. package/src/http/HttpClientResponse.ts +3 -1
  958. package/src/http/HttpEffect.ts +11 -2
  959. package/src/http/HttpMiddleware.ts +67 -46
  960. package/src/http/HttpServer.ts +1 -1
  961. package/src/http/HttpStaticServer.ts +16 -0
  962. package/src/http/HttpTraceContext.ts +8 -4
  963. package/src/http/internal/tracing.ts +52 -0
  964. package/src/http-api/HttpApiBuilder.ts +5 -1
  965. package/src/http-api/HttpApiClient.ts +13 -4
  966. package/src/http-api/HttpApiError.ts +8 -3
  967. package/src/http-api/HttpApiSecurity.ts +8 -8
  968. package/src/index.ts +156 -0
  969. package/src/internal/arbitrary/array.ts +3 -3
  970. package/src/internal/arbitrary/model.ts +37 -14
  971. package/src/internal/arbitrary/runner.ts +7 -7
  972. package/src/internal/arbitrary/schema.ts +4 -3
  973. package/src/internal/core.ts +56 -2
  974. package/src/internal/dateTime.ts +3 -1
  975. package/src/internal/effect.ts +156 -156
  976. package/src/internal/rcRef.ts +83 -33
  977. package/src/internal/schedule.ts +23 -17
  978. package/src/internal/schema/fromJsonSchemaDocument.ts +5 -3
  979. package/src/internal/schema/standardSchema.ts +2 -2
  980. package/src/internal/version.ts +2 -0
  981. package/src/observability/OtlpExporter.ts +9 -6
  982. package/src/observability/OtlpLogger.ts +20 -21
  983. package/src/observability/OtlpMetrics.ts +34 -93
  984. package/src/observability/OtlpResource.ts +18 -27
  985. package/src/observability/OtlpTracer.ts +34 -40
  986. package/src/observability/internal/otlpProtobuf.ts +60 -0
  987. package/src/reactivity/AsyncResult.ts +1 -1
  988. package/src/reactivity/Atom.ts +10 -6
  989. package/src/reactivity/AtomHttpApi.ts +2 -4
  990. package/src/reactivity/AtomRegistry.ts +7 -0
  991. package/src/rpc/RpcClient.ts +74 -46
  992. package/src/rpc/RpcServer.ts +28 -25
  993. package/src/rpc/Utils.ts +4 -10
  994. package/src/rpc/internal/tracing.ts +22 -0
  995. package/src/schema/SchemaCompiler/runtime.ts +4 -1
  996. package/src/sql/SqlClient.ts +4 -4
  997. package/src/sql/Statement.ts +59 -7
  998. package/src/testing/TestClock.ts +9 -0
  999. package/src/testing/TestConsole.ts +8 -0
  1000. package/src/testing/index.ts +3 -0
  1001. package/src/workflow/WorkflowEngine.ts +4 -0
package/src/BigDecimal.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  * divide, round, and format decimal values such as money, quantities, and
6
6
  * measurements.
7
7
  *
8
+ * @stability stable
8
9
  * @since 2.0.0
9
10
  */
10
11
 
@@ -43,6 +44,7 @@ const TypeId = "~effect/BigDecimal"
43
44
  * d.scale // => 2
44
45
  * ```
45
46
  *
47
+ * @stability stable
46
48
  * @category models
47
49
  * @since 2.0.0
48
50
  */
@@ -100,6 +102,7 @@ const BigDecimalProto: Omit<BigDecimal, "value" | "scale" | "normalized"> = {
100
102
  * BigDecimal.isBigDecimal("123.45") // => false
101
103
  * ```
102
104
  *
105
+ * @stability stable
103
106
  * @category guards
104
107
  * @since 2.0.0
105
108
  */
@@ -133,6 +136,7 @@ export const isBigDecimal = (u: unknown): u is BigDecimal => hasProperty(u, Type
133
136
  *
134
137
  * @see {@link fromBigInt} for constructing an integer decimal from a `bigint`
135
138
  *
139
+ * @stability stable
136
140
  * @category constructors
137
141
  * @since 2.0.0
138
142
  */
@@ -197,6 +201,7 @@ const one = makeNormalizedUnsafe(bigint1, 0)
197
201
  *
198
202
  * @see {@link format} for rendering normalized decimals as strings
199
203
  *
204
+ * @stability stable
200
205
  * @category scaling
201
206
  * @since 2.0.0
202
207
  */
@@ -246,6 +251,7 @@ export const normalize = (self: BigDecimal): BigDecimal => {
246
251
  *
247
252
  * @see {@link round} for changing scale with configurable rounding
248
253
  *
254
+ * @stability stable
249
255
  * @category scaling
250
256
  * @since 2.0.0
251
257
  */
@@ -281,6 +287,7 @@ export const scale: {
281
287
  *
282
288
  * @see {@link round} for changing scale with configurable rounding
283
289
  *
290
+ * @stability stable
284
291
  * @category scaling
285
292
  * @since 2.0.0
286
293
  */
@@ -316,6 +323,7 @@ export const scale: {
316
323
  *
317
324
  * @see {@link round} for changing scale with configurable rounding
318
325
  *
326
+ * @stability stable
319
327
  * @category scaling
320
328
  * @since 2.0.0
321
329
  */
@@ -353,6 +361,7 @@ export const scale: {
353
361
  *
354
362
  * @see {@link sumAll} for summing an iterable of `BigDecimal` values
355
363
  *
364
+ * @stability stable
356
365
  * @category math
357
366
  * @since 2.0.0
358
367
  */
@@ -378,6 +387,7 @@ export const sum: {
378
387
  *
379
388
  * @see {@link sumAll} for summing an iterable of `BigDecimal` values
380
389
  *
390
+ * @stability stable
381
391
  * @category math
382
392
  * @since 2.0.0
383
393
  */
@@ -403,6 +413,7 @@ export const sum: {
403
413
  *
404
414
  * @see {@link sumAll} for summing an iterable of `BigDecimal` values
405
415
  *
416
+ * @stability stable
406
417
  * @category math
407
418
  * @since 2.0.0
408
419
  */
@@ -449,6 +460,7 @@ export const sum: {
449
460
  *
450
461
  * @see {@link sum} for adding two `BigDecimal` values
451
462
  *
463
+ * @stability stable
452
464
  * @category math
453
465
  * @since 3.16.0
454
466
  */
@@ -480,6 +492,7 @@ export const sumAll = (collection: Iterable<BigDecimal>): BigDecimal => {
480
492
  *
481
493
  * @see {@link multiplyAll} for multiplying an iterable of `BigDecimal` values
482
494
  *
495
+ * @stability stable
483
496
  * @category math
484
497
  * @since 2.0.0
485
498
  */
@@ -504,6 +517,7 @@ export const multiply: {
504
517
  *
505
518
  * @see {@link multiplyAll} for multiplying an iterable of `BigDecimal` values
506
519
  *
520
+ * @stability stable
507
521
  * @category math
508
522
  * @since 2.0.0
509
523
  */
@@ -528,6 +542,7 @@ export const multiply: {
528
542
  *
529
543
  * @see {@link multiplyAll} for multiplying an iterable of `BigDecimal` values
530
544
  *
545
+ * @stability stable
531
546
  * @category math
532
547
  * @since 2.0.0
533
548
  */
@@ -561,6 +576,7 @@ export const multiply: {
561
576
  *
562
577
  * @see {@link multiply} for multiplying two `BigDecimal` values
563
578
  *
579
+ * @stability stable
564
580
  * @category math
565
581
  * @since 4.0.0
566
582
  */
@@ -593,6 +609,7 @@ export const multiplyAll = (collection: Iterable<BigDecimal>): BigDecimal => {
593
609
  * ) // => BigDecimal.fromBigInt(-1n)
594
610
  * ```
595
611
  *
612
+ * @stability stable
596
613
  * @category math
597
614
  * @since 2.0.0
598
615
  */
@@ -615,6 +632,7 @@ export const subtract: {
615
632
  * ) // => BigDecimal.fromBigInt(-1n)
616
633
  * ```
617
634
  *
635
+ * @stability stable
618
636
  * @category math
619
637
  * @since 2.0.0
620
638
  */
@@ -637,6 +655,7 @@ export const subtract: {
637
655
  * ) // => BigDecimal.fromBigInt(-1n)
638
656
  * ```
639
657
  *
658
+ * @stability stable
640
659
  * @category math
641
660
  * @since 2.0.0
642
661
  */
@@ -758,6 +777,7 @@ export const roundTerminal = (n: bigint): bigint => {
758
777
  * @see {@link divideUnsafe} for division that throws when the divisor is zero
759
778
  * @see {@link remainder} for the decimal remainder operation
760
779
  *
780
+ * @stability stable
761
781
  * @category math
762
782
  * @since 2.0.0
763
783
  */
@@ -791,6 +811,7 @@ export const divide: {
791
811
  * @see {@link divideUnsafe} for division that throws when the divisor is zero
792
812
  * @see {@link remainder} for the decimal remainder operation
793
813
  *
814
+ * @stability stable
794
815
  * @category math
795
816
  * @since 2.0.0
796
817
  */
@@ -824,6 +845,7 @@ export const divide: {
824
845
  * @see {@link divideUnsafe} for division that throws when the divisor is zero
825
846
  * @see {@link remainder} for the decimal remainder operation
826
847
  *
848
+ * @stability stable
827
849
  * @category math
828
850
  * @since 2.0.0
829
851
  */
@@ -873,6 +895,7 @@ export const divide: {
873
895
  *
874
896
  * @see {@link divide} for division that returns `Option.none` when the divisor is zero
875
897
  *
898
+ * @stability stable
876
899
  * @category math
877
900
  * @since 4.0.0
878
901
  */
@@ -905,6 +928,7 @@ export const divideUnsafe: {
905
928
  *
906
929
  * @see {@link divide} for division that returns `Option.none` when the divisor is zero
907
930
  *
931
+ * @stability stable
908
932
  * @category math
909
933
  * @since 4.0.0
910
934
  */
@@ -937,6 +961,7 @@ export const divideUnsafe: {
937
961
  *
938
962
  * @see {@link divide} for division that returns `Option.none` when the divisor is zero
939
963
  *
964
+ * @stability stable
940
965
  * @category math
941
966
  * @since 4.0.0
942
967
  */
@@ -1014,6 +1039,7 @@ const compare = (self: BigDecimal, that: BigDecimal): Ordering => {
1014
1039
  * BigDecimal.Order(a, c) // => 0
1015
1040
  * ```
1016
1041
  *
1042
+ * @stability stable
1017
1043
  * @category instances
1018
1044
  * @since 2.0.0
1019
1045
  */
@@ -1040,6 +1066,7 @@ export const Order: order.Order<BigDecimal> = order.make(compare)
1040
1066
  * BigDecimal.isLessThan(four, three) // => false
1041
1067
  * ```
1042
1068
  *
1069
+ * @stability stable
1043
1070
  * @category predicates
1044
1071
  * @since 4.0.0
1045
1072
  */
@@ -1065,6 +1092,7 @@ export const isLessThan: {
1065
1092
  * BigDecimal.isLessThan(four, three) // => false
1066
1093
  * ```
1067
1094
  *
1095
+ * @stability stable
1068
1096
  * @category predicates
1069
1097
  * @since 4.0.0
1070
1098
  */
@@ -1090,6 +1118,7 @@ export const isLessThan: {
1090
1118
  * BigDecimal.isLessThan(four, three) // => false
1091
1119
  * ```
1092
1120
  *
1121
+ * @stability stable
1093
1122
  * @category predicates
1094
1123
  * @since 4.0.0
1095
1124
  */
@@ -1117,6 +1146,7 @@ export const isLessThan: {
1117
1146
  * BigDecimal.isLessThanOrEqualTo(four, three) // => false
1118
1147
  * ```
1119
1148
  *
1149
+ * @stability stable
1120
1150
  * @category predicates
1121
1151
  * @since 4.0.0
1122
1152
  */
@@ -1142,6 +1172,7 @@ export const isLessThanOrEqualTo: {
1142
1172
  * BigDecimal.isLessThanOrEqualTo(four, three) // => false
1143
1173
  * ```
1144
1174
  *
1175
+ * @stability stable
1145
1176
  * @category predicates
1146
1177
  * @since 4.0.0
1147
1178
  */
@@ -1167,6 +1198,7 @@ export const isLessThanOrEqualTo: {
1167
1198
  * BigDecimal.isLessThanOrEqualTo(four, three) // => false
1168
1199
  * ```
1169
1200
  *
1201
+ * @stability stable
1170
1202
  * @category predicates
1171
1203
  * @since 4.0.0
1172
1204
  */
@@ -1194,6 +1226,7 @@ export const isLessThanOrEqualTo: {
1194
1226
  * BigDecimal.isGreaterThan(four, three) // => true
1195
1227
  * ```
1196
1228
  *
1229
+ * @stability stable
1197
1230
  * @category predicates
1198
1231
  * @since 4.0.0
1199
1232
  */
@@ -1219,6 +1252,7 @@ export const isGreaterThan: {
1219
1252
  * BigDecimal.isGreaterThan(four, three) // => true
1220
1253
  * ```
1221
1254
  *
1255
+ * @stability stable
1222
1256
  * @category predicates
1223
1257
  * @since 4.0.0
1224
1258
  */
@@ -1244,6 +1278,7 @@ export const isGreaterThan: {
1244
1278
  * BigDecimal.isGreaterThan(four, three) // => true
1245
1279
  * ```
1246
1280
  *
1281
+ * @stability stable
1247
1282
  * @category predicates
1248
1283
  * @since 4.0.0
1249
1284
  */
@@ -1271,6 +1306,7 @@ export const isGreaterThan: {
1271
1306
  * BigDecimal.isGreaterThanOrEqualTo(four, three) // => true
1272
1307
  * ```
1273
1308
  *
1309
+ * @stability stable
1274
1310
  * @category predicates
1275
1311
  * @since 4.0.0
1276
1312
  */
@@ -1296,6 +1332,7 @@ export const isGreaterThanOrEqualTo: {
1296
1332
  * BigDecimal.isGreaterThanOrEqualTo(four, three) // => true
1297
1333
  * ```
1298
1334
  *
1335
+ * @stability stable
1299
1336
  * @category predicates
1300
1337
  * @since 4.0.0
1301
1338
  */
@@ -1321,6 +1358,7 @@ export const isGreaterThanOrEqualTo: {
1321
1358
  * BigDecimal.isGreaterThanOrEqualTo(four, three) // => true
1322
1359
  * ```
1323
1360
  *
1361
+ * @stability stable
1324
1362
  * @category predicates
1325
1363
  * @since 4.0.0
1326
1364
  */
@@ -1351,6 +1389,7 @@ export const isGreaterThanOrEqualTo: {
1351
1389
  *
1352
1390
  * @see {@link clamp} for forcing a `BigDecimal` into an inclusive range
1353
1391
  *
1392
+ * @stability stable
1354
1393
  * @category predicates
1355
1394
  * @since 2.0.0
1356
1395
  */
@@ -1379,6 +1418,7 @@ export const between: {
1379
1418
  *
1380
1419
  * @see {@link clamp} for forcing a `BigDecimal` into an inclusive range
1381
1420
  *
1421
+ * @stability stable
1382
1422
  * @category predicates
1383
1423
  * @since 2.0.0
1384
1424
  */
@@ -1412,6 +1452,7 @@ export const between: {
1412
1452
  *
1413
1453
  * @see {@link clamp} for forcing a `BigDecimal` into an inclusive range
1414
1454
  *
1455
+ * @stability stable
1415
1456
  * @category predicates
1416
1457
  * @since 2.0.0
1417
1458
  */
@@ -1454,6 +1495,7 @@ export const between: {
1454
1495
  *
1455
1496
  * @see {@link between} for checking whether a `BigDecimal` is already inside a range
1456
1497
  *
1498
+ * @stability stable
1457
1499
  * @category math
1458
1500
  * @since 2.0.0
1459
1501
  */
@@ -1488,6 +1530,7 @@ export const clamp: {
1488
1530
  *
1489
1531
  * @see {@link between} for checking whether a `BigDecimal` is already inside a range
1490
1532
  *
1533
+ * @stability stable
1491
1534
  * @category math
1492
1535
  * @since 2.0.0
1493
1536
  */
@@ -1527,6 +1570,7 @@ export const clamp: {
1527
1570
  *
1528
1571
  * @see {@link between} for checking whether a `BigDecimal` is already inside a range
1529
1572
  *
1573
+ * @stability stable
1530
1574
  * @category math
1531
1575
  * @since 2.0.0
1532
1576
  */
@@ -1559,6 +1603,7 @@ export const clamp: {
1559
1603
  *
1560
1604
  * @see {@link max} for selecting the larger value
1561
1605
  *
1606
+ * @stability stable
1562
1607
  * @category math
1563
1608
  * @since 2.0.0
1564
1609
  */
@@ -1583,6 +1628,7 @@ export const min: {
1583
1628
  *
1584
1629
  * @see {@link max} for selecting the larger value
1585
1630
  *
1631
+ * @stability stable
1586
1632
  * @category math
1587
1633
  * @since 2.0.0
1588
1634
  */
@@ -1607,6 +1653,7 @@ export const min: {
1607
1653
  *
1608
1654
  * @see {@link max} for selecting the larger value
1609
1655
  *
1656
+ * @stability stable
1610
1657
  * @category math
1611
1658
  * @since 2.0.0
1612
1659
  */
@@ -1633,6 +1680,7 @@ export const min: {
1633
1680
  *
1634
1681
  * @see {@link min} for selecting the smaller value
1635
1682
  *
1683
+ * @stability stable
1636
1684
  * @category math
1637
1685
  * @since 2.0.0
1638
1686
  */
@@ -1657,6 +1705,7 @@ export const max: {
1657
1705
  *
1658
1706
  * @see {@link min} for selecting the smaller value
1659
1707
  *
1708
+ * @stability stable
1660
1709
  * @category math
1661
1710
  * @since 2.0.0
1662
1711
  */
@@ -1681,6 +1730,7 @@ export const max: {
1681
1730
  *
1682
1731
  * @see {@link min} for selecting the smaller value
1683
1732
  *
1733
+ * @stability stable
1684
1734
  * @category math
1685
1735
  * @since 2.0.0
1686
1736
  */
@@ -1704,6 +1754,7 @@ export const max: {
1704
1754
  * BigDecimal.sign(BigDecimal.fromStringUnsafe("5")) // => 1
1705
1755
  * ```
1706
1756
  *
1757
+ * @stability stable
1707
1758
  * @category math
1708
1759
  * @since 2.0.0
1709
1760
  */
@@ -1726,6 +1777,7 @@ export const sign = (n: BigDecimal): Ordering => n.value === bigint0 ? 0 : n.val
1726
1777
  * BigDecimal.abs(BigDecimal.fromStringUnsafe("5")) // => BigDecimal.fromBigInt(5n)
1727
1778
  * ```
1728
1779
  *
1780
+ * @stability stable
1729
1781
  * @category math
1730
1782
  * @since 2.0.0
1731
1783
  */
@@ -1747,6 +1799,7 @@ export const abs = (n: BigDecimal): BigDecimal => n.value < bigint0 ? make(-n.va
1747
1799
  * BigDecimal.negate(BigDecimal.fromStringUnsafe("-6")) // => BigDecimal.fromBigInt(6n)
1748
1800
  * ```
1749
1801
  *
1802
+ * @stability stable
1750
1803
  * @category math
1751
1804
  * @since 2.0.0
1752
1805
  */
@@ -1781,6 +1834,7 @@ export const negate = (n: BigDecimal): BigDecimal => make(-n.value, n.scale)
1781
1834
  * @see {@link remainderUnsafe} for remainder calculation that throws when the divisor is zero
1782
1835
  * @see {@link divide} for decimal quotient calculation
1783
1836
  *
1837
+ * @stability stable
1784
1838
  * @category math
1785
1839
  * @since 2.0.0
1786
1840
  */
@@ -1814,6 +1868,7 @@ export const remainder: {
1814
1868
  * @see {@link remainderUnsafe} for remainder calculation that throws when the divisor is zero
1815
1869
  * @see {@link divide} for decimal quotient calculation
1816
1870
  *
1871
+ * @stability stable
1817
1872
  * @category math
1818
1873
  * @since 2.0.0
1819
1874
  */
@@ -1847,6 +1902,7 @@ export const remainder: {
1847
1902
  * @see {@link remainderUnsafe} for remainder calculation that throws when the divisor is zero
1848
1903
  * @see {@link divide} for decimal quotient calculation
1849
1904
  *
1905
+ * @stability stable
1850
1906
  * @category math
1851
1907
  * @since 2.0.0
1852
1908
  */
@@ -1886,6 +1942,7 @@ export const remainder: {
1886
1942
  *
1887
1943
  * @see {@link remainder} for returning `Option.none` when the divisor is zero
1888
1944
  *
1945
+ * @stability stable
1889
1946
  * @category math
1890
1947
  * @since 4.0.0
1891
1948
  */
@@ -1916,6 +1973,7 @@ export const remainderUnsafe: {
1916
1973
  *
1917
1974
  * @see {@link remainder} for returning `Option.none` when the divisor is zero
1918
1975
  *
1976
+ * @stability stable
1919
1977
  * @category math
1920
1978
  * @since 4.0.0
1921
1979
  */
@@ -1946,6 +2004,7 @@ export const remainderUnsafe: {
1946
2004
  *
1947
2005
  * @see {@link remainder} for returning `Option.none` when the divisor is zero
1948
2006
  *
2007
+ * @stability stable
1949
2008
  * @category math
1950
2009
  * @since 4.0.0
1951
2010
  */
@@ -1980,6 +2039,7 @@ export const remainderUnsafe: {
1980
2039
  * BigDecimal.Equivalence(a, c) // => false
1981
2040
  * ```
1982
2041
  *
2042
+ * @stability stable
1983
2043
  * @category instances
1984
2044
  * @since 2.0.0
1985
2045
  */
@@ -2007,6 +2067,7 @@ export const Equivalence: Equ.Equivalence<BigDecimal> = Equ.make((self, that) =>
2007
2067
  *
2008
2068
  * @see {@link Equivalence} for passing decimal equality to APIs that require an `Equivalence`
2009
2069
  *
2070
+ * @stability stable
2010
2071
  * @category predicates
2011
2072
  * @since 2.0.0
2012
2073
  */
@@ -2033,6 +2094,7 @@ export const equals: {
2033
2094
  *
2034
2095
  * @see {@link Equivalence} for passing decimal equality to APIs that require an `Equivalence`
2035
2096
  *
2097
+ * @stability stable
2036
2098
  * @category predicates
2037
2099
  * @since 2.0.0
2038
2100
  */
@@ -2059,6 +2121,7 @@ export const equals: {
2059
2121
  *
2060
2122
  * @see {@link Equivalence} for passing decimal equality to APIs that require an `Equivalence`
2061
2123
  *
2124
+ * @stability stable
2062
2125
  * @category predicates
2063
2126
  * @since 2.0.0
2064
2127
  */
@@ -2086,6 +2149,7 @@ export const equals: {
2086
2149
  *
2087
2150
  * @see {@link make} for constructing a decimal with an explicit scale
2088
2151
  *
2152
+ * @stability stable
2089
2153
  * @category constructors
2090
2154
  * @since 2.0.0
2091
2155
  */
@@ -2116,6 +2180,7 @@ export const fromBigInt = (n: bigint): BigDecimal => make(n, 0)
2116
2180
  *
2117
2181
  * @see {@link fromNumber} for returning `Option.none` when the number is not finite
2118
2182
  *
2183
+ * @stability stable
2119
2184
  * @category constructors
2120
2185
  * @since 4.0.0
2121
2186
  */
@@ -2152,6 +2217,7 @@ export const fromNumberUnsafe = (n: number): BigDecimal => {
2152
2217
  * @see {@link fromNumberUnsafe} for throwing when the number is not finite
2153
2218
  * @see {@link fromString} for parsing decimal strings directly
2154
2219
  *
2220
+ * @stability stable
2155
2221
  * @category constructors
2156
2222
  * @since 2.0.0
2157
2223
  */
@@ -2194,6 +2260,7 @@ export const fromNumber = (n: number): Option.Option<BigDecimal> => {
2194
2260
  * @see {@link fromStringUnsafe} for parsing that throws on invalid input
2195
2261
  * @see {@link fromNumber} for converting finite JavaScript numbers
2196
2262
  *
2263
+ * @stability stable
2197
2264
  * @category constructors
2198
2265
  * @since 2.0.0
2199
2266
  */
@@ -2266,6 +2333,7 @@ export const fromString = (s: string): Option.Option<BigDecimal> => {
2266
2333
  *
2267
2334
  * @see {@link fromString} for returning `Option.none` on invalid input
2268
2335
  *
2336
+ * @stability stable
2269
2337
  * @category constructors
2270
2338
  * @since 4.0.0
2271
2339
  */
@@ -2298,6 +2366,7 @@ export const fromStringUnsafe = (s: string): BigDecimal => {
2298
2366
  *
2299
2367
  * @see {@link toExponential} for always rendering scientific notation
2300
2368
  *
2369
+ * @stability stable
2301
2370
  * @category converting
2302
2371
  * @since 2.0.0
2303
2372
  */
@@ -2334,6 +2403,7 @@ export const format = (n: BigDecimal): string => {
2334
2403
  *
2335
2404
  * @see {@link format} for plain decimal formatting when possible
2336
2405
  *
2406
+ * @stability stable
2337
2407
  * @category converting
2338
2408
  * @since 3.11.0
2339
2409
  */
@@ -2375,6 +2445,7 @@ export const toExponential = (n: BigDecimal): string => {
2375
2445
  *
2376
2446
  * @see {@link format} for preserving decimal precision as text
2377
2447
  *
2448
+ * @stability stable
2378
2449
  * @category converting
2379
2450
  * @since 4.0.0
2380
2451
  */
@@ -2397,6 +2468,7 @@ export const toNumberUnsafe = (n: BigDecimal): number => Number(format(n))
2397
2468
  * BigDecimal.isInteger(BigDecimal.fromStringUnsafe("1.1")) // => false
2398
2469
  * ```
2399
2470
  *
2471
+ * @stability stable
2400
2472
  * @category predicates
2401
2473
  * @since 2.0.0
2402
2474
  */
@@ -2418,6 +2490,7 @@ export const isInteger = (n: BigDecimal): boolean => normalize(n).scale <= 0
2418
2490
  * BigDecimal.isZero(BigDecimal.fromStringUnsafe("1")) // => false
2419
2491
  * ```
2420
2492
  *
2493
+ * @stability stable
2421
2494
  * @category predicates
2422
2495
  * @since 2.0.0
2423
2496
  */
@@ -2440,6 +2513,7 @@ export const isZero = (n: BigDecimal): boolean => n.value === bigint0
2440
2513
  * BigDecimal.isNegative(BigDecimal.fromStringUnsafe("1")) // => false
2441
2514
  * ```
2442
2515
  *
2516
+ * @stability stable
2443
2517
  * @category predicates
2444
2518
  * @since 2.0.0
2445
2519
  */
@@ -2462,6 +2536,7 @@ export const isNegative = (n: BigDecimal): boolean => n.value < bigint0
2462
2536
  * BigDecimal.isPositive(BigDecimal.fromStringUnsafe("1")) // => true
2463
2537
  * ```
2464
2538
  *
2539
+ * @stability stable
2465
2540
  * @category predicates
2466
2541
  * @since 2.0.0
2467
2542
  */
@@ -2495,6 +2570,7 @@ const isBigDecimalArgs = (args: IArguments) => isBigDecimal(args[0])
2495
2570
  * @see {@link floor} for fixed rounding toward negative infinity
2496
2571
  * @see {@link truncate} for fixed rounding toward zero
2497
2572
  *
2573
+ * @stability stable
2498
2574
  * @category math
2499
2575
  * @since 3.16.0
2500
2576
  */
@@ -2533,6 +2609,7 @@ export type RoundingMode =
2533
2609
  * @see {@link floor} for fixed rounding toward negative infinity
2534
2610
  * @see {@link truncate} for fixed rounding toward zero
2535
2611
  *
2612
+ * @stability stable
2536
2613
  * @category math
2537
2614
  * @since 3.16.0
2538
2615
  */
@@ -2560,6 +2637,7 @@ export const round: {
2560
2637
  * @see {@link floor} for fixed rounding toward negative infinity
2561
2638
  * @see {@link truncate} for fixed rounding toward zero
2562
2639
  *
2640
+ * @stability stable
2563
2641
  * @category math
2564
2642
  * @since 3.16.0
2565
2643
  */
@@ -2587,6 +2665,7 @@ export const round: {
2587
2665
  * @see {@link floor} for fixed rounding toward negative infinity
2588
2666
  * @see {@link truncate} for fixed rounding toward zero
2589
2667
  *
2668
+ * @stability stable
2590
2669
  * @category math
2591
2670
  * @since 3.16.0
2592
2671
  */
@@ -2660,6 +2739,7 @@ export const round: {
2660
2739
  * @see {@link ceil} for rounding toward positive infinity
2661
2740
  * @see {@link floor} for rounding toward negative infinity
2662
2741
  *
2742
+ * @stability stable
2663
2743
  * @category math
2664
2744
  * @since 3.16.0
2665
2745
  */
@@ -2686,6 +2766,7 @@ export const truncate: {
2686
2766
  * @see {@link ceil} for rounding toward positive infinity
2687
2767
  * @see {@link floor} for rounding toward negative infinity
2688
2768
  *
2769
+ * @stability stable
2689
2770
  * @category math
2690
2771
  * @since 3.16.0
2691
2772
  */
@@ -2712,6 +2793,7 @@ export const truncate: {
2712
2793
  * @see {@link ceil} for rounding toward positive infinity
2713
2794
  * @see {@link floor} for rounding toward negative infinity
2714
2795
  *
2796
+ * @stability stable
2715
2797
  * @category math
2716
2798
  * @since 3.16.0
2717
2799
  */
@@ -2751,6 +2833,7 @@ export const truncate: {
2751
2833
  * BigDecimal.ceil(BigDecimal.fromStringUnsafe("-14.5")) // => BigDecimal.fromBigInt(-14n)
2752
2834
  * ```
2753
2835
  *
2836
+ * @stability stable
2754
2837
  * @category math
2755
2838
  * @since 3.16.0
2756
2839
  */
@@ -2781,6 +2864,7 @@ export const ceil: {
2781
2864
  * BigDecimal.ceil(BigDecimal.fromStringUnsafe("-14.5")) // => BigDecimal.fromBigInt(-14n)
2782
2865
  * ```
2783
2866
  *
2867
+ * @stability stable
2784
2868
  * @category math
2785
2869
  * @since 3.16.0
2786
2870
  */
@@ -2811,6 +2895,7 @@ export const ceil: {
2811
2895
  * BigDecimal.ceil(BigDecimal.fromStringUnsafe("-14.5")) // => BigDecimal.fromBigInt(-14n)
2812
2896
  * ```
2813
2897
  *
2898
+ * @stability stable
2814
2899
  * @category math
2815
2900
  * @since 3.16.0
2816
2901
  */
@@ -2878,6 +2963,7 @@ export const digitAt: {
2878
2963
  * @see {@link truncate} for rounding toward zero
2879
2964
  * @see {@link round} for configurable rounding modes
2880
2965
  *
2966
+ * @stability stable
2881
2967
  * @category math
2882
2968
  * @since 3.16.0
2883
2969
  */
@@ -2902,6 +2988,7 @@ export const floor: {
2902
2988
  * @see {@link truncate} for rounding toward zero
2903
2989
  * @see {@link round} for configurable rounding modes
2904
2990
  *
2991
+ * @stability stable
2905
2992
  * @category math
2906
2993
  * @since 3.16.0
2907
2994
  */
@@ -2926,6 +3013,7 @@ export const floor: {
2926
3013
  * @see {@link truncate} for rounding toward zero
2927
3014
  * @see {@link round} for configurable rounding modes
2928
3015
  *
3016
+ * @stability stable
2929
3017
  * @category math
2930
3018
  * @since 3.16.0
2931
3019
  */