pi-straw-boss 0.13.0 → 0.13.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/order.ts +4 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-straw-boss",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Straw Boss coordination for pi in Herdr: sessions join a tab's net by choice, the first joiner is its main agent, a workspace tower opens on demand with a live monitoring dashboard, and boss_broadcast reaches the rest",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/order.ts CHANGED
@@ -6,9 +6,9 @@ import { ARROW, type HerdrRun, type HerdrTab, isSub, MARK, type Pane, panes, typ
6
6
  // and then the tabs in tab order, in each tab the main agent and then the members, and every subagent right after the session that launched it,
7
7
  // its own subagents after it in turn. Segments are fixed-width and `.`-separated, so plain string order is the numeric order of every segment,
8
8
  // and a subagent's key is its parent's key plus one more segment, which sorts after the parent and before the parent's next sibling.
9
- // - `sb_mark`: a short label that says what a net member is, a star and its tab's label for a main agent, a person (U+F007) alone for a member, and `[sub]` and the launcher's name for a subagent.
9
+ // - `sb_mark`: a short label that says what a net member is, a star (U+F005) alone for a main agent, a person (U+F007) alone for a member, and `[sub]` and the launcher's name for a subagent.
10
10
  // A tower has none: its tab already carries the radio tower glyph.
11
- // - `sb_tab`: a member's tab label, which the first row shows in place of Herdr's tab item; a main agent's is in its mark instead.
11
+ // - `sb_tab`: a main agent's or member's tab label, which the row shows in place of Herdr's tab item.
12
12
  // - `sb_indent`: a tree branch on a subagent alone, like Herdr's Spaces panel draws a worktree: `├─` while a later subagent of the same launcher is marked, `└─` on the last. A row put before the state icon shows it as the
13
13
  // indent under the launcher. A tower, a main agent and a member carry none.
14
14
  // - `sb_name`: a subagent's own name, as pi-herdr-agents shows it. Herdr's pane label held it until a new server dropped the label; a row can show the token instead. A subagent alone carries one.
@@ -60,10 +60,9 @@ export async function netTokens(run: HerdrRun, place: Place, role: "tower" | "ma
60
60
  const [ps, all, tabList] = [await panes(run), await workspaces(run), await tabs(run, place.workspaceId)];
61
61
  const pane = ps.find((p) => p.pane_id === place.paneId), key = pane && orderKey(role, pane, ps, all, tabList);
62
62
  const joined = new Set(ps.filter((p) => p.tokens?.sb_role).map((p) => p.pane_id));
63
- // A main agent's tab label goes in its mark, for a row of its own; a member's in `sb_tab`, which stands for the tab item in the first row.
63
+ // A main agent and a member carry their mark and their tab label alike, so both fit the same one row; `sb_tab` stands for Herdr's tab item.
64
64
  const tab = tabList.find((t) => t.tab_id === pane?.tab_id)?.label || null;
65
- const mark = role === "tower" ? null : role === "main" ? (tab ? `${MARK.main} ${tab}` : MARK.main) : MARK[role];
66
- return { own: { sb_order: key ?? null, sb_mark: mark, sb_indent: null, sb_name: null, sb_tab: role === "member" ? tab : null }, kids: key ? descendants(pane, key, name, ps, now) : [], joined };
65
+ return { own: { sb_order: key ?? null, sb_mark: role === "tower" ? null : MARK[role], sb_indent: null, sb_name: null, sb_tab: role === "tower" ? null : tab }, kids: key ? descendants(pane, key, name, ps, now) : [], joined };
67
66
  }
68
67
 
69
68
  /**