@the-vibe-company/armada 0.1.10 → 0.1.11

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
@@ -90,6 +90,7 @@ armada release --reason "wrong ticket"
90
90
 
91
91
  - `claim` re-reads the ticket and refuses it when another worker holds it; if two claims race, the older comment wins and the other withdraws. It assigns the ticket to the Linear key's user, moves it to the team's first started state, sets the `planning` phase label and the runtime label (matched by name, so `conductor` finds `Conductor`), and posts an `Agent claim — runtime · session · branch · started` line. The handle is kept in that comment and in Turso, so a coordinator finds the session either way. Claiming again with the same handle repairs labels and state. It reads every comment and label of the ticket, however many.
92
92
  - `report <phase>` accepts: planning → awaiting-approval or implementing; awaiting-approval → planning or implementing; implementing → shipping; shipping → implementing or ready-to-merge; ready-to-merge → shipping; blocked from anywhere and back to any phase; the current phase again as a status update. Anything else exits 1 with the reason. The output lists what waits in the worker's inbox.
93
+ - `report`, `ask` and `answer` accept `--message-file -` to read standard input to EOF, including a pipe or a shell heredoc. For example: `printf 'line one\nline two' | bun run armada report implementing --ticket ABC-12 --message-file -`. An explicitly empty or whitespace-only message file or stdin exits 2 before any tracker or database write, with a retry naming `--message` or a non-empty pipe. A `ready-to-merge` report may still omit the message option.
93
94
  - `claim` and `report` read the ticket back and print where it stands, for example `Now: In Progress · phase implementing · runtime Conductor · profile none`, so a worker can check it without opening Linear. `--json` carries the same as `state`.
94
95
  - `ready-to-merge` is refused unless the pull request is open in the project repository, `--sha` is the full 40-character SHA of its head, and every check in `[gates] required_checks` is green on that head (with none declared: at least one check, all green). It needs a GitHub token.
95
96
  - `release` removes the phase and runtime labels, moves the ticket back to the team's first unstarted state and posts `Agent status: released — <reason>`.
package/dist/armada.js CHANGED
@@ -20,7 +20,9 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
20
20
 
21
21
  // src/main.ts
22
22
  import { spawn, spawnSync } from "node:child_process";
23
+ import { createReadStream } from "node:fs";
23
24
  import { readFile as readFile3 } from "node:fs/promises";
25
+ import { isatty } from "node:tty";
24
26
 
25
27
  // src/cli.ts
26
28
  import { dirname as dirname3, join as join5, resolve } from "node:path";
@@ -5050,7 +5052,7 @@ async function loadStatus(config, opts) {
5050
5052
  });
5051
5053
  }
5052
5054
  // package.json
5053
- var version = "0.1.10";
5055
+ var version = "0.1.11";
5054
5056
 
5055
5057
  // src/io.ts
5056
5058
  class UsageError extends Error {
@@ -5593,6 +5595,8 @@ async function readMessage(io, options) {
5593
5595
  const text = file === "-" ? await io.readStdin?.() ?? null : await io.readFile(file);
5594
5596
  if (text === null)
5595
5597
  throw new UsageError(`cannot read the message from ${file}`);
5598
+ if (!text.trim())
5599
+ throw new UsageError(`${file === "-" ? "standard input" : `message file ${file}`} is empty or whitespace-only`, 'pass --message "<text>" or pipe a non-empty message into --message-file -');
5596
5600
  return text;
5597
5601
  }
5598
5602
  async function withContext(io, config2, credentials2, json, act) {
@@ -6690,8 +6694,8 @@ function gitBranch() {
6690
6694
  }
6691
6695
  async function readStdin() {
6692
6696
  let text = "";
6693
- process.stdin.setEncoding("utf8");
6694
- for await (const chunk of process.stdin)
6697
+ const input = createReadStream("", { fd: 0, autoClose: false, encoding: "utf8" });
6698
+ for await (const chunk of input)
6695
6699
  text += chunk;
6696
6700
  return text;
6697
6701
  }
@@ -6752,7 +6756,7 @@ var code = await run(process.argv.slice(2), {
6752
6756
  stdout: (t) => process.stdout.write(t),
6753
6757
  stderr: (t) => process.stderr.write(t),
6754
6758
  ghToken,
6755
- interactive: Boolean(process.stdin.isTTY && process.stderr.isTTY),
6759
+ interactive: isatty(0) && isatty(2),
6756
6760
  prompt,
6757
6761
  gitBranch,
6758
6762
  readStdin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-vibe-company/armada",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "description": "Run a fleet of coding agents on one project: the armada command line.",
6
6
  "license": "MIT",