@ai-ecoverse/slicc-spectrum 1.84.2 → 1.85.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 +4 -2
- package/dist/slicc-dummy.js +7 -0
- package/dist/slicc-dummy.js.map +2 -2
- package/dist/slicc-ui.js +22 -7
- package/dist/slicc-ui.js.map +3 -3
- package/dist/types/app/follow.d.ts +1 -1
- package/dist/types/dummy/follow.d.ts +1 -1
- package/dist/types/model/types.d.ts +1 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -877,7 +877,9 @@ The guest's model lists only the cone, its `messages()` are the cone's transcrip
|
|
|
877
877
|
|
|
878
878
|
Later backed by: BIOS.
|
|
879
879
|
Only on a follower page, a SLICC that shows another SLICC's agent over a link.
|
|
880
|
-
`state()` returns the `FollowState`: `owner` (its display name), `link` (`connecting` for the first connection, `connected`, `reconnecting` after a connection dropped, `unlinked` when the owner unlinked this device, or `failed`), `access` (`{ view, control, terminal }`, what the owner allows this device), an optional `name` (this device's name on the owner, for the waiting page)
|
|
880
|
+
`state()` returns the `FollowState`: `owner` (its display name), `link` (`connecting` for the first connection, `connected`, `reconnecting` after a connection dropped, `unlinked` when the owner unlinked this device, or `failed`), `access` (`{ view, control, terminal }`, what the owner allows this device), an optional `name` (this device's name on the owner, for the waiting page), an optional `error` (shown when `failed`) and an optional `refused`.
|
|
881
|
+
`refused` is the agent's sentence while the owner's agent won't take this device, such as another agent version; clear it once a follow session connects.
|
|
882
|
+
While it's set and `link` is `connected`, the follow light is neutral and reads "Can’t follow {owner}", its popover shows `refused`, the chat has no watch-only note for it (the embedder shows the warning; an agent port's own `readOnly` sentence still shows), and the page stays read-only with terminals off, even with Control.
|
|
881
883
|
Emit `follow` when it changes.
|
|
882
884
|
Connected without `view` means waiting to be allowed.
|
|
883
885
|
`leave()` forgets the link and the optional `retry()` tries again from `failed`.
|
|
@@ -912,7 +914,7 @@ Like bios, `actions()` keeps the latest 500 per tab from the last 24 hours, 5,00
|
|
|
912
914
|
`createDummyModel({ tabs: 'owner' | 'follower' | 'connecting' | 'stalled' | 'newer' | 'older' | 'alone' | 'off' })` (or `?tabs=` on `/ui/`, off by default) adds a tabs port in that state; `model.tabs.setScenario()` switches it, and Reload connects again and becomes a follower after a short wait.
|
|
913
915
|
`tabsFixtures` and `DummyTabs` are exported from `/dummy`.
|
|
914
916
|
|
|
915
|
-
`createDummyModel({ follow: 'connecting' | 'waiting' | 'watch' | 'control' | 'full' | 'reconnecting' | 'unlinked' | 'failed' })` (`?follow=` on `/ui/`, which then leaves out the network port and offers only agents, chat, terminal and settings) makes the page a follower of SLICC on quay-studio: connecting, waiting to be allowed, View only, View and Control, everything, reconnecting, unlinked,
|
|
917
|
+
`createDummyModel({ follow: 'connecting' | 'waiting' | 'watch' | 'control' | 'full' | 'reconnecting' | 'unlinked' | 'failed' | 'refused' })` (`?follow=` on `/ui/`, which then leaves out the network port and offers only agents, chat, terminal and settings) makes the page a follower of SLICC on quay-studio: connecting, waiting to be allowed, View only, View and Control, everything, reconnecting, unlinked, failed, where Try again connects with everything allowed, or refused, with everything allowed but another agent version.
|
|
916
918
|
Leave counts in `model.follow.left` (the `/ui/` page then drops `?follow=`), and `model.follow.setScenario()` switches it.
|
|
917
919
|
`followFixtures` and `DummyFollow` are exported from `/dummy`.
|
|
918
920
|
`?links=followers` lists quay-studio (a CLI on this computer, Control always allowed), pier-nuc (a remote CLI, prompting), bay-laptop (a follower with everything allowed, watching, a terminal open), reef-phone (View only, watching) and tide-tablet (asking to follow); every links scenario has a follow link.
|
package/dist/slicc-dummy.js
CHANGED
|
@@ -477,6 +477,13 @@ function followFixtures(scenario) {
|
|
|
477
477
|
access: none,
|
|
478
478
|
error: `Couldn\u2019t reach ${owner}. It may be closed or offline.`
|
|
479
479
|
};
|
|
480
|
+
if (scenario === "refused")
|
|
481
|
+
return {
|
|
482
|
+
...base,
|
|
483
|
+
link: "connected",
|
|
484
|
+
access: full,
|
|
485
|
+
refused: "That SLICC runs another version of the agent, so this tab can\u2019t follow it. Update both SLICCs, then reload this page."
|
|
486
|
+
};
|
|
480
487
|
return { ...base, link: "connected", access: full };
|
|
481
488
|
}
|
|
482
489
|
var DummyFollow = class extends Emitter {
|