@volter/world-runtime 2.0.4 → 2.0.5
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/dist/src/cli.js +5 -2
- package/package.json +5 -5
- package/src/cli.ts +5 -2
package/dist/src/cli.js
CHANGED
|
@@ -70,7 +70,7 @@ function printHelp() {
|
|
|
70
70
|
# emission. Exit 0 = ready to \`up\`; exit 1 = the honest worklist.
|
|
71
71
|
# Deterministic: same repo + same pack catalog => identical bytes.
|
|
72
72
|
# init DIAGNOSES; it never boots — it prints the exact next commands
|
|
73
|
-
volter-world up <config> --env-file=<path> [--owner <label>] [--name <name>] [--mode local|share|sealed] [--isolation process|colocated|worker] [--root <repo>]
|
|
73
|
+
volter-world up <config> --env-file=<path> [--owner <label>] [--name <name>] [--mode local|share|sealed] [--isolation process|colocated|worker] [--keep-state] [--root <repo>]
|
|
74
74
|
volter-world outdated <world> [--json] — each mounted twin: pinned / mounted / catalog-current version and protocol standing (R17)
|
|
75
75
|
volter-world audit <world> [--json] — the catalog's upkeep verdicts for the mounted twins: matrix debt, census (R17)
|
|
76
76
|
volter-world down <name> [--grace-ms <ms>] [--purge] [--root <repo>] # SIGTERM, then SIGKILL survivors after the grace (default 5000ms)
|
|
@@ -329,7 +329,10 @@ async function main() {
|
|
|
329
329
|
}
|
|
330
330
|
const isolation = (isolationArg || undefined);
|
|
331
331
|
// The boot runs in its own owner process (./up-task.ts): a closed terminal does not leave it half-done.
|
|
332
|
-
|
|
332
|
+
// --keep-state: boot over the state the World's directory already holds (a World carried somewhere else, e.g. a
|
|
333
|
+
// browser tab's image, comes up over its data instead of starting empty, as a fresh `up` does)
|
|
334
|
+
const keepState = rest.includes('--keep-state');
|
|
335
|
+
const instance = await superviseWorldUp(subject, { name, root, mode, envFile, owner: ownerOption(rest), ...(isolation ? { isolation } : {}), ...(keepState ? { keepState: true } : {}) });
|
|
333
336
|
printReady(instance);
|
|
334
337
|
return;
|
|
335
338
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/world-runtime",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.5",
|
|
4
4
|
"description": "World configs for twins: boot named local runtimes, allocate ports, generate world.env/instance.json, and run apps against fake-key twin worlds.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twin",
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
"node": ">=22.3"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@volter/world-core": "2.0.
|
|
71
|
-
"@volter/world-console": "2.0.
|
|
70
|
+
"@volter/world-core": "2.0.4",
|
|
71
|
+
"@volter/world-console": "2.0.5"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@electric-sql/pglite": "0.5.8",
|
|
75
75
|
"@electric-sql/pglite-pgvector": "0.0.9",
|
|
76
76
|
"@volter/world-access": "2.0.1",
|
|
77
|
-
"@volter/world-core": "2.0.
|
|
77
|
+
"@volter/world-core": "2.0.4",
|
|
78
78
|
"pg-gateway": "0.3.0-beta.4",
|
|
79
79
|
"smol-toml": "^1.8.0"
|
|
80
80
|
},
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"optionalDependencies": {
|
|
87
|
-
"@volter/twin-mongodb": "0.1.
|
|
87
|
+
"@volter/twin-mongodb": "0.1.4"
|
|
88
88
|
}
|
|
89
89
|
}
|
package/src/cli.ts
CHANGED
|
@@ -71,7 +71,7 @@ function printHelp(): void {
|
|
|
71
71
|
# emission. Exit 0 = ready to \`up\`; exit 1 = the honest worklist.
|
|
72
72
|
# Deterministic: same repo + same pack catalog => identical bytes.
|
|
73
73
|
# init DIAGNOSES; it never boots — it prints the exact next commands
|
|
74
|
-
volter-world up <config> --env-file=<path> [--owner <label>] [--name <name>] [--mode local|share|sealed] [--isolation process|colocated|worker] [--root <repo>]
|
|
74
|
+
volter-world up <config> --env-file=<path> [--owner <label>] [--name <name>] [--mode local|share|sealed] [--isolation process|colocated|worker] [--keep-state] [--root <repo>]
|
|
75
75
|
volter-world outdated <world> [--json] — each mounted twin: pinned / mounted / catalog-current version and protocol standing (R17)
|
|
76
76
|
volter-world audit <world> [--json] — the catalog's upkeep verdicts for the mounted twins: matrix debt, census (R17)
|
|
77
77
|
volter-world down <name> [--grace-ms <ms>] [--purge] [--root <repo>] # SIGTERM, then SIGKILL survivors after the grace (default 5000ms)
|
|
@@ -309,7 +309,10 @@ async function main(): Promise<void> {
|
|
|
309
309
|
}
|
|
310
310
|
const isolation = (isolationArg || undefined) as 'process' | 'colocated' | 'worker' | undefined;
|
|
311
311
|
// The boot runs in its own owner process (./up-task.ts): a closed terminal does not leave it half-done.
|
|
312
|
-
|
|
312
|
+
// --keep-state: boot over the state the World's directory already holds (a World carried somewhere else, e.g. a
|
|
313
|
+
// browser tab's image, comes up over its data instead of starting empty, as a fresh `up` does)
|
|
314
|
+
const keepState = rest.includes('--keep-state');
|
|
315
|
+
const instance = await superviseWorldUp(subject, { name, root, mode, envFile, owner: ownerOption(rest), ...(isolation ? { isolation } : {}), ...(keepState ? { keepState: true } : {}) });
|
|
313
316
|
printReady(instance);
|
|
314
317
|
return;
|
|
315
318
|
}
|