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
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const CODE_WORKSPACE_ID_PATTERN: RegExp;
|
|
2
|
+
/** Protocol-v1 ceiling enforced by the worker and Code API. */
|
|
3
|
+
export declare const CODE_WORKSPACE_MAX_COUNT = 32;
|
|
4
|
+
/** API/client protocol for immutable conversation-owned environment decisions. */
|
|
5
|
+
export declare const CODE_ENVIRONMENT_DECISION_VERSION: 1;
|
|
6
|
+
/** API/client protocol for an owner's explicit move of a sealed environment decision. */
|
|
7
|
+
export declare const CODE_ENVIRONMENT_MOVE_VERSION: 1;
|
|
8
|
+
export declare const CODE_WORKSPACE_OPERATIONS: readonly ["read_file", "search_text", "list_files", "write_file", "preview_edit", "edit_file", "execute_command"];
|
|
9
|
+
export declare const CODE_WORKSPACE_INSTANCE_TYPES: readonly ["git_worktree"];
|
|
10
|
+
export declare const CODE_WORKSPACE_SELECTION_ERROR_REASONS: readonly ["required", "invalid", "worker_unavailable", "unsupported", "missing", "locked"];
|
|
11
|
+
export declare const CODE_ENVIRONMENT_MODES: readonly ["attached", "without_attached"];
|
|
12
|
+
export type CodeWorkspaceOperation = (typeof CODE_WORKSPACE_OPERATIONS)[number];
|
|
13
|
+
export type CodeWorkspaceInstanceType = (typeof CODE_WORKSPACE_INSTANCE_TYPES)[number];
|
|
14
|
+
export type CodeWorkspaceSelectionErrorReason = (typeof CODE_WORKSPACE_SELECTION_ERROR_REASONS)[number];
|
|
15
|
+
export type CodeEnvironmentMode = (typeof CODE_ENVIRONMENT_MODES)[number];
|
|
16
|
+
/** Public, path-free description of one root registered by an attached worker. */
|
|
17
|
+
export interface CodeWorkspaceDescriptor {
|
|
18
|
+
id: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
instructions?: RepositoryInstructionDescriptor[];
|
|
21
|
+
/** Omitted when every worker-level operation applies to this workspace. */
|
|
22
|
+
operations?: CodeWorkspaceOperation[];
|
|
23
|
+
/** Optional worker-managed isolation modes available beneath this root. */
|
|
24
|
+
workspaceInstances?: CodeWorkspaceInstanceType[];
|
|
25
|
+
environment?: {
|
|
26
|
+
fingerprint: string;
|
|
27
|
+
repo?: string;
|
|
28
|
+
ref?: string;
|
|
29
|
+
actions: string[];
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export type RepositoryInstructionMode = 'prefer' | 'defer' | 'off';
|
|
33
|
+
export interface RepositoryInstructionDescriptor {
|
|
34
|
+
path: 'AGENTS.md' | 'CLAUDE.md';
|
|
35
|
+
bytes: number;
|
|
36
|
+
sha256: string;
|
|
37
|
+
truncated: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare function isRepositoryInstructionDescriptor(value: unknown): value is RepositoryInstructionDescriptor;
|
|
40
|
+
export declare function isCodeWorkspaceEnvironment(value: unknown): value is NonNullable<CodeWorkspaceDescriptor['environment']>;
|
|
41
|
+
/** Conversation-owned selection, bound to the environment that advertised it. */
|
|
42
|
+
export interface CodeWorkspaceSelection {
|
|
43
|
+
environmentId: string;
|
|
44
|
+
workspaceId: string;
|
|
45
|
+
}
|
|
46
|
+
export declare function isCodeEnvironmentMode(value: unknown): value is CodeEnvironmentMode;
|
|
47
|
+
export declare function isCodeWorkspaceSelectionErrorReason(value: unknown): value is CodeWorkspaceSelectionErrorReason;
|
|
48
|
+
export declare function isCodeWorkspaceSelection(value: unknown): value is CodeWorkspaceSelection;
|
|
49
|
+
/** One exact workspace per attached environment used by a conversation. */
|
|
50
|
+
export declare function isCodeWorkspaceSelections(value: unknown): value is CodeWorkspaceSelection[];
|
|
@@ -57,6 +57,11 @@ interface CodeEnvRefBase {
|
|
|
57
57
|
* the same wire profile, so this key prevents their file IDs from being
|
|
58
58
|
* reused against a different Code API server. */
|
|
59
59
|
executionRouteKey?: string;
|
|
60
|
+
/** Epoch ms when the file was uploaded to the code env; drives the liveness
|
|
61
|
+
* fast-path (distinct from the usage-bumped `updatedAt`). */
|
|
62
|
+
provisionedAt?: number;
|
|
63
|
+
/** Actual destination used when uploading this storage object. */
|
|
64
|
+
sandboxFilename?: string;
|
|
60
65
|
}
|
|
61
66
|
export type CodeExecutionProfile = 'default' | 'stateful';
|
|
62
67
|
export type CodeEnvRef = (CodeEnvRefBase & {
|