@homepages/concrete 5.0.0 → 6.0.1

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.
Files changed (269) hide show
  1. package/CHANGELOG.md +342 -0
  2. package/README.md +28 -17
  3. package/codemods/fill-is-a-source.mjs +533 -0
  4. package/codemods/manifest.json +16 -0
  5. package/codemods/reads-replace-reconcile.mjs +285 -0
  6. package/dist/artifact/playground/client/assets/{index-D1fwOGVK.js → index-u3T7DiSN.js} +96 -96
  7. package/dist/artifact/playground/client/index.html +1 -1
  8. package/dist/artifact/playground/host.mjs +23 -23
  9. package/dist/base.css +3 -8
  10. package/dist/browser/site-config.js +1 -16
  11. package/dist/browser/submit-lead.js +0 -31
  12. package/dist/cli/build/artifact.js +16 -23
  13. package/dist/cli/build/captures.js +0 -6
  14. package/dist/cli/build/esbuild.js +0 -17
  15. package/dist/cli/build/fixtures.js +15 -30
  16. package/dist/cli/build/icons.js +0 -3
  17. package/dist/cli/build/index.js +1 -1
  18. package/dist/cli/build/playground.js +4 -8
  19. package/dist/cli/build/sections.js +9 -30
  20. package/dist/cli/build/source.js +52 -27
  21. package/dist/cli/build/static.js +4 -25
  22. package/dist/cli/capture/bundle.js +0 -9
  23. package/dist/cli/capture/capture-browser.js +0 -14
  24. package/dist/cli/capture/capture.js +1 -8
  25. package/dist/cli/check/analyze.js +2 -5
  26. package/dist/cli/check/index.js +1 -1
  27. package/dist/cli/check/line-endings.js +52 -0
  28. package/dist/cli/check/load-workspace.js +3 -8
  29. package/dist/cli/check/portable-names.js +48 -0
  30. package/dist/cli/check/render/class-conflicts.js +0 -5
  31. package/dist/cli/check/render/html.js +0 -1
  32. package/dist/cli/check/render/invariants.js +0 -5
  33. package/dist/cli/check/render/island-frames.js +0 -25
  34. package/dist/cli/check/render/marker-coverage.js +0 -20
  35. package/dist/cli/check/render/nav.js +0 -33
  36. package/dist/cli/check/report.js +0 -3
  37. package/dist/cli/check/stages/bundles.js +1 -9
  38. package/dist/cli/check/stages/composition.js +3 -2
  39. package/dist/cli/check/stages/dependencies.js +7 -38
  40. package/dist/cli/check/stages/fixtures.js +3 -31
  41. package/dist/cli/check/stages/lint.js +2 -2
  42. package/dist/cli/check/stages/logic.js +3 -34
  43. package/dist/cli/check/stages/relations.js +46 -0
  44. package/dist/cli/check/stages/render.js +0 -1
  45. package/dist/cli/check/stages/sections.js +3 -3
  46. package/dist/cli/check/stages/stylesheet.js +1 -1
  47. package/dist/cli/check/stages/typecheck.js +5 -11
  48. package/dist/cli/check/stages/workspace.js +36 -14
  49. package/dist/cli/commands.js +9 -56
  50. package/dist/cli/currency/cache.js +4 -17
  51. package/dist/cli/currency/decide.js +0 -14
  52. package/dist/cli/currency/opt-out.js +0 -7
  53. package/dist/cli/currency/preamble.js +3 -24
  54. package/dist/cli/currency/prompt.js +0 -1
  55. package/dist/cli/currency/refresh.js +5 -12
  56. package/dist/cli/currency/resolve-latest.js +3 -64
  57. package/dist/cli/currency/version-order.js +0 -12
  58. package/dist/cli/dev/crop.js +0 -2
  59. package/dist/cli/dev/http.js +0 -13
  60. package/dist/cli/dev/index.js +3 -4
  61. package/dist/cli/dev/islands.js +25 -70
  62. package/dist/cli/dev/listen.js +26 -0
  63. package/dist/cli/dev/load-template.js +0 -1
  64. package/dist/cli/dev/request-error.js +0 -4
  65. package/dist/cli/dev/server.js +46 -52
  66. package/dist/cli/dev/tsconfig-paths.js +0 -13
  67. package/dist/cli/dev/vite.js +9 -38
  68. package/dist/cli/dev/workspace-reader.js +4 -34
  69. package/dist/cli/media/cache.js +4 -51
  70. package/dist/cli/media/derive.js +2 -94
  71. package/dist/cli/media/deriver-plugin.js +0 -2
  72. package/dist/cli/media/frame-rung-floor.js +0 -6
  73. package/dist/cli/property/index.js +0 -4
  74. package/dist/cli/property/library.js +6 -24
  75. package/dist/cli/publish/client.js +0 -1
  76. package/dist/cli/publish/freshness.js +0 -2
  77. package/dist/cli/publish/git.js +2 -8
  78. package/dist/cli/publish/index.js +8 -15
  79. package/dist/cli/publish/pack.js +5 -6
  80. package/dist/cli/publish/report.js +0 -6
  81. package/dist/cli/publish/target.js +16 -13
  82. package/dist/cli/publish/wire.js +0 -6
  83. package/dist/cli/tar.js +2 -9
  84. package/dist/cli/upgrade/codemod.js +0 -8
  85. package/dist/cli/upgrade/index.js +0 -24
  86. package/dist/cli/upgrade/manifest.js +0 -12
  87. package/dist/cli/upgrade/plan.js +0 -17
  88. package/dist/cli/upgrade/stage.js +12 -15
  89. package/dist/cli/version.js +0 -8
  90. package/dist/cli/workspace.js +2 -34
  91. package/dist/cli.js +4 -21
  92. package/dist/css/compile.js +25 -28
  93. package/dist/css/graph.js +3 -10
  94. package/dist/css/inline.js +3 -16
  95. package/dist/css/rules.js +6 -43
  96. package/dist/design-system/format-variants.js +0 -22
  97. package/dist/eslint/authoring.js +0 -2
  98. package/dist/eslint/correctness.js +0 -7
  99. package/dist/eslint/rules/editor-reason.js +0 -11
  100. package/dist/eslint/rules/island-ids.js +0 -1
  101. package/dist/eslint/rules/jsx-visitor.js +0 -13
  102. package/dist/eslint/rules/no-editor-globals.js +0 -2
  103. package/dist/eslint/rules/no-raw-values.js +0 -1
  104. package/dist/fixtures/brand.js +0 -1
  105. package/dist/fixtures/bundle-rule.js +4 -9
  106. package/dist/fixtures/canonical.d.ts +20 -0
  107. package/dist/fixtures/image-dimensions.js +0 -1
  108. package/dist/fixtures/load.js +8 -17
  109. package/dist/fixtures/media-plugin.js +4 -31
  110. package/dist/fixtures/media.js +0 -21
  111. package/dist/fixtures/package-stylesheets.js +0 -6
  112. package/dist/fixtures/property.js +16 -15
  113. package/dist/fixtures/resolve.js +102 -29
  114. package/dist/fixtures/rows.js +12 -11
  115. package/dist/fixtures/synthesize-empties.js +0 -4
  116. package/dist/fixtures.d.ts +19 -4
  117. package/dist/fixtures.js +0 -18
  118. package/dist/index.d.ts +8 -9
  119. package/dist/index.js +2 -11
  120. package/dist/islands/client-module.js +0 -11
  121. package/dist/islands/marker.js +0 -33
  122. package/dist/node_modules/.pnpm/fflate@0.8.3/node_modules/fflate/esm/browser.js +0 -20
  123. package/dist/packages/external/concrete/package.js +1 -1
  124. package/dist/packages/internal/fill-bake/dist/bake-property-ref.js +21 -35
  125. package/dist/packages/internal/fill-bake/dist/compute-reads.js +4 -0
  126. package/dist/packages/internal/fill-bake/dist/derive-source.js +40 -0
  127. package/dist/packages/internal/fill-bake/dist/display.js +0 -1
  128. package/dist/packages/internal/fill-bake/dist/index.js +4 -4
  129. package/dist/packages/internal/fill-vocabulary/dist/origination.js +106 -0
  130. package/dist/packages/internal/fill-vocabulary/dist/row-planners.js +1 -49
  131. package/dist/packages/internal/format-geometry/dist/capture.js +10 -240
  132. package/dist/packages/internal/format-geometry/dist/geometry.js +0 -6
  133. package/dist/packages/internal/image-ladder/dist/crop.js +0 -12
  134. package/dist/packages/internal/image-ladder/dist/policy.js +0 -14
  135. package/dist/packages/internal/island-runtime/dist/capture-holds.js +0 -13
  136. package/dist/packages/internal/island-runtime/dist/contract.js +0 -34
  137. package/dist/packages/internal/island-runtime/dist/editor-instance-context.js +0 -1
  138. package/dist/packages/internal/island-runtime/dist/index.js +0 -34
  139. package/dist/packages/internal/island-runtime/dist/island-id-context.js +0 -1
  140. package/dist/packages/internal/island-runtime/dist/use-capture-ready.js +0 -15
  141. package/dist/packages/internal/island-runtime/dist/use-editor.js +0 -10
  142. package/dist/packages/internal/island-runtime/dist/use-island-id.js +0 -32
  143. package/dist/packages/internal/property-facts/dist/derive-facts-view.js +2 -17
  144. package/dist/packages/internal/property-facts/dist/index.js +1 -1
  145. package/dist/packages/internal/property-facts/dist/{property-facts-CSdkSuD7.js → property-facts-5pxZnlkh.js} +13 -2
  146. package/dist/packages/internal/section-contracts/dist/cap-contract.js +1 -18
  147. package/dist/packages/internal/section-contracts/dist/catalog.js +16 -8
  148. package/dist/packages/internal/section-contracts/dist/choose-select-contract.js +12 -16
  149. package/dist/packages/internal/section-contracts/dist/count-bounds-contract.js +5 -11
  150. package/dist/packages/internal/section-contracts/dist/display-contract.js +2 -0
  151. package/dist/packages/internal/section-contracts/dist/display-evidence-contract.js +2 -8
  152. package/dist/packages/internal/section-contracts/dist/fill-spec-view.js +13 -0
  153. package/dist/packages/internal/section-contracts/dist/index.js +2 -1
  154. package/dist/packages/internal/section-contracts/dist/interpolation-contract.js +16 -42
  155. package/dist/packages/internal/section-contracts/dist/list-fill-contract.js +24 -43
  156. package/dist/packages/internal/section-contracts/dist/name-title-contract.js +11 -18
  157. package/dist/packages/internal/section-contracts/dist/poi-curation-contract.js +10 -12
  158. package/dist/packages/internal/section-contracts/dist/pooling-field-contract.js +3 -13
  159. package/dist/packages/internal/section-contracts/dist/row-fill-contract.js +6 -18
  160. package/dist/packages/internal/section-contracts/dist/runners.js +21 -13
  161. package/dist/packages/internal/section-contracts/dist/source-contract.js +13 -2
  162. package/dist/packages/internal/section-contracts/dist/writer-reads-fact-contract.js +31 -0
  163. package/dist/packages/internal/source-resolution/dist/index.js +1 -9
  164. package/dist/packages/internal/template-artifact/dist/hash.js +0 -8
  165. package/dist/packages/internal/template-artifact/dist/index.js +1 -1
  166. package/dist/packages/internal/template-artifact/dist/layout.js +0 -39
  167. package/dist/packages/internal/template-artifact/dist/manifest.js +1 -9
  168. package/dist/packages/internal/template-artifact/dist/sha256.js +0 -1
  169. package/dist/packages/internal/template-artifact/dist/verify.js +2 -4
  170. package/dist/packages/internal/template-contracts/dist/collection-editing.js +0 -16
  171. package/dist/packages/internal/template-contracts/dist/content-categories.js +0 -4
  172. package/dist/packages/internal/template-contracts/dist/facts-view.d.ts +16 -10
  173. package/dist/packages/internal/template-contracts/dist/facts-view.js +15 -28
  174. package/dist/packages/internal/template-contracts/dist/layout.js +0 -7
  175. package/dist/packages/internal/template-contracts/dist/markers.js +0 -29
  176. package/dist/packages/internal/template-contracts/dist/select-key.js +0 -6
  177. package/dist/packages/internal/template-contracts/dist/slot-catalog.d.ts +56 -34
  178. package/dist/packages/internal/template-contracts/dist/slot-catalog.js +22 -389
  179. package/dist/platform/file-url.js +8 -0
  180. package/dist/platform/fs.js +73 -0
  181. package/dist/platform/names.js +63 -0
  182. package/dist/platform/order.js +7 -0
  183. package/dist/platform/paths.js +66 -0
  184. package/dist/platform/process.js +97 -0
  185. package/dist/playground/host/page-state.js +0 -2
  186. package/dist/playground/host/paths.js +0 -1
  187. package/dist/playground/layout.js +0 -7
  188. package/dist/playground/wire.js +0 -8
  189. package/dist/primitives/FrameShell.js +0 -18
  190. package/dist/primitives/Image.d.ts +5 -1
  191. package/dist/primitives/Image.js +2 -68
  192. package/dist/primitives/Section.js +0 -13
  193. package/dist/primitives/Tour.js +0 -26
  194. package/dist/primitives/Video.js +0 -32
  195. package/dist/primitives/embed-playback.js +0 -1
  196. package/dist/primitives/marker-attrs.js +0 -17
  197. package/dist/primitives/picture-sources.js +6 -1
  198. package/dist/primitives/probe-context.js +0 -7
  199. package/dist/primitives/slot-bindings.js +0 -46
  200. package/dist/primitives/slot-document.js +0 -11
  201. package/dist/primitives/slot-group.js +0 -9
  202. package/dist/primitives/slot-media.js +0 -27
  203. package/dist/primitives/slot-scalar.js +0 -4
  204. package/dist/primitives/slot.js +0 -6
  205. package/dist/rules/registry.js +42 -24
  206. package/dist/schema/compute.d.ts +46 -8
  207. package/dist/schema/compute.js +21 -15
  208. package/dist/schema/define-schema.d.ts +1 -1
  209. package/dist/schema/define-schema.js +37 -17
  210. package/dist/schema/extract-fill-spec.js +93 -180
  211. package/dist/schema/extract-used-facts.js +16 -158
  212. package/dist/schema/fact.d.ts +25 -12
  213. package/dist/schema/fact.js +7 -11
  214. package/dist/schema/fill-builders.d.ts +91 -366
  215. package/dist/schema/fill-builders.js +21 -259
  216. package/dist/schema/fill-declaration.d.ts +7 -69
  217. package/dist/schema/fill-declaration.js +5 -34
  218. package/dist/schema/fill-spec.js +59 -148
  219. package/dist/schema/format-presets.js +0 -12
  220. package/dist/schema/format.js +0 -7
  221. package/dist/schema/layout.js +0 -10
  222. package/dist/schema/manifest.js +0 -39
  223. package/dist/schema/property-facts.d.ts +20 -0
  224. package/dist/schema/section-nav.js +0 -15
  225. package/dist/schema/section-schema.d.ts +0 -1
  226. package/dist/schema/section-schema.js +4 -20
  227. package/dist/schema/slot-builders.d.ts +128 -117
  228. package/dist/schema/slot-builders.js +18 -201
  229. package/dist/schema/slot-ref.d.ts +63 -0
  230. package/dist/schema/slot-ref.js +33 -0
  231. package/dist/schema/slot-types.d.ts +3 -2
  232. package/dist/schema/slot-types.js +11 -20
  233. package/dist/section/declare.d.ts +14 -10
  234. package/dist/section/declare.js +13 -2
  235. package/dist/section/discovery.js +6 -21
  236. package/dist/section/groups.js +0 -6
  237. package/dist/section/materialize.js +0 -5
  238. package/dist/section/placements.js +0 -4
  239. package/dist/section/section.d.ts +8 -5
  240. package/dist/section/section.js +7 -29
  241. package/dist/styles.css +5 -0
  242. package/dist/template/define-template.d.ts +0 -4
  243. package/dist/template/define-template.js +1 -15
  244. package/dist/template/logic-build.js +8 -35
  245. package/dist/template/logic-shim.d.ts +4 -5
  246. package/dist/template/logic-shim.js +2 -6
  247. package/dist/template/logic-transform.js +0 -6
  248. package/dist/template/materialize.js +52 -43
  249. package/dist/template/mirror-types.js +43 -0
  250. package/dist/template/running-copy.js +5 -20
  251. package/dist/template/section-reads.js +83 -0
  252. package/guide/reference/cli/INDEX.md +12 -6
  253. package/guide/reference/cli/build.md +1 -1
  254. package/guide/reference/cli/check.md +1 -1
  255. package/guide/reference/cli/dev.md +3 -3
  256. package/guide/reference/cli/property-add.md +1 -1
  257. package/guide/reference/cli/property-list.md +1 -1
  258. package/guide/reference/cli/publish.md +4 -2
  259. package/guide/reference/cli/upgrade.md +1 -1
  260. package/guide/reference/rules/INDEX.md +26 -13
  261. package/package.json +4 -2
  262. package/dist/packages/internal/fact-interpolation/dist/index.js +0 -22
  263. package/dist/packages/internal/fill-bake/dist/reconcile-cross-section.js +0 -170
  264. package/dist/packages/internal/fill-vocabulary/dist/facts.d.ts +0 -32
  265. package/dist/packages/internal/fill-vocabulary/dist/facts.js +0 -131
  266. package/dist/packages/internal/template-contracts/dist/slot-overrides.js +0 -11
  267. package/dist/schema/fill-spec.d.ts +0 -18
  268. package/dist/template/reconcile.d.ts +0 -67
  269. package/dist/template/reconcile.js +0 -25
package/CHANGELOG.md CHANGED
@@ -1,5 +1,347 @@
1
1
  # @homepages/concrete
2
2
 
3
+ ## 6.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c57a69e: On Windows, `concrete dev`, `concrete check` and `concrete publish` compile a template's stylesheets. Each stylesheet `template.ts` imports was read by its absolute path, and a drive path such as `C:\Users\…\globals.css` was mistaken for a remote URL with the scheme `c:`, so no stylesheet was compiled and every template failed `css/tailwind-import` with `no stylesheet reachable from template.ts imports "tailwindcss"`. Paths on macOS and Linux were never affected, and a protocol-relative `//host/…` import is still treated as remote on every platform.
8
+
9
+ ## 6.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - 7a0f6dd: Manual: rebuild and publish again — no source changes; an artifact built by an earlier version is refused, and one built by this version is not.
14
+
15
+ BREAKING: `concrete build` writes artifact schema 2, which the platform requires from this major on.
16
+
17
+ The template directory no longer carries `logic.mjs`: a template has had no cross-section logic since `reconcile` was removed, and nothing reads the placeholder any more. The composition's slot-read index is named `read_index`. A publication built by an earlier version is refused with `framework_pre_major`; run `concrete upgrade`, then publish again.
18
+
19
+ `concrete check` refuses a `compute()` or slot-ref source whose `reads` holds a ref without a `kind`. Every ref this version writes is tagged, so only a schema from an unreleased earlier build can carry one; rebuilding fixes it.
20
+
21
+ The deprecated `f.narrative.description` and `f.year` members are gone with the `compute((f) => …)` form they served: declare `fact.description` in `reads`, and render a year from a `"use client"` island.
22
+
23
+ - f6c8d6f: Manual: where `concrete upgrade` reports a fill as yours — a walkthrough gallery, a photo pick with a contact fallback, a `contactAssign`, a brief interpolating `${facts.…}`, or a builder whose options are not an object literal — finish that fill by the line it prints; then drop from each fill's `reads` whatever its brief does not use.
24
+
25
+ BREAKING: a slot's fill is one `fill()`, and it is a kind of `source:`. The eleven builders — `textBlock`, `listFill`, `imageAssign`, `videoAssign`, `tourAssign`, `documentAssign`, `contactAssign`, `chooseFrom` and `nameRows` — and every slot builder's `fill:` option are gone:
26
+
27
+ ```ts
28
+ text.medium({
29
+ label: "Headline",
30
+ cap: 60,
31
+ source: fill({
32
+ reads: [fact.property.address, fact.description],
33
+ brief:
34
+ "A marketing headline in one sentence. Confident, no exclamation marks.",
35
+ }),
36
+ });
37
+ ```
38
+
39
+ A slot declares where its value comes from once, in `source:` — a fact, a slot, `compute(…)` or `fill(…)` — and what the model does for it is the slot's own fact: a `text` slot is written, an `image` picked from the photos, a `list.of(image())` a subset of them, a record list keyed by its `title:` field originated row by row. `fill()` takes `brief`, the whole instruction in one prose key, and four options, each legal only on a slot whose code enforces it: `none: true` (the empty answer is admitted), `count` on a list (`N`, `{ max }`, or `{ min, max }` with `min` a target that is retried toward and never padded to), `cap` on text, and `reads`. An option a slot cannot enforce is a compile error, and so is an unknown key.
40
+
41
+ `reads` is now exactly what a fill's model call is shown, and each fill's reads are its own. No standing selection of property facts rides along, and one fill's `reads` no longer widens every other fill in its section.
42
+
43
+ The retired prose keys fold into `brief`: `voice`, `content`, `pick` and `structureHint` as written, and `structure` and `perspective` as a sentence each (the third person is the default). `order: "walkthrough"` and `fallback` have no replacement: a pick keeps what its brief admits, and a pick that abstains lands empty. The types `BuiltDecision`, `ChosenRows`, `DecisionKind`, `DisplayChoice`, `NamedRows`, `RowOrigination` and `TextStructure` are gone. `FillBinding`, `FillCount`, `FillFor`, `FillInput`, `FillOptionName` and `DisplayFill` are new.
44
+
45
+ The published fill spec takes one decision shape: a `kind` stamped from the slot (`text`, `pick`, `list`, `display`), one `brief`, and one kind-tagged `reads` per decision, fact and slot refs alike. A section's schema, and the `fill: { pick }` a display entry persists, are unchanged.
46
+
47
+ What `concrete upgrade` does for you, through the `fill-is-a-source` codemod: it rewrites each builder call to `fill({…})`, merges the prose keys into its brief, moves each slot's `fill:` to `source:`, and — so that every migrated fill still sees what it saw — gives each one that used to read the standing selection of facts that selection as an explicit `reads`, hoisted once into `fill-reads.ts` as `PROPERTY` for you to prune. What it cannot decide it leaves in place and names, file by file.
48
+
49
+ - cf02216: Manual: where `concrete upgrade` reports a `none` bar it folded into a brief, rewrite that brief's last paragraph (`Produce nothing when: …`) as the brief's own sentence saying when producing nothing is right.
50
+
51
+ BREAKING: `none` is a switch, not a second brief. It takes the literal `true`, legal exactly where `none` was, and a string is a compile error:
52
+
53
+ ```ts
54
+ image({
55
+ label: "Hero",
56
+ source: fill({
57
+ brief:
58
+ "The strongest exterior photograph of the property. When no photograph shows the outside of the building, produce nothing.",
59
+ none: true,
60
+ }),
61
+ });
62
+ ```
63
+
64
+ Declaring `none` still does everything it did: the empty answer (`""`, `null`, `[]`) is admitted, a single candidate is still judged rather than taken, and a list may come back with no rows. Leave it out and an empty answer is still a defect the platform retries. What moves is the bar: the brief is the one instruction, and a fill that may produce nothing ends its brief with the sentence saying when. A separate `none` prose mostly restated the brief's own exclusion in the negative, and the model now reads one instruction instead of two.
65
+
66
+ What `concrete upgrade` does for you, through the `fill-is-a-source` codemod: each builder's `none: "…"` becomes `none: true`, and its prose joins the brief as a final paragraph, `Produce nothing when: …`. A blank `none`, which never admitted an empty answer, is dropped. Each fold is reported by line, since a joined sentence rarely reads as the author would write it.
67
+
68
+ - cdf72fe: Manual: where `concrete upgrade` reports a `reconcile` that holds rules, move each rule onto the slot it sets — `source: Section.slots.<slot>` where it copied a value, `compute({ reads }, …)` where it derived one; where it reports a `compute((f) => …)`, declare what the callback reads and take each value as a parameter.
69
+
70
+ BREAKING: a template carries no cross-section logic, and a compute reads only what it declares.
71
+
72
+ `defineTemplate` no longer takes `reconcile`, and `rule`, `set` and their types (`Edit`, `ReconcileContext`, `ReconcileRule`, `ReconcileRuleOptions`, `SetEdit`, `SiteValues`, `SiteViewOf`) are gone. A slot that depends on another section says so on its own `source:` — a slot ref to mirror it, or `compute({ reads }, fn)` to derive from it — so the dependency lives in the section that has it, and an edit upstream re-derives it:
73
+
74
+ ```ts
75
+ // before, in template.ts
76
+ export const reconcile = [
77
+ rule("the NDA prints the hero's name", { reads: [Hero.slots.property_name] },
78
+ ({ site }) => [set(Nda.slots.property_name, site.hero.property_name)]),
79
+ ];
80
+
81
+ // after, in the NDA section
82
+ property_name: text.short({ label: "Property name", source: Hero.slots.property_name }),
83
+ ```
84
+
85
+ `compute((f) => …)` — the one-argument form over the whole derive-time `Facts` view — is gone, with the tracer that recovered what its callback read. A compute's callback takes one positional value per ref in its `reads`, and `used_facts` is exactly the fact refs a section declares, so a read can no longer go missing behind a value branch or a throw. A compute that reads nothing is still `compute(() => X)`, called with no arguments. The deprecated `f.narrative.description` and `f.year` go with the view: read the description as `fact.description`. The `Facts` and `FactsNarrative` types are gone; the row types a ref hands a callback — `FactsUnit`, `FactsAddress`, `FactsPhoto` and the rest — stay.
86
+
87
+ `concrete check` no longer builds a template logic bundle, so the rules `logic/template-build-failed` and `logic/reconcile-not-exported` are retired. `concrete upgrade` deletes an empty `reconcile: []` (and a `const reconcile = []` it names) and the imports nothing uses any more, and lists every rule and every one-argument compute left to move by hand.
88
+
89
+ ### Minor Changes
90
+
91
+ - d4832be: A declaration may read another section's slots.
92
+
93
+ `compute({ reads }, fn)` hands the callback a second argument, `site`, holding exactly
94
+ the refs `reads` named — each at the referenced slot's own value type, `| undefined`.
95
+ `compute(fn)` is unchanged. A `meta.display` entry's `select(cases, { source })` takes
96
+ the same widened form, and a section value now hands out a ref per declared display
97
+ entry beside its slots (`Video.display.visibility`), so a section's visibility or
98
+ variant may depend on another's.
99
+
100
+ A fill decision's `reads` takes those same refs beside its fact keys, on every decision
101
+ whose executor can use one (`textBlock`, `listFill`, `chooseFrom`, `nameRows`, and the
102
+ row fills nested under them). The executor is shown the upstream value, labeled; what to
103
+ do with it is the brief's own prose. The emitted fill spec carries them per decision as
104
+ `slot_reads`, and as the section's own union.
105
+
106
+ `concrete check` grades the three new `relations/*` rules over the placed sections:
107
+ `relations/section-cycle` (the sections form a DAG), `relations/unplaced-read` (a read
108
+ names only sections the site map places) and `relations/fill-reads-computed` (a fill may
109
+ not read a value a `compute()` settles, which settles after every fill). They run in a
110
+ new `relations` stage, and `concrete dev` resolves fixtures through the same topological
111
+ compute pass a real site settles on.
112
+
113
+ Additive: `reconcile` is untouched and every existing template's published bytes are
114
+ unchanged.
115
+
116
+ - 6e04169: A lazy `<Image>` or `<Slot.Image>` now sizes itself. It emits `sizes="auto, <fallback>"` on the `<img>` and on every `<source>`, so a browser that supports `auto` picks the rung from the box the image actually occupies instead of assuming the whole viewport. Before, an image with no `sizes` fetched a rung for the full viewport width: on a 2× desktop, a 640px-wide image downloaded the largest rung.
117
+
118
+ `sizes` stays optional. On a lazy image (the default) your value becomes the fallback after `auto`, read by a browser that does not support `auto` yet; with none, the fallback is `100vw`, which is what an absent attribute already meant, so no browser fetches more than before.
119
+
120
+ An eager image (`loading="eager"`) is fetched before layout, where `auto` does not apply, so it renders your `sizes` unchanged, or none. A full-bleed hero needs nothing; an eager image that is not full-width should set `sizes` to its rendered width, or it fetches a rung for the whole viewport.
121
+
122
+ - 9375767: A slot may take another slot as its `source:`, and may read a sibling slot of its own section.
123
+
124
+ `source: Hero.slots.title` makes a slot a MIRROR: it holds exactly the upstream slot's
125
+ value, re-derived whenever the upstream changes. It is sugar for the identity
126
+ `compute()` over that one read — the schema carries an ordinary derived source with one
127
+ read — so a mirror settles, propagates and takes a user's whole-slot override exactly as
128
+ a computed slot does, a list-valued mirror included. Nothing writes through to the
129
+ upstream, so a mirror takes no `writeback`, and no `fill:` of its own. The upstream's
130
+ value type must be assignable to the mirror's, checked where the mirror is written.
131
+
132
+ Inside one section, a sibling slot is read through its own const — `section.slots.*`
133
+ does not exist until the section does. Hoist the slot to a `const` and name it:
134
+ `source: headline`, or `compute({ reads: [headline] }, (h) => …)`, where the callback's
135
+ argument is typed from the sibling's own value type, `| undefined`. A const cannot be read
136
+ before it is declared, so same-section reads cannot form a loop. A display entry reads
137
+ facts and other sections only.
138
+
139
+ `concrete dev` settles same-section reads in dependency order, whatever order the
140
+ `slots` record lists them in; a mirror of an absent upstream takes its own kind's empty
141
+ value.
142
+
143
+ `concrete check`:
144
+
145
+ - `relations/fill-reads-computed` now covers every SOURCED slot — a fact binding and a
146
+ mirror as well as a `compute()`. A fill reads facts and the slots a fill writes.
147
+ - `relations/mirror-type` (new) re-checks a mirror's value kind against its upstream's
148
+ in what the build actually carries.
149
+
150
+ - c15acec: `concrete check` grades only the current fill-decision shape — a stamped `kind` and one `brief`.
151
+
152
+ - **New `contract/decision-kind`.** A fill-spec decision with no `kind`, or one outside `text` · `pick` · `list` · `display`, fails, naming the decision. One still naming its executor by `type` (`text-block`, `list-fill`, …) was built by an earlier kit: rebuild the section with the current Concrete.
153
+ - The contract rules no longer carry their earlier-kit branches (`mode`, `iterate`, `order: "walkthrough"`, per-field `type`, `${facts.*}` path grading), so their messages speak only of the current shape.
154
+
155
+ - 673b9fb: `concrete check` refuses a text file with CRLF line endings, with the new rule `workspace/crlf-text`, named at the file and the line of its first CRLF. Concrete versions a template by its bytes, so a Windows checkout under Git's default `core.autocrlf=true` used to build new section and template versions from a commit nobody changed, and a build from one machine was never reused on another. A file counts as text exactly when Git's `text=auto` would convert it: images, fonts and other binaries are never graded. The rule runs on every OS, and `build` writes nothing while it fails.
156
+
157
+ To fix a workspace, add a `.gitattributes` at its root holding `* text=auto eol=lf` (new workspaces get one from `npm create @homepages/concrete`) and convert the files already checked out. The rule's page in the docs has the commands.
158
+
159
+ - 76f7c19: `concrete check` refuses the two fill shapes that contradict "a fill is shown exactly its `reads`".
160
+
161
+ - **`contract/interpolation` is now a rejection.** A `brief` or `none` carrying `${facts.…}` — a fill's own, a row field's, or a display entry's brief — fails, naming the fill, whatever path follows. Nothing expands the placeholder: declare the fact in `reads` and refer to it by name in the prose.
162
+ - **New `contract/writer-reads-fact`.** A fill that writes — a `text` slot, a list whose items or keys the model writes, or a list carrying a filled `text` row field — must read at least one fact, on the fill or on any of its row fields. A pick and a display entry are exempt: their candidates are their evidence. A read of another section's slot does not count.
163
+
164
+ - 5f01dc1: `concrete check` refuses a name that would not name the same file on Windows and macOS, with a new rule, `workspace/unportable-name`. It grades every source file path, the template key, every section key and every fixture id, on every OS, including Linux, where all of these names are legal. A name is refused when:
165
+
166
+ - it differs from a sibling only by case or Unicode form, like section keys `Home` and `home`. Windows and macOS keep those as one file, so one would overwrite the other in the artifact. The finding names both.
167
+ - it is a device name Windows reserves (`con`, `nul`, `aux`, `com1`, `lpt1`…), in any case and with any extension (`nul.json`).
168
+ - it ends in a dot or a space, which Windows strips.
169
+ - it contains a character Windows refuses in a file name: `:`, `\`, `<`, `>`, `"`, `|`, `?`, `*` or a control character.
170
+ - it is a template key, section key or fixture id that is not in composed Unicode form (NFC). Nothing normalizes your own strings, and macOS treats the decomposed spelling of an accented name as the same file as the composed one. A source file's spelling is left alone, because macOS can list a composed file in decomposed form and the build records every path composed anyway. A decomposed file beside its composed twin is still refused as a pair.
171
+
172
+ `concrete build` grades every path of the artifact the same way before it deletes or writes anything in the output directory. That covers names derived from your files too, such as two identical images named `Hero.png` and `hero.png` in different folders.
173
+
174
+ - ad74f64: Concrete now works on Windows.
175
+
176
+ - Fixed `concrete check`, `build` and `publish` failing on every module on Windows with `Received protocol 'c:'`. Modules that load the framework, or that import a file outside the workspace, imported it by a bare Windows path, which Node reads as a URL with the scheme `c:`. They now import it by a `file:` URL, which works on every platform.
177
+ - Fixed islands never hydrating in `concrete dev` on Windows. The dev server checked whether a component belonged to the workspace by comparing Vite's forward-slash module id with a backslash path. On Windows those never match, so no `"use client"` component was wrapped. Paths in both spellings are now compared by what they point to, and on Windows that comparison ignores case, as the filesystem does.
178
+ - Added `concrete publish --env-file <path>`, which reads `CONCRETE_TOKEN` and `CONCRETE_API_URL` from the dotenv file you name. It lets a library that keeps one key file per environment choose one without sourcing it in a shell, so the same command works in PowerShell, cmd and bash. The named file wins over an exported `CONCRETE_TOKEN`, and the workspace's `.env` is not read.
179
+
180
+ - 72b83b0: A declaration reads a fact, a slot and a display entry through one typed ref.
181
+
182
+ Every `fact.*` entry is now a REF as well as a binding, and the namespace grows to the
183
+ whole fact registry: beside the three containers sit the readable-only entries — the
184
+ pools `fact.photos`, `fact.videos`, `fact.tours`, `fact.floor_plans`, `fact.documents`,
185
+ `fact.document_notes`, and `fact.description`. Each is legal in any `reads` and illegal
186
+ as a `source:`, by type. `fact.unit` and `fact.contact` stay namespaces holding the
187
+ primary row's leaves, and `fact.property` names no entry either. The emitted `direct`
188
+ literal is unchanged, byte for byte, so nothing a slot binds moves.
189
+
190
+ `compute({ reads }, fn)` now hands the callback ONE POSITIONAL VALUE PER REF, in
191
+ `reads` order — facts and slots mixed in one list — each at that ref's own value type,
192
+ a slot's `| undefined`. There is no `f` and no `site`, so a body sees exactly what it
193
+ declared and a section keyed `unit` cannot shadow a fact container:
194
+
195
+ ```ts
196
+ source: compute(
197
+ { reads: [fact.property.address, Hero.slots.property_name] },
198
+ (address, heroName) => heroName ?? address.street ?? ""
199
+ );
200
+ ```
201
+
202
+ This REPLACES the `(f, site)` callback and the `site` view added in the previous
203
+ minor, which were never released. `compute(fn)` — the one-argument form over the whole
204
+ `Facts` view — is unchanged and stays as the legacy form until the next major, still
205
+ traced for its `used_facts`; prefer `reads` in new code, since a traced read can go
206
+ missing behind a value branch or a throw where a declared one cannot.
207
+
208
+ A fill decision's `reads` takes the same refs in place of fact-key strings:
209
+ `reads: ["photos"]` becomes `reads: [fact.photos]`, and the dotted form
210
+ (`"floor_plans.units"`) retires — the slice always copied the whole key, so the
211
+ remainder was documentation. Which keys the slice can widen to is unchanged, and
212
+ `concrete check` still grades it (`contract/reads-readable`). The emitted fill spec's
213
+ fact-key list is unchanged.
214
+
215
+ Serialized reads are kind-tagged — `{kind:"fact", key}` and `{kind:"slot", section,
216
+ slot}` — on a compute's `reads` and on a decision's `slot_reads`. A reader treats a
217
+ missing tag as a slot ref, so the previous minor's untagged shape still parses.
218
+
219
+ - 107df98: The fact registry spells the description as one fact and carries no year.
220
+
221
+ `narrative` held a single member, so readers wrote `f.narrative.description` to reach one string. The registry entry is now `description` — a `string | null` at the same canonical path — and a `compute()` reads it as `f.description`.
222
+
223
+ The ambient `year` is gone. A year is not property content: it is read from the clock, and the sanctioned way for a section to reach the clock is a `"use client"` island, which server-renders, so the published HTML still carries a year and a reader with JavaScript off sees one.
224
+
225
+ Neither change breaks a callback you have already written: `f.narrative.description` and `f.year` still compile and still return what they did, and `f.narrative.description` still reports the description fact to intake. Both are deprecated and go with the `compute((f) => …)` form itself.
226
+
227
+ ### Patch Changes
228
+
229
+ - 9f87c27: A capture now waits up to 60 seconds, not 15, for a page's islands to hydrate and for its network to go quiet before it fails. A map island drawn without a GPU can take about 15 seconds to finish, so a slow machine failed map pages that would have captured moments later. The wait is only a ceiling: a page that settles sooner is captured as soon as it settles, and a page that never settles still fails, naming the step it stopped at.
230
+ - A comparable's `photo_url` is the source's own link, and nothing in the platform copies it anywhere else. This is a clarification of what the member has always been for a template author, not a change of shape: it is still a URL or null, and `f.comparables[].photo_url` reads the same as it did.
231
+
232
+ Worth knowing because the capture gate decodes every image and fails the artifact on the first one that will not load: a comp photo points at the listing source's CDN, so a template that renders one stakes that page on a host it does not control. That is an accepted risk rather than an oversight — measured across sale years 1996 through 2026, those URLs resolve — and the fixtures carry live ones on purpose so a dead URL reddens a golden rather than passing quietly.
233
+
234
+ - e34eaf9: Type surface only — nothing a template reads or draws changes.
235
+
236
+ A comparable's `stories` holds a half. The platform's column and facts member were integers, so a source reporting 1.5 — about 40% of the rows that state a storey count at all — was carried as a blank rather than rounded into a figure nobody stated. Both are `numeric(3,1)` now, like `baths`. That reaches this tarball only as a declaration, through the media library's upload types, so the bytes move without any behaviour moving with them.
237
+
238
+ `f.comparables[].stories` is unchanged here: it was already typed `number | null`, which holds `1.5` as readily as `1`. What changes is upstream — a template that prints the member will start seeing a half where it used to see nothing, and one that formats it should not assume an integer.
239
+
240
+ - d8391f6: A comparable now counts as complete only when it states its beds, baths and square feet, as well as its street, coordinates and price. `beds`, `baths` and `sqft` are `required` members of the `comparables` row in the fact graph, and the platform's Generate gates read that declaration. A property whose comps all lack one of the three is asked to fill it in before it generates, so a template drawing `f.comparables` can expect those three figures on every row the user completed. A comps table that divides price by size no longer has to plan for a missing size on a finished comp. Nothing a template declares changes.
241
+
242
+ The platform's comparables wire contract also lets the user type the rest of a comp's listing record (year built, lot size, stories, units, HOA, list price, listed date, MLS number, description, property type). That part is type surface only: it reaches this tarball as declarations, through the media library's upload types. `f.comparables[]` members and their types are unchanged.
243
+
244
+ - 331ed2d: The platform now runs `compute({ reads }, …)` the same way the fixture resolver does. A fact-only compute gets its values positionally when its section fills. A compute or mirror that reads a slot, whether another section's or a sibling's, settles over the whole page once every section has filled, upstream first. It settles again whenever a slot it reads is edited, or the section it reads is shown or hidden. A slot the user has overridden keeps its value. A legacy `compute((f) => …)` still gets the whole facts view.
245
+
246
+ The one change you can see in `concrete dev` and `concrete check`: a compute that reads a slot no longer logs a spurious `derive_function_threw` while the fixture bakes.
247
+
248
+ - 36c25de: `concrete build` ships each fixture photo as the file you committed, and no longer derives a responsive ladder for it. A fixture photo is sample content: it reaches the playground and a rendered template's captures, never a published site, and `concrete dev` has always served it as its master. Deriving a ladder for a whole sample property was most of a cold build — tens of minutes on a workspace with a hundred photos — and most of the artifact `concrete publish` uploads.
249
+
250
+ What changes for you: a first build or publish on a new machine or a fresh clone takes minutes rather than most of an hour, and the artifact is a fraction of its former size. In the hosted playground a fixture photo now renders as one `<img>` with no `srcset`, exactly as it does under `concrete dev`. An image a section imports is unchanged: it is part of the template's design, it does reach published sites, and it keeps its full ladder. Building fixtures no longer needs `sharp`; building a section that imports an image still does.
251
+
252
+ - 97e0330: A fill's `count: N` now means exactly N, so `concrete check` treats it as a floor as well as a ceiling. A literal count below its slot's `min` is rejected, the same as a range whose `max` cannot reach it. An inverted range such as `count: { min: 9, max: 6 }` is also rejected, even when both ends fit the slot.
253
+
254
+ The platform no longer pads a short list. A list that comes back outside its count is asked again, up to three times. If it is still short, it is kept as the model produced it; if it is still over, it is cut to `max`. A thin section is its `visibility` entry's call.
255
+
256
+ - b479d22: A workspace that sits inside a git-ignored directory now builds to the same bytes twice, and its source digest lists its files.
257
+
258
+ From inside an ignored directory, neither Tailwind's class scan nor git honours the workspace's own `.gitignore`. The stylesheet then scanned `.concrete/` (a previous build's output and the caches) and `node_modules/`, so a second `concrete build` of an unchanged tree could emit a different `template.css` and `content_hash`. The source digest, which `publish` compares to decide whether a build is current, listed no files at all. Concrete now excludes `.concrete/` and `node_modules/` from both itself, wherever the workspace sits, and the digest falls back to walking the tree when git ignores it.
259
+
260
+ `concrete build --out <dir>` with a directory inside the workspace no longer feeds a previous artifact there into the stylesheet's class scan.
261
+
262
+ - 310e6cf: Type surface only — nothing a template reads or draws changes.
263
+
264
+ The platform's auto-fill status contract gained a per-producer breakdown: an entry for a fact that several jobs fill now carries `kinds`, one member per producing job kind with its own state and in-flight count, beside the rolled-up state it already had. Comparables are the fact that needed it — three jobs fill that one pool and the interface reports each in a different place. That contract reaches this tarball as declarations, through the media library's upload types, so the bytes move without any behaviour moving with them.
265
+
266
+ A template still reads comparables through `f.comparables`, whose members are unchanged here.
267
+
268
+ - 1d52805: The transition window that 4.0.0 opened for the platform's names is closed. `base.css` styles `.concrete-frame` alone, and `readSiteConfig()` reads `#concrete-site-config` alone, with no fallback to `#tr-site-config`. The platform now stamps only the new names, in every environment, around every template it publishes.
269
+
270
+ This asks nothing of a workspace that has run `concrete upgrade` to 4.0.0 or later. The `platform-namespace` codemod already moved a template's own reads of `.tr-frame`, `.tr-root` and `#tr-site-config` onto the new names, and it still does for a workspace upgrading from an older release.
271
+
272
+ - 41b2aba: Every command the package prints or documents now runs as written in PowerShell and cmd as well as bash and zsh.
273
+
274
+ - Fixed the Playwright install line that `concrete build` and `concrete dev` print when a capture cannot run. It joined two commands with `&&`, which PowerShell 5.1 cannot parse. It now prints each command on its own line: `npm install --save-dev @playwright/test`, then `npx playwright install chromium`.
275
+ - The CLI reference's _Staying current_ section shows `HOMEPAGES_NO_AUTO_UPDATE` in all three spellings: bash and zsh, PowerShell, and cmd.
276
+ - The README states the prerequisites: Node `^22.13.0 || >=24` with its npm, git optionally, and Playwright's Chromium for image and document templates.
277
+
278
+ - 79d114b: A comparable row now carries the record the platform collects for it, beside the address and price it already had: `year_built`, `lot_sqft`, `stories`, `units` (the comp building's, not the subject's), `hoa_monthly`, `days_on_market`, `list_price`, `listed_date`, `mls_number`, `description` and `property_type`. Every one is nullable, and a row nobody has collected carries null throughout — which is every row a fixture states today.
279
+
280
+ Nothing changes for a template that reads the members it already read. What a `compute()` over `f.comparables` can now say is wider: asking price beside sale price, days on market, age and lot size. A fixture may state any of the new members on a comp row; one it omits resolves to the same null a real bake would carry there.
281
+
282
+ - 33785b8: Type surface only. Nothing a template reads or draws changes.
283
+
284
+ The platform's comparables wire contract now carries a comp's address line 2 (`address_unit`) as its own member. It is on the comp row, the suggestion row and each ambiguous candidate (`unit`). Before, it was folded into `address_street` as ` #<unit>`. That contract reaches this tarball as declarations, through the media library's upload types, so the bytes change but no behaviour does.
285
+
286
+ A template still reads comparables through `f.comparables`, and those members are unchanged. A comp's `address_street` and `address` still print the unit, now as `<street>, <unit>`.
287
+
288
+ - a66f7ab: Type surface only — nothing a template reads or draws changes.
289
+
290
+ The platform's comparables wire contract gained the collected record and the state of collecting it: a comp row carries `collection_state`, `collection_reason`, `collected_at`, `candidates`, `history` and `user_edited_at` beside the members it already had, and a new suggestion row carries the platform's un-promoted comp offers. That contract reaches this tarball as declarations, through the media library's upload types, so the bytes move without any behaviour moving with them.
291
+
292
+ A template still reads comparables through `f.comparables`, whose members are unchanged here — the ones the previous release added (`year_built`, `list_price`, `mls_number` and the rest) are still the widest a `compute()` can see.
293
+
294
+ - 49a4e2b: Fixed several ways `concrete check`, `build` and `dev` behaved differently on Windows and macOS than on Linux:
295
+
296
+ - On Windows, `check` and `build` no longer strip the render functions out of your dependencies' modules. They used to treat every package under `node_modules` as your own code, which failed both commands.
297
+ - On Windows, `build` no longer drops islands when esbuild spells the drive letter or a folder with different capitalization from your working directory. Before, those islands disappeared from the artifact without a message.
298
+ - A workspace opened through a symlink, a Windows junction or a `subst` drive now works. The command resolves the real directory before doing anything else. Before, every file could read as outside the workspace.
299
+ - `build` now retries deleting its previous output while an antivirus scanner, the search indexer or an editor briefly holds one of its files open on Windows. Before, the build failed.
300
+ - File listings now sort the same way on every machine, and accented file names are recorded in the same Unicode form everywhere. Before, a build's chunk names and source digest could depend on the machine's locale and on the macOS file system's name form.
301
+
302
+ - b9205c7: Four Windows rough edges in the toolchain, none of which failed a command but each of which left something behind:
303
+
304
+ - `concrete dev` now shuts down cleanly when its console window is closed or Ctrl+Break is pressed, as it already did on Ctrl-C. Before, either one ended the process at once and left the Vite watcher and any capture browser running.
305
+ - `concrete dev` now answers a port Windows has reserved (an excluded port range, which fails with `EACCES`) with the same `pick another with --port <n>` sentence as a port in use, for both its own port and the module-reload socket at `--port` + 100. A `--port` above 65435, which leaves no room for that socket, is refused up front.
306
+ - The npm config read in front of every command now ends npm itself when it runs out of time, not just the `cmd.exe` npm runs under, so no npm process is left running.
307
+ - A cache write that loses to a file another process holds open no longer leaves a `*.tmp` file in the cache directory.
308
+
309
+ - e32a092: Type surface only. Nothing a template reads or draws changes.
310
+
311
+ The platform's deliverables wire contract gained the content-doc edit's response. It says whether the edit set a re-derive of other sections in motion, and gives the watermark to wait past. The contract reaches this tarball as declarations, so its bytes move without any behaviour moving with them.
312
+
313
+ A slot that reads another section's slot works exactly as before. The platform now also refreshes the reading section on the open editor canvas after the edit, with no reload.
314
+
315
+ - 2cfe95e: Every native dependency Concrete installs (esbuild, Tailwind's oxide engine, lightningcss, rollup and the optional sharp) is now checked before each release for a prebuilt binary on every supported platform: macOS arm64 and x64, Windows x64 and arm64, and Linux x64 and arm64 on glibc. An upgrade that drops one of those platforms stops the release instead of failing at your `npm install`. No runtime behavior changes.
316
+ - b3faf7e: The `fill-is-a-source` codemod keeps what an author wrote inside a builder's options, and imports `fill` where it binds.
317
+
318
+ A comment above a builder option now rides to the `fill({…})` entry that option became — above `reads`, `none`, `count` or `cap` as written, and above `brief` for the prose keys and the dropped ones — instead of being deleted with the call. A file importing from `@homepages/concrete` twice, an `import type { … }` first, now gets `fill` in its value import (never the type-only one, where the call would not bind), and every rewritten builder leaves each of its framework imports. Running it again after finishing a handed-back fill by hand no longer imports `PROPERTY` a second time.
319
+
320
+ - 6311118: Derive a list fill's origination once, from the slot it produces.
321
+
322
+ `originationFor(slot)` is now the single answer to what a fill does — write, pick
323
+ one, write items, pick keys, pick assets, curate, bound rows or keyed rows. Fill
324
+ spec extraction stamps the wire `mode` from it instead of re-reading the slot,
325
+ and both validate rules over a record list's key field ask it rather than the
326
+ decision's own `mode`.
327
+
328
+ No authoring change and no wire change: the same schema extracts the same
329
+ `fill_spec`. Two shapes that used to extract and then fail validation are now
330
+ refused at extraction, where the message can name the slot:
331
+
332
+ - a record list whose `chooseFrom`/`nameRows` rows nothing keys — the slot
333
+ declares no `title:` and no single `select` field with `values`
334
+ - a record list declaring `listFill(…)` with no pooled asset field for the picks
335
+ to land on
336
+
337
+ - 7cbe442: Internal: the checker's `${facts.…}` reference grammar now lives beside the rules that use it. `concrete check` reports exactly what it did before.
338
+ - fcc9915: The fact catalog now grades the property's `photos` pool as optional rather than blocking. A template that reads `f.photos` no longer makes a photo a question the property must answer before it can generate — the platform still asks for uploads on every property, but a listing with nothing to show is not held back by an empty pool. Nothing about how a section reads the pool changes; it can be empty where it could only be empty-and-unfinishable before, so a `compute()` over `f.photos` and an `imageAssign` without a `none` bar now meet a zero-candidate pool on real properties. Both already handle it: the computation sees `[]`, and the decision fills nothing and records it.
339
+ - 3b2e5e6: A primitive's doc comment no longer compiles into your stylesheet. `@homepages/concrete/styles.css` scans the shipped primitives so the utilities they render reach your template, and that scan used to read their JSDoc too. An example in a comment then became a real rule in any template that declared the token behind it: `Section`'s `px-gutter` compiled wherever `--spacing-gutter` was declared, and the same happened to `max-w-page`, `mx-auto`, `static` and `flex-shrink`. The shipped JavaScript now carries no JSDoc (the `.d.ts` files keep it for your editor), so your `template_css` holds only what your own sources use plus what the primitives actually render.
340
+
341
+ You don't need to change anything. Your template's stylesheet hash changes once, because those unused rules are gone.
342
+
343
+ - c26dd47: A section's published fill spec now lists the other sections' slots it reads (`slot_reads`) in the same order on every machine. The list used to be sorted by the building machine's locale, so a slot named `heroImage` and one named `hero_image` could swap places depending on where the template was built. Slot names are now ordered by character code, as the fact keys beside them already were. A template that reads another section's slots can publish a reordered `slot_reads` once; nothing it fills changes.
344
+
3
345
  ## 5.0.0
4
346
 
5
347
  ### Major Changes
package/README.md CHANGED
@@ -12,7 +12,7 @@
12
12
  <p align="center">
13
13
  <a href="https://www.homepages.io"><img alt="HomePages" src="https://img.shields.io/badge/homepages-www.homepages.io-1c1c1c?labelColor=1c1c1c&color=2f6feb" /></a>
14
14
  <img alt="Status: pre-release" src="https://img.shields.io/badge/status-pre--release-orange" />
15
- <a href="tsconfig.base.json"><img alt="Node >=22.13" src="https://img.shields.io/badge/node-%3E%3D22.13-339933?logo=node.js&logoColor=white" /></a>
15
+ <a href="tsconfig.base.json"><img alt="Node ^22.13 || >=24" src="https://img.shields.io/badge/node-%5E22.13%20%7C%7C%20%3E%3D24-339933?logo=node.js&logoColor=white" /></a>
16
16
  <a href="guide/reference/cli/INDEX.md"><img alt="CLI reference" src="https://img.shields.io/badge/docs-CLI%20reference-blue" /></a>
17
17
  <img alt="License: UNLICENSED" src="https://img.shields.io/badge/license-UNLICENSED-lightgrey" />
18
18
  </p>
@@ -36,6 +36,24 @@ and `publish`; each command's flags, arguments, exit codes and constraints are i
36
36
  artifact once `check` passes, and `publish` sends it to HomePages. Breaking changes ship as
37
37
  majors, each with the codemod `concrete upgrade` runs to carry a workspace across it.
38
38
 
39
+ ## Prerequisites
40
+
41
+ The same on macOS, Windows and Linux:
42
+
43
+ - **Node** 22.13 or a later 22, or Node 24 or newer, with the **npm** that comes with it.
44
+ - **git**, optionally. Nothing in the toolchain needs a repository; `npm create` makes a
45
+ new workspace one when git is installed, and says so when it is not.
46
+ - **Playwright's Chromium**, for an image or document template only (a deck, a social
47
+ post, a print sheet): `npm run build` captures its pages with it. Install it once in
48
+ the workspace, one command at a time:
49
+
50
+ ```bash
51
+ npm install --save-dev @playwright/test
52
+ npx playwright install chromium
53
+ ```
54
+
55
+ Every command here runs as written in bash, zsh, PowerShell and cmd.
56
+
39
57
  ## The `concrete` command
40
58
 
41
59
  One binary, one command table, one reference generated from the same table that drives
@@ -46,7 +64,8 @@ copies one into `fixtures/properties/<slug>/`, read from the published
46
64
  `build` or a `property` command runs, the command compares the workspace's installed
47
65
  `@homepages/concrete` with the published release: behind inside the same major, it
48
66
  refreshes; a new major asks first; either way the command you typed runs afterwards.
49
- `--no-auto-update` or `HOMEPAGES_NO_AUTO_UPDATE=1` turns that off. The rules are in
67
+ `--no-auto-update`, or the `HOMEPAGES_NO_AUTO_UPDATE` environment variable set to `1`, turns
68
+ that off. The rules are in
50
69
  the reference's [Staying current](guide/reference/cli/INDEX.md#staying-current).
51
70
 
52
71
  ## A section
@@ -55,14 +74,14 @@ A section is one exported value: its schema and its markup together, returned as
55
74
  React component a page places and the platform renders.
56
75
 
57
76
  ```tsx
58
- import { Section, Slot, SlotGroup, fact, section, text, textBlock } from "@homepages/concrete";
77
+ import { Section, Slot, SlotGroup, fact, fill, section, text } from "@homepages/concrete";
59
78
 
60
79
  export const Hero = section(
61
80
  {
62
81
  key: "hero",
63
82
  label: "Hero",
64
83
  slots: {
65
- headline: text.medium({ cap: 60, label: "Headline", fill: textBlock({ … }) }),
84
+ headline: text.medium({ cap: 60, label: "Headline", source: fill({ brief: "A confident one-line headline." }) }),
66
85
  street: text.short({ source: fact.property.address_street, label: "Street" }),
67
86
  },
68
87
  },
@@ -93,16 +112,10 @@ composition — which sections, on which pages, in which order — is derived fr
93
112
  React page components rather than declared twice.
94
113
 
95
114
  ```tsx
96
- import { defineTemplate, rule, set, website } from "@homepages/concrete";
115
+ import { defineTemplate, website } from "@homepages/concrete";
97
116
  import "./globals.css";
98
117
  import icon from "./icon.svg";
99
118
  import { Home, Nda } from "./pages";
100
- import { Gallery, Hero } from "./sections";
101
-
102
- export const reconcile = [
103
- rule("hero shot not repeated in the gallery", { reads: [Hero.slots.hero_image, Gallery.slots.images] },
104
- ({ site, facts }) => { /* … */ return [set(Gallery.slots.images, kept)]; }),
105
- ];
106
119
 
107
120
  export default defineTemplate({
108
121
  key: "my-template",
@@ -114,7 +127,6 @@ export default defineTemplate({
114
127
  home: { label: "Home", path: "/", page: Home },
115
128
  nda: { label: "NDA", path: "/nda", page: Nda, optional: true },
116
129
  },
117
- reconcile,
118
130
  preview: { blurb: "…", intents: ["for_sale"], types: ["multi_family"], demoUrl: null },
119
131
  });
120
132
  ```
@@ -136,11 +148,10 @@ export default defineTemplate({
136
148
  - **`canvases` is optional.** Omitted, a website gets one editing canvas per page and a
137
149
  rendered template one canvas holding every page; declared, it is keyed by canvas id,
138
150
  names pages by their `pages` key, and must put every page on exactly one canvas.
139
- - **`reconcile` is a list of `rule(...)` calls over slot refs read off section values.**
140
- A rule's `site` view is typed by its own `reads`, so a slot the body reads must be
141
- declared — that declaration is what re-runs the rule when the slot is edited. Declare
142
- the rules as the named `reconcile` export and pass that same array: the template's
143
- logic bundle compiles the export.
151
+ - **A template carries no cross-section logic.** A slot that depends on another
152
+ section says so on its own `source:` — `source: Hero.slots.headline` to mirror it, or
153
+ `compute({ reads: [Hero.slots.headline] }, (headline) => …)` to derive from it — so
154
+ the dependency lives in the section that has it, and an edit upstream re-derives it.
144
155
 
145
156
  ## What a workspace looks like
146
157