@ai-matrx/agents 0.14.0 → 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.
Files changed (38) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/catalog/index.cjs +1 -0
  3. package/dist/catalog/index.cjs.map +1 -1
  4. package/dist/catalog/index.d.cts +2 -2
  5. package/dist/catalog/index.d.ts +2 -2
  6. package/dist/catalog/index.js +1 -0
  7. package/dist/catalog/index.js.map +1 -1
  8. package/dist/catalog/native/index.cjs +16 -0
  9. package/dist/catalog/native/index.cjs.map +1 -1
  10. package/dist/catalog/native/index.d.cts +2 -2
  11. package/dist/catalog/native/index.d.ts +2 -2
  12. package/dist/catalog/native/index.js +16 -0
  13. package/dist/catalog/native/index.js.map +1 -1
  14. package/dist/catalog/react/index.cjs +322 -207
  15. package/dist/catalog/react/index.cjs.map +1 -1
  16. package/dist/catalog/react/index.d.cts +75 -1
  17. package/dist/catalog/react/index.d.ts +75 -1
  18. package/dist/catalog/react/index.js +323 -208
  19. package/dist/catalog/react/index.js.map +1 -1
  20. package/dist/content-transfer/index.cjs +2 -0
  21. package/dist/content-transfer/index.cjs.map +1 -1
  22. package/dist/content-transfer/index.js +2 -0
  23. package/dist/content-transfer/index.js.map +1 -1
  24. package/dist/content-transfer/react/index.cjs +2 -0
  25. package/dist/content-transfer/react/index.cjs.map +1 -1
  26. package/dist/content-transfer/react/index.js +2 -0
  27. package/dist/content-transfer/react/index.js.map +1 -1
  28. package/dist/mandates/index.cjs +8 -2
  29. package/dist/mandates/index.cjs.map +1 -1
  30. package/dist/mandates/index.d.cts +8 -5
  31. package/dist/mandates/index.d.ts +8 -5
  32. package/dist/mandates/index.js +8 -2
  33. package/dist/mandates/index.js.map +1 -1
  34. package/dist/{orchestra-CVil7T5Y.d.cts → orchestra-BDXdut6Y.d.cts} +6 -0
  35. package/dist/{orchestra-CVil7T5Y.d.ts → orchestra-BDXdut6Y.d.ts} +6 -0
  36. package/mandates/snapshots/keys.0.14.3.json +625 -0
  37. package/mandates/snapshots/keys.0.15.0.json +625 -0
  38. package/package.json +3 -3
@@ -280,6 +280,12 @@ interface AgentCatalogLabels {
280
280
  * Recorded in the CHANGELOG and dropped rather than ported.)
281
281
  */
282
282
  systemBadge: string;
283
+ /**
284
+ * Badge on an archived row. Archived agents stay offered (THE ARCHIVED-ITEMS
285
+ * LAW: one or two clicks away) and say so on the row itself. Default
286
+ * `"Archived"`.
287
+ */
288
+ archivedBadge: string;
283
289
  searchPlaceholder: string;
284
290
  currentAgentHeading: string;
285
291
  emptyDefault: string;
@@ -759,6 +765,54 @@ interface AgentListDropdownProps {
759
765
  }
760
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;
761
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
+
762
816
  interface AgentListInlinePickerProps {
763
817
  /** Unique consumer id for filter/tab state (see `useAgentConsumer`). */
764
818
  consumerId: string;
@@ -823,6 +877,26 @@ declare const PANEL_HEIGHT = "528px";
823
877
  * the popover is open.
824
878
  */
825
879
  declare const LIST_MAX_HEIGHT = "min(528px, var(--radix-popper-available-height, 528px))";
880
+ /**
881
+ * 🚨 OPEN BELOW THE CONTROL WHENEVER THERE IS ROOM TO USE IT.
882
+ *
883
+ * Radix flips a popover to the side with more room using the panel's FULL
884
+ * height, so a trigger in the middle of a dialog (the mandate "Use my own"
885
+ * picker on a 1280x900 screen: 418px below, 528px panel) sent the whole panel
886
+ * ABOVE it — over the dialog's own title and controls, reading as a list
887
+ * floating at the top of the screen (2026-09-26). This measures the room
888
+ * below at open time: when a usable list fits there, the panel is sized to it
889
+ * and pinned to `side="bottom"`; only when it does not is Radix left to flip.
890
+ * The height is fixed for the whole time the panel is open, so nothing moves
891
+ * under the cursor (the reason the footprint is fixed at all).
892
+ *
893
+ * Returns a px height, or `null` for "use the default footprint and placement".
894
+ */
895
+ declare function panelHeightBelow(trigger: Element | null, options?: {
896
+ full?: number;
897
+ minUsable?: number;
898
+ gap?: number;
899
+ }): string | null;
826
900
 
827
901
  interface AgentListContentProps {
828
902
  agents: AgentSummary[];
@@ -1030,4 +1104,4 @@ declare function orchestraDepthLine(badge: OrchestraBadge): string | null;
1030
1104
  */
1031
1105
  declare function orchestraDelegatesLine(badge: OrchestraBadge, limit?: number): string | null;
1032
1106
 
1033
- 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, 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 };
@@ -280,6 +280,12 @@ interface AgentCatalogLabels {
280
280
  * Recorded in the CHANGELOG and dropped rather than ported.)
281
281
  */
282
282
  systemBadge: string;
283
+ /**
284
+ * Badge on an archived row. Archived agents stay offered (THE ARCHIVED-ITEMS
285
+ * LAW: one or two clicks away) and say so on the row itself. Default
286
+ * `"Archived"`.
287
+ */
288
+ archivedBadge: string;
283
289
  searchPlaceholder: string;
284
290
  currentAgentHeading: string;
285
291
  emptyDefault: string;
@@ -759,6 +765,54 @@ interface AgentListDropdownProps {
759
765
  }
760
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;
761
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
+
762
816
  interface AgentListInlinePickerProps {
763
817
  /** Unique consumer id for filter/tab state (see `useAgentConsumer`). */
764
818
  consumerId: string;
@@ -823,6 +877,26 @@ declare const PANEL_HEIGHT = "528px";
823
877
  * the popover is open.
824
878
  */
825
879
  declare const LIST_MAX_HEIGHT = "min(528px, var(--radix-popper-available-height, 528px))";
880
+ /**
881
+ * 🚨 OPEN BELOW THE CONTROL WHENEVER THERE IS ROOM TO USE IT.
882
+ *
883
+ * Radix flips a popover to the side with more room using the panel's FULL
884
+ * height, so a trigger in the middle of a dialog (the mandate "Use my own"
885
+ * picker on a 1280x900 screen: 418px below, 528px panel) sent the whole panel
886
+ * ABOVE it — over the dialog's own title and controls, reading as a list
887
+ * floating at the top of the screen (2026-09-26). This measures the room
888
+ * below at open time: when a usable list fits there, the panel is sized to it
889
+ * and pinned to `side="bottom"`; only when it does not is Radix left to flip.
890
+ * The height is fixed for the whole time the panel is open, so nothing moves
891
+ * under the cursor (the reason the footprint is fixed at all).
892
+ *
893
+ * Returns a px height, or `null` for "use the default footprint and placement".
894
+ */
895
+ declare function panelHeightBelow(trigger: Element | null, options?: {
896
+ full?: number;
897
+ minUsable?: number;
898
+ gap?: number;
899
+ }): string | null;
826
900
 
827
901
  interface AgentListContentProps {
828
902
  agents: AgentSummary[];
@@ -1030,4 +1104,4 @@ declare function orchestraDepthLine(badge: OrchestraBadge): string | null;
1030
1104
  */
1031
1105
  declare function orchestraDelegatesLine(badge: OrchestraBadge, limit?: number): string | null;
1032
1106
 
1033
- 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, 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 };