@axiom-lattice/react-sdk 2.1.14 → 2.1.16
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.js +213 -89
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +213 -90
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -992,9 +992,9 @@ var useStyle = createStyles(({ token, css }) => {
|
|
|
992
992
|
}
|
|
993
993
|
|
|
994
994
|
&.collapsed {
|
|
995
|
-
width:
|
|
996
|
-
height:
|
|
997
|
-
|
|
995
|
+
width: 16px;
|
|
996
|
+
height: 100%;
|
|
997
|
+
margin-right: -16px;
|
|
998
998
|
.ant-conversations {
|
|
999
999
|
width: 64px;
|
|
1000
1000
|
}
|
|
@@ -1249,7 +1249,7 @@ var ColumnLayout = ({
|
|
|
1249
1249
|
menu && /* @__PURE__ */ jsxs(
|
|
1250
1250
|
"div",
|
|
1251
1251
|
{
|
|
1252
|
-
className: `${styles.menu} ${"open"} ${menuCollapsed ? "collapsed" : ""}`,
|
|
1252
|
+
className: `${styles.menu} ${"open"} ${sideAppVisible || menuCollapsed ? "collapsed" : ""}`,
|
|
1253
1253
|
children: [
|
|
1254
1254
|
logo,
|
|
1255
1255
|
menu
|
|
@@ -2689,7 +2689,7 @@ var AttachmentsCard = ({
|
|
|
2689
2689
|
columns = 1,
|
|
2690
2690
|
showDownloadButton = false
|
|
2691
2691
|
}) => {
|
|
2692
|
-
const { Text:
|
|
2692
|
+
const { Text: Text13 } = Typography7;
|
|
2693
2693
|
const [showAll, setShowAll] = useState11(false);
|
|
2694
2694
|
const { openSideApp } = useChatUIContext();
|
|
2695
2695
|
const getStyles = () => {
|
|
@@ -2764,7 +2764,7 @@ var AttachmentsCard = ({
|
|
|
2764
2764
|
);
|
|
2765
2765
|
};
|
|
2766
2766
|
const renderFileDescription = (item) => /* @__PURE__ */ jsx16(Space7, { direction: "vertical", size: size === "small" ? 2 : 4, children: /* @__PURE__ */ jsx16(Space7, { children: /* @__PURE__ */ jsx16(
|
|
2767
|
-
|
|
2767
|
+
Text13,
|
|
2768
2768
|
{
|
|
2769
2769
|
type: "secondary",
|
|
2770
2770
|
style: {
|
|
@@ -2836,7 +2836,7 @@ var AttachmentsCard = ({
|
|
|
2836
2836
|
}
|
|
2837
2837
|
),
|
|
2838
2838
|
item.files && /* @__PURE__ */ jsxs9("div", { style: { paddingLeft: "12px" }, children: [
|
|
2839
|
-
/* @__PURE__ */ jsxs9(
|
|
2839
|
+
/* @__PURE__ */ jsxs9(Text13, { type: "secondary", style: { fontSize: "12px" }, children: [
|
|
2840
2840
|
"\u5305\u542B\u6587\u4EF6(",
|
|
2841
2841
|
item.files.length,
|
|
2842
2842
|
")"
|
|
@@ -3480,7 +3480,7 @@ var TaskCard = ({
|
|
|
3480
3480
|
};
|
|
3481
3481
|
|
|
3482
3482
|
// src/components/GenUI/elements/task_detail.tsx
|
|
3483
|
-
import { Typography as
|
|
3483
|
+
import { Typography as Typography13 } from "antd";
|
|
3484
3484
|
|
|
3485
3485
|
// src/components/Chat/Chating.tsx
|
|
3486
3486
|
import {
|
|
@@ -3736,7 +3736,7 @@ var HITLContainer = () => {
|
|
|
3736
3736
|
};
|
|
3737
3737
|
|
|
3738
3738
|
// src/components/Chat/AgentHeader.tsx
|
|
3739
|
-
import { Avatar as Avatar2, Space as Space12 } from "antd";
|
|
3739
|
+
import { Avatar as Avatar2, Space as Space12, Typography as Typography12 } from "antd";
|
|
3740
3740
|
|
|
3741
3741
|
// src/components/Chat/TodoProgress.tsx
|
|
3742
3742
|
import { Popover, Tooltip as Tooltip2, Progress } from "antd";
|
|
@@ -3823,6 +3823,7 @@ var FileExplorerButton = ({}) => {
|
|
|
3823
3823
|
import { Welcome } from "@ant-design/x";
|
|
3824
3824
|
import { useMemo as useMemo5 } from "react";
|
|
3825
3825
|
import { jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3826
|
+
var { Text: Text10 } = Typography12;
|
|
3826
3827
|
var AgentHeader = (props) => {
|
|
3827
3828
|
const { description, avatar, name, extra, extraMeta } = props;
|
|
3828
3829
|
const extraMetaComponents = useMemo5(() => {
|
|
@@ -3853,7 +3854,7 @@ var AgentHeader = (props) => {
|
|
|
3853
3854
|
{
|
|
3854
3855
|
style: { padding: 8 },
|
|
3855
3856
|
variant: "borderless",
|
|
3856
|
-
description,
|
|
3857
|
+
description: description ? /* @__PURE__ */ jsx27(Text10, { ellipsis: { tooltip: description }, children: description }) : void 0,
|
|
3857
3858
|
icon: avatar ? /* @__PURE__ */ jsx27(Avatar2, { src: avatar, size: 48 }) : /* @__PURE__ */ jsx27(Avatar2, { size: 48, children: name?.charAt(0).toUpperCase() }),
|
|
3858
3859
|
title: name ? name : void 0,
|
|
3859
3860
|
extra: /* @__PURE__ */ jsxs16(Space12, { children: [
|
|
@@ -4106,7 +4107,7 @@ var Chating = ({
|
|
|
4106
4107
|
|
|
4107
4108
|
// src/components/GenUI/elements/task_detail.tsx
|
|
4108
4109
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
4109
|
-
var { Text:
|
|
4110
|
+
var { Text: Text11 } = Typography13;
|
|
4110
4111
|
var TaskDetail = ({ data, component_key, interactive = true }) => {
|
|
4111
4112
|
const { description, subagent_type, thread_id } = data || {};
|
|
4112
4113
|
return /* @__PURE__ */ jsx29(
|
|
@@ -5153,6 +5154,7 @@ var AgentConversations = () => {
|
|
|
5153
5154
|
};
|
|
5154
5155
|
|
|
5155
5156
|
// src/components/Chat/ChatSidebar.tsx
|
|
5157
|
+
import { useState as useState20 } from "react";
|
|
5156
5158
|
import { Divider as Divider2 } from "antd";
|
|
5157
5159
|
import {
|
|
5158
5160
|
MenuFoldOutlined,
|
|
@@ -5212,7 +5214,7 @@ var useStyles3 = createStyles10(({ token, css }) => ({
|
|
|
5212
5214
|
position: relative;
|
|
5213
5215
|
background: transparent;
|
|
5214
5216
|
border-radius: ${token.borderRadiusLG}px;
|
|
5215
|
-
overflow:
|
|
5217
|
+
overflow: visible;
|
|
5216
5218
|
`,
|
|
5217
5219
|
content: css`
|
|
5218
5220
|
flex: 1;
|
|
@@ -5239,6 +5241,52 @@ var useStyles3 = createStyles10(({ token, css }) => ({
|
|
|
5239
5241
|
}
|
|
5240
5242
|
}
|
|
5241
5243
|
`,
|
|
5244
|
+
hoverOverlay: css`
|
|
5245
|
+
position: fixed;
|
|
5246
|
+
top: 0;
|
|
5247
|
+
left: 0;
|
|
5248
|
+
height: 100vh;
|
|
5249
|
+
width: 240px;
|
|
5250
|
+
background: ${token.colorBgContainer};
|
|
5251
|
+
box-shadow: ${token.boxShadowSecondary};
|
|
5252
|
+
border-radius: 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px 0;
|
|
5253
|
+
z-index: 1000;
|
|
5254
|
+
transform: translateX(-100%);
|
|
5255
|
+
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
5256
|
+
overflow: hidden;
|
|
5257
|
+
display: flex;
|
|
5258
|
+
flex-direction: column;
|
|
5259
|
+
padding-top: ${token.paddingMD}px;
|
|
5260
|
+
|
|
5261
|
+
&.visible {
|
|
5262
|
+
transform: translateX(0);
|
|
5263
|
+
}
|
|
5264
|
+
`,
|
|
5265
|
+
hoverContent: css`
|
|
5266
|
+
flex: 1;
|
|
5267
|
+
overflow-y: auto;
|
|
5268
|
+
overflow-x: hidden;
|
|
5269
|
+
padding: ${token.paddingMD}px ${token.paddingSM}px;
|
|
5270
|
+
padding-bottom: ${token.paddingLG}px;
|
|
5271
|
+
|
|
5272
|
+
/* Custom scrollbar styling */
|
|
5273
|
+
&::-webkit-scrollbar {
|
|
5274
|
+
width: 6px;
|
|
5275
|
+
}
|
|
5276
|
+
|
|
5277
|
+
&::-webkit-scrollbar-track {
|
|
5278
|
+
background: transparent;
|
|
5279
|
+
}
|
|
5280
|
+
|
|
5281
|
+
&::-webkit-scrollbar-thumb {
|
|
5282
|
+
background: ${token.colorBorder};
|
|
5283
|
+
border-radius: 3px;
|
|
5284
|
+
|
|
5285
|
+
&:hover {
|
|
5286
|
+
background: ${token.colorBorderSecondary};
|
|
5287
|
+
}
|
|
5288
|
+
}
|
|
5289
|
+
`,
|
|
5242
5290
|
section: css`
|
|
5243
5291
|
margin-bottom: ${token.marginLG}px;
|
|
5244
5292
|
|
|
@@ -5280,6 +5328,18 @@ var useStyles3 = createStyles10(({ token, css }) => ({
|
|
|
5280
5328
|
transparent
|
|
5281
5329
|
);
|
|
5282
5330
|
}
|
|
5331
|
+
|
|
5332
|
+
&.collapsed {
|
|
5333
|
+
border: 0;
|
|
5334
|
+
&::before {
|
|
5335
|
+
content: "";
|
|
5336
|
+
position: absolute;
|
|
5337
|
+
top: 0;
|
|
5338
|
+
left: 0;
|
|
5339
|
+
right: 0;
|
|
5340
|
+
height: 0px;
|
|
5341
|
+
}
|
|
5342
|
+
}
|
|
5283
5343
|
`,
|
|
5284
5344
|
actionButton: css`
|
|
5285
5345
|
display: flex;
|
|
@@ -5320,8 +5380,9 @@ var ChatSidebar = ({
|
|
|
5320
5380
|
defaultCollapsed = false
|
|
5321
5381
|
}) => {
|
|
5322
5382
|
const { styles } = useStyles3();
|
|
5323
|
-
const { setMenuCollapsed, menuCollapsed } = useChatUIContext();
|
|
5383
|
+
const { setMenuCollapsed, menuCollapsed, sideAppVisible } = useChatUIContext();
|
|
5324
5384
|
const { setSettingsModalOpen } = useLatticeChatShellContext();
|
|
5385
|
+
const [isHovered, setIsHovered] = useState20(false);
|
|
5325
5386
|
const handleToggleCollapse = () => {
|
|
5326
5387
|
setMenuCollapsed(!menuCollapsed);
|
|
5327
5388
|
};
|
|
@@ -5329,41 +5390,103 @@ var ChatSidebar = ({
|
|
|
5329
5390
|
setSettingsModalOpen(true);
|
|
5330
5391
|
onSettingsClick?.();
|
|
5331
5392
|
};
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5393
|
+
const isCollapsed = menuCollapsed || sideAppVisible;
|
|
5394
|
+
const handleMouseEnter = () => {
|
|
5395
|
+
if (isCollapsed) {
|
|
5396
|
+
setIsHovered(true);
|
|
5397
|
+
}
|
|
5398
|
+
};
|
|
5399
|
+
const handleMouseLeave = () => {
|
|
5400
|
+
setIsHovered(false);
|
|
5401
|
+
};
|
|
5402
|
+
return /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
5403
|
+
/* @__PURE__ */ jsx37(
|
|
5404
|
+
"div",
|
|
5405
|
+
{
|
|
5406
|
+
className: styles.sidebar,
|
|
5407
|
+
onMouseEnter: handleMouseEnter,
|
|
5408
|
+
onMouseLeave: handleMouseLeave,
|
|
5409
|
+
children: !isCollapsed && /* @__PURE__ */ jsxs19(Fragment5, { children: [
|
|
5410
|
+
/* @__PURE__ */ jsxs19("div", { className: styles.content, children: [
|
|
5411
|
+
/* @__PURE__ */ jsxs19("div", { className: styles.section, children: [
|
|
5412
|
+
/* @__PURE__ */ jsx37("div", { className: styles.sectionTitle, children: "Assistants" }),
|
|
5413
|
+
/* @__PURE__ */ jsx37(AssistantList, {})
|
|
5414
|
+
] }),
|
|
5415
|
+
/* @__PURE__ */ jsx37(Divider2, { className: styles.divider }),
|
|
5416
|
+
/* @__PURE__ */ jsxs19("div", { className: styles.section, children: [
|
|
5417
|
+
/* @__PURE__ */ jsx37("div", { className: styles.sectionTitle, children: "Threads" }),
|
|
5418
|
+
/* @__PURE__ */ jsx37(AgentConversations, {})
|
|
5419
|
+
] })
|
|
5420
|
+
] }),
|
|
5421
|
+
/* @__PURE__ */ jsxs19("div", { className: styles.footer, children: [
|
|
5422
|
+
/* @__PURE__ */ jsx37(
|
|
5423
|
+
"button",
|
|
5424
|
+
{
|
|
5425
|
+
className: styles.actionButton,
|
|
5426
|
+
onClick: handleToggleCollapse,
|
|
5427
|
+
title: isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
5428
|
+
"aria-label": isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
5429
|
+
children: isCollapsed ? /* @__PURE__ */ jsx37(MenuUnfoldOutlined, {}) : /* @__PURE__ */ jsx37(MenuFoldOutlined, {})
|
|
5430
|
+
}
|
|
5431
|
+
),
|
|
5432
|
+
/* @__PURE__ */ jsx37(
|
|
5433
|
+
"button",
|
|
5434
|
+
{
|
|
5435
|
+
className: styles.actionButton,
|
|
5436
|
+
onClick: handleSettingsClick,
|
|
5437
|
+
title: "Settings",
|
|
5438
|
+
"aria-label": "Settings",
|
|
5439
|
+
children: /* @__PURE__ */ jsx37(SettingOutlined, {})
|
|
5440
|
+
}
|
|
5441
|
+
)
|
|
5442
|
+
] })
|
|
5443
|
+
] })
|
|
5444
|
+
}
|
|
5445
|
+
),
|
|
5446
|
+
isCollapsed && /* @__PURE__ */ jsxs19(
|
|
5447
|
+
"div",
|
|
5448
|
+
{
|
|
5449
|
+
className: `${styles.hoverOverlay} ${isHovered ? "visible" : ""}`,
|
|
5450
|
+
onMouseEnter: handleMouseEnter,
|
|
5451
|
+
onMouseLeave: handleMouseLeave,
|
|
5452
|
+
children: [
|
|
5453
|
+
/* @__PURE__ */ jsxs19("div", { className: styles.hoverContent, children: [
|
|
5454
|
+
/* @__PURE__ */ jsxs19("div", { className: styles.section, children: [
|
|
5455
|
+
/* @__PURE__ */ jsx37("div", { className: styles.sectionTitle, children: "Assistants" }),
|
|
5456
|
+
/* @__PURE__ */ jsx37(AssistantList, {})
|
|
5457
|
+
] }),
|
|
5458
|
+
/* @__PURE__ */ jsx37(Divider2, { className: styles.divider }),
|
|
5459
|
+
/* @__PURE__ */ jsxs19("div", { className: styles.section, children: [
|
|
5460
|
+
/* @__PURE__ */ jsx37("div", { className: styles.sectionTitle, children: "Threads" }),
|
|
5461
|
+
/* @__PURE__ */ jsx37(AgentConversations, {})
|
|
5462
|
+
] })
|
|
5463
|
+
] }),
|
|
5464
|
+
/* @__PURE__ */ jsxs19("div", { className: styles.footer, children: [
|
|
5465
|
+
/* @__PURE__ */ jsx37(
|
|
5466
|
+
"button",
|
|
5467
|
+
{
|
|
5468
|
+
className: styles.actionButton,
|
|
5469
|
+
onClick: handleToggleCollapse,
|
|
5470
|
+
title: isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
5471
|
+
"aria-label": isCollapsed ? "Expand sidebar" : "Collapse sidebar",
|
|
5472
|
+
children: isCollapsed ? /* @__PURE__ */ jsx37(MenuUnfoldOutlined, {}) : /* @__PURE__ */ jsx37(MenuFoldOutlined, {})
|
|
5473
|
+
}
|
|
5474
|
+
),
|
|
5475
|
+
/* @__PURE__ */ jsx37(
|
|
5476
|
+
"button",
|
|
5477
|
+
{
|
|
5478
|
+
className: styles.actionButton,
|
|
5479
|
+
onClick: handleSettingsClick,
|
|
5480
|
+
title: "Settings",
|
|
5481
|
+
"aria-label": "Settings",
|
|
5482
|
+
children: /* @__PURE__ */ jsx37(SettingOutlined, {})
|
|
5483
|
+
}
|
|
5484
|
+
)
|
|
5485
|
+
] })
|
|
5486
|
+
]
|
|
5487
|
+
}
|
|
5488
|
+
)
|
|
5489
|
+
] });
|
|
5367
5490
|
};
|
|
5368
5491
|
|
|
5369
5492
|
// src/components/Chat/LatticeChatView.tsx
|
|
@@ -5398,19 +5521,18 @@ var LatticeChatView = (props) => {
|
|
|
5398
5521
|
};
|
|
5399
5522
|
|
|
5400
5523
|
// src/components/Chat/SettingsModal.tsx
|
|
5401
|
-
import { useState as
|
|
5524
|
+
import { useState as useState21, useEffect as useEffect14, useRef as useRef11 } from "react";
|
|
5402
5525
|
import {
|
|
5403
5526
|
Modal,
|
|
5404
5527
|
Input,
|
|
5405
5528
|
Button as Button12,
|
|
5406
5529
|
message as message4,
|
|
5407
|
-
Typography as
|
|
5530
|
+
Typography as Typography14,
|
|
5408
5531
|
Alert as Alert3,
|
|
5409
5532
|
Select,
|
|
5410
5533
|
Switch,
|
|
5411
5534
|
Space as Space13,
|
|
5412
|
-
Tabs as Tabs2
|
|
5413
|
-
Drawer
|
|
5535
|
+
Tabs as Tabs2
|
|
5414
5536
|
} from "antd";
|
|
5415
5537
|
import {
|
|
5416
5538
|
SaveOutlined,
|
|
@@ -5426,7 +5548,7 @@ import {
|
|
|
5426
5548
|
} from "@ant-design/icons";
|
|
5427
5549
|
import { createStyles as createStyles11 } from "antd-style";
|
|
5428
5550
|
import { Fragment as Fragment6, jsx as jsx39, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
5429
|
-
var { Text:
|
|
5551
|
+
var { Text: Text12, Title: Title2 } = Typography14;
|
|
5430
5552
|
var { TextArea } = Input;
|
|
5431
5553
|
var useStyles4 = createStyles11(({ token, css }) => ({
|
|
5432
5554
|
// settingsModal: css`
|
|
@@ -5788,7 +5910,7 @@ var SettingsModal = ({
|
|
|
5788
5910
|
}) => {
|
|
5789
5911
|
const { styles } = useStyles4();
|
|
5790
5912
|
const { config: shellConfig, updateConfigValue } = useLatticeChatShellContext();
|
|
5791
|
-
const [connections, setConnections] =
|
|
5913
|
+
const [connections, setConnections] = useState21(() => {
|
|
5792
5914
|
if (typeof window !== "undefined") {
|
|
5793
5915
|
try {
|
|
5794
5916
|
const stored = localStorage.getItem("lattice_server_connections");
|
|
@@ -5811,21 +5933,21 @@ var SettingsModal = ({
|
|
|
5811
5933
|
}
|
|
5812
5934
|
return [];
|
|
5813
5935
|
});
|
|
5814
|
-
const [serverConfigs, setServerConfigs] =
|
|
5936
|
+
const [serverConfigs, setServerConfigs] = useState21({});
|
|
5815
5937
|
const connectionsRef = useRef11(connections);
|
|
5816
5938
|
useEffect14(() => {
|
|
5817
5939
|
connectionsRef.current = connections;
|
|
5818
5940
|
}, [connections]);
|
|
5819
|
-
const [activeTabKey, setActiveTabKey] =
|
|
5941
|
+
const [activeTabKey, setActiveTabKey] = useState21(
|
|
5820
5942
|
connections.length > 0 ? connections[0].id : ""
|
|
5821
5943
|
);
|
|
5822
|
-
const [activeMenu, setActiveMenu] =
|
|
5823
|
-
const [loading, setLoading] =
|
|
5824
|
-
const [showAddServerModal, setShowAddServerModal] =
|
|
5825
|
-
const [newServerUrl, setNewServerUrl] =
|
|
5826
|
-
const [newServerName, setNewServerName] =
|
|
5827
|
-
const [newServerApiKey, setNewServerApiKey] =
|
|
5828
|
-
const [addingServer, setAddingServer] =
|
|
5944
|
+
const [activeMenu, setActiveMenu] = useState21("environment");
|
|
5945
|
+
const [loading, setLoading] = useState21(false);
|
|
5946
|
+
const [showAddServerModal, setShowAddServerModal] = useState21(false);
|
|
5947
|
+
const [newServerUrl, setNewServerUrl] = useState21("");
|
|
5948
|
+
const [newServerName, setNewServerName] = useState21("");
|
|
5949
|
+
const [newServerApiKey, setNewServerApiKey] = useState21("");
|
|
5950
|
+
const [addingServer, setAddingServer] = useState21(false);
|
|
5829
5951
|
const saveConnections = (newConnections) => {
|
|
5830
5952
|
setConnections(newConnections);
|
|
5831
5953
|
if (typeof window !== "undefined") {
|
|
@@ -6252,7 +6374,7 @@ var SettingsModal = ({
|
|
|
6252
6374
|
className: styles.alertCard
|
|
6253
6375
|
}
|
|
6254
6376
|
),
|
|
6255
|
-
/* @__PURE__ */ jsx39("div", { style: { marginBottom: 24 }, children: /* @__PURE__ */ jsx39(
|
|
6377
|
+
/* @__PURE__ */ jsx39("div", { style: { marginBottom: 24 }, children: /* @__PURE__ */ jsx39(Text12, { type: "secondary", style: { fontSize: 14, lineHeight: 1.6 }, children: "Configure environment variables in .env format (key=value). One variable per line. Leave password fields empty to keep current values." }) }),
|
|
6256
6378
|
/* @__PURE__ */ jsx39(
|
|
6257
6379
|
TextArea,
|
|
6258
6380
|
{
|
|
@@ -6331,7 +6453,7 @@ QUEUE_NAME=tasks`,
|
|
|
6331
6453
|
}
|
|
6332
6454
|
};
|
|
6333
6455
|
return /* @__PURE__ */ jsxs20("div", { className: styles.formContainer, children: [
|
|
6334
|
-
/* @__PURE__ */ jsx39("div", { style: { marginBottom: 32 }, children: /* @__PURE__ */ jsx39(
|
|
6456
|
+
/* @__PURE__ */ jsx39("div", { style: { marginBottom: 32 }, children: /* @__PURE__ */ jsx39(Text12, { type: "secondary", style: { fontSize: 14, lineHeight: 1.6 }, children: "Configure model lattices. Each model will be registered with the provided key and can be used by agents." }) }),
|
|
6335
6457
|
config.models.map((model, index) => /* @__PURE__ */ jsxs20("div", { className: styles.card, children: [
|
|
6336
6458
|
/* @__PURE__ */ jsxs20(
|
|
6337
6459
|
"div",
|
|
@@ -6346,12 +6468,12 @@ QUEUE_NAME=tasks`,
|
|
|
6346
6468
|
},
|
|
6347
6469
|
children: [
|
|
6348
6470
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
6349
|
-
/* @__PURE__ */ jsxs20(
|
|
6471
|
+
/* @__PURE__ */ jsxs20(Text12, { strong: true, style: { fontSize: 16 }, children: [
|
|
6350
6472
|
"Model ",
|
|
6351
6473
|
index + 1
|
|
6352
6474
|
] }),
|
|
6353
6475
|
model.key && /* @__PURE__ */ jsxs20(
|
|
6354
|
-
|
|
6476
|
+
Text12,
|
|
6355
6477
|
{
|
|
6356
6478
|
type: "secondary",
|
|
6357
6479
|
style: { marginLeft: 8, fontSize: 12 },
|
|
@@ -6382,7 +6504,7 @@ QUEUE_NAME=tasks`,
|
|
|
6382
6504
|
),
|
|
6383
6505
|
/* @__PURE__ */ jsxs20(Space13, { direction: "vertical", style: { width: "100%" }, size: "large", children: [
|
|
6384
6506
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
6385
|
-
/* @__PURE__ */ jsx39(
|
|
6507
|
+
/* @__PURE__ */ jsx39(Text12, { className: styles.formLabel, children: "Key *" }),
|
|
6386
6508
|
/* @__PURE__ */ jsx39(
|
|
6387
6509
|
Input,
|
|
6388
6510
|
{
|
|
@@ -6392,10 +6514,10 @@ QUEUE_NAME=tasks`,
|
|
|
6392
6514
|
style: { height: 40 }
|
|
6393
6515
|
}
|
|
6394
6516
|
),
|
|
6395
|
-
/* @__PURE__ */ jsx39(
|
|
6517
|
+
/* @__PURE__ */ jsx39(Text12, { className: styles.formDescription, children: "Unique identifier for this model" })
|
|
6396
6518
|
] }),
|
|
6397
6519
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
6398
|
-
/* @__PURE__ */ jsx39(
|
|
6520
|
+
/* @__PURE__ */ jsx39(Text12, { className: styles.formLabel, children: "Provider *" }),
|
|
6399
6521
|
/* @__PURE__ */ jsx39(
|
|
6400
6522
|
Select,
|
|
6401
6523
|
{
|
|
@@ -6413,7 +6535,7 @@ QUEUE_NAME=tasks`,
|
|
|
6413
6535
|
)
|
|
6414
6536
|
] }),
|
|
6415
6537
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
6416
|
-
/* @__PURE__ */ jsx39(
|
|
6538
|
+
/* @__PURE__ */ jsx39(Text12, { className: styles.formLabel, children: "Model Name *" }),
|
|
6417
6539
|
/* @__PURE__ */ jsx39(
|
|
6418
6540
|
Input,
|
|
6419
6541
|
{
|
|
@@ -6425,7 +6547,7 @@ QUEUE_NAME=tasks`,
|
|
|
6425
6547
|
)
|
|
6426
6548
|
] }),
|
|
6427
6549
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
6428
|
-
/* @__PURE__ */ jsx39(
|
|
6550
|
+
/* @__PURE__ */ jsx39(Text12, { className: styles.formLabel, children: "API Key" }),
|
|
6429
6551
|
/* @__PURE__ */ jsx39(
|
|
6430
6552
|
Input.Password,
|
|
6431
6553
|
{
|
|
@@ -6435,10 +6557,10 @@ QUEUE_NAME=tasks`,
|
|
|
6435
6557
|
style: { height: 40 }
|
|
6436
6558
|
}
|
|
6437
6559
|
),
|
|
6438
|
-
/* @__PURE__ */ jsx39(
|
|
6560
|
+
/* @__PURE__ */ jsx39(Text12, { className: styles.formDescription, children: "API key for the model provider. Leave empty to use environment variable." })
|
|
6439
6561
|
] }),
|
|
6440
6562
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
6441
|
-
/* @__PURE__ */ jsx39(
|
|
6563
|
+
/* @__PURE__ */ jsx39(Text12, { className: styles.formLabel, children: "Base URL" }),
|
|
6442
6564
|
/* @__PURE__ */ jsx39(
|
|
6443
6565
|
Input,
|
|
6444
6566
|
{
|
|
@@ -6448,7 +6570,7 @@ QUEUE_NAME=tasks`,
|
|
|
6448
6570
|
style: { height: 40 }
|
|
6449
6571
|
}
|
|
6450
6572
|
),
|
|
6451
|
-
/* @__PURE__ */ jsx39(
|
|
6573
|
+
/* @__PURE__ */ jsx39(Text12, { className: styles.formDescription, children: "Optional custom base URL for the API" })
|
|
6452
6574
|
] }),
|
|
6453
6575
|
/* @__PURE__ */ jsx39("div", { children: /* @__PURE__ */ jsxs20(Space13, { children: [
|
|
6454
6576
|
/* @__PURE__ */ jsx39(
|
|
@@ -6458,11 +6580,11 @@ QUEUE_NAME=tasks`,
|
|
|
6458
6580
|
onChange: (checked) => handleModelChange(index, "streaming", checked)
|
|
6459
6581
|
}
|
|
6460
6582
|
),
|
|
6461
|
-
/* @__PURE__ */ jsx39(
|
|
6583
|
+
/* @__PURE__ */ jsx39(Text12, { children: "Enable Streaming" })
|
|
6462
6584
|
] }) }),
|
|
6463
6585
|
/* @__PURE__ */ jsxs20("div", { style: { display: "flex", gap: 20 }, children: [
|
|
6464
6586
|
/* @__PURE__ */ jsxs20("div", { style: { flex: 1 }, children: [
|
|
6465
|
-
/* @__PURE__ */ jsx39(
|
|
6587
|
+
/* @__PURE__ */ jsx39(Text12, { className: styles.formLabel, children: "Max Tokens" }),
|
|
6466
6588
|
/* @__PURE__ */ jsx39(
|
|
6467
6589
|
Input,
|
|
6468
6590
|
{
|
|
@@ -6479,7 +6601,7 @@ QUEUE_NAME=tasks`,
|
|
|
6479
6601
|
)
|
|
6480
6602
|
] }),
|
|
6481
6603
|
/* @__PURE__ */ jsxs20("div", { style: { flex: 1 }, children: [
|
|
6482
|
-
/* @__PURE__ */ jsx39(
|
|
6604
|
+
/* @__PURE__ */ jsx39(Text12, { className: styles.formLabel, children: "Temperature" }),
|
|
6483
6605
|
/* @__PURE__ */ jsx39(
|
|
6484
6606
|
Input,
|
|
6485
6607
|
{
|
|
@@ -6572,7 +6694,7 @@ QUEUE_NAME=tasks`,
|
|
|
6572
6694
|
/* @__PURE__ */ jsxs20("div", { className: styles.contentHeader, children: [
|
|
6573
6695
|
/* @__PURE__ */ jsxs20("div", { className: styles.contentHeaderLeft, children: [
|
|
6574
6696
|
/* @__PURE__ */ jsx39(Title2, { level: 3, className: styles.contentTitle, children: activeMenuItem?.label }),
|
|
6575
|
-
/* @__PURE__ */ jsxs20(
|
|
6697
|
+
/* @__PURE__ */ jsxs20(Text12, { className: styles.contentDescription, children: [
|
|
6576
6698
|
activeMenu === "environment" && "Manage environment variables for the gateway server",
|
|
6577
6699
|
activeMenu === "models" && "Configure and register model lattices for use by agents"
|
|
6578
6700
|
] })
|
|
@@ -6608,7 +6730,7 @@ QUEUE_NAME=tasks`,
|
|
|
6608
6730
|
children: connection.connecting ? /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
6609
6731
|
/* @__PURE__ */ jsx39(LinkOutlined, { style: { fontSize: 64, color: "#1890ff" }, spin: true }),
|
|
6610
6732
|
/* @__PURE__ */ jsx39(Title2, { level: 4, children: "Connecting..." }),
|
|
6611
|
-
/* @__PURE__ */ jsxs20(
|
|
6733
|
+
/* @__PURE__ */ jsxs20(Text12, { type: "secondary", style: { textAlign: "center" }, children: [
|
|
6612
6734
|
"Connecting to ",
|
|
6613
6735
|
connection.url
|
|
6614
6736
|
] })
|
|
@@ -6616,7 +6738,7 @@ QUEUE_NAME=tasks`,
|
|
|
6616
6738
|
/* @__PURE__ */ jsx39(LinkOutlined, { style: { fontSize: 64, color: "#d9d9d9" } }),
|
|
6617
6739
|
/* @__PURE__ */ jsx39(Title2, { level: 4, type: "secondary", children: connection.error || "Not Connected" }),
|
|
6618
6740
|
/* @__PURE__ */ jsx39(
|
|
6619
|
-
|
|
6741
|
+
Text12,
|
|
6620
6742
|
{
|
|
6621
6743
|
type: "secondary",
|
|
6622
6744
|
style: { textAlign: "center", maxWidth: 400 },
|
|
@@ -6641,12 +6763,13 @@ QUEUE_NAME=tasks`,
|
|
|
6641
6763
|
}));
|
|
6642
6764
|
return /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
6643
6765
|
/* @__PURE__ */ jsx39(
|
|
6644
|
-
|
|
6766
|
+
Modal,
|
|
6645
6767
|
{
|
|
6646
6768
|
open,
|
|
6647
|
-
onClose,
|
|
6769
|
+
onCancel: onClose,
|
|
6770
|
+
height: "70%",
|
|
6771
|
+
width: "80%",
|
|
6648
6772
|
footer: null,
|
|
6649
|
-
width: "100%",
|
|
6650
6773
|
title: "Settings",
|
|
6651
6774
|
children: /* @__PURE__ */ jsx39("div", { children: /* @__PURE__ */ jsx39(
|
|
6652
6775
|
Tabs2,
|
|
@@ -6697,7 +6820,7 @@ QUEUE_NAME=tasks`,
|
|
|
6697
6820
|
className: styles.addServerModal,
|
|
6698
6821
|
children: /* @__PURE__ */ jsxs20(Space13, { direction: "vertical", style: { width: "100%" }, size: "large", children: [
|
|
6699
6822
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
6700
|
-
/* @__PURE__ */ jsx39(
|
|
6823
|
+
/* @__PURE__ */ jsx39(Text12, { strong: true, style: { display: "block", marginBottom: 8 }, children: "Server Name" }),
|
|
6701
6824
|
/* @__PURE__ */ jsx39(
|
|
6702
6825
|
Input,
|
|
6703
6826
|
{
|
|
@@ -6707,10 +6830,10 @@ QUEUE_NAME=tasks`,
|
|
|
6707
6830
|
onPressEnter: handleAddServer
|
|
6708
6831
|
}
|
|
6709
6832
|
),
|
|
6710
|
-
/* @__PURE__ */ jsx39(
|
|
6833
|
+
/* @__PURE__ */ jsx39(Text12, { type: "secondary", style: { fontSize: 12, marginTop: 4 }, children: "Optional: Leave empty to use URL as name" })
|
|
6711
6834
|
] }),
|
|
6712
6835
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
6713
|
-
/* @__PURE__ */ jsx39(
|
|
6836
|
+
/* @__PURE__ */ jsx39(Text12, { strong: true, style: { display: "block", marginBottom: 8 }, children: "Server URL *" }),
|
|
6714
6837
|
/* @__PURE__ */ jsx39(
|
|
6715
6838
|
Input,
|
|
6716
6839
|
{
|
|
@@ -6720,10 +6843,10 @@ QUEUE_NAME=tasks`,
|
|
|
6720
6843
|
onPressEnter: handleAddServer
|
|
6721
6844
|
}
|
|
6722
6845
|
),
|
|
6723
|
-
/* @__PURE__ */ jsx39(
|
|
6846
|
+
/* @__PURE__ */ jsx39(Text12, { type: "secondary", style: { fontSize: 12, marginTop: 4 }, children: "Enter the full URL of the gateway server" })
|
|
6724
6847
|
] }),
|
|
6725
6848
|
/* @__PURE__ */ jsxs20("div", { children: [
|
|
6726
|
-
/* @__PURE__ */ jsx39(
|
|
6849
|
+
/* @__PURE__ */ jsx39(Text12, { strong: true, style: { display: "block", marginBottom: 8 }, children: "API Key" }),
|
|
6727
6850
|
/* @__PURE__ */ jsx39(
|
|
6728
6851
|
Input.Password,
|
|
6729
6852
|
{
|
|
@@ -6733,7 +6856,7 @@ QUEUE_NAME=tasks`,
|
|
|
6733
6856
|
onPressEnter: handleAddServer
|
|
6734
6857
|
}
|
|
6735
6858
|
),
|
|
6736
|
-
/* @__PURE__ */ jsx39(
|
|
6859
|
+
/* @__PURE__ */ jsx39(Text12, { type: "secondary", style: { fontSize: 12, marginTop: 4 }, children: "Optional: API key for server authentication" })
|
|
6737
6860
|
] })
|
|
6738
6861
|
] })
|
|
6739
6862
|
}
|