@ai-ecoverse/slicc-bios 1.63.2 → 1.63.4

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/README.md CHANGED
@@ -152,7 +152,7 @@ The kernel runs with users on (slicc-kernel ≥ 1.81.0): files have owners and m
152
152
 
153
153
  - **The mode:** production seven (`seven.sliccy.ai` and `www.sliccy.ai`) always runs `'enforce'` (`PRODUCTION_USERS` in `os/users.js`). A URL or `localStorage` asking for another mode is ignored there, with a console warning, so nobody can switch seven off from a link. On previews, localhost and in tests the default is `'enforce'` too, and `#users=off`, `#users=report` or `#users=enforce` picks another, remembered in `localStorage['slicc-os.users']`. `'report'` checks every file call and logs what `'enforce'` would refuse, and refuses nothing. `sudo` asks only under `'enforce'`. bios passes the mode to every kernel it creates, `'off'` included, since kernels from K4b on default to `'enforce'`. `<html data-users>` says which mode is on.
154
154
  - **Who is who:** the human's panel terminals are root (`/root`, mode 0700). With users on, bios adds the first cone, `cone`, at every boot: in `sudo`, home `0710`, umask `077`. The agent adds further cones and scoops through its `KernelSource`. The file tree skips `~/.local/share/pnpm` and `~/.cache` of every home in `/etc/passwd`.
155
- - **Device groups** (slicc-kernel ≥ 1.176.0): at every boot, after the first cone, bios calls `kernel.groups.add('dialout', { gid: 20 })`, since an `/etc/group` from an older kernel has none, and adds every `cone`, `cone-<n>` and `scoop-<folder>` user to it (`deviceGroups()` in `os/users.js`). Every user the agent adds through its `KernelSource` gets `dialout` too, scoops included, so every agent can read the serial ports and none can write to one without `sudo` (see [Serial ports](#requests-from-programs-devembedder)). The agent's `groups.addMember` and `removeMember` still take only a cone's group.
155
+ - **Device groups** (slicc-kernel ≥ 1.176.0): at every boot, after the first cone, bios calls `kernel.groups.add('dialout', { gid: 20 })`, since an `/etc/group` from an older kernel has none, and adds every `cone`, `cone-<n>` and `scoop-<folder>` user to it (`deviceGroups()` in `os/users.js`). Every user the agent adds through its `KernelSource` gets `dialout` too, scoops included, so every agent can read the serial ports and none can write to one without `sudo` (see [Serial ports](#requests-from-programs-devembedder)). The same pass also re-adds each personal cone and scoop to group `cone` (for Files-panel fsa group write; see [Folder mounts](#folder-mounts)), so an agent's `removeMember('cone', …)` lasts only until the next boot. The agent's `groups.addMember` and `removeMember` still take only a cone's group.
156
156
  - **Folders** bios mounts (picked in the Files panel, remembered, or linked) belong to the first cone, so the agent can write them, and to root while users are off.
157
157
  - **Files from before users:** agents start on the new layout; nothing is moved. On the first boot with users on, bios runs `chmod -R go-rwx` as root, once, on what earlier versions left readable to everyone: `/home/.pi`, `/home/.slicc`, `/home/sprinkles`, `/home/.gelatiere`, `/home/.welcomed`, `/home/.welcome.json`, `/home/sessions`, `/home/.local` and `/scoops`. So no cone or scoop reads an old `/home/.pi/agent/mcp.json` with its tokens, and root still reads everything. The marker `var/lib/slicc/legacy-locked` keeps it from running again; cone and scoop homes and other files in `/home` aren't touched.
158
158
  - **The agent's `KernelSource`** (`os/users.js`) passes `connect({ user, agentId })`, `users` and `groups` to the kernel, only for agent users. It refuses root and any user but `cone`, `cone-<n>` and `scoop-<folder>`, requires the agentId to match the user exactly (`cone:cone`, `cone:cone-2`, `scoop:<folder>`), and allows groups only of cones, `dialout` and, for cones only, `sudo`. A cone is always added to `sudo`, even when the caller leaves it out, since sudo membership is what makes a cone (the vault's J2 rule). The tag is `{"kind":"agent","agentId":…}` as JSON, and the agent's root client carries `{"kind":"agent","agentId":"root"}`; a panel terminal's is `{"kind":"user","where":"terminal:<tab>"}`.
@@ -181,6 +181,7 @@ A local folder can be mounted into seven as on Linux ([#73](https://github.com/a
181
181
  - **Host folders:** `mount -t hostfs <device>/<name> /mnt/h` mounts a folder a linked CLI shares (see [Linked devices](#tailscale-proof-of-concept)) with no picker. A name that isn't a linked CLI's folder is refused at once (exit 32, permission denied).
182
182
  - **Deleted but open files:** the kernel keeps a file that a program still has open after it's deleted in `.slicc-unlinked/` at the mount's root until it's closed (slicc-kernel ≥ 1.37.1). In a mounted folder that directory is visible on the host, so a repository there may want it in `.gitignore`.
183
183
  - **Owners** (slicc-kernel ≥ 1.61.0): every mount bios makes, a folder picked in the Files panel and each remembered mount it mounts again, gets its owner as `uid=` and `gid=` from one function, `owned()` in `os/mounts.js`. While the kernel's users are off, that's root (`uid=0,gid=0`), and `/proc/mounts` shows it. When agents run as their own users, it gives the user's ids, so their programs see the folder as their own.
184
+ - **Shared write for personal cones** (slicc-kernel ≥ 1.176.2, [slicc-kernel#1790](https://github.com/ai-ecoverse/slicc-kernel/pull/1790)): Files-panel and remembered **fsa** mounts use `shared()` (`umask=002` with the template cone's uid/gid). Personal cones and scoops are added to group `cone`, so they get group write; other users (including `nobody`) still get `EACCES`. Linked **hostfs** mounts stay `owned()` only (no mask): another uid can read when the modes allow it, but not write. Guest seats never get a kernel or terminal, so they cannot reach `/mnt` at all. Without a kernel that honours `umask=`, the option appears in `/proc/mounts` and DAC is unchanged.
184
185
  - **No modes or symlinks** in an `fsa` folder: the File System Access API has neither, so `chmod` there succeeds and changes nothing (`stat` keeps `644`), and symlinks can't be made there.
185
186
  - **The tree** lists mounted folders through the kernel (spectrum's file port reads only OPFS), skipping `node_modules` and `.git` and stopping at 5,000 entries. It follows changes made through the kernel at once and others every 10 s. Reads, writes and removals below a mount point go through the kernel too.
186
187
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.63.2",
3
+ "version": "1.63.4",
4
4
  "description": "Slim loader that boots SLICC into OPFS and serves the UI from there",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -49,7 +49,7 @@
49
49
  "format": "biome check --write ."
50
50
  },
51
51
  "devDependencies": {
52
- "@ai-ecoverse/slicc": "1.63.0",
52
+ "@ai-ecoverse/slicc": "1.64.0",
53
53
  "@ai-ecoverse/slicc-browsers": "1.21.1",
54
54
  "@ai-ecoverse/slicc-cdp": "1.47.2",
55
55
  "@ai-ecoverse/slicc-kernel": "1.176.1",
@@ -12,7 +12,7 @@
12
12
  "@ai-ecoverse/slicc-devices": "1.0.2",
13
13
  "@ai-ecoverse/slicc-kernel": "1.176.1",
14
14
  "@ai-ecoverse/slicc-spectrum": "2.9.0",
15
- "@ai-ecoverse/wasi-fnox": "1.45.0-2",
15
+ "@ai-ecoverse/wasi-fnox": "1.46.0-1",
16
16
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
17
17
  "@ai-ecoverse/wasm-bash": "5.3.0-23",
18
18
  "@ai-ecoverse/wasm-coreutils": "9.12.0-15",
@@ -166,9 +166,9 @@
166
166
  }
167
167
  },
168
168
  "node_modules/@ai-ecoverse/wasi-fnox": {
169
- "version": "1.45.0-2",
170
- "resolved": "https://registry.npmjs.org/@ai-ecoverse/wasi-fnox/-/wasi-fnox-1.45.0-2.tgz",
171
- "integrity": "sha512-nY30S+3WMnX8Cm70D9w8VAQgHf4Zk79e1au50LcSr7f83CQ7Iy4T7JJrNMcmeJAVAUO68l/Ho/qL3Lxhmx2RzA==",
169
+ "version": "1.46.0-1",
170
+ "resolved": "https://registry.npmjs.org/@ai-ecoverse/wasi-fnox/-/wasi-fnox-1.46.0-1.tgz",
171
+ "integrity": "sha512-HhfyAVTbWywT0s7pfV6I2Tb2BY5flkkKwbIPneyZUy6KHDiD1PXZSOfScSwgy4egzqWqIvhqBeHWIOwk434NGQ==",
172
172
  "license": "MIT",
173
173
  "engines": {
174
174
  "slicc-kernel": ">=1.175.0"
@@ -9,7 +9,7 @@
9
9
  "@ai-ecoverse/slicc-devices": "1.0.2",
10
10
  "@ai-ecoverse/slicc-kernel": "1.176.1",
11
11
  "@ai-ecoverse/slicc-spectrum": "2.9.0",
12
- "@ai-ecoverse/wasi-fnox": "1.45.0-2",
12
+ "@ai-ecoverse/wasi-fnox": "1.46.0-1",
13
13
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
14
14
  "@ai-ecoverse/wasm-bash": "5.3.0-23",
15
15
  "@ai-ecoverse/wasm-coreutils": "9.12.0-15",
@@ -27,8 +27,8 @@ importers:
27
27
  specifier: 2.9.0
28
28
  version: 2.9.0
29
29
  '@ai-ecoverse/wasi-fnox':
30
- specifier: 1.45.0-2
31
- version: 1.45.0-2
30
+ specifier: 1.46.0-1
31
+ version: 1.46.0-1
32
32
  '@ai-ecoverse/wasi-pnpm':
33
33
  specifier: 12.9.1-21
34
34
  version: 12.9.1-21
@@ -116,8 +116,8 @@ packages:
116
116
  resolution: {integrity: sha512-+Sh0pY72IzwXm1S4CDCk48cTnzd17Uxa4jH5B1QYRmWqiR+Wr8okRcQ/vBmWVsQj9RugCQmrGI/GE86zp0Sbyw==}
117
117
  engines: {node: '>=24'}
118
118
 
119
- '@ai-ecoverse/wasi-fnox@1.45.0-2':
120
- resolution: {integrity: sha512-nY30S+3WMnX8Cm70D9w8VAQgHf4Zk79e1au50LcSr7f83CQ7Iy4T7JJrNMcmeJAVAUO68l/Ho/qL3Lxhmx2RzA==}
119
+ '@ai-ecoverse/wasi-fnox@1.46.0-1':
120
+ resolution: {integrity: sha512-HhfyAVTbWywT0s7pfV6I2Tb2BY5flkkKwbIPneyZUy6KHDiD1PXZSOfScSwgy4egzqWqIvhqBeHWIOwk434NGQ==}
121
121
  engines: {slicc-kernel: '>=1.175.0'}
122
122
 
123
123
  '@ai-ecoverse/wasi-pnpm@12.9.1-21':
@@ -281,7 +281,7 @@ snapshots:
281
281
 
282
282
  '@ai-ecoverse/slicc-spectrum@2.9.0': {}
283
283
 
284
- '@ai-ecoverse/wasi-fnox@1.45.0-2': {}
284
+ '@ai-ecoverse/wasi-fnox@1.46.0-1': {}
285
285
 
286
286
  '@ai-ecoverse/wasi-pnpm@12.9.1-21': {}
287
287