create-substrat 0.12.3 → 0.12.4

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/index.js CHANGED
@@ -36,12 +36,12 @@ const TEMPLATE = join(HERE, 'template');
36
36
  // The runtime packages release together off one version line (the changesets `fixed`
37
37
  // group), so one constant is right for all of them. Engines do NOT share a line —
38
38
  // each versions on its own, so one pin per engine, deliberately.
39
- const SUBSTRAT = '^0.153.0';
40
- const ENGINE_WORKORDER = '^0.12.37';
41
- const ENGINE_INVOICING = '^0.11.37';
39
+ const SUBSTRAT = '^0.154.0';
40
+ const ENGINE_WORKORDER = '^0.12.38';
41
+ const ENGINE_INVOICING = '^0.11.38';
42
42
  const BOUNDARY_LINT = '^0.8.0';
43
- const DEV_ISSUER = '^0.2.35';
44
- const ATTACHMENT_EXTRACTORS = '^0.2.14';
43
+ const DEV_ISSUER = '^0.2.36';
44
+ const ATTACHMENT_EXTRACTORS = '^0.2.15';
45
45
 
46
46
  const DOCS = 'https://substrat.net';
47
47
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-substrat",
3
- "version": "0.12.3",
3
+ "version": "0.12.4",
4
4
  "description": "Scaffold a Substrat vertical — `npm create substrat <dir>`.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,7 +12,7 @@ import {
12
12
  import { ulid } from '@substrat-run/kernel';
13
13
  import { SqliteScopeHost } from '@substrat-run/adapter-sqlite';
14
14
  import { defaultAttachmentExtractors } from '@substrat-run/attachment-extractors';
15
- import { ENTITLEMENT_KEYS, ENTITY_GRANTS, MODULES, OWNER_ROLE_KEY, portalPerms, ROLES } from './provision.js';
15
+ import { ENTITLEMENT_KEYS, ENTITY_GRANTS, MODULES, OWNER_ROLE_KEY, permissions, portalPerms, ROLES } from './provision.js';
16
16
 
17
17
  // The provisioning surface (modules, roles, grant shapes) lives in
18
18
  // provision.ts — node-free so the worker bundles it and `substrat push` reads
@@ -44,7 +44,7 @@ export interface BikeShopWorld {
44
44
  }
45
45
 
46
46
  export function buildBikeShopHost(dir: string): SqliteScopeHost {
47
- const host = new SqliteScopeHost({ dir, attachmentExtractors: defaultAttachmentExtractors() });
47
+ const host = new SqliteScopeHost({ dir, attachmentExtractors: defaultAttachmentExtractors(), permissions });
48
48
  for (const m of MODULES) host.registerModule(m);
49
49
  return host;
50
50
  }
@@ -56,13 +56,13 @@ import {
56
56
  RouterAssertionError,
57
57
  invocationLog,
58
58
  } from '@substrat-run/vertical-host';
59
- import { MODULES, OWNER_ROLE_KEY, ROLES } from './provision.js';
59
+ import { MODULES, OWNER_ROLE_KEY, ROLES, permissions } from './provision.js';
60
60
  import { SHOP_ENV } from './manifest.js';
61
61
  import { mountApi } from './routes.js';
62
62
  import { AUTH_CONFIG_KEY, ConfigDO, type ConfigDo } from './config-do.js';
63
63
 
64
64
  /** The scope-DO class = the app binary: kernel + engines + this vertical, bundled. */
65
- export const ScopeDO = defineScopeDO(MODULES, {});
65
+ export const ScopeDO = defineScopeDO(MODULES, {}, { permissions });
66
66
 
67
67
  /**
68
68
  * The per-instance config store (`config-do.ts`) — one per tenant, rows keyed by scope.
@@ -147,7 +147,7 @@ function nodeFor(req: Request, env: Env): Node {
147
147
  }
148
148
 
149
149
  function hostFor(env: Env): CloudflareScopeHost {
150
- const host = new CloudflareScopeHost({ scope: env.SCOPE, attachmentExtractors: defaultAttachmentExtractors() });
150
+ const host = new CloudflareScopeHost({ scope: env.SCOPE, attachmentExtractors: defaultAttachmentExtractors(), permissions });
151
151
  for (const m of MODULES) host.registerModule(m);
152
152
  return host;
153
153
  }