@volter/world 3.0.30 → 3.0.32

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/world.js CHANGED
@@ -6,7 +6,7 @@ import { platformPerson } from "./credentials.js";
6
6
  import { rebaseChangeset, worldBootMarker, listActions, isTwinBookkeeping, pushablePendingActions, pendingActions, applyTwinWrite, twinResources } from '@volter/world-core/runtime';
7
7
  import { spawnSync } from 'node:child_process';
8
8
  import clockForm from '@volter/world-core/world-clock';
9
- import { activateScript, approveWorldChangeset, branchWorld, clockFile, checkoutWorld, createWorldChangeset, diffWorld, downWorld, fetchFromOrigin, findWorldChangeset, initWorld, listWorldChangesets, listWorldMarks, listWorlds, markWorld, pushWorldChangeset, rebaseWorldChangeset, replayWorldChangeset, resetWorld, runWithWorldEnv, seedWorld, shellWorld, statusWorld, statusWorldChangeset, upWorld, verifyWorldChangeset, worldLedgers, worldOrigin, bindLegacyCredentials, deployWorld, loadWorldConfig, writeWorldConfig, readServeRecord, refreshTwin, serveWorld, serveWorldView, findInstalledPackage, rootForControlRoot, sealTwinCredential, sealedCredentialInfo, setTwinRoot, credentialPayloadFrom, rootCredentialInput, withoutVaultSignIn, materializeRoots, instanceDir, worldChangesetRules } from '@volter/world-runtime';
9
+ import { activateScript, approveWorldChangeset, branchWorld, clockFile, checkoutWorld, createWorldChangeset, diffWorld, downWorld, fetchFromOrigin, findWorldChangeset, initWorld, listWorldChangesets, listWorldMarks, listWorlds, markWorld, pushWorldChangeset, rebaseWorldChangeset, replayWorldChangeset, resetWorld, runWithWorldEnv, seedWorld, shellWorld, materializeBrowserFiles, statusWorld, statusWorldChangeset, upWorld, verifyWorldChangeset, worldLedgers, worldOrigin, bindLegacyCredentials, deployWorld, loadWorldConfig, writeWorldConfig, readServeRecord, refreshTwin, serveWorld, serveWorldView, findInstalledPackage, rootForControlRoot, sealTwinCredential, sealedCredentialInfo, setTwinRoot, credentialPayloadFrom, rootCredentialInput, withoutVaultSignIn, materializeRoots, instanceDir, worldChangesetRules } from '@volter/world-runtime';
10
10
  import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
11
11
  import { dirname, join, resolve } from 'node:path';
12
12
  import { requireToken, storeToken } from "./credentials.js";
@@ -274,6 +274,8 @@ export class World {
274
274
  throw error;
275
275
  }
276
276
  setCurrentBranch(this.root, name);
277
+ const selected = statusWorld(name, this.root);
278
+ materializeBrowserFiles(selected.dirs.data, this.root, name, selected.config);
277
279
  return new World(name, this.root);
278
280
  }
279
281
  /** Switch to a branch: its twins come back with their state; this branch's stop. */
@@ -292,6 +294,8 @@ export class World {
292
294
  if (wasRunning && !target.instance()?.running)
293
295
  await checkoutWorld(name, { root: this.root });
294
296
  setCurrentBranch(this.root, name);
297
+ const selected = statusWorld(name, this.root);
298
+ materializeBrowserFiles(selected.dirs.data, this.root, name, selected.config);
295
299
  return target;
296
300
  }
297
301
  branches() { return listWorlds(this.root).map((w) => w.name).sort(); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volter/world",
3
- "version": "3.0.30",
3
+ "version": "3.0.32",
4
4
  "description": "Run your app against a world of twins. `World` and `Repo` — one method per verb: init, up, run, log, diff, reset, branch, checkout, clone, fetch, changeset, push — and the `volter` command, one client of them.",
5
5
  "keywords": [
6
6
  "volter",
@@ -30,12 +30,12 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@modelcontextprotocol/sdk": "^1.30.1",
33
- "@volter/world-core": "3.0.30",
34
- "@volter/world-runtime": "3.0.30",
33
+ "@volter/world-core": "3.0.32",
34
+ "@volter/world-runtime": "3.0.32",
35
35
  "zod": "^4.6.5"
36
36
  },
37
37
  "peerDependencies": {
38
- "@volter/world-console": "3.0.25"
38
+ "@volter/world-console": "3.0.27"
39
39
  },
40
40
  "peerDependenciesMeta": {
41
41
  "@volter/world-console": {
@@ -43,7 +43,7 @@
43
43
  }
44
44
  },
45
45
  "devDependencies": {
46
- "@volter/world-console": "3.0.25"
46
+ "@volter/world-console": "3.0.27"
47
47
  },
48
48
  "bin": {
49
49
  "volter": "dist/src/cli.js"
package/src/world.ts CHANGED
@@ -8,7 +8,7 @@ import { spawnSync } from 'node:child_process';
8
8
  import clockForm from '@volter/world-core/world-clock';
9
9
  import {
10
10
  activateScript, approveWorldChangeset, branchWorld, clockFile, checkoutWorld, createWorldChangeset, diffWorld, downWorld, fetchFromOrigin, findWorldChangeset, initWorld, listWorldChangesets, listWorldMarks, listWorlds, markWorld, pushWorldChangeset, rebaseWorldChangeset, replayWorldChangeset, resetWorld, runWithWorldEnv, seedWorld, shellWorld,
11
- statusWorld, statusWorldChangeset, upWorld, verifyWorldChangeset, worldLedgers, worldOrigin,
11
+ materializeBrowserFiles, statusWorld, statusWorldChangeset, upWorld, verifyWorldChangeset, worldLedgers, worldOrigin,
12
12
  bindLegacyCredentials, deployWorld, loadWorldConfig, writeWorldConfig, readServeRecord, refreshTwin, serveWorld, serveWorldView, findInstalledPackage, type ServedWorld, type ViewConsole, type WorldView, rootForControlRoot, sealTwinCredential, sealedCredentialInfo, setTwinRoot, credentialPayloadFrom, rootCredentialInput, withoutVaultSignIn,
13
13
  type DeployTwinOutcome, type MaterializedRoot,
14
14
  type ChangesetLocation, type InitOptions, type InitResult, type WorldInstance, materializeRoots, instanceDir, worldChangesetRules } from '@volter/world-runtime';
@@ -256,6 +256,8 @@ export class World {
256
256
  throw error;
257
257
  }
258
258
  setCurrentBranch(this.root, name);
259
+ const selected = statusWorld(name, this.root);
260
+ materializeBrowserFiles(selected.dirs.data, this.root, name, selected.config);
259
261
  return new World(name, this.root);
260
262
  }
261
263
  /** Switch to a branch: its twins come back with their state; this branch's stop. */
@@ -269,6 +271,8 @@ export class World {
269
271
  const target = new World(name, this.root);
270
272
  if (wasRunning && !target.instance()?.running) await checkoutWorld(name, { root: this.root });
271
273
  setCurrentBranch(this.root, name);
274
+ const selected = statusWorld(name, this.root);
275
+ materializeBrowserFiles(selected.dirs.data, this.root, name, selected.config);
272
276
  return target;
273
277
  }
274
278
  branches(): string[] { return listWorlds(this.root).map((w) => w.name).sort(); }