shadok-ai 0.15.36 → 0.15.37

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
@@ -255,7 +255,7 @@ Enter to skip; you can add it later from the web UI).
255
255
  folds away while you type). Fields are 16px, which is what stops Safari from
256
256
  zooming in on focus. The agents column is replaced by a channel selector in
257
257
  the channel bar.
258
- - **Tweak Shadok-AI** — a card pinned at the bottom of the agents column. One
258
+ - **Tweak Shadok-AI** — a card pinned at the bottom of the agents column, with the running version in grey beside its title (the code a tweak starts from). One
259
259
  click clones shadok-ai's own source into `~/.shadok-ai/self/shadok-ai` and
260
260
  starts an agent on it in its own worktree; that agent delivers its change as a
261
261
  **pull request** — a fork under your GitHub account, since you need no rights
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadok-ai",
3
- "version": "0.15.36",
3
+ "version": "0.15.37",
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
@@ -653,6 +653,10 @@
653
653
  font-weight: 600;
654
654
  color: var(--amber);
655
655
  }
656
+ /* The running version beside the title: the code a tweak starts from. Its own
657
+ span, because the title's text is rewritten while the source is fetched. */
658
+ #tweakCta .tweak-row { display: flex; align-items: baseline; gap: 8px; }
659
+ #tweakCta .tweak-ver { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
656
660
  #tweakCta .tweak-sub { font-size: 11px; color: var(--text-dim); }
657
661
  #tweakCta .tweak-arrow { display: inline-block; transition: transform 0.15s ease; }
658
662
  /* No permanent animation: an element blinking here would compete with the
@@ -2618,7 +2622,7 @@
2618
2622
  <div id="tweakSlot">
2619
2623
  <button id="tweakCta" type="button"
2620
2624
  title="Change shadok-ai itself — the agent works on a branch and opens a pull request">
2621
- <span class="tweak-title">🛠 Tweak Shadok-AI <span class="tweak-arrow">›</span></span>
2625
+ <span class="tweak-row"><span class="tweak-title">🛠 Tweak Shadok-AI <span class="tweak-arrow">›</span></span><span class="tweak-ver" id="tweakVer"></span></span>
2622
2626
  <span class="tweak-sub">change the cockpit itself</span>
2623
2627
  </button>
2624
2628
  </div>
@@ -6724,6 +6728,8 @@
6724
6728
  return;
6725
6729
  }
6726
6730
  lastVersion = msg;
6731
+ const tv = document.getElementById("tweakVer");
6732
+ if (tv) tv.textContent = msg.current ? "v" + msg.current : "";
6727
6733
  if (!verView) return;
6728
6734
  const ahead = msg.latest && verIsNewer(msg.latest, msg.current);
6729
6735
  verView.textContent = ahead ? "v" + msg.current + " → " + msg.latest : "v" + (msg.current || "?");