arcane-cli 0.36.1 → 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
|
|
@@ -5606,9 +5606,9 @@ function buildShowReportView(model) {
|
|
|
5606
5606
|
hasOutcome: typeof model.outcome === "string" && model.outcome.length > 0,
|
|
5607
5607
|
hasVersionSpan: model.program.versionSpan !== void 0,
|
|
5608
5608
|
needsYouCount: model.needsYou.length,
|
|
5609
|
-
compiledAtDate: model.
|
|
5609
|
+
compiledAtDate: model.provenance.compiledAt.slice(0, 10),
|
|
5610
5610
|
legend: CATEGORY_ORDER.map((key) => ({ key, label: CATEGORY_LABELS[key] })),
|
|
5611
|
-
sourcesJoined: model.
|
|
5611
|
+
sourcesJoined: model.provenance.sources.join(", ")
|
|
5612
5612
|
};
|
|
5613
5613
|
}
|
|
5614
5614
|
function renderShowReport(model, templateHtml) {
|