pi-straw-boss 0.7.0 → 0.7.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 +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-straw-boss",
3
- "version": "0.7.0",
3
+ "version": "0.7.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,7 +6,7 @@ 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 alone 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 and `main` 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
11
  // - `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
12
12
  // indent under the launcher. A tower, a main agent and a member carry none.
@@ -58,7 +58,7 @@ export async function netTokens(run: HerdrRun, place: Place, role: "tower" | "ma
58
58
  const [ps, all, tabList] = [await panes(run), await workspaces(run), await tabs(run, place.workspaceId)];
59
59
  const pane = ps.find((p) => p.pane_id === place.paneId), key = pane && orderKey(role, pane, ps, all, tabList);
60
60
  const joined = new Set(ps.filter((p) => p.tokens?.sb_role).map((p) => p.pane_id));
61
- return { own: { sb_order: key ?? null, sb_mark: role === "tower" ? null : MARK[role], sb_indent: null }, kids: key ? descendants(pane, key, name, ps, now) : [], joined };
61
+ return { own: { sb_order: key ?? null, sb_mark: role === "tower" ? null : role === "main" ? `${MARK.main} main` : MARK[role], sb_indent: null }, kids: key ? descendants(pane, key, name, ps, now) : [], joined };
62
62
  }
63
63
 
64
64
  /**