herdr-orchestra 6.48.1 → 6.48.2
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/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/VERSION +1 -1
- package/bin/__pycache__/orchcpython-314.pyc +0 -0
- package/bin/orch +136 -35
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,36 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes. Versions follow [semantic versioning](https://semver.org).
|
|
4
4
|
|
|
5
|
+
## [6.48.2] - 2026-12-02
|
|
6
|
+
|
|
7
|
+
`orch board` now has three tabs: Milestones, Agents and Tokens. The run's top lines (how many landed, time so far, total tokens, who needs you) stay on every tab, so nothing important is ever hidden. Switch with Tab, the left and right arrows, or the keys 1, 2 and 3. The board opens on Milestones. Every tab updates live, and the old keys still work: up/down to pick, Enter for a milestone's changed files (Milestones tab) or to jump to an agent (Agents tab), f, w and q. Agent names show in full, however long they are.
|
|
8
|
+
|
|
9
|
+
Example (the Agents tab):
|
|
10
|
+
```
|
|
11
|
+
orch board · feat/rupee-flow 17:44 · live
|
|
12
|
+
2 of 5 landed · 1 needs you · 38m so far of ~1h 10m
|
|
13
|
+
tokens 341k so far · lead 61k
|
|
14
|
+
|
|
15
|
+
1 Milestones [2 Agents] 3 Tokens
|
|
16
|
+
|
|
17
|
+
◆ lead claude high planning
|
|
18
|
+
›● agy-2 agy medium M3 · building
|
|
19
|
+
○ rupee-flow-review codex high free
|
|
20
|
+
|
|
21
|
+
[tab ←→ 1-3] switch [↑↓] pick [enter] jump to that agent [f] files [w] web [q] close
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Each agent's pane now carries a label that says who it is and what it does: `agy-2 · coder · M3`, `agy-2 · coder` when it is free, `rupee-flow-review · reviewer`, and `lead`. It changes when a coder moves to another milestone. orch sets it with herdr's `pane rename`, a pane label that is separate from the agent's name, so orch still finds every agent by its name.
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
- `orch board`: tabs Milestones, Agents, Tokens (Tab, Shift+Tab, ←→, 1-3). The Tokens tab also lists each milestone's tokens. `orch board --once --tab agents` prints one tab; `--once` alone still prints the whole board.
|
|
28
|
+
- Pane labels: orch labels each agent's pane when a coder starts or finishes a milestone, and gives every label again on `orch team up` and `orch resume` (a herdr restart loses them). Only a label that changed is sent. `ORCH_PANE_LABELS=0` turns them off.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
- The board no longer cuts or misaligns long agent names: the name column is as wide as the longest name.
|
|
32
|
+
- AGENTS.md: the token rule now covers every agent, not only the lead. A change must not raise the total tokens of a run (lead, coders, reviewer) without a reason, and must not make runs work worse. PRs report coder and reviewer text sizes too when they change.
|
|
33
|
+
- `orch view` (the browser page) has its own layout and is unchanged. The herdr desktop app's board runs `orch board`, so it gets the tabs too. The lead reads no new text.
|
|
34
|
+
|
|
5
35
|
## [6.48.1] - 2026-12-02
|
|
6
36
|
|
|
7
37
|
`orch board` gets a TOKENS part: one row per agent (the lead, each coder, the reviewer) with what it read (in, and the cached part of that) and what it wrote (out), counted live. Before, a job's tokens showed only after the job ended. Now the job an agent is running counts too, read from the agent's own log from the job's start to now, so the numbers move after each reply the tool writes. The board looks again every 10 seconds while a job runs. Each coder that is on a milestone also shows that milestone's role and the skills the plan gave it.
|
package/README.md
CHANGED
|
@@ -348,7 +348,7 @@ A subagent run: `/orch-plan` as usual (the plan's team is `Workers: coder (pi)`,
|
|
|
348
348
|
Three views show a run while it goes; none of them changes it.
|
|
349
349
|
|
|
350
350
|
- **`orch view`** opens the run as a live picture in your browser: the run ring, a milestone graph (arrows = "needs this first", red = needs you) with a one-line description under each milestone, the agents, the details of the milestone you click (with the exact `orch answer` command), time and cost against the estimate, a replay slider, and an optional browser alert when something needs you. `orch view --lan` also opens it to your phone on the same Wi-Fi, behind a secret link. `orch status` and the lead's "needs you" lines print its link while it runs.
|
|
351
|
-
- **`orch board`** draws the same run as text for a Herdr pane; `orch view plugin link` adds a small Herdr plugin that opens it as a popup and `orch view plugin key` puts `prefix+a` in Herdr's config (Herdr 0.7.4+). In the Herdr desktop app, `orch view app link` adds the board to its command palette.
|
|
351
|
+
- **`orch board`** draws the same run as text for a Herdr pane, in three tabs under the run's top line: Milestones, Agents and Tokens (switch with Tab, ←→ or 1-3); `orch view plugin link` adds a small Herdr plugin that opens it as a popup and `orch view plugin key` puts `prefix+a` in Herdr's config (Herdr 0.7.4+). In the Herdr desktop app, `orch view app link` adds the board to its command palette.
|
|
352
352
|
- **What each milestone changed**: press `f` on the board, or click a milestone in `orch view`, for its changed files by folder with `+/-` counts (live while the coder works, unsaved files included), and a file for its diff. `orch changes M2` prints the same. Read-only.
|
|
353
353
|
- **Herdr's sidebar** names each agent by what it does (`codex-1 · M2 building`), set by the event manager on a separate thread, display only (Herdr 0.6.3+; `ORCH_SIDEBAR=0` turns it off). `orch view herdr-config` prints extra sidebar rows.
|
|
354
354
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.48.
|
|
1
|
+
6.48.2
|
|
Binary file
|
package/bin/orch
CHANGED
|
@@ -263,6 +263,7 @@ def save(st):
|
|
|
263
263
|
tmp = STATE.with_suffix(".tmp")
|
|
264
264
|
tmp.write_text(json.dumps(st, indent=2))
|
|
265
265
|
tmp.replace(STATE)
|
|
266
|
+
pane_labels(st)
|
|
266
267
|
if _EVENTS:
|
|
267
268
|
with (ORCH / "events.jsonl").open("a") as f:
|
|
268
269
|
for ev in _EVENTS:
|
|
@@ -270,6 +271,49 @@ def save(st):
|
|
|
270
271
|
_EVENTS.clear()
|
|
271
272
|
|
|
272
273
|
|
|
274
|
+
# ---- pane labels (6.48.2): each agent's pane says who it is and what it does, e.g. "agy-2 · coder · M3". herdr's
|
|
275
|
+
# `pane rename` sets a pane label (shown on the pane's border) that is separate from the agent's name, so orch still
|
|
276
|
+
# finds the agent by name. Only a label that changed is sent, so most saves don't call herdr at all.
|
|
277
|
+
PANE_LABELS = ".pane-labels.json" # in .orchestrate: the labels orch last gave each pane
|
|
278
|
+
PANE_LABEL_RETRY_S = 60 # an agent herdr can't find yet: try again after this long, not on every save
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
def pane_label_map(st):
|
|
282
|
+
"""{agent name: its pane label} for the lead, every coder and the reviewer."""
|
|
283
|
+
out = {}
|
|
284
|
+
ld = (st.get("lead") or {}).get("name")
|
|
285
|
+
if ld:
|
|
286
|
+
out[ld] = "lead" if ld == "lead" else f"{ld} · lead"
|
|
287
|
+
for n, w in (st.get("workers") or {}).items():
|
|
288
|
+
out[n] = f"{n} · coder" + (f" · {w['task']}" if w.get("task") else "")
|
|
289
|
+
if st.get("reviewer"):
|
|
290
|
+
out[st["reviewer"]] = f"{st['reviewer']} · reviewer"
|
|
291
|
+
return out
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
def pane_labels(st, force=False):
|
|
295
|
+
"""Give each agent's pane its label when it changed (a coder moved to another milestone, or was freed)."""
|
|
296
|
+
if os.environ.get("ORCH_PANE_LABELS", "1") == "0" or run_mode(st) != "panes":
|
|
297
|
+
return
|
|
298
|
+
want = pane_label_map(st)
|
|
299
|
+
p = ORCH / PANE_LABELS
|
|
300
|
+
try:
|
|
301
|
+
had = json.loads(p.read_text())
|
|
302
|
+
except (OSError, ValueError):
|
|
303
|
+
had = {}
|
|
304
|
+
now, changed = time.time(), False
|
|
305
|
+
for n, label in want.items():
|
|
306
|
+
h = had.get(n) or {}
|
|
307
|
+
if not force and h.get("label") == label and (h.get("ok") or now - h.get("ts", 0) < PANE_LABEL_RETRY_S):
|
|
308
|
+
continue
|
|
309
|
+
pane = agent_info(st, n).get("pane") or agent_pane(n)
|
|
310
|
+
ok = bool(pane) and _herdr_json([HERDR, "pane", "rename", pane, label])[0]
|
|
311
|
+
had[n], changed = {"label": label, "pane": pane, "ok": ok, "ts": now}, True
|
|
312
|
+
if changed:
|
|
313
|
+
with contextlib.suppress(OSError):
|
|
314
|
+
p.write_text(json.dumps(had))
|
|
315
|
+
|
|
316
|
+
|
|
273
317
|
def fault(point):
|
|
274
318
|
"""Test hook: ORCH_FAULT=<point> kills orch (and the autopilot driving it) right here, like a crash."""
|
|
275
319
|
if os.environ.get("ORCH_FAULT") != point:
|
|
@@ -9222,6 +9266,8 @@ def team_up(args):
|
|
|
9222
9266
|
continue
|
|
9223
9267
|
todo.append((name, w, d))
|
|
9224
9268
|
if not todo:
|
|
9269
|
+
if not dry:
|
|
9270
|
+
pane_labels(st, force=True)
|
|
9225
9271
|
print("TEAM UP: every agent in the plan is running")
|
|
9226
9272
|
return
|
|
9227
9273
|
failed, last, opened = 0, None, []
|
|
@@ -9310,6 +9356,7 @@ def team_up(args):
|
|
|
9310
9356
|
+ (f" (its last screen is in {short(saved)})" if saved else "") + ", then `orch team up` again")
|
|
9311
9357
|
log_line(f"{run_tag(st)} QUIT {name}: {w.get('kind')} exited right after `orch team up` started it "
|
|
9312
9358
|
f"in pane {pid}")
|
|
9359
|
+
pane_labels(st, force=True) # each pane says who it is: "agy-2 · coder", "rev-1 · reviewer", "lead"
|
|
9313
9360
|
if tabs and not dry:
|
|
9314
9361
|
print(f"TAB the team is in the herdr tab{'s' if len(tabs) > 1 else ''} " + ", ".join(f'"{t}"' for t in tabs)
|
|
9315
9362
|
+ ", so the lead keeps its whole screen — switch tabs to watch them (`orch team tidy` moves panes "
|
|
@@ -9477,6 +9524,8 @@ def cmd_resume(args):
|
|
|
9477
9524
|
busy = [(tid, st["tasks"][tid]["wait"]) for tid in st["order"] if st["tasks"][tid].get("wait")]
|
|
9478
9525
|
gap = account_downtime(st)
|
|
9479
9526
|
save(st)
|
|
9527
|
+
if not from_manager:
|
|
9528
|
+
pane_labels(st, force=True) # a restart loses the pane labels too
|
|
9480
9529
|
if from_manager and not gap:
|
|
9481
9530
|
return
|
|
9482
9531
|
if gap and (busy or not from_manager):
|
|
@@ -10693,7 +10742,9 @@ def _fmt_min(s):
|
|
|
10693
10742
|
return f"{s // 3600}h {s % 3600 // 60}m" if s >= 3600 else f"{max(0, s) // 60}m"
|
|
10694
10743
|
|
|
10695
10744
|
|
|
10696
|
-
def render_board(vm, width=100, color=True, sel=None, note=""):
|
|
10745
|
+
def render_board(vm, width=100, color=True, sel=None, note="", tab=None):
|
|
10746
|
+
"""The board as lines. tab None: every part one under the other (`orch board --once`); "m", "a" or "t": the top
|
|
10747
|
+
lines, the tab bar and that tab only (the live board)."""
|
|
10697
10748
|
def c(k, s):
|
|
10698
10749
|
return f"\x1b[{_C[k]}m{s}\x1b[0m" if color and k else s
|
|
10699
10750
|
|
|
@@ -10722,10 +10773,14 @@ def render_board(vm, width=100, color=True, sel=None, note=""):
|
|
|
10722
10773
|
if vm.get("all_done"):
|
|
10723
10774
|
out.append(c("g", "ALL DONE — `orch finish` pushes the branch and opens the PR"))
|
|
10724
10775
|
out += notes
|
|
10725
|
-
|
|
10776
|
+
if tab:
|
|
10777
|
+
out += ["", " ".join(c("a", f"[{i} {w}]") if k == tab else c("d", f" {i} {w} ")
|
|
10778
|
+
for i, (k, w) in enumerate(BOARD_TABS, 1))]
|
|
10779
|
+
if tab in (None, "m"):
|
|
10780
|
+
out += [""] + ([c("d", "MILESTONES")] if tab is None else [])
|
|
10726
10781
|
ms = {m["id"]: m for m in vm["milestones"]}
|
|
10727
10782
|
live_now = {r["task"]: r.get("now") for r in at if r.get("task")}
|
|
10728
|
-
rows = board_rows(vm)
|
|
10783
|
+
rows = board_rows(vm, tab)
|
|
10729
10784
|
picked = rows[sel] if sel is not None and sel < len(rows) else None
|
|
10730
10785
|
name_w = max(18, min(34, width - 52))
|
|
10731
10786
|
|
|
@@ -10755,33 +10810,38 @@ def render_board(vm, width=100, color=True, sel=None, note=""):
|
|
|
10755
10810
|
if m["group"] == "needs_you" and (m.get("question") or m.get("reason")):
|
|
10756
10811
|
out.append(" " + sub + c("r", cut(f"\"{m.get('question') or m.get('reason')}\"", width - len(sub) - 2)))
|
|
10757
10812
|
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10770
|
-
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10774
|
-
|
|
10775
|
-
|
|
10813
|
+
nw_ = max([12] + [len(str(a.get("name") or "")) for a in (vm.get("agents") or []) + at]) # names in full
|
|
10814
|
+
|
|
10815
|
+
def agents_part():
|
|
10816
|
+
for i, a in enumerate(vm["agents"]):
|
|
10817
|
+
busy = a.get("task") or a["role"] == "lead"
|
|
10818
|
+
col = "a" if a["role"] == "lead" else ("p" if a["role"] == "reviewer" else "b") if a.get("task") else "d"
|
|
10819
|
+
mark = "›" if picked == ("a", i) else " "
|
|
10820
|
+
out.append(f"{mark}{c(col, '◆' if a['role'] == 'lead' else '●' if busy else '○')} "
|
|
10821
|
+
f"{a['name']:<{nw_}} {str(a.get('kind') or ''):<8} {str(a.get('tier') or ''):<7} "
|
|
10822
|
+
+ c(col if busy else "d", (f"{a['task']} · " if a.get("task") else "") + a["state"]))
|
|
10823
|
+
if a.get("step_role") or a.get("skills"):
|
|
10824
|
+
sk = ", ".join(x["name"] + (f" ({x['note']})" if x.get("note") else "") for x in a.get("skills") or [])
|
|
10825
|
+
if a.get("step_role"):
|
|
10826
|
+
out.append(c("d", " role: ") + cut(a["step_role"], width - 11))
|
|
10827
|
+
out.append(c("d", " skills: ") + (cut(sk, width - 13) if sk else c("d", "none for this step")))
|
|
10828
|
+
|
|
10829
|
+
def tokens_part():
|
|
10830
|
+
if not at:
|
|
10831
|
+
out.append(c("d", "No token counts yet: they show once an agent has done a job."))
|
|
10832
|
+
return
|
|
10833
|
+
out.extend(([c("d", "TOKENS") + c("d", " read live from each agent's own log")] if tab is None else
|
|
10834
|
+
[c("d", "read live from each agent's own log")])
|
|
10835
|
+
+ [c("d", f" {'':<{nw_}} {'':<8} {'in':>7} {'cached':>8} {'out':>7}")])
|
|
10776
10836
|
for r in at:
|
|
10777
10837
|
col = "a" if r["role"] == "lead" else "p" if r["role"] == "reviewer" else "b"
|
|
10778
10838
|
mark = c(col, "◆" if r["role"] == "lead" else "●" if r.get("task") else "○")
|
|
10779
|
-
head = f"{mark} {r['name']:<
|
|
10839
|
+
head = f"{mark} {r['name']:<{nw_}} {str(r.get('kind') or ''):<8} "
|
|
10780
10840
|
if r.get("kind") and r["kind"] not in TOKEN_KINDS:
|
|
10781
10841
|
out.append(head + c("d", f"n/a: orch can't read {r['kind']}'s logs yet"))
|
|
10782
10842
|
continue
|
|
10783
10843
|
if not r["known"] and r["na"]:
|
|
10784
|
-
out.append(head + c("d", cut(f"n/a: {r['na'][0]}", width -
|
|
10844
|
+
out.append(head + c("d", cut(f"n/a: {r['na'][0]}", width - nw_ - 13)))
|
|
10785
10845
|
continue
|
|
10786
10846
|
if not r["known"] and not r.get("task"):
|
|
10787
10847
|
out.append(head + c("d", "no jobs yet"))
|
|
@@ -10796,15 +10856,34 @@ def render_board(vm, width=100, color=True, sel=None, note=""):
|
|
|
10796
10856
|
out.append(head + f"{_tk(r['in']):>7} {_tk(r['cached']):>8} {_tk(r['out']):>7}"
|
|
10797
10857
|
+ (c("d", " " + " · ".join(tnote)) if tnote else ""))
|
|
10798
10858
|
tot_in, tot_out = sum(r["in"] for r in at), sum(r["out"] for r in at)
|
|
10799
|
-
out.append(c("B", f" {'total':<
|
|
10859
|
+
out.append(c("B", f" {'total':<{nw_ + 9}} {_tk(tot_in):>7} {_tk(sum(r['cached'] for r in at)):>8} {_tk(tot_out):>7}")
|
|
10800
10860
|
+ (c("d", " + some jobs n/a") if any(r["na"] for r in at) else ""))
|
|
10801
|
-
|
|
10861
|
+
if tab == "t":
|
|
10862
|
+
per = [f"{m['id']} " + (f"{_tk(m['tokens']['total'])}{'+' if m['tokens']['partial'] else ''}"
|
|
10863
|
+
if m.get("tokens") and m["tokens"]["total"] else "–") for m in vm["milestones"]]
|
|
10864
|
+
if per:
|
|
10865
|
+
out.extend(["", c("d", "Per milestone: ") + cut(" · ".join(per), width - 18)])
|
|
10866
|
+
|
|
10867
|
+
if tab in (None, "m"):
|
|
10868
|
+
for tid, pre, sub in board_tree(vm):
|
|
10869
|
+
line(ms[tid], pre, sub)
|
|
10870
|
+
if tab in (None, "a"):
|
|
10871
|
+
out += ["", c("d", "AGENTS")] if tab is None else [""]
|
|
10872
|
+
agents_part()
|
|
10873
|
+
if tab == "t" or (tab is None and at):
|
|
10874
|
+
out.append("")
|
|
10875
|
+
tokens_part()
|
|
10876
|
+
if tab in (None, "m") and vm.get("recent"):
|
|
10802
10877
|
out += ["", c("d", "LAST EVENTS")]
|
|
10803
10878
|
for e in vm["recent"][:6]:
|
|
10804
10879
|
out.append(c("d", time.strftime("%H:%M", time.localtime(e["ts"] or 0))) + f" {e['task']} {e['from']} → {e['to']}"
|
|
10805
10880
|
+ (c("d", f" {cut(e.get('why') or '', 50)}") if e.get("why") else ""))
|
|
10806
|
-
|
|
10807
|
-
|
|
10881
|
+
keys = {None: "[↑↓] pick [enter] a milestone's changed files / jump to an agent [f] changed files [w] web view "
|
|
10882
|
+
"[q] close",
|
|
10883
|
+
"m": "[tab ←→ 1-3] switch [↑↓] pick [enter] changed files [f] files [w] web [q] close",
|
|
10884
|
+
"a": "[tab ←→ 1-3] switch [↑↓] pick [enter] jump to that agent [f] files [w] web [q] close",
|
|
10885
|
+
"t": "[tab ←→ 1-3] switch [f] files [w] web [q] close"}[tab]
|
|
10886
|
+
foot = (["", c("a", note)] if note else []) + ["", c("d", keys)]
|
|
10808
10887
|
return BoardLines(out + foot, foot=len(foot))
|
|
10809
10888
|
|
|
10810
10889
|
|
|
@@ -10849,9 +10928,14 @@ def board_tree(vm):
|
|
|
10849
10928
|
return rows
|
|
10850
10929
|
|
|
10851
10930
|
|
|
10852
|
-
|
|
10853
|
-
|
|
10854
|
-
|
|
10931
|
+
BOARD_TABS = (("m", "Milestones"), ("a", "Agents"), ("t", "Tokens")) # the live board's tabs (6.48.2)
|
|
10932
|
+
|
|
10933
|
+
|
|
10934
|
+
def board_rows(vm, tab=None):
|
|
10935
|
+
"""What [↑↓] moves through on the board: the Milestones tab its milestones (board order), the Agents tab its
|
|
10936
|
+
agents, the Tokens tab nothing; with no tab (the whole board) every milestone, then every agent."""
|
|
10937
|
+
ms = [("m", tid) for tid, _, _ in board_tree(vm)] if tab in (None, "m") else []
|
|
10938
|
+
return ms + ([("a", i) for i in range(len(vm.get("agents", [])))] if tab in (None, "a") else [])
|
|
10855
10939
|
|
|
10856
10940
|
|
|
10857
10941
|
def board_default_milestone(vm, row=None):
|
|
@@ -11057,14 +11141,21 @@ def cmd_changes(args):
|
|
|
11057
11141
|
|
|
11058
11142
|
|
|
11059
11143
|
def cmd_board(args):
|
|
11060
|
-
"""orch board [--once] [--no-color] -> the run as text, redrawn when it changes
|
|
11144
|
+
"""orch board [--once] [--tab milestones|agents|tokens] [--no-color] -> the run as text, redrawn when it changes
|
|
11145
|
+
(for a herdr pane or popup). Three tabs under the top lines: Milestones, Agents, Tokens ([tab], [←→] or 1-3).
|
|
11061
11146
|
[f] or [enter] on a milestone opens its changed files, [enter] on a file its diff; q goes back one screen.
|
|
11062
11147
|
[enter] on an agent jumps to it; in the board popup (prefix+a) it also closes the popup."""
|
|
11063
11148
|
# live needs a keyboard and a screen: with stdin or stdout not a terminal, draw once (termios would fail)
|
|
11064
11149
|
once = "--once" in args or not (sys.stdout.isatty() and sys.stdin.isatty())
|
|
11065
11150
|
color = "--no-color" not in args and sys.stdout.isatty() and not os.environ.get("NO_COLOR")
|
|
11151
|
+
tab = "m" # the live board opens on Milestones; --once prints the whole board
|
|
11152
|
+
if "--tab" in args:
|
|
11153
|
+
want = (args[args.index("--tab") + 1:] or [""])[0].lower()
|
|
11154
|
+
tab = next((k for k, w in BOARD_TABS if want in (k, w.lower())), None) or \
|
|
11155
|
+
die("usage: orch board [--once] [--tab milestones|agents|tokens]")
|
|
11066
11156
|
if once:
|
|
11067
|
-
print("\n".join(render_board(view_model(), shutil.get_terminal_size((100, 40)).columns, color
|
|
11157
|
+
print("\n".join(render_board(view_model(), shutil.get_terminal_size((100, 40)).columns, color,
|
|
11158
|
+
tab=tab if "--tab" in args else None)))
|
|
11068
11159
|
return
|
|
11069
11160
|
import select
|
|
11070
11161
|
import termios
|
|
@@ -11099,7 +11190,7 @@ def cmd_board(args):
|
|
|
11099
11190
|
dlines, derr = file_diff(st, mid, dfile["path"])
|
|
11100
11191
|
need = redraw = False
|
|
11101
11192
|
if screen == "run":
|
|
11102
|
-
lines = render_board(vm, size.columns, color, sel, note)
|
|
11193
|
+
lines = render_board(vm, size.columns, color, sel, note, tab)
|
|
11103
11194
|
elif screen == "files":
|
|
11104
11195
|
fsel = min(fsel, max(0, len(ch["files"]) - 1))
|
|
11105
11196
|
lines, ftop = render_changes(ch, size.columns, size.lines, color, fsel, ftop)
|
|
@@ -11152,11 +11243,20 @@ def cmd_board(args):
|
|
|
11152
11243
|
dfile, dtop, screen, need = ch["files"][fsel], 0, "diff", True
|
|
11153
11244
|
redraw = True
|
|
11154
11245
|
continue
|
|
11155
|
-
rows = board_rows(vm)
|
|
11246
|
+
rows = board_rows(vm, tab)
|
|
11156
11247
|
n = len(rows)
|
|
11157
11248
|
if key in ("q", "Q", "\x1b"):
|
|
11158
11249
|
closed_by = repr(key)
|
|
11159
11250
|
break
|
|
11251
|
+
tabs = [k for k, _ in BOARD_TABS]
|
|
11252
|
+
to = {"1": 0, "2": 1, "3": 2}.get(key)
|
|
11253
|
+
if to is None and key in ("\t", RIGHT, "\x1b[Z", LEFT):
|
|
11254
|
+
to = (tabs.index(tab) + (1 if key in ("\t", RIGHT) else -1)) % len(tabs)
|
|
11255
|
+
if to is not None:
|
|
11256
|
+
if tabs[to] != tab:
|
|
11257
|
+
tab, sel, note = tabs[to], None, ""
|
|
11258
|
+
redraw = True
|
|
11259
|
+
continue
|
|
11160
11260
|
if key in (UP, "k"):
|
|
11161
11261
|
sel = (n - 1 if sel is None else max(0, sel - 1)) if n else None
|
|
11162
11262
|
elif key in (DOWN, "j"):
|
|
@@ -11296,7 +11396,8 @@ USAGE = """usage: orch <command> [args]
|
|
|
11296
11396
|
"needs you" alert, time and cost, replay. --lan: also from your phone, with a secret link
|
|
11297
11397
|
view stop|status|herdr-config|plugin link|key|unlink|refresh|app link|unlink
|
|
11298
11398
|
stop it / show its link / sidebar lines for herdr's config / the optional herdr plugin
|
|
11299
|
-
board [--once]
|
|
11399
|
+
board [--once] [--tab milestones|agents|tokens] the run as text, redrawn when it changes: for a herdr pane or
|
|
11400
|
+
popup (any terminal); tabs Milestones, Agents, Tokens ([tab], [←→] or 1-3);
|
|
11300
11401
|
[f] or [enter] on a milestone shows its changed files, [enter] on a file its diff
|
|
11301
11402
|
changes [Mn [file]] [--json] what each milestone changed: files with +/- counts, or one file's diff
|
|
11302
11403
|
(live while a coder works, unsaved files included; landed = its commit). Read-only
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "herdr-orchestra",
|
|
3
|
-
"version": "6.48.
|
|
3
|
+
"version": "6.48.2",
|
|
4
4
|
"description": "Orchestrate AI coding agents (Claude Code, Codex, OpenCode, Amp, Pi) as one team: a lead plans, coders build, a reviewer checks, you get one PR. Runs in Herdr panes, or in one Pi window with subagents.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|