shadok-ai 0.2.41 → 0.2.42

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadok-ai",
3
- "version": "0.2.41",
3
+ "version": "0.2.42",
4
4
  "main": "dist/session.js",
5
5
  "scripts": {
6
6
  "test": "node --import tsx --test test/*.ts .claude/skills/shadok-ai-agents/test/*.test.mjs",
package/public/index.html CHANGED
@@ -1215,7 +1215,6 @@
1215
1215
  <button id="toggleDiff">Diff</button>
1216
1216
  </div>
1217
1217
  </div>
1218
- <button id="stopBtn" class="icon stop" title="End session">⏹️</button>
1219
1218
  </header>
1220
1219
 
1221
1220
  <div id="verMenu" hidden>
@@ -2759,13 +2758,13 @@
2759
2758
  // Programmer ou arrêter n'a pas de cible : mieux vaut des boutons éteints
2760
2759
  // qu'une popin qui parle d'un agent inexistant.
2761
2760
  $("cronBtn").disabled = true;
2762
- $("stopBtn").disabled = true;
2761
+ $("chanStop").disabled = true;
2763
2762
  $("emptyState").classList.add("visible");
2764
2763
  return;
2765
2764
  }
2766
2765
  $("emptyState").classList.remove("visible");
2767
2766
  $("cronBtn").disabled = !t.sessionId;
2768
- $("stopBtn").disabled = false;
2767
+ $("chanStop").disabled = false;
2769
2768
  $("led").className = "led " +
2770
2769
  ({ setup: "", connecting: "busy", ready: "on", busy: "busy", dead: "off" }[t.status]);
2771
2770
  $("state").textContent = t.stateText;
@@ -4168,7 +4167,9 @@
4168
4167
  syncTerm();
4169
4168
  });
4170
4169
  $("chanCron").addEventListener("click", () => $("cronBtn").click());
4171
- $("chanStop").addEventListener("click", () => $("stopBtn").click());
4170
+ $("chanStop").addEventListener("click", () => {
4171
+ sendTo(active, { type: "stop" });
4172
+ });
4172
4173
 
4173
4174
  // "⋯" overflow menu (rarely-used actions, e.g. Diff). stopPropagation on the
4174
4175
  // trigger so the same click doesn't immediately hit the document closer; a
@@ -4262,9 +4263,6 @@
4262
4263
  if (active && active.ws && active.status === "ready")
4263
4264
  sendTo(active, { type: "settle" });
4264
4265
  });
4265
- $("stopBtn").addEventListener("click", () => {
4266
- sendTo(active, { type: "stop" });
4267
- });
4268
4266
 
4269
4267
  // ── Secret vault panel (central, global; profiles pick which to inject) ──
4270
4268
  let vaultNames = [];