llmist 2.5.0 → 3.0.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/README.md +10 -1
- package/dist/{chunk-YHS2DYXP.js → chunk-67MMSOAT.js} +1144 -799
- package/dist/chunk-67MMSOAT.js.map +1 -0
- package/dist/{chunk-IHSZUAYN.js → chunk-NBPKLSXJ.js} +136 -20
- package/dist/chunk-NBPKLSXJ.js.map +1 -0
- package/dist/cli.cjs +3994 -3128
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +3254 -2748
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +792 -323
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +734 -481
- package/dist/index.d.ts +734 -481
- package/dist/index.js +32 -16
- package/dist/{mock-stream-ga4KIiwX.d.cts → mock-stream-COHw8h9b.d.cts} +441 -58
- package/dist/{mock-stream-ga4KIiwX.d.ts → mock-stream-COHw8h9b.d.ts} +441 -58
- package/dist/testing/index.cjs +1115 -761
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +346 -346
- package/dist/testing/index.d.ts +346 -346
- package/dist/testing/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-IHSZUAYN.js.map +0 -1
- package/dist/chunk-YHS2DYXP.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -2,31 +2,38 @@ import {
|
|
|
2
2
|
Gadget,
|
|
3
3
|
HookPresets,
|
|
4
4
|
createHints,
|
|
5
|
+
createMediaOutput,
|
|
5
6
|
iterationProgressHint,
|
|
6
7
|
parallelGadgetHint,
|
|
8
|
+
resultWithAudio,
|
|
9
|
+
resultWithFile,
|
|
10
|
+
resultWithImage,
|
|
11
|
+
resultWithImages,
|
|
12
|
+
resultWithMedia,
|
|
7
13
|
z
|
|
8
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NBPKLSXJ.js";
|
|
9
15
|
import {
|
|
10
|
-
|
|
16
|
+
AbortException,
|
|
17
|
+
AbstractGadget,
|
|
11
18
|
AgentBuilder,
|
|
12
19
|
AnthropicMessagesProvider,
|
|
13
|
-
BaseGadget,
|
|
14
|
-
BreakLoopException,
|
|
15
20
|
CompactionManager,
|
|
16
21
|
ConversationManager,
|
|
17
22
|
DEFAULT_COMPACTION_CONFIG,
|
|
18
23
|
DEFAULT_HINTS,
|
|
19
24
|
DEFAULT_PROMPTS,
|
|
20
25
|
DEFAULT_SUMMARIZATION_PROMPT,
|
|
26
|
+
GadgetCallParser,
|
|
21
27
|
GadgetExecutor,
|
|
22
28
|
GadgetOutputStore,
|
|
23
29
|
GadgetRegistry,
|
|
24
30
|
GeminiGenerativeProvider,
|
|
25
|
-
|
|
31
|
+
HumanInputRequiredException,
|
|
26
32
|
HybridStrategy,
|
|
27
33
|
LLMMessageBuilder,
|
|
28
34
|
LLMist,
|
|
29
35
|
MODEL_ALIASES,
|
|
36
|
+
MediaStore,
|
|
30
37
|
MockBuilder,
|
|
31
38
|
MockManager,
|
|
32
39
|
MockProviderAdapter,
|
|
@@ -34,9 +41,10 @@ import {
|
|
|
34
41
|
ModelRegistry,
|
|
35
42
|
OpenAIChatProvider,
|
|
36
43
|
SlidingWindowStrategy,
|
|
37
|
-
StreamParser,
|
|
38
44
|
StreamProcessor,
|
|
39
45
|
SummarizationStrategy,
|
|
46
|
+
TaskCompletionSignal,
|
|
47
|
+
TimeoutException,
|
|
40
48
|
audioFromBase64,
|
|
41
49
|
audioFromBuffer,
|
|
42
50
|
collectEvents,
|
|
@@ -56,7 +64,7 @@ import {
|
|
|
56
64
|
detectAudioMimeType,
|
|
57
65
|
detectImageMimeType,
|
|
58
66
|
discoverProviderAdapters,
|
|
59
|
-
|
|
67
|
+
extractMessageText,
|
|
60
68
|
getMockManager,
|
|
61
69
|
getModelId,
|
|
62
70
|
getProvider,
|
|
@@ -69,7 +77,7 @@ import {
|
|
|
69
77
|
isImagePart,
|
|
70
78
|
isTextPart,
|
|
71
79
|
mockLLM,
|
|
72
|
-
|
|
80
|
+
normalizeMessageContent,
|
|
73
81
|
parseDataUrl,
|
|
74
82
|
resolveHintTemplate,
|
|
75
83
|
resolveModel,
|
|
@@ -81,13 +89,12 @@ import {
|
|
|
81
89
|
toBase64,
|
|
82
90
|
validateAndApplyDefaults,
|
|
83
91
|
validateGadgetParams
|
|
84
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-67MMSOAT.js";
|
|
85
93
|
export {
|
|
86
|
-
|
|
94
|
+
AbortException,
|
|
95
|
+
AbstractGadget,
|
|
87
96
|
AgentBuilder,
|
|
88
97
|
AnthropicMessagesProvider,
|
|
89
|
-
BaseGadget,
|
|
90
|
-
BreakLoopException,
|
|
91
98
|
CompactionManager,
|
|
92
99
|
ConversationManager,
|
|
93
100
|
DEFAULT_COMPACTION_CONFIG,
|
|
@@ -95,16 +102,18 @@ export {
|
|
|
95
102
|
DEFAULT_PROMPTS,
|
|
96
103
|
DEFAULT_SUMMARIZATION_PROMPT,
|
|
97
104
|
Gadget,
|
|
105
|
+
GadgetCallParser,
|
|
98
106
|
GadgetExecutor,
|
|
99
107
|
GadgetOutputStore,
|
|
100
108
|
GadgetRegistry,
|
|
101
109
|
GeminiGenerativeProvider,
|
|
102
110
|
HookPresets,
|
|
103
|
-
|
|
111
|
+
HumanInputRequiredException,
|
|
104
112
|
HybridStrategy,
|
|
105
113
|
LLMMessageBuilder,
|
|
106
114
|
LLMist,
|
|
107
115
|
MODEL_ALIASES,
|
|
116
|
+
MediaStore,
|
|
108
117
|
MockBuilder,
|
|
109
118
|
MockManager,
|
|
110
119
|
MockProviderAdapter,
|
|
@@ -112,9 +121,10 @@ export {
|
|
|
112
121
|
ModelRegistry,
|
|
113
122
|
OpenAIChatProvider,
|
|
114
123
|
SlidingWindowStrategy,
|
|
115
|
-
StreamParser,
|
|
116
124
|
StreamProcessor,
|
|
117
125
|
SummarizationStrategy,
|
|
126
|
+
TaskCompletionSignal,
|
|
127
|
+
TimeoutException,
|
|
118
128
|
audioFromBase64,
|
|
119
129
|
audioFromBuffer,
|
|
120
130
|
collectEvents,
|
|
@@ -126,6 +136,7 @@ export {
|
|
|
126
136
|
createGeminiProviderFromEnv,
|
|
127
137
|
createHints,
|
|
128
138
|
createLogger,
|
|
139
|
+
createMediaOutput,
|
|
129
140
|
createMockAdapter,
|
|
130
141
|
createMockClient,
|
|
131
142
|
createMockStream,
|
|
@@ -135,7 +146,7 @@ export {
|
|
|
135
146
|
detectAudioMimeType,
|
|
136
147
|
detectImageMimeType,
|
|
137
148
|
discoverProviderAdapters,
|
|
138
|
-
|
|
149
|
+
extractMessageText,
|
|
139
150
|
getMockManager,
|
|
140
151
|
getModelId,
|
|
141
152
|
getProvider,
|
|
@@ -149,13 +160,18 @@ export {
|
|
|
149
160
|
isTextPart,
|
|
150
161
|
iterationProgressHint,
|
|
151
162
|
mockLLM,
|
|
152
|
-
|
|
163
|
+
normalizeMessageContent,
|
|
153
164
|
parallelGadgetHint,
|
|
154
165
|
parseDataUrl,
|
|
155
166
|
resolveHintTemplate,
|
|
156
167
|
resolveModel,
|
|
157
168
|
resolvePromptTemplate,
|
|
158
169
|
resolveRulesTemplate,
|
|
170
|
+
resultWithAudio,
|
|
171
|
+
resultWithFile,
|
|
172
|
+
resultWithImage,
|
|
173
|
+
resultWithImages,
|
|
174
|
+
resultWithMedia,
|
|
159
175
|
runWithHandlers,
|
|
160
176
|
stream,
|
|
161
177
|
text,
|