@ai-ecoverse/slicc-bios 2.10.12 → 2.11.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
|
@@ -75,6 +75,7 @@ Every other OPFS file is served sandboxed: `Content-Security-Policy: sandbox all
|
|
|
75
75
|
|
|
76
76
|
**Requests the service worker never answers skip it (#728).** When it installs, `sw.js` adds static routes (`InstallEvent.addRoutes`, in Chromium):
|
|
77
77
|
- **Straight to the network:** an `https:` request to any host other than seven's own, `localhost` or a `.localhost` name (with or without a trailing dot). The worker isn't started for it.
|
|
78
|
+
- **Straight to the network, on seven's own host:** the Support API under the BIOS's folder, `/api/support/*`, or `/7/api/support/*` next to SLICC 6 (see Adobe Support). The fetch handler passes it on too, whether or not OPFS has a file there, so a kernel process can't answer for it.
|
|
78
79
|
- **To the fetch handler, as before:** everything else. That covers seven's host on any scheme or port, every `localhost` and kernel-port form, and every `http:` request.
|
|
79
80
|
|
|
80
81
|
The handler passes the routed requests through untouched anyway, so the only change is that they don't wake the worker. Before this, the update check's release-notes fetches to npm and GitHub kept an old worker busy, or restarted it while it was stopping for an update. Chromium skips the activation check when a stopping worker restarts, so the update stayed `installed`.
|
|
@@ -89,7 +90,7 @@ Seven can share its origin with another app: on `www.sliccy.ai` the BIOS is `/7/
|
|
|
89
90
|
- **Pages find the BIOS** through `os/site.js`: the folder of the service worker that controls them (`navigator.serviceWorker.controller.scriptURL`), or the origin's root when none does. The deployed lockfiles (`packages/…`), `certs.json`, the installer worker and every Reload that goes through the BIOS use it. `home()` is the BIOS without its trailing slash, and the base of follow (`#follow=`) and guest seat (`#seat=`) links.
|
|
90
91
|
- **The other app's routes stay its own.** A request for a path with no OPFS file goes to the network, so six's page, its scripts and its relay at `/auth/callback`, which isn't aliased there, still load. An OPFS file is still served sandboxed, and a script request for one still gets a 403. The UI links `manifest.json`, which the service worker redirects to the BIOS's folder, so six's `/manifest.json` stays six's.
|
|
91
92
|
- **Production:** `www.sliccy.ai` is production like `seven.sliccy.ai` (`PRODUCTION_HOSTS` in `os/site.js`), for kernel users and the vault.
|
|
92
|
-
- **Sign-in** goes through six's relay page itself (see Adobe sign-in), **the tray hub** through the BIOS's folder (see Remote devices), and so
|
|
93
|
+
- **Sign-in** goes through six's relay page itself (see Adobe sign-in), **the tray hub** through the BIOS's folder (see Remote devices), and so do **the serve hub** (`/7/api/serve/*`, see Public previews) and **Adobe Support** (`/7/api/support/*`, see Adobe Support).
|
|
93
94
|
|
|
94
95
|
#### Moving SLICC 6 into seven
|
|
95
96
|
|
|
@@ -159,6 +160,12 @@ A kernel process can still write to `/os/` and `/node_modules/` (any process whi
|
|
|
159
160
|
- **Elsewhere, without slicc-extension:** seven can't sign in, and says to install slicc-extension or open seven on its `sliccy.ai` address.
|
|
160
161
|
|
|
161
162
|
Setting `localStorage['slicc-os.sign-in'] = 'relay'` forces the first path on a dev origin; the chat test does that. Seven checks the nonce on every path. While it waits, the Adobe row in Settings › Accounts reads *Signing in…* with **Cancel** (slicc-agent ≥ 3.19.0, spectrum ≥ 1.34.0). The agent calls `login(providerId, options, { signal })`, and Cancel aborts the signal. Cancel, or the 10-minute timeout, stops the wait. The token goes to the agent worker's credential store, and the header shows the weekly budget as *Budget N%* (`#usage`), a plain status while seven offers no Monitor panel.
|
|
163
|
+
- **Adobe Support:** the page offers slicc-spectrum's `support` port (`os/support.js`), so the Support panel can show the signed-in customer's requests to Adobe Support (slicc-spectrum#1008). spectrum ≥ 2.21.0 has the panel (`<slicc-support>`); seven attaches the port to the model and lists the `support` surface (right, closed by default, on the rail with an unread badge), and `offered()` drops any surface the installed spectrum doesn't have. The port calls the Support API under the BIOS's folder (`supportBase(BIOS)`): `/api/support/*` on `https://<label>.sliccy.ai` (sliccy-ai#176), and `/7/api/support/*` on `https://www.sliccy.ai/7/`, where sliccy-ai serves the same operations with the `seven` profile. www's `/api/support/*` is SLICC 6's, and seven never calls it. The port is offered on those hosts (on www only when the BIOS is `/7/`), and on any other origin with `localStorage['slicc-os.support'] = 'on'`, as its test does.
|
|
164
|
+
- **Sign-in:** `signIn()` starts seven's Adobe sign-in above in the click (`login.grant`, so the popup has the user's gesture), through the origin relay on a label and six's opener relay on www, as Adobe AI does, with `experience-catalyst-prod` and the scopes of the Adobe LLM proxy's `/v1/config`, plus `AdobeID`, `openid` and `additional_info.ownerOrg` if it ever drops one. The token stays in the page's memory for Support only: it never reaches the vault, the agent, storage or a log, and the agent's own Adobe account is separate. Seven then reads IMS's `/ims/profile/v1` for `identity` (the display name, else the name or email) and `org` (`ownerOrg`, the organization picked at sign-in, which decides the customer). IMS refusing the token there fails the sign-in; a profile it can't read leaves both out.
|
|
165
|
+
- **Status:** `signed-out`, `signing-in`, `loading`, then `ready`. A `403 not_enrolled` is `not-enrolled`, with who is signed in and the IDs an operator needs to enroll them: `identity` adds the profile's IMS `userId` (`Jonas Berg (user ID JONAS5678@AdobeID)`) and `org` is `ownerOrg`. spectrum's `SupportStatus` has no fields of its own for them, so its panel reads "Support isn’t set up for QUAYLABS@AdobeOrg yet. Ask your Adobe contact to add you, or sign in with another account." above "Signed in as Jonas Berg (user ID JONAS5678@AdobeID), QUAYLABS@AdobeOrg". Every other state names the person only. A network error, a 503 or a 429 is `offline` with a `detail`, and keeps the last list. A 401, or the token's `expires_in` less 30 s, goes back to `signed-out`. `signOut()`, and every new `signIn()`, drops the token, the list, the cursor and every timer, and aborts what's in flight, so a late answer for the previous account is ignored. Nothing is kept for the next account.
|
|
166
|
+
- **Calls:** same-origin `fetch`es to the Support API with `Authorization: Bearer <IMS token>`, no cookies and `cache: no-store`. The list (`GET threads`, 100 a page) gives `threads()`, `unread()` (`unreadThreads`) and the change cursor together. `thread(id)` is the detail, paged too, with `kind: customer` as the customer's messages and the rest as Adobe Support's, and `rev` over 0 as edited. `create` and `reply` send the spectrum key as `Idempotency-Key` unchanged, `create` names the `channel` from `channelName`, and `read(id, through)` is the `PUT`. A cursor that expires while paging restarts that read once. Failed writes reject with a sentence to show (`409 key_conflict` reads "That request key was already used for something else."). Before any request, the port refuses thread and message ids other than 1 to 128 of `A-Z a-z 0-9 . _ : -`, and `.` and `..` (so `%2e%2e`, `a/../b` and encoded slashes never reach the URL), a title that is blank, more than one line or over 120 characters, a message that is blank or over 2,000 (UTF-16 code units, Opspile's limits), and any write without a sign-in.
|
|
167
|
+
- **Following changes:** `GET changes?after=` every 10 s while the page is visible, and right away (at most every 2 s) on `focus`, `online` or the page becoming visible again, and after a write. It drains while `hasMore`, drops events it has seen by `id` (the last 1,000), relists when anything is new, saves `next` only after that, then emits `thread` for each changed conversation. A `410 cursor_expired` or `400 invalid_cursor` starts from the list again. A failure waits `Retry-After` (up to an hour) or backs off with jitter, 5 to 10 s at first and up to 5 minutes. A hidden page doesn't poll.
|
|
168
|
+
- **Tests:** `support.test.mjs` drives spectrum's panel itself (the sign-in card, the rows, the account line, a conversation with its read acknowledgement and a reply, the not-enrolled card, Sign out) and boots seven against a fake IMS (the authorize page, the relay callback and the profile) and a fake Opspile behind `/api/support/` at the network level (`fake-opspile.mjs`), and goes through sign-in, the list, changes, writes with keys, a 410, a 503, another account that isn't enrolled, sign-out and expiry, with an OPFS file planted at `/api/support/threads` that must never answer. `support-www.test.mjs` boots seven on `https://www.sliccy.ai/7/` (host-resolver rules to a local HTTPS front with six's relay page at `/auth/callback`), signs in through the opener relay, and checks that every call goes to `/7/api/support/`, none to six's `/api/support/`, and that an OPFS file planted at `/7/api/support/threads` never answers.
|
|
162
169
|
|
|
163
170
|
Each screen class has its own layout, kept in `localStorage` (`slicc-os.layout.<screen>`). On desktop and tablet chat and the terminal share the middle, the agents and files are on the left, and file tabs open between them. On a phone it's chat and the terminal, with chat, the agents and files in the bottom rail. Every panel keeps its rail icon while it's open; while it's visible the icon shows selected (`.selected`, `data-visible`, labelled "{Title}, shown", spectrum ≥ 1.53.0), and a click brings it to the front. The Approvals panel (`approvals`, on the right, closed by default; spectrum ≥ 2.14.0) is offered while the approvals port has `history`. The header's tray connection (`#chip`) opens Network at its **Sync** section: the tray's state, the float's name, the join link with **Copy**, the followers, and **Disconnect** (after a confirm) or **Reconnect**. The agent's tray port is a placeholder today (offline, no join link), so the section reads offline; seven's own tray leader shows under Linked devices (see [Network](#network)). Memory opens from the View menu. Changes, the browser and the monitor come back as their backends land. Adobe Clean comes from `/fonts/`, which the sliccy-ai worker serves on every host.
|
|
164
171
|
|
|
@@ -645,6 +652,7 @@ A browser extension's frame inside an ordinary page, such as a password manager'
|
|
|
645
652
|
- **Filtered answers and events:** cookie lists leave out cookies whose domain is protected and partitioned cookies under a protected site. `Storage`, `DOMStorage`, `IndexedDB`, `CacheStorage` and `BackgroundService` events that name a protected origin are dropped, and so are service worker registrations and versions on one.
|
|
646
653
|
- **Credential origins (the identity provider seven signs in with):** the Adobe IMS hosts seven signs in with (`https://ims-na1.adobelogin.com` and `https://ims-na1-stg1.adobelogin.com`, from `os/adobe.js`) keep their cookies and web storage out of export on every route, always, and the guard fails closed. The guard reads slicc-browsers' `catalog.credentialOrigins` list, which names the same two hosts, and keeps the IMS hosts from `os/adobe.js` as a floor: a later catalog can add hosts, but one that leaves an IMS host out doesn't reopen its export, and a change to the host seven signs in with is covered without waiting for a catalog release. A `credentialOrigins` field the guard can't read (not a list of origins) makes it withhold the cookies and storage of every origin. A URL or origin is a credential origin when its host is one of those hosts (`http` or `https`, any port); a cookie domain or a top-level site is one when it covers one of them (`adobelogin.com` does; `x.ims-na1.adobelogin.com`, `other.adobelogin.com` and `.adobe.com` don't). Cookie lists (`Network.getCookies`, with or without `urls`, `Network.getAllCookies`, `Storage.getCookies`, `Page.getCookies`) leave out those cookies, partitioned cookies under such a site and any cookie without a domain. Cookie writes and deletes naming one by `url`, `domain` or `partitionKey` (`Network.setCookie`, `setCookies`, `deleteCookies`, `Page.deleteCookie`, `Storage.setCookies`) are refused with the catalog's `credentialOrigins.refusal` text, and so is every `Storage.*`, `IndexedDB.*`, `CacheStorage.*`, `DOMStorage.*` and `FileSystem.*` command whose origin, storage key (its top-level site too), cache id or site names one, or can't be parsed. `Network.clearBrowserCookies` and `Storage.clearCookies` keep the rule above. `Storage.getAffectedUrlsForThirdPartyCookieMetadata` leaves those URLs out, and storage events naming one are dropped. `Cookie` and `Set-Cookie` headers, `headersText` lines and `associatedCookies`, `blockedCookies` and `exemptedCookies` are stripped from the `Network` and `Fetch` events of a request whose URL, at any hop, is on such a host's site (a parent-domain cookie reaches every host there), and of a request the guard hasn't seen a URL for. On any other request those lists still leave out an entry whose cookie, or whose `Set-Cookie` line's `Domain` (quoted or not, any case), names a credential or protected origin, an entry whose `Domain` isn't a host name, and an entry with neither a cookie nor a line. An `Audits.issueAdded` cookie issue is dropped when its cookie URL, request, cookie domain or raw `Set-Cookie` line names a protected or credential origin, or when the raw line's origin can't be told. The pages stay drivable: they are listed and attachable, and navigation, `Runtime`, `DOM`, `Input`, `Page` and screenshots work as on any ordinary page, because stock clients sign in by filling and clicking the IdP's page through script. So in-page script (`Runtime.evaluate`, Playwright locators) can still read the non-HttpOnly cookies (`document.cookie`), `localStorage`, `sessionStorage` and IndexedDB of those origins, and response bodies, OAuth codes in URLs and `Authorization` headers on a drivable IdP page are not withheld. A sign-in URL that names seven's client or callback stays protected as a whole, as above. The catalog lists the two Adobe IMS hosts as credential origins: their cookies and storage cannot be exported. The Adobe login-UI hosts (`auth.services.adobe.com`, `adobeid-na1.services.adobe.com`) and federated corporate SSO, MFA and consent hosts are not covered: pages on them are drivable and their cookies and storage are exportable, `Domain=.adobe.com` cookies included, because listing a login-UI host would have made every `.adobe.com` cookie a credential cookie. A host added to the catalog's `credentialOrigins` reaches bios with the pinned slicc-browsers release.
|
|
647
654
|
- **Checked on attach:** a new session is handed to the program only after the guard has checked its target and read the session's frame tree, and none of them is protected. An auto-attached page or frame without a URL yet is held, with its events dropped and its commands refused, until it has one, and cut if it has none after 10 s. One the guard couldn't prove when it attached (its first read named no URL because it was mid-navigation, or a read failed) is held the same way: the guard checks it again, from the start (URL, protected origins, opener, content proof), at its next navigation or target info change, and every 100 ms while its URL is unread; a protected commit cuts it at once, and if it isn't proved within 10 s it is cut, with its tab's `Target.detachedFromTarget` and `Target.targetDestroyed` and, unless the program holds another session on it, the target's `Target.targetDestroyed`. A session that detaches meanwhile isn't read again. A content read is proved through any session the guard holds on the target, the shown ones first. A target that attaches paused (`waitForDebuggerOnStart`) is resumed as soon as the guard's `Fetch` arm on its own session for that target is accepted (at most 1 s), before the rest of the guard's setup, because `Page.enable` and the frame-tree read can't finish on a paused page; it stays held the same way until the guard has placed it, and a program's own `Runtime.runIfWaitingForDebugger` doesn't wait for that setup. If the guard's `Fetch.enable` is refused, the target is cut instead of resumed. A target that is already protected or held when it attaches is resumed only as the guard cuts it, and if the read that confirms it doesn't settle within 1 s, the guard cuts it then. A paused tab with no page under it after 10 s is resumed, since the program has no session on any page in it. A tab that attaches paused is resumed once the page under it is armed the same way: until the tab runs, that page can't answer the guard's frame-tree read, and the program waits for the guard before it resumes the tab. An iframe that Chrome still names with an empty URL when the guard checks it is read from a fresh frame tree of the page it attached under, used only when that tree lists the frame once at an `http:`, `https:` or `data:` address no other target claims and every recorded parent names that page, and judged again at its next target info change or navigation; otherwise it still fails closed.
|
|
655
|
+
- **A page that doesn't answer:** Chrome answers no renderer command for a page while a JavaScript dialog (`alert`, `confirm`, `prompt`, `beforeunload`) is open in it, and a session attached after the dialog opened can't close it either (`Page.handleJavaScriptDialog` says *No dialog is showing*). The guard then can't arm or read that tab, so it still refuses it, but it says why: when the guard's own setup (`Target.attachToTarget`, `Fetch.enable`, `Network.enable`, `Network.setBypassServiceWorker`, `Page.enable`) gets no answer within 10 s, or slicc-extension reports that the page isn't answering, the refusal reads `slicc: refused: the guard couldn’t keep seven’s pages and the vault out of this tab, so it refuses commands there: the page isn’t answering, and a dialog may be waiting in it` instead of the bare text before the colon. Only an ordinary tab gets this text: a tab on seven or the vault, or a held sign-in tab, is refused as protected before the guard arms it, and a tab that moved onto seven or the vault, or is loading one, while its setup went unanswered is refused as protected too. A refusal for a protected tab can therefore come sooner than the unanswered one, which waits out the 10 s setup. A target that is destroyed while the guard sets it up ends that setup at once. Closing the tab (`Target.closeTarget`) or bringing it to the front (`Target.activateTarget`) still works, and a fresh tab on the same site attaches as usual (`guard-unanswered.test.mjs`).
|
|
648
656
|
- **Cut sessions:** a session whose target becomes protected (`Target.targetInfoChanged`), whose page or any frame in it is about to navigate or navigates to a protected URL (`frameRequestedNavigation`, `frameScheduledNavigation`, `frameStartedNavigating`, `frameNavigated`, `navigatedWithinDocument`, or a `Document` request), or whose context runs on a protected origin is detached at once, without the event, and its target counts as protected from then on. Any other page event that names a protected URL or origin is dropped. Its later events and the answers to its pending commands are dropped, and its commands are refused. The guard watches each session's `Page` events itself, and passes them on only when the program asked for them. While a page has started navigating to a protected URL, the guard blanks window names, download file names, titles and frame names in target and frame events until the navigation settles, as it does after the guard has learned the navigation.
|
|
649
657
|
- **Target info changes on an ordinary page:** Chrome sends `Target.targetInfoChanged` several times while a page loads (its title, its URL). For one whose URL is ordinary and whose target isn't held or guarded, the guard waits up to 5 s for `Target.getTargetInfo` before it judges the target, since a page loading hundreds of requests over the link can keep that answer past the 1 s answer window; a protected URL is judged within 1 s as before. A target it can't confirm in that time is checked again from its frame tree; during an ordinary check that takes longer, commands keep flowing; if the check times out, the session is quarantined and reads are refused until the recheck. That check accepts child frames that haven't loaded a document yet (`url` empty, such as a `loading="lazy"` iframe below the fold, which stays that way until it's scrolled into view) under an ordinary root, as the check on attach does, so a page with a YouTube embed far down isn't cut for good. Keeping the session open doesn't make the child readable: whole-page DOM reads and screenshots are still refused until every frame is identified. A protected frame or root still cuts the session.
|
|
650
658
|
- **Requests from protected documents:** a request whose URL, document, frame, initiator, `Referer` or `Origin` is protected never reaches the program. The guard continues its `Fetch` pause itself, drops its `Network` events, and refuses its bodies (`Network.getResponseBody`, `getRequestPostData`, `Fetch.getResponseBody` and the like). Bodies, `replayXHR` and `Fetch` replies for a request the guard hasn't seen are refused too. Extra-info events that come before their request wait up to 2 s for it, then are dropped.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-ecoverse/slicc-bios",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.11.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",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@ai-ecoverse/cherry": "6.260.21",
|
|
53
53
|
"@ai-ecoverse/slicc": "1.69.4",
|
|
54
54
|
"@ai-ecoverse/slicc-browsers": "1.32.0",
|
|
55
|
-
"@ai-ecoverse/slicc-cdp": "2.1.
|
|
55
|
+
"@ai-ecoverse/slicc-cdp": "2.1.24",
|
|
56
56
|
"@ai-ecoverse/slicc-kernel": "1.191.4",
|
|
57
57
|
"@ai-ecoverse/slicc-shared-web": "2.17.0",
|
|
58
58
|
"@ai-ecoverse/slicc-spectrum": "2.21.0",
|
|
@@ -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": "8.2.
|
|
6
|
+
"@ai-ecoverse/slicc-agent": "8.2.5",
|
|
7
7
|
"@ai-ecoverse/slicc-kernel": "1.191.4"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -14,16 +14,16 @@ importers:
|
|
|
14
14
|
.:
|
|
15
15
|
dependencies:
|
|
16
16
|
'@ai-ecoverse/slicc-agent':
|
|
17
|
-
specifier: 8.2.
|
|
18
|
-
version: 8.2.
|
|
17
|
+
specifier: 8.2.5
|
|
18
|
+
version: 8.2.5(@ai-ecoverse/slicc-kernel@1.191.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
|
|
19
19
|
'@ai-ecoverse/slicc-kernel':
|
|
20
20
|
specifier: 1.191.4
|
|
21
21
|
version: 1.191.4
|
|
22
22
|
|
|
23
23
|
packages:
|
|
24
24
|
|
|
25
|
-
'@ai-ecoverse/slicc-agent@8.2.
|
|
26
|
-
resolution: {integrity: sha512-
|
|
25
|
+
'@ai-ecoverse/slicc-agent@8.2.5':
|
|
26
|
+
resolution: {integrity: sha512-h0pEfLJ03cdsGgi9EaCANmznLhoZvmzVsthG5k35FV6VxNtOsNi4lkGkJRNj8hBl3M4AYt0diJdYO4VsS5qofA==}
|
|
27
27
|
engines: {node: '>=24'}
|
|
28
28
|
peerDependencies:
|
|
29
29
|
'@ai-ecoverse/slicc-kernel': '>=1.172.2 <2'
|
|
@@ -343,7 +343,7 @@ packages:
|
|
|
343
343
|
|
|
344
344
|
snapshots:
|
|
345
345
|
|
|
346
|
-
'@ai-ecoverse/slicc-agent@8.2.
|
|
346
|
+
'@ai-ecoverse/slicc-agent@8.2.5(@ai-ecoverse/slicc-kernel@1.191.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
|
|
347
347
|
dependencies:
|
|
348
348
|
'@ai-ecoverse/slicc-kernel': 1.191.4
|
|
349
349
|
'@aws-sdk/middleware-websocket': 3.972.54
|