Commit 9f878e2
authored
fix: plain clone works fully + Deno container (Refs affinescript#122)
## Make a plain clone work fully + Deno container (Refs
affinescript#122, #126; ubicity#30)
Follow-up to #31. After the `.ts` elimination the repo did not run from
a clean clone. This makes it work end-to-end, including containerised.
### Fixes
1. **`src/storage.js` regenerated** with the fixed async-IIFE backend
(affinescript#126). The version merged in #31 was generated *before*
that fix, so `loadAllExperiences` was a `SyntaxError`
(`await` inside a non-async IIFE).
2. **`deno.json`**: `exports` → `./src/index.js`; added
`"nodeModulesDir": "auto"` (npm:zod had no resolution); every task /
glob `.ts` entrypoint (`cli`/`capture`/`visualize`/`index`) → `.js`
(they were deleted in #31).
3. **`node:` prefix** on all bare node-builtin imports deno rejects:
`export/import` (`fs`), `capture` (`process`, `readline/promises`),
`mapper/privacy` (`crypto`), `performance` (`perf_hooks`).
4. **`.tool-versions`**: pin `deno 2.7.14` (matches CI `setup-deno`
and `flake.nix`) so an `asdf`/`mise` clone provisions deno.
5. **Containerfile** rewritten on `denoland/deno:2.7.14` (was a stale
Node image that cannot run this Deno project); `.dockerignore`
keeps `tests/` so the image can run the suite; `docker-compose.yml`
names `Containerfile` explicitly so `docker compose` (not just
podman) finds it.
### Verification
- Local: `deno task test` → **44 passed / 0 failed**.
- Containerised: `docker build -f Containerfile -t ubicity .` → builds
clean; `docker run --rm ubicity test --allow-read --allow-write
tests/` → **44 passed / 0 failed**; default CMD (CLI help) works.
- A plain `git clone` now works fully via: host deno (`.tool-versions`
/ `flake.nix` both provide 2.7.14) **or** the container.
`flake.nix` already provided deno (unchanged). storage.affine remains
the source of truth for storage.js (affinescript#122 showcase).
Refs hyperpolymath/affinescript#122 #126, ubicity#30.
🤖 Generated with [Claude Code](https://claude.com/claude-code)1 parent f2cb58f commit 9f878e2
13 files changed
Lines changed: 755 additions & 122 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
3 | 15 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | 16 | | |
8 | 17 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 18 | + | |
| 19 | + | |
12 | 20 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 21 | + | |
| 22 | + | |
18 | 23 | | |
19 | | - | |
20 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
21 | 28 | | |
22 | | - | |
| 29 | + | |
| 30 | + | |
23 | 31 | | |
24 | 32 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 33 | + | |
30 | 34 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
96 | | - | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
0 commit comments