@ai-ecoverse/slicc-bios 2.10.13 → 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 does **the serve hub** (`/7/api/serve/*`, see Public previews).
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-ecoverse/slicc-bios",
3
- "version": "2.10.13",
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",
@@ -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.4",
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.4
18
- version: 8.2.4(@ai-ecoverse/slicc-kernel@1.191.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)
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.4':
26
- resolution: {integrity: sha512-xSS0nKsBYnBa55hB8lFoAWgFS9s/9CV5fo5TgOf1L7xue1bK84ZSjEteCPqeJYClkSmkfi9X3NdxHG7S0M1sAA==}
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.4(@ai-ecoverse/slicc-kernel@1.191.4)(@aws-sdk/credential-provider-node@3.972.84)(@smithy/signature-v4@5.7.4)':
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