@ai-matrx/agents 0.21.44 → 0.22.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 (35) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/catalog/index.cjs +7 -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 +7 -0
  7. package/dist/catalog/index.js.map +1 -1
  8. package/dist/catalog/native/index.cjs +1 -1
  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 +1 -1
  13. package/dist/catalog/native/index.js.map +1 -1
  14. package/dist/catalog/react/index.cjs +1 -1
  15. package/dist/catalog/react/index.cjs.map +1 -1
  16. package/dist/catalog/react/index.d.cts +2 -0
  17. package/dist/catalog/react/index.d.ts +2 -0
  18. package/dist/catalog/react/index.js +1 -1
  19. package/dist/catalog/react/index.js.map +1 -1
  20. package/dist/content-transfer/index.cjs.map +1 -1
  21. package/dist/content-transfer/index.js.map +1 -1
  22. package/dist/content-transfer/react/index.cjs.map +1 -1
  23. package/dist/content-transfer/react/index.js.map +1 -1
  24. package/dist/mandates/index.cjs +2 -2
  25. package/dist/mandates/index.cjs.map +1 -1
  26. package/dist/mandates/index.d.cts +4 -4
  27. package/dist/mandates/index.d.ts +4 -4
  28. package/dist/mandates/index.js +2 -2
  29. package/dist/mandates/index.js.map +1 -1
  30. package/dist/{orchestra-PbGGooqJ.d.cts → orchestra-zpGHwOag.d.cts} +9 -0
  31. package/dist/{orchestra-PbGGooqJ.d.ts → orchestra-zpGHwOag.d.ts} +9 -0
  32. package/mandates/snapshots/keys.0.21.45.json +652 -0
  33. package/mandates/snapshots/keys.0.21.46.json +652 -0
  34. package/mandates/snapshots/keys.0.22.0.json +652 -0
  35. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.22.0
4
+
5
+ - **A signed-out visitor never reads the agent catalogue** (live 2026-10-01: every guest page that mounted a picker — `/education/progress`, `/demos/spatial` — fired `agx_get_list_full`, which `anon` cannot execute, and captured `permission denied for function agx_get_list_full` plus `identity.requireUserId() threw`). `ensureLoaded` now answers the empty catalogue with no read when there is no user, and does not stamp freshness, so the first load after sign-in reads for real. The pickers (web + native) show `labels.emptySignedOut` ("Sign in to see your agents") instead of "No agents found". Guard: `catalog/__tests__/store.test.ts` › "signed out never reads the catalogue".
6
+ - **New optional identity port `getUserId(): string | null`.** When bound, a signed-out visitor is a state, not a failure: `getUserIdOrNull()` answers from it and nothing is reported to the errorSink. Hosts that bind only `requireUserId` keep the old once-per-session `identity_unavailable` report.
7
+ - **New label `emptySignedOut`** on `AgentCatalogLabels` (defaulted; hosts merging partial labels need no change).
8
+ - Consumer action: bind `identity.getUserId` beside `requireUserId` (matrx-frontend: `lib/agents/catalog.ts`, `getUserId` from `@/utils/auth/getUserId`). A host passing a COMPLETE `AgentCatalogLabels` object adds `emptySignedOut`.
9
+
10
+ ## 0.21.46
11
+
12
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
13
+ `git diff npm/matrx-agents/v0.21.45..npm/matrx-agents/v0.21.46 -- apps/shared/matrx-agents`).
14
+ No source changes intended and no consumer action required.
15
+
16
+ ## 0.21.45
17
+
18
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
19
+ `git diff npm/matrx-agents/v0.21.44..npm/matrx-agents/v0.21.45 -- apps/shared/matrx-agents`).
20
+ No source changes intended and no consumer action required.
21
+
3
22
  ## 0.21.44
4
23
 
5
24
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -179,6 +179,7 @@ var DEFAULT_AGENT_CATALOG_LABELS = {
179
179
  emptyDefault: "No agents found",
180
180
  emptyShared: "No shared agents found",
181
181
  emptySystem: "No system agents found",
182
+ emptySignedOut: "Sign in to see your agents",
182
183
  loading: "Loading...",
183
184
  triggerFallback: "Agents",
184
185
  triggerResolving: "Naming the agent\u2026",
@@ -833,6 +834,7 @@ function createAgentCatalog(config) {
833
834
  }
834
835
  let anonymousReported = false;
835
836
  function getUserIdOrNull() {
837
+ if (typeof identity.getUserId === "function") return identity.getUserId();
836
838
  try {
837
839
  return identity.requireUserId();
838
840
  } catch (e) {
@@ -858,6 +860,11 @@ function createAgentCatalog(config) {
858
860
  return Date.now() - at > LIST_STALE_MS;
859
861
  }
860
862
  async function load() {
863
+ if (getUserIdOrNull() === null) {
864
+ if (state.rows.length > 0) replaceRows([]);
865
+ publish({ ...state, status: "succeeded", error: null });
866
+ return;
867
+ }
861
868
  publish({ ...state, status: "loading", error: null });
862
869
  try {
863
870
  const rows = await overlayAgentFavorites(