@effect-uai/core 0.7.0 → 0.9.0
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-CAX_48RU.d.mts → AiError-CrdR1EQi.d.mts} +2 -2
- package/dist/{AiError-CAX_48RU.d.mts.map → AiError-CrdR1EQi.d.mts.map} +1 -1
- package/dist/{Audio-DPlTsNdz.d.mts → Audio-DDSKCkSe.d.mts} +2 -2
- package/dist/{Audio-DPlTsNdz.d.mts.map → Audio-DDSKCkSe.d.mts.map} +1 -1
- package/dist/{Image-HNmMpMTh.d.mts → Image-C_Zjpwhc.d.mts} +2 -2
- package/dist/{Image-HNmMpMTh.d.mts.map → Image-C_Zjpwhc.d.mts.map} +1 -1
- package/dist/{Items-D8UaXQx_.d.mts → Items-CgKD6Npw.d.mts} +5 -5
- package/dist/{Items-D8UaXQx_.d.mts.map → Items-CgKD6Npw.d.mts.map} +1 -1
- package/dist/Loop-B5_cqumi.d.mts +173 -0
- package/dist/Loop-B5_cqumi.d.mts.map +1 -0
- package/dist/{Media-D_CpcM1Z.d.mts → Media-DOLyaygI.d.mts} +1 -1
- package/dist/{Media-D_CpcM1Z.d.mts.map → Media-DOLyaygI.d.mts.map} +1 -1
- package/dist/{SandboxError-BvKypkJm.d.mts → SandboxError-CIrVDOMV.d.mts} +2 -2
- package/dist/{SandboxError-BvKypkJm.d.mts.map → SandboxError-CIrVDOMV.d.mts.map} +1 -1
- package/dist/{StructuredFormat-BbN4dosH.d.mts → StructuredFormat-CMJFD3sn.d.mts} +2 -2
- package/dist/{StructuredFormat-BbN4dosH.d.mts.map → StructuredFormat-CMJFD3sn.d.mts.map} +1 -1
- package/dist/Tool-0XUIT2A2.d.mts +232 -0
- package/dist/Tool-0XUIT2A2.d.mts.map +1 -0
- package/dist/ToolEvent-DYrAUJGs.d.mts +151 -0
- package/dist/ToolEvent-DYrAUJGs.d.mts.map +1 -0
- package/dist/ToolResult-BZd-cEWW.d.mts +151 -0
- package/dist/ToolResult-BZd-cEWW.d.mts.map +1 -0
- package/dist/Toolkit-BKC8b8Xo.d.mts +155 -0
- package/dist/Toolkit-BKC8b8Xo.d.mts.map +1 -0
- package/dist/{dist-DV5ISja1.mjs → dist-B04dlFHg.mjs} +3 -3
- package/dist/{dist-DV5ISja1.mjs.map → dist-B04dlFHg.mjs.map} +1 -1
- package/dist/dist-DWgRbDN3.mjs +140 -0
- package/dist/dist-DWgRbDN3.mjs.map +1 -0
- package/dist/domain/AiError.d.mts +1 -1
- package/dist/domain/Audio.d.mts +1 -1
- package/dist/domain/Image.d.mts +1 -1
- package/dist/domain/Items.d.mts +1 -1
- package/dist/domain/Media.d.mts +1 -1
- package/dist/domain/Music.d.mts +1 -1
- package/dist/domain/Turn.d.mts +4 -4
- package/dist/domain/Turn.test.mjs +1 -1
- package/dist/embedding-model/Embedding.d.mts +1 -1
- package/dist/embedding-model/EmbeddingModel.d.mts +1 -1
- package/dist/embedding-model/EmbeddingModel.test.mjs +1 -1
- package/dist/embedding-model/EmbeddingModel.test.mjs.map +1 -1
- package/dist/index.d.mts +16 -13
- package/dist/index.mjs +5 -2
- package/dist/language-model/LanguageModel.d.mts +10 -5
- package/dist/language-model/LanguageModel.d.mts.map +1 -1
- package/dist/language-model/LanguageModel.mjs.map +1 -1
- package/dist/language-model/LanguageModel.test.mjs +1 -1
- package/dist/loop/Loop.d.mts +2 -141
- package/dist/loop/Loop.mjs +16 -20
- package/dist/loop/Loop.mjs.map +1 -1
- package/dist/loop/Loop.test.mjs +18 -1
- package/dist/loop/Loop.test.mjs.map +1 -1
- package/dist/{magic-string.es-BgIV5Mu3.mjs → magic-string.es-Dk-MMA0F.mjs} +1 -1
- package/dist/{magic-string.es-BgIV5Mu3.mjs.map → magic-string.es-Dk-MMA0F.mjs.map} +1 -1
- package/dist/music-generator/MusicGenerator.d.mts +2 -2
- package/dist/music-generator/MusicGenerator.test.mjs +1 -1
- package/dist/observability/Metrics.d.mts +116 -28
- package/dist/observability/Metrics.d.mts.map +1 -1
- package/dist/observability/Metrics.mjs +250 -38
- package/dist/observability/Metrics.mjs.map +1 -1
- package/dist/observability/Metrics.test.d.mts +1 -0
- package/dist/observability/Metrics.test.mjs +187 -0
- package/dist/observability/Metrics.test.mjs.map +1 -0
- package/dist/observability/Telemetry.d.mts +37 -0
- package/dist/observability/Telemetry.d.mts.map +1 -0
- package/dist/observability/Telemetry.mjs +57 -0
- package/dist/observability/Telemetry.mjs.map +1 -0
- package/dist/observability/Telemetry.test.d.mts +1 -0
- package/dist/observability/Telemetry.test.mjs +92 -0
- package/dist/observability/Telemetry.test.mjs.map +1 -0
- package/dist/retry/Retry.d.mts +2 -2
- package/dist/retry/Retry.test.mjs +1 -1
- package/dist/sandbox/Sandbox.d.mts +1 -1
- package/dist/sandbox/SandboxError.d.mts +1 -1
- package/dist/speech-synthesizer/SpeechSynthesizer.d.mts +2 -2
- package/dist/speech-synthesizer/SpeechSynthesizer.test.mjs +1 -1
- package/dist/streaming/JSONL.d.mts +1 -1
- package/dist/streaming/JSONL.test.mjs +1 -1
- package/dist/streaming/SSE.test.mjs +1 -1
- package/dist/structured-format/StructuredFormat.d.mts +1 -1
- package/dist/structured-format/StructuredFormat.mjs.map +1 -1
- package/dist/structured-format/StructuredFormat.test.mjs +1 -1
- package/dist/testing/MockMusicGenerator.d.mts +1 -1
- package/dist/testing/MockProvider.d.mts +1 -1
- package/dist/testing/MockSpeechSynthesizer.d.mts +1 -1
- package/dist/tool/Approval.d.mts +3 -3
- package/dist/tool/Approval.test.mjs +35 -34
- package/dist/tool/Approval.test.mjs.map +1 -1
- package/dist/tool/HistoryCheck.d.mts +2 -2
- package/dist/tool/Tool.d.mts +2 -2
- package/dist/tool/Tool.mjs +112 -22
- package/dist/tool/Tool.mjs.map +1 -1
- package/dist/tool/Tool.test.mjs +41 -3
- package/dist/tool/Tool.test.mjs.map +1 -1
- package/dist/tool/ToolEvent.d.mts +2 -151
- package/dist/tool/ToolResult.d.mts +2 -138
- package/dist/tool/ToolResult.mjs +18 -3
- package/dist/tool/ToolResult.mjs.map +1 -1
- package/dist/tool/Toolkit.d.mts +2 -73
- package/dist/tool/Toolkit.mjs +106 -28
- package/dist/tool/Toolkit.mjs.map +1 -1
- package/dist/tool/Toolkit.test.mjs +113 -7
- package/dist/tool/Toolkit.test.mjs.map +1 -1
- package/dist/transcriber/Transcriber.d.mts +2 -2
- package/dist/transcriber/Transcriber.test.mjs +1 -1
- package/dist/web-search/WebSearch.d.mts +119 -0
- package/dist/web-search/WebSearch.d.mts.map +1 -0
- package/dist/web-search/WebSearch.mjs +42 -0
- package/dist/web-search/WebSearch.mjs.map +1 -0
- package/dist/web-search/WebSearchTool.d.mts +58 -0
- package/dist/web-search/WebSearchTool.d.mts.map +1 -0
- package/dist/web-search/WebSearchTool.mjs +69 -0
- package/dist/web-search/WebSearchTool.mjs.map +1 -0
- package/package.json +9 -1
- package/src/embedding-model/EmbeddingModel.test.ts +4 -0
- package/src/index.ts +3 -0
- package/src/language-model/LanguageModel.ts +7 -2
- package/src/loop/Loop.test.ts +22 -0
- package/src/loop/Loop.ts +27 -4
- package/src/observability/Metrics.test.ts +266 -0
- package/src/observability/Metrics.ts +505 -65
- package/src/observability/Telemetry.test.ts +123 -0
- package/src/observability/Telemetry.ts +96 -0
- package/src/structured-format/StructuredFormat.ts +4 -0
- package/src/tool/Approval.test.ts +22 -21
- package/src/tool/Tool.test.ts +55 -2
- package/src/tool/Tool.ts +221 -55
- package/src/tool/ToolResult.ts +22 -1
- package/src/tool/Toolkit.test.ts +168 -7
- package/src/tool/Toolkit.ts +336 -99
- package/src/web-search/WebSearch.ts +150 -0
- package/src/web-search/WebSearchTool.ts +106 -0
- package/dist/Tool-CiFXYjmR.d.mts +0 -102
- package/dist/Tool-CiFXYjmR.d.mts.map +0 -1
- package/dist/loop/Loop.d.mts.map +0 -1
- package/dist/tool/ToolEvent.d.mts.map +0 -1
- package/dist/tool/ToolResult.d.mts.map +0 -1
- package/dist/tool/Toolkit.d.mts.map +0 -1
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { t as ToolResult } from "./ToolResult-BZd-cEWW.mjs";
|
|
2
|
+
import { Data } from "effect";
|
|
3
|
+
import * as _$effect_Unify0 from "effect/Unify";
|
|
4
|
+
|
|
5
|
+
//#region src/tool/ToolEvent.d.ts
|
|
6
|
+
declare namespace ToolEvent_d_exports {
|
|
7
|
+
export { ToolEvent, isApprovalRequested, isOutput, isProgress };
|
|
8
|
+
}
|
|
9
|
+
type ToolEvent = Data.TaggedEnum<{
|
|
10
|
+
ApprovalRequested: {
|
|
11
|
+
readonly call_id: string;
|
|
12
|
+
readonly tool: string;
|
|
13
|
+
readonly arguments: string;
|
|
14
|
+
};
|
|
15
|
+
Progress: {
|
|
16
|
+
readonly call_id: string;
|
|
17
|
+
readonly tool: string;
|
|
18
|
+
readonly data: unknown;
|
|
19
|
+
};
|
|
20
|
+
Output: {
|
|
21
|
+
readonly result: ToolResult;
|
|
22
|
+
};
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Namespace of constructors, type guards, and matchers for `ToolEvent`,
|
|
26
|
+
* provided by `Data.taggedEnum`. Use `ToolEvent.Output({ result })` to build
|
|
27
|
+
* an event, `ToolEvent.$is("Output")` for type narrowing,
|
|
28
|
+
* `ToolEvent.$match({ ApprovalRequested, Progress, Output })` for
|
|
29
|
+
* exhaustive pattern matching.
|
|
30
|
+
*/
|
|
31
|
+
declare const ToolEvent: {
|
|
32
|
+
readonly ApprovalRequested: Data.TaggedEnum.ConstructorFrom<{
|
|
33
|
+
readonly _tag: "ApprovalRequested";
|
|
34
|
+
readonly call_id: string;
|
|
35
|
+
readonly tool: string;
|
|
36
|
+
readonly arguments: string;
|
|
37
|
+
}, "_tag">;
|
|
38
|
+
readonly Progress: Data.TaggedEnum.ConstructorFrom<{
|
|
39
|
+
readonly _tag: "Progress";
|
|
40
|
+
readonly call_id: string;
|
|
41
|
+
readonly tool: string;
|
|
42
|
+
readonly data: unknown;
|
|
43
|
+
}, "_tag">;
|
|
44
|
+
readonly Output: Data.TaggedEnum.ConstructorFrom<{
|
|
45
|
+
readonly _tag: "Output";
|
|
46
|
+
readonly result: ToolResult;
|
|
47
|
+
}, "_tag">;
|
|
48
|
+
readonly $is: <Tag extends "ApprovalRequested" | "Progress" | "Output">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
49
|
+
readonly _tag: "ApprovalRequested";
|
|
50
|
+
readonly call_id: string;
|
|
51
|
+
readonly tool: string;
|
|
52
|
+
readonly arguments: string;
|
|
53
|
+
}, {
|
|
54
|
+
readonly _tag: Tag;
|
|
55
|
+
}> | Extract<{
|
|
56
|
+
readonly _tag: "Progress";
|
|
57
|
+
readonly call_id: string;
|
|
58
|
+
readonly tool: string;
|
|
59
|
+
readonly data: unknown;
|
|
60
|
+
}, {
|
|
61
|
+
readonly _tag: Tag;
|
|
62
|
+
}> | Extract<{
|
|
63
|
+
readonly _tag: "Output";
|
|
64
|
+
readonly result: ToolResult;
|
|
65
|
+
}, {
|
|
66
|
+
readonly _tag: Tag;
|
|
67
|
+
}>;
|
|
68
|
+
readonly $match: {
|
|
69
|
+
<Cases extends {
|
|
70
|
+
readonly ApprovalRequested: (args: {
|
|
71
|
+
readonly _tag: "ApprovalRequested";
|
|
72
|
+
readonly call_id: string;
|
|
73
|
+
readonly tool: string;
|
|
74
|
+
readonly arguments: string;
|
|
75
|
+
}) => any;
|
|
76
|
+
readonly Progress: (args: {
|
|
77
|
+
readonly _tag: "Progress";
|
|
78
|
+
readonly call_id: string;
|
|
79
|
+
readonly tool: string;
|
|
80
|
+
readonly data: unknown;
|
|
81
|
+
}) => any;
|
|
82
|
+
readonly Output: (args: {
|
|
83
|
+
readonly _tag: "Output";
|
|
84
|
+
readonly result: ToolResult;
|
|
85
|
+
}) => any;
|
|
86
|
+
}>(cases: Cases): (value: {
|
|
87
|
+
readonly _tag: "ApprovalRequested";
|
|
88
|
+
readonly call_id: string;
|
|
89
|
+
readonly tool: string;
|
|
90
|
+
readonly arguments: string;
|
|
91
|
+
} | {
|
|
92
|
+
readonly _tag: "Progress";
|
|
93
|
+
readonly call_id: string;
|
|
94
|
+
readonly tool: string;
|
|
95
|
+
readonly data: unknown;
|
|
96
|
+
} | {
|
|
97
|
+
readonly _tag: "Output";
|
|
98
|
+
readonly result: ToolResult;
|
|
99
|
+
}) => _$effect_Unify0.Unify<ReturnType<Cases["ApprovalRequested" | "Progress" | "Output"]>>;
|
|
100
|
+
<Cases extends {
|
|
101
|
+
readonly ApprovalRequested: (args: {
|
|
102
|
+
readonly _tag: "ApprovalRequested";
|
|
103
|
+
readonly call_id: string;
|
|
104
|
+
readonly tool: string;
|
|
105
|
+
readonly arguments: string;
|
|
106
|
+
}) => any;
|
|
107
|
+
readonly Progress: (args: {
|
|
108
|
+
readonly _tag: "Progress";
|
|
109
|
+
readonly call_id: string;
|
|
110
|
+
readonly tool: string;
|
|
111
|
+
readonly data: unknown;
|
|
112
|
+
}) => any;
|
|
113
|
+
readonly Output: (args: {
|
|
114
|
+
readonly _tag: "Output";
|
|
115
|
+
readonly result: ToolResult;
|
|
116
|
+
}) => any;
|
|
117
|
+
}>(value: {
|
|
118
|
+
readonly _tag: "ApprovalRequested";
|
|
119
|
+
readonly call_id: string;
|
|
120
|
+
readonly tool: string;
|
|
121
|
+
readonly arguments: string;
|
|
122
|
+
} | {
|
|
123
|
+
readonly _tag: "Progress";
|
|
124
|
+
readonly call_id: string;
|
|
125
|
+
readonly tool: string;
|
|
126
|
+
readonly data: unknown;
|
|
127
|
+
} | {
|
|
128
|
+
readonly _tag: "Output";
|
|
129
|
+
readonly result: ToolResult;
|
|
130
|
+
}, cases: Cases): _$effect_Unify0.Unify<ReturnType<Cases["ApprovalRequested" | "Progress" | "Output"]>>;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
declare const isApprovalRequested: (u: unknown) => u is {
|
|
134
|
+
readonly _tag: "ApprovalRequested";
|
|
135
|
+
readonly call_id: string;
|
|
136
|
+
readonly tool: string;
|
|
137
|
+
readonly arguments: string;
|
|
138
|
+
};
|
|
139
|
+
declare const isProgress: (u: unknown) => u is {
|
|
140
|
+
readonly _tag: "Progress";
|
|
141
|
+
readonly call_id: string;
|
|
142
|
+
readonly tool: string;
|
|
143
|
+
readonly data: unknown;
|
|
144
|
+
};
|
|
145
|
+
declare const isOutput: (u: unknown) => u is {
|
|
146
|
+
readonly _tag: "Output";
|
|
147
|
+
readonly result: ToolResult;
|
|
148
|
+
};
|
|
149
|
+
//#endregion
|
|
150
|
+
export { isProgress as a, isOutput as i, ToolEvent_d_exports as n, isApprovalRequested as r, ToolEvent as t };
|
|
151
|
+
//# sourceMappingURL=ToolEvent-DYrAUJGs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolEvent-DYrAUJGs.d.mts","names":[],"sources":["../src/tool/ToolEvent.ts"],"mappings":";;;;;;;;KAaY,SAAA,GAAY,IAAA,CAAK,UAAA;EAC3B,iBAAA;IAAA,SACW,OAAA;IAAA,SACA,IAAA;IAAA,SACA,SAAA;EAAA;EAEX,QAAA;IAAA,SACW,OAAA;IAAA,SACA,IAAA;IAAA,SACA,IAAA;EAAA;EAEX,MAAA;IAAA,SACW,MAAA,EAAQ,UAAA;EAAA;AAAA;;;;;AAWrB;;;cAAa,SAAA;EAAA;;;;;;;;;;;;;;qBAXQ,UAAA;EAAA;EAAA;;;;;;;;;;;;;;;;qBAAA,UAAA;EAAA;IAAA;;;;;;;;;;;;;;;;;;yBAAA,UAAA;MAAA;IAAA;;;;;;;;;;;;uBAAA,UAAA;IAAA;;;;;;;;;;;;;;;;yBAAA,UAAA;MAAA;IAAA;;;;;;;;;;;;uBAAA,UAAA;IAAA;;;cAaR,mBAAA,GAAmB,CAAA,cAAA,CAAA;EAAA;;;;;cACnB,UAAA,GAAU,CAAA,cAAA,CAAA;EAAA;;;;;cACV,QAAA,GAAQ,CAAA,cAAA,CAAA;EAAA;mBAfA,UAAA;AAAA"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { v as ToolCall, y as ToolCallOutput } from "./Items-CgKD6Npw.mjs";
|
|
2
|
+
import { Data } from "effect";
|
|
3
|
+
import * as _$effect_Unify0 from "effect/Unify";
|
|
4
|
+
|
|
5
|
+
//#region src/tool/ToolResult.d.ts
|
|
6
|
+
declare namespace ToolResult_d_exports {
|
|
7
|
+
export { ToolResult, cancelled, denied, executionError, failed, isFailure, isOk, nonLocalTool, toToolCallOutput, validationError };
|
|
8
|
+
}
|
|
9
|
+
type ToolResult = Data.TaggedEnum<{
|
|
10
|
+
Ok: {
|
|
11
|
+
readonly call_id: string;
|
|
12
|
+
readonly tool: string;
|
|
13
|
+
readonly value: unknown;
|
|
14
|
+
};
|
|
15
|
+
Failure: {
|
|
16
|
+
readonly call_id: string;
|
|
17
|
+
readonly tool: string;
|
|
18
|
+
readonly kind: string;
|
|
19
|
+
readonly reason?: string;
|
|
20
|
+
};
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Namespace of constructors, type guards, and matchers for `ToolResult`,
|
|
24
|
+
* provided by `Data.taggedEnum`. Use `ToolResult.$is("Ok")` for type
|
|
25
|
+
* narrowing and `ToolResult.$match({ Ok, Failure })` for exhaustive
|
|
26
|
+
* pattern matching. Synthetic-result helpers (`denied`, `cancelled`,
|
|
27
|
+
* `executionError`, `failed`) below are kinder constructors than the
|
|
28
|
+
* raw `ToolResult.Failure(...)`.
|
|
29
|
+
*/
|
|
30
|
+
declare const ToolResult: {
|
|
31
|
+
readonly Ok: Data.TaggedEnum.ConstructorFrom<{
|
|
32
|
+
readonly _tag: "Ok";
|
|
33
|
+
readonly call_id: string;
|
|
34
|
+
readonly tool: string;
|
|
35
|
+
readonly value: unknown;
|
|
36
|
+
}, "_tag">;
|
|
37
|
+
readonly Failure: Data.TaggedEnum.ConstructorFrom<{
|
|
38
|
+
readonly _tag: "Failure";
|
|
39
|
+
readonly call_id: string;
|
|
40
|
+
readonly tool: string;
|
|
41
|
+
readonly kind: string;
|
|
42
|
+
readonly reason?: string;
|
|
43
|
+
}, "_tag">;
|
|
44
|
+
readonly $is: <Tag extends "Ok" | "Failure">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
45
|
+
readonly _tag: "Ok";
|
|
46
|
+
readonly call_id: string;
|
|
47
|
+
readonly tool: string;
|
|
48
|
+
readonly value: unknown;
|
|
49
|
+
}, {
|
|
50
|
+
readonly _tag: Tag;
|
|
51
|
+
}> | Extract<{
|
|
52
|
+
readonly _tag: "Failure";
|
|
53
|
+
readonly call_id: string;
|
|
54
|
+
readonly tool: string;
|
|
55
|
+
readonly kind: string;
|
|
56
|
+
readonly reason?: string;
|
|
57
|
+
}, {
|
|
58
|
+
readonly _tag: Tag;
|
|
59
|
+
}>;
|
|
60
|
+
readonly $match: {
|
|
61
|
+
<Cases extends {
|
|
62
|
+
readonly Ok: (args: {
|
|
63
|
+
readonly _tag: "Ok";
|
|
64
|
+
readonly call_id: string;
|
|
65
|
+
readonly tool: string;
|
|
66
|
+
readonly value: unknown;
|
|
67
|
+
}) => any;
|
|
68
|
+
readonly Failure: (args: {
|
|
69
|
+
readonly _tag: "Failure";
|
|
70
|
+
readonly call_id: string;
|
|
71
|
+
readonly tool: string;
|
|
72
|
+
readonly kind: string;
|
|
73
|
+
readonly reason?: string;
|
|
74
|
+
}) => any;
|
|
75
|
+
}>(cases: Cases): (value: {
|
|
76
|
+
readonly _tag: "Ok";
|
|
77
|
+
readonly call_id: string;
|
|
78
|
+
readonly tool: string;
|
|
79
|
+
readonly value: unknown;
|
|
80
|
+
} | {
|
|
81
|
+
readonly _tag: "Failure";
|
|
82
|
+
readonly call_id: string;
|
|
83
|
+
readonly tool: string;
|
|
84
|
+
readonly kind: string;
|
|
85
|
+
readonly reason?: string;
|
|
86
|
+
}) => _$effect_Unify0.Unify<ReturnType<Cases["Ok" | "Failure"]>>;
|
|
87
|
+
<Cases extends {
|
|
88
|
+
readonly Ok: (args: {
|
|
89
|
+
readonly _tag: "Ok";
|
|
90
|
+
readonly call_id: string;
|
|
91
|
+
readonly tool: string;
|
|
92
|
+
readonly value: unknown;
|
|
93
|
+
}) => any;
|
|
94
|
+
readonly Failure: (args: {
|
|
95
|
+
readonly _tag: "Failure";
|
|
96
|
+
readonly call_id: string;
|
|
97
|
+
readonly tool: string;
|
|
98
|
+
readonly kind: string;
|
|
99
|
+
readonly reason?: string;
|
|
100
|
+
}) => any;
|
|
101
|
+
}>(value: {
|
|
102
|
+
readonly _tag: "Ok";
|
|
103
|
+
readonly call_id: string;
|
|
104
|
+
readonly tool: string;
|
|
105
|
+
readonly value: unknown;
|
|
106
|
+
} | {
|
|
107
|
+
readonly _tag: "Failure";
|
|
108
|
+
readonly call_id: string;
|
|
109
|
+
readonly tool: string;
|
|
110
|
+
readonly kind: string;
|
|
111
|
+
readonly reason?: string;
|
|
112
|
+
}, cases: Cases): _$effect_Unify0.Unify<ReturnType<Cases["Ok" | "Failure"]>>;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
declare const isOk: (u: unknown) => u is {
|
|
116
|
+
readonly _tag: "Ok";
|
|
117
|
+
readonly call_id: string;
|
|
118
|
+
readonly tool: string;
|
|
119
|
+
readonly value: unknown;
|
|
120
|
+
};
|
|
121
|
+
declare const isFailure: (u: unknown) => u is {
|
|
122
|
+
readonly _tag: "Failure";
|
|
123
|
+
readonly call_id: string;
|
|
124
|
+
readonly tool: string;
|
|
125
|
+
readonly kind: string;
|
|
126
|
+
readonly reason?: string;
|
|
127
|
+
};
|
|
128
|
+
declare const failed: (call: ToolCall, kind: string, reason?: string) => ToolResult;
|
|
129
|
+
/** Explicit user/policy rejection. */
|
|
130
|
+
declare const denied: (call: ToolCall, reason?: string) => ToolResult;
|
|
131
|
+
/** Implicit non-answer (follow-up, inactivity, abort). */
|
|
132
|
+
declare const cancelled: (call: ToolCall, reason?: string) => ToolResult;
|
|
133
|
+
/** Tool's own execution failed (JSON parse error, runtime crash). */
|
|
134
|
+
declare const executionError: (call: ToolCall, reason: string) => ToolResult;
|
|
135
|
+
/**
|
|
136
|
+
* The model called a tool that is visible to it but has no local executor — a
|
|
137
|
+
* provider-hosted, signal, or interaction tool routed through `Toolkit.run`.
|
|
138
|
+
* Distinct from `unknown_tool` (no such tool at all): the loop is expected to
|
|
139
|
+
* intercept these kinds before execution, so this kind flags a missing handler.
|
|
140
|
+
*/
|
|
141
|
+
declare const nonLocalTool: (call: ToolCall, reason?: string) => ToolResult;
|
|
142
|
+
/**
|
|
143
|
+
* The model's `arguments` failed the tool's input schema. Distinct kind from
|
|
144
|
+
* `execution_error` so recipes can tell a contract violation apart from a
|
|
145
|
+
* runtime crash.
|
|
146
|
+
*/
|
|
147
|
+
declare const validationError: (call: ToolCall, reason?: string) => ToolResult;
|
|
148
|
+
declare const toToolCallOutput: (r: ToolResult) => ToolCallOutput;
|
|
149
|
+
//#endregion
|
|
150
|
+
export { executionError as a, isOk as c, validationError as d, denied as i, nonLocalTool as l, ToolResult_d_exports as n, failed as o, cancelled as r, isFailure as s, ToolResult as t, toToolCallOutput as u };
|
|
151
|
+
//# sourceMappingURL=ToolResult-BZd-cEWW.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolResult-BZd-cEWW.d.mts","names":[],"sources":["../src/tool/ToolResult.ts"],"mappings":";;;;;;;;KAqBY,UAAA,GAAa,IAAA,CAAK,UAAA;EAC5B,EAAA;IAAA,SACW,OAAA;IAAA,SACA,IAAA;IAAA,SACA,KAAA;EAAA;EAEX,OAAA;IAAA,SACW,OAAA;IAAA,SACA,IAAA;IAAA,SACA,IAAA;IAAA,SACA,MAAA;EAAA;AAAA;;;;;;;;AAYb;cAAa,UAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEA,IAAA,GAAI,CAAA,cAAA,CAAA;EAAA;;;;;cACJ,SAAA,GAAS,CAAA,cAAA,CAAA;EAAA;;;;;;cAMT,MAAA,GAAU,IAAA,EAAM,QAAA,EAAU,IAAA,UAAc,MAAA,cAAkB,UAAA;;cAS1D,MAAA,GAAU,IAAA,EAAM,QAAA,EAAU,MAAA,cAAkB,UAAA;;cAI5C,SAAA,GAAa,IAAA,EAAM,QAAA,EAAU,MAAA,cAAkB,UAAA;;cAI/C,cAAA,GAAkB,IAAA,EAAM,QAAA,EAAU,MAAA,aAAiB,UAAA;;;;;;;cASnD,YAAA,GAAgB,IAAA,EAAM,QAAA,EAAU,MAAA,cAAkB,UAAA;;;;;;cAYlD,eAAA,GAAmB,IAAA,EAAM,QAAA,EAAU,MAAA,cAAkB,UAAA;AAAA,cAOrD,gBAAA,GAAoB,CAAA,EAAG,UAAA,KAAa,cAAA"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { o as HistoryItem, v as ToolCall } from "./Items-CgKD6Npw.mjs";
|
|
2
|
+
import { Turn } from "./domain/Turn.mjs";
|
|
3
|
+
import { r as Step } from "./Loop-B5_cqumi.mjs";
|
|
4
|
+
import { a as InteractionTool, c as Tool, f as ToolR, i as Emit, l as ToolDescriptor, n as AnyTool, o as ProviderTool, s as SignalTool } from "./Tool-0XUIT2A2.mjs";
|
|
5
|
+
import { t as ToolResult } from "./ToolResult-BZd-cEWW.mjs";
|
|
6
|
+
import { t as ToolEvent } from "./ToolEvent-DYrAUJGs.mjs";
|
|
7
|
+
import { Cause, Effect, Stream } from "effect";
|
|
8
|
+
import * as _$effect_Types0 from "effect/Types";
|
|
9
|
+
|
|
10
|
+
//#region src/tool/Toolkit.d.ts
|
|
11
|
+
declare namespace Toolkit_d_exports {
|
|
12
|
+
export { DuplicateToolName, ExecuteOptions, Middleware, NoDuplicateNames, ToolMap, Toolkit, ToolkitR, UniqueTools, appendToolResults, collectResults, compose, continueWithResults, descriptors, fromArray, make, makeNamespaced, namespace, run, wrap };
|
|
13
|
+
}
|
|
14
|
+
type ToolMap = Record<string, AnyTool>;
|
|
15
|
+
type Toolkit<Tools extends ToolMap = ToolMap> = Tools;
|
|
16
|
+
declare const make: <const Tools extends ReadonlyArray<AnyTool>>(...tools: UniqueTools<Tools>) => Toolkit<{ [T in Tools[number] as T["name"]]: T }>;
|
|
17
|
+
/**
|
|
18
|
+
* Build a toolkit from a dynamically-sourced array (MCP server, plugin). Names
|
|
19
|
+
* are not validated (MCP legitimately uses dots / >64 chars — sanitize at the
|
|
20
|
+
* provider adapter); same-named tools resolve last-wins. Cross-source clashes
|
|
21
|
+
* are caught by `compose`.
|
|
22
|
+
*/
|
|
23
|
+
declare const fromArray: (tools: ReadonlyArray<AnyTool>) => Toolkit;
|
|
24
|
+
/** Render the provider-facing descriptors for a toolkit on demand. */
|
|
25
|
+
declare const descriptors: (toolkit: Toolkit) => ReadonlyArray<ToolDescriptor>;
|
|
26
|
+
/**
|
|
27
|
+
* Union of every tool's `R` requirements in a toolkit. Surfaced by `run` so the
|
|
28
|
+
* loop's stream type carries the services tools need through to `Effect.provide`.
|
|
29
|
+
*
|
|
30
|
+
* The `ToolMap extends T` guard yields `never` for the wide `Toolkit` type (a
|
|
31
|
+
* toolkit passed through an untyped boundary, where the requirements aren't
|
|
32
|
+
* statically known) instead of `any`, which would otherwise poison the
|
|
33
|
+
* resulting stream's `R`. Concrete toolkits from `make` keep their precise R.
|
|
34
|
+
*/
|
|
35
|
+
type ToolkitR<T extends Toolkit> = ToolMap extends T ? never : ToolR<T[keyof T]>;
|
|
36
|
+
type DuplicateName<Tools extends ReadonlyArray<AnyTool>, Seen extends string = never> = Tools extends readonly [infer Head extends AnyTool, ...infer Tail extends ReadonlyArray<AnyTool>] ? Head["name"] extends Seen ? Head["name"] : DuplicateName<Tail, Seen | Head["name"]> : never;
|
|
37
|
+
type DuplicateNameError<Name extends string> = {
|
|
38
|
+
readonly __error: `Duplicate tool name: ${Name}`;
|
|
39
|
+
};
|
|
40
|
+
type NoDuplicateNames<Tools extends ReadonlyArray<AnyTool>> = [DuplicateName<Tools>] extends [never] ? unknown : DuplicateNameError<DuplicateName<Tools>>;
|
|
41
|
+
/** `Tools` constrained so a repeated literal name is a compile error in `make`. */
|
|
42
|
+
type UniqueTools<Tools extends ReadonlyArray<AnyTool>> = Tools & NoDuplicateNames<Tools>;
|
|
43
|
+
type ComposeDuplicateKey<Kits extends ReadonlyArray<Toolkit>, Seen extends string = never> = Kits extends readonly [infer Head extends Toolkit, ...infer Tail extends ReadonlyArray<Toolkit>] ? string extends keyof Head ? ComposeDuplicateKey<Tail, Seen> : Extract<keyof Head & string, Seen> extends never ? ComposeDuplicateKey<Tail, Seen | (keyof Head & string)> : Extract<keyof Head & string, Seen> : never;
|
|
44
|
+
type NoDuplicateComposedKeys<Kits extends ReadonlyArray<Toolkit>> = [ComposeDuplicateKey<Kits>] extends [never] ? unknown : DuplicateNameError<ComposeDuplicateKey<Kits>>;
|
|
45
|
+
type UnionToIntersection<U> = (U extends unknown ? (x: U) => void : never) extends ((x: infer I) => void) ? I : never;
|
|
46
|
+
type Composed<Kits extends ReadonlyArray<Toolkit>> = UnionToIntersection<Kits[number]> extends infer M ? (M extends ToolMap ? M : ToolMap) : ToolMap;
|
|
47
|
+
declare const DuplicateToolName_base: new <A extends Record<string, any> = {}>(args: _$effect_Types0.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P] }>) => Cause.YieldableError & {
|
|
48
|
+
readonly _tag: "DuplicateToolName";
|
|
49
|
+
} & Readonly<A>;
|
|
50
|
+
/**
|
|
51
|
+
* Two composed toolkits resolved to the same final name. Carries the colliding
|
|
52
|
+
* `sources` (the positions of the clashing toolkits) so the error says *which*
|
|
53
|
+
* inputs collided. Raised at runtime by `compose` for dynamic sources; static
|
|
54
|
+
* collisions are caught earlier at compile time.
|
|
55
|
+
*/
|
|
56
|
+
declare class DuplicateToolName extends DuplicateToolName_base<{
|
|
57
|
+
readonly name: string;
|
|
58
|
+
readonly sources: ReadonlyArray<string>;
|
|
59
|
+
}> {}
|
|
60
|
+
type PrefixName<Prefix extends string, Name extends string> = `${Prefix}__${Name}`;
|
|
61
|
+
type PrefixTool<Prefix extends string, T extends AnyTool> = T extends Tool<infer N, infer I, infer Ev, infer O, infer R> ? Tool<PrefixName<Prefix, N>, I, Ev, O, R> : T extends ProviderTool<infer N, infer I, infer P, infer C> ? ProviderTool<PrefixName<Prefix, N>, I, P, C> : T extends SignalTool<infer N, infer I> ? SignalTool<PrefixName<Prefix, N>, I> : T extends InteractionTool<infer N, infer I> ? InteractionTool<PrefixName<Prefix, N>, I> : T;
|
|
62
|
+
type Namespaced<Prefix extends string, T extends ToolMap> = { readonly [K in keyof T & string as PrefixName<Prefix, K>]: T[K] extends AnyTool ? PrefixTool<Prefix, T[K]> : never };
|
|
63
|
+
/**
|
|
64
|
+
* Prefix every tool name with `<namespace>__`, returning a new toolkit. Use it
|
|
65
|
+
* to keep generic names (`search`) from two sources distinct before `compose`.
|
|
66
|
+
* If two namespaces collide at the `__` separator, the duplicate final name
|
|
67
|
+
* surfaces from `compose` as a `DuplicateToolName`.
|
|
68
|
+
*/
|
|
69
|
+
declare const namespace: <const Prefix extends string, const T extends ToolMap>(prefix: Prefix, toolkit: Toolkit<T>) => Toolkit<Namespaced<Prefix, T>>;
|
|
70
|
+
/** `namespace(prefix, make(...tools))` in one step, for static namespaced tools. */
|
|
71
|
+
declare const makeNamespaced: <const Prefix extends string, const Tools extends ReadonlyArray<AnyTool>>(prefix: Prefix, ...tools: UniqueTools<Tools>) => Toolkit<Namespaced<Prefix, { [T in Tools[number] as T["name"]]: T }>>;
|
|
72
|
+
/**
|
|
73
|
+
* Combine independently-built toolkits into one. This is where names from
|
|
74
|
+
* separate sources can collide, so it is the one effectful constructor: a
|
|
75
|
+
* duplicate final name fails with `DuplicateToolName` (naming the colliding
|
|
76
|
+
* input positions) instead of silently overwriting or 400-ing later at the
|
|
77
|
+
* provider. Statically-known collisions are additionally a compile error.
|
|
78
|
+
*/
|
|
79
|
+
declare const compose: <const Kits extends ReadonlyArray<Toolkit>>(...toolkits: Kits & NoDuplicateComposedKeys<Kits>) => Effect.Effect<Toolkit<Composed<Kits>>, DuplicateToolName>;
|
|
80
|
+
type Handler<Input, Event, Output, R> = (input: Input, emit: Emit<Event>) => Effect.Effect<Output, unknown, R>;
|
|
81
|
+
type Middleware<R2 = never> = <Input, Event, Output, R>(run: Handler<Input, Event, Output, R>, name: string) => Handler<Input, Event, Output, R | R2>;
|
|
82
|
+
type WrapTool<T extends AnyTool, R2> = T extends Tool<infer N, infer I, infer Ev, infer O, infer R> ? Tool<N, I, Ev, O, R | R2> : T;
|
|
83
|
+
type WrapToolkit<T extends ToolMap, R2> = { readonly [K in keyof T]: T[K] extends AnyTool ? WrapTool<T[K], R2> : T[K] };
|
|
84
|
+
/**
|
|
85
|
+
* Wrap every local tool's `run` with a middleware, preserving each tool's
|
|
86
|
+
* `Input`/`Output` and unioning the middleware's requirement `R2` into the
|
|
87
|
+
* toolkit's `ToolkitR`. Non-local kinds pass through unchanged. Stack with
|
|
88
|
+
* `pipe`:
|
|
89
|
+
*
|
|
90
|
+
* const observed = pipe(toolkit, Toolkit.wrap(logging), Toolkit.wrap(authz))
|
|
91
|
+
* Toolkit.run(observed, calls) // R = ToolkitR<typeof toolkit> | <authz R>
|
|
92
|
+
*
|
|
93
|
+
* A middleware that `Effect.fail`s surfaces as a `ToolResult.Failure` from the
|
|
94
|
+
* executor like any run failure; use the `Approval` flow for a distinct
|
|
95
|
+
* "denied" verdict.
|
|
96
|
+
*/
|
|
97
|
+
declare const wrap: {
|
|
98
|
+
<R2>(middleware: Middleware<R2>): <T extends Toolkit>(toolkit: T) => WrapToolkit<T, R2>;
|
|
99
|
+
<T extends Toolkit, R2>(toolkit: T, middleware: Middleware<R2>): WrapToolkit<T, R2>;
|
|
100
|
+
};
|
|
101
|
+
type ExecuteOptions = {
|
|
102
|
+
readonly concurrency?: number | "unbounded";
|
|
103
|
+
};
|
|
104
|
+
/** Execute every provided call. Approval/rejection policy belongs upstream. */
|
|
105
|
+
declare const run: <T extends Toolkit>(toolkit: T, calls: ReadonlyArray<ToolCall>, options?: ExecuteOptions) => Stream.Stream<ToolEvent, never, ToolkitR<T>>;
|
|
106
|
+
/**
|
|
107
|
+
* Append a completed turn plus tool results to a state's history, converting
|
|
108
|
+
* the results to wire-format `ToolCallOutput`s. Curried so it slots directly
|
|
109
|
+
* into `continueWithResults`:
|
|
110
|
+
*
|
|
111
|
+
* Toolkit.run(toolkit, calls).pipe(
|
|
112
|
+
* Toolkit.continueWithResults(Toolkit.appendToolResults(state, turn)),
|
|
113
|
+
* )
|
|
114
|
+
*
|
|
115
|
+
* Equivalent to `appendToHistory(state, turn, results.map(toToolCallOutput))`
|
|
116
|
+
* — the helper just hides the wire-conversion step.
|
|
117
|
+
*/
|
|
118
|
+
declare const appendToolResults: <S extends {
|
|
119
|
+
readonly history: ReadonlyArray<HistoryItem>;
|
|
120
|
+
}>(state: S, turn: Turn) => (results: ReadonlyArray<ToolResult>) => S;
|
|
121
|
+
/**
|
|
122
|
+
* Drain a `Stream<ToolEvent>` and return the accumulated `ToolResult`s
|
|
123
|
+
* from every `Output` event. One-shot — the type is `Effect<results>`,
|
|
124
|
+
* not a one-element stream — so it composes naturally with `Effect.map`
|
|
125
|
+
* to build state.
|
|
126
|
+
*
|
|
127
|
+
* Counterpart to `continueWithResults`: `continueWithResults` bundles
|
|
128
|
+
* drain + emit Next into one bridge; this one is the right arm of a
|
|
129
|
+
* broadcast/fork-and-merge for callers that want to vary the left arm
|
|
130
|
+
* (e.g., filter/tap ToolEvents before forwarding).
|
|
131
|
+
*/
|
|
132
|
+
declare const collectResults: <E, R>(stream: Stream.Stream<ToolEvent, E, R>) => Effect.Effect<ReadonlyArray<ToolResult>, E, R>;
|
|
133
|
+
/**
|
|
134
|
+
* Bridge from a `Stream<ToolEvent>` to the loop's emit shape. Forwards
|
|
135
|
+
* every ToolEvent downstream as a `Loop.value` and at end-of-stream emits
|
|
136
|
+
* one `Loop.next(build(results))` carrying the accumulated `ToolResult`s
|
|
137
|
+
* from terminal `Output` events.
|
|
138
|
+
*
|
|
139
|
+
* Conceptually a broadcast fork (one arm passes events through, the other
|
|
140
|
+
* drains them into a state). Implemented as a single-pass Ref tap + concat
|
|
141
|
+
* for zero buffering — the broadcast version is observationally equivalent
|
|
142
|
+
* but holds events in a PubSub until both arms drain. The public primitives
|
|
143
|
+
* (`Loop.value`, `collectResults`, `Loop.next`) compose the same pattern
|
|
144
|
+
* when you need to vary an arm.
|
|
145
|
+
*
|
|
146
|
+
* Dual: data-first `continueWithResults(stream, build)` and data-last
|
|
147
|
+
* `stream.pipe(continueWithResults(build))` both work.
|
|
148
|
+
*/
|
|
149
|
+
declare const continueWithResults: {
|
|
150
|
+
<S>(build: (results: ReadonlyArray<ToolResult>) => S): <R>(stream: Stream.Stream<ToolEvent, never, R>) => Stream.Stream<Step<ToolEvent, S>, never, R>;
|
|
151
|
+
<S, R>(stream: Stream.Stream<ToolEvent, never, R>, build: (results: ReadonlyArray<ToolResult>) => S): Stream.Stream<Step<ToolEvent, S>, never, R>;
|
|
152
|
+
};
|
|
153
|
+
//#endregion
|
|
154
|
+
export { makeNamespaced as _, ToolMap as a, wrap as b, Toolkit_d_exports as c, collectResults as d, compose as f, make as g, fromArray as h, NoDuplicateNames as i, UniqueTools as l, descriptors as m, ExecuteOptions as n, Toolkit as o, continueWithResults as p, Middleware as r, ToolkitR as s, DuplicateToolName as t, appendToolResults as u, namespace as v, run as y };
|
|
155
|
+
//# sourceMappingURL=Toolkit-BKC8b8Xo.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toolkit-BKC8b8Xo.d.mts","names":[],"sources":["../src/tool/Toolkit.ts"],"mappings":";;;;;;;;;;;;;KAkDY,OAAA,GAAU,MAAA,SAAe,OAAA;AAAA,KAEzB,OAAA,eAAsB,OAAA,GAAU,OAAA,IAAW,KAAA;AAAA,cAgB1C,IAAA,uBAA4B,aAAA,CAAc,OAA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AA,CAAO,SAAA,SAAkB,QAAA,CAAS,CAAA;;;;;;;;;;;;;cAmG/B,iBAAA;EAAA,SACW,OAAA,EAAS,aAAA,CAAc,WAAA;AAAA,GAAgB,KAAA,EAAO,CAAA,EAAG,IAAA,EAAM,IAAA,MAC5E,OAAA,EAAS,aAAA,CAAc,UAAA,MAAc,CAAA;;;;;;;;;;;;cAc3B,cAAA,SACX,MAAA,EAAQ,MAAA,CAAO,MAAA,CAAO,SAAA,EAAW,CAAA,EAAG,CAAA,MACnC,MAAA,CAAO,MAAA,CAAO,aAAA,CAAc,UAAA,GAAa,CAAA,EAAG,CAAA;;;;;;;;;;;;;;;;;cAuBlC,mBAAA;EAAA,IAET,KAAA,GAAQ,OAAA,EAAS,aAAA,CAAc,UAAA,MAAgB,CAAA,OAE/C,MAAA,EAAQ,MAAA,CAAO,MAAA,CAAO,SAAA,SAAkB,CAAA,MACrC,MAAA,CAAO,MAAA,CAAO,IAAA,CAAU,SAAA,EAAW,CAAA,UAAW,CAAA;EAAA,OAEjD,MAAA,EAAQ,MAAA,CAAO,MAAA,CAAO,SAAA,SAAkB,CAAA,GACxC,KAAA,GAAQ,OAAA,EAAS,aAAA,CAAc,UAAA,MAAgB,CAAA,GAC9C,MAAA,CAAO,MAAA,CAAO,IAAA,CAAU,SAAA,EAAW,CAAA,UAAW,CAAA;AAAA"}
|
|
@@ -10243,7 +10243,7 @@ function memo(fn) {
|
|
|
10243
10243
|
};
|
|
10244
10244
|
}
|
|
10245
10245
|
async function saveInlineSnapshots(environment, snapshots) {
|
|
10246
|
-
const MagicString = (await import("./magic-string.es-
|
|
10246
|
+
const MagicString = (await import("./magic-string.es-Dk-MMA0F.mjs")).default;
|
|
10247
10247
|
const files = new Set(snapshots.map((i) => i.file));
|
|
10248
10248
|
await Promise.all(Array.from(files).map(async (file) => {
|
|
10249
10249
|
const snaps = snapshots.filter((i) => i.file === file);
|
|
@@ -13777,6 +13777,6 @@ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
13777
13777
|
exports.expectTypeOf = expectTypeOf;
|
|
13778
13778
|
})))();
|
|
13779
13779
|
//#endregion
|
|
13780
|
-
export {
|
|
13780
|
+
export { describe as a, beforeAll as i, globalExpect as n, it as o, afterAll as r, import_dist as t };
|
|
13781
13781
|
|
|
13782
|
-
//# sourceMappingURL=dist-
|
|
13782
|
+
//# sourceMappingURL=dist-B04dlFHg.mjs.map
|