@ai-matrx/agents 0.15.1 → 0.16.19
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 +150 -0
- package/README.md +8 -4
- package/dist/catalog/index.cjs +82 -50
- package/dist/catalog/index.cjs.map +1 -1
- package/dist/catalog/index.d.cts +21 -10
- package/dist/catalog/index.d.ts +21 -10
- package/dist/catalog/index.js +82 -50
- package/dist/catalog/index.js.map +1 -1
- package/dist/catalog/native/index.cjs +2 -3
- package/dist/catalog/native/index.cjs.map +1 -1
- package/dist/catalog/native/index.d.cts +4 -5
- package/dist/catalog/native/index.d.ts +4 -5
- package/dist/catalog/native/index.js +2 -3
- package/dist/catalog/native/index.js.map +1 -1
- package/dist/catalog/react/index.cjs +6 -7
- package/dist/catalog/react/index.cjs.map +1 -1
- package/dist/catalog/react/index.d.cts +2 -9
- package/dist/catalog/react/index.d.ts +2 -9
- package/dist/catalog/react/index.js +6 -7
- package/dist/catalog/react/index.js.map +1 -1
- package/dist/content-transfer/index.cjs +2 -0
- package/dist/content-transfer/index.cjs.map +1 -1
- package/dist/content-transfer/index.js +2 -0
- package/dist/content-transfer/index.js.map +1 -1
- package/dist/content-transfer/react/index.cjs +2 -0
- package/dist/content-transfer/react/index.cjs.map +1 -1
- package/dist/content-transfer/react/index.js +2 -0
- package/dist/content-transfer/react/index.js.map +1 -1
- package/dist/mandates/index.cjs +4 -2
- package/dist/mandates/index.cjs.map +1 -1
- package/dist/mandates/index.d.cts +7 -5
- package/dist/mandates/index.d.ts +7 -5
- package/dist/mandates/index.js +4 -2
- package/dist/mandates/index.js.map +1 -1
- package/dist/{orchestra-BDXdut6Y.d.cts → orchestra-PbGGooqJ.d.cts} +50 -25
- package/dist/{orchestra-BDXdut6Y.d.ts → orchestra-PbGGooqJ.d.ts} +50 -25
- package/mandates/snapshots/keys.0.16.1.json +625 -0
- package/mandates/snapshots/keys.0.16.10.json +625 -0
- package/mandates/snapshots/keys.0.16.11.json +625 -0
- package/mandates/snapshots/keys.0.16.12.json +625 -0
- package/mandates/snapshots/keys.0.16.13.json +625 -0
- package/mandates/snapshots/keys.0.16.14.json +625 -0
- package/mandates/snapshots/keys.0.16.15.json +625 -0
- package/mandates/snapshots/keys.0.16.16.json +625 -0
- package/mandates/snapshots/keys.0.16.17.json +625 -0
- package/mandates/snapshots/keys.0.16.18.json +625 -0
- package/mandates/snapshots/keys.0.16.19.json +627 -0
- package/mandates/snapshots/keys.0.16.2.json +625 -0
- package/mandates/snapshots/keys.0.16.3.json +625 -0
- package/mandates/snapshots/keys.0.16.4.json +625 -0
- package/mandates/snapshots/keys.0.16.5.json +625 -0
- package/mandates/snapshots/keys.0.16.6.json +625 -0
- package/mandates/snapshots/keys.0.16.7.json +625 -0
- package/mandates/snapshots/keys.0.16.8.json +625 -0
- package/mandates/snapshots/keys.0.16.9.json +625 -0
- package/package.json +4 -3
|
@@ -1348,14 +1348,13 @@ function FavoriteAgentButton({
|
|
|
1348
1348
|
);
|
|
1349
1349
|
const record = useAgentCatalogState(select);
|
|
1350
1350
|
const isFavorite2 = record?.isFavorite ?? false;
|
|
1351
|
-
const isOwner = record?.isOwner ?? true;
|
|
1352
1351
|
const handleClick = (e) => {
|
|
1353
1352
|
e.stopPropagation();
|
|
1354
|
-
if (disabled
|
|
1353
|
+
if (disabled) return;
|
|
1355
1354
|
void catalog.setFavorite(id, !isFavorite2).catch(() => {
|
|
1356
1355
|
});
|
|
1357
1356
|
};
|
|
1358
|
-
const title =
|
|
1357
|
+
const title = isFavorite2 ? "Remove from favorites" : "Add to favorites";
|
|
1359
1358
|
if (variant === "list") {
|
|
1360
1359
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
1361
1360
|
"button",
|
|
@@ -1364,10 +1363,10 @@ function FavoriteAgentButton({
|
|
|
1364
1363
|
className: (0, import_design_system2.cn)(
|
|
1365
1364
|
"flex-shrink-0 p-0.5 rounded transition-all duration-150",
|
|
1366
1365
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",
|
|
1367
|
-
disabled
|
|
1366
|
+
disabled ? "cursor-not-allowed" : "hover:scale-110 cursor-pointer"
|
|
1368
1367
|
),
|
|
1369
1368
|
onClick: handleClick,
|
|
1370
|
-
disabled
|
|
1369
|
+
disabled,
|
|
1371
1370
|
title,
|
|
1372
1371
|
"aria-label": isFavorite2 ? "Remove from favorites" : "Add to favorites",
|
|
1373
1372
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
@@ -1390,11 +1389,11 @@ function FavoriteAgentButton({
|
|
|
1390
1389
|
className: (0, import_design_system2.cn)(
|
|
1391
1390
|
"absolute top-2.5 right-2.5 z-10 p-0.5 rounded transition-all duration-150",
|
|
1392
1391
|
"focus:outline-none focus-visible:ring-2 focus-visible:ring-primary",
|
|
1393
|
-
disabled
|
|
1392
|
+
disabled ? "cursor-not-allowed" : "hover:scale-110 cursor-pointer",
|
|
1394
1393
|
isFavorite2 ? "matrx-agent-star-on" : "text-muted-foreground/40 hover:matrx-agent-star-on"
|
|
1395
1394
|
),
|
|
1396
1395
|
onClick: handleClick,
|
|
1397
|
-
disabled
|
|
1396
|
+
disabled,
|
|
1398
1397
|
title,
|
|
1399
1398
|
"aria-label": isFavorite2 ? "Remove from favorites" : "Add to favorites",
|
|
1400
1399
|
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(StarIcon, { filled: isFavorite2, className: "w-4 h-4 transition-all duration-150" })
|