atris 3.74.23 → 3.74.25
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 +33 -0
- package/bin/atris.js +10 -0
- package/commands/gm.js +5 -3
- package/commands/rating.js +152 -0
- package/commands/scorecard.js +297 -0
- package/lib/atris-rating-combine.json +77 -0
- package/lib/atris-rating.js +179 -0
- package/lib/gm-bet.js +2 -2
- package/lib/gm-season.js +5 -3
- package/lib/known-commands.js +1 -1
- package/lib/repo-scorecard.js +1135 -0
- package/lib/team-lineup.js +6 -1
- package/package.json +1 -1
package/lib/team-lineup.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
const { modelLabel } = require('./roster-models');
|
|
8
8
|
const { rosterToolLabel } = require('./engine-registry');
|
|
9
|
+
const { bootRatingText } = require('./atris-rating');
|
|
9
10
|
const { suggestionCount } = require('./roster-suggest');
|
|
10
11
|
|
|
11
12
|
const BUILT_IN_JOBS = Object.freeze(['build', 'review', 'search']);
|
|
@@ -52,6 +53,8 @@ function readLineupSafe(root = process.cwd(), now = new Date()) {
|
|
|
52
53
|
|
|
53
54
|
// One boot line: the tool and model that runs each built-in job right now,
|
|
54
55
|
// custom jobs only when all of them still fit. '' when nothing resolves.
|
|
56
|
+
// A build job's model shows its combine rating (atris rating), since the
|
|
57
|
+
// combine grades building only.
|
|
55
58
|
// When the run record suggests a new order for any job, a short marker
|
|
56
59
|
// points at the roster view; only the end of the record is read.
|
|
57
60
|
function bootTeamLine(root = process.cwd(), { width = 69, now = new Date(), jobs = null } = {}) {
|
|
@@ -63,7 +66,9 @@ function bootTeamLine(root = process.cwd(), { width = 69, now = new Date(), jobs
|
|
|
63
66
|
const ordered = orderJobs(rows);
|
|
64
67
|
const part = (row) => {
|
|
65
68
|
const text = shortRuns(row.now_runs);
|
|
66
|
-
|
|
69
|
+
if (!text) return '';
|
|
70
|
+
const rated = row.role === 'executor' ? bootRatingText(row.now_runs.model) : '';
|
|
71
|
+
return `${row.job} ${text}${rated}`;
|
|
67
72
|
};
|
|
68
73
|
const builtIn = ordered.filter((row) => BUILT_IN_JOBS.includes(row.job) && !row.key).map(part).filter(Boolean);
|
|
69
74
|
const custom = ordered.filter((row) => !BUILT_IN_JOBS.includes(row.job) || row.key).map(part).filter(Boolean);
|
package/package.json
CHANGED