@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
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.59.
|
|
3
|
+
## 0.59.145
|
|
4
4
|
|
|
5
5
|
UNVERIFIED: this release has no Unreleased entry and the source comparison could not be made (the caller supplied no source comparison). Whether source changed is unknown; consumer action is unknown.
|
|
6
6
|
Check the package's gitHead on npm against this version's gitHead: `git diff <previous gitHead> <this gitHead> -- apps/shared/matrx-agents/src`.
|
|
7
7
|
|
|
8
|
+
## 0.59.144
|
|
9
|
+
|
|
10
|
+
Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff f9a5fe9abd 95a286343b -- apps/shared/matrx-agents/src`
|
|
11
|
+
has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
|
|
12
|
+
|
|
13
|
+
## 0.59.143
|
|
14
|
+
|
|
15
|
+
Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff fc9a7aa43e f9a5fe9abd -- apps/shared/matrx-agents/src`
|
|
16
|
+
has no shipped-source changes outside tests, fixtures and docs). No consumer action required.
|
|
17
|
+
|
|
8
18
|
## 0.59.142
|
|
9
19
|
|
|
10
20
|
Automatic changed-only republish (docs/metadata drift since the last published version; verified: `git diff ec7de99183 fc9a7aa43e -- apps/shared/matrx-agents/src`
|
|
@@ -1022,6 +1022,183 @@ var import_react8 = require("react");
|
|
|
1022
1022
|
|
|
1023
1023
|
// catalog/react/primitives.tsx
|
|
1024
1024
|
var import_design_system = require("@ai-matrx/design-system");
|
|
1025
|
+
var import_icons = require("@ai-matrx/design-system/icons");
|
|
1026
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
1027
|
+
var SearchInput = ({
|
|
1028
|
+
ref,
|
|
1029
|
+
value,
|
|
1030
|
+
onChange,
|
|
1031
|
+
placeholder
|
|
1032
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex items-center gap-1.5 h-7 px-2 rounded-md bg-muted/40 border border-border/50", children: [
|
|
1033
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons.SearchIcon, { className: "w-3 h-3 text-muted-foreground shrink-0" }),
|
|
1034
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1035
|
+
"input",
|
|
1036
|
+
{
|
|
1037
|
+
ref,
|
|
1038
|
+
type: "text",
|
|
1039
|
+
value,
|
|
1040
|
+
onChange: (e) => onChange(e.target.value),
|
|
1041
|
+
placeholder,
|
|
1042
|
+
className: "flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/50 outline-none min-w-0",
|
|
1043
|
+
style: { fontSize: "16px" }
|
|
1044
|
+
}
|
|
1045
|
+
),
|
|
1046
|
+
value && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1047
|
+
"button",
|
|
1048
|
+
{
|
|
1049
|
+
type: "button",
|
|
1050
|
+
onClick: () => onChange(""),
|
|
1051
|
+
className: "text-muted-foreground hover:text-foreground",
|
|
1052
|
+
"aria-label": "Clear search",
|
|
1053
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons.XIcon, { className: "w-3 h-3" })
|
|
1054
|
+
}
|
|
1055
|
+
)
|
|
1056
|
+
] });
|
|
1057
|
+
function FilterChip({
|
|
1058
|
+
icon: Icon,
|
|
1059
|
+
label,
|
|
1060
|
+
active,
|
|
1061
|
+
focused,
|
|
1062
|
+
onClick,
|
|
1063
|
+
ariaLabel,
|
|
1064
|
+
testId
|
|
1065
|
+
}) {
|
|
1066
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1067
|
+
"button",
|
|
1068
|
+
{
|
|
1069
|
+
type: "button",
|
|
1070
|
+
onClick,
|
|
1071
|
+
...ariaLabel ? { "aria-label": ariaLabel } : {},
|
|
1072
|
+
...testId ? { "data-testid": testId } : {},
|
|
1073
|
+
className: (0, import_design_system.cn)(
|
|
1074
|
+
"inline-flex items-center gap-1 h-6 px-1.5 rounded text-[11px] font-medium shrink-0 transition-colors",
|
|
1075
|
+
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"
|
|
1076
|
+
),
|
|
1077
|
+
children: [
|
|
1078
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { className: "w-3 h-3" }),
|
|
1079
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: label })
|
|
1080
|
+
]
|
|
1081
|
+
}
|
|
1082
|
+
);
|
|
1083
|
+
}
|
|
1084
|
+
function OptionRow({
|
|
1085
|
+
label,
|
|
1086
|
+
selected,
|
|
1087
|
+
onClick
|
|
1088
|
+
}) {
|
|
1089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1090
|
+
"button",
|
|
1091
|
+
{
|
|
1092
|
+
type: "button",
|
|
1093
|
+
onClick,
|
|
1094
|
+
className: (0, import_design_system.cn)(
|
|
1095
|
+
"flex items-center w-full px-3 py-2 text-xs transition-colors",
|
|
1096
|
+
"hover:bg-muted/50 active:bg-muted/70",
|
|
1097
|
+
selected && "text-primary font-medium"
|
|
1098
|
+
),
|
|
1099
|
+
children: [
|
|
1100
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "flex-1 text-left", children: label }),
|
|
1101
|
+
selected && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons.CheckIcon, { className: "w-3.5 h-3.5 text-primary shrink-0" })
|
|
1102
|
+
]
|
|
1103
|
+
}
|
|
1104
|
+
);
|
|
1105
|
+
}
|
|
1106
|
+
function CheckRow({
|
|
1107
|
+
label,
|
|
1108
|
+
checked,
|
|
1109
|
+
onClick
|
|
1110
|
+
}) {
|
|
1111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1112
|
+
"button",
|
|
1113
|
+
{
|
|
1114
|
+
type: "button",
|
|
1115
|
+
onClick,
|
|
1116
|
+
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",
|
|
1117
|
+
children: [
|
|
1118
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1119
|
+
"div",
|
|
1120
|
+
{
|
|
1121
|
+
className: (0, import_design_system.cn)(
|
|
1122
|
+
"w-3.5 h-3.5 rounded-sm border flex items-center justify-center shrink-0 transition-colors",
|
|
1123
|
+
checked ? "bg-primary border-primary" : "border-muted-foreground/30"
|
|
1124
|
+
),
|
|
1125
|
+
children: checked && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons.CheckIcon, { className: "w-2.5 h-2.5 text-primary-foreground" })
|
|
1126
|
+
}
|
|
1127
|
+
),
|
|
1128
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "flex-1 text-left truncate", children: label })
|
|
1129
|
+
]
|
|
1130
|
+
}
|
|
1131
|
+
);
|
|
1132
|
+
}
|
|
1133
|
+
function SidePanelHeader({
|
|
1134
|
+
title,
|
|
1135
|
+
onClose
|
|
1136
|
+
}) {
|
|
1137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex items-center justify-between px-3 py-2 border-b border-border shrink-0", children: [
|
|
1138
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "text-xs font-semibold text-foreground", children: title }),
|
|
1139
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1140
|
+
"button",
|
|
1141
|
+
{
|
|
1142
|
+
type: "button",
|
|
1143
|
+
onClick: onClose,
|
|
1144
|
+
className: "w-5 h-5 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors",
|
|
1145
|
+
"aria-label": "Close",
|
|
1146
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons.XIcon, { className: "w-3.5 h-3.5" })
|
|
1147
|
+
}
|
|
1148
|
+
)
|
|
1149
|
+
] });
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
// catalog/react/AgentCategoriesPanel.tsx
|
|
1153
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1154
|
+
function AgentCategoriesPanel({
|
|
1155
|
+
consumer,
|
|
1156
|
+
allCategories,
|
|
1157
|
+
search,
|
|
1158
|
+
setSearch,
|
|
1159
|
+
onClose
|
|
1160
|
+
}) {
|
|
1161
|
+
const filtered = allCategories.filter(
|
|
1162
|
+
(c) => !search || c.toLowerCase().includes(search.toLowerCase())
|
|
1163
|
+
);
|
|
1164
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-col h-full", children: [
|
|
1165
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SidePanelHeader, { title: "Categories", onClose }),
|
|
1166
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "px-2 pt-2 pb-1 shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1167
|
+
SearchInput,
|
|
1168
|
+
{
|
|
1169
|
+
value: search,
|
|
1170
|
+
onChange: setSearch,
|
|
1171
|
+
placeholder: "Filter categories..."
|
|
1172
|
+
}
|
|
1173
|
+
) }),
|
|
1174
|
+
consumer.includedCats.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1175
|
+
"button",
|
|
1176
|
+
{
|
|
1177
|
+
type: "button",
|
|
1178
|
+
onClick: () => consumer.setIncludedCats([]),
|
|
1179
|
+
className: "mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0",
|
|
1180
|
+
children: [
|
|
1181
|
+
"Clear (",
|
|
1182
|
+
consumer.includedCats.length,
|
|
1183
|
+
")"
|
|
1184
|
+
]
|
|
1185
|
+
}
|
|
1186
|
+
),
|
|
1187
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "overflow-y-auto flex-1", children: filtered.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("p", { className: "text-xs text-muted-foreground text-center py-6", children: "No categories" }) : filtered.map((cat) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1188
|
+
CheckRow,
|
|
1189
|
+
{
|
|
1190
|
+
label: cat,
|
|
1191
|
+
checked: consumer.includedCats.includes(cat),
|
|
1192
|
+
onClick: () => consumer.toggleCategory(cat)
|
|
1193
|
+
},
|
|
1194
|
+
cat
|
|
1195
|
+
)) })
|
|
1196
|
+
] });
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1199
|
+
// catalog/react/AgentDetailCard.tsx
|
|
1200
|
+
var import_react6 = require("react");
|
|
1201
|
+
var import_design_system2 = require("@ai-matrx/design-system");
|
|
1025
1202
|
|
|
1026
1203
|
// catalog/shared/icon-paths.ts
|
|
1027
1204
|
var SHAPES = {
|
|
@@ -1132,9 +1309,9 @@ var ICON_PATHS = SHAPES;
|
|
|
1132
1309
|
var ICON_NAMES = Object.keys(ICON_PATHS);
|
|
1133
1310
|
|
|
1134
1311
|
// catalog/react/icons.tsx
|
|
1135
|
-
var
|
|
1312
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1136
1313
|
function Svg({ children, ...props }) {
|
|
1137
|
-
return /* @__PURE__ */ (0,
|
|
1314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1138
1315
|
"svg",
|
|
1139
1316
|
{
|
|
1140
1317
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1152,8 +1329,8 @@ function Svg({ children, ...props }) {
|
|
|
1152
1329
|
}
|
|
1153
1330
|
function Shape({ name, filled }) {
|
|
1154
1331
|
const shape = ICON_PATHS[name];
|
|
1155
|
-
return /* @__PURE__ */ (0,
|
|
1156
|
-
shape.paths.map((d, index) => /* @__PURE__ */ (0,
|
|
1332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
1333
|
+
shape.paths.map((d, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1157
1334
|
"path",
|
|
1158
1335
|
{
|
|
1159
1336
|
d,
|
|
@@ -1161,7 +1338,7 @@ function Shape({ name, filled }) {
|
|
|
1161
1338
|
},
|
|
1162
1339
|
`p${index}`
|
|
1163
1340
|
)),
|
|
1164
|
-
(shape.circles ?? []).map((circle, index) => /* @__PURE__ */ (0,
|
|
1341
|
+
(shape.circles ?? []).map((circle, index) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1165
1342
|
"circle",
|
|
1166
1343
|
{
|
|
1167
1344
|
cx: circle.cx,
|
|
@@ -1175,222 +1352,32 @@ function Shape({ name, filled }) {
|
|
|
1175
1352
|
}
|
|
1176
1353
|
function makeIcon(name) {
|
|
1177
1354
|
return function Icon(props) {
|
|
1178
|
-
return /* @__PURE__ */ (0,
|
|
1355
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Svg, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Shape, { name, filled: false }) });
|
|
1179
1356
|
};
|
|
1180
1357
|
}
|
|
1181
|
-
function StarIcon({
|
|
1182
|
-
filled = false,
|
|
1183
|
-
...props
|
|
1184
|
-
}) {
|
|
1185
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Svg, { ...props, fill: filled ? "currentColor" : "none", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Shape, { name: "star", filled }) });
|
|
1186
|
-
}
|
|
1187
|
-
var ChevronRightIcon = makeIcon("chevronRight");
|
|
1188
|
-
var ChevronDownIcon = makeIcon("chevronDown");
|
|
1189
|
-
var SearchIcon = makeIcon("search");
|
|
1190
|
-
var XIcon = makeIcon("x");
|
|
1191
|
-
var CheckIcon = makeIcon("check");
|
|
1192
1358
|
var ArrowUpDownIcon = makeIcon("arrowUpDown");
|
|
1193
1359
|
var FolderIcon = makeIcon("folder");
|
|
1194
1360
|
var TagIcon = makeIcon("tag");
|
|
1195
1361
|
var RotateCcwIcon = makeIcon("rotateCcw");
|
|
1196
|
-
var ArchiveIcon = makeIcon("archive");
|
|
1197
1362
|
var LoaderIcon = makeIcon("loader");
|
|
1198
1363
|
var UsersIcon = makeIcon("users");
|
|
1199
|
-
var ClockIcon = makeIcon("clock");
|
|
1200
|
-
var GlobeIcon = makeIcon("globe");
|
|
1201
|
-
var ExternalLinkIcon = makeIcon("externalLink");
|
|
1202
1364
|
var MessageCircleIcon = makeIcon("messageCircle");
|
|
1203
1365
|
var RocketIcon = makeIcon("rocket");
|
|
1204
1366
|
var CircleCheckIcon = makeIcon("circleCheck");
|
|
1205
1367
|
var AlertTriangleIcon = makeIcon("alertTriangle");
|
|
1206
1368
|
var Music4Icon = makeIcon("music4");
|
|
1207
1369
|
function MousePointerClickIcon(props) {
|
|
1208
|
-
return /* @__PURE__ */ (0,
|
|
1209
|
-
/* @__PURE__ */ (0,
|
|
1210
|
-
/* @__PURE__ */ (0,
|
|
1211
|
-
/* @__PURE__ */ (0,
|
|
1212
|
-
/* @__PURE__ */ (0,
|
|
1213
|
-
/* @__PURE__ */ (0,
|
|
1214
|
-
] });
|
|
1215
|
-
}
|
|
1216
|
-
|
|
1217
|
-
// catalog/react/primitives.tsx
|
|
1218
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1219
|
-
var SearchInput = ({
|
|
1220
|
-
ref,
|
|
1221
|
-
value,
|
|
1222
|
-
onChange,
|
|
1223
|
-
placeholder
|
|
1224
|
-
}) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-center gap-1.5 h-7 px-2 rounded-md bg-muted/40 border border-border/50", children: [
|
|
1225
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(SearchIcon, { className: "w-3 h-3 text-muted-foreground shrink-0" }),
|
|
1226
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1227
|
-
"input",
|
|
1228
|
-
{
|
|
1229
|
-
ref,
|
|
1230
|
-
type: "text",
|
|
1231
|
-
value,
|
|
1232
|
-
onChange: (e) => onChange(e.target.value),
|
|
1233
|
-
placeholder,
|
|
1234
|
-
className: "flex-1 bg-transparent text-xs text-foreground placeholder:text-muted-foreground/50 outline-none min-w-0",
|
|
1235
|
-
style: { fontSize: "16px" }
|
|
1236
|
-
}
|
|
1237
|
-
),
|
|
1238
|
-
value && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1239
|
-
"button",
|
|
1240
|
-
{
|
|
1241
|
-
type: "button",
|
|
1242
|
-
onClick: () => onChange(""),
|
|
1243
|
-
className: "text-muted-foreground hover:text-foreground",
|
|
1244
|
-
"aria-label": "Clear search",
|
|
1245
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(XIcon, { className: "w-3 h-3" })
|
|
1246
|
-
}
|
|
1247
|
-
)
|
|
1248
|
-
] });
|
|
1249
|
-
function FilterChip({
|
|
1250
|
-
icon: Icon,
|
|
1251
|
-
label,
|
|
1252
|
-
active,
|
|
1253
|
-
focused,
|
|
1254
|
-
onClick,
|
|
1255
|
-
ariaLabel,
|
|
1256
|
-
testId
|
|
1257
|
-
}) {
|
|
1258
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1259
|
-
"button",
|
|
1260
|
-
{
|
|
1261
|
-
type: "button",
|
|
1262
|
-
onClick,
|
|
1263
|
-
...ariaLabel ? { "aria-label": ariaLabel } : {},
|
|
1264
|
-
...testId ? { "data-testid": testId } : {},
|
|
1265
|
-
className: (0, import_design_system.cn)(
|
|
1266
|
-
"inline-flex items-center gap-1 h-6 px-1.5 rounded text-[11px] font-medium shrink-0 transition-colors",
|
|
1267
|
-
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"
|
|
1268
|
-
),
|
|
1269
|
-
children: [
|
|
1270
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon, { className: "w-3 h-3" }),
|
|
1271
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { children: label })
|
|
1272
|
-
]
|
|
1273
|
-
}
|
|
1274
|
-
);
|
|
1275
|
-
}
|
|
1276
|
-
function OptionRow({
|
|
1277
|
-
label,
|
|
1278
|
-
selected,
|
|
1279
|
-
onClick
|
|
1280
|
-
}) {
|
|
1281
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1282
|
-
"button",
|
|
1283
|
-
{
|
|
1284
|
-
type: "button",
|
|
1285
|
-
onClick,
|
|
1286
|
-
className: (0, import_design_system.cn)(
|
|
1287
|
-
"flex items-center w-full px-3 py-2 text-xs transition-colors",
|
|
1288
|
-
"hover:bg-muted/50 active:bg-muted/70",
|
|
1289
|
-
selected && "text-primary font-medium"
|
|
1290
|
-
),
|
|
1291
|
-
children: [
|
|
1292
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "flex-1 text-left", children: label }),
|
|
1293
|
-
selected && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CheckIcon, { className: "w-3.5 h-3.5 text-primary shrink-0" })
|
|
1294
|
-
]
|
|
1295
|
-
}
|
|
1296
|
-
);
|
|
1297
|
-
}
|
|
1298
|
-
function CheckRow({
|
|
1299
|
-
label,
|
|
1300
|
-
checked,
|
|
1301
|
-
onClick
|
|
1302
|
-
}) {
|
|
1303
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
1304
|
-
"button",
|
|
1305
|
-
{
|
|
1306
|
-
type: "button",
|
|
1307
|
-
onClick,
|
|
1308
|
-
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",
|
|
1309
|
-
children: [
|
|
1310
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1311
|
-
"div",
|
|
1312
|
-
{
|
|
1313
|
-
className: (0, import_design_system.cn)(
|
|
1314
|
-
"w-3.5 h-3.5 rounded-sm border flex items-center justify-center shrink-0 transition-colors",
|
|
1315
|
-
checked ? "bg-primary border-primary" : "border-muted-foreground/30"
|
|
1316
|
-
),
|
|
1317
|
-
children: checked && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CheckIcon, { className: "w-2.5 h-2.5 text-primary-foreground" })
|
|
1318
|
-
}
|
|
1319
|
-
),
|
|
1320
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "flex-1 text-left truncate", children: label })
|
|
1321
|
-
]
|
|
1322
|
-
}
|
|
1323
|
-
);
|
|
1324
|
-
}
|
|
1325
|
-
function SidePanelHeader({
|
|
1326
|
-
title,
|
|
1327
|
-
onClose
|
|
1328
|
-
}) {
|
|
1329
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-center justify-between px-3 py-2 border-b border-border shrink-0", children: [
|
|
1330
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-xs font-semibold text-foreground", children: title }),
|
|
1331
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1332
|
-
"button",
|
|
1333
|
-
{
|
|
1334
|
-
type: "button",
|
|
1335
|
-
onClick: onClose,
|
|
1336
|
-
className: "w-5 h-5 rounded flex items-center justify-center text-muted-foreground hover:text-foreground hover:bg-muted/50 transition-colors",
|
|
1337
|
-
"aria-label": "Close",
|
|
1338
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(XIcon, { className: "w-3.5 h-3.5" })
|
|
1339
|
-
}
|
|
1340
|
-
)
|
|
1341
|
-
] });
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
// catalog/react/AgentCategoriesPanel.tsx
|
|
1345
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1346
|
-
function AgentCategoriesPanel({
|
|
1347
|
-
consumer,
|
|
1348
|
-
allCategories,
|
|
1349
|
-
search,
|
|
1350
|
-
setSearch,
|
|
1351
|
-
onClose
|
|
1352
|
-
}) {
|
|
1353
|
-
const filtered = allCategories.filter(
|
|
1354
|
-
(c) => !search || c.toLowerCase().includes(search.toLowerCase())
|
|
1355
|
-
);
|
|
1356
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col h-full", children: [
|
|
1357
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(SidePanelHeader, { title: "Categories", onClose }),
|
|
1358
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "px-2 pt-2 pb-1 shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1359
|
-
SearchInput,
|
|
1360
|
-
{
|
|
1361
|
-
value: search,
|
|
1362
|
-
onChange: setSearch,
|
|
1363
|
-
placeholder: "Filter categories..."
|
|
1364
|
-
}
|
|
1365
|
-
) }),
|
|
1366
|
-
consumer.includedCats.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1367
|
-
"button",
|
|
1368
|
-
{
|
|
1369
|
-
type: "button",
|
|
1370
|
-
onClick: () => consumer.setIncludedCats([]),
|
|
1371
|
-
className: "mx-2 mb-1 h-6 rounded text-[11px] font-medium text-primary hover:bg-muted/50 transition-colors text-left shrink-0",
|
|
1372
|
-
children: [
|
|
1373
|
-
"Clear (",
|
|
1374
|
-
consumer.includedCats.length,
|
|
1375
|
-
")"
|
|
1376
|
-
]
|
|
1377
|
-
}
|
|
1378
|
-
),
|
|
1379
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "overflow-y-auto flex-1", children: filtered.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("p", { className: "text-xs text-muted-foreground text-center py-6", children: "No categories" }) : filtered.map((cat) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1380
|
-
CheckRow,
|
|
1381
|
-
{
|
|
1382
|
-
label: cat,
|
|
1383
|
-
checked: consumer.includedCats.includes(cat),
|
|
1384
|
-
onClick: () => consumer.toggleCategory(cat)
|
|
1385
|
-
},
|
|
1386
|
-
cat
|
|
1387
|
-
)) })
|
|
1370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(Svg, { ...props, children: [
|
|
1371
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M14 4.1 12 6" }),
|
|
1372
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "m5.1 8-2.9-.8" }),
|
|
1373
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "m6 12-1.9 2" }),
|
|
1374
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("path", { d: "M7.2 2.2 8 5.1" }),
|
|
1375
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)("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" })
|
|
1388
1376
|
] });
|
|
1389
1377
|
}
|
|
1390
1378
|
|
|
1391
1379
|
// catalog/react/AgentDetailCard.tsx
|
|
1392
|
-
var
|
|
1393
|
-
var import_design_system2 = require("@ai-matrx/design-system");
|
|
1380
|
+
var import_icons3 = require("@ai-matrx/design-system/icons");
|
|
1394
1381
|
|
|
1395
1382
|
// catalog/orchestra.ts
|
|
1396
1383
|
var ORCHESTRA_MODE_LABEL = {
|
|
@@ -1435,7 +1422,7 @@ function agentPeekRecord(agent, opts = {}) {
|
|
|
1435
1422
|
if (agent.accessLevel) {
|
|
1436
1423
|
aside.push({
|
|
1437
1424
|
fact: agent.accessLevel === "owner" ? "You own this" : `Shared \u2014 ${agent.accessLevel}`,
|
|
1438
|
-
glyph: agent.isOwner === false ? UsersIcon : GlobeIcon,
|
|
1425
|
+
glyph: agent.isOwner === false ? UsersIcon : import_icons3.GlobeIcon,
|
|
1439
1426
|
...agent.sharedByEmail ? { meta: `by ${agent.sharedByEmail}` } : {}
|
|
1440
1427
|
});
|
|
1441
1428
|
}
|
|
@@ -1447,8 +1434,8 @@ function agentPeekRecord(agent, opts = {}) {
|
|
|
1447
1434
|
}
|
|
1448
1435
|
const updated = formatDate(agent.updatedAt);
|
|
1449
1436
|
const created = formatDate(agent.createdAt);
|
|
1450
|
-
if (updated) aside.push({ fact: `Updated ${updated}`, glyph: ClockIcon, muted: true });
|
|
1451
|
-
if (created) aside.push({ fact: `Created ${created}`, glyph: ClockIcon, muted: true });
|
|
1437
|
+
if (updated) aside.push({ fact: `Updated ${updated}`, glyph: import_icons3.ClockIcon, muted: true });
|
|
1438
|
+
if (created) aside.push({ fact: `Created ${created}`, glyph: import_icons3.ClockIcon, muted: true });
|
|
1452
1439
|
const doors = [];
|
|
1453
1440
|
if (opts.openPeek) {
|
|
1454
1441
|
const open = opts.openPeek;
|
|
@@ -1513,6 +1500,9 @@ function AgentDetailCard({ agent, onSelect, duplicate, onHoldChange }) {
|
|
|
1513
1500
|
var import_design_system5 = require("@ai-matrx/design-system");
|
|
1514
1501
|
var import_react7 = require("react");
|
|
1515
1502
|
|
|
1503
|
+
// catalog/react/AgentFilterBar.tsx
|
|
1504
|
+
var import_icons5 = require("@ai-matrx/design-system/icons");
|
|
1505
|
+
|
|
1516
1506
|
// catalog/react/types.ts
|
|
1517
1507
|
var PANEL_HEIGHT = "528px";
|
|
1518
1508
|
var LIST_MAX_HEIGHT = "min(528px, var(--radix-popper-available-height, 528px))";
|
|
@@ -1563,7 +1553,7 @@ function AgentFilterBar({
|
|
|
1563
1553
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1564
1554
|
FilterChip,
|
|
1565
1555
|
{
|
|
1566
|
-
icon: StarIcon,
|
|
1556
|
+
icon: import_icons5.StarIcon,
|
|
1567
1557
|
label: consumer.favFilter === "no" ? "No Favs" : "Favs",
|
|
1568
1558
|
active: consumer.favFilter !== "all",
|
|
1569
1559
|
onClick: () => {
|
|
@@ -1575,7 +1565,7 @@ function AgentFilterBar({
|
|
|
1575
1565
|
/* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
1576
1566
|
FilterChip,
|
|
1577
1567
|
{
|
|
1578
|
-
icon: ArchiveIcon,
|
|
1568
|
+
icon: import_icons5.ArchiveIcon,
|
|
1579
1569
|
label: agentArchiveFilterChipLabel(consumer.archFilter),
|
|
1580
1570
|
active: consumer.archFilter !== consumer.archFilterDefault,
|
|
1581
1571
|
ariaLabel: agentArchiveFilterControlLabel(consumer.archFilter),
|
|
@@ -1673,6 +1663,7 @@ function AgentListTabs({
|
|
|
1673
1663
|
|
|
1674
1664
|
// catalog/react/AgentRow.tsx
|
|
1675
1665
|
var import_design_system4 = require("@ai-matrx/design-system");
|
|
1666
|
+
var import_icons7 = require("@ai-matrx/design-system/icons");
|
|
1676
1667
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
1677
1668
|
function AgentRow({
|
|
1678
1669
|
agent,
|
|
@@ -1712,7 +1703,7 @@ function AgentRow({
|
|
|
1712
1703
|
},
|
|
1713
1704
|
className: "flex items-center gap-2 flex-1 min-w-0 px-3 py-2",
|
|
1714
1705
|
children: [
|
|
1715
|
-
agent.isFavorite && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(StarIcon, {
|
|
1706
|
+
agent.isFavorite && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons7.StarIcon, { fill: "currentColor", className: "w-3 h-3 matrx-agent-star-on shrink-0" }),
|
|
1716
1707
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
1717
1708
|
"span",
|
|
1718
1709
|
{
|
|
@@ -1766,7 +1757,7 @@ function AgentRow({
|
|
|
1766
1757
|
onDetailPress();
|
|
1767
1758
|
},
|
|
1768
1759
|
className: "flex items-center justify-center w-10 h-full shrink-0 text-muted-foreground/40 active:text-muted-foreground",
|
|
1769
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ChevronRightIcon, { className: "w-4 h-4" })
|
|
1760
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons7.ChevronRightIcon, { className: "w-4 h-4" })
|
|
1770
1761
|
}
|
|
1771
1762
|
)
|
|
1772
1763
|
]
|
|
@@ -1775,6 +1766,7 @@ function AgentRow({
|
|
|
1775
1766
|
}
|
|
1776
1767
|
|
|
1777
1768
|
// catalog/react/AgentListContent.tsx
|
|
1769
|
+
var import_icons9 = require("@ai-matrx/design-system/icons");
|
|
1778
1770
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
1779
1771
|
function AgentListContent({
|
|
1780
1772
|
agents,
|
|
@@ -1881,7 +1873,7 @@ function AgentListContent({
|
|
|
1881
1873
|
"aria-label": "Dismiss",
|
|
1882
1874
|
onClick: () => catalog.dismissDefaultRowDrift(defaultRow.mandateKey),
|
|
1883
1875
|
className: "shrink-0 opacity-70 hover:opacity-100",
|
|
1884
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(XIcon, { className: "w-3 h-3" })
|
|
1876
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_icons9.XIcon, { className: "w-3 h-3" })
|
|
1885
1877
|
}
|
|
1886
1878
|
)
|
|
1887
1879
|
]
|
|
@@ -1998,6 +1990,7 @@ function AgentListContent({
|
|
|
1998
1990
|
}
|
|
1999
1991
|
|
|
2000
1992
|
// catalog/react/AgentMobileSubView.tsx
|
|
1993
|
+
var import_icons10 = require("@ai-matrx/design-system/icons");
|
|
2001
1994
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
2002
1995
|
function AgentMobileSubView({
|
|
2003
1996
|
view,
|
|
@@ -2019,7 +2012,7 @@ function AgentMobileSubView({
|
|
|
2019
2012
|
onClick: onBack,
|
|
2020
2013
|
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",
|
|
2021
2014
|
children: [
|
|
2022
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChevronRightIcon, { className: "w-4 h-4 rotate-180" }),
|
|
2015
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_icons10.ChevronRightIcon, { className: "w-4 h-4 rotate-180" }),
|
|
2023
2016
|
title
|
|
2024
2017
|
]
|
|
2025
2018
|
}
|
|
@@ -2172,6 +2165,7 @@ function AgentTagsPanel({
|
|
|
2172
2165
|
}
|
|
2173
2166
|
|
|
2174
2167
|
// catalog/react/AgentListPanel.tsx
|
|
2168
|
+
var import_icons12 = require("@ai-matrx/design-system/icons");
|
|
2175
2169
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
2176
2170
|
var PANEL_WIDTH = "680px";
|
|
2177
2171
|
function AgentListPanelBody({
|
|
@@ -2321,7 +2315,7 @@ function AgentListPanelBody({
|
|
|
2321
2315
|
onClick: () => setMobileDetailAgent(null),
|
|
2322
2316
|
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",
|
|
2323
2317
|
children: [
|
|
2324
|
-
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChevronRightIcon, { className: "w-4 h-4 rotate-180" }),
|
|
2318
|
+
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons12.ChevronRightIcon, { className: "w-4 h-4 rotate-180" }),
|
|
2325
2319
|
"Back"
|
|
2326
2320
|
]
|
|
2327
2321
|
}
|
|
@@ -2470,6 +2464,7 @@ function AgentListPanel({
|
|
|
2470
2464
|
}
|
|
2471
2465
|
|
|
2472
2466
|
// catalog/react/AgentListDropdown.tsx
|
|
2467
|
+
var import_icons13 = require("@ai-matrx/design-system/icons");
|
|
2473
2468
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
2474
2469
|
var CONSUMER_ID = "agent-list-dropdown";
|
|
2475
2470
|
function AgentListDropdown({
|
|
@@ -2552,7 +2547,7 @@ function AgentListDropdown({
|
|
|
2552
2547
|
children: [
|
|
2553
2548
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "min-w-0 max-w-[200px] flex-1 truncate text-left", children: displayLabel }),
|
|
2554
2549
|
activeFilterCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "flex items-center justify-center w-4 h-4 rounded-md bg-primary text-primary-foreground text-[10px]", children: activeFilterCount }),
|
|
2555
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(ChevronDownIcon, { className: "w-3 h-3 text-muted-foreground/60" })
|
|
2550
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons13.ChevronDownIcon, { className: "w-3 h-3 text-muted-foreground/60" })
|
|
2556
2551
|
]
|
|
2557
2552
|
}
|
|
2558
2553
|
);
|
|
@@ -2608,6 +2603,7 @@ function AgentListDropdown({
|
|
|
2608
2603
|
// catalog/react/AgentListInlinePicker.tsx
|
|
2609
2604
|
var import_design_system8 = require("@ai-matrx/design-system");
|
|
2610
2605
|
var import_react10 = require("react");
|
|
2606
|
+
var import_icons14 = require("@ai-matrx/design-system/icons");
|
|
2611
2607
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
2612
2608
|
function AgentListInlinePicker({
|
|
2613
2609
|
consumerId,
|
|
@@ -2687,7 +2683,7 @@ function AgentListInlinePicker({
|
|
|
2687
2683
|
onClick: () => setMobileDetailAgent(null),
|
|
2688
2684
|
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",
|
|
2689
2685
|
children: [
|
|
2690
|
-
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ChevronRightIcon, { className: "h-4 w-4 rotate-180" }),
|
|
2686
|
+
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_icons14.ChevronRightIcon, { className: "h-4 w-4 rotate-180" }),
|
|
2691
2687
|
"Back"
|
|
2692
2688
|
]
|
|
2693
2689
|
}
|
|
@@ -2761,6 +2757,7 @@ function AgentListInlinePicker({
|
|
|
2761
2757
|
// catalog/react/FavoriteAgentButton.tsx
|
|
2762
2758
|
var import_design_system9 = require("@ai-matrx/design-system");
|
|
2763
2759
|
var import_react11 = require("react");
|
|
2760
|
+
var import_icons15 = require("@ai-matrx/design-system/icons");
|
|
2764
2761
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
2765
2762
|
function FavoriteAgentButton({
|
|
2766
2763
|
id,
|
|
@@ -2796,9 +2793,9 @@ function FavoriteAgentButton({
|
|
|
2796
2793
|
title,
|
|
2797
2794
|
"aria-label": isFavorite2 ? "Remove from favorites" : "Add to favorites",
|
|
2798
2795
|
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
2799
|
-
StarIcon,
|
|
2796
|
+
import_icons15.StarIcon,
|
|
2800
2797
|
{
|
|
2801
|
-
|
|
2798
|
+
fill: isFavorite2 ? "currentColor" : "none",
|
|
2802
2799
|
className: (0, import_design_system9.cn)(
|
|
2803
2800
|
"h-3.5 w-3.5 transition-all duration-150",
|
|
2804
2801
|
isFavorite2 ? "matrx-agent-star-on" : "text-muted-foreground/40 hover:matrx-agent-star-on"
|
|
@@ -2822,7 +2819,7 @@ function FavoriteAgentButton({
|
|
|
2822
2819
|
disabled,
|
|
2823
2820
|
title,
|
|
2824
2821
|
"aria-label": isFavorite2 ? "Remove from favorites" : "Add to favorites",
|
|
2825
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(StarIcon, {
|
|
2822
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_icons15.StarIcon, { fill: isFavorite2 ? "currentColor" : "none", className: "w-4 h-4 transition-all duration-150" })
|
|
2826
2823
|
}
|
|
2827
2824
|
);
|
|
2828
2825
|
}
|