arcane-cli 0.36.0 → 0.37.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.
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
.parked-list li, .cast-list li { margin: 0.3rem 0; }
|
|
260
260
|
.parked-list strong { color: var(--ink); }
|
|
261
261
|
|
|
262
|
-
footer.
|
|
262
|
+
footer.provenance {
|
|
263
263
|
margin-top: 3rem;
|
|
264
264
|
padding-top: 1.5rem;
|
|
265
265
|
border-top: 1px solid var(--line);
|
|
@@ -399,8 +399,8 @@
|
|
|
399
399
|
|
|
400
400
|
</main>
|
|
401
401
|
|
|
402
|
-
<footer class="
|
|
403
|
-
Compiled {{compiledAtDate}} from <code>{{sourcesJoined}}</code>. Program <code>{{program.slug}}</code>, status <code>{{program.status}}</code>{{#hasVersionSpan}}, <code>{{program.versionSpan.from}}</code> → <code>{{program.versionSpan.to}}</code>{{/hasVersionSpan}}. Template <code>{{
|
|
402
|
+
<footer class="provenance">
|
|
403
|
+
Compiled {{compiledAtDate}} from <code>{{sourcesJoined}}</code>. Program <code>{{program.slug}}</code>, status <code>{{program.status}}</code>{{#hasVersionSpan}}, <code>{{program.versionSpan.from}}</code> → <code>{{program.versionSpan.to}}</code>{{/hasVersionSpan}}. Template <code>{{provenance.templateVersion}}</code>. Every stat above is derived, never hand-typed.
|
|
404
404
|
</footer>
|
|
405
405
|
|
|
406
406
|
</div>
|
package/dist/index.js
CHANGED
|
@@ -5512,7 +5512,7 @@ async function buildShowReportModel(options) {
|
|
|
5512
5512
|
const title = frontmatter.title ?? options.slug;
|
|
5513
5513
|
const corrections = buildCorrections(ledgerRows, options.ledgerProgramName);
|
|
5514
5514
|
return {
|
|
5515
|
-
schemaVersion:
|
|
5515
|
+
schemaVersion: 2,
|
|
5516
5516
|
program: {
|
|
5517
5517
|
id: options.slug,
|
|
5518
5518
|
slug: options.slug,
|
|
@@ -5535,7 +5535,7 @@ async function buildShowReportModel(options) {
|
|
|
5535
5535
|
...corrections ? { corrections } : {},
|
|
5536
5536
|
parked,
|
|
5537
5537
|
cast: [...cast.entries()].map(([name, commits]) => ({ name, commits, source: "commit-trailer" })),
|
|
5538
|
-
|
|
5538
|
+
provenance: {
|
|
5539
5539
|
sources: [options.planRelPath, options.queueRelPath, ledgerRelPath],
|
|
5540
5540
|
compiledAt: options.compiledAt,
|
|
5541
5541
|
templateVersion: options.templateVersion
|
|
@@ -5592,18 +5592,23 @@ function buildShowReportView(model) {
|
|
|
5592
5592
|
sections: model.sections.map((section) => ({
|
|
5593
5593
|
...section,
|
|
5594
5594
|
hasNote: typeof section.note === "string" && section.note.length > 0,
|
|
5595
|
+
// Mustache cannot count a list, so any "N items" label in a template needs
|
|
5596
|
+
// the count precomputed here. Added for the compiled arcane-ui template,
|
|
5597
|
+
// which asks for a per-section row count and a parked total (SR-06).
|
|
5598
|
+
rowCount: section.rows.length,
|
|
5595
5599
|
rows: section.rows.map(toRowView)
|
|
5596
5600
|
})),
|
|
5597
5601
|
corrections,
|
|
5598
5602
|
hasCorrections: corrections !== void 0,
|
|
5599
5603
|
hasParked: model.parked.length > 0,
|
|
5604
|
+
parkedCount: model.parked.length,
|
|
5600
5605
|
hasCast: model.cast.length > 0,
|
|
5601
5606
|
hasOutcome: typeof model.outcome === "string" && model.outcome.length > 0,
|
|
5602
5607
|
hasVersionSpan: model.program.versionSpan !== void 0,
|
|
5603
5608
|
needsYouCount: model.needsYou.length,
|
|
5604
|
-
compiledAtDate: model.
|
|
5609
|
+
compiledAtDate: model.provenance.compiledAt.slice(0, 10),
|
|
5605
5610
|
legend: CATEGORY_ORDER.map((key) => ({ key, label: CATEGORY_LABELS[key] })),
|
|
5606
|
-
sourcesJoined: model.
|
|
5611
|
+
sourcesJoined: model.provenance.sources.join(", ")
|
|
5607
5612
|
};
|
|
5608
5613
|
}
|
|
5609
5614
|
function renderShowReport(model, templateHtml) {
|