@the-vibe-company/armada 0.2.70 → 0.2.71

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/dist/armada.js +154 -60
  2. package/package.json +1 -1
package/dist/armada.js CHANGED
@@ -10148,6 +10148,7 @@ var init_status = __esm(() => {
10148
10148
  // ../plugins/claude/src/index.ts
10149
10149
  var exports_src = {};
10150
10150
  __export(exports_src, {
10151
+ HEADLESS_VARIABLE: () => HEADLESS_VARIABLE,
10151
10152
  activate: () => activate,
10152
10153
  claudeRuntime: () => claudeRuntime
10153
10154
  });
@@ -10318,6 +10319,7 @@ function claudeRuntime(options = {}, node) {
10318
10319
  ] : request.args;
10319
10320
  const ref = await facilities().launch({
10320
10321
  ...request,
10322
+ env: { [HEADLESS_VARIABLE]: "1", ...request.env },
10321
10323
  command: stream ? "node" : request.command,
10322
10324
  args: stream ? [
10323
10325
  "--input-type=module",
@@ -10396,7 +10398,7 @@ function activate(ctx) {
10396
10398
  const options = ctx.config.runtime?.claude ?? {};
10397
10399
  ctx.register.runtime("claude", claudeRuntime(options));
10398
10400
  }
10399
- var same2 = (a, b) => a.project === b.project && a.ticket === b.ticket && a.session === b.session && a.generation === b.generation && a.handle === b.handle;
10401
+ var HEADLESS_VARIABLE = "ARMADA_DESKTOP_HEADLESS", same2 = (a, b) => a.project === b.project && a.ticket === b.ticket && a.session === b.session && a.generation === b.generation && a.handle === b.handle;
10400
10402
  var init_src = __esm(() => {
10401
10403
  init_driver();
10402
10404
  init_status();
@@ -31696,6 +31698,19 @@ var init_supervisor = __esm(() => {
31696
31698
  return error && typeof error === "object" ? error.code : undefined;
31697
31699
  }
31698
31700
 
31701
+ /** The last line a dying supervisor leaves: the reason, never the configuration or output. */
31702
+ function crash(reason, error) {
31703
+ try {
31704
+ const detail = error instanceof Error ? error.stack || error.message : String(error);
31705
+ const line = new Date().toISOString() + " supervisor exiting: " + reason + ": " + detail + "\n";
31706
+ if (config && config.paths && config.paths.directory)
31707
+ fs.appendFileSync(path.join(config.paths.directory, "supervisor.log"), line, { mode: 0o600 });
31708
+ } catch {}
31709
+ process.exit(1);
31710
+ }
31711
+ process.on("uncaughtException", (error) => crash("uncaught exception", error));
31712
+ process.on("unhandledRejection", (error) => crash("unhandled rejection", error));
31713
+
31699
31714
  function uuid(value) {
31700
31715
  return typeof value === "string" && /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(value);
31701
31716
  }
@@ -32118,6 +32133,9 @@ var init_supervisor = __esm(() => {
32118
32133
  function reply(socket, value) {
32119
32134
  if (socket.destroyed) return;
32120
32135
  const payload = JSON.stringify(value) + "\n";
32136
+ // A peer that already reset the connection (a timed-out or satisfied host
32137
+ // request) surfaces as EPIPE/ECONNRESET here; the socket's error listener
32138
+ // below keeps that a closed connection, never a supervisor crash.
32121
32139
  socket.end(payload);
32122
32140
  }
32123
32141
 
@@ -32134,6 +32152,9 @@ var init_supervisor = __esm(() => {
32134
32152
  maybeCloseServer();
32135
32153
  };
32136
32154
  socket.setEncoding("utf8");
32155
+ // Without this listener one reset peer raises an uncaught error and ends
32156
+ // the supervisor while its process group keeps running (THE-2233).
32157
+ socket.on("error", () => socket.destroy());
32137
32158
  socket.on("close", done);
32138
32159
  socket.on("data", (chunk) => {
32139
32160
  if (replied) return;
@@ -32159,7 +32180,7 @@ var init_supervisor = __esm(() => {
32159
32180
  );
32160
32181
  });
32161
32182
  });
32162
- server.on("error", () => process.exit(1));
32183
+ server.on("error", (error) => crash("socket server error", error));
32163
32184
  server.listen(config.paths.socket, async () => {
32164
32185
  try {
32165
32186
  if (process.platform !== "win32") await fs.promises.chmod(config.paths.socket, 0o600);
@@ -46278,52 +46299,43 @@ function checkpointUsage(checkpoint, documents) {
46278
46299
  }
46279
46300
  return completions;
46280
46301
  }
46281
- function projectUsage(events, zone) {
46282
- const days = new Map;
46283
- const sessions = new Map;
46284
- const turns = new Set;
46285
- const documents = new Map;
46286
- const previous = new Map;
46287
- const reported = new Map;
46288
- const dayAt = (at) => {
46289
- const key = usageTime(at, zone).day;
46290
- let row = days.get(key);
46291
- if (!row) {
46292
- row = { day: key, coordinator: emptyTotals(), workers: emptyTotals(), workerLaunches: 0, workersReported: 0 };
46293
- days.set(key, row);
46294
- }
46295
- return row;
46296
- };
46297
- const sessionAt = (id, kind) => {
46302
+
46303
+ class UsageLedger {
46304
+ #turns = new Set;
46305
+ #documents = new Map;
46306
+ #previous = new Map;
46307
+ #sessions = new Map;
46308
+ #entries = [];
46309
+ #sessionAt(id, kind) {
46298
46310
  const key = `${kind}:${id}`;
46299
- let row = sessions.get(key);
46311
+ let row = this.#sessions.get(key);
46300
46312
  if (!row) {
46301
46313
  row = { session: id, kind, totals: emptyTotals() };
46302
- sessions.set(key, row);
46314
+ this.#sessions.set(key, row);
46303
46315
  }
46304
46316
  return row;
46305
- };
46306
- const launched = (id, at) => {
46307
- const row = sessionAt(id, "worker");
46317
+ }
46318
+ #launched(id, at) {
46319
+ const row = this.#sessionAt(id, "worker");
46308
46320
  if (!row.launchedAt) {
46309
46321
  row.launchedAt = at;
46310
- dayAt(at).workerLaunches++;
46322
+ this.#entries.push({ at, kind: "launch" });
46311
46323
  }
46312
46324
  return row;
46313
- };
46314
- for (const e of events) {
46325
+ }
46326
+ apply(e) {
46315
46327
  if (e.kind === "coordinator.checkpoint") {
46316
46328
  const c = e.payload.checkpoint;
46317
- const derived = checkpointUsage(c, documents);
46329
+ const derived = checkpointUsage(c, this.#documents);
46318
46330
  const completions = e.payload.turn ? [{ turn: e.payload.turn, usage: e.payload.usage ?? "unknown" }] : derived;
46319
46331
  for (const { turn, usage } of completions)
46320
- if (!turns.has(turn.id)) {
46321
- turns.add(turn.id);
46322
- add(dayAt(e.at).coordinator, usage);
46323
- add(sessionAt(turn.session, "coordinator").totals, usage);
46332
+ if (!this.#turns.has(turn.id)) {
46333
+ this.#turns.add(turn.id);
46334
+ this.#entries.push({ at: e.at, kind: "coordinator", usage });
46335
+ add(this.#sessionAt(turn.session, "coordinator").totals, usage);
46324
46336
  }
46325
46337
  if (c && typeof c === "object" && !Array.isArray(c) && c.format === "armada.worker" && c.type === "launch" && typeof c.session === "string") {
46326
- const row = c.step === "launched" ? launched(c.session, e.at) : sessionAt(c.session, "worker");
46338
+ const row = c.step === "launched" ? this.#launched(c.session, e.at) : this.#sessionAt(c.session, "worker");
46327
46339
  if (typeof c.ticket === "string")
46328
46340
  row.ticket = c.ticket;
46329
46341
  if (typeof c.runtime === "string")
@@ -46331,18 +46343,17 @@ function projectUsage(events, zone) {
46331
46343
  }
46332
46344
  }
46333
46345
  if (e.kind === "worker.readopted") {
46334
- launched(e.payload.session, e.at).ticket = e.payload.ticket;
46346
+ this.#launched(e.payload.session, e.at).ticket = e.payload.ticket;
46335
46347
  }
46336
46348
  if (e.kind === "session.usage") {
46337
46349
  const { session, ticket, usage } = e.payload;
46338
- const row = sessionAt(session, "worker");
46350
+ const row = this.#sessionAt(session, "worker");
46339
46351
  row.ticket = ticket;
46340
- const day = dayAt(e.at);
46341
46352
  if (usage === "unknown") {
46342
46353
  row.totals.unknown = 1;
46343
- add(day.workers, usage);
46354
+ this.#entries.push({ at: e.at, kind: "worker", usage });
46344
46355
  } else {
46345
- const prior = previous.get(session);
46356
+ const prior = this.#previous.get(session);
46346
46357
  const delta = { ...usage };
46347
46358
  const cumulative = { ...usage };
46348
46359
  for (const k of fields3) {
@@ -46355,21 +46366,95 @@ function projectUsage(events, zone) {
46355
46366
  cumulative.incomplete = true;
46356
46367
  }
46357
46368
  }
46358
- add(day.workers, delta);
46369
+ this.#entries.push({
46370
+ at: e.at,
46371
+ kind: "worker",
46372
+ usage: delta,
46373
+ ...fields3.some((k) => usage[k] !== null) ? { session } : {}
46374
+ });
46359
46375
  row.totals = emptyTotals();
46360
46376
  add(row.totals, cumulative);
46361
46377
  if (cumulative.incomplete || fields3.some((k) => usage[k] === null))
46362
46378
  row.totals.unknown = 1;
46363
- previous.set(session, cumulative);
46364
- const known = reported.get(day.day) ?? new Set;
46365
- if (fields3.some((k) => usage[k] !== null))
46366
- known.add(session);
46367
- reported.set(day.day, known);
46368
- day.workersReported = known.size;
46379
+ this.#previous.set(session, cumulative);
46369
46380
  }
46370
46381
  }
46371
46382
  }
46372
- return { zone, days: [...days.values()], sessions: [...sessions.values()] };
46383
+ usage(zone) {
46384
+ const days = new Map;
46385
+ const reported = new Map;
46386
+ const dayAt = (at) => {
46387
+ const key = usageTime(at, zone).day;
46388
+ let row = days.get(key);
46389
+ if (!row) {
46390
+ row = { day: key, coordinator: emptyTotals(), workers: emptyTotals(), workerLaunches: 0, workersReported: 0 };
46391
+ days.set(key, row);
46392
+ }
46393
+ return row;
46394
+ };
46395
+ for (const entry of this.#entries) {
46396
+ const day = dayAt(entry.at);
46397
+ if (entry.kind === "launch")
46398
+ day.workerLaunches++;
46399
+ else if (entry.kind === "coordinator")
46400
+ add(day.coordinator, entry.usage);
46401
+ else {
46402
+ add(day.workers, entry.usage);
46403
+ if (entry.session) {
46404
+ const known = reported.get(day.day) ?? new Set;
46405
+ known.add(entry.session);
46406
+ reported.set(day.day, known);
46407
+ day.workersReported = known.size;
46408
+ }
46409
+ }
46410
+ }
46411
+ return {
46412
+ zone,
46413
+ days: [...days.values()],
46414
+ sessions: [...this.#sessions.values()].map((row) => ({
46415
+ ...row,
46416
+ totals: { ...row.totals, models: [...row.totals.models] }
46417
+ }))
46418
+ };
46419
+ }
46420
+ serialize() {
46421
+ return {
46422
+ turns: [...this.#turns],
46423
+ documents: [...this.#documents],
46424
+ previous: [...this.#previous],
46425
+ sessions: [...this.#sessions],
46426
+ entries: this.#entries
46427
+ };
46428
+ }
46429
+ static restore(state) {
46430
+ if (!isObject3(state))
46431
+ throw new Error("usage ledger is not an object");
46432
+ if (!Array.isArray(state.turns) || state.turns.some((t) => typeof t !== "string"))
46433
+ throw new Error("usage ledger turns are not strings");
46434
+ if (!Array.isArray(state.entries) || state.entries.some((e) => !isObject3(e) || typeof e.at !== "string"))
46435
+ throw new Error("usage ledger entries are malformed");
46436
+ const ledger = new UsageLedger;
46437
+ for (const turn of state.turns)
46438
+ ledger.#turns.add(turn);
46439
+ for (const [id, document2] of pairs(state.documents, "documents")) {
46440
+ if (!isObject3(document2) || typeof document2.session !== "string" || !isObject3(document2.models))
46441
+ throw new Error("usage ledger document is malformed");
46442
+ ledger.#documents.set(id, document2);
46443
+ }
46444
+ for (const [session, usage] of pairs(state.previous, "previous")) {
46445
+ if (!isObject3(usage))
46446
+ throw new Error("usage ledger floor is malformed");
46447
+ ledger.#previous.set(session, usage);
46448
+ }
46449
+ for (const [key, row] of pairs(state.sessions, "sessions")) {
46450
+ if (!isObject3(row) || typeof row.session !== "string" || !isObject3(row.totals))
46451
+ throw new Error("usage ledger session is malformed");
46452
+ ledger.#sessions.set(key, row);
46453
+ }
46454
+ for (const entry of state.entries)
46455
+ ledger.#entries.push(entry);
46456
+ return ledger;
46457
+ }
46373
46458
  }
46374
46459
  var fields3, emptyTotals = () => ({
46375
46460
  input: null,
@@ -46379,7 +46464,11 @@ var fields3, emptyTotals = () => ({
46379
46464
  reported: 0,
46380
46465
  unknown: 0,
46381
46466
  models: []
46382
- }), object8 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : undefined;
46467
+ }), object8 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : undefined, isObject3 = (value) => object8(value) !== undefined, pairs = (value, name) => {
46468
+ if (!Array.isArray(value) || value.some((e) => !Array.isArray(e) || e.length !== 2 || typeof e[0] !== "string"))
46469
+ throw new Error(`usage ledger ${name} is not a list of named entries`);
46470
+ return value;
46471
+ };
46383
46472
  var init_usage2 = __esm(() => {
46384
46473
  init_usage_view();
46385
46474
  fields3 = ["input", "output", "cacheRead", "cacheWrite"];
@@ -46395,7 +46484,7 @@ function fold(events) {
46395
46484
  seq = source.seq;
46396
46485
  applyEvent(projects, source.kind === "coordinator.checkpoint" ? source : structuredClone(source));
46397
46486
  }
46398
- return projectTables(projects, seq, events);
46487
+ return projectTables(projects, seq);
46399
46488
  }
46400
46489
  function applyEvent(projects, e) {
46401
46490
  let p = projects.get(e.project);
@@ -46404,6 +46493,7 @@ function applyEvent(projects, e) {
46404
46493
  projects.set(e.project, p);
46405
46494
  }
46406
46495
  applyDelivery(p.deliveries, e);
46496
+ p.usage.apply(e);
46407
46497
  if (e.kind === "inbox.opened" && e.payload.followUp?.code === "delivery_failed")
46408
46498
  p.deliveryFollowUps.add(e.payload.id);
46409
46499
  switch (e.kind) {
@@ -46676,13 +46766,14 @@ function applyEvent(projects, e) {
46676
46766
  }
46677
46767
  recoverFollowUps(p.inbox, e, p.sessions);
46678
46768
  }
46679
- function projectTables(projects, seq, events) {
46769
+ function projectTables(projects, seq) {
46680
46770
  const tables = { seq, projects: Object.create(null) };
46681
46771
  for (const [project, p] of projects) {
46772
+ const tickets = new Map(p.tickets);
46682
46773
  for (const t of p.internal.values()) {
46683
46774
  const labelPhase = t.labels.map((label) => phaseSchema.safeParse(label)).find((result) => result.success)?.data ?? null;
46684
46775
  const phase = t.state === "completed" ? "merged" : t.state === "canceled" ? "released" : labelPhase;
46685
- p.tickets.set(t.id, {
46776
+ tickets.set(t.id, {
46686
46777
  id: t.id,
46687
46778
  title: t.title,
46688
46779
  description: t.description,
@@ -46694,7 +46785,7 @@ function projectTables(projects, seq, events) {
46694
46785
  ...t.source !== undefined ? { source: t.source } : {},
46695
46786
  blockers: t.blockers.map((id) => ({
46696
46787
  id,
46697
- status: p.internal.get(id)?.state ?? p.tickets.get(id)?.status ?? "unstarted"
46788
+ status: p.internal.get(id)?.state ?? tickets.get(id)?.status ?? "unstarted"
46698
46789
  })),
46699
46790
  comments: [...p.comments.get(t.id)?.values() ?? []].sort((a, b) => Date.parse(b.at) - Date.parse(a.at) || b.seq - a.seq).slice(0, 12).map(({ body, author, at }) => ({ body, author, at }))
46700
46791
  });
@@ -46731,7 +46822,7 @@ function projectTables(projects, seq, events) {
46731
46822
  owner: s.owner,
46732
46823
  runtime: s.runtime,
46733
46824
  handle: s.handle,
46734
- title: p.tickets.get(s.ticket)?.title ?? s.ticket,
46825
+ title: tickets.get(s.ticket)?.title ?? s.ticket,
46735
46826
  phase,
46736
46827
  state,
46737
46828
  reason,
@@ -46751,7 +46842,7 @@ function projectTables(projects, seq, events) {
46751
46842
  };
46752
46843
  for (const s of sessions)
46753
46844
  sessionsByState[s.state].push(s);
46754
- const usage = projectUsage(events.filter((e) => e.project === project), p.rules.value.policy?.budget?.zone ?? "UTC");
46845
+ const usage = p.usage.usage(p.rules.value.policy?.budget?.zone ?? "UTC");
46755
46846
  const deliveries = [...p.deliveries.values()].filter((d) => !d.sentAt && sessions.some((s) => s.ticket === d.ticket && s.session === d.session && s.generation === d.generation && !["released", "merged"].includes(s.phase)));
46756
46847
  const failures = deliveries.flatMap((d) => {
46757
46848
  const session = sessions.find((s) => s.ticket === d.ticket && s.session === d.session && s.generation === d.generation);
@@ -46774,7 +46865,7 @@ function projectTables(projects, seq, events) {
46774
46865
  ...usage.days.length ? { usage } : {},
46775
46866
  ...Object.keys(p.readers).length ? { readers: p.readers } : {},
46776
46867
  ...Object.keys(p.readAt).length ? { readAt: p.readAt } : {},
46777
- tickets: [...p.tickets.values()],
46868
+ tickets: [...tickets.values()],
46778
46869
  pullRequests: [...p.prs.values()],
46779
46870
  sessions,
46780
46871
  sessionsByState,
@@ -46788,6 +46879,7 @@ function projectTables(projects, seq, events) {
46788
46879
  return tables;
46789
46880
  }
46790
46881
  var linearUsageCheckpoint, readerCheckpoint, empty = () => ({
46882
+ usage: new UsageLedger,
46791
46883
  rules: emptyRules(),
46792
46884
  readAt: Object.create(null),
46793
46885
  readers: Object.create(null),
@@ -57967,11 +58059,12 @@ You are a worker. You own exactly one ticket, named in your launch brief. You tu
57967
58059
  - **Keep going on setup choices.** When setup needs a choice (an install fallback, a retry, a missing tool), take the safe option, say which in your next report, and go on. Never stop to ask about it.
57968
58060
  - **Stop by impact, not effort.** There is no budget of attempts. Failing tests, many files and layout defects are reasons to keep going. Stop and ask only when the fix breaks a contract another ticket or caller relies on, moves a module's responsibility, or a design choice the ticket does not settle remains; name the interface and who it affects. Never widen the ticket to avoid asking. Decide reversible technical choices yourself and record each one, with its reason, on the ticket and in the pull request.
57969
58061
  - **Work only in your own branch and worktree.** Never touch another agent's checkout, and stop only the processes you started.
58062
+ - **Never drive the owner's desktop.** A local worker runs on the owner's logged-in machine. Never open a window or an app (\`open -a\`, a packaged app's binary), bring one to the front, script System Events (\`osascript\`, AppleScript) or capture the screen (\`screencapture\`). Verify a GUI app headless or offscreen: an Electron window under test is \`new BrowserWindow({ show: false })\` behind a flag (the Armada desktop shell honours \`ARMADA_DESKTOP_HEADLESS=1\`, which a local Claude launch sets in your environment; set it yourself otherwise: no window, no dock icon, its data apart, only the catalog and log it is given), and the assertions go through the app's own HTTP and WebSocket endpoints, as its lifecycle tests do. What needs eyes on a screen goes to the coordinator or the owner as a written procedure in your hand-back.
57970
58063
  - **Shared numbers and names come from \`armada reserve\`, never a guess**: a migration number, a port, a fixture name. \`armada reserve db-migration --next --floor <last number used on main>\` prints the next free number; \`--value <name>\` takes a name; a key alone takes an exclusive resource. \`armada reserve --list\` shows the holders. Reservations end when you release, stay used after merge, and \`armada unreserve <key>\` frees yours early. After a lost answer, list before retrying. If Armada is down, ask the coordinator before choosing.
57971
58064
  - **Long runs go through \`armada job\`, never in your session**: an evaluation, a backfill, a load test. \`armada job start <name> --ticket <id>\` dispatches one of the project's \`[jobs.<name>]\` on its own runner; \`armada job status\` asks the runner, \`armada job list\` reads stored progress, \`armada job stop <id>\` stops it. You only see your own ticket's jobs. Unchanged progress past \`[jobs.<name>] stall_minutes\` (60 by default) alerts the coordinator as \`job-stalled\`; keep reporting meaningful progress. Nothing is stopped for you.
57972
58065
  - **Secrets come from Armada**, never from your launch environment; \`armada secrets\` lists their names. Run commands that need them with \`armada run -- <command>\` (tests, builds, dev servers): the values reach that command only, and its output is masked. A tool that reads a dotenv file gets \`armada secrets export --file <path>\`, at a path git ignores. A secret you need and do not have: \`armada ask --secret <NAME> "<why>"\`; the coordinator sends the owner a link to set it, and tells you when to re-run. Never ask for a value in chat; a value pasted anywhere must be rotated.
57973
58066
  - **Your tool output is your transcript.** Never print environment variables (\`env\`, \`printenv\`, \`echo $VAR\`), process lists with their arguments (\`ps -ef\`, \`ps aux\`, \`/proc/*/environ\`), or credential files, and never run \`armada secrets get\`. Never commit or log a secret. Masking is a safety net, not permission: values under eight characters and encoded values are not masked.
57974
- - **Evidence goes through Armada, not git.** For every visible change, capture screenshots under a gitignored folder, then \`armada attach <ticket> <files|https-urls>... --caption "<what to check>"\`, and link the printed private URLs in the pull request. Images are PNG, JPEG, WebP or GIF, 2 MB each.
58067
+ - **Evidence goes through Armada, not git.** For every visible change, capture screenshots under a gitignored folder (from a headless browser or the app's own offscreen capture, never the owner's screen), then \`armada attach <ticket> <files|https-urls>... --caption "<what to check>"\`, and link the printed private URLs in the pull request. Images are PNG, JPEG, WebP or GIF, 2 MB each.
57975
58068
 
57976
58069
  ## Report vocabulary
57977
58070
 
@@ -62376,7 +62469,7 @@ ${attachments.join(`
62376
62469
  };
62377
62470
  }
62378
62471
  // package.json
62379
- var version2 = "0.2.70";
62472
+ var version2 = "0.2.71";
62380
62473
 
62381
62474
  // src/io.ts
62382
62475
  class UsageError extends Error {
@@ -63796,13 +63889,14 @@ async function preflight(io, branch) {
63796
63889
  const root = io.coordinatorRoot ?? io.cwd;
63797
63890
  if (!branch)
63798
63891
  return "cannot push worker branch: the claim has no branch";
63892
+ const gitTimeoutMs = 20000;
63799
63893
  for (const [action, args] of [
63800
- ["fetch origin", ["ls-remote", "origin", "HEAD"]],
63801
- [`push ${branch}`, ["push", "--dry-run", "origin", `HEAD:refs/heads/${branch}`]]
63894
+ ["ls-remote origin HEAD", ["ls-remote", "origin", "HEAD"]],
63895
+ [`push --dry-run origin HEAD:refs/heads/${branch}`, ["push", "--dry-run", "origin", `HEAD:refs/heads/${branch}`]]
63802
63896
  ]) {
63803
63897
  const result = await io.exec("git", [...args], {
63804
63898
  cwd: root,
63805
- timeoutMs: 1e4,
63899
+ timeoutMs: gitTimeoutMs,
63806
63900
  maxOutputBytes: 16384,
63807
63901
  processGroup: true,
63808
63902
  env: { ...io.env, GIT_TERMINAL_PROMPT: "0" }
@@ -63810,7 +63904,7 @@ async function preflight(io, branch) {
63810
63904
  if (!result)
63811
63905
  return `cannot ${action}: git could not be run`;
63812
63906
  if (result.timedOut)
63813
- return `cannot ${action}: timed out after 10 seconds`;
63907
+ return `cannot ${action}: timed out after ${gitTimeoutMs / 1000} seconds`;
63814
63908
  if (result.outputExceeded)
63815
63909
  return `cannot ${action}: Git output exceeded the check's limit`;
63816
63910
  if (result.code !== 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-vibe-company/armada",
3
- "version": "0.2.70",
3
+ "version": "0.2.71",
4
4
  "type": "module",
5
5
  "description": "Run a fleet of coding agents on one project: the armada command line.",
6
6
  "license": "MIT",