@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.
@@ -541,7 +541,7 @@ function ContextRulesTable({
541
541
  },
542
542
  rowId(row)
543
543
  );
544
- const heading = (props) => /* @__PURE__ */ jsx3(Heading, { ...props, grid, comfortable, readOnly }, props.id);
544
+ const heading = (props) => /* @__PURE__ */ jsx3(Heading, { ...props, comfortable, readOnly }, props.id);
545
545
  const renderLevel = (level, depth) => {
546
546
  const all = levelRows(level);
547
547
  const name = level.ref.path[level.ref.path.length - 1] ?? "";
@@ -638,7 +638,6 @@ function Heading({
638
638
  checked,
639
639
  onToggle,
640
640
  noSwitch,
641
- grid,
642
641
  comfortable,
643
642
  readOnly
644
643
  }) {
@@ -651,28 +650,26 @@ function Heading({
651
650
  role: "row",
652
651
  "data-heading": kind,
653
652
  className: cn2(
654
- grid,
655
- "border-b border-border/50 font-medium",
656
- comfortable ? "min-h-11" : "h-7",
653
+ "flex items-center gap-2 border-b border-border/50 font-medium",
654
+ comfortable ? "min-h-11 px-3" : "h-7 px-2",
657
655
  kind === "group" ? "bg-muted/25 text-muted-foreground" : "bg-muted/60 text-foreground"
658
656
  ),
659
657
  children: [
660
- /* @__PURE__ */ jsxs3("div", { role: "cell", className: cn2("flex min-w-0 items-center gap-1", indent(depth)), children: [
661
- /* @__PURE__ */ jsx3("span", { className: "min-w-0 truncate", title: label, children: label }),
662
- total > 0 ? /* @__PURE__ */ jsx3("span", { className: "shrink-0 font-normal tabular-nums text-muted-foreground", children: count === total ? total : `${count}/${total}` }) : null
663
- ] }),
664
- /* @__PURE__ */ jsx3("div", { role: "cell", className: "flex justify-center", children: showSwitch ? /* @__PURE__ */ jsx3(
665
- Switch,
666
- {
667
- size: "sm",
668
- "aria-label": `Include ${switchName}`,
669
- checked,
670
- disabled: readOnly || !onToggle,
671
- onCheckedChange: (next) => onToggle?.(next)
672
- }
673
- ) : null }),
674
- /* @__PURE__ */ jsx3("div", { role: "cell", className: "text-right font-normal tabular-nums text-muted-foreground", children: total > 0 ? charsLabel : null }),
675
- /* @__PURE__ */ jsx3("div", { role: "cell" })
658
+ /* @__PURE__ */ jsx3("div", { role: "cell", className: cn2("flex min-w-0 flex-1 items-center", indent(depth)), children: /* @__PURE__ */ jsx3("span", { className: "min-w-0 truncate", title: label, children: label }) }),
659
+ /* @__PURE__ */ jsxs3("div", { role: "cell", className: "flex shrink-0 items-center gap-2 font-normal tabular-nums text-muted-foreground", children: [
660
+ total > 0 ? /* @__PURE__ */ jsx3("span", { children: count === total ? total : `${count}/${total}` }) : null,
661
+ total > 0 ? /* @__PURE__ */ jsx3("span", { children: charsLabel }) : null,
662
+ showSwitch ? /* @__PURE__ */ jsx3(
663
+ Switch,
664
+ {
665
+ size: "sm",
666
+ "aria-label": `Include ${switchName}`,
667
+ checked,
668
+ disabled: readOnly || !onToggle,
669
+ onCheckedChange: (next) => onToggle?.(next)
670
+ }
671
+ ) : null
672
+ ] })
676
673
  ]
677
674
  }
678
675
  );
@@ -1020,7 +1017,7 @@ function ContextRulesChip({
1020
1017
  PopoverContent2,
1021
1018
  {
1022
1019
  align: "end",
1023
- className: "w-[26rem] max-w-[calc(100vw-1rem)] overflow-hidden p-0",
1020
+ className: "w-[30rem] max-w-[calc(100vw-1rem)] overflow-hidden p-0",
1024
1021
  children: body
1025
1022
  }
1026
1023
  )