@cosmicdrift/kumiko-framework 0.237.2 → 0.238.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-framework",
3
- "version": "0.237.2",
3
+ "version": "0.238.0",
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.237.2",
201
+ "@cosmicdrift/kumiko-types": "0.238.0",
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.237.2",
217
+ "@cosmicdrift/kumiko-dispatcher-live": "0.238.0",
218
218
  "bun-types": "^1.3.13",
219
219
  "pino-pretty": "^13.1.3"
220
220
  },
@@ -107,5 +107,13 @@ export type {
107
107
  QualifiedContentCollection,
108
108
  WorkspaceSchema,
109
109
  } from "./app-schema";
110
- export type { ListRowMetaColumnType, ListRowMetaReference } from "./list-row-meta";
111
- export { LIST_ROW_META_COLUMNS, LIST_ROW_META_REFERENCES } from "./list-row-meta";
110
+ export type {
111
+ ListRowMetaColumnType,
112
+ ListRowMetaReference,
113
+ SystemReferenceLabel,
114
+ } from "./list-row-meta";
115
+ export {
116
+ LIST_ROW_META_COLUMNS,
117
+ LIST_ROW_META_REFERENCES,
118
+ SYSTEM_REFERENCE_LABELS,
119
+ } from "./list-row-meta";
@@ -12,6 +12,8 @@
12
12
  // deletedById) — this is also the SAME set the boot-validator's entityList
13
13
  // column checks accept, so a softDelete column stays a boot-time error
14
14
  // instead of a renderer-side throw (see screens.ts / entity-list-screens.ts).
15
+ import { SYSTEM_TENANT_ID } from "../engine/types/identifiers";
16
+
15
17
  export type ListRowMetaColumnType = "text" | "number" | "timestamp";
16
18
 
17
19
  export const LIST_ROW_META_COLUMNS: Readonly<Record<string, ListRowMetaColumnType>> = {
@@ -39,3 +41,19 @@ export type ListRowMetaReference = {
39
41
  export const LIST_ROW_META_REFERENCES: Readonly<Record<string, ListRowMetaReference>> = {
40
42
  tenantId: { refFeature: "tenant", refEntity: "tenant", refLabelField: "name" },
41
43
  };
44
+
45
+ export type SystemReferenceLabel = {
46
+ readonly id: string;
47
+ readonly labelKey: string;
48
+ };
49
+
50
+ // Reference ids that never resolve through the bulk id->row lookup because
51
+ // no row exists for them (e.g. SYSTEM_TENANT_ID has no tenant record, see
52
+ // isSystemTenant()) — every reference column falls back to the raw id
53
+ // otherwise. Keyed by `${refFeature}:${refEntity}` so useReferenceLookup can
54
+ // consult this generically instead of any screen/hook hardcoding an entity
55
+ // name. Central so the label applies to every screen that references this
56
+ // entity, not just delivery-log (fw#2662).
57
+ export const SYSTEM_REFERENCE_LABELS: Readonly<Record<string, SystemReferenceLabel>> = {
58
+ "tenant:tenant": { id: SYSTEM_TENANT_ID, labelKey: "kumiko.reference.system-tenant" },
59
+ };