@ai-matrx/agents 0.42.0 → 0.42.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.
@@ -576,7 +576,7 @@ function ContextRulesTable({
576
576
  },
577
577
  rowId(row)
578
578
  );
579
- const heading = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Heading, { ...props, grid, comfortable, readOnly }, props.id);
579
+ const heading = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Heading, { ...props, comfortable, readOnly }, props.id);
580
580
  const renderLevel = (level, depth) => {
581
581
  const all = levelRows(level);
582
582
  const name = level.ref.path[level.ref.path.length - 1] ?? "";
@@ -673,7 +673,6 @@ function Heading({
673
673
  checked,
674
674
  onToggle,
675
675
  noSwitch,
676
- grid,
677
676
  comfortable,
678
677
  readOnly
679
678
  }) {
@@ -686,28 +685,26 @@ function Heading({
686
685
  role: "row",
687
686
  "data-heading": kind,
688
687
  className: (0, import_design_system2.cn)(
689
- grid,
690
- "border-b border-border/50 font-medium",
691
- comfortable ? "min-h-11" : "h-7",
688
+ "flex items-center gap-2 border-b border-border/50 font-medium",
689
+ comfortable ? "min-h-11 px-3" : "h-7 px-2",
692
690
  kind === "group" ? "bg-muted/25 text-muted-foreground" : "bg-muted/60 text-foreground"
693
691
  ),
694
692
  children: [
695
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { role: "cell", className: (0, import_design_system2.cn)("flex min-w-0 items-center gap-1", indent(depth)), children: [
696
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "min-w-0 truncate", title: label, children: label }),
697
- total > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "shrink-0 font-normal tabular-nums text-muted-foreground", children: count === total ? total : `${count}/${total}` }) : null
698
- ] }),
699
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: "flex justify-center", children: showSwitch ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
700
- import_design_system2.Switch,
701
- {
702
- size: "sm",
703
- "aria-label": `Include ${switchName}`,
704
- checked,
705
- disabled: readOnly || !onToggle,
706
- onCheckedChange: (next) => onToggle?.(next)
707
- }
708
- ) : null }),
709
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: "text-right font-normal tabular-nums text-muted-foreground", children: total > 0 ? charsLabel : null }),
710
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell" })
693
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: (0, import_design_system2.cn)("flex min-w-0 flex-1 items-center", indent(depth)), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "min-w-0 truncate", title: label, children: label }) }),
694
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { role: "cell", className: "flex shrink-0 items-center gap-2 font-normal tabular-nums text-muted-foreground", children: [
695
+ total > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: count === total ? total : `${count}/${total}` }) : null,
696
+ total > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: charsLabel }) : null,
697
+ showSwitch ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
698
+ import_design_system2.Switch,
699
+ {
700
+ size: "sm",
701
+ "aria-label": `Include ${switchName}`,
702
+ checked,
703
+ disabled: readOnly || !onToggle,
704
+ onCheckedChange: (next) => onToggle?.(next)
705
+ }
706
+ ) : null
707
+ ] })
711
708
  ]
712
709
  }
713
710
  );
@@ -1044,7 +1041,7 @@ function ContextRulesChip({
1044
1041
  import_design_system3.PopoverContent,
1045
1042
  {
1046
1043
  align: "end",
1047
- className: "w-[26rem] max-w-[calc(100vw-1rem)] overflow-hidden p-0",
1044
+ className: "w-[30rem] max-w-[calc(100vw-1rem)] overflow-hidden p-0",
1048
1045
  children: body
1049
1046
  }
1050
1047
  )