@volter/world-machine 2.0.36 → 3.0.0
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/gc.js +1 -1
- package/dist/src/ledger.js +1 -1
- package/package.json +3 -3
- package/src/gc.ts +1 -1
- package/src/ledger.ts +1 -1
package/dist/src/gc.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
// stops the collection: nothing is deleted on a partial view.
|
|
18
18
|
import { existsSync, readdirSync, statSync } from 'node:fs';
|
|
19
19
|
import { basename, join } from 'node:path';
|
|
20
|
-
import { wholeLog } from '@volter/world-core';
|
|
20
|
+
import { wholeLog } from '@volter/world-core/runtime';
|
|
21
21
|
import { q } from "./host.js";
|
|
22
22
|
import { headSnapshot, LEDGER } from "./ledger.js";
|
|
23
23
|
import { containerHashes } from "./container.js";
|
package/dist/src/ledger.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// finds it like any twin's log and `branch --at machine@N` forks it at N; the head a branch restores is
|
|
4
4
|
// the last snapshot in the branch's view, its parent's history up to the fork position and its own
|
|
5
5
|
// entries after it.
|
|
6
|
-
import { applyTwinWrite, wholeLog, worldNow } from '@volter/world-core';
|
|
6
|
+
import { applyTwinWrite, wholeLog, worldNow } from '@volter/world-core/runtime';
|
|
7
7
|
export const LEDGER = 'machine';
|
|
8
8
|
export async function appendSnapshot(root, record) {
|
|
9
9
|
const { id, ...fields } = record;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/world-machine",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "The machine as a World service: a Firecracker microVM whose memory and disk snapshots are entries in the World's ledger, so `mark` and `branch --at` take the machine back exactly as they take a twin back.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twin",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/volter-ai/twin.git",
|
|
16
|
+
"url": "git+https://github.com/volter-ai/twin-world.git",
|
|
17
17
|
"directory": "packages/world-machine"
|
|
18
18
|
},
|
|
19
19
|
"publishConfig": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@volter/world-core": "
|
|
31
|
+
"@volter/world-core": "3.0.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
34
|
"build": "node ../../scripts/publish/build.mjs",
|
package/src/gc.ts
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
// stops the collection: nothing is deleted on a partial view.
|
|
18
18
|
import { existsSync, readdirSync, statSync } from 'node:fs';
|
|
19
19
|
import { basename, join } from 'node:path';
|
|
20
|
-
import { wholeLog } from '@volter/world-core';
|
|
20
|
+
import { wholeLog } from '@volter/world-core/runtime';
|
|
21
21
|
import type { MachineConfig } from './config.ts';
|
|
22
22
|
import { type HostSession, q } from './host.ts';
|
|
23
23
|
import { headSnapshot, LEDGER } from './ledger.ts';
|
package/src/ledger.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// finds it like any twin's log and `branch --at machine@N` forks it at N; the head a branch restores is
|
|
4
4
|
// the last snapshot in the branch's view, its parent's history up to the fork position and its own
|
|
5
5
|
// entries after it.
|
|
6
|
-
import { applyTwinWrite, wholeLog, worldNow } from '@volter/world-core';
|
|
6
|
+
import { applyTwinWrite, wholeLog, worldNow } from '@volter/world-core/runtime';
|
|
7
7
|
|
|
8
8
|
export const LEDGER = 'machine';
|
|
9
9
|
|