@ai-ecoverse/slicc-bios 1.57.4 → 1.57.6
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
|
@@ -367,10 +367,10 @@ Seven keeps its secrets in the vault, a separate origin (`@ai-ecoverse/slicc-vau
|
|
|
367
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.
|
|
368
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.
|
|
369
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.
|
|
370
|
+
- **Secret asks** (`/dev/sealed` op `ask`, from `sealed ask` and fnox; slicc-vault ≥ 1.23.0, slicc-kernel ≥ 1.175.1, spectrum ≥ 2.2.0, all three in the base set): 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
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
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
|
|
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`; a test can set `globalThis.sliccSecretApprovals` to `true` or `false` to open or close this gate whatever the UI says); 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.
|
|
374
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.
|
|
375
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`.
|
|
376
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.57.
|
|
3
|
+
"version": "1.57.6",
|
|
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",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@ai-ecoverse/slicc-cdp": "1.46.5",
|
|
55
55
|
"@ai-ecoverse/slicc-kernel": "1.175.1",
|
|
56
56
|
"@ai-ecoverse/slicc-shared-web": "2.13.10",
|
|
57
|
-
"@ai-ecoverse/slicc-spectrum": "2.0
|
|
57
|
+
"@ai-ecoverse/slicc-spectrum": "2.2.0",
|
|
58
58
|
"@ai-ecoverse/slicc-vault": "1.23.1",
|
|
59
59
|
"@biomejs/biome": "2.6.4",
|
|
60
60
|
"aws4fetch": "1.0.20",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"description": "SLICC's agent, which the UI installs with pnpm in the background into /opt/agent in OPFS",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@ai-ecoverse/slicc-agent": "7.
|
|
6
|
+
"@ai-ecoverse/slicc-agent": "7.21.0",
|
|
7
7
|
"@ai-ecoverse/slicc-kernel": "1.175.1"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -14,8 +14,8 @@ importers:
|
|
|
14
14
|
.:
|
|
15
15
|
dependencies:
|
|
16
16
|
'@ai-ecoverse/slicc-agent':
|
|
17
|
-
specifier: 7.
|
|
18
|
-
version: 7.
|
|
17
|
+
specifier: 7.21.0
|
|
18
|
+
version: 7.21.0(@ai-ecoverse/slicc-kernel@1.175.1)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
|
|
19
19
|
'@ai-ecoverse/slicc-kernel':
|
|
20
20
|
specifier: 1.175.1
|
|
21
21
|
version: 1.175.1
|
|
@@ -25,8 +25,8 @@ packages:
|
|
|
25
25
|
'@ai-ecoverse/jerk-oauth@1.4.2':
|
|
26
26
|
resolution: {integrity: sha512-XenbL8KPm7uAABy6eNl8COekMwHyWNaT7kGnaDN9VKjWCRvx2qoYgSSWbYy2fqRVqiYFZRbANDlXAEw6DGOuNA==}
|
|
27
27
|
|
|
28
|
-
'@ai-ecoverse/slicc-agent@7.
|
|
29
|
-
resolution: {integrity: sha512-
|
|
28
|
+
'@ai-ecoverse/slicc-agent@7.21.0':
|
|
29
|
+
resolution: {integrity: sha512-vZs1HkJUgpqOpSpCa6LKrI+F8Yvt0O3Azv/Q8F/fICuK5rytEZduGy7qGnbIWMc1KKuYE1LO3xUhmWg7b+6OAg==}
|
|
30
30
|
engines: {node: '>=24'}
|
|
31
31
|
peerDependencies:
|
|
32
32
|
'@ai-ecoverse/slicc-kernel': '>=1.172.2 <2'
|
|
@@ -351,7 +351,7 @@ snapshots:
|
|
|
351
351
|
|
|
352
352
|
'@ai-ecoverse/jerk-oauth@1.4.2': {}
|
|
353
353
|
|
|
354
|
-
'@ai-ecoverse/slicc-agent@7.
|
|
354
|
+
'@ai-ecoverse/slicc-agent@7.21.0(@ai-ecoverse/slicc-kernel@1.175.1)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
|
|
355
355
|
dependencies:
|
|
356
356
|
'@ai-ecoverse/slicc-kernel': 1.175.1
|
|
357
357
|
'@ai-ecoverse/slicc-vault': 1.23.1
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@ai-ecoverse/slicc-browsers": "1.20.3",
|
|
11
11
|
"@ai-ecoverse/slicc-capture": "1.4.1",
|
|
12
12
|
"@ai-ecoverse/slicc-kernel": "1.175.1",
|
|
13
|
-
"@ai-ecoverse/slicc-spectrum": "2.0
|
|
13
|
+
"@ai-ecoverse/slicc-spectrum": "2.2.0",
|
|
14
14
|
"@ai-ecoverse/wasi-fnox": "1.45.0-2",
|
|
15
15
|
"@ai-ecoverse/wasi-pnpm": "12.9.1-21",
|
|
16
16
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
@@ -146,9 +146,9 @@
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
"node_modules/@ai-ecoverse/slicc-spectrum": {
|
|
149
|
-
"version": "2.0
|
|
150
|
-
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.0.
|
|
151
|
-
"integrity": "sha512-
|
|
149
|
+
"version": "2.2.0",
|
|
150
|
+
"resolved": "https://registry.npmjs.org/@ai-ecoverse/slicc-spectrum/-/slicc-spectrum-2.2.0.tgz",
|
|
151
|
+
"integrity": "sha512-AWsRHnozsk4TJ/4FWKYZQhHWg42Yy6zhYn/enS5lBBhydU2aaI+2GQJpQPfoAB5mCvBInrDfVSyPKT0XLhI7GQ==",
|
|
152
152
|
"license": "Apache-2.0",
|
|
153
153
|
"engines": {
|
|
154
154
|
"node": ">=24"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"@ai-ecoverse/slicc-browsers": "1.20.3",
|
|
8
8
|
"@ai-ecoverse/slicc-capture": "1.4.1",
|
|
9
9
|
"@ai-ecoverse/slicc-kernel": "1.175.1",
|
|
10
|
-
"@ai-ecoverse/slicc-spectrum": "2.0
|
|
10
|
+
"@ai-ecoverse/slicc-spectrum": "2.2.0",
|
|
11
11
|
"@ai-ecoverse/wasi-fnox": "1.45.0-2",
|
|
12
12
|
"@ai-ecoverse/wasi-pnpm": "12.9.1-21",
|
|
13
13
|
"@ai-ecoverse/wasm-bash": "5.3.0-23",
|
|
@@ -21,8 +21,8 @@ importers:
|
|
|
21
21
|
specifier: 1.175.1
|
|
22
22
|
version: 1.175.1
|
|
23
23
|
'@ai-ecoverse/slicc-spectrum':
|
|
24
|
-
specifier: 2.0
|
|
25
|
-
version: 2.0
|
|
24
|
+
specifier: 2.2.0
|
|
25
|
+
version: 2.2.0
|
|
26
26
|
'@ai-ecoverse/wasi-fnox':
|
|
27
27
|
specifier: 1.45.0-2
|
|
28
28
|
version: 1.45.0-2
|
|
@@ -105,8 +105,8 @@ packages:
|
|
|
105
105
|
webgpu:
|
|
106
106
|
optional: true
|
|
107
107
|
|
|
108
|
-
'@ai-ecoverse/slicc-spectrum@2.0
|
|
109
|
-
resolution: {integrity: sha512-
|
|
108
|
+
'@ai-ecoverse/slicc-spectrum@2.2.0':
|
|
109
|
+
resolution: {integrity: sha512-AWsRHnozsk4TJ/4FWKYZQhHWg42Yy6zhYn/enS5lBBhydU2aaI+2GQJpQPfoAB5mCvBInrDfVSyPKT0XLhI7GQ==}
|
|
110
110
|
engines: {node: '>=24'}
|
|
111
111
|
|
|
112
112
|
'@ai-ecoverse/wasi-fnox@1.45.0-2':
|
|
@@ -270,7 +270,7 @@ snapshots:
|
|
|
270
270
|
- utf-8-validate
|
|
271
271
|
optional: true
|
|
272
272
|
|
|
273
|
-
'@ai-ecoverse/slicc-spectrum@2.0
|
|
273
|
+
'@ai-ecoverse/slicc-spectrum@2.2.0': {}
|
|
274
274
|
|
|
275
275
|
'@ai-ecoverse/wasi-fnox@1.45.0-2': {}
|
|
276
276
|
|