@mote-farm/sandbox 0.2.0-rc.2 → 0.2.0-rc.7
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/CHANGELOG.md +41 -0
- package/README.md +9 -1
- package/dist/mote-farm-sandbox.mjs +27 -26
- package/package.json +1 -1
- package/src/machines/install.sh +19 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Runtime releases
|
|
2
2
|
|
|
3
|
+
## 0.2.0-rc.7
|
|
4
|
+
|
|
5
|
+
- Leave installed packages out of a report's file list: hidden entries, `node_modules`,
|
|
6
|
+
`__pycache__` and Python virtual environments (a folder holding `pyvenv.cfg`) are skipped
|
|
7
|
+
without being walked. A run that ran `npm i playwright` in its folder listed 176 package files
|
|
8
|
+
and pushed its screenshot past the 50 listed files.
|
|
9
|
+
- Tell the sandbox agent that its brief comes from a channel agent that cannot see the machine:
|
|
10
|
+
tools or commands a brief suggests are hints unless a person asked for them, and installed
|
|
11
|
+
skills (agent-browser for web pages and screenshots) come before installing anything.
|
|
12
|
+
|
|
13
|
+
## 0.2.0-rc.6
|
|
14
|
+
|
|
15
|
+
- Delete one channel's run (`DELETE /runs/:id?channel=<channel>`, ADR-005): stop its turn if one is
|
|
16
|
+
running, then remove its folder, journal and Pi session, answering `{removed}`. A run another
|
|
17
|
+
channel started is left alone (`removed: false`); a turn still starting answers 409. Older
|
|
18
|
+
runtimes answer 404, which the Worker reports as an incomplete deletion until the Sprite is
|
|
19
|
+
upgraded.
|
|
20
|
+
- Start Pi in the run's folder, with its session in `~/.mote-farm/sessions/<runId>/`
|
|
21
|
+
(`--session-dir`), so relative writes land in the run's folder and the session has a fixed place.
|
|
22
|
+
Sessions of earlier runs stay in Pi's shared session folder.
|
|
23
|
+
|
|
24
|
+
## 0.2.0-rc.5
|
|
25
|
+
|
|
26
|
+
- Repair `/dev/fuse` before every FUSE mount. Sprites create it with mode 1232 (decimal 666
|
|
27
|
+
written as octal), so neither the files mount nor SSHFS machine folders could open it
|
|
28
|
+
("failed to open /dev/fuse: Permission denied"). The device is recreated at boot, so the run
|
|
29
|
+
service restores mode 0666 with `sudo` each time it mounts.
|
|
30
|
+
|
|
31
|
+
## 0.2.0-rc.4
|
|
32
|
+
|
|
33
|
+
- Mount the owner's uploaded files read-only at `/mnt/<org>/files` (`POST /files/mount`) with the
|
|
34
|
+
prefix-scoped R2 credentials the Worker sends; one rclone mount per org, kept while its
|
|
35
|
+
credentials have six hours left. Setup installs rclone v1.75.2, pinned by SHA-256, and `unzip`.
|
|
36
|
+
Older runtimes answer 404 and delegations proceed without the files folder.
|
|
37
|
+
|
|
38
|
+
## 0.2.0-rc.3
|
|
39
|
+
|
|
40
|
+
- Read the control credential from `X-Mote-Farm-Control`. Sprite URLs are now private: the
|
|
41
|
+
Sprites edge takes the org token in `Authorization` and strips it before forwarding. Requires
|
|
42
|
+
the matching Worker; earlier runtimes refuse its calls, so upgrade or rebuild existing Sprites.
|
|
43
|
+
|
|
3
44
|
## 0.2.0-rc.2
|
|
4
45
|
|
|
5
46
|
- Publish the same runtime as rc.1 to validate owner-controlled version upgrades on staging.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ time. The service launches its own Pi dependency and uses tools exposed by setup
|
|
|
6
6
|
under `~/.mote-farm/bin`; unrelated global installations do not select the toolchain.
|
|
7
7
|
|
|
8
8
|
The Worker installs this package and explicitly runs `mote-farm-sandbox-setup` before
|
|
9
|
-
starting the Sprite service. Setup installs/checks Tailscale, SSH/SSHFS and Chrome,
|
|
9
|
+
starting the Sprite service. Setup installs/checks Tailscale, SSH/SSHFS, rclone and Chrome,
|
|
10
10
|
and copies the extension and browser skill into Pi's default directories. It keeps
|
|
11
11
|
user files, session history and machine state outside the package. Node >=24 and
|
|
12
12
|
npm 12 are prerequisites supplied by the Sprite image.
|
|
@@ -40,6 +40,14 @@ rejects prereleases. Publishing never starts fleet upgrades. Deploy any required
|
|
|
40
40
|
changes before making the runtime stable. npm dependencies have exact direct pins;
|
|
41
41
|
this does not lock their complete transitive trees.
|
|
42
42
|
|
|
43
|
+
On first publication npm may also assign `latest` to the initial prerelease and
|
|
44
|
+
refuse removing that tag (registry HTTP 400). Never treat the tag alone as proof
|
|
45
|
+
of stability: the production resolver rejects every prerelease. Until the first
|
|
46
|
+
stable publication replaces `latest`, production provisioning reports the release
|
|
47
|
+
as unavailable. Staging explicitly uses `next`. Registry processing can take a
|
|
48
|
+
few minutes after `npm publish` succeeds; verify the exact version is readable
|
|
49
|
+
before starting a provisioning or upgrade acceptance test.
|
|
50
|
+
|
|
43
51
|
Development uses a local npm tarball generated by the same build/pack path; it does
|
|
44
52
|
not publish or depend on the registry having this Farm version. Open **My sandbox**
|
|
45
53
|
on the dev main host to install/reinstall it after rebuilding/restarting the Worker.
|