create-pmos 0.699.0 → 0.701.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/package.json +20 -14
- package/payload/KIT-VERSION +1 -1
- package/payload/planning/evals/eval-calibration.md +1 -1
- package/payload/planning/okrs/health-budgets.md +1 -1
- package/payload/state/discoveries.md +1 -1
- package/workspace/changelog.json +19 -0
- package/workspace/guide/cli.md +8 -0
- package/workspace/lib/jira-cli.js +2 -0
- package/workspace/lib/pmos-verbs.js +3 -0
- package/workspace/lib/ready-check.js +222 -0
- package/workspace/lib/ready-cli.js +100 -0
- package/workspace/lib/tracker-cli.js +43 -4
- package/workspace/lib/tracker-match.js +275 -0
- package/workspace/package-lock.json +2 -2
- package/workspace/package.json +1 -1
- package/workspace/test-lists/ready-for-engineering-check.json +5 -0
- package/workspace/test-lists/tracker-match.json +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-pmos",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.701.0",
|
|
4
4
|
"description": "Scaffold the PMOS portable kit — run the PMOS product-management workflow (initiative → lane-fit spec → contract → build → three gates, with work-type lanes for features, research, maintenance, incidents, and content) entirely inside your own repo, with all state as git-versioned files. Includes `workflow-sweep`, which audits the state every board derives from and separates real defects from work you simply have not done. `create-pmos workspace` also installs + launches the local Terminal Workspace GUI. No database, no network, no telemetry.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"bin": {
|
|
@@ -33,6 +33,25 @@
|
|
|
33
33
|
"audit"
|
|
34
34
|
],
|
|
35
35
|
"pmosChanges": [
|
|
36
|
+
{
|
|
37
|
+
"v": "0.701.0",
|
|
38
|
+
"at": "2026-11-22T10:38:05.886Z",
|
|
39
|
+
"f": 4,
|
|
40
|
+
"prs": [
|
|
41
|
+
{
|
|
42
|
+
"n": 1529,
|
|
43
|
+
"t": "PMOS proposes each unlinked initiative's Jira work under its ✦ (A465)",
|
|
44
|
+
"s": "PMOS proposes each unlinked initiative's Jira work under its ✦ (A465)",
|
|
45
|
+
"k": "new"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"n": 1531,
|
|
49
|
+
"t": "Pmos ready shows what an initiative lacks before it goes to engineering (bet A392)",
|
|
50
|
+
"s": "Pmos ready shows what an initiative lacks before it goes to engineering (bet A392)",
|
|
51
|
+
"k": "new"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
},
|
|
36
55
|
{
|
|
37
56
|
"v": "0.699.0",
|
|
38
57
|
"at": "2026-11-22T10:23:23.766Z",
|
|
@@ -423,19 +442,6 @@
|
|
|
423
442
|
"k": "new"
|
|
424
443
|
}
|
|
425
444
|
]
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
"v": "0.655.0",
|
|
429
|
-
"at": "2026-11-22T02:03:29.259Z",
|
|
430
|
-
"f": 4,
|
|
431
|
-
"prs": [
|
|
432
|
-
{
|
|
433
|
-
"n": 1439,
|
|
434
|
-
"t": "Outcome checks that run themselves",
|
|
435
|
-
"s": "Outcome checks that run themselves",
|
|
436
|
-
"k": "new"
|
|
437
|
-
}
|
|
438
|
-
]
|
|
439
445
|
}
|
|
440
446
|
]
|
|
441
447
|
}
|
package/payload/KIT-VERSION
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Eval calibration log"
|
|
4
4
|
description: "Append-only record of every PM override of an evaluator verdict."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-22T10:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-22T10:38:02Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Health budgets"
|
|
4
4
|
description: "Closed registry of health-budget anchors (D59), edited only by the PM."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-22T10:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-22T10:38:02Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
type: Reference
|
|
3
3
|
title: "Discoveries and friction log"
|
|
4
4
|
description: "Append-only record of what runs discovered and where the process rubbed."
|
|
5
|
-
generated: {by: process:create-pmos, at: "2026-11-22T10:
|
|
5
|
+
generated: {by: process:create-pmos, at: "2026-11-22T10:38:02Z"}
|
|
6
6
|
status: stable
|
|
7
7
|
---
|
|
8
8
|
|
package/workspace/changelog.json
CHANGED
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"v": "0.701.0",
|
|
4
|
+
"at": "2026-11-22T10:38:05.886Z",
|
|
5
|
+
"f": 4,
|
|
6
|
+
"prs": [
|
|
7
|
+
{
|
|
8
|
+
"n": 1529,
|
|
9
|
+
"t": "PMOS proposes each unlinked initiative's Jira work under its ✦ (A465)",
|
|
10
|
+
"s": "PMOS proposes each unlinked initiative's Jira work under its ✦ (A465)",
|
|
11
|
+
"k": "new"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"n": 1531,
|
|
15
|
+
"t": "Pmos ready shows what an initiative lacks before it goes to engineering (bet A392)",
|
|
16
|
+
"s": "Pmos ready shows what an initiative lacks before it goes to engineering (bet A392)",
|
|
17
|
+
"k": "new"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
2
21
|
{
|
|
3
22
|
"v": "0.699.0",
|
|
4
23
|
"at": "2026-11-22T10:23:23.766Z",
|
package/workspace/guide/cli.md
CHANGED
|
@@ -790,11 +790,19 @@ Before a launch date, `pmos launch` lists what is not ready in one place. It rea
|
|
|
790
790
|
- `pmos launch check <initiative> [--date YYYY-MM-DD]` shows the launch date, a verdict (ready, at risk or no data) and each item that is not ready: open tasks (past their date, or due after the launch), tracker tickets still open (with the days since they moved and any block), sign-offs with no answer, and open questions. The launch date is `--date`, else a ◇ milestone named launch, go-live, release or ship, else the committed end, else the last ◇ milestone. With none, the command asks for `--date`. A tracker reading older than 2 days gives a warning.
|
|
791
791
|
- `pmos launch list [--days N]` lists every initiative with a launch in the next N days (14 by default), with its verdict and the number of items not ready.
|
|
792
792
|
|
|
793
|
+
### pmos ready
|
|
794
|
+
|
|
795
|
+
Before the tickets of an initiative go to the engineers, `pmos ready` shows which basics they will need are there. It reads the initiative's record, the PRD and done test the record names, its sign-offs, its held questions and its ticket dry-run. Nothing is blocked, sent or written. You decide when the work goes to engineering.
|
|
796
|
+
|
|
797
|
+
- `pmos ready check <initiative>` lists five basics, each OK, partial, missing or not needed: the problem (a Problem, Intent, Why, Background or Context section), the done test (the `done_test_path` file with at least one check, a Done test or Acceptance criteria section, or the rubric), a design for every state (a design link or a Design section that names the empty, loading and error states; `design: none` when there is no screen), open questions answered (unanswered lines under Open questions, `TBD` lines, held questions and dry-run gaps), and sign-offs listed (the sign-off ledger, or a Sign-offs section; write "none" under it when none is needed).
|
|
798
|
+
- `pmos ready list [--drafted]` lists every open initiative, or only those with a Jira ticket draft, with how many basics each has and which are missing. `--count` prints the number not ready on its last line. `pmos jira pending <initiative>` shows the same result in one line.
|
|
799
|
+
|
|
793
800
|
### pmos tracker
|
|
794
801
|
|
|
795
802
|
- `pmos tracker done [--moved N] [--left N] [--not-found N]` records the time of the read for this repository and the counts of what it found. It moves no item.
|
|
796
803
|
- `pmos tracker status` says when tracker items were last read for this repository.
|
|
797
804
|
- `pmos tracker sync` says how much of this repository's tasks match the last Jira read, as one percent, and lists each task that differs: its state, its done day or its owner. The read already sets the state, the done day (Jira's resolution day) and the owner (Jira's assignee), so what is left is what someone set by hand. Tasks the read could not return are counted apart. `--number` prints the percent alone; `--json` prints all of it. It calls no tracker and writes nothing.
|
|
805
|
+
- `pmos tracker match` lists the initiatives the last Jira read does not cover, and the epic or ticket that most likely holds each one's work. `--number` prints the share of initiatives with tasks that the read covers. `--file` proposes each match under the initiative's ✦ for you to approve; after every read, `pmos tracker done` does the same. It calls no tracker and moves no item.
|
|
798
806
|
|
|
799
807
|
### pmos source
|
|
800
808
|
|
|
@@ -332,6 +332,8 @@ async function run(argv, { say = (s) => console.log(s), cwd = process.cwd(), isT
|
|
|
332
332
|
for (const e of r.epics) lines.push(e.key ? ` epic ${e.group} · ${e.key}` : ` epic ${e.group} · create "${e.create.summary}"`);
|
|
333
333
|
for (const t of r.create) lines.push(` create ${t.ticket} · ${t.summary} · ${t.issuetype} · ${t.priority}`);
|
|
334
334
|
for (const t of r.update) lines.push(` update ${t.ticket} ${t.key} · ${t.summary}`);
|
|
335
|
+
// the hand-over: what an engineer will need that is not there yet (ready-for-engineering-check). Never blocks the push.
|
|
336
|
+
try { const RC = require('./ready-check.js'); const got = RC.read(root, initiative); if (!got.error) lines.push(RC.line(RC.check(got.input), initiative)); } catch { /* no line */ }
|
|
335
337
|
return out(r, lines);
|
|
336
338
|
}
|
|
337
339
|
if (verb === 'record') {
|
|
@@ -60,6 +60,9 @@ const VERBS = Object.freeze({
|
|
|
60
60
|
// Not a pm-os-absorb verb (run: null): launch-readiness-check added it through the same table.
|
|
61
61
|
launch: Object.freeze({ module: 'launch-cli.js', run: null, guide: 'cli.md',
|
|
62
62
|
help: 'pmos launch check|list — what is not ready before a launch date: tasks, tracker tickets, sign-offs, open questions (pmos launch help)' }),
|
|
63
|
+
// Not a pm-os-absorb verb (run: null): ready-for-engineering-check added it through the same table.
|
|
64
|
+
ready: Object.freeze({ module: 'ready-cli.js', run: null, guide: 'cli.md',
|
|
65
|
+
help: 'pmos ready check|list — is an initiative ready for engineering: problem, done test, design for every state, open questions, sign-offs (pmos ready help)' }),
|
|
63
66
|
// Not a pm-os-absorb verb (run: null): tracker-read-freshness added it through the same table.
|
|
64
67
|
tracker: Object.freeze({ module: 'tracker-cli.js', run: null, guide: 'cli.md',
|
|
65
68
|
help: 'pmos tracker done|status|sync — when tracker items were last read, and how much of this repository matches the last Jira read (pmos tracker help)' }),
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* ready-check.js — is this initiative ready for engineering? (initiative ready-for-engineering-check; bet A392, proof T47 in
|
|
3
|
+
* pmos-ideas/proofs). Of 34 initiatives on 2 products, 2 stated a problem, 3 had a done test, 7 a design, 6 open questions, and none
|
|
4
|
+
* had all four. Each basic can be read from the initiative's own files, so PMOS says what is missing before the hand-over.
|
|
5
|
+
* Works on any product built with PMOS: it reads only the initiative's record, the PRD and done test the record names, its sign-offs,
|
|
6
|
+
* its held questions and its ticket dry-run.
|
|
7
|
+
*
|
|
8
|
+
* check(input) → result PURE. input:
|
|
9
|
+
* fm the record's frontmatter (object)
|
|
10
|
+
* body the record's text without frontmatter
|
|
11
|
+
* prd the PRD's text, or null
|
|
12
|
+
* doneTest { path, text } | { path, missing: true } | null the file `done_test_path` names
|
|
13
|
+
* rubric true when the `rubric_path` file exists
|
|
14
|
+
* signoffs [{ id, who, what, state }] | null lib/signoffs.js list; null: this product records none
|
|
15
|
+
* questions [{ text, owner }] held questions (lib/question-batch.js)
|
|
16
|
+
* gaps [{ ticket, q }] open questions the ticket dry-run found
|
|
17
|
+
* read(root, ini) → { title, input } | { error } the I/O. Writes nothing.
|
|
18
|
+
* render(res, { title, id }) → text one block for a terminal or a chat
|
|
19
|
+
* line(res, id) → text one line for the Jira push plan
|
|
20
|
+
*
|
|
21
|
+
* THE RESULT: { verdict: 'ready' | 'not ready', present, needed, basics: [{ key, label, status, why, items? }] }.
|
|
22
|
+
* status: ok | partial | missing | not needed. Nothing blocks: the PM decides. Nothing writes, sends or calls a model. */
|
|
23
|
+
|
|
24
|
+
const BASICS = [
|
|
25
|
+
{ key: 'problem', label: 'Problem' },
|
|
26
|
+
{ key: 'done', label: 'Done test' },
|
|
27
|
+
{ key: 'design', label: 'Design for every state' },
|
|
28
|
+
{ key: 'questions', label: 'Open questions answered' },
|
|
29
|
+
{ key: 'signoffs', label: 'Sign-offs listed' },
|
|
30
|
+
];
|
|
31
|
+
const STATES = ['empty', 'loading', 'error'];
|
|
32
|
+
const STATE_RE = { empty: /\bempty\b|\bzero[- ]state\b|\bno (data|items|results)\b|\bnothing (yet|to show)\b/i, loading: /\bloading\b|\bspinner\b|\bskeleton\b/i, error: /\berror\b|\bfail(s|ed|ure)?\b|\boffline\b/i };
|
|
33
|
+
const H = {
|
|
34
|
+
problem: /^(the )?(problem|intent|why|background|context)\b/i,
|
|
35
|
+
done: /^(the )?(done test|done criteria|acceptance criteria|definition of done)\b/i,
|
|
36
|
+
design: /^(the )?(design|designs|specimens?|mock-?ups?|wireframes?|screens?)\b/i,
|
|
37
|
+
questions: /^(the )?(open questions?|questions?|unknowns?|open issues)\b/i,
|
|
38
|
+
signoffs: /^(the )?(sign-?offs?|approvals?|approvers?)\b/i,
|
|
39
|
+
};
|
|
40
|
+
const DESIGN_KEYS = ['design', 'design_path', 'design_url', 'design_link', 'prototype', 'prototype_path', 'figma', 'canvas', 'mockup'];
|
|
41
|
+
const DESIGN_LINK = /figma\.com\/|claude\.ai\/(code\/)?artifact\/|(^|[\s(/])(prototype|designs?|mockups?|wireframes?)\/[^\s)]+|\.(png|jpe?g|gif|webp|svg)\b/i;
|
|
42
|
+
const NONE_RE = /^\s*(none|no|n\/a|not needed|false)\b/i;
|
|
43
|
+
const ANSWERED = /\[x\]|✓|✔|\banswer(ed)?\s*:|^\s*a\s*:|→|->|\b(answered|decided|resolved|closed)\b|~~/i;
|
|
44
|
+
const TBD = /\bTBD\b|\?\?\?/;
|
|
45
|
+
const isObj = (v) => !!v && typeof v === 'object' && !Array.isArray(v);
|
|
46
|
+
const isStr = (v) => typeof v === 'string' && v.trim() !== '';
|
|
47
|
+
const one = (v, n = 160) => String(v == null ? '' : v).replace(/\s+/g, ' ').trim().slice(0, n);
|
|
48
|
+
const stripFm = (text) => String(text || '').replace(/^---\n[\s\S]*?\n---\n?/, '');
|
|
49
|
+
|
|
50
|
+
/** The sections of a markdown text: [{ head, text }]. Text before the first heading has head ''. PURE. */
|
|
51
|
+
function sectionsOf(text) {
|
|
52
|
+
const out = [{ head: '', lines: [] }];
|
|
53
|
+
let fence = false;
|
|
54
|
+
for (const l of String(text || '').split('\n')) {
|
|
55
|
+
if (/^\s*(```|~~~)/.test(l)) fence = !fence;
|
|
56
|
+
const m = !fence && /^#{1,6}\s+(.+?)\s*#*\s*$/.exec(l);
|
|
57
|
+
if (m) out.push({ head: m[1].replace(/[*_`]/g, '').trim(), lines: [] });
|
|
58
|
+
else out[out.length - 1].lines.push(l);
|
|
59
|
+
}
|
|
60
|
+
return out.map((s) => ({ head: s.head, text: s.lines.join('\n').trim() }));
|
|
61
|
+
}
|
|
62
|
+
const sectionsNamed = (secs, re) => secs.filter((s) => s.head && re.test(s.head));
|
|
63
|
+
/** A section with at least one sentence: some words, not only a link or a placeholder. */
|
|
64
|
+
const hasProse = (t) => /[\p{L}]{2,}(\s+[\p{L}\d'’,-]+){2,}/u.test(String(t || '').replace(/<!--[\s\S]*?-->/g, '').replace(/\b(TBD|TODO)\b/g, ''));
|
|
65
|
+
|
|
66
|
+
function problemOf(fm, secs) {
|
|
67
|
+
if (isStr(fm.problem)) return { status: 'ok', why: 'the record states it' };
|
|
68
|
+
const s = secs.find((x) => H.problem.test(x.head) && hasProse(x.text));
|
|
69
|
+
if (s) return { status: 'ok', why: `section "${one(s.head, 40)}"` };
|
|
70
|
+
return { status: 'missing', why: 'add a Problem section: who has the problem and what it costs them' };
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function doneOf(fm, secs, doneTest, rubric, checksOf) {
|
|
74
|
+
if (doneTest && !doneTest.missing) {
|
|
75
|
+
let n = 0; try { n = checksOf(doneTest.text).length; } catch { n = 0; }
|
|
76
|
+
if (n) return { status: 'ok', why: `${doneTest.path}, ${n} ${n === 1 ? 'check' : 'checks'}` };
|
|
77
|
+
}
|
|
78
|
+
const s = secs.find((x) => H.done.test(x.head) && hasProse(x.text));
|
|
79
|
+
if (s) return { status: 'ok', why: `section "${one(s.head, 40)}"` };
|
|
80
|
+
if (rubric) return { status: 'ok', why: `the rubric ${one(fm.rubric_path, 80)}` };
|
|
81
|
+
if (doneTest && doneTest.missing) return { status: 'missing', why: `done_test_path names ${doneTest.path}, but there is no such file` };
|
|
82
|
+
if (doneTest) return { status: 'missing', why: `${doneTest.path} has no check: add one row per check, with how to check it` };
|
|
83
|
+
return { status: 'missing', why: 'add the checks an engineer must pass, each with how to check it' };
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function designOf(fm, secs, all) {
|
|
87
|
+
const k = DESIGN_KEYS.find((x) => isStr(fm[x]) || fm[x] === false);
|
|
88
|
+
if (k && (fm[k] === false || NONE_RE.test(String(fm[k])))) return { status: 'not needed', why: `${k}: ${one(String(fm[k]), 100)}` };
|
|
89
|
+
if (!k && isStr(fm.surface_check) && /\bno (product |new |user-facing )?(surface|screen|ui)\b/i.test(fm.surface_check)) return { status: 'not needed', why: 'the record says it has no screen' };
|
|
90
|
+
const sec = sectionsNamed(secs, H.design).filter((x) => hasProse(x.text) || DESIGN_LINK.test(x.text));
|
|
91
|
+
const link = (all.match(DESIGN_LINK) || [])[0];
|
|
92
|
+
if (!k && !sec.length && !link) return { status: 'missing', why: 'link the design, or write design: none when there is no screen' };
|
|
93
|
+
const from = k ? `${k}: ${one(String(fm[k]), 60)}` : sec.length ? `section "${one(sec[0].head, 40)}"` : `link ${one(link, 60)}`;
|
|
94
|
+
// the states are read where the design is described: the key, the design sections and the lines that link a design
|
|
95
|
+
const linkLines = all.split('\n').filter((l) => DESIGN_LINK.test(l));
|
|
96
|
+
const text = [k ? String(fm[k]) : '', ...sec.map((x) => x.head + '\n' + x.text), ...linkLines].join('\n');
|
|
97
|
+
const missing = STATES.filter((s) => !STATE_RE[s].test(text));
|
|
98
|
+
const and = (xs) => (xs.length === 1 ? xs[0] : xs.slice(0, -1).join(', ') + ' and ' + xs[xs.length - 1]);
|
|
99
|
+
if (missing.length) return { status: 'partial', why: `${from}; the ${and(missing)} ${missing.length === 1 ? 'state is' : 'states are'} not named` };
|
|
100
|
+
return { status: 'ok', why: `${from}; empty, loading and error states named` };
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function questionsOf(secs, questions, gaps) {
|
|
104
|
+
const open = [];
|
|
105
|
+
for (const s of sectionsNamed(secs, H.questions)) {
|
|
106
|
+
for (const l of s.text.split('\n')) {
|
|
107
|
+
const m = /^\s*(?:[-*+]|\d+[.)])\s+(?:\[ \]\s*)?(.+)$/.exec(l);
|
|
108
|
+
if (!m || ANSWERED.test(l) || NONE_RE.test(m[1])) continue;
|
|
109
|
+
open.push(one(m[1]));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
for (const s of secs) {
|
|
113
|
+
if (H.questions.test(s.head)) continue;
|
|
114
|
+
for (const l of s.text.split('\n')) if (TBD.test(l) && !ANSWERED.test(l)) open.push(one(l.replace(/^\s*(?:[-*+]|\d+[.)]|\|)\s*/, '')));
|
|
115
|
+
}
|
|
116
|
+
for (const q of questions || []) if (isObj(q) && q.text) open.push(one(q.text) + (q.owner ? ` (${one(q.owner, 40)})` : ''));
|
|
117
|
+
for (const g of gaps || []) if (isObj(g) && g.q) open.push(one(g.q) + (g.ticket ? ` (${one(g.ticket, 20)})` : ''));
|
|
118
|
+
const uniq = [...new Set(open.filter(Boolean))];
|
|
119
|
+
if (!uniq.length) return { status: 'ok', why: 'none open' };
|
|
120
|
+
return { status: 'missing', why: `${uniq.length} open`, items: uniq };
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
function signoffsOf(secs, signoffs) {
|
|
124
|
+
const live = (signoffs || []).filter((s) => isObj(s) && s.state !== 'dropped');
|
|
125
|
+
const waiting = live.filter((s) => s.state === 'open');
|
|
126
|
+
if (waiting.length) return { status: 'partial', why: `${waiting.length} with no answer`, items: waiting.map((s) => `${one(s.who, 60)}: ${one(s.what, 120)}`) };
|
|
127
|
+
if (live.length) return { status: 'ok', why: `${live.length} answered` };
|
|
128
|
+
const s = sectionsNamed(secs, H.signoffs).find((x) => x.text.trim());
|
|
129
|
+
if (s && NONE_RE.test(s.text.replace(/^\s*[-*+]\s*/, ''))) return { status: 'not needed', why: `section "${one(s.head, 40)}" says none is needed` };
|
|
130
|
+
if (s) return { status: 'ok', why: `section "${one(s.head, 40)}"` };
|
|
131
|
+
return { status: 'missing', why: 'name who outside the team must say yes (pmos signoff ask), or write "none" under a Sign-offs heading' };
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** Is this initiative ready for engineering? PURE. */
|
|
135
|
+
function check(input = {}) {
|
|
136
|
+
const fm = isObj(input.fm) ? input.fm : {};
|
|
137
|
+
const body = stripFm(input.body);
|
|
138
|
+
const prd = isStr(input.prd) ? stripFm(input.prd) : '';
|
|
139
|
+
const secs = [...sectionsOf(body), ...sectionsOf(prd)];
|
|
140
|
+
const checksOf = input.checksOf || require('./ticket-acceptance.js').checksOf;
|
|
141
|
+
const got = {
|
|
142
|
+
problem: problemOf(fm, secs),
|
|
143
|
+
done: doneOf(fm, secs, input.doneTest || null, !!input.rubric, checksOf),
|
|
144
|
+
design: designOf(fm, secs, body + '\n' + prd),
|
|
145
|
+
questions: questionsOf(secs, input.questions, input.gaps),
|
|
146
|
+
signoffs: signoffsOf(secs, input.signoffs),
|
|
147
|
+
};
|
|
148
|
+
const basics = BASICS.map((b) => ({ key: b.key, label: b.label, ...got[b.key] }));
|
|
149
|
+
const needed = basics.filter((b) => b.status !== 'not needed').length;
|
|
150
|
+
const present = basics.filter((b) => b.status === 'ok').length;
|
|
151
|
+
return { verdict: present === needed ? 'ready' : 'not ready', present, needed, basics };
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const MARK = { ok: '✓', partial: '◐', missing: '○', 'not needed': '–' };
|
|
155
|
+
const gapsOf = (res) => res.basics.filter((b) => b.status === 'missing' || b.status === 'partial');
|
|
156
|
+
|
|
157
|
+
/** One block for a terminal or a chat. */
|
|
158
|
+
function render(res, { title = '', id = '' } = {}) {
|
|
159
|
+
const name = title || id;
|
|
160
|
+
const out = [res.verdict === 'ready' ? `${name}: ready for engineering (${res.present} of ${res.needed}).`
|
|
161
|
+
: `${name}: ${res.present} of ${res.needed} basics are there. Nothing is blocked; you decide whether it goes to engineering now.`];
|
|
162
|
+
out.push('');
|
|
163
|
+
for (const b of res.basics) {
|
|
164
|
+
out.push(`${MARK[b.status]} ${b.label} | ${b.status === 'ok' ? b.why : b.status + ': ' + b.why}`);
|
|
165
|
+
for (const x of (b.items || []).slice(0, 8)) out.push(` ${x}`);
|
|
166
|
+
if ((b.items || []).length > 8) out.push(` and ${b.items.length - 8} more`);
|
|
167
|
+
}
|
|
168
|
+
return out.join('\n');
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** One line for the Jira push plan. */
|
|
172
|
+
function line(res, id) {
|
|
173
|
+
if (res.verdict === 'ready') return `Ready for engineering: ${res.present} of ${res.needed}.`;
|
|
174
|
+
return `Ready for engineering: ${res.present} of ${res.needed}. Missing: ${gapsOf(res).map((b) => b.label.toLowerCase()).join(', ')}. See pmos ready check ${id}`;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
function readText(root, rel) {
|
|
178
|
+
const path = require('path'), fs = require('fs');
|
|
179
|
+
if (!isStr(rel)) return null;
|
|
180
|
+
const base = path.resolve(root);
|
|
181
|
+
for (const r of [rel.trim(), path.join('pmos', rel.trim())]) {
|
|
182
|
+
const abs = path.resolve(base, r.replace(/^\/+/, ''));
|
|
183
|
+
if (abs !== base && !abs.startsWith(base + path.sep)) continue;
|
|
184
|
+
try { return fs.readFileSync(abs, 'utf8'); } catch { /* next */ }
|
|
185
|
+
}
|
|
186
|
+
return null;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
/** Every held question of the repository, read once (a list passes it to each read). */
|
|
190
|
+
function heldAll(root, o = {}) {
|
|
191
|
+
try { const { ctx, w } = o.ctx ? o : require('./stage-read.js').cliCtx(root); return require('./routes-proposals.js').heldOf(ctx, w); } catch { return []; }
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/** Read one initiative's files. Writes nothing. o: { ctx, w } (lib/stage-read.js cliCtx) or { held } (heldAll) for the held questions. */
|
|
195
|
+
function read(root, ini, o = {}) {
|
|
196
|
+
const fs = require('fs');
|
|
197
|
+
const PT = require('./plan-tree.js');
|
|
198
|
+
const file = PT.recordPath(root, ini);
|
|
199
|
+
if (!file) return { error: `no initiative ${ini}` };
|
|
200
|
+
let text = '';
|
|
201
|
+
try { text = fs.readFileSync(file, 'utf8'); } catch { return { error: `the record of ${ini} could not be read` }; }
|
|
202
|
+
const JT = require('./jira-tickets.js');
|
|
203
|
+
const fm = JT.recordFm(root, ini) || {};
|
|
204
|
+
const prdRel = JT.prdOf(fm);
|
|
205
|
+
const prd = prdRel ? readText(root, prdRel) : null;
|
|
206
|
+
let doneTest = null;
|
|
207
|
+
if (isStr(fm.done_test_path)) {
|
|
208
|
+
const t = readText(root, fm.done_test_path);
|
|
209
|
+
doneTest = t == null ? { path: fm.done_test_path.trim(), missing: true } : { path: fm.done_test_path.trim(), text: t };
|
|
210
|
+
}
|
|
211
|
+
const rubric = isStr(fm.rubric_path) && readText(root, fm.rubric_path) != null;
|
|
212
|
+
let signoffs = null, gaps = [], questions = [];
|
|
213
|
+
try { const SO = require('./signoffs.js'); signoffs = SO.list(SO.fileOf(JT.stateDirOf(root)), { ini }); } catch { signoffs = null; }
|
|
214
|
+
try { gaps = JT.dryRunGaps(root, ini) || []; } catch { gaps = []; }
|
|
215
|
+
try {
|
|
216
|
+
const held = (Array.isArray(o.held) ? o.held : heldAll(root, o)).filter((h) => h.ini === ini);
|
|
217
|
+
questions = require('./question-batch.js').questionsOf(held, { pm: 'PM' });
|
|
218
|
+
} catch { questions = []; }
|
|
219
|
+
return { title: isStr(fm.title) ? fm.title.trim() : ini, input: { fm, body: text, prd, doneTest, rubric, signoffs, questions, gaps } };
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
module.exports = { BASICS, STATES, check, render, line, read, heldAll, sectionsOf };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* ready-cli.js — `pmos ready …`: is an initiative ready for engineering? (initiative ready-for-engineering-check, lib/ready-check.js).
|
|
3
|
+
* pmos ready check <initiative> [--json] the five basics: problem, done test, design for every state, open questions, sign-offs
|
|
4
|
+
* pmos ready list [--drafted] [--count] [--json] every open initiative (only those with a Jira ticket draft with --drafted)
|
|
5
|
+
* The repository is the one this terminal is in (or --root). Read-only: it blocks nothing, sends nothing and writes no record.
|
|
6
|
+
* Exit codes: 0 done, 1 refused (no such initiative), 2 usage. */
|
|
7
|
+
const path = require('path');
|
|
8
|
+
const { execFileSync } = require('child_process');
|
|
9
|
+
const RC = require('./ready-check.js');
|
|
10
|
+
|
|
11
|
+
const COMMANDS = { ready: ['check', 'list'] };
|
|
12
|
+
const USAGE = [
|
|
13
|
+
'usage: pmos ready check|list — is an initiative ready for engineering?',
|
|
14
|
+
' pmos ready check <initiative> the five basics: problem, done test, design for every state, open questions answered, sign-offs listed',
|
|
15
|
+
' pmos ready list [--drafted] every open initiative and how many basics it has (--drafted: only those with a Jira ticket draft)',
|
|
16
|
+
' --count prints the number not ready on its last line',
|
|
17
|
+
' every command: [--json] [--root <repository>]',
|
|
18
|
+
'Read-only: nothing is blocked. You decide when the work goes to engineering.',
|
|
19
|
+
];
|
|
20
|
+
|
|
21
|
+
function parseArgs(argv) {
|
|
22
|
+
const out = { _: [] };
|
|
23
|
+
for (let i = 0; i < argv.length; i++) {
|
|
24
|
+
const t = argv[i];
|
|
25
|
+
if (!t.startsWith('--')) { out._.push(t); continue; }
|
|
26
|
+
const eq = t.indexOf('=');
|
|
27
|
+
const key = eq > 0 ? t.slice(2, eq) : t.slice(2);
|
|
28
|
+
if (['json', 'help', 'drafted', 'count'].includes(key)) out[key] = true;
|
|
29
|
+
else if (eq > 0) out[key] = t.slice(eq + 1);
|
|
30
|
+
else if (argv[i + 1] !== undefined) out[key] = argv[++i];
|
|
31
|
+
else out[key] = '';
|
|
32
|
+
}
|
|
33
|
+
return out;
|
|
34
|
+
}
|
|
35
|
+
function repoRoot(cwd) {
|
|
36
|
+
try { return execFileSync('git', ['rev-parse', '--show-toplevel'], { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }).trim() || cwd; }
|
|
37
|
+
catch { return cwd; }
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** The open initiatives of a repository: every record the engine lists, less the stopped and accepted ones. */
|
|
41
|
+
function openIds(root) {
|
|
42
|
+
const d = require('./initiative-rows.js').deriveNow(root);
|
|
43
|
+
if (!d.ok) return { error: d.error || 'the initiative records could not be read' };
|
|
44
|
+
return { ids: (d.rows || []).filter((r) => r && r.ok !== false && !r.stopped && !r.accepted).map((r) => r.id) };
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function run(argv, { say = console.log, cwd = process.cwd() } = {}) {
|
|
48
|
+
const a = parseArgs(argv[0] === 'ready' ? argv.slice(1) : argv);
|
|
49
|
+
const sub = a._[0];
|
|
50
|
+
const fail = (error, code = 1) => { if (a.json) say(JSON.stringify({ ok: false, error })); else say('✗ ' + error); return code; };
|
|
51
|
+
if (!sub || a.help || sub === 'help') { USAGE.forEach((l) => say(l)); return sub || a.help ? 0 : 2; }
|
|
52
|
+
if (!COMMANDS.ready.includes(sub)) { say(`✗ pmos ready ${sub} is not a command`); USAGE.forEach((l) => say(l)); return 2; }
|
|
53
|
+
for (const k of Object.keys(a)) if (!['_', 'json', 'help', 'root', 'drafted', 'count'].includes(k)) return fail(`unknown option --${k}`, 2);
|
|
54
|
+
if (sub === 'check' && (a.drafted || a.count)) return fail('--drafted and --count are options of list', 2);
|
|
55
|
+
const root = a.root ? path.resolve(cwd, a.root) : repoRoot(cwd);
|
|
56
|
+
const SR = require('./stage-read.js');
|
|
57
|
+
const { w, ctx } = SR.cliCtx(root);
|
|
58
|
+
|
|
59
|
+
if (sub === 'check') {
|
|
60
|
+
const id = a._[1];
|
|
61
|
+
if (!id || a._.length > 2) { say('usage: pmos ready check <initiative> [--json]'); return 2; }
|
|
62
|
+
const got = RC.read(root, id, { ctx, w });
|
|
63
|
+
if (got.error) return fail(got.error);
|
|
64
|
+
const res = RC.check(got.input);
|
|
65
|
+
if (a.json) { say(JSON.stringify({ ok: true, initiative: id, title: got.title, ...res })); return 0; }
|
|
66
|
+
say(RC.render(res, { title: got.title, id }));
|
|
67
|
+
return 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// list
|
|
71
|
+
let ids;
|
|
72
|
+
if (a.drafted) {
|
|
73
|
+
try { ids = require('./jira-tickets.js').draftedInitiatives(root); } catch { ids = []; }
|
|
74
|
+
} else {
|
|
75
|
+
const o = openIds(root);
|
|
76
|
+
if (o.error) return fail(o.error);
|
|
77
|
+
ids = o.ids;
|
|
78
|
+
}
|
|
79
|
+
const rows = [];
|
|
80
|
+
const held = RC.heldAll(root, { ctx, w });
|
|
81
|
+
for (const id of ids) {
|
|
82
|
+
let got; try { got = RC.read(root, id, { held }); } catch { continue; }
|
|
83
|
+
if (!got || got.error) continue;
|
|
84
|
+
const res = RC.check(got.input);
|
|
85
|
+
rows.push({ initiative: id, title: got.title, verdict: res.verdict, present: res.present, needed: res.needed,
|
|
86
|
+
missing: res.basics.filter((b) => b.status === 'missing' || b.status === 'partial').map((b) => b.key) });
|
|
87
|
+
}
|
|
88
|
+
rows.sort((x, y) => (x.present / (x.needed || 1)) - (y.present / (y.needed || 1)) || x.initiative.localeCompare(y.initiative));
|
|
89
|
+
const notReady = rows.filter((r) => r.verdict !== 'ready').length;
|
|
90
|
+
const share = rows.length ? Math.round(((rows.length - notReady) / rows.length) * 1000) / 1000 : null;
|
|
91
|
+
if (a.json) { say(JSON.stringify({ ok: true, drafted: !!a.drafted, total: rows.length, ready: rows.length - notReady, notReady, share, initiatives: rows })); return 0; }
|
|
92
|
+
if (!rows.length) say(a.drafted ? 'No initiative has a Jira ticket draft.' : 'No open initiative.');
|
|
93
|
+
const LABEL = Object.fromEntries(RC.BASICS.map((b) => [b.key, b.label.toLowerCase()]));
|
|
94
|
+
for (const r of rows) say(`[ready-check] ${r.initiative} · ${r.title} · ${r.present} of ${r.needed}${r.missing.length ? ' · missing: ' + r.missing.map((k) => LABEL[k]).join(', ') : ' · ready'}`);
|
|
95
|
+
if (a.count) say(String(notReady));
|
|
96
|
+
else if (rows.length) say(`${rows.length - notReady} of ${rows.length} ready for engineering. See one with pmos ready check <initiative>.`);
|
|
97
|
+
return 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
module.exports = { run, COMMANDS, USAGE };
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
* pmos tracker done [--moved N] [--left N] [--not-found N] [--json]
|
|
5
5
|
* pmos tracker status [--json]
|
|
6
6
|
* pmos tracker sync [--json | --number] how much of PMOS matches the last Jira read here (initiative tracker-dates-owners-sync, A439)
|
|
7
|
+
* pmos tracker match [--json | --number | --file] the initiatives the Jira read does not cover, and the epic or ticket that most likely
|
|
8
|
+
* holds each one's work (initiative link-tracker-work, A465; lib/tracker-match.js). --file files them
|
|
9
|
+
* under each initiative's ✦ for the PM's ✓; `done` files them after every read
|
|
7
10
|
* The repository is the one this terminal is in. The record is kept in the per-user runtime folder (lib/tracker-read.js),
|
|
8
11
|
* never in a repository. This command calls no tracker and moves no item.
|
|
9
12
|
*/
|
|
@@ -11,14 +14,16 @@ const { execFileSync } = require('child_process');
|
|
|
11
14
|
const stateRoot = require('./state-root');
|
|
12
15
|
const TR = require('./tracker-read.js');
|
|
13
16
|
|
|
14
|
-
const COMMANDS = { tracker: ['done', 'status', 'sync'] };
|
|
17
|
+
const COMMANDS = { tracker: ['done', 'status', 'sync', 'match'] };
|
|
15
18
|
const USAGE = [
|
|
16
19
|
'usage: pmos tracker done|status — when tracker items were last read for this repository',
|
|
17
20
|
' pmos tracker done [--moved N] [--left N] [--not-found N] the tracker-refresh skill runs this as its last step',
|
|
18
21
|
' pmos tracker status when the last read finished, and what it found',
|
|
19
22
|
' pmos tracker sync [--number] how much of PMOS matches the last Jira read: state, done day, owner',
|
|
23
|
+
' pmos tracker match [--number | --file] the initiatives the Jira read does not cover, and the epic or ticket',
|
|
24
|
+
' that most likely holds their work; --file proposes it under each ✦',
|
|
20
25
|
' every command: [--json]',
|
|
21
|
-
'This command never calls a tracker and moves no item.',
|
|
26
|
+
'This command never calls a tracker and moves no item. Only the PM\'s ✓ links a proposed match.',
|
|
22
27
|
];
|
|
23
28
|
|
|
24
29
|
function parseArgs(argv) {
|
|
@@ -28,7 +33,7 @@ function parseArgs(argv) {
|
|
|
28
33
|
if (!t.startsWith('--')) { out._.push(t); continue; }
|
|
29
34
|
const eq = t.indexOf('=');
|
|
30
35
|
const key = eq > 0 ? t.slice(2, eq) : t.slice(2);
|
|
31
|
-
if (key === 'json' || key === 'help' || key === 'number') out[key] = true;
|
|
36
|
+
if (key === 'json' || key === 'help' || key === 'number' || key === 'file') out[key] = true;
|
|
32
37
|
else if (eq > 0) out[key] = t.slice(eq + 1);
|
|
33
38
|
else if (argv[i + 1] !== undefined) out[key] = argv[++i];
|
|
34
39
|
else out[key] = '';
|
|
@@ -59,10 +64,16 @@ function run(argv, { say = console.log, env = process.env, stateDir, cwd = proce
|
|
|
59
64
|
counts[key] = n;
|
|
60
65
|
}
|
|
61
66
|
const rec = TR.write(dir, root, counts, now());
|
|
62
|
-
|
|
67
|
+
// link-tracker-work (A465): after each read, the initiatives the read does not cover get their likely epic or ticket under the ✦
|
|
68
|
+
let m = null;
|
|
69
|
+
try { m = require('./tracker-match.js').file(root); } catch (e) { m = { ok: false, error: String((e && e.message) || e), filed: [] }; }
|
|
70
|
+
logMatch(root, m);
|
|
71
|
+
const n = m && m.ok ? m.filed.length : 0;
|
|
72
|
+
out({ ok: true, ...rec, matched: n }, `tracker items read at ${rec.read_at} for ${rec.root}. The freshness line shows it.${n ? ` PMOS proposes the Jira work of ${n} initiative${n === 1 ? '' : 's'} under their ✦.` : ''}`);
|
|
63
73
|
return 0;
|
|
64
74
|
}
|
|
65
75
|
if (sub === 'sync') return sync(root, a, say);
|
|
76
|
+
if (sub === 'match') return match(root, a, say);
|
|
66
77
|
const rec = TR.read(dir, root);
|
|
67
78
|
out({ ok: true, record: rec }, rec ? `tracker items last read at ${rec.read_at} (moved ${rec.moved ?? '?'}, left ${rec.left ?? '?'}, not found ${rec.not_found ?? '?'})` : 'tracker items not read yet for this repository');
|
|
68
79
|
return 0;
|
|
@@ -84,4 +95,32 @@ function sync(root, a, say) {
|
|
|
84
95
|
return 0;
|
|
85
96
|
}
|
|
86
97
|
|
|
98
|
+
/** One `[tracker-match]` line per run (the health log of link-tracker-work). */
|
|
99
|
+
function logMatch(root, m) {
|
|
100
|
+
const s = (m && m.scan) || {};
|
|
101
|
+
console.log(`[tracker-match] root=${root} with_tasks=${s.withTasks ?? 'none'} linked=${s.linked ?? 'none'} pct=${s.pct == null ? 'none' : s.pct} filed=${m && m.ok ? m.filed.length : 0}${m && !m.ok && m.error ? ' error=' + JSON.stringify(m.error) : ''}`);
|
|
102
|
+
}
|
|
103
|
+
/** `pmos tracker match`: the initiatives the Jira read does not cover, and their likely tracker work (lib/tracker-match.js). Reads the
|
|
104
|
+
* task ledger, the records and the stored Jira reads. Writes only with --file: `propose` lines in the proposals ledger. --number prints
|
|
105
|
+
* the percent of initiatives with tasks that the read covers alone on the last line (the health read). */
|
|
106
|
+
function match(root, a, say) {
|
|
107
|
+
const TM = require('./tracker-match.js');
|
|
108
|
+
const m = a.file ? TM.file(root) : { ok: true, filed: [], scan: TM.scan(root) };
|
|
109
|
+
logMatch(root, m);
|
|
110
|
+
const s = m.scan;
|
|
111
|
+
if (a.json) { say(JSON.stringify({ ok: m.ok, root, ...(m.error ? { error: m.error } : {}), withTasks: s.withTasks, linked: s.linked, pct: s.pct, reads: s.reads, filed: m.filed, unlinked: s.unlinked })); return m.ok ? 0 : 1; }
|
|
112
|
+
if (a.number) { say(s.pct === null ? 'none' : String(s.pct)); return 0; }
|
|
113
|
+
if (!m.ok) { say(`✗ ${m.error}`); return 1; }
|
|
114
|
+
if (s.pct === null) { say('No initiative here has tasks yet.'); return 0; }
|
|
115
|
+
say(`${s.pct}% of initiatives with tasks are linked to their Jira work (${s.linked} of ${s.withTasks}).${s.reads ? '' : ' No Jira read is stored here yet, so PMOS has nothing to match against.'}`);
|
|
116
|
+
for (const u of s.unlinked) {
|
|
117
|
+
if (!u.open) continue;
|
|
118
|
+
say(` ${u.ini} · ${u.title.slice(0, 60)}`);
|
|
119
|
+
if (!u.matches.length) { say(' no match in the stored Jira reads'); continue; }
|
|
120
|
+
for (const x of u.matches) say(` ${TM.reasonOf(x, u.tasks)}`);
|
|
121
|
+
}
|
|
122
|
+
if (a.file) say(m.filed.length ? `Proposed under the ✦ of ${m.filed.length} initiative${m.filed.length === 1 ? '' : 's'}. Nothing is linked before the PM's ✓.` : 'Nothing new to propose.');
|
|
123
|
+
return 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
87
126
|
module.exports = { run, COMMANDS, USAGE };
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/* tracker-match.js — every initiative linked to its tracker work (bet A465, initiative link-tracker-work; proof T64, 2026-11-22).
|
|
3
|
+
*
|
|
4
|
+
* WHY. PMOS takes progress, done days, owners and dates from Jira only for an initiative whose tracker work it knows: tickets it pushed,
|
|
5
|
+
* a Jira epic linked on the page or named in the record, or tasks whose titles start with a ticket key (lib/jira-status.js queryFor).
|
|
6
|
+
* On 22 Nov 25 of 60 initiatives with tasks had none of these (CAS 6 of 9, Scarlet 10 of 20, idpf 8 of 24), so the daily Jira read
|
|
7
|
+
* skipped them. Here PMOS finds the epic or ticket that most likely holds such an initiative's work, in the Jira reads it already
|
|
8
|
+
* stores, and files it under the initiative's ✦ for the PM's one ✓.
|
|
9
|
+
*
|
|
10
|
+
* tokens(text) PURE → [word] the words a match compares: lower case, no stop words, no keys, no numbers
|
|
11
|
+
* candidatesOf(readings, claimed) PURE → [candidate] epics (with their children) and tickets with no epic, from stored readings
|
|
12
|
+
* matchOne(ini, candidates, o) PURE → [match] the candidates that hold this initiative's work, best first, at most MAX
|
|
13
|
+
* scan(root, o) → { initiatives, withTasks, linked, pct, unlinked: [{ ini, title, matches }] }
|
|
14
|
+
* proposalOf(u, o) PURE → the propose line for one unlinked initiative with matches (lib/proposals.js ledger)
|
|
15
|
+
* file(root, o) → { filed, skipped, dir } appends the proposals that changed; nothing when no state folder
|
|
16
|
+
* proposalsDir(root) → the folder of proposals.jsonl, as the workspace server resolves it, or null
|
|
17
|
+
*
|
|
18
|
+
* THE MATCH. The initiative's name against the epic's name (or the ticket's summary), and the initiative's task titles against the
|
|
19
|
+
* epic's children. A candidate is proposed when the names share 2 or more words and at least half their words, or 2 or more task
|
|
20
|
+
* titles match children, or 1 task title matches and the names share a third of their words. A task title matches a child when they
|
|
21
|
+
* share 2 or more words and half their words.
|
|
22
|
+
* DATES. A candidate whose sprints (or resolution days) end more than SLACK_DAYS before the initiative's first date, or start more
|
|
23
|
+
* than SLACK_DAYS after its last, is not proposed. With no date on either side, dates decide nothing.
|
|
24
|
+
* CLAIMED. A key the Jira read of another initiative covers (its pushed tickets, its epics, its task keys and every ticket its stored
|
|
25
|
+
* read returned) is never a candidate: a ticket belongs to one initiative.
|
|
26
|
+
* THE PROPOSAL. group `found`, type `tasks`, section `check` (its own ✓, never Keep all), one item per key with `jira`. The existing ✓
|
|
27
|
+
* path (lib/routes-proposals.js applyOne) links the keys as the initiative's Jira epics (POST /api/boards/ini-epics), with Undo, and
|
|
28
|
+
* from the next read the initiative is in epic mode. A ✕ on the proposal or on one item refuses those keys for that initiative for
|
|
29
|
+
* good; the rest can come back.
|
|
30
|
+
*
|
|
31
|
+
* BOUNDARY. No network and no write to Jira. The only write is `propose` lines in the proposals ledger, and only from `file`.
|
|
32
|
+
*/
|
|
33
|
+
const fs = require('fs');
|
|
34
|
+
const path = require('path');
|
|
35
|
+
const crypto = require('crypto');
|
|
36
|
+
|
|
37
|
+
const MAX = 3;
|
|
38
|
+
const SLACK_DAYS = 30;
|
|
39
|
+
const LOG = '[tracker-match]';
|
|
40
|
+
const CLOSED = new Set(['Done', "Won't do", 'Archived']);
|
|
41
|
+
const STOP = new Set(('the and for with from into onto that this these those are was were will would should could can not but all any '
|
|
42
|
+
+ 'its our your their his her has have had per via out off new old one two use using used make made get set add adds added update '
|
|
43
|
+
+ 'updates fix fixes task tasks story stories epic epics ticket tickets item items work phase part page pages team when then than '
|
|
44
|
+
+ 'also more less each every some only just like what which who how why yet very').split(' '));
|
|
45
|
+
const KEY_RE = /^[A-Z][A-Z0-9_]{0,30}-\d{1,9}$/;
|
|
46
|
+
const hash = (s) => crypto.createHash('sha1').update(String(s)).digest('hex').slice(0, 10);
|
|
47
|
+
const one = (s, n) => { const t = String(s == null ? '' : s).replace(/\s+/g, ' ').trim(); return t.length > n ? t.slice(0, n - 1).trimEnd() + '…' : t; };
|
|
48
|
+
const dn = (iso) => { const m = /^(\d{4})-(\d{2})-(\d{2})/.exec(String(iso || '')); return m ? Math.round(Date.UTC(+m[1], +m[2] - 1, +m[3]) / 864e5) : null; };
|
|
49
|
+
const MON = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
|
|
50
|
+
const md = (n) => { const d = new Date(n * 864e5); return MON[d.getUTCMonth()] + ' ' + d.getUTCDate(); };
|
|
51
|
+
|
|
52
|
+
/** The words a match compares. A leading or embedded ticket key, a number and a stop word are not words of the work. */
|
|
53
|
+
function tokens(text) {
|
|
54
|
+
const out = new Set();
|
|
55
|
+
for (const raw of String(text == null ? '' : text).replace(/\b[A-Z][A-Z0-9_]{0,30}-\d{1,9}\b/g, ' ').toLowerCase().split(/[^a-z0-9]+/)) {
|
|
56
|
+
if (raw.length < 3 || /^\d+$/.test(raw) || STOP.has(raw)) continue;
|
|
57
|
+
out.add(raw.length > 4 && raw.endsWith('s') && !raw.endsWith('ss') ? raw.slice(0, -1) : raw);
|
|
58
|
+
}
|
|
59
|
+
return [...out];
|
|
60
|
+
}
|
|
61
|
+
/** { shared: [word], sim } — the words both sides have, and shared ÷ all words of both (Jaccard). */
|
|
62
|
+
function overlap(a, b) {
|
|
63
|
+
const A = new Set(a), B = new Set(b);
|
|
64
|
+
const shared = [...A].filter((w) => B.has(w));
|
|
65
|
+
const all = new Set([...A, ...B]).size;
|
|
66
|
+
return { shared, sim: all ? shared.length / all : 0 };
|
|
67
|
+
}
|
|
68
|
+
const sameWork = (a, b) => { const o = overlap(a, b); return o.shared.length >= 2 && o.sim >= 0.5; };
|
|
69
|
+
|
|
70
|
+
/** PURE. The candidates in a set of readings (lib/jira-status.js reading shape). An epic carries the readings under it; a ticket with no
|
|
71
|
+
* parent stands for itself. A key in `claimed` (and an epic in it, with its children) is left out. */
|
|
72
|
+
function candidatesOf(readings, claimed = new Set()) {
|
|
73
|
+
const by = new Map();
|
|
74
|
+
const cand = (key) => { if (!by.has(key)) by.set(key, { key, kind: 'epic', name: '', children: [], dates: [], src: null, url: null }); return by.get(key); };
|
|
75
|
+
for (const { r, src } of readings) {
|
|
76
|
+
if (!r || !KEY_RE.test(String(r.key || '')) || claimed.has(r.key)) continue;
|
|
77
|
+
const ds = [r.sprint && r.sprint.start, r.sprint && r.sprint.end, r.resolved].map(dn).filter((x) => x != null);
|
|
78
|
+
if (/^epic$/i.test(String(r.type || ''))) {
|
|
79
|
+
const c = cand(r.key); c.name = c.name || String(r.summary || ''); c.src = c.src || src; c.url = c.url || r.url || null;
|
|
80
|
+
c.dates.push(...ds);
|
|
81
|
+
} else if (r.parent && KEY_RE.test(r.parent)) {
|
|
82
|
+
if (claimed.has(r.parent)) continue;
|
|
83
|
+
const c = cand(r.parent); if (!c.name && r.parentName) c.name = String(r.parentName); c.src = c.src || src;
|
|
84
|
+
c.children.push(r); c.dates.push(...ds);
|
|
85
|
+
} else if (!/sub-?task/i.test(String(r.type || ''))) {
|
|
86
|
+
if (by.has(r.key)) continue;
|
|
87
|
+
by.set(r.key, { key: r.key, kind: 'ticket', name: String(r.summary || ''), children: [r], dates: ds, src, url: r.url || null });
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return [...by.values()].filter((c) => c.name || c.children.length);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** PURE. ini: { id, title, tasks: [title], start, end (day numbers or null) }. → [{ key, kind, name, shared, taskHits, score, from, to, src, url }] */
|
|
94
|
+
function matchOne(ini, candidates, o = {}) {
|
|
95
|
+
const refused = o.refused || new Set();
|
|
96
|
+
const iniTok = tokens(ini.title);
|
|
97
|
+
const taskTok = (ini.tasks || []).map(tokens).filter((t) => t.length >= 2);
|
|
98
|
+
const out = [];
|
|
99
|
+
for (const c of candidates) {
|
|
100
|
+
if (refused.has(c.key)) continue;
|
|
101
|
+
const { shared, sim } = overlap(iniTok, tokens(c.name));
|
|
102
|
+
const kids = c.children.map((r) => tokens(r.summary));
|
|
103
|
+
const taskHits = taskTok.filter((t) => kids.some((k) => sameWork(t, k))).length;
|
|
104
|
+
const ok = (shared.length >= 2 && sim >= 0.5) || taskHits >= 2 || (taskHits >= 1 && shared.length >= 1 && sim >= 1 / 3);
|
|
105
|
+
if (!ok) continue;
|
|
106
|
+
const from = c.dates.length ? Math.min(...c.dates) : null, to = c.dates.length ? Math.max(...c.dates) : null;
|
|
107
|
+
if (from != null && ini.end != null && ini.start != null) {
|
|
108
|
+
if (to < ini.start - SLACK_DAYS || from > ini.end + SLACK_DAYS) continue;
|
|
109
|
+
}
|
|
110
|
+
out.push({ key: c.key, kind: c.kind, name: one(c.name, 100), shared, taskHits, score: sim + 0.25 * taskHits, from, to, src: c.src, url: c.url });
|
|
111
|
+
}
|
|
112
|
+
return out.sort((a, b) => b.score - a.score || a.key.localeCompare(b.key)).slice(0, o.max || MAX);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/** Why this candidate, in one line a PM can check. */
|
|
116
|
+
function reasonOf(m, nTasks) {
|
|
117
|
+
const bits = [];
|
|
118
|
+
if (m.shared.length) bits.push(`shares ${m.shared.map((w) => '"' + w + '"').join(', ')} with the name`);
|
|
119
|
+
if (m.taskHits) bits.push(`holds ${m.taskHits} of its ${nTasks} task${nTasks === 1 ? '' : 's'}`);
|
|
120
|
+
if (m.from != null) bits.push(m.from === m.to ? `dated ${md(m.from)}` : `sprints ${md(m.from)} to ${md(m.to)}`);
|
|
121
|
+
return `${m.kind === 'epic' ? 'Epic' : 'Ticket'} ${m.key}${m.name ? ' "' + m.name + '"' : ''} ${bits.join('; ')}.`;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ── the repository ── */
|
|
125
|
+
function JSm() { return require('./jira-status.js'); }
|
|
126
|
+
function JTm() { return require('./jira-tickets.js'); }
|
|
127
|
+
function TJm() { return require('./task-jira.js'); }
|
|
128
|
+
|
|
129
|
+
/** The folder of proposals.jsonl, as the workspace server's stateDirFor resolves it (pmos/state, state or .pmos), or null. */
|
|
130
|
+
function proposalsDir(root) {
|
|
131
|
+
for (const rel of [['pmos', 'state'], ['state'], ['.pmos']]) {
|
|
132
|
+
const d = path.join(root, ...rel);
|
|
133
|
+
try { if (fs.statSync(d).isDirectory()) return d; } catch { /* next */ }
|
|
134
|
+
}
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
/** The stored Jira reads of the repository: every snapshot in <state>/tracker/jira except the ticket drafts and the sprint notes. */
|
|
138
|
+
function storedReads(root) {
|
|
139
|
+
let dir, names = [];
|
|
140
|
+
try { dir = JTm().jiraDir(root); names = fs.readdirSync(dir); } catch { return []; }
|
|
141
|
+
const out = [];
|
|
142
|
+
for (const n of names.sort()) {
|
|
143
|
+
if (!n.endsWith('.md') || n.endsWith('-tickets.md') || n === '_sprint-notes.md') continue;
|
|
144
|
+
const id = n.slice(0, -3);
|
|
145
|
+
const s = JSm().readSnapshot(root, id);
|
|
146
|
+
if (s) out.push({ id, src: JTm().relOf(root, path.join(dir, n)), snap: s });
|
|
147
|
+
}
|
|
148
|
+
return out;
|
|
149
|
+
}
|
|
150
|
+
/** Every initiative of the repository: its record (title) and its tasks (titles, dates, board). */
|
|
151
|
+
function initiativesOf(root, lines) {
|
|
152
|
+
const by = new Map();
|
|
153
|
+
const ini = (id) => { if (!by.has(id)) by.set(id, { id, title: '', tasks: new Map(), board: '' }); return by.get(id); };
|
|
154
|
+
let names = [];
|
|
155
|
+
try { names = fs.readdirSync(JTm().stateDirOf(root) ? path.join(JTm().stateDirOf(root), 'initiatives') : '').filter((n) => n.endsWith('.md') && n !== 'README.md' && n !== 'index.md'); } catch { names = []; }
|
|
156
|
+
for (const n of names) ini(n.slice(0, -3));
|
|
157
|
+
const removed = new Set();
|
|
158
|
+
for (const e of lines || []) {
|
|
159
|
+
if (!e || typeof e.task !== 'string') continue;
|
|
160
|
+
if (e.kind === 'task' && typeof e.initiative === 'string' && e.initiative) {
|
|
161
|
+
const I = ini(e.initiative); if (!I.board && typeof e.board === 'string') I.board = e.board;
|
|
162
|
+
if (!I.tasks.has(e.task)) I.tasks.set(e.task, { title: String(e.title || ''), state: e.state || 'To do', start: e.start || null, due: e.due || null });
|
|
163
|
+
} else if (e.kind === 'task-update' || e.kind === 'task-remove' || e.kind === 'task-restore') {
|
|
164
|
+
for (const I of by.values()) {
|
|
165
|
+
const t = I.tasks.get(e.task); if (!t) continue;
|
|
166
|
+
if (e.kind === 'task-remove') removed.add(e.task); else if (e.kind === 'task-restore') removed.delete(e.task);
|
|
167
|
+
else {
|
|
168
|
+
if (typeof e.title === 'string' && e.title.trim()) t.title = e.title.trim();
|
|
169
|
+
if (typeof e.state === 'string' && e.state) t.state = e.state;
|
|
170
|
+
if (typeof e.start === 'string') t.start = e.start || null;
|
|
171
|
+
if (typeof e.due === 'string') t.due = e.due || null;
|
|
172
|
+
if (typeof e.initiative === 'string' && e.initiative && e.initiative !== I.id) { ini(e.initiative).tasks.set(e.task, t); I.tasks.delete(e.task); }
|
|
173
|
+
}
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
for (const I of by.values()) {
|
|
179
|
+
for (const k of removed) I.tasks.delete(k);
|
|
180
|
+
const fm = JTm().recordFm(root, I.id);
|
|
181
|
+
I.title = (fm && fm.title) || I.id.replace(/[-_.]+/g, ' ');
|
|
182
|
+
}
|
|
183
|
+
return [...by.values()];
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/** → { initiatives, withTasks, linked, pct, unlinked: [{ ini, title, board, open, matches }] }. o: { refusedOf(ini) → Set of keys } */
|
|
187
|
+
function scan(root, o = {}) {
|
|
188
|
+
const lines = TJm().readLines(root);
|
|
189
|
+
const byIni = TJm().keysByInitiative(lines);
|
|
190
|
+
const inis = initiativesOf(root, lines);
|
|
191
|
+
const reads = storedReads(root);
|
|
192
|
+
const claimed = new Set();
|
|
193
|
+
const linked = new Set();
|
|
194
|
+
for (const I of inis) {
|
|
195
|
+
let q = null;
|
|
196
|
+
try { q = JSm().queryFor(root, I.id, byIni); } catch { q = null; }
|
|
197
|
+
if (!q || !q.ok || !q.linked) continue;
|
|
198
|
+
linked.add(I.id);
|
|
199
|
+
for (const k of [...(q.keys || []), ...(q.epics || [])]) claimed.add(k);
|
|
200
|
+
const own = reads.find((x) => x.id === I.id);
|
|
201
|
+
if (own) for (const k of own.snap.tickets.keys()) claimed.add(k);
|
|
202
|
+
}
|
|
203
|
+
const readings = [];
|
|
204
|
+
for (const x of reads) for (const r of x.snap.tickets.values()) readings.push({ r, src: x.src });
|
|
205
|
+
const candidates = candidatesOf(readings, claimed);
|
|
206
|
+
const withTasks = inis.filter((I) => [...I.tasks.values()].some((t) => t.state !== 'Archived'));
|
|
207
|
+
const unlinked = [];
|
|
208
|
+
for (const I of inis) {
|
|
209
|
+
if (linked.has(I.id)) continue;
|
|
210
|
+
const tasks = [...I.tasks.values()].filter((t) => t.state !== 'Archived');
|
|
211
|
+
const open = !tasks.length || tasks.some((t) => !CLOSED.has(t.state));
|
|
212
|
+
const days = tasks.flatMap((t) => [dn(t.start), dn(t.due)]).filter((x) => x != null);
|
|
213
|
+
const iv = { id: I.id, title: I.title, tasks: tasks.map((t) => t.title), start: days.length ? Math.min(...days) : null, end: days.length ? Math.max(...days) : null };
|
|
214
|
+
const matches = open ? matchOne(iv, candidates, { refused: o.refusedOf ? o.refusedOf(I.id) : null }) : [];
|
|
215
|
+
unlinked.push({ ini: I.id, title: I.title, board: I.board, tasks: tasks.length, open, matches });
|
|
216
|
+
}
|
|
217
|
+
const nLinked = withTasks.filter((I) => linked.has(I.id)).length;
|
|
218
|
+
return { initiatives: inis.length, withTasks: withTasks.length, linked: nLinked, pct: withTasks.length ? Math.floor((nLinked / withTasks.length) * 100) : null, reads: reads.length, unlinked };
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/** PURE. The propose line for one unlinked initiative with matches. Its id names the initiative and the keys, so a kept match is never
|
|
222
|
+
* hidden by a later one, and the same match filed again is the same proposal. */
|
|
223
|
+
function proposalOf(u) {
|
|
224
|
+
const keys = u.matches.map((m) => m.key);
|
|
225
|
+
const best = u.matches[0];
|
|
226
|
+
const srcs = [...new Set(u.matches.map((m) => m.src).filter(Boolean))].slice(0, 4);
|
|
227
|
+
return {
|
|
228
|
+
kind: 'propose', ini: u.ini, board: u.board || '', run: 'tracker-match', id: 'tm-' + hash(u.ini + '|' + keys.join(',')),
|
|
229
|
+
group: 'found', type: 'tasks', section: 'check', title: 'Link to its Jira work',
|
|
230
|
+
why: one(`No Jira epic or ticket is linked, so its progress and dates do not come from the tracker. ${reasonOf(best, u.tasks)}`, 300),
|
|
231
|
+
sources: srcs.length ? srcs.map((s) => ({ label: 'Stored Jira read', ref: s })) : [{ label: 'Stored Jira read' }],
|
|
232
|
+
items: u.matches.map((m) => ({ id: m.key, jira: m.key, title: one(m.key + (m.name ? ' · ' + m.name : ''), 140), why: one(reasonOf(m, u.tasks), 300), kind: m.kind, ...(m.url ? { ref: one(m.url, 500) } : {}) })),
|
|
233
|
+
data: {},
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/** The keys the PM refused per initiative: every item of a tracker-match proposal whose ✕ is on file (the whole proposal or that item). */
|
|
238
|
+
function refusedFrom(PR, lines, F) {
|
|
239
|
+
const out = new Map();
|
|
240
|
+
for (const l of lines) {
|
|
241
|
+
if (l.kind !== 'propose' || l.run !== 'tracker-match' || typeof l.ini !== 'string') continue;
|
|
242
|
+
const p = { ...l, items: Array.isArray(l.items) ? l.items : [] };
|
|
243
|
+
const whole = F.drops.has(PR.sigOf(p));
|
|
244
|
+
for (const x of p.items) {
|
|
245
|
+
if (!x || !x.jira) continue;
|
|
246
|
+
if (whole || F.drops.has(PR.itemSig(p, x))) { if (!out.has(l.ini)) out.set(l.ini, new Set()); out.get(l.ini).add(x.jira); }
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return out;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** Files the proposals that changed. → { ok, filed: [{ ini, id, keys }], skipped, dir, scan } */
|
|
253
|
+
function file(root, o = {}) {
|
|
254
|
+
const dir = o.dir || proposalsDir(root);
|
|
255
|
+
const PR = require('./proposals.js');
|
|
256
|
+
const ledger = dir ? PR.ledgerFile(dir) : null;
|
|
257
|
+
const lines = ledger ? PR.readLines(ledger) : [];
|
|
258
|
+
const F = PR.fold(lines);
|
|
259
|
+
const refused = refusedFrom(PR, lines, F);
|
|
260
|
+
const s = scan(root, { refusedOf: (ini) => refused.get(ini) || null });
|
|
261
|
+
if (!dir) return { ok: false, error: 'no state folder (pmos/state, state or .pmos) in this repository to file proposals in', filed: [], skipped: 0, dir: null, scan: s };
|
|
262
|
+
const kept = new Set(); for (const k of F.kept) if (!F.undone.has(k.batch)) for (const id of k.ids) kept.add(id);
|
|
263
|
+
const filed = []; let skipped = 0;
|
|
264
|
+
for (const u of s.unlinked) {
|
|
265
|
+
if (!u.matches.length) continue;
|
|
266
|
+
const p = proposalOf(u);
|
|
267
|
+
const was = F.props.get(p.id);
|
|
268
|
+
if (kept.has(p.id) || (was && PR.sigOf(was) === PR.sigOf(p))) { skipped++; continue; }
|
|
269
|
+
PR.append(dir, { by: 'pmos:tracker-match' }, p);
|
|
270
|
+
filed.push({ ini: u.ini, id: p.id, keys: p.items.map((x) => x.jira) });
|
|
271
|
+
}
|
|
272
|
+
return { ok: true, filed, skipped, dir, scan: s };
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
module.exports = { MAX, SLACK_DAYS, LOG, tokens, overlap, candidatesOf, matchOne, reasonOf, scan, proposalOf, file, proposalsDir, storedReads, initiativesOf };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmos-workspace",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.701.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "pmos-workspace",
|
|
9
|
-
"version": "0.
|
|
9
|
+
"version": "0.701.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@anthropic-ai/sdk": "^1.3.0",
|
package/workspace/package.json
CHANGED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "ready-for-engineering-check (bet A392): the five basics an engineer needs, read from an initiative's own files (lib/ready-check.js, lib/ready-cli.js), and the line in pmos jira pending. On a scratch product. No server, no tracker, no network, no model.",
|
|
3
|
+
"modules": ["ready-check.test.js"],
|
|
4
|
+
"seconds": { "ready-check.test.js": 3 }
|
|
5
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "link-tracker-work (A465): initiatives the Jira read does not cover get their likely epic or ticket proposed under the ✦ (lib/tracker-match.js, pmos tracker match).",
|
|
3
|
+
"modules": [
|
|
4
|
+
"tracker-match.test.js"
|
|
5
|
+
],
|
|
6
|
+
"seconds": {
|
|
7
|
+
"tracker-match.test.js": 1
|
|
8
|
+
}
|
|
9
|
+
}
|