Repository navigation
What a consumer must do. Nothing. Both additions are new keys that every
earlier release refused, so no template that rendered before renders
differently. options.limits gains editorBytes; a host that passes a full
limits object needs no change, because absent limits take their defaults.
Added
$spread: a group of siblings per item, spliced flat (document builder,
owner-approved q_52d2323e, "repeating sections"), SPEC.md section 8.
{ "$each": "models", "$as": "model", "$spread": true, "$value": [ ... ] }
splices each element of$valueinto the parent array, per item, in order:
a page break, a heading, a lines table and a subtotal per pricing model.
Without it an array$valuerenders as nested arrays ([[4 blocks], [4 blocks]]), which fine-print refuses; a per-block$eachgives the wrong
order. Each element is an element of the PARENT array: matched by the
spread's own profile path, it may carry$if,$each, a splice or a spread,
and its$firstis the spread's, so "not before the first item" is
"$if": "!$first"(fancy-expr's negation is!; there is nonot). Same
bindings, iteration and output bounds as a splice; an element's directive
counts one more towarddirectiveDepth. Errors:$spreadother thantrue,
or without$value, isDIRECTIVE_INVALID; a non-array$valueis the new
DIRECTIVE_SPREAD_NOT_ARRAY.- The
editorenvelope key (document builder, owner-approved q_b83ac35f),
SPEC.md sections 2 and 10: an optional object holding a visual builder's own
source. Never read byinspect,validateData,renderorpreview, never
output, never changed. It is bounded by the newlimits.editorBytes(default
262144,TEMPLATE_EDITOR_TOO_LARGEat/editor) and no longer counts toward
templateBytes. A non-object isTEMPLATE_SHAPE. - An end-to-end test (
php/tests/QuoteSpreadFinePrintTest.php): conformance
rowtemplate/directives0033, a quote with two pricing models, is rendered
and written through fine-print, which validates it, lints it with no error
and reads back one page per model. - Sabotages S59-S68, T59-T68 and P59-P68 (
$spreadandeditor).
Changed
-
Tests: fancy-conformance pin moved from 0.45.0 to 0.55.0 in all three
legs. 0.54.0 adds the$spreadrows and 0.55.0 theeditorrows; no
existingtemplate/*row changed between 0.45.0 and 0.55.0. -
CI: the lab-certificate gate verifies against the lab's rotated key list.
The lab's first signing key is retired: certificates it already issued still
verify, and nothing new it signs ever can. Consumers do nothing. -
Releases need a lab-run certificate.
publish.ymlgains a read-only
lab-certificatejob that every publishing job needs: a tag is published only
when the fancy-labs lab has certified that exact version and commit. Consumers
do nothing; this changes how releases are cut, not what the package does. -
Docs:
AGENTS.mdis now the guide to using this package (install, its entries on the Fancy MCP catalog server, API essentials, traps), and it ships in the package. The contributor notes it held moved toCONTRIBUTING.md, andCLAUDE.mdis now a symlink to it. The README points to the MCP server and toAGENTS.md. No code changed; nothing to do.