seerepo 1.2.0 → 1.2.1
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/bin/seerepo.js +9 -8
- package/package.json +1 -1
package/bin/seerepo.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// seerepo changes what changed (the last 24 hours, or --since a date)
|
|
8
8
|
// seerepo pages every page of the app: who gets in and what it handles or misses
|
|
9
9
|
// seerepo found how search engines and AI see each public page, and what needs work
|
|
10
|
-
// seerepo health [n] what's worth fixing:
|
|
10
|
+
// seerepo health [n] what's worth fixing: how many things, whether it can ship, and the tasks; with n, that task's prompt
|
|
11
11
|
// seerepo history the project's story: the last 7 days, its pace and its moments
|
|
12
12
|
// seerepo docs [page] the repo's wiki: its tree, or one page in markdown with its sources
|
|
13
13
|
// seerepo open [path] that world in the browser
|
|
@@ -41,7 +41,7 @@ Usage:
|
|
|
41
41
|
seerepo impact <file> What depends on a file: who names it, how many, which pages and processes (--name x, --to file)
|
|
42
42
|
seerepo pages Every page of the app: who gets in and the states it handles or misses
|
|
43
43
|
seerepo found How search engines and AI see each public page, and what needs work
|
|
44
|
-
seerepo health [n] What's worth fixing:
|
|
44
|
+
seerepo health [n] What's worth fixing: how many things, whether it can ship and the tasks; with n, that task's prompt
|
|
45
45
|
seerepo history The project's story: the last 7 days, its pace and its moments
|
|
46
46
|
seerepo docs [page] The repo's wiki: its tree, or a page by its key (1, 2, 2.3) with its sources
|
|
47
47
|
seerepo open [path] Open that world in the browser
|
|
@@ -248,7 +248,7 @@ async function found() {
|
|
|
248
248
|
console.log(lines.join("\n"));
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
// Salud (salud-completa 3.7.2):
|
|
251
|
+
// Salud (salud-completa 3.7.2): how many things to fix, whether it can ship, and the tasks numbered; with a
|
|
252
252
|
// number, that task's prompt alone, to hand to an agent (seerepo health 1 | pbcopy)
|
|
253
253
|
async function health() {
|
|
254
254
|
const repo = await whichRepo();
|
|
@@ -260,17 +260,18 @@ async function health() {
|
|
|
260
260
|
if (!x) die(`${repo.fullName} has ${v.tasks.length} open tasks: ask for one from 1 to ${v.tasks.length}.`);
|
|
261
261
|
return console.log(x.prompt);
|
|
262
262
|
}
|
|
263
|
-
|
|
264
|
-
const
|
|
265
|
-
const
|
|
263
|
+
// One number (decision 198): how many things there are to fix, by how serious, as Salud and the MCP say it; never the score out of 100
|
|
264
|
+
const sev = v.bySeverity;
|
|
265
|
+
const bits = [sev.high ? `${sev.high} serious` : "", sev.medium ? `${sev.medium} moderate` : "", sev.low ? `${sev.low} minor` : ""].filter(Boolean);
|
|
266
|
+
const lines = [`${repo.fullName}: ${v.open ? `${v.open} ${v.open === 1 ? "thing" : "things"} to fix (${new Intl.ListFormat("en", { type: "conjunction" }).format(bits)})` : "nothing to fix"}.`];
|
|
266
267
|
const stops = v.gate.rows.map((x) => ({ tests: "the tests fail", noCi: "the tests don't run on their own", ciUnseen: "the tests haven't been seen running yet", grave: "something serious is open", hidden: `${x.n} pages don't show on Google` })[x.key]);
|
|
267
268
|
lines.push(v.gate.pass ? `You can ship.${stops.length ? ` Not checked yet: ${stops.join("; ")}.` : ""}` : `Don't ship yet: ${stops.join("; ")}.`);
|
|
268
|
-
if (v.plan === "free") lines.push("", `${v.
|
|
269
|
+
if (v.plan === "free") lines.push("", `${v.firstTitle ? `The first: ${v.firstTitle}. How to fix it, the others and their prompts come with a plan` : "Which ones, and their prompts, come with a plan"}: ${BASE}/pricing`);
|
|
269
270
|
else if (!v.tasks.length) lines.push("", "Nothing open.");
|
|
270
271
|
else {
|
|
271
272
|
lines.push("", ...v.tasks.map((x, i) => `${String(i + 1).padStart(2)}. ${x.severity.padEnd(6)} ${x.title}`), "", `seerepo health 1 prints the first one's prompt.`);
|
|
272
273
|
}
|
|
273
|
-
if (v.marked?.length) lines.push("", "Marked by the owner (they
|
|
274
|
+
if (v.marked?.length) lines.push("", "Marked by the owner (they don't count):", ...v.marked.map((x) => ` ${x.title}: ${markSaid(x.mark)}`));
|
|
274
275
|
console.log(lines.join("\n"));
|
|
275
276
|
}
|
|
276
277
|
|