@great-arrow/cli 0.1.42 → 0.1.43
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 +20 -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.43";
|
|
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";
|
|
@@ -16687,6 +16687,16 @@ function normalizeGlance(raw) {
|
|
|
16687
16687
|
const sp = raw2;
|
|
16688
16688
|
return typeof sp.line === "string" && sp.line !== "" && typeof sp.totalCostUsd === "number" && Number.isFinite(sp.totalCostUsd) ? { line: sp.line, totalCostUsd: sp.totalCostUsd } : null;
|
|
16689
16689
|
})(),
|
|
16690
|
+
healthTriage: (() => {
|
|
16691
|
+
const raw2 = obj.healthTriage;
|
|
16692
|
+
if (typeof raw2 !== "object" || raw2 === null) return null;
|
|
16693
|
+
const h = raw2;
|
|
16694
|
+
return typeof h.summaryLine === "string" && h.summaryLine !== "" ? {
|
|
16695
|
+
summaryLine: h.summaryLine,
|
|
16696
|
+
incomplete: h.incomplete === true,
|
|
16697
|
+
goalUrl: typeof h.goalUrl === "string" ? h.goalUrl : null
|
|
16698
|
+
} : null;
|
|
16699
|
+
})(),
|
|
16690
16700
|
...Array.isArray(obj.sections) ? { sections: normalizeTodaySections(obj.sections) } : {},
|
|
16691
16701
|
...Array.isArray(obj.degradedSections) ? {
|
|
16692
16702
|
degradedSections: obj.degradedSections.filter(
|
|
@@ -18113,7 +18123,7 @@ function renderStatus2(payload, plain, apiUrl) {
|
|
|
18113
18123
|
lines.push(c.badge(` ${payload.workspace} `));
|
|
18114
18124
|
lines.push("");
|
|
18115
18125
|
}
|
|
18116
|
-
const hasAny = payload.needsYou.length > 0 || payload.topGoal !== null || payload.integrations.length > 0 || payload.agents.length > 0 || payload.warRoom !== null && payload.warRoom.priorityCount > 0;
|
|
18126
|
+
const hasAny = payload.needsYou.length > 0 || payload.topGoal !== null || payload.integrations.length > 0 || payload.agents.length > 0 || Boolean(payload.healthTriage) || payload.warRoom !== null && payload.warRoom.priorityCount > 0;
|
|
18117
18127
|
if (!hasAny) {
|
|
18118
18128
|
lines.push(
|
|
18119
18129
|
`${c.green("\u2713")} You're all clear \u2014 nothing needs you right now.`
|
|
@@ -18163,6 +18173,14 @@ function renderStatus2(payload, plain, apiUrl) {
|
|
|
18163
18173
|
lines.push(` ${c.dim("\u2192")} ${c.cyan("gad todo list")}`);
|
|
18164
18174
|
lines.push("");
|
|
18165
18175
|
}
|
|
18176
|
+
if (payload.healthTriage) {
|
|
18177
|
+
const h = payload.healthTriage;
|
|
18178
|
+
lines.push(c.bold("Platform health"));
|
|
18179
|
+
lines.push(` ${h.incomplete ? `${c.yellow("!")} ` : ""}${h.summaryLine}`);
|
|
18180
|
+
const url = glanceItemUrl(h.goalUrl, apiUrl);
|
|
18181
|
+
if (url) lines.push(` ${c.dim("\u2192")} ${link("Open the Goal", url)}`);
|
|
18182
|
+
lines.push("");
|
|
18183
|
+
}
|
|
18166
18184
|
if (payload.integrations.length > 0) {
|
|
18167
18185
|
lines.push(c.bold("Stale integrations"));
|
|
18168
18186
|
for (const integration of payload.integrations) {
|