@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.
- package/README.md +7 -102
- package/lib/IAutoMovieDevelopmentProps.d.ts +24 -21
- 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 +15 -23
- package/lib/createDevelopmentContractClaims.js +22 -25
- 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 -14
- package/lib/createEvidenceConfig.js +12 -16
- package/lib/createEvidenceConfig.js.map +1 -1
- package/lib/createResearchClaims.d.ts +4 -12
- package/lib/createResearchClaims.js +4 -12
- 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 +8 -14
- package/lib/internal/assertFilmCatalogLayout.js +128 -33
- package/lib/internal/assertFilmCatalogLayout.js.map +1 -1
- 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 +2 -10
- package/lib/internal/hasMatchingFile.js +2 -10
- package/lib/internal/hasMatchingFile.js.map +1 -1
- 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 +3 -11
- 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 +0 -8
- package/lib/narrative/internal/claims/createLayerClaims.js +0 -8
- 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 +6 -14
- package/lib/narrative/internal/claims/createOutlineClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createPopulationObligationClaims.d.ts +3 -12
- package/lib/narrative/internal/claims/createPopulationObligationClaims.js +3 -12
- 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 +54 -39
- package/lib/narrative/internal/claims/createReviewClaims.js.map +1 -1
- package/lib/narrative/internal/claims/createSettingCoverageClaim.d.ts +0 -8
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js +0 -8
- package/lib/narrative/internal/claims/createSettingCoverageClaim.js.map +1 -1
- package/lib/narrative/internal/collectProductionClaims.d.ts +1 -11
- package/lib/narrative/internal/collectProductionClaims.js +1 -11
- 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/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 +2 -9
- package/lib/narrative/internal/references/createLanguagePrincipleReferences.js +2 -9
- 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 +0 -8
- package/lib/narrative/internal/references/createPrincipleReferences.js +0 -8
- 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 -15
- package/lib/narrative/internal/references/createSharedReference.js +7 -15
- 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 -12
- package/lib/narrative/internal/references/layerFiles.js +4 -12
- 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 +6 -12
- package/lib/narrative/internal/utilities/createContractRoot.js +6 -12
- 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 +0 -8
- package/lib/narrative/internal/utilities/hasStoryContract.js +0 -8
- package/lib/narrative/internal/utilities/hasStoryContract.js.map +1 -1
- 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 +25 -21
- package/src/IAutoMovieEvidenceConfigProps.ts +19 -18
- package/src/IAutoMovieNarrativeProps.ts +10 -8
- package/src/IAutoMovieNoNarrativeProps.ts +4 -6
- package/src/createDevelopmentContractClaims.ts +23 -25
- package/src/createEngineeringClaims.ts +17 -22
- package/src/createEvidenceConfig.ts +16 -16
- package/src/createResearchClaims.ts +4 -12
- 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 +160 -42
- package/src/internal/assertProductionContractLayout.ts +2 -10
- package/src/internal/createReferenceRoot.ts +0 -8
- package/src/internal/hasMatchingFile.ts +2 -10
- 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 +3 -11
- 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 +0 -8
- package/src/narrative/internal/claims/createOutlineClaims.ts +6 -14
- package/src/narrative/internal/claims/createPopulationObligationClaims.ts +3 -12
- package/src/narrative/internal/claims/createReviewClaims.ts +54 -39
- package/src/narrative/internal/claims/createSettingCoverageClaim.ts +0 -8
- package/src/narrative/internal/collectProductionClaims.ts +1 -11
- package/src/narrative/internal/constructionStage.ts +2 -9
- package/src/narrative/internal/createGraphConfig.ts +4 -12
- 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 +2 -9
- 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 +0 -8
- package/src/narrative/internal/references/createSettingReferences.ts +3 -10
- package/src/narrative/internal/references/createSharedReference.ts +7 -15
- package/src/narrative/internal/references/createUpstreamReference.ts +0 -8
- package/src/narrative/internal/references/layerFiles.ts +4 -12
- 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 +6 -12
- 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 +0 -8
- 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
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Formats one UTF-16 string index as source line, column, and UTF-8 byte.
|
|
3
|
-
*
|
|
4
|
-
* @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.
|
|
5
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The adapter connects string-search indexes with byte-coordinate diagnostics.
|
|
6
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts UTF-16 positions are never assumed to equal UTF-8 byte offsets.
|
|
7
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment names UTF-16 input, source line and column, and UTF-8 output units.
|
|
8
|
-
* @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.
|
|
9
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work locate supplies shared Unicode-column rules; different candidate strings need distinct temporary encodings.
|
|
10
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Buffers, prefixes and line arrays expire locally; the result is one diagnostic string.
|
|
11
|
-
*/
|
|
1
|
+
/** Formats one UTF-16 string index as source line, column, and UTF-8 byte. */
|
|
12
2
|
export declare function textLocation(text: string, index: number): string;
|
|
@@ -2,17 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.textLocation = textLocation;
|
|
4
4
|
const locate_1 = require("./locate");
|
|
5
|
-
/**
|
|
6
|
-
* Formats one UTF-16 string index as source line, column, and UTF-8 byte.
|
|
7
|
-
*
|
|
8
|
-
* @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.
|
|
9
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure The adapter connects string-search indexes with byte-coordinate diagnostics.
|
|
10
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts UTF-16 positions are never assumed to equal UTF-8 byte offsets.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment names UTF-16 input, source line and column, and UTF-8 output units.
|
|
12
|
-
* @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.
|
|
13
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work locate supplies shared Unicode-column rules; different candidate strings need distinct temporary encodings.
|
|
14
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources Buffers, prefixes and line arrays expire locally; the result is one diagnostic string.
|
|
15
|
-
*/
|
|
5
|
+
/** Formats one UTF-16 string index as source line, column, and UTF-8 byte. */
|
|
16
6
|
function textLocation(text, index) {
|
|
17
7
|
const byte = Buffer.byteLength(text.slice(0, index), "utf8");
|
|
18
8
|
const location = (0, locate_1.locate)(Buffer.from(text, "utf8"), byte);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textLocation.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/textLocation.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC
|
|
1
|
+
{"version":3,"file":"textLocation.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/textLocation.ts"],"names":[],"mappings":";;;AAAA,qCAAkC;AAElC,8EAA8E;AAC9E,sBAA6B,IAAY,EAAE,KAAa;IACtD,MAAM,IAAI,GAAW,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IACrE,MAAM,QAAQ,GAAqC,IAAA,eAAM,EACvD,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EACzB,IAAI,CACL,CAAC;IACF,OAAO,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,MAAM,UAAU,IAAI,GAAG,CAAC;AAC9D,CAAC"}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import type { IEvidenceMetadataRenderedSample } from "../../IEvidenceMetadataRenderedSample";
|
|
2
2
|
import type { IProtectedProjection } from "./IProtectedProjection";
|
|
3
|
-
/**
|
|
4
|
-
* Requires and validates the auditable sample associated with a bulk batch.
|
|
5
|
-
*
|
|
6
|
-
* @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.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure Already-built projections bind the record without rereading or reparsing Markdown.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Only changed metadata files qualify; nearby authored text or unchanged declarations cannot substitute.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states the audit-record requirement; consistency validation does not independently observe readability.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms File membership scans F changed names; field checks scale with text and Map lookups reuse captured content.
|
|
11
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Existing changed-file and projection populations are reused without a second filesystem scan.
|
|
12
|
-
* @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.
|
|
13
|
-
*/
|
|
3
|
+
/** Requires and validates the auditable sample associated with a bulk batch. */
|
|
14
4
|
export declare function validateRenderedSample(sample: IEvidenceMetadataRenderedSample | undefined, bulk: boolean, changedFiles: string[], projections: Map<string, {
|
|
15
5
|
before: IProtectedProjection;
|
|
16
6
|
after: IProtectedProjection;
|
|
@@ -3,17 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.validateRenderedSample = validateRenderedSample;
|
|
4
4
|
const errorMessage_1 = require("./errorMessage");
|
|
5
5
|
const normalizeFile_1 = require("./normalizeFile");
|
|
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
|
function validateRenderedSample(sample, bulk, changedFiles, projections, diagnostics) {
|
|
18
8
|
if (sample === undefined) {
|
|
19
9
|
if (bulk)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validateRenderedSample.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/validateRenderedSample.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAC9C,mDAAgD;AAEhD
|
|
1
|
+
{"version":3,"file":"validateRenderedSample.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/validateRenderedSample.ts"],"names":[],"mappings":";;;AAEA,iDAA8C;AAC9C,mDAAgD;AAEhD,gFAAgF;AAChF,gCACE,MAAmD,EACnD,IAAa,EACb,YAAsB,EACtB,WAGC,EACD,WAAqB;IAErB,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,IAAI,IAAI;YACN,WAAW,CAAC,IAAI,CACd,uEAAuE,CACxE,CAAC;QACJ,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,IAAY,CAAC;IACjB,IAAI,CAAC;QACH,IAAI,GAAG,IAAA,6BAAa,EAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACxB,WAAW,CAAC,IAAI,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,CAAC,CAAC;QACtC,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC9B,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,4EAA4E,CACpF,CAAC;IACJ,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC;QACnD,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,oDAAoD,CAC5D,CAAC;IACJ,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE;QAC/B,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,8CAA8C,CAAC,CAAC;IAC1E,IAAI,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,EAAE;QAClC,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,+CAA+C,CAAC,CAAC;IAC3E,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE;QAC3B,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,2CAA2C,CAAC,CAAC;IAEvE,MAAM,WAAW,GAAuB,WAAW;SAChD,GAAG,CAAC,IAAI,CAAC;QACV,EAAE,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACxC,IAAI,WAAW,KAAK,SAAS,IAAI,WAAW,KAAK,MAAM,CAAC,IAAI;QAC1D,WAAW,CAAC,IAAI,CACd,GAAG,IAAI,IAAI,MAAM,CAAC,IAAI,+FAA+F,CACtH,CAAC;IACJ,OAAO,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,CAAC;AAC7B,CAAC"}
|
|
@@ -1,12 +1,2 @@
|
|
|
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 declare function withoutEnding(line: string): string;
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withoutEnding = withoutEnding;
|
|
4
|
-
/**
|
|
5
|
-
* Returns a line without consuming its exact ending.
|
|
6
|
-
*
|
|
7
|
-
* @evidence contracts/development/implementation.md#principled-implementation Remove one trailing CRLF, CR or LF while leaving every other character unchanged.
|
|
8
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure One helper defines the content boundary shared by projection and section parsing.
|
|
9
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts No interior newline or arbitrary trailing whitespace is normalized.
|
|
10
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment identifies exact ending separation.
|
|
11
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The end-anchored runtime regex processes L-character input; replacement may allocate O(L) text.
|
|
12
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work Shared ending semantics need no cache that would retain individual source lines.
|
|
13
|
-
* @evidence contracts/development/implementation.md#bound-retention-and-release-resources No state is stored and returned text belongs to its caller.
|
|
14
|
-
*/
|
|
4
|
+
/** Returns a line without consuming its exact ending. */
|
|
15
5
|
function withoutEnding(line) {
|
|
16
6
|
return line.replace(/(?:\r\n|\r|\n)$/u, "");
|
|
17
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withoutEnding.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/withoutEnding.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"withoutEnding.js","sourceRoot":"","sources":["../../../../src/narrative/internal/metadataRewrite/withoutEnding.ts"],"names":[],"mappings":";;;AAAA,yDAAyD;AACzD,uBAA8B,IAAY;IACxC,OAAO,IAAI,CAAC,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import type { AuthoredLayer } from "../AuthoredLayer";
|
|
2
2
|
import type { IProductionConfigProps } from "../IProductionConfigProps";
|
|
3
|
-
/**
|
|
4
|
-
* Selects the narrative layers authored by the declared production route.
|
|
5
|
-
*
|
|
6
|
-
* @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.
|
|
7
|
-
* @evidence contracts/development/implementation.md#clear-and-simple-structure This selector centralizes route ownership so claim composition and dependency admission use the same population.
|
|
8
|
-
* @evidence contracts/development/implementation.md#prohibited-implementation-shortcuts Long, short and asset are declared product routes, and no consumer identity changes their layer lists.
|
|
9
|
-
* @evidence contracts/development/common.md#meaningful-documentation The comment states route-selected authorship; the props contract explains the route and the factory validates it.
|
|
10
|
-
* @evidence contracts/development/implementation.md#efficient-algorithms The route branch and bounded layer array take constant time and space.
|
|
11
|
-
* @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.
|
|
12
|
-
* @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.
|
|
13
|
-
*/
|
|
3
|
+
/** Selects the narrative layers authored by the declared production route. */
|
|
14
4
|
export declare function productionLayers(props: IProductionConfigProps): readonly AuthoredLayer[];
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.productionLayers = productionLayers;
|
|
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
|
function productionLayers(props) {
|
|
16
6
|
return props.mode === "long"
|
|
17
7
|
? ["settings", "treatments", "scripts", "screenplay"]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productionLayers.js","sourceRoot":"","sources":["../../../src/narrative/internal/productionLayers.ts"],"names":[],"mappings":";;;AAGA
|
|
1
|
+
{"version":3,"file":"productionLayers.js","sourceRoot":"","sources":["../../../src/narrative/internal/productionLayers.ts"],"names":[],"mappings":";;;AAGA,8EAA8E;AAC9E,0BACE,KAA6B;IAE7B,OAAO,KAAK,CAAC,IAAI,KAAK,MAAM;QAC1B,CAAC,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,CAAC;QACrD,CAAC,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO;YACtB,CAAC,CAAC,CAAC,OAAO,EAAE,YAAY,CAAC;YACzB,CAAC,CAAC,EAAE,CAAC;AACX,CAAC"}
|
|
@@ -4,17 +4,9 @@
|
|
|
4
4
|
*
|
|
5
5
|
* The scaffold's layout is `docs/body/settings/<domain>/<subject>.md` with the
|
|
6
6
|
* domains `world`, `cast`, `crowds`, `props`, `sets`, `cinematography` and
|
|
7
|
-
* `sound`, read in that order and alphabetically within a domain. Domain
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @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.
|
|
13
|
-
* @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.
|
|
14
|
-
* @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.
|
|
15
|
-
* @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.
|
|
16
|
-
* @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.
|
|
17
|
-
* @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.
|
|
18
|
-
* @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.
|
|
7
|
+
* `sound`, read in that order and alphabetically within a domain. Domain files
|
|
8
|
+
* use lower-kebab-case names and exclude the numbered `NNN-entry.md` form.
|
|
9
|
+
* Numbered `NNN-subject/NNN-entry.md` folders read in number order. One
|
|
10
|
+
* settings root uses one layout; `outline` is navigation, not canon.
|
|
19
11
|
*/
|
|
20
12
|
export declare function readSettingsFiles(root: string): string[];
|
|
@@ -13,18 +13,10 @@ const SETTINGS_DOMAINS_1 = require("./SETTINGS_DOMAINS");
|
|
|
13
13
|
*
|
|
14
14
|
* The scaffold's layout is `docs/body/settings/<domain>/<subject>.md` with the
|
|
15
15
|
* domains `world`, `cast`, `crowds`, `props`, `sets`, `cinematography` and
|
|
16
|
-
* `sound`, read in that order and alphabetically within a domain. Domain
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* @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.
|
|
22
|
-
* @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.
|
|
23
|
-
* @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.
|
|
24
|
-
* @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.
|
|
25
|
-
* @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.
|
|
26
|
-
* @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.
|
|
27
|
-
* @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.
|
|
16
|
+
* `sound`, read in that order and alphabetically within a domain. Domain files
|
|
17
|
+
* use lower-kebab-case names and exclude the numbered `NNN-entry.md` form.
|
|
18
|
+
* Numbered `NNN-subject/NNN-entry.md` folders read in number order. One
|
|
19
|
+
* settings root uses one layout; `outline` is navigation, not canon.
|
|
28
20
|
*/
|
|
29
21
|
function readSettingsFiles(root) {
|
|
30
22
|
if (!node_fs_1.default.existsSync(root))
|
|
@@ -85,7 +77,10 @@ const KEBAB_FILE = /^[a-z0-9]+(?:-[a-z0-9]+)*\.md$/u;
|
|
|
85
77
|
function compare(left, right) {
|
|
86
78
|
return left < right ? -1 : left > right ? 1 : 0;
|
|
87
79
|
}
|
|
88
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* The sorted Markdown files of one settings folder, keeping domain and numbered
|
|
82
|
+
* names disjoint and refusing nesting, bad names and emptiness.
|
|
83
|
+
*/
|
|
89
84
|
function list(root, folder, pattern) {
|
|
90
85
|
const names = [];
|
|
91
86
|
for (const entry of node_fs_1.default.readdirSync(node_path_1.default.join(root, folder), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readSettingsFiles.js","sourceRoot":"","sources":["../../../src/narrative/internal/readSettingsFiles.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,yDAAsD;AAEtD
|
|
1
|
+
{"version":3,"file":"readSettingsFiles.js","sourceRoot":"","sources":["../../../src/narrative/internal/readSettingsFiles.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAE7B,yDAAsD;AAEtD;;;;;;;;;;GAUG;AACH,2BAAkC,IAAY;IAC5C,IAAI,CAAC,iBAAE,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC;IACpC,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,QAAQ,GAAa,EAAE,CAAC;IAC9B,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,KAAK,IAAI,iBAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAClE,IAAI,KAAK,CAAC,MAAM,EAAE,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;aACpE,IAAI,KAAK,CAAC,WAAW,EAAE,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;YACzD,IAAI,mCAAgB,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC;gBAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;iBAC/D,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;gBAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;;gBAE5D,MAAM,IAAI,KAAK,CACb,GAAG,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,sCAAsC,mCAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,4CAA4C,CAC5I,CAAC;QACN,CAAC;aAAM,IAAI,KAAK,CAAC,cAAc,EAAE;YAC/B,MAAM,IAAI,KAAK,CACb,GAAG,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,4CAA4C,CAC3E,CAAC;IACN,CAAC;IACD,IACE,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC;QAE1E,MAAM,IAAI,KAAK,CACb,GAAG,IAAI,+DAA+D,CACvE,CAAC;IAEJ,4EAA4E;IAC5E,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,UAAU,GAAa,EAAE,CAAC;QAChC,KAAK,MAAM,MAAM,IAAI,mCAAgB,CAAC,MAAM,CAAC,CAAC,CAAS,EAAW,EAAE,CAClE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CACpB,EAAE,CAAC;YACF,MAAM,OAAO,GAAa,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;YACzD,KAAK,MAAM,KAAK,IAAI,OAAO;gBAAE,UAAU,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,KAAK,EAAE,CAAC,CAAC;QACrE,CAAC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,mEAAmE;IACnE,MAAM,IAAI,GAAgB,IAAI,GAAG,EAAU,CAAC;IAC5C,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,KAAK,MAAM,MAAM,IAAI,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5C,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YAC9B,MAAM,IAAI,KAAK,CACb,GAAG,IAAI,8DAA8D,CACtE,CAAC;QACJ,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC7B,MAAM,IAAI,GAAgB,IAAI,GAAG,EAAU,CAAC;QAC5C,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,CAAC;YACtD,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAC7B,MAAM,IAAI,KAAK,CACb,GAAG,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,wEAAwE,CACnG,CAAC;YACJ,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC5B,UAAU,CAAC,IAAI,CAAC,GAAG,MAAM,IAAI,KAAK,EAAE,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;IACD,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC5D,CAAC;AAED,sCAAsC;AACtC,MAAM,QAAQ,GAAW,sCAAsC,CAAC;AAEhE,kCAAkC;AAClC,MAAM,aAAa,GAAW,0CAA0C,CAAC;AAEzE,8EAA8E;AAC9E,MAAM,UAAU,GAAW,iCAAiC,CAAC;AAE7D,8CAA8C;AAC9C,SAAS,OAAO,CAAC,IAAY,EAAE,KAAa;IAC1C,OAAO,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC;AAED;;;GAGG;AACH,SAAS,IAAI,CAAC,IAAY,EAAE,MAAc,EAAE,OAAe;IACzD,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,KAAK,IAAI,iBAAE,CAAC,WAAW,CAAC,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE;QAC1D,aAAa,EAAE,IAAI;KACpB,CAAC,EAAE,CAAC;QACH,IACE,CAAC,KAAK,CAAC,MAAM,EAAE;YACf,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;YACzB,CAAC,OAAO,KAAK,UAAU,IAAI,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YAE1D,MAAM,IAAI,KAAK,CACb,GAAG,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,2BAA2B,OAAO,KAAK,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,6BAA6B,wCAAwC,CAChL,CAAC;QACJ,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;IACD,IAAI,CAAC,KAAK,CAAC,MAAM;QACf,MAAM,IAAI,KAAK,CACb,GAAG,mBAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,0CAA0C,CACrE,CAAC;IACJ,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -14,15 +14,7 @@ import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
|
14
14
|
* It proves only that. Ordinary coverage cannot require a host to cite
|
|
15
15
|
* anything, and the one per-host count the engine offers is exactly one, which
|
|
16
16
|
* a unit realizing two events would fail. Attribution is therefore a contract
|
|
17
|
-
* duty rather than a cardinality: a unit with no parent cannot answer
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* @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.
|
|
21
|
-
* @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.
|
|
22
|
-
* @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.
|
|
23
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains partition independence, the exact guarantee and the remaining per-host attribution responsibility.
|
|
24
|
-
* @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.
|
|
25
|
-
* @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.
|
|
26
|
-
* @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.
|
|
17
|
+
* duty rather than a cardinality: a unit with no parent cannot answer its
|
|
18
|
+
* selected parent-realization principle truthfully.
|
|
27
19
|
*/
|
|
28
20
|
export declare function createCoverageReference(files: string[], symbol: "file" | "h2"): IEvidenceReference;
|
|
@@ -17,16 +17,8 @@ const referenceLocation_1 = require("../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
|
function createCoverageReference(files, symbol) {
|
|
32
24
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCoverageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createCoverageReference.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE
|
|
1
|
+
{"version":3,"file":"createCoverageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createCoverageReference.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE;;;;;;;;;;;;;;;;;GAiBG;AACH,iCACE,KAAe,EACf,MAAqB;IAErB,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,GAAG,IAAA,qCAAiB,EAAC,KAAK,EAAE,MAAM,CAAC;QACnC,MAAM;QACN,iBAAiB,EAAE,IAAI;KACxB,CAAC;AACJ,CAAC"}
|
|
@@ -5,22 +5,14 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
|
5
5
|
* Creates the open-world discovery duties one layer's population covers.
|
|
6
6
|
*
|
|
7
7
|
* Canon, settings or a short's brief, searches its own directives and subject,
|
|
8
|
-
* and backcasts the planned narrative to find what those layers would otherwise
|
|
9
|
-
* That backcast is how settings anticipates the cross-layer
|
|
10
|
-
* so `discovery/narratives.md` is not selected here: it is
|
|
11
|
-
* narrative layer answers when it rechecks that contract against
|
|
12
|
-
* actually authored.
|
|
8
|
+
* and backcasts the planned narrative to find what those layers would otherwise
|
|
9
|
+
* have to invent. That backcast is how settings anticipates the cross-layer
|
|
10
|
+
* narrative contract, so `discovery/narratives.md` is not selected here: it is
|
|
11
|
+
* the duty each narrative layer answers when it rechecks that contract against
|
|
12
|
+
* what it actually authored.
|
|
13
13
|
*
|
|
14
14
|
* Exclusion is permitted throughout the family. A duty that requires a search
|
|
15
15
|
* must be able to record that the search found nothing, which is what makes
|
|
16
16
|
* requiring it honest.
|
|
17
|
-
*
|
|
18
|
-
* @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.
|
|
19
|
-
* @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.
|
|
20
|
-
* @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.
|
|
21
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains settings backcast, narrative-layer recheck and why negative search findings remain admissible.
|
|
22
|
-
* @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.
|
|
23
|
-
* @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.
|
|
24
|
-
* @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.
|
|
25
17
|
*/
|
|
26
18
|
export declare function createDiscoveryReferences(contracts: IContractLocation, layer: AuthoredLayer): IEvidenceReference[];
|
|
@@ -8,23 +8,15 @@ const createSharedReference_1 = require("./createSharedReference");
|
|
|
8
8
|
* Creates the open-world discovery duties one layer's population covers.
|
|
9
9
|
*
|
|
10
10
|
* Canon, settings or a short's brief, searches its own directives and subject,
|
|
11
|
-
* and backcasts the planned narrative to find what those layers would otherwise
|
|
12
|
-
* That backcast is how settings anticipates the cross-layer
|
|
13
|
-
* so `discovery/narratives.md` is not selected here: it is
|
|
14
|
-
* narrative layer answers when it rechecks that contract against
|
|
15
|
-
* actually authored.
|
|
11
|
+
* and backcasts the planned narrative to find what those layers would otherwise
|
|
12
|
+
* have to invent. That backcast is how settings anticipates the cross-layer
|
|
13
|
+
* narrative contract, so `discovery/narratives.md` is not selected here: it is
|
|
14
|
+
* the duty each narrative layer answers when it rechecks that contract against
|
|
15
|
+
* what it actually authored.
|
|
16
16
|
*
|
|
17
17
|
* Exclusion is permitted throughout the family. A duty that requires a search
|
|
18
18
|
* must be able to record that the search found nothing, which is what makes
|
|
19
19
|
* requiring it honest.
|
|
20
|
-
*
|
|
21
|
-
* @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.
|
|
22
|
-
* @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.
|
|
23
|
-
* @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.
|
|
24
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose explains settings backcast, narrative-layer recheck and why negative search findings remain admissible.
|
|
25
|
-
* @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.
|
|
26
|
-
* @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.
|
|
27
|
-
* @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.
|
|
28
20
|
*/
|
|
29
21
|
function createDiscoveryReferences(contracts, layer) {
|
|
30
22
|
return [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDiscoveryReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createDiscoveryReferences.ts"],"names":[],"mappings":";;;AAOA,kDAA+C;AAC/C,2FAAwF;AACxF,mEAAgE;AAEhE
|
|
1
|
+
{"version":3,"file":"createDiscoveryReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createDiscoveryReferences.ts"],"names":[],"mappings":";;;AAOA,kDAA+C;AAC/C,2FAAwF;AACxF,mEAAgE;AAEhE;;;;;;;;;;;;;GAaG;AACH,mCACE,SAA4B,EAC5B,KAAoB;IAEpB,OAAO;QACL,GAAG;YACD,WAAW;YACX,GAAG,CAAC,IAAA,2BAAY,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;YACjD,GAAG,KAAK,KAAK;SACd,CAAC,GAAG,CACH,CAAC,IAAY,EAA8B,EAAE,CAC3C,IAAA,6CAAqB,EAAC;YACpB,SAAS;YACT,IAAI,EAAE,aAAa,IAAI,EAAE;YACzB,SAAS,EAAE,KAAK;YAChB,SAAS,EAAE,IAAI;SAChB,CAAC,CACL;QACD,GAAG,IAAA,qEAAiC,EAAC,SAAS,CAAC,QAAQ,CAAC;KACzD,CAAC;AACJ,CAAC"}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
1
|
import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
2
|
-
/**
|
|
3
|
-
* Selects the installed language's active open-world calibration questions.
|
|
4
|
-
*
|
|
5
|
-
* @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.
|
|
6
|
-
* @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.
|
|
7
|
-
* @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.
|
|
8
|
-
* @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.
|
|
9
|
-
* @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.
|
|
10
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work createLocalContractReference supplies shared local-root and option semantics, and its existence observation refreshes every config build.
|
|
11
|
-
* @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.
|
|
12
|
-
*/
|
|
2
|
+
/** Selects the installed language's active open-world calibration questions. */
|
|
13
3
|
export declare function createLanguageDiscoveryReferences(location: string): IEvidenceReference[];
|
|
@@ -2,17 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createLanguageDiscoveryReferences = createLanguageDiscoveryReferences;
|
|
4
4
|
const createLocalContractReference_1 = require("./createLocalContractReference");
|
|
5
|
-
/**
|
|
6
|
-
* Selects the installed language's active open-world calibration questions.
|
|
7
|
-
*
|
|
8
|
-
* @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.
|
|
9
|
-
* @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.
|
|
10
|
-
* @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.
|
|
11
|
-
* @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.
|
|
12
|
-
* @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.
|
|
13
|
-
* @evidence contracts/development/implementation.md#reuse-equivalent-work createLocalContractReference supplies shared local-root and option semantics, and its existence observation refreshes every config build.
|
|
14
|
-
* @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.
|
|
15
|
-
*/
|
|
5
|
+
/** Selects the installed language's active open-world calibration questions. */
|
|
16
6
|
function createLanguageDiscoveryReferences(location) {
|
|
17
7
|
const reference = (0, createLocalContractReference_1.createLocalContractReference)({
|
|
18
8
|
location,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLanguageDiscoveryReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLanguageDiscoveryReferences.ts"],"names":[],"mappings":";;;AAKA,iFAA8E;AAE9E
|
|
1
|
+
{"version":3,"file":"createLanguageDiscoveryReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLanguageDiscoveryReferences.ts"],"names":[],"mappings":";;;AAKA,iFAA8E;AAE9E,gFAAgF;AAChF,2CACE,QAAgB;IAEhB,MAAM,SAAS,GACb,IAAA,2DAA4B,EAAC;QAC3B,QAAQ;QACR,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,wBAAwB;QAC9B,SAAS,EAAE,KAAK;QAChB,SAAS,EAAE,IAAI;KAChB,CAAC,CAAC;IACL,OAAO,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -3,15 +3,8 @@ import type { AuthoredLayer } from "../../AuthoredLayer";
|
|
|
3
3
|
/**
|
|
4
4
|
* Selects the installed language's construction principles for one layer.
|
|
5
5
|
*
|
|
6
|
-
* Language-specific screenplay questions follow the same unit scope as the
|
|
7
|
-
*
|
|
8
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles, with every present file forming a per-unit H2 checklist and exclusions forbidden.
|
|
9
|
-
* @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.
|
|
10
|
-
* @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.
|
|
11
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership, optional language principles and their respondents.
|
|
12
|
-
* @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.
|
|
13
|
-
* @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.
|
|
14
|
-
* @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.
|
|
6
|
+
* Language-specific screenplay questions follow the same unit scope as the
|
|
7
|
+
* shared ones.
|
|
15
8
|
*/
|
|
16
9
|
export declare function createLanguagePrincipleReferences(props: {
|
|
17
10
|
location: string;
|
|
@@ -6,15 +6,8 @@ const layerFiles_1 = require("./layerFiles");
|
|
|
6
6
|
/**
|
|
7
7
|
* Selects the installed language's construction principles for one layer.
|
|
8
8
|
*
|
|
9
|
-
* Language-specific screenplay questions follow the same unit scope as the
|
|
10
|
-
*
|
|
11
|
-
* @evidence contracts/development/implementation.md#principled-implementation Layer-specific candidate files are selected from the installed language principles, with every present file forming a per-unit H2 checklist and exclusions forbidden.
|
|
12
|
-
* @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.
|
|
13
|
-
* @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.
|
|
14
|
-
* @evidence contracts/development/common.md#meaningful-documentation The prose states per-unit ownership, optional language principles and their respondents.
|
|
15
|
-
* @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.
|
|
16
|
-
* @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.
|
|
17
|
-
* @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.
|
|
9
|
+
* Language-specific screenplay questions follow the same unit scope as the
|
|
10
|
+
* shared ones.
|
|
18
11
|
*/
|
|
19
12
|
function createLanguagePrincipleReferences(props) {
|
|
20
13
|
return (0, layerFiles_1.layerFiles)(props.layer)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLanguagePrincipleReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLanguagePrincipleReferences.ts"],"names":[],"mappings":";;;AAMA,iFAA8E;AAC9E,6CAA0C;AAE1C
|
|
1
|
+
{"version":3,"file":"createLanguagePrincipleReferences.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLanguagePrincipleReferences.ts"],"names":[],"mappings":";;;AAMA,iFAA8E;AAC9E,6CAA0C;AAE1C;;;;;GAKG;AACH,2CAAkD,KAGjD;IACC,OAAO,IAAA,uBAAU,EAAC,KAAK,CAAC,KAAK,CAAC;SAC3B,GAAG,CAAC,CAAC,IAAY,EAA0C,EAAE,CAC5D,IAAA,2DAA4B,EAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,cAAc,IAAI,EAAE;QAC1B,SAAS,EAAE,IAAI;QACf,SAAS,EAAE,KAAK;KACjB,CAAC,CACH;SACA,MAAM,CACL,CACE,SAAiD,EACR,EAAE,CAAC,SAAS,KAAK,SAAS,CACtE,CAAC;AACN,CAAC"}
|
|
@@ -3,20 +3,12 @@ import type { IEvidenceReference } from "@wrtnlabs/evidence";
|
|
|
3
3
|
* Creates a reference to one parent story unit.
|
|
4
4
|
*
|
|
5
5
|
* Each child host cites one parent, each parent has one child, and neither may
|
|
6
|
-
* exclude. This binds each long screenplay scene file to the script scene H2
|
|
7
|
-
*
|
|
8
|
-
*
|
|
6
|
+
* exclude. This binds each long screenplay scene file to the script scene H2 it
|
|
7
|
+
* realizes, and each review H2 to the authored H2 it read. Use
|
|
8
|
+
* {@link createCoverageReference} for differently partitioned layers.
|
|
9
9
|
*
|
|
10
|
-
* `review` additionally demands a current review of the cited unit. The
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* @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.
|
|
15
|
-
* @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.
|
|
16
|
-
* @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.
|
|
17
|
-
* @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.
|
|
18
|
-
* @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.
|
|
19
|
-
* @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.
|
|
20
|
-
* @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.
|
|
10
|
+
* `review` additionally demands a current review of the cited unit. The review
|
|
11
|
+
* binds a review document to the exact unit it read: a change to that unit
|
|
12
|
+
* expires the review, and the graph names the one unit to read again.
|
|
21
13
|
*/
|
|
22
14
|
export declare function createLineageReference(files: string[], symbol: "file" | "h2", review?: boolean): IEvidenceReference;
|
|
@@ -6,21 +6,13 @@ const referenceLocation_1 = require("../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
|
function createLineageReference(files, symbol, review = false) {
|
|
26
18
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createLineageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLineageReference.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE
|
|
1
|
+
{"version":3,"file":"createLineageReference.js","sourceRoot":"","sources":["../../../../src/narrative/internal/references/createLineageReference.ts"],"names":[],"mappings":";;;AAEA,sEAAmE;AAEnE;;;;;;;;;;;GAWG;AACH,gCACE,KAAe,EACf,MAAqB,EACrB,MAAM,GAAY,KAAK;IAEvB,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,GAAG,IAAA,qCAAiB,EAAC,KAAK,EAAE,MAAM,CAAC;QACnC,MAAM;QACN,iBAAiB,EAAE,IAAI;QACvB,cAAc,EAAE,IAAI;QACpB,uBAAuB,EAAE,IAAI;QAC7B,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -6,14 +6,6 @@ import type { IEvidenceMarkdownReference } from "@wrtnlabs/evidence";
|
|
|
6
6
|
* resolve under its own `docs/contracts`, even when a workspace keeps the
|
|
7
7
|
* shared contracts elsewhere. The root stops above the family folder, so the
|
|
8
8
|
* family owning the item stays in the citation address a host writes.
|
|
9
|
-
*
|
|
10
|
-
* @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.
|
|
11
|
-
* @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.
|
|
12
|
-
* @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.
|
|
13
|
-
* @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.
|
|
14
|
-
* @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.
|
|
15
|
-
* @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.
|
|
16
|
-
* @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.
|
|
17
9
|
*/
|
|
18
10
|
export declare function createLocalContractReference(props: {
|
|
19
11
|
location: string;
|
|
@@ -15,14 +15,6 @@ const createContractRoot_1 = require("../utilities/createContractRoot");
|
|
|
15
15
|
* resolve under its own `docs/contracts`, even when a workspace keeps the
|
|
16
16
|
* shared contracts elsewhere. The root stops above the family folder, so the
|
|
17
17
|
* family owning the item stays in the citation address a host writes.
|
|
18
|
-
*
|
|
19
|
-
* @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.
|
|
20
|
-
* @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.
|
|
21
|
-
* @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.
|
|
22
|
-
* @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.
|
|
23
|
-
* @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.
|
|
24
|
-
* @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.
|
|
25
|
-
* @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.
|
|
26
18
|
*/
|
|
27
19
|
function createLocalContractReference(props) {
|
|
28
20
|
const directory = (0, createContractDirectory_1.createContractDirectory)(props, props.scope);
|