shadok-ai 0.20.50 → 0.20.51

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
@@ -465,10 +465,11 @@ Enter to skip; you can add it later from the web UI).
465
465
  never a message. Older `#agent=<session>&msg=<id>` links still open. A message
466
466
  older than the history shown, or a conversation that was closed, says so
467
467
  instead of opening somewhere else.
468
- - **Who wrote each message** — every bubble opens with a round chip instead of
469
- a written name: the person's initials on their own colour (stable across
470
- devices, the palette the agent tabs use), the Shadok for the agent and for the
471
- cockpit's own messages. Hover it for the full name ("Ada · telegram"). Your
468
+ - **Who wrote each message** — every bubble opens with a round chip: the
469
+ person's initials on their own colour (stable across devices, the palette the
470
+ agent tabs use), the Shadok for the agent and for the cockpit's own messages.
471
+ On the left (the agent, other people) the written name follows the chip
472
+ ("Ada · telegram"); your own prompts, on the right, show the chip alone. Your
472
473
  own chip uses your account's name, or a plain silhouette in a cockpit with no
473
474
  accounts.
474
475
  - **Run the command an agent asks you to** — when an agent writes `! cmd` for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadok-ai",
3
- "version": "0.20.50",
3
+ "version": "0.20.51",
4
4
  "main": "dist/session.js",
5
5
  "scripts": {
6
6
  "test": "node --import tsx --test --test-timeout=120000 test/*.ts context/*/test/*.test.mjs",
package/public/index.html CHANGED
@@ -151,10 +151,11 @@
151
151
  margin: 0 5px;
152
152
  opacity: 0.7;
153
153
  }
154
- /* Who spoke, as a round chip in place of the written name (public/avatar.js):
155
- initials on the person's colour, the Shadok for the agent. The name lives in
156
- the chip's tooltip. The time follows the chip with no "·" — there is no
157
- name for it to separate from. */
154
+ /* Who spoke, as a round chip (public/avatar.js): initials on the person's
155
+ colour, the Shadok for the agent. The written name follows the chip on the
156
+ LEFT side (the agent, and other people's prompts); your own prompts, on the
157
+ right, show the chip alone — the name there would only ever be yours, and
158
+ the time then follows the chip with no "·". */
158
159
  .speaker {
159
160
  display: inline-grid; place-items: center; vertical-align: middle;
160
161
  width: 20px; height: 20px; border-radius: 50%; flex: none;
@@ -167,6 +168,11 @@
167
168
  .label .speaker + .time::before { content: none; }
168
169
  .label .speaker + .time { margin-left: 6px; }
169
170
  .label .speaker + .what { margin-left: 6px; }
171
+ .label .speaker-name { margin-left: 6px; }
172
+ .label .speaker-name + .what::before { content: "·"; margin: 0 5px; opacity: 0.7; }
173
+ .turn.user:not(.other) > .label .speaker-name { display: none; }
174
+ .turn.user:not(.other) > .label .speaker-name + .time { margin-left: 6px; }
175
+ .turn.user:not(.other) > .label .speaker-name + .time::before { content: none; }
170
176
 
171
177
  /* ── Instrument bar ──────────────────────────────────── */
172
178
  header {
@@ -9611,6 +9617,12 @@
9611
9617
  chip.setAttribute("aria-label", who);
9612
9618
  paintSpeaker(chip);
9613
9619
  label.appendChild(chip);
9620
+ // The name beside the chip, as it read before the chips came; CSS hides it
9621
+ // on your own prompts (right side), where it would only ever be yours.
9622
+ const name = document.createElement("span");
9623
+ name.className = "speaker-name";
9624
+ name.textContent = who;
9625
+ label.appendChild(name);
9614
9626
  if (what) {
9615
9627
  const w = document.createElement("span");
9616
9628
  w.className = "what";