@ai-ecoverse/slicc-spectrum 1.85.0 → 1.86.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
@@ -147,6 +147,8 @@ The stylesheet (wterm's plus the theme) is constructed once per document and ado
147
147
  The bundle loads the WASM with `new URL('./wterm.wasm', import.meta.url)`, so `dist/` works from any path, including from OPFS through the slicc-bios service worker. wterm's base64-inlined copy of the WASM is left out of the bundle.
148
148
  TypeScript declarations go to `dist/types/`, and the package's `types` export points at them.
149
149
  Set `SliccTerminal.wasmUrl` before the first element connects to load it from elsewhere.
150
+ `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`.
151
+ 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.
150
152
 
151
153
  ## wterm notes
152
154
 
@@ -967,7 +969,7 @@ app.model = createKernelModel({ kernel, root, storage: localStorage, files: { sk
967
969
 
968
970
  - **`KernelFiles`** lists the OPFS root as the tree, reads and writes files through the OPFS API, and removes them recursively.
969
971
  Directories in `skip` show up but aren't scanned; paths in `hide` (and everything under them) don't show up at all.
970
- `start()` rescans on every `FileSystemObserver` record, or every `interval` ms (default 2000) where the browser can't observe OPFS, and emits `files` and a `file` per changed file, so open tabs follow what the terminal writes.
972
+ `start()` rescans when a `FileSystemObserver` record touches something the tree shows: at once after a quiet `interval` (default 2000 ms), then at most once per `interval`. Records only inside `hide` paths or below `skip` folders start no rescan. Where the browser can't observe OPFS, it rescans every `interval` ms. A rescan that finds changes emits `files` and a `file` per changed file, so open tabs follow what the terminal writes.
971
973
  Without an agent there are no pending changes.
972
974
  - **`KernelTerminals`** opens `bash -i` (or `argv`) in `cwd` (default `/home`) as `user` (default the kernel's, `root`) through `kernelBackend`, one session per terminal, as many as the user opens.
973
975
  `open` (default 1) is how many it starts with.