effect 4.0.0-beta.30 → 4.0.0-beta.31
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/Channel.d.ts +2 -2
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js.map +1 -1
- package/dist/Cron.js +3 -3
- package/dist/Cron.js.map +1 -1
- package/dist/DateTime.d.ts +33 -77
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +1 -1
- package/dist/DateTime.js.map +1 -1
- package/dist/Duration.d.ts +29 -1
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +77 -48
- package/dist/Duration.js.map +1 -1
- package/dist/Layer.d.ts +97 -2
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +8 -2
- package/dist/Layer.js.map +1 -1
- package/dist/Schema.d.ts +2316 -114
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +1331 -67
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +2 -2
- package/dist/SchemaAST.js +2 -2
- package/dist/SchemaRepresentation.d.ts +2 -2
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/internal/dateTime.js +57 -50
- package/dist/internal/dateTime.js.map +1 -1
- package/dist/internal/effect.js +1 -1
- package/dist/internal/effect.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +3 -4
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +30 -16
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +10 -87
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/cli/Completions.d.ts +16 -0
- package/dist/unstable/cli/Completions.d.ts.map +1 -0
- package/dist/unstable/cli/Completions.js +23 -0
- package/dist/unstable/cli/Completions.js.map +1 -0
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +4 -4
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/index.d.ts +4 -0
- package/dist/unstable/cli/index.d.ts.map +1 -1
- package/dist/unstable/cli/index.js +4 -0
- package/dist/unstable/cli/index.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js +1 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +8 -8
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.d.ts +1 -1
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +2 -2
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js +1 -1
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts +1 -3
- package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Channel.ts +3 -3
- package/src/Cron.ts +3 -3
- package/src/DateTime.ts +35 -77
- package/src/Duration.ts +78 -23
- package/src/Layer.ts +123 -19
- package/src/Schema.ts +2317 -115
- package/src/SchemaAST.ts +2 -2
- package/src/SchemaRepresentation.ts +2 -2
- package/src/internal/dateTime.ts +60 -51
- package/src/internal/effect.ts +1 -1
- package/src/unstable/ai/Chat.ts +11 -13
- package/src/unstable/ai/LanguageModel.ts +148 -97
- package/src/unstable/cli/Completions.ts +36 -0
- package/src/unstable/cli/GlobalFlag.ts +4 -5
- package/src/unstable/cli/index.ts +5 -0
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +1 -1
- package/src/unstable/cluster/DeliverAt.ts +1 -1
- package/src/unstable/encoding/Ndjson.ts +17 -17
- package/src/unstable/http/HttpClientResponse.ts +2 -2
- package/src/unstable/http/HttpIncomingMessage.ts +1 -1
- package/src/unstable/http/HttpServerRequest.ts +4 -4
- package/src/unstable/http/HttpServerResponse.ts +2 -2
- package/src/unstable/httpapi/HttpApiBuilder.ts +4 -4
- package/src/unstable/persistence/Persistable.ts +1 -1
- package/src/unstable/rpc/RpcGroup.ts +3 -3
- package/dist/unstable/cli/internal/completions/Completions.d.ts +0 -2
- package/dist/unstable/cli/internal/completions/Completions.d.ts.map +0 -1
- package/dist/unstable/cli/internal/completions/Completions.js +0 -23
- package/dist/unstable/cli/internal/completions/Completions.js.map +0 -1
- package/src/unstable/cli/internal/completions/Completions.ts +0 -31
|
@@ -184,8 +184,8 @@ export type HandlersServices<Rpcs extends Rpc.Any, Handlers> = keyof Handlers ex
|
|
|
184
184
|
* @since 4.0.0
|
|
185
185
|
* @category groups
|
|
186
186
|
*/
|
|
187
|
-
export type HandlerServices<Rpcs extends Rpc.Any, K extends Rpcs["_tag"], Handler> =
|
|
188
|
-
|
|
187
|
+
export type HandlerServices<Rpcs extends Rpc.Any, K extends Rpcs["_tag"], Handler> = true extends
|
|
188
|
+
Rpc.IsStream<Rpcs, K> ? Handler extends (...args: any) =>
|
|
189
189
|
| Stream.Stream<infer _A, infer _E, infer _R>
|
|
190
190
|
| Rpc.Wrapper<Stream.Stream<infer _A, infer _E, infer _R>>
|
|
191
191
|
| Effect.Effect<
|
|
@@ -204,7 +204,7 @@ export type HandlerServices<Rpcs extends Rpc.Any, K extends Rpcs["_tag"], Handle
|
|
|
204
204
|
Handler extends (
|
|
205
205
|
...args: any
|
|
206
206
|
) => Effect.Effect<infer _A, infer _E, infer _R> | Rpc.Wrapper<Effect.Effect<infer _A, infer _E, infer _R>> ?
|
|
207
|
-
Rpc.ExcludeProvides<_R, Rpcs, K> | Rpc.ExtractRequires<Rpcs, K>
|
|
207
|
+
Exclude<Rpc.ExcludeProvides<_R, Rpcs, K>, Scope> | Rpc.ExtractRequires<Rpcs, K>
|
|
208
208
|
: never
|
|
209
209
|
|
|
210
210
|
/**
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Completions.d.ts","sourceRoot":"","sources":["../../../../../src/unstable/cli/internal/completions/Completions.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Top-level completions dispatcher.
|
|
3
|
-
*
|
|
4
|
-
* Routes to the appropriate shell-specific generator based on the
|
|
5
|
-
* requested shell type.
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
import * as Bash from "./bash.js";
|
|
10
|
-
import * as Fish from "./fish.js";
|
|
11
|
-
import * as Zsh from "./zsh.js";
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const generate = (executableName, shell, descriptor) => {
|
|
14
|
-
switch (shell) {
|
|
15
|
-
case "bash":
|
|
16
|
-
return Bash.generate(executableName, descriptor);
|
|
17
|
-
case "zsh":
|
|
18
|
-
return Zsh.generate(executableName, descriptor);
|
|
19
|
-
case "fish":
|
|
20
|
-
return Fish.generate(executableName, descriptor);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=Completions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Completions.js","names":["Bash","Fish","Zsh","generate","executableName","shell","descriptor"],"sources":["../../../../../src/unstable/cli/internal/completions/Completions.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;AAQA,OAAO,KAAKA,IAAI,MAAM,WAAW;AAEjC,OAAO,KAAKC,IAAI,MAAM,WAAW;AACjC,OAAO,KAAKC,GAAG,MAAM,UAAU;AAK/B;AACA,OAAO,MAAMC,QAAQ,GAAGA,CACtBC,cAAsB,EACtBC,KAAY,EACZC,UAA6B,KACnB;EACV,QAAQD,KAAK;IACX,KAAK,MAAM;MACT,OAAOL,IAAI,CAACG,QAAQ,CAACC,cAAc,EAAEE,UAAU,CAAC;IAClD,KAAK,KAAK;MACR,OAAOJ,GAAG,CAACC,QAAQ,CAACC,cAAc,EAAEE,UAAU,CAAC;IACjD,KAAK,MAAM;MACT,OAAOL,IAAI,CAACE,QAAQ,CAACC,cAAc,EAAEE,UAAU,CAAC;EACpD;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Top-level completions dispatcher.
|
|
3
|
-
*
|
|
4
|
-
* Routes to the appropriate shell-specific generator based on the
|
|
5
|
-
* requested shell type.
|
|
6
|
-
*
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
import * as Bash from "./bash.ts"
|
|
10
|
-
import type { CommandDescriptor } from "./CommandDescriptor.ts"
|
|
11
|
-
import * as Fish from "./fish.ts"
|
|
12
|
-
import * as Zsh from "./zsh.ts"
|
|
13
|
-
|
|
14
|
-
/** @internal */
|
|
15
|
-
export type Shell = "bash" | "zsh" | "fish"
|
|
16
|
-
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const generate = (
|
|
19
|
-
executableName: string,
|
|
20
|
-
shell: Shell,
|
|
21
|
-
descriptor: CommandDescriptor
|
|
22
|
-
): string => {
|
|
23
|
-
switch (shell) {
|
|
24
|
-
case "bash":
|
|
25
|
-
return Bash.generate(executableName, descriptor)
|
|
26
|
-
case "zsh":
|
|
27
|
-
return Zsh.generate(executableName, descriptor)
|
|
28
|
-
case "fish":
|
|
29
|
-
return Fish.generate(executableName, descriptor)
|
|
30
|
-
}
|
|
31
|
-
}
|