@ai-matrx/agents 0.59.263 → 0.59.264
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
CHANGED
|
@@ -514,6 +514,7 @@ function useNarrow(ref) {
|
|
|
514
514
|
}
|
|
515
515
|
var INDENT = ["", "pl-2", "pl-4", "pl-6"];
|
|
516
516
|
var indent = (depth) => INDENT[Math.min(depth, INDENT.length - 1)];
|
|
517
|
+
var OWN_LOCK_REASON = "This page's own chat never gets itself";
|
|
517
518
|
function ContextRulesTable({
|
|
518
519
|
rows,
|
|
519
520
|
cap,
|
|
@@ -777,16 +778,24 @@ function ContextRuleRow({
|
|
|
777
778
|
]
|
|
778
779
|
}
|
|
779
780
|
),
|
|
780
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: (0, import_design_system3.cn)("flex justify-center", narrow && "order-last"), children: readOnly ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FrozenInclude, { name: row.label, checked: row.include }) :
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
781
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: (0, import_design_system3.cn)("flex justify-center", narrow && "order-last"), children: readOnly ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FrozenInclude, { name: row.label, checked: row.include }) : (() => {
|
|
782
|
+
const locked = row.layers?.surface?.own === true;
|
|
783
|
+
const control = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
784
|
+
import_design_system3.Switch,
|
|
785
|
+
{
|
|
786
|
+
size: "sm",
|
|
787
|
+
"aria-label": `Include ${row.label}`,
|
|
788
|
+
checked: row.include,
|
|
789
|
+
disabled: locked,
|
|
790
|
+
onCheckedChange: (next) => onChange(row.key, row.surfaceKey, withInclude(row, next))
|
|
791
|
+
}
|
|
792
|
+
);
|
|
793
|
+
if (!locked) return control;
|
|
794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_design_system3.Tooltip, { children: [
|
|
795
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system3.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "inline-flex", children: control }) }),
|
|
796
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system3.TooltipContent, { children: OWN_LOCK_REASON })
|
|
797
|
+
] });
|
|
798
|
+
})() }),
|
|
790
799
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
791
800
|
"div",
|
|
792
801
|
{
|
|
@@ -313,12 +313,6 @@ interface ContextRulesTableProps {
|
|
|
313
313
|
renderRowTrail?: ((row: ResolvedContextRow) => React.ReactNode) | undefined;
|
|
314
314
|
className?: string;
|
|
315
315
|
}
|
|
316
|
-
/**
|
|
317
|
-
* The context rules table: Item | Include | Chars | Inline max, under nested
|
|
318
|
-
* heading rows — section ("Marketing"), page ("Marketing Brand Cockpit"), the
|
|
319
|
-
* page's own groups — each heading full width with its switch. Presentational
|
|
320
|
-
* and state-agnostic — every edit goes out through `onChange`.
|
|
321
|
-
*/
|
|
322
316
|
declare function ContextRulesTable({ rows, cap, readOnly, onChange, onOpenRow, density, selectedKey, hierarchy, onSetInclude, renderRowLead, renderRowTrail, className, }: ContextRulesTableProps): React.JSX.Element;
|
|
323
317
|
|
|
324
318
|
/**
|
|
@@ -313,12 +313,6 @@ interface ContextRulesTableProps {
|
|
|
313
313
|
renderRowTrail?: ((row: ResolvedContextRow) => React.ReactNode) | undefined;
|
|
314
314
|
className?: string;
|
|
315
315
|
}
|
|
316
|
-
/**
|
|
317
|
-
* The context rules table: Item | Include | Chars | Inline max, under nested
|
|
318
|
-
* heading rows — section ("Marketing"), page ("Marketing Brand Cockpit"), the
|
|
319
|
-
* page's own groups — each heading full width with its switch. Presentational
|
|
320
|
-
* and state-agnostic — every edit goes out through `onChange`.
|
|
321
|
-
*/
|
|
322
316
|
declare function ContextRulesTable({ rows, cap, readOnly, onChange, onOpenRow, density, selectedKey, hierarchy, onSetInclude, renderRowLead, renderRowTrail, className, }: ContextRulesTableProps): React.JSX.Element;
|
|
323
317
|
|
|
324
318
|
/**
|
|
@@ -482,6 +482,7 @@ function useNarrow(ref) {
|
|
|
482
482
|
}
|
|
483
483
|
var INDENT = ["", "pl-2", "pl-4", "pl-6"];
|
|
484
484
|
var indent = (depth) => INDENT[Math.min(depth, INDENT.length - 1)];
|
|
485
|
+
var OWN_LOCK_REASON = "This page's own chat never gets itself";
|
|
485
486
|
function ContextRulesTable({
|
|
486
487
|
rows,
|
|
487
488
|
cap,
|
|
@@ -745,16 +746,24 @@ function ContextRuleRow({
|
|
|
745
746
|
]
|
|
746
747
|
}
|
|
747
748
|
),
|
|
748
|
-
/* @__PURE__ */ jsx3("div", { role: "cell", className: cn3("flex justify-center", narrow && "order-last"), children: readOnly ? /* @__PURE__ */ jsx3(FrozenInclude, { name: row.label, checked: row.include }) :
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
749
|
+
/* @__PURE__ */ jsx3("div", { role: "cell", className: cn3("flex justify-center", narrow && "order-last"), children: readOnly ? /* @__PURE__ */ jsx3(FrozenInclude, { name: row.label, checked: row.include }) : (() => {
|
|
750
|
+
const locked = row.layers?.surface?.own === true;
|
|
751
|
+
const control = /* @__PURE__ */ jsx3(
|
|
752
|
+
Switch,
|
|
753
|
+
{
|
|
754
|
+
size: "sm",
|
|
755
|
+
"aria-label": `Include ${row.label}`,
|
|
756
|
+
checked: row.include,
|
|
757
|
+
disabled: locked,
|
|
758
|
+
onCheckedChange: (next) => onChange(row.key, row.surfaceKey, withInclude(row, next))
|
|
759
|
+
}
|
|
760
|
+
);
|
|
761
|
+
if (!locked) return control;
|
|
762
|
+
return /* @__PURE__ */ jsxs3(Tooltip3, { children: [
|
|
763
|
+
/* @__PURE__ */ jsx3(TooltipTrigger3, { asChild: true, children: /* @__PURE__ */ jsx3("span", { className: "inline-flex", children: control }) }),
|
|
764
|
+
/* @__PURE__ */ jsx3(TooltipContent3, { children: OWN_LOCK_REASON })
|
|
765
|
+
] });
|
|
766
|
+
})() }),
|
|
758
767
|
/* @__PURE__ */ jsxs3(
|
|
759
768
|
"div",
|
|
760
769
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/agents",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.264",
|
|
4
4
|
"description": "Portable AI Matrx agent stream protocol, event projection, and safe result-presentation primitives.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -562,5 +562,5 @@
|
|
|
562
562
|
"verify:tarball": "node ./scripts/verify-tarball.mjs",
|
|
563
563
|
"typegen:self-test": "node scripts/typegen/drop-guard.self-test.mjs && node scripts/typegen/check-api-types-fresh.mjs --self-test"
|
|
564
564
|
},
|
|
565
|
-
"gitHead": "
|
|
565
|
+
"gitHead": "aa81498da0e3d04438e28682980d2f32240b3f2a"
|
|
566
566
|
}
|