herdr-orchestra 6.25.0 → 6.27.0

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 CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes. Versions follow [semantic versioning](https://semver.org).
4
4
 
5
+ ## [6.27.0] - 2026-11-27
6
+
7
+ `/orch-board` in Pi: open the run board without leaving Pi.
8
+
9
+ Example: you lead a run from Pi, inside herdr. Type `/orch-board` and the board opens as a popup in the repo you are in, the same popup the board key (`prefix+a`) opens. Close it with `q`. In a plain terminal (no herdr), `/orch-board` starts `orch view` in the background and shows its address, `http://127.0.0.1:...`.
10
+
11
+ ### Added
12
+ - **`/orch-board`** (Pi). Inside herdr it opens the board popup with `--cwd` set to your repo. If herdr refuses (for example the plugin is not linked) it says why, points to `orch view plugin link`, and opens the browser page instead. Without herdr, or without the `orch` command, it says what to do (`/orch-setup`).
13
+ - Subagent mode needed no change: `orch sub` already records each milestone's start and finish in `state.json`, so the board and `orch view` show them as in panes mode.
14
+
15
+ ### Not yet tried
16
+ - With a real Pi window and real herdr: tested with a stand-in for Pi's API and a fake `herdr` command.
5
17
  ## [6.25.0] - 2026-11-27
6
18
 
7
19
  You choose the model and thinking level of each milestone and of the reviewer, right after the plan. Before, a milestone only had a level (small, medium, high) and went to any coder of that level; to change a model you edited `Workers:` in plan.md by hand, and nothing stopped orch from moving the milestone to another model later.
package/README.md CHANGED
@@ -282,7 +282,7 @@ pi install npm:herdr-orchestra
282
282
 
283
283
  You can also install it straight from GitHub (same files, no npm needed): `pi install git:github.com/arunnarangali/herdr-orchestra` (add `@vX.Y.Z` to pin a release). Step-by-step setup: the [Pi page](https://herdr-orchestra.vercel.app/docs/pi/) of the docs.
284
284
 
285
- Pi then has the `orch-plan`, `orch-run` and `orch-explain` skills and two commands. The first time, Pi says the `orch` command is missing (or older than the package): type `/orch-setup` once and it runs this package's installer. Pi may warn once that `orch-plan` / `orch-run` were found twice (the installer also puts them in `~/.agents/skills` for Codex, Amp and OpenCode); it keeps one copy and works.
285
+ Pi then has the `orch-plan`, `orch-run` and `orch-explain` skills and three commands (`/orch-setup`, `/orch-mode`, and `/orch-board`, which opens the run board). The first time, Pi says the `orch` command is missing (or older than the package): type `/orch-setup` once and it runs this package's installer. Pi may warn once that `orch-plan` / `orch-run` were found twice (the installer also puts them in `~/.agents/skills` for Codex, Amp and OpenCode); it keeps one copy and works.
286
286
 
287
287
  Runs have two modes. Nothing changes for anyone who never picks the second one.
288
288
 
package/VERSION CHANGED
@@ -1 +1 @@
1
- 6.25.0
1
+ 6.27.0
Binary file
@@ -15,6 +15,7 @@
15
15
  //
16
16
  // Commands: /orch-mode [panes|subagent] show or switch the mode; `subagent` also sets it up (below)
17
17
  // /orch-setup [--mode panes|subagent] install the `orch` command from this package (needed once)
18
+ // /orch-board open the run board: a popup in herdr, else `orch view` in the browser
18
19
  //
19
20
  // Tool: orch_ask the lead's clickable questions before it writes the plan (/orch-plan
20
21
  // step 2a): one picker per question, answers saved in
@@ -454,4 +455,38 @@ export default function orchMode(pi: ExtensionAPI) {
454
455
  await setUp(ctx, want, true);
455
456
  },
456
457
  });
458
+
459
+ pi.registerCommand("orch-board", {
460
+ description: "Open the herdr-orchestra run board: a popup inside herdr, or `orch view` (the browser page) outside it",
461
+ handler: async (_args, ctx) => {
462
+ const insideHerdr = process.env.HERDR_ENV === "1" || !!process.env.HERDR_PANE_ID;
463
+ if (insideHerdr) {
464
+ // the same call the board key (prefix+a) makes; --cwd so the popup opens in this repo, not the plugin's folder
465
+ const herdr = process.env.HERDR_BIN_PATH || "herdr";
466
+ const r = await pi.exec(
467
+ herdr,
468
+ ["plugin", "pane", "open", "--plugin", "herdr-orchestra.board", "--entrypoint", "board", "--placement", "popup", "--cwd", ctx.cwd],
469
+ { cwd: ctx.cwd, timeout: 15000 },
470
+ );
471
+ if (r.code === 0) {
472
+ ctx.ui.notify("Board opened in a herdr popup. Close it with q.", "info");
473
+ return;
474
+ }
475
+ ctx.ui.notify(
476
+ "Herdr could not open the board popup" +
477
+ ((r.stderr || r.stdout).trim() ? `: ${(r.stderr || r.stdout).trim().split("\n")[0]}` : "") +
478
+ ". If the plugin is not linked, run `orch view plugin link`. Opening the browser page instead.",
479
+ "warning",
480
+ );
481
+ }
482
+ const o = await orchState(pi);
483
+ if (!o.path) {
484
+ ctx.ui.notify("The `orch` command is not installed yet. Type /orch-setup once, then /orch-board again.", "warning");
485
+ return;
486
+ }
487
+ const r = await pi.exec(o.path, ["view", "--bg"], { cwd: ctx.cwd, timeout: 20000 });
488
+ const out = (r.stdout + r.stderr).trim();
489
+ ctx.ui.notify(out || (r.code === 0 ? "orch view started." : "orch view failed."), r.code === 0 ? "info" : "error");
490
+ },
491
+ });
457
492
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "herdr-orchestra",
3
- "version": "6.25.0",
3
+ "version": "6.27.0",
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": {