@agentsignalnet/claude-plugin 0.2.69 → 0.2.71
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/.claude-plugin/plugin.json +1 -1
- package/package.json +1 -1
- package/scripts/dashboard.mjs +62 -5
package/package.json
CHANGED
package/scripts/dashboard.mjs
CHANGED
|
@@ -902,7 +902,7 @@ const PAGE = `<!doctype html>
|
|
|
902
902
|
</header>
|
|
903
903
|
<div id="shell">
|
|
904
904
|
<aside id="side" aria-label="Channels">
|
|
905
|
-
<p class="rail-title">Channels</p>
|
|
905
|
+
<p class="rail-title" id="rail-title">Channels</p>
|
|
906
906
|
<nav id="who-nav"></nav>
|
|
907
907
|
<details id="setup"><summary>This machine</summary><div id="setupbody">reading…</div></details>
|
|
908
908
|
</aside>
|
|
@@ -1399,9 +1399,22 @@ const PAGE = `<!doctype html>
|
|
|
1399
1399
|
group.channels.push(c);
|
|
1400
1400
|
}
|
|
1401
1401
|
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1402
|
+
/*
|
|
1403
|
+
THE COMPANY IS PART OF THE SHAPE, not a disambiguator.
|
|
1404
|
+
|
|
1405
|
+
This used to require groups.length > 1, on the reasoning that a label
|
|
1406
|
+
repeated above every row is furniture. That is true of a label and false
|
|
1407
|
+
of a level: the rail is company > channel > agent, and a hierarchy that
|
|
1408
|
+
hides its top level whenever there is one of them teaches the wrong shape
|
|
1409
|
+
and then changes under you the day a second company appears. Somebody
|
|
1410
|
+
running one company saw no company at all and reasonably asked whether it
|
|
1411
|
+
had been built.
|
|
1412
|
+
|
|
1413
|
+
The account must still be KNOWN. An older API does not send it, and
|
|
1414
|
+
inventing "Unnamed company" above everything would be the furniture the
|
|
1415
|
+
old rule was actually worried about.
|
|
1416
|
+
*/
|
|
1417
|
+
const sectioned = groups.every((g) => g.at);
|
|
1405
1418
|
|
|
1406
1419
|
const rows = (list) => list.map((c) => {
|
|
1407
1420
|
const ref = c.ref ?? '';
|
|
@@ -1443,6 +1456,15 @@ const PAGE = `<!doctype html>
|
|
|
1443
1456
|
return '<div class="chan">' + head + '<div class="chan-body">' + body + '</div></div>';
|
|
1444
1457
|
}).join('');
|
|
1445
1458
|
|
|
1459
|
+
/*
|
|
1460
|
+
The title follows the shape rather than asserting one. When the accounts
|
|
1461
|
+
are known the top level of the rail IS the company, so "Channels" would
|
|
1462
|
+
name the second level while pointing at the first; when they are not, the
|
|
1463
|
+
rail really is a flat list of channels and "Companies" would name a level
|
|
1464
|
+
that is not on screen.
|
|
1465
|
+
*/
|
|
1466
|
+
document.getElementById('rail-title').textContent = sectioned ? 'Companies' : 'Channels';
|
|
1467
|
+
|
|
1446
1468
|
nav.innerHTML = groups
|
|
1447
1469
|
.map((g) =>
|
|
1448
1470
|
sectioned
|
|
@@ -1920,12 +1942,47 @@ const PAGE = `<!doctype html>
|
|
|
1920
1942
|
}
|
|
1921
1943
|
}
|
|
1922
1944
|
|
|
1945
|
+
/*
|
|
1946
|
+
Clear the refusal as soon as it stops being true. Left up, "Choose who this
|
|
1947
|
+
goes to." is still on screen after they have chosen, which reads as the
|
|
1948
|
+
choice not having registered.
|
|
1949
|
+
*/
|
|
1950
|
+
for (const id of ['to', 'say']) {
|
|
1951
|
+
document.getElementById(id).addEventListener('input', () => {
|
|
1952
|
+
const note = document.getElementById('sent');
|
|
1953
|
+
if (note.textContent.startsWith('Choose') || note.textContent.startsWith('Type')) {
|
|
1954
|
+
note.textContent = '';
|
|
1955
|
+
}
|
|
1956
|
+
});
|
|
1957
|
+
}
|
|
1958
|
+
|
|
1923
1959
|
document.getElementById('compose').onsubmit = async (event) => {
|
|
1924
1960
|
event.preventDefault();
|
|
1925
1961
|
const to = document.getElementById('to').value;
|
|
1926
1962
|
const say = document.getElementById('say');
|
|
1927
1963
|
const note = document.getElementById('sent');
|
|
1928
|
-
|
|
1964
|
+
|
|
1965
|
+
/*
|
|
1966
|
+
SAY WHY, rather than doing nothing.
|
|
1967
|
+
|
|
1968
|
+
This was one bare early return covering both cases, so clicking Send with no
|
|
1969
|
+
recipient chosen -- the state the form STARTS in -- did nothing at all:
|
|
1970
|
+
no error, no hint, the typed message still sitting there. Reported as
|
|
1971
|
+
"the send button is not working", which is exactly what it looks like
|
|
1972
|
+
from the outside, and the button was working perfectly.
|
|
1973
|
+
|
|
1974
|
+
Not a disabled button instead. A disabled Send is the same silent
|
|
1975
|
+
failure wearing a different hat: it is clicked, nothing happens, and
|
|
1976
|
+
nothing explains which of the two fields is the problem.
|
|
1977
|
+
*/
|
|
1978
|
+
if (!to) {
|
|
1979
|
+
note.textContent = 'Choose who this goes to.';
|
|
1980
|
+
return;
|
|
1981
|
+
}
|
|
1982
|
+
if (!say.value.trim()) {
|
|
1983
|
+
note.textContent = 'Type something to send.';
|
|
1984
|
+
return;
|
|
1985
|
+
}
|
|
1929
1986
|
note.textContent = 'sending…';
|
|
1930
1987
|
// The channel on screen, said explicitly. A message composed under a
|
|
1931
1988
|
// Sandbox header and delivered into a different channel is the worst
|