@volter/world-runtime 3.0.15 → 3.0.17
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/served-world.js +3 -1
- package/package.json +4 -4
- package/src/served-world.ts +3 -1
package/dist/src/served-world.js
CHANGED
|
@@ -1983,7 +1983,9 @@ export class WorldDoors {
|
|
|
1983
1983
|
named = listWorlds(this.worldRoot).map((w) => ({ name: w.name, running: w.running }));
|
|
1984
1984
|
}
|
|
1985
1985
|
catch { /* a World with no local branches */ }
|
|
1986
|
-
|
|
1986
|
+
// each with the origin a browser reaches it at, where this host gives Worlds one (its sites are under it)
|
|
1987
|
+
const rows = (await branches.list()).map((b) => { const origin = this.host.originOf?.(b.name) ?? null; return origin ? { ...b, origin } : b; });
|
|
1988
|
+
return Response.json({ world: this.served, branches: rows, checkedOut: this.name, named, canServe: this.host.serveBranch !== undefined });
|
|
1987
1989
|
}
|
|
1988
1990
|
// A BRANCH'S PAGES (`GET branches/<org>/<branch>/pages?land=<path>`): a navigation to the branch's own content plane
|
|
1989
1991
|
// with a one-time read pass, for a person or the World's token: how the console frames a branch's page beside this
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/world-runtime",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.17",
|
|
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",
|
|
@@ -68,14 +68,14 @@
|
|
|
68
68
|
"node": ">=22.3"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@volter/world-core": "3.0.
|
|
72
|
-
"@volter/world-console": "3.0.
|
|
71
|
+
"@volter/world-core": "3.0.17",
|
|
72
|
+
"@volter/world-console": "3.0.12"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@electric-sql/pglite": "0.5.8",
|
|
76
76
|
"@electric-sql/pglite-pgvector": "0.0.9",
|
|
77
77
|
"@volter/world-access": "3.0.1",
|
|
78
|
-
"@volter/world-core": "3.0.
|
|
78
|
+
"@volter/world-core": "3.0.17",
|
|
79
79
|
"pg-gateway": "0.3.0-beta.4",
|
|
80
80
|
"smol-toml": "^1.8.0",
|
|
81
81
|
"yaml": "2.9.0"
|
package/src/served-world.ts
CHANGED
|
@@ -1672,7 +1672,9 @@ export class WorldDoors {
|
|
|
1672
1672
|
// `checkedOut` is the one this serve holds, so a page never names the World for the branch it shows
|
|
1673
1673
|
let named: Array<{ name: string; running: boolean }> = [];
|
|
1674
1674
|
try { named = listWorlds(this.worldRoot).map((w) => ({ name: w.name, running: w.running })); } catch { /* a World with no local branches */ }
|
|
1675
|
-
|
|
1675
|
+
// each with the origin a browser reaches it at, where this host gives Worlds one (its sites are under it)
|
|
1676
|
+
const rows = (await branches.list()).map((b) => { const origin = this.host.originOf?.(b.name) ?? null; return origin ? { ...b, origin } : b; });
|
|
1677
|
+
return Response.json({ world: this.served, branches: rows, checkedOut: this.name, named, canServe: this.host.serveBranch !== undefined });
|
|
1676
1678
|
}
|
|
1677
1679
|
// A BRANCH'S PAGES (`GET branches/<org>/<branch>/pages?land=<path>`): a navigation to the branch's own content plane
|
|
1678
1680
|
// with a one-time read pass, for a person or the World's token: how the console frames a branch's page beside this
|