librechat-data-provider 0.8.509 → 0.8.522
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/{data-service-BsdHkdKS.mjs → data-service-CaB7saTP.mjs} +2175 -113
- package/dist/data-service-CaB7saTP.mjs.map +1 -0
- package/dist/{data-service-XTxx76uB.js → data-service-D5kHzBt-.js} +2806 -150
- package/dist/data-service-D5kHzBt-.js.map +1 -0
- package/dist/index.js +1403 -92
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1248 -93
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +2 -1
- package/dist/react-query/index.js.map +1 -1
- package/dist/react-query/index.mjs +2 -1
- package/dist/react-query/index.mjs.map +1 -1
- package/dist/types/accessPermissions.d.ts +4 -0
- package/dist/types/actions.d.ts +3 -3
- package/dist/types/agentToolOptions.d.ts +11 -0
- package/dist/types/api-endpoints.d.ts +28 -2
- package/dist/types/bedrock.d.ts +220 -0
- package/dist/types/cadence.d.ts +33 -0
- package/dist/types/codeEnvRef.d.ts +21 -0
- package/dist/types/config.d.ts +13457 -1573
- package/dist/types/data-service.d.ts +65 -14
- package/dist/types/feedback.d.ts +9 -1
- package/dist/types/file-config.d.ts +42 -5
- package/dist/types/filters.d.ts +1422 -0
- package/dist/types/generate.d.ts +85 -1
- package/dist/types/index.d.ts +10 -0
- package/dist/types/keys.d.ts +29 -4
- package/dist/types/langchain.d.ts +4 -0
- package/dist/types/limits.d.ts +13 -0
- package/dist/types/mcp.d.ts +338 -228
- package/dist/types/messages.d.ts +13 -0
- package/dist/types/models.d.ts +840 -68
- package/dist/types/parameterSettings.d.ts +7 -3
- package/dist/types/parsers.d.ts +13 -1
- package/dist/types/permissions.d.ts +42 -1
- package/dist/types/providers.d.ts +36 -0
- package/dist/types/react-query/react-query-service.d.ts +2 -7
- package/dist/types/request.d.ts +4 -2
- package/dist/types/roles.d.ts +34 -0
- package/dist/types/runSteps.d.ts +59 -0
- package/dist/types/schemas.d.ts +1358 -34
- package/dist/types/stateful-code.d.ts +7 -0
- package/dist/types/types/agents.d.ts +303 -8
- package/dist/types/types/assistants.d.ts +170 -7
- package/dist/types/types/files.d.ts +29 -8
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/insights.d.ts +62 -0
- package/dist/types/types/mcpServers.d.ts +25 -0
- package/dist/types/types/mutations.d.ts +2 -0
- package/dist/types/types/queries.d.ts +47 -5
- package/dist/types/types/queuedTurns.d.ts +870 -0
- package/dist/types/types/runs.d.ts +206 -26
- package/dist/types/types/schedules.d.ts +306 -0
- package/dist/types/types/skills.d.ts +34 -6
- package/dist/types/types/subagents.d.ts +159 -0
- package/dist/types/types/web.d.ts +12 -2
- package/dist/types/types.d.ts +175 -2
- package/dist/types/upload.d.ts +2 -0
- package/package.json +7 -5
- package/dist/data-service-BsdHkdKS.mjs.map +0 -1
- package/dist/data-service-XTxx76uB.js.map +0 -1
package/dist/types/generate.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { googleSettings as google } from './schemas';
|
|
3
2
|
import type { TConversation, TSetOption, TPreset } from './schemas';
|
|
3
|
+
import { googleSettings as google } from './schemas';
|
|
4
4
|
export type GoogleSettings = Partial<typeof google>;
|
|
5
5
|
export type OpenAISettings = Partial<typeof google>;
|
|
6
6
|
export type ComponentType = 'input' | 'textarea' | 'slider' | 'checkbox' | 'switch' | 'dropdown' | 'combobox' | 'tags';
|
|
@@ -78,7 +78,21 @@ export interface SettingRange {
|
|
|
78
78
|
min: number;
|
|
79
79
|
max: number;
|
|
80
80
|
step?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Inclusive floor for non-negative values. Use when `min` is a sentinel
|
|
83
|
+
* (Google thinkingBudget `-1` for auto) and positive values have a higher
|
|
84
|
+
* documented minimum.
|
|
85
|
+
*/
|
|
86
|
+
positiveMin?: number;
|
|
87
|
+
/**
|
|
88
|
+
* Set when this range came from the selected model rather than the shared
|
|
89
|
+
* fallback. Only then is it safe to normalize a stored value against it: a
|
|
90
|
+
* model that does not use the parameter leaves the generic range in place,
|
|
91
|
+
* and clamping to that would discard a value set for another model.
|
|
92
|
+
*/
|
|
93
|
+
modelSpecific?: boolean;
|
|
81
94
|
}
|
|
95
|
+
export declare function clampSettingRange(value: number, range: SettingRange): number;
|
|
82
96
|
export type SettingsConfiguration = SettingDefinition[];
|
|
83
97
|
export declare function generateDynamicSchema(settings: SettingsConfiguration): z.ZodObject<{
|
|
84
98
|
[key: string]: z.ZodTypeAny;
|
|
@@ -97,7 +111,9 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
97
111
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>;
|
|
98
112
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
|
|
99
113
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
114
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
115
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
101
117
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
102
118
|
user: z.ZodOptional<z.ZodString>;
|
|
103
119
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -129,6 +145,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
129
145
|
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
130
146
|
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
131
147
|
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
148
|
+
serverToolName: z.ZodOptional<z.ZodString>;
|
|
132
149
|
}, "strip", z.ZodTypeAny, {
|
|
133
150
|
name: string;
|
|
134
151
|
pluginKey: string;
|
|
@@ -145,6 +162,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
145
162
|
chatMenu?: boolean | undefined;
|
|
146
163
|
isButton?: boolean | undefined;
|
|
147
164
|
toolkit?: boolean | undefined;
|
|
165
|
+
serverToolName?: string | undefined;
|
|
148
166
|
}, {
|
|
149
167
|
name: string;
|
|
150
168
|
pluginKey: string;
|
|
@@ -161,6 +179,7 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
161
179
|
chatMenu?: boolean | undefined;
|
|
162
180
|
isButton?: boolean | undefined;
|
|
163
181
|
toolkit?: boolean | undefined;
|
|
182
|
+
serverToolName?: string | undefined;
|
|
164
183
|
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
165
184
|
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
166
185
|
userLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -224,6 +243,8 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
224
243
|
imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ImageDetail>>;
|
|
225
244
|
reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningEffort>>>;
|
|
226
245
|
reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningSummary>>>;
|
|
246
|
+
reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningMode>>>;
|
|
247
|
+
reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningContext>>>;
|
|
227
248
|
verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").Verbosity>>>;
|
|
228
249
|
useResponsesApi: z.ZodOptional<z.ZodBoolean>;
|
|
229
250
|
effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").AnthropicEffort>>>;
|
|
@@ -233,6 +254,34 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
|
|
|
233
254
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
234
255
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
235
256
|
agent_id: z.ZodOptional<z.ZodString>;
|
|
257
|
+
subagentThread: z.ZodOptional<z.ZodObject<{
|
|
258
|
+
rootConversationId: z.ZodString;
|
|
259
|
+
parentConversationId: z.ZodString;
|
|
260
|
+
parentMessageId: z.ZodString;
|
|
261
|
+
parentToolCallId: z.ZodString;
|
|
262
|
+
parentAgentId: z.ZodOptional<z.ZodString>;
|
|
263
|
+
subagentType: z.ZodString;
|
|
264
|
+
subagentKind: z.ZodEnum<["agent", "graph"]>;
|
|
265
|
+
depth: z.ZodNumber;
|
|
266
|
+
}, "strip", z.ZodTypeAny, {
|
|
267
|
+
parentMessageId: string;
|
|
268
|
+
rootConversationId: string;
|
|
269
|
+
parentConversationId: string;
|
|
270
|
+
parentToolCallId: string;
|
|
271
|
+
subagentType: string;
|
|
272
|
+
subagentKind: "agent" | "graph";
|
|
273
|
+
depth: number;
|
|
274
|
+
parentAgentId?: string | undefined;
|
|
275
|
+
}, {
|
|
276
|
+
parentMessageId: string;
|
|
277
|
+
rootConversationId: string;
|
|
278
|
+
parentConversationId: string;
|
|
279
|
+
parentToolCallId: string;
|
|
280
|
+
subagentType: string;
|
|
281
|
+
subagentKind: "agent" | "graph";
|
|
282
|
+
depth: number;
|
|
283
|
+
parentAgentId?: string | undefined;
|
|
284
|
+
}>>;
|
|
236
285
|
region: z.ZodOptional<z.ZodString>;
|
|
237
286
|
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
238
287
|
additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
@@ -347,7 +396,9 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
347
396
|
endpoint: z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>;
|
|
348
397
|
endpointType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof import("./schemas").EModelEndpoint>>>;
|
|
349
398
|
isArchived: z.ZodOptional<z.ZodBoolean>;
|
|
399
|
+
archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
400
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
401
|
+
isShared: z.ZodOptional<z.ZodBoolean>;
|
|
351
402
|
title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
|
|
352
403
|
user: z.ZodOptional<z.ZodString>;
|
|
353
404
|
messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -379,6 +430,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
379
430
|
chatMenu: z.ZodOptional<z.ZodBoolean>;
|
|
380
431
|
isButton: z.ZodOptional<z.ZodBoolean>;
|
|
381
432
|
toolkit: z.ZodOptional<z.ZodBoolean>;
|
|
433
|
+
serverToolName: z.ZodOptional<z.ZodString>;
|
|
382
434
|
}, "strip", z.ZodTypeAny, {
|
|
383
435
|
name: string;
|
|
384
436
|
pluginKey: string;
|
|
@@ -395,6 +447,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
395
447
|
chatMenu?: boolean | undefined;
|
|
396
448
|
isButton?: boolean | undefined;
|
|
397
449
|
toolkit?: boolean | undefined;
|
|
450
|
+
serverToolName?: string | undefined;
|
|
398
451
|
}, {
|
|
399
452
|
name: string;
|
|
400
453
|
pluginKey: string;
|
|
@@ -411,6 +464,7 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
411
464
|
chatMenu?: boolean | undefined;
|
|
412
465
|
isButton?: boolean | undefined;
|
|
413
466
|
toolkit?: boolean | undefined;
|
|
467
|
+
serverToolName?: string | undefined;
|
|
414
468
|
}>, "many">, z.ZodArray<z.ZodString, "many">]>>;
|
|
415
469
|
modelLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
416
470
|
userLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -474,6 +528,8 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
474
528
|
imageDetail: z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ImageDetail>>;
|
|
475
529
|
reasoning_effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningEffort>>>;
|
|
476
530
|
reasoning_summary: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningSummary>>>;
|
|
531
|
+
reasoning_mode: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningMode>>>;
|
|
532
|
+
reasoning_context: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").ReasoningContext>>>;
|
|
477
533
|
verbosity: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").Verbosity>>>;
|
|
478
534
|
useResponsesApi: z.ZodOptional<z.ZodBoolean>;
|
|
479
535
|
effort: z.ZodNullable<z.ZodOptional<z.ZodNativeEnum<typeof import("./schemas").AnthropicEffort>>>;
|
|
@@ -483,6 +539,34 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
|
|
|
483
539
|
disableStreaming: z.ZodOptional<z.ZodBoolean>;
|
|
484
540
|
assistant_id: z.ZodOptional<z.ZodString>;
|
|
485
541
|
agent_id: z.ZodOptional<z.ZodString>;
|
|
542
|
+
subagentThread: z.ZodOptional<z.ZodObject<{
|
|
543
|
+
rootConversationId: z.ZodString;
|
|
544
|
+
parentConversationId: z.ZodString;
|
|
545
|
+
parentMessageId: z.ZodString;
|
|
546
|
+
parentToolCallId: z.ZodString;
|
|
547
|
+
parentAgentId: z.ZodOptional<z.ZodString>;
|
|
548
|
+
subagentType: z.ZodString;
|
|
549
|
+
subagentKind: z.ZodEnum<["agent", "graph"]>;
|
|
550
|
+
depth: z.ZodNumber;
|
|
551
|
+
}, "strip", z.ZodTypeAny, {
|
|
552
|
+
parentMessageId: string;
|
|
553
|
+
rootConversationId: string;
|
|
554
|
+
parentConversationId: string;
|
|
555
|
+
parentToolCallId: string;
|
|
556
|
+
subagentType: string;
|
|
557
|
+
subagentKind: "agent" | "graph";
|
|
558
|
+
depth: number;
|
|
559
|
+
parentAgentId?: string | undefined;
|
|
560
|
+
}, {
|
|
561
|
+
parentMessageId: string;
|
|
562
|
+
rootConversationId: string;
|
|
563
|
+
parentConversationId: string;
|
|
564
|
+
parentToolCallId: string;
|
|
565
|
+
subagentType: string;
|
|
566
|
+
subagentKind: "agent" | "graph";
|
|
567
|
+
depth: number;
|
|
568
|
+
parentAgentId?: string | undefined;
|
|
569
|
+
}>>;
|
|
486
570
|
region: z.ZodOptional<z.ZodString>;
|
|
487
571
|
maxTokens: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, number | undefined, string | number>>;
|
|
488
572
|
additionalModelRequestFields: z.ZodOptional<z.ZodType<string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,8 +2,11 @@ export * from './azure';
|
|
|
2
2
|
export * from './bedrock';
|
|
3
3
|
export * from './balance';
|
|
4
4
|
export * from './config';
|
|
5
|
+
export * from './langchain';
|
|
6
|
+
export * from './filters';
|
|
5
7
|
export * from './file-config';
|
|
6
8
|
export * from './messages';
|
|
9
|
+
export * from './runSteps';
|
|
7
10
|
export * from './artifacts';
|
|
8
11
|
export * from './parsers';
|
|
9
12
|
export * from './generate';
|
|
@@ -18,10 +21,15 @@ export * from './types/files';
|
|
|
18
21
|
export * from './types/mcpServers';
|
|
19
22
|
export * from './types/mutations';
|
|
20
23
|
export * from './types/queries';
|
|
24
|
+
export * from './types/schedules';
|
|
25
|
+
export * from './cadence';
|
|
21
26
|
export * from './types/skills';
|
|
22
27
|
export * from './types/runs';
|
|
23
28
|
export * from './types/web';
|
|
24
29
|
export * from './types/graph';
|
|
30
|
+
export * from './types/insights';
|
|
31
|
+
export * from './types/subagents';
|
|
32
|
+
export * from './types/queuedTurns';
|
|
25
33
|
export * from './accessPermissions';
|
|
26
34
|
export * from './keys';
|
|
27
35
|
export * from './headers-helpers';
|
|
@@ -29,9 +37,11 @@ export { loginPage, registerPage, apiBaseUrl, sharedFileDownload, buildLoginRedi
|
|
|
29
37
|
export { default as request } from './request';
|
|
30
38
|
export { dataService };
|
|
31
39
|
import * as dataService from './data-service';
|
|
40
|
+
export * from './providers';
|
|
32
41
|
export * from './utils';
|
|
33
42
|
export * from './actions';
|
|
34
43
|
export { default as createPayload } from './createPayload';
|
|
35
44
|
export * from './feedback';
|
|
36
45
|
export * from './parameterSettings';
|
|
46
|
+
export * from './agentToolOptions';
|
|
37
47
|
export * from './codeEnvRef';
|
package/dist/types/keys.d.ts
CHANGED
|
@@ -5,21 +5,25 @@ export declare enum QueryKeys {
|
|
|
5
5
|
sharedLinks = "sharedLinks",
|
|
6
6
|
allConversations = "allConversations",
|
|
7
7
|
archivedConversations = "archivedConversations",
|
|
8
|
+
pinnedConversations = "pinnedConversations",
|
|
8
9
|
searchConversations = "searchConversations",
|
|
9
10
|
conversation = "conversation",
|
|
10
11
|
searchEnabled = "searchEnabled",
|
|
12
|
+
langfuseConnection = "langfuseConnection",
|
|
13
|
+
langfuseSessionLink = "langfuseSessionLink",
|
|
11
14
|
user = "user",
|
|
12
15
|
name = "name",// user key name
|
|
13
16
|
models = "models",
|
|
14
17
|
balance = "balance",
|
|
15
18
|
endpoints = "endpoints",
|
|
16
19
|
tokenConfig = "tokenConfig",
|
|
17
|
-
contextProjection = "contextProjection",
|
|
18
20
|
presets = "presets",
|
|
19
21
|
searchResults = "searchResults",
|
|
20
22
|
tokenCount = "tokenCount",
|
|
21
23
|
availablePlugins = "availablePlugins",
|
|
22
24
|
startupConfig = "startupConfig",
|
|
25
|
+
insights = "insights",
|
|
26
|
+
insightsAccess = "insightsAccess",
|
|
23
27
|
assistants = "assistants",
|
|
24
28
|
assistant = "assistant",
|
|
25
29
|
agents = "agents",
|
|
@@ -74,18 +78,30 @@ export declare enum QueryKeys {
|
|
|
74
78
|
skillFileContent = "skillFileContent",
|
|
75
79
|
skillTree = "skillTree",
|
|
76
80
|
skillNodeContent = "skillNodeContent",
|
|
77
|
-
|
|
81
|
+
toolFavorites = "toolFavorites",
|
|
78
82
|
skillStates = "skillStates",
|
|
79
|
-
favorites = "favorites"
|
|
83
|
+
favorites = "favorites",
|
|
84
|
+
schedules = "schedules",
|
|
85
|
+
schedule = "schedule",
|
|
86
|
+
parentSubagents = "parentSubagents",
|
|
87
|
+
subagentThread = "subagentThread",
|
|
88
|
+
codeEnvironments = "codeEnvironments",
|
|
89
|
+
agentQueuedTurns = "agentQueuedTurns"
|
|
80
90
|
}
|
|
81
91
|
export declare const DynamicQueryKeys: {
|
|
82
92
|
readonly agentFiles: (agentId: string) => readonly ["agentFiles", string];
|
|
83
93
|
};
|
|
84
94
|
export declare enum MutationKeys {
|
|
95
|
+
subagentControl = "subagentControl",
|
|
96
|
+
enqueueAgentQueuedTurn = "enqueueAgentQueuedTurn",
|
|
97
|
+
cancelAgentQueuedTurn = "cancelAgentQueuedTurn",
|
|
98
|
+
updateLangfuseConnection = "updateLangfuseConnection",
|
|
99
|
+
testLangfuseConnection = "testLangfuseConnection",
|
|
85
100
|
createAgentApiKey = "createAgentApiKey",
|
|
86
101
|
deleteAgentApiKey = "deleteAgentApiKey",
|
|
87
102
|
fileUpload = "fileUpload",
|
|
88
103
|
fileDelete = "fileDelete",
|
|
104
|
+
fileUsage = "fileUsage",
|
|
89
105
|
updatePreset = "updatePreset",
|
|
90
106
|
deletePreset = "deletePreset",
|
|
91
107
|
loginUser = "loginUser",
|
|
@@ -102,6 +118,7 @@ export declare enum MutationKeys {
|
|
|
102
118
|
deleteAgentAction = "deleteAgentAction",
|
|
103
119
|
revertAgentVersion = "revertAgentVersion",
|
|
104
120
|
deleteUser = "deleteUser",
|
|
121
|
+
updateUserPreferences = "updateUserPreferences",
|
|
105
122
|
updateRole = "updateRole",
|
|
106
123
|
enableTwoFactor = "enableTwoFactor",
|
|
107
124
|
verifyTwoFactor = "verifyTwoFactor",
|
|
@@ -114,5 +131,13 @@ export declare enum MutationKeys {
|
|
|
114
131
|
updateSkillNode = "updateSkillNode",
|
|
115
132
|
deleteSkillNode = "deleteSkillNode",
|
|
116
133
|
updateSkillNodeContent = "updateSkillNodeContent",
|
|
117
|
-
convoPin = "convoPin"
|
|
134
|
+
convoPin = "convoPin",
|
|
135
|
+
archiveAllConversations = "archiveAllConversations",
|
|
136
|
+
createSchedule = "createSchedule",
|
|
137
|
+
updateSchedule = "updateSchedule",
|
|
138
|
+
deleteSchedule = "deleteSchedule",
|
|
139
|
+
runSchedule = "runSchedule",
|
|
140
|
+
pairCodeEnvironment = "pairCodeEnvironment",
|
|
141
|
+
updateCodeEnvironmentSettings = "updateCodeEnvironmentSettings",
|
|
142
|
+
deleteCodeEnvironment = "deleteCodeEnvironment"
|
|
118
143
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Removes LangChain's appended docs URL so provider text carries no third-party attribution. */
|
|
2
|
+
export declare function stripLangChainTroubleshootingUrl(message: unknown): string;
|
|
3
|
+
/** The classification LangChain encoded in the docs URL it appended, when the text carries one. */
|
|
4
|
+
export declare function parseLangChainErrorCode(message: unknown): string | undefined;
|
package/dist/types/limits.d.ts
CHANGED
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
/** Maximum number of explicit subagents per parent agent. UI + Zod schema share this. */
|
|
2
2
|
export declare const MAX_SUBAGENTS = 10;
|
|
3
|
+
/** Hard upper bound for `endpoints.agents.maxSubagents`, keeping the request-validation
|
|
4
|
+
* cap bounded no matter what the config file says. */
|
|
5
|
+
export declare const MAX_SUBAGENTS_CEILING = 50;
|
|
6
|
+
/** Effective subagents-per-agent cap; initialized from `endpoints.agents.maxSubagents` at startup. */
|
|
7
|
+
export declare const getMaxSubagents: () => number;
|
|
8
|
+
/** Applies a configured cap; any missing or out-of-range value resets to the default. */
|
|
9
|
+
export declare const setMaxSubagents: (value: number | undefined) => void;
|
|
10
|
+
/** Chat project field limits. The dialogs and the persistence layer share these,
|
|
11
|
+
* so the inputs stop at the same point the server would otherwise truncate. */
|
|
12
|
+
export declare const MAX_CHAT_PROJECT_NAME_LENGTH = 100;
|
|
13
|
+
export declare const MAX_CHAT_PROJECT_DESCRIPTION_LENGTH = 1000;
|
|
14
|
+
/** Mirrors the bounded graph-child member limit in `@librechat/agents`. */
|
|
15
|
+
export declare const MAX_GRAPH_SUBAGENT_MEMBERS = 32;
|