@ai-matrx/agents 0.14.3 → 0.15.0

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.
@@ -765,6 +765,54 @@ interface AgentListDropdownProps {
765
765
  }
766
766
  declare function AgentListDropdown({ onSelect, navigateTo, className, label, triggerSlot, noBorder, compact, activeAgentId: activeAgentIdProp, contentSide, consumerId, initialTab, includeSystemInAll, visibleTabs, systemTabLabel, resolveAgentHref: resolveAgentHrefProp, showPinnedAgent, excludeAgentIds, defaultMandateKey, }: AgentListDropdownProps): react.JSX.Element;
767
767
 
768
+ /** The desktop picker's fixed footprint: a 340px list + a 340px peek. */
769
+ declare const PANEL_WIDTH = "680px";
770
+ type AgentListCore = ReturnType<typeof useAgentListCore>;
771
+ interface AgentListPanelDisplayProps {
772
+ /** Restrict which ownership tabs are available for domain-constrained pickers. */
773
+ visibleTabs?: readonly AgentTab[];
774
+ /** Label override for the builtin-agent tab. Admin surfaces use "System". */
775
+ systemTabLabel?: string;
776
+ /** ADMIN variant: blend system agents into the "All" tab (also labels it "System"). */
777
+ includeSystemInAll?: boolean;
778
+ /** Resolve the route used by each named agent door. */
779
+ resolveAgentHref?: (agent: AgentSummary) => string;
780
+ /** Show the active agent above the filtered list. Default true. */
781
+ showPinnedAgent?: boolean;
782
+ /** Focus the search field when the picker appears. Default true. */
783
+ autoFocusSearch?: boolean;
784
+ /** Runs after an agent is chosen (the core has already called `onSelect`). */
785
+ onAfterSelect?: (agent: AgentSummary) => void;
786
+ className?: string;
787
+ }
788
+ interface AgentListPanelBodyProps extends AgentListPanelDisplayProps {
789
+ /** The list core the host holds (`useAgentListCore`). */
790
+ core: AgentListCore;
791
+ }
792
+ /** The picker body over a core the host already holds. Fills its parent. */
793
+ declare function AgentListPanelBody({ core, visibleTabs, systemTabLabel, includeSystemInAll, resolveAgentHref, showPinnedAgent, autoFocusSearch, onAfterSelect, className, }: AgentListPanelBodyProps): react.JSX.Element;
794
+ interface AgentListPanelProps extends AgentListPanelDisplayProps {
795
+ /** Unique consumer id for this picker's filter/tab state. */
796
+ consumerId: string;
797
+ /** The chosen agent's id (`mandate:<key>` for a mandate default row). */
798
+ onSelect?: (agentId: string) => void;
799
+ /** Navigate on select instead of (or besides) `onSelect`; `{id}` is replaced. */
800
+ navigateTo?: string;
801
+ /** Highlights + pins this agent in the list. */
802
+ activeAgentId?: string | null;
803
+ /** Tab to open on. Admin surfaces managing system agents pass `"system"`. */
804
+ initialTab?: AgentTab;
805
+ /** Hide records that are invalid for this call site. */
806
+ excludeAgentIds?: readonly string[];
807
+ /** Offer the mandate's live-resolved default agent at the top of the list. */
808
+ defaultMandateKey?: string;
809
+ }
810
+ /**
811
+ * The self-contained picker: owns its list core. Desktop renders at the fixed
812
+ * `PANEL_WIDTH` × `PANEL_HEIGHT` footprint; mobile fills its parent.
813
+ */
814
+ declare function AgentListPanel({ consumerId, onSelect, navigateTo, activeAgentId, initialTab, includeSystemInAll, visibleTabs, excludeAgentIds, defaultMandateKey, resolveAgentHref: resolveAgentHrefProp, className, ...display }: AgentListPanelProps): react.JSX.Element;
815
+
768
816
  interface AgentListInlinePickerProps {
769
817
  /** Unique consumer id for filter/tab state (see `useAgentConsumer`). */
770
818
  consumerId: string;
@@ -1056,4 +1104,4 @@ declare function orchestraDepthLine(badge: OrchestraBadge): string | null;
1056
1104
  */
1057
1105
  declare function orchestraDelegatesLine(badge: OrchestraBadge, limit?: number): string | null;
1058
1106
 
1059
- export { type AgentCatalogLinkComponent, AgentCatalogProvider, type AgentCatalogProviderProps, type AgentCatalogRenderModelRef, type AgentCatalogUiPorts, AgentCategoriesPanel, type AgentCategoriesPanelProps, AgentDetailCard, type AgentDetailCardProps, AgentFilterBar, type AgentFilterBarProps, AgentListContent, type AgentListContentProps, type AgentListCoreOptions, AgentListDropdown, type AgentListDropdownProps, AgentListInlinePicker, type AgentListInlinePickerProps, type AgentListTabCounts, AgentListTabs, AgentMobileSubView, type AgentMobileSubViewProps, AgentRow, type AgentRowProps, AgentSortPanel, type AgentSortPanelProps, AgentTagsPanel, type AgentTagsPanelProps, CheckRow, FavoriteAgentButton, FilterChip, HOVER_GRACE_MS, type IconProps, LIST_MAX_HEIGHT, Music4Icon, OptionRow, type OrchestraBadge, PANEL_HEIGHT, type RightPanel, SORT_OPTIONS, SearchInput, SidePanelHeader, type UseAgentConsumerReturn, coerceVisibleTab, orchestraDelegatesLine, orchestraDepthLine, orchestraLabel, orchestraModeLabel, panelHeightBelow, useAgentCatalog, useAgentCatalogRows, useAgentCatalogState, useAgentCatalogUiPorts, useAgentConsumer, useAgentListCore };
1107
+ export { type AgentCatalogLinkComponent, AgentCatalogProvider, type AgentCatalogProviderProps, type AgentCatalogRenderModelRef, type AgentCatalogUiPorts, AgentCategoriesPanel, type AgentCategoriesPanelProps, AgentDetailCard, type AgentDetailCardProps, AgentFilterBar, type AgentFilterBarProps, AgentListContent, type AgentListContentProps, type AgentListCoreOptions, AgentListDropdown, type AgentListDropdownProps, AgentListInlinePicker, type AgentListInlinePickerProps, AgentListPanel, AgentListPanelBody, type AgentListPanelBodyProps, type AgentListPanelProps, type AgentListTabCounts, AgentListTabs, AgentMobileSubView, type AgentMobileSubViewProps, AgentRow, type AgentRowProps, AgentSortPanel, type AgentSortPanelProps, AgentTagsPanel, type AgentTagsPanelProps, CheckRow, FavoriteAgentButton, FilterChip, HOVER_GRACE_MS, type IconProps, LIST_MAX_HEIGHT, Music4Icon, OptionRow, type OrchestraBadge, PANEL_HEIGHT, PANEL_WIDTH, type RightPanel, SORT_OPTIONS, SearchInput, SidePanelHeader, type UseAgentConsumerReturn, coerceVisibleTab, orchestraDelegatesLine, orchestraDepthLine, orchestraLabel, orchestraModeLabel, panelHeightBelow, useAgentCatalog, useAgentCatalogRows, useAgentCatalogState, useAgentCatalogUiPorts, useAgentConsumer, useAgentListCore };
@@ -765,6 +765,54 @@ interface AgentListDropdownProps {
765
765
  }
766
766
  declare function AgentListDropdown({ onSelect, navigateTo, className, label, triggerSlot, noBorder, compact, activeAgentId: activeAgentIdProp, contentSide, consumerId, initialTab, includeSystemInAll, visibleTabs, systemTabLabel, resolveAgentHref: resolveAgentHrefProp, showPinnedAgent, excludeAgentIds, defaultMandateKey, }: AgentListDropdownProps): react.JSX.Element;
767
767
 
768
+ /** The desktop picker's fixed footprint: a 340px list + a 340px peek. */
769
+ declare const PANEL_WIDTH = "680px";
770
+ type AgentListCore = ReturnType<typeof useAgentListCore>;
771
+ interface AgentListPanelDisplayProps {
772
+ /** Restrict which ownership tabs are available for domain-constrained pickers. */
773
+ visibleTabs?: readonly AgentTab[];
774
+ /** Label override for the builtin-agent tab. Admin surfaces use "System". */
775
+ systemTabLabel?: string;
776
+ /** ADMIN variant: blend system agents into the "All" tab (also labels it "System"). */
777
+ includeSystemInAll?: boolean;
778
+ /** Resolve the route used by each named agent door. */
779
+ resolveAgentHref?: (agent: AgentSummary) => string;
780
+ /** Show the active agent above the filtered list. Default true. */
781
+ showPinnedAgent?: boolean;
782
+ /** Focus the search field when the picker appears. Default true. */
783
+ autoFocusSearch?: boolean;
784
+ /** Runs after an agent is chosen (the core has already called `onSelect`). */
785
+ onAfterSelect?: (agent: AgentSummary) => void;
786
+ className?: string;
787
+ }
788
+ interface AgentListPanelBodyProps extends AgentListPanelDisplayProps {
789
+ /** The list core the host holds (`useAgentListCore`). */
790
+ core: AgentListCore;
791
+ }
792
+ /** The picker body over a core the host already holds. Fills its parent. */
793
+ declare function AgentListPanelBody({ core, visibleTabs, systemTabLabel, includeSystemInAll, resolveAgentHref, showPinnedAgent, autoFocusSearch, onAfterSelect, className, }: AgentListPanelBodyProps): react.JSX.Element;
794
+ interface AgentListPanelProps extends AgentListPanelDisplayProps {
795
+ /** Unique consumer id for this picker's filter/tab state. */
796
+ consumerId: string;
797
+ /** The chosen agent's id (`mandate:<key>` for a mandate default row). */
798
+ onSelect?: (agentId: string) => void;
799
+ /** Navigate on select instead of (or besides) `onSelect`; `{id}` is replaced. */
800
+ navigateTo?: string;
801
+ /** Highlights + pins this agent in the list. */
802
+ activeAgentId?: string | null;
803
+ /** Tab to open on. Admin surfaces managing system agents pass `"system"`. */
804
+ initialTab?: AgentTab;
805
+ /** Hide records that are invalid for this call site. */
806
+ excludeAgentIds?: readonly string[];
807
+ /** Offer the mandate's live-resolved default agent at the top of the list. */
808
+ defaultMandateKey?: string;
809
+ }
810
+ /**
811
+ * The self-contained picker: owns its list core. Desktop renders at the fixed
812
+ * `PANEL_WIDTH` × `PANEL_HEIGHT` footprint; mobile fills its parent.
813
+ */
814
+ declare function AgentListPanel({ consumerId, onSelect, navigateTo, activeAgentId, initialTab, includeSystemInAll, visibleTabs, excludeAgentIds, defaultMandateKey, resolveAgentHref: resolveAgentHrefProp, className, ...display }: AgentListPanelProps): react.JSX.Element;
815
+
768
816
  interface AgentListInlinePickerProps {
769
817
  /** Unique consumer id for filter/tab state (see `useAgentConsumer`). */
770
818
  consumerId: string;
@@ -1056,4 +1104,4 @@ declare function orchestraDepthLine(badge: OrchestraBadge): string | null;
1056
1104
  */
1057
1105
  declare function orchestraDelegatesLine(badge: OrchestraBadge, limit?: number): string | null;
1058
1106
 
1059
- export { type AgentCatalogLinkComponent, AgentCatalogProvider, type AgentCatalogProviderProps, type AgentCatalogRenderModelRef, type AgentCatalogUiPorts, AgentCategoriesPanel, type AgentCategoriesPanelProps, AgentDetailCard, type AgentDetailCardProps, AgentFilterBar, type AgentFilterBarProps, AgentListContent, type AgentListContentProps, type AgentListCoreOptions, AgentListDropdown, type AgentListDropdownProps, AgentListInlinePicker, type AgentListInlinePickerProps, type AgentListTabCounts, AgentListTabs, AgentMobileSubView, type AgentMobileSubViewProps, AgentRow, type AgentRowProps, AgentSortPanel, type AgentSortPanelProps, AgentTagsPanel, type AgentTagsPanelProps, CheckRow, FavoriteAgentButton, FilterChip, HOVER_GRACE_MS, type IconProps, LIST_MAX_HEIGHT, Music4Icon, OptionRow, type OrchestraBadge, PANEL_HEIGHT, type RightPanel, SORT_OPTIONS, SearchInput, SidePanelHeader, type UseAgentConsumerReturn, coerceVisibleTab, orchestraDelegatesLine, orchestraDepthLine, orchestraLabel, orchestraModeLabel, panelHeightBelow, useAgentCatalog, useAgentCatalogRows, useAgentCatalogState, useAgentCatalogUiPorts, useAgentConsumer, useAgentListCore };
1107
+ export { type AgentCatalogLinkComponent, AgentCatalogProvider, type AgentCatalogProviderProps, type AgentCatalogRenderModelRef, type AgentCatalogUiPorts, AgentCategoriesPanel, type AgentCategoriesPanelProps, AgentDetailCard, type AgentDetailCardProps, AgentFilterBar, type AgentFilterBarProps, AgentListContent, type AgentListContentProps, type AgentListCoreOptions, AgentListDropdown, type AgentListDropdownProps, AgentListInlinePicker, type AgentListInlinePickerProps, AgentListPanel, AgentListPanelBody, type AgentListPanelBodyProps, type AgentListPanelProps, type AgentListTabCounts, AgentListTabs, AgentMobileSubView, type AgentMobileSubViewProps, AgentRow, type AgentRowProps, AgentSortPanel, type AgentSortPanelProps, AgentTagsPanel, type AgentTagsPanelProps, CheckRow, FavoriteAgentButton, FilterChip, HOVER_GRACE_MS, type IconProps, LIST_MAX_HEIGHT, Music4Icon, OptionRow, type OrchestraBadge, PANEL_HEIGHT, PANEL_WIDTH, type RightPanel, SORT_OPTIONS, SearchInput, SidePanelHeader, type UseAgentConsumerReturn, coerceVisibleTab, orchestraDelegatesLine, orchestraDepthLine, orchestraLabel, orchestraModeLabel, panelHeightBelow, useAgentCatalog, useAgentCatalogRows, useAgentCatalogState, useAgentCatalogUiPorts, useAgentConsumer, useAgentListCore };