hoomanjs 1.36.0 → 1.37.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 +17 -13
- package/dist/chat/app.js +117 -1
- package/dist/chat/app.js.map +1 -1
- package/dist/chat/components/BottomChrome.d.ts +2 -1
- package/dist/chat/components/BottomChrome.js +2 -2
- package/dist/chat/components/BottomChrome.js.map +1 -1
- package/dist/chat/components/ReasoningStrip.js +3 -1
- package/dist/chat/components/ReasoningStrip.js.map +1 -1
- package/dist/chat/components/StatusBar.d.ts +2 -1
- package/dist/chat/components/StatusBar.js +18 -3
- package/dist/chat/components/StatusBar.js.map +1 -1
- package/dist/chat/components/ThoughtEvent.d.ts +3 -1
- package/dist/chat/components/ThoughtEvent.js +6 -2
- package/dist/chat/components/ThoughtEvent.js.map +1 -1
- package/dist/chat/components/Transcript.d.ts +5 -2
- package/dist/chat/components/Transcript.js +4 -4
- package/dist/chat/components/Transcript.js.map +1 -1
- package/dist/cli.js +23 -0
- package/dist/cli.js.map +1 -1
- package/dist/configure/app.js +287 -68
- package/dist/configure/app.js.map +1 -1
- package/dist/configure/components/MenuScreen.js +29 -5
- package/dist/configure/components/MenuScreen.js.map +1 -1
- package/dist/configure/types.d.ts +8 -2
- package/dist/core/config.d.ts +352 -22
- package/dist/core/config.js +40 -0
- package/dist/core/config.js.map +1 -1
- package/dist/core/models/anthropic.d.ts +7 -1
- package/dist/core/models/anthropic.js +36 -7
- package/dist/core/models/anthropic.js.map +1 -1
- package/dist/core/models/azure.js +13 -0
- package/dist/core/models/azure.js.map +1 -1
- package/dist/core/models/bedrock.js +33 -0
- package/dist/core/models/bedrock.js.map +1 -1
- package/dist/core/models/google.js +5 -0
- package/dist/core/models/google.js.map +1 -1
- package/dist/core/models/groq.js +14 -0
- package/dist/core/models/groq.js.map +1 -1
- package/dist/core/models/minimax.js +2 -2
- package/dist/core/models/minimax.js.map +1 -1
- package/dist/core/models/moonshot.js +5 -0
- package/dist/core/models/moonshot.js.map +1 -1
- package/dist/core/models/ollama/index.js +5 -3
- package/dist/core/models/ollama/index.js.map +1 -1
- package/dist/core/models/openai.js +21 -1
- package/dist/core/models/openai.js.map +1 -1
- package/dist/core/models/openrouter.d.ts +2 -2
- package/dist/core/models/openrouter.js +28 -10
- package/dist/core/models/openrouter.js.map +1 -1
- package/dist/core/models/types.d.ts +759 -51
- package/dist/core/models/types.js +43 -7
- package/dist/core/models/types.js.map +1 -1
- package/dist/core/models/xai.js +12 -0
- package/dist/core/models/xai.js.map +1 -1
- package/dist/core/session-config.d.ts +10 -1
- package/dist/core/session-config.js +16 -0
- package/dist/core/session-config.js.map +1 -1
- package/dist/core/skills/built-in/hooman-config/SKILL.md +20 -12
- package/dist/core/state/todos.d.ts +4 -4
- package/dist/core/tools/todo.d.ts +1 -1
- package/dist/core/tools/web-search.js +56 -1
- package/dist/core/tools/web-search.js.map +1 -1
- package/package.json +2 -1
package/dist/core/config.d.ts
CHANGED
|
@@ -9,10 +9,24 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
9
9
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
10
10
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
11
11
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
minimal: "minimal";
|
|
15
|
+
low: "low";
|
|
16
|
+
medium: "medium";
|
|
17
|
+
high: "high";
|
|
18
|
+
}>>;
|
|
19
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
auto: "auto";
|
|
21
|
+
concise: "concise";
|
|
22
|
+
detailed: "detailed";
|
|
23
|
+
none: "none";
|
|
24
|
+
}>>;
|
|
25
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
summarized: "summarized";
|
|
27
|
+
omitted: "omitted";
|
|
28
|
+
}>>;
|
|
29
|
+
}, z.core.$strict>>;
|
|
16
30
|
}, z.core.$strict>;
|
|
17
31
|
}, z.core.$strict>, z.ZodObject<{
|
|
18
32
|
name: z.ZodString;
|
|
@@ -24,6 +38,24 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
24
38
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
25
39
|
apiVersion: z.ZodOptional<z.ZodString>;
|
|
26
40
|
useDeploymentBasedUrls: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
minimal: "minimal";
|
|
44
|
+
low: "low";
|
|
45
|
+
medium: "medium";
|
|
46
|
+
high: "high";
|
|
47
|
+
}>>;
|
|
48
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
49
|
+
auto: "auto";
|
|
50
|
+
concise: "concise";
|
|
51
|
+
detailed: "detailed";
|
|
52
|
+
none: "none";
|
|
53
|
+
}>>;
|
|
54
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
summarized: "summarized";
|
|
56
|
+
omitted: "omitted";
|
|
57
|
+
}>>;
|
|
58
|
+
}, z.core.$strict>>;
|
|
27
59
|
}, z.core.$strict>;
|
|
28
60
|
}, z.core.$strict>, z.ZodObject<{
|
|
29
61
|
name: z.ZodString;
|
|
@@ -34,12 +66,48 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
34
66
|
secretAccessKey: z.ZodOptional<z.ZodString>;
|
|
35
67
|
sessionToken: z.ZodOptional<z.ZodString>;
|
|
36
68
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
69
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
70
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
minimal: "minimal";
|
|
72
|
+
low: "low";
|
|
73
|
+
medium: "medium";
|
|
74
|
+
high: "high";
|
|
75
|
+
}>>;
|
|
76
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
77
|
+
auto: "auto";
|
|
78
|
+
concise: "concise";
|
|
79
|
+
detailed: "detailed";
|
|
80
|
+
none: "none";
|
|
81
|
+
}>>;
|
|
82
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
83
|
+
summarized: "summarized";
|
|
84
|
+
omitted: "omitted";
|
|
85
|
+
}>>;
|
|
86
|
+
}, z.core.$strict>>;
|
|
37
87
|
}, z.core.$strict>;
|
|
38
88
|
}, z.core.$strict>, z.ZodObject<{
|
|
39
89
|
name: z.ZodString;
|
|
40
90
|
provider: z.ZodLiteral<LlmProvider.Google>;
|
|
41
91
|
options: z.ZodObject<{
|
|
42
92
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
93
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
95
|
+
minimal: "minimal";
|
|
96
|
+
low: "low";
|
|
97
|
+
medium: "medium";
|
|
98
|
+
high: "high";
|
|
99
|
+
}>>;
|
|
100
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
101
|
+
auto: "auto";
|
|
102
|
+
concise: "concise";
|
|
103
|
+
detailed: "detailed";
|
|
104
|
+
none: "none";
|
|
105
|
+
}>>;
|
|
106
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
summarized: "summarized";
|
|
108
|
+
omitted: "omitted";
|
|
109
|
+
}>>;
|
|
110
|
+
}, z.core.$strict>>;
|
|
43
111
|
}, z.core.$strict>;
|
|
44
112
|
}, z.core.$strict>, z.ZodObject<{
|
|
45
113
|
name: z.ZodString;
|
|
@@ -48,6 +116,24 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
48
116
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
49
117
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
50
118
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
119
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
121
|
+
minimal: "minimal";
|
|
122
|
+
low: "low";
|
|
123
|
+
medium: "medium";
|
|
124
|
+
high: "high";
|
|
125
|
+
}>>;
|
|
126
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
auto: "auto";
|
|
128
|
+
concise: "concise";
|
|
129
|
+
detailed: "detailed";
|
|
130
|
+
none: "none";
|
|
131
|
+
}>>;
|
|
132
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
133
|
+
summarized: "summarized";
|
|
134
|
+
omitted: "omitted";
|
|
135
|
+
}>>;
|
|
136
|
+
}, z.core.$strict>>;
|
|
51
137
|
}, z.core.$strict>;
|
|
52
138
|
}, z.core.$strict>, z.ZodObject<{
|
|
53
139
|
name: z.ZodString;
|
|
@@ -55,10 +141,24 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
55
141
|
options: z.ZodObject<{
|
|
56
142
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
57
143
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
144
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
145
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
146
|
+
minimal: "minimal";
|
|
147
|
+
low: "low";
|
|
148
|
+
medium: "medium";
|
|
149
|
+
high: "high";
|
|
150
|
+
}>>;
|
|
151
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
152
|
+
auto: "auto";
|
|
153
|
+
concise: "concise";
|
|
154
|
+
detailed: "detailed";
|
|
155
|
+
none: "none";
|
|
156
|
+
}>>;
|
|
157
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
158
|
+
summarized: "summarized";
|
|
159
|
+
omitted: "omitted";
|
|
160
|
+
}>>;
|
|
161
|
+
}, z.core.$strict>>;
|
|
62
162
|
}, z.core.$strict>;
|
|
63
163
|
}, z.core.$strict>, z.ZodObject<{
|
|
64
164
|
name: z.ZodString;
|
|
@@ -67,17 +167,48 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
67
167
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
68
168
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
69
169
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
170
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
minimal: "minimal";
|
|
173
|
+
low: "low";
|
|
174
|
+
medium: "medium";
|
|
175
|
+
high: "high";
|
|
176
|
+
}>>;
|
|
177
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
178
|
+
auto: "auto";
|
|
179
|
+
concise: "concise";
|
|
180
|
+
detailed: "detailed";
|
|
181
|
+
none: "none";
|
|
182
|
+
}>>;
|
|
183
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
184
|
+
summarized: "summarized";
|
|
185
|
+
omitted: "omitted";
|
|
186
|
+
}>>;
|
|
187
|
+
}, z.core.$strict>>;
|
|
70
188
|
}, z.core.$strict>;
|
|
71
189
|
}, z.core.$strict>, z.ZodObject<{
|
|
72
190
|
name: z.ZodString;
|
|
73
191
|
provider: z.ZodLiteral<LlmProvider.Ollama>;
|
|
74
192
|
options: z.ZodObject<{
|
|
75
193
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
194
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
196
|
+
minimal: "minimal";
|
|
197
|
+
low: "low";
|
|
198
|
+
medium: "medium";
|
|
199
|
+
high: "high";
|
|
200
|
+
}>>;
|
|
201
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
202
|
+
auto: "auto";
|
|
203
|
+
concise: "concise";
|
|
204
|
+
detailed: "detailed";
|
|
205
|
+
none: "none";
|
|
206
|
+
}>>;
|
|
207
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
208
|
+
summarized: "summarized";
|
|
209
|
+
omitted: "omitted";
|
|
210
|
+
}>>;
|
|
211
|
+
}, z.core.$strict>>;
|
|
81
212
|
}, z.core.$strict>;
|
|
82
213
|
}, z.core.$strict>, z.ZodObject<{
|
|
83
214
|
name: z.ZodString;
|
|
@@ -86,6 +217,28 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
86
217
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
87
218
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
88
219
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
220
|
+
api: z.ZodOptional<z.ZodEnum<{
|
|
221
|
+
chat: "chat";
|
|
222
|
+
responses: "responses";
|
|
223
|
+
}>>;
|
|
224
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
226
|
+
minimal: "minimal";
|
|
227
|
+
low: "low";
|
|
228
|
+
medium: "medium";
|
|
229
|
+
high: "high";
|
|
230
|
+
}>>;
|
|
231
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
232
|
+
auto: "auto";
|
|
233
|
+
concise: "concise";
|
|
234
|
+
detailed: "detailed";
|
|
235
|
+
none: "none";
|
|
236
|
+
}>>;
|
|
237
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
238
|
+
summarized: "summarized";
|
|
239
|
+
omitted: "omitted";
|
|
240
|
+
}>>;
|
|
241
|
+
}, z.core.$strict>>;
|
|
89
242
|
}, z.core.$strict>;
|
|
90
243
|
}, z.core.$strict>, z.ZodObject<{
|
|
91
244
|
name: z.ZodString;
|
|
@@ -94,6 +247,24 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
94
247
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
95
248
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
96
249
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
250
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
251
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
minimal: "minimal";
|
|
253
|
+
low: "low";
|
|
254
|
+
medium: "medium";
|
|
255
|
+
high: "high";
|
|
256
|
+
}>>;
|
|
257
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
258
|
+
auto: "auto";
|
|
259
|
+
concise: "concise";
|
|
260
|
+
detailed: "detailed";
|
|
261
|
+
none: "none";
|
|
262
|
+
}>>;
|
|
263
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
264
|
+
summarized: "summarized";
|
|
265
|
+
omitted: "omitted";
|
|
266
|
+
}>>;
|
|
267
|
+
}, z.core.$strict>>;
|
|
97
268
|
}, z.core.$strict>;
|
|
98
269
|
}, z.core.$strict>, z.ZodObject<{
|
|
99
270
|
name: z.ZodString;
|
|
@@ -102,6 +273,24 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
102
273
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
103
274
|
baseURL: z.ZodOptional<z.ZodString>;
|
|
104
275
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
276
|
+
reasoning: z.ZodOptional<z.ZodObject<{
|
|
277
|
+
effort: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
minimal: "minimal";
|
|
279
|
+
low: "low";
|
|
280
|
+
medium: "medium";
|
|
281
|
+
high: "high";
|
|
282
|
+
}>>;
|
|
283
|
+
summary: z.ZodOptional<z.ZodEnum<{
|
|
284
|
+
auto: "auto";
|
|
285
|
+
concise: "concise";
|
|
286
|
+
detailed: "detailed";
|
|
287
|
+
none: "none";
|
|
288
|
+
}>>;
|
|
289
|
+
display: z.ZodOptional<z.ZodEnum<{
|
|
290
|
+
summarized: "summarized";
|
|
291
|
+
omitted: "omitted";
|
|
292
|
+
}>>;
|
|
293
|
+
}, z.core.$strict>>;
|
|
105
294
|
}, z.core.$strict>;
|
|
106
295
|
}, z.core.$strict>], "provider">>;
|
|
107
296
|
llms: z.ZodArray<z.ZodObject<{
|
|
@@ -120,6 +309,7 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
120
309
|
brave: "brave";
|
|
121
310
|
exa: "exa";
|
|
122
311
|
firecrawl: "firecrawl";
|
|
312
|
+
litellm: "litellm";
|
|
123
313
|
serper: "serper";
|
|
124
314
|
tavily: "tavily";
|
|
125
315
|
}>>;
|
|
@@ -132,6 +322,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
132
322
|
firecrawl: z.ZodOptional<z.ZodObject<{
|
|
133
323
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
134
324
|
}, z.core.$strip>>;
|
|
325
|
+
litellm: z.ZodOptional<z.ZodObject<{
|
|
326
|
+
baseURL: z.ZodOptional<z.ZodString>;
|
|
327
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
328
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
329
|
+
}, z.core.$strip>>;
|
|
135
330
|
serper: z.ZodOptional<z.ZodObject<{
|
|
136
331
|
apiKey: z.ZodOptional<z.ZodString>;
|
|
137
332
|
}, z.core.$strip>>;
|
|
@@ -169,6 +364,10 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
169
364
|
ratio: z.ZodOptional<z.ZodNumber>;
|
|
170
365
|
keep: z.ZodOptional<z.ZodNumber>;
|
|
171
366
|
}, z.core.$strip>>>;
|
|
367
|
+
reasoning: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
368
|
+
collapsed: "collapsed";
|
|
369
|
+
full: "full";
|
|
370
|
+
}>>>;
|
|
172
371
|
}, z.core.$strip>, z.ZodTransform<{
|
|
173
372
|
name: string;
|
|
174
373
|
providers: ({
|
|
@@ -178,7 +377,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
178
377
|
apiKey?: string | undefined;
|
|
179
378
|
baseURL?: string | undefined;
|
|
180
379
|
headers?: Record<string, string> | undefined;
|
|
181
|
-
|
|
380
|
+
reasoning?: {
|
|
381
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
382
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
383
|
+
display?: "summarized" | "omitted" | undefined;
|
|
384
|
+
} | undefined;
|
|
182
385
|
};
|
|
183
386
|
} | {
|
|
184
387
|
name: string;
|
|
@@ -190,6 +393,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
190
393
|
headers?: Record<string, string> | undefined;
|
|
191
394
|
apiVersion?: string | undefined;
|
|
192
395
|
useDeploymentBasedUrls?: boolean | undefined;
|
|
396
|
+
reasoning?: {
|
|
397
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
398
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
399
|
+
display?: "summarized" | "omitted" | undefined;
|
|
400
|
+
} | undefined;
|
|
193
401
|
};
|
|
194
402
|
} | {
|
|
195
403
|
name: string;
|
|
@@ -200,12 +408,22 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
200
408
|
secretAccessKey?: string | undefined;
|
|
201
409
|
sessionToken?: string | undefined;
|
|
202
410
|
apiKey?: string | undefined;
|
|
411
|
+
reasoning?: {
|
|
412
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
413
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
414
|
+
display?: "summarized" | "omitted" | undefined;
|
|
415
|
+
} | undefined;
|
|
203
416
|
};
|
|
204
417
|
} | {
|
|
205
418
|
name: string;
|
|
206
419
|
provider: LlmProvider.Google;
|
|
207
420
|
options: {
|
|
208
421
|
apiKey?: string | undefined;
|
|
422
|
+
reasoning?: {
|
|
423
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
424
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
425
|
+
display?: "summarized" | "omitted" | undefined;
|
|
426
|
+
} | undefined;
|
|
209
427
|
};
|
|
210
428
|
} | {
|
|
211
429
|
name: string;
|
|
@@ -214,6 +432,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
214
432
|
apiKey?: string | undefined;
|
|
215
433
|
baseURL?: string | undefined;
|
|
216
434
|
headers?: Record<string, string> | undefined;
|
|
435
|
+
reasoning?: {
|
|
436
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
437
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
438
|
+
display?: "summarized" | "omitted" | undefined;
|
|
439
|
+
} | undefined;
|
|
217
440
|
};
|
|
218
441
|
} | {
|
|
219
442
|
name: string;
|
|
@@ -221,7 +444,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
221
444
|
options: {
|
|
222
445
|
apiKey?: string | undefined;
|
|
223
446
|
headers?: Record<string, string> | undefined;
|
|
224
|
-
|
|
447
|
+
reasoning?: {
|
|
448
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
449
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
450
|
+
display?: "summarized" | "omitted" | undefined;
|
|
451
|
+
} | undefined;
|
|
225
452
|
};
|
|
226
453
|
} | {
|
|
227
454
|
name: string;
|
|
@@ -230,13 +457,22 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
230
457
|
apiKey?: string | undefined;
|
|
231
458
|
baseURL?: string | undefined;
|
|
232
459
|
headers?: Record<string, string> | undefined;
|
|
460
|
+
reasoning?: {
|
|
461
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
462
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
463
|
+
display?: "summarized" | "omitted" | undefined;
|
|
464
|
+
} | undefined;
|
|
233
465
|
};
|
|
234
466
|
} | {
|
|
235
467
|
name: string;
|
|
236
468
|
provider: LlmProvider.Ollama;
|
|
237
469
|
options: {
|
|
238
470
|
baseURL?: string | undefined;
|
|
239
|
-
|
|
471
|
+
reasoning?: {
|
|
472
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
473
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
474
|
+
display?: "summarized" | "omitted" | undefined;
|
|
475
|
+
} | undefined;
|
|
240
476
|
};
|
|
241
477
|
} | {
|
|
242
478
|
name: string;
|
|
@@ -245,6 +481,12 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
245
481
|
apiKey?: string | undefined;
|
|
246
482
|
baseURL?: string | undefined;
|
|
247
483
|
headers?: Record<string, string> | undefined;
|
|
484
|
+
api?: "chat" | "responses" | undefined;
|
|
485
|
+
reasoning?: {
|
|
486
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
487
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
488
|
+
display?: "summarized" | "omitted" | undefined;
|
|
489
|
+
} | undefined;
|
|
248
490
|
};
|
|
249
491
|
} | {
|
|
250
492
|
name: string;
|
|
@@ -253,6 +495,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
253
495
|
apiKey?: string | undefined;
|
|
254
496
|
baseURL?: string | undefined;
|
|
255
497
|
headers?: Record<string, string> | undefined;
|
|
498
|
+
reasoning?: {
|
|
499
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
500
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
501
|
+
display?: "summarized" | "omitted" | undefined;
|
|
502
|
+
} | undefined;
|
|
256
503
|
};
|
|
257
504
|
} | {
|
|
258
505
|
name: string;
|
|
@@ -261,6 +508,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
261
508
|
apiKey?: string | undefined;
|
|
262
509
|
baseURL?: string | undefined;
|
|
263
510
|
headers?: Record<string, string> | undefined;
|
|
511
|
+
reasoning?: {
|
|
512
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
513
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
514
|
+
display?: "summarized" | "omitted" | undefined;
|
|
515
|
+
} | undefined;
|
|
264
516
|
};
|
|
265
517
|
})[];
|
|
266
518
|
llms: {
|
|
@@ -275,7 +527,7 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
275
527
|
}[];
|
|
276
528
|
search: {
|
|
277
529
|
enabled: boolean;
|
|
278
|
-
provider: "brave" | "exa" | "firecrawl" | "serper" | "tavily";
|
|
530
|
+
provider: "brave" | "exa" | "firecrawl" | "litellm" | "serper" | "tavily";
|
|
279
531
|
brave: {
|
|
280
532
|
apiKey: string | undefined;
|
|
281
533
|
};
|
|
@@ -285,6 +537,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
285
537
|
firecrawl: {
|
|
286
538
|
apiKey: string | undefined;
|
|
287
539
|
};
|
|
540
|
+
litellm: {
|
|
541
|
+
baseURL: string | undefined;
|
|
542
|
+
apiKey: string | undefined;
|
|
543
|
+
tool: string | undefined;
|
|
544
|
+
};
|
|
288
545
|
serper: {
|
|
289
546
|
apiKey: string | undefined;
|
|
290
547
|
};
|
|
@@ -322,6 +579,7 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
322
579
|
ratio: number;
|
|
323
580
|
keep: number;
|
|
324
581
|
};
|
|
582
|
+
reasoning: "collapsed" | "full";
|
|
325
583
|
}, {
|
|
326
584
|
name: string;
|
|
327
585
|
providers: ({
|
|
@@ -331,7 +589,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
331
589
|
apiKey?: string | undefined;
|
|
332
590
|
baseURL?: string | undefined;
|
|
333
591
|
headers?: Record<string, string> | undefined;
|
|
334
|
-
|
|
592
|
+
reasoning?: {
|
|
593
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
594
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
595
|
+
display?: "summarized" | "omitted" | undefined;
|
|
596
|
+
} | undefined;
|
|
335
597
|
};
|
|
336
598
|
} | {
|
|
337
599
|
name: string;
|
|
@@ -343,6 +605,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
343
605
|
headers?: Record<string, string> | undefined;
|
|
344
606
|
apiVersion?: string | undefined;
|
|
345
607
|
useDeploymentBasedUrls?: boolean | undefined;
|
|
608
|
+
reasoning?: {
|
|
609
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
610
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
611
|
+
display?: "summarized" | "omitted" | undefined;
|
|
612
|
+
} | undefined;
|
|
346
613
|
};
|
|
347
614
|
} | {
|
|
348
615
|
name: string;
|
|
@@ -353,12 +620,22 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
353
620
|
secretAccessKey?: string | undefined;
|
|
354
621
|
sessionToken?: string | undefined;
|
|
355
622
|
apiKey?: string | undefined;
|
|
623
|
+
reasoning?: {
|
|
624
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
625
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
626
|
+
display?: "summarized" | "omitted" | undefined;
|
|
627
|
+
} | undefined;
|
|
356
628
|
};
|
|
357
629
|
} | {
|
|
358
630
|
name: string;
|
|
359
631
|
provider: LlmProvider.Google;
|
|
360
632
|
options: {
|
|
361
633
|
apiKey?: string | undefined;
|
|
634
|
+
reasoning?: {
|
|
635
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
636
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
637
|
+
display?: "summarized" | "omitted" | undefined;
|
|
638
|
+
} | undefined;
|
|
362
639
|
};
|
|
363
640
|
} | {
|
|
364
641
|
name: string;
|
|
@@ -367,6 +644,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
367
644
|
apiKey?: string | undefined;
|
|
368
645
|
baseURL?: string | undefined;
|
|
369
646
|
headers?: Record<string, string> | undefined;
|
|
647
|
+
reasoning?: {
|
|
648
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
649
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
650
|
+
display?: "summarized" | "omitted" | undefined;
|
|
651
|
+
} | undefined;
|
|
370
652
|
};
|
|
371
653
|
} | {
|
|
372
654
|
name: string;
|
|
@@ -374,7 +656,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
374
656
|
options: {
|
|
375
657
|
apiKey?: string | undefined;
|
|
376
658
|
headers?: Record<string, string> | undefined;
|
|
377
|
-
|
|
659
|
+
reasoning?: {
|
|
660
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
661
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
662
|
+
display?: "summarized" | "omitted" | undefined;
|
|
663
|
+
} | undefined;
|
|
378
664
|
};
|
|
379
665
|
} | {
|
|
380
666
|
name: string;
|
|
@@ -383,13 +669,22 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
383
669
|
apiKey?: string | undefined;
|
|
384
670
|
baseURL?: string | undefined;
|
|
385
671
|
headers?: Record<string, string> | undefined;
|
|
672
|
+
reasoning?: {
|
|
673
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
674
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
675
|
+
display?: "summarized" | "omitted" | undefined;
|
|
676
|
+
} | undefined;
|
|
386
677
|
};
|
|
387
678
|
} | {
|
|
388
679
|
name: string;
|
|
389
680
|
provider: LlmProvider.Ollama;
|
|
390
681
|
options: {
|
|
391
682
|
baseURL?: string | undefined;
|
|
392
|
-
|
|
683
|
+
reasoning?: {
|
|
684
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
685
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
686
|
+
display?: "summarized" | "omitted" | undefined;
|
|
687
|
+
} | undefined;
|
|
393
688
|
};
|
|
394
689
|
} | {
|
|
395
690
|
name: string;
|
|
@@ -398,6 +693,12 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
398
693
|
apiKey?: string | undefined;
|
|
399
694
|
baseURL?: string | undefined;
|
|
400
695
|
headers?: Record<string, string> | undefined;
|
|
696
|
+
api?: "chat" | "responses" | undefined;
|
|
697
|
+
reasoning?: {
|
|
698
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
699
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
700
|
+
display?: "summarized" | "omitted" | undefined;
|
|
701
|
+
} | undefined;
|
|
401
702
|
};
|
|
402
703
|
} | {
|
|
403
704
|
name: string;
|
|
@@ -406,6 +707,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
406
707
|
apiKey?: string | undefined;
|
|
407
708
|
baseURL?: string | undefined;
|
|
408
709
|
headers?: Record<string, string> | undefined;
|
|
710
|
+
reasoning?: {
|
|
711
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
712
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
713
|
+
display?: "summarized" | "omitted" | undefined;
|
|
714
|
+
} | undefined;
|
|
409
715
|
};
|
|
410
716
|
} | {
|
|
411
717
|
name: string;
|
|
@@ -414,6 +720,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
414
720
|
apiKey?: string | undefined;
|
|
415
721
|
baseURL?: string | undefined;
|
|
416
722
|
headers?: Record<string, string> | undefined;
|
|
723
|
+
reasoning?: {
|
|
724
|
+
effort?: "minimal" | "low" | "medium" | "high" | undefined;
|
|
725
|
+
summary?: "auto" | "concise" | "detailed" | "none" | undefined;
|
|
726
|
+
display?: "summarized" | "omitted" | undefined;
|
|
727
|
+
} | undefined;
|
|
417
728
|
};
|
|
418
729
|
})[];
|
|
419
730
|
llms: {
|
|
@@ -428,7 +739,7 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
428
739
|
}[];
|
|
429
740
|
search?: {
|
|
430
741
|
enabled?: boolean | undefined;
|
|
431
|
-
provider?: "brave" | "exa" | "firecrawl" | "serper" | "tavily" | undefined;
|
|
742
|
+
provider?: "brave" | "exa" | "firecrawl" | "litellm" | "serper" | "tavily" | undefined;
|
|
432
743
|
brave?: {
|
|
433
744
|
apiKey?: string | undefined;
|
|
434
745
|
} | undefined;
|
|
@@ -438,6 +749,11 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
438
749
|
firecrawl?: {
|
|
439
750
|
apiKey?: string | undefined;
|
|
440
751
|
} | undefined;
|
|
752
|
+
litellm?: {
|
|
753
|
+
baseURL?: string | undefined;
|
|
754
|
+
apiKey?: string | undefined;
|
|
755
|
+
tool?: string | undefined;
|
|
756
|
+
} | undefined;
|
|
441
757
|
serper?: {
|
|
442
758
|
apiKey?: string | undefined;
|
|
443
759
|
} | undefined;
|
|
@@ -475,6 +791,7 @@ declare const ConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
475
791
|
ratio?: number | undefined;
|
|
476
792
|
keep?: number | undefined;
|
|
477
793
|
} | null | undefined;
|
|
794
|
+
reasoning?: "collapsed" | "full" | null | undefined;
|
|
478
795
|
}>>;
|
|
479
796
|
export type ConfigData = z.infer<typeof ConfigSchema>;
|
|
480
797
|
export type ProviderConfig = ProviderOptions;
|
|
@@ -497,6 +814,7 @@ export type ResolvedNamedLlmConfig = {
|
|
|
497
814
|
default: boolean;
|
|
498
815
|
};
|
|
499
816
|
export type CompactionConfig = ConfigData["compaction"];
|
|
817
|
+
export type ReasoningDisplay = ConfigData["reasoning"];
|
|
500
818
|
export type PromptsConfig = ConfigData["prompts"];
|
|
501
819
|
export type SearchConfig = ConfigData["search"];
|
|
502
820
|
export type ToolsConfig = ConfigData["tools"];
|
|
@@ -507,7 +825,7 @@ export { LlmProvider };
|
|
|
507
825
|
export type { NamedLlmConfig, NamedProviderConfig };
|
|
508
826
|
export declare class Config {
|
|
509
827
|
private data;
|
|
510
|
-
|
|
828
|
+
protected readonly path: string;
|
|
511
829
|
private readonly overlayPaths;
|
|
512
830
|
constructor(path: string, options?: ConfigOptions);
|
|
513
831
|
get name(): string;
|
|
@@ -521,10 +839,22 @@ export declare class Config {
|
|
|
521
839
|
get prompts(): PromptsConfig;
|
|
522
840
|
get tools(): ToolsConfig;
|
|
523
841
|
get compaction(): CompactionConfig;
|
|
842
|
+
get reasoning(): ReasoningDisplay;
|
|
524
843
|
private readJson;
|
|
525
844
|
private readOverlay;
|
|
526
845
|
reload(): void;
|
|
527
846
|
persist(): void;
|
|
528
847
|
tryUpdate(partial: Partial<ConfigData>): ConfigUpdateResult;
|
|
529
848
|
update(partial: Partial<ConfigData>): void;
|
|
849
|
+
/**
|
|
850
|
+
* Durably write a change to the shared on-disk config file.
|
|
851
|
+
*
|
|
852
|
+
* `build` receives the config whose data the change should be derived from
|
|
853
|
+
* and returns the partial to persist (or `null` to skip). For a plain
|
|
854
|
+
* `Config` this applies against itself and persists normally. `SessionConfig`
|
|
855
|
+
* overrides this to write through to the shared base file (freshly loaded,
|
|
856
|
+
* without project overlays) so ephemeral session overrides — and any
|
|
857
|
+
* overlay-provided values — never leak into it.
|
|
858
|
+
*/
|
|
859
|
+
persistToDisk(build: (config: Config) => Partial<ConfigData> | null): ConfigUpdateResult;
|
|
530
860
|
}
|