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
@@ -1,4 +1,4 @@
1
- import type { TMessageContentParts } from './types/assistants';
1
+ import type { TMessageContentParts } from './types/content';
2
2
  import type { TFile } from './types/files';
3
3
  import type { TMessage } from './types';
4
4
  /** A generated reasoning title describes the text as it existed at generation time.
@@ -21,3 +21,27 @@ export declare function buildTree({ messages, fileMap, }: {
21
21
  messages: (TMessage | undefined)[] | null;
22
22
  fileMap?: Record<string, TFile>;
23
23
  }): TMessage[] | null;
24
+ /** The message with this id, resolved through the array's memoized index. */
25
+ export declare function findMessageById(messages: (TMessage | undefined)[] | null | undefined, messageId?: string | null): TMessage | undefined;
26
+ /**
27
+ * True when a turn carries the marker the server stamps on a manual compaction:
28
+ * `markCompactionOutcome` sets `initiatedBy: 'user'` on whichever part carries
29
+ * the outcome — the summary a Compact action produced, or the error part a run
30
+ * that produced none recorded instead — and nothing else writes it, so an
31
+ * automatic summary detour is not one. This is the compaction's own identity,
32
+ * independent of where it hangs: Compact runs on whatever leaf the branch ends
33
+ * with, so its response can parent onto a user message as easily as onto the
34
+ * answer it summarized. Redoing one is the context indicator's Compact action,
35
+ * never a rerun of the turn behind it.
36
+ *
37
+ * Compactions stored before the marker existed carry none, so callers keep
38
+ * their own ancestry test as the fallback.
39
+ */
40
+ export declare function isUserInitiatedCompaction(message?: Pick<TMessage, 'content'> | null): boolean;
41
+ /**
42
+ * True when a message is a finished manual compaction: every content part is a
43
+ * summary and at least one of them carries text. A part that is still streaming
44
+ * or that failed contributes no text of its own, so an interrupted compaction
45
+ * can be retried.
46
+ */
47
+ export declare function isCompactedLeaf(message?: Pick<TMessage, 'content'> | null): boolean;