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.
Files changed (64) hide show
  1. package/dist/{data-service-pwrlWjJs.mjs → data-service-Bx6IFaSa.mjs} +1770 -51
  2. package/dist/data-service-Bx6IFaSa.mjs.map +1 -0
  3. package/dist/{data-service-DOIF4BkW.js → data-service-CTX0tVO5.js} +2509 -112
  4. package/dist/data-service-CTX0tVO5.js.map +1 -0
  5. package/dist/index.js +1503 -54
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +1314 -55
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/react-query/index.js +2 -1
  10. package/dist/react-query/index.js.map +1 -1
  11. package/dist/react-query/index.mjs +2 -1
  12. package/dist/react-query/index.mjs.map +1 -1
  13. package/dist/types/accessPermissions.d.ts +58 -1
  14. package/dist/types/actions.d.ts +2 -2
  15. package/dist/types/agentToolOptions.d.ts +11 -0
  16. package/dist/types/api-endpoints.d.ts +24 -0
  17. package/dist/types/bedrock.d.ts +238 -10
  18. package/dist/types/cadence.d.ts +33 -0
  19. package/dist/types/code/approval.d.ts +26 -0
  20. package/dist/types/code/worker.d.ts +10 -0
  21. package/dist/types/code/workspace.d.ts +28 -0
  22. package/dist/types/codeEnvRef.d.ts +26 -0
  23. package/dist/types/config.d.ts +13180 -3021
  24. package/dist/types/data-service.d.ts +48 -2
  25. package/dist/types/errors.d.ts +2 -0
  26. package/dist/types/file-config.d.ts +138 -9
  27. package/dist/types/filters.d.ts +1422 -0
  28. package/dist/types/generate.d.ts +103 -1
  29. package/dist/types/index.d.ts +17 -0
  30. package/dist/types/keys.d.ts +33 -2
  31. package/dist/types/langchain.d.ts +4 -0
  32. package/dist/types/limits.d.ts +13 -0
  33. package/dist/types/mcp.d.ts +555 -460
  34. package/dist/types/messages.d.ts +24 -0
  35. package/dist/types/models.d.ts +1112 -319
  36. package/dist/types/parameterSettings.d.ts +13 -1
  37. package/dist/types/parsers.d.ts +10 -0
  38. package/dist/types/permissions.d.ts +42 -1
  39. package/dist/types/providers.d.ts +37 -0
  40. package/dist/types/request.d.ts +2 -2
  41. package/dist/types/resolve-llm-delivery-path.d.ts +68 -0
  42. package/dist/types/roles.d.ts +34 -0
  43. package/dist/types/runSteps.d.ts +59 -0
  44. package/dist/types/schemas.d.ts +1724 -248
  45. package/dist/types/stateful-code.d.ts +7 -0
  46. package/dist/types/svg.d.ts +34 -0
  47. package/dist/types/types/agents.d.ts +116 -7
  48. package/dist/types/types/assistants.d.ts +121 -6
  49. package/dist/types/types/files.d.ts +46 -2
  50. package/dist/types/types/index.d.ts +2 -0
  51. package/dist/types/types/insights.d.ts +71 -0
  52. package/dist/types/types/mutations.d.ts +1 -0
  53. package/dist/types/types/queries.d.ts +37 -2
  54. package/dist/types/types/queuedTurns.d.ts +870 -0
  55. package/dist/types/types/runs.d.ts +119 -9
  56. package/dist/types/types/schedules.d.ts +339 -0
  57. package/dist/types/types/skills.d.ts +9 -0
  58. package/dist/types/types/subagents.d.ts +159 -0
  59. package/dist/types/types/traces.d.ts +85 -0
  60. package/dist/types/types/web.d.ts +12 -2
  61. package/dist/types/types.d.ts +101 -1
  62. package/package.json +5 -3
  63. package/dist/data-service-DOIF4BkW.js.map +0 -1
  64. package/dist/data-service-pwrlWjJs.mjs.map +0 -1
@@ -0,0 +1,10 @@
1
+ import type { TCodeEnvironmentPairingResponse } from '../types';
2
+ export type CodeWorkerShell = 'posix' | 'powershell';
3
+ export type CodeWorkerPairing = TCodeEnvironmentPairingResponse['pairing'];
4
+ export interface CodeWorkerRunOptions {
5
+ defaultWorkspace?: boolean;
6
+ allowWorkspaceWrites?: boolean;
7
+ allowWorkspaceCommands?: boolean;
8
+ }
9
+ export declare function isCodeWorkerShell(value: string): value is CodeWorkerShell;
10
+ export declare function createCodeWorkerSetupCommand(pairing: CodeWorkerPairing, shell: CodeWorkerShell, options?: CodeWorkerRunOptions): string;
@@ -0,0 +1,28 @@
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
+ export declare const CODE_WORKSPACE_OPERATIONS: readonly ["read_file", "search_text", "list_files", "write_file", "preview_edit", "edit_file", "execute_command"];
7
+ export declare const CODE_WORKSPACE_SELECTION_ERROR_REASONS: readonly ["required", "invalid", "worker_unavailable", "unsupported", "missing", "locked"];
8
+ export declare const CODE_ENVIRONMENT_MODES: readonly ["attached", "without_attached"];
9
+ export type CodeWorkspaceOperation = (typeof CODE_WORKSPACE_OPERATIONS)[number];
10
+ export type CodeWorkspaceSelectionErrorReason = (typeof CODE_WORKSPACE_SELECTION_ERROR_REASONS)[number];
11
+ export type CodeEnvironmentMode = (typeof CODE_ENVIRONMENT_MODES)[number];
12
+ /** Public, path-free description of one root registered by an attached worker. */
13
+ export interface CodeWorkspaceDescriptor {
14
+ id: string;
15
+ name?: string;
16
+ /** Omitted when every worker-level operation applies to this workspace. */
17
+ operations?: CodeWorkspaceOperation[];
18
+ }
19
+ /** Conversation-owned selection, bound to the environment that advertised it. */
20
+ export interface CodeWorkspaceSelection {
21
+ environmentId: string;
22
+ workspaceId: string;
23
+ }
24
+ export declare function isCodeEnvironmentMode(value: unknown): value is CodeEnvironmentMode;
25
+ export declare function isCodeWorkspaceSelectionErrorReason(value: unknown): value is CodeWorkspaceSelectionErrorReason;
26
+ export declare function isCodeWorkspaceSelection(value: unknown): value is CodeWorkspaceSelection;
27
+ /** One exact workspace per attached environment used by a conversation. */
28
+ export declare function isCodeWorkspaceSelections(value: unknown): value is CodeWorkspaceSelection[];
@@ -50,7 +50,20 @@ interface CodeEnvRefBase {
50
50
  id: string;
51
51
  storage_session_id: string;
52
52
  file_id: string;
53
+ /** Code API deployment that owns this storage pointer. Legacy refs omit
54
+ * the field and are treated as `default`; new writes always persist it. */
55
+ executionProfile?: CodeExecutionProfile;
56
+ /** Deployment-specific namespace. Configured stateful environments share
57
+ * the same wire profile, so this key prevents their file IDs from being
58
+ * reused against a different Code API server. */
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;
53
65
  }
66
+ export type CodeExecutionProfile = 'default' | 'stateful';
54
67
  export type CodeEnvRef = (CodeEnvRefBase & {
55
68
  kind: 'skill';
56
69
  version: number;
@@ -59,4 +72,17 @@ export type CodeEnvRef = (CodeEnvRefBase & {
59
72
  }) | (CodeEnvRefBase & {
60
73
  kind: 'user';
61
74
  });
75
+ /** Deployment-local pointers for a resource that may be used by both Code API profiles. */
76
+ export type CodeEnvRefMap = Partial<Record<string, CodeEnvRef>>;
77
+ export interface CodeEnvReferenceSet {
78
+ /** Compatibility pointer for readers that have not adopted profile-aware refs yet. */
79
+ codeEnvRef?: CodeEnvRef;
80
+ /** Canonical deployment-local pointers, keyed by trusted execution profile. */
81
+ codeEnvRefs?: CodeEnvRefMap;
82
+ }
83
+ export declare function getCodeEnvRefForProfile(refs: CodeEnvReferenceSet | null | undefined, routeKey: string): CodeEnvRef | undefined;
84
+ /** Adds one profile pointer without discarding the other profile's storage object. */
85
+ export declare function mergeCodeEnvRef(refs: CodeEnvReferenceSet | null | undefined, ref: CodeEnvRef): Required<Pick<CodeEnvReferenceSet, 'codeEnvRef' | 'codeEnvRefs'>>;
86
+ /** Enumerates every deployment-local pointer, including legacy single-pointer records. */
87
+ export declare function getCodeEnvRefs(refs: CodeEnvReferenceSet | null | undefined): Array<[string, CodeEnvRef]>;
62
88
  export {};