@volter/world-host 2.0.29 → 2.0.31

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.
@@ -2,7 +2,7 @@ import { CONSOLE_BASE, type ConsoleMount } from '@volter/world-runtime';
2
2
  export type WorldHostOptions = {
3
3
  /** the directory of worlds: `<dir>/<org>/<world>/` is a bare world */
4
4
  dir: string;
5
- /** keep the kernel's request journal for every twin served here (layer 8: the world's request report); on unless told otherwise */
5
+ /** `false` switches off the kernel's request journal for every twin served here (layer 8: the world's request report), which is kept otherwise */
6
6
  requestJournal?: boolean;
7
7
  host?: string;
8
8
  port?: number;
@@ -69,9 +69,9 @@ export function adminTokenFor(dir) {
69
69
  return token;
70
70
  }
71
71
  export async function createWorldHost(options) {
72
- // the twins this host boots inherit its env: the kernel's journal switch, set by the product, not by an operator
73
- if (options.requestJournal !== false)
74
- process.env.VOLTER_TWIN_REQUEST_JOURNAL = '1';
72
+ // the twins this host boots inherit its env: switching the journal off is the host's explicit choice
73
+ if (options.requestJournal === false)
74
+ process.env.VOLTER_TWIN_REQUEST_JOURNAL = '0';
75
75
  const dir = resolve(options.dir);
76
76
  const found = worldsUnder(dir);
77
77
  if (found.length === 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/world-host",
3
- "version": "2.0.29",
3
+ "version": "2.0.31",
4
4
  "description": "The hosted remote: worlds under one URL, each holding the canonical history of a real vendor account and its sealed credential — what a local world clones from and pushes to.",
5
5
  "keywords": [
6
6
  "twin",
@@ -27,11 +27,11 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@volter/world-access": "2.0.2",
30
- "@volter/world-core": "2.0.17",
31
- "@volter/world-runtime": "2.0.30"
30
+ "@volter/world-core": "2.0.19",
31
+ "@volter/world-runtime": "2.0.32"
32
32
  },
33
33
  "peerDependencies": {
34
- "@volter/world-console": "2.0.10"
34
+ "@volter/world-console": "2.0.11"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@volter/world-console": {
@@ -39,7 +39,7 @@
39
39
  }
40
40
  },
41
41
  "devDependencies": {
42
- "@volter/world-console": "2.0.10"
42
+ "@volter/world-console": "2.0.11"
43
43
  },
44
44
  "exports": {
45
45
  ".": {
package/src/twins-host.ts CHANGED
@@ -24,7 +24,7 @@ import { issuerKeys, trustableIssuer, type TrustedIssuer } from '@volter/world-a
24
24
  export type WorldHostOptions = {
25
25
  /** the directory of worlds: `<dir>/<org>/<world>/` is a bare world */
26
26
  dir: string;
27
- /** keep the kernel's request journal for every twin served here (layer 8: the world's request report); on unless told otherwise */
27
+ /** `false` switches off the kernel's request journal for every twin served here (layer 8: the world's request report), which is kept otherwise */
28
28
  requestJournal?: boolean;
29
29
  host?: string;
30
30
  port?: number;
@@ -92,8 +92,8 @@ export function adminTokenFor(dir: string): string {
92
92
  }
93
93
 
94
94
  export async function createWorldHost(options: WorldHostOptions): Promise<WorldHostHandle> {
95
- // the twins this host boots inherit its env: the kernel's journal switch, set by the product, not by an operator
96
- if (options.requestJournal !== false) process.env.VOLTER_TWIN_REQUEST_JOURNAL = '1';
95
+ // the twins this host boots inherit its env: switching the journal off is the host's explicit choice
96
+ if (options.requestJournal === false) process.env.VOLTER_TWIN_REQUEST_JOURNAL = '0';
97
97
  const dir = resolve(options.dir);
98
98
  const found = worldsUnder(dir);
99
99
  if (found.length === 0) throw new Error(`no worlds under ${dir} — a world is \`<dir>/<org>/<world>/\` with \`.volter/world.json\` (\`volter world init --bare <org>/<world>\` makes one)`);