@automovie/evidence 0.3.3 → 0.4.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 (453) hide show
  1. package/README.md +7 -92
  2. package/lib/IAutoMovieDevelopmentProps.d.ts +26 -20
  3. package/lib/IAutoMovieEvidenceConfigProps.d.ts +19 -18
  4. package/lib/IAutoMovieNarrativeProps.d.ts +10 -8
  5. package/lib/IAutoMovieNoNarrativeProps.d.ts +4 -6
  6. package/lib/createDevelopmentContractClaims.d.ts +16 -26
  7. package/lib/createDevelopmentContractClaims.js +45 -30
  8. package/lib/createDevelopmentContractClaims.js.map +1 -1
  9. package/lib/createEngineeringClaims.d.ts +16 -21
  10. package/lib/createEngineeringClaims.js +15 -20
  11. package/lib/createEngineeringClaims.js.map +1 -1
  12. package/lib/createEvidenceConfig.d.ts +7 -11
  13. package/lib/createEvidenceConfig.js +34 -12
  14. package/lib/createEvidenceConfig.js.map +1 -1
  15. package/lib/createResearchClaims.d.ts +5 -13
  16. package/lib/createResearchClaims.js +6 -14
  17. package/lib/createResearchClaims.js.map +1 -1
  18. package/lib/internal/IContractLocation.d.ts +6 -7
  19. package/lib/internal/PRODUCTION_CONTRACTS.d.ts +14 -7
  20. package/lib/internal/PRODUCTION_CONTRACTS.js +14 -7
  21. package/lib/internal/PRODUCTION_CONTRACTS.js.map +1 -1
  22. package/lib/internal/SKILLS_ROOT.d.ts +13 -7
  23. package/lib/internal/SKILLS_ROOT.js +13 -7
  24. package/lib/internal/SKILLS_ROOT.js.map +1 -1
  25. package/lib/internal/STORY_CONTRACTS.d.ts +12 -9
  26. package/lib/internal/STORY_CONTRACTS.js +12 -9
  27. package/lib/internal/STORY_CONTRACTS.js.map +1 -1
  28. package/lib/internal/assertFilmCatalogLayout.d.ts +12 -0
  29. package/lib/internal/assertFilmCatalogLayout.js +144 -0
  30. package/lib/internal/assertFilmCatalogLayout.js.map +1 -0
  31. package/lib/internal/assertProductionContractLayout.d.ts +2 -10
  32. package/lib/internal/assertProductionContractLayout.js +2 -10
  33. package/lib/internal/assertProductionContractLayout.js.map +1 -1
  34. package/lib/internal/createReferenceRoot.d.ts +0 -8
  35. package/lib/internal/createReferenceRoot.js +0 -8
  36. package/lib/internal/createReferenceRoot.js.map +1 -1
  37. package/lib/internal/hasMatchingFile.d.ts +5 -0
  38. package/lib/internal/hasMatchingFile.js +20 -0
  39. package/lib/internal/hasMatchingFile.js.map +1 -0
  40. package/lib/internal/resolveSkillsDirectory.d.ts +2 -9
  41. package/lib/internal/resolveSkillsDirectory.js +2 -9
  42. package/lib/internal/resolveSkillsDirectory.js.map +1 -1
  43. package/lib/narrative/AuthoredLayer.d.ts +2 -6
  44. package/lib/narrative/EvidenceMetadataRewriteOwnership.d.ts +0 -5
  45. package/lib/narrative/IEvidenceMetadataRenderedSample.d.ts +1 -8
  46. package/lib/narrative/IEvidenceMetadataRewriteFile.d.ts +1 -8
  47. package/lib/narrative/IEvidenceMetadataRewriteProps.d.ts +1 -8
  48. package/lib/narrative/IEvidenceMetadataRewriteReport.d.ts +1 -8
  49. package/lib/narrative/IPackageChecklistClaimProps.d.ts +2 -7
  50. package/lib/narrative/IPackageContractProps.d.ts +4 -11
  51. package/lib/narrative/IPackagePopulationContractProps.d.ts +1 -8
  52. package/lib/narrative/IProductionConfigProps.d.ts +7 -11
  53. package/lib/narrative/IProductionConstruction.d.ts +3 -10
  54. package/lib/narrative/NarrativeLayer.d.ts +3 -8
  55. package/lib/narrative/NarrativeScope.d.ts +2 -7
  56. package/lib/narrative/ProductionStage.d.ts +2 -6
  57. package/lib/narrative/createBriefFiles.d.ts +5 -12
  58. package/lib/narrative/createBriefFiles.js +5 -12
  59. package/lib/narrative/createBriefFiles.js.map +1 -1
  60. package/lib/narrative/createNarrativeUnitFiles.d.ts +0 -8
  61. package/lib/narrative/createNarrativeUnitFiles.js +0 -8
  62. package/lib/narrative/createNarrativeUnitFiles.js.map +1 -1
  63. package/lib/narrative/createPackageChecklistClaim.d.ts +3 -11
  64. package/lib/narrative/createPackageChecklistClaim.js +5 -15
  65. package/lib/narrative/createPackageChecklistClaim.js.map +1 -1
  66. package/lib/narrative/createPackageContract.d.ts +0 -8
  67. package/lib/narrative/createPackageContract.js +0 -8
  68. package/lib/narrative/createPackageContract.js.map +1 -1
  69. package/lib/narrative/createPackagePopulationContract.d.ts +3 -11
  70. package/lib/narrative/createPackagePopulationContract.js +3 -11
  71. package/lib/narrative/createPackagePopulationContract.js.map +1 -1
  72. package/lib/narrative/createProductionClaims.d.ts +0 -8
  73. package/lib/narrative/createProductionClaims.js +0 -8
  74. package/lib/narrative/createProductionClaims.js.map +1 -1
  75. package/lib/narrative/createProductionConfig.d.ts +1 -11
  76. package/lib/narrative/createProductionConfig.js +1 -11
  77. package/lib/narrative/createProductionConfig.js.map +1 -1
  78. package/lib/narrative/createSettingsFiles.d.ts +0 -8
  79. package/lib/narrative/createSettingsFiles.js +0 -8
  80. package/lib/narrative/createSettingsFiles.js.map +1 -1
  81. package/lib/narrative/internal/AUTHORED_LAYERS.d.ts +14 -7
  82. package/lib/narrative/internal/AUTHORED_LAYERS.js +14 -7
  83. package/lib/narrative/internal/AUTHORED_LAYERS.js.map +1 -1
  84. package/lib/narrative/internal/claims/createDiscoveryClaim.d.ts +17 -22
  85. package/lib/narrative/internal/claims/createDiscoveryClaim.js +17 -22
  86. package/lib/narrative/internal/claims/createDiscoveryClaim.js.map +1 -1
  87. package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +7 -15
  88. package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +7 -15
  89. package/lib/narrative/internal/claims/createInstructionCoverageClaim.js.map +1 -1
  90. package/lib/narrative/internal/claims/createLayerClaims.d.ts +2 -10
  91. package/lib/narrative/internal/claims/createLayerClaims.js +2 -28
  92. package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -1
  93. package/lib/narrative/internal/claims/createOutlineClaims.d.ts +6 -14
  94. package/lib/narrative/internal/claims/createOutlineClaims.js +9 -18
  95. package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
  96. package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +4 -14
  97. package/lib/narrative/internal/claims/createPopulationObligationClaims.js +10 -36
  98. package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -1
  99. package/lib/narrative/internal/claims/createReviewClaims.d.ts +11 -19
  100. package/lib/narrative/internal/claims/createReviewClaims.js +57 -56
  101. package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
  102. package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +1 -9
  103. package/lib/narrative/internal/claims/createSettingCoverageClaim.js +1 -9
  104. package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
  105. package/lib/narrative/internal/claims/index.d.ts +0 -1
  106. package/lib/narrative/internal/claims/index.js +0 -1
  107. package/lib/narrative/internal/claims/index.js.map +1 -1
  108. package/lib/narrative/internal/collectProductionClaims.d.ts +1 -11
  109. package/lib/narrative/internal/collectProductionClaims.js +2 -15
  110. package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
  111. package/lib/narrative/internal/constructionStage.d.ts +2 -9
  112. package/lib/narrative/internal/constructionStage.js +2 -9
  113. package/lib/narrative/internal/constructionStage.js.map +1 -1
  114. package/lib/narrative/internal/createGraphConfig.d.ts +4 -12
  115. package/lib/narrative/internal/createGraphConfig.js +4 -12
  116. package/lib/narrative/internal/createGraphConfig.js.map +1 -1
  117. package/lib/narrative/internal/index.d.ts +0 -1
  118. package/lib/narrative/internal/index.js +0 -1
  119. package/lib/narrative/internal/index.js.map +1 -1
  120. package/lib/narrative/internal/isCanonLayer.d.ts +2 -9
  121. package/lib/narrative/internal/isCanonLayer.js +2 -9
  122. package/lib/narrative/internal/isCanonLayer.js.map +1 -1
  123. package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.d.ts +10 -7
  124. package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js +10 -7
  125. package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js.map +1 -1
  126. package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.d.ts +1 -8
  127. package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.d.ts +10 -7
  128. package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js +10 -7
  129. package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js.map +1 -1
  130. package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.d.ts +10 -7
  131. package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js +10 -7
  132. package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js.map +1 -1
  133. package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.d.ts +1 -8
  134. package/lib/narrative/internal/metadataRewrite/IEvidenceSection.d.ts +1 -8
  135. package/lib/narrative/internal/metadataRewrite/IMetadataFragment.d.ts +1 -8
  136. package/lib/narrative/internal/metadataRewrite/IProjectionSegment.d.ts +1 -8
  137. package/lib/narrative/internal/metadataRewrite/IProtectedProjection.d.ts +1 -8
  138. package/lib/narrative/internal/metadataRewrite/REVIEW.d.ts +11 -7
  139. package/lib/narrative/internal/metadataRewrite/REVIEW.js +11 -7
  140. package/lib/narrative/internal/metadataRewrite/REVIEW.js.map +1 -1
  141. package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.d.ts +13 -8
  142. package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js +13 -8
  143. package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js.map +1 -1
  144. package/lib/narrative/internal/metadataRewrite/UTF8.d.ts +10 -7
  145. package/lib/narrative/internal/metadataRewrite/UTF8.js +10 -7
  146. package/lib/narrative/internal/metadataRewrite/UTF8.js.map +1 -1
  147. package/lib/narrative/internal/metadataRewrite/between.d.ts +1 -11
  148. package/lib/narrative/internal/metadataRewrite/between.js +1 -11
  149. package/lib/narrative/internal/metadataRewrite/between.js.map +1 -1
  150. package/lib/narrative/internal/metadataRewrite/continuation.d.ts +1 -11
  151. package/lib/narrative/internal/metadataRewrite/continuation.js +1 -11
  152. package/lib/narrative/internal/metadataRewrite/continuation.js.map +1 -1
  153. package/lib/narrative/internal/metadataRewrite/declarationKind.d.ts +1 -11
  154. package/lib/narrative/internal/metadataRewrite/declarationKind.js +1 -11
  155. package/lib/narrative/internal/metadataRewrite/declarationKind.js.map +1 -1
  156. package/lib/narrative/internal/metadataRewrite/decode.d.ts +1 -11
  157. package/lib/narrative/internal/metadataRewrite/decode.js +1 -11
  158. package/lib/narrative/internal/metadataRewrite/decode.js.map +1 -1
  159. package/lib/narrative/internal/metadataRewrite/directory.d.ts +1 -11
  160. package/lib/narrative/internal/metadataRewrite/directory.js +1 -11
  161. package/lib/narrative/internal/metadataRewrite/directory.js.map +1 -1
  162. package/lib/narrative/internal/metadataRewrite/errorMessage.d.ts +1 -11
  163. package/lib/narrative/internal/metadataRewrite/errorMessage.js +1 -11
  164. package/lib/narrative/internal/metadataRewrite/errorMessage.js.map +1 -1
  165. package/lib/narrative/internal/metadataRewrite/evidenceHeading.d.ts +1 -11
  166. package/lib/narrative/internal/metadataRewrite/evidenceHeading.js +1 -11
  167. package/lib/narrative/internal/metadataRewrite/evidenceHeading.js.map +1 -1
  168. package/lib/narrative/internal/metadataRewrite/evidenceSections.d.ts +1 -11
  169. package/lib/narrative/internal/metadataRewrite/evidenceSections.js +1 -11
  170. package/lib/narrative/internal/metadataRewrite/evidenceSections.js.map +1 -1
  171. package/lib/narrative/internal/metadataRewrite/findClose.d.ts +1 -11
  172. package/lib/narrative/internal/metadataRewrite/findClose.js +1 -11
  173. package/lib/narrative/internal/metadataRewrite/findClose.js.map +1 -1
  174. package/lib/narrative/internal/metadataRewrite/firstDifference.d.ts +1 -11
  175. package/lib/narrative/internal/metadataRewrite/firstDifference.js +1 -11
  176. package/lib/narrative/internal/metadataRewrite/firstDifference.js.map +1 -1
  177. package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.d.ts +2 -9
  178. package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js +2 -9
  179. package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js.map +1 -1
  180. package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.d.ts +1 -11
  181. package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js +1 -11
  182. package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js.map +1 -1
  183. package/lib/narrative/internal/metadataRewrite/isDeclaration.d.ts +1 -11
  184. package/lib/narrative/internal/metadataRewrite/isDeclaration.js +1 -11
  185. package/lib/narrative/internal/metadataRewrite/isDeclaration.js.map +1 -1
  186. package/lib/narrative/internal/metadataRewrite/isNodeError.d.ts +1 -11
  187. package/lib/narrative/internal/metadataRewrite/isNodeError.js +1 -11
  188. package/lib/narrative/internal/metadataRewrite/isNodeError.js.map +1 -1
  189. package/lib/narrative/internal/metadataRewrite/lineEnding.d.ts +1 -11
  190. package/lib/narrative/internal/metadataRewrite/lineEnding.js +1 -11
  191. package/lib/narrative/internal/metadataRewrite/lineEnding.js.map +1 -1
  192. package/lib/narrative/internal/metadataRewrite/locate.d.ts +1 -11
  193. package/lib/narrative/internal/metadataRewrite/locate.js +1 -11
  194. package/lib/narrative/internal/metadataRewrite/locate.js.map +1 -1
  195. package/lib/narrative/internal/metadataRewrite/markdownFiles.d.ts +1 -11
  196. package/lib/narrative/internal/metadataRewrite/markdownFiles.js +1 -11
  197. package/lib/narrative/internal/metadataRewrite/markdownFiles.js.map +1 -1
  198. package/lib/narrative/internal/metadataRewrite/metadataOwnership.d.ts +1 -11
  199. package/lib/narrative/internal/metadataRewrite/metadataOwnership.js +1 -11
  200. package/lib/narrative/internal/metadataRewrite/metadataOwnership.js.map +1 -1
  201. package/lib/narrative/internal/metadataRewrite/normalizeFile.d.ts +1 -11
  202. package/lib/narrative/internal/metadataRewrite/normalizeFile.js +1 -11
  203. package/lib/narrative/internal/metadataRewrite/normalizeFile.js.map +1 -1
  204. package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.d.ts +1 -11
  205. package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js +1 -11
  206. package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js.map +1 -1
  207. package/lib/narrative/internal/metadataRewrite/occurrences.d.ts +1 -11
  208. package/lib/narrative/internal/metadataRewrite/occurrences.js +1 -11
  209. package/lib/narrative/internal/metadataRewrite/occurrences.js.map +1 -1
  210. package/lib/narrative/internal/metadataRewrite/originalOffset.d.ts +1 -11
  211. package/lib/narrative/internal/metadataRewrite/originalOffset.js +1 -11
  212. package/lib/narrative/internal/metadataRewrite/originalOffset.js.map +1 -1
  213. package/lib/narrative/internal/metadataRewrite/project.d.ts +1 -11
  214. package/lib/narrative/internal/metadataRewrite/project.js +1 -11
  215. package/lib/narrative/internal/metadataRewrite/project.js.map +1 -1
  216. package/lib/narrative/internal/metadataRewrite/protectedFileKind.d.ts +1 -11
  217. package/lib/narrative/internal/metadataRewrite/protectedFileKind.js +1 -11
  218. package/lib/narrative/internal/metadataRewrite/protectedFileKind.js.map +1 -1
  219. package/lib/narrative/internal/metadataRewrite/replacementSafety.d.ts +1 -11
  220. package/lib/narrative/internal/metadataRewrite/replacementSafety.js +1 -11
  221. package/lib/narrative/internal/metadataRewrite/replacementSafety.js.map +1 -1
  222. package/lib/narrative/internal/metadataRewrite/sameMetadata.d.ts +1 -11
  223. package/lib/narrative/internal/metadataRewrite/sameMetadata.js +1 -11
  224. package/lib/narrative/internal/metadataRewrite/sameMetadata.js.map +1 -1
  225. package/lib/narrative/internal/metadataRewrite/selectFiles.d.ts +1 -11
  226. package/lib/narrative/internal/metadataRewrite/selectFiles.js +1 -11
  227. package/lib/narrative/internal/metadataRewrite/selectFiles.js.map +1 -1
  228. package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.d.ts +1 -11
  229. package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js +1 -11
  230. package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js.map +1 -1
  231. package/lib/narrative/internal/metadataRewrite/textLocation.d.ts +1 -11
  232. package/lib/narrative/internal/metadataRewrite/textLocation.js +1 -11
  233. package/lib/narrative/internal/metadataRewrite/textLocation.js.map +1 -1
  234. package/lib/narrative/internal/metadataRewrite/validateRenderedSample.d.ts +1 -11
  235. package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js +1 -11
  236. package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js.map +1 -1
  237. package/lib/narrative/internal/metadataRewrite/withoutEnding.d.ts +1 -11
  238. package/lib/narrative/internal/metadataRewrite/withoutEnding.js +1 -11
  239. package/lib/narrative/internal/metadataRewrite/withoutEnding.js.map +1 -1
  240. package/lib/narrative/internal/productionLayers.d.ts +1 -11
  241. package/lib/narrative/internal/productionLayers.js +1 -11
  242. package/lib/narrative/internal/productionLayers.js.map +1 -1
  243. package/lib/narrative/internal/readSettingsFiles.d.ts +4 -12
  244. package/lib/narrative/internal/readSettingsFiles.js +8 -13
  245. package/lib/narrative/internal/readSettingsFiles.js.map +1 -1
  246. package/lib/narrative/internal/references/createCoverageReference.d.ts +2 -10
  247. package/lib/narrative/internal/references/createCoverageReference.js +2 -10
  248. package/lib/narrative/internal/references/createCoverageReference.js.map +1 -1
  249. package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +5 -13
  250. package/lib/narrative/internal/references/createDiscoveryReferences.js +5 -13
  251. package/lib/narrative/internal/references/createDiscoveryReferences.js.map +1 -1
  252. package/lib/narrative/internal/references/createLanguageDiscoveryReferences.d.ts +1 -11
  253. package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js +1 -11
  254. package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js.map +1 -1
  255. package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +3 -13
  256. package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +4 -13
  257. package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -1
  258. package/lib/narrative/internal/references/createLineageReference.d.ts +6 -14
  259. package/lib/narrative/internal/references/createLineageReference.js +6 -14
  260. package/lib/narrative/internal/references/createLineageReference.js.map +1 -1
  261. package/lib/narrative/internal/references/createLocalContractReference.d.ts +0 -8
  262. package/lib/narrative/internal/references/createLocalContractReference.js +0 -8
  263. package/lib/narrative/internal/references/createLocalContractReference.js.map +1 -1
  264. package/lib/narrative/internal/references/createPrincipleReferences.d.ts +2 -21
  265. package/lib/narrative/internal/references/createPrincipleReferences.js +6 -35
  266. package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -1
  267. package/lib/narrative/internal/references/createSettingReferences.d.ts +3 -10
  268. package/lib/narrative/internal/references/createSettingReferences.js +3 -10
  269. package/lib/narrative/internal/references/createSettingReferences.js.map +1 -1
  270. package/lib/narrative/internal/references/createSharedReference.d.ts +7 -16
  271. package/lib/narrative/internal/references/createSharedReference.js +8 -17
  272. package/lib/narrative/internal/references/createSharedReference.js.map +1 -1
  273. package/lib/narrative/internal/references/createUpstreamReference.d.ts +0 -8
  274. package/lib/narrative/internal/references/createUpstreamReference.js +0 -8
  275. package/lib/narrative/internal/references/createUpstreamReference.js.map +1 -1
  276. package/lib/narrative/internal/references/layerFiles.d.ts +4 -13
  277. package/lib/narrative/internal/references/layerFiles.js +5 -15
  278. package/lib/narrative/internal/references/layerFiles.js.map +1 -1
  279. package/lib/narrative/internal/settingsEntryAnchor.d.ts +2 -9
  280. package/lib/narrative/internal/settingsEntryAnchor.js +2 -9
  281. package/lib/narrative/internal/settingsEntryAnchor.js.map +1 -1
  282. package/lib/narrative/internal/topology/createTopologyFiles.d.ts +1 -11
  283. package/lib/narrative/internal/topology/createTopologyFiles.js +1 -11
  284. package/lib/narrative/internal/topology/createTopologyFiles.js.map +1 -1
  285. package/lib/narrative/internal/utilities/BODY_ROOT.d.ts +14 -7
  286. package/lib/narrative/internal/utilities/BODY_ROOT.js +14 -7
  287. package/lib/narrative/internal/utilities/BODY_ROOT.js.map +1 -1
  288. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +15 -7
  289. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +15 -7
  290. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js.map +1 -1
  291. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.d.ts +2 -9
  292. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +2 -9
  293. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -1
  294. package/lib/narrative/internal/utilities/createContractDirectory.d.ts +4 -10
  295. package/lib/narrative/internal/utilities/createContractDirectory.js +4 -10
  296. package/lib/narrative/internal/utilities/createContractDirectory.js.map +1 -1
  297. package/lib/narrative/internal/utilities/createContractRoot.d.ts +8 -18
  298. package/lib/narrative/internal/utilities/createContractRoot.js +8 -18
  299. package/lib/narrative/internal/utilities/createContractRoot.js.map +1 -1
  300. package/lib/narrative/internal/utilities/createEvidenceFiles.d.ts +1 -11
  301. package/lib/narrative/internal/utilities/createEvidenceFiles.js +1 -11
  302. package/lib/narrative/internal/utilities/createEvidenceFiles.js.map +1 -1
  303. package/lib/narrative/internal/utilities/createUnitFiles.d.ts +0 -8
  304. package/lib/narrative/internal/utilities/createUnitFiles.js +0 -8
  305. package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -1
  306. package/lib/narrative/internal/utilities/hasStoryContract.d.ts +9 -0
  307. package/lib/narrative/internal/utilities/hasStoryContract.js +20 -0
  308. package/lib/narrative/internal/utilities/hasStoryContract.js.map +1 -0
  309. package/lib/narrative/internal/utilities/referenceLocation.d.ts +2 -9
  310. package/lib/narrative/internal/utilities/referenceLocation.js +2 -9
  311. package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -1
  312. package/lib/narrative/internal/validateSettingsOutline.d.ts +6 -12
  313. package/lib/narrative/internal/validateSettingsOutline.js +27 -20
  314. package/lib/narrative/internal/validateSettingsOutline.js.map +1 -1
  315. package/lib/narrative/isFirstPartPilot.d.ts +1 -11
  316. package/lib/narrative/isFirstPartPilot.js +1 -11
  317. package/lib/narrative/isFirstPartPilot.js.map +1 -1
  318. package/lib/narrative/verifyEvidenceMetadataRewrite.d.ts +2 -10
  319. package/lib/narrative/verifyEvidenceMetadataRewrite.js +2 -10
  320. package/lib/narrative/verifyEvidenceMetadataRewrite.js.map +1 -1
  321. package/package.json +6 -5
  322. package/src/IAutoMovieDevelopmentProps.ts +27 -20
  323. package/src/IAutoMovieEvidenceConfigProps.ts +19 -18
  324. package/src/IAutoMovieNarrativeProps.ts +10 -8
  325. package/src/IAutoMovieNoNarrativeProps.ts +4 -6
  326. package/src/createDevelopmentContractClaims.ts +46 -30
  327. package/src/createEngineeringClaims.ts +17 -22
  328. package/src/createEvidenceConfig.ts +45 -12
  329. package/src/createResearchClaims.ts +6 -14
  330. package/src/internal/IContractLocation.ts +6 -7
  331. package/src/internal/PRODUCTION_CONTRACTS.ts +14 -7
  332. package/src/internal/SKILLS_ROOT.ts +13 -7
  333. package/src/internal/STORY_CONTRACTS.ts +12 -9
  334. package/src/internal/assertFilmCatalogLayout.ts +173 -0
  335. package/src/internal/assertProductionContractLayout.ts +2 -10
  336. package/src/internal/createReferenceRoot.ts +0 -8
  337. package/src/internal/hasMatchingFile.ts +21 -0
  338. package/src/internal/index.ts +1 -1
  339. package/src/internal/resolveSkillsDirectory.ts +2 -9
  340. package/src/narrative/AuthoredLayer.ts +2 -6
  341. package/src/narrative/EvidenceMetadataRewriteOwnership.ts +0 -5
  342. package/src/narrative/IEvidenceMetadataRenderedSample.ts +1 -8
  343. package/src/narrative/IEvidenceMetadataRewriteFile.ts +1 -8
  344. package/src/narrative/IEvidenceMetadataRewriteProps.ts +1 -8
  345. package/src/narrative/IEvidenceMetadataRewriteReport.ts +1 -8
  346. package/src/narrative/IPackageChecklistClaimProps.ts +2 -7
  347. package/src/narrative/IPackageContractProps.ts +4 -11
  348. package/src/narrative/IPackagePopulationContractProps.ts +1 -8
  349. package/src/narrative/IProductionConfigProps.ts +7 -11
  350. package/src/narrative/IProductionConstruction.ts +3 -10
  351. package/src/narrative/NarrativeLayer.ts +3 -8
  352. package/src/narrative/NarrativeScope.ts +2 -7
  353. package/src/narrative/ProductionStage.ts +2 -6
  354. package/src/narrative/createBriefFiles.ts +5 -12
  355. package/src/narrative/createNarrativeUnitFiles.ts +0 -8
  356. package/src/narrative/createPackageChecklistClaim.ts +5 -15
  357. package/src/narrative/createPackageContract.ts +0 -8
  358. package/src/narrative/createPackagePopulationContract.ts +3 -11
  359. package/src/narrative/createProductionClaims.ts +0 -8
  360. package/src/narrative/createProductionConfig.ts +1 -11
  361. package/src/narrative/createSettingsFiles.ts +0 -8
  362. package/src/narrative/internal/AUTHORED_LAYERS.ts +14 -7
  363. package/src/narrative/internal/claims/createDiscoveryClaim.ts +17 -22
  364. package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +7 -15
  365. package/src/narrative/internal/claims/createLayerClaims.ts +2 -30
  366. package/src/narrative/internal/claims/createOutlineClaims.ts +9 -26
  367. package/src/narrative/internal/claims/createPopulationObligationClaims.ts +12 -53
  368. package/src/narrative/internal/claims/createReviewClaims.ts +57 -64
  369. package/src/narrative/internal/claims/createSettingCoverageClaim.ts +1 -9
  370. package/src/narrative/internal/claims/index.ts +0 -1
  371. package/src/narrative/internal/collectProductionClaims.ts +2 -15
  372. package/src/narrative/internal/constructionStage.ts +2 -9
  373. package/src/narrative/internal/createGraphConfig.ts +4 -12
  374. package/src/narrative/internal/index.ts +0 -1
  375. package/src/narrative/internal/isCanonLayer.ts +2 -9
  376. package/src/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.ts +10 -7
  377. package/src/narrative/internal/metadataRewrite/EvidenceDeclarationKind.ts +1 -8
  378. package/src/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.ts +10 -7
  379. package/src/narrative/internal/metadataRewrite/HEADING_REVIEW.ts +10 -7
  380. package/src/narrative/internal/metadataRewrite/IEvidenceHeading.ts +1 -8
  381. package/src/narrative/internal/metadataRewrite/IEvidenceSection.ts +1 -8
  382. package/src/narrative/internal/metadataRewrite/IMetadataFragment.ts +1 -8
  383. package/src/narrative/internal/metadataRewrite/IProjectionSegment.ts +1 -8
  384. package/src/narrative/internal/metadataRewrite/IProtectedProjection.ts +1 -8
  385. package/src/narrative/internal/metadataRewrite/REVIEW.ts +11 -7
  386. package/src/narrative/internal/metadataRewrite/SUSPICIOUS.ts +13 -8
  387. package/src/narrative/internal/metadataRewrite/UTF8.ts +10 -7
  388. package/src/narrative/internal/metadataRewrite/between.ts +1 -11
  389. package/src/narrative/internal/metadataRewrite/continuation.ts +1 -11
  390. package/src/narrative/internal/metadataRewrite/declarationKind.ts +1 -11
  391. package/src/narrative/internal/metadataRewrite/decode.ts +1 -11
  392. package/src/narrative/internal/metadataRewrite/directory.ts +1 -11
  393. package/src/narrative/internal/metadataRewrite/errorMessage.ts +1 -11
  394. package/src/narrative/internal/metadataRewrite/evidenceHeading.ts +1 -11
  395. package/src/narrative/internal/metadataRewrite/evidenceSections.ts +1 -11
  396. package/src/narrative/internal/metadataRewrite/findClose.ts +1 -11
  397. package/src/narrative/internal/metadataRewrite/firstDifference.ts +1 -11
  398. package/src/narrative/internal/metadataRewrite/flatFingerprintStart.ts +2 -9
  399. package/src/narrative/internal/metadataRewrite/invalidUtf8Offset.ts +1 -11
  400. package/src/narrative/internal/metadataRewrite/isDeclaration.ts +1 -11
  401. package/src/narrative/internal/metadataRewrite/isNodeError.ts +1 -11
  402. package/src/narrative/internal/metadataRewrite/lineEnding.ts +1 -11
  403. package/src/narrative/internal/metadataRewrite/locate.ts +1 -11
  404. package/src/narrative/internal/metadataRewrite/markdownFiles.ts +1 -11
  405. package/src/narrative/internal/metadataRewrite/metadataOwnership.ts +1 -11
  406. package/src/narrative/internal/metadataRewrite/normalizeFile.ts +1 -11
  407. package/src/narrative/internal/metadataRewrite/occurrenceOffsets.ts +1 -11
  408. package/src/narrative/internal/metadataRewrite/occurrences.ts +1 -11
  409. package/src/narrative/internal/metadataRewrite/originalOffset.ts +1 -11
  410. package/src/narrative/internal/metadataRewrite/project.ts +1 -11
  411. package/src/narrative/internal/metadataRewrite/protectedFileKind.ts +1 -11
  412. package/src/narrative/internal/metadataRewrite/replacementSafety.ts +1 -11
  413. package/src/narrative/internal/metadataRewrite/sameMetadata.ts +1 -11
  414. package/src/narrative/internal/metadataRewrite/selectFiles.ts +1 -11
  415. package/src/narrative/internal/metadataRewrite/singleLineDeclaration.ts +1 -11
  416. package/src/narrative/internal/metadataRewrite/textLocation.ts +1 -11
  417. package/src/narrative/internal/metadataRewrite/validateRenderedSample.ts +1 -11
  418. package/src/narrative/internal/metadataRewrite/withoutEnding.ts +1 -11
  419. package/src/narrative/internal/productionLayers.ts +1 -11
  420. package/src/narrative/internal/readSettingsFiles.ts +8 -13
  421. package/src/narrative/internal/references/createCoverageReference.ts +2 -10
  422. package/src/narrative/internal/references/createDiscoveryReferences.ts +5 -13
  423. package/src/narrative/internal/references/createLanguageDiscoveryReferences.ts +1 -11
  424. package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +4 -14
  425. package/src/narrative/internal/references/createLineageReference.ts +6 -14
  426. package/src/narrative/internal/references/createLocalContractReference.ts +0 -8
  427. package/src/narrative/internal/references/createPrincipleReferences.ts +9 -42
  428. package/src/narrative/internal/references/createSettingReferences.ts +3 -10
  429. package/src/narrative/internal/references/createSharedReference.ts +8 -17
  430. package/src/narrative/internal/references/createUpstreamReference.ts +0 -8
  431. package/src/narrative/internal/references/layerFiles.ts +5 -15
  432. package/src/narrative/internal/settingsEntryAnchor.ts +2 -9
  433. package/src/narrative/internal/topology/createTopologyFiles.ts +1 -11
  434. package/src/narrative/internal/utilities/BODY_ROOT.ts +14 -7
  435. package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +15 -7
  436. package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +2 -9
  437. package/src/narrative/internal/utilities/createContractDirectory.ts +4 -10
  438. package/src/narrative/internal/utilities/createContractRoot.ts +8 -18
  439. package/src/narrative/internal/utilities/createEvidenceFiles.ts +1 -11
  440. package/src/narrative/internal/utilities/createUnitFiles.ts +0 -8
  441. package/src/narrative/internal/utilities/hasStoryContract.ts +21 -0
  442. package/src/narrative/internal/utilities/referenceLocation.ts +2 -9
  443. package/src/narrative/internal/validateSettingsOutline.ts +27 -20
  444. package/src/narrative/isFirstPartPilot.ts +1 -11
  445. package/src/narrative/verifyEvidenceMetadataRewrite.ts +2 -10
  446. package/lib/narrative/internal/REALIZED_LAYERS.d.ts +0 -16
  447. package/lib/narrative/internal/REALIZED_LAYERS.js +0 -19
  448. package/lib/narrative/internal/REALIZED_LAYERS.js.map +0 -1
  449. package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +0 -26
  450. package/lib/narrative/internal/claims/createExpressionObligationClaims.js +0 -93
  451. package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +0 -1
  452. package/src/narrative/internal/REALIZED_LAYERS.ts +0 -18
  453. package/src/narrative/internal/claims/createExpressionObligationClaims.ts +0 -125
@@ -1,12 +1,17 @@
1
1
  /**
2
- * Names replacement and mojibake signals checked against the immutable ancestor.
2
+ * Names replacement and mojibake signals checked against the immutable
3
+ * ancestor.
3
4
  *
4
- * Principled implementation: Six fixed tokens signal possible replacement corruption or mojibake for ancestor comparison.
5
- * Clear and simple design: One readonly tuple owns the signal vocabulary.
6
- * Prohibited implementation shortcuts: Signals are explicit heuristics; absence does not establish that other text is valid.
7
- * Meaningful documentation: The comment states the ancestor-comparison role and exposes the exact tokens.
8
- * Efficient algorithms: Six literal entries require constant initialization; content scans belong to replacementSafety.
9
- * Reuse equivalent work: The same tuple serves every verification without rebuilding the vocabulary.
10
- * Bound retention and release resources: The module retains six fixed strings and no per-file observations.
5
+ * Principled implementation: Six fixed tokens signal possible replacement
6
+ * corruption or mojibake for ancestor comparison. Clear and simple design: One
7
+ * readonly tuple owns the signal vocabulary. Prohibited implementation
8
+ * shortcuts: Signals are explicit heuristics; absence does not establish that
9
+ * other text is valid. Meaningful documentation: The comment states the
10
+ * ancestor-comparison role and exposes the exact tokens. Efficient algorithms:
11
+ * Six literal entries require constant initialization; content scans belong to
12
+ * replacementSafety. Reuse equivalent work: The same tuple serves every
13
+ * verification without rebuilding the vocabulary. Bound retention and release
14
+ * resources: The module retains six fixed strings and no per-file
15
+ * observations.
11
16
  */
12
17
  export declare const SUSPICIOUS: readonly ["??", "Ã", "Â", "â€", "€", ""];
@@ -2,15 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SUSPICIOUS = void 0;
4
4
  /**
5
- * Names replacement and mojibake signals checked against the immutable ancestor.
5
+ * Names replacement and mojibake signals checked against the immutable
6
+ * ancestor.
6
7
  *
7
- * Principled implementation: Six fixed tokens signal possible replacement corruption or mojibake for ancestor comparison.
8
- * Clear and simple design: One readonly tuple owns the signal vocabulary.
9
- * Prohibited implementation shortcuts: Signals are explicit heuristics; absence does not establish that other text is valid.
10
- * Meaningful documentation: The comment states the ancestor-comparison role and exposes the exact tokens.
11
- * Efficient algorithms: Six literal entries require constant initialization; content scans belong to replacementSafety.
12
- * Reuse equivalent work: The same tuple serves every verification without rebuilding the vocabulary.
13
- * Bound retention and release resources: The module retains six fixed strings and no per-file observations.
8
+ * Principled implementation: Six fixed tokens signal possible replacement
9
+ * corruption or mojibake for ancestor comparison. Clear and simple design: One
10
+ * readonly tuple owns the signal vocabulary. Prohibited implementation
11
+ * shortcuts: Signals are explicit heuristics; absence does not establish that
12
+ * other text is valid. Meaningful documentation: The comment states the
13
+ * ancestor-comparison role and exposes the exact tokens. Efficient algorithms:
14
+ * Six literal entries require constant initialization; content scans belong to
15
+ * replacementSafety. Reuse equivalent work: The same tuple serves every
16
+ * verification without rebuilding the vocabulary. Bound retention and release
17
+ * resources: The module retains six fixed strings and no per-file
18
+ * observations.
14
19
  */
15
20
  exports.SUSPICIOUS = [
16
21
  "??",
@@ -1 +1 @@
1
- {"version":3,"file":"SUSPICIOUS.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/SUSPICIOUS.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACU,QAAA,UAAU,GAA8C;IACnE,IAAI;IACJ,QAAQ;IACR,QAAQ;IACR,cAAc;IACd,QAAQ;IACR,QAAQ;CACA,CAAC"}
1
+ {"version":3,"file":"SUSPICIOUS.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/SUSPICIOUS.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;GAeG;AACU,QAAA,UAAU,GAA8C;IACnE,IAAI;IACJ,QAAQ;IACR,QAAQ;IACR,cAAc;IACd,QAAQ;IACR,QAAQ;CACA,CAAC"}
@@ -2,12 +2,15 @@ import { TextDecoder } from "node:util";
2
2
  /**
3
3
  * Decodes strict UTF-8 while preserving a leading byte order mark.
4
4
  *
5
- * Principled implementation: Node TextDecoder uses fatal UTF-8 decoding and ignoreBOM to preserve a leading BOM in text.
6
- * Clear and simple design: One decoder centralizes the lossless policy after explicit byte validation.
7
- * Prohibited implementation shortcuts: Invalid input is not repaired through replacement decoding.
8
- * Meaningful documentation: The comment states strict decoding and leading-BOM preservation.
9
- * Efficient algorithms: Initialization is constant; decode processes supplied bytes and allocates output text.
10
- * Reuse equivalent work: Complete non-streaming calls share one decoder without carrying partial input.
11
- * Bound retention and release resources: One decoder persists for module lifetime; returned text is caller-owned.
5
+ * Principled implementation: Node TextDecoder uses fatal UTF-8 decoding and
6
+ * ignoreBOM to preserve a leading BOM in text. Clear and simple design: One
7
+ * decoder centralizes the lossless policy after explicit byte validation.
8
+ * Prohibited implementation shortcuts: Invalid input is not repaired through
9
+ * replacement decoding. Meaningful documentation: The comment states strict
10
+ * decoding and leading-BOM preservation. Efficient algorithms: Initialization
11
+ * is constant; decode processes supplied bytes and allocates output text. Reuse
12
+ * equivalent work: Complete non-streaming calls share one decoder without
13
+ * carrying partial input. Bound retention and release resources: One decoder
14
+ * persists for module lifetime; returned text is caller-owned.
12
15
  */
13
16
  export declare const UTF8: TextDecoder;
@@ -5,13 +5,16 @@ const node_util_1 = require("node:util");
5
5
  /**
6
6
  * Decodes strict UTF-8 while preserving a leading byte order mark.
7
7
  *
8
- * Principled implementation: Node TextDecoder uses fatal UTF-8 decoding and ignoreBOM to preserve a leading BOM in text.
9
- * Clear and simple design: One decoder centralizes the lossless policy after explicit byte validation.
10
- * Prohibited implementation shortcuts: Invalid input is not repaired through replacement decoding.
11
- * Meaningful documentation: The comment states strict decoding and leading-BOM preservation.
12
- * Efficient algorithms: Initialization is constant; decode processes supplied bytes and allocates output text.
13
- * Reuse equivalent work: Complete non-streaming calls share one decoder without carrying partial input.
14
- * Bound retention and release resources: One decoder persists for module lifetime; returned text is caller-owned.
8
+ * Principled implementation: Node TextDecoder uses fatal UTF-8 decoding and
9
+ * ignoreBOM to preserve a leading BOM in text. Clear and simple design: One
10
+ * decoder centralizes the lossless policy after explicit byte validation.
11
+ * Prohibited implementation shortcuts: Invalid input is not repaired through
12
+ * replacement decoding. Meaningful documentation: The comment states strict
13
+ * decoding and leading-BOM preservation. Efficient algorithms: Initialization
14
+ * is constant; decode processes supplied bytes and allocates output text. Reuse
15
+ * equivalent work: Complete non-streaming calls share one decoder without
16
+ * carrying partial input. Bound retention and release resources: One decoder
17
+ * persists for module lifetime; returned text is caller-owned.
15
18
  */
16
19
  exports.UTF8 = new node_util_1.TextDecoder("utf-8", {
17
20
  fatal: true,
@@ -1 +1 @@
1
- {"version":3,"file":"UTF8.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/UTF8.ts"],"names":[],"mappings":";;;AAAA,yCAAwC;AAExC;;;;;;;;;;GAUG;AACU,QAAA,IAAI,GAAgB,IAAI,uBAAW,CAAC,OAAO,EAAE;IACxD,KAAK,EAAE,IAAI;IACX,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC"}
1
+ {"version":3,"file":"UTF8.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/UTF8.ts"],"names":[],"mappings":";;;AAAA,yCAAwC;AAExC;;;;;;;;;;;;;GAaG;AACU,QAAA,IAAI,GAAgB,IAAI,uBAAW,CAAC,OAAO,EAAE;IACxD,KAAK,EAAE,IAAI;IACX,SAAS,EAAE,IAAI;CAChB,CAAC,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Tests an optional byte against an inclusive range.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Inclusive comparisons reject an absent byte before testing bounds.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One scalar predicate supplies UTF-8 range checks.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No consumer-specific values or replacement behavior are introduced.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment states inclusive bounds and optional-byte semantics.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of comparisons takes constant time and auxiliary space.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Three scalar inputs fully determine the result; caching adds state to a constant operation.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No state or resources are retained.
11
- */
1
+ /** Tests an optional byte against an inclusive range. */
12
2
  export declare function between(byte: number | undefined, minimum: number, maximum: number): boolean;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.between = between;
4
- /**
5
- * Tests an optional byte against an inclusive range.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Inclusive comparisons reject an absent byte before testing bounds.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One scalar predicate supplies UTF-8 range checks.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No consumer-specific values or replacement behavior are introduced.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment states inclusive bounds and optional-byte semantics.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms A fixed number of comparisons takes constant time and auxiliary space.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Three scalar inputs fully determine the result; caching adds state to a constant operation.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No state or resources are retained.
14
- */
4
+ /** Tests an optional byte against an inclusive range. */
15
5
  function between(byte, minimum, maximum) {
16
6
  return byte !== undefined && byte >= minimum && byte <= maximum;
17
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"between.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/between.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,iBACE,IAAwB,EACxB,OAAe,EACf,OAAe;IAEf,OAAO,IAAI,KAAK,SAAS,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,CAAC;AAClE,CAAC"}
1
+ {"version":3,"file":"between.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/between.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,iBACE,IAAwB,EACxB,OAAe,EACf,OAAe;IAEf,OAAO,IAAI,KAAK,SAAS,IAAI,IAAI,IAAI,OAAO,IAAI,IAAI,IAAI,OAAO,CAAC;AAClE,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Tests one UTF-8 continuation byte without accepting absent bytes.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation UTF-8 continuation bytes occupy 0x80 through 0xbf; between also rejects truncation.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure A named predicate centralizes this encoding range.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The fixed interval is a UTF-8 constraint.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment states absent-byte rejection.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms One range check takes constant time and auxiliary space.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The stateless between predicate is shared without cached byte populations.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle or retained state.
11
- */
1
+ /** Tests one UTF-8 continuation byte without accepting absent bytes. */
12
2
  export declare function continuation(byte: number | undefined): boolean;
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.continuation = continuation;
4
4
  const between_1 = require("./between");
5
- /**
6
- * Tests one UTF-8 continuation byte without accepting absent bytes.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation UTF-8 continuation bytes occupy 0x80 through 0xbf; between also rejects truncation.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure A named predicate centralizes this encoding range.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts The fixed interval is a UTF-8 constraint.
11
- * @evidence contracts/development/common.md#meaningful-documentation The comment states absent-byte rejection.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms One range check takes constant time and auxiliary space.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The stateless between predicate is shared without cached byte populations.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The function acquires no handle or retained state.
15
- */
5
+ /** Tests one UTF-8 continuation byte without accepting absent bytes. */
16
6
  function continuation(byte) {
17
7
  return (0, between_1.between)(byte, 0x80, 0xbf);
18
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"continuation.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/continuation.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC;;;;;;;;;;GAUG;AACH,sBAA6B,IAAwB;IACnD,OAAO,IAAA,iBAAO,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACnC,CAAC"}
1
+ {"version":3,"file":"continuation.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/continuation.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAEpC,wEAAwE;AACxE,sBAA6B,IAAwB;IACnD,OAAO,IAAA,iBAAO,EAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AACnC,CAAC"}
@@ -1,13 +1,3 @@
1
1
  import type { EvidenceDeclarationKind } from "./EvidenceDeclarationKind";
2
- /**
3
- * Classifies one exact structural evidence declaration.
4
- *
5
- * @evidence contracts/development/implementation.md#principled-implementation Recognize exact flat grammar only when no HTML delimiter occurs in the line.
6
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One classifier serves recognition and ownership selection.
7
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Delimiter rejection protects structural boundaries for every caller.
8
- * @evidence contracts/development/common.md#meaningful-documentation The comment states exact classification; undefined represents unsupported syntax.
9
- * @evidence contracts/development/implementation.md#efficient-algorithms Delimiter searches and at most two regex checks scale with line length.
10
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Shared non-global grammar expressions are reused; lines are independently classified.
11
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only temporary match work is owned; no input lines are retained.
12
- */
2
+ /** Classifies one exact structural evidence declaration. */
13
3
  export declare function declarationKind(line: string): EvidenceDeclarationKind | undefined;
@@ -3,17 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.declarationKind = declarationKind;
4
4
  const ACKNOWLEDGEMENT_1 = require("./ACKNOWLEDGEMENT");
5
5
  const REVIEW_1 = require("./REVIEW");
6
- /**
7
- * Classifies one exact structural evidence declaration.
8
- *
9
- * @evidence contracts/development/implementation.md#principled-implementation Recognize exact flat grammar only when no HTML delimiter occurs in the line.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One classifier serves recognition and ownership selection.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Delimiter rejection protects structural boundaries for every caller.
12
- * @evidence contracts/development/common.md#meaningful-documentation The comment states exact classification; undefined represents unsupported syntax.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms Delimiter searches and at most two regex checks scale with line length.
14
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Shared non-global grammar expressions are reused; lines are independently classified.
15
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only temporary match work is owned; no input lines are retained.
16
- */
6
+ /** Classifies one exact structural evidence declaration. */
17
7
  function declarationKind(line) {
18
8
  if (!line.includes("<!--") &&
19
9
  !line.includes("-->") &&
@@ -1 +1 @@
1
- {"version":3,"file":"declarationKind.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/declarationKind.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,qCAAkC;AAElC;;;;;;;;;;GAUG;AACH,yBACE,IAAY;IAEZ,IACE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QACtB,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QACrB,iCAAe,CAAC,IAAI,CAAC,IAAI,CAAC;QAE1B,OAAO,iBAAiB,CAAC;IAC3B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QACtE,OAAO,QAAQ,CAAC;IAClB,OAAO,SAAS,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"declarationKind.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/declarationKind.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,qCAAkC;AAElC,4DAA4D;AAC5D,yBACE,IAAY;IAEZ,IACE,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QACtB,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QACrB,iCAAe,CAAC,IAAI,CAAC,IAAI,CAAC;QAE1B,OAAO,iBAAiB,CAAC;IAC3B,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,eAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QACtE,OAAO,QAAQ,CAAC;IAClB,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Decodes strictly and reports the exact first invalid source byte.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Validate UTF-8 sequences before fatal decoding so failures identify original invalid bytes.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Validation, coordinate formatting and decoding have separate helper owners.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Invalid bytes throw rather than enter lossy decoding or retry paths.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment states strict decoding; diagnostics give file, side, location and byte.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Validation and decoding scan B bytes with O(B) output; errors also locate their prefix.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The fixed decoder is shared, but each distinct input requires byte validation.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No bytes are retained after return or throw; resulting text is caller-owned.
11
- */
1
+ /** Decodes strictly and reports the exact first invalid source byte. */
12
2
  export declare function decode(bytes: Buffer, file: string, side: string): string;
@@ -4,17 +4,7 @@ exports.decode = decode;
4
4
  const UTF8_1 = require("./UTF8");
5
5
  const invalidUtf8Offset_1 = require("./invalidUtf8Offset");
6
6
  const locate_1 = require("./locate");
7
- /**
8
- * Decodes strictly and reports the exact first invalid source byte.
9
- *
10
- * @evidence contracts/development/implementation.md#principled-implementation Validate UTF-8 sequences before fatal decoding so failures identify original invalid bytes.
11
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Validation, coordinate formatting and decoding have separate helper owners.
12
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Invalid bytes throw rather than enter lossy decoding or retry paths.
13
- * @evidence contracts/development/common.md#meaningful-documentation The comment states strict decoding; diagnostics give file, side, location and byte.
14
- * @evidence contracts/development/implementation.md#efficient-algorithms Validation and decoding scan B bytes with O(B) output; errors also locate their prefix.
15
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The fixed decoder is shared, but each distinct input requires byte validation.
16
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No bytes are retained after return or throw; resulting text is caller-owned.
17
- */
7
+ /** Decodes strictly and reports the exact first invalid source byte. */
18
8
  function decode(bytes, file, side) {
19
9
  const invalid = (0, invalidUtf8Offset_1.invalidUtf8Offset)(bytes);
20
10
  if (invalid !== -1) {
@@ -1 +1 @@
1
- {"version":3,"file":"decode.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/decode.ts"],"names":[],"mappings":";;;AAAA,iCAA8B;AAC9B,2DAAwD;AACxD,qCAAkC;AAElC;;;;;;;;;;GAUG;AACH,gBAAuB,KAAa,EAAE,IAAY,EAAE,IAAY;IAC9D,MAAM,OAAO,GAAW,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;IACjD,IAAI,OAAO,KAAK,CAAC,CAAC,EAAE,CAAC;QACnB,MAAM,QAAQ,GAAqC,IAAA,eAAM,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC1E,MAAM,IAAI,KAAK,CACb,GAAG,IAAI,KAAK,IAAI,yBAAyB,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,MAAM,UAAU,OAAO,wCAAwC,CACnI,CAAC;IACJ,CAAC;IACD,OAAO,WAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC"}
1
+ {"version":3,"file":"decode.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/decode.ts"],"names":[],"mappings":";;;AAAA,iCAA8B;AAC9B,2DAAwD;AACxD,qCAAkC;AAElC,wEAAwE;AACxE,gBAAuB,KAAa,EAAE,IAAY,EAAE,IAAY;IAC9D,MAAM,OAAO,GAAW,IAAA,qCAAiB,EAAC,KAAK,CAAC,CAAC;IACjD,IAAI,OAAO,KAAK,CAAC,CAAC,EAAE,CAAC;QACnB,MAAM,QAAQ,GAAqC,IAAA,eAAM,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAC1E,MAAM,IAAI,KAAK,CACb,GAAG,IAAI,KAAK,IAAI,yBAAyB,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,MAAM,UAAU,OAAO,wCAAwC,CACnI,CAAC;IACJ,CAAC;IACD,OAAO,WAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Resolves and validates a required comparison directory.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Resolve the input path and require an existing directory through Node filesystem checks.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Boundary validation returns an absolute lexical comparison root.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Filesystem failures propagate; missing or non-directory roots receive explicit errors.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies required directories; errors identify the property and resolved path.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Resolution scales with path length and performs existence and stat checks without tree traversal.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Checks repeat because filesystem state may change between calls.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Synchronous filesystem calls leave no owned open handle.
11
- */
1
+ /** Resolves and validates a required comparison directory. */
12
2
  export declare function directory(root: string, property: string): string;
@@ -6,17 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.directory = directory;
7
7
  const node_fs_1 = __importDefault(require("node:fs"));
8
8
  const node_path_1 = __importDefault(require("node:path"));
9
- /**
10
- * Resolves and validates a required comparison directory.
11
- *
12
- * @evidence contracts/development/implementation.md#principled-implementation Resolve the input path and require an existing directory through Node filesystem checks.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Boundary validation returns an absolute lexical comparison root.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Filesystem failures propagate; missing or non-directory roots receive explicit errors.
15
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies required directories; errors identify the property and resolved path.
16
- * @evidence contracts/development/implementation.md#efficient-algorithms Resolution scales with path length and performs existence and stat checks without tree traversal.
17
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Checks repeat because filesystem state may change between calls.
18
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Synchronous filesystem calls leave no owned open handle.
19
- */
9
+ /** Resolves and validates a required comparison directory. */
20
10
  function directory(root, property) {
21
11
  const resolved = node_path_1.default.resolve(root);
22
12
  if (!node_fs_1.default.existsSync(resolved) || !node_fs_1.default.statSync(resolved).isDirectory())
@@ -1 +1 @@
1
- {"version":3,"file":"directory.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/directory.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B;;;;;;;;;;GAUG;AACH,mBAA0B,IAAY,EAAE,QAAgB;IACtD,MAAM,QAAQ,GAAW,mBAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE;QAClE,MAAM,IAAI,KAAK,CACb,GAAG,QAAQ,uCAAuC,QAAQ,GAAG,CAC9D,CAAC;IACJ,OAAO,QAAQ,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"directory.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/directory.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,8DAA8D;AAC9D,mBAA0B,IAAY,EAAE,QAAgB;IACtD,MAAM,QAAQ,GAAW,mBAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,iBAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE;QAClE,MAAM,IAAI,KAAK,CACb,GAAG,QAAQ,uCAAuC,QAAQ,GAAG,CAC9D,CAAC;IACJ,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Renders thrown values without losing unexpected diagnostics.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Return Error.message for Error instances and String conversion for other thrown values.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One renderer preserves diagnostics without deciding failure policy.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unexpected values remain visible rather than being replaced by assumed error shapes.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment describes retaining unexpected diagnostics.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Native errors expose a field; other values incur their String conversion and output cost.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each caught value is converted locally without cached error history.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No thrown value is retained after its string is returned.
11
- */
1
+ /** Renders thrown values without losing unexpected diagnostics. */
12
2
  export declare function errorMessage(error: unknown): string;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.errorMessage = errorMessage;
4
- /**
5
- * Renders thrown values without losing unexpected diagnostics.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Return Error.message for Error instances and String conversion for other thrown values.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One renderer preserves diagnostics without deciding failure policy.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unexpected values remain visible rather than being replaced by assumed error shapes.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment describes retaining unexpected diagnostics.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Native errors expose a field; other values incur their String conversion and output cost.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each caught value is converted locally without cached error history.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No thrown value is retained after its string is returned.
14
- */
4
+ /** Renders thrown values without losing unexpected diagnostics. */
15
5
  function errorMessage(error) {
16
6
  return error instanceof Error ? error.message : String(error);
17
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"errorMessage.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/errorMessage.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,sBAA6B,KAAc;IACzC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC"}
1
+ {"version":3,"file":"errorMessage.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/errorMessage.ts"],"names":[],"mappings":";;;AAAA,mEAAmE;AACnE,sBAA6B,KAAc;IACzC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC"}
@@ -1,13 +1,3 @@
1
1
  import type { IEvidenceHeading } from "./IEvidenceHeading";
2
- /**
3
- * Parses supported evidence section headers without borrowing a body target.
4
- *
5
- * @evidence contracts/development/implementation.md#principled-implementation Apply heading grammars and derive review fingerprint offsets from matched structural prefixes.
6
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The parsed record exposes only family, level, inline reason and optional hash position.
7
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Identical target or reason tokens cannot redirect the structural offset.
8
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies supported headers; empty inline reasons remain explicit.
9
- * @evidence contracts/development/implementation.md#efficient-algorithms At most two regex matches scan L characters with O(L) transient captured text.
10
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Precompiled grammars are reused without caching source-coordinate assumptions.
11
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned records and match arrays are call-owned; no source history persists.
12
- */
2
+ /** Parses supported evidence section headers without borrowing a body target. */
13
3
  export declare function evidenceHeading(line: string): IEvidenceHeading | undefined;
@@ -3,17 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.evidenceHeading = evidenceHeading;
4
4
  const HEADING_ACKNOWLEDGEMENT_1 = require("./HEADING_ACKNOWLEDGEMENT");
5
5
  const HEADING_REVIEW_1 = require("./HEADING_REVIEW");
6
- /**
7
- * Parses supported evidence section headers without borrowing a body target.
8
- *
9
- * @evidence contracts/development/implementation.md#principled-implementation Apply heading grammars and derive review fingerprint offsets from matched structural prefixes.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The parsed record exposes only family, level, inline reason and optional hash position.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Identical target or reason tokens cannot redirect the structural offset.
12
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies supported headers; empty inline reasons remain explicit.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms At most two regex matches scan L characters with O(L) transient captured text.
14
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Precompiled grammars are reused without caching source-coordinate assumptions.
15
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned records and match arrays are call-owned; no source history persists.
16
- */
6
+ /** Parses supported evidence section headers without borrowing a body target. */
17
7
  function evidenceHeading(line) {
18
8
  const acknowledgement = HEADING_ACKNOWLEDGEMENT_1.HEADING_ACKNOWLEDGEMENT.exec(line);
19
9
  if (acknowledgement !== null)
@@ -1 +1 @@
1
- {"version":3,"file":"evidenceHeading.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/evidenceHeading.ts"],"names":[],"mappings":";;;AAAA,uEAAoE;AACpE,qDAAkD;AAGlD;;;;;;;;;;GAUG;AACH,yBAAgC,IAAY;IAC1C,MAAM,eAAe,GACnB,iDAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,eAAe,KAAK,IAAI;QAC1B,OAAO;YACL,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,MAAM;YAChC,IAAI,EAAE,iBAAiB;YACvB,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,IAAI,EAAE;SACjC,CAAC;IACJ,MAAM,MAAM,GAA2B,+BAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjE,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IACtC,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE;QACvB,gBAAgB,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM;KACpE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"evidenceHeading.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/evidenceHeading.ts"],"names":[],"mappings":";;;AAAA,uEAAoE;AACpE,qDAAkD;AAGlD,iFAAiF;AACjF,yBAAgC,IAAY;IAC1C,MAAM,eAAe,GACnB,iDAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,eAAe,KAAK,IAAI;QAC1B,OAAO;YACL,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,MAAM;YAChC,IAAI,EAAE,iBAAiB;YACvB,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,IAAI,EAAE;SACjC,CAAC;IACJ,MAAM,MAAM,GAA2B,+BAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjE,IAAI,MAAM,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IACtC,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM;QACvB,IAAI,EAAE,QAAQ;QACd,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE;QACvB,gBAAgB,EAAE,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM;KACpE,CAAC;AACJ,CAAC"}
@@ -1,13 +1,3 @@
1
1
  import type { IEvidenceSection } from "./IEvidenceSection";
2
- /**
3
- * Recognizes a pure evidence block, retaining each heading reason's boundary.
4
- *
5
- * @evidence contracts/development/implementation.md#principled-implementation A line-state parser accepts pure evidence blocks, closes fenced examples and requires genuine section reasons.
6
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Pending-section and fence states expose original reason boundaries to projection.
7
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Indented examples and subheadings cannot supply missing reasons; malformed blocks return undefined.
8
- * @evidence contracts/development/common.md#meaningful-documentation The comment states pure-block recognition; results bound original source lines.
9
- * @evidence contracts/development/implementation.md#efficient-algorithms One pass covers requested lines and their characters with one result per accepted section and current parser state.
10
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Shared grammars are reused; each block needs its own boundary and fence analysis.
11
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Call-local states expire at completion; the returned section array is caller-owned.
12
- */
2
+ /** Recognizes a pure evidence block, retaining each heading reason's boundary. */
13
3
  export declare function evidenceSections(lines: string[], start: number, end: number): IEvidenceSection[] | undefined;
@@ -6,17 +6,7 @@ const evidenceHeading_1 = require("./evidenceHeading");
6
6
  const flatFingerprintStart_1 = require("./flatFingerprintStart");
7
7
  const isDeclaration_1 = require("./isDeclaration");
8
8
  const withoutEnding_1 = require("./withoutEnding");
9
- /**
10
- * Recognizes a pure evidence block, retaining each heading reason's boundary.
11
- *
12
- * @evidence contracts/development/implementation.md#principled-implementation A line-state parser accepts pure evidence blocks, closes fenced examples and requires genuine section reasons.
13
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Pending-section and fence states expose original reason boundaries to projection.
14
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Indented examples and subheadings cannot supply missing reasons; malformed blocks return undefined.
15
- * @evidence contracts/development/common.md#meaningful-documentation The comment states pure-block recognition; results bound original source lines.
16
- * @evidence contracts/development/implementation.md#efficient-algorithms One pass covers requested lines and their characters with one result per accepted section and current parser state.
17
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Shared grammars are reused; each block needs its own boundary and fence analysis.
18
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Call-local states expire at completion; the returned section array is caller-owned.
19
- */
9
+ /** Recognizes a pure evidence block, retaining each heading reason's boundary. */
20
10
  function evidenceSections(lines, start, end) {
21
11
  const sections = [];
22
12
  let pending;
@@ -1 +1 @@
1
- {"version":3,"file":"evidenceSections.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/evidenceSections.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"evidenceSections.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/evidenceSections.ts"],"names":[],"mappings":"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"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Finds the first HTML closing marker, including a malformed inline close.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Scan from start to the first literal HTML close, including malformed inline closes.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This helper finds boundaries; callers decide their structural validity.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Malformed closes are not skipped to convenient later delimiters.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment specifies first-marker behavior; -1 denotes no marker.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Characters up to the first close or EOF are examined with constant auxiliary space.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each scan depends on current lines and start, without shared cached boundaries.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No state survives the call.
11
- */
1
+ /** Finds the first HTML closing marker, including a malformed inline close. */
12
2
  export declare function findClose(lines: string[], start: number): number;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.findClose = findClose;
4
- /**
5
- * Finds the first HTML closing marker, including a malformed inline close.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Scan from start to the first literal HTML close, including malformed inline closes.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure This helper finds boundaries; callers decide their structural validity.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Malformed closes are not skipped to convenient later delimiters.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment specifies first-marker behavior; -1 denotes no marker.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Characters up to the first close or EOF are examined with constant auxiliary space.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each scan depends on current lines and start, without shared cached boundaries.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No state survives the call.
14
- */
4
+ /** Finds the first HTML closing marker, including a malformed inline close. */
15
5
  function findClose(lines, start) {
16
6
  for (let index = start; index < lines.length; index += 1)
17
7
  if (lines[index].includes("-->"))
@@ -1 +1 @@
1
- {"version":3,"file":"findClose.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/findClose.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,mBAA0B,KAAe,EAAE,KAAa;IACtD,KAAK,IAAI,KAAK,GAAW,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC;QAC9D,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;IACjD,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC"}
1
+ {"version":3,"file":"findClose.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/findClose.ts"],"names":[],"mappings":";;;AAAA,+EAA+E;AAC/E,mBAA0B,KAAe,EAAE,KAAa;IACtD,KAAK,IAAI,KAAK,GAAW,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC;QAC9D,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;IACjD,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Finds the first unequal projected byte, including unequal EOF.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Compare bytes until mismatch; the common length represents unequal EOF.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One offset supports substitution and length diagnostics.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No text normalization or expected-content exception affects comparison.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment states projected bytes and differing-EOF behavior.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Worst-case time scans min(B1,B2) bytes with constant auxiliary space.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Existing projection buffers are borrowed without copying or hashing again.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The helper retains no buffer references.
11
- */
1
+ /** Finds the first unequal projected byte, including unequal EOF. */
12
2
  export declare function firstDifference(before: Buffer, after: Buffer): number;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.firstDifference = firstDifference;
4
- /**
5
- * Finds the first unequal projected byte, including unequal EOF.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Compare bytes until mismatch; the common length represents unequal EOF.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One offset supports substitution and length diagnostics.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No text normalization or expected-content exception affects comparison.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment states projected bytes and differing-EOF behavior.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms Worst-case time scans min(B1,B2) bytes with constant auxiliary space.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Existing projection buffers are borrowed without copying or hashing again.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The helper retains no buffer references.
14
- */
4
+ /** Finds the first unequal projected byte, including unequal EOF. */
15
5
  function firstDifference(before, after) {
16
6
  const length = Math.min(before.length, after.length);
17
7
  for (let index = 0; index < length; index += 1)
@@ -1 +1 @@
1
- {"version":3,"file":"firstDifference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/firstDifference.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,yBAAgC,MAAc,EAAE,KAAa;IAC3D,MAAM,MAAM,GAAW,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7D,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;QACpD,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;IACnD,OAAO,MAAM,CAAC;AAChB,CAAC"}
1
+ {"version":3,"file":"firstDifference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/firstDifference.ts"],"names":[],"mappings":";;;AAAA,qEAAqE;AACrE,yBAAgC,MAAc,EAAE,KAAa;IAC3D,MAAM,MAAM,GAAW,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7D,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;QACpD,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;IACnD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,12 +1,5 @@
1
1
  /**
2
- * Locates the review hash by grammar, never by an identical token in its target.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Match complete review grammar and derive the hash offset from keyword and target prefix lengths.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Grammar-derived positioning avoids searching for a repeated hash value.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An identical hash within a target cannot alter the structural location.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment explains structural rather than value-based location.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms One match and prefix construction scale with declaration length and transient captures.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The shared REVIEW expression is reused; offsets are specific to each declaration.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No match or source reference persists.
2
+ * Locates the review hash by grammar, never by an identical token in its
3
+ * target.
11
4
  */
12
5
  export declare function flatFingerprintStart(declaration: string): number | undefined;