@cosmicdrift/kumiko-dev-server 0.269.1 → 0.270.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-dev-server",
3
- "version": "0.269.1",
3
+ "version": "0.270.0",
4
4
  "description": "Dev-tooling for Kumiko apps: local dev-server bootstrap (runDevApp), scaffolding, codegen. Its compose-stacks/env-schema subpaths are consumed at prod boot too — see @cosmicdrift/kumiko-server-runtime for the prod runner itself.",
5
5
  "license": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -59,9 +59,9 @@
59
59
  "kumiko-upgrade": "./bin/kumiko-upgrade.ts"
60
60
  },
61
61
  "dependencies": {
62
- "@cosmicdrift/kumiko-bundled-features": "0.269.1",
63
- "@cosmicdrift/kumiko-framework": "0.269.1",
64
- "@cosmicdrift/kumiko-server-runtime": "0.269.1",
62
+ "@cosmicdrift/kumiko-bundled-features": "0.270.0",
63
+ "@cosmicdrift/kumiko-framework": "0.270.0",
64
+ "@cosmicdrift/kumiko-server-runtime": "0.270.0",
65
65
  "ts-morph": "^28.0.0"
66
66
  },
67
67
  "publishConfig": {
@@ -36,7 +36,7 @@ const PAGE_SIZE = "devcfg:config:page-size";
36
36
  const readPageSizeQuery = defineQueryHandler({
37
37
  name: "read-page-size",
38
38
  schema: z.object({}),
39
- access: { openToAll: true },
39
+ access: { openToAll: { reason: "test handler callable by any signed-in test user" } },
40
40
  handler: async (_query, ctx) => ({ pageSize: await ctx.config?.(PAGE_SIZE) }),
41
41
  });
42
42
 
@@ -154,7 +154,7 @@ describe("runDevApp — extraContext merge order: app values win over boot defau
154
154
  const readBlockQuery = defineQueryHandler({
155
155
  name: "read-block",
156
156
  schema: z.object({}),
157
- access: { openToAll: true },
157
+ access: { openToAll: { reason: "test handler callable by any signed-in test user" } },
158
158
  handler: async (_query, ctx) => {
159
159
  const api = requireTemplateResolver(ctx, "textcheck:query:read-block");
160
160
  return api.findExact({
@@ -52,7 +52,16 @@ const editScreen: EntityEditScreenDefinition = {
52
52
  },
53
53
  };
54
54
 
55
- const open = { access: { openToAll: true } } as const;
55
+ const TASKS_OPEN_REASON =
56
+ "scaffolded demo handler: every signed-in user of the demo tenant manages their tasks";
57
+
58
+ const open = {
59
+ access: {
60
+ openToAll: {
61
+ reason: TASKS_OPEN_REASON,
62
+ },
63
+ },
64
+ } as const;
56
65
 
57
66
  const TASKS_I18N = {
58
67
  "screen:task-list.title": { de: "Aufgaben", en: "Tasks" },
@@ -142,7 +151,13 @@ const editScreen: EntityEditScreenDefinition = {
142
151
  },
143
152
  };
144
153
 
145
- const open = { access: { openToAll: true } } as const;
154
+ const open = {
155
+ access: {
156
+ openToAll: {
157
+ reason: "scaffolded demo handler: every signed-in user of the demo tenant manages their tasks",
158
+ },
159
+ },
160
+ } as const;
146
161
 
147
162
  export const tasksFeature = defineFeature("tasks", (r) => {
148
163
  r.translations({ keys: tasksTranslationKeys });