@ai-matrx/agents 0.59.214 → 0.59.216
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 -2
- package/dist/catalog/react/index.cjs +29 -31
- package/dist/catalog/react/index.js +1 -3
- package/dist/context/react/index.cjs +171 -205
- package/dist/context/react/index.js +172 -201
- package/dist/mandates/index.cjs +2 -2
- package/dist/mandates/index.d.cts +4 -4
- package/dist/mandates/index.d.ts +4 -4
- package/dist/mandates/index.js +2 -2
- package/dist/models/index.cjs +113 -14
- package/dist/models/index.d.cts +8 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +113 -14
- package/dist/models/react/index.cjs +339 -436
- package/dist/models/react/index.d.cts +8 -0
- package/dist/models/react/index.d.ts +8 -0
- package/dist/models/react/index.js +346 -432
- package/dist/settings/react/index.cjs +116 -173
- package/dist/settings/react/index.js +126 -172
- package/dist/versions/react/index.cjs +15 -68
- package/dist/versions/react/index.js +83 -121
- package/package.json +5 -5
|
@@ -147,49 +147,15 @@ function formatChars(n) {
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
// context/react/icons.tsx
|
|
150
|
-
var
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
157
|
-
viewBox: "0 0 24 24",
|
|
158
|
-
fill: "none",
|
|
159
|
-
stroke: "currentColor",
|
|
160
|
-
strokeWidth: 2,
|
|
161
|
-
strokeLinecap: "round",
|
|
162
|
-
strokeLinejoin: "round",
|
|
163
|
-
"aria-hidden": "true",
|
|
164
|
-
...props,
|
|
165
|
-
children
|
|
166
|
-
}
|
|
167
|
-
);
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
var EyeIcon = icon(
|
|
171
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
172
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0" }),
|
|
173
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "12", cy: "12", r: "3" })
|
|
174
|
-
] })
|
|
175
|
-
);
|
|
176
|
-
var RotateCcwIcon = icon(
|
|
177
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
178
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }),
|
|
179
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M3 3v5h5" })
|
|
180
|
-
] })
|
|
181
|
-
);
|
|
182
|
-
var ArrowDownToLineIcon = icon(
|
|
183
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
184
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 17V3" }),
|
|
185
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m6 11 6 6 6-6" }),
|
|
186
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M19 21H5" })
|
|
187
|
-
] })
|
|
188
|
-
);
|
|
189
|
-
var MinusIcon = icon(/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M5 12h14" }));
|
|
150
|
+
var import_icons = require("@ai-matrx/design-system/icons");
|
|
151
|
+
var sized = (Glyph) => Glyph;
|
|
152
|
+
var EyeIcon = sized(import_icons.EyeIcon);
|
|
153
|
+
var RotateCcwIcon = sized(import_icons.RotateCcwIcon);
|
|
154
|
+
var ArrowDownToLineIcon = sized(import_icons.ArrowDownToLineIcon);
|
|
155
|
+
var MinusIcon = sized(import_icons.MinusIcon);
|
|
190
156
|
|
|
191
157
|
// context/react/ContextRulesTable.tsx
|
|
192
|
-
var
|
|
158
|
+
var import_icons6 = require("@ai-matrx/design-system/icons");
|
|
193
159
|
|
|
194
160
|
// context/react/hierarchy.ts
|
|
195
161
|
var AI_MATRX_LEVEL = { id: "ai_matrx", path: ["AI Matrx"], order: 900 };
|
|
@@ -266,12 +232,12 @@ function includeChanges(rows, include, cap) {
|
|
|
266
232
|
|
|
267
233
|
// context/react/FrozenInclude.tsx
|
|
268
234
|
var import_design_system = require("@ai-matrx/design-system");
|
|
269
|
-
var
|
|
270
|
-
var
|
|
235
|
+
var import_icons3 = require("@ai-matrx/design-system/icons");
|
|
236
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
271
237
|
var FROZEN_INCLUDE_TOOLTIP = "Sent as shown";
|
|
272
238
|
function FrozenInclude({ name, checked }) {
|
|
273
|
-
return /* @__PURE__ */ (0,
|
|
274
|
-
/* @__PURE__ */ (0,
|
|
239
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design_system.TooltipProvider, { delayDuration: 300, titleTooltips: false, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_design_system.Tooltip, { children: [
|
|
240
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design_system.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
275
241
|
"span",
|
|
276
242
|
{
|
|
277
243
|
role: "img",
|
|
@@ -283,12 +249,12 @@ function FrozenInclude({ name, checked }) {
|
|
|
283
249
|
checked ? "bg-muted text-foreground" : "bg-transparent"
|
|
284
250
|
),
|
|
285
251
|
children: [
|
|
286
|
-
checked ? /* @__PURE__ */ (0,
|
|
287
|
-
/* @__PURE__ */ (0,
|
|
252
|
+
checked ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons3.CheckIcon, { className: "h-3 w-3" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MinusIcon, { className: "h-3 w-3" }),
|
|
253
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons3.LockIcon, { className: "h-2.5 w-2.5 opacity-70" })
|
|
288
254
|
]
|
|
289
255
|
}
|
|
290
256
|
) }),
|
|
291
|
-
/* @__PURE__ */ (0,
|
|
257
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_design_system.TooltipContent, { children: FROZEN_INCLUDE_TOOLTIP })
|
|
292
258
|
] }) });
|
|
293
259
|
}
|
|
294
260
|
|
|
@@ -373,7 +339,7 @@ function onRequestReason(row) {
|
|
|
373
339
|
}
|
|
374
340
|
|
|
375
341
|
// context/react/InlineMaxInput.tsx
|
|
376
|
-
var
|
|
342
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
377
343
|
function InlineMaxInput({
|
|
378
344
|
value,
|
|
379
345
|
inherited,
|
|
@@ -407,16 +373,16 @@ function InlineMaxInput({
|
|
|
407
373
|
if (next !== value) onCommit(next);
|
|
408
374
|
};
|
|
409
375
|
const overridden = value !== null;
|
|
410
|
-
return /* @__PURE__ */ (0,
|
|
411
|
-
/* @__PURE__ */ (0,
|
|
376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: (0, import_design_system2.cn)("flex items-center justify-end", comfortable ? "gap-0.5" : "gap-1"), children: [
|
|
377
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
412
378
|
"span",
|
|
413
379
|
{
|
|
414
380
|
"aria-hidden": "true",
|
|
415
381
|
className: (0, import_design_system2.cn)("h-1.5 w-1.5 shrink-0 rounded-full", overridden ? "bg-primary" : "bg-transparent")
|
|
416
382
|
}
|
|
417
383
|
),
|
|
418
|
-
/* @__PURE__ */ (0,
|
|
419
|
-
/* @__PURE__ */ (0,
|
|
384
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_design_system2.Tooltip, { open: notice, children: [
|
|
385
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_design_system2.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
420
386
|
import_design_system2.Input,
|
|
421
387
|
{
|
|
422
388
|
type: "text",
|
|
@@ -452,10 +418,10 @@ function InlineMaxInput({
|
|
|
452
418
|
)
|
|
453
419
|
}
|
|
454
420
|
) }),
|
|
455
|
-
/* @__PURE__ */ (0,
|
|
421
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_design_system2.TooltipContent, { children: `Limit is ${cap}` })
|
|
456
422
|
] }),
|
|
457
|
-
overridden && !disabled ? /* @__PURE__ */ (0,
|
|
458
|
-
/* @__PURE__ */ (0,
|
|
423
|
+
overridden && !disabled ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_design_system2.Tooltip, { children: [
|
|
424
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_design_system2.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
459
425
|
"button",
|
|
460
426
|
{
|
|
461
427
|
type: "button",
|
|
@@ -465,11 +431,11 @@ function InlineMaxInput({
|
|
|
465
431
|
"inline-flex shrink-0 items-center justify-center rounded text-muted-foreground hover:bg-accent hover:text-foreground",
|
|
466
432
|
comfortable ? "h-8 w-7" : "h-5 w-5"
|
|
467
433
|
),
|
|
468
|
-
children: /* @__PURE__ */ (0,
|
|
434
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RotateCcwIcon, { className: "h-3 w-3" })
|
|
469
435
|
}
|
|
470
436
|
) }),
|
|
471
|
-
/* @__PURE__ */ (0,
|
|
472
|
-
] }) : /* @__PURE__ */ (0,
|
|
437
|
+
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_design_system2.TooltipContent, { children: `Reset to ${formatLimit(inherited)}` })
|
|
438
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { "aria-hidden": "true", className: (0, import_design_system2.cn)("shrink-0", comfortable ? "w-7" : "w-5") })
|
|
473
439
|
] });
|
|
474
440
|
}
|
|
475
441
|
|
|
@@ -490,7 +456,7 @@ function summarizeContextRows(rows) {
|
|
|
490
456
|
}
|
|
491
457
|
|
|
492
458
|
// context/react/ContextRulesTable.tsx
|
|
493
|
-
var
|
|
459
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
494
460
|
var CONTEXT_RULES_GRID = {
|
|
495
461
|
compact: "grid grid-cols-[minmax(0,1fr)_2.75rem_4rem_6.5rem] items-center gap-x-2 px-2",
|
|
496
462
|
comfortable: "grid grid-cols-[minmax(0,1fr)_2.75rem_3.5rem_6.75rem] items-center gap-x-1.5 px-3"
|
|
@@ -556,7 +522,7 @@ function ContextRulesTable({
|
|
|
556
522
|
const changes = bulkChanges(list, next);
|
|
557
523
|
if (changes.length > 0) onSetInclude(changes);
|
|
558
524
|
} : void 0;
|
|
559
|
-
const renderRow = (row, depth) => /* @__PURE__ */ (0,
|
|
525
|
+
const renderRow = (row, depth) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
560
526
|
ContextRuleRow,
|
|
561
527
|
{
|
|
562
528
|
row,
|
|
@@ -575,11 +541,11 @@ function ContextRulesTable({
|
|
|
575
541
|
},
|
|
576
542
|
rowId(row)
|
|
577
543
|
);
|
|
578
|
-
const heading = (props) => /* @__PURE__ */ (0,
|
|
544
|
+
const heading = (props) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Heading, { ...props, grid, narrow, comfortable, readOnly }, props.id);
|
|
579
545
|
const renderLevel = (level, depth) => {
|
|
580
546
|
const all = levelRows(level);
|
|
581
547
|
const name = level.ref.path[level.ref.path.length - 1] ?? "";
|
|
582
|
-
return /* @__PURE__ */ (0,
|
|
548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { role: "rowgroup", "aria-label": headed ? level.ref.path.join(" \u203A ") : void 0, "data-level": level.ref.id, children: [
|
|
583
549
|
headed ? heading({
|
|
584
550
|
id: `h:${level.ref.id}`,
|
|
585
551
|
kind: "level",
|
|
@@ -590,7 +556,7 @@ function ContextRulesTable({
|
|
|
590
556
|
...levelSwitch(level, bulk(all))
|
|
591
557
|
}) : null,
|
|
592
558
|
level.rows.map((row) => renderRow(row, depth + 1)),
|
|
593
|
-
level.groups.map((group) => /* @__PURE__ */ (0,
|
|
559
|
+
level.groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { role: "rowgroup", "aria-label": group.ref.label, "data-group": group.ref.id, children: [
|
|
594
560
|
heading({
|
|
595
561
|
id: `h:${group.ref.id}`,
|
|
596
562
|
kind: "group",
|
|
@@ -605,7 +571,7 @@ function ContextRulesTable({
|
|
|
605
571
|
] }, group.ref.id))
|
|
606
572
|
] }, level.ref.id);
|
|
607
573
|
};
|
|
608
|
-
return /* @__PURE__ */ (0,
|
|
574
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system3.TooltipProvider, { delayDuration: 300, titleTooltips: false, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
609
575
|
"div",
|
|
610
576
|
{
|
|
611
577
|
ref: rootRef,
|
|
@@ -615,20 +581,20 @@ function ContextRulesTable({
|
|
|
615
581
|
"data-layout": narrow ? "narrow" : "wide",
|
|
616
582
|
className: (0, import_design_system3.cn)("text-xs", className),
|
|
617
583
|
children: [
|
|
618
|
-
narrow ? null : /* @__PURE__ */ (0,
|
|
584
|
+
narrow ? null : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
619
585
|
"div",
|
|
620
586
|
{
|
|
621
587
|
role: "row",
|
|
622
588
|
className: (0, import_design_system3.cn)(grid, "sticky top-0 z-10 h-7 border-b border-border bg-card font-medium text-muted-foreground"),
|
|
623
589
|
children: [
|
|
624
|
-
/* @__PURE__ */ (0,
|
|
625
|
-
/* @__PURE__ */ (0,
|
|
626
|
-
/* @__PURE__ */ (0,
|
|
627
|
-
/* @__PURE__ */ (0,
|
|
590
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { role: "columnheader", children: "Item" }),
|
|
591
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { role: "columnheader", className: "text-center", children: "Include" }),
|
|
592
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { role: "columnheader", className: "text-right", children: "Chars" }),
|
|
593
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { role: "columnheader", className: "pr-6 text-right", children: "Inline max" })
|
|
628
594
|
]
|
|
629
595
|
}
|
|
630
596
|
),
|
|
631
|
-
levels.length === 0 ? /* @__PURE__ */ (0,
|
|
597
|
+
levels.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "px-2 py-3 text-center text-muted-foreground", children: "None" }) : sectionsOf(levels).map((section) => {
|
|
632
598
|
if (section.label === null || !headed) return renderLevel(section.levels[0], 0);
|
|
633
599
|
const all = section.levels.flatMap(levelRows);
|
|
634
600
|
const several = section.levels.length > 1;
|
|
@@ -640,7 +606,7 @@ function ContextRulesTable({
|
|
|
640
606
|
}
|
|
641
607
|
if (changes.length > 0) onSetInclude?.(changes);
|
|
642
608
|
} : void 0;
|
|
643
|
-
return /* @__PURE__ */ (0,
|
|
609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { role: "rowgroup", "aria-label": section.label, "data-section": section.label, children: [
|
|
644
610
|
heading({
|
|
645
611
|
id: `h:${section.id}`,
|
|
646
612
|
kind: "section",
|
|
@@ -681,7 +647,7 @@ function Heading({
|
|
|
681
647
|
const total = rows.length;
|
|
682
648
|
const showSwitch = !noSwitch && (Boolean(onToggle) || readOnly && total > 0);
|
|
683
649
|
const countLabel = total > 0 ? count === total ? String(total) : `${count}/${total}` : null;
|
|
684
|
-
const toggle = showSwitch ? readOnly ? /* @__PURE__ */ (0,
|
|
650
|
+
const toggle = showSwitch ? readOnly ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(FrozenInclude, { name: switchName, checked }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
685
651
|
import_design_system3.Switch,
|
|
686
652
|
{
|
|
687
653
|
size: "sm",
|
|
@@ -691,7 +657,7 @@ function Heading({
|
|
|
691
657
|
onCheckedChange: (next) => onToggle?.(next)
|
|
692
658
|
}
|
|
693
659
|
) : null;
|
|
694
|
-
return /* @__PURE__ */ (0,
|
|
660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
695
661
|
"div",
|
|
696
662
|
{
|
|
697
663
|
role: "row",
|
|
@@ -703,13 +669,13 @@ function Heading({
|
|
|
703
669
|
kind === "group" ? "bg-muted/25 text-muted-foreground" : "bg-muted/60 text-foreground"
|
|
704
670
|
),
|
|
705
671
|
children: [
|
|
706
|
-
/* @__PURE__ */ (0,
|
|
707
|
-
/* @__PURE__ */ (0,
|
|
708
|
-
countLabel ? /* @__PURE__ */ (0,
|
|
672
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { role: "cell", className: (0, import_design_system3.cn)("flex min-w-0 items-baseline gap-1.5", indent(depth)), children: [
|
|
673
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "min-w-0 whitespace-normal break-words", title: label, children: label }),
|
|
674
|
+
countLabel ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "shrink-0 font-normal tabular-nums text-muted-foreground", children: countLabel }) : null
|
|
709
675
|
] }),
|
|
710
|
-
/* @__PURE__ */ (0,
|
|
711
|
-
/* @__PURE__ */ (0,
|
|
712
|
-
/* @__PURE__ */ (0,
|
|
676
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: (0, import_design_system3.cn)("flex justify-center", narrow && "order-last"), children: toggle }),
|
|
677
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", className: "text-right font-normal tabular-nums text-muted-foreground", children: total > 0 ? charsLabel : null }),
|
|
678
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell" })
|
|
713
679
|
]
|
|
714
680
|
}
|
|
715
681
|
);
|
|
@@ -731,7 +697,7 @@ function ContextRuleRow({
|
|
|
731
697
|
}) {
|
|
732
698
|
const selfChecked = row.blockedBy === "self_check" || mismatches.some((m) => m.reason === "self_check");
|
|
733
699
|
const decided = selfChecked ? SELF_CHECK_TOOLTIP : row.serverResolved ? SERVER_RESOLVED_TOOLTIP : `Include: ${LAYER_LABEL[row.decided_by.include]} \xB7 Limit: ${LAYER_LABEL[row.decided_by.max_inline_chars]}`;
|
|
734
|
-
const labelNode = onOpenRow ? /* @__PURE__ */ (0,
|
|
700
|
+
const labelNode = onOpenRow ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
735
701
|
"button",
|
|
736
702
|
{
|
|
737
703
|
type: "button",
|
|
@@ -739,8 +705,8 @@ function ContextRuleRow({
|
|
|
739
705
|
className: "block min-w-0 flex-1 truncate text-left hover:underline focus-visible:underline focus-visible:outline-none",
|
|
740
706
|
children: row.label
|
|
741
707
|
}
|
|
742
|
-
) : /* @__PURE__ */ (0,
|
|
743
|
-
return /* @__PURE__ */ (0,
|
|
708
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "block min-w-0 flex-1 truncate", children: row.label });
|
|
709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
744
710
|
"div",
|
|
745
711
|
{
|
|
746
712
|
role: "row",
|
|
@@ -757,7 +723,7 @@ function ContextRuleRow({
|
|
|
757
723
|
selected && "bg-accent"
|
|
758
724
|
),
|
|
759
725
|
children: [
|
|
760
|
-
/* @__PURE__ */ (0,
|
|
726
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
761
727
|
"div",
|
|
762
728
|
{
|
|
763
729
|
role: "cell",
|
|
@@ -767,31 +733,31 @@ function ContextRuleRow({
|
|
|
767
733
|
!row.include && "opacity-50"
|
|
768
734
|
),
|
|
769
735
|
children: [
|
|
770
|
-
mismatches.length > 0 ? /* @__PURE__ */ (0,
|
|
771
|
-
/* @__PURE__ */ (0,
|
|
736
|
+
mismatches.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_design_system3.Tooltip, { children: [
|
|
737
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system3.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
772
738
|
"span",
|
|
773
739
|
{
|
|
774
740
|
role: "img",
|
|
775
741
|
"aria-label": "Mismatch",
|
|
776
742
|
className: "inline-flex shrink-0 text-warning",
|
|
777
|
-
children: /* @__PURE__ */ (0,
|
|
743
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons6.AlertTriangleIcon, { className: "h-3.5 w-3.5" })
|
|
778
744
|
}
|
|
779
745
|
) }),
|
|
780
|
-
/* @__PURE__ */ (0,
|
|
746
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system3.TooltipContent, { children: describeMismatches(mismatches) })
|
|
781
747
|
] }) : null,
|
|
782
|
-
lead ? /* @__PURE__ */ (0,
|
|
783
|
-
/* @__PURE__ */ (0,
|
|
784
|
-
/* @__PURE__ */ (0,
|
|
785
|
-
/* @__PURE__ */ (0,
|
|
786
|
-
/* @__PURE__ */ (0,
|
|
787
|
-
/* @__PURE__ */ (0,
|
|
748
|
+
lead ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "inline-flex shrink-0 items-center", children: lead }) : null,
|
|
749
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_design_system3.Tooltip, { children: [
|
|
750
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system3.TooltipTrigger, { asChild: true, children: labelNode }),
|
|
751
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_design_system3.TooltipContent, { children: [
|
|
752
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: row.label }),
|
|
753
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "font-normal text-muted-foreground", children: decided })
|
|
788
754
|
] })
|
|
789
755
|
] }),
|
|
790
|
-
trail ? /* @__PURE__ */ (0,
|
|
756
|
+
trail ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "min-w-0 max-w-[45%] shrink truncate text-muted-foreground", children: trail }) : null
|
|
791
757
|
]
|
|
792
758
|
}
|
|
793
759
|
),
|
|
794
|
-
/* @__PURE__ */ (0,
|
|
760
|
+
/* @__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 }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
795
761
|
import_design_system3.Switch,
|
|
796
762
|
{
|
|
797
763
|
size: "sm",
|
|
@@ -800,21 +766,21 @@ function ContextRuleRow({
|
|
|
800
766
|
onCheckedChange: (next) => onChange(row.key, row.surfaceKey, withInclude(row, next))
|
|
801
767
|
}
|
|
802
768
|
) }),
|
|
803
|
-
/* @__PURE__ */ (0,
|
|
769
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
804
770
|
"div",
|
|
805
771
|
{
|
|
806
772
|
role: "cell",
|
|
807
773
|
className: (0, import_design_system3.cn)("flex items-center justify-end gap-1 tabular-nums", !row.include && "opacity-50"),
|
|
808
774
|
children: [
|
|
809
|
-
row.include && row.delivery === "on_request" ? /* @__PURE__ */ (0,
|
|
810
|
-
/* @__PURE__ */ (0,
|
|
811
|
-
/* @__PURE__ */ (0,
|
|
775
|
+
row.include && row.delivery === "on_request" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_design_system3.Tooltip, { children: [
|
|
776
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system3.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { role: "img", "aria-label": "On request", className: "inline-flex text-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ArrowDownToLineIcon, { className: "h-3 w-3" }) }) }),
|
|
777
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system3.TooltipContent, { children: onRequestReason(row) })
|
|
812
778
|
] }) : null,
|
|
813
|
-
/* @__PURE__ */ (0,
|
|
779
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: formatChars(row.chars) })
|
|
814
780
|
]
|
|
815
781
|
}
|
|
816
782
|
),
|
|
817
|
-
/* @__PURE__ */ (0,
|
|
783
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { role: "cell", children: narrow ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(InlineMaxButton, { row, cap, readOnly, comfortable, onChange }) : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
818
784
|
InlineMaxInput,
|
|
819
785
|
{
|
|
820
786
|
label: row.label,
|
|
@@ -841,8 +807,8 @@ function InlineMaxButton({
|
|
|
841
807
|
const [open, setOpen] = React2.useState(false);
|
|
842
808
|
const own = row.userRule?.max_inline_chars ?? null;
|
|
843
809
|
const text = own !== null ? formatLimit(own) : limitPlaceholder(row, cap);
|
|
844
|
-
return /* @__PURE__ */ (0,
|
|
845
|
-
/* @__PURE__ */ (0,
|
|
810
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_design_system3.Popover, { open, onOpenChange: setOpen, children: [
|
|
811
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system3.PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
846
812
|
"button",
|
|
847
813
|
{
|
|
848
814
|
type: "button",
|
|
@@ -854,14 +820,14 @@ function InlineMaxButton({
|
|
|
854
820
|
own === null ? "text-muted-foreground" : "text-foreground"
|
|
855
821
|
),
|
|
856
822
|
children: [
|
|
857
|
-
own !== null ? /* @__PURE__ */ (0,
|
|
823
|
+
own !== null ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { "aria-hidden": true, className: "h-1 w-1 rounded-full bg-primary" }) : null,
|
|
858
824
|
text
|
|
859
825
|
]
|
|
860
826
|
}
|
|
861
827
|
) }),
|
|
862
|
-
/* @__PURE__ */ (0,
|
|
863
|
-
/* @__PURE__ */ (0,
|
|
864
|
-
/* @__PURE__ */ (0,
|
|
828
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_design_system3.PopoverContent, { align: "end", className: "w-auto p-2", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex items-center gap-2 text-xs", children: [
|
|
829
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-muted-foreground", children: "Inline max" }),
|
|
830
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
865
831
|
InlineMaxInput,
|
|
866
832
|
{
|
|
867
833
|
label: row.label,
|
|
@@ -882,8 +848,8 @@ function InlineMaxButton({
|
|
|
882
848
|
var React3 = __toESM(require("react"), 1);
|
|
883
849
|
var import_controls = require("@ai-matrx/design-system/controls");
|
|
884
850
|
var import_design_system4 = require("@ai-matrx/design-system");
|
|
885
|
-
var
|
|
886
|
-
var
|
|
851
|
+
var import_icons8 = require("@ai-matrx/design-system/icons");
|
|
852
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
887
853
|
var BLIND_TOOLTIP = "This model can't read these values";
|
|
888
854
|
var BLIND_LABEL = "Not read";
|
|
889
855
|
function IconButton({
|
|
@@ -892,8 +858,8 @@ function IconButton({
|
|
|
892
858
|
comfortable,
|
|
893
859
|
children
|
|
894
860
|
}) {
|
|
895
|
-
return /* @__PURE__ */ (0,
|
|
896
|
-
/* @__PURE__ */ (0,
|
|
861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_design_system4.Tooltip, { children: [
|
|
862
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_design_system4.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
897
863
|
"button",
|
|
898
864
|
{
|
|
899
865
|
type: "button",
|
|
@@ -906,7 +872,7 @@ function IconButton({
|
|
|
906
872
|
children
|
|
907
873
|
}
|
|
908
874
|
) }),
|
|
909
|
-
/* @__PURE__ */ (0,
|
|
875
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_design_system4.TooltipContent, { children: label })
|
|
910
876
|
] });
|
|
911
877
|
}
|
|
912
878
|
function ContextRulesChip({
|
|
@@ -949,7 +915,7 @@ function ContextRulesChip({
|
|
|
949
915
|
const canMaster = !readOnly && on !== void 0 && onToggleAll !== void 0;
|
|
950
916
|
const setEverything = (next) => onToggleAll?.(next);
|
|
951
917
|
const eyeOpen = !blind && on !== false;
|
|
952
|
-
const faceButton = /* @__PURE__ */ (0,
|
|
918
|
+
const faceButton = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
953
919
|
import_controls.Button,
|
|
954
920
|
{
|
|
955
921
|
variant,
|
|
@@ -958,19 +924,19 @@ function ContextRulesChip({
|
|
|
958
924
|
...warn ? { "data-mismatch": "true" } : {},
|
|
959
925
|
...blind ? { "data-blind": "true" } : {},
|
|
960
926
|
...pressed !== void 0 ? { pressed } : {},
|
|
961
|
-
...warn ? { tone: "warning", glyphTone: "warning", iconEnd: /* @__PURE__ */ (0,
|
|
962
|
-
icon: eyeOpen ? /* @__PURE__ */ (0,
|
|
927
|
+
...warn ? { tone: "warning", glyphTone: "warning", iconEnd: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons8.AlertTriangleIcon, {}) } : {},
|
|
928
|
+
icon: eyeOpen ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(EyeIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons8.EyeOffIcon, {}),
|
|
963
929
|
...isMobile ? { onClick: () => setOpen(true) } : {},
|
|
964
930
|
className: (0, import_design_system4.cn)("min-w-0", className),
|
|
965
931
|
children: `${name ? `${name} \xB7 ` : ""}${count}${warn ? ` \xB7 ${mismatchCount}` : ""}`
|
|
966
932
|
}
|
|
967
933
|
);
|
|
968
934
|
const faceTip = blind ? BLIND_TOOLTIP : name ? null : faceName;
|
|
969
|
-
const withBlindTip = (trigger) => faceTip ? /* @__PURE__ */ (0,
|
|
970
|
-
/* @__PURE__ */ (0,
|
|
971
|
-
/* @__PURE__ */ (0,
|
|
935
|
+
const withBlindTip = (trigger) => faceTip ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_design_system4.Tooltip, { children: [
|
|
936
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_design_system4.TooltipTrigger, { asChild: true, children: trigger }),
|
|
937
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_design_system4.TooltipContent, { children: faceTip })
|
|
972
938
|
] }) : trigger;
|
|
973
|
-
const body = /* @__PURE__ */ (0,
|
|
939
|
+
const body = /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
974
940
|
"div",
|
|
975
941
|
{
|
|
976
942
|
className: "flex min-h-0 flex-col",
|
|
@@ -978,7 +944,7 @@ function ContextRulesChip({
|
|
|
978
944
|
if (event.key === "Escape" && event.currentTarget.contains(event.target)) setOpen(false);
|
|
979
945
|
},
|
|
980
946
|
children: [
|
|
981
|
-
/* @__PURE__ */ (0,
|
|
947
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
982
948
|
"div",
|
|
983
949
|
{
|
|
984
950
|
className: (0, import_design_system4.cn)(
|
|
@@ -986,12 +952,12 @@ function ContextRulesChip({
|
|
|
986
952
|
comfortable ? "h-12" : "h-10"
|
|
987
953
|
),
|
|
988
954
|
children: [
|
|
989
|
-
eyeOpen ? /* @__PURE__ */ (0,
|
|
990
|
-
headerName ? /* @__PURE__ */ (0,
|
|
991
|
-
/* @__PURE__ */ (0,
|
|
992
|
-
/* @__PURE__ */ (0,
|
|
993
|
-
blind ? /* @__PURE__ */ (0,
|
|
994
|
-
canMaster ? /* @__PURE__ */ (0,
|
|
955
|
+
eyeOpen ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(EyeIcon, { className: "h-4 w-4 shrink-0 text-muted-foreground" }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons8.EyeOffIcon, { className: "h-4 w-4 shrink-0 text-muted-foreground" }),
|
|
956
|
+
headerName ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "min-w-0 truncate text-sm font-medium", children: headerName }) : null,
|
|
957
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "shrink-0 text-xs tabular-nums text-muted-foreground", children: `${count} \xB7 ${charsLabel} chars` }),
|
|
958
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "ml-auto flex shrink-0 items-center gap-0.5", children: [
|
|
959
|
+
blind ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "mr-1 text-xs text-muted-foreground", children: BLIND_LABEL }) : null,
|
|
960
|
+
canMaster ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
995
961
|
import_design_system4.Switch,
|
|
996
962
|
{
|
|
997
963
|
size: "sm",
|
|
@@ -1001,8 +967,8 @@ function ContextRulesChip({
|
|
|
1001
967
|
className: "mr-1"
|
|
1002
968
|
}
|
|
1003
969
|
) : null,
|
|
1004
|
-
anyOverride && !readOnly ? /* @__PURE__ */ (0,
|
|
1005
|
-
/* @__PURE__ */ (0,
|
|
970
|
+
anyOverride && !readOnly ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(IconButton, { label: "Reset all", onClick: onResetAll, comfortable, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RotateCcwIcon, { className: "h-3.5 w-3.5" }) }) : null,
|
|
971
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1006
972
|
IconButton,
|
|
1007
973
|
{
|
|
1008
974
|
label: "Open full view",
|
|
@@ -1011,14 +977,14 @@ function ContextRulesChip({
|
|
|
1011
977
|
setOpen(false);
|
|
1012
978
|
onOpenFullView();
|
|
1013
979
|
},
|
|
1014
|
-
children: /* @__PURE__ */ (0,
|
|
980
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons8.PanelRightIcon, { className: "h-3.5 w-3.5" })
|
|
1015
981
|
}
|
|
1016
982
|
)
|
|
1017
983
|
] })
|
|
1018
984
|
]
|
|
1019
985
|
}
|
|
1020
986
|
),
|
|
1021
|
-
/* @__PURE__ */ (0,
|
|
987
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: (0, import_design_system4.cn)("min-h-0 overflow-y-auto", comfortable ? "max-h-[70dvh]" : "max-h-[min(24rem,60vh)]"), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1022
988
|
ContextRulesTable,
|
|
1023
989
|
{
|
|
1024
990
|
rows,
|
|
@@ -1036,14 +1002,14 @@ function ContextRulesChip({
|
|
|
1036
1002
|
}
|
|
1037
1003
|
);
|
|
1038
1004
|
if (isMobile) {
|
|
1039
|
-
return /* @__PURE__ */ (0,
|
|
1005
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_design_system4.TooltipProvider, { delayDuration: 300, titleTooltips: false, children: [
|
|
1040
1006
|
withBlindTip(faceButton),
|
|
1041
|
-
/* @__PURE__ */ (0,
|
|
1007
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_design_system4.BottomSheet, { open, onOpenChange: setOpen, title: name || faceName, surface: "solid", children: body })
|
|
1042
1008
|
] });
|
|
1043
1009
|
}
|
|
1044
|
-
return /* @__PURE__ */ (0,
|
|
1045
|
-
withBlindTip(/* @__PURE__ */ (0,
|
|
1046
|
-
/* @__PURE__ */ (0,
|
|
1010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_design_system4.TooltipProvider, { delayDuration: 300, titleTooltips: false, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_design_system4.Popover, { open, onOpenChange: setOpen, children: [
|
|
1011
|
+
withBlindTip(/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_design_system4.PopoverTrigger, { asChild: true, children: faceButton })),
|
|
1012
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1047
1013
|
import_design_system4.PopoverContent,
|
|
1048
1014
|
{
|
|
1049
1015
|
align: "end",
|
|
@@ -1057,12 +1023,12 @@ function ContextRulesChip({
|
|
|
1057
1023
|
// context/react/ContextRulesPanelBody.tsx
|
|
1058
1024
|
var React5 = __toESM(require("react"), 1);
|
|
1059
1025
|
var import_design_system7 = require("@ai-matrx/design-system");
|
|
1060
|
-
var
|
|
1026
|
+
var import_icons9 = require("@ai-matrx/design-system/icons");
|
|
1061
1027
|
|
|
1062
1028
|
// context/react/ContextDeliveredValue.tsx
|
|
1063
1029
|
var React4 = __toESM(require("react"), 1);
|
|
1064
1030
|
var import_design_system5 = require("@ai-matrx/design-system");
|
|
1065
|
-
var
|
|
1031
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1066
1032
|
function ContextDeliveredValue({
|
|
1067
1033
|
row,
|
|
1068
1034
|
load,
|
|
@@ -1070,10 +1036,10 @@ function ContextDeliveredValue({
|
|
|
1070
1036
|
}) {
|
|
1071
1037
|
const blocks = row.deliveredBlocks ?? [];
|
|
1072
1038
|
if (!row.delivered && !row.onRequest && blocks.length === 0) {
|
|
1073
|
-
return isServerAuthoritativeKey(row.key) ? /* @__PURE__ */ (0,
|
|
1039
|
+
return isServerAuthoritativeKey(row.key) ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { "data-testid": "context-server-fills", className: (0, import_design_system5.cn)("text-xs text-muted-foreground", className), children: "Filled in by the server" }) : null;
|
|
1074
1040
|
}
|
|
1075
|
-
return /* @__PURE__ */ (0,
|
|
1076
|
-
row.delivered ? /* @__PURE__ */ (0,
|
|
1041
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_design_system5.cn)("flex flex-col gap-3", className), children: [
|
|
1042
|
+
row.delivered ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1077
1043
|
DeliveredSection,
|
|
1078
1044
|
{
|
|
1079
1045
|
title: "Agent received",
|
|
@@ -1082,7 +1048,7 @@ function ContextDeliveredValue({
|
|
|
1082
1048
|
load
|
|
1083
1049
|
}
|
|
1084
1050
|
) : null,
|
|
1085
|
-
blocks.map((block) => /* @__PURE__ */ (0,
|
|
1051
|
+
blocks.map((block) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1086
1052
|
DeliveredSection,
|
|
1087
1053
|
{
|
|
1088
1054
|
title: block.label,
|
|
@@ -1095,7 +1061,7 @@ function ContextDeliveredValue({
|
|
|
1095
1061
|
row.onRequest || row.delivery === "on_request" && row.delivered ? (
|
|
1096
1062
|
// A lazy value (a document, a file family …) carries no ref: the turn never reads
|
|
1097
1063
|
// it. It is fetched — and sized — when opened.
|
|
1098
|
-
/* @__PURE__ */ (0,
|
|
1064
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1099
1065
|
DeliveredSection,
|
|
1100
1066
|
{
|
|
1101
1067
|
title: "Returned on request",
|
|
@@ -1105,7 +1071,7 @@ function ContextDeliveredValue({
|
|
|
1105
1071
|
}
|
|
1106
1072
|
)
|
|
1107
1073
|
) : null,
|
|
1108
|
-
row.delivered && CONTEXT_FETCHABLE_ROWS[row.key] ? /* @__PURE__ */ (0,
|
|
1074
|
+
row.delivered && CONTEXT_FETCHABLE_ROWS[row.key] ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1109
1075
|
DeliveredSection,
|
|
1110
1076
|
{
|
|
1111
1077
|
title: "Agent can fetch",
|
|
@@ -1152,18 +1118,18 @@ function DeliveredSection({
|
|
|
1152
1118
|
};
|
|
1153
1119
|
}, [load, kind, key, attempt]);
|
|
1154
1120
|
const unavailable = loaded.state === "done" && !loaded.available;
|
|
1155
|
-
return /* @__PURE__ */ (0,
|
|
1156
|
-
/* @__PURE__ */ (0,
|
|
1157
|
-
/* @__PURE__ */ (0,
|
|
1158
|
-
unavailable ? /* @__PURE__ */ (0,
|
|
1121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("section", { className: "flex flex-col gap-1", "aria-label": title, "data-view-kind": kind, "data-view-key": key, children: [
|
|
1122
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-baseline gap-2 text-xs", children: [
|
|
1123
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "font-medium", children: title }),
|
|
1124
|
+
unavailable ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1159
1125
|
"span",
|
|
1160
1126
|
{
|
|
1161
1127
|
"data-testid": "context-delivered-unavailable",
|
|
1162
1128
|
className: "rounded border border-border px-1.5 text-[11px] text-muted-foreground",
|
|
1163
1129
|
children: "Not available to this agent"
|
|
1164
1130
|
}
|
|
1165
|
-
) : ref_ || loaded.state === "done" ? /* @__PURE__ */ (0,
|
|
1166
|
-
loaded.state === "done" && loaded.fetched === false ? /* @__PURE__ */ (0,
|
|
1131
|
+
) : ref_ || loaded.state === "done" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "tabular-nums text-muted-foreground", children: `${formatChars(ref_ ? ref_.chars : loaded.state === "done" ? loaded.chars : 0)} chars` }) : null,
|
|
1132
|
+
loaded.state === "done" && loaded.fetched === false ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1167
1133
|
"span",
|
|
1168
1134
|
{
|
|
1169
1135
|
"data-testid": "context-delivered-not-read",
|
|
@@ -1172,9 +1138,9 @@ function DeliveredSection({
|
|
|
1172
1138
|
}
|
|
1173
1139
|
) : null
|
|
1174
1140
|
] }),
|
|
1175
|
-
unavailable ? null : !load ? /* @__PURE__ */ (0,
|
|
1176
|
-
/* @__PURE__ */ (0,
|
|
1177
|
-
/* @__PURE__ */ (0,
|
|
1141
|
+
unavailable ? null : !load ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "text-xs text-muted-foreground", children: "\u2014" }) : loaded.state === "loading" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_design_system5.Skeleton, { "data-testid": "context-delivered-loading", className: "h-16 w-full" }) : loaded.state === "error" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_design_system5.ErrorBox, { as: "div", message: loaded.message, className: "flex items-center gap-2 text-xs text-destructive", children: [
|
|
1142
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "min-w-0 truncate", title: loaded.message, children: loaded.message }),
|
|
1143
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1178
1144
|
"button",
|
|
1179
1145
|
{
|
|
1180
1146
|
type: "button",
|
|
@@ -1183,7 +1149,7 @@ function DeliveredSection({
|
|
|
1183
1149
|
children: "Retry"
|
|
1184
1150
|
}
|
|
1185
1151
|
)
|
|
1186
|
-
] }) : loaded.text === "" ? /* @__PURE__ */ (0,
|
|
1152
|
+
] }) : loaded.text === "" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { "data-testid": "context-delivered-empty", className: "text-xs text-muted-foreground", children: "None" }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1187
1153
|
"pre",
|
|
1188
1154
|
{
|
|
1189
1155
|
"data-testid": "context-delivered-text",
|
|
@@ -1200,7 +1166,7 @@ function DeliveredSection({
|
|
|
1200
1166
|
|
|
1201
1167
|
// context/react/ContextReceiptBlocks.tsx
|
|
1202
1168
|
var import_design_system6 = require("@ai-matrx/design-system");
|
|
1203
|
-
var
|
|
1169
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
1204
1170
|
function ContextReceiptBlocks({
|
|
1205
1171
|
blocks,
|
|
1206
1172
|
selectedId,
|
|
@@ -1210,16 +1176,16 @@ function ContextReceiptBlocks({
|
|
|
1210
1176
|
}) {
|
|
1211
1177
|
if (blocks.length === 0) return null;
|
|
1212
1178
|
const comfortable = density === "comfortable";
|
|
1213
|
-
return /* @__PURE__ */ (0,
|
|
1214
|
-
/* @__PURE__ */ (0,
|
|
1179
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { role: "table", "aria-label": "Also sent", className: (0, import_design_system6.cn)("text-xs", className), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { role: "rowgroup", children: [
|
|
1180
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1215
1181
|
"div",
|
|
1216
1182
|
{
|
|
1217
1183
|
role: "row",
|
|
1218
1184
|
className: "flex h-6 items-center bg-muted/40 px-2 font-medium text-muted-foreground",
|
|
1219
|
-
children: /* @__PURE__ */ (0,
|
|
1185
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { role: "cell", children: "Also sent" })
|
|
1220
1186
|
}
|
|
1221
1187
|
),
|
|
1222
|
-
blocks.map((block) => /* @__PURE__ */ (0,
|
|
1188
|
+
blocks.map((block) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
1223
1189
|
"div",
|
|
1224
1190
|
{
|
|
1225
1191
|
role: "row",
|
|
@@ -1232,7 +1198,7 @@ function ContextReceiptBlocks({
|
|
|
1232
1198
|
selectedId === block.id && "bg-accent"
|
|
1233
1199
|
),
|
|
1234
1200
|
children: [
|
|
1235
|
-
/* @__PURE__ */ (0,
|
|
1201
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { role: "cell", className: "col-span-2 flex min-w-0 items-center", children: onOpenBlock ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1236
1202
|
"button",
|
|
1237
1203
|
{
|
|
1238
1204
|
type: "button",
|
|
@@ -1241,9 +1207,9 @@ function ContextReceiptBlocks({
|
|
|
1241
1207
|
className: "block min-w-0 flex-1 truncate text-left hover:underline focus-visible:underline focus-visible:outline-none",
|
|
1242
1208
|
children: block.label
|
|
1243
1209
|
}
|
|
1244
|
-
) : /* @__PURE__ */ (0,
|
|
1245
|
-
/* @__PURE__ */ (0,
|
|
1246
|
-
/* @__PURE__ */ (0,
|
|
1210
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { title: block.label, className: "block min-w-0 flex-1 truncate", children: block.label }) }),
|
|
1211
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { role: "cell", className: "text-right tabular-nums", children: formatChars(block.delivered.chars) }),
|
|
1212
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { role: "cell" })
|
|
1247
1213
|
]
|
|
1248
1214
|
},
|
|
1249
1215
|
block.id
|
|
@@ -1255,12 +1221,12 @@ function ContextReceiptBlockDetail({
|
|
|
1255
1221
|
load,
|
|
1256
1222
|
className
|
|
1257
1223
|
}) {
|
|
1258
|
-
return /* @__PURE__ */ (0,
|
|
1259
|
-
/* @__PURE__ */ (0,
|
|
1260
|
-
/* @__PURE__ */ (0,
|
|
1261
|
-
/* @__PURE__ */ (0,
|
|
1224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_design_system6.cn)("flex flex-col gap-3 p-3", className), children: [
|
|
1225
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
1226
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("h3", { className: "min-w-0 truncate text-sm font-medium", children: block.label }),
|
|
1227
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "shrink-0 text-xs tabular-nums text-muted-foreground", children: `${formatChars(block.delivered.chars)} chars \xB7 ${DELIVERY_LABEL.inline}` })
|
|
1262
1228
|
] }),
|
|
1263
|
-
/* @__PURE__ */ (0,
|
|
1229
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1264
1230
|
DeliveredSection,
|
|
1265
1231
|
{
|
|
1266
1232
|
title: "Agent received",
|
|
@@ -1273,7 +1239,7 @@ function ContextReceiptBlockDetail({
|
|
|
1273
1239
|
}
|
|
1274
1240
|
|
|
1275
1241
|
// context/react/ContextRulesPanelBody.tsx
|
|
1276
|
-
var
|
|
1242
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
1277
1243
|
function layerCells(row) {
|
|
1278
1244
|
const { surface, agent, default_max } = row.layers ?? {};
|
|
1279
1245
|
const declared = agent?.declared === true;
|
|
@@ -1296,7 +1262,7 @@ function layerCells(row) {
|
|
|
1296
1262
|
var LAYERS = ["default", "page", "agent", "you"];
|
|
1297
1263
|
function LayerTable({ row }) {
|
|
1298
1264
|
const cells = layerCells(row);
|
|
1299
|
-
const cell = (text, winning) => /* @__PURE__ */ (0,
|
|
1265
|
+
const cell = (text, winning) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1300
1266
|
"span",
|
|
1301
1267
|
{
|
|
1302
1268
|
role: "cell",
|
|
@@ -1308,26 +1274,26 @@ function LayerTable({ row }) {
|
|
|
1308
1274
|
children: text
|
|
1309
1275
|
}
|
|
1310
1276
|
);
|
|
1311
|
-
return /* @__PURE__ */ (0,
|
|
1312
|
-
/* @__PURE__ */ (0,
|
|
1277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { role: "table", "aria-label": "Layers", className: "text-xs", children: [
|
|
1278
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1313
1279
|
"div",
|
|
1314
1280
|
{
|
|
1315
1281
|
role: "row",
|
|
1316
1282
|
className: "grid h-7 grid-cols-[1fr_5rem_5rem] items-center gap-x-2 border-b border-border font-medium text-muted-foreground",
|
|
1317
1283
|
children: [
|
|
1318
|
-
/* @__PURE__ */ (0,
|
|
1319
|
-
/* @__PURE__ */ (0,
|
|
1320
|
-
/* @__PURE__ */ (0,
|
|
1284
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { role: "columnheader", children: "Layer" }),
|
|
1285
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { role: "columnheader", className: "text-right", children: "Include" }),
|
|
1286
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { role: "columnheader", className: "text-right", children: "Inline max" })
|
|
1321
1287
|
]
|
|
1322
1288
|
}
|
|
1323
1289
|
),
|
|
1324
|
-
LAYERS.map((layer) => /* @__PURE__ */ (0,
|
|
1290
|
+
LAYERS.map((layer) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1325
1291
|
"div",
|
|
1326
1292
|
{
|
|
1327
1293
|
role: "row",
|
|
1328
1294
|
className: "grid h-7 grid-cols-[1fr_5rem_5rem] items-center gap-x-2 border-b border-border/50",
|
|
1329
1295
|
children: [
|
|
1330
|
-
/* @__PURE__ */ (0,
|
|
1296
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { role: "cell", children: LAYER_LABEL[layer] }),
|
|
1331
1297
|
cell(cells[layer].include, row.decided_by.include === layer),
|
|
1332
1298
|
cell(cells[layer].limit, row.decided_by.max_inline_chars === layer)
|
|
1333
1299
|
]
|
|
@@ -1346,18 +1312,18 @@ function RowDetail({
|
|
|
1346
1312
|
comfortable,
|
|
1347
1313
|
loadView
|
|
1348
1314
|
}) {
|
|
1349
|
-
return /* @__PURE__ */ (0,
|
|
1350
|
-
/* @__PURE__ */ (0,
|
|
1351
|
-
/* @__PURE__ */ (0,
|
|
1352
|
-
/* @__PURE__ */ (0,
|
|
1315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-3 p-3", children: [
|
|
1316
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex min-w-0 items-baseline gap-2", children: [
|
|
1317
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h3", { className: "min-w-0 truncate text-sm font-medium", children: row.label }),
|
|
1318
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "shrink-0 text-xs tabular-nums text-muted-foreground", children: `${formatChars(row.chars)} chars \xB7 ${DELIVERY_LABEL[row.delivery]}` })
|
|
1353
1319
|
] }),
|
|
1354
|
-
mismatches.length > 0 ? /* @__PURE__ */ (0,
|
|
1355
|
-
/* @__PURE__ */ (0,
|
|
1356
|
-
/* @__PURE__ */ (0,
|
|
1320
|
+
mismatches.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-start gap-1.5 rounded-md border border-warning/40 bg-warning/10 px-2 py-1.5 text-xs text-warning", children: [
|
|
1321
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons9.AlertTriangleIcon, { className: "mt-0.5 h-3.5 w-3.5 shrink-0" }),
|
|
1322
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { children: describeMismatches(mismatches) })
|
|
1357
1323
|
] }) : null,
|
|
1358
|
-
/* @__PURE__ */ (0,
|
|
1359
|
-
/* @__PURE__ */ (0,
|
|
1360
|
-
/* @__PURE__ */ (0,
|
|
1324
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "grid grid-cols-[auto_1fr] items-center gap-x-4 gap-y-2 text-xs", children: [
|
|
1325
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-muted-foreground", children: "Include" }),
|
|
1326
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: (0, import_design_system7.cn)("flex items-center", comfortable ? "h-11" : "h-7"), children: readOnly ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(FrozenInclude, { name: row.label, checked: row.include }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1361
1327
|
import_design_system7.Switch,
|
|
1362
1328
|
{
|
|
1363
1329
|
size: "sm",
|
|
@@ -1366,8 +1332,8 @@ function RowDetail({
|
|
|
1366
1332
|
onCheckedChange: (next) => onChange(row.key, row.surfaceKey, withInclude(row, next))
|
|
1367
1333
|
}
|
|
1368
1334
|
) }),
|
|
1369
|
-
/* @__PURE__ */ (0,
|
|
1370
|
-
/* @__PURE__ */ (0,
|
|
1335
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "text-muted-foreground", children: "Inline max" }),
|
|
1336
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1371
1337
|
InlineMaxInput,
|
|
1372
1338
|
{
|
|
1373
1339
|
label: row.label,
|
|
@@ -1381,8 +1347,8 @@ function RowDetail({
|
|
|
1381
1347
|
}
|
|
1382
1348
|
) })
|
|
1383
1349
|
] }),
|
|
1384
|
-
/* @__PURE__ */ (0,
|
|
1385
|
-
/* @__PURE__ */ (0,
|
|
1350
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(LayerTable, { row }),
|
|
1351
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ContextDeliveredValue, { row, load: loadView }),
|
|
1386
1352
|
renderDetail ? renderDetail(row) : null
|
|
1387
1353
|
] });
|
|
1388
1354
|
}
|
|
@@ -1425,9 +1391,9 @@ function ContextRulesPanelBody({
|
|
|
1425
1391
|
const openedBlock = openBlockId ? (blocks ?? []).find((b) => b.id === openBlockId) ?? null : null;
|
|
1426
1392
|
const selected = !openedBlock && selectedKey ? rows.find((r) => r.key === selectedKey) ?? null : null;
|
|
1427
1393
|
const comfortable = !!isMobile;
|
|
1428
|
-
const search = /* @__PURE__ */ (0,
|
|
1429
|
-
/* @__PURE__ */ (0,
|
|
1430
|
-
/* @__PURE__ */ (0,
|
|
1394
|
+
const search = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "relative shrink-0 border-b border-border p-2", children: [
|
|
1395
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons9.SearchIcon, { className: "pointer-events-none absolute left-4 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground" }),
|
|
1396
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1431
1397
|
import_design_system7.Input,
|
|
1432
1398
|
{
|
|
1433
1399
|
type: "search",
|
|
@@ -1439,8 +1405,8 @@ function ContextRulesPanelBody({
|
|
|
1439
1405
|
}
|
|
1440
1406
|
)
|
|
1441
1407
|
] });
|
|
1442
|
-
const table = /* @__PURE__ */ (0,
|
|
1443
|
-
/* @__PURE__ */ (0,
|
|
1408
|
+
const table = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "min-h-0 flex-1 overflow-y-auto", children: [
|
|
1409
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1444
1410
|
ContextRulesTable,
|
|
1445
1411
|
{
|
|
1446
1412
|
rows: visible,
|
|
@@ -1455,7 +1421,7 @@ function ContextRulesPanelBody({
|
|
|
1455
1421
|
...mismatches ? { mismatches } : {}
|
|
1456
1422
|
}
|
|
1457
1423
|
),
|
|
1458
|
-
/* @__PURE__ */ (0,
|
|
1424
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1459
1425
|
ContextReceiptBlocks,
|
|
1460
1426
|
{
|
|
1461
1427
|
blocks: visibleBlocks,
|
|
@@ -1465,7 +1431,7 @@ function ContextRulesPanelBody({
|
|
|
1465
1431
|
}
|
|
1466
1432
|
)
|
|
1467
1433
|
] });
|
|
1468
|
-
const detail = openedBlock ? /* @__PURE__ */ (0,
|
|
1434
|
+
const detail = openedBlock ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ContextReceiptBlockDetail, { block: openedBlock, load: loadView }) : selected ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1469
1435
|
RowDetail,
|
|
1470
1436
|
{
|
|
1471
1437
|
row: selected,
|
|
@@ -1479,8 +1445,8 @@ function ContextRulesPanelBody({
|
|
|
1479
1445
|
}
|
|
1480
1446
|
) : null;
|
|
1481
1447
|
const sideBySide = !isMobile;
|
|
1482
|
-
return /* @__PURE__ */ (0,
|
|
1483
|
-
/* @__PURE__ */ (0,
|
|
1448
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_design_system7.TooltipProvider, { delayDuration: 300, titleTooltips: false, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { "data-slot": "context-rules-panel", className: (0, import_design_system7.cn)("@container flex h-full min-h-0 min-w-0", className), children: [
|
|
1449
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1484
1450
|
"aside",
|
|
1485
1451
|
{
|
|
1486
1452
|
"data-slot": "context-rules-list",
|
|
@@ -1494,8 +1460,8 @@ function ContextRulesPanelBody({
|
|
|
1494
1460
|
]
|
|
1495
1461
|
}
|
|
1496
1462
|
),
|
|
1497
|
-
detail ? /* @__PURE__ */ (0,
|
|
1498
|
-
/* @__PURE__ */ (0,
|
|
1463
|
+
detail ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("section", { "data-slot": "context-rules-detail", className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
|
|
1464
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1499
1465
|
"div",
|
|
1500
1466
|
{
|
|
1501
1467
|
className: (0, import_design_system7.cn)(
|
|
@@ -1503,7 +1469,7 @@ function ContextRulesPanelBody({
|
|
|
1503
1469
|
comfortable ? "h-12" : "h-8",
|
|
1504
1470
|
sideBySide && "@min-[40rem]:hidden"
|
|
1505
1471
|
),
|
|
1506
|
-
children: /* @__PURE__ */ (0,
|
|
1472
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
|
|
1507
1473
|
"button",
|
|
1508
1474
|
{
|
|
1509
1475
|
type: "button",
|
|
@@ -1513,14 +1479,14 @@ function ContextRulesPanelBody({
|
|
|
1513
1479
|
comfortable ? "h-11 text-sm" : "h-7 text-xs"
|
|
1514
1480
|
),
|
|
1515
1481
|
children: [
|
|
1516
|
-
/* @__PURE__ */ (0,
|
|
1482
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons9.ChevronLeftIcon, { className: comfortable ? "h-4 w-4" : "h-3.5 w-3.5" }),
|
|
1517
1483
|
"Back"
|
|
1518
1484
|
]
|
|
1519
1485
|
}
|
|
1520
1486
|
)
|
|
1521
1487
|
}
|
|
1522
1488
|
),
|
|
1523
|
-
/* @__PURE__ */ (0,
|
|
1489
|
+
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "min-h-0 flex-1 overflow-y-auto", children: detail })
|
|
1524
1490
|
] }) : null
|
|
1525
1491
|
] }) });
|
|
1526
1492
|
}
|