effect 4.0.0-beta.69 → 4.0.0-beta.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Array.d.ts +454 -0
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +152 -0
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +87 -33
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +37 -11
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +71 -14
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +35 -10
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +4 -0
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +4 -0
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts +16 -11
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +16 -11
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts +13 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +8 -0
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +95 -3
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +56 -2
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +312 -0
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +126 -0
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +20 -0
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js +12 -0
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +59 -22
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +29 -10
- package/dist/Chunk.js.map +1 -1
- package/dist/Combiner.d.ts +75 -71
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js +67 -62
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +167 -46
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +108 -28
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +235 -158
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +144 -93
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +21 -79
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js +20 -75
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +4 -4
- package/dist/Context.js +2 -2
- package/dist/Cron.d.ts +42 -16
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +33 -13
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +6 -0
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +132 -70
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js +44 -29
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +227 -14
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +115 -6
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +94 -27
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +33 -8
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +2 -0
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Duration.d.ts +64 -6
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +26 -2
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +907 -603
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +360 -233
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +3 -1
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +3 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +16 -0
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +16 -0
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +52 -40
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +32 -26
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts +190 -153
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +129 -104
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +35 -14
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js +18 -6
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +10 -3
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +4 -3
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +212 -6
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js +139 -2
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +8 -0
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js +4 -0
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts +46 -23
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +27 -11
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +43 -4
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +27 -4
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts +21 -6
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +17 -6
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts +64 -0
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +26 -0
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +53 -21
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js +20 -9
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts +21 -22
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +12 -12
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +67 -75
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js +29 -19
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +51 -13
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +19 -3
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +22 -21
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts +33 -10
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +27 -10
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +50 -9
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +17 -3
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts +4 -0
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +2 -0
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +2 -0
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts +15 -2
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +11 -2
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +104 -22
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +46 -12
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts +61 -80
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +35 -42
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +16 -20
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +16 -20
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts +123 -73
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +95 -53
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +28 -2
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js +22 -2
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +781 -335
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +324 -129
- package/dist/Layer.js.map +1 -1
- package/dist/LogLevel.d.ts +86 -13
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js +30 -4
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts +63 -51
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +61 -51
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +12 -0
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js +1 -0
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +83 -1
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +31 -1
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +89 -12
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +53 -8
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +14 -0
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +4 -0
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +2 -0
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +24 -6
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +22 -6
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts +2 -0
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +69 -30
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js +52 -22
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +6 -0
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +2 -0
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +16 -30
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +6 -12
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +90 -40
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +48 -24
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +121 -111
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +56 -54
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +169 -167
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +135 -135
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +4 -0
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js +2 -0
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +7 -5
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +5 -5
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +8 -0
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +4 -0
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +10 -0
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +8 -0
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +12 -0
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +10 -0
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +30 -16
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +30 -16
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts +520 -352
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +271 -184
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +4 -0
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +2 -0
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +22 -4
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +17 -3
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +16 -0
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +10 -0
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +44 -0
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +28 -0
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +25 -6
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +11 -2
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +10 -6
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +2 -2
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +3 -1
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +24 -3
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +12 -3
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +54 -41
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js +42 -32
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +10 -0
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +6 -0
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +20 -11
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +10 -6
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +45 -24
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +41 -21
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +18 -1
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js +17 -1
- package/dist/References.js.map +1 -1
- package/dist/Request.d.ts +3 -3
- package/dist/Request.js +2 -2
- package/dist/RequestResolver.d.ts +7 -17
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +3 -5
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts +2 -0
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +2 -0
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +188 -6
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +84 -2
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts +14 -11
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +11 -9
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts +27 -3
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +21 -2
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +22 -19
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +14 -12
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +547 -130
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +409 -121
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +123 -65
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +90 -39
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +269 -234
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +245 -215
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +48 -46
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +34 -34
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts +58 -0
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +58 -0
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +198 -96
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +107 -45
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +272 -203
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +249 -187
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts +2 -0
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +2 -0
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +18 -0
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +12 -0
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts +44 -0
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +18 -0
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +9 -3
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +3 -1
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +6 -0
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js +4 -0
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +108 -0
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +54 -0
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +7 -3
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +2 -0
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +416 -16
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +164 -8
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +14 -0
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +6 -0
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +371 -191
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +144 -77
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +7 -1
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +5 -1
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +2 -0
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +2 -0
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Tracer.d.ts +17 -27
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +8 -12
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +23 -9
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js +13 -3
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +287 -144
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +135 -66
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +182 -93
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +68 -35
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +3 -4
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +163 -86
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +57 -30
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +24 -27
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +9 -6
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +2 -0
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +36 -35
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +22 -21
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +77 -114
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +45 -62
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxRef.d.ts +4 -0
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +2 -0
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +66 -27
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +38 -15
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/Types.d.ts +202 -75
- package/dist/Types.d.ts.map +1 -1
- package/dist/UndefinedOr.d.ts +31 -29
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +27 -21
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +28 -0
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +2 -0
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +29 -35
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +11 -13
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +18 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/testing/TestClock.d.ts +17 -17
- package/dist/testing/TestClock.js +1 -1
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts +2 -0
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +43 -55
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +43 -55
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +62 -11
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +58 -11
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts +4 -4
- package/dist/unstable/ai/AnthropicStructuredOutput.js +4 -4
- package/dist/unstable/ai/Chat.d.ts +29 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +15 -1
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +10 -0
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +8 -0
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +32 -46
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +5 -14
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +84 -32
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +73 -28
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +8 -0
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +6 -0
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +9 -5
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +4 -0
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +3 -2
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +62 -35
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +16 -15
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +40 -21
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +10 -0
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +8 -0
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +4 -0
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +30 -5
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +7 -1
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +6 -0
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +4 -0
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +68 -0
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +36 -0
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +12 -0
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +6 -0
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +14 -4
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +4 -0
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +6 -0
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +4 -0
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +123 -12
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +57 -4
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +31 -14
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +23 -10
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +10 -0
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +46 -5
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +10 -0
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +10 -0
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +47 -40
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +25 -20
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/command.d.ts +1 -0
- package/dist/unstable/cli/internal/command.d.ts.map +1 -1
- package/dist/unstable/cli/internal/command.js +10 -2
- package/dist/unstable/cli/internal/command.js.map +1 -1
- package/dist/unstable/cli/internal/completions/descriptor.js +3 -0
- package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
- package/dist/unstable/cli/internal/parser.js +8 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +10 -1
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +2 -0
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +8 -0
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +8 -0
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +4 -0
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +3 -4
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +24 -0
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +12 -0
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +10 -4
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +6 -0
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +4 -0
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +10 -0
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js +8 -0
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +16 -0
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +10 -0
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +16 -0
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +16 -0
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +8 -0
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +8 -0
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +24 -0
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.js +18 -0
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +64 -20
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +8 -0
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +6 -6
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js +4 -3
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +2 -0
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +2 -0
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +13 -2
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +13 -2
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts +8 -8
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +8 -8
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +2 -0
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +2 -0
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +4 -0
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +4 -0
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +2 -0
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js +2 -0
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +3 -2
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +3 -2
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts +34 -2
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +14 -0
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +4 -0
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +2 -0
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts +24 -0
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +18 -0
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +46 -2
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +30 -2
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +24 -17
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js +20 -11
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +16 -0
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +4 -0
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +2 -0
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +20 -0
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +18 -0
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +22 -0
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +18 -0
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +10 -0
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +10 -0
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +4 -0
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts +4 -0
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js +4 -0
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +6 -0
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +8 -0
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +11 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +2 -0
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +2 -0
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +34 -0
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +18 -0
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +4 -0
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +4 -0
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +4 -0
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +60 -0
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +24 -0
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +32 -0
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +22 -0
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +44 -0
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +14 -0
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -0
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +2 -0
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -0
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +6 -0
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +4 -0
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +4 -0
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +2 -0
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +2 -0
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +54 -16
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +26 -1
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +35 -1
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +17 -1
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +17 -3
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +16 -0
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +30 -0
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +28 -0
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts +8 -0
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +6 -0
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +96 -0
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +50 -0
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +12 -0
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +10 -0
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +49 -2
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +35 -2
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +14 -0
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +4 -0
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +64 -0
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +28 -0
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +10 -4
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js +4 -0
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +9 -4
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +5 -4
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +2 -0
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +23 -14
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js +6 -3
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +14 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +6 -0
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts +38 -15
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +4 -0
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +14 -3
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +10 -0
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +17 -11
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +2 -4
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts +2 -0
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +2 -0
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts +2 -0
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +2 -0
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +2 -0
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js +2 -0
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts +2 -0
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +2 -0
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts +4 -0
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +4 -0
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts +8 -9
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +3 -3
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts +8 -0
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +8 -0
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts +3 -2
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +3 -2
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +6 -2
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js +6 -2
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +10 -0
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +8 -0
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -0
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +2 -0
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +2 -0
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +2 -0
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +21 -6
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +10 -0
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +14 -0
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +14 -0
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +6 -3
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +4 -0
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts +6 -0
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +4 -0
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +70 -19
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +10 -0
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +20 -4
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +105 -14
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +53 -8
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +4 -0
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +2 -0
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +8 -0
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +2 -0
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +32 -0
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +12 -0
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +8 -6
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +4 -3
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -0
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +4 -0
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +27 -3
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +15 -3
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +38 -2
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js +12 -2
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +6 -0
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +6 -0
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts +5 -3
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +5 -3
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +43 -12
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +41 -12
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +6 -4
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.js +6 -4
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +8 -4
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +3 -0
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +3 -0
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +42 -34
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +18 -19
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +454 -0
- package/src/BigDecimal.ts +87 -33
- package/src/BigInt.ts +71 -14
- package/src/Boolean.ts +4 -0
- package/src/Brand.ts +16 -11
- package/src/Cache.ts +17 -1
- package/src/Cause.ts +95 -3
- package/src/Channel.ts +326 -0
- package/src/ChannelSchema.ts +24 -0
- package/src/Chunk.ts +59 -22
- package/src/Combiner.ts +75 -71
- package/src/Config.ts +167 -46
- package/src/ConfigProvider.ts +235 -158
- package/src/Console.ts +25 -99
- package/src/Context.ts +4 -4
- package/src/Cron.ts +42 -16
- package/src/Crypto.ts +6 -0
- package/src/Data.ts +132 -70
- package/src/DateTime.ts +227 -14
- package/src/Deferred.ts +94 -27
- package/src/Differ.ts +2 -0
- package/src/Duration.ts +64 -6
- package/src/Effect.ts +909 -605
- package/src/Effectable.ts +3 -1
- package/src/Encoding.ts +16 -0
- package/src/Equal.ts +52 -40
- package/src/Equivalence.ts +190 -153
- package/src/ErrorReporter.ts +35 -14
- package/src/ExecutionPlan.ts +10 -3
- package/src/Exit.ts +212 -6
- package/src/Fiber.ts +8 -0
- package/src/FiberHandle.ts +46 -23
- package/src/FiberMap.ts +43 -4
- package/src/FiberSet.ts +21 -6
- package/src/FileSystem.ts +64 -0
- package/src/Filter.ts +53 -21
- package/src/Formatter.ts +21 -22
- package/src/Function.ts +67 -75
- package/src/Graph.ts +51 -13
- package/src/HKT.ts +22 -21
- package/src/Hash.ts +33 -10
- package/src/HashMap.ts +50 -9
- package/src/HashRing.ts +4 -0
- package/src/HashSet.ts +2 -0
- package/src/Inspectable.ts +15 -2
- package/src/Iterable.ts +104 -22
- package/src/JsonPatch.ts +61 -80
- package/src/JsonPointer.ts +16 -20
- package/src/JsonSchema.ts +123 -73
- package/src/Latch.ts +28 -2
- package/src/Layer.ts +781 -335
- package/src/LogLevel.ts +86 -13
- package/src/Logger.ts +71 -51
- package/src/ManagedRuntime.ts +12 -0
- package/src/Match.ts +83 -1
- package/src/Metric.ts +105 -12
- package/src/MutableHashMap.ts +18 -0
- package/src/MutableHashSet.ts +2 -0
- package/src/MutableList.ts +24 -6
- package/src/MutableRef.ts +2 -0
- package/src/Newtype.ts +69 -30
- package/src/NonEmptyIterable.ts +6 -0
- package/src/Number.ts +16 -30
- package/src/Optic.ts +90 -40
- package/src/Option.ts +121 -111
- package/src/Order.ts +169 -167
- package/src/Ordering.ts +4 -0
- package/src/PartitionedSemaphore.ts +7 -5
- package/src/Path.ts +8 -0
- package/src/Pipeable.ts +10 -0
- package/src/PlatformError.ts +12 -0
- package/src/Pool.ts +30 -16
- package/src/Predicate.ts +520 -352
- package/src/PrimaryKey.ts +4 -0
- package/src/PubSub.ts +23 -5
- package/src/Pull.ts +16 -0
- package/src/Queue.ts +44 -0
- package/src/Random.ts +25 -6
- package/src/RcMap.ts +10 -6
- package/src/RcRef.ts +3 -1
- package/src/Record.ts +24 -3
- package/src/Redactable.ts +54 -41
- package/src/Redacted.ts +10 -0
- package/src/Reducer.ts +20 -11
- package/src/Ref.ts +95 -58
- package/src/References.ts +18 -1
- package/src/Request.ts +3 -3
- package/src/RequestResolver.ts +8 -22
- package/src/Resource.ts +2 -0
- package/src/Result.ts +192 -6
- package/src/Runtime.ts +14 -11
- package/src/Schedule.ts +35 -3
- package/src/Scheduler.ts +22 -19
- package/src/Schema.ts +547 -130
- package/src/SchemaAST.ts +123 -65
- package/src/SchemaGetter.ts +269 -234
- package/src/SchemaIssue.ts +48 -46
- package/src/SchemaParser.ts +58 -0
- package/src/SchemaRepresentation.ts +198 -96
- package/src/SchemaTransformation.ts +272 -203
- package/src/SchemaUtils.ts +2 -0
- package/src/Scope.ts +19 -1
- package/src/ScopedCache.ts +56 -0
- package/src/ScopedRef.ts +9 -3
- package/src/Semaphore.ts +6 -0
- package/src/Sink.ts +108 -0
- package/src/Stdio.ts +7 -3
- package/src/Stream.ts +464 -16
- package/src/String.ts +14 -0
- package/src/Struct.ts +371 -191
- package/src/SubscriptionRef.ts +7 -1
- package/src/SynchronizedRef.ts +2 -0
- package/src/Tracer.ts +17 -27
- package/src/Trie.ts +23 -9
- package/src/Tuple.ts +287 -144
- package/src/TxChunk.ts +182 -93
- package/src/TxDeferred.ts +3 -4
- package/src/TxHashMap.ts +171 -90
- package/src/TxHashSet.ts +36 -35
- package/src/TxPriorityQueue.ts +2 -0
- package/src/TxPubSub.ts +36 -35
- package/src/TxQueue.ts +77 -114
- package/src/TxRef.ts +4 -0
- package/src/TxSemaphore.ts +66 -27
- package/src/Types.ts +202 -75
- package/src/UndefinedOr.ts +31 -29
- package/src/Unify.ts +28 -0
- package/src/Utils.ts +29 -35
- package/src/index.ts +18 -7
- package/src/testing/TestClock.ts +16 -16
- package/src/testing/TestConsole.ts +2 -0
- package/src/testing/TestSchema.ts +43 -55
- package/src/unstable/ai/AiError.ts +62 -11
- package/src/unstable/ai/AnthropicStructuredOutput.ts +4 -4
- package/src/unstable/ai/Chat.ts +29 -1
- package/src/unstable/ai/IdGenerator.ts +10 -0
- package/src/unstable/ai/LanguageModel.ts +32 -46
- package/src/unstable/ai/McpSchema.ts +84 -32
- package/src/unstable/ai/McpServer.ts +8 -0
- package/src/unstable/ai/Model.ts +9 -5
- package/src/unstable/ai/OpenAiStructuredOutput.ts +3 -2
- package/src/unstable/ai/Prompt.ts +62 -35
- package/src/unstable/ai/Response.ts +40 -21
- package/src/unstable/ai/ResponseIdTracker.ts +8 -0
- package/src/unstable/ai/Telemetry.ts +30 -5
- package/src/unstable/ai/Tokenizer.ts +6 -0
- package/src/unstable/ai/Tool.ts +68 -0
- package/src/unstable/ai/Toolkit.ts +12 -0
- package/src/unstable/cli/Argument.ts +14 -4
- package/src/unstable/cli/CliError.ts +6 -0
- package/src/unstable/cli/Command.ts +128 -12
- package/src/unstable/cli/Flag.ts +31 -14
- package/src/unstable/cli/Param.ts +96 -9
- package/src/unstable/cli/Primitive.ts +10 -0
- package/src/unstable/cli/Prompt.ts +47 -40
- package/src/unstable/cli/internal/command.ts +11 -2
- package/src/unstable/cli/internal/completions/descriptor.ts +3 -0
- package/src/unstable/cli/internal/parser.ts +8 -1
- package/src/unstable/cluster/ClusterCron.ts +10 -1
- package/src/unstable/cluster/ClusterSchema.ts +8 -0
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +4 -0
- package/src/unstable/cluster/DeliverAt.ts +3 -4
- package/src/unstable/cluster/Entity.ts +24 -0
- package/src/unstable/cluster/EntityProxy.ts +10 -4
- package/src/unstable/cluster/EntityProxyServer.ts +6 -0
- package/src/unstable/cluster/EntityResource.ts +10 -0
- package/src/unstable/cluster/Envelope.ts +16 -0
- package/src/unstable/cluster/HttpRunner.ts +16 -0
- package/src/unstable/cluster/K8sHttpClient.ts +8 -0
- package/src/unstable/cluster/Message.ts +24 -0
- package/src/unstable/cluster/MessageStorage.ts +44 -10
- package/src/unstable/cluster/Reply.ts +6 -6
- package/src/unstable/cluster/Runner.ts +2 -0
- package/src/unstable/cluster/RunnerHealth.ts +13 -2
- package/src/unstable/cluster/RunnerServer.ts +8 -8
- package/src/unstable/cluster/RunnerStorage.ts +2 -0
- package/src/unstable/cluster/ShardId.ts +4 -0
- package/src/unstable/cluster/Snowflake.ts +2 -0
- package/src/unstable/cluster/TestRunner.ts +3 -2
- package/src/unstable/devtools/DevToolsSchema.ts +34 -2
- package/src/unstable/devtools/DevToolsServer.ts +4 -0
- package/src/unstable/encoding/Msgpack.ts +24 -0
- package/src/unstable/encoding/Ndjson.ts +46 -2
- package/src/unstable/encoding/Sse.ts +24 -17
- package/src/unstable/eventlog/Event.ts +16 -0
- package/src/unstable/eventlog/EventGroup.ts +4 -0
- package/src/unstable/eventlog/EventJournal.ts +20 -0
- package/src/unstable/eventlog/EventLog.ts +22 -0
- package/src/unstable/eventlog/EventLogMessage.ts +10 -0
- package/src/unstable/eventlog/EventLogRemote.ts +4 -0
- package/src/unstable/eventlog/EventLogServer.ts +4 -0
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +6 -0
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +8 -0
- package/src/unstable/eventlog/EventLogSessionAuth.ts +11 -1
- package/src/unstable/eventlog/SqlEventJournal.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +2 -0
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +2 -0
- package/src/unstable/http/Cookies.ts +34 -0
- package/src/unstable/http/Etag.ts +4 -0
- package/src/unstable/http/FetchHttpClient.ts +4 -0
- package/src/unstable/http/Headers.ts +88 -0
- package/src/unstable/http/HttpBody.ts +32 -0
- package/src/unstable/http/HttpClient.ts +44 -0
- package/src/unstable/http/HttpClientRequest.ts +2 -0
- package/src/unstable/http/HttpClientResponse.ts +6 -0
- package/src/unstable/http/HttpEffect.ts +4 -0
- package/src/unstable/http/HttpPlatform.ts +2 -0
- package/src/unstable/http/HttpRouter.ts +54 -16
- package/src/unstable/http/HttpServer.ts +35 -1
- package/src/unstable/http/HttpServerError.ts +17 -3
- package/src/unstable/http/HttpServerRequest.ts +30 -0
- package/src/unstable/http/HttpServerRespondable.ts +8 -0
- package/src/unstable/http/HttpServerResponse.ts +96 -0
- package/src/unstable/http/HttpTraceContext.ts +12 -0
- package/src/unstable/http/Multipart.ts +49 -2
- package/src/unstable/http/Template.ts +14 -0
- package/src/unstable/http/UrlParams.ts +64 -0
- package/src/unstable/httpapi/HttpApi.ts +10 -4
- package/src/unstable/httpapi/HttpApiBuilder.ts +9 -4
- package/src/unstable/httpapi/HttpApiEndpoint.ts +2 -0
- package/src/unstable/httpapi/HttpApiGroup.ts +23 -14
- package/src/unstable/httpapi/HttpApiMiddleware.ts +14 -0
- package/src/unstable/httpapi/HttpApiScalar.ts +38 -15
- package/src/unstable/httpapi/HttpApiSchema.ts +14 -3
- package/src/unstable/httpapi/HttpApiSecurity.ts +17 -11
- package/src/unstable/httpapi/HttpApiSwagger.ts +2 -4
- package/src/unstable/httpapi/HttpApiTest.ts +2 -0
- package/src/unstable/httpapi/OpenApi.ts +2 -0
- package/src/unstable/observability/Otlp.ts +2 -0
- package/src/unstable/observability/OtlpExporter.ts +2 -0
- package/src/unstable/observability/OtlpLogger.ts +4 -0
- package/src/unstable/observability/OtlpMetrics.ts +8 -9
- package/src/unstable/observability/OtlpResource.ts +8 -0
- package/src/unstable/observability/OtlpTracer.ts +3 -2
- package/src/unstable/observability/PrometheusMetrics.ts +6 -2
- package/src/unstable/persistence/KeyValueStore.ts +10 -0
- package/src/unstable/persistence/Persistable.ts +2 -0
- package/src/unstable/persistence/PersistedCache.ts +2 -0
- package/src/unstable/persistence/PersistedQueue.ts +21 -6
- package/src/unstable/persistence/Persistence.ts +14 -0
- package/src/unstable/persistence/RateLimiter.ts +6 -3
- package/src/unstable/persistence/Redis.ts +6 -0
- package/src/unstable/process/ChildProcess.ts +70 -19
- package/src/unstable/process/ChildProcessSpawner.ts +20 -4
- package/src/unstable/reactivity/Atom.ts +119 -14
- package/src/unstable/reactivity/AtomHttpApi.ts +4 -0
- package/src/unstable/reactivity/AtomRef.ts +8 -0
- package/src/unstable/reactivity/AtomRegistry.ts +34 -0
- package/src/unstable/reactivity/AtomRpc.ts +8 -6
- package/src/unstable/reactivity/Hydration.ts +6 -0
- package/src/unstable/reactivity/Reactivity.ts +27 -3
- package/src/unstable/rpc/Rpc.ts +38 -2
- package/src/unstable/rpc/RpcSerialization.ts +6 -0
- package/src/unstable/rpc/RpcServer.ts +5 -3
- package/src/unstable/schema/Model.ts +43 -12
- package/src/unstable/sql/SqlClient.ts +1 -1
- package/src/unstable/sql/SqlResolver.ts +6 -4
- package/src/unstable/sql/Statement.ts +8 -4
- package/src/unstable/workflow/DurableClock.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +3 -0
- package/src/unstable/workflow/Workflow.ts +42 -34
package/dist/Exit.js
CHANGED
|
@@ -4,9 +4,13 @@ const TypeId = core.ExitTypeId;
|
|
|
4
4
|
/**
|
|
5
5
|
* Tests whether an unknown value is an Exit.
|
|
6
6
|
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
7
9
|
* - Use to validate unknown values at system boundaries
|
|
8
10
|
* - Works as a type guard, narrowing to `Exit<unknown, unknown>`
|
|
9
11
|
*
|
|
12
|
+
* **Details**
|
|
13
|
+
*
|
|
10
14
|
* Does not inspect the contents of the Exit. Returns `true` for both Success
|
|
11
15
|
* and Failure exits.
|
|
12
16
|
*
|
|
@@ -30,9 +34,13 @@ export const isExit = core.isExit;
|
|
|
30
34
|
/**
|
|
31
35
|
* Creates a successful Exit containing the given value.
|
|
32
36
|
*
|
|
37
|
+
* **When to use**
|
|
38
|
+
*
|
|
33
39
|
* - Use to wrap a known success value into an Exit
|
|
34
40
|
* - Use when constructing test data or returning explicit results
|
|
35
41
|
*
|
|
42
|
+
* **Details**
|
|
43
|
+
*
|
|
36
44
|
* Returns a `Success<A>` with the provided value. Does not perform any
|
|
37
45
|
* computation.
|
|
38
46
|
*
|
|
@@ -55,9 +63,13 @@ export const succeed = core.exitSucceed;
|
|
|
55
63
|
/**
|
|
56
64
|
* Creates a failed Exit from a Cause.
|
|
57
65
|
*
|
|
66
|
+
* **When to use**
|
|
67
|
+
*
|
|
58
68
|
* - Use when you already have a `Cause<E>` and want to wrap it in an Exit
|
|
59
69
|
* - Use for advanced error handling where you need full control over the Cause structure
|
|
60
70
|
*
|
|
71
|
+
* **Details**
|
|
72
|
+
*
|
|
61
73
|
* Returns a `Failure<never, E>`. If you only have an error value, use
|
|
62
74
|
* {@link fail} instead.
|
|
63
75
|
*
|
|
@@ -81,7 +93,12 @@ export const failCause = core.exitFailCause;
|
|
|
81
93
|
/**
|
|
82
94
|
* Creates a failed Exit from a typed error value.
|
|
83
95
|
*
|
|
96
|
+
* **When to use**
|
|
97
|
+
*
|
|
84
98
|
* - Use for expected, recoverable failures
|
|
99
|
+
*
|
|
100
|
+
* **Details**
|
|
101
|
+
*
|
|
85
102
|
* - The error is wrapped in a `Cause.Fail` internally
|
|
86
103
|
*
|
|
87
104
|
* Returns a `Failure<never, E>`.
|
|
@@ -106,7 +123,12 @@ export const fail = core.exitFail;
|
|
|
106
123
|
/**
|
|
107
124
|
* Creates a failed Exit from a defect (unexpected error).
|
|
108
125
|
*
|
|
126
|
+
* **When to use**
|
|
127
|
+
*
|
|
109
128
|
* - Use for unexpected, unrecoverable errors that should not appear in the typed error channel
|
|
129
|
+
*
|
|
130
|
+
* **Details**
|
|
131
|
+
*
|
|
110
132
|
* - The defect is wrapped in a `Cause.Die` internally
|
|
111
133
|
*
|
|
112
134
|
* Returns a `Failure<never>` with `E = never`, since defects do not appear in
|
|
@@ -131,7 +153,12 @@ export const die = core.exitDie;
|
|
|
131
153
|
/**
|
|
132
154
|
* Creates a failed Exit representing fiber interruption.
|
|
133
155
|
*
|
|
156
|
+
* **When to use**
|
|
157
|
+
*
|
|
134
158
|
* - Use to signal that a fiber was interrupted
|
|
159
|
+
*
|
|
160
|
+
* **Details**
|
|
161
|
+
*
|
|
135
162
|
* - Optionally pass a fiber ID to identify which fiber was interrupted
|
|
136
163
|
*
|
|
137
164
|
* Returns a `Failure<never>` with an `Interrupt` cause.
|
|
@@ -157,9 +184,13 @@ export {
|
|
|
157
184
|
/**
|
|
158
185
|
* A pre-allocated successful Exit with a `void` value.
|
|
159
186
|
*
|
|
187
|
+
* **When to use**
|
|
188
|
+
*
|
|
160
189
|
* - Use when you need a success Exit but do not care about the value
|
|
161
190
|
* - Avoids allocating a new Exit for a common case
|
|
162
191
|
*
|
|
192
|
+
* **Details**
|
|
193
|
+
*
|
|
163
194
|
* Equivalent to `Exit.succeed(undefined)` but shared as a single instance.
|
|
164
195
|
*
|
|
165
196
|
* **Example** (Using the void Exit)
|
|
@@ -181,6 +212,8 @@ void_ as void };
|
|
|
181
212
|
/**
|
|
182
213
|
* Tests whether an Exit is a Success.
|
|
183
214
|
*
|
|
215
|
+
* **When to use**
|
|
216
|
+
*
|
|
184
217
|
* - Use as a type guard to narrow `Exit<A, E>` to `Success<A, E>`
|
|
185
218
|
* - After narrowing, the `value` property becomes accessible
|
|
186
219
|
*
|
|
@@ -206,6 +239,8 @@ export const isSuccess = effect.exitIsSuccess;
|
|
|
206
239
|
/**
|
|
207
240
|
* Tests whether an Exit is a Failure.
|
|
208
241
|
*
|
|
242
|
+
* **When to use**
|
|
243
|
+
*
|
|
209
244
|
* - Use as a type guard to narrow `Exit<A, E>` to `Failure<A, E>`
|
|
210
245
|
* - After narrowing, the `cause` property becomes accessible
|
|
211
246
|
*
|
|
@@ -231,7 +266,12 @@ export const isFailure = effect.exitIsFailure;
|
|
|
231
266
|
/**
|
|
232
267
|
* Tests whether a failed Exit contains typed errors (Fail reasons).
|
|
233
268
|
*
|
|
269
|
+
* **When to use**
|
|
270
|
+
*
|
|
234
271
|
* - Use to distinguish typed failures from defects or interruptions
|
|
272
|
+
*
|
|
273
|
+
* **Details**
|
|
274
|
+
*
|
|
235
275
|
* - Returns `false` for successful exits
|
|
236
276
|
*
|
|
237
277
|
* Only checks for `Fail` reasons in the Cause. A Cause with only `Die` or
|
|
@@ -257,7 +297,12 @@ export const hasFails = effect.exitHasFails;
|
|
|
257
297
|
/**
|
|
258
298
|
* Tests whether a failed Exit contains defects (Die reasons).
|
|
259
299
|
*
|
|
300
|
+
* **When to use**
|
|
301
|
+
*
|
|
260
302
|
* - Use to check for unexpected errors
|
|
303
|
+
*
|
|
304
|
+
* **Details**
|
|
305
|
+
*
|
|
261
306
|
* - Returns `false` for successful exits
|
|
262
307
|
*
|
|
263
308
|
* Only checks for `Die` reasons in the Cause. A Cause with only `Fail` or
|
|
@@ -283,7 +328,12 @@ export const hasDies = effect.exitHasDies;
|
|
|
283
328
|
/**
|
|
284
329
|
* Tests whether a failed Exit contains interruptions (Interrupt reasons).
|
|
285
330
|
*
|
|
331
|
+
* **When to use**
|
|
332
|
+
*
|
|
286
333
|
* - Use to check if a fiber was interrupted
|
|
334
|
+
*
|
|
335
|
+
* **Details**
|
|
336
|
+
*
|
|
287
337
|
* - Returns `false` for successful exits
|
|
288
338
|
*
|
|
289
339
|
* Only checks for `Interrupt` reasons in the Cause. A Cause with only `Fail`
|
|
@@ -309,7 +359,12 @@ export const hasInterrupts = effect.exitHasInterrupts;
|
|
|
309
359
|
/**
|
|
310
360
|
* Extracts the Success variant from an Exit for use in filter pipelines.
|
|
311
361
|
*
|
|
362
|
+
* **When to use**
|
|
363
|
+
*
|
|
312
364
|
* - Use with Filter-based composition
|
|
365
|
+
*
|
|
366
|
+
* **Details**
|
|
367
|
+
*
|
|
313
368
|
* - Returns the `Success<A>` if the Exit succeeded, or a `Filter.fail` wrapping the Failure otherwise
|
|
314
369
|
*
|
|
315
370
|
* **Example** (Filtering for success)
|
|
@@ -333,7 +388,12 @@ export const filterSuccess = effect.exitFilterSuccess;
|
|
|
333
388
|
/**
|
|
334
389
|
* Extracts the success value from an Exit for use in filter pipelines.
|
|
335
390
|
*
|
|
391
|
+
* **When to use**
|
|
392
|
+
*
|
|
336
393
|
* - Use with Filter-based composition when you want the raw value, not the Success wrapper
|
|
394
|
+
*
|
|
395
|
+
* **Details**
|
|
396
|
+
*
|
|
337
397
|
* - Returns the value `A` if the Exit succeeded, or a `Filter.fail` wrapping the Failure otherwise
|
|
338
398
|
*
|
|
339
399
|
* **Example** (Filtering for the value)
|
|
@@ -357,7 +417,12 @@ export const filterValue = effect.exitFilterValue;
|
|
|
357
417
|
/**
|
|
358
418
|
* Extracts the Failure variant from an Exit for use in filter pipelines.
|
|
359
419
|
*
|
|
420
|
+
* **When to use**
|
|
421
|
+
*
|
|
360
422
|
* - Use with Filter-based composition
|
|
423
|
+
*
|
|
424
|
+
* **Details**
|
|
425
|
+
*
|
|
361
426
|
* - Returns the `Failure<never, E>` if the Exit failed, or a `Filter.fail` wrapping the Success otherwise
|
|
362
427
|
*
|
|
363
428
|
* **Example** (Filtering for failure)
|
|
@@ -381,7 +446,12 @@ export const filterFailure = effect.exitFilterFailure;
|
|
|
381
446
|
/**
|
|
382
447
|
* Extracts the Cause from a failed Exit for use in filter pipelines.
|
|
383
448
|
*
|
|
449
|
+
* **When to use**
|
|
450
|
+
*
|
|
384
451
|
* - Use with Filter-based composition when you want the raw Cause, not the Failure wrapper
|
|
452
|
+
*
|
|
453
|
+
* **Details**
|
|
454
|
+
*
|
|
385
455
|
* - Returns the `Cause<E>` if the Exit failed, or a `Filter.fail` wrapping the Success otherwise
|
|
386
456
|
*
|
|
387
457
|
* **Example** (Filtering for the cause)
|
|
@@ -406,9 +476,16 @@ export const filterCause = effect.exitFilterCause;
|
|
|
406
476
|
* Extracts the first typed error value from a failed Exit for use in filter
|
|
407
477
|
* pipelines.
|
|
408
478
|
*
|
|
479
|
+
* **When to use**
|
|
480
|
+
*
|
|
409
481
|
* - Use when you need just the first `E` from the Cause
|
|
482
|
+
*
|
|
483
|
+
* **Details**
|
|
484
|
+
*
|
|
410
485
|
* - Returns the error `E` if one exists, or `Filter.fail` wrapping the original Exit if the Exit has no typed errors
|
|
411
486
|
*
|
|
487
|
+
* **Gotchas**
|
|
488
|
+
*
|
|
412
489
|
* Only finds the first Fail reason. If the Cause has multiple errors, the rest
|
|
413
490
|
* are ignored.
|
|
414
491
|
*
|
|
@@ -436,9 +513,16 @@ export const findError = effect.exitFindError;
|
|
|
436
513
|
/**
|
|
437
514
|
* Extracts the first defect from a failed Exit for use in filter pipelines.
|
|
438
515
|
*
|
|
516
|
+
* **When to use**
|
|
517
|
+
*
|
|
439
518
|
* - Use when you need to inspect unexpected errors
|
|
519
|
+
*
|
|
520
|
+
* **Details**
|
|
521
|
+
*
|
|
440
522
|
* - Returns the defect value if one exists, or `Filter.fail` wrapping the original Exit if the Exit has no defects
|
|
441
523
|
*
|
|
524
|
+
* **Gotchas**
|
|
525
|
+
*
|
|
442
526
|
* Only finds the first Die reason. If the Cause has multiple defects, the rest
|
|
443
527
|
* are ignored.
|
|
444
528
|
*
|
|
@@ -466,7 +550,12 @@ export const findDefect = effect.exitFindDefect;
|
|
|
466
550
|
/**
|
|
467
551
|
* Pattern matches on an Exit, handling both success and failure cases.
|
|
468
552
|
*
|
|
553
|
+
* **When to use**
|
|
554
|
+
*
|
|
469
555
|
* - Use for exhaustive handling of both outcomes
|
|
556
|
+
*
|
|
557
|
+
* **Details**
|
|
558
|
+
*
|
|
470
559
|
* - Calls `onSuccess` with the value if the Exit is a Success
|
|
471
560
|
* - Calls `onFailure` with the Cause if the Exit is a Failure
|
|
472
561
|
*
|
|
@@ -495,7 +584,12 @@ export const match = effect.exitMatch;
|
|
|
495
584
|
/**
|
|
496
585
|
* Transforms the success value of an Exit using the given function.
|
|
497
586
|
*
|
|
587
|
+
* **When to use**
|
|
588
|
+
*
|
|
498
589
|
* - Use to apply a transformation to the value inside a successful Exit
|
|
590
|
+
*
|
|
591
|
+
* **Details**
|
|
592
|
+
*
|
|
499
593
|
* - Has no effect on failures, which pass through unchanged
|
|
500
594
|
*
|
|
501
595
|
* Allocates a new Exit if successful. Does not mutate the input.
|
|
@@ -521,13 +615,22 @@ export const map = effect.exitMap;
|
|
|
521
615
|
/**
|
|
522
616
|
* Transforms the typed error of a failed Exit using the given function.
|
|
523
617
|
*
|
|
618
|
+
* **When to use**
|
|
619
|
+
*
|
|
524
620
|
* - Use to remap typed errors while preserving the Exit structure
|
|
621
|
+
*
|
|
622
|
+
* **Details**
|
|
623
|
+
*
|
|
525
624
|
* - Has no effect on successes, which pass through unchanged
|
|
526
|
-
* - Only transforms typed errors (Fail reasons). If the Cause contains only defects or interruptions, the failure passes through unchanged.
|
|
527
625
|
*
|
|
528
626
|
* Allocates a new Exit if the error is transformed. Does not mutate the input.
|
|
529
627
|
* Supports both curried and direct call styles.
|
|
530
628
|
*
|
|
629
|
+
* **Gotchas**
|
|
630
|
+
*
|
|
631
|
+
* Only transforms typed errors (Fail reasons). If the Cause contains only
|
|
632
|
+
* defects or interruptions, the failure passes through unchanged.
|
|
633
|
+
*
|
|
531
634
|
* **Example** (Mapping over an error)
|
|
532
635
|
*
|
|
533
636
|
* ```ts
|
|
@@ -550,14 +653,23 @@ export const mapError = effect.exitMapError;
|
|
|
550
653
|
/**
|
|
551
654
|
* Transforms both the success value and typed error of an Exit.
|
|
552
655
|
*
|
|
656
|
+
* **When to use**
|
|
657
|
+
*
|
|
553
658
|
* - Use when you need to remap both channels in one step
|
|
659
|
+
*
|
|
660
|
+
* **Details**
|
|
661
|
+
*
|
|
554
662
|
* - `onSuccess` transforms the value if the Exit is a Success
|
|
555
663
|
* - `onFailure` transforms the typed error if the Exit is a Failure with a Fail reason
|
|
556
|
-
* - If the Cause contains only defects or interruptions, the failure passes through unchanged
|
|
557
664
|
*
|
|
558
665
|
* Allocates a new Exit. Does not mutate the input.
|
|
559
666
|
* Supports both curried and direct call styles.
|
|
560
667
|
*
|
|
668
|
+
* **Gotchas**
|
|
669
|
+
*
|
|
670
|
+
* If the Cause contains only defects or interruptions, the failure passes
|
|
671
|
+
* through unchanged.
|
|
672
|
+
*
|
|
561
673
|
* **Example** (Mapping both channels)
|
|
562
674
|
*
|
|
563
675
|
* ```ts
|
|
@@ -583,7 +695,12 @@ export const mapBoth = effect.exitMapBoth;
|
|
|
583
695
|
/**
|
|
584
696
|
* Discards the success value of an Exit, replacing it with `void`.
|
|
585
697
|
*
|
|
698
|
+
* **When to use**
|
|
699
|
+
*
|
|
586
700
|
* - Use when you only care about whether the computation succeeded or failed, not the value
|
|
701
|
+
*
|
|
702
|
+
* **Details**
|
|
703
|
+
*
|
|
587
704
|
* - Failures pass through unchanged
|
|
588
705
|
*
|
|
589
706
|
* Allocates a new Exit if successful. Does not mutate the input.
|
|
@@ -608,7 +725,12 @@ export const asVoid = effect.exitAsVoid;
|
|
|
608
725
|
/**
|
|
609
726
|
* Combines multiple Exit values into a single `Exit<void, E>`.
|
|
610
727
|
*
|
|
728
|
+
* **When to use**
|
|
729
|
+
*
|
|
611
730
|
* - Use to validate that all exits in a collection succeeded
|
|
731
|
+
*
|
|
732
|
+
* **Details**
|
|
733
|
+
*
|
|
612
734
|
* - If all exits are successful, returns a void success
|
|
613
735
|
* - If any exit is a failure, returns a single failure with all error causes combined
|
|
614
736
|
*
|
|
@@ -636,7 +758,12 @@ export const asVoidAll = effect.exitAsVoidAll;
|
|
|
636
758
|
/**
|
|
637
759
|
* Returns the success value of an Exit as an Option.
|
|
638
760
|
*
|
|
761
|
+
* **When to use**
|
|
762
|
+
*
|
|
639
763
|
* - Use when you want to optionally extract the value without pattern matching
|
|
764
|
+
*
|
|
765
|
+
* **Details**
|
|
766
|
+
*
|
|
640
767
|
* - Returns `Option.some(value)` for a Success, `Option.none()` for a Failure
|
|
641
768
|
*
|
|
642
769
|
* **Example** (Getting the success value)
|
|
@@ -658,7 +785,12 @@ export const getSuccess = effect.exitGetSuccess;
|
|
|
658
785
|
/**
|
|
659
786
|
* Returns the Cause of a failed Exit as an Option.
|
|
660
787
|
*
|
|
788
|
+
* **When to use**
|
|
789
|
+
*
|
|
661
790
|
* - Use when you want to optionally inspect the failure cause
|
|
791
|
+
*
|
|
792
|
+
* **Details**
|
|
793
|
+
*
|
|
662
794
|
* - Returns `Option.some(cause)` for a Failure, `Option.none()` for a Success
|
|
663
795
|
*
|
|
664
796
|
* **Example** (Getting the failure cause)
|
|
@@ -680,7 +812,12 @@ export const getCause = effect.exitGetCause;
|
|
|
680
812
|
/**
|
|
681
813
|
* Returns the first typed error from a failed Exit as an Option.
|
|
682
814
|
*
|
|
815
|
+
* **When to use**
|
|
816
|
+
*
|
|
683
817
|
* - Use when you want to optionally extract a typed error without dealing with the full Cause
|
|
818
|
+
*
|
|
819
|
+
* **Details**
|
|
820
|
+
*
|
|
684
821
|
* - Returns `Option.some(error)` if the Cause contains a Fail reason, `Option.none()` otherwise
|
|
685
822
|
* - Returns `Option.none()` for successes, defect-only failures, and interrupt-only failures
|
|
686
823
|
*
|
package/dist/Exit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Exit.js","names":["core","effect","TypeId","ExitTypeId","isExit","succeed","exitSucceed","failCause","exitFailCause","fail","exitFail","die","exitDie","interrupt","exitInterrupt","void_","exitVoid","void","isSuccess","exitIsSuccess","isFailure","exitIsFailure","hasFails","exitHasFails","hasDies","exitHasDies","hasInterrupts","exitHasInterrupts","filterSuccess","exitFilterSuccess","filterValue","exitFilterValue","filterFailure","exitFilterFailure","filterCause","exitFilterCause","findError","exitFindError","findDefect","exitFindDefect","match","exitMatch","map","exitMap","mapError","exitMapError","mapBoth","exitMapBoth","asVoid","exitAsVoid","asVoidAll","exitAsVoidAll","getSuccess","exitGetSuccess","getCause","exitGetCause","findErrorOption","exitFindErrorOption"],"sources":["../src/Exit.ts"],"sourcesContent":[null],"mappings":"AA4DA,OAAO,KAAKA,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,MAAM,MAAM,sBAAsB;AAK9C,MAAMC,MAAM,GAAGF,IAAI,CAACG,UAAU;
|
|
1
|
+
{"version":3,"file":"Exit.js","names":["core","effect","TypeId","ExitTypeId","isExit","succeed","exitSucceed","failCause","exitFailCause","fail","exitFail","die","exitDie","interrupt","exitInterrupt","void_","exitVoid","void","isSuccess","exitIsSuccess","isFailure","exitIsFailure","hasFails","exitHasFails","hasDies","exitHasDies","hasInterrupts","exitHasInterrupts","filterSuccess","exitFilterSuccess","filterValue","exitFilterValue","filterFailure","exitFilterFailure","filterCause","exitFilterCause","findError","exitFindError","findDefect","exitFindDefect","match","exitMatch","map","exitMap","mapError","exitMapError","mapBoth","exitMapBoth","asVoid","exitAsVoid","asVoidAll","exitAsVoidAll","getSuccess","exitGetSuccess","getCause","exitGetCause","findErrorOption","exitFindErrorOption"],"sources":["../src/Exit.ts"],"sourcesContent":[null],"mappings":"AA4DA,OAAO,KAAKA,IAAI,MAAM,oBAAoB;AAC1C,OAAO,KAAKC,MAAM,MAAM,sBAA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OAAO,MAAMC,UAAU,GAA0CnD,MAAM,CAACoD,cAAc;AAEtF;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,OAAO,MAAMC,QAAQ,GAAuDrD,MAAM,CAACsD,YAAY;AAE/F;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,OAAO,MAAMC,eAAe,GAA0CvD,MAAM,CAACwD,mBAAmB","ignoreList":[]}
|
package/dist/Fiber.d.ts
CHANGED
|
@@ -243,6 +243,8 @@ export declare const join: <A, E>(self: Fiber<A, E>) => Effect<A, E>;
|
|
|
243
243
|
/**
|
|
244
244
|
* Waits for all fibers to succeed and returns their values in input order.
|
|
245
245
|
*
|
|
246
|
+
* **Details**
|
|
247
|
+
*
|
|
246
248
|
* If any fiber fails, the returned `Effect` fails with that fiber's cause and
|
|
247
249
|
* stops waiting for additional results. This does not interrupt the remaining
|
|
248
250
|
* fibers.
|
|
@@ -579,6 +581,8 @@ export declare const getCurrent: () => Fiber<any, any> | undefined;
|
|
|
579
581
|
/**
|
|
580
582
|
* Links a fiber to a `Scope` and returns the same fiber.
|
|
581
583
|
*
|
|
584
|
+
* **Details**
|
|
585
|
+
*
|
|
582
586
|
* When the scope is closed, the fiber is interrupted. If the scope is already
|
|
583
587
|
* closed, the fiber is interrupted immediately.
|
|
584
588
|
*
|
|
@@ -589,6 +593,8 @@ export declare const runIn: {
|
|
|
589
593
|
/**
|
|
590
594
|
* Links a fiber to a `Scope` and returns the same fiber.
|
|
591
595
|
*
|
|
596
|
+
* **Details**
|
|
597
|
+
*
|
|
592
598
|
* When the scope is closed, the fiber is interrupted. If the scope is already
|
|
593
599
|
* closed, the fiber is interrupted immediately.
|
|
594
600
|
*
|
|
@@ -599,6 +605,8 @@ export declare const runIn: {
|
|
|
599
605
|
/**
|
|
600
606
|
* Links a fiber to a `Scope` and returns the same fiber.
|
|
601
607
|
*
|
|
608
|
+
* **Details**
|
|
609
|
+
*
|
|
602
610
|
* When the scope is closed, the fiber is interrupted. If the scope is already
|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AAG,MAAM,CAAC,IAAI,CAAC,CAAA;CACnD,CAAA;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,OAAO,GAClB,GAAG,OAAO,KACT,CAAC,IAAI,KAAK,CAAC,OAAO,EAAE,OAAO,CAAuC,CAAA;AAErE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,SAAkC,CAAA;AAEnF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,KAAK,EAAE;IAClB;;;;;;;;;;OAUG;IACH,CAAC,KAAK,EAAE,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACxD;;;;;;;;;;OAUG;IACH,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;CACjC,CAAA"}
|
package/dist/Fiber.js
CHANGED
|
@@ -67,6 +67,8 @@ export const join = effect.fiberJoin;
|
|
|
67
67
|
/**
|
|
68
68
|
* Waits for all fibers to succeed and returns their values in input order.
|
|
69
69
|
*
|
|
70
|
+
* **Details**
|
|
71
|
+
*
|
|
70
72
|
* If any fiber fails, the returned `Effect` fails with that fiber's cause and
|
|
71
73
|
* stops waiting for additional results. This does not interrupt the remaining
|
|
72
74
|
* fibers.
|
|
@@ -267,6 +269,8 @@ export const getCurrent = effect.getCurrentFiber;
|
|
|
267
269
|
/**
|
|
268
270
|
* Links a fiber to a `Scope` and returns the same fiber.
|
|
269
271
|
*
|
|
272
|
+
* **Details**
|
|
273
|
+
*
|
|
270
274
|
* When the scope is closed, the fiber is interrupted. If the scope is already
|
|
271
275
|
* closed, the fiber is interrupted immediately.
|
|
272
276
|
*
|
package/dist/Fiber.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fiber.js","names":["effect","version","hasProperty","TypeId","await_","fiberAwait","await","awaitAll","fiberAwaitAll","join","fiberJoin","joinAll","fiberJoinAll","interrupt","fiberInterrupt","interruptAs","fiberInterruptAs","interruptAll","fiberInterruptAll","interruptAllAs","fiberInterruptAllAs","isFiber","u","FiberTypeId","getCurrent","getCurrentFiber","runIn","fiberRunIn"],"sources":["../src/Fiber.ts"],"sourcesContent":[null],"mappings":"AA+EA,OAAO,KAAKA,MAAM,MAAM,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,uBAAuB;AAG/C,SAASC,WAAW,QAAQ,gBAAgB;AAO5C,MAAMC,MAAM,GAAG,iBAAiBF,OAAO,EAAE;AAuGzC,MAAMG,MAAM,GAAoDJ,MAAM,CAACK,UAAU;AACjF;AACE;;;;;;;;;;;;;;;;;;AAkBAD,MAAM,IAAIE,KAAK;AAEjB;;;;;;;;;;;;;;;;;;;;AAoBA,OAAO,MAAMC,QAAQ,GASjBP,MAAM,CAACQ,aAAa;AAExB;;;;;;;;;;;;;;;;;;;AAmBA,OAAO,MAAMC,IAAI,GAA8CT,MAAM,CAACU,SAAS;AAE/E
|
|
1
|
+
{"version":3,"file":"Fiber.js","names":["effect","version","hasProperty","TypeId","await_","fiberAwait","await","awaitAll","fiberAwaitAll","join","fiberJoin","joinAll","fiberJoinAll","interrupt","fiberInterrupt","interruptAs","fiberInterruptAs","interruptAll","fiberInterruptAll","interruptAllAs","fiberInterruptAllAs","isFiber","u","FiberTypeId","getCurrent","getCurrentFiber","runIn","fiberRunIn"],"sources":["../src/Fiber.ts"],"sourcesContent":[null],"mappings":"AA+EA,OAAO,KAAKA,MAAM,MAAM,sBAAsB;AAC9C,SAASC,OAAO,QAAQ,uBAAuB;AAG/C,SAASC,WAAW,QAAQ,gBAAgB;AAO5C,MAAMC,M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TypeId = "~effect/FiberHandle";
|
|
10
10
|
/**
|
|
11
|
-
* Scoped handle that manages at most one fiber
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* fibers are removed from the handle when they complete.
|
|
11
|
+
* Scoped handle that manages at most one fiber, interrupts the current fiber
|
|
12
|
+
* when the handle's scope closes, and removes managed fibers from the handle
|
|
13
|
+
* when they complete.
|
|
15
14
|
*
|
|
16
15
|
* **Example** (Managing a single fiber)
|
|
17
16
|
*
|
|
@@ -43,9 +42,8 @@ export interface FiberHandle<out A = unknown, out E = unknown> extends Pipeable,
|
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
44
|
/**
|
|
46
|
-
* Returns `true` if a value is a `FiberHandle
|
|
47
|
-
*
|
|
48
|
-
* This is a type guard that checks for the `FiberHandle` runtime marker.
|
|
45
|
+
* Returns `true` if a value is a `FiberHandle` by checking for the
|
|
46
|
+
* `FiberHandle` runtime marker.
|
|
49
47
|
*
|
|
50
48
|
* **Example** (Checking fiber handles)
|
|
51
49
|
*
|
|
@@ -65,11 +63,14 @@ export interface FiberHandle<out A = unknown, out E = unknown> extends Pipeable,
|
|
|
65
63
|
*/
|
|
66
64
|
export declare const isFiberHandle: (u: unknown) => u is FiberHandle;
|
|
67
65
|
/**
|
|
68
|
-
*
|
|
69
|
-
* When the associated Scope is closed, the contained fiber will be interrupted.
|
|
66
|
+
* Creates a scoped `FiberHandle` that can store a single fiber.
|
|
70
67
|
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
68
|
+
* **Details**
|
|
69
|
+
*
|
|
70
|
+
* When the associated `Scope` is closed, the contained fiber will be
|
|
71
|
+
* interrupted. You can add a fiber to the handle using `FiberHandle.run`, and
|
|
72
|
+
* the fiber will be automatically removed from the `FiberHandle` when it
|
|
73
|
+
* completes.
|
|
73
74
|
*
|
|
74
75
|
* **Example** (Creating a scoped fiber handle)
|
|
75
76
|
*
|
|
@@ -97,6 +98,8 @@ export declare const make: <A = unknown, E = unknown>() => Effect.Effect<FiberHa
|
|
|
97
98
|
/**
|
|
98
99
|
* Creates a scoped run function that forks effects into a new `FiberHandle`.
|
|
99
100
|
*
|
|
101
|
+
* **Details**
|
|
102
|
+
*
|
|
100
103
|
* Each call returns the forked fiber, stores it in the handle, and interrupts
|
|
101
104
|
* the previous fiber unless `onlyIfMissing` is set. The managed fiber is
|
|
102
105
|
* interrupted when the handle's scope closes.
|
|
@@ -132,6 +135,8 @@ export declare const makeRuntime: <R, E = unknown, A = unknown>() => Effect.Effe
|
|
|
132
135
|
* Creates a scoped run function that forks effects into a new `FiberHandle`
|
|
133
136
|
* and returns a `Promise` for each effect result.
|
|
134
137
|
*
|
|
138
|
+
* **Details**
|
|
139
|
+
*
|
|
135
140
|
* Each call stores the fiber in the handle and interrupts the previous fiber
|
|
136
141
|
* unless `onlyIfMissing` is set. The returned Promise resolves with the
|
|
137
142
|
* effect's success value or rejects with the squashed failure cause.
|
|
@@ -246,11 +251,13 @@ export declare const setUnsafe: {
|
|
|
246
251
|
}): void;
|
|
247
252
|
};
|
|
248
253
|
/**
|
|
249
|
-
*
|
|
250
|
-
*
|
|
254
|
+
* Sets the fiber in the `FiberHandle`.
|
|
255
|
+
*
|
|
256
|
+
* **Details**
|
|
251
257
|
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
258
|
+
* When the fiber completes, it will be removed from the `FiberHandle`. If a
|
|
259
|
+
* fiber already exists in the `FiberHandle`, it will be interrupted unless
|
|
260
|
+
* `options.onlyIfMissing` is set.
|
|
254
261
|
*
|
|
255
262
|
* **Example** (Setting a fiber safely)
|
|
256
263
|
*
|
|
@@ -275,11 +282,13 @@ export declare const setUnsafe: {
|
|
|
275
282
|
*/
|
|
276
283
|
export declare const set: {
|
|
277
284
|
/**
|
|
278
|
-
*
|
|
279
|
-
*
|
|
285
|
+
* Sets the fiber in the `FiberHandle`.
|
|
286
|
+
*
|
|
287
|
+
* **Details**
|
|
280
288
|
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
289
|
+
* When the fiber completes, it will be removed from the `FiberHandle`. If a
|
|
290
|
+
* fiber already exists in the `FiberHandle`, it will be interrupted unless
|
|
291
|
+
* `options.onlyIfMissing` is set.
|
|
283
292
|
*
|
|
284
293
|
* **Example** (Setting a fiber safely)
|
|
285
294
|
*
|
|
@@ -307,11 +316,13 @@ export declare const set: {
|
|
|
307
316
|
readonly propagateInterruption?: boolean | undefined;
|
|
308
317
|
}): (self: FiberHandle<A, E>) => Effect.Effect<void>;
|
|
309
318
|
/**
|
|
310
|
-
*
|
|
311
|
-
* removed from the `FiberHandle`.
|
|
319
|
+
* Sets the fiber in the `FiberHandle`.
|
|
312
320
|
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
321
|
+
* **Details**
|
|
322
|
+
*
|
|
323
|
+
* When the fiber completes, it will be removed from the `FiberHandle`. If a
|
|
324
|
+
* fiber already exists in the `FiberHandle`, it will be interrupted unless
|
|
325
|
+
* `options.onlyIfMissing` is set.
|
|
315
326
|
*
|
|
316
327
|
* **Example** (Setting a fiber safely)
|
|
317
328
|
*
|
|
@@ -423,6 +434,8 @@ export declare const clear: <A, E>(self: FiberHandle<A, E>) => Effect.Effect<voi
|
|
|
423
434
|
/**
|
|
424
435
|
* Forks an Effect and stores the resulting fiber in the `FiberHandle`.
|
|
425
436
|
*
|
|
437
|
+
* **Details**
|
|
438
|
+
*
|
|
426
439
|
* The handle manages only one fiber: running a new effect interrupts the
|
|
427
440
|
* previous fiber unless `onlyIfMissing` is set. When the managed fiber
|
|
428
441
|
* completes, it is removed from the handle.
|
|
@@ -454,6 +467,8 @@ export declare const run: {
|
|
|
454
467
|
/**
|
|
455
468
|
* Forks an Effect and stores the resulting fiber in the `FiberHandle`.
|
|
456
469
|
*
|
|
470
|
+
* **Details**
|
|
471
|
+
*
|
|
457
472
|
* The handle manages only one fiber: running a new effect interrupts the
|
|
458
473
|
* previous fiber unless `onlyIfMissing` is set. When the managed fiber
|
|
459
474
|
* completes, it is removed from the handle.
|
|
@@ -489,6 +504,8 @@ export declare const run: {
|
|
|
489
504
|
/**
|
|
490
505
|
* Forks an Effect and stores the resulting fiber in the `FiberHandle`.
|
|
491
506
|
*
|
|
507
|
+
* **Details**
|
|
508
|
+
*
|
|
492
509
|
* The handle manages only one fiber: running a new effect interrupts the
|
|
493
510
|
* previous fiber unless `onlyIfMissing` is set. When the managed fiber
|
|
494
511
|
* completes, it is removed from the handle.
|
|
@@ -526,6 +543,8 @@ export declare const run: {
|
|
|
526
543
|
* Captures the current runtime and returns a function for forking effects into
|
|
527
544
|
* an existing `FiberHandle`.
|
|
528
545
|
*
|
|
546
|
+
* **Details**
|
|
547
|
+
*
|
|
529
548
|
* Each call returns the forked fiber, stores it in the handle, and interrupts
|
|
530
549
|
* the previous fiber unless `onlyIfMissing` is set.
|
|
531
550
|
*
|
|
@@ -568,6 +587,8 @@ export declare const runtime: <A, E>(self: FiberHandle<A, E>) => <R = never>() =
|
|
|
568
587
|
* Captures the current runtime and returns a function for running effects in
|
|
569
588
|
* an existing `FiberHandle` as Promises.
|
|
570
589
|
*
|
|
590
|
+
* **Details**
|
|
591
|
+
*
|
|
571
592
|
* Each call stores the forked fiber in the handle and interrupts the previous
|
|
572
593
|
* fiber unless `onlyIfMissing` is set. The Promise resolves with the effect's
|
|
573
594
|
* success value or rejects with the squashed failure cause.
|
|
@@ -600,6 +621,8 @@ export declare const runtimePromise: <A, E>(self: FiberHandle<A, E>) => <R = nev
|
|
|
600
621
|
/**
|
|
601
622
|
* Waits for the `FiberHandle` to fail or close.
|
|
602
623
|
*
|
|
624
|
+
* **Details**
|
|
625
|
+
*
|
|
603
626
|
* The returned Effect fails with the first managed fiber failure that is not
|
|
604
627
|
* ignored by the handle's interruption rules. Normal successful completion of
|
|
605
628
|
* a managed fiber only removes it from the handle; use `awaitEmpty` to wait
|