@ai-matrx/agents 0.13.16 → 0.14.3
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 +56 -0
- package/dist/catalog/index.cjs +1 -0
- package/dist/catalog/index.cjs.map +1 -1
- package/dist/catalog/index.d.cts +2 -2
- package/dist/catalog/index.d.ts +2 -2
- package/dist/catalog/index.js +1 -0
- package/dist/catalog/index.js.map +1 -1
- package/dist/catalog/native/index.cjs +16 -0
- package/dist/catalog/native/index.cjs.map +1 -1
- package/dist/catalog/native/index.d.cts +2 -2
- package/dist/catalog/native/index.d.ts +2 -2
- package/dist/catalog/native/index.js +16 -0
- package/dist/catalog/native/index.js.map +1 -1
- package/dist/catalog/react/index.cjs +26 -5
- package/dist/catalog/react/index.cjs.map +1 -1
- package/dist/catalog/react/index.d.cts +27 -1
- package/dist/catalog/react/index.d.ts +27 -1
- package/dist/catalog/react/index.js +26 -5
- 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 +8 -2
- package/dist/mandates/index.cjs.map +1 -1
- package/dist/mandates/index.d.cts +8 -5
- package/dist/mandates/index.d.ts +8 -5
- package/dist/mandates/index.js +8 -2
- package/dist/mandates/index.js.map +1 -1
- package/dist/{orchestra-CVil7T5Y.d.cts → orchestra-BDXdut6Y.d.cts} +6 -0
- package/dist/{orchestra-CVil7T5Y.d.ts → orchestra-BDXdut6Y.d.ts} +6 -0
- package/dist/presentation/decision-answers.cjs +195 -0
- package/dist/presentation/decision-answers.cjs.map +1 -0
- package/dist/presentation/decision-answers.d.cts +113 -0
- package/dist/presentation/decision-answers.d.ts +113 -0
- package/dist/presentation/decision-answers.js +174 -0
- package/dist/presentation/decision-answers.js.map +1 -0
- package/mandates/snapshots/keys.0.14.0.json +619 -0
- package/mandates/snapshots/keys.0.14.3.json +625 -0
- package/package.json +13 -3
|
@@ -50,6 +50,7 @@ __export(react_exports, {
|
|
|
50
50
|
orchestraDepthLine: () => orchestraDepthLine,
|
|
51
51
|
orchestraLabel: () => orchestraLabel,
|
|
52
52
|
orchestraModeLabel: () => orchestraModeLabel,
|
|
53
|
+
panelHeightBelow: () => panelHeightBelow,
|
|
53
54
|
useAgentCatalog: () => useAgentCatalog,
|
|
54
55
|
useAgentCatalogRows: () => useAgentCatalogRows,
|
|
55
56
|
useAgentCatalogState: () => useAgentCatalogState,
|
|
@@ -1582,6 +1583,15 @@ var import_react6 = require("react");
|
|
|
1582
1583
|
// catalog/react/types.ts
|
|
1583
1584
|
var PANEL_HEIGHT = "528px";
|
|
1584
1585
|
var LIST_MAX_HEIGHT = "min(528px, var(--radix-popper-available-height, 528px))";
|
|
1586
|
+
function panelHeightBelow(trigger, options = {}) {
|
|
1587
|
+
if (!trigger || typeof window === "undefined") return null;
|
|
1588
|
+
const full = options.full ?? 528;
|
|
1589
|
+
const minUsable = options.minUsable ?? 300;
|
|
1590
|
+
const gap = options.gap ?? 16;
|
|
1591
|
+
const below = window.innerHeight - trigger.getBoundingClientRect().bottom - gap;
|
|
1592
|
+
if (below >= full) return null;
|
|
1593
|
+
return below >= minUsable ? `${Math.floor(below)}px` : null;
|
|
1594
|
+
}
|
|
1585
1595
|
|
|
1586
1596
|
// catalog/react/AgentFilterBar.tsx
|
|
1587
1597
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
@@ -1780,7 +1790,15 @@ function AgentRow({
|
|
|
1780
1790
|
]
|
|
1781
1791
|
}
|
|
1782
1792
|
),
|
|
1783
|
-
agent.
|
|
1793
|
+
agent.isArchived ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
1794
|
+
"span",
|
|
1795
|
+
{
|
|
1796
|
+
"data-testid": `agent-archived-badge-${agent.id}`,
|
|
1797
|
+
className: "text-[9px] font-medium text-muted-foreground bg-muted px-1 py-px rounded shrink-0 ml-auto",
|
|
1798
|
+
children: labels.archivedBadge
|
|
1799
|
+
}
|
|
1800
|
+
) : null,
|
|
1801
|
+
agent.agentType === "builtin" ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: (0, import_design_system5.cn)("text-[9px] font-medium text-primary bg-primary/10 px-1 py-px rounded shrink-0", !agent.isArchived && "ml-auto"), children: labels.systemBadge }) : agent.isOwner === false ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: (0, import_design_system5.cn)("text-[9px] text-muted-foreground bg-muted px-1 py-px rounded shrink-0", !agent.isArchived && "ml-auto"), children: "shared" }) : null
|
|
1784
1802
|
]
|
|
1785
1803
|
}
|
|
1786
1804
|
),
|
|
@@ -2211,6 +2229,8 @@ function AgentListDropdown({
|
|
|
2211
2229
|
const [mobileDetailAgent, setMobileDetailAgent] = (0, import_react7.useState)(null);
|
|
2212
2230
|
const [mobileSubView, setMobileSubView] = (0, import_react7.useState)(null);
|
|
2213
2231
|
const inputRef = (0, import_react7.useRef)(null);
|
|
2232
|
+
const triggerRef = (0, import_react7.useRef)(null);
|
|
2233
|
+
const [fitHeight, setFitHeight] = (0, import_react7.useState)(null);
|
|
2214
2234
|
const {
|
|
2215
2235
|
agents,
|
|
2216
2236
|
archivedHiddenCount,
|
|
@@ -2250,6 +2270,7 @@ function AgentListDropdown({
|
|
|
2250
2270
|
const handleOpen = (nextOpen) => {
|
|
2251
2271
|
setOpen(nextOpen);
|
|
2252
2272
|
if (nextOpen) {
|
|
2273
|
+
setFitHeight(contentSide || isMobile ? null : panelHeightBelow(triggerRef.current));
|
|
2253
2274
|
ensureLoaded();
|
|
2254
2275
|
if (pinnedAgent && !isMobile) {
|
|
2255
2276
|
setHoveredAgent(pinnedAgent);
|
|
@@ -2321,10 +2342,10 @@ function AgentListDropdown({
|
|
|
2321
2342
|
);
|
|
2322
2343
|
const wrapTrigger = (Trigger) => {
|
|
2323
2344
|
if (!showAssignedTooltip) {
|
|
2324
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Trigger, { asChild: true, children: triggerButton });
|
|
2345
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Trigger, { asChild: true, ref: triggerRef, children: triggerButton });
|
|
2325
2346
|
}
|
|
2326
2347
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_design_system7.Tooltip, { ...open ? { open: false } : {}, children: [
|
|
2327
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_design_system7.TooltipTrigger, { asChild: true, children: triggerButton }) }),
|
|
2348
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Trigger, { asChild: true, ref: triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_design_system7.TooltipTrigger, { asChild: true, children: triggerButton }) }),
|
|
2328
2349
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_design_system7.TooltipContent, { side: "bottom", className: "max-w-xs", children: displayLabel })
|
|
2329
2350
|
] });
|
|
2330
2351
|
};
|
|
@@ -2411,14 +2432,14 @@ function AgentListDropdown({
|
|
|
2411
2432
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2412
2433
|
import_design_system7.PopoverContent,
|
|
2413
2434
|
{
|
|
2414
|
-
...contentSide ? { side: contentSide } : {},
|
|
2435
|
+
...contentSide ? { side: contentSide } : fitHeight ? { side: "bottom" } : {},
|
|
2415
2436
|
align: "start",
|
|
2416
2437
|
sideOffset: 4,
|
|
2417
2438
|
collisionPadding: 12,
|
|
2418
2439
|
sticky: "always",
|
|
2419
2440
|
...popoverContainer ? { container: popoverContainer } : {},
|
|
2420
2441
|
className: "p-0 overflow-hidden w-[680px]",
|
|
2421
|
-
style: { height: PANEL_HEIGHT, maxHeight: LIST_MAX_HEIGHT },
|
|
2442
|
+
style: { height: fitHeight ?? PANEL_HEIGHT, maxHeight: fitHeight ?? LIST_MAX_HEIGHT },
|
|
2422
2443
|
children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex h-full", children: [
|
|
2423
2444
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex flex-col min-w-0 w-[340px] shrink-0 border-r border-border", children: listPanel }),
|
|
2424
2445
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|