@ai-matrx/agents 0.41.0 → 0.41.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 +6 -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 +55 -13
- package/dist/context/react/index.cjs.map +1 -1
- package/dist/context/react/index.js +55 -13
- package/dist/context/react/index.js.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/{keys.generated-ClN6zfUo.d.cts → keys.generated-B72Ds5EJ.d.cts} +4 -4
- package/dist/{keys.generated-ClN6zfUo.d.ts → keys.generated-B72Ds5EJ.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/mandates/snapshots/keys.0.41.1.json +653 -0
- package/package.json +4 -4
|
@@ -594,6 +594,60 @@ function levelSwitch(level, bulk) {
|
|
|
594
594
|
if (level.master) return { checked: level.master.on, onToggle: level.master.onToggle };
|
|
595
595
|
return { checked: levelRows(level).some((r) => r.include), onToggle: bulk };
|
|
596
596
|
}
|
|
597
|
+
var useIsoLayoutEffect = typeof window === "undefined" ? React2.useEffect : React2.useLayoutEffect;
|
|
598
|
+
function HeadingPath({ path, name }) {
|
|
599
|
+
const boxRef = React2.useRef(null);
|
|
600
|
+
const fullRef = React2.useRef(null);
|
|
601
|
+
const [compact, setCompact] = React2.useState(false);
|
|
602
|
+
const multi = path.length > 1;
|
|
603
|
+
useIsoLayoutEffect(() => {
|
|
604
|
+
const box = boxRef.current;
|
|
605
|
+
const full = fullRef.current;
|
|
606
|
+
if (!multi || !box || !full) return void 0;
|
|
607
|
+
const fit = () => setCompact(full.scrollWidth > box.clientWidth);
|
|
608
|
+
fit();
|
|
609
|
+
if (typeof ResizeObserver === "undefined") return void 0;
|
|
610
|
+
const observer = new ResizeObserver(fit);
|
|
611
|
+
observer.observe(box);
|
|
612
|
+
return () => observer.disconnect();
|
|
613
|
+
}, [multi, name]);
|
|
614
|
+
const shown = multi && compact ? path.slice(-1) : path;
|
|
615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
616
|
+
"span",
|
|
617
|
+
{
|
|
618
|
+
ref: boxRef,
|
|
619
|
+
"data-compact": multi && compact ? "true" : void 0,
|
|
620
|
+
className: "relative flex min-w-0 flex-1 items-center gap-1 overflow-hidden",
|
|
621
|
+
title: name,
|
|
622
|
+
children: [
|
|
623
|
+
multi ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
624
|
+
"span",
|
|
625
|
+
{
|
|
626
|
+
ref: fullRef,
|
|
627
|
+
"aria-hidden": true,
|
|
628
|
+
className: "pointer-events-none invisible absolute left-0 top-0 flex items-center gap-1 whitespace-nowrap",
|
|
629
|
+
children: path.map((part, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(React2.Fragment, { children: [
|
|
630
|
+
i > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "\u203A" }) : null,
|
|
631
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: part })
|
|
632
|
+
] }, `${i}:${part}`))
|
|
633
|
+
}
|
|
634
|
+
) : null,
|
|
635
|
+
shown.map((part, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(React2.Fragment, { children: [
|
|
636
|
+
i > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "shrink-0 text-muted-foreground", children: "\u203A" }) : null,
|
|
637
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
638
|
+
"span",
|
|
639
|
+
{
|
|
640
|
+
className: (0, import_design_system2.cn)(
|
|
641
|
+
i < shown.length - 1 ? "shrink-0 whitespace-nowrap text-muted-foreground" : "min-w-0 truncate"
|
|
642
|
+
),
|
|
643
|
+
children: part
|
|
644
|
+
}
|
|
645
|
+
)
|
|
646
|
+
] }, `${i}:${part}`))
|
|
647
|
+
]
|
|
648
|
+
}
|
|
649
|
+
);
|
|
650
|
+
}
|
|
597
651
|
function LevelHeading({
|
|
598
652
|
kind,
|
|
599
653
|
path,
|
|
@@ -620,19 +674,7 @@ function LevelHeading({
|
|
|
620
674
|
),
|
|
621
675
|
children: [
|
|
622
676
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { role: "cell", className: (0, import_design_system2.cn)("flex min-w-0 items-center gap-1", kind === "group" && "pl-2"), children: [
|
|
623
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
624
|
-
i > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "shrink-0 text-muted-foreground", children: "\u203A" }) : null,
|
|
625
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
626
|
-
"span",
|
|
627
|
-
{
|
|
628
|
-
className: (0, import_design_system2.cn)(
|
|
629
|
-
"truncate",
|
|
630
|
-
i < path.length - 1 ? "max-w-[45%] shrink-0 text-muted-foreground" : "min-w-0"
|
|
631
|
-
),
|
|
632
|
-
children: part
|
|
633
|
-
}
|
|
634
|
-
)
|
|
635
|
-
] }, `${i}:${part}`)) }),
|
|
677
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(HeadingPath, { path, name }),
|
|
636
678
|
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
|
|
637
679
|
] }),
|
|
638
680
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: "flex justify-center", children: showSwitch ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|