@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.
- package/README.md +7 -92
- package/lib/IAutoMovieDevelopmentProps.d.ts +26 -20
- package/lib/IAutoMovieEvidenceConfigProps.d.ts +19 -18
- package/lib/IAutoMovieNarrativeProps.d.ts +10 -8
- package/lib/IAutoMovieNoNarrativeProps.d.ts +4 -6
- package/lib/createDevelopmentContractClaims.d.ts +16 -26
- package/lib/createDevelopmentContractClaims.js +45 -30
- package/lib/createDevelopmentContractClaims.js.map +1 -1
- package/lib/createEngineeringClaims.d.ts +16 -21
- package/lib/createEngineeringClaims.js +15 -20
- package/lib/createEngineeringClaims.js.map +1 -1
- package/lib/createEvidenceConfig.d.ts +7 -11
- package/lib/createEvidenceConfig.js +34 -12
- package/lib/createEvidenceConfig.js.map +1 -1
- package/lib/createResearchClaims.d.ts +5 -13
- package/lib/createResearchClaims.js +6 -14
- package/lib/createResearchClaims.js.map +1 -1
- package/lib/internal/IContractLocation.d.ts +6 -7
- package/lib/internal/PRODUCTION_CONTRACTS.d.ts +14 -7
- package/lib/internal/PRODUCTION_CONTRACTS.js +14 -7
- package/lib/internal/PRODUCTION_CONTRACTS.js.map +1 -1
- package/lib/internal/SKILLS_ROOT.d.ts +13 -7
- package/lib/internal/SKILLS_ROOT.js +13 -7
- package/lib/internal/SKILLS_ROOT.js.map +1 -1
- package/lib/internal/STORY_CONTRACTS.d.ts +12 -9
- package/lib/internal/STORY_CONTRACTS.js +12 -9
- package/lib/internal/STORY_CONTRACTS.js.map +1 -1
- package/lib/internal/assertFilmCatalogLayout.d.ts +12 -0
- package/lib/internal/assertFilmCatalogLayout.js +144 -0
- package/lib/internal/assertFilmCatalogLayout.js.map +1 -0
- package/lib/internal/assertProductionContractLayout.d.ts +2 -10
- package/lib/internal/assertProductionContractLayout.js +2 -10
- package/lib/internal/assertProductionContractLayout.js.map +1 -1
- package/lib/internal/createReferenceRoot.d.ts +0 -8
- package/lib/internal/createReferenceRoot.js +0 -8
- package/lib/internal/createReferenceRoot.js.map +1 -1
- package/lib/internal/hasMatchingFile.d.ts +5 -0
- package/lib/internal/hasMatchingFile.js +20 -0
- package/lib/internal/hasMatchingFile.js.map +1 -0
- package/lib/internal/resolveSkillsDirectory.d.ts +2 -9
- package/lib/internal/resolveSkillsDirectory.js +2 -9
- package/lib/internal/resolveSkillsDirectory.js.map +1 -1
- package/lib/narrative/AuthoredLayer.d.ts +2 -6
- package/lib/narrative/EvidenceMetadataRewriteOwnership.d.ts +0 -5
- package/lib/narrative/IEvidenceMetadataRenderedSample.d.ts +1 -8
- package/lib/narrative/IEvidenceMetadataRewriteFile.d.ts +1 -8
- package/lib/narrative/IEvidenceMetadataRewriteProps.d.ts +1 -8
- package/lib/narrative/IEvidenceMetadataRewriteReport.d.ts +1 -8
- package/lib/narrative/IPackageChecklistClaimProps.d.ts +2 -7
- package/lib/narrative/IPackageContractProps.d.ts +4 -11
- package/lib/narrative/IPackagePopulationContractProps.d.ts +1 -8
- package/lib/narrative/IProductionConfigProps.d.ts +7 -11
- package/lib/narrative/IProductionConstruction.d.ts +3 -10
- package/lib/narrative/NarrativeLayer.d.ts +3 -8
- package/lib/narrative/NarrativeScope.d.ts +2 -7
- package/lib/narrative/ProductionStage.d.ts +2 -6
- package/lib/narrative/createBriefFiles.d.ts +5 -12
- package/lib/narrative/createBriefFiles.js +5 -12
- package/lib/narrative/createBriefFiles.js.map +1 -1
- package/lib/narrative/createNarrativeUnitFiles.d.ts +0 -8
- package/lib/narrative/createNarrativeUnitFiles.js +0 -8
- package/lib/narrative/createNarrativeUnitFiles.js.map +1 -1
- package/lib/narrative/createPackageChecklistClaim.d.ts +3 -11
- package/lib/narrative/createPackageChecklistClaim.js +5 -15
- package/lib/narrative/createPackageChecklistClaim.js.map +1 -1
- package/lib/narrative/createPackageContract.d.ts +0 -8
- package/lib/narrative/createPackageContract.js +0 -8
- package/lib/narrative/createPackageContract.js.map +1 -1
- package/lib/narrative/createPackagePopulationContract.d.ts +3 -11
- package/lib/narrative/createPackagePopulationContract.js +3 -11
- package/lib/narrative/createPackagePopulationContract.js.map +1 -1
- package/lib/narrative/createProductionClaims.d.ts +0 -8
- package/lib/narrative/createProductionClaims.js +0 -8
- package/lib/narrative/createProductionClaims.js.map +1 -1
- package/lib/narrative/createProductionConfig.d.ts +1 -11
- package/lib/narrative/createProductionConfig.js +1 -11
- package/lib/narrative/createProductionConfig.js.map +1 -1
- package/lib/narrative/createSettingsFiles.d.ts +0 -8
- package/lib/narrative/createSettingsFiles.js +0 -8
- package/lib/narrative/createSettingsFiles.js.map +1 -1
- package/lib/narrative/internal/AUTHORED_LAYERS.d.ts +14 -7
- package/lib/narrative/internal/AUTHORED_LAYERS.js +14 -7
- package/lib/narrative/internal/AUTHORED_LAYERS.js.map +1 -1
- package/lib/narrative/internal/claims/createDiscoveryClaim.d.ts +17 -22
- package/lib/narrative/internal/claims/createDiscoveryClaim.js +17 -22
- package/lib/narrative/internal/claims/createDiscoveryClaim.js.map +1 -1
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.d.ts +7 -15
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js +7 -15
- package/lib/narrative/internal/claims/createInstructionCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/claims/createLayerClaims.d.ts +2 -10
- package/lib/narrative/internal/claims/createLayerClaims.js +2 -28
- package/lib/narrative/internal/claims/createLayerClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createOutlineClaims.d.ts +6 -14
- package/lib/narrative/internal/claims/createOutlineClaims.js +9 -18
- package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +4 -14
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js +10 -36
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createReviewClaims.d.ts +11 -19
- package/lib/narrative/internal/claims/createReviewClaims.js +57 -56
- package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +1 -9
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js +1 -9
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/claims/index.d.ts +0 -1
- package/lib/narrative/internal/claims/index.js +0 -1
- package/lib/narrative/internal/claims/index.js.map +1 -1
- package/lib/narrative/internal/collectProductionClaims.d.ts +1 -11
- package/lib/narrative/internal/collectProductionClaims.js +2 -15
- package/lib/narrative/internal/collectProductionClaims.js.map +1 -1
- package/lib/narrative/internal/constructionStage.d.ts +2 -9
- package/lib/narrative/internal/constructionStage.js +2 -9
- package/lib/narrative/internal/constructionStage.js.map +1 -1
- package/lib/narrative/internal/createGraphConfig.d.ts +4 -12
- package/lib/narrative/internal/createGraphConfig.js +4 -12
- package/lib/narrative/internal/createGraphConfig.js.map +1 -1
- package/lib/narrative/internal/index.d.ts +0 -1
- package/lib/narrative/internal/index.js +0 -1
- package/lib/narrative/internal/index.js.map +1 -1
- package/lib/narrative/internal/isCanonLayer.d.ts +2 -9
- package/lib/narrative/internal/isCanonLayer.js +2 -9
- package/lib/narrative/internal/isCanonLayer.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js +10 -7
- package/lib/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/EvidenceDeclarationKind.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js +10 -7
- package/lib/narrative/internal/metadataRewrite/HEADING_REVIEW.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/IEvidenceHeading.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IEvidenceSection.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IMetadataFragment.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IProjectionSegment.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/IProtectedProjection.d.ts +1 -8
- package/lib/narrative/internal/metadataRewrite/REVIEW.d.ts +11 -7
- package/lib/narrative/internal/metadataRewrite/REVIEW.js +11 -7
- package/lib/narrative/internal/metadataRewrite/REVIEW.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.d.ts +13 -8
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js +13 -8
- package/lib/narrative/internal/metadataRewrite/SUSPICIOUS.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/UTF8.d.ts +10 -7
- package/lib/narrative/internal/metadataRewrite/UTF8.js +10 -7
- package/lib/narrative/internal/metadataRewrite/UTF8.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/between.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/between.js +1 -11
- package/lib/narrative/internal/metadataRewrite/between.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/continuation.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/continuation.js +1 -11
- package/lib/narrative/internal/metadataRewrite/continuation.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/declarationKind.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/declarationKind.js +1 -11
- package/lib/narrative/internal/metadataRewrite/declarationKind.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/decode.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/decode.js +1 -11
- package/lib/narrative/internal/metadataRewrite/decode.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/directory.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/directory.js +1 -11
- package/lib/narrative/internal/metadataRewrite/directory.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/errorMessage.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/errorMessage.js +1 -11
- package/lib/narrative/internal/metadataRewrite/errorMessage.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.js +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceHeading.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/evidenceSections.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceSections.js +1 -11
- package/lib/narrative/internal/metadataRewrite/evidenceSections.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/findClose.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/findClose.js +1 -11
- package/lib/narrative/internal/metadataRewrite/findClose.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/firstDifference.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/firstDifference.js +1 -11
- package/lib/narrative/internal/metadataRewrite/firstDifference.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.d.ts +2 -9
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js +2 -9
- package/lib/narrative/internal/metadataRewrite/flatFingerprintStart.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js +1 -11
- package/lib/narrative/internal/metadataRewrite/invalidUtf8Offset.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/isDeclaration.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/isDeclaration.js +1 -11
- package/lib/narrative/internal/metadataRewrite/isDeclaration.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/isNodeError.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/isNodeError.js +1 -11
- package/lib/narrative/internal/metadataRewrite/isNodeError.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/lineEnding.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/lineEnding.js +1 -11
- package/lib/narrative/internal/metadataRewrite/lineEnding.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/locate.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/locate.js +1 -11
- package/lib/narrative/internal/metadataRewrite/locate.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/markdownFiles.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/markdownFiles.js +1 -11
- package/lib/narrative/internal/metadataRewrite/markdownFiles.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.js +1 -11
- package/lib/narrative/internal/metadataRewrite/metadataOwnership.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/normalizeFile.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/normalizeFile.js +1 -11
- package/lib/narrative/internal/metadataRewrite/normalizeFile.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrenceOffsets.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/occurrences.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrences.js +1 -11
- package/lib/narrative/internal/metadataRewrite/occurrences.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/originalOffset.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/originalOffset.js +1 -11
- package/lib/narrative/internal/metadataRewrite/originalOffset.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/project.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/project.js +1 -11
- package/lib/narrative/internal/metadataRewrite/project.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.js +1 -11
- package/lib/narrative/internal/metadataRewrite/protectedFileKind.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/replacementSafety.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/replacementSafety.js +1 -11
- package/lib/narrative/internal/metadataRewrite/replacementSafety.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/sameMetadata.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/sameMetadata.js +1 -11
- package/lib/narrative/internal/metadataRewrite/sameMetadata.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/selectFiles.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/selectFiles.js +1 -11
- package/lib/narrative/internal/metadataRewrite/selectFiles.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js +1 -11
- package/lib/narrative/internal/metadataRewrite/singleLineDeclaration.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/textLocation.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/textLocation.js +1 -11
- package/lib/narrative/internal/metadataRewrite/textLocation.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js +1 -11
- package/lib/narrative/internal/metadataRewrite/validateRenderedSample.js.map +1 -1
- package/lib/narrative/internal/metadataRewrite/withoutEnding.d.ts +1 -11
- package/lib/narrative/internal/metadataRewrite/withoutEnding.js +1 -11
- package/lib/narrative/internal/metadataRewrite/withoutEnding.js.map +1 -1
- package/lib/narrative/internal/productionLayers.d.ts +1 -11
- package/lib/narrative/internal/productionLayers.js +1 -11
- package/lib/narrative/internal/productionLayers.js.map +1 -1
- package/lib/narrative/internal/readSettingsFiles.d.ts +4 -12
- package/lib/narrative/internal/readSettingsFiles.js +8 -13
- package/lib/narrative/internal/readSettingsFiles.js.map +1 -1
- package/lib/narrative/internal/references/createCoverageReference.d.ts +2 -10
- package/lib/narrative/internal/references/createCoverageReference.js +2 -10
- package/lib/narrative/internal/references/createCoverageReference.js.map +1 -1
- package/lib/narrative/internal/references/createDiscoveryReferences.d.ts +5 -13
- package/lib/narrative/internal/references/createDiscoveryReferences.js +5 -13
- package/lib/narrative/internal/references/createDiscoveryReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.d.ts +1 -11
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js +1 -11
- package/lib/narrative/internal/references/createLanguageDiscoveryReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.d.ts +3 -13
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +4 -13
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js.map +1 -1
- package/lib/narrative/internal/references/createLineageReference.d.ts +6 -14
- package/lib/narrative/internal/references/createLineageReference.js +6 -14
- package/lib/narrative/internal/references/createLineageReference.js.map +1 -1
- package/lib/narrative/internal/references/createLocalContractReference.d.ts +0 -8
- package/lib/narrative/internal/references/createLocalContractReference.js +0 -8
- package/lib/narrative/internal/references/createLocalContractReference.js.map +1 -1
- package/lib/narrative/internal/references/createPrincipleReferences.d.ts +2 -21
- package/lib/narrative/internal/references/createPrincipleReferences.js +6 -35
- package/lib/narrative/internal/references/createPrincipleReferences.js.map +1 -1
- package/lib/narrative/internal/references/createSettingReferences.d.ts +3 -10
- package/lib/narrative/internal/references/createSettingReferences.js +3 -10
- package/lib/narrative/internal/references/createSettingReferences.js.map +1 -1
- package/lib/narrative/internal/references/createSharedReference.d.ts +7 -16
- package/lib/narrative/internal/references/createSharedReference.js +8 -17
- package/lib/narrative/internal/references/createSharedReference.js.map +1 -1
- package/lib/narrative/internal/references/createUpstreamReference.d.ts +0 -8
- package/lib/narrative/internal/references/createUpstreamReference.js +0 -8
- package/lib/narrative/internal/references/createUpstreamReference.js.map +1 -1
- package/lib/narrative/internal/references/layerFiles.d.ts +4 -13
- package/lib/narrative/internal/references/layerFiles.js +5 -15
- package/lib/narrative/internal/references/layerFiles.js.map +1 -1
- package/lib/narrative/internal/settingsEntryAnchor.d.ts +2 -9
- package/lib/narrative/internal/settingsEntryAnchor.js +2 -9
- package/lib/narrative/internal/settingsEntryAnchor.js.map +1 -1
- package/lib/narrative/internal/topology/createTopologyFiles.d.ts +1 -11
- package/lib/narrative/internal/topology/createTopologyFiles.js +1 -11
- package/lib/narrative/internal/topology/createTopologyFiles.js.map +1 -1
- package/lib/narrative/internal/utilities/BODY_ROOT.d.ts +14 -7
- package/lib/narrative/internal/utilities/BODY_ROOT.js +14 -7
- package/lib/narrative/internal/utilities/BODY_ROOT.js.map +1 -1
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.d.ts +15 -7
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js +15 -7
- package/lib/narrative/internal/utilities/PACKAGE_DOCS_ROOT.js.map +1 -1
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.d.ts +2 -9
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js +2 -9
- package/lib/narrative/internal/utilities/assertProductionEvidenceSources.js.map +1 -1
- package/lib/narrative/internal/utilities/createContractDirectory.d.ts +4 -10
- package/lib/narrative/internal/utilities/createContractDirectory.js +4 -10
- package/lib/narrative/internal/utilities/createContractDirectory.js.map +1 -1
- package/lib/narrative/internal/utilities/createContractRoot.d.ts +8 -18
- package/lib/narrative/internal/utilities/createContractRoot.js +8 -18
- package/lib/narrative/internal/utilities/createContractRoot.js.map +1 -1
- package/lib/narrative/internal/utilities/createEvidenceFiles.d.ts +1 -11
- package/lib/narrative/internal/utilities/createEvidenceFiles.js +1 -11
- package/lib/narrative/internal/utilities/createEvidenceFiles.js.map +1 -1
- package/lib/narrative/internal/utilities/createUnitFiles.d.ts +0 -8
- package/lib/narrative/internal/utilities/createUnitFiles.js +0 -8
- package/lib/narrative/internal/utilities/createUnitFiles.js.map +1 -1
- package/lib/narrative/internal/utilities/hasStoryContract.d.ts +9 -0
- package/lib/narrative/internal/utilities/hasStoryContract.js +20 -0
- package/lib/narrative/internal/utilities/hasStoryContract.js.map +1 -0
- package/lib/narrative/internal/utilities/referenceLocation.d.ts +2 -9
- package/lib/narrative/internal/utilities/referenceLocation.js +2 -9
- package/lib/narrative/internal/utilities/referenceLocation.js.map +1 -1
- package/lib/narrative/internal/validateSettingsOutline.d.ts +6 -12
- package/lib/narrative/internal/validateSettingsOutline.js +27 -20
- package/lib/narrative/internal/validateSettingsOutline.js.map +1 -1
- package/lib/narrative/isFirstPartPilot.d.ts +1 -11
- package/lib/narrative/isFirstPartPilot.js +1 -11
- package/lib/narrative/isFirstPartPilot.js.map +1 -1
- package/lib/narrative/verifyEvidenceMetadataRewrite.d.ts +2 -10
- package/lib/narrative/verifyEvidenceMetadataRewrite.js +2 -10
- package/lib/narrative/verifyEvidenceMetadataRewrite.js.map +1 -1
- package/package.json +6 -5
- package/src/IAutoMovieDevelopmentProps.ts +27 -20
- package/src/IAutoMovieEvidenceConfigProps.ts +19 -18
- package/src/IAutoMovieNarrativeProps.ts +10 -8
- package/src/IAutoMovieNoNarrativeProps.ts +4 -6
- package/src/createDevelopmentContractClaims.ts +46 -30
- package/src/createEngineeringClaims.ts +17 -22
- package/src/createEvidenceConfig.ts +45 -12
- package/src/createResearchClaims.ts +6 -14
- package/src/internal/IContractLocation.ts +6 -7
- package/src/internal/PRODUCTION_CONTRACTS.ts +14 -7
- package/src/internal/SKILLS_ROOT.ts +13 -7
- package/src/internal/STORY_CONTRACTS.ts +12 -9
- package/src/internal/assertFilmCatalogLayout.ts +173 -0
- package/src/internal/assertProductionContractLayout.ts +2 -10
- package/src/internal/createReferenceRoot.ts +0 -8
- package/src/internal/hasMatchingFile.ts +21 -0
- package/src/internal/index.ts +1 -1
- package/src/internal/resolveSkillsDirectory.ts +2 -9
- package/src/narrative/AuthoredLayer.ts +2 -6
- package/src/narrative/EvidenceMetadataRewriteOwnership.ts +0 -5
- package/src/narrative/IEvidenceMetadataRenderedSample.ts +1 -8
- package/src/narrative/IEvidenceMetadataRewriteFile.ts +1 -8
- package/src/narrative/IEvidenceMetadataRewriteProps.ts +1 -8
- package/src/narrative/IEvidenceMetadataRewriteReport.ts +1 -8
- package/src/narrative/IPackageChecklistClaimProps.ts +2 -7
- package/src/narrative/IPackageContractProps.ts +4 -11
- package/src/narrative/IPackagePopulationContractProps.ts +1 -8
- package/src/narrative/IProductionConfigProps.ts +7 -11
- package/src/narrative/IProductionConstruction.ts +3 -10
- package/src/narrative/NarrativeLayer.ts +3 -8
- package/src/narrative/NarrativeScope.ts +2 -7
- package/src/narrative/ProductionStage.ts +2 -6
- package/src/narrative/createBriefFiles.ts +5 -12
- package/src/narrative/createNarrativeUnitFiles.ts +0 -8
- package/src/narrative/createPackageChecklistClaim.ts +5 -15
- package/src/narrative/createPackageContract.ts +0 -8
- package/src/narrative/createPackagePopulationContract.ts +3 -11
- package/src/narrative/createProductionClaims.ts +0 -8
- package/src/narrative/createProductionConfig.ts +1 -11
- package/src/narrative/createSettingsFiles.ts +0 -8
- package/src/narrative/internal/AUTHORED_LAYERS.ts +14 -7
- package/src/narrative/internal/claims/createDiscoveryClaim.ts +17 -22
- package/src/narrative/internal/claims/createInstructionCoverageClaim.ts +7 -15
- package/src/narrative/internal/claims/createLayerClaims.ts +2 -30
- package/src/narrative/internal/claims/createOutlineClaims.ts +9 -26
- package/src/narrative/internal/claims/createPopulationObligationClaims.ts +12 -53
- package/src/narrative/internal/claims/createReviewClaims.ts +57 -64
- package/src/narrative/internal/claims/createSettingCoverageClaim.ts +1 -9
- package/src/narrative/internal/claims/index.ts +0 -1
- package/src/narrative/internal/collectProductionClaims.ts +2 -15
- package/src/narrative/internal/constructionStage.ts +2 -9
- package/src/narrative/internal/createGraphConfig.ts +4 -12
- package/src/narrative/internal/index.ts +0 -1
- package/src/narrative/internal/isCanonLayer.ts +2 -9
- package/src/narrative/internal/metadataRewrite/ACKNOWLEDGEMENT.ts +10 -7
- package/src/narrative/internal/metadataRewrite/EvidenceDeclarationKind.ts +1 -8
- package/src/narrative/internal/metadataRewrite/HEADING_ACKNOWLEDGEMENT.ts +10 -7
- package/src/narrative/internal/metadataRewrite/HEADING_REVIEW.ts +10 -7
- package/src/narrative/internal/metadataRewrite/IEvidenceHeading.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IEvidenceSection.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IMetadataFragment.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IProjectionSegment.ts +1 -8
- package/src/narrative/internal/metadataRewrite/IProtectedProjection.ts +1 -8
- package/src/narrative/internal/metadataRewrite/REVIEW.ts +11 -7
- package/src/narrative/internal/metadataRewrite/SUSPICIOUS.ts +13 -8
- package/src/narrative/internal/metadataRewrite/UTF8.ts +10 -7
- package/src/narrative/internal/metadataRewrite/between.ts +1 -11
- package/src/narrative/internal/metadataRewrite/continuation.ts +1 -11
- package/src/narrative/internal/metadataRewrite/declarationKind.ts +1 -11
- package/src/narrative/internal/metadataRewrite/decode.ts +1 -11
- package/src/narrative/internal/metadataRewrite/directory.ts +1 -11
- package/src/narrative/internal/metadataRewrite/errorMessage.ts +1 -11
- package/src/narrative/internal/metadataRewrite/evidenceHeading.ts +1 -11
- package/src/narrative/internal/metadataRewrite/evidenceSections.ts +1 -11
- package/src/narrative/internal/metadataRewrite/findClose.ts +1 -11
- package/src/narrative/internal/metadataRewrite/firstDifference.ts +1 -11
- package/src/narrative/internal/metadataRewrite/flatFingerprintStart.ts +2 -9
- package/src/narrative/internal/metadataRewrite/invalidUtf8Offset.ts +1 -11
- package/src/narrative/internal/metadataRewrite/isDeclaration.ts +1 -11
- package/src/narrative/internal/metadataRewrite/isNodeError.ts +1 -11
- package/src/narrative/internal/metadataRewrite/lineEnding.ts +1 -11
- package/src/narrative/internal/metadataRewrite/locate.ts +1 -11
- package/src/narrative/internal/metadataRewrite/markdownFiles.ts +1 -11
- package/src/narrative/internal/metadataRewrite/metadataOwnership.ts +1 -11
- package/src/narrative/internal/metadataRewrite/normalizeFile.ts +1 -11
- package/src/narrative/internal/metadataRewrite/occurrenceOffsets.ts +1 -11
- package/src/narrative/internal/metadataRewrite/occurrences.ts +1 -11
- package/src/narrative/internal/metadataRewrite/originalOffset.ts +1 -11
- package/src/narrative/internal/metadataRewrite/project.ts +1 -11
- package/src/narrative/internal/metadataRewrite/protectedFileKind.ts +1 -11
- package/src/narrative/internal/metadataRewrite/replacementSafety.ts +1 -11
- package/src/narrative/internal/metadataRewrite/sameMetadata.ts +1 -11
- package/src/narrative/internal/metadataRewrite/selectFiles.ts +1 -11
- package/src/narrative/internal/metadataRewrite/singleLineDeclaration.ts +1 -11
- package/src/narrative/internal/metadataRewrite/textLocation.ts +1 -11
- package/src/narrative/internal/metadataRewrite/validateRenderedSample.ts +1 -11
- package/src/narrative/internal/metadataRewrite/withoutEnding.ts +1 -11
- package/src/narrative/internal/productionLayers.ts +1 -11
- package/src/narrative/internal/readSettingsFiles.ts +8 -13
- package/src/narrative/internal/references/createCoverageReference.ts +2 -10
- package/src/narrative/internal/references/createDiscoveryReferences.ts +5 -13
- package/src/narrative/internal/references/createLanguageDiscoveryReferences.ts +1 -11
- package/src/narrative/internal/references/createLanguagePrincipleReferences.ts +4 -14
- package/src/narrative/internal/references/createLineageReference.ts +6 -14
- package/src/narrative/internal/references/createLocalContractReference.ts +0 -8
- package/src/narrative/internal/references/createPrincipleReferences.ts +9 -42
- package/src/narrative/internal/references/createSettingReferences.ts +3 -10
- package/src/narrative/internal/references/createSharedReference.ts +8 -17
- package/src/narrative/internal/references/createUpstreamReference.ts +0 -8
- package/src/narrative/internal/references/layerFiles.ts +5 -15
- package/src/narrative/internal/settingsEntryAnchor.ts +2 -9
- package/src/narrative/internal/topology/createTopologyFiles.ts +1 -11
- package/src/narrative/internal/utilities/BODY_ROOT.ts +14 -7
- package/src/narrative/internal/utilities/PACKAGE_DOCS_ROOT.ts +15 -7
- package/src/narrative/internal/utilities/assertProductionEvidenceSources.ts +2 -9
- package/src/narrative/internal/utilities/createContractDirectory.ts +4 -10
- package/src/narrative/internal/utilities/createContractRoot.ts +8 -18
- package/src/narrative/internal/utilities/createEvidenceFiles.ts +1 -11
- package/src/narrative/internal/utilities/createUnitFiles.ts +0 -8
- package/src/narrative/internal/utilities/hasStoryContract.ts +21 -0
- package/src/narrative/internal/utilities/referenceLocation.ts +2 -9
- package/src/narrative/internal/validateSettingsOutline.ts +27 -20
- package/src/narrative/isFirstPartPilot.ts +1 -11
- package/src/narrative/verifyEvidenceMetadataRewrite.ts +2 -10
- package/lib/narrative/internal/REALIZED_LAYERS.d.ts +0 -16
- package/lib/narrative/internal/REALIZED_LAYERS.js +0 -19
- package/lib/narrative/internal/REALIZED_LAYERS.js.map +0 -1
- package/lib/narrative/internal/claims/createExpressionObligationClaims.d.ts +0 -26
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js +0 -93
- package/lib/narrative/internal/claims/createExpressionObligationClaims.js.map +0 -1
- package/src/narrative/internal/REALIZED_LAYERS.ts +0 -18
- package/src/narrative/internal/claims/createExpressionObligationClaims.ts +0 -125
|
@@ -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 function locate(
|
|
13
3
|
bytes: Buffer,
|
|
14
4
|
offset: number,
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Inventories Markdown paths without following directory symlinks.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/implementation.md#principled-implementation Recursively enumerate entries without traversing directory symlinks; include Markdown symlink paths so later safety checks can reject them.
|
|
8
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Inventory returns slash-normalized names while protectedFileKind owns physical-file validation.
|
|
9
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Keeping symlink names prevents unsafe selected paths from disappearing silently.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the traversal rule; returned values are paths rather than contents.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Traversal visits entries; nested flatMap copying can repeat path-array work with directory depth.
|
|
12
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each root is inventoried independently because its current directory population may differ.
|
|
13
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Synchronous readdir leaves no open handles; names and recursion grow with tree size without a fixed cap.
|
|
14
|
-
*/
|
|
4
|
+
/** Inventories Markdown paths without following directory symlinks. */
|
|
15
5
|
export function markdownFiles(
|
|
16
6
|
root: string,
|
|
17
7
|
directoryPath: string = root,
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import type { EvidenceMetadataRewriteOwnership } from "../../EvidenceMetadataRewriteOwnership";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Rejects an untyped caller that did not declare one exact mutable region.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation Equality checks accept only the four declared regions even from untyped callers.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One boundary check precedes projection ownership selection.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unsupported values throw without broader ownership or default behavior.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states runtime validation; errors enumerate allowed regions.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Four scalar comparisons require constant time and auxiliary space.
|
|
11
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The fixed vocabulary needs no cached request work.
|
|
12
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources No state or resources are retained.
|
|
13
|
-
*/
|
|
3
|
+
/** Rejects an untyped caller that did not declare one exact mutable region. */
|
|
14
4
|
export function metadataOwnership(
|
|
15
5
|
ownership: EvidenceMetadataRewriteOwnership,
|
|
16
6
|
): EvidenceMetadataRewriteOwnership {
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Rejects non-canonical paths capable of escaping either compared root.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation Slash-normalize and require exact POSIX normalization, a relative Markdown suffix and no drive or dot segments.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One validator serves both selected paths and sample identities.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Escaping or noncanonical paths throw instead of being repaired into another file.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states root-escape protection; errors require normalized relative Markdown paths.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Replacement, normalization and segment checks scale with path length and proportional temporary allocations.
|
|
11
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Node normalization is reused as the primitive; independent paths are not cached.
|
|
12
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Local strings and arrays expire after return or throw; the path is caller-owned.
|
|
13
|
-
*/
|
|
3
|
+
/** Rejects non-canonical paths capable of escaping either compared root. */
|
|
14
4
|
export function normalizeFile(file: string): string {
|
|
15
5
|
const slashed: string = file.replaceAll("\\", "/");
|
|
16
6
|
const normalized: string = path.posix.normalize(slashed);
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Locates literal non-overlapping occurrences of a required nonempty token.
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/implementation.md#principled-implementation Repeated indexOf advances by token length and returns literal nonoverlapping positions; the token must be nonempty.
|
|
5
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Ordered positions serve both counts and candidate alarm locations.
|
|
6
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Literal matching avoids regex reinterpretation; an empty token would prevent progress and is unsupported.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states nonoverlap; callers use fixed nonempty corruption signals.
|
|
8
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Successive searches use the runtime string-search primitive and allocate O(K) positions for K matches.
|
|
9
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The returned candidate positions support both counting and identifying the first added match.
|
|
10
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned caller-owned array grows with matches; no cross-call state persists.
|
|
11
|
-
*/
|
|
1
|
+
/** Locates literal non-overlapping occurrences of a required nonempty token. */
|
|
12
2
|
export function occurrenceOffsets(text: string, token: string): number[] {
|
|
13
3
|
const offsets: number[] = [];
|
|
14
4
|
for (let offset: number = 0; ; ) {
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { occurrenceOffsets } from "./occurrenceOffsets";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Counts literal non-overlapping occurrences of a required nonempty token.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation Count the nonoverlapping positions returned by occurrenceOffsets, which requires a nonempty token.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The count adapter shares occurrence semantics with diagnostic position lookup.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No normalization or special count changes the literal scan.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states literal nonoverlap; the nonempty-token premise is inherited.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Delegation scans text and allocates K offsets before reading length; this existing O(K) allocation remains.
|
|
11
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Counts and positions share one implementation; distinct strings still require separate scans.
|
|
12
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The temporary offset array becomes unreachable after length is read; only a number returns.
|
|
13
|
-
*/
|
|
3
|
+
/** Counts literal non-overlapping occurrences of a required nonempty token. */
|
|
14
4
|
export function occurrences(text: string, token: string): number {
|
|
15
5
|
return occurrenceOffsets(text, token).length;
|
|
16
6
|
}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import type { IProjectionSegment } from "./IProjectionSegment";
|
|
2
2
|
import type { IProtectedProjection } from "./IProtectedProjection";
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Maps a projected byte offset back to the exact original source offset.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/implementation.md#principled-implementation Locate the protected span containing an offset and add its displacement; projected EOF maps to source EOF.
|
|
8
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Existing span mappings reconnect projection diagnostics to original bytes.
|
|
9
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Unmatched spans fall back to source EOF rather than invented interior coordinates.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states source-offset mapping; coordinates are byte offsets.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Linear find examines up to S segments with constant auxiliary space.
|
|
12
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The projection's existing segments are reused without source reparsing.
|
|
13
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The projection is borrowed; no reference persists after return.
|
|
14
|
-
*/
|
|
4
|
+
/** Maps a projected byte offset back to the exact original source offset. */
|
|
15
5
|
export function originalOffset(
|
|
16
6
|
projection: IProtectedProjection,
|
|
17
7
|
projectedOffset: number,
|
|
@@ -12,17 +12,7 @@ import { lineEnding } from "./lineEnding";
|
|
|
12
12
|
import { singleLineDeclaration } from "./singleLineDeclaration";
|
|
13
13
|
import { withoutEnding } from "./withoutEnding";
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* Removes only the declared metadata ownership and records source mappings.
|
|
17
|
-
*
|
|
18
|
-
* @evidence contracts/development/implementation.md#principled-implementation Parse lines and grammar-valid evidence blocks, remove only declared ownership and record source byte spans for protected fragments.
|
|
19
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Recognition helpers separate metadata grammar from projection and original-coordinate mappings.
|
|
20
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Fences, indentation and malformed comments stay protected; identical tokens outside review syntax gain no ownership.
|
|
21
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states ownership-only removal; result members identify preserved bytes, removed fragments and source locations.
|
|
22
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Line splitting, encoding and concatenation scale with bytes; malformed opener lookahead can rescan blocks, so worst-case time is not guaranteed linear.
|
|
23
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work One returned projection serves equality, hashing, mismatch locations and sample validation within verification.
|
|
24
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Buffers, metadata and mappings scale with input; the projection retains the supplied original Buffer by reference and opens no handles.
|
|
25
|
-
*/
|
|
15
|
+
/** Removes only the declared metadata ownership and records source mappings. */
|
|
26
16
|
export function project(
|
|
27
17
|
markdown: string,
|
|
28
18
|
original: Buffer,
|
|
@@ -3,17 +3,7 @@ import path from "node:path";
|
|
|
3
3
|
|
|
4
4
|
import { isNodeError } from "./isNodeError";
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Identifies missing paths, regular files, and paths that must not be followed.
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/implementation.md#principled-implementation lstat every relative component, rejecting symlinks and nondirectory ancestors before accepting a regular final file.
|
|
10
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Physical checks supplement lexical validation so selected paths cannot bypass safety.
|
|
11
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only ENOENT becomes missing; other filesystem errors propagate without unsafe retries.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies missing, regular and unsafe path categories.
|
|
13
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms D components require up to D synchronous lstat calls plus accumulated path-construction work.
|
|
14
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Both roots are checked independently because physical identities and file kinds may differ.
|
|
15
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Synchronous stats leave no open handles; paths and stat objects remain call-local.
|
|
16
|
-
*/
|
|
6
|
+
/** Identifies missing paths, regular files, and paths that must not be followed. */
|
|
17
7
|
export function protectedFileKind(root: string, file: string): string {
|
|
18
8
|
let target: string = root;
|
|
19
9
|
const parts: string[] = file.split("/");
|
|
@@ -3,17 +3,7 @@ import { occurrenceOffsets } from "./occurrenceOffsets";
|
|
|
3
3
|
import { occurrences } from "./occurrences";
|
|
4
4
|
import { textLocation } from "./textLocation";
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Returns all replacement alarms confirmed against ancestor text.
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/implementation.md#principled-implementation Report U+FFFD and increases of fixed corruption tokens against the ancestor, including their candidate locations.
|
|
10
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Heuristic corruption alarms remain separate from exact protected-byte comparison.
|
|
11
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Ancestor counts preserve preexisting tokens; fixed signals do not claim complete language or encoding validation.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states ancestor-confirmed alarms; diagnostics expose counts and new positions.
|
|
13
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms For fixed T signals, ancestor and candidate scans dominate with O(K) match arrays plus location-conversion work.
|
|
14
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The fixed token list is shared; candidate offsets serve counts and new-position diagnostics together.
|
|
15
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned alarm strings are caller-owned; temporary offsets and locations expire with the call.
|
|
16
|
-
*/
|
|
6
|
+
/** Returns all replacement alarms confirmed against ancestor text. */
|
|
17
7
|
export function replacementSafety(
|
|
18
8
|
file: string,
|
|
19
9
|
side: string,
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import type { IMetadataFragment } from "./IMetadataFragment";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Compares ordered metadata text and its authored-byte insertion anchors.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation Compare fragment counts, protected insertion offsets and exact removed text in order.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Including placement exposes movement across authored bytes.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Whitespace and endings are never normalized into equality.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies both text and insertion-anchor comparison.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Up to M fragment pairs and their string comparisons are examined, short-circuiting with constant auxiliary space.
|
|
11
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Existing projection fragments are compared without reconstruction or extra hashing.
|
|
12
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Borrowed arrays and fragments are not retained.
|
|
13
|
-
*/
|
|
3
|
+
/** Compares ordered metadata text and its authored-byte insertion anchors. */
|
|
14
4
|
export function sameMetadata(
|
|
15
5
|
before: IMetadataFragment[],
|
|
16
6
|
after: IMetadataFragment[],
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import { markdownFiles } from "./markdownFiles";
|
|
2
2
|
import { normalizeFile } from "./normalizeFile";
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Selects an explicit safe population or the complete Markdown union.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/implementation.md#principled-implementation Choose normalized explicit files or both Markdown inventories, then deduplicate and sort names.
|
|
8
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Population selection precedes separate physical-file safety checks.
|
|
9
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Both roots contribute so additions and removals remain detectable; explicit paths cannot bypass normalization.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment distinguishes explicit selection from complete Markdown union.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Inventory visits both trees when needed; sets use O(F) names and sorting uses O(F log F) path comparisons.
|
|
12
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Set removes duplicates before comparison; independent root inventories cannot be assumed equivalent.
|
|
13
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned names and temporary sets grow with population; no persistent cache or fixed cap is imposed.
|
|
14
|
-
*/
|
|
4
|
+
/** Selects an explicit safe population or the complete Markdown union. */
|
|
15
5
|
export function selectFiles(
|
|
16
6
|
beforeRoot: string,
|
|
17
7
|
afterRoot: string,
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { isDeclaration } from "./isDeclaration";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Recognizes one complete one-line comment and returns its declaration.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation Require exact one-line comment delimiters and classify only the enclosed declaration.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This helper recognizes syntax while project owns byte-removal decisions.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Malformed spacing and unsupported declarations stay unrecognized without normalization.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies complete comments and delimiter-free declaration output.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Prefix, suffix, slicing and grammar checks scale with line length and inner-string allocation.
|
|
11
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The shared classifier and expressions are reused; each current line is recognized independently.
|
|
12
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned text is caller-owned and no line history remains.
|
|
13
|
-
*/
|
|
3
|
+
/** Recognizes one complete one-line comment and returns its declaration. */
|
|
14
4
|
export function singleLineDeclaration(line: string): string | undefined {
|
|
15
5
|
if (!line.startsWith("<!-- ") || !line.endsWith(" -->")) return undefined;
|
|
16
6
|
const declaration: string = line.slice(5, -4);
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import { locate } from "./locate";
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* Formats one UTF-16 string index as source line, column, and UTF-8 byte.
|
|
5
|
-
*
|
|
6
|
-
* @evidence contracts/development/implementation.md#principled-implementation Convert a UTF-16 index to its UTF-8 prefix length, then locate that byte boundary in source text.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The adapter connects string-search indexes with byte-coordinate diagnostics.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts UTF-16 positions are never assumed to equal UTF-8 byte offsets.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment names UTF-16 input, source line and column, and UTF-8 output units.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Prefix and full-text encoding plus location conversion cost O(B) time and transient space for B bytes.
|
|
11
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work locate supplies shared Unicode-column rules; different candidate strings need distinct temporary encodings.
|
|
12
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Buffers, prefixes and line arrays expire locally; the result is one diagnostic string.
|
|
13
|
-
*/
|
|
3
|
+
/** Formats one UTF-16 string index as source line, column, and UTF-8 byte. */
|
|
14
4
|
export function textLocation(text: string, index: number): string {
|
|
15
5
|
const byte: number = Buffer.byteLength(text.slice(0, index), "utf8");
|
|
16
6
|
const location: { line: number; column: number } = locate(
|
|
@@ -3,17 +3,7 @@ import type { IProtectedProjection } from "./IProtectedProjection";
|
|
|
3
3
|
import { errorMessage } from "./errorMessage";
|
|
4
4
|
import { normalizeFile } from "./normalizeFile";
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* Requires and validates the auditable sample associated with a bulk batch.
|
|
8
|
-
*
|
|
9
|
-
* @evidence contracts/development/implementation.md#principled-implementation Require a bulk sample and check normalized file, positive line, nonempty fields and exact parsed candidate declaration text.
|
|
10
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Already-built projections bind the record without rereading or reparsing Markdown.
|
|
11
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only changed metadata files qualify; nearby authored text or unchanged declarations cannot substitute.
|
|
12
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the audit-record requirement; consistency validation does not independently observe readability.
|
|
13
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms File membership scans F changed names; field checks scale with text and Map lookups reuse captured content.
|
|
14
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Existing changed-file and projection populations are reused without a second filesystem scan.
|
|
15
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Diagnostics and projections remain caller-owned; the shallow returned record holds sample fields with no handles or global state.
|
|
16
|
-
*/
|
|
6
|
+
/** Requires and validates the auditable sample associated with a bulk batch. */
|
|
17
7
|
export function validateRenderedSample(
|
|
18
8
|
sample: IEvidenceMetadataRenderedSample | undefined,
|
|
19
9
|
bulk: boolean,
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns a line without consuming its exact ending.
|
|
3
|
-
*
|
|
4
|
-
* @evidence contracts/development/implementation.md#principled-implementation Remove one trailing CRLF, CR or LF while leaving every other character unchanged.
|
|
5
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One helper defines the content boundary shared by projection and section parsing.
|
|
6
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No interior newline or arbitrary trailing whitespace is normalized.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies exact ending separation.
|
|
8
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The end-anchored runtime regex processes L-character input; replacement may allocate O(L) text.
|
|
9
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared ending semantics need no cache that would retain individual source lines.
|
|
10
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources No state is stored and returned text belongs to its caller.
|
|
11
|
-
*/
|
|
1
|
+
/** Returns a line without consuming its exact ending. */
|
|
12
2
|
export function withoutEnding(line: string): string {
|
|
13
3
|
return line.replace(/(?:\r\n|\r|\n)$/u, "");
|
|
14
4
|
}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
import type { AuthoredLayer } from "../AuthoredLayer";
|
|
2
2
|
import type { IProductionConfigProps } from "../IProductionConfigProps";
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Selects the narrative layers authored by the declared production route.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/implementation.md#principled-implementation The route discriminant chooses settings, treatments, scripts and screenplay for long, brief plus screenplay for short, and none for asset; validation of route/stage coherence belongs to the factory.
|
|
8
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This selector centralizes route ownership so claim composition and dependency admission use the same population.
|
|
9
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Long, short and asset are declared product routes, and no consumer identity changes their layer lists.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states route-selected authorship; the props contract explains the route and the factory validates it.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The route branch and bounded layer array take constant time and space.
|
|
12
|
-
* @evidenceExclude contracts/development/implementation.md#reuse-equivalent-work Each call returns a fresh bounded literal array; there is no effectful work or cross-request equivalence requirement.
|
|
13
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Returned arrays are caller-owned with at most four entries, and no population grows in retained state or owns handles/tasks.
|
|
14
|
-
*/
|
|
4
|
+
/** Selects the narrative layers authored by the declared production route. */
|
|
15
5
|
export function productionLayers(
|
|
16
6
|
props: IProductionConfigProps,
|
|
17
7
|
): readonly AuthoredLayer[] {
|
|
@@ -9,18 +9,10 @@ import { SETTINGS_DOMAINS } from "./SETTINGS_DOMAINS";
|
|
|
9
9
|
*
|
|
10
10
|
* The scaffold's layout is `docs/body/settings/<domain>/<subject>.md` with the
|
|
11
11
|
* domains `world`, `cast`, `crowds`, `props`, `sets`, `cinematography` and
|
|
12
|
-
* `sound`, read in that order and alphabetically within a domain. Domain
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @evidence contracts/development/implementation.md#principled-implementation Concrete directory entries select legacy flat Markdown, the scaffold's closed domain folders or numbered subject folders, forbid mixed/nested/symlinked layouts, exclude the shared NUMBERED_FILE grammar from domain filenames, enforce unique three-digit order keys for numbered folders and return deterministic relative reading order.
|
|
18
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The filesystem reader owns canon layout validation; callers build outline and evidence relationships from the returned order without rewriting existing files.
|
|
19
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Legacy flat settings and numbered folders stay supported; absent settings return empty, while unknown domains, malformed names, numbered files inside domains, mixed layouts, duplicate order keys and symlinks fail for every production. Domain admission excludes exactly the existing numbered-file grammar, preserving other digit-bearing lower-kebab-case names.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the scaffold domain layout and its reading order, numbered and legacy retention, and that outline is navigation; errors identify mixed layouts, naming, empty folders, nesting and duplicate order numbers.
|
|
21
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms For e root/subject entries, directory enumeration and name validation scan entry text; sorting folders and entries costs O(e log e) comparisons in the worst distribution, with O(e) output/sets and directory arrays. No canon bytes are read.
|
|
22
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Each directory is listed once per call and duplicate-number sets avoid repeated pairwise comparisons; later calls rerun because current settings topology can change.
|
|
23
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Listings and relative file arrays live for one call or in its returned result; synchronous filesystem operations leave no retained handles/tasks and no fixed count bound is imposed.
|
|
12
|
+
* `sound`, read in that order and alphabetically within a domain. Domain files
|
|
13
|
+
* use lower-kebab-case names and exclude the numbered `NNN-entry.md` form.
|
|
14
|
+
* Numbered `NNN-subject/NNN-entry.md` folders read in number order. One
|
|
15
|
+
* settings root uses one layout; `outline` is navigation, not canon.
|
|
24
16
|
*/
|
|
25
17
|
export function readSettingsFiles(root: string): string[] {
|
|
26
18
|
if (!fs.existsSync(root)) return [];
|
|
@@ -96,7 +88,10 @@ function compare(left: string, right: string): 1 | -1 | 0 {
|
|
|
96
88
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
97
89
|
}
|
|
98
90
|
|
|
99
|
-
/**
|
|
91
|
+
/**
|
|
92
|
+
* The sorted Markdown files of one settings folder, keeping domain and numbered
|
|
93
|
+
* names disjoint and refusing nesting, bad names and emptiness.
|
|
94
|
+
*/
|
|
100
95
|
function list(root: string, folder: string, pattern: RegExp): string[] {
|
|
101
96
|
const names: string[] = [];
|
|
102
97
|
for (const entry of fs.readdirSync(path.join(root, folder), {
|
|
@@ -17,16 +17,8 @@ import { referenceLocation } from "../utilities/referenceLocation";
|
|
|
17
17
|
* It proves only that. Ordinary coverage cannot require a host to cite
|
|
18
18
|
* anything, and the one per-host count the engine offers is exactly one, which
|
|
19
19
|
* a unit realizing two events would fail. Attribution is therefore a contract
|
|
20
|
-
* duty rather than a cardinality: a unit with no parent cannot answer
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* @evidence contracts/development/implementation.md#principled-implementation Treatment file/H2 references prohibit exclusions but permit many-to-many coverage, matching independent event and release partitions; host attribution remains a semantic contract because native cardinality cannot require an arbitrary positive count.
|
|
24
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This helper isolates coverage from strict lineage, preventing the one-parent rule from being reused for differently partitioned populations.
|
|
25
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts NoEvidenceExclude enforces retained treatment targets without a fixture-specific bijection; the documented native limitation is not hidden by a fabricated host count.
|
|
26
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains partition independence, the exact guarantee and the remaining per-host attribution responsibility.
|
|
27
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The reference object is fixed size; referenceLocation copies/maps n selected paths for file references and reuses the supplied path array for H2 references, so work is O(n) path text or constant respectively.
|
|
28
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Address formation is shared with lineage references; H2 selectors retain the provided array while file selectors allocate qualified addresses, and no cross-call cache claims mutable selector equivalence.
|
|
29
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned reference is caller-owned and may retain the input selector array; file-qualified strings scale with selector text, with no open handles or persistent registry.
|
|
20
|
+
* duty rather than a cardinality: a unit with no parent cannot answer its
|
|
21
|
+
* selected parent-realization principle truthfully.
|
|
30
22
|
*/
|
|
31
23
|
export function createCoverageReference(
|
|
32
24
|
files: string[],
|
|
@@ -13,23 +13,15 @@ import { createSharedReference } from "./createSharedReference";
|
|
|
13
13
|
* Creates the open-world discovery duties one layer's population covers.
|
|
14
14
|
*
|
|
15
15
|
* Canon, settings or a short's brief, searches its own directives and subject,
|
|
16
|
-
* and backcasts the planned narrative to find what those layers would otherwise
|
|
17
|
-
* That backcast is how settings anticipates the cross-layer
|
|
18
|
-
* so `discovery/narratives.md` is not selected here: it is
|
|
19
|
-
* narrative layer answers when it rechecks that contract against
|
|
20
|
-
* actually authored.
|
|
16
|
+
* and backcasts the planned narrative to find what those layers would otherwise
|
|
17
|
+
* have to invent. That backcast is how settings anticipates the cross-layer
|
|
18
|
+
* narrative contract, so `discovery/narratives.md` is not selected here: it is
|
|
19
|
+
* the duty each narrative layer answers when it rechecks that contract against
|
|
20
|
+
* what it actually authored.
|
|
21
21
|
*
|
|
22
22
|
* Exclusion is permitted throughout the family. A duty that requires a search
|
|
23
23
|
* must be able to record that the search found nothing, which is what makes
|
|
24
24
|
* requiring it honest.
|
|
25
|
-
*
|
|
26
|
-
* @evidence contracts/development/implementation.md#principled-implementation A fixed shared discovery family selects common and layer duties, adds narrative duties only for inheriting layers, and appends installed language calibration; shared duties resolve in the shared skills tree and language calibration in the production's own `docs/contracts`, each through its own reference root, and discovery permits exclusions for truthful negative searches.
|
|
27
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The relation builder centralizes discovery target selection independently of the work-contract hosts created by createDiscoveryClaim.
|
|
28
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Canon layers omit narrative discovery because their backcast owns anticipation rather than rechecking authored inherited units; this is the declared layer responsibility.
|
|
29
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains settings backcast, narrative-layer recheck and why negative search findings remain admissible.
|
|
30
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Two or three shared references and at most one language reference are built; the optional language-file existence probe and fixed-count path operations dominate independent of manuscript size.
|
|
31
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work createSharedReference and the language-discovery selector share address/flag rules; optional language installation is checked each build rather than memoized across changed contract trees.
|
|
32
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The bounded reference array is returned to the claim owner; only temporary path strings are discarded and no filesystem handles or tasks remain retained.
|
|
33
25
|
*/
|
|
34
26
|
export function createDiscoveryReferences(
|
|
35
27
|
contracts: IContractLocation,
|
|
@@ -5,17 +5,7 @@ import type {
|
|
|
5
5
|
|
|
6
6
|
import { createLocalContractReference } from "./createLocalContractReference";
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* Selects the installed language's active open-world calibration questions.
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation An installed language discovery/questions.md becomes an ordinary H2 coverage target with truthful exclusions; absence produces an empty reference list.
|
|
12
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The helper gives language calibration its own optional target while delegating local contract-root addressing to one shared builder.
|
|
13
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Optional language selection reflects installed project contracts and does not force a language or fabricate replacement questions.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies active installed-language calibration questions; the optional local-reference result determines whether any claim target exists.
|
|
15
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One synchronous existence probe and fixed-size object/array construction are independent of manuscript length; path work scales with location text.
|
|
16
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work createLocalContractReference supplies shared local-root and option semantics, and its existence observation refreshes every config build.
|
|
17
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The zero-or-one reference array is caller-owned; there is no persistent language state, open descriptor or background task.
|
|
18
|
-
*/
|
|
8
|
+
/** Selects the installed language's active open-world calibration questions. */
|
|
19
9
|
export function createLanguageDiscoveryReferences(
|
|
20
10
|
location: string,
|
|
21
11
|
): IEvidenceReference[] {
|
|
@@ -8,31 +8,21 @@ import { createLocalContractReference } from "./createLocalContractReference";
|
|
|
8
8
|
import { layerFiles } from "./layerFiles";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Selects the installed language's
|
|
11
|
+
* Selects the installed language's construction principles for one layer.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* selects the expression family.
|
|
16
|
-
*
|
|
17
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles or expression family, with every present file forming a per-unit H2 checklist and exclusions forbidden.
|
|
18
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Family selection is localized here while local-file admission and contract-relative addresses belong to createLocalContractReference.
|
|
19
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Missing optional language files are omitted according to the sparse installed module; no default language or synthetic question is substituted.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership, family selection and which construction answers the expression family.
|
|
21
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms At most four candidate files each require one synchronous existence probe; mapping/filtering and allocated references have a fixed family bound with path-length-dependent string work.
|
|
22
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work layerFiles and the local-reference builder centralize equivalent scope/address rules; installation state is observed for each build, not cached across edits.
|
|
23
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Only the bounded returned references remain with the claim owner; intermediate optional arrays and paths expire after the call with no open handles or tasks.
|
|
13
|
+
* Language-specific screenplay questions follow the same unit scope as the
|
|
14
|
+
* shared ones.
|
|
24
15
|
*/
|
|
25
16
|
export function createLanguagePrincipleReferences(props: {
|
|
26
17
|
location: string;
|
|
27
18
|
layer: AuthoredLayer;
|
|
28
|
-
family: "principles" | "naturalness";
|
|
29
19
|
}): IEvidenceReference[] {
|
|
30
20
|
return layerFiles(props.layer)
|
|
31
21
|
.map((file: string): IEvidenceMarkdownReference | undefined =>
|
|
32
22
|
createLocalContractReference({
|
|
33
23
|
location: props.location,
|
|
34
24
|
scope: "language",
|
|
35
|
-
file:
|
|
25
|
+
file: `principles/${file}`,
|
|
36
26
|
checklist: true,
|
|
37
27
|
exclusion: false,
|
|
38
28
|
}),
|
|
@@ -6,21 +6,13 @@ import { referenceLocation } from "../utilities/referenceLocation";
|
|
|
6
6
|
* Creates a reference to one parent story unit.
|
|
7
7
|
*
|
|
8
8
|
* Each child host cites one parent, each parent has one child, and neither may
|
|
9
|
-
* exclude. This binds each long screenplay scene file to the script scene H2
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* exclude. This binds each long screenplay scene file to the script scene H2 it
|
|
10
|
+
* realizes, and each review H2 to the authored H2 it read. Use
|
|
11
|
+
* {@link createCoverageReference} for differently partitioned layers.
|
|
12
12
|
*
|
|
13
|
-
* `review` additionally demands a current review of the cited unit. The
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* @evidence contracts/development/implementation.md#principled-implementation UniqueEvidence, singleEvidencePerSymbol and noEvidenceExclude together form a one-to-one non-excludable relation; optional requireReview binds a reviewer to the exact cited unit version through native review semantics.
|
|
18
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The strict-lineage helper stays separate from many-to-many coverage and delegates body/global address rules to referenceLocation.
|
|
19
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Review is an explicit supported relation variant rather than a bypass for stale text, and no expected parent is inferred from a consumer label.
|
|
20
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states one-parent/one-child ownership, its screenplay and review uses and invalidation of a review when its cited unit changes.
|
|
21
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms Fixed flag assembly is constant-sized; address qualification costs O(n) selector text for file hosts and retains the original selector array for H2 hosts.
|
|
22
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work The same address builder serves lineage and coverage; references are freshly built and optional review metadata applies only to this requested relation, with no cross-analysis cache.
|
|
23
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The returned object and any qualified selector strings belong to the caller; H2 mode can retain the supplied array, and no handle, task or module-level collection is owned.
|
|
13
|
+
* `review` additionally demands a current review of the cited unit. The review
|
|
14
|
+
* binds a review document to the exact unit it read: a change to that unit
|
|
15
|
+
* expires the review, and the graph names the one unit to read again.
|
|
24
16
|
*/
|
|
25
17
|
export function createLineageReference(
|
|
26
18
|
files: string[],
|
|
@@ -12,14 +12,6 @@ import { createContractRoot } from "../utilities/createContractRoot";
|
|
|
12
12
|
* resolve under its own `docs/contracts`, even when a workspace keeps the
|
|
13
13
|
* shared contracts elsewhere. The root stops above the family folder, so the
|
|
14
14
|
* family owning the item stays in the citation address a host writes.
|
|
15
|
-
*
|
|
16
|
-
* @evidence contracts/development/implementation.md#principled-implementation One exact production-owned language/work file must exist before an H2 reference is returned; createContractDirectory and createContractRoot place both the probe and the root in the production's `docs/contracts`, and checklist/exclusion flags preserve requested semantics.
|
|
17
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This builder owns optional local-contract admission and addresses for discovery, principle and obligation consumers; the owning tree is decided by createContractDirectory.
|
|
18
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts File absence returns undefined rather than selecting a substitute from the shared tree or the retired `.agents/skills` location, which assertProductionContractLayout refuses before any factory runs.
|
|
19
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms One synchronous existence probe plus a fixed number of path/string operations costs O(p) text work for combined location/scope/file length, with no document-content read.
|
|
20
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work All local contract consumers reuse the same addressing and flags; the existence probe is intentionally repeated per config build so installation edits remain visible.
|
|
21
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources The optional returned reference contains one selector; call-local paths expire at return and fs.existsSync leaves no owned open descriptor, task or retained cache.
|
|
22
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose identifies the production's `docs/contracts` as owner, existence as the admission rule, and why the citation address retains its family.
|
|
23
15
|
*/
|
|
24
16
|
export function createLocalContractReference(props: {
|
|
25
17
|
location: string;
|