librechat-data-provider 0.8.521 → 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.
- package/dist/{data-service-pwrlWjJs.mjs → data-service-Bx6IFaSa.mjs} +1770 -51
- package/dist/data-service-Bx6IFaSa.mjs.map +1 -0
- package/dist/{data-service-DOIF4BkW.js → data-service-CTX0tVO5.js} +2509 -112
- package/dist/data-service-CTX0tVO5.js.map +1 -0
- package/dist/index.js +1503 -54
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1314 -55
- 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 +58 -1
- package/dist/types/actions.d.ts +2 -2
- package/dist/types/agentToolOptions.d.ts +11 -0
- package/dist/types/api-endpoints.d.ts +24 -0
- package/dist/types/bedrock.d.ts +238 -10
- package/dist/types/cadence.d.ts +33 -0
- 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 +28 -0
- package/dist/types/codeEnvRef.d.ts +26 -0
- package/dist/types/config.d.ts +13180 -3021
- package/dist/types/data-service.d.ts +48 -2
- package/dist/types/errors.d.ts +2 -0
- package/dist/types/file-config.d.ts +138 -9
- package/dist/types/filters.d.ts +1422 -0
- package/dist/types/generate.d.ts +103 -1
- package/dist/types/index.d.ts +17 -0
- package/dist/types/keys.d.ts +33 -2
- package/dist/types/langchain.d.ts +4 -0
- package/dist/types/limits.d.ts +13 -0
- package/dist/types/mcp.d.ts +555 -460
- package/dist/types/messages.d.ts +24 -0
- package/dist/types/models.d.ts +1112 -319
- package/dist/types/parameterSettings.d.ts +13 -1
- package/dist/types/parsers.d.ts +10 -0
- package/dist/types/permissions.d.ts +42 -1
- package/dist/types/providers.d.ts +37 -0
- package/dist/types/request.d.ts +2 -2
- package/dist/types/resolve-llm-delivery-path.d.ts +68 -0
- package/dist/types/roles.d.ts +34 -0
- package/dist/types/runSteps.d.ts +59 -0
- package/dist/types/schemas.d.ts +1724 -248
- package/dist/types/stateful-code.d.ts +7 -0
- package/dist/types/svg.d.ts +34 -0
- package/dist/types/types/agents.d.ts +116 -7
- package/dist/types/types/assistants.d.ts +121 -6
- package/dist/types/types/files.d.ts +46 -2
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/insights.d.ts +71 -0
- package/dist/types/types/mutations.d.ts +1 -0
- package/dist/types/types/queries.d.ts +37 -2
- package/dist/types/types/queuedTurns.d.ts +870 -0
- package/dist/types/types/runs.d.ts +119 -9
- package/dist/types/types/schedules.d.ts +339 -0
- package/dist/types/types/skills.d.ts +9 -0
- package/dist/types/types/subagents.d.ts +159 -0
- package/dist/types/types/traces.d.ts +85 -0
- package/dist/types/types/web.d.ts +12 -2
- package/dist/types/types.d.ts +101 -1
- package/package.json +5 -3
- package/dist/data-service-DOIF4BkW.js.map +0 -1
- package/dist/data-service-pwrlWjJs.mjs.map +0 -1
package/dist/types/messages.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
import type { TMessageContentParts } from './types/assistants';
|
|
1
2
|
import type { TFile } from './types/files';
|
|
2
3
|
import type { TMessage } from './types';
|
|
4
|
+
/** A generated reasoning title describes the text as it existed at generation time.
|
|
5
|
+
* Any manual edit or merge into a different reasoning step invalidates the entire
|
|
6
|
+
* title revision domain while preserving unrelated content metadata. */
|
|
7
|
+
export declare function stripReasoningLabelMetadata(part: TMessageContentParts): TMessageContentParts;
|
|
3
8
|
export type ParentMessage = TMessage & {
|
|
4
9
|
children: TMessage[];
|
|
5
10
|
depth: number;
|
|
@@ -16,3 +21,22 @@ export declare function buildTree({ messages, fileMap, }: {
|
|
|
16
21
|
messages: (TMessage | undefined)[] | null;
|
|
17
22
|
fileMap?: Record<string, TFile>;
|
|
18
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;
|