@automovie/evidence 0.3.4 → 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 (437) hide show
  1. package/README.md +7 -102
  2. package/lib/IAutoMovieDevelopmentProps.d.ts +24 -21
  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 +15 -23
  7. package/lib/createDevelopmentContractClaims.js +22 -25
  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 -14
  13. package/lib/createEvidenceConfig.js +12 -16
  14. package/lib/createEvidenceConfig.js.map +1 -1
  15. package/lib/createResearchClaims.d.ts +4 -12
  16. package/lib/createResearchClaims.js +4 -12
  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 +8 -14
  29. package/lib/internal/assertFilmCatalogLayout.js +128 -33
  30. package/lib/internal/assertFilmCatalogLayout.js.map +1 -1
  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 +2 -10
  38. package/lib/internal/hasMatchingFile.js +2 -10
  39. package/lib/internal/hasMatchingFile.js.map +1 -1
  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 +3 -11
  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 +0 -8
  91. package/lib/narrative/internal/claims/createLayerClaims.js +0 -8
  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 +6 -14
  95. package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
  96. package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +3 -12
  97. package/lib/narrative/internal/claims/createPopulationObligationClaims.js +3 -12
  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 +54 -39
  101. package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
  102. package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +0 -8
  103. package/lib/narrative/internal/claims/createSettingCoverageClaim.js +0 -8
  104. package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
  105. package/lib/narrative/internal/collectProductionClaims.d.ts +1 -11
  106. package/lib/narrative/internal/collectProductionClaims.js +1 -11
  107. package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
  108. package/lib/narrative/internal/constructionStage.d.ts +2 -9
  109. package/lib/narrative/internal/constructionStage.js +2 -9
  110. package/lib/narrative/internal/constructionStage.js.map +1 -1
  111. package/lib/narrative/internal/createGraphConfig.d.ts +4 -12
  112. package/lib/narrative/internal/createGraphConfig.js +4 -12
  113. package/lib/narrative/internal/createGraphConfig.js.map +1 -1
  114. package/lib/narrative/internal/isCanonLayer.d.ts +2 -9
  115. package/lib/narrative/internal/isCanonLayer.js +2 -9
  116. package/lib/narrative/internal/isCanonLayer.js.map +1 -1
  117. package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.d.ts +10 -7
  118. package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js +10 -7
  119. package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js.map +1 -1
  120. package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.d.ts +1 -8
  121. package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.d.ts +10 -7
  122. package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js +10 -7
  123. package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js.map +1 -1
  124. package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.d.ts +10 -7
  125. package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js +10 -7
  126. package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js.map +1 -1
  127. package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.d.ts +1 -8
  128. package/lib/narrative/internal/metadataRewrite/IEvidenceSection.d.ts +1 -8
  129. package/lib/narrative/internal/metadataRewrite/IMetadataFragment.d.ts +1 -8
  130. package/lib/narrative/internal/metadataRewrite/IProjectionSegment.d.ts +1 -8
  131. package/lib/narrative/internal/metadataRewrite/IProtectedProjection.d.ts +1 -8
  132. package/lib/narrative/internal/metadataRewrite/REVIEW.d.ts +11 -7
  133. package/lib/narrative/internal/metadataRewrite/REVIEW.js +11 -7
  134. package/lib/narrative/internal/metadataRewrite/REVIEW.js.map +1 -1
  135. package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.d.ts +13 -8
  136. package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js +13 -8
  137. package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js.map +1 -1
  138. package/lib/narrative/internal/metadataRewrite/UTF8.d.ts +10 -7
  139. package/lib/narrative/internal/metadataRewrite/UTF8.js +10 -7
  140. package/lib/narrative/internal/metadataRewrite/UTF8.js.map +1 -1
  141. package/lib/narrative/internal/metadataRewrite/between.d.ts +1 -11
  142. package/lib/narrative/internal/metadataRewrite/between.js +1 -11
  143. package/lib/narrative/internal/metadataRewrite/between.js.map +1 -1
  144. package/lib/narrative/internal/metadataRewrite/continuation.d.ts +1 -11
  145. package/lib/narrative/internal/metadataRewrite/continuation.js +1 -11
  146. package/lib/narrative/internal/metadataRewrite/continuation.js.map +1 -1
  147. package/lib/narrative/internal/metadataRewrite/declarationKind.d.ts +1 -11
  148. package/lib/narrative/internal/metadataRewrite/declarationKind.js +1 -11
  149. package/lib/narrative/internal/metadataRewrite/declarationKind.js.map +1 -1
  150. package/lib/narrative/internal/metadataRewrite/decode.d.ts +1 -11
  151. package/lib/narrative/internal/metadataRewrite/decode.js +1 -11
  152. package/lib/narrative/internal/metadataRewrite/decode.js.map +1 -1
  153. package/lib/narrative/internal/metadataRewrite/directory.d.ts +1 -11
  154. package/lib/narrative/internal/metadataRewrite/directory.js +1 -11
  155. package/lib/narrative/internal/metadataRewrite/directory.js.map +1 -1
  156. package/lib/narrative/internal/metadataRewrite/errorMessage.d.ts +1 -11
  157. package/lib/narrative/internal/metadataRewrite/errorMessage.js +1 -11
  158. package/lib/narrative/internal/metadataRewrite/errorMessage.js.map +1 -1
  159. package/lib/narrative/internal/metadataRewrite/evidenceHeading.d.ts +1 -11
  160. package/lib/narrative/internal/metadataRewrite/evidenceHeading.js +1 -11
  161. package/lib/narrative/internal/metadataRewrite/evidenceHeading.js.map +1 -1
  162. package/lib/narrative/internal/metadataRewrite/evidenceSections.d.ts +1 -11
  163. package/lib/narrative/internal/metadataRewrite/evidenceSections.js +1 -11
  164. package/lib/narrative/internal/metadataRewrite/evidenceSections.js.map +1 -1
  165. package/lib/narrative/internal/metadataRewrite/findClose.d.ts +1 -11
  166. package/lib/narrative/internal/metadataRewrite/findClose.js +1 -11
  167. package/lib/narrative/internal/metadataRewrite/findClose.js.map +1 -1
  168. package/lib/narrative/internal/metadataRewrite/firstDifference.d.ts +1 -11
  169. package/lib/narrative/internal/metadataRewrite/firstDifference.js +1 -11
  170. package/lib/narrative/internal/metadataRewrite/firstDifference.js.map +1 -1
  171. package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.d.ts +2 -9
  172. package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js +2 -9
  173. package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js.map +1 -1
  174. package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.d.ts +1 -11
  175. package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js +1 -11
  176. package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js.map +1 -1
  177. package/lib/narrative/internal/metadataRewrite/isDeclaration.d.ts +1 -11
  178. package/lib/narrative/internal/metadataRewrite/isDeclaration.js +1 -11
  179. package/lib/narrative/internal/metadataRewrite/isDeclaration.js.map +1 -1
  180. package/lib/narrative/internal/metadataRewrite/isNodeError.d.ts +1 -11
  181. package/lib/narrative/internal/metadataRewrite/isNodeError.js +1 -11
  182. package/lib/narrative/internal/metadataRewrite/isNodeError.js.map +1 -1
  183. package/lib/narrative/internal/metadataRewrite/lineEnding.d.ts +1 -11
  184. package/lib/narrative/internal/metadataRewrite/lineEnding.js +1 -11
  185. package/lib/narrative/internal/metadataRewrite/lineEnding.js.map +1 -1
  186. package/lib/narrative/internal/metadataRewrite/locate.d.ts +1 -11
  187. package/lib/narrative/internal/metadataRewrite/locate.js +1 -11
  188. package/lib/narrative/internal/metadataRewrite/locate.js.map +1 -1
  189. package/lib/narrative/internal/metadataRewrite/markdownFiles.d.ts +1 -11
  190. package/lib/narrative/internal/metadataRewrite/markdownFiles.js +1 -11
  191. package/lib/narrative/internal/metadataRewrite/markdownFiles.js.map +1 -1
  192. package/lib/narrative/internal/metadataRewrite/metadataOwnership.d.ts +1 -11
  193. package/lib/narrative/internal/metadataRewrite/metadataOwnership.js +1 -11
  194. package/lib/narrative/internal/metadataRewrite/metadataOwnership.js.map +1 -1
  195. package/lib/narrative/internal/metadataRewrite/normalizeFile.d.ts +1 -11
  196. package/lib/narrative/internal/metadataRewrite/normalizeFile.js +1 -11
  197. package/lib/narrative/internal/metadataRewrite/normalizeFile.js.map +1 -1
  198. package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.d.ts +1 -11
  199. package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js +1 -11
  200. package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js.map +1 -1
  201. package/lib/narrative/internal/metadataRewrite/occurrences.d.ts +1 -11
  202. package/lib/narrative/internal/metadataRewrite/occurrences.js +1 -11
  203. package/lib/narrative/internal/metadataRewrite/occurrences.js.map +1 -1
  204. package/lib/narrative/internal/metadataRewrite/originalOffset.d.ts +1 -11
  205. package/lib/narrative/internal/metadataRewrite/originalOffset.js +1 -11
  206. package/lib/narrative/internal/metadataRewrite/originalOffset.js.map +1 -1
  207. package/lib/narrative/internal/metadataRewrite/project.d.ts +1 -11
  208. package/lib/narrative/internal/metadataRewrite/project.js +1 -11
  209. package/lib/narrative/internal/metadataRewrite/project.js.map +1 -1
  210. package/lib/narrative/internal/metadataRewrite/protectedFileKind.d.ts +1 -11
  211. package/lib/narrative/internal/metadataRewrite/protectedFileKind.js +1 -11
  212. package/lib/narrative/internal/metadataRewrite/protectedFileKind.js.map +1 -1
  213. package/lib/narrative/internal/metadataRewrite/replacementSafety.d.ts +1 -11
  214. package/lib/narrative/internal/metadataRewrite/replacementSafety.js +1 -11
  215. package/lib/narrative/internal/metadataRewrite/replacementSafety.js.map +1 -1
  216. package/lib/narrative/internal/metadataRewrite/sameMetadata.d.ts +1 -11
  217. package/lib/narrative/internal/metadataRewrite/sameMetadata.js +1 -11
  218. package/lib/narrative/internal/metadataRewrite/sameMetadata.js.map +1 -1
  219. package/lib/narrative/internal/metadataRewrite/selectFiles.d.ts +1 -11
  220. package/lib/narrative/internal/metadataRewrite/selectFiles.js +1 -11
  221. package/lib/narrative/internal/metadataRewrite/selectFiles.js.map +1 -1
  222. package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.d.ts +1 -11
  223. package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js +1 -11
  224. package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js.map +1 -1
  225. package/lib/narrative/internal/metadataRewrite/textLocation.d.ts +1 -11
  226. package/lib/narrative/internal/metadataRewrite/textLocation.js +1 -11
  227. package/lib/narrative/internal/metadataRewrite/textLocation.js.map +1 -1
  228. package/lib/narrative/internal/metadataRewrite/validateRenderedSample.d.ts +1 -11
  229. package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js +1 -11
  230. package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js.map +1 -1
  231. package/lib/narrative/internal/metadataRewrite/withoutEnding.d.ts +1 -11
  232. package/lib/narrative/internal/metadataRewrite/withoutEnding.js +1 -11
  233. package/lib/narrative/internal/metadataRewrite/withoutEnding.js.map +1 -1
  234. package/lib/narrative/internal/productionLayers.d.ts +1 -11
  235. package/lib/narrative/internal/productionLayers.js +1 -11
  236. package/lib/narrative/internal/productionLayers.js.map +1 -1
  237. package/lib/narrative/internal/readSettingsFiles.d.ts +4 -12
  238. package/lib/narrative/internal/readSettingsFiles.js +8 -13
  239. package/lib/narrative/internal/readSettingsFiles.js.map +1 -1
  240. package/lib/narrative/internal/references/createCoverageReference.d.ts +2 -10
  241. package/lib/narrative/internal/references/createCoverageReference.js +2 -10
  242. package/lib/narrative/internal/references/createCoverageReference.js.map +1 -1
  243. package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +5 -13
  244. package/lib/narrative/internal/references/createDiscoveryReferences.js +5 -13
  245. package/lib/narrative/internal/references/createDiscoveryReferences.js.map +1 -1
  246. package/lib/narrative/internal/references/createLanguageDiscoveryReferences.d.ts +1 -11
  247. package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js +1 -11
  248. package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js.map +1 -1
  249. package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +2 -9
  250. package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +2 -9
  251. package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -1
  252. package/lib/narrative/internal/references/createLineageReference.d.ts +6 -14
  253. package/lib/narrative/internal/references/createLineageReference.js +6 -14
  254. package/lib/narrative/internal/references/createLineageReference.js.map +1 -1
  255. package/lib/narrative/internal/references/createLocalContractReference.d.ts +0 -8
  256. package/lib/narrative/internal/references/createLocalContractReference.js +0 -8
  257. package/lib/narrative/internal/references/createLocalContractReference.js.map +1 -1
  258. package/lib/narrative/internal/references/createPrincipleReferences.d.ts +0 -8
  259. package/lib/narrative/internal/references/createPrincipleReferences.js +0 -8
  260. package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -1
  261. package/lib/narrative/internal/references/createSettingReferences.d.ts +3 -10
  262. package/lib/narrative/internal/references/createSettingReferences.js +3 -10
  263. package/lib/narrative/internal/references/createSettingReferences.js.map +1 -1
  264. package/lib/narrative/internal/references/createSharedReference.d.ts +7 -15
  265. package/lib/narrative/internal/references/createSharedReference.js +7 -15
  266. package/lib/narrative/internal/references/createSharedReference.js.map +1 -1
  267. package/lib/narrative/internal/references/createUpstreamReference.d.ts +0 -8
  268. package/lib/narrative/internal/references/createUpstreamReference.js +0 -8
  269. package/lib/narrative/internal/references/createUpstreamReference.js.map +1 -1
  270. package/lib/narrative/internal/references/layerFiles.d.ts +4 -12
  271. package/lib/narrative/internal/references/layerFiles.js +4 -12
  272. package/lib/narrative/internal/references/layerFiles.js.map +1 -1
  273. package/lib/narrative/internal/settingsEntryAnchor.d.ts +2 -9
  274. package/lib/narrative/internal/settingsEntryAnchor.js +2 -9
  275. package/lib/narrative/internal/settingsEntryAnchor.js.map +1 -1
  276. package/lib/narrative/internal/topology/createTopologyFiles.d.ts +1 -11
  277. package/lib/narrative/internal/topology/createTopologyFiles.js +1 -11
  278. package/lib/narrative/internal/topology/createTopologyFiles.js.map +1 -1
  279. package/lib/narrative/internal/utilities/BODY_ROOT.d.ts +14 -7
  280. package/lib/narrative/internal/utilities/BODY_ROOT.js +14 -7
  281. package/lib/narrative/internal/utilities/BODY_ROOT.js.map +1 -1
  282. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +15 -7
  283. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +15 -7
  284. package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js.map +1 -1
  285. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.d.ts +2 -9
  286. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +2 -9
  287. package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -1
  288. package/lib/narrative/internal/utilities/createContractDirectory.d.ts +4 -10
  289. package/lib/narrative/internal/utilities/createContractDirectory.js +4 -10
  290. package/lib/narrative/internal/utilities/createContractDirectory.js.map +1 -1
  291. package/lib/narrative/internal/utilities/createContractRoot.d.ts +6 -12
  292. package/lib/narrative/internal/utilities/createContractRoot.js +6 -12
  293. package/lib/narrative/internal/utilities/createContractRoot.js.map +1 -1
  294. package/lib/narrative/internal/utilities/createEvidenceFiles.d.ts +1 -11
  295. package/lib/narrative/internal/utilities/createEvidenceFiles.js +1 -11
  296. package/lib/narrative/internal/utilities/createEvidenceFiles.js.map +1 -1
  297. package/lib/narrative/internal/utilities/createUnitFiles.d.ts +0 -8
  298. package/lib/narrative/internal/utilities/createUnitFiles.js +0 -8
  299. package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -1
  300. package/lib/narrative/internal/utilities/hasStoryContract.d.ts +0 -8
  301. package/lib/narrative/internal/utilities/hasStoryContract.js +0 -8
  302. package/lib/narrative/internal/utilities/hasStoryContract.js.map +1 -1
  303. package/lib/narrative/internal/utilities/referenceLocation.d.ts +2 -9
  304. package/lib/narrative/internal/utilities/referenceLocation.js +2 -9
  305. package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -1
  306. package/lib/narrative/internal/validateSettingsOutline.d.ts +6 -12
  307. package/lib/narrative/internal/validateSettingsOutline.js +27 -20
  308. package/lib/narrative/internal/validateSettingsOutline.js.map +1 -1
  309. package/lib/narrative/isFirstPartPilot.d.ts +1 -11
  310. package/lib/narrative/isFirstPartPilot.js +1 -11
  311. package/lib/narrative/isFirstPartPilot.js.map +1 -1
  312. package/lib/narrative/verifyEvidenceMetadataRewrite.d.ts +2 -10
  313. package/lib/narrative/verifyEvidenceMetadataRewrite.js +2 -10
  314. package/lib/narrative/verifyEvidenceMetadataRewrite.js.map +1 -1
  315. package/package.json +6 -5
  316. package/src/IAutoMovieDevelopmentProps.ts +25 -21
  317. package/src/IAutoMovieEvidenceConfigProps.ts +19 -18
  318. package/src/IAutoMovieNarrativeProps.ts +10 -8
  319. package/src/IAutoMovieNoNarrativeProps.ts +4 -6
  320. package/src/createDevelopmentContractClaims.ts +23 -25
  321. package/src/createEngineeringClaims.ts +17 -22
  322. package/src/createEvidenceConfig.ts +16 -16
  323. package/src/createResearchClaims.ts +4 -12
  324. package/src/internal/IContractLocation.ts +6 -7
  325. package/src/internal/PRODUCTION_CONTRACTS.ts +14 -7
  326. package/src/internal/SKILLS_ROOT.ts +13 -7
  327. package/src/internal/STORY_CONTRACTS.ts +12 -9
  328. package/src/internal/assertFilmCatalogLayout.ts +160 -42
  329. package/src/internal/assertProductionContractLayout.ts +2 -10
  330. package/src/internal/createReferenceRoot.ts +0 -8
  331. package/src/internal/hasMatchingFile.ts +2 -10
  332. package/src/internal/index.ts +1 -1
  333. package/src/internal/resolveSkillsDirectory.ts +2 -9
  334. package/src/narrative/AuthoredLayer.ts +2 -6
  335. package/src/narrative/EvidenceMetadataRewriteOwnership.ts +0 -5
  336. package/src/narrative/IEvidenceMetadataRenderedSample.ts +1 -8
  337. package/src/narrative/IEvidenceMetadataRewriteFile.ts +1 -8
  338. package/src/narrative/IEvidenceMetadataRewriteProps.ts +1 -8
  339. package/src/narrative/IEvidenceMetadataRewriteReport.ts +1 -8
  340. package/src/narrative/IPackageChecklistClaimProps.ts +2 -7
  341. package/src/narrative/IPackageContractProps.ts +4 -11
  342. package/src/narrative/IPackagePopulationContractProps.ts +1 -8
  343. package/src/narrative/IProductionConfigProps.ts +7 -11
  344. package/src/narrative/IProductionConstruction.ts +3 -10
  345. package/src/narrative/NarrativeLayer.ts +3 -8
  346. package/src/narrative/NarrativeScope.ts +2 -7
  347. package/src/narrative/ProductionStage.ts +2 -6
  348. package/src/narrative/createBriefFiles.ts +5 -12
  349. package/src/narrative/createNarrativeUnitFiles.ts +0 -8
  350. package/src/narrative/createPackageChecklistClaim.ts +3 -11
  351. package/src/narrative/createPackageContract.ts +0 -8
  352. package/src/narrative/createPackagePopulationContract.ts +3 -11
  353. package/src/narrative/createProductionClaims.ts +0 -8
  354. package/src/narrative/createProductionConfig.ts +1 -11
  355. package/src/narrative/createSettingsFiles.ts +0 -8
  356. package/src/narrative/internal/AUTHORED_LAYERS.ts +14 -7
  357. package/src/narrative/internal/claims/createDiscoveryClaim.ts +17 -22
  358. package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +7 -15
  359. package/src/narrative/internal/claims/createLayerClaims.ts +0 -8
  360. package/src/narrative/internal/claims/createOutlineClaims.ts +6 -14
  361. package/src/narrative/internal/claims/createPopulationObligationClaims.ts +3 -12
  362. package/src/narrative/internal/claims/createReviewClaims.ts +54 -39
  363. package/src/narrative/internal/claims/createSettingCoverageClaim.ts +0 -8
  364. package/src/narrative/internal/collectProductionClaims.ts +1 -11
  365. package/src/narrative/internal/constructionStage.ts +2 -9
  366. package/src/narrative/internal/createGraphConfig.ts +4 -12
  367. package/src/narrative/internal/isCanonLayer.ts +2 -9
  368. package/src/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.ts +10 -7
  369. package/src/narrative/internal/metadataRewrite/EvidenceDeclarationKind.ts +1 -8
  370. package/src/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.ts +10 -7
  371. package/src/narrative/internal/metadataRewrite/HEADING_REVIEW.ts +10 -7
  372. package/src/narrative/internal/metadataRewrite/IEvidenceHeading.ts +1 -8
  373. package/src/narrative/internal/metadataRewrite/IEvidenceSection.ts +1 -8
  374. package/src/narrative/internal/metadataRewrite/IMetadataFragment.ts +1 -8
  375. package/src/narrative/internal/metadataRewrite/IProjectionSegment.ts +1 -8
  376. package/src/narrative/internal/metadataRewrite/IProtectedProjection.ts +1 -8
  377. package/src/narrative/internal/metadataRewrite/REVIEW.ts +11 -7
  378. package/src/narrative/internal/metadataRewrite/SUSPICIOUS.ts +13 -8
  379. package/src/narrative/internal/metadataRewrite/UTF8.ts +10 -7
  380. package/src/narrative/internal/metadataRewrite/between.ts +1 -11
  381. package/src/narrative/internal/metadataRewrite/continuation.ts +1 -11
  382. package/src/narrative/internal/metadataRewrite/declarationKind.ts +1 -11
  383. package/src/narrative/internal/metadataRewrite/decode.ts +1 -11
  384. package/src/narrative/internal/metadataRewrite/directory.ts +1 -11
  385. package/src/narrative/internal/metadataRewrite/errorMessage.ts +1 -11
  386. package/src/narrative/internal/metadataRewrite/evidenceHeading.ts +1 -11
  387. package/src/narrative/internal/metadataRewrite/evidenceSections.ts +1 -11
  388. package/src/narrative/internal/metadataRewrite/findClose.ts +1 -11
  389. package/src/narrative/internal/metadataRewrite/firstDifference.ts +1 -11
  390. package/src/narrative/internal/metadataRewrite/flatFingerprintStart.ts +2 -9
  391. package/src/narrative/internal/metadataRewrite/invalidUtf8Offset.ts +1 -11
  392. package/src/narrative/internal/metadataRewrite/isDeclaration.ts +1 -11
  393. package/src/narrative/internal/metadataRewrite/isNodeError.ts +1 -11
  394. package/src/narrative/internal/metadataRewrite/lineEnding.ts +1 -11
  395. package/src/narrative/internal/metadataRewrite/locate.ts +1 -11
  396. package/src/narrative/internal/metadataRewrite/markdownFiles.ts +1 -11
  397. package/src/narrative/internal/metadataRewrite/metadataOwnership.ts +1 -11
  398. package/src/narrative/internal/metadataRewrite/normalizeFile.ts +1 -11
  399. package/src/narrative/internal/metadataRewrite/occurrenceOffsets.ts +1 -11
  400. package/src/narrative/internal/metadataRewrite/occurrences.ts +1 -11
  401. package/src/narrative/internal/metadataRewrite/originalOffset.ts +1 -11
  402. package/src/narrative/internal/metadataRewrite/project.ts +1 -11
  403. package/src/narrative/internal/metadataRewrite/protectedFileKind.ts +1 -11
  404. package/src/narrative/internal/metadataRewrite/replacementSafety.ts +1 -11
  405. package/src/narrative/internal/metadataRewrite/sameMetadata.ts +1 -11
  406. package/src/narrative/internal/metadataRewrite/selectFiles.ts +1 -11
  407. package/src/narrative/internal/metadataRewrite/singleLineDeclaration.ts +1 -11
  408. package/src/narrative/internal/metadataRewrite/textLocation.ts +1 -11
  409. package/src/narrative/internal/metadataRewrite/validateRenderedSample.ts +1 -11
  410. package/src/narrative/internal/metadataRewrite/withoutEnding.ts +1 -11
  411. package/src/narrative/internal/productionLayers.ts +1 -11
  412. package/src/narrative/internal/readSettingsFiles.ts +8 -13
  413. package/src/narrative/internal/references/createCoverageReference.ts +2 -10
  414. package/src/narrative/internal/references/createDiscoveryReferences.ts +5 -13
  415. package/src/narrative/internal/references/createLanguageDiscoveryReferences.ts +1 -11
  416. package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +2 -9
  417. package/src/narrative/internal/references/createLineageReference.ts +6 -14
  418. package/src/narrative/internal/references/createLocalContractReference.ts +0 -8
  419. package/src/narrative/internal/references/createPrincipleReferences.ts +0 -8
  420. package/src/narrative/internal/references/createSettingReferences.ts +3 -10
  421. package/src/narrative/internal/references/createSharedReference.ts +7 -15
  422. package/src/narrative/internal/references/createUpstreamReference.ts +0 -8
  423. package/src/narrative/internal/references/layerFiles.ts +4 -12
  424. package/src/narrative/internal/settingsEntryAnchor.ts +2 -9
  425. package/src/narrative/internal/topology/createTopologyFiles.ts +1 -11
  426. package/src/narrative/internal/utilities/BODY_ROOT.ts +14 -7
  427. package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +15 -7
  428. package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +2 -9
  429. package/src/narrative/internal/utilities/createContractDirectory.ts +4 -10
  430. package/src/narrative/internal/utilities/createContractRoot.ts +6 -12
  431. package/src/narrative/internal/utilities/createEvidenceFiles.ts +1 -11
  432. package/src/narrative/internal/utilities/createUnitFiles.ts +0 -8
  433. package/src/narrative/internal/utilities/hasStoryContract.ts +0 -8
  434. package/src/narrative/internal/utilities/referenceLocation.ts +2 -9
  435. package/src/narrative/internal/validateSettingsOutline.ts +27 -20
  436. package/src/narrative/isFirstPartPilot.ts +1 -11
  437. package/src/narrative/verifyEvidenceMetadataRewrite.ts +2 -10
@@ -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":";;;AAEA,uDAAoD;AACpD,uDAAoD;AACpD,iEAA8D;AAC9D,mDAAgD;AAChD,mDAAgD;AAEhD;;;;;;;;;;GAUG;AACH,0BACE,KAAe,EACf,KAAa,EACb,GAAW;IAEX,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,IAAI,OAES,CAAC;IACd,IAAI,KAAwD,CAAC;I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AAC;YACxE,QAAQ,CAAC,IAAI,CAAC;gBACZ,KAAK,EAAE,KAAK;gBACZ,GAAG,EAAE,KAAK,GAAG,CAAC;gBACd,IAAI,EAAE,IAAA,iCAAe,EAAC,IAAI,CAAE;gBAC5B,GAAG,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC;aAChE,CAAC,CAAC;YACH,SAAS;QACX,CAAC;QACD,MAAM,eAAe,GAA2B,QAAQ;YACtD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpC,IACE,OAAO,KAAK,SAAS;YACrB,CAAC,CAAC,QAAQ,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACnC,CAAC,eAAe,KAAK,IAAI,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC;YAExE,OAAO,SAAS,CAAC;QACnB,OAAO,CAAC,GAAG,GAAG,KAAK,GAAG,CAAC,CAAC;QACxB,wEAAwE;QACxE,IAAI,CAAC,QAAQ,IAAI,eAAe,KAAK,IAAI;YAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IACnE,CAAC;IACD,OAAO,KAAK,EAAE,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AACjE,CAAC"}
1
+ {"version":3,"file":"evidenceSections.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/evidenceSections.ts"],"names":[],"mappings":";;;AAEA,uDAAoD;AACpD,uDAAoD;AACpD,iEAA8D;AAC9D,mDAAgD;AAChD,mDAAgD;AAEhD,kFAAkF;AAClF,0BACE,KAAe,EACf,KAAa,EACb,GAAW;IAEX,MAAM,QAAQ,GAAuB,EAAE,CAAC;IACxC,IAAI,OAES,CAAC;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AAoB,EAAC,IAAI,CAAC,CAAC;YACxE,QAAQ,CAAC,IAAI,CAAC;gBACZ,KAAK,EAAE,KAAK;gBACZ,GAAG,EAAE,KAAK,GAAG,CAAC;gBACd,IAAI,EAAE,IAAA,iCAAe,EAAC,IAAI,CAAE;gBAC5B,GAAG,CAAC,gBAAgB,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC;aAChE,CAAC,CAAC;YACH,SAAS;QACX,CAAC;QACD,MAAM,eAAe,GAA2B,QAAQ;YACtD,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACpC,IACE,OAAO,KAAK,SAAS;YACrB,CAAC,CAAC,QAAQ,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACnC,CAAC,eAAe,KAAK,IAAI,IAAI,eAAe,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC;YAExE,OAAO,SAAS,CAAC;QACnB,OAAO,CAAC,GAAG,GAAG,KAAK,GAAG,CAAC,CAAC;QACxB,wEAAwE;QACxE,IAAI,CAAC,QAAQ,IAAI,eAAe,KAAK,IAAI;YAAE,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;IACnE,CAAC;IACD,OAAO,KAAK,EAAE,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;AACjE,CAAC"}
@@ -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;
@@ -3,15 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.flatFingerprintStart = flatFingerprintStart;
4
4
  const REVIEW_1 = require("./REVIEW");
5
5
  /**
6
- * Locates the review hash by grammar, never by an identical token in its target.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation Match complete review grammar and derive the hash offset from keyword and target prefix lengths.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Grammar-derived positioning avoids searching for a repeated hash value.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts An identical hash within a target cannot alter the structural location.
11
- * @evidence contracts/development/common.md#meaningful-documentation The comment explains structural rather than value-based location.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms One match and prefix construction scale with declaration length and transient captures.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The shared REVIEW expression is reused; offsets are specific to each declaration.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No match or source reference persists.
6
+ * Locates the review hash by grammar, never by an identical token in its
7
+ * target.
15
8
  */
16
9
  function flatFingerprintStart(declaration) {
17
10
  const review = REVIEW_1.REVIEW.exec(declaration);
@@ -1 +1 @@
1
- {"version":3,"file":"flatFingerprintStart.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/flatFingerprintStart.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC;;;;;;;;;;GAUG;AACH,8BAAqC,WAAmB;IACtD,MAAM,MAAM,GAA2B,eAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAChE,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;AAC5E,CAAC"}
1
+ {"version":3,"file":"flatFingerprintStart.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/flatFingerprintStart.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC;;;GAGG;AACH,8BAAqC,WAAmB;IACtD,MAAM,MAAM,GAA2B,eAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAChE,OAAO,MAAM,KAAK,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;AAC5E,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Returns the first invalid UTF-8 sequence start, or -1 for strict UTF-8.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Validate UTF-8 byte classes, rejecting truncation, overlong forms, surrogates and values above U+10ffff.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One advancing index reports the first invalid sequence start without decoding.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Ranges implement encoding constraints; invalid sequences are never replaced.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment defines invalid-start offsets and -1 for valid input.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Each byte is inspected a bounded number of times: O(B) time and constant auxiliary space.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Shared range predicates are reused; every distinct buffer still requires validation.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The borrowed buffer is not retained; only scalar indexes are owned.
11
- */
1
+ /** Returns the first invalid UTF-8 sequence start, or -1 for strict UTF-8. */
12
2
  export declare function invalidUtf8Offset(bytes: Buffer): number;
@@ -3,17 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.invalidUtf8Offset = invalidUtf8Offset;
4
4
  const between_1 = require("./between");
5
5
  const continuation_1 = require("./continuation");
6
- /**
7
- * Returns the first invalid UTF-8 sequence start, or -1 for strict UTF-8.
8
- *
9
- * @evidence contracts/development/implementation.md#principled-implementation Validate UTF-8 byte classes, rejecting truncation, overlong forms, surrogates and values above U+10ffff.
10
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One advancing index reports the first invalid sequence start without decoding.
11
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Ranges implement encoding constraints; invalid sequences are never replaced.
12
- * @evidence contracts/development/common.md#meaningful-documentation The comment defines invalid-start offsets and -1 for valid input.
13
- * @evidence contracts/development/implementation.md#efficient-algorithms Each byte is inspected a bounded number of times: O(B) time and constant auxiliary space.
14
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Shared range predicates are reused; every distinct buffer still requires validation.
15
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources The borrowed buffer is not retained; only scalar indexes are owned.
16
- */
6
+ /** Returns the first invalid UTF-8 sequence start, or -1 for strict UTF-8. */
17
7
  function invalidUtf8Offset(bytes) {
18
8
  for (let index = 0; index < bytes.length;) {
19
9
  const first = bytes[index];
@@ -1 +1 @@
1
- {"version":3,"file":"invalidUtf8Offset.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/invalidUtf8Offset.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AACpC,iDAA8C;AAE9C;;;;;;;;;;GAUG;AACH,2BAAkC,KAAa;IAC7C,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,GAAI,CAAC;QACnD,MAAM,KAAK,GAAW,KAAK,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAClB,KAAK,IAAI,CAAC,CAAC;YACX,SAAS;QACX,CAAC;QACD,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YACnC,IAAI,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAAE,OAAO,KAAK,CAAC;YAClD,KAAK,IAAI,CAAC,CAAC;YACX,SAAS;QACX,CAAC;QACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,IACE,CAAC,IAAA,iBAAO,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;gBACtC,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAE/B,OAAO,KAAK,CAAC;YACf,KAAK,IAAI,CAAC,CAAC;YACX,SAAS;QACX,CAAC;QACD,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,EAAE,CAAC;YACzE,IAAI,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,KAAK,GAAG,CAA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AE,CAAC;YACnB,IACE,CAAC,IAAA,iBAAO,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;gBACtC,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAC/B,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAE/B,OAAO,KAAK,CAAC;YACf,KAAK,IAAI,CAAC,CAAC;YACX,SAAS;QACX,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC"}
1
+ {"version":3,"file":"invalidUtf8Offset.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/invalidUtf8Offset.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AACpC,iDAA8C;AAE9C,8EAA8E;AAC9E,2BAAkC,KAAa;IAC7C,KAAK,IAAI,KAAK,GAAW,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,MAAM,GAAI,CAAC;QACnD,MAAM,KAAK,GAAW,KAAK,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAClB,KAAK,IAAI,CAAC,CAAC;YACX,SAAS;QACX,CAAC;QACD,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YACnC,IAAI,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAAE,OAAO,KAAK,CAAC;YAClD,KAAK,IAAI,CAAC,CAAC;YACX,SAAS;QACX,CAAC;QACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,IACE,CAAC,IAAA,iBAAO,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;gBACtC,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,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,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAC/B,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAC/B,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAE/B,OAAO,KAAK,CAAC;YACf,KAAK,IAAI,CAAC,CAAC;YACX,SAAS;QACX,CAAC;QACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,IACE,CAAC,IAAA,iBAAO,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;gBACtC,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAC/B,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;gBAE/B,OAAO,KAAK,CAAC;YACf,KAAK,IAAI,CAAC,CAAC;YACX,SAAS;QACX,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,CAAC,CAAC,CAAC;AACZ,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Recognizes one exact acknowledgement or review declaration.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Recognize either family by delegating exact classification to declarationKind.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The boolean adapter keeps recognition under one grammar owner.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No separate consumer rule broadens classifier acceptance.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies acknowledgement-or-review recognition.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Delegated delimiter and grammar checks scale with line length; the result is scalar.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The classifier reuses grammar expressions; independent lines need no boolean cache.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No input or result is stored after return.
11
- */
1
+ /** Recognizes one exact acknowledgement or review declaration. */
12
2
  export declare function isDeclaration(line: string): boolean;
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isDeclaration = isDeclaration;
4
4
  const declarationKind_1 = require("./declarationKind");
5
- /**
6
- * Recognizes one exact acknowledgement or review declaration.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation Recognize either family by delegating exact classification to declarationKind.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure The boolean adapter keeps recognition under one grammar owner.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No separate consumer rule broadens classifier acceptance.
11
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies acknowledgement-or-review recognition.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Delegated delimiter and grammar checks scale with line length; the result is scalar.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work The classifier reuses grammar expressions; independent lines need no boolean cache.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No input or result is stored after return.
15
- */
5
+ /** Recognizes one exact acknowledgement or review declaration. */
16
6
  function isDeclaration(line) {
17
7
  return (0, declarationKind_1.declarationKind)(line) !== undefined;
18
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"isDeclaration.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/isDeclaration.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD;;;;;;;;;;GAUG;AACH,uBAA8B,IAAY;IACxC,OAAO,IAAA,iCAAe,EAAC,IAAI,CAAC,KAAK,SAAS,CAAC;AAC7C,CAAC"}
1
+ {"version":3,"file":"isDeclaration.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/isDeclaration.ts"],"names":[],"mappings":";;;AAAA,uDAAoD;AAEpD,kEAAkE;AAClE,uBAA8B,IAAY;IACxC,OAAO,IAAA,iCAAe,EAAC,IAAI,CAAC,KAAK,SAAS,CAAC;AAC7C,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Narrows an unknown error to an Error with an optional Node errno code.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Use instanceof Error before callers inspect an optional Node errno code.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate centralizes the Error-instance premise.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No code is synthesized; protectedFileKind still explicitly compares ENOENT.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment names Node error narrowing; code presence is not guaranteed.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms One instanceof check takes constant time and auxiliary space.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each caught value is checked independently without caching errors.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No error reference is retained.
11
- */
1
+ /** Narrows an unknown error to an Error with an optional Node errno code. */
12
2
  export declare function isNodeError(error: unknown): error is NodeJS.ErrnoException;
@@ -1,17 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isNodeError = isNodeError;
4
- /**
5
- * Narrows an unknown error to an Error with an optional Node errno code.
6
- *
7
- * @evidence contracts/development/implementation.md#principled-implementation Use instanceof Error before callers inspect an optional Node errno code.
8
- * @evidence contracts/development/implementation.md#clear-and-simple-structure One predicate centralizes the Error-instance premise.
9
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No code is synthesized; protectedFileKind still explicitly compares ENOENT.
10
- * @evidence contracts/development/common.md#meaningful-documentation The comment names Node error narrowing; code presence is not guaranteed.
11
- * @evidence contracts/development/implementation.md#efficient-algorithms One instanceof check takes constant time and auxiliary space.
12
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each caught value is checked independently without caching errors.
13
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources No error reference is retained.
14
- */
4
+ /** Narrows an unknown error to an Error with an optional Node errno code. */
15
5
  function isNodeError(error) {
16
6
  return error instanceof Error;
17
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"isNodeError.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/isNodeError.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;GAUG;AACH,qBAA4B,KAAc;IACxC,OAAO,KAAK,YAAY,KAAK,CAAC;AAChC,CAAC"}
1
+ {"version":3,"file":"isNodeError.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/isNodeError.ts"],"names":[],"mappings":";;;AAAA,6EAA6E;AAC7E,qBAA4B,KAAc;IACxC,OAAO,KAAK,YAAY,KAAK,CAAC;AAChC,CAAC"}
@@ -1,12 +1,2 @@
1
- /**
2
- * Returns the exact source line ending, including an absent final ending.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Find the content boundary with withoutEnding and slice the exact original suffix.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Ending extraction is separated from preserved content for projection.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts CRLF, CR, LF and absent endings receive no platform normalization.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies exact endings including absent final endings.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms Replacement and slicing process L-character lines with up to O(L) transient text.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work withoutEnding owns shared ending grammar; each line is examined independently.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Temporary strings expire locally and the returned suffix belongs to its caller.
11
- */
1
+ /** Returns the exact source line ending, including an absent final ending. */
12
2
  export declare function lineEnding(line: string): string;
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.lineEnding = lineEnding;
4
4
  const withoutEnding_1 = require("./withoutEnding");
5
- /**
6
- * Returns the exact source line ending, including an absent final ending.
7
- *
8
- * @evidence contracts/development/implementation.md#principled-implementation Find the content boundary with withoutEnding and slice the exact original suffix.
9
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Ending extraction is separated from preserved content for projection.
10
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts CRLF, CR, LF and absent endings receive no platform normalization.
11
- * @evidence contracts/development/common.md#meaningful-documentation The comment identifies exact endings including absent final endings.
12
- * @evidence contracts/development/implementation.md#efficient-algorithms Replacement and slicing process L-character lines with up to O(L) transient text.
13
- * @evidence contracts/development/implementation.md#reuse-equivalent-work withoutEnding owns shared ending grammar; each line is examined independently.
14
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Temporary strings expire locally and the returned suffix belongs to its caller.
15
- */
5
+ /** Returns the exact source line ending, including an absent final ending. */
16
6
  function lineEnding(line) {
17
7
  return line.slice((0, withoutEnding_1.withoutEnding)(line).length);
18
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lineEnding.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/lineEnding.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD;;;;;;;;;;GAUG;AACH,oBAA2B,IAAY;IACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,6BAAa,EAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC"}
1
+ {"version":3,"file":"lineEnding.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/lineEnding.ts"],"names":[],"mappings":";;;AAAA,mDAAgD;AAEhD,8EAA8E;AAC9E,oBAA2B,IAAY;IACrC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,6BAAa,EAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;AAChD,CAAC"}
@@ -1,14 +1,4 @@
1
- /**
2
- * Maps a byte offset to a one-based line and Unicode text column.
3
- *
4
- * @evidence contracts/development/implementation.md#principled-implementation Decode a byte prefix, split CRLF, CR or LF and count final-line Unicode code points.
5
- * @evidence contracts/development/implementation.md#clear-and-simple-structure Byte coordinates enter; one-based text coordinates leave for diagnostics.
6
- * @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Columns count code points rather than treating UTF-16 units as bytes.
7
- * @evidence contracts/development/common.md#meaningful-documentation The comment states byte-to-one-based-line and Unicode-column mapping.
8
- * @evidence contracts/development/implementation.md#efficient-algorithms A P-byte prefix needs O(P) decoding, splitting and transient space.
9
- * @evidence contracts/development/implementation.md#reuse-equivalent-work Each diagnostic offset determines its prefix; no full-file index is retained.
10
- * @evidence contracts/development/implementation.md#bound-retention-and-release-resources Prefix strings, line arrays and code-point arrays are call-local; only numbers are returned.
11
- */
1
+ /** Maps a byte offset to a one-based line and Unicode text column. */
12
2
  export declare function locate(bytes: Buffer, offset: number): {
13
3
  line: number;
14
4
  column: number;