@librechat/client 0.1.0 → 0.1.1
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/index.es.js +38 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +38 -1
- package/dist/index.js.map +1 -1
- package/dist/types/common/index.d.ts +3 -2
- package/dist/types/common/index.d.ts.map +1 -1
- package/dist/types/common/types.d.ts +5 -518
- package/dist/types/common/types.d.ts.map +1 -1
- package/dist/types/components/Accordion.d.ts +4 -4
- package/dist/types/components/Accordion.d.ts.map +1 -1
- package/dist/types/components/AlertDialog.d.ts +7 -7
- package/dist/types/components/AlertDialog.d.ts.map +1 -1
- package/dist/types/components/AnimatedTabs.d.ts +3 -3
- package/dist/types/components/AnimatedTabs.d.ts.map +1 -1
- package/dist/types/components/Checkbox.d.ts +1 -1
- package/dist/types/components/Checkbox.d.ts.map +1 -1
- package/dist/types/components/DataTableColumnHeader.d.ts +1 -0
- package/dist/types/components/DataTableColumnHeader.d.ts.map +1 -1
- package/dist/types/components/Dialog.d.ts +6 -6
- package/dist/types/components/Dialog.d.ts.map +1 -1
- package/dist/types/components/DropdownMenu.d.ts +14 -14
- package/dist/types/components/DropdownMenu.d.ts.map +1 -1
- package/dist/types/components/HoverCard.d.ts +4 -4
- package/dist/types/components/HoverCard.d.ts.map +1 -1
- package/dist/types/components/InputOTP.d.ts +2 -2
- package/dist/types/components/InputOTP.d.ts.map +1 -1
- package/dist/types/components/Label.d.ts +3 -1
- package/dist/types/components/Label.d.ts.map +1 -1
- package/dist/types/components/OriginalDialog.d.ts +7 -7
- package/dist/types/components/OriginalDialog.d.ts.map +1 -1
- package/dist/types/components/Progress.d.ts +1 -1
- package/dist/types/components/Progress.d.ts.map +1 -1
- package/dist/types/components/Resizable.d.ts +0 -1
- package/dist/types/components/Resizable.d.ts.map +1 -1
- package/dist/types/components/Select.d.ts +10 -10
- package/dist/types/components/Select.d.ts.map +1 -1
- package/dist/types/components/Separator.d.ts +3 -1
- package/dist/types/components/Separator.d.ts.map +1 -1
- package/dist/types/components/Skeleton.d.ts +1 -0
- package/dist/types/components/Skeleton.d.ts.map +1 -1
- package/dist/types/components/Slider.d.ts +2 -1
- package/dist/types/components/Slider.d.ts.map +1 -1
- package/dist/types/components/Switch.d.ts +1 -1
- package/dist/types/components/Switch.d.ts.map +1 -1
- package/dist/types/components/Tabs.d.ts +4 -4
- package/dist/types/components/Tabs.d.ts.map +1 -1
- package/dist/types/components/Tag.d.ts +2 -2
- package/dist/types/components/Tag.d.ts.map +1 -1
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/hooks/ThemeContext.d.ts +0 -1
- package/dist/types/hooks/ThemeContext.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +70 -23
- package/dist/types/common/a11y.d.ts +0 -6
- package/dist/types/common/a11y.d.ts.map +0 -1
- package/dist/types/common/agents-types.d.ts +0 -30
- package/dist/types/common/agents-types.d.ts.map +0 -1
- package/dist/types/common/artifacts.d.ts +0 -24
- package/dist/types/common/artifacts.d.ts.map +0 -1
- package/dist/types/common/assistants-types.d.ts +0 -25
- package/dist/types/common/assistants-types.d.ts.map +0 -1
- package/dist/types/common/mcp.d.ts +0 -3
- package/dist/types/common/mcp.d.ts.map +0 -1
- package/dist/types/common/selector.d.ts +0 -24
- package/dist/types/common/selector.d.ts.map +0 -1
- package/dist/types/common/tools.d.ts +0 -6
- package/dist/types/common/tools.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"a11y.d.ts","sourceRoot":"","sources":["../../../src/common/a11y.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,uBAAuB,OAAO,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { AgentCapabilities, ArtifactModes } from 'librechat-data-provider';
|
|
2
|
-
import type { Agent, AgentProvider, AgentModelParameters } from 'librechat-data-provider';
|
|
3
|
-
import type { OptionWithIcon, ExtendedFile } from './types';
|
|
4
|
-
export type TAgentOption = OptionWithIcon & Agent & {
|
|
5
|
-
knowledge_files?: Array<[string, ExtendedFile]>;
|
|
6
|
-
context_files?: Array<[string, ExtendedFile]>;
|
|
7
|
-
code_files?: Array<[string, ExtendedFile]>;
|
|
8
|
-
};
|
|
9
|
-
export type TAgentCapabilities = {
|
|
10
|
-
[AgentCapabilities.web_search]: boolean;
|
|
11
|
-
[AgentCapabilities.file_search]: boolean;
|
|
12
|
-
[AgentCapabilities.execute_code]: boolean;
|
|
13
|
-
[AgentCapabilities.end_after_tools]?: boolean;
|
|
14
|
-
[AgentCapabilities.hide_sequential_outputs]?: boolean;
|
|
15
|
-
};
|
|
16
|
-
export type AgentForm = {
|
|
17
|
-
agent?: TAgentOption;
|
|
18
|
-
id: string;
|
|
19
|
-
name: string | null;
|
|
20
|
-
description: string | null;
|
|
21
|
-
instructions: string | null;
|
|
22
|
-
model: string | null;
|
|
23
|
-
model_parameters: AgentModelParameters;
|
|
24
|
-
tools?: string[];
|
|
25
|
-
provider?: AgentProvider | OptionWithIcon;
|
|
26
|
-
agent_ids?: string[];
|
|
27
|
-
[AgentCapabilities.artifacts]?: ArtifactModes | string;
|
|
28
|
-
recursion_limit?: number;
|
|
29
|
-
} & TAgentCapabilities;
|
|
30
|
-
//# sourceMappingURL=agents-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agents-types.d.ts","sourceRoot":"","sources":["../../../src/common/agents-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC3E,OAAO,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;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,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,kBAAkB,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface CodeBlock {
|
|
2
|
-
id: string;
|
|
3
|
-
language: string;
|
|
4
|
-
content: string;
|
|
5
|
-
}
|
|
6
|
-
export interface Artifact {
|
|
7
|
-
id: string;
|
|
8
|
-
lastUpdateTime: number;
|
|
9
|
-
index?: number;
|
|
10
|
-
messageId?: string;
|
|
11
|
-
identifier?: string;
|
|
12
|
-
language?: string;
|
|
13
|
-
content?: string;
|
|
14
|
-
title?: string;
|
|
15
|
-
type?: string;
|
|
16
|
-
}
|
|
17
|
-
export type ArtifactFiles = {
|
|
18
|
-
'App.tsx': string;
|
|
19
|
-
'index.tsx': string;
|
|
20
|
-
'/components/ui/MermaidDiagram.tsx': string;
|
|
21
|
-
} | Partial<{
|
|
22
|
-
[x: string]: string | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
//# sourceMappingURL=artifacts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","sourceRoot":"","sources":["../../../src/common/artifacts.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,aAAa,GACrB;IACE,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,mCAAmC,EAAE,MAAM,CAAC;CAC7C,GACD,OAAO,CAAC;IACN,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Capabilities, EModelEndpoint } from 'librechat-data-provider';
|
|
2
|
-
import type { Assistant, AssistantsEndpoint } from 'librechat-data-provider';
|
|
3
|
-
import type { Option, ExtendedFile } from './types';
|
|
4
|
-
export type ActionsEndpoint = AssistantsEndpoint | EModelEndpoint.agents;
|
|
5
|
-
export type TAssistantOption = string | (Option & Assistant & {
|
|
6
|
-
files?: Array<[string, ExtendedFile]>;
|
|
7
|
-
code_files?: Array<[string, ExtendedFile]>;
|
|
8
|
-
});
|
|
9
|
-
export type Actions = {
|
|
10
|
-
[Capabilities.code_interpreter]: boolean;
|
|
11
|
-
[Capabilities.image_vision]: boolean;
|
|
12
|
-
[Capabilities.retrieval]: boolean;
|
|
13
|
-
};
|
|
14
|
-
export type AssistantForm = {
|
|
15
|
-
assistant: TAssistantOption;
|
|
16
|
-
id: string;
|
|
17
|
-
name: string | null;
|
|
18
|
-
description: string | null;
|
|
19
|
-
instructions: string | null;
|
|
20
|
-
conversation_starters: string[];
|
|
21
|
-
model: string;
|
|
22
|
-
functions: string[];
|
|
23
|
-
append_current_datetime: boolean;
|
|
24
|
-
} & Actions;
|
|
25
|
-
//# sourceMappingURL=assistants-types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assistants-types.d.ts","sourceRoot":"","sources":["../../../src/common/assistants-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG,kBAAkB,GAAG,cAAc,CAAC,MAAM,CAAC;AAEzE,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,CAAC,MAAM,GACL,SAAS,GAAG;IACV,KAAK,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;IACtC,UAAU,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC;CAC5C,CAAC,CAAC;AAET,MAAM,MAAM,OAAO,GAAG;IACpB,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACzC,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IACrC,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,uBAAuB,EAAE,OAAO,CAAC;CAClC,GAAG,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","sourceRoot":"","sources":["../../../src/common/mcp.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,eAAO,MAAM,oBAAoB,EAAE,OAkBlC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TStartupConfig } from 'librechat-data-provider';
|
|
3
|
-
export interface Endpoint {
|
|
4
|
-
value: string;
|
|
5
|
-
label: string;
|
|
6
|
-
hasModels: boolean;
|
|
7
|
-
models?: Array<{
|
|
8
|
-
name: string;
|
|
9
|
-
isGlobal?: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
icon: React.ReactNode;
|
|
12
|
-
agentNames?: Record<string, string>;
|
|
13
|
-
assistantNames?: Record<string, string>;
|
|
14
|
-
modelIcons?: Record<string, string | undefined>;
|
|
15
|
-
}
|
|
16
|
-
export interface SelectedValues {
|
|
17
|
-
endpoint: string | null;
|
|
18
|
-
model: string | null;
|
|
19
|
-
modelSpec: string | null;
|
|
20
|
-
}
|
|
21
|
-
export interface ModelSelectorProps {
|
|
22
|
-
startupConfig: TStartupConfig | undefined;
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=selector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"selector.d.ts","sourceRoot":"","sources":["../../../src/common/selector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACrD,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CACjD;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,cAAc,GAAG,SAAS,CAAC;CAC3C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../../src/common/tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC9B,CAAC"}
|