compline: build the full hour, sharing Prime's resolver helpers
Deploy / deploy (push) Successful in 38s

Ordo is Monastic 1617 as a base, with deliberate Tridentine 1906
additions: the "In manus tuas" short responsory, the Nunc Dimittis
with its "Salva nos" antiphon, the fuller Preces (Monastic's own is
shorter), and Lent's "Christe, qui lux es et dies" hymn replacement
(English translation marked draft, pending a real historical one).
Psalms 4, 90, 133 are fixed daily with real verified text, unlike
Prime's weekday-rotated psalms.

The closing Marian antiphon now picks Alma Redemptoris Mater / Ave
Regina Caelorum / Regina Caeli / Salve Regina by real season, using
the calendar work from the previous commit — except Ave Regina
Caelorum's own window (Candlemas through the day before Maundy
Thursday) doesn't align to any single season value, so that one case
checks the real date directly instead of going through the by-season
table.

resolve-common.ts extracts the resolve/status/doxology/antiphon
helpers Prime already had into something Compline can share; a few
propers files lose their "prime-" prefix now that both hours use them.
This commit is contained in:
2026-08-10 05:27:40 -04:00
parent 67037469fc
commit ec448bc35b
41 changed files with 1270 additions and 93 deletions
+17 -3
View File
@@ -34,9 +34,12 @@ export type HourPart =
// `label`, when given, is shown as a heading (e.g. "Preces", "Pretiosa") —
// omitted for parts that are just connective tissue around a reading
// (a blessing, a closing dialogue) that don't read as their own section.
| { kind: 'preces'; textRef: PropersRef; label?: string }
// `omitOnDouble` drops the whole part on a Double-or-higher feast (real
// Preces are suppressed above a certain rank) — see calendar/
// isDoubleOrHigher for how far that's actually wired up today.
| { kind: 'preces'; textRef: PropersRef; label?: string; omitOnDouble?: true }
| { kind: 'psalm'; psalmNumber: number; verses?: string; antiphonRef?: PropersRef }
| { kind: 'canticle'; canticleId: string; antiphonRef?: PropersRef }
| { kind: 'canticle'; canticleId: string; textRef: PropersRef; antiphonRef?: PropersRef }
| {
kind: 'lesson';
textRef: PropersRef;
@@ -57,6 +60,7 @@ export type HourPart =
kind: 'by-day-kind';
resolvedKind: 'chapter' | 'preces';
label?: string;
omitOnDouble?: true;
sundayOrFeastRef: PropersRef;
ferialRef: PropersRef;
}
@@ -72,6 +76,16 @@ export type HourPart =
// in full here, distinct from the incipit-or-full opening attached to the
// first psalm. See hours/antiphon.ts.
| { kind: 'closing-antiphon' }
// Compline's canticle — fixed year-round (not weekday-variable the way
// Prime's psalm antiphon is), framed by "Salva nos" incipit-or-full
// before and full after, same rank rule as any other antiphon. Resolves
// to a 'canticle' ResolvedPart (with the opening antiphon inline) plus a
// standalone 'antiphon' ResolvedPart for the closing repeat.
| { kind: 'nunc-dimittis' }
// Compline's closing Marian antiphon (with its own versicle and collect
// baked into the same text block) — resolved by season, defaulting to
// Salve Regina. See hours/marian-antiphon.ts.
| { kind: 'marian-antiphon' }
// Unused by Prime/Compline/the little hours — exercised starting milestone 4.
| { kind: 'variable'; resolve: 'by-weekday' | 'by-season' | 'by-feast-rank' };
@@ -85,7 +99,7 @@ export type ResolvedPart =
| { kind: 'hymn' | 'chapter' | 'responsory' | 'versicle' | 'prayer'; text: ResolvedText }
| { kind: 'preces'; text: ResolvedText; label?: string }
| { kind: 'psalm'; psalmNumber: number; antiphon?: ResolvedText; verses: ResolvedVerse[] }
| { kind: 'canticle'; canticleId: string; antiphon?: ResolvedText }
| { kind: 'canticle'; canticleId: string; text: ResolvedText; antiphon?: ResolvedText }
// A standalone antiphon, said on its own rather than framing a psalm —
// see 'closing-antiphon' above.
| { kind: 'antiphon'; text: ResolvedText }