librechat-data-provider 0.8.522 → 0.8.524

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.
Files changed (57) hide show
  1. package/dist/{data-service-CaB7saTP.mjs → data-service-B-WUVvTH.mjs} +1044 -173
  2. package/dist/data-service-B-WUVvTH.mjs.map +1 -0
  3. package/dist/{data-service-D5kHzBt-.js → data-service-CUG1qdeC.js} +1426 -207
  4. package/dist/data-service-CUG1qdeC.js.map +1 -0
  5. package/dist/index.js +886 -74
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +780 -70
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/react-query/index.js +1 -1
  10. package/dist/react-query/index.mjs +1 -1
  11. package/dist/types/accessPermissions.d.ts +54 -1
  12. package/dist/types/actions.d.ts +1 -1
  13. package/dist/types/agentToolOptions.d.ts +1 -1
  14. package/dist/types/api-endpoints.d.ts +7 -0
  15. package/dist/types/backgroundResults.d.ts +13 -0
  16. package/dist/types/balance.d.ts +4 -0
  17. package/dist/types/bedrock.d.ts +132 -65
  18. package/dist/types/code/approval.d.ts +26 -0
  19. package/dist/types/code/worker.d.ts +10 -0
  20. package/dist/types/code/workspace.d.ts +50 -0
  21. package/dist/types/codeEnvRef.d.ts +5 -0
  22. package/dist/types/config.d.ts +5859 -2469
  23. package/dist/types/data-service.d.ts +22 -12
  24. package/dist/types/errors.d.ts +2 -0
  25. package/dist/types/file-config.d.ts +179 -12
  26. package/dist/types/filters.d.ts +97 -97
  27. package/dist/types/footer.d.ts +20 -0
  28. package/dist/types/generate.d.ts +48 -24
  29. package/dist/types/index.d.ts +11 -0
  30. package/dist/types/keys.d.ts +13 -2
  31. package/dist/types/limits.d.ts +8 -0
  32. package/dist/types/mcp.d.ts +683 -30
  33. package/dist/types/messages.d.ts +25 -1
  34. package/dist/types/models.d.ts +312 -183
  35. package/dist/types/parameterSettings.d.ts +10 -1
  36. package/dist/types/parsers.d.ts +25 -1
  37. package/dist/types/providers.d.ts +1 -0
  38. package/dist/types/resolve-llm-delivery-path.d.ts +161 -0
  39. package/dist/types/schemas.d.ts +771 -457
  40. package/dist/types/svg.d.ts +34 -0
  41. package/dist/types/types/agents.d.ts +257 -2
  42. package/dist/types/types/assistants.d.ts +2 -617
  43. package/dist/types/types/content.d.ts +286 -0
  44. package/dist/types/types/files.d.ts +48 -1
  45. package/dist/types/types/insights.d.ts +9 -0
  46. package/dist/types/types/mutations.d.ts +3 -2
  47. package/dist/types/types/queries.d.ts +8 -1
  48. package/dist/types/types/queuedTurns.d.ts +140 -106
  49. package/dist/types/types/runs.d.ts +33 -5
  50. package/dist/types/types/schedules.d.ts +40 -7
  51. package/dist/types/types/skills.d.ts +43 -0
  52. package/dist/types/types/tools.d.ts +132 -0
  53. package/dist/types/types/traces.d.ts +134 -0
  54. package/dist/types/types.d.ts +72 -2
  55. package/package.json +2 -2
  56. package/dist/data-service-CaB7saTP.mjs.map +0 -1
  57. package/dist/data-service-D5kHzBt-.js.map +0 -1
@@ -0,0 +1,20 @@
1
+ import type { TStartupConfig } from './config';
2
+ /**
3
+ * The startup-config fields that put a footer bar beneath a conversation's
4
+ * composer. Narrow on purpose: the server answers the same question while it
5
+ * serves the HTML shell, reading these fields off its own configuration instead
6
+ * of assembling a startup payload it has no request for.
7
+ */
8
+ export type TConfiguredFooterSource = Pick<Partial<TStartupConfig>, 'customFooter'> & {
9
+ interface?: Pick<NonNullable<TStartupConfig['interface']>, 'privacyPolicy' | 'termsOfService'> | null;
10
+ };
11
+ /**
12
+ * Whether a deployment configured footer content of its own — a custom footer,
13
+ * a privacy policy or terms of service.
14
+ *
15
+ * The footer bar is absolutely positioned in a zero-height wrapper, so the
16
+ * composer above it is what reserves its band: this answer decides both the
17
+ * bar and the clearance. The client and the server share it because the two
18
+ * answering differently is exactly the layout correction it exists to remove.
19
+ */
20
+ export declare function hasConfiguredFooter(source?: TConfiguredFooterSource | null): boolean;
@@ -114,6 +114,18 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
114
114
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
115
  pinned: z.ZodOptional<z.ZodBoolean>;
116
116
  isShared: z.ZodOptional<z.ZodBoolean>;
117
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
118
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
119
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
120
+ environmentId: z.ZodString;
121
+ workspaceId: z.ZodString;
122
+ }, "strict", z.ZodTypeAny, {
123
+ environmentId: string;
124
+ workspaceId: string;
125
+ }, {
126
+ environmentId: string;
127
+ workspaceId: string;
128
+ }>, "many">>;
117
129
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
118
130
  user: z.ZodOptional<z.ZodString>;
119
131
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -130,14 +142,14 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
130
142
  sensitive: z.ZodOptional<z.ZodBoolean>;
131
143
  }, "strip", z.ZodTypeAny, {
132
144
  description: string;
133
- authField: string;
134
145
  label: string;
146
+ authField: string;
135
147
  optional?: boolean | undefined;
136
148
  sensitive?: boolean | undefined;
137
149
  }, {
138
150
  description: string;
139
- authField: string;
140
151
  label: string;
152
+ authField: string;
141
153
  optional?: boolean | undefined;
142
154
  sensitive?: boolean | undefined;
143
155
  }>, "many">>;
@@ -153,8 +165,8 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
153
165
  icon?: string | undefined;
154
166
  authConfig?: {
155
167
  description: string;
156
- authField: string;
157
168
  label: string;
169
+ authField: string;
158
170
  optional?: boolean | undefined;
159
171
  sensitive?: boolean | undefined;
160
172
  }[] | undefined;
@@ -170,8 +182,8 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
170
182
  icon?: string | undefined;
171
183
  authConfig?: {
172
184
  description: string;
173
- authField: string;
174
185
  label: string;
186
+ authField: string;
175
187
  optional?: boolean | undefined;
176
188
  sensitive?: boolean | undefined;
177
189
  }[] | undefined;
@@ -220,19 +232,19 @@ export declare const generateOpenAISchema: (customOpenAI: OpenAISettings) => z.Z
220
232
  content: string;
221
233
  }>;
222
234
  }, "strip", z.ZodTypeAny, {
223
- input: {
224
- content: string;
225
- };
226
235
  output: {
227
236
  content: string;
228
237
  };
229
- }, {
230
238
  input: {
231
239
  content: string;
232
240
  };
241
+ }, {
233
242
  output: {
234
243
  content: string;
235
244
  };
245
+ input: {
246
+ content: string;
247
+ };
236
248
  }>, "many">>;
237
249
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
238
250
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -399,6 +411,18 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
399
411
  archivedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
412
  pinned: z.ZodOptional<z.ZodBoolean>;
401
413
  isShared: z.ZodOptional<z.ZodBoolean>;
414
+ codeApprovalMode: z.ZodOptional<z.ZodEnum<["ask", "acceptEdits", "fullAccess"]>>;
415
+ codeEnvironmentMode: z.ZodOptional<z.ZodEnum<["attached", "without_attached"]>>;
416
+ codeWorkspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
417
+ environmentId: z.ZodString;
418
+ workspaceId: z.ZodString;
419
+ }, "strict", z.ZodTypeAny, {
420
+ environmentId: string;
421
+ workspaceId: string;
422
+ }, {
423
+ environmentId: string;
424
+ workspaceId: string;
425
+ }>, "many">>;
402
426
  title: z.ZodDefault<z.ZodUnion<[z.ZodNullable<z.ZodString>, z.ZodLiteral<"New Chat">]>>;
403
427
  user: z.ZodOptional<z.ZodString>;
404
428
  messages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -415,14 +439,14 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
415
439
  sensitive: z.ZodOptional<z.ZodBoolean>;
416
440
  }, "strip", z.ZodTypeAny, {
417
441
  description: string;
418
- authField: string;
419
442
  label: string;
443
+ authField: string;
420
444
  optional?: boolean | undefined;
421
445
  sensitive?: boolean | undefined;
422
446
  }, {
423
447
  description: string;
424
- authField: string;
425
448
  label: string;
449
+ authField: string;
426
450
  optional?: boolean | undefined;
427
451
  sensitive?: boolean | undefined;
428
452
  }>, "many">>;
@@ -438,8 +462,8 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
438
462
  icon?: string | undefined;
439
463
  authConfig?: {
440
464
  description: string;
441
- authField: string;
442
465
  label: string;
466
+ authField: string;
443
467
  optional?: boolean | undefined;
444
468
  sensitive?: boolean | undefined;
445
469
  }[] | undefined;
@@ -455,8 +479,8 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
455
479
  icon?: string | undefined;
456
480
  authConfig?: {
457
481
  description: string;
458
- authField: string;
459
482
  label: string;
483
+ authField: string;
460
484
  optional?: boolean | undefined;
461
485
  sensitive?: boolean | undefined;
462
486
  }[] | undefined;
@@ -505,19 +529,19 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
505
529
  content: string;
506
530
  }>;
507
531
  }, "strip", z.ZodTypeAny, {
508
- input: {
509
- content: string;
510
- };
511
532
  output: {
512
533
  content: string;
513
534
  };
514
- }, {
515
535
  input: {
516
536
  content: string;
517
537
  };
538
+ }, {
518
539
  output: {
519
540
  content: string;
520
541
  };
542
+ input: {
543
+ content: string;
544
+ };
521
545
  }>, "many">>;
522
546
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
523
547
  chatProjectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -641,10 +665,10 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
641
665
  maxOutputTokens?: number | null | undefined;
642
666
  maxContextTokens?: number | undefined;
643
667
  examples?: {
644
- input: {
668
+ output: {
645
669
  content: string;
646
670
  };
647
- output: {
671
+ input: {
648
672
  content: string;
649
673
  };
650
674
  }[] | undefined;
@@ -658,10 +682,10 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
658
682
  maxOutputTokens?: string | number | null | undefined;
659
683
  maxContextTokens?: string | number | undefined;
660
684
  examples?: {
661
- input: {
685
+ output: {
662
686
  content: string;
663
687
  };
664
- output: {
688
+ input: {
665
689
  content: string;
666
690
  };
667
691
  }[] | undefined;
@@ -670,10 +694,10 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
670
694
  modelLabel: string | null;
671
695
  promptPrefix: string | null;
672
696
  examples: {
673
- input: {
697
+ output: {
674
698
  content: string;
675
699
  };
676
- output: {
700
+ input: {
677
701
  content: string;
678
702
  };
679
703
  }[];
@@ -692,10 +716,10 @@ export declare const generateGoogleSchema: (customGoogle: GoogleSettings) => z.Z
692
716
  maxOutputTokens?: string | number | null | undefined;
693
717
  maxContextTokens?: string | number | undefined;
694
718
  examples?: {
695
- input: {
719
+ output: {
696
720
  content: string;
697
721
  };
698
- output: {
722
+ input: {
699
723
  content: string;
700
724
  };
701
725
  }[] | undefined;
@@ -2,10 +2,13 @@ export * from './azure';
2
2
  export * from './bedrock';
3
3
  export * from './balance';
4
4
  export * from './config';
5
+ export * from './footer';
5
6
  export * from './langchain';
6
7
  export * from './filters';
7
8
  export * from './file-config';
9
+ export * from './resolve-llm-delivery-path';
8
10
  export * from './messages';
11
+ export * from './errors';
9
12
  export * from './runSteps';
10
13
  export * from './artifacts';
11
14
  export * from './parsers';
@@ -17,6 +20,8 @@ export * from './roles';
17
20
  export * from './types';
18
21
  export * from './types/agents';
19
22
  export * from './types/assistants';
23
+ export * from './types/content';
24
+ export * from './types/tools';
20
25
  export * from './types/files';
21
26
  export * from './types/mcpServers';
22
27
  export * from './types/mutations';
@@ -28,6 +33,7 @@ export * from './types/runs';
28
33
  export * from './types/web';
29
34
  export * from './types/graph';
30
35
  export * from './types/insights';
36
+ export * from './types/traces';
31
37
  export * from './types/subagents';
32
38
  export * from './types/queuedTurns';
33
39
  export * from './accessPermissions';
@@ -38,10 +44,15 @@ export { default as request } from './request';
38
44
  export { dataService };
39
45
  import * as dataService from './data-service';
40
46
  export * from './providers';
47
+ export * from './svg';
41
48
  export * from './utils';
42
49
  export * from './actions';
43
50
  export { default as createPayload } from './createPayload';
44
51
  export * from './feedback';
45
52
  export * from './parameterSettings';
46
53
  export * from './agentToolOptions';
54
+ export * from './backgroundResults';
47
55
  export * from './codeEnvRef';
56
+ export * from './code/worker';
57
+ export * from './code/approval';
58
+ export * from './code/workspace';
@@ -11,6 +11,9 @@ export declare enum QueryKeys {
11
11
  searchEnabled = "searchEnabled",
12
12
  langfuseConnection = "langfuseConnection",
13
13
  langfuseSessionLink = "langfuseSessionLink",
14
+ conversationTraceAvailability = "conversationTraceAvailability",
15
+ conversationTraceRecords = "conversationTraceRecords",
16
+ conversationTraceRecord = "conversationTraceRecord",
14
17
  user = "user",
15
18
  name = "name",// user key name
16
19
  models = "models",
@@ -86,15 +89,22 @@ export declare enum QueryKeys {
86
89
  parentSubagents = "parentSubagents",
87
90
  subagentThread = "subagentThread",
88
91
  codeEnvironments = "codeEnvironments",
89
- agentQueuedTurns = "agentQueuedTurns"
92
+ agentQueuedTurns = "agentQueuedTurns",
93
+ pinnedOrder = "pinnedOrder"
90
94
  }
91
95
  export declare const DynamicQueryKeys: {
92
96
  readonly agentFiles: (agentId: string) => readonly ["agentFiles", string];
97
+ readonly codeEnvironmentStatus: (id: string) => readonly [QueryKeys.codeEnvironments, string, "status"];
93
98
  };
94
99
  export declare enum MutationKeys {
95
100
  subagentControl = "subagentControl",
96
101
  enqueueAgentQueuedTurn = "enqueueAgentQueuedTurn",
97
102
  cancelAgentQueuedTurn = "cancelAgentQueuedTurn",
103
+ /** Whole-array favorites write, keyed so every hook instance's write is
104
+ * visible to the others through the query client. */
105
+ updateFavorites = "updateFavorites",
106
+ /** Pinned-section display order write, keyed for the same reason. */
107
+ updatePinnedOrder = "updatePinnedOrder",
98
108
  updateLangfuseConnection = "updateLangfuseConnection",
99
109
  testLangfuseConnection = "testLangfuseConnection",
100
110
  createAgentApiKey = "createAgentApiKey",
@@ -139,5 +149,6 @@ export declare enum MutationKeys {
139
149
  runSchedule = "runSchedule",
140
150
  pairCodeEnvironment = "pairCodeEnvironment",
141
151
  updateCodeEnvironmentSettings = "updateCodeEnvironmentSettings",
142
- deleteCodeEnvironment = "deleteCodeEnvironment"
152
+ deleteCodeEnvironment = "deleteCodeEnvironment",
153
+ moveConversationCodeEnvironment = "moveConversationCodeEnvironment"
143
154
  }
@@ -13,3 +13,11 @@ export declare const MAX_CHAT_PROJECT_NAME_LENGTH = 100;
13
13
  export declare const MAX_CHAT_PROJECT_DESCRIPTION_LENGTH = 1000;
14
14
  /** Mirrors the bounded graph-child member limit in `@librechat/agents`. */
15
15
  export declare const MAX_GRAPH_SUBAGENT_MEMBERS = 32;
16
+ /** Characters of retained tool output one stopped turn may be tokenized for, so the
17
+ * context gauge can add an exact figure instead of an estimate. The schema default
18
+ * and the save path share it; tokenizing runs ~60 ms/MB, once per stopped turn. */
19
+ export declare const DEFAULT_MAX_RETAINED_TOOL_COUNT_CHARS: number;
20
+ /** Token ceiling for the block of Ask User answers carried verbatim in an agent's
21
+ * user context (`endpoints.agents.askUserQuestion.retainedAnswers.maxTokens`).
22
+ * Older answers drop first once the block exceeds it; the newest set is always kept. */
23
+ export declare const DEFAULT_RETAINED_ANSWER_TOKENS = 4096;