@harborppm/cli 0.99.0 → 0.101.0
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 +3 -1
- package/dist/app.mjs +7035 -5669
- package/lib/cli.mjs +2 -1
- package/lib/format.mjs +16 -0
- package/package.json +1 -1
package/lib/cli.mjs
CHANGED
|
@@ -3015,7 +3015,8 @@ export async function run(argv, io = {}) {
|
|
|
3015
3015
|
const programs = r.programs.filter((p) => nameHas(p.name, words));
|
|
3016
3016
|
const names = new Set(programs.map((p) => p.name));
|
|
3017
3017
|
const blankCharters = (r.blankCharters ?? []).filter((b) => names.has(b.program));
|
|
3018
|
-
|
|
3018
|
+
const hullCheck = (r.hullCheck ?? []).filter((h) => names.has(h.program));
|
|
3019
|
+
return { ...r, programs, blankCharters, hullCheck, steadyHands: [] };
|
|
3019
3020
|
},
|
|
3020
3021
|
);
|
|
3021
3022
|
}
|
package/lib/format.mjs
CHANGED
|
@@ -392,6 +392,22 @@ export function reviewList(r) {
|
|
|
392
392
|
if (blank.length > 8) out.push(` and ${blank.length - 8} more`);
|
|
393
393
|
out.push(' harbor charter "PROJECT" --why "…" writes one.');
|
|
394
394
|
}
|
|
395
|
+
const hull = r.hullCheck ?? [];
|
|
396
|
+
if (hull.length) {
|
|
397
|
+
out.push("", "Hull check: health set by hand better than the work says, three weeks or more:");
|
|
398
|
+
for (const h of hull.slice(0, 8)) {
|
|
399
|
+
out.push(` ${h.project}${h.owner ? ` (${h.owner})` : ""}`);
|
|
400
|
+
out.push(` ${h.text}${h.note ? ` “${h.note}”` : ""}`);
|
|
401
|
+
}
|
|
402
|
+
if (hull.length > 8) out.push(` and ${hull.length - 8} more`);
|
|
403
|
+
out.push(' harbor health auto --project "PROJECT" lets the numbers speak.');
|
|
404
|
+
}
|
|
405
|
+
const steady = r.steadyHands ?? [];
|
|
406
|
+
if (steady.length)
|
|
407
|
+
out.push(
|
|
408
|
+
"",
|
|
409
|
+
`Steady hand${steady.length === 1 ? "" : "s"}: ${steady.join(", ")}. Their calls by hand over three months matched the work, or warned early.`,
|
|
410
|
+
);
|
|
395
411
|
return out.join("\n") + more;
|
|
396
412
|
}
|
|
397
413
|
|