@great-arrow/cli 0.1.25 → 0.1.26
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/dist/index.js +38 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9399,7 +9399,7 @@ function isNodeError(value) {
|
|
|
9399
9399
|
|
|
9400
9400
|
// src/lib/version.ts
|
|
9401
9401
|
var CLI_PACKAGE_NAME = "@great-arrow/cli";
|
|
9402
|
-
var CLI_VERSION = "0.1.
|
|
9402
|
+
var CLI_VERSION = "0.1.26";
|
|
9403
9403
|
var GAD_INSTALL_VERSION = "2026.08.08";
|
|
9404
9404
|
var GAD_INSTALL_MIN_VERSION = "2026.06.22";
|
|
9405
9405
|
var GAD_INSTALL_HEADER = "X-GAD-Install-Version";
|
|
@@ -17287,12 +17287,25 @@ function normalizeGlance(raw) {
|
|
|
17287
17287
|
};
|
|
17288
17288
|
}
|
|
17289
17289
|
}
|
|
17290
|
+
let warRoom = null;
|
|
17291
|
+
if (typeof obj.warRoom === "object" && obj.warRoom !== null) {
|
|
17292
|
+
const w = obj.warRoom;
|
|
17293
|
+
warRoom = {
|
|
17294
|
+
priorityCount: typeof w.priorityCount === "number" ? w.priorityCount : 0,
|
|
17295
|
+
unreadTotal: typeof w.unreadTotal === "number" ? w.unreadTotal : 0,
|
|
17296
|
+
openRequestCount: typeof w.openRequestCount === "number" ? w.openRequestCount : 0,
|
|
17297
|
+
topSender: typeof w.topSender === "string" ? w.topSender : null,
|
|
17298
|
+
newestSender: typeof w.newestSender === "string" ? w.newestSender : null,
|
|
17299
|
+
newestPreview: typeof w.newestPreview === "string" ? w.newestPreview : null
|
|
17300
|
+
};
|
|
17301
|
+
}
|
|
17290
17302
|
return {
|
|
17291
17303
|
workspace: typeof obj.workspace === "string" && obj.workspace !== "" ? obj.workspace : null,
|
|
17292
17304
|
needsYou,
|
|
17293
17305
|
topGoal,
|
|
17294
17306
|
integrations,
|
|
17295
17307
|
agents,
|
|
17308
|
+
warRoom,
|
|
17296
17309
|
urgency: typeof obj.urgency === "number" ? obj.urgency : null,
|
|
17297
17310
|
generatedAt: typeof obj.generatedAt === "string" ? obj.generatedAt : (/* @__PURE__ */ new Date()).toISOString()
|
|
17298
17311
|
};
|
|
@@ -17301,6 +17314,9 @@ function asArray2(value) {
|
|
|
17301
17314
|
return Array.isArray(value) ? value : [];
|
|
17302
17315
|
}
|
|
17303
17316
|
function topSignature(payload) {
|
|
17317
|
+
if (payload.warRoom && payload.warRoom.priorityCount > 0) {
|
|
17318
|
+
return `warroom:${payload.warRoom.newestSender ?? "peer"}`;
|
|
17319
|
+
}
|
|
17304
17320
|
const top = payload.needsYou[0];
|
|
17305
17321
|
if (top) return `needs:${top.kind}:${top.title}`;
|
|
17306
17322
|
const integration = payload.integrations[0];
|
|
@@ -17346,6 +17362,12 @@ function glanceItemUrl(href, apiUrl) {
|
|
|
17346
17362
|
function renderFooter(payload, apiUrl) {
|
|
17347
17363
|
const c = createColor(false);
|
|
17348
17364
|
const lines = [];
|
|
17365
|
+
const wr = payload.warRoom;
|
|
17366
|
+
if (wr && wr.priorityCount > 0) {
|
|
17367
|
+
lines.push(
|
|
17368
|
+
`${c.yellow("!")} ${wr.priorityCount} war-room message${wr.priorityCount === 1 ? "" : "s"} for you${wr.newestSender ? ` \u2014 ${wr.newestSender}` : ""}`
|
|
17369
|
+
);
|
|
17370
|
+
}
|
|
17349
17371
|
for (const item of payload.needsYou.slice(0, 2)) {
|
|
17350
17372
|
lines.push(`${c.yellow("!")} ${item.title}`);
|
|
17351
17373
|
if (item.action) {
|
|
@@ -17425,7 +17447,7 @@ function renderStatus(payload, plain, apiUrl) {
|
|
|
17425
17447
|
lines.push(c.badge(` ${payload.workspace} `));
|
|
17426
17448
|
lines.push("");
|
|
17427
17449
|
}
|
|
17428
|
-
const hasAny = payload.needsYou.length > 0 || payload.topGoal !== null || payload.integrations.length > 0 || payload.agents.length > 0;
|
|
17450
|
+
const hasAny = payload.needsYou.length > 0 || payload.topGoal !== null || payload.integrations.length > 0 || payload.agents.length > 0 || payload.warRoom !== null && payload.warRoom.priorityCount > 0;
|
|
17429
17451
|
if (!hasAny) {
|
|
17430
17452
|
lines.push(
|
|
17431
17453
|
`${c.green("\u2713")} You're all clear \u2014 nothing needs you right now.`
|
|
@@ -17433,6 +17455,20 @@ function renderStatus(payload, plain, apiUrl) {
|
|
|
17433
17455
|
process.stdout.write(brandedBlock("status", lines) + "\n");
|
|
17434
17456
|
return;
|
|
17435
17457
|
}
|
|
17458
|
+
if (payload.warRoom && payload.warRoom.priorityCount > 0) {
|
|
17459
|
+
const wr = payload.warRoom;
|
|
17460
|
+
lines.push(c.bold("War room"));
|
|
17461
|
+
lines.push(
|
|
17462
|
+
` ${c.yellow("!")} ${wr.priorityCount} message${wr.priorityCount === 1 ? "" : "s"} for you${wr.newestSender ? ` \u2014 ${wr.newestSender}` : ""}`
|
|
17463
|
+
);
|
|
17464
|
+
if (wr.newestPreview) {
|
|
17465
|
+
lines.push(` ${c.dim(wr.newestPreview)}`);
|
|
17466
|
+
}
|
|
17467
|
+
lines.push(
|
|
17468
|
+
` ${c.dim("\u2192")} ${c.cyan(glanceItemUrl("/team?tab=war-room", apiUrl) ?? "")}`
|
|
17469
|
+
);
|
|
17470
|
+
lines.push("");
|
|
17471
|
+
}
|
|
17436
17472
|
if (payload.needsYou.length > 0) {
|
|
17437
17473
|
lines.push(c.bold("Needs you"));
|
|
17438
17474
|
for (const item of payload.needsYou) {
|