@jam-overture/loom 0.1.0 → 0.3.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.
Files changed (414) hide show
  1. package/README.md +3 -1
  2. package/dist/application/application.d.ts +109 -0
  3. package/dist/application/application.js +97 -0
  4. package/dist/application/memory.d.ts +20 -0
  5. package/dist/application/memory.js +79 -0
  6. package/dist/application/store.d.ts +101 -0
  7. package/dist/application/store.js +25 -0
  8. package/dist/audience/audience.d.ts +36 -0
  9. package/dist/audience/audience.js +41 -0
  10. package/dist/audience/compose.d.ts +112 -0
  11. package/dist/audience/compose.js +134 -0
  12. package/dist/audience/memory.d.ts +14 -0
  13. package/dist/audience/memory.js +71 -0
  14. package/dist/audience/overlay-store.d.ts +343 -0
  15. package/dist/audience/overlay-store.js +217 -0
  16. package/dist/audience/rule.d.ts +121 -0
  17. package/dist/audience/rule.js +78 -0
  18. package/dist/cli/index.d.ts +3 -4
  19. package/dist/cli/index.js +3 -4
  20. package/dist/cli/templates.js +19 -0
  21. package/dist/data/adapter.d.ts +9 -1
  22. package/dist/data/adapter.js +2 -0
  23. package/dist/data/plan.js +0 -0
  24. package/dist/data/resolution.d.ts +23 -1
  25. package/dist/data/resolve.d.ts +31 -4
  26. package/dist/data/resolve.js +11 -3
  27. package/dist/ids.d.ts +10 -0
  28. package/dist/ids.js +11 -1
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.js +1 -0
  31. package/dist/interpretation/anthropic.d.ts +1 -1
  32. package/dist/interpretation/anthropic.js +2 -22
  33. package/dist/interpretation/client.d.ts +1 -1
  34. package/dist/interpretation/materialize.js +67 -22
  35. package/dist/interpretation/openai-compatible.d.ts +36 -0
  36. package/dist/interpretation/openai-compatible.js +79 -0
  37. package/dist/interpretation/status.d.ts +19 -0
  38. package/dist/interpretation/status.js +26 -0
  39. package/dist/live/index.d.ts +73 -0
  40. package/dist/live/index.js +73 -0
  41. package/dist/live/pages.d.ts +187 -0
  42. package/dist/live/pages.js +161 -0
  43. package/dist/live/pull.d.ts +147 -0
  44. package/dist/live/pull.js +398 -0
  45. package/dist/live/pulling.d.ts +79 -0
  46. package/dist/live/pulling.js +117 -0
  47. package/dist/live/window.d.ts +129 -0
  48. package/dist/live/window.js +132 -0
  49. package/dist/patch.d.ts +54 -0
  50. package/dist/patch.js +44 -0
  51. package/dist/project/closing.d.ts +51 -0
  52. package/dist/project/closing.js +53 -0
  53. package/dist/project/memory.d.ts +20 -0
  54. package/dist/project/memory.js +97 -0
  55. package/dist/project/project.d.ts +90 -0
  56. package/dist/project/project.js +91 -0
  57. package/dist/project/store.d.ts +135 -0
  58. package/dist/project/store.js +41 -0
  59. package/dist/registered.d.ts +64 -0
  60. package/dist/registered.js +118 -0
  61. package/dist/render/addressed.d.ts +35 -0
  62. package/dist/render/addressed.js +79 -0
  63. package/dist/render/behaviour-adjust.d.ts +11 -19
  64. package/dist/render/behaviour-adjust.js +75 -21
  65. package/dist/render/behaviour-present.d.ts +8 -0
  66. package/dist/render/behaviour-present.js +57 -6
  67. package/dist/render/behaviour.d.ts +98 -17
  68. package/dist/render/behaviour.js +91 -26
  69. package/dist/render/control-name.d.ts +68 -0
  70. package/dist/render/control-name.js +37 -0
  71. package/dist/render/diagnostics.d.ts +72 -0
  72. package/dist/render/diagnostics.js +7 -0
  73. package/dist/render/document-theme.d.ts +70 -0
  74. package/dist/render/document-theme.js +139 -0
  75. package/dist/render/editable.d.ts +15 -1
  76. package/dist/render/editable.js +13 -1
  77. package/dist/render/expected.d.ts +98 -0
  78. package/dist/render/expected.js +88 -0
  79. package/dist/render/index.d.ts +4 -0
  80. package/dist/render/index.js +4 -0
  81. package/dist/render/reads.d.ts +11 -0
  82. package/dist/render/reads.js +12 -1
  83. package/dist/render/render.d.ts +11 -0
  84. package/dist/render/render.js +294 -53
  85. package/dist/render/request.d.ts +8 -1
  86. package/dist/render/request.js +1 -0
  87. package/dist/render/slots.d.ts +52 -0
  88. package/dist/render/slots.js +24 -0
  89. package/dist/render/theme.d.ts +54 -1
  90. package/dist/render/theme.js +23 -1
  91. package/dist/render/unshown.d.ts +152 -0
  92. package/dist/render/unshown.js +80 -0
  93. package/dist/runtime/analysis.d.ts +94 -9
  94. package/dist/runtime/analysis.js +54 -9
  95. package/dist/runtime/assessment.d.ts +36 -2
  96. package/dist/runtime/assessment.js +27 -2
  97. package/dist/runtime/auto-apply-ceiling.d.ts +54 -0
  98. package/dist/runtime/auto-apply-ceiling.js +66 -0
  99. package/dist/runtime/checks.d.ts +148 -0
  100. package/dist/runtime/checks.js +112 -0
  101. package/dist/runtime/disposition.d.ts +96 -0
  102. package/dist/runtime/disposition.js +46 -0
  103. package/dist/runtime/gate.js +91 -10
  104. package/dist/runtime/index.d.ts +4 -0
  105. package/dist/runtime/index.js +4 -0
  106. package/dist/runtime/irreversibility.d.ts +64 -0
  107. package/dist/runtime/irreversibility.js +45 -0
  108. package/dist/runtime/nesting.d.ts +13 -1
  109. package/dist/runtime/nesting.js +41 -24
  110. package/dist/runtime/pipeline.d.ts +43 -0
  111. package/dist/runtime/pipeline.js +10 -2
  112. package/dist/runtime/policy-change.d.ts +93 -0
  113. package/dist/runtime/policy-change.js +305 -0
  114. package/dist/runtime/policy-log.d.ts +406 -0
  115. package/dist/runtime/policy-log.js +285 -0
  116. package/dist/runtime/policy.d.ts +8 -6
  117. package/dist/runtime/policy.js +5 -2
  118. package/dist/runtime/repointing.js +0 -0
  119. package/dist/runtime/reversibility.d.ts +11 -9
  120. package/dist/runtime/stakes.d.ts +129 -1
  121. package/dist/runtime/stakes.js +240 -26
  122. package/dist/runtime/vocabulary.d.ts +164 -7
  123. package/dist/runtime/vocabulary.js +181 -8
  124. package/dist/sdk/audit.d.ts +174 -3
  125. package/dist/sdk/audit.js +176 -17
  126. package/dist/sdk/catalogue.d.ts +9 -1
  127. package/dist/sdk/conformance.d.ts +37 -3
  128. package/dist/sdk/conformance.js +25 -4
  129. package/dist/sdk/definition.d.ts +129 -5
  130. package/dist/sdk/definition.js +66 -0
  131. package/dist/sdk/registry.d.ts +45 -2
  132. package/dist/sdk/registry.js +102 -1
  133. package/dist/signals/acted.contract.d.ts +21 -0
  134. package/dist/signals/acted.contract.js +236 -0
  135. package/dist/signals/acted.d.ts +359 -0
  136. package/dist/signals/acted.js +135 -0
  137. package/dist/signals/action-change.d.ts +507 -0
  138. package/dist/signals/action-change.js +265 -0
  139. package/dist/signals/action.d.ts +331 -0
  140. package/dist/signals/action.js +182 -0
  141. package/dist/signals/agenda.d.ts +585 -0
  142. package/dist/signals/agenda.js +295 -0
  143. package/dist/signals/applied-window.contract.d.ts +23 -0
  144. package/dist/signals/applied-window.contract.js +160 -0
  145. package/dist/signals/arrivals.contract.d.ts +21 -0
  146. package/dist/signals/arrivals.contract.js +180 -0
  147. package/dist/signals/arrivals.d.ts +375 -0
  148. package/dist/signals/arrivals.js +254 -0
  149. package/dist/signals/arriving.d.ts +210 -0
  150. package/dist/signals/arriving.js +133 -0
  151. package/dist/signals/audiences.d.ts +528 -0
  152. package/dist/signals/audiences.js +255 -0
  153. package/dist/signals/broadcast.d.ts +33 -17
  154. package/dist/signals/broadcast.js +255 -32
  155. package/dist/signals/change.d.ts +378 -0
  156. package/dist/signals/change.js +327 -0
  157. package/dist/signals/collect.d.ts +169 -34
  158. package/dist/signals/collect.js +186 -38
  159. package/dist/signals/conversion.d.ts +348 -0
  160. package/dist/signals/conversion.js +235 -0
  161. package/dist/signals/copy-change.d.ts +553 -0
  162. package/dist/signals/copy-change.js +377 -0
  163. package/dist/signals/copy.d.ts +337 -0
  164. package/dist/signals/copy.js +211 -0
  165. package/dist/signals/correlated.contract.d.ts +24 -0
  166. package/dist/signals/correlated.contract.js +94 -0
  167. package/dist/signals/counters.d.ts +97 -0
  168. package/dist/signals/counters.js +160 -0
  169. package/dist/signals/deliver.d.ts +23 -4
  170. package/dist/signals/deliver.js +34 -6
  171. package/dist/signals/deployment-change.d.ts +395 -0
  172. package/dist/signals/deployment-change.js +309 -0
  173. package/dist/signals/deployment.d.ts +278 -0
  174. package/dist/signals/deployment.js +178 -0
  175. package/dist/signals/door.d.ts +114 -0
  176. package/dist/signals/door.js +77 -0
  177. package/dist/signals/expire.d.ts +192 -0
  178. package/dist/signals/expire.js +213 -0
  179. package/dist/signals/fold.d.ts +10 -0
  180. package/dist/signals/fold.js +5 -1
  181. package/dist/signals/form-action.d.ts +302 -0
  182. package/dist/signals/form-action.js +169 -0
  183. package/dist/signals/form-copy.d.ts +523 -0
  184. package/dist/signals/form-copy.js +346 -0
  185. package/dist/signals/forms.d.ts +247 -0
  186. package/dist/signals/forms.js +147 -0
  187. package/dist/signals/frontier.d.ts +268 -0
  188. package/dist/signals/frontier.js +145 -0
  189. package/dist/signals/funnel-change.d.ts +548 -0
  190. package/dist/signals/funnel-change.js +361 -0
  191. package/dist/signals/funnel-hours.contract.d.ts +21 -0
  192. package/dist/signals/funnel-hours.contract.js +221 -0
  193. package/dist/signals/funnel-hours.d.ts +293 -0
  194. package/dist/signals/funnel-hours.js +99 -0
  195. package/dist/signals/funnel.d.ts +592 -0
  196. package/dist/signals/funnel.js +231 -0
  197. package/dist/signals/health.d.ts +694 -0
  198. package/dist/signals/health.js +573 -0
  199. package/dist/signals/index.d.ts +60 -0
  200. package/dist/signals/index.js +60 -0
  201. package/dist/signals/ingest.d.ts +56 -1
  202. package/dist/signals/ingest.js +91 -1
  203. package/dist/signals/inside.d.ts +190 -0
  204. package/dist/signals/inside.js +263 -0
  205. package/dist/signals/join.d.ts +56 -0
  206. package/dist/signals/join.js +60 -0
  207. package/dist/signals/journal.d.ts +123 -9
  208. package/dist/signals/kept.contract.d.ts +22 -0
  209. package/dist/signals/kept.contract.js +111 -0
  210. package/dist/signals/kinds.d.ts +8 -6
  211. package/dist/signals/kinds.js +14 -6
  212. package/dist/signals/library-action.d.ts +430 -0
  213. package/dist/signals/library-action.js +336 -0
  214. package/dist/signals/library-agenda-change.d.ts +324 -0
  215. package/dist/signals/library-agenda-change.js +199 -0
  216. package/dist/signals/library-agenda.d.ts +258 -0
  217. package/dist/signals/library-agenda.js +167 -0
  218. package/dist/signals/library-change.d.ts +477 -0
  219. package/dist/signals/library-change.js +335 -0
  220. package/dist/signals/library-copy-change.d.ts +498 -0
  221. package/dist/signals/library-copy-change.js +476 -0
  222. package/dist/signals/library-pace.d.ts +319 -0
  223. package/dist/signals/library-pace.js +305 -0
  224. package/dist/signals/library-reach-change.d.ts +646 -0
  225. package/dist/signals/library-reach-change.js +542 -0
  226. package/dist/signals/library-reach.d.ts +377 -0
  227. package/dist/signals/library-reach.js +227 -0
  228. package/dist/signals/library-senders-change.d.ts +457 -0
  229. package/dist/signals/library-senders-change.js +367 -0
  230. package/dist/signals/library-senders-reach-change.d.ts +486 -0
  231. package/dist/signals/library-senders-reach-change.js +538 -0
  232. package/dist/signals/library-senders-reach.d.ts +340 -0
  233. package/dist/signals/library-senders-reach.js +252 -0
  234. package/dist/signals/library-senders.d.ts +271 -0
  235. package/dist/signals/library-senders.js +180 -0
  236. package/dist/signals/library-word-reach-change.d.ts +567 -0
  237. package/dist/signals/library-word-reach-change.js +564 -0
  238. package/dist/signals/library.d.ts +306 -0
  239. package/dist/signals/library.js +178 -0
  240. package/dist/signals/memory.d.ts +9 -0
  241. package/dist/signals/memory.js +246 -14
  242. package/dist/signals/migrate.d.ts +20 -4
  243. package/dist/signals/migrate.js +269 -8
  244. package/dist/signals/notice.d.ts +389 -0
  245. package/dist/signals/notice.js +250 -0
  246. package/dist/signals/pace-change.d.ts +501 -0
  247. package/dist/signals/pace-change.js +310 -0
  248. package/dist/signals/pace.d.ts +296 -0
  249. package/dist/signals/pace.js +291 -0
  250. package/dist/signals/page-views.d.ts +365 -0
  251. package/dist/signals/page-views.js +218 -0
  252. package/dist/signals/part-pace.d.ts +378 -0
  253. package/dist/signals/part-pace.js +333 -0
  254. package/dist/signals/parts.d.ts +354 -0
  255. package/dist/signals/parts.js +232 -0
  256. package/dist/signals/postgres.d.ts +16 -2
  257. package/dist/signals/postgres.js +753 -76
  258. package/dist/signals/progress.d.ts +212 -0
  259. package/dist/signals/progress.js +150 -0
  260. package/dist/signals/ratios.d.ts +108 -0
  261. package/dist/signals/ratios.js +40 -0
  262. package/dist/signals/reach.d.ts +309 -0
  263. package/dist/signals/reach.js +93 -0
  264. package/dist/signals/readable.d.ts +34 -0
  265. package/dist/signals/readable.js +34 -0
  266. package/dist/signals/readership.d.ts +381 -0
  267. package/dist/signals/readership.js +308 -0
  268. package/dist/signals/region-pages.d.ts +173 -0
  269. package/dist/signals/region-pages.js +62 -0
  270. package/dist/signals/region.d.ts +287 -0
  271. package/dist/signals/region.js +198 -0
  272. package/dist/signals/retention.d.ts +163 -0
  273. package/dist/signals/retention.js +75 -0
  274. package/dist/signals/rhythm.d.ts +302 -0
  275. package/dist/signals/rhythm.js +262 -0
  276. package/dist/signals/rollup.d.ts +194 -4
  277. package/dist/signals/rollup.js +0 -0
  278. package/dist/signals/schema.d.ts +1069 -1
  279. package/dist/signals/schema.js +393 -3
  280. package/dist/signals/signal.d.ts +237 -11
  281. package/dist/signals/signal.js +70 -10
  282. package/dist/signals/silence-census.d.ts +205 -0
  283. package/dist/signals/silence-census.js +87 -0
  284. package/dist/signals/silences.d.ts +1147 -0
  285. package/dist/signals/silences.js +996 -0
  286. package/dist/signals/subtrees.d.ts +123 -0
  287. package/dist/signals/subtrees.js +102 -0
  288. package/dist/signals/tally.d.ts +262 -12
  289. package/dist/signals/unread.d.ts +292 -0
  290. package/dist/signals/unread.js +137 -0
  291. package/dist/signals/window-agenda.d.ts +276 -0
  292. package/dist/signals/window-agenda.js +83 -0
  293. package/dist/signals/window-figures.d.ts +148 -0
  294. package/dist/signals/window-figures.js +42 -0
  295. package/dist/signals/window-funnels.d.ts +88 -0
  296. package/dist/signals/window-funnels.js +47 -0
  297. package/dist/signals/window.d.ts +866 -0
  298. package/dist/signals/window.js +693 -0
  299. package/dist/signals/words.d.ts +24 -0
  300. package/dist/signals/words.js +24 -0
  301. package/dist/store/cache.d.ts +101 -0
  302. package/dist/store/cache.js +149 -0
  303. package/dist/store/history.d.ts +82 -0
  304. package/dist/store/history.js +36 -0
  305. package/dist/store/index.d.ts +30 -0
  306. package/dist/store/index.js +30 -0
  307. package/dist/store/memory.d.ts +2 -1
  308. package/dist/store/memory.js +48 -12
  309. package/dist/store/migrate.d.ts +106 -0
  310. package/dist/store/migrate.js +323 -7
  311. package/dist/store/postgres-applications.d.ts +4 -0
  312. package/dist/store/postgres-applications.js +197 -0
  313. package/dist/store/postgres-audience.d.ts +14 -0
  314. package/dist/store/postgres-audience.js +272 -0
  315. package/dist/store/postgres-holds.d.ts +10 -1
  316. package/dist/store/postgres-holds.js +116 -101
  317. package/dist/store/postgres-policy-log.d.ts +14 -0
  318. package/dist/store/postgres-policy-log.js +240 -0
  319. package/dist/store/postgres-projects.d.ts +4 -0
  320. package/dist/store/postgres-projects.js +217 -0
  321. package/dist/store/postgres.d.ts +17 -1
  322. package/dist/store/postgres.js +60 -9
  323. package/dist/store/replay.d.ts +102 -1
  324. package/dist/store/replay.js +190 -19
  325. package/dist/store/reseed.d.ts +238 -0
  326. package/dist/store/reseed.js +308 -0
  327. package/dist/store/schema.d.ts +762 -2
  328. package/dist/store/schema.js +218 -5
  329. package/dist/store/source.d.ts +57 -1
  330. package/dist/store/source.js +65 -1
  331. package/dist/store/store.d.ts +29 -6
  332. package/dist/submit/resolve.d.ts +1 -1
  333. package/dist/submit/resolve.js +2 -1
  334. package/dist/telemetry/calibration.d.ts +25 -0
  335. package/dist/telemetry/calibration.js +27 -1
  336. package/dist/telemetry/event.d.ts +391 -33
  337. package/dist/telemetry/event.js +84 -20
  338. package/dist/telemetry/index.d.ts +2 -0
  339. package/dist/telemetry/index.js +2 -0
  340. package/dist/telemetry/journal.d.ts +104 -3
  341. package/dist/telemetry/journal.js +9 -0
  342. package/dist/telemetry/lookup.d.ts +27 -0
  343. package/dist/telemetry/lookup.js +18 -0
  344. package/dist/telemetry/memory.js +33 -1
  345. package/dist/telemetry/migrate.js +22 -1
  346. package/dist/telemetry/postgres.d.ts +10 -1
  347. package/dist/telemetry/postgres.js +188 -90
  348. package/dist/telemetry/remeasure.d.ts +78 -0
  349. package/dist/telemetry/remeasure.js +83 -0
  350. package/dist/telemetry/retention.d.ts +2 -2
  351. package/dist/telemetry/schema.d.ts +17 -0
  352. package/dist/telemetry/schema.js +27 -1
  353. package/dist/telemetry/sink.d.ts +2 -2
  354. package/dist/telemetry/window.d.ts +135 -0
  355. package/dist/telemetry/window.js +101 -0
  356. package/dist/testing/application-contract.d.ts +14 -0
  357. package/dist/testing/application-contract.js +270 -0
  358. package/dist/testing/audience-overlay-contract.d.ts +31 -0
  359. package/dist/testing/audience-overlay-contract.js +354 -0
  360. package/dist/testing/contracts.d.ts +13 -7
  361. package/dist/testing/contracts.js +13 -7
  362. package/dist/testing/definitions.d.ts +78 -0
  363. package/dist/testing/definitions.js +134 -9
  364. package/dist/testing/doubles.d.ts +103 -0
  365. package/dist/testing/doubles.js +143 -0
  366. package/dist/testing/index.d.ts +2 -2
  367. package/dist/testing/index.js +2 -2
  368. package/dist/testing/journal-contract.js +297 -6
  369. package/dist/testing/model-contract.d.ts +110 -0
  370. package/dist/testing/model-contract.js +150 -0
  371. package/dist/testing/policy-log-contract.d.ts +26 -0
  372. package/dist/testing/policy-log-contract.js +344 -0
  373. package/dist/testing/project-contract.d.ts +14 -0
  374. package/dist/testing/project-contract.js +266 -0
  375. package/dist/testing/reader-signal-contract.d.ts +27 -2
  376. package/dist/testing/reader-signal-contract.js +475 -5
  377. package/dist/testing/store-contract.d.ts +7 -1
  378. package/dist/testing/store-contract.js +84 -3
  379. package/dist/theme/apply.d.ts +20 -1
  380. package/dist/theme/apply.js +5 -3
  381. package/dist/theme/contrast.d.ts +19 -14
  382. package/dist/theme/contrast.js +181 -17
  383. package/dist/theme/derive.d.ts +22 -0
  384. package/dist/theme/derive.js +54 -1
  385. package/dist/theme/library.js +1 -1
  386. package/dist/theme/measure.d.ts +34 -0
  387. package/dist/theme/measure.js +30 -1
  388. package/dist/theme/palettes.js +7 -7
  389. package/dist/theme/ramp.d.ts +64 -0
  390. package/dist/theme/ramp.js +114 -0
  391. package/dist/theme/registry.d.ts +9 -0
  392. package/dist/theme/registry.js +11 -1
  393. package/dist/theme/separation.d.ts +97 -3
  394. package/dist/theme/separation.js +75 -0
  395. package/dist/tree/apply.js +13 -0
  396. package/dist/tree/compare.d.ts +9 -0
  397. package/dist/tree/compare.js +18 -0
  398. package/dist/tree/mutation.d.ts +18 -0
  399. package/dist/tree/mutation.js +24 -12
  400. package/dist/tree/navigation.d.ts +5 -0
  401. package/dist/tree/navigation.js +32 -10
  402. package/dist/tree/outline.d.ts +7 -0
  403. package/dist/tree/outline.js +9 -5
  404. package/dist/write/computed.d.ts +60 -0
  405. package/dist/write/computed.js +61 -0
  406. package/dist/write/held.d.ts +59 -0
  407. package/dist/write/index.d.ts +5 -2
  408. package/dist/write/index.js +5 -2
  409. package/dist/write/reseed.d.ts +151 -0
  410. package/dist/write/reseed.js +184 -0
  411. package/dist/write/revert.js +2 -16
  412. package/package.json +25 -3
  413. package/dist/runtime/inverse-interpreter.d.ts +0 -90
  414. package/dist/runtime/inverse-interpreter.js +0 -56
@@ -0,0 +1,553 @@
1
+ import type { NodeId, TreeId } from "../ids.js";
2
+ import type { PrimitiveType } from "../primitive-type.js";
3
+ import type { PrimitiveRole } from "../role.js";
4
+ import { type ComparedAudiences } from "./audiences.js";
5
+ import { type CopyReading, type Passage } from "./copy.js";
6
+ import { type PageReading, type PartStanding } from "./parts.js";
7
+ /**
8
+ * What a change did to what a page says, and to how much of it gets read.
9
+ *
10
+ * [`copy.ts`](copy.ts) answers *this page says twelve hundred words, the average
11
+ * reader got to two hundred and sixty, and the three hundred nobody saw are
12
+ * these* — of **one window of one revision**. The sentence a change is judged
13
+ * by is the next one: *the words nobody read last week are read now*, or the
14
+ * worse one, *the three hundred words this change added are words nobody has
15
+ * reached.* That is the question [`change.ts`](change.ts) asks of where reading
16
+ * stops, asked of text instead.
17
+ *
18
+ * It is the **ninth** thing taken out of the server-side join rather than
19
+ * collected: nothing was added to a payload, a browser, a column, a store or
20
+ * the vocabulary, and the broadcaster was not touched.
21
+ *
22
+ * ## The figure that looks like the answer and is not
23
+ *
24
+ * `now.wordsByStanding.read − was.wordsByStanding.read`. It is the subtraction
25
+ * anybody would write first and it answers two questions at once: a change that
26
+ * adds four hundred words readers all reach raises it by four hundred while
27
+ * making the page **less** read as a share of itself. The page got longer and
28
+ * the reading got worse, and one number says *better*.
29
+ *
30
+ * So the unit here is **the words both revisions say**, which this calls the
31
+ * *carried* words. Identical text on both sides means the only thing that can
32
+ * differ is the reading of it, and every reader figure below is of those words
33
+ * alone. What the change wrote — {@link WordsWritten.added},
34
+ * {@link WordsWritten.removed}, {@link WordsWritten.reworded} — is reported
35
+ * beside them as a census of the page rather than of its readers, because it is
36
+ * exact: no reader is in it, so neither is any of the error every count in this
37
+ * subsystem carries.
38
+ *
39
+ * That census is the half worth having on its own. *The change took two hundred
40
+ * words away and readers had never got to a hundred and eighty of them* is the
41
+ * sentence that says a change was right, and
42
+ * {@link WordsWritten.removedByStanding} is the whole of it.
43
+ *
44
+ * ## Two reader figures, and only one of them is comparable
45
+ *
46
+ * **A standing is not.** `read` means *at least one reader reached this*
47
+ * (0212), so a quiet window marks parts `skipped` that a busy one marks `read`,
48
+ * and {@link PassageMovement} therefore moves with traffic as well as with
49
+ * reading. It is still the sentence a person wants — *these words were never
50
+ * seen and now they are* — so it is reported, named as a movement rather than
51
+ * as an improvement, and never divided by anything.
52
+ *
53
+ * **A share of a side's own views is.** {@link PassageSide.reach} is
54
+ * `readers ÷ views` off one side's own rows, so each side's straddle
55
+ * over-count (0147) has very nearly divided out before the two sides meet —
56
+ * which is [0221](../../decisions/0221-where-reading-stops-is-a-fall-between-two-siblings-and-a-ratio-of-two-counts-off-one-row-set.md)'s
57
+ * cancellation and
58
+ * [0224](../../decisions/0224-a-before-and-after-reading-compares-two-shares-and-a-pair-the-change-dissolved-is-an-answer.md)'s
59
+ * rule for comparing two revisions, applied to a passage rather than to a pair
60
+ * of siblings. {@link ComparedPassage.gain} weights that difference by the
61
+ * passage's words, so it reads *this passage put forty more words in front of
62
+ * the average reader*, and the gains add up across passages for the one reason
63
+ * 0235 published: a part's own words partition the page exactly once.
64
+ *
65
+ * ## Where a position matters and here it does not
66
+ *
67
+ * A passage the change **moved** is compared like any other. Nothing here
68
+ * divides by a depth, an index or a parent, so a band dragged to the top of the
69
+ * page keeps its identity and its words and the comparison is about reading
70
+ * them. That is the one place this reading is more forgiving than 0224's, where
71
+ * a sibling that moved dissolves the pair it was half of — a pair is a position
72
+ * by construction and a passage is not.
73
+ *
74
+ * ## What a floor can and cannot do to this
75
+ *
76
+ * A type that declares no `copy` (0122) leaves a passage short of words nothing
77
+ * here can see, and
78
+ * [0235](../../decisions/0235-how-much-of-a-page-gets-read-is-a-share-of-words-that-partition-it-and-the-typical-reader-is-a-ceiling.md)
79
+ * refused to publish a mean of floored words at all. One half of that refusal
80
+ * does not reach a comparison and the other half does, and the difference is
81
+ * worth being exact about:
82
+ *
83
+ * - **A single passage's {@link ComparedPassage.gain} survives a floor.** The
84
+ * same words are on both sides, so an understated word count scales the gain
85
+ * toward zero and cannot flip its sign. *At least this many words moved* is a
86
+ * safe claim, which is more than 0235 could say of one window.
87
+ * - **A passage nothing can be said about is in neither.** A carried passage
88
+ * whose standing is `unknown` on one side or the other has no gain and is in
89
+ * no mass (0282): its reach of nought is a counter that is missing rather
90
+ * than a reader who did not arrive, and a subtraction against it would read
91
+ * as the change having taken the other side's whole reach away. Its words are
92
+ * in `wordsByMovement` under `unknown`, where they can be seen and not acted
93
+ * on, and a pair with no spoken-for carried word at all is `unspoken`.
94
+ * - **The page's total does not.** {@link CopyChange.typical} adds signed terms
95
+ * that floors scale by **different** factors, so a floored passage that
96
+ * gained and an exact one that lost can sum to a regression where the truth
97
+ * is an improvement. So it is withheld under a floor, exactly as 0235
98
+ * withholds `typical`, and the per-passage gains are left standing.
99
+ *
100
+ * Pure, linear in the parts of the two readings, and reaches no store, clock or
101
+ * DOM. A caller checks `PageReading.orphaned` on both readings before trusting
102
+ * either, as it must before trusting either copy reading.
103
+ */
104
+ /** Why a comparison of two windows' words answered nothing. */
105
+ export type CopyChangeSilence =
106
+ /**
107
+ * The two readings are of different trees.
108
+ *
109
+ * Nothing is comparable and nothing is countable: two pages are two pages,
110
+ * and the plausible-false-number failure here is a screen reporting that a
111
+ * change deleted every word of a page it was never about. Spelled as
112
+ * `ChangeSilence` spells it, because a surface drawing both comparisons of
113
+ * one change should not meet two names for one state.
114
+ */
115
+ "different-trees"
116
+ /**
117
+ * The two readings are of two audiences, and so of two populations.
118
+ *
119
+ * Spelled and refused as `ChangeSilence` spells and refuses it (0240), and
120
+ * for the sharper reason here: a page is one base tree plus the deltas an
121
+ * audience earns (0263), so the words the other form says would be counted as
122
+ * words this change wrote. Both halves are withheld, the census included,
123
+ * because the census is the half that would look most like an answer.
124
+ *
125
+ * Refused only where both sides name an audience and the two differ; a pair
126
+ * spanning the migration that added the column (0284) is in
127
+ * {@link CopyChange.audiences} instead.
128
+ */
129
+ | "different-audiences"
130
+ /** Neither revision says anything that could have been read. */
131
+ | "wordless"
132
+ /**
133
+ * One of the two windows holds two forms of the page and named neither.
134
+ *
135
+ * The state the before-and-after reading and the two deployment orders took
136
+ * the morning before (0301), in one of the three readings that record did not
137
+ * reach. Without it this comparison published `nothing-measured` — *one of the two windows
138
+ * held no page views* — of a window that held plenty: it held two forms of
139
+ * them. A page reading read as neither has a view floor of nought with full
140
+ * counters behind it (`parts.ts`), so the floor alone cannot tell a window
141
+ * nobody read from a window nobody split, and the two sentences send a
142
+ * deployment to opposite places: one to look for a broken sender, the other
143
+ * to split the window and read twice, which is a call away.
144
+ *
145
+ * The census of words still answers, for `wordless`'s reason and
146
+ * `nothing-measured`'s: what the change wrote is read off the two trees and
147
+ * off no counter at all, so *this change added three hundred words and took
148
+ * two hundred away, over a window that holds two forms* is true and is worth
149
+ * saying.
150
+ *
151
+ * **It cannot co-occur with `different-audiences`**, so the order between the
152
+ * two is not observable: `crossesAudiences` needs an audience on both sides
153
+ * and a mixed side has none, while a side that names one and holds two in its
154
+ * census reads as `one`, because an audience asked for always wins (0300).
155
+ * The order that does matter is **after `wordless` and before the view
156
+ * floor**: a page saying nothing survives the remedy, so reporting it first
157
+ * loses nothing, and the floor is this state's own symptom.
158
+ */
159
+ | "audiences-mixed"
160
+ /**
161
+ * One of the two windows held no page views.
162
+ *
163
+ * Every standing on that side is `unknown` (`parts.ts`) and that side has no
164
+ * `reach`, so there is nothing to compare a share against. **The census still
165
+ * answers**, because what a change did to the words is a fact about the two
166
+ * trees: *this change added three hundred words and took two hundred away,
167
+ * and nothing has been measured since* is true and is worth saying.
168
+ */
169
+ | "nothing-measured"
170
+ /**
171
+ * A passage reports more readers than its side of the page has views.
172
+ *
173
+ * Carried through from whichever reading said it (0235), where it is the
174
+ * alarm for a reading assembled by hand or by a sender that is not one. The
175
+ * per-passage figures are left in place rather than hidden, because a `reach`
176
+ * above 1 is the visible evidence and withholding it would hide the fault
177
+ * while leaving the screen drawable.
178
+ */
179
+ | "inconsistent"
180
+ /**
181
+ * The change left no word of the page as it was.
182
+ *
183
+ * Every word is added, removed or reworded, so there is no carried text for a
184
+ * reader figure to be about. The census answers in full and is the whole of
185
+ * what can be said: a page rewritten end to end has no before and after of
186
+ * its own words, only a before and an after.
187
+ */
188
+ | "dissolved"
189
+ /**
190
+ * Some carried passage's words are a floor, so a page-wide mean of them is
191
+ * neither a count nor a ceiling.
192
+ *
193
+ * The reason is in the module documentation, and it is not the reason one
194
+ * window has for withholding the same figure (0235): the floors scale the
195
+ * signed terms of the sum unequally, so the total can read as a regression
196
+ * where the truth is an improvement. Each passage's own
197
+ * {@link ComparedPassage.gain} is unaffected in sign and stays published.
198
+ */
199
+ | "floored"
200
+ /**
201
+ * No carried word of the page can be spoken for in both windows.
202
+ *
203
+ * Every carried passage is `unknown` on one side or the other, so not one of
204
+ * them has two reaches that are both a measurement and there is nothing to
205
+ * compare. `unknown` is *nothing can be said* and never *nobody reached it*
206
+ * (0212), so a figure taken over nought spoken-for words would publish a
207
+ * change of nought where the honest answer is that the pair cannot say.
208
+ *
209
+ * The words are in {@link CopyChange.wordsByMovement} under `unknown`, which
210
+ * is where a surface sees how much of the page is in this state without
211
+ * acting on it.
212
+ */
213
+ | "unspoken";
214
+ /** The closed set, for a surface that has to account for every reason a figure is absent. */
215
+ export declare const COPY_CHANGE_SILENCES: readonly CopyChangeSilence[];
216
+ /** One line per silence, for a surface saying why a figure is not there. */
217
+ export declare const describeCopyChangeSilence: (silence: CopyChangeSilence) => string;
218
+ /**
219
+ * What happened to the reading of one passage whose words did not change.
220
+ *
221
+ * A standing and not a rate, so it moves with how many readers there were as
222
+ * well as with how far they got — which is why it is named for the movement and
223
+ * not for the verdict. {@link ComparedPassage.gain} is the figure that is a
224
+ * rate.
225
+ */
226
+ export type PassageMovement =
227
+ /** Reached on both sides. */
228
+ "held"
229
+ /** Nobody reached it and now somebody does, which is the sentence a change is made for. */
230
+ | "gained"
231
+ /** Somebody reached it and now nobody does. */
232
+ | "lost"
233
+ /** Nobody reached it on either side — the words a change did not fix. */
234
+ | "unread"
235
+ /**
236
+ * One side cannot be spoken for.
237
+ *
238
+ * Its window held no views at all, or the passage reported something other
239
+ * than coming into view, so `skipped` would be a claim nobody made (0212).
240
+ */
241
+ | "unknown";
242
+ /** The closed set, for a surface accounting for every passage it was handed. */
243
+ export declare const PASSAGE_MOVEMENTS: readonly PassageMovement[];
244
+ /** One line per movement, for a surface putting a passage in front of a person. */
245
+ export declare const describePassageMovement: (movement: PassageMovement) => string;
246
+ /** What one window said about one passage. */
247
+ export type PassageSide = {
248
+ readonly standing: PartStanding;
249
+ /** Distinct page views that reported the part coming into view; `0` where no row named it. */
250
+ readonly readers: number;
251
+ /** That side's page-view floor, carried through so the share below can be checked. */
252
+ readonly views: number;
253
+ /**
254
+ * {@link readers} over {@link views}, and `null` where the window held none.
255
+ *
256
+ * A ceiling on the share of that window's readers who reached the passage:
257
+ * `reached` is generous by the page views that straddled a rollup window
258
+ * (0147) and `views` is a floor on the page views there were (0212), so the
259
+ * numerator leans up and the denominator leans down. It is the figure the two
260
+ * sides are compared on, because the same inflation is in both terms of each
261
+ * side and has very nearly divided out before the sides meet.
262
+ *
263
+ * Above 1 is the input `inconsistent` names. It is not clamped: a figure cut
264
+ * to fit its own ceiling is a fault made undrawable rather than visible.
265
+ */
266
+ readonly reach: number | null;
267
+ };
268
+ /**
269
+ * One passage both revisions say, word for word, as two windows read it.
270
+ *
271
+ * The comparable unit of this module. The text is identical on both sides, so
272
+ * nothing here is about the page having changed and everything is about the
273
+ * reading of it.
274
+ */
275
+ export type ComparedPassage = {
276
+ readonly nodeId: NodeId;
277
+ readonly type: PrimitiveType;
278
+ readonly role: PrimitiveRole | null;
279
+ /** The words, the same number on both sides because they are the same words. */
280
+ readonly words: number;
281
+ /** The text itself, so a passage can be quoted back without a second join. */
282
+ readonly text: readonly string[];
283
+ /**
284
+ * Whether either side's part declares no `copy`, so {@link words} is a floor.
285
+ *
286
+ * The visible words are the same on both sides; what a floor withholds is
287
+ * whether there are more. A side may be floored where the other is not, when
288
+ * a prop a type does not declare holds something on one revision and nothing
289
+ * on the other — so this is either side, and the figures it qualifies are
290
+ * qualified for both.
291
+ */
292
+ readonly floored: boolean;
293
+ readonly was: PassageSide;
294
+ readonly now: PassageSide;
295
+ readonly movement: PassageMovement;
296
+ /**
297
+ * The words this passage newly put in front of the average reader:
298
+ * `words × (now.reach − was.reach)`.
299
+ *
300
+ * Negative where readers lost ground, and `null` where either side held no
301
+ * views **or either side's standing is `unknown`** (0282) — a reach of nought
302
+ * that is a missing counter is not a reader who did not arrive, and
303
+ * subtracting against it would sign the other side's whole reach as something
304
+ * the change did. It adds across passages — a part's own words partition the
305
+ * page exactly once (0235) — and the sum is {@link CopyChange.typical}'s
306
+ * `change`, over the same spoken-for passages.
307
+ *
308
+ * A floor on {@link words} scales it toward zero and cannot change its sign,
309
+ * which is why it is published where the page total is withheld.
310
+ */
311
+ readonly gain: number | null;
312
+ };
313
+ /**
314
+ * One passage the change rewrote, as two windows read it.
315
+ *
316
+ * Kept and reported rather than dropped, for 0224's reason at the level of
317
+ * text: *the words were changed and readers still do not reach them* is the
318
+ * answer somebody most needs, and a comparison that silently kept only
319
+ * untouched text would be quietest about the passages a change was actually
320
+ * aimed at.
321
+ *
322
+ * No {@link ComparedPassage.gain}, because a word-weighted figure needs one
323
+ * word count and there are two. The standings and the reaches are each true of
324
+ * their own side and are carried, with the rewording as the confound a reader of
325
+ * them has to hold: a passage that got shorter is easier to finish, so a
326
+ * movement here is not attributable the way a carried passage's is.
327
+ */
328
+ export type RewordedPassage = {
329
+ readonly nodeId: NodeId;
330
+ readonly type: PrimitiveType;
331
+ readonly role: PrimitiveRole | null;
332
+ /** The two word counts, which is why there is no single one. */
333
+ readonly words: {
334
+ readonly was: number;
335
+ readonly now: number;
336
+ };
337
+ /** Whether either side declares no `copy`, so its word count is a floor. */
338
+ readonly floored: boolean;
339
+ readonly was: PassageSide;
340
+ readonly now: PassageSide;
341
+ readonly movement: PassageMovement;
342
+ };
343
+ /**
344
+ * What the change did to the words themselves.
345
+ *
346
+ * **Exact.** No reader is in any of these figures, so none of them carries the
347
+ * straddle (0147), the view floor (0212) or the traffic sensitivity a standing
348
+ * has. The two trees say this between them, and a window with no views at all
349
+ * reports it in full.
350
+ */
351
+ export type WordsWritten = {
352
+ /**
353
+ * Words both revisions say, word for word — the universe every reader figure
354
+ * here is about.
355
+ */
356
+ readonly carried: number;
357
+ /** Words only the later revision says. */
358
+ readonly added: number;
359
+ /**
360
+ * {@link added}, by what the later window said about reaching them. The three
361
+ * add to {@link added}.
362
+ *
363
+ * *Of the three hundred words this change wrote, forty have been reached.* It
364
+ * is the one figure here that is about words nobody could have read before,
365
+ * so it has no comparison and needs none.
366
+ */
367
+ readonly addedByStanding: Readonly<Record<PartStanding, number>>;
368
+ /** Words only the earlier revision says. */
369
+ readonly removed: number;
370
+ /**
371
+ * {@link removed}, by what the earlier window said about reaching them. The
372
+ * three add to {@link removed}.
373
+ *
374
+ * *The change took two hundred words away and nobody had reached a hundred and
375
+ * eighty of them* is a change that was right, and the opposite reading of the
376
+ * same row is the one worth stopping for.
377
+ */
378
+ readonly removedByStanding: Readonly<Record<PartStanding, number>>;
379
+ /** Words of passages both revisions have and neither says the same way. */
380
+ readonly reworded: {
381
+ readonly was: number;
382
+ readonly now: number;
383
+ };
384
+ };
385
+ /** A word total, before and after, with the subtraction done once. */
386
+ export type WordCount = {
387
+ readonly was: number;
388
+ readonly now: number;
389
+ readonly change: number;
390
+ };
391
+ /**
392
+ * What a change did to what a page says and to how much of it is read.
393
+ *
394
+ * Two readings in, one comparison out. The two {@link CopyReading}s it derives
395
+ * are returned, so nothing downstream computes them twice and every whole-page
396
+ * figure — including each side's own `share` and `typical` — is one field away
397
+ * without a second join.
398
+ */
399
+ export type CopyChange = {
400
+ /** The earlier reading's tree. The two agree unless `silence` is `different-trees`. */
401
+ readonly treeId: TreeId;
402
+ readonly revisions: {
403
+ readonly was: number;
404
+ readonly now: number;
405
+ };
406
+ /**
407
+ * The audience each side was of, where its reading named one.
408
+ *
409
+ * As `ReadingChange.audiences` carries it, and for the same reason: a `null`
410
+ * on either side is why an unprovable pair of populations is compared rather
411
+ * than refused.
412
+ */
413
+ readonly audiences: ComparedAudiences;
414
+ /** The two copy readings this comparison is made of. */
415
+ readonly readings: {
416
+ readonly was: CopyReading;
417
+ readonly now: CopyReading;
418
+ };
419
+ /**
420
+ * Every word each revision says, counted once, and the difference.
421
+ *
422
+ * Exact on both sides and comparable without qualification, which no other
423
+ * pair of figures in this subsystem is: a page's words are a property of its
424
+ * tree and no reader is in them.
425
+ */
426
+ readonly words: WordCount;
427
+ /** The census of what the change wrote, with no reader in it. */
428
+ readonly wrote: WordsWritten;
429
+ /**
430
+ * Every passage both revisions say identically, in the **later** reading's
431
+ * reading order.
432
+ *
433
+ * The later order because that is the page somebody is looking at, and a
434
+ * passage's place in it is where they would find it. A before-and-after of
435
+ * where reading stops orders its pairs by the earlier reading instead (0224),
436
+ * because a pair is a position by construction and cannot survive being moved;
437
+ * a passage can, so the two modules order their rows differently on purpose.
438
+ */
439
+ readonly compared: readonly ComparedPassage[];
440
+ /** Every passage both revisions have and neither says the same way, in the later order. */
441
+ readonly reworded: readonly RewordedPassage[];
442
+ /** Every passage only the later revision has, in its reading order. */
443
+ readonly added: readonly Passage[];
444
+ /** Every passage only the earlier revision had, in the earlier reading order. */
445
+ readonly removed: readonly Passage[];
446
+ /**
447
+ * Carried words by what happened to the reading of them. The five add to
448
+ * {@link WordsWritten.carried}.
449
+ */
450
+ readonly wordsByMovement: Readonly<Record<PassageMovement, number>>;
451
+ /**
452
+ * Carried passages by the same. The five add to {@link compared}'s length.
453
+ *
454
+ * Published beside the word totals because a count of passages **survives a
455
+ * floor** where a count of words does not: a part that declares no `copy` is
456
+ * one part whatever it is hiding. A surface that has to be right about
457
+ * direction under a floor reads this row.
458
+ */
459
+ readonly passagesByMovement: Readonly<Record<PassageMovement, number>>;
460
+ /** Carried passages whose words are a floor, which is what `floored` counts. */
461
+ readonly floored: number;
462
+ /**
463
+ * The carried passages nobody reached on either side, most words first and
464
+ * then in the later reading order.
465
+ *
466
+ * The words a change did not fix, which is the list a person can act on
467
+ * without reading anything else. Ranked by words for the reason one window's
468
+ * reading ranks them (0235): the passage nobody saw that costs the page most is
469
+ * the long one, not the first one.
470
+ *
471
+ * `unread` only. A passage whose standing is `unknown` on either side is in
472
+ * {@link wordsByMovement} where it can be seen and not acted on, because
473
+ * putting it here would turn *nothing can be said* into *nobody read this*.
474
+ */
475
+ readonly stillUnseen: readonly ComparedPassage[];
476
+ /**
477
+ * The carried words the average reader got to, before and after. `null` where
478
+ * {@link silence} says why not.
479
+ *
480
+ * Each side is `Σ(readers × words) ÷ views` over the carried passages **both
481
+ * windows can speak for** — the same arithmetic as `CopyReading.typical` and
482
+ * a ceiling for the same two reasons, restricted to the words both revisions
483
+ * say so that the page having grown or shrunk is not in it, and to the
484
+ * passages neither window is `unknown` about so that a part that stopped
485
+ * reporting is not in it either (0282). One set of passages, so it is the
486
+ * same set on both sides. `change` is the sum of every
487
+ * {@link ComparedPassage.gain}.
488
+ *
489
+ * The words left out are in {@link wordsByMovement} under `unknown`, and a
490
+ * pair with nothing but those gets the `unspoken` silence rather than a
491
+ * change of nought.
492
+ *
493
+ * Each side's own whole-page figure is on `readings.was.typical` and
494
+ * `readings.now.typical`, and those two are **not** comparable: a page that
495
+ * lost four hundred words lowers the second without anybody having read less.
496
+ */
497
+ readonly typical: WordCount | null;
498
+ /**
499
+ * The carried passage the change put most words in front of the average
500
+ * reader, and `null` where none gained any.
501
+ *
502
+ * By {@link ComparedPassage.gain} — words weighted by readers — rather than by
503
+ * the change in `reach`, which is the ranking rule a fall between two siblings
504
+ * already uses (0221): a long passage a tenth of readers newly reach is worth
505
+ * more than a three-word label all of them do.
506
+ */
507
+ readonly mostGained: ComparedPassage | null;
508
+ /** The carried passage it took most words away from, on the same terms. */
509
+ readonly mostLost: ComparedPassage | null;
510
+ /** Why there is no reader comparison, or `null` where there is one. */
511
+ readonly silence: CopyChangeSilence | null;
512
+ };
513
+ /**
514
+ * What one window said about one passage, as a side of a comparison.
515
+ *
516
+ * **Published rather than kept private**, for the reason `passageOf` itself is
517
+ * (0235): a comparison of two **forms** of one page asks the same question of
518
+ * the same passages as this comparison of two windows, and one projection with
519
+ * two spellings is two things to disagree about once a third reading arrives.
520
+ * The rule it carries is the whole of it — a window with no views has no reach
521
+ * at all, and a reach is never clamped to its own ceiling.
522
+ */
523
+ export declare const passageSideOf: (passage: Passage, views: number) => PassageSide;
524
+ /**
525
+ * Whether both windows can say whether this passage was reached.
526
+ *
527
+ * The one test every signed figure here is taken over. A passage `unknown` on
528
+ * either side is in the census, in `wordsByMovement` and in no mass (0282).
529
+ *
530
+ * **Published, because a reading of a library asks the same question of the
531
+ * same passages** (0280) and spelled it a second way until 0287. It is read
532
+ * off the movement, which `movementOf` derives from the same `spokenFor` the
533
+ * page-scale figures use — so the two are one rule rather than two that agree.
534
+ */
535
+ export declare const spokenForOnBothSides: (passage: ComparedPassage) => boolean;
536
+ /**
537
+ * What a change did to the words of a page and to the reading of them.
538
+ *
539
+ * Handed two `PageReading`s rather than two `CopyReading`s, for the reason
540
+ * `readingChangeOf` is handed two: one input per side cannot be a mismatched
541
+ * pair, and the census needs the parts a copy reading leaves out — a part that
542
+ * says nothing on one side is a word the change wrote on the other, and reading
543
+ * it off a filtered list would call the part new. The two copy readings it
544
+ * derives are returned.
545
+ *
546
+ * The labels `was` and `now` are the caller's. Nothing here checks which
547
+ * reading is older, so a caller holding them backwards gets a comparison with
548
+ * every sign reversed rather than a refusal — the same bargain 0224 struck, for
549
+ * the same reason: *this week against last week* is the same question with the
550
+ * tree held still, and refusing one order would refuse that too.
551
+ */
552
+ export declare const copyChangeOf: (was: PageReading, now: PageReading) => CopyChange;
553
+ //# sourceMappingURL=copy-change.d.ts.map