@ai-matrx/agents 0.59.143 → 0.59.145
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 +11 -1
- package/dist/catalog/react/index.cjs +215 -218
- package/dist/catalog/react/index.js +208 -211
- package/dist/context/react/index.cjs +16 -45
- package/dist/context/react/index.js +9 -38
- package/dist/generated/provision-offers.cjs +2 -0
- package/dist/generated/provision-offers.d.cts +70 -1
- package/dist/generated/provision-offers.d.ts +70 -1
- package/dist/generated/provision-offers.js +2 -0
- 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/react/index.cjs +10 -28
- package/dist/models/react/index.js +3 -21
- package/package.json +4 -4
|
@@ -983,6 +983,183 @@ import { useCallback as useCallback5, useEffect as useEffect5, useMemo as useMem
|
|
|
983
983
|
|
|
984
984
|
// catalog/react/primitives.tsx
|
|
985
985
|
import { cn } from "@ai-matrx/design-system";
|
|
986
|
+
import { CheckIcon, SearchIcon, XIcon } from "@ai-matrx/design-system/icons";
|
|
987
|
+
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
988
|
+
var SearchInput = ({
|
|
989
|
+
ref,
|
|
990
|
+
value,
|
|
991
|
+
onChange,
|
|
992
|
+
placeholder
|
|
993
|
+
}) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5 h-7 px-2 rounded-md bg-muted/40 border border-border/50", children: [
|
|
994
|
+
/* @__PURE__ */ jsx3(SearchIcon, { className: "w-3 h-3 text-muted-foreground shrink-0" }),
|
|
995
|
+
/* @__PURE__ */ jsx3(
|
|
996
|
+
"input",
|
|
997
|
+
{
|
|
998
|
+
ref,
|
|
999
|
+
type: "text",
|
|
1000
|
+
value,
|
|
1001
|
+
onChange: (e) => onChange(e.target.value),
|
|
1002
|
+
placeholder,
|
|
1003
|
+
className: "flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/50 outline-none min-w-0",
|
|
1004
|
+
style: { fontSize: "16px" }
|
|
1005
|
+
}
|
|
1006
|
+
),
|
|
1007
|
+
value && /* @__PURE__ */ jsx3(
|
|
1008
|
+
"button",
|
|
1009
|
+
{
|
|
1010
|
+
type: "button",
|
|
1011
|
+
onClick: () => onChange(""),
|
|
1012
|
+
className: "text-muted-foreground hover:text-foreground",
|
|
1013
|
+
"aria-label": "Clear search",
|
|
1014
|
+
children: /* @__PURE__ */ jsx3(XIcon, { className: "w-3 h-3" })
|
|
1015
|
+
}
|
|
1016
|
+
)
|
|
1017
|
+
] });
|
|
1018
|
+
function FilterChip({
|
|
1019
|
+
icon: Icon,
|
|
1020
|
+
label,
|
|
1021
|
+
active,
|
|
1022
|
+
focused,
|
|
1023
|
+
onClick,
|
|
1024
|
+
ariaLabel,
|
|
1025
|
+
testId
|
|
1026
|
+
}) {
|
|
1027
|
+
return /* @__PURE__ */ jsxs(
|
|
1028
|
+
"button",
|
|
1029
|
+
{
|
|
1030
|
+
type: "button",
|
|
1031
|
+
onClick,
|
|
1032
|
+
...ariaLabel ? { "aria-label": ariaLabel } : {},
|
|
1033
|
+
...testId ? { "data-testid": testId } : {},
|
|
1034
|
+
className: cn(
|
|
1035
|
+
"inline-flex items-center gap-1 h-6 px-1.5 rounded text-[11px] font-medium shrink-0 transition-colors",
|
|
1036
|
+
focused ? "bg-primary/15 text-primary border border-primary/30 ring-1 ring-primary/20" : active ? "bg-primary/10 text-primary border border-primary/20" : "text-muted-foreground hover:text-foreground hover:bg-muted/50 border border-transparent"
|
|
1037
|
+
),
|
|
1038
|
+
children: [
|
|
1039
|
+
/* @__PURE__ */ jsx3(Icon, { className: "w-3 h-3" }),
|
|
1040
|
+
/* @__PURE__ */ jsx3("span", { children: label })
|
|
1041
|
+
]
|
|
1042
|
+
}
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
function OptionRow({
|
|
1046
|
+
label,
|
|
1047
|
+
selected,
|
|
1048
|
+
onClick
|
|
1049
|
+
}) {
|
|
1050
|
+
return /* @__PURE__ */ jsxs(
|
|
1051
|
+
"button",
|
|
1052
|
+
{
|
|
1053
|
+
type: "button",
|
|
1054
|
+
onClick,
|
|
1055
|
+
className: cn(
|
|
1056
|
+
"flex items-center w-full px-3 py-2 text-xs transition-colors",
|
|
1057
|
+
"hover:bg-muted/50 active:bg-muted/70",
|
|
1058
|
+
selected && "text-primary font-medium"
|
|
1059
|
+
),
|
|
1060
|
+
children: [
|
|
1061
|
+
/* @__PURE__ */ jsx3("span", { className: "flex-1 text-left", children: label }),
|
|
1062
|
+
selected && /* @__PURE__ */ jsx3(CheckIcon, { className: "w-3.5 h-3.5 text-primary shrink-0" })
|
|
1063
|
+
]
|
|
1064
|
+
}
|
|
1065
|
+
);
|
|
1066
|
+
}
|
|
1067
|
+
function CheckRow({
|
|
1068
|
+
label,
|
|
1069
|
+
checked,
|
|
1070
|
+
onClick
|
|
1071
|
+
}) {
|
|
1072
|
+
return /* @__PURE__ */ jsxs(
|
|
1073
|
+
"button",
|
|
1074
|
+
{
|
|
1075
|
+
type: "button",
|
|
1076
|
+
onClick,
|
|
1077
|
+
className: "flex items-center gap-2 w-full px-3 py-1.5 text-xs hover:bg-muted/50 active:bg-muted/70 transition-colors",
|
|
1078
|
+
children: [
|
|
1079
|
+
/* @__PURE__ */ jsx3(
|
|
1080
|
+
"div",
|
|
1081
|
+
{
|
|
1082
|
+
className: cn(
|
|
1083
|
+
"w-3.5 h-3.5 rounded-sm border flex items-center justify-center shrink-0 transition-colors",
|
|
1084
|
+
checked ? "bg-primary border-primary" : "border-muted-foreground/30"
|
|
1085
|
+
),
|
|
1086
|
+
children: checked && /* @__PURE__ */ jsx3(CheckIcon, { className: "w-2.5 h-2.5 text-primary-foreground" })
|
|
1087
|
+
}
|
|
1088
|
+
),
|
|
1089
|
+
/* @__PURE__ */ jsx3("span", { className: "flex-1 text-left truncate", children: label })
|
|
1090
|
+
]
|
|
1091
|
+
}
|
|
1092
|
+
);
|
|
1093
|
+
}
|
|
1094
|
+
function SidePanelHeader({
|
|
1095
|
+
title,
|
|
1096
|
+
onClose
|
|
1097
|
+
}) {
|
|
1098
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-3 py-2 border-b border-border shrink-0", children: [
|
|
1099
|
+
/* @__PURE__ */ jsx3("span", { className: "text-xs font-semibold text-foreground", children: title }),
|
|
1100
|
+
/* @__PURE__ */ jsx3(
|
|
1101
|
+
"button",
|
|
1102
|
+
{
|
|
1103
|
+
type: "button",
|
|
1104
|
+
onClick: onClose,
|
|
1105
|
+
className: "w-5 h-5 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors",
|
|
1106
|
+
"aria-label": "Close",
|
|
1107
|
+
children: /* @__PURE__ */ jsx3(XIcon, { className: "w-3.5 h-3.5" })
|
|
1108
|
+
}
|
|
1109
|
+
)
|
|
1110
|
+
] });
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
// catalog/react/AgentCategoriesPanel.tsx
|
|
1114
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1115
|
+
function AgentCategoriesPanel({
|
|
1116
|
+
consumer,
|
|
1117
|
+
allCategories,
|
|
1118
|
+
search,
|
|
1119
|
+
setSearch,
|
|
1120
|
+
onClose
|
|
1121
|
+
}) {
|
|
1122
|
+
const filtered = allCategories.filter(
|
|
1123
|
+
(c) => !search || c.toLowerCase().includes(search.toLowerCase())
|
|
1124
|
+
);
|
|
1125
|
+
return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col h-full", children: [
|
|
1126
|
+
/* @__PURE__ */ jsx4(SidePanelHeader, { title: "Categories", onClose }),
|
|
1127
|
+
/* @__PURE__ */ jsx4("div", { className: "px-2 pt-2 pb-1 shrink-0", children: /* @__PURE__ */ jsx4(
|
|
1128
|
+
SearchInput,
|
|
1129
|
+
{
|
|
1130
|
+
value: search,
|
|
1131
|
+
onChange: setSearch,
|
|
1132
|
+
placeholder: "Filter categories..."
|
|
1133
|
+
}
|
|
1134
|
+
) }),
|
|
1135
|
+
consumer.includedCats.length > 0 && /* @__PURE__ */ jsxs2(
|
|
1136
|
+
"button",
|
|
1137
|
+
{
|
|
1138
|
+
type: "button",
|
|
1139
|
+
onClick: () => consumer.setIncludedCats([]),
|
|
1140
|
+
className: "mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0",
|
|
1141
|
+
children: [
|
|
1142
|
+
"Clear (",
|
|
1143
|
+
consumer.includedCats.length,
|
|
1144
|
+
")"
|
|
1145
|
+
]
|
|
1146
|
+
}
|
|
1147
|
+
),
|
|
1148
|
+
/* @__PURE__ */ jsx4("div", { className: "overflow-y-auto flex-1", children: filtered.length === 0 ? /* @__PURE__ */ jsx4("p", { className: "text-xs text-muted-foreground text-center py-6", children: "No categories" }) : filtered.map((cat) => /* @__PURE__ */ jsx4(
|
|
1149
|
+
CheckRow,
|
|
1150
|
+
{
|
|
1151
|
+
label: cat,
|
|
1152
|
+
checked: consumer.includedCats.includes(cat),
|
|
1153
|
+
onClick: () => consumer.toggleCategory(cat)
|
|
1154
|
+
},
|
|
1155
|
+
cat
|
|
1156
|
+
)) })
|
|
1157
|
+
] });
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
// catalog/react/AgentDetailCard.tsx
|
|
1161
|
+
import { useCallback as useCallback4 } from "react";
|
|
1162
|
+
import { Peek, PeekEntityRendererProvider } from "@ai-matrx/design-system";
|
|
986
1163
|
|
|
987
1164
|
// catalog/shared/icon-paths.ts
|
|
988
1165
|
var SHAPES = {
|
|
@@ -1093,9 +1270,9 @@ var ICON_PATHS = SHAPES;
|
|
|
1093
1270
|
var ICON_NAMES = Object.keys(ICON_PATHS);
|
|
1094
1271
|
|
|
1095
1272
|
// catalog/react/icons.tsx
|
|
1096
|
-
import { Fragment, jsx as
|
|
1273
|
+
import { Fragment, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1097
1274
|
function Svg({ children, ...props }) {
|
|
1098
|
-
return /* @__PURE__ */
|
|
1275
|
+
return /* @__PURE__ */ jsx5(
|
|
1099
1276
|
"svg",
|
|
1100
1277
|
{
|
|
1101
1278
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1113,8 +1290,8 @@ function Svg({ children, ...props }) {
|
|
|
1113
1290
|
}
|
|
1114
1291
|
function Shape({ name, filled }) {
|
|
1115
1292
|
const shape = ICON_PATHS[name];
|
|
1116
|
-
return /* @__PURE__ */
|
|
1117
|
-
shape.paths.map((d, index) => /* @__PURE__ */
|
|
1293
|
+
return /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
1294
|
+
shape.paths.map((d, index) => /* @__PURE__ */ jsx5(
|
|
1118
1295
|
"path",
|
|
1119
1296
|
{
|
|
1120
1297
|
d,
|
|
@@ -1122,7 +1299,7 @@ function Shape({ name, filled }) {
|
|
|
1122
1299
|
},
|
|
1123
1300
|
`p${index}`
|
|
1124
1301
|
)),
|
|
1125
|
-
(shape.circles ?? []).map((circle, index) => /* @__PURE__ */
|
|
1302
|
+
(shape.circles ?? []).map((circle, index) => /* @__PURE__ */ jsx5(
|
|
1126
1303
|
"circle",
|
|
1127
1304
|
{
|
|
1128
1305
|
cx: circle.cx,
|
|
@@ -1136,222 +1313,32 @@ function Shape({ name, filled }) {
|
|
|
1136
1313
|
}
|
|
1137
1314
|
function makeIcon(name) {
|
|
1138
1315
|
return function Icon(props) {
|
|
1139
|
-
return /* @__PURE__ */
|
|
1316
|
+
return /* @__PURE__ */ jsx5(Svg, { ...props, children: /* @__PURE__ */ jsx5(Shape, { name, filled: false }) });
|
|
1140
1317
|
};
|
|
1141
1318
|
}
|
|
1142
|
-
function StarIcon({
|
|
1143
|
-
filled = false,
|
|
1144
|
-
...props
|
|
1145
|
-
}) {
|
|
1146
|
-
return /* @__PURE__ */ jsx3(Svg, { ...props, fill: filled ? "currentColor" : "none", children: /* @__PURE__ */ jsx3(Shape, { name: "star", filled }) });
|
|
1147
|
-
}
|
|
1148
|
-
var ChevronRightIcon = makeIcon("chevronRight");
|
|
1149
|
-
var ChevronDownIcon = makeIcon("chevronDown");
|
|
1150
|
-
var SearchIcon = makeIcon("search");
|
|
1151
|
-
var XIcon = makeIcon("x");
|
|
1152
|
-
var CheckIcon = makeIcon("check");
|
|
1153
1319
|
var ArrowUpDownIcon = makeIcon("arrowUpDown");
|
|
1154
1320
|
var FolderIcon = makeIcon("folder");
|
|
1155
1321
|
var TagIcon = makeIcon("tag");
|
|
1156
1322
|
var RotateCcwIcon = makeIcon("rotateCcw");
|
|
1157
|
-
var ArchiveIcon = makeIcon("archive");
|
|
1158
1323
|
var LoaderIcon = makeIcon("loader");
|
|
1159
1324
|
var UsersIcon = makeIcon("users");
|
|
1160
|
-
var ClockIcon = makeIcon("clock");
|
|
1161
|
-
var GlobeIcon = makeIcon("globe");
|
|
1162
|
-
var ExternalLinkIcon = makeIcon("externalLink");
|
|
1163
1325
|
var MessageCircleIcon = makeIcon("messageCircle");
|
|
1164
1326
|
var RocketIcon = makeIcon("rocket");
|
|
1165
1327
|
var CircleCheckIcon = makeIcon("circleCheck");
|
|
1166
1328
|
var AlertTriangleIcon = makeIcon("alertTriangle");
|
|
1167
1329
|
var Music4Icon = makeIcon("music4");
|
|
1168
1330
|
function MousePointerClickIcon(props) {
|
|
1169
|
-
return /* @__PURE__ */
|
|
1170
|
-
/* @__PURE__ */
|
|
1171
|
-
/* @__PURE__ */
|
|
1172
|
-
/* @__PURE__ */
|
|
1173
|
-
/* @__PURE__ */
|
|
1174
|
-
/* @__PURE__ */
|
|
1175
|
-
] });
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
// catalog/react/primitives.tsx
|
|
1179
|
-
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1180
|
-
var SearchInput = ({
|
|
1181
|
-
ref,
|
|
1182
|
-
value,
|
|
1183
|
-
onChange,
|
|
1184
|
-
placeholder
|
|
1185
|
-
}) => /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-1.5 h-7 px-2 rounded-md bg-muted/40 border border-border/50", children: [
|
|
1186
|
-
/* @__PURE__ */ jsx4(SearchIcon, { className: "w-3 h-3 text-muted-foreground shrink-0" }),
|
|
1187
|
-
/* @__PURE__ */ jsx4(
|
|
1188
|
-
"input",
|
|
1189
|
-
{
|
|
1190
|
-
ref,
|
|
1191
|
-
type: "text",
|
|
1192
|
-
value,
|
|
1193
|
-
onChange: (e) => onChange(e.target.value),
|
|
1194
|
-
placeholder,
|
|
1195
|
-
className: "flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/50 outline-none min-w-0",
|
|
1196
|
-
style: { fontSize: "16px" }
|
|
1197
|
-
}
|
|
1198
|
-
),
|
|
1199
|
-
value && /* @__PURE__ */ jsx4(
|
|
1200
|
-
"button",
|
|
1201
|
-
{
|
|
1202
|
-
type: "button",
|
|
1203
|
-
onClick: () => onChange(""),
|
|
1204
|
-
className: "text-muted-foreground hover:text-foreground",
|
|
1205
|
-
"aria-label": "Clear search",
|
|
1206
|
-
children: /* @__PURE__ */ jsx4(XIcon, { className: "w-3 h-3" })
|
|
1207
|
-
}
|
|
1208
|
-
)
|
|
1209
|
-
] });
|
|
1210
|
-
function FilterChip({
|
|
1211
|
-
icon: Icon,
|
|
1212
|
-
label,
|
|
1213
|
-
active,
|
|
1214
|
-
focused,
|
|
1215
|
-
onClick,
|
|
1216
|
-
ariaLabel,
|
|
1217
|
-
testId
|
|
1218
|
-
}) {
|
|
1219
|
-
return /* @__PURE__ */ jsxs2(
|
|
1220
|
-
"button",
|
|
1221
|
-
{
|
|
1222
|
-
type: "button",
|
|
1223
|
-
onClick,
|
|
1224
|
-
...ariaLabel ? { "aria-label": ariaLabel } : {},
|
|
1225
|
-
...testId ? { "data-testid": testId } : {},
|
|
1226
|
-
className: cn(
|
|
1227
|
-
"inline-flex items-center gap-1 h-6 px-1.5 rounded text-[11px] font-medium shrink-0 transition-colors",
|
|
1228
|
-
focused ? "bg-primary/15 text-primary border border-primary/30 ring-1 ring-primary/20" : active ? "bg-primary/10 text-primary border border-primary/20" : "text-muted-foreground hover:text-foreground hover:bg-muted/50 border border-transparent"
|
|
1229
|
-
),
|
|
1230
|
-
children: [
|
|
1231
|
-
/* @__PURE__ */ jsx4(Icon, { className: "w-3 h-3" }),
|
|
1232
|
-
/* @__PURE__ */ jsx4("span", { children: label })
|
|
1233
|
-
]
|
|
1234
|
-
}
|
|
1235
|
-
);
|
|
1236
|
-
}
|
|
1237
|
-
function OptionRow({
|
|
1238
|
-
label,
|
|
1239
|
-
selected,
|
|
1240
|
-
onClick
|
|
1241
|
-
}) {
|
|
1242
|
-
return /* @__PURE__ */ jsxs2(
|
|
1243
|
-
"button",
|
|
1244
|
-
{
|
|
1245
|
-
type: "button",
|
|
1246
|
-
onClick,
|
|
1247
|
-
className: cn(
|
|
1248
|
-
"flex items-center w-full px-3 py-2 text-xs transition-colors",
|
|
1249
|
-
"hover:bg-muted/50 active:bg-muted/70",
|
|
1250
|
-
selected && "text-primary font-medium"
|
|
1251
|
-
),
|
|
1252
|
-
children: [
|
|
1253
|
-
/* @__PURE__ */ jsx4("span", { className: "flex-1 text-left", children: label }),
|
|
1254
|
-
selected && /* @__PURE__ */ jsx4(CheckIcon, { className: "w-3.5 h-3.5 text-primary shrink-0" })
|
|
1255
|
-
]
|
|
1256
|
-
}
|
|
1257
|
-
);
|
|
1258
|
-
}
|
|
1259
|
-
function CheckRow({
|
|
1260
|
-
label,
|
|
1261
|
-
checked,
|
|
1262
|
-
onClick
|
|
1263
|
-
}) {
|
|
1264
|
-
return /* @__PURE__ */ jsxs2(
|
|
1265
|
-
"button",
|
|
1266
|
-
{
|
|
1267
|
-
type: "button",
|
|
1268
|
-
onClick,
|
|
1269
|
-
className: "flex items-center gap-2 w-full px-3 py-1.5 text-xs hover:bg-muted/50 active:bg-muted/70 transition-colors",
|
|
1270
|
-
children: [
|
|
1271
|
-
/* @__PURE__ */ jsx4(
|
|
1272
|
-
"div",
|
|
1273
|
-
{
|
|
1274
|
-
className: cn(
|
|
1275
|
-
"w-3.5 h-3.5 rounded-sm border flex items-center justify-center shrink-0 transition-colors",
|
|
1276
|
-
checked ? "bg-primary border-primary" : "border-muted-foreground/30"
|
|
1277
|
-
),
|
|
1278
|
-
children: checked && /* @__PURE__ */ jsx4(CheckIcon, { className: "w-2.5 h-2.5 text-primary-foreground" })
|
|
1279
|
-
}
|
|
1280
|
-
),
|
|
1281
|
-
/* @__PURE__ */ jsx4("span", { className: "flex-1 text-left truncate", children: label })
|
|
1282
|
-
]
|
|
1283
|
-
}
|
|
1284
|
-
);
|
|
1285
|
-
}
|
|
1286
|
-
function SidePanelHeader({
|
|
1287
|
-
title,
|
|
1288
|
-
onClose
|
|
1289
|
-
}) {
|
|
1290
|
-
return /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-3 py-2 border-b border-border shrink-0", children: [
|
|
1291
|
-
/* @__PURE__ */ jsx4("span", { className: "text-xs font-semibold text-foreground", children: title }),
|
|
1292
|
-
/* @__PURE__ */ jsx4(
|
|
1293
|
-
"button",
|
|
1294
|
-
{
|
|
1295
|
-
type: "button",
|
|
1296
|
-
onClick: onClose,
|
|
1297
|
-
className: "w-5 h-5 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors",
|
|
1298
|
-
"aria-label": "Close",
|
|
1299
|
-
children: /* @__PURE__ */ jsx4(XIcon, { className: "w-3.5 h-3.5" })
|
|
1300
|
-
}
|
|
1301
|
-
)
|
|
1302
|
-
] });
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
// catalog/react/AgentCategoriesPanel.tsx
|
|
1306
|
-
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1307
|
-
function AgentCategoriesPanel({
|
|
1308
|
-
consumer,
|
|
1309
|
-
allCategories,
|
|
1310
|
-
search,
|
|
1311
|
-
setSearch,
|
|
1312
|
-
onClose
|
|
1313
|
-
}) {
|
|
1314
|
-
const filtered = allCategories.filter(
|
|
1315
|
-
(c) => !search || c.toLowerCase().includes(search.toLowerCase())
|
|
1316
|
-
);
|
|
1317
|
-
return /* @__PURE__ */ jsxs3("div", { className: "flex flex-col h-full", children: [
|
|
1318
|
-
/* @__PURE__ */ jsx5(SidePanelHeader, { title: "Categories", onClose }),
|
|
1319
|
-
/* @__PURE__ */ jsx5("div", { className: "px-2 pt-2 pb-1 shrink-0", children: /* @__PURE__ */ jsx5(
|
|
1320
|
-
SearchInput,
|
|
1321
|
-
{
|
|
1322
|
-
value: search,
|
|
1323
|
-
onChange: setSearch,
|
|
1324
|
-
placeholder: "Filter categories..."
|
|
1325
|
-
}
|
|
1326
|
-
) }),
|
|
1327
|
-
consumer.includedCats.length > 0 && /* @__PURE__ */ jsxs3(
|
|
1328
|
-
"button",
|
|
1329
|
-
{
|
|
1330
|
-
type: "button",
|
|
1331
|
-
onClick: () => consumer.setIncludedCats([]),
|
|
1332
|
-
className: "mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0",
|
|
1333
|
-
children: [
|
|
1334
|
-
"Clear (",
|
|
1335
|
-
consumer.includedCats.length,
|
|
1336
|
-
")"
|
|
1337
|
-
]
|
|
1338
|
-
}
|
|
1339
|
-
),
|
|
1340
|
-
/* @__PURE__ */ jsx5("div", { className: "overflow-y-auto flex-1", children: filtered.length === 0 ? /* @__PURE__ */ jsx5("p", { className: "text-xs text-muted-foreground text-center py-6", children: "No categories" }) : filtered.map((cat) => /* @__PURE__ */ jsx5(
|
|
1341
|
-
CheckRow,
|
|
1342
|
-
{
|
|
1343
|
-
label: cat,
|
|
1344
|
-
checked: consumer.includedCats.includes(cat),
|
|
1345
|
-
onClick: () => consumer.toggleCategory(cat)
|
|
1346
|
-
},
|
|
1347
|
-
cat
|
|
1348
|
-
)) })
|
|
1331
|
+
return /* @__PURE__ */ jsxs3(Svg, { ...props, children: [
|
|
1332
|
+
/* @__PURE__ */ jsx5("path", { d: "M14 4.1 12 6" }),
|
|
1333
|
+
/* @__PURE__ */ jsx5("path", { d: "m5.1 8-2.9-.8" }),
|
|
1334
|
+
/* @__PURE__ */ jsx5("path", { d: "m6 12-1.9 2" }),
|
|
1335
|
+
/* @__PURE__ */ jsx5("path", { d: "M7.2 2.2 8 5.1" }),
|
|
1336
|
+
/* @__PURE__ */ jsx5("path", { d: "M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z" })
|
|
1349
1337
|
] });
|
|
1350
1338
|
}
|
|
1351
1339
|
|
|
1352
1340
|
// catalog/react/AgentDetailCard.tsx
|
|
1353
|
-
import {
|
|
1354
|
-
import { Peek, PeekEntityRendererProvider } from "@ai-matrx/design-system";
|
|
1341
|
+
import { ClockIcon, GlobeIcon } from "@ai-matrx/design-system/icons";
|
|
1355
1342
|
|
|
1356
1343
|
// catalog/orchestra.ts
|
|
1357
1344
|
var ORCHESTRA_MODE_LABEL = {
|
|
@@ -1474,6 +1461,9 @@ function AgentDetailCard({ agent, onSelect, duplicate, onHoldChange }) {
|
|
|
1474
1461
|
import { ErrorBox } from "@ai-matrx/design-system";
|
|
1475
1462
|
import { useEffect as useEffect4, useRef as useRef3 } from "react";
|
|
1476
1463
|
|
|
1464
|
+
// catalog/react/AgentFilterBar.tsx
|
|
1465
|
+
import { ArchiveIcon, StarIcon } from "@ai-matrx/design-system/icons";
|
|
1466
|
+
|
|
1477
1467
|
// catalog/react/types.ts
|
|
1478
1468
|
var PANEL_HEIGHT = "528px";
|
|
1479
1469
|
var LIST_MAX_HEIGHT = "min(528px, var(--radix-popper-available-height, 528px))";
|
|
@@ -1634,6 +1624,7 @@ function AgentListTabs({
|
|
|
1634
1624
|
|
|
1635
1625
|
// catalog/react/AgentRow.tsx
|
|
1636
1626
|
import { cn as cn3 } from "@ai-matrx/design-system";
|
|
1627
|
+
import { ChevronRightIcon, StarIcon as StarIcon2 } from "@ai-matrx/design-system/icons";
|
|
1637
1628
|
import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1638
1629
|
function AgentRow({
|
|
1639
1630
|
agent,
|
|
@@ -1673,7 +1664,7 @@ function AgentRow({
|
|
|
1673
1664
|
},
|
|
1674
1665
|
className: "flex items-center gap-2 flex-1 min-w-0 px-3 py-2",
|
|
1675
1666
|
children: [
|
|
1676
|
-
agent.isFavorite && /* @__PURE__ */ jsx9(
|
|
1667
|
+
agent.isFavorite && /* @__PURE__ */ jsx9(StarIcon2, { fill: "currentColor", className: "w-3 h-3 matrx-agent-star-on shrink-0" }),
|
|
1677
1668
|
/* @__PURE__ */ jsx9(
|
|
1678
1669
|
"span",
|
|
1679
1670
|
{
|
|
@@ -1736,6 +1727,7 @@ function AgentRow({
|
|
|
1736
1727
|
}
|
|
1737
1728
|
|
|
1738
1729
|
// catalog/react/AgentListContent.tsx
|
|
1730
|
+
import { XIcon as XIcon2 } from "@ai-matrx/design-system/icons";
|
|
1739
1731
|
import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1740
1732
|
function AgentListContent({
|
|
1741
1733
|
agents,
|
|
@@ -1842,7 +1834,7 @@ function AgentListContent({
|
|
|
1842
1834
|
"aria-label": "Dismiss",
|
|
1843
1835
|
onClick: () => catalog.dismissDefaultRowDrift(defaultRow.mandateKey),
|
|
1844
1836
|
className: "shrink-0 opacity-70 hover:opacity-100",
|
|
1845
|
-
children: /* @__PURE__ */ jsx10(
|
|
1837
|
+
children: /* @__PURE__ */ jsx10(XIcon2, { className: "w-3 h-3" })
|
|
1846
1838
|
}
|
|
1847
1839
|
)
|
|
1848
1840
|
]
|
|
@@ -1959,6 +1951,7 @@ function AgentListContent({
|
|
|
1959
1951
|
}
|
|
1960
1952
|
|
|
1961
1953
|
// catalog/react/AgentMobileSubView.tsx
|
|
1954
|
+
import { ChevronRightIcon as ChevronRightIcon2 } from "@ai-matrx/design-system/icons";
|
|
1962
1955
|
import { Fragment as Fragment3, jsx as jsx11, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1963
1956
|
function AgentMobileSubView({
|
|
1964
1957
|
view,
|
|
@@ -1980,7 +1973,7 @@ function AgentMobileSubView({
|
|
|
1980
1973
|
onClick: onBack,
|
|
1981
1974
|
className: "flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0",
|
|
1982
1975
|
children: [
|
|
1983
|
-
/* @__PURE__ */ jsx11(
|
|
1976
|
+
/* @__PURE__ */ jsx11(ChevronRightIcon2, { className: "w-4 h-4 rotate-180" }),
|
|
1984
1977
|
title
|
|
1985
1978
|
]
|
|
1986
1979
|
}
|
|
@@ -2133,6 +2126,7 @@ function AgentTagsPanel({
|
|
|
2133
2126
|
}
|
|
2134
2127
|
|
|
2135
2128
|
// catalog/react/AgentListPanel.tsx
|
|
2129
|
+
import { ChevronRightIcon as ChevronRightIcon3 } from "@ai-matrx/design-system/icons";
|
|
2136
2130
|
import { jsx as jsx14, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2137
2131
|
var PANEL_WIDTH = "680px";
|
|
2138
2132
|
function AgentListPanelBody({
|
|
@@ -2282,7 +2276,7 @@ function AgentListPanelBody({
|
|
|
2282
2276
|
onClick: () => setMobileDetailAgent(null),
|
|
2283
2277
|
className: "flex items-center gap-1.5 px-3 py-2.5 text-sm font-medium text-primary hover:bg-muted/30 transition-colors border-b border-border shrink-0",
|
|
2284
2278
|
children: [
|
|
2285
|
-
/* @__PURE__ */ jsx14(
|
|
2279
|
+
/* @__PURE__ */ jsx14(ChevronRightIcon3, { className: "w-4 h-4 rotate-180" }),
|
|
2286
2280
|
"Back"
|
|
2287
2281
|
]
|
|
2288
2282
|
}
|
|
@@ -2431,6 +2425,7 @@ function AgentListPanel({
|
|
|
2431
2425
|
}
|
|
2432
2426
|
|
|
2433
2427
|
// catalog/react/AgentListDropdown.tsx
|
|
2428
|
+
import { ChevronDownIcon } from "@ai-matrx/design-system/icons";
|
|
2434
2429
|
import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2435
2430
|
var CONSUMER_ID = "agent-list-dropdown";
|
|
2436
2431
|
function AgentListDropdown({
|
|
@@ -2569,6 +2564,7 @@ function AgentListDropdown({
|
|
|
2569
2564
|
// catalog/react/AgentListInlinePicker.tsx
|
|
2570
2565
|
import { cn as cn6 } from "@ai-matrx/design-system";
|
|
2571
2566
|
import { useEffect as useEffect6, useRef as useRef6, useState as useState5 } from "react";
|
|
2567
|
+
import { ChevronRightIcon as ChevronRightIcon4 } from "@ai-matrx/design-system/icons";
|
|
2572
2568
|
import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2573
2569
|
function AgentListInlinePicker({
|
|
2574
2570
|
consumerId,
|
|
@@ -2648,7 +2644,7 @@ function AgentListInlinePicker({
|
|
|
2648
2644
|
onClick: () => setMobileDetailAgent(null),
|
|
2649
2645
|
className: "flex shrink-0 items-center gap-1.5 border-b border-border px-3 py-2 text-sm font-medium text-primary transition-colors hover:bg-muted/30",
|
|
2650
2646
|
children: [
|
|
2651
|
-
/* @__PURE__ */ jsx16(
|
|
2647
|
+
/* @__PURE__ */ jsx16(ChevronRightIcon4, { className: "h-4 w-4 rotate-180" }),
|
|
2652
2648
|
"Back"
|
|
2653
2649
|
]
|
|
2654
2650
|
}
|
|
@@ -2722,6 +2718,7 @@ function AgentListInlinePicker({
|
|
|
2722
2718
|
// catalog/react/FavoriteAgentButton.tsx
|
|
2723
2719
|
import { cn as cn7 } from "@ai-matrx/design-system";
|
|
2724
2720
|
import { useCallback as useCallback6 } from "react";
|
|
2721
|
+
import { StarIcon as StarIcon3 } from "@ai-matrx/design-system/icons";
|
|
2725
2722
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
2726
2723
|
function FavoriteAgentButton({
|
|
2727
2724
|
id,
|
|
@@ -2757,9 +2754,9 @@ function FavoriteAgentButton({
|
|
|
2757
2754
|
title,
|
|
2758
2755
|
"aria-label": isFavorite2 ? "Remove from favorites" : "Add to favorites",
|
|
2759
2756
|
children: /* @__PURE__ */ jsx17(
|
|
2760
|
-
|
|
2757
|
+
StarIcon3,
|
|
2761
2758
|
{
|
|
2762
|
-
|
|
2759
|
+
fill: isFavorite2 ? "currentColor" : "none",
|
|
2763
2760
|
className: cn7(
|
|
2764
2761
|
"h-3.5 w-3.5 transition-all duration-150",
|
|
2765
2762
|
isFavorite2 ? "matrx-agent-star-on" : "text-muted-foreground/40 hover:matrx-agent-star-on"
|
|
@@ -2783,7 +2780,7 @@ function FavoriteAgentButton({
|
|
|
2783
2780
|
disabled,
|
|
2784
2781
|
title,
|
|
2785
2782
|
"aria-label": isFavorite2 ? "Remove from favorites" : "Add to favorites",
|
|
2786
|
-
children: /* @__PURE__ */ jsx17(
|
|
2783
|
+
children: /* @__PURE__ */ jsx17(StarIcon3, { fill: isFavorite2 ? "currentColor" : "none", className: "w-4 h-4 transition-all duration-150" })
|
|
2787
2784
|
}
|
|
2788
2785
|
);
|
|
2789
2786
|
}
|