shadok-ai 0.20.49 → 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
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: shadok-ai-agents
3
- description: Create and drive isolated Claude Code agents through the shadok-ai server (git worktrees, prompts, dialogs, diff). Use when the user wants to delegate a task to a shadok-ai agent, launch agents in parallel, or inspect/drive existing shadok-ai sessions — and on your own initiative whenever a task contains a long, independent piece of work (its own branch, PR or repo) that can run alongside yours instead of after it.
3
+ description: Create and drive isolated Claude Code agents through the shadok-ai server (git worktrees, prompts, dialogs, diff). Use whenever the user asks you to delegate, hand off or launch an agent on a task — that request means an agent they can see in the cockpit, never Claude Code's internal Agent tool — to launch agents in parallel, or inspect/drive existing shadok-ai sessions — and on your own initiative whenever a task contains a long, independent piece of work (its own branch, PR or repo) that can run alongside yours instead of after it.
4
4
  ---
5
5
 
6
6
  # Driving shadok-ai agents
@@ -133,6 +133,15 @@ other** — do not wait to be asked. Two tools, for two different shapes:
133
133
  review, or when it carries a schedule or a webhook (those are deleted with
134
134
  it). Close only agents YOU spawned, never someone else's.
135
135
 
136
+ **When the human ASKS you to delegate, they mean a sibling shadok agent.**
137
+ "Delegate this", "hand it to an agent", "launch agents on it", "get someone else
138
+ to do it": the person is asking for an agent they can SEE — a channel of its
139
+ own in the cockpit, that they can open, follow and steer. The `Agent` tool
140
+ gives them none of that, so do not answer such a request with it, whatever the
141
+ size of the task: spawn with `pilotctl.mjs`. The `Agent` tool is for the
142
+ parallel work you decide on yourself. Only when they name it ("a sub-agent",
143
+ "in your own session") is it what they asked for.
144
+
136
145
  The human cannot see a sub-agent's progress: the chat shows only its call and
137
146
  its result. So say in one line what you delegated and why before you wait on it.
138
147
  Do the work yourself when it is a handful of tool calls, when the parts depend
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadok-ai",
3
- "version": "0.20.49",
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";