shadok-ai 0.15.29 → 0.15.30

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
@@ -77,8 +77,8 @@ Enter to skip; you can add it later from the web UI).
77
77
  grouping, and closing all sync live between the browser and Telegram: it's
78
78
  one list, server-owned, not two copies.
79
79
  - **Groups column** — on a desktop the groups get a column of their own, left
80
- of the agents: pick a group and the agents column shows only its agents (the
81
- home agent stays visible in every group; *Ungrouped* holds the rest). Each
80
+ of the agents: pick a group and the agents column shows only its agents
81
+ (*Ungrouped* holds the rest, the home agent included unless you file it). Each
82
82
  group has an icon — drawn at random, click it to pick another or type any
83
83
  emoji — and a **+** that creates the new agent straight into that group.
84
84
  Dragging an agent onto a group still files it there, and dragging groups
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shadok-ai",
3
- "version": "0.15.29",
3
+ "version": "0.15.30",
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
@@ -707,8 +707,8 @@
707
707
  agents column keeps its DOM (groups, bodies, tabs) because that is what is
708
708
  persisted, so the filtering below is pure CSS over it: group heads go (the
709
709
  rail is the header now), bodies are always unfolded, and every tab outside
710
- the selected group is hidden — except the home agent, which stays reachable
711
- whatever is selected. Phones (≤640px) keep the single-column sheet. */
710
+ the selected group is hidden, the home agent included (it lives in its own
711
+ group like any other). Phones (≤640px) keep the single-column sheet. */
712
712
  #groupRail { display: none; }
713
713
  .icon-picker[hidden] { display: none; }
714
714
  @media (min-width: 641px) {
@@ -781,11 +781,11 @@
781
781
  #tabbar .group { margin-top: 0; }
782
782
  #tabbar .group-body { padding-left: 0; }
783
783
  #tabbar .group.collapsed .group-body { display: flex; }
784
- #tabbar:not([data-view="ungrouped"]) #ungrouped .tab:not(.main-tab),
785
- #tabbar[data-view="ungrouped"] #groups .tab:not(.main-tab),
786
- #tabbar .group:not(.in-view) .tab:not(.main-tab) { display: none; }
787
- #tabbar:not([data-view="ungrouped"]) #ungrouped:not(:has(.main-tab)),
788
- #tabbar .group:not(.in-view):not(:has(.main-tab)) { display: none; }
784
+ /* The home agent is an agent like the others here: it shows in ITS group
785
+ (usually Ungrouped), not pinned into every one. */
786
+ #tabbar:not([data-view="ungrouped"]) #ungrouped,
787
+ #tabbar[data-view="ungrouped"] #groups,
788
+ #tabbar .group:not(.in-view) { display: none; }
789
789
  }
790
790
  @media (max-width: 640px) {
791
791
  #tabbar .side-label .sl-view, #viewEmpty { display: none; }
@@ -4159,16 +4159,14 @@
4159
4159
  applyView();
4160
4160
  // Picking a group shows one of ITS agents: staying on an agent that is no
4161
4161
  // longer in the list would leave the chat and the list disagreeing.
4162
- // The home agent is visible in every group, but picking a group still means
4163
- // "show me that group": it opens one of the group's own agents.
4164
- if (follow && active && !active.btnEl.closest("#tweakSlot") && (active.isMain || viewOfTab(active) !== currentView())) {
4165
- const first = tabsInView(currentView()).find((t) => !t.isMain);
4162
+ if (follow && active && !active.btnEl.closest("#tweakSlot") && viewOfTab(active) !== currentView()) {
4163
+ const first = tabsInView(currentView())[0];
4166
4164
  if (first) activate(first);
4167
4165
  }
4168
4166
  }
4169
4167
  /** Whatever opens an agent (a click, a link, a notification) brings its group. */
4170
4168
  function showTabGroup(tab) {
4171
- if (!tab || tab.isMain || tab.btnEl.closest("#tweakSlot")) return;
4169
+ if (!tab || tab.btnEl.closest("#tweakSlot")) return;
4172
4170
  const v = viewOfTab(tab);
4173
4171
  if (v !== currentView()) setView(v, { follow: false });
4174
4172
  }
@@ -4179,7 +4177,7 @@
4179
4177
  for (const g of groups) g.el.classList.toggle("in-view", String(g.id) === v);
4180
4178
  const g = groups.find((x) => String(x.id) === v);
4181
4179
  $("viewLabel").textContent = g ? `${g.icon} ${g.nameEl.textContent}` : "Ungrouped";
4182
- $("viewEmpty").hidden = tabsInView(v).some((t) => !t.isMain) || v === "ungrouped";
4180
+ $("viewEmpty").hidden = tabsInView(v).length > 0 || v === "ungrouped";
4183
4181
  renderRail();
4184
4182
  }
4185
4183
 
@@ -4187,7 +4185,7 @@
4187
4185
  ["needs-answer", "unread", "working"].find((m) => t.btnEl.classList.contains(m)) || null;
4188
4186
 
4189
4187
  function railItem({ view, icon, name, group }) {
4190
- const members = tabsInView(view).filter((t) => !t.isMain);
4188
+ const members = tabsInView(view);
4191
4189
  const item = document.createElement("div");
4192
4190
  item.className = "rail-item" + (group ? " editable" : "");
4193
4191
  item.dataset.view = view;
@@ -4302,7 +4300,7 @@
4302
4300
  // replaced under the pointer.
4303
4301
  const v = currentView();
4304
4302
  const sig = v + "|" + entries.map((e) => {
4305
- const members = tabsInView(e.view).filter((t) => !t.isMain);
4303
+ const members = tabsInView(e.view);
4306
4304
  return [e.view, e.icon, e.name, members.length, members.map(moodOf).join(",")].join("/");
4307
4305
  }).join("|");
4308
4306
  if (sig !== railSig) {