@inf-monkeys-tech/monkeys-design 1.0.75 → 1.0.76-canary.238.1.2006f3f
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/components/agent-workbench/index.d.mts +2 -2
- package/dist/components/agent-workbench/index.d.ts +2 -2
- package/dist/components/agent-workbench/index.js +309 -242
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +310 -244
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/{details-model-eb8fafc32d00.d.mts → details-model-90adf27b0674.d.mts} +45 -6
- package/dist/{details-model-eb8fafc32d00.d.ts → details-model-90adf27b0674.d.ts} +45 -6
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +309 -242
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +310 -244
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -15,6 +15,7 @@ var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
|
15
15
|
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
16
16
|
var classVarianceAuthority = require('class-variance-authority');
|
|
17
17
|
var SelectPrimitive = require('@radix-ui/react-select');
|
|
18
|
+
var monkeys = require('@inf-monkeys-tech/monkeys');
|
|
18
19
|
var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
|
|
19
20
|
var core = require('@dnd-kit/core');
|
|
20
21
|
var sortable = require('@dnd-kit/sortable');
|
|
@@ -1461,6 +1462,61 @@ function AgentWorkbenchQuickStart({ viewModel, className, onIntent }) {
|
|
|
1461
1462
|
] })
|
|
1462
1463
|
] });
|
|
1463
1464
|
}
|
|
1465
|
+
var AgentWorkbenchSidebarContainer = React5.forwardRef(
|
|
1466
|
+
function AgentWorkbenchSidebarContainer2({
|
|
1467
|
+
children,
|
|
1468
|
+
header,
|
|
1469
|
+
search,
|
|
1470
|
+
primaryAction,
|
|
1471
|
+
actions,
|
|
1472
|
+
groups,
|
|
1473
|
+
footer,
|
|
1474
|
+
className,
|
|
1475
|
+
classNames,
|
|
1476
|
+
bodyProps,
|
|
1477
|
+
bodyScrollable = true,
|
|
1478
|
+
status = "ready",
|
|
1479
|
+
loadingState,
|
|
1480
|
+
emptyState,
|
|
1481
|
+
errorState,
|
|
1482
|
+
...props
|
|
1483
|
+
}, ref) {
|
|
1484
|
+
const hasToolbar = search !== void 0 || primaryAction !== void 0 || actions !== void 0;
|
|
1485
|
+
const statusContent = status === "loading" ? loadingState : status === "empty" ? emptyState : status === "error" ? errorState : children;
|
|
1486
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1487
|
+
"nav",
|
|
1488
|
+
{
|
|
1489
|
+
ref,
|
|
1490
|
+
className: cn2("flex h-full min-h-0 flex-col bg-background text-foreground", classNames?.root, className),
|
|
1491
|
+
...props,
|
|
1492
|
+
children: [
|
|
1493
|
+
header !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2("shrink-0", classNames?.header), children: header }) : null,
|
|
1494
|
+
hasToolbar ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn2("shrink-0 space-y-3 px-4 pb-2 pt-4", classNames?.search), children: [
|
|
1495
|
+
search,
|
|
1496
|
+
primaryAction !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2(classNames?.primaryAction), children: primaryAction }) : null,
|
|
1497
|
+
actions !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2("flex min-w-0 items-center gap-2", classNames?.actions), children: actions }) : null
|
|
1498
|
+
] }) : null,
|
|
1499
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1500
|
+
"div",
|
|
1501
|
+
{
|
|
1502
|
+
"data-agent-workbench-scroll-region": bodyScrollable ? "" : void 0,
|
|
1503
|
+
...bodyProps,
|
|
1504
|
+
className: cn2(
|
|
1505
|
+
"min-h-0 flex-1 px-4 pb-4",
|
|
1506
|
+
bodyScrollable && "overflow-x-hidden overflow-y-auto overscroll-contain",
|
|
1507
|
+
classNames?.body
|
|
1508
|
+
),
|
|
1509
|
+
children: statusContent
|
|
1510
|
+
}
|
|
1511
|
+
),
|
|
1512
|
+
groups !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2("shrink-0", classNames?.groups), children: groups }) : null,
|
|
1513
|
+
footer !== void 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2("shrink-0", classNames?.footer), children: footer }) : null
|
|
1514
|
+
]
|
|
1515
|
+
}
|
|
1516
|
+
);
|
|
1517
|
+
}
|
|
1518
|
+
);
|
|
1519
|
+
AgentWorkbenchSidebarContainer.displayName = "AgentWorkbenchSidebarContainer";
|
|
1464
1520
|
function ItemAvatar({ item }) {
|
|
1465
1521
|
const [failed, setFailed] = React5.useState(false);
|
|
1466
1522
|
if (item.iconUrl && !failed) {
|
|
@@ -1555,15 +1611,22 @@ function SessionActions({
|
|
|
1555
1611
|
}
|
|
1556
1612
|
function AgentWorkbenchSidebar({
|
|
1557
1613
|
viewModel,
|
|
1558
|
-
navigationMode
|
|
1614
|
+
navigationMode,
|
|
1615
|
+
config,
|
|
1616
|
+
header,
|
|
1559
1617
|
headerActions,
|
|
1618
|
+
footer,
|
|
1560
1619
|
className,
|
|
1561
1620
|
classNames,
|
|
1562
1621
|
onIntent
|
|
1563
1622
|
}) {
|
|
1564
1623
|
const { locale } = useMonkeysLocale();
|
|
1565
1624
|
const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
|
|
1566
|
-
const
|
|
1625
|
+
const resolvedConfig = React5.useMemo(() => monkeys.resolveAgentWorkbenchSidebarConfig(config), [config]);
|
|
1626
|
+
const visibleSections = React5.useMemo(() => new Set(resolvedConfig.visibleSections), [resolvedConfig.visibleSections]);
|
|
1627
|
+
const sessionsOnly = navigationMode === "sessions-only" || navigationMode === void 0 && resolvedConfig.navigationMode !== "default";
|
|
1628
|
+
const showAgents = visibleSections.has("agents") && !sessionsOnly;
|
|
1629
|
+
const showSessions = visibleSections.has("sessions");
|
|
1567
1630
|
const searchRef = React5.useRef(null);
|
|
1568
1631
|
const renameInputRef = React5.useRef(null);
|
|
1569
1632
|
const [editingSessionId, setEditingSessionId] = React5.useState();
|
|
@@ -1660,17 +1723,21 @@ function AgentWorkbenchSidebar({
|
|
|
1660
1723
|
] })
|
|
1661
1724
|
] }, item.id);
|
|
1662
1725
|
}) });
|
|
1663
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1726
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1664
1727
|
Tabs,
|
|
1665
1728
|
{
|
|
1666
|
-
value: sessionsOnly ? "sessions" : viewModel.activeTab,
|
|
1729
|
+
value: sessionsOnly || !showAgents ? "sessions" : viewModel.activeTab,
|
|
1667
1730
|
onValueChange: (value) => {
|
|
1668
1731
|
if (!sessionsOnly && (value === "agents" || value === "sessions")) onIntent?.({ type: "change-tab", tab: value });
|
|
1669
1732
|
},
|
|
1670
|
-
className: "
|
|
1671
|
-
children:
|
|
1672
|
-
|
|
1673
|
-
|
|
1733
|
+
className: "h-full min-h-0",
|
|
1734
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1735
|
+
AgentWorkbenchSidebarContainer,
|
|
1736
|
+
{
|
|
1737
|
+
"data-sidebar-width-percent": resolvedConfig.widthPercent,
|
|
1738
|
+
"aria-label": messages.tabsLabel,
|
|
1739
|
+
header: visibleSections.has("header") ? header : void 0,
|
|
1740
|
+
search: visibleSections.has("search") ? /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: cn2("h-10 rounded-lg bg-card", classNames?.search), children: [
|
|
1674
1741
|
/* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4", "aria-hidden": "true" }) }),
|
|
1675
1742
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1676
1743
|
InputGroupInput,
|
|
@@ -1690,92 +1757,100 @@ function AgentWorkbenchSidebar({
|
|
|
1690
1757
|
}
|
|
1691
1758
|
),
|
|
1692
1759
|
viewModel.searchQuery ? /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx(InputGroupButton, { size: "icon-xs", "aria-label": messages.clearSearch, onClick: () => onIntent?.({ type: "change-search", query: "" }), children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-3.5", "aria-hidden": "true" }) }) }) : /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx("kbd", { className: "border border-border px-1.5 py-0.5 text-[10px]", children: "Ctrl K" }) })
|
|
1693
|
-
] }),
|
|
1694
|
-
|
|
1695
|
-
|
|
1760
|
+
] }) : void 0,
|
|
1761
|
+
actions: showAgents && showSessions || headerActions ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1762
|
+
showAgents && showSessions ? /* @__PURE__ */ jsxRuntime.jsxs(TabsList, { className: cn2("grid min-w-0 flex-1 grid-cols-2 text-foreground", classNames?.tabs), "aria-label": messages.tabsLabel, children: [
|
|
1696
1763
|
/* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "agents", children: messages.agents }),
|
|
1697
1764
|
/* @__PURE__ */ jsxRuntime.jsx(TabsTrigger, { value: "sessions", children: messages.sessions })
|
|
1698
1765
|
] }) : null,
|
|
1699
1766
|
headerActions ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center", children: headerActions }) : null
|
|
1700
|
-
] }) :
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1767
|
+
] }) : void 0,
|
|
1768
|
+
footer: visibleSections.has("footer") && (!sessionsOnly && viewModel.capabilities.manageAgentSettings || footer) ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn2("border-t border-border p-4", classNames?.footer), children: [
|
|
1769
|
+
!sessionsOnly && viewModel.capabilities.manageAgentSettings ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", className: "h-10 w-full justify-start gap-2 px-3 text-sm", onClick: () => onIntent?.({ type: "open-agent-settings" }), children: [
|
|
1770
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "size-4", "aria-hidden": "true" }),
|
|
1771
|
+
messages.settings
|
|
1772
|
+
] }) : null,
|
|
1773
|
+
footer
|
|
1774
|
+
] }) : void 0,
|
|
1775
|
+
bodyScrollable: false,
|
|
1776
|
+
className,
|
|
1777
|
+
classNames: { root: classNames?.root, body: "flex min-h-0 flex-1 flex-col p-0" },
|
|
1778
|
+
children: [
|
|
1779
|
+
showAgents ? /* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "agents", "data-agent-workbench-scroll-region": true, className: cn2("mt-0 min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain px-4 pb-4", classNames?.body), children: [
|
|
1780
|
+
viewModel.capabilities.createAgent ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", className: "mb-3 h-9 w-full justify-start gap-2 px-3 text-sm", onClick: () => onIntent?.({ type: "create-agent" }), children: [
|
|
1781
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Plus, { className: "size-4", "aria-hidden": "true" }),
|
|
1782
|
+
messages.newAgent
|
|
1783
|
+
] }) : null,
|
|
1784
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 px-3 text-xs font-medium text-muted-foreground", children: messages.allAgents }),
|
|
1785
|
+
/* @__PURE__ */ jsxRuntime.jsx(CollectionState, { status: viewModel.agents.status, empty: messages.emptyAgents, noResults: messages.noResults, hasItems: agents.length > 0, query, error: viewModel.agents.error, onRetry: () => onIntent?.({ type: "retry-agents" }) }),
|
|
1786
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1", children: agents.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1787
|
+
"div",
|
|
1788
|
+
{
|
|
1789
|
+
"aria-current": item.id === viewModel.selectedAgentItem ? "page" : void 0,
|
|
1790
|
+
className: cn2("group flex w-full min-w-0 items-center gap-3 rounded-lg border border-transparent px-3 py-2 text-left hover:bg-muted aria-[current=page]:border-primary aria-[current=page]:bg-muted", classNames?.item),
|
|
1791
|
+
children: [
|
|
1792
|
+
/* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", title: item.name, className: "flex min-w-0 flex-1 items-center gap-3 text-left", onClick: () => onIntent?.({ type: "select-agent", itemId: item.id }), children: [
|
|
1793
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(ItemAvatar, { item }) }),
|
|
1794
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
1795
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-sm font-medium", children: item.name }),
|
|
1796
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "block truncate text-xs text-foreground/80", children: item.description || messages.noDescription })
|
|
1797
|
+
] })
|
|
1798
|
+
] }),
|
|
1799
|
+
item.builtIn ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-1 text-[10px] text-foreground", children: messages.builtIn }) : null,
|
|
1800
|
+
viewModel.capabilities.pinAgents ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1801
|
+
Button,
|
|
1802
|
+
{
|
|
1803
|
+
type: "button",
|
|
1804
|
+
variant: "ghost",
|
|
1805
|
+
size: "icon",
|
|
1806
|
+
"aria-label": item.pinned ? messages.unpin : messages.pin,
|
|
1807
|
+
className: cn2("size-8 text-muted-foreground opacity-0 group-hover:opacity-100", item.pinned && "text-primary opacity-100"),
|
|
1808
|
+
onClick: (event) => {
|
|
1809
|
+
event.stopPropagation();
|
|
1810
|
+
onIntent?.({ type: "toggle-agent-pin", itemId: item.id, pinned: !item.pinned });
|
|
1811
|
+
},
|
|
1812
|
+
onKeyDown: (event) => {
|
|
1813
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
1814
|
+
event.preventDefault();
|
|
1815
|
+
event.stopPropagation();
|
|
1816
|
+
onIntent?.({ type: "toggle-agent-pin", itemId: item.id, pinned: !item.pinned });
|
|
1817
|
+
}
|
|
1818
|
+
},
|
|
1819
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pin, { className: cn2("size-4", item.pinned && "fill-current", item.pinPending && "animate-pulse") })
|
|
1740
1820
|
}
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
},
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
] })
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
!sessionsOnly && viewModel.capabilities.manageAgentSettings ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn2("shrink-0 border-t border-border p-4", classNames?.footer), children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", className: "h-10 w-full justify-start gap-2 px-3 text-sm", onClick: () => onIntent?.({ type: "open-agent-settings" }), children: [
|
|
1773
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Settings, { className: "size-4", "aria-hidden": "true" }),
|
|
1774
|
-
messages.settings
|
|
1775
|
-
] }) }) : null
|
|
1776
|
-
]
|
|
1821
|
+
) : null
|
|
1822
|
+
]
|
|
1823
|
+
},
|
|
1824
|
+
item.id
|
|
1825
|
+
)) })
|
|
1826
|
+
] }) : null,
|
|
1827
|
+
showSessions ? /* @__PURE__ */ jsxRuntime.jsxs(TabsContent, { value: "sessions", "data-agent-workbench-scroll-region": true, className: cn2("mt-0 min-h-0 flex-1 overflow-x-hidden overflow-y-auto overscroll-contain px-4 pb-4", classNames?.body), children: [
|
|
1828
|
+
visibleSections.has("new-session") && viewModel.capabilities.createSession ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", className: "h-9 w-full justify-start gap-2 px-3 text-sm", onClick: () => onIntent?.({ type: "create-session" }), children: [
|
|
1829
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
|
|
1830
|
+
messages.newSession
|
|
1831
|
+
] }) : null,
|
|
1832
|
+
!sessionsOnly && viewModel.capabilities.manageCapabilities ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", className: "mb-3 h-9 w-full justify-start gap-2 px-3 text-sm", onClick: () => onIntent?.({ type: "open-capabilities" }), children: [
|
|
1833
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Blocks, { className: "size-4", "aria-hidden": "true" }),
|
|
1834
|
+
messages.capabilities
|
|
1835
|
+
] }) : null,
|
|
1836
|
+
!sessionsOnly ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 px-3 text-xs font-medium text-muted-foreground", children: messages.recentSessions }) : null,
|
|
1837
|
+
/* @__PURE__ */ jsxRuntime.jsx(CollectionState, { status: viewModel.sessions.status, empty: messages.emptySessions, noResults: messages.noResults, hasItems: sessions.length > 0, query, error: viewModel.sessions.error, onRetry: () => onIntent?.({ type: "retry-sessions" }) }),
|
|
1838
|
+
sessionsOnly && sessions.length > 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-2", children: [
|
|
1839
|
+
{ id: "chatbot", label: messages.chats, icon: lucideReact.MessageSquare, items: chatbotSessions },
|
|
1840
|
+
{ id: "agent", label: messages.agents, icon: lucideReact.Bot, items: agentSessions }
|
|
1841
|
+
].map(({ id, label, icon: Icon2, items }) => /* @__PURE__ */ jsxRuntime.jsxs("details", { open: true, "aria-label": label, children: [
|
|
1842
|
+
/* @__PURE__ */ jsxRuntime.jsxs("summary", { className: "flex h-9 cursor-pointer list-none items-center gap-2 rounded-md px-3 text-sm font-semibold hover:bg-muted", children: [
|
|
1843
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon2, { className: "size-4 shrink-0 text-muted-foreground", "aria-hidden": "true" }),
|
|
1844
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "min-w-0 truncate", children: label })
|
|
1845
|
+
] }),
|
|
1846
|
+
renderSessionItems(items)
|
|
1847
|
+
] }, id)) }) : !sessionsOnly ? renderSessionItems(sessions) : null
|
|
1848
|
+
] }) : null
|
|
1849
|
+
]
|
|
1850
|
+
}
|
|
1851
|
+
)
|
|
1777
1852
|
}
|
|
1778
|
-
)
|
|
1853
|
+
);
|
|
1779
1854
|
}
|
|
1780
1855
|
function AgentWorkbenchExploreCardMedia({
|
|
1781
1856
|
item,
|
|
@@ -1828,7 +1903,8 @@ function AgentWorkbenchExploreCardMedia({
|
|
|
1828
1903
|
}
|
|
1829
1904
|
function AgentWorkbenchExploreSidebar({
|
|
1830
1905
|
sessions,
|
|
1831
|
-
groups,
|
|
1906
|
+
groups: configuredGroups,
|
|
1907
|
+
config,
|
|
1832
1908
|
labels,
|
|
1833
1909
|
selectedSessionId,
|
|
1834
1910
|
searchQuery = "",
|
|
@@ -1837,14 +1913,23 @@ function AgentWorkbenchExploreSidebar({
|
|
|
1837
1913
|
showDraftSession = !selectedSessionId,
|
|
1838
1914
|
deleteSessions = false,
|
|
1839
1915
|
defaultGroupId,
|
|
1916
|
+
header,
|
|
1917
|
+
footer,
|
|
1840
1918
|
className,
|
|
1841
1919
|
renderItemMedia,
|
|
1842
1920
|
onIntent
|
|
1843
1921
|
}) {
|
|
1844
1922
|
const navigationMessages = useMonkeysLocaleMessages().agentWorkbench.navigation;
|
|
1845
1923
|
const searchRef = React5.useRef(null);
|
|
1924
|
+
const resolvedConfig = React5.useMemo(() => monkeys.resolveAgentWorkbenchSidebarConfig(config), [config]);
|
|
1925
|
+
const visibleSections = React5.useMemo(
|
|
1926
|
+
() => new Set(resolvedConfig.visibleSections),
|
|
1927
|
+
[resolvedConfig.visibleSections]
|
|
1928
|
+
);
|
|
1929
|
+
const groups = configuredGroups?.length ? configuredGroups : resolvedConfig.groups;
|
|
1930
|
+
const resolvedDefaultGroupId = defaultGroupId ?? resolvedConfig.defaultGroupId;
|
|
1846
1931
|
const [activeGroupId, setActiveGroupId] = React5.useState(
|
|
1847
|
-
|
|
1932
|
+
resolvedDefaultGroupId ?? groups[0]?.id ?? ""
|
|
1848
1933
|
);
|
|
1849
1934
|
const activeGroup = groups.find((group) => group.id === activeGroupId) ?? groups[0];
|
|
1850
1935
|
const normalizedQuery = searchQuery.trim().toLocaleLowerCase();
|
|
@@ -1857,8 +1942,8 @@ function AgentWorkbenchExploreSidebar({
|
|
|
1857
1942
|
);
|
|
1858
1943
|
React5.useEffect(() => {
|
|
1859
1944
|
if (groups.some((group) => group.id === activeGroupId)) return;
|
|
1860
|
-
setActiveGroupId(
|
|
1861
|
-
}, [activeGroupId,
|
|
1945
|
+
setActiveGroupId(resolvedDefaultGroupId ?? groups[0]?.id ?? "");
|
|
1946
|
+
}, [activeGroupId, groups, resolvedDefaultGroupId]);
|
|
1862
1947
|
React5.useEffect(() => {
|
|
1863
1948
|
const handleShortcut = (event) => {
|
|
1864
1949
|
if (!(event.ctrlKey || event.metaKey) || event.key.toLocaleLowerCase() !== "k")
|
|
@@ -1874,166 +1959,147 @@ function AgentWorkbenchExploreSidebar({
|
|
|
1874
1959
|
setActiveGroupId(groupId);
|
|
1875
1960
|
onIntent?.({ type: "change-group", groupId });
|
|
1876
1961
|
};
|
|
1877
|
-
|
|
1878
|
-
|
|
1962
|
+
const state = !visibleSections.has("sessions") ? "ready" : error ? "error" : loading && sessions.length === 0 ? "loading" : filteredSessions.length === 0 && !draftVisible ? "empty" : "ready";
|
|
1963
|
+
const groupNavigation = visibleSections.has("groups") && activeGroup ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "border-t border-border px-4 pb-4 pt-3", children: /* @__PURE__ */ jsxRuntime.jsxs(Tabs, { value: activeGroup.id, onValueChange: changeGroup, children: [
|
|
1964
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1965
|
+
TabsList,
|
|
1966
|
+
{
|
|
1967
|
+
className: "grid h-10 w-full rounded-[var(--radius)] bg-muted p-0.5 text-foreground",
|
|
1968
|
+
style: { gridTemplateColumns: `repeat(${groups.length}, minmax(0, 1fr))` },
|
|
1969
|
+
children: groups.map((group) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1970
|
+
TabsTrigger,
|
|
1971
|
+
{
|
|
1972
|
+
value: group.id,
|
|
1973
|
+
className: "rounded-md text-sm font-semibold text-foreground data-[state=active]:border data-[state=active]:border-border data-[state=active]:bg-background",
|
|
1974
|
+
children: group.label
|
|
1975
|
+
},
|
|
1976
|
+
group.id
|
|
1977
|
+
))
|
|
1978
|
+
}
|
|
1979
|
+
),
|
|
1980
|
+
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value: group.id, className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-2", children: group.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1981
|
+
"button",
|
|
1982
|
+
{
|
|
1983
|
+
type: "button",
|
|
1984
|
+
"aria-label": item.title,
|
|
1985
|
+
className: "group relative aspect-[1.27] overflow-hidden rounded-[var(--radius)] border border-border bg-card text-left transition hover:border-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
1986
|
+
style: Number.isFinite(group.itemAspectRatio) && Number(group.itemAspectRatio) > 0 ? { aspectRatio: group.itemAspectRatio } : void 0,
|
|
1987
|
+
onClick: () => onIntent?.({ type: "select-item", groupId: group.id, item }),
|
|
1988
|
+
children: renderItemMedia?.(item, group) ?? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkbenchExploreCardMedia, { item })
|
|
1989
|
+
},
|
|
1990
|
+
item.id
|
|
1991
|
+
)) }) }, group.id))
|
|
1992
|
+
] }) }) : void 0;
|
|
1993
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1994
|
+
AgentWorkbenchSidebarContainer,
|
|
1879
1995
|
{
|
|
1880
1996
|
"data-sidebar-style": "explore",
|
|
1997
|
+
"data-sidebar-width-percent": resolvedConfig.widthPercent,
|
|
1881
1998
|
"aria-label": labels.navigation,
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
className
|
|
1885
|
-
),
|
|
1886
|
-
children: [
|
|
1887
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "shrink-0 space-y-3 px-4 pb-2 pt-4", children: [
|
|
1888
|
-
/* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: "h-12 rounded-[var(--radius)] border-border bg-card text-foreground", children: [
|
|
1889
|
-
/* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }) }),
|
|
1890
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1891
|
-
InputGroupInput,
|
|
1892
|
-
{
|
|
1893
|
-
ref: searchRef,
|
|
1894
|
-
type: "search",
|
|
1895
|
-
value: searchQuery,
|
|
1896
|
-
"aria-label": labels.search,
|
|
1897
|
-
placeholder: labels.search,
|
|
1898
|
-
className: "min-w-0 text-foreground placeholder:text-muted-foreground [&::-webkit-search-cancel-button]:hidden",
|
|
1899
|
-
onChange: (event) => onIntent?.({ type: "change-search", query: event.target.value })
|
|
1900
|
-
}
|
|
1901
|
-
),
|
|
1902
|
-
/* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx("kbd", { className: "rounded-sm border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: "Ctrl K" }) })
|
|
1903
|
-
] }),
|
|
1904
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1905
|
-
Button,
|
|
1906
|
-
{
|
|
1907
|
-
type: "button",
|
|
1908
|
-
className: "h-11 w-full justify-start gap-2 rounded-[var(--radius)] border border-primary/60 bg-primary px-3 font-semibold text-primary-foreground hover:bg-primary/90",
|
|
1909
|
-
onClick: () => onIntent?.({ type: "create-session" }),
|
|
1910
|
-
children: [
|
|
1911
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
|
|
1912
|
-
labels.newSession
|
|
1913
|
-
]
|
|
1914
|
-
}
|
|
1915
|
-
)
|
|
1916
|
-
] }),
|
|
1999
|
+
header: visibleSections.has("header") ? header : void 0,
|
|
2000
|
+
search: visibleSections.has("search") ? /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: "h-12 rounded-[var(--radius)] border-border bg-card text-foreground", children: [
|
|
2001
|
+
/* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4 text-muted-foreground", "aria-hidden": "true" }) }),
|
|
1917
2002
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2003
|
+
InputGroupInput,
|
|
2004
|
+
{
|
|
2005
|
+
ref: searchRef,
|
|
2006
|
+
type: "search",
|
|
2007
|
+
value: searchQuery,
|
|
2008
|
+
"aria-label": labels.search,
|
|
2009
|
+
placeholder: labels.search,
|
|
2010
|
+
className: "min-w-0 text-foreground placeholder:text-muted-foreground [&::-webkit-search-cancel-button]:hidden",
|
|
2011
|
+
onChange: (event) => onIntent?.({ type: "change-search", query: event.target.value })
|
|
2012
|
+
}
|
|
2013
|
+
),
|
|
2014
|
+
/* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx("kbd", { className: "rounded-sm border border-border px-1.5 py-0.5 text-[10px] text-muted-foreground", children: "Ctrl K" }) })
|
|
2015
|
+
] }) : void 0,
|
|
2016
|
+
primaryAction: visibleSections.has("new-session") ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2017
|
+
Button,
|
|
2018
|
+
{
|
|
2019
|
+
type: "button",
|
|
2020
|
+
className: "h-11 w-full justify-start gap-2 rounded-[var(--radius)] border border-primary/60 bg-primary px-3 font-semibold text-primary-foreground hover:bg-primary/90",
|
|
2021
|
+
onClick: () => onIntent?.({ type: "create-session" }),
|
|
2022
|
+
children: [
|
|
2023
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
|
|
2024
|
+
labels.newSession
|
|
2025
|
+
]
|
|
2026
|
+
}
|
|
2027
|
+
) : void 0,
|
|
2028
|
+
groups: groupNavigation,
|
|
2029
|
+
footer: visibleSections.has("footer") ? footer : void 0,
|
|
2030
|
+
status: state,
|
|
2031
|
+
loadingState: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-24 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-5 animate-spin" }) }),
|
|
2032
|
+
emptyState: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-8 text-center text-sm text-muted-foreground", children: normalizedQuery ? labels.noResults : labels.emptySessions }),
|
|
2033
|
+
errorState: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-24 flex-col items-center justify-center gap-2 px-3 py-6 text-center", role: "alert", children: [
|
|
2034
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.AlertCircle, { className: "size-5 shrink-0 text-destructive-text", "aria-hidden": "true" }),
|
|
2035
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-full break-words text-sm text-muted-foreground", children: error }),
|
|
2036
|
+
labels.retry ? /* @__PURE__ */ jsxRuntime.jsxs(Button, { type: "button", variant: "ghost", size: "sm", className: "gap-1.5 text-primary", onClick: () => onIntent?.({ type: "retry-sessions" }), children: [
|
|
2037
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { className: "size-3.5", "aria-hidden": "true" }),
|
|
2038
|
+
labels.retry
|
|
2039
|
+
] }) : null
|
|
2040
|
+
] }),
|
|
2041
|
+
bodyProps: { "data-agent-workbench-session-scroll-region": "" },
|
|
2042
|
+
className,
|
|
2043
|
+
classNames: { body: "min-h-[160px] flex-[0_1_280px] px-4 pb-3" },
|
|
2044
|
+
children: visibleSections.has("sessions") ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
2045
|
+
draftVisible ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2046
|
+
"button",
|
|
2047
|
+
{
|
|
2048
|
+
type: "button",
|
|
2049
|
+
"aria-current": "page",
|
|
2050
|
+
className: "block h-10 w-full min-w-0 truncate rounded-[var(--radius)] border border-primary bg-primary/10 px-3 text-left text-sm font-semibold text-foreground",
|
|
2051
|
+
onClick: () => onIntent?.({ type: "create-session" }),
|
|
2052
|
+
children: labels.draftSession
|
|
2053
|
+
}
|
|
2054
|
+
) : null,
|
|
2055
|
+
filteredSessions.map((session) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1918
2056
|
"div",
|
|
1919
2057
|
{
|
|
1920
|
-
"
|
|
1921
|
-
className: "min-
|
|
1922
|
-
children:
|
|
1923
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1924
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "max-w-full break-words text-sm text-muted-foreground", children: error }),
|
|
1925
|
-
labels.retry ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1926
|
-
Button,
|
|
1927
|
-
{
|
|
1928
|
-
type: "button",
|
|
1929
|
-
variant: "ghost",
|
|
1930
|
-
size: "sm",
|
|
1931
|
-
className: "gap-1.5 text-primary",
|
|
1932
|
-
onClick: () => onIntent?.({ type: "retry-sessions" }),
|
|
1933
|
-
children: [
|
|
1934
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.RefreshCw, { className: "size-3.5", "aria-hidden": "true" }),
|
|
1935
|
-
labels.retry
|
|
1936
|
-
]
|
|
1937
|
-
}
|
|
1938
|
-
) : null
|
|
1939
|
-
] }) : loading && sessions.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-24 items-center justify-center text-muted-foreground", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-5 animate-spin" }) }) : filteredSessions.length === 0 && !draftVisible ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-8 text-center text-sm text-muted-foreground", children: normalizedQuery ? labels.noResults : labels.emptySessions }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-2", children: [
|
|
1940
|
-
draftVisible ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
2058
|
+
"aria-current": session.id === selectedSessionId ? "page" : void 0,
|
|
2059
|
+
className: "group flex h-10 w-full min-w-0 items-center rounded-[var(--radius)] border border-transparent bg-muted/60 text-foreground transition hover:bg-muted aria-[current=page]:border-primary aria-[current=page]:bg-primary/10",
|
|
2060
|
+
children: [
|
|
2061
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1941
2062
|
"button",
|
|
1942
2063
|
{
|
|
1943
2064
|
type: "button",
|
|
1944
|
-
|
|
1945
|
-
className: "
|
|
1946
|
-
onClick: () => onIntent?.({ type: "
|
|
1947
|
-
children:
|
|
2065
|
+
title: session.title,
|
|
2066
|
+
className: "h-full min-w-0 flex-1 truncate px-3 text-left text-sm font-semibold",
|
|
2067
|
+
onClick: () => onIntent?.({ type: "select-session", sessionId: session.id }),
|
|
2068
|
+
children: session.title
|
|
1948
2069
|
}
|
|
1949
|
-
)
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
onSelect: () => onIntent?.({
|
|
1983
|
-
type: "delete-session",
|
|
1984
|
-
sessionId: session.id
|
|
1985
|
-
}),
|
|
1986
|
-
children: [
|
|
1987
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "mr-2 size-4", "aria-hidden": "true" }),
|
|
1988
|
-
navigationMessages.delete
|
|
1989
|
-
]
|
|
1990
|
-
}
|
|
1991
|
-
) })
|
|
1992
|
-
] }) : null
|
|
1993
|
-
]
|
|
1994
|
-
},
|
|
1995
|
-
session.id
|
|
1996
|
-
))
|
|
1997
|
-
] })
|
|
1998
|
-
}
|
|
1999
|
-
),
|
|
2000
|
-
activeGroup ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 border-t border-border px-4 pb-4 pt-3", children: /* @__PURE__ */ jsxRuntime.jsxs(Tabs, { value: activeGroup.id, onValueChange: changeGroup, children: [
|
|
2001
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2002
|
-
TabsList,
|
|
2003
|
-
{
|
|
2004
|
-
className: "grid h-10 w-full rounded-[var(--radius)] bg-muted p-0.5 text-foreground",
|
|
2005
|
-
style: {
|
|
2006
|
-
gridTemplateColumns: `repeat(${groups.length}, minmax(0, 1fr))`
|
|
2007
|
-
},
|
|
2008
|
-
children: groups.map((group) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2009
|
-
TabsTrigger,
|
|
2010
|
-
{
|
|
2011
|
-
value: group.id,
|
|
2012
|
-
className: "rounded-md text-sm font-semibold text-foreground data-[state=active]:border data-[state=active]:border-border data-[state=active]:bg-background",
|
|
2013
|
-
children: group.label
|
|
2014
|
-
},
|
|
2015
|
-
group.id
|
|
2016
|
-
))
|
|
2017
|
-
}
|
|
2018
|
-
),
|
|
2019
|
-
groups.map((group) => /* @__PURE__ */ jsxRuntime.jsx(TabsContent, { value: group.id, className: "mt-3", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-2 gap-2", children: group.items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2020
|
-
"button",
|
|
2021
|
-
{
|
|
2022
|
-
type: "button",
|
|
2023
|
-
"aria-label": item.title,
|
|
2024
|
-
className: "group relative aspect-[1.27] overflow-hidden rounded-[var(--radius)] border border-border bg-card text-left transition hover:border-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
2025
|
-
style: Number.isFinite(group.itemAspectRatio) && Number(group.itemAspectRatio) > 0 ? { aspectRatio: group.itemAspectRatio } : void 0,
|
|
2026
|
-
onClick: () => onIntent?.({
|
|
2027
|
-
type: "select-item",
|
|
2028
|
-
groupId: group.id,
|
|
2029
|
-
item
|
|
2030
|
-
}),
|
|
2031
|
-
children: renderItemMedia?.(item, group) ?? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkbenchExploreCardMedia, { item })
|
|
2032
|
-
},
|
|
2033
|
-
item.id
|
|
2034
|
-
)) }) }, group.id))
|
|
2035
|
-
] }) }) : null
|
|
2036
|
-
]
|
|
2070
|
+
),
|
|
2071
|
+
deleteSessions ? /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu2, { children: [
|
|
2072
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2073
|
+
Button,
|
|
2074
|
+
{
|
|
2075
|
+
type: "button",
|
|
2076
|
+
variant: "ghost",
|
|
2077
|
+
size: "icon",
|
|
2078
|
+
"aria-label": navigationMessages.actions,
|
|
2079
|
+
className: "mr-1 size-8 shrink-0 text-muted-foreground opacity-0 transition-opacity group-aria-[current=page]:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 data-[state=open]:opacity-100",
|
|
2080
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Ellipsis, { className: "size-4", "aria-hidden": "true" })
|
|
2081
|
+
}
|
|
2082
|
+
) }),
|
|
2083
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuContent, { align: "end", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2084
|
+
DropdownMenuItem,
|
|
2085
|
+
{
|
|
2086
|
+
className: "text-destructive-text",
|
|
2087
|
+
onSelect: () => onIntent?.({
|
|
2088
|
+
type: "delete-session",
|
|
2089
|
+
sessionId: session.id
|
|
2090
|
+
}),
|
|
2091
|
+
children: [
|
|
2092
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "mr-2 size-4", "aria-hidden": "true" }),
|
|
2093
|
+
navigationMessages.delete
|
|
2094
|
+
]
|
|
2095
|
+
}
|
|
2096
|
+
) })
|
|
2097
|
+
] }) : null
|
|
2098
|
+
]
|
|
2099
|
+
},
|
|
2100
|
+
session.id
|
|
2101
|
+
))
|
|
2102
|
+
] }) : null
|
|
2037
2103
|
}
|
|
2038
2104
|
);
|
|
2039
2105
|
}
|
|
@@ -3948,6 +4014,7 @@ exports.AgentWorkbenchProcess = AgentWorkbenchProcess;
|
|
|
3948
4014
|
exports.AgentWorkbenchQuickStart = AgentWorkbenchQuickStart;
|
|
3949
4015
|
exports.AgentWorkbenchShell = AgentWorkbenchShell;
|
|
3950
4016
|
exports.AgentWorkbenchSidebar = AgentWorkbenchSidebar;
|
|
4017
|
+
exports.AgentWorkbenchSidebarContainer = AgentWorkbenchSidebarContainer;
|
|
3951
4018
|
exports.AgentWorkbenchTaskDetails = AgentWorkbenchTaskDetails;
|
|
3952
4019
|
exports.AgentWorkbenchThread = AgentWorkbenchThread;
|
|
3953
4020
|
exports.AgentWorkbenchThreadShell = AgentWorkbenchThreadShell;
|