@the-vibe-company/armada 0.2.51 → 0.2.53
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 +4 -4
- package/dist/armada.js +30 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -231,10 +231,10 @@ armada merge 35 --no-ticket # a pull request no ticket owns: armada init's, a re
|
|
|
231
231
|
|
|
232
232
|
`packages/dashboard` is a Next.js app whose main page is the Fleet of the projects registered in its database. With accounts, each person sees the projects of their organization; under the shared password, every project.
|
|
233
233
|
|
|
234
|
-
- **
|
|
235
|
-
- **
|
|
236
|
-
-
|
|
237
|
-
- **Answer** a question
|
|
234
|
+
- **The overview** says first how many agents are blocked and how many wait for your decision, then shows a card per project (progress, blocked, for you, in flight, its coordinator active or idle).
|
|
235
|
+
- **One list** holds every session in flight and every ticket merged today, grouped by state (blocked, waiting for your decision, in progress, ready to merge, merged today) or by project. Each row says why it is in its state (an unanswered question, a red CI, a plan or a merge to approve, a silence…) and where it is from plan to merge. A filter shows one project.
|
|
236
|
+
- **List + preview** shows the selected session beside the list: its state and what to do about it, its step, pull request, CI and last reports.
|
|
237
|
+
- **Answer** a question, approve a plan or decide a merge from the preview pane or the session's page. **Ready to launch** lists the frontier with a Launch button and a profile picker, the routed profile preselected. Neither reaches a worker: each becomes a request in that project's coordinator inbox, signed with the signed-in person's name and address (with accounts) or with the name the viewer gives (under the shared password; remembered in a cookie, default `ARMADA_DASHBOARD_AUTHOR`), and shows as pending until the coordinator carries it out. The dashboard holds no runtime credential.
|
|
238
238
|
- It stays live without a reload, and no page waits for Linear or GitHub. Each project's last reading of Linear and GitHub is kept in the app's Postgres database, and every page and poll reads only that database: the reading, plus the fleet's live data (events, claims, inboxes, coordinator activity), so a recorded report shows within seconds. A reading older than a minute (ten minutes for a project both [webhooks](#webhooks) reached within the last day) is served as is and refreshed in the background, reading only what changed in Linear since and the pull requests; Linear is read whole every 30 minutes at most, and only while someone looks. The top bar says how old the oldest reading on the page is, so a stale view never passes for a live one. A new project shows "reading Linear and GitHub for the first time" for a few seconds.
|
|
239
239
|
- The page polls every 5 s while work is in flight (a worker, a request waiting for the coordinator, a first reading), every 30 s when the fleet is quiet, and not at all while its tab is hidden. The server answers 304 while nothing changed. Answer, Approve and Launch show as sent on the click; a refusal puts the form back with the reason.
|
|
240
240
|
- When that database is unreachable, a banner says so and the view falls back to the last readings the server holds, refreshed from Linear and GitHub.
|
package/dist/armada.js
CHANGED
|
@@ -10344,6 +10344,7 @@ var planIsEmpty = (p) => !p.writes.length && !p.removes.length && !p.links.lengt
|
|
|
10344
10344
|
|
|
10345
10345
|
// ../core/src/status.ts
|
|
10346
10346
|
var STATUS_SCHEMA_VERSION = 1;
|
|
10347
|
+
var MERGED_SHOWN = 10;
|
|
10347
10348
|
function routeOf(config, labels) {
|
|
10348
10349
|
const route = routeProfile(config, labels);
|
|
10349
10350
|
return route ? { profile: route.name, why: describeRoute(route, config) } : null;
|
|
@@ -10462,9 +10463,37 @@ function buildStatus({
|
|
|
10462
10463
|
shippingStage: stageOf.get(ticket.id) ?? null
|
|
10463
10464
|
} : null
|
|
10464
10465
|
})) : null,
|
|
10466
|
+
merged: mergedTickets(m, phaseOf, live),
|
|
10465
10467
|
warnings: [...program.warnings, ...forge?.warnings ?? [], ...extraWarnings]
|
|
10466
10468
|
};
|
|
10467
10469
|
}
|
|
10470
|
+
function mergedTickets(m, inFlight, live) {
|
|
10471
|
+
const out = [];
|
|
10472
|
+
for (const issue of m.program) {
|
|
10473
|
+
if (!m.isLeaf(issue) || inFlight.has(issue.id))
|
|
10474
|
+
continue;
|
|
10475
|
+
const event = freshEvent(issue.id, { live });
|
|
10476
|
+
const fresh = event?.kind === "merge" ? event : null;
|
|
10477
|
+
const merged = issue.prs.filter((p) => p.state === "merged").sort(byMergeTime).at(-1);
|
|
10478
|
+
const pr = merged ?? (fresh ? issue.prs.at(-1) : undefined);
|
|
10479
|
+
if (!pr || !(isDone(issue) || fresh))
|
|
10480
|
+
continue;
|
|
10481
|
+
const mergedAt = fresh?.at ?? merged?.mergedAt ?? issue.completedAt;
|
|
10482
|
+
if (!mergedAt)
|
|
10483
|
+
continue;
|
|
10484
|
+
const spec = m.specOf(issue.id);
|
|
10485
|
+
out.push({
|
|
10486
|
+
id: issue.id,
|
|
10487
|
+
title: issue.title,
|
|
10488
|
+
url: issue.url,
|
|
10489
|
+
spec: spec ? `Spec ${spec.ordinal}` : null,
|
|
10490
|
+
mergedAt,
|
|
10491
|
+
pr: { number: pr.number, url: pr.url }
|
|
10492
|
+
});
|
|
10493
|
+
}
|
|
10494
|
+
return out.sort((a, b) => b.mergedAt.localeCompare(a.mergedAt) || b.id.localeCompare(a.id, "en", { numeric: true })).slice(0, MERGED_SHOWN);
|
|
10495
|
+
}
|
|
10496
|
+
var byMergeTime = (a, b) => (a.mergedAt ?? "").localeCompare(b.mergedAt ?? "") || a.number - b.number;
|
|
10468
10497
|
async function readStatusSources(config, opts) {
|
|
10469
10498
|
const now = opts.now ?? (() => new Date);
|
|
10470
10499
|
const programP = fetchProgram({
|
|
@@ -10653,7 +10682,7 @@ ${attachments.join(`
|
|
|
10653
10682
|
};
|
|
10654
10683
|
}
|
|
10655
10684
|
// package.json
|
|
10656
|
-
var version = "0.2.
|
|
10685
|
+
var version = "0.2.53";
|
|
10657
10686
|
|
|
10658
10687
|
// src/attach.ts
|
|
10659
10688
|
import { resolve } from "node:path";
|