@ai-matrx/agents 0.42.0 → 0.43.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.
- package/CHANGELOG.md +20 -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 +22 -18
- package/dist/context/react/index.cjs.map +1 -1
- package/dist/context/react/index.js +22 -18
- package/dist/context/react/index.js.map +1 -1
- package/dist/generated/workflow-events.cjs.map +1 -1
- package/dist/generated/workflow-events.d.cts +1 -0
- package/dist/generated/workflow-events.d.ts +1 -0
- package/dist/generated/workflow-events.js.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{keys.generated-DsQcsQuC.d.cts → keys.generated-CQaOZm1t.d.cts} +4 -4
- package/dist/{keys.generated-DsQcsQuC.d.ts → keys.generated-CQaOZm1t.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/workflow-events.ts +1 -0
- package/mandates/snapshots/keys.0.42.1.json +653 -0
- package/mandates/snapshots/keys.0.43.0.json +653 -0
- package/mandates/snapshots/keys.0.43.1.json +653 -0
- package/package.json +2 -2
|
@@ -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, 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] ?? "";
|
|
@@ -674,12 +674,24 @@ function Heading({
|
|
|
674
674
|
onToggle,
|
|
675
675
|
noSwitch,
|
|
676
676
|
grid,
|
|
677
|
+
narrow,
|
|
677
678
|
comfortable,
|
|
678
679
|
readOnly
|
|
679
680
|
}) {
|
|
680
681
|
const { count, charsLabel } = summarizeContextRows(rows);
|
|
681
682
|
const total = rows.length;
|
|
682
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;
|
|
683
695
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
684
696
|
"div",
|
|
685
697
|
{
|
|
@@ -688,24 +700,15 @@ function Heading({
|
|
|
688
700
|
className: (0, import_design_system2.cn)(
|
|
689
701
|
grid,
|
|
690
702
|
"border-b border-border/50 font-medium",
|
|
691
|
-
comfortable ? "min-h-11" : "h-7",
|
|
703
|
+
comfortable ? "min-h-11 py-1" : "min-h-7 py-0.5",
|
|
692
704
|
kind === "group" ? "bg-muted/25 text-muted-foreground" : "bg-muted/60 text-foreground"
|
|
693
705
|
),
|
|
694
706
|
children: [
|
|
695
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { role: "cell", className: (0, import_design_system2.cn)("flex min-w-0 items-
|
|
696
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "min-w-0
|
|
697
|
-
|
|
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
|
|
698
710
|
] }),
|
|
699
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: "flex justify-center",
|
|
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 }),
|
|
711
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: (0, import_design_system2.cn)("flex justify-center", narrow && "order-last"), children: toggle }),
|
|
709
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 }),
|
|
710
713
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell" })
|
|
711
714
|
]
|
|
@@ -789,7 +792,7 @@ function ContextRuleRow({
|
|
|
789
792
|
]
|
|
790
793
|
}
|
|
791
794
|
),
|
|
792
|
-
/* @__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)(
|
|
793
796
|
import_design_system2.Switch,
|
|
794
797
|
{
|
|
795
798
|
size: "sm",
|
|
@@ -948,11 +951,12 @@ function ContextRulesChip({
|
|
|
948
951
|
{
|
|
949
952
|
type: "button",
|
|
950
953
|
"aria-label": faceName,
|
|
954
|
+
title: name || void 0,
|
|
951
955
|
"data-mismatch": warn ? "true" : void 0,
|
|
952
956
|
"data-blind": blind ? "true" : void 0,
|
|
953
957
|
onClick: isMobile ? () => setOpen(true) : void 0,
|
|
954
958
|
className: (0, import_design_system3.cn)(
|
|
955
|
-
"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",
|
|
956
960
|
comfortable && "after:absolute after:-inset-x-1.5 after:-inset-y-2.5 after:content-['']",
|
|
957
961
|
!eyeOpen && "text-muted-foreground",
|
|
958
962
|
blind && "border-dashed",
|
|
@@ -1044,7 +1048,7 @@ function ContextRulesChip({
|
|
|
1044
1048
|
import_design_system3.PopoverContent,
|
|
1045
1049
|
{
|
|
1046
1050
|
align: "end",
|
|
1047
|
-
className: "w-[
|
|
1051
|
+
className: "w-[30rem] max-w-[calc(100vw-1rem)] overflow-hidden p-0",
|
|
1048
1052
|
children: body
|
|
1049
1053
|
}
|
|
1050
1054
|
)
|