librechat-data-provider 0.8.522 → 0.8.523

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 (46) hide show
  1. package/dist/{data-service-CaB7saTP.mjs → data-service-Bx6IFaSa.mjs} +638 -27
  2. package/dist/data-service-Bx6IFaSa.mjs.map +1 -0
  3. package/dist/{data-service-D5kHzBt-.js → data-service-CTX0tVO5.js} +871 -26
  4. package/dist/data-service-CTX0tVO5.js.map +1 -0
  5. package/dist/index.js +557 -19
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +491 -20
  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/api-endpoints.d.ts +6 -0
  13. package/dist/types/bedrock.d.ts +80 -20
  14. package/dist/types/code/approval.d.ts +26 -0
  15. package/dist/types/code/worker.d.ts +10 -0
  16. package/dist/types/code/workspace.d.ts +28 -0
  17. package/dist/types/codeEnvRef.d.ts +5 -0
  18. package/dist/types/config.d.ts +6062 -3828
  19. package/dist/types/data-service.d.ts +8 -0
  20. package/dist/types/errors.d.ts +2 -0
  21. package/dist/types/file-config.d.ts +137 -9
  22. package/dist/types/filters.d.ts +176 -176
  23. package/dist/types/generate.d.ts +28 -4
  24. package/dist/types/index.d.ts +7 -0
  25. package/dist/types/keys.d.ts +11 -1
  26. package/dist/types/mcp.d.ts +336 -330
  27. package/dist/types/messages.d.ts +19 -0
  28. package/dist/types/models.d.ts +367 -238
  29. package/dist/types/parameterSettings.d.ts +8 -0
  30. package/dist/types/providers.d.ts +1 -0
  31. package/dist/types/resolve-llm-delivery-path.d.ts +68 -0
  32. package/dist/types/schemas.d.ts +628 -317
  33. package/dist/types/svg.d.ts +34 -0
  34. package/dist/types/types/agents.d.ts +24 -0
  35. package/dist/types/types/assistants.d.ts +27 -3
  36. package/dist/types/types/files.d.ts +34 -0
  37. package/dist/types/types/insights.d.ts +9 -0
  38. package/dist/types/types/queries.d.ts +8 -1
  39. package/dist/types/types/queuedTurns.d.ts +16 -16
  40. package/dist/types/types/runs.d.ts +24 -5
  41. package/dist/types/types/schedules.d.ts +44 -11
  42. package/dist/types/types/traces.d.ts +85 -0
  43. package/dist/types/types.d.ts +41 -1
  44. package/package.json +2 -2
  45. package/dist/data-service-CaB7saTP.mjs.map +0 -1
  46. package/dist/data-service-D5kHzBt-.js.map +0 -1
@@ -21,3 +21,22 @@ 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
+ * `markCompactionSummary` sets `initiatedBy: 'user'` on the summary a Compact
29
+ * action produced, and nothing else writes it, so an automatic summary detour is
30
+ * not one. This is the compaction's own identity, independent of where it hangs:
31
+ * Compact runs on whatever leaf the branch ends with, so its response can parent
32
+ * onto a user message as easily as onto the answer it summarized. Redoing one is
33
+ * the context indicator's Compact action, never a rerun of the turn behind it.
34
+ */
35
+ export declare function isUserInitiatedCompaction(message?: Pick<TMessage, 'content'> | null): boolean;
36
+ /**
37
+ * True when a message is a finished manual compaction: every content part is a
38
+ * summary and at least one of them carries text. A part that is still streaming
39
+ * or that failed contributes no text of its own, so an interrupted compaction
40
+ * can be retried.
41
+ */
42
+ export declare function isCompactedLeaf(message?: Pick<TMessage, 'content'> | null): boolean;