@the-vibe-company/armada 0.2.48 → 0.2.49

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
@@ -219,7 +219,7 @@ armada merge 35 --no-ticket # a pull request no ticket owns: armada init's, a re
219
219
  - A head that lacks commits of its base branch is refused, unless `[gates] local_commands` is set: then the head is merged into the base in a throwaway `git worktree`, the commands run there, and the worktree is removed.
220
220
  - `--wait [--timeout <min>]` (30 minutes by default) keeps going until the pull request merges or a real refusal. A head behind its base that GitHub says merges cleanly is updated with GitHub's "update branch" (a merge commit, no force-push), and every required check is waited for on the new head; when the base does not require heads up to date and `[gates] local_commands` is set, it is test-merged instead. A red check, a conflict, any other refused rule, or GitHub refusing the update (a protected branch) or not applying it within 3 minutes stops it and says which. The merge lock is held only while merging, never while waiting; signed in with Armada down, it refuses before touching the branch.
221
221
  - A head that is the handed-back SHA followed only by merge commits of the base still counts as the hand-back: each merge commit's first parent is the commit before it, its second parent is on the base branch, and its tree is the clean merge of the two (`git merge-tree`). The merged comment then names both heads (`head <new>, the handed-back <old> updated with main`).
222
- - `--no-ticket` merges a pull request no ticket owns (`armada init` prints the command for its own): no hand-back, nothing written to Linear, every other check unchanged, pinned to the head it checked. It refuses a branch that names a ticket of the program. When none of the required checks ran on the head (a release pull request opened with the workflow's token), it passes with a note once the head is a minute old (never a head this run updated), `UNSTABLE` included when nothing failed.
222
+ - `--no-ticket` merges a pull request no ticket owns (`armada init` prints the command for its own): no hand-back, nothing written to Linear, every other check unchanged, pinned to the head it checked. A branch that names a ticket of the program is refused unless you add `--reason "<why the ticket stays open>"`: the reason is posted on the PR before merging, and its ticket and worker stay unchanged. These overrides require the configured CI checks; they do not use the release exception below. When none of the required checks ran on the head (a release pull request opened with the workflow's token), it passes with a note once the head is a minute old (never a head this run updated), `UNSTABLE` included when nothing failed.
223
223
  - GitHub's `HAS_HOOKS` (mergeable, with pre-receive hooks) counts as `CLEAN`.
224
224
  - Hints, never blocking: top-level functions, classes, types and constants the pull request removes or renames that the base branch still uses in files the pull request does not touch.
225
225
  - One merge at a time per project: a `merge` lease taken through Armada (20 minutes, renewed before the merge, atomic on its database and timed by its clock) makes a second coordinator wait. When the terminal is signed in but Armada is unreachable the merge is refused; `--no-lock` forces it, with a warning and "merged without lock" in the ticket's merged comment. Not signed in at all (one coordinator) the merge runs unlocked with a warning.
package/dist/armada.js CHANGED
@@ -5511,7 +5511,15 @@ var STATE_HELP = {
5511
5511
  UNSTABLE: "a check that is not required is failing"
5512
5512
  };
5513
5513
  var stateLine = (pull) => `GitHub reports #${pull.number} as ${pull.mergeStateStatus}, not CLEAN${STATE_HELP[pull.mergeStateStatus] ? `: ${STATE_HELP[pull.mergeStateStatus]}` : ""}`;
5514
- function assess({ pull, ticket, handBack, requiredChecks, lineage, now }) {
5514
+ function assess({
5515
+ pull,
5516
+ ticket,
5517
+ handBack,
5518
+ requiredChecks,
5519
+ requireChecks,
5520
+ lineage,
5521
+ now
5522
+ }) {
5515
5523
  const n = `#${pull.number}`;
5516
5524
  const problems = [];
5517
5525
  const waits = [];
@@ -5539,7 +5547,7 @@ function assess({ pull, ticket, handBack, requiredChecks, lineage, now }) {
5539
5547
  problems.push(`${n} is a draft`);
5540
5548
  if (!COMMITIZEN_TITLE.test(pull.title))
5541
5549
  problems.push(`the title "${pull.title}" is not in Commitizen format, e.g. "feat(cli): add a command"`);
5542
- const checks = checkStates(pull, requiredChecks, !ticket && !lineage?.updates, now);
5550
+ const checks = checkStates(pull, requiredChecks, !ticket && !requireChecks && !lineage?.updates, now);
5543
5551
  problems.push(...checks.failed);
5544
5552
  waits.push(...checks.pending);
5545
5553
  notes.push(...checks.notes);
@@ -5704,14 +5712,19 @@ async function readSettled(ctx, number) {
5704
5712
  throw new Refusal(`pull request #${number} was not found in ${ctx.config.github.repository}`, "armada status, which lists the pull requests waiting");
5705
5713
  return pull;
5706
5714
  }
5715
+ var mergeReason = (input) => input.reason?.replace(/\s+/g, " ").trim() || null;
5716
+ function programTicket(config, pull) {
5717
+ const named = pull.headRef ? ticketFromBranch(pull.headRef, config.tracker.programRoot) : null;
5718
+ const team = config.tracker.programRoot.split("-")[0]?.toUpperCase();
5719
+ return named && named.split("-")[0] === team ? named : null;
5720
+ }
5707
5721
  async function readTicketFor(ctx, pull, input) {
5708
5722
  const named = pull.headRef ? ticketFromBranch(pull.headRef, ctx.config.tracker.programRoot) : null;
5709
5723
  if (input.noTicket) {
5710
5724
  if (input.ticket)
5711
5725
  throw new Refusal("--no-ticket and --ticket cannot go together", `armada merge ${pull.number}`);
5712
- const team = ctx.config.tracker.programRoot.split("-")[0]?.toUpperCase();
5713
- if (named && named.split("-")[0] === team)
5714
- throw new Refusal(`the branch of #${pull.number} (${pull.headRef}) names ${named}: merge it on its worker's hand-back, not with --no-ticket`, `armada merge ${pull.number}`);
5726
+ if (programTicket(ctx.config, pull) && !mergeReason(input))
5727
+ throw new Refusal(`the branch of #${pull.number} (${pull.headRef}) names ${named}: merge it on its worker's hand-back, or use --no-ticket --reason "<why the ticket stays open>"`, `armada merge ${pull.number}, or armada merge ${pull.number} --no-ticket --reason "<why the ticket stays open>"`);
5715
5728
  return null;
5716
5729
  }
5717
5730
  const id = input.ticket?.trim().toUpperCase() || named;
@@ -5777,6 +5790,7 @@ async function look(ctx, input, run) {
5777
5790
  ticket,
5778
5791
  handBack,
5779
5792
  requiredChecks: ctx.config.gates.requiredChecks,
5793
+ requireChecks: !!input.noTicket && !!programTicket(ctx.config, pull),
5780
5794
  lineage,
5781
5795
  now: ctx.now()
5782
5796
  });
@@ -5887,7 +5901,7 @@ ${problems.map((p) => ` - ${p}`).join(`
5887
5901
  async function ownerDecision(ctx, input, c, dryRun) {
5888
5902
  const n = c.pull.number;
5889
5903
  const rule = c.ticket ? ctx.config.policy.mergeApproval ?? null : null;
5890
- const reason = input.reason?.replace(/\s+/g, " ").trim() || null;
5904
+ const reason = mergeReason(input);
5891
5905
  const lines = rule ? [`Merge rule (armada.toml [policy] merge_approval): "${rule}"`] : [];
5892
5906
  let approval = { state: "none" };
5893
5907
  let unreadable = null;
@@ -6155,6 +6169,17 @@ async function locked(ctx, input, run) {
6155
6169
  const handBacks = c.ticket ? await live(ctx, c.warnings, "read the hand-back for merge recovery", (fleet) => fleet.ticketItems(c.ticket?.id ?? "")) : null;
6156
6170
  const handBackId = handBacks?.find((item) => item.kind === "hand-back")?.id ?? null;
6157
6171
  await recheck(ctx, input, run, c);
6172
+ const reason = input.noTicket ? mergeReason(input) : null;
6173
+ if (reason) {
6174
+ const named = programTicket(config, c.pull);
6175
+ const body = `Armada merge --no-ticket at ${c.sha}: ${reason}.${named ? ` ${named} stays open; its ticket and worker are left unchanged.` : " No ticket is closed."}`;
6176
+ try {
6177
+ await ctx.forge.comment(c.pull.number, body);
6178
+ } catch (err) {
6179
+ throw new Refusal(`could not record the --no-ticket reason on #${c.pull.number} (${err instanceof Error ? err.message : String(err)}); nothing was merged`, `armada merge ${input.pr} --no-ticket --reason "<why the ticket stays open>" again once GitHub answers`);
6180
+ }
6181
+ c.lines.push(`Recorded --no-ticket reason on #${c.pull.number}: ${reason}`);
6182
+ }
6158
6183
  if (!await renew())
6159
6184
  throw new Refusal("the merge lock could not be renewed (it expired and another coordinator took it, or Armada did not answer); nothing was merged", `armada merge ${input.pr} again`);
6160
6185
  say(ctx, `Merging #${c.pull.number} at ${c.sha}…`);
@@ -6309,7 +6334,7 @@ var skills_generated_default = [
6309
6334
  files: [
6310
6335
  {
6311
6336
  path: "MERGE.md",
6312
- content: "# Merging a pull request\n\nRun `armada merge <pr>` (add `--dry-run` to see the checklist only, `--wait` when main keeps moving, `--no-ticket` for a pull request no ticket owns). It checks everything below, takes the project's merge lock, merges pinned to the handed-back SHA, confirms the merge on GitHub and closes the ticket. Its output lists the workers in flight to tell and the worker session to archive. When a refusal names a rule, fix the cause (usually: ask the worker to bring the default branch in and report again) rather than merging by hand. When you must merge by hand, follow the same steps.\n\n## The owner's merge rule: `--reason` and `--ask-owner`\n\n`[policy] merge_approval` in `armada.toml` says in plain words which merges the owner wants to approve first, for example \"merge on your own, except front-end changes: send me a link to check them first\". Without it you merge everything on your own. With it, `armada merge` prints the rule and you judge each pull request: look at its files and at what users will see, then record why either way.\n\n- It may merge on your own: `armada merge <pr> --reason \"<why>\"`, for example `--reason \"CLI only\"`. The ticket's merged comment and the dashboard say `merged on its own (rule: …): CLI only`.\n- The rule keeps it for the owner: `armada merge <pr> --ask-owner --reason \"<why>\"`, for example `--reason \"touches components/timeline\"`. It merges nothing: it records the pull request as GitHub shows it now (title, files with +/−, CI, the preview deployment of its head) with the ticket's screenshots on the owner's Validations page, posts the approval link (`https://<dashboard>/approve/<id>`) on the ticket and prints it. Send it to the owner. Their decision arrives in your inbox as a `decision` item (it wakes `armada watch`): approved, run `armada merge <pr>`, which records `approved by <owner> at <time>`; changes requested, relay them to the worker.\n- Once the owner was asked about a pull request, `armada merge` refuses it until they approved that exact head; a head that is it with only main merged in still counts. Any other new head needs `--ask-owner` again.\n\n## Main kept moving: `--wait`\n\nWith several workers in flight, main often moves between a green hand-back and its merge. Instead of asking the worker to bring main in, run `armada merge <pr> --wait [--timeout <min>]` (30 minutes by default), in the background where your runtime allows it (Claude Code: `run_in_background`):\n\n- A head behind main that GitHub says merges cleanly is updated with GitHub's \"update branch\": a merge commit on the branch, no force-push. Squash merges make that merge commit harmless. When main does not require heads to be up to date and `[gates] local_commands` is set, it is test-merged instead, as without `--wait`, so a busy main does not restart CI each time.\n- It waits for every required check on the new head, then merges pinned to that head.\n- It holds the project's merge lock only while merging, not while waiting, so two waits never block each other. Signed in with Armada down, it refuses before touching the branch.\n- It stops at once, naming the cause, on a red check, a conflict, any other refused rule, or when GitHub refuses the update (a branch protection rule or ruleset can forbid it) or accepts it without the head moving within 3 minutes: ask the worker to fix it. A refusal after an update says so: the worker pulls the updated branch before pushing again.\n- The updated head still counts as the worker's hand-back, because the only change is main coming in: `armada merge` accepts a head that is the handed-back SHA followed only by merge commits, each bringing in a commit of main, with the tree of a clean merge (checked with git). That holds without `--wait` too, for example after \"Update branch\" on GitHub. The ticket's merged comment names both heads: `head <new>, the handed-back <old> updated with main`.\n\n## No ticket: `--no-ticket`\n\n`armada merge <pr> --no-ticket` merges a pull request no ticket owns: the `armada init` pull request (its output names the command) or the release pull request below. There is no hand-back and nothing is written to Linear; every other check is unchanged, and the merge is pinned to the head it checked. It refuses a branch that names a ticket of the program: that one is merged on its worker's hand-back.\n\nWhen none of the required checks ran on the head (a release pull request opened with the workflow's own token gets no CI run), it passes with a note, on GitHub's own state (`UNSTABLE` included, when nothing failed) and the checks that did run, once the head is a minute old; a younger head, or a head this run updated (its update starts CI), is waited for (`--wait`) or refused.\n\n## Before\n\n1. The worker has handed back: `Agent phase` is `ready-to-merge` and you have the full 40-character head SHA it reported.\n2. `gh pr view <n> --json headRefOid,mergeStateStatus,isDraft,title` shows that SHA (or that SHA with only main merged in), `CLEAN` (or `HAS_HOOKS`), not a draft, and a Commitizen title.\n3. `gh pr checks <n>` shows every required check passing.\n4. The head contains the current default branch: `git merge-base --is-ancestor origin/<default> <sha>`. If not, update it (`--wait`) or ask the worker to bring the default branch in (rebase, or merge it into their branch; never force-push a branch someone else pushed to).\n5. Semantic check: search the default branch for callers of anything the pull request deletes or renames.\n6. A dashboard pull request (one that changes Armada's own dashboard, `packages/dashboard`): compare with /agents and /design. Open each page it changes on its preview or the demo next to `/agents` and `/design`. The header bar, the toolbar, the sections and the rows must match them. A page with a title of its own, another font or its own list style goes back to the worker.\n\n## Merge\n\n```sh\ngh pr merge <n> --squash --match-head-commit <full-sha>\n```\n\n- One merge at a time: `armada merge` holds the project's merge lock. If it refuses because Armada is down, use `--no-lock` only when you are sure no other coordinator merges in the project.\n- Leave out `--delete-branch`: it deletes local worktrees that have the branch checked out, including other agents'. Delete the branch once its worktree is gone.\n- If GitHub answers with a 5xx, check `gh pr view <n> --json state` before retrying.\n\n## After\n\n1. The ticket is Done, its `Agent phase` and `Agent runtime` labels removed, the pull request linked.\n2. Tell every in-flight worker what the merge changes for them: a shared file, a migration, a new check, code they must now reuse or delete.\n3. Archive the merged worker's workspace with the \"Stop and archive\" section of its runtime guide.\n4. Launch the tickets this merge unblocked.\n\n## The release pull request\n\nSome repositories publish through release-please: every merge to the default branch opens or updates one release pull request, and merging it tags the version and publishes it. When the repository's rules (`AGENTS.md`) say to merge it after each merge, do it right after the ticket's merge, without a hand-back: no worker owns it.\n\n- **What it looks like.** Title `chore(main): release <version>`, opened by `github-actions`, label `autorelease: pending`, and a diff that only touches the changelog, the manifest and version fields. It is opened with the workflow's own token, so **no CI check runs on it** (only checks from apps such as Vercel, if any) and `mergeStateStatus` is often `UNSTABLE` (`armada merge --no-ticket` accepts it when none of the required checks ran and nothing failed). Both are expected: the publish job runs the repository's checks again before publishing. Anything else in the diff, or a `DIRTY` state, is not expected: stop and tell the owner.\n- **Find it and its head:**\n\n```sh\ngh pr list --state open --label \"autorelease: pending\" --json number,title,headRefOid,mergeStateStatus\n```\n\n- **Merge it** with `armada merge <n> --no-ticket`: no ticket owns it, and no required check runs on it (see \"No ticket\" above). By hand, pin it to that head, like any merge, and without `--delete-branch`:\n\n```sh\ngh pr merge <n> --squash --match-head-commit <full-sha>\n```\n\n- **Check the publish.** After a minute or two the new version is on the registry, for example `npm view <package> version` for an npm package (the package is named in `AGENTS.md` or the release workflow). If it is not, open the Release run (`gh run list --workflow release.yml --limit 3`), fix the cause and re-run its failed jobs: a later push does not publish a version already tagged.\n- Release-please updates the same pull request on each merge to the default branch; one release pull request can carry several merges.\n"
6337
+ content: "# Merging a pull request\n\nRun `armada merge <pr>` (add `--dry-run` to see the checklist only, `--wait` when main keeps moving, `--no-ticket` for a pull request no ticket owns). It checks everything below, takes the project's merge lock, merges pinned to the handed-back SHA, confirms the merge on GitHub and closes the ticket. Its output lists the workers in flight to tell and the worker session to archive. When a refusal names a rule, fix the cause (usually: ask the worker to bring the default branch in and report again) rather than merging by hand. When you must merge by hand, follow the same steps.\n\n## The owner's merge rule: `--reason` and `--ask-owner`\n\n`[policy] merge_approval` in `armada.toml` says in plain words which merges the owner wants to approve first, for example \"merge on your own, except front-end changes: send me a link to check them first\". Without it you merge everything on your own. With it, `armada merge` prints the rule and you judge each pull request: look at its files and at what users will see, then record why either way.\n\n- It may merge on your own: `armada merge <pr> --reason \"<why>\"`, for example `--reason \"CLI only\"`. The ticket's merged comment and the dashboard say `merged on its own (rule: …): CLI only`.\n- The rule keeps it for the owner: `armada merge <pr> --ask-owner --reason \"<why>\"`, for example `--reason \"touches components/timeline\"`. It merges nothing: it records the pull request as GitHub shows it now (title, files with +/−, CI, the preview deployment of its head) with the ticket's screenshots on the owner's Validations page, posts the approval link (`https://<dashboard>/approve/<id>`) on the ticket and prints it. Send it to the owner. Their decision arrives in your inbox as a `decision` item (it wakes `armada watch`): approved, run `armada merge <pr>`, which records `approved by <owner> at <time>`; changes requested, relay them to the worker.\n- Once the owner was asked about a pull request, `armada merge` refuses it until they approved that exact head; a head that is it with only main merged in still counts. Any other new head needs `--ask-owner` again.\n\n## Main kept moving: `--wait`\n\nWith several workers in flight, main often moves between a green hand-back and its merge. Instead of asking the worker to bring main in, run `armada merge <pr> --wait [--timeout <min>]` (30 minutes by default), in the background where your runtime allows it (Claude Code: `run_in_background`):\n\n- A head behind main that GitHub says merges cleanly is updated with GitHub's \"update branch\": a merge commit on the branch, no force-push. Squash merges make that merge commit harmless. When main does not require heads to be up to date and `[gates] local_commands` is set, it is test-merged instead, as without `--wait`, so a busy main does not restart CI each time.\n- It waits for every required check on the new head, then merges pinned to that head.\n- It holds the project's merge lock only while merging, not while waiting, so two waits never block each other. Signed in with Armada down, it refuses before touching the branch.\n- It stops at once, naming the cause, on a red check, a conflict, any other refused rule, or when GitHub refuses the update (a branch protection rule or ruleset can forbid it) or accepts it without the head moving within 3 minutes: ask the worker to fix it. A refusal after an update says so: the worker pulls the updated branch before pushing again.\n- The updated head still counts as the worker's hand-back, because the only change is main coming in: `armada merge` accepts a head that is the handed-back SHA followed only by merge commits, each bringing in a commit of main, with the tree of a clean merge (checked with git). That holds without `--wait` too, for example after \"Update branch\" on GitHub. The ticket's merged comment names both heads: `head <new>, the handed-back <old> updated with main`.\n\n## No ticket: `--no-ticket`\n\n`armada merge <pr> --no-ticket` merges a pull request no ticket owns: the `armada init` pull request (its output names the command) or the release pull request below. There is no hand-back and nothing is written to Linear; every other check is unchanged, and the merge is pinned to the head it checked. A branch that names a ticket of the program is refused unless you add `--reason \"<why the ticket stays open>\"`. Use that override for partial or configuration work that must land before the ticket is done: it requires the configured CI checks, posts the reason on the PR before merging, and leaves the ticket and its worker unchanged. A failed reason comment refuses the merge; `--dry-run` posts nothing.\n\nWhen none of the required checks ran on the head (a release pull request opened with the workflow's own token gets no CI run), it passes with a note, on GitHub's own state (`UNSTABLE` included, when nothing failed) and the checks that did run, once the head is a minute old; a younger head, or a head this run updated (its update starts CI), is waited for (`--wait`) or refused.\n\n## Before\n\n1. The worker has handed back: `Agent phase` is `ready-to-merge` and you have the full 40-character head SHA it reported.\n2. `gh pr view <n> --json headRefOid,mergeStateStatus,isDraft,title` shows that SHA (or that SHA with only main merged in), `CLEAN` (or `HAS_HOOKS`), not a draft, and a Commitizen title.\n3. `gh pr checks <n>` shows every required check passing.\n4. The head contains the current default branch: `git merge-base --is-ancestor origin/<default> <sha>`. If not, update it (`--wait`) or ask the worker to bring the default branch in (rebase, or merge it into their branch; never force-push a branch someone else pushed to).\n5. Semantic check: search the default branch for callers of anything the pull request deletes or renames.\n6. A dashboard pull request (one that changes Armada's own dashboard, `packages/dashboard`): compare with /agents and /design. Open each page it changes on its preview or the demo next to `/agents` and `/design`. The header bar, the toolbar, the sections and the rows must match them. A page with a title of its own, another font or its own list style goes back to the worker.\n\n## Merge\n\n```sh\ngh pr merge <n> --squash --match-head-commit <full-sha>\n```\n\n- One merge at a time: `armada merge` holds the project's merge lock. If it refuses because Armada is down, use `--no-lock` only when you are sure no other coordinator merges in the project.\n- Leave out `--delete-branch`: it deletes local worktrees that have the branch checked out, including other agents'. Delete the branch once its worktree is gone.\n- If GitHub answers with a 5xx, check `gh pr view <n> --json state` before retrying.\n\n## After\n\n1. The ticket is Done, its `Agent phase` and `Agent runtime` labels removed, the pull request linked.\n2. Tell every in-flight worker what the merge changes for them: a shared file, a migration, a new check, code they must now reuse or delete.\n3. Archive the merged worker's workspace with the \"Stop and archive\" section of its runtime guide.\n4. Launch the tickets this merge unblocked.\n\n## The release pull request\n\nSome repositories publish through release-please: every merge to the default branch opens or updates one release pull request, and merging it tags the version and publishes it. When the repository's rules (`AGENTS.md`) say to merge it after each merge, do it right after the ticket's merge, without a hand-back: no worker owns it.\n\n- **What it looks like.** Title `chore(main): release <version>`, opened by `github-actions`, label `autorelease: pending`, and a diff that only touches the changelog, the manifest and version fields. It is opened with the workflow's own token, so **no CI check runs on it** (only checks from apps such as Vercel, if any) and `mergeStateStatus` is often `UNSTABLE` (`armada merge --no-ticket` accepts it when none of the required checks ran and nothing failed). Both are expected: the publish job runs the repository's checks again before publishing. Anything else in the diff, or a `DIRTY` state, is not expected: stop and tell the owner.\n- **Find it and its head:**\n\n```sh\ngh pr list --state open --label \"autorelease: pending\" --json number,title,headRefOid,mergeStateStatus\n```\n\n- **Merge it** with `armada merge <n> --no-ticket`: no ticket owns it, and no required check runs on it (see \"No ticket\" above). By hand, pin it to that head, like any merge, and without `--delete-branch`:\n\n```sh\ngh pr merge <n> --squash --match-head-commit <full-sha>\n```\n\n- **Check the publish.** After a minute or two the new version is on the registry, for example `npm view <package> version` for an npm package (the package is named in `AGENTS.md` or the release workflow). If it is not, open the Release run (`gh run list --workflow release.yml --limit 3`), fix the cause and re-run its failed jobs: a later push does not publish a version already tagged.\n- Release-please updates the same pull request on each merge to the default branch; one release pull request can carry several merges.\n"
6313
6338
  },
6314
6339
  {
6315
6340
  path: "SKILL.md",
@@ -10491,7 +10516,7 @@ ${attachments.join(`
10491
10516
  };
10492
10517
  }
10493
10518
  // package.json
10494
- var version = "0.2.48";
10519
+ var version = "0.2.49";
10495
10520
 
10496
10521
  // src/attach.ts
10497
10522
  import { resolve } from "node:path";
@@ -14249,8 +14274,6 @@ async function merge(io, config, credentials, a, configPath) {
14249
14274
  throw new UsageError("--ask-owner only asks the owner: it goes with --reason (and --ticket), nothing else");
14250
14275
  if (askOwner && !a.options.reason?.trim())
14251
14276
  throw new UsageError(`--ask-owner needs --reason: armada merge ${number} --ask-owner --reason "<why the owner must see it>"`);
14252
- if (noTicket && a.options.reason !== undefined)
14253
- throw new UsageError("--reason judges a ticket's merge; --no-ticket has none");
14254
14277
  if (wait && a.options["dry-run"])
14255
14278
  throw new UsageError("--wait and --dry-run cannot go together");
14256
14279
  if (!wait && a.options.timeout !== undefined)
@@ -14279,6 +14302,19 @@ async function merge(io, config, credentials, a, configPath) {
14279
14302
  compare: (base, head) => fetchComparison({ ...gh, base, head }),
14280
14303
  diff: (n) => fetchPullDiff({ ...gh, number: n }),
14281
14304
  merge: ghMerge(exec, repoDir, config.github.repository),
14305
+ comment: async (number, body) => {
14306
+ const result = await ghAttempt(exec, repoDir, [
14307
+ "pr",
14308
+ "comment",
14309
+ String(number),
14310
+ "--repo",
14311
+ config.github.repository,
14312
+ "--body",
14313
+ body
14314
+ ]);
14315
+ if (!result.ok)
14316
+ throw new Error(result.message);
14317
+ },
14282
14318
  commit: (sha) => fetchCommit({ ...gh, sha }),
14283
14319
  updateBranch: ghUpdateBranch(exec, repoDir, config.github.repository),
14284
14320
  preview: (sha) => fetchPreview({ ...gh, sha })
@@ -14960,7 +14996,8 @@ var COMMAND_HELP = {
14960
14996
  for, without the lock; a red check or a conflict stops it. A head that
14961
14997
  is the hand-back with only the base merged in counts as the hand-back.
14962
14998
  --no-ticket: a pull request no ticket owns (armada init, a release);
14963
- nothing is written to Linear.
14999
+ on a ticket-named branch, --reason is required and posted on the PR;
15000
+ the ticket and its worker stay unchanged, with nothing written to Linear.
14964
15001
  With [policy] merge_approval, judge each pull request: --reason "<why>"
14965
15002
  merges on its own; --ask-owner --reason "<why>" merges nothing, asks the
14966
15003
  owner (PR, files, CI, preview, screenshots) and prints the approval link.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-vibe-company/armada",
3
- "version": "0.2.48",
3
+ "version": "0.2.49",
4
4
  "type": "module",
5
5
  "description": "Run a fleet of coding agents on one project: the armada command line.",
6
6
  "license": "MIT",