@ai-matrx/agents 0.42.1 → 0.43.2
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/CHANGELOG.md +19 -0
- package/dist/content-transfer/index.cjs.map +1 -1
- package/dist/content-transfer/index.js.map +1 -1
- package/dist/content-transfer/react/index.cjs.map +1 -1
- package/dist/content-transfer/react/index.js.map +1 -1
- package/dist/context/react/index.cjs +27 -20
- package/dist/context/react/index.cjs.map +1 -1
- package/dist/context/react/index.js +27 -20
- package/dist/context/react/index.js.map +1 -1
- package/dist/generated/stream-events.cjs.map +1 -1
- package/dist/generated/stream-events.d.cts +1 -0
- package/dist/generated/stream-events.d.ts +1 -0
- package/dist/generated/stream-events.js.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{keys.generated-CtmYvYsN.d.cts → keys.generated-BGFhXgYg.d.cts} +4 -4
- package/dist/{keys.generated-CtmYvYsN.d.ts → keys.generated-BGFhXgYg.d.ts} +4 -4
- package/dist/mandates/index.cjs +2 -2
- package/dist/mandates/index.cjs.map +1 -1
- package/dist/mandates/index.d.cts +2 -2
- package/dist/mandates/index.d.ts +2 -2
- package/dist/mandates/index.js +2 -2
- package/dist/mandates/index.js.map +1 -1
- package/dist/matrx/index.d.cts +1 -1
- package/dist/matrx/index.d.ts +1 -1
- package/generated/stream-events.ts +1 -0
- package/mandates/snapshots/keys.0.43.0.json +653 -0
- package/mandates/snapshots/keys.0.43.1.json +653 -0
- package/mandates/snapshots/keys.0.43.2.json +653 -0
- package/package.json +3 -3
|
@@ -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, comfortable, readOnly }, props.id);
|
|
579
|
+
const heading = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Heading, { ...props, grid, narrow, 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,38 +673,44 @@ function Heading({
|
|
|
673
673
|
checked,
|
|
674
674
|
onToggle,
|
|
675
675
|
noSwitch,
|
|
676
|
+
grid,
|
|
677
|
+
narrow,
|
|
676
678
|
comfortable,
|
|
677
679
|
readOnly
|
|
678
680
|
}) {
|
|
679
681
|
const { count, charsLabel } = summarizeContextRows(rows);
|
|
680
682
|
const total = rows.length;
|
|
681
683
|
const showSwitch = !noSwitch && (Boolean(onToggle) || readOnly && total > 0);
|
|
684
|
+
const countLabel = total > 0 ? count === total ? String(total) : `${count}/${total}` : null;
|
|
685
|
+
const toggle = showSwitch ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
686
|
+
import_design_system2.Switch,
|
|
687
|
+
{
|
|
688
|
+
size: "sm",
|
|
689
|
+
"aria-label": `Include ${switchName}`,
|
|
690
|
+
checked,
|
|
691
|
+
disabled: readOnly || !onToggle,
|
|
692
|
+
onCheckedChange: (next) => onToggle?.(next)
|
|
693
|
+
}
|
|
694
|
+
) : null;
|
|
682
695
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
683
696
|
"div",
|
|
684
697
|
{
|
|
685
698
|
role: "row",
|
|
686
699
|
"data-heading": kind,
|
|
687
700
|
className: (0, import_design_system2.cn)(
|
|
688
|
-
|
|
689
|
-
|
|
701
|
+
grid,
|
|
702
|
+
"border-b border-border/50 font-medium",
|
|
703
|
+
comfortable ? "min-h-11 py-1" : "min-h-7 py-0.5",
|
|
690
704
|
kind === "group" ? "bg-muted/25 text-muted-foreground" : "bg-muted/60 text-foreground"
|
|
691
705
|
),
|
|
692
706
|
children: [
|
|
693
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
size: "sm",
|
|
701
|
-
"aria-label": `Include ${switchName}`,
|
|
702
|
-
checked,
|
|
703
|
-
disabled: readOnly || !onToggle,
|
|
704
|
-
onCheckedChange: (next) => onToggle?.(next)
|
|
705
|
-
}
|
|
706
|
-
) : null
|
|
707
|
-
] })
|
|
707
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { role: "cell", className: (0, import_design_system2.cn)("flex min-w-0 items-baseline gap-1.5", indent(depth)), children: [
|
|
708
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "min-w-0 whitespace-normal break-words", title: label, children: label }),
|
|
709
|
+
countLabel ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "shrink-0 font-normal tabular-nums text-muted-foreground", children: countLabel }) : null
|
|
710
|
+
] }),
|
|
711
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: (0, import_design_system2.cn)("flex justify-center", narrow && "order-last"), children: toggle }),
|
|
712
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: "text-right font-normal tabular-nums text-muted-foreground", children: total > 0 ? charsLabel : null }),
|
|
713
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell" })
|
|
708
714
|
]
|
|
709
715
|
}
|
|
710
716
|
);
|
|
@@ -786,7 +792,7 @@ function ContextRuleRow({
|
|
|
786
792
|
]
|
|
787
793
|
}
|
|
788
794
|
),
|
|
789
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
795
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: (0, import_design_system2.cn)("flex justify-center", narrow && "order-last"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
790
796
|
import_design_system2.Switch,
|
|
791
797
|
{
|
|
792
798
|
size: "sm",
|
|
@@ -945,11 +951,12 @@ function ContextRulesChip({
|
|
|
945
951
|
{
|
|
946
952
|
type: "button",
|
|
947
953
|
"aria-label": faceName,
|
|
954
|
+
title: name || void 0,
|
|
948
955
|
"data-mismatch": warn ? "true" : void 0,
|
|
949
956
|
"data-blind": blind ? "true" : void 0,
|
|
950
957
|
onClick: isMobile ? () => setOpen(true) : void 0,
|
|
951
958
|
className: (0, import_design_system3.cn)(
|
|
952
|
-
"relative inline-flex h-6
|
|
959
|
+
"relative inline-flex h-6 min-w-0 shrink items-center gap-1 rounded-md border border-border bg-card px-1.5 text-xs font-medium text-foreground transition-colors hover:bg-accent",
|
|
953
960
|
comfortable && "after:absolute after:-inset-x-1.5 after:-inset-y-2.5 after:content-['']",
|
|
954
961
|
!eyeOpen && "text-muted-foreground",
|
|
955
962
|
blind && "border-dashed",
|