@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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.1
4
+
5
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
6
+ `git diff npm/matrx-agents/v0.13.0..npm/matrx-agents/v0.13.1 -- apps/shared/matrx-agents`).
7
+ No source changes intended and no consumer action required.
8
+
9
+ ## 0.13.0
10
+
11
+ `catalog`: an errored mandate default row is no longer cached like a resolved one. `ensureDefaultRow` re-asks the mandate door when the existing row is a refusal, and the new `retryDefaultRow(mandateKey)` drops the refusal and asks again; the picker's error banner now carries a "Try again" button wired to it. Closes the matrx-extend defect of 2026-09-19 where one 401 during session hydration pinned "the server refused to resolve it" on the default agent for the whole session.
12
+
13
+ ### Consumer action
14
+
15
+ None required. A host that renders its own picker may call `catalog.retryDefaultRow(key)` from its error surface.
16
+
3
17
  ## 0.12.8
4
18
 
5
19
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -966,9 +966,9 @@ function createAgentCatalog(config) {
966
966
  const defaultRowsInFlight = /* @__PURE__ */ new Set();
967
967
  function ensureDefaultRow(mandateKey) {
968
968
  if (!mandateKey) return;
969
- if (state.defaultRows[mandateKey] || defaultRowsInFlight.has(mandateKey)) {
970
- return;
971
- }
969
+ if (defaultRowsInFlight.has(mandateKey)) return;
970
+ const current = state.defaultRows[mandateKey];
971
+ if (current && !current.error) return;
972
972
  if (!transport) {
973
973
  throw new AgentCatalogConfigError({
974
974
  code: "missing_transport",
@@ -1047,6 +1047,12 @@ function createAgentCatalog(config) {
1047
1047
  if (!current || !current.drift) return;
1048
1048
  writeDefaultRow(mandateKey, { ...current, drift: null });
1049
1049
  }
1050
+ function retryDefaultRow(mandateKey) {
1051
+ if (!mandateKey || defaultRowsInFlight.has(mandateKey)) return;
1052
+ const { [mandateKey]: _dropped, ...rest } = state.defaultRows;
1053
+ publish({ ...state, defaultRows: rest });
1054
+ ensureDefaultRow(mandateKey);
1055
+ }
1050
1056
  const catalog = {
1051
1057
  catalogId,
1052
1058
  labels,
@@ -1078,6 +1084,7 @@ function createAgentCatalog(config) {
1078
1084
  ensureDefaultRow,
1079
1085
  getDefaultRow,
1080
1086
  dismissDefaultRowDrift,
1087
+ retryDefaultRow,
1081
1088
  assertSchema: (options) => assertAgentCatalogSchema(client, options)
1082
1089
  };
1083
1090
  globalState.catalogs.set(catalogId, catalog);