@ai-matrx/agents 0.12.8 → 0.13.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.
@@ -440,6 +440,8 @@ interface AgentCatalog {
440
440
  getDefaultRow(mandateKey: string): DefaultRowState | undefined;
441
441
  /** A person acknowledged the drift banner. The notifier already fired. */
442
442
  dismissDefaultRowDrift(mandateKey: string): void;
443
+ /** Re-ask the mandate door for a row that refused (see ensureDefaultRow). */
444
+ retryDefaultRow(mandateKey: string): void;
443
445
  assertSchema(options?: AssertAgentCatalogSchemaOptions): Promise<AgentCatalogSchemaReport>;
444
446
  }
445
447
 
@@ -440,6 +440,8 @@ interface AgentCatalog {
440
440
  getDefaultRow(mandateKey: string): DefaultRowState | undefined;
441
441
  /** A person acknowledged the drift banner. The notifier already fired. */
442
442
  dismissDefaultRowDrift(mandateKey: string): void;
443
+ /** Re-ask the mandate door for a row that refused (see ensureDefaultRow). */
444
+ retryDefaultRow(mandateKey: string): void;
443
445
  assertSchema(options?: AssertAgentCatalogSchemaOptions): Promise<AgentCatalogSchemaReport>;
444
446
  }
445
447
 
@@ -1867,7 +1867,16 @@ function AgentListContent({
1867
1867
  className: "matrx-agent-drift-banner mx-2 mb-1.5 flex items-start gap-2 rounded-md px-2 py-1.5 shrink-0",
1868
1868
  children: [
1869
1869
  /* @__PURE__ */ jsx11(AlertTriangleIcon, { className: "w-3.5 h-3.5 shrink-0 mt-px" }),
1870
- /* @__PURE__ */ jsx11("span", { className: "text-[11px] leading-snug flex-1", children: defaultRow.error })
1870
+ /* @__PURE__ */ jsx11("span", { className: "text-[11px] leading-snug flex-1", children: defaultRow.error }),
1871
+ /* @__PURE__ */ jsx11(
1872
+ "button",
1873
+ {
1874
+ type: "button",
1875
+ onClick: () => catalog.retryDefaultRow(defaultRow.mandateKey),
1876
+ className: "shrink-0 text-[11px] font-medium underline underline-offset-2 opacity-80 hover:opacity-100",
1877
+ children: "Try again"
1878
+ }
1879
+ )
1871
1880
  ]
1872
1881
  }
1873
1882
  ),