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.
- package/dist/{data-service-CaB7saTP.mjs → data-service-B-WUVvTH.mjs} +1044 -173
- package/dist/data-service-B-WUVvTH.mjs.map +1 -0
- package/dist/{data-service-D5kHzBt-.js → data-service-CUG1qdeC.js} +1426 -207
- package/dist/data-service-CUG1qdeC.js.map +1 -0
- package/dist/index.js +886 -74
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +780 -70
- package/dist/index.mjs.map +1 -1
- package/dist/react-query/index.js +1 -1
- package/dist/react-query/index.mjs +1 -1
- package/dist/types/accessPermissions.d.ts +54 -1
- package/dist/types/actions.d.ts +1 -1
- package/dist/types/agentToolOptions.d.ts +1 -1
- package/dist/types/api-endpoints.d.ts +7 -0
- package/dist/types/backgroundResults.d.ts +13 -0
- package/dist/types/balance.d.ts +4 -0
- package/dist/types/bedrock.d.ts +132 -65
- package/dist/types/code/approval.d.ts +26 -0
- package/dist/types/code/worker.d.ts +10 -0
- package/dist/types/code/workspace.d.ts +50 -0
- package/dist/types/codeEnvRef.d.ts +5 -0
- package/dist/types/config.d.ts +5859 -2469
- package/dist/types/data-service.d.ts +22 -12
- package/dist/types/errors.d.ts +2 -0
- package/dist/types/file-config.d.ts +179 -12
- package/dist/types/filters.d.ts +97 -97
- package/dist/types/footer.d.ts +20 -0
- package/dist/types/generate.d.ts +48 -24
- package/dist/types/index.d.ts +11 -0
- package/dist/types/keys.d.ts +13 -2
- package/dist/types/limits.d.ts +8 -0
- package/dist/types/mcp.d.ts +683 -30
- package/dist/types/messages.d.ts +25 -1
- package/dist/types/models.d.ts +312 -183
- package/dist/types/parameterSettings.d.ts +10 -1
- package/dist/types/parsers.d.ts +25 -1
- package/dist/types/providers.d.ts +1 -0
- package/dist/types/resolve-llm-delivery-path.d.ts +161 -0
- package/dist/types/schemas.d.ts +771 -457
- package/dist/types/svg.d.ts +34 -0
- package/dist/types/types/agents.d.ts +257 -2
- package/dist/types/types/assistants.d.ts +2 -617
- package/dist/types/types/content.d.ts +286 -0
- package/dist/types/types/files.d.ts +48 -1
- package/dist/types/types/insights.d.ts +9 -0
- package/dist/types/types/mutations.d.ts +3 -2
- package/dist/types/types/queries.d.ts +8 -1
- package/dist/types/types/queuedTurns.d.ts +140 -106
- package/dist/types/types/runs.d.ts +33 -5
- package/dist/types/types/schedules.d.ts +40 -7
- package/dist/types/types/skills.d.ts +43 -0
- package/dist/types/types/tools.d.ts +132 -0
- package/dist/types/types/traces.d.ts +134 -0
- package/dist/types/types.d.ts +72 -2
- package/package.json +2 -2
- package/dist/data-service-CaB7saTP.mjs.map +0 -1
- package/dist/data-service-D5kHzBt-.js.map +0 -1
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TMessageContentParts } from './types/
|
|
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;
|