ccqa 1.26.1 → 1.26.2
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/bin/ccqa.mjs +14 -52
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/bin/ccqa.mjs
CHANGED
|
@@ -19256,7 +19256,7 @@ const HTML_BODY = `
|
|
|
19256
19256
|
<div class="card" id="runs-card">
|
|
19257
19257
|
<div class="table-wrap">
|
|
19258
19258
|
<table>
|
|
19259
|
-
<thead><tr><th data-i18n="runs.col.run">Run</th><th data-i18n="runs.col.
|
|
19259
|
+
<thead><tr><th data-i18n="runs.col.run">Run</th><th data-i18n="runs.col.status">Status</th><th data-i18n="runs.col.cost">Cost</th><th data-i18n="runs.col.created">Created</th></tr></thead>
|
|
19260
19260
|
<tbody id="runs-tbody"></tbody>
|
|
19261
19261
|
</table>
|
|
19262
19262
|
</div>
|
|
@@ -19715,13 +19715,6 @@ const CSS = `
|
|
|
19715
19715
|
indents the first one away from the label and the ratio line below it. */
|
|
19716
19716
|
.drift-meta-chips { display: flex; gap: 6px; }
|
|
19717
19717
|
.drift-meta-chips .chip { margin-left: 0; }
|
|
19718
|
-
.specs { display: inline-flex; align-items: center; gap: 9px; }
|
|
19719
|
-
.meter { width: 54px; height: 6px; border-radius: 3px; background: var(--fail-bg); overflow: hidden; }
|
|
19720
|
-
.meter i { display: block; height: 100%; background: var(--pass); }
|
|
19721
|
-
/* A drift row's bar fills with what the audit FOUND, so a full bar is the bad
|
|
19722
|
-
end — the opposite of a test run's. It must not be painted pass-green. */
|
|
19723
|
-
.meter.drift { background: var(--surface-3); }
|
|
19724
|
-
.meter.drift i { background: var(--amber-fill); }
|
|
19725
19718
|
|
|
19726
19719
|
/* run detail */
|
|
19727
19720
|
.rd-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
|
|
@@ -20182,8 +20175,8 @@ const CLIENT_JS = `
|
|
|
20182
20175
|
"runs.title": "Runs", "runs.empty": "Select a project to see its runs.",
|
|
20183
20176
|
"runs.none": "No runs yet for this project.", "projects.none": "No projects yet. Create one to get started.", "projects.noneShort": "No projects yet",
|
|
20184
20177
|
"runs.noMatch": "No runs match this filter.",
|
|
20185
|
-
"runs.col.run": "Run", "runs.col.
|
|
20186
|
-
"runs.col.
|
|
20178
|
+
"runs.col.run": "Run", "runs.col.status": "Status",
|
|
20179
|
+
"runs.col.cost": "Cost", "runs.col.created": "Created",
|
|
20187
20180
|
"runs.totalCost": "Cost of these {n}:", "runs.capped": "showing the first {n}",
|
|
20188
20181
|
"runs.spend24h": "All spend, last 24h:",
|
|
20189
20182
|
"runs.filter.date": "Date", "runs.filter.kind": "Kind", "runs.filter.status": "Status",
|
|
@@ -20345,8 +20338,8 @@ const CLIENT_JS = `
|
|
|
20345
20338
|
"runs.title": "実行", "runs.empty": "プロジェクトを選択すると実行一覧が表示されます。",
|
|
20346
20339
|
"runs.none": "このプロジェクトにはまだ実行がありません。", "projects.none": "まだプロジェクトがありません。作成して始めましょう。", "projects.noneShort": "プロジェクトなし",
|
|
20347
20340
|
"runs.noMatch": "条件に一致する実行はありません。",
|
|
20348
|
-
"runs.col.run": "実行", "runs.col.
|
|
20349
|
-
"runs.col.
|
|
20341
|
+
"runs.col.run": "実行", "runs.col.status": "ステータス",
|
|
20342
|
+
"runs.col.cost": "コスト", "runs.col.created": "作成",
|
|
20350
20343
|
"runs.totalCost": "この {n} 件のコスト:", "runs.capped": "先頭 {n} 件のみ表示",
|
|
20351
20344
|
"runs.spend24h": "直近 24 時間の全支出:",
|
|
20352
20345
|
"runs.filter.date": "日付", "runs.filter.kind": "種類", "runs.filter.status": "結果",
|
|
@@ -20752,9 +20745,9 @@ const CLIENT_JS = `
|
|
|
20752
20745
|
|
|
20753
20746
|
// Which command left the run, and whether its spec counts are a tally of
|
|
20754
20747
|
// what was verified. A recording's rows are the specs it wrote, not specs it
|
|
20755
|
-
// checked, so "1 / 1 passed"
|
|
20756
|
-
//
|
|
20757
|
-
//
|
|
20748
|
+
// checked, so "1 / 1 passed" would claim a test result. A kind from a newer
|
|
20749
|
+
// hub keeps the generic label but is read the same cautious way, since
|
|
20750
|
+
// nothing here knows what its counts mean.
|
|
20758
20751
|
var KINDS = {
|
|
20759
20752
|
run: { label: "kind.run", verifies: true },
|
|
20760
20753
|
drift: { label: "kind.drift", verifies: true },
|
|
@@ -21110,11 +21103,17 @@ const CLIENT_JS = `
|
|
|
21110
21103
|
var tr = el("tr", "row");
|
|
21111
21104
|
tr.addEventListener("click", function () { location.hash = "#/runs/" + encodeURIComponent(r.id); });
|
|
21112
21105
|
|
|
21106
|
+
// Four columns: which run, how it went, what it cost, when. Everything
|
|
21107
|
+
// else is one click away, and a column that has to mean something
|
|
21108
|
+
// different per kind (a spec tally that counts passes for a run and
|
|
21109
|
+
// findings for an audit) reads wrong before it reads useful.
|
|
21113
21110
|
var runCell = document.createElement("td");
|
|
21114
21111
|
runCell.appendChild(el("div", "runid", r.id.slice(0, 8)));
|
|
21115
21112
|
var sub = el("div", "subline");
|
|
21116
21113
|
sub.appendChild(ciBadge(r));
|
|
21117
21114
|
sub.appendChild(kindChip(r.kind));
|
|
21115
|
+
sub.appendChild(el("span", "chip", r.branch || "—"));
|
|
21116
|
+
if (r.profile) sub.appendChild(el("span", "chip", r.profile));
|
|
21118
21117
|
if (r.kind === "drift") {
|
|
21119
21118
|
var rowDrift = driftSummary(r);
|
|
21120
21119
|
if (rowDrift) driftChips(rowDrift).forEach(function (chip) { sub.appendChild(chip); });
|
|
@@ -21122,47 +21121,10 @@ const CLIENT_JS = `
|
|
|
21122
21121
|
runCell.appendChild(sub);
|
|
21123
21122
|
tr.appendChild(runCell);
|
|
21124
21123
|
|
|
21125
|
-
var branchCell = document.createElement("td");
|
|
21126
|
-
branchCell.appendChild(el("span", "chip", r.branch || "—"));
|
|
21127
|
-
tr.appendChild(branchCell);
|
|
21128
|
-
|
|
21129
|
-
var profileCell = document.createElement("td");
|
|
21130
|
-
profileCell.appendChild(r.profile ? el("span", "chip", r.profile) : el("span", "muted", "—"));
|
|
21131
|
-
tr.appendChild(profileCell);
|
|
21132
|
-
|
|
21133
21124
|
var statusCell = document.createElement("td");
|
|
21134
21125
|
statusCell.appendChild(runStatusBadge(r));
|
|
21135
21126
|
tr.appendChild(statusCell);
|
|
21136
21127
|
|
|
21137
|
-
var specsCell = document.createElement("td");
|
|
21138
|
-
if (!kindOf(r.kind).verifies) {
|
|
21139
|
-
specsCell.appendChild(el("span", "muted", "—"));
|
|
21140
|
-
} else {
|
|
21141
|
-
// A drift row counts what the audit found, not what "passed" — the same
|
|
21142
|
-
// ratio its detail page shows. Reading passed/total here printed a
|
|
21143
|
-
// different number for the same run in the two places you would compare.
|
|
21144
|
-
var rowDriftSummary = r.kind === "drift" ? driftSummary(r) : null;
|
|
21145
|
-
var found = rowDriftSummary
|
|
21146
|
-
? rowDriftSummary.testDrift + rowDriftSummary.specChange + rowDriftSummary.unknown
|
|
21147
|
-
: null;
|
|
21148
|
-
var num = rowDriftSummary
|
|
21149
|
-
? found + " / " + rowDriftSummary.specs
|
|
21150
|
-
: r.specs.passed + " / " + r.specs.total;
|
|
21151
|
-
var fillTotal = rowDriftSummary ? rowDriftSummary.specs : r.specs.total;
|
|
21152
|
-
var fillPart = rowDriftSummary ? found : r.specs.passed;
|
|
21153
|
-
|
|
21154
|
-
var specsWrap = el("div", "specs");
|
|
21155
|
-
var meter = el("span", "meter" + (rowDriftSummary ? " drift" : ""));
|
|
21156
|
-
var pct = fillTotal > 0 ? Math.round((fillPart / fillTotal) * 100) : 0;
|
|
21157
|
-
var bar = el("i");
|
|
21158
|
-
bar.style.width = pct + "%";
|
|
21159
|
-
meter.appendChild(bar);
|
|
21160
|
-
specsWrap.appendChild(meter);
|
|
21161
|
-
specsWrap.appendChild(el("span", "num muted", num));
|
|
21162
|
-
specsCell.appendChild(specsWrap);
|
|
21163
|
-
}
|
|
21164
|
-
tr.appendChild(specsCell);
|
|
21165
|
-
|
|
21166
21128
|
tr.appendChild(el("td", "muted num", costText(r.costUsd)));
|
|
21167
21129
|
tr.appendChild(el("td", "muted num", relTime(r.createdAt)));
|
|
21168
21130
|
tbody.appendChild(tr);
|
package/dist/package.json
CHANGED