@ai-matrx/agents 0.43.3 → 0.43.4

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.
@@ -348,6 +348,12 @@ interface ContextRulesChipProps {
348
348
  readOnly?: boolean | undefined;
349
349
  open?: boolean;
350
350
  onOpenChange?: (open: boolean) => void;
351
+ /**
352
+ * The chip toggles a view the host shows elsewhere (a canvas tab): `true`
353
+ * while that view is in front. Sets `aria-pressed` and the pressed face.
354
+ * Omitted: the chip is a plain popover trigger, no pressed state.
355
+ */
356
+ pressed?: boolean | undefined;
351
357
  className?: string;
352
358
  }
353
359
  /**
@@ -355,7 +361,7 @@ interface ContextRulesChipProps {
355
361
  * "N · chars" summary, page master switch, reset-all, full view) over the
356
362
  * compact rules table. Popover on desktop, bottom sheet on mobile.
357
363
  */
358
- declare function ContextRulesChip({ label, rows, cap, on, onToggleAll, hierarchy, onSetInclude, onChange, onResetAll, onOpenFullView, mismatchCount, modelReadsContext, mismatches, onOpenRow, isMobile, readOnly, open: openProp, onOpenChange, className, }: ContextRulesChipProps): react.JSX.Element;
364
+ declare function ContextRulesChip({ label, rows, cap, on, onToggleAll, hierarchy, onSetInclude, onChange, onResetAll, onOpenFullView, mismatchCount, modelReadsContext, mismatches, onOpenRow, isMobile, readOnly, open: openProp, onOpenChange, pressed, className, }: ContextRulesChipProps): react.JSX.Element;
359
365
 
360
366
  interface ContextRulesPanelBodyProps {
361
367
  rows: readonly ResolvedContextRow[];
@@ -348,6 +348,12 @@ interface ContextRulesChipProps {
348
348
  readOnly?: boolean | undefined;
349
349
  open?: boolean;
350
350
  onOpenChange?: (open: boolean) => void;
351
+ /**
352
+ * The chip toggles a view the host shows elsewhere (a canvas tab): `true`
353
+ * while that view is in front. Sets `aria-pressed` and the pressed face.
354
+ * Omitted: the chip is a plain popover trigger, no pressed state.
355
+ */
356
+ pressed?: boolean | undefined;
351
357
  className?: string;
352
358
  }
353
359
  /**
@@ -355,7 +361,7 @@ interface ContextRulesChipProps {
355
361
  * "N · chars" summary, page master switch, reset-all, full view) over the
356
362
  * compact rules table. Popover on desktop, bottom sheet on mobile.
357
363
  */
358
- declare function ContextRulesChip({ label, rows, cap, on, onToggleAll, hierarchy, onSetInclude, onChange, onResetAll, onOpenFullView, mismatchCount, modelReadsContext, mismatches, onOpenRow, isMobile, readOnly, open: openProp, onOpenChange, className, }: ContextRulesChipProps): react.JSX.Element;
364
+ declare function ContextRulesChip({ label, rows, cap, on, onToggleAll, hierarchy, onSetInclude, onChange, onResetAll, onOpenFullView, mismatchCount, modelReadsContext, mismatches, onOpenRow, isMobile, readOnly, open: openProp, onOpenChange, pressed, className, }: ContextRulesChipProps): react.JSX.Element;
359
365
 
360
366
  interface ContextRulesPanelBodyProps {
361
367
  rows: readonly ResolvedContextRow[];
@@ -904,6 +904,7 @@ function ContextRulesChip({
904
904
  readOnly,
905
905
  open: openProp,
906
906
  onOpenChange,
907
+ pressed,
907
908
  className
908
909
  }) {
909
910
  const [openState, setOpenState] = React3.useState(false);
@@ -930,6 +931,7 @@ function ContextRulesChip({
930
931
  title: name || void 0,
931
932
  "data-mismatch": warn ? "true" : void 0,
932
933
  "data-blind": blind ? "true" : void 0,
934
+ "aria-pressed": pressed,
933
935
  onClick: isMobile ? () => setOpen(true) : void 0,
934
936
  className: cn3(
935
937
  "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",
@@ -937,6 +939,7 @@ function ContextRulesChip({
937
939
  !eyeOpen && "text-muted-foreground",
938
940
  blind && "border-dashed",
939
941
  warn && "border-warning/60 ring-1 ring-warning",
942
+ pressed && "border-primary bg-primary/15 text-primary ring-1 ring-inset ring-primary/30 hover:bg-primary/20",
940
943
  className
941
944
  ),
942
945
  children: [