create-substrat 0.10.12 → 0.10.13

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,11 +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.135.0';
40
- const ENGINE_WORKORDER = '^0.12.19';
41
- const ENGINE_INVOICING = '^0.11.19';
39
+ const SUBSTRAT = '^0.136.0';
40
+ const ENGINE_WORKORDER = '^0.12.20';
41
+ const ENGINE_INVOICING = '^0.11.20';
42
42
  const BOUNDARY_LINT = '^0.6.1';
43
- const DEV_ISSUER = '^0.2.17';
43
+ const DEV_ISSUER = '^0.2.18';
44
+ const ATTACHMENT_EXTRACTORS = '^0.1.2';
44
45
 
45
46
  const DOCS = 'https://substrat.net';
46
47
 
@@ -125,6 +126,7 @@ function packageJson(name) {
125
126
  '@substrat-run/adapter-sqlite': SUBSTRAT,
126
127
  '@substrat-run/adapter-cloudflare': SUBSTRAT,
127
128
  '@substrat-run/vertical-host': SUBSTRAT,
129
+ '@substrat-run/attachment-extractors': ATTACHMENT_EXTRACTORS,
128
130
  '@substrat-run/engine-workorder': ENGINE_WORKORDER,
129
131
  '@substrat-run/engine-invoicing': ENGINE_INVOICING,
130
132
  hono: '^4.6.0',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-substrat",
3
- "version": "0.10.12",
3
+ "version": "0.10.13",
4
4
  "description": "Scaffold a Substrat vertical — `npm create substrat <dir>`.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -33,5 +33,6 @@
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
- }
36
+ },
37
+ "scripts": {}
37
38
  }
@@ -11,6 +11,7 @@ import {
11
11
  } from '@substrat-run/contracts';
12
12
  import { ulid } from '@substrat-run/kernel';
13
13
  import { SqliteScopeHost } from '@substrat-run/adapter-sqlite';
14
+ import { defaultAttachmentExtractors } from '@substrat-run/attachment-extractors';
14
15
  import { ENTITLEMENT_KEYS, MODULES, OWNER_ROLE_KEY, portalPerms, ROLES } from './provision.js';
15
16
 
16
17
  // The provisioning surface (modules, roles, grant shapes) lives in
@@ -43,7 +44,7 @@ export interface BikeShopWorld {
43
44
  }
44
45
 
45
46
  export function buildBikeShopHost(dir: string): SqliteScopeHost {
46
- const host = new SqliteScopeHost({ dir });
47
+ const host = new SqliteScopeHost({ dir, attachmentExtractors: defaultAttachmentExtractors() });
47
48
  for (const m of MODULES) host.registerModule(m);
48
49
  return host;
49
50
  }
@@ -47,14 +47,15 @@ import {
47
47
  SCOPE_SWEEPER_NAME,
48
48
  type ScopeSweeperDo,
49
49
  } from '@substrat-run/adapter-cloudflare';
50
+ import type { ScopeStub } from '@substrat-run/kernel';
51
+ import { defaultAttachmentExtractors } from '@substrat-run/attachment-extractors';
50
52
  import {
51
53
  kickFlags,
54
+ mountPlatformSurface,
52
55
  readRoutedNode,
53
56
  RouterAssertionError,
54
- type ScopeStub,
55
57
  invocationLog,
56
- } from '@substrat-run/kernel';
57
- import { mountPlatformSurface } from '@substrat-run/vertical-host';
58
+ } from '@substrat-run/vertical-host';
58
59
  import { MODULES, OWNER_ROLE_KEY, ROLES } from './provision.js';
59
60
  import { SHOP_ENV } from './manifest.js';
60
61
  import { mountApi } from './routes.js';
@@ -146,7 +147,7 @@ function nodeFor(req: Request, env: Env): Node {
146
147
  }
147
148
 
148
149
  function hostFor(env: Env): CloudflareScopeHost {
149
- const host = new CloudflareScopeHost({ scope: env.SCOPE });
150
+ const host = new CloudflareScopeHost({ scope: env.SCOPE, attachmentExtractors: defaultAttachmentExtractors() });
150
151
  for (const m of MODULES) host.registerModule(m);
151
152
  return host;
152
153
  }