@cosmicdrift/kumiko-framework 0.235.1 → 0.235.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-framework",
3
- "version": "0.235.1",
3
+ "version": "0.235.2",
4
4
  "description": "Framework core — engine, pipeline, API, DB, and every other bit that makes Kumiko go.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -198,7 +198,7 @@
198
198
  "./package.json": "./package.json"
199
199
  },
200
200
  "dependencies": {
201
- "@cosmicdrift/kumiko-types": "0.235.1",
201
+ "@cosmicdrift/kumiko-types": "0.235.2",
202
202
  "bullmq": "^5.76.7",
203
203
  "bun-types": "^1.3.13",
204
204
  "hono": "^4.13.1",
@@ -214,7 +214,7 @@
214
214
  "zod": "^4.4.3"
215
215
  },
216
216
  "devDependencies": {
217
- "@cosmicdrift/kumiko-dispatcher-live": "0.235.1",
217
+ "@cosmicdrift/kumiko-dispatcher-live": "0.235.2",
218
218
  "bun-types": "^1.3.13",
219
219
  "pino-pretty": "^13.1.3"
220
220
  },
@@ -107,5 +107,5 @@ export type {
107
107
  QualifiedContentCollection,
108
108
  WorkspaceSchema,
109
109
  } from "./app-schema";
110
- export type { ListRowMetaColumnType } from "./list-row-meta";
111
- export { LIST_ROW_META_COLUMNS } from "./list-row-meta";
110
+ export type { ListRowMetaColumnType, ListRowMetaReference } from "./list-row-meta";
111
+ export { LIST_ROW_META_COLUMNS, LIST_ROW_META_REFERENCES } from "./list-row-meta";
@@ -23,3 +23,19 @@ export const LIST_ROW_META_COLUMNS: Readonly<Record<string, ListRowMetaColumnTyp
23
23
  insertedById: "text",
24
24
  modifiedById: "text",
25
25
  };
26
+
27
+ export type ListRowMetaReference = {
28
+ readonly refFeature: string;
29
+ readonly refEntity: string;
30
+ readonly refLabelField: string;
31
+ };
32
+
33
+ // tenantId would otherwise render the raw GUID; the lookup query is
34
+ // `tenant:query:tenant:list`, cross-tenant because the feature is
35
+ // `r.systemScope()`.
36
+ // ponytail: bulk lookup is capped at REFERENCE_LIST_LOOKUP_LIMIT (200) —
37
+ // above that, rows fall back to the GUID; paginate the lookup if an install
38
+ // ever exceeds it.
39
+ export const LIST_ROW_META_REFERENCES: Readonly<Record<string, ListRowMetaReference>> = {
40
+ tenantId: { refFeature: "tenant", refEntity: "tenant", refLabelField: "name" },
41
+ };