@ai-matrx/associations 0.13.135 → 0.13.136

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.
@@ -2351,8 +2351,35 @@ function createEntityRegistry(errorSink, initialOverlay) {
2351
2351
  const overlayByToken = {
2352
2352
  ...initialOverlay ?? {}
2353
2353
  };
2354
+ const retiredReported = /* @__PURE__ */ new Set();
2355
+ function retiredTokenMeta(token) {
2356
+ if (!retiredReported.has(token)) {
2357
+ retiredReported.add(token);
2358
+ errorSink({
2359
+ code: "retired_entity_token",
2360
+ message: `[entityRegistry] "${token}" is not in the live entity vocabulary (retired or renamed in platform.entity_types). The host still references it; rename the reference to the live token, or drop it. Serving a stand-in so the page can render.`,
2361
+ context: { token }
2362
+ });
2363
+ }
2364
+ return {
2365
+ token,
2366
+ schema: "",
2367
+ table: "",
2368
+ label: `${token} (retired)`,
2369
+ baseTier: 1,
2370
+ isComponent: false,
2371
+ isModule: false,
2372
+ isListed: false,
2373
+ scopeable: false,
2374
+ category: null,
2375
+ referencePickable: false,
2376
+ titleColumn: null,
2377
+ contentRole: null,
2378
+ referenceCategory: null
2379
+ };
2380
+ }
2354
2381
  function getEntityInfo(token) {
2355
- const meta = ENTITY_TYPE_METADATA[token];
2382
+ const meta = ENTITY_TYPE_METADATA[token] ?? retiredTokenMeta(token);
2356
2383
  const overlay = overlayByToken[token];
2357
2384
  const labelPlural = overlay?.labelPlural ?? `${meta.label}s`;
2358
2385
  const titleColumn = meta.titleColumn;