@ai-ecoverse/slicc-bios 1.58.2 → 1.59.0
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
|
@@ -372,9 +372,11 @@ Packages are served unbundled, exactly as npm publishes them, so `pnpm upgrade <
|
|
|
372
372
|
Seven keeps its secrets in the vault, a separate origin (`@ai-ecoverse/slicc-vault`, types only in `devDependencies`; its README's "The embedding API" is the spec). `src/seed/vault.js` brokers it:
|
|
373
373
|
- **The origin** comes from `vaultOrigin()`: production seven (`https://seven.sliccy.ai` and `https://www.sliccy.ai`) always uses `https://vault.sliccy.ai` and refuses an override with a console error; every other seven uses `https://vault-preview.sliccy.ai`, or the origin in `localStorage['slicc-os.vault-origin']`, which the tests point at a fake vault.
|
|
374
374
|
- **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.
|
|
375
|
-
- **`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` (
|
|
375
|
+
- **`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), `enter`, `cancel`, `remove`, `restore`, `import`, `export`, `lock` and `dismissBackupReminder`. Rejections are `Error`s with the vault's errno as `code`. Values go only through the vault's frame, `put` (only for a UI that still types values itself, below), `seal` and `import`, are never logged, stored or put into an error message, and never reach the agent worker.
|
|
376
|
+
- **`enter(options)`** (slicc-vault ≥ 1.24.0) opens a page-started request for a value: seven sends the vault's page op `enter` with only `name`, `kind`, `provider`, `server`, `settings` and `replace` from spectrum's `EnterOptions` (a `value` or any other field is dropped) and resolves `{ request }`. The request isn't in `status.waiting` or the approvals queue; spectrum shows `valueFrame(request)` for it, and `cancel(request)` ends it. The vault refuses an existing live record of that name and kind with `EEXIST` unless `replace` is true.
|
|
376
377
|
- **`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.
|
|
377
|
-
- **`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.
|
|
378
|
+
- **`valueFrame(request)`** is built the same way, for an ask's request or an `enter` request alike, 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`, a sealed `done`'s `name`, `placeholder` and `record`, and the button's `label` and `intent`); anything else a frame adds, a value included, is dropped. A `done` with a `placeholder` is held until the next `placeholders` event from the vault that lists that placeholder (at most 1 s), also for a replace, which keeps its placeholder and only moves the scrub version, so the new `scrub` pair has reached the agent workers before spectrum attaches the name, as for a `put` answer. 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.
|
|
379
|
+
- **Values typed only in the frame:** while the loaded UI enters every value through `enter` and the frame (`valueEntry` from `@ai-ecoverse/slicc-spectrum/ui` is `true`, spectrum ≥ 2.5.0; a test can set `globalThis.sliccValueEntry` to `true` or `false` to force it), every `put` from the page is refused with `EACCES`, *values are typed in the vault's frame*, before anything reaches the vault (one without a value too; Settings-only changes go through `settings`), and an old `/dev/sealed` `request { kind: "value" }`, which only a typed `put` could answer, is refused with `EINVAL`, *ask with op ask instead*; programs use `ask`. `settings`, `import` and seven's own seals (jerk, sign-ins) are unchanged. With an older UI both work as before.
|
|
378
380
|
- **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.
|
|
379
381
|
- **`/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`.
|
|
380
382
|
- **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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.59.0",
|
|
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.
|
|
52
|
+
"@ai-ecoverse/slicc": "1.63.0",
|
|
53
53
|
"@ai-ecoverse/slicc-browsers": "1.20.3",
|
|
54
54
|
"@ai-ecoverse/slicc-cdp": "1.47.0",
|
|
55
55
|
"@ai-ecoverse/slicc-kernel": "1.175.1",
|
|
@@ -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.22.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.22.0
|
|
18
|
+
version: 7.22.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.22.0':
|
|
29
|
+
resolution: {integrity: sha512-ELDQU8PqCedAprug1dX8UIIS64lFb3v/+ySB9qgt3ISdJLVh5XeZY4L5IKiNLogdge39x4HslrH3YqlFGF5ZHQ==}
|
|
30
30
|
engines: {node: '>=24'}
|
|
31
31
|
peerDependencies:
|
|
32
32
|
'@ai-ecoverse/slicc-kernel': '>=1.172.2 <2'
|
|
@@ -43,8 +43,8 @@ packages:
|
|
|
43
43
|
resolution: {integrity: sha512-HZ5qVnVez4B2UTP+UrHbYg6GnHJjpT09byt/HHJ8Y0IRk13q5Oj8rFFCme+R0T5h42ZlmwaNVI+n77VtSaCtuA==}
|
|
44
44
|
engines: {node: '>=24'}
|
|
45
45
|
|
|
46
|
-
'@ai-ecoverse/slicc-vault@1.
|
|
47
|
-
resolution: {integrity: sha512-
|
|
46
|
+
'@ai-ecoverse/slicc-vault@1.24.0':
|
|
47
|
+
resolution: {integrity: sha512-BN1EhKSF7Nk7Gkvsexh/4T29omim1Ag7PSg51/mH7Y7yP+oM+Bco3gJldgoJdvNLQu09brVIzy8DTEcWPgt6mg==}
|
|
48
48
|
engines: {node: '>=24'}
|
|
49
49
|
|
|
50
50
|
'@anthropic-ai/sdk@0.129.0':
|
|
@@ -351,10 +351,10 @@ 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.22.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
|
-
'@ai-ecoverse/slicc-vault': 1.
|
|
357
|
+
'@ai-ecoverse/slicc-vault': 1.24.0
|
|
358
358
|
'@aws-sdk/middleware-websocket': 3.972.54
|
|
359
359
|
'@earendil-works/chord': 1.5.0
|
|
360
360
|
'@earendil-works/pi-ai': 1.5.0(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
|
|
@@ -381,7 +381,7 @@ snapshots:
|
|
|
381
381
|
|
|
382
382
|
'@ai-ecoverse/slicc-scrub@1.1.0': {}
|
|
383
383
|
|
|
384
|
-
'@ai-ecoverse/slicc-vault@1.
|
|
384
|
+
'@ai-ecoverse/slicc-vault@1.24.0':
|
|
385
385
|
dependencies:
|
|
386
386
|
'@ai-ecoverse/jerk-oauth': 1.4.2
|
|
387
387
|
'@ai-ecoverse/slicc-scrub': 1.1.0
|