@ai-ecoverse/slicc-bios 1.56.6 → 1.57.1

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
@@ -364,8 +364,13 @@ Seven keeps its secrets in the vault, a separate origin (`@ai-ecoverse/slicc-vau
364
364
  - **The core frame** is a hidden iframe at that origin. After each `load` (so again after the frame reloads) seven posts the page hello `{ type: 'slicc-vault', v: 1, op: 'hello', role: 'page', sudoGid }`, with the kernel's `sudo` gid from `kernel.groups.list()` (left out under users `off`; the owner tab keeps it in `localStorage['slicc-os.vault-sudo-gid']` for the other tabs), and talks to the vault over that page port only.
365
365
  - **`model.vault`** (spectrum's `VaultPort`) gives Settings › Secrets, the value requests and the composer's hold synchronous `status()` and `list()` snapshots (re-listed after every `changed`), `audit`, `availability()` (`connecting` until the welcome, `waiting` without one within 5 s or while an answer is 2 s late, then `locked` or `ready`), and the page ops `put` (with spectrum's `PutOptions` passed through), `cancel`, `remove`, `restore`, `import`, `export`, `lock` and `dismissBackupReminder`. Rejections are `Error`s with the vault's errno as `code`. Values go only through `put` (and `seal`), are never logged, stored or put into an error message, and never reach the agent worker.
366
366
  - **`button()`** is a plain iframe of `<vault origin>/button.html`, with no `sandbox`, so it can open the vault's popup. Every `button` message carries seven's current colour scheme as `theme`, and is sent again on the frame's `load` and whenever the scheme changes; spectrum (≥ 1.68.3) gives the iframe the same `color-scheme`, so Chrome doesn't paint it opaque.
367
+ - **`valueFrame(request)`** is built the same way, an iframe of `<vault origin>/value.html` (`data-vault="value"`, 0×0 until spectrum sizes it from the frame's `size` event), and returns `{ element, post, listen }`. After each `load` and whenever the colour scheme changes, seven posts `{ type: 'slicc-vault', v: 1, op: 'value', request, config }`; a `value` message given to `post` merges its `config` (`dir`, `lang`, `scale`), and seven keeps `request` and `theme` its own. Other messages, such as `{ op: 'focus' }`, go to the frame as they are, and `listen` gets the frame's events (`ready`, `size`, `focus`, `escape`, `done`, `gone`, `error`) only from that frame at the vault's origin, with only the fields those events have (`event`, `request`, `state`, `width`, `height`, `inset`, `direction`, `code`, `message`, and the button's `label` and `intent`); anything else a frame adds is dropped. Values are typed and reveals allowed only in that frame, so neither seven's page nor spectrum sees a typed value or can fake a consent.
367
368
  - **The agent's port:** for slicc-agent ≥ 4.0.0 only, each agent worker gets its own `agent`-role port, posted raw as `{ vault, scrub }` next to the agent's `{ kernel, admin }`, and again with a fresh port after the frame reloads. The agent port gets no events, so every lock change in the page port's `status` is posted to the worker as `{ locked: true | false }`. `scrub` is the last `{ needed, version, ready }` pair (`localStorage['slicc-os.vault-scrub']`, `null` before any vault connected); each new pair is posted to the worker as `{ scrub }` before seven relays the `put`, `seal` or `import` answer that caused it. Agents before 4.0.0 speak an earlier draft of that wire, so they get no port and stay inert.
368
369
  - **`/dev/sealed`:** the kernel's `sealed` hook relays each request with its kernel stamp (`caller`, unchanged) as the vault's `sealed` op, and returns its one reply. While kernel users aren't `enforce`, `materialize` and `materializeConsume` are refused with `EACCES`; under `enforce`, `materialize` is relayed like the rest, and the kernel's `materializeConsume` (`ticket`, `stamp`, `path`, `resolved`, `argv`, `cwd`, `interpreters`, `trusted`, unchanged) goes to the vault's page op of that name, whose `{ values, placeholders }` go back to the kernel only. jerk's requests (`src/seed/jerk.js`) are answered with `answer`: `jop: list` with rows from each linked device that runs jerk (J1 `list`), `jop: status` from the vault's records, where `mcp:<server>` also counts a `list.mcp` record of exactly that server (exit 3 without one; the vault, not bios, checks that the reader is root), `jop: create` through J1 `create` with its progress lines (exit 4 without a jerk device), `unseal` by removing the provider's `jerk:` records, and `oauth` and `jerk-seal` with exit 5 until seven signs in itself. A `cancelled` event stops a running J1 `create`.
370
+ - **Secret asks** (`/dev/sealed` op `ask`, from `sealed ask` and fnox; slicc-vault ≥ 1.23.0): the kernel's hook gives seven `{ v: 1, op: 'ask', name, prompt?, reveal, caller, requester: { exe, argv, cwd, tty, stdin } }`, and seven relays it as the vault's `sealed` op, built from only `v`, `op`, `name`, `prompt`, `reveal`, `replace` and the kernel's `requester` facts `exe`, `argv`, `cwd`, `tty` and `stdin` (any other field is dropped), with three facts of its own in `requester` (`src/seed/secrets.js`): `kind`, `agent` for a process with an agent tag (or, without a user tag, running as a cone or scoop user) and `user` otherwise; `name`, the user's name (`uid <n>` without one); and `where`, the agent (`cone`, `cone-2`, `scoop:<folder>`, also for an untagged cone or scoop user), `a terminal` for a panel terminal, or `on <device>` for a linked device's shell, at most 128 characters with control characters stripped. The call is held open with no timeout of seven's own (the kernel's is 305 s, the vault's 300 s), and a held ask doesn't make the vault look late in `availability()`. The vault names the request in an `asked` event on the page port; when the kernel's hook aborts (the program exited, closed the descriptor, wrote again or ran out of time), seven sends the vault `cancel { request, reason: 'withdrawn' }`, also when the abort comes before the name. The vault's one reply goes back to the kernel as it is: `{ v: 1, state: 'done', placeholder, record, value? }` (`record` the record's state), `cancelled`, `expired`, `withdrawn` (which the kernel drops, since its hook has already aborted) or an error. A revealed `value` is only passed on to the kernel; seven never logs or stores it, and it isn't in any error message.
371
+ - **In the approvals queue:** each tab lists the vault's `ask` requests from `status.waiting` in `model.approvals` as spectrum's `secret` approvals (`{ id, kind: 'secret', mode, name, prompt?, reveal, requester: { kind, name, where? }, process: { exe, argv, cwd }, createdAt, expiresAt }`), after bios's own sudo and tray items, and the agent merges them into its own through `createAgentModel(connection, { approvals })` as before. `decide(id, 'deny')` cancels the request in the vault; `once` and `always` are refused with *Save or Allow in the vault's frame.*. `ended` says `withdrawn` or `expired` from the vault's `cancelled` event (or the request's `expiresAt`), and `answered` when it was sealed, allowed or denied in another tab. A request this tab denied, or whose frame from this tab's `valueFrame` said `done`, ends without one; when the request leaves `waiting` before the frame has spoken, seven waits up to 1 s for its `done` or `gone`.
372
+ - **The rest:** after a Cancel (the vault's reply is `cancelled`), the session that asked (its uid and tag) rests for 10 s, as for `/dev/embedder` prompts: its asks are refused with `EACCES`, *another request was just dismissed*, without reaching the vault. A withdrawn or expired ask starts no rest.
373
+ - **Until spectrum shows them:** seven relays asks only while the UI it loaded can show a `secret` approval (`approvalKinds` from `@ai-ecoverse/slicc-spectrum/ui` lists `secret`, or a test sets `globalThis.sliccSecretApprovals`); otherwise every ask is refused at once with `EACCES`, *seven can't show this request yet; update seven*, rather than waiting five minutes for a dialog nobody sees.
369
374
  - **HTTP placeholders:** an attributed kernel request uses the vault's `forward` admission before its selected exit sends it. The carrier must support manual redirects and decoded responses; no unavailable, older or unproven carrier is used instead. Ordinary secret bodies are unchanged. A Settings MCP credential uses its server-bound path, with complete-body scrubbing before send and response scrubbing before return. Body-only placeholders are application data, not injected. An old extension remains unavailable for these requests until its verified store release supports the redirect contract. Link and Tailscale credentialed carriers remain unavailable in this release.
370
375
  - **Refusal causes:** every admission refusal of an HTTP placeholder request rejects with `the credentialed request was refused (<cause>): <explanation>` and the same `cause` on the error (`src/seed/causes.js`). The kernel puts that message into the program's `fetch` error, so mcpcat and other clients can show it. The explanation is a fixed sentence per cause that names the narrowest fix; it never holds a value, a placeholder, a record name or the vault's own `reason`. The causes and explanations are shown to any kernel program that sends a placeholder, root or not, by design: seven is a single-user OS, and they carry no value, record name or placeholder, only coarse state such as a missing policy file, a locked vault or the kind of route. Causes are stable; match on them, never on the explanation. Cancellation, a timeout, a URL that can't be parsed (thrown before admission starts), and transport or response-stream failures keep their existing messages and have no stable cause. The detailed policy causes need a vault that names them (slicc-vault 1.22.0 and later); an older vault's refusals arrive as `vault-refused`, except `policy-paused`.
371
376
  - **Policy** (the vault refused, passed through only when its `cause` is one of these, otherwise `vault-refused`): `policy-paused`, `no-placeholder`, `no-rule`, `rule-domain`, `rule-request`, `rule-exit`, `mcp-server` (the placeholder isn't a sign-in of the MCP server at that URL), `record-removed`, `record-kind`, `record-expired`, `endpoint-protected`, `endpoint-model`, `url-credentials`, `insecure-destination`, `placeholder-in-url`, `placeholder-in-header-name`, `placeholder-repeated`, `value-overlaps`, `basic-invalid`, `basic-user`, `header-unsafe`, `path-ambiguous`, `url-invalid`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "1.56.6",
3
+ "version": "1.57.1",
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",
@@ -11,7 +11,7 @@
11
11
  "@ai-ecoverse/slicc-capture": "1.4.1",
12
12
  "@ai-ecoverse/slicc-kernel": "1.175.1",
13
13
  "@ai-ecoverse/slicc-spectrum": "2.0.2",
14
- "@ai-ecoverse/wasi-fnox": "1.43.0-1",
14
+ "@ai-ecoverse/wasi-fnox": "1.45.0-1",
15
15
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
16
16
  "@ai-ecoverse/wasm-bash": "5.3.0-23",
17
17
  "@ai-ecoverse/wasm-coreutils": "9.12.0-15",
@@ -155,9 +155,9 @@
155
155
  }
156
156
  },
157
157
  "node_modules/@ai-ecoverse/wasi-fnox": {
158
- "version": "1.43.0-1",
159
- "resolved": "https://registry.npmjs.org/@ai-ecoverse/wasi-fnox/-/wasi-fnox-1.43.0-1.tgz",
160
- "integrity": "sha512-awvZp9IgUm2v6lezBmP73WJ+V8xK+FF+3UfIRUtTiXlFpWo93I0nts2vP6pQ+l6izT1ZnHiBB+kpkyvKdnph5g==",
158
+ "version": "1.45.0-1",
159
+ "resolved": "https://registry.npmjs.org/@ai-ecoverse/wasi-fnox/-/wasi-fnox-1.45.0-1.tgz",
160
+ "integrity": "sha512-/xumDamvV4MD+v/oq/YFqLFylCs/88AGB68hFU9JcW5LPiQ8Tr7fnW7UIvdJDGIp/KNSmuWlgk5ugOsfeBuHBQ==",
161
161
  "license": "MIT",
162
162
  "engines": {
163
163
  "slicc-kernel": ">=1.83.0"
@@ -8,7 +8,7 @@
8
8
  "@ai-ecoverse/slicc-capture": "1.4.1",
9
9
  "@ai-ecoverse/slicc-kernel": "1.175.1",
10
10
  "@ai-ecoverse/slicc-spectrum": "2.0.2",
11
- "@ai-ecoverse/wasi-fnox": "1.43.0-1",
11
+ "@ai-ecoverse/wasi-fnox": "1.45.0-1",
12
12
  "@ai-ecoverse/wasi-pnpm": "12.9.1-21",
13
13
  "@ai-ecoverse/wasm-bash": "5.3.0-23",
14
14
  "@ai-ecoverse/wasm-coreutils": "9.12.0-15",
@@ -24,8 +24,8 @@ importers:
24
24
  specifier: 2.0.2
25
25
  version: 2.0.2
26
26
  '@ai-ecoverse/wasi-fnox':
27
- specifier: 1.43.0-1
28
- version: 1.43.0-1
27
+ specifier: 1.45.0-1
28
+ version: 1.45.0-1
29
29
  '@ai-ecoverse/wasi-pnpm':
30
30
  specifier: 12.9.1-21
31
31
  version: 12.9.1-21
@@ -109,8 +109,8 @@ packages:
109
109
  resolution: {integrity: sha512-yfgr0wLwpT4DguBO9VW+mQkavCMYo5rZKC9DpqLQiIrRSwmJSu8/fq38Q1lBCWdOe5gR/KQqcc2UPwehwbky5g==}
110
110
  engines: {node: '>=24'}
111
111
 
112
- '@ai-ecoverse/wasi-fnox@1.43.0-1':
113
- resolution: {integrity: sha512-awvZp9IgUm2v6lezBmP73WJ+V8xK+FF+3UfIRUtTiXlFpWo93I0nts2vP6pQ+l6izT1ZnHiBB+kpkyvKdnph5g==}
112
+ '@ai-ecoverse/wasi-fnox@1.45.0-1':
113
+ resolution: {integrity: sha512-/xumDamvV4MD+v/oq/YFqLFylCs/88AGB68hFU9JcW5LPiQ8Tr7fnW7UIvdJDGIp/KNSmuWlgk5ugOsfeBuHBQ==}
114
114
  engines: {slicc-kernel: '>=1.83.0'}
115
115
 
116
116
  '@ai-ecoverse/wasi-pnpm@12.9.1-21':
@@ -272,7 +272,7 @@ snapshots:
272
272
 
273
273
  '@ai-ecoverse/slicc-spectrum@2.0.2': {}
274
274
 
275
- '@ai-ecoverse/wasi-fnox@1.43.0-1': {}
275
+ '@ai-ecoverse/wasi-fnox@1.45.0-1': {}
276
276
 
277
277
  '@ai-ecoverse/wasi-pnpm@12.9.1-21': {}
278
278