@inf-monkeys-tech/monkeys-design 1.0.78 → 1.0.80

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.
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { AgentWorkbenchComposerViewModel, AgentSessionPermissionProfile, AgentWorkbenchQuickStartViewModel, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
3
3
  export { AgentWorkbenchQuickStartCategory, AgentWorkbenchQuickStartIcon, AgentWorkbenchQuickStartSection, AgentWorkbenchQuickStartTemplate, AgentWorkbenchQuickStartViewModel } from '@inf-monkeys-tech/monkeys';
4
- import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-0c582b2c95a2.mjs';
5
- export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, L as AgentWorkbenchApproval, M as AgentWorkbenchApprovalData, N as AgentWorkbenchApprovalProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, O as AgentWorkbenchExploreCardMedia, P as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, Q as AgentWorkbenchExploreMediaTreatment, R as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchShell, r as AgentWorkbenchShellClassNames, s as AgentWorkbenchShellProps, t as AgentWorkbenchSidebar, u as AgentWorkbenchSidebarClassNames, v as AgentWorkbenchSidebarContainer, w as AgentWorkbenchSidebarContainerBodyProps, x as AgentWorkbenchSidebarContainerClassNames, y as AgentWorkbenchSidebarContainerProps, z as AgentWorkbenchSidebarIntent, B as AgentWorkbenchSidebarProps, C as AgentWorkbenchTaskDetails, D as AgentWorkbenchTaskDetailsClassNames, E as AgentWorkbenchTaskDetailsProps, F as AgentWorkbenchTerminalModel, G as AgentWorkbenchTool, H as AgentWorkbenchToolClassNames, I as AgentWorkbenchToolProps, J as createAgentWorkbenchActivityModel, K as createAgentWorkbenchDetailsModel } from '../../details-model-0c582b2c95a2.mjs';
4
+ import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-0a4d9b50c99d.mjs';
5
+ export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, L as AgentWorkbenchApproval, M as AgentWorkbenchApprovalData, N as AgentWorkbenchApprovalProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, O as AgentWorkbenchExploreCardMedia, P as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, Q as AgentWorkbenchExploreMediaTreatment, R as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchShell, r as AgentWorkbenchShellClassNames, s as AgentWorkbenchShellProps, t as AgentWorkbenchSidebar, u as AgentWorkbenchSidebarClassNames, v as AgentWorkbenchSidebarContainer, w as AgentWorkbenchSidebarContainerBodyProps, x as AgentWorkbenchSidebarContainerClassNames, y as AgentWorkbenchSidebarContainerProps, z as AgentWorkbenchSidebarIntent, B as AgentWorkbenchSidebarProps, C as AgentWorkbenchTaskDetails, D as AgentWorkbenchTaskDetailsClassNames, E as AgentWorkbenchTaskDetailsProps, F as AgentWorkbenchTerminalModel, G as AgentWorkbenchTool, H as AgentWorkbenchToolClassNames, I as AgentWorkbenchToolProps, J as createAgentWorkbenchActivityModel, K as createAgentWorkbenchDetailsModel } from '../../details-model-0a4d9b50c99d.mjs';
6
6
  import * as React from 'react';
7
7
  import { ReactNode, HTMLAttributes, ButtonHTMLAttributes, ComponentType } from 'react';
8
8
  type AgentWorkbenchComposerIntent = {
@@ -1,8 +1,8 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { AgentWorkbenchComposerViewModel, AgentSessionPermissionProfile, AgentWorkbenchQuickStartViewModel, AgentSessionViewModel, AgentSessionEvent } from '@inf-monkeys-tech/monkeys';
3
3
  export { AgentWorkbenchQuickStartCategory, AgentWorkbenchQuickStartIcon, AgentWorkbenchQuickStartSection, AgentWorkbenchQuickStartTemplate, AgentWorkbenchQuickStartViewModel } from '@inf-monkeys-tech/monkeys';
4
- import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-0c582b2c95a2.js';
5
- export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, L as AgentWorkbenchApproval, M as AgentWorkbenchApprovalData, N as AgentWorkbenchApprovalProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, O as AgentWorkbenchExploreCardMedia, P as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, Q as AgentWorkbenchExploreMediaTreatment, R as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchShell, r as AgentWorkbenchShellClassNames, s as AgentWorkbenchShellProps, t as AgentWorkbenchSidebar, u as AgentWorkbenchSidebarClassNames, v as AgentWorkbenchSidebarContainer, w as AgentWorkbenchSidebarContainerBodyProps, x as AgentWorkbenchSidebarContainerClassNames, y as AgentWorkbenchSidebarContainerProps, z as AgentWorkbenchSidebarIntent, B as AgentWorkbenchSidebarProps, C as AgentWorkbenchTaskDetails, D as AgentWorkbenchTaskDetailsClassNames, E as AgentWorkbenchTaskDetailsProps, F as AgentWorkbenchTerminalModel, G as AgentWorkbenchTool, H as AgentWorkbenchToolClassNames, I as AgentWorkbenchToolProps, J as createAgentWorkbenchActivityModel, K as createAgentWorkbenchDetailsModel } from '../../details-model-0c582b2c95a2.js';
4
+ import { d as AgentWorkbenchApprovalIntent, e as AgentWorkbenchArtifactIntent } from '../../details-model-0a4d9b50c99d.js';
5
+ export { A as AgentWorkbenchActivity, a as AgentWorkbenchActivityClassNames, b as AgentWorkbenchActivityModel, c as AgentWorkbenchActivityProps, L as AgentWorkbenchApproval, M as AgentWorkbenchApprovalData, N as AgentWorkbenchApprovalProps, f as AgentWorkbenchDetailsIntent, g as AgentWorkbenchDetailsModel, h as AgentWorkbenchDetailsState, i as AgentWorkbenchDetailsTab, j as AgentWorkbenchEventOf, O as AgentWorkbenchExploreCardMedia, P as AgentWorkbenchExploreCardMediaProps, k as AgentWorkbenchExploreGroup, l as AgentWorkbenchExploreItem, Q as AgentWorkbenchExploreMediaTreatment, R as AgentWorkbenchExploreMediaVariant, m as AgentWorkbenchExploreSidebar, n as AgentWorkbenchExploreSidebarIntent, o as AgentWorkbenchExploreSidebarLabels, p as AgentWorkbenchExploreSidebarProps, q as AgentWorkbenchShell, r as AgentWorkbenchShellClassNames, s as AgentWorkbenchShellProps, t as AgentWorkbenchSidebar, u as AgentWorkbenchSidebarClassNames, v as AgentWorkbenchSidebarContainer, w as AgentWorkbenchSidebarContainerBodyProps, x as AgentWorkbenchSidebarContainerClassNames, y as AgentWorkbenchSidebarContainerProps, z as AgentWorkbenchSidebarIntent, B as AgentWorkbenchSidebarProps, C as AgentWorkbenchTaskDetails, D as AgentWorkbenchTaskDetailsClassNames, E as AgentWorkbenchTaskDetailsProps, F as AgentWorkbenchTerminalModel, G as AgentWorkbenchTool, H as AgentWorkbenchToolClassNames, I as AgentWorkbenchToolProps, J as createAgentWorkbenchActivityModel, K as createAgentWorkbenchDetailsModel } from '../../details-model-0a4d9b50c99d.js';
6
6
  import * as React from 'react';
7
7
  import { ReactNode, HTMLAttributes, ButtonHTMLAttributes, ComponentType } from 'react';
8
8
  type AgentWorkbenchComposerIntent = {
@@ -1522,6 +1522,7 @@ function AgentWorkbenchSidebarSearch({
1522
1522
  label,
1523
1523
  placeholder = label,
1524
1524
  className,
1525
+ variant = "default",
1525
1526
  onChange
1526
1527
  }) {
1527
1528
  const messages = useMonkeysLocaleMessages().agentWorkbench.navigation;
@@ -1537,47 +1538,60 @@ function AgentWorkbenchSidebarSearch({
1537
1538
  window.addEventListener("keydown", handleShortcut);
1538
1539
  return () => window.removeEventListener("keydown", handleShortcut);
1539
1540
  }, []);
1540
- return /* @__PURE__ */ jsxRuntime.jsxs(InputGroup, { className: cn2("h-10 rounded-lg bg-card", className), children: [
1541
- /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4", "aria-hidden": "true" }) }),
1542
- /* @__PURE__ */ jsxRuntime.jsx(
1543
- InputGroupInput,
1544
- {
1545
- ref: searchRef,
1546
- type: "search",
1547
- value,
1548
- "aria-label": label,
1549
- placeholder,
1550
- className: "min-w-0 [&::-webkit-search-cancel-button]:hidden",
1551
- onChange: (event) => onChange(event.target.value),
1552
- onKeyDown: (event) => {
1553
- if (event.key !== "Escape") return;
1554
- onChange("");
1555
- event.currentTarget.blur();
1556
- }
1557
- }
1558
- ),
1559
- value ? /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx(
1560
- InputGroupButton,
1561
- {
1562
- size: "icon-xs",
1563
- "aria-label": messages.clearSearch,
1564
- onClick: () => onChange(""),
1565
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-3.5", "aria-hidden": "true" })
1566
- }
1567
- ) }) : /* @__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" }) })
1568
- ] });
1541
+ return /* @__PURE__ */ jsxRuntime.jsxs(
1542
+ InputGroup,
1543
+ {
1544
+ className: cn2(
1545
+ variant === "trend" ? "h-12 rounded-[var(--radius)] border-border bg-card text-foreground" : "h-10 rounded-lg bg-card",
1546
+ className
1547
+ ),
1548
+ children: [
1549
+ /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "size-4", "aria-hidden": "true" }) }),
1550
+ /* @__PURE__ */ jsxRuntime.jsx(
1551
+ InputGroupInput,
1552
+ {
1553
+ ref: searchRef,
1554
+ type: "search",
1555
+ value,
1556
+ "aria-label": label,
1557
+ placeholder,
1558
+ className: "min-w-0 [&::-webkit-search-cancel-button]:hidden",
1559
+ onChange: (event) => onChange(event.target.value),
1560
+ onKeyDown: (event) => {
1561
+ if (event.key !== "Escape") return;
1562
+ onChange("");
1563
+ event.currentTarget.blur();
1564
+ }
1565
+ }
1566
+ ),
1567
+ value ? /* @__PURE__ */ jsxRuntime.jsx(InputGroupAddon, { align: "inline-end", children: /* @__PURE__ */ jsxRuntime.jsx(
1568
+ InputGroupButton,
1569
+ {
1570
+ size: "icon-xs",
1571
+ "aria-label": messages.clearSearch,
1572
+ onClick: () => onChange(""),
1573
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "size-3.5", "aria-hidden": "true" })
1574
+ }
1575
+ ) }) : /* @__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" }) })
1576
+ ]
1577
+ }
1578
+ );
1569
1579
  }
1570
1580
  function AgentWorkbenchSidebarNewSessionButton({
1571
1581
  label,
1572
1582
  className,
1583
+ variant = "default",
1573
1584
  onClick
1574
1585
  }) {
1575
1586
  return /* @__PURE__ */ jsxRuntime.jsxs(
1576
1587
  Button,
1577
1588
  {
1578
1589
  type: "button",
1579
- variant: "ghost",
1580
- className: cn2("h-9 w-full justify-start gap-2 px-3 text-sm", className),
1590
+ variant: variant === "trend" ? "default" : "ghost",
1591
+ className: cn2(
1592
+ variant === "trend" ? "h-11 w-full justify-center gap-2 rounded-[var(--radius)] border border-primary/60 bg-primary px-3 font-semibold text-primary-foreground hover:bg-primary/90" : "h-9 w-full justify-start gap-2 px-3 text-sm",
1593
+ className
1594
+ ),
1581
1595
  onClick,
1582
1596
  children: [
1583
1597
  /* @__PURE__ */ jsxRuntime.jsx(lucideReact.SquarePen, { className: "size-4", "aria-hidden": "true" }),
@@ -1666,6 +1680,7 @@ function AgentWorkbenchSessionList({
1666
1680
  retryLabel,
1667
1681
  groupByMode = false,
1668
1682
  showHeading = false,
1683
+ variant = "default",
1669
1684
  className,
1670
1685
  itemClassName,
1671
1686
  capabilities,
@@ -1725,6 +1740,59 @@ function AgentWorkbenchSessionList({
1725
1740
  if (sessions.length === 0) {
1726
1741
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3 py-8 text-center text-sm text-muted-foreground", children: query ? noResultsLabel : emptyLabel });
1727
1742
  }
1743
+ const renderTrendItems = (items) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-3", children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsxs(
1744
+ "div",
1745
+ {
1746
+ "aria-current": item.id === selectedSessionId ? "page" : void 0,
1747
+ 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",
1748
+ children: [
1749
+ /* @__PURE__ */ jsxRuntime.jsx(
1750
+ "button",
1751
+ {
1752
+ type: "button",
1753
+ title: item.title,
1754
+ className: "h-full min-w-0 flex-1 truncate px-3 text-left text-sm font-semibold",
1755
+ onClick: () => onSelect(item.id),
1756
+ children: item.title
1757
+ }
1758
+ ),
1759
+ capabilities?.delete ? /* @__PURE__ */ jsxRuntime.jsx(
1760
+ "span",
1761
+ {
1762
+ "data-agent-workbench-item-actions": true,
1763
+ className: "mr-1 shrink-0 opacity-0 transition-opacity group-aria-[current=page]:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100",
1764
+ onClick: (event) => event.stopPropagation(),
1765
+ onKeyDown: (event) => event.stopPropagation(),
1766
+ children: /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu2, { children: [
1767
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
1768
+ Button,
1769
+ {
1770
+ type: "button",
1771
+ variant: "ghost",
1772
+ size: "icon",
1773
+ "aria-label": messages.actions,
1774
+ className: "size-8 text-muted-foreground",
1775
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Ellipsis, { className: "size-4", "aria-hidden": "true" })
1776
+ }
1777
+ ) }),
1778
+ /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuContent, { align: "end", children: /* @__PURE__ */ jsxRuntime.jsxs(
1779
+ DropdownMenuItem,
1780
+ {
1781
+ className: "text-destructive-text",
1782
+ onSelect: () => onDelete?.(item.id),
1783
+ children: [
1784
+ /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { className: "mr-2 size-4", "aria-hidden": "true" }),
1785
+ messages.delete
1786
+ ]
1787
+ }
1788
+ ) })
1789
+ ] })
1790
+ }
1791
+ ) : null
1792
+ ]
1793
+ },
1794
+ item.id
1795
+ )) });
1728
1796
  const renderItems = (items) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-1", children: items.map((item) => {
1729
1797
  const percent = item.contextUsage && item.contextUsage.maxTokens > 0 ? Math.min(
1730
1798
  100,
@@ -1881,7 +1949,7 @@ function AgentWorkbenchSessionList({
1881
1949
  }) });
1882
1950
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn2("space-y-2", className), children: [
1883
1951
  showHeading && !groupByMode ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "mb-2 px-3 text-xs font-medium text-muted-foreground", children: messages.recentSessions }) : null,
1884
- groupByMode ? [
1952
+ variant === "trend" ? renderTrendItems(sessions) : groupByMode ? [
1885
1953
  {
1886
1954
  id: "chatbot",
1887
1955
  label: messages.chats,
@@ -2310,6 +2378,7 @@ function AgentWorkbenchExploreSidebar({
2310
2378
  error,
2311
2379
  showDraftSession = !selectedSessionId,
2312
2380
  deleteSessions = false,
2381
+ variant = "default",
2313
2382
  defaultGroupId,
2314
2383
  header,
2315
2384
  footer,
@@ -2395,6 +2464,7 @@ function AgentWorkbenchExploreSidebar({
2395
2464
  {
2396
2465
  value: searchQuery,
2397
2466
  label: labels.search,
2467
+ variant,
2398
2468
  onChange: (query) => onIntent?.({ type: "change-search", query })
2399
2469
  }
2400
2470
  ) : void 0,
@@ -2402,6 +2472,7 @@ function AgentWorkbenchExploreSidebar({
2402
2472
  AgentWorkbenchSidebarNewSessionButton,
2403
2473
  {
2404
2474
  label: labels.newSession,
2475
+ variant,
2405
2476
  onClick: () => onIntent?.({ type: "create-session" })
2406
2477
  }
2407
2478
  ) : void 0,
@@ -2433,6 +2504,7 @@ function AgentWorkbenchExploreSidebar({
2433
2504
  noResultsLabel: labels.noResults,
2434
2505
  retryLabel: labels.retry,
2435
2506
  groupByMode: resolvedConfig.navigationMode !== "default",
2507
+ variant,
2436
2508
  capabilities: { delete: deleteSessions },
2437
2509
  onSelect: (sessionId) => onIntent?.({ type: "select-session", sessionId }),
2438
2510
  onDelete: (sessionId) => onIntent?.({ type: "delete-session", sessionId }),