npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ai-ecoverse/slicc-spectrum

v2.22.4

Published

Web components for SLICC on Spectrum Web Components: the terminal, the app shell and its surfaces

Readme

slicc-spectrum

Web components for SLICC: <slicc-terminal>, and SLICC's app UI on Spectrum Web Components (see UI). <slicc-terminal> is a terminal built on wterm (@wterm/dom 0.5.4 on the Ghostty VT core, @wterm/ghostty 0.5.4) that talks to @ai-ecoverse/slicc-kernel through a small backend interface. It is a standards custom element with no framework and no shadow root, so it can move to a shared web-components repo unchanged.

<slicc-terminal></slicc-terminal>
<script type="module">
  import './dist/slicc-terminal.js';

  const terminal = document.querySelector('slicc-terminal');
  terminal.backend = myBackend;
  await terminal.ready;
  terminal.focus();
</script>

Element

backend

A TerminalBackend. Setting it closes the current session and opens a new one.

cols, rows attributes

Fixed grid size. Without either, the grid fits the element and follows its size. When the width changes, soft-wrapped lines reflow to it, on the screen and in the scrollback, with their colours and attributes; lines that ended in a newline stay as they are.

ready

Promise that resolves with the element once wterm has mounted and the session is open. Rejects if either fails. Setting backend or removing the element replaces it with a fresh promise, and anyone still waiting on the old one gets the new outcome.

cols, rows properties

Current grid size.

resize(cols, rows)

Sets both attributes and resizes once.

fit()

Removes both attributes and fits the grid to the element.

send(data)

Sends a string or bytes to the backend, as if typed.

write(data)

Writes a string or bytes to the screen without involving the backend.

redraw(data)

Writes a string or bytes to the screen only, without answering any terminal query in it (for replaying history).

signal(name)

Sends SIGINT, SIGTSTP, SIGQUIT or SIGHUP to the backend.

readText()

Resolves with the text of the scrollback and the screen, with soft-wrapped lines joined into one. The scrollback keeps 4 MB of cells, about 3,500 lines at 80 columns and 1,200 at 200.

focus()

Focuses the terminal input.

Events, all CustomEvents with the payload in detail: ready {cols, rows}, resize {cols, rows}, exit {status}, title {title}, bell {count}, error {error}.

It answers OSC 10 and OSC 11 color queries (ESC ] 10 ; ? ST and ESC ] 11 ; ? ST) with the foreground and background it shows at that moment, as rgb:rrrr/gggg/bbbb, so command-line tools can tell a light theme from a dark one and follow a theme switch. The answer reaches the backend before replies to anything that comes later in the output. A CSI ? 996 n query gets one reply for the theme it shows, CSI ? 997 ; 1 n in dark or CSI ? 997 ; 2 n in light, also with mode 2031 on after a theme switch.

Removing the element closes the session and destroys the screen. Adding it again mounts a fresh screen and opens a new session on the same backend.

Backend interface

interface TerminalBackend {
  open(sink: TerminalSink, size: { cols: number; rows: number }): TerminalSession | Promise<TerminalSession>;
}

interface TerminalSink {
  output(data: Uint8Array): void;
  exit(status: number): void;
}

interface TerminalSession {
  write(data: Uint8Array): void;
  resize(cols: number, rows: number): void;
  signal?(name: 'SIGINT' | 'SIGTSTP' | 'SIGQUIT' | 'SIGHUP'): void;
  close(): void;
}

Keystrokes reach write as the bytes a terminal would send: UTF-8 text, \r for Enter, 0x03 for Ctrl+C, escape sequences for arrows and function keys, and bracketed paste when the application has turned it on. Pasted \r\n and \n line breaks are sent as \r, as xterm.js does, in both plain and bracketed paste. The backend's line discipline turns 0x03, 0x1a and 0x1c into signals, as a real pty does. signal() is optional. Without it, terminal.signal() writes the matching control byte instead, and SIGHUP is dropped. Output may arrive in chunks of any size and split anywhere, including inside UTF-8 sequences and escape sequences. While open() is pending, input (keystrokes, send() and wterm's automatic replies) is buffered and written in order once the session opens. If that open fails or is superseded, the buffer is dropped.

slicc-kernel

kernelBackend(kernel, { argv, cwd, user, env }) adapts slicc-kernel's terminal API to the interface above. argv defaults to ['bash', '-i']. user (a name or uid, slicc-kernel 1.44 and later) is who the session runs as; without it the kernel runs it as root, with HOME=/root. It is typed structurally, so this package doesn't depend on slicc-kernel. If the session fails, its error message is printed and exit reports status 1.

import { createKernel } from './node_modules/@ai-ecoverse/slicc-kernel/dist/index.js';
import { kernelBackend } from './dist/slicc-terminal.js';

const kernel = await createKernel({ root: await navigator.storage.getDirectory() });
document.querySelector('slicc-terminal').backend = kernelBackend(kernel, { cwd: '/home' });

Theming

The element sets wterm's --term-* variables from its own custom properties, so you can set them on the element or on any ancestor.

| Property | Default | | :--- | :--- | | --slicc-terminal-background | #1d1d1d | | --slicc-terminal-foreground | #d4d4d4 | | --slicc-terminal-cursor | #aeafad | | --slicc-terminal-color-0 … --slicc-terminal-color-15 | wterm's palette | | --slicc-terminal-font-family | "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace | | --slicc-terminal-font-size | 14px | | --slicc-terminal-line-height | 1.2 | | --slicc-terminal-padding | 8px | | --slicc-terminal-height | 360px (ignored when rows is set) | | --slicc-terminal-border-radius | 4px |

The stylesheet (wterm's plus the theme) is constructed once per document and adopted into the document or shadow root the element is connected to. That includes iframes the element is moved into.

Distribution

npm run build writes dist/slicc-terminal.js (one ESM bundle with no bare imports), its source map and dist/ghostty-vt.wasm (Ghostty's VT core, about 580 kB; it replaced the 27 kB dist/wterm.wasm of wterm's built-in core). The bundle loads the WASM with new URL('./ghostty-vt.wasm', import.meta.url), so dist/ works from any path, including from OPFS through the slicc-bios service worker. It is fetched once per page and compiled once per URL, streaming when it is served as application/wasm, and each terminal gets its own instance. wterm's base64-inlined copy of its built-in WASM is left out of the bundle. TypeScript declarations go to dist/types/, and the package's types export points at them. Set SliccTerminal.wasmUrl before the first element connects to load it from elsewhere. dist/swc.css (exported as @ai-ecoverse/slicc-spectrum/swc.css) is the pinned @adobe/spectrum-wc stylesheet with its tokens inlined, one file with no @import. A page that puts a UI element straight into the document, such as a guest's page, links it and wraps the element in <div class="swc-theme swc-theme--sizeM swc-theme--light"> and <sp-theme system="spectrum-two">, as test/integration/page/guest/ does.

wterm notes

Things found while building this against wterm 0.5.4, recorded here, not pushed upstream:

  • The built-in Zig core doesn't reflow: on a resize it cuts or pads each row and keeps no soft-wrap flags (its bridge has no getRowMetadata), so a line wrapped at 45 columns stays on two rows at 120, and readText() and copy split it. It also maps 24-bit colours (38;2;r;g;b) to the nearest of the 256 palette colours. The element runs on @wterm/ghostty instead, which reflows on resize, keeps wrap flags in the scrollback and renders 24-bit and 256 colours exactly (xterm's 0/95/135/175/215/255 cube).
  • Ghostty resolves palette colours 0–15 to RGB inside the WASM, so wterm's --term-color-N variables (and --slicc-terminal-color-N) would stop applying. The element gives the core a palette of 16 marker colours (#51cc00 … #51cc0f) and maps cells in those colours back to palette indexes, so the CSS variables theme them and follow a theme switch, in the scrollback too. Text drawn in exactly one of those 24-bit colours shows in the theme's palette colour instead. From @wterm/dom 0.5.7, WTerm also reads those CSS variables on init (and on OSC 10/11) and calls setThemeColors on the core; the element keeps the marker palette on that path so the CSS mapping still works, and passes on its options, so 0.6.0's quiet keeps a scheme query from getting a mode 2031 report as well. 0.5.7 also paints cell backgrounds onto a canvas, which would drop live CSS backgrounds from the spans; the element suspends that canvas so palette and 256-colour backgrounds stay on the spans.
  • Ghostty answers OSC 10 and OSC 11 queries itself, with the colours it was loaded with. The element drops those replies and answers from the theme it shows.
  • Ghostty's scrollbackLimit is in bytes and allocated in pages, so the number of lines it keeps depends on the width. Its default of 10,000 bytes keeps about 300 lines at 200 columns; the element asks for 4 MB.
  • WTerm.destroy() doesn't dispose a core passed in as core. The element disposes it.
  • wterm sends pasted text with its \n line breaks unchanged, whereas xterm.js turns them into \r. The element does that conversion itself.
  • @wterm/core always ships the WASM inlined as base64 behind a dynamic import. A build without it, or an explicit entry point that takes a URL, would save the bundler plugin.
  • wterm focuses its input when it finishes mounting. <slicc-terminals> hands focus back to where it was unless the terminal was focused on purpose.
  • wterm reads focus and selection from ownerDocument (activeElement, getSelection()), so selection and copy don't work inside a shadow root that wterm itself owns. That's why the element renders in light DOM. It still works when the element is placed inside someone else's shadow root.

UI

dist/slicc-ui.js is SLICC's app shell on Spectrum 2, in light and dark. It is moving from Spectrum Web Components 1.12 to Gen2 (@adobe/spectrum-wc): the Gen2 theme classes (swc-theme swc-theme--sizeM swc-theme--light|dark) and --swc-* tokens apply inside <slicc-app>, and icons are Spectrum 2 workflow icons from @adobe/spectrum-wc-icons. Components Gen2 doesn't ship yet stay on 1.12 inside a scoped <sp-theme system="spectrum-two"> (#60). It runs against a typed model, not against the kernel, the agent or the browser directly. dist/slicc-dummy.js provides a dummy model that streams replies and tool calls with timers, and dist/slicc-kernel-model.js a real one for files and terminals on slicc-kernel (see Kernel model).

Static black and white content uses --swc-static-black-text-color and --swc-static-white-text-color; beta.6 no longer ships the old --swc-black / --swc-white tokens.

<slicc-app></slicc-app>
<script type="module">
  import { createDummyModel } from './dist/slicc-dummy.js';
  import './dist/slicc-ui.js';

  document.querySelector('slicc-app').model = createDummyModel({ storage: localStorage });
</script>

npm start serves it at /ui/. ?fonts=<url> loads Adobe Clean from another folder, ?vf=<url> Adobe Clean Spectrum VF from another file, and ?vf= turns it off (see Fonts).

Layouts and rails

The layout follows the width of <slicc-app>, which it reflects as its screen attribute: phone (under 640 px) has one column, tablet (under 1200 px) two, desktop three, like SLICC v6. Each screen class starts with few panels open and saves its own layout (slicc-ui.layout.v2.<screen>). Every surface has a home side, left, center or right. Every panel has an icon in the left or right rail (on a phone, in one bar at the bottom, with the rest in its More menu), except a surface with rail: false, such as Support, which opens from its header button and View instead. The icon stays when its panel is open; while the panel is visible it shows selected (.selected, data-visible, labelled "{Title}, shown"). One click puts a closed panel back on its side, next to its neighbours, or brings an open one to the front. A touch or pen tap on a rail button closes its tooltip: a Gen2 swc-tooltip ignores focus that comes in the same task as pointerdown, but a tap focuses the button a task later, so the tooltip opened and stayed while the button kept focus (after a tap on Chat, which leaves focus where it is). Each thread, a cone's or a scoop's conversation, opens in its own chat panel (chat:<agent id>), as a tab in the same group as the other chats. Selecting a thread opens or reveals its tab, activating a chat tab selects its thread, and a thread's chat closes when the thread goes away (frozen or deleted). A chat tab whose thread isn't listed stays where it is, disconnected (see <slicc-chat>), so a reload that brings the agent up after the layout, with or without a starting() line and with its threads coming all at once or one by one, keeps the tabs in their group and their group in its column, and each connects where it is once its thread is listed. A chat tab closes by itself when its thread, listed before on the same agent port, goes while the port still lists another thread, such as when it's frozen or deleted, and when its thread was never listed once the port has settled: its ready() has resolved, it lists at least one thread and starting() has no line. So a saved tab of a thread frozen or deleted while the page was closed, or on another device, closes instead of staying disconnected. ready() should resolve only once the port lists every thread it has, as the dummy's does once every withheld agent has arrived.

surfaces on <slicc-app> (default: every surface, exported as surfaces) is what the app offers: the panels it can open, the View menu, the rails and Alt+1…9. A saved layout with a panel it doesn't offer is dropped for the default. An embedder can pass a subset with its own open per screen class. The agent picker and the tray show only when chat is offered, the update status only with updates, the network indicator only with network and a network port, the settings button only with settings, the Approvals panel (approvals, on the right, closed by default) only when the approvals port has history, and the Support panel (support, on the right, closed by default, with a header button instead of a rail icon) only with a support port. Elements with slot="status" show in the header as compact single-line items, before the update status, and are cut with an ellipsis when long; a hidden one takes no space. There are no strips under the header. On a phone the status items are hidden.

Fonts

Text is Adobe Clean Spectrum VF, falling back to Adobe Clean, and code is Spectrum's Source Code Pro. Source Code Pro (OFL) is in dist/fonts/, same origin. Neither Adobe Clean can ship in a public package. <slicc-app> registers the variable face (adobe-clean-spectrum-vf, weights 100–900) from variableFont, a woff2 URL that defaults to the Adobe Fonts file React Spectrum S2 uses; a host can point it at its own copy, or set it to null to leave it out. The legacy faces come from fontBase (AdobeClean-{Regular,Medium,Bold,ExtraBold}.otf), which defaults to /fonts/ on the current origin. Every *.sliccy.ai host passes it through to v6, and npm start proxies it from seven.sliccy.ai. The sans stack (--swc-sans-font-family-stack, also used by the 1.12 components) is the variable face, then Adobe Clean, then the system font stack, so text falls back face by face wherever a file doesn't load. ?delay= sets the dummy's tick in milliseconds (default 30) and ?color=light|dark|system the theme.

Elements

<slicc-app>

The shell: header with the agent picker, status items, the update status, the network indicator, the tray, the View menu, the Support button, the settings button and the theme switch, rails, and a <slicc-dock>. Saves the dock layout per screen class to storage (default localStorage) under layoutKey. The dock builds new panel content whenever it lays panels out again (a switch between phone, tablet and desktop, or a layout reset), so what the user opens in a panel (sections, cones, rows, folders, disclosures) lives outside the element, per model and panel (view-state.ts, in memory only): a rebuilt panel shows it again, and a click on the outgoing panel while the new one mounts reaches the new one too. Files keeps its selected row, its keyboard focus target (without taking focus) and its scroll the same way, and Agents, Memory, Changes, Monitor, the Browser tab cards, Freezer and Settings keep their scroll; the chat log keeps its own. The scroll comes back once the list has laid out, anchored on the selected row when it was in view and otherwise on the first row in view, at the same distance from the top, so a narrower phone layout keeps those rows in view. A list scrolled to its end, Files included, comes back at its end. Files puts its scroll back even when the tree scrolls its focused row into view on its own. After that, a resize or new content keeps the anchored row where it was. These lists set overflow-anchor: none on their scroller, since they anchor it themselves. When the app switches models in place, each panel shows the state it keeps for the new model. While connected it sets overscroll-behavior to none !important on the page's html and body, so only scroll areas inside panels rubber-band. It sets the page's color-scheme to its resolved theme, and when the page has a theme-color meta per prefers-color-scheme, gives every one of them the content of the meta for that theme, so the page and the installed app's title bar follow the app's setting instead of the OS. When the last app on the page is removed, the page's own inline values and theme-color contents come back. With a follow port, the header shows a <slicc-follow> chip, and while the follower connects, waits to be allowed, is unlinked or fails, a <slicc-follow page> (.alone[data-follow] with the page kind) takes the place of the panels; without Terminal access, the terminal surface and New terminal aren't offered, and open terminals close when it's taken away. It offers its surfaces (the View menu, More panels, the rails and, on a phone, the bottom bar and More), except the Network panel when the model has neither a network nor a guests port, and the terminal while terminals aren't allowed; rebinding to a model without either port closes Network.

<slicc-dock>

Generic. dockview-core 8 with a theme mapped to Spectrum tokens, in its own shadow root. Panels come from factories (name → (params) => HTMLElement). open, close, has, content, focusPanel, cycleGroup, cycleTab, toJSON, restore, clear, and the full api. Tabs have a context menu (close, close others, float, maximize). Events: layout-change, active-panel-change, panel-close.

<slicc-agents>

A tree (role="tree") of cones, with their scoops listed under them. A cone with scoops starts with a quiet disclosure chevron (data-action="toggle-cone", swc-icon-chevron-right, turned down when open and mirrored right to left); it's aria-hidden and out of the Tab order, since the row's aria-expanded carries the state. With no scoops anywhere the tree is flat (ul[data-flat]): there is no chevron column, and rows start at the same padding they end with. With any scoop, every row keeps the chevron's column so the names line up. The chevron only expands and collapses; a click on the row, Enter or Space selects the agent and makes it the active one, which also expands its cone. → expands a cone and then moves to its first scoop, ← moves from a scoop to its cone and then collapses it, and neither changes the active agent. Several cones can be open at once, and they stay open for every view of the panel on the same model, so a layout switch keeps them; when the active agent has changed since the panel last showed it, its cone opens again as the panel mounts, so on a phone a cone you tapped still shows its scoops when you come back to Agents, and a cone you closed stays closed. When the active scoop's cone is collapsed, the cone row takes the Tab stop. A row's first line starts with one leading mark (.lead[data-lead]), never two: an alert triangle in error, a hollow ring when waiting, otherwise the unread count when there are unread messages (99+ from a hundred up, at --swc-font-size-50, white on the accent fill), else a pulsing ringed disk when working that prefers-reduced-motion stills, or a dashed ring when thinking. An idle row keeps the slot empty so the names line up. Status dots are the medium status light size (--swc-status-light-dot-size-medium, 10px); a working dot's ring stays within that size, and the error triangle is the large size (12px). Then comes the name; from 80% the context fill sits in the top right corner, in regular weight, in the notice or negative colour. A hidden drop or delete button adds no height, so every row is the same height. Every row has up to two lines of conversation title, aligned to the top under the name, with no status word, so nothing moves when the status changes; the accessible name and the tooltip say the status and the exact unread count. A cone with scoops has a ribbon line below: one segment per scoop, coloured by status at 3:1 or more on every row background, then its scoops in words, naming only the busy ones, as in "2 scoops · 1 waiting" ("2 scoops" when all are idle). Its aria-description sums up every status, as in "2 scoops: 1 working, 1 idle". Rows without scoops or errors have no empty ribbon or error line. With no agents while the agent port's starting() returns a line, the panel says "The agent shows up here once it starts." ([data-empty="starting"], subdued, after an indeterminate progress circle) and has no New cone; the line goes, and New cone comes back, once an agent arrives or the line clears. The drop or delete button sits in its own column on the row's right edge, under the context fill, so the title ellipsizes before it and the focus ring stays whole; it shows on hover, on keyboard focus of the row, when Tab from the selected row reaches it, and always on touch, and it hides again once a pointer that clicked it leaves. The selected row has an accent bar on its inline-start edge. Under forced colors, the status marks keep their shapes in CanvasText (an idle row has none), and the segments, unread circle and selection bar keep CanvasText, Highlight and HighlightText. A cone with scoops carries aria-expanded, and aria-controls names its scoop rows while they show. Expanding and collapsing have no motion. New cone sits at the bottom. The conversation title is also shown in the header's cone picker: Agent.title, or else the first line of the first user message in messages(). Without one, it reads "Earlier messages" while hasOlder says there is more to load (the loaded window can hold no user message, or nothing the chat shows, while the conversation has hundreds), "Untitled chat" when the cone has messages but none from the user, and "No messages yet" only when it has none. When cones share a name, their accessible names and the Delete cone, Freezer and confirmation labels add the title, as in "Delete cone sliccy (Hello from Bedrock)".

<slicc-chat>

One thread's conversation (its agent, or the active agent if unset), by day. Files dragged anywhere over the pane (not text, links or the dock's own drags) show Spectrum's drop zone over the whole pane (swc-dropzone[data-surface=drop], in its dragged state: an accent border on an opaque accent-subtle fill, so the transcript doesn't show through), with an illustrated message: an attach icon, "Drop files to attach" and what it takes ("Images, text and other files up to 100 MB each join your next message. Folders can’t be attached."), where the size is the smallest limit that applies to any image, text or other file: 100 MB, or less when the agent port's attachmentLimits() sets one (8 MB for { file: 8 * 1024 * 1024 }); a polite status ([data-announce=drop]) says "Drop to attach files to your message". The zone stays while the drag crosses into the composer or another child, and goes 100 ms after the drag leaves the pane (SliccChat.leaveAfter), on drop and on Esc. A drop anywhere on the pane attaches to the composer; while there is no composer (watch-only, frozen), on a guest seat, or while the composer waits to reconnect, the pane shows no zone and still consumes the file drag (dropEffect none), so a drop never opens the file in the tab. A message's time shows only when it is at least two minutes newer than the last time shown, and the first one after each day separator always shows; a hidden time stays for screen readers (time.sr with datetime, or .sr on licks and cards), and a meta row left empty isn't rendered. User messages (with attachments and a quiet timestamp, time.when, by that rule; the reader's own carry no name or delivery tag, while data-mode and data-delivered still say how they went; a message from another cone, a follower or a guest says who sent it, and an agent's request carries its name and an Agent badge; a message from another agent, an agent's request or a message from a cone (origin agent, or from set without origin follower or guest), is [data-remote]: a subtle indigo bubble and a 🤖 pill on its bottom edge, aria-hidden since the byline names the sender; people, the reader included, never get it), assistant messages (with the time by that rule, and the model only on the first reply and whenever it changes from the previous one, .meta .model with the usage as its tooltip; without a model the usage is the time's tooltip, and with neither it is the reply's own (.reply[title]); the turn always carries the usage as its aria-description; the cone's name isn't repeated; Markdown with tables, task lists, quotes, code and images, fenced code highlighted like the Files view (below); thinking; tool calls, as the steps of the reply's response status (below); media galleries with images, video and audio; action cards for tools, pull requests and status; plans and checklists; inline diffs; question prompts (as decision cards, below); delegations; link previews; errors with a fix-it action, as a grey card (.error-card[role=alert], data-id on system errors) inset by a wide margin on each side, a narrower one under 480 px: a red alert icon, the title in bold, the detail subdued and the action on the right, or under the detail below 360 px, announced as "Error: " and the title; an error with action: 'login' and an account (an Account.id) signs that account in: Log in calls settings.connect(account) synchronously in the click when the account is OAuth or needs no secret or fields, so a sign-in pop-up opens within the user gesture, and otherwise, or when accounts() doesn't have it, opens Settings at its row; the card follows the account's status from accounts (data-login is idle, signing-in or connected): while it is signing-in or connect is pending, Log in is pending and reads “Signing in…”, for an OAuth account the detail reads “Continue in the sign-in window that opened.” and, after SliccChat.closedAfter (20 s, since a closed window can't be detected), “Closed the sign-in window? Cancel, then Log in again.”, with Cancel (data-action="cancel-login") when the port has cancel; once connected, the card is no longer an alert: a neutral info icon in the detail colour replaces the red one, the "Error: " prefix goes, the title reads “Signed in to {provider} again.” (the account's provider), the detail reads “Signed in. Retry to send it again.” (a polite status) and the button becomes Retry, which sends the last prompt again only when clicked; a rejected connect shows its message as negative help text ([data-error=login]), keeps Log in and adds a quiet Open settings (data-action="settings") to that account; without an account, Log in opens Settings at Accounts, and watch-only and guest seats keep their gating; a content-filter stop offers Drop the last turn, which rewinds that turn and puts its prompt back into the composer; when the turns right before it failed too, the button reads Drop N failed turns and rewinds to before the first of them, putting the latest prompt back), system messages (error cards; compactions and notices, rewinds and model changes included, as full-width dividers with a line on each side, like the day: a compaction shows only its title, its text kept for screen readers, one that lost messages (state: 'fallback', by default "Compaction failed, transcript truncated", or discarded, "Context discarded") an alert icon in the negative colour, and a notice its title and text on one line, role="note"; a divider that wraps keeps a short line on each side) and licks, SLICC's events into a cone, on every channel, on the right (.lick-turn): a byline with the title and the time by the two-minute rule, then a dashed box (.lick[data-id][data-channel]) with the text and the count (×3); emoji pills on its bottom edge (.reactions .reaction, aria-hidden, each named by its title) give the channel (⏰ Schedule, 🪝 Webhook, ✨ Sprinkle, 💬 Cone message, …; a channel spectrum does not know falls back to 📎 Notice) and the outcome (👍 Allowed, 👎 Denied, also said in the box's hidden text). A lick with a body is a details.lick whose head (summary.lick-head, with a quiet chevron that turns when open) toggles it with a click, Enter or Space; clicking the body doesn't close it. A reply's tool calls are the steps of its response status (swc-response-status[slot=status], data-id the reply's), at the top of the reply: one swc-response-status-step per call (id run- and the call's id, data-tool, data-status, data-kind, and data-id the message the call came from), labelled with a human title when the agent sent one (without repeating the tool name), or with the tool name and a raw title when the title still looks like a command or path, active while it runs, complete when done and stopped when it failed or was cancelled, which its label says in words (" · Failed", " · Cancelled"). The status keeps data-action="open-cluster" and each step data-action="open-run" with data-target the call's id: clicking the host from script opens it, as the old strip's buttons did, and opening a step opens its status too. A step whose call has anything to show labels itself with a button (.run-toggle, aria-expanded, aria-controls) that opens the call under the step's row, at the full width of the column and indented to the step's text, in our own region (.run-detail#detail- and the call's id, role="listitem", hidden while closed, data-target the call's id), not in Spectrum's 340 px description; the step carries data-open while it's open. The region is the call: its input (a shell command after $), an edit's diff shown as a diff view, its output, both kept on their lines and scrolling sideways rather than wrapping, with its ANSI styles shown (bold, dim, italic, underline, inverse, and the 16, 256 and truecolor foregrounds and backgrounds; the 16 foregrounds come from --slicc-terminal-color-0 to -15 when an embedder sets them, else the terminal panel's light tokens, which adapt in dark (so a card in dark uses Spectrum's colors, not the panel's VS Code ones); the 16 backgrounds are Spectrum's subtle tints under the default text, black a solid grey under the lightest grey, so text keeps 4.5:1; a 256 or truecolor background shows as a tint, blended toward the card (12% in light, 25% in dark), and one too close to the card to see, such as white on a light card, gets a grey tint toward the card's text instead; a 256 or truecolor foreground keeps its hue but moves toward black or white until it has 4.5:1 on the card or its tint, and other text on such a tint takes the card's text colour under the same floor; the card and its text colour are read once for light and once for dark, so the colours follow the theme through light-dark(), and a chat that can't read them (outside the Spectrum theme, where it shows the colours as sent) tries again only when it reconnects or the theme changes; dim subdues default text and turns a bright color into its normal one) and every other escape stripped, a partial escape at the end of streamed output waiting for the rest (the model still sees the raw bytes, and a copy gets the text without escapes), an image, such as a screenshot, its notes ({ severity, text }, such as "Output truncated: 12 lines dropped" or "Full output in /tmp/…") as lines under the output at the meta size, li[data-note][data-severity]: error with an alert icon, text and icon in the negative colour, warn with an alert icon in the notice colour and info with an info icon, both subdued, then a result row (.result, wrapping) and the time a joined call ran ("Ran at 16:12", .ran, by the two-minute rule). The result row holds one subtle badge for the command's exit ({ code, signal? }; swc-badge[data-exit][data-signal]): positive "Exit 0", negative "Exit 5", or negative "Killed (SIGTERM)" when a signal ended it; the programs that failed inside the command ({ name, code, signal? }) as neutral text after a notice alert icon, [data-program] each, such as "wrangler exited 1, timeout was killed (SIGTERM)"; and the optional meta (.tool-meta), such as what ran, how long and the timeout, subdued. A call with only an exit or programs still opens to show them; send exits there rather than as notes. The status's header is always one line: while the reply streams or the agent works on the run, it is active, with the running call's step label when one has arrived, else its human title (or the last call's), and that call's kind as its loader, and each label stays for at least a second before the next one replaces it, so streamed arguments don't make it flicker; a reply without calls shows "Generating response" only until its first text or visible thinking. Done, the status stays as complete, also when a call never left running (the step stays active): one call reads as its step label, else its human title, or the tool and a raw title, more as the model's label for them or, until there is one, a count of the two most common kinds and the rest, such as "3 commands, 1 read" or "5 commands, 4 agent steps and 9 more", led by any failures ("1 failed, 1 cancelled · "), so the one-line header never cuts them off; a stopped reply says so (its label slot stays empty so Spectrum can show that). Every call of a reply is in its one status, above its text; a later reply with text starts a new run, while a standalone tool message or a reply with only tool calls, streaming or done, joins the status of the run before it on the same day (hidden thinking and source links don't count as text), so a turn never collapses when its calls finish and past messages never move down. A label never shows what may be a secret: after a sensitive key (token, secret, password, api_key, Authorization and the like) with =, : or a flag's space, at a word that starts with a known secret prefix (ghp_, sk-, AKIA, xoxb-, eyJ and others), or, while the call runs, at a last word that could still grow into one, it ends in "…"; the step's description shows the call as the agent sent it. Spectrum notes: a step's description is at most 340 px wide (.swc-ResponseStatusStep-detail has no part or custom property for it), which is why a call opens in our own full-width region instead; a public hook for that width would let it use Spectrum's description. Two Spectrum behaviours are worked around: the header label is one line on a token line height (--_swc-response-status-label-line-size and line-height: 0 on the status), because its cross-fade otherwise lays the label out 1.4 px off its settled place; and the label slot is never empty while active, because Spectrum then shows the running step's own label, which changes with every streamed chunk. The label for two or more calls comes from the agent port's optional toolLabel(agentId, callIds), asked once for each agent port, agent and set of calls once the run is done; a run that grows after that keeps its last label until the new one comes. A step's label comes from the optional stepLabel(agentId, callId) (<slicc-step-label>), asked once for each agent port, agent and call: for a call that runs, the one call of a finished run, and every call of a status the user opens, so a long history doesn't ask for calls nobody looks at; until it comes, and when it is null, the step reads as the call's human title, which follows the call as it streams, and the header and the step's row show the same label. A model label, for a step or a run, and a human title that may still carry model text, is cut like an intent wherever it may show a secret: checked with format controls and other invisible characters removed and NFKC applied (so a zero-width space inside token: or fullwidth letters don't slip past; a cut label shows that cleaned, cut form), and format controls (such as the bidi overrides U+202E and isolates U+2066–U+2069) show as plain U+XXXX notation in the header (Spectrum copies the slotted label as text into its own shadow label) and as chips in the step row and its tooltip, so a label can't reorder how it reads, while zero-width joiners and variation selectors stay so emoji sequences still render; emoji tag characters still show as chips (approvals keep chipping joiners, selectors and tags). An agent port without stepLabel gets the labels it had before: toolLabel for two or more calls, also while they run, and for a single call whose title still looks like a raw command. The call's region is named by its step's label (aria-labelledby, label- and the call's id). Open licks, statuses and steps hold for every view of the chat on the same model, so a layout switch keeps them. A lick's severity (warn or error) adds an alert icon to its byline, a coloured edge to its box and a spoken prefix. A lick's optional summary (one plain line) replaces its text in the box and wraps instead of being cut, and its optional report (a file path) adds Open the report (data-action="open-report", which fires open-file with the path) to the expanded lick, so a lick with only a report expands too. A sudo-run lick (a sudo request the owner ran late with Run now: one when it starts and one when it ends) has the terminal icon (swc-icon-code) in its pill, the warn style when the agent sets severity: 'warn' on a non-zero exit, and, with its approval (the approval id) while <slicc-app> offers the Approvals panel (the chat asks it with a bubbling offers-surface event, { id, offered }, which the app answers; a chat outside an app gets no link; the app refreshes its panel factories and re-renders its chats when surfaces changes, and a click asks again), Show in Approvals in its byline (data-action="show-approval", data-approval), which opens the Approvals panel at that row. A scoop-notify lick never shows the agent's bracketed status line: a text that is [scoop … completed], failed or stopped (or [@… completed]) reads "Scoop {name} finished", "Scoop {name} failed" or "Scoop {name} stopped", the name being its title without the role in brackets, a failed or stopped one takes the error tone and a ❌ pill, named and announced as Scoop failed or Scoop stopped, instead of ✅, and its body, without that line, renders as markdown (.report .text), its headings stepped down to the chat's #### size so the card doesn't outshout the chat. Pending permission requests (sudo-request licks with state: 'pending') and open questions are decision cards in the centre column (.decision-turn[data-pending], data-id the lick's or the question's), inset by a wide margin on each side, a narrower one under 480 px, with their buttons on the right: Deny, then Allow (data-action deny and allow), or the question's options. A request's command (its body, pre.command) shows whole and wraps, in monospace, open or closed; the card has no Show the full command, and a long command makes the card taller, so the region scrolls (below). As in the approval dialog, Allow is always there but stays disabled until the end of the command has been in view (a zero-size [data-end] after its last line, inside the region), and a click on it is refused until then; a command whose card fits the region is seen at once, and for a longer one the end comes into view on the way down to the buttons, which sit under it. When the newest card is taller than the closed region, the region scrolls down to its buttons once it is laid out, but only when that brings Deny and Allow above the bottom fade without scrolling past the first line of the command (or the card's top when it has none): a command that fits shows whole with its buttons in view, and a card that can't get there stays at its top, with its requester, countdown and text in view, so a longer command still has to be scrolled to its end; if the region shrinks so its buttons no longer fit, it scrolls back to the card's top; the region stops doing this for that card as soon as the reader scrolls, presses, touches, types or focuses in it. Once seen, the end stays seen while the request waits. Deny and the countdown always stay; guests and timed-out requests show the command without the gate. For half a second (SliccChat.arming, in ms) after any change to the region's Deny and Allow buttons (a card appearing, going or taking another's place, a button being enabled or disabled, or one moving inside the region or with it), no click on them counts: a mouse or touch click counts only when its press started after that half second, and a keyboard click only when it comes after it, so a double-click or a quick second key press can't answer the next request when answering one shows the next in its place. The buttons are checked on every render, when they, their cards, the region or the header change size, and when the window resizes (only the nodes on screen are observed, so answered cards are let go); scrolling the region doesn't count as a change, and neither do the hidden cards' buttons. The question cards' buttons aren't guarded. A request with expiresAt counts down as m:ss; the count is hidden from screen readers, which hear its end time, then "Less than a minute left" and "Timed out", so the log's live region doesn't speak every second; a timed-out request (data-expired) loses its buttons. While pending, cards leave the log for their own region between the header and the log (section.asks, named "Waiting for you"), so they never cover the transcript and the log ends below them; the log keeps an empty marker where each was asked (.ask-place[data-place], the card's data-id). The region shows the newest card; with more than one waiting, a bar above it (N waiting, data-action="show-waiting", aria-expanded) shows them all, oldest first (.asks[data-open]), and shows the countdown of the soonest timed card it hides. A hidden card stays mounted (.ask[hidden]), so a typed answer survives, and a new ask never hides the card that has focus: the list opens instead. Showing another agent closes the list and its details. The region is opaque, with a hairline and a soft shadow on its bottom edge. Open, each card is compact: its title line, its command and its actions, the request's text cut to one line and the rest of it behind a quiet chevron (Show details, data-action="ask-detail", data-detail on the card while shown). The region takes at most half the chat's height and always leaves the log room for the composer and its fade (and a few lines more while closed); when the cards need more, it scrolls inside, the bar stays on top, a fade at the bottom edge (.asks[data-more]) says more is below, and the scrollbar shows on hover and focus. Every card is a tab stop before its actions, and focusing anything in a card scrolls the whole card into the region, or only the focused control when the card is taller than the region. Clicking a waiting card (not its controls), or Enter on it, scrolls the log to where it was asked, at the bottom of the view above the composer. When a card leaves the region (answered, timed out or decided elsewhere) while it has focus, focus moves to the newest card still waiting, else the composer; a timed-out card goes back to its place in the log. Under prefers-reduced-motion, nothing animates and the scroll is instant. The header is one row: a status mark shaped by status (data-agent-status, with the status in its aria-label and tooltip, focusable so the keyboard reaches it, and no visible word, so the pickers never move; in forced colours its shape paints CanvasText, like the Agents markers), a model picker that names each model's provider and leaves out classifiers and models with tools: false (with no model on offer, Set up a model, data-action="set-up-model", opens Settings), the thinking picker, the context meter and New conversation, which calls clear and puts focus back in the composer; on a cone, when the port can freeze, its tooltip says the old conversation stays in the Freezer. It never wraps: when it's short of room, the model picker's label is cut with an ellipsis, and under 560px wide (header[data-compact]) New conversation is icon-only, with accessible-label and its tooltip. The pickers re-read models() on settings, accounts and agents. When a live agent's model, or Settings.model, is no longer offered and its provider (the id before /) isn't a connected account, it moves to the offered chat model with default: true, else the first one; frozen agents are left alone, and so is everything on a follower unless it has Control and is connected. The chat re-runs this on follow and readOnly too, and <slicc-app> does it as well, when it binds, on those events and on follow and readOnly, so a new cone that starts on a provider that isn't set up moves at once. The transcript pads its end, and its scroll-padding-block-end, by the composer's measured height plus the height its frosted layer fades out over (--composer-fade, 72 px, 0 under prefers-reduced-transparency and forced-colors and without a composer), so at the bottom the last line sits a line above the glass, and a focused element scrolls clear of it. The log follows new content only while it sits within one line (its line-height) of the bottom. Scrolling up by wheel, touch, keys or the scrollbar stops that, and the log then keeps its place, whatever re-renders or ticks; content that grows above the view, such as a tool card opening, doesn't move what's in view either. New output while the reader is scrolled up shows Jump to latest (data-action="jump-latest"), floating over the log's bottom edge above the composer, with the number of new items, "Jump to latest (2 new)", once there are any; it, or scrolling back to the bottom, resumes following, and so does the reader's own send. While it follows, a log that gets shorter (a notice above it, a taller composer, a shorter panel) or a latest card that grows (a lick opened, a sprinkle loading) doesn't scroll that card's top out of view: a card that fits shows whole, and a taller one keeps its top at the top of the log, with the rest under the composer, instead of its end above the composer's padding; a new item, a streaming reply and Jump to latest still go to the very bottom. With the agent port's optional hasOlder(agentId), the log pages back through the conversation: while it is less than a screen from its top (which includes a log that doesn't fill the view) and hasOlder is true, it calls older(agentId, id) with the id of the first message in messages(), one load at a time per agent, and renders the earlier messages from messages() by id once the port emits messages, never from what older resolves with. The first turn in view keeps its place: its offset is measured before the render and put back before the next paint (scroll anchoring does nothing at the very top), and the log's follow bookkeeping moves with it, so the jump never reads as the reader scrolling. It loads until the log is more than a screen above the view or the start is reached; an empty answer, or one that leaves the first message as it was, is the start, and the chat doesn't ask again for that agent until its first message changes or it is shown again. While there is more, the top of the log reads "Loading earlier messages…" ([data-older=loading], aria-busy while a load runs), and at the start it shows nothing; a rejected older shows "Couldn’t load earlier messages." with Retry ([data-older=failed], role="alert", data-action="retry-older") instead of trying again. A load that ends after another agent is shown touches only its own conversation. Without hasOlder (an older agent), it never calls older. While a reply streams, its status icon follows what it is doing: a pencil for an edit, a page for a read, a magnifier for a search, an eye for the browser and an hourglass for any other tool; thinking and text keep the AI logo. Between the header and the transcript, a <slicc-notices> shows the model's notices. On a follower without Control, or while the agent port's readOnly() returns a line, a note (p[data-follow="watch"], that line first, else the follow-based one) takes the composer's place, the header shows the model's name instead of the pickers and New conversation, and there's no suggested follow-up. An empty chat says "No messages yet. Ask sliccy something." with the agent's name, and only "No messages yet." while watch-only. While the agent port's starting() returns a line, the chat has no empty state ([data-empty]): the embedder's notice says what's going on, and the header, with no agent yet, shows a neutral "Starting…" light ([data-starting]) instead of "No agent". A chat whose agent isn't listed yet (a tab kept from before a reload, or the agentless chat) says "The conversation shows up here once the agent starts." under an indeterminate progress circle (.empty[data-loading=starting]). With no line, a chat whose agent isn't listed is disconnected: the header shows a neutral "Disconnected" light ([data-disconnected]), the conversation says "The conversation shows up here once its agent connects." under an indeterminate progress circle (.empty[data-loading=disconnected]), and the composer is disabled with "Waiting for the agent to connect…"; all of it goes once the agent is listed. The agentless chat with no agents still reads "No agent". With the model's seat set, the chat is a guest's page: the header shows only the cone's name ([data-seat-cone]) and its status, with no pickers, meter or New conversation; the guest's own messages (origin guest whose seat is the seat's id, or, without a seat, whose from is its label) read as the reader's own, with no name, while other guests keep "From {label}" and the host's messages read "From the host"; an open question or a permission request takes the normal card border, without its buttons, form or countdown, and stays in the log (no data-pending), and says "The host answers this." ([data-host-answers], subdued); once answered, it shows the answer as everyone sees it; a reviewed guest message's outcome (a notice titled "It was approved.", "Nobody approved this in time.", "It was declined." or "It was withdrawn.", with the message as its text) reads as the quoted message, cut to one line, then the outcome (.marker[data-ended]); an approved one shows only "It was approved.", since the delivered message follows right after it; inline sprinkles inert with "View only on this device", error cards have no action and there's no suggested follow-up; the models aren't settled, and files can't be dropped. An empty guest chat says "No messages yet. Say hello to sliccy."

<slicc-notices>

The model's notices as in-line alerts with their actions and a close button (none with dismissible: false), after a banner from the tabs port when another tab is paused or runs a different SLICC, and a warning for each waiting approval when the approvals port has no decide ([data-approval-notice], with [data-approval-kind]); renders nothing without any.

<slicc-approvals>

The model's waiting approvals as a modal alert dialog, one at a time, oldest first; <slicc-app> mounts it. Renders nothing without approvals.decide. Always allow (Always allow in this directory, with the cwd in its hint, when the approval has alwaysScope: 'cwd' and a cwd) shows when offersAlways(approval) is true, and the element's decide() sends always only when it holds for the live approval with that id in list(), so a stale dialog can't send it after the request lost it. For a sudo request, offersAlways is true only when always is true and the verdict has a level 1, 2 or 3: a level-less sudo (an older agent) never offers Always allow, even when always is true. Guest requests still offer Always allow whenever always is true. Tray requests never do. The command ([data-command], or a guest tool call's [data-summary]) shows whole and wraps, in its own box of at most min(16lh, 50dvh) that scrolls past that; the dialog has no Show the full command. Always allow and Allow once stay disabled until the end of the command has been in view (a zero-size [data-end] after its last line), which is at once when the command fits its box, and so does the element's decide() for anything but deny; once seen, the end stays seen while the request waits. While the end is out of view a subdued line ([data-allow-hint]) says "Scroll to the end of the command to allow it." The dialog keeps one width. A closed request shows its command whole. While a request shows, its buttons stay put: Deny sits at the start of the row and Allow once at its end, so Always allow appearing or going moves neither, and the verdict, its note, the allow hint and Always allow's hint ([data-always-hint], shown whenever Always allow is offered) share one box of fixed height ([data-notes], min(9lh, 30dvh), which scrolls when they overflow it; the level block fills its free space), so nothing above the buttons changes height as the verdict and its reason arrive. "{n} more requests are waiting." ([data-more]) has its line kept even while none wait. Control characters in the sudo command, target, requester name and place, and cwd are shown: C0 controls use Unicode Control Pictures (including ␍ for CR, ␊ for LF and ␉ for TAB), DEL uses ␡, and C1, format, default-ignorable characters and line/paragraph separators use uppercase U+XXXX notation (at least four digits). LF keeps its line break after ␊ in the command and shows only ␊ in paragraphs; ordinary spaces stay spaces. Each shown control has a chip with its character name or notation as its accessible label and title; Control Pictures also show a readable abbreviation or notation. Joiners, variation selectors and emoji tag characters use the same chips, so an argv or path can't hide them. The clamped and full views show the same symbols. Sudo and guest requests show the verdict under the command, in a live region (.judge[aria-live=polite]) inside [data-notes]. A level verdict is a block (.judged[data-verdict][data-level]): level 1 "Routine." (routine, positive subtle background), level 2 "Changes permissions." (permissions, notice) or level 3 "Could harm the system." (harm, negative, with the alert-triangle icon), then the reason, then "It fits what you asked for." or "It isn’t clear it serves what you asked for." when aligned is set. While judging it reads "Checking…" (checking); with no verdict and a verdictError, "No verdict: {verdictError}" (none). A verdict with only a decision keeps the line "The automatic check would {decision} this: {reason}" or "The automatic check wasn’t sure: {reason}" (p.verdict[data-verdict], the decision in the attribute). The reason and verdictError show control characters as chips, as in the command, and are cut at 300 characters. A sudo request without Always allow says "Always allow isn’t offered for permission changes." at level 2 and "Always allow appears only with a level 1 verdict." with no verdict ([data-verdict-note]). No level adds a confirm step: Deny and Allow once work at every level. Focus starts on Deny (on Close once decide rejects) and goes back, after Deny, Always allow, Allow once, Esc or Close, to what had it when the dialog opened; inside a terminal, to that <slicc-terminal> through its own focus(), even when it remounted meanwhile. Guest requests (guest-message, guest-tool) get their own copy, the guest's text as plain text ([data-guest-text]), attachments ([data-attachments]), the automatic check's verdict ([data-verdict]), and Deny and Allow once, plus Always allow (data-action="always") with a hint saying what it covers when the approval's always is true; the dialog body carries [data-approval-kind] and fills the dialog's width at every size. Tray requests (tray) get their own title and one sentence (#asking), and only Deny (deny, focused) and Allow once (once), never Always allow. Click requests (click) are an information alert dialog, without the warning icon, and show their own title and body (#asking), Cancel (deny, focused) and a button labelled with their action (once), with no verdict and never Always allow; one with here: false adds "Click in seven’s tab on {device.name}." ([data-where]) and offers only Cancel, and its countdown reads "Cancelled automatically in m:ss.". Capture requests (capture) read "Allow a guest’s capture?" with "{agentName ?? 'This cone'} wants to use your {what} for {name}:" and the capture line in a box ([data-capture]), then the verdict, Deny, Allow once and, when always is true, Always allow, as for a guest tool call. Its verdict levels read "Routine capture." (1), "Records what you share." (2) and "Could expose something private." (3), with the same data-verdict names and colours as the others. Secret requests (secret, dialog[data-kind=secret]) read "Enter a value for {name}?" (mode: 'enter') or "Reveal {name} to a program?" (reveal). Under the title comes the trusted block, which only bios and the kernel fill: "{name} ran this[ in {where}]:" for an agent or "You ran this[ in {where}] (as {name}):" for a user, then the command ([data-command]), which is process.exe followed by argv[1…], each word shell-quoted (argv[0] is the program's own choice), then "In {cwd}". The command follows sudo's rules: the same scrolling box, the same control-character chips, and the same end-in-view rule. Then the untrusted prompt, if any, in its own block ([data-prompt]) under "From the agent, not checked by SLICC:", with control characters as chips and cut at 200 characters. With reveal, a negative block ([data-reveal]) says "{exe} gets the plaintext. It can send it anywhere.", and adds "The agent asked for this." when requester.kind is agent. The body is the vault's own frame ([data-value-frame], a <slicc-vault-value> on vault.valueFrame(id)). The value is typed and Save or Allow clicked there, so spectrum never sees the value and can't fake the consent. The frame is inert until the end of the command has been in view, and "Scroll to the end of the command to answer it." ([data-allow-hint]) shows while it isn't. Without vault.valueFrame, "The vault isn’t available here, so this request can only be denied." ([data-id="no-frame"]) stands in its place. The title shows control characters in the name as chips, and so does the notice. The only button is Deny (deny, focused). The element's decide() takes only deny for a secret, and only while that request is the one showing: not once it was denied, answered in its frame, closed, or ended (timed out, answered elsewhere, withdrawn). A late escape from the frame does nothing either. When a listed request is replaced (the same id with another createdAt, command, mode, name, reveal, prompt or requester), or an id comes back after it left list(), the dialog counts it as a new request: a new frame, the end of its command unseen again, and the half-second guard again. Escape on the dialog denies, and so does the frame's escape event, posted when Escape is pressed inside the frame. The frame's done for this request closes the dialog and moves on to the next request, with no "answered" dialog. The frame's gone shows "Secret request timed out" (expired) or "Answered elsewhere", or closes silently (withdrawn), except for a request this tab denied or answered. The frame's error shows its message under the frame ([data-frame-error]). A secret request that leaves list() without ended before expiresAt closes silently, because the frame's done and the list change can arrive in either order. Focus then goes back as for sudo, to the <slicc-terminal> that had it. valueEntry (from /ui, true) says that every value entry point in this UI (the composer's Share a secret, Settings › Secrets Add and Replace, Settings › Accounts key fields) uses vault.enter and valueFrame whenever the port has enter, so an embedder can stop taking values through put only from a UI that has it; <slicc-value-request> still answers older value requests with put. When a waiting sudo request from an agent (requester.kind agent with an agentId) ends expired, the port has run and history, the request's record in history() has runnable: true (the dialog follows history events, so a record that turns runnable later shows it then) and the element's panel is set (<slicc-app> sets it while it offers the approvals surface, so an embedder that leaves the surface out doesn't get it), its "Sudo request timed out" dialog adds "You can still run it from Approvals." in plain text ([data-run-later]) and Open Approvals (data-action="open-approvals"), which closes the dialog and opens the Approvals panel at that request's row (a show-surface event with { id: 'approvals', section: <approval id> }, which <slicc-app> handles). approvalKinds (from /ui) is a frozen array of the kinds this build shows (sudo, guest-message, guest-tool, tray, secret, click, capture), so an embedder can hold back the kinds an older UI would leave waiting unseen.

<slicc-approvals-panel>

The Approvals panel (approvals): every request the approvals port's history() returns, newest first as the port sends them, on the panel layer. The bar (.bar[data-surface="approvals"]) has three filters ([data-filter], aria-pressed, the selected one .selected): Open (pending, with a notice count badge, [data-count], while any wait), Decided (approved and rejected) and Timed out (unanswered); it opens on Open. Under Decided, withdrawn requests fold away behind Show withdrawn ({n}) (data-action="show-withdrawn", aria-expanded, then Hide withdrawn); an empty filter says so ([data-empty]). Each row (li.row[data-id="<approval id>"][data-kind][data-state]) shows the kind (Sudo, Guest message, Guest tool call, Tray, Secret, Click, Capture), the requester with its where ([data-requester]) and how long ago it asked; the command in monospace (pre[data-command] for sudo, secret and guest tool calls, [data-summary] for the rest, with control characters as chips); "as {target, or root} · in {cwd}" for sudo and "in {cwd}" for a secret ([data-place]); a state badge ([data-badge]: Open, Allowed once, Always allowed, Denied, Timed out, Withdrawn) with who decided and when ("by {decidedBy} on {device}, 5 min ago", [data-decided]); and the verdict level ("Level 2 · Changes permissions.", [data-level]). Open rows have the dialog's buttons for the live request in list(): Deny, Deny and stop, Always allow and Allow once (data-action deny, stop, always, once), offered by the dialog's rules, with the same half-second guard after the buttons move (checked on every render, when the list, a row or a button changes size, and when the window resizes, with positions taken relative to the scrolling list, so scrolling doesn't