create-githolon 0.1.4 → 0.1.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/LICENSE.md +9 -0
- package/package.json +1 -1
- package/template/test/e2e.mts +8 -0
package/LICENSE.md
CHANGED
|
@@ -24,6 +24,15 @@ with it; we keep the rest for now.
|
|
|
24
24
|
- offer the Nomos runtime, or anything materially similar, as a hosted service;
|
|
25
25
|
- reverse-engineer the holon wasm runtime.
|
|
26
26
|
|
|
27
|
+
## Data retention
|
|
28
|
+
|
|
29
|
+
This is a pre-release we are actively evaluating. Workspaces you retire stop
|
|
30
|
+
counting toward your quota but are NOT deleted: **we retain all workspace data
|
|
31
|
+
(ledgers, law, intents) and may examine it to evaluate how the product is
|
|
32
|
+
used.** Don't put anything in a pre-release workspace you wouldn't want the
|
|
33
|
+
builders to read. If you need something truly expunged, ask:
|
|
34
|
+
jack@captainapp.co.uk.
|
|
35
|
+
|
|
27
36
|
## The rest
|
|
28
37
|
|
|
29
38
|
Provided **as is**, with no warranty of any kind; to the maximum extent
|
package/package.json
CHANGED
package/template/test/e2e.mts
CHANGED
|
@@ -51,6 +51,11 @@ ok("local replay — guestbook law Active in the local projection");
|
|
|
51
51
|
|
|
52
52
|
// 3. LOCAL-FIRST write through the TYPED surface: payload shape + enum are compile-checked
|
|
53
53
|
const signedAt = new Date().toISOString();
|
|
54
|
+
// THE OFFLINE PROOF IS ENFORCED, not narrated: while we author/query/count
|
|
55
|
+
// LOCALLY, fetch THROWS — if any "local" path touched the network, this test fails.
|
|
56
|
+
const realFetch = globalThis.fetch;
|
|
57
|
+
globalThis.fetch = (() => { throw new Error("OFFLINE PROOF VIOLATED: local authoring touched the network"); }) as typeof fetch;
|
|
58
|
+
|
|
54
59
|
await app.signGuestbook({ author: "ada", message: "hello from the edge of the network", mood: "delighted", signedAt, tags: ["first-entry"] });
|
|
55
60
|
ok("typed dispatch signGuestbook — offline write under the pulled law");
|
|
56
61
|
|
|
@@ -77,6 +82,9 @@ const localCount = await app.entriesPerMood("delighted");
|
|
|
77
82
|
if (localCount !== 1) fail(`local declared count: ${localCount}`);
|
|
78
83
|
ok("declared count maintained locally — entriesPerMood('delighted') = 1");
|
|
79
84
|
|
|
85
|
+
globalThis.fetch = realFetch;
|
|
86
|
+
ok("offline proof ENFORCED — fetch was trapped: local write/query/mutate/count touched no network");
|
|
87
|
+
|
|
80
88
|
// 6. sync: push the session branch + edge admission merges to main
|
|
81
89
|
const s = await holon.sync({ admit: true });
|
|
82
90
|
if (!s.admission?.ok) fail(`sync/admit: ${JSON.stringify(s)}`);
|