@ai-matrx/agents 0.15.0 → 0.16.18
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 +160 -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 +10 -10
- package/dist/catalog/react/index.cjs.map +1 -1
- package/dist/catalog/react/index.d.cts +11 -11
- package/dist/catalog/react/index.d.ts +11 -11
- package/dist/catalog/react/index.js +10 -10
- package/dist/catalog/react/index.js.map +1 -1
- package/dist/content-transfer/index.cjs.map +1 -1
- package/dist/content-transfer/index.js.map +1 -1
- package/dist/content-transfer/react/index.cjs.map +1 -1
- package/dist/content-transfer/react/index.js.map +1 -1
- package/dist/mandates/index.cjs +2 -2
- package/dist/mandates/index.cjs.map +1 -1
- 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/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.15.1.json +625 -0
- 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.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" })
|
|
@@ -2365,7 +2364,7 @@ function AgentListPanelBody({
|
|
|
2365
2364
|
) : listPanel });
|
|
2366
2365
|
}
|
|
2367
2366
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: (0, import_design_system7.cn)("flex h-full", className), children: [
|
|
2368
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex flex-col min-w-
|
|
2367
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex flex-col min-w-[340px] flex-1 border-r border-border", children: listPanel }),
|
|
2369
2368
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
2370
2369
|
"div",
|
|
2371
2370
|
{
|
|
@@ -2434,6 +2433,7 @@ function AgentListPanel({
|
|
|
2434
2433
|
defaultMandateKey,
|
|
2435
2434
|
resolveAgentHref: resolveAgentHrefProp,
|
|
2436
2435
|
className,
|
|
2436
|
+
fill = false,
|
|
2437
2437
|
...display
|
|
2438
2438
|
}) {
|
|
2439
2439
|
const isMobile = (0, import_design_system7.useIsMobile)();
|
|
@@ -2456,8 +2456,8 @@ function AgentListPanel({
|
|
|
2456
2456
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2457
2457
|
"div",
|
|
2458
2458
|
{
|
|
2459
|
-
className: (0, import_design_system7.cn)("flex min-h-0 flex-col overflow-hidden", isMobile && "h-full w-full", className),
|
|
2460
|
-
style: isMobile ? void 0 : { width: PANEL_WIDTH, height: PANEL_HEIGHT },
|
|
2459
|
+
className: (0, import_design_system7.cn)("flex min-h-0 flex-col overflow-hidden", (isMobile || fill) && "h-full w-full", className),
|
|
2460
|
+
style: isMobile || fill ? void 0 : { width: PANEL_WIDTH, height: PANEL_HEIGHT },
|
|
2461
2461
|
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2462
2462
|
AgentListPanelBody,
|
|
2463
2463
|
{
|