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/src/FiberHandle.ts
CHANGED
|
@@ -59,10 +59,9 @@ import type * as Scope from "./Scope.ts"
|
|
|
59
59
|
const TypeId = "~effect/FiberHandle"
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
|
-
* Scoped handle that manages at most one fiber
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
* fibers are removed from the handle when they complete.
|
|
62
|
+
* Scoped handle that manages at most one fiber, interrupts the current fiber
|
|
63
|
+
* when the handle's scope closes, and removes managed fibers from the handle
|
|
64
|
+
* when they complete.
|
|
66
65
|
*
|
|
67
66
|
* **Example** (Managing a single fiber)
|
|
68
67
|
*
|
|
@@ -95,9 +94,8 @@ export interface FiberHandle<out A = unknown, out E = unknown> extends Pipeable,
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
/**
|
|
98
|
-
* Returns `true` if a value is a `FiberHandle
|
|
99
|
-
*
|
|
100
|
-
* This is a type guard that checks for the `FiberHandle` runtime marker.
|
|
97
|
+
* Returns `true` if a value is a `FiberHandle` by checking for the
|
|
98
|
+
* `FiberHandle` runtime marker.
|
|
101
99
|
*
|
|
102
100
|
* **Example** (Checking fiber handles)
|
|
103
101
|
*
|
|
@@ -136,11 +134,14 @@ const makeUnsafe = <A = unknown, E = unknown>(): FiberHandle<A, E> => {
|
|
|
136
134
|
}
|
|
137
135
|
|
|
138
136
|
/**
|
|
139
|
-
*
|
|
140
|
-
* When the associated Scope is closed, the contained fiber will be interrupted.
|
|
137
|
+
* Creates a scoped `FiberHandle` that can store a single fiber.
|
|
141
138
|
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
139
|
+
* **Details**
|
|
140
|
+
*
|
|
141
|
+
* When the associated `Scope` is closed, the contained fiber will be
|
|
142
|
+
* interrupted. You can add a fiber to the handle using `FiberHandle.run`, and
|
|
143
|
+
* the fiber will be automatically removed from the `FiberHandle` when it
|
|
144
|
+
* completes.
|
|
144
145
|
*
|
|
145
146
|
* **Example** (Creating a scoped fiber handle)
|
|
146
147
|
*
|
|
@@ -183,6 +184,8 @@ export const make = <A = unknown, E = unknown>(): Effect.Effect<FiberHandle<A, E
|
|
|
183
184
|
/**
|
|
184
185
|
* Creates a scoped run function that forks effects into a new `FiberHandle`.
|
|
185
186
|
*
|
|
187
|
+
* **Details**
|
|
188
|
+
*
|
|
186
189
|
* Each call returns the forked fiber, stores it in the handle, and interrupts
|
|
187
190
|
* the previous fiber unless `onlyIfMissing` is set. The managed fiber is
|
|
188
191
|
* interrupted when the handle's scope closes.
|
|
@@ -232,6 +235,8 @@ export const makeRuntime = <R, E = unknown, A = unknown>(): Effect.Effect<
|
|
|
232
235
|
* Creates a scoped run function that forks effects into a new `FiberHandle`
|
|
233
236
|
* and returns a `Promise` for each effect result.
|
|
234
237
|
*
|
|
238
|
+
* **Details**
|
|
239
|
+
*
|
|
235
240
|
* Each call stores the fiber in the handle and interrupts the previous fiber
|
|
236
241
|
* unless `onlyIfMissing` is set. The returned Promise resolves with the
|
|
237
242
|
* effect's success value or rejects with the squashed failure cause.
|
|
@@ -410,11 +415,13 @@ export const setUnsafe: {
|
|
|
410
415
|
})
|
|
411
416
|
|
|
412
417
|
/**
|
|
413
|
-
*
|
|
414
|
-
*
|
|
418
|
+
* Sets the fiber in the `FiberHandle`.
|
|
419
|
+
*
|
|
420
|
+
* **Details**
|
|
415
421
|
*
|
|
416
|
-
*
|
|
417
|
-
*
|
|
422
|
+
* When the fiber completes, it will be removed from the `FiberHandle`. If a
|
|
423
|
+
* fiber already exists in the `FiberHandle`, it will be interrupted unless
|
|
424
|
+
* `options.onlyIfMissing` is set.
|
|
418
425
|
*
|
|
419
426
|
* **Example** (Setting a fiber safely)
|
|
420
427
|
*
|
|
@@ -439,11 +446,13 @@ export const setUnsafe: {
|
|
|
439
446
|
*/
|
|
440
447
|
export const set: {
|
|
441
448
|
/**
|
|
442
|
-
*
|
|
443
|
-
*
|
|
449
|
+
* Sets the fiber in the `FiberHandle`.
|
|
450
|
+
*
|
|
451
|
+
* **Details**
|
|
444
452
|
*
|
|
445
|
-
*
|
|
446
|
-
*
|
|
453
|
+
* When the fiber completes, it will be removed from the `FiberHandle`. If a
|
|
454
|
+
* fiber already exists in the `FiberHandle`, it will be interrupted unless
|
|
455
|
+
* `options.onlyIfMissing` is set.
|
|
447
456
|
*
|
|
448
457
|
* **Example** (Setting a fiber safely)
|
|
449
458
|
*
|
|
@@ -474,11 +483,13 @@ export const set: {
|
|
|
474
483
|
}
|
|
475
484
|
): (self: FiberHandle<A, E>) => Effect.Effect<void>
|
|
476
485
|
/**
|
|
477
|
-
*
|
|
478
|
-
* removed from the `FiberHandle`.
|
|
486
|
+
* Sets the fiber in the `FiberHandle`.
|
|
479
487
|
*
|
|
480
|
-
*
|
|
481
|
-
*
|
|
488
|
+
* **Details**
|
|
489
|
+
*
|
|
490
|
+
* When the fiber completes, it will be removed from the `FiberHandle`. If a
|
|
491
|
+
* fiber already exists in the `FiberHandle`, it will be interrupted unless
|
|
492
|
+
* `options.onlyIfMissing` is set.
|
|
482
493
|
*
|
|
483
494
|
* **Example** (Setting a fiber safely)
|
|
484
495
|
*
|
|
@@ -638,6 +649,8 @@ const constInterruptedFiber = (function() {
|
|
|
638
649
|
/**
|
|
639
650
|
* Forks an Effect and stores the resulting fiber in the `FiberHandle`.
|
|
640
651
|
*
|
|
652
|
+
* **Details**
|
|
653
|
+
*
|
|
641
654
|
* The handle manages only one fiber: running a new effect interrupts the
|
|
642
655
|
* previous fiber unless `onlyIfMissing` is set. When the managed fiber
|
|
643
656
|
* completes, it is removed from the handle.
|
|
@@ -669,6 +682,8 @@ export const run: {
|
|
|
669
682
|
/**
|
|
670
683
|
* Forks an Effect and stores the resulting fiber in the `FiberHandle`.
|
|
671
684
|
*
|
|
685
|
+
* **Details**
|
|
686
|
+
*
|
|
672
687
|
* The handle manages only one fiber: running a new effect interrupts the
|
|
673
688
|
* previous fiber unless `onlyIfMissing` is set. When the managed fiber
|
|
674
689
|
* completes, it is removed from the handle.
|
|
@@ -709,6 +724,8 @@ export const run: {
|
|
|
709
724
|
/**
|
|
710
725
|
* Forks an Effect and stores the resulting fiber in the `FiberHandle`.
|
|
711
726
|
*
|
|
727
|
+
* **Details**
|
|
728
|
+
*
|
|
712
729
|
* The handle manages only one fiber: running a new effect interrupts the
|
|
713
730
|
* previous fiber unless `onlyIfMissing` is set. When the managed fiber
|
|
714
731
|
* completes, it is removed from the handle.
|
|
@@ -776,6 +793,8 @@ const runImpl = <A, E, R, XE extends E, XA extends A>(
|
|
|
776
793
|
* Captures the current runtime and returns a function for forking effects into
|
|
777
794
|
* an existing `FiberHandle`.
|
|
778
795
|
*
|
|
796
|
+
* **Details**
|
|
797
|
+
*
|
|
779
798
|
* Each call returns the forked fiber, stores it in the handle, and interrupts
|
|
780
799
|
* the previous fiber unless `onlyIfMissing` is set.
|
|
781
800
|
*
|
|
@@ -856,6 +875,8 @@ export const runtime: <A, E>(
|
|
|
856
875
|
* Captures the current runtime and returns a function for running effects in
|
|
857
876
|
* an existing `FiberHandle` as Promises.
|
|
858
877
|
*
|
|
878
|
+
* **Details**
|
|
879
|
+
*
|
|
859
880
|
* Each call stores the forked fiber in the handle and interrupts the previous
|
|
860
881
|
* fiber unless `onlyIfMissing` is set. The Promise resolves with the effect's
|
|
861
882
|
* success value or rejects with the squashed failure cause.
|
|
@@ -923,6 +944,8 @@ export const runtimePromise = <A, E>(self: FiberHandle<A, E>): <R = never>() =>
|
|
|
923
944
|
/**
|
|
924
945
|
* Waits for the `FiberHandle` to fail or close.
|
|
925
946
|
*
|
|
947
|
+
* **Details**
|
|
948
|
+
*
|
|
926
949
|
* The returned Effect fails with the first managed fiber failure that is not
|
|
927
950
|
* ignored by the handle's interruption rules. Normal successful completion of
|
|
928
951
|
* a managed fiber only removes it from the handle; use `awaitEmpty` to wait
|
package/src/FiberMap.ts
CHANGED
|
@@ -98,6 +98,8 @@ export interface FiberMap<in out K, out A = unknown, out E = unknown>
|
|
|
98
98
|
/**
|
|
99
99
|
* Returns `true` if a value is a `FiberMap`.
|
|
100
100
|
*
|
|
101
|
+
* **Details**
|
|
102
|
+
*
|
|
101
103
|
* This is a type guard that checks for the `FiberMap` runtime marker.
|
|
102
104
|
*
|
|
103
105
|
* **Example** (Checking if a value is a FiberMap)
|
|
@@ -147,11 +149,14 @@ const makeUnsafe = <K, A = unknown, E = unknown>(
|
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
/**
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
+
* Creates a scoped `FiberMap` for storing fibers by key.
|
|
153
|
+
*
|
|
154
|
+
* **Details**
|
|
152
155
|
*
|
|
153
|
-
*
|
|
154
|
-
*
|
|
156
|
+
* When the associated Scope is closed, all fibers in the map will be
|
|
157
|
+
* interrupted. You can add fibers to the map using `FiberMap.set` or
|
|
158
|
+
* `FiberMap.run`, and the fibers will be automatically removed from the
|
|
159
|
+
* `FiberMap` when they complete.
|
|
155
160
|
*
|
|
156
161
|
* **Example** (Creating a scoped FiberMap)
|
|
157
162
|
*
|
|
@@ -196,6 +201,8 @@ export const make = <K, A = unknown, E = unknown>(): Effect.Effect<FiberMap<K, A
|
|
|
196
201
|
/**
|
|
197
202
|
* Creates a scoped run function that forks effects into a new `FiberMap`.
|
|
198
203
|
*
|
|
204
|
+
* **Details**
|
|
205
|
+
*
|
|
199
206
|
* Each call stores the forked fiber under the supplied key and returns that
|
|
200
207
|
* fiber. If the key already has a fiber, the previous fiber is interrupted
|
|
201
208
|
* unless `onlyIfMissing` is set. All managed fibers are interrupted when the
|
|
@@ -246,6 +253,8 @@ export const makeRuntime = <R, K, E = unknown, A = unknown>(): Effect.Effect<
|
|
|
246
253
|
* Creates a scoped run function that forks effects into a new `FiberMap` and
|
|
247
254
|
* returns a `Promise` for each effect result.
|
|
248
255
|
*
|
|
256
|
+
* **Details**
|
|
257
|
+
*
|
|
249
258
|
* Each call stores the fiber under the supplied key, interrupting any previous
|
|
250
259
|
* fiber for that key unless `onlyIfMissing` is set. The returned Promise
|
|
251
260
|
* resolves with the effect's success value or rejects with the squashed failure
|
|
@@ -302,6 +311,8 @@ const isInternalInterruption = Filter.toPredicate(Filter.compose(
|
|
|
302
311
|
* Adds a fiber to the `FiberMap` under a key using a synchronous, unsafe
|
|
303
312
|
* mutation.
|
|
304
313
|
*
|
|
314
|
+
* **Details**
|
|
315
|
+
*
|
|
305
316
|
* When the fiber completes, it is removed from the map. If the key already has
|
|
306
317
|
* a fiber, that previous fiber is interrupted unless `onlyIfMissing` is set;
|
|
307
318
|
* in that case the new fiber is interrupted and the existing entry is kept.
|
|
@@ -335,6 +346,8 @@ export const setUnsafe: {
|
|
|
335
346
|
* Adds a fiber to the `FiberMap` under a key using a synchronous, unsafe
|
|
336
347
|
* mutation.
|
|
337
348
|
*
|
|
349
|
+
* **Details**
|
|
350
|
+
*
|
|
338
351
|
* When the fiber completes, it is removed from the map. If the key already has
|
|
339
352
|
* a fiber, that previous fiber is interrupted unless `onlyIfMissing` is set;
|
|
340
353
|
* in that case the new fiber is interrupted and the existing entry is kept.
|
|
@@ -375,6 +388,8 @@ export const setUnsafe: {
|
|
|
375
388
|
* Adds a fiber to the `FiberMap` under a key using a synchronous, unsafe
|
|
376
389
|
* mutation.
|
|
377
390
|
*
|
|
391
|
+
* **Details**
|
|
392
|
+
*
|
|
378
393
|
* When the fiber completes, it is removed from the map. If the key already has
|
|
379
394
|
* a fiber, that previous fiber is interrupted unless `onlyIfMissing` is set;
|
|
380
395
|
* in that case the new fiber is interrupted and the existing entry is kept.
|
|
@@ -462,6 +477,8 @@ export const setUnsafe: {
|
|
|
462
477
|
/**
|
|
463
478
|
* Adds a fiber to the `FiberMap` under a key.
|
|
464
479
|
*
|
|
480
|
+
* **Details**
|
|
481
|
+
*
|
|
465
482
|
* When the fiber completes, it is removed from the map. If the key already has
|
|
466
483
|
* a fiber, that previous fiber is interrupted unless `onlyIfMissing` is set;
|
|
467
484
|
* in that case the new fiber is interrupted and the existing entry is kept.
|
|
@@ -496,6 +513,8 @@ export const set: {
|
|
|
496
513
|
/**
|
|
497
514
|
* Adds a fiber to the `FiberMap` under a key.
|
|
498
515
|
*
|
|
516
|
+
* **Details**
|
|
517
|
+
*
|
|
499
518
|
* When the fiber completes, it is removed from the map. If the key already has
|
|
500
519
|
* a fiber, that previous fiber is interrupted unless `onlyIfMissing` is set;
|
|
501
520
|
* in that case the new fiber is interrupted and the existing entry is kept.
|
|
@@ -537,6 +556,8 @@ export const set: {
|
|
|
537
556
|
/**
|
|
538
557
|
* Adds a fiber to the `FiberMap` under a key.
|
|
539
558
|
*
|
|
559
|
+
* **Details**
|
|
560
|
+
*
|
|
540
561
|
* When the fiber completes, it is removed from the map. If the key already has
|
|
541
562
|
* a fiber, that previous fiber is interrupted unless `onlyIfMissing` is set;
|
|
542
563
|
* in that case the new fiber is interrupted and the existing entry is kept.
|
|
@@ -689,6 +710,8 @@ export const getUnsafe: {
|
|
|
689
710
|
/**
|
|
690
711
|
* Retrieve a fiber from the FiberMap.
|
|
691
712
|
*
|
|
713
|
+
* **Details**
|
|
714
|
+
*
|
|
692
715
|
* Returns an `Option` wrapped in `Effect`.
|
|
693
716
|
*
|
|
694
717
|
* **Example** (Retrieving a fiber)
|
|
@@ -722,6 +745,8 @@ export const get: {
|
|
|
722
745
|
/**
|
|
723
746
|
* Retrieve a fiber from the FiberMap.
|
|
724
747
|
*
|
|
748
|
+
* **Details**
|
|
749
|
+
*
|
|
725
750
|
* Returns an `Option` wrapped in `Effect`.
|
|
726
751
|
*
|
|
727
752
|
* **Example** (Retrieving a fiber)
|
|
@@ -755,6 +780,8 @@ export const get: {
|
|
|
755
780
|
/**
|
|
756
781
|
* Retrieve a fiber from the FiberMap.
|
|
757
782
|
*
|
|
783
|
+
* **Details**
|
|
784
|
+
*
|
|
758
785
|
* Returns an `Option` wrapped in `Effect`.
|
|
759
786
|
*
|
|
760
787
|
* **Example** (Retrieving a fiber)
|
|
@@ -1160,6 +1187,8 @@ const constInterruptedFiber = (function() {
|
|
|
1160
1187
|
/**
|
|
1161
1188
|
* Forks an Effect and stores the resulting fiber in the `FiberMap` under a key.
|
|
1162
1189
|
*
|
|
1190
|
+
* **Details**
|
|
1191
|
+
*
|
|
1163
1192
|
* When the fiber completes, it is removed from the map. If the key already has
|
|
1164
1193
|
* a fiber, the previous fiber is interrupted unless `onlyIfMissing` is set.
|
|
1165
1194
|
*
|
|
@@ -1191,6 +1220,8 @@ export const run: {
|
|
|
1191
1220
|
/**
|
|
1192
1221
|
* Forks an Effect and stores the resulting fiber in the `FiberMap` under a key.
|
|
1193
1222
|
*
|
|
1223
|
+
* **Details**
|
|
1224
|
+
*
|
|
1194
1225
|
* When the fiber completes, it is removed from the map. If the key already has
|
|
1195
1226
|
* a fiber, the previous fiber is interrupted unless `onlyIfMissing` is set.
|
|
1196
1227
|
*
|
|
@@ -1232,6 +1263,8 @@ export const run: {
|
|
|
1232
1263
|
/**
|
|
1233
1264
|
* Forks an Effect and stores the resulting fiber in the `FiberMap` under a key.
|
|
1234
1265
|
*
|
|
1266
|
+
* **Details**
|
|
1267
|
+
*
|
|
1235
1268
|
* When the fiber completes, it is removed from the map. If the key already has
|
|
1236
1269
|
* a fiber, the previous fiber is interrupted unless `onlyIfMissing` is set.
|
|
1237
1270
|
*
|
|
@@ -1303,6 +1336,8 @@ const runImpl = <K, A, E, R, XE extends E, XA extends A>(
|
|
|
1303
1336
|
* Captures the current runtime and returns a function for forking effects into
|
|
1304
1337
|
* an existing `FiberMap`.
|
|
1305
1338
|
*
|
|
1339
|
+
* **Details**
|
|
1340
|
+
*
|
|
1306
1341
|
* Each call stores the forked fiber under the supplied key. If that key already
|
|
1307
1342
|
* has a fiber, the previous fiber is interrupted unless `onlyIfMissing` is set.
|
|
1308
1343
|
*
|
|
@@ -1379,6 +1414,8 @@ export const runtime: <K, A, E>(
|
|
|
1379
1414
|
* Captures the current runtime and returns a function for running effects in
|
|
1380
1415
|
* an existing `FiberMap` as Promises.
|
|
1381
1416
|
*
|
|
1417
|
+
* **Details**
|
|
1418
|
+
*
|
|
1382
1419
|
* Each call stores the forked fiber under the supplied key, interrupting any
|
|
1383
1420
|
* previous fiber for that key unless `onlyIfMissing` is set. The Promise
|
|
1384
1421
|
* resolves with the effect's success value or rejects with the squashed failure
|
|
@@ -1474,6 +1511,8 @@ export const size = <K, A, E>(self: FiberMap<K, A, E>): Effect.Effect<number> =>
|
|
|
1474
1511
|
/**
|
|
1475
1512
|
* Waits for the `FiberMap` to fail or close.
|
|
1476
1513
|
*
|
|
1514
|
+
* **Details**
|
|
1515
|
+
*
|
|
1477
1516
|
* The returned Effect fails with the first managed fiber failure that is not
|
|
1478
1517
|
* ignored by the map's interruption rules. Normal successful completion
|
|
1479
1518
|
* removes fibers from the map; use `awaitEmpty` to wait until the map has no
|
package/src/FiberSet.ts
CHANGED
|
@@ -141,11 +141,14 @@ const makeUnsafe = <A, E>(
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
144
|
+
* Creates a scoped `FiberSet` for storing fibers.
|
|
145
|
+
*
|
|
146
|
+
* **Details**
|
|
146
147
|
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
148
|
+
* When the associated Scope is closed, all fibers in the set will be
|
|
149
|
+
* interrupted. You can add fibers to the set using `FiberSet.add` or
|
|
150
|
+
* `FiberSet.run`, and the fibers will be automatically removed from the
|
|
151
|
+
* FiberSet when they complete.
|
|
149
152
|
*
|
|
150
153
|
* **Example** (Creating a scoped FiberSet)
|
|
151
154
|
*
|
|
@@ -186,6 +189,8 @@ export const make = <A = unknown, E = unknown>(): Effect.Effect<FiberSet<A, E>,
|
|
|
186
189
|
/**
|
|
187
190
|
* Creates a scoped run function that forks effects into a new `FiberSet`.
|
|
188
191
|
*
|
|
192
|
+
* **Details**
|
|
193
|
+
*
|
|
189
194
|
* Each call returns the forked fiber and adds it to the set. Managed fibers are
|
|
190
195
|
* removed when they complete and are interrupted when the set's scope closes.
|
|
191
196
|
*
|
|
@@ -228,6 +233,8 @@ export const makeRuntime = <R = never, A = unknown, E = unknown>(): Effect.Effec
|
|
|
228
233
|
* Creates a scoped run function that forks effects into a new `FiberSet` and
|
|
229
234
|
* returns a `Promise` for each effect result.
|
|
230
235
|
*
|
|
236
|
+
* **Details**
|
|
237
|
+
*
|
|
231
238
|
* Managed fibers are removed when they complete and are interrupted when the
|
|
232
239
|
* set's scope closes. Each Promise resolves with the effect's success value or
|
|
233
240
|
* rejects with the squashed failure cause.
|
|
@@ -277,6 +284,8 @@ const isInternalInterruption = Filter.toPredicate(Filter.compose(
|
|
|
277
284
|
* Adds an existing fiber to the `FiberSet` using a synchronous, unsafe
|
|
278
285
|
* mutation.
|
|
279
286
|
*
|
|
287
|
+
* **Details**
|
|
288
|
+
*
|
|
280
289
|
* When the fiber completes, it is removed from the set. If the set is already
|
|
281
290
|
* closed, the supplied fiber is interrupted immediately. Non-interruption
|
|
282
291
|
* failures are recorded for `FiberSet.join`.
|
|
@@ -306,6 +315,8 @@ export const addUnsafe: {
|
|
|
306
315
|
* Adds an existing fiber to the `FiberSet` using a synchronous, unsafe
|
|
307
316
|
* mutation.
|
|
308
317
|
*
|
|
318
|
+
* **Details**
|
|
319
|
+
*
|
|
309
320
|
* When the fiber completes, it is removed from the set. If the set is already
|
|
310
321
|
* closed, the supplied fiber is interrupted immediately. Non-interruption
|
|
311
322
|
* failures are recorded for `FiberSet.join`.
|
|
@@ -340,6 +351,8 @@ export const addUnsafe: {
|
|
|
340
351
|
* Adds an existing fiber to the `FiberSet` using a synchronous, unsafe
|
|
341
352
|
* mutation.
|
|
342
353
|
*
|
|
354
|
+
* **Details**
|
|
355
|
+
*
|
|
343
356
|
* When the fiber completes, it is removed from the set. If the set is already
|
|
344
357
|
* closed, the supplied fiber is interrupted immediately. Non-interruption
|
|
345
358
|
* failures are recorded for `FiberSet.join`.
|
|
@@ -728,9 +741,11 @@ export const runtime: <A, E>(
|
|
|
728
741
|
)
|
|
729
742
|
|
|
730
743
|
/**
|
|
731
|
-
*
|
|
744
|
+
* Captures a Runtime and uses it to fork Effects into the `FiberSet`.
|
|
745
|
+
*
|
|
746
|
+
* **Details**
|
|
732
747
|
*
|
|
733
|
-
* The returned run function
|
|
748
|
+
* The returned run function returns a `Promise` for each effect result.
|
|
734
749
|
*
|
|
735
750
|
* **Example** (Running effects as promises)
|
|
736
751
|
*
|
package/src/FileSystem.ts
CHANGED
|
@@ -56,6 +56,8 @@ const TypeId = "~effect/platform/FileSystem"
|
|
|
56
56
|
/**
|
|
57
57
|
* Core interface for file system operations in Effect.
|
|
58
58
|
*
|
|
59
|
+
* **Details**
|
|
60
|
+
*
|
|
59
61
|
* The FileSystem interface provides a comprehensive set of file and directory operations
|
|
60
62
|
* that work cross-platform. All operations return Effect values that can be composed,
|
|
61
63
|
* transformed, and executed safely with proper error handling.
|
|
@@ -108,6 +110,8 @@ export interface FileSystem {
|
|
|
108
110
|
/**
|
|
109
111
|
* Copy a file or directory from `fromPath` to `toPath`.
|
|
110
112
|
*
|
|
113
|
+
* **Details**
|
|
114
|
+
*
|
|
111
115
|
* Equivalent to `cp -r`.
|
|
112
116
|
*/
|
|
113
117
|
readonly copy: (
|
|
@@ -167,6 +171,8 @@ export interface FileSystem {
|
|
|
167
171
|
/**
|
|
168
172
|
* Create a temporary directory.
|
|
169
173
|
*
|
|
174
|
+
* **Details**
|
|
175
|
+
*
|
|
170
176
|
* By default the directory will be created inside the system's default
|
|
171
177
|
* temporary directory, but you can specify a different location by setting
|
|
172
178
|
* the `directory` option.
|
|
@@ -181,6 +187,8 @@ export interface FileSystem {
|
|
|
181
187
|
/**
|
|
182
188
|
* Create a temporary directory inside a scope.
|
|
183
189
|
*
|
|
190
|
+
* **Details**
|
|
191
|
+
*
|
|
184
192
|
* Functionally equivalent to `makeTempDirectory`, but the directory will be
|
|
185
193
|
* automatically deleted when the scope is closed.
|
|
186
194
|
*/
|
|
@@ -201,6 +209,8 @@ export interface FileSystem {
|
|
|
201
209
|
/**
|
|
202
210
|
* Create a temporary file inside a scope.
|
|
203
211
|
*
|
|
212
|
+
* **Details**
|
|
213
|
+
*
|
|
204
214
|
* Functionally equivalent to `makeTempFile`, but the file will be
|
|
205
215
|
* automatically deleted when the scope is closed.
|
|
206
216
|
*/
|
|
@@ -212,6 +222,8 @@ export interface FileSystem {
|
|
|
212
222
|
/**
|
|
213
223
|
* Open a file at `path` with the specified `options`.
|
|
214
224
|
*
|
|
225
|
+
* **Details**
|
|
226
|
+
*
|
|
215
227
|
* The file handle will be automatically closed when the scope is closed.
|
|
216
228
|
*/
|
|
217
229
|
readonly open: (
|
|
@@ -224,6 +236,8 @@ export interface FileSystem {
|
|
|
224
236
|
/**
|
|
225
237
|
* List the contents of a directory.
|
|
226
238
|
*
|
|
239
|
+
* **Details**
|
|
240
|
+
*
|
|
227
241
|
* You can recursively list the contents of nested directories by setting the
|
|
228
242
|
* `recursive` option.
|
|
229
243
|
*/
|
|
@@ -300,6 +314,8 @@ export interface FileSystem {
|
|
|
300
314
|
/**
|
|
301
315
|
* Create a readable `Stream` for the specified `path`.
|
|
302
316
|
*
|
|
317
|
+
* **Details**
|
|
318
|
+
*
|
|
303
319
|
* Changing the `bufferSize` option will change the internal buffer size of
|
|
304
320
|
* the stream. It defaults to `4`.
|
|
305
321
|
*
|
|
@@ -371,6 +387,8 @@ export interface FileSystem {
|
|
|
371
387
|
/**
|
|
372
388
|
* Represents a file size in bytes using a branded bigint.
|
|
373
389
|
*
|
|
390
|
+
* **Details**
|
|
391
|
+
*
|
|
374
392
|
* This type ensures type safety when working with file sizes, preventing
|
|
375
393
|
* accidental mixing of regular numbers with size values. The underlying
|
|
376
394
|
* bigint allows for handling very large file sizes beyond JavaScript's
|
|
@@ -400,6 +418,8 @@ export type Size = Brand.Branded<bigint, "Size">
|
|
|
400
418
|
/**
|
|
401
419
|
* Input type for size parameters that accepts multiple numeric types.
|
|
402
420
|
*
|
|
421
|
+
* **Details**
|
|
422
|
+
*
|
|
403
423
|
* This union type allows file system operations to accept size values in
|
|
404
424
|
* different formats for convenience, which are then normalized to the
|
|
405
425
|
* branded `Size` type internally.
|
|
@@ -427,6 +447,8 @@ export type SizeInput = bigint | number | Size
|
|
|
427
447
|
/**
|
|
428
448
|
* Creates a `Size` from various numeric input types.
|
|
429
449
|
*
|
|
450
|
+
* **Details**
|
|
451
|
+
*
|
|
430
452
|
* Converts numbers, bigints, or existing Size values into a properly
|
|
431
453
|
* branded Size type. This function handles the conversion and ensures
|
|
432
454
|
* type safety for file size operations.
|
|
@@ -464,6 +486,8 @@ export const Size = (bytes: SizeInput): Size => typeof bytes === "bigint" ? byte
|
|
|
464
486
|
/**
|
|
465
487
|
* Creates a `Size` representing kilobytes (1024 bytes).
|
|
466
488
|
*
|
|
489
|
+
* **Details**
|
|
490
|
+
*
|
|
467
491
|
* Converts a number of kilobytes to the equivalent size in bytes.
|
|
468
492
|
* Uses binary kilobytes (1024 bytes) rather than decimal (1000 bytes).
|
|
469
493
|
*
|
|
@@ -495,6 +519,8 @@ export const KiB = (n: number): Size => Size(n * 1024)
|
|
|
495
519
|
/**
|
|
496
520
|
* Creates a `Size` representing mebibytes (1024² bytes).
|
|
497
521
|
*
|
|
522
|
+
* **Details**
|
|
523
|
+
*
|
|
498
524
|
* Converts a number of mebibytes to the equivalent size in bytes.
|
|
499
525
|
* Uses binary mebibytes (1,048,576 bytes) rather than decimal megabytes.
|
|
500
526
|
*
|
|
@@ -530,6 +556,8 @@ export const MiB = (n: number): Size => Size(n * 1024 * 1024)
|
|
|
530
556
|
/**
|
|
531
557
|
* Creates a `Size` representing gibibytes (1024³ bytes).
|
|
532
558
|
*
|
|
559
|
+
* **Details**
|
|
560
|
+
*
|
|
533
561
|
* Converts a number of gibibytes to the equivalent size in bytes.
|
|
534
562
|
* Uses binary gibibytes (1,073,741,824 bytes) rather than decimal gigabytes.
|
|
535
563
|
*
|
|
@@ -563,6 +591,8 @@ export const GiB = (n: number): Size => Size(n * 1024 * 1024 * 1024)
|
|
|
563
591
|
/**
|
|
564
592
|
* Creates a `Size` representing tebibytes (1024⁴ bytes).
|
|
565
593
|
*
|
|
594
|
+
* **Details**
|
|
595
|
+
*
|
|
566
596
|
* Converts a number of tebibytes to the equivalent size in bytes.
|
|
567
597
|
* Uses binary tebibytes (1,099,511,627,776 bytes) rather than decimal terabytes.
|
|
568
598
|
*
|
|
@@ -600,6 +630,8 @@ const bigintPiB = bigint1024 * bigint1024 * bigint1024 * bigint1024 * bigint1024
|
|
|
600
630
|
/**
|
|
601
631
|
* Creates a `Size` representing pebibytes (1024⁵ bytes).
|
|
602
632
|
*
|
|
633
|
+
* **Details**
|
|
634
|
+
*
|
|
603
635
|
* Converts a number of pebibytes to the equivalent size in bytes.
|
|
604
636
|
* Uses binary pebibytes (1,125,899,906,842,624 bytes) rather than decimal petabytes.
|
|
605
637
|
* This function uses BigInt arithmetic to handle the very large numbers involved.
|
|
@@ -634,6 +666,8 @@ export const PiB = (n: number): Size => Size(BigInt(n) * bigintPiB)
|
|
|
634
666
|
/**
|
|
635
667
|
* File open flags that determine how a file is opened and what operations are allowed.
|
|
636
668
|
*
|
|
669
|
+
* **Details**
|
|
670
|
+
*
|
|
637
671
|
* These flags correspond to standard POSIX file open modes and control the file access
|
|
638
672
|
* permissions and behavior when opening files.
|
|
639
673
|
*
|
|
@@ -688,6 +722,8 @@ export type OpenFlag =
|
|
|
688
722
|
/**
|
|
689
723
|
* The service identifier for the FileSystem service.
|
|
690
724
|
*
|
|
725
|
+
* **Details**
|
|
726
|
+
*
|
|
691
727
|
* This key is used to provide and access the FileSystem service in the Effect context.
|
|
692
728
|
* Use this to inject file system implementations or access file system operations.
|
|
693
729
|
*
|
|
@@ -729,6 +765,8 @@ export const FileSystem: Context.Service<FileSystem, FileSystem> = Context.Servi
|
|
|
729
765
|
/**
|
|
730
766
|
* Creates a FileSystem implementation from a partial implementation.
|
|
731
767
|
*
|
|
768
|
+
* **Details**
|
|
769
|
+
*
|
|
732
770
|
* This function takes a partial FileSystem implementation and automatically provides
|
|
733
771
|
* default implementations for `exists`, `readFileString`, `stream`, `sink`, and
|
|
734
772
|
* `writeFileString` methods based on the provided core methods.
|
|
@@ -826,6 +864,8 @@ const notFound = (method: string, path: string) =>
|
|
|
826
864
|
/**
|
|
827
865
|
* Creates a stub `FileSystem` implementation for tests.
|
|
828
866
|
*
|
|
867
|
+
* **Details**
|
|
868
|
+
*
|
|
829
869
|
* By default, `exists` returns `false`, `remove` succeeds, many file operations
|
|
830
870
|
* fail with `PlatformError` `NotFound`, and temporary-directory/file operations
|
|
831
871
|
* die as not implemented. Pass method overrides to provide the behavior needed
|
|
@@ -968,6 +1008,8 @@ export const makeNoop = (fileSystem: Partial<FileSystem>): FileSystem =>
|
|
|
968
1008
|
/**
|
|
969
1009
|
* Creates a Layer that provides a no-op FileSystem implementation for testing.
|
|
970
1010
|
*
|
|
1011
|
+
* **Details**
|
|
1012
|
+
*
|
|
971
1013
|
* This is a convenience function that wraps `makeNoop` in a Layer, making it easy
|
|
972
1014
|
* to provide the test filesystem to your Effect programs.
|
|
973
1015
|
*
|
|
@@ -1010,6 +1052,8 @@ export const FileTypeId = "~effect/platform/FileSystem/File"
|
|
|
1010
1052
|
/**
|
|
1011
1053
|
* Type guard to check if a value is a File instance.
|
|
1012
1054
|
*
|
|
1055
|
+
* **Details**
|
|
1056
|
+
*
|
|
1013
1057
|
* This function determines whether the provided value is a valid File
|
|
1014
1058
|
* instance by checking for the presence of the File type identifier.
|
|
1015
1059
|
*
|
|
@@ -1021,6 +1065,8 @@ export const isFile = (u: unknown): u is File => hasProperty(u, FileTypeId)
|
|
|
1021
1065
|
/**
|
|
1022
1066
|
* Interface representing an open file handle.
|
|
1023
1067
|
*
|
|
1068
|
+
* **Details**
|
|
1069
|
+
*
|
|
1024
1070
|
* Provides low-level file operations including reading, writing, seeking,
|
|
1025
1071
|
* and retrieving file information. File handles are automatically managed
|
|
1026
1072
|
* within scoped operations to ensure proper cleanup.
|
|
@@ -1083,6 +1129,8 @@ export declare namespace File {
|
|
|
1083
1129
|
/**
|
|
1084
1130
|
* Branded type for file descriptors.
|
|
1085
1131
|
*
|
|
1132
|
+
* **Details**
|
|
1133
|
+
*
|
|
1086
1134
|
* File descriptors are numeric handles used by the operating system
|
|
1087
1135
|
* to identify open files. The branded type ensures type safety.
|
|
1088
1136
|
*
|
|
@@ -1094,6 +1142,8 @@ export declare namespace File {
|
|
|
1094
1142
|
/**
|
|
1095
1143
|
* Enumeration of possible file system entry types.
|
|
1096
1144
|
*
|
|
1145
|
+
* **Details**
|
|
1146
|
+
*
|
|
1097
1147
|
* Represents the different types of entries that can exist in a file system,
|
|
1098
1148
|
* from regular files to special device files and symbolic links.
|
|
1099
1149
|
*
|
|
@@ -1113,6 +1163,8 @@ export declare namespace File {
|
|
|
1113
1163
|
/**
|
|
1114
1164
|
* Comprehensive file information structure.
|
|
1115
1165
|
*
|
|
1166
|
+
* **Details**
|
|
1167
|
+
*
|
|
1116
1168
|
* Contains metadata about a file or directory including type, timestamps,
|
|
1117
1169
|
* permissions, and size information. This structure is returned by file
|
|
1118
1170
|
* stat operations.
|
|
@@ -1174,6 +1226,8 @@ export declare namespace File {
|
|
|
1174
1226
|
/**
|
|
1175
1227
|
* Creates a branded file descriptor.
|
|
1176
1228
|
*
|
|
1229
|
+
* **Details**
|
|
1230
|
+
*
|
|
1177
1231
|
* File descriptors are integer handles that the operating system uses to identify
|
|
1178
1232
|
* open files. This branded type ensures type safety when working with file descriptors.
|
|
1179
1233
|
*
|
|
@@ -1185,6 +1239,8 @@ export const FileDescriptor = Brand.nominal<File.Descriptor>()
|
|
|
1185
1239
|
/**
|
|
1186
1240
|
* Specifies the reference point for seeking within a file.
|
|
1187
1241
|
*
|
|
1242
|
+
* **Details**
|
|
1243
|
+
*
|
|
1188
1244
|
* - `"start"` - Seek from the beginning of the file
|
|
1189
1245
|
* - `"current"` - Seek from the current position
|
|
1190
1246
|
*
|
|
@@ -1210,6 +1266,8 @@ export declare namespace WatchEvent {
|
|
|
1210
1266
|
/**
|
|
1211
1267
|
* Event representing the creation of a new file or directory.
|
|
1212
1268
|
*
|
|
1269
|
+
* **Details**
|
|
1270
|
+
*
|
|
1213
1271
|
* This event is triggered when a new file or directory is created
|
|
1214
1272
|
* in the watched location.
|
|
1215
1273
|
*
|
|
@@ -1224,6 +1282,8 @@ export declare namespace WatchEvent {
|
|
|
1224
1282
|
/**
|
|
1225
1283
|
* Event representing the modification of an existing file or directory.
|
|
1226
1284
|
*
|
|
1285
|
+
* **Details**
|
|
1286
|
+
*
|
|
1227
1287
|
* This event is triggered when an existing file or directory is
|
|
1228
1288
|
* modified in the watched location.
|
|
1229
1289
|
*
|
|
@@ -1238,6 +1298,8 @@ export declare namespace WatchEvent {
|
|
|
1238
1298
|
/**
|
|
1239
1299
|
* Event representing the deletion of a file or directory.
|
|
1240
1300
|
*
|
|
1301
|
+
* **Details**
|
|
1302
|
+
*
|
|
1241
1303
|
* This event is triggered when a file or directory is deleted
|
|
1242
1304
|
* from the watched location.
|
|
1243
1305
|
*
|
|
@@ -1253,6 +1315,8 @@ export declare namespace WatchEvent {
|
|
|
1253
1315
|
/**
|
|
1254
1316
|
* Service key for file system watch backend implementations.
|
|
1255
1317
|
*
|
|
1318
|
+
* **Details**
|
|
1319
|
+
*
|
|
1256
1320
|
* This service provides the low-level file watching capabilities that can be
|
|
1257
1321
|
* implemented differently on various platforms (e.g., inotify on Linux,
|
|
1258
1322
|
* FSEvents on macOS, etc.).
|