@ai-matrx/agents 0.15.0 → 0.15.1

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.
@@ -792,6 +792,12 @@ interface AgentListPanelBodyProps extends AgentListPanelDisplayProps {
792
792
  /** The picker body over a core the host already holds. Fills its parent. */
793
793
  declare function AgentListPanelBody({ core, visibleTabs, systemTabLabel, includeSystemInAll, resolveAgentHref, showPinnedAgent, autoFocusSearch, onAfterSelect, className, }: AgentListPanelBodyProps): react.JSX.Element;
794
794
  interface AgentListPanelProps extends AgentListPanelDisplayProps {
795
+ /**
796
+ * Fill the parent instead of the fixed `PANEL_WIDTH` × `PANEL_HEIGHT`
797
+ * footprint — for a resizable host (a window). The list column takes the
798
+ * extra width; the peek column stays 340px.
799
+ */
800
+ fill?: boolean;
795
801
  /** Unique consumer id for this picker's filter/tab state. */
796
802
  consumerId: string;
797
803
  /** The chosen agent's id (`mandate:<key>` for a mandate default row). */
@@ -809,9 +815,10 @@ interface AgentListPanelProps extends AgentListPanelDisplayProps {
809
815
  }
810
816
  /**
811
817
  * The self-contained picker: owns its list core. Desktop renders at the fixed
812
- * `PANEL_WIDTH` × `PANEL_HEIGHT` footprint; mobile fills its parent.
818
+ * `PANEL_WIDTH` × `PANEL_HEIGHT` footprint (or fills its parent with `fill`);
819
+ * mobile fills its parent.
813
820
  */
814
- declare function AgentListPanel({ consumerId, onSelect, navigateTo, activeAgentId, initialTab, includeSystemInAll, visibleTabs, excludeAgentIds, defaultMandateKey, resolveAgentHref: resolveAgentHrefProp, className, ...display }: AgentListPanelProps): react.JSX.Element;
821
+ declare function AgentListPanel({ consumerId, onSelect, navigateTo, activeAgentId, initialTab, includeSystemInAll, visibleTabs, excludeAgentIds, defaultMandateKey, resolveAgentHref: resolveAgentHrefProp, className, fill, ...display }: AgentListPanelProps): react.JSX.Element;
815
822
 
816
823
  interface AgentListInlinePickerProps {
817
824
  /** Unique consumer id for filter/tab state (see `useAgentConsumer`). */
@@ -792,6 +792,12 @@ interface AgentListPanelBodyProps extends AgentListPanelDisplayProps {
792
792
  /** The picker body over a core the host already holds. Fills its parent. */
793
793
  declare function AgentListPanelBody({ core, visibleTabs, systemTabLabel, includeSystemInAll, resolveAgentHref, showPinnedAgent, autoFocusSearch, onAfterSelect, className, }: AgentListPanelBodyProps): react.JSX.Element;
794
794
  interface AgentListPanelProps extends AgentListPanelDisplayProps {
795
+ /**
796
+ * Fill the parent instead of the fixed `PANEL_WIDTH` × `PANEL_HEIGHT`
797
+ * footprint — for a resizable host (a window). The list column takes the
798
+ * extra width; the peek column stays 340px.
799
+ */
800
+ fill?: boolean;
795
801
  /** Unique consumer id for this picker's filter/tab state. */
796
802
  consumerId: string;
797
803
  /** The chosen agent's id (`mandate:<key>` for a mandate default row). */
@@ -809,9 +815,10 @@ interface AgentListPanelProps extends AgentListPanelDisplayProps {
809
815
  }
810
816
  /**
811
817
  * The self-contained picker: owns its list core. Desktop renders at the fixed
812
- * `PANEL_WIDTH` × `PANEL_HEIGHT` footprint; mobile fills its parent.
818
+ * `PANEL_WIDTH` × `PANEL_HEIGHT` footprint (or fills its parent with `fill`);
819
+ * mobile fills its parent.
813
820
  */
814
- declare function AgentListPanel({ consumerId, onSelect, navigateTo, activeAgentId, initialTab, includeSystemInAll, visibleTabs, excludeAgentIds, defaultMandateKey, resolveAgentHref: resolveAgentHrefProp, className, ...display }: AgentListPanelProps): react.JSX.Element;
821
+ declare function AgentListPanel({ consumerId, onSelect, navigateTo, activeAgentId, initialTab, includeSystemInAll, visibleTabs, excludeAgentIds, defaultMandateKey, resolveAgentHref: resolveAgentHrefProp, className, fill, ...display }: AgentListPanelProps): react.JSX.Element;
815
822
 
816
823
  interface AgentListInlinePickerProps {
817
824
  /** Unique consumer id for filter/tab state (see `useAgentConsumer`). */
@@ -2328,7 +2328,7 @@ function AgentListPanelBody({
2328
2328
  ) : listPanel });
2329
2329
  }
2330
2330
  return /* @__PURE__ */ jsxs12("div", { className: cn6("flex h-full", className), children: [
2331
- /* @__PURE__ */ jsx15("div", { className: "flex flex-col min-w-0 w-[340px] shrink-0 border-r border-border", children: listPanel }),
2331
+ /* @__PURE__ */ jsx15("div", { className: "flex flex-col min-w-[340px] flex-1 border-r border-border", children: listPanel }),
2332
2332
  /* @__PURE__ */ jsxs12(
2333
2333
  "div",
2334
2334
  {
@@ -2397,6 +2397,7 @@ function AgentListPanel({
2397
2397
  defaultMandateKey,
2398
2398
  resolveAgentHref: resolveAgentHrefProp,
2399
2399
  className,
2400
+ fill = false,
2400
2401
  ...display
2401
2402
  }) {
2402
2403
  const isMobile = useIsMobile();
@@ -2419,8 +2420,8 @@ function AgentListPanel({
2419
2420
  return /* @__PURE__ */ jsx15(
2420
2421
  "div",
2421
2422
  {
2422
- className: cn6("flex min-h-0 flex-col overflow-hidden", isMobile && "h-full w-full", className),
2423
- style: isMobile ? void 0 : { width: PANEL_WIDTH, height: PANEL_HEIGHT },
2423
+ className: cn6("flex min-h-0 flex-col overflow-hidden", (isMobile || fill) && "h-full w-full", className),
2424
+ style: isMobile || fill ? void 0 : { width: PANEL_WIDTH, height: PANEL_HEIGHT },
2424
2425
  children: /* @__PURE__ */ jsx15(
2425
2426
  AgentListPanelBody,
2426
2427
  {