@effect-uai/core 0.11.0 → 0.12.1
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/{AiError-Bf1pq4BB.d.mts → AiError-eLV9t1lU.d.mts} +12 -16
- package/dist/AiError-eLV9t1lU.d.mts.map +1 -0
- package/dist/{Audio-CR7CSljJ.d.mts → Audio-60lKKHxS.d.mts} +4 -5
- package/dist/Audio-60lKKHxS.d.mts.map +1 -0
- package/dist/{Image-C4vuBmu0.d.mts → Image-BK8-4H6s.d.mts} +12 -14
- package/dist/Image-BK8-4H6s.d.mts.map +1 -0
- package/dist/{Items-BWNu6VGp.d.mts → Items-SfUabNuB.d.mts} +92 -81
- package/dist/Items-SfUabNuB.d.mts.map +1 -0
- package/dist/{Loop-D8nWpowc.d.mts → Loop-B54AB1ME.d.mts} +19 -21
- package/dist/Loop-B54AB1ME.d.mts.map +1 -0
- package/dist/{Media-D_CpcM1Z.d.mts → Media-DwgpifPD.d.mts} +1 -1
- package/dist/Media-DwgpifPD.d.mts.map +1 -0
- package/dist/{SandboxError-CIrVDOMV.d.mts → SandboxError-BN8b28Bh.d.mts} +11 -15
- package/dist/SandboxError-BN8b28Bh.d.mts.map +1 -0
- package/dist/{StructuredFormat-DHaUJBdd.d.mts → StructuredFormat-BlZhyOsi.d.mts} +3 -7
- package/dist/StructuredFormat-BlZhyOsi.d.mts.map +1 -0
- package/dist/{Tool-CXFHCQrT.d.mts → Tool-DE-rnvkw.d.mts} +5 -8
- package/dist/Tool-DE-rnvkw.d.mts.map +1 -0
- package/dist/{ToolEvent-nVijCrvm.d.mts → ToolEvent-D99MGQYH.d.mts} +56 -63
- package/dist/ToolEvent-D99MGQYH.d.mts.map +1 -0
- package/dist/{ToolResult-CQqKkcDa.d.mts → ToolResult-Cj8ChodL.d.mts} +49 -54
- package/dist/ToolResult-Cj8ChodL.d.mts.map +1 -0
- package/dist/{Toolkit-BYPwwu-j.d.mts → Toolkit-BEZrNPTI.d.mts} +13 -16
- package/dist/Toolkit-BEZrNPTI.d.mts.map +1 -0
- package/dist/browser/Browser.d.mts +11 -7
- package/dist/browser/Browser.d.mts.map +1 -1
- package/dist/browser/Browser.mjs +1 -1
- package/dist/browser/Browser.mjs.map +1 -1
- package/dist/browser/BrowserError.d.mts +9 -13
- package/dist/browser/BrowserError.d.mts.map +1 -1
- package/dist/browser/BrowserError.mjs +1 -1
- package/dist/browser/BrowserError.mjs.map +1 -1
- package/dist/browser/BrowserTool.d.mts +33 -36
- package/dist/browser/BrowserTool.d.mts.map +1 -1
- package/dist/browser/BrowserTool.mjs +1 -1
- package/dist/browser/BrowserTool.mjs.map +1 -1
- package/dist/capabilities/Capabilities.d.mts +8 -6
- package/dist/capabilities/Capabilities.d.mts.map +1 -1
- package/dist/capabilities/Capabilities.mjs +1 -1
- package/dist/capabilities/Capabilities.mjs.map +1 -1
- package/dist/dist-BaenoU1A.mjs +145 -0
- package/dist/dist-BaenoU1A.mjs.map +1 -0
- package/dist/{dist-C0m0QnUP.mjs → dist-nohcnkD6.mjs} +16 -15
- package/dist/dist-nohcnkD6.mjs.map +1 -0
- package/dist/domain/AiError.d.mts +1 -1
- package/dist/domain/AiError.mjs +1 -1
- package/dist/domain/AiError.mjs.map +1 -1
- package/dist/domain/Audio.d.mts +1 -1
- package/dist/domain/Audio.mjs +1 -1
- package/dist/domain/Citation.d.mts +0 -2
- package/dist/domain/Citation.d.mts.map +1 -1
- package/dist/domain/Citation.mjs +1 -1
- package/dist/domain/Image.d.mts +1 -1
- package/dist/domain/Image.mjs +1 -1
- package/dist/domain/Image.mjs.map +1 -1
- package/dist/domain/Items.d.mts +1 -1
- package/dist/domain/Items.mjs +16 -2
- package/dist/domain/Items.mjs.map +1 -1
- package/dist/domain/Media.d.mts +1 -1
- package/dist/domain/Media.mjs +1 -1
- package/dist/domain/Music.d.mts +18 -11
- package/dist/domain/Music.d.mts.map +1 -1
- package/dist/domain/Music.mjs +1 -1
- package/dist/domain/Music.mjs.map +1 -1
- package/dist/domain/Research.d.mts +3 -4
- package/dist/domain/Research.d.mts.map +1 -1
- package/dist/domain/Research.mjs +1 -1
- package/dist/domain/Transcript.d.mts +2 -3
- package/dist/domain/Transcript.d.mts.map +1 -1
- package/dist/domain/Transcript.mjs +1 -1
- package/dist/domain/Turn.d.mts +144 -164
- package/dist/domain/Turn.d.mts.map +1 -1
- package/dist/domain/Turn.mjs +1 -1
- package/dist/domain/Turn.mjs.map +1 -1
- package/dist/domain/Turn.test.d.mts +1 -1
- package/dist/domain/Turn.test.mjs +28 -18
- package/dist/domain/Turn.test.mjs.map +1 -1
- package/dist/embedding-model/Embedding.d.mts +1 -3
- package/dist/embedding-model/Embedding.d.mts.map +1 -1
- package/dist/embedding-model/Embedding.mjs +1 -1
- package/dist/embedding-model/EmbeddingModel.d.mts +1 -3
- package/dist/embedding-model/EmbeddingModel.d.mts.map +1 -1
- package/dist/embedding-model/EmbeddingModel.mjs +1 -1
- package/dist/embedding-model/EmbeddingModel.mjs.map +1 -1
- package/dist/embedding-model/EmbeddingModel.test.d.mts +1 -1
- package/dist/embedding-model/EmbeddingModel.test.mjs +14 -9
- package/dist/embedding-model/EmbeddingModel.test.mjs.map +1 -1
- package/dist/index.d.mts +12 -12
- package/dist/job/Job.d.mts +4 -4
- package/dist/job/Job.d.mts.map +1 -1
- package/dist/job/Job.mjs +1 -1
- package/dist/job/Job.mjs.map +1 -1
- package/dist/language-model/LanguageModel.d.mts +4 -6
- package/dist/language-model/LanguageModel.d.mts.map +1 -1
- package/dist/language-model/LanguageModel.mjs +1 -1
- package/dist/language-model/LanguageModel.mjs.map +1 -1
- package/dist/language-model/LanguageModel.test.d.mts +1 -1
- package/dist/language-model/LanguageModel.test.mjs +6 -3
- package/dist/language-model/LanguageModel.test.mjs.map +1 -1
- package/dist/loop/Loop.d.mts +1 -1
- package/dist/loop/Loop.mjs +1 -1
- package/dist/loop/Loop.mjs.map +1 -1
- package/dist/loop/Loop.test.d.mts +1 -1
- package/dist/loop/Loop.test.mjs +60 -34
- package/dist/loop/Loop.test.mjs.map +1 -1
- package/dist/{magic-string.es-Dk-MMA0F.mjs → magic-string.es-CB2hOw9v.mjs} +14 -13
- package/dist/{magic-string.es-Dk-MMA0F.mjs.map → magic-string.es-CB2hOw9v.mjs.map} +1 -1
- package/dist/math/Vector.d.mts +0 -2
- package/dist/math/Vector.d.mts.map +1 -1
- package/dist/math/Vector.mjs +1 -1
- package/dist/math/Vector.mjs.map +1 -1
- package/dist/music-generator/MusicGenerator.d.mts +2 -4
- package/dist/music-generator/MusicGenerator.d.mts.map +1 -1
- package/dist/music-generator/MusicGenerator.mjs +1 -1
- package/dist/music-generator/MusicGenerator.mjs.map +1 -1
- package/dist/music-generator/MusicGenerator.test.d.mts +1 -1
- package/dist/music-generator/MusicGenerator.test.mjs +19 -10
- package/dist/music-generator/MusicGenerator.test.mjs.map +1 -1
- package/dist/observability/Metrics.d.mts +21 -10
- package/dist/observability/Metrics.d.mts.map +1 -1
- package/dist/observability/Metrics.mjs +31 -8
- package/dist/observability/Metrics.mjs.map +1 -1
- package/dist/observability/Metrics.test.d.mts +1 -1
- package/dist/observability/Metrics.test.mjs +87 -23
- package/dist/observability/Metrics.test.mjs.map +1 -1
- package/dist/observability/Telemetry.d.mts +2 -3
- package/dist/observability/Telemetry.d.mts.map +1 -1
- package/dist/observability/Telemetry.mjs +1 -1
- package/dist/observability/Telemetry.mjs.map +1 -1
- package/dist/observability/Telemetry.test.d.mts +1 -1
- package/dist/observability/Telemetry.test.mjs +15 -7
- package/dist/observability/Telemetry.test.mjs.map +1 -1
- package/dist/research/DeepResearch.d.mts +1 -3
- package/dist/research/DeepResearch.d.mts.map +1 -1
- package/dist/research/DeepResearch.mjs +1 -1
- package/dist/research/DeepResearch.mjs.map +1 -1
- package/dist/retry/Retry.d.mts +4 -8
- package/dist/retry/Retry.d.mts.map +1 -1
- package/dist/retry/Retry.mjs +31 -2
- package/dist/retry/Retry.mjs.map +1 -1
- package/dist/retry/Retry.test.d.mts +1 -1
- package/dist/retry/Retry.test.mjs +6 -3
- package/dist/retry/Retry.test.mjs.map +1 -1
- package/dist/sandbox/Memory.d.mts +0 -2
- package/dist/sandbox/Memory.d.mts.map +1 -1
- package/dist/sandbox/Memory.mjs +4 -4
- package/dist/sandbox/Memory.mjs.map +1 -1
- package/dist/sandbox/Sandbox.d.mts +144 -156
- package/dist/sandbox/Sandbox.d.mts.map +1 -1
- package/dist/sandbox/Sandbox.mjs +1 -1
- package/dist/sandbox/Sandbox.mjs.map +1 -1
- package/dist/sandbox/SandboxError.d.mts +1 -1
- package/dist/sandbox/SandboxError.mjs +1 -1
- package/dist/sandbox/SandboxError.mjs.map +1 -1
- package/dist/sandbox/SandboxImage.d.mts +0 -2
- package/dist/sandbox/SandboxImage.d.mts.map +1 -1
- package/dist/sandbox/SandboxImage.mjs +1 -1
- package/dist/sandbox/SandboxImage.mjs.map +1 -1
- package/dist/sandbox/SandboxNetwork.d.mts +0 -2
- package/dist/sandbox/SandboxNetwork.d.mts.map +1 -1
- package/dist/sandbox/SandboxNetwork.mjs +1 -1
- package/dist/sandbox/SandboxNetwork.mjs.map +1 -1
- package/dist/speech-synthesizer/SpeechSynthesizer.d.mts +8 -7
- package/dist/speech-synthesizer/SpeechSynthesizer.d.mts.map +1 -1
- package/dist/speech-synthesizer/SpeechSynthesizer.mjs +1 -1
- package/dist/speech-synthesizer/SpeechSynthesizer.mjs.map +1 -1
- package/dist/speech-synthesizer/SpeechSynthesizer.test.d.mts +1 -1
- package/dist/speech-synthesizer/SpeechSynthesizer.test.mjs +31 -16
- package/dist/speech-synthesizer/SpeechSynthesizer.test.mjs.map +1 -1
- package/dist/streaming/JSONL.d.mts +1 -5
- package/dist/streaming/JSONL.d.mts.map +1 -1
- package/dist/streaming/JSONL.mjs +1 -1
- package/dist/streaming/JSONL.mjs.map +1 -1
- package/dist/streaming/JSONL.test.d.mts +1 -1
- package/dist/streaming/JSONL.test.mjs +16 -8
- package/dist/streaming/JSONL.test.mjs.map +1 -1
- package/dist/streaming/Lines.d.mts +0 -2
- package/dist/streaming/Lines.d.mts.map +1 -1
- package/dist/streaming/Lines.mjs +1 -1
- package/dist/streaming/Lines.mjs.map +1 -1
- package/dist/streaming/SSE.d.mts +0 -2
- package/dist/streaming/SSE.d.mts.map +1 -1
- package/dist/streaming/SSE.mjs +1 -1
- package/dist/streaming/SSE.mjs.map +1 -1
- package/dist/streaming/SSE.test.d.mts +1 -1
- package/dist/streaming/SSE.test.mjs +34 -17
- package/dist/streaming/SSE.test.mjs.map +1 -1
- package/dist/structured-format/StructuredFormat.d.mts +1 -1
- package/dist/structured-format/StructuredFormat.mjs +1 -1
- package/dist/structured-format/StructuredFormat.mjs.map +1 -1
- package/dist/structured-format/StructuredFormat.test.d.mts +1 -1
- package/dist/structured-format/StructuredFormat.test.mjs +7 -4
- package/dist/structured-format/StructuredFormat.test.mjs.map +1 -1
- package/dist/{dist-CcRV3-A5.mjs → test.DNmyFkvJ-YPzDR0Co.mjs} +1644 -5172
- package/dist/test.DNmyFkvJ-YPzDR0Co.mjs.map +1 -0
- package/dist/testing/MockMusicGenerator.d.mts +4 -3
- package/dist/testing/MockMusicGenerator.d.mts.map +1 -1
- package/dist/testing/MockMusicGenerator.mjs.map +1 -1
- package/dist/testing/MockProvider.d.mts +1 -2
- package/dist/testing/MockProvider.d.mts.map +1 -1
- package/dist/testing/MockProvider.mjs.map +1 -1
- package/dist/testing/MockSandbox.d.mts +256 -290
- package/dist/testing/MockSandbox.d.mts.map +1 -1
- package/dist/testing/MockSandbox.mjs.map +1 -1
- package/dist/testing/MockSpeechSynthesizer.d.mts +10 -6
- package/dist/testing/MockSpeechSynthesizer.d.mts.map +1 -1
- package/dist/testing/MockSpeechSynthesizer.mjs.map +1 -1
- package/dist/testing/MockTranscriber.d.mts +3 -2
- package/dist/testing/MockTranscriber.d.mts.map +1 -1
- package/dist/testing/MockTranscriber.mjs.map +1 -1
- package/dist/tool/Approval.d.mts +31 -36
- package/dist/tool/Approval.d.mts.map +1 -1
- package/dist/tool/Approval.mjs +1 -1
- package/dist/tool/Approval.mjs.map +1 -1
- package/dist/tool/Approval.test.d.mts +1 -1
- package/dist/tool/Approval.test.mjs +37 -24
- package/dist/tool/Approval.test.mjs.map +1 -1
- package/dist/tool/HistoryCheck.d.mts +2 -4
- package/dist/tool/HistoryCheck.d.mts.map +1 -1
- package/dist/tool/HistoryCheck.mjs +1 -1
- package/dist/tool/HistoryCheck.mjs.map +1 -1
- package/dist/tool/Tool.d.mts +1 -1
- package/dist/tool/Tool.mjs +4 -4
- package/dist/tool/Tool.mjs.map +1 -1
- package/dist/tool/Tool.test.d.mts +1 -1
- package/dist/tool/Tool.test.mjs +23 -11
- package/dist/tool/Tool.test.mjs.map +1 -1
- package/dist/tool/ToolEvent.d.mts +1 -1
- package/dist/tool/ToolEvent.mjs +1 -1
- package/dist/tool/ToolEvent.mjs.map +1 -1
- package/dist/tool/ToolResult.d.mts +1 -1
- package/dist/tool/ToolResult.mjs +1 -1
- package/dist/tool/ToolResult.mjs.map +1 -1
- package/dist/tool/Toolkit.d.mts +1 -1
- package/dist/tool/Toolkit.mjs +4 -3
- package/dist/tool/Toolkit.mjs.map +1 -1
- package/dist/tool/Toolkit.test.d.mts +1 -1
- package/dist/tool/Toolkit.test.mjs +40 -21
- package/dist/tool/Toolkit.test.mjs.map +1 -1
- package/dist/transcriber/Transcriber.d.mts +6 -6
- package/dist/transcriber/Transcriber.d.mts.map +1 -1
- package/dist/transcriber/Transcriber.mjs +1 -1
- package/dist/transcriber/Transcriber.mjs.map +1 -1
- package/dist/transcriber/Transcriber.test.d.mts +1 -1
- package/dist/transcriber/Transcriber.test.mjs +20 -10
- package/dist/transcriber/Transcriber.test.mjs.map +1 -1
- package/dist/utils-CiH_DjFW.mjs +3918 -0
- package/dist/utils-CiH_DjFW.mjs.map +1 -0
- package/dist/web-read/WebRead.d.mts +15 -9
- package/dist/web-read/WebRead.d.mts.map +1 -1
- package/dist/web-read/WebRead.mjs +1 -1
- package/dist/web-read/WebRead.mjs.map +1 -1
- package/dist/web-read/WebReadTool.d.mts +4 -5
- package/dist/web-read/WebReadTool.d.mts.map +1 -1
- package/dist/web-read/WebReadTool.mjs +1 -1
- package/dist/web-read/WebReadTool.mjs.map +1 -1
- package/dist/web-search/WebSearch.d.mts +22 -13
- package/dist/web-search/WebSearch.d.mts.map +1 -1
- package/dist/web-search/WebSearch.mjs +1 -1
- package/dist/web-search/WebSearch.mjs.map +1 -1
- package/dist/web-search/WebSearchTool.d.mts +6 -6
- package/dist/web-search/WebSearchTool.d.mts.map +1 -1
- package/dist/web-search/WebSearchTool.mjs +1 -1
- package/dist/web-search/WebSearchTool.mjs.map +1 -1
- package/package.json +4 -4
- package/src/domain/Items.ts +18 -0
- package/src/loop/Loop.test.ts +13 -14
- package/src/loop/Loop.ts +74 -76
- package/src/observability/Metrics.test.ts +65 -0
- package/src/observability/Metrics.ts +53 -11
- package/src/retry/Retry.ts +44 -3
- package/src/testing/MockProvider.ts +8 -9
- package/src/tool/Tool.ts +13 -13
- package/dist/AiError-Bf1pq4BB.d.mts.map +0 -1
- package/dist/Audio-CR7CSljJ.d.mts.map +0 -1
- package/dist/Image-C4vuBmu0.d.mts.map +0 -1
- package/dist/Items-BWNu6VGp.d.mts.map +0 -1
- package/dist/Loop-D8nWpowc.d.mts.map +0 -1
- package/dist/Media-D_CpcM1Z.d.mts.map +0 -1
- package/dist/SandboxError-CIrVDOMV.d.mts.map +0 -1
- package/dist/StructuredFormat-DHaUJBdd.d.mts.map +0 -1
- package/dist/Tool-CXFHCQrT.d.mts.map +0 -1
- package/dist/ToolEvent-nVijCrvm.d.mts.map +0 -1
- package/dist/ToolResult-CQqKkcDa.d.mts.map +0 -1
- package/dist/Toolkit-BYPwwu-j.d.mts.map +0 -1
- package/dist/dist-C0m0QnUP.mjs.map +0 -1
- package/dist/dist-CcRV3-A5.mjs.map +0 -1
- /package/dist/{chunk-uyGKjUfl.mjs → rolldown-runtime-EAsCxrDo.mjs} +0 -0
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Duration } from "effect";
|
|
2
|
-
import * as _$effect_Cause0 from "effect/Cause";
|
|
3
|
-
import * as _$effect_Types0 from "effect/Types";
|
|
4
|
-
|
|
5
|
-
//#region src/domain/AiError.d.ts
|
|
6
2
|
declare namespace AiError_d_exports {
|
|
7
3
|
export { AiError, AuthFailed, AuthSubtype, Cancelled, ContentFiltered, ContextLengthExceeded, GenerationFailed, IncompleteTurn, InvalidRequest, RateLimited, Scope$1 as Scope, Timeout, Unavailable, Unsupported, describe };
|
|
8
4
|
}
|
|
9
5
|
type Scope$1 = "rpm" | "tpm" | "rpd" | "tpd";
|
|
10
|
-
declare const RateLimited_base: new <A extends Record<string, any> = {}>(args:
|
|
6
|
+
declare const RateLimited_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
11
7
|
readonly _tag: "RateLimited";
|
|
12
8
|
} & Readonly<A>;
|
|
13
9
|
declare class RateLimited extends RateLimited_base<{
|
|
@@ -17,7 +13,7 @@ declare class RateLimited extends RateLimited_base<{
|
|
|
17
13
|
requestId?: string;
|
|
18
14
|
raw: unknown;
|
|
19
15
|
}> {}
|
|
20
|
-
declare const Unavailable_base: new <A extends Record<string, any> = {}>(args:
|
|
16
|
+
declare const Unavailable_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
21
17
|
readonly _tag: "Unavailable";
|
|
22
18
|
} & Readonly<A>;
|
|
23
19
|
declare class Unavailable extends Unavailable_base<{
|
|
@@ -27,7 +23,7 @@ declare class Unavailable extends Unavailable_base<{
|
|
|
27
23
|
requestId?: string;
|
|
28
24
|
raw: unknown;
|
|
29
25
|
}> {}
|
|
30
|
-
declare const Timeout_base: new <A extends Record<string, any> = {}>(args:
|
|
26
|
+
declare const Timeout_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
31
27
|
readonly _tag: "Timeout";
|
|
32
28
|
} & Readonly<A>;
|
|
33
29
|
declare class Timeout extends Timeout_base<{
|
|
@@ -35,7 +31,7 @@ declare class Timeout extends Timeout_base<{
|
|
|
35
31
|
requestId?: string;
|
|
36
32
|
raw: unknown;
|
|
37
33
|
}> {}
|
|
38
|
-
declare const ContentFiltered_base: new <A extends Record<string, any> = {}>(args:
|
|
34
|
+
declare const ContentFiltered_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
39
35
|
readonly _tag: "ContentFiltered";
|
|
40
36
|
} & Readonly<A>;
|
|
41
37
|
declare class ContentFiltered extends ContentFiltered_base<{
|
|
@@ -44,7 +40,7 @@ declare class ContentFiltered extends ContentFiltered_base<{
|
|
|
44
40
|
requestId?: string;
|
|
45
41
|
raw: unknown;
|
|
46
42
|
}> {}
|
|
47
|
-
declare const ContextLengthExceeded_base: new <A extends Record<string, any> = {}>(args:
|
|
43
|
+
declare const ContextLengthExceeded_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
48
44
|
readonly _tag: "ContextLengthExceeded";
|
|
49
45
|
} & Readonly<A>;
|
|
50
46
|
declare class ContextLengthExceeded extends ContextLengthExceeded_base<{
|
|
@@ -53,7 +49,7 @@ declare class ContextLengthExceeded extends ContextLengthExceeded_base<{
|
|
|
53
49
|
requested?: number;
|
|
54
50
|
raw: unknown;
|
|
55
51
|
}> {}
|
|
56
|
-
declare const InvalidRequest_base: new <A extends Record<string, any> = {}>(args:
|
|
52
|
+
declare const InvalidRequest_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
57
53
|
readonly _tag: "InvalidRequest";
|
|
58
54
|
} & Readonly<A>;
|
|
59
55
|
declare class InvalidRequest extends InvalidRequest_base<{
|
|
@@ -63,7 +59,7 @@ declare class InvalidRequest extends InvalidRequest_base<{
|
|
|
63
59
|
raw: unknown;
|
|
64
60
|
}> {}
|
|
65
61
|
type AuthSubtype = "auth" | "permission" | "billing" | "quota";
|
|
66
|
-
declare const AuthFailed_base: new <A extends Record<string, any> = {}>(args:
|
|
62
|
+
declare const AuthFailed_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
67
63
|
readonly _tag: "AuthFailed";
|
|
68
64
|
} & Readonly<A>;
|
|
69
65
|
declare class AuthFailed extends AuthFailed_base<{
|
|
@@ -71,13 +67,13 @@ declare class AuthFailed extends AuthFailed_base<{
|
|
|
71
67
|
subtype: AuthSubtype;
|
|
72
68
|
raw: unknown;
|
|
73
69
|
}> {}
|
|
74
|
-
declare const Cancelled_base: new <A extends Record<string, any> = {}>(args:
|
|
70
|
+
declare const Cancelled_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
75
71
|
readonly _tag: "Cancelled";
|
|
76
72
|
} & Readonly<A>;
|
|
77
73
|
declare class Cancelled extends Cancelled_base<{
|
|
78
74
|
provider: string;
|
|
79
75
|
}> {}
|
|
80
|
-
declare const GenerationFailed_base: new <A extends Record<string, any> = {}>(args:
|
|
76
|
+
declare const GenerationFailed_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
81
77
|
readonly _tag: "GenerationFailed";
|
|
82
78
|
} & Readonly<A>;
|
|
83
79
|
/**
|
|
@@ -93,7 +89,7 @@ declare class GenerationFailed extends GenerationFailed_base<{
|
|
|
93
89
|
requestId?: string;
|
|
94
90
|
raw: unknown;
|
|
95
91
|
}> {}
|
|
96
|
-
declare const IncompleteTurn_base: new <A extends Record<string, any> = {}>(args:
|
|
92
|
+
declare const IncompleteTurn_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
97
93
|
readonly _tag: "IncompleteTurn";
|
|
98
94
|
} & Readonly<A>;
|
|
99
95
|
/**
|
|
@@ -104,7 +100,7 @@ declare const IncompleteTurn_base: new <A extends Record<string, any> = {}>(args
|
|
|
104
100
|
declare class IncompleteTurn extends IncompleteTurn_base<{
|
|
105
101
|
raw?: unknown;
|
|
106
102
|
}> {}
|
|
107
|
-
declare const Unsupported_base: new <A extends Record<string, any> = {}>(args:
|
|
103
|
+
declare const Unsupported_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
108
104
|
readonly _tag: "Unsupported";
|
|
109
105
|
} & Readonly<A>;
|
|
110
106
|
/**
|
|
@@ -134,4 +130,4 @@ type AiError = RateLimited | Unavailable | Timeout | ContentFiltered | ContextLe
|
|
|
134
130
|
declare const describe: (e: AiError) => string;
|
|
135
131
|
//#endregion
|
|
136
132
|
export { Cancelled as a, GenerationFailed as c, RateLimited as d, Scope$1 as f, describe as g, Unsupported as h, AuthSubtype as i, IncompleteTurn as l, Unavailable as m, AiError_d_exports as n, ContentFiltered as o, Timeout as p, AuthFailed as r, ContextLengthExceeded as s, AiError as t, InvalidRequest as u };
|
|
137
|
-
//# sourceMappingURL=AiError-
|
|
133
|
+
//# sourceMappingURL=AiError-eLV9t1lU.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AiError-eLV9t1lU.d.mts","names":[],"sources":["../src/domain/AiError.ts"],"mappings":";;;;KAEY;;;;cAEC,oBAAoB;EAC/B;EACA,aAAa,SAAS;EACtB,QAAQ;EACR;EACA;;;;;cAGW,oBAAoB;EAC/B;EACA,aAAa,SAAS;EACtB;EACA;EACA;;;;;cAGW,gBAAgB;EAC3B;EACA;EACA;;;;;cAGW,wBAAwB;EACnC;EACA;EACA;EACA;;;;;cAGW,8BAA8B;EACzC;EACA;EACA;EACA;;;;;cAGW,uBAAuB;EAClC;EACA;EACA;EACA;;KAGU;;;;cAEC,mBAAmB;EAC9B;EACA,SAAS;EACT;;;;;cAGW,kBAAkB;EAC7B;;;;;;;;;;;cASW,yBAAyB;EACpC;EACA;EACA;EACA;EACA;;;;;;;;;;cAQW,uBAAuB;EAClC;;;;;;;;;;;;;;;;;;;cAiBW,oBAAoB;EAC/B;EACA;EACA;;KAGU,UACR,cACA,cACA,UACA,kBACA,wBACA,iBACA,aACA,YACA,iBACA,mBACA;;;;;cASS,WAAW,GAAG"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { i as MediaUrl, n as MediaBytes, t as MediaBase64 } from "./Media-
|
|
1
|
+
import { i as MediaUrl, n as MediaBytes, t as MediaBase64 } from "./Media-DwgpifPD.mjs";
|
|
2
2
|
import { Duration } from "effect";
|
|
3
|
-
|
|
4
|
-
//#region src/domain/Audio.d.ts
|
|
5
3
|
declare namespace Audio_d_exports {
|
|
6
4
|
export { AudioBlob, AudioChunk, AudioFormat, AudioMimeType, AudioSource, isAudioBase64, isAudioBytes, isAudioUrl };
|
|
7
5
|
}
|
|
@@ -36,7 +34,8 @@ declare const isAudioBytes: (s: AudioSource) => s is MediaBytes<AudioMimeType>;
|
|
|
36
34
|
type AudioFormat = {
|
|
37
35
|
readonly container: "mp3" | "wav" | "ogg" | "opus" | "flac" | "aac" | "webm" | "raw";
|
|
38
36
|
readonly encoding: "pcm_s16le" | "pcm_f32le" | "pcm_mulaw" | "pcm_alaw" | "mp3" | "opus" | "vorbis" | "flac" | "aac";
|
|
39
|
-
readonly sampleRate: 8000 | 16000 | 22050 | 24000 | 32000 | 44100 | 48000;
|
|
37
|
+
readonly sampleRate: 8000 | 16000 | 22050 | 24000 | 32000 | 44100 | 48000;
|
|
38
|
+
/** mp3 / opus only. */
|
|
40
39
|
readonly bitRate?: number;
|
|
41
40
|
readonly channels?: 1 | 2;
|
|
42
41
|
};
|
|
@@ -59,4 +58,4 @@ type AudioBlob = {
|
|
|
59
58
|
};
|
|
60
59
|
//#endregion
|
|
61
60
|
export { AudioSource as a, isAudioBytes as c, AudioMimeType as i, isAudioUrl as l, AudioChunk as n, Audio_d_exports as o, AudioFormat as r, isAudioBase64 as s, AudioBlob as t };
|
|
62
|
-
//# sourceMappingURL=Audio-
|
|
61
|
+
//# sourceMappingURL=Audio-60lKKHxS.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Audio-60lKKHxS.d.mts","names":[],"sources":["../src/domain/Audio.ts"],"mappings":";;;;;;;;;;;;;KAWY;;;;;;;;;;KA0BA,cACR,SAAS,iBACT,YAAY,iBACZ,WAAW;cAEF,aAAU,GAAO,gBAAc,KAAK,SAAS;cAC7C,gBAAa,GAAO,gBAAc,KAAK,YAAY;cAEnD,eAAY,GAAO,gBAAc,KAAK,WAAW;;;;;;;KAQlD;WACD;WACA;WAUA;;WAEA;WACA;;;;;;;KAQC;WACD,OAAO;;;;;;KAON;WACD,QAAQ;WACR,OAAO;WACP,WAAW,SAAS"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { i as MediaUrl, n as MediaBytes, r as MediaSource, t as MediaBase64 } from "./Media-
|
|
1
|
+
import { i as MediaUrl, n as MediaBytes, r as MediaSource, t as MediaBase64 } from "./Media-DwgpifPD.mjs";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
|
|
4
|
-
//#region src/domain/Image.d.ts
|
|
5
3
|
declare namespace Image_d_exports {
|
|
6
4
|
export { ImageBase64Source, ImageBytesSource, ImageMimeType, ImageSource, ImageUrlSource, imageBase64, imageBytes, imageUrl, isImageBase64, isImageBytes, isImageUrl };
|
|
7
5
|
}
|
|
@@ -46,16 +44,16 @@ declare const isImageUrl: <I>(input: I) => input is I & {
|
|
|
46
44
|
readonly url: string;
|
|
47
45
|
readonly mimeType?: ImageMimeType | undefined;
|
|
48
46
|
};
|
|
49
|
-
declare const isImageBase64: <I>(input: I) => input is I &
|
|
50
|
-
readonly _tag:
|
|
51
|
-
readonly base64:
|
|
52
|
-
readonly mimeType:
|
|
53
|
-
}
|
|
54
|
-
declare const isImageBytes: <I>(input: I) => input is I &
|
|
55
|
-
readonly _tag:
|
|
56
|
-
readonly bytes:
|
|
57
|
-
readonly mimeType:
|
|
58
|
-
}
|
|
47
|
+
declare const isImageBase64: <I>(input: I) => input is I & {
|
|
48
|
+
readonly _tag: "base64";
|
|
49
|
+
readonly base64: string;
|
|
50
|
+
readonly mimeType: ImageMimeType;
|
|
51
|
+
};
|
|
52
|
+
declare const isImageBytes: <I>(input: I) => input is I & {
|
|
53
|
+
readonly _tag: "bytes";
|
|
54
|
+
readonly bytes: Uint8Array<ArrayBufferLike>;
|
|
55
|
+
readonly mimeType: ImageMimeType;
|
|
56
|
+
};
|
|
59
57
|
//#endregion
|
|
60
58
|
export { ImageUrlSource as a, imageBytes as c, isImageBytes as d, isImageUrl as f, ImageSource as i, imageUrl as l, ImageBytesSource as n, Image_d_exports as o, ImageMimeType as r, imageBase64 as s, ImageBase64Source as t, isImageBase64 as u };
|
|
61
|
-
//# sourceMappingURL=Image-
|
|
59
|
+
//# sourceMappingURL=Image-BK8-4H6s.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Image-BK8-4H6s.d.mts","names":[],"sources":["../src/domain/Image.ts"],"mappings":";;;;;;;;;;;;;KAWY;KAYA,iBAAiB,SAAS;KAC1B,oBAAoB,YAAY;KAChC,mBAAmB,WAAW;;;;;;;;KAS9B,cAAc,YAAY;cAEzB,gBAAc,OAAA;;;;cAKd,mBAAiB,OAAA;;;;cAKjB,kBAAgB,OAAA;;;;cAKhB,aAAa,OAAO,OAAO;cAM3B,WAAQ,aAAe,WAAa,kBAAgB;cAGpD,cAAW,gBAAkB,UAAY,kBAAgB;cAMzD,aAAU,OAAW,YAAU,UAAY,kBAAgB;cAM3D,aAAU,GAAA,OAAA,MAAA,SAAA;;;;;cACV,gBAAa,GAAA,OAAA,MAAA,SAAA;;;;;cACb,eAAY,GAAA,OAAA,MAAA,SAAA"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { i as ImageSource } from "./Image-
|
|
1
|
+
import { i as ImageSource } from "./Image-BK8-4H6s.mjs";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
|
|
4
|
-
//#region src/domain/Items.d.ts
|
|
5
3
|
declare namespace Items_d_exports {
|
|
6
4
|
export { Annotation, ContainerFileCitation, ContentBlock, FileCitation, FilePath, HistoryItem, InputImage, InputText, InputTokensDetails, Message, OutputText, OutputTokensDetails, Reasoning, Refusal, Role, StopReason, ToolCall, ToolCallOutput, UrlCitation, Usage, assistantText, isContainerFileCitation, isFileCitation, isFilePath, isInputImage, isInputText, isMessage, isOutputText, isReasoning, isRefusal, isToolCall, isToolCallOutput, isUrlCitation, systemText, toolCallOutput, userText };
|
|
7
5
|
}
|
|
@@ -86,31 +84,31 @@ declare const Annotation: Schema.Union<readonly [Schema.Struct<{
|
|
|
86
84
|
}>]>;
|
|
87
85
|
type Annotation = typeof Annotation.Type;
|
|
88
86
|
declare const isUrlCitation: <I>(input: I) => input is I & {
|
|
89
|
-
readonly url: string;
|
|
90
87
|
readonly type: "url_citation";
|
|
88
|
+
readonly url: string;
|
|
91
89
|
readonly title: string;
|
|
92
90
|
readonly start_index?: number | undefined;
|
|
93
91
|
readonly end_index?: number | undefined;
|
|
94
92
|
readonly cited_text?: string | undefined;
|
|
95
93
|
readonly marker?: number | undefined;
|
|
96
94
|
};
|
|
97
|
-
declare const isFileCitation: <I>(input: I) => input is I &
|
|
98
|
-
readonly type:
|
|
99
|
-
readonly file_id:
|
|
100
|
-
readonly index:
|
|
101
|
-
}
|
|
102
|
-
declare const isContainerFileCitation: <I>(input: I) => input is I &
|
|
103
|
-
readonly type:
|
|
104
|
-
readonly container_id:
|
|
105
|
-
readonly file_id:
|
|
106
|
-
readonly start_index:
|
|
107
|
-
readonly end_index:
|
|
108
|
-
}
|
|
109
|
-
declare const isFilePath: <I>(input: I) => input is I &
|
|
110
|
-
readonly type:
|
|
111
|
-
readonly file_id:
|
|
112
|
-
readonly index:
|
|
113
|
-
}
|
|
95
|
+
declare const isFileCitation: <I>(input: I) => input is I & {
|
|
96
|
+
readonly type: "file_citation";
|
|
97
|
+
readonly file_id: string;
|
|
98
|
+
readonly index: number;
|
|
99
|
+
};
|
|
100
|
+
declare const isContainerFileCitation: <I>(input: I) => input is I & {
|
|
101
|
+
readonly type: "container_file_citation";
|
|
102
|
+
readonly container_id: string;
|
|
103
|
+
readonly file_id: string;
|
|
104
|
+
readonly start_index: number;
|
|
105
|
+
readonly end_index: number;
|
|
106
|
+
};
|
|
107
|
+
declare const isFilePath: <I>(input: I) => input is I & {
|
|
108
|
+
readonly type: "file_path";
|
|
109
|
+
readonly file_id: string;
|
|
110
|
+
readonly index: number;
|
|
111
|
+
};
|
|
114
112
|
declare const OutputText: Schema.Struct<{
|
|
115
113
|
readonly type: Schema.Literal<"output_text">;
|
|
116
114
|
readonly text: Schema.String;
|
|
@@ -319,90 +317,90 @@ declare const HistoryItem: Schema.Union<readonly [Schema.Struct<{
|
|
|
319
317
|
readonly providerData: Schema.optional<Schema.Unknown>;
|
|
320
318
|
}>]>;
|
|
321
319
|
type HistoryItem = typeof HistoryItem.Type;
|
|
322
|
-
declare const isInputText: <I>(input: I) => input is I &
|
|
323
|
-
readonly type:
|
|
324
|
-
readonly text: Schema.String;
|
|
325
|
-
}, "Type">;
|
|
326
|
-
declare const isInputImage: <I>(input: I) => input is I & Schema.Struct.ReadonlySide<{
|
|
327
|
-
readonly type: Schema.Literal<"input_image">;
|
|
328
|
-
readonly source: Schema.Schema<ImageSource>;
|
|
329
|
-
}, "Type">;
|
|
330
|
-
declare const isOutputText: <I>(input: I) => input is I & {
|
|
320
|
+
declare const isInputText: <I>(input: I) => input is I & {
|
|
321
|
+
readonly type: "input_text";
|
|
331
322
|
readonly text: string;
|
|
323
|
+
};
|
|
324
|
+
declare const isInputImage: <I>(input: I) => input is I & {
|
|
325
|
+
readonly type: "input_image";
|
|
326
|
+
readonly source: ImageSource;
|
|
327
|
+
};
|
|
328
|
+
declare const isOutputText: <I>(input: I) => input is I & {
|
|
332
329
|
readonly type: "output_text";
|
|
330
|
+
readonly text: string;
|
|
333
331
|
readonly annotations?: readonly ({
|
|
334
|
-
readonly url: string;
|
|
335
332
|
readonly type: "url_citation";
|
|
333
|
+
readonly url: string;
|
|
336
334
|
readonly title: string;
|
|
337
335
|
readonly start_index?: number | undefined;
|
|
338
336
|
readonly end_index?: number | undefined;
|
|
339
337
|
readonly cited_text?: string | undefined;
|
|
340
338
|
readonly marker?: number | undefined;
|
|
341
|
-
} |
|
|
342
|
-
readonly type:
|
|
343
|
-
readonly file_id:
|
|
344
|
-
readonly index:
|
|
345
|
-
}
|
|
346
|
-
readonly type:
|
|
347
|
-
readonly container_id:
|
|
348
|
-
readonly file_id:
|
|
349
|
-
readonly start_index:
|
|
350
|
-
readonly end_index:
|
|
351
|
-
}
|
|
352
|
-
readonly type:
|
|
353
|
-
readonly file_id:
|
|
354
|
-
readonly index:
|
|
355
|
-
}
|
|
339
|
+
} | {
|
|
340
|
+
readonly type: "file_citation";
|
|
341
|
+
readonly file_id: string;
|
|
342
|
+
readonly index: number;
|
|
343
|
+
} | {
|
|
344
|
+
readonly type: "container_file_citation";
|
|
345
|
+
readonly container_id: string;
|
|
346
|
+
readonly file_id: string;
|
|
347
|
+
readonly start_index: number;
|
|
348
|
+
readonly end_index: number;
|
|
349
|
+
} | {
|
|
350
|
+
readonly type: "file_path";
|
|
351
|
+
readonly file_id: string;
|
|
352
|
+
readonly index: number;
|
|
353
|
+
})[] | undefined;
|
|
354
|
+
};
|
|
355
|
+
declare const isRefusal: <I>(input: I) => input is I & {
|
|
356
|
+
readonly type: "refusal";
|
|
357
|
+
readonly text: string;
|
|
356
358
|
};
|
|
357
|
-
declare const isRefusal: <I>(input: I) => input is I & Schema.Struct.ReadonlySide<{
|
|
358
|
-
readonly type: Schema.Literal<"refusal">;
|
|
359
|
-
readonly text: Schema.String;
|
|
360
|
-
}, "Type">;
|
|
361
359
|
declare const isMessage: <I>(input: I) => input is I & {
|
|
362
360
|
readonly type: "message";
|
|
363
|
-
readonly
|
|
364
|
-
|
|
365
|
-
readonly
|
|
366
|
-
}, "Type"> | Schema.Struct.ReadonlySide<{
|
|
367
|
-
readonly type: Schema.Literal<"input_image">;
|
|
368
|
-
readonly source: Schema.Schema<ImageSource>;
|
|
369
|
-
}, "Type"> | {
|
|
361
|
+
readonly role: "assistant" | "system" | "user";
|
|
362
|
+
readonly content: readonly ({
|
|
363
|
+
readonly type: "input_text";
|
|
370
364
|
readonly text: string;
|
|
365
|
+
} | {
|
|
366
|
+
readonly type: "input_image";
|
|
367
|
+
readonly source: ImageSource;
|
|
368
|
+
} | {
|
|
371
369
|
readonly type: "output_text";
|
|
370
|
+
readonly text: string;
|
|
372
371
|
readonly annotations?: readonly ({
|
|
373
|
-
readonly url: string;
|
|
374
372
|
readonly type: "url_citation";
|
|
373
|
+
readonly url: string;
|
|
375
374
|
readonly title: string;
|
|
376
375
|
readonly start_index?: number | undefined;
|
|
377
376
|
readonly end_index?: number | undefined;
|
|
378
377
|
readonly cited_text?: string | undefined;
|
|
379
378
|
readonly marker?: number | undefined;
|
|
380
|
-
} |
|
|
381
|
-
readonly type:
|
|
382
|
-
readonly file_id:
|
|
383
|
-
readonly index:
|
|
384
|
-
}
|
|
385
|
-
readonly type:
|
|
386
|
-
readonly container_id:
|
|
387
|
-
readonly file_id:
|
|
388
|
-
readonly start_index:
|
|
389
|
-
readonly end_index:
|
|
390
|
-
}
|
|
391
|
-
readonly type:
|
|
392
|
-
readonly file_id:
|
|
393
|
-
readonly index:
|
|
394
|
-
}
|
|
395
|
-
} |
|
|
396
|
-
readonly type:
|
|
397
|
-
readonly text:
|
|
398
|
-
}
|
|
399
|
-
readonly role: "user" | "assistant" | "system";
|
|
379
|
+
} | {
|
|
380
|
+
readonly type: "file_citation";
|
|
381
|
+
readonly file_id: string;
|
|
382
|
+
readonly index: number;
|
|
383
|
+
} | {
|
|
384
|
+
readonly type: "container_file_citation";
|
|
385
|
+
readonly container_id: string;
|
|
386
|
+
readonly file_id: string;
|
|
387
|
+
readonly start_index: number;
|
|
388
|
+
readonly end_index: number;
|
|
389
|
+
} | {
|
|
390
|
+
readonly type: "file_path";
|
|
391
|
+
readonly file_id: string;
|
|
392
|
+
readonly index: number;
|
|
393
|
+
})[] | undefined;
|
|
394
|
+
} | {
|
|
395
|
+
readonly type: "refusal";
|
|
396
|
+
readonly text: string;
|
|
397
|
+
})[];
|
|
400
398
|
readonly providerData?: unknown;
|
|
401
399
|
};
|
|
402
400
|
declare const isToolCall: <I>(input: I) => input is I & {
|
|
403
|
-
readonly name: string;
|
|
404
401
|
readonly type: "function_call";
|
|
405
402
|
readonly call_id: string;
|
|
403
|
+
readonly name: string;
|
|
406
404
|
readonly arguments: string;
|
|
407
405
|
readonly providerData?: unknown;
|
|
408
406
|
};
|
|
@@ -414,13 +412,25 @@ declare const isToolCallOutput: <I>(input: I) => input is I & {
|
|
|
414
412
|
};
|
|
415
413
|
declare const isReasoning: <I>(input: I) => input is I & {
|
|
416
414
|
readonly type: "reasoning";
|
|
417
|
-
readonly providerData?: unknown;
|
|
418
415
|
readonly id?: string | undefined;
|
|
419
416
|
readonly summary?: string | undefined;
|
|
420
417
|
readonly signature?: string | undefined;
|
|
418
|
+
readonly providerData?: unknown;
|
|
421
419
|
};
|
|
420
|
+
/**
|
|
421
|
+
* Prompt-cache token breakdown. `cached_tokens` is cache reads;
|
|
422
|
+
* `cache_write_tokens` is tokens written to the cache this turn (billed at a
|
|
423
|
+
* premium). Field names mirror the OpenAI Responses usage shape.
|
|
424
|
+
*
|
|
425
|
+
* Whether these are a subset of `input_tokens` or a separate bucket is
|
|
426
|
+
* provider-specific: OpenAI counts cache reads inside `input_tokens`, while
|
|
427
|
+
* Anthropic reports `input_tokens` as post-breakpoint tokens only, with reads
|
|
428
|
+
* and writes as separate additive buckets. Read a provider's usage in its own
|
|
429
|
+
* terms; do not assume one relationship holds everywhere.
|
|
430
|
+
*/
|
|
422
431
|
declare const InputTokensDetails: Schema.Struct<{
|
|
423
432
|
readonly cached_tokens: Schema.optional<Schema.Number>;
|
|
433
|
+
readonly cache_write_tokens: Schema.optional<Schema.Number>;
|
|
424
434
|
}>;
|
|
425
435
|
type InputTokensDetails = typeof InputTokensDetails.Type;
|
|
426
436
|
declare const OutputTokensDetails: Schema.Struct<{
|
|
@@ -433,6 +443,7 @@ declare const Usage: Schema.Struct<{
|
|
|
433
443
|
readonly total_tokens: Schema.optional<Schema.Number>;
|
|
434
444
|
readonly input_tokens_details: Schema.optional<Schema.Struct<{
|
|
435
445
|
readonly cached_tokens: Schema.optional<Schema.Number>;
|
|
446
|
+
readonly cache_write_tokens: Schema.optional<Schema.Number>;
|
|
436
447
|
}>>;
|
|
437
448
|
readonly output_tokens_details: Schema.optional<Schema.Struct<{
|
|
438
449
|
readonly reasoning_tokens: Schema.optional<Schema.Number>;
|
|
@@ -447,4 +458,4 @@ declare const assistantText: (text: string) => Message;
|
|
|
447
458
|
declare const toolCallOutput: (call_id: string, output: string) => ToolCallOutput;
|
|
448
459
|
//#endregion
|
|
449
460
|
export { isReasoning as A, isContainerFileCitation as C, isInputText as D, isInputImage as E, systemText as F, toolCallOutput as I, userText as L, isToolCall as M, isToolCallOutput as N, isMessage as O, isUrlCitation as P, assistantText as S, isFilePath as T, StopReason as _, FilePath as a, UrlCitation as b, InputText as c, Message as d, OutputText as f, Role as g, Refusal as h, FileCitation as i, isRefusal as j, isOutputText as k, InputTokensDetails as l, Reasoning as m, ContainerFileCitation as n, HistoryItem as o, OutputTokensDetails as p, ContentBlock as r, InputImage as s, Annotation as t, Items_d_exports as u, ToolCall as v, isFileCitation as w, Usage as x, ToolCallOutput as y };
|
|
450
|
-
//# sourceMappingURL=Items-
|
|
461
|
+
//# sourceMappingURL=Items-SfUabNuB.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Items-SfUabNuB.d.mts","names":[],"sources":["../src/domain/Items.ts"],"mappings":";;;;;cAOa,WAAS,OAAA;;;;KAIV,mBAAmB,UAAU;;;;;;;;;cAU5B,YAAU,OAAA;;;;KAIX,oBAAoB,WAAW;;;;;;;;;cAgB9B,aAAW,OAAA;;;;;;;;;KASZ,qBAAqB,YAAY;cAEhC,cAAY,OAAA;;;;;KAKb,sBAAsB,aAAa;cAElC,uBAAqB,OAAA;;;;;;;KAOtB,+BAA+B,sBAAsB;cAEpD,UAAQ,OAAA;;;;;KAKT,kBAAkB,SAAS;cAE1B,YAAU,OAAA,gBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;KACX,oBAAoB,WAAW;cAE9B,gBAAa,GAAA,OAAA,MAAA,SAAA;;;;;;;;;cACb,iBAAc,GAAA,OAAA,MAAA,SAAA;;;;;cACd,0BAAuB,GAAA,OAAA,MAAA,SAAA;;;;;;;cACvB,aAAU,GAAA,OAAA,MAAA,SAAA;;;;;cAEV,YAAU,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKX,oBAAoB,WAAW;;;;;;;cAQ9B,SAAO,OAAA;;;;KAIR,iBAAiB,QAAQ;cAExB,cAAY,OAAA,gBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KACb,sBAAsB,aAAa;cAElC,MAAI,OAAA;KACL,cAAc,KAAK;cAqBlB,SAAO,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAMR,iBAAiB,QAAQ;cAExB,UAAQ,OAAA;;;;;;;KAQT,kBAAkB,SAAS;cAE1B,gBAAc,OAAA;;;;;;KAMf,wBAAwB,eAAe;;;;;;;cAQtC,WAAS,OAAA;;;;;;;KAOV,mBAAmB,UAAU;cAE5B,aAAW,OAAA,gBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KACZ,qBAAqB,YAAY;cAMhC,cAAW,GAAA,OAAA,MAAA,SAAA;;;;cACX,eAAY,GAAA,OAAA,MAAA,SAAA;;;;cACZ,eAAY,GAAA,OAAA,MAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cACZ,YAAS,GAAA,OAAA,MAAA,SAAA;;;;cAET,YAAS,GAAA,OAAA,MAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACT,aAAU,GAAA,OAAA,MAAA,SAAA;;;;;;;cACV,mBAAgB,GAAA,OAAA,MAAA,SAAA;;;;;;cAChB,cAAW,GAAA,OAAA,MAAA,SAAA;;;;;;;;;;;;;;;;;;cAiBX,oBAAkB,OAAA;;;;KAInB,4BAA4B,mBAAmB;cAE9C,qBAAmB,OAAA;;;KAGpB,6BAA6B,oBAAoB;cAEhD,OAAK,OAAA;;;;;;;;;;;;KAON,eAAe,MAAM;cAEpB,YAAU,OAAA;KAUX,oBAAoB,WAAW;cAM9B,WAAQ,iBAAmB;cAM3B,aAAU,iBAAmB;cAM7B,gBAAa,iBAAmB;cAMhC,iBAAc,iBAAmB,mBAAmB"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { l as IncompleteTurn } from "./AiError-
|
|
1
|
+
import { l as IncompleteTurn } from "./AiError-eLV9t1lU.mjs";
|
|
2
2
|
import { Turn, TurnEvent } from "./domain/Turn.mjs";
|
|
3
3
|
import { Data, Effect, Stream, SubscriptionRef } from "effect";
|
|
4
|
-
|
|
5
|
-
//#region src/loop/Loop.d.ts
|
|
6
4
|
declare namespace Loop_d_exports {
|
|
7
5
|
export { Next, Step, Stop, StopWith, Value, loop, loopOver, loopWithState, next, onTurnComplete, stop, value };
|
|
8
6
|
}
|
|
@@ -41,23 +39,23 @@ type Step<A, S> = Data.TaggedEnum<{
|
|
|
41
39
|
* single-element-stream wrapping for `next` / `stop`.
|
|
42
40
|
*/
|
|
43
41
|
declare const Value: <A, B>(args: {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
42
|
+
readonly value: A;
|
|
43
|
+
}) => {
|
|
44
|
+
readonly _tag: "Value";
|
|
45
|
+
readonly value: A;
|
|
46
|
+
}, Next: <A, B>(args: {
|
|
47
|
+
readonly state: B;
|
|
48
|
+
}) => {
|
|
49
|
+
readonly _tag: "Next";
|
|
50
|
+
readonly state: B;
|
|
51
|
+
}, Stop: <A, B>(args: void) => {
|
|
52
|
+
readonly _tag: "Stop";
|
|
53
|
+
}, StopWith: <A, B>(args: {
|
|
54
|
+
readonly state: B;
|
|
55
|
+
}) => {
|
|
56
|
+
readonly _tag: "StopWith";
|
|
57
|
+
readonly state: B;
|
|
58
|
+
};
|
|
61
59
|
/** Wrap a value so it flows through the loop to downstream consumers. */
|
|
62
60
|
declare const value: <A>(a: A) => Step<A, never>;
|
|
63
61
|
/**
|
|
@@ -170,4 +168,4 @@ declare const loopWithState: <S, A, E, R>(initial: S, body: LoopBody<S, A, E, R>
|
|
|
170
168
|
}>;
|
|
171
169
|
//#endregion
|
|
172
170
|
export { StopWith as a, loopOver as c, onTurnComplete as d, stop as f, Stop as i, loopWithState as l, Next as n, Value as o, value as p, Step as r, loop as s, Loop_d_exports as t, next as u };
|
|
173
|
-
//# sourceMappingURL=Loop-
|
|
171
|
+
//# sourceMappingURL=Loop-B54AB1ME.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Loop-B54AB1ME.d.mts","names":[],"sources":["../src/loop/Loop.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;KAwDY,KAAK,GAAG,KAAK,KAAK;EAC5B;aAAkB,OAAO;;EACzB;aAAiB,OAAO;;EACxB;EACA;aAAqB,OAAO;;;;;;;;;;;cAiBf,QAAK,GAAA,GAAA;;;;;GAAE,OAAI,GAAA,GAAA;;;;;GAAE,OAAI,GAAA,GAAA;;GAAE,WAAQ,GAAA,GAAA;;;;;;;cAG7B,QAAS,GAAC,GAAK,MAAI,KAAK;;;;;;cAOxB,OAAQ,GAAC,OAAS,MAAI,OAAO,OAAO,YAAY;;;;;;;;cAUhD,OAAQ,WAAS,QAAU,MAAI,OAAO,OAAO,YAAY;;;;;;;;;;;;;;;;;;;;;;;;KA8BjE,iBAAiB,GAAG,GAAG,IAAI,MAC5B,OAAO,OAAO,KAAK,GAAG,IAAI,IAAI,MAC9B,OAAO,OAAO,OAAO,OAAO,KAAK,GAAG,IAAI,IAAI,KAAK,IAAI;cAE5C;GACV,GAAG,GAAG,YAAY,YACjB,OAAO,MAAM,SAAS,iBAAiB,GAAG,GAAG,IAAI,OAC/C,GAAG,GACL,QAAQ,OAAO,OAAO,WAAW,GAAG,OACjC,OAAO,OAAO,KAAK,YAAY,GAAG,IAAI,IAAI,KAAK,gBAAgB,IAAI;GACvE,GAAG,GAAG,GAAG,GAAG,YAAY,YACvB,QAAQ,OAAO,OAAO,WAAW,GAAG,IACpC,OAAO,MAAM,SAAS,iBAAiB,GAAG,GAAG,IAAI,MAChD,OAAO,OAAO,KAAK,YAAY,GAAG,IAAI,IAAI,KAAK,gBAAgB,IAAI;;KA2EnE,SAAS,GAAG,GAAG,GAAG,MACrB,OAAO,MACJ,OAAO,OAAO,KAAK,GAAG,IAAI,GAAG,KAAK,OAAO,OAAO,OAAO,OAAO,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG;;;;;;;;;;cAW5E;GACV,GAAG,GAAG,GAAG,GAAG,MAAM,SAAS,GAAG,GAAG,GAAG,MAAM,SAAS,MAAM,OAAO,OAAO,GAAG,GAAG;GAC7E,GAAG,GAAG,GAAG,GAAG,SAAS,GAAG,MAAM,SAAS,GAAG,GAAG,GAAG,KAAK,OAAO,OAAO,GAAG,GAAG;;KA2FvE,aAAa,GAAG,GAAG,GAAG,GAAG,MAC5B,OAAO,GACP,OAAO,MACJ,OAAO,OAAO,KAAK,GAAG,IAAI,GAAG,KAAK,OAAO,OAAO,OAAO,OAAO,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;cAyB5E;GACV,GAAG,GAAG,GAAG,GAAG,GACX,SAAS,GACT,MAAM,aAAa,GAAG,GAAG,GAAG,GAAG,MAC7B,IAAI,IAAI,OAAO,OAAO,OAAO,GAAG,IAAI,QAAQ,OAAO,OAAO,GAAG,IAAI,IAAI,IAAI;GAC5E,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,IAClB,OAAO,OAAO,OAAO,GAAG,IAAI,KAC5B,SAAS,GACT,MAAM,aAAa,GAAG,GAAG,GAAG,GAAG,KAC9B,OAAO,OAAO,GAAG,IAAI,IAAI,IAAI;;;;;;;;;;;;;;;;;;;;;;cAmErB,gBAAiB,GAAG,GAAG,GAAG,GAAC,SAC7B,GAAC,MACJ,SAAS,GAAG,GAAG,GAAG,OACvB,OAAO;WACC,QAAQ,OAAO,OAAO,GAAG,GAAG;WAC5B,OAAO,gBAAgB,gBAAgB"}
|
|
@@ -54,4 +54,4 @@ declare const isMediaBase64: <M extends string>(s: MediaSource<M>) => s is Media
|
|
|
54
54
|
declare const isMediaBytes: <M extends string>(s: MediaSource<M>) => s is MediaBytes<M>;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { Media_d_exports as a, isMediaUrl as c, MediaUrl as i, MediaBytes as n, isMediaBase64 as o, MediaSource as r, isMediaBytes as s, MediaBase64 as t };
|
|
57
|
-
//# sourceMappingURL=Media-
|
|
57
|
+
//# sourceMappingURL=Media-DwgpifPD.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Media-DwgpifPD.d.mts","names":[],"sources":["../src/domain/Media.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCY,SAAS;WACV;WACA;WACA,WAAW;;KAGV,YAAY;WACb;WACA;WACA,UAAU;;KAGT,WAAW;WACZ;WACA,OAAO;WACP,UAAU;;KAGT,YAAY,6BAA6B,SAAS,KAAK,YAAY,KAAK,WAAW;cAElF,aAAc,kBAAgB,GAAK,YAAY,OAAK,KAAK,SAAS;cAGlE,gBAAiB,kBAAgB,GAAK,YAAY,OAAK,KAAK,YAAY;cAGxE,eAAgB,kBAAgB,GAAK,YAAY,OAAK,KAAK,WAAW"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { Duration } from "effect";
|
|
2
|
-
import * as _$effect_Cause0 from "effect/Cause";
|
|
3
|
-
import * as _$effect_Types0 from "effect/Types";
|
|
4
|
-
|
|
5
|
-
//#region src/sandbox/SandboxError.d.ts
|
|
6
2
|
declare namespace SandboxError_d_exports {
|
|
7
3
|
export { SandboxAlreadyExists, SandboxAuthFailed, SandboxAuthSubtype, SandboxCreateFailed, SandboxError, SandboxExecFailed, SandboxInvalidRequest, SandboxNetworkPolicyDenied, SandboxNotFound, SandboxQuotaExceeded, SandboxTimeout, SandboxUnsupported };
|
|
8
4
|
}
|
|
9
|
-
declare const SandboxCreateFailed_base: new <A extends Record<string, any> = {}>(args:
|
|
5
|
+
declare const SandboxCreateFailed_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
10
6
|
readonly _tag: "SandboxCreateFailed";
|
|
11
7
|
} & Readonly<A>;
|
|
12
8
|
/**
|
|
@@ -20,7 +16,7 @@ declare class SandboxCreateFailed extends SandboxCreateFailed_base<{
|
|
|
20
16
|
reason?: string;
|
|
21
17
|
raw: unknown;
|
|
22
18
|
}> {}
|
|
23
|
-
declare const SandboxNotFound_base: new <A extends Record<string, any> = {}>(args:
|
|
19
|
+
declare const SandboxNotFound_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
24
20
|
readonly _tag: "SandboxNotFound";
|
|
25
21
|
} & Readonly<A>;
|
|
26
22
|
/**
|
|
@@ -32,7 +28,7 @@ declare class SandboxNotFound extends SandboxNotFound_base<{
|
|
|
32
28
|
provider: string;
|
|
33
29
|
id: string;
|
|
34
30
|
}> {}
|
|
35
|
-
declare const SandboxAlreadyExists_base: new <A extends Record<string, any> = {}>(args:
|
|
31
|
+
declare const SandboxAlreadyExists_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
36
32
|
readonly _tag: "SandboxAlreadyExists";
|
|
37
33
|
} & Readonly<A>;
|
|
38
34
|
/**
|
|
@@ -45,7 +41,7 @@ declare class SandboxAlreadyExists extends SandboxAlreadyExists_base<{
|
|
|
45
41
|
provider: string;
|
|
46
42
|
id: string;
|
|
47
43
|
}> {}
|
|
48
|
-
declare const SandboxExecFailed_base: new <A extends Record<string, any> = {}>(args:
|
|
44
|
+
declare const SandboxExecFailed_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
49
45
|
readonly _tag: "SandboxExecFailed";
|
|
50
46
|
} & Readonly<A>;
|
|
51
47
|
/**
|
|
@@ -59,7 +55,7 @@ declare class SandboxExecFailed extends SandboxExecFailed_base<{
|
|
|
59
55
|
reason?: string;
|
|
60
56
|
raw: unknown;
|
|
61
57
|
}> {}
|
|
62
|
-
declare const SandboxTimeout_base: new <A extends Record<string, any> = {}>(args:
|
|
58
|
+
declare const SandboxTimeout_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
63
59
|
readonly _tag: "SandboxTimeout";
|
|
64
60
|
} & Readonly<A>;
|
|
65
61
|
/**
|
|
@@ -72,7 +68,7 @@ declare class SandboxTimeout extends SandboxTimeout_base<{
|
|
|
72
68
|
budget?: Duration.Duration;
|
|
73
69
|
raw?: unknown;
|
|
74
70
|
}> {}
|
|
75
|
-
declare const SandboxNetworkPolicyDenied_base: new <A extends Record<string, any> = {}>(args:
|
|
71
|
+
declare const SandboxNetworkPolicyDenied_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
76
72
|
readonly _tag: "SandboxNetworkPolicyDenied";
|
|
77
73
|
} & Readonly<A>;
|
|
78
74
|
/**
|
|
@@ -89,7 +85,7 @@ declare class SandboxNetworkPolicyDenied extends SandboxNetworkPolicyDenied_base
|
|
|
89
85
|
reason?: string;
|
|
90
86
|
raw: unknown;
|
|
91
87
|
}> {}
|
|
92
|
-
declare const SandboxQuotaExceeded_base: new <A extends Record<string, any> = {}>(args:
|
|
88
|
+
declare const SandboxQuotaExceeded_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
93
89
|
readonly _tag: "SandboxQuotaExceeded";
|
|
94
90
|
} & Readonly<A>;
|
|
95
91
|
/**
|
|
@@ -102,7 +98,7 @@ declare class SandboxQuotaExceeded extends SandboxQuotaExceeded_base<{
|
|
|
102
98
|
reason?: string;
|
|
103
99
|
raw: unknown;
|
|
104
100
|
}> {}
|
|
105
|
-
declare const SandboxInvalidRequest_base: new <A extends Record<string, any> = {}>(args:
|
|
101
|
+
declare const SandboxInvalidRequest_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
106
102
|
readonly _tag: "SandboxInvalidRequest";
|
|
107
103
|
} & Readonly<A>;
|
|
108
104
|
/**
|
|
@@ -123,7 +119,7 @@ declare class SandboxInvalidRequest extends SandboxInvalidRequest_base<{
|
|
|
123
119
|
* mirrors the model-side `AiError.AuthFailed` shape for consistency.
|
|
124
120
|
*/
|
|
125
121
|
type SandboxAuthSubtype = "auth" | "permission" | "billing" | "quota";
|
|
126
|
-
declare const SandboxAuthFailed_base: new <A extends Record<string, any> = {}>(args:
|
|
122
|
+
declare const SandboxAuthFailed_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
127
123
|
readonly _tag: "SandboxAuthFailed";
|
|
128
124
|
} & Readonly<A>;
|
|
129
125
|
declare class SandboxAuthFailed extends SandboxAuthFailed_base<{
|
|
@@ -131,7 +127,7 @@ declare class SandboxAuthFailed extends SandboxAuthFailed_base<{
|
|
|
131
127
|
subtype: SandboxAuthSubtype;
|
|
132
128
|
raw: unknown;
|
|
133
129
|
}> {}
|
|
134
|
-
declare const SandboxUnsupported_base: new <A extends Record<string, any> = {}>(args:
|
|
130
|
+
declare const SandboxUnsupported_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
135
131
|
readonly _tag: "SandboxUnsupported";
|
|
136
132
|
} & Readonly<A>;
|
|
137
133
|
/**
|
|
@@ -155,4 +151,4 @@ declare class SandboxUnsupported extends SandboxUnsupported_base<{
|
|
|
155
151
|
type SandboxError = SandboxCreateFailed | SandboxNotFound | SandboxAlreadyExists | SandboxExecFailed | SandboxTimeout | SandboxNetworkPolicyDenied | SandboxQuotaExceeded | SandboxInvalidRequest | SandboxAuthFailed | SandboxUnsupported;
|
|
156
152
|
//#endregion
|
|
157
153
|
export { SandboxError as a, SandboxInvalidRequest as c, SandboxQuotaExceeded as d, SandboxTimeout as f, SandboxCreateFailed as i, SandboxNetworkPolicyDenied as l, SandboxAuthFailed as n, SandboxError_d_exports as o, SandboxUnsupported as p, SandboxAuthSubtype as r, SandboxExecFailed as s, SandboxAlreadyExists as t, SandboxNotFound as u };
|
|
158
|
-
//# sourceMappingURL=SandboxError-
|
|
154
|
+
//# sourceMappingURL=SandboxError-BN8b28Bh.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SandboxError-BN8b28Bh.d.mts","names":[],"sources":["../src/sandbox/SandboxError.ts"],"mappings":";;;;;;;;;;;;;cAQa,4BAA4B;EACvC;EACA;EACA;;;;;;;;;;cAQW,wBAAwB;EACnC;EACA;;;;;;;;;;;cASW,6BAA6B;EACxC;EACA;;;;;;;;;;;cASW,0BAA0B;EACrC;EACA;EACA;;;;;;;;;cAOW,uBAAuB;EAClC;EACA;EACA,SAAS,SAAS;EAClB;;;;;;;;;;;;;cAWW,mCAAmC;EAC9C;EACA;EACA;EACA;;;;;;;;;;cAQW,6BAA6B;EACxC;EACA;EACA;;;;;;;;;;;;cAUW,8BAA8B;EACzC;EACA;EACA;EACA;;;;;;KAOU;;;;cAEC,0BAA0B;EACrC;EACA,SAAS;EACT;;;;;;;;;;;;;;;;;;cAgBW,2BAA2B;EACtC;EACA;EACA;;KAGU,eACR,sBACA,kBACA,uBACA,oBACA,iBACA,6BACA,uBACA,wBACA,oBACA"}
|